@aotter/mantle-admin-ui 0.1.0-alpha.16 → 0.1.0-alpha.17

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.
@@ -0,0 +1,64 @@
1
+ var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),s=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},c=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},l=(n,r,o)=>(o=n==null?{}:e(i(n)),c(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n));(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var u=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function E(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function D(e,t){return E(e.type,t,e.props)}function O(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function k(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?k(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(C,C):(e.status=`pending`,e.then(function(t){e.status===`pending`&&(e.status=`fulfilled`,e.value=t)},function(t){e.status===`pending`&&(e.status=`rejected`,e.reason=t)})),e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason}}throw e}function N(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,N(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),N(o,r,i,``,function(e){return e})):o!=null&&(O(o)&&(o=D(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=N(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=N(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return N(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function P(e,t,n){if(e==null)return e;var r=[],i=0;return N(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function F(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var I=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},L={map:P,forEach:function(e,t,n){P(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return P(e,function(){t++}),t},toArray:function(e){return P(e,function(e){return e})||[]},only:function(e){if(!O(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=L,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return E(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return E(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=O,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:F}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,I)}catch(e){I(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),d=o(((e,t)=>{t.exports=u()})),f=o((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&j(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&j(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,A=k.port2;k.port1.onmessage=D,O=function(){A.postMessage(null)}}else O=function(){_(D,0)};function j(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.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`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,j(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),p=o(((e,t)=>{t.exports=f()})),m=o((e=>{var t=d();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`);function o(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var s=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function c(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return o(e,t,null,r)},e.flushSync=function(e){var t=s.T,n=i.p;try{if(s.T=null,i.p=2,e)return e()}finally{s.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=c(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=c(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=c(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s.H.useFormState(e,t,n)},e.useFormStatus=function(){return s.H.useHostTransitionStatus()},e.version=`19.2.8`})),h=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=m()})),g=o((e=>{var t=p(),n=d(),r=h();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}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.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function s(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 c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function f(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=f(e),t!==null)return t;e=e.sibling}return null}var m=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),E=Symbol.for(`react.suspense_list`),D=Symbol.for(`react.memo`),O=Symbol.for(`react.lazy`),k=Symbol.for(`react.activity`),A=Symbol.for(`react.memo_cache_sentinel`),j=Symbol.iterator;function M(e){return typeof e!=`object`||!e?null:(e=j&&e[j]||e[`@@iterator`],typeof e==`function`?e:null)}var N=Symbol.for(`react.client.reference`);function P(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===N?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case E:return`SuspenseList`;case k:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case D:return t=e.displayName||null,t===null?P(e.type)||`Memo`:t;case O:t=e._payload,e=e._init;try{return P(e(t))}catch{}}return null}var F=Array.isArray,I=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,L=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,R={pending:!1,data:null,method:null,action:null},ee=[],te=-1;function z(e){return{current:e}}function B(e){0>te||(e.current=ee[te],ee[te]=null,te--)}function V(e,t){te++,ee[te]=e.current,e.current=t}var ne=z(null),re=z(null),ie=z(null),ae=z(null);function oe(e,t){switch(V(ie,t),V(re,e),V(ne,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Yd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Yd(t),e=Xd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}B(ne),V(ne,e)}function se(){B(ne),B(re),B(ie)}function ce(e){e.memoizedState!==null&&V(ae,e);var t=ne.current,n=Xd(t,e.type);t!==n&&(V(re,e),V(ne,n))}function le(e){re.current===e&&(B(ne),B(re)),ae.current===e&&(B(ae),op._currentValue=R)}var ue,de;function fe(e){if(ue===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ue=t&&t[1]||``,de=-1<e.stack.indexOf(`
2
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
3
+ `+ue+e+de}var pe=!1;function me(e,t){if(!e||pe)return``;pe=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
4
+ `),l=s.split(`
5
+ `);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
6
+ `+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{pe=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?fe(n):``}function he(e,t){switch(e.tag){case 26:case 27:case 5:return fe(e.type);case 16:return fe(`Lazy`);case 13:return e.child!==t&&t!==null?fe(`Suspense Fallback`):fe(`Suspense`);case 19:return fe(`SuspenseList`);case 0:case 15:return me(e.type,!1);case 11:return me(e.type.render,!1);case 1:return me(e.type,!0);case 31:return fe(`Activity`);default:return``}}function ge(e){try{var t=``,n=null;do t+=he(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
7
+ Error generating stack: `+e.message+`
8
+ `+e.stack}}var _e=Object.prototype.hasOwnProperty,ve=t.unstable_scheduleCallback,ye=t.unstable_cancelCallback,be=t.unstable_shouldYield,xe=t.unstable_requestPaint,Se=t.unstable_now,Ce=t.unstable_getCurrentPriorityLevel,we=t.unstable_ImmediatePriority,Te=t.unstable_UserBlockingPriority,Ee=t.unstable_NormalPriority,De=t.unstable_LowPriority,Oe=t.unstable_IdlePriority,ke=t.log,Ae=t.unstable_setDisableYieldValue,je=null,Me=null;function Ne(e){if(typeof ke==`function`&&Ae(e),Me&&typeof Me.setStrictMode==`function`)try{Me.setStrictMode(je,e)}catch{}}var Pe=Math.clz32?Math.clz32:Le,Fe=Math.log,Ie=Math.LN2;function Le(e){return e>>>=0,e===0?32:31-(Fe(e)/Ie|0)|0}var Re=256,ze=262144,Be=4194304;function H(e){var t=e&42;if(t!==0)return t;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:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function U(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=r&134217727;return s===0?(s=r&~a,s===0?o===0?n||(n=r&~e,n!==0&&(i=H(n))):i=H(o):i=H(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=H(n))):i=H(o)):i=H(r)),i===0?0:t!==0&&t!==i&&(t&a)===0&&(a=i&-i,n=t&-t,a>=n||a===32&&n&4194048)?t:i}function Ve(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function He(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32: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:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Ue(){var e=Be;return Be<<=1,!(Be&62914560)&&(Be=4194304),e}function We(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ge(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ke(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,c=e.expirationTimes,l=e.hiddenUpdates;for(n=o&~n;0<n;){var u=31-Pe(n),d=1<<u;s[u]=0,c[u]=-1;var f=l[u];if(f!==null)for(l[u]=null,u=0;u<f.length;u++){var p=f[u];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&qe(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function qe(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Pe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Je(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Pe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ye(e,t){var n=t&-t;return n=n&42?1:Xe(n),(n&(e.suspendedLanes|t))===0?n:0}function Xe(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Ze(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function Qe(){var e=L.p;return e===0?(e=window.event,e===void 0?32:Sp(e.type)):e}function $e(e,t){var n=L.p;try{return L.p=e,t()}finally{L.p=n}}var et=Math.random().toString(36).slice(2),tt=`__reactFiber$`+et,nt=`__reactProps$`+et,rt=`__reactContainer$`+et,it=`__reactEvents$`+et,at=`__reactListeners$`+et,ot=`__reactHandles$`+et,st=`__reactResources$`+et,ct=`__reactMarker$`+et;function lt(e){delete e[tt],delete e[nt],delete e[it],delete e[at],delete e[ot]}function ut(e){var t=e[tt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[rt]||n[tt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=yf(e);e!==null;){if(n=e[tt])return n;e=yf(e)}return t}e=n,n=e.parentNode}return null}function dt(e){if(e=e[tt]||e[rt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function ft(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function pt(e){var t=e[st];return t||=e[st]={hoistableStyles:new Map,hoistableScripts:new Map},t}function W(e){e[ct]=!0}var mt=new Set,ht={};function gt(e,t){_t(e,t),_t(e+`Capture`,t)}function _t(e,t){for(ht[e]=t,e=0;e<t.length;e++)mt.add(t[e])}var vt=RegExp(`^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$`),yt={},bt={};function xt(e){return _e.call(bt,e)?!0:_e.call(yt,e)?!1:vt.test(e)?bt[e]=!0:(yt[e]=!0,!1)}function St(e,t,n){if(xt(t)){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}}function Ct(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function wt(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function Tt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Et(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Dt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Ot(e){if(!e._valueTracker){var t=Et(e)?`checked`:`value`;e._valueTracker=Dt(e,t,``+e[t])}}function kt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Et(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function At(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var jt=/[\n"\\]/g;function Mt(e){return e.replace(jt,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Nt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+Tt(t)):e.value!==``+Tt(t)&&(e.value=``+Tt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Ft(e,o,Tt(n)):Ft(e,o,Tt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+Tt(s):e.removeAttribute(`name`)}function Pt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Ot(e);return}n=n==null?``:``+Tt(n),t=t==null?n:``+Tt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Ot(e)}function Ft(e,t,n){t===`number`&&At(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function It(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+Tt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Lt(e,t,n){if(t!=null&&(t=``+Tt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+Tt(n)}function Rt(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(F(r)){if(1<r.length)throw Error(i(93));r=r[0]}n=r}n??=``,t=n}n=Tt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Ot(e)}function zt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Bt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Vt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Bt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function Ht(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&Vt(e,a,r)}else for(var o in t)t.hasOwnProperty(o)&&Vt(e,o,t[o])}function Ut(e){if(e.indexOf(`-`)===-1)return!1;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 Wt=new Map([[`acceptCharset`,`accept-charset`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`],[`crossOrigin`,`crossorigin`],[`accentHeight`,`accent-height`],[`alignmentBaseline`,`alignment-baseline`],[`arabicForm`,`arabic-form`],[`baselineShift`,`baseline-shift`],[`capHeight`,`cap-height`],[`clipPath`,`clip-path`],[`clipRule`,`clip-rule`],[`colorInterpolation`,`color-interpolation`],[`colorInterpolationFilters`,`color-interpolation-filters`],[`colorProfile`,`color-profile`],[`colorRendering`,`color-rendering`],[`dominantBaseline`,`dominant-baseline`],[`enableBackground`,`enable-background`],[`fillOpacity`,`fill-opacity`],[`fillRule`,`fill-rule`],[`floodColor`,`flood-color`],[`floodOpacity`,`flood-opacity`],[`fontFamily`,`font-family`],[`fontSize`,`font-size`],[`fontSizeAdjust`,`font-size-adjust`],[`fontStretch`,`font-stretch`],[`fontStyle`,`font-style`],[`fontVariant`,`font-variant`],[`fontWeight`,`font-weight`],[`glyphName`,`glyph-name`],[`glyphOrientationHorizontal`,`glyph-orientation-horizontal`],[`glyphOrientationVertical`,`glyph-orientation-vertical`],[`horizAdvX`,`horiz-adv-x`],[`horizOriginX`,`horiz-origin-x`],[`imageRendering`,`image-rendering`],[`letterSpacing`,`letter-spacing`],[`lightingColor`,`lighting-color`],[`markerEnd`,`marker-end`],[`markerMid`,`marker-mid`],[`markerStart`,`marker-start`],[`overlinePosition`,`overline-position`],[`overlineThickness`,`overline-thickness`],[`paintOrder`,`paint-order`],[`panose-1`,`panose-1`],[`pointerEvents`,`pointer-events`],[`renderingIntent`,`rendering-intent`],[`shapeRendering`,`shape-rendering`],[`stopColor`,`stop-color`],[`stopOpacity`,`stop-opacity`],[`strikethroughPosition`,`strikethrough-position`],[`strikethroughThickness`,`strikethrough-thickness`],[`strokeDasharray`,`stroke-dasharray`],[`strokeDashoffset`,`stroke-dashoffset`],[`strokeLinecap`,`stroke-linecap`],[`strokeLinejoin`,`stroke-linejoin`],[`strokeMiterlimit`,`stroke-miterlimit`],[`strokeOpacity`,`stroke-opacity`],[`strokeWidth`,`stroke-width`],[`textAnchor`,`text-anchor`],[`textDecoration`,`text-decoration`],[`textRendering`,`text-rendering`],[`transformOrigin`,`transform-origin`],[`underlinePosition`,`underline-position`],[`underlineThickness`,`underline-thickness`],[`unicodeBidi`,`unicode-bidi`],[`unicodeRange`,`unicode-range`],[`unitsPerEm`,`units-per-em`],[`vAlphabetic`,`v-alphabetic`],[`vHanging`,`v-hanging`],[`vIdeographic`,`v-ideographic`],[`vMathematical`,`v-mathematical`],[`vectorEffect`,`vector-effect`],[`vertAdvY`,`vert-adv-y`],[`vertOriginX`,`vert-origin-x`],[`vertOriginY`,`vert-origin-y`],[`wordSpacing`,`word-spacing`],[`writingMode`,`writing-mode`],[`xmlnsXlink`,`xmlns:xlink`],[`xHeight`,`x-height`]]),Gt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Kt(e){return Gt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function qt(){}var Jt=null;function Yt(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Xt=null,Zt=null;function Qt(e){var t=dt(e);if(t&&(e=t.stateNode)){var n=e[nt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Nt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Mt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[nt]||null;if(!a)throw Error(i(90));Nt(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&kt(r)}break a;case`textarea`:Lt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&It(e,!!n.multiple,t,!1)}}}var $t=!1;function en(e,t,n){if($t)return e(t,n);$t=!0;try{return e(t)}finally{if($t=!1,(Xt!==null||Zt!==null)&&(Tu(),Xt&&(t=Xt,e=Zt,Zt=Xt=null,Qt(t),e)))for(t=0;t<e.length;t++)Qt(e[t])}}function tn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[nt]||null;if(r===null)return null;n=r[t];a: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 a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var nn=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),rn=!1;if(nn)try{var an={};Object.defineProperty(an,"passive",{get:function(){rn=!0}}),window.addEventListener(`test`,an,an),window.removeEventListener(`test`,an,an)}catch{rn=!1}var on=null,sn=null,cn=null;function ln(){if(cn)return cn;var e,t=sn,n=t.length,r,i=`value`in on?on.value:on.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return cn=i.slice(e,1<r?1-r:void 0)}function un(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 dn(){return!0}function fn(){return!1}function pn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?dn:fn,this.isPropagationStopped=fn,this}return m(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=dn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=dn)},persist:function(){},isPersistent:dn}),t}var mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},hn=pn(mn),gn=m({},mn,{view:0,detail:0}),_n=pn(gn),vn,yn,bn,xn=m({},gn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Mn,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!==bn&&(bn&&e.type===`mousemove`?(vn=e.screenX-bn.screenX,yn=e.screenY-bn.screenY):yn=vn=0,bn=e),vn)},movementY:function(e){return`movementY`in e?e.movementY:yn}}),Sn=pn(xn),Cn=pn(m({},xn,{dataTransfer:0})),wn=pn(m({},gn,{relatedTarget:0})),Tn=pn(m({},mn,{animationName:0,elapsedTime:0,pseudoElement:0})),En=pn(m({},mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Dn=pn(m({},mn,{data:0})),On={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},kn={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`},An={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function jn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=An[e])?!!t[e]:!1}function Mn(){return jn}var Nn=pn(m({},gn,{key:function(e){if(e.key){var t=On[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=un(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?kn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Mn,charCode:function(e){return e.type===`keypress`?un(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?un(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Pn=pn(m({},xn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Fn=pn(m({},gn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Mn})),In=pn(m({},mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ln=pn(m({},xn,{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})),Rn=pn(m({},mn,{newState:0,oldState:0})),zn=[9,13,27,32],Bn=nn&&`CompositionEvent`in window,Vn=null;nn&&`documentMode`in document&&(Vn=document.documentMode);var Hn=nn&&`TextEvent`in window&&!Vn,Un=nn&&(!Bn||Vn&&8<Vn&&11>=Vn),Wn=` `,Gn=!1;function Kn(e,t){switch(e){case`keyup`:return zn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function qn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Jn=!1;function Yn(e,t){switch(e){case`compositionend`:return qn(t);case`keypress`:return t.which===32?(Gn=!0,Wn):null;case`textInput`:return e=t.data,e===Wn&&Gn?null:e;default:return null}}function Xn(e,t){if(Jn)return e===`compositionend`||!Bn&&Kn(e,t)?(e=ln(),cn=sn=on=null,Jn=!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 Un&&t.locale!==`ko`?null:t.data;default:return null}}var Zn={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 Qn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Zn[e.type]:t===`textarea`}function $n(e,t,n,r){Xt?Zt?Zt.push(r):Zt=[r]:Xt=r,t=Nd(t,`onChange`),0<t.length&&(n=new hn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var er=null,tr=null;function nr(e){Td(e,0)}function rr(e){if(kt(ft(e)))return e}function ir(e,t){if(e===`change`)return t}var ar=!1;if(nn){var or;if(nn){var sr=`oninput`in document;if(!sr){var cr=document.createElement(`div`);cr.setAttribute(`oninput`,`return;`),sr=typeof cr.oninput==`function`}or=sr}else or=!1;ar=or&&(!document.documentMode||9<document.documentMode)}function lr(){er&&(er.detachEvent(`onpropertychange`,ur),tr=er=null)}function ur(e){if(e.propertyName===`value`&&rr(tr)){var t=[];$n(t,tr,e,Yt(e)),en(nr,t)}}function dr(e,t,n){e===`focusin`?(lr(),er=t,tr=n,er.attachEvent(`onpropertychange`,ur)):e===`focusout`&&lr()}function fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return rr(tr)}function pr(e,t){if(e===`click`)return rr(t)}function mr(e,t){if(e===`input`||e===`change`)return rr(t)}function hr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var gr=typeof Object.is==`function`?Object.is:hr;function _r(e,t){if(gr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!_e.call(t,i)||!gr(e[i],t[i]))return!1}return!0}function vr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function yr(e,t){var n=vr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=vr(n)}}function br(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?br(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function xr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=At(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=At(e.document)}return t}function Sr(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`)}var Cr=nn&&`documentMode`in document&&11>=document.documentMode,wr=null,Tr=null,Er=null,Dr=!1;function Or(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Dr||wr==null||wr!==At(r)||(r=wr,`selectionStart`in r&&Sr(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}),Er&&_r(Er,r)||(Er=r,r=Nd(Tr,`onSelect`),0<r.length&&(t=new hn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=wr)))}function kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Ar={animationend:kr(`Animation`,`AnimationEnd`),animationiteration:kr(`Animation`,`AnimationIteration`),animationstart:kr(`Animation`,`AnimationStart`),transitionrun:kr(`Transition`,`TransitionRun`),transitionstart:kr(`Transition`,`TransitionStart`),transitioncancel:kr(`Transition`,`TransitionCancel`),transitionend:kr(`Transition`,`TransitionEnd`)},jr={},Mr={};nn&&(Mr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Ar.animationend.animation,delete Ar.animationiteration.animation,delete Ar.animationstart.animation),`TransitionEvent`in window||delete Ar.transitionend.transition);function Nr(e){if(jr[e])return jr[e];if(!Ar[e])return e;var t=Ar[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Mr)return jr[e]=t[n];return e}var Pr=Nr(`animationend`),Fr=Nr(`animationiteration`),Ir=Nr(`animationstart`),Lr=Nr(`transitionrun`),Rr=Nr(`transitionstart`),zr=Nr(`transitioncancel`),Br=Nr(`transitionend`),Vr=new Map,Hr=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);Hr.push(`scrollEnd`);function Ur(e,t){Vr.set(e,t),gt(t,[e])}var Wr=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},Gr=[],Kr=0,qr=0;function Jr(){for(var e=Kr,t=qr=Kr=0;t<e;){var n=Gr[t];Gr[t++]=null;var r=Gr[t];Gr[t++]=null;var i=Gr[t];Gr[t++]=null;var a=Gr[t];if(Gr[t++]=null,r!==null&&i!==null){var o=r.pending;o===null?i.next=i:(i.next=o.next,o.next=i),r.pending=i}a!==0&&Qr(n,i,a)}}function Yr(e,t,n,r){Gr[Kr++]=e,Gr[Kr++]=t,Gr[Kr++]=n,Gr[Kr++]=r,qr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Xr(e,t,n,r){return Yr(e,t,n,r),$r(e)}function Zr(e,t){return Yr(e,null,null,t),$r(e)}function Qr(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Pe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function $r(e){if(50<gu)throw gu=0,_u=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ei={};function ti(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=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 ni(e,t,n,r){return new ti(e,t,n,r)}function G(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ri(e,t){var n=e.alternate;return n===null?(n=ni(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function ii(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ai(e,t,n,r,a,o){var s=0;if(r=e,typeof e==`function`)G(e)&&(s=1);else if(typeof e==`string`)s=Zf(e,n,ne.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case k:return e=ni(31,n,t,a),e.elementType=k,e.lanes=o,e;case y:return oi(n.children,a,o,t);case b:s=8,a|=24;break;case x:return e=ni(12,n,t,a|2),e.elementType=x,e.lanes=o,e;case T:return e=ni(13,n,t,a),e.elementType=T,e.lanes=o,e;case E:return e=ni(19,n,t,a),e.elementType=E,e.lanes=o,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:s=10;break a;case S:s=9;break a;case w:s=11;break a;case D:s=14;break a;case O:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ni(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function oi(e,t,n,r){return e=ni(7,e,r,t),e.lanes=n,e}function si(e,t,n){return e=ni(6,e,null,t),e.lanes=n,e}function ci(e){var t=ni(18,null,null,0);return t.stateNode=e,t}function li(e,t,n){return t=ni(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var ui=new WeakMap;function di(e,t){if(typeof e==`object`&&e){var n=ui.get(e);return n===void 0?(t={value:e,source:t,stack:ge(t)},ui.set(e,t),t):n}return{value:e,source:t,stack:ge(t)}}var fi=[],pi=0,mi=null,hi=0,gi=[],_i=0,vi=null,yi=1,bi=``;function xi(e,t){fi[pi++]=hi,fi[pi++]=mi,mi=e,hi=t}function Si(e,t,n){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,vi=e;var r=yi;e=bi;var i=32-Pe(r)-1;r&=~(1<<i),n+=1;var a=32-Pe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,yi=1<<32-Pe(t)+i|n<<i|r,bi=a+e}else yi=1<<a|n<<i|r,bi=e}function Ci(e){e.return!==null&&(xi(e,1),Si(e,1,0))}function wi(e){for(;e===mi;)mi=fi[--pi],fi[pi]=null,hi=fi[--pi],fi[pi]=null;for(;e===vi;)vi=gi[--_i],gi[_i]=null,bi=gi[--_i],gi[_i]=null,yi=gi[--_i],gi[_i]=null}function Ti(e,t){gi[_i++]=yi,gi[_i++]=bi,gi[_i++]=vi,yi=t.id,bi=t.overflow,vi=e}var Ei=null,Di=null,Oi=!1,ki=null,Ai=!1,ji=Error(i(519));function Mi(e){throw Ri(di(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),ji}function Ni(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[tt]=e,t[nt]=r,n){case`dialog`:Ed(`cancel`,t),Ed(`close`,t);break;case`iframe`:case`object`:case`embed`:Ed(`load`,t);break;case`video`:case`audio`:for(n=0;n<Cd.length;n++)Ed(Cd[n],t);break;case`source`:Ed(`error`,t);break;case`img`:case`image`:case`link`:Ed(`error`,t),Ed(`load`,t);break;case`details`:Ed(`toggle`,t);break;case`input`:Ed(`invalid`,t),Pt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Ed(`invalid`,t);break;case`textarea`:Ed(`invalid`,t),Rt(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!=`string`&&typeof n!=`number`&&typeof n!=`bigint`||t.textContent===``+n||!0===r.suppressHydrationWarning||zd(t.textContent,n)?(r.popover!=null&&(Ed(`beforetoggle`,t),Ed(`toggle`,t)),r.onScroll!=null&&Ed(`scroll`,t),r.onScrollEnd!=null&&Ed(`scrollend`,t),r.onClick!=null&&(t.onclick=qt),t=!0):t=!1,t||Mi(e,!0)}function Pi(e){for(Ei=e.return;Ei;)switch(Ei.tag){case 5:case 31:case 13:Ai=!1;return;case 27:case 3:Ai=!0;return;default:Ei=Ei.return}}function Fi(e){if(e!==Ei)return!1;if(!Oi)return Pi(e),Oi=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||Zd(e.type,e.memoizedProps)),n=!n),n&&Di&&Mi(e),Pi(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Di=vf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));Di=vf(e)}else t===27?(t=Di,of(e.type)?(e=_f,_f=null,Di=e):Di=t):Di=Ei?gf(e.stateNode.nextSibling):null;return!0}function Ii(){Di=Ei=null,Oi=!1}function Li(){var e=ki;return e!==null&&(nu===null?nu=e:nu.push.apply(nu,e),ki=null),e}function Ri(e){ki===null?ki=[e]:ki.push(e)}var zi=z(null),Bi=null,Vi=null;function Hi(e,t,n){V(zi,t._currentValue),t._currentValue=n}function Ui(e){e._currentValue=zi.current,B(zi)}function Wi(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function Gi(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),Wi(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),Wi(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function Ki(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;gr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ae.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[op]:e.push(op))}a=a.return}e!==null&&Gi(t,e,n,r),t.flags|=262144}function qi(e){for(e=e.firstContext;e!==null;){if(!gr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ji(e){Bi=e,Vi=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Yi(e){return Zi(Bi,e)}function Xi(e,t){return Bi===null&&Ji(e),Zi(e,t)}function Zi(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Vi===null){if(e===null)throw Error(i(308));Vi=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Vi=Vi.next=t;return n}var Qi=typeof AbortController<`u`?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach(function(e){return e()})}},$i=t.unstable_scheduleCallback,ea=t.unstable_NormalPriority,ta={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function na(){return{controller:new Qi,data:new Map,refCount:0}}function ra(e){e.refCount--,e.refCount===0&&$i(ea,function(){e.controller.abort()})}var ia=null,aa=0,oa=0,sa=null;function ca(e,t){if(ia===null){var n=ia=[];aa=0,oa=_d(),sa={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return aa++,t.then(la,la),t}function la(){if(--aa===0&&ia!==null){sa!==null&&(sa.status=`fulfilled`);var e=ia;ia=null,oa=0,sa=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function ua(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var da=I.S;I.S=function(e,t){au=Se(),typeof t==`object`&&t&&typeof t.then==`function`&&ca(e,t),da!==null&&da(e,t)};var fa=z(null);function pa(){var e=fa.current;return e===null?Bl.pooledCache:e}function ma(e,t){t===null?V(fa,fa.current):V(fa,t.pool)}function ha(){var e=pa();return e===null?null:{parent:ta._currentValue,pool:e}}var ga=Error(i(460)),_a=Error(i(474)),va=Error(i(542)),ya={then:function(){}};function ba(e){return e=e.status,e===`fulfilled`||e===`rejected`}function xa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(qt,qt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e;default:if(typeof t.status==`string`)t.then(qt,qt);else{if(e=Bl,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Ta(e),e}throw Ca=t,ga}}function Sa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ca=e,ga):e}}var Ca=null;function wa(){if(Ca===null)throw Error(i(459));var e=Ca;return Ca=null,e}function Ta(e){if(e===ga||e===va)throw Error(i(483))}var Ea=null,Da=0;function Oa(e){var t=Da;return Da+=1,Ea===null&&(Ea=[]),xa(Ea,e,t)}function ka(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Aa(e,t){throw t.$$typeof===g?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function ja(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ri(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=67108866,n):(r=r.index,r<n?(t.flags|=67108866,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=si(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===O&&Sa(i)===t.type)?(t=a(t,n.props),ka(t,n),t.return=e,t):(t=ai(n.type,n.key,n.props,null,e.mode,r),ka(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=li(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=oi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=si(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ai(t.type,t.key,t.props,null,e.mode,n),ka(n,t),n.return=e,n;case v:return t=li(t,e.mode,n),t.return=e,t;case O:return t=Sa(t),f(e,t,n)}if(F(t)||M(t))return t=oi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Oa(t),n);if(t.$$typeof===C)return f(e,Xi(e,t),n);Aa(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case O:return n=Sa(n),p(e,t,n,r)}if(F(n)||M(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Oa(n),r);if(n.$$typeof===C)return p(e,t,Xi(e,n),r);Aa(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case O:return r=Sa(r),m(e,t,n,r,i)}if(F(r)||M(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Oa(r),i);if(r.$$typeof===C)return m(e,t,n,Xi(t,r),i);Aa(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),Oi&&xi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Oi&&xi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),Oi&&xi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Oi&&xi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Oi&&xi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Oi&&xi(a,g),u}function b(e,r,o,c){if(typeof o==`object`&&o&&o.type===y&&o.key===null&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case _:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===y){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===O&&Sa(l)===r.type){n(e,r.sibling),c=a(r,o.props),ka(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===y?(c=oi(o.props.children,e.mode,c,o.key),c.return=e,e=c):(c=ai(o.type,o.key,o.props,null,e.mode,c),ka(c,o),c.return=e,e=c)}return s(e);case v:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=li(o,e.mode,c),c.return=e,e=c}return s(e);case O:return o=Sa(o),b(e,r,o,c)}if(F(o))return h(e,r,o,c);if(M(o)){if(l=M(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return b(e,r,Oa(o),c);if(o.$$typeof===C)return b(e,r,Xi(e,o),c);Aa(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=si(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{Da=0;var i=b(e,t,n,r);return Ea=null,i}catch(t){if(t===ga||t===va)throw t;var a=ni(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Ma=ja(!0),Na=ja(!1),Pa=!1;function Fa(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ia(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function La(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,zl&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=$r(e),Qr(e,null,n),t}return Yr(e,r,t,n),$r(e)}function za(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194048)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}function Ba(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Va=!1;function Ha(){if(Va){var e=sa;if(e!==null)throw e}}function Ua(e,t,n,r){Va=!1;var i=e.updateQueue;Pa=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Hl&f)===f:(r&f)===f){f!==0&&f===oa&&(Va=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var h=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(h=g.payload,typeof h==`function`){d=h.call(_,d,f);break a}d=h;break a;case 3:h.flags=h.flags&-65537|128;case 0:if(h=g.payload,f=typeof h==`function`?h.call(_,d,f):h,f==null)break a;d=m({},d,f);break a;case 2:Pa=!0}}f=s.callback,f!==null&&(e.flags|=64,p&&(e.flags|=8192),p=i.callbacks,p===null?i.callbacks=[f]:p.push(f))}else p={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;p=s,s=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(1);u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,a===null&&(i.shared.lanes=0),Xl|=o,e.lanes=o,e.memoizedState=d}}function Wa(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function Ga(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Wa(n[e],t)}var Ka=z(null),qa=z(0);function Ja(e,t){e=Jl,V(qa,e),V(Ka,t),Jl=e|t.baseLanes}function Ya(){V(qa,Jl),V(Ka,Ka.current)}function Xa(){Jl=qa.current,B(Ka),B(qa)}var Za=z(null),Qa=null;function $a(e){var t=e.alternate;V(io,io.current&1),V(Za,e),Qa===null&&(t===null||Ka.current!==null||t.memoizedState!==null)&&(Qa=e)}function eo(e){V(io,io.current),V(Za,e),Qa===null&&(Qa=e)}function to(e){e.tag===22?(V(io,io.current),V(Za,e),Qa===null&&(Qa=e)):no(e)}function no(){V(io,io.current),V(Za,Za.current)}function ro(e){B(Za),Qa===e&&(Qa=null),B(io)}var io=z(0);function ao(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||pf(n)||mf(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)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 oo=0,so=null,co=null,lo=null,uo=!1,fo=!1,po=!1,mo=0,ho=0,go=null,_o=0;function vo(){throw Error(i(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!gr(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,i,a){return oo=a,so=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=e===null||e.memoizedState===null?Ls:Rs,po=!1,a=n(r,i),po=!1,fo&&(a=So(t,n,r,i)),xo(e),a}function xo(e){I.H=Is;var t=co!==null&&co.next!==null;if(oo=0,lo=co=so=null,uo=!1,ho=0,go=null,t)throw Error(i(300));e===null||tc||(e=e.dependencies,e!==null&&qi(e)&&(tc=!0))}function So(e,t,n,r){so=e;var a=0;do{if(fo&&(go=null),ho=0,fo=!1,25<=a)throw Error(i(301));if(a+=1,lo=co=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}I.H=zs,o=t(n,r)}while(fo);return o}function Co(){var e=I.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(co===null?null:co.memoizedState)!==e&&(so.flags|=1024),t}function wo(){var e=mo!==0;return mo=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}oo=0,lo=co=so=null,fo=!1,ho=mo=0,go=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lo===null?so.memoizedState=lo=e:lo=lo.next=e,lo}function Oo(){if(co===null){var e=so.alternate;e=e===null?null:e.memoizedState}else e=co.next;var t=lo===null?so.memoizedState:lo.next;if(t!==null)lo=t,co=e;else{if(e===null)throw so.alternate===null?Error(i(467)):Error(i(310));co=e,e={memoizedState:co.memoizedState,baseState:co.baseState,baseQueue:co.baseQueue,queue:co.queue,next:null},lo===null?so.memoizedState=lo=e:lo=lo.next=e}return lo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=ho;return ho+=1,go===null&&(go=[]),e=xa(go,e,t),t=so,(lo===null?t.memoizedState:lo.next)===null&&(t=t.alternate,I.H=t===null||t.memoizedState===null?Ls:Rs),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===C)return Yi(e)}throw Error(i(438,String(e)))}function Mo(e){var t=null,n=so.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=so.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ko(),so.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A;return t.index++,n}function No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),co,e)}function Fo(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(oo&f)===f:(Hl&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===oa&&(d=!0);else if((oo&p)===p){u=u.next,p===oa&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,so.lanes|=p,Xl|=p;f=u.action,po&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,so.lanes|=f,Xl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!gr(o,e.memoizedState)&&(tc=!0,d&&(n=sa,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Io(e){var t=Oo(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);gr(o,t.memoizedState)||(tc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function Lo(e,t,n){var r=so,a=Oo(),o=Oi;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!gr((co||a).memoizedState,n);if(s&&(a.memoizedState=n,tc=!0),a=a.queue,cs(Bo.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||lo!==null&&lo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),Bl===null)throw Error(i(349));o||oo&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=so.updateQueue,t===null?(t=ko(),so.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!gr(e,n)}catch{return!0}}function Ho(e){var t=Zr(e,2);t!==null&&bu(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),po){Ne(!0);try{n()}finally{Ne(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,co,typeof r==`function`?r:No)}function Go(e,t,n,r,a){if(Ns(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};I.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Ko(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),c=I.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),I.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(Oi){var n=Bl.formState;if(n!==null){a:{var r=so;if(Oi){if(Di){b:{for(var i=Di,a=Ai;i.nodeType!==8;){if(!a){i=null;break b}if(i=gf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Di=gf(i.nextSibling),r=i.data===`F!`;break a}}Mi(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,so,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,so,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,so,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),co,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===ga?va:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(so.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=co;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=so.updateQueue,t===null&&(t=ko(),so.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();so.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;co!==null&&r!==null&&yo(r,co.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(so.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){so.flags|=4;var t=so.updateQueue;if(t===null)t=ko(),so.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Oo().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(zl&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&yo(t,r[1]))return r[0];if(r=e(),po){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||oo&1073741824&&!(Hl&261930)?e.memoizedState=t:(e.memoizedState=n,e=yu(),so.lanes|=e,Xl|=e,n)}function ys(e,t,n,r){return gr(n,t)?n:Ka.current===null?!(oo&42)||oo&1073741824&&!(Hl&261930)?(tc=!0,e.memoizedState=n):(e=yu(),so.lanes|=e,Xl|=e,t):(e=vs(e,n,r),gr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=L.p;L.p=a!==0&&8>a?a:8;var o=I.T,s={};I.T=s,Ms(e,!1,t,n);try{var c=i(),l=I.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,ua(c,r),vu(e)):js(e,t,r,vu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},vu())}finally{L.p=a,o!==null&&s.types!==null&&(o.types=s.types),I.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=Cs(e).queue;bs(e,a,t,R,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:R,baseState:R,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:R},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},vu())}function Ts(){return Yi(op)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=vu();e=La(n);var r=Ra(t,e,n);r!==null&&(bu(r,t,n),za(r,t,n)),t={cache:na()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=vu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Xr(e,t,n,r),n!==null&&(bu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,vu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,gr(s,o))return Yr(e,t,i,0),Bl===null&&Jr(),!1}catch{}if(n=Xr(e,t,i,r),n!==null)return bu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:_d(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(i(479))}else t=Xr(e,n,r,2),t!==null&&bu(t,e,2)}function Ns(e){var t=e.alternate;return e===so||t!==null&&t===so}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Je(e,n)}}var Is={readContext:Yi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Yi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Yi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Ne(!0);try{e()}finally{Ne(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Ne(!0);try{n(t)}finally{Ne(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,so,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,so,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,so,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=so,a=Do();if(Oi){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Bl===null)throw Error(i(349));Hl&127||Ro(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,ss(Bo.bind(null,r,o,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,o,n,t),null),n},useId:function(){var e=Do(),t=Bl.identifierPrefix;if(Oi){var n=bi,r=yi;n=(r&~(1<<32-Pe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=_o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,so,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Os.bind(null,so)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(zl&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Yi,use:jo,useCallback:gs,useContext:Yi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Oo(),co.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Yi,use:jo,useCallback:gs,useContext:Yi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Oo();return co===null?vs(n,e,t):ys(n,co.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return co===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,co,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:m({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=vu(),i=La(r);i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(bu(t,e,r),za(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=vu(),i=La(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ra(e,i,r),t!==null&&(bu(t,e,r),za(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=vu(),r=La(n);r.tag=2,t!=null&&(r.callback=t),t=Ra(e,r,n),t!==null&&(bu(t,e,n),za(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!_r(n,r)||!_r(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=m({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Wr(e)}function Ks(e){console.error(e)}function qs(e){Wr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=La(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=La(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(cu===null?cu=new Set([this]):cu.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ki(t,n,a,!0),n=Za.current,n!==null){switch(n.tag){case 31:case 13:return Qa===null?Mu():n.alternate===null&&Yl===0&&(Yl=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Zu(e,r,a)),!1;case 22:return n.flags|=65536,r===ya?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),Zu(e,r,a)),!1}throw Error(i(435,n.tag))}return Zu(e,r,a),Mu(),!1}if(Oi)return t=Za.current,t===null?(r!==ji&&(t=Error(i(423),{cause:r}),Ri(di(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=di(r,n),a=Xs(e.stateNode,r,a),Ba(e,a),Yl!==4&&(Yl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==ji&&(e=Error(i(422),{cause:r}),Ri(di(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=di(o,n),tu===null?tu=[o]:tu.push(o),Yl!==4&&(Yl=2),t===null)return!0;r=di(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Xs(n.stateNode,r,e),Ba(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(cu===null||!cu.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Zs(a),Qs(a,e,n,r),Ba(n,a),!1}n=n.return}while(n!==null);return!1}var ec=Error(i(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Na(t,null,n,r):Ma(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Ji(t),r=bo(e,t,n,o,a,i),s=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(Oi&&s&&Ci(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!G(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ai(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?_r:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=ri(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(_r(a,r)&&e.ref===t.ref){if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ma(t,a===null?null:a.cachePool),a===null?Ya():Ja(t,a),to(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ma(t,null),Ya(),no(t)):(ma(t,a.cachePool),Ja(t,a),no(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=pa();return a=a===null?null:{parent:ta._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ma(t,null),Ya(),to(t),e!==null&&Ki(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Ma(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,ro(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(Oi){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(eo(t),(e=Di)?(e=ff(e,Ai),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=ci(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw Mi(t);return t.lanes=536870912,null}return lc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(eo(t),a){if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(tc||Ki(e,t,n,!1),a=(n&e.childLanes)!==0,tc||a){if(r=Bl,r!==null&&(s=Ye(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,Zr(e,s),bu(r,e,s),ec;Mu(),t=uc(e,t,n)}else e=o.treeContext,Di=gf(s.nextSibling),Ei=t,Oi=!0,ki=null,Ai=!1,e!==null&&Ti(t,e),t=lc(t,r),t.flags|=4096;return t}return e=ri(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Ji(t),n=bo(e,t,n,r,void 0,i),r=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(Oi&&r&&Ci(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Ji(t),t.updateQueue=null,n=So(t,r,n,i),xo(e),r=wo(),e!==null&&!tc?(To(e,t,a),Dc(e,t,a)):(Oi&&r&&Ci(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Ji(t),t.stateNode===null){var a=ei,o=n.contextType;typeof o==`object`&&o&&(a=Yi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},Fa(t),o=n.contextType,a.context=typeof o==`object`&&o?Yi(o):ei,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Ua(t,r,a,i),Ha(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ei,typeof u==`object`&&u&&(o=Yi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Pa=!1;var f=t.memoizedState;a.state=f,Ua(t,r,a,i),Ha(),l=t.memoizedState,s||f!==l||Pa?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Pa||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ia(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ei,typeof l==`object`&&l&&(c=Yi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Pa=!1,f=t.memoizedState,a.state=f,Ua(t,r,a,i),Ha();var p=t.memoizedState;o!==d||f!==p||Pa||e!==null&&e.dependencies!==null&&qi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Pa||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&qi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Ma(t,e.child,null,i),t.child=Ma(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Ii(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:ha()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=$l),e}function bc(e,t,n){var r=t.pendingProps,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(io.current&2)),s&&(a=!0,t.flags&=-129),s=!!(t.flags&32),t.flags&=-33,e===null){if(Oi){if(a?$a(t):no(t),(e=Di)?(e=ff(e,Ai),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:vi===null?null:{id:yi,overflow:bi},retryLane:536870912,hydrationErrors:null},n=ci(e),n.return=t,t.child=n,Ei=t,Di=null)):e=null,e===null)throw Mi(t);return mf(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,a?(no(t),a=t.mode,c=Sc({mode:`hidden`,children:c},a),r=oi(r,a,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(null,r)):($a(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(o)t.flags&256?($a(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(no(t),c=r.fallback,a=t.mode,r=Sc({mode:`visible`,children:r.children},a),c=oi(c,a,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Ma(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,s,n),t.memoizedState=_c,t=sc(null,r)):(no(t),t.child=e.child,t.flags|=128,t=null);else if($a(t),mf(c)){if(s=c.nextSibling&&c.nextSibling.dataset,s)var u=s.dgst;s=u,r=Error(i(419)),r.stack=``,r.digest=s,Ri({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Ki(e,t,n,!1),s=(n&e.childLanes)!==0,tc||s){if(s=Bl,s!==null&&(r=Ye(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,Zr(e,r),bu(s,e,r),ec;pf(c)||Mu(),t=Cc(e,t,n)}else pf(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Di=gf(c.nextSibling),Ei=t,Oi=!0,ki=null,Ai=!1,e!==null&&Ti(t,e),t=xc(t,r.children),t.flags|=4096);return t}return a?(no(t),c=r.fallback,a=t.mode,l=e.child,u=l.sibling,r=ri(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=oi(c,a,n,null),c.flags|=2):c=ri(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(a=c.cachePool,a===null?a=ha():(l=ta._currentValue,a=a.parent===l?a:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:a}),r.memoizedState=c,r.childLanes=yc(e,s,n),t.memoizedState=_c,sc(e.child,r)):($a(t),n=e.child,e=n.sibling,n=ri(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ni(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Ma(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Wi(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=io.current,s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,V(io,o),nc(e,t,r,n),r=Oi?hi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ao(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ao(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Xl|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(Ki(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ri(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ri(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&qi(e)))}function kc(e,t,n){switch(t.tag){case 3:oe(t,t.stateNode.containerInfo),Hi(t,ta,e.memoizedState.cache),Ii();break;case 27:case 5:ce(t);break;case 4:oe(t,t.stateNode.containerInfo);break;case 10:Hi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,eo(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?($a(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):($a(t),t.flags|=128,null);$a(t);break;case 19:var i=!!(e.flags&128);if(r=(n&t.childLanes)!==0,r||=(Ki(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(io,io.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Hi(t,ta,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}}else tc=!1,Oi&&t.flags&1048576&&Si(t,hi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=Sa(t.elementType),t.type=e,typeof e==`function`)G(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===w){t.tag=11,t=rc(null,t,e,r,n);break a}if(a===D){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=P(e)||e,Error(i(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Ws(r,t.pendingProps),hc(e,t,r,a,n);case 3:a:{if(oe(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,Ia(e,t),Ua(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Hi(t,ta,r),r!==o.cache&&Gi(t,[ta],n,!0),Ha(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=gc(e,t,r,n);break a}if(r!==a){a=di(Error(i(424)),t),Ri(a),t=gc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(Di=gf(e.firstChild),Ei=t,Oi=!0,ki=null,Ai=!0,n=Na(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ii(),r===a){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=Lf(t.type,null,t.pendingProps,null))?t.memoizedState=n:Oi||(n=t.type,e=t.pendingProps,r=Jd(ie.current).createElement(n),r[tt]=t,r[nt]=e,Hd(r,n,e),W(r),t.stateNode=r):t.memoizedState=Lf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return ce(t),e===null&&Oi&&(r=t.stateNode=bf(t.type,t.pendingProps,ie.current),Ei=t,Ai=!0,a=Di,of(t.type)?(_f=a,Di=gf(r.firstChild)):Di=a),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Oi&&((a=r=Di)&&(r=uf(r,t.type,t.pendingProps,Ai),r===null?a=!1:(t.stateNode=r,Ei=t,Di=gf(r.firstChild),Ai=!1,a=!0)),a||Mi(t)),ce(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,Zd(a,o)?r=null:s!==null&&Zd(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=bo(e,t,Co,null,null,n),op._currentValue=a),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&Oi&&((e=n=Di)&&(n=df(n,t.pendingProps,Ai),n===null?e=!1:(t.stateNode=n,Ei=t,Di=null,e=!0)),e||Mi(t)),null;case 13:return bc(e,t,n);case 4:return oe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Ma(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Hi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ji(t),a=Yi(a),r=r(a),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Ji(t),r=Yi(ta),e===null?(a=pa(),a===null&&(a=Bl,o=na(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},Fa(t),Hi(t,ta,a)):((e.lanes&n)!==0&&(Ia(e,t),Ua(t,null,null,n),Ha()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,Hi(t,ta,r),r!==a.cache&&Gi(t,[ta],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),Hi(t,ta,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=!!(e.mode&32))&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(ku())e.flags|=8192;else throw Ca=ya,_a}}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Qf(t)){if(ku())e.flags|=8192;else throw Ca=ya,_a}}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Ue(),e.lanes|=t,eu|=t)}function Fc(e,t){if(!Oi)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(wi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ui(ta),se(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Fi(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Li())),Ic(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(jc(t),o===null?(Ic(t),Mc(t,a,null,r,n)):(Ic(t),Nc(t,o))):o?o===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,o)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,a,e,r,n)),null;case 27:if(le(t),n=ie.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}e=ne.current,Fi(t)?Ni(t,e):(e=bf(a,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(le(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return Ic(t),null}if(o=ne.current,Fi(t))Ni(t,o);else{var s=Jd(ie.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[tt]=t,o[nt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(Hd(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=ie.current,Fi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Ei,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[tt]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||zd(e.nodeValue,n)),e||Mi(t,!0)}else e=Jd(e).createTextNode(r),e[tt]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Fi(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[tt]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ro(t),t):(ro(t),null);if(t.flags&128)throw Error(i(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Fi(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[tt]=t}else Ii(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),a=!1}else a=Li(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(ro(t),t):(ro(t),null)}return ro(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Pc(t,t.updateQueue),Ic(t),null);case 4:return se(),e===null&&kd(t.stateNode.containerInfo),Ic(t),null;case 10:return Ui(t.type),Ic(t),null;case 19:if(B(io),r=t.memoizedState,r===null)return Ic(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)Fc(r,!1);else{if(Yl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=ao(e),o!==null){for(t.flags|=128,Fc(r,!1),e=o.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)ii(n,e),n=n.sibling;return V(io,io.current&1|2),Oi&&xi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Se()>ou&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}}else{if(!a){if(e=ao(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!o.alternate&&!Oi)return Ic(t),null}else 2*Se()-r.renderingStartTime>ou&&n!==536870912&&(t.flags|=128,a=!0,Fc(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}return r.tail===null?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Se(),e.sibling=null,n=io.current,V(io,a?n&1|2:n&1),Oi&&xi(t,r.treeForkCount),e);case 22:case 23:return ro(t),Xa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&B(fa),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ui(ta),Ic(t),null;case 25:return null;case 30:return null}throw Error(i(156,t.tag))}function Rc(e,t){switch(wi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ui(ta),se(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return le(t),null;case 31:if(t.memoizedState!==null){if(ro(t),t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ro(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));Ii()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return B(io),null;case 4:return se(),null;case 10:return Ui(t.type),null;case 22:case 23:return ro(t),Xa(),e!==null&&B(fa),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ui(ta),null;case 25:return null;default:return null}}function zc(e,t){switch(wi(t),t.tag){case 3:Ui(ta),se();break;case 26:case 27:case 5:le(t);break;case 4:se();break;case 31:t.memoizedState!==null&&ro(t);break;case 13:ro(t);break;case 19:B(io);break;case 10:Ui(t.type);break;case 22:case 23:ro(t),Xa(),e!==null&&B(fa);break;case 24:Ui(ta)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Xu(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Xu(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Xu(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{Ga(t,n)}catch(t){Xu(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Xu(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Xu(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){Xu(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Xu(e,t,n)}else n.current=null}}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Xu(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Ud(r,e.type,n,t),r[nt]=t}catch(t){Xu(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&of(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(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.tag===27&&of(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=qt));else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&of(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Hd(t,r,n),t[tt]=e,t[nt]=n}catch(t){Xu(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Kd=hp,e=xr(e),Sr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===r&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(qd={focusedElem:e,selectionRange:n},hp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,o=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&o!==null){e=void 0,n=t,a=o.memoizedProps,o=o.memoizedState,r=n.stateNode;try{var h=Ws(n.type,a);e=r.getSnapshotBeforeUpdate(h,o),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Xu(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)lf(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:lf(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(i(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Xu(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Xu(n,n.return,e)}}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{Ga(e,t)}catch(e){Xu(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=ed.bind(null,n),hf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,!!(n.subtreeFlags&8772)):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&lt(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Me&&typeof Me.onCommitFiberUnmount==`function`)try{Me.onCommitFiberUnmount(je,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;of(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),xf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null){if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Xu(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Xu(n,t,e)}}break;case 18:sl!==null&&(cl?(e=sl,sf(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Vp(e)):sf(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Vp(e)}catch(e){Xu(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Vp(e)}catch(e){Xu(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(i(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=td.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 27:if(of(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(i(160));ul(o,s,a),sl=null,cl=!1,o=a.alternate,o!==null&&(o.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var o=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null){if(r===null){if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;b:switch(r){case`title`:o=a.getElementsByTagName(`title`)[0],(!o||o[ct]||o[tt]||o.namespaceURI===`http://www.w3.org/2000/svg`||o.hasAttribute(`itemprop`))&&(o=a.createElement(r),a.head.insertBefore(o,a.querySelector(`head > title`))),Hd(o,r,n),o[tt]=e,W(o),r=o;break a;case`link`:var s=Yf(`link`,`href`,a).get(r+(n.href||``));if(s){for(var c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&o.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&o.getAttribute(`title`)===(n.title==null?null:n.title)&&o.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;case`meta`:if(s=Yf(`meta`,`content`,a).get(r+(n.content||``))){for(c=0;c<s.length;c++)if(o=s[c],o.getAttribute(`content`)===(n.content==null?null:``+n.content)&&o.getAttribute(`name`)===(n.name==null?null:n.name)&&o.getAttribute(`property`)===(n.property==null?null:n.property)&&o.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&o.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){s.splice(c,1);break b}}o=a.createElement(r),Hd(o,r,n),a.head.appendChild(o);break;default:throw Error(i(468,r))}o[tt]=e,W(o),r=o}e.stateNode=r}else Xf(a,e.type,e.stateNode)}else e.stateNode=Wf(a,r,e.memoizedProps)}else o===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(o===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):o.count--,r===null?Xf(a,e.type,e.stateNode):Wf(a,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){a=e.stateNode;try{zt(a,``)}catch(t){Xu(e,e.return,t)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,qc(e,a,n===null?a:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(i(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Xu(e,e.return,t)}}break;case 3:if(Jf=null,a=gl,gl=wf(t.containerInfo),hl(t,e),gl=a,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Vp(t.containerInfo)}catch(t){Xu(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=wf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(iu=Se()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||a,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(o=l.stateNode,a)s=o.style,typeof s.setProperty==`function`?s.setProperty(`display`,`none`,`important`):s.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Xu(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?``:l.memoizedProps}catch(e){Xu(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;a?cf(m,!0):cf(l.stateNode,!1)}catch(e){Xu(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(i(160));switch(n.tag){case 27:var a=n.stateNode;Zc(e,Yc(e),a);break;case 5:var o=n.stateNode;n.flags&32&&(zt(o,``),n.flags&=-33),Zc(e,Yc(e),o);break;case 3:case 4:var s=n.stateNode.containerInfo;Xc(e,Yc(e),s);break;default:throw Error(i(161))}}catch(t){Xu(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:xf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=!!(t.subtreeFlags&8772),t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Xu(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Wa(c[i],s)}catch(e){Xu(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&ra(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ra(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Xu(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,!!(t.subtreeFlags&10256)||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&$f(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=wf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:ra(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Yi(ta),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Yi(ta).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,zl=0,Bl=null,Vl=null,Hl=0,Ul=0,Wl=null,Gl=!1,Kl=!1,ql=!1,Jl=0,Yl=0,Xl=0,Zl=0,Ql=0,$l=0,eu=0,tu=null,nu=null,ru=!1,iu=0,au=0,ou=1/0,su=null,cu=null,lu=0,uu=null,du=null,fu=0,pu=0,mu=null,hu=null,gu=0,_u=null;function vu(){return zl&2&&Hl!==0?Hl&-Hl:I.T===null?Qe():_d()}function yu(){if($l===0){if(!(Hl&536870912)||Oi){var e=ze;ze<<=1,!(ze&3932160)&&(ze=262144),$l=e}else $l=536870912}return e=Za.current,e!==null&&(e.flags|=32),$l}function bu(e,t,n){(e===Bl&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)&&(Du(e,0),wu(e,Hl,$l,!1)),Ge(e,n),(!(zl&2)||e!==Bl)&&(e===Bl&&(!(zl&2)&&(Zl|=n),Yl===4&&wu(e,Hl,$l,!1)),ld(e))}function xu(e,t,n){if(zl&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||Ve(e,t),a=r?Fu(e,t):Nu(e,t,!0),o=r;do{if(a===0){Kl&&!r&&wu(e,t,0,!1);break}if(n=e.current.alternate,o&&!Cu(n)){a=Nu(e,t,!1),o=!1;continue}if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=tu;var l=c.current.memoizedState.isDehydrated;if(l&&(Du(c,s).flags|=256),s=Nu(c,s,!1),s!==2){if(ql&&!l){c.errorRecoveryDisabledLanes|=o,Zl|=o,a=4;break a}o=nu,nu=a,o!==null&&(nu===null?nu=o:nu.push.apply(nu,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Du(e,0),wu(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t)break;case 6:wu(r,t,$l,!Gl);break a;case 2:nu=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=iu+300-Se(),10<a)){if(wu(r,t,$l,!Gl),U(r,0,!0)!==0)break a;fu=t,r.timeoutHandle=ef(Su.bind(null,r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,`Throttled`,-0,0),a);break a}Su(r,n,nu,su,ru,t,$l,Zl,eu,Gl,o,null,-0,0)}break}while(1);ld(e)}function Su(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:qt},jl(t,a,d);var m=(a&62914560)===a?iu-Se():(a&4194048)===a?au-Se():0;if(m=tp(d,m),m!==null){fu=a,e.cancelPendingCommit=m(Hu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),wu(e,a,o,!l);return}}Hu(e,t,a,n,r,i,o,s,c)}function Cu(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!gr(a(),i))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;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 wu(e,t,n,r){t&=~Ql,t&=~Zl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Pe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&qe(e,n,t)}function Tu(){return zl&6?!0:(ud(0,!1),!1)}function Eu(){if(Vl!==null){if(Ul===0)var e=Vl.return;else e=Vl,Vi=Bi=null,Eo(e),Ea=null,Da=0,e=Vl;for(;e!==null;)zc(e.alternate,e),e=e.return;Vl=null}}function Du(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,tf(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),fu=0,Eu(),Bl=e,Vl=n=ri(e.current,null),Hl=t,Ul=0,Wl=null,Gl=!1,Kl=Ve(e,t),ql=!1,eu=$l=Ql=Zl=Xl=Yl=0,nu=tu=null,ru=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-Pe(r),a=1<<i;t|=e[i],r&=~a}return Jl=t,Jr(),n}function Ou(e,t){so=null,I.H=Is,t===ga||t===va?(t=wa(),Ul=3):t===_a?(t=wa(),Ul=4):Ul=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,Wl=t,Vl===null&&(Yl=1,Js(e,di(t,e.current)))}function ku(){var e=Za.current;return e===null?!0:(Hl&4194048)===Hl?Qa===null:(Hl&62914560)===Hl||Hl&536870912?e===Qa:!1}function Au(){var e=I.H;return I.H=Is,e===null?Is:e}function ju(){var e=I.A;return I.A=Ll,e}function Mu(){Yl=4,Gl||(Hl&4194048)!==Hl&&Za.current!==null||(Kl=!0),!(Xl&134217727)&&!(Zl&134217727)||Bl===null||wu(Bl,Hl,$l,!1)}function Nu(e,t,n){var r=zl;zl|=2;var i=Au(),a=ju();(Bl!==e||Hl!==t)&&(su=null,Du(e,t)),t=!1;var o=Yl;a:do try{if(Ul!==0&&Vl!==null){var s=Vl,c=Wl;switch(Ul){case 8:Eu(),o=6;break a;case 3:case 2:case 9:case 6:Za.current===null&&(t=!0);var l=Ul;if(Ul=0,Wl=null,zu(e,s,c,l),n&&Kl){o=0;break a}break;default:l=Ul,Ul=0,Wl=null,zu(e,s,c,l)}}Pu(),o=Yl;break}catch(t){Ou(e,t)}while(1);return t&&e.shellSuspendCounter++,Vi=Bi=null,zl=r,I.H=i,I.A=a,Vl===null&&(Bl=null,Hl=0,Jr()),o}function Pu(){for(;Vl!==null;)Lu(Vl)}function Fu(e,t){var n=zl;zl|=2;var r=Au(),a=ju();Bl!==e||Hl!==t?(su=null,ou=Se()+500,Du(e,t)):Kl=Ve(e,t);a:do try{if(Ul!==0&&Vl!==null){t=Vl;var o=Wl;b:switch(Ul){case 1:Ul=0,Wl=null,zu(e,t,o,1);break;case 2:case 9:if(ba(o)){Ul=0,Wl=null,Ru(t);break}t=function(){Ul!==2&&Ul!==9||Bl!==e||(Ul=7),ld(e)},o.then(t,t);break a;case 3:Ul=7;break a;case 4:Ul=5;break a;case 7:ba(o)?(Ul=0,Wl=null,Ru(t)):(Ul=0,Wl=null,zu(e,t,o,7));break;case 5:var s=null;switch(Vl.tag){case 26:s=Vl.memoizedState;case 5:case 27:var c=Vl;if(s?Qf(s):c.stateNode.complete){Ul=0,Wl=null;var l=c.sibling;if(l!==null)Vl=l;else{var u=c.return;u===null?Vl=null:(Vl=u,Bu(u))}break b}}Ul=0,Wl=null,zu(e,t,o,5);break;case 6:Ul=0,Wl=null,zu(e,t,o,6);break;case 8:Eu(),Yl=6;break a;default:throw Error(i(462))}}Iu();break}catch(t){Ou(e,t)}while(1);return Vi=Bi=null,I.H=r,I.A=a,zl=n,Vl===null?(Bl=null,Hl=0,Jr(),Yl):0}function Iu(){for(;Vl!==null&&!be();)Lu(Vl)}function Lu(e){var t=Ac(e.alternate,e,Jl);e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function Ru(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Hl);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Hl);break;case 5:Eo(t);default:zc(n,t),t=Vl=ii(t,Jl),t=Ac(n,t,Jl)}e.memoizedProps=e.pendingProps,t===null?Bu(e):Vl=t}function zu(e,t,n,r){Vi=Bi=null,Eo(t),Ea=null,Da=0;var i=t.return;try{if($s(e,i,t,n,Hl)){Yl=1,Js(e,di(n,e.current)),Vl=null;return}}catch(t){if(i!==null)throw Vl=i,t;Yl=1,Js(e,di(n,e.current)),Vl=null;return}t.flags&32768?(Oi||r===1?e=!0:Kl||Hl&536870912?e=!1:(Gl=e=!0,(r===2||r===9||r===3||r===6)&&(r=Za.current,r!==null&&r.tag===13&&(r.flags|=16384))),Vu(t,e)):Bu(t)}function Bu(e){var t=e;do{if(t.flags&32768){Vu(t,Gl);return}e=t.return;var n=Lc(t.alternate,t,Jl);if(n!==null){Vl=n;return}if(t=t.sibling,t!==null){Vl=t;return}Vl=t=e}while(t!==null);Yl===0&&(Yl=5)}function Vu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,Vl=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Vl=e;return}Vl=e=n}while(e!==null);Yl=6,Vl=null}function Hu(e,t,n,r,a,o,s,c,l){e.cancelPendingCommit=null;do qu();while(lu!==0);if(zl&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));if(o=t.lanes|t.childLanes,o|=qr,Ke(e,n,o,s,c,l),e===Bl&&(Vl=Bl=null,Hl=0),du=t,uu=e,fu=n,pu=o,mu=a,hu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,nd(Ee,function(){return Ju(),null})):(e.callbackNode=null,e.callbackPriority=0),r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=I.T,I.T=null,a=L.p,L.p=2,s=zl,zl|=4;try{il(e,t,n)}finally{zl=s,L.p=a,I.T=r}}lu=1,Uu(),Wu(),Gu()}}function Uu(){if(lu===1){lu=0;var e=uu,t=du,n=!!(t.flags&13878);if(t.subtreeFlags&13878||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=zl;zl|=4;try{_l(t,e);var a=qd,o=xr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&br(s.ownerDocument.documentElement,s)){if(c!==null&&Sr(s)){var l=c.start,u=c.end;if(u===void 0&&(u=l),`selectionStart`in s)s.selectionStart=l,s.selectionEnd=Math.min(u,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),m=s.textContent.length,h=Math.min(c.start,m),g=c.end===void 0?h:Math.min(c.end,m);!p.extend&&h>g&&(o=g,g=h,h=o);var _=yr(s,h),v=yr(s,g);if(_&&v&&(p.rangeCount!==1||p.anchorNode!==_.node||p.anchorOffset!==_.offset||p.focusNode!==v.node||p.focusOffset!==v.offset)){var y=d.createRange();y.setStart(_.node,_.offset),p.removeAllRanges(),h>g?(p.addRange(y),p.extend(v.node,v.offset)):(y.setEnd(v.node,v.offset),p.addRange(y))}}}}for(d=[],p=s;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof s.focus==`function`&&s.focus(),s=0;s<d.length;s++){var b=d[s];b.element.scrollLeft=b.left,b.element.scrollTop=b.top}}hp=!!Kd,qd=Kd=null}finally{zl=i,L.p=r,I.T=n}}e.current=t,lu=2}}function Wu(){if(lu===2){lu=0;var e=uu,t=du,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=I.T,I.T=null;var r=L.p;L.p=2;var i=zl;zl|=4;try{al(e,t.alternate,t)}finally{zl=i,L.p=r,I.T=n}}lu=3}}function Gu(){if(lu===4||lu===3){lu=0,xe();var e=uu,t=du,n=fu,r=hu;t.subtreeFlags&10256||t.flags&10256?lu=5:(lu=0,du=uu=null,Ku(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(cu=null),Ze(n),t=t.stateNode,Me&&typeof Me.onCommitFiberRoot==`function`)try{Me.onCommitFiberRoot(je,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=I.T,i=L.p,L.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,L.p=i}}fu&3&&qu(),ld(e),i=e.pendingLanes,n&261930&&i&42?e===_u?gu++:(gu=0,_u=e):gu=0,ud(0,!1)}}function Ku(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ra(t)))}function qu(){return Uu(),Wu(),Gu(),Ju()}function Ju(){if(lu!==5)return!1;var e=uu,t=pu;pu=0;var n=Ze(fu),r=I.T,a=L.p;try{L.p=32>n?32:n,I.T=null,n=mu,mu=null;var o=uu,s=fu;if(lu=0,du=uu=null,fu=0,zl&6)throw Error(i(331));var c=zl;if(zl|=4,Pl(o.current),El(o,o.current,s,n),zl=c,ud(0,!1),Me&&typeof Me.onPostCommitFiberRoot==`function`)try{Me.onPostCommitFiberRoot(je,o)}catch{}return!0}finally{L.p=a,I.T=r,Ku(e,t)}}function Yu(e,t,n){t=di(n,t),t=Xs(e.stateNode,t,2),e=Ra(e,t,2),e!==null&&(Ge(e,2),ld(e))}function Xu(e,t,n){if(e.tag===3)Yu(e,e,n);else for(;t!==null;){if(t.tag===3){Yu(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(cu===null||!cu.has(r))){e=di(n,e),n=Zs(2),r=Ra(t,n,2),r!==null&&(Qs(n,r,t,e),Ge(r,2),ld(r));break}}t=t.return}}function Zu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(ql=!0,i.add(n),e=Qu.bind(null,e,t,n),t.then(e,e))}function Qu(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Bl===e&&(Hl&n)===n&&(Yl===4||Yl===3&&(Hl&62914560)===Hl&&300>Se()-iu?!(zl&2)&&Du(e,0):Ql|=n,eu===Hl&&(eu=0)),ld(e)}function $u(e,t){t===0&&(t=Ue()),e=Zr(e,t),e!==null&&(Ge(e,t),ld(e))}function ed(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$u(e,n)}function td(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),$u(e,n)}function nd(e,t){return ve(e,t)}var rd=null,id=null,ad=!1,od=!1,sd=!1,cd=0;function ld(e){e!==id&&e.next===null&&(id===null?rd=id=e:id=id.next=e),od=!0,ad||(ad=!0,gd())}function ud(e,t){if(!sd&&od){sd=!0;do for(var n=!1,r=rd;r!==null;){if(!t){if(e!==0){var i=r.pendingLanes;if(i===0)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-Pe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,hd(r,a))}else a=Hl,a=U(r,r===Bl?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Ve(r,a)||(n=!0,hd(r,a))}r=r.next}while(n);sd=!1}}function dd(){fd()}function fd(){od=ad=!1;var e=0;cd!==0&&$d()&&(e=cd);for(var t=Se(),n=null,r=rd;r!==null;){var i=r.next,a=pd(r,t);a===0?(r.next=null,n===null?rd=i:n.next=i,i===null&&(id=n)):(n=r,(e!==0||a&3)&&(od=!0)),r=i}lu!==0&&lu!==5||ud(e,!1),cd!==0&&(cd=0)}function pd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Pe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=He(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Bl,n=Hl,n=U(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Ul===2||Ul===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&ye(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ve(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&ye(r),Ze(n)){case 2:case 8:n=Te;break;case 32:n=Ee;break;case 268435456:n=Oe;break;default:n=Ee}return r=md.bind(null,e),n=ve(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&ye(r),e.callbackPriority=2,e.callbackNode=null,2}function md(e,t){if(lu!==0&&lu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(qu()&&e.callbackNode!==n)return null;var r=Hl;return r=U(e,e===Bl?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(xu(e,r,t),pd(e,Se()),e.callbackNode!=null&&e.callbackNode===n?md.bind(null,e):null)}function hd(e,t){if(qu())return null;xu(e,t,!0)}function gd(){rf(function(){zl&6?ve(we,dd):fd()})}function _d(){if(cd===0){var e=oa;e===0&&(e=Re,Re<<=1,!(Re&261888)&&(Re=256)),cd=e}return cd}function vd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Kt(``+e)}function yd(e,t){var n=t.ownerDocument.createElement(`input`);return n.name=t.name,n.value=t.value,e.id&&n.setAttribute(`form`,e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function bd(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=vd((i[nt]||null).action),o=r.submitter;o&&(t=(t=o[nt]||null)?vd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new hn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(cd!==0){var e=o?yd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?yd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var xd=0;xd<Hr.length;xd++){var Sd=Hr[xd];Ur(Sd.toLowerCase(),`on`+(Sd[0].toUpperCase()+Sd.slice(1)))}Ur(Pr,`onAnimationEnd`),Ur(Fr,`onAnimationIteration`),Ur(Ir,`onAnimationStart`),Ur(`dblclick`,`onDoubleClick`),Ur(`focusin`,`onFocus`),Ur(`focusout`,`onBlur`),Ur(Lr,`onTransitionRun`),Ur(Rr,`onTransitionStart`),Ur(zr,`onTransitionCancel`),Ur(Br,`onTransitionEnd`),_t(`onMouseEnter`,[`mouseout`,`mouseover`]),_t(`onMouseLeave`,[`mouseout`,`mouseover`]),_t(`onPointerEnter`,[`pointerout`,`pointerover`]),_t(`onPointerLeave`,[`pointerout`,`pointerover`]),gt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),gt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),gt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),gt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),gt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Cd=`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(` `),wd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Cd));function Td(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Wr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Wr(e)}i.currentTarget=null,a=c}}}}function Ed(e,t){var n=t[it];n===void 0&&(n=t[it]=new Set);var r=e+`__bubble`;n.has(r)||(Ad(t,e,2,!1),n.add(r))}function Dd(e,t,n){var r=0;t&&(r|=4),Ad(n,e,r,t)}var Od=`_reactListening`+Math.random().toString(36).slice(2);function kd(e){if(!e[Od]){e[Od]=!0,mt.forEach(function(t){t!==`selectionchange`&&(wd.has(t)||Dd(t,!1,e),Dd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Od]||(t[Od]=!0,Dd(`selectionchange`,!1,t))}}function Ad(e,t,n,r){switch(Sp(t)){case 2:var i=gp;break;case 8:i=_p;break;default:i=vp}n=i.bind(null,t,n,e),i=void 0,!rn||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function jd(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=ut(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}en(function(){var r=a,i=Yt(n),s=[];a:{var c=Vr.get(e);if(c!==void 0){var l=hn,u=e;switch(e){case`keypress`:if(un(n)===0)break a;case`keydown`:case`keyup`:l=Nn;break;case`focusin`:u=`focus`,l=wn;break;case`focusout`:u=`blur`,l=wn;break;case`beforeblur`:case`afterblur`:l=wn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Sn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Cn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=Fn;break;case Pr:case Fr:case Ir:l=Tn;break;case Br:l=In;break;case`scroll`:case`scrollend`:l=_n;break;case`wheel`:l=Ln;break;case`copy`:case`cut`:case`paste`:l=En;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=Pn;break;case`toggle`:case`beforetoggle`:l=Rn}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=tn(m,p),g!=null&&d.push(Md(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(c=e===`mouseover`||e===`pointerover`,l=e===`mouseout`||e===`pointerout`,c&&n!==Jt&&(u=n.relatedTarget||n.fromElement)&&(ut(u)||u[rt]))break a;if((l||c)&&(c=i.window===i?i:(c=i.ownerDocument)?c.defaultView||c.parentWindow:window,l?(u=n.relatedTarget||n.toElement,l=r,u=u?ut(u):null,u!==null&&(f=o(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(l=null,u=r),l!==u)){if(d=Sn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Pn,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=l==null?c:ft(l),h=u==null?c:ft(u),c=new d(g,m+`leave`,l,n,i),c.target=f,c.relatedTarget=h,g=null,ut(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,l&&u)b:{for(d=Pd,p=l,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;l!==null&&Fd(s,c,l,d,!1),u!==null&&f!==null&&Fd(s,f,u,d,!0)}}a:{if(c=r?ft(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var v=ir;else if(Qn(c)){if(ar)v=mr;else{v=fr;var y=dr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&Ut(r.elementType)&&(v=ir):v=pr;if(v&&=v(e,r)){$n(s,v,n,i);break a}y&&y(e,c,r),e===`focusout`&&r&&c.type===`number`&&r.memoizedProps.value!=null&&Ft(c,`number`,c.value)}switch(y=r?ft(r):window,e){case`focusin`:(Qn(y)||y.contentEditable===`true`)&&(wr=y,Tr=r,Er=null);break;case`focusout`:Er=Tr=wr=null;break;case`mousedown`:Dr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Dr=!1,Or(s,n,i);break;case`selectionchange`:if(Cr)break;case`keydown`:case`keyup`:Or(s,n,i)}var b;if(Bn)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Jn?Kn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Un&&n.locale!==`ko`&&(Jn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Jn&&(b=ln()):(on=i,sn=`value`in on?on.value:on.textContent,Jn=!0)),y=Nd(r,x),0<y.length&&(x=new Dn(x,e,null,n,i),s.push({event:x,listeners:y}),b?x.data=b:(b=qn(n),b!==null&&(x.data=b)))),(b=Hn?Yn(e,n):Xn(e,n))&&(x=Nd(r,`onBeforeInput`),0<x.length&&(y=new Dn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:y,listeners:x}),y.data=b)),bd(s,e,r,n,i)}Td(s,t)})}function Md(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Nd(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;if(i=i.tag,i!==5&&i!==26&&i!==27||a===null||(i=tn(e,n),i!=null&&r.unshift(Md(e,i,a)),i=tn(e,t),i!=null&&r.push(Md(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Pd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Fd(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(s=s.tag,c!==null&&c===r)break;s!==5&&s!==26&&s!==27||l===null||(c=l,i?(l=tn(n,a),l!=null&&o.unshift(Md(n,l,c))):i||(l=tn(n,a),l!=null&&o.push(Md(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Id=/\r\n?/g,Ld=/\u0000|\uFFFD/g;function Rd(e){return(typeof e==`string`?e:``+e).replace(Id,`
9
+ `).replace(Ld,``)}function zd(e,t){return t=Rd(t),Rd(e)===t}function Bd(e,t,n,r,a,o){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&zt(e,``+r);break;case`className`:Ct(e,`class`,r);break;case`tabIndex`:Ct(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:Ct(e,n,r);break;case`style`:Ht(e,r,o);break;case`data`:if(t!==`object`){Ct(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&Bd(e,t,`name`,a.name,a,null),Bd(e,t,`formEncType`,a.formEncType,a,null),Bd(e,t,`formMethod`,a.formMethod,a,null),Bd(e,t,`formTarget`,a.formTarget,a,null)):(Bd(e,t,`encType`,a.encType,a,null),Bd(e,t,`method`,a.method,a,null),Bd(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Kt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Kt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Ed(`beforetoggle`,e),Ed(`toggle`,e),St(e,`popover`,r);break;case`xlinkActuate`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:wt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:wt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:St(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Wt.get(n)||n,St(e,n,r))}}function Vd(e,t,n,r,a,o){switch(n){case`style`:Ht(e,r,o);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?zt(e,r):(typeof r==`number`||typeof r==`bigint`)&&zt(e,``+r);break;case`onScroll`:r!=null&&Ed(`scroll`,e);break;case`onScrollEnd`:r!=null&&Ed(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!ht.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),t=n.slice(2,a?n.length-7:void 0),o=e[nt]||null,o=o==null?null:o[n],typeof o==`function`&&e.removeEventListener(t,o,a),typeof r==`function`)){typeof o!=`function`&&o!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):St(e,n,r)}}}function Hd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Ed(`error`,e),Ed(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,o,s,n,null)}}a&&Bd(e,t,`srcSet`,n.srcSet,n,null),r&&Bd(e,t,`src`,n.src,n,null);return;case`input`:Ed(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:Bd(e,t,r,d,n,null)}}Pt(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Ed(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:Bd(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&It(e,!!r,n,!0):It(e,!!r,t,!1);return;case`textarea`:for(s in Ed(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:Bd(e,t,s,c,n,null)}Rt(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Bd(e,t,l,r,n,null)}return;case`dialog`:Ed(`beforetoggle`,e),Ed(`toggle`,e),Ed(`cancel`,e),Ed(`close`,e);break;case`iframe`:case`object`:Ed(`load`,e);break;case`video`:case`audio`:for(r=0;r<Cd.length;r++)Ed(Cd[r],e);break;case`image`:Ed(`error`,e),Ed(`load`,e);break;case`details`:Ed(`toggle`,e);break;case`embed`:case`source`:case`link`:Ed(`error`,e),Ed(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:Bd(e,t,u,r,n,null)}return;default:if(Ut(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Vd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&Bd(e,t,c,r,n,null))}function Ud(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||Bd(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:o=m;break;case`name`:a=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:s=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&Bd(e,t,p,m,r,f)}}Nt(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||Bd(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:p=o;break;case`defaultValue`:c=o;break;case`multiple`:s=o;default:o!==l&&Bd(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?It(e,!!n,n?[]:``,!1):It(e,!!n,t,!0)):It(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:Bd(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:p=a;break;case`defaultValue`:m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&Bd(e,t,s,a,r,o)}Lt(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:Bd(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:Bd(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&Bd(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:Bd(e,t,u,p,r,m)}return;default:if(Ut(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Vd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Vd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&Bd(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||Bd(e,t,f,p,r,m)}function Wd(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Gd(){if(typeof performance.getEntriesByType==`function`){for(var e=0,t=0,n=performance.getEntriesByType(`resource`),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&Wd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var c=n[r],l=c.startTime;if(l>s)break;var u=c.transferSize,d=c.initiatorType;u&&Wd(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Kd=null,qd=null;function Jd(e){return e.nodeType===9?e:e.ownerDocument}function Yd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Xd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Zd(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Qd=null;function $d(){var e=window.event;return e&&e.type===`popstate`?e!==Qd&&(Qd=e,!0):(Qd=null,!1)}var ef=typeof setTimeout==`function`?setTimeout:void 0,tf=typeof clearTimeout==`function`?clearTimeout:void 0,nf=typeof Promise==`function`?Promise:void 0,rf=typeof queueMicrotask==`function`?queueMicrotask:nf===void 0?ef:function(e){return nf.resolve(null).then(e).catch(af)};function af(e){setTimeout(function(){throw e})}function of(e){return e===`head`}function sf(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Vp(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)xf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,xf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[ct]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&xf(e.ownerDocument.body)}n=i}while(n);Vp(t)}function cf(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8){if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++}n=r}while(n)}function lf(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case`HTML`:case`HEAD`:case`BODY`:lf(n),lt(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function uf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r){if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e}else if(!e[ct])switch(t){case`meta`:if(!e.hasAttribute(`itemprop`))break;return e;case`link`:if(a=e.getAttribute(`rel`),a===`stylesheet`&&e.hasAttribute(`data-precedence`)||a!==i.rel||e.getAttribute(`href`)!==(i.href==null||i.href===``?null:i.href)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin)||e.getAttribute(`title`)!==(i.title==null?null:i.title))break;return e;case`style`:if(e.hasAttribute(`data-precedence`))break;return e;case`script`:if(a=e.getAttribute(`src`),(a!==(i.src==null?null:i.src)||e.getAttribute(`type`)!==(i.type==null?null:i.type)||e.getAttribute(`crossorigin`)!==(i.crossOrigin==null?null:i.crossOrigin))&&a&&e.hasAttribute(`async`)&&!e.hasAttribute(`itemprop`))break;return e;default:return e}if(e=gf(e.nextSibling),e===null)break}return null}function df(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=gf(e.nextSibling),e===null))return null;return e}function ff(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=gf(e.nextSibling),e===null))return null;return e}function pf(e){return e.data===`$?`||e.data===`$~`}function mf(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function hf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function gf(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===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var _f=null;function vf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return gf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function yf(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function bf(e,t,n){switch(t=Jd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function xf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);lt(e)}var Sf=new Map,Cf=new Set;function wf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Tf=L.d;L.d={f:Ef,r:Df,D:Af,C:jf,L:Mf,m:Nf,X:Ff,S:Pf,M:If};function Ef(){var e=Tf.f(),t=Tu();return e||t}function Df(e){var t=dt(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):Tf.r(e)}var Of=typeof document>`u`?null:document;function kf(e,t,n){var r=Of;if(r&&typeof t==`string`&&t){var i=Mt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),Cf.has(i)||(Cf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Hd(t,`link`,e),W(t),r.head.appendChild(t)))}}function Af(e){Tf.D(e),kf(`dns-prefetch`,e,null)}function jf(e,t){Tf.C(e,t),kf(`preconnect`,e,t)}function Mf(e,t,n){Tf.L(e,t,n);var r=Of;if(r&&e&&t){var i=`link[rel="preload"][as="`+Mt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Mt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Mt(n.imageSizes)+`"]`)):i+=`[href="`+Mt(e)+`"]`;var a=i;switch(t){case`style`:a=Rf(e);break;case`script`:a=Hf(e)}Sf.has(a)||(e=m({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),Sf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(zf(a))||t===`script`&&r.querySelector(Uf(a))||(t=r.createElement(`link`),Hd(t,`link`,e),W(t),r.head.appendChild(t)))}}function Nf(e,t){Tf.m(e,t);var n=Of;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Mt(r)+`"][href="`+Mt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Hf(e)}if(!Sf.has(a)&&(e=m({rel:`modulepreload`,href:e},t),Sf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Uf(a)))return}r=n.createElement(`link`),Hd(r,`link`,e),W(r),n.head.appendChild(r)}}}function Pf(e,t,n){Tf.S(e,t,n);var r=Of;if(r&&e){var i=pt(r).hoistableStyles,a=Rf(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(zf(a)))s.loading=5;else{e=m({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=Sf.get(a))&&Kf(e,n);var c=o=r.createElement(`link`);W(c),Hd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Gf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Ff(e,t){Tf.X(e,t);var n=Of;if(n&&e){var r=pt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=m({src:e,async:!0},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),W(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function If(e,t){Tf.M(e,t);var n=Of;if(n&&e){var r=pt(n).hoistableScripts,i=Hf(e),a=r.get(i);a||(a=n.querySelector(Uf(i)),a||(e=m({src:e,async:!0,type:`module`},t),(t=Sf.get(i))&&qf(e,t),a=n.createElement(`script`),W(a),Hd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Lf(e,t,n,r){var a=(a=ie.current)?wf(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Rf(n.href),n=pt(a).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Rf(n.href);var o=pt(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(zf(e)))&&!o._p&&(s.instance=o,s.state.loading=5),Sf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},Sf.set(e,n),o||Vf(a,e,n,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Hf(n),n=pt(a).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Rf(e){return`href="`+Mt(e)+`"`}function zf(e){return`link[rel="stylesheet"][`+e+`]`}function Bf(e){return m({},e,{"data-precedence":e.precedence,precedence:null})}function Vf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Hd(t,`link`,n),W(t),e.head.appendChild(t))}function Hf(e){return`[src="`+Mt(e)+`"]`}function Uf(e){return`script[async]`+e}function Wf(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Mt(n.href)+`"]`);if(r)return t.instance=r,W(r),r;var a=m({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),W(r),Hd(r,`style`,a),Gf(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Rf(n.href);var o=e.querySelector(zf(a));if(o)return t.state.loading|=4,t.instance=o,W(o),o;r=Bf(n),(a=Sf.get(a))&&Kf(r,a),o=(e.ownerDocument||e).createElement(`link`),W(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),Hd(o,`link`,r),t.state.loading|=4,Gf(o,n.precedence,e),t.instance=o;case`script`:return o=Hf(n.src),(a=e.querySelector(Uf(o)))?(t.instance=a,W(a),a):(r=n,(a=Sf.get(o))&&(r=m({},n),qf(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),W(a),Hd(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Gf(r,n.precedence,e));return t.instance}function Gf(e,t,n){for(var r=n.querySelectorAll(`link[rel="stylesheet"][data-precedence],style[data-precedence]`),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function Kf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function qf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Jf=null;function Yf(e,t,n){if(Jf===null){var r=new Map,i=Jf=new Map;i.set(n,r)}else i=Jf,r=i.get(n),r||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[ct]||a[tt]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Xf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Zf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Qf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function $f(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Rf(r.href),a=t.querySelector(zf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=np.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,W(a);return}a=t.ownerDocument||t,r=Bf(r),(i=Sf.get(i))&&Kf(r,i),a=a.createElement(`link`),W(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Hd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=np.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var ep=0;function tp(e,t){return e.stylesheets&&e.count===0&&ip(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&ep===0&&(ep=62500*Gd());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&ip(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>ep?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function np(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)ip(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var rp=null;function ip(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,rp=new Map,t.forEach(ap,e),rp=null,np.call(e))}function ap(e,t){if(!(t.state.loading&4)){var n=rp.get(e);if(n)var r=n.get(null);else{n=new Map,rp.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=np.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var op={$$typeof:C,Provider:null,Consumer:null,_currentValue:R,_currentValue2:R,_threadCount:0};function sp(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=We(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=We(0),this.hiddenUpdates=We(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.incompleteTransitions=new Map}function cp(e,t,n,r,i,a,o,s,c,l,u,d){return e=new sp(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ni(3,null,null,t),e.current=a,a.stateNode=e,t=na(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},Fa(a),e}function lp(e){return e?(e=ei,e):ei}function up(e,t,n,r,i,a){i=lp(i),r.context===null?r.context=i:r.pendingContext=i,r=La(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ra(e,r,t),n!==null&&(bu(n,e,t),za(n,e,t))}function dp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function fp(e,t){dp(e,t),(e=e.alternate)&&dp(e,t)}function pp(e){if(e.tag===13||e.tag===31){var t=Zr(e,67108864);t!==null&&bu(t,e,67108864),fp(e,67108864)}}function mp(e){if(e.tag===13||e.tag===31){var t=vu();t=Xe(t);var n=Zr(e,t);n!==null&&bu(n,e,t),fp(e,t)}}var hp=!0;function gp(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=2,vp(e,t,n,r)}finally{L.p=a,I.T=i}}function _p(e,t,n,r){var i=I.T;I.T=null;var a=L.p;try{L.p=8,vp(e,t,n,r)}finally{L.p=a,I.T=i}}function vp(e,t,n,r){if(hp){var i=yp(r);if(i===null)jd(e,t,r,bp,n),jp(e,r);else if(Np(i,e,t,n,r))r.stopPropagation();else if(jp(e,r),t&4&&-1<Ap.indexOf(e)){for(;i!==null;){var a=dt(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=H(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Pe(o);s.entanglements[1]|=c,o&=~c}ld(a),!(zl&6)&&(ou=Se()+500,ud(0,!1))}}break;case 31:case 13:s=Zr(a,2),s!==null&&bu(s,a,2),Tu(),fp(a,2)}if(a=yp(r),a===null&&jd(e,t,r,bp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else jd(e,t,r,null,n)}}function yp(e){return e=Yt(e),xp(e)}var bp=null;function xp(e){if(bp=null,e=ut(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return bp=e,null}function Sp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ce()){case we:return 2;case Te:return 8;case Ee:case De:return 32;case Oe:return 268435456;default:return 32}default:return 32}}var Cp=!1,wp=null,Tp=null,Ep=null,Dp=new Map,Op=new Map,kp=[],Ap=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function jp(e,t){switch(e){case`focusin`:case`focusout`:wp=null;break;case`dragenter`:case`dragleave`:Tp=null;break;case`mouseover`:case`mouseout`:Ep=null;break;case`pointerover`:case`pointerout`:Dp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Op.delete(t.pointerId)}}function Mp(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=dt(t),t!==null&&pp(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Np(e,t,n,r,i){switch(t){case`focusin`:return wp=Mp(wp,e,t,n,r,i),!0;case`dragenter`:return Tp=Mp(Tp,e,t,n,r,i),!0;case`mouseover`:return Ep=Mp(Ep,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return Dp.set(a,Mp(Dp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Op.set(a,Mp(Op.get(a)||null,e,t,n,r,i)),!0}return!1}function Pp(e){var t=ut(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,$e(e.priority,function(){mp(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,$e(e.priority,function(){mp(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Fp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=yp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Jt=r,n.target.dispatchEvent(r),Jt=null}else return t=dt(n),t!==null&&pp(t),e.blockedOn=n,!1;t.shift()}return!0}function Ip(e,t,n){Fp(e)&&n.delete(t)}function Lp(){Cp=!1,wp!==null&&Fp(wp)&&(wp=null),Tp!==null&&Fp(Tp)&&(Tp=null),Ep!==null&&Fp(Ep)&&(Ep=null),Dp.forEach(Ip),Op.forEach(Ip)}function Rp(e,n){e.blockedOn===n&&(e.blockedOn=null,Cp||(Cp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,Lp)))}var zp=null;function Bp(e){zp!==e&&(zp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){zp===e&&(zp=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if(typeof r!=`function`){if(xp(r||n)===null)continue;break}var a=dt(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Vp(e){function t(t){return Rp(t,e)}wp!==null&&Rp(wp,e),Tp!==null&&Rp(Tp,e),Ep!==null&&Rp(Ep,e),Dp.forEach(t),Op.forEach(t);for(var n=0;n<kp.length;n++){var r=kp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<kp.length&&(n=kp[0],n.blockedOn===null);)Pp(n),n.blockedOn===null&&kp.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[nt]||null;if(typeof a==`function`)o||Bp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[nt]||null)s=o.formAction;else if(xp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Bp(n)}}}function Hp(){function e(e){e.canIntercept&&e.info===`react-transition`&&e.intercept({handler:function(){return new Promise(function(e){return i=e})},focusReset:`manual`,scroll:`manual`})}function t(){i!==null&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&e.url!=null&&navigation.navigate(e.url,{state:e.getState(),info:`react-transition`,history:`replace`})}}if(typeof navigation==`object`){var r=!1,i=null;return navigation.addEventListener(`navigate`,e),navigation.addEventListener(`navigatesuccess`,t),navigation.addEventListener(`navigateerror`,t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener(`navigate`,e),navigation.removeEventListener(`navigatesuccess`,t),navigation.removeEventListener(`navigateerror`,t),i!==null&&(i(),i=null)}}}function Up(e){this._internalRoot=e}Wp.prototype.render=Up.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;up(n,vu(),e,t,null,null)},Wp.prototype.unmount=Up.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;up(e.current,2,null,e,null,null),Tu(),t[rt]=null}};function Wp(e){this._internalRoot=e}Wp.prototype.unstable_scheduleHydration=function(e){if(e){var t=Qe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<kp.length&&t!==0&&t<kp[n].priority;n++);kp.splice(n,0,e),n===0&&Pp(e)}};var Gp=n.version;if(Gp!==`19.2.8`)throw Error(i(527,Gp,`19.2.8`));L.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:f(e),e=e===null?null:e.stateNode,e};var Kp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:I,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var qp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!qp.isDisabled&&qp.supportsFiber)try{je=qp.inject(Kp),Me=qp}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=Gs,s=Ks,c=qs;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=cp(e,1,!1,null,null,n,r,null,o,s,c,Hp),e[rt]=t.current,kd(e),new Up(t)}})),_=o(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},y=new class extends v{#e;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e();return window.addEventListener(`visibilitychange`,t,!1),()=>{window.removeEventListener(`visibilitychange`,t)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(e=>{typeof e==`boolean`?this.setFocused(e):this.onFocus()})}setFocused(e){this.#e!==e&&(this.#e=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return typeof this.#e==`boolean`?this.#e:globalThis.document?.visibilityState!==`hidden`}},b={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},x=new class{#e=b;setTimeoutProvider(e){this.#e=e}setTimeout(e,t){return this.#e.setTimeout(e,t)}clearTimeout(e){this.#e.clearTimeout(e)}setInterval(e,t){return this.#e.setInterval(e,t)}clearInterval(e){this.#e.clearInterval(e)}};function S(e){setTimeout(e,0)}var C=typeof window>`u`||`Deno`in globalThis;function w(){}function T(e,t){return typeof e==`function`?e(t):e}function E(e){return typeof e==`number`&&e>=0&&e!==1/0}function D(e,t){return Math.max(e+(t||0)-Date.now(),0)}function O(e,t){return typeof e==`function`?e(t):e}function k(e,t){return typeof e==`function`?e(t):e}function A(e,t){let{type:n=`all`,exact:r,fetchStatus:i,predicate:a,queryKey:o,stale:s}=e;if(o){if(r){if(t.queryHash!==M(o,t.options))return!1}else if(!P(t.queryKey,o))return!1}if(n!==`all`){let e=t.isActive();if(n===`active`&&!e||n===`inactive`&&e)return!1}return!(typeof s==`boolean`&&t.isStale()!==s||i&&i!==t.state.fetchStatus||a&&!a(t))}function j(e,t){let{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(N(t.options.mutationKey)!==N(a))return!1}else if(!P(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function M(e,t){return(t?.queryKeyHashFn||N)(e)}function N(e){return JSON.stringify(e,(e,t)=>ee(t)?Object.keys(t).sort().reduce((e,n)=>(e[n]=t[n],e),{}):t)}function P(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(e&&t&&typeof e==`object`&&typeof t==`object`){if(Array.isArray(e)&&Array.isArray(t)){for(let n=0;n<t.length;n++)if(!P(e[n],t[n]))return!1;return!0}let n=Object.keys(t);for(let r of n)if(!P(e[r],t[r]))return!1;return!0}return!1}var F=Object.prototype.hasOwnProperty;function I(e,t,n=0){if(e===t)return e;if(n>500)return t;let r=R(e)&&R(t);if(!r&&!(ee(e)&&ee(t)))return t;let i=(r?e:Object.keys(e)).length,a=r?t:Object.keys(t),o=a.length,s=r?Array(o):{},c=0;for(let l=0;l<o;l++){let o=r?l:a[l],u=e[o],d=t[o];if(u===d){s[o]=u,(r?l<i:F.call(e,o))&&c++;continue}if(u===null||d===null||typeof u!=`object`||typeof d!=`object`){s[o]=d;continue}let f=I(u,d,n+1);s[o]=f,f===u&&c++}return i===o&&c===i?e:s}function L(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let n in e)if(e[n]!==t[n])return!1;return!0}function R(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function ee(e){if(!te(e))return!1;let t=e.constructor;if(t===void 0)return!0;let n=t.prototype;return!(!te(n)||!n.hasOwnProperty(`isPrototypeOf`)||Object.getPrototypeOf(e)!==Object.prototype)}function te(e){return Object.prototype.toString.call(e)===`[object Object]`}function z(e){return new Promise(t=>{x.setTimeout(t,e)})}function B(e,t,n){return typeof n.structuralSharing==`function`?n.structuralSharing(e,t):n.structuralSharing===!1?t:I(e,t)}function V(e,t,n=0){let r=[...e,t];return n&&r.length>n?r.slice(1):r}function ne(e,t,n=0){let r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var re=Symbol();function ie(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:!e.queryFn||e.queryFn===re?()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function ae(e,t){return typeof e==`function`?e(...t):!!e}function oe(e,t,n){let r=!1,i;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(i??=t(),r?i:(r=!0,i.aborted?n():i.addEventListener(`abort`,n,{once:!0}),i))}),e}var se=(()=>{let e=()=>C;return{isServer(){return e()},setIsServer(t){e=t}}})();function ce(){let e,t,n=new Promise((n,r)=>{e=n,t=r});n.status=`pending`,n.catch(()=>{});function r(e){Object.assign(n,e),delete n.resolve,delete n.reject}return n.resolve=t=>{r({status:`fulfilled`,value:t}),e(t)},n.reject=e=>{r({status:`rejected`,reason:e}),t(e)},n}var le=S;function ue(){let e=[],t=0,n=e=>{e()},r=e=>{e()},i=le,a=r=>{t?e.push(r):i(()=>{n(r)})},o=()=>{let t=e;e=[],t.length&&i(()=>{r(()=>{t.forEach(e=>{n(e)})})})};return{batch:e=>{let n;t++;try{n=e()}finally{t--,t||o()}return n},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{n=e},setBatchNotifyFunction:e=>{r=e},setScheduler:e=>{i=e}}}var de=ue(),fe=new class extends v{#e=!0;#t;#n;constructor(){super(),this.#n=e=>{if(typeof window<`u`&&window.addEventListener){let t=()=>e(!0),n=()=>e(!1);return window.addEventListener(`online`,t,!1),window.addEventListener(`offline`,n,!1),()=>{window.removeEventListener(`online`,t),window.removeEventListener(`offline`,n)}}}}onSubscribe(){this.#t||this.setEventListener(this.#n)}onUnsubscribe(){this.hasListeners()||(this.#t?.(),this.#t=void 0)}setEventListener(e){this.#n=e,this.#t?.(),this.#t=e(this.setOnline.bind(this))}setOnline(e){this.#e!==e&&(this.#e=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#e}};function pe(e){return Math.min(1e3*2**e,3e4)}function me(e){return(e??`online`)!==`online`||fe.isOnline()}var he=class extends Error{constructor(e){super(`CancelledError`),this.revert=e?.revert,this.silent=e?.silent}};function ge(e){let t=!1,n=0,r,i=ce(),a=()=>i.status!==`pending`,o=t=>{if(!a()){let n=new he(t);f(n),e.onCancel?.(n)}},s=()=>{t=!0},c=()=>{t=!1},l=()=>y.isFocused()&&(e.networkMode===`always`||fe.isOnline())&&e.canRun(),u=()=>me(e.networkMode)&&e.canRun(),d=e=>{a()||(r?.(),i.resolve(e))},f=e=>{a()||(r?.(),i.reject(e))},p=()=>new Promise(t=>{r=e=>{(a()||l())&&t(e)},e.onPause?.()}).then(()=>{r=void 0,a()||e.onContinue?.()}),m=()=>{if(a())return;let r,i=n===0?e.initialPromise:void 0;try{r=i??e.fn()}catch(e){r=Promise.reject(e)}Promise.resolve(r).then(d).catch(r=>{if(a())return;let i=e.retry??(se.isServer()?0:3),o=e.retryDelay??pe,s=typeof o==`function`?o(n,r):o,c=i===!0||typeof i==`number`&&n<i||typeof i==`function`&&i(n,r);if(t||!c){f(r);return}n++,e.onFail?.(n,r),z(s).then(()=>l()?void 0:p()).then(()=>{t?f(r):m()})})};return{promise:i,status:()=>i.status,cancel:o,continue:()=>(r?.(),i),cancelRetry:s,continueRetry:c,canStart:u,start:()=>(u()?m():p().then(m),i)}}var _e=class{#e;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),E(this.gcTime)&&(this.#e=x.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(se.isServer()?1/0:3e5))}clearGcTimeout(){this.#e!==void 0&&(x.clearTimeout(this.#e),this.#e=void 0)}};function ve(e){return{onFetch:(t,n)=>{let r=t.options,i=t.fetchOptions?.meta?.fetchMore?.direction,a=t.state.data?.pages||[],o=t.state.data?.pageParams||[],s={pages:[],pageParams:[]},c=0,l=async()=>{let n=!1,l=e=>{oe(e,()=>t.signal,()=>n=!0)},u=ie(t.options,t.fetchOptions),d=async(e,r,i)=>{if(n)return Promise.reject(t.signal.reason);if(r==null&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:r,direction:i?`backward`:`forward`,meta:t.options.meta};return l(e),e})(),o=await u(a),{maxPages:s}=t.options,c=i?ne:V;return{pages:c(e.pages,o,s),pageParams:c(e.pageParams,r,s)}};if(i&&a.length){let e=i===`backward`,t=e?be:ye,n={pages:a,pageParams:o};s=await d(n,t(r,n),e)}else{let t=e??a.length;do{let e=c===0?o[0]??r.initialPageParam:ye(r,s);if(c>0&&e==null)break;s=await d(s,e),c++}while(c<t)}return s};t.fetchFn=t.options.persister?()=>t.options.persister?.(l,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n):l}}}function ye(e,{pages:t,pageParams:n}){let r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function be(e,{pages:t,pageParams:n}){return t.length>0?e.getPreviousPageParam?.(t[0],t,n[0],n):void 0}var xe=class extends _e{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){super(),this.#s=!1,this.#o=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#i=e.client,this.#r=this.#i.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#t=we(this.options),this.state=e.state??this.#t,this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return this.#e}get promise(){return this.#a?.promise}setOptions(e){if(this.options={...this.#o,...e},e?._type&&(this.#e=e._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){let e=we(this.options);e.data!==void 0&&(this.setState(Ce(e.data,e.dataUpdatedAt)),this.#t=e)}}optionalRemove(){!this.observers.length&&this.state.fetchStatus===`idle`&&this.#r.remove(this)}setData(e,t){let n=B(this.state.data,e,this.options);return this.#l({data:n,type:`success`,dataUpdatedAt:t?.updatedAt,manual:t?.manual}),n}setState(e){this.#l({type:`setState`,state:e})}cancel(e){let t=this.#a?.promise;return this.#a?.cancel(e),t?t.then(w).catch(w):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return this.#t}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(e=>k(e.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===re||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>O(e.options.staleTime,this)===`static`)}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(e=0){return this.state.data===void 0?!0:e===`static`?!1:this.state.isInvalidated?!0:!D(this.state.dataUpdatedAt,e)}onFocus(){this.observers.find(e=>e.shouldFetchOnWindowFocus())?.refetch({cancelRefetch:!1}),this.#a?.continue()}onOnline(){this.observers.find(e=>e.shouldFetchOnReconnect())?.refetch({cancelRefetch:!1}),this.#a?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#r.notify({type:`observerAdded`,query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#a&&(this.#s||this.#c()?this.#a.cancel({revert:!0}):this.#a.cancelRetry()),this.scheduleGc()),this.#r.notify({type:`observerRemoved`,query:this,observer:e}))}getObserversCount(){return this.observers.length}#c(){return this.state.fetchStatus===`paused`&&this.state.status===`pending`}invalidate(){this.state.isInvalidated||this.#l({type:`invalidate`})}async fetch(e,t){if(this.state.fetchStatus!==`idle`&&this.#a?.status()!==`rejected`){if(this.state.data!==void 0&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#a)return this.#a.continueRetry(),this.#a.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let n=new AbortController,r=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#s=!0,n.signal)})},i=()=>{let e=ie(this.options,t),n=(()=>{let e={client:this.#i,queryKey:this.queryKey,meta:this.meta};return r(e),e})();return this.#s=!1,this.options.persister?this.options.persister(e,n,this):e(n)},a=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#i,state:this.state,fetchFn:i};return r(e),e})();(this.#e===`infinite`?ve(this.options.pages):this.options.behavior)?.onFetch(a,this),this.#n=this.state,(this.state.fetchStatus===`idle`||this.state.fetchMeta!==a.fetchOptions?.meta)&&this.#l({type:`fetch`,meta:a.fetchOptions?.meta}),this.#a=ge({initialPromise:t?.initialPromise,fn:a.fetchFn,onCancel:e=>{e instanceof he&&e.revert&&this.setState({...this.#n,fetchStatus:`idle`}),n.abort()},onFail:(e,t)=>{this.#l({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#l({type:`pause`})},onContinue:()=>{this.#l({type:`continue`})},retry:a.options.retry,retryDelay:a.options.retryDelay,networkMode:a.options.networkMode,canRun:()=>!0});try{let e=await this.#a.start();if(e===void 0)throw Error(`${this.queryHash} data is undefined`);return this.setData(e),this.#r.config.onSuccess?.(e,this),this.#r.config.onSettled?.(e,this.state.error,this),e}catch(e){if(e instanceof he){if(e.silent)return this.#a.promise;if(e.revert){if(this.state.data===void 0)throw e;return this.state.data}}throw this.#l({type:`error`,error:e}),this.#r.config.onError?.(e,this),this.#r.config.onSettled?.(this.state.data,e,this),e}finally{this.scheduleGc()}}#l(e){let t=t=>{switch(e.type){case`failed`:return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case`pause`:return{...t,fetchStatus:`paused`};case`continue`:return{...t,fetchStatus:`fetching`};case`fetch`:return{...t,...Se(t.data,this.options),fetchMeta:e.meta??null};case`success`:let n={...t,...Ce(e.data,e.dataUpdatedAt),dataUpdateCount:t.dataUpdateCount+1,...!e.manual&&{fetchStatus:`idle`,fetchFailureCount:0,fetchFailureReason:null}};return this.#n=e.manual?n:void 0,n;case`error`:let r=e.error;return{...t,error:r,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:r,fetchStatus:`idle`,status:`error`,isInvalidated:!0};case`invalidate`:return{...t,isInvalidated:!0};case`setState`:return{...t,...e.state}}};this.state=t(this.state),de.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#r.notify({query:this,type:`updated`,action:e})})}};function Se(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:me(t.networkMode)?`fetching`:`paused`,...e===void 0&&{error:null,status:`pending`}}}function Ce(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:`success`}}function we(e){let t=typeof e.initialData==`function`?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt==`function`?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?`success`:`pending`,fetchStatus:`idle`}}var Te=class extends v{constructor(e,t){super(),this.options=t,this.#e=e,this.#s=null,this.#o=ce(),this.bindMethods(),this.setOptions(t)}#e;#t=void 0;#n=void 0;#r=void 0;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(this.#t.addObserver(this),De(this.#t,this.options)?this.#h():this.updateResult(),this.#y())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return Oe(this.#t,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return Oe(this.#t,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#b(),this.#x(),this.#t.removeObserver(this)}setOptions(e){let t=this.options,n=this.#t;if(this.options=this.#e.defaultQueryOptions(e),this.options.enabled!==void 0&&typeof this.options.enabled!=`boolean`&&typeof this.options.enabled!=`function`&&typeof k(this.options.enabled,this.#t)!=`boolean`)throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);this.#S(),this.#t.setOptions(this.options),t._defaulted&&!L(this.options,t)&&this.#e.getQueryCache().notify({type:`observerOptionsUpdated`,query:this.#t,observer:this});let r=this.hasListeners();r&&ke(this.#t,n,this.options,t)&&this.#h(),this.updateResult(),r&&(this.#t!==n||k(this.options.enabled,this.#t)!==k(t.enabled,this.#t)||O(this.options.staleTime,this.#t)!==O(t.staleTime,this.#t))&&this.#g();let i=this.#_();r&&(this.#t!==n||k(this.options.enabled,this.#t)!==k(t.enabled,this.#t)||i!==this.#p)&&this.#v(i)}getOptimisticResult(e){let t=this.#e.getQueryCache().build(this.#e,e),n=this.createResult(t,e);return je(this,n)&&(this.#r=n,this.#a=this.options,this.#i=this.#t.state),n}getCurrentResult(){return this.#r}trackResult(e,t){return new Proxy(e,{get:(e,n)=>(this.trackProp(n),t?.(n),n===`promise`&&(this.trackProp(`data`),!this.options.experimental_prefetchInRender&&this.#o.status===`pending`&&this.#o.reject(Error(`experimental_prefetchInRender feature flag is not enabled`))),Reflect.get(e,n))})}trackProp(e){this.#m.add(e)}getCurrentQuery(){return this.#t}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#e.defaultQueryOptions(e),n=this.#e.getQueryCache().build(this.#e,t);return n.fetch().then(()=>this.createResult(n,t))}fetch(e){return this.#h({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#r))}#h(e){this.#S();let t=this.#t.fetch(this.options,e);return e?.throwOnError||(t=t.catch(w)),t}#g(){this.#b();let e=O(this.options.staleTime,this.#t);if(se.isServer()||this.#r.isStale||!E(e))return;let t=D(this.#r.dataUpdatedAt,e)+1;this.#d=x.setTimeout(()=>{this.#r.isStale||this.updateResult()},t)}#_(){return(typeof this.options.refetchInterval==`function`?this.options.refetchInterval(this.#t):this.options.refetchInterval)??!1}#v(e){this.#x(),this.#p=e,!(se.isServer()||k(this.options.enabled,this.#t)===!1||!E(this.#p)||this.#p===0)&&(this.#f=x.setInterval(()=>{(this.options.refetchIntervalInBackground||y.isFocused())&&this.#h()},this.#p))}#y(){this.#g(),this.#v(this.#_())}#b(){this.#d!==void 0&&(x.clearTimeout(this.#d),this.#d=void 0)}#x(){this.#f!==void 0&&(x.clearInterval(this.#f),this.#f=void 0)}createResult(e,t){let n=this.#t,r=this.options,i=this.#r,a=this.#i,o=this.#a,s=e===n?this.#n:e.state,{state:c}=e,l={...c},u=!1,d;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&De(e,t),o=i&&ke(e,n,t,r);(a||o)&&(l={...l,...Se(c.data,e.options)}),t._optimisticResults===`isRestoring`&&(l.fetchStatus=`idle`)}let{error:f,errorUpdatedAt:p,status:m}=l;d=l.data;let h=!1;if(t.placeholderData!==void 0&&d===void 0&&m===`pending`){let e;i?.isPlaceholderData&&t.placeholderData===o?.placeholderData?(e=i.data,h=!0):e=typeof t.placeholderData==`function`?t.placeholderData(this.#u?.state.data,this.#u):t.placeholderData,e!==void 0&&(m=`success`,d=B(i?.data,e,t),u=!0)}if(t.select&&d!==void 0&&!h){if(i&&d===a?.data&&t.select===this.#c)d=this.#l;else try{this.#c=t.select,d=t.select(d),d=B(i?.data,d,t),this.#l=d,this.#s=null}catch(e){this.#s=e}}this.#s&&(f=this.#s,d=this.#l,p=Date.now(),m=`error`);let g=l.fetchStatus===`fetching`,_=m===`pending`,v=m===`error`,y=_&&g,b=d!==void 0,x={status:m,fetchStatus:l.fetchStatus,isPending:_,isSuccess:m===`success`,isError:v,isInitialLoading:y,isLoading:y,data:d,dataUpdatedAt:l.dataUpdatedAt,error:f,errorUpdatedAt:p,failureCount:l.fetchFailureCount,failureReason:l.fetchFailureReason,errorUpdateCount:l.errorUpdateCount,isFetched:e.isFetched(),isFetchedAfterMount:l.dataUpdateCount>s.dataUpdateCount||l.errorUpdateCount>s.errorUpdateCount,isFetching:g,isRefetching:g&&!_,isLoadingError:v&&!b,isPaused:l.fetchStatus===`paused`,isPlaceholderData:u,isRefetchError:v&&b,isStale:Ae(e,t),refetch:this.refetch,promise:this.#o,isEnabled:k(t.enabled,e)!==!1};if(this.options.experimental_prefetchInRender){let t=x.data!==void 0,r=x.status===`error`&&!t,i=e=>{r?e.reject(x.error):t&&e.resolve(x.data)},a=()=>{let e=this.#o=x.promise=ce();i(e)},o=this.#o;switch(o.status){case`pending`:e.queryHash===n.queryHash&&i(o);break;case`fulfilled`:(r||x.data!==o.value)&&a();break;case`rejected`:(!r||x.error!==o.reason)&&a()}}return x}updateResult(){let e=this.#r,t=this.createResult(this.#t,this.options);this.#i=this.#t.state,this.#a=this.options,this.#i.data!==void 0&&(this.#u=this.#t),!L(t,e)&&(this.#r=t,this.#C({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,n=typeof t==`function`?t():t;if(n===`all`||!n&&!this.#m.size)return!0;let r=new Set(n??this.#m);return this.options.throwOnError&&r.add(`error`),Object.keys(this.#r).some(t=>{let n=t;return this.#r[n]!==e[n]&&r.has(n)})})()}))}#S(){let e=this.#e.getQueryCache().build(this.#e,this.options);if(e===this.#t)return;let t=this.#t;this.#t=e,this.#n=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#y()}#C(e){de.batch(()=>{e.listeners&&this.listeners.forEach(e=>{e(this.#r)}),this.#e.getQueryCache().notify({query:this.#t,type:`observerResultsUpdated`})})}};function Ee(e,t){return k(t.enabled,e)!==!1&&e.state.data===void 0&&(e.state.status!==`error`||k(t.retryOnMount,e)!==!1)}function De(e,t){return Ee(e,t)||e.state.data!==void 0&&Oe(e,t,t.refetchOnMount)}function Oe(e,t,n){if(k(t.enabled,e)!==!1&&O(t.staleTime,e)!==`static`){let r=typeof n==`function`?n(e):n;return r===`always`||r!==!1&&Ae(e,t)}return!1}function ke(e,t,n,r){return(e!==t||k(r.enabled,e)===!1)&&(!n.suspense||e.state.status!==`error`)&&Ae(e,n)}function Ae(e,t){return k(t.enabled,e)!==!1&&e.isStaleByTime(O(t.staleTime,e))}function je(e,t){return!L(e.getCurrentResult(),t)}var Me=class extends _e{#e;#t;#n;#r;constructor(e){super(),this.#e=e.client,this.mutationId=e.mutationId,this.#n=e.mutationCache,this.#t=[],this.state=e.state||Ne(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#t.includes(e)||(this.#t.push(e),this.clearGcTimeout(),this.#n.notify({type:`observerAdded`,mutation:this,observer:e}))}removeObserver(e){this.#t=this.#t.filter(t=>t!==e),this.scheduleGc(),this.#n.notify({type:`observerRemoved`,mutation:this,observer:e})}optionalRemove(){this.#t.length||(this.state.status===`pending`?this.scheduleGc():this.#n.remove(this))}continue(){return this.#r?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#i({type:`continue`})},n={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};this.#r=ge({fn:()=>this.options.mutationFn?this.options.mutationFn(e,n):Promise.reject(Error(`No mutationFn found`)),onFail:(e,t)=>{this.#i({type:`failed`,failureCount:e,error:t})},onPause:()=>{this.#i({type:`pause`})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#n.canRun(this)});let r=this.state.status===`pending`,i=!this.#r.canStart();try{if(r)t();else{this.#i({type:`pending`,variables:e,isPaused:i}),this.#n.config.onMutate&&await this.#n.config.onMutate(e,this,n);let t=await this.options.onMutate?.(e,n);t!==this.state.context&&this.#i({type:`pending`,context:t,variables:e,isPaused:i})}let a=await this.#r.start();return await this.#n.config.onSuccess?.(a,e,this.state.context,this,n),await this.options.onSuccess?.(a,e,this.state.context,n),await this.#n.config.onSettled?.(a,null,this.state.variables,this.state.context,this,n),await this.options.onSettled?.(a,null,e,this.state.context,n),this.#i({type:`success`,data:a}),a}catch(t){try{await this.#n.config.onError?.(t,e,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onError?.(t,e,this.state.context,n)}catch(e){Promise.reject(e)}try{await this.#n.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this,n)}catch(e){Promise.reject(e)}try{await this.options.onSettled?.(void 0,t,e,this.state.context,n)}catch(e){Promise.reject(e)}throw this.#i({type:`error`,error:t}),t}finally{this.#n.runNext(this)}}#i(e){let t=t=>{switch(e.type){case`failed`:return{...t,failureCount:e.failureCount,failureReason:e.error};case`pause`:return{...t,isPaused:!0};case`continue`:return{...t,isPaused:!1};case`pending`:return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:`pending`,variables:e.variables,submittedAt:Date.now()};case`success`:return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:`success`,isPaused:!1};case`error`:return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:`error`}}};this.state=t(this.state),de.batch(()=>{this.#t.forEach(t=>{t.onMutationUpdate(e)}),this.#n.notify({mutation:this,type:`updated`,action:e})})}};function Ne(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:`idle`,variables:void 0,submittedAt:0}}var Pe=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Set,this.#t=new Map,this.#n=0}#e;#t;#n;build(e,t,n){let r=new Me({client:e,mutationCache:this,mutationId:++this.#n,options:e.defaultMutationOptions(t),state:n});return this.add(r),r}add(e){this.#e.add(e);let t=Fe(e);if(typeof t==`string`){let n=this.#t.get(t);n?n.push(e):this.#t.set(t,[e])}this.notify({type:`added`,mutation:e})}remove(e){if(this.#e.delete(e)){let t=Fe(e);if(typeof t==`string`){let n=this.#t.get(t);if(n){if(n.length>1){let t=n.indexOf(e);t!==-1&&n.splice(t,1)}else n[0]===e&&this.#t.delete(t)}}}this.notify({type:`removed`,mutation:e})}canRun(e){let t=Fe(e);if(typeof t==`string`){let n=this.#t.get(t)?.find(e=>e.state.status===`pending`);return!n||n===e}return!0}runNext(e){let t=Fe(e);return typeof t==`string`?(this.#t.get(t)?.find(t=>t!==e&&t.state.isPaused))?.continue()??Promise.resolve():Promise.resolve()}clear(){de.batch(()=>{this.#e.forEach(e=>{this.notify({type:`removed`,mutation:e})}),this.#e.clear(),this.#t.clear()})}getAll(){return Array.from(this.#e)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>j(t,e))}findAll(e={}){return this.getAll().filter(t=>j(e,t))}notify(e){de.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return de.batch(()=>Promise.all(e.map(e=>e.continue().catch(w))))}};function Fe(e){return e.options.scope?.id}var Ie=class extends v{#e;#t=void 0;#n;#r;constructor(e,t){super(),this.#e=e,this.setOptions(t),this.bindMethods(),this.#i()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#e.defaultMutationOptions(e),L(this.options,t)||this.#e.getMutationCache().notify({type:`observerOptionsUpdated`,mutation:this.#n,observer:this}),t?.mutationKey&&this.options.mutationKey&&N(t.mutationKey)!==N(this.options.mutationKey)?this.reset():this.#n?.state.status===`pending`&&this.#n.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#n?.removeObserver(this)}onMutationUpdate(e){this.#i(),this.#a(e)}getCurrentResult(){return this.#t}reset(){this.#n?.removeObserver(this),this.#n=void 0,this.#i(),this.#a()}mutate(e,t){return this.#r=t,this.#n?.removeObserver(this),this.#n=this.#e.getMutationCache().build(this.#e,this.options),this.#n.addObserver(this),this.#n.execute(e)}#i(){let e=this.#n?.state??Ne();this.#t={...e,isPending:e.status===`pending`,isSuccess:e.status===`success`,isError:e.status===`error`,isIdle:e.status===`idle`,mutate:this.mutate,reset:this.reset}}#a(e){de.batch(()=>{if(this.#r&&this.hasListeners()){let t=this.#t.variables,n=this.#t.context,r={client:this.#e,meta:this.options.meta,mutationKey:this.options.mutationKey};if(e?.type===`success`){try{this.#r.onSuccess?.(e.data,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(e.data,null,t,n,r)}catch(e){Promise.reject(e)}}else if(e?.type===`error`){try{this.#r.onError?.(e.error,t,n,r)}catch(e){Promise.reject(e)}try{this.#r.onSettled?.(void 0,e.error,t,n,r)}catch(e){Promise.reject(e)}}}this.listeners.forEach(e=>{e(this.#t)})})}},Le=class extends v{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,n){let r=t.queryKey,i=t.queryHash??M(r,t),a=this.get(i);return a||(a=new xe({client:e,queryKey:r,queryHash:i,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(r)}),this.add(a)),a}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:`added`,query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:`removed`,query:e}))}clear(){de.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>A(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>A(e,t)):t}notify(e){de.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){de.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){de.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Re=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e={}){this.#e=e.queryCache||new Le,this.#t=e.mutationCache||new Pe,this.#n=e.defaultOptions||{},this.#r=new Map,this.#i=new Map,this.#a=0}mount(){this.#a++,this.#a===1&&(this.#o=y.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onFocus())}),this.#s=fe.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#e.onOnline())}))}unmount(){this.#a--,this.#a===0&&(this.#o?.(),this.#o=void 0,this.#s?.(),this.#s=void 0)}isFetching(e){return this.#e.findAll({...e,fetchStatus:`fetching`}).length}isMutating(e){return this.#t.findAll({...e,status:`pending`}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),n=this.#e.build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(O(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return this.#e.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,n){let r=this.defaultQueryOptions({queryKey:e}),i=this.#e.get(r.queryHash)?.state.data,a=T(t,i);if(a!==void 0)return this.#e.build(this,r).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return de.batch(()=>this.#e.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,n)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#e.get(t.queryHash)?.state}removeQueries(e){let t=this.#e;de.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let n=this.#e;return de.batch(()=>(n.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:`active`,...e},t)))}cancelQueries(e,t={}){let n={revert:!0,...t},r=de.batch(()=>this.#e.findAll(e).map(e=>e.cancel(n)));return Promise.all(r).then(w).catch(w)}invalidateQueries(e,t={}){return de.batch(()=>(this.#e.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType===`none`?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??`active`},t)))}refetchQueries(e,t={}){let n={...t,cancelRefetch:t.cancelRefetch??!0},r=de.batch(()=>this.#e.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,n);return n.throwOnError||(t=t.catch(w)),e.state.fetchStatus===`paused`?Promise.resolve():t}));return Promise.all(r).then(w)}fetchQuery(e){let t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);let n=this.#e.build(this,t);return n.isStaleByTime(O(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(w).catch(w)}fetchInfiniteQuery(e){return e._type=`infinite`,this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(w).catch(w)}ensureInfiniteQueryData(e){return e._type=`infinite`,this.ensureQueryData(e)}resumePausedMutations(){return fe.isOnline()?this.#t.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#e}getMutationCache(){return this.#t}getDefaultOptions(){return this.#n}setDefaultOptions(e){this.#n=e}setQueryDefaults(e,t){this.#r.set(N(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#r.values()],n={};return t.forEach(t=>{P(e,t.queryKey)&&Object.assign(n,t.defaultOptions)}),n}setMutationDefaults(e,t){this.#i.set(N(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#i.values()],n={};return t.forEach(t=>{P(e,t.mutationKey)&&Object.assign(n,t.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#n.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||=M(t.queryKey,t),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!==`always`),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode=`offlineFirst`),t.queryFn===re&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#n.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#e.clear(),this.#t.clear()}},ze=o((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),Be=o(((e,t)=>{t.exports=ze()})),H=l(d(),1),U=Be(),Ve=H.createContext(void 0),He=e=>{let t=H.useContext(Ve);if(e)return e;if(!t)throw Error(`No QueryClient set, use QueryClientProvider to set one`);return t},Ue=({client:e,children:t})=>(H.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,U.jsx)(Ve.Provider,{value:e,children:t})),We=H.createContext(!1),Ge=()=>H.useContext(We);We.Provider;function Ke(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var qe=H.createContext(Ke()),Je=()=>H.useContext(qe),Ye=(e,t,n)=>{let r=n?.state.error&&typeof e.throwOnError==`function`?ae(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},Xe=e=>{H.useEffect(()=>{e.clearReset()},[e])},Ze=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:i})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(i&&e.data===void 0||ae(n,[e.error,r])),Qe=e=>{if(e.suspense){let t=1e3,n=e=>e===`static`?e:Math.max(e??t,t),r=e.staleTime;e.staleTime=typeof r==`function`?(...e)=>n(r(...e)):n(r),typeof e.gcTime==`number`&&(e.gcTime=Math.max(e.gcTime,t))}},$e=(e,t)=>e.isLoading&&e.isFetching&&!t,et=(e,t)=>e?.suspense&&t.isPending,tt=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function nt(e,t,n){let r=Ge(),i=Je(),a=He(n),o=a.defaultQueryOptions(e);a.getDefaultOptions().queries?._experimental_beforeQuery?.(o);let s=a.getQueryCache().get(o.queryHash),c=e.subscribed!==!1;o._optimisticResults=r?`isRestoring`:c?`optimistic`:void 0,Qe(o),Ye(o,i,s),Xe(i);let l=!a.getQueryCache().get(o.queryHash),[u]=H.useState(()=>new t(a,o)),d=u.getOptimisticResult(o),f=!r&&c;if(H.useSyncExternalStore(H.useCallback(e=>{let t=f?u.subscribe(de.batchCalls(e)):w;return u.updateResult(),t},[u,f]),()=>u.getCurrentResult(),()=>u.getCurrentResult()),H.useEffect(()=>{u.setOptions(o)},[o,u]),et(o,d))throw tt(o,u,i);if(Ze({result:d,errorResetBoundary:i,throwOnError:o.throwOnError,query:s,suspense:o.suspense}))throw d.error;return a.getDefaultOptions().queries?._experimental_afterQuery?.(o,d),o.experimental_prefetchInRender&&!se.isServer()&&$e(d,r)&&(l?tt(o,u,i):s?.promise)?.catch(w).finally(()=>{u.updateResult()}),o.notifyOnChangeProps?d:u.trackResult(d)}function rt(e,t){return nt(e,Te,t)}function it(e,t){let n=He(t),[r]=H.useState(()=>new Ie(n,e));H.useEffect(()=>{r.setOptions(e)},[r,e]);let i=H.useSyncExternalStore(H.useCallback(e=>r.subscribe(de.batchCalls(e)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=H.useCallback((e,t)=>{r.mutate(e,t).catch(w)},[r]);if(i.error&&ae(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}var at=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),ot=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),st=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),ct=e=>{let t=st(e);return t.charAt(0).toUpperCase()+t.slice(1)},lt={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`},ut=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},dt=(0,H.createContext)({}),ft=()=>(0,H.useContext)(dt),pt=(0,H.forwardRef)(({color:e,size:t,strokeWidth:n,absoluteStrokeWidth:r,className:i=``,children:a,iconNode:o,...s},c)=>{let{size:l=24,strokeWidth:u=2,absoluteStrokeWidth:d=!1,color:f=`currentColor`,className:p=``}=ft()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,H.createElement)(`svg`,{ref:c,...lt,width:t??l??lt.width,height:t??l??lt.height,stroke:e??f,strokeWidth:m,className:at(`lucide`,p,i),...!a&&!ut(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,H.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),W=(e,t)=>{let n=(0,H.forwardRef)(({className:n,...r},i)=>(0,H.createElement)(pt,{ref:i,iconNode:t,className:at(`lucide-${ot(ct(e))}`,`lucide-${e}`,n),...r}));return n.displayName=ct(e),n},mt=W(`arrow-down-right`,[[`path`,{d:`m7 7 10 10`,key:`1fmybs`}],[`path`,{d:`M17 7v10H7`,key:`6fjiku`}]]),ht=W(`arrow-down`,[[`path`,{d:`M12 5v14`,key:`s699le`}],[`path`,{d:`m19 12-7 7-7-7`,key:`1idqje`}]]),gt=W(`arrow-left`,[[`path`,{d:`m12 19-7-7 7-7`,key:`1l729n`}],[`path`,{d:`M19 12H5`,key:`x3x0zl`}]]),_t=W(`arrow-right`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`m12 5 7 7-7 7`,key:`xquz4c`}]]),vt=W(`arrow-up-down`,[[`path`,{d:`m21 16-4 4-4-4`,key:`f6ql7i`}],[`path`,{d:`M17 20V4`,key:`1ejh1v`}],[`path`,{d:`m3 8 4-4 4 4`,key:`11wl7u`}],[`path`,{d:`M7 4v16`,key:`1glfcx`}]]),yt=W(`arrow-up-right`,[[`path`,{d:`M7 7h10v10`,key:`1tivn9`}],[`path`,{d:`M7 17 17 7`,key:`1vkiza`}]]),bt=W(`arrow-up`,[[`path`,{d:`m5 12 7-7 7 7`,key:`hav0vg`}],[`path`,{d:`M12 19V5`,key:`x0mq9r`}]]),xt=W(`baseline`,[[`path`,{d:`M4 20h16`,key:`14thso`}],[`path`,{d:`m6 16 6-12 6 12`,key:`1b4byz`}],[`path`,{d:`M8 12h8`,key:`1wcyev`}]]),St=W(`bold`,[[`path`,{d:`M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8`,key:`mg9rjx`}]]),Ct=W(`book-open-text`,[[`path`,{d:`M12 5v16`,key:`1f6ucr`}],[`path`,{d:`M16 13h2`,key:`weia3s`}],[`path`,{d:`M16 9h2`,key:`1n7gjm`}],[`path`,{d:`M20.001 19A2 2 0 0022 17V5a2 2 0 00-1.999-2L16 3.002A5 5 0 0012 5a5 5 0 00-4-2H4a2 2 0 00-2 2v12a2 2 0 001.999 2H8a5 5 0 014 2 5 5 0 014-2z`,key:`1fyvmf`}],[`path`,{d:`M6 13h2`,key:`1cckiz`}],[`path`,{d:`M6 9h2`,key:`1k7j9f`}]]),wt=W(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]),Tt=W(`braces`,[[`path`,{d:`M8 3H7a2 2 0 0 0-2 2v5a2 2 0 0 1-2 2 2 2 0 0 1 2 2v5c0 1.1.9 2 2 2h1`,key:`ezmyqa`}],[`path`,{d:`M16 21h1a2 2 0 0 0 2-2v-5c0-1.1.9-2 2-2a2 2 0 0 1-2-2V5a2 2 0 0 0-2-2h-1`,key:`e1hn23`}]]),Et=W(`calendar`,[[`path`,{d:`M8 2v3`,key:`1ioesn`}],[`path`,{d:`M16 2v3`,key:`otl347`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}],[`path`,{d:`M3 9h18`,key:`1pudct`}]]),Dt=W(`chart-column`,[[`path`,{d:`M3 3v16a2 2 0 0 0 2 2h16`,key:`c24i48`}],[`path`,{d:`M18 17V9`,key:`2bz60n`}],[`path`,{d:`M13 17V5`,key:`1frdt8`}],[`path`,{d:`M8 17v-3`,key:`17ska0`}]]),Ot=W(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),kt=W(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),At=W(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]),jt=W(`chevron-left`,[[`path`,{d:`m15 18-6-6 6-6`,key:`1wnfg3`}]]),Mt=W(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]),Nt=W(`chevrons-up-down`,[[`path`,{d:`m7 15 5 5 5-5`,key:`1hf1tw`}],[`path`,{d:`m7 9 5-5 5 5`,key:`sgt6xg`}]]),Pt=W(`circle-alert`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`line`,{x1:`12`,x2:`12`,y1:`8`,y2:`12`,key:`1pkeuh`}],[`line`,{x1:`12`,x2:`12.01`,y1:`16`,y2:`16`,key:`4dfq90`}]]),Ft=W(`circle-check`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`m9 12 2 2 4-4`,key:`dzmm74`}]]),It=W(`code-xml`,[[`path`,{d:`m18 16 4-4-4-4`,key:`1inbqp`}],[`path`,{d:`m6 8-4 4 4 4`,key:`15zrgr`}],[`path`,{d:`m14.5 4-5 16`,key:`e7oirm`}]]),Lt=W(`contact-round`,[[`path`,{d:`M16 2v2`,key:`scm5qe`}],[`path`,{d:`M17.915 21a6 6 0 10-12 0`,key:`13n4mv`}],[`path`,{d:`M8 2v2`,key:`pbkmx`}],[`circle`,{cx:`12`,cy:`11`,r:`4`,key:`1gt34v`}],[`rect`,{x:`3`,y:`3`,width:`18`,height:`18`,rx:`2`,key:`h1oib`}]]),Rt=W(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]),zt=W(`database`,[[`ellipse`,{cx:`12`,cy:`5`,rx:`9`,ry:`3`,key:`msslwz`}],[`path`,{d:`M3 5V19A9 3 0 0 0 21 19V5`,key:`1wlel7`}],[`path`,{d:`M3 12A9 3 0 0 0 21 12`,key:`mv7ke4`}]]),Bt=W(`download`,[[`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`}]]),Vt=W(`earth`,[[`path`,{d:`M21.54 15H17a2 2 0 0 0-2 2v4.54`,key:`1djwo0`}],[`path`,{d:`M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17`,key:`1tzkfa`}],[`path`,{d:`M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05`,key:`14pb5j`}],[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),Ht=W(`ellipsis`,[[`circle`,{cx:`12`,cy:`12`,r:`1`,key:`41hilf`}],[`circle`,{cx:`19`,cy:`12`,r:`1`,key:`1wjl8i`}],[`circle`,{cx:`5`,cy:`12`,r:`1`,key:`1pcz8c`}]]),Ut=W(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]),Wt=W(`eye`,[[`path`,{d:`M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0`,key:`1nclc0`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Gt=W(`file-text`,[[`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`}]]),Kt=W(`folder`,[[`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`}]]),qt=W(`globe`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20`,key:`13o1zl`}],[`path`,{d:`M2 12h20`,key:`9i4pu4`}]]),Jt=W(`highlighter`,[[`path`,{d:`m9 11-6 6v3h9l3-3`,key:`1a3l36`}],[`path`,{d:`m22 12-4.6 4.6a2 2 0 0 1-2.8 0l-5.2-5.2a2 2 0 0 1 0-2.8L14 4`,key:`14a9rk`}]]),Yt=W(`house`,[[`path`,{d:`M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8`,key:`5wwlr5`}],[`path`,{d:`M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z`,key:`r6nss1`}]]),Xt=W(`image-plus`,[[`path`,{d:`M16 5h6`,key:`1vod17`}],[`path`,{d:`M19 2v6`,key:`4bpg5p`}],[`path`,{d:`M21 11.5V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h7.5`,key:`1ue2ih`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}]]),Zt=W(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]),Qt=W(`images`,[[`path`,{d:`m22 11-1.296-1.296a2.4 2.4 0 0 0-3.408 0L11 16`,key:`9kzy35`}],[`path`,{d:`M4 8a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2`,key:`1t0f0t`}],[`circle`,{cx:`13`,cy:`7`,r:`1`,fill:`currentColor`,key:`1obus6`}],[`rect`,{x:`8`,y:`2`,width:`14`,height:`14`,rx:`2`,key:`1gvhby`}]]),$t=W(`info`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}],[`path`,{d:`M12 16v-4`,key:`1dtifu`}],[`path`,{d:`M12 8h.01`,key:`e9boi3`}]]),en=W(`italic`,[[`line`,{x1:`19`,x2:`10`,y1:`4`,y2:`4`,key:`15jd3p`}],[`line`,{x1:`14`,x2:`5`,y1:`20`,y2:`20`,key:`bu0au3`}],[`line`,{x1:`15`,x2:`9`,y1:`4`,y2:`20`,key:`uljnxc`}]]),tn=W(`key-round`,[[`path`,{d:`M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z`,key:`1s6t7t`}],[`circle`,{cx:`16.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`w0ekpg`}]]),nn=W(`languages`,[[`path`,{d:`m5 8 6 6`,key:`1wu5hv`}],[`path`,{d:`m4 14 6-6 2-3`,key:`1k1g8d`}],[`path`,{d:`M2 5h12`,key:`or177f`}],[`path`,{d:`M7 2h1`,key:`1t2jsx`}],[`path`,{d:`m22 22-5-10-5 10`,key:`don7ne`}],[`path`,{d:`M14 18h6`,key:`1m8k6r`}]]),rn=W(`layout-dashboard`,[[`rect`,{width:`7`,height:`9`,x:`3`,y:`3`,rx:`1`,key:`10lvy0`}],[`rect`,{width:`7`,height:`5`,x:`14`,y:`3`,rx:`1`,key:`16une8`}],[`rect`,{width:`7`,height:`9`,x:`14`,y:`12`,rx:`1`,key:`1hutg5`}],[`rect`,{width:`7`,height:`5`,x:`3`,y:`16`,rx:`1`,key:`ldoo1y`}]]),an=W(`layout-grid`,[[`rect`,{width:`7`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`1g98yp`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`3`,rx:`1`,key:`6d4xhi`}],[`rect`,{width:`7`,height:`7`,x:`14`,y:`14`,rx:`1`,key:`nxv5o0`}],[`rect`,{width:`7`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`1bb6yr`}]]),on=W(`link-2`,[[`path`,{d:`M9 17H7A5 5 0 0 1 7 7h2`,key:`8i5ue5`}],[`path`,{d:`M15 7h2a5 5 0 1 1 0 10h-2`,key:`1b9ql8`}],[`line`,{x1:`8`,x2:`16`,y1:`12`,y2:`12`,key:`1jonct`}]]),sn=W(`link`,[[`path`,{d:`M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71`,key:`1cjeqo`}],[`path`,{d:`M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71`,key:`19qd67`}]]),cn=W(`list-checks`,[[`path`,{d:`M13 5h8`,key:`a7qcls`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`m3 17 2 2 4-4`,key:`1jhpwq`}],[`path`,{d:`m3 7 2 2 4-4`,key:`1obspn`}]]),ln=W(`list-indent-increase`,[[`path`,{d:`M21 5H11`,key:`us1j55`}],[`path`,{d:`M21 12H11`,key:`wd7e0v`}],[`path`,{d:`M21 19H11`,key:`saa85w`}],[`path`,{d:`m3 8 4 4-4 4`,key:`1a3j6y`}]]),un=W(`list-ordered`,[[`path`,{d:`M11 5h10`,key:`1cz7ny`}],[`path`,{d:`M11 12h10`,key:`1438ji`}],[`path`,{d:`M11 19h10`,key:`11t30w`}],[`path`,{d:`M4 4h1v5`,key:`10yrso`}],[`path`,{d:`M4 9h2`,key:`r1h2o0`}],[`path`,{d:`M6.5 20H3.4c0-1 2.6-1.925 2.6-3.5a1.5 1.5 0 0 0-2.6-1.02`,key:`xtkcd5`}]]),dn=W(`list-tree`,[[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M13 12h8`,key:`h98zly`}],[`path`,{d:`M13 19h8`,key:`c3s6r1`}],[`path`,{d:`M3 10a2 2 0 0 0 2 2h3`,key:`1npucw`}],[`path`,{d:`M3 5v12a2 2 0 0 0 2 2h3`,key:`x1gjn2`}]]),fn=W(`list`,[[`path`,{d:`M3 5h.01`,key:`18ugdj`}],[`path`,{d:`M3 12h.01`,key:`nlz23k`}],[`path`,{d:`M3 19h.01`,key:`noohij`}],[`path`,{d:`M8 5h13`,key:`1pao27`}],[`path`,{d:`M8 12h13`,key:`1za7za`}],[`path`,{d:`M8 19h13`,key:`m83p4d`}]]),pn=W(`loader-circle`,[[`path`,{d:`M21 12a9 9 0 1 1-6.219-8.56`,key:`13zald`}]]),mn=W(`lock-keyhole`,[[`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`}]]),hn=W(`log-out`,[[`path`,{d:`m16 17 5-5-5-5`,key:`1bji2h`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4`,key:`1uf3rs`}]]),gn=W(`mail-warning`,[[`path`,{d:`M22 10.5V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12.5`,key:`e61zoh`}],[`path`,{d:`m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7`,key:`1ocrg3`}],[`path`,{d:`M20 14v4`,key:`1hm744`}],[`path`,{d:`M20 22v.01`,key:`12bgn6`}]]),_n=W(`monitor`,[[`rect`,{width:`20`,height:`14`,x:`2`,y:`3`,rx:`2`,key:`48i651`}],[`line`,{x1:`8`,x2:`16`,y1:`21`,y2:`21`,key:`1svkeh`}],[`line`,{x1:`12`,x2:`12`,y1:`17`,y2:`21`,key:`vw1qmm`}]]),vn=W(`moon`,[[`path`,{d:`M20.985 12.486a9 9 0 1 1-9.473-9.472c.405-.022.617.46.402.803a6 6 0 0 0 8.268 8.268c.344-.215.825-.004.803.401`,key:`kfwtm`}]]),yn=W(`octagon-x`,[[`path`,{d:`m15 9-6 6`,key:`1uzhvr`}],[`path`,{d:`M2.586 16.726A2 2 0 0 1 2 15.312V8.688a2 2 0 0 1 .586-1.414l4.688-4.688A2 2 0 0 1 8.688 2h6.624a2 2 0 0 1 1.414.586l4.688 4.688A2 2 0 0 1 22 8.688v6.624a2 2 0 0 1-.586 1.414l-4.688 4.688a2 2 0 0 1-1.414.586H8.688a2 2 0 0 1-1.414-.586z`,key:`2d38gg`}],[`path`,{d:`m9 9 6 6`,key:`z0biqf`}]]),bn=W(`palette`,[[`path`,{d:`M12 22a1 1 0 0 1 0-20 10 9 0 0 1 10 9 5 5 0 0 1-5 5h-2.25a1.75 1.75 0 0 0-1.4 2.8l.3.4a1.75 1.75 0 0 1-1.4 2.8z`,key:`e79jfc`}],[`circle`,{cx:`13.5`,cy:`6.5`,r:`.5`,fill:`currentColor`,key:`1okk4w`}],[`circle`,{cx:`17.5`,cy:`10.5`,r:`.5`,fill:`currentColor`,key:`f64h9f`}],[`circle`,{cx:`6.5`,cy:`12.5`,r:`.5`,fill:`currentColor`,key:`qy21gx`}],[`circle`,{cx:`8.5`,cy:`7.5`,r:`.5`,fill:`currentColor`,key:`fotxhn`}]]),xn=W(`panel-left`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M9 3v18`,key:`fh3hqa`}]]),Sn=W(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),Cn=W(`pencil-line`,[[`path`,{d:`M13 21h8`,key:`1jsn5i`}],[`path`,{d:`m15 5 4 4`,key:`1mk7zo`}],[`path`,{d:`M21.174 6.812a1 1 0 0 0-3.986-3.987L3.842 16.174a2 2 0 0 0-.5.83l-1.321 4.352a.5.5 0 0 0 .623.622l4.353-1.32a2 2 0 0 0 .83-.497z`,key:`1a8usu`}]]),wn=W(`pilcrow`,[[`path`,{d:`M13 4v16`,key:`8vvj80`}],[`path`,{d:`M17 4v16`,key:`7dpous`}],[`path`,{d:`M19 4H9.5a4.5 4.5 0 0 0 0 9H13`,key:`sh4n9v`}]]),Tn=W(`plus`,[[`path`,{d:`M5 12h14`,key:`1ays0h`}],[`path`,{d:`M12 5v14`,key:`s699le`}]]),En=W(`redo-2`,[[`path`,{d:`m15 14 5-5-5-5`,key:`12vg1m`}],[`path`,{d:`M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13`,key:`6uklza`}]]),Dn=W(`rotate-ccw`,[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`,key:`1357e3`}],[`path`,{d:`M3 3v5h5`,key:`1xhq8a`}]]),On=W(`save`,[[`path`,{d:`M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z`,key:`1c8476`}],[`path`,{d:`M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7`,key:`1ydtos`}],[`path`,{d:`M7 3v4a1 1 0 0 0 1 1h7`,key:`t51u73`}]]),kn=W(`search`,[[`path`,{d:`m21 21-4.34-4.34`,key:`14j7rj`}],[`circle`,{cx:`11`,cy:`11`,r:`8`,key:`4ej97u`}]]),An=W(`send`,[[`path`,{d:`M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z`,key:`1ffxy3`}],[`path`,{d:`m21.854 2.147-10.94 10.939`,key:`12cjpa`}]]),jn=W(`settings-2`,[[`path`,{d:`M14 17H5`,key:`gfn3mx`}],[`path`,{d:`M19 7h-9`,key:`6i9tg`}],[`circle`,{cx:`17`,cy:`17`,r:`3`,key:`18b49y`}],[`circle`,{cx:`7`,cy:`7`,r:`3`,key:`dfmy0x`}]]),Mn=W(`settings`,[[`path`,{d:`M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915`,key:`1i5ecw`}],[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}]]),Nn=W(`strikethrough`,[[`path`,{d:`M16 4H9a3 3 0 0 0-2.83 4`,key:`43sutm`}],[`path`,{d:`M14 12a4 4 0 0 1 0 8H6`,key:`nlfj13`}],[`line`,{x1:`4`,x2:`20`,y1:`12`,y2:`12`,key:`1e0a9i`}]]),Pn=W(`sun`,[[`circle`,{cx:`12`,cy:`12`,r:`4`,key:`4exip2`}],[`path`,{d:`M12 2v2`,key:`tus03m`}],[`path`,{d:`M12 20v2`,key:`1lh1kg`}],[`path`,{d:`m4.93 4.93 1.41 1.41`,key:`149t6j`}],[`path`,{d:`m17.66 17.66 1.41 1.41`,key:`ptbguv`}],[`path`,{d:`M2 12h2`,key:`1t8f8n`}],[`path`,{d:`M20 12h2`,key:`1q8mjw`}],[`path`,{d:`m6.34 17.66-1.41 1.41`,key:`1m8zz5`}],[`path`,{d:`m19.07 4.93-1.41 1.41`,key:`1shlcs`}]]),Fn=W(`table-2`,[[`path`,{d:`M9 3H5a2 2 0 0 0-2 2v4m6-6h10a2 2 0 0 1 2 2v4M9 3v18m0 0h10a2 2 0 0 0 2-2V9M9 21H5a2 2 0 0 1-2-2V9m0 0h18`,key:`gugj83`}]]),In=W(`text-align-end`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M21 12H9`,key:`dn1m92`}],[`path`,{d:`M21 19H7`,key:`4cu937`}]]),Ln=W(`text-align-center`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M17 12H7`,key:`16if0g`}],[`path`,{d:`M19 19H5`,key:`vjpgq2`}]]),Rn=W(`text-align-start`,[[`path`,{d:`M21 5H3`,key:`1fi0y6`}],[`path`,{d:`M15 12H3`,key:`6jk70r`}],[`path`,{d:`M17 19H3`,key:`z6ezky`}]]),zn=W(`trash-2`,[[`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`}]]),Bn=W(`triangle-alert`,[[`path`,{d:`m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3`,key:`wmoenq`}],[`path`,{d:`M12 9v4`,key:`juzpu7`}],[`path`,{d:`M12 17h.01`,key:`p32p05`}]]),Vn=W(`type`,[[`path`,{d:`M12 4v16`,key:`1654pz`}],[`path`,{d:`M4 7V5a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1v2`,key:`e0r10z`}],[`path`,{d:`M9 20h6`,key:`s66wpe`}]]),Hn=W(`underline`,[[`path`,{d:`M6 4v6a6 6 0 0 0 12 0V4`,key:`9kb039`}],[`line`,{x1:`4`,x2:`20`,y1:`20`,y2:`20`,key:`nun2al`}]]),Un=W(`undo-2`,[[`path`,{d:`M9 14 4 9l5-5`,key:`102s5s`}],[`path`,{d:`M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11`,key:`f3b9sd`}]]),Wn=W(`unplug`,[[`path`,{d:`m19 5 3-3`,key:`yk6iyv`}],[`path`,{d:`m2 22 3-3`,key:`19mgm9`}],[`path`,{d:`M6.3 20.3a2.4 2.4 0 0 0 3.4 0L12 18l-6-6-2.3 2.3a2.4 2.4 0 0 0 0 3.4Z`,key:`goz73y`}],[`path`,{d:`M7.5 13.5 10 11`,key:`7xgeeb`}],[`path`,{d:`M10.5 16.5 13 14`,key:`10btkg`}],[`path`,{d:`m12 6 6 6 2.3-2.3a2.4 2.4 0 0 0 0-3.4l-2.6-2.6a2.4 2.4 0 0 0-3.4 0Z`,key:`1snsnr`}]]),Gn=W(`upload`,[[`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`}]]),Kn=W(`user-plus`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}],[`line`,{x1:`19`,x2:`19`,y1:`8`,y2:`14`,key:`1bvyxn`}],[`line`,{x1:`22`,x2:`16`,y1:`11`,y2:`11`,key:`1shjgl`}]]),qn=W(`users`,[[`path`,{d:`M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2`,key:`1yyitq`}],[`path`,{d:`M16 3.128a4 4 0 0 1 0 7.744`,key:`16gr8j`}],[`path`,{d:`M22 21v-2a4 4 0 0 0-3-3.87`,key:`kshegd`}],[`circle`,{cx:`9`,cy:`7`,r:`4`,key:`nufk8`}]]),Jn=W(`video`,[[`path`,{d:`m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5`,key:`ftymec`}],[`rect`,{x:`2`,y:`6`,width:`14`,height:`12`,rx:`2`,key:`158x01`}]]),Yn=W(`wand-sparkles`,[[`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`}]]),Xn=W(`workflow`,[[`rect`,{width:`8`,height:`8`,x:`3`,y:`3`,rx:`2`,key:`by2w9f`}],[`path`,{d:`M7 11v4a2 2 0 0 0 2 2h4`,key:`xkn7yn`}],[`rect`,{width:`8`,height:`8`,x:`13`,y:`13`,rx:`2`,key:`1cgmvn`}]]),Zn=W(`wrench`,[[`path`,{d:`M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z`,key:`1ngwbx`}]]),Qn=W(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),$n=W(`zap`,[[`path`,{d:`M15.914 4a1.5 1.5 0 00-2.474-1.561l-9 9A1.5 1.5 0 005.5 14h4.002a.5.5 0 01.471.666L8.086 20a1.5 1.5 0 002.475 1.56l9-9A1.5 1.5 0 0018.5 10h-3.997a.5.5 0 01-.472-.667z`,key:`1v7up4`}]]),er=l(_(),1);function tr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=tr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function nr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=tr(e))&&(r&&(r+=` `),r+=t);return r}var rr=e=>typeof e==`boolean`?`${e}`:e===0?`0`:e,ir=nr,ar=(e,t)=>n=>{if(t?.variants==null)return ir(e,n?.class,n?.className);let{variants:r,defaultVariants:i}=t,a=Object.keys(r).map(e=>{let t=n?.[e],a=i?.[e];if(t===null)return null;let o=rr(t)||rr(a);return r[e][o]}),o=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return r===void 0||(e[n]=r),e},{});return ir(e,a,t?.compoundVariants?.reduce((e,t)=>{let{class:n,className:r,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...i,...o}[t]):{...i,...o}[t]===n})?[...e,n,r]:e},[]),n?.class,n?.className)},or=Object.defineProperty,sr=(e,t)=>or(e,`name`,{value:t,configurable:!0});function cr(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}sr(cr,`setRef`);function lr(...e){return t=>{let n=!1,r=e.map(e=>{let r=cr(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():cr(e[t],null)}}}}sr(lr,`composeRefs`);function ur(...e){return H.useCallback(lr(...e),e)}sr(ur,`useComposedRefs`);var dr=Object.defineProperty,fr=(e,t)=>dr(e,`name`,{value:t,configurable:!0});function pr(e){let t=H.forwardRef((t,n)=>{let{children:r,...i}=t,a=null,o=!1,s=[];Sr(r)&&typeof Er==`function`&&(r=Er(r._payload)),H.Children.forEach(r,e=>{if(br(e)){o=!0;let t=e,n=`child`in t.props?t.props.child:t.props.children;Sr(n)&&typeof Er==`function`&&(n=Er(n._payload)),a=_r(t,n),s.push(a?.props?.children)}else s.push(e)}),a?a=H.cloneElement(a,void 0,s):!o&&H.Children.count(r)===1&&H.isValidElement(r)&&(a=r);let c=a?yr(a):void 0,l=ur(n,c);if(!a){if(r||r===0)throw Error(o?Tr(e):wr(e));return r}let u=vr(i,a.props??{});return a.type!==H.Fragment&&(u.ref=n?l:c),H.cloneElement(a,u)});return t.displayName=`${e}.Slot`,t}fr(pr,`createSlot`);var mr=pr(`Slot`),hr=Symbol.for(`radix.slottable`);function gr(e){let t=fr(e=>`child`in e?e.children(e.child):e.children,`Slottable`);return t.displayName=`${e}.Slottable`,t.__radixId=hr,t}fr(gr,`createSlottable`);var _r=fr((e,t)=>{if(`child`in e.props){let t=e.props.child;return H.isValidElement(t)?H.cloneElement(t,void 0,e.props.children(t.props.children)):null}return H.isValidElement(t)?t:null},`getSlottableElementFromSlottable`);function vr(e,t){let n={...t};for(let r in t){let i=e[r],a=t[r];/^on[A-Z]/.test(r)?i&&a?n[r]=(...e)=>{let t=a(...e);return i(...e),t}:i&&(n[r]=i):r===`style`?n[r]={...i,...a}:r===`className`&&(n[r]=[i,a].filter(Boolean).join(` `))}return{...e,...n}}fr(vr,`mergeProps`);function yr(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}fr(yr,`getElementRef`);function br(e){return H.isValidElement(e)&&typeof e.type==`function`&&`__radixId`in e.type&&e.type.__radixId===hr}fr(br,`isSlottable`);var xr=Symbol.for(`react.lazy`);function Sr(e){return typeof e==`object`&&!!e&&`$$typeof`in e&&e.$$typeof===xr&&`_payload`in e&&Cr(e._payload)}fr(Sr,`isLazyComponent`);function Cr(e){return typeof e==`object`&&!!e&&`then`in e}fr(Cr,`isPromiseLike`);var wr=fr(e=>`${e} failed to slot onto its children. Expected a single React element child or \`Slottable\`.`,`createSlotError`),Tr=fr(e=>`${e} failed to slot onto its \`Slottable\`. Expected \`Slottable\` to receive a single React element child.`,`createSlottableError`),Er=H.use,Dr=l(h(),1),Or=Object.defineProperty,kr=(e,t)=>Or(e,`name`,{value:t,configurable:!0}),Ar=[`a`,`button`,`div`,`form`,`h2`,`h3`,`img`,`input`,`label`,`li`,`nav`,`ol`,`p`,`select`,`span`,`svg`,`ul`].reduce((e,t)=>{let n=pr(`Primitive.${t}`),r=H.forwardRef((e,r)=>{let{asChild:i,...a}=e,o=i?n:t;return typeof window<`u`&&(window[Symbol.for(`radix-ui`)]=!0),(0,U.jsx)(o,{...a,ref:r})});return r.displayName=`Primitive.${t}`,{...e,[t]:r}},{});function jr(e,t){e&&Dr.flushSync(()=>e.dispatchEvent(t))}kr(jr,`dispatchDiscreteCustomEvent`);var Mr=Object.defineProperty,Nr=(e,t)=>Mr(e,`name`,{value:t,configurable:!0}),Pr=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`}),Fr=H.forwardRef(Nr(function(e,t){return(0,U.jsx)(Ar.span,{...e,ref:t,style:{...Pr,...e.style}})},`VisuallyHidden`)),Ir=Object.defineProperty,Lr=(e,t)=>Ir(e,`name`,{value:t,configurable:!0});function Rr(e,t){let n=H.createContext(t);n.displayName=e+`Context`;let r=Lr(e=>{let{children:t,...r}=e,i=H.useMemo(()=>r,Object.values(r));return(0,U.jsx)(n.Provider,{value:i,children:t})},`Provider`);r.displayName=e+`Provider`;function i(r,i={}){let{optional:a=!1}=i,o=H.useContext(n);if(o)return o;if(t!==void 0)return t;if(!a)throw Error(`\`${r}\` must be used within \`${e}\``)}return Lr(i,`useContext`),[r,i]}Lr(Rr,`createContext`);function zr(e,t=[]){let n=[];function r(t,r){let i=H.createContext(r);i.displayName=t+`Context`;let a=n.length;n=[...n,r];let o=Lr(t=>{let{scope:n,children:r,...o}=t,s=n?.[e]?.[a]||i,c=H.useMemo(()=>o,Object.values(o));return(0,U.jsx)(s.Provider,{value:c,children:r})},`Provider`);o.displayName=t+`Provider`;function s(n,o,s={}){let{optional:c=!1}=s,l=o?.[e]?.[a]||i,u=H.useContext(l);if(u)return u;if(r!==void 0)return r;if(!c)throw Error(`\`${n}\` must be used within \`${t}\``)}return Lr(s,`useContext`),[o,s]}Lr(r,`createContext`);let i=Lr(()=>{let t=n.map(e=>H.createContext(e));return Lr(function(n){let r=n?.[e]||t;return H.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])},`useScope`)},`createScope`);return i.scopeName=e,[r,Br(i,...t)]}Lr(zr,`createContextScope`);function Br(...e){let t=e[0];if(e.length===1)return t;let n=Lr(()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return Lr(function(e){let r=n.reduce((t,{useScope:n,scopeName:r})=>{let i=n(e)[`__scope${r}`];return{...t,...i}},{});return H.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])},`useComposedScopes`)},`createScope`);return n.scopeName=t.scopeName,n}Lr(Br,`composeContextScopes`);var Vr=Object.defineProperty,Hr=(e,t)=>Vr(e,`name`,{value:t,configurable:!0});function Ur(e){let t=e+`CollectionProvider`,[n,r]=zr(t),[i,a]=n(t,{collectionRef:{current:null},itemMap:new Map}),o=Hr(e=>{let{scope:t,children:n}=e,r=H.useRef(null),a=H.useRef(new Map).current;return(0,U.jsx)(i,{scope:t,itemMap:a,collectionRef:r,children:n})},`CollectionProvider`);o.displayName=t;let s=e+`CollectionSlot`,c=pr(s),l=H.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ur(t,a(s,n).collectionRef);return(0,U.jsx)(c,{ref:i,children:r})});l.displayName=s;let u=e+`CollectionItemSlot`,d=`data-radix-collection-item`,f=pr(u),p=H.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=H.useRef(null),s=ur(t,o),c=a(u,n);return H.useEffect(()=>(c.itemMap.set(o,{ref:o,...i}),()=>void c.itemMap.delete(o))),(0,U.jsx)(f,{[d]:``,ref:s,children:r})});p.displayName=u;function m(t){let n=a(e+`CollectionConsumer`,t);return H.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${d}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])}return Hr(m,`useCollection`),[{Provider:o,Slot:l,ItemSlot:p},m,r]}Hr(Ur,`createCollection`);var Wr=new WeakMap,Gr=class e extends Map{static{Hr(this,`OrderedDict`)}#e;constructor(e){super(e),this.#e=[...super.keys()],Wr.set(this,!0)}set(e,t){return Wr.get(this)&&(this.has(e)?this.#e[this.#e.indexOf(e)]=e:this.#e.push(e)),super.set(e,t),this}insert(e,t,n){let r=this.has(t),i=this.#e.length,a=Jr(e),o=a>=0?a:i+a,s=o<0||o>=i?-1:o;if(s===this.size||r&&s===this.size-1||s===-1)return this.set(t,n),this;let c=this.size+ +!r;a<0&&o++;let l=[...this.#e],u,d=!1;for(let e=o;e<c;e++)if(o===e){let i=l[e];l[e]===t&&(i=l[e+1]),r&&this.delete(t),u=this.get(i),this.set(t,n)}else{!d&&l[e-1]===t&&(d=!0);let n=l[d?e:e-1],r=u;u=this.get(n),this.delete(n),this.set(n,r)}return this}with(t,n,r){let i=new e(this);return i.insert(t,n,r),i}before(e){let t=this.#e.indexOf(e)-1;if(!(t<0))return this.entryAt(t)}setBefore(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r,t,n)}after(e){let t=this.#e.indexOf(e);if(t=t===-1||t===this.size-1?-1:t+1,t!==-1)return this.entryAt(t)}setAfter(e,t,n){let r=this.#e.indexOf(e);return r===-1?this:this.insert(r+1,t,n)}first(){return this.entryAt(0)}last(){return this.entryAt(-1)}clear(){return this.#e=[],super.clear()}delete(e){let t=super.delete(e);return t&&this.#e.splice(this.#e.indexOf(e),1),t}deleteAt(e){let t=this.keyAt(e);return t!==void 0&&this.delete(t)}at(e){let t=Kr(this.#e,e);if(t!==void 0)return this.get(t)}entryAt(e){let t=Kr(this.#e,e);if(t!==void 0)return[t,this.get(t)]}indexOf(e){return this.#e.indexOf(e)}keyAt(e){return Kr(this.#e,e)}from(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.at(r)}keyFrom(e,t){let n=this.indexOf(e);if(n===-1)return;let r=n+t;return r<0&&(r=0),r>=this.size&&(r=this.size-1),this.keyAt(r)}find(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return r;n++}}findIndex(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return n;n++}return-1}filter(t,n){let r=[],i=0;for(let e of this)Reflect.apply(t,n,[e,i,this])&&r.push(e),i++;return new e(r)}map(t,n){let r=[],i=0;for(let e of this)r.push([e[0],Reflect.apply(t,n,[e,i,this])]),i++;return new e(r)}reduce(...e){let[t,n]=e,r=0,i=n??this.at(0);for(let n of this)i=r===0&&e.length===1?n:Reflect.apply(t,this,[i,n,r,this]),r++;return i}reduceRight(...e){let[t,n]=e,r=n??this.at(-1);for(let n=this.size-1;n>=0;n--){let i=this.at(n);r=n===this.size-1&&e.length===1?i:Reflect.apply(t,this,[r,i,n,this])}return r}toSorted(t){let n=[...this.entries()].sort(t);return new e(n)}toReversed(){let t=new e;for(let e=this.size-1;e>=0;e--){let n=this.keyAt(e),r=this.get(n);t.set(n,r)}return t}toSpliced(...t){let n=[...this.entries()];return n.splice(...t),new e(n)}slice(t,n){let r=new e,i=this.size-1;if(t===void 0)return r;t<0&&(t+=this.size),n!==void 0&&n>0&&(i=n-1);for(let e=t;e<=i;e++){let t=this.keyAt(e),n=this.get(t);r.set(t,n)}return r}every(e,t){let n=0;for(let r of this){if(!Reflect.apply(e,t,[r,n,this]))return!1;n++}return!0}some(e,t){let n=0;for(let r of this){if(Reflect.apply(e,t,[r,n,this]))return!0;n++}return!1}};function Kr(e,t){if(`at`in Array.prototype)return Array.prototype.at.call(e,t);let n=qr(e,t);return n===-1?void 0:e[n]}Hr(Kr,`at`);function qr(e,t){let n=e.length,r=Jr(t),i=r>=0?r:n+r;return i<0||i>=n?-1:i}Hr(qr,`toSafeIndex`);function Jr(e){return e!==e||e===0?0:Math.trunc(e)}Hr(Jr,`toSafeInteger`);function Yr(e){let t=e+`CollectionProvider`,[n,r]=zr(t),[i,a]=n(t,{collectionElement:null,collectionRef:{current:null},collectionRefObject:{current:null},itemMap:new Gr,setItemMap:Hr(()=>void 0,`setItemMap`)}),o=Hr(({state:e,...t})=>e?(0,U.jsx)(c,{...t,state:e}):(0,U.jsx)(s,{...t}),`CollectionProvider`);o.displayName=t;let s=Hr(e=>{let t=h();return(0,U.jsx)(c,{...e,state:t})},`CollectionInit`);s.displayName=t+`Init`;let c=Hr(e=>{let{scope:t,children:n,state:r}=e,a=H.useRef(null),[o,s]=H.useState(null),c=ur(a,s),[l,u]=r;return H.useEffect(()=>{if(!o)return;let e=$r(()=>{});return e.observe(o,{childList:!0,subtree:!0}),()=>{e.disconnect()}},[o]),(0,U.jsx)(i,{scope:t,itemMap:l,setItemMap:u,collectionRef:c,collectionRefObject:a,collectionElement:o,children:n})},`CollectionProviderImpl`);c.displayName=t+`Impl`;let l=e+`CollectionSlot`,u=pr(l),d=H.forwardRef((e,t)=>{let{scope:n,children:r}=e,i=ur(t,a(l,n).collectionRef);return(0,U.jsx)(u,{ref:i,children:r})});d.displayName=l;let f=e+`CollectionItemSlot`,p=pr(f),m=H.forwardRef((e,t)=>{let{scope:n,children:r,...i}=e,o=H.useRef(null),[s,c]=H.useState(null),l=ur(t,o,c),{setItemMap:u}=a(f,n),d=H.useRef(i);Xr(d.current,i)||(d.current=i);let m=d.current;return H.useEffect(()=>{let e=m;return u(t=>s?t.has(s)?t.set(s,{...e,element:s}).toSorted(Qr):(t.set(s,{...e,element:s}),t.toSorted(Qr)):t),()=>{u(e=>!s||!e.has(s)?e:(e.delete(s),new Gr(e)))}},[s,m,u]),(0,U.jsx)(p,{"data-radix-collection-item":``,ref:l,children:r})});m.displayName=f;function h(){return H.useState(new Gr)}Hr(h,`useInitCollection`);function g(t){let{itemMap:n}=a(e+`CollectionConsumer`,t);return n}return Hr(g,`useCollection`),[{Provider:o,Slot:d,ItemSlot:m},{createCollectionScope:r,useCollection:g,useInitCollection:h}]}Hr(Yr,`createCollection`);function Xr(e,t){if(e===t)return!0;if(typeof e!=`object`||typeof t!=`object`||e==null||t==null)return!1;let n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||e[r]!==t[r])return!1;return!0}Hr(Xr,`shallowEqual`);function Zr(e,t){return!!(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_PRECEDING)}Hr(Zr,`isElementPreceding`);function Qr(e,t){return!e[1].element||!t[1].element?0:Zr(e[1].element,t[1].element)?-1:1}Hr(Qr,`sortByDocumentPosition`);function $r(e){return new MutationObserver(t=>{for(let n of t)if(n.type===`childList`){e();return}})}Hr($r,`getChildListObserver`);var ei=Object.defineProperty,ti=(e,t)=>ei(e,`name`,{value:t,configurable:!0}),ni=!!(typeof window<`u`&&window.document&&window.document.createElement);function G(e,t,{checkForDefaultPrevented:n=!0}={}){return ti(function(r){if(e?.(r),n===!1||!r||!r.defaultPrevented)return t?.(r)},`handleEvent`)}ti(G,`composeEventHandlers`);function ri(e){if(!ni)throw Error(`Cannot access window outside of the DOM`);return e?.ownerDocument?.defaultView??window}ti(ri,`getOwnerWindow`);function ii(e){if(!ni)throw Error(`Cannot access document outside of the DOM`);return e?.ownerDocument??document}ti(ii,`getOwnerDocument`);function ai(e,t=!1){let{activeElement:n}=ii(e);if(!n?.nodeName)return null;if(oi(n)&&n.contentDocument)return ai(n.contentDocument.body,t);if(t){let e=n.getAttribute(`aria-activedescendant`);if(e){let t=ii(n).getElementById(e);if(t)return t}}return n}ti(ai,`getActiveElement`);function oi(e){return e.tagName===`IFRAME`}ti(oi,`isFrame`);var si=globalThis?.document?H.useLayoutEffect:()=>{},ci=Object.defineProperty,li=(e,t)=>ci(e,`name`,{value:t,configurable:!0}),ui=H.useEffectEvent,di=H.useInsertionEffect;function fi(e){if(typeof ui==`function`)return ui(e);let t=H.useRef(()=>{throw Error(`Cannot call an event handler while rendering.`)});return typeof di==`function`?di(()=>{t.current=e}):si(()=>{t.current=e}),H.useMemo(()=>((...e)=>t.current?.(...e)),[])}li(fi,`useEffectEvent`);var pi=Object.defineProperty,mi=(e,t)=>pi(e,`name`,{value:t,configurable:!0}),hi=H.useInsertionEffect||si;function gi({prop:e,defaultProp:t,onChange:n=mi(()=>{},`onChange`),caller:r}){let[i,a,o]=_i({defaultProp:t,onChange:n}),s=e!==void 0;return[s?e:i,H.useCallback(t=>{if(s){let n=vi(t)?t(e):t;n!==e&&o.current?.(n)}else a(t)},[s,e,a,o])]}mi(gi,`useControllableState`);function _i({defaultProp:e,onChange:t}){let[n,r]=H.useState(e),i=H.useRef(n),a=H.useRef(t);return hi(()=>{a.current=t},[t]),H.useEffect(()=>{i.current!==n&&(a.current?.(n),i.current=n)},[n,i]),[n,r,a]}mi(_i,`useUncontrolledState`);function vi(e){return typeof e==`function`}mi(vi,`isFunction`);var yi=Symbol(`RADIX:SYNC_STATE`);function bi(e,t,n,r){let{prop:i,defaultProp:a,onChange:o,caller:s}=t,c=i!==void 0,l=fi(o),u=[{...n,state:a}];r&&u.push(r);let[d,f]=H.useReducer((t,n)=>{if(n.type===yi)return{...t,state:n.state};let r=e(t,n);return c&&!Object.is(r.state,t.state)&&l(r.state),r},...u),p=d.state,m=H.useRef(p);H.useEffect(()=>{m.current!==p&&(m.current=p,c||l(p))},[p,m,c]);let h=H.useMemo(()=>i===void 0?d:{...d,state:i},[d,i]);return H.useEffect(()=>{c&&!Object.is(i,d.state)&&f({type:yi,state:i})},[i,d.state,c]),[h,f]}mi(bi,`useControllableStateReducer`);var xi=Object.defineProperty,Si=(e,t)=>xi(e,`name`,{value:t,configurable:!0});function Ci(e,t){return H.useReducer((e,n)=>t[e][n]??e,e)}Si(Ci,`useStateMachine`);var wi=Si(e=>{let{present:t,children:n}=e,r=Ti(t),i=typeof n==`function`?n({present:r.isPresent}):H.Children.only(n),a=Di(r.ref,ki(i));return typeof n==`function`||r.isPresent?H.cloneElement(i,{ref:a}):null},`Presence`);function Ti(e){let[t,n]=H.useState(),r=H.useRef(null),i=H.useRef(e),a=H.useRef(`none`),o=H.useRef(void 0),[s,c]=Ci(e?`mounted`:`unmounted`,{mounted:{UNMOUNT:`unmounted`,ANIMATION_OUT:`unmountSuspended`},unmountSuspended:{MOUNT:`mounted`,ANIMATION_END:`unmounted`},unmounted:{MOUNT:`mounted`}});return H.useEffect(()=>{s===`mounted`?(a.current=o.current??Oi(r.current),o.current=void 0):a.current=`none`},[s]),si(()=>{let t=r.current,n=i.current;if(n!==e){let r=a.current,s=Oi(t);e?(o.current=s,c(`MOUNT`)):s===`none`||t?.display===`none`?c(`UNMOUNT`):c(n&&r!==s?`ANIMATION_OUT`:`UNMOUNT`),i.current=e}},[e,c]),si(()=>{if(t){let e,n=t.ownerDocument.defaultView??window,o=Si(a=>{let o=Oi(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&o&&(c(`ANIMATION_END`),!i.current)){let r=t.style.animationFillMode;t.style.animationFillMode=`forwards`,e=n.setTimeout(()=>{t.style.animationFillMode===`forwards`&&(t.style.animationFillMode=r)})}},`handleAnimationEnd`),s=Si(e=>{e.target===t&&(a.current=Oi(r.current))},`handleAnimationStart`);return t.addEventListener(`animationstart`,s),t.addEventListener(`animationcancel`,o),t.addEventListener(`animationend`,o),()=>{n.clearTimeout(e),t.removeEventListener(`animationstart`,s),t.removeEventListener(`animationcancel`,o),t.removeEventListener(`animationend`,o)}}c(`ANIMATION_END`)},[t,c]),{isPresent:[`mounted`,`unmountSuspended`].includes(s),ref:H.useCallback(e=>{if(e){let t=getComputedStyle(e);r.current=t,o.current=Oi(t)}else r.current=null;n(e)},[])}}Si(Ti,`usePresence`);function Ei(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}Si(Ei,`setRef`);function Di(...e){let t=H.useRef(e);return t.current=e,H.useCallback(e=>{let n=t.current,r=!1,i=n.map(t=>{let n=Ei(t,e);return!r&&typeof n==`function`&&(r=!0),n});if(r)return()=>{for(let e=0;e<i.length;e++){let t=i[e];typeof t==`function`?t():Ei(n[e],null)}}},[])}Si(Di,`useStableComposedRefs`);function Oi(e){return e?.animationName||`none`}Si(Oi,`getAnimationName`);function ki(e){let t=Object.getOwnPropertyDescriptor(e.props,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning;return n?e.ref:(t=Object.getOwnPropertyDescriptor(e,`ref`)?.get,n=t&&`isReactWarning`in t&&t.isReactWarning,n?e.props.ref:e.props.ref||e.ref)}Si(ki,`getElementRef`);var Ai=Object.defineProperty,ji=(e,t)=>Ai(e,`name`,{value:t,configurable:!0}),Mi=H.useId||(()=>void 0),Ni=0;function Pi(e){let[t,n]=H.useState(Mi());return si(()=>{e||n(e=>e??String(Ni++))},[e]),e||(t?`radix-${t}`:``)}ji(Pi,`useId`);var Fi=Object.defineProperty,Ii=(e,t)=>Fi(e,`name`,{value:t,configurable:!0}),Li=`Collapsible`,[Ri,zi]=zr(Li),[Bi,Vi]=Ri(Li),Hi=H.forwardRef(Ii(function(e,t){let{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:a,onOpenChange:o,...s}=e,[c,l]=gi({prop:r,defaultProp:i??!1,onChange:o,caller:Li});return(0,U.jsx)(Bi,{scope:n,disabled:a,contentId:Pi(),open:c,onOpenToggle:H.useCallback(()=>l(e=>!e),[l]),children:(0,U.jsx)(Ar.div,{"data-state":Ji(c),"data-disabled":a?``:void 0,...s,ref:t})})},`Collapsible`)),Ui=`CollapsibleTrigger`,Wi=H.forwardRef(Ii(function(e,t){let{__scopeCollapsible:n,...r}=e,i=Vi(Ui,n);return(0,U.jsx)(Ar.button,{type:`button`,"aria-controls":i.open?i.contentId:void 0,"aria-expanded":i.open||!1,"data-state":Ji(i.open),"data-disabled":i.disabled?``:void 0,disabled:i.disabled,...r,ref:t,onClick:G(e.onClick,i.onOpenToggle)})},`CollapsibleTrigger`)),Gi=`CollapsibleContent`,Ki=H.forwardRef(Ii(function(e,t){let{forceMount:n,...r}=e,i=Vi(Gi,e.__scopeCollapsible);return(0,U.jsx)(wi,{present:n||i.open,children:({present:e})=>(0,U.jsx)(qi,{...r,ref:t,present:e})})},`CollapsibleContent`)),qi=H.forwardRef(Ii(function(e,t){let{__scopeCollapsible:n,present:r,children:i,...a}=e,o=Vi(Gi,n),[s,c]=H.useState(r),l=H.useRef(null),u=ur(t,l),d=H.useRef(0),f=d.current,p=H.useRef(0),m=p.current,h=o.open||s,g=H.useRef(h),_=H.useRef(void 0);return H.useEffect(()=>{let e=requestAnimationFrame(()=>g.current=!1);return()=>cancelAnimationFrame(e)},[]),si(()=>{let e=l.current;if(e){_.current=_.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration=`0s`,e.style.animationName=`none`;let t=e.getBoundingClientRect();d.current=t.height,p.current=t.width,g.current||(e.style.transitionDuration=_.current.transitionDuration,e.style.animationName=_.current.animationName),c(r)}},[o.open,r]),(0,U.jsx)(Ar.div,{"data-state":Ji(o.open),"data-disabled":o.disabled?``:void 0,id:o.contentId,hidden:!h,...a,ref:u,style:{"--radix-collapsible-content-height":f?`${f}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:h&&i})},`CollapsibleContentImpl`));function Ji(e){return e?`open`:`closed`}Ii(Ji,`getState`);var Yi=Hi,Xi=Object.defineProperty,Zi=(e,t)=>Xi(e,`name`,{value:t,configurable:!0}),Qi=H.createContext(void 0);function $i(e){let t=H.useContext(Qi);return e||t||`ltr`}Zi($i,`useDirection`);var ea=Object.defineProperty,ta=(e,t)=>ea(e,`name`,{value:t,configurable:!0});function na(e){let t=H.useRef(e);return H.useEffect(()=>{t.current=e}),H.useMemo(()=>((...e)=>t.current?.(...e)),[])}ta(na,`useCallbackRef`);var ra=Object.defineProperty,ia=(e,t)=>ra(e,`name`,{value:t,configurable:!0}),aa=`dismissableLayer.update`,oa=`dismissableLayer.pointerDownOutside`,sa=`dismissableLayer.focusOutside`,ca,la=H.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set,dismissableSurfaces:new Set}),ua=H.forwardRef(ia(function(e,t){let{disableOutsidePointerEvents:n=!1,deferPointerDownOutside:r=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:c,...l}=e,u=H.useContext(la),[d,f]=H.useState(null),p=d?.ownerDocument??globalThis?.document,[,m]=H.useState({}),h=ur(t,f),g=Array.from(u.layers),[_]=[...u.layersWithOutsidePointerEventsDisabled].slice(-1),v=_?g.indexOf(_):-1,y=d?g.indexOf(d):-1,b=u.layersWithOutsidePointerEventsDisabled.size>0,x=y>=v,S=H.useRef(!1),C=pa(e=>{a?.(e),s?.(e),e.defaultPrevented||c?.()},{ownerDocument:p,deferPointerDownOutside:r,isDeferredPointerDownOutsideRef:S,dismissableSurfaces:u.dismissableSurfaces,shouldHandlePointerDownOutside:H.useCallback(e=>{if(!(e instanceof Node))return!1;let t=[...u.branches].some(t=>t.contains(e));return x&&!t},[u.branches,x])}),w=ma(e=>{if(r&&S.current)return;let t=e.target;[...u.branches].some(e=>e.contains(t))||(o?.(e),s?.(e),e.defaultPrevented||c?.())},p),T=d?y===g.length-1:!1,E=na(e=>{e.key===`Escape`&&(i?.(e),!e.defaultPrevented&&c&&(e.preventDefault(),c()))});return H.useEffect(()=>{if(T)return p.addEventListener(`keydown`,E,{capture:!0}),()=>p.removeEventListener(`keydown`,E,{capture:!0})},[p,T,E]),H.useEffect(()=>{if(d)return n&&(u.layersWithOutsidePointerEventsDisabled.size===0&&(ca=p.body.style.pointerEvents,p.body.style.pointerEvents=`none`),u.layersWithOutsidePointerEventsDisabled.add(d)),u.layers.add(d),ha(),()=>{n&&(u.layersWithOutsidePointerEventsDisabled.delete(d),u.layersWithOutsidePointerEventsDisabled.size===0&&(p.body.style.pointerEvents=ca))}},[d,p,n,u]),H.useEffect(()=>()=>{d&&(u.layers.delete(d),u.layersWithOutsidePointerEventsDisabled.delete(d),ha())},[d,u]),H.useEffect(()=>{let e=ia(()=>m({}),`handleUpdate`);return document.addEventListener(aa,e),()=>document.removeEventListener(aa,e)},[]),(0,U.jsx)(Ar.div,{...l,ref:h,style:{pointerEvents:b?x?`auto`:`none`:void 0,...e.style},onFocusCapture:G(e.onFocusCapture,w.onFocusCapture),onBlurCapture:G(e.onBlurCapture,w.onBlurCapture),onPointerDownCapture:G(e.onPointerDownCapture,C.onPointerDownCapture)})},`DismissableLayer`));function da(){let e=H.useContext(la),[t,n]=H.useState(null);return H.useEffect(()=>{if(t)return e.dismissableSurfaces.add(t),()=>{e.dismissableSurfaces.delete(t)}},[t,e.dismissableSurfaces]),n}ia(da,`useDismissableLayerSurface`);var fa=ia(()=>!0,`IS_TRUE`);function pa(e,t){let{ownerDocument:n=globalThis?.document,deferPointerDownOutside:r=!1,isDeferredPointerDownOutsideRef:i,dismissableSurfaces:a,shouldHandlePointerDownOutside:o=fa}=t,s=na(e),c=H.useRef(!1),l=H.useRef(!1),u=H.useRef(new Map),d=H.useRef(()=>{});return H.useEffect(()=>{function e(){l.current=!1,i.current=!1,u.current.clear()}ia(e,`resetOutsideInteraction`);function t(){return Array.from(u.current.values()).some(Boolean)}ia(t,`isOutsideInteractionIntercepted`);function f(e){if(!l.current)return;let t=e.target;t instanceof Node&&[...a].some(e=>e.contains(t))||u.current.set(e.type,!0),e.type===`click`&&window.setTimeout(()=>{l.current&&d.current()},0)}ia(f,`handleInteractionCapture`);function p(e){l.current&&u.current.set(e.type,!1)}ia(p,`handleInteractionBubble`);let m=ia(a=>{if(a.target&&!c.current){let f=function(){n.removeEventListener(`click`,d.current);let r=t();e(),r||ga(oa,s,p,{discrete:!0})};if(ia(f,`handleAndDispatchPointerDownOutsideEvent`),!o(a.target)){n.removeEventListener(`click`,d.current),e(),c.current=!1;return}let p={originalEvent:a};l.current=!0,i.current=r&&a.button===0,u.current.clear(),!r||a.button!==0?f():(n.removeEventListener(`click`,d.current),d.current=f,n.addEventListener(`click`,d.current,{once:!0}))}else n.removeEventListener(`click`,d.current),e();c.current=!1},`handlePointerDown`),h=[`pointerup`,`mousedown`,`mouseup`,`touchstart`,`touchend`,`click`];for(let e of h)n.addEventListener(e,f,!0),n.addEventListener(e,p);let g=window.setTimeout(()=>{n.addEventListener(`pointerdown`,m)},0);return()=>{window.clearTimeout(g),n.removeEventListener(`pointerdown`,m),n.removeEventListener(`click`,d.current);for(let e of h)n.removeEventListener(e,f,!0),n.removeEventListener(e,p)}},[n,s,r,i,a,o]),{onPointerDownCapture:ia(()=>c.current=!0,`onPointerDownCapture`)}}ia(pa,`usePointerDownOutside`);function ma(e,t=globalThis?.document){let n=na(e),r=H.useRef(!1);return H.useEffect(()=>{let e=ia(e=>{e.target&&!r.current&&ga(sa,n,{originalEvent:e},{discrete:!1})},`handleFocus`);return t.addEventListener(`focusin`,e),()=>t.removeEventListener(`focusin`,e)},[t,n]),{onFocusCapture:ia(()=>r.current=!0,`onFocusCapture`),onBlurCapture:ia(()=>r.current=!1,`onBlurCapture`)}}ia(ma,`useFocusOutside`);function ha(){let e=new CustomEvent(aa);document.dispatchEvent(e)}ia(ha,`dispatchUpdate`);function ga(e,t,n,{discrete:r}){let i=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&i.addEventListener(e,t,{once:!0}),r?jr(i,a):i.dispatchEvent(a)}ia(ga,`handleAndDispatchCustomEvent`);var _a=Object.defineProperty,va=(e,t)=>_a(e,`name`,{value:t,configurable:!0}),ya=`focusScope.autoFocusOnMount`,ba=`focusScope.autoFocusOnUnmount`,xa={bubbles:!1,cancelable:!0},Sa=H.forwardRef(va(function(e,t){let{loop:n=!1,trapped:r=!1,onMountAutoFocus:i,onUnmountAutoFocus:a,...o}=e,[s,c]=H.useState(null),l=na(i),u=na(a),d=H.useRef(null),f=ur(t,c),p=H.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;H.useEffect(()=>{if(r){let e=function(e){if(p.paused||!s)return;let t=e.target;s.contains(t)?d.current=t:ka(d.current,{select:!0})},t=function(e){if(p.paused||!s)return;let t=e.relatedTarget;t!==null&&(s.contains(t)||ka(d.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&ka(s)};va(e,`handleFocusIn`),va(t,`handleFocusOut`),va(n,`handleMutations`),document.addEventListener(`focusin`,e),document.addEventListener(`focusout`,t);let r=new MutationObserver(n);return s&&r.observe(s,{childList:!0,subtree:!0}),()=>{document.removeEventListener(`focusin`,e),document.removeEventListener(`focusout`,t),r.disconnect()}}},[r,s,p.paused]),H.useEffect(()=>{if(s){Aa.add(p);let e=document.activeElement;if(!s.contains(e)){let t=new CustomEvent(ya,xa);s.addEventListener(ya,l),s.dispatchEvent(t),t.defaultPrevented||(Ca(Na(Ta(s)),{select:!0}),document.activeElement===e&&ka(s))}return()=>{s.removeEventListener(ya,l),setTimeout(()=>{let t=new CustomEvent(ba,xa);s.addEventListener(ba,u),s.dispatchEvent(t),t.defaultPrevented||ka(e??document.body,{select:!0}),s.removeEventListener(ba,u),Aa.remove(p)},0)}}},[s,l,u,p]);let m=H.useCallback(e=>{if(!n&&!r||p.paused)return;let t=e.key===`Tab`&&!e.altKey&&!e.ctrlKey&&!e.metaKey,i=document.activeElement;if(t&&i){let t=e.currentTarget,[r,a]=wa(t);r&&a?!e.shiftKey&&i===a?(e.preventDefault(),n&&ka(r,{select:!0})):e.shiftKey&&i===r&&(e.preventDefault(),n&&ka(a,{select:!0})):i===t&&e.preventDefault()}},[n,r,p.paused]);return(0,U.jsx)(Ar.div,{tabIndex:-1,...o,ref:f,onKeyDown:m})},`FocusScope`));function Ca(e,{select:t=!1}={}){let n=document.activeElement;for(let r of e)if(ka(r,{select:t}),document.activeElement!==n)return}va(Ca,`focusFirst`);function wa(e){let t=Ta(e);return[Ea(t,e),Ea(t.reverse(),e)]}va(wa,`getTabbableEdges`);function Ta(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:va(e=>{let t=e.tagName===`INPUT`&&e.type===`hidden`;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP},`acceptNode`)});for(;n.nextNode();)t.push(n.currentNode);return t}va(Ta,`getTabbableCandidates`);function Ea(e,t){let n=typeof t.checkVisibility==`function`&&t.checkVisibility({checkVisibilityCSS:!0});for(let r of e)if(!(n?!r.checkVisibility({checkVisibilityCSS:!0}):Da(r,{upTo:t})))return r}va(Ea,`findVisible`);function Da(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}va(Da,`isHidden`);function Oa(e){return e instanceof HTMLInputElement&&`select`in e}va(Oa,`isSelectableInput`);function ka(e,{select:t=!1}={}){if(e&&e.focus){let n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&Oa(e)&&t&&e.select()}}va(ka,`focus`);var Aa=ja();function ja(){let e=[];return{add(t){let n=e[0];t!==n&&n?.pause(),e=Ma(e,t),e.unshift(t)},remove(t){e=Ma(e,t),e[0]?.resume()}}}va(ja,`createFocusScopesStack`);function Ma(e,t){let n=[...e],r=n.indexOf(t);return r!==-1&&n.splice(r,1),n}va(Ma,`arrayRemove`);function Na(e){return e.filter(e=>e.tagName!==`A`)}va(Na,`removeLinks`);var Pa=Object.defineProperty,Fa=H.forwardRef(((e,t)=>Pa(e,`name`,{value:t,configurable:!0}))(function(e,t){let{container:n,...r}=e,[i,a]=H.useState(!1);si(()=>a(!0),[]);let o=n||i&&globalThis?.document?.body;return o?Dr.createPortal((0,U.jsx)(Ar.div,{...r,ref:t}),o):null},`Portal`)),Ia=Object.defineProperty,La=(e,t)=>Ia(e,`name`,{value:t,configurable:!0}),Ra=0,za=null;function Ba(e){return Va(),e.children}La(Ba,`FocusGuards`);function Va(){H.useEffect(()=>{za||={start:Ha(),end:Ha()};let{start:e,end:t}=za;return document.body.firstElementChild!==e&&document.body.insertAdjacentElement(`afterbegin`,e),document.body.lastElementChild!==t&&document.body.insertAdjacentElement(`beforeend`,t),Ra++,()=>{Ra===1&&(za?.start.remove(),za?.end.remove(),za=null),Ra=Math.max(0,Ra-1)}},[])}La(Va,`useFocusGuards`);function Ha(){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}La(Ha,`createFocusGuard`);var Ua=function(){return Ua=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},Ua.apply(this,arguments)};function Wa(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ga(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}var Ka=`right-scroll-bar-position`,qa=`width-before-scroll-bar`,Ja=`with-scroll-bars-hidden`,Ya=`--removed-body-scroll-bar-size`;function Xa(e,t){return typeof e==`function`?e(t):e&&(e.current=t),e}function Za(e,t){var n=(0,H.useState)(function(){return{value:e,callback:t,facade:{get current(){return n.value},set current(e){var t=n.value;t!==e&&(n.value=e,n.callback(e,t))}}}})[0];return n.callback=t,n.facade}var Qa=typeof window<`u`?H.useLayoutEffect:H.useEffect,$a=new WeakMap;function eo(e,t){var n=Za(t||null,function(t){return e.forEach(function(e){return Xa(e,t)})});return Qa(function(){var t=$a.get(n);if(t){var r=new Set(t),i=new Set(e),a=n.current;r.forEach(function(e){i.has(e)||Xa(e,null)}),i.forEach(function(e){r.has(e)||Xa(e,a)})}$a.set(n,e)},[e]),n}function to(e){return e}function no(e,t){t===void 0&&(t=to);var n=[],r=!1;return{read:function(){if(r)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var i=t(e,r);return n.push(i),function(){n=n.filter(function(e){return e!==i})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var i=n;n=[],i.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},o=function(){return Promise.resolve().then(a)};o(),n={push:function(e){t.push(e),o()},filter:function(e){return t=t.filter(e),n}}}}}function ro(e){e===void 0&&(e={});var t=no(null);return t.options=Ua({async:!0,ssr:!1},e),t}var io=function(e){var t=e.sideCar,n=Wa(e,[`sideCar`]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw Error(`Sidecar medium not found`);return H.createElement(r,Ua({},n))};io.isSideCarExport=!0;function ao(e,t){return e.useMedium(t),io}var oo=ro(),so=function(){},co=H.forwardRef(function(e,t){var n=H.useRef(null),r=H.useState({onScrollCapture:so,onWheelCapture:so,onTouchMoveCapture:so}),i=r[0],a=r[1],o=e.forwardProps,s=e.children,c=e.className,l=e.removeScrollBar,u=e.enabled,d=e.shards,f=e.sideCar,p=e.noRelative,m=e.noIsolation,h=e.inert,g=e.allowPinchZoom,_=e.as,v=_===void 0?`div`:_,y=e.gapMode,b=Wa(e,[`forwardProps`,`children`,`className`,`removeScrollBar`,`enabled`,`shards`,`sideCar`,`noRelative`,`noIsolation`,`inert`,`allowPinchZoom`,`as`,`gapMode`]),x=f,S=eo([n,t]),C=Ua(Ua({},b),i);return H.createElement(H.Fragment,null,u&&H.createElement(x,{sideCar:oo,removeScrollBar:l,shards:d,noRelative:p,noIsolation:m,inert:h,setCallbacks:a,allowPinchZoom:!!g,lockRef:n,gapMode:y}),o?H.cloneElement(H.Children.only(s),Ua(Ua({},C),{ref:S})):H.createElement(v,Ua({},C,{className:c,ref:S}),s))});co.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},co.classNames={fullWidth:qa,zeroRight:Ka};var lo=function(){if(typeof __webpack_nonce__<`u`)return __webpack_nonce__};function uo(){if(!document)return null;var e=document.createElement(`style`);e.type=`text/css`;var t=lo();return t&&e.setAttribute(`nonce`,t),e}function fo(e,t){e.styleSheet?e.styleSheet.cssText=t:e.appendChild(document.createTextNode(t))}function po(e){(document.head||document.getElementsByTagName(`head`)[0]).appendChild(e)}var mo=function(){var e=0,t=null;return{add:function(n){e==0&&(t=uo())&&(fo(t,n),po(t)),e++},remove:function(){e--,!e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},ho=function(){var e=mo();return function(t,n){H.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},go=function(){var e=ho();return function(t){var n=t.styles,r=t.dynamic;return e(n,r),null}},_o={left:0,top:0,right:0,gap:0},vo=function(e){return parseInt(e||``,10)||0},yo=function(e){var t=window.getComputedStyle(document.body),n=t[e===`padding`?`paddingLeft`:`marginLeft`],r=t[e===`padding`?`paddingTop`:`marginTop`],i=t[e===`padding`?`paddingRight`:`marginRight`];return[vo(n),vo(r),vo(i)]},bo=function(e){if(e===void 0&&(e=`margin`),typeof window>`u`)return _o;var t=yo(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},xo=go(),So=`data-scroll-locked`,Co=function(e,t,n,r){var i=e.left,a=e.top,o=e.right,s=e.gap;return n===void 0&&(n=`margin`),`
10
+ .${Ja} {
11
+ overflow: hidden ${r};
12
+ padding-right: ${s}px ${r};
13
+ }
14
+ body[${So}] {
15
+ overflow: hidden ${r};
16
+ overscroll-behavior: contain;
17
+ ${[t&&`position: relative ${r};`,n===`margin`&&`
18
+ padding-left: ${i}px;
19
+ padding-top: ${a}px;
20
+ padding-right: ${o}px;
21
+ margin-left:0;
22
+ margin-top:0;
23
+ margin-right: ${s}px ${r};
24
+ `,n===`padding`&&`padding-right: ${s}px ${r};`].filter(Boolean).join(``)}
25
+ }
26
+
27
+ .${Ka} {
28
+ right: ${s}px ${r};
29
+ }
30
+
31
+ .${qa} {
32
+ margin-right: ${s}px ${r};
33
+ }
34
+
35
+ .${Ka} .${Ka} {
36
+ right: 0 ${r};
37
+ }
38
+
39
+ .${qa} .${qa} {
40
+ margin-right: 0 ${r};
41
+ }
42
+
43
+ body[${So}] {
44
+ ${Ya}: ${s}px;
45
+ }
46
+ `},wo=function(){var e=parseInt(document.body.getAttribute(`data-scroll-locked`)||`0`,10);return isFinite(e)?e:0},To=function(){H.useEffect(function(){return document.body.setAttribute(So,(wo()+1).toString()),function(){var e=wo()-1;e<=0?document.body.removeAttribute(So):document.body.setAttribute(So,e.toString())}},[])},Eo=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,i=r===void 0?`margin`:r;To();var a=H.useMemo(function(){return bo(i)},[i]);return H.createElement(xo,{styles:Co(a,!t,i,n?``:`!important`)})},Do=!1;if(typeof window<`u`)try{var Oo=Object.defineProperty({},"passive",{get:function(){return Do=!0,!0}});window.addEventListener(`test`,Oo,Oo),window.removeEventListener(`test`,Oo,Oo)}catch{Do=!1}var ko=Do?{passive:!1}:!1,Ao=function(e){return e.tagName===`TEXTAREA`},jo=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return n[t]!==`hidden`&&!(n.overflowY===n.overflowX&&!Ao(e)&&n[t]===`visible`)},Mo=function(e){return jo(e,`overflowY`)},No=function(e){return jo(e,`overflowX`)},Po=function(e,t){var n=t.ownerDocument,r=t;do{if(typeof ShadowRoot<`u`&&r instanceof ShadowRoot&&(r=r.host),Lo(e,r)){var i=Ro(e,r);if(i[1]>i[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Fo=function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]},Io=function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]},Lo=function(e,t){return e===`v`?Mo(t):No(t)},Ro=function(e,t){return e===`v`?Fo(t):Io(t)},zo=function(e,t){return e===`h`&&t===`rtl`?-1:1},Bo=function(e,t,n,r,i){var a=zo(e,window.getComputedStyle(t).direction),o=a*r,s=n.target,c=t.contains(s),l=!1,u=o>0,d=0,f=0;do{if(!s)break;var p=Ro(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Lo(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!c&&s!==document.body||c&&(t.contains(s)||t===s));return(u&&(i&&Math.abs(d)<1||!i&&o>d)||!u&&(i&&Math.abs(f)<1||!i&&-o>f))&&(l=!0),l},Vo=function(e){return`changedTouches`in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Ho=function(e){return[e.deltaX,e.deltaY]},Uo=function(e){return e&&`current`in e?e.current:e},Wo=function(e,t){return e[0]===t[0]&&e[1]===t[1]},Go=function(e){return`
47
+ .block-interactivity-${e} {pointer-events: none;}
48
+ .allow-interactivity-${e} {pointer-events: all;}
49
+ `},Ko=0,qo=[];function Jo(e){var t=H.useRef([]),n=H.useRef([0,0]),r=H.useRef(),i=H.useState(Ko++)[0],a=H.useState(go)[0],o=H.useRef(e);H.useEffect(function(){o.current=e},[e]),H.useEffect(function(){if(e.inert){document.body.classList.add(`block-interactivity-${i}`);var t=Ga([e.lockRef.current],(e.shards||[]).map(Uo),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add(`allow-interactivity-${i}`)}),function(){document.body.classList.remove(`block-interactivity-${i}`),t.forEach(function(e){return e.classList.remove(`allow-interactivity-${i}`)})}}},[e.inert,e.lockRef.current,e.shards]);var s=H.useCallback(function(e,t){if(`touches`in e&&e.touches.length===2||e.type===`wheel`&&e.ctrlKey)return!o.current.allowPinchZoom;var i=Vo(e),a=n.current,s=`deltaX`in e?e.deltaX:a[0]-i[0],c=`deltaY`in e?e.deltaY:a[1]-i[1],l,u=e.target,d=Math.abs(s)>Math.abs(c)?`h`:`v`;if(`touches`in e&&d===`h`&&u.type===`range`)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=Po(d,u);if(!m)return!0;if(m?l=d:(l=d===`v`?`h`:`v`,m=Po(d,u)),!m)return!1;if(!r.current&&`changedTouches`in e&&(s||c)&&(r.current=l),!l)return!0;var h=r.current||l;return Bo(h,t,e,h===`h`?s:c,!0)},[]),c=H.useCallback(function(e){var n=e;if(!(!qo.length||qo[qo.length-1]!==a)){var r=`deltaY`in n?Ho(n):Vo(n),i=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&Wo(e.delta,r)})[0];if(i&&i.should){n.cancelable&&n.preventDefault();return}if(!i){var c=(o.current.shards||[]).map(Uo).filter(Boolean).filter(function(e){return e.contains(n.target)});(c.length>0?s(n,c[0]):!o.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),l=H.useCallback(function(e,n,r,i){var a={name:e,delta:n,target:r,should:i,shadowParent:Yo(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),u=H.useCallback(function(e){n.current=Vo(e),r.current=void 0},[]),d=H.useCallback(function(t){l(t.type,Ho(t),t.target,s(t,e.lockRef.current))},[]),f=H.useCallback(function(t){l(t.type,Vo(t),t.target,s(t,e.lockRef.current))},[]);H.useEffect(function(){return qo.push(a),e.setCallbacks({onScrollCapture:d,onWheelCapture:d,onTouchMoveCapture:f}),document.addEventListener(`wheel`,c,ko),document.addEventListener(`touchmove`,c,ko),document.addEventListener(`touchstart`,u,ko),function(){qo=qo.filter(function(e){return e!==a}),document.removeEventListener(`wheel`,c,ko),document.removeEventListener(`touchmove`,c,ko),document.removeEventListener(`touchstart`,u,ko)}},[]);var p=e.removeScrollBar,m=e.inert;return H.createElement(H.Fragment,null,m?H.createElement(a,{styles:Go(i)}):null,p?H.createElement(Eo,{noRelative:e.noRelative,gapMode:e.gapMode}):null)}function Yo(e){for(var t=null;e!==null;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Xo=ao(oo,Jo),Zo=H.forwardRef(function(e,t){return H.createElement(co,Ua({},e,{ref:t,sideCar:Xo}))});Zo.classNames=co.classNames;var Qo=function(e){return typeof document>`u`?null:(Array.isArray(e)?e[0]:e).ownerDocument.body},$o=new WeakMap,es=new WeakMap,ts={},ns=0,rs=function(e){return e&&(e.host||rs(e.parentNode))},is=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=rs(t);return n&&e.contains(n)?n:(console.error(`aria-hidden`,t,`in not contained inside`,e,`. Doing nothing`),null)}).filter(function(e){return!!e})},as=function(e,t,n,r){var i=is(t,Array.isArray(e)?e:[e]);ts[n]||(ts[n]=new WeakMap);var a=ts[n],o=[],s=new Set,c=new Set(i),l=function(e){!e||s.has(e)||(s.add(e),l(e.parentNode))};i.forEach(l);var u=function(e){!e||c.has(e)||Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),i=t!==null&&t!==`false`,c=($o.get(e)||0)+1,l=(a.get(e)||0)+1;$o.set(e,c),a.set(e,l),o.push(e),c===1&&i&&es.set(e,!0),l===1&&e.setAttribute(n,`true`),i||e.setAttribute(r,`true`)}catch(t){console.error(`aria-hidden: cannot operate on `,e,t)}})};return u(t),s.clear(),ns++,function(){o.forEach(function(e){var t=$o.get(e)-1,i=a.get(e)-1;$o.set(e,t),a.set(e,i),t||(es.has(e)||e.removeAttribute(r),es.delete(e)),i||e.removeAttribute(n)}),ns--,ns||($o=new WeakMap,$o=new WeakMap,es=new WeakMap,ts={})}},os=function(e,t,n){n===void 0&&(n=`data-aria-hidden`);var r=Array.from(Array.isArray(e)?e:[e]),i=t||Qo(e);return i?(r.push.apply(r,Array.from(i.querySelectorAll(`[aria-live], script`))),as(r,i,n,`aria-hidden`)):function(){return null}},ss=Object.defineProperty,cs=(e,t)=>ss(e,`name`,{value:t,configurable:!0}),ls=`Dialog`,[us,ds]=zr(ls),[fs,ps]=us(ls),ms=cs(e=>{let{__scopeDialog:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!0}=e,s=H.useRef(null),c=H.useRef(null),[l,u]=gi({prop:r,defaultProp:i??!1,onChange:a,caller:ls}),[d,f]=H.useState(0),[p,m]=H.useState(0);return(0,U.jsx)(fs,{scope:t,triggerRef:s,contentRef:c,contentId:Pi(),titleId:Pi(),descriptionId:Pi(),titlePresent:d>0,descriptionPresent:p>0,setTitleCount:f,setDescriptionCount:m,open:l,onOpenChange:u,onOpenToggle:H.useCallback(()=>u(e=>!e),[u]),modal:o,children:n})},`Dialog`),hs=`DialogTrigger`,gs=H.forwardRef(cs(function(e,t){let{__scopeDialog:n,...r}=e,i=ps(hs,n),a=ur(t,i.triggerRef);return(0,U.jsx)(Ar.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":Is(i.open),...r,ref:a,onClick:G(e.onClick,i.onOpenToggle)})},`DialogTrigger`)),_s=`DialogPortal`,[vs,ys]=us(_s,{forceMount:void 0}),bs=cs(e=>{let{__scopeDialog:t,forceMount:n,children:r,container:i}=e,a=ps(_s,t);return(0,U.jsx)(vs,{scope:t,forceMount:n,children:H.Children.map(r,e=>(0,U.jsx)(wi,{present:n||a.open,children:(0,U.jsx)(Fa,{asChild:!0,container:i,children:e})}))})},`DialogPortal`),xs=`DialogOverlay`,Ss=H.forwardRef(cs(function(e,t){let n=ys(xs,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ps(xs,e.__scopeDialog);return a.modal?(0,U.jsx)(wi,{present:r||a.open,children:(0,U.jsx)(ws,{...i,ref:t})}):null},`DialogOverlay`)),Cs=pr(`DialogOverlay.RemoveScroll`),ws=H.forwardRef(cs(function(e,t){let{__scopeDialog:n,...r}=e,i=ps(xs,n),a=ur(t,da());return(0,U.jsx)(Zo,{as:Cs,allowPinchZoom:!0,shards:[i.contentRef],children:(0,U.jsx)(Ar.div,{"data-state":Is(i.open),...r,ref:a,style:{pointerEvents:`auto`,...r.style}})})},`DialogOverlayImpl`)),Ts=`DialogContent`,Es=H.forwardRef(cs(function(e,t){let n=ys(Ts,e.__scopeDialog),{forceMount:r=n.forceMount,...i}=e,a=ps(Ts,e.__scopeDialog);return(0,U.jsx)(wi,{present:r||a.open,children:a.modal?(0,U.jsx)(Ds,{...i,ref:t}):(0,U.jsx)(Os,{...i,ref:t})})},`DialogContent`)),Ds=H.forwardRef(cs(function(e,t){let n=ps(Ts,e.__scopeDialog),r=H.useRef(null),i=ur(t,n.contentRef,r);return H.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,U.jsx)(ks,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0;(t.button===2||n)&&e.preventDefault()}),onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault())})},`DialogContentModal`)),Os=H.forwardRef(cs(function(e,t){let n=ps(Ts,e.__scopeDialog),r=H.useRef(!1),i=H.useRef(!1);return(0,U.jsx)(ks,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`DialogContentNonModal`)),ks=H.forwardRef(cs(function(e,t){let{__scopeDialog:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,...o}=e,s=ps(Ts,n);return Va(),(0,U.jsx)(U.Fragment,{children:(0,U.jsx)(Sa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,U.jsx)(ua,{role:`dialog`,id:s.contentId,"aria-describedby":s.descriptionPresent?s.descriptionId:void 0,"aria-labelledby":s.titlePresent?s.titleId:void 0,"data-state":Is(s.open),...o,ref:t,deferPointerDownOutside:!0,onDismiss:()=>s.onOpenChange(!1)})})})},`DialogContentImpl`)),As=`DialogTitle`,js=H.forwardRef(cs(function(e,t){let{__scopeDialog:n,...r}=e,i=ps(As,n),{setTitleCount:a}=i;return si(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,U.jsx)(Ar.h2,{id:i.titleId,...r,ref:t})},`DialogTitle`)),Ms=`DialogDescription`,Ns=H.forwardRef(cs(function(e,t){let{__scopeDialog:n,...r}=e,i=ps(Ms,n),{setDescriptionCount:a}=i;return si(()=>(a(e=>e+1),()=>a(e=>e-1)),[a]),(0,U.jsx)(Ar.p,{id:i.descriptionId,...r,ref:t})},`DialogDescription`)),Ps=`DialogClose`,Fs=H.forwardRef(cs(function(e,t){let{__scopeDialog:n,...r}=e,i=ps(Ps,n);return(0,U.jsx)(Ar.button,{type:`button`,...r,ref:t,onClick:G(e.onClick,()=>i.onOpenChange(!1))})},`DialogClose`));function Is(e){return e?`open`:`closed`}cs(Is,`getState`);var Ls=Object.defineProperty,Rs=(e,t)=>Ls(e,`name`,{value:t,configurable:!0}),[zs,Bs]=zr(`AlertDialog`,[ds]),Vs=ds(),Hs=Rs(e=>{let{__scopeAlertDialog:t,...n}=e,r=Vs(t);return(0,U.jsx)(ms,{...r,...n,modal:!0})},`AlertDialog`);H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Vs(n);return(0,U.jsx)(gs,{...i,...r,ref:t})},`AlertDialogTrigger`));var Us=Rs(e=>{let{__scopeAlertDialog:t,...n}=e,r=Vs(t);return(0,U.jsx)(bs,{...r,...n})},`AlertDialogPortal`),Ws=H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Vs(n);return(0,U.jsx)(Ss,{...i,...r,ref:t})},`AlertDialogOverlay`)),[Gs,Ks]=zs(`AlertDialogContent`),qs=H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,children:r,...i}=e,a=Vs(n),o=ur(t,H.useRef(null)),s=H.useRef(null);return(0,U.jsx)(Gs,{scope:n,cancelRef:s,children:(0,U.jsx)(Es,{role:`alertdialog`,...a,...i,ref:o,onOpenAutoFocus:G(i.onOpenAutoFocus,e=>{e.preventDefault(),s.current?.focus({preventScroll:!0})}),onPointerDownOutside:e=>e.preventDefault(),onInteractOutside:e=>e.preventDefault(),children:r})})},`AlertDialogContent`)),Js=H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Vs(n);return(0,U.jsx)(js,{...i,...r,ref:t})},`AlertDialogTitle`)),Ys=H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Vs(n);return(0,U.jsx)(Ns,{...i,...r,ref:t})},`AlertDialogDescription`)),Xs=H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,...r}=e,i=Vs(n);return(0,U.jsx)(Fs,{...i,...r,ref:t})},`AlertDialogAction`)),Zs=`AlertDialogCancel`,Qs=H.forwardRef(Rs(function(e,t){let{__scopeAlertDialog:n,...r}=e,{cancelRef:i}=Ks(Zs,n),a=Vs(n),o=ur(t,i);return(0,U.jsx)(Fs,{...a,...r,ref:o})},`AlertDialogCancel`)),$s=Hs,ec=Us,tc=Ws,nc=qs,rc=Xs,ic=Qs,ac=Js,oc=Ys,sc=Object.defineProperty,cc=(e,t)=>sc(e,`name`,{value:t,configurable:!0}),lc=`Avatar`,[uc,dc]=zr(lc),fc=[0,()=>void 0],[pc,mc]=uc(lc),hc=H.forwardRef(cc(function(e,t){let{__scopeAvatar:n,...r}=e,[i,a]=H.useState(`idle`),[o,s]=Sc();return(0,U.jsx)(pc,{scope:n,imageLoadingStatus:i,setImageLoadingStatus:a,imageCount:o,setImageCount:s,children:(0,U.jsx)(Ar.span,{...r,ref:t})})},`Avatar`)),gc=`AvatarImage`,_c=H.forwardRef(cc(function(e,t){let{__scopeAvatar:n,src:r,onLoadingStatusChange:i,...a}=e,o=mc(gc,n);o.setImageCount;let s=bc(r,{referrerPolicy:a.referrerPolicy,crossOrigin:a.crossOrigin,loadingStatus:o.imageLoadingStatus,setLoadingStatus:o.setImageLoadingStatus}),c=na(e=>{i?.(e)}),l=H.useRef(s);return si(()=>{let e=l.current;l.current=s,s!==e&&c(s)},[s,c]),s===`loaded`?(0,U.jsx)(Ar.img,{...a,ref:t,src:r}):null},`AvatarImage`)),vc=`AvatarFallback`,yc=H.forwardRef(cc(function(e,t){let{__scopeAvatar:n,delayMs:r,...i}=e,a=mc(vc,n),[o,s]=H.useState(r===void 0);return H.useEffect(()=>{if(r!==void 0){let e=window.setTimeout(()=>s(!0),r);return()=>window.clearTimeout(e)}},[r]),o&&a.imageLoadingStatus!==`loaded`?(0,U.jsx)(Ar.span,{...i,ref:t}):null},`AvatarFallback`));function bc(e,{loadingStatus:t,setLoadingStatus:n,referrerPolicy:r,crossOrigin:i}){return si(()=>{if(!e){n(`error`);return}let t=new window.Image,a=cc(e=>{let t=e.currentTarget;n(xc(t))},`handleLoad`),o=cc(()=>n(`error`),`handleError`);return t.addEventListener(`load`,a),t.addEventListener(`error`,o),r&&(t.referrerPolicy=r),t.crossOrigin=i??null,t.src=e,n(xc(t)),()=>{t.removeEventListener(`load`,a),t.removeEventListener(`error`,o),n(`idle`)}},[e,i,r,n]),t}cc(bc,`useImageLoadingStatus`);function xc(e){return e.complete?e.naturalWidth>0?`loaded`:`error`:`loading`}cc(xc,`getImageLoadingStatus`);function Sc(){return fc}cc(Sc,`useImageCount`);function Cc(e){}cc(Cc,`useUpdateImageCount`);var wc=Object.defineProperty,Tc=(e,t)=>wc(e,`name`,{value:t,configurable:!0});function Ec(e){let[t,n]=H.useState(void 0);return si(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{if(!Array.isArray(t)||!t.length)return;let r=t[0],i,a;if(`borderBoxSize`in r){let e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:`border-box`}),()=>t.unobserve(e)}n(void 0)},[e]),t}Tc(Ec,`useSize`);var Dc=Object.defineProperty,Oc=(e,t)=>Dc(e,`name`,{value:t,configurable:!0}),kc=`Checkbox`,[Ac,jc]=zr(kc),[Mc,Nc]=Ac(kc);function Pc(e){let{__scopeCheckbox:t,checked:n,children:r,defaultChecked:i,disabled:a,form:o,name:s,onCheckedChange:c,required:l,value:u=`on`,internal_do_not_use_render:d}=e,[f,p]=gi({prop:n,defaultProp:i??!1,onChange:c,caller:kc}),[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useRef(!1),[y,b]=H.useReducer(e=>e+1,0),x=!m||!!o||!!m.closest(`form`),S={checked:f,disabled:a,setChecked:p,control:m,setControl:h,name:s,form:o,value:u,hasConsumerStoppedPropagationRef:v,userInteractionCount:y,onUserInteraction:b,required:l,defaultChecked:!Uc(i)&&i,isFormControl:x,bubbleInput:g,setBubbleInput:_};return(0,U.jsx)(Mc,{scope:t,...S,children:Hc(d)?d(S):r})}Oc(Pc,`CheckboxProvider`);var Fc=`CheckboxTrigger`,Ic=H.forwardRef(Oc(function({__scopeCheckbox:e,onKeyDown:t,onClick:n,...r},i){let{control:a,value:o,disabled:s,checked:c,required:l,setControl:u,setChecked:d,hasConsumerStoppedPropagationRef:f,onUserInteraction:p,isFormControl:m,bubbleInput:h}=Nc(Fc,e),g=ur(i,u),_=H.useRef(c);return H.useEffect(()=>{let e=a?.form;if(e){let t=Oc(()=>d(_.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[a,d]),(0,U.jsx)(Ar.button,{type:`button`,role:`checkbox`,"aria-checked":Uc(c)?`mixed`:c,"aria-required":l,"data-state":Wc(c),"data-disabled":s?``:void 0,disabled:s,value:o,...r,ref:g,onKeyDown:G(t,e=>{e.key===`Enter`&&e.preventDefault()}),onClick:G(n,e=>{p(),d(e=>Uc(e)?!0:!e),h&&m&&(f.current=e.isPropagationStopped(),f.current||e.stopPropagation())})})},`CheckboxTrigger`)),Lc=H.forwardRef(Oc(function(e,t){let{__scopeCheckbox:n,name:r,checked:i,defaultChecked:a,required:o,disabled:s,value:c,onCheckedChange:l,form:u,...d}=e;return(0,U.jsx)(Pc,{__scopeCheckbox:n,checked:i,defaultChecked:a,disabled:s,required:o,onCheckedChange:l,name:r,form:u,value:c,internal_do_not_use_render:({isFormControl:e})=>(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ic,{...d,ref:t,__scopeCheckbox:n}),e&&(0,U.jsx)(Vc,{__scopeCheckbox:n})]})})},`Checkbox`)),Rc=`CheckboxIndicator`,zc=H.forwardRef(Oc(function(e,t){let{__scopeCheckbox:n,forceMount:r,...i}=e,a=Nc(Rc,n);return(0,U.jsx)(wi,{present:r||Uc(a.checked)||a.checked===!0,children:(0,U.jsx)(Ar.span,{"data-state":Wc(a.checked),"data-disabled":a.disabled?``:void 0,...i,ref:t,style:{pointerEvents:`none`,...e.style}})})},`CheckboxIndicator`)),Bc=`CheckboxBubbleInput`,Vc=H.forwardRef(Oc(function({__scopeCheckbox:e,onClick:t,...n},r){let{control:i,hasConsumerStoppedPropagationRef:a,userInteractionCount:o,checked:s,defaultChecked:c,required:l,disabled:u,name:d,value:f,form:p,bubbleInput:m,setBubbleInput:h}=Nc(Bc,e),g=ur(r,h),_=Ec(i),v=H.useRef(!1),y=H.useRef(s),b=H.useRef(o);H.useEffect(()=>{let e=m;if(!e)return;let t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,`checked`).set,r=o!==b.current;b.current=o;let i=y.current!==s;y.current=s;let c=!(r&&a.current);if(i&&n){v.current=!r;let t=new Event(`click`,{bubbles:c});e.indeterminate=Uc(s),n.call(e,!Uc(s)&&s),e.dispatchEvent(t),v.current=!1}},[m,s,a,o]);let x=H.useRef(!Uc(s)&&s);return(0,U.jsx)(Ar.input,{type:`checkbox`,"aria-hidden":!0,defaultChecked:c??x.current,required:l,disabled:u,name:d,value:f,form:p,...n,tabIndex:-1,ref:g,onClick:G(t,e=>{v.current&&e.stopPropagation()}),style:{...n.style,..._,position:`absolute`,pointerEvents:`none`,opacity:0,margin:0,transform:`translateX(-100%)`}})},`CheckboxBubbleInput`));function Hc(e){return typeof e==`function`}Oc(Hc,`isFunction`);function Uc(e){return e===`indeterminate`}Oc(Uc,`isIndeterminate`);function Wc(e){return Uc(e)?`indeterminate`:e?`checked`:`unchecked`}Oc(Wc,`getState`);var Gc=[`top`,`right`,`bottom`,`left`],Kc=Math.min,qc=Math.max,Jc=Math.round,Yc=Math.floor,Xc=e=>({x:e,y:e}),Zc={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Qc(e,t,n){return qc(e,Kc(t,n))}function $c(e,t){return typeof e==`function`?e(t):e}function el(e){return e.split(`-`)[0]}function tl(e){return e.split(`-`)[1]}function nl(e){return e===`x`?`y`:`x`}function rl(e){return e===`y`?`height`:`width`}function il(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function al(e){return nl(il(e))}function ol(e,t,n){n===void 0&&(n=!1);let r=tl(e),i=al(e),a=rl(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=hl(o)),[o,hl(o)]}function sl(e){let t=hl(e);return[cl(e),t,cl(t)]}function cl(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var ll=[`left`,`right`],ul=[`right`,`left`],dl=[`top`,`bottom`],fl=[`bottom`,`top`];function pl(e,t,n){switch(e){case`top`:case`bottom`:return n?t?ul:ll:t?ll:ul;case`left`:case`right`:return t?dl:fl;default:return[]}}function ml(e,t,n,r){let i=tl(e),a=pl(el(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(cl)))),a}function hl(e){let t=el(e);return Zc[t]+e.slice(t.length)}function gl(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function _l(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:gl(e)}function vl(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function yl(e,t,n){let{reference:r,floating:i}=e,a=il(t),o=al(t),s=rl(o),c=el(t),l=a===`y`,u=r.x+r.width/2-i.width/2,d=r.y+r.height/2-i.height/2,f=r[s]/2-i[s]/2,p;switch(c){case`top`:p={x:u,y:r.y-i.height};break;case`bottom`:p={x:u,y:r.y+r.height};break;case`right`:p={x:r.x+r.width,y:d};break;case`left`:p={x:r.x-i.width,y:d};break;default:p={x:r.x,y:r.y}}let m=tl(t);return m&&(p[o]+=f*(m===`end`?1:-1)*(n&&l?-1:1)),p}async function bl(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:u=`floating`,altBoundary:d=!1,padding:f=0}=$c(t,e),p=_l(f),m=o[d?u===`floating`?`reference`:`floating`:u],h=vl(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(m))??!0?m:m.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),g=u===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,_=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),v=await(i.isElement==null?void 0:i.isElement(_))&&await(i.getScale==null?void 0:i.getScale(_))||{x:1,y:1},y=vl(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:g,offsetParent:_,strategy:s}):g);return{top:(h.top-y.top+p.top)/v.y,bottom:(y.bottom-h.bottom+p.bottom)/v.y,left:(h.left-y.left+p.left)/v.x,right:(y.right-h.right+p.right)/v.x}}var xl=50,Sl=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:bl},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=yl(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<xl&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=yl(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},Cl=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:r,placement:i,rects:a,platform:o,elements:s,middlewareData:c}=t,{element:l,padding:u=0}=$c(e,t)||{};if(l==null)return{};let d=_l(u),f={x:n,y:r},p=al(i),m=rl(p),h=await o.getDimensions(l),g=p===`y`,_=g?`top`:`left`,v=g?`bottom`:`right`,y=g?`clientHeight`:`clientWidth`,b=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],S=await(o.getOffsetParent==null?void 0:o.getOffsetParent(l)),C=S?S[y]:0;(!C||!await(o.isElement==null?void 0:o.isElement(S)))&&(C=s.floating[y]||a.floating[m]);let w=b/2-x/2,T=C/2-h[m]/2-1,E=Kc(d[_],T),D=Kc(d[v],T),O=C-h[m]-D,k=C/2-h[m]/2+w,A=Qc(E,k,O),j=!c.arrow&&tl(i)!=null&&k!==A&&a.reference[m]/2-(k<E?E:D)-h[m]/2<0,M=j?k<E?k-E:k-O:0;return{[p]:f[p]+M,data:{[p]:A,centerOffset:k-A-M,...j&&{alignmentOffset:M}},reset:j}}}),wl=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:u=!0,fallbackPlacements:d,fallbackStrategy:f=`bestFit`,fallbackAxisSideDirection:p=`none`,flipAlignment:m=!0,...h}=$c(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let g=el(r),_=il(o),v=el(o)===o,y=await(s.isRTL==null?void 0:s.isRTL(c.floating)),b=d||(v||!m?[hl(o)]:sl(o)),x=p!==`none`;!d&&x&&b.push(...ml(o,m,p,y));let S=[o,...b],C=await s.detectOverflow(t,h),w=[],T=i.flip?.overflows||[];if(l&&w.push(C[g]),u){let e=ol(r,a,y);w.push(C[e[0]],C[e[1]])}if(T=[...T,{placement:r,overflows:w}],!w.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=S[e];if(t&&(u!==`alignment`||_===il(t)||T.every(e=>il(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:T},reset:{placement:t}};let n=T.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(f){case`bestFit`:{let e=T.filter(e=>{if(x){let t=il(e.placement);return t===_||t===`y`}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0]?.[0];e&&(n=e);break}case`initialPlacement`:n=o}if(r!==n)return{reset:{placement:n}}}return{}}}};function Tl(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function El(e){return Gc.some(t=>e[t]>=0)}var Dl=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=$c(e,t);switch(i){case`referenceHidden`:{let e=Tl(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:El(e)}}}case`escaped`:{let e=Tl(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:El(e)}}}default:return{}}}}},Ol=new Set([`left`,`top`]);async function kl(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=el(n),s=tl(n),c=il(n)===`y`,l=Ol.has(o)?-1:1,u=a&&c?-1:1,d=$c(t,e),{mainAxis:f,crossAxis:p,alignmentAxis:m}=typeof d==`number`?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&typeof m==`number`&&(p=s===`end`?m*-1:m),c?{x:p*u,y:f*l}:{x:f*l,y:p*u}}var Al=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await kl(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},jl=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...l}=$c(e,t),u={x:n,y:r},d=await a.detectOverflow(t,l),f=il(i),p=nl(f),m=u[p],h=u[f],g=(e,t)=>Qc(t+d[e===`y`?`top`:`left`],t,t-d[e===`y`?`bottom`:`right`]);o&&(m=g(p,m)),s&&(h=g(f,h));let _=c.fn({...t,[p]:m,[f]:h});return{..._,data:{x:_.x-n,y:_.y-r,enabled:{[p]:o,[f]:s}}}}}},Ml=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=$c(e,t),u={x:n,y:r},d=il(i),f=nl(d),p=u[f],m=u[d],h=$c(s,t),g=typeof h==`number`?{mainAxis:h,crossAxis:0}:{mainAxis:h.mainAxis??0,crossAxis:h.crossAxis??0};if(c){let e=f===`y`?`height`:`width`,t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(l){let e=f===`y`?`width`:`height`,t=Ol.has(el(i)),n=a.reference[d]-a.floating[e]+(t&&o.offset?.[d]||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:o.offset?.[d]||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Nl=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:r,platform:i,elements:a}=t,{apply:o=()=>{},...s}=$c(e,t),c=await i.detectOverflow(t,s),l=el(n),u=tl(n),d=il(n)===`y`,{width:f,height:p}=r.floating,m,h;l===`top`||l===`bottom`?(m=l,h=u===(await(i.isRTL==null?void 0:i.isRTL(a.floating))?`start`:`end`)?`left`:`right`):(h=l,m=u===`end`?`top`:`bottom`);let g=p-c.top-c.bottom,_=f-c.left-c.right,v=Kc(p-c[m],g),y=Kc(f-c[h],_),b=t.middlewareData.shift,x=!b,S=v,C=y;b!=null&&b.enabled.x&&(C=_),b!=null&&b.enabled.y&&(S=g),x&&!u&&(d?C=f-2*qc(c.left,c.right):S=p-2*qc(c.top,c.bottom)),await o({...t,availableWidth:C,availableHeight:S});let w=await i.getDimensions(a.floating);return f!==w.width||p!==w.height?{reset:{rects:!0}}:{}}}};function Pl(){return typeof window<`u`}function Fl(e){return Rl(e)?(e.nodeName||``).toLowerCase():`#document`}function Il(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Ll(e){return((Rl(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function Rl(e){return Pl()?e instanceof Node||e instanceof Il(e).Node:!1}function zl(e){return Pl()?e instanceof Element||e instanceof Il(e).Element:!1}function Bl(e){return Pl()?e instanceof HTMLElement||e instanceof Il(e).HTMLElement:!1}function Vl(e){return!Pl()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof Il(e).ShadowRoot}function Hl(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=$l(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function Ul(e){return/^(table|td|th)$/.test(Fl(e))}function Wl(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var Gl=/transform|translate|scale|rotate|perspective|filter/,Kl=/paint|layout|strict|content/,ql=e=>!!e&&e!==`none`,Jl;function Yl(e){let t=zl(e)?$l(e):e;return ql(t.transform)||ql(t.translate)||ql(t.scale)||ql(t.rotate)||ql(t.perspective)||!Zl()&&(ql(t.backdropFilter)||ql(t.filter))||Gl.test(t.willChange||``)||Kl.test(t.contain||``)}function Xl(e){let t=tu(e);for(;Bl(t)&&!Ql(t);){if(Yl(t))return t;if(Wl(t))return null;t=tu(t)}return null}function Zl(){return Jl??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),Jl}function Ql(e){return/^(html|body|#document)$/.test(Fl(e))}function $l(e){return Il(e).getComputedStyle(e)}function eu(e){return zl(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function tu(e){if(Fl(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||Vl(e)&&e.host||Ll(e);return Vl(t)?t.host:t}function nu(e){let t=tu(e);return Ql(t)?(e.ownerDocument||e).body:Bl(t)&&Hl(t)?t:nu(t)}function ru(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=nu(e),i=r===e.ownerDocument?.body,a=Il(r);if(i){let e=iu(a);return t.concat(a,a.visualViewport||[],Hl(r)?r:[],e&&n?ru(e):[])}return t.concat(r,ru(r,[],n))}function iu(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function au(e){let t=$l(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=Bl(e),a=i?e.offsetWidth:n,o=i?e.offsetHeight:r,s=Jc(n)!==a||Jc(r)!==o;return s&&(n=a,r=o),{width:n,height:r,$:s}}function ou(e){return zl(e)?e:e.contextElement}function su(e){let t=ou(e);if(!Bl(t))return Xc(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:a}=au(t),o=(a?Jc(n.width):n.width)/r,s=(a?Jc(n.height):n.height)/i;return(!o||!Number.isFinite(o))&&(o=1),(!s||!Number.isFinite(s))&&(s=1),{x:o,y:s}}var cu=Xc(0);function lu(e){let t=Il(e);return!Zl()||!t.visualViewport?cu:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function uu(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===Il(e)}function du(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=ou(e),o=Xc(1);t&&(r?zl(r)&&(o=su(r)):o=su(e));let s=uu(a,n,r)?lu(a):Xc(0),c=(i.left+s.x)/o.x,l=(i.top+s.y)/o.y,u=i.width/o.x,d=i.height/o.y;if(a&&r){let e=Il(a),t=zl(r)?Il(r):r,n=e,i=iu(n);for(;i&&t!==n;){let e=su(i),t=i.getBoundingClientRect(),r=$l(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,d*=e.y,c+=a,l+=o,n=Il(i),i=iu(n)}}return vl({width:u,height:d,x:c,y:l})}function fu(e,t){let n=eu(e).scrollLeft;return t?t.left+n:du(Ll(e)).left+n}function pu(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-fu(e,n),y:n.top+t.scrollTop}}function mu(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=Ll(r),s=t?Wl(t.floating):!1;if(r===o||s&&a)return n;let c={scrollLeft:0,scrollTop:0},l=Xc(1),u=Xc(0),d=Bl(r);if((d||!a)&&((Fl(r)!==`body`||Hl(o))&&(c=eu(r)),d)){let e=du(r);l=su(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}let f=o&&!d&&!a?pu(o,c):Xc(0);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+f.x,y:n.y*l.y-c.scrollTop*l.y+u.y+f.y}}function hu(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function gu(e){let t=eu(e),n=e.ownerDocument.body,r=qc(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=qc(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),a=-t.scrollLeft+fu(e),o=-t.scrollTop;return $l(n).direction===`rtl`&&(a+=qc(e.clientWidth,n.clientWidth)-r),{width:r,height:i,x:a,y:o}}var _u=25;function vu(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=Il(e),a=Ll(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!Zl()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(fu(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=_u&&(s-=o)}return{width:s,height:c,x:l,y:u}}function yu(e,t){let n=du(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=su(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function bu(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=vu(e,n,t);else if(t===`document`)r=gu(Ll(e));else if(zl(t))r=yu(t,n);else{let n=lu(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return vl(r)}function xu(e,t){let n=t.get(e);if(n)return n;let r=ru(e,[],!1).filter(e=>zl(e)&&Fl(e)!==`body`),i=null,a=$l(e).position===`fixed`,o=a?tu(e):e;for(;zl(o)&&!Ql(o);){let e=$l(o),t=Yl(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=tu(o)}return t.set(e,r),r}function Su(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e,a=[...n===`clippingAncestors`?Wl(t)?[]:xu(t,this._c):[].concat(n),r],o=bu(t,a[0],i),s=o.top,c=o.right,l=o.bottom,u=o.left;for(let e=1;e<a.length;e++){let n=bu(t,a[e],i);s=qc(n.top,s),c=Kc(n.right,c),l=Kc(n.bottom,l),u=qc(n.left,u)}return{width:c-u,height:l-s,x:u,y:s}}function Cu(e){let{width:t,height:n}=au(e);return{width:t,height:n}}function wu(e,t,n){let r=Bl(t),i=Ll(t),a=n===`fixed`,o=du(e,!0,a,t),s={scrollLeft:0,scrollTop:0},c=Xc(0);if((r||!a)&&((Fl(t)!==`body`||Hl(i))&&(s=eu(t)),r)){let e=du(t,!0,a,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}!r&&i&&(c.x=fu(i));let l=i&&!r&&!a?pu(i,s):Xc(0);return{x:o.left+s.scrollLeft-c.x-l.x,y:o.top+s.scrollTop-c.y-l.y,width:o.width,height:o.height}}function Tu(e){return $l(e).position===`static`}function Eu(e,t){if(!Bl(e)||$l(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return Ll(e)===n&&(n=n.ownerDocument.body),n}function Du(e,t){let n=Il(e);if(Wl(e))return n;if(!Bl(e)){let t=tu(e);for(;t&&!Ql(t);){if(zl(t)&&!Tu(t))return t;t=tu(t)}return n}let r=Eu(e,t);for(;r&&Ul(r)&&Tu(r);)r=Eu(r,t);return r&&Ql(r)&&Tu(r)&&!Yl(r)?n:r||Xl(e)||n}var Ou=async function(e){let t=this.getOffsetParent||Du,n=this.getDimensions,r=await n(e.floating);return{reference:wu(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function ku(e){return $l(e).direction===`rtl`}var Au={convertOffsetParentRelativeRectToViewportRelativeRect:mu,getDocumentElement:Ll,getClippingRect:Su,getOffsetParent:Du,getElementRects:Ou,getClientRects:hu,getDimensions:Cu,getScale:su,isElement:zl,isRTL:ku};function ju(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Mu(e,t,n){let r=null,i,a=Ll(e);function o(){var e;clearTimeout(i),(e=r)==null||e.disconnect(),r=null}function s(n,c){n===void 0&&(n=!1),c===void 0&&(c=1),o();let l=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=l;if(n||t(),!f||!p)return;let m=Yc(d),h=Yc(a.clientWidth-(u+f)),g=Yc(a.clientHeight-(d+p)),_=Yc(u),v={rootMargin:-m+`px `+-h+`px `+-g+`px `+-_+`px`,threshold:qc(0,Kc(1,c))||1},y=!0;function b(t){let n=t[0].intersectionRatio;if(!ju(l,e.getBoundingClientRect()))return s();if(n!==c){if(!y)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}y=!1}try{r=new IntersectionObserver(b,{...v,root:a.ownerDocument})}catch{r=new IntersectionObserver(b,v)}r.observe(e)}let c=Il(e),l=()=>s(n);return c.addEventListener(`resize`,l),s(!0),()=>{c.removeEventListener(`resize`,l),o()}}function Nu(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=ou(e),u=i||a?[...l?ru(l):[],...t?ru(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Mu(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?du(e):null;c&&g();function g(){let t=du(e);h&&!ju(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Pu=Al,Fu=jl,Iu=wl,Lu=Nl,Ru=Dl,zu=Cl,Bu=Ml,Vu=(e,t,n)=>{let r=new Map,i=n??{},a={...Au,...i.platform,_c:r};return Sl(e,t,{...i,platform:a})},Hu=typeof document<`u`?H.useLayoutEffect:function(){};function Uu(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if(typeof e==`function`&&e.toString()===t.toString())return!0;let n,r,i;if(e&&t&&typeof e==`object`){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;r--!==0;)if(!Uu(e[r],t[r]))return!1;return!0}if(i=Object.keys(e),n=i.length,n!==Object.keys(t).length)return!1;for(r=n;r--!==0;)if(!{}.hasOwnProperty.call(t,i[r]))return!1;for(r=n;r--!==0;){let n=i[r];if(!(n===`_owner`&&e.$$typeof)&&!Uu(e[n],t[n]))return!1}return!0}return e!==e&&t!==t}function Wu(e){return typeof window>`u`?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Gu(e,t){let n=Wu(e);return Math.round(t*n)/n}function Ku(e){let t=H.useRef(e);return Hu(()=>{t.current=e}),t}function qu(e){e===void 0&&(e={});let{placement:t=`bottom`,strategy:n=`absolute`,middleware:r=[],platform:i,elements:{reference:a,floating:o}={},transform:s=!0,whileElementsMounted:c,open:l}=e,[u,d]=H.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[f,p]=H.useState(r);Uu(f,r)||p(r);let[m,h]=H.useState(null),[g,_]=H.useState(null),v=H.useCallback(e=>{e!==S.current&&(S.current=e,h(e))},[]),y=H.useCallback(e=>{e!==C.current&&(C.current=e,_(e))},[]),b=a||m,x=o||g,S=H.useRef(null),C=H.useRef(null),w=H.useRef(u),T=c!=null,E=Ku(c),D=Ku(i),O=Ku(l),k=H.useCallback(()=>{if(!S.current||!C.current)return;let e={placement:t,strategy:n,middleware:f};D.current&&(e.platform=D.current),Vu(S.current,C.current,e).then(e=>{let t={...e,isPositioned:O.current!==!1};A.current&&!Uu(w.current,t)&&(w.current=t,Dr.flushSync(()=>{d(t)}))})},[f,t,n,D,O]);Hu(()=>{l===!1&&w.current.isPositioned&&(w.current.isPositioned=!1,d(e=>({...e,isPositioned:!1})))},[l]);let A=H.useRef(!1);Hu(()=>(A.current=!0,()=>{A.current=!1}),[]),Hu(()=>{if(b&&(S.current=b),x&&(C.current=x),b&&x){if(E.current)return E.current(b,x,k);k()}},[b,x,k,E,T]);let j=H.useMemo(()=>({reference:S,floating:C,setReference:v,setFloating:y}),[v,y]),M=H.useMemo(()=>({reference:b,floating:x}),[b,x]),N=H.useMemo(()=>{let e={position:n,left:0,top:0};if(!M.floating)return e;let t=Gu(M.floating,u.x),r=Gu(M.floating,u.y);return s?{...e,transform:`translate(`+t+`px, `+r+`px)`,...Wu(M.floating)>=1.5&&{willChange:`transform`}}:{position:n,left:t,top:r}},[n,s,M.floating,u.x,u.y]);return H.useMemo(()=>({...u,update:k,refs:j,elements:M,floatingStyles:N}),[u,k,j,M,N])}var Ju=e=>{function t(e){return{}.hasOwnProperty.call(e,`current`)}return{name:`arrow`,options:e,fn(n){let{element:r,padding:i}=typeof e==`function`?e(n):e;return r&&t(r)?r.current==null?{}:zu({element:r.current,padding:i}).fn(n):r?zu({element:r,padding:i}).fn(n):{}}}},Yu=(e,t)=>{let n=Pu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Xu=(e,t)=>{let n=Fu(e);return{name:n.name,fn:n.fn,options:[e,t]}},Zu=(e,t)=>({fn:Bu(e).fn,options:[e,t]}),Qu=(e,t)=>{let n=Iu(e);return{name:n.name,fn:n.fn,options:[e,t]}},$u=(e,t)=>{let n=Lu(e);return{name:n.name,fn:n.fn,options:[e,t]}},ed=(e,t)=>{let n=Ru(e);return{name:n.name,fn:n.fn,options:[e,t]}},td=(e,t)=>{let n=Ju(e);return{name:n.name,fn:n.fn,options:[e,t]}},nd=Object.defineProperty,rd=H.forwardRef(((e,t)=>nd(e,`name`,{value:t,configurable:!0}))(function(e,t){let{children:n,width:r=10,height:i=5,...a}=e;return(0,U.jsx)(Ar.svg,{...a,ref:t,width:r,height:i,viewBox:`0 0 30 10`,preserveAspectRatio:`none`,children:e.asChild?n:(0,U.jsx)(`polygon`,{points:`0,0 30,0 15,10`})})},`Arrow`)),id=Object.defineProperty,ad=(e,t)=>id(e,`name`,{value:t,configurable:!0}),od=`Popper`,[sd,cd]=zr(od),[ld,ud]=sd(od),dd=ad(e=>{let{__scopePopper:t,children:n}=e,[r,i]=H.useState(null),[a,o]=H.useState(void 0);return(0,U.jsx)(ld,{scope:t,anchor:r,onAnchorChange:i,placementState:a,setPlacementState:o,children:n})},`Popper`),fd=`PopperAnchor`,pd=H.forwardRef(ad(function(e,t){let{__scopePopper:n,virtualRef:r,...i}=e,a=ud(fd,n),o=H.useRef(null),s=a.onAnchorChange,c=ur(t,H.useCallback(e=>{o.current=e,e&&s(e)},[s])),l=H.useRef(null);H.useEffect(()=>{if(!r)return;let e=l.current;l.current=r.current,e!==l.current&&s(l.current)});let u=a.placementState&&Cd(a.placementState),d=u?.[0],f=u?.[1];return r?null:(0,U.jsx)(Ar.div,{"data-radix-popper-side":d,"data-radix-popper-align":f,...i,ref:c})},`PopperAnchor`)),md=`PopperContent`,[hd,gd]=sd(md),_d=H.forwardRef(ad(function(e,t){let{__scopePopper:n,side:r=`bottom`,sideOffset:i=0,align:a=`center`,alignOffset:o=0,arrowPadding:s=0,avoidCollisions:c=!0,collisionBoundary:l=[],collisionPadding:u=0,sticky:d=`partial`,hideWhenDetached:f=!1,updatePositionStrategy:p=`optimized`,onPlaced:m,...h}=e,g=ud(md,n),[_,v]=H.useState(null),y=ur(t,v),[b,x]=H.useState(null),S=Ec(b),C=S?.width??0,w=S?.height??0,T=r+(a===`center`?``:`-`+a),E=typeof u==`number`?u:{top:0,right:0,bottom:0,left:0,...u},D=Array.isArray(l)?l:[l],O=D.length>0,k={padding:E,boundary:D.filter(xd),altBoundary:O},{refs:A,floatingStyles:j,placement:M,isPositioned:N,middlewareData:P}=qu({strategy:`fixed`,placement:T,whileElementsMounted:ad((...e)=>Nu(...e,{animationFrame:p===`always`}),`whileElementsMounted`),elements:{reference:g.anchor},middleware:[Yu({mainAxis:i+w,alignmentAxis:o}),c&&Xu({mainAxis:!0,crossAxis:!1,limiter:d===`partial`?Zu():void 0,...k}),c&&Qu({...k}),$u({...k,apply:ad(({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{let{width:i,height:a}=t.reference,o=e.floating.style;o.setProperty(`--radix-popper-available-width`,`${n}px`),o.setProperty(`--radix-popper-available-height`,`${r}px`),o.setProperty(`--radix-popper-anchor-width`,`${i}px`),o.setProperty(`--radix-popper-anchor-height`,`${a}px`)},`apply`)}),b&&td({element:b,padding:s}),Sd({arrowWidth:C,arrowHeight:w}),f&&ed({strategy:`referenceHidden`,...k,boundary:O?k.boundary:void 0})]}),F=g.setPlacementState;si(()=>(F(M),()=>{F(void 0)}),[M,F]);let[I,L]=Cd(M),R=na(m);si(()=>{N&&R?.()},[N,R]);let ee=P.arrow?.x,te=P.arrow?.y,z=P.arrow?.centerOffset!==0,[B,V]=H.useState();return si(()=>{_&&V(window.getComputedStyle(_).zIndex)},[_]),(0,U.jsx)(`div`,{ref:A.setFloating,"data-radix-popper-content-wrapper":``,style:{...j,transform:N?j.transform:`translate(0, -200%)`,minWidth:`max-content`,zIndex:B,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(` `),...P.hide?.referenceHidden&&{visibility:`hidden`,pointerEvents:`none`}},dir:e.dir,children:(0,U.jsx)(hd,{scope:n,placedSide:I,placedAlign:L,onArrowChange:x,arrowX:ee,arrowY:te,shouldHideArrow:z,children:(0,U.jsx)(Ar.div,{"data-side":I,"data-align":L,...h,ref:y,style:{...h.style,animation:N?h.style?.animation:`none`}})})})},`PopperContent`)),vd=`PopperArrow`,yd={top:`bottom`,right:`left`,bottom:`top`,left:`right`},bd=H.forwardRef(ad(function(e,t){let{__scopePopper:n,...r}=e,i=gd(vd,n),a=yd[i.placedSide];return(0,U.jsx)(`span`,{ref:i.onArrowChange,style:{position:`absolute`,left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:``,right:`0 0`,bottom:`center 0`,left:`100% 0`}[i.placedSide],transform:{top:`translateY(100%)`,right:`translateY(50%) rotate(90deg) translateX(-50%)`,bottom:`rotate(180deg)`,left:`translateY(50%) rotate(-90deg) translateX(50%)`}[i.placedSide],visibility:i.shouldHideArrow?`hidden`:void 0},children:(0,U.jsx)(rd,{...r,ref:t,style:{...r.style,display:`block`}})})},`PopperArrow`));function xd(e){return e!==null}ad(xd,`isNotNull`);var Sd=ad(e=>({name:`transformOrigin`,options:e,fn(t){let{placement:n,rects:r,middlewareData:i}=t,a=i.arrow?.centerOffset!==0,o=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[c,l]=Cd(n),u={start:`0%`,center:`50%`,end:`100%`}[l],d=(i.arrow?.x??0)+o/2,f=(i.arrow?.y??0)+s/2,p=``,m=``;return c===`bottom`?(p=a?u:`${d}px`,m=`${-s}px`):c===`top`?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):c===`right`?(p=`${-s}px`,m=a?u:`${f}px`):c===`left`&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}}),`transformOrigin`);function Cd(e){let[t,n=`center`]=e.split(`-`);return[t,n]}ad(Cd,`getSideAndAlignFromPlacement`);var wd=dd,Td=pd,Ed=_d,Dd=bd,Od=Object.defineProperty,kd=(e,t)=>Od(e,`name`,{value:t,configurable:!0}),Ad=!1;function jd(){let[e,t]=H.useState(Ad);return H.useEffect(()=>{Ad||(Ad=!0,t(!0))},[]),e}kd(jd,`useIsHydrated`);var Md=H.useSyncExternalStore;function Nd(){return()=>{}}kd(Nd,`subscribe`);function Pd(){return Md(Nd,()=>!0,()=>!1)}kd(Pd,`useIsHydratedModern`);var Fd=typeof Md==`function`?Pd:jd,Id=Object.defineProperty,Ld=(e,t)=>Id(e,`name`,{value:t,configurable:!0}),Rd=`rovingFocusGroup.onEntryFocus`,zd={bubbles:!1,cancelable:!0},Bd=`RovingFocusGroup`,[Vd,Hd,Ud]=Ur(Bd),[Wd,Gd]=zr(Bd,[Ud]),[Kd,qd]=Wd(Bd),Jd=H.forwardRef(Ld(function(e,t){return(0,U.jsx)(Vd.Provider,{scope:e.__scopeRovingFocusGroup,children:(0,U.jsx)(Vd.Slot,{scope:e.__scopeRovingFocusGroup,children:(0,U.jsx)(Yd,{...e,ref:t})})})},`RovingFocusGroup`)),Yd=H.forwardRef(Ld(function(e,t){let{__scopeRovingFocusGroup:n,orientation:r,loop:i=!1,dir:a,currentTabStopId:o,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:c,onEntryFocus:l,preventScrollOnEntryFocus:u=!1,...d}=e,f=H.useRef(null),p=ur(t,f),m=$i(a),[h,g]=gi({prop:o,defaultProp:s??null,onChange:c,caller:Bd}),[_,v]=H.useState(!1),y=na(l),b=Hd(n),x=H.useRef(!1),[S,C]=H.useState(0);return H.useEffect(()=>{let e=f.current;if(e)return e.addEventListener(Rd,y),()=>e.removeEventListener(Rd,y)},[y]),(0,U.jsx)(Kd,{scope:n,orientation:r,dir:m,loop:i,currentTabStopId:h,onItemFocus:H.useCallback(e=>g(e),[g]),onItemShiftTab:H.useCallback(()=>v(!0),[]),onFocusableItemAdd:H.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:H.useCallback(()=>C(e=>e-1),[]),children:(0,U.jsx)(Ar.div,{tabIndex:_||S===0?-1:0,"data-orientation":r,...d,ref:p,style:{outline:`none`,...e.style},onMouseDown:G(e.onMouseDown,()=>{x.current=!0}),onFocus:G(e.onFocus,e=>{let t=!x.current;if(e.target===e.currentTarget&&t&&!_){let t=new CustomEvent(Rd,zd);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=b().filter(e=>e.focusable);tf([e.find(e=>e.active),e.find(e=>e.id===h),...e].filter(Boolean).map(e=>e.ref.current),u)}}x.current=!1}),onBlur:G(e.onBlur,()=>v(!1))})})},`RovingFocusGroupImpl`)),Xd=`RovingFocusGroupItem`,Zd=H.forwardRef(Ld(function(e,t){let{__scopeRovingFocusGroup:n,focusable:r=!0,active:i=!1,tabStopId:a,children:o,...s}=e,c=Pi(),l=a||c,u=qd(Xd,n),d=u.currentTabStopId===l,f=Hd(n),{onFocusableItemAdd:p,onFocusableItemRemove:m,currentTabStopId:h}=u,g=Fd();return si(()=>{if(!(!g||!r))return p(),()=>m()},[g,r,p,m]),H.useEffect(()=>{if(!(g||!r))return p(),()=>m()},[g,r,p,m]),(0,U.jsx)(Vd.ItemSlot,{scope:n,id:l,focusable:r,active:i,children:(0,U.jsx)(Ar.span,{tabIndex:d?0:-1,"data-orientation":u.orientation,...s,ref:t,onMouseDown:G(e.onMouseDown,e=>{r?u.onItemFocus(l):e.preventDefault()}),onFocus:G(e.onFocus,()=>u.onItemFocus(l)),onKeyDown:G(e.onKeyDown,e=>{if(e.key===`Tab`&&e.shiftKey){u.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=ef(e,u.orientation,u.dir);if(t!==void 0){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let n=f().filter(e=>e.focusable).map(e=>e.ref.current);if(t===`last`)n.reverse();else if(t===`prev`||t===`next`){t===`prev`&&n.reverse();let r=n.indexOf(e.currentTarget);n=u.loop?nf(n,r+1):n.slice(r+1)}setTimeout(()=>tf(n))}}),children:typeof o==`function`?o({isCurrentTabStop:d,hasTabStop:h!=null}):o})})},`RovingFocusGroupItem`)),Qd={ArrowLeft:`prev`,ArrowUp:`prev`,ArrowRight:`next`,ArrowDown:`next`,PageUp:`first`,Home:`first`,PageDown:`last`,End:`last`};function $d(e,t){return t===`rtl`?e===`ArrowLeft`?`ArrowRight`:e===`ArrowRight`?`ArrowLeft`:e:e}Ld($d,`getDirectionAwareKey`);function ef(e,t,n){let r=$d(e.key,n);if(!(t===`vertical`&&[`ArrowLeft`,`ArrowRight`].includes(r))&&!(t===`horizontal`&&[`ArrowUp`,`ArrowDown`].includes(r)))return Qd[r]}Ld(ef,`getFocusIntent`);function tf(e,t=!1){let n=document.activeElement;for(let r of e)if(r===n||(r.focus({preventScroll:t}),document.activeElement!==n))return}Ld(tf,`focusFirst`);function nf(e,t){return e.map((n,r)=>e[(t+r)%e.length])}Ld(nf,`wrapArray`);var rf=Jd,af=Zd,of=Object.defineProperty,sf=(e,t)=>of(e,`name`,{value:t,configurable:!0}),cf=[`Enter`,` `],lf=[`ArrowDown`,`PageUp`,`Home`],uf=[`ArrowUp`,`PageDown`,`End`],df=[...lf,...uf];[...cf],[...cf];var ff=`Menu`,[pf,mf,hf]=Ur(ff),[gf,_f]=zr(ff,[hf,cd,Gd]),vf=cd(),yf=Gd(),[bf,xf]=gf(ff),[Sf,Cf]=gf(ff),wf=sf(e=>{let{__scopeMenu:t,open:n=!1,children:r,dir:i,onOpenChange:a,modal:o=!0}=e,s=vf(t),[c,l]=H.useState(null),u=H.useRef(!1),d=na(a),f=$i(i);return H.useEffect(()=>{let e=sf(()=>{u.current=!0,document.addEventListener(`pointerdown`,t,{capture:!0,once:!0}),document.addEventListener(`pointermove`,t,{capture:!0,once:!0})},`handleKeyDown`),t=sf(()=>u.current=!1,`handlePointer`);return document.addEventListener(`keydown`,e,{capture:!0}),()=>{document.removeEventListener(`keydown`,e,{capture:!0}),document.removeEventListener(`pointerdown`,t,{capture:!0}),document.removeEventListener(`pointermove`,t,{capture:!0})}},[]),H.useEffect(()=>{if(!n)return;let e=sf(()=>d(!1),`handleBlur`);return window.addEventListener(`blur`,e),()=>window.removeEventListener(`blur`,e)},[n,d]),(0,U.jsx)(wd,{...s,children:(0,U.jsx)(bf,{scope:t,open:n,onOpenChange:d,content:c,onContentChange:l,children:(0,U.jsx)(Sf,{scope:t,onClose:H.useCallback(()=>d(!1),[d]),isUsingKeyboardRef:u,dir:f,modal:o,children:r})})})},`Menu`),Tf=H.forwardRef(sf(function(e,t){let{__scopeMenu:n,...r}=e,i=vf(n);return(0,U.jsx)(Td,{...i,...r,ref:t})},`MenuAnchor`)),Ef=`MenuPortal`,[Df,Of]=gf(Ef,{forceMount:void 0}),kf=sf(e=>{let{__scopeMenu:t,forceMount:n,children:r,container:i}=e,a=xf(Ef,t);return(0,U.jsx)(Df,{scope:t,forceMount:n,children:(0,U.jsx)(wi,{present:n||a.open,children:(0,U.jsx)(Fa,{asChild:!0,container:i,children:r})})})},`MenuPortal`),Af=`MenuContent`,[jf,Mf]=gf(Af),Nf=H.forwardRef(sf(function(e,t){let n=Of(Af,e.__scopeMenu),{forceMount:r=n.forceMount,...i}=e,a=xf(Af,e.__scopeMenu),o=Cf(Af,e.__scopeMenu);return(0,U.jsx)(pf.Provider,{scope:e.__scopeMenu,children:(0,U.jsx)(wi,{present:r||a.open,children:(0,U.jsx)(pf.Slot,{scope:e.__scopeMenu,children:o.modal?(0,U.jsx)(Pf,{...i,ref:t}):(0,U.jsx)(Ff,{...i,ref:t})})})})},`MenuContent`)),Pf=H.forwardRef(sf(function(e,t){let n=xf(Af,e.__scopeMenu),r=H.useRef(null),i=ur(t,r);return H.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,U.jsx)(Lf,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentModal`)),Ff=H.forwardRef(sf(function(e,t){let n=xf(Af,e.__scopeMenu);return(0,U.jsx)(Lf,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})},`MenuRootContentNonModal`)),If=pr(`MenuContent.ScrollLock`),Lf=H.forwardRef(sf(function(e,t){let{__scopeMenu:n,loop:r=!1,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,disableOutsidePointerEvents:s,onEntryFocus:c,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,disableOutsideScroll:m,...h}=e,g=xf(Af,n),_=Cf(Af,n),v=vf(n),y=yf(n),b=mf(n),[x,S]=H.useState(null),C=H.useRef(null),w=ur(t,C,g.onContentChange),T=H.useRef(0),E=H.useRef(``),D=H.useRef(0),O=H.useRef(null),k=H.useRef(`right`),A=H.useRef(0),j=m?Zo:H.Fragment,M=m?{as:If,allowPinchZoom:!0}:void 0,N=sf(e=>{let t=E.current+e,n=b().filter(e=>!e.disabled),r=document.activeElement,i=n.find(e=>e.ref.current===r)?.textValue,a=tp(n.map(e=>e.textValue),t,i),o=n.find(e=>e.textValue===a)?.ref.current;sf((function e(t){E.current=t,window.clearTimeout(T.current),t!==``&&(T.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(t),o&&setTimeout(()=>o.focus())},`handleTypeaheadSearch`);H.useEffect(()=>()=>window.clearTimeout(T.current),[]),Va();let P=H.useCallback(e=>k.current===O.current?.side&&rp(e,O.current?.area),[]);return(0,U.jsx)(jf,{scope:n,searchRef:E,onItemEnter:H.useCallback(e=>{P(e)&&e.preventDefault()},[P]),onItemLeave:H.useCallback(e=>{P(e)||(C.current?.focus(),S(null))},[P]),onTriggerLeave:H.useCallback(e=>{P(e)&&e.preventDefault()},[P]),pointerGraceTimerRef:D,onPointerGraceIntentChange:H.useCallback(e=>{O.current=e},[]),children:(0,U.jsx)(j,{...M,children:(0,U.jsx)(Sa,{asChild:!0,trapped:i,onMountAutoFocus:G(a,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:o,children:(0,U.jsx)(ua,{asChild:!0,disableOutsidePointerEvents:s,onEscapeKeyDown:l,onPointerDownOutside:u,onFocusOutside:d,onInteractOutside:f,onDismiss:p,children:(0,U.jsx)(rf,{asChild:!0,...y,dir:_.dir,orientation:`vertical`,loop:r,currentTabStopId:x,onCurrentTabStopIdChange:S,onEntryFocus:G(c,e=>{_.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:(0,U.jsx)(Ed,{role:`menu`,"aria-orientation":`vertical`,"data-state":Xf(g.open),"data-radix-menu-content":``,dir:_.dir,...v,...h,ref:w,style:{outline:`none`,...h.style},onKeyDown:G(h.onKeyDown,e=>{let t=e.target.closest(`[data-radix-menu-content]`)===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=e.key.length===1;t&&(e.key===`Tab`&&e.preventDefault(),!n&&r&&N(e.key));let i=C.current;if(e.target!==i||!df.includes(e.key))return;e.preventDefault();let a=b().filter(e=>!e.disabled).map(e=>e.ref.current);uf.includes(e.key)&&a.reverse(),$f(a)}),onBlur:G(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(T.current),E.current=``)}),onPointerMove:G(e.onPointerMove,ip(e=>{let t=e.target,n=A.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>A.current?`right`:`left`;k.current=t,A.current=e.clientX}}))})})})})})})},`MenuContentImpl`)),Rf=H.forwardRef(sf(function(e,t){let{__scopeMenu:n,...r}=e;return(0,U.jsx)(Ar.div,{...r,ref:t})},`MenuLabel`)),zf=`MenuItem`,Bf=`menu.itemSelect`,Vf=H.forwardRef(sf(function(e,t){let{disabled:n=!1,onSelect:r,...i}=e,a=H.useRef(null),o=Cf(zf,e.__scopeMenu),s=Mf(zf,e.__scopeMenu),c=ur(t,a),l=H.useRef(!1),u=sf(()=>{let e=a.current;if(!n&&e){let t=new CustomEvent(Bf,{bubbles:!0,cancelable:!0});e.addEventListener(Bf,e=>r?.(e),{once:!0}),jr(e,t),t.defaultPrevented?l.current=!1:o.onClose()}},`handleSelect`);return(0,U.jsx)(Hf,{...i,ref:c,disabled:n,onClick:G(e.onClick,u),onPointerDown:t=>{e.onPointerDown?.(t),l.current=!0},onPointerUp:G(e.onPointerUp,e=>{l.current||e.currentTarget?.click()}),onKeyDown:G(e.onKeyDown,e=>{n||e.target!==e.currentTarget||(s.searchRef.current===``||e.key!==` `)&&cf.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})},`MenuItem`)),Hf=H.forwardRef(sf(function(e,t){let{__scopeMenu:n,disabled:r=!1,textValue:i,...a}=e,o=Mf(zf,n),s=yf(n),c=H.useRef(null),l=ur(t,c),[u,d]=H.useState(!1),[f,p]=H.useState(``);return H.useEffect(()=>{let e=c.current;e&&p((e.textContent??``).trim())},[a.children]),(0,U.jsx)(pf.ItemSlot,{scope:n,disabled:r,textValue:i??f,children:(0,U.jsx)(af,{asChild:!0,...s,focusable:!r,children:(0,U.jsx)(Ar.div,{role:`menuitem`,"data-highlighted":u?``:void 0,"aria-disabled":r||void 0,"data-disabled":r?``:void 0,...a,ref:l,onPointerMove:G(e.onPointerMove,ip(e=>{r?o.onItemLeave(e):(o.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:G(e.onPointerLeave,ip(e=>o.onItemLeave(e))),onFocus:G(e.onFocus,()=>d(!0)),onBlur:G(e.onBlur,()=>d(!1))})})})},`MenuItemImpl`)),[Uf,Wf]=gf(`MenuRadioGroup`,{value:void 0,onValueChange:sf(()=>{},`onValueChange`)}),[Gf,Kf]=gf(`MenuItemIndicator`,{checked:!1}),qf=H.forwardRef(sf(function(e,t){let{__scopeMenu:n,...r}=e;return(0,U.jsx)(Ar.div,{role:`separator`,"aria-orientation":`horizontal`,...r,ref:t})},`MenuSeparator`)),[Jf,Yf]=gf(`MenuSub`);function Xf(e){return e?`open`:`closed`}sf(Xf,`getOpenState`);function Zf(e){return e===`indeterminate`}sf(Zf,`isIndeterminate`);function Qf(e){return Zf(e)?`indeterminate`:e?`checked`:`unchecked`}sf(Qf,`getCheckedState`);function $f(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}sf($f,`focusFirst`);function ep(e,t){return e.map((n,r)=>e[(t+r)%e.length])}sf(ep,`wrapArray`);function tp(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=ep(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}sf(tp,`getNextMatch`);function np(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}sf(np,`isPointInPolygon`);function rp(e,t){return t?np({x:e.clientX,y:e.clientY},t):!1}sf(rp,`isPointerInGraceArea`);function ip(e){return t=>t.pointerType===`mouse`?e(t):void 0}sf(ip,`whenMouse`);var ap=wf,op=Tf,sp=kf,cp=Nf,lp=Rf,up=Vf,dp=qf,fp=Object.defineProperty,pp=(e,t)=>fp(e,`name`,{value:t,configurable:!0}),mp=`DropdownMenu`,[hp,gp]=zr(mp,[_f]),_p=_f(),[vp,yp]=hp(mp),bp=pp(e=>{let{__scopeDropdownMenu:t,children:n,dir:r,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,c=_p(t),l=H.useRef(null),[u,d]=gi({prop:i,defaultProp:a??!1,onChange:o,caller:mp});return(0,U.jsx)(vp,{scope:t,triggerId:Pi(),triggerRef:l,contentId:Pi(),open:u,onOpenChange:d,onOpenToggle:H.useCallback(()=>d(e=>!e),[d]),modal:s,children:(0,U.jsx)(ap,{...c,open:u,onOpenChange:d,dir:r,modal:s,children:n})})},`DropdownMenu`),xp=`DropdownMenuTrigger`,Sp=H.forwardRef(pp(function(e,t){let{__scopeDropdownMenu:n,disabled:r=!1,...i}=e,a=yp(xp,n),o=_p(n),s=ur(t,a.triggerRef);return(0,U.jsx)(op,{asChild:!0,...o,children:(0,U.jsx)(Ar.button,{type:`button`,id:a.triggerId,"aria-haspopup":`menu`,"aria-expanded":a.open,"aria-controls":a.open?a.contentId:void 0,"data-state":a.open?`open`:`closed`,"data-disabled":r?``:void 0,disabled:r,...i,ref:s,onPointerDown:G(e.onPointerDown,e=>{!r&&e.button===0&&e.ctrlKey===!1&&(a.onOpenToggle(),a.open||e.preventDefault())}),onKeyDown:G(e.onKeyDown,e=>{r||([`Enter`,` `].includes(e.key)&&a.onOpenToggle(),e.key===`ArrowDown`&&a.onOpenChange(!0),[`Enter`,` `,`ArrowDown`].includes(e.key)&&e.preventDefault())})})})},`DropdownMenuTrigger`)),Cp=pp(e=>{let{__scopeDropdownMenu:t,...n}=e,r=_p(t);return(0,U.jsx)(sp,{...r,...n})},`DropdownMenuPortal`),wp=`DropdownMenuContent`,Tp=H.forwardRef(pp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=yp(wp,n),a=_p(n),o=H.useRef(!1);return(0,U.jsx)(cp,{id:i.contentId,"aria-labelledby":i.triggerId,...a,...r,ref:t,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{o.current||i.triggerRef.current?.focus(),o.current=!1,e.preventDefault()}),onInteractOutside:G(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;(!i.modal||r)&&(o.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-dropdown-menu-content-available-width":`var(--radix-popper-available-width)`,"--radix-dropdown-menu-content-available-height":`var(--radix-popper-available-height)`,"--radix-dropdown-menu-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-dropdown-menu-trigger-height":`var(--radix-popper-anchor-height)`}})},`DropdownMenuContent`)),Ep=H.forwardRef(pp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=_p(n);return(0,U.jsx)(lp,{...i,...r,ref:t})},`DropdownMenuLabel`)),Dp=H.forwardRef(pp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=_p(n);return(0,U.jsx)(up,{...i,...r,ref:t})},`DropdownMenuItem`)),Op=H.forwardRef(pp(function(e,t){let{__scopeDropdownMenu:n,...r}=e,i=_p(n);return(0,U.jsx)(dp,{...i,...r,ref:t})},`DropdownMenuSeparator`)),kp=bp,Ap=Sp,jp=Cp,Mp=Tp,Np=Ep,Pp=Dp,Fp=Op,Ip=Object.defineProperty,Lp=H.forwardRef(((e,t)=>Ip(e,`name`,{value:t,configurable:!0}))(function(e,t){return(0,U.jsx)(Ar.label,{...e,ref:t,onMouseDown:t=>{t.target.closest(`button, input, select, textarea`)||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}})},`Label`)),Rp=Object.defineProperty,zp=(e,t)=>Rp(e,`name`,{value:t,configurable:!0});function Bp(e){let t=H.useRef({value:e,previous:e});return H.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}zp(Bp,`usePrevious`);var Vp=Object.defineProperty,Hp=(e,t)=>Vp(e,`name`,{value:t,configurable:!0});function Up(e,[t,n]){return Math.min(n,Math.max(t,e))}Hp(Up,`clamp`);var Wp=Object.defineProperty,Gp=(e,t)=>Wp(e,`name`,{value:t,configurable:!0}),Kp=`Popover`,[qp,Jp]=zr(Kp,[cd]),Yp=cd(),[Xp,Zp]=qp(Kp),Qp=Gp(e=>{let{__scopePopover:t,children:n,open:r,defaultOpen:i,onOpenChange:a,modal:o=!1}=e,s=Yp(t),c=H.useRef(null),[l,u]=H.useState(!1),[d,f]=gi({prop:r,defaultProp:i??!1,onChange:a,caller:Kp});return(0,U.jsx)(wd,{...s,children:(0,U.jsx)(Xp,{scope:t,contentId:Pi(),triggerRef:c,open:d,onOpenChange:f,onOpenToggle:H.useCallback(()=>f(e=>!e),[f]),hasCustomAnchor:l,onCustomAnchorAdd:H.useCallback(()=>u(!0),[]),onCustomAnchorRemove:H.useCallback(()=>u(!1),[]),modal:o,children:n})})},`Popover`),$p=`PopoverTrigger`,em=H.forwardRef(Gp(function(e,t){let{__scopePopover:n,...r}=e,i=Zp($p,n),a=Yp(n),o=ur(t,i.triggerRef),s=(0,U.jsx)(Ar.button,{type:`button`,"aria-haspopup":`dialog`,"aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":dm(i.open),...r,ref:o,onClick:G(e.onClick,i.onOpenToggle)});return i.hasCustomAnchor?s:(0,U.jsx)(Td,{asChild:!0,...a,children:s})},`PopoverTrigger`)),tm=`PopoverPortal`,[nm,rm]=qp(tm,{forceMount:void 0}),im=Gp(e=>{let{__scopePopover:t,forceMount:n,children:r,container:i}=e,a=Zp(tm,t);return(0,U.jsx)(nm,{scope:t,forceMount:n,children:(0,U.jsx)(wi,{present:n||a.open,children:(0,U.jsx)(Fa,{asChild:!0,container:i,children:r})})})},`PopoverPortal`),am=`PopoverContent`,om=H.forwardRef(Gp(function(e,t){let n=rm(am,e.__scopePopover),{forceMount:r=n.forceMount,...i}=e,a=Zp(am,e.__scopePopover);return(0,U.jsx)(wi,{present:r||a.open,children:a.modal?(0,U.jsx)(cm,{...i,ref:t}):(0,U.jsx)(lm,{...i,ref:t})})},`PopoverContent`)),sm=pr(`PopoverContent.RemoveScroll`),cm=H.forwardRef(Gp(function(e,t){let n=Zp(am,e.__scopePopover),r=H.useRef(null),i=ur(t,r),a=H.useRef(!1);return H.useEffect(()=>{let e=r.current;if(e)return os(e)},[]),(0,U.jsx)(Zo,{as:sm,allowPinchZoom:!0,children:(0,U.jsx)(um,{...e,ref:i,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:G(e.onCloseAutoFocus,e=>{e.preventDefault(),a.current||n.triggerRef.current?.focus()}),onPointerDownOutside:G(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=t.button===0&&t.ctrlKey===!0,r=t.button===2||n;a.current=r},{checkForDefaultPrevented:!1}),onFocusOutside:G(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1})})})},`PopoverContentModal`)),lm=H.forwardRef(Gp(function(e,t){let n=Zp(am,e.__scopePopover),r=H.useRef(!1),i=H.useRef(!1);return(0,U.jsx)(um,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(r.current||n.triggerRef.current?.focus(),t.preventDefault()),r.current=!1,i.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(r.current=!0,t.detail.originalEvent.type===`pointerdown`&&(i.current=!0));let a=t.target;n.triggerRef.current?.contains(a)&&t.preventDefault(),t.detail.originalEvent.type===`focusin`&&i.current&&t.preventDefault()}})},`PopoverContentNonModal`)),um=H.forwardRef(Gp(function(e,t){let{__scopePopover:n,trapFocus:r,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:o,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onInteractOutside:u,...d}=e,f=Zp(am,n),p=Yp(n);return Va(),(0,U.jsx)(Sa,{asChild:!0,loop:!0,trapped:r,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,U.jsx)(ua,{asChild:!0,disableOutsidePointerEvents:o,onInteractOutside:u,onEscapeKeyDown:s,onPointerDownOutside:c,onFocusOutside:l,onDismiss:()=>f.onOpenChange(!1),deferPointerDownOutside:!0,children:(0,U.jsx)(Ed,{"data-state":dm(f.open),role:`dialog`,id:f.contentId,...p,...d,ref:t,style:{...d.style,"--radix-popover-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-popover-content-available-width":`var(--radix-popper-available-width)`,"--radix-popover-content-available-height":`var(--radix-popper-available-height)`,"--radix-popover-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-popover-trigger-height":`var(--radix-popper-anchor-height)`}})})})},`PopoverContentImpl`));function dm(e){return e?`open`:`closed`}Gp(dm,`getState`);var fm=Qp,pm=em,mm=im,hm=om,gm=Object.defineProperty,_m=(e,t)=>gm(e,`name`,{value:t,configurable:!0}),vm=[` `,`Enter`,`ArrowUp`,`ArrowDown`],ym=[` `,`Enter`],bm=`Select`,[xm,Sm,Cm]=Ur(bm),[wm,Tm]=zr(bm,[Cm,cd]),Em=cd(),[Dm,Om]=wm(bm),[km,Am]=wm(bm);function jm(e){let{__scopeSelect:t,children:n,open:r,defaultOpen:i,onOpenChange:a,value:o,defaultValue:s,onValueChange:c,dir:l,name:u,autoComplete:d,disabled:f,required:p,form:m,internal_do_not_use_render:h}=e,g=Em(t),[_,v]=H.useState(null),[y,b]=H.useState(null),[x,S]=H.useState(!1),C=$i(l),[w,T]=gi({prop:r,defaultProp:i??!1,onChange:a,caller:bm}),[E,D]=gi({prop:o,defaultProp:s,onChange:c,caller:bm}),O=H.useRef(null),k=H.useRef(E);H.useEffect(()=>{let e=m?_?.ownerDocument.getElementById(m):_?.form;if(e instanceof HTMLFormElement){let t=_m(()=>D(k.current),`reset`);return e.addEventListener(`reset`,t),()=>e.removeEventListener(`reset`,t)}},[m,_,D]);let A=!_||!!m||!!_.closest(`form`),[j,M]=H.useState(new Set),N=Pi(),P=Array.from(j).map(e=>e.props.value).join(`;`),F=H.useCallback(e=>{M(t=>new Set(t).add(e))},[]),I=H.useCallback(e=>{M(t=>{let n=new Set(t);return n.delete(e),n})},[]),L={required:p,trigger:_,onTriggerChange:v,valueNode:y,onValueNodeChange:b,valueNodeHasChildren:x,onValueNodeHasChildrenChange:S,contentId:N,value:E,onValueChange:D,open:w,onOpenChange:T,dir:C,triggerPointerDownPosRef:O,disabled:f,name:u,autoComplete:d,form:m,nativeOptions:j,nativeSelectKey:P,isFormControl:A};return(0,U.jsx)(wd,{...g,children:(0,U.jsx)(Dm,{scope:t,...L,children:(0,U.jsx)(xm.Provider,{scope:t,children:(0,U.jsx)(km,{scope:t,onNativeOptionAdd:F,onNativeOptionRemove:I,children:vh(h)?h(L):n})})})})}_m(jm,`SelectProvider`);var Mm=_m(e=>{let{__scopeSelect:t,children:n,...r}=e;return(0,U.jsx)(jm,{__scopeSelect:t,...r,internal_do_not_use_render:({isFormControl:e})=>(0,U.jsxs)(U.Fragment,{children:[n,e?(0,U.jsx)(_h,{__scopeSelect:t}):null]})})},`Select`),Nm=`SelectTrigger`,Pm=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,disabled:r=!1,...i}=e,a=Em(n),o=Om(Nm,n),s=o.disabled||r,c=ur(t,o.onTriggerChange),l=Sm(n),u=H.useRef(`touch`),[d,f,p]=bh(e=>{let t=l().filter(e=>!e.disabled),n=xh(t,e,t.find(e=>e.value===o.value));n!==void 0&&o.onValueChange(n.value)}),m=_m(e=>{s||(o.onOpenChange(!0),p()),e&&(o.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})},`handleOpen`);return(0,U.jsx)(Td,{asChild:!0,...a,children:(0,U.jsx)(Ar.button,{type:`button`,role:`combobox`,"aria-controls":o.open?o.contentId:void 0,"aria-expanded":o.open,"aria-required":o.required,"aria-autocomplete":`none`,dir:o.dir,"data-state":o.open?`open`:`closed`,disabled:s,"data-disabled":s?``:void 0,"data-placeholder":yh(o.value)?``:void 0,...i,ref:c,onClick:G(i.onClick,e=>{e.currentTarget.focus(),u.current!==`mouse`&&m(e)}),onPointerDown:G(i.onPointerDown,e=>{u.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),e.button===0&&e.ctrlKey===!1&&e.pointerType===`mouse`&&(m(e),e.preventDefault())}),onKeyDown:G(i.onKeyDown,e=>{let t=d.current!==``;!(e.ctrlKey||e.altKey||e.metaKey)&&e.key.length===1&&f(e.key),!(t&&e.key===` `)&&vm.includes(e.key)&&(m(),e.preventDefault())})})})},`SelectTrigger`)),Fm=`SelectValue`,Im=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,className:r,style:i,children:a,placeholder:o=``,...s}=e,c=Om(Fm,n),{onValueNodeHasChildrenChange:l}=c,u=a!==void 0,d=ur(t,c.onValueNodeChange);si(()=>{l(u)},[l,u]);let f=yh(c.value);return(0,U.jsx)(Ar.span,{...s,asChild:!f&&s.asChild,ref:d,style:{pointerEvents:`none`},children:(0,U.jsx)(H.Fragment,{children:f?o:a},f?`placeholder`:`value`)})},`SelectValue`)),Lm=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,children:r,...i}=e;return(0,U.jsx)(Ar.span,{"aria-hidden":!0,...i,ref:t,children:r||`▼`})},`SelectIcon`)),[Rm,zm]=wm(`SelectPortal`,{forceMount:void 0}),Bm=_m(e=>{let{__scopeSelect:t,forceMount:n,...r}=e;return(0,U.jsx)(Rm,{scope:e.__scopeSelect,forceMount:n,children:(0,U.jsx)(Fa,{asChild:!0,...r})})},`SelectPortal`),Vm=`SelectContent`,Hm=H.forwardRef(_m(function(e,t){let n=zm(Vm,e.__scopeSelect),{forceMount:r=n.forceMount,...i}=e,a=Om(Vm,e.__scopeSelect),[o,s]=H.useState();return si(()=>{s(new DocumentFragment)},[]),(0,U.jsx)(wi,{present:r||a.open,children:({present:e})=>e?(0,U.jsx)(Jm,{...i,ref:t}):(0,U.jsx)(Um,{...i,fragment:o})})},`SelectContent`)),Um=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,children:r,fragment:i}=e;return i?Dr.createPortal((0,U.jsx)(Gm,{scope:n,children:(0,U.jsx)(xm.Slot,{scope:n,children:(0,U.jsx)(`div`,{ref:t,children:r})})}),i):null},`SelectContentFragment`)),Wm=10,[Gm,Km]=wm(Vm),qm=pr(`SelectContent.RemoveScroll`),Jm=H.forwardRef(_m(function(e,t){let{__scopeSelect:n}=e,{position:r=`item-aligned`,onCloseAutoFocus:i,onEscapeKeyDown:a,onPointerDownOutside:o,side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g,..._}=e,v=Om(Vm,n),[y,b]=H.useState(null),[x,S]=H.useState(null),C=ur(t,b),[w,T]=H.useState(null),[E,D]=H.useState(null),O=Sm(n),[k,A]=H.useState(!1),j=H.useRef(!1);H.useEffect(()=>{if(y)return os(y)},[y]),Va();let M=H.useCallback(e=>{let[t,...n]=O().map(e=>e.ref.current),[r]=n.slice(-1),i=document.activeElement;for(let n of e)if(n===i||(n?.scrollIntoView({block:`nearest`}),n===t&&x&&(x.scrollTop=0),n===r&&x&&(x.scrollTop=x.scrollHeight),n?.focus(),document.activeElement!==i))return},[O,x]),N=H.useCallback(()=>M([w,y]),[M,w,y]);H.useEffect(()=>{k&&N()},[k,N]);let{onOpenChange:P,triggerPointerDownPosRef:F}=v;H.useEffect(()=>{if(y){let e={x:0,y:0},t=_m(t=>{e={x:Math.abs(Math.round(t.pageX)-(F.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(F.current?.y??0))}},`handlePointerMove`),n=_m(n=>{e.x<=10&&e.y<=10?n.preventDefault():n.composedPath().includes(y)||P(!1),document.removeEventListener(`pointermove`,t),F.current=null},`handlePointerUp`);return F.current!==null&&(document.addEventListener(`pointermove`,t),document.addEventListener(`pointerup`,n,{capture:!0,once:!0})),()=>{document.removeEventListener(`pointermove`,t),document.removeEventListener(`pointerup`,n,{capture:!0})}}},[y,P,F]),H.useEffect(()=>{let e=_m(()=>P(!1),`close`);return window.addEventListener(`blur`,e),window.addEventListener(`resize`,e),()=>{window.removeEventListener(`blur`,e),window.removeEventListener(`resize`,e)}},[P]);let[I,L]=bh(e=>{let t=O().filter(e=>!e.disabled),n=xh(t,e,t.find(e=>e.ref.current===document.activeElement));n&&setTimeout(()=>n.ref.current?.focus())}),R=H.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&(T(e),r&&(j.current=!0))},[v.value]),ee=H.useCallback(()=>y?.focus(),[y]),te=H.useCallback((e,t,n)=>{let r=!j.current&&!n;(v.value!==void 0&&v.value===t||r)&&D(e)},[v.value]),z=r===`popper`?Xm:Ym,B=z===Xm?{side:s,sideOffset:c,align:l,alignOffset:u,arrowPadding:d,collisionBoundary:f,collisionPadding:p,sticky:m,hideWhenDetached:h,avoidCollisions:g}:{};return(0,U.jsx)(Gm,{scope:n,content:y,viewport:x,onViewportChange:S,itemRefCallback:R,selectedItem:w,onItemLeave:ee,itemTextRefCallback:te,focusSelectedItem:N,selectedItemText:E,position:r,isPositioned:k,searchRef:I,children:(0,U.jsx)(Zo,{as:qm,allowPinchZoom:!0,children:(0,U.jsx)(Sa,{asChild:!0,trapped:v.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:G(i,e=>{v.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:(0,U.jsx)(ua,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:a,onPointerDownOutside:o,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>v.onOpenChange(!1),children:(0,U.jsx)(z,{role:`listbox`,id:v.contentId,"data-state":v.open?`open`:`closed`,dir:v.dir,onContextMenu:e=>e.preventDefault(),..._,...B,onPlaced:()=>A(!0),ref:C,style:{display:`flex`,flexDirection:`column`,outline:`none`,..._.style},onKeyDown:G(_.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if(e.key===`Tab`&&e.preventDefault(),!t&&e.key.length===1&&L(e.key),[`ArrowUp`,`ArrowDown`,`Home`,`End`].includes(e.key)){let t=O().filter(e=>!e.disabled).map(e=>e.ref.current);if([`ArrowUp`,`End`].includes(e.key)&&(t=t.slice().reverse()),[`ArrowUp`,`ArrowDown`].includes(e.key)){let n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})},`SelectContentImpl`)),Ym=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,onPlaced:r,...i}=e,a=Om(Vm,n),o=Km(Vm,n),[s,c]=H.useState(null),[l,u]=H.useState(null),d=ur(t,u),f=Sm(n),p=H.useRef(!1),m=H.useRef(!0),{viewport:h,selectedItem:g,selectedItemText:_,focusSelectedItem:v}=o,y=H.useCallback(()=>{if(a.trigger&&a.valueNode&&s&&l&&h&&g&&_){let e=a.trigger.getBoundingClientRect(),t=l.getBoundingClientRect(),n=a.valueNode.getBoundingClientRect(),i=_.getBoundingClientRect();if(a.dir!==`rtl`){let r=i.left-t.left,a=n.left-r,o=e.left-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Wm,d=Up(a,[Wm,Math.max(Wm,u-l)]);s.style.minWidth=c+`px`,s.style.left=d+`px`}else{let r=t.right-i.right,a=window.innerWidth-n.right-r,o=window.innerWidth-e.right-a,c=e.width+o,l=Math.max(c,t.width),u=window.innerWidth-Wm,d=Up(a,[Wm,Math.max(Wm,u-l)]);s.style.minWidth=c+`px`,s.style.right=d+`px`}let o=f(),c=window.innerHeight-Wm*2,u=h.scrollHeight,d=window.getComputedStyle(l),m=parseInt(d.borderTopWidth,10),v=parseInt(d.paddingTop,10),y=parseInt(d.borderBottomWidth,10),b=parseInt(d.paddingBottom,10),x=m+v+u+b+y,S=Math.min(g.offsetHeight*5,x),C=window.getComputedStyle(h),w=parseInt(C.paddingTop,10),T=parseInt(C.paddingBottom,10),E=e.top+e.height/2-Wm,D=c-E,O=g.offsetHeight/2,k=g.offsetTop+O,A=m+v+k,j=x-A;if(A<=E){let e=o.length>0&&g===o[o.length-1].ref.current;s.style.bottom=`0px`;let t=l.clientHeight-h.offsetTop-h.offsetHeight,n=A+Math.max(D,O+(e?T:0)+t+y);s.style.height=n+`px`}else{let e=o.length>0&&g===o[0].ref.current;s.style.top=`0px`;let t=Math.max(E,m+h.offsetTop+(e?w:0)+O)+j;s.style.height=t+`px`,h.scrollTop=A-E+h.offsetTop}s.style.margin=`${Wm}px 0`,s.style.minHeight=S+`px`,s.style.maxHeight=c+`px`,r?.(),requestAnimationFrame(()=>p.current=!0)}},[f,a.trigger,a.valueNode,s,l,h,g,_,a.dir,r]);si(()=>y(),[y]);let[b,x]=H.useState();si(()=>{l&&x(window.getComputedStyle(l).zIndex)},[l]);let S=H.useCallback(e=>{e&&m.current===!0&&(y(),v?.(),m.current=!1)},[y,v]);return(0,U.jsx)(Zm,{scope:n,contentWrapper:s,shouldExpandOnScrollRef:p,onScrollButtonChange:S,children:(0,U.jsx)(`div`,{ref:c,style:{display:`flex`,flexDirection:`column`,position:`fixed`,zIndex:b},children:(0,U.jsx)(Ar.div,{...i,ref:d,style:{boxSizing:`border-box`,maxHeight:`100%`,...i.style}})})})},`SelectItemAlignedPosition`)),Xm=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,align:r=`start`,collisionPadding:i=Wm,...a}=e,o=Em(n);return(0,U.jsx)(Ed,{...o,...a,ref:t,align:r,collisionPadding:i,style:{boxSizing:`border-box`,...a.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`)),[Zm,Qm]=wm(Vm,{}),$m=`SelectViewport`,eh=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,nonce:r,...i}=e,a=Km($m,n),o=Qm($m,n),s=ur(t,a.onViewportChange),c=H.useRef(0);return(0,U.jsxs)(U.Fragment,{children:[(0,U.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:r}),(0,U.jsx)(xm.Slot,{scope:n,children:(0,U.jsx)(Ar.div,{"data-radix-select-viewport":``,role:`presentation`,...i,ref:s,style:{position:`relative`,flex:1,overflow:`hidden auto`,...i.style},onScroll:G(i.onScroll,e=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=o;if(r?.current&&n){let e=Math.abs(c.current-t.scrollTop);if(e>0){let r=window.innerHeight-Wm*2,i=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),o=Math.max(i,a);if(o<r){let i=o+e,a=Math.min(r,i),s=i-a;n.style.height=a+`px`,n.style.bottom===`0px`&&(t.scrollTop=s>0?s:0,n.style.justifyContent=`flex-end`)}}}c.current=t.scrollTop})})})]})},`SelectViewport`)),[th,nh]=wm(`SelectGroup`),rh=`SelectItem`,[ih,ah]=wm(rh),oh=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,value:r,disabled:i=!1,textValue:a,...o}=e,s=Om(rh,n),c=Km(rh,n),l=s.value===r,[u,d]=H.useState(a??``),[f,p]=H.useState(!1),m=ur(t,na(e=>c.itemRefCallback?.(e,r,i))),h=Pi(),g=H.useRef(`touch`),_=_m(()=>{i||(s.onValueChange(r),s.onOpenChange(!1))},`handleSelect`);return(0,U.jsx)(ih,{scope:n,value:r,disabled:i,textId:h,isSelected:l,onItemTextChange:H.useCallback(e=>{d(t=>t||(e?.textContent??``).trim())},[]),children:(0,U.jsx)(xm.ItemSlot,{scope:n,value:r,disabled:i,textValue:u,children:(0,U.jsx)(Ar.div,{role:`option`,"aria-labelledby":h,"data-highlighted":f?``:void 0,"aria-selected":l&&f,"data-state":l?`checked`:`unchecked`,"aria-disabled":i||void 0,"data-disabled":i?``:void 0,tabIndex:i?void 0:-1,...o,ref:m,onFocus:G(o.onFocus,()=>p(!0)),onBlur:G(o.onBlur,()=>p(!1)),onClick:G(o.onClick,()=>{g.current!==`mouse`&&_()}),onPointerUp:G(o.onPointerUp,()=>{g.current===`mouse`&&_()}),onPointerDown:G(o.onPointerDown,e=>{g.current=e.pointerType}),onPointerMove:G(o.onPointerMove,e=>{g.current=e.pointerType,i?c.onItemLeave?.():g.current===`mouse`&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:G(o.onPointerLeave,e=>{e.currentTarget===document.activeElement&&c.onItemLeave?.()}),onKeyDown:G(o.onKeyDown,e=>{i||e.target!==e.currentTarget||(c.searchRef?.current===``||e.key!==` `)&&(ym.includes(e.key)&&_(),e.key===` `&&e.preventDefault())})})})})},`SelectItem`)),sh=`SelectItemText`,ch=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,className:r,style:i,...a}=e,o=Om(sh,n),s=Km(sh,n),c=ah(sh,n),l=Am(sh,n),[u,d]=H.useState(null),f=na(e=>s.itemTextRefCallback?.(e,c.value,c.disabled)),p=ur(t,d,c.onItemTextChange,f),m=u?.textContent,h=H.useMemo(()=>(0,U.jsx)(`option`,{value:c.value,disabled:c.disabled,children:m},c.value),[c.disabled,c.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:_}=l;return si(()=>(g(h),()=>_(h)),[g,_,h]),(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Ar.span,{id:c.textId,...a,ref:p}),c.isSelected&&o.valueNode&&!o.valueNodeHasChildren&&!yh(o.value)?Dr.createPortal(a.children,o.valueNode):null]})},`SelectItemText`)),lh=`SelectItemIndicator`,uh=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,...r}=e;return ah(lh,n).isSelected?(0,U.jsx)(Ar.span,{"aria-hidden":!0,...r,ref:t}):null},`SelectItemIndicator`)),dh=`SelectScrollUpButton`,fh=H.forwardRef(_m(function(e,t){let n=Km(dh,e.__scopeSelect),r=Qm(dh,e.__scopeSelect),[i,a]=H.useState(!1),o=ur(t,r.onScrollButtonChange);return si(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollTop>0;a(e)};_m(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,U.jsx)(hh,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop-=t.offsetHeight)}}):null},`SelectScrollUpButton`)),ph=`SelectScrollDownButton`,mh=H.forwardRef(_m(function(e,t){let n=Km(ph,e.__scopeSelect),r=Qm(ph,e.__scopeSelect),[i,a]=H.useState(!1),o=ur(t,r.onScrollButtonChange);return si(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;a(n)};_m(e,`handleScroll`);let t=n.viewport;return e(),t.addEventListener(`scroll`,e),()=>t.removeEventListener(`scroll`,e)}},[n.viewport,n.isPositioned]),i?(0,U.jsx)(hh,{...e,ref:o,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop+=t.offsetHeight)}}):null},`SelectScrollDownButton`)),hh=H.forwardRef(_m(function(e,t){let{__scopeSelect:n,onAutoScroll:r,...i}=e,a=Km(`SelectScrollButton`,n),o=H.useRef(null),s=Sm(n),c=H.useCallback(()=>{o.current!==null&&(window.clearInterval(o.current),o.current=null)},[]);return H.useEffect(()=>()=>c(),[c]),si(()=>{s().find(e=>e.ref.current===document.activeElement)?.ref.current?.scrollIntoView({block:`nearest`})},[s]),(0,U.jsx)(Ar.div,{"aria-hidden":!0,...i,ref:t,style:{flexShrink:0,...i.style},onPointerDown:G(i.onPointerDown,()=>{o.current===null&&(o.current=window.setInterval(r,50))}),onPointerMove:G(i.onPointerMove,()=>{a.onItemLeave?.(),o.current===null&&(o.current=window.setInterval(r,50))}),onPointerLeave:G(i.onPointerLeave,()=>{c()})})},`SelectScrollButtonImpl`)),gh=`SelectBubbleInput`,_h=H.forwardRef(_m(function({__scopeSelect:e,...t},n){let r=Om(gh,e),{value:i,onValueChange:a,required:o,disabled:s,name:c,autoComplete:l,form:u}=r,{nativeOptions:d,nativeSelectKey:f}=r,p=H.useRef(null),m=ur(n,p),h=i??``,g=Bp(h),_=Array.from(d).some(e=>(e.props.value??``)===``);return H.useEffect(()=>{let e=p.current;if(!e)return;let t=window.HTMLSelectElement.prototype,n=Object.getOwnPropertyDescriptor(t,`value`).set;if(g!==h&&n){let t=new Event(`change`,{bubbles:!0});n.call(e,h),e.dispatchEvent(t)}},[g,h]),(0,U.jsxs)(Ar.select,{"aria-hidden":!0,required:o,tabIndex:-1,name:c,autoComplete:l,disabled:s,form:u,onChange:e=>a(e.target.value),...t,style:{...Pr,...t.style},ref:m,defaultValue:h,children:[yh(i)&&!_?(0,U.jsx)(`option`,{value:``}):null,Array.from(d)]},f)},`SelectBubbleInput`));function vh(e){return typeof e==`function`}_m(vh,`isFunction`);function yh(e){return e===``||e===void 0}_m(yh,`shouldShowPlaceholder`);function bh(e){let t=na(e),n=H.useRef(``),r=H.useRef(0),i=H.useCallback(e=>{let i=n.current+e;t(i),_m((function e(t){n.current=t,window.clearTimeout(r.current),t!==``&&(r.current=window.setTimeout(()=>e(``),1e3))}),`updateSearch`)(i)},[t]),a=H.useCallback(()=>{n.current=``,window.clearTimeout(r.current)},[]);return H.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,i,a]}_m(bh,`useTypeaheadSearch`);function xh(e,t,n){let r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,i=n?e.indexOf(n):-1,a=Sh(e,Math.max(i,0));r.length===1&&(a=a.filter(e=>e!==n));let o=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return o===n?void 0:o}_m(xh,`findNextItem`);function Sh(e,t){return e.map((n,r)=>e[(t+r)%e.length])}_m(Sh,`wrapArray`);var Ch=Object.defineProperty,wh=(e,t)=>Ch(e,`name`,{value:t,configurable:!0}),Th=`horizontal`,Eh=[`horizontal`,`vertical`],Dh=H.forwardRef(wh(function(e,t){let{decorative:n,orientation:r=Th,...i}=e,a=Oh(r)?r:Th,o=n?{role:`none`}:{"aria-orientation":a===`vertical`?a:void 0,role:`separator`};return(0,U.jsx)(Ar.div,{"data-orientation":a,...o,...i,ref:t})},`Separator`));function Oh(e){return Eh.includes(e)}wh(Oh,`isValidOrientation`);var kh=Dh,Ah=Object.defineProperty,jh=(e,t)=>Ah(e,`name`,{value:t,configurable:!0}),Mh=`Tabs`,[Nh,Ph]=zr(Mh,[Gd]),Fh=Gd(),[Ih,Lh]=Nh(Mh),Rh=H.forwardRef(jh(function(e,t){let{__scopeTabs:n,value:r,onValueChange:i,defaultValue:a,orientation:o=`horizontal`,dir:s,activationMode:c=`automatic`,...l}=e,u=$i(s),[d,f]=gi({prop:r,onChange:i,defaultProp:a??``,caller:Mh});return(0,U.jsx)(Ih,{scope:n,baseId:Pi(),value:d,onValueChange:f,orientation:o,dir:u,activationMode:c,children:(0,U.jsx)(Ar.div,{dir:u,"data-orientation":o,...l,ref:t})})},`Tabs`)),zh=`TabsList`,Bh=H.forwardRef(jh(function(e,t){let{__scopeTabs:n,loop:r=!0,...i}=e,a=Lh(zh,n),o=Fh(n);return(0,U.jsx)(rf,{asChild:!0,...o,orientation:a.orientation,dir:a.dir,loop:r,children:(0,U.jsx)(Ar.div,{role:`tablist`,"aria-orientation":a.orientation,...i,ref:t})})},`TabsList`)),Vh=`TabsTrigger`,Hh=H.forwardRef(jh(function(e,t){let{__scopeTabs:n,value:r,disabled:i=!1,...a}=e,o=Lh(Vh,n),s=Fh(n),c=Gh(o.baseId,r),l=Kh(o.baseId,r),u=r===o.value;return(0,U.jsx)(af,{asChild:!0,...s,focusable:!i,active:u,children:(0,U.jsx)(Ar.button,{type:`button`,role:`tab`,"aria-selected":u,"aria-controls":l,"data-state":u?`active`:`inactive`,"data-disabled":i?``:void 0,disabled:i,id:c,...a,ref:t,onMouseDown:G(e.onMouseDown,e=>{!i&&e.button===0&&e.ctrlKey===!1?o.onValueChange(r):e.preventDefault()}),onKeyDown:G(e.onKeyDown,e=>{i||e.target!==e.currentTarget||[` `,`Enter`].includes(e.key)&&o.onValueChange(r)}),onFocus:G(e.onFocus,()=>{let e=o.activationMode!==`manual`;!u&&!i&&e&&o.onValueChange(r)})})})},`TabsTrigger`)),Uh=`TabsContent`,Wh=H.forwardRef(jh(function(e,t){let{__scopeTabs:n,value:r,forceMount:i,children:a,...o}=e,s=Lh(Uh,n),c=Gh(s.baseId,r),l=Kh(s.baseId,r),u=r===s.value,d=H.useRef(u);return H.useEffect(()=>{let e=requestAnimationFrame(()=>d.current=!1);return()=>cancelAnimationFrame(e)},[]),(0,U.jsx)(wi,{present:i||u,children:({present:n})=>(0,U.jsx)(Ar.div,{"data-state":u?`active`:`inactive`,"data-orientation":s.orientation,role:`tabpanel`,"aria-labelledby":c,hidden:!n,id:l,tabIndex:0,...o,ref:t,style:{...e.style,animationDuration:d.current?`0s`:void 0},children:n&&a})})},`TabsContent`));function Gh(e,t){return`${e}-trigger-${t}`}jh(Gh,`makeTriggerId`);function Kh(e,t){return`${e}-content-${t}`}jh(Kh,`makeContentId`);var qh=Rh,Jh=Bh,Yh=Hh,Xh=Wh,Zh=Object.defineProperty,Qh=(e,t)=>Zh(e,`name`,{value:t,configurable:!0}),[$h,eg]=zr(`Tooltip`,[cd]),tg=cd(),ng=`TooltipProvider`,rg=700,ig=`tooltip.open`,[ag,og]=$h(ng),sg=Qh(e=>{let{__scopeTooltip:t,delayDuration:n=rg,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:a}=e,o=H.useRef(!0),s=H.useRef(!1),c=H.useRef(0);return H.useEffect(()=>{let e=c.current;return()=>window.clearTimeout(e)},[]),(0,U.jsx)(ag,{scope:t,isOpenDelayedRef:o,delayDuration:n,onOpen:H.useCallback(()=>{r<=0||(window.clearTimeout(c.current),o.current=!1)},[r]),onClose:H.useCallback(()=>{r<=0||(window.clearTimeout(c.current),c.current=window.setTimeout(()=>o.current=!0,r))},[r]),isPointerInTransitRef:s,onPointerInTransitChange:H.useCallback(e=>{s.current=e},[]),disableHoverableContent:i,children:a})},`TooltipProvider`),cg=`Tooltip`,[lg,ug]=$h(cg),dg=Qh(e=>{let{__scopeTooltip:t,children:n,open:r,defaultOpen:i,onOpenChange:a,disableHoverableContent:o,delayDuration:s}=e,c=og(cg,e.__scopeTooltip),l=tg(t),[u,d]=H.useState(null),[f,p]=H.useState(void 0),m=Pi(),h=H.useRef(0),g=o??c.disableHoverableContent,_=s??c.delayDuration,v=H.useRef(!1),[y,b]=gi({prop:r,defaultProp:i??!1,onChange:Qh(e=>{e?(c.onOpen(),document.dispatchEvent(new CustomEvent(ig))):c.onClose(),a?.(e)},`onChange`),caller:cg}),x=H.useMemo(()=>y?v.current?`delayed-open`:`instant-open`:`closed`,[y]),S=H.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,b(!0)},[b]),C=H.useCallback(()=>{window.clearTimeout(h.current),h.current=0,b(!1)},[b]),w=H.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,b(!0),h.current=0},_)},[_,b]);H.useEffect(()=>()=>{h.current&&=(window.clearTimeout(h.current),0)},[]);let T=f??m;return(0,U.jsx)(wd,{...l,children:(0,U.jsx)(lg,{scope:t,contentId:T,setContentId:p,open:y,stateAttribute:x,trigger:u,onTriggerChange:d,onTriggerEnter:H.useCallback(()=>{c.isOpenDelayedRef.current?w():S()},[c.isOpenDelayedRef,w,S]),onTriggerLeave:H.useCallback(()=>{g?C():(window.clearTimeout(h.current),h.current=0)},[C,g]),onOpen:S,onClose:C,disableHoverableContent:g,children:n})})},`Tooltip`),fg=`TooltipTrigger`,pg=H.forwardRef(Qh(function(e,t){let{__scopeTooltip:n,...r}=e,i=ug(fg,n),a=og(fg,n),o=tg(n),s=ur(t,H.useRef(null),i.onTriggerChange),c=H.useRef(!1),l=H.useRef(!1),u=H.useCallback(()=>c.current=!1,[]);return H.useEffect(()=>()=>document.removeEventListener(`pointerup`,u),[u]),(0,U.jsx)(Td,{asChild:!0,...o,children:(0,U.jsx)(Ar.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:s,onPointerMove:G(e.onPointerMove,e=>{e.pointerType!==`touch`&&!l.current&&!a.isPointerInTransitRef.current&&(i.onTriggerEnter(),l.current=!0)}),onPointerLeave:G(e.onPointerLeave,()=>{i.onTriggerLeave(),l.current=!1}),onPointerDown:G(e.onPointerDown,()=>{i.open&&i.onClose(),c.current=!0,document.addEventListener(`pointerup`,u,{once:!0})}),onFocus:G(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:G(e.onBlur,i.onClose),onClick:G(e.onClick,i.onClose)})})},`TooltipTrigger`)),mg=`TooltipPortal`,[hg,gg]=$h(mg,{forceMount:void 0}),_g=Qh(e=>{let{__scopeTooltip:t,forceMount:n,children:r,container:i}=e,a=ug(mg,t);return(0,U.jsx)(hg,{scope:t,forceMount:n,children:(0,U.jsx)(wi,{present:n||a.open,children:(0,U.jsx)(Fa,{asChild:!0,container:i,children:r})})})},`TooltipPortal`),vg=`TooltipContent`,yg=H.forwardRef(Qh(function(e,t){let n=gg(vg,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i=`top`,...a}=e,o=ug(vg,e.__scopeTooltip);return(0,U.jsx)(wi,{present:r||o.open,children:o.disableHoverableContent?(0,U.jsx)(Sg,{side:i,...a,ref:t}):(0,U.jsx)(bg,{side:i,...a,ref:t})})},`TooltipContent`)),bg=H.forwardRef(Qh(function(e,t){let n=ug(vg,e.__scopeTooltip),r=og(vg,e.__scopeTooltip),i=H.useRef(null),a=ur(t,i),[o,s]=H.useState(null),{trigger:c,onClose:l}=n,u=i.current,{onPointerInTransitChange:d}=r,f=H.useCallback(()=>{s(null),d(!1)},[d]),p=H.useCallback((e,t)=>{let n=e.currentTarget,r={x:e.clientX,y:e.clientY},i=Tg(r,wg(r,n.getBoundingClientRect())),a=Eg(t.getBoundingClientRect()),o=Og([...i,...a]);s(o),d(!0)},[d]);return H.useEffect(()=>()=>f(),[f]),H.useEffect(()=>{if(c&&u){let e=Qh(e=>p(e,u),`handleTriggerLeave`),t=Qh(e=>p(e,c),`handleContentLeave`);return c.addEventListener(`pointerleave`,e),u.addEventListener(`pointerleave`,t),()=>{c.removeEventListener(`pointerleave`,e),u.removeEventListener(`pointerleave`,t)}}},[c,u,p,f]),H.useEffect(()=>{if(o){let e=Qh(e=>{let t=e.target,n={x:e.clientX,y:e.clientY},r=c?.contains(t)||u?.contains(t),i=!Dg(n,o);r?f():i&&(f(),l())},`handleTrackPointerGrace`);return document.addEventListener(`pointermove`,e),()=>document.removeEventListener(`pointermove`,e)}},[c,u,o,l,f]),(0,U.jsx)(Sg,{...e,ref:a})},`TooltipContentHoverable`)),xg=gr(`TooltipContent`),Sg=H.forwardRef(Qh(function(e,t){let{__scopeTooltip:n,children:r,"aria-label":i,id:a,onEscapeKeyDown:o,onPointerDownOutside:s,...c}=e,l=ug(vg,n),u=tg(n),{onClose:d}=l;H.useEffect(()=>(document.addEventListener(ig,d),()=>document.removeEventListener(ig,d)),[d]),H.useEffect(()=>{if(l.trigger){let e=Qh(e=>{e.target instanceof Node&&e.target.contains(l.trigger)&&d()},`handleScroll`);return window.addEventListener(`scroll`,e,{capture:!0}),()=>window.removeEventListener(`scroll`,e,{capture:!0})}},[l.trigger,d]);let{setContentId:f}=l;return si(()=>(f(a),()=>{f(void 0)}),[a,f]),(0,U.jsx)(ua,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:(0,U.jsxs)(Ed,{"data-state":l.stateAttribute,role:i?void 0:`tooltip`,id:i?void 0:l.contentId,...u,...c,ref:t,style:{...c.style,"--radix-tooltip-content-transform-origin":`var(--radix-popper-transform-origin)`,"--radix-tooltip-content-available-width":`var(--radix-popper-available-width)`,"--radix-tooltip-content-available-height":`var(--radix-popper-available-height)`,"--radix-tooltip-trigger-width":`var(--radix-popper-anchor-width)`,"--radix-tooltip-trigger-height":`var(--radix-popper-anchor-height)`},children:[(0,U.jsx)(xg,{children:r}),i?(0,U.jsx)(Fr,{id:l.contentId,role:`tooltip`,children:i}):null]})})},`TooltipContentImpl`)),Cg=H.forwardRef(Qh(function(e,t){let{__scopeTooltip:n,...r}=e,i=tg(n);return(0,U.jsx)(Dd,{...i,...r,ref:t})},`TooltipArrow`));function wg(e,t){let n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,i,a)){case a:return`left`;case i:return`right`;case n:return`top`;case r:return`bottom`;default:throw Error(`unreachable`)}}Qh(wg,`getExitSideFromRect`);function Tg(e,t,n=5){let r=[];switch(t){case`top`:r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case`bottom`:r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case`left`:r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case`right`:r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}Qh(Tg,`getPaddedExitPoints`);function Eg(e){let{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}Qh(Eg,`getPointsFromRect`);function Dg(e,t){let{x:n,y:r}=e,i=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){let o=t[e],s=t[a],c=o.x,l=o.y,u=s.x,d=s.y;l>r!=d>r&&n<(u-c)*(r-l)/(d-l)+c&&(i=!i)}return i}Qh(Dg,`isPointInPolygon`);function Og(e){let t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:+(e.y>t.y)),kg(t)}Qh(Og,`getHull`);function kg(e){if(e.length<=1)return e.slice();let t=[];for(let n=0;n<e.length;n++){let r=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x))t.pop();else break}t.push(r)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let r=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x))n.pop();else break}n.push(r)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}Qh(kg,`getHullPresorted`);var Ag=sg,jg=dg,Mg=pg,Ng=_g,Pg=yg,Fg=Cg,Ig=768;function Lg(){let[e,t]=H.useState(void 0);return H.useEffect(()=>{let e=window.matchMedia(`(max-width: 767px)`),n=()=>{t(window.innerWidth<Ig)};return e.addEventListener(`change`,n),t(window.innerWidth<Ig),()=>e.removeEventListener(`change`,n)},[]),!!e}var Rg=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let r=0;r<t.length;r++)n[e.length+r]=t[r];return n},zg=(e,t)=>({classGroupId:e,validator:t}),Bg=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),Vg=`-`,Hg=[],Ug=`arbitrary..`,Wg=e=>{let t=qg(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{if(e.startsWith(`[`)&&e.endsWith(`]`))return Kg(e);let n=e.split(Vg);return Gg(n,+(n[0]===``&&n.length>1),t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=r[e],i=n[e];return t?i?Rg(i,t):t:i||Hg}return n[e]||Hg}}},Gg=(e,t,n)=>{if(e.length-t===0)return n.classGroupId;let r=e[t],i=n.nextPart.get(r);if(i){let n=Gg(e,t+1,i);if(n)return n}let a=n.validators;if(a===null)return;let o=t===0?e.join(Vg):e.slice(t).join(Vg),s=a.length;for(let e=0;e<s;e++){let t=a[e];if(t.validator(o))return t.classGroupId}},Kg=e=>e.slice(1,-1).indexOf(`:`)===-1?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(`:`),r=t.slice(0,n);return r?Ug+r:void 0})(),qg=e=>{let{theme:t,classGroups:n}=e;return Jg(n,t)},Jg=(e,t)=>{let n=Bg();for(let r in e){let i=e[r];Yg(i,n,r,t)}return n},Yg=(e,t,n,r)=>{let i=e.length;for(let a=0;a<i;a++){let i=e[a];Xg(i,t,n,r)}},Xg=(e,t,n,r)=>{if(typeof e==`string`){Zg(e,t,n);return}if(typeof e==`function`){Qg(e,t,n,r);return}$g(e,t,n,r)},Zg=(e,t,n)=>{let r=e===``?t:e_(t,e);r.classGroupId=n},Qg=(e,t,n,r)=>{if(t_(e)){Yg(e(r),t,n,r);return}t.validators===null&&(t.validators=[]),t.validators.push(zg(n,e))},$g=(e,t,n,r)=>{let i=Object.entries(e),a=i.length;for(let e=0;e<a;e++){let[a,o]=i[e];Yg(o,e_(t,a),n,r)}},e_=(e,t)=>{let n=e,r=t.split(Vg),i=r.length;for(let e=0;e<i;e++){let t=r[e],i=n.nextPart.get(t);i||(i=Bg(),n.nextPart.set(t,i)),n=i}return n},t_=e=>`isThemeGetter`in e&&e.isThemeGetter===!0,n_=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,n=Object.create(null),r=Object.create(null),i=(i,a)=>{n[i]=a,t++,t>e&&(t=0,r=n,n=Object.create(null))};return{get(e){let t=n[e];if(t!==void 0)return t;if((t=r[e])!==void 0)return i(e,t),t},set(e,t){e in n?n[e]=t:i(e,t)}}},r_=`!`,i_=`:`,a_=[],o_=(e,t,n,r,i)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:r,isExternal:i}),s_=e=>{let{prefix:t,experimentalParseClassName:n}=e,r=e=>{let t=[],n=0,r=0,i=0,a,o=e.length;for(let s=0;s<o;s++){let o=e[s];if(n===0&&r===0){if(o===i_){t.push(e.slice(i,s)),i=s+1;continue}if(o===`/`){a=s;continue}}o===`[`?n++:o===`]`?n--:o===`(`?r++:o===`)`&&r--}let s=t.length===0?e:e.slice(i),c=s,l=!1;s.endsWith(r_)?(c=s.slice(0,-1),l=!0):s.startsWith(r_)&&(c=s.slice(1),l=!0);let u=a&&a>i?a-i:void 0;return o_(t,l,c,u)};if(t){let e=t+i_,n=r;r=t=>t.startsWith(e)?n(t.slice(e.length)):o_(a_,!1,t,void 0,!0)}if(n){let e=r;r=t=>n({className:t,parseClassName:e})}return r},c_=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],r=[];for(let i=0;i<e.length;i++){let a=e[i],o=a[0]===`[`,s=t.has(a);o||s?(r.length>0&&(r.sort(),n.push(...r),r=[]),n.push(a)):r.push(a)}return r.length>0&&(r.sort(),n.push(...r)),n}},l_=e=>({cache:n_(e.cacheSize),parseClassName:s_(e),sortModifiers:c_(e),postfixLookupClassGroupIds:u_(e),...Wg(e)}),u_=e=>{let t=Object.create(null),n=e.postfixLookupClassGroups;if(n)for(let e=0;e<n.length;e++)t[n[e]]=!0;return t},d_=/\s+/,f_=(e,t)=>{let{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:i,sortModifiers:a,postfixLookupClassGroupIds:o}=t,s=[],c=e.trim().split(d_),l=``;for(let e=c.length-1;e>=0;--e){let t=c[e],{isExternal:u,modifiers:d,hasImportantModifier:f,baseClassName:p,maybePostfixModifierPosition:m}=n(t);if(u){l=t+(l.length>0?` `+l:l);continue}let h=!!m,g;if(h){g=r(p.substring(0,m));let e=g&&o[g]?r(p):void 0;e&&e!==g&&(g=e,h=!1)}else g=r(p);if(!g){if(!h){l=t+(l.length>0?` `+l:l);continue}if(g=r(p),!g){l=t+(l.length>0?` `+l:l);continue}h=!1}let _=d.length===0?``:d.length===1?d[0]:a(d).join(`:`),v=f?_+r_:_,y=v+g;if(s.indexOf(y)>-1)continue;s.push(y);let b=i(g,h);for(let e=0;e<b.length;++e){let t=b[e];s.push(v+t)}l=t+(l.length>0?` `+l:l)}return l},p_=(...e)=>{let t=0,n,r,i=``;for(;t<e.length;)(n=e[t++])&&(r=m_(n))&&(i&&(i+=` `),i+=r);return i},m_=e=>{if(typeof e==`string`)return e;let t,n=``;for(let r=0;r<e.length;r++)e[r]&&(t=m_(e[r]))&&(n&&(n+=` `),n+=t);return n},h_=(e,...t)=>{let n,r,i,a,o=o=>(n=l_(t.reduce((e,t)=>t(e),e())),r=n.cache.get,i=n.cache.set,a=s,s(o)),s=e=>{let t=r(e);if(t)return t;let a=f_(e,n);return i(e,a),a};return a=o,(...e)=>a(p_(...e))},g_=[],__=e=>{let t=t=>t[e]||g_;return t.isThemeGetter=!0,t},v_=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,y_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,b_=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,x_=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,S_=/\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$/,C_=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,w_=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,T_=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,E_=e=>b_.test(e),D_=e=>!!e&&!Number.isNaN(Number(e)),O_=e=>!!e&&Number.isInteger(Number(e)),k_=e=>e.endsWith(`%`)&&D_(e.slice(0,-1)),A_=e=>x_.test(e),j_=()=>!0,M_=e=>S_.test(e)&&!C_.test(e),N_=()=>!1,P_=e=>w_.test(e),F_=e=>T_.test(e),I_=e=>!K(e)&&!q(e),L_=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)),R_=e=>$_(e,rv,N_),K=e=>v_.test(e),z_=e=>$_(e,iv,M_),B_=e=>$_(e,av,D_),V_=e=>$_(e,sv,j_),H_=e=>$_(e,ov,N_),U_=e=>$_(e,tv,N_),W_=e=>$_(e,nv,F_),G_=e=>$_(e,cv,P_),q=e=>y_.test(e),K_=e=>ev(e,iv),q_=e=>ev(e,ov),J_=e=>ev(e,tv),Y_=e=>ev(e,rv),X_=e=>ev(e,nv),Z_=e=>ev(e,cv,!0),Q_=e=>ev(e,sv,!0),$_=(e,t,n)=>{let r=v_.exec(e);return r?r[1]?t(r[1]):n(r[2]):!1},ev=(e,t,n=!1)=>{let r=y_.exec(e);return r?r[1]?t(r[1]):n:!1},tv=e=>e===`position`||e===`percentage`,nv=e=>e===`image`||e===`url`,rv=e=>e===`length`||e===`size`||e===`bg-size`,iv=e=>e===`length`,av=e=>e===`number`,ov=e=>e===`family-name`,sv=e=>e===`number`||e===`weight`,cv=e=>e===`shadow`,lv=h_(()=>{let e=__(`color`),t=__(`font`),n=__(`text`),r=__(`font-weight`),i=__(`tracking`),a=__(`leading`),o=__(`breakpoint`),s=__(`container`),c=__(`spacing`),l=__(`radius`),u=__(`shadow`),d=__(`inset-shadow`),f=__(`text-shadow`),p=__(`drop-shadow`),m=__(`blur`),h=__(`perspective`),g=__(`aspect`),_=__(`ease`),v=__(`animate`),y=()=>[`auto`,`avoid`,`all`,`avoid-page`,`page`,`left`,`right`,`column`],b=()=>[`center`,`top`,`bottom`,`left`,`right`,`top-left`,`left-top`,`top-right`,`right-top`,`bottom-right`,`right-bottom`,`bottom-left`,`left-bottom`],x=()=>[...b(),q,K],S=()=>[`auto`,`hidden`,`clip`,`visible`,`scroll`],C=()=>[`auto`,`contain`,`none`],w=()=>[q,K,c],T=()=>[E_,`full`,`auto`,...w()],E=()=>[O_,`none`,`subgrid`,q,K],D=()=>[`auto`,{span:[`full`,O_,q,K]},O_,q,K],O=()=>[O_,`auto`,q,K],k=()=>[`auto`,`min`,`max`,`fr`,q,K],A=()=>[`start`,`end`,`center`,`between`,`around`,`evenly`,`stretch`,`baseline`,`center-safe`,`end-safe`],j=()=>[`start`,`end`,`center`,`stretch`,`center-safe`,`end-safe`],M=()=>[`auto`,...w()],N=()=>[E_,`auto`,`full`,`dvw`,`dvh`,`lvw`,`lvh`,`svw`,`svh`,`min`,`max`,`fit`,...w()],P=()=>[E_,`screen`,`full`,`dvw`,`lvw`,`svw`,`min`,`max`,`fit`,...w()],F=()=>[E_,`screen`,`full`,`lh`,`dvh`,`lvh`,`svh`,`min`,`max`,`fit`,...w()],I=()=>[e,q,K],L=()=>[...b(),J_,U_,{position:[q,K]}],R=()=>[`no-repeat`,{repeat:[``,`x`,`y`,`space`,`round`]}],ee=()=>[`auto`,`cover`,`contain`,Y_,R_,{size:[q,K]}],te=()=>[k_,K_,z_],z=()=>[``,`none`,`full`,l,q,K],B=()=>[``,D_,K_,z_],V=()=>[`solid`,`dashed`,`dotted`,`double`],ne=()=>[`normal`,`multiply`,`screen`,`overlay`,`darken`,`lighten`,`color-dodge`,`color-burn`,`hard-light`,`soft-light`,`difference`,`exclusion`,`hue`,`saturation`,`color`,`luminosity`],re=()=>[D_,k_,J_,U_],ie=()=>[``,`none`,m,q,K],ae=()=>[`none`,D_,q,K],oe=()=>[`none`,D_,q,K],se=()=>[D_,q,K],ce=()=>[E_,`full`,...w()];return{cacheSize:500,theme:{animate:[`spin`,`ping`,`pulse`,`bounce`],aspect:[`video`],blur:[A_],breakpoint:[A_],color:[j_],container:[A_],"drop-shadow":[A_],ease:[`in`,`out`,`in-out`],font:[I_],"font-weight":[`thin`,`extralight`,`light`,`normal`,`medium`,`semibold`,`bold`,`extrabold`,`black`],"inset-shadow":[A_],leading:[`none`,`tight`,`snug`,`normal`,`relaxed`,`loose`],perspective:[`dramatic`,`near`,`normal`,`midrange`,`distant`,`none`],radius:[A_],shadow:[A_],spacing:[`px`,D_],text:[A_],"text-shadow":[A_],tracking:[`tighter`,`tight`,`normal`,`wide`,`wider`,`widest`]},classGroups:{aspect:[{aspect:[`auto`,`square`,E_,K,q,g]}],container:[`container`],"container-type":[{"@container":[``,`normal`,`size`,q,K]}],"container-named":[L_],columns:[{columns:[D_,K,q,s]}],"break-after":[{"break-after":y()}],"break-before":[{"break-before":y()}],"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:x()}],overflow:[{overflow:S()}],"overflow-x":[{"overflow-x":S()}],"overflow-y":[{"overflow-y":S()}],overscroll:[{overscroll:C()}],"overscroll-x":[{"overscroll-x":C()}],"overscroll-y":[{"overscroll-y":C()}],position:[`static`,`fixed`,`absolute`,`relative`,`sticky`],inset:[{inset:T()}],"inset-x":[{"inset-x":T()}],"inset-y":[{"inset-y":T()}],start:[{"inset-s":T(),start:T()}],end:[{"inset-e":T(),end:T()}],"inset-bs":[{"inset-bs":T()}],"inset-be":[{"inset-be":T()}],top:[{top:T()}],right:[{right:T()}],bottom:[{bottom:T()}],left:[{left:T()}],visibility:[`visible`,`invisible`,`collapse`],z:[{z:[O_,`auto`,q,K]}],basis:[{basis:[E_,`full`,`auto`,s,...w()]}],"flex-direction":[{flex:[`row`,`row-reverse`,`col`,`col-reverse`]}],"flex-wrap":[{flex:[`nowrap`,`wrap`,`wrap-reverse`]}],flex:[{flex:[D_,E_,`auto`,`initial`,`none`,K]}],grow:[{grow:[``,D_,q,K]}],shrink:[{shrink:[``,D_,q,K]}],order:[{order:[O_,`first`,`last`,`none`,q,K]}],"grid-cols":[{"grid-cols":E()}],"col-start-end":[{col:D()}],"col-start":[{"col-start":O()}],"col-end":[{"col-end":O()}],"grid-rows":[{"grid-rows":E()}],"row-start-end":[{row:D()}],"row-start":[{"row-start":O()}],"row-end":[{"row-end":O()}],"grid-flow":[{"grid-flow":[`row`,`col`,`dense`,`row-dense`,`col-dense`]}],"auto-cols":[{"auto-cols":k()}],"auto-rows":[{"auto-rows":k()}],gap:[{gap:w()}],"gap-x":[{"gap-x":w()}],"gap-y":[{"gap-y":w()}],"justify-content":[{justify:[...A(),`normal`]}],"justify-items":[{"justify-items":[...j(),`normal`]}],"justify-self":[{"justify-self":[`auto`,...j()]}],"align-content":[{content:[`normal`,...A()]}],"align-items":[{items:[...j(),{baseline:[``,`last`]}]}],"align-self":[{self:[`auto`,...j(),{baseline:[``,`last`]}]}],"place-content":[{"place-content":A()}],"place-items":[{"place-items":[...j(),`baseline`]}],"place-self":[{"place-self":[`auto`,...j()]}],p:[{p:w()}],px:[{px:w()}],py:[{py:w()}],ps:[{ps:w()}],pe:[{pe:w()}],pbs:[{pbs:w()}],pbe:[{pbe:w()}],pt:[{pt:w()}],pr:[{pr:w()}],pb:[{pb:w()}],pl:[{pl:w()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mbs:[{mbs:M()}],mbe:[{mbe:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":w()}],"space-x-reverse":[`space-x-reverse`],"space-y":[{"space-y":w()}],"space-y-reverse":[`space-y-reverse`],size:[{size:N()}],"inline-size":[{inline:[`auto`,...P()]}],"min-inline-size":[{"min-inline":[`auto`,...P()]}],"max-inline-size":[{"max-inline":[`none`,...P()]}],"block-size":[{block:[`auto`,...F()]}],"min-block-size":[{"min-block":[`auto`,...F()]}],"max-block-size":[{"max-block":[`none`,...F()]}],w:[{w:[s,`screen`,...N()]}],"min-w":[{"min-w":[s,`screen`,`none`,...N()]}],"max-w":[{"max-w":[s,`screen`,`none`,`prose`,{screen:[o]},...N()]}],h:[{h:[`screen`,`lh`,...N()]}],"min-h":[{"min-h":[`screen`,`lh`,`none`,...N()]}],"max-h":[{"max-h":[`screen`,`lh`,...N()]}],"font-size":[{text:[`base`,n,K_,z_]}],"font-smoothing":[`antialiased`,`subpixel-antialiased`],"font-style":[`italic`,`not-italic`],"font-weight":[{font:[r,Q_,V_]}],"font-stretch":[{"font-stretch":[`ultra-condensed`,`extra-condensed`,`condensed`,`semi-condensed`,`normal`,`semi-expanded`,`expanded`,`extra-expanded`,`ultra-expanded`,k_,K]}],"font-family":[{font:[q_,H_,t]}],"font-features":[{"font-features":[K]}],"fvn-normal":[`normal-nums`],"fvn-ordinal":[`ordinal`],"fvn-slashed-zero":[`slashed-zero`],"fvn-figure":[`lining-nums`,`oldstyle-nums`],"fvn-spacing":[`proportional-nums`,`tabular-nums`],"fvn-fraction":[`diagonal-fractions`,`stacked-fractions`],tracking:[{tracking:[i,q,K]}],"line-clamp":[{"line-clamp":[D_,`none`,q,B_]}],leading:[{leading:[a,...w()]}],"list-image":[{"list-image":[`none`,q,K]}],"list-style-position":[{list:[`inside`,`outside`]}],"list-style-type":[{list:[`disc`,`decimal`,`none`,q,K]}],"text-alignment":[{text:[`left`,`center`,`right`,`justify`,`start`,`end`]}],"placeholder-color":[{placeholder:I()}],"text-color":[{text:I()}],"text-decoration":[`underline`,`overline`,`line-through`,`no-underline`],"text-decoration-style":[{decoration:[...V(),`wavy`]}],"text-decoration-thickness":[{decoration:[D_,`from-font`,`auto`,q,z_]}],"text-decoration-color":[{decoration:I()}],"underline-offset":[{"underline-offset":[D_,`auto`,q,K]}],"text-transform":[`uppercase`,`lowercase`,`capitalize`,`normal-case`],"text-overflow":[`truncate`,`text-ellipsis`,`text-clip`],"text-wrap":[{text:[`wrap`,`nowrap`,`balance`,`pretty`]}],indent:[{indent:w()}],"tab-size":[{tab:[O_,q,K]}],"vertical-align":[{align:[`baseline`,`top`,`middle`,`bottom`,`text-top`,`text-bottom`,`sub`,`super`,q,K]}],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,K]}],"bg-attachment":[{bg:[`fixed`,`local`,`scroll`]}],"bg-clip":[{"bg-clip":[`border`,`padding`,`content`,`text`]}],"bg-origin":[{"bg-origin":[`border`,`padding`,`content`]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:R()}],"bg-size":[{bg:ee()}],"bg-image":[{bg:[`none`,{linear:[{to:[`t`,`tr`,`r`,`br`,`b`,`bl`,`l`,`tl`]},O_,q,K],radial:[``,q,K],conic:[O_,q,K]},X_,W_]}],"bg-color":[{bg:I()}],"gradient-from-pos":[{from:te()}],"gradient-via-pos":[{via:te()}],"gradient-to-pos":[{to:te()}],"gradient-from":[{from:I()}],"gradient-via":[{via:I()}],"gradient-to":[{to:I()}],rounded:[{rounded:z()}],"rounded-s":[{"rounded-s":z()}],"rounded-e":[{"rounded-e":z()}],"rounded-t":[{"rounded-t":z()}],"rounded-r":[{"rounded-r":z()}],"rounded-b":[{"rounded-b":z()}],"rounded-l":[{"rounded-l":z()}],"rounded-ss":[{"rounded-ss":z()}],"rounded-se":[{"rounded-se":z()}],"rounded-ee":[{"rounded-ee":z()}],"rounded-es":[{"rounded-es":z()}],"rounded-tl":[{"rounded-tl":z()}],"rounded-tr":[{"rounded-tr":z()}],"rounded-br":[{"rounded-br":z()}],"rounded-bl":[{"rounded-bl":z()}],"border-w":[{border:B()}],"border-w-x":[{"border-x":B()}],"border-w-y":[{"border-y":B()}],"border-w-s":[{"border-s":B()}],"border-w-e":[{"border-e":B()}],"border-w-bs":[{"border-bs":B()}],"border-w-be":[{"border-be":B()}],"border-w-t":[{"border-t":B()}],"border-w-r":[{"border-r":B()}],"border-w-b":[{"border-b":B()}],"border-w-l":[{"border-l":B()}],"divide-x":[{"divide-x":B()}],"divide-x-reverse":[`divide-x-reverse`],"divide-y":[{"divide-y":B()}],"divide-y-reverse":[`divide-y-reverse`],"border-style":[{border:[...V(),`hidden`,`none`]}],"divide-style":[{divide:[...V(),`hidden`,`none`]}],"border-color":[{border:I()}],"border-color-x":[{"border-x":I()}],"border-color-y":[{"border-y":I()}],"border-color-s":[{"border-s":I()}],"border-color-e":[{"border-e":I()}],"border-color-bs":[{"border-bs":I()}],"border-color-be":[{"border-be":I()}],"border-color-t":[{"border-t":I()}],"border-color-r":[{"border-r":I()}],"border-color-b":[{"border-b":I()}],"border-color-l":[{"border-l":I()}],"divide-color":[{divide:I()}],"outline-style":[{outline:[...V(),`none`,`hidden`]}],"outline-offset":[{"outline-offset":[D_,q,K]}],"outline-w":[{outline:[``,D_,K_,z_]}],"outline-color":[{outline:I()}],shadow:[{shadow:[``,`none`,u,Z_,G_]}],"shadow-color":[{shadow:I()}],"inset-shadow":[{"inset-shadow":[`none`,d,Z_,G_]}],"inset-shadow-color":[{"inset-shadow":I()}],"ring-w":[{ring:B()}],"ring-w-inset":[`ring-inset`],"ring-color":[{ring:I()}],"ring-offset-w":[{"ring-offset":[D_,z_]}],"ring-offset-color":[{"ring-offset":I()}],"inset-ring-w":[{"inset-ring":B()}],"inset-ring-color":[{"inset-ring":I()}],"text-shadow":[{"text-shadow":[`none`,f,Z_,G_]}],"text-shadow-color":[{"text-shadow":I()}],opacity:[{opacity:[D_,q,K]}],"mix-blend":[{"mix-blend":[...ne(),`plus-darker`,`plus-lighter`]}],"bg-blend":[{"bg-blend":ne()}],"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":[D_]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":I()}],"mask-image-linear-to-color":[{"mask-linear-to":I()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":I()}],"mask-image-t-to-color":[{"mask-t-to":I()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":I()}],"mask-image-r-to-color":[{"mask-r-to":I()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":I()}],"mask-image-b-to-color":[{"mask-b-to":I()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":I()}],"mask-image-l-to-color":[{"mask-l-to":I()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":I()}],"mask-image-x-to-color":[{"mask-x-to":I()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":I()}],"mask-image-y-to-color":[{"mask-y-to":I()}],"mask-image-radial":[{"mask-radial":[q,K]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":I()}],"mask-image-radial-to-color":[{"mask-radial-to":I()}],"mask-image-radial-shape":[{"mask-radial":[`circle`,`ellipse`]}],"mask-image-radial-size":[{"mask-radial":[{closest:[`side`,`corner`],farthest:[`side`,`corner`]}]}],"mask-image-radial-pos":[{"mask-radial-at":b()}],"mask-image-conic-pos":[{"mask-conic":[D_]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":I()}],"mask-image-conic-to-color":[{"mask-conic-to":I()}],"mask-mode":[{mask:[`alpha`,`luminance`,`match`]}],"mask-origin":[{"mask-origin":[`border`,`padding`,`content`,`fill`,`stroke`,`view`]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:R()}],"mask-size":[{mask:ee()}],"mask-type":[{"mask-type":[`alpha`,`luminance`]}],"mask-image":[{mask:[`none`,q,K]}],filter:[{filter:[``,`none`,q,K]}],blur:[{blur:ie()}],brightness:[{brightness:[D_,q,K]}],contrast:[{contrast:[D_,q,K]}],"drop-shadow":[{"drop-shadow":[``,`none`,p,Z_,G_]}],"drop-shadow-color":[{"drop-shadow":I()}],grayscale:[{grayscale:[``,D_,q,K]}],"hue-rotate":[{"hue-rotate":[D_,q,K]}],invert:[{invert:[``,D_,q,K]}],saturate:[{saturate:[D_,q,K]}],sepia:[{sepia:[``,D_,q,K]}],"backdrop-filter":[{"backdrop-filter":[``,`none`,q,K]}],"backdrop-blur":[{"backdrop-blur":ie()}],"backdrop-brightness":[{"backdrop-brightness":[D_,q,K]}],"backdrop-contrast":[{"backdrop-contrast":[D_,q,K]}],"backdrop-grayscale":[{"backdrop-grayscale":[``,D_,q,K]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[D_,q,K]}],"backdrop-invert":[{"backdrop-invert":[``,D_,q,K]}],"backdrop-opacity":[{"backdrop-opacity":[D_,q,K]}],"backdrop-saturate":[{"backdrop-saturate":[D_,q,K]}],"backdrop-sepia":[{"backdrop-sepia":[``,D_,q,K]}],"border-collapse":[{border:[`collapse`,`separate`]}],"border-spacing":[{"border-spacing":w()}],"border-spacing-x":[{"border-spacing-x":w()}],"border-spacing-y":[{"border-spacing-y":w()}],"table-layout":[{table:[`auto`,`fixed`]}],caption:[{caption:[`top`,`bottom`]}],transition:[{transition:[``,`all`,`colors`,`opacity`,`shadow`,`transform`,`none`,q,K]}],"transition-behavior":[{transition:[`normal`,`discrete`]}],duration:[{duration:[D_,`initial`,q,K]}],ease:[{ease:[`linear`,`initial`,_,q,K]}],delay:[{delay:[D_,q,K]}],animate:[{animate:[`none`,v,q,K]}],backface:[{backface:[`hidden`,`visible`]}],perspective:[{perspective:[h,q,K]}],"perspective-origin":[{"perspective-origin":x()}],rotate:[{rotate:ae()}],"rotate-x":[{"rotate-x":ae()}],"rotate-y":[{"rotate-y":ae()}],"rotate-z":[{"rotate-z":ae()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":[`scale-3d`],skew:[{skew:se()}],"skew-x":[{"skew-x":se()}],"skew-y":[{"skew-y":se()}],transform:[{transform:[q,K,``,`none`,`gpu`,`cpu`]}],"transform-origin":[{origin:x()}],"transform-style":[{transform:[`3d`,`flat`]}],translate:[{translate:ce()}],"translate-x":[{"translate-x":ce()}],"translate-y":[{"translate-y":ce()}],"translate-z":[{"translate-z":ce()}],"translate-none":[`translate-none`],zoom:[{zoom:[O_,q,K]}],accent:[{accent:I()}],appearance:[{appearance:[`none`,`auto`]}],"caret-color":[{caret:I()}],"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,K]}],"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":I()}],"scrollbar-track-color":[{"scrollbar-track":I()}],"scrollbar-gutter":[{"scrollbar-gutter":[`auto`,`stable`,`both`]}],"scrollbar-w":[{scrollbar:[`auto`,`thin`,`none`]}],"scroll-m":[{"scroll-m":w()}],"scroll-mx":[{"scroll-mx":w()}],"scroll-my":[{"scroll-my":w()}],"scroll-ms":[{"scroll-ms":w()}],"scroll-me":[{"scroll-me":w()}],"scroll-mbs":[{"scroll-mbs":w()}],"scroll-mbe":[{"scroll-mbe":w()}],"scroll-mt":[{"scroll-mt":w()}],"scroll-mr":[{"scroll-mr":w()}],"scroll-mb":[{"scroll-mb":w()}],"scroll-ml":[{"scroll-ml":w()}],"scroll-p":[{"scroll-p":w()}],"scroll-px":[{"scroll-px":w()}],"scroll-py":[{"scroll-py":w()}],"scroll-ps":[{"scroll-ps":w()}],"scroll-pe":[{"scroll-pe":w()}],"scroll-pbs":[{"scroll-pbs":w()}],"scroll-pbe":[{"scroll-pbe":w()}],"scroll-pt":[{"scroll-pt":w()}],"scroll-pr":[{"scroll-pr":w()}],"scroll-pb":[{"scroll-pb":w()}],"scroll-pl":[{"scroll-pl":w()}],"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,K]}],fill:[{fill:[`none`,...I()]}],"stroke-w":[{stroke:[D_,K_,z_,B_]}],stroke:[{stroke:[`none`,...I()]}],"forced-color-adjust":[{"forced-color-adjust":[`auto`,`none`]}]},conflictingClassGroups:{"container-named":[`container-type`],overflow:[`overflow-x`,`overflow-y`],overscroll:[`overscroll-x`,`overscroll-y`],inset:[`inset-x`,`inset-y`,`inset-bs`,`inset-be`,`start`,`end`,`top`,`right`,`bottom`,`left`],"inset-x":[`right`,`left`],"inset-y":[`top`,`bottom`],flex:[`basis`,`grow`,`shrink`],gap:[`gap-x`,`gap-y`],p:[`px`,`py`,`ps`,`pe`,`pbs`,`pbe`,`pt`,`pr`,`pb`,`pl`],px:[`pr`,`pl`],py:[`pt`,`pb`],m:[`mx`,`my`,`ms`,`me`,`mbs`,`mbe`,`mt`,`mr`,`mb`,`ml`],mx:[`mr`,`ml`],my:[`mt`,`mb`],size:[`w`,`h`],"font-size":[`leading`],"fvn-normal":[`fvn-ordinal`,`fvn-slashed-zero`,`fvn-figure`,`fvn-spacing`,`fvn-fraction`],"fvn-ordinal":[`fvn-normal`],"fvn-slashed-zero":[`fvn-normal`],"fvn-figure":[`fvn-normal`],"fvn-spacing":[`fvn-normal`],"fvn-fraction":[`fvn-normal`],"line-clamp":[`display`,`overflow`],rounded:[`rounded-s`,`rounded-e`,`rounded-t`,`rounded-r`,`rounded-b`,`rounded-l`,`rounded-ss`,`rounded-se`,`rounded-ee`,`rounded-es`,`rounded-tl`,`rounded-tr`,`rounded-br`,`rounded-bl`],"rounded-s":[`rounded-ss`,`rounded-es`],"rounded-e":[`rounded-se`,`rounded-ee`],"rounded-t":[`rounded-tl`,`rounded-tr`],"rounded-r":[`rounded-tr`,`rounded-br`],"rounded-b":[`rounded-br`,`rounded-bl`],"rounded-l":[`rounded-tl`,`rounded-bl`],"border-spacing":[`border-spacing-x`,`border-spacing-y`],"border-w":[`border-w-x`,`border-w-y`,`border-w-s`,`border-w-e`,`border-w-bs`,`border-w-be`,`border-w-t`,`border-w-r`,`border-w-b`,`border-w-l`],"border-w-x":[`border-w-r`,`border-w-l`],"border-w-y":[`border-w-t`,`border-w-b`],"border-color":[`border-color-x`,`border-color-y`,`border-color-s`,`border-color-e`,`border-color-bs`,`border-color-be`,`border-color-t`,`border-color-r`,`border-color-b`,`border-color-l`],"border-color-x":[`border-color-r`,`border-color-l`],"border-color-y":[`border-color-t`,`border-color-b`],translate:[`translate-x`,`translate-y`,`translate-none`],"translate-none":[`translate`,`translate-x`,`translate-y`,`translate-z`],"scroll-m":[`scroll-mx`,`scroll-my`,`scroll-ms`,`scroll-me`,`scroll-mbs`,`scroll-mbe`,`scroll-mt`,`scroll-mr`,`scroll-mb`,`scroll-ml`],"scroll-mx":[`scroll-mr`,`scroll-ml`],"scroll-my":[`scroll-mt`,`scroll-mb`],"scroll-p":[`scroll-px`,`scroll-py`,`scroll-ps`,`scroll-pe`,`scroll-pbs`,`scroll-pbe`,`scroll-pt`,`scroll-pr`,`scroll-pb`,`scroll-pl`],"scroll-px":[`scroll-pr`,`scroll-pl`],"scroll-py":[`scroll-pt`,`scroll-pb`],touch:[`touch-x`,`touch-y`,`touch-pz`],"touch-x":[`touch`],"touch-y":[`touch`],"touch-pz":[`touch`]},conflictingClassGroupModifiers:{"font-size":[`leading`]},postfixLookupClassGroups:[`container-type`],orderSensitiveModifiers:[`*`,`**`,`after`,`backdrop`,`before`,`details-content`,`file`,`first-letter`,`first-line`,`marker`,`placeholder`,`selection`]}});function J(...e){return lv(nr(e))}var uv=ar(`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]:pe-2 has-data-[icon=inline-start]:ps-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]:pe-1.5 has-data-[icon=inline-start]:ps-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]:pe-1.5 has-data-[icon=inline-start]:ps-1.5 [&_svg:not([class*='size-'])]:size-3.5`,lg:`h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pe-2 has-data-[icon=inline-start]:ps-2`,icon:`size-8`,"icon-xs":`size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3`,"icon-sm":`size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg`,"icon-lg":`size-9`}},defaultVariants:{variant:`default`,size:`default`}});function Y({className:e,variant:t=`default`,size:n=`default`,asChild:r=!1,...i}){let a=r?mr:`button`;return(0,U.jsx)(a,{"data-slot":`button`,"data-variant":t,"data-size":n,className:J(uv({variant:t,size:n,className:e})),...i})}function dv({className:e,type:t,...n}){return(0,U.jsx)(`input`,{type:t,"data-slot":`input`,className:J(`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/70 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),...n})}function fv({className:e,orientation:t=`horizontal`,decorative:n=!0,...r}){return(0,U.jsx)(kh,{"data-slot":`separator`,decorative:n,orientation:t,className:J(`shrink-0 bg-border data-horizontal:h-px data-horizontal:w-full data-vertical:w-px data-vertical:self-stretch`,e),...r})}function pv({...e}){return(0,U.jsx)(ms,{"data-slot":`sheet`,...e})}function mv({...e}){return(0,U.jsx)(gs,{"data-slot":`sheet-trigger`,...e})}function hv({...e}){return(0,U.jsx)(bs,{"data-slot":`sheet-portal`,...e})}function gv({className:e,...t}){return(0,U.jsx)(Ss,{"data-slot":`sheet-overlay`,className:J(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function _v({className:e,children:t,side:n=`right`,showCloseButton:r=!0,closeLabel:i,...a}){return(0,U.jsxs)(hv,{children:[(0,U.jsx)(gv,{}),(0,U.jsxs)(Es,{"data-slot":`sheet-content`,"data-side":n,className:J(`fixed z-50 flex flex-col gap-4 bg-popover bg-clip-padding text-sm text-popover-foreground shadow-lg transition duration-200 ease-in-out data-[side=bottom]:inset-x-0 data-[side=bottom]:bottom-0 data-[side=bottom]:h-auto data-[side=bottom]:border-t data-[side=left]:inset-y-0 data-[side=left]:left-0 data-[side=left]:h-full data-[side=left]:w-3/4 data-[side=left]:border-e data-[side=right]:inset-y-0 data-[side=right]:right-0 data-[side=right]:h-full data-[side=right]:w-3/4 data-[side=right]:border-s data-[side=top]:inset-x-0 data-[side=top]:top-0 data-[side=top]:h-auto data-[side=top]:border-b data-[side=left]:sm:max-w-sm data-[side=right]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-[side=bottom]:data-open:slide-in-from-bottom-10 data-[side=left]:data-open:slide-in-from-left-10 data-[side=right]:data-open:slide-in-from-right-10 data-[side=top]:data-open:slide-in-from-top-10 data-closed:animate-out data-closed:fade-out-0 data-[side=bottom]:data-closed:slide-out-to-bottom-10 data-[side=left]:data-closed:slide-out-to-left-10 data-[side=right]:data-closed:slide-out-to-right-10 data-[side=top]:data-closed:slide-out-to-top-10`,e),...a,children:[t,r&&(0,U.jsx)(Fs,{"data-slot":`sheet-close`,asChild:!0,children:(0,U.jsxs)(Y,{variant:`ghost`,className:`absolute top-3 end-3`,size:`icon-sm`,children:[(0,U.jsx)(Qn,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:i})]})})]})]})}function vv({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sheet-header`,className:J(`flex flex-col gap-0.5 p-4`,e),...t})}function yv({className:e,...t}){return(0,U.jsx)(js,{"data-slot":`sheet-title`,className:J(`font-heading text-base font-medium text-foreground`,e),...t})}function bv({className:e,...t}){return(0,U.jsx)(Ns,{"data-slot":`sheet-description`,className:J(`text-sm text-muted-foreground`,e),...t})}function xv({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`skeleton`,className:J(`animate-pulse rounded-md bg-muted`,e),...t})}function Sv({delayDuration:e=0,...t}){return(0,U.jsx)(Ag,{"data-slot":`tooltip-provider`,delayDuration:e,...t})}function Cv({...e}){return(0,U.jsx)(jg,{"data-slot":`tooltip`,...e})}function wv({...e}){return(0,U.jsx)(Mg,{"data-slot":`tooltip-trigger`,...e})}function Tv({className:e,sideOffset:t=0,children:n,...r}){return(0,U.jsx)(Ng,{children:(0,U.jsxs)(Pg,{"data-slot":`tooltip-content`,sideOffset:t,className:J(`z-50 inline-flex w-fit max-w-xs origin-(--radix-tooltip-content-transform-origin) items-center gap-1.5 rounded-md bg-foreground px-3 py-1.5 text-xs text-background has-data-[slot=kbd]:pe-1.5 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-[slot=kbd]:relative **:data-[slot=kbd]:isolate **:data-[slot=kbd]:z-50 **:data-[slot=kbd]:rounded-sm data-[state=delayed-open]:animate-in data-[state=delayed-open]:fade-in-0 data-[state=delayed-open]:zoom-in-95 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:[n,(0,U.jsx)(Fg,{className:`z-50 fill-foreground`})]})})}var Ev=`sidebar_state`,Dv=604800,Ov=`16rem`,kv=`18rem`,Av=`3rem`,jv=`b`,Mv=H.createContext(null);function Nv(){let e=H.useContext(Mv);if(!e)throw Error(`useSidebar must be used within a SidebarProvider.`);return e}function Pv({defaultOpen:e=!0,open:t,onOpenChange:n,className:r,style:i,children:a,...o}){let s=Lg(),[c,l]=H.useState(!1),[u,d]=H.useState(e),f=t??u,p=H.useCallback(e=>{let t=typeof e==`function`?e(f):e;n?n(t):d(t),document.cookie=`${Ev}=${t}; path=/; max-age=${Dv}`},[n,f]),m=H.useCallback(()=>s?l(e=>!e):p(e=>!e),[s,p,l]);H.useEffect(()=>{let e=e=>{e.key===jv&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),m())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[m]);let h=f?`expanded`:`collapsed`,g=H.useMemo(()=>({state:h,open:f,setOpen:p,isMobile:s,openMobile:c,setOpenMobile:l,toggleSidebar:m}),[h,f,p,s,c,l,m]);return(0,U.jsx)(Mv.Provider,{value:g,children:(0,U.jsx)(`div`,{"data-slot":`sidebar-wrapper`,style:{"--sidebar-width":Ov,"--sidebar-width-icon":Av,...i},className:J(`group/sidebar-wrapper flex min-h-svh w-full has-data-[variant=inset]:bg-sidebar`,r),...o,children:a})})}function Fv({side:e=`left`,variant:t=`sidebar`,collapsible:n=`offcanvas`,className:r,children:i,dir:a,mobileTitle:o,mobileDescription:s,closeLabel:c,...l}){let{isMobile:u,state:d,openMobile:f,setOpenMobile:p}=Nv();return n===`none`?(0,U.jsx)(`div`,{"data-slot":`sidebar`,className:J(`flex h-full w-(--sidebar-width) flex-col bg-sidebar text-sidebar-foreground`,r),...l,children:i}):u?(0,U.jsx)(pv,{open:f,onOpenChange:p,...l,children:(0,U.jsxs)(_v,{dir:a,"data-sidebar":`sidebar`,"data-slot":`sidebar`,"data-mobile":`true`,className:`w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden`,style:{"--sidebar-width":kv},side:e,closeLabel:c,children:[(0,U.jsxs)(vv,{className:`sr-only`,children:[(0,U.jsx)(yv,{children:o}),(0,U.jsx)(bv,{children:s})]}),(0,U.jsx)(`div`,{className:`flex h-full w-full flex-col`,children:i})]})}):(0,U.jsxs)(`div`,{className:`group peer hidden text-sidebar-foreground md:block`,"data-state":d,"data-collapsible":d===`collapsed`?n:``,"data-variant":t,"data-side":e,"data-slot":`sidebar`,children:[(0,U.jsx)(`div`,{"data-slot":`sidebar-gap`,className:J(`relative w-(--sidebar-width) bg-transparent transition-[width] duration-200 ease-linear`,`group-data-[collapsible=offcanvas]:w-0`,`group-data-[side=right]:rotate-180`,t===`floating`||t===`inset`?`group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4)))]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon)`)}),(0,U.jsx)(`div`,{"data-slot":`sidebar-container`,"data-side":e,className:J(`fixed inset-y-0 z-10 hidden h-svh w-(--sidebar-width) transition-[left,right,width] duration-200 ease-linear data-[side=left]:left-0 data-[side=left]:group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)] data-[side=right]:right-0 data-[side=right]:group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)] md:flex`,t===`floating`||t===`inset`?`p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+(--spacing(4))+2px)]`:`group-data-[collapsible=icon]:w-(--sidebar-width-icon) group-data-[side=left]:border-e group-data-[side=right]:border-s`,r),...l,children:(0,U.jsx)(`div`,{"data-sidebar":`sidebar`,"data-slot":`sidebar-inner`,className:`flex size-full flex-col bg-sidebar group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:shadow-sm group-data-[variant=floating]:ring-1 group-data-[variant=floating]:ring-sidebar-border`,children:i})})]})}function Iv({className:e,onClick:t,"aria-label":n,...r}){let{toggleSidebar:i}=Nv();return(0,U.jsx)(Y,{"data-sidebar":`trigger`,"data-slot":`sidebar-trigger`,variant:`ghost`,size:`icon-sm`,"aria-label":n,className:J(e),onClick:e=>{t?.(e),i()},...r,children:(0,U.jsx)(xn,{className:`rtl:rotate-180`})})}function Lv({className:e,"aria-label":t,...n}){let{toggleSidebar:r}=Nv();return(0,U.jsx)(`button`,{"data-sidebar":`rail`,"data-slot":`sidebar-rail`,"aria-label":t,tabIndex:-1,onClick:r,title:t,className:J(`absolute inset-y-0 z-20 hidden w-4 transition-all ease-linear group-data-[side=left]:-right-4 group-data-[side=right]:left-0 after:absolute after:inset-y-0 after:start-1/2 after:w-[2px] hover:after:bg-sidebar-border sm:flex ltr:-translate-x-1/2 rtl:-translate-x-1/2`,`in-data-[side=left]:cursor-w-resize rtl:in-data-[side=left]:cursor-e-resize in-data-[side=right]:cursor-e-resize rtl:in-data-[side=right]:cursor-w-resize`,`[[data-side=left][data-state=collapsed]_&]:cursor-e-resize rtl:[[data-side=left][data-state=collapsed]_&]:cursor-w-resize [[data-side=right][data-state=collapsed]_&]:cursor-w-resize rtl:[[data-side=right][data-state=collapsed]_&]:cursor-e-resize`,`group-data-[collapsible=offcanvas]:translate-x-0 rtl:group-data-[collapsible=offcanvas]:-translate-x-0 group-data-[collapsible=offcanvas]:after:start-full hover:group-data-[collapsible=offcanvas]:bg-sidebar`,`[[data-side=left][data-collapsible=offcanvas]_&]:-end-2`,`[[data-side=right][data-collapsible=offcanvas]_&]:-start-2`,e),...n})}function Rv({className:e,...t}){return(0,U.jsx)(`main`,{"data-slot":`sidebar-inset`,className:J(`relative flex w-full flex-1 flex-col bg-background md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ms-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ms-2`,e),...t})}function zv({className:e,...t}){return(0,U.jsx)(dv,{"data-slot":`sidebar-input`,"data-sidebar":`input`,className:J(`h-8 w-full bg-background shadow-none`,e),...t})}function Bv({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-header`,"data-sidebar":`header`,className:J(`flex flex-col gap-2 p-2`,e),...t})}function Vv({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-footer`,"data-sidebar":`footer`,className:J(`flex flex-col gap-2 p-2`,e),...t})}function Hv({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-content`,"data-sidebar":`content`,className:J(`no-scrollbar flex min-h-0 flex-1 flex-col gap-0 overflow-auto group-data-[collapsible=icon]:overflow-hidden`,e),...t})}function Uv({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`sidebar-group`,"data-sidebar":`group`,className:J(`relative flex w-full min-w-0 flex-col p-2`,e),...t})}function Wv({className:e,asChild:t=!1,...n}){let r=t?mr:`div`;return(0,U.jsx)(r,{"data-slot":`sidebar-group-label`,"data-sidebar":`group-label`,className:J(`flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium text-sidebar-foreground/70 ring-sidebar-ring outline-hidden transition-[margin,opacity] duration-200 ease-linear group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0 focus-visible:ring-2 [&>svg]:size-4 [&>svg]:shrink-0`,e),...n})}function Gv({className:e,...t}){return(0,U.jsx)(`ul`,{"data-slot":`sidebar-menu`,"data-sidebar":`menu`,className:J(`flex w-full min-w-0 flex-col gap-0`,e),...t})}function Kv({className:e,...t}){return(0,U.jsx)(`li`,{"data-slot":`sidebar-menu-item`,"data-sidebar":`menu-item`,className:J(`group/menu-item relative`,e),...t})}var qv=ar(`peer/menu-button group/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-start text-sm ring-sidebar-ring outline-hidden transition-[width,height,padding] group-has-data-[sidebar=menu-action]/menu-item:pe-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 Jv({asChild:e=!1,isActive:t=!1,variant:n=`default`,size:r=`default`,tooltip:i,className:a,...o}){let s=e?mr:`button`,{isMobile:c,state:l}=Nv(),u=(0,U.jsx)(s,{"data-slot":`sidebar-menu-button`,"data-sidebar":`menu-button`,"data-size":r,"data-active":t,className:J(qv({variant:n,size:r}),a),...o});return i?(typeof i==`string`&&(i={children:i}),(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:u}),(0,U.jsx)(Tv,{side:`right`,align:`center`,hidden:l!==`collapsed`||c,...i})]})):u}function Yv({className:e,...t}){return(0,U.jsx)(`ul`,{"data-slot":`sidebar-menu-sub`,"data-sidebar":`menu-sub`,className:J(`mx-3.5 flex min-w-0 translate-x-px rtl:-translate-x-px flex-col gap-1 border-s border-sidebar-border px-2.5 py-0.5 group-data-[collapsible=icon]:hidden`,e),...t})}function Xv({className:e,...t}){return(0,U.jsx)(`li`,{"data-slot":`sidebar-menu-sub-item`,"data-sidebar":`menu-sub-item`,className:J(`group/menu-sub-item relative`,e),...t})}function Zv({asChild:e=!1,size:t=`md`,isActive:n=!1,className:r,...i}){let a=e?mr:`a`;return(0,U.jsx)(a,{"data-slot":`sidebar-menu-sub-button`,"data-sidebar":`menu-sub-button`,"data-size":t,"data-active":n,className:J(`flex h-7 min-w-0 -translate-x-px rtl:translate-x-px items-center gap-2 overflow-hidden rounded-md px-2 text-sidebar-foreground ring-sidebar-ring outline-hidden group-data-[collapsible=icon]:hidden 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-[size=md]:text-sm data-[size=sm]:text-xs data-active:bg-sidebar-accent data-active:text-sidebar-accent-foreground [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0 [&>svg]:text-sidebar-accent-foreground`,r),...i})}var Qv=`/admin/api`,$v=class extends Error{status;body;constructor(e,t,n){super(e),this.status=t,this.body=n,this.name=`ApiError`}};async function ey(e,t){let n=await fetch(`${Qv}${e}`,{credentials:`same-origin`,...t,headers:{Accept:`application/json`,...t?.headers??{}}}),r=await n.text(),i=null;if(r)try{i=JSON.parse(r)}catch{i=r}if(!n.ok)throw new $v(`${n.status} ${n.statusText}`,n.status,i);return i}var ty={get:e=>ey(e),post:(e,t)=>ey(e,ny(`POST`,t)),patch:(e,t)=>ey(e,ny(`PATCH`,t)),delete:e=>ey(e,{method:`DELETE`})};function ny(e,t){return{method:e,headers:{"Content-Type":`application/json`},body:t===void 0?void 0:JSON.stringify(t)}}function ry(e,t,n){if(e==null)return null;if(typeof e==`string`)return e;if(Object.prototype.hasOwnProperty.call(e,t))return e[t];if(n&&Object.prototype.hasOwnProperty.call(e,n))return e[n];let r=Object.keys(e)[0];return r===void 0?null:e[r]}function iy(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[_-]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function ay(e,t,n,r){return ry(t?.title,n,r)??iy(e)}function oy(e,t,n){return ry(e?.description,t,n)??void 0}function sy(){return{queryKey:[`developer-console`],queryFn:()=>ty.get(`/developer-console`)}}function cy(){return{queryKey:[`auth-methods`],queryFn:async()=>{let e=await fetch(`/api/auth/methods`,{credentials:`include`});if(!e.ok)throw Error(`HTTP ${e.status}`);return(await e.json()).methods??[]},retry:!1}}function ly(){return{queryKey:[`views-manifest`],queryFn:async()=>(await ty.get(`/views-manifest`)).views}}function uy(){return{queryKey:[`operations`],queryFn:async()=>(await ty.get(`/operations`)).operations}}var dy=[`draft`,`published`,`archived`],fy=H.createContext(null);function py(){return typeof window>`u`?{pathname:`/admin`,search:``}:{pathname:window.location.pathname,search:window.location.search}}function my(e){if(typeof window>`u`)return!1;let t=new URL(e,window.location.href);return!(t.origin!==window.location.origin||!t.pathname.startsWith(`/admin`)||t.pathname.startsWith(`/admin/api/`)||t.pathname.startsWith(`/admin/auth/`))}function hy({children:e}){let[t,n]=H.useState(py),r=H.useCallback((e,t={})=>{if(typeof window>`u`)return;let r=new URL(e,window.location.href),i=`${r.pathname}${r.search}${r.hash}`,a=`${window.location.pathname}${window.location.search}${window.location.hash}`,o={pathname:r.pathname,search:r.search};i!==a&&(t.replace?window.history.replaceState(null,``,i):window.history.pushState(null,``,i)),(0,Dr.flushSync)(()=>n(o))},[]);H.useEffect(()=>{let e=()=>n(py());return window.addEventListener(`popstate`,e),()=>window.removeEventListener(`popstate`,e)},[]),H.useEffect(()=>{let e=e=>{if(e.defaultPrevented||e.button!==0||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return;let t=e.target;if(!(t instanceof Element))return;let n=t.closest(`a[href]`);n instanceof HTMLAnchorElement&&(n.target&&n.target!==`_self`||n.hasAttribute(`download`)||my(n.href)&&(e.preventDefault(),r(n.href)))};return document.addEventListener(`click`,e,{capture:!0}),()=>document.removeEventListener(`click`,e,{capture:!0})},[r]);let i=H.useMemo(()=>({location:t,navigate:r}),[t,r]);return(0,U.jsx)(fy.Provider,{value:i,children:e})}function gy(){let e=H.useContext(fy);if(!e)throw Error(`useAdminRouter must be used inside AdminRouterProvider.`);return e}function _y(){return gy().location}var vy=[{value:`en`,label:`English`,nativeLabel:`English`,htmlLang:`en`,direction:`ltr`},{value:`de`,label:`German`,nativeLabel:`Deutsch`,htmlLang:`de`,direction:`ltr`},{value:`es`,label:`Spanish`,nativeLabel:`Español`,htmlLang:`es`,direction:`ltr`},{value:`fr`,label:`French`,nativeLabel:`Français`,htmlLang:`fr`,direction:`ltr`},{value:`it`,label:`Italian`,nativeLabel:`Italiano`,htmlLang:`it`,direction:`ltr`},{value:`ja`,label:`Japanese`,nativeLabel:`日本語`,htmlLang:`ja`,direction:`ltr`},{value:`ko`,label:`Korean`,nativeLabel:`한국어`,htmlLang:`ko`,direction:`ltr`},{value:`pt-BR`,label:`Portuguese (Brazil)`,nativeLabel:`Português (BR)`,htmlLang:`pt-BR`,direction:`ltr`},{value:`ru`,label:`Russian`,nativeLabel:`Русский`,htmlLang:`ru`,direction:`ltr`},{value:`zh-CN`,label:`Simplified Chinese`,nativeLabel:`简体中文`,htmlLang:`zh-Hans-CN`,direction:`ltr`},{value:`zh-TW`,label:`Traditional Chinese`,nativeLabel:`繁體中文`,htmlLang:`zh-Hant-TW`,direction:`ltr`},{value:`id`,label:`Indonesian`,nativeLabel:`Bahasa Indonesia`,htmlLang:`id`,direction:`ltr`},{value:`nl`,label:`Dutch`,nativeLabel:`Nederlands`,htmlLang:`nl`,direction:`ltr`},{value:`pl`,label:`Polish`,nativeLabel:`Polski`,htmlLang:`pl`,direction:`ltr`},{value:`tr`,label:`Turkish`,nativeLabel:`Türkçe`,htmlLang:`tr`,direction:`ltr`},{value:`vi`,label:`Vietnamese`,nativeLabel:`Tiếng Việt`,htmlLang:`vi`,direction:`ltr`},{value:`cs`,label:`Czech`,nativeLabel:`Čeština`,htmlLang:`cs`,direction:`ltr`},{value:`uk`,label:`Ukrainian`,nativeLabel:`Українська`,htmlLang:`uk`,direction:`ltr`},{value:`ar`,label:`Arabic`,nativeLabel:`العربية`,htmlLang:`ar`,direction:`rtl`},{value:`he`,label:`Hebrew`,nativeLabel:`עברית`,htmlLang:`he`,direction:`rtl`},{value:`fa`,label:`Persian`,nativeLabel:`فارسی`,htmlLang:`fa`,direction:`rtl`},{value:`th`,label:`Thai`,nativeLabel:`ไทย`,htmlLang:`th`,direction:`ltr`}],yy=`cms.preference.language`,by=`cms.preference.theme`,xy=H.createContext(null);function Sy({children:e}){let[t,n]=H.useState(Cy),r=jy(t),[i,a]=H.useState(wy),[o,s]=H.useState(()=>Ey(i,Ty())),c=H.useCallback(e=>{Oy(yy,e),n(e)},[]),l=H.useCallback(e=>{Oy(by,e),a(e)},[]);H.useEffect(()=>{document.documentElement.lang=vy.find(e=>e.value===t)?.htmlLang??`en`,document.documentElement.dir=r},[t,r]),H.useEffect(()=>{let e=()=>{let e=Ey(i,Ty());s(e),document.documentElement.classList.toggle(`dark`,e===`dark`)};if(e(),i!==`system`||typeof matchMedia>`u`)return;let t=matchMedia(`(prefers-color-scheme: dark)`);return t.addEventListener(`change`,e),()=>t.removeEventListener(`change`,e)},[i]);let u=H.useMemo(()=>({language:t,direction:r,theme:i,resolvedTheme:o,setLanguage:c,setTheme:l}),[t,r,i,o,c,l]);return(0,U.jsx)(xy.Provider,{value:u,children:e})}function X(){let e=H.useContext(xy);if(!e)throw Error(`usePreferences must be used inside PreferencesProvider.`);return e}function Cy(){let e=Dy(yy);if(ky(e))return e;if(typeof navigator>`u`)return`en`;for(let e of navigator.languages??[]){let t=Ay(e);if(t!==`en`||e.toLowerCase().startsWith(`en`))return t}return Ay(navigator.language)}function wy(){let e=Dy(by);return e===`light`||e===`dark`||e===`system`?e:`system`}function Ty(){return typeof matchMedia<`u`&&matchMedia(`(prefers-color-scheme: dark)`).matches}function Ey(e,t){return e===`system`?t?`dark`:`light`:e}function Dy(e){try{return localStorage.getItem(e)}catch{return null}}function Oy(e,t){try{localStorage.setItem(e,t)}catch{}}function ky(e){return vy.some(t=>t.value===e)}function Ay(e){let t=(e??``).toLowerCase();if(t===`zh-tw`||t===`zh-hant`||t.startsWith(`zh-hant`))return`zh-TW`;if(t===`zh-cn`||t===`zh-hans`||t.startsWith(`zh-hans`))return`zh-CN`;if(t.startsWith(`pt-br`)||t===`pt`)return`pt-BR`;let n=t.split(`-`)[0];return n===`ar`?`ar`:n===`cs`?`cs`:n===`de`?`de`:n===`es`?`es`:n===`fa`?`fa`:n===`fr`?`fr`:n===`he`||n===`iw`?`he`:n===`id`?`id`:n===`it`?`it`:n===`ja`?`ja`:n===`ko`?`ko`:n===`nl`?`nl`:n===`pl`?`pl`:n===`pt`?`pt-BR`:n===`ru`?`ru`:n===`th`?`th`:n===`tr`?`tr`:n===`uk`?`uk`:n===`vi`?`vi`:n===`zh`?`zh-TW`:`en`}function jy(e){return vy.find(t=>t.value===e)?.direction??`ltr`}var My={en:{"admin.consoleTitle":`Admin console`,"developer.workspaceTitle":`Developer`,"auth.accessDenied.title":`Access denied`,"auth.accessDenied.noStaff":`You're signed in, but this account doesn't have access to the admin console.`,"auth.accessDenied.askOwner":`Ask a site owner to add you to the team, or sign out to try a different account.`,"auth.error.title":`Something went wrong`,"auth.signIn.eyebrow":`Admin console`,"auth.signIn.title":`Sign in`,"auth.signIn.methodsLoadFailed":`Couldn't load sign-in methods. Try refreshing.`,"auth.signIn.startFailed":`Couldn't start sign-in. Try again.`,"auth.signIn.requestFailed":`Something went wrong. Try again.`,"auth.signIn.noMethods":`No sign-in methods are configured for this site.`,"auth.signIn.unknownMethod":`Unsupported sign-in method: {kind}.`,"auth.signIn.method.social.button":`Continue with {provider}`,"auth.signIn.method.oauth.button":`Continue with {provider}`,"auth.signIn.method.email-otp.body":`Sign in with a one-time code sent to your email.`,"auth.signIn.method.email-otp.emailLabel":`Email address`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`Send code`,"auth.signIn.method.email-otp.sendFailed":`Couldn't send the code. Check the email and try again.`,"auth.signIn.method.email-otp.sentTo":`We sent a code to {email}.`,"auth.signIn.method.email-otp.otpLabel":`One-time code`,"auth.signIn.method.email-otp.otpPlaceholder":`Enter the 6-digit code`,"auth.signIn.method.email-otp.verifyButton":`Verify and sign in`,"auth.signIn.method.email-otp.verifyFailed":`That code didn't match. Try again.`,"auth.signIn.method.email-otp.back":`Use a different email`,"auth.signIn.method.magic-link.body":`We'll email you a one-tap sign-in link.`,"auth.signIn.method.magic-link.emailLabel":`Email address`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`Send sign-in link`,"auth.signIn.method.magic-link.sendFailed":`Couldn't send the link. Check the email and try again.`,"auth.signIn.method.magic-link.sentTo":`We sent a sign-in link to {email}.`,"auth.signIn.method.magic-link.clickHint":`Click the link in the email to finish signing in. The link expires shortly.`,"auth.signIn.method.magic-link.anotherEmail":`Use a different email`,"common.signOut":`Sign out`,"common.viewSite":`View site`,"common.contentAdmin":`Content Admin`,"common.copy":`Copy`,"common.open":`Open`,"common.failedToLoad":`Failed to load`,"common.unknownError":`Unknown error`,"common.signedIn":`Signed in`,"common.close":`Close`,"common.skipToMain":`Skip to main content`,"common.breadcrumb":`Breadcrumb`,"common.toggleSidebar":`Toggle sidebar`,"common.mobileSidebar":`Navigation`,"common.mobileSidebarDescription":`Site administration navigation`,"common.saved":`Saved`,"common.unsavedChanges":`Unsaved changes`,"oauth.connectedApps":`MCP connections`,"oauth.consent.eyebrow":`Connect an MCP client`,"oauth.consent.heading":`Connect {client}?`,"oauth.consent.body":`{client} will be able to use this site's management tools through MCP. What it can view or change is still limited by your account permissions.`,"oauth.consent.approve":`Connect`,"oauth.consent.deny":`Cancel`,"oauth.consent.invalidTitle":`Invalid authorization request`,"oauth.consent.invalidBody":`Missing or malformed consent payload. Return to your MCP client and try again.`,"oauth.apps.eyebrow":`Your account`,"oauth.apps.body":`These MCP clients can use the site's management tools. Every action is still checked against your current account permissions.`,"oauth.apps.empty":`No MCP clients are connected.`,"oauth.apps.revoke":`Disconnect`,"console.eyebrow":`Site administration`,"console.description":`Manage {title}'s content and operations here. MCP-capable agents can work alongside you.`,"console.descriptionFallback":`Manage this site's content and operations here. MCP-capable agents can work alongside you.`,"console.connector.title":`Connect Claude to the admin console`,"console.connector.body":`Authorize Claude to help manage this site's content and operations.`,"console.connector.step1.title":`Copy the management connection URL`,"console.connector.step1.body":`You'll paste this URL into Claude in the next step.`,"console.connector.step1.label":`Management connection URL`,"console.connector.step2.title":`Add a custom connector`,"console.connector.step2.body":`Open Claude Customize, name the connector, and paste the URL.`,"console.connector.step2.action":`Open Claude Customize`,"console.connector.step3.title":`Sign in and start`,"console.connector.step3.body":`Sign in with a site administrator account, then ask Claude to help manage this site.`,"console.connector.step3.action":`Open Claude`,"console.stats.range":`Time range`,"console.stats.mode":`Chart mode`,"console.stats.short.interval":`New`,"console.stats.short.cumulative":`Cumulative`,"console.stats.range.1h":`Past 1 hour`,"console.stats.range.24h":`Past 24 hours`,"console.stats.range.7d":`Past 7 days`,"console.stats.range.20d":`Past 20 days`,"console.stats.interval":`Per interval`,"console.stats.cumulative":`Cumulative`,"console.stats.total":`Current total`,"console.stats.other":`Other`,"console.stats.new":`Created`,"console.stats.download":`Download CSV`,"console.stats.unavailable":`Statistics are unavailable for this storage adapter.`,"console.collections.title":`Data collections`,"console.collections.emptyTitle":`No collections defined yet`,"console.collections.emptyBody":`No data collections yet. Start from a template, or ask your agent to create the first one.`,"collection.breadcrumb":`Collections`,"collection.create":`New entry`,"collection.availableLanguage":`Has {language} ({locale})`,"collection.missingLanguage":`Missing {language} ({locale})`,"collection.moreLanguages":`{count} more`,"collection.schemaDetails":`Schema notes`,"collection.searchPlaceholder":`Search id or searchable fields...`,"collection.search":`Search`,"collection.pagination":`Collection pages`,"collection.previousPage":`Previous`,"collection.nextPage":`Next`,"collection.filter.all":`All`,"collection.empty.title":`No data yet`,"collection.empty.search":`No entries matched “{search}”.`,"collection.empty.withStatus":`No {status} data in {collection}.`,"collection.empty.all":`{collection} has no data yet.`,"collection.refreshing":`Updating the list...`,"collection.export":`Export CSV`,"collection.copyId":`Copy full ID`,"collection.table.id":`ID`,"collection.table.title":`Title`,"collection.table.status":`Status`,"collection.table.locale":`Locale`,"collection.table.version":`Version`,"collection.table.updated":`Updated`,"collection.table.actions":`Actions`,"collection.table.selectAll":`Select all rows on this page`,"collection.table.selectRow":`Select {name}`,"rowActions.menuLabel":`Row operations`,"rowActions.cancel":`Cancel`,"collection.untitled":`(untitled)`,"collection.bulk.selectedCount":`{count} selected`,"collection.bulk.publish":`Publish`,"collection.bulk.unpublish":`Unpublish`,"collection.bulk.delete":`Delete`,"collection.bulk.deleteConfirm":`Delete {count} selected entries? This cannot be undone.`,"crud.editTooltip":`Edit {name}.`,"crud.viewTooltip":`View {name}.`,"crud.deleteTooltip":`Delete {name}.`,"crud.saveTitle":`Save title`,"crud.cancelTitle":`Cancel editing`,"crud.deleteConfirm":`Delete {name}? This cannot be undone.`,"crud.saving":`Saving...`,"entryEdit.back":`Back to {name}`,"entryEdit.body":`Edit this {name} entry. Related records show up alongside automatically.`,"entryEdit.parent":`Parent: {name}`,"entryEdit.save":`Save changes`,"entryEdit.saveTooltip":`Save this entry.`,"entryEdit.fields":`Entry fields`,"entryEdit.meta":`Entry details`,"entryEdit.noChildEntries":`No child entries match this entry yet.`,"entryEdit.relationship":`Joined by {child} from parent {parent}.`,"entryEdit.addItem":`Add item`,"entryEdit.removeItem":`Remove item`,"entryEdit.emptyOption":`No value`,"entryEdit.boolean":`Enabled`,"entryEdit.operationalHint":`System-written record — edits may be overwritten by the next sync.`,"entryEdit.unlockOperational":`Unlock editing`,"entryEdit.readOnlyHint":`Procedure-managed record — use the available row actions to make changes.`,"entryEdit.contentLanguage":`Content language`,"entryEdit.selectLanguage":`Select language`,"entryEdit.languageLocked":`A saved entry's language cannot be changed. Open or create another translation instead.`,"entryEdit.languageTabs":`Content languages`,"entryEdit.sharedFields":`Shared fields`,"entryEdit.saveSharedFirst":`Save the shared fields before adding a translation.`,"entryEdit.publish":`Publish`,"entryEdit.publishing":`Publishing...`,"entryEdit.publishTooltip":`Publish this draft.`,"entryEdit.publishDisabledDirty":`Save changes before publishing.`,"entryEdit.publishMissingRequired":`Complete the required fields before publishing.`,"entryEdit.unpublish":`Unpublish`,"entryEdit.unpublishing":`Unpublishing...`,"entryEdit.unpublishTooltip":`Move this entry back to draft so it can be edited.`,"entryEdit.uploadMedia":`Upload`,"entryEdit.uploadingMedia":`Uploading...`,"entryEdit.noMediaPurpose":`No media upload purpose is configured.`,"settings.page.title":`Site settings`,"settings.page.body":`Manage the Admin name, default site metadata, and visitor analytics.`,"settings.tabsLabel":`Site settings sections`,"settings.tab.brand":`General`,"settings.tab.tracking":`Analytics`,"settings.brandSection":`Site identity`,"settings.brandSectionBody":`These defaults identify the site in Admin and generated public pages.`,"settings.siteBrand":`Admin name`,"settings.siteBrandHelp":`Shown in the Admin sidebar and sign-in screen. It does not replace the public page title.`,"settings.siteTitle":`Default page title`,"settings.siteTitleHelp":`Used when a page has no title of its own and as the default SEO site name.`,"settings.siteDescription":`Default site description`,"settings.siteDescriptionHelp":`Used as the SEO and sharing summary when a page has no description of its own.`,"settings.trackingSection":`Visitor analytics`,"settings.trackingSectionBody":`Optional. Mantle injects standard provider scripts into generated public HTML after you save a valid ID.`,"settings.notConfigured":`Not configured`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`Leave blank to disable. Enter only an ID such as G-XXXXXXXXXX, not the whole gtag script.`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`Leave blank to disable. Enter only the numeric Pixel ID; Mantle generates the base code.`,"nav.home":`Home`,"nav.overview":`Overview`,"nav.model":`Data model`,"nav.logic":`Logic`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Content`,"nav.operations":`Records`,"nav.media":`Media library`,"nav.more":`More`,"nav.settings":`Settings`,"nav.staff":`Admin users`,"nav.members":`Members`,"nav.reports":`Reports`,"nav.localizedContent":`Contains localized content`,"common.yes":`Yes`,"common.no":`No`,"model.title":`Data model`,"model.schemas":`Schemas`,"model.views":`Views`,"model.objects":`Data model objects`,"model.search":`Search data model`,"model.fields":`Fields`,"model.path":`Path`,"model.type":`Type`,"model.required":`Required`,"model.constraints":`Constraints`,"model.noFields":`No object properties are declared.`,"model.rawSchema":`JSON Schema`,"model.rawQuery":`Query plan`,"model.queryKind":`Query`,"model.source":`Source`,"model.allFields":`All fields`,"model.order":`Order`,"model.limit":`Limit`,"model.dialect":`Dialect`,"model.filter":`Filter`,"model.params":`Parameters`,"model.relationships":`Relationships`,"model.references":`This item references`,"model.referencedBy":`References this item`,"model.noRelations":`No manifest relationships declared.`,"model.openGraph":`Show in graph`,"model.openDeclaration":`Open manifest declaration`,"model.manifest":`Manifest`,"model.compiledManifest":`Compiled manifest`,"model.marker.reference":`Reference to {target}`,"model.marker.translationParent":`Translation join to parent {target}`,"model.marker.translationChild":`Translation join from child {target}`,"model.marker.unique":`Unique index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logic`,"logic.objects":`Logic objects`,"logic.search":`Search logic`,"logic.triggers":`Triggers`,"logic.procedures":`Procedures`,"logic.overview":`Overview`,"logic.contract":`Contract`,"logic.configuration":`Configuration`,"logic.contractFrom":`This entry point uses the contract declared by {target}.`,"logic.input":`Input`,"logic.output":`Output`,"logic.noContract":`No target procedure contract is available.`,"logic.execution":`Execution path`,"logic.target":`Target procedure`,"logic.authorization":`Authorization`,"logic.noAuthorization":`No authorization predicates are declared.`,"logic.guard":`Guard procedure`,"logic.method":`Method`,"docs.title":`API & agent interfaces`,"docs.intro":`RuntimePlan-derived reference for HTTP, MCP, and browser WebMCP entry points.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP Triggers and automatically exposed public View routes.`,"docs.mcpIntro":`Tools projected from Views and explicit MCP Triggers. Authorization is still enforced when a tool runs.`,"docs.webmcpIntro":`This server-backed binding discovers public-surface Views over HTTP and registers them as read-only browser tools. Each View keeps its own audience rules.`,"docs.publicEndpoint":`Public endpoint`,"docs.staffEndpoint":`Staff endpoint`,"docs.catalogEndpoint":`Discovery catalog`,"docs.target":`Target`,"docs.inputSchema":`Input schema`,"docs.outputSchema":`Output schema`,"docs.readOnly":`Read only`,"docs.noEntries":`No entry points are declared for this interface.`,"docs.webmcpNote":`Public Procedure tools remain on MCP. The server-backed WebMCP HTTP wrapper intentionally registers public Views only.`,"logic.surface":`Surface`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Error policy`,"developer.graph.title":`Manifest graph`,"developer.graph.details":`Item details`,"developer.graph.openModel":`Open in data model`,"developer.graph.openLogic":`Open logic details`,"developer.graph.relayout":`Auto layout`,"developer.graph.previous":`Previous step`,"developer.graph.next":`Next step`,"developer.graph.step":`Step {current} of {total}`,"developer.graph.comesFrom":`Comes from`,"developer.graph.continuesTo":`Continues to`,"developer.graph.manifestSource":`Manifest source`,"developer.graph.builtin":`Built-in`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`View`,"developer.graph.kind.procedure":`Procedure`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Audience`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Handler`,"developer.graph.fact.operation":`Operation`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Match`,"developer.graph.summary.trigger":`Requests from {audience} enter through {transport} and continue to {target}.`,"developer.graph.summary.builtin":`A built-in {op} operation writes to {schema}.`,"developer.graph.summary.ref":`This procedure runs the registered code handler {ref}.`,"developer.graph.summary.view":`A read-only view over {target} for {audience}.`,"developer.graph.summary.schema":`{incoming} items use this schema; it references {outgoing} other items.`,"developer.graph.audience.public":`Public`,"developer.graph.audience.members":`Members`,"developer.graph.audience.staff":`Staff`,"developer.graph.audience.system":`System`,"developer.graph.audience.apiClients":`API clients`,"developer.graph.audienceDescription.public":`Available without signing in.`,"developer.graph.audienceDescription.members":`Any signed-in member. No site role is required.`,"developer.graph.audienceDescription.staff":`A signed-in member with a site role: contributor, editor, or owner. Staff is an access level, not a separate admin account.`,"developer.graph.audienceDescription.system":`Runs automatically from lifecycle, queue, or schedule events.`,"developer.graph.audienceDescription.apiClients":`Requires an authenticated API client or scope.`,"developer.graph.relation.translationParent":`translates`,"developer.graph.relation.schemaReference":`references`,"developer.graph.relation.viewSource":`reads from`,"developer.graph.relation.guard":`guarded by`,"developer.graph.relation.procedureSchema":`handles schema`,"developer.graph.relation.collectionAction":`acts on`,"developer.graph.relation.inputReference":`references`,"developer.graph.relation.triggerTarget":`invokes`,"developer.graph.relation.lifecycleSource":`watches lifecycle`,"ops.run":`Run`,"ops.running":`Running...`,"views.page.body":`A read-only report over {schema}.`,"views.publicService":`Public service`,"views.publicServices":`Public services`,"views.openInAdmin":`Open in Admin`,"views.staffReport":`Staff report`,"views.publicBody":`A live Admin preview of the public API backed by {schema}.`,"views.params.title":`Parameters`,"views.run":`Query`,"views.running":`Querying...`,"views.empty.title":`No rows`,"views.empty.body":`No data under the current filters.`,"views.notFound.title":`View not found`,"staff.page.title":`Admin users`,"staff.page.body":`Invite by email, or ask a user to sign in first and grant them Admin access from Members. Only site owners can make changes here.`,"staff.invite.title":`Invite a teammate`,"staff.invite.emailLabel":`Email address`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`Role`,"staff.invite.button":`Invite`,"staff.invite.sending":`Inviting…`,"staff.invite.revoke":`Revoke`,"staff.invite.hint":`Your teammate joins after signing in with the same email address.`,"staff.emailSetup.title":`Email sign-in is not enabled`,"staff.emailSetup.body":`To enable email sign-in, give the setup instructions to your coding agent to connect a transactional email service and redeploy the site.`,"staff.emailSetup.copy":`Copy setup steps`,"staff.emailSetup.copied":`Copied`,"staff.emailSetup.guide":`Cloudflare guide`,"staff.table.name":`Name`,"staff.table.email":`Email`,"staff.table.status":`Status / sign-in`,"staff.table.role":`Role`,"staff.role.owner":`Owner`,"staff.role.owner.help":`Everything, including settings and team access.`,"staff.role.editor":`Editor`,"staff.role.editor.help":`Content, publishing, operations, and media.`,"staff.role.contributor":`Contributor`,"staff.role.contributor.help":`Create and edit drafts only.`,"staff.role.none":`No role`,"staff.badge.invited":`Invited`,"staff.status.emailSignIn":`Email sign-in`,"staff.self":`you`,"members.page.title":`Members`,"members.page.body":`People who have signed in to this site and do not have admin access.`,"members.searchPlaceholder":`Search name or email...`,"members.search":`Search`,"members.table.name":`Name`,"members.table.email":`Email`,"members.table.status":`Status`,"members.table.joined":`Joined`,"members.table.teamAccess":`Team access`,"members.promote":`Grant Admin access`,"members.verified":`Verified`,"members.unverified":`Unverified`,"members.empty.title":`No members yet`,"members.empty.body":`People appear here after they sign in to the site.`,"members.emptySearch.title":`No matching members`,"members.emptySearch.body":`Try a different name or email.`,"members.pagination":`Member pages`,"members.previousPage":`Previous`,"members.nextPage":`Next`,"status.draft":`Drafts`,"status.published":`Published`,"status.archived":`Archived`,"preferences.heading":`Preferences`,"preferences.language":`Admin language`,"preferences.language.search":`Search languages...`,"preferences.language.noResults":`No languages found.`,"preferences.direction":`Text direction`,"preferences.direction.auto":`Text direction follows the selected language.`,"preferences.appearance":`Appearance`,"preferences.light":`Light`,"preferences.dark":`Dark`,"preferences.system":`System`,"preferences.ltr":`Left to right`,"preferences.rtl":`Right to left`,"preferences.page.title":`Personal preferences`,"preferences.page.body":`These preferences stay on this browser. They change the admin console only and do not modify site settings.`,"preferences.page.languageBody":`Choose the language used by system pages and admin chrome.`,"preferences.page.appearanceBody":`Choose light, dark, or follow your operating system.`,"preferences.page.open":`Preferences`,"system.notFound.title":`Not found`,"system.notFound.body":`No view registered for`,"system.notFound.back":`Back to home`,"editor.page.title":`Content editor`,"editor.page.body":`Draft copy in Markdown, HTML, or rich text before handing it to an agent or publishing workflow.`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich editor`,"editor.titleLabel":`Title`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`Body`,"editor.preview":`Preview`,"editor.saveDraft":`Save draft`,"editor.markdownHint":`Supports headings, lists, links, and fenced code blocks.`,"editor.htmlHint":`Edit trusted HTML fragments with a plain source view.`,"editor.richHint":`Format sections, callouts, and copy without touching markup.`,"editor.toolbar":`Rich editor toolbar`,"editor.undo":`Undo`,"editor.redo":`Redo`,"editor.aiClean":`Insert callout`,"editor.uploadImage":`Upload image`,"editor.uploading":`Uploading image...`,"editor.textStyle":`Text style`,"editor.paragraph":`Paragraph`,"editor.quote":`Quote`,"editor.code":`Code`,"editor.headingPlaceholder":`Heading`,"editor.selectedText":`selected text`,"editor.bold":`Bold`,"editor.italic":`Italic`,"editor.underline":`Underline`,"editor.strike":`Strikethrough`,"editor.inlineCode":`Inline code`,"editor.textColor":`Text color`,"editor.highlight":`Highlight`,"editor.palette":`Brand color`,"editor.alignLeft":`Align left`,"editor.alignCenter":`Align center`,"editor.alignRight":`Align right`,"editor.bulletList":`Bullet list`,"editor.numberList":`Numbered list`,"editor.checkList":`Checklist`,"editor.indent":`Indent`,"editor.link":`Link`,"editor.linkText":`link text`,"editor.table":`Table`,"editor.mediaLibrary":`Media library`,"editor.imageUrl":`Image URL`,"editor.insertImage":`Insert image`,"editor.videoUrl":`YouTube / Dailymotion URL`,"editor.insertVideo":`Insert video`,"media.alt":`Alt text`,"media.title":`Media library`,"media.description":`Every image uploaded to this site. Reuse one in an entry, tidy up its alt text, or remove it.`,"media.upload":`Upload`,"media.uploading":`Uploading...`,"media.dropHere":`Drop images here to upload`,"media.searchPlaceholder":`Search alt text, caption, or id`,"media.empty.title":`No images yet`,"media.empty.all":`Upload an image to start building the library.`,"media.empty.search":`No images match “{search}”.`,"media.noPurpose":`No upload purpose is configured for this site, so uploads are disabled.`,"media.setup.title":`Media storage isn't enabled`,"media.setup.body":`Ask your coding agent to connect storage for this deployment, then redeploy the site.`,"media.setup.cloudflare":`Cloudflare deployments use R2. Enabling R2 may require billing details.`,"media.setup.copy":`Copy setup instructions`,"media.setup.copied":`Instructions copied`,"media.setup.guide":`Cloudflare R2 setup`,"media.caption":`Caption`,"media.altPlaceholder":`Describe this image`,"media.captionPlaceholder":`Optional caption`,"media.save":`Save`,"media.saving":`Saving...`,"media.saved":`Saved`,"media.delete":`Delete`,"media.deleteConfirm":`Delete this image? It will be removed everywhere it is used.`,"media.open":`Open original`,"media.copyId":`Copy id`,"media.uploaded":`Uploaded {date}`,"media.pick":`Choose from library`,"media.pickTitle":`Choose an image`,"media.pickDescription":`Pick an existing image to reuse, or upload a new one.`,"media.use":`Use this image`,"media.loadMore":`Load more`,"media.uploadFailed":`{count} of {total} uploads failed.`,"media.capabilityMissing":`The upload could not be prepared for {mime}.`,"media.variantUploadFailed":`The {mime} upload failed. Try again.`,"media.rasterOnly":`Upload a JPEG, PNG, WebP, AVIF, or GIF image.`,"media.noRequiredVariants":`The media policy has no required image variants.`,"media.prepareFailed":`The image could not be prepared for upload.`,"media.encoderUnsupported":`This site's media policy requires an image format this browser cannot produce ({mime}). Contact the site developer to update the policy.`,"ops.error.executionFailed":`The operation ran but failed to complete.`,"ops.error.detailsLabel":`Show details`,"ops.success":`{name} completed.`,"confirm.title":`Are you sure?`,"confirm.cancel":`Cancel`,"confirm.confirm":`Confirm`,"collection.schemaSummary.lifecycleAndI18n":`Manage items, publishing state, and localized content for {name}.`,"collection.schemaSummary.lifecycleOnly":`Manage items and publishing state for {name}.`,"collection.schemaSummary.i18nOnly":`Manage items and localized content for {name}.`,"collection.schemaSummary.plain":`Manage items for {name}.`,"entryEdit.mediaMissing":`This image is missing or was deleted.`,"entryEdit.dateTime.select":`Select date and time`,"entryEdit.dateTime.time":`Time`},"zh-TW":{"admin.consoleTitle":`管理後台`,"developer.workspaceTitle":`開發者檢視`,"auth.accessDenied.title":`無法存取`,"auth.accessDenied.noStaff":`你已登入,但這個帳號沒有管理後台權限。`,"auth.accessDenied.askOwner":`請網站擁有者將你加入團隊,或登出改用其他帳號。`,"auth.error.title":`發生錯誤`,"auth.signIn.eyebrow":`管理後台`,"auth.signIn.title":`登入`,"auth.signIn.methodsLoadFailed":`讀取登入方式失敗,請重新整理頁面。`,"auth.signIn.startFailed":`無法開始登入,請再試一次。`,"auth.signIn.requestFailed":`發生錯誤,請再試一次。`,"auth.signIn.noMethods":`這個站台還沒設定任何登入方式。`,"auth.signIn.unknownMethod":`不支援的登入方式:{kind}。`,"auth.signIn.method.social.button":`使用 {provider} 繼續`,"auth.signIn.method.oauth.button":`使用 {provider} 繼續`,"auth.signIn.method.email-otp.body":`輸入 email,我們會寄一次性驗證碼給你。`,"auth.signIn.method.email-otp.emailLabel":`電子郵件`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`寄送驗證碼`,"auth.signIn.method.email-otp.sendFailed":`驗證碼寄送失敗,請確認 email 後重試。`,"auth.signIn.method.email-otp.sentTo":`已寄驗證碼到 {email}。`,"auth.signIn.method.email-otp.otpLabel":`驗證碼`,"auth.signIn.method.email-otp.otpPlaceholder":`輸入 6 位驗證碼`,"auth.signIn.method.email-otp.verifyButton":`驗證並登入`,"auth.signIn.method.email-otp.verifyFailed":`驗證碼錯誤,請再試一次。`,"auth.signIn.method.email-otp.back":`用其他 email`,"auth.signIn.method.magic-link.body":`我們會寄一個一鍵登入連結給你。`,"auth.signIn.method.magic-link.emailLabel":`電子郵件`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`寄送登入連結`,"auth.signIn.method.magic-link.sendFailed":`連結寄送失敗,請確認 email 後重試。`,"auth.signIn.method.magic-link.sentTo":`已將登入連結寄到 {email}。`,"auth.signIn.method.magic-link.clickHint":`請點 email 裡的連結完成登入。連結很快會過期。`,"auth.signIn.method.magic-link.anotherEmail":`用其他 email`,"common.signOut":`登出`,"common.contentAdmin":`內容管理後台`,"common.viewSite":`查看網站`,"common.copy":`複製`,"common.open":`開啟`,"common.failedToLoad":`載入失敗`,"common.unknownError":`發生未知錯誤`,"common.signedIn":`已登入`,"common.close":`關閉`,"common.skipToMain":`跳到主要內容`,"common.breadcrumb":`導覽路徑`,"common.toggleSidebar":`切換側邊欄`,"common.mobileSidebar":`網站導覽`,"common.mobileSidebarDescription":`網站管理導覽`,"common.saved":`已儲存`,"common.unsavedChanges":`尚未儲存的變更`,"oauth.connectedApps":`MCP 連線`,"oauth.consent.eyebrow":`連結 MCP 客戶端`,"oauth.consent.heading":`要連結 {client} 嗎?`,"oauth.consent.body":`{client} 將能透過 MCP 使用這個網站提供的管理工具;它能查看或變更哪些內容,仍會依照你的帳號權限決定。`,"oauth.consent.approve":`連結`,"oauth.consent.deny":`取消`,"oauth.consent.invalidTitle":`無效的授權請求`,"oauth.consent.invalidBody":`缺少或格式錯誤的授權資訊,請返回 MCP 客戶端重試。`,"oauth.apps.eyebrow":`你的帳號`,"oauth.apps.body":`這些 MCP 客戶端可以使用網站提供的管理工具;每次操作仍會依照你當下的帳號權限檢查。`,"oauth.apps.empty":`目前沒有已連結的 MCP 客戶端。`,"oauth.apps.revoke":`中斷連線`,"console.eyebrow":`網站管理`,"console.description":`在這裡管理 {title} 的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.descriptionFallback":`在這裡管理這個網站的內容與營運資料。支援 MCP 的 agent 也能與你並行協作。`,"console.connector.title":`把 Claude 連接到管理後台`,"console.connector.body":`授權 Claude 協助管理這個網站的內容與營運資料。`,"console.connector.step1.title":`複製管理連線網址`,"console.connector.step1.body":`下一步會把這個網址貼到 Claude。`,"console.connector.step1.label":`管理連線網址`,"console.connector.step2.title":`新增自訂 connector`,"console.connector.step2.body":`開啟 Claude Customize,命名 connector,再貼上網址。`,"console.connector.step2.action":`開啟 Claude Customize`,"console.connector.step3.title":`登入並開始使用`,"console.connector.step3.body":`使用網站管理員帳號完成授權,之後即可請 Claude 協助管理這個網站。`,"console.connector.step3.action":`前往 Claude`,"console.stats.range":`時間區段`,"console.stats.mode":`圖表模式`,"console.stats.short.interval":`新增`,"console.stats.short.cumulative":`累計`,"console.stats.range.1h":`過去 1 小時`,"console.stats.range.24h":`過去 24 小時`,"console.stats.range.7d":`過去 7 天`,"console.stats.range.20d":`過去 20 天`,"console.stats.interval":`每時段新增`,"console.stats.cumulative":`區間累計`,"console.stats.total":`目前總數`,"console.stats.other":`其他`,"console.stats.new":`新增`,"console.stats.download":`下載 CSV`,"console.stats.unavailable":`此儲存介面尚未提供統計。`,"console.collections.title":`資料集合`,"console.collections.emptyTitle":`尚未定義 collections`,"console.collections.emptyBody":`還沒有任何資料集合。可以從範本開始,或請你的 agent 建立第一個。`,"collection.breadcrumb":`內容清單`,"collection.create":`新增`,"collection.availableLanguage":`已有 {language}({locale})`,"collection.missingLanguage":`缺少 {language}({locale})`,"collection.moreLanguages":`{count} 個`,"collection.schemaDetails":`Schema 說明`,"collection.searchPlaceholder":`搜尋 ID 或可搜尋欄位...`,"collection.search":`搜尋`,"collection.pagination":`資料分頁`,"collection.previousPage":`上一頁`,"collection.nextPage":`下一頁`,"collection.filter.all":`全部`,"collection.empty.title":`目前沒有資料`,"collection.empty.search":`沒有符合「{search}」的資料。`,"collection.empty.withStatus":`{collection} 目前沒有 {status} 資料。`,"collection.empty.all":`{collection} 目前沒有資料。`,"collection.refreshing":`清單更新中...`,"collection.export":`匯出 CSV`,"collection.copyId":`複製完整 ID`,"collection.table.id":`ID`,"collection.table.title":`標題`,"collection.table.status":`狀態`,"collection.table.locale":`語言`,"collection.table.version":`版本`,"collection.table.updated":`更新時間`,"collection.table.actions":`操作`,"collection.table.selectAll":`選取這一頁的所有項目`,"collection.table.selectRow":`選取 {name}`,"rowActions.menuLabel":`資料列操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.bulk.selectedCount":`已選取 {count} 筆`,"collection.bulk.publish":`發布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`刪除`,"collection.bulk.deleteConfirm":`刪除已選取的 {count} 筆資料?這個動作無法復原。`,"crud.editTooltip":`編輯{name}。`,"crud.viewTooltip":`查看{name}。`,"crud.deleteTooltip":`刪除{name}。`,"crud.saveTitle":`儲存標題`,"crud.cancelTitle":`取消編輯`,"crud.deleteConfirm":`確定要刪除{name}?這個動作無法復原。`,"crud.saving":`儲存中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`編輯 {name} 的內容,相關資料會自動帶出。`,"entryEdit.parent":`父層:{name}`,"entryEdit.save":`儲存變更`,"entryEdit.saveTooltip":`儲存這筆資料。`,"entryEdit.fields":`資料欄位`,"entryEdit.meta":`資料資訊`,"entryEdit.noChildEntries":`目前沒有符合這筆資料的子資料。`,"entryEdit.relationship":`透過子欄位 {child} 對應父欄位 {parent}。`,"entryEdit.addItem":`新增項目`,"entryEdit.removeItem":`移除項目`,"entryEdit.emptyOption":`無值`,"entryEdit.boolean":`啟用`,"entryEdit.operationalHint":`系統寫入的資料——手動修改可能在下次同步時被覆蓋。`,"entryEdit.unlockOperational":`解鎖編輯`,"entryEdit.readOnlyHint":`此資料由程序管理,請使用列上的可用操作進行變更。`,"entryEdit.contentLanguage":`內容語言`,"entryEdit.selectLanguage":`選擇語言`,"entryEdit.languageLocked":`儲存後不能直接更改語言,請開啟或建立另一筆翻譯。`,"entryEdit.languageTabs":`內容語言`,"entryEdit.sharedFields":`共用欄位`,"entryEdit.saveSharedFirst":`請先儲存共用欄位,再新增翻譯。`,"settings.page.title":`網站設定`,"settings.page.body":`管理後台名稱、網站預設資訊與訪客分析。`,"settings.tabsLabel":`網站設定分頁`,"settings.tab.brand":`一般`,"settings.tab.tracking":`分析`,"settings.brandSection":`網站識別`,"settings.brandSectionBody":`這些預設值會用於管理後台與 Mantle 產生的前台頁面。`,"settings.siteBrand":`後台名稱`,"settings.siteBrandHelp":`顯示在管理後台側欄與登入畫面,不會取代公開頁面的標題。`,"settings.siteTitle":`預設頁面標題`,"settings.siteTitleHelp":`頁面沒有自己的標題時使用,也是預設的 SEO 網站名稱。`,"settings.siteDescription":`預設網站描述`,"settings.siteDescriptionHelp":`頁面沒有自己的描述時,作為 SEO 與分享摘要。`,"settings.trackingSection":`訪客分析`,"settings.trackingSectionBody":`選填。儲存有效 ID 後,Mantle 會在產生的前台 HTML 自動加入標準追蹤碼。`,"settings.notConfigured":`尚未設定`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`留空即停用。只填入 G-XXXXXXXXXX 形式的 ID,不要貼整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`留空即停用。只填入數字 Pixel ID,Mantle 會產生標準 base code。`,"nav.home":`首頁`,"nav.overview":`總覽`,"nav.model":`資料模型`,"nav.logic":`業務邏輯`,"nav.docs":`介面文件`,"nav.build":`產品結構`,"nav.content":`內容`,"nav.operations":`營運資料`,"nav.media":`媒體庫`,"nav.more":`更多`,"nav.settings":`設定`,"nav.staff":`後台使用者`,"nav.members":`會員管理`,"nav.reports":`報表`,"nav.localizedContent":`包含多語內容`,"common.yes":`是`,"common.no":`否`,"model.title":`資料模型`,"model.schemas":`資料結構`,"model.views":`資料檢視`,"model.objects":`資料模型物件`,"model.search":`搜尋資料模型`,"model.fields":`欄位`,"model.path":`路徑`,"model.type":`型別`,"model.required":`必填`,"model.constraints":`限制`,"model.noFields":`未宣告任何物件欄位。`,"model.rawSchema":`JSON 結構`,"model.rawQuery":`查詢計畫`,"model.queryKind":`查詢`,"model.source":`來源`,"model.allFields":`全部欄位`,"model.order":`排序`,"model.limit":`筆數上限`,"model.dialect":`語法`,"model.filter":`篩選條件`,"model.params":`查詢參數`,"model.relationships":`關聯`,"model.references":`此項目引用`,"model.referencedBy":`引用此項目`,"model.noRelations":`未宣告 manifest 關聯。`,"model.openGraph":`在關係圖中顯示`,"model.openDeclaration":`開啟 manifest 宣告位置`,"model.manifest":`Manifest 定義`,"model.compiledManifest":`編譯後的 Manifest`,"model.marker.reference":`引用 {target}`,"model.marker.translationParent":`連結至翻譯母表 {target}`,"model.marker.translationChild":`翻譯子表 {target} 連結至此欄位`,"model.marker.unique":`唯一索引 UQ{index}:{fields}`,"model.marker.index":`索引 IDX{index}:{fields}`,"logic.title":`業務邏輯`,"logic.objects":`業務邏輯物件`,"logic.search":`搜尋業務邏輯`,"logic.triggers":`觸發器`,"logic.procedures":`程序`,"logic.overview":`總覽`,"logic.contract":`輸入輸出`,"logic.configuration":`設定`,"logic.contractFrom":`此入口使用 {target} 宣告的輸入輸出合約。`,"logic.input":`輸入`,"logic.output":`輸出`,"logic.noContract":`找不到目標程序的輸入輸出合約。`,"logic.execution":`執行路徑`,"logic.target":`目標程序`,"logic.authorization":`存取條件`,"logic.noAuthorization":`未宣告存取條件。`,"logic.guard":`守衛程序`,"logic.method":`請求方法`,"docs.title":`API 與 Agent 介面`,"docs.intro":`由 RuntimePlan 投影出的 HTTP、MCP 與瀏覽器 WebMCP 入口文件。`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP 觸發器與自動公開的資料檢視路由。`,"docs.mcpIntro":`由資料檢視與明確宣告的 MCP 觸發器投影成工具;實際呼叫時仍會執行授權。`,"docs.webmcpIntro":`此伺服器端綁定會透過 HTTP 發現公開資料檢視,並註冊成唯讀瀏覽器工具;每個資料檢視仍保留自己的存取規則。`,"docs.publicEndpoint":`公開端點`,"docs.staffEndpoint":`Staff 端點`,"docs.catalogEndpoint":`探索目錄`,"docs.target":`目標`,"docs.inputSchema":`輸入格式`,"docs.outputSchema":`輸出格式`,"docs.readOnly":`唯讀`,"docs.noEntries":`此介面沒有宣告任何入口。`,"docs.webmcpNote":`公開程序工具仍由 MCP 提供;伺服器端 WebMCP HTTP 包裝器只註冊公開資料檢視。`,"logic.surface":`服務範圍`,"logic.hooks":`事件`,"logic.errorPolicy":`錯誤處理`,"developer.graph.title":`Manifest 關係圖`,"developer.graph.details":`項目詳細資料`,"developer.graph.openModel":`在資料模型中開啟`,"developer.graph.openLogic":`開啟業務邏輯詳細資料`,"developer.graph.relayout":`自動排版`,"developer.graph.previous":`上一步`,"developer.graph.next":`下一步`,"developer.graph.step":`第 {current} 步,共 {total} 步`,"developer.graph.comesFrom":`從這裡來`,"developer.graph.continuesTo":`接著到這裡`,"developer.graph.manifestSource":`Manifest 來源`,"developer.graph.builtin":`內建處理器`,"developer.graph.kind.schema":`資料結構`,"developer.graph.kind.view":`資料檢視`,"developer.graph.kind.procedure":`程序`,"developer.graph.kind.trigger":`觸發器`,"developer.graph.fact.audience":`使用者`,"developer.graph.fact.transport":`入口`,"developer.graph.fact.handler":`處理方式`,"developer.graph.fact.operation":`操作`,"developer.graph.fact.schema":`資料模型`,"developer.graph.fact.match":`比對欄位`,"developer.graph.summary.trigger":`{audience}請求透過 {transport} 進入,接著執行 {target}。`,"developer.graph.summary.builtin":`以內建 {op} 操作寫入 {schema}。`,"developer.graph.summary.ref":`此程序執行已註冊的程式處理器 {ref}。`,"developer.graph.summary.view":`提供給{audience}的唯讀檢視,資料來自 {target}。`,"developer.graph.summary.schema":`有 {incoming} 個項目使用此資料模型;它引用 {outgoing} 個其他項目。`,"developer.graph.audience.public":`公開`,"developer.graph.audience.members":`會員`,"developer.graph.audience.staff":`管理人員`,"developer.graph.audience.system":`系統`,"developer.graph.audience.apiClients":`API 用戶端`,"developer.graph.audienceDescription.public":`不需登入即可使用。`,"developer.graph.audienceDescription.members":`任何已登入會員皆可使用,不需具備站台角色。`,"developer.graph.audienceDescription.staff":`具協作者、編輯者或擁有者站台角色的已登入會員。管理人員是權限層級,不是另一種管理員帳號。`,"developer.graph.audienceDescription.system":`由生命週期、佇列或排程事件自動執行。`,"developer.graph.audienceDescription.apiClients":`需由已驗證的 API 用戶端或具備對應權限範圍的請求使用。`,"developer.graph.relation.translationParent":`翻譯至`,"developer.graph.relation.schemaReference":`引用`,"developer.graph.relation.viewSource":`讀取自`,"developer.graph.relation.guard":`由此守衛`,"developer.graph.relation.procedureSchema":`處理資料結構`,"developer.graph.relation.collectionAction":`作用於`,"developer.graph.relation.inputReference":`引用`,"developer.graph.relation.triggerTarget":`呼叫`,"developer.graph.relation.lifecycleSource":`監看生命週期`,"ops.run":`執行`,"ops.running":`執行中...`,"views.page.body":`{schema} 的唯讀報表。`,"views.publicService":`公開服務`,"views.publicServices":`公開服務`,"views.openInAdmin":`在管理後台開啟`,"views.staffReport":`Staff 報表`,"views.publicBody":`由 {schema} 支援的公開 API 即時 Admin 預覽。`,"views.params.title":`查詢參數`,"views.run":`查詢`,"views.running":`查詢中...`,"views.empty.title":`沒有資料`,"views.empty.body":`目前的條件下沒有資料。`,"views.notFound.title":`找不到這個 View`,"staff.page.title":`後台使用者`,"staff.page.body":`可使用 Email 邀請,或請使用者先登入網站,再到「會員管理」授予後台權限。只有網站擁有者可以變更權限。`,"staff.invite.title":`邀請協作者`,"staff.invite.emailLabel":`Email`,"staff.invite.emailPlaceholder":`teammate@example.com`,"staff.invite.roleLabel":`角色`,"staff.invite.button":`建立邀請`,"staff.invite.sending":`邀請中…`,"staff.invite.revoke":`撤銷`,"staff.invite.hint":`對方使用相同 Email 登入後,就會加入團隊。`,"staff.emailSetup.title":`尚未開啟 Email 登入`,"staff.emailSetup.body":`若要開啟 Email 登入,請將設定指引交給 coding agent,連接交易型寄信服務並重新部署網站。`,"staff.emailSetup.copy":`複製設定步驟`,"staff.emailSetup.copied":`已複製`,"staff.emailSetup.guide":`Cloudflare 指南`,"staff.table.name":`姓名`,"staff.table.email":`Email`,"staff.table.status":`狀態/登入方式`,"staff.table.role":`角色`,"staff.role.owner":`擁有者`,"staff.role.owner.help":`可管理所有功能,包含設定與團隊權限。`,"staff.role.editor":`編輯者`,"staff.role.editor.help":`可管理內容、發布、站務操作與媒體。`,"staff.role.contributor":`協作者`,"staff.role.contributor.help":`只能建立與編輯草稿。`,"staff.role.none":`無角色`,"staff.badge.invited":`邀請中`,"staff.status.emailSignIn":`Email 登入`,"staff.self":`你自己`,"members.page.title":`會員管理`,"members.page.body":`曾登入網站且沒有管理後台權限的會員。`,"members.searchPlaceholder":`搜尋姓名或 Email...`,"members.search":`搜尋`,"members.table.name":`姓名`,"members.table.email":`Email`,"members.table.status":`狀態`,"members.table.joined":`加入時間`,"members.table.teamAccess":`團隊權限`,"members.promote":`授予後台權限`,"members.verified":`已驗證`,"members.unverified":`未驗證`,"members.empty.title":`目前沒有會員`,"members.empty.body":`使用者登入網站後會顯示在這裡。`,"members.emptySearch.title":`找不到相符會員`,"members.emptySearch.body":`請改用其他姓名或 Email 搜尋。`,"members.pagination":`會員分頁`,"members.previousPage":`上一頁`,"members.nextPage":`下一頁`,"status.draft":`草稿`,"status.published":`已發布`,"status.archived":`已封存`,"preferences.heading":`偏好設定`,"preferences.language":`後台語言`,"preferences.language.search":`搜尋語言...`,"preferences.language.noResults":`找不到語言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向會跟隨選擇的語言。`,"preferences.appearance":`外觀`,"preferences.light":`淺色`,"preferences.dark":`深色`,"preferences.system":`跟隨系統`,"preferences.ltr":`左到右`,"preferences.rtl":`右到左`,"preferences.page.title":`個人偏好`,"preferences.page.body":`這些偏好只保存在這個瀏覽器,只影響 admin console,不會改動站台設定。`,"preferences.page.languageBody":`選擇系統頁與 admin chrome 使用的語言。`,"preferences.page.appearanceBody":`選擇淺色、深色,或跟隨作業系統。`,"preferences.page.open":`個人偏好`,"system.notFound.title":`找不到頁面`,"system.notFound.body":`沒有 view 註冊在`,"system.notFound.back":`回首頁`,"editor.page.title":`內容編輯器`,"editor.page.body":`在交給 agent 或發布流程之前,先用 Markdown、HTML 或 Rich Editor 編輯內容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`標題`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`本文`,"editor.preview":`預覽`,"editor.saveDraft":`儲存草稿`,"editor.markdownHint":`支援標題、清單、連結與 fenced code blocks。`,"editor.htmlHint":`用原始碼模式編輯可信任的 HTML 片段。`,"editor.richHint":`不碰 markup 也能整理段落、提示框與內文。`,"editor.toolbar":`Rich Editor 工具列`,"editor.undo":`復原`,"editor.redo":`重做`,"editor.aiClean":`插入提示區塊`,"editor.uploadImage":`上傳圖片`,"editor.uploading":`圖片上傳中...`,"editor.textStyle":`文字樣式`,"editor.paragraph":`段落`,"editor.quote":`引言`,"editor.code":`程式碼`,"editor.headingPlaceholder":`標題`,"editor.selectedText":`選取文字`,"editor.bold":`粗體`,"editor.italic":`斜體`,"editor.underline":`底線`,"editor.strike":`刪除線`,"editor.inlineCode":`行內程式碼`,"editor.textColor":`文字顏色`,"editor.highlight":`螢光標記`,"editor.palette":`品牌色`,"editor.alignLeft":`靠左對齊`,"editor.alignCenter":`置中對齊`,"editor.alignRight":`靠右對齊`,"editor.bulletList":`項目清單`,"editor.numberList":`編號清單`,"editor.checkList":`待辦清單`,"editor.indent":`縮排`,"editor.link":`連結`,"editor.linkText":`連結文字`,"editor.table":`表格`,"editor.mediaLibrary":`媒體庫`,"editor.imageUrl":`圖片網址`,"editor.insertImage":`插入圖片`,"editor.videoUrl":`YouTube / Dailymotion 連結`,"editor.insertVideo":`插入影片`,"media.alt":`替代文字`,"media.title":`媒體庫`,"media.description":`這個網站上傳過的所有圖片。可以在內容中重複使用、整理替代文字,或刪除不需要的圖片。`,"media.upload":`上傳`,"media.uploading":`上傳中...`,"media.dropHere":`把圖片拖曳到這裡上傳`,"media.searchPlaceholder":`搜尋替代文字、說明或 id`,"media.empty.title":`還沒有圖片`,"media.empty.all":`上傳一張圖片,開始建立媒體庫。`,"media.empty.search":`沒有符合「{search}」的圖片。`,"media.noPurpose":`這個網站沒有設定上傳用途,無法上傳。`,"media.setup.title":`媒體儲存尚未啟用`,"media.setup.body":`請將設定指引交給 coding agent,為這個部署連接儲存空間並重新部署網站。`,"media.setup.cloudflare":`Cloudflare 部署使用 R2;啟用 R2 可能需要先設定帳務資料。`,"media.setup.copy":`複製設定指引`,"media.setup.copied":`已複製指引`,"media.setup.guide":`Cloudflare R2 設定`,"media.caption":`說明文字`,"media.altPlaceholder":`描述這張圖片`,"media.captionPlaceholder":`選填說明`,"media.save":`儲存`,"media.saving":`儲存中...`,"media.saved":`已儲存`,"media.delete":`刪除`,"media.deleteConfirm":`確定要刪除這張圖片嗎?所有使用到的地方都會一併移除。`,"media.open":`開啟原圖`,"media.copyId":`複製 id`,"media.uploaded":`上傳於 {date}`,"media.pick":`從媒體庫選擇`,"media.pickTitle":`選擇圖片`,"media.pickDescription":`挑一張現有圖片重複使用,或上傳新圖片。`,"media.use":`使用這張圖片`,"media.loadMore":`載入更多`,"media.uploadFailed":`{total} 張圖片中有 {count} 張上傳失敗。`,"media.capabilityMissing":`無法準備 {mime} 上傳。`,"media.variantUploadFailed":`{mime} 上傳失敗,請再試一次。`,"media.rasterOnly":`請上傳 JPEG、PNG、WebP、AVIF 或 GIF 圖片。`,"media.noRequiredVariants":`媒體政策尚未設定必要的圖片格式。`,"media.prepareFailed":`無法準備圖片上傳。`,"media.encoderUnsupported":`這個網站的媒體政策要求此瀏覽器無法產生的圖片格式({mime})。請聯絡網站開發者調整政策。`,"entryEdit.publish":`發布`,"entryEdit.publishing":`發布中...`,"entryEdit.publishTooltip":`發布這筆草稿。`,"entryEdit.publishDisabledDirty":`請先儲存變更才能發布。`,"entryEdit.publishMissingRequired":`請先完成必填欄位才能發布。`,"entryEdit.unpublish":`取消發布`,"entryEdit.unpublishing":`取消發布中...`,"entryEdit.unpublishTooltip":`將這筆資料改回草稿以便編輯。`,"entryEdit.uploadMedia":`上傳`,"entryEdit.uploadingMedia":`上傳中...`,"entryEdit.noMediaPurpose":`尚未設定媒體上傳用途。`,"ops.error.executionFailed":`操作已執行,但未能完成。`,"ops.error.detailsLabel":`顯示詳細資訊`,"ops.success":`{name} 已完成。`,"confirm.title":`確定要這麼做嗎?`,"confirm.cancel":`取消`,"confirm.confirm":`確定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的項目、發布狀態與多語內容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的項目與發布狀態。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的項目與多語內容。`,"collection.schemaSummary.plain":`管理 {name} 的項目。`,"entryEdit.mediaMissing":`這張圖片已遺失或已被刪除。`,"entryEdit.dateTime.select":`選擇日期與時間`,"entryEdit.dateTime.time":`時間`},"zh-CN":{"admin.consoleTitle":`管理后台`,"developer.workspaceTitle":`开发`,"auth.accessDenied.noStaff":`你已登录,但这个账号没有管理后台权限。`,"auth.accessDenied.askOwner":`请网站所有者将你加入团队,或登出改用其他账号。`,"auth.signIn.title":`登录`,"common.signOut":`登出`,"common.viewSite":`查看网站`,"common.contentAdmin":`内容管理`,"common.copy":`复制`,"common.open":`打开`,"common.failedToLoad":`加载失败`,"common.unknownError":`发生未知错误`,"common.signedIn":`已登录`,"common.close":`关闭`,"common.skipToMain":`跳到主要内容`,"common.breadcrumb":`导航路径`,"common.toggleSidebar":`切换侧边栏`,"common.mobileSidebar":`网站导航`,"common.mobileSidebarDescription":`网站管理导航`,"common.saved":`已保存`,"common.unsavedChanges":`尚未保存的变更`,"oauth.connectedApps":`MCP 连接`,"oauth.consent.eyebrow":`连接 MCP 客户端`,"oauth.consent.heading":`要连接 {client} 吗?`,"oauth.consent.body":`{client} 将能通过 MCP 使用此网站提供的管理工具;它能查看或更改哪些内容,仍取决于你的账户权限。`,"oauth.consent.approve":`连接`,"oauth.consent.deny":`取消`,"oauth.consent.invalidTitle":`无效的授权请求`,"oauth.consent.invalidBody":`缺少或格式错误的授权信息。请返回 MCP 客户端重试。`,"oauth.apps.eyebrow":`你的账户`,"oauth.apps.body":`这些 MCP 客户端可以使用网站提供的管理工具;每次操作仍会根据你当前的账户权限进行检查。`,"oauth.apps.empty":`当前没有已连接的 MCP 客户端。`,"oauth.apps.revoke":`断开连接`,"console.eyebrow":`网站管理`,"console.description":`在这里管理 {title} 的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.descriptionFallback":`在这里管理这个网站的内容与运营数据。支持 MCP 的 agent 也能与你并行协作。`,"console.connector.title":`把 Claude 连接到管理后台`,"console.connector.body":`授权 Claude 协助管理这个网站的内容与运营数据。`,"console.connector.step1.title":`复制管理连接网址`,"console.connector.step1.body":`下一步会把这个网址粘贴到 Claude。`,"console.connector.step1.label":`管理连接网址`,"console.connector.step2.title":`添加自定义 connector`,"console.connector.step2.body":`打开 Claude Customize,命名 connector,再粘贴网址。`,"console.connector.step2.action":`打开 Claude Customize`,"console.connector.step3.title":`登录并开始使用`,"console.connector.step3.body":`使用网站管理员账号完成授权,之后即可请 Claude 协助管理这个网站。`,"console.connector.step3.action":`前往 Claude`,"console.stats.range":`时间区段`,"console.stats.mode":`图表模式`,"console.stats.short.interval":`新增`,"console.stats.short.cumulative":`累计`,"console.stats.range.1h":`过去 1 小时`,"console.stats.range.24h":`过去 24 小时`,"console.stats.range.7d":`过去 7 天`,"console.stats.range.20d":`过去 20 天`,"console.stats.interval":`每时段新增`,"console.stats.cumulative":`区间累计`,"console.stats.total":`当前总数`,"console.stats.other":`其他`,"console.stats.new":`新增`,"console.stats.download":`下载 CSV`,"console.stats.unavailable":`此存储接口尚未提供统计。`,"console.collections.title":`数据集合`,"collection.breadcrumb":`内容清单`,"collection.create":`新增`,"collection.availableLanguage":`已有 {language}({locale})`,"collection.missingLanguage":`缺少 {language}({locale})`,"collection.moreLanguages":`{count} 个`,"collection.filter.all":`全部`,"collection.table.title":`标题`,"collection.table.status":`状态`,"collection.table.locale":`语言`,"collection.table.version":`版本`,"collection.table.updated":`更新时间`,"collection.table.actions":`操作`,"rowActions.menuLabel":`数据行操作`,"rowActions.cancel":`取消`,"collection.untitled":`(未命名)`,"collection.searchPlaceholder":`搜索 ID 或可搜索字段...`,"collection.search":`搜索`,"collection.pagination":`资料分页`,"collection.previousPage":`上一页`,"collection.nextPage":`下一页`,"collection.empty.title":`目前没有资料`,"collection.empty.search":`没有符合“{search}”的资料。`,"collection.empty.withStatus":`{collection} 目前没有 {status} 资料。`,"collection.empty.all":`{collection} 目前没有资料。`,"collection.refreshing":`列表更新中...`,"collection.export":`导出 CSV`,"collection.copyId":`复制完整 ID`,"collection.table.id":`ID`,"collection.table.selectAll":`选取本页所有项目`,"collection.table.selectRow":`选取 {name}`,"collection.bulk.selectedCount":`已选取 {count} 笔`,"collection.bulk.publish":`发布`,"collection.bulk.unpublish":`下架`,"collection.bulk.delete":`删除`,"collection.bulk.deleteConfirm":`删除已选取的 {count} 笔资料?这个动作无法复原。`,"crud.editTooltip":`编辑{name}。`,"crud.viewTooltip":`查看{name}。`,"crud.deleteTooltip":`删除{name}。`,"crud.saveTitle":`保存标题`,"crud.cancelTitle":`取消编辑`,"crud.deleteConfirm":`确定要删除{name}?这个动作无法复原。`,"crud.saving":`保存中...`,"entryEdit.back":`回到 {name}`,"entryEdit.body":`编辑 {name} 的内容,相关资料会自动带出。`,"entryEdit.parent":`父层:{name}`,"entryEdit.save":`保存变更`,"entryEdit.saveTooltip":`保存这笔资料。`,"entryEdit.fields":`资料字段`,"entryEdit.meta":`资料信息`,"entryEdit.noChildEntries":`目前没有符合这笔资料的子资料。`,"entryEdit.relationship":`透过子字段 {child} 对应父字段 {parent}。`,"entryEdit.addItem":`新增项目`,"entryEdit.removeItem":`移除项目`,"entryEdit.emptyOption":`无值`,"entryEdit.boolean":`启用`,"entryEdit.operationalHint":`系统写入的资料——手动修改可能在下次同步时被覆盖。`,"entryEdit.unlockOperational":`解锁编辑`,"entryEdit.readOnlyHint":`此资料由程序管理,请使用行上的可用操作进行变更。`,"entryEdit.contentLanguage":`内容语言`,"entryEdit.selectLanguage":`选择语言`,"entryEdit.languageLocked":`保存后不能直接更改语言,请打开或创建另一笔翻译。`,"entryEdit.languageTabs":`内容语言`,"entryEdit.sharedFields":`共用字段`,"entryEdit.saveSharedFirst":`请先保存共用字段,再新增翻译。`,"settings.page.title":`网站设置`,"settings.page.body":`管理后台名称、网站默认信息与访客分析。`,"settings.tabsLabel":`网站设置分页`,"settings.tab.brand":`一般`,"settings.tab.tracking":`分析`,"settings.brandSection":`网站识别`,"settings.brandSectionBody":`这些默认值会用于管理后台与 Mantle 生成的前台页面。`,"settings.siteBrand":`后台名称`,"settings.siteBrandHelp":`显示在管理后台侧栏与登录页面,不会取代公开页面标题。`,"settings.siteTitle":`默认页面标题`,"settings.siteTitleHelp":`页面没有自己的标题时使用,也是默认 SEO 网站名称。`,"settings.siteDescription":`默认网站描述`,"settings.siteDescriptionHelp":`页面没有自己的描述时,作为 SEO 与分享摘要。`,"settings.trackingSection":`访客分析`,"settings.trackingSectionBody":`选填。保存有效 ID 后,Mantle 会在生成的前台 HTML 自动加入标准追踪码。`,"settings.notConfigured":`尚未设置`,"settings.ga4MeasurementId":`GA4 Measurement ID`,"settings.ga4MeasurementIdHelp":`留空即停用。只填入 G-XXXXXXXXXX 形式的 ID,不要贴整段 gtag script。`,"settings.facebookPixelId":`Facebook Pixel ID`,"settings.facebookPixelIdHelp":`留空即停用。只填入数字 Pixel ID,Mantle 会生成标准 base code。`,"nav.home":`首页`,"nav.overview":`总览`,"nav.model":`数据模型`,"nav.logic":`业务逻辑`,"nav.docs":`接口`,"nav.build":`构建`,"nav.content":`内容`,"nav.operations":`运营数据`,"nav.media":`媒体库`,"nav.more":`更多`,"nav.settings":`设置`,"nav.members":`会员`,"common.yes":`是`,"common.no":`否`,"model.title":`数据模型`,"model.schemas":`数据结构`,"model.views":`数据视图`,"model.objects":`数据模型对象`,"model.search":`搜索数据模型`,"model.fields":`字段`,"model.path":`路径`,"model.type":`类型`,"model.required":`必填`,"model.constraints":`限制`,"model.noFields":`未声明任何对象字段。`,"model.rawSchema":`JSON 结构`,"model.rawQuery":`查询计划`,"model.queryKind":`查询`,"model.source":`来源`,"model.allFields":`全部字段`,"model.order":`排序`,"model.limit":`数量上限`,"model.dialect":`语法`,"model.filter":`筛选条件`,"model.params":`查询参数`,"model.relationships":`关联`,"model.references":`此项目引用`,"model.referencedBy":`引用此项目`,"model.noRelations":`未声明 Manifest 关联。`,"model.openGraph":`在关系图中显示`,"model.openDeclaration":`打开 Manifest 声明位置`,"model.manifest":`Manifest 定义`,"model.compiledManifest":`编译后的 Manifest`,"model.marker.reference":`引用 {target}`,"model.marker.translationParent":`连接至翻译母表 {target}`,"model.marker.translationChild":`翻译子表 {target} 连接至此字段`,"model.marker.unique":`唯一索引 UQ{index}:{fields}`,"model.marker.index":`索引 IDX{index}:{fields}`,"logic.title":`业务逻辑`,"logic.objects":`业务逻辑对象`,"logic.search":`搜索业务逻辑`,"logic.triggers":`触发器`,"logic.procedures":`程序`,"logic.overview":`总览`,"logic.contract":`输入输出`,"logic.configuration":`设置`,"logic.contractFrom":`此入口使用 {target} 声明的输入输出合约。`,"logic.input":`输入`,"logic.output":`输出`,"logic.noContract":`找不到目标程序的输入输出合约。`,"logic.execution":`执行路径`,"logic.target":`目标程序`,"logic.authorization":`访问条件`,"logic.noAuthorization":`未声明访问条件。`,"logic.guard":`守卫程序`,"logic.method":`请求方法`,"docs.title":`API 与 Agent 接口`,"docs.intro":`由 RuntimePlan 投影出的 HTTP、MCP 与浏览器 WebMCP 入口文档。`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP 触发器与自动公开的数据视图路由。`,"docs.mcpIntro":`由数据视图与明确声明的 MCP 触发器投影成工具;实际调用时仍会执行授权。`,"docs.webmcpIntro":`此服务器端绑定会通过 HTTP 发现公开数据视图,并注册成只读浏览器工具;每个数据视图仍保留自己的访问规则。`,"docs.publicEndpoint":`公开端点`,"docs.staffEndpoint":`Staff 端点`,"docs.catalogEndpoint":`探索目录`,"docs.target":`目标`,"docs.inputSchema":`输入格式`,"docs.outputSchema":`输出格式`,"docs.readOnly":`只读`,"docs.noEntries":`此接口没有声明任何入口。`,"docs.webmcpNote":`公开程序工具仍由 MCP 提供;服务器端 WebMCP HTTP 包装器只注册公开数据视图。`,"logic.surface":`服务范围`,"logic.hooks":`事件`,"logic.errorPolicy":`错误处理`,"developer.graph.title":`Manifest 关系图`,"developer.graph.details":`项目详细资料`,"developer.graph.openModel":`在数据模型中查看`,"developer.graph.openLogic":`查看业务逻辑详情`,"developer.graph.relayout":`重新整理图面`,"developer.graph.previous":`上一步`,"developer.graph.next":`下一步`,"developer.graph.step":`第 {current} 步,共 {total} 步`,"developer.graph.comesFrom":`从这里进入`,"developer.graph.continuesTo":`接着到这里`,"developer.graph.manifestSource":`Manifest 来源`,"developer.graph.builtin":`内置处理器`,"developer.graph.kind.schema":`数据结构`,"developer.graph.kind.view":`数据视图`,"developer.graph.kind.procedure":`程序`,"developer.graph.kind.trigger":`触发器`,"developer.graph.fact.audience":`用户`,"developer.graph.fact.transport":`入口`,"developer.graph.fact.handler":`处理方式`,"developer.graph.fact.operation":`操作`,"developer.graph.fact.schema":`数据结构`,"developer.graph.fact.match":`触发条件`,"developer.graph.summary.trigger":`{audience}请求从 {transport} 进入,然后调用 {target}。`,"developer.graph.summary.builtin":`系统使用内置的 {op} 操作写入 {schema}。`,"developer.graph.summary.ref":`此程序执行已注册的代码处理器 {ref}。`,"developer.graph.summary.view":`提供给{audience}的只读数据视图,来源为 {target}。`,"developer.graph.summary.schema":`有 {incoming} 个项目使用此数据结构;它还引用了 {outgoing} 个项目。`,"developer.graph.audience.public":`访客`,"developer.graph.audience.members":`会员`,"developer.graph.audience.staff":`管理人员`,"developer.graph.audience.system":`系统`,"developer.graph.audience.apiClients":`API 客户端`,"developer.graph.audienceDescription.public":`无需登录即可使用。`,"developer.graph.audienceDescription.members":`任何已登录会员都可使用,不需要具备站点角色。`,"developer.graph.audienceDescription.staff":`具协作者、编辑者或所有者站点角色的已登录会员。管理人员是权限级别,不是另一种管理员账号。`,"developer.graph.audienceDescription.system":`由生命周期、队列或排程事件自动执行。`,"developer.graph.audienceDescription.apiClients":`需由已验证的 API 客户端或具备对应权限范围的请求使用。`,"developer.graph.relation.translationParent":`翻译至`,"developer.graph.relation.schemaReference":`引用`,"developer.graph.relation.viewSource":`读取自`,"developer.graph.relation.guard":`由此守卫`,"developer.graph.relation.procedureSchema":`处理数据结构`,"developer.graph.relation.collectionAction":`作用于`,"developer.graph.relation.inputReference":`引用`,"developer.graph.relation.triggerTarget":`调用`,"developer.graph.relation.lifecycleSource":`监听生命周期`,"nav.staff":`后台用户`,"nav.reports":`报表`,"nav.localizedContent":`包含多语言内容`,"ops.run":`执行`,"ops.running":`执行中...`,"views.page.body":`{schema} 的只读报表。`,"views.params.title":`查询参数`,"views.run":`查询`,"views.running":`查询中...`,"views.empty.title":`没有数据`,"views.empty.body":`当前条件下没有数据。`,"views.notFound.title":`找不到这个 View`,"staff.page.title":`后台用户`,"staff.page.body":`可使用 Email 邀请,或请用户先登录网站,再到“会员管理”授予后台权限。只有网站所有者可以更改权限。`,"staff.invite.title":`邀请协作者`,"staff.invite.hint":`对方使用相同 Email 登录后,就会加入团队。`,"staff.emailSetup.title":`尚未开启 Email 登录`,"staff.emailSetup.body":`若要开启 Email 登录,请将设置指引交给 coding agent,连接事务型邮件服务并重新部署网站。`,"staff.emailSetup.copy":`复制设置步骤`,"staff.emailSetup.copied":`已复制`,"staff.emailSetup.guide":`Cloudflare 指南`,"staff.role.owner":`所有者`,"staff.role.owner.help":`可管理所有功能,包括设置与团队权限。`,"staff.role.editor":`编辑者`,"staff.role.editor.help":`可管理内容、发布、站务操作与媒体。`,"staff.role.contributor":`协作者`,"staff.role.contributor.help":`只能创建和编辑草稿。`,"members.table.teamAccess":`团队权限`,"members.promote":`授予后台权限`,"status.draft":`草稿`,"status.published":`已发布`,"status.archived":`已归档`,"preferences.heading":`偏好设置`,"preferences.language":`后台语言`,"preferences.language.search":`搜索语言...`,"preferences.language.noResults":`找不到语言。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向会跟随选择的语言。`,"preferences.appearance":`外观`,"preferences.light":`浅色`,"preferences.dark":`深色`,"preferences.system":`跟随系统`,"preferences.ltr":`从左到右`,"preferences.rtl":`从右到左`,"preferences.page.open":`个人偏好`,"preferences.page.title":`个人偏好`,"preferences.page.body":`这些偏好只保存在此浏览器,只影响 admin console,不会修改站点设置。`,"preferences.page.languageBody":`选择系统页面和 admin chrome 使用的语言。`,"preferences.page.appearanceBody":`选择浅色、深色,或跟随操作系统。`,"editor.page.title":`内容编辑器`,"editor.page.body":`在交给 agent 或发布流程前,先用 Markdown、HTML 或 Rich Editor 编辑内容草稿。`,"editor.mode.markdown":`Markdown`,"editor.mode.html":`HTML`,"editor.mode.rich":`Rich Editor`,"editor.titleLabel":`标题`,"editor.slugLabel":`Slug`,"editor.bodyLabel":`正文`,"editor.preview":`预览`,"editor.saveDraft":`保存草稿`,"editor.markdownHint":`支持标题、列表、链接与 fenced code blocks。`,"editor.htmlHint":`用源码模式编辑可信任的 HTML 片段。`,"editor.richHint":`不用碰 markup 也能整理段落、提示框与内文。`,"editor.toolbar":`Rich Editor 工具栏`,"editor.undo":`撤销`,"editor.redo":`重做`,"editor.aiClean":`插入提示区块`,"editor.uploadImage":`上传图片`,"editor.uploading":`图片上传中...`,"editor.textStyle":`文字样式`,"editor.paragraph":`段落`,"editor.quote":`引用`,"editor.code":`代码`,"editor.headingPlaceholder":`标题`,"editor.selectedText":`选取文字`,"editor.bold":`粗体`,"editor.italic":`斜体`,"editor.underline":`下划线`,"editor.strike":`删除线`,"editor.inlineCode":`行内代码`,"editor.textColor":`文字颜色`,"editor.highlight":`高亮标记`,"editor.palette":`品牌色`,"editor.alignLeft":`左对齐`,"editor.alignCenter":`居中对齐`,"editor.alignRight":`右对齐`,"editor.bulletList":`项目列表`,"editor.numberList":`编号列表`,"editor.checkList":`待办列表`,"editor.indent":`缩进`,"editor.link":`链接`,"editor.linkText":`链接文字`,"editor.table":`表格`,"editor.mediaLibrary":`媒体库`,"editor.imageUrl":`图片网址`,"editor.insertImage":`插入图片`,"editor.videoUrl":`YouTube / Dailymotion 链接`,"editor.insertVideo":`插入视频`,"media.alt":`替代文字`,"media.title":`媒体库`,"media.description":`这个网站上传过的所有图片。可以在内容中重复使用、整理替代文字,或删除不需要的图片。`,"media.upload":`上传`,"media.uploading":`上传中...`,"media.dropHere":`把图片拖到这里上传`,"media.searchPlaceholder":`搜索替代文字、说明或 id`,"media.empty.title":`还没有图片`,"media.empty.all":`上传一张图片,开始建立媒体库。`,"media.empty.search":`没有符合“{search}”的图片。`,"media.noPurpose":`这个网站没有设置上传用途,无法上传。`,"media.setup.title":`媒体存储尚未启用`,"media.setup.body":`请将设置指引交给 coding agent,为这个部署连接存储空间并重新部署网站。`,"media.setup.cloudflare":`Cloudflare 部署使用 R2;启用 R2 可能需要先设置账务信息。`,"media.setup.copy":`复制设置指引`,"media.setup.copied":`已复制指引`,"media.setup.guide":`Cloudflare R2 设置`,"media.caption":`说明文字`,"media.altPlaceholder":`描述这张图片`,"media.captionPlaceholder":`选填说明`,"media.save":`保存`,"media.saving":`保存中...`,"media.saved":`已保存`,"media.delete":`删除`,"media.deleteConfirm":`确定要删除这张图片吗?所有使用到的地方都会一并移除。`,"media.open":`打开原图`,"media.copyId":`复制 id`,"media.uploaded":`上传于 {date}`,"media.pick":`从媒体库选择`,"media.pickTitle":`选择图片`,"media.pickDescription":`挑一张现有图片重复使用,或上传新图片。`,"media.use":`使用这张图片`,"media.loadMore":`加载更多`,"media.uploadFailed":`{total} 张图片中有 {count} 张上传失败。`,"media.capabilityMissing":`无法准备 {mime} 上传。`,"media.variantUploadFailed":`{mime} 上传失败,请重试。`,"media.rasterOnly":`请上传 JPEG、PNG、WebP、AVIF 或 GIF 图片。`,"media.noRequiredVariants":`媒体策略尚未设置必要的图片格式。`,"media.prepareFailed":`无法准备图片上传。`,"media.encoderUnsupported":`这个网站的媒体政策要求此浏览器无法生成的图片格式({mime})。请联系网站开发者调整政策。`,"entryEdit.publish":`发布`,"entryEdit.publishing":`发布中...`,"entryEdit.publishTooltip":`发布这笔草稿。`,"entryEdit.publishDisabledDirty":`请先保存变更才能发布。`,"entryEdit.publishMissingRequired":`请先完成必填字段才能发布。`,"entryEdit.unpublish":`取消发布`,"entryEdit.unpublishing":`取消发布中...`,"entryEdit.unpublishTooltip":`将这笔资料改回草稿以便编辑。`,"ops.error.executionFailed":`操作已执行,但未能完成。`,"ops.error.detailsLabel":`显示详细信息`,"ops.success":`{name} 已完成。`,"confirm.title":`确定要这么做吗?`,"confirm.cancel":`取消`,"confirm.confirm":`确定`,"collection.schemaSummary.lifecycleAndI18n":`管理 {name} 的项目、发布状态与多语内容。`,"collection.schemaSummary.lifecycleOnly":`管理 {name} 的项目与发布状态。`,"collection.schemaSummary.i18nOnly":`管理 {name} 的项目与多语内容。`,"collection.schemaSummary.plain":`管理 {name} 的项目。`,"entryEdit.mediaMissing":`这张图片已丢失或已被删除。`,"entryEdit.dateTime.select":`选择日期与时间`,"entryEdit.dateTime.time":`时间`},de:{"admin.consoleTitle":`Admin-Konsole`,"developer.workspaceTitle":`Entwicklung`,"auth.signIn.title":`Anmelden`,"common.signOut":`Abmelden`,"common.viewSite":`Website ansehen`,"common.copy":`Kopieren`,"common.open":`Öffnen`,"common.failedToLoad":`Laden fehlgeschlagen`,"common.signedIn":`Angemeldet`,"common.contentAdmin":`Inhaltsverwaltung`,"common.close":`Schließen`,"common.skipToMain":`Zum Hauptinhalt springen`,"common.breadcrumb":`Brotkrümelnavigation`,"common.toggleSidebar":`Seitenleiste umschalten`,"common.mobileSidebar":`Navigation`,"common.mobileSidebarDescription":`Navigation der Website-Verwaltung`,"oauth.connectedApps":`MCP-Verbindungen`,"oauth.consent.eyebrow":`MCP-Client verbinden`,"oauth.consent.heading":`{client} verbinden?`,"oauth.consent.body":`{client} kann über MCP die Verwaltungswerkzeuge dieser Website verwenden. Was angezeigt oder geändert werden kann, wird weiterhin durch deine Kontoberechtigungen begrenzt.`,"oauth.consent.approve":`Verbinden`,"oauth.consent.deny":`Abbrechen`,"oauth.consent.invalidTitle":`Ungültige Autorisierungsanfrage`,"oauth.consent.invalidBody":`Die Autorisierungsdaten fehlen oder sind fehlerhaft. Kehre zu deinem MCP-Client zurück und versuche es erneut.`,"oauth.apps.eyebrow":`Dein Konto`,"oauth.apps.body":`Diese MCP-Clients können die Verwaltungswerkzeuge der Website verwenden. Jede Aktion wird weiterhin anhand deiner aktuellen Kontoberechtigungen geprüft.`,"oauth.apps.empty":`Keine MCP-Clients verbunden.`,"oauth.apps.revoke":`Verbindung trennen`,"collection.filter.all":`Alle`,"nav.home":`Start`,"nav.overview":`Übersicht`,"nav.model":`Datenmodell`,"nav.logic":`Logik`,"nav.docs":`Schnittstellen`,"nav.build":`Build`,"nav.content":`Inhalte`,"nav.operations":`Datensätze`,"nav.media":`Medienbibliothek`,"nav.more":`Mehr`,"nav.settings":`Einstellungen`,"nav.staff":`Admin-Benutzer`,"nav.members":`Mitglieder`,"nav.reports":`Berichte`,"nav.localizedContent":`Enthält lokalisierte Inhalte`,"common.yes":`Ja`,"common.no":`Nein`,"model.title":`Datenmodell`,"model.schemas":`Schemas`,"model.views":`Ansichten`,"model.objects":`Datenmodellobjekte`,"model.search":`Datenmodell durchsuchen`,"model.fields":`Felder`,"model.path":`Pfad`,"model.type":`Typ`,"model.required":`Erforderlich`,"model.constraints":`Einschränkungen`,"model.noFields":`Es sind keine Objekteigenschaften deklariert.`,"model.rawSchema":`JSON-Schema`,"model.rawQuery":`Abfrageplan`,"model.queryKind":`Abfrage`,"model.source":`Quelle`,"model.allFields":`Alle Felder`,"model.order":`Reihenfolge`,"model.limit":`Limit`,"model.dialect":`Dialekt`,"model.filter":`Filter`,"model.params":`Parameter`,"model.relationships":`Beziehungen`,"model.references":`Dieses Element verweist auf`,"model.referencedBy":`Verweist auf dieses Element`,"model.noRelations":`Keine Manifest-Beziehungen deklariert.`,"model.openGraph":`Im Graph anzeigen`,"model.openDeclaration":`Manifest-Deklaration öffnen`,"model.manifest":`Manifest`,"model.compiledManifest":`Kompiliertes Manifest`,"model.marker.reference":`Verweis auf {target}`,"model.marker.translationParent":`Übersetzungsverknüpfung zum übergeordneten Element {target}`,"model.marker.translationChild":`Übersetzungsverknüpfung vom untergeordneten Element {target}`,"model.marker.unique":`Eindeutiger Index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logik`,"logic.objects":`Logikobjekte`,"logic.search":`Logik durchsuchen`,"logic.triggers":`Trigger`,"logic.procedures":`Prozeduren`,"logic.overview":`Übersicht`,"logic.contract":`Vertrag`,"logic.configuration":`Konfiguration`,"logic.contractFrom":`Dieser Einstiegspunkt verwendet den von {target} deklarierten Vertrag.`,"logic.input":`Eingabe`,"logic.output":`Ausgabe`,"logic.noContract":`Für die Zielprozedur ist kein Vertrag verfügbar.`,"logic.execution":`Ausführungspfad`,"logic.target":`Zielprozedur`,"logic.authorization":`Autorisierung`,"logic.noAuthorization":`Es sind keine Autorisierungsbedingungen deklariert.`,"logic.guard":`Wächterprozedur`,"logic.method":`Methode`,"logic.surface":`Oberfläche`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Fehlerrichtlinie`,"docs.title":`API- und Agentenschnittstellen`,"docs.intro":`Aus RuntimePlan abgeleitete Referenz für HTTP-, MCP- und Browser-WebMCP-Einstiegspunkte.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-Trigger und automatisch veröffentlichte Routen öffentlicher Ansichten.`,"docs.mcpIntro":`Aus Ansichten und expliziten MCP-Triggern erzeugte Werkzeuge. Die Autorisierung wird bei der Ausführung weiterhin geprüft.`,"docs.webmcpIntro":`Diese servergestützte Anbindung erkennt öffentliche Ansichten über HTTP und registriert sie als schreibgeschützte Browser-Werkzeuge. Jede Ansicht behält ihre eigenen Zielgruppenregeln.`,"docs.publicEndpoint":`Öffentlicher Endpunkt`,"docs.staffEndpoint":`Mitarbeiter-Endpunkt`,"docs.catalogEndpoint":`Erkennungskatalog`,"docs.target":`Ziel`,"docs.inputSchema":`Eingabeschema`,"docs.outputSchema":`Ausgabeschema`,"docs.readOnly":`Schreibgeschützt`,"docs.noEntries":`Für diese Schnittstelle sind keine Einstiegspunkte deklariert.`,"docs.webmcpNote":`Öffentliche Prozedurwerkzeuge bleiben über MCP verfügbar. Der servergestützte WebMCP-HTTP-Wrapper registriert absichtlich nur öffentliche Ansichten.`,"developer.graph.title":`Manifest-Graph`,"developer.graph.details":`Elementdetails`,"developer.graph.openModel":`Im Datenmodell öffnen`,"developer.graph.openLogic":`Logikdetails öffnen`,"developer.graph.relayout":`Automatisch anordnen`,"developer.graph.previous":`Vorheriger Schritt`,"developer.graph.next":`Nächster Schritt`,"developer.graph.step":`Schritt {current} von {total}`,"developer.graph.comesFrom":`Kommt von`,"developer.graph.continuesTo":`Weiter zu`,"developer.graph.manifestSource":`Manifest-Quelle`,"developer.graph.builtin":`Integriert`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`Ansicht`,"developer.graph.kind.procedure":`Prozedur`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Zielgruppe`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Handler`,"developer.graph.fact.operation":`Operation`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Übereinstimmung`,"developer.graph.summary.trigger":`Anfragen von {audience} gehen über {transport} ein und werden an {target} weitergeleitet.`,"developer.graph.summary.builtin":`Eine integrierte {op}-Operation schreibt in {schema}.`,"developer.graph.summary.ref":`Diese Prozedur führt den registrierten Code-Handler {ref} aus.`,"developer.graph.summary.view":`Eine schreibgeschützte Ansicht von {target} für {audience}.`,"developer.graph.summary.schema":`{incoming} Elemente verwenden dieses Schema; es verweist auf {outgoing} weitere Elemente.`,"developer.graph.audience.public":`Öffentlich`,"developer.graph.audience.members":`Mitglieder`,"developer.graph.audience.staff":`Mitarbeiter`,"developer.graph.audience.system":`System`,"developer.graph.audience.apiClients":`API-Clients`,"developer.graph.audienceDescription.public":`Ohne Anmeldung verfügbar.`,"developer.graph.audienceDescription.members":`Jedes angemeldete Mitglied. Keine Website-Rolle erforderlich.`,"developer.graph.audienceDescription.staff":`Ein angemeldetes Mitglied mit der Website-Rolle Mitwirkender, Redakteur oder Eigentümer. Mitarbeiter ist eine Zugriffsstufe, kein separates Admin-Konto.`,"developer.graph.audienceDescription.system":`Wird automatisch durch Lebenszyklus-, Warteschlangen- oder Zeitplanereignisse ausgeführt.`,"developer.graph.audienceDescription.apiClients":`Erfordert einen authentifizierten API-Client oder passenden Geltungsbereich.`,"developer.graph.relation.translationParent":`übersetzt`,"developer.graph.relation.schemaReference":`verweist auf`,"developer.graph.relation.viewSource":`liest aus`,"developer.graph.relation.guard":`geschützt durch`,"developer.graph.relation.procedureSchema":`verarbeitet Schema`,"developer.graph.relation.collectionAction":`wirkt auf`,"developer.graph.relation.inputReference":`verweist auf`,"developer.graph.relation.triggerTarget":`ruft auf`,"developer.graph.relation.lifecycleSource":`überwacht Lebenszyklus`,"status.draft":`Entwürfe`,"status.published":`Veröffentlicht`,"status.archived":`Archiviert`,"preferences.heading":`Präferenzen`,"preferences.language":`Admin-Sprache`,"preferences.language.search":`Sprachen suchen...`,"preferences.language.noResults":`Keine Sprachen gefunden.`,"preferences.direction":`Textrichtung`,"preferences.direction.auto":`Die Textrichtung folgt der gewählten Sprache.`,"preferences.appearance":`Darstellung`,"preferences.light":`Hell`,"preferences.dark":`Dunkel`,"preferences.system":`System`,"preferences.ltr":`Links nach rechts`,"preferences.rtl":`Rechts nach links`,"preferences.page.open":`Präferenzen`,"preferences.page.title":`Persönliche Präferenzen`,"preferences.page.body":`Diese Präferenzen bleiben in diesem Browser. Sie ändern nur die Admin-Konsole und keine Website-Einstellungen.`,"preferences.page.languageBody":`Wähle die Sprache für Systemseiten und Admin-Chrome.`,"preferences.page.appearanceBody":`Wähle hell, dunkel oder dein Betriebssystem.`},es:{"admin.consoleTitle":`Consola de administración`,"developer.workspaceTitle":`Desarrollo`,"auth.signIn.title":`Iniciar sesión`,"common.signOut":`Cerrar sesión`,"common.viewSite":`Ver sitio`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Error al cargar`,"common.signedIn":`Sesión iniciada`,"common.contentAdmin":`Administración de contenido`,"common.close":`Cerrar`,"common.skipToMain":`Ir al contenido principal`,"common.breadcrumb":`Ruta de navegación`,"common.toggleSidebar":`Alternar barra lateral`,"common.mobileSidebar":`Navegación`,"common.mobileSidebarDescription":`Navegación de administración del sitio`,"oauth.connectedApps":`Conexiones MCP`,"oauth.consent.eyebrow":`Conectar un cliente MCP`,"oauth.consent.heading":`¿Conectar {client}?`,"oauth.consent.body":`{client} podrá usar las herramientas de administración de este sitio mediante MCP. Lo que puede ver o cambiar seguirá limitado por los permisos de tu cuenta.`,"oauth.consent.approve":`Conectar`,"oauth.consent.deny":`Cancelar`,"oauth.consent.invalidTitle":`Solicitud de autorización no válida`,"oauth.consent.invalidBody":`Faltan los datos de autorización o su formato no es válido. Vuelve a tu cliente MCP e inténtalo de nuevo.`,"oauth.apps.eyebrow":`Tu cuenta`,"oauth.apps.body":`Estos clientes MCP pueden usar las herramientas de administración del sitio. Cada acción se sigue comprobando según los permisos actuales de tu cuenta.`,"oauth.apps.empty":`No hay clientes MCP conectados.`,"oauth.apps.revoke":`Desconectar`,"collection.filter.all":`Todo`,"nav.home":`Inicio`,"nav.overview":`Resumen`,"nav.model":`Modelo de datos`,"nav.logic":`Lógica`,"nav.docs":`Interfaces`,"nav.build":`Compilación`,"nav.content":`Contenido`,"nav.operations":`Registros`,"nav.media":`Biblioteca multimedia`,"nav.more":`Más`,"nav.settings":`Configuración`,"nav.staff":`Usuarios administradores`,"nav.members":`Miembros`,"nav.reports":`Informes`,"nav.localizedContent":`Contiene contenido localizado`,"common.yes":`Sí`,"common.no":`No`,"model.title":`Modelo de datos`,"model.schemas":`Esquemas`,"model.views":`Vistas`,"model.objects":`Objetos del modelo de datos`,"model.search":`Buscar en el modelo de datos`,"model.fields":`Campos`,"model.path":`Ruta`,"model.type":`Tipo`,"model.required":`Obligatorio`,"model.constraints":`Restricciones`,"model.noFields":`No se han declarado propiedades del objeto.`,"model.rawSchema":`Esquema JSON`,"model.rawQuery":`Plan de consulta`,"model.queryKind":`Consulta`,"model.source":`Origen`,"model.allFields":`Todos los campos`,"model.order":`Orden`,"model.limit":`Límite`,"model.dialect":`Dialecto`,"model.filter":`Filtro`,"model.params":`Parámetros`,"model.relationships":`Relaciones`,"model.references":`Este elemento hace referencia a`,"model.referencedBy":`Hace referencia a este elemento`,"model.noRelations":`No se declararon relaciones en el Manifest.`,"model.openGraph":`Mostrar en el grafo`,"model.openDeclaration":`Abrir declaración del Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilado`,"model.marker.reference":`Referencia a {target}`,"model.marker.translationParent":`Unión de traducción al elemento superior {target}`,"model.marker.translationChild":`Unión de traducción desde el elemento secundario {target}`,"model.marker.unique":`Índice único UQ{index}: {fields}`,"model.marker.index":`Índice IDX{index}: {fields}`,"logic.title":`Lógica`,"logic.objects":`Objetos lógicos`,"logic.search":`Buscar lógica`,"logic.triggers":`Disparadores`,"logic.procedures":`Procedimientos`,"logic.overview":`Resumen`,"logic.contract":`Contrato`,"logic.configuration":`Configuración`,"logic.contractFrom":`Este punto de entrada usa el contrato declarado por {target}.`,"logic.input":`Entrada`,"logic.output":`Salida`,"logic.noContract":`No hay un contrato disponible para el procedimiento de destino.`,"logic.execution":`Ruta de ejecución`,"logic.target":`Procedimiento de destino`,"logic.authorization":`Autorización`,"logic.noAuthorization":`No se declararon condiciones de autorización.`,"logic.guard":`Procedimiento de protección`,"logic.method":`Método`,"logic.surface":`Ámbito`,"logic.hooks":`Enlaces`,"logic.errorPolicy":`Política de errores`,"docs.title":`Interfaces de API y agentes`,"docs.intro":`Referencia derivada de RuntimePlan para puntos de entrada HTTP, MCP y WebMCP del navegador.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Disparadores HTTP y rutas de vistas públicas expuestas automáticamente.`,"docs.mcpIntro":`Herramientas generadas a partir de vistas y disparadores MCP explícitos. La autorización sigue aplicándose al ejecutar una herramienta.`,"docs.webmcpIntro":`Esta integración respaldada por el servidor descubre vistas públicas mediante HTTP y las registra como herramientas de navegador de solo lectura. Cada vista conserva sus propias reglas de audiencia.`,"docs.publicEndpoint":`Punto de conexión público`,"docs.staffEndpoint":`Punto de conexión del personal`,"docs.catalogEndpoint":`Catálogo de descubrimiento`,"docs.target":`Destino`,"docs.inputSchema":`Esquema de entrada`,"docs.outputSchema":`Esquema de salida`,"docs.readOnly":`Solo lectura`,"docs.noEntries":`No se declararon puntos de entrada para esta interfaz.`,"docs.webmcpNote":`Las herramientas de procedimientos públicos permanecen en MCP. El contenedor HTTP de WebMCP respaldado por el servidor registra intencionalmente solo vistas públicas.`,"developer.graph.title":`Grafo del Manifest`,"developer.graph.details":`Detalles del elemento`,"developer.graph.openModel":`Abrir en el modelo de datos`,"developer.graph.openLogic":`Abrir detalles de lógica`,"developer.graph.relayout":`Diseño automático`,"developer.graph.previous":`Paso anterior`,"developer.graph.next":`Paso siguiente`,"developer.graph.step":`Paso {current} de {total}`,"developer.graph.comesFrom":`Proviene de`,"developer.graph.continuesTo":`Continúa en`,"developer.graph.manifestSource":`Origen del Manifest`,"developer.graph.builtin":`Integrado`,"developer.graph.kind.schema":`Esquema`,"developer.graph.kind.view":`Vista`,"developer.graph.kind.procedure":`Procedimiento`,"developer.graph.kind.trigger":`Disparador`,"developer.graph.fact.audience":`Audiencia`,"developer.graph.fact.transport":`Transporte`,"developer.graph.fact.handler":`Controlador`,"developer.graph.fact.operation":`Operación`,"developer.graph.fact.schema":`Esquema`,"developer.graph.fact.match":`Coincidencia`,"developer.graph.summary.trigger":`Las solicitudes de {audience} entran por {transport} y continúan hacia {target}.`,"developer.graph.summary.builtin":`Una operación integrada {op} escribe en {schema}.`,"developer.graph.summary.ref":`Este procedimiento ejecuta el controlador de código registrado {ref}.`,"developer.graph.summary.view":`Una vista de solo lectura de {target} para {audience}.`,"developer.graph.summary.schema":`{incoming} elementos usan este esquema; hace referencia a otros {outgoing} elementos.`,"developer.graph.audience.public":`Público`,"developer.graph.audience.members":`Miembros`,"developer.graph.audience.staff":`Personal`,"developer.graph.audience.system":`Sistema`,"developer.graph.audience.apiClients":`Clientes de API`,"developer.graph.audienceDescription.public":`Disponible sin iniciar sesión.`,"developer.graph.audienceDescription.members":`Cualquier miembro con sesión iniciada. No se requiere un rol del sitio.`,"developer.graph.audienceDescription.staff":`Un miembro con sesión iniciada y un rol de colaborador, editor o propietario. Personal es un nivel de acceso, no una cuenta de administrador independiente.`,"developer.graph.audienceDescription.system":`Se ejecuta automáticamente a partir de eventos de ciclo de vida, cola o programación.`,"developer.graph.audienceDescription.apiClients":`Requiere un cliente de API autenticado o un ámbito adecuado.`,"developer.graph.relation.translationParent":`traduce`,"developer.graph.relation.schemaReference":`hace referencia a`,"developer.graph.relation.viewSource":`lee de`,"developer.graph.relation.guard":`protegido por`,"developer.graph.relation.procedureSchema":`procesa el esquema`,"developer.graph.relation.collectionAction":`actúa sobre`,"developer.graph.relation.inputReference":`hace referencia a`,"developer.graph.relation.triggerTarget":`invoca`,"developer.graph.relation.lifecycleSource":`observa el ciclo de vida`,"status.draft":`Borradores`,"status.published":`Publicado`,"status.archived":`Archivado`,"preferences.heading":`Preferencias`,"preferences.language":`Idioma del admin`,"preferences.language.search":`Buscar idiomas...`,"preferences.language.noResults":`No se encontraron idiomas.`,"preferences.direction":`Dirección del texto`,"preferences.direction.auto":`La dirección del texto sigue el idioma seleccionado.`,"preferences.appearance":`Apariencia`,"preferences.light":`Claro`,"preferences.dark":`Oscuro`,"preferences.system":`Sistema`,"preferences.ltr":`Izquierda a derecha`,"preferences.rtl":`Derecha a izquierda`,"preferences.page.open":`Preferencias`,"preferences.page.title":`Preferencias personales`,"preferences.page.body":`Estas preferencias se guardan en este navegador. Solo cambian la consola de administración y no modifican la configuración del sitio.`,"preferences.page.languageBody":`Elige el idioma de las páginas del sistema y la interfaz de administración.`,"preferences.page.appearanceBody":`Elige claro, oscuro o seguir el sistema operativo.`},fr:{"admin.consoleTitle":`Console d’administration`,"developer.workspaceTitle":`Développement`,"auth.signIn.title":`Se connecter`,"common.signOut":`Se déconnecter`,"common.viewSite":`Voir le site`,"common.copy":`Copier`,"common.open":`Ouvrir`,"common.failedToLoad":`Échec du chargement`,"common.signedIn":`Connecté`,"common.contentAdmin":`Administration du contenu`,"common.close":`Fermer`,"common.skipToMain":`Aller au contenu principal`,"common.breadcrumb":`Fil d’Ariane`,"common.toggleSidebar":`Afficher ou masquer la barre latérale`,"common.mobileSidebar":`Navigation`,"common.mobileSidebarDescription":`Navigation d’administration du site`,"oauth.connectedApps":`Connexions MCP`,"oauth.consent.eyebrow":`Connecter un client MCP`,"oauth.consent.heading":`Connecter {client} ?`,"oauth.consent.body":`{client} pourra utiliser les outils d’administration de ce site via MCP. Ce qu’il peut consulter ou modifier reste limité par les autorisations de votre compte.`,"oauth.consent.approve":`Connecter`,"oauth.consent.deny":`Annuler`,"oauth.consent.invalidTitle":`Demande d’autorisation non valide`,"oauth.consent.invalidBody":`Les données d’autorisation sont absentes ou incorrectes. Revenez à votre client MCP et réessayez.`,"oauth.apps.eyebrow":`Votre compte`,"oauth.apps.body":`Ces clients MCP peuvent utiliser les outils d’administration du site. Chaque action reste vérifiée selon les autorisations actuelles de votre compte.`,"oauth.apps.empty":`Aucun client MCP n’est connecté.`,"oauth.apps.revoke":`Déconnecter`,"collection.filter.all":`Tout`,"nav.home":`Accueil`,"nav.overview":`Vue d’ensemble`,"nav.model":`Modèle de données`,"nav.logic":`Logique`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Contenu`,"nav.operations":`Enregistrements`,"nav.media":`Médiathèque`,"nav.more":`Plus`,"nav.settings":`Paramètres`,"nav.staff":`Utilisateurs administrateurs`,"nav.members":`Membres`,"nav.reports":`Rapports`,"nav.localizedContent":`Contient du contenu localisé`,"common.yes":`Oui`,"common.no":`Non`,"model.title":`Modèle de données`,"model.schemas":`Schémas`,"model.views":`Vues`,"model.objects":`Objets du modèle de données`,"model.search":`Rechercher dans le modèle de données`,"model.fields":`Champs`,"model.path":`Chemin`,"model.type":`Type`,"model.required":`Obligatoire`,"model.constraints":`Contraintes`,"model.noFields":`Aucune propriété d’objet n’est déclarée.`,"model.rawSchema":`Schéma JSON`,"model.rawQuery":`Plan de requête`,"model.queryKind":`Requête`,"model.source":`Source`,"model.allFields":`Tous les champs`,"model.order":`Ordre`,"model.limit":`Limite`,"model.dialect":`Dialecte`,"model.filter":`Filtre`,"model.params":`Paramètres`,"model.relationships":`Relations`,"model.references":`Cet élément fait référence à`,"model.referencedBy":`Fait référence à cet élément`,"model.noRelations":`Aucune relation n’est déclarée dans le Manifest.`,"model.openGraph":`Afficher dans le graphe`,"model.openDeclaration":`Ouvrir la déclaration du Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilé`,"model.marker.reference":`Référence à {target}`,"model.marker.translationParent":`Jointure de traduction vers le parent {target}`,"model.marker.translationChild":`Jointure de traduction depuis l’enfant {target}`,"model.marker.unique":`Index unique UQ{index} : {fields}`,"model.marker.index":`Index IDX{index} : {fields}`,"logic.title":`Logique`,"logic.objects":`Objets logiques`,"logic.search":`Rechercher dans la logique`,"logic.triggers":`Déclencheurs`,"logic.procedures":`Procédures`,"logic.overview":`Vue d’ensemble`,"logic.contract":`Contrat`,"logic.configuration":`Configuration`,"logic.contractFrom":`Ce point d’entrée utilise le contrat déclaré par {target}.`,"logic.input":`Entrée`,"logic.output":`Sortie`,"logic.noContract":`Aucun contrat de procédure cible n’est disponible.`,"logic.execution":`Chemin d’exécution`,"logic.target":`Procédure cible`,"logic.authorization":`Autorisation`,"logic.noAuthorization":`Aucune condition d’autorisation n’est déclarée.`,"logic.guard":`Procédure de garde`,"logic.method":`Méthode`,"logic.surface":`Portée`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Politique d’erreur`,"docs.title":`Interfaces API et agents`,"docs.intro":`Référence dérivée de RuntimePlan pour les points d’entrée HTTP, MCP et WebMCP du navigateur.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Déclencheurs HTTP et routes de vues publiques exposées automatiquement.`,"docs.mcpIntro":`Outils générés à partir des vues et des déclencheurs MCP explicites. L’autorisation reste appliquée à l’exécution.`,"docs.webmcpIntro":`Cette intégration côté serveur découvre les vues publiques via HTTP et les enregistre comme outils de navigateur en lecture seule. Chaque vue conserve ses propres règles d’audience.`,"docs.publicEndpoint":`Point d’entrée public`,"docs.staffEndpoint":`Point d’entrée du personnel`,"docs.catalogEndpoint":`Catalogue de découverte`,"docs.target":`Cible`,"docs.inputSchema":`Schéma d’entrée`,"docs.outputSchema":`Schéma de sortie`,"docs.readOnly":`Lecture seule`,"docs.noEntries":`Aucun point d’entrée n’est déclaré pour cette interface.`,"docs.webmcpNote":`Les outils de procédures publiques restent disponibles via MCP. Le wrapper HTTP WebMCP côté serveur n’enregistre volontairement que les vues publiques.`,"developer.graph.title":`Graphe du Manifest`,"developer.graph.details":`Détails de l’élément`,"developer.graph.openModel":`Ouvrir dans le modèle de données`,"developer.graph.openLogic":`Ouvrir les détails de la logique`,"developer.graph.relayout":`Disposition automatique`,"developer.graph.previous":`Étape précédente`,"developer.graph.next":`Étape suivante`,"developer.graph.step":`Étape {current} sur {total}`,"developer.graph.comesFrom":`Provient de`,"developer.graph.continuesTo":`Continue vers`,"developer.graph.manifestSource":`Source du Manifest`,"developer.graph.builtin":`Intégré`,"developer.graph.kind.schema":`Schéma`,"developer.graph.kind.view":`Vue`,"developer.graph.kind.procedure":`Procédure`,"developer.graph.kind.trigger":`Déclencheur`,"developer.graph.fact.audience":`Audience`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Gestionnaire`,"developer.graph.fact.operation":`Opération`,"developer.graph.fact.schema":`Schéma`,"developer.graph.fact.match":`Correspondance`,"developer.graph.summary.trigger":`Les requêtes de {audience} arrivent via {transport} et continuent vers {target}.`,"developer.graph.summary.builtin":`Une opération intégrée {op} écrit dans {schema}.`,"developer.graph.summary.ref":`Cette procédure exécute le gestionnaire de code enregistré {ref}.`,"developer.graph.summary.view":`Une vue en lecture seule de {target} pour {audience}.`,"developer.graph.summary.schema":`{incoming} éléments utilisent ce schéma ; il référence {outgoing} autres éléments.`,"developer.graph.audience.public":`Public`,"developer.graph.audience.members":`Membres`,"developer.graph.audience.staff":`Personnel`,"developer.graph.audience.system":`Système`,"developer.graph.audience.apiClients":`Clients API`,"developer.graph.audienceDescription.public":`Disponible sans connexion.`,"developer.graph.audienceDescription.members":`Tout membre connecté. Aucun rôle de site n’est requis.`,"developer.graph.audienceDescription.staff":`Un membre connecté ayant le rôle de contributeur, éditeur ou propriétaire. Le personnel est un niveau d’accès, pas un compte administrateur distinct.`,"developer.graph.audienceDescription.system":`S’exécute automatiquement à partir d’événements de cycle de vie, de file d’attente ou de planification.`,"developer.graph.audienceDescription.apiClients":`Nécessite un client API authentifié ou une portée appropriée.`,"developer.graph.relation.translationParent":`traduit`,"developer.graph.relation.schemaReference":`référence`,"developer.graph.relation.viewSource":`lit depuis`,"developer.graph.relation.guard":`protégé par`,"developer.graph.relation.procedureSchema":`traite le schéma`,"developer.graph.relation.collectionAction":`agit sur`,"developer.graph.relation.inputReference":`référence`,"developer.graph.relation.triggerTarget":`appelle`,"developer.graph.relation.lifecycleSource":`surveille le cycle de vie`,"status.draft":`Brouillons`,"status.published":`Publié`,"status.archived":`Archivé`,"preferences.heading":`Préférences`,"preferences.language":`Langue admin`,"preferences.language.search":`Rechercher une langue...`,"preferences.language.noResults":`Aucune langue trouvée.`,"preferences.direction":`Direction du texte`,"preferences.direction.auto":`La direction du texte suit la langue sélectionnée.`,"preferences.appearance":`Apparence`,"preferences.light":`Clair`,"preferences.dark":`Sombre`,"preferences.system":`Système`,"preferences.ltr":`Gauche à droite`,"preferences.rtl":`Droite à gauche`,"preferences.page.open":`Préférences`,"preferences.page.title":`Préférences personnelles`,"preferences.page.body":`Ces préférences restent dans ce navigateur. Elles modifient seulement la console admin, pas les paramètres du site.`,"preferences.page.languageBody":`Choisissez la langue des pages système et de l'interface admin.`,"preferences.page.appearanceBody":`Choisissez clair, sombre ou le thème du système.`},it:{"admin.consoleTitle":`Console di amministrazione`,"developer.workspaceTitle":`Sviluppo`,"auth.signIn.title":`Accedi`,"common.signOut":`Esci`,"common.viewSite":`Vedi sito`,"common.copy":`Copia`,"common.open":`Apri`,"common.failedToLoad":`Caricamento non riuscito`,"common.signedIn":`Accesso effettuato`,"common.contentAdmin":`Amministrazione contenuti`,"common.close":`Chiudi`,"common.skipToMain":`Vai al contenuto principale`,"common.breadcrumb":`Percorso di navigazione`,"common.toggleSidebar":`Mostra o nascondi barra laterale`,"common.mobileSidebar":`Navigazione`,"common.mobileSidebarDescription":`Navigazione di amministrazione del sito`,"oauth.connectedApps":`Connessioni MCP`,"oauth.consent.eyebrow":`Connetti un client MCP`,"oauth.consent.heading":`Connettere {client}?`,"oauth.consent.body":`{client} potrà usare gli strumenti di amministrazione di questo sito tramite MCP. Ciò che può visualizzare o modificare resta limitato dalle autorizzazioni del tuo account.`,"oauth.consent.approve":`Connetti`,"oauth.consent.deny":`Annulla`,"oauth.consent.invalidTitle":`Richiesta di autorizzazione non valida`,"oauth.consent.invalidBody":`I dati di autorizzazione sono mancanti o non validi. Torna al client MCP e riprova.`,"oauth.apps.eyebrow":`Il tuo account`,"oauth.apps.body":`Questi client MCP possono usare gli strumenti di amministrazione del sito. Ogni azione viene comunque verificata in base alle autorizzazioni correnti del tuo account.`,"oauth.apps.empty":`Nessun client MCP connesso.`,"oauth.apps.revoke":`Disconnetti`,"collection.filter.all":`Tutto`,"nav.home":`Home`,"nav.overview":`Panoramica`,"nav.model":`Modello dati`,"nav.logic":`Logica`,"nav.docs":`Interfacce`,"nav.build":`Build`,"nav.content":`Contenuti`,"nav.operations":`Record`,"nav.media":`Libreria multimediale`,"nav.more":`Altro`,"nav.settings":`Impostazioni`,"nav.staff":`Utenti amministratori`,"nav.members":`Membri`,"nav.reports":`Report`,"nav.localizedContent":`Contiene contenuti localizzati`,"common.yes":`Sì`,"common.no":`No`,"model.title":`Modello dati`,"model.schemas":`Schemi`,"model.views":`Viste`,"model.objects":`Oggetti del modello dati`,"model.search":`Cerca nel modello dati`,"model.fields":`Campi`,"model.path":`Percorso`,"model.type":`Tipo`,"model.required":`Obbligatorio`,"model.constraints":`Vincoli`,"model.noFields":`Non sono dichiarate proprietà dell’oggetto.`,"model.rawSchema":`Schema JSON`,"model.rawQuery":`Piano di query`,"model.queryKind":`Query`,"model.source":`Origine`,"model.allFields":`Tutti i campi`,"model.order":`Ordinamento`,"model.limit":`Limite`,"model.dialect":`Dialetto`,"model.filter":`Filtro`,"model.params":`Parametri`,"model.relationships":`Relazioni`,"model.references":`Questo elemento fa riferimento a`,"model.referencedBy":`Fa riferimento a questo elemento`,"model.noRelations":`Nessuna relazione dichiarata nel Manifest.`,"model.openGraph":`Mostra nel grafo`,"model.openDeclaration":`Apri dichiarazione del Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilato`,"model.marker.reference":`Riferimento a {target}`,"model.marker.translationParent":`Collegamento di traduzione al genitore {target}`,"model.marker.translationChild":`Collegamento di traduzione dal figlio {target}`,"model.marker.unique":`Indice univoco UQ{index}: {fields}`,"model.marker.index":`Indice IDX{index}: {fields}`,"logic.title":`Logica`,"logic.objects":`Oggetti logici`,"logic.search":`Cerca nella logica`,"logic.triggers":`Trigger`,"logic.procedures":`Procedure`,"logic.overview":`Panoramica`,"logic.contract":`Contratto`,"logic.configuration":`Configurazione`,"logic.contractFrom":`Questo punto di ingresso usa il contratto dichiarato da {target}.`,"logic.input":`Input`,"logic.output":`Output`,"logic.noContract":`Non è disponibile alcun contratto per la procedura di destinazione.`,"logic.execution":`Percorso di esecuzione`,"logic.target":`Procedura di destinazione`,"logic.authorization":`Autorizzazione`,"logic.noAuthorization":`Non sono dichiarate condizioni di autorizzazione.`,"logic.guard":`Procedura di protezione`,"logic.method":`Metodo`,"logic.surface":`Ambito`,"logic.hooks":`Hook`,"logic.errorPolicy":`Criterio errori`,"docs.title":`Interfacce API e agenti`,"docs.intro":`Riferimento derivato da RuntimePlan per punti di ingresso HTTP, MCP e WebMCP del browser.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Trigger HTTP e route delle viste pubbliche esposte automaticamente.`,"docs.mcpIntro":`Strumenti generati dalle viste e dai trigger MCP espliciti. L’autorizzazione viene comunque applicata durante l’esecuzione.`,"docs.webmcpIntro":`Questa integrazione lato server rileva le viste pubbliche tramite HTTP e le registra come strumenti del browser di sola lettura. Ogni vista conserva le proprie regole di pubblico.`,"docs.publicEndpoint":`Endpoint pubblico`,"docs.staffEndpoint":`Endpoint del personale`,"docs.catalogEndpoint":`Catalogo di rilevamento`,"docs.target":`Destinazione`,"docs.inputSchema":`Schema di input`,"docs.outputSchema":`Schema di output`,"docs.readOnly":`Sola lettura`,"docs.noEntries":`Non sono dichiarati punti di ingresso per questa interfaccia.`,"docs.webmcpNote":`Gli strumenti delle procedure pubbliche restano disponibili tramite MCP. Il wrapper HTTP WebMCP lato server registra intenzionalmente solo le viste pubbliche.`,"developer.graph.title":`Grafo del Manifest`,"developer.graph.details":`Dettagli elemento`,"developer.graph.openModel":`Apri nel modello dati`,"developer.graph.openLogic":`Apri dettagli logica`,"developer.graph.relayout":`Disposizione automatica`,"developer.graph.previous":`Passaggio precedente`,"developer.graph.next":`Passaggio successivo`,"developer.graph.step":`Passaggio {current} di {total}`,"developer.graph.comesFrom":`Proviene da`,"developer.graph.continuesTo":`Continua verso`,"developer.graph.manifestSource":`Origine del Manifest`,"developer.graph.builtin":`Integrato`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`Vista`,"developer.graph.kind.procedure":`Procedura`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Pubblico`,"developer.graph.fact.transport":`Trasporto`,"developer.graph.fact.handler":`Gestore`,"developer.graph.fact.operation":`Operazione`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Corrispondenza`,"developer.graph.summary.trigger":`Le richieste da {audience} entrano tramite {transport} e continuano verso {target}.`,"developer.graph.summary.builtin":`Un’operazione integrata {op} scrive in {schema}.`,"developer.graph.summary.ref":`Questa procedura esegue il gestore di codice registrato {ref}.`,"developer.graph.summary.view":`Una vista di sola lettura di {target} per {audience}.`,"developer.graph.summary.schema":`{incoming} elementi usano questo schema; fa riferimento ad altri {outgoing} elementi.`,"developer.graph.audience.public":`Pubblico`,"developer.graph.audience.members":`Membri`,"developer.graph.audience.staff":`Personale`,"developer.graph.audience.system":`Sistema`,"developer.graph.audience.apiClients":`Client API`,"developer.graph.audienceDescription.public":`Disponibile senza accesso.`,"developer.graph.audienceDescription.members":`Qualsiasi membro autenticato. Non è richiesto alcun ruolo del sito.`,"developer.graph.audienceDescription.staff":`Un membro autenticato con ruolo di collaboratore, editor o proprietario. Il personale è un livello di accesso, non un account amministratore separato.`,"developer.graph.audienceDescription.system":`Viene eseguito automaticamente da eventi del ciclo di vita, della coda o pianificati.`,"developer.graph.audienceDescription.apiClients":`Richiede un client API autenticato o un ambito appropriato.`,"developer.graph.relation.translationParent":`traduce`,"developer.graph.relation.schemaReference":`fa riferimento a`,"developer.graph.relation.viewSource":`legge da`,"developer.graph.relation.guard":`protetto da`,"developer.graph.relation.procedureSchema":`gestisce lo schema`,"developer.graph.relation.collectionAction":`agisce su`,"developer.graph.relation.inputReference":`fa riferimento a`,"developer.graph.relation.triggerTarget":`richiama`,"developer.graph.relation.lifecycleSource":`osserva il ciclo di vita`,"status.draft":`Bozze`,"status.published":`Pubblicato`,"status.archived":`Archiviato`,"preferences.heading":`Preferenze`,"preferences.language":`Lingua admin`,"preferences.language.search":`Cerca lingue...`,"preferences.language.noResults":`Nessuna lingua trovata.`,"preferences.direction":`Direzione testo`,"preferences.direction.auto":`La direzione del testo segue la lingua selezionata.`,"preferences.appearance":`Aspetto`,"preferences.light":`Chiaro`,"preferences.dark":`Scuro`,"preferences.system":`Sistema`,"preferences.ltr":`Da sinistra a destra`,"preferences.rtl":`Da destra a sinistra`,"preferences.page.open":`Preferenze`,"preferences.page.title":`Preferenze personali`,"preferences.page.body":`Queste preferenze restano in questo browser. Modificano solo la console admin e non le impostazioni del sito.`,"preferences.page.languageBody":`Scegli la lingua delle pagine di sistema e dell'interfaccia admin.`,"preferences.page.appearanceBody":`Scegli chiaro, scuro o segui il sistema operativo.`},ja:{"admin.consoleTitle":`管理コンソール`,"developer.workspaceTitle":`開発`,"auth.signIn.title":`サインイン`,"auth.signIn.methodsLoadFailed":`サインイン方法を読み込めませんでした。再読み込みしてください。`,"auth.signIn.noMethods":`このサイトにはサインイン方法が設定されていません。`,"auth.signIn.unknownMethod":`未対応のサインイン方法: {kind}`,"auth.signIn.method.social.button":`{provider} でサインイン`,"auth.signIn.method.email-otp.body":`メールに届くワンタイムコードでサインインします。`,"auth.signIn.method.email-otp.emailLabel":`メールアドレス`,"auth.signIn.method.email-otp.emailPlaceholder":`you@example.com`,"auth.signIn.method.email-otp.sendButton":`コードを送信`,"auth.signIn.method.email-otp.sendFailed":`コードの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.email-otp.sentTo":`{email} にコードを送信しました。`,"auth.signIn.method.email-otp.otpLabel":`ワンタイムコード`,"auth.signIn.method.email-otp.otpPlaceholder":`6 桁のコードを入力`,"auth.signIn.method.email-otp.verifyButton":`コードを確認してサインイン`,"auth.signIn.method.email-otp.verifyFailed":`コードが一致しません。もう一度入力してください。`,"auth.signIn.method.email-otp.back":`別のメールアドレスを使う`,"auth.signIn.method.magic-link.body":`ワンタップでサインインできるリンクをメールでお送りします。`,"auth.signIn.method.magic-link.emailLabel":`メールアドレス`,"auth.signIn.method.magic-link.emailPlaceholder":`you@example.com`,"auth.signIn.method.magic-link.sendButton":`サインインリンクを送信`,"auth.signIn.method.magic-link.sendFailed":`リンクの送信に失敗しました。メールを確認してもう一度お試しください。`,"auth.signIn.method.magic-link.sentTo":`{email} にサインインリンクを送信しました。`,"auth.signIn.method.magic-link.clickHint":`メール内のリンクをクリックしてサインインを完了してください。リンクはまもなく失効します。`,"auth.signIn.method.magic-link.anotherEmail":`別のメールアドレスを使う`,"common.signOut":`サインアウト`,"common.viewSite":`サイトを見る`,"common.contentAdmin":`コンテンツ管理`,"common.copy":`コピー`,"common.open":`開く`,"common.failedToLoad":`読み込みに失敗しました`,"common.signedIn":`サインイン済み`,"common.close":`閉じる`,"common.skipToMain":`メインコンテンツへ移動`,"oauth.connectedApps":`MCP 接続`,"oauth.consent.eyebrow":`MCP クライアントを接続`,"oauth.consent.heading":`{client} を接続しますか?`,"oauth.consent.body":`{client} は MCP 経由でこのサイトの管理ツールを使用できるようになります。表示・変更できる内容は、引き続きアカウントの権限により制限されます。`,"oauth.consent.approve":`接続`,"oauth.consent.deny":`キャンセル`,"oauth.consent.invalidTitle":`無効な認証リクエスト`,"oauth.consent.invalidBody":`認証情報が不足しているか、形式が正しくありません。MCP クライアントに戻ってもう一度お試しください。`,"oauth.apps.eyebrow":`あなたのアカウント`,"oauth.apps.body":`これらの MCP クライアントはサイトの管理ツールを使用できます。各操作は、現在のアカウント権限に基づいて引き続き確認されます。`,"oauth.apps.empty":`接続済みの MCP クライアントはありません。`,"oauth.apps.revoke":`接続を解除`,"common.breadcrumb":`パンくずリスト`,"common.toggleSidebar":`サイドバーを切り替え`,"common.mobileSidebar":`ナビゲーション`,"common.mobileSidebarDescription":`サイト管理ナビゲーション`,"collection.filter.all":`すべて`,"nav.home":`ホーム`,"nav.overview":`概要`,"nav.model":`データモデル`,"nav.logic":`ロジック`,"nav.docs":`インターフェース`,"nav.build":`ビルド`,"nav.content":`コンテンツ`,"nav.operations":`レコード`,"nav.media":`メディアライブラリ`,"nav.more":`その他`,"nav.settings":`設定`,"nav.staff":`管理ユーザー`,"nav.members":`メンバー`,"nav.reports":`レポート`,"nav.localizedContent":`多言語コンテンツを含む`,"common.yes":`はい`,"common.no":`いいえ`,"model.title":`データモデル`,"model.schemas":`スキーマ`,"model.views":`ビュー`,"model.objects":`データモデルオブジェクト`,"model.search":`データモデルを検索`,"model.fields":`フィールド`,"model.path":`パス`,"model.type":`型`,"model.required":`必須`,"model.constraints":`制約`,"model.noFields":`オブジェクトのプロパティは宣言されていません。`,"model.rawSchema":`JSON スキーマ`,"model.rawQuery":`クエリプラン`,"model.queryKind":`クエリ`,"model.source":`ソース`,"model.allFields":`すべてのフィールド`,"model.order":`並び順`,"model.limit":`上限`,"model.dialect":`ダイアレクト`,"model.filter":`フィルター`,"model.params":`パラメーター`,"model.relationships":`リレーション`,"model.references":`この項目の参照先`,"model.referencedBy":`この項目を参照`,"model.noRelations":`Manifest にリレーションは宣言されていません。`,"model.openGraph":`グラフで表示`,"model.openDeclaration":`Manifest の宣言を開く`,"model.manifest":`Manifest`,"model.compiledManifest":`コンパイル済み Manifest`,"model.marker.reference":`{target} への参照`,"model.marker.translationParent":`親 {target} への翻訳結合`,"model.marker.translationChild":`子 {target} からの翻訳結合`,"model.marker.unique":`一意インデックス UQ{index}: {fields}`,"model.marker.index":`インデックス IDX{index}: {fields}`,"logic.title":`ロジック`,"logic.objects":`ロジックオブジェクト`,"logic.search":`ロジックを検索`,"logic.triggers":`トリガー`,"logic.procedures":`プロシージャ`,"logic.overview":`概要`,"logic.contract":`コントラクト`,"logic.configuration":`設定`,"logic.contractFrom":`このエントリーポイントは {target} で宣言されたコントラクトを使用します。`,"logic.input":`入力`,"logic.output":`出力`,"logic.noContract":`対象プロシージャのコントラクトはありません。`,"logic.execution":`実行経路`,"logic.target":`対象プロシージャ`,"logic.authorization":`認可`,"logic.noAuthorization":`認可条件は宣言されていません。`,"logic.guard":`ガードプロシージャ`,"logic.method":`メソッド`,"logic.surface":`提供範囲`,"logic.hooks":`フック`,"logic.errorPolicy":`エラーポリシー`,"docs.title":`API・エージェントインターフェース`,"docs.intro":`RuntimePlan から生成された HTTP、MCP、ブラウザ WebMCP のエントリーポイント一覧です。`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP トリガーと、自動公開された一般向けビューのルートです。`,"docs.mcpIntro":`ビューと明示的な MCP トリガーから生成されたツールです。実行時にも認可が適用されます。`,"docs.webmcpIntro":`このサーバー連携は一般公開ビューを HTTP 経由で検出し、読み取り専用のブラウザツールとして登録します。各ビューの公開範囲ルールは維持されます。`,"docs.publicEndpoint":`公開エンドポイント`,"docs.staffEndpoint":`スタッフ用エンドポイント`,"docs.catalogEndpoint":`ディスカバリーカタログ`,"docs.target":`対象`,"docs.inputSchema":`入力スキーマ`,"docs.outputSchema":`出力スキーマ`,"docs.readOnly":`読み取り専用`,"docs.noEntries":`このインターフェースにはエントリーポイントが宣言されていません。`,"docs.webmcpNote":`一般公開のプロシージャツールは MCP で提供されます。サーバー連携の WebMCP HTTP ラッパーは、意図的に一般公開ビューのみを登録します。`,"developer.graph.title":`Manifest グラフ`,"developer.graph.details":`項目の詳細`,"developer.graph.openModel":`データモデルで開く`,"developer.graph.openLogic":`ロジックの詳細を開く`,"developer.graph.relayout":`自動配置`,"developer.graph.previous":`前のステップ`,"developer.graph.next":`次のステップ`,"developer.graph.step":`ステップ {current} / {total}`,"developer.graph.comesFrom":`入力元`,"developer.graph.continuesTo":`次の処理`,"developer.graph.manifestSource":`Manifest ソース`,"developer.graph.builtin":`組み込み`,"developer.graph.kind.schema":`スキーマ`,"developer.graph.kind.view":`ビュー`,"developer.graph.kind.procedure":`プロシージャ`,"developer.graph.kind.trigger":`トリガー`,"developer.graph.fact.audience":`対象ユーザー`,"developer.graph.fact.transport":`トランスポート`,"developer.graph.fact.handler":`ハンドラー`,"developer.graph.fact.operation":`操作`,"developer.graph.fact.schema":`スキーマ`,"developer.graph.fact.match":`一致条件`,"developer.graph.summary.trigger":`{audience} からのリクエストは {transport} を経由し、{target} に進みます。`,"developer.graph.summary.builtin":`組み込みの {op} 操作が {schema} に書き込みます。`,"developer.graph.summary.ref":`このプロシージャは登録済みのコードハンドラー {ref} を実行します。`,"developer.graph.summary.view":`{audience} 向けの {target} の読み取り専用ビューです。`,"developer.graph.summary.schema":`{incoming} 件の項目がこのスキーマを使用し、ほかの {outgoing} 件の項目を参照しています。`,"developer.graph.audience.public":`一般公開`,"developer.graph.audience.members":`メンバー`,"developer.graph.audience.staff":`スタッフ`,"developer.graph.audience.system":`システム`,"developer.graph.audience.apiClients":`API クライアント`,"developer.graph.audienceDescription.public":`サインインせずに利用できます。`,"developer.graph.audienceDescription.members":`サインイン済みのすべてのメンバーが対象です。サイト上の役割は不要です。`,"developer.graph.audienceDescription.staff":`コントリビューター、編集者、または所有者のサイト役割を持つメンバーが対象です。スタッフはアクセスレベルであり、別の管理者アカウントではありません。`,"developer.graph.audienceDescription.system":`ライフサイクル、キュー、またはスケジュールイベントから自動実行されます。`,"developer.graph.audienceDescription.apiClients":`認証済みの API クライアントまたはスコープが必要です。`,"developer.graph.relation.translationParent":`翻訳`,"developer.graph.relation.schemaReference":`参照`,"developer.graph.relation.viewSource":`読み取り元`,"developer.graph.relation.guard":`ガード`,"developer.graph.relation.procedureSchema":`処理するスキーマ`,"developer.graph.relation.collectionAction":`操作対象`,"developer.graph.relation.inputReference":`参照`,"developer.graph.relation.triggerTarget":`呼び出し`,"developer.graph.relation.lifecycleSource":`ライフサイクルを監視`,"status.draft":`下書き`,"status.published":`公開済み`,"status.archived":`アーカイブ済み`,"preferences.heading":`環境設定`,"preferences.language":`管理画面の言語`,"preferences.language.search":`言語を検索...`,"preferences.language.noResults":`言語が見つかりません。`,"preferences.direction":`文字方向`,"preferences.direction.auto":`文字方向は選択した言語に従います。`,"preferences.appearance":`外観`,"preferences.light":`ライト`,"preferences.dark":`ダーク`,"preferences.system":`システム`,"preferences.ltr":`左から右`,"preferences.rtl":`右から左`,"preferences.page.open":`環境設定`,"preferences.page.title":`個人設定`,"preferences.page.body":`これらの設定はこのブラウザにのみ保存されます。管理コンソールだけに影響し、サイト設定は変更しません。`,"preferences.page.languageBody":`システムページと管理 UI で使う言語を選びます。`,"preferences.page.appearanceBody":`ライト、ダーク、またはシステム設定に合わせます。`},ko:{"admin.consoleTitle":`관리자 콘솔`,"developer.workspaceTitle":`개발`,"auth.signIn.title":`로그인`,"common.signOut":`로그아웃`,"common.viewSite":`사이트 보기`,"common.copy":`복사`,"common.open":`열기`,"common.failedToLoad":`로드 실패`,"common.signedIn":`로그인됨`,"common.contentAdmin":`콘텐츠 관리`,"common.close":`닫기`,"common.skipToMain":`본문으로 건너뛰기`,"common.breadcrumb":`이동 경로`,"common.toggleSidebar":`사이드바 전환`,"common.mobileSidebar":`탐색`,"common.mobileSidebarDescription":`사이트 관리 탐색`,"oauth.connectedApps":`MCP 연결`,"oauth.consent.eyebrow":`MCP 클라이언트 연결`,"oauth.consent.heading":`{client}을(를) 연결할까요?`,"oauth.consent.body":`{client}은(는) MCP를 통해 이 사이트의 관리 도구를 사용할 수 있습니다. 보거나 변경할 수 있는 내용은 계속해서 계정 권한에 따라 제한됩니다.`,"oauth.consent.approve":`연결`,"oauth.consent.deny":`취소`,"oauth.consent.invalidTitle":`잘못된 인증 요청`,"oauth.consent.invalidBody":`인증 정보가 없거나 형식이 올바르지 않습니다. MCP 클라이언트로 돌아가 다시 시도하세요.`,"oauth.apps.eyebrow":`내 계정`,"oauth.apps.body":`이 MCP 클라이언트는 사이트의 관리 도구를 사용할 수 있습니다. 모든 작업은 현재 계정 권한에 따라 계속 확인됩니다.`,"oauth.apps.empty":`연결된 MCP 클라이언트가 없습니다.`,"oauth.apps.revoke":`연결 해제`,"collection.filter.all":`전체`,"nav.home":`홈`,"nav.overview":`개요`,"nav.model":`데이터 모델`,"nav.logic":`로직`,"nav.docs":`인터페이스`,"nav.build":`빌드`,"nav.content":`콘텐츠`,"nav.operations":`레코드`,"nav.media":`미디어 라이브러리`,"nav.more":`더보기`,"nav.settings":`설정`,"nav.staff":`관리자 사용자`,"nav.members":`회원`,"nav.reports":`보고서`,"nav.localizedContent":`현지화된 콘텐츠 포함`,"common.yes":`예`,"common.no":`아니요`,"model.title":`데이터 모델`,"model.schemas":`스키마`,"model.views":`뷰`,"model.objects":`데이터 모델 객체`,"model.search":`데이터 모델 검색`,"model.fields":`필드`,"model.path":`경로`,"model.type":`유형`,"model.required":`필수`,"model.constraints":`제약 조건`,"model.noFields":`객체 속성이 선언되지 않았습니다.`,"model.rawSchema":`JSON 스키마`,"model.rawQuery":`쿼리 계획`,"model.queryKind":`쿼리`,"model.source":`소스`,"model.allFields":`모든 필드`,"model.order":`정렬`,"model.limit":`제한`,"model.dialect":`방언`,"model.filter":`필터`,"model.params":`매개변수`,"model.relationships":`관계`,"model.references":`이 항목이 참조하는 대상`,"model.referencedBy":`이 항목을 참조하는 대상`,"model.noRelations":`Manifest 관계가 선언되지 않았습니다.`,"model.openGraph":`그래프에서 보기`,"model.openDeclaration":`Manifest 선언 열기`,"model.manifest":`Manifest`,"model.compiledManifest":`컴파일된 Manifest`,"model.marker.reference":`{target} 참조`,"model.marker.translationParent":`상위 {target}에 대한 번역 조인`,"model.marker.translationChild":`하위 {target}에서 오는 번역 조인`,"model.marker.unique":`고유 인덱스 UQ{index}: {fields}`,"model.marker.index":`인덱스 IDX{index}: {fields}`,"logic.title":`로직`,"logic.objects":`로직 객체`,"logic.search":`로직 검색`,"logic.triggers":`트리거`,"logic.procedures":`프로시저`,"logic.overview":`개요`,"logic.contract":`계약`,"logic.configuration":`구성`,"logic.contractFrom":`이 진입점은 {target}에서 선언한 계약을 사용합니다.`,"logic.input":`입력`,"logic.output":`출력`,"logic.noContract":`대상 프로시저 계약이 없습니다.`,"logic.execution":`실행 경로`,"logic.target":`대상 프로시저`,"logic.authorization":`권한 부여`,"logic.noAuthorization":`권한 부여 조건이 선언되지 않았습니다.`,"logic.guard":`가드 프로시저`,"logic.method":`메서드`,"logic.surface":`제공 범위`,"logic.hooks":`후크`,"logic.errorPolicy":`오류 정책`,"docs.title":`API 및 에이전트 인터페이스`,"docs.intro":`RuntimePlan에서 파생된 HTTP, MCP 및 브라우저 WebMCP 진입점 참조입니다.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP 트리거와 자동으로 공개된 공용 뷰 경로입니다.`,"docs.mcpIntro":`뷰와 명시적 MCP 트리거에서 생성된 도구입니다. 도구 실행 시에도 권한 부여가 적용됩니다.`,"docs.webmcpIntro":`이 서버 기반 연동은 HTTP를 통해 공용 뷰를 찾고 읽기 전용 브라우저 도구로 등록합니다. 각 뷰의 대상 규칙은 유지됩니다.`,"docs.publicEndpoint":`공용 엔드포인트`,"docs.staffEndpoint":`스태프 엔드포인트`,"docs.catalogEndpoint":`검색 카탈로그`,"docs.target":`대상`,"docs.inputSchema":`입력 스키마`,"docs.outputSchema":`출력 스키마`,"docs.readOnly":`읽기 전용`,"docs.noEntries":`이 인터페이스에 선언된 진입점이 없습니다.`,"docs.webmcpNote":`공용 프로시저 도구는 MCP에서 계속 제공됩니다. 서버 기반 WebMCP HTTP 래퍼는 의도적으로 공용 뷰만 등록합니다.`,"developer.graph.title":`Manifest 그래프`,"developer.graph.details":`항목 세부정보`,"developer.graph.openModel":`데이터 모델에서 열기`,"developer.graph.openLogic":`로직 세부정보 열기`,"developer.graph.relayout":`자동 배치`,"developer.graph.previous":`이전 단계`,"developer.graph.next":`다음 단계`,"developer.graph.step":`{total}단계 중 {current}단계`,"developer.graph.comesFrom":`이전 항목`,"developer.graph.continuesTo":`다음 항목`,"developer.graph.manifestSource":`Manifest 소스`,"developer.graph.builtin":`기본 제공`,"developer.graph.kind.schema":`스키마`,"developer.graph.kind.view":`뷰`,"developer.graph.kind.procedure":`프로시저`,"developer.graph.kind.trigger":`트리거`,"developer.graph.fact.audience":`대상`,"developer.graph.fact.transport":`전송 방식`,"developer.graph.fact.handler":`핸들러`,"developer.graph.fact.operation":`작업`,"developer.graph.fact.schema":`스키마`,"developer.graph.fact.match":`일치 조건`,"developer.graph.summary.trigger":`{audience}의 요청이 {transport}을 통해 들어와 {target}(으)로 이어집니다.`,"developer.graph.summary.builtin":`기본 제공 {op} 작업이 {schema}에 씁니다.`,"developer.graph.summary.ref":`이 프로시저는 등록된 코드 핸들러 {ref}을(를) 실행합니다.`,"developer.graph.summary.view":`{audience}을(를) 위한 {target}의 읽기 전용 뷰입니다.`,"developer.graph.summary.schema":`{incoming}개 항목이 이 스키마를 사용하며 다른 {outgoing}개 항목을 참조합니다.`,"developer.graph.audience.public":`공개`,"developer.graph.audience.members":`회원`,"developer.graph.audience.staff":`스태프`,"developer.graph.audience.system":`시스템`,"developer.graph.audience.apiClients":`API 클라이언트`,"developer.graph.audienceDescription.public":`로그인하지 않고 사용할 수 있습니다.`,"developer.graph.audienceDescription.members":`로그인한 모든 회원이 사용할 수 있습니다. 사이트 역할은 필요하지 않습니다.`,"developer.graph.audienceDescription.staff":`기여자, 편집자 또는 소유자 사이트 역할을 가진 로그인 회원입니다. 스태프는 액세스 수준이며 별도의 관리자 계정이 아닙니다.`,"developer.graph.audienceDescription.system":`수명 주기, 대기열 또는 예약 이벤트에서 자동으로 실행됩니다.`,"developer.graph.audienceDescription.apiClients":`인증된 API 클라이언트 또는 범위가 필요합니다.`,"developer.graph.relation.translationParent":`번역`,"developer.graph.relation.schemaReference":`참조`,"developer.graph.relation.viewSource":`읽는 소스`,"developer.graph.relation.guard":`보호 대상`,"developer.graph.relation.procedureSchema":`스키마 처리`,"developer.graph.relation.collectionAction":`작업 대상`,"developer.graph.relation.inputReference":`참조`,"developer.graph.relation.triggerTarget":`호출`,"developer.graph.relation.lifecycleSource":`수명 주기 감시`,"status.draft":`초안`,"status.published":`게시됨`,"status.archived":`보관됨`,"preferences.heading":`환경설정`,"preferences.language":`관리 언어`,"preferences.language.search":`언어 검색...`,"preferences.language.noResults":`언어를 찾을 수 없습니다.`,"preferences.direction":`텍스트 방향`,"preferences.direction.auto":`텍스트 방향은 선택한 언어를 따릅니다.`,"preferences.appearance":`화면 모드`,"preferences.light":`라이트`,"preferences.dark":`다크`,"preferences.system":`시스템`,"preferences.ltr":`왼쪽에서 오른쪽`,"preferences.rtl":`오른쪽에서 왼쪽`,"preferences.page.open":`환경설정`,"preferences.page.title":`개인 환경설정`,"preferences.page.body":`이 설정은 이 브라우저에만 저장됩니다. 관리 콘솔에만 적용되며 사이트 설정은 변경하지 않습니다.`,"preferences.page.languageBody":`시스템 페이지와 관리 UI에 사용할 언어를 선택합니다.`,"preferences.page.appearanceBody":`라이트, 다크 또는 운영체제 설정을 따르도록 선택합니다.`},"pt-BR":{"admin.consoleTitle":`Console de administração`,"developer.workspaceTitle":`Desenvolvimento`,"auth.signIn.title":`Entrar`,"common.signOut":`Sair`,"common.viewSite":`Ver site`,"common.copy":`Copiar`,"common.open":`Abrir`,"common.failedToLoad":`Falha ao carregar`,"common.signedIn":`Conectado`,"common.contentAdmin":`Administração de conteúdo`,"common.close":`Fechar`,"common.skipToMain":`Ir para o conteúdo principal`,"common.breadcrumb":`Trilha de navegação`,"common.toggleSidebar":`Alternar barra lateral`,"common.mobileSidebar":`Navegação`,"common.mobileSidebarDescription":`Navegação de administração do site`,"oauth.connectedApps":`Conexões MCP`,"oauth.consent.eyebrow":`Conectar um cliente MCP`,"oauth.consent.heading":`Conectar {client}?`,"oauth.consent.body":`{client} poderá usar as ferramentas de administração deste site por meio do MCP. O que ele pode visualizar ou alterar continua limitado pelas permissões da sua conta.`,"oauth.consent.approve":`Conectar`,"oauth.consent.deny":`Cancelar`,"oauth.consent.invalidTitle":`Solicitação de autorização inválida`,"oauth.consent.invalidBody":`Os dados de autorização estão ausentes ou incorretos. Volte ao cliente MCP e tente novamente.`,"oauth.apps.eyebrow":`Sua conta`,"oauth.apps.body":`Estes clientes MCP podem usar as ferramentas de administração do site. Cada ação continua sendo verificada de acordo com as permissões atuais da sua conta.`,"oauth.apps.empty":`Nenhum cliente MCP está conectado.`,"oauth.apps.revoke":`Desconectar`,"collection.filter.all":`Todos`,"nav.home":`Início`,"nav.overview":`Visão geral`,"nav.model":`Modelo de dados`,"nav.logic":`Lógica`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Conteúdo`,"nav.operations":`Registros`,"nav.media":`Biblioteca de mídia`,"nav.more":`Mais`,"nav.settings":`Configurações`,"nav.staff":`Usuários administradores`,"nav.members":`Membros`,"nav.reports":`Relatórios`,"nav.localizedContent":`Contém conteúdo localizado`,"common.yes":`Sim`,"common.no":`Não`,"model.title":`Modelo de dados`,"model.schemas":`Esquemas`,"model.views":`Visões`,"model.objects":`Objetos do modelo de dados`,"model.search":`Pesquisar modelo de dados`,"model.fields":`Campos`,"model.path":`Caminho`,"model.type":`Tipo`,"model.required":`Obrigatório`,"model.constraints":`Restrições`,"model.noFields":`Nenhuma propriedade de objeto foi declarada.`,"model.rawSchema":`Esquema JSON`,"model.rawQuery":`Plano de consulta`,"model.queryKind":`Consulta`,"model.source":`Origem`,"model.allFields":`Todos os campos`,"model.order":`Ordem`,"model.limit":`Limite`,"model.dialect":`Dialeto`,"model.filter":`Filtro`,"model.params":`Parâmetros`,"model.relationships":`Relacionamentos`,"model.references":`Este item referencia`,"model.referencedBy":`Referencia este item`,"model.noRelations":`Nenhum relacionamento foi declarado no Manifest.`,"model.openGraph":`Mostrar no grafo`,"model.openDeclaration":`Abrir declaração do Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest compilado`,"model.marker.reference":`Referência a {target}`,"model.marker.translationParent":`Junção de tradução com o pai {target}`,"model.marker.translationChild":`Junção de tradução a partir do filho {target}`,"model.marker.unique":`Índice exclusivo UQ{index}: {fields}`,"model.marker.index":`Índice IDX{index}: {fields}`,"logic.title":`Lógica`,"logic.objects":`Objetos de lógica`,"logic.search":`Pesquisar lógica`,"logic.triggers":`Gatilhos`,"logic.procedures":`Procedimentos`,"logic.overview":`Visão geral`,"logic.contract":`Contrato`,"logic.configuration":`Configuração`,"logic.contractFrom":`Este ponto de entrada usa o contrato declarado por {target}.`,"logic.input":`Entrada`,"logic.output":`Saída`,"logic.noContract":`Não há contrato disponível para o procedimento de destino.`,"logic.execution":`Caminho de execução`,"logic.target":`Procedimento de destino`,"logic.authorization":`Autorização`,"logic.noAuthorization":`Nenhuma condição de autorização foi declarada.`,"logic.guard":`Procedimento de proteção`,"logic.method":`Método`,"logic.surface":`Escopo`,"logic.hooks":`Ganchos`,"logic.errorPolicy":`Política de erros`,"docs.title":`Interfaces de API e agentes`,"docs.intro":`Referência derivada do RuntimePlan para pontos de entrada HTTP, MCP e WebMCP do navegador.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Gatilhos HTTP e rotas de visões públicas expostas automaticamente.`,"docs.mcpIntro":`Ferramentas geradas a partir de visões e gatilhos MCP explícitos. A autorização continua sendo aplicada durante a execução.`,"docs.webmcpIntro":`Esta integração no servidor descobre visões públicas por HTTP e as registra como ferramentas de navegador somente leitura. Cada visão mantém suas próprias regras de público.`,"docs.publicEndpoint":`Endpoint público`,"docs.staffEndpoint":`Endpoint da equipe`,"docs.catalogEndpoint":`Catálogo de descoberta`,"docs.target":`Destino`,"docs.inputSchema":`Esquema de entrada`,"docs.outputSchema":`Esquema de saída`,"docs.readOnly":`Somente leitura`,"docs.noEntries":`Nenhum ponto de entrada foi declarado para esta interface.`,"docs.webmcpNote":`As ferramentas de procedimentos públicos permanecem no MCP. O wrapper HTTP WebMCP no servidor registra intencionalmente apenas visões públicas.`,"developer.graph.title":`Grafo do Manifest`,"developer.graph.details":`Detalhes do item`,"developer.graph.openModel":`Abrir no modelo de dados`,"developer.graph.openLogic":`Abrir detalhes da lógica`,"developer.graph.relayout":`Layout automático`,"developer.graph.previous":`Etapa anterior`,"developer.graph.next":`Próxima etapa`,"developer.graph.step":`Etapa {current} de {total}`,"developer.graph.comesFrom":`Vem de`,"developer.graph.continuesTo":`Continua para`,"developer.graph.manifestSource":`Origem do Manifest`,"developer.graph.builtin":`Integrado`,"developer.graph.kind.schema":`Esquema`,"developer.graph.kind.view":`Visão`,"developer.graph.kind.procedure":`Procedimento`,"developer.graph.kind.trigger":`Gatilho`,"developer.graph.fact.audience":`Público`,"developer.graph.fact.transport":`Transporte`,"developer.graph.fact.handler":`Manipulador`,"developer.graph.fact.operation":`Operação`,"developer.graph.fact.schema":`Esquema`,"developer.graph.fact.match":`Correspondência`,"developer.graph.summary.trigger":`Solicitações de {audience} entram por {transport} e continuam para {target}.`,"developer.graph.summary.builtin":`Uma operação integrada {op} grava em {schema}.`,"developer.graph.summary.ref":`Este procedimento executa o manipulador de código registrado {ref}.`,"developer.graph.summary.view":`Uma visão somente leitura de {target} para {audience}.`,"developer.graph.summary.schema":`{incoming} itens usam este esquema; ele referencia outros {outgoing} itens.`,"developer.graph.audience.public":`Público`,"developer.graph.audience.members":`Membros`,"developer.graph.audience.staff":`Equipe`,"developer.graph.audience.system":`Sistema`,"developer.graph.audience.apiClients":`Clientes de API`,"developer.graph.audienceDescription.public":`Disponível sem entrar.`,"developer.graph.audienceDescription.members":`Qualquer membro conectado. Nenhuma função do site é necessária.`,"developer.graph.audienceDescription.staff":`Um membro conectado com função de colaborador, editor ou proprietário. Equipe é um nível de acesso, não uma conta de administrador separada.`,"developer.graph.audienceDescription.system":`Executado automaticamente por eventos de ciclo de vida, fila ou agendamento.`,"developer.graph.audienceDescription.apiClients":`Requer um cliente de API autenticado ou um escopo apropriado.`,"developer.graph.relation.translationParent":`traduz`,"developer.graph.relation.schemaReference":`referencia`,"developer.graph.relation.viewSource":`lê de`,"developer.graph.relation.guard":`protegido por`,"developer.graph.relation.procedureSchema":`processa o esquema`,"developer.graph.relation.collectionAction":`atua sobre`,"developer.graph.relation.inputReference":`referencia`,"developer.graph.relation.triggerTarget":`invoca`,"developer.graph.relation.lifecycleSource":`observa o ciclo de vida`,"status.draft":`Rascunhos`,"status.published":`Publicado`,"status.archived":`Arquivado`,"preferences.heading":`Preferências`,"preferences.language":`Idioma do admin`,"preferences.language.search":`Pesquisar idiomas...`,"preferences.language.noResults":`Nenhum idioma encontrado.`,"preferences.direction":`Direção do texto`,"preferences.direction.auto":`A direção do texto segue o idioma selecionado.`,"preferences.appearance":`Aparência`,"preferences.light":`Claro`,"preferences.dark":`Escuro`,"preferences.system":`Sistema`,"preferences.ltr":`Esquerda para direita`,"preferences.rtl":`Direita para esquerda`,"preferences.page.open":`Preferências`,"preferences.page.title":`Preferências pessoais`,"preferences.page.body":`Estas preferências ficam neste navegador. Elas mudam apenas o console admin e não alteram as configurações do site.`,"preferences.page.languageBody":`Escolha o idioma das páginas do sistema e da interface admin.`,"preferences.page.appearanceBody":`Escolha claro, escuro ou seguir o sistema operacional.`},ru:{"admin.consoleTitle":`Панель администратора`,"developer.workspaceTitle":`Разработка`,"auth.signIn.title":`Войти`,"common.signOut":`Выйти`,"common.viewSite":`Открыть сайт`,"common.copy":`Копировать`,"common.open":`Открыть`,"common.failedToLoad":`Не удалось загрузить`,"common.signedIn":`Вы вошли`,"common.contentAdmin":`Управление контентом`,"common.close":`Закрыть`,"common.skipToMain":`Перейти к основному содержимому`,"common.breadcrumb":`Навигационная цепочка`,"common.toggleSidebar":`Переключить боковую панель`,"common.mobileSidebar":`Навигация`,"common.mobileSidebarDescription":`Навигация по управлению сайтом`,"oauth.connectedApps":`Подключения MCP`,"oauth.consent.eyebrow":`Подключить клиент MCP`,"oauth.consent.heading":`Подключить {client}?`,"oauth.consent.body":`{client} сможет использовать инструменты управления этим сайтом через MCP. Возможность просмотра или изменения данных по-прежнему ограничена разрешениями вашей учетной записи.`,"oauth.consent.approve":`Подключить`,"oauth.consent.deny":`Отмена`,"oauth.consent.invalidTitle":`Недопустимый запрос авторизации`,"oauth.consent.invalidBody":`Данные авторизации отсутствуют или имеют неверный формат. Вернитесь в клиент MCP и повторите попытку.`,"oauth.apps.eyebrow":`Ваша учетная запись`,"oauth.apps.body":`Эти клиенты MCP могут использовать инструменты управления сайтом. Каждое действие по-прежнему проверяется с учетом текущих разрешений вашей учетной записи.`,"oauth.apps.empty":`Нет подключенных клиентов MCP.`,"oauth.apps.revoke":`Отключить`,"collection.filter.all":`Все`,"nav.home":`Главная`,"nav.overview":`Обзор`,"nav.model":`Модель данных`,"nav.logic":`Логика`,"nav.docs":`Интерфейсы`,"nav.build":`Сборка`,"nav.content":`Контент`,"nav.operations":`Записи`,"nav.media":`Медиатека`,"nav.more":`Еще`,"nav.settings":`Настройки`,"nav.staff":`Администраторы`,"nav.members":`Участники`,"nav.reports":`Отчёты`,"nav.localizedContent":`Содержит локализованный контент`,"common.yes":`Да`,"common.no":`Нет`,"model.title":`Модель данных`,"model.schemas":`Схемы`,"model.views":`Представления`,"model.objects":`Объекты модели данных`,"model.search":`Поиск в модели данных`,"model.fields":`Поля`,"model.path":`Путь`,"model.type":`Тип`,"model.required":`Обязательно`,"model.constraints":`Ограничения`,"model.noFields":`Свойства объекта не объявлены.`,"model.rawSchema":`Схема JSON`,"model.rawQuery":`План запроса`,"model.queryKind":`Запрос`,"model.source":`Источник`,"model.allFields":`Все поля`,"model.order":`Порядок`,"model.limit":`Лимит`,"model.dialect":`Диалект`,"model.filter":`Фильтр`,"model.params":`Параметры`,"model.relationships":`Связи`,"model.references":`Этот элемент ссылается на`,"model.referencedBy":`Ссылается на этот элемент`,"model.noRelations":`Связи в Manifest не объявлены.`,"model.openGraph":`Показать на графе`,"model.openDeclaration":`Открыть объявление Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Скомпилированный Manifest`,"model.marker.reference":`Ссылка на {target}`,"model.marker.translationParent":`Связь перевода с родителем {target}`,"model.marker.translationChild":`Связь перевода от потомка {target}`,"model.marker.unique":`Уникальный индекс UQ{index}: {fields}`,"model.marker.index":`Индекс IDX{index}: {fields}`,"logic.title":`Логика`,"logic.objects":`Объекты логики`,"logic.search":`Поиск логики`,"logic.triggers":`Триггеры`,"logic.procedures":`Процедуры`,"logic.overview":`Обзор`,"logic.contract":`Контракт`,"logic.configuration":`Конфигурация`,"logic.contractFrom":`Эта точка входа использует контракт, объявленный в {target}.`,"logic.input":`Вход`,"logic.output":`Выход`,"logic.noContract":`Контракт целевой процедуры недоступен.`,"logic.execution":`Путь выполнения`,"logic.target":`Целевая процедура`,"logic.authorization":`Авторизация`,"logic.noAuthorization":`Условия авторизации не объявлены.`,"logic.guard":`Защитная процедура`,"logic.method":`Метод`,"logic.surface":`Область доступа`,"logic.hooks":`Перехватчики`,"logic.errorPolicy":`Политика ошибок`,"docs.title":`Интерфейсы API и агентов`,"docs.intro":`Справочник точек входа HTTP, MCP и браузерного WebMCP, сформированный из RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-триггеры и автоматически опубликованные маршруты общедоступных представлений.`,"docs.mcpIntro":`Инструменты, сформированные из представлений и явно заданных MCP-триггеров. Авторизация по-прежнему проверяется при запуске.`,"docs.webmcpIntro":`Эта серверная интеграция обнаруживает общедоступные представления через HTTP и регистрирует их как браузерные инструменты только для чтения. Правила аудитории каждого представления сохраняются.`,"docs.publicEndpoint":`Общедоступная точка входа`,"docs.staffEndpoint":`Точка входа для сотрудников`,"docs.catalogEndpoint":`Каталог обнаружения`,"docs.target":`Цель`,"docs.inputSchema":`Схема входа`,"docs.outputSchema":`Схема выхода`,"docs.readOnly":`Только чтение`,"docs.noEntries":`Для этого интерфейса точки входа не объявлены.`,"docs.webmcpNote":`Инструменты общедоступных процедур остаются в MCP. Серверная HTTP-обёртка WebMCP намеренно регистрирует только общедоступные представления.`,"developer.graph.title":`Граф Manifest`,"developer.graph.details":`Сведения об элементе`,"developer.graph.openModel":`Открыть в модели данных`,"developer.graph.openLogic":`Открыть сведения о логике`,"developer.graph.relayout":`Автоматическая раскладка`,"developer.graph.previous":`Предыдущий шаг`,"developer.graph.next":`Следующий шаг`,"developer.graph.step":`Шаг {current} из {total}`,"developer.graph.comesFrom":`Приходит из`,"developer.graph.continuesTo":`Продолжается в`,"developer.graph.manifestSource":`Источник Manifest`,"developer.graph.builtin":`Встроено`,"developer.graph.kind.schema":`Схема`,"developer.graph.kind.view":`Представление`,"developer.graph.kind.procedure":`Процедура`,"developer.graph.kind.trigger":`Триггер`,"developer.graph.fact.audience":`Аудитория`,"developer.graph.fact.transport":`Транспорт`,"developer.graph.fact.handler":`Обработчик`,"developer.graph.fact.operation":`Операция`,"developer.graph.fact.schema":`Схема`,"developer.graph.fact.match":`Условие`,"developer.graph.summary.trigger":`Запросы от {audience} поступают через {transport} и переходят к {target}.`,"developer.graph.summary.builtin":`Встроенная операция {op} записывает данные в {schema}.`,"developer.graph.summary.ref":`Эта процедура запускает зарегистрированный обработчик кода {ref}.`,"developer.graph.summary.view":`Представление {target} только для чтения для аудитории {audience}.`,"developer.graph.summary.schema":`{incoming} элементов используют эту схему; она ссылается ещё на {outgoing} элементов.`,"developer.graph.audience.public":`Публично`,"developer.graph.audience.members":`Участники`,"developer.graph.audience.staff":`Сотрудники`,"developer.graph.audience.system":`Система`,"developer.graph.audience.apiClients":`Клиенты API`,"developer.graph.audienceDescription.public":`Доступно без входа.`,"developer.graph.audienceDescription.members":`Любой вошедший участник. Роль на сайте не требуется.`,"developer.graph.audienceDescription.staff":`Вошедший участник с ролью автора, редактора или владельца. Сотрудники — это уровень доступа, а не отдельная учётная запись администратора.`,"developer.graph.audienceDescription.system":`Запускается автоматически событиями жизненного цикла, очереди или расписания.`,"developer.graph.audienceDescription.apiClients":`Требуется аутентифицированный клиент API или область доступа.`,"developer.graph.relation.translationParent":`переводит`,"developer.graph.relation.schemaReference":`ссылается на`,"developer.graph.relation.viewSource":`читает из`,"developer.graph.relation.guard":`защищено`,"developer.graph.relation.procedureSchema":`обрабатывает схему`,"developer.graph.relation.collectionAction":`действует на`,"developer.graph.relation.inputReference":`ссылается на`,"developer.graph.relation.triggerTarget":`вызывает`,"developer.graph.relation.lifecycleSource":`следит за жизненным циклом`,"status.draft":`Черновики`,"status.published":`Опубликовано`,"status.archived":`Архив`,"preferences.heading":`Предпочтения`,"preferences.language":`Язык админки`,"preferences.language.search":`Поиск языков...`,"preferences.language.noResults":`Языки не найдены.`,"preferences.direction":`Направление текста`,"preferences.direction.auto":`Направление текста следует выбранному языку.`,"preferences.appearance":`Внешний вид`,"preferences.light":`Светлая`,"preferences.dark":`Темная`,"preferences.system":`Система`,"preferences.ltr":`Слева направо`,"preferences.rtl":`Справа налево`,"preferences.page.open":`Предпочтения`,"preferences.page.title":`Личные предпочтения`,"preferences.page.body":`Эти предпочтения хранятся в этом браузере. Они меняют только админ-консоль и не изменяют настройки сайта.`,"preferences.page.languageBody":`Выберите язык системных страниц и интерфейса админки.`,"preferences.page.appearanceBody":`Выберите светлую, темную тему или тему системы.`},nl:{"admin.consoleTitle":`Beheerconsole`,"developer.workspaceTitle":`Ontwikkeling`,"auth.signIn.title":`Inloggen`,"common.signOut":`Uitloggen`,"common.viewSite":`Site bekijken`,"common.copy":`Kopiëren`,"common.open":`Openen`,"common.failedToLoad":`Laden mislukt`,"common.signedIn":`Ingelogd`,"common.contentAdmin":`Contentbeheer`,"common.close":`Sluiten`,"common.skipToMain":`Naar hoofdinhoud`,"common.breadcrumb":`Kruimelpad`,"common.toggleSidebar":`Zijbalk wisselen`,"common.mobileSidebar":`Navigatie`,"common.mobileSidebarDescription":`Navigatie voor sitebeheer`,"oauth.connectedApps":`MCP-verbindingen`,"oauth.consent.eyebrow":`Een MCP-client verbinden`,"oauth.consent.heading":`{client} verbinden?`,"oauth.consent.body":`{client} kan via MCP de beheertools van deze site gebruiken. Wat de client kan bekijken of wijzigen, blijft beperkt door de machtigingen van je account.`,"oauth.consent.approve":`Verbinden`,"oauth.consent.deny":`Annuleren`,"oauth.consent.invalidTitle":`Ongeldig autorisatieverzoek`,"oauth.consent.invalidBody":`De autorisatiegegevens ontbreken of zijn ongeldig. Ga terug naar je MCP-client en probeer het opnieuw.`,"oauth.apps.eyebrow":`Je account`,"oauth.apps.body":`Deze MCP-clients kunnen de beheertools van de site gebruiken. Elke actie wordt nog steeds gecontroleerd aan de hand van de huidige machtigingen van je account.`,"oauth.apps.empty":`Er zijn geen MCP-clients verbonden.`,"oauth.apps.revoke":`Verbinding verbreken`,"collection.filter.all":`Alles`,"nav.home":`Home`,"nav.overview":`Overzicht`,"nav.model":`Datamodel`,"nav.logic":`Logica`,"nav.docs":`Interfaces`,"nav.build":`Build`,"nav.content":`Content`,"nav.operations":`Records`,"nav.media":`Mediabibliotheek`,"nav.more":`Meer`,"nav.settings":`Instellingen`,"nav.staff":`Beheerders`,"nav.members":`Leden`,"nav.reports":`Rapporten`,"nav.localizedContent":`Bevat gelokaliseerde content`,"common.yes":`Ja`,"common.no":`Nee`,"model.title":`Datamodel`,"model.schemas":`Schema’s`,"model.views":`Weergaven`,"model.objects":`Datamodelobjecten`,"model.search":`Datamodel doorzoeken`,"model.fields":`Velden`,"model.path":`Pad`,"model.type":`Type`,"model.required":`Verplicht`,"model.constraints":`Beperkingen`,"model.noFields":`Er zijn geen objecteigenschappen gedeclareerd.`,"model.rawSchema":`JSON-schema`,"model.rawQuery":`Queryplan`,"model.queryKind":`Query`,"model.source":`Bron`,"model.allFields":`Alle velden`,"model.order":`Volgorde`,"model.limit":`Limiet`,"model.dialect":`Dialect`,"model.filter":`Filter`,"model.params":`Parameters`,"model.relationships":`Relaties`,"model.references":`Dit item verwijst naar`,"model.referencedBy":`Verwijst naar dit item`,"model.noRelations":`Er zijn geen Manifest-relaties gedeclareerd.`,"model.openGraph":`In grafiek weergeven`,"model.openDeclaration":`Manifest-declaratie openen`,"model.manifest":`Manifest`,"model.compiledManifest":`Gecompileerd Manifest`,"model.marker.reference":`Verwijzing naar {target}`,"model.marker.translationParent":`Vertalingskoppeling naar bovenliggend item {target}`,"model.marker.translationChild":`Vertalingskoppeling vanuit onderliggend item {target}`,"model.marker.unique":`Unieke index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logica`,"logic.objects":`Logicaobjecten`,"logic.search":`Logica doorzoeken`,"logic.triggers":`Triggers`,"logic.procedures":`Procedures`,"logic.overview":`Overzicht`,"logic.contract":`Contract`,"logic.configuration":`Configuratie`,"logic.contractFrom":`Dit toegangspunt gebruikt het contract dat door {target} is gedeclareerd.`,"logic.input":`Invoer`,"logic.output":`Uitvoer`,"logic.noContract":`Er is geen contract voor de doelprocedure beschikbaar.`,"logic.execution":`Uitvoeringspad`,"logic.target":`Doelprocedure`,"logic.authorization":`Autorisatie`,"logic.noAuthorization":`Er zijn geen autorisatievoorwaarden gedeclareerd.`,"logic.guard":`Bewakingsprocedure`,"logic.method":`Methode`,"logic.surface":`Bereik`,"logic.hooks":`Hooks`,"logic.errorPolicy":`Foutbeleid`,"docs.title":`API- en agentinterfaces`,"docs.intro":`Uit RuntimePlan afgeleide referentie voor HTTP-, MCP- en browser-WebMCP-toegangspunten.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-triggers en automatisch gepubliceerde routes voor openbare weergaven.`,"docs.mcpIntro":`Hulpmiddelen die uit weergaven en expliciete MCP-triggers zijn afgeleid. Autorisatie blijft tijdens uitvoering van kracht.`,"docs.webmcpIntro":`Deze serverintegratie ontdekt openbare weergaven via HTTP en registreert ze als alleen-lezen browserhulpmiddelen. Elke weergave behoudt haar eigen doelgroepsregels.`,"docs.publicEndpoint":`Openbaar toegangspunt`,"docs.staffEndpoint":`Toegangspunt voor medewerkers`,"docs.catalogEndpoint":`Ontdekkingscatalogus`,"docs.target":`Doel`,"docs.inputSchema":`Invoerschema`,"docs.outputSchema":`Uitvoerschema`,"docs.readOnly":`Alleen-lezen`,"docs.noEntries":`Voor deze interface zijn geen toegangspunten gedeclareerd.`,"docs.webmcpNote":`Hulpmiddelen voor openbare procedures blijven via MCP beschikbaar. De servergestuurde WebMCP HTTP-wrapper registreert bewust alleen openbare weergaven.`,"developer.graph.title":`Manifest-grafiek`,"developer.graph.details":`Itemdetails`,"developer.graph.openModel":`Openen in datamodel`,"developer.graph.openLogic":`Logicadetails openen`,"developer.graph.relayout":`Automatisch indelen`,"developer.graph.previous":`Vorige stap`,"developer.graph.next":`Volgende stap`,"developer.graph.step":`Stap {current} van {total}`,"developer.graph.comesFrom":`Komt van`,"developer.graph.continuesTo":`Gaat verder naar`,"developer.graph.manifestSource":`Manifest-bron`,"developer.graph.builtin":`Ingebouwd`,"developer.graph.kind.schema":`Schema`,"developer.graph.kind.view":`Weergave`,"developer.graph.kind.procedure":`Procedure`,"developer.graph.kind.trigger":`Trigger`,"developer.graph.fact.audience":`Doelgroep`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Handler`,"developer.graph.fact.operation":`Bewerking`,"developer.graph.fact.schema":`Schema`,"developer.graph.fact.match":`Overeenkomst`,"developer.graph.summary.trigger":`Verzoeken van {audience} komen binnen via {transport} en gaan verder naar {target}.`,"developer.graph.summary.builtin":`Een ingebouwde {op}-bewerking schrijft naar {schema}.`,"developer.graph.summary.ref":`Deze procedure voert de geregistreerde codehandler {ref} uit.`,"developer.graph.summary.view":`Een alleen-lezen weergave van {target} voor {audience}.`,"developer.graph.summary.schema":`{incoming} items gebruiken dit schema; het verwijst naar {outgoing} andere items.`,"developer.graph.audience.public":`Openbaar`,"developer.graph.audience.members":`Leden`,"developer.graph.audience.staff":`Medewerkers`,"developer.graph.audience.system":`Systeem`,"developer.graph.audience.apiClients":`API-clients`,"developer.graph.audienceDescription.public":`Beschikbaar zonder inloggen.`,"developer.graph.audienceDescription.members":`Elk ingelogd lid. Geen siterol vereist.`,"developer.graph.audienceDescription.staff":`Een ingelogd lid met de siterol bijdrager, redacteur of eigenaar. Medewerker is een toegangsniveau, geen afzonderlijk beheerdersaccount.`,"developer.graph.audienceDescription.system":`Wordt automatisch uitgevoerd door levenscyclus-, wachtrij- of planninggebeurtenissen.`,"developer.graph.audienceDescription.apiClients":`Vereist een geverifieerde API-client of passend bereik.`,"developer.graph.relation.translationParent":`vertaalt`,"developer.graph.relation.schemaReference":`verwijst naar`,"developer.graph.relation.viewSource":`leest uit`,"developer.graph.relation.guard":`bewaakt door`,"developer.graph.relation.procedureSchema":`verwerkt schema`,"developer.graph.relation.collectionAction":`werkt op`,"developer.graph.relation.inputReference":`verwijst naar`,"developer.graph.relation.triggerTarget":`roept aan`,"developer.graph.relation.lifecycleSource":`bewaakt levenscyclus`,"status.draft":`Concepten`,"status.published":`Gepubliceerd`,"status.archived":`Gearchiveerd`,"preferences.heading":`Voorkeuren`,"preferences.language":`Beheertaal`,"preferences.language.search":`Talen zoeken...`,"preferences.language.noResults":`Geen talen gevonden.`,"preferences.direction":`Tekstrichting`,"preferences.direction.auto":`De tekstrichting volgt de gekozen taal.`,"preferences.appearance":`Weergave`,"preferences.light":`Licht`,"preferences.dark":`Donker`,"preferences.system":`Systeem`,"preferences.ltr":`Links naar rechts`,"preferences.rtl":`Rechts naar links`,"preferences.page.open":`Voorkeuren`,"preferences.page.title":`Persoonlijke voorkeuren`,"preferences.page.body":`Deze voorkeuren blijven in deze browser. Ze wijzigen alleen de adminconsole en niet de site-instellingen.`,"preferences.page.languageBody":`Kies de taal voor systeempagina's en de admininterface.`,"preferences.page.appearanceBody":`Kies licht, donker of volg het besturingssysteem.`},pl:{"admin.consoleTitle":`Konsola administracyjna`,"developer.workspaceTitle":`Programowanie`,"auth.signIn.title":`Zaloguj się`,"common.signOut":`Wyloguj się`,"common.viewSite":`Zobacz stronę`,"common.copy":`Kopiuj`,"common.open":`Otwórz`,"common.failedToLoad":`Nie udało się załadować`,"common.signedIn":`Zalogowano`,"common.contentAdmin":`Zarządzanie treścią`,"common.close":`Zamknij`,"common.skipToMain":`Przejdź do głównej treści`,"common.breadcrumb":`Ścieżka nawigacji`,"common.toggleSidebar":`Przełącz pasek boczny`,"common.mobileSidebar":`Nawigacja`,"common.mobileSidebarDescription":`Nawigacja administracyjna witryny`,"oauth.connectedApps":`Połączenia MCP`,"oauth.consent.eyebrow":`Połącz klienta MCP`,"oauth.consent.heading":`Połączyć {client}?`,"oauth.consent.body":`{client} będzie mógł korzystać z narzędzi administracyjnych tej witryny przez MCP. Zakres wyświetlania i zmian nadal zależy od uprawnień Twojego konta.`,"oauth.consent.approve":`Połącz`,"oauth.consent.deny":`Anuluj`,"oauth.consent.invalidTitle":`Nieprawidłowe żądanie autoryzacji`,"oauth.consent.invalidBody":`Brakuje danych autoryzacji lub mają one nieprawidłowy format. Wróć do klienta MCP i spróbuj ponownie.`,"oauth.apps.eyebrow":`Twoje konto`,"oauth.apps.body":`Te klienty MCP mogą korzystać z narzędzi administracyjnych witryny. Każda akcja jest nadal sprawdzana zgodnie z bieżącymi uprawnieniami Twojego konta.`,"oauth.apps.empty":`Brak połączonych klientów MCP.`,"oauth.apps.revoke":`Rozłącz`,"collection.filter.all":`Wszystkie`,"nav.home":`Start`,"nav.overview":`Przegląd`,"nav.model":`Model danych`,"nav.logic":`Logika`,"nav.docs":`Interfejsy`,"nav.build":`Kompilacja`,"nav.content":`Treści`,"nav.operations":`Rekordy`,"nav.media":`Biblioteka mediów`,"nav.more":`Więcej`,"nav.settings":`Ustawienia`,"nav.staff":`Administratorzy`,"nav.members":`Członkowie`,"nav.reports":`Raporty`,"nav.localizedContent":`Zawiera zlokalizowaną treść`,"common.yes":`Tak`,"common.no":`Nie`,"model.title":`Model danych`,"model.schemas":`Schematy`,"model.views":`Widoki`,"model.objects":`Obiekty modelu danych`,"model.search":`Przeszukaj model danych`,"model.fields":`Pola`,"model.path":`Ścieżka`,"model.type":`Typ`,"model.required":`Wymagane`,"model.constraints":`Ograniczenia`,"model.noFields":`Nie zadeklarowano właściwości obiektu.`,"model.rawSchema":`Schemat JSON`,"model.rawQuery":`Plan zapytania`,"model.queryKind":`Zapytanie`,"model.source":`Źródło`,"model.allFields":`Wszystkie pola`,"model.order":`Kolejność`,"model.limit":`Limit`,"model.dialect":`Dialekt`,"model.filter":`Filtr`,"model.params":`Parametry`,"model.relationships":`Relacje`,"model.references":`Ten element odwołuje się do`,"model.referencedBy":`Odwołuje się do tego elementu`,"model.noRelations":`Nie zadeklarowano relacji w Manifest.`,"model.openGraph":`Pokaż na grafie`,"model.openDeclaration":`Otwórz deklarację Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Skompilowany Manifest`,"model.marker.reference":`Odwołanie do {target}`,"model.marker.translationParent":`Połączenie tłumaczenia z rodzicem {target}`,"model.marker.translationChild":`Połączenie tłumaczenia od elementu podrzędnego {target}`,"model.marker.unique":`Unikalny indeks UQ{index}: {fields}`,"model.marker.index":`Indeks IDX{index}: {fields}`,"logic.title":`Logika`,"logic.objects":`Obiekty logiki`,"logic.search":`Przeszukaj logikę`,"logic.triggers":`Wyzwalacze`,"logic.procedures":`Procedury`,"logic.overview":`Przegląd`,"logic.contract":`Kontrakt`,"logic.configuration":`Konfiguracja`,"logic.contractFrom":`Ten punkt wejścia używa kontraktu zadeklarowanego przez {target}.`,"logic.input":`Wejście`,"logic.output":`Wyjście`,"logic.noContract":`Kontrakt procedury docelowej jest niedostępny.`,"logic.execution":`Ścieżka wykonania`,"logic.target":`Procedura docelowa`,"logic.authorization":`Autoryzacja`,"logic.noAuthorization":`Nie zadeklarowano warunków autoryzacji.`,"logic.guard":`Procedura ochronna`,"logic.method":`Metoda`,"logic.surface":`Zakres`,"logic.hooks":`Punkty zaczepienia`,"logic.errorPolicy":`Zasady obsługi błędów`,"docs.title":`Interfejsy API i agentów`,"docs.intro":`Dokumentacja punktów wejścia HTTP, MCP i przeglądarkowego WebMCP utworzona z RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Wyzwalacze HTTP i automatycznie udostępnione trasy widoków publicznych.`,"docs.mcpIntro":`Narzędzia utworzone z widoków i jawnych wyzwalaczy MCP. Autoryzacja nadal obowiązuje podczas uruchamiania.`,"docs.webmcpIntro":`Ta integracja serwerowa wykrywa widoki publiczne przez HTTP i rejestruje je jako narzędzia przeglądarkowe tylko do odczytu. Każdy widok zachowuje własne reguły odbiorców.`,"docs.publicEndpoint":`Publiczny punkt wejścia`,"docs.staffEndpoint":`Punkt wejścia dla personelu`,"docs.catalogEndpoint":`Katalog wykrywania`,"docs.target":`Cel`,"docs.inputSchema":`Schemat wejścia`,"docs.outputSchema":`Schemat wyjścia`,"docs.readOnly":`Tylko do odczytu`,"docs.noEntries":`Nie zadeklarowano punktów wejścia dla tego interfejsu.`,"docs.webmcpNote":`Narzędzia procedur publicznych pozostają dostępne w MCP. Serwerowa otoczka HTTP WebMCP celowo rejestruje tylko widoki publiczne.`,"developer.graph.title":`Graf Manifest`,"developer.graph.details":`Szczegóły elementu`,"developer.graph.openModel":`Otwórz w modelu danych`,"developer.graph.openLogic":`Otwórz szczegóły logiki`,"developer.graph.relayout":`Automatyczny układ`,"developer.graph.previous":`Poprzedni krok`,"developer.graph.next":`Następny krok`,"developer.graph.step":`Krok {current} z {total}`,"developer.graph.comesFrom":`Pochodzi z`,"developer.graph.continuesTo":`Przechodzi do`,"developer.graph.manifestSource":`Źródło Manifest`,"developer.graph.builtin":`Wbudowane`,"developer.graph.kind.schema":`Schemat`,"developer.graph.kind.view":`Widok`,"developer.graph.kind.procedure":`Procedura`,"developer.graph.kind.trigger":`Wyzwalacz`,"developer.graph.fact.audience":`Odbiorcy`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Procedura obsługi`,"developer.graph.fact.operation":`Operacja`,"developer.graph.fact.schema":`Schemat`,"developer.graph.fact.match":`Dopasowanie`,"developer.graph.summary.trigger":`Żądania od {audience} przychodzą przez {transport} i przechodzą do {target}.`,"developer.graph.summary.builtin":`Wbudowana operacja {op} zapisuje do {schema}.`,"developer.graph.summary.ref":`Ta procedura uruchamia zarejestrowaną procedurę obsługi kodu {ref}.`,"developer.graph.summary.view":`Widok {target} tylko do odczytu dla {audience}.`,"developer.graph.summary.schema":`{incoming} elementów używa tego schematu; odwołuje się on do {outgoing} innych elementów.`,"developer.graph.audience.public":`Publiczne`,"developer.graph.audience.members":`Członkowie`,"developer.graph.audience.staff":`Personel`,"developer.graph.audience.system":`System`,"developer.graph.audience.apiClients":`Klienci API`,"developer.graph.audienceDescription.public":`Dostępne bez logowania.`,"developer.graph.audienceDescription.members":`Każdy zalogowany członek. Rola w witrynie nie jest wymagana.`,"developer.graph.audienceDescription.staff":`Zalogowany członek z rolą współtwórcy, redaktora lub właściciela. Personel to poziom dostępu, a nie osobne konto administratora.`,"developer.graph.audienceDescription.system":`Uruchamiane automatycznie przez zdarzenia cyklu życia, kolejki lub harmonogramu.`,"developer.graph.audienceDescription.apiClients":`Wymaga uwierzytelnionego klienta API lub odpowiedniego zakresu.`,"developer.graph.relation.translationParent":`tłumaczy`,"developer.graph.relation.schemaReference":`odwołuje się do`,"developer.graph.relation.viewSource":`czyta z`,"developer.graph.relation.guard":`chronione przez`,"developer.graph.relation.procedureSchema":`obsługuje schemat`,"developer.graph.relation.collectionAction":`działa na`,"developer.graph.relation.inputReference":`odwołuje się do`,"developer.graph.relation.triggerTarget":`wywołuje`,"developer.graph.relation.lifecycleSource":`obserwuje cykl życia`,"status.draft":`Szkice`,"status.published":`Opublikowane`,"status.archived":`Zarchiwizowane`,"preferences.heading":`Preferencje`,"preferences.language":`Język panelu`,"preferences.language.search":`Szukaj języków...`,"preferences.language.noResults":`Nie znaleziono języków.`,"preferences.direction":`Kierunek tekstu`,"preferences.direction.auto":`Kierunek tekstu wynika z wybranego języka.`,"preferences.appearance":`Wygląd`,"preferences.light":`Jasny`,"preferences.dark":`Ciemny`,"preferences.system":`System`,"preferences.ltr":`Od lewej do prawej`,"preferences.rtl":`Od prawej do lewej`,"preferences.page.open":`Preferencje`,"preferences.page.title":`Preferencje osobiste`,"preferences.page.body":`Te preferencje są zapisane w tej przeglądarce. Zmieniają tylko konsolę administracyjną, nie ustawienia strony.`,"preferences.page.languageBody":`Wybierz język stron systemowych i interfejsu admina.`,"preferences.page.appearanceBody":`Wybierz jasny, ciemny lub zgodny z systemem.`},tr:{"admin.consoleTitle":`Yönetim konsolu`,"developer.workspaceTitle":`Geliştirme`,"auth.signIn.title":`Oturum aç`,"common.signOut":`Çıkış yap`,"common.viewSite":`Siteyi görüntüle`,"common.copy":`Kopyala`,"common.open":`Aç`,"common.failedToLoad":`Yüklenemedi`,"common.signedIn":`Oturum açık`,"common.contentAdmin":`İçerik yönetimi`,"common.close":`Kapat`,"common.skipToMain":`Ana içeriğe geç`,"common.breadcrumb":`Gezinti yolu`,"common.toggleSidebar":`Kenar çubuğunu aç/kapat`,"common.mobileSidebar":`Gezinme`,"common.mobileSidebarDescription":`Site yönetimi gezinmesi`,"oauth.connectedApps":`MCP bağlantıları`,"oauth.consent.eyebrow":`Bir MCP istemcisi bağla`,"oauth.consent.heading":`{client} bağlansın mı?`,"oauth.consent.body":`{client}, MCP üzerinden bu sitenin yönetim araçlarını kullanabilecek. Görüntüleyebileceği veya değiştirebileceği içerikler hesap izinlerinizle sınırlı kalır.`,"oauth.consent.approve":`Bağla`,"oauth.consent.deny":`İptal`,"oauth.consent.invalidTitle":`Geçersiz yetkilendirme isteği`,"oauth.consent.invalidBody":`Yetkilendirme bilgileri eksik veya hatalı. MCP istemcinize dönüp tekrar deneyin.`,"oauth.apps.eyebrow":`Hesabınız`,"oauth.apps.body":`Bu MCP istemcileri sitenin yönetim araçlarını kullanabilir. Her işlem mevcut hesap izinlerinize göre denetlenmeye devam eder.`,"oauth.apps.empty":`Bağlı MCP istemcisi yok.`,"oauth.apps.revoke":`Bağlantıyı kes`,"collection.filter.all":`Tümü`,"nav.home":`Ana sayfa`,"nav.overview":`Genel bakış`,"nav.model":`Veri modeli`,"nav.logic":`Mantık`,"nav.docs":`Arayüzler`,"nav.build":`Derleme`,"nav.content":`İçerik`,"nav.operations":`Kayıtlar`,"nav.media":`Medya kitaplığı`,"nav.more":`Daha fazla`,"nav.settings":`Ayarlar`,"nav.staff":`Yönetici kullanıcılar`,"nav.members":`Üyeler`,"nav.reports":`Raporlar`,"nav.localizedContent":`Yerelleştirilmiş içerik barındırır`,"common.yes":`Evet`,"common.no":`Hayır`,"model.title":`Veri modeli`,"model.schemas":`Şemalar`,"model.views":`Görünümler`,"model.objects":`Veri modeli nesneleri`,"model.search":`Veri modelinde ara`,"model.fields":`Alanlar`,"model.path":`Yol`,"model.type":`Tür`,"model.required":`Zorunlu`,"model.constraints":`Kısıtlamalar`,"model.noFields":`Nesne özelliği bildirilmemiş.`,"model.rawSchema":`JSON şeması`,"model.rawQuery":`Sorgu planı`,"model.queryKind":`Sorgu`,"model.source":`Kaynak`,"model.allFields":`Tüm alanlar`,"model.order":`Sıralama`,"model.limit":`Sınır`,"model.dialect":`Lehçe`,"model.filter":`Filtre`,"model.params":`Parametreler`,"model.relationships":`İlişkiler`,"model.references":`Bu öğenin başvurduğu öğeler`,"model.referencedBy":`Bu öğeye başvuran öğeler`,"model.noRelations":`Manifest ilişkisi bildirilmemiş.`,"model.openGraph":`Grafikte göster`,"model.openDeclaration":`Manifest bildirimini aç`,"model.manifest":`Manifest`,"model.compiledManifest":`Derlenmiş Manifest`,"model.marker.reference":`{target} başvurusu`,"model.marker.translationParent":`Üst öğe {target} ile çeviri bağlantısı`,"model.marker.translationChild":`Alt öğe {target} üzerinden çeviri bağlantısı`,"model.marker.unique":`Benzersiz dizin UQ{index}: {fields}`,"model.marker.index":`Dizin IDX{index}: {fields}`,"logic.title":`Mantık`,"logic.objects":`Mantık nesneleri`,"logic.search":`Mantıkta ara`,"logic.triggers":`Tetikleyiciler`,"logic.procedures":`Prosedürler`,"logic.overview":`Genel bakış`,"logic.contract":`Sözleşme`,"logic.configuration":`Yapılandırma`,"logic.contractFrom":`Bu giriş noktası {target} tarafından bildirilen sözleşmeyi kullanır.`,"logic.input":`Girdi`,"logic.output":`Çıktı`,"logic.noContract":`Hedef prosedür sözleşmesi yok.`,"logic.execution":`Yürütme yolu`,"logic.target":`Hedef prosedür`,"logic.authorization":`Yetkilendirme`,"logic.noAuthorization":`Yetkilendirme koşulu bildirilmemiş.`,"logic.guard":`Koruma prosedürü`,"logic.method":`Yöntem`,"logic.surface":`Kapsam`,"logic.hooks":`Kancalar`,"logic.errorPolicy":`Hata politikası`,"docs.title":`API ve ajan arayüzleri`,"docs.intro":`HTTP, MCP ve tarayıcı WebMCP giriş noktaları için RuntimePlan’den türetilen başvuru.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP tetikleyicileri ve otomatik olarak yayınlanan genel görünüm yolları.`,"docs.mcpIntro":`Görünümlerden ve açık MCP tetikleyicilerinden üretilen araçlar. Araç çalıştırılırken yetkilendirme uygulanmaya devam eder.`,"docs.webmcpIntro":`Bu sunucu destekli bağlantı, genel görünümleri HTTP üzerinden keşfeder ve salt okunur tarayıcı araçları olarak kaydeder. Her görünüm kendi hedef kitle kurallarını korur.`,"docs.publicEndpoint":`Genel uç nokta`,"docs.staffEndpoint":`Personel uç noktası`,"docs.catalogEndpoint":`Keşif kataloğu`,"docs.target":`Hedef`,"docs.inputSchema":`Girdi şeması`,"docs.outputSchema":`Çıktı şeması`,"docs.readOnly":`Salt okunur`,"docs.noEntries":`Bu arayüz için giriş noktası bildirilmemiş.`,"docs.webmcpNote":`Genel prosedür araçları MCP’de kalır. Sunucu destekli WebMCP HTTP sarmalayıcısı kasıtlı olarak yalnızca genel görünümleri kaydeder.`,"developer.graph.title":`Manifest grafiği`,"developer.graph.details":`Öğe ayrıntıları`,"developer.graph.openModel":`Veri modelinde aç`,"developer.graph.openLogic":`Mantık ayrıntılarını aç`,"developer.graph.relayout":`Otomatik yerleşim`,"developer.graph.previous":`Önceki adım`,"developer.graph.next":`Sonraki adım`,"developer.graph.step":`{total} adımın {current}. adımı`,"developer.graph.comesFrom":`Geldiği yer`,"developer.graph.continuesTo":`Devam ettiği yer`,"developer.graph.manifestSource":`Manifest kaynağı`,"developer.graph.builtin":`Yerleşik`,"developer.graph.kind.schema":`Şema`,"developer.graph.kind.view":`Görünüm`,"developer.graph.kind.procedure":`Prosedür`,"developer.graph.kind.trigger":`Tetikleyici`,"developer.graph.fact.audience":`Hedef kitle`,"developer.graph.fact.transport":`Aktarım`,"developer.graph.fact.handler":`İşleyici`,"developer.graph.fact.operation":`İşlem`,"developer.graph.fact.schema":`Şema`,"developer.graph.fact.match":`Eşleşme`,"developer.graph.summary.trigger":`{audience} istekleri {transport} üzerinden girer ve {target} hedefine devam eder.`,"developer.graph.summary.builtin":`Yerleşik bir {op} işlemi {schema} üzerine yazar.`,"developer.graph.summary.ref":`Bu prosedür kayıtlı {ref} kod işleyicisini çalıştırır.`,"developer.graph.summary.view":`{audience} için {target} üzerinde salt okunur bir görünüm.`,"developer.graph.summary.schema":`{incoming} öğe bu şemayı kullanır; şema başka {outgoing} öğeye başvurur.`,"developer.graph.audience.public":`Genel`,"developer.graph.audience.members":`Üyeler`,"developer.graph.audience.staff":`Personel`,"developer.graph.audience.system":`Sistem`,"developer.graph.audience.apiClients":`API istemcileri`,"developer.graph.audienceDescription.public":`Oturum açmadan kullanılabilir.`,"developer.graph.audienceDescription.members":`Oturum açmış herhangi bir üye. Site rolü gerekmez.`,"developer.graph.audienceDescription.staff":`Katkıda bulunan, editör veya sahip site rolüne sahip oturum açmış bir üye. Personel ayrı bir yönetici hesabı değil, erişim düzeyidir.`,"developer.graph.audienceDescription.system":`Yaşam döngüsü, kuyruk veya zamanlama olaylarından otomatik çalışır.`,"developer.graph.audienceDescription.apiClients":`Kimliği doğrulanmış bir API istemcisi veya kapsam gerektirir.`,"developer.graph.relation.translationParent":`çevirir`,"developer.graph.relation.schemaReference":`başvurur`,"developer.graph.relation.viewSource":`şuradan okur`,"developer.graph.relation.guard":`şununla korunur`,"developer.graph.relation.procedureSchema":`şemayı işler`,"developer.graph.relation.collectionAction":`üzerinde işlem yapar`,"developer.graph.relation.inputReference":`başvurur`,"developer.graph.relation.triggerTarget":`çağırır`,"developer.graph.relation.lifecycleSource":`yaşam döngüsünü izler`,"status.draft":`Taslaklar`,"status.published":`Yayında`,"status.archived":`Arşivlendi`,"preferences.heading":`Tercihler`,"preferences.language":`Yönetici dili`,"preferences.language.search":`Dil ara...`,"preferences.language.noResults":`Dil bulunamadı.`,"preferences.direction":`Metin yönü`,"preferences.direction.auto":`Metin yönü seçilen dili izler.`,"preferences.appearance":`Görünüm`,"preferences.light":`Açık`,"preferences.dark":`Koyu`,"preferences.system":`Sistem`,"preferences.ltr":`Soldan sağa`,"preferences.rtl":`Sağdan sola`,"preferences.page.open":`Tercihler`,"preferences.page.title":`Kişisel tercihler`,"preferences.page.body":`Bu tercihler bu tarayıcıda kalır. Yalnızca yönetim konsolunu değiştirir, site ayarlarını değiştirmez.`,"preferences.page.languageBody":`Sistem sayfaları ve yönetim arayüzü için dili seçin.`,"preferences.page.appearanceBody":`Açık, koyu veya işletim sistemini takip et seçeneğini seçin.`},vi:{"admin.consoleTitle":`Bảng điều khiển quản trị`,"developer.workspaceTitle":`Phát triển`,"auth.signIn.title":`Đăng nhập`,"common.signOut":`Đăng xuất`,"common.viewSite":`Xem trang`,"common.copy":`Sao chép`,"common.open":`Mở`,"common.failedToLoad":`Tải thất bại`,"common.signedIn":`Đã đăng nhập`,"common.contentAdmin":`Quản trị nội dung`,"common.close":`Đóng`,"common.skipToMain":`Chuyển đến nội dung chính`,"common.breadcrumb":`Đường dẫn điều hướng`,"common.toggleSidebar":`Bật/tắt thanh bên`,"common.mobileSidebar":`Điều hướng`,"common.mobileSidebarDescription":`Điều hướng quản trị trang`,"oauth.connectedApps":`Kết nối MCP`,"oauth.consent.eyebrow":`Kết nối ứng dụng MCP`,"oauth.consent.heading":`Kết nối {client}?`,"oauth.consent.body":`{client} sẽ có thể sử dụng các công cụ quản trị của trang web này qua MCP. Nội dung mà ứng dụng có thể xem hoặc thay đổi vẫn bị giới hạn bởi quyền tài khoản của bạn.`,"oauth.consent.approve":`Kết nối`,"oauth.consent.deny":`Hủy`,"oauth.consent.invalidTitle":`Yêu cầu ủy quyền không hợp lệ`,"oauth.consent.invalidBody":`Dữ liệu ủy quyền bị thiếu hoặc không đúng định dạng. Hãy quay lại ứng dụng MCP và thử lại.`,"oauth.apps.eyebrow":`Tài khoản của bạn`,"oauth.apps.body":`Các ứng dụng MCP này có thể sử dụng công cụ quản trị của trang web. Mọi thao tác vẫn được kiểm tra theo quyền hiện tại của tài khoản bạn.`,"oauth.apps.empty":`Chưa có ứng dụng MCP nào được kết nối.`,"oauth.apps.revoke":`Ngắt kết nối`,"collection.filter.all":`Tất cả`,"nav.home":`Trang chủ`,"nav.overview":`Tổng quan`,"nav.model":`Mô hình dữ liệu`,"nav.logic":`Logic`,"nav.docs":`Giao diện`,"nav.build":`Bản dựng`,"nav.content":`Nội dung`,"nav.operations":`Bản ghi`,"nav.media":`Thư viện phương tiện`,"nav.more":`Thêm`,"nav.settings":`Cài đặt`,"nav.staff":`Người dùng quản trị`,"nav.members":`Thành viên`,"nav.reports":`Báo cáo`,"nav.localizedContent":`Có nội dung bản địa hóa`,"common.yes":`Có`,"common.no":`Không`,"model.title":`Mô hình dữ liệu`,"model.schemas":`Lược đồ`,"model.views":`Khung nhìn`,"model.objects":`Đối tượng mô hình dữ liệu`,"model.search":`Tìm kiếm mô hình dữ liệu`,"model.fields":`Trường`,"model.path":`Đường dẫn`,"model.type":`Kiểu`,"model.required":`Bắt buộc`,"model.constraints":`Ràng buộc`,"model.noFields":`Chưa khai báo thuộc tính đối tượng nào.`,"model.rawSchema":`Lược đồ JSON`,"model.rawQuery":`Kế hoạch truy vấn`,"model.queryKind":`Truy vấn`,"model.source":`Nguồn`,"model.allFields":`Tất cả trường`,"model.order":`Thứ tự`,"model.limit":`Giới hạn`,"model.dialect":`Phương ngữ`,"model.filter":`Bộ lọc`,"model.params":`Tham số`,"model.relationships":`Quan hệ`,"model.references":`Mục này tham chiếu`,"model.referencedBy":`Tham chiếu mục này`,"model.noRelations":`Chưa khai báo quan hệ Manifest nào.`,"model.openGraph":`Hiển thị trong đồ thị`,"model.openDeclaration":`Mở khai báo Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest đã biên dịch`,"model.marker.reference":`Tham chiếu đến {target}`,"model.marker.translationParent":`Liên kết bản dịch đến mục cha {target}`,"model.marker.translationChild":`Liên kết bản dịch từ mục con {target}`,"model.marker.unique":`Chỉ mục duy nhất UQ{index}: {fields}`,"model.marker.index":`Chỉ mục IDX{index}: {fields}`,"logic.title":`Logic`,"logic.objects":`Đối tượng logic`,"logic.search":`Tìm kiếm logic`,"logic.triggers":`Trình kích hoạt`,"logic.procedures":`Thủ tục`,"logic.overview":`Tổng quan`,"logic.contract":`Hợp đồng`,"logic.configuration":`Cấu hình`,"logic.contractFrom":`Điểm vào này dùng hợp đồng do {target} khai báo.`,"logic.input":`Đầu vào`,"logic.output":`Đầu ra`,"logic.noContract":`Không có hợp đồng cho thủ tục đích.`,"logic.execution":`Đường thực thi`,"logic.target":`Thủ tục đích`,"logic.authorization":`Ủy quyền`,"logic.noAuthorization":`Chưa khai báo điều kiện ủy quyền nào.`,"logic.guard":`Thủ tục bảo vệ`,"logic.method":`Phương thức`,"logic.surface":`Phạm vi`,"logic.hooks":`Móc`,"logic.errorPolicy":`Chính sách lỗi`,"docs.title":`Giao diện API và tác nhân`,"docs.intro":`Tài liệu tham chiếu suy ra từ RuntimePlan cho các điểm vào HTTP, MCP và WebMCP trên trình duyệt.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Trình kích hoạt HTTP và tuyến khung nhìn công khai được tự động cung cấp.`,"docs.mcpIntro":`Công cụ được tạo từ khung nhìn và trình kích hoạt MCP khai báo rõ ràng. Việc ủy quyền vẫn được áp dụng khi chạy công cụ.`,"docs.webmcpIntro":`Liên kết phía máy chủ này phát hiện khung nhìn công khai qua HTTP và đăng ký chúng làm công cụ trình duyệt chỉ đọc. Mỗi khung nhìn giữ nguyên quy tắc đối tượng của mình.`,"docs.publicEndpoint":`Điểm cuối công khai`,"docs.staffEndpoint":`Điểm cuối nhân viên`,"docs.catalogEndpoint":`Danh mục khám phá`,"docs.target":`Đích`,"docs.inputSchema":`Lược đồ đầu vào`,"docs.outputSchema":`Lược đồ đầu ra`,"docs.readOnly":`Chỉ đọc`,"docs.noEntries":`Chưa khai báo điểm vào nào cho giao diện này.`,"docs.webmcpNote":`Công cụ thủ tục công khai vẫn nằm trên MCP. Trình bao HTTP WebMCP phía máy chủ chủ ý chỉ đăng ký khung nhìn công khai.`,"developer.graph.title":`Đồ thị Manifest`,"developer.graph.details":`Chi tiết mục`,"developer.graph.openModel":`Mở trong mô hình dữ liệu`,"developer.graph.openLogic":`Mở chi tiết logic`,"developer.graph.relayout":`Bố cục tự động`,"developer.graph.previous":`Bước trước`,"developer.graph.next":`Bước tiếp theo`,"developer.graph.step":`Bước {current} / {total}`,"developer.graph.comesFrom":`Đến từ`,"developer.graph.continuesTo":`Tiếp tục đến`,"developer.graph.manifestSource":`Nguồn Manifest`,"developer.graph.builtin":`Tích hợp sẵn`,"developer.graph.kind.schema":`Lược đồ`,"developer.graph.kind.view":`Khung nhìn`,"developer.graph.kind.procedure":`Thủ tục`,"developer.graph.kind.trigger":`Trình kích hoạt`,"developer.graph.fact.audience":`Đối tượng`,"developer.graph.fact.transport":`Phương thức truyền`,"developer.graph.fact.handler":`Trình xử lý`,"developer.graph.fact.operation":`Thao tác`,"developer.graph.fact.schema":`Lược đồ`,"developer.graph.fact.match":`Điều kiện khớp`,"developer.graph.summary.trigger":`Yêu cầu từ {audience} đi vào qua {transport} và tiếp tục đến {target}.`,"developer.graph.summary.builtin":`Thao tác {op} tích hợp sẵn ghi vào {schema}.`,"developer.graph.summary.ref":`Thủ tục này chạy trình xử lý mã đã đăng ký {ref}.`,"developer.graph.summary.view":`Khung nhìn chỉ đọc của {target} dành cho {audience}.`,"developer.graph.summary.schema":`{incoming} mục dùng lược đồ này; lược đồ tham chiếu {outgoing} mục khác.`,"developer.graph.audience.public":`Công khai`,"developer.graph.audience.members":`Thành viên`,"developer.graph.audience.staff":`Nhân viên`,"developer.graph.audience.system":`Hệ thống`,"developer.graph.audience.apiClients":`Máy khách API`,"developer.graph.audienceDescription.public":`Có thể dùng mà không cần đăng nhập.`,"developer.graph.audienceDescription.members":`Bất kỳ thành viên đã đăng nhập nào. Không yêu cầu vai trò trên trang.`,"developer.graph.audienceDescription.staff":`Thành viên đã đăng nhập có vai trò cộng tác viên, biên tập viên hoặc chủ sở hữu. Nhân viên là cấp truy cập, không phải tài khoản quản trị riêng.`,"developer.graph.audienceDescription.system":`Tự động chạy từ sự kiện vòng đời, hàng đợi hoặc lịch biểu.`,"developer.graph.audienceDescription.apiClients":`Yêu cầu máy khách API đã xác thực hoặc phạm vi phù hợp.`,"developer.graph.relation.translationParent":`dịch`,"developer.graph.relation.schemaReference":`tham chiếu`,"developer.graph.relation.viewSource":`đọc từ`,"developer.graph.relation.guard":`được bảo vệ bởi`,"developer.graph.relation.procedureSchema":`xử lý lược đồ`,"developer.graph.relation.collectionAction":`tác động lên`,"developer.graph.relation.inputReference":`tham chiếu`,"developer.graph.relation.triggerTarget":`gọi`,"developer.graph.relation.lifecycleSource":`theo dõi vòng đời`,"status.draft":`Bản nháp`,"status.published":`Đã xuất bản`,"status.archived":`Đã lưu trữ`,"preferences.heading":`Tùy chọn`,"preferences.language":`Ngôn ngữ quản trị`,"preferences.language.search":`Tìm ngôn ngữ...`,"preferences.language.noResults":`Không tìm thấy ngôn ngữ.`,"preferences.direction":`Hướng văn bản`,"preferences.direction.auto":`Hướng văn bản theo ngôn ngữ đã chọn.`,"preferences.appearance":`Giao diện`,"preferences.light":`Sáng`,"preferences.dark":`Tối`,"preferences.system":`Hệ thống`,"preferences.ltr":`Trái sang phải`,"preferences.rtl":`Phải sang trái`,"preferences.page.open":`Tùy chọn`,"preferences.page.title":`Tùy chọn cá nhân`,"preferences.page.body":`Các tùy chọn này chỉ lưu trong trình duyệt này. Chúng chỉ thay đổi admin console và không sửa cài đặt trang.`,"preferences.page.languageBody":`Chọn ngôn ngữ cho trang hệ thống và giao diện quản trị.`,"preferences.page.appearanceBody":`Chọn sáng, tối hoặc theo hệ điều hành.`},cs:{"admin.consoleTitle":`Administrační konzole`,"developer.workspaceTitle":`Vývoj`,"auth.signIn.title":`Přihlásit se`,"common.signOut":`Odhlásit se`,"common.viewSite":`Zobrazit web`,"common.copy":`Kopírovat`,"common.open":`Otevřít`,"common.failedToLoad":`Načtení selhalo`,"common.signedIn":`Přihlášeno`,"common.contentAdmin":`Správa obsahu`,"common.close":`Zavřít`,"common.skipToMain":`Přejít na hlavní obsah`,"common.breadcrumb":`Drobečková navigace`,"common.toggleSidebar":`Přepnout postranní panel`,"common.mobileSidebar":`Navigace`,"common.mobileSidebarDescription":`Navigace správy webu`,"oauth.connectedApps":`Připojení MCP`,"oauth.consent.eyebrow":`Připojit klienta MCP`,"oauth.consent.heading":`Připojit {client}?`,"oauth.consent.body":`{client} bude moci přes MCP používat nástroje pro správu tohoto webu. Co může zobrazit nebo změnit, zůstává omezeno oprávněními vašeho účtu.`,"oauth.consent.approve":`Připojit`,"oauth.consent.deny":`Zrušit`,"oauth.consent.invalidTitle":`Neplatný požadavek na autorizaci`,"oauth.consent.invalidBody":`Autorizační údaje chybí nebo nemají správný formát. Vraťte se do klienta MCP a zkuste to znovu.`,"oauth.apps.eyebrow":`Váš účet`,"oauth.apps.body":`Tito klienti MCP mohou používat nástroje pro správu webu. Každá akce se nadále kontroluje podle aktuálních oprávnění vašeho účtu.`,"oauth.apps.empty":`Nejsou připojeni žádní klienti MCP.`,"oauth.apps.revoke":`Odpojit`,"collection.filter.all":`Vše`,"nav.home":`Domů`,"nav.overview":`Přehled`,"nav.model":`Datový model`,"nav.logic":`Logika`,"nav.docs":`Rozhraní`,"nav.build":`Sestavení`,"nav.content":`Obsah`,"nav.operations":`Záznamy`,"nav.media":`Knihovna médií`,"nav.more":`Více`,"nav.settings":`Nastavení`,"nav.staff":`Administrátoři`,"nav.members":`Členové`,"nav.reports":`Přehledy`,"nav.localizedContent":`Obsahuje lokalizovaný obsah`,"common.yes":`Ano`,"common.no":`Ne`,"model.title":`Datový model`,"model.schemas":`Schémata`,"model.views":`Pohledy`,"model.objects":`Objekty datového modelu`,"model.search":`Prohledat datový model`,"model.fields":`Pole`,"model.path":`Cesta`,"model.type":`Typ`,"model.required":`Povinné`,"model.constraints":`Omezení`,"model.noFields":`Nejsou deklarovány žádné vlastnosti objektu.`,"model.rawSchema":`Schéma JSON`,"model.rawQuery":`Plán dotazu`,"model.queryKind":`Dotaz`,"model.source":`Zdroj`,"model.allFields":`Všechna pole`,"model.order":`Pořadí`,"model.limit":`Limit`,"model.dialect":`Dialekt`,"model.filter":`Filtr`,"model.params":`Parametry`,"model.relationships":`Vztahy`,"model.references":`Tato položka odkazuje na`,"model.referencedBy":`Odkazuje na tuto položku`,"model.noRelations":`V Manifest nejsou deklarovány žádné vztahy.`,"model.openGraph":`Zobrazit v grafu`,"model.openDeclaration":`Otevřít deklaraci Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Zkompilovaný Manifest`,"model.marker.reference":`Odkaz na {target}`,"model.marker.translationParent":`Překladové propojení s nadřazenou položkou {target}`,"model.marker.translationChild":`Překladové propojení z podřízené položky {target}`,"model.marker.unique":`Jedinečný index UQ{index}: {fields}`,"model.marker.index":`Index IDX{index}: {fields}`,"logic.title":`Logika`,"logic.objects":`Objekty logiky`,"logic.search":`Prohledat logiku`,"logic.triggers":`Spouštěče`,"logic.procedures":`Procedury`,"logic.overview":`Přehled`,"logic.contract":`Kontrakt`,"logic.configuration":`Konfigurace`,"logic.contractFrom":`Tento vstupní bod používá kontrakt deklarovaný v {target}.`,"logic.input":`Vstup`,"logic.output":`Výstup`,"logic.noContract":`Kontrakt cílové procedury není k dispozici.`,"logic.execution":`Cesta spuštění`,"logic.target":`Cílová procedura`,"logic.authorization":`Autorizace`,"logic.noAuthorization":`Nejsou deklarovány žádné autorizační podmínky.`,"logic.guard":`Ochranná procedura`,"logic.method":`Metoda`,"logic.surface":`Rozsah`,"logic.hooks":`Hooky`,"logic.errorPolicy":`Zásady chyb`,"docs.title":`Rozhraní API a agentů`,"docs.intro":`Reference vstupních bodů HTTP, MCP a prohlížečového WebMCP odvozená z RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Spouštěče HTTP a automaticky zveřejněné trasy veřejných pohledů.`,"docs.mcpIntro":`Nástroje odvozené z pohledů a explicitních spouštěčů MCP. Při spuštění nástroje se stále uplatňuje autorizace.`,"docs.webmcpIntro":`Tato serverová integrace vyhledá veřejné pohledy přes HTTP a zaregistruje je jako prohlížečové nástroje pouze pro čtení. Každý pohled si zachová vlastní pravidla cílové skupiny.`,"docs.publicEndpoint":`Veřejný koncový bod`,"docs.staffEndpoint":`Koncový bod pro personál`,"docs.catalogEndpoint":`Katalog zjišťování`,"docs.target":`Cíl`,"docs.inputSchema":`Vstupní schéma`,"docs.outputSchema":`Výstupní schéma`,"docs.readOnly":`Pouze pro čtení`,"docs.noEntries":`Pro toto rozhraní nejsou deklarovány žádné vstupní body.`,"docs.webmcpNote":`Nástroje veřejných procedur zůstávají dostupné přes MCP. Serverový HTTP wrapper WebMCP záměrně registruje pouze veřejné pohledy.`,"developer.graph.title":`Graf Manifest`,"developer.graph.details":`Podrobnosti položky`,"developer.graph.openModel":`Otevřít v datovém modelu`,"developer.graph.openLogic":`Otevřít podrobnosti logiky`,"developer.graph.relayout":`Automatické rozložení`,"developer.graph.previous":`Předchozí krok`,"developer.graph.next":`Další krok`,"developer.graph.step":`Krok {current} z {total}`,"developer.graph.comesFrom":`Přichází z`,"developer.graph.continuesTo":`Pokračuje do`,"developer.graph.manifestSource":`Zdroj Manifest`,"developer.graph.builtin":`Vestavěné`,"developer.graph.kind.schema":`Schéma`,"developer.graph.kind.view":`Pohled`,"developer.graph.kind.procedure":`Procedura`,"developer.graph.kind.trigger":`Spouštěč`,"developer.graph.fact.audience":`Cílová skupina`,"developer.graph.fact.transport":`Přenos`,"developer.graph.fact.handler":`Obslužná rutina`,"developer.graph.fact.operation":`Operace`,"developer.graph.fact.schema":`Schéma`,"developer.graph.fact.match":`Shoda`,"developer.graph.summary.trigger":`Požadavky od {audience} vstupují přes {transport} a pokračují do {target}.`,"developer.graph.summary.builtin":`Vestavěná operace {op} zapisuje do {schema}.`,"developer.graph.summary.ref":`Tato procedura spouští registrovanou obslužnou rutinu kódu {ref}.`,"developer.graph.summary.view":`Pohled na {target} pouze pro čtení pro skupinu {audience}.`,"developer.graph.summary.schema":`{incoming} položek používá toto schéma; odkazuje na dalších {outgoing} položek.`,"developer.graph.audience.public":`Veřejné`,"developer.graph.audience.members":`Členové`,"developer.graph.audience.staff":`Personál`,"developer.graph.audience.system":`Systém`,"developer.graph.audience.apiClients":`Klienti API`,"developer.graph.audienceDescription.public":`Dostupné bez přihlášení.`,"developer.graph.audienceDescription.members":`Kterýkoli přihlášený člen. Role na webu není vyžadována.`,"developer.graph.audienceDescription.staff":`Přihlášený člen s rolí přispěvatele, editora nebo vlastníka. Personál je úroveň přístupu, nikoli samostatný účet správce.`,"developer.graph.audienceDescription.system":`Spouští se automaticky z událostí životního cyklu, fronty nebo plánu.`,"developer.graph.audienceDescription.apiClients":`Vyžaduje ověřeného klienta API nebo odpovídající rozsah.`,"developer.graph.relation.translationParent":`překládá`,"developer.graph.relation.schemaReference":`odkazuje na`,"developer.graph.relation.viewSource":`čte z`,"developer.graph.relation.guard":`chráněno pomocí`,"developer.graph.relation.procedureSchema":`zpracovává schéma`,"developer.graph.relation.collectionAction":`působí na`,"developer.graph.relation.inputReference":`odkazuje na`,"developer.graph.relation.triggerTarget":`volá`,"developer.graph.relation.lifecycleSource":`sleduje životní cyklus`,"status.draft":`Koncepty`,"status.published":`Publikováno`,"status.archived":`Archivováno`,"preferences.heading":`Předvolby`,"preferences.language":`Jazyk administrace`,"preferences.language.search":`Hledat jazyky...`,"preferences.language.noResults":`Nenalezeny žádné jazyky.`,"preferences.direction":`Směr textu`,"preferences.direction.auto":`Směr textu se řídí vybraným jazykem.`,"preferences.appearance":`Vzhled`,"preferences.light":`Světlý`,"preferences.dark":`Tmavý`,"preferences.system":`Systém`,"preferences.ltr":`Zleva doprava`,"preferences.rtl":`Zprava doleva`,"preferences.page.open":`Předvolby`,"preferences.page.title":`Osobní předvolby`,"preferences.page.body":`Tyto předvolby zůstávají v tomto prohlížeči. Mění jen administrační konzoli, ne nastavení webu.`,"preferences.page.languageBody":`Vyberte jazyk systémových stránek a administračního rozhraní.`,"preferences.page.appearanceBody":`Vyberte světlý, tmavý nebo systémový režim.`},uk:{"admin.consoleTitle":`Консоль адміністратора`,"developer.workspaceTitle":`Розробка`,"auth.signIn.title":`Увійти`,"common.signOut":`Вийти`,"common.viewSite":`Переглянути сайт`,"common.copy":`Копіювати`,"common.open":`Відкрити`,"common.failedToLoad":`Не вдалося завантажити`,"common.signedIn":`Ви увійшли`,"common.contentAdmin":`Керування вмістом`,"common.close":`Закрити`,"common.skipToMain":`Перейти до основного вмісту`,"common.breadcrumb":`Навігаційний ланцюжок`,"common.toggleSidebar":`Перемкнути бічну панель`,"common.mobileSidebar":`Навігація`,"common.mobileSidebarDescription":`Навігація керування сайтом`,"oauth.connectedApps":`Підключення MCP`,"oauth.consent.eyebrow":`Підключити клієнт MCP`,"oauth.consent.heading":`Підключити {client}?`,"oauth.consent.body":`{client} зможе використовувати інструменти керування цим сайтом через MCP. Можливість переглядати або змінювати дані й надалі обмежується дозволами вашого облікового запису.`,"oauth.consent.approve":`Підключити`,"oauth.consent.deny":`Скасувати`,"oauth.consent.invalidTitle":`Недійсний запит авторизації`,"oauth.consent.invalidBody":`Дані авторизації відсутні або мають неправильний формат. Поверніться до клієнта MCP і спробуйте ще раз.`,"oauth.apps.eyebrow":`Ваш обліковий запис`,"oauth.apps.body":`Ці клієнти MCP можуть використовувати інструменти керування сайтом. Кожна дія й надалі перевіряється відповідно до поточних дозволів вашого облікового запису.`,"oauth.apps.empty":`Немає підключених клієнтів MCP.`,"oauth.apps.revoke":`Відключити`,"collection.filter.all":`Усі`,"nav.home":`Головна`,"nav.overview":`Огляд`,"nav.model":`Модель даних`,"nav.logic":`Логіка`,"nav.docs":`Інтерфейси`,"nav.build":`Збірка`,"nav.content":`Контент`,"nav.operations":`Записи`,"nav.media":`Медіатека`,"nav.more":`Більше`,"nav.settings":`Налаштування`,"nav.staff":`Адміністратори`,"nav.members":`Учасники`,"nav.reports":`Звіти`,"nav.localizedContent":`Містить локалізований вміст`,"common.yes":`Так`,"common.no":`Ні`,"model.title":`Модель даних`,"model.schemas":`Схеми`,"model.views":`Подання`,"model.objects":`Об’єкти моделі даних`,"model.search":`Пошук у моделі даних`,"model.fields":`Поля`,"model.path":`Шлях`,"model.type":`Тип`,"model.required":`Обов’язково`,"model.constraints":`Обмеження`,"model.noFields":`Властивості об’єкта не оголошено.`,"model.rawSchema":`Схема JSON`,"model.rawQuery":`План запиту`,"model.queryKind":`Запит`,"model.source":`Джерело`,"model.allFields":`Усі поля`,"model.order":`Порядок`,"model.limit":`Ліміт`,"model.dialect":`Діалект`,"model.filter":`Фільтр`,"model.params":`Параметри`,"model.relationships":`Зв’язки`,"model.references":`Цей елемент посилається на`,"model.referencedBy":`Посилається на цей елемент`,"model.noRelations":`Зв’язки в Manifest не оголошено.`,"model.openGraph":`Показати на графі`,"model.openDeclaration":`Відкрити оголошення Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Скомпільований Manifest`,"model.marker.reference":`Посилання на {target}`,"model.marker.translationParent":`Зв’язок перекладу з батьківським елементом {target}`,"model.marker.translationChild":`Зв’язок перекладу від дочірнього елемента {target}`,"model.marker.unique":`Унікальний індекс UQ{index}: {fields}`,"model.marker.index":`Індекс IDX{index}: {fields}`,"logic.title":`Логіка`,"logic.objects":`Об’єкти логіки`,"logic.search":`Пошук логіки`,"logic.triggers":`Тригери`,"logic.procedures":`Процедури`,"logic.overview":`Огляд`,"logic.contract":`Контракт`,"logic.configuration":`Конфігурація`,"logic.contractFrom":`Ця точка входу використовує контракт, оголошений у {target}.`,"logic.input":`Вхід`,"logic.output":`Вихід`,"logic.noContract":`Контракт цільової процедури недоступний.`,"logic.execution":`Шлях виконання`,"logic.target":`Цільова процедура`,"logic.authorization":`Авторизація`,"logic.noAuthorization":`Умови авторизації не оголошено.`,"logic.guard":`Захисна процедура`,"logic.method":`Метод`,"logic.surface":`Область доступу`,"logic.hooks":`Перехоплювачі`,"logic.errorPolicy":`Політика помилок`,"docs.title":`Інтерфейси API та агентів`,"docs.intro":`Довідник точок входу HTTP, MCP і браузерного WebMCP, сформований із RuntimePlan.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`HTTP-тригери та автоматично оприлюднені маршрути публічних подань.`,"docs.mcpIntro":`Інструменти, сформовані з подань і явно заданих MCP-тригерів. Авторизація й надалі перевіряється під час виконання.`,"docs.webmcpIntro":`Ця серверна інтеграція виявляє публічні подання через HTTP і реєструє їх як браузерні інструменти лише для читання. Кожне подання зберігає власні правила аудиторії.`,"docs.publicEndpoint":`Публічна точка входу`,"docs.staffEndpoint":`Точка входу для персоналу`,"docs.catalogEndpoint":`Каталог виявлення`,"docs.target":`Ціль`,"docs.inputSchema":`Схема входу`,"docs.outputSchema":`Схема виходу`,"docs.readOnly":`Лише читання`,"docs.noEntries":`Для цього інтерфейсу точки входу не оголошено.`,"docs.webmcpNote":`Інструменти публічних процедур залишаються в MCP. Серверна HTTP-обгортка WebMCP навмисно реєструє лише публічні подання.`,"developer.graph.title":`Граф Manifest`,"developer.graph.details":`Відомості про елемент`,"developer.graph.openModel":`Відкрити в моделі даних`,"developer.graph.openLogic":`Відкрити відомості про логіку`,"developer.graph.relayout":`Автоматичне розташування`,"developer.graph.previous":`Попередній крок`,"developer.graph.next":`Наступний крок`,"developer.graph.step":`Крок {current} із {total}`,"developer.graph.comesFrom":`Надходить із`,"developer.graph.continuesTo":`Продовжується в`,"developer.graph.manifestSource":`Джерело Manifest`,"developer.graph.builtin":`Вбудовано`,"developer.graph.kind.schema":`Схема`,"developer.graph.kind.view":`Подання`,"developer.graph.kind.procedure":`Процедура`,"developer.graph.kind.trigger":`Тригер`,"developer.graph.fact.audience":`Аудиторія`,"developer.graph.fact.transport":`Транспорт`,"developer.graph.fact.handler":`Обробник`,"developer.graph.fact.operation":`Операція`,"developer.graph.fact.schema":`Схема`,"developer.graph.fact.match":`Умова`,"developer.graph.summary.trigger":`Запити від {audience} надходять через {transport} і переходять до {target}.`,"developer.graph.summary.builtin":`Вбудована операція {op} записує дані в {schema}.`,"developer.graph.summary.ref":`Ця процедура запускає зареєстрований обробник коду {ref}.`,"developer.graph.summary.view":`Подання {target} лише для читання для аудиторії {audience}.`,"developer.graph.summary.schema":`{incoming} елементів використовують цю схему; вона посилається ще на {outgoing} елементів.`,"developer.graph.audience.public":`Публічно`,"developer.graph.audience.members":`Учасники`,"developer.graph.audience.staff":`Персонал`,"developer.graph.audience.system":`Система`,"developer.graph.audience.apiClients":`Клієнти API`,"developer.graph.audienceDescription.public":`Доступно без входу.`,"developer.graph.audienceDescription.members":`Будь-який учасник, який увійшов. Роль на сайті не потрібна.`,"developer.graph.audienceDescription.staff":`Учасник, який увійшов і має роль автора, редактора або власника. Персонал — це рівень доступу, а не окремий обліковий запис адміністратора.`,"developer.graph.audienceDescription.system":`Запускається автоматично подіями життєвого циклу, черги або розкладу.`,"developer.graph.audienceDescription.apiClients":`Потрібен автентифікований клієнт API або відповідна область доступу.`,"developer.graph.relation.translationParent":`перекладає`,"developer.graph.relation.schemaReference":`посилається на`,"developer.graph.relation.viewSource":`читає з`,"developer.graph.relation.guard":`захищено`,"developer.graph.relation.procedureSchema":`обробляє схему`,"developer.graph.relation.collectionAction":`діє на`,"developer.graph.relation.inputReference":`посилається на`,"developer.graph.relation.triggerTarget":`викликає`,"developer.graph.relation.lifecycleSource":`стежить за життєвим циклом`,"status.draft":`Чернетки`,"status.published":`Опубліковано`,"status.archived":`Архівовано`,"preferences.heading":`Параметри`,"preferences.language":`Мова адмінки`,"preferences.language.search":`Пошук мов...`,"preferences.language.noResults":`Мови не знайдено.`,"preferences.direction":`Напрям тексту`,"preferences.direction.auto":`Напрям тексту відповідає вибраній мові.`,"preferences.appearance":`Вигляд`,"preferences.light":`Світла`,"preferences.dark":`Темна`,"preferences.system":`Система`,"preferences.ltr":`Зліва направо`,"preferences.rtl":`Справа наліво`,"preferences.page.open":`Параметри`,"preferences.page.title":`Особисті параметри`,"preferences.page.body":`Ці параметри зберігаються в цьому браузері. Вони змінюють лише адмін-консоль, а не налаштування сайту.`,"preferences.page.languageBody":`Виберіть мову системних сторінок та адмін-інтерфейсу.`,"preferences.page.appearanceBody":`Виберіть світлу, темну тему або тему системи.`},ar:{"admin.consoleTitle":`لوحة الإدارة`,"developer.workspaceTitle":`التطوير`,"auth.signIn.title":`تسجيل الدخول`,"common.signOut":`تسجيل الخروج`,"common.viewSite":`عرض الموقع`,"common.copy":`نسخ`,"common.open":`فتح`,"common.failedToLoad":`فشل التحميل`,"common.signedIn":`تم تسجيل الدخول`,"common.contentAdmin":`إدارة المحتوى`,"common.close":`إغلاق`,"common.skipToMain":`الانتقال إلى المحتوى الرئيسي`,"common.breadcrumb":`مسار التنقل`,"common.toggleSidebar":`تبديل الشريط الجانبي`,"common.mobileSidebar":`التنقل`,"common.mobileSidebarDescription":`تنقل إدارة الموقع`,"oauth.connectedApps":`اتصالات MCP`,"oauth.consent.eyebrow":`ربط عميل MCP`,"oauth.consent.heading":`هل تريد ربط {client}؟`,"oauth.consent.body":`سيتمكن {client} من استخدام أدوات إدارة هذا الموقع عبر MCP. ستظل قدرته على العرض أو التغيير محدودة بصلاحيات حسابك.`,"oauth.consent.approve":`ربط`,"oauth.consent.deny":`إلغاء`,"oauth.consent.invalidTitle":`طلب تفويض غير صالح`,"oauth.consent.invalidBody":`بيانات التفويض مفقودة أو غير صحيحة. ارجع إلى عميل MCP وحاول مرة أخرى.`,"oauth.apps.eyebrow":`حسابك`,"oauth.apps.body":`يمكن لعملاء MCP هؤلاء استخدام أدوات إدارة الموقع. سيظل كل إجراء خاضعًا للتحقق وفق صلاحيات حسابك الحالية.`,"oauth.apps.empty":`لا يوجد عملاء MCP متصلون.`,"oauth.apps.revoke":`قطع الاتصال`,"collection.filter.all":`الكل`,"nav.home":`الرئيسية`,"nav.overview":`نظرة عامة`,"nav.model":`نموذج البيانات`,"nav.logic":`المنطق`,"nav.docs":`الواجهات`,"nav.build":`البناء`,"nav.content":`المحتوى`,"nav.operations":`السجلات`,"nav.media":`مكتبة الوسائط`,"nav.more":`المزيد`,"nav.settings":`الإعدادات`,"nav.staff":`المستخدمون المسؤولون`,"nav.members":`الأعضاء`,"nav.reports":`التقارير`,"nav.localizedContent":`يتضمن محتوى مترجمًا`,"common.yes":`نعم`,"common.no":`لا`,"model.title":`نموذج البيانات`,"model.schemas":`المخططات`,"model.views":`طرق العرض`,"model.objects":`كائنات نموذج البيانات`,"model.search":`البحث في نموذج البيانات`,"model.fields":`الحقول`,"model.path":`المسار`,"model.type":`النوع`,"model.required":`مطلوب`,"model.constraints":`القيود`,"model.noFields":`لم يتم تعريف خصائص للكائن.`,"model.rawSchema":`مخطط JSON`,"model.rawQuery":`خطة الاستعلام`,"model.queryKind":`الاستعلام`,"model.source":`المصدر`,"model.allFields":`كل الحقول`,"model.order":`الترتيب`,"model.limit":`الحد`,"model.dialect":`اللهجة`,"model.filter":`عامل التصفية`,"model.params":`المعلمات`,"model.relationships":`العلاقات`,"model.references":`يشير هذا العنصر إلى`,"model.referencedBy":`يشير إلى هذا العنصر`,"model.noRelations":`لم يتم تعريف علاقات في Manifest.`,"model.openGraph":`إظهار في الرسم البياني`,"model.openDeclaration":`فتح تعريف Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest المترجم برمجيًا`,"model.marker.reference":`مرجع إلى {target}`,"model.marker.translationParent":`ربط الترجمة بالأصل {target}`,"model.marker.translationChild":`ربط الترجمة من الفرع {target}`,"model.marker.unique":`فهرس فريد UQ{index}: {fields}`,"model.marker.index":`الفهرس IDX{index}: {fields}`,"logic.title":`المنطق`,"logic.objects":`كائنات المنطق`,"logic.search":`البحث في المنطق`,"logic.triggers":`المشغلات`,"logic.procedures":`الإجراءات`,"logic.overview":`نظرة عامة`,"logic.contract":`العقد`,"logic.configuration":`التكوين`,"logic.contractFrom":`تستخدم نقطة الدخول هذه العقد المعرّف بواسطة {target}.`,"logic.input":`الإدخال`,"logic.output":`الإخراج`,"logic.noContract":`لا يتوفر عقد للإجراء الهدف.`,"logic.execution":`مسار التنفيذ`,"logic.target":`الإجراء الهدف`,"logic.authorization":`التفويض`,"logic.noAuthorization":`لم يتم تعريف شروط تفويض.`,"logic.guard":`إجراء الحماية`,"logic.method":`الطريقة`,"logic.surface":`نطاق الإتاحة`,"logic.hooks":`الخطافات`,"logic.errorPolicy":`سياسة الأخطاء`,"docs.title":`واجهات API والوكلاء`,"docs.intro":`مرجع مشتق من RuntimePlan لنقاط دخول HTTP وMCP وWebMCP في المتصفح.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`مشغلات HTTP ومسارات طرق العرض العامة المنشورة تلقائيًا.`,"docs.mcpIntro":`أدوات مشتقة من طرق العرض ومشغلات MCP الصريحة. يستمر تطبيق التفويض عند تشغيل الأداة.`,"docs.webmcpIntro":`يكتشف هذا الربط المدعوم من الخادم طرق العرض العامة عبر HTTP ويسجلها كأدوات متصفح للقراءة فقط. يحتفظ كل عرض بقواعد جمهوره.`,"docs.publicEndpoint":`نقطة النهاية العامة`,"docs.staffEndpoint":`نقطة نهاية الموظفين`,"docs.catalogEndpoint":`دليل الاكتشاف`,"docs.target":`الهدف`,"docs.inputSchema":`مخطط الإدخال`,"docs.outputSchema":`مخطط الإخراج`,"docs.readOnly":`للقراءة فقط`,"docs.noEntries":`لم يتم تعريف نقاط دخول لهذه الواجهة.`,"docs.webmcpNote":`تبقى أدوات الإجراءات العامة على MCP. يسجل مغلف HTTP الخاص بـ WebMCP والمدعوم من الخادم طرق العرض العامة فقط عن قصد.`,"developer.graph.title":`رسم Manifest البياني`,"developer.graph.details":`تفاصيل العنصر`,"developer.graph.openModel":`فتح في نموذج البيانات`,"developer.graph.openLogic":`فتح تفاصيل المنطق`,"developer.graph.relayout":`تخطيط تلقائي`,"developer.graph.previous":`الخطوة السابقة`,"developer.graph.next":`الخطوة التالية`,"developer.graph.step":`الخطوة {current} من {total}`,"developer.graph.comesFrom":`يأتي من`,"developer.graph.continuesTo":`يتابع إلى`,"developer.graph.manifestSource":`مصدر Manifest`,"developer.graph.builtin":`مدمج`,"developer.graph.kind.schema":`مخطط`,"developer.graph.kind.view":`عرض`,"developer.graph.kind.procedure":`إجراء`,"developer.graph.kind.trigger":`مشغل`,"developer.graph.fact.audience":`الجمهور`,"developer.graph.fact.transport":`النقل`,"developer.graph.fact.handler":`المعالج`,"developer.graph.fact.operation":`العملية`,"developer.graph.fact.schema":`المخطط`,"developer.graph.fact.match":`المطابقة`,"developer.graph.summary.trigger":`تدخل طلبات {audience} عبر {transport} وتتابع إلى {target}.`,"developer.graph.summary.builtin":`تكتب عملية {op} مدمجة إلى {schema}.`,"developer.graph.summary.ref":`يشغّل هذا الإجراء معالج الشيفرة المسجل {ref}.`,"developer.graph.summary.view":`عرض للقراءة فقط لـ {target} مخصص لـ {audience}.`,"developer.graph.summary.schema":`يستخدم {incoming} من العناصر هذا المخطط؛ ويشير إلى {outgoing} من العناصر الأخرى.`,"developer.graph.audience.public":`عام`,"developer.graph.audience.members":`الأعضاء`,"developer.graph.audience.staff":`الموظفون`,"developer.graph.audience.system":`النظام`,"developer.graph.audience.apiClients":`عملاء API`,"developer.graph.audienceDescription.public":`متاح دون تسجيل الدخول.`,"developer.graph.audienceDescription.members":`أي عضو مسجل الدخول. لا يلزم دور في الموقع.`,"developer.graph.audienceDescription.staff":`عضو مسجل الدخول بدور مساهم أو محرر أو مالك. الموظفون مستوى وصول وليسوا حساب مسؤول منفصلًا.`,"developer.graph.audienceDescription.system":`يعمل تلقائيًا من أحداث دورة الحياة أو قائمة الانتظار أو الجدولة.`,"developer.graph.audienceDescription.apiClients":`يتطلب عميل API مصادقًا عليه أو نطاقًا مناسبًا.`,"developer.graph.relation.translationParent":`يترجم`,"developer.graph.relation.schemaReference":`يشير إلى`,"developer.graph.relation.viewSource":`يقرأ من`,"developer.graph.relation.guard":`محمي بواسطة`,"developer.graph.relation.procedureSchema":`يعالج المخطط`,"developer.graph.relation.collectionAction":`يؤثر في`,"developer.graph.relation.inputReference":`يشير إلى`,"developer.graph.relation.triggerTarget":`يستدعي`,"developer.graph.relation.lifecycleSource":`يراقب دورة الحياة`,"status.draft":`مسودات`,"status.published":`منشور`,"status.archived":`مؤرشف`,"preferences.heading":`التفضيلات`,"preferences.language":`لغة الإدارة`,"preferences.language.search":`ابحث عن اللغات...`,"preferences.language.noResults":`لم يتم العثور على لغات.`,"preferences.direction":`اتجاه النص`,"preferences.direction.auto":`يتبع اتجاه النص اللغة المحددة.`,"preferences.appearance":`المظهر`,"preferences.light":`فاتح`,"preferences.dark":`داكن`,"preferences.system":`النظام`,"preferences.ltr":`من اليسار إلى اليمين`,"preferences.rtl":`من اليمين إلى اليسار`,"preferences.page.open":`التفضيلات`,"preferences.page.title":`التفضيلات الشخصية`,"preferences.page.body":`تبقى هذه التفضيلات في هذا المتصفح. إنها تغيّر وحدة الإدارة فقط ولا تعدّل إعدادات الموقع.`,"preferences.page.languageBody":`اختر لغة صفحات النظام وواجهة الإدارة.`,"preferences.page.appearanceBody":`اختر الوضع الفاتح أو الداكن أو اتبع نظام التشغيل.`},he:{"admin.consoleTitle":`מסוף ניהול`,"developer.workspaceTitle":`פיתוח`,"auth.signIn.title":`כניסה`,"common.signOut":`יציאה`,"common.viewSite":`הצג אתר`,"common.copy":`העתק`,"common.open":`פתח`,"common.failedToLoad":`הטעינה נכשלה`,"common.signedIn":`מחובר`,"common.contentAdmin":`ניהול תוכן`,"common.close":`סגירה`,"common.skipToMain":`דילוג לתוכן הראשי`,"common.breadcrumb":`נתיב ניווט`,"common.toggleSidebar":`הצגה או הסתרה של סרגל הצד`,"common.mobileSidebar":`ניווט`,"common.mobileSidebarDescription":`ניווט ניהול האתר`,"oauth.connectedApps":`חיבורי MCP`,"oauth.consent.eyebrow":`חיבור לקוח MCP`,"oauth.consent.heading":`לחבר את {client}?`,"oauth.consent.body":`{client} יוכל להשתמש בכלי הניהול של האתר דרך MCP. התוכן שיוכל להציג או לשנות עדיין מוגבל לפי ההרשאות בחשבון שלך.`,"oauth.consent.approve":`חיבור`,"oauth.consent.deny":`ביטול`,"oauth.consent.invalidTitle":`בקשת הרשאה לא תקינה`,"oauth.consent.invalidBody":`פרטי ההרשאה חסרים או שגויים. יש לחזור ללקוח ה-MCP ולנסות שוב.`,"oauth.apps.eyebrow":`החשבון שלך`,"oauth.apps.body":`לקוחות MCP אלה יכולים להשתמש בכלי הניהול של האתר. כל פעולה עדיין נבדקת לפי ההרשאות הנוכחיות בחשבון שלך.`,"oauth.apps.empty":`אין לקוחות MCP מחוברים.`,"oauth.apps.revoke":`ניתוק`,"collection.filter.all":`הכול`,"nav.home":`בית`,"nav.overview":`סקירה`,"nav.model":`מודל נתונים`,"nav.logic":`לוגיקה`,"nav.docs":`ממשקים`,"nav.build":`בנייה`,"nav.content":`תוכן`,"nav.operations":`רשומות`,"nav.media":`ספריית מדיה`,"nav.more":`עוד`,"nav.settings":`הגדרות`,"nav.staff":`משתמשי ניהול`,"nav.members":`חברים`,"nav.reports":`דוחות`,"nav.localizedContent":`כולל תוכן מותאם לשפה`,"common.yes":`כן`,"common.no":`לא`,"model.title":`מודל נתונים`,"model.schemas":`סכמות`,"model.views":`תצוגות`,"model.objects":`אובייקטים של מודל הנתונים`,"model.search":`חיפוש במודל הנתונים`,"model.fields":`שדות`,"model.path":`נתיב`,"model.type":`סוג`,"model.required":`נדרש`,"model.constraints":`אילוצים`,"model.noFields":`לא הוגדרו מאפייני אובייקט.`,"model.rawSchema":`סכמת JSON`,"model.rawQuery":`תוכנית שאילתה`,"model.queryKind":`שאילתה`,"model.source":`מקור`,"model.allFields":`כל השדות`,"model.order":`סדר`,"model.limit":`מגבלה`,"model.dialect":`ניב`,"model.filter":`מסנן`,"model.params":`פרמטרים`,"model.relationships":`קשרים`,"model.references":`פריט זה מפנה אל`,"model.referencedBy":`מפנה אל פריט זה`,"model.noRelations":`לא הוגדרו קשרים ב-Manifest.`,"model.openGraph":`הצגה בגרף`,"model.openDeclaration":`פתיחת הצהרת Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest שעבר הידור`,"model.marker.reference":`הפניה אל {target}`,"model.marker.translationParent":`קישור תרגום להורה {target}`,"model.marker.translationChild":`קישור תרגום מהילד {target}`,"model.marker.unique":`אינדקס ייחודי UQ{index}: {fields}`,"model.marker.index":`אינדקס IDX{index}: {fields}`,"logic.title":`לוגיקה`,"logic.objects":`אובייקטים לוגיים`,"logic.search":`חיפוש בלוגיקה`,"logic.triggers":`גורמים מפעילים`,"logic.procedures":`תהליכים`,"logic.overview":`סקירה`,"logic.contract":`חוזה`,"logic.configuration":`תצורה`,"logic.contractFrom":`נקודת כניסה זו משתמשת בחוזה שהוגדר על ידי {target}.`,"logic.input":`קלט`,"logic.output":`פלט`,"logic.noContract":`אין חוזה זמין לתהליך היעד.`,"logic.execution":`נתיב ביצוע`,"logic.target":`תהליך יעד`,"logic.authorization":`הרשאה`,"logic.noAuthorization":`לא הוגדרו תנאי הרשאה.`,"logic.guard":`תהליך הגנה`,"logic.method":`שיטה`,"logic.surface":`תחום חשיפה`,"logic.hooks":`נקודות חיבור`,"logic.errorPolicy":`מדיניות שגיאות`,"docs.title":`ממשקי API וסוכנים`,"docs.intro":`תיעוד שנגזר מ-RuntimePlan עבור נקודות כניסה של HTTP,‏ MCP ו-WebMCP בדפדפן.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`גורמי הפעלה של HTTP ונתיבים של תצוגות ציבוריות שנחשפו אוטומטית.`,"docs.mcpIntro":`כלים שנוצרו מתצוגות ומגורמי הפעלה מפורשים של MCP. ההרשאה עדיין נאכפת בעת הפעלת כלי.`,"docs.webmcpIntro":`חיבור זה בצד השרת מגלה תצוגות ציבוריות דרך HTTP ורושם אותן ככלי דפדפן לקריאה בלבד. כל תצוגה שומרת על כללי הקהל שלה.`,"docs.publicEndpoint":`נקודת קצה ציבורית`,"docs.staffEndpoint":`נקודת קצה לצוות`,"docs.catalogEndpoint":`קטלוג גילוי`,"docs.target":`יעד`,"docs.inputSchema":`סכמת קלט`,"docs.outputSchema":`סכמת פלט`,"docs.readOnly":`קריאה בלבד`,"docs.noEntries":`לא הוגדרו נקודות כניסה לממשק זה.`,"docs.webmcpNote":`כלי התהליכים הציבוריים נשארים ב-MCP. מעטפת ה-HTTP של WebMCP בצד השרת רושמת בכוונה רק תצוגות ציבוריות.`,"developer.graph.title":`גרף Manifest`,"developer.graph.details":`פרטי פריט`,"developer.graph.openModel":`פתיחה במודל הנתונים`,"developer.graph.openLogic":`פתיחת פרטי הלוגיקה`,"developer.graph.relayout":`סידור אוטומטי`,"developer.graph.previous":`השלב הקודם`,"developer.graph.next":`השלב הבא`,"developer.graph.step":`שלב {current} מתוך {total}`,"developer.graph.comesFrom":`מגיע מ-`,"developer.graph.continuesTo":`ממשיך אל`,"developer.graph.manifestSource":`מקור Manifest`,"developer.graph.builtin":`מובנה`,"developer.graph.kind.schema":`סכמה`,"developer.graph.kind.view":`תצוגה`,"developer.graph.kind.procedure":`תהליך`,"developer.graph.kind.trigger":`גורם מפעיל`,"developer.graph.fact.audience":`קהל`,"developer.graph.fact.transport":`תעבורה`,"developer.graph.fact.handler":`מטפל`,"developer.graph.fact.operation":`פעולה`,"developer.graph.fact.schema":`סכמה`,"developer.graph.fact.match":`התאמה`,"developer.graph.summary.trigger":`בקשות מ-{audience} נכנסות דרך {transport} וממשיכות אל {target}.`,"developer.graph.summary.builtin":`פעולת {op} מובנית כותבת אל {schema}.`,"developer.graph.summary.ref":`תהליך זה מפעיל את מטפל הקוד הרשום {ref}.`,"developer.graph.summary.view":`תצוגה לקריאה בלבד של {target} עבור {audience}.`,"developer.graph.summary.schema":`{incoming} פריטים משתמשים בסכמה זו; היא מפנה אל {outgoing} פריטים אחרים.`,"developer.graph.audience.public":`ציבורי`,"developer.graph.audience.members":`חברים`,"developer.graph.audience.staff":`צוות`,"developer.graph.audience.system":`מערכת`,"developer.graph.audience.apiClients":`לקוחות API`,"developer.graph.audienceDescription.public":`זמין ללא כניסה.`,"developer.graph.audienceDescription.members":`כל חבר שנכנס למערכת. לא נדרש תפקיד באתר.`,"developer.graph.audienceDescription.staff":`חבר שנכנס למערכת עם תפקיד תורם, עורך או בעלים. צוות הוא רמת גישה, לא חשבון מנהל נפרד.`,"developer.graph.audienceDescription.system":`פועל אוטומטית מאירועי מחזור חיים, תור או לוח זמנים.`,"developer.graph.audienceDescription.apiClients":`דורש לקוח API מאומת או תחום הרשאה מתאים.`,"developer.graph.relation.translationParent":`מתרגם`,"developer.graph.relation.schemaReference":`מפנה אל`,"developer.graph.relation.viewSource":`קורא מ-`,"developer.graph.relation.guard":`מוגן על ידי`,"developer.graph.relation.procedureSchema":`מטפל בסכמה`,"developer.graph.relation.collectionAction":`פועל על`,"developer.graph.relation.inputReference":`מפנה אל`,"developer.graph.relation.triggerTarget":`מפעיל`,"developer.graph.relation.lifecycleSource":`עוקב אחר מחזור החיים`,"status.draft":`טיוטות`,"status.published":`פורסם`,"status.archived":`בארכיון`,"preferences.heading":`העדפות`,"preferences.language":`שפת ניהול`,"preferences.language.search":`חפש שפות...`,"preferences.language.noResults":`לא נמצאו שפות.`,"preferences.direction":`כיוון טקסט`,"preferences.direction.auto":`כיוון הטקסט נקבע לפי השפה שנבחרה.`,"preferences.appearance":`מראה`,"preferences.light":`בהיר`,"preferences.dark":`כהה`,"preferences.system":`מערכת`,"preferences.ltr":`משמאל לימין`,"preferences.rtl":`מימין לשמאל`,"preferences.page.open":`העדפות`,"preferences.page.title":`העדפות אישיות`,"preferences.page.body":`העדפות אלה נשמרות בדפדפן הזה. הן משנות רק את מסוף הניהול ולא את הגדרות האתר.`,"preferences.page.languageBody":`בחר את שפת דפי המערכת וממשק הניהול.`,"preferences.page.appearanceBody":`בחר בהיר, כהה או לפי מערכת ההפעלה.`},fa:{"admin.consoleTitle":`کنسول مدیریت`,"developer.workspaceTitle":`توسعه`,"auth.signIn.title":`ورود`,"common.signOut":`خروج`,"common.viewSite":`مشاهده سایت`,"common.copy":`کپی`,"common.open":`باز کردن`,"common.failedToLoad":`بارگذاری ناموفق بود`,"common.signedIn":`وارد شده‌اید`,"common.contentAdmin":`مدیریت محتوا`,"common.close":`بستن`,"common.skipToMain":`رفتن به محتوای اصلی`,"common.breadcrumb":`مسیر پیمایش`,"common.toggleSidebar":`تغییر وضعیت نوار کناری`,"common.mobileSidebar":`پیمایش`,"common.mobileSidebarDescription":`پیمایش مدیریت سایت`,"oauth.connectedApps":`اتصال‌های MCP`,"oauth.consent.eyebrow":`اتصال کلاینت MCP`,"oauth.consent.heading":`{client} متصل شود؟`,"oauth.consent.body":`{client} می‌تواند از طریق MCP از ابزارهای مدیریت این سایت استفاده کند. آنچه می‌تواند ببیند یا تغییر دهد همچنان به مجوزهای حساب شما محدود است.`,"oauth.consent.approve":`اتصال`,"oauth.consent.deny":`لغو`,"oauth.consent.invalidTitle":`درخواست مجوز نامعتبر`,"oauth.consent.invalidBody":`اطلاعات مجوز وجود ندارد یا نادرست است. به کلاینت MCP برگردید و دوباره تلاش کنید.`,"oauth.apps.eyebrow":`حساب شما`,"oauth.apps.body":`این کلاینت‌های MCP می‌توانند از ابزارهای مدیریت سایت استفاده کنند. هر عملیات همچنان بر اساس مجوزهای فعلی حساب شما بررسی می‌شود.`,"oauth.apps.empty":`هیچ کلاینت MCP متصلی وجود ندارد.`,"oauth.apps.revoke":`قطع اتصال`,"collection.filter.all":`همه`,"nav.home":`خانه`,"nav.overview":`نمای کلی`,"nav.model":`مدل داده`,"nav.logic":`منطق`,"nav.docs":`رابط‌ها`,"nav.build":`ساخت`,"nav.content":`محتوا`,"nav.operations":`رکوردها`,"nav.media":`کتابخانه رسانه`,"nav.more":`بیشتر`,"nav.settings":`تنظیمات`,"nav.staff":`کاربران مدیر`,"nav.members":`اعضا`,"nav.reports":`گزارش‌ها`,"nav.localizedContent":`شامل محتوای بومی‌سازی‌شده`,"common.yes":`بله`,"common.no":`خیر`,"model.title":`مدل داده`,"model.schemas":`طرحواره‌ها`,"model.views":`نماها`,"model.objects":`اشیای مدل داده`,"model.search":`جست‌وجوی مدل داده`,"model.fields":`فیلدها`,"model.path":`مسیر`,"model.type":`نوع`,"model.required":`الزامی`,"model.constraints":`محدودیت‌ها`,"model.noFields":`هیچ ویژگی‌ای برای شیء تعریف نشده است.`,"model.rawSchema":`طرحواره JSON`,"model.rawQuery":`برنامه پرس‌وجو`,"model.queryKind":`پرس‌وجو`,"model.source":`منبع`,"model.allFields":`همه فیلدها`,"model.order":`ترتیب`,"model.limit":`محدودیت`,"model.dialect":`گویش`,"model.filter":`فیلتر`,"model.params":`پارامترها`,"model.relationships":`رابطه‌ها`,"model.references":`این مورد ارجاع می‌دهد به`,"model.referencedBy":`به این مورد ارجاع می‌دهد`,"model.noRelations":`هیچ رابطه‌ای در Manifest تعریف نشده است.`,"model.openGraph":`نمایش در نمودار`,"model.openDeclaration":`باز کردن تعریف Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest کامپایل‌شده`,"model.marker.reference":`ارجاع به {target}`,"model.marker.translationParent":`اتصال ترجمه به والد {target}`,"model.marker.translationChild":`اتصال ترجمه از فرزند {target}`,"model.marker.unique":`شاخص یکتا UQ{index}: {fields}`,"model.marker.index":`شاخص IDX{index}: {fields}`,"logic.title":`منطق`,"logic.objects":`اشیای منطقی`,"logic.search":`جست‌وجوی منطق`,"logic.triggers":`راه‌اندازها`,"logic.procedures":`رویه‌ها`,"logic.overview":`نمای کلی`,"logic.contract":`قرارداد`,"logic.configuration":`پیکربندی`,"logic.contractFrom":`این نقطه ورود از قراردادی استفاده می‌کند که {target} تعریف کرده است.`,"logic.input":`ورودی`,"logic.output":`خروجی`,"logic.noContract":`قراردادی برای رویه مقصد در دسترس نیست.`,"logic.execution":`مسیر اجرا`,"logic.target":`رویه مقصد`,"logic.authorization":`مجوزدهی`,"logic.noAuthorization":`هیچ شرط مجوزدهی تعریف نشده است.`,"logic.guard":`رویه محافظ`,"logic.method":`روش`,"logic.surface":`دامنه دسترسی`,"logic.hooks":`قلاب‌ها`,"logic.errorPolicy":`سیاست خطا`,"docs.title":`رابط‌های API و عامل‌ها`,"docs.intro":`مرجع مشتق‌شده از RuntimePlan برای نقاط ورود HTTP، ‏MCP و WebMCP مرورگر.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`راه‌اندازهای HTTP و مسیرهای نماهای عمومی که خودکار ارائه شده‌اند.`,"docs.mcpIntro":`ابزارهای تولیدشده از نماها و راه‌اندازهای صریح MCP. هنگام اجرای ابزار همچنان مجوزدهی اعمال می‌شود.`,"docs.webmcpIntro":`این اتصال سمت سرور نماهای عمومی را از طریق HTTP پیدا می‌کند و آن‌ها را به‌عنوان ابزارهای فقط‌خواندنی مرورگر ثبت می‌کند. هر نما قوانین مخاطبان خود را حفظ می‌کند.`,"docs.publicEndpoint":`نقطه پایانی عمومی`,"docs.staffEndpoint":`نقطه پایانی کارکنان`,"docs.catalogEndpoint":`فهرست کشف`,"docs.target":`مقصد`,"docs.inputSchema":`طرحواره ورودی`,"docs.outputSchema":`طرحواره خروجی`,"docs.readOnly":`فقط خواندنی`,"docs.noEntries":`هیچ نقطه ورودی برای این رابط تعریف نشده است.`,"docs.webmcpNote":`ابزارهای رویه عمومی همچنان در MCP باقی می‌مانند. پوشش HTTP سمت سرور WebMCP عمداً فقط نماهای عمومی را ثبت می‌کند.`,"developer.graph.title":`نمودار Manifest`,"developer.graph.details":`جزئیات مورد`,"developer.graph.openModel":`باز کردن در مدل داده`,"developer.graph.openLogic":`باز کردن جزئیات منطق`,"developer.graph.relayout":`چیدمان خودکار`,"developer.graph.previous":`گام قبل`,"developer.graph.next":`گام بعد`,"developer.graph.step":`گام {current} از {total}`,"developer.graph.comesFrom":`می‌آید از`,"developer.graph.continuesTo":`ادامه به`,"developer.graph.manifestSource":`منبع Manifest`,"developer.graph.builtin":`داخلی`,"developer.graph.kind.schema":`طرحواره`,"developer.graph.kind.view":`نما`,"developer.graph.kind.procedure":`رویه`,"developer.graph.kind.trigger":`راه‌انداز`,"developer.graph.fact.audience":`مخاطب`,"developer.graph.fact.transport":`انتقال`,"developer.graph.fact.handler":`پردازشگر`,"developer.graph.fact.operation":`عملیات`,"developer.graph.fact.schema":`طرحواره`,"developer.graph.fact.match":`تطبیق`,"developer.graph.summary.trigger":`درخواست‌های {audience} از طریق {transport} وارد می‌شوند و به {target} ادامه می‌یابند.`,"developer.graph.summary.builtin":`یک عملیات داخلی {op} در {schema} می‌نویسد.`,"developer.graph.summary.ref":`این رویه پردازشگر کد ثبت‌شده {ref} را اجرا می‌کند.`,"developer.graph.summary.view":`نمای فقط‌خواندنی از {target} برای {audience}.`,"developer.graph.summary.schema":`{incoming} مورد از این طرحواره استفاده می‌کنند؛ این طرحواره به {outgoing} مورد دیگر ارجاع می‌دهد.`,"developer.graph.audience.public":`عمومی`,"developer.graph.audience.members":`اعضا`,"developer.graph.audience.staff":`کارکنان`,"developer.graph.audience.system":`سیستم`,"developer.graph.audience.apiClients":`کلاینت‌های API`,"developer.graph.audienceDescription.public":`بدون ورود در دسترس است.`,"developer.graph.audienceDescription.members":`هر عضو واردشده. نقش سایت لازم نیست.`,"developer.graph.audienceDescription.staff":`عضو واردشده با نقش مشارکت‌کننده، ویرایشگر یا مالک. کارکنان یک سطح دسترسی است، نه حساب مدیر جداگانه.`,"developer.graph.audienceDescription.system":`به‌طور خودکار از رویدادهای چرخه عمر، صف یا زمان‌بندی اجرا می‌شود.`,"developer.graph.audienceDescription.apiClients":`به کلاینت API احراز هویت‌شده یا دامنه مناسب نیاز دارد.`,"developer.graph.relation.translationParent":`ترجمه می‌کند`,"developer.graph.relation.schemaReference":`ارجاع می‌دهد به`,"developer.graph.relation.viewSource":`می‌خواند از`,"developer.graph.relation.guard":`محافظت‌شده توسط`,"developer.graph.relation.procedureSchema":`طرحواره را پردازش می‌کند`,"developer.graph.relation.collectionAction":`عمل می‌کند روی`,"developer.graph.relation.inputReference":`ارجاع می‌دهد به`,"developer.graph.relation.triggerTarget":`فراخوانی می‌کند`,"developer.graph.relation.lifecycleSource":`چرخه عمر را پایش می‌کند`,"status.draft":`پیش‌نویس‌ها`,"status.published":`منتشر شده`,"status.archived":`بایگانی شده`,"preferences.heading":`ترجیحات`,"preferences.language":`زبان مدیریت`,"preferences.language.search":`جستجوی زبان‌ها...`,"preferences.language.noResults":`زبانی پیدا نشد.`,"preferences.direction":`جهت متن`,"preferences.direction.auto":`جهت متن از زبان انتخاب‌شده پیروی می‌کند.`,"preferences.appearance":`ظاهر`,"preferences.light":`روشن`,"preferences.dark":`تیره`,"preferences.system":`سیستم`,"preferences.ltr":`چپ به راست`,"preferences.rtl":`راست به چپ`,"preferences.page.open":`ترجیحات`,"preferences.page.title":`ترجیحات شخصی`,"preferences.page.body":`این ترجیحات در همین مرورگر ذخیره می‌شود. فقط کنسول مدیریت را تغییر می‌دهد و تنظیمات سایت را تغییر نمی‌دهد.`,"preferences.page.languageBody":`زبان صفحات سیستمی و رابط مدیریت را انتخاب کنید.`,"preferences.page.appearanceBody":`روشن، تیره یا پیروی از سیستم‌عامل را انتخاب کنید.`},th:{"admin.consoleTitle":`คอนโซลผู้ดูแล`,"developer.workspaceTitle":`การพัฒนา`,"auth.signIn.title":`เข้าสู่ระบบ`,"common.signOut":`ออกจากระบบ`,"common.viewSite":`ดูเว็บไซต์`,"common.copy":`คัดลอก`,"common.open":`เปิด`,"common.failedToLoad":`โหลดไม่สำเร็จ`,"common.signedIn":`เข้าสู่ระบบแล้ว`,"common.contentAdmin":`การจัดการเนื้อหา`,"common.close":`ปิด`,"common.skipToMain":`ข้ามไปยังเนื้อหาหลัก`,"common.breadcrumb":`เส้นทางนำทาง`,"common.toggleSidebar":`สลับแถบด้านข้าง`,"common.mobileSidebar":`การนำทาง`,"common.mobileSidebarDescription":`การนำทางสำหรับการดูแลเว็บไซต์`,"oauth.connectedApps":`การเชื่อมต่อ MCP`,"oauth.consent.eyebrow":`เชื่อมต่อไคลเอนต์ MCP`,"oauth.consent.heading":`เชื่อมต่อ {client} หรือไม่`,"oauth.consent.body":`{client} จะสามารถใช้เครื่องมือจัดการของเว็บไซต์นี้ผ่าน MCP ได้ สิ่งที่ดูหรือเปลี่ยนแปลงได้ยังคงจำกัดตามสิทธิ์ของบัญชีคุณ`,"oauth.consent.approve":`เชื่อมต่อ`,"oauth.consent.deny":`ยกเลิก`,"oauth.consent.invalidTitle":`คำขออนุญาตไม่ถูกต้อง`,"oauth.consent.invalidBody":`ข้อมูลการอนุญาตขาดหายหรือรูปแบบไม่ถูกต้อง กลับไปที่ไคลเอนต์ MCP แล้วลองอีกครั้ง`,"oauth.apps.eyebrow":`บัญชีของคุณ`,"oauth.apps.body":`ไคลเอนต์ MCP เหล่านี้สามารถใช้เครื่องมือจัดการของเว็บไซต์ได้ ทุกการดำเนินการยังคงได้รับการตรวจสอบตามสิทธิ์ปัจจุบันของบัญชีคุณ`,"oauth.apps.empty":`ยังไม่มีไคลเอนต์ MCP ที่เชื่อมต่อ`,"oauth.apps.revoke":`ยกเลิกการเชื่อมต่อ`,"collection.filter.all":`ทั้งหมด`,"nav.home":`หน้าแรก`,"nav.overview":`ภาพรวม`,"nav.model":`โมเดลข้อมูล`,"nav.logic":`ตรรกะ`,"nav.docs":`อินเทอร์เฟซ`,"nav.build":`บิลด์`,"nav.content":`เนื้อหา`,"nav.operations":`ระเบียน`,"nav.media":`คลังสื่อ`,"nav.more":`เพิ่มเติม`,"nav.settings":`การตั้งค่า`,"nav.staff":`ผู้ใช้ผู้ดูแล`,"nav.members":`สมาชิก`,"nav.reports":`รายงาน`,"nav.localizedContent":`มีเนื้อหาที่แปลภาษา`,"common.yes":`ใช่`,"common.no":`ไม่`,"model.title":`โมเดลข้อมูล`,"model.schemas":`สคีมา`,"model.views":`มุมมอง`,"model.objects":`ออบเจ็กต์โมเดลข้อมูล`,"model.search":`ค้นหาโมเดลข้อมูล`,"model.fields":`ฟิลด์`,"model.path":`พาธ`,"model.type":`ชนิด`,"model.required":`จำเป็น`,"model.constraints":`ข้อจำกัด`,"model.noFields":`ยังไม่ได้ประกาศพร็อพเพอร์ตีของออบเจ็กต์`,"model.rawSchema":`สคีมา JSON`,"model.rawQuery":`แผนคิวรี`,"model.queryKind":`คิวรี`,"model.source":`แหล่งที่มา`,"model.allFields":`ฟิลด์ทั้งหมด`,"model.order":`ลำดับ`,"model.limit":`ขีดจำกัด`,"model.dialect":`ภาษาถิ่น`,"model.filter":`ตัวกรอง`,"model.params":`พารามิเตอร์`,"model.relationships":`ความสัมพันธ์`,"model.references":`รายการนี้อ้างอิงถึง`,"model.referencedBy":`อ้างอิงรายการนี้`,"model.noRelations":`ยังไม่ได้ประกาศความสัมพันธ์ใน Manifest`,"model.openGraph":`แสดงในกราฟ`,"model.openDeclaration":`เปิดการประกาศ Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest ที่คอมไพล์แล้ว`,"model.marker.reference":`อ้างอิงถึง {target}`,"model.marker.translationParent":`การเชื่อมคำแปลไปยังรายการแม่ {target}`,"model.marker.translationChild":`การเชื่อมคำแปลจากรายการลูก {target}`,"model.marker.unique":`ดัชนีไม่ซ้ำ UQ{index}: {fields}`,"model.marker.index":`ดัชนี IDX{index}: {fields}`,"logic.title":`ตรรกะ`,"logic.objects":`ออบเจ็กต์ตรรกะ`,"logic.search":`ค้นหาตรรกะ`,"logic.triggers":`ทริกเกอร์`,"logic.procedures":`โพรซีเยอร์`,"logic.overview":`ภาพรวม`,"logic.contract":`สัญญา`,"logic.configuration":`การกำหนดค่า`,"logic.contractFrom":`จุดเข้านี้ใช้สัญญาที่ประกาศโดย {target}`,"logic.input":`อินพุต`,"logic.output":`เอาต์พุต`,"logic.noContract":`ไม่มีสัญญาสำหรับโพรซีเยอร์เป้าหมาย`,"logic.execution":`เส้นทางการทำงาน`,"logic.target":`โพรซีเยอร์เป้าหมาย`,"logic.authorization":`การอนุญาต`,"logic.noAuthorization":`ยังไม่ได้ประกาศเงื่อนไขการอนุญาต`,"logic.guard":`โพรซีเยอร์ป้องกัน`,"logic.method":`เมธอด`,"logic.surface":`ขอบเขตการให้บริการ`,"logic.hooks":`ฮุก`,"logic.errorPolicy":`นโยบายข้อผิดพลาด`,"docs.title":`อินเทอร์เฟซ API และเอเจนต์`,"docs.intro":`เอกสารอ้างอิงที่ได้จาก RuntimePlan สำหรับจุดเข้า HTTP, MCP และ WebMCP บนเบราว์เซอร์`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`ทริกเกอร์ HTTP และเส้นทางมุมมองสาธารณะที่เปิดโดยอัตโนมัติ`,"docs.mcpIntro":`เครื่องมือที่สร้างจากมุมมองและทริกเกอร์ MCP ที่ประกาศไว้อย่างชัดเจน ระบบยังตรวจสอบสิทธิ์เมื่อเรียกใช้เครื่องมือ`,"docs.webmcpIntro":`การเชื่อมต่อฝั่งเซิร์ฟเวอร์นี้ค้นหามุมมองสาธารณะผ่าน HTTP และลงทะเบียนเป็นเครื่องมือเบราว์เซอร์แบบอ่านอย่างเดียว แต่ละมุมมองยังคงใช้กฎกลุ่มผู้ใช้ของตนเอง`,"docs.publicEndpoint":`จุดปลายทางสาธารณะ`,"docs.staffEndpoint":`จุดปลายทางสำหรับเจ้าหน้าที่`,"docs.catalogEndpoint":`แค็ตตาล็อกการค้นหา`,"docs.target":`เป้าหมาย`,"docs.inputSchema":`สคีมาอินพุต`,"docs.outputSchema":`สคีมาเอาต์พุต`,"docs.readOnly":`อ่านอย่างเดียว`,"docs.noEntries":`ยังไม่ได้ประกาศจุดเข้าสำหรับอินเทอร์เฟซนี้`,"docs.webmcpNote":`เครื่องมือโพรซีเยอร์สาธารณะยังคงอยู่บน MCP ส่วนตัวห่อ HTTP ของ WebMCP ฝั่งเซิร์ฟเวอร์จะลงทะเบียนเฉพาะมุมมองสาธารณะโดยตั้งใจ`,"developer.graph.title":`กราฟ Manifest`,"developer.graph.details":`รายละเอียดรายการ`,"developer.graph.openModel":`เปิดในโมเดลข้อมูล`,"developer.graph.openLogic":`เปิดรายละเอียดตรรกะ`,"developer.graph.relayout":`จัดวางอัตโนมัติ`,"developer.graph.previous":`ขั้นตอนก่อนหน้า`,"developer.graph.next":`ขั้นตอนถัดไป`,"developer.graph.step":`ขั้นตอน {current} จาก {total}`,"developer.graph.comesFrom":`มาจาก`,"developer.graph.continuesTo":`ดำเนินต่อไปยัง`,"developer.graph.manifestSource":`แหล่ง Manifest`,"developer.graph.builtin":`มีในตัว`,"developer.graph.kind.schema":`สคีมา`,"developer.graph.kind.view":`มุมมอง`,"developer.graph.kind.procedure":`โพรซีเยอร์`,"developer.graph.kind.trigger":`ทริกเกอร์`,"developer.graph.fact.audience":`กลุ่มผู้ใช้`,"developer.graph.fact.transport":`การรับส่ง`,"developer.graph.fact.handler":`ตัวจัดการ`,"developer.graph.fact.operation":`การดำเนินการ`,"developer.graph.fact.schema":`สคีมา`,"developer.graph.fact.match":`เงื่อนไขตรงกัน`,"developer.graph.summary.trigger":`คำขอจาก {audience} เข้ามาทาง {transport} และดำเนินต่อไปยัง {target}`,"developer.graph.summary.builtin":`การดำเนินการ {op} ที่มีในตัวจะเขียนไปยัง {schema}`,"developer.graph.summary.ref":`โพรซีเยอร์นี้เรียกใช้ตัวจัดการโค้ดที่ลงทะเบียนไว้ {ref}`,"developer.graph.summary.view":`มุมมองแบบอ่านอย่างเดียวของ {target} สำหรับ {audience}`,"developer.graph.summary.schema":`มี {incoming} รายการที่ใช้สคีมานี้ และสคีมาอ้างอิงรายการอื่นอีก {outgoing} รายการ`,"developer.graph.audience.public":`สาธารณะ`,"developer.graph.audience.members":`สมาชิก`,"developer.graph.audience.staff":`เจ้าหน้าที่`,"developer.graph.audience.system":`ระบบ`,"developer.graph.audience.apiClients":`ไคลเอนต์ API`,"developer.graph.audienceDescription.public":`ใช้งานได้โดยไม่ต้องลงชื่อเข้าใช้`,"developer.graph.audienceDescription.members":`สมาชิกที่ลงชื่อเข้าใช้ทุกคน ไม่จำเป็นต้องมีบทบาทในเว็บไซต์`,"developer.graph.audienceDescription.staff":`สมาชิกที่ลงชื่อเข้าใช้และมีบทบาทผู้ร่วมเขียน ผู้แก้ไข หรือเจ้าของ เจ้าหน้าที่คือระดับการเข้าถึง ไม่ใช่บัญชีผู้ดูแลแยกต่างหาก`,"developer.graph.audienceDescription.system":`ทำงานอัตโนมัติจากเหตุการณ์วงจรชีวิต คิว หรือกำหนดการ`,"developer.graph.audienceDescription.apiClients":`ต้องใช้ไคลเอนต์ API ที่ผ่านการตรวจสอบสิทธิ์หรือขอบเขตที่เหมาะสม`,"developer.graph.relation.translationParent":`แปล`,"developer.graph.relation.schemaReference":`อ้างอิง`,"developer.graph.relation.viewSource":`อ่านจาก`,"developer.graph.relation.guard":`ป้องกันโดย`,"developer.graph.relation.procedureSchema":`จัดการสคีมา`,"developer.graph.relation.collectionAction":`ดำเนินการกับ`,"developer.graph.relation.inputReference":`อ้างอิง`,"developer.graph.relation.triggerTarget":`เรียกใช้`,"developer.graph.relation.lifecycleSource":`เฝ้าดูวงจรชีวิต`,"status.draft":`ฉบับร่าง`,"status.published":`เผยแพร่แล้ว`,"status.archived":`เก็บถาวร`,"preferences.heading":`ค่ากำหนด`,"preferences.language":`ภาษาผู้ดูแล`,"preferences.language.search":`ค้นหาภาษา...`,"preferences.language.noResults":`ไม่พบภาษา`,"preferences.direction":`ทิศทางข้อความ`,"preferences.direction.auto":`ทิศทางข้อความจะตามภาษาที่เลือก`,"preferences.appearance":`รูปลักษณ์`,"preferences.light":`สว่าง`,"preferences.dark":`มืด`,"preferences.system":`ระบบ`,"preferences.ltr":`ซ้ายไปขวา`,"preferences.rtl":`ขวาไปซ้าย`,"preferences.page.open":`ค่ากำหนด`,"preferences.page.title":`ค่ากำหนดส่วนตัว`,"preferences.page.body":`ค่ากำหนดเหล่านี้จะอยู่ในเบราว์เซอร์นี้เท่านั้น และมีผลกับ admin console โดยไม่แก้การตั้งค่าเว็บไซต์`,"preferences.page.languageBody":`เลือกภาษาสำหรับหน้าระบบและส่วนติดต่อผู้ดูแล`,"preferences.page.appearanceBody":`เลือกสว่าง มืด หรือใช้ตามระบบปฏิบัติการ`},id:{"admin.consoleTitle":`Konsol admin`,"developer.workspaceTitle":`Pengembangan`,"auth.signIn.title":`Masuk`,"common.signOut":`Keluar`,"common.viewSite":`Lihat situs`,"common.copy":`Salin`,"common.open":`Buka`,"common.failedToLoad":`Gagal memuat`,"common.signedIn":`Sudah masuk`,"common.contentAdmin":`Administrasi konten`,"common.close":`Tutup`,"common.skipToMain":`Lewati ke konten utama`,"common.breadcrumb":`Jejak navigasi`,"common.toggleSidebar":`Alihkan bilah samping`,"common.mobileSidebar":`Navigasi`,"common.mobileSidebarDescription":`Navigasi administrasi situs`,"oauth.connectedApps":`Koneksi MCP`,"oauth.consent.eyebrow":`Hubungkan klien MCP`,"oauth.consent.heading":`Hubungkan {client}?`,"oauth.consent.body":`{client} akan dapat menggunakan alat pengelolaan situs ini melalui MCP. Hal yang dapat dilihat atau diubah tetap dibatasi oleh izin akun Anda.`,"oauth.consent.approve":`Hubungkan`,"oauth.consent.deny":`Batal`,"oauth.consent.invalidTitle":`Permintaan otorisasi tidak valid`,"oauth.consent.invalidBody":`Data otorisasi tidak ada atau formatnya salah. Kembali ke klien MCP lalu coba lagi.`,"oauth.apps.eyebrow":`Akun Anda`,"oauth.apps.body":`Klien MCP ini dapat menggunakan alat pengelolaan situs. Setiap tindakan tetap diperiksa berdasarkan izin akun Anda saat ini.`,"oauth.apps.empty":`Tidak ada klien MCP yang terhubung.`,"oauth.apps.revoke":`Putuskan`,"collection.filter.all":`Semua`,"nav.home":`Beranda`,"nav.overview":`Ringkasan`,"nav.model":`Model data`,"nav.logic":`Logika`,"nav.docs":`Antarmuka`,"nav.build":`Build`,"nav.content":`Konten`,"nav.operations":`Rekaman`,"nav.media":`Pustaka media`,"nav.more":`Lainnya`,"nav.settings":`Pengaturan`,"nav.staff":`Pengguna admin`,"nav.members":`Anggota`,"nav.reports":`Laporan`,"nav.localizedContent":`Berisi konten yang dilokalkan`,"common.yes":`Ya`,"common.no":`Tidak`,"model.title":`Model data`,"model.schemas":`Skema`,"model.views":`Tampilan`,"model.objects":`Objek model data`,"model.search":`Cari model data`,"model.fields":`Bidang`,"model.path":`Jalur`,"model.type":`Jenis`,"model.required":`Wajib`,"model.constraints":`Batasan`,"model.noFields":`Tidak ada properti objek yang dideklarasikan.`,"model.rawSchema":`Skema JSON`,"model.rawQuery":`Rencana kueri`,"model.queryKind":`Kueri`,"model.source":`Sumber`,"model.allFields":`Semua bidang`,"model.order":`Urutan`,"model.limit":`Batas`,"model.dialect":`Dialek`,"model.filter":`Filter`,"model.params":`Parameter`,"model.relationships":`Relasi`,"model.references":`Item ini merujuk ke`,"model.referencedBy":`Merujuk ke item ini`,"model.noRelations":`Tidak ada relasi yang dideklarasikan dalam Manifest.`,"model.openGraph":`Tampilkan dalam grafik`,"model.openDeclaration":`Buka deklarasi Manifest`,"model.manifest":`Manifest`,"model.compiledManifest":`Manifest terkompilasi`,"model.marker.reference":`Referensi ke {target}`,"model.marker.translationParent":`Gabungan terjemahan ke induk {target}`,"model.marker.translationChild":`Gabungan terjemahan dari anak {target}`,"model.marker.unique":`Indeks unik UQ{index}: {fields}`,"model.marker.index":`Indeks IDX{index}: {fields}`,"logic.title":`Logika`,"logic.objects":`Objek logika`,"logic.search":`Cari logika`,"logic.triggers":`Pemicu`,"logic.procedures":`Prosedur`,"logic.overview":`Ringkasan`,"logic.contract":`Kontrak`,"logic.configuration":`Konfigurasi`,"logic.contractFrom":`Titik masuk ini menggunakan kontrak yang dideklarasikan oleh {target}.`,"logic.input":`Masukan`,"logic.output":`Keluaran`,"logic.noContract":`Kontrak prosedur target tidak tersedia.`,"logic.execution":`Jalur eksekusi`,"logic.target":`Prosedur target`,"logic.authorization":`Otorisasi`,"logic.noAuthorization":`Tidak ada kondisi otorisasi yang dideklarasikan.`,"logic.guard":`Prosedur penjaga`,"logic.method":`Metode`,"logic.surface":`Cakupan`,"logic.hooks":`Hook`,"logic.errorPolicy":`Kebijakan kesalahan`,"docs.title":`Antarmuka API dan agen`,"docs.intro":`Referensi yang diturunkan dari RuntimePlan untuk titik masuk HTTP, MCP, dan WebMCP browser.`,"docs.api":`API`,"docs.mcp":`MCP`,"docs.webmcp":`WebMCP`,"docs.httpIntro":`Pemicu HTTP dan rute tampilan publik yang diekspos secara otomatis.`,"docs.mcpIntro":`Alat yang dihasilkan dari tampilan dan pemicu MCP eksplisit. Otorisasi tetap diberlakukan saat alat dijalankan.`,"docs.webmcpIntro":`Integrasi berbasis server ini menemukan tampilan publik melalui HTTP dan mendaftarkannya sebagai alat browser hanya-baca. Setiap tampilan mempertahankan aturan audiensnya sendiri.`,"docs.publicEndpoint":`Titik akhir publik`,"docs.staffEndpoint":`Titik akhir staf`,"docs.catalogEndpoint":`Katalog penemuan`,"docs.target":`Target`,"docs.inputSchema":`Skema masukan`,"docs.outputSchema":`Skema keluaran`,"docs.readOnly":`Hanya baca`,"docs.noEntries":`Tidak ada titik masuk yang dideklarasikan untuk antarmuka ini.`,"docs.webmcpNote":`Alat prosedur publik tetap tersedia melalui MCP. Pembungkus HTTP WebMCP berbasis server sengaja hanya mendaftarkan tampilan publik.`,"developer.graph.title":`Grafik Manifest`,"developer.graph.details":`Detail item`,"developer.graph.openModel":`Buka dalam model data`,"developer.graph.openLogic":`Buka detail logika`,"developer.graph.relayout":`Tata letak otomatis`,"developer.graph.previous":`Langkah sebelumnya`,"developer.graph.next":`Langkah berikutnya`,"developer.graph.step":`Langkah {current} dari {total}`,"developer.graph.comesFrom":`Berasal dari`,"developer.graph.continuesTo":`Berlanjut ke`,"developer.graph.manifestSource":`Sumber Manifest`,"developer.graph.builtin":`Bawaan`,"developer.graph.kind.schema":`Skema`,"developer.graph.kind.view":`Tampilan`,"developer.graph.kind.procedure":`Prosedur`,"developer.graph.kind.trigger":`Pemicu`,"developer.graph.fact.audience":`Audiens`,"developer.graph.fact.transport":`Transport`,"developer.graph.fact.handler":`Penangan`,"developer.graph.fact.operation":`Operasi`,"developer.graph.fact.schema":`Skema`,"developer.graph.fact.match":`Kecocokan`,"developer.graph.summary.trigger":`Permintaan dari {audience} masuk melalui {transport} dan berlanjut ke {target}.`,"developer.graph.summary.builtin":`Operasi bawaan {op} menulis ke {schema}.`,"developer.graph.summary.ref":`Prosedur ini menjalankan penangan kode terdaftar {ref}.`,"developer.graph.summary.view":`Tampilan hanya-baca atas {target} untuk {audience}.`,"developer.graph.summary.schema":`{incoming} item menggunakan skema ini; skema merujuk ke {outgoing} item lain.`,"developer.graph.audience.public":`Publik`,"developer.graph.audience.members":`Anggota`,"developer.graph.audience.staff":`Staf`,"developer.graph.audience.system":`Sistem`,"developer.graph.audience.apiClients":`Klien API`,"developer.graph.audienceDescription.public":`Tersedia tanpa masuk.`,"developer.graph.audienceDescription.members":`Anggota mana pun yang sudah masuk. Peran situs tidak diperlukan.`,"developer.graph.audienceDescription.staff":`Anggota yang sudah masuk dengan peran kontributor, editor, atau pemilik. Staf adalah tingkat akses, bukan akun admin terpisah.`,"developer.graph.audienceDescription.system":`Berjalan otomatis dari peristiwa siklus hidup, antrean, atau jadwal.`,"developer.graph.audienceDescription.apiClients":`Memerlukan klien API terautentikasi atau cakupan yang sesuai.`,"developer.graph.relation.translationParent":`menerjemahkan`,"developer.graph.relation.schemaReference":`merujuk ke`,"developer.graph.relation.viewSource":`membaca dari`,"developer.graph.relation.guard":`dilindungi oleh`,"developer.graph.relation.procedureSchema":`menangani skema`,"developer.graph.relation.collectionAction":`bertindak pada`,"developer.graph.relation.inputReference":`merujuk ke`,"developer.graph.relation.triggerTarget":`memanggil`,"developer.graph.relation.lifecycleSource":`mengawasi siklus hidup`,"status.draft":`Draf`,"status.published":`Terbit`,"status.archived":`Arsip`,"preferences.heading":`Preferensi`,"preferences.language":`Bahasa admin`,"preferences.language.search":`Cari bahasa...`,"preferences.language.noResults":`Bahasa tidak ditemukan.`,"preferences.direction":`Arah teks`,"preferences.direction.auto":`Arah teks mengikuti bahasa yang dipilih.`,"preferences.appearance":`Tampilan`,"preferences.light":`Terang`,"preferences.dark":`Gelap`,"preferences.system":`Sistem`,"preferences.ltr":`Kiri ke kanan`,"preferences.rtl":`Kanan ke kiri`,"preferences.page.open":`Preferensi`,"preferences.page.title":`Preferensi pribadi`,"preferences.page.body":`Preferensi ini tetap di browser ini. Preferensi hanya mengubah konsol admin dan tidak mengubah pengaturan situs.`,"preferences.page.languageBody":`Pilih bahasa untuk halaman sistem dan antarmuka admin.`,"preferences.page.appearanceBody":`Pilih terang, gelap, atau ikuti sistem operasi.`}};function Z(e,t,n={}){let r=My[e]?.[t]??My.en[t];for(let[e,t]of Object.entries(n))r=r.split(`{${e}}`).join(t);return r}function Ny({className:e,size:t=`default`,...n}){return(0,U.jsx)(hc,{"data-slot":`avatar`,"data-size":t,className:J(`group/avatar relative flex size-8 shrink-0 rounded-full select-none after:absolute after:inset-0 after:rounded-full after:border after:border-border after:mix-blend-darken data-[size=lg]:size-10 data-[size=sm]:size-6 dark:after:mix-blend-lighten`,e),...n})}function Py({className:e,...t}){return(0,U.jsx)(_c,{"data-slot":`avatar-image`,className:J(`aspect-square size-full rounded-full object-cover`,e),...t})}function Fy({className:e,...t}){return(0,U.jsx)(yc,{"data-slot":`avatar-fallback`,className:J(`flex size-full items-center justify-center rounded-full bg-muted text-sm text-muted-foreground group-data-[size=sm]/avatar:text-xs`,e),...t})}function Iy(e){let t=e?.trim().split(/[\s._-]+/).filter(Boolean)??[];return(t.length>1?`${t[0]?.[0]??``}${t[t.length-1]?.[0]??``}`:(t[0]??`?`).slice(0,2)).toUpperCase()}function Ly({brand:e}){let{setOpenMobile:t}=Nv(),n=e.href??`/admin`;return(0,U.jsx)(Gv,{className:`min-w-0 flex-1 group-data-[collapsible=icon]:hidden`,children:(0,U.jsx)(Kv,{children:(0,U.jsx)(Jv,{asChild:!0,className:`p-1`,children:(0,U.jsxs)(`a`,{href:n,onClick:()=>t(!1),children:[e.image===null?null:(0,U.jsxs)(Ny,{className:`size-7 rounded-none after:hidden`,children:[e.image?(0,U.jsx)(Py,{className:`rounded-none object-contain`,src:e.image,alt:``}):null,(0,U.jsx)(Fy,{className:`rounded-md text-xs`,children:Iy(e.title)})]}),(0,U.jsx)(`span`,{className:`truncate font-semibold`,children:e.title})]})})})})}function Ry({...e}){return(0,U.jsx)(Yi,{"data-slot":`collapsible`,...e})}function zy({...e}){return(0,U.jsx)(Wi,{"data-slot":`collapsible-trigger`,...e})}function By({...e}){return(0,U.jsx)(Ki,{"data-slot":`collapsible-content`,...e})}function Vy({...e}){return(0,U.jsx)(kp,{"data-slot":`dropdown-menu`,...e})}function Hy({...e}){return(0,U.jsx)(Ap,{"data-slot":`dropdown-menu-trigger`,...e})}function Uy({className:e,align:t=`start`,sideOffset:n=4,...r}){return(0,U.jsx)(jp,{children:(0,U.jsx)(Mp,{"data-slot":`dropdown-menu-content`,sideOffset:n,align:t,className:J(`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 Wy({className:e,inset:t,variant:n=`default`,...r}){return(0,U.jsx)(Pp,{"data-slot":`dropdown-menu-item`,"data-inset":t,"data-variant":n,className:J(`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:ps-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 Gy({className:e,inset:t,...n}){return(0,U.jsx)(Np,{"data-slot":`dropdown-menu-label`,"data-inset":t,className:J(`px-1.5 py-1 text-xs font-medium text-muted-foreground data-inset:ps-7`,e),...n})}function Ky({className:e,...t}){return(0,U.jsx)(Fp,{"data-slot":`dropdown-menu-separator`,className:J(`-mx-1 my-1 h-px bg-border`,e),...t})}function qy(e){return Array.isArray(e.items)}function Jy({group:e,pathname:t,search:n}){return(0,U.jsxs)(Uv,{children:[e.title&&(0,U.jsx)(Wv,{title:e.title,children:e.title}),(0,U.jsx)(Gv,{children:e.items.map(e=>(0,U.jsx)(Xy,{item:e,pathname:t,search:n},Yy(e)))})]})}function Yy(e){return qy(e)?`g:${e.title}`:`l:${e.url}`}function Xy({item:e,pathname:t,search:n}){let{state:r,isMobile:i}=Nv();return qy(e)?r===`collapsed`&&!i?(0,U.jsx)(eb,{item:e,pathname:t,search:n}):(0,U.jsx)(Qy,{item:e,pathname:t,search:n}):(0,U.jsx)(Zy,{item:e,pathname:t,search:n})}function Zy({item:e,pathname:t,search:n}){let{setOpenMobile:r}=Nv(),i=nb(e,t,n,!0);return(0,U.jsx)(Kv,{children:(0,U.jsx)(Jv,{asChild:!0,isActive:i,children:(0,U.jsxs)(`a`,{href:e.url,title:e.title,onClick:()=>r(!1),...e.external?{target:`_blank`,rel:`noreferrer`}:null,children:[e.icon&&(0,U.jsx)(e.icon,{"aria-hidden":!0}),(0,U.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,children:e.title}),(0,U.jsx)(tb,{item:e})]})})})}function Qy({item:e,pathname:t,search:n}){let r=ib(e,t,n),[i,a]=H.useState(r);return H.useEffect(()=>{r&&a(!0)},[r]),(0,U.jsx)(Ry,{open:i,onOpenChange:a,className:`group/collapsible`,asChild:!0,children:(0,U.jsxs)(Kv,{children:[(0,U.jsx)(zy,{asChild:!0,children:(0,U.jsxs)(Jv,{isActive:r,children:[e.icon&&(0,U.jsx)(e.icon,{"aria-hidden":!0}),(0,U.jsx)(`span`,{"data-sidebar-label":!0,className:`flex-1 truncate`,title:e.title,children:e.title}),(0,U.jsx)(tb,{item:e}),(0,U.jsx)(At,{"aria-hidden":!0,"data-sidebar-label":!0,className:`transition-transform duration-200 group-data-[state=open]/collapsible:rotate-90 rtl:rotate-180 rtl:group-data-[state=open]/collapsible:-rotate-90`})]})}),(0,U.jsx)(By,{children:(0,U.jsx)(Yv,{children:e.items.map(r=>(0,U.jsx)($y,{link:r,siblings:e.items,pathname:t,search:n},r.url))})})]})})}function $y({link:e,siblings:t,pathname:n,search:r}){let{setOpenMobile:i}=Nv(),a=rb(e,t,n,r);return(0,U.jsx)(Xv,{children:(0,U.jsx)(Zv,{asChild:!0,isActive:a,children:(0,U.jsxs)(`a`,{href:e.url,title:e.title,onClick:()=>i(!1),children:[e.icon&&(0,U.jsx)(e.icon,{"aria-hidden":!0}),(0,U.jsx)(`span`,{children:e.title})]})})})}function eb({item:e,pathname:t,search:n}){let r=ib(e,t,n),{direction:i}=X();return(0,U.jsx)(Kv,{children:(0,U.jsxs)(Vy,{children:[(0,U.jsx)(Hy,{asChild:!0,children:(0,U.jsxs)(Jv,{isActive:r,tooltip:e.markerLabel?`${e.title} · ${e.markerLabel}`:e.title,children:[e.icon&&(0,U.jsx)(e.icon,{"aria-hidden":!0}),(0,U.jsx)(`span`,{"data-sidebar-label":!0,title:e.title,children:e.title}),(0,U.jsx)(At,{"aria-hidden":!0,"data-sidebar-label":!0,className:`ms-auto`})]})}),(0,U.jsxs)(Uy,{side:i===`rtl`?`left`:`right`,align:`start`,sideOffset:4,children:[(0,U.jsx)(Gy,{children:e.title}),(0,U.jsx)(Ky,{}),e.items.map(r=>(0,U.jsx)(Wy,{asChild:!0,children:(0,U.jsx)(`a`,{href:r.url,className:J(rb(r,e.items,t,n)&&`font-medium`),children:r.title})},r.url))]})]})})}function tb({item:e}){if(!e.marker)return null;let t=e.marker,n=(0,U.jsx)(`span`,{"data-sidebar-label":!0,className:`inline-flex text-primary group-data-[active=true]/menu-button:text-sidebar-accent-foreground`,children:(0,U.jsx)(t,{"aria-hidden":!0,className:`size-3.5`})});return e.markerLabel?(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:n}),(0,U.jsx)(Tv,{side:`right`,children:e.markerLabel})]}):n}function nb(e,t,n,r=!1){let i=new URL(e.url,`http://x`);if(i.pathname!==t&&!(r&&i.pathname.startsWith(`/admin/c/`)&&t.startsWith(`${i.pathname}/`)))return!1;if(!i.search)return!0;let a=new URLSearchParams(i.search),o=new URLSearchParams(n);for(let[e,t]of a.entries())if(o.get(e)!==t)return!1;return!0}function rb(e,t,n,r){return nb(e,n,r,!0)?new URL(e.url,`http://x`).search?!0:!t.some(t=>t.url===e.url||!new URL(t.url,`http://x`).search?!1:nb(t,n,r,!0)):!1}function ib(e,t,n){return e.items.some(e=>nb(e,t,n,!0))?!0:e.items.some(e=>new URL(e.url,`http://x`).pathname===t)}function ab(){fetch(`/api/auth/sign-out`,{method:`POST`,credentials:`include`}).then(()=>{window.location.href=`/admin/sign-in`})}function ob({login:e,image:t,role:n}){let{language:r}=X(),i=Iy(e);return(0,U.jsx)(Gv,{children:(0,U.jsx)(Kv,{children:(0,U.jsxs)(Vy,{children:[(0,U.jsx)(Hy,{asChild:!0,children:(0,U.jsxs)(Jv,{size:`lg`,className:`data-[state=open]:bg-sidebar-accent`,children:[(0,U.jsx)(sb,{src:t,fallback:i}),(0,U.jsxs)(`div`,{className:`grid min-w-0 flex-1 text-start text-sm leading-tight`,children:[(0,U.jsx)(`span`,{className:`truncate font-medium`,children:e??Z(r,`common.signedIn`)}),(0,U.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n??Z(r,`common.signedIn`)})]}),(0,U.jsx)(Nt,{className:`ms-auto`,"aria-hidden":!0})]})}),(0,U.jsxs)(Uy,{align:`start`,side:`top`,sideOffset:4,className:`w-(--radix-dropdown-menu-trigger-width) min-w-56`,children:[(0,U.jsxs)(Gy,{className:`flex items-center gap-2`,children:[(0,U.jsx)(sb,{src:t,fallback:i}),(0,U.jsxs)(`div`,{className:`grid min-w-0 flex-1 leading-tight`,children:[(0,U.jsx)(`span`,{className:`truncate font-medium`,children:e??Z(r,`common.signedIn`)}),(0,U.jsx)(`span`,{className:`truncate text-xs text-muted-foreground`,children:n??Z(r,`common.signedIn`)})]})]}),(0,U.jsx)(Ky,{}),(0,U.jsx)(Wy,{asChild:!0,children:(0,U.jsxs)(`a`,{href:`/admin/preferences`,children:[(0,U.jsx)(Mn,{"aria-hidden":!0}),Z(r,`preferences.page.open`)]})}),(0,U.jsx)(Wy,{asChild:!0,children:(0,U.jsxs)(`a`,{href:`/admin/connected-apps`,children:[(0,U.jsx)(Wn,{"aria-hidden":!0}),Z(r,`oauth.connectedApps`)]})}),(0,U.jsxs)(Wy,{variant:`destructive`,onSelect:()=>ab(),children:[(0,U.jsx)(hn,{"aria-hidden":!0}),Z(r,`common.signOut`)]})]})]})})})}function sb({src:e,fallback:t}){return(0,U.jsxs)(Ny,{className:`size-8 rounded-lg`,children:[e?(0,U.jsx)(Py,{src:e,alt:``}):null,(0,U.jsx)(Fy,{className:`rounded-lg`,children:t})]})}function cb({brand:e,groups:t,pathname:n,search:r,user:i}){let{direction:a,language:o}=X();return(0,U.jsxs)(Fv,{side:a===`rtl`?`right`:`left`,collapsible:`icon`,dir:a,mobileTitle:Z(o,`common.mobileSidebar`),mobileDescription:Z(o,`common.mobileSidebarDescription`),closeLabel:Z(o,`common.close`),children:[(0,U.jsx)(Bv,{className:`h-14 justify-center border-b border-sidebar-border px-2 py-0`,children:(0,U.jsxs)(`div`,{className:`flex min-w-0 items-center gap-1`,children:[(0,U.jsx)(Ly,{brand:e}),(0,U.jsx)(Iv,{className:`shrink-0 group-data-[collapsible=icon]:mx-auto`,"aria-label":Z(o,`common.toggleSidebar`)})]})}),(0,U.jsx)(Hv,{children:t.filter(e=>e.items.length>0).map((e,t)=>(0,U.jsx)(Jy,{group:e,pathname:n,search:r},e.title??`g-${t}`))}),(0,U.jsx)(Vv,{className:`border-t border-sidebar-border`,children:(0,U.jsx)(ob,{login:i.login,image:i.image,role:i.role})}),(0,U.jsx)(Lv,{"aria-label":Z(o,`common.toggleSidebar`)})]})}function lb({className:e,...t}){return(0,U.jsx)(`nav`,{"data-slot":`breadcrumb`,className:J(e),...t})}function ub({className:e,...t}){return(0,U.jsx)(`ol`,{"data-slot":`breadcrumb-list`,className:J(`flex flex-wrap items-center gap-1.5 text-sm wrap-break-word text-muted-foreground`,e),...t})}function db({className:e,...t}){return(0,U.jsx)(`li`,{"data-slot":`breadcrumb-item`,className:J(`inline-flex items-center gap-1`,e),...t})}function fb({asChild:e,className:t,...n}){let r=e?mr:`a`;return(0,U.jsx)(r,{"data-slot":`breadcrumb-link`,className:J(`transition-colors hover:text-foreground`,t),...n})}function pb({className:e,...t}){return(0,U.jsx)(`span`,{"data-slot":`breadcrumb-page`,role:`link`,"aria-disabled":`true`,"aria-current":`page`,className:J(`font-normal text-foreground`,e),...t})}function mb({children:e,className:t,...n}){return(0,U.jsx)(`li`,{"data-slot":`breadcrumb-separator`,role:`presentation`,"aria-hidden":`true`,className:J(`[&>svg]:size-3.5`,t),...n,children:e??(0,U.jsx)(At,{className:`rtl:rotate-180`})})}function hb({compact:e=!1}){let{language:t,setLanguage:n}=X(),r=vy.find(e=>e.value===t)??vy[0];return(0,U.jsxs)(Vy,{children:[(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(`span`,{className:`inline-flex`,children:(0,U.jsx)(Hy,{asChild:!0,children:(0,U.jsxs)(Y,{type:`button`,variant:`ghost`,size:e?`icon-sm`:`sm`,"aria-label":Z(t,`preferences.language`),children:[(0,U.jsx)(nn,{"aria-hidden":!0}),(0,U.jsx)(`span`,{className:e?`sr-only`:`hidden text-xs font-medium sm:inline`,children:r.nativeLabel})]})})})}),(0,U.jsx)(Tv,{children:Z(t,`preferences.language`)})]}),(0,U.jsxs)(Uy,{align:`end`,className:`max-h-[min(28rem,80vh)] w-52 overflow-y-auto`,children:[(0,U.jsx)(Gy,{children:Z(t,`preferences.language`)}),vy.map(e=>(0,U.jsxs)(Wy,{onSelect:()=>n(e.value),className:`justify-between`,children:[(0,U.jsx)(`span`,{children:e.nativeLabel}),(0,U.jsx)(Ot,{"aria-hidden":!0,className:J(`size-4 text-primary`,e.value===t?`opacity-100`:`opacity-0`)})]},e.value))]})]})}function gb({compact:e=!1}){let{language:t,theme:n,setTheme:r}=X(),i=vb(t).find(e=>e.value===n),a=i?.icon??_n;return(0,U.jsxs)(Vy,{children:[(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(`span`,{className:`inline-flex`,children:(0,U.jsx)(Hy,{asChild:!0,children:(0,U.jsxs)(Y,{type:`button`,variant:`ghost`,size:e?`icon-sm`:`sm`,"aria-label":Z(t,`preferences.appearance`),children:[(0,U.jsx)(a,{"aria-hidden":!0}),(0,U.jsx)(`span`,{className:e?`sr-only`:`hidden text-xs font-medium sm:inline`,children:i?.label??Z(t,`preferences.system`)})]})})})}),(0,U.jsx)(Tv,{children:Z(t,`preferences.appearance`)})]}),(0,U.jsxs)(Uy,{align:`end`,className:`w-44`,children:[(0,U.jsx)(Gy,{children:Z(t,`preferences.appearance`)}),vb(t).map(e=>{let t=e.icon;return(0,U.jsxs)(Wy,{onSelect:()=>r(e.value),className:`justify-between`,children:[(0,U.jsxs)(`span`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(t,{className:`size-4`,"aria-hidden":!0}),e.label]}),(0,U.jsx)(Ot,{"aria-hidden":!0,className:J(`size-4 text-primary`,e.value===n?`opacity-100`:`opacity-0`)})]},e.value)})]})]})}function _b(){let{language:e,resolvedTheme:t,setTheme:n}=X(),r=t===`dark`,i=Z(e,r?`preferences.light`:`preferences.dark`);return(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon`,onClick:()=>n(r?`light`:`dark`),"aria-label":i,title:i,children:r?(0,U.jsx)(vn,{"aria-hidden":!0}):(0,U.jsx)(Pn,{"aria-hidden":!0})})}function vb(e){return[{value:`light`,label:Z(e,`preferences.light`),icon:Pn},{value:`dark`,label:Z(e,`preferences.dark`),icon:vn},{value:`system`,label:Z(e,`preferences.system`),icon:_n}]}function yb({className:e,site:t,publicUrl:n,pageTitle:r,workspaceLink:i}){let{pathname:a}=_y(),{language:o}=X(),s=r??bb(a,o);return(0,U.jsxs)(`header`,{"data-slot":`app-header`,className:J(`flex h-14 shrink-0 items-center gap-2 border-b px-4`,e),children:[(0,U.jsx)(Iv,{className:`-ms-1 md:hidden`,"aria-label":Z(o,`common.toggleSidebar`)}),(0,U.jsx)(lb,{className:`min-w-0`,"aria-label":Z(o,`common.breadcrumb`),children:(0,U.jsxs)(ub,{className:`flex-nowrap`,children:[(0,U.jsx)(db,{className:`hidden sm:block`,children:(0,U.jsx)(fb,{href:t?.href??`/admin`,children:t?.title??Z(o,`admin.consoleTitle`)})}),s?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(mb,{className:`hidden sm:block`}),(0,U.jsx)(db,{className:`min-w-0`,children:(0,U.jsx)(pb,{className:`truncate`,children:s})})]}):null]})}),(0,U.jsxs)(`div`,{className:`ms-auto flex shrink-0 items-center gap-1`,children:[i?(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,U.jsx)(`a`,{href:i.href,"aria-label":i.label,children:(0,U.jsx)(i.icon,{"aria-hidden":!0})})})}),(0,U.jsx)(Tv,{children:i.label})]}):null,n?(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,U.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,"aria-label":Z(o,`common.viewSite`),children:(0,U.jsx)(Ut,{"aria-hidden":!0})})})}),(0,U.jsx)(Tv,{children:Z(o,`common.viewSite`)})]}):null,(0,U.jsx)(hb,{compact:!0}),(0,U.jsx)(gb,{compact:!0})]})]})}function bb(e,t){if(e===`/admin`||e===`/admin/`)return null;let n=e.match(/^\/admin\/c\/([^/]+)/);if(n)return iy(decodeURIComponent(n[1]));let r=e.split(`/`).filter(Boolean),i=decodeURIComponent(r[r.length-1]??``);return e===`/admin/media`?Z(t,`nav.media`):e===`/admin/connected-apps`?Z(t,`oauth.connectedApps`):e===`/admin/settings`?Z(t,`nav.settings`):e===`/admin/staff`?Z(t,`nav.staff`):e===`/admin/members`?Z(t,`nav.members`):e===`/admin/dev`?Z(t,`nav.overview`):e===`/admin/dev/model`?Z(t,`model.title`):e===`/admin/dev/logic`?Z(t,`logic.title`):e===`/admin/dev/docs`?Z(t,`docs.title`):i?iy(i):null}var xb=`content`;function Sb({className:e}){let{language:t}=X();return(0,U.jsx)(`a`,{href:`#${xb}`,className:J(`fixed inset-inline-start-3 top-3 z-[999]`,`-translate-y-52 rounded-md bg-primary px-3 py-2 text-sm font-medium`,`text-primary-foreground shadow`,`focus-visible:translate-y-0 transition-transform`,`outline-2 outline-offset-2 outline-ring/40`,e),children:Z(t,`common.skipToMain`)})}function Cb({className:e,children:t}){return(0,U.jsx)(`div`,{id:xb,className:J(`@container/content`,`mx-auto w-full max-w-[1440px] flex-1 px-4 py-6 sm:px-6`,e),children:t})}function wb(e,t){switch(t){case`draft`:return Z(e,`status.draft`);case`published`:return Z(e,`status.published`);case`archived`:return Z(e,`status.archived`)}}function Tb({className:e,size:t=`default`,...n}){return(0,U.jsx)(`div`,{"data-slot":`card`,"data-size":t,className:J(`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),...n})}function Eb({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`card-header`,className:J(`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 Db({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`card-title`,className:J(`font-heading text-base leading-snug font-medium group-data-[size=sm]/card:text-sm`,e),...t})}function Ob({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`card-description`,className:J(`text-sm text-muted-foreground`,e),...t})}function kb({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`card-content`,className:J(`px-(--card-spacing)`,e),...t})}var Ab=H.createContext(null);function jb({eyebrow:e,title:t,description:n,actions:r}){return(0,U.jsxs)(`div`,{className:`mb-6 flex flex-wrap items-end justify-between gap-4`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[e?(0,U.jsx)(`div`,{className:`mb-1 text-sm text-muted-foreground`,children:e}):null,(0,U.jsx)(`h1`,{className:`text-2xl font-semibold tracking-tight`,children:t}),n?(0,U.jsx)(`div`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:n}):null]}),r?(0,U.jsx)(`div`,{className:`flex shrink-0 items-center gap-2`,children:r}):null]})}function Mb({id:e,className:t,children:n}){return(0,U.jsx)(Tb,{id:e,className:J(`p-5`,t),children:n})}function Nb({status:e,children:t}){let n=H.useContext(Ab);return n?(0,Dr.createPortal)((0,U.jsxs)(`div`,{"data-slot":`form-action-bar`,className:`flex w-full flex-wrap items-center justify-between gap-3`,children:[(0,U.jsx)(`div`,{className:`min-h-5 min-w-0 text-sm text-muted-foreground`,"aria-live":`polite`,children:e}),(0,U.jsx)(`div`,{className:`ms-auto flex shrink-0 items-center gap-2`,children:t})]}),n):(0,U.jsx)(U.Fragment,{})}function Pb({icon:e=Pt,title:t,description:n,action:r}){return(0,U.jsxs)(`div`,{className:`rounded-lg border border-dashed border-border p-8 text-center`,children:[(0,U.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-accent text-accent-foreground`,children:(0,U.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,U.jsx)(`h2`,{className:`text-lg`,children:t}),n?(0,U.jsx)(`p`,{className:`mx-auto mt-1 max-w-xl text-sm text-muted-foreground`,children:n}):null,r?(0,U.jsx)(`div`,{className:`mt-4`,children:r}):null]})}function Fb({error:e}){let{language:t}=X();if(Lb(e))return null;let n=e instanceof Error?e.message:Z(t,`common.unknownError`);return(0,U.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[Z(t,`common.failedToLoad`),`: `,n]})}function Ib({error:e}){let{language:t}=X();if(Lb(e))return null;let n=e instanceof Error?e.message:String(e);return(0,U.jsxs)(`div`,{className:`rounded-lg border border-destructive/30 bg-destructive/5 p-4 text-sm text-destructive`,children:[(0,U.jsx)(`p`,{children:Z(t,`ops.error.executionFailed`)}),(0,U.jsxs)(`details`,{className:`group mt-2`,children:[(0,U.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-destructive/30 bg-card/40 px-2.5 py-1 text-xs font-semibold text-destructive/80 transition hover:bg-destructive/10`,children:Z(t,`ops.error.detailsLabel`)}),(0,U.jsx)(`p`,{className:`mt-2 max-w-3xl whitespace-pre-wrap break-words rounded-md border border-destructive/20 bg-card/30 p-3 font-mono text-xs leading-relaxed text-destructive/90`,children:n})]})]})}function Lb(e){let t=e instanceof $v&&e.status===401;return H.useEffect(()=>{if(!t||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[t]),t}function Rb({description:e,summaryLabel:t,collapsedIntro:n}){return zb(e)?(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsx)(`p`,{children:n}),(0,U.jsxs)(`details`,{className:`group`,children:[(0,U.jsx)(`summary`,{className:`inline-flex cursor-pointer list-none items-center rounded-md border border-border bg-card/70 px-2.5 py-1 text-xs font-semibold text-foreground/70 transition hover:bg-accent hover:text-accent-foreground`,children:t}),(0,U.jsx)(`p`,{className:`mt-2 max-w-3xl rounded-md border border-border bg-card/55 p-3 text-xs leading-relaxed text-muted-foreground`,children:e})]})]}):(0,U.jsx)(U.Fragment,{children:e})}function zb(e){return e.length>180||e.includes("`")}function Bb({label:e,value:t,href:n}){let{language:r}=X(),[i,a]=H.useState(!1);async function o(){try{await navigator.clipboard.writeText(t),a(!0),window.setTimeout(()=>a(!1),1400)}catch{a(!1)}}return(0,U.jsxs)(`div`,{className:`rounded-lg border bg-muted/30 p-3`,children:[(0,U.jsxs)(`div`,{className:`mb-1 flex items-center justify-between gap-3`,children:[(0,U.jsx)(`span`,{className:`text-xs font-medium text-muted-foreground`,children:e}),(0,U.jsxs)(`div`,{className:`flex items-center gap-1`,children:[n?(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon`,className:`size-7`,children:(0,U.jsx)(`a`,{href:n,target:`_blank`,rel:`noreferrer`,"aria-label":`${Z(r,`common.open`)} ${e}`,children:(0,U.jsx)(Ut,{className:`size-3.5`,"aria-hidden":!0})})}):null,(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon`,className:`size-7`,onClick:o,"aria-label":`${Z(r,`common.copy`)} ${e}`,children:i?(0,U.jsx)(Ot,{className:`size-3.5 text-[color:var(--success)]`,"aria-hidden":!0}):(0,U.jsx)(Rt,{className:`size-3.5`,"aria-hidden":!0})})]})]}),(0,U.jsx)(`code`,{className:`block truncate font-mono text-xs text-foreground`,children:t})]})}function Vb({children:e,workspace:t=`content`}){let[n,r]=H.useState(null),{pathname:i,search:a}=_y(),o=t===`developer`&&[`/admin/dev`,`/admin/dev/model`,`/admin/dev/logic`,`/admin/dev/docs`].includes(i),{language:s}=X(),c=rt({queryKey:[`me`],queryFn:()=>ty.get(`/me`),retry:!1}),l=rt({queryKey:[`collections`],queryFn:async()=>(await ty.get(`/collections`)).collections,enabled:t===`content`}),u=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}),d=rt({...ly(),enabled:t===`content`});H.useEffect(()=>{if(u.data?.icons.length){document.querySelectorAll(`link[rel~='icon']`).forEach(e=>e.remove());for(let e of u.data.icons){let t=document.createElement(`link`);t.rel=`icon`,t.href=e.src,e.mimeType&&(t.type=e.mimeType),e.sizes&&t.sizes.add(...e.sizes),e.theme&&(t.media=`(prefers-color-scheme: ${e.theme})`),document.head.append(t)}}},[u.data?.icons]);let f=H.useMemo(()=>({title:t===`developer`?Z(s,`developer.workspaceTitle`):u.data?.brand??Z(s,`admin.consoleTitle`),href:t===`developer`?`/admin/dev`:`/admin`,image:t===`developer`?null:Hb(u.data?.icons)}),[s,u.data,t]),p=u.data?.canonicalLocale??null,m=H.useMemo(()=>t===`developer`?Wb(s):Ub(l.data??[],d.data??[],s,p,c.data?.role??null),[l.data,d.data,s,p,c.data?.role,t]),h=i.match(/^\/admin\/c\/([^/]+)/)?.[1],g=i.match(/^\/admin\/views\/([^/]+)/)?.[1],_=h?l.data?.find(e=>e.name===decodeURIComponent(h)):d.data?.find(e=>e.name===decodeURIComponent(g??``)),v=_?ry(_.title,s,p)??iy(_.name):void 0;return(0,U.jsx)(Ab.Provider,{value:n,children:(0,U.jsxs)(Pv,{className:`h-svh min-h-0 overflow-hidden`,children:[(0,U.jsx)(Sb,{}),(0,U.jsx)(cb,{brand:f,groups:m,pathname:i,search:a,user:{login:c.data?.login??null,image:c.data?.image??null,role:c.data?.role??null}}),(0,U.jsxs)(Rv,{className:`min-h-0 overflow-hidden`,children:[(0,U.jsx)(yb,{className:`absolute inset-x-0 top-0 z-30`,site:f,publicUrl:u.data?.publicUrl,pageTitle:v,workspaceLink:t===`developer`?{href:`/admin`,label:Z(s,`common.contentAdmin`),icon:rn}:c.data?.role===`owner`?{href:`/admin/dev`,label:Z(s,`developer.workspaceTitle`),icon:Zn}:void 0}),(0,U.jsx)(Cb,{className:o?`min-h-0 max-w-none overflow-hidden px-0 py-0 pt-14 pb-10 sm:px-0`:`min-h-0 overflow-y-auto overscroll-contain pt-20 ${t===`developer`?`pb-14`:`pb-20`}`,children:e}),(0,U.jsxs)(`footer`,{"data-slot":`status-bar`,className:`absolute inset-x-0 bottom-0 z-30 flex items-center border-t px-4 sm:px-6 ${t===`developer`?`min-h-10 py-1.5`:`min-h-16 py-3`}`,children:[(0,U.jsx)(`div`,{ref:r,"data-slot":`status-bar-action-host`,className:`contents`}),(0,U.jsx)(`div`,{"data-slot":`status-bar-meta`,className:`ms-auto flex items-center justify-end`,children:(0,U.jsxs)(`a`,{href:`https://www.npmjs.com/package/@aotter/mantle/v/0.1.0-alpha.17`,target:`_blank`,rel:`noreferrer`,className:`rounded-md px-2 py-1 font-mono text-xs text-muted-foreground transition-colors hover:bg-accent hover:text-accent-foreground`,children:[`@aotter/mantle-`,`0.1.0-alpha.17`]})})]})]})]})})}function Hb(e){return e?.find(e=>e.sizes?.includes(`64x64`)&&!e.theme)?.src??e?.find(e=>!e.theme)?.src??e?.[0]?.src}function Ub(e,t,n,r,i){let a=e.filter(e=>!e.parent),o=a.filter(e=>e.lifecycle!==`operational`),s=a.filter(e=>e.lifecycle===`operational`),c={items:[{title:Z(n,`nav.home`),url:`/admin`,icon:Yt}]},l={title:Z(n,`nav.content`),items:o.map(e=>Gb(e,n,r))},u=s.length>0?{title:Z(n,`nav.operations`),items:s.map(e=>Gb(e,n,r))}:null,d=t.filter(e=>e.surface===`public`),f=t.filter(e=>e.surface===`staff`),p=d.length>0?{title:Z(n,`views.publicServices`),items:d.map(e=>({title:ry(e.title,n,r)??iy(e.name),icon:qt,url:`/admin/views/${encodeURIComponent(e.name)}`}))}:null,m=f.length>0?{title:Z(n,`nav.reports`),items:f.map(e=>({title:ry(e.title,n,r)??iy(e.name),icon:Dt,url:`/admin/views/${encodeURIComponent(e.name)}`}))}:null,h={title:Z(n,`nav.more`),items:[...i===`owner`||i===`editor`?[{title:Z(n,`nav.media`),url:`/admin/media`,icon:Qt},{title:Z(n,`nav.members`),url:`/admin/members`,icon:Lt}]:[],...i===`owner`?[{title:Z(n,`nav.settings`),url:`/admin/settings`,icon:Mn},{title:Z(n,`nav.staff`),url:`/admin/staff`,icon:qn}]:[]]};return[c,l,...u?[u]:[],...p?[p]:[],...m?[m]:[],...h.items.length>0?[h]:[]]}function Wb(e){return[{title:Z(e,`nav.build`),items:[{title:Z(e,`nav.overview`),url:`/admin/dev`,icon:rn},{title:Z(e,`nav.model`),url:`/admin/dev/model`,icon:zt},{title:Z(e,`nav.logic`),url:`/admin/dev/logic`,icon:Xn},{title:Z(e,`nav.docs`),url:`/admin/dev/docs`,icon:Ct}]}]}function Gb(e,t,n){let r=e.localized||e.hasTranslations,i={title:ry(e.title,t,n)??iy(e.name),icon:Kt,marker:r?qt:void 0,markerLabel:r?Z(t,`nav.localizedContent`):void 0};if(e.lifecycle===`operational`&&e.filter)return{...i,items:[{title:Z(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...e.filter.values.map(t=>({title:iy(t),url:`/admin/c/${e.name}?filter_field=${encodeURIComponent(e.filter.field)}&filter_value=${encodeURIComponent(t)}`}))]};let a=Kb(e);return a.length===0?{...i,url:`/admin/c/${e.name}`}:{...i,items:[{title:Z(t,`collection.filter.all`),url:`/admin/c/${e.name}`},...a.map(n=>({title:wb(t,n),url:`/admin/c/${e.name}?status=${n}`}))]}}function Kb(e){return e.lifecycle===`operational`?[]:dy}function qb({children:e,wide:t=!1}){return(0,U.jsx)(`main`,{className:`flex min-h-svh items-center justify-center p-6`,children:(0,U.jsxs)(Tb,{className:`${t?`w-full max-w-md`:`w-full max-w-sm`} relative [&>[data-slot=card-header]]:pe-14`,children:[(0,U.jsx)(`div`,{className:`absolute top-2 end-2 z-10`,children:(0,U.jsx)(_b,{})}),e]})})}function Jb(){return(0,U.jsxs)(qb,{children:[(0,U.jsx)(Eb,{children:(0,U.jsx)(xv,{className:`h-4 w-24`})}),(0,U.jsxs)(kb,{className:`space-y-2`,"aria-busy":`true`,children:[(0,U.jsx)(xv,{className:`h-3 w-full`}),(0,U.jsx)(xv,{className:`h-3 w-2/3`})]})]})}function Yb({error:e}){let{language:t}=X(),n=e instanceof Error?e.message:Z(t,`common.unknownError`);return(0,U.jsx)(qb,{children:(0,U.jsxs)(Eb,{className:`text-center`,children:[(0,U.jsx)(Db,{className:`text-xl`,children:(0,U.jsx)(`h1`,{children:Z(t,`auth.error.title`)})}),(0,U.jsx)(Ob,{role:`alert`,children:n})]})})}function Xb({login:e}){let{language:t}=X();return(0,U.jsxs)(qb,{wide:!0,children:[(0,U.jsxs)(Eb,{className:`text-center`,children:[(0,U.jsx)(`div`,{className:`mx-auto mb-3 inline-flex size-10 items-center justify-center rounded-full bg-destructive/10 text-destructive`,children:(0,U.jsx)(Bn,{className:`size-5`,"aria-hidden":!0})}),(0,U.jsx)(Db,{className:`text-xl`,children:(0,U.jsx)(`h1`,{children:Z(t,`auth.accessDenied.title`)})}),e?(0,U.jsxs)(Ob,{className:`font-medium text-foreground`,children:[`GitHub: `,e]}):null]}),(0,U.jsxs)(kb,{className:`text-center`,children:[(0,U.jsx)(`p`,{className:`mb-1 text-sm text-muted-foreground`,children:Z(t,`auth.accessDenied.noStaff`)}),(0,U.jsx)(`p`,{className:`mb-6 text-sm text-muted-foreground`,children:Z(t,`auth.accessDenied.askOwner`)}),(0,U.jsx)(Y,{variant:`outline`,className:`mb-2 w-full`,asChild:!0,children:(0,U.jsx)(`a`,{href:`/admin/connected-apps`,children:Z(t,`oauth.connectedApps`)})}),(0,U.jsxs)(Y,{variant:`outline`,className:`w-full`,onClick:ab,children:[(0,U.jsx)(hn,{className:`me-2 size-4`,"aria-hidden":!0}),Z(t,`common.signOut`)]})]})]})}var Zb=`first:mt-0 mt-4`,Qb=`first:mt-0 first:border-t-0 first:pt-0 mt-6 border-t border-border pt-4`;function $b(e){if(!e?.startsWith(`/`))return`/admin`;try{let t=`https://mantle.invalid`,n=new URL(e,t);return n.origin===t?`${n.pathname}${n.search}${n.hash}`:`/admin`}catch{return`/admin`}}function ex(e){let t=new URLSearchParams(e);if(!t.has(`sig`))return;let n=new Set(t.getAll(`ba_param`));if(n.size===0)return;let r=new URLSearchParams;for(let[e,i]of t)(e===`sig`||e===`ba_param`||n.has(e))&&r.append(e,i);return r.toString()}function tx({busy:e,children:t,disabled:n,...r}){return(0,U.jsxs)(Y,{...r,disabled:e||n,"aria-busy":e||void 0,children:[e?(0,U.jsx)(pn,{className:`animate-spin`,"aria-hidden":!0}):null,t]})}function nx(){let{language:e}=X(),t=$b(new URLSearchParams(window.location.search).get(`return`)),n=ex(window.location.search),r=rt(cy());return(0,U.jsxs)(qb,{children:[(0,U.jsxs)(Eb,{children:[(0,U.jsx)(Ob,{children:Z(e,`auth.signIn.eyebrow`)}),(0,U.jsx)(Db,{className:`text-xl`,children:(0,U.jsx)(`h1`,{children:Z(e,`auth.signIn.title`)})})]}),(0,U.jsxs)(kb,{children:[r.isError?(0,U.jsx)(`p`,{className:`mb-4 text-sm text-destructive`,role:`alert`,children:Z(e,`auth.signIn.methodsLoadFailed`)}):null,r.isLoading?(0,U.jsx)(xv,{className:`h-9 w-full`}):null,r.data?.length===0?(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`auth.signIn.noMethods`)}):null,r.data&&r.data.length>0?(0,U.jsx)(`div`,{children:r.data.map(e=>(0,U.jsx)(sx,{method:e,returnTo:t,oauthQuery:n},e.kind===`social`?`social:${e.provider}`:e.kind===`oauth`?`oauth:${e.providerId}`:e.kind))}):null]})]})}function rx(){let{language:e}=X(),[t,n]=H.useState(null),r=H.useRef(null),i=rt({queryKey:[`oauth-consent`,window.location.search],queryFn:async()=>{let t=await fetch(`/oauth/consent/data${window.location.search}`);if(t.status===401)return ox();let n=await t.json();if(t.status===400)return null;if(!t.ok)throw Error(Z(e,`common.failedToLoad`));return n.consent},retry:!1});return i.isLoading?(0,U.jsx)(Jb,{}):i.isError?(0,U.jsx)(Yb,{error:i.error}):i.data?(0,U.jsxs)(qb,{wide:!0,children:[(0,U.jsxs)(Eb,{children:[(0,U.jsx)(Ob,{children:Z(e,`oauth.consent.eyebrow`)}),(0,U.jsx)(Db,{className:`text-xl`,children:(0,U.jsx)(`h1`,{children:Z(e,`oauth.consent.heading`,{client:i.data.clientName})})}),(0,U.jsx)(Ob,{children:Z(e,`oauth.consent.body`,{client:i.data.clientName})})]}),(0,U.jsx)(kb,{children:(0,U.jsxs)(`form`,{method:`post`,action:`/oauth/consent`,className:`flex gap-2 max-sm:flex-col`,"aria-busy":t!==null||void 0,onSubmit:e=>{let t=e.nativeEvent.submitter;(t?.value===`approve`||t?.value===`deny`)&&(r.current&&(r.current.value=t.value),n(t.value))},children:[(0,U.jsx)(`input`,{type:`hidden`,name:`oauth_query`,value:i.data.oauthQuery}),(0,U.jsx)(`input`,{ref:r,type:`hidden`,name:`decision`}),(0,U.jsx)(tx,{type:`submit`,value:`approve`,className:`flex-1`,busy:t===`approve`,disabled:t!==null,children:Z(e,`oauth.consent.approve`)}),(0,U.jsx)(tx,{type:`submit`,value:`deny`,variant:`secondary`,className:`flex-1`,busy:t===`deny`,disabled:t!==null,children:Z(e,`oauth.consent.deny`)})]})})]}):(0,U.jsx)(qb,{wide:!0,children:(0,U.jsxs)(Eb,{children:[(0,U.jsx)(Ob,{children:Z(e,`oauth.consent.eyebrow`)}),(0,U.jsx)(Db,{className:`text-xl`,children:(0,U.jsx)(`h1`,{children:Z(e,`oauth.consent.invalidTitle`)})}),(0,U.jsx)(Ob,{children:Z(e,`oauth.consent.invalidBody`)})]})})}function ix(){return(0,U.jsx)(qb,{wide:!0,children:(0,U.jsx)(kb,{className:`pt-6`,children:(0,U.jsx)(ax,{})})})}function ax(){let{language:e}=X(),[t,n]=H.useState(null),r=rt({queryKey:[`oauth-consents`],queryFn:async()=>{let t=await fetch(`/oauth/consents/data`);if(t.status===401)return ox();if(!t.ok)throw Error(Z(e,`common.failedToLoad`));return(await t.json()).consents},retry:!1});return(0,U.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,U.jsx)(jb,{eyebrow:Z(e,`oauth.apps.eyebrow`),title:Z(e,`oauth.connectedApps`),description:Z(e,`oauth.apps.body`)}),r.isError?(0,U.jsx)(Fb,{error:r.error}):(0,U.jsx)(Mb,{children:r.isLoading?(0,U.jsxs)(`div`,{className:`space-y-3`,"aria-busy":`true`,children:[(0,U.jsx)(xv,{className:`h-5 w-40`}),(0,U.jsx)(xv,{className:`h-10 w-full`})]}):r.data?.length===0?(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`oauth.apps.empty`)}):(0,U.jsx)(`div`,{className:`divide-y`,children:r.data?.map(r=>(0,U.jsxs)(`section`,{className:`flex flex-wrap items-center justify-between gap-4 py-4 first:pt-0 last:pb-0`,children:[(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`h2`,{className:`font-medium`,children:r.clientName}),(0,U.jsx)(`code`,{className:`mt-1 block break-all text-xs text-muted-foreground`,children:r.clientId})]}),(0,U.jsxs)(`form`,{method:`post`,action:`/oauth/consents/revoke`,onSubmit:()=>n(r.id),children:[(0,U.jsx)(`input`,{type:`hidden`,name:`consent_id`,value:r.id}),(0,U.jsx)(tx,{type:`submit`,variant:`destructive`,busy:t===r.id,disabled:t!==null,children:Z(e,`oauth.apps.revoke`)})]})]},r.id))})})]})}function ox(){let e=`${window.location.pathname}${window.location.search}`,t=new URLSearchParams(window.location.search);throw t.set(`return`,e),window.location.replace(`/admin/sign-in?${t}`),Error(`Redirecting to sign in`)}function sx({method:e,returnTo:t,oauthQuery:n}){switch(e.kind){case`social`:return(0,U.jsx)(lx,{endpoint:`/api/auth/sign-in/social`,body:{provider:e.provider,callbackURL:t,...n?{oauth_query:n}:{}},buttonKey:`auth.signIn.method.social.button`,displayName:cx[e.provider]??e.provider});case`oauth`:return(0,U.jsx)(lx,{endpoint:`/api/auth/sign-in/social`,body:{provider:e.providerId,callbackURL:t,...n?{oauth_query:n}:{}},buttonKey:`auth.signIn.method.oauth.button`,displayName:e.displayName??e.providerId});case`email-otp`:return(0,U.jsx)(ux,{returnTo:t,oauthQuery:n});case`magic-link`:return(0,U.jsx)(dx,{returnTo:t,oauthQuery:n});default:return(0,U.jsx)(fx,{kind:e.kind})}}var cx={github:`GitHub`,google:`Google`,apple:`Apple`,"microsoft-entra-id":`Microsoft`,facebook:`Facebook`,discord:`Discord`,twitter:`Twitter / X`,linkedin:`LinkedIn`,spotify:`Spotify`,twitch:`Twitch`,gitlab:`GitLab`,tiktok:`TikTok`,reddit:`Reddit`,kick:`Kick`,vk:`VK`,naver:`Naver`,kakao:`Kakao`,line:`LINE`,slack:`Slack`,atlassian:`Atlassian`,zoom:`Zoom`,notion:`Notion`,figma:`Figma`,linear:`Linear`,vercel:`Vercel`,paypal:`PayPal`,huggingface:`Hugging Face`,cognito:`Cognito`,salesforce:`Salesforce`,polar:`Polar`,railway:`Railway`,roblox:`Roblox`,paybin:`Paybin`,wechat:`WeChat`,dropbox:`Dropbox`};function lx({endpoint:e,body:t,buttonKey:n,displayName:r}){let{language:i}=X(),[a,o]=H.useState(!1),[s,c]=H.useState(null),l=async()=>{o(!0),c(null);try{let n=await fetch(e,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});if(!n.ok)throw Error(`HTTP ${n.status}`);let r=await n.json();if(!r.url)throw Error(`Missing sign-in URL`);window.location.assign(r.url)}catch{c(Z(i,`auth.signIn.startFailed`)),o(!1)}};return(0,U.jsxs)(`div`,{className:Zb,children:[(0,U.jsx)(tx,{busy:a,onClick:()=>void l(),className:`w-full`,children:Z(i,n,{provider:r})}),s?(0,U.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,role:`alert`,children:s}):null]})}function ux({returnTo:e,oauthQuery:t}){let{language:n}=X(),[r,i]=H.useState(`email`),[a,o]=H.useState(``),[s,c]=H.useState(``),[l,u]=H.useState(!1),[d,f]=H.useState(null),p=async e=>{u(!0),f(null);try{await e()}catch{f(Z(n,`auth.signIn.requestFailed`))}finally{u(!1)}};return(0,U.jsxs)(`div`,{className:Qb,children:[(0,U.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Z(n,`auth.signIn.method.email-otp.body`)}),r===`email`?(0,U.jsxs)(`form`,{onSubmit:e=>{e.preventDefault(),a&&p(async()=>{if(!(await fetch(`/api/auth/email-otp/send-verification-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:a,type:`sign-in`,...t?{oauth_query:t}:{}})})).ok){f(Z(n,`auth.signIn.method.email-otp.sendFailed`));return}i(`otp`)})},className:`space-y-2`,children:[(0,U.jsx)(`label`,{htmlFor:`signin-email`,className:`sr-only`,children:Z(n,`auth.signIn.method.email-otp.emailLabel`)}),(0,U.jsx)(dv,{id:`signin-email`,type:`email`,value:a,onChange:e=>o(e.currentTarget.value),placeholder:Z(n,`auth.signIn.method.email-otp.emailPlaceholder`),required:!0,autoComplete:`email`}),(0,U.jsx)(tx,{type:`submit`,className:`w-full`,busy:l,disabled:!a,children:Z(n,`auth.signIn.method.email-otp.sendButton`)})]}):(0,U.jsxs)(`form`,{onSubmit:r=>{r.preventDefault(),s&&p(async()=>{let r=await fetch(`/api/auth/sign-in/email-otp`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:a,otp:s,...t?{oauth_query:t}:{}})});if(!r.ok){f(Z(n,`auth.signIn.method.email-otp.verifyFailed`));return}let i=await r.json();window.location.assign(i.url??e)})},className:`space-y-2`,children:[(0,U.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Z(n,`auth.signIn.method.email-otp.sentTo`,{email:a})}),(0,U.jsx)(`label`,{htmlFor:`signin-otp`,className:`sr-only`,children:Z(n,`auth.signIn.method.email-otp.otpLabel`)}),(0,U.jsx)(dv,{id:`signin-otp`,type:`text`,inputMode:`numeric`,autoComplete:`one-time-code`,value:s,onChange:e=>c(e.currentTarget.value),placeholder:Z(n,`auth.signIn.method.email-otp.otpPlaceholder`),required:!0}),(0,U.jsx)(tx,{type:`submit`,className:`w-full`,busy:l,disabled:!s,children:Z(n,`auth.signIn.method.email-otp.verifyButton`)}),(0,U.jsx)(`button`,{type:`button`,onClick:()=>i(`email`),className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Z(n,`auth.signIn.method.email-otp.back`)})]}),d?(0,U.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,role:`alert`,children:d}):null]})}function dx({returnTo:e,oauthQuery:t}){let{language:n}=X(),[r,i]=H.useState(``),[a,o]=H.useState(!1),[s,c]=H.useState(!1),[l,u]=H.useState(null),d=async e=>{o(!0),u(null);try{await e()}catch{u(Z(n,`auth.signIn.requestFailed`))}finally{o(!1)}};return(0,U.jsxs)(`div`,{className:Qb,children:[(0,U.jsx)(`p`,{className:`mb-2 text-sm text-muted-foreground`,children:Z(n,`auth.signIn.method.magic-link.body`)}),s?(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsx)(`p`,{className:`text-sm text-foreground`,children:Z(n,`auth.signIn.method.magic-link.sentTo`,{email:r})}),(0,U.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:Z(n,`auth.signIn.method.magic-link.clickHint`)}),(0,U.jsx)(`button`,{type:`button`,onClick:()=>{c(!1),i(``)},className:`text-xs text-muted-foreground underline-offset-2 hover:underline`,children:Z(n,`auth.signIn.method.magic-link.anotherEmail`)})]}):(0,U.jsxs)(`form`,{onSubmit:i=>{i.preventDefault(),r&&d(async()=>{if(!(await fetch(`/api/auth/sign-in/magic-link`,{method:`POST`,credentials:`include`,headers:{"Content-Type":`application/json`},body:JSON.stringify({email:r,callbackURL:e,...t?{oauth_query:t}:{}})})).ok){u(Z(n,`auth.signIn.method.magic-link.sendFailed`));return}c(!0)})},className:`space-y-2`,children:[(0,U.jsx)(`label`,{htmlFor:`signin-mlink-email`,className:`sr-only`,children:Z(n,`auth.signIn.method.magic-link.emailLabel`)}),(0,U.jsx)(dv,{id:`signin-mlink-email`,type:`email`,value:r,onChange:e=>i(e.currentTarget.value),placeholder:Z(n,`auth.signIn.method.magic-link.emailPlaceholder`),required:!0,autoComplete:`email`}),(0,U.jsx)(tx,{type:`submit`,className:`w-full`,busy:a,disabled:!r,children:Z(n,`auth.signIn.method.magic-link.sendButton`)})]}),l?(0,U.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,role:`alert`,children:l}):null]})}function fx({kind:e}){let{language:t}=X();return(0,U.jsx)(`p`,{className:`mt-4 text-xs text-muted-foreground`,children:Z(t,`auth.signIn.unknownMethod`,{kind:e})})}var px=ar(`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]:pe-1.5 has-data-[icon=inline-start]:ps-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 mx({className:e,variant:t=`default`,asChild:n=!1,...r}){let i=n?mr:`span`;return(0,U.jsx)(i,{"data-slot":`badge`,"data-variant":t,className:J(px({variant:t}),e),...r})}function hx({...e}){return(0,U.jsx)(Mm,{"data-slot":`select`,...e})}function gx({...e}){return(0,U.jsx)(Im,{"data-slot":`select-value`,...e})}function _x({className:e,size:t=`default`,children:n,...r}){return(0,U.jsxs)(Pm,{"data-slot":`select-trigger`,"data-size":t,className:J(`flex w-fit items-center justify-between gap-1.5 rounded-lg border border-input bg-transparent py-2 pe-2 ps-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/70 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:[n,(0,U.jsx)(Lm,{asChild:!0,children:(0,U.jsx)(kt,{className:`pointer-events-none size-4 text-muted-foreground`})})]})}function vx({className:e,children:t,position:n=`item-aligned`,align:r=`center`,...i}){return(0,U.jsx)(Bm,{children:(0,U.jsxs)(Hm,{"data-slot":`select-content`,"data-align-trigger":n===`item-aligned`,className:J(`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`,n===`popper`&&`data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 rtl:data-[side=left]:translate-x-1 data-[side=right]:translate-x-1 rtl:data-[side=right]:-translate-x-1 data-[side=top]:-translate-y-1`,e),position:n,align:r,...i,children:[(0,U.jsx)(bx,{}),(0,U.jsx)(eh,{"data-position":n,className:J(`data-[position=popper]:h-(--radix-select-trigger-height) data-[position=popper]:w-full data-[position=popper]:min-w-(--radix-select-trigger-width)`,n===`popper`&&``),children:t}),(0,U.jsx)(xx,{})]})})}function yx({className:e,children:t,...n}){return(0,U.jsxs)(oh,{"data-slot":`select-item`,className:J(`relative flex w-full cursor-default items-center gap-1.5 rounded-md py-1 pe-8 ps-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),...n,children:[(0,U.jsx)(`span`,{className:`pointer-events-none absolute end-2 flex size-4 items-center justify-center`,children:(0,U.jsx)(uh,{children:(0,U.jsx)(Ot,{className:`pointer-events-none`})})}),(0,U.jsx)(ch,{children:t})]})}function bx({className:e,...t}){return(0,U.jsx)(fh,{"data-slot":`select-scroll-up-button`,className:J(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,U.jsx)(Mt,{})})}function xx({className:e,...t}){return(0,U.jsx)(mh,{"data-slot":`select-scroll-down-button`,className:J(`z-10 flex cursor-default items-center justify-center bg-popover py-1 [&_svg:not([class*='size-'])]:size-4`,e),...t,children:(0,U.jsx)(kt,{})})}var Sx=[`1h`,`24h`,`7d`,`20d`],Cx=`cms.preference.collection-statistics`;function wx(e){try{let t=JSON.parse(e??`null`);if(t&&Sx.includes(t.range)&&(t.mode===`interval`||t.mode===`cumulative`))return{range:t.range,mode:t.mode}}catch{}return{range:`7d`,mode:`interval`}}function Tx(e,t,n){let r=Math.ceil((e.to-e.from)/e.bucketMs),i=t?[...t]:[null];return t&&e.buckets.some(e=>e.subtype===null)&&i.push(null),i.map(t=>{let i=Array(r).fill(0);for(let n of e.buckets)n.subtype===t&&n.bucket>=0&&n.bucket<r&&(i[n.bucket]+=n.count);let a=i.reduce((e,t)=>e+t,0);if(n)for(let e=1;e<i.length;e++)i[e]+=i[e-1];return{name:t,counts:i,intervalTotal:a}})}function Ex(e){let t=e[0]?.counts.length??0,n=Array(t).fill(0),r=Math.max(0,...n.map((t,n)=>e.reduce((e,t)=>e+t.counts[n],0))),i=e=>36+e*336/Math.max(1,t),a=e=>112-e*96/Math.max(1,r);return{paths:e.map(e=>{let t=n.flatMap((e,t)=>[`${i(t)},${a(e)}`,`${i(t+1)},${a(e)}`]);return`M${e.counts.flatMap((e,t)=>(n[t]+=e,[`${i(t)},${a(n[t])}`,`${i(t+1)},${a(n[t])}`])).join(` L`)} L${t.reverse().join(` L`)} Z`}),max:r}}function Dx(e,t,n){let r=e=>{let t=String(e);return`"${(/^[\s\u0000-\u001f]*[=+@-]/u.test(t)?`'${t}`:t).replace(/"/g,`""`)}"`},i=[[`interval_start`,`interval_end`,`current_total`,`mode`,...t.map(e=>e.name??(t.length===1?`Created`:`Other`))]];for(let r=0;r<Math.ceil((e.to-e.from)/e.bucketMs);r++)i.push([new Date(e.from+r*e.bucketMs).toISOString(),new Date(Math.min(e.to,e.from+(r+1)*e.bucketMs)).toISOString(),e.total,n,...t.map(e=>e.counts[r])]);return``+i.map(e=>e.map(r).join(`,`)).join(`\r
50
+ `)+`\r
51
+ `}function Ox({collection:e,canonical:t}){let{language:n}=X(),r=`${Cx}.${e.name}`,[i,a]=H.useState(()=>{try{return wx(localStorage.getItem(r))}catch{return wx(null)}}),o=e=>{a(e);try{localStorage.setItem(r,JSON.stringify(e))}catch{}},s=rt({queryKey:[`collection-statistics`,e.name,i.range],queryFn:()=>ty.get(`/collections/${encodeURIComponent(e.name)}/statistics?range=${i.range}`),staleTime:0,refetchOnWindowFocus:!0,refetchInterval:6e4}),c=ry(e.title,n,t)??iy(e.name),l=new Intl.NumberFormat(n),u=s.isError?void 0:s.data,d=u?Tx(u,e.filter?.values,i.mode===`cumulative`):[],{paths:f,max:p}=Ex(d),m=H.useId(),h=e=>`color-mix(in oklch, var(--chart-${e%5+1}) 75%, var(--foreground))`,g=new Intl.DateTimeFormat(n,i.range===`1h`?{hour:`2-digit`,minute:`2-digit`}:{month:`short`,day:`numeric`,...i.range===`7d`||i.range===`24h`?{hour:`2-digit`}:{}}).format,_=t=>t===null?Z(n,e.filter?`console.stats.other`:`console.stats.new`):iy(t);return(0,U.jsxs)(Mb,{className:`min-w-0 gap-3 p-4`,children:[(0,U.jsxs)(`h3`,{className:`flex items-baseline justify-between gap-3 text-base font-semibold`,children:[(0,U.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.name)}`,className:`min-w-0 rounded-sm hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:c}),u&&(0,U.jsx)(`span`,{className:`shrink-0 tabular-nums`,"aria-label":`${Z(n,`console.stats.total`)}: ${l.format(u.total)}`,title:Z(n,`console.stats.total`),children:l.format(u.total)})]}),(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-between gap-2`,children:[(0,U.jsxs)(hx,{value:i.range,onValueChange:e=>o({...i,range:e}),children:[(0,U.jsx)(_x,{className:`text-xs`,"aria-label":`${c} · ${Z(n,`console.stats.range`)}`,children:(0,U.jsx)(gx,{})}),(0,U.jsx)(vx,{children:Sx.map(e=>(0,U.jsx)(yx,{value:e,children:Z(n,`console.stats.range.${e}`)},e))})]}),(0,U.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,U.jsx)(`div`,{className:`inline-flex rounded-md border border-input p-0.5`,role:`group`,"aria-label":`${c} · ${Z(n,`console.stats.mode`)}`,children:[`interval`,`cumulative`].map(e=>(0,U.jsx)(Y,{variant:i.mode===e?`secondary`:`ghost`,size:`sm`,className:`h-7 px-2 text-xs`,"aria-pressed":i.mode===e,"aria-label":Z(n,`console.stats.${e}`),title:Z(n,`console.stats.${e}`),onClick:()=>o({...i,mode:e}),children:Z(n,`console.stats.short.${e}`)},e))}),u?(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon`,className:`size-8 shrink-0 text-muted-foreground`,children:(0,U.jsx)(`a`,{href:`data:text/csv;charset=utf-8,${encodeURIComponent(Dx(u,d,i.mode))}`,download:`${e.name}-${i.range}-${i.mode}.csv`,"aria-label":`${c} · ${Z(n,`console.stats.download`)}`,title:Z(n,`console.stats.download`),children:(0,U.jsx)(Bt,{className:`size-4`,"aria-hidden":!0})})}):null]})]}),s.isPending?(0,U.jsx)(xv,{className:`h-40`}):s.isError?s.error instanceof $v&&s.error.status===501?(0,U.jsx)(`p`,{className:`py-8 text-sm text-muted-foreground`,children:Z(n,`console.stats.unavailable`)}):(0,U.jsx)(Fb,{error:s.error}):u?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`svg`,{viewBox:`0 0 384 140`,className:`w-full text-muted-foreground`,role:`img`,"aria-labelledby":m,children:[(0,U.jsxs)(`title`,{id:m,children:[c,` · `,Z(n,`console.stats.${i.mode}`),` · `,l.format(p)]}),[16,64,112].map(e=>(0,U.jsx)(`line`,{x1:`36`,x2:`372`,y1:e,y2:e,stroke:`currentColor`,strokeOpacity:`0.15`,strokeDasharray:e===112?void 0:`3 4`},e)),(0,U.jsx)(`text`,{x:`30`,y:`20`,textAnchor:`end`,fill:`currentColor`,fontSize:`10`,children:new Intl.NumberFormat(n,{notation:`compact`}).format(p)}),(0,U.jsx)(`text`,{x:`30`,y:`116`,textAnchor:`end`,fill:`currentColor`,fontSize:`10`,children:`0`}),f.map((e,t)=>(0,U.jsx)(`path`,{d:e,fill:h(t),fillOpacity:`0.3`,stroke:h(t),strokeWidth:`1.5`,strokeLinejoin:`round`},d[t].name??`other`)),(0,U.jsx)(`text`,{x:`36`,y:`134`,fill:`currentColor`,fontSize:`10`,children:g(u.from)}),(0,U.jsx)(`text`,{x:`372`,y:`134`,textAnchor:`end`,fill:`currentColor`,fontSize:`10`,children:g(u.to)})]}),(0,U.jsx)(`div`,{className:`flex flex-wrap gap-x-3 gap-y-1 text-xs text-muted-foreground`,children:d.map((e,t)=>(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:`size-2 rounded-full`,style:{background:h(t)}}),_(e.name),` `,(0,U.jsx)(`span`,{className:`tabular-nums`,children:l.format(e.intervalTotal)})]},e.name??`other`))})]}):null]})}var kx=`https://claude.ai/customize/connectors?modal=add-custom-connector`,Ax=`https://claude.ai/new`;function jx(){let{language:e}=X(),t=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}),n=rt({queryKey:[`collections`],queryFn:async()=>(await ty.get(`/collections`)).collections}),r=(n.data??[]).filter(e=>!e.parent),i=[{title:Z(e,`nav.content`),items:r.filter(e=>e.lifecycle!==`operational`)},{title:Z(e,`nav.operations`),items:r.filter(e=>e.lifecycle===`operational`)}].filter(e=>e.items.length>0),a=t.data,o=a?.canonicalLocale??null;return(0,U.jsxs)(`div`,{className:`space-y-6`,children:[(0,U.jsx)(jb,{eyebrow:Z(e,`console.eyebrow`),title:a?.brand??Z(e,`admin.consoleTitle`),description:a?Z(e,`console.description`,{title:a.title}):Z(e,`console.descriptionFallback`),actions:a?.publicUrl?(0,U.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,U.jsxs)(`a`,{href:a.publicUrl,target:`_blank`,rel:`noreferrer`,children:[(0,U.jsx)(qt,{className:`size-4`,"aria-hidden":!0}),Z(e,`common.viewSite`)]})}):null}),t.isLoading?(0,U.jsx)(xv,{className:`h-72 w-full`}):t.isError?(0,U.jsx)(Fb,{error:t.error}):a?(0,U.jsxs)(Mb,{className:`overflow-hidden p-0`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-start justify-between gap-4 border-b border-border/70 p-5`,children:[(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,U.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,U.jsx)(wt,{className:`size-5`,"aria-hidden":!0})}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h2`,{className:`text-lg`,children:Z(e,`console.connector.title`)}),(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`console.connector.body`)})]})]}),(0,U.jsxs)(`div`,{className:`flex gap-2`,children:[(0,U.jsx)(mx,{children:`Claude`}),(0,U.jsx)(mx,{variant:`secondary`,children:`MCP`})]})]}),(0,U.jsxs)(`div`,{className:`grid divide-y divide-border/70 md:grid-cols-3 md:divide-x md:divide-y-0`,children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4 p-5`,children:[(0,U.jsx)(Mx,{children:`1`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h3`,{children:Z(e,`console.connector.step1.title`)}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Z(e,`console.connector.step1.body`)})]}),(0,U.jsx)(`div`,{className:`mt-auto`,children:(0,U.jsx)(Bb,{label:Z(e,`console.connector.step1.label`),value:a.mcpUrl})})]}),(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4 p-5`,children:[(0,U.jsx)(Mx,{children:`2`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h3`,{children:Z(e,`console.connector.step2.title`)}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Z(e,`console.connector.step2.body`)})]}),(0,U.jsx)(`div`,{className:`mt-auto`,children:(0,U.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,U.jsxs)(`a`,{href:kx,target:`_blank`,rel:`noreferrer`,children:[(0,U.jsx)(Ut,{className:`size-4`,"aria-hidden":!0}),Z(e,`console.connector.step2.action`)]})})})]}),(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-col gap-4 p-5`,children:[(0,U.jsx)(Mx,{children:`3`}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h3`,{children:Z(e,`console.connector.step3.title`)}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:Z(e,`console.connector.step3.body`)})]}),(0,U.jsx)(`div`,{className:`mt-auto`,children:(0,U.jsx)(Y,{asChild:!0,children:(0,U.jsxs)(`a`,{href:Ax,target:`_blank`,rel:`noreferrer`,children:[Z(e,`console.connector.step3.action`),(0,U.jsx)(Ut,{className:`size-4`,"aria-hidden":!0})]})})})]})]})]}):null,(0,U.jsxs)(`section`,{"aria-labelledby":`collections-heading`,children:[(0,U.jsx)(`h2`,{id:`collections-heading`,className:`mb-4 text-xl font-semibold`,children:Z(e,`console.collections.title`)}),n.isLoading&&(0,U.jsx)(`div`,{className:`space-y-2`,children:[0,1,2].map(e=>(0,U.jsx)(xv,{className:`h-16 w-full`},e))}),n.isError&&(0,U.jsx)(Fb,{error:n.error}),n.data&&r.length===0&&(0,U.jsx)(Pb,{icon:zt,title:Z(e,`console.collections.emptyTitle`),description:Z(e,`console.collections.emptyBody`)}),r.length>0&&(0,U.jsx)(`div`,{className:`space-y-6`,children:i.map(e=>(0,U.jsxs)(`div`,{children:[i.length>1&&(0,U.jsx)(`h3`,{className:`mb-3 text-sm font-medium text-muted-foreground`,children:e.title}),(0,U.jsx)(`div`,{className:`grid gap-4 sm:grid-cols-2 2xl:grid-cols-3`,children:e.items.map(e=>(0,U.jsx)(Ox,{collection:e,canonical:o},e.name))})]},e.title))})]})]})}function Mx({children:e}){return(0,U.jsx)(`span`,{className:`inline-flex size-6 items-center justify-center rounded-full bg-foreground/10 text-xs font-semibold text-foreground`,children:e})}function Nx({className:e,...t}){return(0,U.jsx)(Lc,{"data-slot":`checkbox`,className:J(`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,U.jsx)(zc,{"data-slot":`checkbox-indicator`,className:`grid place-content-center text-current transition-none [&>svg]:size-3.5`,children:(0,U.jsx)(Ot,{})})})}function Px({className:e,...t}){return(0,U.jsx)(`nav`,{role:`navigation`,"data-slot":`pagination`,className:J(`mx-auto flex w-full justify-center`,e),...t})}function Fx({className:e,...t}){return(0,U.jsx)(`ul`,{"data-slot":`pagination-content`,className:J(`flex items-center gap-0.5`,e),...t})}function Ix({...e}){return(0,U.jsx)(`li`,{"data-slot":`pagination-item`,...e})}function Lx({className:e,isActive:t,size:n=`icon`,...r}){return(0,U.jsx)(Y,{asChild:!0,variant:t?`outline`:`ghost`,size:n,className:J(e),children:(0,U.jsx)(`a`,{"aria-current":t?`page`:void 0,"data-slot":`pagination-link`,"data-active":t,...r})})}function Rx({className:e,text:t,...n}){return(0,U.jsxs)(Lx,{size:`default`,className:J(`ps-1.5!`,e),...n,children:[(0,U.jsx)(jt,{"data-icon":`inline-start`,className:`rtl:rotate-180`}),(0,U.jsx)(`span`,{className:`hidden sm:block`,children:t})]})}function zx({className:e,text:t,...n}){return(0,U.jsxs)(Lx,{size:`default`,className:J(`pe-1.5!`,e),...n,children:[(0,U.jsx)(`span`,{className:`hidden sm:block`,children:t}),(0,U.jsx)(At,{"data-icon":`inline-end`,className:`rtl:rotate-180`})]})}function Bx({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`table-container`,className:`relative w-full overflow-x-auto`,children:(0,U.jsx)(`table`,{"data-slot":`table`,className:J(`w-full caption-bottom text-sm`,e),...t})})}function Vx({className:e,...t}){return(0,U.jsx)(`thead`,{"data-slot":`table-header`,className:J(`[&_tr]:border-b`,e),...t})}function Hx({className:e,...t}){return(0,U.jsx)(`tbody`,{"data-slot":`table-body`,className:J(`[&_tr:last-child]:border-0`,e),...t})}function Ux({className:e,...t}){return(0,U.jsx)(`tr`,{"data-slot":`table-row`,className:J(`border-b transition-colors hover:bg-muted/50 has-aria-expanded:bg-muted/50 data-[state=selected]:bg-muted`,e),...t})}function Wx({className:e,...t}){return(0,U.jsx)(`th`,{"data-slot":`table-head`,className:J(`h-10 px-2 text-start align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pe-0`,e),...t})}function Gx({className:e,...t}){return(0,U.jsx)(`td`,{"data-slot":`table-cell`,className:J(`p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pe-0`,e),...t})}function Kx({...e}){return(0,U.jsx)($s,{"data-slot":`alert-dialog`,...e})}function qx({...e}){return(0,U.jsx)(ec,{"data-slot":`alert-dialog-portal`,...e})}function Jx({className:e,...t}){return(0,U.jsx)(tc,{"data-slot":`alert-dialog-overlay`,className:J(`fixed inset-0 z-50 bg-black/10 duration-100 supports-backdrop-filter:backdrop-blur-xs data-open:animate-in data-open:fade-in-0 data-closed:animate-out data-closed:fade-out-0`,e),...t})}function Yx({className:e,size:t=`default`,...n}){return(0,U.jsxs)(qx,{children:[(0,U.jsx)(Jx,{}),(0,U.jsx)(nc,{"data-slot":`alert-dialog-content`,"data-size":t,className:J(`group/alert-dialog-content fixed top-1/2 start-1/2 z-50 grid w-full -translate-x-1/2 rtl:translate-x-1/2 -translate-y-1/2 gap-4 rounded-xl bg-popover p-4 text-popover-foreground ring-1 ring-foreground/10 duration-100 outline-none data-[size=default]:max-w-xs data-[size=sm]:max-w-xs data-[size=default]:sm:max-w-sm data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...n})]})}function Xx({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`alert-dialog-header`,className:J(`grid grid-rows-[auto_1fr] place-items-center gap-1.5 text-center has-data-[slot=alert-dialog-media]:grid-rows-[auto_auto_1fr] has-data-[slot=alert-dialog-media]:gap-x-4 sm:group-data-[size=default]/alert-dialog-content:place-items-start sm:group-data-[size=default]/alert-dialog-content:text-start sm:group-data-[size=default]/alert-dialog-content:has-data-[slot=alert-dialog-media]:grid-rows-[auto_1fr]`,e),...t})}function Zx({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`alert-dialog-footer`,className:J(`-mx-4 -mb-4 flex flex-col-reverse gap-2 rounded-b-xl border-t bg-muted/50 p-4 group-data-[size=sm]/alert-dialog-content:grid group-data-[size=sm]/alert-dialog-content:grid-cols-2 sm:flex-row sm:justify-end`,e),...t})}function Qx({className:e,...t}){return(0,U.jsx)(ac,{"data-slot":`alert-dialog-title`,className:J(`font-heading text-base font-medium sm:group-data-[size=default]/alert-dialog-content:group-has-data-[slot=alert-dialog-media]/alert-dialog-content:col-start-2`,e),...t})}function $x({className:e,...t}){return(0,U.jsx)(oc,{"data-slot":`alert-dialog-description`,className:J(`text-sm text-balance text-muted-foreground md:text-pretty *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function eS({className:e,variant:t=`default`,size:n=`default`,...r}){return(0,U.jsx)(Y,{variant:t,size:n,asChild:!0,children:(0,U.jsx)(rc,{"data-slot":`alert-dialog-action`,className:J(e),...r})})}function tS({className:e,variant:t=`outline`,size:n=`default`,...r}){return(0,U.jsx)(Y,{variant:t,size:n,asChild:!0,children:(0,U.jsx)(ic,{"data-slot":`alert-dialog-cancel`,className:J(e),...r})})}var nS=H.createContext(null);function rS({children:e}){let{language:t}=X(),[n,r]=H.useState(null),i=H.useCallback(e=>new Promise(t=>r({...e,resolve:t})),[]),a=e=>{n?.resolve(e),r(null)};return(0,U.jsxs)(nS.Provider,{value:i,children:[e,(0,U.jsx)(Kx,{open:n!=null,onOpenChange:e=>!e&&a(!1),children:(0,U.jsxs)(Yx,{children:[(0,U.jsxs)(Xx,{children:[(0,U.jsx)(Qx,{children:Z(t,`confirm.title`)}),(0,U.jsx)($x,{children:n?.description})]}),(0,U.jsxs)(Zx,{children:[(0,U.jsx)(tS,{onClick:()=>a(!1),children:Z(t,`confirm.cancel`)}),(0,U.jsx)(eS,{variant:`destructive`,onClick:()=>a(!0),children:Z(t,`confirm.confirm`)})]})]})})]})}function iS(){let e=H.useContext(nS);if(!e)throw Error(`useConfirm() must be used within <ConfirmProvider>.`);return e}var aS={draft:`bg-muted text-muted-foreground`,published:`bg-[color-mix(in_srgb,var(--success)_18%,transparent)] text-[color:var(--success)]`,archived:`bg-secondary text-muted-foreground`},oS={draft:`status.draft`,published:`status.published`,archived:`status.archived`};function sS({status:e,className:t}){let{language:n}=X(),r=cS(e),i=oS[e];return(0,U.jsx)(mx,{variant:`secondary`,className:J(r?aS[e]:`bg-accent text-accent-foreground`,t),children:i?Z(n,i):e})}function cS(e){return e in aS}var lS=new Intl.DateTimeFormat(void 0,{dateStyle:`short`,timeStyle:`short`});function uS(e){return e?.[`x-mcp-hint`]===`money-minor`}function dS(e){return e?.[`x-mcp-hint`]===`timestamp-ms`}function fS(e,t){if(typeof e!=`number`||!Number.isFinite(e))return null;let n=e/100;if(typeof t==`string`&&t)try{return new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).format(n)}catch{}return new Intl.NumberFormat().format(n)}function pS(e){if(typeof e!=`number`||!Number.isFinite(e))return null;try{return lS.format(new Date(e))}catch{return null}}function mS(e){if(typeof e!=`number`&&typeof e!=`string`)return;let t=new Date(e);return Number.isNaN(t.getTime())?void 0:t}function hS(e,t=8){return e.length<=t?e:e.slice(-t)}function gS(e){if(e instanceof $v){let t=e.body?.diagnostic?.message;if(t)return Error(t)}return e}function _S(e){if(!e||typeof document>`u`)return;let t=document.head||document.getElementsByTagName(`head`)[0],n=document.createElement(`style`);n.type=`text/css`,t.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}var vS=e=>{switch(e){case`success`:return xS;case`info`:return CS;case`warning`:return SS;case`error`:return wS;default:return null}},yS=Array(12).fill(0),bS=({visible:e,className:t})=>H.createElement(`div`,{className:[`sonner-loading-wrapper`,t].filter(Boolean).join(` `),"data-visible":e},H.createElement(`div`,{className:`sonner-spinner`},yS.map((e,t)=>H.createElement(`div`,{className:`sonner-loading-bar`,key:`spinner-bar-${t}`})))),xS=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},H.createElement(`path`,{fillRule:`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,clipRule:`evenodd`})),SS=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},H.createElement(`path`,{fillRule:`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,clipRule:`evenodd`})),CS=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,clipRule:`evenodd`})),wS=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`,"aria-hidden":`true`},H.createElement(`path`,{fillRule:`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,clipRule:`evenodd`})),TS=H.createElement(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:`1.5`,strokeLinecap:`round`,strokeLinejoin:`round`,"aria-hidden":`true`},H.createElement(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`}),H.createElement(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`})),ES=()=>{let[e,t]=H.useState(document.hidden);return H.useEffect(()=>{let e=()=>{t(document.hidden)};return document.addEventListener(`visibilitychange`,e),()=>document.removeEventListener(`visibilitychange`,e)},[]),e},DS=1,OS=100,kS=e=>typeof e?.id==`number`||e?.id?.length>0?e.id:DS++,AS=new class{constructor(){this.subscribe=e=>(this.subscribers.push(e),this.getActiveToasts().forEach(t=>e(t)),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)}),this.publish=e=>{this.subscribers.forEach(t=>t(e))},this.addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e],this.trimHistory()},this.trimHistory=()=>{let e=this.toasts.length-OS;e<=0||(this.toasts=this.toasts.filter(t=>e>0&&this.dismissedToasts.has(t.id)?(this.dismissedToasts.delete(t.id),e--,!1):!0))},this.create=e=>{let{message:t,...n}=e,r=kS(e),i=this.pendingDismissals.get(r);i!==void 0&&(cancelAnimationFrame(i),this.pendingDismissals.delete(r),this.dismissedToasts.delete(r));let a=this.dismissedToasts.has(r),o=e.dismissible===void 0||e.dismissible;return a&&(this.dismissedToasts.delete(r),this.toasts=this.toasts.filter(e=>e.id!==r)),!a&&this.toasts.find(e=>e.id===r)?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:o,title:t}):n):this.addToast({title:t,...n,dismissible:o,id:r}),r},this.dismiss=e=>{if(e==null)return this.getActiveToasts().forEach(e=>{this.dismissedToasts.add(e.id),this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e;this.dismissedToasts.add(e);let t=this.pendingDismissals.get(e);return t!==void 0&&cancelAnimationFrame(t),this.pendingDismissals.set(e,requestAnimationFrame(()=>{this.pendingDismissals.delete(e),this.subscribers.forEach(t=>t({id:e,dismiss:!0}))})),e},this.message=(e,t)=>this.create({...t,message:e,type:void 0}),this.error=(e,t)=>this.create({...t,message:e,type:`error`}),this.success=(e,t)=>this.create({...t,type:`success`,message:e}),this.info=(e,t)=>this.create({...t,type:`info`,message:e}),this.warning=(e,t)=>this.create({...t,type:`warning`,message:e}),this.loading=(e,t)=>this.create({...t,type:`loading`,message:e}),this.promise=(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:`loading`,message:t.loading,description:typeof t.description==`function`?void 0:t.description}));let r=Promise.resolve(e instanceof Function?e():e),i=n!==void 0,a,o=r.then(async e=>{if(a=[`resolve`,e],H.isValidElement(e))i=!1,this.create({id:n,type:`default`,message:e});else if(MS(e)&&!e.ok){i=!1;let r=typeof t.error==`function`?await t.error(`HTTP error! status: ${e.status}`):t.error,a=typeof t.description==`function`?await t.description(`HTTP error! status: ${e.status}`):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(e instanceof Error){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}else if(t.success!==void 0){i=!1;let r=typeof t.success==`function`?await t.success(e):t.success,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`success`,description:a,...o})}}).catch(async e=>{if(a=[`reject`,e],t.error!==void 0){i=!1;let r=typeof t.error==`function`?await t.error(e):t.error,a=typeof t.description==`function`?await t.description(e):t.description,o=typeof r==`object`&&!H.isValidElement(r)?r:{message:r};this.create({id:n,type:`error`,description:a,...o})}}).finally(()=>{i&&(this.dismiss(n),n=void 0),t.finally==null||t.finally.call(t)}),s=()=>new Promise((e,t)=>o.then(()=>a[0]===`reject`?t(a[1]):e(a[1])).catch(t));return typeof n!=`string`&&typeof n!=`number`?{unwrap:s}:Object.assign(n,{unwrap:s})},this.custom=(e,t)=>{let n=kS(t);return this.create({...t,jsx:e(n),id:n,type:void 0}),n},this.getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set,this.pendingDismissals=new Map}},jS=(e,t)=>AS.message(e,t),MS=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,NS=Object.assign(jS,{success:AS.success,info:AS.info,warning:AS.warning,error:AS.error,custom:AS.custom,message:AS.message,promise:AS.promise,dismiss:AS.dismiss,loading:AS.loading},{getHistory:()=>AS.toasts,getToasts:()=>AS.getActiveToasts()});_S(`[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999;transition:transform .4s ease}@media (hover:none) and (pointer:coarse){[data-sonner-toaster][data-lifted=true]{transform:none}}[data-sonner-toaster][data-x-position=right]{right:var(--offset-right)}[data-sonner-toaster][data-x-position=left]{left:var(--offset-left)}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:var(--offset-top)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--offset-bottom)}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast][data-styled=true] [data-description]{font-weight:400;line-height:1.4;color:#3f3f3f}[data-rich-colors=true][data-sonner-toast][data-styled=true] [data-description]{color:inherit}[data-sonner-toaster][data-sonner-theme=dark] [data-description]{color:#e8e8e8}[data-sonner-toast][data-styled=true] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast][data-styled=true] [data-icon]{display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast][data-styled=true] [data-icon]>*{flex-shrink:0}[data-sonner-toast][data-styled=true] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast][data-styled=true] [data-content]{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;font-weight:500;cursor:pointer;outline:0;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}[data-sonner-toast][data-styled=true] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast][data-styled=true] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast][data-styled=true] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-styled=true] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast][data-styled=true] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--normal-text);background:var(--normal-bg);border:1px solid var(--normal-border);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast][data-styled=true] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-styled=true] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast][data-styled=true]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]::before{content:'';position:absolute;left:-100%;right:-100%;height:100%;z-index:-1}[data-sonner-toast][data-y-position=top][data-swiping=true]::before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]::before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]::before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast][data-expanded=true]::after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-x-position=right]{right:0}[data-sonner-toast][data-x-position=left]{left:0}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]::before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y,0)) translateX(var(--swipe-amount-x,0));transition:none}[data-sonner-toast][data-swiped=true]{-webkit-user-select:none;user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{from{transform:var(--y) translateX(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translateX(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{from{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-sonner-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 87%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 93%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 84%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-sonner-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-sonner-theme=dark]{--normal-bg:#000;--normal-bg-hover:hsl(0, 0%, 12%);--normal-border:hsl(0, 0%, 20%);--normal-border-hover:hsl(0, 0%, 25%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 43%, 17%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 9%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-sonner-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}`);function PS(e){return e.label!==void 0}var FS=3,IS=`24px`,LS=`16px`,RS=4e3,zS=356,BS=14,VS=45,HS=200;function US(...e){return e.filter(Boolean).join(` `)}function WS(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}var GS=e=>{let{invert:t,toast:n,unstyled:r,interacting:i,setHeights:a,visibleToasts:o,heights:s,index:c,toasts:l,expanded:u,removeToast:d,defaultRichColors:f,closeButton:p,style:m,cancelButtonStyle:h,actionButtonStyle:g,className:_=``,descriptionClassName:v=``,duration:y,position:b,gap:x,expandByDefault:S,classNames:C,icons:w,closeButtonAriaLabel:T=`Close toast`}=e,[E,D]=H.useState(null),[O,k]=H.useState(null),[A,j]=H.useState(!1),[M,N]=H.useState(!1),[P,F]=H.useState(!1),[I,L]=H.useState(!1),[R,ee]=H.useState(!1),[te,z]=H.useState(0),[B,V]=H.useState(0),ne=H.useRef(n.duration||y||RS),re=H.useRef(null),ie=H.useRef(null),ae=c===0,oe=c+1<=o,se=n.type,ce=se??`default`,le=n.dismissible!==!1,ue=n.className||``,de=n.descriptionClassName||``,fe=H.useMemo(()=>s.findIndex(e=>e.toastId===n.id)||0,[s,n.id]),pe=H.useMemo(()=>n.closeButton??p,[n.closeButton,p]),me=H.useMemo(()=>n.duration||y||RS,[n.duration,y]),he=H.useRef(0),ge=H.useRef(0),_e=H.useRef(0),ve=H.useRef(null),[ye,be]=b.split(`-`),xe=H.useMemo(()=>s.reduce((e,t,n)=>n>=fe?e:e+t.height,0),[s,fe]),Se=ES(),Ce=H.useMemo(()=>e.swipeDirections??WS(b),[e.swipeDirections,b]),we=n.invert||t,Te=se===`loading`;ge.current=H.useMemo(()=>fe*x+xe,[fe,xe]),H.useEffect(()=>{ne.current=me},[me]),H.useEffect(()=>{j(!0)},[]),H.useEffect(()=>{let e=ie.current;if(e){let t=e.getBoundingClientRect().height;return V(t),a(e=>[{toastId:n.id,height:t,position:n.position},...e]),()=>a(e=>e.filter(e=>e.toastId!==n.id))}},[a,n.id]),H.useLayoutEffect(()=>{if(!A)return;let e=ie.current,t=e.style.height;e.style.height=`auto`;let r=e.getBoundingClientRect().height;e.style.height=t,V(r),a(e=>e.find(e=>e.toastId===n.id)?e.map(e=>e.toastId===n.id?{...e,height:r}:e):[{toastId:n.id,height:r,position:n.position},...e])},[A,n.title,n.description,a,n.id,n.jsx,n.action,n.cancel]);let Ee=H.useCallback(()=>{N(!0),z(ge.current),a(e=>e.filter(e=>e.toastId!==n.id)),setTimeout(()=>{d(n)},HS)},[n,d,a,ge]);H.useEffect(()=>{if(n.promise&&se===`loading`||n.duration===1/0||n.type===`loading`)return;let e;return u||i||Se?(()=>{if(_e.current<he.current){let e=new Date().getTime()-he.current;ne.current-=e}_e.current=new Date().getTime()})():ne.current!==1/0&&(he.current=new Date().getTime(),e=setTimeout(()=>{n.onAutoClose==null||n.onAutoClose.call(n,n),Ee()},ne.current)),()=>clearTimeout(e)},[u,i,n,se,Se,Ee]),H.useEffect(()=>{n.delete&&(Ee(),n.onDismiss==null||n.onDismiss.call(n,n))},[Ee,n.delete]);function De(){return w?.loading?H.createElement(`div`,{className:US(C?.loader,n?.classNames?.loader,`sonner-loader`),"data-visible":se===`loading`},w.loading):H.createElement(bS,{className:US(C?.loader,n?.classNames?.loader),visible:se===`loading`})}let Oe=n.icon||w?.[se]||vS(se);return H.createElement(`li`,{tabIndex:0,ref:ie,className:US(_,ue,C?.toast,n?.classNames?.toast,C?.[ce],n?.classNames?.[ce]),"data-sonner-toast":``,"data-rich-colors":n.richColors??f,"data-styled":!(n.jsx||n.unstyled||r),"data-mounted":A,"data-promise":!!n.promise,"data-swiped":R,"data-removed":M,"data-visible":oe,"data-y-position":ye,"data-x-position":be,"data-index":c,"data-front":ae,"data-swiping":P,"data-dismissible":le,"data-type":se,"data-invert":we,"data-swipe-out":I,"data-swipe-direction":O,"data-expanded":!!(u||S&&A),"data-testid":n.testId,style:{"--index":c,"--toasts-before":c,"--z-index":l.length-c,"--offset":`${M?te:ge.current}px`,"--initial-height":S?`auto`:`${B}px`,...m,...n.style},onDragEnd:()=>{F(!1),D(null),ve.current=null},onPointerDown:e=>{e.button!==2&&(Te||!le||(re.current=new Date,z(ge.current),e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(F(!0),ve.current={x:e.clientX,y:e.clientY})))},onPointerUp:()=>{if(I||!le)return;ve.current=null;let e=Number(ie.current?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(ie.current?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),r=new Date().getTime()-re.current?.getTime(),i=E===`x`?e:t,a=Math.abs(i)/r;if((E===`x`?Ce.includes(e>0?`right`:`left`):Ce.includes(t>0?`bottom`:`top`))&&(Math.abs(i)>=VS||a>.11)){z(ge.current),n.onDismiss==null||n.onDismiss.call(n,n),k(E===`x`?e>0?`right`:`left`:t>0?`down`:`up`),Ee(),L(!0);return}var o,s;(o=ie.current)==null||o.style.setProperty(`--swipe-amount-x`,`0px`),(s=ie.current)==null||s.style.setProperty(`--swipe-amount-y`,`0px`),ee(!1),F(!1),D(null)},onPointerMove:e=>{var t,n;if(!ve.current||!le||window.getSelection()?.toString().length>0)return;let r=e.clientY-ve.current.y,i=e.clientX-ve.current.x;!E&&(Math.abs(i)>1||Math.abs(r)>1)&&D(Math.abs(i)>Math.abs(r)?`x`:`y`);let a={x:0,y:0},o=e=>1/(1.5+Math.abs(e)/20);if(E===`y`){if(Ce.includes(`top`)||Ce.includes(`bottom`)){if(Ce.includes(`top`)&&r<0||Ce.includes(`bottom`)&&r>0)a.y=r;else{let e=r*o(r);a.y=Math.abs(e)<Math.abs(r)?e:r}}}else if(E===`x`&&(Ce.includes(`left`)||Ce.includes(`right`))){if(Ce.includes(`left`)&&i<0||Ce.includes(`right`)&&i>0)a.x=i;else{let e=i*o(i);a.x=Math.abs(e)<Math.abs(i)?e:i}}(Math.abs(a.x)>0||Math.abs(a.y)>0)&&ee(!0),(t=ie.current)==null||t.style.setProperty(`--swipe-amount-x`,`${a.x}px`),(n=ie.current)==null||n.style.setProperty(`--swipe-amount-y`,`${a.y}px`)}},pe&&!n.jsx&&se!==`loading`?H.createElement(`button`,{"aria-label":T,"data-disabled":Te,"data-close-button":!0,onClick:Te||!le?()=>{}:()=>{Ee(),n.onDismiss==null||n.onDismiss.call(n,n)},className:US(C?.closeButton,n?.classNames?.closeButton)},w?.close??TS):null,(se||n.icon||n.promise)&&n.icon!==null&&(w?.[se]!==null||n.icon)?H.createElement(`div`,{"data-icon":``,className:US(C?.icon,n?.classNames?.icon)},se===`loading`?n.icon||De():n.promise?De():null,se===`loading`?null:Oe):null,H.createElement(`div`,{"data-content":``,className:US(C?.content,n?.classNames?.content)},H.createElement(`div`,{"data-title":``,className:US(C?.title,n?.classNames?.title)},n.jsx?n.jsx:typeof n.title==`function`?n.title():n.title),n.description?H.createElement(`div`,{"data-description":``,className:US(v,de,C?.description,n?.classNames?.description)},typeof n.description==`function`?n.description():n.description):null),H.isValidElement(n.cancel)?n.cancel:n.cancel&&PS(n.cancel)?H.createElement(`button`,{"data-button":!0,"data-cancel":!0,style:n.cancelButtonStyle||h,onClick:e=>{PS(n.cancel)&&le&&(n.cancel.onClick==null||n.cancel.onClick.call(n.cancel,e),Ee())},className:US(C?.cancelButton,n?.classNames?.cancelButton)},n.cancel.label):null,H.isValidElement(n.action)?n.action:n.action&&PS(n.action)?H.createElement(`button`,{"data-button":!0,"data-action":!0,style:n.actionButtonStyle||g,onClick:e=>{PS(n.action)&&(n.action.onClick==null||n.action.onClick.call(n.action,e),!e.defaultPrevented&&Ee())},className:US(C?.actionButton,n?.classNames?.actionButton)},n.action.label):null)};function KS(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}function qS(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?LS:IS;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var JS=H.forwardRef(function(e,t){let{id:n,invert:r,position:i=`bottom-right`,hotkey:a=[`altKey`,`KeyT`],expand:o,closeButton:s,className:c,offset:l,mobileOffset:u,theme:d=`light`,richColors:f,duration:p,style:m,visibleToasts:h=FS,toastOptions:g,dir:_=KS(),gap:v=BS,icons:y,customAriaLabel:b,containerAriaLabel:x=`Notifications`}=e,[S,C]=H.useState([]),w=H.useMemo(()=>n?S.filter(e=>e.toasterId===n):S.filter(e=>!e.toasterId),[S,n]),T=H.useMemo(()=>Array.from(new Set([i].concat(w.filter(e=>e.position).map(e=>e.position)))),[w,i]),[E,D]=H.useState([]),[O,k]=H.useState(!1),[A,j]=H.useState(!1),[M,N]=H.useState(d===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:d),P=H.useRef(null),F=a.join(`+`).replace(/Key/g,``).replace(/Digit/g,``),I=H.useRef(null),L=H.useRef(!1),R=H.useCallback(e=>{C(t=>(t.find(t=>t.id===e.id)?.delete||AS.dismiss(e.id),t.filter(({id:t})=>t!==e.id)))},[]);return H.useEffect(()=>AS.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{C(t=>t.map(t=>t.id===e.id?{...t,delete:!0}:t))});return}setTimeout(()=>{Dr.flushSync(()=>{C(t=>{let n=t.findIndex(t=>t.id===e.id);return n===-1?[e,...t]:[...t.slice(0,n),{...t[n],...e},...t.slice(n+1)]})})})}),[]),H.useEffect(()=>{if(d!==`system`){N(d);return}if(d===`system`&&(window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?N(`dark`):N(`light`)),typeof window>`u`)return;let e=window.matchMedia(`(prefers-color-scheme: dark)`);try{e.addEventListener(`change`,({matches:e})=>{N(e?`dark`:`light`)})}catch{e.addListener(({matches:e})=>{try{N(e?`dark`:`light`)}catch(e){console.error(e)}})}},[d]),H.useEffect(()=>{S.length<=1&&k(!1)},[S]),H.useEffect(()=>{let e=e=>{if(a.length>0&&a.every(t=>e[t]||e.code===t)){var t;k(!0),(t=P.current)==null||t.focus()}e.code===`Escape`&&(document.activeElement===P.current||P.current?.contains(document.activeElement))&&k(!1)};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[a]),H.useEffect(()=>{if(P.current)return()=>{I.current&&(I.current.focus({preventScroll:!0}),I.current=null,L.current=!1)}},[P.current]),H.createElement(`section`,{ref:t,"aria-label":b??`${x} ${F}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`,suppressHydrationWarning:!0,"data-react-aria-top-layer":!0},T.map((t,n)=>{let[i,a]=t.split(`-`);return w.length?H.createElement(`ol`,{key:t,dir:_===`auto`?KS():_,tabIndex:-1,ref:P,className:c,"data-sonner-toaster":!0,"data-sonner-theme":M,"data-y-position":i,"data-x-position":a,style:{"--front-toast-height":`${E[0]?.height||0}px`,"--width":`${zS}px`,"--gap":`${v}px`,...m,...qS(l,u)},onBlur:e=>{L.current&&!e.currentTarget.contains(e.relatedTarget)&&(L.current=!1,I.current&&=(I.current.focus({preventScroll:!0}),null))},onFocus:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||L.current||(L.current=!0,I.current=e.relatedTarget)},onMouseEnter:()=>k(!0),onMouseMove:()=>k(!0),onMouseLeave:()=>{A||k(!1)},onDragEnd:()=>k(!1),onPointerDown:e=>{e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||j(!0)},onPointerUp:()=>j(!1)},w.filter(e=>!e.position&&n===0||e.position===t).map((n,i)=>H.createElement(GS,{key:n.id,icons:y,index:i,toast:n,defaultRichColors:f,duration:g?.duration??p,className:g?.className,descriptionClassName:g?.descriptionClassName,invert:r,visibleToasts:h,closeButton:g?.closeButton??s,interacting:A,position:t,style:g?.style,unstyled:g?.unstyled,classNames:g?.classNames,cancelButtonStyle:g?.cancelButtonStyle,actionButtonStyle:g?.actionButtonStyle,closeButtonAriaLabel:g?.closeButtonAriaLabel,removeToast:R,toasts:w.filter(e=>e.position==n.position),heights:E.filter(e=>e.position==n.position),setHeights:D,expandByDefault:o,gap:v,expanded:O,swipeDirections:e.swipeDirections}))):null}))});function YS({...e}){return(0,U.jsx)(ms,{"data-slot":`dialog`,...e})}function XS({...e}){return(0,U.jsx)(bs,{"data-slot":`dialog-portal`,...e})}function ZS({className:e,...t}){return(0,U.jsx)(Ss,{"data-slot":`dialog-overlay`,className:J(`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 QS({className:e,children:t,showCloseButton:n=!0,closeLabel:r,...i}){return(0,U.jsxs)(XS,{children:[(0,U.jsx)(ZS,{}),(0,U.jsxs)(Es,{"data-slot":`dialog-content`,className:J(`fixed top-1/2 start-1/2 z-50 grid w-full max-w-[calc(100%-2rem)] -translate-x-1/2 rtl: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),...i,children:[t,n&&(0,U.jsx)(Fs,{"data-slot":`dialog-close`,asChild:!0,children:(0,U.jsxs)(Y,{variant:`ghost`,className:`absolute top-2 end-2`,size:`icon-sm`,children:[(0,U.jsx)(Qn,{}),(0,U.jsx)(`span`,{className:`sr-only`,children:r})]})})]})]})}function $S({className:e,...t}){return(0,U.jsx)(`div`,{"data-slot":`dialog-header`,className:J(`flex flex-col gap-2`,e),...t})}function eC({className:e,children:t,...n}){return(0,U.jsx)(`div`,{"data-slot":`dialog-footer`,className:J(`-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),...n,children:t})}function tC({className:e,...t}){return(0,U.jsx)(js,{"data-slot":`dialog-title`,className:J(`font-heading text-base leading-none font-medium`,e),...t})}function nC({className:e,...t}){return(0,U.jsx)(Ns,{"data-slot":`dialog-description`,className:J(`text-sm text-muted-foreground *:[a]:underline *:[a]:underline-offset-3 *:[a]:hover:text-foreground`,e),...t})}function rC(e,t,n=`long`){return new Intl.DateTimeFormat(`en-US`,{hour:`numeric`,timeZone:e,timeZoneName:n}).format(t).split(/\s/g).slice(2).join(` `)}var iC={},aC={};function oC(e,t){try{let n=(iC[e]||=new Intl.DateTimeFormat(`en-US`,{timeZone:e,timeZoneName:`longOffset`}).format)(t).split(`GMT`)[1];return n in aC?aC[n]:cC(n,n.split(`:`))}catch{if(e in aC)return aC[e];let t=e?.match(sC);return t?cC(e,t.slice(1)):NaN}}var sC=/([+-]\d\d):?(\d\d)?/;function cC(e,t){let n=+(t[0]||0),r=+(t[1]||0),i=(t[2]||0)/60;return aC[e]=n*60+r>0?n*60+r+i:n*60-r-i}var lC=class e extends Date{constructor(...e){super(),e.length>1&&typeof e[e.length-1]==`string`&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(oC(this.timeZone,this))?this.setTime(NaN):e.length?typeof e[0]==`number`&&(e.length===1||e.length===2&&typeof e[1]!=`number`)?this.setTime(e[0]):typeof e[0]==`string`?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),pC(this,e)):this.setTime(Date.now())}static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}withTimeZone(t){return new e(+this,t)}getTimezoneOffset(){let e=-oC(this.timeZone,this);return e>0?Math.floor(e):Math.ceil(e)}setTime(e){return Date.prototype.setTime.apply(this,arguments),dC(this),+this}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},uC=/^(get|set)(?!UTC)/;Object.getOwnPropertyNames(Date.prototype).forEach(e=>{if(!uC.test(e))return;let t=e.replace(uC,`$1UTC`);lC.prototype[t]&&(e.startsWith(`get`)?lC.prototype[e]=function(){return this.internal[t]()}:(lC.prototype[e]=function(){return Date.prototype[t].apply(this.internal,arguments),fC(this),+this},lC.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),dC(this),+this}))});function dC(e){e.internal.setTime(+e),e.internal.setUTCSeconds(e.internal.getUTCSeconds()-Math.round(-oC(e.timeZone,e)*60))}function fC(e){Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),pC(e)}function pC(e,t){let n=Array.isArray(t)?mC(t):+e.internal,r=oC(e.timeZone,e),i=r>0?Math.floor(r):Math.ceil(r),a=new Date(+e);a.setUTCHours(a.getUTCHours()-1);let o=-new Date(+e).getTimezoneOffset(),s=-new Date(+a).getTimezoneOffset(),c=o-s,l=o;if(c&&o!==i&&Date.prototype.getHours.apply(e)!==(Array.isArray(t)?t[3]||0:e.internal.getUTCHours())){let t=new Date(+e),n=o-i;n&&t.setUTCMinutes(t.getUTCMinutes()+n);let r=oC(e.timeZone,t);(r>0?Math.floor(r):Math.ceil(r))===i&&(l=s)}let u=l-i;u&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+u);let d=new Date(+e);d.setUTCSeconds(0);let f=o>0?d.getSeconds():(d.getSeconds()-60)%60,p=Math.round(-(oC(e.timeZone,e)*60))%60;(p||f)&&Date.prototype.setUTCSeconds.call(e,Date.prototype.getUTCSeconds.call(e)+p+f);let m=oC(e.timeZone,e),h=m>0?Math.floor(m):Math.ceil(m),g=-new Date(+e).getTimezoneOffset()-h,_=h!==i,v=g-u,y=h-i,b=n-h*60*1e3,x=y>0&&hC(e)-n===y*60*1e3&&hC(e,b)!==n;if(_&&v&&!x){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+v);let t=oC(e.timeZone,e),n=h-(t>0?Math.floor(t):Math.ceil(t));n&&v<0&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+n)}dC(e);let S=(t?n:n+p*1e3)-+e.internal;S&&Math.abs(S)<18e5&&(Date.prototype.setTime.call(e,+e+S),dC(e))}function mC(e){return Date.UTC(e[0],e.length>1?e[1]:0,e.length>2?e[2]:1,...e.slice(3))}function hC(e,t){let n=new Date(t??+e);return n.setUTCSeconds(n.getUTCSeconds()-Math.round(-oC(e.timeZone,n)*60)),+n}var gC=class e extends lC{static tz(t,...n){return n.length?new e(...n,t):new e(Date.now(),t)}toISOString(){let[e,t,n]=this.tzComponents(),r=`${e}${t}:${n}`;return this.internal.toISOString().slice(0,-1)+r}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){let[e,t,n,r]=this.internal.toUTCString().split(` `);return`${e?.slice(0,-1)} ${n} ${t} ${r}`}toTimeString(){let e=this.internal.toUTCString().split(` `)[4],[t,n,r]=this.tzComponents();return`${e} GMT${t}${n}${r} (${rC(this.timeZone,this)})`}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){let e=this.getTimezoneOffset();return[e>0?`-`:`+`,String(Math.floor(Math.abs(e)/60)).padStart(2,`0`),String(Math.abs(e)%60).padStart(2,`0`)]}withTimeZone(t){return new e(+this,t)}[Symbol.for(`constructDateFrom`)](t){return new e(+new Date(t),this.timeZone)}},_C=365.2425,vC=6048e5,yC=864e5,bC=86400;bC*7,bC*_C/12*3;var xC=Symbol.for(`constructDateFrom`);function SC(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&xC in e?e[xC](t):e instanceof Date?new e.constructor(t):new Date(t)}function CC(e,t){return SC(t||e,e)}function wC(e,t,n){let r=CC(e,n?.in);return isNaN(t)?SC(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function TC(e,t,n){let r=CC(e,n?.in);if(isNaN(t))return SC(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=SC(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}var EC={};function DC(){return EC}function OC(e,t){let n=DC(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=CC(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function kC(e,t){return OC(e,{...t,weekStartsOn:1})}function AC(e,t){let n=CC(e,t?.in),r=n.getFullYear(),i=SC(n,0);i.setFullYear(r+1,0,4),i.setHours(0,0,0,0);let a=kC(i),o=SC(n,0);o.setFullYear(r,0,4),o.setHours(0,0,0,0);let s=kC(o);return n.getTime()>=a.getTime()?r+1:n.getTime()>=s.getTime()?r:r-1}function jC(e){let t=CC(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),e-+n}function MC(e,...t){let n=SC.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function NC(e,t){let n=CC(e,t?.in);return n.setHours(0,0,0,0),n}function PC(e,t,n){let[r,i]=MC(n?.in,e,t),a=NC(r),o=NC(i),s=+a-jC(a),c=+o-jC(o);return Math.round((s-c)/yC)}function FC(e,t){let n=AC(e,t),r=SC(t?.in||e,0);return r.setFullYear(n,0,4),r.setHours(0,0,0,0),kC(r)}function IC(e,t,n){return wC(e,t*7,n)}function LC(e,t,n){return TC(e,t*12,n)}function RC(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=SC.bind(null,e));let t=CC(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),SC(r,n||NaN)}function zC(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=SC.bind(null,e));let t=CC(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),SC(r,n||NaN)}function BC(e,t,n){let[r,i]=MC(n?.in,e,t);return+NC(r)==+NC(i)}function VC(e){return e instanceof Date||typeof e==`object`&&Object.prototype.toString.call(e)===`[object Date]`}function HC(e){return!(!VC(e)&&typeof e!=`number`||isNaN(+CC(e)))}function UC(e,t,n){let[r,i]=MC(n?.in,e,t),a=r.getFullYear()-i.getFullYear(),o=r.getMonth()-i.getMonth();return a*12+o}function WC(e,t){let n=CC(e,t?.in),r=n.getMonth();return n.setFullYear(n.getFullYear(),r+1,0),n.setHours(23,59,59,999),n}function GC(e,t){let[n,r]=MC(e,t.start,t.end);return{start:n,end:r}}function KC(e,t){let{start:n,end:r}=GC(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(SC(n,o)),o.setMonth(o.getMonth()+s);return i?c.reverse():c}function qC(e,t){let n=CC(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function JC(e,t){let n=CC(e,t?.in),r=n.getFullYear();return n.setFullYear(r+1,0,0),n.setHours(23,59,59,999),n}function YC(e,t){let n=CC(e,t?.in);return n.setFullYear(n.getFullYear(),0,1),n.setHours(0,0,0,0),n}function XC(e,t){let{start:n,end:r}=GC(t?.in,e),i=+n>+r,a=i?+n:+r,o=i?r:n;o.setHours(0,0,0,0),o.setMonth(0,1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,i=!i);let c=[];for(;+o<=a;)c.push(SC(n,o)),o.setFullYear(o.getFullYear()+s);return i?c.reverse():c}function ZC(e,t){let n=DC(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=CC(e,t?.in),a=i.getDay(),o=(a<r?-7:0)+6-(a-r);return i.setDate(i.getDate()+o),i.setHours(23,59,59,999),i}function QC(e,t){return ZC(e,{...t,weekStartsOn:1})}var $C={lessThanXSeconds:{one:`less than a second`,other:`less than {{count}} seconds`},xSeconds:{one:`1 second`,other:`{{count}} seconds`},halfAMinute:`half a minute`,lessThanXMinutes:{one:`less than a minute`,other:`less than {{count}} minutes`},xMinutes:{one:`1 minute`,other:`{{count}} minutes`},aboutXHours:{one:`about 1 hour`,other:`about {{count}} hours`},xHours:{one:`1 hour`,other:`{{count}} hours`},xDays:{one:`1 day`,other:`{{count}} days`},aboutXWeeks:{one:`about 1 week`,other:`about {{count}} weeks`},xWeeks:{one:`1 week`,other:`{{count}} weeks`},aboutXMonths:{one:`about 1 month`,other:`about {{count}} months`},xMonths:{one:`1 month`,other:`{{count}} months`},aboutXYears:{one:`about 1 year`,other:`about {{count}} years`},xYears:{one:`1 year`,other:`{{count}} years`},overXYears:{one:`over 1 year`,other:`over {{count}} years`},almostXYears:{one:`almost 1 year`,other:`almost {{count}} years`}},ew=(e,t,n)=>{let r,i=$C[e];return r=typeof i==`string`?i:t===1?i.one:i.other.replace(`{{count}}`,t.toString()),n?.addSuffix?n.comparison&&n.comparison>0?`in `+r:r+` ago`:r};function tw(e){return(t={})=>{let n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}var nw={date:tw({formats:{full:`EEEE, MMMM do, y`,long:`MMMM do, y`,medium:`MMM d, y`,short:`MM/dd/yyyy`},defaultWidth:`full`}),time:tw({formats:{full:`h:mm:ss a zzzz`,long:`h:mm:ss a z`,medium:`h:mm:ss a`,short:`h:mm a`},defaultWidth:`full`}),dateTime:tw({formats:{full:`{{date}} 'at' {{time}}`,long:`{{date}} 'at' {{time}}`,medium:`{{date}}, {{time}}`,short:`{{date}}, {{time}}`},defaultWidth:`full`})},rw={lastWeek:`'last' eeee 'at' p`,yesterday:`'yesterday at' p`,today:`'today at' p`,tomorrow:`'tomorrow at' p`,nextWeek:`eeee 'at' p`,other:`P`},iw=(e,t,n,r)=>rw[e];function aw(e){return(t,n)=>{let r=n?.context?String(n.context):`standalone`,i;if(r===`formatting`&&e.formattingValues){let t=e.defaultFormattingWidth||e.defaultWidth,r=n?.width?String(n.width):t;i=e.formattingValues[r]||e.formattingValues[t]}else{let t=e.defaultWidth,r=n?.width?String(n.width):e.defaultWidth;i=e.values[r]||e.values[t]}let a=e.argumentCallback?e.argumentCallback(t):t;return i[a]}}var ow={ordinalNumber:(e,t)=>{let n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+`st`;case 2:return n+`nd`;case 3:return n+`rd`}return n+`th`},era:aw({values:{narrow:[`B`,`A`],abbreviated:[`BC`,`AD`],wide:[`Before Christ`,`Anno Domini`]},defaultWidth:`wide`}),quarter:aw({values:{narrow:[`1`,`2`,`3`,`4`],abbreviated:[`Q1`,`Q2`,`Q3`,`Q4`],wide:[`1st quarter`,`2nd quarter`,`3rd quarter`,`4th quarter`]},defaultWidth:`wide`,argumentCallback:e=>e-1}),month:aw({values:{narrow:[`J`,`F`,`M`,`A`,`M`,`J`,`J`,`A`,`S`,`O`,`N`,`D`],abbreviated:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],wide:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`]},defaultWidth:`wide`}),day:aw({values:{narrow:[`S`,`M`,`T`,`W`,`T`,`F`,`S`],short:[`Su`,`Mo`,`Tu`,`We`,`Th`,`Fr`,`Sa`],abbreviated:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],wide:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`]},defaultWidth:`wide`}),dayPeriod:aw({values:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`}},defaultWidth:`wide`,formattingValues:{narrow:{am:`a`,pm:`p`,midnight:`mi`,noon:`n`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},abbreviated:{am:`AM`,pm:`PM`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`},wide:{am:`a.m.`,pm:`p.m.`,midnight:`midnight`,noon:`noon`,morning:`in the morning`,afternoon:`in the afternoon`,evening:`in the evening`,night:`at night`}},defaultFormattingWidth:`wide`})};function sw(e){return(t,n={})=>{let r=n.width,i=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],a=t.match(i);if(!a)return null;let o=a[0],s=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(s)?lw(s,e=>e.test(o)):cw(s,e=>e.test(o)),l;l=e.valueCallback?e.valueCallback(c):c,l=n.valueCallback?n.valueCallback(l):l;let u=t.slice(o.length);return{value:l,rest:u}}}function cw(e,t){for(let n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t(e[n]))return n}function lw(e,t){for(let n=0;n<e.length;n++)if(t(e[n]))return n}function uw(e){return(t,n={})=>{let r=t.match(e.matchPattern);if(!r)return null;let i=r[0],a=t.match(e.parsePattern);if(!a)return null;let o=e.valueCallback?e.valueCallback(a[0]):a[0];o=n.valueCallback?n.valueCallback(o):o;let s=t.slice(i.length);return{value:o,rest:s}}}var dw={code:`en-US`,formatDistance:ew,formatLong:nw,formatRelative:iw,localize:ow,match:{ordinalNumber:uw({matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)}),era:sw({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:`any`}),quarter:sw({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:`wide`,parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:`any`,valueCallback:e=>e+1}),month:sw({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:`any`}),day:sw({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:`wide`,parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:`any`}),dayPeriod:sw({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:`any`,parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:`any`})},options:{weekStartsOn:0,firstWeekContainsDate:1}};function fw(e,t){let n=CC(e,t?.in);return PC(n,YC(n))+1}function pw(e,t){let n=CC(e,t?.in),r=kC(n)-+FC(n);return Math.round(r/vC)+1}function mw(e,t){let n=CC(e,t?.in),r=n.getFullYear(),i=DC(),a=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,o=SC(t?.in||e,0);o.setFullYear(r+1,0,a),o.setHours(0,0,0,0);let s=OC(o,t),c=SC(t?.in||e,0);c.setFullYear(r,0,a),c.setHours(0,0,0,0);let l=OC(c,t);return+n>=+s?r+1:+n>=+l?r:r-1}function hw(e,t){let n=DC(),r=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,i=mw(e,t),a=SC(t?.in||e,0);return a.setFullYear(i,0,r),a.setHours(0,0,0,0),OC(a,t)}function gw(e,t){let n=CC(e,t?.in),r=OC(n,t)-+hw(n,t);return Math.round(r/vC)+1}function _w(e,t){return(e<0?`-`:``)+Math.abs(e).toString().padStart(t,`0`)}var vw={y(e,t){let n=e.getFullYear(),r=n>0?n:1-n;return _w(t===`yy`?r%100:r,t.length)},M(e,t){let n=e.getMonth();return t===`M`?String(n+1):_w(n+1,2)},d(e,t){return _w(e.getDate(),t.length)},a(e,t){let n=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.toUpperCase();case`aaa`:return n;case`aaaaa`:return n[0];default:return n===`am`?`a.m.`:`p.m.`}},h(e,t){return _w(e.getHours()%12||12,t.length)},H(e,t){return _w(e.getHours(),t.length)},m(e,t){return _w(e.getMinutes(),t.length)},s(e,t){return _w(e.getSeconds(),t.length)},S(e,t){let n=t.length,r=e.getMilliseconds();return _w(Math.trunc(r*10**(n-3)),t.length)}},yw={am:`am`,pm:`pm`,midnight:`midnight`,noon:`noon`,morning:`morning`,afternoon:`afternoon`,evening:`evening`,night:`night`},bw={G:function(e,t,n){let r=+(e.getFullYear()>0);switch(t){case`G`:case`GG`:case`GGG`:return n.era(r,{width:`abbreviated`});case`GGGGG`:return n.era(r,{width:`narrow`});default:return n.era(r,{width:`wide`})}},y:function(e,t,n){if(t===`yo`){let t=e.getFullYear(),r=t>0?t:1-t;return n.ordinalNumber(r,{unit:`year`})}return vw.y(e,t)},Y:function(e,t,n,r){let i=mw(e,r),a=i>0?i:1-i;return t===`YY`?_w(a%100,2):t===`Yo`?n.ordinalNumber(a,{unit:`year`}):_w(a,t.length)},R:function(e,t){return _w(AC(e),t.length)},u:function(e,t){return _w(e.getFullYear(),t.length)},Q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`Q`:return String(r);case`QQ`:return _w(r,2);case`Qo`:return n.ordinalNumber(r,{unit:`quarter`});case`QQQ`:return n.quarter(r,{width:`abbreviated`,context:`formatting`});case`QQQQQ`:return n.quarter(r,{width:`narrow`,context:`formatting`});default:return n.quarter(r,{width:`wide`,context:`formatting`})}},q:function(e,t,n){let r=Math.ceil((e.getMonth()+1)/3);switch(t){case`q`:return String(r);case`qq`:return _w(r,2);case`qo`:return n.ordinalNumber(r,{unit:`quarter`});case`qqq`:return n.quarter(r,{width:`abbreviated`,context:`standalone`});case`qqqqq`:return n.quarter(r,{width:`narrow`,context:`standalone`});default:return n.quarter(r,{width:`wide`,context:`standalone`})}},M:function(e,t,n){let r=e.getMonth();switch(t){case`M`:case`MM`:return vw.M(e,t);case`Mo`:return n.ordinalNumber(r+1,{unit:`month`});case`MMM`:return n.month(r,{width:`abbreviated`,context:`formatting`});case`MMMMM`:return n.month(r,{width:`narrow`,context:`formatting`});default:return n.month(r,{width:`wide`,context:`formatting`})}},L:function(e,t,n){let r=e.getMonth();switch(t){case`L`:return String(r+1);case`LL`:return _w(r+1,2);case`Lo`:return n.ordinalNumber(r+1,{unit:`month`});case`LLL`:return n.month(r,{width:`abbreviated`,context:`standalone`});case`LLLLL`:return n.month(r,{width:`narrow`,context:`standalone`});default:return n.month(r,{width:`wide`,context:`standalone`})}},w:function(e,t,n,r){let i=gw(e,r);return t===`wo`?n.ordinalNumber(i,{unit:`week`}):_w(i,t.length)},I:function(e,t,n){let r=pw(e);return t===`Io`?n.ordinalNumber(r,{unit:`week`}):_w(r,t.length)},d:function(e,t,n){return t===`do`?n.ordinalNumber(e.getDate(),{unit:`date`}):vw.d(e,t)},D:function(e,t,n){let r=fw(e);return t===`Do`?n.ordinalNumber(r,{unit:`dayOfYear`}):_w(r,t.length)},E:function(e,t,n){let r=e.getDay();switch(t){case`E`:case`EE`:case`EEE`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`EEEEE`:return n.day(r,{width:`narrow`,context:`formatting`});case`EEEEEE`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},e:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`e`:return String(a);case`ee`:return _w(a,2);case`eo`:return n.ordinalNumber(a,{unit:`day`});case`eee`:return n.day(i,{width:`abbreviated`,context:`formatting`});case`eeeee`:return n.day(i,{width:`narrow`,context:`formatting`});case`eeeeee`:return n.day(i,{width:`short`,context:`formatting`});default:return n.day(i,{width:`wide`,context:`formatting`})}},c:function(e,t,n,r){let i=e.getDay(),a=(i-r.weekStartsOn+8)%7||7;switch(t){case`c`:return String(a);case`cc`:return _w(a,t.length);case`co`:return n.ordinalNumber(a,{unit:`day`});case`ccc`:return n.day(i,{width:`abbreviated`,context:`standalone`});case`ccccc`:return n.day(i,{width:`narrow`,context:`standalone`});case`cccccc`:return n.day(i,{width:`short`,context:`standalone`});default:return n.day(i,{width:`wide`,context:`standalone`})}},i:function(e,t,n){let r=e.getDay(),i=r===0?7:r;switch(t){case`i`:return String(i);case`ii`:return _w(i,t.length);case`io`:return n.ordinalNumber(i,{unit:`day`});case`iii`:return n.day(r,{width:`abbreviated`,context:`formatting`});case`iiiii`:return n.day(r,{width:`narrow`,context:`formatting`});case`iiiiii`:return n.day(r,{width:`short`,context:`formatting`});default:return n.day(r,{width:`wide`,context:`formatting`})}},a:function(e,t,n){let r=e.getHours()/12>=1?`pm`:`am`;switch(t){case`a`:case`aa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`});case`aaa`:return n.dayPeriod(r,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`aaaaa`:return n.dayPeriod(r,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(r,{width:`wide`,context:`formatting`})}},b:function(e,t,n){let r=e.getHours(),i;switch(i=r===12?yw.noon:r===0?yw.midnight:r/12>=1?`pm`:`am`,t){case`b`:case`bb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`bbb`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`}).toLowerCase();case`bbbbb`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},B:function(e,t,n){let r=e.getHours(),i;switch(i=r>=17?yw.evening:r>=12?yw.afternoon:r>=4?yw.morning:yw.night,t){case`B`:case`BB`:case`BBB`:return n.dayPeriod(i,{width:`abbreviated`,context:`formatting`});case`BBBBB`:return n.dayPeriod(i,{width:`narrow`,context:`formatting`});default:return n.dayPeriod(i,{width:`wide`,context:`formatting`})}},h:function(e,t,n){if(t===`ho`){let t=e.getHours()%12;return t===0&&(t=12),n.ordinalNumber(t,{unit:`hour`})}return vw.h(e,t)},H:function(e,t,n){return t===`Ho`?n.ordinalNumber(e.getHours(),{unit:`hour`}):vw.H(e,t)},K:function(e,t,n){let r=e.getHours()%12;return t===`Ko`?n.ordinalNumber(r,{unit:`hour`}):_w(r,t.length)},k:function(e,t,n){let r=e.getHours();return r===0&&(r=24),t===`ko`?n.ordinalNumber(r,{unit:`hour`}):_w(r,t.length)},m:function(e,t,n){return t===`mo`?n.ordinalNumber(e.getMinutes(),{unit:`minute`}):vw.m(e,t)},s:function(e,t,n){return t===`so`?n.ordinalNumber(e.getSeconds(),{unit:`second`}):vw.s(e,t)},S:function(e,t){return vw.S(e,t)},X:function(e,t,n){let r=e.getTimezoneOffset();if(r===0)return`Z`;switch(t){case`X`:return Sw(r);case`XXXX`:case`XX`:return Cw(r);default:return Cw(r,`:`)}},x:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`x`:return Sw(r);case`xxxx`:case`xx`:return Cw(r);default:return Cw(r,`:`)}},O:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`O`:case`OO`:case`OOO`:return`GMT`+xw(r,`:`);default:return`GMT`+Cw(r,`:`)}},z:function(e,t,n){let r=e.getTimezoneOffset();switch(t){case`z`:case`zz`:case`zzz`:return`GMT`+xw(r,`:`);default:return`GMT`+Cw(r,`:`)}},t:function(e,t,n){return _w(Math.trunc(e/1e3),t.length)},T:function(e,t,n){return _w(+e,t.length)}};function xw(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=Math.trunc(r/60),a=r%60;return a===0?n+String(i):n+String(i)+t+_w(a,2)}function Sw(e,t){return e%60==0?(e>0?`-`:`+`)+_w(Math.abs(e)/60,2):Cw(e,t)}function Cw(e,t=``){let n=e>0?`-`:`+`,r=Math.abs(e),i=_w(Math.trunc(r/60),2),a=_w(r%60,2);return n+i+t+a}var ww=(e,t)=>{switch(e){case`P`:return t.date({width:`short`});case`PP`:return t.date({width:`medium`});case`PPP`:return t.date({width:`long`});default:return t.date({width:`full`})}},Tw=(e,t)=>{switch(e){case`p`:return t.time({width:`short`});case`pp`:return t.time({width:`medium`});case`ppp`:return t.time({width:`long`});default:return t.time({width:`full`})}},Ew={p:Tw,P:(e,t)=>{let n=e.match(/(P+)(p+)?/)||[],r=n[1],i=n[2];if(!i)return ww(e,t);let a;switch(r){case`P`:a=t.dateTime({width:`short`});break;case`PP`:a=t.dateTime({width:`medium`});break;case`PPP`:a=t.dateTime({width:`long`});break;default:a=t.dateTime({width:`full`})}return a.replace(`{{date}}`,ww(r,t)).replace(`{{time}}`,Tw(i,t))}},Dw=/^D+$/,Ow=/^Y+$/,kw=[`D`,`DD`,`YY`,`YYYY`];function Aw(e){return Dw.test(e)}function jw(e){return Ow.test(e)}function Mw(e,t,n){let r=Nw(e,t,n);if(console.warn(r),kw.includes(e))throw RangeError(r)}function Nw(e,t,n){let r=e[0]===`Y`?`years`:`days of the month`;return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Pw=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Fw=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Iw=/^'([^]*?)'?$/,Lw=/''/g,Rw=/[a-zA-Z]/;function zw(e,t,n){let r=DC(),i=n?.locale??r.locale??dw,a=n?.firstWeekContainsDate??n?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=n?.weekStartsOn??n?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,s=CC(e,n?.in);if(!HC(s))throw RangeError(`Invalid time value`);let c=t.match(Fw).map(e=>{let t=e[0];if(t===`p`||t===`P`){let n=Ew[t];return n(e,i.formatLong)}return e}).join(``).match(Pw).map(e=>{if(e===`''`)return{isToken:!1,value:`'`};let t=e[0];if(t===`'`)return{isToken:!1,value:Bw(e)};if(bw[t])return{isToken:!0,value:e};if(t.match(Rw))throw RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}});i.localize.preprocessor&&(c=i.localize.preprocessor(s,c));let l={firstWeekContainsDate:a,weekStartsOn:o,locale:i};return c.map(r=>{if(!r.isToken)return r.value;let a=r.value;(!n?.useAdditionalWeekYearTokens&&jw(a)||!n?.useAdditionalDayOfYearTokens&&Aw(a))&&Mw(a,t,String(e));let o=bw[a[0]];return o(s,a,i.localize,l)}).join(``)}function Bw(e){let t=e.match(Iw);return t?t[1].replace(Lw,`'`):e}function Vw(e,t){let n=CC(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=SC(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function Hw(e,t){return CC(e,t?.in).getMonth()}function Uw(e,t){return CC(e,t?.in).getFullYear()}function Ww(e,t){return+CC(e)>+CC(t)}function Gw(e,t){return+CC(e)<+CC(t)}function Kw(e,t,n){let[r,i]=MC(n?.in,e,t);return r.getFullYear()===i.getFullYear()&&r.getMonth()===i.getMonth()}function qw(e,t,n){let[r,i]=MC(n?.in,e,t);return r.getFullYear()===i.getFullYear()}function Jw(e,t,n){let r=CC(e,n?.in),i=r.getFullYear(),a=r.getDate(),o=SC(n?.in||e,0);o.setFullYear(i,t,15),o.setHours(0,0,0,0);let s=Vw(o);return r.setMonth(t,Math.min(a,s)),r}function Yw(e,t,n){let r=CC(e,n?.in);return isNaN(+r)?SC(n?.in||e,NaN):(r.setFullYear(t),r)}var Xw=5,Zw=4;function Qw(e,t){let n=t.startOfMonth(e),r=n.getDay()>0?n.getDay():7,i=t.addDays(e,-r+1),a=t.addDays(i,34);return t.getMonth(e)===t.getMonth(a)?Xw:Zw}function $w(e,t){let n=t.startOfMonth(e),r=n.getDay();return r===1?n:r===0?t.addDays(n,-6):t.addDays(n,-1*(r-1))}function eT(e,t){let n=$w(e,t),r=Qw(e,t);return t.addDays(n,r*7-1)}var tT={...dw,labels:{labelDayButton:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>zw(e,t,{locale:dw,...n});let a=i(e,`PPPP`);return t.today&&(a=`Today, ${a}`),t.selected&&(a=`${a}, selected`),a},labelMonthDropdown:`Choose the Month`,labelNext:`Go to the Next Month`,labelPrevious:`Go to the Previous Month`,labelWeekNumber:e=>`Week ${e}`,labelYearDropdown:`Choose the Year`,labelGrid:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>zw(e,n,{locale:dw,...t}),r(e,`LLLL yyyy`)},labelGridcell:(e,t,n,r)=>{let i;i=r&&typeof r.format==`function`?r.format.bind(r):(e,t)=>zw(e,t,{locale:dw,...n});let a=i(e,`PPPP`);return t?.today&&(a=`Today, ${a}`),a},labelNav:`Navigation bar`,labelWeekNumberHeader:`Week Number`,labelWeekday:(e,t,n)=>{let r;return r=n&&typeof n.format==`function`?n.format.bind(n):(e,n)=>zw(e,n,{locale:dw,...t}),r(e,`cccc`)}}},nT=class e{constructor(e,t){this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?gC.tz(this.options.timeZone):new(this.options.Date??Date),this.newDate=(e,t,n)=>this.overrides?.newDate?this.overrides.newDate(e,t,n):this.options.timeZone?new gC(e,t,n,this.options.timeZone):new Date(e,t,n),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):wC(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):TC(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):IC(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):LC(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):PC(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):UC(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):KC(e),this.eachYearOfInterval=e=>{let t=this.overrides?.eachYearOfInterval?this.overrides.eachYearOfInterval(e):XC(e),n=new Set(t.map(e=>this.getYear(e)));if(n.size===t.length)return t;let r=[];return n.forEach(e=>{r.push(new Date(e,0,1))}),r},this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e):eT(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):QC(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):WC(e),this.endOfWeek=(e,t)=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,t):ZC(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):JC(e),this.format=(e,t,n)=>{let r=this.overrides?.format?this.overrides.format(e,t,this.options):zw(e,t,this.options);return this.options.numerals&&this.options.numerals!==`latn`?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):pw(e),this.getMonth=(e,t)=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):Hw(e,this.options),this.getYear=(e,t)=>this.overrides?.getYear?this.overrides.getYear(e,this.options):Uw(e,this.options),this.getWeek=(e,t)=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):gw(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Ww(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Gw(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):VC(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):BC(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):Kw(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):qw(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):RC(e),this.min=e=>this.overrides?.min?this.overrides.min(e):zC(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):Jw(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):Yw(e,t),this.startOfBroadcastWeek=(e,t)=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):$w(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):NC(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):kC(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):qC(e),this.startOfWeek=(e,t)=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):OC(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):YC(e),this.options={locale:tT,...e},this.overrides=t}getDigitMap(){let{numerals:e=`latn`}=this.options,t=new Intl.NumberFormat(`en-US`,{numberingSystem:e}),n={};for(let e=0;e<10;e++)n[e.toString()]=t.format(e);return n}replaceDigits(e){let t=this.getDigitMap();return e.replace(/\d/g,e=>t[e]||e)}formatNumber(e){return this.replaceDigits(e.toString())}getMonthYearOrder(){let t=this.options.locale?.code;return t&&e.yearFirstLocales.has(t)?`year-first`:`month-first`}formatMonthYear(t){let{locale:n,timeZone:r,numerals:i}=this.options,a=n?.code;if(a&&e.yearFirstLocales.has(a))try{return new Intl.DateTimeFormat(a,{month:`long`,year:`numeric`,timeZone:r,numberingSystem:i}).format(t)}catch{}let o=this.getMonthYearOrder()===`year-first`?`y LLLL`:`LLLL y`;return this.format(t,o)}};nT.yearFirstLocales=new Set([`eu`,`hu`,`ja`,`ja-Hira`,`ja-JP`,`ko`,`ko-KR`,`lt`,`lt-LT`,`lv`,`lv-LV`,`mn`,`mn-MN`,`zh`,`zh-CN`,`zh-HK`,`zh-TW`]);var rT=new nT,iT=class{constructor(e,t,n=rT){this.date=e,this.displayMonth=t,this.outside=!!(t&&!n.isSameMonth(e,t)),this.dateLib=n,this.isoDate=n.format(e,`yyyy-MM-dd`),this.displayMonthId=n.format(t,`yyyy-MM`),this.dateMonthId=n.format(e,`yyyy-MM`)}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}},aT=class{constructor(e,t){this.date=e,this.weeks=t}},oT=class{constructor(e,t){this.days=t,this.weekNumber=e}};function sT(e){return H.createElement(`span`,{...e})}function cT(e){let{size:t=24,orientation:n=`left`,className:r,style:i}=e;return H.createElement(`svg`,{className:r,style:i,width:t,height:t,viewBox:`0 0 24 24`},n===`up`&&H.createElement(`polygon`,{points:`6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28`}),n===`down`&&H.createElement(`polygon`,{points:`6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72`}),n===`left`&&H.createElement(`polygon`,{points:`16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20`}),n===`right`&&H.createElement(`polygon`,{points:`8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20`}))}function lT(e){let{day:t,modifiers:n,...r}=e;return H.createElement(`td`,{...r})}function uT(e){let{day:t,modifiers:n,...r}=e,i=H.useRef(null);return H.useEffect(()=>{n.focused&&i.current?.focus()},[n.focused]),H.createElement(`button`,{ref:i,...r})}var Q;(function(e){e.Root=`root`,e.Chevron=`chevron`,e.Day=`day`,e.DayButton=`day_button`,e.CaptionLabel=`caption_label`,e.Dropdowns=`dropdowns`,e.Dropdown=`dropdown`,e.DropdownRoot=`dropdown_root`,e.Footer=`footer`,e.MonthGrid=`month_grid`,e.MonthCaption=`month_caption`,e.MonthsDropdown=`months_dropdown`,e.Month=`month`,e.Months=`months`,e.Nav=`nav`,e.NextMonthButton=`button_next`,e.PreviousMonthButton=`button_previous`,e.Week=`week`,e.Weeks=`weeks`,e.Weekday=`weekday`,e.Weekdays=`weekdays`,e.WeekNumber=`week_number`,e.WeekNumberHeader=`week_number_header`,e.YearsDropdown=`years_dropdown`})(Q||={});var dT;(function(e){e.disabled=`disabled`,e.hidden=`hidden`,e.outside=`outside`,e.focused=`focused`,e.today=`today`})(dT||={});var fT;(function(e){e.range_end=`range_end`,e.range_middle=`range_middle`,e.range_start=`range_start`,e.selected=`selected`})(fT||={});var pT;(function(e){e.weeks_before_enter=`weeks_before_enter`,e.weeks_before_exit=`weeks_before_exit`,e.weeks_after_enter=`weeks_after_enter`,e.weeks_after_exit=`weeks_after_exit`,e.caption_after_enter=`caption_after_enter`,e.caption_after_exit=`caption_after_exit`,e.caption_before_enter=`caption_before_enter`,e.caption_before_exit=`caption_before_exit`})(pT||={});var mT=(0,H.createContext)(void 0);function hT(){let e=(0,H.useContext)(mT);if(e===void 0)throw Error(`useDayPicker() must be used within a custom component.`);return e}function gT(e){let{options:t,className:n,...r}=e,{classNames:i,components:a,styles:o}=hT(),s=[i[Q.Dropdown],n].join(` `),c=t?.find(({value:e})=>e===r.value);return H.createElement(`span`,{"data-disabled":r.disabled,className:i[Q.DropdownRoot],style:o?.[Q.DropdownRoot]},H.createElement(a.Select,{className:s,...r},t?.map(({value:e,label:t,disabled:n})=>H.createElement(a.Option,{key:e,value:e,disabled:n},t))),H.createElement(`span`,{className:i[Q.CaptionLabel],style:o?.[Q.CaptionLabel],"aria-hidden":!0},c?.label,H.createElement(a.Chevron,{orientation:`down`,size:18,className:i[Q.Chevron],style:o?.[Q.Chevron]})))}function _T(e){return H.createElement(`div`,{...e})}function vT(e){return H.createElement(`div`,{...e})}function yT(e){let{calendarMonth:t,displayIndex:n,...r}=e;return H.createElement(`div`,{...r},e.children)}function bT(e){let{calendarMonth:t,displayIndex:n,...r}=e;return H.createElement(`div`,{...r})}function xT(e){return H.createElement(`table`,{...e})}function ST(e){return H.createElement(`div`,{...e})}function CT(e){let{components:t}=hT();return H.createElement(t.Dropdown,{...e})}function wT(e){let{onPreviousClick:t,onNextClick:n,previousMonth:r,nextMonth:i,...a}=e,{components:o,classNames:s,styles:c,labels:{labelPrevious:l,labelNext:u}}=hT(),d=(0,H.useCallback)(e=>{i&&n?.(e)},[i,n]),f=(0,H.useCallback)(e=>{r&&t?.(e)},[r,t]);return H.createElement(`nav`,{...a},H.createElement(o.PreviousMonthButton,{type:`button`,className:s[Q.PreviousMonthButton],style:c?.[Q.PreviousMonthButton],tabIndex:r?void 0:-1,"aria-disabled":!r||void 0,"aria-label":l(r),onClick:f},H.createElement(o.Chevron,{disabled:!r||void 0,className:s[Q.Chevron],style:c?.[Q.Chevron],orientation:`left`})),H.createElement(o.NextMonthButton,{type:`button`,className:s[Q.NextMonthButton],style:c?.[Q.NextMonthButton],tabIndex:i?void 0:-1,"aria-disabled":!i||void 0,"aria-label":u(i),onClick:d},H.createElement(o.Chevron,{disabled:!i||void 0,orientation:`right`,className:s[Q.Chevron],style:c?.[Q.Chevron]})))}function TT(e){return H.createElement(`button`,{...e})}function ET(e){return H.createElement(`option`,{...e})}function DT(e){return H.createElement(`button`,{...e})}function OT(e){let{rootRef:t,...n}=e;return H.createElement(`div`,{...n,ref:t})}function kT(e){return H.createElement(`select`,{...e})}function AT(e){let{week:t,...n}=e;return H.createElement(`tr`,{...n})}function jT(e){return H.createElement(`th`,{...e})}function MT(e){return H.createElement(`thead`,{"aria-hidden":!0},H.createElement(`tr`,{...e}))}function NT(e){let{week:t,...n}=e;return H.createElement(`th`,{...n})}function PT(e){return H.createElement(`th`,{...e})}function FT(e){return H.createElement(`tbody`,{...e})}function IT(e){let{components:t}=hT();return H.createElement(t.Dropdown,{...e})}var LT=s({CaptionLabel:()=>sT,Chevron:()=>cT,Day:()=>lT,DayButton:()=>uT,Dropdown:()=>gT,DropdownNav:()=>_T,Footer:()=>vT,Month:()=>yT,MonthCaption:()=>bT,MonthGrid:()=>xT,Months:()=>ST,MonthsDropdown:()=>CT,Nav:()=>wT,NextMonthButton:()=>TT,Option:()=>ET,PreviousMonthButton:()=>DT,Root:()=>OT,Select:()=>kT,Week:()=>AT,WeekNumber:()=>NT,WeekNumberHeader:()=>PT,Weekday:()=>jT,Weekdays:()=>MT,Weeks:()=>FT,YearsDropdown:()=>IT});function RT(e,t,n=!1,r=rT){let{from:i,to:a}=e,{differenceInCalendarDays:o,isSameDay:s}=r;return i&&a?(o(a,i)<0&&([i,a]=[a,i]),o(t,i)>=+!!n&&o(a,t)>=+!!n):!n&&a?s(a,t):!n&&i?s(i,t):!1}function zT(e){return!!(e&&typeof e==`object`&&`before`in e&&`after`in e)}function BT(e){return!!(e&&typeof e==`object`&&`from`in e)}function VT(e){return!!(e&&typeof e==`object`&&`after`in e)}function HT(e){return!!(e&&typeof e==`object`&&`before`in e)}function UT(e){return!!(e&&typeof e==`object`&&`dayOfWeek`in e)}function WT(e,t){return Array.isArray(e)&&e.every(t.isDate)}function GT(e,t,n=rT){let r=Array.isArray(t)?t:[t],{isSameDay:i,differenceInCalendarDays:a,isAfter:o}=n;return r.some(t=>{if(typeof t==`boolean`)return t;if(n.isDate(t))return i(e,t);if(WT(t,n))return t.some(t=>i(e,t));if(BT(t))return RT(t,e,!1,n);if(UT(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(zT(t)){let n=a(t.before,e),r=a(t.after,e),i=n>0,s=r<0;return o(t.before,t.after)?s&&i:i||s}return VT(t)?a(e,t.after)>0:HT(t)?a(t.before,e)>0:typeof t==`function`&&t(e)})}function KT(e,t,n,r,i){let{disabled:a,hidden:o,modifiers:s,showOutsideDays:c,broadcastCalendar:l,today:u=i.today()}=t,{isSameDay:d,isSameMonth:f,startOfMonth:p,isBefore:m,endOfMonth:h,isAfter:g}=i,_=n&&p(n),v=r&&h(r),y={[dT.focused]:[],[dT.outside]:[],[dT.disabled]:[],[dT.hidden]:[],[dT.today]:[]},b={};for(let t of e){let{date:e,displayMonth:n}=t,r=!!(n&&!f(e,n)),p=!!(_&&m(e,_)),h=!!(v&&g(e,v)),x=!!(a&&GT(e,a,i)),S=!!(o&&GT(e,o,i))||p||h||!l&&!c&&r||l&&c===!1&&r,C=d(e,u);r&&y.outside.push(t),x&&y.disabled.push(t),S&&y.hidden.push(t),C&&y.today.push(t),s&&Object.keys(s).forEach(n=>{let r=s?.[n];r&&GT(e,r,i)&&(b[n]?b[n].push(t):b[n]=[t])})}return e=>{let t={[dT.focused]:!1,[dT.disabled]:!1,[dT.hidden]:!1,[dT.outside]:!1,[dT.today]:!1},n={};for(let n in y)t[n]=y[n].some(t=>t===e);for(let t in b)n[t]=b[t].some(t=>t===e);return{...t,...n}}}function qT(e,t,n={}){return Object.entries(e).filter(([,e])=>e===!0).reduce((e,[r])=>(n[r]?e.push(n[r]):t[dT[r]]?e.push(t[dT[r]]):t[fT[r]]&&e.push(t[fT[r]]),e),[t[Q.Day]])}function JT(e){return{...LT,...e}}function YT(e){let t={"data-mode":e.mode??void 0,"data-required":`required`in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0,"data-nav-layout":e.navLayout||void 0};return Object.entries(e).forEach(([e,n])=>{e.startsWith(`data-`)&&(t[e]=n)}),t}function XT(){let e={};for(let t in Q)e[Q[t]]=`rdp-${Q[t]}`;for(let t in dT)e[dT[t]]=`rdp-${dT[t]}`;for(let t in fT)e[fT[t]]=`rdp-${fT[t]}`;for(let t in pT)e[pT[t]]=`rdp-${pT[t]}`;return e}function ZT(e,t,n){return(n??new nT(t)).formatMonthYear(e)}function QT(e,t,n){return(n??new nT(t)).format(e,`d`)}function $T(e,t=rT){return t.format(e,`LLLL`)}function eE(e,t,n){return(n??new nT(t)).format(e,`cccccc`)}function tE(e,t=rT){return e<10?t.formatNumber(`0${e.toLocaleString()}`):t.formatNumber(`${e.toLocaleString()}`)}function nE(){return``}function rE(e,t=rT){return t.format(e,`yyyy`)}var iE=s({formatCaption:()=>ZT,formatDay:()=>QT,formatMonthDropdown:()=>$T,formatWeekNumber:()=>tE,formatWeekNumberHeader:()=>nE,formatWeekdayName:()=>eE,formatYearDropdown:()=>rE});function aE(e){return{...iE,...e}}function oE(e,t,n,r){let i=(r??new nT(n)).format(e,`PPPP`);return t.today&&(i=`Today, ${i}`),t.selected&&(i=`${i}, selected`),i}function sE(e,t,n){return(n??new nT(t)).formatMonthYear(e)}function cE(e,t,n,r){let i=(r??new nT(n)).format(e,`PPPP`);return t?.today&&(i=`Today, ${i}`),i}function lE(e){return`Choose the Month`}function uE(){return``}var dE=`Go to the Next Month`;function fE(e,t){return dE}function pE(e){return`Go to the Previous Month`}function mE(e,t,n){return(n??new nT(t)).format(e,`cccc`)}function hE(e,t){return`Week ${e}`}function gE(e){return`Week Number`}function _E(e){return`Choose the Year`}var vE=s({labelDayButton:()=>oE,labelGrid:()=>sE,labelGridcell:()=>cE,labelMonthDropdown:()=>lE,labelNav:()=>uE,labelNext:()=>fE,labelPrevious:()=>pE,labelWeekNumber:()=>hE,labelWeekNumberHeader:()=>gE,labelWeekday:()=>mE,labelYearDropdown:()=>_E}),yE=(e,t,n)=>t||(n?typeof n==`function`?n:(...e)=>n:e);function bE(e,t){let n=t.locale?.labels??{};return{...vE,...e??{},labelDayButton:yE(oE,e?.labelDayButton,n.labelDayButton),labelMonthDropdown:yE(lE,e?.labelMonthDropdown,n.labelMonthDropdown),labelNext:yE(fE,e?.labelNext,n.labelNext),labelPrevious:yE(pE,e?.labelPrevious,n.labelPrevious),labelWeekNumber:yE(hE,e?.labelWeekNumber,n.labelWeekNumber),labelYearDropdown:yE(_E,e?.labelYearDropdown,n.labelYearDropdown),labelGrid:yE(sE,e?.labelGrid,n.labelGrid),labelGridcell:yE(cE,e?.labelGridcell,n.labelGridcell),labelNav:yE(uE,e?.labelNav,n.labelNav),labelWeekNumberHeader:yE(gE,e?.labelWeekNumberHeader,n.labelWeekNumberHeader),labelWeekday:yE(mE,e?.labelWeekday,n.labelWeekday)}}function xE(e,t,n,r,i){let{startOfMonth:a,startOfYear:o,endOfYear:s,eachMonthOfInterval:c,getMonth:l}=i;return c({start:o(e),end:s(e)}).map(e=>{let o=r.formatMonthDropdown(e,i);return{value:l(e),label:o,disabled:t&&e<a(t)||n&&e>a(n)||!1}})}function SE(e,t={},n={}){let r={...t?.[Q.Day]};return Object.entries(e).filter(([,e])=>e===!0).forEach(([e])=>{r={...r,...n?.[e]}}),r}function CE(e,t,n,r){let i=r??e.today(),a=n?e.startOfBroadcastWeek(i,e):t?e.startOfISOWeek(i):e.startOfWeek(i),o=[];for(let t=0;t<7;t++){let n=e.addDays(a,t);o.push(n)}return o}function wE(e,t,n,r,i=!1){if(!e||!t)return;let{startOfYear:a,endOfYear:o,eachYearOfInterval:s,getYear:c}=r,l=s({start:a(e),end:o(t)});return i&&l.reverse(),l.map(e=>{let t=n.formatYearDropdown(e,r);return{value:c(e),label:t,disabled:!1}})}function TE(e,t={}){let{weekStartsOn:n,locale:r}=t,i=n??r?.options?.weekStartsOn??0,a=t=>{let n=typeof t==`number`||typeof t==`string`?new Date(t):t;return new gC(n.getFullYear(),n.getMonth(),n.getDate(),12,0,0,e)},o=e=>{let t=a(e);return new Date(t.getFullYear(),t.getMonth(),t.getDate(),0,0,0,0)};return{today:()=>a(gC.tz(e)),newDate:(t,n,r)=>new gC(t,n,r,12,0,0,e),startOfDay:e=>a(e),startOfWeek:(e,t)=>{let n=a(e),r=t?.weekStartsOn??i,o=(n.getDay()-r+7)%7;return n.setDate(n.getDate()-o),n},startOfISOWeek:e=>{let t=a(e),n=(t.getDay()-1+7)%7;return t.setDate(t.getDate()-n),t},startOfMonth:e=>{let t=a(e);return t.setDate(1),t},startOfYear:e=>{let t=a(e);return t.setMonth(0,1),t},endOfWeek:(e,t)=>{let n=a(e),r=(((t?.weekStartsOn??i)+6)%7-n.getDay()+7)%7;return n.setDate(n.getDate()+r),n},endOfISOWeek:e=>{let t=a(e),n=(7-t.getDay())%7;return t.setDate(t.getDate()+n),t},endOfMonth:e=>{let t=a(e);return t.setMonth(t.getMonth()+1,0),t},endOfYear:e=>{let t=a(e);return t.setMonth(11,31),t},eachMonthOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new gC(n.getFullYear(),n.getMonth(),1,12,0,0,e),s=r.getFullYear()*12+r.getMonth();for(;o.getFullYear()*12+o.getMonth()<=s;)i.push(new gC(o,e)),o.setMonth(o.getMonth()+1,1);return i},addDays:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t),n},addWeeks:(e,t)=>{let n=a(e);return n.setDate(n.getDate()+t*7),n},addMonths:(e,t)=>{let n=a(e);return n.setMonth(n.getMonth()+t),n},addYears:(e,t)=>{let n=a(e);return n.setFullYear(n.getFullYear()+t),n},eachYearOfInterval:t=>{let n=a(t.start),r=a(t.end),i=[],o=new gC(n.getFullYear(),0,1,12,0,0,e);for(;o.getFullYear()<=r.getFullYear();)i.push(new gC(o,e)),o.setFullYear(o.getFullYear()+1,0,1);return i},getWeek:(e,t)=>gw(o(e),{weekStartsOn:t?.weekStartsOn??i,firstWeekContainsDate:t?.firstWeekContainsDate??r?.options?.firstWeekContainsDate??1}),getISOWeek:e=>pw(o(e)),differenceInCalendarDays:(e,t)=>PC(o(e),o(t)),differenceInCalendarMonths:(e,t)=>UC(o(e),o(t))}}var EE=e=>e instanceof HTMLElement?e:null,DE=e=>[...e.querySelectorAll(`[data-animated-month]`)??[]],OE=e=>EE(e.querySelector(`[data-animated-month]`)),kE=e=>EE(e.querySelector(`[data-animated-caption]`)),AE=e=>EE(e.querySelector(`[data-animated-weeks]`)),jE=e=>EE(e.querySelector(`[data-animated-nav]`)),ME=e=>EE(e.querySelector(`[data-animated-weekdays]`));function NE(e,t,{classNames:n,months:r,focused:i,dateLib:a}){let o=(0,H.useRef)(null),s=(0,H.useRef)(r),c=(0,H.useRef)(!1);(0,H.useLayoutEffect)(()=>{let l=s.current;if(s.current=r,!t||!e.current||!(e.current instanceof HTMLElement)||r.length===0||l.length===0||r.length!==l.length)return;let u=a.isSameMonth(r[0].date,l[0].date),d=a.isAfter(r[0].date,l[0].date),f=d?n[pT.caption_after_enter]:n[pT.caption_before_enter],p=d?n[pT.weeks_after_enter]:n[pT.weeks_before_enter],m=o.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(DE(h).forEach(e=>{if(!(e instanceof HTMLElement))return;let t=OE(e);t&&e.contains(t)&&e.removeChild(t);let n=kE(e);n&&n.classList.remove(f);let r=AE(e);r&&r.classList.remove(p)}),o.current=h):o.current=null,c.current||u||i)return;let g=m instanceof HTMLElement?DE(m):[],_=DE(e.current);if(_?.every(e=>e instanceof HTMLElement)&&g?.every(e=>e instanceof HTMLElement)){c.current=!0;let t=[];e.current.style.isolation=`isolate`;let r=jE(e.current);r&&(r.style.zIndex=`1`),_.forEach((i,a)=>{let o=g[a];if(!o)return;i.style.position=`relative`,i.style.overflow=`hidden`;let s=kE(i);s&&s.classList.add(f);let l=AE(i);l&&l.classList.add(p);let u=()=>{c.current=!1,e.current&&(e.current.style.isolation=``),r&&(r.style.zIndex=``),s&&s.classList.remove(f),l&&l.classList.remove(p),i.style.position=``,i.style.overflow=``,i.contains(o)&&i.removeChild(o)};t.push(u),o.style.pointerEvents=`none`,o.style.position=`absolute`,o.style.overflow=`hidden`,o.setAttribute(`aria-hidden`,`true`);let m=ME(o);m&&(m.style.opacity=`0`);let h=kE(o);h&&(h.classList.add(d?n[pT.caption_before_exit]:n[pT.caption_after_exit]),h.addEventListener(`animationend`,u));let _=AE(o);_&&_.classList.add(d?n[pT.weeks_before_exit]:n[pT.weeks_after_exit]),i.insertBefore(o,i.firstChild)})}})}function PE(e,t,n,r){let i=e[0],a=e[e.length-1],{ISOWeek:o,fixedWeeks:s,broadcastCalendar:c}=n??{},{addDays:l,differenceInCalendarDays:u,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:p,endOfMonth:m,endOfWeek:h,isAfter:g,startOfBroadcastWeek:_,startOfISOWeek:v,startOfWeek:y}=r,b=c?_(i,r):o?v(i):y(i),x=c?f(a):o?p(m(a)):h(m(a)),S=t&&(c?f(t):o?p(t):h(t)),C=u(S&&g(x,S)?S:x,b),w=d(a,i)+1,T=[];for(let e=0;e<=C;e++){let t=l(b,e);T.push(t)}let E=(c?35:42)*w;if(s&&T.length<E){let e=E-T.length;for(let t=0;t<e;t++){let e=l(T[T.length-1],1);T.push(e)}}return T}function FE(e){let t=[];return e.reduce((e,n)=>{let r=n.weeks.reduce((e,t)=>e.concat(t.days.slice()),t.slice());return e.concat(r.slice())},t.slice())}function IE(e,t,n,r){let{numberOfMonths:i=1}=n,a=[];for(let n=0;n<i;n++){let i=r.addMonths(e,n);if(t&&i>t)break;a.push(i)}return a}function LE(e,t,n,r){let{month:i,defaultMonth:a,today:o=r.today(),numberOfMonths:s=1}=e,c=i||a||o,{differenceInCalendarMonths:l,addMonths:u,startOfMonth:d}=r;return n&&l(n,c)<s-1&&(c=u(n,-1*(s-1))),t&&l(c,t)<0&&(c=t),d(c)}function RE(e,t,n,r){let{addDays:i,endOfBroadcastWeek:a,endOfISOWeek:o,endOfMonth:s,endOfWeek:c,getISOWeek:l,getWeek:u,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:p}=r,m=e.reduce((e,m)=>{let h=n.broadcastCalendar?d(m,r):n.ISOWeek?f(m):p(m),g=n.broadcastCalendar?a(m):n.ISOWeek?o(s(m)):c(s(m)),_=t.filter(e=>e>=h&&e<=g),v=n.broadcastCalendar?35:42;if(n.fixedWeeks&&_.length<v){let e=t.filter(e=>{let t=v-_.length;return e>g&&e<=i(g,t)});_.push(...e)}let y=new aT(m,_.reduce((e,t)=>{let i=n.ISOWeek?l(t):u(t),a=e.find(e=>e.weekNumber===i),o=new iT(t,m,r);return a?a.days.push(o):e.push(new oT(i,[o])),e},[]));return e.push(y),e},[]);return n.reverseMonths?m.reverse():m}function zE(e,t){let{startMonth:n,endMonth:r}=e,{startOfYear:i,startOfDay:a,startOfMonth:o,endOfMonth:s,addYears:c,endOfYear:l,today:u}=t,d=e.captionLayout===`dropdown`||e.captionLayout===`dropdown-years`;return n?n=o(n):!n&&d&&(n=i(c(e.today??u(),-100))),r?r=s(r):!r&&d&&(r=l(e.today??u())),[n&&a(n),r&&a(r)]}function BE(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a=1}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a:1,u=o(e);if(!t||!(c(t,e)<a))return s(u,l)}function VE(e,t,n,r){if(n.disableNavigation)return;let{pagedNavigation:i,numberOfMonths:a}=n,{startOfMonth:o,addMonths:s,differenceInCalendarMonths:c}=r,l=i?a??1:1,u=o(e);if(!t||!(c(u,t)<=0))return s(u,-l)}function HE(e){return e.reduce((e,t)=>e.concat(t.weeks.slice()),[].slice())}function UE(e,t){let[n,r]=(0,H.useState)(e);return[t===void 0?n:t,r]}function WE(e,t){let[n,r]=zE(e,t),{startOfMonth:i,endOfMonth:a}=t,o=LE(e,n,r,t),[s,c]=UE(o,e.month?o:void 0);(0,H.useEffect)(()=>{let i=LE(e,n,r,t);c(i)},[e.timeZone]);let{months:l,weeks:u,days:d,previousMonth:f,nextMonth:p}=(0,H.useMemo)(()=>{let i=IE(s,r,{numberOfMonths:e.numberOfMonths},t),o=RE(i,PE(i,e.endMonth?a(e.endMonth):void 0,{ISOWeek:e.ISOWeek,fixedWeeks:e.fixedWeeks,broadcastCalendar:e.broadcastCalendar},t),{broadcastCalendar:e.broadcastCalendar,fixedWeeks:e.fixedWeeks,ISOWeek:e.ISOWeek,reverseMonths:e.reverseMonths},t);return{months:o,weeks:HE(o),days:FE(o),previousMonth:VE(s,n,e,t),nextMonth:BE(s,r,e,t)}},[t,s.getTime(),r?.getTime(),n?.getTime(),e.disableNavigation,e.broadcastCalendar,e.endMonth?.getTime(),e.fixedWeeks,e.ISOWeek,e.numberOfMonths,e.pagedNavigation,e.reverseMonths]),{disableNavigation:m,onMonthChange:h}=e,g=e=>u.some(t=>t.days.some(t=>t.isEqualTo(e))),_=e=>{if(m)return;let t=i(e);n&&t<i(n)&&(t=i(n)),r&&t>i(r)&&(t=i(r)),c(t),h?.(t)};return{months:l,weeks:u,days:d,navStart:n,navEnd:r,previousMonth:f,nextMonth:p,goToMonth:_,goToDay:e=>{g(e)||_(e.date)}}}var GE;(function(e){e[e.Today=0]=`Today`,e[e.Selected=1]=`Selected`,e[e.LastFocused=2]=`LastFocused`,e[e.FocusedModifier=3]=`FocusedModifier`})(GE||={});function KE(e){return!e[dT.disabled]&&!e[dT.hidden]&&!e[dT.outside]}function qE(e,t,n,r){let i,a=-1;for(let o of e){let e=t(o);KE(e)&&(e[dT.focused]&&a<GE.FocusedModifier?(i=o,a=GE.FocusedModifier):r?.isEqualTo(o)&&a<GE.LastFocused?(i=o,a=GE.LastFocused):n(o.date)&&a<GE.Selected?(i=o,a=GE.Selected):e[dT.today]&&a<GE.Today&&(i=o,a=GE.Today))}return i||=e.find(e=>KE(t(e))),i}function JE(e,t,n,r,i,a,o){let{ISOWeek:s,broadcastCalendar:c}=a,{addDays:l,addMonths:u,addWeeks:d,addYears:f,endOfBroadcastWeek:p,endOfISOWeek:m,endOfWeek:h,max:g,min:_,startOfBroadcastWeek:v,startOfISOWeek:y,startOfWeek:b}=o,x={day:l,week:d,month:u,year:f,startOfWeek:e=>c?v(e,o):s?y(e):b(e),endOfWeek:e=>c?p(e):s?m(e):h(e)}[e](n,t===`after`?1:-1);return t===`before`&&r?x=g([r,x]):t===`after`&&i&&(x=_([i,x])),x}function YE(e,t,n,r,i,a,o,s=0){if(s>365)return;let c=JE(e,t,n.date,r,i,a,o),l=!!(a.disabled&&GT(c,a.disabled,o)),u=!!(a.hidden&&GT(c,a.hidden,o)),d=new iT(c,c,o);return!l&&!u?d:YE(e,t,d,r,i,a,o,s+1)}function XE(e,t,n,r,i){let{autoFocus:a}=e,[o,s]=(0,H.useState)(),c=qE(t.days,n,r||(()=>!1),o),[l,u]=(0,H.useState)(a?c:void 0);return{isFocusTarget:e=>!!c?.isEqualTo(e),setFocused:u,focused:l,blur:()=>{s(l),u(void 0)},moveFocus:(n,r)=>{if(!l)return;let a=YE(n,r,l,t.navStart,t.navEnd,e,i);a&&(e.disableNavigation&&!t.days.some(e=>e.isEqualTo(a))||(t.goToDay(a),u(a)))}}}function ZE(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=UE(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t,l=e=>s?.some(t=>c(t,e))??!1,{min:u,max:d}=e;return{selected:s,select:(e,t,n)=>{let a=[...s??[]];if(l(e)){if(s?.length===u||r&&s?.length===1)return;a=s?.filter(t=>!c(t,e))}else a=s?.length===d?[e]:[...a,e];return i||o(a),i?.(a,e,t,n),a},isSelected:l}}function QE(e,t,n=0,r=0,i=!1,a=rT){let{from:o,to:s}=t||{},{isSameDay:c,isAfter:l,isBefore:u}=a,d;if(!o&&!s)d={from:e,to:n>0?void 0:e};else if(o&&!s)d=c(o,e)?n===0?{from:o,to:e}:i?{from:o,to:void 0}:void 0:u(e,o)?{from:e,to:o}:{from:o,to:e};else if(o&&s){if(c(o,e)&&c(s,e))d=i?{from:o,to:s}:void 0;else if(c(o,e))d={from:o,to:n>0?void 0:e};else if(c(s,e))d={from:e,to:n>0?void 0:e};else if(u(e,o))d={from:e,to:s};else if(l(e,o))d={from:o,to:e};else if(l(e,s))d={from:o,to:e};else throw Error(`Invalid range`)}if(d?.from&&d?.to){let t=a.differenceInCalendarDays(d.to,d.from);(r>0&&t>r||n>1&&t<n)&&(d={from:e,to:void 0})}return d}function $E(e,t,n=rT){let r=Array.isArray(t)?t:[t],i=e.from,a=n.differenceInCalendarDays(e.to,e.from),o=Math.min(a,6);for(let e=0;e<=o;e++){if(r.includes(i.getDay()))return!0;i=n.addDays(i,1)}return!1}function eD(e,t,n=rT){return RT(e,t.from,!1,n)||RT(e,t.to,!1,n)||RT(t,e.from,!1,n)||RT(t,e.to,!1,n)}function tD(e,t,n=rT){let r=Array.isArray(t)?t:[t];if(r.filter(e=>typeof e!=`function`).some(t=>typeof t==`boolean`?t:n.isDate(t)?RT(e,t,!1,n):WT(t,n)?t.some(t=>RT(e,t,!1,n)):BT(t)?t.from&&t.to?eD(e,{from:t.from,to:t.to},n):!1:UT(t)?$E(e,t.dayOfWeek,n):zT(t)?n.isAfter(t.before,t.after)?eD(e,{from:n.addDays(t.after,1),to:n.addDays(t.before,-1)},n):GT(e.from,t,n)||GT(e.to,t,n):VT(t)||HT(t)?GT(e.from,t,n)||GT(e.to,t,n):!1))return!0;let i=r.filter(e=>typeof e==`function`);if(i.length){let t=e.from,r=n.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=r;e++){if(i.some(e=>e(t)))return!0;t=n.addDays(t,1)}}return!1}function nD(e,t){let{disabled:n,excludeDisabled:r,resetOnSelect:i,selected:a,required:o,onSelect:s}=e,[c,l]=UE(a,s?a:void 0),u=s?a:c;return{selected:u,select:(a,c,d)=>{let{min:f,max:p}=e,m;if(a){let e=u?.from,n=u?.to,r=!!e&&!!n,s=!!e&&!!n&&t.isSameDay(e,n)&&t.isSameDay(a,e);m=i&&(r||!u?.from)?!o&&s?void 0:{from:a,to:void 0}:QE(a,u,f,p,o,t)}return r&&n&&m?.from&&m.to&&tD({from:m.from,to:m.to},n,t)&&(m.from=a,m.to=void 0),s||l(m),s?.(m,a,c,d),m},isSelected:e=>u&&RT(u,e,!1,t)}}function rD(e,t){let{selected:n,required:r,onSelect:i}=e,[a,o]=UE(n,i?n:void 0),s=i?n:a,{isSameDay:c}=t;return{selected:s,select:(e,t,n)=>{let a=e;return!r&&s&&s&&c(e,s)&&(a=void 0),i||o(a),i?.(a,e,t,n),a},isSelected:e=>s?c(s,e):!1}}function iD(e,t){let n=rD(e,t),r=ZE(e,t),i=nD(e,t);switch(e.mode){case`single`:return n;case`multiple`:return r;case`range`:return i;default:return}}function aD(e,t){return e instanceof gC&&e.timeZone===t?e:new gC(e,t)}function oD(e,t,n){if(!n)return aD(e,t);let r=aD(e,t),i=new gC(r.getFullYear(),r.getMonth(),r.getDate(),12,0,0,t);return new Date(i.getTime())}function sD(e,t,n){return typeof e==`boolean`||typeof e==`function`?e:e instanceof Date?oD(e,t,n):Array.isArray(e)?e.map(e=>e instanceof Date?oD(e,t,n):e):BT(e)?{...e,from:e.from?aD(e.from,t):e.from,to:e.to?aD(e.to,t):e.to}:zT(e)?{before:oD(e.before,t,n),after:oD(e.after,t,n)}:VT(e)?{after:oD(e.after,t,n)}:HT(e)?{before:oD(e.before,t,n)}:e}function cD(e,t,n){return e&&(Array.isArray(e)?e.map(e=>sD(e,t,n)):sD(e,t,n))}function lD(e){let t=e,n=t.timeZone;if(n&&(t={...e,timeZone:n},t.today&&(t.today=aD(t.today,n)),t.month&&(t.month=aD(t.month,n)),t.defaultMonth&&(t.defaultMonth=aD(t.defaultMonth,n)),t.startMonth&&(t.startMonth=aD(t.startMonth,n)),t.endMonth&&(t.endMonth=aD(t.endMonth,n)),t.mode===`single`&&t.selected?t.selected=aD(t.selected,n):t.mode===`multiple`&&t.selected?t.selected=t.selected?.map(e=>aD(e,n)):t.mode===`range`&&t.selected&&(t.selected={from:t.selected.from?aD(t.selected.from,n):t.selected.from,to:t.selected.to?aD(t.selected.to,n):t.selected.to}),t.disabled!==void 0&&(t.disabled=cD(t.disabled,n)),t.hidden!==void 0&&(t.hidden=cD(t.hidden,n)),t.modifiers)){let e={};Object.keys(t.modifiers).forEach(r=>{e[r]=cD(t.modifiers?.[r],n)}),t.modifiers=e}let{components:r,formatters:i,labels:a,dateLib:o,locale:s,classNames:c}=(0,H.useMemo)(()=>{let e={...tT,...t.locale},n=t.broadcastCalendar?1:t.weekStartsOn,r=t.noonSafe&&t.timeZone?TE(t.timeZone,{weekStartsOn:n,locale:e}):void 0,i=t.dateLib&&r?{...r,...t.dateLib}:t.dateLib??r,a=new nT({locale:e,weekStartsOn:n,firstWeekContainsDate:t.firstWeekContainsDate,useAdditionalWeekYearTokens:t.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:t.useAdditionalDayOfYearTokens,timeZone:t.timeZone,numerals:t.numerals},i);return{dateLib:a,components:JT(t.components),formatters:aE(t.formatters),labels:bE(t.labels,a.options),locale:e,classNames:{...XT(),...t.classNames}}},[t.locale,t.broadcastCalendar,t.weekStartsOn,t.firstWeekContainsDate,t.useAdditionalWeekYearTokens,t.useAdditionalDayOfYearTokens,t.timeZone,t.numerals,t.dateLib,t.noonSafe,t.components,t.formatters,t.labels,t.classNames]);t.today||(t={...t,today:o.today()});let{captionLayout:l,mode:u,navLayout:d,numberOfMonths:f=1,onDayBlur:p,onDayClick:m,onDayFocus:h,onDayKeyDown:g,onDayMouseEnter:_,onDayMouseLeave:v,onNextClick:y,onPrevClick:b,showWeekNumber:x,styles:S}=t,{formatCaption:C,formatDay:w,formatMonthDropdown:T,formatWeekNumber:E,formatWeekNumberHeader:D,formatWeekdayName:O,formatYearDropdown:k}=i,A=WE(t,o),{days:j,months:M,navStart:N,navEnd:P,previousMonth:F,nextMonth:I,goToMonth:L}=A,R=KT(j,t,N,P,o),{isSelected:ee,select:te,selected:z}=iD(t,o)??{},{blur:B,focused:V,isFocusTarget:ne,moveFocus:re,setFocused:ie}=XE(t,A,R,ee??(()=>!1),o),{labelDayButton:ae,labelGridcell:oe,labelGrid:se,labelMonthDropdown:ce,labelNav:le,labelPrevious:ue,labelNext:de,labelWeekday:fe,labelWeekNumber:pe,labelWeekNumberHeader:me,labelYearDropdown:he}=a,ge=(0,H.useMemo)(()=>CE(o,t.ISOWeek,t.broadcastCalendar,t.today),[o,t.ISOWeek,t.broadcastCalendar,t.today]),_e=u!==void 0||m!==void 0,ve=(0,H.useCallback)(()=>{F&&(L(F),b?.(F))},[F,L,b]),ye=(0,H.useCallback)(()=>{I&&(L(I),y?.(I))},[L,I,y]),be=(0,H.useCallback)((e,t)=>n=>{n.preventDefault(),n.stopPropagation(),ie(e),!t.disabled&&(te?.(e.date,t,n),m?.(e.date,t,n))},[te,m,ie]),xe=(0,H.useCallback)((e,t)=>n=>{ie(e),h?.(e.date,t,n)},[h,ie]),Se=(0,H.useCallback)((e,t)=>n=>{B(),p?.(e.date,t,n)},[B,p]),Ce=(0,H.useCallback)((e,n)=>r=>{let i={ArrowLeft:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`after`:`before`],ArrowRight:[r.shiftKey?`month`:`day`,t.dir===`rtl`?`before`:`after`],ArrowDown:[r.shiftKey?`year`:`week`,`after`],ArrowUp:[r.shiftKey?`year`:`week`,`before`],PageUp:[r.shiftKey?`year`:`month`,`before`],PageDown:[r.shiftKey?`year`:`month`,`after`],Home:[`startOfWeek`,`before`],End:[`endOfWeek`,`after`]};if(i[r.key]){r.preventDefault(),r.stopPropagation();let[e,t]=i[r.key];re(e,t)}g?.(e.date,n,r)},[re,g,t.dir]),we=(0,H.useCallback)((e,t)=>n=>{_?.(e.date,t,n)},[_]),Te=(0,H.useCallback)((e,t)=>n=>{v?.(e.date,t,n)},[v]),Ee=(0,H.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setMonth(o.startOfMonth(e),r);L(o.addMonths(i,-t))},[o,L]),De=(0,H.useCallback)((e,t)=>n=>{let r=Number(n.target.value),i=o.setYear(o.startOfMonth(e),r);L(o.addMonths(i,-t))},[o,L]),{className:Oe,style:ke}=(0,H.useMemo)(()=>({className:[c[Q.Root],t.className].filter(Boolean).join(` `),style:{...S?.[Q.Root],...t.style}}),[c,t.className,t.style,S]),Ae=YT(t),je=e=>{let t=S?.[Q.Dropdown],n=S?.[e];if(!(!t&&!n))return{...t,...n}},Me=(0,H.useRef)(null);NE(Me,!!t.animate,{classNames:c,months:M,focused:V,dateLib:o});let Ne={dayPickerProps:t,selected:z,select:te,isSelected:ee,months:M,nextMonth:I,previousMonth:F,goToMonth:L,getModifiers:R,components:r,classNames:c,styles:S,labels:a,formatters:i};return H.createElement(mT.Provider,{value:Ne},H.createElement(r.Root,{rootRef:t.animate?Me:void 0,className:Oe,style:ke,dir:t.dir,id:t.id,lang:t.lang??s.code,nonce:t.nonce,title:t.title,role:t.role,"aria-label":t[`aria-label`],"aria-labelledby":t[`aria-labelledby`],...Ae},H.createElement(r.Months,{className:c[Q.Months],style:S?.[Q.Months]},!t.hideNavigation&&!d&&H.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:S?.[Q.Nav],"aria-label":le(),onPreviousClick:ve,onNextClick:ye,previousMonth:F,nextMonth:I}),M.map((e,n)=>{let a=t.reverseMonths?M.length-1-n:n;return H.createElement(r.Month,{"data-animated-month":t.animate?`true`:void 0,className:c[Q.Month],style:S?.[Q.Month],key:n,displayIndex:n,calendarMonth:e},d===`around`&&!t.hideNavigation&&n===0&&H.createElement(r.PreviousMonthButton,{type:`button`,className:c[Q.PreviousMonthButton],style:S?.[Q.PreviousMonthButton],tabIndex:F?void 0:-1,"aria-disabled":!F||void 0,"aria-label":ue(F),onClick:ve,"data-animated-button":t.animate?`true`:void 0},H.createElement(r.Chevron,{disabled:!F||void 0,className:c[Q.Chevron],style:S?.[Q.Chevron],orientation:t.dir===`rtl`?`right`:`left`})),H.createElement(r.MonthCaption,{"data-animated-caption":t.animate?`true`:void 0,className:c[Q.MonthCaption],style:S?.[Q.MonthCaption],calendarMonth:e,displayIndex:n},l?.startsWith(`dropdown`)?H.createElement(r.DropdownNav,{className:c[Q.Dropdowns],style:S?.[Q.Dropdowns]},(()=>{let n=l===`dropdown`||l===`dropdown-months`?H.createElement(r.MonthsDropdown,{key:`month`,className:c[Q.MonthsDropdown],"aria-label":ce(),disabled:!!t.disableNavigation,onChange:Ee(e.date,a),options:xE(e.date,N,P,i,o),style:je(Q.MonthsDropdown),value:o.getMonth(e.date)}):H.createElement(`span`,{key:`month`},T(e.date,o)),s=l===`dropdown`||l===`dropdown-years`?H.createElement(r.YearsDropdown,{key:`year`,className:c[Q.YearsDropdown],"aria-label":he(o.options),disabled:!!t.disableNavigation,onChange:De(e.date,a),options:wE(N,P,i,o,!!t.reverseYears),style:je(Q.YearsDropdown),value:o.getYear(e.date)}):H.createElement(`span`,{key:`year`},k(e.date,o));return o.getMonthYearOrder()===`year-first`?[s,n]:[n,s]})(),H.createElement(`span`,{role:`status`,"aria-live":`polite`,style:{border:0,clip:`rect(0 0 0 0)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,width:`1px`,whiteSpace:`nowrap`,wordWrap:`normal`}},C(e.date,o.options,o))):H.createElement(r.CaptionLabel,{className:c[Q.CaptionLabel],style:S?.[Q.CaptionLabel],role:`status`,"aria-live":`polite`},C(e.date,o.options,o))),d===`around`&&!t.hideNavigation&&n===f-1&&H.createElement(r.NextMonthButton,{type:`button`,className:c[Q.NextMonthButton],style:S?.[Q.NextMonthButton],tabIndex:I?void 0:-1,"aria-disabled":!I||void 0,"aria-label":de(I),onClick:ye,"data-animated-button":t.animate?`true`:void 0},H.createElement(r.Chevron,{disabled:!I||void 0,className:c[Q.Chevron],style:S?.[Q.Chevron],orientation:t.dir===`rtl`?`left`:`right`})),n===f-1&&d===`after`&&!t.hideNavigation&&H.createElement(r.Nav,{"data-animated-nav":t.animate?`true`:void 0,className:c[Q.Nav],style:S?.[Q.Nav],"aria-label":le(),onPreviousClick:ve,onNextClick:ye,previousMonth:F,nextMonth:I}),H.createElement(r.MonthGrid,{role:`grid`,"aria-multiselectable":u===`multiple`||u===`range`,"aria-label":se(e.date,o.options,o)||void 0,className:c[Q.MonthGrid],style:S?.[Q.MonthGrid]},!t.hideWeekdays&&H.createElement(r.Weekdays,{"data-animated-weekdays":t.animate?`true`:void 0,className:c[Q.Weekdays],style:S?.[Q.Weekdays]},x&&H.createElement(r.WeekNumberHeader,{"aria-label":me(o.options),className:c[Q.WeekNumberHeader],style:S?.[Q.WeekNumberHeader],scope:`col`},D()),ge.map(e=>H.createElement(r.Weekday,{"aria-label":fe(e,o.options,o),className:c[Q.Weekday],key:String(e),style:S?.[Q.Weekday],scope:`col`},O(e,o.options,o)))),H.createElement(r.Weeks,{"data-animated-weeks":t.animate?`true`:void 0,className:c[Q.Weeks],style:S?.[Q.Weeks]},e.weeks.map(e=>H.createElement(r.Week,{className:c[Q.Week],key:e.weekNumber,style:S?.[Q.Week],week:e},x&&H.createElement(r.WeekNumber,{week:e,style:S?.[Q.WeekNumber],"aria-label":pe(e.weekNumber,{locale:s}),className:c[Q.WeekNumber],scope:`row`,role:`rowheader`},E(e.weekNumber,o)),e.days.map(e=>{let{date:n}=e,i=R(e);if(i[dT.focused]=!i.hidden&&!!V?.isEqualTo(e),i[fT.selected]=ee?.(n)||i.selected,BT(z)){let{from:e,to:t}=z;i[fT.range_start]=!!(e&&t&&o.isSameDay(n,e)),i[fT.range_end]=!!(e&&t&&o.isSameDay(n,t)),i[fT.range_middle]=RT(z,n,!0,o)}let a=SE(i,S,t.modifiersStyles),s=qT(i,c,t.modifiersClassNames),l=!_e&&!i.hidden?oe(n,i,o.options,o):void 0;return H.createElement(r.Day,{key:`${e.isoDate}_${e.displayMonthId}`,day:e,modifiers:i,className:s.join(` `),style:a,role:`gridcell`,"aria-selected":i.selected||void 0,"aria-label":l,"data-day":e.isoDate,"data-month":e.outside?e.dateMonthId:void 0,"data-selected":i.selected||void 0,"data-disabled":i.disabled||void 0,"data-hidden":i.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":i.focused||void 0,"data-today":i.today||void 0},!i.hidden&&_e?H.createElement(r.DayButton,{className:c[Q.DayButton],style:S?.[Q.DayButton],type:`button`,day:e,modifiers:i,disabled:!i.focused&&i.disabled||void 0,"aria-disabled":i.focused&&i.disabled||void 0,tabIndex:ne(e)?0:-1,"aria-label":ae(n,i,o.options,o),onClick:be(e,i),onBlur:Se(e,i),onFocus:xe(e,i),onKeyDown:Ce(e,i),onMouseEnter:we(e,i),onMouseLeave:Te(e,i)},w(n,o.options,o)):!i.hidden&&w(e.date,o.options,o))}))))))})),t.footer&&H.createElement(r.Footer,{className:c[Q.Footer],style:S?.[Q.Footer],role:`status`,"aria-live":`polite`},t.footer)))}function uD({className:e,classNames:t,showOutsideDays:n=!0,captionLayout:r=`label`,buttonVariant:i=`ghost`,locale:a,formatters:o,components:s,...c}){let l=XT();return(0,U.jsx)(lD,{showOutsideDays:n,className:J(`group/calendar bg-background p-2 [--cell-radius:var(--radius-md)] [--cell-size:--spacing(7)] in-data-[slot=card-content]:bg-transparent in-data-[slot=popover-content]:bg-transparent`,String.raw`rtl:**:[.rdp-button\_next>svg]:rotate-180`,String.raw`rtl:**:[.rdp-button\_previous>svg]:rotate-180`,e),captionLayout:r,locale:a,formatters:{formatMonthDropdown:e=>e.toLocaleString(a?.code,{month:`short`}),...o},classNames:{root:J(`w-fit`,l.root),months:J(`relative flex flex-col gap-4 md:flex-row`,l.months),month:J(`flex w-full flex-col gap-4`,l.month),nav:J(`absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1`,l.nav),button_previous:J(uv({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,l.button_previous),button_next:J(uv({variant:i}),`size-(--cell-size) p-0 select-none aria-disabled:opacity-50`,l.button_next),month_caption:J(`flex h-(--cell-size) w-full items-center justify-center px-(--cell-size)`,l.month_caption),dropdowns:J(`flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium`,l.dropdowns),dropdown_root:J(`relative rounded-(--cell-radius)`,l.dropdown_root),dropdown:J(`absolute inset-0 bg-popover opacity-0`,l.dropdown),caption_label:J(`font-medium select-none`,r===`label`?`text-sm`:`flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground`,l.caption_label),month_grid:J(`w-full border-collapse`,l.month_grid),weekdays:J(`flex`,l.weekdays),weekday:J(`flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none`,l.weekday),week:J(`mt-2 flex w-full`,l.week),week_number_header:J(`w-(--cell-size) select-none`,l.week_number_header),week_number:J(`text-[0.8rem] text-muted-foreground select-none`,l.week_number),day:J(`group/day relative aspect-square h-full w-full rounded-(--cell-radius) p-0 text-center select-none [&:last-child[data-selected=true]_button]:rounded-e-(--cell-radius)`,c.showWeekNumber?`[&:nth-child(2)[data-selected=true]_button]:rounded-s-(--cell-radius)`:`[&:first-child[data-selected=true]_button]:rounded-s-(--cell-radius)`,l.day),range_start:J(`relative isolate z-0 rounded-s-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:end-0 after:w-4 after:bg-muted`,l.range_start),range_middle:J(`rounded-none`,l.range_middle),range_end:J(`relative isolate z-0 rounded-e-(--cell-radius) bg-muted after:absolute after:inset-y-0 after:start-0 after:w-4 after:bg-muted`,l.range_end),today:J(`rounded-(--cell-radius) bg-muted text-foreground data-[selected=true]:rounded-none`,l.today),outside:J(`text-muted-foreground aria-selected:text-muted-foreground`,l.outside),disabled:J(`text-muted-foreground opacity-50`,l.disabled),hidden:J(`invisible`,l.hidden),...t},components:{Root:({className:e,rootRef:t,...n})=>(0,U.jsx)(`div`,{"data-slot":`calendar`,ref:t,className:J(e),...n}),Chevron:({className:e,orientation:t,...n})=>t===`left`?(0,U.jsx)(jt,{className:J(`rtl:rotate-180 size-4`,e),...n}):t===`right`?(0,U.jsx)(At,{className:J(`rtl:rotate-180 size-4`,e),...n}):(0,U.jsx)(kt,{className:J(`size-4`,e),...n}),DayButton:({...e})=>(0,U.jsx)(dD,{locale:a,...e}),WeekNumber:({children:e,...t})=>(0,U.jsx)(`td`,{...t,children:(0,U.jsx)(`div`,{className:`flex size-(--cell-size) items-center justify-center text-center`,children:e})}),...s},...c})}function dD({className:e,day:t,modifiers:n,locale:r,...i}){let a=XT(),o=H.useRef(null);return H.useEffect(()=>{n.focused&&o.current?.focus()},[n.focused]),(0,U.jsx)(Y,{ref:o,variant:`ghost`,size:`icon`,"data-day":t.date.toLocaleDateString(r?.code),"data-selected-single":n.selected&&!n.range_start&&!n.range_end&&!n.range_middle,"data-range-start":n.range_start,"data-range-end":n.range_end,"data-range-middle":n.range_middle,className:J(`relative isolate z-10 flex aspect-square size-auto w-full min-w-(--cell-size) flex-col gap-1 border-0 leading-none font-normal group-data-[focused=true]/day:relative group-data-[focused=true]/day:z-10 group-data-[focused=true]/day:border-ring group-data-[focused=true]/day:ring-[3px] group-data-[focused=true]/day:ring-ring/50 data-[range-end=true]:rounded-(--cell-radius) data-[range-end=true]:rounded-e-(--cell-radius) data-[range-end=true]:bg-primary data-[range-end=true]:text-primary-foreground data-[range-middle=true]:rounded-none data-[range-middle=true]:bg-muted data-[range-middle=true]:text-foreground data-[range-start=true]:rounded-(--cell-radius) data-[range-start=true]:rounded-s-(--cell-radius) data-[range-start=true]:bg-primary data-[range-start=true]:text-primary-foreground data-[selected-single=true]:bg-primary data-[selected-single=true]:text-primary-foreground dark:hover:text-foreground [&>span]:text-xs [&>span]:opacity-70`,a.day,e),...i})}function fD({...e}){return(0,U.jsx)(fm,{"data-slot":`popover`,...e})}function pD({...e}){return(0,U.jsx)(pm,{"data-slot":`popover-trigger`,...e})}function mD({className:e,align:t=`center`,sideOffset:n=4,...r}){return(0,U.jsx)(mm,{children:(0,U.jsx)(hm,{"data-slot":`popover-content`,align:t,sideOffset:n,className:J(`z-50 flex w-72 origin-(--radix-popover-content-transform-origin) flex-col gap-2.5 rounded-lg bg-popover p-2.5 text-sm text-popover-foreground shadow-md ring-1 ring-foreground/10 outline-hidden duration-100 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-open:animate-in data-open:fade-in-0 data-open:zoom-in-95 data-closed:animate-out data-closed:fade-out-0 data-closed:zoom-out-95`,e),...r})})}function hD({className:e,...t}){return(0,U.jsx)(`textarea`,{"data-slot":`textarea`,className:J(`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/70 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 gD({className:e,...t}){return(0,U.jsx)(Lp,{"data-slot":`label`,className:J(`flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50`,e),...t})}async function _D(e){let t=e.language??`en`,n=vD(e.purposes,e.preferredPurpose);if(!n)throw Error(Z(t,`media.noPurpose`));let r=await xD(e.file,n,t),i=await ty.post(`/media/uploads`,{filename:e.file.name,purpose:n.name,variants:r.map(e=>({mimeType:e.mimeType,byteSize:e.blob.size,role:e.role})),alt:e.alt??jD(e.file),caption:e.caption});for(let e of r){let n=i.capabilities.find(t=>t.mimeType===e.mimeType&&t.role===e.role);if(!n)throw Error(Z(t,`media.capabilityMissing`,{mime:e.mimeType}));if(!(await fetch(n.uploadUrl,{method:n.method,headers:n.requiredHeaders??{"Content-Type":e.mimeType},body:e.blob})).ok)throw Error(Z(t,`media.variantUploadFailed`,{mime:e.mimeType}))}return ty.post(`/media/uploads/${encodeURIComponent(i.uploadGroupId)}/commit`,{alt:e.alt??jD(e.file),caption:e.caption})}function vD(e,t){if(t){let n=e.find(e=>e.name===t);if(n)return n}return e.find(e=>e.name===`content`)??e[0]??null}function yD(e,t,n){let r=n[n.length-1]??``,i=AD(t.replace(/-translations$/,``)),a=[];/cover/i.test(r)&&a.push(`${i}-cover`),/image|asset|media/i.test(r)&&(a.push(`${i}-image`),a.push(`${i}-media`)),a.push(`content`);for(let t of a)if(e.some(e=>e.name===t))return t;return e[0]?.name}function bD(e){return(e.variants.find(e=>e.role===`primary`)??e.variants[0])?.publicUrl??null}async function xD(e,t,n){if(!e.type.startsWith(`image/`)||e.type===`image/svg+xml`)throw Error(Z(n,`media.rasterOnly`));let r=SD(t.required);if(r.length===0)throw Error(Z(n,`media.noRequiredVariants`));let i=await createImageBitmap(e);try{let e=await Promise.all(r.map(e=>ED(e,t,n))),a=e.find(kD)??e[0],o=[];for(let r of e){let e=t.maxBytes[r]??2**53-1;o.push({mimeType:r,role:r===a?`primary`:`alternate`,blob:await DD(i,r,e,n)})}return o}finally{i.close?.()}}function SD(e){return e.map(e=>e.split(`,`).map(CD).filter(e=>!!e)).filter(e=>e.length>0)}function CD(e){let t=e.trim().toLowerCase();return t?t===`jpg`||t===`jpeg`||t===`image/jpg`?`image/jpeg`:t===`png`?`image/png`:t===`webp`?`image/webp`:t===`avif`?`image/avif`:t===`gif`?`image/gif`:t.includes(`/`)?t:null:null}var wD=new Map;function TD(e){let t=wD.get(e);return t||(t=(async()=>{try{let t=document.createElement(`canvas`);return t.width=1,t.height=1,(await new Promise(n=>t.toBlob(n,e)))?.type===e}catch{return!0}})(),wD.set(e,t)),t}async function ED(e,t,n){for(let n of e)if(n.startsWith(`image/`)&&t.maxBytes[n]!=null&&await TD(n))return n;let r=e.find(e=>e.startsWith(`image/`)&&t.maxBytes[e]!=null);throw Error(Z(n,`media.encoderUnsupported`,{mime:r??e[0]??`?`}))}async function DD(e,t,n,r){let i=1,a=t===`image/jpeg`?[.88,.78,.68,.58]:[.78,.68,.58,.48],o=null;for(let s=0;s<6;s+=1){for(let c of a){let a=await OD(e,t,i,c,r);if(a.type!==t){if(s===0&&o===null)throw Error(Z(r,`media.encoderUnsupported`,{mime:t}));continue}if(o=a,a.size<=n)return a}i*=.82}if(o)return o;throw Error(Z(r,`media.encoderUnsupported`,{mime:t}))}async function OD(e,t,n,r,i){let a=document.createElement(`canvas`);a.width=Math.max(1,Math.round(e.width*n)),a.height=Math.max(1,Math.round(e.height*n));let o=a.getContext(`2d`);if(!o)throw Error(Z(i,`media.prepareFailed`));o.drawImage(e,0,0,a.width,a.height);let s=await new Promise(e=>a.toBlob(e,t,r));if(!s)throw Error(Z(i,`media.encoderUnsupported`,{mime:t}));return s}function kD(e){return e===`image/jpeg`||e===`image/png`||e===`image/gif`}function AD(e){return e.endsWith(`ies`)?`${e.slice(0,-3)}y`:e.endsWith(`ses`)?e.slice(0,-2):e.endsWith(`s`)&&e.length>1?e.slice(0,-1):e}function jD(e){return e.name.replace(/\.[^.]+$/,``)}function MD({value:e,onChange:t,compact:n=!1}){let{language:r}=X(),i=H.useRef(null),a=H.useRef(null),[o,s]=H.useState(!1),[c,l]=H.useState(!1),[u,d]=H.useState(!1),[f,p]=H.useState(null),m=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}),h=H.useCallback((n,r=``,a=``)=>{let o=i.current;if(!o){t(`${e}${n}${a}${r}`);return}let s=o.selectionStart,c=o.selectionEnd,l=e.slice(s,c)||a;t(`${e.slice(0,s)}${n}${l}${r}${e.slice(c)}`),window.requestAnimationFrame(()=>{o.focus();let e=s+n.length,t=e+l.length;o.setSelectionRange(e,t)})},[t,e]),g=H.useCallback(t=>{let n=e.endsWith(`
52
+ `)||e.length===0?``:`
53
+
54
+ `;h(`${n}${t}`,``,``)},[h,e]);async function _(e){d(!0),p(null);try{let t=await _D({file:e,purposes:m.data?.media?.purposes??[],preferredPurpose:`content`,language:r}),n=bD(t);if(!n)throw Error(Z(r,`common.unknownError`));v(n,t.alt??e.name)}catch(e){p(e instanceof Error?e.message:String(e))}finally{d(!1),a.current&&(a.current.value=``)}}function v(e,t){g(`![${t}](${e})`)}function y(e){let t=RD(e);g(t),l(!1)}function b(e){if(e!==`paragraph`){if(/^h[1-6]$/.test(e)){let t=Number(e.slice(1));h(`${`#`.repeat(t)} `,``,Z(r,`editor.headingPlaceholder`));return}e===`quote`&&g(`> `),e===`code`&&h("```\n","\n```")}}return(0,U.jsxs)(`div`,{children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1 rounded-t-lg border bg-muted/30 p-1`,"aria-label":Z(r,`editor.toolbar`),children:[(0,U.jsx)(ND,{title:Z(r,`editor.undo`),onClick:()=>LD(`undo`,i.current),children:(0,U.jsx)(Un,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.redo`),onClick:()=>LD(`redo`,i.current),children:(0,U.jsx)(En,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(PD,{}),(0,U.jsx)(ND,{title:Z(r,`editor.aiClean`),onClick:()=>g(`> `),children:(0,U.jsx)(Yn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.uploadImage`),onClick:()=>a.current?.click(),disabled:u,children:(0,U.jsx)(Gn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(`input`,{ref:a,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&_(t)}}),(0,U.jsx)(PD,{}),(0,U.jsxs)(`label`,{className:`flex h-8 items-center gap-1 rounded-md px-2 text-sm text-muted-foreground hover:bg-accent hover:text-accent-foreground`,title:Z(r,`editor.textStyle`),children:[(0,U.jsx)(Vn,{className:`size-4`,"aria-hidden":!0}),(0,U.jsxs)(`select`,{className:`bg-transparent text-sm outline-none`,onChange:e=>{b(e.target.value),e.target.value=`paragraph`},defaultValue:`paragraph`,children:[(0,U.jsx)(`option`,{value:`paragraph`,children:Z(r,`editor.paragraph`)}),(0,U.jsx)(`option`,{value:`h1`,children:`H1`}),(0,U.jsx)(`option`,{value:`h2`,children:`H2`}),(0,U.jsx)(`option`,{value:`h3`,children:`H3`}),(0,U.jsx)(`option`,{value:`h4`,children:`H4`}),(0,U.jsx)(`option`,{value:`h5`,children:`H5`}),(0,U.jsx)(`option`,{value:`h6`,children:`H6`}),(0,U.jsx)(`option`,{value:`quote`,children:Z(r,`editor.quote`)}),(0,U.jsx)(`option`,{value:`code`,children:Z(r,`editor.code`)})]})]}),(0,U.jsx)(PD,{}),(0,U.jsx)(ND,{title:Z(r,`editor.bold`),onClick:()=>h(`**`,`**`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(St,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.italic`),onClick:()=>h(`_`,`_`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(en,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.underline`),onClick:()=>h(`<u>`,`</u>`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(Hn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.strike`),onClick:()=>h(`~~`,`~~`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(Nn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.inlineCode`),onClick:()=>h("`","`"),children:(0,U.jsx)(It,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.textColor`),onClick:()=>h(`<span class="text-accent">`,`</span>`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(xt,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.highlight`),onClick:()=>h(`<mark>`,`</mark>`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(Jt,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.palette`),onClick:()=>h(`<span class="brand-tone">`,`</span>`,Z(r,`editor.selectedText`)),children:(0,U.jsx)(bn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(PD,{}),(0,U.jsx)(ND,{title:Z(r,`editor.alignLeft`),onClick:()=>g(`<p style="text-align:left"></p>`),children:(0,U.jsx)(Rn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.alignCenter`),onClick:()=>g(`<p style="text-align:center"></p>`),children:(0,U.jsx)(Ln,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.alignRight`),onClick:()=>g(`<p style="text-align:right"></p>`),children:(0,U.jsx)(In,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.bulletList`),onClick:()=>g(`- `),children:(0,U.jsx)(fn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.numberList`),onClick:()=>g(`1. `),children:(0,U.jsx)(un,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.checkList`),onClick:()=>g(`- [ ] `),children:(0,U.jsx)(cn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.indent`),onClick:()=>h(` `,``,``),children:(0,U.jsx)(ln,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(PD,{}),(0,U.jsx)(ND,{title:Z(r,`editor.link`),onClick:()=>h(`[`,`](https://)`,Z(r,`editor.linkText`)),children:(0,U.jsx)(sn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.table`),onClick:()=>g(`| | |
55
+ | --- | --- |
56
+ | | |`),children:(0,U.jsx)(Fn,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.mediaLibrary`),onClick:()=>s(!0),children:(0,U.jsx)(Qt,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.imageUrl`),onClick:()=>s(!0),children:(0,U.jsx)(Zt,{className:`size-4`,"aria-hidden":!0})}),(0,U.jsx)(ND,{title:Z(r,`editor.videoUrl`),onClick:()=>l(!0),children:(0,U.jsx)(Jn,{className:`size-4`,"aria-hidden":!0})})]}),(0,U.jsx)(hD,{ref:i,className:`${n?`min-h-32`:`min-h-64`} rounded-t-none border-t-0 resize-y font-mono`,value:e,onChange:e=>t(e.target.value)}),f?(0,U.jsx)(`p`,{className:`mt-2 text-xs text-destructive`,children:f}):null,u?(0,U.jsx)(`p`,{className:`mt-2 text-xs text-muted-foreground`,children:Z(r,`editor.uploading`)}):null,o?(0,U.jsx)(FD,{language:r,onClose:()=>s(!1),onInsert:(e,t)=>{v(e,t),s(!1)}}):null,c?(0,U.jsx)(ID,{language:r,onClose:()=>l(!1),onInsert:y}):null]})}function ND({title:e,onClick:t,disabled:n,children:r}){return(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:e,"aria-label":e,onClick:t,disabled:n,children:r})}function PD(){return(0,U.jsx)(fv,{orientation:`vertical`,className:`mx-1 h-5`,"aria-hidden":!0})}function FD({language:e,onClose:t,onInsert:n}){let[r,i]=H.useState(``),[a,o]=H.useState(``);return(0,U.jsx)(YS,{open:!0,onOpenChange:e=>{e||t()},children:(0,U.jsxs)(QS,{closeLabel:Z(e,`common.close`),children:[(0,U.jsxs)($S,{children:[(0,U.jsx)(tC,{children:Z(e,`editor.insertImage`)}),(0,U.jsx)(nC,{className:`sr-only`,children:Z(e,`editor.mediaLibrary`)})]}),(0,U.jsxs)(`div`,{className:`grid gap-4`,children:[(0,U.jsxs)(`div`,{className:`grid gap-2`,children:[(0,U.jsx)(gD,{htmlFor:`rich-editor-image-url`,children:Z(e,`editor.imageUrl`)}),(0,U.jsx)(dv,{id:`rich-editor-image-url`,value:r,onChange:e=>i(e.target.value),placeholder:`https://...`})]}),(0,U.jsxs)(`div`,{className:`grid gap-2`,children:[(0,U.jsx)(gD,{htmlFor:`rich-editor-image-alt`,children:Z(e,`media.alt`)}),(0,U.jsx)(dv,{id:`rich-editor-image-alt`,value:a,onChange:e=>o(e.target.value)})]})]}),(0,U.jsx)(eC,{children:(0,U.jsxs)(Y,{type:`button`,disabled:!r.trim(),onClick:()=>n(r.trim(),a.trim()),children:[(0,U.jsx)(Ot,{className:`size-4`,"aria-hidden":!0}),Z(e,`editor.insertImage`)]})})]})})}function ID({language:e,onClose:t,onInsert:n}){let[r,i]=H.useState(``);return(0,U.jsx)(YS,{open:!0,onOpenChange:e=>{e||t()},children:(0,U.jsxs)(QS,{closeLabel:Z(e,`common.close`),children:[(0,U.jsxs)($S,{children:[(0,U.jsx)(tC,{children:Z(e,`editor.insertVideo`)}),(0,U.jsx)(nC,{className:`sr-only`,children:Z(e,`editor.videoUrl`)})]}),(0,U.jsxs)(`div`,{className:`grid gap-2`,children:[(0,U.jsx)(gD,{htmlFor:`rich-editor-video-url`,children:Z(e,`editor.videoUrl`)}),(0,U.jsx)(dv,{id:`rich-editor-video-url`,value:r,onChange:e=>i(e.target.value),placeholder:Z(e,`editor.videoUrl`)})]}),(0,U.jsx)(eC,{children:(0,U.jsxs)(Y,{type:`button`,disabled:!r.trim(),onClick:()=>n(r.trim()),children:[(0,U.jsx)(Jn,{className:`size-4`,"aria-hidden":!0}),Z(e,`editor.insertVideo`)]})})]})})}function LD(e,t){t?.focus(),document.execCommand(e)}function RD(e){let t=zD(e);if(!t)return`<a href="${UD(e)}">${HD(e)}</a>`;let n=BD(t);if(n)return`<iframe src="https://www.youtube.com/embed/${n}" title="YouTube" loading="lazy" allowfullscreen></iframe>`;let r=VD(t);return r?`<iframe src="https://www.dailymotion.com/embed/video/${r}" title="Dailymotion" loading="lazy" allowfullscreen></iframe>`:`<a href="${UD(t.toString())}">${HD(t.toString())}</a>`}function zD(e){try{return new URL(e)}catch{return null}}function BD(e){return e.hostname===`youtu.be`?e.pathname.split(`/`).filter(Boolean)[0]??null:e.hostname.includes(`youtube.com`)?e.pathname.startsWith(`/shorts/`)?e.pathname.split(`/`).filter(Boolean)[1]??null:e.searchParams.get(`v`):null}function VD(e){if(e.hostname===`dai.ly`)return e.pathname.split(`/`).filter(Boolean)[0]??null;if(!e.hostname.includes(`dailymotion.com`))return null;let t=e.pathname.split(`/`).filter(Boolean),n=t.indexOf(`video`);return n>=0?t[n+1]??null:null}function HD(e){return e.replace(/[&<>"']/g,e=>{switch(e){case`&`:return`&amp;`;case`<`:return`&lt;`;case`>`:return`&gt;`;case`"`:return`&quot;`;default:return`&#39;`}})}function UD(e){return HD(e).replace(/`/g,`&#96;`)}function WD(e,t){let[n,r]=H.useState([]),[i,a]=H.useState(),[o,s]=H.useState(!1),[c,l]=H.useState(null),u=t.resetOnPageChange?e:null;H.useEffect(()=>{r([]),a(void 0),l(null)},[t.resetKey,u]);let d=i===void 0?e?.next_cursor??null:i;return{items:H.useMemo(()=>[...e?.items??[],...n],[e,n]),nextCursor:d,isLoadingMore:o,loadMoreError:c,loadMore:H.useCallback(async()=>{if(d){s(!0),l(null);try{let e=await t.loadPage(d);r(t=>[...t,...e.items]),a(e.next_cursor)}catch(e){l(e)}finally{s(!1)}}},[d,t.loadPage])}}var GD=`https://developers.cloudflare.com/r2/get-started/workers-api/`,KD=`Enable Mantle media storage for this site using the runtime's supported storage adapter. If this is a Cloudflare deployment, follow node_modules/@aotter/mantle/docs/media-uploads.md: create and bind an R2 bucket, configure its S3 credentials and public URL, wire mediaStorage, validate, deploy, and verify /admin/media.`;function qD(){let{language:e}=X(),t=_y(),n=new URLSearchParams(t.search).get(`search`)?.trim()??``,r=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}).data?.media?.purposes??[];return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(jb,{eyebrow:Z(e,`nav.media`),title:Z(e,`media.title`),description:Z(e,`media.description`)}),(0,U.jsx)(JD,{language:e,purposes:r,searchTerm:n,emptyIcon:Qt,showSearch:!0})]})}function JD({language:e,purposes:t,searchTerm:n,emptyIcon:r,onPick:i,showSearch:a=!1}){let o=He(),s=rt({queryKey:[`media`,n],queryFn:()=>{let e=new URLSearchParams({limit:`60`});return n&&e.set(`search`,n),ty.get(`/media?${e.toString()}`)}}),c=H.useCallback(async e=>{let t=new URLSearchParams({limit:`60`,cursor:e});return n&&t.set(`search`,n),ty.get(`/media?${t.toString()}`)},[n]),l=WD(s.data,{resetKey:n,resetOnPageChange:!1,loadPage:c}),u=l.items,d=XD(s.error),[f,p]=H.useState(!1),[m,h]=H.useState(null),[g,_]=H.useState(!1),v=H.useRef(null),y=t.length>0&&!f,b=H.useCallback(()=>{o.invalidateQueries({queryKey:[`media`]})},[o]);async function x(n){let r=Array.from(n).filter(e=>e.type.startsWith(`image/`));if(r.length!==0){p(!0),h(null);try{let n=await Promise.allSettled(r.map(n=>_D({file:n,purposes:t,language:e}))),i=n.filter(e=>e.status===`fulfilled`).length,a=n.filter(e=>e.status===`rejected`);if(i>0&&b(),a.length>0){let t=a[0]?.reason,n=t instanceof Error?t.message:String(t);h(`${Z(e,`media.uploadFailed`,{count:String(a.length),total:String(r.length)})} ${n}`.trim())}}finally{p(!1),v.current&&(v.current.value=``)}}}return d?(0,U.jsx)(YD,{language:e}):(0,U.jsxs)(U.Fragment,{children:[a?(0,U.jsx)(QD,{searchTerm:n,language:e}):null,(0,U.jsxs)(`div`,{onDragOver:e=>{y&&(e.preventDefault(),_(!0))},onDragLeave:()=>_(!1),onDrop:e=>{y&&(e.preventDefault(),_(!1),x(e.dataTransfer.files))},className:J(`rounded-xl border border-dashed p-4 transition-colors`,g?`border-primary bg-accent/40`:`border-transparent`),children:[(0,U.jsxs)(`div`,{className:`mb-4 flex flex-wrap items-center gap-2`,children:[(0,U.jsxs)(Y,{type:`button`,variant:`default`,onClick:()=>v.current?.click(),disabled:!y,title:t.length===0?Z(e,`media.noPurpose`):void 0,children:[(0,U.jsx)(Gn,{className:`size-4`,"aria-hidden":!0}),f?Z(e,`media.uploading`):Z(e,`media.upload`)]}),(0,U.jsx)(`span`,{className:`text-xs text-muted-foreground`,children:Z(e,`media.dropHere`)}),(0,U.jsx)(`input`,{ref:v,type:`file`,accept:`image/*`,multiple:!0,className:`hidden`,onChange:e=>{e.currentTarget.files&&x(e.currentTarget.files)}})]}),m?(0,U.jsx)(`p`,{className:`mb-3 text-xs text-destructive`,children:m}):null,s.isError?(0,U.jsx)(Fb,{error:s.error}):null,s.isLoading?(0,U.jsx)($D,{}):u.length===0?(0,U.jsx)(Pb,{icon:r,title:Z(e,`media.empty.title`),description:n?Z(e,`media.empty.search`,{search:n}):Z(e,`media.empty.all`)}):(0,U.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:u.map(t=>(0,U.jsx)(ZD,{item:t,language:e,onChanged:b,onPick:i},t.id))}),l.loadMoreError?(0,U.jsx)(Fb,{error:l.loadMoreError}):null,l.nextCursor?(0,U.jsx)(`div`,{className:`mt-4`,children:(0,U.jsx)(Y,{type:`button`,variant:`secondary`,onClick:()=>void l.loadMore(),disabled:l.isLoadingMore,children:l.isLoadingMore?Z(e,`media.saving`):Z(e,`media.loadMore`)})}):null]})]})}function YD({language:e}){let[t,n]=H.useState(!1);async function r(){try{await navigator.clipboard.writeText(KD),n(!0),window.setTimeout(()=>n(!1),1400)}catch{n(!1)}}return(0,U.jsx)(Pb,{icon:Qt,title:Z(e,`media.setup.title`),description:(0,U.jsxs)(U.Fragment,{children:[Z(e,`media.setup.body`),(0,U.jsx)(`span`,{className:`mt-2 block`,children:Z(e,`media.setup.cloudflare`)})]}),action:(0,U.jsxs)(`div`,{className:`flex flex-wrap justify-center gap-2`,children:[(0,U.jsxs)(Y,{type:`button`,onClick:()=>void r(),children:[t?(0,U.jsx)(Ot,{"aria-hidden":!0}):(0,U.jsx)(Rt,{"aria-hidden":!0}),Z(e,t?`media.setup.copied`:`media.setup.copy`)]}),(0,U.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,U.jsxs)(`a`,{href:GD,target:`_blank`,rel:`noreferrer`,children:[(0,U.jsx)(Ut,{"aria-hidden":!0}),Z(e,`media.setup.guide`)]})})]})})}function XD(e){return!(e instanceof $v)||e.status!==501?!1:e.body?.diagnostic?.code===`MEDIA_NOT_CONFIGURED`}function ZD({item:e,language:t,onChanged:n,onPick:r}){let[i,a]=H.useState(e.alt??``),[o,s]=H.useState(e.caption??``),[c,l]=H.useState(!1),u=i!==(e.alt??``)||o!==(e.caption??``),d=it({mutationFn:()=>ty.patch(`/media/${encodeURIComponent(e.id)}`,{alt:i,caption:o}),onSuccess:n}),f=it({mutationFn:()=>ty.delete(`/media/${encodeURIComponent(e.id)}`),onSuccess:n}),p=iS();async function m(){await p({description:Z(t,`media.deleteConfirm`)})&&f.mutate()}async function h(){try{await navigator.clipboard.writeText(e.id),l(!0),window.setTimeout(()=>l(!1),1400)}catch{l(!1)}}return(0,U.jsxs)(`div`,{className:`flex flex-col overflow-hidden rounded-lg border bg-card`,children:[(0,U.jsxs)(`div`,{className:`relative aspect-square bg-muted/40`,children:[e.primaryUrl?(0,U.jsx)(`img`,{src:e.primaryUrl,alt:e.alt??``,loading:`lazy`,className:`size-full object-cover`}):(0,U.jsx)(`div`,{className:`flex size-full items-center justify-center text-muted-foreground`,children:(0,U.jsx)(Qt,{className:`size-6`,"aria-hidden":!0})}),r?(0,U.jsx)(`button`,{type:`button`,className:`absolute inset-0 flex items-end justify-center bg-black/0 p-2 opacity-0 transition hover:bg-black/40 hover:opacity-100`,onClick:()=>r(e),children:(0,U.jsx)(`span`,{className:`rounded-md bg-primary px-3 py-1 text-xs font-semibold text-primary-foreground`,children:Z(t,`media.use`)})}):null]}),(0,U.jsxs)(`div`,{className:`flex flex-1 flex-col gap-2 p-3`,children:[(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-2 text-xs text-muted-foreground`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 font-mono hover:text-foreground`,title:Z(t,`media.copyId`),onClick:()=>void h(),children:[e.id.slice(0,8),c?(0,U.jsx)(Ot,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,U.jsx)(Rt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]}),(0,U.jsx)(`span`,{children:eO(e.byteSize)})]}),r?null:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(dv,{value:i,placeholder:Z(t,`media.altPlaceholder`),"aria-label":Z(t,`media.alt`),onChange:e=>a(e.target.value)}),(0,U.jsx)(dv,{value:o,placeholder:Z(t,`media.captionPlaceholder`),"aria-label":Z(t,`media.caption`),onChange:e=>s(e.target.value)}),(0,U.jsxs)(`div`,{className:`mt-1 flex items-center justify-between gap-2`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-1`,children:[e.primaryUrl?(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,U.jsx)(`a`,{href:e.primaryUrl,target:`_blank`,rel:`noreferrer`,title:Z(t,`media.open`),"aria-label":Z(t,`media.open`),children:(0,U.jsx)(Ut,{className:`size-3.5`,"aria-hidden":!0})})}):null,(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`media.delete`),"aria-label":Z(t,`media.delete`),disabled:f.isPending,onClick:()=>void m(),children:(0,U.jsx)(zn,{className:`size-3.5`,"aria-hidden":!0})})]}),(0,U.jsx)(Y,{type:`button`,size:`sm`,variant:`secondary`,disabled:!u||d.isPending,onClick:()=>d.mutate(),children:d.isPending?Z(t,`media.saving`):d.isSuccess&&!u?Z(t,`media.saved`):Z(t,`media.save`)})]}),d.isError?(0,U.jsx)(Fb,{error:d.error}):null,f.isError?(0,U.jsx)(Fb,{error:f.error}):null]}),(0,U.jsx)(`p`,{className:`text-[11px] text-muted-foreground`,children:Z(t,`media.uploaded`,{date:pS(e.createdAt)??`-`})})]})]})}function QD({searchTerm:e,language:t}){let{navigate:n}=gy(),[r,i]=H.useState(e);return H.useEffect(()=>i(e),[e]),(0,U.jsx)(`form`,{className:`mb-4 max-w-xl`,role:`search`,onSubmit:e=>{e.preventDefault();let t=r.trim(),i=new URLSearchParams;t&&i.set(`search`,t);let a=i.toString();n(`/admin/media${a?`?${a}`:``}`)},children:(0,U.jsxs)(`label`,{className:`relative block`,children:[(0,U.jsx)(kn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(dv,{className:`pl-9`,value:r,onChange:e=>i(e.target.value),placeholder:Z(t,`media.searchPlaceholder`)})]})})}function $D(){return(0,U.jsx)(`div`,{className:`grid grid-cols-2 gap-4 sm:grid-cols-3 lg:grid-cols-4`,children:[0,1,2,3,4,5,6,7].map(e=>(0,U.jsxs)(`div`,{className:`overflow-hidden rounded-lg border`,children:[(0,U.jsx)(xv,{className:`aspect-square rounded-none`}),(0,U.jsxs)(`div`,{className:`space-y-2 p-3`,children:[(0,U.jsx)(xv,{className:`h-3 w-1/2`}),(0,U.jsx)(xv,{className:`h-8`})]})]},e))})}function eO(e){return e==null||!Number.isFinite(e)?``:e<1024?`${e} B`:e<1048576?`${Math.round(e/1024)} KB`:`${(e/1048576).toFixed(1)} MB`}function tO({locale:e}){return e?(0,U.jsxs)(mx,{variant:`outline`,title:e,children:[(0,U.jsx)(qt,{"aria-hidden":!0}),nO(e),(0,U.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:e})]}):(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`-`})}function nO(e){try{return new Intl.DisplayNames([e],{type:`language`}).of(e)??e}catch{return e}}function rO({locales:e,available:t,language:n}){let[r,i]=H.useState(!1);if(e.length===0)return null;let a=new Set(t),[o,s]=oO(e),c=s.every(e=>a.has(e));return(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-1`,children:[o.map(e=>(0,U.jsx)(iO,{locale:e,available:a.has(e),language:n,showTooltip:!r},e)),s.length>0?(0,U.jsxs)(fD,{open:r,onOpenChange:i,children:[(0,U.jsx)(pD,{asChild:!0,children:(0,U.jsx)(mx,{asChild:!0,variant:c?`secondary`:`outline`,className:c?void 0:`border-dashed text-muted-foreground opacity-60`,children:(0,U.jsxs)(`button`,{type:`button`,"aria-label":Z(n,`collection.moreLanguages`,{count:String(s.length)}),children:[c?(0,U.jsx)(Ot,{className:`text-[color:var(--success)]`,"aria-hidden":!0}):null,`…`,Z(n,`collection.moreLanguages`,{count:String(s.length)})]})})}),(0,U.jsx)(mD,{align:`end`,className:`w-56 max-w-[calc(100vw-2rem)] p-1.5`,children:(0,U.jsx)(`ul`,{className:`grid gap-0.5`,children:s.map(e=>{let t=a.has(e),r=aO(e,t,n);return(0,U.jsxs)(`li`,{"aria-label":r,className:t?`flex items-center gap-2 rounded-md px-2 py-1.5 text-xs`:`flex items-center gap-2 rounded-md px-2 py-1.5 text-xs text-muted-foreground opacity-60`,children:[t?(0,U.jsx)(Ot,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,U.jsx)(`span`,{className:`size-3`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate`,children:nO(e)}),(0,U.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:e})]},e)})})})]}):null]})}function iO({locale:e,available:t,language:n,showTooltip:r=!0}){let i=aO(e,t,n),a=(0,U.jsxs)(mx,{variant:t?`secondary`:`outline`,className:t?void 0:`border-dashed text-muted-foreground opacity-60`,"aria-label":i,children:[t?(0,U.jsx)(Ot,{className:`text-[color:var(--success)]`,"aria-hidden":!0}):null,e]});return r?(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:a}),(0,U.jsx)(Tv,{className:`bg-popover text-popover-foreground shadow-md ring-1 ring-foreground/10 [&>svg]:fill-popover!`,children:i})]}):a}function aO(e,t,n){return Z(n,t?`collection.availableLanguage`:`collection.missingLanguage`,{language:nO(e),locale:e})}function oO(e){return e.length<=3?[[...e],[]]:[e.slice(0,2),e.slice(2)]}function sO(e,t,n=``){let r=e?.properties?.locale?.enum?.filter(e=>typeof e==`string`)??[];return[...new Set([...t??[],...r,...n?[n]:[]])]}function cO({collectionName:e,entryId:t}){let{language:n}=X(),r=He(),i=H.useMemo(()=>[`entry-editor`,e,t],[e,t]),a=rt({queryKey:i,queryFn:()=>ty.get(`/entries/${encodeURIComponent(t)}`)}),o=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}),s=rt({queryKey:[`me`],queryFn:()=>ty.get(`/me`),retry:!1}),c=rt(uy()),l=H.useMemo(()=>VO(c.data,e),[c.data,e]),[u,d]=H.useState(null),[f,p]=H.useState(!1);H.useEffect(()=>p(!1),[e,t]),H.useEffect(()=>{a.data&&d(a.data.entry.data)},[a.data]);let m=H.useCallback(e=>{d(e.entry.data),r.setQueryData(i,e)},[r,i]),h=it({mutationFn:e=>ty.patch(`/entries/${encodeURIComponent(t)}`,{data:e,expectedVersion:a.data?.entry.version}),onSuccess:m}),g=it({mutationFn:()=>ty.post(`/entries/${encodeURIComponent(t)}/publish`,{}),onSuccess:m}),_=it({mutationFn:()=>ty.post(`/entries/${encodeURIComponent(t)}/unpublish`,{}),onSuccess:m}),v=it({mutationFn:({section:e,locale:t})=>ty.post(`/entries`,{collection:e.collection.name,data:{[e.relationship.childField]:e.relationship.parentValue,locale:t}}),onSuccess:e=>{window.location.href=`/admin/c/${encodeURIComponent(e.entry.collection)}/${encodeURIComponent(e.entry.id)}`}});if(a.isLoading)return(0,U.jsx)(lO,{});if(a.isError)return(0,U.jsx)(Fb,{error:a.error});if(!a.data||!u)return(0,U.jsx)(Fb,{error:Error(Z(n,`common.unknownError`))});let y=a.data,b=o.data?.canonicalLocale??null,x=DO(u,Z(n,`collection.untitled`),y.collection,y.entry.id),S=ry(y.collection.title,n,b)??y.collection.name,C=y.collection.translates?.parent??e,w=y.collection.translates?.parent??S,T=ry(y.collection.description,n,b),E=JSON.stringify(u)!==JSON.stringify(y.entry.data),D=y.collection.lifecycle===`operational`,O=y.collection.schema.readOnly===!0,k=y.entry.status===`draft`,A=OO(u,y.collection.schema),j=s.data?.role===`owner`||s.data?.role===`editor`,M=mO({role:s.data?.role,isReadOnly:O,isOperational:D,isDraft:k,operationalEditUnlocked:f}),N=M&&E&&(k||D),P=h.isPending||g.isPending||_.isPending,F=o.data?.media?.purposes??[],I=TO(y.collection,u,y.parentEntryId),L=y.related.filter(e=>e.relationship.kind===`translation`),R=y.related.filter(EO),ee=typeof u.locale==`string`?u.locale:``,te=sO(y.collection.schema,o.data?.locales,ee),z=pO(y.collection);return(0,U.jsxs)(`div`,{className:`flex min-h-full flex-col gap-6`,children:[(0,U.jsx)(jb,{eyebrow:(0,U.jsxs)(`span`,{className:`inline-flex flex-wrap items-center gap-x-2 gap-y-1`,children:[(0,U.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(C)}`,className:`inline-flex items-center gap-2 hover:underline`,children:[(0,U.jsx)(gt,{className:`size-3.5`,"aria-hidden":!0}),Z(n,`entryEdit.back`,{name:w})]}),I?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`span`,{className:`text-foreground/30`,children:`/`}),(0,U.jsx)(`a`,{href:I.href,className:`hover:underline`,children:Z(n,`entryEdit.parent`,{name:I.label})})]}):null]}),title:x,description:Z(n,`entryEdit.body`,{name:S}),actions:(0,U.jsxs)(U.Fragment,{children:[y.collection.localized&&!y.collection.translates?(0,U.jsx)(wO,{language:n,locale:ee,locales:te,disabled:!M||y.entry.locale!==null,onChange:e=>d({...u,locale:e})}):null,!D&&(0,U.jsx)(sS,{status:y.entry.status}),(0,U.jsx)(GO,{row:y.entry,operations:l,language:n,canonical:b,onSuccess:()=>void r.invalidateQueries({queryKey:i}),trigger:(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,children:[(0,U.jsx)(Ht,{className:`size-4`,"aria-hidden":!0}),Z(n,`rowActions.menuLabel`)]})})]})}),L.map(e=>(0,U.jsx)(CO,{section:e,currentCollection:y.collection.name,currentEntryId:y.entry.id,sharedHref:I?.href,language:n,siteLocales:o.data?.locales,canCreate:!!s.data?.role,pending:v.isPending&&v.variables?.section.collection.name===e.collection.name,onCreate:t=>v.mutate({section:e,locale:t})},`${e.collection.name}:${e.relationship.childField}`)),O?(0,U.jsx)(`p`,{className:`-mt-4 text-sm text-muted-foreground`,children:Z(n,`entryEdit.readOnlyHint`)}):D?(0,U.jsxs)(`div`,{className:`-mt-4 flex flex-wrap items-center gap-3 text-sm text-muted-foreground`,children:[(0,U.jsx)(`p`,{children:Z(n,`entryEdit.operationalHint`)}),j&&!f?(0,U.jsxs)(Y,{type:`button`,variant:`outline`,size:`sm`,onClick:()=>p(!0),children:[(0,U.jsx)(mn,{className:`size-4`,"aria-hidden":!0}),Z(n,`entryEdit.unlockOperational`)]}):null]}):null,h.isError?(0,U.jsx)(Ib,{error:h.error}):null,g.isError?(0,U.jsx)(Ib,{error:g.error}):null,_.isError?(0,U.jsx)(Ib,{error:_.error}):null,v.isError?(0,U.jsx)(Ib,{error:v.error}):null,(0,U.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,children:[(0,U.jsxs)(`div`,{className:`space-y-5`,children:[(0,U.jsxs)(Mb,{children:[(0,U.jsx)(uO,{title:Z(n,`entryEdit.fields`),body:T?(0,U.jsx)(Rb,{description:T,summaryLabel:Z(n,`collection.schemaDetails`),collapsedIntro:Z(n,ik(y.collection),{name:S})}):void 0}),(0,U.jsx)(`fieldset`,{disabled:!M,className:M?void 0:`pointer-events-none opacity-70`,children:(0,U.jsx)(fO,{schema:y.collection.schema,uiSchema:y.collection.uiSchema,value:u,path:[],onChange:d,language:n,canonical:b,collectionName:y.collection.name,mediaPurposes:F,hiddenRootFields:z})})]}),R.length>0?(0,U.jsx)(SO,{sections:R,language:n,canonical:b,operations:c.data,onOperationSuccess:()=>void r.invalidateQueries({queryKey:i})}):null]}),(0,U.jsx)(`div`,{className:`space-y-4`,children:(0,U.jsxs)(Mb,{children:[(0,U.jsx)(uO,{title:Z(n,`entryEdit.meta`),body:`${y.entry.collection} / ${y.entry.id}`}),(0,U.jsxs)(`dl`,{className:`space-y-3 text-sm`,children:[!D&&(0,U.jsx)(dO,{label:Z(n,`collection.table.status`),value:(0,U.jsx)(sS,{status:y.entry.status})}),(0,U.jsx)(dO,{label:Z(n,`collection.table.version`),value:`v${y.entry.version}`})]})]})})]}),M||j&&!D?(0,U.jsxs)(Nb,{status:h.isPending?Z(n,`crud.saving`):g.isPending?Z(n,`entryEdit.publishing`):_.isPending?Z(n,`entryEdit.unpublishing`):E?Z(n,`common.unsavedChanges`):k&&!D&&A?Z(n,`entryEdit.publishMissingRequired`):h.isSuccess?Z(n,`common.saved`):void 0,children:[j&&!D&&(k?(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>g.mutate(),disabled:P||E||A,title:E?Z(n,`entryEdit.publishDisabledDirty`):A?Z(n,`entryEdit.publishMissingRequired`):Z(n,`entryEdit.publishTooltip`),children:[(0,U.jsx)(An,{className:`size-4`,"aria-hidden":!0}),g.isPending?Z(n,`entryEdit.publishing`):Z(n,`entryEdit.publish`)]}):(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>_.mutate(),disabled:P,title:Z(n,`entryEdit.unpublishTooltip`),children:[(0,U.jsx)(Dn,{className:`size-4`,"aria-hidden":!0}),_.isPending?Z(n,`entryEdit.unpublishing`):Z(n,`entryEdit.unpublish`)]})),M?(0,U.jsxs)(Y,{type:`button`,onClick:()=>h.mutate(u),disabled:P||!N,title:Z(n,`entryEdit.saveTooltip`),children:[(0,U.jsx)(On,{className:`size-4`,"aria-hidden":!0}),h.isPending?Z(n,`crud.saving`):Z(n,`entryEdit.save`)]}):null]}):null]})}function lO(){return(0,U.jsxs)(`div`,{className:`flex min-h-full flex-col gap-6`,"aria-busy":`true`,children:[(0,U.jsxs)(`div`,{className:`space-y-2`,"aria-hidden":!0,children:[(0,U.jsx)(xv,{className:`h-4 w-32`}),(0,U.jsx)(xv,{className:`h-8 w-56 max-w-full`}),(0,U.jsx)(xv,{className:`h-4 w-80 max-w-full`})]}),(0,U.jsxs)(`div`,{className:`grid gap-5 lg:grid-cols-[minmax(0,1fr)_22rem]`,"aria-hidden":!0,children:[(0,U.jsxs)(Mb,{children:[(0,U.jsxs)(`div`,{className:`mb-6 space-y-2`,children:[(0,U.jsx)(xv,{className:`h-6 w-28`}),(0,U.jsx)(xv,{className:`h-4 w-2/3`})]}),(0,U.jsx)(`div`,{className:`space-y-5`,children:[`w-24`,`w-36`,`w-20`,`w-32`,`w-24`].map((e,t)=>(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsx)(xv,{className:`h-4 ${e}`}),(0,U.jsx)(xv,{className:t===2?`h-24 w-full`:`h-9 w-full`})]},t))})]}),(0,U.jsxs)(Mb,{className:`h-fit`,children:[(0,U.jsxs)(`div`,{className:`mb-5 space-y-2`,children:[(0,U.jsx)(xv,{className:`h-6 w-24`}),(0,U.jsx)(xv,{className:`h-4 w-48 max-w-full`})]}),(0,U.jsx)(`div`,{className:`space-y-4`,children:[`w-20`,`w-28`,`w-24`].map((e,t)=>(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-4`,children:[(0,U.jsx)(xv,{className:`h-4 ${e}`}),(0,U.jsx)(xv,{className:`h-4 w-16`})]},t))})]})]}),(0,U.jsx)(Nb,{status:(0,U.jsx)(xv,{className:`h-4 w-28`}),children:(0,U.jsx)(xv,{className:`h-9 w-24`})})]})}function uO({title:e,body:t}){return(0,U.jsxs)(`div`,{className:`mb-4`,children:[(0,U.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),t?(0,U.jsx)(`div`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:t}):null]})}function dO({label:e,value:t}){return(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-3`,children:[(0,U.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,U.jsx)(`dd`,{className:`min-w-0 text-right font-medium`,children:t})]})}function fO({schema:e,uiSchema:t=null,value:n,path:r,onChange:i,language:a,canonical:o=null,collectionName:s,mediaPurposes:c,hiddenRootFields:l=[]}){let u=e.properties??{},d=new Set(e.required??[]);return(0,U.jsx)(`div`,{className:`space-y-5`,children:Object.entries(u).filter(([e])=>r.length>0||!l.includes(e)).map(([e,l])=>(0,U.jsx)(hO,{name:e,schema:l,widget:r.length===0?jO(t,e):null,required:d.has(e),value:LO(n,[...r,e]),path:[...r,e],rootValue:n,onChange:i,language:a,canonical:o,collectionName:s,mediaPurposes:c},[...r,e].join(`.`)))})}function pO(e){return[...e.localized?[`locale`]:[],...e.translates?[e.translates.on]:[]]}function mO({role:e,isReadOnly:t,isOperational:n,isDraft:r,operationalEditUnlocked:i}){return t?!1:e===`owner`||e===`editor`?!n||i:e===`contributor`&&!n&&r}function hO({name:e,schema:t,widget:n,required:r,value:i,path:a,rootValue:o,onChange:s,language:c,canonical:l=null,collectionName:u,mediaPurposes:d}){let f=kO(t),p=ay(e,t,c,l),m=oy(t,c,l),h=e=>s(RO(o,a,e)),g=NO(t);return(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsxs)(`label`,{className:`flex items-center gap-1.5 text-sm font-semibold text-foreground`,children:[p,r&&!g?(0,U.jsx)(`span`,{className:`text-destructive`,children:`*`}):null]}),m?(0,U.jsx)(`p`,{className:`text-xs leading-5 text-muted-foreground`,children:m}):null,g?(0,U.jsxs)(`p`,{role:`textbox`,"aria-readonly":`true`,className:`flex min-h-9 cursor-not-allowed items-center justify-between gap-3 rounded-lg border border-transparent bg-muted px-3 py-2 text-sm text-muted-foreground`,children:[(0,U.jsx)(`span`,{children:(dS(t)?pS(i):PO(i))||Z(c,`entryEdit.emptyOption`)}),(0,U.jsx)(mn,{className:`size-4 shrink-0`,"aria-hidden":`true`})]}):t.enum?(0,U.jsxs)(hx,{value:PO(i)||`__empty__`,onValueChange:e=>h(e===`__empty__`?``:e),children:[(0,U.jsx)(_x,{className:`w-full`,"aria-label":p,children:(0,U.jsx)(gx,{})}),(0,U.jsxs)(vx,{children:[(0,U.jsx)(yx,{value:`__empty__`,children:Z(c,`entryEdit.emptyOption`)}),t.enum.map(e=>(0,U.jsx)(yx,{value:String(e),children:String(e)},String(e)))]})]}):f===`boolean`?(0,U.jsxs)(`label`,{className:`inline-flex items-center gap-2 text-sm text-muted-foreground`,children:[(0,U.jsx)(Nx,{checked:!!i,onCheckedChange:e=>h(e===!0)}),Z(c,`entryEdit.boolean`)]}):f===`number`||f===`integer`?(0,U.jsxs)(`div`,{className:`space-y-1`,children:[dS(t)?(0,U.jsx)(gO,{label:p,language:c,value:i,onChange:e=>h(e?.getTime()??null)}):(0,U.jsx)(dv,{type:`number`,"aria-label":p,value:FO(i),min:t.minimum,max:t.maximum,onChange:e=>{let t=e.target.value;h(t===``?null:Number(t))}}),(0,U.jsx)(_O,{schema:t,value:i,rootValue:o})]}):f===`object`?(0,U.jsx)(`div`,{className:`rounded-lg border bg-muted/20 p-4`,children:t.properties?(0,U.jsx)(fO,{schema:t,value:o,path:a,onChange:s,language:c,canonical:l,collectionName:u,mediaPurposes:d}):(0,U.jsx)(xO,{value:i,onChange:h})}):MO(t)?(0,U.jsx)(yO,{value:i,path:a,collectionName:u,mediaPurposes:d,language:c,onChange:h}):f===`array`?(0,U.jsx)(vO,{schema:t,value:Array.isArray(i)?i:[],path:a,rootValue:o,onChange:s,language:c,canonical:l,collectionName:u,mediaPurposes:d}):AO(t,n)===`richtext`?(0,U.jsx)(MD,{compact:!0,value:PO(i),onChange:h}):AO(t,n)===`textarea`?(0,U.jsx)(hD,{"aria-label":p,className:`min-h-24`,value:PO(i),maxLength:t.maxLength,onChange:e=>h(e.target.value)}):t.format===`date-time`?(0,U.jsx)(gO,{label:p,language:c,value:i,onChange:e=>h(e?.toISOString()??``)}):(0,U.jsx)(dv,{type:`text`,"aria-label":p,value:PO(i),onChange:e=>h(e.target.value)})]})}function gO({label:e,language:t,value:n,onChange:r}){let i=mS(n),a=H.useId();return(0,U.jsxs)(fD,{children:[(0,U.jsx)(pD,{asChild:!0,children:(0,U.jsxs)(Y,{type:`button`,variant:`outline`,className:`w-full justify-start font-normal`,"aria-label":e,children:[(0,U.jsx)(Et,{}),i?pS(i.getTime()):Z(t,`entryEdit.dateTime.select`)]})}),(0,U.jsxs)(mD,{className:`w-auto p-0`,align:`start`,children:[(0,U.jsx)(uD,{mode:`single`,selected:i,defaultMonth:i,onSelect:e=>{if(!e)return;let t=new Date(e);t.setHours(i?.getHours()??0,i?.getMinutes()??0,0,0),r(t)}}),(0,U.jsxs)(`div`,{className:`flex items-center gap-3 border-t p-3`,children:[(0,U.jsx)(`label`,{className:`text-sm font-medium`,htmlFor:a,children:Z(t,`entryEdit.dateTime.time`)}),(0,U.jsx)(dv,{id:a,type:`time`,className:`w-32`,disabled:!i,value:i?`${String(i.getHours()).padStart(2,`0`)}:${String(i.getMinutes()).padStart(2,`0`)}`:``,onChange:e=>{if(!i)return;let[t,n]=e.target.value.split(`:`).map(Number),a=new Date(i);a.setHours(t,n,0,0),r(a)}})]})]})]})}function _O({schema:e,value:t,rootValue:n}){if(uS(e)){let e=fS(t,n.currency);return e?(0,U.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}if(dS(e)){let e=pS(t);return e?(0,U.jsxs)(`p`,{className:`text-xs text-muted-foreground`,children:[`= `,e]}):null}return null}function vO({schema:e,value:t,path:n,rootValue:r,onChange:i,language:a,canonical:o=null,collectionName:s,mediaPurposes:c}){let l=e.items??{},u=e=>i(RO(r,n,e));return(0,U.jsxs)(`div`,{className:`space-y-3 rounded-lg border bg-muted/20 p-3`,children:[t.map((e,d)=>(0,U.jsxs)(`div`,{className:`rounded-lg border border-border/70 bg-card/50 p-3`,children:[(0,U.jsxs)(`div`,{className:`mb-3 flex items-center justify-between gap-2`,children:[(0,U.jsxs)(`span`,{className:`text-xs font-semibold text-muted-foreground`,children:[`#`,d+1]}),(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(a,`entryEdit.removeItem`),"aria-label":Z(a,`entryEdit.removeItem`),onClick:()=>u(t.filter((e,t)=>t!==d)),children:(0,U.jsx)(zn,{className:`size-3.5`,"aria-hidden":!0})})]}),kO(l)===`object`&&l.properties?(0,U.jsx)(fO,{schema:l,value:r,path:[...n,String(d)],onChange:i,language:a,canonical:o,collectionName:s,mediaPurposes:c}):(0,U.jsx)(dv,{value:PO(e),onChange:e=>{let n=[...t];n[d]=e.target.value,u(n)}})]},d)),(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,size:`sm`,onClick:()=>u([...t,IO(l)]),children:[(0,U.jsx)(Tn,{className:`size-3.5`,"aria-hidden":!0}),Z(a,`entryEdit.addItem`)]})]})}function yO({value:e,path:t,collectionName:n,mediaPurposes:r,language:i,onChange:a}){let o=H.useRef(null),[s,c]=H.useState(!1),[l,u]=H.useState(null),[d,f]=H.useState(null),[p,m]=H.useState(!1),h=yD(r,n,t),g=typeof e==`string`?e:``,_=rt({queryKey:[`media-asset`,g],queryFn:()=>ty.get(`/media/${encodeURIComponent(g)}`),enabled:g.length>0,retry:!1});async function v(e){c(!0),u(null);try{let t=await _D({file:e,purposes:r,preferredPurpose:h,language:i});a(t.id),f(bD(t))}catch(e){u(e instanceof Error?e.message:String(e))}finally{c(!1),o.current&&(o.current.value=``)}}return(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,U.jsx)(bO,{assetId:g,asset:_.data,isError:_.isError,language:i}),(0,U.jsx)(dv,{className:`min-w-0 flex-1`,value:PO(e),onChange:e=>a(e.target.value)}),(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>m(!0),children:[(0,U.jsx)(Qt,{className:`size-4`,"aria-hidden":!0}),Z(i,`media.pick`)]}),(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>o.current?.click(),disabled:s||r.length===0,title:h??Z(i,`entryEdit.noMediaPurpose`),children:[(0,U.jsx)(Xt,{className:`size-4`,"aria-hidden":!0}),s?Z(i,`entryEdit.uploadingMedia`):Z(i,`entryEdit.uploadMedia`)]})]}),(0,U.jsx)(`input`,{ref:o,type:`file`,accept:`image/*`,className:`hidden`,onChange:e=>{let t=e.currentTarget.files?.[0];t&&v(t)}}),h?(0,U.jsx)(`p`,{className:`text-xs text-muted-foreground`,children:h}):null,d?(0,U.jsx)(`a`,{className:`text-xs text-primary hover:underline`,href:d,target:`_blank`,rel:`noreferrer`,children:d}):null,l?(0,U.jsx)(`p`,{className:`text-xs text-destructive`,children:l}):null,(0,U.jsx)(YS,{open:p,onOpenChange:m,children:(0,U.jsxs)(QS,{closeLabel:Z(i,`common.close`),className:`max-h-[85vh] w-full max-w-3xl overflow-y-auto`,children:[(0,U.jsxs)($S,{children:[(0,U.jsx)(tC,{children:Z(i,`media.pickTitle`)}),(0,U.jsx)(nC,{children:Z(i,`media.pickDescription`)})]}),(0,U.jsx)(JD,{language:i,purposes:r,searchTerm:``,emptyIcon:Qt,onPick:e=>{a(e.id),f(e.primaryUrl),m(!1)}})]})})]})}function bO({assetId:e,asset:t,isError:n,language:r}){return e?(0,U.jsx)(`div`,{className:`flex size-9 shrink-0 items-center justify-center overflow-hidden rounded-md border bg-muted/40`,title:n?Z(r,`entryEdit.mediaMissing`):e,children:t?.primaryUrl?(0,U.jsx)(`img`,{src:t.primaryUrl,alt:``,className:`size-full object-cover`}):(0,U.jsx)(Qt,{className:`size-4 text-muted-foreground`,"aria-hidden":!0})}):null}function xO({value:e,onChange:t}){let[n,r]=H.useState(JSON.stringify(e??{},null,2)),[i,a]=H.useState(null);return H.useEffect(()=>{r(JSON.stringify(e??{},null,2))},[e]),(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsx)(hD,{className:`min-h-32 font-mono`,value:n,onChange:e=>{let n=e.target.value;r(n);try{t(JSON.parse(n)),a(null)}catch(e){a(e instanceof Error?e.message:String(e))}}}),i?(0,U.jsx)(`p`,{className:`text-xs text-destructive`,children:i}):null]})}function SO({sections:e,language:t,canonical:n,operations:r,onOperationSuccess:i}){return(0,U.jsx)(U.Fragment,{children:e.map(e=>{let a=VO(r,e.collection.name);return(0,U.jsxs)(Mb,{children:[(0,U.jsx)(uO,{title:ry(e.collection.title,t,n)??e.collection.name,body:Z(t,`entryEdit.relationship`,{child:e.relationship.childField,parent:e.relationship.parentField})}),(0,U.jsx)(`div`,{className:`space-y-2`,children:e.entries.length===0?(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(t,`entryEdit.noChildEntries`)}):e.entries.map(r=>(0,U.jsxs)(`div`,{className:`flex items-center justify-between gap-3 rounded-lg border bg-card p-3 text-sm text-foreground transition-colors hover:bg-accent`,children:[(0,U.jsxs)(`a`,{href:`/admin/c/${encodeURIComponent(r.collection)}/${encodeURIComponent(r.id)}`,className:`flex min-w-0 flex-1 items-center gap-3`,children:[(0,U.jsxs)(`span`,{className:`min-w-0`,children:[(0,U.jsx)(`span`,{className:`block truncate font-semibold`,children:DO(r.data,Z(t,`collection.untitled`),e.collection,r.id)}),(0,U.jsxs)(`span`,{className:`mt-1 flex flex-wrap items-center gap-2 text-xs text-muted-foreground`,children:[r.collection,(0,U.jsx)(sS,{status:r.status}),(0,U.jsxs)(`span`,{children:[`v`,r.version]})]})]}),(0,U.jsx)(Ut,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),(0,U.jsx)(GO,{row:r,operations:a,language:t,canonical:n,onSuccess:i})]},r.id))})]},`${e.collection.name}:${e.relationship.childField}`)})})}function CO({section:e,currentCollection:t,currentEntryId:n,sharedHref:r,language:i,siteLocales:a,canCreate:o,pending:s,onCreate:c}){let l=sO(e.collection.schema,a),u=t!==e.collection.name;return(0,U.jsx)(`nav`,{"aria-label":Z(i,`entryEdit.languageTabs`),className:`-mt-2 border-b`,children:(0,U.jsxs)(`div`,{role:`tablist`,className:`flex max-w-full gap-1 overflow-x-auto pb-2`,children:[u?(0,U.jsx)(`span`,{role:`tab`,"aria-selected":`true`,className:uv({variant:`secondary`,size:`sm`}),children:Z(i,`entryEdit.sharedFields`)}):r?(0,U.jsx)(`a`,{role:`tab`,"aria-selected":`false`,href:r,className:uv({variant:`ghost`,size:`sm`}),children:Z(i,`entryEdit.sharedFields`)}):null,l.map(t=>{let r=e.entries.find(e=>e.locale===t),a=r?.id===n,l=`${nO(t)} · ${t}`;if(r)return(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsxs)(`a`,{role:`tab`,"aria-selected":a,"aria-current":a?`page`:void 0,href:`/admin/c/${encodeURIComponent(r.collection)}/${encodeURIComponent(r.id)}`,className:uv({variant:a?`secondary`:`ghost`,size:`sm`}),children:[(0,U.jsx)(qt,{"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`max-w-40 truncate`,children:nO(t)}),(0,U.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:t})]})}),(0,U.jsx)(Tv,{children:l})]},t);let u=!o||s||e.relationship.parentValue===null,d=(0,U.jsxs)(Y,{type:`button`,role:`tab`,"aria-selected":`false`,variant:`outline`,size:`sm`,className:`border-dashed`,disabled:u,onClick:()=>c(t),children:[(0,U.jsx)(Tn,{"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`max-w-40 truncate`,children:nO(t)}),(0,U.jsx)(`span`,{className:`font-mono text-[0.625rem] text-muted-foreground`,children:t})]});return e.relationship.parentValue===null?(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(`span`,{className:`inline-flex`,children:d})}),(0,U.jsx)(Tv,{children:Z(i,`entryEdit.saveSharedFirst`)})]},t):(0,U.jsx)(H.Fragment,{children:d},t)})]})})}function wO({language:e,locale:t,locales:n,disabled:r,onChange:i}){return r?(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(`span`,{className:`inline-flex cursor-default`,children:(0,U.jsx)(tO,{locale:t||null})})}),(0,U.jsx)(Tv,{children:Z(e,`entryEdit.languageLocked`)})]}):(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(qt,{className:`size-4 text-primary`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`sr-only`,children:Z(e,`entryEdit.contentLanguage`)}),(0,U.jsxs)(hx,{value:t||void 0,onValueChange:i,children:[(0,U.jsx)(_x,{size:`sm`,"aria-label":Z(e,`entryEdit.contentLanguage`),children:(0,U.jsx)(gx,{placeholder:Z(e,`entryEdit.selectLanguage`)})}),(0,U.jsx)(vx,{children:n.map(e=>(0,U.jsxs)(yx,{value:e,children:[nO(e),` · `,e]},e))})]})]})}function TO(e,t,n){if(!e.parent||!n)return null;let r=t[e.parent.childField];return typeof r!=`string`&&typeof r!=`number`&&typeof r!=`boolean`?null:{href:`/admin/c/${encodeURIComponent(e.parent.collection)}/${encodeURIComponent(n)}`,label:`${e.parent.collection} / ${String(r)}`}}function EO(e){return e.relationship.kind===`field`}function DO(e,t,n,r){if(n?.lifecycle===`operational`){let i=n.list?.primaryField,a=i?e[i]:void 0;return typeof a==`string`&&a.trim()?a:typeof a==`number`||typeof a==`boolean`?String(a):r||t}for(let t of[`title`,`name`,`slug`,`id`]){let n=e[t];if(typeof n==`string`&&n.trim())return n}if(n?.schema){let t=n.schema.properties??{};for(let r of n.schema.required??[]){let n=t[r];if(!n||kO(n)!==`string`)continue;let i=e[r];if(typeof i==`string`&&i.trim())return i}}return t}function OO(e,t){return(t.required??[]).some(t=>{let n=e[t];return n==null||n===``||Array.isArray(n)&&n.length===0})}function kO(e){return(Array.isArray(e.type)?e.type.find(e=>e!==`null`):e.type)||(e.properties?`object`:e.items?`array`:`string`)}function AO(e,t){let n=typeof e[`x-mcp-hint`]==`string`?e[`x-mcp-hint`]:``;return n===`markdown`||n===`html`||n===`richtext`?`richtext`:t??`input`}function jO(e,t){let n=e?.fields;if(!n||typeof n!=`object`||Array.isArray(n))return null;let r=n[t];return!r||typeof r!=`object`||Array.isArray(r)?null:r.widget===`textarea`?`textarea`:null}function MO(e){return e[`x-mantle-ref`]===`media_assets`}function NO(e){return typeof e[`x-mantle-bind`]==`string`}function PO(e){return e==null?``:typeof e==`string`?e:typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function FO(e){return typeof e==`number`&&Number.isFinite(e)||typeof e==`string`?e:``}function IO(e){if(e.default!==void 0)return e.default;let t=kO(e);return t===`object`?{}:t===`array`?[]:t===`boolean`?!1:t===`number`||t===`integer`?0:``}function LO(e,t){let n=e;for(let e of t)if(Array.isArray(n))n=n[Number(e)];else if(typeof n==`object`&&n)n=n[e];else return;return n}function RO(e,t,n){if(t.length===0)return zO(n);let r=structuredClone(e),i=r;for(let e=0;e<t.length-1;e+=1){let n=t[e],r=t[e+1];if(Array.isArray(i)){let e=Number(n);i[e]=i[e]??(BO(r)?[]:{}),i=i[e]}else if(typeof i==`object`&&i){let e=i;e[n]=e[n]??(BO(r)?[]:{}),i=e[n]}}let a=t[t.length-1];return Array.isArray(i)?i[Number(a)]=n:typeof i==`object`&&i&&(i[a]=n),r}function zO(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function BO(e){return/^\d+$/.test(e)}function VO(e,t){return(e??[]).filter(e=>e.rowBindings.some(e=>e.collection===t))}function HO(e,t){return(e??[]).filter(e=>e.uiSchema?.collectionAction===t)}function UO(e){return Object.entries(e.properties??{}).filter(([,e])=>e[`x-mcp-hint`]===`idempotency-key`).map(([e])=>e)}function WO(e,t){let n=new Set(t),r={...e.properties??{}};for(let e of n)delete r[e];return{...e,properties:r,required:(e.required??[]).filter(e=>!n.has(e))}}function GO({row:e,operations:t,language:n,canonical:r,onSuccess:i,trigger:a}){let[o,s]=H.useState(null);return t.length===0?null:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(Vy,{children:[(0,U.jsx)(Hy,{asChild:!0,children:a??(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(n,`rowActions.menuLabel`),"aria-label":Z(n,`rowActions.menuLabel`),children:(0,U.jsx)(Ht,{className:`size-3.5`,"aria-hidden":!0})})}),(0,U.jsx)(Uy,{align:`end`,children:t.map(e=>(0,U.jsx)(Wy,{onSelect:()=>s(e),children:ry(e.title,n,r)??iy(e.name)},e.name))})]}),o?(0,U.jsx)(qO,{operation:o,binding:o.rowBindings.find(t=>t.collection===e.collection),row:e,language:n,canonical:r,onClose:()=>s(null),onSuccess:()=>{s(null),i()}}):null]})}function KO({operations:e,language:t,canonical:n,onSuccess:r}){let[i,a]=H.useState(null);return e.length===0?null:(0,U.jsxs)(U.Fragment,{children:[e.map(e=>(0,U.jsxs)(Y,{type:`button`,onClick:()=>a(e),children:[(0,U.jsx)(Tn,{className:`size-4`,"aria-hidden":!0}),ry(e.title,t,n)??iy(e.name)]},e.name)),i?(0,U.jsx)(qO,{operation:i,language:t,canonical:n,onClose:()=>a(null),onSuccess:()=>{a(null),r()}}):null]})}function qO({operation:e,binding:t,row:n,language:r,canonical:i,onClose:a,onSuccess:o}){let s=ry(e.title,r,i)??iy(e.name),c=ry(e.description,r,i),l=t?.rowField??`id`,u=t?.inputField,d=rt({queryKey:[`entry-editor`,n?.collection??``,n?.id??``],queryFn:()=>{if(!n)throw Error(`row operation is missing its row`);return ty.get(`/entries/${encodeURIComponent(n.id)}`)},enabled:!!n}),f=H.useMemo(()=>{if(n)return l===`id`?n.id:d.data?.entry.data[l]??void 0},[d.data,n,l]),p=H.useMemo(()=>UO(e.input),[e.input]),[m,h]=H.useState(()=>Object.fromEntries(p.map(e=>[e,crypto.randomUUID()])));H.useEffect(()=>{f===void 0||!u||h(e=>({...e,[u]:f}))},[f,u]);let g=H.useMemo(()=>WO(e.input,[...u?[u]:[],...p]),[p,e.input,u]),_=u?e.input.properties?.[u]:void 0,v=u?ry(_?.title,r,i)??ry(_?.description,r,i)??iy(u):null,y=it({mutationFn:t=>ty.post(`/operations/${encodeURIComponent(e.name)}`,t),onSuccess:()=>{NS.success(Z(r,`ops.success`,{name:s})),o()}}),b=!u||f!==void 0;return(0,U.jsx)(YS,{open:!0,onOpenChange:e=>{e||a()},children:(0,U.jsxs)(QS,{closeLabel:Z(r,`common.close`),children:[(0,U.jsxs)($S,{children:[(0,U.jsx)(tC,{children:s}),c?(0,U.jsx)(nC,{children:c}):null]}),n&&d.isLoading?(0,U.jsx)(xv,{className:`h-24 w-full`}):(0,U.jsxs)(`div`,{className:`space-y-5`,children:[u?(0,U.jsxs)(`div`,{className:`space-y-2`,children:[(0,U.jsx)(`label`,{className:`text-sm font-semibold text-foreground`,children:v}),(0,U.jsx)(`p`,{className:`min-h-8 rounded-md border bg-muted/40 px-3 py-1.5 text-sm text-muted-foreground`,children:JO(f)})]}):null,(0,U.jsx)(fO,{schema:g,uiSchema:e.uiSchema,value:m,path:[],onChange:h,language:r,canonical:i,collectionName:e.name,mediaPurposes:[]})]}),n&&d.isError?(0,U.jsx)(Fb,{error:d.error}):null,y.isError?(0,U.jsx)(Ib,{error:gS(y.error)}):null,(0,U.jsxs)(eC,{children:[(0,U.jsx)(Y,{type:`button`,variant:`secondary`,onClick:a,disabled:y.isPending,children:Z(r,`rowActions.cancel`)}),(0,U.jsx)(Y,{type:`button`,onClick:()=>y.mutate(m),disabled:y.isPending||!b,children:y.isPending?Z(r,`ops.running`):Z(r,`ops.run`)})]})]})})}function JO(e){return e==null?``:typeof e==`string`||typeof e==`number`||typeof e==`boolean`?String(e):JSON.stringify(e)}function YO(e,t){if(uS(e)){let e=fS(t,void 0);if(e)return e}if(dS(e)){let e=pS(t);if(e)return e}return t==null||t===``?(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:`-`}):typeof t==`string`||typeof t==`number`||typeof t==`boolean`?String(t):(0,U.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(t)})}function XO(e,t){return typeof e==`string`&&e?e:e==null||e===``?Z(t,`collection.untitled`):JSON.stringify(e)}function ZO({language:e,searchable:t=!0,searchValue:n=``,filters:r=[],onSubmit:i}){let a=r.filter(e=>e.options),o=r.filter(e=>!e.options);return(0,U.jsxs)(`form`,{className:J(`space-y-3`,a.length>0?`mb-5`:`mb-3`),role:`search`,onSubmit:e=>{e.preventDefault();let t=new FormData(e.currentTarget);i({search:String(t.get(`search`)??``).trim(),filters:Object.fromEntries(r.map(({name:e})=>[e,String(t.get(`filter.${e}`)??``).trim()]))})},children:[t?(0,U.jsxs)(`div`,{className:`flex max-w-xl gap-2`,children:[(0,U.jsxs)(`label`,{className:`relative block flex-1`,"aria-label":Z(e,`collection.searchPlaceholder`),children:[(0,U.jsx)(kn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(dv,{name:`search`,className:`h-9 ps-9`,defaultValue:n,placeholder:Z(e,`collection.searchPlaceholder`)})]}),(0,U.jsx)($O,{language:e})]}):null,o.length>0?(0,U.jsxs)(`div`,{className:`flex flex-wrap items-end gap-3`,children:[o.map(e=>(0,U.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,U.jsx)(`span`,{children:e.label}),(0,U.jsx)(dv,{name:`filter.${e.name}`,className:`h-9 w-48`,defaultValue:e.value??``})]},e.name)),t?null:(0,U.jsx)($O,{language:e})]}):null,a.map(t=>(0,U.jsxs)(`div`,{className:`flex gap-2 overflow-x-auto pb-1`,"aria-label":t.label,children:[(0,U.jsx)(`input`,{type:`hidden`,name:`filter.${t.name}`,value:t.value??``}),(0,U.jsx)(QO,{href:t.allHref??`#`,active:!t.value,children:Z(e,`collection.filter.all`)}),t.options?.map(e=>(0,U.jsx)(QO,{href:e.href,active:t.value===e.value,children:e.label},e.value))]},t.name))]})}function QO({href:e,active:t,children:n}){return(0,U.jsx)(`a`,{href:e,"aria-current":t?`page`:void 0,className:J(`inline-flex h-8 shrink-0 items-center justify-center rounded-lg border px-3 text-xs font-medium`,`transition-colors duration-100 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring`,t?`border-border bg-secondary text-secondary-foreground`:`border-transparent text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:n})}function $O({language:e}){return(0,U.jsxs)(Y,{type:`submit`,variant:`secondary`,size:`sm`,className:`h-9`,children:[(0,U.jsx)(kn,{className:`size-4`,"aria-hidden":!0}),Z(e,`collection.search`)]})}var ek=50;function tk({collectionName:e}){let{language:t}=X(),n=_y(),r=He(),i=new URLSearchParams(n.search),a=i.get(`status`)??void 0,o=i.get(`search`)?.trim()??``,s=i.get(`filter_field`)??void 0,c=i.get(`filter_value`)??void 0,l=i.get(`sort`)||`updatedAt`,u=i.get(`direction`)===`asc`?`asc`:`desc`,d=i.get(`cursor`)||void 0,f=i.get(`cursor_direction`)===`backward`?`backward`:`forward`,p=rt({queryKey:[`collections`],queryFn:async()=>(await ty.get(`/collections`)).collections}),m=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}),h=rt({queryKey:[`me`],queryFn:()=>ty.get(`/me`),retry:!1}),g=m.data?.canonicalLocale??null,_=rt(uy()),v=H.useMemo(()=>VO(_.data,e),[_.data,e]),y=H.useMemo(()=>HO(_.data,e),[_.data,e]),b=rt({queryKey:[`entries`,e,a??`all`,o,s??`no-filter`,c??`no-value`,l,u,d??`first`,f],queryFn:()=>{let t=new URLSearchParams({collection:e,limit:String(ek),sort:l,direction:u});return a&&t.set(`status`,a),o&&t.set(`search`,o),s&&c&&(t.set(`filter_field`,s),t.set(`filter_value`,c)),d&&t.set(`cursor`,d),f===`backward`&&t.set(`cursor_direction`,`backward`),ty.get(`/entries?${t.toString()}`)}}),[x,S]=H.useState(null);H.useEffect(()=>{b.data&&S(b.data)},[b.data]);let C=b.data??x,w=b.isLoading&&!C,[T,E]=H.useState(new Set),D=H.useCallback(()=>E(new Set),[]),O=p.data?.find(t=>t.name===e),k=O?ry(O.title,t,g)??O.name:e,A=O?.lifecycle===`operational`,j=O?.schema?.readOnly===!0,M=h.data?.role===`owner`||h.data?.role===`editor`,N=!!h.data?.role&&!A&&!j,P=M&&!j,F=A?O?.list?.columns??[]:[],I=A?O?.filter??null:null,L=I?{name:I.field,label:ay(I.field,O?.schema?.properties?.[I.field],t,g),value:s===I.field?c:``,allHref:ak(e,{searchTerm:o,sortField:l,sortDirection:u}),options:I.values.map(t=>({value:t,label:iy(t),href:ak(e,{searchTerm:o,filterField:I.field,filterValue:t,sortField:l,sortDirection:u})}))}:O&&!A?{name:`status`,label:Z(t,`collection.table.status`),value:a,allHref:ak(O.name,{searchTerm:o,sortField:l,sortDirection:u}),options:dy.map(e=>({value:e,label:wb(t,e),href:ak(O.name,{status:e,searchTerm:o,sortField:l,sortDirection:u})}))}:null,R=A?O?.list?.primaryField??null:null,ee=R?ay(R,O?.schema?.properties?.[R],t,g):Z(t,`collection.table.title`),te=H.useCallback(()=>{D(),r.invalidateQueries({queryKey:[`entries`,e]})},[e,r,D]),z=it({mutationFn:({id:e,title:t,version:n})=>ty.patch(`/entries/${encodeURIComponent(e)}`,{data:{title:t},expectedVersion:n}),onSuccess:te}),B=it({mutationFn:e=>ty.delete(`/entries/${encodeURIComponent(e)}`),onSuccess:te}),V=it({mutationFn:()=>ty.post(`/entries`,{collection:e,data:{}}),onSuccess:t=>{window.location.href=`/admin/c/${encodeURIComponent(e)}/${encodeURIComponent(t.entry.id)}`}});return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(jb,{eyebrow:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`a`,{href:`/admin`,className:`hover:underline`,children:Z(t,`collection.breadcrumb`)}),(0,U.jsx)(`span`,{className:`mx-2 text-foreground/30`,children:`/`}),(0,U.jsx)(`span`,{className:`text-foreground/70`,children:k})]}),title:k,description:rk(O,t,g),actions:(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center justify-end gap-2`,children:[(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>{let t=new URLSearchParams({collection:e});a&&t.set(`status`,a),o&&t.set(`search`,o),s&&c&&(t.set(`filter_field`,s),t.set(`filter_value`,c)),t.set(`sort`,l),t.set(`direction`,u),window.location.href=`/admin/api/entries/export?${t.toString()}`},children:[(0,U.jsx)(Bt,{className:`size-4`,"aria-hidden":!0}),Z(t,`collection.export`)]}),O&&N?(0,U.jsxs)(Y,{type:`button`,onClick:()=>V.mutate(),disabled:V.isPending,children:[(0,U.jsx)(Tn,{className:`size-4`,"aria-hidden":!0}),V.isPending?Z(t,`crud.saving`):Z(t,`collection.create`)]}):null,(0,U.jsx)(KO,{operations:y,language:t,canonical:g,onSuccess:te})]})}),V.isError?(0,U.jsx)(Fb,{error:V.error}):null,O?(0,U.jsx)(ZO,{language:t,searchValue:o,filters:L?[L]:[],onSubmit:({search:e,filters:t})=>{let n=I?t[I.field]:void 0;window.location.href=ak(O.name,{status:A?a:t.status||void 0,searchTerm:e,filterField:n?I?.field:void 0,filterValue:n||void 0,sortField:l,sortDirection:u})}},n.search):null,w&&(0,U.jsx)(lk,{}),b.isError&&!C&&(0,U.jsx)(Fb,{error:b.error}),C&&C.items.length===0&&(0,U.jsx)(Pb,{icon:Gt,title:Z(t,`collection.empty.title`),description:o?Z(t,`collection.empty.search`,{search:o}):c?Z(t,`collection.empty.withStatus`,{collection:k,status:iy(c)}):a?Z(t,`collection.empty.withStatus`,{collection:k,status:a}):Z(t,`collection.empty.all`,{collection:k})}),C&&C.items.length>0&&(0,U.jsxs)(U.Fragment,{children:[T.size>0&&M&&!j?(0,U.jsx)(nk,{language:t,collection:O,selectedIds:[...T],onDone:te,onClear:D}):null,(0,U.jsxs)(Bx,{children:[(0,U.jsx)(Vx,{children:(0,U.jsxs)(Ux,{children:[P?(0,U.jsx)(Wx,{className:`w-10`,children:(0,U.jsx)(Nx,{"aria-label":Z(t,`collection.table.selectAll`),checked:C.items.every(e=>T.has(e.id))?!0:C.items.some(e=>T.has(e.id))?`indeterminate`:!1,onCheckedChange:e=>{E(t=>{let n=new Set(t);for(let t of C.items)e===!0?n.add(t.id):n.delete(t.id);return n})}})}):null,(0,U.jsx)(sk,{className:`hidden md:table-cell`,label:Z(t,`collection.table.id`),field:`id`,activeField:l,direction:u,href:ok(e,a,o,`id`,l,u,s,c)}),!A||R?R&&O?.sortableFields?.includes(R)?(0,U.jsx)(sk,{label:ee,field:R,activeField:l,direction:u,href:ok(e,a,o,R,l,u,s,c)}):(0,U.jsx)(Wx,{children:ee}):null,A?F.map(n=>O?.sortableFields?.includes(n)?(0,U.jsx)(sk,{label:ay(n,O?.schema?.properties?.[n],t,g),field:n,activeField:l,direction:u,href:ok(e,a,o,n,l,u,s,c)},n):(0,U.jsx)(Wx,{children:ay(n,O?.schema?.properties?.[n],t,g)},n)):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(sk,{className:`hidden md:table-cell`,label:Z(t,`collection.table.status`),field:`status`,activeField:l,direction:u,href:ok(e,a,o,`status`,l,u,s,c)}),O&&(O.localized||O.hasTranslations)?(0,U.jsx)(Wx,{children:(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-1.5`,children:[(0,U.jsx)(qt,{className:`size-3.5`,"aria-hidden":!0}),Z(t,`collection.table.locale`)]})}):null,(0,U.jsx)(Wx,{className:`hidden md:table-cell`,children:Z(t,`collection.table.version`)})]}),(0,U.jsx)(sk,{className:`hidden md:table-cell`,label:Z(t,`collection.table.updated`),field:`updatedAt`,activeField:l,direction:u,href:ok(e,a,o,`updatedAt`,l,u,s,c)}),(0,U.jsx)(Wx,{children:Z(t,`collection.table.actions`)})]})}),(0,U.jsx)(Hx,{children:C.items.map(e=>(0,U.jsx)(dk,{row:e,language:t,canonical:g,collection:O,siteLocales:m.data?.locales??[],dataColumns:A?F:null,primaryField:A?R:null,boundOperations:v,onOperationSuccess:te,selected:T.has(e.id),onToggleSelect:t=>{E(n=>{let r=new Set(n);return t?r.add(e.id):r.delete(e.id),r})},onRename:t=>z.mutateAsync({id:e.id,title:t,version:e.version}),onDelete:()=>B.mutateAsync(e.id),busy:z.isPending&&z.variables?.id===e.id||B.isPending&&B.variables===e.id,canEdit:!j&&(M||h.data?.role===`contributor`&&!A&&e.status===`draft`),canDelete:M&&!j},e.id))})]}),b.isFetching&&!b.data?(0,U.jsx)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:Z(t,`collection.refreshing`)}):null,(0,U.jsx)(ck,{collectionName:e,status:a,searchTerm:o,filterField:s,filterValue:c,sortField:l,sortDirection:u,previousCursor:C.previous_cursor,nextCursor:C.next_cursor,language:t})]})]})}function nk({language:e,collection:t,selectedIds:n,onDone:r,onClear:i}){let[a,o]=H.useState(!1),[s,c]=H.useState([]),l=t&&t.lifecycle!==`operational`,u=iS();async function d(e){o(!0),c([]);let t=[];for(let r of n)try{await e(r)}catch(e){t.push(e)}o(!1),c(t),r()}async function f(){await u({description:Z(e,`collection.bulk.deleteConfirm`,{count:String(n.length)})})&&d(e=>ty.delete(`/entries/${encodeURIComponent(e)}`))}return(0,U.jsxs)(`div`,{className:`mb-3 flex flex-wrap items-center gap-2 rounded-lg border bg-muted/40 px-3 py-2`,children:[(0,U.jsx)(`span`,{className:`text-sm font-medium`,children:Z(e,`collection.bulk.selectedCount`,{count:String(n.length)})}),(0,U.jsxs)(`div`,{className:`ml-auto flex items-center gap-2`,children:[l?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Y,{type:`button`,variant:`secondary`,size:`sm`,disabled:a,onClick:()=>void d(e=>ty.post(`/entries/${encodeURIComponent(e)}/publish`,{})),children:Z(e,`collection.bulk.publish`)}),(0,U.jsx)(Y,{type:`button`,variant:`secondary`,size:`sm`,disabled:a,onClick:()=>void d(e=>ty.post(`/entries/${encodeURIComponent(e)}/unpublish`,{})),children:Z(e,`collection.bulk.unpublish`)})]}):null,(0,U.jsx)(Y,{type:`button`,variant:`destructive`,size:`sm`,disabled:a,onClick:()=>void f(),children:Z(e,`collection.bulk.delete`)}),(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`sm`,onClick:i,children:(0,U.jsx)(Qn,{className:`size-3.5`,"aria-hidden":!0})})]}),s.length>0?(0,U.jsx)(`div`,{className:`w-full space-y-1`,children:s.map((e,t)=>(0,U.jsx)(Fb,{error:e},t))}):null]})}function rk(e,t,n){let r=e?ry(e.title,t,n)??e.name:``,i=ry(e?.description,t,n)?.trim(),a=ik(e);return i?(0,U.jsx)(Rb,{description:i,summaryLabel:Z(t,`collection.schemaDetails`),collapsedIntro:Z(t,a,{name:r})}):Z(t,a,{name:r})}function ik(e){let t=!e||e.lifecycle!==`operational`,n=e?e.localized||e.hasTranslations:!1;return t&&n?`collection.schemaSummary.lifecycleAndI18n`:t?`collection.schemaSummary.lifecycleOnly`:n?`collection.schemaSummary.i18nOnly`:`collection.schemaSummary.plain`}function ak(e,t){let n=new URLSearchParams;t.status&&n.set(`status`,t.status),t.searchTerm&&n.set(`search`,t.searchTerm),t.filterField&&t.filterValue&&(n.set(`filter_field`,t.filterField),n.set(`filter_value`,t.filterValue)),t.sortField&&t.sortField!==`updatedAt`&&n.set(`sort`,t.sortField),t.sortDirection&&t.sortDirection!==`desc`&&n.set(`direction`,t.sortDirection),t.cursor&&n.set(`cursor`,t.cursor),t.cursorDirection===`backward`&&n.set(`cursor_direction`,`backward`);let r=n.toString();return`/admin/c/${encodeURIComponent(e)}${r?`?${r}`:``}`}function ok(e,t,n,r,i,a,o,s){return ak(e,{status:t,searchTerm:n,filterField:o,filterValue:s,sortField:r,sortDirection:i===r?a===`asc`?`desc`:`asc`:r===`updatedAt`?`desc`:`asc`})}function sk({className:e,label:t,field:n,activeField:r,direction:i,href:a}){return(0,U.jsx)(Wx,{className:e,children:(0,U.jsxs)(`a`,{href:a,className:`inline-flex items-center gap-1.5 font-medium hover:text-foreground`,children:[t,(0,U.jsx)(r===n?i===`asc`?bt:ht:vt,{className:J(`size-3.5`,r===n?`opacity-100`:`opacity-35`),"aria-hidden":!0})]})})}function ck({collectionName:e,status:t,searchTerm:n,filterField:r,filterValue:i,sortField:a,sortDirection:o,previousCursor:s,nextCursor:c,language:l}){if(!s&&!c)return null;let u={status:t,searchTerm:n,filterField:r,filterValue:i,sortField:a,sortDirection:o};return(0,U.jsx)(Px,{className:`mt-4 justify-end`,"aria-label":Z(l,`collection.pagination`),children:(0,U.jsxs)(Fx,{children:[(0,U.jsx)(Ix,{children:(0,U.jsx)(Rx,{href:s?ak(e,{...u,cursor:s,cursorDirection:`backward`}):void 0,text:Z(l,`collection.previousPage`),"aria-label":Z(l,`collection.previousPage`),"aria-disabled":!s||void 0,tabIndex:s?void 0:-1,className:J(!s&&`pointer-events-none opacity-50`)})}),(0,U.jsx)(Ix,{children:(0,U.jsx)(zx,{href:c?ak(e,{...u,cursor:c,cursorDirection:`forward`}):void 0,text:Z(l,`collection.nextPage`),"aria-label":Z(l,`collection.nextPage`),"aria-disabled":!c||void 0,tabIndex:c?void 0:-1,className:J(!c&&`pointer-events-none opacity-50`)})})]})})}function lk(){return(0,U.jsx)(`div`,{className:`overflow-hidden rounded-lg border`,children:[0,1,2,3,4].map(e=>(0,U.jsxs)(`div`,{className:`flex items-center gap-4 border-b p-3 last:border-b-0`,children:[(0,U.jsx)(xv,{className:`h-3 w-16`}),(0,U.jsx)(xv,{className:`h-3 flex-1`}),(0,U.jsx)(xv,{className:`h-6 w-20 rounded-full`})]},e))})}function uk({id:e,language:t}){let[n,r]=H.useState(!1);async function i(){try{await navigator.clipboard.writeText(e),r(!0),window.setTimeout(()=>r(!1),1400)}catch{r(!1)}}return(0,U.jsxs)(`button`,{type:`button`,className:`group inline-flex items-center gap-1 hover:text-foreground`,title:`${e} — ${Z(t,`collection.copyId`)}`,onClick:()=>void i(),children:[hS(e),n?(0,U.jsx)(Ot,{className:`size-3 text-[color:var(--success)]`,"aria-hidden":!0}):(0,U.jsx)(Rt,{className:`size-3 opacity-40 transition-opacity group-hover:opacity-80`,"aria-hidden":!0})]})}function dk({row:e,language:t,canonical:n,collection:r,siteLocales:i,dataColumns:a,primaryField:o,boundOperations:s,onOperationSuccess:c,selected:l,onToggleSelect:u,onRename:d,onDelete:f,busy:p,canEdit:m,canDelete:h}){let g=a!==null,_=XO(g?o?e.data_preview?.[o]:e.id:e.title,t),[v,y]=H.useState(!1),[b,x]=H.useState(_),[S,C]=H.useState(null),w=iS();H.useEffect(()=>{v||x(_)},[v,_]);async function T(){let e=b.trim();if(!e||e===_){y(!1),x(_);return}C(null);try{await d(e),y(!1)}catch(e){C(e instanceof Error?e.message:String(e))}}async function E(){if(await w({description:Z(t,`crud.deleteConfirm`,{name:_})})){C(null);try{await f()}catch(e){C(e instanceof Error?e.message:String(e))}}}return(0,U.jsxs)(Ux,{children:[h?(0,U.jsx)(Gx,{children:(0,U.jsx)(Nx,{"aria-label":Z(t,`collection.table.selectRow`,{name:_}),checked:l,onCheckedChange:e=>u(e===!0)})}):null,(0,U.jsx)(Gx,{className:`hidden font-mono text-xs text-muted-foreground md:table-cell`,children:(0,U.jsx)(uk,{id:String(e.id),language:t})}),!g||o?(0,U.jsx)(Gx,{className:`max-w-[28rem]`,children:(0,U.jsxs)(`div`,{className:`min-w-44 md:min-w-64`,children:[g?(0,U.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate font-medium hover:underline`,title:_,children:YO(r?.schema?.properties?.[o??``],e.data_preview?.[o??``])}):v?(0,U.jsxs)(`div`,{className:`flex items-center gap-1`,children:[(0,U.jsx)(dv,{className:`h-8 min-w-0 flex-1`,value:b,autoFocus:!0,disabled:p,onChange:e=>x(e.target.value),onBlur:()=>void T(),onKeyDown:e=>{e.key===`Enter`&&T(),e.key===`Escape`&&(x(_),y(!1))}}),(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`crud.saveTitle`),disabled:p,onMouseDown:e=>e.preventDefault(),onClick:()=>void T(),children:(0,U.jsx)(Ot,{className:`size-3.5`,"aria-hidden":!0})}),(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`crud.cancelTitle`),disabled:p,onMouseDown:e=>e.preventDefault(),onClick:()=>{x(_),y(!1)},children:(0,U.jsx)(Qn,{className:`size-3.5`,"aria-hidden":!0})})]}):m?(0,U.jsxs)(`button`,{type:`button`,className:`group inline-flex max-w-full items-center gap-2 text-left`,onClick:()=>y(!0),title:_,children:[(0,U.jsx)(`span`,{className:`truncate`,children:fk(e.title,t)}),(0,U.jsx)(Cn,{className:`size-3 shrink-0 opacity-0 transition-opacity group-hover:opacity-60`,"aria-hidden":!0})]}):(0,U.jsx)(`a`,{href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,className:`block truncate font-medium hover:underline`,title:_,children:fk(e.title,t)}),S?(0,U.jsx)(`p`,{className:`mt-1 text-xs text-destructive`,children:S}):null]})}):null,a?a.map(t=>(0,U.jsx)(Gx,{className:`text-muted-foreground`,children:YO(r?.schema?.properties?.[t],e.data_preview?.[t])},t)):(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Gx,{className:`hidden md:table-cell`,children:(0,U.jsx)(sS,{status:e.status})}),r&&(r.localized||r.hasTranslations)?(0,U.jsx)(Gx,{children:r.hasTranslations?(0,U.jsx)(rO,{locales:i,available:e.translation_locales,language:t}):(0,U.jsx)(tO,{locale:e.locale})}):null,(0,U.jsxs)(Gx,{className:`hidden font-mono text-xs text-muted-foreground md:table-cell`,children:[`v`,e.version]})]}),(0,U.jsx)(Gx,{className:`hidden text-muted-foreground md:table-cell`,children:pS(e.updated_at)??`-`}),(0,U.jsxs)(Gx,{children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-1`,children:[m?(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,U.jsx)(`a`,{title:Z(t,`crud.editTooltip`,{name:_}),"aria-label":Z(t,`crud.editTooltip`,{name:_}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,U.jsx)(Cn,{className:`size-3.5`,"aria-hidden":!0})})}):(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,U.jsx)(`a`,{title:Z(t,`crud.viewTooltip`,{name:_}),"aria-label":Z(t,`crud.viewTooltip`,{name:_}),href:`/admin/c/${encodeURIComponent(e.collection)}/${encodeURIComponent(e.id)}`,children:(0,U.jsx)(Wt,{className:`size-3.5`,"aria-hidden":!0})})}),h?(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,title:Z(t,`crud.deleteTooltip`,{name:_}),disabled:p,onClick:()=>void E(),children:(0,U.jsx)(zn,{className:`size-3.5`,"aria-hidden":!0})}):null,(0,U.jsx)(GO,{row:e,operations:s,language:t,canonical:n,onSuccess:c})]}),(0,U.jsx)(`span`,{className:`sr-only`,children:r?ry(r.title,t,n)??r.name:``})]})]})}function fk(e,t){return e==null||e===``?(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:Z(t,`collection.untitled`)}):typeof e==`string`?e:(0,U.jsx)(`span`,{className:`font-mono text-xs`,children:JSON.stringify(e)})}var pk=50;async function mk(e,t){let n=new URLSearchParams;for(let[e,r]of Object.entries(t))r!=null&&r!==``&&n.set(e,String(r));let r=n.toString(),i=await fetch(`/admin/api/views/${encodeURIComponent(e)}${r?`?${r}`:``}`,{credentials:`same-origin`,headers:{Accept:`application/json`}}),a=await i.json();if(!i.ok||!a.ok){let e=`diagnostic`in a?a.diagnostic.message:`${i.status} ${i.statusText}`;throw Error(e)}return a}function hk({name:e}){let{language:t}=X(),n=_y(),r=H.useMemo(()=>new URLSearchParams(n.search),[n.search]),i=wk(r.get(`page`))??1,a=rt(ly()),o=rt({queryKey:[`collections`],queryFn:async()=>(await ty.get(`/collections`)).collections}),s=rt({queryKey:[`site`],queryFn:()=>ty.get(`/site`)}).data?.canonicalLocale??null,c=a.data?.find(t=>t.name===e),l=o.data?.find(e=>e.name===c?.from)?.schema,[u,d]=H.useState({});H.useEffect(()=>{d(_k(c?.params,r))},[c?.name,c?.params,n.search]);let f=vk(c?.params,r),p=rt({queryKey:[`view`,e,n.search],queryFn:()=>mk(e,{...Object.fromEntries(r),page:i,show:pk}),enabled:!!c&&f});if(a.isLoading||o.isLoading)return(0,U.jsx)(xv,{className:`h-64 w-full`});if(a.isError)return(0,U.jsx)(Fb,{error:a.error});if(!c)return(0,U.jsx)(`div`,{className:`space-y-6`,children:(0,U.jsx)(jb,{title:Z(t,`views.notFound.title`)})});let m=p.data?.data.rows??[],h=Tk(c,m),g=ry(c.title,t,s)??iy(c.name),_=xk(e,r);return(0,U.jsxs)(`div`,{className:`space-y-6`,children:[(0,U.jsx)(jb,{eyebrow:(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,U.jsx)(mx,{variant:`secondary`,children:Z(t,c.surface===`public`?`views.publicService`:`views.staffReport`)}),c.surface===`public`?(0,U.jsxs)(`code`,{className:`text-xs`,children:[`/api/views/`,c.name]}):null]}),title:g,description:Z(t,c.surface===`public`?`views.publicBody`:`views.page.body`,{schema:c.from??c.name}),actions:(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,disabled:!f,onClick:()=>{window.location.href=_},children:[(0,U.jsx)(Bt,{className:`size-4`,"aria-hidden":!0}),Z(t,`collection.export`)]})}),c.params?(0,U.jsxs)(Mb,{className:`space-y-4`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-semibold`,children:Z(t,`views.params.title`)}),(0,U.jsx)(fO,{schema:c.params,value:u,path:[],onChange:d,language:t,canonical:s,collectionName:c.name,mediaPurposes:[]}),(0,U.jsxs)(Y,{type:`button`,onClick:()=>{window.location.href=yk(e,r,c.params,u)},disabled:p.isFetching,children:[(0,U.jsx)(kn,{className:`size-4`,"aria-hidden":!0}),p.isFetching?Z(t,`views.running`):Z(t,`views.run`)]})]}):null,c.list.searchFields.length>0||c.list.filterFields.length>0?(0,U.jsx)(ZO,{language:t,searchable:c.list.searchFields.length>0,searchValue:r.get(`search`)??``,filters:c.list.filterFields.map(e=>({name:e,label:iy(e),value:r.get(`filter.${e}`)??``})),onSubmit:({search:t,filters:n})=>{let i=new URLSearchParams(r);Ck(i,`search`,t);for(let e of c.list.filterFields)Ck(i,`filter.${e}`,n[e]??``);i.delete(`page`),i.delete(`show`),window.location.href=Sk(e,i)}},n.search):null,p.isError?(0,U.jsx)(Fb,{error:p.error}):null,p.isLoading?(0,U.jsx)(xv,{className:`h-48 w-full`}):null,p.data&&m.length===0?(0,U.jsx)(Pb,{title:Z(t,`views.empty.title`),description:Z(t,`views.empty.body`)}):null,m.length>0?(0,U.jsxs)(Bx,{children:[(0,U.jsx)(Vx,{children:(0,U.jsx)(Ux,{children:h.map(e=>(0,U.jsx)(Wx,{children:ay(e,l?.properties?.[e],t,s)},e))})}),(0,U.jsx)(Hx,{children:m.map((e,t)=>(0,U.jsx)(Ux,{children:h.map(t=>(0,U.jsx)(Gx,{className:`text-muted-foreground`,children:YO(l?.properties?.[t],e[t])},t))},t))})]}):null,p.data?(0,U.jsx)(gk,{name:e,query:r,page:p.data.data.page,hasMore:p.data.data.hasMore,language:t}):null]})}function gk({name:e,query:t,page:n,hasMore:r,language:i}){if(n<=1&&!r)return null;let a=n>1?bk(e,t,n-1):void 0,o=r?bk(e,t,n+1):void 0;return(0,U.jsx)(Px,{className:`mt-4 justify-end`,"aria-label":Z(i,`collection.pagination`),children:(0,U.jsxs)(Fx,{children:[(0,U.jsx)(Ix,{children:(0,U.jsx)(Rx,{href:a,text:Z(i,`collection.previousPage`),"aria-label":Z(i,`collection.previousPage`),"aria-disabled":!a||void 0,tabIndex:a?void 0:-1,className:J(!a&&`pointer-events-none opacity-50`)})}),(0,U.jsx)(Ix,{children:(0,U.jsx)(zx,{href:o,text:Z(i,`collection.nextPage`),"aria-label":Z(i,`collection.nextPage`),"aria-disabled":!o||void 0,tabIndex:o?void 0:-1,className:J(!o&&`pointer-events-none opacity-50`)})})]})})}function _k(e,t){let n={};for(let[r,i]of Object.entries(e?.properties??{})){let e=t.get(r);e!==null&&(n[r]=i.type===`integer`||i.type===`number`?Number(e):i.type===`boolean`?e===`true`:e)}return n}function vk(e,t){return(e?.required??[]).every(e=>t.has(e))}function yk(e,t,n,r){let i=new URLSearchParams(t);for(let e of Object.keys(n.properties??{})){i.delete(e);let t=r[e];t!=null&&t!==``&&i.set(e,String(t))}return i.delete(`page`),i.delete(`show`),Sk(e,i)}function bk(e,t,n){let r=new URLSearchParams(t);return n>1?r.set(`page`,String(n)):r.delete(`page`),r.delete(`show`),Sk(e,r)}function xk(e,t){let n=new URLSearchParams(t);n.delete(`page`),n.delete(`show`);let r=n.toString();return`/admin/api/views/${encodeURIComponent(e)}/export${r?`?${r}`:``}`}function Sk(e,t){let n=t.toString();return`/admin/views/${encodeURIComponent(e)}${n?`?${n}`:``}`}function Ck(e,t,n){n?e.set(t,n):e.delete(t)}function wk(e){if(!e)return;let t=Number.parseInt(e,10);return Number.isFinite(t)&&t>0?t:void 0}function Tk(e,t){if(e.list.columns.length>0)return[...e.list.columns];if(e.fields&&e.fields.length>0)return[...e.fields];let n=new Set;for(let e of t)for(let t of Object.keys(e))n.add(t);return[...n]}function Ek({path:e}){let{language:t}=X();return(0,U.jsxs)(Tb,{className:`mx-auto max-w-md p-8 text-center`,children:[(0,U.jsx)(`h1`,{className:`mb-2 text-xl`,children:Z(t,`system.notFound.title`)}),(0,U.jsxs)(`p`,{className:`text-sm text-muted-foreground`,children:[Z(t,`system.notFound.body`),` `,(0,U.jsx)(`code`,{className:`font-mono text-xs`,children:e}),`.`]}),(0,U.jsx)(`p`,{className:`mt-4 text-sm`,children:(0,U.jsx)(`a`,{href:`/admin`,className:`text-primary hover:underline`,children:Z(t,`system.notFound.back`)})})]})}function Dk(){let{language:e,direction:t,theme:n,setLanguage:r,setTheme:i}=X();return(0,U.jsxs)(`div`,{className:`mx-auto max-w-4xl`,children:[(0,U.jsx)(jb,{eyebrow:Z(e,`preferences.heading`),title:Z(e,`preferences.page.title`),description:Z(e,`preferences.page.body`)}),(0,U.jsxs)(`div`,{className:`grid gap-4`,children:[(0,U.jsxs)(Mb,{children:[(0,U.jsx)(kk,{icon:nn,title:Z(e,`preferences.language`),body:Z(e,`preferences.page.languageBody`)}),(0,U.jsx)(Ok,{language:e,onChange:r})]}),(0,U.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,U.jsxs)(Mb,{children:[(0,U.jsx)(kk,{icon:_n,title:Z(e,`preferences.appearance`),body:Z(e,`preferences.page.appearanceBody`)}),(0,U.jsx)(`div`,{className:`mt-4 grid gap-2`,children:jk(e).map(e=>(0,U.jsx)(Ak,{selected:e.value===n,onClick:()=>i(e.value),icon:e.icon,children:e.label},e.value))})]}),(0,U.jsxs)(Mb,{children:[(0,U.jsx)(kk,{icon:wn,title:Z(e,`preferences.direction`),body:Z(e,`preferences.direction.auto`)}),(0,U.jsx)(`div`,{className:`mt-4 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-sm`,children:(0,U.jsx)(`span`,{className:`text-muted-foreground`,children:t===`rtl`?Z(e,`preferences.rtl`):Z(e,`preferences.ltr`)})})]})]})]})]})}function Ok({language:e,onChange:t}){let[n,r]=H.useState(!1),[i,a]=H.useState(``),o=vy.find(t=>t.value===e)??vy[0],s=i.trim().toLowerCase(),c=s?vy.filter(e=>[e.nativeLabel,e.label,e.value,e.htmlLang,e.direction].join(` `).toLowerCase().includes(s)):vy;return(0,U.jsxs)(`div`,{className:`relative mt-4`,children:[(0,U.jsxs)(`button`,{type:`button`,onClick:()=>r(e=>!e),className:`flex w-full items-center justify-between gap-3 rounded-lg border border-border/70 bg-background/30 px-3 py-2 text-start text-sm transition-colors hover:bg-accent hover:text-accent-foreground`,"aria-expanded":n,children:[(0,U.jsxs)(`span`,{className:`min-w-0`,children:[(0,U.jsx)(`span`,{className:`block truncate font-medium text-foreground`,children:o.nativeLabel}),(0,U.jsxs)(`span`,{className:`block truncate text-xs text-muted-foreground`,children:[o.label,` · `,o.value,` · `,jy(o.value).toUpperCase()]})]}),(0,U.jsx)(Nt,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0})]}),n?(0,U.jsxs)(`div`,{className:`absolute z-30 mt-2 w-full overflow-hidden rounded-lg border bg-popover text-popover-foreground shadow-md`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-2 border-b px-3 py-2`,children:[(0,U.jsx)(kn,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(`input`,{autoFocus:!0,value:i,onChange:e=>a(e.target.value),onKeyDown:e=>{e.key===`Escape`&&r(!1)},placeholder:Z(e,`preferences.language.search`),className:`min-w-0 flex-1 bg-transparent text-sm outline-none placeholder:text-muted-foreground/70`})]}),(0,U.jsx)(`div`,{className:`max-h-72 overflow-y-auto p-1`,children:c.length===0?(0,U.jsx)(`div`,{className:`px-3 py-6 text-center text-sm text-muted-foreground`,children:Z(e,`preferences.language.noResults`)}):c.map(n=>(0,U.jsxs)(`button`,{type:`button`,onClick:()=>{t(n.value),a(``),r(!1)},className:J(`flex w-full items-center justify-between gap-3 rounded-lg px-3 py-2 text-start text-sm transition-colors`,n.value===e?`bg-primary/10 text-foreground`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,U.jsxs)(`span`,{className:`min-w-0`,children:[(0,U.jsx)(`span`,{className:`block truncate font-medium`,children:n.nativeLabel}),(0,U.jsxs)(`span`,{className:`block truncate text-xs opacity-75`,children:[n.label,` · `,n.value,` · `,n.direction.toUpperCase()]})]}),(0,U.jsx)(Ot,{className:J(`size-4 shrink-0 text-primary`,n.value===e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]},n.value))})]}):null]})}function kk({icon:e,title:t,body:n}){return(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,U.jsx)(`div`,{className:`rounded-xl bg-primary/15 p-2 text-primary`,children:(0,U.jsx)(e,{className:`size-5`,"aria-hidden":!0})}),(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h2`,{className:`text-lg`,children:t}),(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:n})]})]})}function Ak({selected:e,onClick:t,icon:n,children:r}){return(0,U.jsxs)(`button`,{type:`button`,onClick:t,className:J(`flex min-h-10 items-center justify-between gap-3 rounded-lg border px-3 py-2 text-start text-sm transition-colors`,e?`border-primary/50 bg-primary/10 text-foreground`:`border-border/70 bg-background/30 text-muted-foreground hover:bg-accent hover:text-accent-foreground`),children:[(0,U.jsxs)(`span`,{className:`flex min-w-0 items-center gap-2`,children:[n?(0,U.jsx)(n,{className:`size-4 shrink-0`,"aria-hidden":!0}):null,(0,U.jsx)(`span`,{className:`truncate`,children:r})]}),(0,U.jsx)(Ot,{className:J(`size-4 shrink-0 text-primary`,e?`opacity-100`:`opacity-0`),"aria-hidden":!0})]})}function jk(e){return[{value:`light`,label:Z(e,`preferences.light`),icon:Pn},{value:`dark`,label:Z(e,`preferences.dark`),icon:vn},{value:`system`,label:Z(e,`preferences.system`),icon:_n}]}function Mk(){let{language:e}=X(),t=He(),n=rt({queryKey:[`site-settings`],queryFn:()=>ty.get(`/site-settings`)}),[r,i]=H.useState(null),[a,o]=H.useState(`brand`);H.useEffect(()=>{n.data&&i(n.data)},[n.data]);let s=it({mutationFn:e=>ty.patch(`/site-settings`,e),onSuccess:e=>{t.setQueryData([`site-settings`],e),i(e)}});if(n.isLoading||!r)return(0,U.jsx)(xv,{className:`h-64 w-full`});if(n.isError)return(0,U.jsx)(Fb,{error:n.error});let c=!Ik(r,n.data),l=s.isSuccess&&!c;function u(e,t){s.reset(),i(n=>n&&{...n,[e]:t})}return(0,U.jsxs)(`div`,{className:`flex min-h-full flex-col gap-6`,children:[(0,U.jsx)(jb,{title:Z(e,`settings.page.title`),description:Z(e,`settings.page.body`)}),s.isError?(0,U.jsx)(Ib,{error:gS(s.error)}):null,(0,U.jsxs)(`div`,{role:`tablist`,"aria-label":Z(e,`settings.tabsLabel`),className:`inline-flex gap-1 rounded-lg border bg-muted/40 p-1`,children:[(0,U.jsx)(Nk,{active:a===`brand`,icon:jn,label:Z(e,`settings.tab.brand`),onClick:()=>o(`brand`)}),(0,U.jsx)(Nk,{active:a===`tracking`,icon:Dt,label:Z(e,`settings.tab.tracking`),onClick:()=>o(`tracking`)})]}),a===`brand`?(0,U.jsxs)(Mb,{className:`grid max-w-5xl gap-4`,children:[(0,U.jsx)(Pk,{title:Z(e,`settings.brandSection`),body:Z(e,`settings.brandSectionBody`)}),(0,U.jsx)(Fk,{label:Z(e,`settings.siteBrand`),description:Z(e,`settings.siteBrandHelp`),children:(0,U.jsx)(dv,{value:r.brand,onChange:e=>u(`brand`,e.target.value)})}),(0,U.jsx)(Fk,{label:Z(e,`settings.siteTitle`),description:Z(e,`settings.siteTitleHelp`),children:(0,U.jsx)(dv,{value:r.title,onChange:e=>u(`title`,e.target.value)})}),(0,U.jsx)(Fk,{label:Z(e,`settings.siteDescription`),description:Z(e,`settings.siteDescriptionHelp`),children:(0,U.jsx)(hD,{className:`min-h-24`,value:r.description,onChange:e=>u(`description`,e.target.value)})})]}):null,a===`tracking`?(0,U.jsxs)(Mb,{className:`grid max-w-5xl gap-4`,children:[(0,U.jsx)(Pk,{title:Z(e,`settings.trackingSection`),body:Z(e,`settings.trackingSectionBody`)}),(0,U.jsxs)(`div`,{className:`grid gap-4 md:grid-cols-2`,children:[(0,U.jsx)(Fk,{label:Z(e,`settings.ga4MeasurementId`),description:Z(e,`settings.ga4MeasurementIdHelp`),children:(0,U.jsx)(dv,{value:r.ga4MeasurementId,placeholder:Z(e,`settings.notConfigured`),onChange:e=>u(`ga4MeasurementId`,e.target.value)})}),(0,U.jsx)(Fk,{label:Z(e,`settings.facebookPixelId`),description:Z(e,`settings.facebookPixelIdHelp`),children:(0,U.jsx)(dv,{value:r.facebookPixelId,placeholder:Z(e,`settings.notConfigured`),onChange:e=>u(`facebookPixelId`,e.target.value)})})]})]}):null,(0,U.jsx)(Nb,{status:s.isPending?Z(e,`crud.saving`):c?Z(e,`common.unsavedChanges`):l?Z(e,`common.saved`):void 0,children:(0,U.jsxs)(Y,{onClick:()=>s.mutate(r),disabled:!c||s.isPending,children:[(0,U.jsx)(On,{className:`size-4`,"aria-hidden":!0}),s.isPending?Z(e,`crud.saving`):Z(e,`entryEdit.save`)]})})]})}function Nk({active:e,icon:t,label:n,onClick:r}){return(0,U.jsxs)(`button`,{type:`button`,role:`tab`,"aria-selected":e,className:J(`inline-flex h-9 items-center gap-2 rounded-md px-3 text-sm font-semibold transition`,e?`bg-primary text-primary-foreground shadow-sm`:`text-muted-foreground hover:bg-accent hover:text-accent-foreground`),onClick:r,children:[(0,U.jsx)(t,{className:`size-4`,"aria-hidden":!0}),n]})}function Pk({title:e,body:t}){return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(`h2`,{className:`text-lg font-semibold`,children:e}),(0,U.jsx)(`p`,{className:`mt-1 text-sm text-muted-foreground`,children:t})]})}function Fk({label:e,description:t,children:n}){return(0,U.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,U.jsx)(`span`,{children:e}),t?(0,U.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:t}):null,n]})}function Ik(e,t){return!!t&&Object.keys(e).every(n=>e[n]===t[n])}var Lk=`https://developers.cloudflare.com/email-service/`,Rk=`Enable email sign-in for this Mantle site. Implement the Mantle EmailSender port with a transactional email provider. For Cloudflare, prefer an Email Service binding. Register either { kind: "email-otp", sender } or { kind: "magic-link", sender } in createAuth(), keep credentials in Worker secrets, deploy, then verify that /api/auth/methods lists the method and a real email arrives.`,zk=[`owner`,`editor`,`contributor`,`none`],Bk=[`owner`,`editor`,`contributor`];function Vk(){let{language:e}=X(),t=He(),n=rt({queryKey:[`me`],queryFn:()=>ty.get(`/me`),retry:!1}),r=rt({queryKey:[`staff`],queryFn:()=>ty.get(`/staff`),retry:!1}),i=rt(cy()),a=i.data?.some(({kind:e})=>e===`email-otp`||e===`magic-link`),o=()=>{t.invalidateQueries({queryKey:[`staff`]})},s=it({mutationFn:e=>ty.patch(`/staff/${encodeURIComponent(e.userId)}/role`,{role:e.role}),onSettled:o}),c=it({mutationFn:e=>ty.delete(`/staff/invitations/${encodeURIComponent(e)}`),onSettled:o});if(r.isError)return(0,U.jsx)(Fb,{error:r.error});if(r.isLoading||!r.data)return(0,U.jsx)(xv,{className:`h-64 w-full`});let l=t=>Z(e,`staff.role.${t}`);return(0,U.jsxs)(`div`,{className:`space-y-6`,children:[(0,U.jsx)(jb,{title:Z(e,`staff.page.title`),description:Z(e,`staff.page.body`)}),s.isError?(0,U.jsx)(Fb,{error:gS(s.error)}):null,c.isError?(0,U.jsx)(Fb,{error:gS(c.error)}):null,i.data&&!a?(0,U.jsx)(Uk,{}):null,(0,U.jsx)(Hk,{onInvited:o}),(0,U.jsx)(Mb,{className:`overflow-x-auto p-0`,children:(0,U.jsxs)(Bx,{children:[(0,U.jsx)(Vx,{children:(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Wx,{children:Z(e,`staff.table.name`)}),(0,U.jsx)(Wx,{children:Z(e,`staff.table.email`)}),(0,U.jsx)(Wx,{children:Z(e,`staff.table.status`)}),(0,U.jsx)(Wx,{children:Z(e,`staff.table.role`)})]})}),(0,U.jsx)(Hx,{children:r.data.users.map(t=>{let r=t.id===n.data?.userId,i=!t.emailVerified&&!t.githubLogin,a=Wk(t.role)?t.role:`none`;return(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Gx,{children:t.name}),(0,U.jsx)(Gx,{children:t.email}),(0,U.jsx)(Gx,{children:i?(0,U.jsxs)(`span`,{className:`inline-flex items-center gap-2`,children:[(0,U.jsx)(mx,{variant:`secondary`,children:Z(e,`staff.badge.invited`)}),(0,U.jsx)(Y,{variant:`ghost`,size:`sm`,disabled:c.isPending,onClick:()=>c.mutate(t.id),children:Z(e,`staff.invite.revoke`)})]}):t.githubLogin?`GitHub: ${t.githubLogin}`:Z(e,`staff.status.emailSignIn`)}),(0,U.jsx)(Gx,{children:r?(0,U.jsxs)(`span`,{className:`text-muted-foreground`,children:[l(a),` · `,Z(e,`staff.self`)]}):(0,U.jsxs)(hx,{value:a,disabled:s.isPending,onValueChange:e=>{s.mutate({userId:t.id,role:Wk(e)?e:null})},children:[(0,U.jsx)(_x,{className:`w-44`,children:(0,U.jsx)(gx,{})}),(0,U.jsx)(vx,{children:zk.map(e=>(0,U.jsx)(yx,{value:e,children:l(e)},e))})]})})]},t.id)})})]})})]})}function Hk({onInvited:e}){let{language:t}=X(),[n,r]=H.useState(``),[i,a]=H.useState(`contributor`),o=it({mutationFn:()=>ty.post(`/staff/invitations`,{email:n,role:i}),onSuccess:()=>{r(``),e()}});return(0,U.jsxs)(Mb,{className:`grid gap-4`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-semibold`,children:Z(t,`staff.invite.title`)}),o.isError?(0,U.jsx)(Fb,{error:gS(o.error)}):null,(0,U.jsxs)(`form`,{className:`grid max-w-4xl gap-4 md:grid-cols-[minmax(0,1fr)_18rem]`,onSubmit:e=>{e.preventDefault(),o.mutate()},children:[(0,U.jsxs)(`label`,{className:`grid min-w-64 flex-1 gap-1.5 text-sm font-medium`,children:[(0,U.jsx)(`span`,{children:Z(t,`staff.invite.emailLabel`)}),(0,U.jsx)(dv,{type:`email`,value:n,placeholder:Z(t,`staff.invite.emailPlaceholder`),onChange:e=>r(e.target.value)}),(0,U.jsx)(`span`,{className:`text-xs font-normal leading-5 text-muted-foreground`,children:Z(t,`staff.invite.hint`)})]}),(0,U.jsxs)(`label`,{className:`grid gap-1.5 text-sm font-medium`,children:[(0,U.jsx)(`span`,{children:Z(t,`staff.invite.roleLabel`)}),(0,U.jsxs)(hx,{value:i,onValueChange:e=>{Wk(e)&&a(e)},children:[(0,U.jsx)(_x,{className:`w-full`,children:(0,U.jsx)(gx,{children:Z(t,`staff.role.${i}`)})}),(0,U.jsx)(vx,{className:`min-w-72`,children:Bk.map(e=>(0,U.jsx)(yx,{value:e,textValue:Z(t,`staff.role.${e}`),className:`items-start py-2`,children:(0,U.jsxs)(`span`,{className:`grid gap-0.5`,children:[(0,U.jsx)(`span`,{className:`font-medium`,children:Z(t,`staff.role.${e}`)}),(0,U.jsx)(`span`,{className:`text-xs font-normal text-muted-foreground`,children:Z(t,`staff.role.${e}.help`)})]})},e))})]}),(0,U.jsx)(`span`,{className:`max-w-56 text-xs font-normal leading-5 text-muted-foreground`,children:Z(t,`staff.role.${i}.help`)})]}),(0,U.jsx)(`div`,{className:`flex justify-end md:col-span-2`,children:(0,U.jsxs)(Y,{type:`submit`,disabled:o.isPending||n.trim()===``,children:[(0,U.jsx)(Kn,{className:`size-4`,"aria-hidden":!0}),o.isPending?Z(t,`staff.invite.sending`):Z(t,`staff.invite.button`)]})})]})]})}function Uk(){let{language:e}=X(),[t,n]=H.useState(!1);async function r(){try{await navigator.clipboard.writeText(Rk),n(!0),window.setTimeout(()=>n(!1),1400)}catch{n(!1)}}return(0,U.jsxs)(Mb,{className:`flex-row flex-wrap items-center gap-4`,children:[(0,U.jsx)(`span`,{className:`flex size-10 shrink-0 items-center justify-center rounded-lg bg-muted`,children:(0,U.jsx)(gn,{className:`size-5`,"aria-hidden":!0})}),(0,U.jsxs)(`div`,{className:`min-w-64 flex-1`,children:[(0,U.jsx)(`h2`,{className:`font-semibold`,children:Z(e,`staff.emailSetup.title`)}),(0,U.jsx)(`p`,{className:`mt-1 text-sm leading-6 text-muted-foreground`,children:Z(e,`staff.emailSetup.body`)})]}),(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsxs)(Y,{type:`button`,variant:`secondary`,onClick:()=>void r(),children:[t?(0,U.jsx)(Ot,{"aria-hidden":!0}):(0,U.jsx)(Rt,{"aria-hidden":!0}),Z(e,t?`staff.emailSetup.copied`:`staff.emailSetup.copy`)]}),(0,U.jsx)(Y,{asChild:!0,variant:`outline`,children:(0,U.jsxs)(`a`,{href:Lk,target:`_blank`,rel:`noreferrer`,children:[(0,U.jsx)(Ut,{"aria-hidden":!0}),Z(e,`staff.emailSetup.guide`)]})})]})]})}function Wk(e){return e===`owner`||e===`editor`||e===`contributor`}var Gk=50,Kk=[`owner`,`editor`,`contributor`];function qk(){let{language:e}=X(),t=He(),{search:n}=_y(),r=new URLSearchParams(n),i=r.get(`search`)?.trim()??``,a=r.get(`cursor`)||void 0,o=r.get(`cursor_direction`)===`backward`?`backward`:`forward`,s=rt({queryKey:[`members`,i,a??`first`,o],queryFn:()=>{let e=new URLSearchParams({limit:String(Gk)});return i&&e.set(`search`,i),a&&e.set(`cursor`,a),o===`backward`&&e.set(`cursor_direction`,`backward`),ty.get(`/members?${e.toString()}`)}}),c=rt({queryKey:[`me`],queryFn:()=>ty.get(`/me`),retry:!1}),l=it({mutationFn:({userId:e,role:t})=>ty.patch(`/staff/${encodeURIComponent(e)}/role`,{role:t}),onSuccess:()=>{t.invalidateQueries({queryKey:[`members`]}),t.invalidateQueries({queryKey:[`staff`]})}}),u=c.data?.role===`owner`;return(0,U.jsxs)(`div`,{children:[(0,U.jsx)(jb,{title:Z(e,`members.page.title`),description:Z(e,`members.page.body`)}),(0,U.jsx)(Jk,{search:i}),l.isError?(0,U.jsx)(Fb,{error:l.error}):null,s.isLoading?(0,U.jsx)(xv,{className:`h-64 w-full`}):null,s.isError?(0,U.jsx)(Fb,{error:s.error}):null,s.data?.items.length===0?(0,U.jsx)(Pb,{icon:Lt,title:Z(e,i?`members.emptySearch.title`:`members.empty.title`),description:Z(e,i?`members.emptySearch.body`:`members.empty.body`)}):null,s.data&&s.data.items.length>0?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(Mb,{className:`overflow-x-auto p-0`,children:(0,U.jsxs)(Bx,{children:[(0,U.jsx)(Vx,{children:(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Wx,{children:Z(e,`members.table.name`)}),(0,U.jsx)(Wx,{children:Z(e,`members.table.email`)}),(0,U.jsx)(Wx,{children:Z(e,`members.table.status`)}),(0,U.jsx)(Wx,{children:Z(e,`members.table.joined`)}),u?(0,U.jsx)(Wx,{children:Z(e,`members.table.teamAccess`)}):null]})}),(0,U.jsx)(Hx,{children:s.data.items.map(t=>(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Gx,{className:`font-medium`,children:t.name}),(0,U.jsx)(Gx,{children:t.email}),(0,U.jsx)(Gx,{children:(0,U.jsx)(mx,{variant:t.emailVerified?`default`:`secondary`,children:Z(e,t.emailVerified?`members.verified`:`members.unverified`)})}),(0,U.jsx)(Gx,{className:`text-muted-foreground`,children:pS(Date.parse(t.createdAt))??`-`}),u?(0,U.jsx)(Gx,{children:(0,U.jsxs)(hx,{disabled:l.isPending,onValueChange:e=>{let n=Kk.find(t=>t===e);n&&l.mutate({userId:t.id,role:n})},children:[(0,U.jsx)(_x,{className:`w-44`,"aria-label":`${Z(e,`members.promote`)}: ${t.name}`,children:(0,U.jsx)(gx,{placeholder:Z(e,`members.promote`)})}),(0,U.jsx)(vx,{children:Kk.map(t=>(0,U.jsx)(yx,{value:t,children:Z(e,`staff.role.${t}`)},t))})]})}):null]},t.id))})]})}),(0,U.jsx)(Yk,{search:i,previousCursor:s.data.previous_cursor,nextCursor:s.data.next_cursor})]}):null]})}function Jk({search:e}){let{language:t}=X(),{navigate:n}=gy(),[r,i]=H.useState(e);return H.useEffect(()=>i(e),[e]),(0,U.jsxs)(`form`,{className:`mb-4 flex max-w-xl gap-2`,role:`search`,onSubmit:e=>{e.preventDefault(),n(Xk(r.trim()))},children:[(0,U.jsxs)(`label`,{className:`relative block flex-1`,"aria-label":Z(t,`members.searchPlaceholder`),children:[(0,U.jsx)(kn,{className:`pointer-events-none absolute left-3 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(dv,{className:`h-9 ps-9`,value:r,onChange:e=>i(e.target.value),placeholder:Z(t,`members.searchPlaceholder`)})]}),(0,U.jsxs)(Y,{type:`submit`,variant:`secondary`,size:`sm`,className:`h-9`,children:[(0,U.jsx)(kn,{"aria-hidden":!0}),Z(t,`members.search`)]})]})}function Yk({search:e,previousCursor:t,nextCursor:n}){let{language:r}=X();return!t&&!n?null:(0,U.jsx)(Px,{className:`mt-4 justify-end`,"aria-label":Z(r,`members.pagination`),children:(0,U.jsxs)(Fx,{children:[(0,U.jsx)(Ix,{children:(0,U.jsx)(Rx,{href:t?Xk(e,t,`backward`):void 0,text:Z(r,`members.previousPage`),"aria-label":Z(r,`members.previousPage`),"aria-disabled":!t||void 0,tabIndex:t?void 0:-1,className:J(!t&&`pointer-events-none opacity-50`)})}),(0,U.jsx)(Ix,{children:(0,U.jsx)(zx,{href:n?Xk(e,n,`forward`):void 0,text:Z(r,`members.nextPage`),"aria-label":Z(r,`members.nextPage`),"aria-disabled":!n||void 0,tabIndex:n?void 0:-1,className:J(!n&&`pointer-events-none opacity-50`)})})]})})}function Xk(e,t,n=`forward`){let r=new URLSearchParams;e&&r.set(`search`,e),t&&r.set(`cursor`,t),n===`backward`&&r.set(`cursor_direction`,`backward`);let i=r.toString();return`/admin/members${i?`?${i}`:``}`}function Zk({className:e,orientation:t=`horizontal`,...n}){return(0,U.jsx)(qh,{"data-slot":`tabs`,"data-orientation":t,className:J(`group/tabs flex gap-2 data-horizontal:flex-col`,e),...n})}var Qk=ar(`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 $k({className:e,variant:t=`default`,...n}){return(0,U.jsx)(Jh,{"data-slot":`tabs-list`,"data-variant":t,className:J(Qk({variant:t}),e),...n})}function eA({className:e,...t}){return(0,U.jsx)(Yh,{"data-slot":`tabs-trigger`,className:J(`relative inline-flex h-[calc(100%-1px)] flex-1 items-center justify-center gap-1.5 whitespace-nowrap rounded-md border border-transparent px-1.5 py-0.5 text-sm font-medium text-foreground/60 transition-all hover:text-foreground focus-visible:border-ring focus-visible:outline-1 focus-visible:outline-ring focus-visible:ring-[3px] focus-visible:ring-ring/50 disabled:pointer-events-none disabled:opacity-50 data-active:bg-background data-active:text-foreground group-data-[variant=line]/tabs-list:data-active:bg-transparent group-data-[variant=line]/tabs-list:data-active:shadow-none 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-[variant=line]/tabs-list:data-active:after:opacity-100 dark:text-muted-foreground dark:hover:text-foreground [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4`,e),...t})}function tA({className:e,...t}){return(0,U.jsx)(Xh,{"data-slot":`tabs-content`,className:J(`flex-1 text-sm outline-none`,e),...t})}var nA=Object.defineProperty,rA=(e,t,n)=>t in e?nA(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,iA=(e,t)=>{for(var n in t)nA(e,n,{get:t[n],enumerable:!0})},aA=(e,t,n)=>rA(e,typeof t==`symbol`?t:t+``,n),oA={};iA(oA,{Graph:()=>GA,alg:()=>yA});var sA=Object.defineProperty,cA=(e,t)=>{for(var n in t)sA(e,n,{get:t[n],enumerable:!0})},lA=class{constructor(e){this._isDirected=!0,this._isMultigraph=!1,this._isCompound=!1,this._nodes={},this._in={},this._preds={},this._out={},this._sucs={},this._edgeObjs={},this._edgeLabels={},this._nodeCount=0,this._edgeCount=0,this._defaultNodeLabelFn=()=>{},this._defaultEdgeLabelFn=()=>{},e&&(this._isDirected=`directed`in e?e.directed:!0,this._isMultigraph=`multigraph`in e&&e.multigraph,this._isCompound=`compound`in e&&e.compound),this._isCompound&&(this._parent={},this._children={},this._children[`\0`]={})}isDirected(){return this._isDirected}isMultigraph(){return this._isMultigraph}isCompound(){return this._isCompound}setGraph(e){return this._label=e,this}graph(){return this._label}setDefaultNodeLabel(e){return this._defaultNodeLabelFn=typeof e==`function`?e:()=>e,this}nodeCount(){return this._nodeCount}nodes(){return Object.keys(this._nodes)}sources(){return this.nodes().filter(e=>Object.keys(this._in[e]).length===0)}sinks(){return this.nodes().filter(e=>Object.keys(this._out[e]).length===0)}setNodes(e,t){return e.forEach(e=>{t===void 0?this.setNode(e):this.setNode(e,t)}),this}setNode(e,t){return e in this._nodes?(arguments.length>1&&(this._nodes[e]=t),this):(this._nodes[e]=arguments.length>1?t:this._defaultNodeLabelFn(e),this._isCompound&&(this._parent[e]=`\0`,this._children[e]={},this._children[`\0`][e]=!0),this._in[e]={},this._preds[e]={},this._out[e]={},this._sucs[e]={},++this._nodeCount,this)}node(e){return this._nodes[e]}hasNode(e){return e in this._nodes}removeNode(e){if(e in this._nodes){let t=e=>this.removeEdge(this._edgeObjs[e]);delete this._nodes[e],this._isCompound&&(this._removeFromParentsChildList(e),delete this._parent[e],this.children(e).forEach(e=>{this.setParent(e)}),delete this._children[e]),Object.keys(this._in[e]).forEach(t),delete this._in[e],delete this._preds[e],Object.keys(this._out[e]).forEach(t),delete this._out[e],delete this._sucs[e],--this._nodeCount}return this}setParent(e,t){if(!this._isCompound)throw Error(`Cannot set parent in a non-compound graph`);if(t===void 0)t=`\0`;else{t+=``;for(let n=t;n!==void 0;n=this.parent(n))if(n===e)throw Error(`Setting `+t+` as parent of `+e+` would create a cycle`);this.setNode(t)}return this.setNode(e),this._removeFromParentsChildList(e),this._parent[e]=t,this._children[t][e]=!0,this}parent(e){if(this._isCompound){let t=this._parent[e];if(t!==`\0`)return t}}children(e=`\0`){if(this._isCompound){let t=this._children[e];if(t)return Object.keys(t)}else{if(e===`\0`)return this.nodes();if(this.hasNode(e))return[]}return[]}predecessors(e){let t=this._preds[e];if(t)return Object.keys(t)}successors(e){let t=this._sucs[e];if(t)return Object.keys(t)}neighbors(e){let t=this.predecessors(e);if(t){let n=new Set(t),r=this.successors(e);if(r)for(let e of r)n.add(e);return Array.from(n.values())}}isLeaf(e){let t;return t=this.isDirected()?this.successors(e):this.neighbors(e),(t?.length??0)===0}filterNodes(e){let t=new this.constructor({directed:this._isDirected,multigraph:this._isMultigraph,compound:this._isCompound});t.setGraph(this.graph()),Object.entries(this._nodes).forEach(([n,r])=>{e(n)&&t.setNode(n,r)}),Object.values(this._edgeObjs).forEach(e=>{t.hasNode(e.v)&&t.hasNode(e.w)&&t.setEdge(e,this.edge(e))});let n={},r=e=>{let i=this.parent(e);return!i||t.hasNode(i)?(n[e]=i,i):i in n?n[i]:r(i)};return this._isCompound&&t.nodes().forEach(e=>t.setParent(e,r(e))),t}setDefaultEdgeLabel(e){return this._defaultEdgeLabelFn=typeof e==`function`?e:()=>e,this}edgeCount(){return this._edgeCount}edges(){return Object.values(this._edgeObjs)}setPath(e,t){return e.reduce((e,n)=>(t===void 0?this.setEdge(e,n):this.setEdge(e,n,t),n)),this}setEdge(e,t,n,r){let i,a,o,s,c=!1;typeof e==`object`&&e&&`v`in e?(i=e.v,a=e.w,o=e.name,arguments.length===2&&(s=t,c=!0)):(i=e,a=t,o=r,arguments.length>2&&(s=n,c=!0)),i=``+i,a=``+a,o!==void 0&&(o=``+o);let l=fA(this._isDirected,i,a,o);if(l in this._edgeLabels)return c&&(this._edgeLabels[l]=s),this;if(o!==void 0&&!this._isMultigraph)throw Error(`Cannot set a named edge when isMultigraph = false`);this.setNode(i),this.setNode(a),this._edgeLabels[l]=c?s:this._defaultEdgeLabelFn(i,a,o);let u=pA(this._isDirected,i,a,o);return i=u.v,a=u.w,Object.freeze(u),this._edgeObjs[l]=u,uA(this._preds[a],i),uA(this._sucs[i],a),this._in[a][l]=u,this._out[i][l]=u,this._edgeCount++,this}edge(e,t,n){let r=arguments.length===1?mA(this._isDirected,e):fA(this._isDirected,e,t,n);return this._edgeLabels[r]}edgeAsObj(e,t,n){let r=arguments.length===1?this.edge(e):this.edge(e,t,n);return typeof r!=`object`||!r?{label:r}:r}hasEdge(e,t,n){return(arguments.length===1?mA(this._isDirected,e):fA(this._isDirected,e,t,n))in this._edgeLabels}removeEdge(e,t,n){let r=arguments.length===1?mA(this._isDirected,e):fA(this._isDirected,e,t,n),i=this._edgeObjs[r];if(i){let e=i.v,t=i.w;delete this._edgeLabels[r],delete this._edgeObjs[r],dA(this._preds[t],e),dA(this._sucs[e],t),delete this._in[t][r],delete this._out[e][r],this._edgeCount--}return this}inEdges(e,t){return this.isDirected()?this.filterEdges(this._in[e],e,t):this.nodeEdges(e,t)}outEdges(e,t){return this.isDirected()?this.filterEdges(this._out[e],e,t):this.nodeEdges(e,t)}nodeEdges(e,t){if(e in this._nodes)return this.filterEdges({...this._in[e],...this._out[e]},e,t)}_removeFromParentsChildList(e){delete this._children[this._parent[e]][e]}filterEdges(e,t,n){if(!e)return;let r=Object.values(e);return n?r.filter(e=>e.v===t&&e.w===n||e.v===n&&e.w===t):r}};function uA(e,t){e[t]?e[t]++:e[t]=1}function dA(e,t){e[t]!==void 0&&!--e[t]&&delete e[t]}function fA(e,t,n,r){let i=``+t,a=``+n;if(!e&&i>a){let e=i;i=a,a=e}return i+``+a+``+(r===void 0?`\0`:r)}function pA(e,t,n,r){let i=``+t,a=``+n;if(!e&&i>a){let e=i;i=a,a=e}let o={v:i,w:a};return r&&(o.name=r),o}function mA(e,t){return fA(e,t.v,t.w,t.name)}cA({},{read:()=>vA,write:()=>hA});function hA(e){let t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:gA(e),edges:_A(e)},n=e.graph();return n!==void 0&&(t.value=structuredClone(n)),t}function gA(e){return e.nodes().map(t=>{let n=e.node(t),r=e.parent(t),i={v:t};return n!==void 0&&(i.value=n),r!==void 0&&(i.parent=r),i})}function _A(e){return e.edges().map(t=>{let n=e.edge(t),r={v:t.v,w:t.w};return t.name!==void 0&&(r.name=t.name),n!==void 0&&(r.value=n),r})}function vA(e){let t=new lA(e.options);return e.value!==void 0&&t.setGraph(e.value),e.nodes.forEach(e=>{t.setNode(e.v,e.value),e.parent&&t.setParent(e.v,e.parent)}),e.edges.forEach(e=>{t.setEdge({v:e.v,w:e.w,name:e.name},e.value)}),t}var yA={};cA(yA,{CycleException:()=>PA,bellmanFord:()=>xA,components:()=>CA,dijkstra:()=>EA,dijkstraAll:()=>OA,findCycles:()=>AA,floydWarshall:()=>MA,isAcyclic:()=>IA,postorder:()=>BA,preorder:()=>VA,prim:()=>HA,shortestPaths:()=>UA,tarjan:()=>kA,topsort:()=>FA});var bA=()=>1;function xA(e,t,n,r){return SA(e,String(t),n||bA,r||function(t){return e.outEdges(t)??[]})}function SA(e,t,n,r){let i={},a,o=0,s=e.nodes(),c=function(e){let t=i[e.v],r=i[e.w];if(!t||!r)return;let o=n(e);t.distance+o<r.distance&&(i[e.w]={distance:t.distance+o,predecessor:e.v},a=!0)},l=function(){s.forEach(function(e){r(e).forEach(function(t){let n=t.v===e?t.v:t.w,r=n===t.v?t.w:t.v;c({v:n,w:r})})})};s.forEach(function(e){i[e]={distance:e===t?0:1/0,predecessor:``}});let u=s.length;for(let e=1;e<u&&(a=!1,o++,l(),a);e++);if(o===u-1&&(a=!1,l(),a))throw Error(`The graph contains a negative weight cycle`);return i}function CA(e){let t={},n=[],r;function i(n){var a,o;n in t||(t[n]=!0,r.push(n),(a=e.successors(n))==null||a.forEach(i),(o=e.predecessors(n))==null||o.forEach(i))}return e.nodes().forEach(function(e){r=[],i(e),r.length&&n.push(r)}),n}var wA=class{constructor(){this._arr=[],this._keyIndices={}}size(){return this._arr.length}keys(){return this._arr.map(e=>e.key)}has(e){return e in this._keyIndices}priority(e){let t=this._keyIndices[e];if(t!==void 0)return this._arr[t].priority}min(){if(this.size()===0)throw Error(`Queue underflow`);return this._arr[0].key}add(e,t){let n=this._keyIndices,r=String(e);if(!(r in n)){let e=this._arr,i=e.length;return n[r]=i,e.push({key:r,priority:t}),this._decrease(i),!0}return!1}removeMin(){if(this.size()===0)throw Error(`Queue underflow`);this._swap(0,this._arr.length-1);let e=this._arr.pop();return delete this._keyIndices[e.key],this._heapify(0),e.key}decrease(e,t){let n=this._keyIndices[e];if(n===void 0)throw Error(`Key not found: ${e}`);let r=this._arr[n].priority;if(t>r)throw Error(`New priority is greater than current priority. Key: ${e} Old: ${r} New: ${t}`);this._arr[n].priority=t,this._decrease(n)}_heapify(e){let t=this._arr,n=2*e,r=n+1,i=e;n<t.length&&(i=t[n].priority<t[i].priority?n:i,r<t.length&&(i=t[r].priority<t[i].priority?r:i),i!==e&&(this._swap(e,i),this._heapify(i)))}_decrease(e){let t=this._arr,n=t[e].priority,r;for(;e!==0&&(r=e>>1,!(t[r].priority<n));)this._swap(e,r),e=r}_swap(e,t){let n=this._arr,r=this._keyIndices,i=n[e],a=n[t];n[e]=a,n[t]=i,r[a.key]=e,r[i.key]=t}},TA=()=>1;function EA(e,t,n,r){return DA(e,String(t),n||TA,r||function(t){return e.outEdges(t)??[]})}function DA(e,t,n,r){let i={},a=new wA,o,s,c=function(e){let t=e.v===o?e.w:e.v,r=i[t];if(!r)return;let c=n(e),l=s.distance+c;if(c<0)throw Error(`dijkstra does not allow negative edge weights. Bad edge: `+e+` Weight: `+c);l<r.distance&&(r.distance=l,r.predecessor=o,a.decrease(t,l))};for(e.nodes().forEach(function(e){let n=e===t?0:1/0;i[e]={distance:n,predecessor:``},a.add(e,n)});a.size()>0;){o=a.removeMin();let e=i[o];if(!e||e.distance===1/0)break;s=e,r(o).forEach(c)}return i}function OA(e,t,n){return e.nodes().reduce(function(r,i){return r[i]=EA(e,i,t,n),r},{})}function kA(e){let t=0,n=[],r={},i=[];function a(o){var s;let c=r[o]={onStack:!0,lowlink:t,index:t++};if(n.push(o),(s=e.successors(o))==null||s.forEach(function(e){if(e in r){let t=r[e];t!=null&&t.onStack&&(c.lowlink=Math.min(c.lowlink,t.index))}else{a(e);let t=r[e];t&&(c.lowlink=Math.min(c.lowlink,t.lowlink))}}),c.lowlink===c.index){let e=[],t;do{t=n.pop();let i=r[t];i&&(i.onStack=!1),e.push(t)}while(o!==t);i.push(e)}}return e.nodes().forEach(function(e){e in r||a(e)}),i}function AA(e){return kA(e).filter(function(t){let n=t[0];return n?t.length>1||t.length===1&&(e.outEdges(n,n)??[]).length>0:!1})}var jA=()=>1;function MA(e,t,n){return NA(e,t||jA,n||function(t){return e.outEdges(t)??[]})}function NA(e,t,n){let r={},i=e.nodes();return i.forEach(function(e){let a={};r[e]=a,a[e]={distance:0,predecessor:``},i.forEach(function(t){e!==t&&(a[t]={distance:1/0,predecessor:``})}),n(e).forEach(function(n){let r=n.v===e?n.w:n.v,i=t(n);a[r]={distance:i,predecessor:e}})}),i.forEach(function(e){let t=r[e];t&&i.forEach(function(n){let a=r[n];a&&i.forEach(function(n){let r=a[e],i=t[n],o=a[n];if(r&&i&&o){let e=r.distance+i.distance;e<o.distance&&(o.distance=e,o.predecessor=i.predecessor)}})})}),r}var PA=class extends Error{constructor(e){super(e),this.name=`CycleException`}};function FA(e){let t={},n={},r=[];function i(a){var o;if(a in n)throw new PA;a in t||(n[a]=!0,t[a]=!0,(o=e.predecessors(a))==null||o.forEach(i),delete n[a],r.push(a))}if(e.sinks().forEach(i),Object.keys(t).length!==e.nodeCount())throw new PA;return r}function IA(e){try{FA(e)}catch(e){if(e instanceof PA)return!1;throw e}return!0}function LA(e,t,n,r,i){Array.isArray(t)||(t=[t]);let a=(t=>(e.isDirected()?e.successors(t):e.neighbors(t))??[]),o={};return t.forEach(function(t){if(!e.hasNode(t))throw Error(`Graph does not have node: `+t);i=RA(e,t,n===`post`,o,a,r,i)}),i}function RA(e,t,n,r,i,a,o){return t in r||(r[t]=!0,n||(o=a(o,t)),i(t).forEach(function(t){o=RA(e,t,n,r,i,a,o)}),n&&(o=a(o,t))),o}function zA(e,t,n){return LA(e,t,n,function(e,t){return e.push(t),e},[])}function BA(e,t){return zA(e,t,`post`)}function VA(e,t){return zA(e,t,`pre`)}function HA(e,t){var n;let r=new lA,i={},a=new wA,o;function s(e){let n=e.v===o?e.w:e.v,r=a.priority(n);if(r!==void 0){let s=t(e);s<r&&(i[n]=o,a.decrease(n,s))}}if(e.nodeCount()===0)return r;e.nodes().forEach(function(e){a.add(e,1/0),r.setNode(e)});let c=e.nodes()[0];c!==void 0&&a.decrease(c,0);let l=!1;for(;a.size()>0;){if(o=a.removeMin(),o in i)r.setEdge(o,i[o]);else{if(l)throw Error(`Input graph is not connected: `+e);l=!0}(n=e.nodeEdges(o))==null||n.forEach(s)}return r}function UA(e,t,n,r){return WA(e,t,n,r??(t=>e.outEdges(t)??[]))}function WA(e,t,n,r){if(n===void 0)return EA(e,t,n,r);let i=!1,a=e.nodes();for(let o=0;o<a.length;o++){let s=a[o];if(s===void 0)continue;let c=r(s);for(let e=0;e<c.length;e++){let t=c[e];if(!t)continue;let r=t.v===s?t.v:t.w;n({v:r,w:r===t.v?t.w:t.v})<0&&(i=!0)}if(i)return xA(e,t,n,r)}return EA(e,t,n,r)}var GA=lA;function KA(e,t,n,r){let i=r;for(;e.hasNode(i);)i=cj(r);return n.dummy=t,e.setNode(i,n),i}function qA(e){let t=new GA().setGraph(e.graph());return e.nodes().forEach(n=>t.setNode(n,e.node(n))),e.edges().forEach(n=>{let r=t.edge(n.v,n.w)||{weight:0,minlen:1},i=e.edge(n);t.setEdge(n.v,n.w,{weight:r.weight+i.weight,minlen:Math.max(r.minlen,i.minlen)})}),t}function JA(e){let t=new GA({multigraph:e.isMultigraph()}).setGraph(e.graph());return e.nodes().forEach(n=>{e.children(n).length||t.setNode(n,e.node(n))}),e.edges().forEach(n=>{t.setEdge(n,e.edge(n))}),t}function YA(e,t){let n=e.x,r=e.y,i=t.x-n,a=t.y-r,o=e.width/2,s=e.height/2;if(!i&&!a)throw Error(`Not possible to find intersection inside of the rectangle`);let c,l;return Math.abs(a)*o>Math.abs(i)*s?(a<0&&(s=-s),c=s*i/a,l=s):(i<0&&(o=-o),c=o,l=o*a/i),{x:n+c,y:r+l}}function XA(e){let t=lj(rj(e)+1).map(()=>[]);return e.nodes().forEach(n=>{let r=e.node(n),i=r.rank;i!==void 0&&(t[i]||(t[i]=[]),t[i][r.order]=n)}),t}function ZA(e){let t=e.nodes().map(t=>{let n=e.node(t).rank;return n===void 0?Number.MAX_VALUE:n}),n=nj(Math.min,t);e.nodes().forEach(t=>{let r=e.node(t);Object.hasOwn(r,`rank`)&&(r.rank-=n)})}function QA(e){let t=e.nodes().map(t=>e.node(t).rank).filter(e=>e!==void 0),n=nj(Math.min,t),r=[];e.nodes().forEach(t=>{let i=e.node(t).rank-n;r[i]||(r[i]=[]),r[i].push(t)});let i=0,a=e.graph().nodeRankFactor;Array.from(r).forEach((t,n)=>{t===void 0&&n%a!==0?--i:t!==void 0&&i&&t.forEach(t=>e.node(t).rank+=i)})}function $A(e,t,n,r){let i={width:0,height:0};return arguments.length>=4&&(i.rank=n,i.order=r),KA(e,`border`,i,t)}function ej(e,t=tj){let n=[];for(let r=0;r<e.length;r+=t){let i=e.slice(r,r+t);n.push(i)}return n}var tj=65535;function nj(e,t){return t.length>tj?e(...ej(t).map(t=>e(...t))):e(...t)}function rj(e){let t=e.nodes().map(t=>{let n=e.node(t).rank;return n===void 0?Number.MIN_VALUE:n});return nj(Math.max,t)}function ij(e,t){let n={lhs:[],rhs:[]};return e.forEach(e=>{t(e)?n.lhs.push(e):n.rhs.push(e)}),n}function aj(e,t){let n=Date.now();try{return t()}finally{console.log(e+` time: `+(Date.now()-n)+`ms`)}}function oj(e,t){return t()}var sj=0;function cj(e){return e+(``+ ++sj)}function lj(e,t,n=1){t??(t=e,e=0);let r=e=>e<t;n<0&&(r=e=>t<e);let i=[];for(let t=e;r(t);t+=n)i.push(t);return i}function uj(e,t){let n={};for(let r of t)e[r]!==void 0&&(n[r]=e[r]);return n}function dj(e,t){let n;return n=typeof t==`string`?e=>e[t]:t,Object.entries(e).reduce((e,[t,r])=>(e[t]=n(r,t),e),{})}function fj(e,t){return e.reduce((e,n,r)=>(e[n]=t[r],e),{})}var pj=`\0`;function mj(e,t,n){if(!(e&&t&&n&&t.dummy===`edge`&&n.dummy===`edge`&&t.edgeObj&&n.edgeObj&&e[t.edgeObj.v]&&e[n.edgeObj.v]&&e[t.edgeObj.w]&&e[n.edgeObj.w]))return 0;let r=!0;t.edgeObj.w===n.edgeObj.w&&(r=!1);let i=r?e[t.edgeObj.v]?.rank??NaN:e[t.edgeObj.w]?.rank??NaN,a=Object.entries(e).find(e=>e[1].edgeObj?.v===t.edgeObj.v&&e[1].edgeObj?.w===t.edgeObj.w&&e[1].rank===i),o=Object.entries(e).find(e=>e[1].edgeObj?.v===n.edgeObj.v&&e[1].edgeObj?.w===n.edgeObj.w&&e[1].rank===i);if(!a||!o)return 0;let s=a[1].order??NaN,c=o[1].order??NaN;return isNaN(s-c)?0:s-c}var hj=`3.1.1`,gj=class{constructor(){aA(this,`_sentinel`);let e={};e._next=e._prev=e,this._sentinel=e}dequeue(){let e=this._sentinel,t=e._prev;if(t!==e)return _j(t),t}enqueue(e){let t=this._sentinel;e._prev&&e._next&&_j(e),e._next=t._next,t._next._prev=e,t._next=e,e._prev=t}toString(){let e=[],t=this._sentinel,n=t._prev;for(;n!==t;)e.push(JSON.stringify(n,vj)),n=n._prev;return`[`+e.join(`, `)+`]`}};function _j(e){e._prev._next=e._next,e._next._prev=e._prev,delete e._next,delete e._prev}function vj(e,t){if(e!==`_next`&&e!==`_prev`)return t}var yj=gj,bj=()=>1;function xj(e,t){if(e.nodeCount()<=1)return[];let n=wj(e,t||bj);return Sj(n.graph,n.buckets,n.zeroIdx).flatMap(t=>e.outEdges(t.v,t.w)||[])}function Sj(e,t,n){let r=[],i=t[t.length-1],a=t[0],o;for(;e.nodeCount();){for(;o=a.dequeue();)Cj(e,t,n,o);for(;o=i.dequeue();)Cj(e,t,n,o);if(e.nodeCount()){for(let i=t.length-2;i>0;--i)if(o=t[i]?.dequeue(),o){r=r.concat(Cj(e,t,n,o,!0)||[]);break}}}return r}function Cj(e,t,n,r,i){let a=[],o=i?a:void 0;return(e.inEdges(r.v)||[]).forEach(r=>{let o=e.edge(r),s=e.node(r.v);i&&a.push({v:r.v,w:r.w}),s.out-=o,Tj(t,n,s)}),(e.outEdges(r.v)||[]).forEach(r=>{let i=e.edge(r),a=r.w,o=e.node(a);o.in-=i,Tj(t,n,o)}),e.removeNode(r.v),o}function wj(e,t){let n=new GA,r=0,i=0;e.nodes().forEach(e=>{n.setNode(e,{v:e,in:0,out:0})}),e.edges().forEach(e=>{let a=n.edge(e.v,e.w)||0,o=t(e),s=a+o;n.setEdge(e.v,e.w,s);let c=n.node(e.v),l=n.node(e.w);i=Math.max(i,c.out+=o),r=Math.max(r,l.in+=o)});let a=Ej(i+r+3).map(()=>new yj),o=r+1;return n.nodes().forEach(e=>{Tj(a,o,n.node(e))}),{graph:n,buckets:a,zeroIdx:o}}function Tj(e,t,n){var r,i,a;n.out?n.in?(a=e[n.out-n.in+t])==null||a.enqueue(n):(i=e[e.length-1])==null||i.enqueue(n):(r=e[0])==null||r.enqueue(n)}function Ej(e){let t=[];for(let n=0;n<e;n++)t.push(n);return t}function Dj(e,t){(e.graph().acyclicer===`greedy`?xj(e,n(e)):Oj(e,t??null)).forEach(t=>{let n=e.edge(t);e.removeEdge(t),n.forwardName=t.name,n.reversed=!0,e.setEdge(t.w,t.v,n,cj(`rev`))});function n(e){return t=>e.edge(t).weight}}function Oj(e,t){let n=[],r={},i={};function a(t){Object.hasOwn(i,t)||(i[t]=!0,r[t]=!0,e.outEdges(t).forEach(e=>{Object.hasOwn(r,e.w)?n.push(e):a(e.w)}),delete r[t])}function o(a){var s;Object.hasOwn(i,a)||(i[a]=!0,r[a]=!0,(s=e.outEdges(a))==null||s.forEach(i=>{Object.hasOwn(r,i.w)||t.node(a)?.rank>t.node(i.w)?.rank&&Aj(e,i.w,i)?n.push(i):o(i.w)}),delete r[a])}let s=a;return t&&typeof t.node==`function`&&(s=o),e.sources().forEach(s),e.nodes().forEach(s),n}function kj(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.reversed){e.removeEdge(t);let r=n.forwardName;delete n.reversed,delete n.forwardName,e.setEdge(t.w,t.v,n,r)}})}function Aj(e,t,n){let r=new Set;function i(t){if(e.sources().includes(t))return!0;r.add(t);for(let a of e.inEdges(t)??[])if((a.v!==n.v||a.w!==n.w)&&!r.has(a.v)&&i(a.v))return!0;return!1}return i(t)}function jj(e){e.graph().dummyChains=[],e.edges().forEach(t=>Mj(e,t))}function Mj(e,t){let n=t.v,r=e.node(n).rank,i=t.w,a=e.node(i).rank,o=t.name,s=e.edge(t),c=s.labelRank;if(a===r+1)return;e.removeEdge(t);let l,u,d;for(d=0,++r;r<a;++d,++r)s.points=[],u={width:0,height:0,edgeLabel:s,edgeObj:t,rank:r},l=KA(e,`edge`,u,`_d`),r===c&&(u.width=s.width,u.height=s.height,u.dummy=`edge-label`,u.labelpos=s.labelpos),e.setEdge(n,l,{weight:s.weight},o),d===0&&e.graph().dummyChains.push(l),n=l;e.setEdge(n,i,{weight:s.weight},o)}function Nj(e){e.graph().dummyChains.forEach(t=>{let n=e.node(t),r=n.edgeLabel,i;for(e.setEdge(n.edgeObj,r);n.dummy;)i=e.successors(t)[0],e.removeNode(t),r.points.push({x:n.x,y:n.y}),n.dummy===`edge-label`&&(r.x=n.x,r.y=n.y,r.width=n.width,r.height=n.height),t=i,n=e.node(t)})}function Pj(e){let t={};function n(r){let i=e.node(r);if(Object.hasOwn(t,r))return i.rank;t[r]=!0;let a=e.outEdges(r),o=a?a.map(t=>t==null?1/0:n(t.w)-e.edge(t).minlen):[],s=nj(Math.min,o);return s===1/0&&(s=0),i.rank=s}e.sources().forEach(n)}function Fj(e,t){return e.node(t.w).rank-e.node(t.v).rank-e.edge(t).minlen}var Ij=Lj;function Lj(e){let t=new GA({directed:!1}),n=e.nodes();if(n.length===0)throw Error(`Graph must have at least one node`);let r=n[0],i=e.nodeCount();t.setNode(r,{});let a,o;for(;Rj(t,e)<i&&(a=zj(t,e),a);)o=t.hasNode(a.v)?Fj(e,a):-Fj(e,a),Bj(t,e,o);return t}function Rj(e,t){function n(r){let i=t.nodeEdges(r);i&&i.forEach(i=>{let a=i.v,o=r===a?i.w:a;!e.hasNode(o)&&!Fj(t,i)&&(e.setNode(o,{}),e.setEdge(r,o,{}),n(o))})}return e.nodes().forEach(n),e.nodeCount()}function zj(e,t){return t.edges().reduce((n,r)=>{let i=1/0;return e.hasNode(r.v)!==e.hasNode(r.w)&&(i=Fj(t,r)),i<n[0]?[i,r]:n},[1/0,null])[1]}function Bj(e,t,n){e.nodes().forEach(e=>t.node(e).rank+=n)}var{preorder:Vj,postorder:Hj}=yA,Uj=Wj;Wj.initLowLimValues=Jj,Wj.initCutValues=Gj,Wj.calcCutValue=qj,Wj.leaveEdge=Xj,Wj.enterEdge=Zj,Wj.exchangeEdges=Qj;function Wj(e){e=qA(e),Pj(e);let t=Ij(e);Jj(t),Gj(t,e);let n,r;for(;n=Xj(t);)r=Zj(t,e,n),Qj(t,e,n,r)}function Gj(e,t){let n=Hj(e,e.nodes());n=n.slice(0,n.length-1),n.forEach(n=>Kj(e,t,n))}function Kj(e,t,n){let r=e.node(n).parent,i=e.edge(n,r);i.cutvalue=qj(e,t,n)}function qj(e,t,n){let r=e.node(n).parent,i=!0,a=t.edge(n,r),o=0;a||=(i=!1,t.edge(r,n)),o=a.weight;let s=t.nodeEdges(n);return s&&s.forEach(a=>{let s=a.v===n,c=s?a.w:a.v;if(c!==r){let r=s===i,l=t.edge(a).weight;if(o+=r?l:-l,eM(e,n,c)){let t=e.edge(n,c).cutvalue;o+=r?-t:t}}}),o}function Jj(e,t){arguments.length<2&&(t=e.nodes()[0]),Yj(e,{},1,t)}function Yj(e,t,n,r,i){let a=n,o=e.node(r);t[r]=!0;let s=e.neighbors(r);return s&&s.forEach(i=>{Object.hasOwn(t,i)||(n=Yj(e,t,n,i,r))}),o.low=a,o.lim=n++,i?o.parent=i:delete o.parent,n}function Xj(e){return e.edges().find(t=>e.edge(t).cutvalue<0)}function Zj(e,t,n){let r=n.v,i=n.w;t.hasEdge(r,i)||(r=n.w,i=n.v);let a=e.node(r),o=e.node(i),s=a,c=!1;return a.lim>o.lim&&(s=o,c=!0),t.edges().filter(t=>c===tM(e,e.node(t.v),s)&&c!==tM(e,e.node(t.w),s)).reduce((e,n)=>Fj(t,n)<Fj(t,e)?n:e)}function Qj(e,t,n,r){let i=n.v,a=n.w;e.removeEdge(i,a),e.setEdge(r.v,r.w,{}),Jj(e),Gj(e,t),$j(e,t)}function $j(e,t){let n=e.nodes().find(t=>!e.node(t).parent);if(!n)return;let r=Vj(e,[n]);r=r.slice(1),r.forEach(n=>{let r=e.node(n).parent,i=t.edge(n,r),a=!1;i||(i=t.edge(r,n),a=!0),t.node(n).rank=t.node(r).rank+(a?i.minlen:-i.minlen)})}function eM(e,t,n){return e.hasEdge(t,n)}function tM(e,t,n){return n.low<=t.lim&&t.lim<=n.lim}var nM=rM;function rM(e){let t=e.graph().ranker;if(typeof t==`function`)return t(e);switch(t){case`network-simplex`:oM(e);break;case`tight-tree`:aM(e);break;case`longest-path`:iM(e);break;case`none`:break;default:oM(e)}}var iM=Pj;function aM(e){Pj(e),Ij(e)}function oM(e){Uj(e)}var sM=cM;function cM(e){let t=uM(e),n=e.graph();Array.isArray(n.dummyChains)&&n.dummyChains.forEach(n=>{let r=e.node(n),i=r.edgeObj,a=lM(e,t,i.v,i.w),o=a.path,s=a.lca,c=0,l=o[c],u=!0;for(;n!==i.w;){if(r=e.node(n),u){for(;(l=o[c])!==s&&e.node(l).maxRank<r.rank;)c++;l===s&&(u=!1)}if(!u){for(;c<o.length-1&&e.node(o[c+1]).minRank<=r.rank;)c++;l=o[c]}l!==void 0&&e.setParent(n,l),n=e.successors(n)[0]}})}function lM(e,t,n,r){let i=[],a=[],o=Math.min(t[n].low,t[r].low),s=Math.max(t[n].lim,t[r].lim),c;c=n;do c=e.parent(c),i.push(c);while(c&&(t[c].low>o||s>t[c].lim));let l=c,u=r;for(;(u=e.parent(u))!==l;)a.push(u);return{path:i.concat(a.reverse()),lca:l}}function uM(e){let t={},n=0;function r(i){let a=n;e.children(i).forEach(r),t[i]={low:a,lim:n++}}return e.children(pj).forEach(r),t}function dM(e){let t=KA(e,`root`,{},`_root`),n=pM(e),r=Object.values(n),i=nj(Math.max,r)-1,a=2*i+1;e.graph().nestingRoot=t,e.edges().forEach(t=>e.edge(t).minlen*=a);let o=mM(e)+1;e.children(pj).forEach(r=>{fM(e,t,a,o,i,n,r)}),e.graph().nodeRankFactor=a}function fM(e,t,n,r,i,a,o){let s=e.children(o);if(!s.length){o!==t&&e.setEdge(t,o,{weight:0,minlen:n});return}let c=$A(e,`_bt`),l=$A(e,`_bb`),u=e.node(o);e.setParent(c,o),u.borderTop=c,e.setParent(l,o),u.borderBottom=l,s.forEach(s=>{fM(e,t,n,r,i,a,s);let u=e.node(s),d=u.borderTop?u.borderTop:s,f=u.borderBottom?u.borderBottom:s,p=u.borderTop?r:2*r,m=d===f?i-(a[o]??0)+1:1;e.setEdge(c,d,{weight:p,minlen:m,nestingEdge:!0}),e.setEdge(f,l,{weight:p,minlen:m,nestingEdge:!0})}),e.parent(o)||e.setEdge(t,c,{weight:0,minlen:i+(a[o]??0)})}function pM(e){let t={};function n(r,i){let a=e.children(r);a&&a.length&&a.forEach(e=>n(e,i+1)),t[r]=i}return e.children(pj).forEach(e=>n(e,1)),t}function mM(e){return e.edges().reduce((t,n)=>t+e.edge(n).weight,0)}function hM(e){let t=e.graph();e.removeNode(t.nestingRoot),delete t.nestingRoot,e.edges().forEach(t=>{e.edge(t).nestingEdge&&e.removeEdge(t)})}var gM=_M;function _M(e){function t(n){let r=e.children(n),i=e.node(n);if(r.length&&r.forEach(t),i&&Object.hasOwn(i,`minRank`)){i.borderLeft=[],i.borderRight=[];for(let t=i.minRank,r=i.maxRank+1;t<r;++t)vM(e,`borderLeft`,`_bl`,n,i,t),vM(e,`borderRight`,`_br`,n,i,t)}}e.children(pj).forEach(t)}function vM(e,t,n,r,i,a){let o={width:0,height:0,rank:a,borderType:t},s=i[t][a-1],c=KA(e,`border`,o,n);i[t][a]=c,e.setParent(c,r),s&&e.setEdge(s,c,{weight:1})}function yM(e){let t=e.graph().rankdir?.toLowerCase();(t===`lr`||t===`rl`)&&xM(e)}function bM(e){let t=e.graph().rankdir?.toLowerCase();(t===`bt`||t===`rl`)&&CM(e),(t===`lr`||t===`rl`)&&(TM(e),xM(e))}function xM(e){e.nodes().forEach(t=>SM(e.node(t))),e.edges().forEach(t=>SM(e.edge(t)))}function SM(e){let t=e.width;e.width=e.height,e.height=t}function CM(e){e.nodes().forEach(t=>wM(e.node(t))),e.edges().forEach(t=>{var n;let r=e.edge(t);(n=r.points)==null||n.forEach(wM),Object.hasOwn(r,`y`)&&wM(r)})}function wM(e){e.y=-e.y}function TM(e){e.nodes().forEach(t=>EM(e.node(t))),e.edges().forEach(t=>{var n;let r=e.edge(t);(n=r.points)==null||n.forEach(EM),Object.hasOwn(r,`x`)&&EM(r)})}function EM(e){let t=e.x;e.x=e.y,e.y=t}function DM(e,t=null){let n={},r=e.nodes().filter(t=>!e.children(t).length),i=r.map(t=>e.node(t).rank),a=lj(nj(Math.max,i)+1).map(()=>[]);function o(t){if(n[t])return;n[t]=!0;let r=e.node(t);a[r.rank].push(t);let i=e.successors(t);i&&[...i].sort((e,t)=>s(e,t)).forEach(o)}r.sort((t,n)=>e.node(t).rank-e.node(n).rank).forEach(o);function s(n,r){return mj(t,e.node(n),e.node(r))}return a}function OM(e,t){let n=0;for(let r=1;r<t.length;++r)n+=kM(e,t[r-1],t[r]);return n}function kM(e,t,n){let r=fj(n,n.map((e,t)=>t)),i=t.flatMap(t=>{let n=e.outEdges(t);return n?n.map(t=>({pos:r[t.w],weight:e.edge(t).weight})).sort((e,t)=>e.pos-t.pos):[]}),a=1;for(;a<n.length;)a<<=1;let o=2*a-1;--a;let s=Array(o).fill(0),c=0;return i.forEach(e=>{let t=e.pos+a;s[t]+=e.weight;let n=0;for(;t>0;)t%2&&(n+=s[t+1]),t=t-1>>1,s[t]+=e.weight;c+=e.weight*n}),c}function AM(e,t=[]){return t.map(t=>{let n=e.inEdges(t);if(!n||!n.length)return{v:t};{let r=n.reduce((t,n)=>{let r=e.edge(n),i=e.node(n.v);return{sum:t.sum+r.weight*i.order,weight:t.weight+r.weight}},{sum:0,weight:0});return{v:t,barycenter:r.sum/r.weight,weight:r.weight}}})}function jM(e,t){let n={};return e.forEach((e,t)=>{let r={indegree:0,in:[],out:[],vs:[e.v],i:t};e.barycenter!==void 0&&(r.barycenter=e.barycenter,r.weight=e.weight),n[e.v]=r}),t.edges().forEach(e=>{let t=n[e.v],r=n[e.w];t!==void 0&&r!==void 0&&(r.indegree++,t.out.push(r))}),MM(Object.values(n).filter(e=>!e.indegree))}function MM(e){let t=[];function n(e){return t=>{t.merged||(t.barycenter===void 0||e.barycenter===void 0||t.barycenter>=e.barycenter)&&NM(e,t)}}function r(t){return n=>{n.in.push(t),--n.indegree===0&&e.push(n)}}for(;e.length;){let i=e.pop();t.push(i),i.in.reverse().forEach(n(i)),i.out.forEach(r(i))}return t.filter(e=>!e.merged).map(e=>uj(e,[`vs`,`i`,`barycenter`,`weight`]))}function NM(e,t){let n=0,r=0;e.weight&&(n+=e.barycenter*e.weight,r+=e.weight),t.weight&&(n+=t.barycenter*t.weight,r+=t.weight),e.vs=t.vs.concat(e.vs),e.barycenter=n/r,e.weight=r,e.i=Math.min(t.i,e.i),t.merged=!0}function PM(e,t,n,r,i){let a={},o=null,s=null,c=i;typeof t==`boolean`?(c=t,a={}):t&&(a=t,o=n??null,s=r??null);let l=ij(e,e=>Object.hasOwn(e,`barycenter`)),u=l.lhs,d=l.rhs.sort((e,t)=>t.i-e.i),f=[],p=0,m=0,h=0;u.sort(IM(s,o,!!c));for(let[e,t]of Object.entries(a)){let n=u.findIndex(t=>t.vs[0]===e);u.splice(n+1,0,t)}h=FM(f,d,h),u.forEach(e=>{h+=e.vs.length,f.push(e.vs),p+=e.barycenter*e.weight,m+=e.weight,h=FM(f,d,h)});let g={vs:f.flat(1)};return m&&(g.barycenter=p/m,g.weight=m),g}function FM(e,t,n){let r;for(;t.length&&(r=t[t.length-1]).i<=n;)t.pop(),e.push(r.vs),n++;return n}function IM(e,t,n){return(r,i)=>{if(r.barycenter<i.barycenter)return-1;if(r.barycenter>i.barycenter)return 1;if(e&&(typeof r.vs[0]==`string`||typeof i.vs[0]==`string`)){let n=mj(t,e.node(r.vs[0]),e.node(i.vs[0]));if(n!==0)return n}return n?i.i-r.i:r.i-i.i}}function LM(e,t,n,r,i){var a,o;let s=null,c=i;typeof r==`boolean`?(c=r,s=null):r!==void 0&&(s=r);let l=e.children(t),u=e.node(t),d=u?u.borderLeft:void 0,f=u?u.borderRight:void 0,p={};d&&(l=l.filter(e=>e!==d&&e!==f));let m=AM(e,l);m.forEach(t=>{if(e.children(t.v).length){let{result:r}=LM(e,t.v,n,s,c);p[t.v]=r,Object.hasOwn(r,`barycenter`)&&zM(t,r)}});let h=jM(m,n);RM(h,p);let g={},_=!1;for(let t=0;t<h.length;t++)for(let n=t+1;n<h.length;n++)if(!(!h[t]||!h[n]||!((a=h[t])!=null&&a.barycenter)||!((o=h[n])!=null&&o.barycenter))&&h[t]?.barycenter===h[n].barycenter){let r=h[t]?.vs[0]??``,i=h[n]?.vs[0]??``,a=e.node(r),o=e.node(i);if(a.dummy===`edge`&&o.dummy===`edge`&&a.edgeObj?.v===o.edgeObj?.v&&a.edgeObj?.w===o.edgeObj?.w){if(a.edgeLabel.reversed){g[i]=h[t],h.splice(t,1),t--;break}g[r]=h[n],h.splice(n,1),n--}else _=!0}let v=PM(h,g,s,e,c);if(d&&f){v.vs=[d,v.vs,f].flat(1);let t=e.predecessors(d);if(t&&t.length){let n=e.node(t[0]),r=e.predecessors(f),i=e.node(r[0]);Object.hasOwn(v,`barycenter`)||(v.barycenter=0,v.weight=0),v.barycenter=(v.barycenter*v.weight+n.order+i.order)/(v.weight+2),v.weight+=2}}return Object.defineProperty(v,"result",{value:v,enumerable:!1,configurable:!0,writable:!0}),Object.defineProperty(v,"usedBias",{value:_,enumerable:!1,configurable:!0,writable:!0}),v}function RM(e,t){e.forEach(e=>{e.vs=e.vs.flatMap(e=>t[e]?t[e].vs:e)})}function zM(e,t){e.barycenter===void 0?(e.barycenter=t.barycenter,e.weight=t.weight):(e.barycenter=(e.barycenter*e.weight+t.barycenter*t.weight)/(e.weight+t.weight),e.weight+=t.weight)}function BM(e,t,n,r){r||=e.nodes();let i=VM(e),a=new GA({compound:!0}).setGraph({root:i}).setDefaultNodeLabel(t=>e.node(t));return r.forEach(r=>{let o=e.node(r),s=e.parent(r);if(o.rank===t||o.minRank<=t&&t<=o.maxRank){a.setNode(r),a.setParent(r,s||i);let c=e[n](r);c&&c.forEach(t=>{let n=t.v===r?t.w:t.v,i=a.edge(n,r),o=i===void 0?0:i.weight;a.setEdge(n,r,{weight:e.edge(t).weight+o})}),Object.hasOwn(o,`minRank`)&&a.setNode(r,{borderLeft:o.borderLeft[t],borderRight:o.borderRight[t]})}}),a}function VM(e){let t;for(;e.hasNode(t=cj(`_root`)););return t}function HM(e,t,n){let r={},i;n.forEach(n=>{let a=e.parent(n),o,s;for(;a;){if(o=e.parent(a),o?(s=r[o],r[o]=a):(s=i,i=a),s&&s!==a){t.setEdge(s,a);return}a=o}})}function UM(e,t={},n=null){if(typeof t.customOrder==`function`){t.customOrder(e,UM);return}let r=rj(e),i=WM(e,lj(1,r+1),`inEdges`),a=WM(e,lj(r-1,-1,-1),`outEdges`),o=DM(e,n);if(KM(e,o),t.disableOptimalOrderHeuristic)return;let s=1/0,c,l=t.constraints||[];for(let t=0,r=0;r<4;++t,++r){GM(t%2?i:a,t%4>=2,l,n),o=XA(e);let u=OM(e,o);u<s?(r=0,c=Object.assign({},o),s=u):u===s&&(c=structuredClone(o))}KM(e,c)}function WM(e,t,n){let r=new Map,i=(e,t)=>{r.has(e)||r.set(e,[]),r.get(e).push(t)};for(let t of e.nodes()){let n=e.node(t);if(typeof n.rank==`number`&&i(n.rank,t),typeof n.minRank==`number`&&typeof n.maxRank==`number`)for(let e=n.minRank;e<=n.maxRank;e++)e!==n.rank&&i(e,t)}return t.map(function(t){return BM(e,t,n,r.get(t)||[])})}function GM(e,t,n,r){let i=!0,a=new GA;e.forEach(function(e){n.forEach(e=>a.setEdge(e.left,e.right));let o=e.graph().root,{result:s,usedBias:c}=LM(e,o,a,r,i);t&&c&&(i=!i),s.vs.forEach((t,n)=>e.node(t).order=n),HM(e,a,s.vs)})}function KM(e,t){Object.values(t).forEach(t=>t.forEach((t,n)=>e.node(t).order=n))}function qM(e,t){let n={};function r(t,r){let i=0,a=0,o=t.length,s=r[r.length-1];return r.forEach((t,c)=>{let l=YM(e,t),u=l?e.node(l).order:o;(l||t===s)&&(r.slice(a,c+1).forEach(t=>{let r=e.predecessors(t);r&&r.forEach(r=>{let a=e.node(r),o=a.order;(o<i||u<o)&&!(a.dummy&&e.node(t).dummy)&&XM(n,r,t)})}),a=c+1,i=u)}),r}return t.length&&t.reduce(r),n}function JM(e,t){let n={};function r(t,r,i,a,o){lj(r,i).forEach(r=>{let i=t[r];if(i!==void 0&&e.node(i).dummy){let t=e.predecessors(i);t&&t.forEach(t=>{if(t===void 0)return;let r=e.node(t);r.dummy&&(r.order<a||r.order>o)&&XM(n,t,i)})}})}function i(t,n){let i=-1,a=-1,o=0;return n.forEach((s,c)=>{if(e.node(s).dummy===`border`){let t=e.predecessors(s);if(t&&t.length){let s=t[0];if(s===void 0)return;a=e.node(s).order,r(n,o,c,i,a),o=c,i=a}}r(n,o,n.length,a,t.length)}),n}return t.length&&t.reduce(i),n}function YM(e,t){if(e.node(t).dummy){let n=e.predecessors(t);if(n)return n.find(t=>e.node(t).dummy)}}function XM(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];r||(e[t]=r={}),r[n]=!0}function ZM(e,t,n){if(t>n){let e=t;t=n,n=e}let r=e[t];return r!==void 0&&Object.hasOwn(r,n)}function QM(e,t,n,r,i){let a={},o={},s={};return t.forEach(e=>{e.forEach((e,t)=>{a[e]=e,o[e]=e,s[e]=t})}),t.forEach(t=>{let c=-1,l=-1,u=!1,d=t,f=t.findIndex(t=>i?.includes(t)||sN(t,e,i));f>0&&(d=[t[f],...t.slice(0,f),...t.slice(f+1)],u=!0),d.forEach(t=>{let d=r(t);if(d&&d.length){i!=null&&i.includes(t)&&(d=d.filter(t=>sN(t,e,i)));let r=d.sort((e,t)=>{let n=s[e],r=s[t];return(n===void 0?0:n)-(r===void 0?0:r)}),f=(r.length-1)/2;for(let e=Math.floor(f),i=Math.ceil(f);e<=i;++e){let i=r[e];if(i===void 0)continue;let d=s[i];if(d!==void 0&&o[t]===t&&c<d&&s[i]!==l&&!ZM(n,t,i)){let e=a[i];e!==void 0&&(o[i]=t,o[t]=a[t]=e,c=d,u&&=(c=-1,l=s[i]??-1,!1))}}}})}),{root:a,align:o}}function $M(e,t,n,r,i=!1){let a={},o=eN(e,t,n,i),s=i?`borderLeft`:`borderRight`;function c(e,t){let n=o.nodes().slice(),r={},i=n.pop();for(;i;){if(r[i])e(i);else{r[i]=!0,n.push(i);for(let e of t(i))n.push(e)}i=n.pop()}}function l(e){let t=o.inEdges(e);t?a[e]=t.reduce((e,t)=>{let n=a[t.v]??0,r=o.edge(t);return Math.max(e,n+(r===void 0?0:r))},0):a[e]=0}function u(t){let n=o.outEdges(t),r=1/0;n&&(r=n.reduce((e,t)=>{let n=a[t.w],r=o.edge(t);return Math.min(e,(n===void 0?0:n)-(r===void 0?0:r))},1/0));let i=e.node(t);r!==1/0&&i.borderType!==s&&(a[t]=Math.max(a[t]===void 0?0:a[t],r))}function d(e){return o.predecessors(e)||[]}function f(e){return o.successors(e)||[]}return c(l,d),c(u,f),Object.keys(r).forEach(e=>{let t=n[e];t!==void 0&&(a[e]=a[t]??0)}),a}function eN(e,t,n,r){let i=new GA,a=e.graph(),o=aN(a.nodesep,a.edgesep,r);return t.forEach(t=>{let r;t.forEach(t=>{let a=n[t];if(a!==void 0){if(i.setNode(a),r!==void 0){let s=n[r];if(s!==void 0){let n=i.edge(s,a);i.setEdge(s,a,Math.max(o(e,t,r),n||0))}}r=t}})}),i}function tN(e,t){return Object.values(t).reduce((t,n)=>{let r=-1/0,i=1/0;Object.entries(n).forEach(([t,n])=>{let a=oN(e,t)/2;r=Math.max(n+a,r),i=Math.min(n-a,i)});let a=r-i;return a<t[0]&&(t=[a,n]),t},[1/0,null])[1]}function nN(e,t){let n=Object.values(t),r=nj(Math.min,n),i=nj(Math.max,n);[`u`,`d`].forEach(n=>{[`l`,`r`].forEach(a=>{let o=n+a,s=e[o];if(!s||s===t)return;let c=Object.values(s),l=r-nj(Math.min,c);a!==`l`&&(l=i-nj(Math.max,c)),l&&(e[o]=dj(s,e=>e+l))})})}function rN(e,t=void 0){let n=e.ul;return n?dj(n,(n,r)=>{if(t){let n=e[t.toLowerCase()];if(n&&n[r]!==void 0)return n[r]}let i=Object.values(e).map(e=>{let t=e[r];return t===void 0?0:t}).sort((e,t)=>e-t);return((i[1]??0)+(i[2]??0))/2}):{}}function iN(e,t){let n=XA(e),r=Object.assign(qM(e,n),JM(e,n)),i={},a;return[`u`,`d`].forEach(o=>{a=o===`u`?n:Object.values(n).reverse(),[`l`,`r`].forEach(n=>{n===`r`&&(a=a.map(e=>Object.values(e).reverse()));let s=QM(e,a,r,t=>(o===`u`?e.predecessors(t):e.successors(t))||[],t),c=$M(e,a,s.root,s.align,n===`r`);n===`r`&&(c=dj(c,e=>-e)),i[o+n]=c})}),nN(i,tN(e,i)),rN(i,e.graph().align)}function aN(e,t,n){return(r,i,a)=>{let o=r.node(i),s=r.node(a),c=0,l;if(c+=o.width/2,Object.hasOwn(o,`labelpos`))switch(o.labelpos.toLowerCase()){case`l`:l=-o.width/2;break;case`r`:l=o.width/2;break}if(l&&(c+=n?l:-l),l=void 0,c+=(o.dummy?t:e)/2,c+=(s.dummy?t:e)/2,c+=s.width/2,Object.hasOwn(s,`labelpos`))switch(s.labelpos.toLowerCase()){case`l`:l=s.width/2;break;case`r`:l=-s.width/2;break}return l&&(c+=n?l:-l),c}}function oN(e,t){return e.node(t).width}function sN(e,t,n){if(!n)return!1;let r=t.node(e)?.edgeObj;if(!r||t.node(e).edgeLabel.reversed)return!1;let i=n.indexOf(r?.v),a=n.indexOf(r?.w);return i!==-1&&a!==-1&&i===(a+1)%n.length||i===(a-1)%n.length}function cN(e,t){e=JA(e),lN(e),Object.entries(iN(e,t)).forEach(([t,n])=>e.node(t).x=n)}function lN(e){let t=XA(e),n=e.graph(),r=n.ranksep,i=n.rankalign,a=0;t.forEach(t=>{let n=t.reduce((t,n)=>{let r=e.node(n).height??0;return t>r?t:r},0);t.forEach(t=>{let r=e.node(t);r.y=i===`top`?a+r.height/2:i===`bottom`?a+n-r.height/2:a+n/2}),a+=n+r})}var uN=new WeakMap;function dN(e,t={}){return pN(e,oj,t),e}function fN(e,t,n){let r=t;for(;r!==void 0;){let t=e.parent(r);if(t===n)return r;r=t}}function pN(e,t,n){let r=e.nodes().filter(t=>e.children(t).length),i={};r.forEach(r=>{let a=e.node(r);if(a&&a.rankdir){let o=new GA({multigraph:!0,compound:!0});o.setGraph({rankdir:a.rankdir});let s=e.children(r);s.forEach(t=>{let n={...e.node(t)};o.setNode(t,n);let i=e.parent(t);i&&i!==r&&s.includes(i)&&o.setParent(t,i)});let c=new Set;e.edges().forEach(t=>{let n=fN(e,t.v,r),i=fN(e,t.w,r);if(n&&i&&n!==i){let r=`${n}\0${i}`;c.has(r)||(c.add(r),o.setEdge(n,i,{...e.edge(t)}))}}),pN(o,t,n);let l=wN(o);mN(l,t,n,null),hN(o,l);let u=1/0,d=1/0,f=-1/0,p=-1/0;o.nodes().forEach(e=>{if(e===r)return;let t=o.node(e);t&&typeof t.x==`number`&&typeof t.y==`number`&&typeof t.width==`number`&&typeof t.height==`number`&&(u=Math.min(u,t.x-t.width/2),f=Math.max(f,t.x+t.width/2),d=Math.min(d,t.y-t.height/2),p=Math.max(p,t.y+t.height/2))}),(!isFinite(u)||!isFinite(d)||!isFinite(f)||!isFinite(p))&&(u=d=0,f=p=0);let m=f-u,h=p-d;i[r]={minX:u,minY:d,maxX:f,maxY:p,width:m,height:h,offsetX:u,offsetY:d},a._dagreClusterSubgraph=o}});let a=[],o=t=>{let n=[],r=(e.children(t)||[]).filter(e=>e!==t);for(;r.length>0;){let t=r.shift();n.push(t),(e.children(t)||[]).filter(e=>e!==t).forEach(e=>r.push(e))}return n},s=new Map;r.forEach(t=>{let n=e.node(t);n&&n.rankdir&&i[t]&&s.set(t,(e.children(t)||[]).filter(e=>e!==t))});let c=new Set([...s.values()].flat()),l=new Map;s.forEach((e,t)=>{c.has(t)||l.set(t,o(t))});let u=new Set([...l.values()].flat()),d=e=>{for(let[t,n]of l)if(n.includes(e))return t;return e},f=[];e.edges().forEach(t=>{(u.has(t.v)||u.has(t.w))&&f.push({edge:t,label:e.edge(t)})});let p=new Map;u.forEach(t=>{let n=e.parent(t);p.set(t,typeof n==`string`?n:void 0)}),l.forEach((t,n)=>{let r=e.node(n),o=[];t.forEach(t=>{let n=e.node(t);n&&(o.push({id:t,node:n,parent:p.get(t)}),e.removeNode(t))});let s=f.filter(({edge:e})=>t.includes(e.v)||t.includes(e.w)),c=i[n];r&&(a.push({clusterId:n,subgraph:r._dagreClusterSubgraph,bounds:c,children:t,removedNodes:o,removedEdges:s}),r.width=c.width,r.height=c.height)});let m=new Set;f.forEach(({edge:t,label:n})=>{let r=d(t.v),i=d(t.w);if(r!==i&&e.hasNode(r)&&e.hasNode(i)){let t=`${r}\0${i}`;m.has(t)||(m.add(t),e.setEdge(r,i,{...n,width:0,height:0}))}});let h=wN(e),g=mN(h,t,n,uN.get(e)??null);uN.set(e,g),hN(e,h),m.forEach(t=>{let n=t.indexOf(`\0`),r=t.slice(0,n),i=t.slice(n+1);e.hasEdge(r,i)&&e.removeEdge(r,i)}),a.forEach(({clusterId:t,subgraph:n,bounds:r,removedNodes:i,removedEdges:a})=>{let o=e.node(t),s=o?.x??0,c=o?.y??0,l=(r.minX+r.maxX)/2,u=(r.minY+r.maxY)/2;i.forEach(({id:t,node:n,parent:r})=>{e.setNode(t,n),r!==void 0&&e.setParent(t,r)}),a.forEach(({edge:t,label:n})=>{e.setEdge(t,n)}),n.nodes().forEach(r=>{if(r===t)return;let i=n.node(r),a=e.node(r);a&&i&&typeof i.x==`number`&&typeof i.y==`number`&&(a.x=s+(i.x-l),a.y=c+(i.y-u))}),delete o._dagreClusterSubgraph}),r.forEach(t=>{let n=e.node(t),r=i[t];if(n&&n.rankdir&&n._dagreClusterSubgraph&&r){let i=n._dagreClusterSubgraph,a=n.x??0,o=n.y??0,s=(r.minX+r.maxX)/2,c=(r.minY+r.maxY)/2;i.nodes().forEach(n=>{if(n===t)return;let r=i.node(n),l=e.node(n);if(l&&r&&typeof r.x==`number`&&typeof r.y==`number`){let e=r.x-s,t=r.y-c;l.x=a+e,l.y=o+t}}),delete n._dagreClusterSubgraph}})}function mN(e,t,n,r=null){var i,a;let o=n?.useDynamic!==!1,s=o&&(i=r?.graph)!=null?i:null,c=o&&(a=r?.rawNodes)!=null?a:null;t(` makeSpaceForEdgeLabels`,()=>TN(e)),t(` removeSelfEdges`,()=>PN(e)),t(` acyclic`,()=>Dj(e,s)),t(` nestingGraph.run`,()=>dM(e)),t(` rank`,()=>nM(JA(e))),t(` injectEdgeLabelProxies`,()=>EN(e)),t(` removeEmptyRanks`,()=>QA(e)),t(` nestingGraph.cleanup`,()=>hM(e)),t(` normalizeRanks`,()=>ZA(e)),t(` assignRankMinMax`,()=>DN(e)),t(` removeEdgeLabelProxies`,()=>ON(e)),t(` normalize.run`,()=>jj(e)),t(` parentDummyChains`,()=>sM(e)),t(` addBorderSegments`,()=>gM(e)),t(` order`,()=>UM(e,n,c)),t(` insertSelfEdges`,()=>FN(e)),t(` adjustCoordinateSystem`,()=>yM(e)),t(` position`,()=>cN(e,n.corePath)),t(` positionSelfEdges`,()=>IN(e));let l=JSON.parse(JSON.stringify(e._nodes));return t(` removeBorderNodes`,()=>NN(e)),t(` normalize.undo`,()=>Nj(e)),t(` fixupEdgeLabelCoords`,()=>jN(e)),t(` undoCoordinateSystem`,()=>bM(e)),t(` translateGraph`,()=>kN(e)),t(` assignNodeIntersects`,()=>AN(e)),t(` reversePoints`,()=>MN(e)),t(` acyclic.undo`,()=>kj(e)),{graph:e,rawNodes:l}}function hN(e,t){e.nodes().forEach(n=>{let r=e.node(n),i=t.node(n);r&&(r.x=i.x,r.y=i.y,r.order=i.order,r.rank=i.rank,t.children(n).length&&(r.width=i.width,r.height=i.height))}),e.edges().forEach(n=>{let r=e.edge(n),i=t.edge(n);r.points=i.points,Object.hasOwn(i,`x`)&&(r.x=i.x,r.y=i.y)}),e.graph().width=t.graph().width,e.graph().height=t.graph().height}var gN=[`nodesep`,`edgesep`,`ranksep`,`marginx`,`marginy`],_N={ranksep:50,edgesep:20,nodesep:50,rankdir:`TB`,rankalign:`center`},vN=[`acyclicer`,`ranker`,`rankdir`,`align`,`rankalign`],yN=[`width`,`height`,`rank`],bN={width:0,height:0},xN=[`minlen`,`weight`,`width`,`height`,`labeloffset`],SN={minlen:1,weight:1,width:0,height:0,labeloffset:10,labelpos:`r`},CN=[`labelpos`];function wN(e){let t=new GA({multigraph:!0,compound:!0}),n=RN(e.graph());return t.setGraph(Object.assign({},_N,LN(n,gN),uj(n,vN))),e.nodes().forEach(n=>{let r=LN(RN(e.node(n)),yN);Object.keys(bN).forEach(e=>{r[e]===void 0&&(r[e]=bN[e])}),t.setNode(n,r);let i=e.parent(n);i!==void 0&&t.setParent(n,i)}),e.edges().forEach(n=>{let r=RN(e.edge(n));t.setEdge(n,Object.assign({},SN,LN(r,xN),uj(r,CN)))}),t}function TN(e){let t=e.graph();t.ranksep/=2,e.edges().forEach(n=>{let r=e.edge(n);r.minlen*=2,(r.labelpos??`r`).toLowerCase()!==`c`&&(t.rankdir===`TB`||t.rankdir===`BT`?r.width+=r.labeloffset:r.height+=r.labeloffset)})}function EN(e){e.edges().forEach(t=>{let n=e.edge(t);if(n.width&&n.height){let n=e.node(t.v);KA(e,`edge-proxy`,{rank:(e.node(t.w).rank-n.rank)/2+n.rank,e:t},`_ep`)}})}function DN(e){let t=0;e.nodes().forEach(n=>{let r=e.node(n);r.borderTop&&(r.minRank=e.node(r.borderTop).rank,r.maxRank=e.node(r.borderBottom).rank,t=Math.max(t,r.maxRank))}),e.graph().maxRank=t}function ON(e){e.nodes().forEach(t=>{let n=e.node(t);if(n.dummy===`edge-proxy`){let r=n;e.edge(r.e).labelRank=n.rank,e.removeNode(t)}})}function kN(e){let t=1/0,n=0,r=1/0,i=0,a=e.graph(),o=a.marginx||0,s=a.marginy||0;function c(e){let a=e.x,o=e.y,s=e.width,c=e.height;t=Math.min(t,a-s/2),n=Math.max(n,a+s/2),r=Math.min(r,o-c/2),i=Math.max(i,o+c/2)}e.nodes().forEach(t=>c(e.node(t))),e.edges().forEach(t=>{let n=e.edge(t);Object.hasOwn(n,`x`)&&c(n)}),t-=o,r-=s,e.nodes().forEach(n=>{let i=e.node(n);i.x-=t,i.y-=r}),e.edges().forEach(n=>{let i=e.edge(n);i.points.forEach(e=>{e.x-=t,e.y-=r}),Object.hasOwn(i,`x`)&&(i.x-=t),Object.hasOwn(i,`y`)&&(i.y-=r)}),a.width=n-t+o,a.height=i-r+s}function AN(e){e.edges().forEach(t=>{if(t.v===t.w)return;let n=e.edge(t),r=e.node(t.v),i=e.node(t.w),a,o;n.points?(a=n.points[0],o=n.points[n.points.length-1]):(n.points=[],a=i,o=r),n.points.unshift(YA(r,a)),n.points.push(YA(i,o))})}function jN(e){e.edges().forEach(t=>{let n=e.edge(t);if(Object.hasOwn(n,`x`))switch((n.labelpos===`l`||n.labelpos===`r`)&&(n.width-=n.labeloffset),n.labelpos){case`l`:n.x-=n.width/2+n.labeloffset;break;case`r`:n.x+=n.width/2+n.labeloffset;break}})}function MN(e){e.edges().forEach(t=>{let n=e.edge(t);n.reversed&&n.points.reverse()})}function NN(e){e.nodes().forEach(t=>{if(e.children(t).length){let n=e.node(t),r=e.node(n.borderTop),i=e.node(n.borderBottom),a=e.node(n.borderLeft[n.borderLeft.length-1]),o=e.node(n.borderRight[n.borderRight.length-1]);n.width=Math.abs(o.x-a.x),n.height=Math.abs(i.y-r.y),n.x=a.x+n.width/2,n.y=r.y+n.height/2}}),e.nodes().forEach(t=>{e.node(t).dummy===`border`&&e.removeNode(t)})}function PN(e){e.edges().forEach(t=>{if(t.v===t.w){let n=e.node(t.v);n.selfEdges||=[],n.selfEdges.push({e:t,label:e.edge(t)}),e.removeEdge(t)}})}function FN(e){XA(e).forEach(t=>{let n=0;t.forEach((t,r)=>{let i=e.node(t);typeof i.rank!=`number`&&(i.rank=0),i.order=r+n,(i.selfEdges||[]).forEach(t=>{KA(e,`selfedge`,{width:t.label.width,height:t.label.height,rank:i.rank,order:r+ ++n,e:t.e,edgeLabel:t.label},`_se`),(!Array.isArray(t.label.points)||t.label.points.length!==7)&&(t.label.points=[{x:0,y:-10},{x:0,y:-10},{x:0,y:0},{x:0,y:10},{x:0,y:10},{x:0,y:0},{x:0,y:0}])}),delete i.selfEdges})})}function IN(e){e.nodes().forEach(t=>{let n=e.node(t),r=e=>typeof e==`number`&&isFinite(e);if(n.dummy===`selfedge`){let i=n,a=e.node(i.e.v),o=r(a?.x)?a.x:0,s=r(a?.y)?a.y:0,c=r(a?.width)?a.width:0,l=r(a?.height)?a.height:0,u=r(n.x)?n.x:o,d=r(n.y)?n.y:s,f=c/2,p=l/2;i.edgeLabel.points=[{x:u+f,y:d-p},{x:u+f,y:d-p},{x:u,y:d},{x:u-f,y:d+p},{x:u-f,y:d+p},{x:u,y:d},{x:u,y:d}],i.edgeLabel.x=u,i.edgeLabel.y=d,e.setEdge(i.e,i.edgeLabel),e.removeNode(t)}else n&&Array.isArray(n.selfEdges)&&n.selfEdges.forEach(e=>{if(!Array.isArray(e.label.points)||e.label.points.length!==7){let t=r(n.x)?n.x:0,i=r(n.y)?n.y:0,a=r(n.width)?n.width:0,o=r(n.height)?n.height:0,s=a/2,c=o/2;e.label.points=[{x:t+s,y:i-c},{x:t+s,y:i-c},{x:t,y:i},{x:t-s,y:i+c},{x:t-s,y:i+c},{x:t,y:i},{x:t,y:i}]}})})}function LN(e,t){return dj(uj(e,t),Number)}function RN(e){let t={};return e&&Object.entries(e).forEach(([e,n])=>{typeof e==`string`&&(e=e.toLowerCase()),t[e]=n}),t}function zN(e){let t=XA(e),n=new GA({compound:!0,multigraph:!0}).setGraph({});return e.nodes().forEach(t=>{n.setNode(t,{label:t}),n.setParent(t,`layer`+e.node(t).rank)}),e.edges().forEach(e=>n.setEdge(e.v,e.w,{},e.name)),t.forEach((e,t)=>{let r=`layer`+t;n.setNode(r,{rank:`same`}),e.reduce((e,t)=>(n.setEdge(e,t,{style:`invis`}),t))}),n}var BN={graphlib:oA,version:hj,layout:dN,debug:zN,util:{time:aj,notime:oj}};function VN(e){if(typeof e==`string`||typeof e==`number`)return``+e;let t=``;if(Array.isArray(e))for(let n=0,r;n<e.length;n++)(r=VN(e[n]))!==``&&(t+=(t&&` `)+r);else for(let n in e)e[n]&&(t+=(t&&` `)+n);return t}var HN={value:()=>{}};function UN(){for(var e=0,t=arguments.length,n={},r;e<t;++e){if(!(r=arguments[e]+``)||r in n||/[\s.]/.test(r))throw Error(`illegal type: `+r);n[r]=[]}return new WN(n)}function WN(e){this._=e}function GN(e,t){return e.trim().split(/^|\s+/).map(function(e){var n=``,r=e.indexOf(`.`);if(r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),e&&!t.hasOwnProperty(e))throw Error(`unknown type: `+e);return{type:e,name:n}})}WN.prototype=UN.prototype={constructor:WN,on:function(e,t){var n=this._,r=GN(e+``,n),i,a=-1,o=r.length;if(arguments.length<2){for(;++a<o;)if((i=(e=r[a]).type)&&(i=KN(n[i],e.name)))return i;return}if(t!=null&&typeof t!=`function`)throw Error(`invalid callback: `+t);for(;++a<o;)if(i=(e=r[a]).type)n[i]=qN(n[i],e.name,t);else if(t==null)for(i in n)n[i]=qN(n[i],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new WN(e)},call:function(e,t){if((i=arguments.length-2)>0)for(var n=Array(i),r=0,i,a;r<i;++r)n[r]=arguments[r+2];if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(a=this._[e],r=0,i=a.length;r<i;++r)a[r].value.apply(t,n)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error(`unknown type: `+e);for(var r=this._[e],i=0,a=r.length;i<a;++i)r[i].value.apply(t,n)}};function KN(e,t){for(var n=0,r=e.length,i;n<r;++n)if((i=e[n]).name===t)return i.value}function qN(e,t,n){for(var r=0,i=e.length;r<i;++r)if(e[r].name===t){e[r]=HN,e=e.slice(0,r).concat(e.slice(r+1));break}return n!=null&&e.push({name:t,value:n}),e}var JN={svg:`http://www.w3.org/2000/svg`,xhtml:`http://www.w3.org/1999/xhtml`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`};function YN(e){var t=e+=``,n=t.indexOf(`:`);return n>=0&&(t=e.slice(0,n))!==`xmlns`&&(e=e.slice(n+1)),JN.hasOwnProperty(t)?{space:JN[t],local:e}:e}function XN(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===`http://www.w3.org/1999/xhtml`&&t.documentElement.namespaceURI===`http://www.w3.org/1999/xhtml`?t.createElement(e):t.createElementNS(n,e)}}function ZN(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function QN(e){var t=YN(e);return(t.local?ZN:XN)(t)}function $N(){}function eP(e){return e==null?$N:function(){return this.querySelector(e)}}function tP(e){typeof e!=`function`&&(e=eP(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=Array(o),c,l,u=0;u<o;++u)(c=a[u])&&(l=e.call(c,c.__data__,u,a))&&(`__data__`in c&&(l.__data__=c.__data__),s[u]=l);return new UF(r,this._parents)}function nP(e){return e==null?[]:Array.isArray(e)?e:Array.from(e)}function rP(){return[]}function iP(e){return e==null?rP:function(){return this.querySelectorAll(e)}}function aP(e){return function(){return nP(e.apply(this,arguments))}}function oP(e){e=typeof e==`function`?aP(e):iP(e);for(var t=this._groups,n=t.length,r=[],i=[],a=0;a<n;++a)for(var o=t[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&(r.push(e.call(c,c.__data__,l,o)),i.push(c));return new UF(r,i)}function sP(e){return function(){return this.matches(e)}}function cP(e){return function(t){return t.matches(e)}}var lP=Array.prototype.find;function uP(e){return function(){return lP.call(this.children,e)}}function dP(){return this.firstElementChild}function fP(e){return this.select(e==null?dP:uP(typeof e==`function`?e:cP(e)))}var pP=Array.prototype.filter;function mP(){return Array.from(this.children)}function hP(e){return function(){return pP.call(this.children,e)}}function gP(e){return this.selectAll(e==null?mP:hP(typeof e==`function`?e:cP(e)))}function _P(e){typeof e!=`function`&&(e=sP(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new UF(r,this._parents)}function vP(e){return Array(e.length)}function yP(){return new UF(this._enter||this._groups.map(vP),this._parents)}function bP(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}bP.prototype={constructor:bP,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}};function xP(e){return function(){return e}}function SP(e,t,n,r,i,a){for(var o=0,s,c=t.length,l=a.length;o<l;++o)(s=t[o])?(s.__data__=a[o],r[o]=s):n[o]=new bP(e,a[o]);for(;o<c;++o)(s=t[o])&&(i[o]=s)}function CP(e,t,n,r,i,a,o){var s,c,l=new Map,u=t.length,d=a.length,f=Array(u),p;for(s=0;s<u;++s)(c=t[s])&&(f[s]=p=o.call(c,c.__data__,s,t)+``,l.has(p)?i[s]=c:l.set(p,c));for(s=0;s<d;++s)p=o.call(e,a[s],s,a)+``,(c=l.get(p))?(r[s]=c,c.__data__=a[s],l.delete(p)):n[s]=new bP(e,a[s]);for(s=0;s<u;++s)(c=t[s])&&l.get(f[s])===c&&(i[s]=c)}function wP(e){return e.__data__}function TP(e,t){if(!arguments.length)return Array.from(this,wP);var n=t?CP:SP,r=this._parents,i=this._groups;typeof e!=`function`&&(e=xP(e));for(var a=i.length,o=Array(a),s=Array(a),c=Array(a),l=0;l<a;++l){var u=r[l],d=i[l],f=d.length,p=EP(e.call(u,u&&u.__data__,l,r)),m=p.length,h=s[l]=Array(m),g=o[l]=Array(m);n(u,d,h,g,c[l]=Array(f),p,t);for(var _=0,v=0,y,b;_<m;++_)if(y=h[_]){for(_>=v&&(v=_+1);!(b=g[v])&&++v<m;);y._next=b||null}}return o=new UF(o,r),o._enter=s,o._exit=c,o}function EP(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function DP(){return new UF(this._exit||this._groups.map(vP),this._parents)}function OP(e,t,n){var r=this.enter(),i=this,a=this.exit();return typeof e==`function`?(r=e(r),r&&=r.selection()):r=r.append(e+``),t!=null&&(i=t(i),i&&=i.selection()),n==null?a.remove():n(a),r&&i?r.merge(i).order():i}function kP(e){for(var t=e.selection?e.selection():e,n=this._groups,r=t._groups,i=n.length,a=r.length,o=Math.min(i,a),s=Array(i),c=0;c<o;++c)for(var l=n[c],u=r[c],d=l.length,f=s[c]=Array(d),p,m=0;m<d;++m)(p=l[m]||u[m])&&(f[m]=p);for(;c<i;++c)s[c]=n[c];return new UF(s,this._parents)}function AP(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var r=e[t],i=r.length-1,a=r[i],o;--i>=0;)(o=r[i])&&(a&&o.compareDocumentPosition(a)^4&&a.parentNode.insertBefore(o,a),a=o);return this}function jP(e){e||=MP;function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}for(var n=this._groups,r=n.length,i=Array(r),a=0;a<r;++a){for(var o=n[a],s=o.length,c=i[a]=Array(s),l,u=0;u<s;++u)(l=o[u])&&(c[u]=l);c.sort(t)}return new UF(i,this._parents).order()}function MP(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function NP(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function PP(){return Array.from(this)}function FP(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length;i<a;++i){var o=r[i];if(o)return o}return null}function IP(){let e=0;for(let t of this)++e;return e}function LP(){return!this.node()}function RP(e){for(var t=this._groups,n=0,r=t.length;n<r;++n)for(var i=t[n],a=0,o=i.length,s;a<o;++a)(s=i[a])&&e.call(s,s.__data__,a,i);return this}function zP(e){return function(){this.removeAttribute(e)}}function BP(e){return function(){this.removeAttributeNS(e.space,e.local)}}function VP(e,t){return function(){this.setAttribute(e,t)}}function HP(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}function UP(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttribute(e):this.setAttribute(e,n)}}function WP(e,t){return function(){var n=t.apply(this,arguments);n==null?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}function GP(e,t){var n=YN(e);if(arguments.length<2){var r=this.node();return n.local?r.getAttributeNS(n.space,n.local):r.getAttribute(n)}return this.each((t==null?n.local?BP:zP:typeof t==`function`?n.local?WP:UP:n.local?HP:VP)(n,t))}function KP(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function qP(e){return function(){this.style.removeProperty(e)}}function JP(e,t,n){return function(){this.style.setProperty(e,t,n)}}function YP(e,t,n){return function(){var r=t.apply(this,arguments);r==null?this.style.removeProperty(e):this.style.setProperty(e,r,n)}}function XP(e,t,n){return arguments.length>1?this.each((t==null?qP:typeof t==`function`?YP:JP)(e,t,n??``)):ZP(this.node(),e)}function ZP(e,t){return e.style.getPropertyValue(t)||KP(e).getComputedStyle(e,null).getPropertyValue(t)}function QP(e){return function(){delete this[e]}}function $P(e,t){return function(){this[e]=t}}function eF(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function tF(e,t){return arguments.length>1?this.each((t==null?QP:typeof t==`function`?eF:$P)(e,t)):this.node()[e]}function nF(e){return e.trim().split(/^|\s+/)}function rF(e){return e.classList||new iF(e)}function iF(e){this._node=e,this._names=nF(e.getAttribute(`class`)||``)}iF.prototype={add:function(e){this._names.indexOf(e)<0&&(this._names.push(e),this._node.setAttribute(`class`,this._names.join(` `)))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute(`class`,this._names.join(` `)))},contains:function(e){return this._names.indexOf(e)>=0}};function aF(e,t){for(var n=rF(e),r=-1,i=t.length;++r<i;)n.add(t[r])}function oF(e,t){for(var n=rF(e),r=-1,i=t.length;++r<i;)n.remove(t[r])}function sF(e){return function(){aF(this,e)}}function cF(e){return function(){oF(this,e)}}function lF(e,t){return function(){(t.apply(this,arguments)?aF:oF)(this,e)}}function uF(e,t){var n=nF(e+``);if(arguments.length<2){for(var r=rF(this.node()),i=-1,a=n.length;++i<a;)if(!r.contains(n[i]))return!1;return!0}return this.each((typeof t==`function`?lF:t?sF:cF)(n,t))}function dF(){this.textContent=``}function fF(e){return function(){this.textContent=e}}function pF(e){return function(){var t=e.apply(this,arguments);this.textContent=t??``}}function mF(e){return arguments.length?this.each(e==null?dF:(typeof e==`function`?pF:fF)(e)):this.node().textContent}function hF(){this.innerHTML=``}function gF(e){return function(){this.innerHTML=e}}function _F(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??``}}function vF(e){return arguments.length?this.each(e==null?hF:(typeof e==`function`?_F:gF)(e)):this.node().innerHTML}function yF(){this.nextSibling&&this.parentNode.appendChild(this)}function bF(){return this.each(yF)}function xF(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function SF(){return this.each(xF)}function CF(e){var t=typeof e==`function`?e:QN(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})}function wF(){return null}function TF(e,t){var n=typeof e==`function`?e:QN(e),r=t==null?wF:typeof t==`function`?t:eP(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),r.apply(this,arguments)||null)})}function EF(){var e=this.parentNode;e&&e.removeChild(this)}function DF(){return this.each(EF)}function OF(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function kF(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function AF(e){return this.select(e?kF:OF)}function jF(e){return arguments.length?this.property(`__data__`,e):this.node().__data__}function MF(e){return function(t){e.call(this,t,this.__data__)}}function NF(e){return e.trim().split(/^|\s+/).map(function(e){var t=``,n=e.indexOf(`.`);return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}})}function PF(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,a;n<i;++n)a=t[n],(!e.type||a.type===e.type)&&a.name===e.name?this.removeEventListener(a.type,a.listener,a.options):t[++r]=a;++r?t.length=r:delete this.__on}}}function FF(e,t,n){return function(){var r=this.__on,i,a=MF(t);if(r){for(var o=0,s=r.length;o<s;++o)if((i=r[o]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=a,i.options=n),i.value=t;return}}this.addEventListener(e.type,a,n),i={type:e.type,name:e.name,value:t,listener:a,options:n},r?r.push(i):this.__on=[i]}}function IF(e,t,n){var r=NF(e+``),i,a=r.length,o;if(arguments.length<2){var s=this.node().__on;if(s){for(var c=0,l=s.length,u;c<l;++c)for(i=0,u=s[c];i<a;++i)if((o=r[i]).type===u.type&&o.name===u.name)return u.value}return}for(s=t?FF:PF,i=0;i<a;++i)this.each(s(r[i],t,n));return this}function LF(e,t,n){var r=KP(e),i=r.CustomEvent;typeof i==`function`?i=new i(t,n):(i=r.document.createEvent(`Event`),n?(i.initEvent(t,n.bubbles,n.cancelable),i.detail=n.detail):i.initEvent(t,!1,!1)),e.dispatchEvent(i)}function RF(e,t){return function(){return LF(this,e,t)}}function zF(e,t){return function(){return LF(this,e,t.apply(this,arguments))}}function BF(e,t){return this.each((typeof t==`function`?zF:RF)(e,t))}function*VF(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var r=e[t],i=0,a=r.length,o;i<a;++i)(o=r[i])&&(yield o)}var HF=[null];function UF(e,t){this._groups=e,this._parents=t}function WF(){return new UF([[document.documentElement]],HF)}function GF(){return this}UF.prototype=WF.prototype={constructor:UF,select:tP,selectAll:oP,selectChild:fP,selectChildren:gP,filter:_P,data:TP,enter:yP,exit:DP,join:OP,merge:kP,selection:GF,order:AP,sort:jP,call:NP,nodes:PP,node:FP,size:IP,empty:LP,each:RP,attr:GP,style:XP,property:tF,classed:uF,text:mF,html:vF,raise:bF,lower:SF,append:CF,insert:TF,remove:DF,clone:AF,datum:jF,on:IF,dispatch:BF,[Symbol.iterator]:VF};function KF(e){return typeof e==`string`?new UF([[document.querySelector(e)]],[document.documentElement]):new UF([[e]],HF)}function qF(e){let t;for(;t=e.sourceEvent;)e=t;return e}function JF(e,t){if(e=qF(e),t===void 0&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var r=n.createSVGPoint();return r.x=e.clientX,r.y=e.clientY,r=r.matrixTransform(t.getScreenCTM().inverse()),[r.x,r.y]}if(t.getBoundingClientRect){var i=t.getBoundingClientRect();return[e.clientX-i.left-t.clientLeft,e.clientY-i.top-t.clientTop]}}return[e.pageX,e.pageY]}var YF={passive:!1},XF={capture:!0,passive:!1};function ZF(e){e.stopImmediatePropagation()}function QF(e){e.preventDefault(),e.stopImmediatePropagation()}function $F(e){var t=e.document.documentElement,n=KF(e).on(`dragstart.drag`,QF,XF);`onselectstart`in t?n.on(`selectstart.drag`,QF,XF):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect=`none`)}function eI(e,t){var n=e.document.documentElement,r=KF(e).on(`dragstart.drag`,null);t&&(r.on(`click.drag`,QF,XF),setTimeout(function(){r.on(`click.drag`,null)},0)),`onselectstart`in n?r.on(`selectstart.drag`,null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}var tI=e=>()=>e;function nI(e,{sourceEvent:t,subject:n,target:r,identifier:i,active:a,x:o,y:s,dx:c,dy:l,dispatch:u}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:r,enumerable:!0,configurable:!0},identifier:{value:i,enumerable:!0,configurable:!0},active:{value:a,enumerable:!0,configurable:!0},x:{value:o,enumerable:!0,configurable:!0},y:{value:s,enumerable:!0,configurable:!0},dx:{value:c,enumerable:!0,configurable:!0},dy:{value:l,enumerable:!0,configurable:!0},_:{value:u}})}nI.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};function rI(e){return!e.ctrlKey&&!e.button}function iI(){return this.parentNode}function aI(e,t){return t??{x:e.x,y:e.y}}function oI(){return navigator.maxTouchPoints||`ontouchstart`in this}function sI(){var e=rI,t=iI,n=aI,r=oI,i={},a=UN(`start`,`drag`,`end`),o=0,s,c,l,u,d=0;function f(e){e.on(`mousedown.drag`,p).filter(r).on(`touchstart.drag`,g).on(`touchmove.drag`,_,YF).on(`touchend.drag touchcancel.drag`,v).style(`touch-action`,`none`).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}function p(n,r){if(!(u||!e.call(this,n,r))){var i=y(this,t.call(this,n,r),n,r,`mouse`);i&&(KF(n.view).on(`mousemove.drag`,m,XF).on(`mouseup.drag`,h,XF),$F(n.view),ZF(n),l=!1,s=n.clientX,c=n.clientY,i(`start`,n))}}function m(e){if(QF(e),!l){var t=e.clientX-s,n=e.clientY-c;l=t*t+n*n>d}i.mouse(`drag`,e)}function h(e){KF(e.view).on(`mousemove.drag mouseup.drag`,null),eI(e.view,l),QF(e),i.mouse(`end`,e)}function g(n,r){if(e.call(this,n,r)){var i=n.changedTouches,a=t.call(this,n,r),o=i.length,s,c;for(s=0;s<o;++s)(c=y(this,a,n,r,i[s].identifier,i[s]))&&(ZF(n),c(`start`,n,i[s]))}}function _(e){var t=e.changedTouches,n=t.length,r,a;for(r=0;r<n;++r)(a=i[t[r].identifier])&&(QF(e),a(`drag`,e,t[r]))}function v(e){var t=e.changedTouches,n=t.length,r,a;for(u&&clearTimeout(u),u=setTimeout(function(){u=null},500),r=0;r<n;++r)(a=i[t[r].identifier])&&(ZF(e),a(`end`,e,t[r]))}function y(e,t,r,s,c,l){var u=a.copy(),d=JF(l||r,t),p,m,h;if((h=n.call(e,new nI(`beforestart`,{sourceEvent:r,target:f,identifier:c,active:o,x:d[0],y:d[1],dx:0,dy:0,dispatch:u}),s))!=null)return p=h.x-d[0]||0,m=h.y-d[1]||0,function n(r,a,l){var g=d,_;switch(r){case`start`:i[c]=n,_=o++;break;case`end`:delete i[c],--o;case`drag`:d=JF(l||a,t),_=o}u.call(r,e,new nI(r,{sourceEvent:a,subject:h,target:f,identifier:c,active:_,x:d[0]+p,y:d[1]+m,dx:d[0]-g[0],dy:d[1]-g[1],dispatch:u}),s)}}return f.filter=function(t){return arguments.length?(e=typeof t==`function`?t:tI(!!t),f):e},f.container=function(e){return arguments.length?(t=typeof e==`function`?e:tI(e),f):t},f.subject=function(e){return arguments.length?(n=typeof e==`function`?e:tI(e),f):n},f.touchable=function(e){return arguments.length?(r=typeof e==`function`?e:tI(!!e),f):r},f.on=function(){var e=a.on.apply(a,arguments);return e===a?f:e},f.clickDistance=function(e){return arguments.length?(d=(e=+e)*e,f):Math.sqrt(d)},f}function cI(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function lI(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function uI(){}var dI=.7,fI=1/dI,pI=`\\s*([+-]?\\d+)\\s*`,mI=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,hI=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,gI=/^#([0-9a-f]{3,8})$/,_I=RegExp(`^rgb\\(${pI},${pI},${pI}\\)$`),vI=RegExp(`^rgb\\(${hI},${hI},${hI}\\)$`),yI=RegExp(`^rgba\\(${pI},${pI},${pI},${mI}\\)$`),bI=RegExp(`^rgba\\(${hI},${hI},${hI},${mI}\\)$`),xI=RegExp(`^hsl\\(${mI},${hI},${hI}\\)$`),SI=RegExp(`^hsla\\(${mI},${hI},${hI},${mI}\\)$`),CI={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};cI(uI,OI,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:wI,formatHex:wI,formatHex8:TI,formatHsl:EI,formatRgb:DI,toString:DI});function wI(){return this.rgb().formatHex()}function TI(){return this.rgb().formatHex8()}function EI(){return VI(this).formatHsl()}function DI(){return this.rgb().formatRgb()}function OI(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=gI.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?kI(t):n===3?new NI(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?AI(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?AI(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=_I.exec(e))?new NI(t[1],t[2],t[3],1):(t=vI.exec(e))?new NI(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=yI.exec(e))?AI(t[1],t[2],t[3],t[4]):(t=bI.exec(e))?AI(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=xI.exec(e))?BI(t[1],t[2]/100,t[3]/100,1):(t=SI.exec(e))?BI(t[1],t[2]/100,t[3]/100,t[4]):CI.hasOwnProperty(e)?kI(CI[e]):e===`transparent`?new NI(NaN,NaN,NaN,0):null}function kI(e){return new NI(e>>16&255,e>>8&255,e&255,1)}function AI(e,t,n,r){return r<=0&&(e=t=n=NaN),new NI(e,t,n,r)}function jI(e){return e instanceof uI||(e=OI(e)),e?(e=e.rgb(),new NI(e.r,e.g,e.b,e.opacity)):new NI}function MI(e,t,n,r){return arguments.length===1?jI(e):new NI(e,t,n,r??1)}function NI(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}cI(NI,MI,lI(uI,{brighter(e){return e=e==null?fI:fI**+e,new NI(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?dI:dI**+e,new NI(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new NI(RI(this.r),RI(this.g),RI(this.b),LI(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:PI,formatHex:PI,formatHex8:FI,formatRgb:II,toString:II}));function PI(){return`#${zI(this.r)}${zI(this.g)}${zI(this.b)}`}function FI(){return`#${zI(this.r)}${zI(this.g)}${zI(this.b)}${zI((isNaN(this.opacity)?1:this.opacity)*255)}`}function II(){let e=LI(this.opacity);return`${e===1?`rgb(`:`rgba(`}${RI(this.r)}, ${RI(this.g)}, ${RI(this.b)}${e===1?`)`:`, ${e})`}`}function LI(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function RI(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function zI(e){return e=RI(e),(e<16?`0`:``)+e.toString(16)}function BI(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new UI(e,t,n,r)}function VI(e){if(e instanceof UI)return new UI(e.h,e.s,e.l,e.opacity);if(e instanceof uI||(e=OI(e)),!e)return new UI;if(e instanceof UI)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new UI(o,s,c,e.opacity)}function HI(e,t,n,r){return arguments.length===1?VI(e):new UI(e,t,n,r??1)}function UI(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}cI(UI,HI,lI(uI,{brighter(e){return e=e==null?fI:fI**+e,new UI(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?dI:dI**+e,new UI(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new NI(KI(e>=240?e-240:e+120,i,r),KI(e,i,r),KI(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new UI(WI(this.h),GI(this.s),GI(this.l),LI(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=LI(this.opacity);return`${e===1?`hsl(`:`hsla(`}${WI(this.h)}, ${GI(this.s)*100}%, ${GI(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function WI(e){return e=(e||0)%360,e<0?e+360:e}function GI(e){return Math.max(0,Math.min(1,e||0))}function KI(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var qI=e=>()=>e;function JI(e,t){return function(n){return e+n*t}}function YI(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function XI(e){return(e=+e)==1?ZI:function(t,n){return n-t?YI(t,n,e):qI(isNaN(t)?n:t)}}function ZI(e,t){var n=t-e;return n?JI(e,n):qI(isNaN(e)?t:e)}var QI=(function e(t){var n=XI(t);function r(e,t){var r=n((e=MI(e)).r,(t=MI(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ZI(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function $I(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function eL(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tL(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o;for(o=0;o<r;++o)i[o]=uL(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function nL(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rL(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iL(e,t){var n={},r={},i;for(i in(typeof e!=`object`||!e)&&(e={}),(typeof t!=`object`||!t)&&(t={}),t)i in e?n[i]=uL(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var aL=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oL=new RegExp(aL.source,`g`);function sL(e){return function(){return e}}function cL(e){return function(t){return e(t)+``}}function lL(e,t){var n=aL.lastIndex=oL.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=aL.exec(e))&&(i=oL.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:rL(r,i)})),n=oL.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?cL(c[0].x):sL(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function uL(e,t){var n=typeof t,r;return t==null||n===`boolean`?qI(t):(n===`number`?rL:n===`string`?(r=OI(t))?(t=r,QI):lL:t instanceof OI?QI:t instanceof Date?nL:eL(t)?$I:Array.isArray(t)?tL:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?iL:rL)(e,t)}var dL=180/Math.PI,fL={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function pL(e,t,n,r,i,a){var o,s,c;return(o=Math.sqrt(e*e+t*t))&&(e/=o,t/=o),(c=e*n+t*r)&&(n-=e*c,r-=t*c),(s=Math.sqrt(n*n+r*r))&&(n/=s,r/=s,c/=s),e*r<t*n&&(e=-e,t=-t,c=-c,o=-o),{translateX:i,translateY:a,rotate:Math.atan2(t,e)*dL,skewX:Math.atan(c)*dL,scaleX:o,scaleY:s}}var mL;function hL(e){let t=new(typeof DOMMatrix==`function`?DOMMatrix:WebKitCSSMatrix)(e+``);return t.isIdentity?fL:pL(t.a,t.b,t.c,t.d,t.e,t.f)}function gL(e){return e==null||(mL||=document.createElementNS(`http://www.w3.org/2000/svg`,`g`),mL.setAttribute(`transform`,e),!(e=mL.transform.baseVal.consolidate()))?fL:(e=e.matrix,pL(e.a,e.b,e.c,e.d,e.e,e.f))}function _L(e,t,n,r){function i(e){return e.length?e.pop()+` `:``}function a(e,r,i,a,o,s){if(e!==i||r!==a){var c=o.push(`translate(`,null,t,null,n);s.push({i:c-4,x:rL(e,i)},{i:c-2,x:rL(r,a)})}else(i||a)&&o.push(`translate(`+i+t+a+n)}function o(e,t,n,a){e===t?t&&n.push(i(n)+`rotate(`+t+r):(e-t>180?t+=360:t-e>180&&(e+=360),a.push({i:n.push(i(n)+`rotate(`,null,r)-2,x:rL(e,t)}))}function s(e,t,n,a){e===t?t&&n.push(i(n)+`skewX(`+t+r):a.push({i:n.push(i(n)+`skewX(`,null,r)-2,x:rL(e,t)})}function c(e,t,n,r,a,o){if(e!==n||t!==r){var s=a.push(i(a)+`scale(`,null,`,`,null,`)`);o.push({i:s-4,x:rL(e,n)},{i:s-2,x:rL(t,r)})}else(n!==1||r!==1)&&a.push(i(a)+`scale(`+n+`,`+r+`)`)}return function(t,n){var r=[],i=[];return t=e(t),n=e(n),a(t.translateX,t.translateY,n.translateX,n.translateY,r,i),o(t.rotate,n.rotate,r,i),s(t.skewX,n.skewX,r,i),c(t.scaleX,t.scaleY,n.scaleX,n.scaleY,r,i),t=n=null,function(e){for(var t=-1,n=i.length,a;++t<n;)r[(a=i[t]).i]=a.x(e);return r.join(``)}}}var vL=_L(hL,`px, `,`px)`,`deg)`),yL=_L(gL,`, `,`)`,`)`),bL=1e-12;function xL(e){return((e=Math.exp(e))+1/e)/2}function SL(e){return((e=Math.exp(e))-1/e)/2}function CL(e){return((e=Math.exp(2*e))-1)/(e+1)}var wL=(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<bL)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=xL(y),c=s/(n*g)*(i*CL(t*r+y)-SL(y));return[a+c*d,o+c*f,s*i/xL(t*r+y)]}}return m.duration=h*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4),TL=0,EL=0,DL=0,OL=1e3,kL,AL,jL=0,ML=0,NL=0,PL=typeof performance==`object`&&performance.now?performance:Date,FL=typeof window==`object`&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function IL(){return ML||=(FL(LL),PL.now()+NL)}function LL(){ML=0}function RL(){this._call=this._time=this._next=null}RL.prototype=zL.prototype={constructor:RL,restart:function(e,t,n){if(typeof e!=`function`)throw TypeError(`callback is not a function`);n=(n==null?IL():+n)+(t==null?0:+t),!this._next&&AL!==this&&(AL?AL._next=this:kL=this,AL=this),this._call=e,this._time=n,WL()},stop:function(){this._call&&(this._call=null,this._time=1/0,WL())}};function zL(e,t,n){var r=new RL;return r.restart(e,t,n),r}function BL(){IL(),++TL;for(var e=kL,t;e;)(t=ML-e._time)>=0&&e._call.call(void 0,t),e=e._next;--TL}function VL(){ML=(jL=PL.now())+NL,TL=EL=0;try{BL()}finally{TL=0,UL(),ML=0}}function HL(){var e=PL.now(),t=e-jL;t>OL&&(NL-=t,jL=e)}function UL(){for(var e,t=kL,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:kL=n);AL=e,WL(r)}function WL(e){TL||(EL&&=clearTimeout(EL),e-ML>24?(e<1/0&&(EL=setTimeout(VL,e-PL.now()-NL)),DL&&=clearInterval(DL)):(DL||=(jL=PL.now(),setInterval(HL,OL)),TL=1,FL(VL)))}function GL(e,t,n){var r=new RL;return t=t==null?0:+t,r.restart(n=>{r.stop(),e(n+t)},t,n),r}var KL=UN(`start`,`end`,`cancel`,`interrupt`),qL=[];function JL(e,t,n,r,i,a){var o=e.__transition;if(!o)e.__transition={};else if(n in o)return;QL(e,n,{name:t,index:r,group:i,on:KL,tween:qL,time:a.time,delay:a.delay,duration:a.duration,ease:a.ease,timer:null,state:0})}function YL(e,t){var n=ZL(e,t);if(n.state>0)throw Error(`too late; already scheduled`);return n}function XL(e,t){var n=ZL(e,t);if(n.state>3)throw Error(`too late; already running`);return n}function ZL(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error(`transition not found`);return n}function QL(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=zL(a,0,n.time);function a(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)}function o(a){var l,u,d,f;if(n.state!==1)return c();for(l in r)if(f=r[l],f.name===n.name){if(f.state===3)return GL(o);f.state===4?(f.state=6,f.timer.stop(),f.on.call(`interrupt`,e,e.__data__,f.index,f.group),delete r[l]):+l<t&&(f.state=6,f.timer.stop(),f.on.call(`cancel`,e,e.__data__,f.index,f.group),delete r[l])}if(GL(function(){n.state===3&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(a))}),n.state=2,n.on.call(`start`,e,e.__data__,n.index,n.group),n.state===2){for(n.state=3,i=Array(d=n.tween.length),l=0,u=-1;l<d;++l)(f=n.tween[l].value.call(e,e.__data__,n.index,n.group))&&(i[++u]=f);i.length=u+1}}function s(t){for(var r=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(c),n.state=5,1),a=-1,o=i.length;++a<o;)i[a].call(e,r);n.state===5&&(n.on.call(`end`,e,e.__data__,n.index,n.group),c())}function c(){for(var i in n.state=6,n.timer.stop(),delete r[t],r)return;delete e.__transition}}function $L(e,t){var n=e.__transition,r,i,a=!0,o;if(n){for(o in t=t==null?null:t+``,n){if((r=n[o]).name!==t){a=!1;continue}i=r.state>2&&r.state<5,r.state=6,r.timer.stop(),r.on.call(i?`interrupt`:`cancel`,e,e.__data__,r.index,r.group),delete n[o]}a&&delete e.__transition}}function eR(e){return this.each(function(){$L(this,e)})}function tR(e,t){var n,r;return function(){var i=XL(this,e),a=i.tween;if(a!==n){r=n=a;for(var o=0,s=r.length;o<s;++o)if(r[o].name===t){r=r.slice(),r.splice(o,1);break}}i.tween=r}}function nR(e,t,n){var r,i;if(typeof n!=`function`)throw Error();return function(){var a=XL(this,e),o=a.tween;if(o!==r){i=(r=o).slice();for(var s={name:t,value:n},c=0,l=i.length;c<l;++c)if(i[c].name===t){i[c]=s;break}c===l&&i.push(s)}a.tween=i}}function rR(e,t){var n=this._id;if(e+=``,arguments.length<2){for(var r=ZL(this.node(),n).tween,i=0,a=r.length,o;i<a;++i)if((o=r[i]).name===e)return o.value;return null}return this.each((t==null?tR:nR)(n,e,t))}function iR(e,t,n){var r=e._id;return e.each(function(){var e=XL(this,r);(e.value||={})[t]=n.apply(this,arguments)}),function(e){return ZL(e,r).value[t]}}function aR(e,t){var n;return(typeof t==`number`?rL:t instanceof OI?QI:(n=OI(t))?(t=n,QI):lL)(e,t)}function oR(e){return function(){this.removeAttribute(e)}}function sR(e){return function(){this.removeAttributeNS(e.space,e.local)}}function cR(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttribute(e);return o===i?null:o===r?a:a=t(r=o,n)}}function lR(e,t,n){var r,i=n+``,a;return function(){var o=this.getAttributeNS(e.space,e.local);return o===i?null:o===r?a:a=t(r=o,n)}}function uR(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttribute(e):(o=this.getAttribute(e),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function dR(e,t,n){var r,i,a;return function(){var o,s=n(this),c;return s==null?void this.removeAttributeNS(e.space,e.local):(o=this.getAttributeNS(e.space,e.local),c=s+``,o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s)))}}function fR(e,t){var n=YN(e),r=n===`transform`?yL:aR;return this.attrTween(e,typeof t==`function`?(n.local?dR:uR)(n,r,iR(this,`attr.`+e,t)):t==null?(n.local?sR:oR)(n):(n.local?lR:cR)(n,r,t))}function pR(e,t){return function(n){this.setAttribute(e,t.call(this,n))}}function mR(e,t){return function(n){this.setAttributeNS(e.space,e.local,t.call(this,n))}}function hR(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&mR(e,i)),n}return i._value=t,i}function gR(e,t){var n,r;function i(){var i=t.apply(this,arguments);return i!==r&&(n=(r=i)&&pR(e,i)),n}return i._value=t,i}function _R(e,t){var n=`attr.`+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(t==null)return this.tween(n,null);if(typeof t!=`function`)throw Error();var r=YN(e);return this.tween(n,(r.local?hR:gR)(r,t))}function vR(e,t){return function(){YL(this,e).delay=+t.apply(this,arguments)}}function yR(e,t){return t=+t,function(){YL(this,e).delay=t}}function bR(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?vR:yR)(t,e)):ZL(this.node(),t).delay}function xR(e,t){return function(){XL(this,e).duration=+t.apply(this,arguments)}}function SR(e,t){return t=+t,function(){XL(this,e).duration=t}}function CR(e){var t=this._id;return arguments.length?this.each((typeof e==`function`?xR:SR)(t,e)):ZL(this.node(),t).duration}function wR(e,t){if(typeof t!=`function`)throw Error();return function(){XL(this,e).ease=t}}function TR(e){var t=this._id;return arguments.length?this.each(wR(t,e)):ZL(this.node(),t).ease}function ER(e,t){return function(){var n=t.apply(this,arguments);if(typeof n!=`function`)throw Error();XL(this,e).ease=n}}function DR(e){if(typeof e!=`function`)throw Error();return this.each(ER(this._id,e))}function OR(e){typeof e!=`function`&&(e=sP(e));for(var t=this._groups,n=t.length,r=Array(n),i=0;i<n;++i)for(var a=t[i],o=a.length,s=r[i]=[],c,l=0;l<o;++l)(c=a[l])&&e.call(c,c.__data__,l,a)&&s.push(c);return new rz(r,this._parents,this._name,this._id)}function kR(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,r=t.length,i=n.length,a=Math.min(r,i),o=Array(r),s=0;s<a;++s)for(var c=t[s],l=n[s],u=c.length,d=o[s]=Array(u),f,p=0;p<u;++p)(f=c[p]||l[p])&&(d[p]=f);for(;s<r;++s)o[s]=t[s];return new rz(o,this._parents,this._name,this._id)}function AR(e){return(e+``).trim().split(/^|\s+/).every(function(e){var t=e.indexOf(`.`);return t>=0&&(e=e.slice(0,t)),!e||e===`start`})}function jR(e,t,n){var r,i,a=AR(t)?YL:XL;return function(){var o=a(this,e),s=o.on;s!==r&&(i=(r=s).copy()).on(t,n),o.on=i}}function MR(e,t){var n=this._id;return arguments.length<2?ZL(this.node(),n).on.on(e):this.each(jR(n,e,t))}function NR(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function PR(){return this.on(`end.remove`,NR(this._id))}function FR(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=eP(e));for(var r=this._groups,i=r.length,a=Array(i),o=0;o<i;++o)for(var s=r[o],c=s.length,l=a[o]=Array(c),u,d,f=0;f<c;++f)(u=s[f])&&(d=e.call(u,u.__data__,f,s))&&(`__data__`in u&&(d.__data__=u.__data__),l[f]=d,JL(l[f],t,n,f,l,ZL(u,n)));return new rz(a,this._parents,t,n)}function IR(e){var t=this._name,n=this._id;typeof e!=`function`&&(e=iP(e));for(var r=this._groups,i=r.length,a=[],o=[],s=0;s<i;++s)for(var c=r[s],l=c.length,u,d=0;d<l;++d)if(u=c[d]){for(var f=e.call(u,u.__data__,d,c),p,m=ZL(u,n),h=0,g=f.length;h<g;++h)(p=f[h])&&JL(p,t,n,h,f,m);a.push(f),o.push(u)}return new rz(a,o,t,n)}var LR=WF.prototype.constructor;function RR(){return new LR(this._groups,this._parents)}function zR(e,t){var n,r,i;return function(){var a=ZP(this,e),o=(this.style.removeProperty(e),ZP(this,e));return a===o?null:a===n&&o===r?i:i=t(n=a,r=o)}}function BR(e){return function(){this.style.removeProperty(e)}}function VR(e,t,n){var r,i=n+``,a;return function(){var o=ZP(this,e);return o===i?null:o===r?a:a=t(r=o,n)}}function HR(e,t,n){var r,i,a;return function(){var o=ZP(this,e),s=n(this),c=s+``;return s??(c=s=(this.style.removeProperty(e),ZP(this,e))),o===c?null:o===r&&c===i?a:(i=c,a=t(r=o,s))}}function UR(e,t){var n,r,i,a=`style.`+t,o=`end.`+a,s;return function(){var c=XL(this,e),l=c.on,u=c.value[a]==null?s||=BR(t):void 0;(l!==n||i!==u)&&(r=(n=l).copy()).on(o,i=u),c.on=r}}function WR(e,t,n){var r=(e+=``)==`transform`?vL:aR;return t==null?this.styleTween(e,zR(e,r)).on(`end.style.`+e,BR(e)):typeof t==`function`?this.styleTween(e,HR(e,r,iR(this,`style.`+e,t))).each(UR(this._id,e)):this.styleTween(e,VR(e,r,t),n).on(`end.style.`+e,null)}function GR(e,t,n){return function(r){this.style.setProperty(e,t.call(this,r),n)}}function KR(e,t,n){var r,i;function a(){var a=t.apply(this,arguments);return a!==i&&(r=(i=a)&&GR(e,a,n)),r}return a._value=t,a}function qR(e,t,n){var r=`style.`+(e+=``);if(arguments.length<2)return(r=this.tween(r))&&r._value;if(t==null)return this.tween(r,null);if(typeof t!=`function`)throw Error();return this.tween(r,KR(e,t,n??``))}function JR(e){return function(){this.textContent=e}}function YR(e){return function(){var t=e(this);this.textContent=t??``}}function XR(e){return this.tween(`text`,typeof e==`function`?YR(iR(this,`text`,e)):JR(e==null?``:e+``))}function ZR(e){return function(t){this.textContent=e.call(this,t)}}function QR(e){var t,n;function r(){var r=e.apply(this,arguments);return r!==n&&(t=(n=r)&&ZR(r)),t}return r._value=e,r}function $R(e){var t=`text`;if(arguments.length<1)return(t=this.tween(t))&&t._value;if(e==null)return this.tween(t,null);if(typeof e!=`function`)throw Error();return this.tween(t,QR(e))}function ez(){for(var e=this._name,t=this._id,n=iz(),r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)if(c=o[l]){var u=ZL(c,t);JL(c,e,n,l,o,{time:u.time+u.delay+u.duration,delay:0,duration:u.duration,ease:u.ease})}return new rz(r,this._parents,e,n)}function tz(){var e,t,n=this,r=n._id,i=n.size();return new Promise(function(a,o){var s={value:o},c={value:function(){--i===0&&a()}};n.each(function(){var n=XL(this,r),i=n.on;i!==e&&(t=(e=i).copy(),t._.cancel.push(s),t._.interrupt.push(s),t._.end.push(c)),n.on=t}),i===0&&a()})}var nz=0;function rz(e,t,n,r){this._groups=e,this._parents=t,this._name=n,this._id=r}function iz(){return++nz}var az=WF.prototype;rz.prototype={constructor:rz,select:FR,selectAll:IR,selectChild:az.selectChild,selectChildren:az.selectChildren,filter:OR,merge:kR,selection:RR,transition:ez,call:az.call,nodes:az.nodes,node:az.node,size:az.size,empty:az.empty,each:az.each,on:MR,attr:fR,attrTween:_R,style:WR,styleTween:qR,text:XR,textTween:$R,remove:PR,tween:rR,delay:bR,duration:CR,ease:TR,easeVarying:DR,end:tz,[Symbol.iterator]:az[Symbol.iterator]};function oz(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}var sz={time:null,delay:0,duration:250,ease:oz};function cz(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}function lz(e){var t,n;e instanceof rz?(t=e._id,e=e._name):(t=iz(),(n=sz).time=IL(),e=e==null?null:e+``);for(var r=this._groups,i=r.length,a=0;a<i;++a)for(var o=r[a],s=o.length,c,l=0;l<s;++l)(c=o[l])&&JL(c,e,t,l,o,n||cz(c,t));return new rz(r,this._parents,e,t)}WF.prototype.interrupt=eR,WF.prototype.transition=lz;var uz=e=>()=>e;function dz(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function fz(e,t,n){this.k=e,this.x=t,this.y=n}fz.prototype={constructor:fz,scale:function(e){return e===1?this:new fz(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new fz(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return`translate(`+this.x+`,`+this.y+`) scale(`+this.k+`)`}};var pz=new fz(1,0,0);mz.prototype=fz.prototype;function mz(e){for(;!e.__zoom;)if(!(e=e.parentNode))return pz;return e.__zoom}function hz(e){e.stopImmediatePropagation()}function gz(e){e.preventDefault(),e.stopImmediatePropagation()}function _z(e){return(!e.ctrlKey||e.type===`wheel`)&&!e.button}function vz(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute(`viewBox`)?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function yz(){return this.__zoom||pz}function bz(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function xz(){return navigator.maxTouchPoints||`ontouchstart`in this}function Sz(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],a=e.invertY(t[0][1])-n[0][1],o=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),o>a?(a+o)/2:Math.min(0,a)||Math.max(0,o))}function Cz(){var e=_z,t=vz,n=Sz,r=bz,i=xz,a=[0,1/0],o=[[-1/0,-1/0],[1/0,1/0]],s=250,c=wL,l=UN(`start`,`zoom`,`end`),u,d,f,p=500,m=150,h=0,g=10;function _(e){e.property(`__zoom`,yz).on(`wheel.zoom`,w,{passive:!1}).on(`mousedown.zoom`,T).on(`dblclick.zoom`,E).filter(i).on(`touchstart.zoom`,D).on(`touchmove.zoom`,O).on(`touchend.zoom touchcancel.zoom`,k).style(`-webkit-tap-highlight-color`,`rgba(0,0,0,0)`)}_.transform=function(e,t,n,r){var i=e.selection?e.selection():e;i.property(`__zoom`,yz),e===i?i.interrupt().each(function(){S(this,arguments).event(r).start().zoom(null,typeof t==`function`?t.apply(this,arguments):t).end()}):x(e,t,n,r)},_.scaleBy=function(e,t,n,r){_.scaleTo(e,function(){return this.__zoom.k*(typeof t==`function`?t.apply(this,arguments):t)},n,r)},_.scaleTo=function(e,r,i,a){_.transform(e,function(){var e=t.apply(this,arguments),a=this.__zoom,s=i==null?b(e):typeof i==`function`?i.apply(this,arguments):i,c=a.invert(s),l=typeof r==`function`?r.apply(this,arguments):r;return n(y(v(a,l),s,c),e,o)},i,a)},_.translateBy=function(e,r,i,a){_.transform(e,function(){return n(this.__zoom.translate(typeof r==`function`?r.apply(this,arguments):r,typeof i==`function`?i.apply(this,arguments):i),t.apply(this,arguments),o)},null,a)},_.translateTo=function(e,r,i,a,s){_.transform(e,function(){var e=t.apply(this,arguments),s=this.__zoom,c=a==null?b(e):typeof a==`function`?a.apply(this,arguments):a;return n(pz.translate(c[0],c[1]).scale(s.k).translate(typeof r==`function`?-r.apply(this,arguments):-r,typeof i==`function`?-i.apply(this,arguments):-i),e,o)},a,s)};function v(e,t){return t=Math.max(a[0],Math.min(a[1],t)),t===e.k?e:new fz(t,e.x,e.y)}function y(e,t,n){var r=t[0]-n[0]*e.k,i=t[1]-n[1]*e.k;return r===e.x&&i===e.y?e:new fz(e.k,r,i)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function x(e,n,r,i){e.on(`start.zoom`,function(){S(this,arguments).event(i).start()}).on(`interrupt.zoom end.zoom`,function(){S(this,arguments).event(i).end()}).tween(`zoom`,function(){var e=this,a=arguments,o=S(e,a).event(i),s=t.apply(e,a),l=r==null?b(s):typeof r==`function`?r.apply(e,a):r,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),d=e.__zoom,f=typeof n==`function`?n.apply(e,a):n,p=c(d.invert(l).concat(u/d.k),f.invert(l).concat(u/f.k));return function(e){if(e===1)e=f;else{var t=p(e),n=u/t[2];e=new fz(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function S(e,t,n){return!n&&e.__zooming||new C(e,t)}function C(e,n){this.that=e,this.args=n,this.active=0,this.sourceEvent=null,this.extent=t.apply(e,n),this.taps=0}C.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit(`start`)),this},zoom:function(e,t){return this.mouse&&e!==`mouse`&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&e!==`touch`&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&e!==`touch`&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit(`zoom`),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit(`end`)),this},emit:function(e){var t=KF(this.that).datum();l.call(e,this.that,new dz(e,{sourceEvent:this.sourceEvent,target:_,type:e,transform:this.that.__zoom,dispatch:l}),t)}};function w(t,...i){if(!e.apply(this,arguments))return;var s=S(this,i).event(t),c=this.__zoom,l=Math.max(a[0],Math.min(a[1],c.k*2**r.apply(this,arguments))),u=JF(t);if(s.wheel)(s.mouse[0][0]!==u[0]||s.mouse[0][1]!==u[1])&&(s.mouse[1]=c.invert(s.mouse[0]=u)),clearTimeout(s.wheel);else if(c.k===l)return;else s.mouse=[u,c.invert(u)],$L(this),s.start();gz(t),s.wheel=setTimeout(d,m),s.zoom(`mouse`,n(y(v(c,l),s.mouse[0],s.mouse[1]),s.extent,o));function d(){s.wheel=null,s.end()}}function T(t,...r){if(f||!e.apply(this,arguments))return;var i=t.currentTarget,a=S(this,r,!0).event(t),s=KF(t.view).on(`mousemove.zoom`,d,!0).on(`mouseup.zoom`,p,!0),c=JF(t,i),l=t.clientX,u=t.clientY;$F(t.view),hz(t),a.mouse=[c,this.__zoom.invert(c)],$L(this),a.start();function d(e){if(gz(e),!a.moved){var t=e.clientX-l,r=e.clientY-u;a.moved=t*t+r*r>h}a.event(e).zoom(`mouse`,n(y(a.that.__zoom,a.mouse[0]=JF(e,i),a.mouse[1]),a.extent,o))}function p(e){s.on(`mousemove.zoom mouseup.zoom`,null),eI(e.view,a.moved),gz(e),a.event(e).end()}}function E(r,...i){if(e.apply(this,arguments)){var a=this.__zoom,c=JF(r.changedTouches?r.changedTouches[0]:r,this),l=a.invert(c),u=a.k*(r.shiftKey?.5:2),d=n(y(v(a,u),c,l),t.apply(this,i),o);gz(r),s>0?KF(this).transition().duration(s).call(x,d,c,r):KF(this).call(_.transform,d,c,r)}}function D(t,...n){if(e.apply(this,arguments)){var r=t.touches,i=r.length,a=S(this,n,t.changedTouches.length===i).event(t),o,s,c,l;for(hz(t),s=0;s<i;++s)c=r[s],l=JF(c,this),l=[l,this.__zoom.invert(l),c.identifier],a.touch0?!a.touch1&&a.touch0[2]!==l[2]&&(a.touch1=l,a.taps=0):(a.touch0=l,o=!0,a.taps=1+!!u);u&&=clearTimeout(u),o&&(a.taps<2&&(d=l[0],u=setTimeout(function(){u=null},p)),$L(this),a.start())}}function O(e,...t){if(this.__zooming){var r=S(this,t).event(e),i=e.changedTouches,a=i.length,s,c,l,u;for(gz(e),s=0;s<a;++s)c=i[s],l=JF(c,this),r.touch0&&r.touch0[2]===c.identifier?r.touch0[0]=l:r.touch1&&r.touch1[2]===c.identifier&&(r.touch1[0]=l);if(c=r.that.__zoom,r.touch1){var d=r.touch0[0],f=r.touch0[1],p=r.touch1[0],m=r.touch1[1],h=(h=p[0]-d[0])*h+(h=p[1]-d[1])*h,g=(g=m[0]-f[0])*g+(g=m[1]-f[1])*g;c=v(c,Math.sqrt(h/g)),l=[(d[0]+p[0])/2,(d[1]+p[1])/2],u=[(f[0]+m[0])/2,(f[1]+m[1])/2]}else if(r.touch0)l=r.touch0[0],u=r.touch0[1];else return;r.zoom(`touch`,n(y(c,l,u),r.extent,o))}}function k(e,...t){if(this.__zooming){var n=S(this,t).event(e),r=e.changedTouches,i=r.length,a,o;for(hz(e),f&&clearTimeout(f),f=setTimeout(function(){f=null},p),a=0;a<i;++a)o=r[a],n.touch0&&n.touch0[2]===o.identifier?delete n.touch0:n.touch1&&n.touch1[2]===o.identifier&&delete n.touch1;if(n.touch1&&!n.touch0&&(n.touch0=n.touch1,delete n.touch1),n.touch0)n.touch0[1]=this.__zoom.invert(n.touch0[0]);else if(n.end(),n.taps===2&&(o=JF(o,this),Math.hypot(d[0]-o[0],d[1]-o[1])<g)){var s=KF(this).on(`dblclick.zoom`);s&&s.apply(this,arguments)}}}return _.wheelDelta=function(e){return arguments.length?(r=typeof e==`function`?e:uz(+e),_):r},_.filter=function(t){return arguments.length?(e=typeof t==`function`?t:uz(!!t),_):e},_.touchable=function(e){return arguments.length?(i=typeof e==`function`?e:uz(!!e),_):i},_.extent=function(e){return arguments.length?(t=typeof e==`function`?e:uz([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),_):t},_.scaleExtent=function(e){return arguments.length?(a[0]=+e[0],a[1]=+e[1],_):[a[0],a[1]]},_.translateExtent=function(e){return arguments.length?(o[0][0]=+e[0][0],o[1][0]=+e[1][0],o[0][1]=+e[0][1],o[1][1]=+e[1][1],_):[[o[0][0],o[0][1]],[o[1][0],o[1][1]]]},_.constrain=function(e){return arguments.length?(n=e,_):n},_.duration=function(e){return arguments.length?(s=+e,_):s},_.interpolate=function(e){return arguments.length?(c=e,_):c},_.on=function(){var e=l.on.apply(l,arguments);return e===l?_:e},_.clickDistance=function(e){return arguments.length?(h=(e=+e)*e,_):Math.sqrt(h)},_.tapDistance=function(e){return arguments.length?(g=+e,_):g},_}var wz={error001:(e=`react`)=>`Seems like you have not used ${e===`svelte`?`SvelteFlowProvider`:`ReactFlowProvider`} as an ancestor. Help: https://${e}flow.dev/error#001`,error002:()=>`It looks like you've created a new nodeTypes or edgeTypes object. If this wasn't on purpose please define the nodeTypes/edgeTypes outside of the component or memoize them.`,error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>`The parent container needs a width and a height to render the graph.`,error005:()=>`Only child nodes can use a parent extent.`,error006:()=>`Can't create edge. An edge needs a source and a target.`,error007:e=>`The old edge with id=${e} does not exist.`,error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:r})=>`Couldn't create edge for ${e} handle id: "${e===`source`?n:r}", edge id: ${t}.`,error010:()=>`Handle: No node id found. Make sure to only use a Handle inside a custom Node.`,error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error013:(e=`react`)=>`It seems that you haven't loaded the styles. Please import '@xyflow/${e}/dist/style.css' or base.css to make sure everything is working properly.`,error014:()=>`useNodeConnections: No node ID found. Call useNodeConnections inside a custom Node or provide a node ID.`,error015:()=>`It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs.`,error016:e=>`Edge with id "${e}" does not exist, it may have been removed. This can happen when an edge is deleted before the "onEdgeClick" handler is called.`},Tz=[[-1/0,-1/0],[1/0,1/0]],Ez=[`Enter`,` `,`Escape`],Dz={"node.a11yDescription.default":`Press enter or space to select a node. Press delete to remove it and escape to cancel.`,"node.a11yDescription.keyboardDisabled":`Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.`,"node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":`Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.`,"controls.ariaLabel":`Control Panel`,"controls.zoomIn.ariaLabel":`Zoom In`,"controls.zoomOut.ariaLabel":`Zoom Out`,"controls.fitView.ariaLabel":`Fit View`,"controls.interactive.ariaLabel":`Toggle Interactivity`,"minimap.ariaLabel":`Mini Map`,"handle.ariaLabel":`Handle`},Oz;(function(e){e.Strict=`strict`,e.Loose=`loose`})(Oz||={});var kz;(function(e){e.Free=`free`,e.Vertical=`vertical`,e.Horizontal=`horizontal`})(kz||={});var Az;(function(e){e.Partial=`partial`,e.Full=`full`})(Az||={});var jz={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null},Mz;(function(e){e.Bezier=`default`,e.Straight=`straight`,e.Step=`step`,e.SmoothStep=`smoothstep`,e.SimpleBezier=`simplebezier`})(Mz||={});var Nz;(function(e){e.Arrow=`arrow`,e.ArrowClosed=`arrowclosed`})(Nz||={});var $;(function(e){e.Left=`left`,e.Top=`top`,e.Right=`right`,e.Bottom=`bottom`})($||={});var Pz={[$.Left]:$.Right,[$.Right]:$.Left,[$.Top]:$.Bottom,[$.Bottom]:$.Top},Fz=e=>!!e&&typeof e==`object`&&`id`in e&&`source`in e&&`target`in e,Iz=e=>!!e&&typeof e==`object`&&`id`in e&&`position`in e&&!(`source`in e)&&!(`target`in e),Lz=e=>!!e&&typeof e==`object`&&`id`in e&&`internals`in e&&!(`source`in e)&&!(`target`in e),Rz=(e,t=[0,0])=>{let{width:n,height:r}=vB(e),i=e.origin??t,a=n*i[0],o=r*i[1];return{x:e.position.x-a,y:e.position.y-o}},zz=(e,t={nodeOrigin:[0,0]})=>{if(e.length===0)return{x:0,y:0,width:0,height:0};let n=!1,r=e.reduce((e,r)=>{let i=typeof r==`string`,a=!t.nodeLookup&&!i?r:void 0;return t.nodeLookup&&(a=i?t.nodeLookup.get(r):Lz(r)?r:t.nodeLookup.get(r.id)),a?(n=!0,Qz(e,nB(a,t.nodeOrigin))):e},{x:1/0,y:1/0,x2:-1/0,y2:-1/0});return n?eB(r):{x:0,y:0,width:0,height:0}},Bz=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},r=!1;return e.forEach(e=>{(t.filter===void 0||t.filter(e))&&(n=Qz(n,nB(e)),r=!0)}),r?eB(n):{x:0,y:0,width:0,height:0}},Vz=(e,t,[n,r,i]=[0,0,1],a=!1,o=!1)=>{let s=(t.x-n)/i,c=(t.y-r)/i,l=t.width/i,u=t.height/i,d=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:r=!1}=t;if(o&&!n||r)continue;let i=e.width??t.width??t.initialWidth??0,f=e.height??t.height??t.initialHeight??0,{x:p,y:m}=t.internals.positionAbsolute,h=iB(s,c,l,u,p,m,i,f),g=i*f,_=a&&h>0;(!t.internals.handleBounds||_||h>=g||t.dragging)&&d.push(t)}return d},Hz=(e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))};function Uz(e,t){let n=new Map,r=t?.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{let i;if(t?.includeHiddenNodes){let{width:t,height:n}=vB(e);i=t>0&&n>0}else i=!!(e.measured.width&&e.measured.height&&!e.hidden);i&&(!r||r.has(e.id))&&n.set(e.id,e)}),n}async function Wz({nodes:e,width:t,height:n,panZoom:r,minZoom:i,maxZoom:a},o){if(e.size===0)return!0;let s=hB(Bz(Uz(e,o)),t,n,o?.minZoom??i,o?.maxZoom??a,o?.padding??.1);return await r.setViewport(s,{duration:o?.duration,ease:o?.ease,interpolate:o?.interpolate}),!0}function Gz({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:r=[0,0],nodeExtent:i,onError:a}){let o=n.get(e),s=o.parentId?n.get(o.parentId):void 0,{x:c,y:l}=s?s.internals.positionAbsolute:{x:0,y:0},u=o.origin??r,d=o.extent||i;if(o.extent===`parent`&&!o.expandParent){if(!s)a?.(`005`,wz.error005());else{let{width:e,height:t}=vB(s);e&&t&&(d=[[c,l],[c+e,l+t]])}}else s&&_B(o.extent)&&(d=[[o.extent[0][0]+c,o.extent[0][1]+l],[o.extent[1][0]+c,o.extent[1][1]+l]]);let f=_B(d)?Jz(t,d,o.measured):t;return(o.measured.width===void 0||o.measured.height===void 0)&&a?.(`015`,wz.error015()),{position:{x:f.x-c+(o.measured.width??0)*u[0],y:f.y-l+(o.measured.height??0)*u[1]},positionAbsolute:f}}async function Kz({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:r,onBeforeDelete:i}){let a=new Set(e.map(e=>e.id)),o=[];for(let e of n){if(e.deletable===!1)continue;let t=a.has(e.id),n=!t&&e.parentId&&o.find(t=>t.id===e.parentId);(t||n)&&o.push(e)}let s=new Set(t.map(e=>e.id)),c=r.filter(e=>e.deletable!==!1),l=Hz(o,c);for(let e of c)s.has(e.id)&&!l.find(t=>t.id===e.id)&&l.push(e);if(!i)return{edges:l,nodes:o};let u=await i({nodes:o,edges:l});return typeof u==`boolean`?u?{edges:l,nodes:o}:{edges:[],nodes:[]}:u}var qz=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),Jz=(e={x:0,y:0},t,n)=>({x:qz(e.x,t[0][0],t[1][0]-(n?.width??0)),y:qz(e.y,t[0][1],t[1][1]-(n?.height??0))});function Yz(e,t,n){let{width:r,height:i}=vB(n),{x:a,y:o}=n.internals.positionAbsolute;return Jz(e,[[a,o],[a+r,o+i]],t)}var Xz=(e,t,n)=>e<t?qz(Math.abs(e-t),1,t)/t:e>n?-qz(Math.abs(e-n),1,t)/t:0,Zz=(e,t,n=15,r=40)=>[Xz(e.x,r,t.width-r)*n,Xz(e.y,r,t.height-r)*n],Qz=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),$z=({x:e,y:t,width:n,height:r})=>({x:e,y:t,x2:e+n,y2:t+r}),eB=({x:e,y:t,x2:n,y2:r})=>({x:e,y:t,width:n-e,height:r-t}),tB=(e,t=[0,0])=>{let{x:n,y:r}=Lz(e)?e.internals.positionAbsolute:Rz(e,t);return{x:n,y:r,width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}},nB=(e,t=[0,0])=>{let{x:n,y:r}=Lz(e)?e.internals.positionAbsolute:Rz(e,t);return{x:n,y:r,x2:n+(e.measured?.width??e.width??e.initialWidth??0),y2:r+(e.measured?.height??e.height??e.initialHeight??0)}},rB=(e,t)=>eB(Qz($z(e),$z(t))),iB=(e,t,n,r,i,a,o,s)=>{let c=Math.max(0,Math.min(e+n,i+o)-Math.max(e,i)),l=Math.max(0,Math.min(t+r,a+s)-Math.max(t,a));return Math.ceil(c*l)},aB=(e,t)=>iB(e.x,e.y,e.width,e.height,t.x,t.y,t.width,t.height),oB=e=>sB(e.width)&&sB(e.height)&&sB(e.x)&&sB(e.y),sB=e=>!isNaN(e)&&isFinite(e),cB=(e,t)=>(e,t)=>{},lB=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),uB=({x:e,y:t},[n,r,i],a=!1,o=[1,1])=>{let s={x:(e-n)/i,y:(t-r)/i};return a?lB(s,o):s},dB=({x:e,y:t},[n,r,i])=>({x:e*i+n,y:t*i+r});function fB(e,t){if(typeof e==`number`)return Math.floor((t-t/(1+e))*.5);if(typeof e==`string`&&e.endsWith(`px`)){let t=parseFloat(e);if(!Number.isNaN(t))return Math.floor(t)}if(typeof e==`string`&&e.endsWith(`%`)){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}function pB(e,t,n){if(typeof e==`string`||typeof e==`number`){let r=fB(e,n),i=fB(e,t);return{top:r,right:i,bottom:r,left:i,x:i*2,y:r*2}}if(typeof e==`object`){let r=fB(e.top??e.y??0,n),i=fB(e.bottom??e.y??0,n),a=fB(e.left??e.x??0,t),o=fB(e.right??e.x??0,t);return{top:r,right:o,bottom:i,left:a,x:a+o,y:r+i}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}function mB(e,t,n,r,i,a){let{x:o,y:s}=dB(e,[t,n,r]),{x:c,y:l}=dB({x:e.x+e.width,y:e.y+e.height},[t,n,r]),u=i-c,d=a-l;return{left:Math.floor(o),top:Math.floor(s),right:Math.floor(u),bottom:Math.floor(d)}}var hB=(e,t,n,r,i,a)=>{let o=pB(a,t,n),s=(t-o.x)/e.width,c=(n-o.y)/e.height,l=qz(Math.min(s,c),r,i),u=e.x+e.width/2,d=e.y+e.height/2,f=t/2-u*l,p=n/2-d*l,m=mB(e,f,p,l,t,n),h={left:Math.min(m.left-o.left,0),top:Math.min(m.top-o.top,0),right:Math.min(m.right-o.right,0),bottom:Math.min(m.bottom-o.bottom,0)};return{x:f-h.left+h.right,y:p-h.top+h.bottom,zoom:l}},gB=()=>typeof navigator<`u`&&navigator?.userAgent?.indexOf(`Mac`)>=0;function _B(e){return e!=null&&e!==`parent`}function vB(e){return{width:e.measured?.width??e.width??e.initialWidth??0,height:e.measured?.height??e.height??e.initialHeight??0}}function yB(e){return(e.measured?.width??e.width??e.initialWidth)!==void 0&&(e.measured?.height??e.height??e.initialHeight)!==void 0}function bB(e,t={width:0,height:0},n,r,i){let a={...e},o=r.get(n);if(o){let e=o.origin||i;a.x+=o.internals.positionAbsolute.x-(t.width??0)*e[0],a.y+=o.internals.positionAbsolute.y-(t.height??0)*e[1]}return a}function xB(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function SB(){let e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}function CB(e){return{...Dz,...e||{}}}function wB(e){return e===null?null:e?`valid`:`invalid`}function TB(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:r,containerBounds:i}){let{x:a,y:o}=jB(e),s=uB({x:a-(i?.left??0),y:o-(i?.top??0)},r),{x:c,y:l}=n?lB(s,t):s;return{xSnapped:c,ySnapped:l,...s}}var EB=e=>({width:e.offsetWidth,height:e.offsetHeight}),DB=e=>e?.getRootNode?.()||window?.document,OB=[`INPUT`,`SELECT`,`TEXTAREA`];function kB(e){let t=e.composedPath?.()?.[0]||e.target;return t?.nodeType===1?OB.includes(t.nodeName)||t.hasAttribute(`contenteditable`)||!!t.closest(`.nokey`):!1}var AB=e=>`clientX`in e,jB=(e,t)=>{let n=AB(e),r=n?e.clientX:e.touches?.[0].clientX,i=n?e.clientY:e.touches?.[0].clientY;return{x:r-(t?.left??0),y:i-(t?.top??0)}},MB=(e,t,n,r,i)=>{let a=t.querySelectorAll(`.${e}`);return!a||!a.length?null:Array.from(a).map(t=>{let a=t.getBoundingClientRect();return{id:t.getAttribute(`data-handleid`),type:e,nodeId:i,position:t.getAttribute(`data-handlepos`),x:(a.left-n.left)/r,y:(a.top-n.top)/r,...EB(t)}})};function NB({sourceX:e,sourceY:t,targetX:n,targetY:r,sourceControlX:i,sourceControlY:a,targetControlX:o,targetControlY:s}){let c=e*.125+i*.375+o*.375+n*.125,l=t*.125+a*.375+s*.375+r*.125;return[c,l,Math.abs(c-e),Math.abs(l-t)]}function PB(e,t){return e>=0?.5*e:t*25*Math.sqrt(-e)}function FB({pos:e,x1:t,y1:n,x2:r,y2:i,c:a}){switch(e){case $.Left:return[t-PB(t-r,a),n];case $.Right:return[t+PB(r-t,a),n];case $.Top:return[t,n-PB(n-i,a)];case $.Bottom:return[t,n+PB(i-n,a)]}}function IB({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:r,targetY:i,targetPosition:a=$.Top,curvature:o=.25}){let[s,c]=FB({pos:n,x1:e,y1:t,x2:r,y2:i,c:o}),[l,u]=FB({pos:a,x1:r,y1:i,x2:e,y2:t,c:o}),[d,f,p,m]=NB({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:s,sourceControlY:c,targetControlX:l,targetControlY:u});return[`M${e},${t} C${s},${c} ${l},${u} ${r},${i}`,d,f,p,m]}function LB({sourceX:e,sourceY:t,targetX:n,targetY:r}){let i=Math.abs(n-e)/2,a=n<e?n+i:n-i,o=Math.abs(r-t)/2;return[a,r<t?r+o:r-o,i,o]}function RB({sourceNode:e,targetNode:t,selected:n=!1,zIndex:r=0,elevateOnSelect:i=!1,zIndexMode:a=`basic`}){return a===`manual`?r:(i&&n?r+1e3:r)+Math.max(e.parentId||i&&e.selected?e.internals.z:0,t.parentId||i&&t.selected?t.internals.z:0)}function zB({sourceNode:e,targetNode:t,width:n,height:r,transform:i}){let a=Qz(nB(e),nB(t));return a.x===a.x2&&(a.x2+=1),a.y===a.y2&&(a.y2+=1),aB({x:-i[0]/i[2],y:-i[1]/i[2],width:n/i[2],height:r/i[2]},eB(a))>0}var BB=({source:e,sourceHandle:t,target:n,targetHandle:r})=>`xy-edge__${e}${t||``}-${n}${r||``}`,VB=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),HB=(e,t,n={})=>{if(!e.source||!e.target)return n.onError?.(`006`,wz.error006()),t;let r=n.getEdgeId||BB,i;return i=Fz(e)?{...e}:{...e,id:r(e)},VB(i,t)?t:(i.sourceHandle===null&&delete i.sourceHandle,i.targetHandle===null&&delete i.targetHandle,t.concat(i))};function UB({sourceX:e,sourceY:t,targetX:n,targetY:r}){let[i,a,o,s]=LB({sourceX:e,sourceY:t,targetX:n,targetY:r});return[`M ${e},${t}L ${n},${r}`,i,a,o,s]}var WB={[$.Left]:{x:-1,y:0},[$.Right]:{x:1,y:0},[$.Top]:{x:0,y:-1},[$.Bottom]:{x:0,y:1}},GB=({source:e,sourcePosition:t=$.Bottom,target:n})=>t===$.Left||t===$.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},KB=(e,t)=>Math.sqrt((t.x-e.x)**2+(t.y-e.y)**2);function qB({source:e,sourcePosition:t=$.Bottom,target:n,targetPosition:r=$.Top,center:i,offset:a,stepPosition:o}){let s=WB[t],c=WB[r],l={x:e.x+s.x*a,y:e.y+s.y*a},u={x:n.x+c.x*a,y:n.y+c.y*a},d=GB({source:l,sourcePosition:t,target:u}),f=d.x===0?`y`:`x`,p=d[f],m=[],h,g,_={x:0,y:0},v={x:0,y:0},[,,y,b]=LB({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(s[f]*c[f]===-1){f===`x`?(h=i.x??l.x+(u.x-l.x)*o,g=i.y??(l.y+u.y)/2):(h=i.x??(l.x+u.x)/2,g=i.y??l.y+(u.y-l.y)*o);let e=[{x:h,y:l.y},{x:h,y:u.y}],t=[{x:l.x,y:g},{x:u.x,y:g}];m=s[f]===p?f===`x`?e:t:f===`x`?t:e}else{let i=[{x:l.x,y:u.y}],o=[{x:u.x,y:l.y}];if(m=f===`x`?s.x===p?o:i:s.y===p?i:o,t===r){let t=Math.abs(e[f]-n[f]);if(t<=a){let r=Math.min(a-1,a-t);s[f]===p?_[f]=(l[f]>e[f]?-1:1)*r:v[f]=(u[f]>n[f]?-1:1)*r}}if(t!==r){let e=f===`x`?`y`:`x`,t=s[f]===c[e],n=l[e]>u[e],r=l[e]<u[e];(s[f]===1&&(!t&&n||t&&r)||s[f]!==1&&(!t&&r||t&&n))&&(m=f===`x`?i:o)}let d={x:l.x+_.x,y:l.y+_.y},y={x:u.x+v.x,y:u.y+v.y};Math.max(Math.abs(d.x-m[0].x),Math.abs(y.x-m[0].x))>=Math.max(Math.abs(d.y-m[0].y),Math.abs(y.y-m[0].y))?(h=(d.x+y.x)/2,g=m[0].y):(h=m[0].x,g=(d.y+y.y)/2)}let x={x:l.x+_.x,y:l.y+_.y},S={x:u.x+v.x,y:u.y+v.y};return[[e,...x.x!==m[0].x||x.y!==m[0].y?[x]:[],...m,...S.x!==m[m.length-1].x||S.y!==m[m.length-1].y?[S]:[],n],h,g,y,b]}function JB(e,t,n,r){let i=Math.min(KB(e,t)/2,KB(t,n)/2,r),{x:a,y:o}=t;if(e.x===a&&a===n.x||e.y===o&&o===n.y)return`L${a} ${o}`;if(e.y===o){let t=e.x<n.x?-1:1,r=e.y<n.y?1:-1;return`L ${a+i*t},${o}Q ${a},${o} ${a},${o+i*r}`}let s=e.x<n.x?1:-1;return`L ${a},${o+i*(e.y<n.y?-1:1)}Q ${a},${o} ${a+i*s},${o}`}function YB({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:r,targetY:i,targetPosition:a=$.Top,borderRadius:o=5,centerX:s,centerY:c,offset:l=20,stepPosition:u=.5}){let[d,f,p,m,h]=qB({source:{x:e,y:t},sourcePosition:n,target:{x:r,y:i},targetPosition:a,center:{x:s,y:c},offset:l,stepPosition:u}),g=`M${d[0].x} ${d[0].y}`;for(let e=1;e<d.length-1;e++)g+=JB(d[e-1],d[e],d[e+1],o);return g+=`L${d[d.length-1].x} ${d[d.length-1].y}`,[g,f,p,m,h]}function XB(e){return e&&!!(e.internals.handleBounds||e.handles?.length)&&!!(e.measured.width||e.width||e.initialWidth)}function ZB(e){let{sourceNode:t,targetNode:n}=e;if(!XB(t)||!XB(n))return null;let r=t.internals.handleBounds||QB(t.handles),i=n.internals.handleBounds||QB(n.handles),a=eV(r?.source??[],e.sourceHandle),o=eV(e.connectionMode===Oz.Strict?i?.target??[]:(i?.target??[]).concat(i?.source??[]),e.targetHandle);if(!a||!o)return e.onError?.(`008`,wz.error008(a?`target`:`source`,{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let s=a?.position||$.Bottom,c=o?.position||$.Top,l=$B(t,a,s),u=$B(n,o,c);return{sourceX:l.x,sourceY:l.y,targetX:u.x,targetY:u.y,sourcePosition:s,targetPosition:c}}function QB(e){if(!e)return null;let t=[],n=[];for(let r of e)r.width=r.width??1,r.height=r.height??1,r.type===`source`?t.push(r):r.type===`target`&&n.push(r);return{source:t,target:n}}function $B(e,t,n=$.Left,r=!1){let i=(t?.x??0)+e.internals.positionAbsolute.x,a=(t?.y??0)+e.internals.positionAbsolute.y,{width:o,height:s}=t??vB(e);if(r)return{x:i+o/2,y:a+s/2};switch(t?.position??n){case $.Top:return{x:i+o/2,y:a};case $.Right:return{x:i+o,y:a+s/2};case $.Bottom:return{x:i+o/2,y:a+s};case $.Left:return{x:i,y:a+s/2}}}function eV(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function tV(e,t){return e?typeof e==`string`?e:`${t?`${t}__`:``}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join(`&`)}`:``}function nV(e,{id:t,defaultColor:n,defaultMarkerStart:r,defaultMarkerEnd:i}){let a=new Set;return e.reduce((e,o)=>([o.markerStart||r,o.markerEnd||i].forEach(r=>{if(r&&typeof r==`object`){let i=tV(r,t);a.has(i)||(e.push({id:i,color:r.color||n,...r}),a.add(i))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))}var rV=1e3,iV=10,aV={nodeOrigin:[0,0],nodeExtent:Tz,elevateNodesOnSelect:!0,zIndexMode:`basic`,defaults:{}},oV={...aV,checkEquality:!0};function sV(e,t){let n={...e};for(let e in t)t[e]!==void 0&&(n[e]=t[e]);return n}function cV(e,t,n){let r=sV(aV,n);for(let n of e.values())if(n.parentId)pV(n,e,t,r);else{let e=Jz(Rz(n,r.nodeOrigin),_B(n.extent)?n.extent:r.nodeExtent,vB(n));n.internals.positionAbsolute=e}}function lV(e,t){if(!e.handles)return e.measured?t?.internals.handleBounds:void 0;let n=[],r=[];for(let t of e.handles){let i={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};t.type===`source`?n.push(i):t.type===`target`&&r.push(i)}return{source:n,target:r}}function uV(e){return e===`manual`}function dV(e,t,n,r={}){let i=sV(oV,r),a={i:0},o=new Map(t),s=i?.elevateNodesOnSelect&&!uV(i.zIndexMode)?rV:0,c=e.length>0,l=!1;t.clear(),n.clear();for(let u of e){let e=o.get(u.id);if(i.checkEquality&&u===e?.internals.userNode)t.set(u.id,e);else{let n=Jz(Rz(u,i.nodeOrigin),_B(u.extent)?u.extent:i.nodeExtent,vB(u));e={...i.defaults,...u,measured:{width:u.measured?.width,height:u.measured?.height},internals:{positionAbsolute:n,handleBounds:lV(u,e),z:mV(u,s,i.zIndexMode),userNode:u}},t.set(u.id,e)}(e.measured===void 0||e.measured.width===void 0||e.measured.height===void 0)&&!e.hidden&&(c=!1),u.parentId&&pV(e,t,n,r,a),l||=u.selected??!1}return{nodesInitialized:c,hasSelectedNodes:l}}function fV(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))}function pV(e,t,n,r,i){let{elevateNodesOnSelect:a,nodeOrigin:o,nodeExtent:s,zIndexMode:c}=sV(aV,r),l=e.parentId,u=t.get(l);if(!u){console.warn(`Parent node ${l} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}fV(e,n),i&&!u.parentId&&u.internals.rootParentIndex===void 0&&c===`auto`&&(u.internals.rootParentIndex=++i.i,u.internals.z=u.internals.z+i.i*iV),i&&u.internals.rootParentIndex!==void 0&&(i.i=u.internals.rootParentIndex);let{x:d,y:f,z:p}=hV(e,u,o,s,a&&!uV(c)?rV:0,c),{positionAbsolute:m}=e.internals,h=d!==m.x||f!==m.y;(h||p!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:h?{x:d,y:f}:m,z:p}})}function mV(e,t,n){let r=sB(e.zIndex)?e.zIndex:0;return uV(n)?r:r+(e.selected?t:0)}function hV(e,t,n,r,i,a){let{x:o,y:s}=t.internals.positionAbsolute,c=vB(e),l=Rz(e,n),u=_B(e.extent)?Jz(l,e.extent,c):l,d=Jz({x:o+u.x,y:s+u.y},r,c);e.extent===`parent`&&(d=Yz(d,c,t));let f=mV(e,i,a),p=t.internals.z??0;return{x:d.x,y:d.y,z:p>=f?p+1:f}}function gV(e,t,n,r=[0,0]){let i=[],a=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let r=rB(a.get(n.parentId)?.expandedRect??tB(e),n.rect);a.set(n.parentId,{expandedRect:r,parent:e})}return a.size>0&&a.forEach(({expandedRect:t,parent:a},o)=>{let s=a.internals.positionAbsolute,c=vB(a),l=a.origin??r,u=t.x<s.x?Math.round(Math.abs(s.x-t.x)):0,d=t.y<s.y?Math.round(Math.abs(s.y-t.y)):0,f=Math.max(c.width,Math.round(t.width)),p=Math.max(c.height,Math.round(t.height)),m=(f-c.width)*l[0],h=(p-c.height)*l[1];(u>0||d>0||m||h)&&(i.push({id:o,type:`position`,position:{x:a.position.x-u+m,y:a.position.y-d+h}}),n.get(o)?.forEach(t=>{e.some(e=>e.id===t.id)||i.push({id:t.id,type:`position`,position:{x:t.position.x+u,y:t.position.y+d}})})),(c.width<t.width||c.height<t.height||u||d)&&i.push({id:o,type:`dimensions`,setAttributes:!0,dimensions:{width:f+(u?l[0]*u-m:0),height:p+(d?l[1]*d-h:0)}})}),i}function _V(e,t,n,r,i,a,o){let s=r?.querySelector(`.xyflow__viewport`),c=!1;if(!s)return{changes:[],updatedInternals:c};let l=[],u=window.getComputedStyle(s),{m22:d}=new window.DOMMatrixReadOnly(u.transform),f=[];for(let r of e.values()){let e=t.get(r.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),c=!0;continue}let s=EB(r.nodeElement),u=e.measured.width!==s.width||e.measured.height!==s.height;if(s.width&&s.height&&(u||!e.internals.handleBounds||r.force)){let p=r.nodeElement.getBoundingClientRect(),m=_B(e.extent)?e.extent:a,{positionAbsolute:h}=e.internals;if(e.parentId&&e.extent===`parent`){let n=t.get(e.parentId);n&&(h=Yz(h,s,n))}else m&&(h=Jz(h,m,s));let g={...e,measured:s,internals:{...e.internals,positionAbsolute:h,handleBounds:{source:MB(`source`,r.nodeElement,p,d,e.id),target:MB(`target`,r.nodeElement,p,d,e.id)}}};t.set(e.id,g),e.parentId&&pV(g,t,n,{nodeOrigin:i,zIndexMode:o}),c=!0,u&&(l.push({id:e.id,type:`dimensions`,dimensions:s}),e.expandParent&&e.parentId&&f.push({id:e.id,parentId:e.parentId,rect:tB(g,i)}))}}if(f.length>0){let e=gV(f,t,n,i);l.push(...e)}return{changes:l,updatedInternals:c}}async function vV({delta:e,panZoom:t,transform:n,translateExtent:r,width:i,height:a}){if(!t||!e.x&&!e.y)return!1;let o=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[i,a]],r);return!!o&&(o.x!==n[0]||o.y!==n[1]||o.k!==n[2])}function yV(e,t,n,r,i,a){let o=i,s=r.get(o)||new Map;r.set(o,s.set(n,t)),o=`${i}-${e}`;let c=r.get(o)||new Map;if(r.set(o,c.set(n,t)),a){o=`${i}-${e}-${a}`;let s=r.get(o)||new Map;r.set(o,s.set(n,t))}}function bV(e,t,n){e.clear(),t.clear();for(let r of n){let{source:n,target:i,sourceHandle:a=null,targetHandle:o=null}=r,s={edgeId:r.id,source:n,target:i,sourceHandle:a,targetHandle:o},c=`${n}-${a}--${i}-${o}`;yV(`source`,s,`${i}-${o}--${n}-${a}`,e,n,a),yV(`target`,s,c,e,i,o),t.set(r.id,r)}}function xV(e,t){if(!e.parentId)return!1;let n=t.get(e.parentId);return n?n.selected?!0:xV(n,t):!1}function SV(e,t,n){let r=e;do{if(r?.matches?.(t))return!0;if(r===n)return!1;r=r?.parentElement}while(r);return!1}function CV(e,t,n,r){let i=new Map;for(let[a,o]of e)if((o.selected||o.id===r)&&(!o.parentId||!xV(o,e))&&(o.draggable||t&&o.draggable===void 0)){let t=e.get(a);t&&i.set(a,{id:a,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return i}function wV({nodeId:e,dragItems:t,nodeLookup:n,dragging:r=!0}){let i=[];for(let[e,a]of t){let t=n.get(e)?.internals.userNode;t&&i.push({...t,position:a.position,dragging:r})}if(!e)return[i[0],i];let a=n.get(e)?.internals.userNode;return[a?{...a,position:t.get(e)?.position||a.position,dragging:r}:i[0],i]}function TV({dragItems:e,snapGrid:t,x:n,y:r}){let i=e.values().next().value;if(!i)return null;let a={x:n-i.distance.x,y:r-i.distance.y},o=lB(a,t);return{x:o.x-a.x,y:o.y-a.y}}function EV({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:r,onDragStop:i}){let a={x:null,y:null},o=0,s=new Map,c=!1,l={x:0,y:0},u=null,d=!1,f=null,p=!1,m=!1,h=null;function g({noDragClassName:g,handleSelector:_,domNode:v,isSelectable:y,nodeId:b,nodeClickDistance:x=0}){f=KF(v);function S({x:e,y:n}){let{nodeLookup:i,nodeExtent:o,snapGrid:c,snapToGrid:l,nodeOrigin:u,onNodeDrag:d,onSelectionDrag:f,onError:p,updateNodePositions:g}=t();a={x:e,y:n};let _=!1,v=s.size>1,y=v&&o?$z(Bz(s)):null,x=v&&l?TV({dragItems:s,snapGrid:c,x:e,y:n}):null;for(let[t,r]of s){if(!i.has(t))continue;let a={x:e-r.distance.x,y:n-r.distance.y};l&&(a=x?{x:Math.round(a.x+x.x),y:Math.round(a.y+x.y)}:lB(a,c));let s=null;if(v&&o&&!r.extent&&y){let{positionAbsolute:e}=r.internals,t=e.x-y.x+o[0][0],n=e.x+r.measured.width-y.x2+o[1][0],i=e.y-y.y+o[0][1],a=e.y+r.measured.height-y.y2+o[1][1];s=[[t,i],[n,a]]}let{position:d,positionAbsolute:f}=Gz({nodeId:t,nextPosition:a,nodeLookup:i,nodeExtent:s||o,nodeOrigin:u,onError:p});_=_||r.position.x!==d.x||r.position.y!==d.y,r.position=d,r.internals.positionAbsolute=f}if(m||=_,_&&(g(s,!0),h&&(r||d||!b&&f))){let[e,t]=wV({nodeId:b,dragItems:s,nodeLookup:i});r?.(h,s,e,t),d?.(h,e,t),b||f?.(h,t)}}async function C(){if(!u)return;let{transform:e,panBy:n,autoPanSpeed:r,autoPanOnNodeDrag:i}=t();if(!i){c=!1,cancelAnimationFrame(o);return}let[s,d]=Zz(l,u,r);(s!==0||d!==0)&&(a.x=(a.x??0)-s/e[2],a.y=(a.y??0)-d/e[2],await n({x:s,y:d})&&S(a)),o=requestAnimationFrame(C)}function w(r){let{nodeLookup:i,multiSelectionActive:o,nodesDraggable:c,transform:l,snapGrid:f,snapToGrid:p,selectNodesOnDrag:m,onNodeDragStart:h,onSelectionDragStart:g,unselectNodesAndEdges:_}=t();d=!0,(!m||!y)&&!o&&b&&(i.get(b)?.selected||_()),y&&m&&b&&e?.(b);let v=TB(r.sourceEvent,{transform:l,snapGrid:f,snapToGrid:p,containerBounds:u});if(a=v,s=CV(i,c,v,b),s.size>0&&(n||h||!b&&g)){let[e,t]=wV({nodeId:b,dragItems:s,nodeLookup:i});n?.(r.sourceEvent,s,e,t),h?.(r.sourceEvent,e,t),b||g?.(r.sourceEvent,t)}}let T=sI().clickDistance(x).on(`start`,e=>{let{domNode:n,nodeDragThreshold:r,transform:i,snapGrid:o,snapToGrid:s}=t();u=n?.getBoundingClientRect()||null,p=!1,m=!1,h=e.sourceEvent,r===0&&w(e),a=TB(e.sourceEvent,{transform:i,snapGrid:o,snapToGrid:s,containerBounds:u}),l=jB(e.sourceEvent,u)}).on(`drag`,e=>{let{autoPanOnNodeDrag:n,transform:r,snapGrid:i,snapToGrid:o,nodeDragThreshold:f,nodeLookup:m}=t(),g=TB(e.sourceEvent,{transform:r,snapGrid:i,snapToGrid:o,containerBounds:u});if(h=e.sourceEvent,(e.sourceEvent.type===`touchmove`&&e.sourceEvent.touches.length>1||b&&!m.has(b))&&(p=!0),!p){if(!c&&n&&d&&(c=!0,C()),!d){let t=jB(e.sourceEvent,u),n=t.x-l.x,r=t.y-l.y;Math.sqrt(n*n+r*r)>f&&w(e)}(a.x!==g.xSnapped||a.y!==g.ySnapped)&&s&&d&&(l=jB(e.sourceEvent,u),S(g))}}).on(`end`,e=>{if(!d||p){p&&s.size>0&&t().updateNodePositions(s,!1);return}if(c=!1,d=!1,cancelAnimationFrame(o),s.size>0){let{nodeLookup:n,updateNodePositions:r,onNodeDragStop:a,onSelectionDragStop:o}=t();if(m&&=(r(s,!1),!1),i||a||!b&&o){let[t,r]=wV({nodeId:b,dragItems:s,nodeLookup:n,dragging:!1});i?.(e.sourceEvent,s,t,r),a?.(e.sourceEvent,t,r),b||o?.(e.sourceEvent,r)}}}).filter(e=>{let t=e.target;return!e.button&&(!g||!SV(t,`.${g}`,v))&&(!_||SV(t,_,v))});f.call(T)}function _(){f?.on(`.drag`,null)}return{update:g,destroy:_}}function DV(e,t,n){let r=[],i={x:e.x-n,y:e.y-n,width:n*2,height:n*2};for(let e of t.values())aB(i,tB(e))>0&&r.push(e);return r}var OV=250;function kV(e,t,n,r){let i=[],a=1/0,o=DV(e,n,t+OV);for(let n of o){let o=[...n.internals.handleBounds?.source??[],...n.internals.handleBounds?.target??[]];for(let s of o){if(r.nodeId===s.nodeId&&r.type===s.type&&r.id===s.id)continue;let{x:o,y:c}=$B(n,s,s.position,!0),l=Math.sqrt((o-e.x)**2+(c-e.y)**2);l>t||(l<a?(i=[{...s,x:o,y:c}],a=l):l===a&&i.push({...s,x:o,y:c}))}}if(!i.length)return null;if(i.length>1){let e=r.type===`source`?`target`:`source`;return i.find(t=>t.type===e)??i[0]}return i[0]}function AV(e,t,n,r,i,a=!1){let o=r.get(e);if(!o)return null;let s=i===`strict`?o.internals.handleBounds?.[t]:[...o.internals.handleBounds?.source??[],...o.internals.handleBounds?.target??[]],c=(n?s?.find(e=>e.id===n):s?.[0])??null;return c&&a?{...c,...$B(o,c,c.position,!0)}:c}function jV(e,t){return e||(t?.classList.contains(`target`)?`target`:t?.classList.contains(`source`)?`source`:null)}function MV(e,t){let n=null;return t?n=!0:e&&!t&&(n=!1),n}var NV=()=>!0;function PV(e,{connectionMode:t,connectionRadius:n,handleId:r,nodeId:i,edgeUpdaterType:a,isTarget:o,domNode:s,nodeLookup:c,lib:l,autoPanOnConnect:u,flowId:d,panBy:f,cancelConnection:p,onConnectStart:m,onConnect:h,onConnectEnd:g,isValidConnection:_=NV,onReconnectEnd:v,updateConnection:y,getTransform:b,getFromHandle:x,autoPanSpeed:S,dragThreshold:C=1,handleDomNode:w}){let T=DB(e.target),E=0,D,{x:O,y:k}=jB(e),A=jV(a,w),j=s?.getBoundingClientRect(),M=!1;if(!j||!A)return;let N=AV(i,A,r,c,t);if(!N)return;let P=jB(e,j),F=!1,I=null,L=!1,R=null;function ee(){if(!u||!j)return;let[e,t]=Zz(P,j,S);f({x:e,y:t}),E=requestAnimationFrame(ee)}let te={...N,nodeId:i,type:A,position:N.position},z=c.get(i),B={inProgress:!0,isValid:null,from:$B(z,te,$.Left,!0),fromHandle:te,fromPosition:te.position,fromNode:z,to:P,toHandle:null,toPosition:Pz[te.position],toNode:null,pointer:P};function V(){M=!0,y(B),m?.(e,{nodeId:i,handleId:r,handleType:A})}C===0&&V();function ne(e){if(!M){let{x:t,y:n}=jB(e),r=t-O,i=n-k;if(!(r*r+i*i>C*C))return;V()}if(!x()||!te){re(e);return}let a=b();P=jB(e,j),D=kV(uB(P,a,!1,[1,1]),n,c,te),F||=(ee(),!0);let s=FV(e,{handle:D,connectionMode:t,fromNodeId:i,fromHandleId:r,fromType:o?`target`:`source`,isValidConnection:_,doc:T,lib:l,flowId:d,nodeLookup:c});R=s.handleDomNode,I=s.connection,L=MV(!!D,s.isValid);let u=c.get(i),f=u?$B(u,te,$.Left,!0):B.from,p={...B,from:f,isValid:L,to:s.toHandle&&L?dB({x:s.toHandle.x,y:s.toHandle.y},a):P,toHandle:s.toHandle,toPosition:L&&s.toHandle?s.toHandle.position:Pz[te.position],toNode:s.toHandle?c.get(s.toHandle.nodeId):null,pointer:P};y(p),B=p}function re(e){if(!(`touches`in e&&e.touches.length>0)){if(M){(D||R)&&I&&L&&h?.(I);let{inProgress:t,...n}=B,r={...n,toPosition:B.toHandle?B.toPosition:null};g?.(e,r),a&&v?.(e,r)}p(),cancelAnimationFrame(E),F=!1,L=!1,I=null,R=null,T.removeEventListener(`mousemove`,ne),T.removeEventListener(`mouseup`,re),T.removeEventListener(`touchmove`,ne),T.removeEventListener(`touchend`,re)}}T.addEventListener(`mousemove`,ne),T.addEventListener(`mouseup`,re),T.addEventListener(`touchmove`,ne),T.addEventListener(`touchend`,re)}function FV(e,{handle:t,connectionMode:n,fromNodeId:r,fromHandleId:i,fromType:a,doc:o,lib:s,flowId:c,isValidConnection:l=NV,nodeLookup:u}){let d=a===`target`,f=t?o.querySelector(`.${s}-flow__handle[data-id="${c}-${t?.nodeId}-${t?.id}-${t?.type}"]`):null,{x:p,y:m}=jB(e),h=o.elementFromPoint(p,m),g=h?.classList.contains(`${s}-flow__handle`)?h:f,_={handleDomNode:g,isValid:!1,connection:null,toHandle:null};if(g){let e=jV(void 0,g),t=g.getAttribute(`data-nodeid`),a=g.getAttribute(`data-handleid`),o=g.classList.contains(`connectable`),s=g.classList.contains(`connectableend`);if(!t||!e)return _;let c={source:d?t:r,sourceHandle:d?a:i,target:d?r:t,targetHandle:d?i:a};_.connection=c,_.isValid=o&&s&&(n===Oz.Strict?d&&e===`source`||!d&&e===`target`:t!==r||a!==i)&&l(c),_.toHandle=AV(t,e,a,u,n,!0)}return _}var IV={onPointerDown:PV,isValid:FV};function LV({domNode:e,panZoom:t,getTransform:n,getViewScale:r}){let i=KF(e);function a({translateExtent:e,width:a,height:o,zoomStep:s=1,pannable:c=!0,zoomable:l=!0,inversePan:u=!1}){let d=e=>{if(e.sourceEvent.type!==`wheel`||!t)return;let r=n(),i=e.sourceEvent.ctrlKey&&gB()?10:1,a=-e.sourceEvent.deltaY*(e.sourceEvent.deltaMode===1?.05:e.sourceEvent.deltaMode?1:.002)*s,o=r[2]*2**(a*i);t.scaleTo(o)},f=[0,0],p=Cz().on(`start`,e=>{(e.sourceEvent.type===`mousedown`||e.sourceEvent.type===`touchstart`)&&(f=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on(`zoom`,c?i=>{let s=n();if(i.sourceEvent.type!==`mousemove`&&i.sourceEvent.type!==`touchmove`||!t)return;let c=[i.sourceEvent.clientX??i.sourceEvent.touches[0].clientX,i.sourceEvent.clientY??i.sourceEvent.touches[0].clientY],l=[c[0]-f[0],c[1]-f[1]];f=c;let d=r()*Math.max(s[2],Math.log(s[2]))*(u?-1:1),p={x:s[0]-l[0]*d,y:s[1]-l[1]*d},m=[[0,0],[a,o]];t.setViewportConstrained({x:p.x,y:p.y,zoom:s[2]},m,e)}:null).on(`zoom.wheel`,l?d:null);i.call(p,{})}function o(){i.on(`zoom`,null)}return{update:a,destroy:o,pointer:JF}}var RV=e=>({x:e.x,y:e.y,zoom:e.k}),zV=({x:e,y:t,zoom:n})=>pz.translate(e,t).scale(n),BV=(e,t)=>e.target.closest(`.${t}`),VV=(e,t)=>t===2&&Array.isArray(e)&&e.includes(2),HV=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,UV=(e,t=0,n=HV,r=()=>{})=>{let i=typeof t==`number`&&t>0;return i||r(),i?e.transition().duration(t).ease(n).on(`end`,r):e},WV=e=>{let t=e.ctrlKey&&gB()?10:1;return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*t};function GV({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:r,panOnScrollMode:i,panOnScrollSpeed:a,zoomOnPinch:o,onPanZoomStart:s,onPanZoom:c,onPanZoomEnd:l}){return u=>{if(BV(u,t))return u.ctrlKey&&u.preventDefault(),!1;u.preventDefault(),u.stopImmediatePropagation();let d=n.property(`__zoom`).k||1;if(u.ctrlKey&&o){let e=JF(u),t=d*2**WV(u);r.scaleTo(n,t,e,u);return}let f=u.deltaMode===1?20:1,p=i===kz.Vertical?0:u.deltaX*f,m=i===kz.Horizontal?0:u.deltaY*f;!gB()&&u.shiftKey&&i!==kz.Vertical&&(p=u.deltaY*f,m=0),r.translateBy(n,-(p/d)*a,-(m/d)*a,{internal:!0});let h=RV(n.property(`__zoom`));clearTimeout(e.panScrollTimeout),e.isPanScrolling?c?.(u,h):(e.isPanScrolling=!0,s?.(u,h)),e.panScrollTimeout=setTimeout(()=>{l?.(u,h),e.isPanScrolling=!1},150)}}function KV({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(r,i){let a=r.type===`wheel`,o=!t&&a&&!r.ctrlKey,s=BV(r,e);if(r.ctrlKey&&a&&s&&r.preventDefault(),o||s)return null;r.preventDefault(),n.call(this,r,i)}}function qV({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return r=>{if(r.sourceEvent?.internal)return;let i=RV(r.transform);e.mouseButton=r.sourceEvent?.button||0,e.isZoomingOrPanning=!0,e.prevViewport=i,r.sourceEvent?.type===`mousedown`&&t(!0),n&&n?.(r.sourceEvent,i)}}function JV({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:r,onPanZoom:i}){return a=>{e.usedRightMouseButton=!!(n&&VV(t,e.mouseButton??0)),a.sourceEvent?.sync||r([a.transform.x,a.transform.y,a.transform.k]),i&&!a.sourceEvent?.internal&&i?.(a.sourceEvent,RV(a.transform))}}function YV({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:r,onPanZoomEnd:i,onPaneContextMenu:a}){return o=>{if(!o.sourceEvent?.internal&&(e.isZoomingOrPanning=!1,a&&VV(t,e.mouseButton??0)&&!e.usedRightMouseButton&&o.sourceEvent&&a(o.sourceEvent),e.usedRightMouseButton=!1,r(!1),i)){let t=RV(o.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{i?.(o.sourceEvent,t)},n?150:0)}}}function XV({panActivationKeyPressed:e,zoomActivationKeyPressed:t,zoomOnScroll:n,zoomOnPinch:r,panOnDrag:i,panOnScroll:a,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:c,noPanClassName:l,lib:u,connectionInProgress:d}){return f=>{let p=t||n,m=r&&f.ctrlKey,h=f.type===`wheel`;if(f.button===1&&f.type===`mousedown`&&(BV(f,`${u}-flow__node`)||BV(f,`${u}-flow__edge`)||BV(f,`${u}-flow__selection`)||BV(f,`${u}-flow__nodesselection`)))return!0;if(!i&&!p&&!a&&!o&&!r||s||d&&!h||BV(f,c)&&h||BV(f,l)&&(!h||a&&h&&!t)||!r&&f.ctrlKey&&h)return!1;if(!r&&f.type===`touchstart`&&f.touches?.length>1)return f.preventDefault(),!1;if(!p&&!a&&!m&&h||!i&&(f.type===`mousedown`||f.type===`touchstart`)||Array.isArray(i)&&!i.includes(f.button)&&f.type===`mousedown`)return!1;let g=Array.isArray(i)&&i.includes(f.button)||!f.button||f.button<=1;return(!f.ctrlKey||h||e)&&g}}function ZV({domNode:e,minZoom:t,maxZoom:n,translateExtent:r,viewport:i,onPanZoom:a,onPanZoomStart:o,onPanZoomEnd:s,onDraggingChange:c}){let l={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},u=e.getBoundingClientRect(),d=[[0,0],[u.width,u.height]];(typeof ResizeObserver<`u`?new ResizeObserver(e=>{let t=e[0];t&&(d=[[0,0],[t.contentRect.width,t.contentRect.height]])}):null)?.observe(e);let f=Cz().extent(()=>d).scaleExtent([t,n]).translateExtent(r),p=KF(e).call(f);y({x:i.x,y:i.y,zoom:qz(i.zoom,t,n)},[[0,0],[u.width,u.height]],r);let m=p.on(`wheel.zoom`),h=p.on(`dblclick.zoom`);f.wheelDelta(WV);async function g(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?uL:wL).transform(UV(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function _({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:r,panOnScroll:i,panOnDrag:u,panOnScrollMode:d,panOnScrollSpeed:g,preventScrolling:_,zoomOnPinch:y,zoomOnScroll:b,zoomOnDoubleClick:x,panActivationKeyPressed:S=!1,zoomActivationKeyPressed:C,lib:w,onTransformChange:T,connectionInProgress:E,paneClickDistance:D,selectionOnDrag:O}){r&&!l.isZoomingOrPanning&&v();let k=i&&!C&&!r;f.clickDistance(O?1/0:!sB(D)||D<0?0:D);let A=k?GV({zoomPanValues:l,noWheelClassName:e,d3Selection:p,d3Zoom:f,panOnScrollMode:d,panOnScrollSpeed:g,zoomOnPinch:y,onPanZoomStart:o,onPanZoom:a,onPanZoomEnd:s}):KV({noWheelClassName:e,preventScrolling:_,d3ZoomHandler:m});p.on(`wheel.zoom`,A,{passive:!1});let j=qV({zoomPanValues:l,onDraggingChange:c,onPanZoomStart:o});f.on(`start`,j);let M=JV({zoomPanValues:l,panOnDrag:u,onPaneContextMenu:!!n,onPanZoom:a,onTransformChange:T});f.on(`zoom`,M);let N=YV({zoomPanValues:l,panOnDrag:u,panOnScroll:i,onPaneContextMenu:n,onPanZoomEnd:s,onDraggingChange:c});f.on(`end`,N);let P=XV({panActivationKeyPressed:S,zoomActivationKeyPressed:C,panOnDrag:u,zoomOnScroll:b,panOnScroll:i,zoomOnDoubleClick:x,zoomOnPinch:y,userSelectionActive:r,noPanClassName:t,noWheelClassName:e,lib:w,connectionInProgress:E});f.filter(P),x?p.on(`dblclick.zoom`,h):p.on(`dblclick.zoom`,null)}function v(){f.on(`zoom`,null)}async function y(e,t,n){let r=zV(e),i=f?.constrain()(r,t,n);return i&&await g(i),i}async function b(e,t){let n=zV(e);return await g(n,t),n}function x(e){if(p){let t=zV(e),n=p.property(`__zoom`);(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&f?.transform(p,t,null,{sync:!0})}}function S(){let e=p?mz(p.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}}async function C(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?uL:wL).scaleTo(UV(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}async function w(e,t){return p?new Promise(n=>{f?.interpolate(t?.interpolate===`linear`?uL:wL).scaleBy(UV(p,t?.duration,t?.ease,()=>n(!0)),e)}):!1}function T(e){f?.scaleExtent(e)}function E(e){f?.translateExtent(e)}function D(e){let t=!sB(e)||e<0?0:e;f?.clickDistance(t)}return{update:_,destroy:v,setViewport:b,setViewportConstrained:y,getViewport:S,scaleTo:C,scaleBy:w,setScaleExtent:T,setTranslateExtent:E,syncViewport:x,setClickDistance:D}}var QV;(function(e){e.Line=`line`,e.Handle=`handle`})(QV||={});function $V({width:e,prevWidth:t,height:n,prevHeight:r,affectsX:i,affectsY:a}){let o=e-t,s=n-r,c=[o>0?1:o<0?-1:0,s>0?1:s<0?-1:0];return o&&i&&(c[0]*=-1),s&&a&&(c[1]*=-1),c}function eH(e){return{isHorizontal:e.includes(`right`)||e.includes(`left`),isVertical:e.includes(`bottom`)||e.includes(`top`),affectsX:e.includes(`left`),affectsY:e.includes(`top`)}}function tH(e,t){return Math.max(0,t-e)}function nH(e,t){return Math.max(0,e-t)}function rH(e,t,n){return Math.max(0,t-e,e-n)}function iH(e,t){return e?!t:t}function aH(e,t,n,r,i,a,o,s){let{affectsX:c,affectsY:l}=t,{isHorizontal:u,isVertical:d}=t,f=u&&d,{xSnapped:p,ySnapped:m}=n,{minWidth:h,maxWidth:g,minHeight:_,maxHeight:v}=r,{x:y,y:b,width:x,height:S,aspectRatio:C}=e,w=Math.floor(u?p-e.pointerX:0),T=Math.floor(d?m-e.pointerY:0),E=x+(c?-w:w),D=S+(l?-T:T),O=-a[0]*x,k=-a[1]*S,A=rH(E,h,g),j=rH(D,_,v);if(o){let e=0,t=0;c&&w<0?e=tH(y+w+O,o[0][0]):!c&&w>0&&(e=nH(y+E+O,o[1][0])),l&&T<0?t=tH(b+T+k,o[0][1]):!l&&T>0&&(t=nH(b+D+k,o[1][1])),A=Math.max(A,e),j=Math.max(j,t)}if(s){let e=0,t=0;c&&w>0?e=nH(y+w,s[0][0]):!c&&w<0&&(e=tH(y+E,s[1][0])),l&&T>0?t=nH(b+T,s[0][1]):!l&&T<0&&(t=tH(b+D,s[1][1])),A=Math.max(A,e),j=Math.max(j,t)}if(i){if(u){let e=rH(E/C,_,v)*C;if(A=Math.max(A,e),o){let e=0;e=!c&&!l||c&&!l&&f?nH(b+k+E/C,o[1][1])*C:tH(b+k+(c?w:-w)/C,o[0][1])*C,A=Math.max(A,e)}if(s){let e=0;e=!c&&!l||c&&!l&&f?tH(b+E/C,s[1][1])*C:nH(b+(c?w:-w)/C,s[0][1])*C,A=Math.max(A,e)}}if(d){let e=rH(D*C,h,g)/C;if(j=Math.max(j,e),o){let e=0;e=!c&&!l||l&&!c&&f?nH(y+D*C+O,o[1][0])/C:tH(y+(l?T:-T)*C+O,o[0][0])/C,j=Math.max(j,e)}if(s){let e=0;e=!c&&!l||l&&!c&&f?tH(y+D*C,s[1][0])/C:nH(y+(l?T:-T)*C,s[0][0])/C,j=Math.max(j,e)}}}T+=T<0?j:-j,w+=w<0?A:-A,i&&(f?E>D*C?T=(iH(c,l)?-w:w)/C:w=(iH(c,l)?-T:T)*C:u?(T=w/C,l=c):(w=T*C,c=l));let M=c?y+w:y,N=l?b+T:b;return{width:x+(c?-w:w),height:S+(l?-T:T),x:a[0]*w*(c?-1:1)+M,y:a[1]*T*(l?-1:1)+N}}var oH={width:0,height:0,x:0,y:0},sH={...oH,pointerX:0,pointerY:0,aspectRatio:1};function cH(e,t,n){let r=t.position.x+e.position.x,i=t.position.y+e.position.y,a=e.measured.width??0,o=e.measured.height??0,s=n[0]*a,c=n[1]*o;return[[r-s,i-c],[r+a-s,i+o-c]]}function lH({domNode:e,nodeId:t,getStoreItems:n,onChange:r,onEnd:i}){let a=KF(e),o={controlDirection:eH(`bottom-right`),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};function s({controlPosition:e,boundaries:s,keepAspectRatio:c,resizeDirection:l,onResizeStart:u,onResize:d,onResizeEnd:f,shouldResize:p}){let m={...oH},h={...sH};o={boundaries:s,resizeDirection:l,keepAspectRatio:c,controlDirection:eH(e)};let g,_=null,v=[],y,b,x,S=!1,C=sI().on(`start`,e=>{let{nodeLookup:r,transform:i,snapGrid:a,snapToGrid:o,nodeOrigin:s,paneDomNode:c}=n();if(g=r.get(t),!g)return;_=c?.getBoundingClientRect()??null;let{xSnapped:l,ySnapped:d}=TB(e.sourceEvent,{transform:i,snapGrid:a,snapToGrid:o,containerBounds:_});m={width:g.measured.width??0,height:g.measured.height??0,x:g.position.x??0,y:g.position.y??0},h={...m,pointerX:l,pointerY:d,aspectRatio:m.width/m.height},y=void 0,b=_B(g.extent)?g.extent:void 0,g.parentId&&(g.extent===`parent`||g.expandParent)&&(y=r.get(g.parentId)),y&&g.extent===`parent`&&(b=[[0,0],[y.measured.width,y.measured.height]]),v=[],x=void 0;for(let[e,n]of r)if(n.parentId===t&&(v.push({id:e,position:{...n.position},extent:n.extent}),n.extent===`parent`||n.expandParent)){let e=cH(n,g,n.origin??s);x=x?[[Math.min(e[0][0],x[0][0]),Math.min(e[0][1],x[0][1])],[Math.max(e[1][0],x[1][0]),Math.max(e[1][1],x[1][1])]]:e}u?.(e,{...m})}).on(`drag`,e=>{let{transform:t,snapGrid:i,snapToGrid:a,nodeOrigin:s}=n(),c=TB(e.sourceEvent,{transform:t,snapGrid:i,snapToGrid:a,containerBounds:_}),l=[];if(!g)return;let{x:u,y:f,width:C,height:w}=m,T={},E=g.origin??s,{width:D,height:O,x:k,y:A}=aH(h,o.controlDirection,c,o.boundaries,o.keepAspectRatio,E,b,x),j=D!==C,M=O!==w,N=k!==u&&j,P=A!==f&&M;if(!N&&!P&&!j&&!M)return;if((N||P||E[0]===1||E[1]===1)&&(T.x=N?k:m.x,T.y=P?A:m.y,m.x=T.x,m.y=T.y,v.length>0)){let e=k-u,t=A-f;for(let n of v)n.position={x:n.position.x-e+E[0]*(D-C),y:n.position.y-t+E[1]*(O-w)},l.push(n)}if((j||M)&&(T.width=j&&(!o.resizeDirection||o.resizeDirection===`horizontal`)?D:m.width,T.height=M&&(!o.resizeDirection||o.resizeDirection===`vertical`)?O:m.height,m.width=T.width,m.height=T.height),y&&g.expandParent){let e=E[0]*(T.width??0);T.x&&T.x<e&&(m.x=e,h.x-=T.x-e);let t=E[1]*(T.height??0);T.y&&T.y<t&&(m.y=t,h.y-=T.y-t)}let F=$V({width:m.width,prevWidth:C,height:m.height,prevHeight:w,affectsX:o.controlDirection.affectsX,affectsY:o.controlDirection.affectsY}),I={...m,direction:F};p?.(e,I)!==!1&&(S=!0,d?.(e,I),r(T,l))}).on(`end`,e=>{S&&=(f?.(e,{...m}),i?.({...m}),!1)});a.call(C)}function c(){a.on(`.drag`,null)}return{update:s,destroy:c}}var uH=o((e=>{var t=d();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useState,a=t.useEffect,o=t.useLayoutEffect,s=t.useDebugValue;function c(e,t){var n=t(),r=i({inst:{value:n,getSnapshot:t}}),c=r[0].inst,u=r[1];return o(function(){c.value=n,c.getSnapshot=t,l(c)&&u({inst:c})},[e,n,t]),a(function(){return l(c)&&u({inst:c}),e(function(){l(c)&&u({inst:c})})},[e]),s(n),n}function l(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!r(e,n)}catch{return!0}}function u(e,t){return t()}var f=typeof window>`u`||window.document===void 0||window.document.createElement===void 0?u:c;e.useSyncExternalStore=t.useSyncExternalStore===void 0?f:t.useSyncExternalStore})),dH=o(((e,t)=>{t.exports=uH()})),fH=o((e=>{var t=d(),n=dH();function r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var i=typeof Object.is==`function`?Object.is:r,a=n.useSyncExternalStore,o=t.useRef,s=t.useEffect,c=t.useMemo,l=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,r,u){var d=o(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=c(function(){function e(e){if(!a){if(a=!0,o=e,e=r(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return s=t}return s=e}if(t=s,i(o,e))return t;var n=r(e);return u!==void 0&&u(t,n)?(o=e,t):(o=e,s=n)}var a=!1,o,s,c=n===void 0?null:n;return[function(){return e(t())},c===null?void 0:function(){return e(c())}]},[t,n,r,u]);var p=a(e,d[0],d[1]);return s(function(){f.hasValue=!0,f.value=p},[p]),l(p),p}})),pH=l(o(((e,t)=>{t.exports=fH()}))(),1),mH=e=>{let t,n=new Set,r=(e,r)=>{let i=typeof e==`function`?e(t):e;if(!Object.is(i,t)){let e=t;t=r??(typeof i!=`object`||!i)?i:Object.assign({},t,i),n.forEach(n=>n(t,e))}},i=()=>t,a={setState:r,getState:i,getInitialState:()=>o,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{n.clear()}},o=t=e(r,i,a);return a},hH=e=>e?mH(e):mH,{useDebugValue:gH}=H.default,{useSyncExternalStoreWithSelector:_H}=pH.default,vH=e=>e;function yH(e,t=vH,n){let r=_H(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return gH(r),r}var bH=(e,t)=>{let n=hH(e),r=(e,r=t)=>yH(n,e,r);return Object.assign(r,n),r},xH=(e,t)=>e?bH(e,t):bH;function SH(e,t){if(Object.is(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,r]of e)if(!Object.is(r,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let r of n)if(!Object.prototype.hasOwnProperty.call(t,r)||!Object.is(e[r],t[r]))return!1;return!0}var CH=(0,H.createContext)(null),wH=CH.Provider,TH=wz.error001(`react`);function EH(e,t){let n=(0,H.useContext)(CH);if(n===null)throw Error(TH);return yH(n,e,t)}function DH(){let e=(0,H.useContext)(CH);if(e===null)throw Error(TH);return(0,H.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}var OH={display:`none`},kH={position:`absolute`,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0px, 0px, 0px, 0px)`,clipPath:`inset(100%)`},AH=`react-flow__node-desc`,jH=`react-flow__edge-desc`,MH=`react-flow__aria-live`,NH=e=>e.ariaLiveMessage,PH=e=>e.ariaLabelConfig;function FH({rfId:e}){let t=EH(NH);return(0,U.jsx)(`div`,{id:`${MH}-${e}`,"aria-live":`assertive`,"aria-atomic":`true`,style:kH,children:t})}function IH({rfId:e,disableKeyboardA11y:t}){let n=EH(PH);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`div`,{id:`${AH}-${e}`,style:OH,children:t?n[`node.a11yDescription.default`]:n[`node.a11yDescription.keyboardDisabled`]}),(0,U.jsx)(`div`,{id:`${jH}-${e}`,style:OH,children:n[`edge.a11yDescription.default`]}),!t&&(0,U.jsx)(FH,{rfId:e})]})}var LH=(0,H.forwardRef)(({position:e=`top-left`,children:t,className:n,style:r,...i},a)=>{let o=`${e}`.split(`-`);return(0,U.jsx)(`div`,{className:VN([`react-flow__panel`,n,...o]),style:r,ref:a,...i,children:t})});LH.displayName=`Panel`;var RH=`https://reactflow.dev?utm_source=attribution`;function zH({proOptions:e,position:t=`bottom-right`}){return(0,H.useEffect)(()=>{},[]),e?.hideAttribution?null:(0,U.jsx)(LH,{position:t,className:`react-flow__attribution`,"data-message":`Please only hide this attribution when you are subscribed to React Flow Pro: ${RH}`,children:(0,U.jsx)(`a`,{href:RH,target:`_blank`,rel:`noopener noreferrer`,"aria-label":`React Flow attribution`,children:`React Flow`})})}var BH=e=>{let t=[],n=[];for(let[,n]of e.nodeLookup)n.selected&&t.push(n.internals.userNode);for(let[,t]of e.edgeLookup)t.selected&&n.push(t);return{selectedNodes:t,selectedEdges:n}},VH=e=>e.id;function HH(e,t){return SH(e.selectedNodes.map(VH),t.selectedNodes.map(VH))&&SH(e.selectedEdges.map(VH),t.selectedEdges.map(VH))}function UH({onSelectionChange:e}){let t=DH(),{selectedNodes:n,selectedEdges:r}=EH(BH,HH);return(0,H.useEffect)(()=>{let i={nodes:n,edges:r};e?.(i),t.getState().onSelectionChangeHandlers.forEach(e=>e(i))},[n,r,e]),null}var WH=e=>!!e.onSelectionChangeHandlers;function GH({onSelectionChange:e}){let t=EH(WH);return e||t?(0,U.jsx)(UH,{onSelectionChange:e}):null}var KH=[0,0],qH={x:0,y:0,zoom:1},JH=[...`nodes.edges.defaultNodes.defaultEdges.onConnect.onConnectStart.onConnectEnd.onClickConnectStart.onClickConnectEnd.nodesDraggable.autoPanOnNodeFocus.nodesConnectable.nodesFocusable.edgesFocusable.edgesReconnectable.elevateNodesOnSelect.elevateEdgesOnSelect.minZoom.maxZoom.nodeExtent.onNodesChange.onEdgesChange.elementsSelectable.connectionMode.snapGrid.snapToGrid.translateExtent.connectOnClick.defaultEdgeOptions.fitView.fitViewOptions.onNodesDelete.onEdgesDelete.onDelete.onNodeDrag.onNodeDragStart.onNodeDragStop.onSelectionDrag.onSelectionDragStart.onSelectionDragStop.onMoveStart.onMove.onMoveEnd.noPanClassName.nodeOrigin.autoPanOnConnect.autoPanOnNodeDrag.onError.connectionRadius.isValidConnection.selectNodesOnDrag.nodeDragThreshold.connectionDragThreshold.onBeforeDelete.debug.autoPanSpeed.ariaLabelConfig.zIndexMode`.split(`.`),`rfId`],YH=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),XH={translateExtent:Tz,nodeOrigin:KH,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:`nopan`,rfId:`1`};function ZH(e){let{setNodes:t,setEdges:n,setMinZoom:r,setMaxZoom:i,setTranslateExtent:a,setNodeExtent:o,reset:s,setDefaultNodesAndEdges:c}=EH(YH,SH),l=DH();(0,H.useEffect)(()=>(c(e.defaultNodes,e.defaultEdges),()=>{u.current=XH,s()}),[]);let u=(0,H.useRef)(XH);return(0,H.useEffect)(()=>{for(let s of JH){let c=e[s];c!==u.current[s]&&e[s]!==void 0&&(s===`nodes`?t(c):s===`edges`?n(c):s===`minZoom`?r(c):s===`maxZoom`?i(c):s===`translateExtent`?a(c):s===`nodeExtent`?o(c):s===`ariaLabelConfig`?l.setState({ariaLabelConfig:CB(c)}):s===`fitView`?l.setState({fitViewQueued:c}):s===`fitViewOptions`?l.setState({fitViewOptions:c}):l.setState({[s]:c}))}u.current=e},JH.map(t=>e[t])),null}function QH(){return typeof window>`u`||!window.matchMedia?null:window.matchMedia(`(prefers-color-scheme: dark)`)}function $H(e){let[t,n]=(0,H.useState)(e===`system`?null:e);return(0,H.useEffect)(()=>{if(e!==`system`){n(e);return}let t=QH(),r=()=>n(t?.matches?`dark`:`light`);return r(),t?.addEventListener(`change`,r),()=>{t?.removeEventListener(`change`,r)}},[e]),t===null?QH()?.matches?`dark`:`light`:t}var eU=typeof document<`u`?document:null;function tU(e=null,t={target:eU,actInsideInputWithModifier:!0}){let[n,r]=(0,H.useState)(!1),i=(0,H.useRef)(!1),a=(0,H.useRef)(new Set([])),[o,s]=(0,H.useMemo)(()=>{if(e!==null){let t=(Array.isArray(e)?e:[e]).filter(e=>typeof e==`string`).map(e=>e.replace(/\+/g,`
57
+ `).replace(`
58
+
59
+ `,`
60
+ +`).split(`
61
+ `));return[t,t.reduce((e,t)=>e.concat(...t),[])]}return[[],[]]},[e]);return(0,H.useEffect)(()=>{let n=t?.target??eU,c=t?.actInsideInputWithModifier??!0;if(e!==null){let e=e=>{if(i.current=e.ctrlKey||e.metaKey||e.shiftKey||e.altKey,(!i.current||i.current&&!c)&&kB(e))return!1;let n=rU(e.code,s);if(a.current.add(e[n]),nU(o,a.current,!1)){let n=e.composedPath?.()?.[0]||e.target,a=n?.nodeName===`BUTTON`||n?.nodeName===`A`;t.preventDefault!==!1&&(i.current||!a)&&e.preventDefault(),r(!0)}},l=e=>{let t=rU(e.code,s);nU(o,a.current,!0)?(r(!1),a.current.clear()):a.current.delete(e[t]),e.key===`Meta`&&a.current.clear(),i.current=!1},u=()=>{a.current.clear(),r(!1)};return n?.addEventListener(`keydown`,e),n?.addEventListener(`keyup`,l),window.addEventListener(`blur`,u),window.addEventListener(`contextmenu`,u),()=>{n?.removeEventListener(`keydown`,e),n?.removeEventListener(`keyup`,l),window.removeEventListener(`blur`,u),window.removeEventListener(`contextmenu`,u)}}},[e,r]),n}function nU(e,t,n){return e.filter(e=>n||e.length===t.size).some(e=>e.every(e=>t.has(e)))}function rU(e,t){return t.includes(e)?`code`:`key`}var iU=()=>{let e=DH();return(0,H.useMemo)(()=>({zoomIn:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1.2,t):!1},zoomOut:async t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,t):!1},zoomTo:async(t,n)=>{let{panZoom:r}=e.getState();return r?r.scaleTo(t,n):!1},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{let{transform:[r,i,a],panZoom:o}=e.getState();return o?(await o.setViewport({x:t.x??r,y:t.y??i,zoom:t.zoom??a},n),!0):!1},getViewport:()=>{let[t,n,r]=e.getState().transform;return{x:t,y:n,zoom:r}},setCenter:async(t,n,r)=>e.getState().setCenter(t,n,r),fitBounds:async(t,n)=>{let{width:r,height:i,minZoom:a,maxZoom:o,panZoom:s}=e.getState(),c=hB(t,r,i,a,o,n?.padding??.1);return s?(await s.setViewport(c,{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),!0):!1},screenToFlowPosition:(t,n={})=>{let{transform:r,snapGrid:i,snapToGrid:a,domNode:o}=e.getState();if(!o)return t;let{x:s,y:c}=o.getBoundingClientRect(),l={x:t.x-s,y:t.y-c},u=n.snapGrid??i;return uB(l,r,n.snapToGrid??a,u)},flowToScreenPosition:t=>{let{transform:n,domNode:r}=e.getState();if(!r)return t;let{x:i,y:a}=r.getBoundingClientRect(),o=dB(t,n);return{x:o.x+i,y:o.y+a}}}),[])};function aU(e,t){let n=[],r=new Map,i=[];for(let t of e)if(t.type===`add`){i.push(t);continue}else if(t.type===`remove`||t.type===`replace`)r.set(t.id,[t]);else{let e=r.get(t.id);e?e.push(t):r.set(t.id,[t])}for(let e of t){let t=r.get(e.id);if(!t){n.push(e);continue}if(t[0].type===`remove`)continue;if(t[0].type===`replace`){n.push({...t[0].item});continue}let i={...e};for(let e of t)oU(e,i);n.push(i)}return i.length&&i.forEach(e=>{e.index===void 0?n.push({...e.item}):n.splice(e.index,0,{...e.item})}),n}function oU(e,t){switch(e.type){case`select`:t.selected=e.selected;break;case`position`:e.position!==void 0&&(t.position=e.position),e.dragging!==void 0&&(t.dragging=e.dragging);break;case`dimensions`:e.dimensions!==void 0&&(t.measured={...e.dimensions},e.setAttributes&&((e.setAttributes===!0||e.setAttributes===`width`)&&(t.width=e.dimensions.width),(e.setAttributes===!0||e.setAttributes===`height`)&&(t.height=e.dimensions.height))),typeof e.resizing==`boolean`&&(t.resizing=e.resizing)}}function sU(e,t){return aU(e,t)}function cU(e,t){return aU(e,t)}function lU(e,t){return{id:e,type:`select`,selected:t}}function uU(e,t=new Set,n=!1){let r=[];for(let[i,a]of e){let e=t.has(i);!(a.selected===void 0&&!e)&&a.selected!==e&&(n&&(a.selected=e),r.push(lU(a.id,e)))}return r}function dU({items:e=[],lookup:t}){let n=[],r=new Map(e.map(e=>[e.id,e]));for(let[r,i]of e.entries()){let e=t.get(i.id),a=e?.internals?.userNode??e;a!==void 0&&a!==i&&n.push({id:i.id,item:i,type:`replace`}),a===void 0&&n.push({item:i,type:`add`,index:r})}for(let[e]of t)r.get(e)===void 0&&n.push({id:e,type:`remove`});return n}function fU(e){return{id:e.id,type:`remove`}}var pU=cB(`React Flow`,`https://reactflow.dev/`);function mU(e,t,n={}){return HB(e,t,{...n,onError:n.onError??pU})}var hU=e=>Iz(e),gU=e=>Fz(e);function _U(e){return(0,H.forwardRef)(e)}var vU=typeof window<`u`?H.useLayoutEffect:H.useEffect;function yU(e){let[t,n]=(0,H.useState)(BigInt(0)),[r]=(0,H.useState)(()=>bU(()=>n(e=>e+BigInt(1))));return vU(()=>{let t=r.get();t.length&&(e(t),r.reset())},[t]),r}function bU(e){let t=[];return{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}}var xU=(0,H.createContext)(null);function SU({children:e}){let t=DH(),n=yU((0,H.useCallback)(e=>{let{nodes:n=[],setNodes:r,hasDefaultNodes:i,onNodesChange:a,nodeLookup:o,fitViewQueued:s,onNodesChangeMiddlewareMap:c}=t.getState(),l=n;for(let t of e)l=typeof t==`function`?t(l):t;let u=dU({items:l,lookup:o});for(let e of c.values())u=e(u);i&&r(l),u.length>0?a?.(u):s&&window.requestAnimationFrame(()=>{let{fitViewQueued:e,nodes:n,setNodes:r}=t.getState();e&&r(n)})},[])),r=yU((0,H.useCallback)(e=>{let{edges:n=[],setEdges:r,hasDefaultEdges:i,onEdgesChange:a,edgeLookup:o}=t.getState(),s=n;for(let t of e)s=typeof t==`function`?t(s):t;i?r(s):a&&a(dU({items:s,lookup:o}))},[])),i=(0,H.useMemo)(()=>({nodeQueue:n,edgeQueue:r}),[]);return(0,U.jsx)(xU.Provider,{value:i,children:e})}function CU(){let e=(0,H.useContext)(xU);if(!e)throw Error(`useBatchContext must be used within a BatchProvider`);return e}var wU=e=>!!e.panZoom;function TU(){let e=iU(),t=DH(),n=CU(),r=EH(wU),i=(0,H.useMemo)(()=>{let e=e=>t.getState().nodeLookup.get(e),r=e=>{n.nodeQueue.push(e)},i=e=>{n.edgeQueue.push(e)},a=e=>{let{nodeLookup:n,nodeOrigin:r}=t.getState(),i=hU(e)?e:n.get(e.id),a=i.parentId?bB(i.position,i.measured,i.parentId,n,r):i.position;return tB({...i,position:a,width:i.measured?.width??i.width,height:i.measured?.height??i.height})},o=(e,t,n={replace:!1})=>{r(r=>r.map(r=>{if(r.id===e){let e=typeof t==`function`?t(r):t;return n.replace&&hU(e)?e:{...r,...e}}return r}))},s=(e,t,n={replace:!1})=>{i(r=>r.map(r=>{if(r.id===e){let e=typeof t==`function`?t(r):t;return n.replace&&gU(e)?e:{...r,...e}}return r}))};return{getNodes:()=>t.getState().nodes.map(e=>({...e})),getNode:t=>e(t)?.internals.userNode,getInternalNode:e,getEdges:()=>{let{edges:e=[]}=t.getState();return e.map(e=>({...e}))},getEdge:e=>t.getState().edgeLookup.get(e),setNodes:r,setEdges:i,addNodes:e=>{let t=Array.isArray(e)?e:[e];n.nodeQueue.push(e=>[...e,...t])},addEdges:e=>{let t=Array.isArray(e)?e:[e];n.edgeQueue.push(e=>[...e,...t])},toObject:()=>{let{nodes:e=[],edges:n=[],transform:r}=t.getState(),[i,a,o]=r;return{nodes:e.map(e=>({...e})),edges:n.map(e=>({...e})),viewport:{x:i,y:a,zoom:o}}},deleteElements:async({nodes:e=[],edges:n=[]})=>{let{nodes:r,edges:i,onNodesDelete:a,onEdgesDelete:o,triggerNodeChanges:s,triggerEdgeChanges:c,onDelete:l,onBeforeDelete:u}=t.getState(),{nodes:d,edges:f}=await Kz({nodesToRemove:e,edgesToRemove:n,nodes:r,edges:i,onBeforeDelete:u}),p=f.length>0,m=d.length>0;if(p){let e=f.map(fU);o?.(f),c(e)}if(m){let e=d.map(fU);a?.(d),s(e)}return(m||p)&&l?.({nodes:d,edges:f}),{deletedNodes:d,deletedEdges:f}},getIntersectingNodes:(e,n=!0,r)=>{let i=oB(e),o=i?e:a(e),s=r!==void 0;return o?(r||t.getState().nodes).filter(r=>{let a=t.getState().nodeLookup.get(r.id);if(a&&!i&&(r.id===e.id||!a.internals.positionAbsolute))return!1;let c=tB(s?r:a),l=aB(c,o);return n&&l>0||l>=c.width*c.height||l>=o.width*o.height}):[]},isNodeIntersecting:(e,t,n=!0)=>{let r=oB(e)?e:a(e);if(!r)return!1;let i=aB(r,t);return n&&i>0||i>=t.width*t.height||i>=r.width*r.height},updateNode:o,updateNodeData:(e,t,n={replace:!1})=>{o(e,e=>{let r=typeof t==`function`?t(e):t;return n.replace?{...e,data:r}:{...e,data:{...e.data,...r}}},n)},updateEdge:s,updateEdgeData:(e,t,n={replace:!1})=>{s(e,e=>{let r=typeof t==`function`?t(e):t;return n.replace?{...e,data:r}:{...e,data:{...e.data,...r}}},n)},getNodesBounds:e=>{let{nodeLookup:n,nodeOrigin:r}=t.getState();return zz(e,{nodeLookup:n,nodeOrigin:r})},getHandleConnections:({type:e,id:n,nodeId:r})=>Array.from(t.getState().connectionLookup.get(`${r}-${e}${n?`-${n}`:``}`)?.values()??[]),getNodeConnections:({type:e,handleId:n,nodeId:r})=>Array.from(t.getState().connectionLookup.get(`${r}${e?n?`-${e}-${n}`:`-${e}`:``}`)?.values()??[]),fitView:async e=>{let r=t.getState().fitViewResolver??SB();return t.setState({fitViewQueued:!0,fitViewOptions:e,fitViewResolver:r}),n.nodeQueue.push(e=>[...e]),r.promise}}},[]);return(0,H.useMemo)(()=>({...i,...e,viewportInitialized:r}),[r])}var EU=e=>e.selected,DU=typeof window<`u`?window:void 0;function OU({deleteKeyCode:e,multiSelectionKeyCode:t}){let n=DH(),{deleteElements:r}=TU(),i=tU(e,{actInsideInputWithModifier:!1}),a=tU(t,{target:DU});(0,H.useEffect)(()=>{if(i){let{edges:e,nodes:t}=n.getState();r({nodes:t.filter(EU),edges:e.filter(EU)}),n.setState({nodesSelectionActive:!1})}},[i]),(0,H.useEffect)(()=>{n.setState({multiSelectionActive:a})},[a])}function kU(e){let t=DH();(0,H.useEffect)(()=>{let n=()=>{if(!e.current||!(e.current.checkVisibility?.()??!0))return!1;let n=EB(e.current);(n.height===0||n.width===0)&&t.getState().onError?.(`004`,wz.error004()),t.setState({width:n.width||500,height:n.height||500})};if(e.current){n(),window.addEventListener(`resize`,n);let t=new ResizeObserver(()=>n());return t.observe(e.current),()=>{window.removeEventListener(`resize`,n),t&&e.current&&t.unobserve(e.current)}}},[])}var AU={position:`absolute`,width:`100%`,height:`100%`,top:0,left:0},jU=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function MU({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:r=!1,panActivationKeyPressed:i,panOnScrollSpeed:a=.5,panOnScrollMode:o=kz.Free,zoomOnDoubleClick:s=!0,panOnDrag:c=!0,defaultViewport:l,translateExtent:u,minZoom:d,maxZoom:f,zoomActivationKeyCode:p,preventScrolling:m=!0,children:h,noWheelClassName:g,noPanClassName:_,onViewportChange:v,isControlledViewport:y,paneClickDistance:b,selectionOnDrag:x}){let S=DH(),C=(0,H.useRef)(null),{userSelectionActive:w,lib:T,connectionInProgress:E}=EH(jU,SH),D=tU(p),O=(0,H.useRef)();kU(C);let k=(0,H.useCallback)(e=>{v?.({x:e[0],y:e[1],zoom:e[2]}),y||S.setState({transform:e})},[v,y]);return(0,H.useEffect)(()=>{if(C.current){O.current=ZV({domNode:C.current,minZoom:d,maxZoom:f,translateExtent:u,viewport:l,onDraggingChange:e=>S.setState(t=>t.paneDragging===e?t:{paneDragging:e}),onPanZoomStart:(e,t)=>{let{onViewportChangeStart:n,onMoveStart:r}=S.getState();r?.(e,t),n?.(t)},onPanZoom:(e,t)=>{let{onViewportChange:n,onMove:r}=S.getState();r?.(e,t),n?.(t)},onPanZoomEnd:(e,t)=>{let{onViewportChangeEnd:n,onMoveEnd:r}=S.getState();r?.(e,t),n?.(t)}});let{x:e,y:t,zoom:n}=O.current.getViewport();return S.setState({panZoom:O.current,transform:[e,t,n],domNode:C.current.closest(`.react-flow`)}),()=>{O.current?.destroy()}}},[]),(0,H.useEffect)(()=>{O.current?.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:r,panActivationKeyPressed:i,panOnScrollSpeed:a,panOnScrollMode:o,zoomOnDoubleClick:s,panOnDrag:c,zoomActivationKeyPressed:D,preventScrolling:m,noPanClassName:_,userSelectionActive:w,noWheelClassName:g,lib:T,onTransformChange:k,connectionInProgress:E,selectionOnDrag:x,paneClickDistance:b})},[e,t,n,r,i,a,o,s,c,D,m,_,w,g,T,k,E,x,b]),(0,U.jsx)(`div`,{className:`react-flow__renderer`,ref:C,style:AU,children:h})}var NU=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function PU(){let{userSelectionActive:e,userSelectionRect:t}=EH(NU,SH);return e&&t?(0,U.jsx)(`div`,{className:`react-flow__selection react-flow__container`,style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}var FU=(e,t)=>n=>{n.target===t.current&&e?.(n)},IU=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,dragging:e.paneDragging,panBy:e.panBy,autoPanSpeed:e.autoPanSpeed});function LU({isSelecting:e,selectionKeyPressed:t,selectionMode:n=Az.Full,panOnDrag:r,autoPanOnSelection:i,paneClickDistance:a,selectionOnDrag:o,onSelectionStart:s,onSelectionEnd:c,onPaneClick:l,onPaneContextMenu:u,onPaneScroll:d,onPaneMouseEnter:f,onPaneMouseMove:p,onPaneMouseLeave:m,children:h}){let g=(0,H.useRef)(0),_=DH(),{userSelectionActive:v,elementsSelectable:y,dragging:b,panBy:x,autoPanSpeed:S}=EH(IU,SH),C=y&&(e||v),w=(0,H.useRef)(null),T=(0,H.useRef)(),E=(0,H.useRef)(new Set),D=(0,H.useRef)(new Set),O=(0,H.useRef)(!1),k=(0,H.useRef)(!1),A=(0,H.useRef)({x:0,y:0}),j=(0,H.useRef)(!1),M=e=>{if(k.current||O.current||_.getState().connection.inProgress){k.current=!1,O.current=!1;return}l?.(e),_.getState().resetSelectedElements(),_.setState({nodesSelectionActive:!1})},N=e=>{if(Array.isArray(r)&&r?.includes(2)){e.preventDefault();return}u?.(e)},P=d?e=>d(e):void 0,F=e=>{k.current&&=(e.stopPropagation(),!1)},I=n=>{if(n.pointerType===`touch`&&r!==!1&&!t)return;let{domNode:i,transform:a}=_.getState();if(T.current=i?.getBoundingClientRect(),!T.current)return;let s=n.target===w.current;if(!s&&n.target.closest(`.nokey`)||!e||!(o&&s||t)||n.button!==0||!n.isPrimary)return;n.target?.setPointerCapture?.(n.pointerId),k.current=!1;let{x:c,y:l}=jB(n.nativeEvent,T.current),u=uB({x:c,y:l},a);_.setState({userSelectionRect:{width:0,height:0,startX:u.x,startY:u.y,x:c,y:l}}),s||(n.stopPropagation(),n.preventDefault())};function L(e,t){let{userSelectionRect:r}=_.getState();if(!r)return;let{transform:i,nodeLookup:a,edgeLookup:o,connectionLookup:s,triggerNodeChanges:c,triggerEdgeChanges:l,defaultEdgeOptions:u}=_.getState(),d={x:r.startX,y:r.startY},{x:f,y:p}=dB(d,i),m={startX:d.x,startY:d.y,x:e<f?e:f,y:t<p?t:p,width:Math.abs(e-f),height:Math.abs(t-p)},h=E.current,g=D.current;E.current=new Set(Vz(a,m,i,n===Az.Partial,!0).map(e=>e.id)),D.current=new Set;let v=u?.selectable??!0;for(let e of E.current){let t=s.get(e);if(t)for(let{edgeId:e}of t.values()){let t=o.get(e);t&&(t.selectable??v)&&D.current.add(e)}}xB(h,E.current)||c(uU(a,E.current,!0)),xB(g,D.current)||l(uU(o,D.current)),_.setState({userSelectionRect:m,userSelectionActive:!0,nodesSelectionActive:!1})}function R(){if(!i||!T.current)return;let[e,t]=Zz(A.current,T.current,S);x({x:e,y:t}).then(e=>{if(!k.current||!e){g.current=requestAnimationFrame(R);return}let{x:t,y:n}=A.current;L(t,n),g.current=requestAnimationFrame(R)})}let ee=()=>{cancelAnimationFrame(g.current),g.current=0,j.current=!1};(0,H.useEffect)(()=>()=>ee(),[]);let te=e=>{let{userSelectionRect:n,transform:r,resetSelectedElements:i}=_.getState();if(!T.current||!n)return;let{x:o,y:c}=jB(e.nativeEvent,T.current);A.current={x:o,y:c};let l=dB({x:n.startX,y:n.startY},r);if(!k.current){let n=t?0:a;if(Math.hypot(o-l.x,c-l.y)<=n)return;i(),s?.(e)}k.current=!0,j.current||=(R(),!0),L(o,c)},z=e=>{if(!C){e.target===w.current&&_.getState().connection.inProgress&&(O.current=!0);return}e.button===0&&(e.target?.releasePointerCapture?.(e.pointerId),!v&&e.target===w.current&&_.getState().userSelectionRect&&M?.(e),_.setState({userSelectionActive:!1,userSelectionRect:null}),k.current&&(c?.(e),_.setState({nodesSelectionActive:E.current.size>0})),ee())},B=e=>{e.target?.releasePointerCapture?.(e.pointerId),ee()},V=r===!0||Array.isArray(r)&&r.includes(0);return(0,U.jsxs)(`div`,{className:VN([`react-flow__pane`,{draggable:V,dragging:b,selection:e}]),onClick:C?void 0:FU(M,w),onContextMenu:FU(N,w),onWheel:FU(P,w),onPointerEnter:C?void 0:f,onPointerMove:C?te:p,onPointerUp:z,onPointerCancel:C?B:void 0,onPointerDownCapture:C?I:void 0,onClickCapture:C?F:void 0,onPointerLeave:m,ref:w,style:AU,children:[h,(0,U.jsx)(PU,{})]})}function RU({id:e,store:t,unselect:n=!1,nodeRef:r}){let{addSelectedNodes:i,unselectNodesAndEdges:a,multiSelectionActive:o,nodeLookup:s,onError:c}=t.getState(),l=s.get(e);if(!l){c?.(`012`,wz.error012(e));return}t.setState({nodesSelectionActive:!1}),l.selected?(n||l.selected&&o)&&(a({nodes:[l],edges:[]}),requestAnimationFrame(()=>r?.current?.blur())):i([e])}function zU({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:r,nodeId:i,isSelectable:a,nodeClickDistance:o}){let s=DH(),[c,l]=(0,H.useState)(!1),u=(0,H.useRef)();return(0,H.useEffect)(()=>{if(!t)return u.current=EV({getStoreItems:()=>s.getState(),onNodeMouseDown:t=>{RU({id:t,store:s,nodeRef:e})},onDragStart:()=>{l(!0)},onDragStop:()=>{l(!1)}}),()=>{u.current?.destroy(),u.current=void 0}},[t,s,e]),(0,H.useEffect)(()=>{t||!e.current||!u.current||u.current.update({noDragClassName:n,handleSelector:r,domNode:e.current,isSelectable:a,nodeId:i,nodeClickDistance:o})},[n,r,t,a,e,i,o]),c}var BU=e=>t=>t.selected&&(t.draggable||e&&t.draggable===void 0);function VU(){let e=DH();return(0,H.useCallback)(t=>{let{nodeExtent:n,snapToGrid:r,snapGrid:i,nodesDraggable:a,onError:o,updateNodePositions:s,nodeLookup:c,nodeOrigin:l}=e.getState(),u=new Map,d=BU(a),f=r?i[0]:5,p=r?i[1]:5,m=t.direction.x*f*t.factor,h=t.direction.y*p*t.factor;for(let[,e]of c){if(!d(e))continue;let t={x:e.internals.positionAbsolute.x+m,y:e.internals.positionAbsolute.y+h};r&&(t=lB(t,i));let{position:a,positionAbsolute:s}=Gz({nodeId:e.id,nextPosition:t,nodeLookup:c,nodeExtent:n,nodeOrigin:l,onError:o});e.position=a,e.internals.positionAbsolute=s,u.set(e.id,e)}s(u)},[])}var HU=(0,H.createContext)(null),UU=HU.Provider;HU.Consumer;var WU=()=>(0,H.useContext)(HU),GU=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),KU=(0,H.createContext)(null);function qU({children:e}){let t=EH(GU,SH);return(0,U.jsx)(KU.Provider,{value:t,children:e})}function JU(){let e=(0,H.useContext)(KU);if(!e)throw Error(`useHandleConfig must be used within a HandleConfigProvider`);return e}var YU={connectingFrom:!1,connectingTo:!1,clickConnecting:!1,isPossibleEndHandle:!0,connectionInProcess:!1,clickConnectionInProcess:!1,valid:!1},XU=(e,t,n)=>r=>{let{connectionClickStartHandle:i,connectionMode:a,connection:o}=r,{fromHandle:s,toHandle:c,isValid:l}=o;if(!s&&!i)return YU;let u=c?.nodeId===e&&c?.id===t&&c?.type===n;return{connectingFrom:s?.nodeId===e&&s?.id===t&&s?.type===n,connectingTo:u,clickConnecting:i?.nodeId===e&&i?.id===t&&i?.type===n,isPossibleEndHandle:a===Oz.Strict?s?.type!==n:e!==s?.nodeId||t!==s?.id,connectionInProcess:!!s,clickConnectionInProcess:!!i,valid:u&&l}};function ZU({type:e=`source`,position:t=$.Top,isValidConnection:n,isConnectable:r=!0,isConnectableStart:i=!0,isConnectableEnd:a=!0,id:o,onConnect:s,children:c,className:l,onMouseDown:u,onTouchStart:d,...f},p){let m=o||null,h=e===`target`,g=DH(),_=WU(),{connectOnClick:v,noPanClassName:y,rfId:b}=JU(),{connectingFrom:x,connectingTo:S,clickConnecting:C,isPossibleEndHandle:w,connectionInProcess:T,clickConnectionInProcess:E,valid:D}=EH(XU(_,m,e),SH);_||g.getState().onError?.(`010`,wz.error010());let O=e=>{let{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:r}=g.getState(),i={...t,...e};if(r){let{edges:e,setEdges:t,onError:n}=g.getState();t(mU(i,e,{onError:n}))}n?.(i),s?.(i)},k=e=>{if(!_)return;let t=AB(e.nativeEvent);if(i&&(t&&e.button===0||!t)){let t=g.getState();IV.onPointerDown(e.nativeEvent,{handleDomNode:e.currentTarget,autoPanOnConnect:t.autoPanOnConnect,connectionMode:t.connectionMode,connectionRadius:t.connectionRadius,domNode:t.domNode,nodeLookup:t.nodeLookup,lib:t.lib,isTarget:h,handleId:m,nodeId:_,flowId:t.rfId,panBy:t.panBy,cancelConnection:t.cancelConnection,onConnectStart:t.onConnectStart,onConnectEnd:(...e)=>g.getState().onConnectEnd?.(...e),updateConnection:t.updateConnection,onConnect:O,isValidConnection:n||((...e)=>g.getState().isValidConnection?.(...e)??!0),getTransform:()=>g.getState().transform,getFromHandle:()=>g.getState().connection.fromHandle,autoPanSpeed:t.autoPanSpeed,dragThreshold:t.connectionDragThreshold})}t?u?.(e):d?.(e)};return(0,U.jsx)(`div`,{"data-handleid":m,"data-nodeid":_,"data-handlepos":t,"data-id":`${b}-${_}-${m}-${e}`,className:VN([`react-flow__handle`,`react-flow__handle-${t}`,`nodrag`,y,l,{source:!h,target:h,connectable:r,connectablestart:i,connectableend:a,clickconnecting:C,connectingfrom:x,connectingto:S,valid:D,connectionindicator:r&&(!T||w)&&(T||E?a:i)}]),onMouseDown:k,onTouchStart:k,onClick:v?t=>{let{onClickConnectStart:r,onClickConnectEnd:a,connectionClickStartHandle:o,connectionMode:s,isValidConnection:c,lib:l,rfId:u,nodeLookup:d,connection:f}=g.getState();if(!_||!o&&!i)return;if(!o){r?.(t.nativeEvent,{nodeId:_,handleId:m,handleType:e}),g.setState({connectionClickStartHandle:{nodeId:_,type:e,id:m}});return}let p=DB(t.target),h=n||c,{connection:v,isValid:y}=IV.isValid(t.nativeEvent,{handle:{nodeId:_,id:m,type:e},connectionMode:s,fromNodeId:o.nodeId,fromHandleId:o.id||null,fromType:o.type,isValidConnection:h,flowId:u,doc:p,lib:l,nodeLookup:d});y&&v&&O(v);let b=structuredClone(f);delete b.inProgress,b.toPosition=b.toHandle?b.toHandle.position:null,a?.(t,b),g.setState({connectionClickStartHandle:null})}:void 0,ref:p,...f,children:c})}var QU=(0,H.memo)(_U(ZU));function $U({data:e,isConnectable:t,sourcePosition:n=$.Bottom}){return(0,U.jsxs)(U.Fragment,{children:[e?.label,(0,U.jsx)(QU,{type:`source`,position:n,isConnectable:t})]})}function eW({data:e,isConnectable:t,targetPosition:n=$.Top,sourcePosition:r=$.Bottom}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(QU,{type:`target`,position:n,isConnectable:t}),e?.label,(0,U.jsx)(QU,{type:`source`,position:r,isConnectable:t})]})}function tW(){return null}function nW({data:e,isConnectable:t,targetPosition:n=$.Top}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(QU,{type:`target`,position:n,isConnectable:t}),e?.label]})}var rW={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},iW={input:$U,default:eW,output:nW,group:tW};function aW(e){return e.internals.handleBounds===void 0?{width:e.width??e.initialWidth??e.style?.width,height:e.height??e.initialHeight??e.style?.height}:{width:e.width??e.style?.width,height:e.height??e.style?.height}}var oW=e=>{let{width:t,height:n,x:r,y:i}=Bz(e.nodeLookup,{filter:e=>!!e.selected});return{width:sB(t)?t:null,height:sB(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${r}px,${i}px)`}};function sW({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let r=DH(),{width:i,height:a,transformString:o,userSelectionActive:s}=EH(oW,SH),c=VU(),l=(0,H.useRef)(null);(0,H.useEffect)(()=>{n||l.current?.focus({preventScroll:!0})},[n]);let u=!s&&i!==null&&a!==null;if(zU({nodeRef:l,disabled:!u}),!u)return null;let d=e?t=>{e(t,r.getState().nodes.filter(e=>e.selected))}:void 0;return(0,U.jsx)(`div`,{className:VN([`react-flow__nodesselection`,`react-flow__container`,t]),style:{transform:o},children:(0,U.jsx)(`div`,{ref:l,className:`react-flow__nodesselection-rect`,onContextMenu:d,tabIndex:n?void 0:-1,onKeyDown:n?void 0:e=>{Object.prototype.hasOwnProperty.call(rW,e.key)&&(e.preventDefault(),c({direction:rW[e.key],factor:e.shiftKey?4:1}))},style:{width:i,height:a}})})}var cW=typeof window<`u`?window:void 0,lW=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function uW({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,paneClickDistance:s,deleteKeyCode:c,selectionKeyCode:l,selectionOnDrag:u,selectionMode:d,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:m,panActivationKeyCode:h,zoomActivationKeyCode:g,elementsSelectable:_,zoomOnScroll:v,zoomOnPinch:y,panOnScroll:b,panOnScrollSpeed:x,panOnScrollMode:S,zoomOnDoubleClick:C,panOnDrag:w,autoPanOnSelection:T,defaultViewport:E,translateExtent:D,minZoom:O,maxZoom:k,preventScrolling:A,onSelectionContextMenu:j,noWheelClassName:M,noPanClassName:N,disableKeyboardA11y:P,onViewportChange:F,isControlledViewport:I}){let{nodesSelectionActive:L,userSelectionActive:R}=EH(lW,SH),ee=tU(l,{target:cW}),te=tU(h,{target:cW}),z=te||w,B=te||b,V=u&&z!==!0,ne=ee||R||V;return OU({deleteKeyCode:c,multiSelectionKeyCode:m}),(0,U.jsx)(MU,{onPaneContextMenu:a,elementsSelectable:_,zoomOnScroll:v,zoomOnPinch:y,panOnScroll:B,panActivationKeyPressed:te,panOnScrollSpeed:x,panOnScrollMode:S,zoomOnDoubleClick:C,panOnDrag:!ee&&z,defaultViewport:E,translateExtent:D,minZoom:O,maxZoom:k,zoomActivationKeyCode:g,preventScrolling:A,noWheelClassName:M,noPanClassName:N,onViewportChange:F,isControlledViewport:I,paneClickDistance:s,selectionOnDrag:V,children:(0,U.jsxs)(LU,{onSelectionStart:f,onSelectionEnd:p,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:r,onPaneMouseLeave:i,onPaneContextMenu:a,onPaneScroll:o,panOnDrag:z,autoPanOnSelection:T,isSelecting:!!ne,selectionMode:d,selectionKeyPressed:ee,paneClickDistance:s,selectionOnDrag:V,children:[e,L&&(0,U.jsx)(sW,{onSelectionContextMenu:j,noPanClassName:N,disableKeyboardA11y:P})]})})}uW.displayName=`FlowRenderer`;var dW=(0,H.memo)(uW),fW=e=>t=>e?Vz(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(e=>e.id):Array.from(t.nodeLookup.keys());function pW(e){return EH((0,H.useCallback)(fW(e),[e]),SH)}var mW=e=>e.updateNodeInternals;function hW(){let e=EH(mW),[t]=(0,H.useState)(()=>typeof ResizeObserver>`u`?null:new ResizeObserver(t=>{let n=new Map;t.forEach(e=>{let t=e.target.getAttribute(`data-id`);n.set(t,{id:t,nodeElement:e.target,force:!0})}),e(n)}));return(0,H.useEffect)(()=>()=>{t?.disconnect()},[t]),t}function gW({node:e,nodeType:t,hasDimensions:n,resizeObserver:r}){let i=DH(),a=(0,H.useRef)(null),o=(0,H.useRef)(null),s=(0,H.useRef)(e.sourcePosition),c=(0,H.useRef)(e.targetPosition),l=(0,H.useRef)(t),u=n&&!!e.internals.handleBounds;return(0,H.useEffect)(()=>{a.current&&!e.hidden&&(!u||o.current!==a.current)&&(o.current&&r?.unobserve(o.current),r?.observe(a.current),o.current=a.current)},[u,e.hidden]),(0,H.useEffect)(()=>()=>{o.current&&=(r?.unobserve(o.current),null)},[]),(0,H.useEffect)(()=>{if(a.current){let n=l.current!==t,r=s.current!==e.sourcePosition,o=c.current!==e.targetPosition;(n||r||o)&&(l.current=t,s.current=e.sourcePosition,c.current=e.targetPosition,i.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:a.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),a}function _W({id:e,onClick:t,onMouseEnter:n,onMouseMove:r,onMouseLeave:i,onContextMenu:a,onDoubleClick:o,nodesDraggable:s,elementsSelectable:c,nodesConnectable:l,nodesFocusable:u,resizeObserver:d,noDragClassName:f,noPanClassName:p,disableKeyboardA11y:m,rfId:h,nodeTypes:g,nodeClickDistance:_,onError:v}){let{node:y,internals:b,isParent:x}=EH(t=>{let n=t.nodeLookup.get(e),r=t.parentLookup.has(e);return{node:n,internals:n.internals,isParent:r}},SH),S=y.type||`default`,C=g?.[S]||iW[S];C===void 0&&(v?.(`003`,wz.error003(S)),S=`default`,C=g?.default||iW.default);let w=!!(y.draggable||s&&y.draggable===void 0),T=!!(y.selectable||c&&y.selectable===void 0),E=!!(y.connectable||l&&y.connectable===void 0),D=!!(y.focusable||u&&y.focusable===void 0),O=DH(),k=yB(y),A=gW({node:y,nodeType:S,hasDimensions:k,resizeObserver:d}),j=zU({nodeRef:A,disabled:y.hidden||!w,noDragClassName:f,handleSelector:y.dragHandle,nodeId:e,isSelectable:T,nodeClickDistance:_}),M=VU();if(y.hidden)return null;let N=vB(y),P=aW(y),F=T||w||t||n||r||i,I=n?e=>n(e,{...b.userNode}):void 0,L=r?e=>r(e,{...b.userNode}):void 0,R=i?e=>i(e,{...b.userNode}):void 0,ee=a?e=>a(e,{...b.userNode}):void 0,te=o?e=>o(e,{...b.userNode}):void 0,z=n=>{let{selectNodesOnDrag:r,nodeDragThreshold:i}=O.getState();T&&(!r||!w||i>0)&&RU({id:e,store:O,nodeRef:A}),t&&t(n,{...b.userNode})},B=t=>{if(!(kB(t.nativeEvent)||m)){if(Ez.includes(t.key)&&T){let n=t.key===`Escape`;RU({id:e,store:O,unselect:n,nodeRef:A})}else if(w&&y.selected&&Object.prototype.hasOwnProperty.call(rW,t.key)){t.preventDefault();let{ariaLabelConfig:e}=O.getState();O.setState({ariaLiveMessage:e[`node.a11yDescription.ariaLiveMessage`]({direction:t.key.replace(`Arrow`,``).toLowerCase(),x:~~b.positionAbsolute.x,y:~~b.positionAbsolute.y})}),M({direction:rW[t.key],factor:t.shiftKey?4:1})}}},V=()=>{if(m||!A.current?.matches(`:focus-visible`))return;let{transform:t,width:n,height:r,autoPanOnNodeFocus:i,setCenter:a}=O.getState();i&&(Vz(new Map([[e,y]]),{x:0,y:0,width:n,height:r},t,!0).length>0||a(y.position.x+N.width/2,y.position.y+N.height/2,{zoom:t[2]}))};return(0,U.jsx)(`div`,{className:VN([`react-flow__node`,`react-flow__node-${S}`,{[p]:w},y.className,{selected:y.selected,selectable:T,parent:x,draggable:w,dragging:j}]),ref:A,style:{zIndex:b.z,transform:`translate(${b.positionAbsolute.x}px,${b.positionAbsolute.y}px)`,pointerEvents:F?`all`:`none`,visibility:k?`visible`:`hidden`,...y.style,...P},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:I,onMouseMove:L,onMouseLeave:R,onContextMenu:ee,onClick:z,onDoubleClick:te,onKeyDown:D?B:void 0,tabIndex:D?0:void 0,onFocus:D?V:void 0,role:y.ariaRole??(D?`group`:void 0),"aria-roledescription":`node`,"aria-describedby":m?void 0:`${AH}-${h}`,"aria-label":y.ariaLabel,...y.domAttributes,children:(0,U.jsx)(UU,{value:e,children:(0,U.jsx)(C,{id:e,data:y.data,type:S,positionAbsoluteX:b.positionAbsolute.x,positionAbsoluteY:b.positionAbsolute.y,selected:y.selected??!1,selectable:T,draggable:w,deletable:y.deletable??!0,isConnectable:E,sourcePosition:y.sourcePosition,targetPosition:y.targetPosition,dragging:j,dragHandle:y.dragHandle,zIndex:b.z,parentId:y.parentId,...N})})})}var vW=(0,H.memo)(_W),yW=e=>({nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function bW(e){let{nodesConnectable:t,nodesFocusable:n,elementsSelectable:r,onError:i}=EH(yW,SH),a=pW(e.onlyRenderVisibleElements),o=hW();return(0,U.jsx)(`div`,{className:`react-flow__nodes`,style:AU,children:a.map(a=>(0,U.jsx)(vW,{id:a,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:o,nodesDraggable:e.nodesDraggable??!0,nodesConnectable:t,nodesFocusable:n,elementsSelectable:r,nodeClickDistance:e.nodeClickDistance,onError:i},a))})}bW.displayName=`NodeRenderer`;var xW=(0,H.memo)(bW);function SW(e){return EH((0,H.useCallback)(t=>{if(!e)return t.edges.map(e=>e.id);let n=[];if(t.width&&t.height)for(let e of t.edges){let r=t.nodeLookup.get(e.source),i=t.nodeLookup.get(e.target);r&&i&&zB({sourceNode:r,targetNode:i,width:t.width,height:t.height,transform:t.transform})&&n.push(e.id)}return n},[e]),SH)}var CW=({color:e=`none`,strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e}};return(0,U.jsx)(`polyline`,{className:`arrow`,style:n,strokeLinecap:`round`,fill:`none`,strokeLinejoin:`round`,points:`-5,-4 0,0 -5,4`})},wW=({color:e=`none`,strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e,fill:e}};return(0,U.jsx)(`polyline`,{className:`arrowclosed`,style:n,strokeLinecap:`round`,strokeLinejoin:`round`,points:`-5,-4 0,0 -5,4 -5,-4`})},TW={[Nz.Arrow]:CW,[Nz.ArrowClosed]:wW};function EW(e){let t=DH();return(0,H.useMemo)(()=>Object.prototype.hasOwnProperty.call(TW,e)?TW[e]:(t.getState().onError?.(`009`,wz.error009(e)),null),[e])}var DW=({id:e,type:t,color:n,width:r=12.5,height:i=12.5,markerUnits:a=`strokeWidth`,strokeWidth:o,orient:s=`auto-start-reverse`})=>{let c=EW(t);return c?(0,U.jsx)(`marker`,{className:`react-flow__arrowhead`,id:e,markerWidth:`${r}`,markerHeight:`${i}`,viewBox:`-10 -10 20 20`,markerUnits:a,orient:s,refX:`0`,refY:`0`,children:(0,U.jsx)(c,{color:n,strokeWidth:o})}):null},OW=({defaultColor:e,rfId:t})=>{let n=EH(e=>e.edges),r=EH(e=>e.defaultEdgeOptions),i=(0,H.useMemo)(()=>nV(n,{id:t,defaultColor:e,defaultMarkerStart:r?.markerStart,defaultMarkerEnd:r?.markerEnd}),[n,r,t,e]);return i.length?(0,U.jsx)(`svg`,{className:`react-flow__marker`,"aria-hidden":`true`,children:(0,U.jsx)(`defs`,{children:i.map(e=>(0,U.jsx)(DW,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id))})}):null};OW.displayName=`MarkerDefinitions`;var kW=(0,H.memo)(OW);function AW({x:e,y:t,label:n,labelStyle:r,labelShowBg:i=!0,labelBgStyle:a,labelBgPadding:o=[2,4],labelBgBorderRadius:s=2,children:c,className:l,...u}){let[d,f]=(0,H.useState)({x:1,y:0,width:0,height:0}),p=VN([`react-flow__edge-textwrapper`,l]),m=(0,H.useRef)(null);return(0,H.useEffect)(()=>{if(m.current){let e=m.current.getBBox();f({x:e.x,y:e.y,width:e.width,height:e.height})}},[n]),n?(0,U.jsxs)(`g`,{transform:`translate(${e-d.width/2} ${t-d.height/2})`,className:p,visibility:d.width?`visible`:`hidden`,...u,children:[i&&(0,U.jsx)(`rect`,{width:d.width+2*o[0],x:-o[0],y:-o[1],height:d.height+2*o[1],className:`react-flow__edge-textbg`,style:a,rx:s,ry:s}),(0,U.jsx)(`text`,{className:`react-flow__edge-text`,y:d.height/2,dy:`0.3em`,ref:m,style:r,children:n}),c]}):null}AW.displayName=`EdgeText`;var jW=(0,H.memo)(AW);function MW({path:e,labelX:t,labelY:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:c,interactionWidth:l=20,...u}){return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(`path`,{...u,d:e,fill:`none`,className:VN([`react-flow__edge-path`,u.className])}),l?(0,U.jsx)(`path`,{d:e,fill:`none`,strokeOpacity:0,strokeWidth:l,className:`react-flow__edge-interaction`}):null,r&&sB(t)&&sB(n)?(0,U.jsx)(jW,{x:t,y:n,label:r,labelStyle:i,labelShowBg:a,labelBgStyle:o,labelBgPadding:s,labelBgBorderRadius:c}):null]})}function NW({pos:e,x1:t,y1:n,x2:r,y2:i}){return e===$.Left||e===$.Right?[.5*(t+r),n]:[t,.5*(n+i)]}function PW({sourceX:e,sourceY:t,sourcePosition:n=$.Bottom,targetX:r,targetY:i,targetPosition:a=$.Top}){let[o,s]=NW({pos:n,x1:e,y1:t,x2:r,y2:i}),[c,l]=NW({pos:a,x1:r,y1:i,x2:e,y2:t}),[u,d,f,p]=NB({sourceX:e,sourceY:t,targetX:r,targetY:i,sourceControlX:o,sourceControlY:s,targetControlX:c,targetControlY:l});return[`M${e},${t} C${o},${s} ${c},${l} ${r},${i}`,u,d,f,p]}function FW(e){return(0,H.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o,targetPosition:s,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,interactionWidth:_})=>{let[v,y,b]=PW({sourceX:n,sourceY:r,sourcePosition:o,targetX:i,targetY:a,targetPosition:s}),x=e.isInternal?void 0:t;return(0,U.jsx)(MW,{id:x,path:v,labelX:y,labelY:b,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,interactionWidth:_})})}var IW=FW({isInternal:!1}),LW=FW({isInternal:!0});IW.displayName=`SimpleBezierEdge`,LW.displayName=`SimpleBezierEdgeInternal`;function RW(e){return(0,H.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,sourcePosition:p=$.Bottom,targetPosition:m=$.Top,markerEnd:h,markerStart:g,pathOptions:_,interactionWidth:v})=>{let[y,b,x]=YB({sourceX:n,sourceY:r,sourcePosition:p,targetX:i,targetY:a,targetPosition:m,borderRadius:_?.borderRadius,offset:_?.offset,stepPosition:_?.stepPosition}),S=e.isInternal?void 0:t;return(0,U.jsx)(MW,{id:S,path:y,labelX:b,labelY:x,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:h,markerStart:g,interactionWidth:v})})}var zW=RW({isInternal:!1}),BW=RW({isInternal:!0});zW.displayName=`SmoothStepEdge`,BW.displayName=`SmoothStepEdgeInternal`;function VW(e){return(0,H.memo)(({id:t,...n})=>{let r=e.isInternal?void 0:t;return(0,U.jsx)(zW,{...n,id:r,pathOptions:(0,H.useMemo)(()=>({borderRadius:0,offset:n.pathOptions?.offset}),[n.pathOptions?.offset])})})}var HW=VW({isInternal:!1}),UW=VW({isInternal:!0});HW.displayName=`StepEdge`,UW.displayName=`StepEdgeInternal`;function WW(e){return(0,H.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:h})=>{let[g,_,v]=UB({sourceX:n,sourceY:r,targetX:i,targetY:a}),y=e.isInternal?void 0:t;return(0,U.jsx)(MW,{id:y,path:g,labelX:_,labelY:v,label:o,labelStyle:s,labelShowBg:c,labelBgStyle:l,labelBgPadding:u,labelBgBorderRadius:d,style:f,markerEnd:p,markerStart:m,interactionWidth:h})})}var GW=WW({isInternal:!1}),KW=WW({isInternal:!0});GW.displayName=`StraightEdge`,KW.displayName=`StraightEdgeInternal`;function qW(e){return(0,H.memo)(({id:t,sourceX:n,sourceY:r,targetX:i,targetY:a,sourcePosition:o=$.Bottom,targetPosition:s=$.Top,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,pathOptions:_,interactionWidth:v})=>{let[y,b,x]=IB({sourceX:n,sourceY:r,sourcePosition:o,targetX:i,targetY:a,targetPosition:s,curvature:_?.curvature}),S=e.isInternal?void 0:t;return(0,U.jsx)(MW,{id:S,path:y,labelX:b,labelY:x,label:c,labelStyle:l,labelShowBg:u,labelBgStyle:d,labelBgPadding:f,labelBgBorderRadius:p,style:m,markerEnd:h,markerStart:g,interactionWidth:v})})}var JW=qW({isInternal:!1}),YW=qW({isInternal:!0});JW.displayName=`BezierEdge`,YW.displayName=`BezierEdgeInternal`;var XW={default:YW,straight:KW,step:UW,smoothstep:BW,simplebezier:LW},ZW={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null,zIndex:void 0},QW=(e,t,n)=>n===$.Left?e-t:n===$.Right?e+t:e,$W=(e,t,n)=>n===$.Top?e-t:n===$.Bottom?e+t:e,eG=`react-flow__edgeupdater`;function tG({position:e,centerX:t,centerY:n,radius:r=10,onMouseDown:i,onMouseEnter:a,onMouseOut:o,type:s}){return(0,U.jsx)(`circle`,{onMouseDown:i,onMouseEnter:a,onMouseOut:o,className:VN([eG,`${eG}-${s}`]),cx:QW(t,r,e),cy:$W(n,r,e),r,stroke:`transparent`,fill:`transparent`})}function nG({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:r,sourceY:i,targetX:a,targetY:o,sourcePosition:s,targetPosition:c,onReconnect:l,onReconnectStart:u,onReconnectEnd:d,setReconnecting:f,setUpdateHover:p}){let m=DH(),h=(e,t)=>{if(e.button!==0)return;let{autoPanOnConnect:r,domNode:i,connectionMode:a,connectionRadius:o,lib:s,onConnectStart:c,cancelConnection:p,nodeLookup:h,rfId:g,panBy:_,updateConnection:v}=m.getState(),y=t.type===`target`;IV.onPointerDown(e.nativeEvent,{autoPanOnConnect:r,connectionMode:a,connectionRadius:o,domNode:i,handleId:t.id,nodeId:t.nodeId,nodeLookup:h,isTarget:y,edgeUpdaterType:t.type,lib:s,flowId:g,cancelConnection:p,panBy:_,isValidConnection:(...e)=>m.getState().isValidConnection?.(...e)??!0,onConnect:e=>l?.(n,e),onConnectStart:(r,i)=>{f(!0),u?.(e,n,t.type),c?.(r,i)},onConnectEnd:(...e)=>m.getState().onConnectEnd?.(...e),onReconnectEnd:(e,r)=>{f(!1),d?.(e,n,t.type,r)},updateConnection:v,getTransform:()=>m.getState().transform,getFromHandle:()=>m.getState().connection.fromHandle,dragThreshold:m.getState().connectionDragThreshold,handleDomNode:e.currentTarget})},g=e=>h(e,{nodeId:n.target,id:n.targetHandle??null,type:`target`}),_=e=>h(e,{nodeId:n.source,id:n.sourceHandle??null,type:`source`}),v=()=>p(!0),y=()=>p(!1);return(0,U.jsxs)(U.Fragment,{children:[(e===!0||e===`source`)&&(0,U.jsx)(tG,{position:s,centerX:r,centerY:i,radius:t,onMouseDown:g,onMouseEnter:v,onMouseOut:y,type:`source`}),(e===!0||e===`target`)&&(0,U.jsx)(tG,{position:c,centerX:a,centerY:o,radius:t,onMouseDown:_,onMouseEnter:v,onMouseOut:y,type:`target`})]})}function rG({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:r,onClick:i,onDoubleClick:a,onContextMenu:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,rfId:m,edgeTypes:h,noPanClassName:g,onError:_,disableKeyboardA11y:v}){let y=EH(t=>t.edgeLookup.get(e)),b=EH(e=>e.defaultEdgeOptions);y=b?{...b,...y}:y;let x=y.type||`default`,S=h?.[x]||XW[x];S===void 0&&(_?.(`011`,wz.error011(x)),x=`default`,S=h?.default||XW.default);let C=!!(y.focusable||t&&y.focusable===void 0),w=d!==void 0&&(y.reconnectable||n&&y.reconnectable===void 0),T=!!(y.selectable||r&&y.selectable===void 0),E=(0,H.useRef)(null),[D,O]=(0,H.useState)(!1),[k,A]=(0,H.useState)(!1),j=DH(),{zIndex:M=y.zIndex,sourceX:N,sourceY:P,targetX:F,targetY:I,sourcePosition:L,targetPosition:R}=EH((0,H.useCallback)(t=>{let n=t.nodeLookup.get(y.source),r=t.nodeLookup.get(y.target);if(!n||!r)return ZW;let i=ZB({id:e,sourceNode:n,targetNode:r,sourceHandle:y.sourceHandle||null,targetHandle:y.targetHandle||null,connectionMode:t.connectionMode,onError:_}),a=RB({selected:y.selected,zIndex:y.zIndex,sourceNode:n,targetNode:r,elevateOnSelect:t.elevateEdgesOnSelect,zIndexMode:t.zIndexMode});return{...i||ZW,zIndex:a}},[y.source,y.target,y.sourceHandle,y.targetHandle,y.selected,y.zIndex,_]),SH),ee=(0,H.useMemo)(()=>y.markerStart?`url('#${tV(y.markerStart,m)}')`:void 0,[y.markerStart,m]),te=(0,H.useMemo)(()=>y.markerEnd?`url('#${tV(y.markerEnd,m)}')`:void 0,[y.markerEnd,m]);if(y.hidden||N===null||P===null||F===null||I===null)return null;let z=t=>{let{addSelectedEdges:n,unselectNodesAndEdges:r,multiSelectionActive:a}=j.getState();T&&(j.setState({nodesSelectionActive:!1}),y.selected&&a?(r({nodes:[],edges:[y]}),E.current?.blur()):n([e])),i&&i(t,y)},B=a?e=>{a(e,{...y})}:void 0,V=o?e=>{o(e,{...y})}:void 0,ne=s?e=>{s(e,{...y})}:void 0,re=c?e=>{c(e,{...y})}:void 0,ie=l?e=>{l(e,{...y})}:void 0;return(0,U.jsx)(`svg`,{style:{zIndex:M},children:(0,U.jsxs)(`g`,{className:VN([`react-flow__edge`,`react-flow__edge-${x}`,y.className,g,{selected:y.selected,animated:y.animated,inactive:!T&&!i,updating:D,selectable:T}]),onClick:z,onDoubleClick:B,onContextMenu:V,onMouseEnter:ne,onMouseMove:re,onMouseLeave:ie,onKeyDown:C?t=>{if(!v&&Ez.includes(t.key)&&T){let{unselectNodesAndEdges:n,addSelectedEdges:r}=j.getState();t.key===`Escape`?(E.current?.blur(),n({edges:[y]})):r([e])}}:void 0,tabIndex:C?0:void 0,role:y.ariaRole??(C?`group`:`img`),"aria-roledescription":`edge`,"data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":y.ariaLabel===null?void 0:y.ariaLabel||`Edge from ${y.source} to ${y.target}`,"aria-describedby":C?`${jH}-${m}`:void 0,ref:E,...y.domAttributes,children:[!k&&(0,U.jsx)(S,{id:e,source:y.source,target:y.target,type:y.type,selected:y.selected,animated:y.animated,selectable:T,deletable:y.deletable??!0,label:y.label,labelStyle:y.labelStyle,labelShowBg:y.labelShowBg,labelBgStyle:y.labelBgStyle,labelBgPadding:y.labelBgPadding,labelBgBorderRadius:y.labelBgBorderRadius,sourceX:N,sourceY:P,targetX:F,targetY:I,sourcePosition:L,targetPosition:R,data:y.data,style:y.style,sourceHandleId:y.sourceHandle,targetHandleId:y.targetHandle,markerStart:ee,markerEnd:te,pathOptions:`pathOptions`in y?y.pathOptions:void 0,interactionWidth:y.interactionWidth}),w&&(0,U.jsx)(nG,{edge:y,isReconnectable:w,reconnectRadius:u,onReconnect:d,onReconnectStart:f,onReconnectEnd:p,sourceX:N,sourceY:P,targetX:F,targetY:I,sourcePosition:L,targetPosition:R,setUpdateHover:O,setReconnecting:A})]})})}var iG=(0,H.memo)(rG),aG=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function oG({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:r,noPanClassName:i,onReconnect:a,onEdgeContextMenu:o,onEdgeMouseEnter:s,onEdgeMouseMove:c,onEdgeMouseLeave:l,onEdgeClick:u,reconnectRadius:d,onEdgeDoubleClick:f,onReconnectStart:p,onReconnectEnd:m,disableKeyboardA11y:h}){let{edgesFocusable:g,edgesReconnectable:_,elementsSelectable:v,onError:y}=EH(aG,SH),b=SW(t);return(0,U.jsxs)(`div`,{className:`react-flow__edges`,children:[(0,U.jsx)(kW,{defaultColor:e,rfId:n}),b.map(e=>(0,U.jsx)(iG,{id:e,edgesFocusable:g,edgesReconnectable:_,elementsSelectable:v,noPanClassName:i,onReconnect:a,onContextMenu:o,onMouseEnter:s,onMouseMove:c,onMouseLeave:l,onClick:u,reconnectRadius:d,onDoubleClick:f,onReconnectStart:p,onReconnectEnd:m,rfId:n,onError:y,edgeTypes:r,disableKeyboardA11y:h},e))]})}oG.displayName=`EdgeRenderer`;var sG=(0,H.memo)(oG),cG=e=>`translate(${e[0]}px,${e[1]}px) scale(${e[2]})`;function lG({children:e}){let t=DH(),n=(0,H.useRef)(null),[r]=(0,H.useState)(()=>t.getState().transform);return vU(()=>{let e=null,r=()=>{let r=t.getState().transform;e&&r[0]===e[0]&&r[1]===e[1]&&r[2]===e[2]||(e=r,n.current&&(n.current.style.transform=cG(r)))};return r(),t.subscribe(r)},[t]),(0,U.jsx)(`div`,{ref:n,className:`react-flow__viewport xyflow__viewport react-flow__container`,style:{transform:cG(r)},children:e})}function uG(e){let t=TU(),n=(0,H.useRef)(!1);(0,H.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}var dG=e=>e.panZoom?.syncViewport;function fG(e){let t=EH(dG),n=DH();return(0,H.useEffect)(()=>{e&&(t?.(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t]),null}function pG(e){return e.connection.inProgress?{...e.connection,to:uB(e.connection.to,e.transform)}:{...e.connection}}function mG(e){return e?t=>e(pG(t)):pG}function hG(e){return EH(mG(e),SH)}var gG=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function _G({containerStyle:e,style:t,type:n,component:r}){let{nodesConnectable:i,width:a,height:o,isValid:s,inProgress:c}=EH(gG,SH);return a&&i&&c?(0,U.jsx)(`svg`,{style:e,width:a,height:o,className:`react-flow__connectionline react-flow__container`,children:(0,U.jsx)(`g`,{className:VN([`react-flow__connection`,wB(s)]),children:(0,U.jsx)(vG,{style:t,type:n,CustomComponent:r,isValid:s})})}):null}var vG=({style:e,type:t=Mz.Bezier,CustomComponent:n,isValid:r})=>{let{inProgress:i,from:a,fromNode:o,fromHandle:s,fromPosition:c,to:l,toNode:u,toHandle:d,toPosition:f,pointer:p}=hG();if(!i)return;if(n)return(0,U.jsx)(n,{connectionLineType:t,connectionLineStyle:e,fromNode:o,fromHandle:s,fromX:a.x,fromY:a.y,toX:l.x,toY:l.y,fromPosition:c,toPosition:f,connectionStatus:wB(r),toNode:u,toHandle:d,pointer:p});let m=``,h={sourceX:a.x,sourceY:a.y,sourcePosition:c,targetX:l.x,targetY:l.y,targetPosition:f};switch(t){case Mz.Bezier:[m]=IB(h);break;case Mz.SimpleBezier:[m]=PW(h);break;case Mz.Step:[m]=YB({...h,borderRadius:0});break;case Mz.SmoothStep:[m]=YB(h);break;default:[m]=UB(h)}return(0,U.jsx)(`path`,{d:m,fill:`none`,className:`react-flow__connection-path`,style:e})};vG.displayName=`ConnectionLine`;var yG={};function bG(e=yG){(0,H.useRef)(e),DH(),(0,H.useEffect)(()=>{},[e])}function xG(){DH(),(0,H.useRef)(!1),(0,H.useEffect)(()=>{},[])}function SG({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:r,onEdgeClick:i,onNodeDoubleClick:a,onEdgeDoubleClick:o,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:u,onSelectionContextMenu:d,onSelectionStart:f,onSelectionEnd:p,connectionLineType:m,connectionLineStyle:h,connectionLineComponent:g,connectionLineContainerStyle:_,selectionKeyCode:v,selectionOnDrag:y,selectionMode:b,multiSelectionKeyCode:x,panActivationKeyCode:S,zoomActivationKeyCode:C,deleteKeyCode:w,onlyRenderVisibleElements:T,elementsSelectable:E,defaultViewport:D,translateExtent:O,minZoom:k,maxZoom:A,preventScrolling:j,defaultMarkerColor:M,zoomOnScroll:N,zoomOnPinch:P,panOnScroll:F,panOnScrollSpeed:I,panOnScrollMode:L,zoomOnDoubleClick:R,panOnDrag:ee,autoPanOnSelection:te,onPaneClick:z,onPaneMouseEnter:B,onPaneMouseMove:V,onPaneMouseLeave:ne,onPaneScroll:re,onPaneContextMenu:ie,paneClickDistance:ae,nodeClickDistance:oe,onEdgeContextMenu:se,onEdgeMouseEnter:ce,onEdgeMouseMove:le,onEdgeMouseLeave:ue,reconnectRadius:de,onReconnect:fe,onReconnectStart:pe,onReconnectEnd:me,noDragClassName:he,noWheelClassName:ge,noPanClassName:_e,disableKeyboardA11y:ve,nodeExtent:ye,rfId:be,viewport:xe,onViewportChange:Se,nodesDraggable:Ce}){return bG(e),bG(t),xG(),uG(n),fG(xe),(0,U.jsx)(dW,{onPaneClick:z,onPaneMouseEnter:B,onPaneMouseMove:V,onPaneMouseLeave:ne,onPaneContextMenu:ie,onPaneScroll:re,paneClickDistance:ae,deleteKeyCode:w,selectionKeyCode:v,selectionOnDrag:y,selectionMode:b,onSelectionStart:f,onSelectionEnd:p,multiSelectionKeyCode:x,panActivationKeyCode:S,zoomActivationKeyCode:C,elementsSelectable:E,zoomOnScroll:N,zoomOnPinch:P,zoomOnDoubleClick:R,panOnScroll:F,panOnScrollSpeed:I,panOnScrollMode:L,panOnDrag:ee,autoPanOnSelection:te,defaultViewport:D,translateExtent:O,minZoom:k,maxZoom:A,onSelectionContextMenu:d,preventScrolling:j,noDragClassName:he,noWheelClassName:ge,noPanClassName:_e,disableKeyboardA11y:ve,onViewportChange:Se,isControlledViewport:!!xe,children:(0,U.jsxs)(lG,{children:[(0,U.jsx)(sG,{edgeTypes:t,onEdgeClick:i,onEdgeDoubleClick:o,onReconnect:fe,onReconnectStart:pe,onReconnectEnd:me,onlyRenderVisibleElements:T,onEdgeContextMenu:se,onEdgeMouseEnter:ce,onEdgeMouseMove:le,onEdgeMouseLeave:ue,reconnectRadius:de,defaultMarkerColor:M,noPanClassName:_e,disableKeyboardA11y:ve,rfId:be}),(0,U.jsx)(_G,{style:h,type:m,component:g,containerStyle:_}),(0,U.jsx)(`div`,{className:`react-flow__edgelabel-renderer`}),(0,U.jsx)(xW,{nodeTypes:e,onNodeClick:r,onNodeDoubleClick:a,onNodeMouseEnter:s,onNodeMouseMove:c,onNodeMouseLeave:l,onNodeContextMenu:u,nodeClickDistance:oe,onlyRenderVisibleElements:T,noPanClassName:_e,noDragClassName:he,disableKeyboardA11y:ve,nodeExtent:ye,rfId:be,nodesDraggable:Ce}),(0,U.jsx)(`div`,{className:`react-flow__viewport-portal`})]})})}SG.displayName=`GraphView`;var CG=(0,H.memo)(SG),wG=cB(`React Flow`,`https://reactflow.dev/`),TG=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:o,fitViewOptions:s,minZoom:c=.5,maxZoom:l=2,nodeOrigin:u,nodeExtent:d,zIndexMode:f=`basic`}={})=>{let p=new Map,m=new Map,h=new Map,g=new Map,_=r??t??[],v=n??e??[],y=u??[0,0],b=d??Tz;bV(h,g,_);let{nodesInitialized:x}=dV(v,p,m,{nodeOrigin:y,nodeExtent:b,zIndexMode:f}),S=[0,0,1];if(o&&i&&a){let{x:e,y:t,zoom:n}=hB(Bz(p,{filter:e=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),i,a,c,l,s?.padding??.1);S=[e,t,n]}return{rfId:`1`,width:i??0,height:a??0,transform:S,nodes:v,nodesInitialized:x,nodeLookup:p,parentLookup:m,edges:_,edgeLookup:g,connectionLookup:h,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:n!==void 0,hasDefaultEdges:r!==void 0,panZoom:null,minZoom:c,maxZoom:l,translateExtent:Tz,nodeExtent:b,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:Oz.Strict,domNode:null,paneDragging:!1,noPanClassName:`nopan`,nodeOrigin:y,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGrid:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:o??!1,fitViewOptions:s,fitViewResolver:null,connection:{...jz},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:``,autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:wG,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:`react`,debug:!1,ariaLabelConfig:Dz,zIndexMode:f,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},EG=({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:o,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:u,nodeExtent:d,zIndexMode:f})=>xH((p,m)=>{async function h(){let{nodeLookup:e,panZoom:t,fitViewOptions:n,fitViewResolver:r,width:i,height:a,minZoom:o,maxZoom:s}=m();t&&(await Wz({nodes:e,width:i,height:a,panZoom:t,minZoom:o,maxZoom:s},n),r?.resolve(!0),p({fitViewResolver:null}))}return{...TG({nodes:e,edges:t,width:i,height:a,fitView:o,fitViewOptions:s,minZoom:c,maxZoom:l,nodeOrigin:u,nodeExtent:d,defaultNodes:n,defaultEdges:r,zIndexMode:f}),setNodes:e=>{let{nodeLookup:t,parentLookup:n,nodeOrigin:r,nodeExtent:i,elevateNodesOnSelect:a,fitViewQueued:o,zIndexMode:s,nodesSelectionActive:c}=m(),{nodesInitialized:l,hasSelectedNodes:u}=dV(e,t,n,{nodeOrigin:r,nodeExtent:i,elevateNodesOnSelect:a,checkEquality:!0,zIndexMode:s}),d=c&&u;o&&l?(h(),p({nodes:e,nodesInitialized:l,fitViewQueued:!1,fitViewOptions:void 0,nodesSelectionActive:d})):p({nodes:e,nodesInitialized:l,nodesSelectionActive:d})},setEdges:e=>{let{connectionLookup:t,edgeLookup:n}=m();bV(t,n,e),p({edges:e})},setDefaultNodesAndEdges:(e,t)=>{if(e){let{setNodes:t}=m();t(e),p({hasDefaultNodes:!0})}if(t){let{setEdges:e}=m();e(t),p({hasDefaultEdges:!0})}},updateNodeInternals:e=>{let{triggerNodeChanges:t,nodeLookup:n,parentLookup:r,domNode:i,nodeOrigin:a,nodeExtent:o,debug:s,fitViewQueued:c,zIndexMode:l}=m(),{changes:u,updatedInternals:d}=_V(e,n,r,i,a,o,l);d&&(cV(n,r,{nodeOrigin:a,nodeExtent:o,zIndexMode:l}),c?(h(),p({fitViewQueued:!1,fitViewOptions:void 0})):p({}),u?.length>0&&(s&&console.log(`React Flow: trigger node changes`,u),t?.(u)))},updateNodePositions:(e,t=!1)=>{let n=[],r=[],{nodeLookup:i,triggerNodeChanges:a,connection:o,updateConnection:s,onNodesChangeMiddlewareMap:c}=m();for(let[a,c]of e){let e=i.get(a),l=!!(e?.expandParent&&e?.parentId&&c?.position),u={id:a,type:`position`,position:l?{x:Math.max(0,c.position.x),y:Math.max(0,c.position.y)}:c.position,dragging:t};if(e&&o.inProgress&&o.fromNode.id===e.id){let t=$B(e,o.fromHandle,$.Left,!0);s({...o,from:t})}l&&e.parentId&&n.push({id:a,parentId:e.parentId,rect:{...c.internals.positionAbsolute,width:c.measured.width??0,height:c.measured.height??0}}),r.push(u)}if(n.length>0){let{parentLookup:e,nodeOrigin:t}=m(),a=gV(n,i,e,t);r.push(...a)}for(let e of c.values())r=e(r);a(r)},triggerNodeChanges:e=>{let{onNodesChange:t,setNodes:n,nodes:r,hasDefaultNodes:i,debug:a}=m();e?.length&&(i&&n(sU(e,r)),a&&console.log(`React Flow: trigger node changes`,e),t?.(e))},triggerEdgeChanges:e=>{let{onEdgesChange:t,setEdges:n,edges:r,hasDefaultEdges:i,debug:a}=m();e?.length&&(i&&n(cU(e,r)),a&&console.log(`React Flow: trigger edge changes`,e),t?.(e))},addSelectedNodes:e=>{let{multiSelectionActive:t,edgeLookup:n,nodeLookup:r,triggerNodeChanges:i,triggerEdgeChanges:a}=m();if(t){i(e.map(e=>lU(e,!0)));return}i(uU(r,new Set([...e]),!0)),a(uU(n))},addSelectedEdges:e=>{let{multiSelectionActive:t,edgeLookup:n,nodeLookup:r,triggerNodeChanges:i,triggerEdgeChanges:a}=m();if(t){a(e.map(e=>lU(e,!0)));return}a(uU(n,new Set([...e]))),i(uU(r,new Set,!0))},unselectNodesAndEdges:({nodes:e,edges:t}={})=>{let{edges:n,nodes:r,nodeLookup:i,triggerNodeChanges:a,triggerEdgeChanges:o}=m(),s=e||r,c=t||n,l=[];for(let e of s){if(!e.selected)continue;let t=i.get(e.id);t&&(t.selected=!1),l.push(lU(e.id,!1))}let u=[];for(let e of c)e.selected&&u.push(lU(e.id,!1));a(l),o(u)},setMinZoom:e=>{let{panZoom:t,maxZoom:n}=m();t?.setScaleExtent([e,n]),p({minZoom:e})},setMaxZoom:e=>{let{panZoom:t,minZoom:n}=m();t?.setScaleExtent([n,e]),p({maxZoom:e})},setTranslateExtent:e=>{m().panZoom?.setTranslateExtent(e),p({translateExtent:e})},resetSelectedElements:()=>{let{edges:e,nodes:t,triggerNodeChanges:n,triggerEdgeChanges:r,elementsSelectable:i}=m();if(!i)return;let a=t.reduce((e,t)=>t.selected?[...e,lU(t.id,!1)]:e,[]),o=e.reduce((e,t)=>t.selected?[...e,lU(t.id,!1)]:e,[]);n(a),r(o)},setNodeExtent:e=>{let{nodes:t,nodeLookup:n,parentLookup:r,nodeOrigin:i,elevateNodesOnSelect:a,nodeExtent:o,zIndexMode:s}=m();(e[0][0]!==o[0][0]||e[0][1]!==o[0][1]||e[1][0]!==o[1][0]||e[1][1]!==o[1][1])&&(dV(t,n,r,{nodeOrigin:i,nodeExtent:e,elevateNodesOnSelect:a,checkEquality:!1,zIndexMode:s}),p({nodeExtent:e}))},panBy:e=>{let{transform:t,width:n,height:r,panZoom:i,translateExtent:a}=m();return vV({delta:e,panZoom:i,transform:t,translateExtent:a,width:n,height:r})},setCenter:async(e,t,n)=>{let{width:r,height:i,maxZoom:a,panZoom:o}=m();if(!o)return!1;let s=n?.zoom===void 0?a:n.zoom;return await o.setViewport({x:r/2-e*s,y:i/2-t*s,zoom:s},{duration:n?.duration,ease:n?.ease,interpolate:n?.interpolate}),!0},cancelConnection:()=>{p({connection:{...jz}})},updateConnection:e=>{p({connection:e})},reset:()=>p({...TG()})}},Object.is);function DG({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:r,initialWidth:i,initialHeight:a,initialMinZoom:o,initialMaxZoom:s,initialFitViewOptions:c,fitView:l,nodeOrigin:u,nodeExtent:d,zIndexMode:f,children:p}){let[m]=(0,H.useState)(()=>EG({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,width:i,height:a,fitView:l,minZoom:o,maxZoom:s,fitViewOptions:c,nodeOrigin:u,nodeExtent:d,zIndexMode:f}));return(0,U.jsx)(wH,{value:m,children:(0,U.jsx)(SU,{children:(0,U.jsx)(qU,{children:p})})})}function OG({children:e,nodes:t,edges:n,defaultNodes:r,defaultEdges:i,width:a,height:o,fitView:s,fitViewOptions:c,minZoom:l,maxZoom:u,nodeOrigin:d,nodeExtent:f,zIndexMode:p}){return(0,H.useContext)(CH)?(0,U.jsx)(U.Fragment,{children:e}):(0,U.jsx)(DG,{initialNodes:t,initialEdges:n,defaultNodes:r,defaultEdges:i,initialWidth:a,initialHeight:o,fitView:s,initialFitViewOptions:c,initialMinZoom:l,initialMaxZoom:u,nodeOrigin:d,nodeExtent:f,zIndexMode:p,children:e})}var kG={width:`100%`,height:`100%`,overflow:`hidden`,position:`relative`,zIndex:0};function AG({nodes:e,edges:t,defaultNodes:n,defaultEdges:r,className:i,nodeTypes:a,edgeTypes:o,onNodeClick:s,onEdgeClick:c,onInit:l,onMove:u,onMoveStart:d,onMoveEnd:f,onConnect:p,onConnectStart:m,onConnectEnd:h,onClickConnectStart:g,onClickConnectEnd:_,onNodeMouseEnter:v,onNodeMouseMove:y,onNodeMouseLeave:b,onNodeContextMenu:x,onNodeDoubleClick:S,onNodeDragStart:C,onNodeDrag:w,onNodeDragStop:T,onNodesDelete:E,onEdgesDelete:D,onDelete:O,onSelectionChange:k,onSelectionDragStart:A,onSelectionDrag:j,onSelectionDragStop:M,onSelectionContextMenu:N,onSelectionStart:P,onSelectionEnd:F,onBeforeDelete:I,connectionMode:L,connectionLineType:R=Mz.Bezier,connectionLineStyle:ee,connectionLineComponent:te,connectionLineContainerStyle:z,deleteKeyCode:B=`Backspace`,selectionKeyCode:V=`Shift`,selectionOnDrag:ne=!1,selectionMode:re=Az.Full,panActivationKeyCode:ie=`Space`,multiSelectionKeyCode:ae=gB()?`Meta`:`Control`,zoomActivationKeyCode:oe=gB()?`Meta`:`Control`,snapToGrid:se,snapGrid:ce,onlyRenderVisibleElements:le=!1,selectNodesOnDrag:ue,nodesDraggable:de,autoPanOnNodeFocus:fe,nodesConnectable:pe,nodesFocusable:me,nodeOrigin:he=KH,edgesFocusable:ge,edgesReconnectable:_e,elementsSelectable:ve=!0,defaultViewport:ye=qH,minZoom:be=.5,maxZoom:xe=2,translateExtent:Se=Tz,preventScrolling:Ce=!0,nodeExtent:we,defaultMarkerColor:Te=`#b1b1b7`,zoomOnScroll:Ee=!0,zoomOnPinch:De=!0,panOnScroll:Oe=!1,panOnScrollSpeed:ke=.5,panOnScrollMode:Ae=kz.Free,zoomOnDoubleClick:je=!0,panOnDrag:Me=!0,onPaneClick:Ne,onPaneMouseEnter:Pe,onPaneMouseMove:Fe,onPaneMouseLeave:Ie,onPaneScroll:Le,onPaneContextMenu:Re,paneClickDistance:ze=1,nodeClickDistance:Be=0,children:Ve,onReconnect:He,onReconnectStart:Ue,onReconnectEnd:We,onEdgeContextMenu:Ge,onEdgeDoubleClick:Ke,onEdgeMouseEnter:qe,onEdgeMouseMove:Je,onEdgeMouseLeave:Ye,reconnectRadius:Xe=10,onNodesChange:Ze,onEdgesChange:Qe,noDragClassName:$e=`nodrag`,noWheelClassName:et=`nowheel`,noPanClassName:tt=`nopan`,fitView:nt,fitViewOptions:rt,connectOnClick:it,attributionPosition:at,proOptions:ot,defaultEdgeOptions:st,elevateNodesOnSelect:ct=!0,elevateEdgesOnSelect:lt=!1,disableKeyboardA11y:ut=!1,autoPanOnConnect:dt,autoPanOnNodeDrag:ft,autoPanOnSelection:pt=!0,autoPanSpeed:W,connectionRadius:mt,isValidConnection:ht,onError:gt,style:_t,id:vt,nodeDragThreshold:yt,connectionDragThreshold:bt,viewport:xt,onViewportChange:St,width:Ct,height:wt,colorMode:Tt=`light`,debug:Et,onScroll:Dt,ariaLabelConfig:Ot,zIndexMode:kt=`basic`,...At},jt){let Mt=vt||`1`,Nt=$H(Tt),Pt=(0,H.useCallback)(e=>{e.currentTarget.scrollTo({top:0,left:0,behavior:`instant`}),Dt?.(e)},[Dt]);return(0,U.jsx)(`div`,{"data-testid":`rf__wrapper`,...At,onScroll:Pt,style:{..._t,...kG},ref:jt,className:VN([`react-flow`,i,Nt]),id:vt,role:`application`,children:(0,U.jsxs)(OG,{nodes:e,edges:t,width:Ct,height:wt,fitView:nt,fitViewOptions:rt,minZoom:be,maxZoom:xe,nodeOrigin:he,nodeExtent:we,zIndexMode:kt,children:[(0,U.jsx)(ZH,{nodes:e,edges:t,defaultNodes:n,defaultEdges:r,onConnect:p,onConnectStart:m,onConnectEnd:h,onClickConnectStart:g,onClickConnectEnd:_,nodesDraggable:de,autoPanOnNodeFocus:fe,nodesConnectable:pe,nodesFocusable:me,edgesFocusable:ge,edgesReconnectable:_e,elementsSelectable:ve,elevateNodesOnSelect:ct,elevateEdgesOnSelect:lt,minZoom:be,maxZoom:xe,nodeExtent:we,onNodesChange:Ze,onEdgesChange:Qe,snapToGrid:se,snapGrid:ce,connectionMode:L,translateExtent:Se,connectOnClick:it,defaultEdgeOptions:st,fitView:nt,fitViewOptions:rt,onNodesDelete:E,onEdgesDelete:D,onDelete:O,onNodeDragStart:C,onNodeDrag:w,onNodeDragStop:T,onSelectionDrag:j,onSelectionDragStart:A,onSelectionDragStop:M,onMove:u,onMoveStart:d,onMoveEnd:f,noPanClassName:tt,nodeOrigin:he,rfId:Mt,autoPanOnConnect:dt,autoPanOnNodeDrag:ft,autoPanSpeed:W,onError:gt,connectionRadius:mt,isValidConnection:ht,selectNodesOnDrag:ue,nodeDragThreshold:yt,connectionDragThreshold:bt,onBeforeDelete:I,debug:Et,ariaLabelConfig:Ot,zIndexMode:kt}),(0,U.jsx)(CG,{onInit:l,onNodeClick:s,onEdgeClick:c,onNodeMouseEnter:v,onNodeMouseMove:y,onNodeMouseLeave:b,onNodeContextMenu:x,onNodeDoubleClick:S,nodeTypes:a,edgeTypes:o,connectionLineType:R,connectionLineStyle:ee,connectionLineComponent:te,connectionLineContainerStyle:z,selectionKeyCode:V,selectionOnDrag:ne,selectionMode:re,deleteKeyCode:B,multiSelectionKeyCode:ae,panActivationKeyCode:ie,zoomActivationKeyCode:oe,onlyRenderVisibleElements:le,defaultViewport:ye,translateExtent:Se,minZoom:be,maxZoom:xe,preventScrolling:Ce,zoomOnScroll:Ee,zoomOnPinch:De,zoomOnDoubleClick:je,panOnScroll:Oe,panOnScrollSpeed:ke,panOnScrollMode:Ae,panOnDrag:Me,autoPanOnSelection:pt,onPaneClick:Ne,onPaneMouseEnter:Pe,onPaneMouseMove:Fe,onPaneMouseLeave:Ie,onPaneScroll:Le,onPaneContextMenu:Re,paneClickDistance:ze,nodeClickDistance:Be,onSelectionContextMenu:N,onSelectionStart:P,onSelectionEnd:F,onReconnect:He,onReconnectStart:Ue,onReconnectEnd:We,onEdgeContextMenu:Ge,onEdgeDoubleClick:Ke,onEdgeMouseEnter:qe,onEdgeMouseMove:Je,onEdgeMouseLeave:Ye,reconnectRadius:Xe,defaultMarkerColor:Te,noDragClassName:$e,noWheelClassName:et,noPanClassName:tt,rfId:Mt,disableKeyboardA11y:ut,nodeExtent:we,viewport:xt,onViewportChange:St,nodesDraggable:de}),(0,U.jsx)(GH,{onSelectionChange:k}),Ve,(0,U.jsx)(zH,{proOptions:ot,position:at}),(0,U.jsx)(IH,{rfId:Mt,disableKeyboardA11y:ut})]})})}var jG=_U(AG),MG=e=>e.domNode?.querySelector(`.react-flow__edgelabel-renderer`);function NG({children:e}){let t=EH(MG);return t?(0,Dr.createPortal)(e,t):null}function PG(e){let[t,n]=(0,H.useState)(e);return[t,n,(0,H.useCallback)(e=>n(t=>sU(e,t)),[])]}function FG(e){let[t,n]=(0,H.useState)(e);return[t,n,(0,H.useCallback)(e=>n(t=>cU(e,t)),[])]}wz.error014();function IG({dimensions:e,lineWidth:t,variant:n,className:r}){return(0,U.jsx)(`path`,{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:VN([`react-flow__background-pattern`,n,r])})}function LG({radius:e,className:t}){return(0,U.jsx)(`circle`,{cx:e,cy:e,r:e,className:VN([`react-flow__background-pattern`,`dots`,t])})}var RG;(function(e){e.Lines=`lines`,e.Dots=`dots`,e.Cross=`cross`})(RG||={});var zG={[RG.Dots]:1,[RG.Lines]:1,[RG.Cross]:6},BG=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function VG({id:e,variant:t=RG.Dots,gap:n=20,size:r,lineWidth:i=1,offset:a=0,color:o,bgColor:s,style:c,className:l,patternClassName:u}){let d=(0,H.useRef)(null),{transform:f,patternId:p}=EH(BG,SH),m=r||zG[t],h=t===RG.Dots,g=t===RG.Cross,_=Array.isArray(n)?n:[n,n],v=[_[0]*f[2]||1,_[1]*f[2]||1],y=m*f[2],b=Array.isArray(a)?a:[a,a],x=g?[y,y]:v,S=[b[0]*f[2]+x[0]/2,b[1]*f[2]+x[1]/2],C=`${p}${e||``}`;return(0,U.jsxs)(`svg`,{className:VN([`react-flow__background`,l]),style:{...c,...AU,"--xy-background-color-props":s,"--xy-background-pattern-color-props":o},ref:d,"data-testid":`rf__background`,children:[(0,U.jsx)(`pattern`,{id:C,x:f[0]%v[0],y:f[1]%v[1],width:v[0],height:v[1],patternUnits:`userSpaceOnUse`,patternTransform:`translate(-${S[0]},-${S[1]})`,children:h?(0,U.jsx)(LG,{radius:y/2,className:u}):(0,U.jsx)(IG,{dimensions:x,lineWidth:i,variant:t,className:u})}),(0,U.jsx)(`rect`,{x:`0`,y:`0`,width:`100%`,height:`100%`,fill:`url(#${C})`})]})}VG.displayName=`Background`,(0,H.memo)(VG);function HG(){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 32`,children:(0,U.jsx)(`path`,{d:`M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z`})})}function UG(){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 5`,children:(0,U.jsx)(`path`,{d:`M0 0h32v4.2H0z`})})}function WG(){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 32 30`,children:(0,U.jsx)(`path`,{d:`M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z`})})}function GG(){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`,children:(0,U.jsx)(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z`})})}function KG(){return(0,U.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 25 32`,children:(0,U.jsx)(`path`,{d:`M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z`})})}function qG({children:e,className:t,...n}){return(0,U.jsx)(`button`,{type:`button`,className:VN([`react-flow__controls-button`,t]),...n,children:e})}var JG=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function YG({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:r=!0,fitViewOptions:i,onZoomIn:a,onZoomOut:o,onFitView:s,onInteractiveChange:c,className:l,children:u,position:d=`bottom-left`,orientation:f=`vertical`,"aria-label":p}){let m=DH(),{isInteractive:h,minZoomReached:g,maxZoomReached:_,ariaLabelConfig:v}=EH(JG,SH),{zoomIn:y,zoomOut:b,fitView:x}=TU();return(0,U.jsxs)(LH,{className:VN([`react-flow__controls`,f===`horizontal`?`horizontal`:`vertical`,l]),position:d,style:e,"data-testid":`rf__controls`,"aria-label":p??v[`controls.ariaLabel`],children:[t&&(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(qG,{onClick:()=>{y(),a?.()},className:`react-flow__controls-zoomin`,title:v[`controls.zoomIn.ariaLabel`],"aria-label":v[`controls.zoomIn.ariaLabel`],disabled:_,children:(0,U.jsx)(HG,{})}),(0,U.jsx)(qG,{onClick:()=>{b(),o?.()},className:`react-flow__controls-zoomout`,title:v[`controls.zoomOut.ariaLabel`],"aria-label":v[`controls.zoomOut.ariaLabel`],disabled:g,children:(0,U.jsx)(UG,{})})]}),n&&(0,U.jsx)(qG,{className:`react-flow__controls-fitview`,onClick:()=>{x(i),s?.()},title:v[`controls.fitView.ariaLabel`],"aria-label":v[`controls.fitView.ariaLabel`],children:(0,U.jsx)(WG,{})}),r&&(0,U.jsx)(qG,{className:`react-flow__controls-interactive`,onClick:()=>{m.setState({nodesDraggable:!h,nodesConnectable:!h,elementsSelectable:!h}),c?.(!h)},title:v[`controls.interactive.ariaLabel`],"aria-label":v[`controls.interactive.ariaLabel`],children:h?(0,U.jsx)(KG,{}):(0,U.jsx)(GG,{})}),u]})}YG.displayName=`Controls`;var XG=(0,H.memo)(YG);function ZG({id:e,x:t,y:n,width:r,height:i,style:a,color:o,strokeColor:s,strokeWidth:c,className:l,borderRadius:u,shapeRendering:d,selected:f,onClick:p}){let{background:m,backgroundColor:h}=a||{},g=o||m||h;return(0,U.jsx)(`rect`,{className:VN([`react-flow__minimap-node`,{selected:f},l]),x:t,y:n,rx:u,ry:u,width:r,height:i,style:{fill:g,stroke:s,strokeWidth:c},shapeRendering:d,onClick:p?t=>p(t,e):void 0})}var QG=(0,H.memo)(ZG),$G=e=>e.nodes.map(e=>e.id),eK=e=>e instanceof Function?e:()=>e;function tK({nodeStrokeColor:e,nodeColor:t,nodeClassName:n=``,nodeBorderRadius:r=5,nodeStrokeWidth:i,nodeComponent:a=QG,onClick:o}){let s=EH($G,SH),c=eK(t),l=eK(e),u=eK(n),d=typeof window>`u`||window.chrome?`crispEdges`:`geometricPrecision`;return(0,U.jsx)(U.Fragment,{children:s.map(e=>(0,U.jsx)(rK,{id:e,nodeColorFunc:c,nodeStrokeColorFunc:l,nodeClassNameFunc:u,nodeBorderRadius:r,nodeStrokeWidth:i,NodeComponent:a,onClick:o,shapeRendering:d},e))})}function nK({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:r,nodeBorderRadius:i,nodeStrokeWidth:a,shapeRendering:o,NodeComponent:s,onClick:c}){let{node:l,x:u,y:d,width:f,height:p}=EH(t=>{let n=t.nodeLookup.get(e);if(!n)return{node:void 0,x:0,y:0,width:0,height:0};let r=n.internals.userNode,{x:i,y:a}=n.internals.positionAbsolute,{width:o,height:s}=vB(r);return{node:r,x:i,y:a,width:o,height:s}},SH);return!l||l.hidden||!yB(l)?null:(0,U.jsx)(s,{x:u,y:d,width:f,height:p,style:l.style,selected:!!l.selected,className:r(l),color:t(l),borderRadius:i,strokeColor:n(l),strokeWidth:a,shapeRendering:o,onClick:c,id:l.id})}var rK=(0,H.memo)(nK),iK=(0,H.memo)(tK),aK=200,oK=150,sK=e=>!e.hidden,cK=e=>{let t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]},n=!1;for(let t of e.nodeLookup.values())if(!t.hidden){n=!0;break}return{viewBB:t,boundingRect:n?rB(Bz(e.nodeLookup,{filter:sK}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}},lK=(e,t)=>e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height,uK=(e,t)=>lK(e.viewBB,t.viewBB)&&lK(e.boundingRect,t.boundingRect)&&e.rfId===t.rfId&&e.panZoom===t.panZoom&&e.translateExtent===t.translateExtent&&e.flowWidth===t.flowWidth&&e.flowHeight===t.flowHeight&&e.ariaLabelConfig===t.ariaLabelConfig,dK=`react-flow__minimap-desc`;function fK({style:e,className:t,nodeStrokeColor:n,nodeColor:r,nodeClassName:i=``,nodeBorderRadius:a=5,nodeStrokeWidth:o,nodeComponent:s,bgColor:c,maskColor:l,maskStrokeColor:u,maskStrokeWidth:d,position:f=`bottom-right`,onClick:p,onNodeClick:m,pannable:h=!1,zoomable:g=!1,ariaLabel:_,inversePan:v,zoomStep:y=1,offsetScale:b=5}){let x=DH(),S=(0,H.useRef)(null),{boundingRect:C,panZoom:w,viewBB:T,rfId:E,translateExtent:D,flowWidth:O,flowHeight:k,ariaLabelConfig:A}=EH(cK,uK),j=e?.width??aK,M=e?.height??oK,N=C.width/j,P=C.height/M,F=Math.max(N,P),I=F*j,L=F*M,R=b*F,ee=C.x-(I-C.width)/2-R,te=C.y-(L-C.height)/2-R,z=I+R*2,B=L+R*2,V=`${dK}-${E}`,ne=(0,H.useRef)(0),re=(0,H.useRef)();ne.current=F,(0,H.useEffect)(()=>{let e=x.getState().panZoom;if(S.current&&e)return re.current=LV({domNode:S.current,panZoom:e,getTransform:()=>x.getState().transform,getViewScale:()=>ne.current}),()=>{re.current?.destroy()}},[w]),(0,H.useEffect)(()=>{re.current?.update({translateExtent:D,width:O,height:k,inversePan:v,pannable:h,zoomStep:y,zoomable:g})},[h,g,v,y,D,O,k]);let ie=p?e=>{let[t,n]=re.current?.pointer(e)||[0,0];p(e,{x:t,y:n})}:void 0,ae=(0,H.useCallback)((e,t)=>{let n=x.getState().nodeLookup.get(t).internals.userNode;m?.(e,n)},[m]),oe=m?ae:void 0,se=_??A[`minimap.ariaLabel`];return(0,U.jsx)(LH,{position:f,style:{...e,"--xy-minimap-background-color-props":typeof c==`string`?c:void 0,"--xy-minimap-mask-background-color-props":typeof l==`string`?l:void 0,"--xy-minimap-mask-stroke-color-props":typeof u==`string`?u:void 0,"--xy-minimap-mask-stroke-width-props":typeof d==`number`?d*F:void 0,"--xy-minimap-node-background-color-props":typeof r==`string`?r:void 0,"--xy-minimap-node-stroke-color-props":typeof n==`string`?n:void 0,"--xy-minimap-node-stroke-width-props":typeof o==`number`?o:void 0},className:VN([`react-flow__minimap`,t]),"data-testid":`rf__minimap`,children:(0,U.jsxs)(`svg`,{width:j,height:M,viewBox:`${ee} ${te} ${z} ${B}`,className:`react-flow__minimap-svg`,role:`img`,"aria-labelledby":V,ref:S,onClick:ie,children:[se&&(0,U.jsx)(`title`,{id:V,children:se}),(0,U.jsx)(iK,{onClick:oe,nodeColor:r,nodeStrokeColor:n,nodeBorderRadius:a,nodeClassName:i,nodeStrokeWidth:o,nodeComponent:s}),(0,U.jsx)(`path`,{className:`react-flow__minimap-mask`,d:`M${ee-R},${te-R}h${z+R*2}v${B+R*2}h${-z-R*2}z
62
+ M${T.x},${T.y}h${T.width}v${T.height}h${-T.width}z`,fillRule:`evenodd`,pointerEvents:`none`})]})})}fK.displayName=`MiniMap`,(0,H.memo)(fK);var pK=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,mK={[QV.Line]:`right`,[QV.Handle]:`bottom-right`};function hK({nodeId:e,position:t,variant:n=QV.Handle,className:r,style:i=void 0,children:a,color:o,minWidth:s=10,minHeight:c=10,maxWidth:l=Number.MAX_VALUE,maxHeight:u=Number.MAX_VALUE,keepAspectRatio:d=!1,resizeDirection:f,autoScale:p=!0,shouldResize:m,onResizeStart:h,onResize:g,onResizeEnd:_}){let v=WU(),y=typeof e==`string`?e:v,b=DH(),x=(0,H.useRef)(null),S=n===QV.Handle,C=EH((0,H.useCallback)(pK(S&&p),[S,p]),SH),w=(0,H.useRef)(null),T=t??mK[n];(0,H.useEffect)(()=>{if(!(!x.current||!y))return w.current||=lH({domNode:x.current,nodeId:y,getStoreItems:()=>{let{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:r,nodeOrigin:i,domNode:a}=b.getState();return{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:r,nodeOrigin:i,paneDomNode:a}},onChange:(e,t)=>{let{triggerNodeChanges:n,nodeLookup:r,parentLookup:i,nodeOrigin:a}=b.getState(),o=[],s={x:e.x,y:e.y},c=r.get(y);if(c&&c.expandParent&&c.parentId){let t=c.origin??a,n=e.width??c.measured.width??0,l=e.height??c.measured.height??0,u=gV([{id:c.id,parentId:c.parentId,rect:{width:n,height:l,...bB({x:e.x??c.position.x,y:e.y??c.position.y},{width:n,height:l},c.parentId,r,t)}}],r,i,a);o.push(...u),s.x=e.x?Math.max(t[0]*n,e.x):void 0,s.y=e.y?Math.max(t[1]*l,e.y):void 0}if(s.x!==void 0&&s.y!==void 0){let e={id:y,type:`position`,position:{...s}};o.push(e)}if(e.width!==void 0&&e.height!==void 0){let t={id:y,type:`dimensions`,resizing:!0,setAttributes:f?f===`horizontal`?`width`:`height`:!0,dimensions:{width:e.width,height:e.height}};o.push(t)}for(let e of t){let t={...e,type:`position`};o.push(t)}n(o)},onEnd:({width:e,height:t})=>{let n={id:y,type:`dimensions`,resizing:!1,dimensions:{width:e,height:t}};b.getState().triggerNodeChanges([n])}}),w.current.update({controlPosition:T,boundaries:{minWidth:s,minHeight:c,maxWidth:l,maxHeight:u},keepAspectRatio:d,resizeDirection:f,onResizeStart:h,onResize:g,onResizeEnd:_,shouldResize:m}),()=>{w.current?.destroy()}},[T,s,c,l,u,d,h,g,_,m]);let E=T.split(`-`);return(0,U.jsx)(`div`,{className:VN([`react-flow__resize-control`,`nodrag`,...E,n,r]),ref:x,style:{...i,scale:C,...o&&{[S?`backgroundColor`:`borderColor`]:o}},children:a})}(0,H.memo)(hK);var gK={Schema:`border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300`,View:`border-violet-500/30 bg-violet-500/10 text-violet-700 dark:text-violet-300`,Procedure:`border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300`,Trigger:`border-rose-500/30 bg-rose-500/10 text-rose-700 dark:text-rose-300`},_K={Schema:`!border-blue-400/70 [&.selected]:!border-blue-500 [&.selected]:!ring-2 [&.selected]:!ring-blue-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(59,130,246,0.65)] dark:[&.selected]:!border-blue-300 dark:[&.selected]:!ring-blue-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(96,165,250,0.8)]`,View:`!border-violet-400/70 [&.selected]:!border-violet-500 [&.selected]:!ring-2 [&.selected]:!ring-violet-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(139,92,246,0.65)] dark:[&.selected]:!border-violet-300 dark:[&.selected]:!ring-violet-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(167,139,250,0.8)]`,Procedure:`!border-amber-400/70 [&.selected]:!border-amber-500 [&.selected]:!ring-2 [&.selected]:!ring-amber-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(245,158,11,0.65)] dark:[&.selected]:!border-amber-300 dark:[&.selected]:!ring-amber-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(251,191,36,0.8)]`,Trigger:`!border-rose-400/70 [&.selected]:!border-rose-500 [&.selected]:!ring-2 [&.selected]:!ring-rose-500/30 [&.selected]:!shadow-[0_14px_28px_-10px_rgba(244,63,94,0.65)] dark:[&.selected]:!border-rose-300 dark:[&.selected]:!ring-rose-400/45 dark:[&.selected]:!shadow-[0_0_32px_rgba(251,113,133,0.8)]`},vK=[`public`,`members`,`staff`,`system`,`api-clients`],yK={manifest:kK},bK={audience:EK};function xK(e,t){return t===`translation-parent`?Z(e,`developer.graph.relation.translationParent`):t===`schema-reference`?Z(e,`developer.graph.relation.schemaReference`):t===`view-source`?Z(e,`developer.graph.relation.viewSource`):t===`authorization-guard`?Z(e,`developer.graph.relation.guard`):t===`procedure-schema`?Z(e,`developer.graph.relation.procedureSchema`):t===`collection-action`?Z(e,`developer.graph.relation.collectionAction`):t===`input-reference`?Z(e,`developer.graph.relation.inputReference`):t===`trigger-target`?Z(e,`developer.graph.relation.triggerTarget`):Z(e,`developer.graph.relation.lifecycleSource`)}function SK(e,t){return t===`public`?Z(e,`developer.graph.audience.public`):t===`members`?Z(e,`developer.graph.audience.members`):t===`staff`?Z(e,`developer.graph.audience.staff`):t===`system`?Z(e,`developer.graph.audience.system`):Z(e,`developer.graph.audience.apiClients`)}function CK(e,t){return t===`Schema`?Z(e,`developer.graph.kind.schema`):t===`View`?Z(e,`developer.graph.kind.view`):t===`Procedure`?Z(e,`developer.graph.kind.procedure`):Z(e,`developer.graph.kind.trigger`)}function wK(e,t){return t===`public`?Z(e,`developer.graph.audienceDescription.public`):t===`members`?Z(e,`developer.graph.audienceDescription.members`):t===`staff`?Z(e,`developer.graph.audienceDescription.staff`):t===`system`?Z(e,`developer.graph.audienceDescription.system`):Z(e,`developer.graph.audienceDescription.apiClients`)}function TK({language:e,audience:t,prominent:n=!1}){let r=SK(e,t),i=wK(e,t);return(0,U.jsxs)(`span`,{className:J(`inline-flex items-center gap-1 rounded border font-semibold uppercase tracking-wider`,n?`border-slate-300 bg-white px-2 py-1 text-[11px] text-slate-800 shadow-sm dark:border-slate-600 dark:bg-slate-800 dark:text-slate-100`:`border-border bg-muted px-1.5 py-0.5 text-[9px] text-muted-foreground`),children:[r,(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(`button`,{type:`button`,className:`nodrag nopan pointer-events-auto inline-flex rounded-full focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":`${r}: ${i}`,children:(0,U.jsx)($t,{className:n?`size-3.5`:`size-3`,"aria-hidden":!0})})}),(0,U.jsx)(Tv,{children:i})]})]})}function EK({data:e}){return(0,U.jsx)(`section`,{className:`pointer-events-none h-full w-full overflow-hidden rounded-2xl border-2 border-blue-200 bg-blue-50 text-slate-950 shadow-sm dark:border-slate-600 dark:bg-[#111d35] dark:text-slate-50`,children:(0,U.jsxs)(`header`,{className:`flex h-12 items-center justify-between border-b border-blue-200 bg-blue-100 px-4 dark:border-slate-600 dark:bg-[#172845]`,children:[(0,U.jsx)(TK,{language:e.language,audience:e.audience,prominent:!0}),(0,U.jsx)(`span`,{className:`rounded-full border border-slate-300 bg-white px-2.5 py-1 font-mono text-[11px] font-bold text-slate-700 shadow-sm dark:border-slate-600 dark:bg-slate-800 dark:text-slate-100`,children:e.count})]})})}function DK({graph:e,selectedAtomId:t,onSelect:n,onOpen:r}){let{language:i,theme:a}=X(),o=H.useMemo(()=>OK(e,i),[e,i]),[s,c,l]=PG(o.nodes),[u,d,f]=FG(o.edges),[p,m]=H.useState(null),[h,g]=H.useState(null),[_,v]=H.useState(null),y=H.useMemo(()=>new Map(e.atoms.map(e=>[e.id,e])),[e.atoms]),b=h?y.get(h)??null:null,x=H.useMemo(()=>_?MK(e,_.nodeIds,_.startId).map(e=>y.get(e)).filter(e=>!!e):[],[y,e,_]);H.useEffect(()=>{c(o.nodes),d(o.edges),g(null),v(null)},[o,d,c]);let S=(e,t)=>{c(t=>t.map(t=>{let n=y.has(t.id)&&!e.has(t.id);return{...t,style:{...t.style,opacity:n?`var(--graph-inactive-opacity)`:1,filter:n?`var(--graph-inactive-filter)`:`none`,transition:`filter 180ms ease, opacity 180ms ease`},zIndex:y.has(t.id)?+!!e.has(t.id):-1}})),d(e=>e.map(e=>{let n=t.has(e.id);return{...e,style:{...e.style,opacity:n?1:.08,stroke:n?`var(--foreground)`:`var(--muted-foreground)`,strokeWidth:n?2.5:1.25},data:e.data?{...e.data,opacity:n?1:.08}:e.data,markerEnd:typeof e.markerEnd==`object`?{...e.markerEnd,color:n?`var(--foreground)`:`var(--muted-foreground)`}:e.markerEnd,zIndex:+!!n}}))},C=(t,n=jK(e,t))=>{g(t),v(n),c(e=>e.map(e=>({...e,selected:e.id===t}))),S(n.nodeIds,n.relationIds)};H.useEffect(()=>{if(!p||!h)return;let e=window.innerWidth<640;p.fitView({nodes:[{id:h}],padding:{top:`20%`,right:e?`60%`:`34%`,bottom:`20%`,left:e?`2%`:`8%`},minZoom:e?.78:.9,maxZoom:e?1:1.2,duration:320})},[p,h]);let w=(t,r=jK(e,t))=>{C(t,r),n(t)},T=t=>w(t,_?.nodeIds.has(t)?_:jK(e,t)),E=()=>{g(null),v(null),c(e=>e.map(e=>({...e,selected:!1,style:{...e.style,opacity:1,filter:`none`},zIndex:y.has(e.id)?0:-1}))),d(o.edges)},D=()=>{E(),n(null)};return H.useEffect(()=>{if(t&&y.has(t)){t!==h&&C(t);return}h&&E()},[y,o,t,h]),(0,U.jsxs)(jG,{className:`bg-background [--graph-inactive-filter:none] [--graph-inactive-opacity:0.16] dark:[--graph-inactive-filter:brightness(0.42)_saturate(0.2)] dark:[--graph-inactive-opacity:1]`,nodes:s,edges:u,onNodesChange:l,onEdgesChange:f,onInit:m,edgeTypes:yK,nodeTypes:bK,colorMode:a,fitView:!0,fitViewOptions:{padding:.08},minZoom:.25,maxZoom:1.8,nodesConnectable:!1,nodesDraggable:!0,onNodeClick:(e,t)=>{y.has(t.id)&&w(t.id)},onPaneClick:D,children:[(0,U.jsx)(XG,{className:`overflow-hidden rounded-lg border bg-background/95 shadow-md`,showInteractive:!1,fitViewOptions:{padding:.08,duration:240},children:(0,U.jsx)(qG,{onClick:()=>{c(o.nodes),d(o.edges),g(null),v(null),n(null),window.requestAnimationFrame(()=>void p?.fitView({padding:.08,duration:240}))},title:Z(i,`developer.graph.relayout`),"aria-label":Z(i,`developer.graph.relayout`),children:(0,U.jsx)(an,{"aria-hidden":!0})})}),b?(0,U.jsx)(LH,{position:`top-right`,className:`!m-3 w-[20rem] max-w-[calc(100%-1.5rem)] sm:w-[22rem]`,children:(0,U.jsx)(PK,{atom:b,graph:e,atomsById:y,traceAtoms:x,onClose:D,onSelect:T,onOpen:r})}):null]})}function OK(e,t){let{positions:n,groups:r}=AK(e);return{nodes:[...r.map(e=>({id:`Audience:${e.audience}`,type:`audience`,position:{x:e.x,y:e.y},data:{audience:e.audience,count:e.count,language:t},className:`pointer-events-none !border-0 !bg-transparent !p-0 !shadow-none`,style:{width:e.width,height:e.height},selectable:!1,draggable:!1,connectable:!1,focusable:!1,zIndex:-1})),...e.atoms.map(e=>{let r=n.get(e.id)??{x:0,y:0},i=ry(e.title,t);return{id:e.id,position:r,sourcePosition:$.Bottom,targetPosition:$.Top,data:{label:(0,U.jsxs)(`div`,{className:`min-w-0 space-y-1.5 text-start`,children:[(0,U.jsxs)(`div`,{className:`flex items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,gK[e.kind]),children:CK(t,e.kind)}),e.transport?(0,U.jsx)(`span`,{className:`inline-flex rounded border bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e.transport}):null]}),(0,U.jsx)(`div`,{className:`truncate font-mono text-xs font-semibold`,children:e.name}),i&&i!==e.name?(0,U.jsx)(`div`,{className:`truncate text-[10px] text-muted-foreground`,children:i}):null]})},ariaLabel:`${CK(t,e.kind)} ${e.name}`,className:J(`!h-[76px] !w-[220px] !cursor-grab !rounded-xl !border-2 !bg-white !px-3 !py-2 !text-card-foreground !shadow-lg transition-[border-color,box-shadow,filter] hover:brightness-110 active:!cursor-grabbing dark:!bg-[#0a1124]`,_K[e.kind])}})],edges:e.relations.map(e=>({id:e.id,source:e.sourceId,target:e.targetId,type:`manifest`,data:{kind:e.kind,label:xK(t,e.kind),opacity:0},ariaLabel:`${xK(t,e.kind)}: ${e.sourceId} to ${e.targetId}`,markerEnd:{type:Nz.ArrowClosed,width:16,height:16,color:`var(--muted-foreground)`},style:{opacity:NK(e.kind),stroke:`var(--muted-foreground)`,strokeWidth:NK(e.kind)>.2?1.5:1}}))}}function kK({id:e,data:t,sourceX:n,sourceY:r,sourcePosition:i,targetX:a,targetY:o,targetPosition:s,markerEnd:c,style:l}){let[u,d,f]=YB({sourceX:n,sourceY:r,sourcePosition:i,targetX:a,targetY:o,targetPosition:s});return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(MW,{id:e,path:u,markerEnd:c,style:l}),(0,U.jsx)(NG,{children:(0,U.jsx)(`div`,{className:`nodrag nopan pointer-events-none absolute z-20 whitespace-nowrap rounded-md border bg-popover px-1.5 py-0.5 text-[10px] font-semibold text-popover-foreground shadow-sm`,style:{transform:`translate(-50%, -50%) translate(${d}px, ${f}px)`,opacity:t?.opacity??1,boxShadow:`0 0 0 3px var(--background)`,transition:`opacity 180ms ease`},children:t?.label})})]})}function AK(e){let t=new BN.graphlib.Graph({multigraph:!0}).setDefaultEdgeLabel(()=>({}));t.setGraph({rankdir:`TB`,nodesep:32,ranksep:160,edgesep:20}),e.atoms.forEach(({id:e})=>t.setNode(e,{width:220,height:76})),e.relations.filter(({kind:e})=>[`trigger-target`,`procedure-schema`,`collection-action`,`view-source`].includes(e)).forEach(({id:e,sourceId:n,targetId:r})=>t.setEdge(n,r,{},e)),BN.layout(t);let n=new Map,r=[],i=new Map(e.relations.filter(({kind:e})=>e===`trigger-target`||e===`view-source`).map(({sourceId:e,targetId:t})=>[e,t])),a=72;vK.forEach(t=>{let o=e.atoms.filter(e=>(e.kind===`Trigger`||e.kind===`View`)&&(e.audience??`public`)===t).sort((e,t)=>`${i.get(e.id)??``}:${e.id}`.localeCompare(`${i.get(t.id)??``}:${t.id}`));if(!o.length)return;let s=Math.min(4,o.length),c=Math.ceil(o.length/4),l=48+s*220+(s-1)*32,u=72+c*76+(c-1)*32+24;r.push({audience:t,x:a,y:48,width:l,height:u,count:o.length}),o.forEach((e,t)=>n.set(e.id,{x:a+24+t%4*252,y:120+Math.floor(t/4)*108})),a+=l+56});let o=Math.max(...r.map(({y:e,height:t})=>e+t),200),s=(r,i)=>{let a=e.relations.filter(({targetId:e,kind:t})=>e===r.id&&i.includes(t)).map(({sourceId:e})=>n.get(e)).filter(e=>!!e).map(({x:e})=>e+110).sort((e,t)=>e-t);if(!a.length)return t.node(r.id).x;let o=Math.floor(a.length/2);return a.length%2?a[o]:(a[o-1]+a[o])/2},c=(e,t,r)=>{let i=e.map(e=>({atom:e,preferred:s(e,r)})).sort((e,t)=>e.preferred-t.preferred),a=Math.ceil(i.length/7);for(let e=0;e<a;e+=1){let r=i.slice(e*7,(e+1)*7),a=r.map(({preferred:e})=>e-110),o=[];a.forEach((e,t)=>o.push(t===0?e:Math.max(e,o[t-1]+220+32)));let s=e=>e.reduce((e,t)=>e+t,0)/e.length,c=s(a)-s(o);o[0]+c<72&&(c+=72-(o[0]+c)),r.forEach(({atom:r},i)=>n.set(r.id,{x:o[i]+c,y:t+e*108}))}return a*108},l=o+180,u=c(e.atoms.filter(({kind:e})=>e===`Procedure`),l,[`trigger-target`]);return c(e.atoms.filter(({kind:e})=>e===`Schema`),l+u+140,[`procedure-schema`,`collection-action`,`view-source`]),{positions:n,groups:r}}function jK(e,t){let n=new Set([t]),r=new Set,i=e.atoms.find(({id:e})=>e===t)?.kind,a=e=>{r.add(e.id),n.add(e.sourceId),n.add(e.targetId)},o=e.relations.filter(({sourceId:e,targetId:n})=>e===t||n===t);if(i===`Trigger`){let n=e.relations.filter(({sourceId:e,kind:n})=>e===t&&n===`trigger-target`);n.forEach(e=>a(e));let r=new Set(n.map(({targetId:e})=>e));e.relations.filter(({sourceId:e,kind:t})=>r.has(e)&&[`procedure-schema`,`collection-action`].includes(t)).forEach(e=>a(e))}else if(i===`Procedure`)o.filter(({kind:e})=>[`trigger-target`,`procedure-schema`,`collection-action`].includes(e)).forEach(e=>a(e));else if(i===`View`)o.filter(({kind:e})=>e===`view-source`).forEach(e=>a(e));else if(i===`Schema`){o.filter(({sourceId:e,kind:n})=>e===t&&[`schema-reference`,`translation-parent`].includes(n)).forEach(e=>a(e));let n=o.filter(({targetId:e,kind:n})=>e===t&&[`procedure-schema`,`collection-action`,`input-reference`,`lifecycle-source`].includes(n));n.forEach(e=>a(e));let r=new Set(n.filter(({sourceId:e})=>e.startsWith(`Procedure:`)).map(({sourceId:e})=>e));e.relations.filter(({targetId:e,kind:t})=>r.has(e)&&t===`trigger-target`).forEach(e=>a(e))}return{startId:t,nodeIds:n,relationIds:r}}function MK(e,t,n){let r={Trigger:0,View:0,Procedure:1,Schema:2};return e.atoms.filter(({id:e})=>t.has(e)).sort((e,t)=>r[e.kind]-r[t.kind]||Number(t.id===n)-Number(e.id===n)||e.name.localeCompare(t.name)).map(({id:e})=>e)}function NK(e){return[`schema-reference`,`translation-parent`,`input-reference`,`authorization-guard`].includes(e)?.12:.58}function PK({atom:e,graph:t,atomsById:n,traceAtoms:r,onClose:i,onSelect:a,onOpen:o}){let{language:s}=X(),c=ry(e.title,s),l=ry(e.description??null,s),u=t.relations.filter(({sourceId:t})=>t===e.id),d=t.relations.filter(({targetId:t})=>t===e.id),f=e.kind===`Schema`||e.kind===`View`,p=f?zt:Xn,m=Z(s,f?`developer.graph.openModel`:`developer.graph.openLogic`),h=Math.max(0,r.findIndex(({id:t})=>t===e.id)),g=r[h-1],_=r[h+1],v=IK(s,e);return(0,U.jsxs)(`aside`,{className:`max-h-[calc(100vh-7rem)] overflow-y-auto rounded-xl border bg-white text-popover-foreground shadow-2xl dark:bg-[#090f20]`,"aria-label":Z(s,`developer.graph.details`),children:[(0,U.jsxs)(`header`,{className:`sticky top-0 z-10 border-b bg-white p-4 dark:bg-[#090f20]`,children:[(0,U.jsxs)(`div`,{className:`flex items-start gap-3`,children:[(0,U.jsxs)(`div`,{className:`min-w-0 flex-1`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-1.5`,children:[(0,U.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,gK[e.kind]),children:CK(s,e.kind)}),e.transport?(0,U.jsx)(`span`,{className:`inline-flex rounded border bg-muted px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e.transport}):null,e.audience?(0,U.jsx)(TK,{language:s,audience:e.audience}):null]}),(0,U.jsx)(`h2`,{className:`mt-2 truncate text-sm font-semibold`,children:c||e.name}),c&&c!==e.name?(0,U.jsx)(`p`,{className:`mt-1 truncate font-mono text-[11px] text-muted-foreground`,children:e.name}):null]}),(0,U.jsxs)(`div`,{className:`flex shrink-0 items-center gap-1`,children:[(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:()=>o(e),"aria-label":m,children:(0,U.jsx)(p,{"aria-hidden":!0})})}),(0,U.jsx)(Tv,{children:m})]}),(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,onClick:i,"aria-label":Z(s,`common.close`),children:(0,U.jsx)(Qn,{"aria-hidden":!0})})]})]}),(0,U.jsxs)(`div`,{className:`mt-3 flex items-center gap-2 border-t pt-3`,children:[(0,U.jsx)(Y,{type:`button`,variant:`outline`,size:`icon-sm`,disabled:!g,onClick:()=>g&&a(g.id),"aria-label":Z(s,`developer.graph.previous`),children:(0,U.jsx)(Mt,{"aria-hidden":!0})}),(0,U.jsx)(`span`,{className:`min-w-0 flex-1 text-center text-[11px] font-medium text-muted-foreground`,children:Z(s,`developer.graph.step`,{current:String(h+1),total:String(r.length)})}),(0,U.jsx)(Y,{type:`button`,variant:`outline`,size:`icon-sm`,disabled:!_,onClick:()=>_&&a(_.id),"aria-label":Z(s,`developer.graph.next`),children:(0,U.jsx)(kt,{"aria-hidden":!0})})]})]}),(0,U.jsxs)(`div`,{className:`space-y-5 p-4`,children:[(0,U.jsx)(`p`,{className:`text-sm leading-6 text-popover-foreground`,children:l||FK(s,e,u,d,n)}),v.length?(0,U.jsx)(`dl`,{className:`grid grid-cols-2 gap-x-4 gap-y-3 rounded-lg border bg-muted/35 p-3`,children:v.map(({label:e,value:t})=>(0,U.jsxs)(`div`,{className:`min-w-0`,children:[(0,U.jsx)(`dt`,{className:`text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,U.jsx)(`dd`,{className:`mt-1 break-words font-mono text-xs font-semibold`,children:t})]},e))}):null,d.length?(0,U.jsx)(LK,{title:Z(s,`developer.graph.comesFrom`),relations:d,outgoing:!1,atomsById:n,onSelect:a}):null,u.length?(0,U.jsx)(LK,{title:Z(s,`developer.graph.continuesTo`),relations:u,outgoing:!0,atomsById:n,onSelect:a}):null,!u.length&&!d.length?(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(s,`model.noRelations`)}):null]})]})}function FK(e,t,n,r,i){let a=n[0]?i.get(n[0].targetId)?.name:null;return t.kind===`Trigger`?Z(e,`developer.graph.summary.trigger`,{audience:SK(e,t.audience??`public`),transport:t.transport?.toUpperCase()??`manifest`,target:a??`—`}):t.kind===`Procedure`&&t.handler?.kind===`builtin`?Z(e,`developer.graph.summary.builtin`,{op:t.handler.op,schema:t.handler.schema}):t.kind===`Procedure`&&t.handler?.kind===`ref`?Z(e,`developer.graph.summary.ref`,{ref:t.handler.ref}):t.kind===`View`?Z(e,`developer.graph.summary.view`,{audience:SK(e,t.audience??`public`),target:a??`—`}):Z(e,`developer.graph.summary.schema`,{incoming:String(r.length),outgoing:String(n.length)})}function IK(e,t){let n=[];return t.transport&&n.push({label:Z(e,`developer.graph.fact.transport`),value:t.transport.toUpperCase()}),t.handler?.kind===`ref`&&n.push({label:Z(e,`developer.graph.fact.handler`),value:t.handler.ref}),t.handler?.kind===`builtin`&&(n.push({label:Z(e,`developer.graph.fact.handler`),value:Z(e,`developer.graph.builtin`)}),n.push({label:Z(e,`developer.graph.fact.operation`),value:t.handler.op}),n.push({label:Z(e,`developer.graph.fact.schema`),value:t.handler.schema}),t.handler.match?.length&&n.push({label:Z(e,`developer.graph.fact.match`),value:t.handler.match.join(` + `)})),n}function LK({title:e,relations:t,outgoing:n,atomsById:r,onSelect:i}){let{language:a}=X(),o=n?mt:yt;return(0,U.jsxs)(`section`,{children:[(0,U.jsx)(`h3`,{className:`mb-2 text-[10px] font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,U.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>{let t=r.get(n?e.targetId:e.sourceId);return t?(0,U.jsxs)(`div`,{className:`rounded-lg border bg-white p-3 text-card-foreground dark:bg-[#0a1124]`,children:[(0,U.jsxs)(`button`,{type:`button`,className:`flex w-full min-w-0 items-center gap-2 text-start hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,onClick:()=>i(t.id),children:[(0,U.jsx)(o,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`text-xs font-medium`,children:xK(a,e.kind)}),(0,U.jsx)(`span`,{className:`ms-auto min-w-0 truncate font-mono text-xs font-semibold`,children:t.name})]}),(0,U.jsxs)(`details`,{className:`mt-2 border-t pt-2`,children:[(0,U.jsx)(`summary`,{className:`cursor-pointer text-[10px] font-medium text-muted-foreground`,children:Z(a,`developer.graph.manifestSource`)}),(0,U.jsxs)(`code`,{className:`mt-2 block break-all rounded bg-muted p-2 text-[10px] text-muted-foreground`,children:[e.sourceId.replace(`:`,`/`),e.pointer,` = `,JSON.stringify(e.value)]})]})]},e.id):null})})]})}function RK(e,t,n={}){let r=new URLSearchParams;t&&r.set(`selected`,t);for(let[e,t]of Object.entries(n))t&&r.set(e,t);return`${e}${r.size?`?${r}`:``}`}function zK(e,t={}){return RK(e.startsWith(`Schema:`)||e.startsWith(`View:`)?`/admin/dev/model`:`/admin/dev/logic`,e,t)}function BK({selectedId:e,graph:t,onNavigate:n}){let{language:r}=X(),{navigate:i}=gy(),a=new Map(t.atoms.map(e=>[e.id,e])),o=t.relations.filter(({sourceId:t})=>t===e),s=t.relations.filter(({targetId:t})=>t===e),c=o.length+s.length;return(0,U.jsxs)(`aside`,{className:`flex min-h-0 flex-col`,"aria-label":Z(r,`model.relationships`),children:[(0,U.jsxs)(`div`,{className:`flex h-14 shrink-0 items-center gap-2 border-b px-4`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(r,`model.relationships`)}),(0,U.jsx)(`span`,{className:`font-mono text-xs text-muted-foreground`,children:c})]}),(0,U.jsxs)(`div`,{className:`min-h-0 flex-1 space-y-5 overflow-y-auto p-4`,children:[s.length?(0,U.jsx)(VK,{title:Z(r,`developer.graph.comesFrom`),relations:s,outgoing:!1,atoms:a,onSelect:e=>{i(zK(e)),n?.()},onOpenManifest:(e,t)=>{i(zK(e,{tab:`manifest`,pointer:t})),n?.()}}):null,o.length?(0,U.jsx)(VK,{title:Z(r,`developer.graph.continuesTo`),relations:o,outgoing:!0,atoms:a,onSelect:e=>{i(zK(e)),n?.()},onOpenManifest:(e,t)=>{i(zK(e,{tab:`manifest`,pointer:t})),n?.()}}):null,c?null:(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(r,`model.noRelations`)})]})]})}function VK({title:e,relations:t,outgoing:n,atoms:r,onSelect:i,onOpenManifest:a}){return(0,U.jsxs)(`section`,{children:[(0,U.jsx)(`h3`,{className:`mb-2 text-xs font-medium uppercase tracking-wider text-muted-foreground`,children:e}),(0,U.jsx)(`div`,{className:`space-y-2`,children:t.map(e=>{let t=r.get(n?e.targetId:e.sourceId);return t?(0,U.jsx)(HK,{relation:e,atom:t,outgoing:n,onSelect:i,onOpenManifest:a},e.id):null})})]})}function HK({relation:e,atom:t,outgoing:n,onSelect:r,onOpenManifest:i}){let{language:a}=X(),o=ry(t.title,a);return(0,U.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[(0,U.jsxs)(`button`,{type:`button`,onClick:()=>r(t.id),className:`flex w-full min-w-0 items-center gap-2 text-start hover:underline focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,children:[(0,U.jsx)(n?mt:yt,{className:`size-3.5 shrink-0 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,gK[t.kind]),children:CK(a,t.kind)}),(0,U.jsx)(`span`,{className:`min-w-0 truncate font-mono text-xs font-semibold`,children:t.name})]}),o&&o!==t.name?(0,U.jsx)(`div`,{className:`mt-1 truncate ps-5 text-xs text-muted-foreground`,children:o}):null,(0,U.jsx)(`div`,{className:`mt-2 text-xs font-medium`,children:xK(a,e.kind)}),(0,U.jsxs)(`button`,{type:`button`,onClick:()=>i(e.sourceId,e.pointer),className:`mt-2 block w-full rounded-md bg-muted/50 p-2 text-start hover:bg-muted focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,"aria-label":Z(a,`model.openDeclaration`),children:[(0,U.jsx)(`code`,{className:`block truncate text-[10px] text-muted-foreground`,children:e.sourceId.replace(`:`,`/`)}),(0,U.jsxs)(`code`,{className:`mt-0.5 block break-all text-[10px]`,children:[e.pointer,` = `,JSON.stringify(e.value)]})]})]})}function UK({label:e,sidebarLabel:t,sidebar:n,selectedId:r,graph:i,children:a}){let{language:o}=X(),[s,c]=H.useState(!1),l=i.relations.filter(({sourceId:e,targetId:t})=>e===r||t===r).length;return(0,U.jsx)(`section`,{className:`@container/explorer h-full min-h-0`,"aria-label":e,children:(0,U.jsxs)(`div`,{className:`grid h-full min-h-0 grid-cols-1 @min-[42rem]/explorer:grid-cols-[15rem_minmax(0,1fr)]`,children:[(0,U.jsx)(`div`,{className:`hidden min-h-0 @min-[42rem]/explorer:block`,children:n}),(0,U.jsxs)(`div`,{className:`grid min-h-0 grid-cols-1 @min-[64rem]/explorer:grid-cols-[minmax(28rem,1fr)_24rem]`,children:[(0,U.jsxs)(`div`,{className:`relative min-h-0 min-w-0`,children:[(0,U.jsxs)(`div`,{className:`absolute end-4 top-2.5 z-20 flex items-center gap-1`,children:[(0,U.jsxs)(pv,{children:[(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(mv,{asChild:!0,children:(0,U.jsx)(Y,{type:`button`,variant:`ghost`,size:`icon-sm`,className:`@min-[42rem]/explorer:hidden`,"aria-label":t,children:(0,U.jsx)(dn,{"aria-hidden":!0})})})}),(0,U.jsx)(Tv,{children:t})]}),(0,U.jsxs)(_v,{side:`left`,closeLabel:Z(o,`common.close`),className:`w-[19rem] gap-0 bg-sidebar p-0 sm:max-w-[19rem]`,children:[(0,U.jsxs)(vv,{className:`sr-only`,children:[(0,U.jsx)(yv,{children:t}),(0,U.jsx)(bv,{children:t})]}),n]})]},`objects:${r}`),(0,U.jsxs)(pv,{open:s,onOpenChange:c,children:[(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(mv,{asChild:!0,children:(0,U.jsxs)(Y,{type:`button`,variant:`ghost`,size:`sm`,className:`@min-[64rem]/explorer:hidden`,"aria-label":`${Z(o,`model.relationships`)} ${l}`,children:[(0,U.jsx)(Sn,{"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`font-mono text-xs`,children:l})]})})}),(0,U.jsx)(Tv,{children:Z(o,`model.relationships`)})]}),(0,U.jsxs)(_v,{side:`right`,closeLabel:Z(o,`common.close`),className:`w-full gap-0 p-0 sm:max-w-[26rem]`,children:[(0,U.jsxs)(vv,{className:`sr-only`,children:[(0,U.jsx)(yv,{children:Z(o,`model.relationships`)}),(0,U.jsx)(bv,{children:Z(o,`model.relationships`)})]}),(0,U.jsx)(BK,{selectedId:r,graph:i,onNavigate:()=>c(!1)})]})]}),(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsx)(Y,{asChild:!0,variant:`ghost`,size:`icon-sm`,children:(0,U.jsx)(`a`,{href:RK(`/admin/dev`,r),"aria-label":Z(o,`model.openGraph`),children:(0,U.jsx)(Tt,{"aria-hidden":!0})})})}),(0,U.jsx)(Tv,{children:Z(o,`model.openGraph`)})]})]}),(0,U.jsx)(`main`,{className:`h-full min-w-0 overflow-y-auto @min-[64rem]/explorer:border-e`,children:a})]}),(0,U.jsx)(`div`,{className:`hidden min-h-0 @min-[64rem]/explorer:block`,children:(0,U.jsx)(BK,{selectedId:r,graph:i})})]})]})})}function WK(e){let t=[],n=(e,r=``,i=`/spec/schema`)=>{let a=new Set(e.required??[]);for(let[o,s]of Object.entries(e.properties??{})){let e=r?`${r}.${o}`:o,c=`${i}/properties/${KK(o)}`;t.push({path:e,pointer:c,type:qK(s),required:a.has(o),constraints:JK(s),reference:typeof s[`x-mantle-ref`]==`string`?s[`x-mantle-ref`]:null}),s.properties&&n(s,e,c),s.items?.properties&&n(s.items,`${e}[]`,`${c}/items`)}};return n(e),t}function GK(e,t,n){let r=`Schema:${t.name}`;return[...e.reference?[{kind:`reference`,target:e.reference,sourceId:r,pointer:`${e.pointer}/x-mantle-ref`}]:[],...t.translates?.on===e.path?[{kind:`translation`,target:`${t.translates.parent}.${e.path}`,direction:`outgoing`,sourceId:r,pointer:`/spec/translates`}]:[],...n.flatMap(n=>n.translates?.parent===t.name&&n.translates.on===e.path?[{kind:`translation`,target:`${n.name}.${e.path}`,direction:`incoming`,sourceId:`Schema:${n.name}`,pointer:`/spec/translates`}]:[]),...t.uniqueIndexes.flatMap((t,n)=>t.includes(e.path)?[{kind:`unique`,index:n,fields:t,sourceId:r,pointer:`/spec/uniqueIndexes/${n}`}]:[]),...t.indexes.flatMap((t,n)=>t.includes(e.path)?[{kind:`index`,index:n,fields:t,sourceId:r,pointer:`/spec/indexes/${n}`}]:[])]}function KK(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function qK(e){return Array.isArray(e.type)?e.type.join(` | `):e.type?e.type:e.properties?`object`:e.items?`array`:`—`}function JK(e){let t=[];e.enum&&t.push(`enum: ${e.enum.map(YK).join(` | `)}`),e.format&&t.push(`format: ${e.format}`),e.pattern&&t.push(`pattern: ${e.pattern}`);for(let n of[`minimum`,`maximum`,`minLength`,`maxLength`,`minItems`,`maxItems`])e[n]!==void 0&&t.push(`${n}: ${e[n]}`);e.default!==void 0&&t.push(`default: ${YK(e.default)}`),e.readOnly&&t.push(`readOnly`),e.nullable&&t.push(`nullable`),e.additionalProperties===!1&&t.push(`closed object`);for(let n of[`x-mantle-bind`,`x-mcp-hint`])e[n]&&t.push(`${n}: ${e[n]}`);return t}function YK(e){return typeof e==`string`?e:JSON.stringify(e)??String(e)}function XK(){let{language:e}=X(),t=_y(),{navigate:n}=gy(),[r,i]=H.useState(``),a=rt(sy()),o=a.data?[...a.data.dataModel.schemas.map(e=>({kind:`Schema`,id:`Schema:${e.name}`,model:e})),...a.data.dataModel.views.map(e=>({kind:`View`,id:`View:${e.name}`,model:e}))]:[],s=new URLSearchParams(t.search),c=s.get(`selected`),l=o.find(e=>e.id===c)??o[0]??null,u=s.get(`tab`),d=u===`raw`||u===`manifest`?u:`definition`,f=d===`manifest`?s.get(`pointer`):null,p=r.trim().toLowerCase(),m=p?o.filter(t=>`${t.kind} ${t.model.name} ${ry(t.model.title,e)??``}`.toLowerCase().includes(p)):o,h=e=>n(RK(`/admin/dev/model`,e)),g=(e,t)=>{n(RK(`/admin/dev/model`,e,{tab:`manifest`,pointer:t}))},_=e=>{(e===`definition`||e===`raw`||e===`manifest`)&&n(RK(`/admin/dev/model`,l.id,e===`definition`?void 0:{tab:e}))};return a.isError?(0,U.jsx)(`div`,{className:`p-6`,children:(0,U.jsx)(Fb,{error:a.error})}):a.isLoading?(0,U.jsx)(xv,{className:`h-full w-full rounded-none`}):!a.data||!l?(0,U.jsx)(U.Fragment,{}):(0,U.jsx)(UK,{label:Z(e,`model.title`),sidebarLabel:Z(e,`model.objects`),sidebar:(0,U.jsx)(ZK,{items:m,selectedId:l.id,search:r,onSearch:i,onSelect:h}),selectedId:l.id,graph:a.data.graph,children:l.kind===`Schema`?(0,U.jsx)(eq,{model:l.model,schemas:a.data.dataModel.schemas,tab:d,manifestFocus:f,onTabChange:_,onOpenManifest:g}):(0,U.jsx)(rq,{model:l.model,tab:d,manifestFocus:f,onTabChange:_})})}function ZK({items:e,selectedId:t,search:n,onSearch:r,onSelect:i}){let{language:a}=X();return(0,U.jsxs)(`aside`,{className:`flex h-full min-h-0 flex-col border-e bg-sidebar text-sidebar-foreground`,"aria-label":Z(a,`model.objects`),children:[(0,U.jsx)(Bv,{className:`border-b border-sidebar-border`,children:(0,U.jsxs)(`label`,{className:`relative`,children:[(0,U.jsx)(kn,{className:`pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`sr-only`,children:Z(a,`model.search`)}),(0,U.jsx)(zv,{value:n,onChange:e=>r(e.currentTarget.value),placeholder:Z(a,`model.search`),className:`ps-8`})]})}),(0,U.jsxs)(Hv,{className:`gap-0 p-2`,children:[(0,U.jsx)(QK,{title:Z(a,`model.schemas`),icon:zt,items:e.filter(e=>e.kind===`Schema`),selectedId:t,onSelect:i}),(0,U.jsx)(QK,{title:Z(a,`model.views`),icon:Wt,items:e.filter(e=>e.kind===`View`),selectedId:t,onSelect:i})]})]})}function QK({title:e,icon:t,items:n,selectedId:r,onSelect:i}){return(0,U.jsxs)(Ry,{defaultOpen:!0,className:`group/model mb-1`,children:[(0,U.jsxs)(zy,{className:`flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm font-medium hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,children:[(0,U.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`flex-1 text-start`,children:e}),(0,U.jsx)(`span`,{className:`font-mono text-[10px] text-sidebar-foreground/60`,children:n.length}),(0,U.jsx)(At,{className:`size-4 transition-transform group-data-[state=open]/model:rotate-90`,"aria-hidden":!0})]}),(0,U.jsx)(By,{className:`ms-4 border-s border-sidebar-border ps-2`,children:n.map(e=>(0,U.jsx)(`button`,{type:`button`,onClick:()=>i(e.id),"aria-pressed":e.id===r,className:J(`mt-1 block h-8 w-full truncate rounded-md px-2 text-start font-mono text-xs hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,e.id===r&&`bg-sidebar-accent font-medium text-sidebar-accent-foreground`),children:e.model.name},e.id))})]})}function $K({name:e,title:t}){return(0,U.jsxs)(`div`,{className:`flex min-h-14 items-center gap-3 border-b px-5 py-3 pe-32`,children:[(0,U.jsx)(`h1`,{className:`min-w-0 font-mono text-sm font-semibold`,children:e}),t&&t!==e?(0,U.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:t}):null]})}function eq({model:e,schemas:t,tab:n,manifestFocus:r,onTabChange:i,onOpenManifest:a}){let{language:o}=X(),s=WK(e.schema);return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($K,{name:e.name,title:ry(e.title,o)}),(0,U.jsxs)(aq,{definitionLabel:Z(o,`model.fields`),rawLabel:Z(o,`model.rawSchema`),rawValue:e.schema,manifestValue:e.manifest,tab:n,manifestFocus:r,onTabChange:i,children:[(0,U.jsxs)(Bx,{children:[(0,U.jsx)(Vx,{children:(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Wx,{className:`ps-5`,children:Z(o,`model.path`)}),(0,U.jsx)(Wx,{children:Z(o,`model.type`)}),(0,U.jsx)(Wx,{children:Z(o,`model.required`)}),(0,U.jsx)(Wx,{children:Z(o,`model.constraints`)})]})}),(0,U.jsx)(Hx,{children:s.map(n=>(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Gx,{className:`ps-5`,children:(0,U.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,U.jsx)(`span`,{className:`font-mono text-xs`,children:n.path}),(0,U.jsx)(tq,{markers:GK(n,e,t),onOpenManifest:a})]})}),(0,U.jsx)(Gx,{children:(0,U.jsx)(mx,{variant:`secondary`,className:`font-mono text-[10px]`,children:n.type})}),(0,U.jsx)(Gx,{children:n.required?Z(o,`common.yes`):`—`}),(0,U.jsx)(Gx,{className:`max-w-md whitespace-normal text-xs text-muted-foreground`,children:n.constraints.length?n.constraints.join(` · `):`—`})]},n.path))})]}),s.length?null:(0,U.jsx)(`p`,{className:`p-5 text-sm text-muted-foreground`,children:Z(o,`model.noFields`)})]})]})}function tq({markers:e,onOpenManifest:t}){let{language:n}=X();return(0,U.jsx)(`span`,{className:`inline-flex items-center gap-1`,children:e.map(e=>{let r=nq(n,e),i=r.icon;return(0,U.jsxs)(Cv,{children:[(0,U.jsx)(wv,{asChild:!0,children:(0,U.jsxs)(`button`,{type:`button`,className:J(`inline-flex h-5 items-center gap-1 rounded border px-1 font-mono text-[9px] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,r.tone),"aria-label":r.label,onClick:()=>t(e.sourceId,e.pointer),children:[(0,U.jsx)(i,{className:`size-3`,"aria-hidden":!0}),r.short?(0,U.jsx)(`span`,{children:r.short}):null]})}),(0,U.jsx)(Tv,{children:r.label})]},`${e.kind}:${e.sourceId}:${e.pointer}`)})})}function nq(e,t){return t.kind===`reference`?{icon:on,label:Z(e,`model.marker.reference`,{target:t.target}),short:null,tone:`border-violet-500/30 bg-violet-500/10 text-violet-700 dark:text-violet-300`}:t.kind===`translation`?{icon:nn,label:Z(e,t.direction===`outgoing`?`model.marker.translationParent`:`model.marker.translationChild`,{target:t.target}),short:null,tone:`border-blue-500/30 bg-blue-500/10 text-blue-700 dark:text-blue-300`}:t.kind===`unique`?{icon:tn,label:Z(e,`model.marker.unique`,{index:String(t.index+1),fields:t.fields.join(` + `)}),short:`UQ${t.index+1}`,tone:`border-amber-500/30 bg-amber-500/10 text-amber-700 dark:text-amber-300`}:{icon:dn,label:Z(e,`model.marker.index`,{index:String(t.index+1),fields:t.fields.join(` + `)}),short:`IDX${t.index+1}`,tone:`border-border bg-muted/60 text-muted-foreground`}}function rq({model:e,tab:t,manifestFocus:n,onTabChange:r}){let{language:i}=X(),a=e.query;return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)($K,{name:e.name,title:ry(e.title,i)}),(0,U.jsx)(aq,{definitionLabel:Z(i,`model.queryKind`),rawLabel:Z(i,`model.rawQuery`),rawValue:a,manifestValue:e.manifest,tab:t,manifestFocus:n,onTabChange:r,children:(0,U.jsxs)(`div`,{className:`space-y-5 p-5`,children:[(0,U.jsx)(iq,{entries:a.kind===`declarative`?[[Z(i,`model.queryKind`),a.kind],[Z(i,`model.source`),a.from],[Z(i,`model.fields`),a.fields?.join(`, `)??Z(i,`model.allFields`)],[Z(i,`model.order`),a.orderBy.length?a.orderBy.map(({field:e,direction:t})=>`${e} ${t}`).join(`, `):`—`],[Z(i,`model.limit`),a.limit?.toString()??`—`]]:[[Z(i,`model.queryKind`),a.kind],[Z(i,`model.dialect`),a.dialect],[Z(i,`model.limit`),a.limit?.toString()??`—`]]}),a.kind===`native`?(0,U.jsx)(lq,{value:a.statement}):null,a.kind===`declarative`&&a.filter?(0,U.jsx)(cq,{label:Z(i,`model.filter`),value:a.filter}):null,a.params?(0,U.jsx)(cq,{label:Z(i,`model.params`),value:a.params}):null]})})]})}function iq({entries:e}){return(0,U.jsx)(`dl`,{className:`grid grid-cols-[auto_minmax(0,1fr)] gap-x-3 gap-y-2 text-xs`,children:e.map(([e,t])=>(0,U.jsxs)(H.Fragment,{children:[(0,U.jsx)(`dt`,{className:`text-muted-foreground`,children:e}),(0,U.jsx)(`dd`,{className:`break-words font-mono text-foreground`,children:t})]},e))})}function aq({definitionLabel:e,rawLabel:t,rawValue:n,manifestValue:r,tab:i,manifestFocus:a,onTabChange:o,children:s}){let{language:c}=X();return(0,U.jsxs)(Zk,{value:i,onValueChange:o,className:`gap-0`,children:[(0,U.jsxs)($k,{variant:`line`,className:`h-10 w-full justify-start rounded-none border-b px-5`,children:[(0,U.jsx)(eA,{value:`definition`,className:`flex-none px-3`,children:e}),(0,U.jsx)(eA,{value:`raw`,className:`flex-none px-3`,children:t}),(0,U.jsx)(eA,{value:`manifest`,className:`flex-none px-3`,children:Z(c,`model.manifest`)})]}),(0,U.jsx)(tA,{value:`definition`,children:s}),(0,U.jsx)(tA,{value:`raw`,children:(0,U.jsx)(oq,{value:n,label:t})}),(0,U.jsx)(tA,{value:`manifest`,children:(0,U.jsx)(oq,{value:r,label:Z(c,`model.compiledManifest`),focus:a})})]})}function oq({value:e,label:t,focus:n}){let r=JSON.stringify(e,null,2)??``;return(0,U.jsxs)(`div`,{className:`space-y-3 p-5`,children:[n?(0,U.jsxs)(`div`,{className:`rounded-md border border-primary/40 bg-primary/10 px-3 py-2`,children:[(0,U.jsx)(`div`,{className:`text-[10px] font-medium uppercase tracking-wider text-muted-foreground`,children:t}),(0,U.jsx)(`code`,{className:`mt-1 block break-all text-xs font-medium text-foreground`,children:n})]}):null,(0,U.jsxs)(`div`,{className:`relative`,children:[(0,U.jsx)(sq,{value:r,label:t}),(0,U.jsx)(lq,{value:r,className:`max-h-none pe-12`})]})]})}function sq({value:e,label:t}){let{language:n}=X(),[r,i]=H.useState(!1);async function a(){try{await navigator.clipboard.writeText(e),i(!0),window.setTimeout(()=>i(!1),1400)}catch{i(!1)}}return(0,U.jsx)(Y,{type:`button`,variant:`secondary`,size:`icon-sm`,className:`absolute end-2 top-2 z-10 shadow-sm`,onClick:()=>void a(),"aria-label":`${Z(n,`common.copy`)} ${t}`,"aria-pressed":r,children:r?(0,U.jsx)(Ot,{className:`text-[color:var(--success)]`,"aria-hidden":!0}):(0,U.jsx)(Rt,{"aria-hidden":!0})})}function cq({label:e,value:t}){return(0,U.jsxs)(`section`,{children:[(0,U.jsx)(`h3`,{className:`mb-2 text-sm font-medium`,children:e}),(0,U.jsx)(lq,{value:JSON.stringify(t,null,2)??``})]})}function lq({value:e,className:t}){return(0,U.jsx)(`pre`,{className:J(`max-h-72 overflow-auto rounded-lg border bg-muted/40 p-3 font-mono text-[11px] leading-5`,t),children:(0,U.jsx)(`code`,{children:e})})}function uq(){let{language:e}=X(),t=_y(),{navigate:n}=gy(),r=rt(sy()),i=new URLSearchParams(t.search).get(`selected`);return r.isError?(0,U.jsx)(`div`,{className:`p-6`,children:(0,U.jsx)(Fb,{error:r.error})}):r.isLoading?(0,U.jsx)(xv,{className:`h-full w-full rounded-none`}):r.data?(0,U.jsx)(`section`,{className:`relative h-full min-h-0`,"aria-label":Z(e,`developer.graph.title`),children:(0,U.jsx)(DK,{graph:r.data.graph,selectedAtomId:i,onSelect:e=>n(RK(`/admin/dev`,e)),onOpen:e=>n(zK(e.id))})}):(0,U.jsx)(U.Fragment,{})}var dq=[`public`,`members`,`staff`,`api-clients`,`system`];function fq(){let{language:e}=X(),t=_y(),{navigate:n}=gy(),[r,i]=H.useState(``),a=rt(sy()),o=a.data?[...a.data.logic.triggers.map(e=>({kind:`Trigger`,id:`Trigger:${e.name}`,model:e})),...a.data.logic.procedures.map(e=>({kind:`Procedure`,id:`Procedure:${e.name}`,model:e}))]:[],s=new URLSearchParams(t.search),c=o.find(({id:e})=>e===s.get(`selected`))??o[0]??null,l=s.get(`tab`),u=l===`contract`||l===`manifest`?l:`overview`,d=u===`manifest`?s.get(`pointer`):null,f=r.trim().toLowerCase(),p=f?o.filter(t=>`${t.kind} ${t.model.name} ${t.kind===`Procedure`?ry(t.model.title,e)??``:`${SK(e,t.model.audience)} ${Sq(t.model.source)}`}`.toLowerCase().includes(f)):o;return a.isError?(0,U.jsx)(`div`,{className:`p-6`,children:(0,U.jsx)(Fb,{error:a.error})}):a.isLoading?(0,U.jsx)(xv,{className:`h-full w-full rounded-none`}):!a.data||!c?(0,U.jsx)(U.Fragment,{}):(0,U.jsx)(UK,{label:Z(e,`logic.title`),sidebarLabel:Z(e,`logic.objects`),sidebar:(0,U.jsx)(pq,{items:p,selectedId:c.id,search:r,onSearch:i,onSelect:e=>n(RK(`/admin/dev/logic`,e))}),selectedId:c.id,graph:a.data.graph,children:(0,U.jsx)(_q,{item:c,snapshot:a.data,tab:u,manifestFocus:d,onTabChange:e=>{(e===`overview`||e===`contract`||e===`manifest`)&&n(RK(`/admin/dev/logic`,c.id,e===`overview`?void 0:{tab:e}))},onNavigate:e=>n(zK(e))})})}function pq({items:e,selectedId:t,search:n,onSearch:r,onSelect:i}){let{language:a}=X();return(0,U.jsxs)(`aside`,{className:`flex h-full min-h-0 flex-col border-e bg-sidebar text-sidebar-foreground`,"aria-label":Z(a,`logic.objects`),children:[(0,U.jsx)(Bv,{className:`border-b border-sidebar-border`,children:(0,U.jsxs)(`label`,{className:`relative`,children:[(0,U.jsx)(kn,{className:`pointer-events-none absolute start-2.5 top-1/2 size-4 -translate-y-1/2 text-muted-foreground`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`sr-only`,children:Z(a,`logic.search`)}),(0,U.jsx)(zv,{value:n,onChange:e=>r(e.currentTarget.value),placeholder:Z(a,`logic.search`),className:`ps-8`})]})}),(0,U.jsxs)(Hv,{className:`gap-0 p-2`,children:[(0,U.jsx)(mq,{items:e.filter(e=>e.kind===`Trigger`),selectedId:t,onSelect:i}),(0,U.jsx)(hq,{title:Z(a,`logic.procedures`),icon:Xn,items:e.filter(e=>e.kind===`Procedure`),selectedId:t,onSelect:i})]})]})}function mq({items:e,selectedId:t,onSelect:n}){let{language:r}=X();return(0,U.jsxs)(Ry,{defaultOpen:!0,className:`group/logic mb-1`,children:[(0,U.jsxs)(zy,{className:`flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm font-medium hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,children:[(0,U.jsx)($n,{className:`size-4`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`flex-1 text-start`,children:Z(r,`logic.triggers`)}),(0,U.jsx)(`span`,{className:`font-mono text-[10px] text-sidebar-foreground/60`,children:e.length}),(0,U.jsx)(At,{className:`size-4 transition-transform group-data-[state=open]/logic:rotate-90`,"aria-hidden":!0})]}),(0,U.jsx)(By,{className:`ms-4 border-s border-sidebar-border ps-2`,children:dq.map(i=>{let a=e.filter(e=>e.model.audience===i);return a.length?(0,U.jsxs)(`section`,{className:`mt-2`,"aria-label":SK(r,i),children:[(0,U.jsxs)(`div`,{className:`flex h-6 items-center gap-2 px-2 text-[10px] font-semibold uppercase tracking-wider text-sidebar-foreground/60`,children:[(0,U.jsx)(`span`,{className:`flex-1`,children:SK(r,i)}),(0,U.jsx)(`span`,{className:`font-mono`,children:a.length})]}),a.map(e=>(0,U.jsx)(gq,{item:e,selected:e.id===t,onSelect:n},e.id))]},i):null})})]})}function hq({title:e,icon:t,items:n,selectedId:r,onSelect:i}){return(0,U.jsxs)(Ry,{defaultOpen:!0,className:`group/logic mb-1`,children:[(0,U.jsxs)(zy,{className:`flex h-8 w-full items-center gap-2 rounded-md px-2 text-sm font-medium hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,children:[(0,U.jsx)(t,{className:`size-4`,"aria-hidden":!0}),(0,U.jsx)(`span`,{className:`flex-1 text-start`,children:e}),(0,U.jsx)(`span`,{className:`font-mono text-[10px] text-sidebar-foreground/60`,children:n.length}),(0,U.jsx)(At,{className:`size-4 transition-transform group-data-[state=open]/logic:rotate-90`,"aria-hidden":!0})]}),(0,U.jsx)(By,{className:`ms-4 border-s border-sidebar-border ps-2`,children:n.map(e=>(0,U.jsx)(gq,{item:e,selected:e.id===r,onSelect:i},e.id))})]})}function gq({item:e,selected:t,onSelect:n}){let r=e.kind===`Trigger`?Sq(e.model.source):e.model.handler.kind;return(0,U.jsxs)(`button`,{type:`button`,onClick:()=>n(e.id),"aria-pressed":t,className:J(`mt-1 flex h-8 w-full items-center gap-2 rounded-md px-2 text-start hover:bg-sidebar-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-sidebar-ring`,t&&`bg-sidebar-accent font-medium text-sidebar-accent-foreground`),children:[(0,U.jsx)(`span`,{className:`min-w-0 flex-1 truncate font-mono text-xs`,children:e.model.name}),(0,U.jsx)(`span`,{className:`shrink-0 rounded border border-sidebar-border bg-sidebar-accent/50 px-1 py-0.5 font-mono text-[8px] font-medium uppercase text-sidebar-foreground/70`,children:r})]})}function _q({item:e,snapshot:t,tab:n,manifestFocus:r,onTabChange:i,onNavigate:a}){let{language:o}=X(),s=e.kind===`Procedure`?e.model:t.logic.procedures.find(({name:t})=>t===e.model.target)??null,c=e.kind===`Procedure`?ry(e.model.title,o):null,l=e.kind===`Procedure`?ry(e.model.description,o):null,u=t.graph.atoms.find(({id:t})=>t===e.id),d=l||(e.kind===`Trigger`?Z(o,`developer.graph.summary.trigger`,{audience:SK(o,e.model.audience),transport:Sq(e.model.source),target:e.model.target}):e.model.handler.kind===`builtin`?Z(o,`developer.graph.summary.builtin`,{op:e.model.handler.op,schema:e.model.handler.schema}):Z(o,`developer.graph.summary.ref`,{ref:e.model.handler.ref}));return(0,U.jsxs)(U.Fragment,{children:[(0,U.jsxs)(`div`,{className:`flex min-h-14 items-center gap-3 border-b px-5 py-3 pe-32`,children:[(0,U.jsx)(`span`,{className:J(`inline-flex rounded border px-1.5 py-0.5 text-[9px] font-semibold uppercase tracking-wider`,gK[e.kind]),children:CK(o,e.kind)}),e.kind===`Trigger`?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(mx,{variant:`outline`,className:`text-[9px] uppercase`,children:SK(o,e.model.audience)}),(0,U.jsx)(mx,{variant:`secondary`,className:`font-mono text-[9px]`,children:Sq(e.model.source)})]}):null,(0,U.jsx)(`h1`,{className:`min-w-0 truncate font-mono text-sm font-semibold`,children:e.model.name}),c&&c!==e.model.name?(0,U.jsx)(`span`,{className:`truncate text-sm text-muted-foreground`,children:c}):null]}),(0,U.jsxs)(Zk,{value:n,onValueChange:i,className:`gap-0`,children:[(0,U.jsxs)($k,{variant:`line`,className:`h-10 w-full justify-start rounded-none border-b px-5`,children:[(0,U.jsx)(eA,{value:`overview`,className:`flex-none px-3`,children:Z(o,`logic.overview`)}),(0,U.jsx)(eA,{value:`contract`,className:`flex-none px-3`,children:Z(o,`logic.contract`)}),(0,U.jsx)(eA,{value:`manifest`,className:`flex-none px-3`,children:Z(o,`model.manifest`)})]}),(0,U.jsxs)(tA,{value:`overview`,className:`space-y-6 p-5`,children:[(0,U.jsx)(`p`,{className:`max-w-3xl text-sm leading-6 text-muted-foreground`,children:d}),u?(0,U.jsx)(vq,{selectedId:e.id,graph:t.graph,onNavigate:a}):null,(0,U.jsxs)(`section`,{className:`space-y-3`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(o,`logic.configuration`)}),(0,U.jsx)(iq,{entries:e.kind===`Trigger`?xq(o,e.model):Cq(o,e.model)})]}),s?(0,U.jsx)(yq,{predicates:s.authorization,guard:s.guard}):null]}),(0,U.jsxs)(tA,{value:`contract`,className:`space-y-7 p-5`,children:[e.kind===`Trigger`&&s?(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(o,`logic.contractFrom`,{target:s.name})}):null,s?(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(bq,{title:Z(o,`logic.input`),schema:s.input,onNavigate:a}),(0,U.jsx)(bq,{title:Z(o,`logic.output`),schema:s.output,onNavigate:a})]}):(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(o,`logic.noContract`)})]}),(0,U.jsx)(tA,{value:`manifest`,children:(0,U.jsx)(oq,{value:e.model.manifest,label:Z(o,`model.compiledManifest`),focus:r})})]})]})}function vq({selectedId:e,graph:t,onNavigate:n}){let{language:r}=X(),i=jK(t,e),a=new Map(t.atoms.map(e=>[e.id,e])),o=MK(t,i.nodeIds,i.startId).map(e=>a.get(e)).filter(e=>!!e);return(0,U.jsxs)(`section`,{className:`space-y-3`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(r,`logic.execution`)}),(0,U.jsx)(`div`,{className:`flex flex-wrap items-center gap-2 rounded-xl border bg-muted/20 p-3`,children:o.map((t,i)=>(0,U.jsxs)(H.Fragment,{children:[i?(0,U.jsx)(_t,{className:`size-4 shrink-0 text-muted-foreground`,"aria-hidden":!0}):null,(0,U.jsxs)(`button`,{type:`button`,onClick:()=>n(t.id),className:J(`min-w-0 max-w-52 rounded-lg border bg-card px-3 py-2 text-start shadow-sm hover:bg-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring`,t.id===e&&`ring-2 ring-primary/50`),children:[(0,U.jsx)(`span`,{className:J(`inline-flex rounded border px-1 py-0.5 text-[8px] font-semibold uppercase tracking-wider`,gK[t.kind]),children:CK(r,t.kind)}),(0,U.jsx)(`span`,{className:`mt-1 block truncate font-mono text-xs font-semibold`,children:t.name})]})]},t.id))})]})}function yq({predicates:e,guard:t}){let{language:n}=X();return(0,U.jsxs)(`section`,{className:`space-y-3`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-medium`,children:Z(n,`logic.authorization`)}),(0,U.jsxs)(`div`,{className:`rounded-lg border bg-card p-3`,children:[e.length?(0,U.jsx)(`div`,{className:`flex flex-wrap gap-2`,children:e.map((e,t)=>(0,U.jsx)(mx,{variant:`secondary`,className:`font-mono text-[10px]`,children:wq(e)},t))}):(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(n,`logic.noAuthorization`)}),t?(0,U.jsxs)(`p`,{className:`mt-3 text-xs text-muted-foreground`,children:[Z(n,`logic.guard`),`: `,(0,U.jsx)(`code`,{className:`text-foreground`,children:t})]}):null]})]})}function bq({title:e,schema:t,onNavigate:n}){let{language:r}=X(),i=WK(t);return(0,U.jsxs)(`section`,{children:[(0,U.jsx)(`h2`,{className:`mb-3 text-sm font-medium`,children:e}),(0,U.jsxs)(`div`,{className:`overflow-hidden rounded-lg border`,children:[(0,U.jsxs)(Bx,{children:[(0,U.jsx)(Vx,{children:(0,U.jsxs)(Ux,{children:[(0,U.jsx)(Wx,{children:Z(r,`model.path`)}),(0,U.jsx)(Wx,{children:Z(r,`model.type`)}),(0,U.jsx)(Wx,{children:Z(r,`model.required`)}),(0,U.jsx)(Wx,{children:Z(r,`model.constraints`)})]})}),(0,U.jsx)(Hx,{children:i.map(e=>(0,U.jsxs)(Ux,{children:[(0,U.jsxs)(Gx,{children:[(0,U.jsx)(`span`,{className:`font-mono text-xs`,children:e.path}),e.reference?(0,U.jsx)(`button`,{type:`button`,className:`ms-2 inline-flex rounded p-0.5 text-violet-600 hover:bg-violet-500/10 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring dark:text-violet-300`,onClick:()=>n(`Schema:${e.reference}`),"aria-label":Z(r,`model.marker.reference`,{target:e.reference}),children:(0,U.jsx)(on,{className:`size-3.5`,"aria-hidden":!0})}):null]}),(0,U.jsx)(Gx,{children:(0,U.jsx)(mx,{variant:`secondary`,className:`font-mono text-[10px]`,children:e.type})}),(0,U.jsx)(Gx,{children:e.required?Z(r,`common.yes`):`—`}),(0,U.jsx)(Gx,{className:`max-w-md whitespace-normal text-xs text-muted-foreground`,children:e.constraints.length?e.constraints.join(` · `):`—`})]},e.path))})]}),i.length?null:(0,U.jsx)(`p`,{className:`p-4 text-sm text-muted-foreground`,children:Z(r,`model.noFields`)})]})]})}function xq(e,t){let n=[[Z(e,`logic.target`),t.target],[Z(e,`developer.graph.fact.audience`),SK(e,t.audience)],[Z(e,`developer.graph.fact.transport`),Sq(t.source)]];return t.source.kind===`http`?[...n,[Z(e,`logic.method`),t.source.method],[Z(e,`model.path`),t.source.path]]:t.source.kind===`mcp`?[...n,[Z(e,`logic.surface`),t.source.surface]]:[...n,[Z(e,`developer.graph.fact.schema`),t.source.schema],[Z(e,`logic.hooks`),t.source.on.join(`, `)],[Z(e,`logic.errorPolicy`),t.source.errorPolicy??`—`]]}function Sq(e){return e.kind===`lifecycle`?`SYSTEM`:e.kind===`mcp`?`MCP`:`HTTP`}function Cq(e,t){let n=[[Z(e,`developer.graph.fact.audience`),SK(e,t.audience)],[Z(e,`developer.graph.fact.handler`),t.handler.kind===`builtin`?Z(e,`developer.graph.builtin`):t.handler.ref]];return t.handler.kind===`builtin`?[...n,[Z(e,`developer.graph.fact.operation`),t.handler.op],[Z(e,`developer.graph.fact.schema`),t.handler.schema],[Z(e,`developer.graph.fact.match`),t.handler.match?.join(` + `)??`—`]]:n}function wq(e){return typeof e==`string`?e:JSON.stringify(e)}var Tq=`import { bindWebMcp } from "@aotter/mantle-web/webmcp";
63
+
64
+ const binding = await bindWebMcp();`;function Eq(){let{language:e}=X(),t=_y(),{navigate:n}=gy(),r=rt(sy()),i=new URLSearchParams(t.search).get(`tab`),a=i===`mcp`||i===`webmcp`?i:`api`;if(r.isError)return(0,U.jsx)(`div`,{className:`p-6`,children:(0,U.jsx)(Fb,{error:r.error})});if(r.isLoading)return(0,U.jsx)(xv,{className:`h-full w-full rounded-none`});if(!r.data)return(0,U.jsx)(U.Fragment,{});let{http:o,callable:s}=r.data.interfaces,c=o.filter(e=>e.kind===`view`),l=o.filter(e=>e.kind===`procedure`),u=s.filter(e=>e.surface===`public`&&e.kind===`view`);return(0,U.jsxs)(`section`,{className:`h-full min-h-0 overflow-y-auto`,"aria-label":Z(e,`docs.title`),children:[(0,U.jsxs)(`header`,{className:`border-b px-5 py-5 sm:px-7`,children:[(0,U.jsx)(`h1`,{className:`text-xl font-semibold`,children:Z(e,`docs.title`)}),(0,U.jsx)(`p`,{className:`mt-1 max-w-3xl text-sm text-muted-foreground`,children:Z(e,`docs.intro`)})]}),(0,U.jsxs)(Zk,{value:a,onValueChange:e=>n(`/admin/dev/docs?tab=${e}`),className:`gap-0`,children:[(0,U.jsxs)($k,{variant:`line`,className:`sticky top-0 z-10 h-11 w-full justify-start rounded-none border-b bg-background/95 px-5 backdrop-blur sm:px-7`,children:[(0,U.jsxs)(eA,{value:`api`,className:`flex-none`,children:[(0,U.jsx)(Vt,{"aria-hidden":!0}),Z(e,`docs.api`)]}),(0,U.jsxs)(eA,{value:`mcp`,className:`flex-none`,children:[(0,U.jsx)(Dq,{}),Z(e,`docs.mcp`)]}),(0,U.jsxs)(eA,{value:`webmcp`,className:`flex-none`,children:[(0,U.jsx)(Tt,{"aria-hidden":!0}),Z(e,`docs.webmcp`)]})]}),(0,U.jsx)(tA,{value:`api`,children:(0,U.jsxs)(Oq,{intro:Z(e,`docs.httpIntro`),children:[c.length?(0,U.jsx)(jq,{title:Z(e,`docs.publicEndpoint`),operations:c}):null,l.length?(0,U.jsx)(jq,{title:CK(e,`Trigger`),operations:l}):null,o.length?null:(0,U.jsx)(Fq,{})]})}),(0,U.jsx)(tA,{value:`mcp`,children:(0,U.jsxs)(Oq,{intro:Z(e,`docs.mcpIntro`),endpoints:(0,U.jsxs)(U.Fragment,{children:[(0,U.jsx)(kq,{label:Z(e,`docs.publicEndpoint`),value:`/mcp`}),(0,U.jsx)(kq,{label:Z(e,`docs.staffEndpoint`),value:`/mcp/staff`})]}),children:[[`public`,`staff`].map(e=>{let t=s.filter(t=>t.surface===e);return t.length?(0,U.jsxs)(`section`,{className:`space-y-3`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,U.jsx)(Aq,{children:t.map(t=>(0,U.jsx)(Nq,{capability:t},`${e}:${t.name}`))})]},e):null}),s.length?null:(0,U.jsx)(Fq,{})]})}),(0,U.jsx)(tA,{value:`webmcp`,children:(0,U.jsxs)(Oq,{intro:Z(e,`docs.webmcpIntro`),endpoints:(0,U.jsx)(kq,{label:Z(e,`docs.catalogEndpoint`),value:`/api/views`}),children:[(0,U.jsx)(`pre`,{className:`overflow-x-auto rounded-xl border bg-muted/40 p-4 text-xs leading-6`,children:(0,U.jsx)(`code`,{children:Tq})}),(0,U.jsx)(`p`,{className:`text-sm text-muted-foreground`,children:Z(e,`docs.webmcpNote`)}),(0,U.jsx)(Aq,{children:u.map(e=>(0,U.jsx)(Nq,{capability:e,webMcp:!0},e.name))}),u.length?null:(0,U.jsx)(Fq,{})]})})]})]})}function Dq(){return(0,U.jsxs)(`svg`,{viewBox:`0 0 190 195`,fill:`none`,"aria-hidden":!0,children:[(0,U.jsx)(`path`,{d:`M25 97.8528 92.8823 29.9706c9.3727-9.3726 24.5687-9.3726 33.9407 0 9.373 9.3725 9.373 24.5685 0 33.9411L75.5581 115.177`,stroke:`currentColor`,strokeWidth:`12`,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`m76.2653 114.47 50.5577-50.5583c9.373-9.3726 24.569-9.3726 33.942 0l.353.3535c9.373 9.3726 9.373 24.5686 0 33.9411L99.7248 159.6a8 8 0 0 0 0 11.313l12.6062 12.607`,stroke:`currentColor`,strokeWidth:`12`,strokeLinecap:`round`}),(0,U.jsx)(`path`,{d:`m109.853 46.9411-50.2048 50.2046c-9.3725 9.3723-9.3725 24.5683 0 33.9413 9.3726 9.372 24.5686 9.372 33.9412 0l50.2046-50.2048`,stroke:`currentColor`,strokeWidth:`12`,strokeLinecap:`round`})]})}function Oq({intro:e,endpoints:t,children:n}){return(0,U.jsxs)(`div`,{className:`mx-auto max-w-6xl space-y-6 p-5 sm:p-7`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-3`,children:[(0,U.jsx)(`p`,{className:`me-auto max-w-3xl text-sm leading-6 text-muted-foreground`,children:e}),t]}),n]})}function kq({label:e,value:t}){return(0,U.jsxs)(`div`,{className:`rounded-lg border bg-card px-3 py-2`,children:[(0,U.jsx)(`div`,{className:`text-[10px] uppercase tracking-wider text-muted-foreground`,children:e}),(0,U.jsx)(`code`,{className:`text-xs font-semibold`,children:t})]})}function Aq({children:e}){return(0,U.jsx)(`div`,{className:`grid gap-4 xl:grid-cols-2`,children:e})}function jq({title:e,operations:t}){return(0,U.jsxs)(`section`,{className:`space-y-3`,children:[(0,U.jsx)(`h2`,{className:`text-sm font-semibold uppercase tracking-wider text-muted-foreground`,children:e}),(0,U.jsx)(Aq,{children:t.map(e=>(0,U.jsx)(Mq,{operation:e},`${e.method}:${e.path}`))})]})}function Mq({operation:e}){let{language:t}=X();return(0,U.jsxs)(Tb,{children:[(0,U.jsxs)(Eb,{children:[(0,U.jsxs)(`div`,{className:`flex min-w-0 flex-wrap items-center gap-2`,children:[(0,U.jsx)(mx,{variant:e.method===`GET`?`secondary`:`default`,className:`font-mono`,children:e.method}),(0,U.jsx)(`code`,{className:`min-w-0 break-all text-xs font-semibold`,children:e.path})]}),(0,U.jsx)(Db,{className:`font-mono text-sm`,children:(0,U.jsx)(`a`,{href:zK(`${e.kind===`view`?`View`:`Trigger`}:${e.kind===`view`?e.target:e.name}`),className:`hover:underline`,children:e.name})}),(0,U.jsx)(Ob,{children:e.description})]}),(0,U.jsxs)(kb,{className:`space-y-3`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsx)(mx,{variant:`outline`,children:CK(t,e.kind===`view`?`View`:`Procedure`)}),(0,U.jsx)(mx,{variant:`outline`,children:SK(t,e.audience)}),(0,U.jsxs)(mx,{variant:`outline`,children:[Z(t,`docs.target`),`: `,e.target]})]}),(0,U.jsx)(Pq,{label:Z(t,`docs.inputSchema`),schema:e.input}),e.output?(0,U.jsx)(Pq,{label:Z(t,`docs.outputSchema`),schema:e.output}):null,e.kind===`view`?(0,U.jsx)(Y,{asChild:!0,variant:`outline`,size:`sm`,children:(0,U.jsxs)(`a`,{href:`/admin/views/${encodeURIComponent(e.target)}`,children:[(0,U.jsx)(Wt,{"aria-hidden":!0}),Z(t,`views.openInAdmin`)]})}):null]})]})}function Nq({capability:e,webMcp:t=!1}){let{language:n}=X();return(0,U.jsxs)(Tb,{children:[(0,U.jsxs)(Eb,{children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap items-center gap-2`,children:[(0,U.jsx)(mx,{variant:`secondary`,children:CK(n,e.kind===`view`?`View`:`Procedure`)}),(0,U.jsx)(mx,{variant:`outline`,children:SK(n,e.surface)}),(0,U.jsx)(mx,{variant:`outline`,children:SK(n,e.audience)}),t?(0,U.jsx)(mx,{variant:`outline`,children:Z(n,`docs.readOnly`)}):null]}),(0,U.jsx)(Db,{className:`font-mono text-sm`,children:(0,U.jsx)(`a`,{href:zK(`${e.kind===`view`?`View`:`Procedure`}:${e.target}`),className:`hover:underline`,children:e.name})}),(0,U.jsx)(Ob,{children:e.description})]}),(0,U.jsxs)(kb,{className:`space-y-3`,children:[(0,U.jsxs)(`div`,{className:`flex flex-wrap gap-2`,children:[(0,U.jsxs)(mx,{variant:`outline`,children:[Z(n,`docs.target`),`: `,e.target]}),e.trigger?(0,U.jsxs)(mx,{variant:`outline`,children:[CK(n,`Trigger`),`: `,e.trigger]}):null]}),(0,U.jsx)(Pq,{label:Z(n,`docs.inputSchema`),schema:e.input}),e.output?(0,U.jsx)(Pq,{label:Z(n,`docs.outputSchema`),schema:e.output}):null]})]})}function Pq({label:e,schema:t}){return(0,U.jsxs)(`details`,{className:`rounded-lg border bg-muted/25`,children:[(0,U.jsx)(`summary`,{className:`cursor-pointer px-3 py-2 text-xs font-medium`,children:e}),(0,U.jsx)(`pre`,{className:`max-h-72 overflow-auto border-t p-3 text-[11px] leading-5`,children:(0,U.jsx)(`code`,{children:JSON.stringify(t,null,2)})})]})}function Fq(){let{language:e}=X();return(0,U.jsx)(`p`,{className:`rounded-xl border border-dashed p-6 text-sm text-muted-foreground`,children:Z(e,`docs.noEntries`)})}function Iq(){let e=_y();return typeof window<`u`&&window.self!==window.top?null:e.pathname===`/oauth/consent`?(0,U.jsx)(rx,{}):e.pathname===`/admin/sign-in`?(0,U.jsx)(nx,{}):(0,U.jsx)(Lq,{path:e.pathname})}function Lq({path:e}){let t=rt({queryKey:[`me`],queryFn:()=>ty.get(`/me`),retry:!1}),n=t.isError&&t.error instanceof $v&&t.error.status===401;if((0,H.useEffect)(()=>{if(!n||typeof window>`u`)return;let e=window.location.pathname+window.location.search;window.location.href=`/admin/sign-in?return=${encodeURIComponent(e)}`},[n]),n)return(0,U.jsx)(Jb,{});if(t.isError&&t.error instanceof $v&&t.error.status===403){if(e===`/admin/connected-apps`)return(0,U.jsx)(ix,{});let n=t.error.body??{};return(0,U.jsx)(Xb,{login:n.login??null})}if(t.isError)return(0,U.jsx)(Yb,{error:t.error});if(t.isLoading)return(0,U.jsx)(Jb,{});let r=e.match(/^\/admin\/c\/([^/]+)\/?$/);if(r)return(0,U.jsx)(Vb,{children:(0,U.jsx)(tk,{collectionName:decodeURIComponent(r[1])})});let i=e.match(/^\/admin\/c\/([^/]+)\/([^/]+)\/?$/);if(i){let e=decodeURIComponent(i[1]),t=decodeURIComponent(i[2]);return(0,U.jsx)(Vb,{children:(0,U.jsx)(cO,{collectionName:e,entryId:t})})}if(e===`/admin`||e===`/admin/`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(jx,{})});if(e===`/admin/media`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(qD,{})});if(e===`/admin/preferences`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(Dk,{})});if(e===`/admin/connected-apps`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(ax,{})});if(e===`/admin/settings`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(Mk,{})});if(e===`/admin/staff`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(Vk,{})});if(e===`/admin/members`)return(0,U.jsx)(Vb,{children:(0,U.jsx)(qk,{})});if(e.startsWith(`/admin/dev`))return(0,U.jsx)(Rq,{path:e});let a=e.match(/^\/admin\/views\/([^/]+)\/?$/);return a?(0,U.jsx)(Vb,{children:(0,U.jsx)(hk,{name:decodeURIComponent(a[1])})}):(0,U.jsx)(Vb,{children:(0,U.jsx)(Ek,{path:e})})}function Rq({path:e}){return(0,U.jsx)(Vb,{workspace:`developer`,children:e===`/admin/dev`?(0,U.jsx)(uq,{}):e===`/admin/dev/model`?(0,U.jsx)(XK,{}):e===`/admin/dev/logic`?(0,U.jsx)(fq,{}):e===`/admin/dev/docs`?(0,U.jsx)(Eq,{}):(0,U.jsx)(Ek,{path:e})})}var zq=new Re({mutationCache:new Pe({onSuccess:()=>{zq.invalidateQueries({queryKey:[`collection-statistics`]})}}),defaultOptions:{queries:{retry:(e,t)=>t instanceof $v&&[401,403,501].includes(t.status)?!1:e<2,refetchOnWindowFocus:!1,staleTime:1e4}}}),Bq=({...e})=>(0,U.jsx)(JS,{className:`toaster group`,icons:{success:(0,U.jsx)(Ft,{className:`size-4`}),info:(0,U.jsx)($t,{className:`size-4`}),warning:(0,U.jsx)(Bn,{className:`size-4`}),error:(0,U.jsx)(yn,{className:`size-4`}),loading:(0,U.jsx)(pn,{className:`size-4 animate-spin`})},style:{"--normal-bg":`var(--popover)`,"--normal-text":`var(--popover-foreground)`,"--normal-border":`var(--border)`,"--border-radius":`var(--radius)`},toastOptions:{classNames:{toast:`cn-toast`}},...e}),Vq=document.getElementById(`root`);if(!Vq)throw Error(`Missing #root element.`);er.createRoot(Vq).render((0,U.jsx)(H.StrictMode,{children:(0,U.jsx)(Ue,{client:zq,children:(0,U.jsx)(Sy,{children:(0,U.jsx)(hy,{children:(0,U.jsx)(Sv,{children:(0,U.jsxs)(rS,{children:[(0,U.jsx)(Iq,{}),(0,U.jsx)(Hq,{})]})})})})})}));function Hq(){let{theme:e}=X();return(0,U.jsx)(Bq,{theme:e,position:`bottom-right`})}