@kekonic/diagrams-studio 1.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -0
  3. package/dist/browser/assets/SourceEditor-CTsSCxbb.js +23 -0
  4. package/dist/browser/assets/codicon-Brq4_Ui5.ttf +0 -0
  5. package/dist/browser/assets/dist-xSRpPWs-.js +49 -0
  6. package/dist/browser/assets/editor-CPgU7loC.css +1 -0
  7. package/dist/browser/assets/editor.api-Pc7YbpSQ.js +423 -0
  8. package/dist/browser/assets/editor.worker-r79G8Edd.js +30 -0
  9. package/dist/browser/assets/format-CEbYvQUd.css +1 -0
  10. package/dist/browser/assets/format-CX-V5tOl.js +425 -0
  11. package/dist/browser/assets/github-dark-C-LZuMrd.js +1 -0
  12. package/dist/browser/assets/github-light-EUqPIrTm.js +1 -0
  13. package/dist/browser/assets/ibm-plex-mono-latin-400-normal-CvHOgSBP.woff +0 -0
  14. package/dist/browser/assets/ibm-plex-mono-latin-400-normal-DMJ8VG8y.woff2 +0 -0
  15. package/dist/browser/assets/ibm-plex-mono-latin-500-normal-CB9ihrfo.woff +0 -0
  16. package/dist/browser/assets/ibm-plex-mono-latin-500-normal-DSY6xOcd.woff2 +0 -0
  17. package/dist/browser/assets/ibm-plex-sans-latin-400-normal-CDDApCn2.woff2 +0 -0
  18. package/dist/browser/assets/ibm-plex-sans-latin-400-normal-CYLoc0-x.woff +0 -0
  19. package/dist/browser/assets/ibm-plex-sans-latin-500-normal-6ng42L7E.woff2 +0 -0
  20. package/dist/browser/assets/ibm-plex-sans-latin-500-normal-BgVn5rGT.woff +0 -0
  21. package/dist/browser/assets/ibm-plex-sans-latin-600-normal-Cu4Hd6ag.woff +0 -0
  22. package/dist/browser/assets/ibm-plex-sans-latin-600-normal-CuJfVYMP.woff2 +0 -0
  23. package/dist/browser/assets/index-D15KDLkg.css +1 -0
  24. package/dist/browser/assets/index-D4UABSTV.js +3411 -0
  25. package/dist/browser/assets/inter-latin-500-normal-BL9OpVg8.woff +0 -0
  26. package/dist/browser/assets/inter-latin-500-normal-DIm8MnOp.js +1 -0
  27. package/dist/browser/assets/language-BHyJ3vcB.js +11 -0
  28. package/dist/browser/assets/monaco-features-DiflRtGt.css +1 -0
  29. package/dist/browser/assets/monaco-features-i8AvDstT.js +28 -0
  30. package/dist/browser/assets/wasm-BnjxR4X6.js +1 -0
  31. package/dist/browser/favicon.svg +8 -0
  32. package/dist/browser/index.html +17 -0
  33. package/dist/index.d.mts +173 -0
  34. package/dist/index.mjs +457 -0
  35. package/dist/index.mjs.map +1 -0
  36. package/package.json +72 -0
@@ -0,0 +1,3411 @@
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,a)=>(a=n==null?{}:e(i(n)),c(r||!n||!n.__esModule?t(a,`default`,{value:n,enumerable:!0}):a,n)),u=(e=>typeof require<`u`?require:typeof Proxy<`u`?new Proxy(e,{get:(e,t)=>(typeof require<`u`?require:e)[t]}):e)(function(e){if(typeof require<`u`)return require.apply(this,arguments);throw Error('Calling `require` for "'+e+"\" in an environment that doesn't expose the `require` function. See https://rolldown.rs/in-depth/bundling-cjs#require-external-modules for more details.")});(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),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var d=o(((e,t)=>{(function(){function n(e,t){Object.defineProperty(a.prototype,e,{get:function(){console.warn(`%s(...) is deprecated in plain JavaScript React classes. %s`,t[0],t[1])}})}function r(e){return typeof e!=`object`||!e?null:(e=Se&&e[Se]||e[`@@iterator`],typeof e==`function`?e:null)}function i(e,t){e=(e=e.constructor)&&(e.displayName||e.name)||`ReactClass`;var n=e+`.`+t;Ce[n]||(console.error("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",t,e),Ce[n]=!0)}function a(e,t,n){this.props=e,this.context=t,this.refs=Te,this.updater=n||we}function o(){}function s(e,t,n){this.props=e,this.context=t,this.refs=Te,this.updater=n||we}function c(){}function l(e){return``+e}function u(e){try{l(e);var t=!1}catch{t=!0}if(t){t=console;var n=t.error,r=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return n.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,r),l(e)}}function d(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Oe?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case de:return`Fragment`;case pe:return`Profiler`;case fe:return`StrictMode`;case _e:return`Suspense`;case ve:return`SuspenseList`;case xe:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case ue:return`Portal`;case he:return e.displayName||`Context`;case me:return(e._context.displayName||`Context`)+`.Consumer`;case ge:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ye:return t=e.displayName||null,t===null?d(e.type)||`Memo`:t;case be:t=e._payload,e=e._init;try{return d(e(t))}catch{}}return null}function f(e){if(e===de)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===be)return`<...>`;try{var t=d(e);return t?`<`+t+`>`:`<...>`}catch{return`<...>`}}function p(){var e=D.A;return e===null?null:e.getOwner()}function m(){return Error(`react-stack-top-frame`)}function h(e){if(ke.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function g(e,t){function n(){je||(je=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function _(){var e=d(this.type);return Ne[e]||(Ne[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function v(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:le,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:_}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function y(e,t){return t=v(e.type,t,e.props,e._owner,e._debugStack,e._debugTask),e._store&&(t._store.validated=e._store.validated),t}function b(e){ee(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===be&&(e._payload.status===`fulfilled`?ee(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function ee(e){return typeof e==`object`&&!!e&&e.$$typeof===le}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}function ne(e,t){return typeof e==`object`&&e&&e.key!=null?(u(e.key),te(``+e.key)):t.toString(36)}function re(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 ie(e,t,n,i,a){var o=typeof e;(o===`undefined`||o===`boolean`)&&(e=null);var s=!1;if(e===null)s=!0;else switch(o){case`bigint`:case`string`:case`number`:s=!0;break;case`object`:switch(e.$$typeof){case le:case ue:s=!0;break;case be:return s=e._init,ie(s(e._payload),t,n,i,a)}}if(s){s=e,a=a(s);var c=i===``?`.`+ne(s,0):i;return De(a)?(n=``,c!=null&&(n=c.replace(Le,`$&/`)+`/`),ie(a,t,n,``,function(e){return e})):a!=null&&(ee(a)&&(a.key!=null&&(s&&s.key===a.key||u(a.key)),n=y(a,n+(a.key==null||s&&s.key===a.key?``:(``+a.key).replace(Le,`$&/`)+`/`)+c),i!==``&&s!=null&&ee(s)&&s.key==null&&s._store&&!s._store.validated&&(n._store.validated=2),a=n),t.push(a)),1}if(s=0,c=i===``?`.`:i+`:`,De(e))for(var l=0;l<e.length;l++)i=e[l],o=c+ne(i,l),s+=ie(i,t,n,o,a);else if(l=r(e),typeof l==`function`)for(l===e.entries&&(Ie||console.warn(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),Ie=!0),e=l.call(e),l=0;!(i=e.next()).done;)i=i.value,o=c+ne(i,l++),s+=ie(i,t,n,o,a);else if(o===`object`){if(typeof e.then==`function`)return ie(re(e),t,n,i,a);throw t=String(e),Error(`Objects are not valid as a React child (found: `+(t===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:t)+`). If you meant to render a collection of children, use an array instead.`)}return s}function ae(e,t,n){if(e==null)return e;var r=[],i=0;return ie(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function oe(e){if(e._status===-1){var t=e._ioInfo;t!=null&&(t.start=t.end=performance.now()),t=e._result;var n=t();if(n.then(function(t){if(e._status===0||e._status===-1){e._status=1,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`fulfilled`,n.value=t)}},function(t){if(e._status===0||e._status===-1){e._status=2,e._result=t;var r=e._ioInfo;r!=null&&(r.end=performance.now()),n.status===void 0&&(n.status=`rejected`,n.reason=t)}}),t=e._ioInfo,t!=null){t.value=n;var r=n.displayName;typeof r==`string`&&(t.name=r)}e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return t=e._result,t===void 0&&console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
2
+
3
+ Your code should look like:
4
+ const MyComponent = lazy(() => import('./MyComponent'))
5
+
6
+ Did you accidentally put curly braces around the import?`,t),`default`in t||console.error(`lazy: Expected the result of a dynamic import() call. Instead received: %s
7
+
8
+ Your code should look like:
9
+ const MyComponent = lazy(() => import('./MyComponent'))`,t),t.default;throw e._result}function x(){var e=D.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
10
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
11
+ 2. You might be breaking the Rules of Hooks
12
+ 3. You might have more than one copy of React in the same app
13
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}function se(){D.asyncTransitions--}function S(e){if(Be===null)try{var n=(`require`+Math.random()).slice(0,7);Be=(t&&t[n]).call(t,`timers`).setImmediate}catch{Be=function(e){!1===ze&&(ze=!0,typeof MessageChannel>`u`&&console.error(`This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning.`));var t=new MessageChannel;t.port1.onmessage=e,t.port2.postMessage(void 0)}}return Be(e)}function ce(e){return 1<e.length&&typeof AggregateError==`function`?AggregateError(e):e[0]}function C(e,t){t!==Ve-1&&console.error(`You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. `),Ve=t}function w(e,t,n){var r=D.actQueue;if(r!==null)if(r.length!==0)try{T(r),S(function(){return w(e,t,n)});return}catch(e){D.thrownErrors.push(e)}else D.actQueue=null;0<D.thrownErrors.length?(r=ce(D.thrownErrors),D.thrownErrors.length=0,n(r)):t(e)}function T(e){if(!Ue){Ue=!0;var t=0;try{for(;t<e.length;t++){var n=e[t];do{D.didUsePromise=!1;var r=n(!1);if(r!==null){if(D.didUsePromise){e[t]=n,e.splice(0,t);return}n=r}else break}while(1)}e.length=0}catch(n){e.splice(0,t+1),D.thrownErrors.push(n)}finally{Ue=!1}}}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var le=Symbol.for(`react.transitional.element`),ue=Symbol.for(`react.portal`),de=Symbol.for(`react.fragment`),fe=Symbol.for(`react.strict_mode`),pe=Symbol.for(`react.profiler`),me=Symbol.for(`react.consumer`),he=Symbol.for(`react.context`),ge=Symbol.for(`react.forward_ref`),_e=Symbol.for(`react.suspense`),ve=Symbol.for(`react.suspense_list`),ye=Symbol.for(`react.memo`),be=Symbol.for(`react.lazy`),xe=Symbol.for(`react.activity`),Se=Symbol.iterator,Ce={},we={isMounted:function(){return!1},enqueueForceUpdate:function(e){i(e,`forceUpdate`)},enqueueReplaceState:function(e){i(e,`replaceState`)},enqueueSetState:function(e){i(e,`setState`)}},E=Object.assign,Te={};Object.freeze(Te),a.prototype.isReactComponent={},a.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`)},a.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};var Ee={isMounted:[`isMounted`,`Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks.`],replaceState:[`replaceState`,`Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236).`]};for(Ge in Ee)Ee.hasOwnProperty(Ge)&&n(Ge,Ee[Ge]);o.prototype=a.prototype,Ee=s.prototype=new o,Ee.constructor=s,E(Ee,a.prototype),Ee.isPureReactComponent=!0;var De=Array.isArray,Oe=Symbol.for(`react.client.reference`),D={H:null,A:null,T:null,S:null,actQueue:null,asyncTransitions:0,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1,didUsePromise:!1,thrownErrors:[],getCurrentStack:null,recentlyCreatedOwnerStacks:0},ke=Object.prototype.hasOwnProperty,Ae=console.createTask?console.createTask:function(){return null};Ee={react_stack_bottom_frame:function(e){return e()}};var je,Me,Ne={},Pe=Ee.react_stack_bottom_frame.bind(Ee,m)(),Fe=Ae(f(m)),Ie=!1,Le=/\/+/g,Re=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)},ze=!1,Be=null,Ve=0,He=!1,Ue=!1,We=typeof queueMicrotask==`function`?function(e){queueMicrotask(function(){return queueMicrotask(e)})}:S;Ee=Object.freeze({__proto__:null,c:function(e){return x().useMemoCache(e)}});var Ge={map:ae,forEach:function(e,t,n){ae(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ae(e,function(){t++}),t},toArray:function(e){return ae(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=xe,e.Children=Ge,e.Component=a,e.Fragment=de,e.Profiler=pe,e.PureComponent=s,e.StrictMode=fe,e.Suspense=_e,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,e.__COMPILER_RUNTIME=Ee,e.act=function(e){var t=D.actQueue,n=Ve;Ve++;var r=D.actQueue=t===null?[]:t,i=!1;try{var a=e()}catch(e){D.thrownErrors.push(e)}if(0<D.thrownErrors.length)throw C(t,n),e=ce(D.thrownErrors),D.thrownErrors.length=0,e;if(typeof a==`object`&&a&&typeof a.then==`function`){var o=a;return We(function(){i||He||(He=!0,console.error(`You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);`))}),{then:function(e,a){i=!0,o.then(function(i){if(C(t,n),n===0){try{T(r),S(function(){return w(i,e,a)})}catch(e){D.thrownErrors.push(e)}if(0<D.thrownErrors.length){var o=ce(D.thrownErrors);D.thrownErrors.length=0,a(o)}}else e(i)},function(e){C(t,n),0<D.thrownErrors.length?(e=ce(D.thrownErrors),D.thrownErrors.length=0,a(e)):a(e)})}}}var s=a;if(C(t,n),n===0&&(T(r),r.length!==0&&We(function(){i||He||(He=!0,console.error("A component suspended inside an `act` scope, but the `act` call was not awaited. When testing React components that depend on asynchronous data, you must await the result:\n\nawait act(() => ...)"))}),D.actQueue=null),0<D.thrownErrors.length)throw e=ce(D.thrownErrors),D.thrownErrors.length=0,e;return{then:function(e,t){i=!0,n===0?(D.actQueue=r,S(function(){return w(s,e,t)})):e(s)}}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.captureOwnerStack=function(){var e=D.getCurrentStack;return e===null?null:e()},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=E({},e.props),i=e.key,a=e._owner;if(t!=null){var o;a:{if(ke.call(t,`ref`)&&(o=Object.getOwnPropertyDescriptor(t,`ref`).get)&&o.isReactWarning){o=!1;break a}o=t.ref!==void 0}for(s in o&&(a=p()),h(t)&&(u(t.key),i=``+t.key),t)!ke.call(t,s)||s===`key`||s===`__self`||s===`__source`||s===`ref`&&t.ref===void 0||(r[s]=t[s])}var s=arguments.length-2;if(s===1)r.children=n;else if(1<s){o=Array(s);for(var c=0;c<s;c++)o[c]=arguments[c+2];r.children=o}for(r=v(e.type,i,r,a,e._debugStack,e._debugTask),i=2;i<arguments.length;i++)b(arguments[i]);return r},e.createContext=function(e){return e={$$typeof:he,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:me,_context:e},e._currentRenderer=null,e._currentRenderer2=null,e},e.createElement=function(e,t,n){for(var r=2;r<arguments.length;r++)b(arguments[r]);r={};var i=null;if(t!=null)for(c in Me||!(`__self`in t)||`key`in t||(Me=!0,console.warn(`Your app (or one of its dependencies) is using an outdated JSX transform. Update to the modern JSX transform for faster performance: https://react.dev/link/new-jsx-transform`)),h(t)&&(u(t.key),i=``+t.key),t)ke.call(t,c)&&c!==`key`&&c!==`__self`&&c!==`__source`&&(r[c]=t[c]);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];Object.freeze&&Object.freeze(o),r.children=o}if(e&&e.defaultProps)for(c in a=e.defaultProps,a)r[c]===void 0&&(r[c]=a[c]);i&&g(r,typeof e==`function`?e.displayName||e.name||`Unknown`:e);var c=1e4>D.recentlyCreatedOwnerStacks++;return v(e,i,r,p(),c?Error(`react-stack-top-frame`):Pe,c?Ae(f(e)):Fe)},e.createRef=function(){var e={current:null};return Object.seal(e),e},e.forwardRef=function(e){e!=null&&e.$$typeof===ye?console.error("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof e==`function`?e.length!==0&&e.length!==2&&console.error(`forwardRef render functions accept exactly two parameters: props and ref. %s`,e.length===1?`Did you forget to use the ref parameter?`:`Any additional parameter will be undefined.`):console.error(`forwardRef requires a render function but was given %s.`,e===null?`null`:typeof e),e!=null&&e.defaultProps!=null&&console.error(`forwardRef render functions do not support defaultProps. Did you accidentally pass a React component?`);var t={$$typeof:ge,render:e},n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.isValidElement=ee,e.lazy=function(e){e={_status:-1,_result:e};var t={$$typeof:be,_payload:e,_init:oe},n={name:`lazy`,start:-1,end:-1,value:null,owner:null,debugStack:Error(`react-stack-top-frame`),debugTask:console.createTask?console.createTask(`lazy()`):null};return e._ioInfo=n,t._debugInfo=[{awaited:n}],t},e.memo=function(e,t){e??console.error(`memo: The first argument must be a component. Instead received: %s`,e===null?`null`:typeof e),t={$$typeof:ye,type:e,compare:t===void 0?null:t};var n;return Object.defineProperty(t,"displayName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(t){n=t,e.name||e.displayName||(Object.defineProperty(e,"name",{value:t}),e.displayName=t)}}),t},e.startTransition=function(e){var t=D.T,n={};n._updatedFibers=new Set,D.T=n;try{var r=e(),i=D.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&(D.asyncTransitions++,r.then(se,se),r.then(c,Re))}catch(e){Re(e)}finally{t===null&&n._updatedFibers&&(e=n._updatedFibers.size,n._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`)),t!==null&&n.types!==null&&(t.types!==null&&t.types!==n.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),t.types=n.types),D.T=t}},e.unstable_useCacheRefresh=function(){return x().useCacheRefresh()},e.use=function(e){return x().use(e)},e.useActionState=function(e,t,n){return x().useActionState(e,t,n)},e.useCallback=function(e,t){return x().useCallback(e,t)},e.useContext=function(e){var t=x();return e.$$typeof===me&&console.error(`Calling useContext(Context.Consumer) is not supported and will cause bugs. Did you mean to call useContext(Context) instead?`),t.useContext(e)},e.useDebugValue=function(e,t){return x().useDebugValue(e,t)},e.useDeferredValue=function(e,t){return x().useDeferredValue(e,t)},e.useEffect=function(e,t){return e??console.warn(`React Hook useEffect requires an effect callback. Did you forget to pass a callback to the hook?`),x().useEffect(e,t)},e.useEffectEvent=function(e){return x().useEffectEvent(e)},e.useId=function(){return x().useId()},e.useImperativeHandle=function(e,t,n){return x().useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return e??console.warn(`React Hook useInsertionEffect requires an effect callback. Did you forget to pass a callback to the hook?`),x().useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return e??console.warn(`React Hook useLayoutEffect requires an effect callback. Did you forget to pass a callback to the hook?`),x().useLayoutEffect(e,t)},e.useMemo=function(e,t){return x().useMemo(e,t)},e.useOptimistic=function(e,t){return x().useOptimistic(e,t)},e.useReducer=function(e,t,n){return x().useReducer(e,t,n)},e.useRef=function(e){return x().useRef(e)},e.useState=function(e){return x().useState(e)},e.useSyncExternalStore=function(e,t,n){return x().useSyncExternalStore(e,t,n)},e.useTransition=function(){return x().useTransition()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),f=o(((e,t)=>{t.exports=d()})),p=o((e=>{(function(){function t(){if(ee=!1,ie){var t=e.unstable_now();x=t;var n=!0;try{a:{y=!1,b&&(b=!1,ne(ae),ae=-1),v=!0;var a=_;try{b:{for(o(t),g=r(p);g!==null&&!(g.expirationTime>t&&c());){var u=g.callback;if(typeof u==`function`){g.callback=null,_=g.priorityLevel;var d=u(g.expirationTime<=t);if(t=e.unstable_now(),typeof d==`function`){g.callback=d,o(t),n=!0;break b}g===r(p)&&i(p),o(t)}else i(p);g=r(p)}if(g!==null)n=!0;else{var f=r(m);f!==null&&l(s,f.startTime-t),n=!1}}break a}finally{g=null,_=a,v=!1}n=void 0}}finally{n?se():ie=!1}}}function n(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,i=e[r];if(0<a(i,t))e[r]=t,e[n]=i,n=r;else break a}}function r(e){return e.length===0?null:e[0]}function i(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,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>a(c,n))l<i&&0>a(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<i&&0>a(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}function o(e){for(var t=r(m);t!==null;){if(t.callback===null)i(m);else if(t.startTime<=e)i(m),t.sortIndex=t.expirationTime,n(p,t);else break;t=r(m)}}function s(e){if(b=!1,o(e),!y)if(r(p)!==null)y=!0,ie||(ie=!0,se());else{var t=r(m);t!==null&&l(s,t.startTime-e)}}function c(){return ee?!0:!(e.unstable_now()-x<oe)}function l(t,n){ae=te(function(){t(e.unstable_now())},n)}if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()),e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var u=performance;e.unstable_now=function(){return u.now()}}else{var d=Date,f=d.now();e.unstable_now=function(){return d.now()-f}}var p=[],m=[],h=1,g=null,_=3,v=!1,y=!1,b=!1,ee=!1,te=typeof setTimeout==`function`?setTimeout:null,ne=typeof clearTimeout==`function`?clearTimeout:null,re=typeof setImmediate<`u`?setImmediate:null,ie=!1,ae=-1,oe=5,x=-1;if(typeof re==`function`)var se=function(){re(t)};else if(typeof MessageChannel<`u`){var S=new MessageChannel,ce=S.port2;S.port1.onmessage=t,se=function(){ce.postMessage(null)}}else se=function(){te(t,0)};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`):oe=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return _},e.unstable_next=function(e){switch(_){case 1:case 2:case 3:var t=3;break;default:t=_}var n=_;_=t;try{return e()}finally{_=n}},e.unstable_requestPaint=function(){ee=!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=_;_=e;try{return t()}finally{_=n}},e.unstable_scheduleCallback=function(t,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,t){case 1:var c=-1;break;case 2:c=250;break;case 5:c=1073741823;break;case 4:c=1e4;break;default:c=5e3}return c=a+c,t={id:h++,callback:i,priorityLevel:t,startTime:a,expirationTime:c,sortIndex:-1},a>o?(t.sortIndex=a,n(m,t),r(p)===null&&t===r(m)&&(b?(ne(ae),ae=-1):b=!0,l(s,a-o))):(t.sortIndex=c,n(p,t),y||v||(y=!0,ie||(ie=!0,se()))),t},e.unstable_shouldYield=c,e.unstable_wrapCallback=function(e){var t=_;return function(){var n=_;_=t;try{return e.apply(this,arguments)}finally{_=n}}},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),m=o(((e,t)=>{t.exports=p()})),h=o((e=>{(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;try{n(i);var a=!1}catch{a=!0}return a&&(console.error(`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,typeof Symbol==`function`&&Symbol.toStringTag&&i[Symbol.toStringTag]||i.constructor.name||`Object`),n(i)),{$$typeof:u,key:i==null?null:``+i,children:e,containerInfo:t,implementation:r}}function i(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}function a(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:`something with type "`+typeof e+`"`}function o(e){return e===null?"`null`":e===void 0?"`undefined`":e===``?`an empty string`:typeof e==`string`?JSON.stringify(e):typeof e==`number`?"`"+e+"`":`something with type "`+typeof e+`"`}function s(){var e=d.H;return e===null&&console.error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
14
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
15
+ 2. You might be breaking the Rules of Hooks
16
+ 3. You might have more than one copy of React in the same app
17
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=f(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(`Target container is not a DOM element.`);return r(e,t,null,n)},e.flushSync=function(e){var t=d.T,n=l.p;try{if(d.T=null,l.p=2,e)return e()}finally{d.T=t,l.p=n,l.d.f()&&console.error(`flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task.`)}},e.preconnect=function(e,t){typeof e==`string`&&e?t!=null&&typeof t!=`object`?console.error("ReactDOM.preconnect(): Expected the `options` argument (second) to be an object but encountered %s instead. The only supported option at this time is `crossOrigin` which accepts a string.",o(t)):t!=null&&typeof t.crossOrigin!=`string`&&console.error("ReactDOM.preconnect(): Expected the `crossOrigin` option (second argument) to be a string but encountered %s instead. Try removing this option or passing a string value instead.",a(t.crossOrigin)):console.error("ReactDOM.preconnect(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,l.d.C(e,t))},e.prefetchDNS=function(e){if(typeof e!=`string`||!e)console.error("ReactDOM.prefetchDNS(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e));else if(1<arguments.length){var t=arguments[1];typeof t==`object`&&t.hasOwnProperty(`crossOrigin`)?console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. It looks like the you are attempting to set a crossOrigin property for this DNS lookup hint. Browsers do not perform DNS queries using CORS and setting this attribute on the resource hint has no effect. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t)):console.error("ReactDOM.prefetchDNS(): Expected only one argument, `href`, but encountered %s as a second argument instead. This argument is reserved for future options and is currently disallowed. Try calling ReactDOM.prefetchDNS() with just a single string argument, `href`.",o(t))}typeof e==`string`&&l.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&e?typeof t!=`object`||!t?console.error("ReactDOM.preinit(): Expected the `options` argument (second) to be an object with an `as` property describing the type of resource to be preinitialized but encountered %s instead.",o(t)):t.as!==`style`&&t.as!==`script`&&console.error('ReactDOM.preinit(): Expected the `as` property in the `options` argument (second) to contain a valid value describing the type of resource to be preinitialized but encountered %s instead. Valid values for `as` are "style" and "script".',o(t.as)):console.error("ReactDOM.preinit(): Expected the `href` argument (first) to be a non-empty string but encountered %s instead.",a(e)),typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=i(n,t.crossOrigin),s=typeof t.integrity==`string`?t.integrity:void 0,c=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?l.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:s,fetchPriority:c}):n===`script`&&l.d.X(e,{crossOrigin:r,integrity:s,fetchPriority:c,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&t.as!==`script`&&(n+=" The `as` option encountered was "+o(t.as)+`.`),n)console.error("ReactDOM.preinitModule(): Expected up to two arguments, a non-empty `href` string and, optionally, an `options` object with a valid `as` property.%s",n);else switch(n=t&&typeof t.as==`string`?t.as:`script`,n){case`script`:break;default:n=o(n),console.error('ReactDOM.preinitModule(): Currently the only supported "as" type for this function is "script" but received "%s" instead. This warning was generated for `href` "%s". In the future other module types will be supported, aligning with the import-attributes proposal. Learn more here: (https://github.com/tc39/proposal-import-attributes)',n,e)}typeof e==`string`&&(typeof t==`object`&&t?(t.as==null||t.as===`script`)&&(n=i(t.as,t.crossOrigin),l.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})):t??l.d.M(e))},e.preload=function(e,t){var n=``;if(typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),typeof t!=`object`||!t?n+=" The `options` argument encountered was "+a(t)+`.`:typeof t.as==`string`&&t.as||(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preload(): Expected two arguments, a non-empty `href` string and an `options` object with an `as` property valid for a `<link rel="preload" as="..." />` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.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){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `<link rel="modulepreload" as="..." />` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.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})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),g=o(((e,t)=>{t.exports=h()})),_=o((e=>{(function(){function t(e,t){for(e=e.memoizedState;e!==null&&0<t;)e=e.next,t--;return e}function n(e,t,r,i){if(r>=t.length)return i;var a=t[r],o=Xf(e)?e.slice():L({},e);return o[a]=n(e[a],t,r+1,i),o}function r(e,t,n){if(t.length!==n.length)console.warn(`copyWithRename() expects paths of the same length`);else{for(var r=0;r<n.length-1;r++)if(t[r]!==n[r]){console.warn(`copyWithRename() expects paths to be the same except for the deepest key`);return}return i(e,t,n,0)}}function i(e,t,n,r){var a=t[r],o=Xf(e)?e.slice():L({},e);return r+1===t.length?(o[n[r]]=o[a],Xf(o)?o.splice(a,1):delete o[a]):o[a]=i(e[a],t,n,r+1),o}function a(e,t,n){var r=t[n],i=Xf(e)?e.slice():L({},e);return n+1===t.length?(Xf(i)?i.splice(r,1):delete i[r],i):(i[r]=a(e[r],t,n+1),i)}function o(){return!1}function s(){return null}function c(){console.error(`Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://react.dev/link/rules-of-hooks`)}function l(){console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`)}function u(){}function d(){}function p(e){var t=[];return e.forEach(function(e){t.push(e)}),t.sort().join(`, `)}function h(e,t,n,r){return new Sr(e,t,n,r)}function _(e,t){e.context===Ig&&(rf(e.current,2,t,e,null,null),ll())}function v(e,t){if(Lg!==null){var n=t.staleFamilies;t=t.updatedFamilies,Fl(),xr(e.current,t,n),ll()}}function y(e){Lg=e}function b(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function ee(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 te(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 ne(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 re(e){if(ee(e)!==e)throw Error(`Unable to find node on an unmounted component.`)}function ie(e){var t=e.alternate;if(!t){if(t=ee(e),t===null)throw Error(`Unable to find node on an unmounted component.`);return t===e?e:null}for(var n=e,r=t;;){var i=n.return;if(i===null)break;var a=i.alternate;if(a===null){if(r=i.return,r!==null){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return re(i),e;if(a===r)return re(i),t;a=a.sibling}throw Error(`Unable to find node on an unmounted component.`)}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,s=i.child;s;){if(s===n){o=!0,n=i,r=a;break}if(s===r){o=!0,r=i,n=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===n){o=!0,n=a,r=i;break}if(s===r){o=!0,r=a,n=i;break}s=s.sibling}if(!o)throw Error(`Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.`)}}if(n.alternate!==r)throw Error(`Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.`)}if(n.tag!==3)throw Error(`Unable to find node on an unmounted component.`);return n.stateNode.current===n?e:t}function ae(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=ae(e),t!==null)return t;e=e.sibling}return null}function oe(e){return typeof e!=`object`||!e?null:(e=Jf&&e[Jf]||e[`@@iterator`],typeof e==`function`?e:null)}function x(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===Yf?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case If:return`Fragment`;case Rf:return`Profiler`;case Lf:return`StrictMode`;case Hf:return`Suspense`;case Uf:return`SuspenseList`;case Kf:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case Ff:return`Portal`;case Bf:return e.displayName||`Context`;case zf:return(e._context.displayName||`Context`)+`.Consumer`;case Vf:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case Wf:return t=e.displayName||null,t===null?x(e.type)||`Memo`:t;case Gf:t=e._payload,e=e._init;try{return x(e(t))}catch{}}return null}function se(e){return typeof e.tag==`number`?S(e):typeof e.name==`string`?e.name:null}function S(e){var t=e.type;switch(e.tag){case 31:return`Activity`;case 24:return`Cache`;case 9:return(t._context.displayName||`Context`)+`.Consumer`;case 10:return t.displayName||`Context`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 26:case 27:case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return x(t);case 8:return t===Lf?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t;break;case 29:if(t=e._debugInfo,t!=null){for(var n=t.length-1;0<=n;n--)if(typeof t[n].name==`string`)return t[n].name}if(e.return!==null)return S(e.return)}return null}function ce(e){return{current:e}}function C(e,t){0>ep?console.error(`Unexpected pop.`):(t!==$f[ep]&&console.error(`Unexpected Fiber popped.`),e.current=Qf[ep],Qf[ep]=null,$f[ep]=null,ep--)}function w(e,t,n){ep++,Qf[ep]=e.current,$f[ep]=n,e.current=t}function T(e){return e===null&&console.error(`Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.`),e}function le(e,t){w(rp,t,e),w(np,e,e),w(tp,null,e);var n=t.nodeType;switch(n){case 9:case 11:n=n===9?`#document`:`#fragment`,t=(t=t.documentElement)&&(t=t.namespaceURI)?Uu(t):US;break;default:if(n=t.tagName,t=t.namespaceURI)t=Uu(t),t=Wu(t,n);else switch(n){case`svg`:t=WS;break;case`math`:t=GS;break;default:t=US}}n=n.toLowerCase(),n=Gt(null,n),n={context:t,ancestorInfo:n},C(tp,e),w(tp,n,e)}function ue(e){C(tp,e),C(np,e),C(rp,e)}function de(){return T(tp.current)}function fe(e){e.memoizedState!==null&&w(ip,e,e);var t=T(tp.current),n=e.type,r=Wu(t.context,n);n=Gt(t.ancestorInfo,n),r={context:r,ancestorInfo:n},t!==r&&(w(np,e,e),w(tp,r,e))}function pe(e){np.current===e&&(C(tp,e),C(np,e)),ip.current===e&&(C(ip,e),bC._currentValue=yC)}function me(){}function he(){if(ap===0){op=console.log,sp=console.info,cp=console.warn,lp=console.error,up=console.group,dp=console.groupCollapsed,fp=console.groupEnd;var e={configurable:!0,enumerable:!0,value:me,writable:!0};Object.defineProperties(console,{info:e,log:e,warn:e,error:e,group:e,groupCollapsed:e,groupEnd:e})}ap++}function ge(){if(ap--,ap===0){var e={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},e,{value:op}),info:L({},e,{value:sp}),warn:L({},e,{value:cp}),error:L({},e,{value:lp}),group:L({},e,{value:up}),groupCollapsed:L({},e,{value:dp}),groupEnd:L({},e,{value:fp})})}0>ap&&console.error(`disabledDepth fell below zero. This is a bug in React. Please file an issue.`)}function _e(e){var t=Error.prepareStackTrace;if(Error.prepareStackTrace=void 0,e=e.stack,Error.prepareStackTrace=t,e.startsWith(`Error: react-stack-top-frame
18
+ `)&&(e=e.slice(29)),t=e.indexOf(`
19
+ `),t!==-1&&(e=e.slice(t+1)),t=e.indexOf(`react_stack_bottom_frame`),t!==-1&&(t=e.lastIndexOf(`
20
+ `,t)),t!==-1)e=e.slice(0,t);else return``;return e}function ve(e){if(pp===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);pp=t&&t[1]||``,mp=-1<e.stack.indexOf(`
21
+ at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
22
+ `+pp+e+mp}function ye(e,t){if(!e||hp)return``;var n=gp.get(e);if(n!==void 0)return n;hp=!0,n=Error.prepareStackTrace,Error.prepareStackTrace=void 0;var r=null;r=R.H,R.H=null,he();try{var i={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]}};i.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var a=Object.getOwnPropertyDescriptor(i.DetermineComponentFrameRoot,`name`);a&&a.configurable&&Object.defineProperty(i.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var o=i.DetermineComponentFrameRoot(),s=o[0],c=o[1];if(s&&c){var l=s.split(`
23
+ `),u=c.split(`
24
+ `);for(o=a=0;a<l.length&&!l[a].includes(`DetermineComponentFrameRoot`);)a++;for(;o<u.length&&!u[o].includes(`DetermineComponentFrameRoot`);)o++;if(a===l.length||o===u.length)for(a=l.length-1,o=u.length-1;1<=a&&0<=o&&l[a]!==u[o];)o--;for(;1<=a&&0<=o;a--,o--)if(l[a]!==u[o]){if(a!==1||o!==1)do if(a--,o--,0>o||l[a]!==u[o]){var d=`
25
+ `+l[a].replace(` at new `,` at `);return e.displayName&&d.includes(`<anonymous>`)&&(d=d.replace(`<anonymous>`,e.displayName)),typeof e==`function`&&gp.set(e,d),d}while(1<=a&&0<=o);break}}}finally{hp=!1,R.H=r,ge(),Error.prepareStackTrace=n}return l=(l=e?e.displayName||e.name:``)?ve(l):``,typeof e==`function`&&gp.set(e,l),l}function be(e,t){switch(e.tag){case 26:case 27:case 5:return ve(e.type);case 16:return ve(`Lazy`);case 13:return e.child!==t&&t!==null?ve(`Suspense Fallback`):ve(`Suspense`);case 19:return ve(`SuspenseList`);case 0:case 15:return ye(e.type,!1);case 11:return ye(e.type.render,!1);case 1:return ye(e.type,!0);case 31:return ve(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do{t+=be(e,n);var r=e._debugInfo;if(r)for(var i=r.length-1;0<=i;i--){var a=r[i];if(typeof a.name==`string`){var o=t;a:{var s=a.name,c=a.env,l=a.debugLocation;if(l!=null){var u=_e(l),d=u.lastIndexOf(`
26
+ `),f=d===-1?u:u.slice(d+1);if(f.indexOf(s)!==-1){var p=`
27
+ `+f;break a}}p=ve(s+(c?` [`+c+`]`:``))}t=o+p}}n=e,e=e.return}while(e);return t}catch(e){return`
28
+ Error generating stack: `+e.message+`
29
+ `+e.stack}}function Se(e){return(e=e?e.displayName||e.name:``)?ve(e):``}function Ce(){if(_p===null)return null;var e=_p._debugOwner;return e==null?null:se(e)}function we(){if(_p===null)return``;var e=_p;try{var t=``;switch(e.tag===6&&(e=e.return),e.tag){case 26:case 27:case 5:t+=ve(e.type);break;case 13:t+=ve(`Suspense`);break;case 19:t+=ve(`SuspenseList`);break;case 31:t+=ve(`Activity`);break;case 30:case 0:case 15:case 1:e._debugOwner||t!==``||(t+=Se(e.type));break;case 11:e._debugOwner||t!==``||(t+=Se(e.type.render))}for(;e;)if(typeof e.tag==`number`){var n=e;e=n._debugOwner;var r=n._debugStack;if(e&&r){var i=_e(r);i!==``&&(t+=`
30
+ `+i)}}else if(e.debugStack!=null){var a=e.debugStack;(e=e.owner)&&a&&(t+=`
31
+ `+_e(a))}else break;var o=t}catch(e){o=`
32
+ Error generating stack: `+e.message+`
33
+ `+e.stack}return o}function E(e,t,n,r,i,a,o){var s=_p;Te(e);try{return e!==null&&e._debugTask?e._debugTask.run(t.bind(null,n,r,i,a,o)):t(n,r,i,a,o)}finally{Te(s)}throw Error(`runWithFiberInDEV should never be called in production. This is a bug in React.`)}function Te(e){R.getCurrentStack=e===null?null:we,vp=!1,_p=e}function Ee(e){return typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`}function De(e){try{return Oe(e),!1}catch{return!0}}function Oe(e){return``+e}function D(e,t){if(De(e))return console.error("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ee(e)),Oe(e)}function ke(e,t){if(De(e))return console.error("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",t,Ee(e)),Oe(e)}function Ae(e){if(De(e))return console.error(`Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.`,Ee(e)),Oe(e)}function je(e){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`)return!1;var t=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(t.isDisabled)return!0;if(!t.supportsFiber)return console.error(`The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://react.dev/link/react-devtools`),!0;try{Np=t.inject(e),Pp=t}catch(e){console.error(`React instrumentation encountered an error: %o.`,e)}return!!t.checkDCE}function Me(e){if(typeof jp==`function`&&Mp(e),Pp&&typeof Pp.setStrictMode==`function`)try{Pp.setStrictMode(Np,e)}catch(e){Fp||(Fp=!0,console.error(`React instrumentation encountered an error: %o`,e))}}function Ne(e){return e>>>=0,e===0?32:31-(Rp(e)/zp|0)|0}function Pe(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 console.error(`Should have found matching lanes. This is a bug in React.`),e}}function Fe(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=Pe(n))):i=Pe(o):i=Pe(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Pe(n))):i=Pe(o)):i=Pe(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 Ie(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Le(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 console.error(`Should have found matching lanes. This is a bug in React.`),-1}}function Re(){var e=Hp;return Hp<<=1,!(Hp&62914560)&&(Hp=4194304),e}function ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Be(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Ve(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-Lp(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&&He(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function He(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Lp(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function Ue(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Lp(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function We(e,t){var n=t&-t;return n=n&42?1:Ge(n),(n&(e.suspendedLanes|t))===0?n:0}function Ge(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 Ke(e,t,n){if(Ip)for(e=e.pendingUpdatersLaneMap;0<n;){var r=31-Lp(n),i=1<<r;e[r].add(t),n&=~i}}function qe(e,t){if(Ip)for(var n=e.pendingUpdatersLaneMap,r=e.memoizedUpdaters;0<t;){var i=31-Lp(t);e=1<<i,i=n[i],0<i.size&&(i.forEach(function(e){var t=e.alternate;t!==null&&r.has(t)||r.add(e)}),i.clear()),t&=~e}}function Je(e){return e&=-e,Up!==0&&Up<e?Wp!==0&&Wp<e?e&134217727?Gp:Kp:Wp:Up}function Ye(){var e=z.p;return e===0?(e=window.event,e===void 0?Gp:hf(e.type)):e}function Xe(e,t){var n=z.p;try{return z.p=e,t()}finally{z.p=n}}function Ze(e){delete e[Jp],delete e[Yp],delete e[Zp],delete e[Qp],delete e[$p]}function Qe(e){var t=e[Jp];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Xp]||n[Jp]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=wd(e);e!==null;){if(n=e[Jp])return n;e=wd(e)}return t}e=n,n=e.parentNode}return null}function $e(e){if(e=e[Jp]||e[Xp]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function et(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(`getNodeFromInstance: Invalid argument.`)}function tt(e){var t=e[em];return t||=e[em]={hoistableStyles:new Map,hoistableScripts:new Map},t}function nt(e){e[tm]=!0}function rt(e,t){it(e,t),it(e+`Capture`,t)}function it(e,t){rm[e]&&console.error("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",e),rm[e]=t;var n=e.toLowerCase();for(im[n]=e,e===`onDoubleClick`&&(im.ondblclick=e),e=0;e<t.length;e++)nm.add(t[e])}function at(e,t){am[t.type]||t.onChange||t.onInput||t.readOnly||t.disabled||t.value==null||console.error(e===`select`?"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set `onChange`.":"You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),t.onChange||t.readOnly||t.disabled||t.checked==null||console.error("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function ot(e){return yp.call(cm,e)?!0:yp.call(sm,e)?!1:om.test(e)?cm[e]=!0:(sm[e]=!0,console.error("Invalid attribute name: `%s`",e),!1)}function st(e,t,n){if(ot(t)){if(!e.hasAttribute(t)){switch(typeof n){case`symbol`:case`object`:return n;case`function`:return n;case`boolean`:if(!1===n)return n}return n===void 0?void 0:null}return e=e.getAttribute(t),e===``&&!0===n?!0:(D(n,t),e===``+n?n:e)}}function ct(e,t,n){if(ot(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}}D(n,t),e.setAttribute(t,``+n)}}function lt(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}D(n,t),e.setAttribute(t,``+n)}}function ut(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}D(r,n),e.setAttributeNS(t,n,``+r)}}function dt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return Ae(e),e;default:return``}}function ft(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function pt(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){Ae(e),n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){Ae(e),n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function mt(e){if(!e._valueTracker){var t=ft(e)?`checked`:`value`;e._valueTracker=pt(e,t,``+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=ft(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function gt(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function _t(e){return e.replace(lm,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function vt(e,t){t.checked===void 0||t.defaultChecked===void 0||dm||(console.error(`%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,Ce()||`A component`,t.type),dm=!0),t.value===void 0||t.defaultValue===void 0||um||(console.error(`%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://react.dev/link/controlled-components`,Ce()||`A component`,t.type),um=!0)}function yt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?(D(o,`type`),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=``+dt(t)):e.value!==``+dt(t)&&(e.value=``+dt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):xt(e,o,dt(n)):xt(e,o,dt(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`?(D(s,`name`),e.name=``+dt(s)):e.removeAttribute(`name`)}function bt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(D(a,`type`),e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){mt(e);return}n=n==null?``:``+dt(n),t=t==null?n:``+dt(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`&&(D(o,`name`),e.name=o),mt(e)}function xt(e,t,n){t===`number`&&gt(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function St(e,t){t.value??(typeof t.children==`object`&&t.children!==null?jf.Children.forEach(t.children,function(e){e==null||typeof e==`string`||typeof e==`number`||typeof e==`bigint`||pm||(pm=!0,console.error("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>."))}):t.dangerouslySetInnerHTML==null||mm||(mm=!0,console.error("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected."))),t.selected==null||fm||(console.error("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),fm=!0)}function Ct(){var e=Ce();return e?`
34
+
35
+ Check the render method of \``+e+"`.":``}function wt(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=``+dt(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 Tt(e,t){for(e=0;e<gm.length;e++){var n=gm[e];if(t[n]!=null){var r=Xf(t[n]);t.multiple&&!r?console.error("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",n,Ct()):!t.multiple&&r&&console.error("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",n,Ct())}}t.value===void 0||t.defaultValue===void 0||hm||(console.error(`Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://react.dev/link/controlled-components`),hm=!0)}function Et(e,t){t.value===void 0||t.defaultValue===void 0||_m||(console.error(`%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://react.dev/link/controlled-components`,Ce()||`A component`),_m=!0),t.children!=null&&t.value==null&&console.error("Use the `defaultValue` or `value` props instead of setting children on <textarea>.")}function Dt(e,t,n){if(t!=null&&(t=``+dt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+dt(n)}function Ot(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Xf(r)){if(1<r.length)throw Error(`<textarea> can only have at most one child.`);r=r[0]}n=r}n??=``,t=n}n=dt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),mt(e)}function kt(e,t){return e.serverProps===void 0&&e.serverTail.length===0&&e.children.length===1&&3<e.distanceFromLeaf&&e.distanceFromLeaf>15-t?kt(e.children[0],t):e}function At(e){return` `+` `.repeat(e)}function jt(e){return`+ `+` `.repeat(e)}function Mt(e){return`- `+` `.repeat(e)}function Nt(e){switch(e.tag){case 26:case 27:case 5:return e.type;case 16:return`Lazy`;case 31:return`Activity`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 0:case 15:return e=e.type,e.displayName||e.name||null;case 11:return e=e.type.render,e.displayName||e.name||null;case 1:return e=e.type,e.displayName||e.name||null;default:return null}}function Pt(e,t){return vm.test(e)?(e=JSON.stringify(e),e.length>t-2?8>t?`{"..."}`:`{`+e.slice(0,t-7)+`..."}`:`{`+e+`}`):e.length>t?5>t?`{"..."}`:e.slice(0,t-3)+`...`:e}function Ft(e,t,n){var r=120-2*n;if(t===null)return jt(n)+Pt(e,r)+`
36
+ `;if(typeof t==`string`){for(var i=0;i<t.length&&i<e.length&&t.charCodeAt(i)===e.charCodeAt(i);i++);return i>r-8&&10<i&&(e=`...`+e.slice(i-8),t=`...`+t.slice(i-8)),jt(n)+Pt(e,r)+`
37
+ `+Mt(n)+Pt(t,r)+`
38
+ `}return At(n)+Pt(e,r)+`
39
+ `}function It(e){return Object.prototype.toString.call(e).replace(/^\[object (.*)\]$/,function(e,t){return t})}function Lt(e,t){switch(typeof e){case`string`:return e=JSON.stringify(e),e.length>t?5>t?`"..."`:e.slice(0,t-4)+`..."`:e;case`object`:if(e===null)return`null`;if(Xf(e))return`[...]`;if(e.$$typeof===Pf)return(t=x(e.type))?`<`+t+`>`:`<...>`;var n=It(e);if(n===`Object`){for(var r in n=``,t-=2,e)if(e.hasOwnProperty(r)){var i=JSON.stringify(r);if(i!==`"`+r+`"`&&(r=i),t-=r.length-2,i=Lt(e[r],15>t?t:15),t-=i.length,0>t){n+=n===``?`...`:`, ...`;break}n+=(n===``?``:`,`)+r+`:`+i}return`{`+n+`}`}return n;case`function`:return(t=e.displayName||e.name)?`function `+t:`function`;default:return String(e)}}function Rt(e,t){return typeof e!=`string`||vm.test(e)?`{`+Lt(e,t-2)+`}`:e.length>t-2?5>t?`"..."`:`"`+e.slice(0,t-5)+`..."`:`"`+e+`"`}function zt(e,t,n){var r=120-n.length-e.length,i=[],a;for(a in t)if(t.hasOwnProperty(a)&&a!==`children`){var o=Rt(t[a],120-n.length-a.length-1);r-=a.length+o.length+2,i.push(a+`=`+o)}return i.length===0?n+`<`+e+`>
40
+ `:0<r?n+`<`+e+` `+i.join(` `)+`>
41
+ `:n+`<`+e+`
42
+ `+n+` `+i.join(`
43
+ `+n+` `)+`
44
+ `+n+`>
45
+ `}function Bt(e,t,n){var r=``,i=L({},t),a;for(a in e)if(e.hasOwnProperty(a)){delete i[a];var o=120-2*n-a.length-2,s=Lt(e[a],o);t.hasOwnProperty(a)?(o=Lt(t[a],o),r+=jt(n)+a+`: `+s+`
46
+ `,r+=Mt(n)+a+`: `+o+`
47
+ `):r+=jt(n)+a+`: `+s+`
48
+ `}for(var c in i)i.hasOwnProperty(c)&&(e=Lt(i[c],120-2*n-c.length-2),r+=Mt(n)+c+`: `+e+`
49
+ `);return r}function Vt(e,t,n,r){var i=``,a=new Map;for(l in n)n.hasOwnProperty(l)&&a.set(l.toLowerCase(),l);if(a.size===1&&a.has(`children`))i+=zt(e,t,At(r));else{for(var o in t)if(t.hasOwnProperty(o)&&o!==`children`){var s=120-2*(r+1)-o.length-1,c=a.get(o.toLowerCase());if(c!==void 0){a.delete(o.toLowerCase());var l=t[o];c=n[c];var u=Rt(l,s);s=Rt(c,s),typeof l==`object`&&l&&typeof c==`object`&&c&&It(l)===`Object`&&It(c)===`Object`&&(2<Object.keys(l).length||2<Object.keys(c).length||-1<u.indexOf(`...`)||-1<s.indexOf(`...`))?i+=At(r+1)+o+`={{
50
+ `+Bt(l,c,r+2)+At(r+1)+`}}
51
+ `:(i+=jt(r+1)+o+`=`+u+`
52
+ `,i+=Mt(r+1)+o+`=`+s+`
53
+ `)}else i+=At(r+1)+o+`=`+Rt(t[o],s)+`
54
+ `}a.forEach(function(e){if(e!==`children`){var t=120-2*(r+1)-e.length-1;i+=Mt(r+1)+e+`=`+Rt(n[e],t)+`
55
+ `}}),i=i===``?At(r)+`<`+e+`>
56
+ `:At(r)+`<`+e+`
57
+ `+i+At(r)+`>
58
+ `}return e=n.children,t=t.children,typeof e==`string`||typeof e==`number`||typeof e==`bigint`?(a=``,(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(a=``+t),i+=Ft(a,``+e,r+1)):(typeof t==`string`||typeof t==`number`||typeof t==`bigint`)&&(i=e==null?i+Ft(``+t,null,r+1):i+Ft(``+t,void 0,r+1)),i}function O(e,t){var n=Nt(e);if(n===null){for(n=``,e=e.child;e;)n+=O(e,t),e=e.sibling;return n}return At(t)+`<`+n+`>
59
+ `}function Ht(e,t){var n=kt(e,t);if(n!==e&&(e.children.length!==1||e.children[0]!==n))return At(t)+`...
60
+ `+Ht(n,t+1);n=``;var r=e.fiber._debugInfo;if(r)for(var i=0;i<r.length;i++){var a=r[i].name;typeof a==`string`&&(n+=At(t)+`<`+a+`>
61
+ `,t++)}if(r=``,i=e.fiber.pendingProps,e.fiber.tag===6)r=Ft(i,e.serverProps,t),t++;else if(a=Nt(e.fiber),a!==null)if(e.serverProps===void 0){r=t;var o=120-2*r-a.length-2,s=``;for(l in i)if(i.hasOwnProperty(l)&&l!==`children`){var c=Rt(i[l],15);if(o-=l.length+c.length+2,0>o){s+=` ...`;break}s+=` `+l+`=`+c}r=At(r)+`<`+a+s+`>
62
+ `,t++}else e.serverProps===null?(r=zt(a,i,jt(t)),t++):typeof e.serverProps==`string`?console.error(`Should not have matched a non HostText fiber to a Text node. This is a bug in React.`):(r=Vt(a,i,e.serverProps,t),t++);var l=``;for(i=e.fiber.child,a=0;i&&a<e.children.length;)o=e.children[a],o.fiber===i?(l+=Ht(o,t),a++):l+=O(i,t),i=i.sibling;for(i&&0<e.children.length&&(l+=At(t)+`...
63
+ `),i=e.serverTail,e.serverProps===null&&t--,e=0;e<i.length;e++)a=i[e],l=typeof a==`string`?l+(Mt(t)+Pt(a,120-2*t)+`
64
+ `):l+zt(a.type,a.props,Mt(t));return n+r+l}function Ut(e){try{return`
65
+
66
+ `+Ht(e,0)}catch{return``}}function Wt(e,t,n){for(var r=t,i=null,a=0;r;)r===e&&(a=0),i={fiber:r,children:i===null?[]:[i],serverProps:r===t?n:r===e?null:void 0,serverTail:[],distanceFromLeaf:a},a++,r=r.return;return i===null?``:Ut(i).replaceAll(/^[+-]/gm,`>`)}function Gt(e,t){var n=L({},e||Cm),r={tag:t};return bm.indexOf(t)!==-1&&(n.aTagInScope=null,n.buttonTagInScope=null,n.nobrTagInScope=null),xm.indexOf(t)!==-1&&(n.pTagInButtonScope=null),ym.indexOf(t)!==-1&&t!==`address`&&t!==`div`&&t!==`p`&&(n.listItemTagAutoclosing=null,n.dlItemTagAutoclosing=null),n.current=r,t===`form`&&(n.formTag=r),t===`a`&&(n.aTagInScope=r),t===`button`&&(n.buttonTagInScope=r),t===`nobr`&&(n.nobrTagInScope=r),t===`p`&&(n.pTagInButtonScope=r),t===`li`&&(n.listItemTagAutoclosing=r),(t===`dd`||t===`dt`)&&(n.dlItemTagAutoclosing=r),t===`#document`||t===`html`?n.containerTagInScope=null:n.containerTagInScope||=r,e!==null||t!==`#document`&&t!==`html`&&t!==`body`?!0===n.implicitRootScope&&(n.implicitRootScope=!1):n.implicitRootScope=!0,n}function Kt(e,t,n){switch(t){case`select`:return e===`hr`||e===`option`||e===`optgroup`||e===`script`||e===`template`||e===`#text`;case`optgroup`:return e===`option`||e===`#text`;case`option`:return e===`#text`;case`tr`:return e===`th`||e===`td`||e===`style`||e===`script`||e===`template`;case`tbody`:case`thead`:case`tfoot`:return e===`tr`||e===`style`||e===`script`||e===`template`;case`colgroup`:return e===`col`||e===`template`;case`table`:return e===`caption`||e===`colgroup`||e===`tbody`||e===`tfoot`||e===`thead`||e===`style`||e===`script`||e===`template`;case`head`:return e===`base`||e===`basefont`||e===`bgsound`||e===`link`||e===`meta`||e===`title`||e===`noscript`||e===`noframes`||e===`style`||e===`script`||e===`template`;case`html`:if(n)break;return e===`head`||e===`body`||e===`frameset`;case`frameset`:return e===`frame`;case`#document`:if(!n)return e===`html`}switch(e){case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t!==`h1`&&t!==`h2`&&t!==`h3`&&t!==`h4`&&t!==`h5`&&t!==`h6`;case`rp`:case`rt`:return Sm.indexOf(t)===-1;case`caption`:case`col`:case`colgroup`:case`frameset`:case`frame`:case`tbody`:case`td`:case`tfoot`:case`th`:case`thead`:case`tr`:return t==null;case`head`:return n||t===null;case`html`:return n&&t===`#document`||t===null;case`body`:return n&&(t===`#document`||t===`html`)||t===null}return!0}function qt(e,t){switch(e){case`address`:case`article`:case`aside`:case`blockquote`:case`center`:case`details`:case`dialog`:case`dir`:case`div`:case`dl`:case`fieldset`:case`figcaption`:case`figure`:case`footer`:case`header`:case`hgroup`:case`main`:case`menu`:case`nav`:case`ol`:case`p`:case`section`:case`summary`:case`ul`:case`pre`:case`listing`:case`table`:case`hr`:case`xmp`:case`h1`:case`h2`:case`h3`:case`h4`:case`h5`:case`h6`:return t.pTagInButtonScope;case`form`:return t.formTag||t.pTagInButtonScope;case`li`:return t.listItemTagAutoclosing;case`dd`:case`dt`:return t.dlItemTagAutoclosing;case`button`:return t.buttonTagInScope;case`a`:return t.aTagInScope;case`nobr`:return t.nobrTagInScope}return null}function Jt(e,t){for(;e;){switch(e.tag){case 5:case 26:case 27:if(e.type===t)return e}e=e.return}return null}function Yt(e,t){t||=Cm;var n=t.current;if(t=(n=Kt(e,n&&n.tag,t.implicitRootScope)?null:n)?null:qt(e,t),t=n||t,!t)return!0;var r=t.tag;if(t=String(!!n)+`|`+e+`|`+r,wm[t])return!1;wm[t]=!0;var i=(t=_p)?Jt(t.return,r):null,a=t!==null&&i!==null?Wt(i,t,null):``,o=`<`+e+`>`;return n?(n=``,r===`table`&&e===`tr`&&(n+=` Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser.`),console.error(`In HTML, %s cannot be a child of <%s>.%s
67
+ This will cause a hydration error.%s`,o,r,n,a)):console.error(`In HTML, %s cannot be a descendant of <%s>.
68
+ This will cause a hydration error.%s`,o,r,a),t&&(e=t.return,i===null||e===null||i===e&&e._debugOwner===t._debugOwner||E(i,function(){console.error(`<%s> cannot contain a nested %s.
69
+ See this log for the ancestor stack trace.`,r,o)})),!1}function Xt(e,t,n){if(n||Kt(`#text`,t,!1))return!0;if(n=`#text|`+t,wm[n])return!1;wm[n]=!0;var r=(n=_p)?Jt(n,t):null;return n=n!==null&&r!==null?Wt(r,n,n.tag===6?null:{children:null}):``,/\S/.test(e)?console.error(`In HTML, text nodes cannot be a child of <%s>.
70
+ This will cause a hydration error.%s`,t,n):console.error(`In HTML, whitespace text nodes cannot be a child of <%s>. Make sure you don't have any extra whitespace between tags on each line of your source code.
71
+ This will cause a hydration error.%s`,t,n),!1}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}function Qt(e){return e.replace(Am,function(e,t){return t.toUpperCase()})}function $t(e,t,n){var r=t.indexOf(`--`)===0;r||(-1<t.indexOf(`-`)?Mm.hasOwnProperty(t)&&Mm[t]||(Mm[t]=!0,console.error(`Unsupported style property %s. Did you mean %s?`,t,Qt(t.replace(km,`ms-`)))):Om.test(t)?Mm.hasOwnProperty(t)&&Mm[t]||(Mm[t]=!0,console.error(`Unsupported vendor-prefixed style property %s. Did you mean %s?`,t,t.charAt(0).toUpperCase()+t.slice(1))):!jm.test(n)||Nm.hasOwnProperty(n)&&Nm[n]||(Nm[n]=!0,console.error(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,t,n.replace(jm,``))),typeof n==`number`&&(isNaN(n)?Pm||(Pm=!0,console.error("`NaN` is an invalid value for the `%s` css style property.",t)):isFinite(n)||Fm||(Fm=!0,console.error("`Infinity` is an invalid value for the `%s` css style property.",t)))),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||Im.has(t)?t===`float`?e.cssFloat=n:(ke(n,t),e[t]=(``+n).trim()):e[t]=n+`px`}function en(e,t,n){if(t!=null&&typeof t!=`object`)throw Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");if(t&&Object.freeze(t),e=e.style,n!=null){if(t){var r={};if(n){for(var i in n)if(n.hasOwnProperty(i)&&!t.hasOwnProperty(i))for(var a=Tm[i]||[i],o=0;o<a.length;o++)r[a[o]]=i}for(var s in t)if(t.hasOwnProperty(s)&&(!n||n[s]!==t[s]))for(i=Tm[s]||[s],a=0;a<i.length;a++)r[i[a]]=s;for(var c in s={},t)for(i=Tm[c]||[c],a=0;a<i.length;a++)s[i[a]]=c;for(var l in c={},r)if(i=r[l],(a=s[l])&&i!==a&&(o=i+`,`+a,!c[o])){c[o]=!0,o=console;var u=t[i];o.error.call(o,`%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.`,u==null||typeof u==`boolean`||u===``?`Removing`:`Updating`,i,a)}}for(var d in n)!n.hasOwnProperty(d)||t!=null&&t.hasOwnProperty(d)||(d.indexOf(`--`)===0?e.setProperty(d,``):d===`float`?e.cssFloat=``:e[d]=``);for(var f in t)l=t[f],t.hasOwnProperty(f)&&n[f]!==l&&$t(e,f,l)}else for(r in t)t.hasOwnProperty(r)&&$t(e,r,t[r])}function tn(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}}function nn(e){return zm.get(e)||e}function rn(e,t){if(yp.call(Hm,t)&&Hm[t])return!0;if(Wm.test(t)){if(e=`aria-`+t.slice(4).toLowerCase(),e=Vm.hasOwnProperty(e)?e:null,e==null)return console.error("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",t),Hm[t]=!0;if(t!==e)return console.error("Invalid ARIA attribute `%s`. Did you mean `%s`?",t,e),Hm[t]=!0}if(Um.test(t)){if(e=t.toLowerCase(),e=Vm.hasOwnProperty(e)?e:null,e==null)return Hm[t]=!0,!1;t!==e&&(console.error("Unknown ARIA attribute `%s`. Did you mean `%s`?",t,e),Hm[t]=!0)}return!0}function an(e,t){var n=[],r;for(r in t)rn(e,r)||n.push(r);t=n.map(function(e){return"`"+e+"`"}).join(`, `),n.length===1?console.error(`Invalid aria prop %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e):1<n.length&&console.error(`Invalid aria props %s on <%s> tag. For details, see https://react.dev/link/invalid-aria-props`,t,e)}function on(e,t,n,r){if(yp.call(Km,t)&&Km[t])return!0;var i=t.toLowerCase();if(i===`onfocusin`||i===`onfocusout`)return console.error(`React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React.`),Km[t]=!0;if(typeof n==`function`&&(e===`form`&&t===`action`||e===`input`&&t===`formAction`||e===`button`&&t===`formAction`))return!0;if(r!=null){if(e=r.possibleRegistrationNames,r.registrationNameDependencies.hasOwnProperty(t))return!0;if(r=e.hasOwnProperty(i)?e[i]:null,r!=null)return console.error("Invalid event handler property `%s`. Did you mean `%s`?",t,r),Km[t]=!0;if(qm.test(t))return console.error("Unknown event handler property `%s`. It will be ignored.",t),Km[t]=!0}else if(qm.test(t))return Jm.test(t)&&console.error("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",t),Km[t]=!0;if(Ym.test(t)||Xm.test(t))return!0;if(i===`innerhtml`)return console.error("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Km[t]=!0;if(i===`aria`)return console.error("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Km[t]=!0;if(i===`is`&&n!=null&&typeof n!=`string`)return console.error("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof n),Km[t]=!0;if(typeof n==`number`&&isNaN(n))return console.error("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",t),Km[t]=!0;if(Bm.hasOwnProperty(i)){if(i=Bm[i],i!==t)return console.error("Invalid DOM property `%s`. Did you mean `%s`?",t,i),Km[t]=!0}else if(t!==i)return console.error("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",t,i),Km[t]=!0;switch(t){case`dangerouslySetInnerHTML`:case`children`:case`style`:case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:return!0;case`innerText`:case`textContent`:return!0}switch(typeof n){case`boolean`:switch(t){case`autoFocus`:case`checked`:case`multiple`:case`muted`:case`selected`:case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`: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`:case`capture`:case`download`:case`inert`:return!0;default:return i=t.toLowerCase().slice(0,5),i===`data-`||i===`aria-`?!0:(n?console.error('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',n,t,t,n,t):console.error(`Received \`%s\` for a non-boolean attribute \`%s\`.
72
+
73
+ If you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.
74
+
75
+ If you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.`,n,t,t,n,t,t,t),Km[t]=!0)}case`function`:case`symbol`:return Km[t]=!0,!1;case`string`:if(n===`false`||n===`true`){switch(t){case`checked`:case`selected`:case`multiple`:case`muted`: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`:case`inert`:break;default:return!0}console.error("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",n,t,n===`false`?`The browser will interpret it as a truthy value.`:`Although this works, it will not work as expected if you pass the string "false".`,t,n),Km[t]=!0}}return!0}function sn(e,t,n){var r=[],i;for(i in t)on(e,i,t[i],n)||r.push(i);t=r.map(function(e){return"`"+e+"`"}).join(`, `),r.length===1?console.error(`Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e):1<r.length&&console.error(`Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://react.dev/link/attribute-behavior `,t,e)}function cn(e){return Zm.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function ln(){}function un(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}function dn(e){var t=$e(e);if(t&&(e=t.stateNode)){var n=e[Yp]||null;a:switch(e=t.stateNode,t.type){case`input`:if(yt(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(D(t,`name`),n=n.querySelectorAll(`input[name="`+_t(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Yp]||null;if(!i)throw Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");yt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&ht(r)}break a;case`textarea`:Dt(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&wt(e,!!n.multiple,t,!1)}}}function fn(e,t,n){if(th)return e(t,n);th=!0;try{return e(t)}finally{if(th=!1,($m!==null||eh!==null)&&(ll(),$m&&(t=$m,e=eh,eh=$m=null,dn(t),e)))for(t=0;t<e.length;t++)dn(e[t])}}function pn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Yp]||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("Expected `"+t+"` listener to be a function, instead got a value of `"+typeof n+"` type.");return n}function mn(){if(sh)return sh;var e,t=oh,n=t.length,r,i=`value`in ah?ah.value:ah.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 sh=i.slice(e,1<r?1-r:void 0)}function hn(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 gn(){return!0}function _n(){return!1}function vn(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)?gn:_n,this.isPropagationStopped=_n,this}return L(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=gn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=gn)},persist:function(){},isPersistent:gn}),t}function yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Th[e])?!!t[e]:!1}function bn(){return yn}function xn(e,t){switch(e){case`keyup`:return Mh.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==Nh;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Sn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}function Cn(e,t){switch(e){case`compositionend`:return Sn(t);case`keypress`:return t.which===Rh?(Bh=!0,zh):null;case`textInput`:return e=t.data,e===zh&&Bh?null:e;default:return null}}function wn(e,t){if(Vh)return e===`compositionend`||!Ph&&xn(e,t)?(e=mn(),sh=oh=ah=null,Vh=!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 Lh&&t.locale!==`ko`?null:t.data;default:return null}}function Tn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!Hh[e.type]:t===`textarea`}function En(e){if(!nh)return!1;e=`on`+e;var t=e in document;return t||=(t=document.createElement(`div`),t.setAttribute(e,`return;`),typeof t[e]==`function`),t}function Dn(e,t,n,r){$m?eh?eh.push(r):eh=[r]:$m=r,t=gu(t,`onChange`),0<t.length&&(n=new lh(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}function On(e){uu(e,0)}function kn(e){if(ht(et(e)))return e}function An(e,t){if(e===`change`)return t}function jn(){Uh&&(Uh.detachEvent(`onpropertychange`,Mn),Wh=Uh=null)}function Mn(e){if(e.propertyName===`value`&&kn(Wh)){var t=[];Dn(t,Wh,e,un(e)),fn(On,t)}}function Nn(e,t,n){e===`focusin`?(jn(),Uh=t,Wh=n,Uh.attachEvent(`onpropertychange`,Mn)):e===`focusout`&&jn()}function Pn(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return kn(Wh)}function Fn(e,t){if(e===`click`)return kn(t)}function In(e,t){if(e===`input`||e===`change`)return kn(t)}function Ln(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}function Rn(e,t){if(Kh(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(!yp.call(t,i)||!Kh(e[i],t[i]))return!1}return!0}function zn(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Bn(e,t){var n=zn(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=zn(n)}}function Vn(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Vn(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Hn(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=gt(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=gt(e.document)}return t}function Un(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function Wn(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zh||Jh==null||Jh!==gt(r)||(r=Jh,`selectionStart`in r&&Un(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}),Xh&&Rn(Xh,r)||(Xh=r,r=gu(Yh,`onSelect`),0<r.length&&(t=new lh(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jh)))}function Gn(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}function Kn(e){if($h[e])return $h[e];if(!Qh[e])return e;var t=Qh[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in eg)return $h[e]=t[n];return e}function qn(e,t){cg.set(e,t),rt(t,[e])}function Jn(e){for(var t=gg,n=0;n<e.length;n++){var r=e[n];if(typeof r==`object`&&r)if(Xf(r)&&r.length===2&&typeof r[0]==`string`){if(t!==gg&&t!==yg)return _g;t=yg}else return _g;else{if(typeof r==`function`||typeof r==`string`&&50<r.length||t!==gg&&t!==vg)return _g;t=vg}}return t}function Yn(e,t,n,r){for(var i in e)yp.call(e,i)&&i[0]!==`_`&&Xn(i,e[i],t,n,r)}function Xn(e,t,n,r,i){switch(typeof t){case`object`:if(t===null){t=`null`;break}else{if(t.$$typeof===Pf){var a=x(t.type)||`…`,o=t.key;t=t.props;var s=Object.keys(t),c=s.length;if(o==null&&c===0){t=`<`+a+` />`;break}if(3>r||c===1&&s[0]===`children`&&o==null){t=`<`+a+` … />`;break}for(var l in n.push([i+`\xA0\xA0`.repeat(r)+e,`<`+a]),o!==null&&Xn(`key`,o,n,r+1,i),e=!1,t)l===`children`?t.children!=null&&(!Xf(t.children)||0<t.children.length)&&(e=!0):yp.call(t,l)&&l[0]!==`_`&&Xn(l,t[l],n,r+1,i);n.push([``,e?`>…</`+a+`>`:`/>`]);return}if(a=Object.prototype.toString.call(t),a=a.slice(8,a.length-1),a===`Array`){if(l=Jn(t),l===vg||l===gg){t=JSON.stringify(t);break}else if(l===yg){for(n.push([i+`\xA0\xA0`.repeat(r)+e,``]),e=0;e<t.length;e++)a=t[e],Xn(a[0],a[1],n,r+1,i);return}}if(a===`Promise`){if(t.status===`fulfilled`){if(a=n.length,Xn(e,t.value,n,r,i),n.length>a){n=n[a],n[1]=`Promise<`+(n[1]||`Object`)+`>`;return}}else if(t.status===`rejected`&&(a=n.length,Xn(e,t.reason,n,r,i),n.length>a)){n=n[a],n[1]=`Rejected Promise<`+n[1]+`>`;return}n.push([`\xA0\xA0`.repeat(r)+e,`Promise`]);return}a===`Object`&&(l=Object.getPrototypeOf(t))&&typeof l.constructor==`function`&&(a=l.constructor.name),n.push([i+`\xA0\xA0`.repeat(r)+e,a===`Object`?3>r?``:`…`:a]),3>r&&Yn(t,n,r+1,i);return}case`function`:t=t.name===``?`() => {}`:t.name+`() {}`;break;case`string`:t=t===hg?`…`:JSON.stringify(t);break;case`undefined`:t=`undefined`;break;case`boolean`:t=t?`true`:`false`;break;default:t=String(t)}n.push([i+`\xA0\xA0`.repeat(r)+e,t])}function Zn(e,t,n,r){var i=!0;for(o in e)o in t||(n.push([bg+`\xA0\xA0`.repeat(r)+o,`…`]),i=!1);for(var a in t)if(a in e){var o=e[a],s=t[a];if(o!==s){if(r===0&&a===`children`)i=`\xA0\xA0`.repeat(r)+a,n.push([bg+i,`…`],[xg+i,`…`]);else{if(!(3<=r)){if(typeof o==`object`&&typeof s==`object`&&o!==null&&s!==null&&o.$$typeof===s.$$typeof)if(s.$$typeof===Pf){if(o.type===s.type&&o.key===s.key){o=x(s.type)||`…`,i=`\xA0\xA0`.repeat(r)+a,o=`<`+o+` … />`,n.push([bg+i,o],[xg+i,o]),i=!1;continue}}else{var c=Object.prototype.toString.call(o),l=Object.prototype.toString.call(s);if(c===l&&(l===`[object Object]`||l===`[object Array]`)){c=[Sg+`\xA0\xA0`.repeat(r)+a,l===`[object Array]`?`Array`:``],n.push(c),l=n.length,Zn(o,s,n,r+1)?l===n.length&&(c[1]=`Referentially unequal but deeply equal objects. Consider memoization.`):i=!1;continue}}else if(typeof o==`function`&&typeof s==`function`&&o.name===s.name&&o.length===s.length&&(c=Function.prototype.toString.call(o),l=Function.prototype.toString.call(s),c===l)){o=s.name===``?`() => {}`:s.name+`() {}`,n.push([Sg+`\xA0\xA0`.repeat(r)+a,o+` Referentially unequal function closure. Consider memoization.`]);continue}}Xn(a,o,n,r,bg),Xn(a,s,n,r,xg)}i=!1}}else n.push([xg+`\xA0\xA0`.repeat(r)+a,`…`]),i=!1;return i}function Qn(e){V=e&63?`Blocking`:e&64?`Gesture`:e&4194176?`Transition`:e&62914560?`Suspense`:e&2080374784?`Idle`:`Other`}function k(e,t,n,r){Cg&&(Dg.start=t,Dg.end=n,Eg.color=`warning`,Eg.tooltipText=r,Eg.properties=null,(e=e._debugTask)?e.run(performance.measure.bind(performance,r,Dg)):performance.measure(r,Dg))}function $n(e,t,n){k(e,t,n,`Reconnect`)}function er(e,t,n,r,i){var a=S(e);if(a!==null&&Cg){var o=e.alternate,s=e.actualDuration;if(o===null||o.child!==e.child)for(var c=e.child;c!==null;c=c.sibling)s-=c.actualDuration;r=.5>s?r?`tertiary-light`:`primary-light`:10>s?r?`tertiary`:`primary`:100>s?r?`tertiary-dark`:`primary-dark`:`error`;var l=e.memoizedProps;s=e._debugTask,l!==null&&o!==null&&o.memoizedProps!==l?(c=[Og],l=Zn(o.memoizedProps,l,c,0),1<c.length&&(l&&!Tg&&(o.lanes&i)===0&&100<e.actualDuration?(Tg=!0,c[0]=Ag,Eg.color=`warning`,Eg.tooltipText=kg):(Eg.color=r,Eg.tooltipText=a),Eg.properties=c,Dg.start=t,Dg.end=n,s==null?performance.measure(`​`+a,Dg):s.run(performance.measure.bind(performance,`​`+a,Dg)))):s==null?console.timeStamp(a,t,n,wg,void 0,r):s.run(console.timeStamp.bind(console,a,t,n,wg,void 0,r))}}function tr(e,t,n,r){if(Cg){var i=S(e);if(i!==null){for(var a=null,o=[],s=0;s<r.length;s++){var c=r[s];a==null&&c.source!==null&&(a=c.source._debugTask),c=c.value,o.push([`Error`,typeof c==`object`&&c&&typeof c.message==`string`?String(c.message):String(c)])}e.key!==null&&Xn(`key`,e.key,o,0,``),e.memoizedProps!==null&&Yn(e.memoizedProps,o,0,``),a??=e._debugTask,e={start:t,end:n,detail:{devtools:{color:`error`,track:wg,tooltipText:e.tag===13?`Hydration failed`:`Error boundary caught an error`,properties:o}}},a?a.run(performance.measure.bind(performance,`​`+i,e)):performance.measure(`​`+i,e)}}}function nr(e,t,n,r,i){if(i!==null){if(Cg){var a=S(e);if(a!==null){r=[];for(var o=0;o<i.length;o++){var s=i[o].value;r.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e.key!==null&&Xn(`key`,e.key,r,0,``),e.memoizedProps!==null&&Yn(e.memoizedProps,r,0,``),t={start:t,end:n,detail:{devtools:{color:`error`,track:wg,tooltipText:`A lifecycle or effect errored`,properties:r}}},(e=e._debugTask)?e.run(performance.measure.bind(performance,`​`+a,t)):performance.measure(`​`+a,t)}}}else a=S(e),a!==null&&Cg&&(i=1>r?`secondary-light`:100>r?`secondary`:500>r?`secondary-dark`:`error`,(e=e._debugTask)?e.run(console.timeStamp.bind(console,a,t,n,wg,void 0,i)):console.timeStamp(a,t,n,wg,void 0,i))}function rr(e,t,n,r){if(Cg&&!(t<=e)){var i=(n&738197653)===n?`tertiary-dark`:`primary-dark`;n=(n&536870912)===n?`Prepared`:(n&201326741)===n?`Hydrated`:`Render`,r?r.run(console.timeStamp.bind(console,n,e,t,V,B,i)):console.timeStamp(n,e,t,V,B,i)}}function ir(e,t,n,r){!Cg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Prewarm`,e,t,V,B,n)):console.timeStamp(`Prewarm`,e,t,V,B,n))}function ar(e,t,n,r){!Cg||t<=e||(n=(n&738197653)===n?`tertiary-dark`:`primary-dark`,r?r.run(console.timeStamp.bind(console,`Suspended`,e,t,V,B,n)):console.timeStamp(`Suspended`,e,t,V,B,n))}function or(e,t,n,r,i,a){if(Cg&&!(t<=e)){n=[];for(var o=0;o<r.length;o++){var s=r[o].value;n.push([`Recoverable Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`primary-dark`,track:V,trackGroup:B,tooltipText:i?`Hydration Failed`:`Recovered after Error`,properties:n}}},a?a.run(performance.measure.bind(performance,`Recovered`,e)):performance.measure(`Recovered`,e)}}function sr(e,t,n,r){!Cg||t<=e||(r?r.run(console.timeStamp.bind(console,`Errored`,e,t,V,B,`error`)):console.timeStamp(`Errored`,e,t,V,B,`error`))}function cr(e,t,n,r){!Cg||t<=e||(r?r.run(console.timeStamp.bind(console,n,e,t,V,B,`secondary-light`)):console.timeStamp(n,e,t,V,B,`secondary-light`))}function lr(e,t,n,r,i){if(Cg&&!(t<=e)){for(var a=[],o=0;o<n.length;o++){var s=n[o].value;a.push([`Error`,typeof s==`object`&&s&&typeof s.message==`string`?String(s.message):String(s)])}e={start:e,end:t,detail:{devtools:{color:`error`,track:V,trackGroup:B,tooltipText:r?`Remaining Effects Errored`:`Commit Errored`,properties:a}}},i?i.run(performance.measure.bind(performance,`Errored`,e)):performance.measure(`Errored`,e)}}function ur(e,t,n){!Cg||t<=e||(n?n.run(console.timeStamp.bind(console,`Animating`,e,t,V,B,`secondary-dark`)):console.timeStamp(`Animating`,e,t,V,B,`secondary-dark`))}function dr(){for(var e=Pg,t=Fg=Pg=0;t<e;){var n=Ng[t];Ng[t++]=null;var r=Ng[t];Ng[t++]=null;var i=Ng[t];Ng[t++]=null;var a=Ng[t];if(Ng[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&&hr(n,i,a)}}function fr(e,t,n,r){Ng[Pg++]=e,Ng[Pg++]=t,Ng[Pg++]=n,Ng[Pg++]=r,Fg|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function pr(e,t,n,r){return fr(e,t,n,r),gr(e)}function mr(e,t){return fr(e,null,null,t),gr(e)}function hr(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&jg||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-Lp(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function gr(e){if(Kx>Gx)throw Zx=Kx=0,Qx=qx=null,Error(`Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.`);Zx>Xx&&(Zx=0,Qx=null,console.error(`Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render.`)),e.alternate===null&&e.flags&4098&&Kl(e);for(var t=e,n=t.return;n!==null;)t.alternate===null&&t.flags&4098&&Kl(e),t=n,n=t.return;return t.tag===3?t.stateNode:null}function _r(e){if(Lg===null)return e;var t=Lg(e);return t===void 0?e:t.current}function vr(e){if(Lg===null)return e;var t=Lg(e);return t===void 0?e!=null&&typeof e.render==`function`&&(t=_r(e.render),e.render!==t)?(t={$$typeof:Vf,render:t},e.displayName!==void 0&&(t.displayName=e.displayName),t):e:t.current}function yr(e,t){if(Lg===null)return!1;var n=e.elementType;t=t.type;var r=!1,i=typeof t==`object`&&t?t.$$typeof:null;switch(e.tag){case 1:typeof t==`function`&&(r=!0);break;case 0:(typeof t==`function`||i===Gf)&&(r=!0);break;case 11:(i===Vf||i===Gf)&&(r=!0);break;case 14:case 15:(i===Wf||i===Gf)&&(r=!0);break;default:return!1}return!!(r&&(e=Lg(n),e!==void 0&&e===Lg(t)))}function br(e){Lg!==null&&typeof WeakSet==`function`&&(Rg===null&&(Rg=new WeakSet),Rg.add(e))}function xr(e,t,n){do{var r=e,i=r.alternate,a=r.child,o=r.sibling,s=r.tag;r=r.type;var c=null;switch(s){case 0:case 15:case 1:c=r;break;case 11:c=r.render}if(Lg===null)throw Error(`Expected resolveFamily to be set during hot reload.`);var l=!1;if(r=!1,c!==null&&(c=Lg(c),c!==void 0&&(n.has(c)?r=!0:t.has(c)&&(s===1?r=!0:l=!0))),Rg!==null&&(Rg.has(e)||i!==null&&Rg.has(i))&&(r=!0),r&&(e._debugNeedsRemount=!0),(r||l)&&(i=mr(e,2),i!==null&&il(i,e,2)),a===null||r||xr(a,t,n),o===null)break;e=o}while(1)}function Sr(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,this.actualDuration=-0,this.actualStartTime=-1.1,this.treeBaseDuration=this.selfBaseDuration=-0,this._debugTask=this._debugStack=this._debugOwner=this._debugInfo=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,Ug||typeof Object.preventExtensions!=`function`||Object.preventExtensions(this)}function Cr(e){return e=e.prototype,!(!e||!e.isReactComponent)}function wr(e,t){var n=e.alternate;switch(n===null?(n=h(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n._debugOwner=e._debugOwner,n._debugStack=e._debugStack,n._debugTask=e._debugTask,n._debugHookTypes=e._debugHookTypes,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null,n.actualDuration=-0,n.actualStartTime=-1.1),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,_debugThenableState:t._debugThenableState},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n.selfBaseDuration=e.selfBaseDuration,n.treeBaseDuration=e.treeBaseDuration,n._debugInfo=e._debugInfo,n._debugNeedsRemount=e._debugNeedsRemount,n.tag){case 0:case 15:n.type=_r(e.type);break;case 1:n.type=_r(e.type);break;case 11:n.type=vr(e.type)}return n}function Tr(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.selfBaseDuration=0,e.treeBaseDuration=0):(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,_debugThenableState:t._debugThenableState},e.selfBaseDuration=n.selfBaseDuration,e.treeBaseDuration=n.treeBaseDuration),e}function Er(e,t,n,r,i,a){var o=0,s=e;if(typeof e==`function`)Cr(e)&&(o=1),s=_r(s);else if(typeof e==`string`)o=de(),o=qd(e,n,o)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case Kf:return t=h(31,n,t,i),t.elementType=Kf,t.lanes=a,t;case If:return Or(n.children,i,a,t);case Lf:o=8,i|=Bg,i|=Vg;break;case Rf:return e=n,r=i,typeof e.id!=`string`&&console.error('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof e.id),t=h(12,e,t,r|U),t.elementType=Rf,t.lanes=a,t.stateNode={effectDuration:0,passiveEffectDuration:0},t;case Hf:return t=h(13,n,t,i),t.elementType=Hf,t.lanes=a,t;case Uf:return t=h(19,n,t,i),t.elementType=Uf,t.lanes=a,t;default:if(typeof e==`object`&&e)switch(e.$$typeof){case Bf:o=10;break a;case zf:o=9;break a;case Vf:o=11,s=vr(s);break a;case Wf:o=14;break a;case Gf:o=16,s=null;break a}s=``,(e===void 0||typeof e==`object`&&e&&Object.keys(e).length===0)&&(s+=` You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.`),e===null?n=`null`:Xf(e)?n=`array`:e!==void 0&&e.$$typeof===Pf?(n=`<`+(x(e.type)||`Unknown`)+` />`,s=` Did you accidentally export a JSX literal instead of a component?`):n=typeof e,(o=r?se(r):null)&&(s+=`
76
+
77
+ Check the render method of \``+o+"`."),o=29,n=Error(`Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: `+(n+`.`+s)),s=null}return t=h(o,n,t,i),t.elementType=e,t.type=s,t.lanes=a,t._debugOwner=r,t}function Dr(e,t,n){return t=Er(e.type,e.key,e.props,e._owner,t,n),t._debugOwner=e._owner,t._debugStack=e._debugStack,t._debugTask=e._debugTask,t}function Or(e,t,n,r){return e=h(7,e,r,t),e.lanes=n,e}function kr(e,t,n){return e=h(6,e,null,t),e.lanes=n,e}function Ar(e){var t=h(18,null,null,H);return t.stateNode=e,t}function jr(e,t,n){return t=h(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Mr(e,t){if(typeof e==`object`&&e){var n=Wg.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},Wg.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}function Nr(e,t){zr(),Gg[Kg++]=Jg,Gg[Kg++]=qg,qg=e,Jg=t}function Pr(e,t,n){zr(),Yg[Xg++]=Qg,Yg[Xg++]=$g,Yg[Xg++]=Zg,Zg=e;var r=Qg;e=$g;var i=32-Lp(r)-1;r&=~(1<<i),n+=1;var a=32-Lp(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Qg=1<<32-Lp(t)+i|n<<i|r,$g=a+e}else Qg=1<<a|n<<i|r,$g=e}function Fr(e){zr(),e.return!==null&&(Nr(e,1),Pr(e,1,0))}function Ir(e){for(;e===qg;)qg=Gg[--Kg],Gg[Kg]=null,Jg=Gg[--Kg],Gg[Kg]=null;for(;e===Zg;)Zg=Yg[--Xg],Yg[Xg]=null,$g=Yg[--Xg],Yg[Xg]=null,Qg=Yg[--Xg],Yg[Xg]=null}function Lr(){return zr(),Zg===null?null:{id:Qg,overflow:$g}}function Rr(e,t){zr(),Yg[Xg++]=Qg,Yg[Xg++]=$g,Yg[Xg++]=Zg,Qg=t.id,$g=t.overflow,Zg=e}function zr(){W||console.error(`Expected to be hydrating. This is a bug in React. Please file an issue.`)}function Br(e,t){if(e.return===null){if(r_===null)r_={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t};else{if(r_.fiber!==e)throw Error(`Saw multiple hydration diff roots in a pass. This is a bug in React.`);r_.distanceFromLeaf>t&&(r_.distanceFromLeaf=t)}return r_}var n=Br(e.return,t+1).children;return 0<n.length&&n[n.length-1].fiber===e?(n=n[n.length-1],n.distanceFromLeaf>t&&(n.distanceFromLeaf=t),n):(t={fiber:e,children:[],serverProps:void 0,serverTail:[],distanceFromLeaf:t},n.push(t),t)}function Vr(){W&&console.error(`We should not be hydrating here. This is a bug in React. Please file a bug.`)}function Hr(e,t){n_||(e=Br(e,0),e.serverProps=null,t!==null&&(t=xd(t),e.serverTail.push(t)))}function Ur(e){var t=1<arguments.length&&arguments[1]!==void 0?arguments[1]:!1,n=``,r=r_;throw r!==null&&(r_=null,n=Ut(r)),Yr(Mr(Error(`Hydration failed because the server rendered `+(t?`text`:`HTML`)+` didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used:
78
+
79
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
80
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
81
+ - Date formatting in a user's locale which doesn't match the server.
82
+ - External changing data without sending a snapshot of it along with the HTML.
83
+ - Invalid HTML tag nesting.
84
+
85
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
86
+
87
+ https://react.dev/link/hydration-mismatch`+n),e)),o_}function Wr(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Jp]=e,t[Yp]=r,yu(n,r),n){case`dialog`:I(`cancel`,t),I(`close`,t);break;case`iframe`:case`object`:case`embed`:I(`load`,t);break;case`video`:case`audio`:for(n=0;n<fS.length;n++)I(fS[n],t);break;case`source`:I(`error`,t);break;case`img`:case`image`:case`link`:I(`error`,t),I(`load`,t);break;case`details`:I(`toggle`,t);break;case`input`:at(`input`,r),I(`invalid`,t),vt(t,r),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`option`:St(t,r);break;case`select`:at(`select`,r),I(`invalid`,t),Tt(t,r);break;case`textarea`:at(`textarea`,r),I(`invalid`,t),Et(t,r),Ot(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||Tu(t.textContent,n)?(r.popover!=null&&(I(`beforetoggle`,t),I(`toggle`,t)),r.onScroll!=null&&I(`scroll`,t),r.onScrollEnd!=null&&I(`scrollend`,t),r.onClick!=null&&(t.onclick=ln),t=!0):t=!1,t||Ur(e,!0)}function Gr(e){for(e_=e.return;e_;)switch(e_.tag){case 5:case 31:case 13:a_=!1;return;case 27:case 3:a_=!0;return;default:e_=e_.return}}function Kr(e){if(e!==e_)return!1;if(!W)return Gr(e),W=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Gu(e.type,e.memoizedProps)),n=!n),n&&t_){for(n=t_;n;){var r=Br(e,0),i=xd(n);r.serverTail.push(i),n=i.type===`Suspense`?Cd(n):bd(n.nextSibling)}Ur(e)}if(Gr(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);t_=Cd(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);t_=Cd(e)}else t===27?(t=t_,nd(e.type)?(e=nC,nC=null,t_=e):t_=t):t_=e_?bd(e.stateNode.nextSibling):null;return!0}function qr(){t_=e_=null,n_=W=!1}function Jr(){var e=i_;return e!==null&&(mx===null?mx=e:mx.push.apply(mx,e),i_=null),e}function Yr(e){i_===null?i_=[e]:i_.push(e)}function Xr(){var e=r_;if(e!==null){r_=null;for(var t=Ut(e);0<e.children.length;)e=e.children[0];E(e.fiber,function(){console.error(`A tree hydrated but some attributes of the server rendered HTML didn't match the client properties. This won't be patched up. This can happen if a SSR-ed Client Component used:
88
+
89
+ - A server/client branch \`if (typeof window !== 'undefined')\`.
90
+ - Variable input such as \`Date.now()\` or \`Math.random()\` which changes each time it's called.
91
+ - Date formatting in a user's locale which doesn't match the server.
92
+ - External changing data without sending a snapshot of it along with the HTML.
93
+ - Invalid HTML tag nesting.
94
+
95
+ It can also happen if the client has a browser extension installed which messes with the HTML before React loaded.
96
+
97
+ %s%s`,`https://react.dev/link/hydration-mismatch`,t)})}}function Zr(){d_=u_=null,f_=!1}function Qr(e,t,n){w(s_,t._currentValue,e),t._currentValue=n,w(c_,t._currentRenderer,e),t._currentRenderer!==void 0&&t._currentRenderer!==null&&t._currentRenderer!==l_&&console.error(`Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported.`),t._currentRenderer=l_}function $r(e,t){e._currentValue=s_.current;var n=c_.current;C(c_,t),e._currentRenderer=n,C(s_,t)}function ei(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}e!==n&&console.error(`Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.`)}function ti(e,t,n,r){var i=e.child;for(i!==null&&(i.return=e);i!==null;){var a=i.dependencies;if(a!==null){var o=i.child;a=a.firstContext;a:for(;a!==null;){var s=a;a=i;for(var c=0;c<t.length;c++)if(s.context===t[c]){a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),ei(a.return,n,e),r||(o=null);break a}a=s.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(`We just came from a parent so we must have had a parent. This is a bug in React.`);o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),ei(o,n,e),o=null}else o=i.child;if(o!==null)o.return=i;else for(o=i;o!==null;){if(o===e){o=null;break}if(i=o.sibling,i!==null){i.return=o.return,o=i;break}o=o.return}i=o}}function ni(e,t,n,r){e=null;for(var i=t,a=!1;i!==null;){if(!a){if(i.flags&524288)a=!0;else if(i.flags&262144)break}if(i.tag===10){var o=i.alternate;if(o===null)throw Error(`Should have a current fiber. This is a bug in React.`);if(o=o.memoizedProps,o!==null){var s=i.type;Kh(i.pendingProps.value,o.value)||(e===null?e=[s]:e.push(s))}}else if(i===ip.current){if(o=i.alternate,o===null)throw Error(`Should have a current fiber. This is a bug in React.`);o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[bC]:e.push(bC))}i=i.return}e!==null&&ti(t,e,n,r),t.flags|=262144}function ri(e){for(e=e.firstContext;e!==null;){if(!Kh(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ii(e){u_=e,d_=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function ai(e){return f_&&console.error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`),si(u_,e)}function oi(e,t){return u_===null&&ii(e),si(e,t)}function si(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},d_===null){if(e===null)throw Error(`Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().`);d_=t,e.dependencies={lanes:0,firstContext:t,_debugThenableState:null},e.flags|=524288}else d_=d_.next=t;return n}function ci(){return{controller:new p_,data:new Map,refCount:0}}function li(e){e.controller.signal.aborted&&console.warn(`A cache instance was retained after it was already freed. This likely indicates a bug in React.`),e.refCount++}function ui(e){e.refCount--,0>e.refCount&&console.warn(`A cache instance was released after it was already freed. This likely indicates a bug in React.`),e.refCount===0&&m_(h_,function(){e.controller.abort()})}function di(e,t,n){e&127?0>j_&&(j_=__(),M_=v_(t),P_=t,n!=null&&(F_=S(n)),(X&(Ib|Lb))!==Fb&&(k_=!0,N_=y_),e=Ju(),t=qu(),e!==R_||t!==L_?R_=-1.1:t!==null&&(N_=y_),I_=e,L_=t):e&4194048&&0>H_&&(H_=__(),W_=v_(t),G_=t,n!=null&&(K_=S(n)),0>V_)&&(e=Ju(),t=qu(),(e!==Y_||t!==J_)&&(Y_=-1.1),q_=e,J_=t)}function fi(e){if(0>j_){j_=__(),M_=e._debugTask==null?null:e._debugTask,(X&(Ib|Lb))!==Fb&&(N_=y_);var t=Ju(),n=qu();t!==R_||n!==L_?R_=-1.1:n!==null&&(N_=y_),I_=t,L_=n}0>H_&&(H_=__(),W_=e._debugTask==null?null:e._debugTask,0>V_)&&(e=Ju(),t=qu(),(e!==Y_||t!==J_)&&(Y_=-1.1),q_=e,J_=t)}function pi(){var e=E_;return E_=0,e}function mi(e){var t=E_;return E_=e,t}function hi(e){var t=E_;return E_+=e,t}function gi(){K=G=-1.1}function _i(){var e=G;return G=-1.1,e}function vi(e){0<=e&&(G=e)}function yi(){var e=D_;return D_=-0,e}function bi(e){0<=e&&(D_=e)}function xi(){var e=O_;return O_=null,e}function Si(){var e=k_;return k_=!1,e}function Ci(e){T_=__(),0>e.actualStartTime&&(e.actualStartTime=T_)}function wi(e){if(0<=T_){var t=__()-T_;e.actualDuration+=t,e.selfBaseDuration=t,T_=-1}}function Ti(e){if(0<=T_){var t=__()-T_;e.actualDuration+=t,T_=-1}}function Ei(){if(0<=T_){var e=__(),t=e-T_;T_=-1,E_+=t,D_+=t,K=e}}function Di(e){O_===null&&(O_=[]),O_.push(e),w_===null&&(w_=[]),w_.push(e)}function Oi(){T_=__(),0>G&&(G=T_)}function ki(e){for(var t=e.child;t;)e.actualDuration+=t.actualDuration,t=t.sibling}function Ai(e,t){if(av===null){var n=av=[];ov=0,sv=au(),cv={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return ov++,t.then(ji,ji),t}function ji(){if(--ov===0&&(-1<H_||(V_=-1.1),av!==null)){cv!==null&&(cv.status=`fulfilled`);var e=av;av=null,sv=0,cv=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Mi(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}function Ni(){var e=uv.current;return e===null?Gb.pooledCache:e}function Pi(e,t){t===null?w(uv,uv.current,e):w(uv,t.pool,e)}function Fi(){var e=Ni();return e===null?null:{parent:g_._currentValue,pool:e}}function Ii(){return{didWarnAboutUncachedPromise:!1,thenables:[]}}function Li(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ri(e,t,n){R.actQueue!==null&&(R.didUsePromise=!0);var r=e.thenables;if(n=r[n],n===void 0?r.push(t):n!==t&&(e.didWarnAboutUncachedPromise||(e.didWarnAboutUncachedPromise=!0,console.error(`A component was suspended by an uncached promise. Creating promises inside a Client Component or hook is not yet supported, except via a Suspense-compatible library or framework.`)),t.then(ln,ln),t=n),t._debugInfo===void 0){e=performance.now(),r=t.displayName;var i={name:typeof r==`string`?r:`Promise`,start:e,end:e,value:t};t._debugInfo=[{awaited:i}],t.status!==`fulfilled`&&t.status!==`rejected`&&(e=function(){i.end=performance.now()},t.then(e,e))}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Vi(e),e;default:if(typeof t.status==`string`)t.then(ln,ln);else{if(e=Gb,e!==null&&100<e.shellSuspendCounter)throw Error("An unknown Component is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.");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,Vi(e),e}throw Uv=t,Wv=!0,zv}}function zi(e){try{return Rv(e)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Uv=e,Wv=!0,zv):e}}function Bi(){if(Uv===null)throw Error(`Expected a suspended thenable. This is a bug in React. Please file an issue.`);var e=Uv;return Uv=null,Wv=!1,e}function Vi(e){if(e===zv||e===Vv)throw Error("Hooks are not supported inside an async component. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.")}function Hi(e){var t=q;return e!=null&&(q=t===null?e:t.concat(e)),t}function Ui(){var e=q;if(e!=null){for(var t=e.length-1;0<=t;t--)if(e[t].name!=null){var n=e[t].debugTask;if(n!=null)return n}}return null}function A(e,t,n){for(var r=Object.keys(e.props),i=0;i<r.length;i++){var a=r[i];if(a!==`children`&&a!==`key`){t===null&&(t=Dr(e,n.mode,0),t._debugInfo=q,t.return=n),E(t,function(e){console.error("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",e)},a);break}}}function Wi(e){var t=Kv;return Kv+=1,Gv===null&&(Gv=Ii()),Ri(Gv,e,t)}function Gi(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ki(e,t){throw t.$$typeof===Nf?Error(`A React Element from an older version of React was rendered. This is not supported. It can happen if:
98
+ - Multiple copies of the "react" package is used.
99
+ - A library pre-bundled an old copy of "react" or "react/jsx-runtime".
100
+ - A compiler tries to "inline" JSX instead of using the runtime.`):(e=Object.prototype.toString.call(t),Error(`Objects are not valid as a React child (found: `+(e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)+`). If you meant to render a collection of children, use an array instead.`))}function qi(e,t){var n=Ui();n===null?Ki(e,t):n.run(Ki.bind(null,e,t))}function Ji(e,t){var n=S(e)||`Component`;Xv[n]||(Xv[n]=!0,t=t.displayName||t.name||`Component`,e.tag===3?console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
101
+ root.render(%s)`,t,t,t):console.error(`Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
102
+ <%s>{%s}</%s>`,t,t,n,t,n))}function Yi(e,t){var n=Ui();n===null?Ji(e,t):n.run(Ji.bind(null,e,t))}function Xi(e,t){var n=S(e)||`Component`;Zv[n]||(Zv[n]=!0,t=String(t),e.tag===3?console.error(`Symbols are not valid as a React child.
103
+ root.render(%s)`,t):console.error(`Symbols are not valid as a React child.
104
+ <%s>%s</%s>`,n,t,n))}function Zi(e,t){var n=Ui();n===null?Xi(e,t):n.run(Xi.bind(null,e,t))}function Qi(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 i(e,t){return e=wr(e,t),e.index=0,e.sibling=null,e}function a(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 o(t){return e&&t.alternate===null&&(t.flags|=67108866),t}function s(e,t,n,r){return t===null||t.tag!==6?(t=kr(n,e.mode,r),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=q,t):(t=i(t,n),t.return=e,t._debugInfo=q,t)}function c(e,t,n,r){var a=n.type;return a===If?(t=u(e,t,n.props.children,r,n.key),A(n,t,e),t):t!==null&&(t.elementType===a||yr(t,n)||typeof a==`object`&&a&&a.$$typeof===Gf&&zi(a)===t.type)?(t=i(t,n.props),Gi(t,n),t.return=e,t._debugOwner=n._owner,t._debugInfo=q,t):(t=Dr(n,e.mode,r),Gi(t,n),t.return=e,t._debugInfo=q,t)}function l(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=jr(n,e.mode,r),t.return=e,t._debugInfo=q,t):(t=i(t,n.children||[]),t.return=e,t._debugInfo=q,t)}function u(e,t,n,r,a){return t===null||t.tag!==7?(t=Or(n,e.mode,r,a),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=q,t):(t=i(t,n),t.return=e,t._debugInfo=q,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=kr(``+t,e.mode,n),t.return=e,t._debugOwner=e,t._debugTask=e._debugTask,t._debugInfo=q,t;if(typeof t==`object`&&t){switch(t.$$typeof){case Pf:return n=Dr(t,e.mode,n),Gi(n,t),n.return=e,e=Hi(t._debugInfo),n._debugInfo=q,q=e,n;case Ff:return t=jr(t,e.mode,n),t.return=e,t._debugInfo=q,t;case Gf:var r=Hi(t._debugInfo);return t=zi(t),e=f(e,t,n),q=r,e}if(Xf(t)||oe(t))return n=Or(t,e.mode,n,null),n.return=e,n._debugOwner=e,n._debugTask=e._debugTask,e=Hi(t._debugInfo),n._debugInfo=q,q=e,n;if(typeof t.then==`function`)return r=Hi(t._debugInfo),e=f(e,Wi(t),n),q=r,e;if(t.$$typeof===Bf)return f(e,oi(e,t),n);qi(e,t)}return typeof t==`function`&&Yi(e,t),typeof t==`symbol`&&Zi(e,t),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?s(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case Pf:return n.key===i?(i=Hi(n._debugInfo),e=c(e,t,n,r),q=i,e):null;case Ff:return n.key===i?l(e,t,n,r):null;case Gf:return i=Hi(n._debugInfo),n=zi(n),e=p(e,t,n,r),q=i,e}if(Xf(n)||oe(n))return i===null?(i=Hi(n._debugInfo),e=u(e,t,n,r,null),q=i,e):null;if(typeof n.then==`function`)return i=Hi(n._debugInfo),e=p(e,t,Wi(n),r),q=i,e;if(n.$$typeof===Bf)return p(e,t,oi(e,n),r);qi(e,n)}return typeof n==`function`&&Yi(e,n),typeof n==`symbol`&&Zi(e,n),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,s(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case Pf:return n=e.get(r.key===null?n:r.key)||null,e=Hi(r._debugInfo),t=c(t,n,r,i),q=e,t;case Ff:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case Gf:var a=Hi(r._debugInfo);return r=zi(r),t=m(e,t,n,r,i),q=a,t}if(Xf(r)||oe(r))return n=e.get(n)||null,e=Hi(r._debugInfo),t=u(t,n,r,i,null),q=e,t;if(typeof r.then==`function`)return a=Hi(r._debugInfo),t=m(e,t,n,Wi(r),i),q=a,t;if(r.$$typeof===Bf)return m(e,t,n,oi(t,r),i);qi(t,r)}return typeof r==`function`&&Yi(t,r),typeof r==`symbol`&&Zi(t,r),null}function g(e,t,n,r){if(typeof n!=`object`||!n)return r;switch(n.$$typeof){case Pf:case Ff:d(e,t,n);var i=n.key;if(typeof i!=`string`)break;if(r===null){r=new Set,r.add(i);break}if(!r.has(i)){r.add(i);break}E(t,function(){console.error("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",i)});break;case Gf:n=zi(n),g(e,t,n,r)}return r}function _(i,o,s,c){for(var l=null,u=null,d=null,h=o,_=o=0,v=null;h!==null&&_<s.length;_++){h.index>_?(v=h,h=null):v=h.sibling;var y=p(i,h,s[_],c);if(y===null){h===null&&(h=v);break}l=g(i,y,s[_],l),e&&h&&y.alternate===null&&t(i,h),o=a(y,o,_),d===null?u=y:d.sibling=y,d=y,h=v}if(_===s.length)return n(i,h),W&&Nr(i,_),u;if(h===null){for(;_<s.length;_++)h=f(i,s[_],c),h!==null&&(l=g(i,h,s[_],l),o=a(h,o,_),d===null?u=h:d.sibling=h,d=h);return W&&Nr(i,_),u}for(h=r(h);_<s.length;_++)v=m(h,i,_,s[_],c),v!==null&&(l=g(i,v,s[_],l),e&&v.alternate!==null&&h.delete(v.key===null?_:v.key),o=a(v,o,_),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),W&&Nr(i,_),u}function v(i,o,s,c){if(s==null)throw Error(`An iterable object provided no iterator.`);for(var l=null,u=null,d=o,h=o=0,_=null,v=null,y=s.next();d!==null&&!y.done;h++,y=s.next()){d.index>h?(_=d,d=null):_=d.sibling;var b=p(i,d,y.value,c);if(b===null){d===null&&(d=_);break}v=g(i,b,y.value,v),e&&d&&b.alternate===null&&t(i,d),o=a(b,o,h),u===null?l=b:u.sibling=b,u=b,d=_}if(y.done)return n(i,d),W&&Nr(i,h),l;if(d===null){for(;!y.done;h++,y=s.next())d=f(i,y.value,c),d!==null&&(v=g(i,d,y.value,v),o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return W&&Nr(i,h),l}for(d=r(d);!y.done;h++,y=s.next())_=m(d,i,h,y.value,c),_!==null&&(v=g(i,_,y.value,v),e&&_.alternate!==null&&d.delete(_.key===null?h:_.key),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_);return e&&d.forEach(function(e){return t(i,e)}),W&&Nr(i,h),l}function y(e,r,a,s){if(typeof a==`object`&&a&&a.type===If&&a.key===null&&(A(a,null,e),a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case Pf:var c=Hi(a._debugInfo);a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===If){if(r.tag===7){n(e,r.sibling),s=i(r,a.props.children),s.return=e,s._debugOwner=a._owner,s._debugInfo=q,A(a,s,e),e=s;break a}}else if(r.elementType===l||yr(r,a)||typeof l==`object`&&l&&l.$$typeof===Gf&&zi(l)===r.type){n(e,r.sibling),s=i(r,a.props),Gi(s,a),s.return=e,s._debugOwner=a._owner,s._debugInfo=q,e=s;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===If?(s=Or(a.props.children,e.mode,s,a.key),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=q,A(a,s,e),e=s):(s=Dr(a,e.mode,s),Gi(s,a),s.return=e,s._debugInfo=q,e=s)}return e=o(e),q=c,e;case Ff:a:{for(c=a,a=c.key;r!==null;){if(r.key===a)if(r.tag===4&&r.stateNode.containerInfo===c.containerInfo&&r.stateNode.implementation===c.implementation){n(e,r.sibling),s=i(r,c.children||[]),s.return=e,e=s;break a}else{n(e,r);break}else t(e,r);r=r.sibling}s=jr(c,e.mode,s),s.return=e,e=s}return o(e);case Gf:return c=Hi(a._debugInfo),a=zi(a),e=y(e,r,a,s),q=c,e}if(Xf(a))return c=Hi(a._debugInfo),e=_(e,r,a,s),q=c,e;if(oe(a)){if(c=Hi(a._debugInfo),l=oe(a),typeof l!=`function`)throw Error(`An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.`);var u=l.call(a);return u===a?(e.tag!==0||Object.prototype.toString.call(e.type)!==`[object GeneratorFunction]`||Object.prototype.toString.call(u)!==`[object Generator]`)&&(Jv||console.error("Using Iterators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. You can also use an Iterable that can iterate multiple times over the same items."),Jv=!0):a.entries!==l||qv||(console.error(`Using Maps as children is not supported. Use an array of keyed ReactElements instead.`),qv=!0),e=v(e,r,u,s),q=c,e}if(typeof a.then==`function`)return c=Hi(a._debugInfo),e=y(e,r,Wi(a),s),q=c,e;if(a.$$typeof===Bf)return y(e,r,oi(e,a),s);qi(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(c=``+a,r!==null&&r.tag===6?(n(e,r.sibling),s=i(r,c),s.return=e,e=s):(n(e,r),s=kr(c,e.mode,s),s.return=e,s._debugOwner=e,s._debugTask=e._debugTask,s._debugInfo=q,e=s),o(e)):(typeof a==`function`&&Yi(e,a),typeof a==`symbol`&&Zi(e,a),n(e,r))}return function(e,t,n,r){var i=q;q=null;try{Kv=0;var a=y(e,t,n,r);return Gv=null,a}catch(t){if(t===zv||t===Vv)throw t;var o=h(29,t,null,e.mode);o.lanes=r,o.return=e;var s=o._debugInfo=q;if(o._debugOwner=e._debugOwner,o._debugTask=e._debugTask,s!=null){for(var c=s.length-1;0<=c;c--)if(typeof s[c].stack==`string`){o._debugOwner=s[c],o._debugTask=s[c].debugTask;break}}return o}finally{q=i}}}function $i(e,t){var n=Xf(e);return e=!n&&typeof oe(e)==`function`,n||e?(n=n?`array`:`iterable`,console.error(`A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>`,n,t,n),!1):!0}function ea(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ta(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 na(e){return{lane:e,tag:ey,payload:null,callback:null,next:null}}function ra(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,oy===r&&!ay){var i=S(e);console.error(`An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
105
+
106
+ Please update the following component: %s`,i),ay=!0}return(X&Ib)===Fb?(fr(e,r,t,n),gr(e)):(i=r.pending,i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=gr(e),hr(e,null,n),t)}function ia(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,Ue(e,n)}}function aa(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}function oa(){if(sy){var e=cv;if(e!==null)throw e}}function sa(e,t,n,r){sy=!1;var i=e.updateQueue;iy=!1,oy=i.shared;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?(Q&f)===f:(r&f)===f){f!==0&&f===sv&&(sy=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{f=e;var m=s,h=t,g=n;switch(m.tag){case ty:if(m=m.payload,typeof m==`function`){f_=!0;var _=m.call(g,d,h);if(f.mode&Bg){Me(!0);try{m.call(g,d,h)}finally{Me(!1)}}f_=!1,d=_;break a}d=m;break a;case ry:f.flags=f.flags&-65537|128;case ey:if(_=m.payload,typeof _==`function`){if(f_=!0,m=_.call(g,d,h),f.mode&Bg){Me(!0);try{_.call(g,d,h)}finally{Me(!1)}}f_=!1}else m=_;if(m==null)break a;d=L({},d,m);break a;case ny:iy=!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),cx|=o,e.lanes=o,e.memoizedState=d}oy=null}function ca(e,t){if(typeof e!=`function`)throw Error(`Invalid argument passed as callback. Expected a function. Instead received: `+e);e.call(t)}function la(e,t){var n=e.shared.hiddenCallbacks;if(n!==null)for(e.shared.hiddenCallbacks=null,e=0;e<n.length;e++)ca(n[e],t)}function ua(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)ca(n[e],t)}function da(e,t){var n=ox;w(ly,n,e),w(cy,t,e),ox=n|t.baseLanes}function fa(e){w(ly,ox,e),w(cy,cy.current,e)}function pa(e){ox=ly.current,C(cy,e),C(ly,e)}function ma(e){var t=e.alternate;w(my,my.current&fy,e),w(uy,e,e),dy===null&&(t===null||cy.current!==null||t.memoizedState!==null)&&(dy=e)}function ha(e){w(my,my.current,e),w(uy,e,e),dy===null&&(dy=e)}function ga(e){e.tag===22?(w(my,my.current,e),w(uy,e,e),dy===null&&(dy=e)):_a(e)}function _a(e){w(my,my.current,e),w(uy,uy.current,e)}function va(e){C(uy,e),dy===e&&(dy=null),C(my,e)}function ya(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||_d(n)||vd(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}function j(){var e=Y;Iy===null?Iy=[e]:Iy.push(e)}function M(){var e=Y;if(Iy!==null&&(Ly++,Iy[Ly]!==e)){var t=S(J);if(!xy.has(t)&&(xy.add(t),Iy!==null)){for(var n=``,r=0;r<=Ly;r++){var i=Iy[r],a=r===Ly?e:i;for(i=r+1+`. `+i;30>i.length;)i+=` `;i+=a+`
107
+ `,n+=i}console.error(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://react.dev/link/rules-of-hooks
108
+
109
+ Previous render Next render
110
+ ------------------------------------------------------
111
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
112
+ `,t,n)}}}function ba(e){e==null||Xf(e)||console.error("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",Y,typeof e)}function xa(){var e=S(J);wy.has(e)||(wy.add(e),console.error(`ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.`,e))}function Sa(){throw Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
113
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
114
+ 2. You might be breaking the Rules of Hooks
115
+ 3. You might have more than one copy of React in the same app
116
+ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function Ca(e,t){if(Ry)return!1;if(t===null)return console.error(`%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.`,Y),!1;e.length!==t.length&&console.error(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
117
+
118
+ Previous: %s
119
+ Incoming: %s`,Y,`[`+t.join(`, `)+`]`,`[`+e.join(`, `)+`]`);for(var n=0;n<t.length&&n<e.length;n++)if(!Kh(e[n],t[n]))return!1;return!0}function wa(e,t,n,r,i,a){Ty=a,J=t,Iy=e===null?null:e._debugHookTypes,Ly=-1,Ry=e!==null&&e.type!==t.type,(Object.prototype.toString.call(n)===`[object AsyncFunction]`||Object.prototype.toString.call(n)===`[object AsyncGeneratorFunction]`)&&(a=S(J),Cy.has(a)||(Cy.add(a),console.error("%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",a===null?`An unknown Component`:`<`+a+`>`))),t.memoizedState=null,t.updateQueue=null,t.lanes=0,R.H=e!==null&&e.memoizedState!==null?Hy:Iy===null?By:Vy,Ay=a=(t.mode&Bg)!==H;var o=Sv(n,r,i);if(Ay=!1,ky&&(o=Ea(t,n,r,i)),a){Me(!0);try{o=Ea(t,n,r,i)}finally{Me(!1)}}return Ta(e,t),o}function Ta(e,t){t._debugHookTypes=Iy,t.dependencies===null?Ny!==null&&(t.dependencies={lanes:0,firstContext:null,_debugThenableState:Ny}):t.dependencies._debugThenableState=Ny,R.H=zy;var n=Ey!==null&&Ey.next!==null;if(Ty=0,Iy=Y=Dy=Ey=J=null,Ly=-1,e!==null&&(e.flags&65011712)!=(t.flags&65011712)&&console.error(`Internal React error: Expected static flag was missing. Please notify the React team.`),Oy=!1,My=0,Ny=null,n)throw Error(`Rendered fewer hooks than expected. This may be caused by an accidental early return statement.`);e===null||cb||(e=e.dependencies,e!==null&&ri(e)&&(cb=!0)),Wv?(Wv=!1,e=!0):e=!1,e&&(t=S(t)||`Unknown`,Sy.has(t)||Cy.has(t)||(Sy.add(t),console.error("`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary.")))}function Ea(e,t,n,r){J=e;var i=0;do{if(ky&&(Ny=null),My=0,ky=!1,i>=Fy)throw Error(`Too many re-renders. React limits the number of renders to prevent an infinite loop.`);if(i+=1,Ry=!1,Dy=Ey=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}Ly=-1,R.H=Uy,a=Sv(t,n,r)}while(ky);return a}function Da(){var e=R.H,t=e.useState()[0];return t=typeof t.then==`function`?Na(t):t,e=e.useState()[0],(Ey===null?null:Ey.memoizedState)!==e&&(J.flags|=1024),t}function Oa(){var e=jy!==0;return jy=0,e}function ka(e,t,n){t.updateQueue=e.updateQueue,t.flags=(t.mode&Vg)===H?t.flags&-2053:t.flags&-402655237,e.lanes&=~n}function Aa(e){if(Oy){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Oy=!1}Ty=0,Iy=Dy=Ey=J=null,Ly=-1,Y=null,ky=!1,My=jy=0,Ny=null}function ja(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Dy===null?J.memoizedState=Dy=e:Dy=Dy.next=e,Dy}function N(){if(Ey===null){var e=J.alternate;e=e===null?null:e.memoizedState}else e=Ey.next;var t=Dy===null?J.memoizedState:Dy.next;if(t!==null)Dy=t,Ey=e;else{if(e===null)throw J.alternate===null?Error(`Update hook called on initial render. This is likely a bug in React. Please file an issue.`):Error(`Rendered more hooks than during the previous render.`);Ey=e,e={memoizedState:Ey.memoizedState,baseState:Ey.baseState,baseQueue:Ey.baseQueue,queue:Ey.queue,next:null},Dy===null?J.memoizedState=Dy=e:Dy=Dy.next=e}return Dy}function Ma(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Na(e){var t=My;return My+=1,Ny===null&&(Ny=Ii()),e=Ri(Ny,e,t),t=J,(Dy===null?t.memoizedState:Dy.next)===null&&(t=t.alternate,R.H=t!==null&&t.memoizedState!==null?Hy:By),e}function Pa(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Na(e);if(e.$$typeof===Bf)return ai(e)}throw Error(`An unsupported type was passed to use(): `+String(e))}function Fa(e){var t=null,n=J.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=J.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=Ma(),J.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0||Ry)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=qf;else n.length!==e&&console.error(`Expected a constant size argument for each invocation of useMemoCache. The previous cache was allocated with size %s but size %s was requested.`,n.length,e);return t.index++,n}function Ia(e,t){return typeof t==`function`?t(e):t}function La(e,t,n){var r=ja();if(n!==void 0){var i=n(t);if(Ay){Me(!0);try{n(t)}finally{Me(!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=Ko.bind(null,J,e),[r.memoizedState,e]}function Ra(e){return za(N(),Ey,e)}function za(e,t,n){var r=e.queue;if(r===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(a!==null){if(i!==null){var o=i.next;i.next=a.next,a.next=o}t.baseQueue!==i&&console.error(`Internal error: Expected work-in-progress queue to be a clone. This is a bug in React.`),t.baseQueue=i=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var s=o=null,c=null,l=t,u=!1;do{var d=l.lane&-536870913;if(d===l.lane?(Ty&d)===d:(Q&d)===d){var f=l.revertLane;if(f===0)c!==null&&(c=c.next={lane:0,revertLane:0,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),d===sv&&(u=!0);else if((Ty&f)===f){l=l.next,f===sv&&(u=!0);continue}else d={lane:0,revertLane:l.revertLane,gesture:null,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=d,o=a):c=c.next=d,J.lanes|=f,cx|=f;d=l.action,Ay&&n(a,d),a=l.hasEagerState?l.eagerState:n(a,d)}else f={lane:d,revertLane:l.revertLane,gesture:l.gesture,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null},c===null?(s=c=f,o=a):c=c.next=f,J.lanes|=d,cx|=d;l=l.next}while(l!==null&&l!==t);if(c===null?o=a:c.next=s,!Kh(a,e.memoizedState)&&(cb=!0,u&&(n=cv,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=c,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Ba(e){var t=N(),n=t.queue;if(n===null)throw Error(`Should have a queue. You are likely calling Hooks conditionally, which is not allowed. (https://react.dev/link/invalid-hook-call)`);n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(i!==null){n.pending=null;var o=i=i.next;do a=e(a,o.action),o=o.next;while(o!==i);Kh(a,t.memoizedState)||(cb=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Va(e,t,n){var r=J,i=ja();if(W){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);var a=n();by||a===n()||(console.error(`The result of getServerSnapshot should be cached to avoid an infinite loop`),by=!0)}else{if(a=t(),by||(n=t(),Kh(a,n)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),by=!0)),Gb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);Q&127||Ua(r,t,a)}return i.memoizedState=a,n={value:a,getSnapshot:t},i.queue=n,_o(Ga.bind(null,r,n,e),[e]),r.flags|=2048,po(gy|yy,{destroy:void 0},Wa.bind(null,r,n,a,t),null),a}function Ha(e,t,n){var r=J,i=N(),a=W;if(a){if(n===void 0)throw Error(`Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.`);n=n()}else if(n=t(),!by){var o=t();Kh(n,o)||(console.error(`The result of getSnapshot should be cached to avoid an infinite loop`),by=!0)}if((o=!Kh((Ey||i).memoizedState,n))&&(i.memoizedState=n,cb=!0),i=i.queue,go(2048,yy,Ga.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||Dy!==null&&Dy.memoizedState.tag&gy){if(r.flags|=2048,po(gy|yy,{destroy:void 0},Wa.bind(null,r,i,n,t),null),Gb===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);a||Ty&127||Ua(r,t,n)}return n}function Ua(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=J.updateQueue,t===null?(t=Ma(),J.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Wa(e,t,n,r){t.value=n,t.getSnapshot=r,Ka(t)&&qa(e)}function Ga(e,t,n){return n(function(){Ka(t)&&(di(2,`updateSyncExternalStore()`,e),qa(e))})}function Ka(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Kh(e,n)}catch{return!0}}function qa(e){var t=mr(e,2);t!==null&&il(t,e,2)}function Ja(e){var t=ja();if(typeof e==`function`){var n=e;if(e=n(),Ay){Me(!0);try{n()}finally{Me(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:e},t}function Ya(e){e=Ja(e);var t=e.queue,n=qo.bind(null,J,t);return t.dispatch=n,[e.memoizedState,n]}function Xa(e){var t=ja();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Yo.bind(null,J,!0,n),n.dispatch=t,[e,t]}function Za(e,t){return Qa(N(),Ey,e,t)}function Qa(e,t,n,r){return e.baseState=n,za(e,Ey,typeof r==`function`?r:Ia)}function $a(e,t){var n=N();return Ey===null?(n.baseState=e,[e,n.queue.dispatch]):Qa(n,Ey,e,t)}function eo(e,t,n,r,i){if(Xo(e))throw Error(`Cannot update form state while rendering.`);if(e=t.action,e!==null){var a={payload:i,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};R.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,to(t,a)):(a.next=n.next,t.pending=n.next=a)}}function to(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=R.T,o={};o._updatedFibers=new Set,R.T=o;try{var s=n(i,r),c=R.S;c!==null&&c(o,s),no(e,t,s)}catch(n){io(e,t,n)}finally{a!==null&&o.types!==null&&(a.types!==null&&a.types!==o.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),a.types=o.types),R.T=a,a===null&&o._updatedFibers&&(e=o._updatedFibers.size,o._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}else try{o=n(i,r),no(e,t,o)}catch(n){io(e,t,n)}}function no(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?(R.asyncTransitions++,n.then(Po,Po),n.then(function(n){ro(e,t,n)},function(n){return io(e,t,n)}),t.isTransition||console.error("An async function with useActionState was called outside of a transition. This is likely not what you intended (for example, isPending will not update correctly). Either call the returned function inside startTransition, or pass it to an `action` or `formAction` prop.")):ro(e,t,n)}function ro(e,t,n){t.status=`fulfilled`,t.value=n,ao(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,to(e,n)))}function io(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,ao(t),t=t.next;while(t!==r)}e.action=null}function ao(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function oo(e,t){return t}function so(e,t){if(W){var n=Gb.formState;if(n!==null){a:{var r=J;if(W){if(t_){b:{for(var i=t_,a=a_;i.nodeType!==8;){if(!a){i=null;break b}if(i=bd(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===zS||a===BS?i:null}if(i){t_=bd(i.nextSibling),r=i.data===zS;break a}}Ur(r)}r=!1}r&&(t=n[0])}}return n=ja(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:oo,lastRenderedState:t},n.queue=r,n=qo.bind(null,J,r),r.dispatch=n,r=Ja(!1),a=Yo.bind(null,J,!1,r.queue),r=ja(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=eo.bind(null,J,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function co(e){return lo(N(),Ey,e)}function lo(e,t,n){if(t=za(e,t,oo)[0],e=Ra(Ia)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Na(t)}catch(e){throw e===zv?Vv:e}else r=t;t=N();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(J.flags|=2048,po(gy|yy,{destroy:void 0},uo.bind(null,i,n),null)),[r,a,e]}function uo(e,t){e.action=t}function fo(e){var t=N(),n=Ey;if(n!==null)return lo(t,n,e);N(),t=t.memoizedState,n=N();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function po(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=J.updateQueue,t===null&&(t=Ma(),J.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 mo(e){var t=ja();return e={current:e},t.memoizedState=e}function ho(e,t,n,r){var i=ja();J.flags|=e,i.memoizedState=po(gy|t,{destroy:void 0},n,r===void 0?null:r)}function go(e,t,n,r){var i=N();r=r===void 0?null:r;var a=i.memoizedState.inst;Ey!==null&&r!==null&&Ca(r,Ey.memoizedState.deps)?i.memoizedState=po(t,a,n,r):(J.flags|=e,i.memoizedState=po(gy|t,a,n,r))}function _o(e,t){(J.mode&Vg)===H?ho(8390656,yy,e,t):ho(276826112,yy,e,t)}function vo(e){J.flags|=4;var t=J.updateQueue;if(t===null)t=Ma(),J.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function yo(e){var t=ja(),n={impl:e};return t.memoizedState=n,function(){if((X&Ib)!==Fb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return n.impl.apply(void 0,arguments)}}function bo(e){var t=N().memoizedState;return vo({ref:t,nextImpl:e}),function(){if((X&Ib)!==Fb)throw Error(`A function wrapped in useEffectEvent can't be called during rendering.`);return t.impl.apply(void 0,arguments)}}function xo(e,t){var n=4194308;return(J.mode&Vg)!==H&&(n|=134217728),ho(n,vy,e,t)}function So(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return t.hasOwnProperty(`current`)||console.error(`Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.`,`an object with keys {`+Object.keys(t).join(`, `)+`}`),e=e(),t.current=e,function(){t.current=null}}function Co(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]);var r=4194308;(J.mode&Vg)!==H&&(r|=134217728),ho(r,vy,So.bind(null,t,e),n)}function wo(e,t,n){typeof t!=`function`&&console.error(`Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.`,t===null?`null`:typeof t),n=n==null?null:n.concat([e]),go(4,vy,So.bind(null,t,e),n)}function To(e,t){return ja().memoizedState=[e,t===void 0?null:t],e}function Eo(e,t){var n=N();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Ca(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Do(e,t){var n=ja();t=t===void 0?null:t;var r=e();if(Ay){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function Oo(e,t){var n=N();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Ca(t,r[1]))return r[0];if(r=e(),Ay){Me(!0);try{e()}finally{Me(!1)}}return n.memoizedState=[r,t],r}function ko(e,t){return Mo(ja(),e,t)}function Ao(e,t){return No(N(),Ey.memoizedState,e,t)}function jo(e,t){var n=N();return Ey===null?Mo(n,e,t):No(n,Ey.memoizedState,e,t)}function Mo(e,t,n){return n===void 0||Ty&1073741824&&!(Q&261930)?e.memoizedState=t:(e.memoizedState=n,e=rl(),J.lanes|=e,cx|=e,n)}function No(e,t,n,r){return Kh(n,t)?n:cy.current===null?!(Ty&42)||Ty&1073741824&&!(Q&261930)?(cb=!0,e.memoizedState=n):(e=rl(),J.lanes|=e,cx|=e,t):(e=Mo(e,n,r),Kh(e,t)||(cb=!0),e)}function Po(){R.asyncTransitions--}function Fo(e,t,n,r,i){var a=z.p;z.p=a!==0&&a<Wp?a:Wp;var o=R.T,s={};s._updatedFibers=new Set,R.T=s,Yo(e,!1,t,n);try{var c=i(),l=R.S;if(l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`){R.asyncTransitions++,c.then(Po,Po);var u=Mi(c,r);Jo(e,t,u,nl(e))}else Jo(e,t,r,nl(e))}catch(n){Jo(e,t,{then:function(){},status:`rejected`,reason:n},nl(e))}finally{z.p=a,o!==null&&s.types!==null&&(o.types!==null&&o.types!==s.types&&console.error(`We expected inner Transitions to have transferred the outer types set and that you cannot add to the outer Transition while inside the inner.This is a bug in React.`),o.types=s.types),R.T=o,o===null&&s._updatedFibers&&(e=s._updatedFibers.size,s._updatedFibers.clear(),10<e&&console.warn(`Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table.`))}}function Io(e,t,n,r){if(e.tag!==5)throw Error(`Expected the form instance to be a HostComponent. This is a bug in React.`);var i=Lo(e).queue;fi(e),Fo(e,i,t,yC,n===null?u:function(){return Ro(e),n(r)})}function Lo(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:yC,baseState:yC,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:yC},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Ia,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function Ro(e){R.T===null&&console.error(`requestFormReset was called outside a transition or action. To fix, move to an action, or wrap with startTransition.`);var t=Lo(e);t.next===null&&(t=e.alternate.memoizedState),Jo(e,t.next.queue,{},nl(e))}function zo(){var e=Ja(!1);return e=Fo.bind(null,J,e.queue,!0,!1),ja().memoizedState=e,[!1,e]}function Bo(){var e=Ra(Ia)[0],t=N().memoizedState;return[typeof e==`boolean`?e:Na(e),t]}function Vo(){var e=Ba(Ia)[0],t=N().memoizedState;return[typeof e==`boolean`?e:Na(e),t]}function Ho(){return ai(bC)}function Uo(){var e=ja(),t=Gb.identifierPrefix;if(W){var n=$g,r=Qg;n=(r&~(1<<32-Lp(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=jy++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Py++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t}function Wo(){return ja().memoizedState=Go.bind(null,J)}function Go(e,t){for(var n=e.return;n!==null;){switch(n.tag){case 24:case 3:var r=nl(n),i=na(r),a=ra(n,i,r);a!==null&&(di(r,`refresh()`,e),il(a,n,r),ia(a,n,r)),e=ci(),t!=null&&a!==null&&console.error(`The seed argument is not enabled outside experimental channels.`),i.payload={cache:e};return}n=n.return}}function Ko(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=nl(e);var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};Xo(e)?Zo(t,i):(i=pr(e,t,i,r),i!==null&&(di(r,`dispatch()`,e),il(i,e,r),Qo(i,t,r)))}function qo(e,t,n){var r=arguments;typeof r[3]==`function`&&console.error(`State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().`),r=nl(e),Jo(e,t,n,r)&&di(r,`setState()`,e)}function Jo(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Xo(e))Zo(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null)){var o=R.H;R.H=Gy;try{var s=t.lastRenderedState,c=a(s,n);if(i.hasEagerState=!0,i.eagerState=c,Kh(c,s))return fr(e,t,i,0),Gb===null&&dr(),!1}catch{}finally{R.H=o}}if(n=pr(e,t,i,r),n!==null)return il(n,e,r),Qo(n,t,r),!0}return!1}function Yo(e,t,n,r){if(R.T===null&&sv===0&&console.error(`An optimistic state update occurred outside a transition or action. To fix, move the update to an action, or wrap with startTransition.`),r={lane:2,revertLane:au(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Xo(e)){if(t)throw Error(`Cannot update optimistic state while rendering.`);console.error(`Cannot call startTransition while rendering.`)}else t=pr(e,n,r,2),t!==null&&(di(2,`setOptimistic()`,e),il(t,e,2))}function Xo(e){var t=e.alternate;return e===J||t!==null&&t===J}function Zo(e,t){ky=Oy=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Qo(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Ue(e,n)}}function $o(e){if(e!==null&&typeof e!=`function`){var t=String(e);rb.has(t)||(rb.add(t),console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",e))}}function es(e,t,n,r){var i=e.memoizedState,a=n(r,i);if(e.mode&Bg){Me(!0);try{a=n(r,i)}finally{Me(!1)}}a===void 0&&(t=x(t)||`Component`,$y.has(t)||($y.add(t),console.error(`%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.`,t))),i=a==null?i:L({},i,a),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}function ts(e,t,n,r,i,a,o){var s=e.stateNode;if(typeof s.shouldComponentUpdate==`function`){if(n=s.shouldComponentUpdate(r,a,o),e.mode&Bg){Me(!0);try{n=s.shouldComponentUpdate(r,a,o)}finally{Me(!1)}}return n===void 0&&console.error(`%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.`,x(t)||`Component`),n}return t.prototype&&t.prototype.isPureReactComponent?!Rn(n,r)||!Rn(i,a):!0}function ns(e,t,n,r){var i=t.state;typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==i&&(e=S(e)||`Component`,Jy.has(e)||(Jy.add(e),console.error(`%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,e)),ib.enqueueReplaceState(t,t.state,null))}function rs(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=L({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function is(e){mg(e),console.warn(`%s
120
+
121
+ %s
122
+ `,ab?`An error occurred in the <`+ab+`> component.`:`An error occurred in one of your React components.`,`Consider adding an error boundary to your tree to customize error handling behavior.
123
+ Visit https://react.dev/link/error-boundaries to learn more about error boundaries.`)}function as(e){var t=ab?`The above error occurred in the <`+ab+`> component.`:`The above error occurred in one of your React components.`,n=`React will try to recreate this component tree from scratch using the error boundary you provided, `+((ob||`Anonymous`)+`.`);if(typeof e==`object`&&e&&typeof e.environmentName==`string`){var r=e.environmentName;e=[`%o
124
+
125
+ %s
126
+
127
+ %s
128
+ `,e,t,n].slice(0),typeof e[0]==`string`?e.splice(0,1,xC+` `+e[0],SC,wC+r+wC,CC):e.splice(0,0,xC,SC,wC+r+wC,CC),e.unshift(console),r=TC.apply(console.error,e),r()}else console.error(`%o
129
+
130
+ %s
131
+
132
+ %s
133
+ `,e,t,n)}function os(e){mg(e)}function ss(e,t){try{ab=t.source?S(t.source):null,ob=null;var n=t.value;if(R.actQueue!==null)R.thrownErrors.push(n);else{var r=e.onUncaughtError;r(n,{componentStack:t.stack})}}catch(e){setTimeout(function(){throw e})}}function cs(e,t,n){try{ab=n.source?S(n.source):null,ob=S(t);var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function ls(e,t,n){return n=na(n),n.tag=ry,n.payload={element:null},n.callback=function(){E(t.source,ss,e,t)},n}function us(e){return e=na(e),e.tag=ry,e}function ds(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(){br(n),E(r.source,cs,t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){br(n),E(r.source,cs,t,n,r),typeof i!=`function`&&(Cx===null?Cx=new Set([this]):Cx.add(this)),Av(this,r),typeof i==`function`||!(n.lanes&2)&&console.error(`%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.`,S(n)||`Unknown`)})}function fs(e,t,n,r,i){if(n.flags|=32768,Ip&&ql(e,i),typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ni(t,n,i,!0),W&&(n_=!0),n=uy.current,n!==null){switch(n.tag){case 31:case 13:return dy===null?vl():n.alternate===null&&sx===Rb&&(sx=Vb),n.flags&=-257,n.flags|=65536,n.lanes=i,r===Hv?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Rl(e,r,i)),!1;case 22:return n.flags|=65536,r===Hv?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)),Rl(e,r,i)),!1}throw Error(`Unexpected Suspense handler tag (`+n.tag+`). This is a bug in React.`)}return Rl(e,r,i),vl(),!1}if(W)return n_=!0,t=uy.current,t===null?(r!==o_&&Yr(Mr(Error(`There was an error while hydrating but React was able to recover by instead client rendering the entire root.`,{cause:r}),n)),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=Mr(r,n),i=ls(e.stateNode,r,i),aa(e,i),sx!==Hb&&(sx=Bb)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==o_&&Yr(Mr(Error(`There was an error while hydrating but React was able to recover by instead client rendering from the nearest Suspense boundary.`,{cause:r}),n))),!1;var a=Mr(Error(`There was an error during concurrent rendering but React was able to recover by instead synchronously rendering the entire root.`,{cause:r}),n);if(px===null?px=[a]:px.push(a),sx!==Hb&&(sx=Bb),t===null)return!0;r=Mr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=ls(n.stateNode,r,e),aa(n,e),!1;case 1:if(t=n.type,a=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||a!==null&&typeof a.componentDidCatch==`function`&&(Cx===null||!Cx.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=us(i),ds(i,e,n,r),aa(n,i),!1}n=n.return}while(n!==null);return!1}function ps(e,t,n,r){t.child=e===null?$v(t,null,n,r):Qv(t,e.child,n,r)}function ms(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 ii(t),r=wa(e,t,n,o,a,i),s=Oa(),e!==null&&!cb?(ka(e,t,i),Ls(e,t,i)):(W&&s&&Fr(t),t.flags|=1,ps(e,t,r,i),t.child)}function hs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!Cr(a)&&a.defaultProps===void 0&&n.compare===null?(n=_r(a),t.tag=15,t.type=n,Ds(t,a),P(e,t,n,r,i)):(e=Er(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Rs(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Rn:n,n(o,r)&&e.ref===t.ref)return Ls(e,t,i)}return t.flags|=1,e=wr(a,r),e.ref=t.ref,e.return=t,t.child=e}function P(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Rn(a,r)&&e.ref===t.ref&&t.type===e.type)if(cb=!1,t.pendingProps=r=a,Rs(e,i))e.flags&131072&&(cb=!0);else return t.lanes=e.lanes,Ls(e,t,i)}return Cs(e,t,n,r,i)}function gs(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:jg,_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 vs(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Pi(t,a===null?null:a.cachePool),a===null?fa(t):da(t,a),ga(t);else return r=t.lanes=536870912,vs(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Pi(t,null),fa(t),_a(t)):(Pi(t,a.cachePool),da(t,a),_a(t),t.memoizedState=null);return ps(e,t,i,n),t.child}function _s(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:jg,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function vs(e,t,n,r,i){var a=Ni();return a=a===null?null:{parent:g_._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Pi(t,null),fa(t),ga(t),e!==null&&ni(e,t,r,!0),t.childLanes=i,null}function ys(e,t){var n=t.hidden;return n!==void 0&&console.error(`<Activity> doesn't accept a hidden prop. Use mode="hidden" instead.
134
+ - <Activity %s>
135
+ + <Activity %s>`,!0===n?`hidden`:!1===n?`hidden={false}`:`hidden={...}`,n?`mode="hidden"`:`mode="visible"`),t=Ms({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function bs(e,t,n){return Qv(t,e.child,null,n),e=ys(t,t.pendingProps),e.flags|=2,va(t),t.memoizedState=null,e}function xs(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(W){if(r.mode===`hidden`)return e=ys(t,r),t.lanes=536870912,_s(null,e);if(ha(t),(e=t_)?(n=gd(e,a_),n=n!==null&&n.data===kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Lr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Ar(n),r.return=t,t.child=r,e_=t,t_=null)):n=null,n===null)throw Hr(t,e),Ur(t);return t.lanes=536870912,null}return ys(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(ha(t),i)if(t.flags&256)t.flags&=-257,t=bs(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`);else if(Vr(),n&536870912&&_l(t),cb||ni(e,t,n,!1),i=(n&e.childLanes)!==0,cb||i){if(r=Gb,r!==null&&(o=We(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,mr(e,o),il(r,e,o),sb;vl(),t=bs(e,t,n)}else e=a.treeContext,t_=bd(o.nextSibling),e_=t,W=!0,i_=null,n_=!1,r_=null,a_=!1,e!==null&&Rr(t,e),t=ys(t,r),t.flags|=4096;return t}return a=e.child,r={mode:r.mode,children:r.children},n&536870912&&(n&e.lanes)!==0&&_l(t),e=wr(a,r),e.ref=t.ref,t.child=e,e.return=t,e}function Ss(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(`Expected ref to be a function, an object returned by React.createRef(), or undefined/null.`);(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Cs(e,t,n,r,i){if(n.prototype&&typeof n.prototype.render==`function`){var a=x(n)||`Unknown`;lb[a]||(console.error(`The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.`,a,a),lb[a]=!0)}return t.mode&Bg&&dv.recordLegacyContextWarning(t,null),e===null&&(Ds(t,t.type),n.contextTypes&&(a=x(n)||`Unknown`,db[a]||(db[a]=!0,console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with React.useContext() instead. (https://react.dev/link/legacy-context)`,a)))),ii(t),n=wa(e,t,n,r,void 0,i),r=Oa(),e!==null&&!cb?(ka(e,t,i),Ls(e,t,i)):(W&&r&&Fr(t),t.flags|=1,ps(e,t,n,i),t.child)}function ws(e,t,n,r,i,a){return ii(t),Ly=-1,Ry=e!==null&&e.type!==t.type,t.updateQueue=null,n=Ea(t,r,n,i),Ta(e,t),r=Oa(),e!==null&&!cb?(ka(e,t,a),Ls(e,t,a)):(W&&r&&Fr(t),t.flags|=1,ps(e,t,n,a),t.child)}function Ts(e,t,n,r,i){switch(s(t)){case!1:var a=t.stateNode,o=new t.type(t.memoizedProps,a.context).state;a.updater.enqueueSetState(a,o,null);break;case!0:t.flags|=128,t.flags|=65536,a=Error(`Simulated error coming from DevTools`);var c=i&-i;if(t.lanes|=c,o=Gb,o===null)throw Error(`Expected a work-in-progress root. This is a bug in React. Please file an issue.`);c=us(c),ds(c,o,t,Mr(a,t)),aa(t,c)}if(ii(t),t.stateNode===null){if(o=Ig,a=n.contextType,`contextType`in n&&a!==null&&(a===void 0||a.$$typeof!==Bf)&&!nb.has(n)&&(nb.add(n),c=a===void 0?` However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.`:typeof a==`object`?a.$$typeof===zf?` Did you accidentally pass the Context.Consumer instead?`:` However, it is set to an object with keys {`+Object.keys(a).join(`, `)+`}.`:` However, it is set to a `+typeof a+`.`,console.error(`%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s`,x(n)||`Component`,c)),typeof a==`object`&&a&&(o=ai(a)),a=new n(r,o),t.mode&Bg){Me(!0);try{a=new n(r,o)}finally{Me(!1)}}if(o=t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=ib,t.stateNode=a,a._reactInternals=t,a._reactInternalInstance=qy,typeof n.getDerivedStateFromProps==`function`&&o===null&&(o=x(n)||`Component`,Yy.has(o)||(Yy.add(o),console.error("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",o,a.state===null?`null`:`undefined`,o))),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`){var l=c=o=null;if(typeof a.componentWillMount==`function`&&!0!==a.componentWillMount.__suppressDeprecationWarning?o=`componentWillMount`:typeof a.UNSAFE_componentWillMount==`function`&&(o=`UNSAFE_componentWillMount`),typeof a.componentWillReceiveProps==`function`&&!0!==a.componentWillReceiveProps.__suppressDeprecationWarning?c=`componentWillReceiveProps`:typeof a.UNSAFE_componentWillReceiveProps==`function`&&(c=`UNSAFE_componentWillReceiveProps`),typeof a.componentWillUpdate==`function`&&!0!==a.componentWillUpdate.__suppressDeprecationWarning?l=`componentWillUpdate`:typeof a.UNSAFE_componentWillUpdate==`function`&&(l=`UNSAFE_componentWillUpdate`),o!==null||c!==null||l!==null){a=x(n)||`Component`;var u=typeof n.getDerivedStateFromProps==`function`?`getDerivedStateFromProps()`:`getSnapshotBeforeUpdate()`;Zy.has(a)||(Zy.add(a),console.error(`Unsafe legacy lifecycles will not be called for components using new component APIs.
136
+
137
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
138
+
139
+ The above lifecycles should be removed. Learn more about this warning here:
140
+ https://react.dev/link/unsafe-component-lifecycles`,a,u,o===null?``:`
141
+ `+o,c===null?``:`
142
+ `+c,l===null?``:`
143
+ `+l))}}a=t.stateNode,o=x(n)||`Component`,a.render||(n.prototype&&typeof n.prototype.render==`function`?console.error("No `render` method found on the %s instance: did you accidentally return an object from the constructor?",o):console.error("No `render` method found on the %s instance: you may have forgotten to define `render`.",o)),!a.getInitialState||a.getInitialState.isReactClassApproved||a.state||console.error(`getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?`,o),a.getDefaultProps&&!a.getDefaultProps.isReactClassApproved&&console.error(`getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.`,o),a.contextType&&console.error(`contextType was defined as an instance property on %s. Use a static property to define contextType instead.`,o),n.childContextTypes&&!tb.has(n)&&(tb.add(n),console.error(`%s uses the legacy childContextTypes API which was removed in React 19. Use React.createContext() instead. (https://react.dev/link/legacy-context)`,o)),n.contextTypes&&!eb.has(n)&&(eb.add(n),console.error(`%s uses the legacy contextTypes API which was removed in React 19. Use React.createContext() with static contextType instead. (https://react.dev/link/legacy-context)`,o)),typeof a.componentShouldUpdate==`function`&&console.error(`%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.`,o),n.prototype&&n.prototype.isPureReactComponent&&a.shouldComponentUpdate!==void 0&&console.error(`%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.`,x(n)||`A pure component`),typeof a.componentDidUnmount==`function`&&console.error(`%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?`,o),typeof a.componentDidReceiveProps==`function`&&console.error(`%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().`,o),typeof a.componentWillRecieveProps==`function`&&console.error(`%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?`,o),typeof a.UNSAFE_componentWillRecieveProps==`function`&&console.error(`%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?`,o),c=a.props!==r,a.props!==void 0&&c&&console.error("When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",o),a.defaultProps&&console.error(`Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.`,o,o),typeof a.getSnapshotBeforeUpdate!=`function`||typeof a.componentDidUpdate==`function`||Xy.has(n)||(Xy.add(n),console.error(`%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.`,x(n))),typeof a.getDerivedStateFromProps==`function`&&console.error(`%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof a.getDerivedStateFromError==`function`&&console.error(`%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.`,o),typeof n.getSnapshotBeforeUpdate==`function`&&console.error(`%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.`,o),(c=a.state)&&(typeof c!=`object`||Xf(c))&&console.error(`%s.state: must be set to an object or null`,o),typeof a.getChildContext==`function`&&typeof n.childContextTypes!=`object`&&console.error(`%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().`,o),a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},ea(t),o=n.contextType,a.context=typeof o==`object`&&o?ai(o):Ig,a.state===r&&(o=x(n)||`Component`,Qy.has(o)||(Qy.add(o),console.error(`%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.`,o))),t.mode&Bg&&dv.recordLegacyContextWarning(t,a),dv.recordUnsafeLifecycleWarnings(t,a),a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(es(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&&(console.error(`%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.`,S(t)||`Component`),ib.enqueueReplaceState(a,a.state,null)),sa(t,r,a,i),oa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Vg)!==H&&(t.flags|=134217728),a=!0}else if(e===null){a=t.stateNode;var d=t.memoizedProps;c=rs(n,d),a.props=c;var f=a.context;l=n.contextType,o=Ig,typeof l==`object`&&l&&(o=ai(l)),u=n.getDerivedStateFromProps,l=typeof u==`function`||typeof a.getSnapshotBeforeUpdate==`function`,d=t.pendingProps!==d,l||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(d||f!==o)&&ns(t,a,r,o),iy=!1;var p=t.memoizedState;a.state=p,sa(t,r,a,i),oa(),f=t.memoizedState,d||p!==f||iy?(typeof u==`function`&&(es(t,n,u,r),f=t.memoizedState),(c=iy||ts(t,n,c,r,p,f,o))?(l||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),(t.mode&Vg)!==H&&(t.flags|=134217728)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Vg)!==H&&(t.flags|=134217728),t.memoizedProps=r,t.memoizedState=f),a.props=r,a.state=f,a.context=o,a=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),(t.mode&Vg)!==H&&(t.flags|=134217728),a=!1)}else{a=t.stateNode,ta(e,t),o=t.memoizedProps,l=rs(n,o),a.props=l,u=t.pendingProps,p=a.context,f=n.contextType,c=Ig,typeof f==`object`&&f&&(c=ai(f)),d=n.getDerivedStateFromProps,(f=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==u||p!==c)&&ns(t,a,r,c),iy=!1,p=t.memoizedState,a.state=p,sa(t,r,a,i),oa();var m=t.memoizedState;o!==u||p!==m||iy||e!==null&&e.dependencies!==null&&ri(e.dependencies)?(typeof d==`function`&&(es(t,n,d,r),m=t.memoizedState),(l=iy||ts(t,n,l,r,p,m,c)||e!==null&&e.dependencies!==null&&ri(e.dependencies))?(f||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,m,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,m,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),a.props=r,a.state=m,a.context=c,a=l):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),a=!1)}if(c=a,Ss(e,t),o=(t.flags&128)!=0,c||o){if(c=t.stateNode,Te(t),o&&typeof n.getDerivedStateFromError!=`function`)n=null,T_=-1;else if(n=wv(c),t.mode&Bg){Me(!0);try{wv(c)}finally{Me(!1)}}t.flags|=1,e!==null&&o?(t.child=Qv(t,e.child,null,i),t.child=Qv(t,null,n,i)):ps(e,t,n,i),t.memoizedState=c.state,e=t.child}else e=Ls(e,t,i);return i=t.stateNode,a&&i.props!==r&&(pb||console.error("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",S(t)||`a component`),pb=!0),e}function Es(e,t,n,r){return qr(),t.flags|=256,ps(e,t,n,r),t.child}function Ds(e,t){t&&t.childContextTypes&&console.error(`childContextTypes cannot be defined on a function component.
144
+ %s.childContextTypes = ...`,t.displayName||t.name||`Component`),typeof t.getDerivedStateFromProps==`function`&&(e=x(t)||`Unknown`,fb[e]||(console.error(`%s: Function components do not support getDerivedStateFromProps.`,e),fb[e]=!0)),typeof t.contextType==`object`&&t.contextType!==null&&(t=x(t)||`Unknown`,ub[t]||(console.error(`%s: Function components do not support contextType.`,t),ub[t]=!0))}function Os(e){return{baseLanes:e,cachePool:Fi()}}function ks(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=dx),e}function As(e,t,n){var r,i=t.pendingProps;o(t)&&(t.flags|=128);var a=!1,s=(t.flags&128)!=0;if((r=s)||(r=e!==null&&e.memoizedState===null?!1:(my.current&py)!==0),r&&(a=!0,t.flags&=-129),r=(t.flags&32)!=0,t.flags&=-33,e===null){if(W){if(a?ma(t):_a(t),(e=t_)?(n=gd(e,a_),n=n!==null&&n.data!==kS?n:null,n!==null&&(r={dehydrated:n,treeContext:Lr(),retryLane:536870912,hydrationErrors:null},t.memoizedState=r,r=Ar(n),r.return=t,t.child=r,e_=t,t_=null)):n=null,n===null)throw Hr(t,e),Ur(t);return vd(n)?t.lanes=32:t.lanes=536870912,null}var c=i.children;if(i=i.fallback,a){_a(t);var l=t.mode;return c=Ms({mode:`hidden`,children:c},l),i=Or(i,l,n,null),c.return=t,i.return=t,c.sibling=i,t.child=c,i=t.child,i.memoizedState=Os(n),i.childLanes=ks(e,r,n),t.memoizedState=gb,_s(null,i)}return ma(t),js(t,c)}var u=e.memoizedState;if(u!==null){var d=u.dehydrated;if(d!==null){if(s)t.flags&256?(ma(t),t.flags&=-257,t=Ns(e,t,n)):t.memoizedState===null?(_a(t),c=i.fallback,l=t.mode,i=Ms({mode:`visible`,children:i.children},l),c=Or(c,l,n,null),c.flags|=2,i.return=t,c.return=t,i.sibling=c,t.child=i,Qv(t,e.child,null,n),i=t.child,i.memoizedState=Os(n),i.childLanes=ks(e,r,n),t.memoizedState=gb,t=_s(null,i)):(_a(t),t.child=e.child,t.flags|=128,t=null);else if(ma(t),Vr(),n&536870912&&_l(t),vd(d)){if(r=d.nextSibling&&d.nextSibling.dataset,r){c=r.dgst;var f=r.msg;l=r.stck;var p=r.cstck}a=f,r=c,i=l,d=p,c=a,l=d,c=Error(c||`The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.`),c.stack=i||``,c.digest=r,r=l===void 0?null:l,i={value:c,source:null,stack:r},typeof r==`string`&&Wg.set(c,i),Yr(i),t=Ns(e,t,n)}else if(cb||ni(e,t,n,!1),r=(n&e.childLanes)!==0,cb||r){if(r=Gb,r!==null&&(i=We(r,n),i!==0&&i!==u.retryLane))throw u.retryLane=i,mr(e,i),il(r,e,i),sb;_d(d)||vl(),t=Ns(e,t,n)}else _d(d)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,t_=bd(d.nextSibling),e_=t,W=!0,i_=null,n_=!1,r_=null,a_=!1,e!==null&&Rr(t,e),t=js(t,i.children),t.flags|=4096);return t}}return a?(_a(t),c=i.fallback,l=t.mode,p=e.child,d=p.sibling,i=wr(p,{mode:`hidden`,children:i.children}),i.subtreeFlags=p.subtreeFlags&65011712,d===null?(c=Or(c,l,n,null),c.flags|=2):c=wr(d,c),c.return=t,i.return=t,i.sibling=c,t.child=i,_s(null,i),i=t.child,c=e.child.memoizedState,c===null?c=Os(n):(l=c.cachePool,l===null?l=Fi():(p=g_._currentValue,l=l.parent===p?l:{parent:p,pool:p}),c={baseLanes:c.baseLanes|n,cachePool:l}),i.memoizedState=c,i.childLanes=ks(e,r,n),t.memoizedState=gb,_s(e.child,i)):(u!==null&&(n&62914560)===n&&(n&e.lanes)!==0&&_l(t),ma(t),n=e.child,e=n.sibling,n=wr(n,{mode:`visible`,children:i.children}),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function js(e,t){return t=Ms({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Ms(e,t){return e=h(22,e,null,t),e.lanes=0,e}function Ns(e,t,n){return Qv(t,e.child,null,n),e=js(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Ps(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),ei(e.return,t,n)}function Fs(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 Is(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail,o=r.children,s=my.current;if((r=(s&py)!==0)?(s=s&fy|py,t.flags|=128):s&=fy,w(my,s,t),s=i??`null`,i!==`forwards`&&i!==`unstable_legacy-backwards`&&i!==`together`&&i!==`independent`&&!mb[s])if(mb[s]=!0,i==null)console.error(`The default for the <SuspenseList revealOrder="..."> prop is changing. To be future compatible you must explictly specify either "independent" (the current default), "together", "forwards" or "legacy_unstable-backwards".`);else if(i===`backwards`)console.error(`The rendering order of <SuspenseList revealOrder="backwards"> is changing. To be future compatible you must specify revealOrder="legacy_unstable-backwards" instead.`);else if(typeof i==`string`)switch(i.toLowerCase()){case`together`:case`forwards`:case`backwards`:case`independent`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.`,i,i.toLowerCase());break;case`forward`:case`backward`:console.error(`"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.`,i,i.toLowerCase());break;default:console.error(`"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i)}else console.error(`%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "independent", "together", "forwards" or "backwards"?`,i);s=a??`null`,hb[s]||(a==null?(i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&(hb[s]=!0,console.error(`The default for the <SuspenseList tail="..."> prop is changing. To be future compatible you must explictly specify either "visible" (the current default), "collapsed" or "hidden".`)):a!==`visible`&&a!==`collapsed`&&a!==`hidden`?(hb[s]=!0,console.error(`"%s" is not a supported value for tail on <SuspenseList />. Did you mean "visible", "collapsed" or "hidden"?`,a)):i!==`forwards`&&i!==`backwards`&&i!==`unstable_legacy-backwards`&&(hb[s]=!0,console.error(`<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?`,a)));a:if((i===`forwards`||i===`backwards`||i===`unstable_legacy-backwards`)&&o!=null&&!1!==o)if(Xf(o)){for(s=0;s<o.length;s++)if(!$i(o[s],s))break a}else if(s=oe(o),typeof s==`function`){if(s=s.call(o))for(var c=s.next(),l=0;!c.done;c=s.next()){if(!$i(c.value,l))break a;l++}}else console.error(`A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?`,i);if(ps(e,t,o,n),W?(zr(),o=Jg):o=0,!r&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Ps(e,n,t);else if(e.tag===19)Ps(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&&ya(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Fs(t,!1,i,n,a,o);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ya(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Fs(t,!0,n,null,a,o);break;case`together`:Fs(t,!1,null,null,void 0,o);break;default:t.memoizedState=null}return t.child}function Ls(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),T_=-1,cx|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(ni(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(`Resuming work not yet implemented.`);if(t.child!==null){for(e=t.child,n=wr(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=wr(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Rs(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&ri(e))):!0}function zs(e,t,n){switch(t.tag){case 3:le(t,t.stateNode.containerInfo),Qr(t,g_,e.memoizedState.cache),qr();break;case 27:case 5:fe(t);break;case 4:le(t,t.stateNode.containerInfo);break;case 10:Qr(t,t.type,t.memoizedProps.value);break;case 12:(n&t.childLanes)!==0&&(t.flags|=4),t.flags|=2048;var r=t.stateNode;r.effectDuration=-0,r.passiveEffectDuration=-0;break;case 31:if(t.memoizedState!==null)return t.flags|=128,ha(t),null;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(ma(t),e=Ls(e,t,n),e===null?null:e.sibling):As(e,t,n):(ma(t),t.flags|=128,null);ma(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(ni(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Is(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),w(my,my.current,t),r)break;return null;case 22:return t.lanes=0,gs(e,t,n,t.pendingProps);case 24:Qr(t,g_,e.memoizedState.cache)}return Ls(e,t,n)}function Bs(e,t,n){if(t._debugNeedsRemount&&e!==null){n=Er(t.type,t.key,t.pendingProps,t._debugOwner||null,t.mode,t.lanes),n._debugStack=t._debugStack,n._debugTask=t._debugTask;var r=t.return;if(r===null)throw Error(`Cannot swap the root fiber.`);if(e.alternate=null,t.alternate=null,n.index=t.index,n.sibling=t.sibling,n.return=t.return,n.ref=t.ref,n._debugInfo=t._debugInfo,t===r.child)r.child=n;else{var i=r.child;if(i===null)throw Error(`Expected parent to have a child.`);for(;i.sibling!==t;)if(i=i.sibling,i===null)throw Error(`Expected to find the previous sibling.`);i.sibling=n}return t=r.deletions,t===null?(r.deletions=[e],r.flags|=16):t.push(e),n.flags|=2,n}if(e!==null)if(e.memoizedProps!==t.pendingProps||t.type!==e.type)cb=!0;else{if(!Rs(e,n)&&!(t.flags&128))return cb=!1,zs(e,t,n);cb=!!(e.flags&131072)}else cb=!1,(r=W)&&(zr(),r=(t.flags&1048576)!=0),r&&(r=t.index,zr(),Pr(t,Jg,r));switch(t.lanes=0,t.tag){case 16:a:if(r=t.pendingProps,e=zi(t.elementType),t.type=e,typeof e==`function`)Cr(e)?(r=rs(e,r),t.tag=1,t.type=e=_r(e),t=Ts(null,t,e,r,n)):(t.tag=0,Ds(t,e),t.type=e=_r(e),t=Cs(null,t,e,r,n));else{if(e!=null){if(i=e.$$typeof,i===Vf){t.tag=11,t.type=e=vr(e),t=ms(null,t,e,r,n);break a}else if(i===Wf){t.tag=14,t=hs(null,t,e,r,n);break a}}throw t=``,typeof e==`object`&&e&&e.$$typeof===Gf&&(t=` Did you wrap a component in React.lazy() more than once?`),n=x(e)||e,Error(`Element type is invalid. Received a promise that resolves to: `+n+`. Lazy element type must resolve to a class or function.`+t)}return t;case 0:return Cs(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=rs(r,t.pendingProps),Ts(e,t,r,i,n);case 3:a:{if(le(t,t.stateNode.containerInfo),e===null)throw Error(`Should have a current fiber. This is a bug in React.`);r=t.pendingProps;var a=t.memoizedState;i=a.element,ta(e,t),sa(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Qr(t,g_,r),r!==a.cache&&ti(t,[g_],n,!0),oa(),r=o.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:o.cache},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){t=Es(e,t,r,n);break a}else if(r!==i){i=Mr(Error(`This root received an early update, before anything was able hydrate. Switched the entire root to client rendering.`),t),Yr(i),t=Es(e,t,r,n);break a}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(t_=bd(e.firstChild),e_=t,W=!0,i_=null,n_=!1,r_=null,a_=!0,n=$v(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(qr(),r===i){t=Ls(e,t,n);break a}ps(e,t,r,n)}t=t.child}return t;case 26:return Ss(e,t),e===null?(n=Nd(t.type,null,t.pendingProps,null))?t.memoizedState=n:W||(n=t.type,e=t.pendingProps,r=T(rp.current),r=Hu(r).createElement(n),r[Jp]=t,r[Yp]=e,Ou(r,n,e),nt(r),t.stateNode=r):t.memoizedState=Nd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return fe(t),e===null&&W&&(r=T(rp.current),i=de(),r=t.stateNode=Od(t.type,t.pendingProps,r,i,!1),n_||(i=Ru(r,t.type,t.pendingProps,i),i!==null&&(Br(t,0).serverProps=i)),e_=t,a_=!0,i=t_,nd(t.type)?(nC=i,t_=bd(r.firstChild)):t_=i),ps(e,t,t.pendingProps.children,n),Ss(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&W&&(a=de(),r=Yt(t.type,a.ancestorInfo),i=t_,(o=!i)||(o=md(i,t.type,t.pendingProps,a_),o===null?a=!1:(t.stateNode=o,n_||(a=Ru(o,t.type,t.pendingProps,a),a!==null&&(Br(t,0).serverProps=a)),e_=t,t_=bd(o.firstChild),a_=!1,a=!0),o=!a),o&&(r&&Hr(t,i),Ur(t))),fe(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Gu(i,a)?r=null:o!==null&&Gu(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=wa(e,t,Da,null,null,n),bC._currentValue=i),Ss(e,t),ps(e,t,r,n),t.child;case 6:return e===null&&W&&(n=t.pendingProps,e=de(),r=e.ancestorInfo.current,n=r==null?!0:Xt(n,r.tag,e.ancestorInfo.implicitRootScope),e=t_,(r=!e)||(r=hd(e,t.pendingProps,a_),r===null?r=!1:(t.stateNode=r,e_=t,t_=null,r=!0),r=!r),r&&(n&&Hr(t,e),Ur(t))),null;case 13:return As(e,t,n);case 4:return le(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Qv(t,null,r,n):ps(e,t,r,n),t.child;case 11:return ms(e,t,t.type,t.pendingProps,n);case 7:return ps(e,t,t.pendingProps,n),t.child;case 8:return ps(e,t,t.pendingProps.children,n),t.child;case 12:return t.flags|=4,t.flags|=2048,r=t.stateNode,r.effectDuration=-0,r.passiveEffectDuration=-0,ps(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.type,i=t.pendingProps,a=i.value,`value`in i||_b||(_b=!0,console.error("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?")),Qr(t,r,a),ps(e,t,i.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,typeof r!=`function`&&console.error(`A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it.`),ii(t),i=ai(i),r=Sv(r,i,void 0),t.flags|=1,ps(e,t,r,n),t.child;case 14:return hs(e,t,t.type,t.pendingProps,n);case 15:return P(e,t,t.type,t.pendingProps,n);case 19:return Is(e,t,n);case 31:return xs(e,t,n);case 22:return gs(e,t,n,t.pendingProps);case 24:return ii(t),r=ai(g_),e===null?(i=Ni(),i===null&&(i=Gb,a=ci(),i.pooledCache=a,li(a),a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},ea(t),Qr(t,g_,i)):((e.lanes&n)!==0&&(ta(e,t),sa(t,null,null,n),oa()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Qr(t,g_,r),r!==i.cache&&ti(t,[g_],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Qr(t,g_,r))),ps(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Vs(e){e.flags|=4}function Hs(e,t,n,r,i){if((t=(e.mode&Hg)!==H)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(ml())e.flags|=8192;else throw Uv=Hv,Bv}else e.flags&=-16777217}function Us(e,t){if(t.type!==`stylesheet`||(t.state.loading&sC)!==rC)e.flags&=-16777217;else if(e.flags|=16777216,!Jd(t))if(ml())e.flags|=8192;else throw Uv=Hv,Bv}function Ws(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Re(),e.lanes|=t,fx|=t)}function Gs(e,t){if(!W)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 Ks(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)if((e.mode&U)!==H){for(var i=e.selfBaseDuration,a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,i+=a.treeBaseDuration,a=a.sibling;e.treeBaseDuration=i}else for(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 if((e.mode&U)!==H){i=e.actualDuration,a=e.selfBaseDuration;for(var o=e.child;o!==null;)n|=o.lanes|o.childLanes,r|=o.subtreeFlags,r|=o.flags,i+=o.actualDuration,a+=o.treeBaseDuration,o=o.sibling;e.actualDuration=i,e.treeBaseDuration=a}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 qs(e,t,n){var r=t.pendingProps;switch(Ir(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ks(t),null;case 1:return Ks(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),$r(g_,t),ue(t),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Kr(t)?(Xr(),Vs(t)):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Jr())),Ks(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(Vs(t),a===null?(Ks(t),Hs(t,i,null,r,n)):(Ks(t),Us(t,a))):a?a===e.memoizedState?(Ks(t),t.flags&=-16777217):(Vs(t),Ks(t),Us(t,a)):(e=e.memoizedProps,e!==r&&Vs(t),Ks(t),Hs(t,i,e,r,n)),null;case 27:if(pe(t),n=T(rp.current),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Vs(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ks(t),null}e=de(),Kr(t)?Wr(t,e):(e=Od(i,r,n,e,!0),t.stateNode=e,Vs(t))}return Ks(t),null;case 5:if(pe(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&Vs(t);else{if(!r){if(t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);return Ks(t),null}var o=de();if(Kr(t))Wr(t,o);else{switch(a=T(rp.current),Yt(i,o.ancestorInfo),o=o.context,a=Hu(a),o){case WS:a=a.createElementNS(Rm,i);break;case GS:a=a.createElementNS(Lm,i);break;default:switch(i){case`svg`:a=a.createElementNS(Rm,i);break;case`math`:a=a.createElementNS(Lm,i);break;case`script`:a=a.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?a.createElement(`select`,{is:r.is}):a.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?a.createElement(i,{is:r.is}):a.createElement(i),i.indexOf(`-`)===-1&&(i!==i.toLowerCase()&&console.error(`<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.`,i),Object.prototype.toString.call(a)!==`[object HTMLUnknownElement]`||yp.call(JS,i)||(JS[i]=!0,console.error(`The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.`,i)))}}a[Jp]=t,a[Yp]=r;a:for(o=t.child;o!==null;){if(o.tag===5||o.tag===6)a.appendChild(o.stateNode);else if(o.tag!==4&&o.tag!==27&&o.child!==null){o.child.return=o,o=o.child;continue}if(o===t)break a;for(;o.sibling===null;){if(o.return===null||o.return===t)break a;o=o.return}o.sibling.return=o.return,o=o.sibling}t.stateNode=a;a:switch(Ou(a,i,r),i){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&Vs(t)}}return Ks(t),Hs(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&Vs(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(`We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.`);if(e=T(rp.current),n=de(),Kr(t)){if(e=t.stateNode,n=t.memoizedProps,i=!n_,r=null,a=e_,a!==null)switch(a.tag){case 3:i&&(i=Sd(e,n,r),i!==null&&(Br(t,0).serverProps=i));break;case 27:case 5:r=a.memoizedProps,i&&(i=Sd(e,n,r),i!==null&&(Br(t,0).serverProps=i))}e[Jp]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Tu(e.nodeValue,n)),e||Ur(t,!0)}else i=n.ancestorInfo.current,i!=null&&Xt(r,i.tag,n.ancestorInfo.implicitRootScope),e=Hu(e).createTextNode(r),e[Jp]=t,t.stateNode=e}return Ks(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Kr(t),n!==null){if(e===null){if(!r)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(`Expected to have a hydrated activity instance. This error is likely caused by a bug in React. Please file an issue.`);e[Jp]=t,Ks(t),(t.mode&U)!==H&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration))}else Xr(),qr(),!(t.flags&128)&&(n=t.memoizedState=null),t.flags|=4,Ks(t),(t.mode&U)!==H&&n!==null&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration));e=!1}else n=Jr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(va(t),t):(va(t),null);if(t.flags&128)throw Error(`Client rendering an Activity suspended it again. This is a bug in React.`)}return Ks(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=r,a=Kr(t),i!==null&&i.dehydrated!==null){if(e===null){if(!a)throw Error(`A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.`);if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(`Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.`);a[Jp]=t,Ks(t),(t.mode&U)!==H&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration))}else Xr(),qr(),!(t.flags&128)&&(i=t.memoizedState=null),t.flags|=4,Ks(t),(t.mode&U)!==H&&i!==null&&(i=t.child,i!==null&&(t.treeBaseDuration-=i.treeBaseDuration));i=!1}else i=Jr(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(va(t),t):(va(t),null)}return va(t),t.flags&128?(t.lanes=n,(t.mode&U)!==H&&ki(t),t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,i=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(i=r.alternate.memoizedState.cachePool.pool),a=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),Ws(t,t.updateQueue),Ks(t),(t.mode&U)!==H&&n&&(e=t.child,e!==null&&(t.treeBaseDuration-=e.treeBaseDuration)),null);case 4:return ue(t),e===null&&fu(t.stateNode.containerInfo),Ks(t),null;case 10:return $r(t.type,t),Ks(t),null;case 19:if(C(my,t),r=t.memoizedState,r===null)return Ks(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Gs(r,!1);else{if(sx!==Rb||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=ya(e),a!==null){for(t.flags|=128,Gs(r,!1),e=a.updateQueue,t.updateQueue=e,Ws(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Tr(n,e),n=n.sibling;return w(my,my.current&fy|py,t),W&&Nr(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&wp()>yx&&(t.flags|=128,i=!0,Gs(r,!1),t.lanes=4194304)}else{if(!i)if(e=ya(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Ws(t,e),Gs(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!W)return Ks(t),null}else 2*wp()-r.renderingStartTime>yx&&n!==536870912&&(t.flags|=128,i=!0,Gs(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(e=r.last,e===null?t.child=a:e.sibling=a,r.last=a)}return r.tail===null?(Ks(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=wp(),e.sibling=null,n=my.current,n=i?n&fy|py:n&fy,w(my,n,t),W&&Nr(t,r.treeForkCount),e);case 22:case 23:return va(t),pa(t),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ks(t),t.subtreeFlags&6&&(t.flags|=8192)):Ks(t),n=t.updateQueue,n!==null&&Ws(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&&C(uv,t),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),$r(g_,t),Ks(t),null;case 25:return null;case 30:return null}throw Error(`Unknown unit of work tag (`+t.tag+`). This error is likely caused by a bug in React. Please file an issue.`)}function Js(e,t){switch(Ir(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&ki(t),t):null;case 3:return $r(g_,t),ue(t),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return pe(t),null;case 31:if(t.memoizedState!==null){if(va(t),t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&ki(t),t):null;case 13:if(va(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(`Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.`);qr()}return e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&ki(t),t):null;case 19:return C(my,t),null;case 4:return ue(t),null;case 10:return $r(t.type,t),null;case 22:case 23:return va(t),pa(t),e!==null&&C(uv,t),e=t.flags,e&65536?(t.flags=e&-65537|128,(t.mode&U)!==H&&ki(t),t):null;case 24:return $r(g_,t),null;case 25:return null;default:return null}}function Ys(e,t){switch(Ir(t),t.tag){case 3:$r(g_,t),ue(t);break;case 26:case 27:case 5:pe(t);break;case 4:ue(t);break;case 31:t.memoizedState!==null&&va(t);break;case 13:va(t);break;case 19:C(my,t);break;case 10:$r(t.type,t);break;case 22:case 23:va(t),pa(t),e!==null&&C(uv,t);break;case 24:$r(g_,t)}}function Xs(e){return(e.mode&U)!==H}function Zs(e,t){Xs(e)?(Oi(),$s(t,e),Ei()):$s(t,e)}function Qs(e,t,n){Xs(e)?(Oi(),ec(n,e,t),Ei()):ec(n,e,t)}function $s(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,(e&_y)!==hy&&($x=!0),r=E(t,Pv,n),(e&_y)!==hy&&($x=!1),r!==void 0&&typeof r!=`function`)){var a=void 0;a=(n.tag&vy)===0?(n.tag&_y)===0?`useEffect`:`useInsertionEffect`:`useLayoutEffect`;var o=void 0;o=r===null?` You returned null. If your effect does not require clean up, return undefined (or nothing).`:typeof r.then==`function`?`
145
+
146
+ It looks like you wrote `+a+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
147
+
148
+ `+a+`(() => {
149
+ async function fetchData() {
150
+ // You can await here
151
+ const response = await MyAPI.getData(someId);
152
+ // ...
153
+ }
154
+ fetchData();
155
+ }, [someId]); // Or [] if effect doesn't need props or state
156
+
157
+ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fetching`:` You returned: `+r,E(t,function(e,t){console.error(`%s must not return anything besides a function, which is used for clean-up.%s`,e,t)},a,o)}n=n.next}while(n!==i)}}catch(e){F(t,t.return,e)}}function ec(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;s!==void 0&&(o.destroy=void 0,(e&_y)!==hy&&($x=!0),i=t,E(i,Iv,i,n,s),(e&_y)!==hy&&($x=!1))}r=r.next}while(r!==a)}}catch(e){F(t,t.return,e)}}function tc(e,t){Xs(e)?(Oi(),$s(t,e),Ei()):$s(t,e)}function nc(e,t,n){Xs(e)?(Oi(),ec(n,e,t),Ei()):ec(n,e,t)}function rc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;e.type.defaultProps||`ref`in e.memoizedProps||pb||(n.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",S(e)||`instance`),n.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",S(e)||`instance`));try{E(e,ua,t,n)}catch(t){F(e,e.return,t)}}}function ic(e,t,n){return e.getSnapshotBeforeUpdate(t,n)}function ac(e,t){var n=t.memoizedProps,r=t.memoizedState;t=e.stateNode,e.type.defaultProps||`ref`in e.memoizedProps||pb||(t.props!==e.memoizedProps&&console.error("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",S(e)||`instance`),t.state!==e.memoizedState&&console.error("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",S(e)||`instance`));try{var i=rs(e.type,n),a=E(e,ic,t,i,r);n=vb,a!==void 0||n.has(e.type)||(n.add(e.type),E(e,function(){console.error(`%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.`,S(e))})),t.__reactInternalSnapshotBeforeUpdate=a}catch(t){F(e,e.return,t)}}function oc(e,t,n){n.props=rs(e.type,e.memoizedProps),n.state=e.memoizedState,Xs(e)?(Oi(),E(e,Mv,e,t,n),Ei()):E(e,Mv,e,t,n)}function sc(e){var t=e.ref;if(t!==null){switch(e.tag){case 26:case 27:case 5:var n=e.stateNode;break;case 30:n=e.stateNode;break;default:n=e.stateNode}if(typeof t==`function`)if(Xs(e))try{Oi(),e.refCleanup=t(n)}finally{Ei()}else e.refCleanup=t(n);else typeof t==`string`?console.error(`String refs are no longer supported.`):t.hasOwnProperty(`current`)||console.error(`Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().`,S(e)),t.current=n}}function cc(e,t){try{E(e,sc,e)}catch(n){F(e,t,n)}}function lc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{if(Xs(e))try{Oi(),E(e,r)}finally{Ei(e)}else E(e,r)}catch(n){F(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{if(Xs(e))try{Oi(),E(e,n,null)}finally{Ei(e)}else E(e,n,null)}catch(n){F(e,t,n)}else n.current=null}function uc(e,t,n,r){var i=e.memoizedProps,a=i.id,o=i.onCommit;i=i.onRender,t=t===null?`mount`:`update`,rv&&(t=`nested-update`),typeof i==`function`&&i(a,t,e.actualDuration,e.treeBaseDuration,e.actualStartTime,n),typeof o==`function`&&o(a,t,r,n)}function dc(e,t,n,r){var i=e.memoizedProps;e=i.id,i=i.onPostCommit,t=t===null?`mount`:`update`,rv&&(t=`nested-update`),typeof i==`function`&&i(e,t,r,n)}function fc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{E(e,Xu,r,t,n,e)}catch(t){F(e,e.return,t)}}function pc(e,t,n){try{E(e,Qu,e.stateNode,e.type,n,t,e)}catch(t){F(e,e.return,t)}}function mc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&nd(e.type)||e.tag===4}function hc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||mc(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&&nd(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 gc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(td(n),(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t)):(td(n),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=ln));else if(r!==4&&(r===27&&nd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(gc(e,t,n),e=e.sibling;e!==null;)gc(e,t,n),e=e.sibling}function _c(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&&nd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(_c(e,t,n),e=e.sibling;e!==null;)_c(e,t,n),e=e.sibling}function vc(e){for(var t,n=e.return;n!==null;){if(mc(n)){t=n;break}n=n.return}if(t==null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);switch(t.tag){case 27:t=t.stateNode,n=hc(e),_c(e,n,t);break;case 5:n=t.stateNode,t.flags&32&&($u(n),t.flags&=-33),t=hc(e),_c(e,t,n);break;case 3:case 4:t=t.stateNode.containerInfo,n=hc(e),gc(e,n,t);break;default:throw Error(`Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.`)}}function yc(e){var t=e.stateNode,n=e.memoizedProps;try{E(e,kd,e.type,n,t,e)}catch(t){F(e,e.return,t)}}function bc(e,t){return t.tag===31?(t=t.memoizedState,e.memoizedState!==null&&t===null):t.tag===13?(e=e.memoizedState,t=t.memoizedState,e!==null&&e.dehydrated!==null&&(t===null||t.dehydrated===null)):t.tag===3?e.memoizedState.isDehydrated&&(t.flags&256)==0:!1}function xc(e,t){if(e=e.containerInfo,KS=LC,e=Hn(e),Un(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 i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break a}var o=0,s=-1,c=-1,l=0,u=0,d=e,f=null;b:for(;;){for(var p;d!==n||i!==0&&d.nodeType!==3||(s=o+i),d!==a||r!==0&&d.nodeType!==3||(c=o+r),d.nodeType===3&&(o+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===e)break b;if(f===n&&++l===i&&(s=o),f===a&&++u===r&&(c=o),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}n=s===-1||c===-1?null:{start:s,end:c}}else n=null}n||={start:0,end:0}}else n=null;for(qS={focusedElem:e,selectionRange:n},LC=!1,Cb=t;Cb!==null;)if(t=Cb,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,Cb=e;else for(;Cb!==null;){switch(e=t=Cb,n=e.alternate,i=e.flags,e.tag){case 0:if(i&4&&(e=e.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:i&1024&&n!==null&&ac(e,n);break;case 3:if(i&1024){if(e=e.stateNode.containerInfo,n=e.nodeType,n===9)pd(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:pd(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(i&1024)throw Error(`This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.`)}if(e=t.sibling,e!==null){e.return=t.return,Cb=e;break}Cb=t.return}}function Sc(e,t,n){var r=_i(),i=yi(),a=xi(),o=Si(),s=n.flags;switch(n.tag){case 0:case 11:case 15:Pc(e,n),s&4&&Zs(n,vy|gy);break;case 1:if(Pc(e,n),s&4)if(e=n.stateNode,t===null)n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",S(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",S(n)||`instance`)),Xs(n)?(Oi(),E(n,Ev,n,e),Ei()):E(n,Ev,n,e);else{var c=rs(n.type,t.memoizedProps);t=t.memoizedState,n.type.defaultProps||`ref`in n.memoizedProps||pb||(e.props!==n.memoizedProps&&console.error("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",S(n)||`instance`),e.state!==n.memoizedState&&console.error("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",S(n)||`instance`)),Xs(n)?(Oi(),E(n,Ov,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate),Ei()):E(n,Ov,n,e,c,t,e.__reactInternalSnapshotBeforeUpdate)}s&64&&rc(n),s&512&&cc(n,n.return);break;case 3:if(t=pi(),Pc(e,n),s&64&&(s=n.updateQueue,s!==null)){if(c=null,n.child!==null)switch(n.child.tag){case 27:case 5:c=n.child.stateNode;break;case 1:c=n.child.stateNode}try{E(n,ua,s,c)}catch(e){F(n,n.return,e)}}e.effectDuration+=mi(t);break;case 27:t===null&&s&4&&yc(n);case 26:case 5:if(Pc(e,n),t===null){if(s&4)fc(n);else if(s&64){e=n.type,t=n.memoizedProps,c=n.stateNode;try{E(n,Zu,c,e,t,n)}catch(e){F(n,n.return,e)}}}s&512&&cc(n,n.return);break;case 12:if(s&4){s=pi(),Pc(e,n),e=n.stateNode,e.effectDuration+=hi(s);try{E(n,uc,n,t,S_,e.effectDuration)}catch(e){F(n,n.return,e)}}else Pc(e,n);break;case 31:Pc(e,n),s&4&&Ec(e,n);break;case 13:Pc(e,n),s&4&&Dc(e,n),s&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(s=Vl.bind(null,n),yd(e,s))));break;case 22:if(s=n.memoizedState!==null||yb,!s){t=t!==null&&t.memoizedState!==null||bb,c=yb;var l=bb;yb=s,(bb=t)&&!l?(Rc(e,n,(n.subtreeFlags&8772)!=0),(n.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&$n(n,G,K)):Pc(e,n),yb=c,bb=l}break;case 30:break;default:Pc(e,n)}(n.mode&U)!==H&&0<=G&&0<=K&&((k_||.05<D_)&&nr(n,G,K,D_,O_),n.alternate===null&&n.return!==null&&n.return.alternate!==null&&.05<K-G&&(bc(n.return.alternate,n.return)||k(n,G,K,`Mount`))),vi(r),bi(i),O_=a,k_=o}function Cc(e){var t=e.alternate;t!==null&&(e.alternate=null,Cc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Ze(t)),e.stateNode=null,e._debugOwner=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function wc(e,t,n){for(n=n.child;n!==null;)Tc(e,t,n),n=n.sibling}function Tc(e,t,n){if(Pp&&typeof Pp.onCommitFiberUnmount==`function`)try{Pp.onCommitFiberUnmount(Np,n)}catch(e){Fp||(Fp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var r=_i(),i=yi(),a=xi(),o=Si();switch(n.tag){case 26:bb||lc(n,t),wc(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(e=n.stateNode,e.parentNode.removeChild(e));break;case 27:bb||lc(n,t);var s=Eb,c=Db;nd(n.type)&&(Eb=n.stateNode,Db=!1),wc(e,t,n),E(n,Ad,n.stateNode),Eb=s,Db=c;break;case 5:bb||lc(n,t);case 6:if(s=Eb,c=Db,Eb=null,wc(e,t,n),Eb=s,Db=c,Eb!==null)if(Db)try{E(n,id,Eb,n.stateNode)}catch(e){F(n,t,e)}else try{E(n,rd,Eb,n.stateNode)}catch(e){F(n,t,e)}break;case 18:Eb!==null&&(Db?(e=Eb,ad(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Tf(e)):ad(Eb,n.stateNode));break;case 4:s=Eb,c=Db,Eb=n.stateNode.containerInfo,Db=!0,wc(e,t,n),Eb=s,Db=c;break;case 0:case 11:case 14:case 15:ec(_y,n,t),bb||Qs(n,t,vy),wc(e,t,n);break;case 1:bb||(lc(n,t),s=n.stateNode,typeof s.componentWillUnmount==`function`&&oc(n,t,s)),wc(e,t,n);break;case 21:wc(e,t,n);break;case 22:bb=(s=bb)||n.memoizedState!==null,wc(e,t,n),bb=s;break;default:wc(e,t,n)}(n.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(n,G,K,D_,O_),vi(r),bi(i),O_=a,k_=o}function Ec(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{E(t,Ed,e)}catch(e){F(t,t.return,e)}}}function Dc(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{E(t,Dd,e)}catch(e){F(t,t.return,e)}}function Oc(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new Sb),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new Sb),t;default:throw Error(`Unexpected Suspense handler tag (`+e.tag+`). This is a bug in React.`)}}function kc(e,t){var n=Oc(e);t.forEach(function(t){if(!n.has(t)){if(n.add(t),Ip)if(wb!==null&&Tb!==null)ql(Tb,wb);else throw Error(`Expected finished root and lanes to be set. This is a bug in React.`);var r=Hl.bind(null,e,t);t.then(r,r)}})}function Ac(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=e,a=t,o=n[r],s=_i(),c=a;a:for(;c!==null;){switch(c.tag){case 27:if(nd(c.type)){Eb=c.stateNode,Db=!1;break a}break;case 5:Eb=c.stateNode,Db=!1;break a;case 3:case 4:Eb=c.stateNode.containerInfo,Db=!0;break a}c=c.return}if(Eb===null)throw Error(`Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.`);Tc(i,a,o),Eb=null,Db=!1,(o.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&k(o,G,K,`Unmount`),vi(s),i=o,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)jc(t,e),t=t.sibling}function jc(e,t){var n=_i(),r=yi(),i=xi(),a=Si(),o=e.alternate,s=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Ac(t,e),Mc(e),s&4&&(ec(_y|gy,e,e.return),$s(_y|gy,e),Qs(e,e.return,vy|gy));break;case 1:if(Ac(t,e),Mc(e),s&512&&(bb||o===null||lc(o,o.return)),s&64&&yb&&(s=e.updateQueue,s!==null&&(o=s.callbacks,o!==null))){var c=s.shared.hiddenCallbacks;s.shared.hiddenCallbacks=c===null?o:c.concat(o)}break;case 26:if(c=Ob,Ac(t,e),Mc(e),s&512&&(bb||o===null||lc(o,o.return)),s&4){var l=o===null?null:o.memoizedState;if(s=e.memoizedState,o===null)if(s===null)if(e.stateNode===null){a:{s=e.type,o=e.memoizedProps,c=c.ownerDocument||c;b:switch(s){case`title`:l=c.getElementsByTagName(`title`)[0],(!l||l[tm]||l[Jp]||l.namespaceURI===Rm||l.hasAttribute(`itemprop`))&&(l=c.createElement(s),c.head.insertBefore(l,c.querySelector(`head > title`))),Ou(l,s,o),l[Jp]=e,nt(l),s=l;break a;case`link`:var u=Gd(`link`,`href`,c).get(s+(o.href||``));if(u){for(var d=0;d<u.length;d++)if(l=u[d],l.getAttribute(`href`)===(o.href==null||o.href===``?null:o.href)&&l.getAttribute(`rel`)===(o.rel==null?null:o.rel)&&l.getAttribute(`title`)===(o.title==null?null:o.title)&&l.getAttribute(`crossorigin`)===(o.crossOrigin==null?null:o.crossOrigin)){u.splice(d,1);break b}}l=c.createElement(s),Ou(l,s,o),c.head.appendChild(l);break;case`meta`:if(u=Gd(`meta`,`content`,c).get(s+(o.content||``))){for(d=0;d<u.length;d++)if(l=u[d],D(o.content,`content`),l.getAttribute(`content`)===(o.content==null?null:``+o.content)&&l.getAttribute(`name`)===(o.name==null?null:o.name)&&l.getAttribute(`property`)===(o.property==null?null:o.property)&&l.getAttribute(`http-equiv`)===(o.httpEquiv==null?null:o.httpEquiv)&&l.getAttribute(`charset`)===(o.charSet==null?null:o.charSet)){u.splice(d,1);break b}}l=c.createElement(s),Ou(l,s,o),c.head.appendChild(l);break;default:throw Error(`getNodesForType encountered a type it did not expect: "`+s+`". This is a bug in React.`)}l[Jp]=e,nt(l),s=l}e.stateNode=s}else Kd(c,e.type,e.stateNode);else e.stateNode=Vd(c,s,e.memoizedProps);else l===s?s===null&&e.stateNode!==null&&pc(e,e.memoizedProps,o.memoizedProps):(l===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):l.count--,s===null?Kd(c,e.type,e.stateNode):Vd(c,s,e.memoizedProps))}break;case 27:Ac(t,e),Mc(e),s&512&&(bb||o===null||lc(o,o.return)),o!==null&&s&4&&pc(e,e.memoizedProps,o.memoizedProps);break;case 5:if(Ac(t,e),Mc(e),s&512&&(bb||o===null||lc(o,o.return)),e.flags&32){c=e.stateNode;try{E(e,$u,c)}catch(t){F(e,e.return,t)}}s&4&&e.stateNode!=null&&(c=e.memoizedProps,pc(e,c,o===null?c:o.memoizedProps)),s&1024&&(xb=!0,e.type!==`form`&&console.error(`Unexpected host component type. Expected a form. This is a bug in React.`));break;case 6:if(Ac(t,e),Mc(e),s&4){if(e.stateNode===null)throw Error(`This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.`);s=e.memoizedProps,o=o===null?s:o.memoizedProps,c=e.stateNode;try{E(e,ed,c,o,s)}catch(t){F(e,e.return,t)}}break;case 3:if(c=pi(),fC=null,l=Ob,Ob=jd(t.containerInfo),Ac(t,e),Ob=l,Mc(e),s&4&&o!==null&&o.memoizedState.isDehydrated)try{E(e,Td,t.containerInfo)}catch(t){F(e,e.return,t)}xb&&(xb=!1,Nc(e)),t.effectDuration+=mi(c);break;case 4:s=Ob,Ob=jd(e.stateNode.containerInfo),Ac(t,e),Mc(e),Ob=s;break;case 12:s=pi(),Ac(t,e),Mc(e),e.stateNode.effectDuration+=hi(s);break;case 31:Ac(t,e),Mc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,kc(e,s)));break;case 13:Ac(t,e),Mc(e),e.child.flags&8192&&e.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(gx=wp()),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,kc(e,s)));break;case 22:c=e.memoizedState!==null;var f=o!==null&&o.memoizedState!==null,p=yb,m=bb;if(yb=p||c,bb=m||f,Ac(t,e),bb=m,yb=p,f&&!c&&!p&&!m&&(e.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&$n(e,G,K),Mc(e),s&8192)a:for(t=e.stateNode,t._visibility=c?t._visibility&~jg:t._visibility|jg,!c||o===null||f||yb||bb||(Ic(e),(e.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&k(e,G,K,`Disconnect`)),o=null,t=e;;){if(t.tag===5||t.tag===26){if(o===null){f=o=t;try{l=f.stateNode,c?E(f,cd,l):E(f,dd,f.stateNode,f.memoizedProps)}catch(e){F(f,f.return,e)}}}else if(t.tag===6){if(o===null){f=t;try{u=f.stateNode,c?E(f,ld,u):E(f,fd,u,f.memoizedProps)}catch(e){F(f,f.return,e)}}}else if(t.tag===18){if(o===null){f=t;try{d=f.stateNode,c?E(f,sd,d):E(f,ud,f.stateNode)}catch(e){F(f,f.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;o===t&&(o=null),t=t.return}o===t&&(o=null),t.sibling.return=t.return,t=t.sibling}s&4&&(s=e.updateQueue,s!==null&&(o=s.retryQueue,o!==null&&(s.retryQueue=null,kc(e,o))));break;case 19:Ac(t,e),Mc(e),s&4&&(s=e.updateQueue,s!==null&&(e.updateQueue=null,kc(e,s)));break;case 30:break;case 21:break;default:Ac(t,e),Mc(e)}(e.mode&U)!==H&&0<=G&&0<=K&&((k_||.05<D_)&&nr(e,G,K,D_,O_),e.alternate===null&&e.return!==null&&e.return.alternate!==null&&.05<K-G&&(bc(e.return.alternate,e.return)||k(e,G,K,`Mount`))),vi(n),bi(r),O_=i,k_=a}function Mc(e){var t=e.flags;if(t&2){try{E(e,vc,e)}catch(t){F(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Nc(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Nc(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function Pc(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)Sc(e,t.alternate,t),t=t.sibling}function Fc(e){var t=_i(),n=yi(),r=xi(),i=Si();switch(e.tag){case 0:case 11:case 14:case 15:Qs(e,e.return,vy),Ic(e);break;case 1:lc(e,e.return);var a=e.stateNode;typeof a.componentWillUnmount==`function`&&oc(e,e.return,a),Ic(e);break;case 27:E(e,Ad,e.stateNode);case 26:case 5:lc(e,e.return),Ic(e);break;case 22:e.memoizedState===null&&Ic(e);break;case 30:Ic(e);break;default:Ic(e)}(e.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(e,G,K,D_,O_),vi(t),bi(n),O_=r,k_=i}function Ic(e){for(e=e.child;e!==null;)Fc(e),e=e.sibling}function Lc(e,t,n,r){var i=_i(),a=yi(),o=xi(),s=Si(),c=n.flags;switch(n.tag){case 0:case 11:case 15:Rc(e,n,r),Zs(n,vy);break;case 1:if(Rc(e,n,r),t=n.stateNode,typeof t.componentDidMount==`function`&&E(n,Ev,n,t),t=n.updateQueue,t!==null){e=n.stateNode;try{E(n,la,t,e)}catch(e){F(n,n.return,e)}}r&&c&64&&rc(n),cc(n,n.return);break;case 27:yc(n);case 26:case 5:Rc(e,n,r),r&&t===null&&c&4&&fc(n),cc(n,n.return);break;case 12:if(r&&c&4){c=pi(),Rc(e,n,r),r=n.stateNode,r.effectDuration+=hi(c);try{E(n,uc,n,t,S_,r.effectDuration)}catch(e){F(n,n.return,e)}}else Rc(e,n,r);break;case 31:Rc(e,n,r),r&&c&4&&Ec(e,n);break;case 13:Rc(e,n,r),r&&c&4&&Dc(e,n);break;case 22:n.memoizedState===null&&Rc(e,n,r),cc(n,n.return);break;case 30:break;default:Rc(e,n,r)}(n.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(n,G,K,D_,O_),vi(i),bi(a),O_=o,k_=s}function Rc(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;)Lc(e,t.alternate,t,n),t=t.sibling}function zc(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&&li(e),n!=null&&ui(n))}function Bc(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(li(t),e!=null&&ui(e))}function Vc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(t=t.child;t!==null;){var a=t.sibling;Hc(e,t,n,r,a===null?i:a.actualStartTime),t=a}}function Hc(e,t,n,r,i){var a=_i(),o=yi(),s=xi(),c=Si(),l=Tg,u=t.flags;switch(t.tag){case 0:case 11:case 15:(t.mode&U)!==H&&0<t.actualStartTime&&t.flags&1&&er(t,t.actualStartTime,i,kb,n),Vc(e,t,n,r,i),u&2048&&tc(t,yy|gy);break;case 1:(t.mode&U)!==H&&0<t.actualStartTime&&(t.flags&128?tr(t,t.actualStartTime,i,[]):t.flags&1&&er(t,t.actualStartTime,i,kb,n)),Vc(e,t,n,r,i);break;case 3:var d=pi(),f=kb;kb=t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)==0,Vc(e,t,n,r,i),kb=f,u&2048&&(n=null,t.alternate!==null&&(n=t.alternate.memoizedState.cache),r=t.memoizedState.cache,r!==n&&(li(r),n!=null&&ui(n))),e.passiveEffectDuration+=mi(d);break;case 12:if(u&2048){u=pi(),Vc(e,t,n,r,i),e=t.stateNode,e.passiveEffectDuration+=hi(u);try{E(t,dc,t,t.alternate,S_,e.passiveEffectDuration)}catch(e){F(t,t.return,e)}}else Vc(e,t,n,r,i);break;case 31:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d!==null&&f===null?(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&tr(t,t.actualStartTime,i,d)):kb=!0):kb=!1,Vc(e,t,n,r,i),kb=u;break;case 13:u=kb,d=t.alternate===null?null:t.alternate.memoizedState,f=t.memoizedState,d===null||d.dehydrated===null||f!==null&&f.dehydrated!==null?kb=!1:(f=t.deletions,f!==null&&0<f.length&&f[0].tag===18?(kb=!1,d=d.hydrationErrors,d!==null&&tr(t,t.actualStartTime,i,d)):kb=!0),Vc(e,t,n,r,i),kb=u;break;case 23:break;case 22:f=t.stateNode,d=t.alternate,t.memoizedState===null?f._visibility&Mg?Vc(e,t,n,r,i):(f._visibility|=Mg,Uc(e,t,n,r,(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),i),(t.mode&U)===H||kb||(e=t.actualStartTime,0<=e&&.05<i-e&&$n(t,e,i),0<=G&&0<=K&&.05<K-G&&$n(t,G,K))):f._visibility&Mg?Vc(e,t,n,r,i):Gc(e,t,n,r,i),u&2048&&zc(d,t);break;case 24:Vc(e,t,n,r,i),u&2048&&Bc(t.alternate,t);break;default:Vc(e,t,n,r,i)}(t.mode&U)!==H&&((e=!kb&&t.alternate===null&&t.return!==null&&t.return.alternate!==null)&&(n=t.actualStartTime,0<=n&&.05<i-n&&k(t,n,i,`Mount`)),0<=G&&0<=K&&((k_||.05<D_)&&nr(t,G,K,D_,O_),e&&.05<K-G&&k(t,G,K,`Mount`))),vi(a),bi(o),O_=s,k_=c,Tg=l}function Uc(e,t,n,r,i,a){for(i&&=(t.subtreeFlags&10256)!=0||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child),t=t.child;t!==null;){var o=t.sibling;Wc(e,t,n,r,i,o===null?a:o.actualStartTime),t=o}}function Wc(e,t,n,r,i,a){var o=_i(),s=yi(),c=xi(),l=Si(),u=Tg;i&&(t.mode&U)!==H&&0<t.actualStartTime&&t.flags&1&&er(t,t.actualStartTime,a,kb,n);var d=t.flags;switch(t.tag){case 0:case 11:case 15:Uc(e,t,n,r,i,a),tc(t,yy);break;case 23:break;case 22:var f=t.stateNode;t.memoizedState===null?(f._visibility|=Mg,Uc(e,t,n,r,i,a)):f._visibility&Mg?Uc(e,t,n,r,i,a):Gc(e,t,n,r,a),i&&d&2048&&zc(t.alternate,t);break;case 24:Uc(e,t,n,r,i,a),i&&d&2048&&Bc(t.alternate,t);break;default:Uc(e,t,n,r,i,a)}(t.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(t,G,K,D_,O_),vi(o),bi(s),O_=c,k_=l,Tg=u}function Gc(e,t,n,r,i){if(t.subtreeFlags&10256||t.actualDuration!==0&&(t.alternate===null||t.alternate.child!==t.child))for(var a=t.child;a!==null;){t=a.sibling;var o=e,s=n,c=r,l=t===null?i:t.actualStartTime,u=Tg;(a.mode&U)!==H&&0<a.actualStartTime&&a.flags&1&&er(a,a.actualStartTime,l,kb,s);var d=a.flags;switch(a.tag){case 22:Gc(o,a,s,c,l),d&2048&&zc(a.alternate,a);break;case 24:Gc(o,a,s,c,l),d&2048&&Bc(a.alternate,a);break;default:Gc(o,a,s,c,l)}Tg=u,a=t}}function Kc(e,t,n){if(e.subtreeFlags&Ab)for(e=e.child;e!==null;)qc(e,t,n),e=e.sibling}function qc(e,t,n){switch(e.tag){case 26:Kc(e,t,n),e.flags&Ab&&e.memoizedState!==null&&Yd(n,Ob,e.memoizedState,e.memoizedProps);break;case 5:Kc(e,t,n);break;case 3:case 4:var r=Ob;Ob=jd(e.stateNode.containerInfo),Kc(e,t,n),Ob=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=Ab,Ab=16777216,Kc(e,t,n),Ab=r):Kc(e,t,n));break;default:Kc(e,t,n)}}function Jc(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 Yc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=_i();Cb=r,$c(r,e),(r.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&k(r,G,K,`Unmount`),vi(i)}Jc(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Xc(e),e=e.sibling}function Xc(e){var t=_i(),n=yi(),r=xi(),i=Si();switch(e.tag){case 0:case 11:case 15:Yc(e),e.flags&2048&&nc(e,e.return,yy|gy);break;case 3:var a=pi();Yc(e),e.stateNode.passiveEffectDuration+=mi(a);break;case 12:a=pi(),Yc(e),e.stateNode.passiveEffectDuration+=hi(a);break;case 22:a=e.stateNode,e.memoizedState!==null&&a._visibility&Mg&&(e.return===null||e.return.tag!==13)?(a._visibility&=~Mg,Zc(e),(e.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&k(e,G,K,`Disconnect`)):Yc(e);break;default:Yc(e)}(e.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(e,G,K,D_,O_),vi(t),bi(n),k_=i,O_=r}function Zc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n],i=_i();Cb=r,$c(r,e),(r.mode&U)!==H&&0<=G&&0<=K&&.05<K-G&&k(r,G,K,`Unmount`),vi(i)}Jc(e)}for(e=e.child;e!==null;)Qc(e),e=e.sibling}function Qc(e){var t=_i(),n=yi(),r=xi(),i=Si();switch(e.tag){case 0:case 11:case 15:nc(e,e.return,yy),Zc(e);break;case 22:var a=e.stateNode;a._visibility&Mg&&(a._visibility&=~Mg,Zc(e));break;default:Zc(e)}(e.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(e,G,K,D_,O_),vi(t),bi(n),k_=i,O_=r}function $c(e,t){for(;Cb!==null;){var n=Cb,r=n,i=t,a=_i(),o=yi(),s=xi(),c=Si();switch(r.tag){case 0:case 11:case 15:nc(r,i,yy);break;case 23:case 22:r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool,i!=null&&li(i));break;case 24:ui(r.memoizedState.cache)}if((r.mode&U)!==H&&0<=G&&0<=K&&(k_||.05<D_)&&nr(r,G,K,D_,O_),vi(a),bi(o),k_=c,O_=s,r=n.child,r!==null)r.return=n,Cb=r;else a:for(n=e;Cb!==null;){if(r=Cb,a=r.sibling,o=r.return,Cc(r),r===n){Cb=null;break a}if(a!==null){a.return=o,Cb=a;break a}Cb=o}}}function el(){Nb.forEach(function(e){return e()})}function tl(){var e=typeof IS_REACT_ACT_ENVIRONMENT<`u`?IS_REACT_ACT_ENVIRONMENT:void 0;return e||R.actQueue===null||console.error(`The current testing environment is not configured to support act(...)`),e}function nl(e){if((X&Ib)!==Fb&&Q!==0)return Q&-Q;var t=R.T;return t===null?Ye():(t._updatedFibers||=new Set,t._updatedFibers.add(e),au())}function rl(){if(dx===0)if(!(Q&536870912)||W){var e=Vp;Vp<<=1,!(Vp&3932160)&&(Vp=262144),dx=e}else dx=536870912;return e=uy.current,e!==null&&(e.flags|=32),dx}function il(e,t,n){if($x&&console.error(`useInsertionEffect must not schedule updates.`),Jx&&(Yx=!0),(e===Gb&&($===Jb||$===tx)||e.cancelPendingCommit!==null)&&(fl(e,0),cl(e,Q,dx,!1)),Be(e,n),(X&Ib)!==Fb&&e===Gb){if(vp)switch(t.tag){case 0:case 11:case 15:e=Z&&S(Z)||`Unknown`,nS.has(e)||(nS.add(e),t=S(t)||`Unknown`,console.error("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",t,e,e));break;case 1:tS||=(console.error("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),!0)}}else Ip&&Ke(e,t,n),Yl(t),e===Gb&&((X&Ib)===Fb&&(lx|=n),sx===Hb&&cl(e,Q,dx,!1)),Xl(e)}function al(e,t,n){if((X&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Q!==0&&Z!==null){var r=Z,i=wp();switch(tv){case Yb:case Jb:var a=nv;Cg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Suspended`,a,i,wg,void 0,`primary-light`)):console.timeStamp(`Suspended`,a,i,wg,void 0,`primary-light`));break;case tx:a=nv,Cg&&((r=r._debugTask)?r.run(console.timeStamp.bind(console,`Action`,a,i,wg,void 0,`primary-light`)):console.timeStamp(`Action`,a,i,wg,void 0,`primary-light`));break;default:Cg&&(r=i-nv,3>r||console.timeStamp(`Blocked`,nv,i,wg,void 0,5>r?`primary-light`:10>r?`primary`:100>r?`primary-dark`:`error`))}}a=(n=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Ie(e,t))?xl(e,t):yl(e,t,!0);var o=n;do{if(a===Rb){ix&&!n&&cl(e,t,0,!1),t=$,nv=__(),tv=t;break}else{if(r=wp(),i=e.current.alternate,o&&!sl(i)){Qn(t),i=x_,a=r,!Cg||a<=i||(Sx?Sx.run(console.timeStamp.bind(console,`Teared Render`,i,a,V,B,`error`)):console.timeStamp(`Teared Render`,i,a,V,B,`error`)),dl(t,r),a=yl(e,t,!1),o=!1;continue}if(a===Bb){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){Qn(t),sr(x_,r,t,Sx),dl(t,r),t=s;a:{r=e,a=o,o=px;var c=r.current.memoizedState.isDehydrated;if(c&&(fl(r,s).flags|=256),s=yl(r,s,!1),s!==Bb){if(ax&&!c){r.errorRecoveryDisabledLanes|=a,lx|=a,a=Hb;break a}r=mx,mx=o,r!==null&&(mx===null?mx=r:mx.push.apply(mx,r))}a=s}if(o=!1,a!==Bb)continue;r=wp()}}if(a===zb){Qn(t),sr(x_,r,t,Sx),dl(t,r),fl(e,0),cl(e,t,0,!0);break}a:{switch(n=e,a){case Rb:case zb:throw Error(`Root did not complete. This is a bug in React.`);case Hb:if((t&4194048)!==t)break;case Ub:Qn(t),ir(x_,r,t,Sx),dl(t,r),i=t,i&127?z_=r:i&4194048&&(X_=r),cl(n,t,dx,!rx);break a;case Bb:mx=null;break;case Vb:case Wb:break;default:throw Error(`Unknown root exit status.`)}if(R.actQueue!==null)kl(n,i,t,mx,xx,hx,dx,lx,fx,a,null,null,x_,r);else{if((t&62914560)===t&&(o=gx+vx-wp(),10<o)){if(cl(n,t,dx,!rx),Fe(n,0,!0)!==0)break a;Lx=t,n.timeoutHandle=ZS(ol.bind(null,n,i,mx,xx,hx,t,dx,lx,fx,rx,a,`Throttled`,x_,r),o);break a}ol(n,i,mx,xx,hx,t,dx,lx,fx,rx,a,null,x_,r)}}}break}while(1);Xl(e)}function ol(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=$S;var m=t.subtreeFlags,h=null;if((m&8192||(m&16785408)==16785408)&&(h={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:ln},qc(t,a,h),m=(a&62914560)===a?gx-wp():(a&4194048)===a?_x-wp():0,m=Xd(h,m),m!==null)){Lx=a,e.cancelPendingCommit=m(kl.bind(null,e,t,a,n,r,i,o,s,c,u,h,h.waitingForViewTransition?`Waiting for the previous Animation`:0<h.count?0<h.imgCount?`Suspended on CSS and Images`:`Suspended on CSS`:h.imgCount===1?`Suspended on an Image`:0<h.imgCount?`Suspended on Images`:null,f,p)),cl(e,a,o,!l);return}kl(e,t,a,n,r,i,o,s,c,u,h,d,f,p)}function sl(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(!Kh(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 cl(e,t,n,r){t&=~ux,t&=~lx,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-Lp(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&He(e,n,t)}function ll(){return(X&(Ib|Lb))===Fb?(Zl(0,!1),!1):!0}function ul(){if(Z!==null){if($===Kb)var e=Z.return;else e=Z,Zr(),Aa(e),Gv=null,Kv=0,e=Z;for(;e!==null;)Ys(e.alternate,e),e=e.return;Z=null}}function dl(e,t){e&127&&(A_=t),e&4194048&&(B_=t),e&62914560&&(Z_=t),e&2080374784&&(Q_=t)}function fl(e,t){Cg&&(console.timeStamp(`Blocking Track`,.003,.003,`Blocking`,B,`primary-light`),console.timeStamp(`Transition Track`,.003,.003,`Transition`,B,`primary-light`),console.timeStamp(`Suspense Track`,.003,.003,`Suspense`,B,`primary-light`),console.timeStamp(`Idle Track`,.003,.003,`Idle`,B,`primary-light`));var n=x_;if(x_=__(),Q!==0&&0<n){if(Qn(Q),sx===Vb||sx===Hb)ir(n,x_,t,Sx);else{var r=x_,i=Sx;if(Cg&&!(r<=n)){var a=(t&738197653)===t?`tertiary-dark`:`primary-dark`,o=(t&536870912)===t?`Prewarm`:(t&201326741)===t?`Interrupted Hydration`:`Interrupted Render`;i?i.run(console.timeStamp.bind(console,o,n,r,V,B,a)):console.timeStamp(o,n,r,V,B,a)}}dl(Q,x_)}if(n=Sx,Sx=null,t&127){Sx=M_,i=0<=j_&&j_<A_?A_:j_,r=0<=I_&&I_<A_?A_:I_,a=0<=r?r:0<=i?i:x_,0<=z_?(Qn(2),ar(z_,a,t,n)):$_&127&&(Qn(2),ur(A_,a,ev)),n=i;var s=r,c=L_,l=0<R_,u=N_===y_,d=N_===b_;if(i=x_,r=M_,a=P_,o=F_,Cg){if(V=`Blocking`,0<n?n>i&&(n=i):n=i,0<s?s>n&&(s=n):s=n,c!==null&&n>s){var f=l?`secondary-light`:`warning`;r?r.run(console.timeStamp.bind(console,l?`Consecutive`:`Event: `+c,s,n,V,B,f)):console.timeStamp(l?`Consecutive`:`Event: `+c,s,n,V,B,f)}i>n&&(s=u?`error`:(t&738197653)===t?`tertiary-light`:`primary-light`,u=d?`Promise Resolved`:u?`Cascading Update`:5<i-n?`Update Blocked`:`Update`,d=[],o!=null&&d.push([`Component name`,o]),a!=null&&d.push([`Method name`,a]),n={start:n,end:i,detail:{devtools:{properties:d,track:V,trackGroup:B,color:s}}},r?r.run(performance.measure.bind(performance,u,n)):performance.measure(u,n))}j_=-1.1,N_=0,F_=P_=null,z_=-1.1,R_=I_,I_=-1.1,A_=__()}if(t&4194048&&(Sx=W_,i=0<=V_&&V_<B_?B_:V_,n=0<=H_&&H_<B_?B_:H_,r=0<=q_&&q_<B_?B_:q_,a=0<=r?r:0<=n?n:x_,0<=X_?(Qn(256),ar(X_,a,t,Sx)):$_&4194048&&(Qn(256),ur(B_,a,ev)),d=r,s=J_,c=0<Y_,l=U_===b_,a=x_,r=W_,o=G_,u=K_,Cg&&(V=`Transition`,0<n?n>a&&(n=a):n=a,0<i?i>n&&(i=n):i=n,0<d?d>i&&(d=i):d=i,i>d&&s!==null&&(f=c?`secondary-light`:`warning`,r?r.run(console.timeStamp.bind(console,c?`Consecutive`:`Event: `+s,d,i,V,B,f)):console.timeStamp(c?`Consecutive`:`Event: `+s,d,i,V,B,f)),n>i&&(r?r.run(console.timeStamp.bind(console,`Action`,i,n,V,B,`primary-dark`)):console.timeStamp(`Action`,i,n,V,B,`primary-dark`)),a>n&&(i=l?`Promise Resolved`:5<a-n?`Update Blocked`:`Update`,d=[],u!=null&&d.push([`Component name`,u]),o!=null&&d.push([`Method name`,o]),n={start:n,end:a,detail:{devtools:{properties:d,track:V,trackGroup:B,color:`primary-light`}}},r?r.run(performance.measure.bind(performance,i,n)):performance.measure(i,n))),H_=V_=-1.1,U_=0,X_=-1.1,Y_=q_,q_=-1.1,B_=__()),t&62914560&&$_&62914560&&(Qn(4194304),ur(Z_,x_,ev)),t&2080374784&&$_&2080374784&&(Qn(268435456),ur(Q_,x_,ev)),n=e.timeoutHandle,n!==$S&&(e.timeoutHandle=$S,QS(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Lx=0,ul(),Gb=e,Z=n=wr(e.current,null),Q=t,$=Kb,nx=null,rx=!1,ix=Ie(e,t),ax=!1,sx=Rb,fx=dx=ux=lx=cx=0,mx=px=null,hx=!1,t&8&&(t|=t&32),r=e.entangledLanes,r!==0)for(e=e.entanglements,r&=t;0<r;)i=31-Lp(r),a=1<<i,t|=e[i],r&=~a;return ox=t,dr(),e=fg(),1e3<e-ug&&(R.recentlyCreatedOwnerStacks=0,ug=e),dv.discardPendingWarnings(),n}function pl(e,t){J=null,R.H=zy,R.getCurrentStack=null,vp=!1,_p=null,t===zv||t===Vv?(t=Bi(),$=Yb):t===Bv?(t=Bi(),$=Xb):$=t===sb?ex:typeof t==`object`&&t&&typeof t.then==`function`?Qb:qb,nx=t;var n=Z;n===null?(sx=zb,ss(e,Mr(t,e.current))):n.mode&U&&wi(n)}function ml(){var e=uy.current;return e===null?!0:(Q&4194048)===Q?dy===null:(Q&62914560)===Q||Q&536870912?e===dy:!1}function hl(){var e=R.H;return R.H=zy,e===null?zy:e}function gl(){var e=R.A;return R.A=jb,e}function _l(e){Sx===null&&(Sx=e._debugTask==null?null:e._debugTask)}function vl(){sx=Hb,rx||(Q&4194048)!==Q&&uy.current!==null||(ix=!0),!(cx&134217727)&&!(lx&134217727)||Gb===null||cl(Gb,Q,dx,!1)}function yl(e,t,n){var r=X;X|=Ib;var i=hl(),a=gl();if(Gb!==e||Q!==t){if(Ip){var o=e.memoizedUpdaters;0<o.size&&(ql(e,Q),o.clear()),qe(e,t)}xx=null,fl(e,t)}t=!1,o=sx;a:do try{if($!==Kb&&Z!==null){var s=Z,c=nx;switch($){case ex:ul(),o=Ub;break a;case Yb:case Jb:case tx:case Qb:uy.current===null&&(t=!0);var l=$;if($=Kb,nx=null,El(e,s,c,l),n&&ix){o=Rb;break a}break;default:l=$,$=Kb,nx=null,El(e,s,c,l)}}bl(),o=sx;break}catch(t){pl(e,t)}while(1);return t&&e.shellSuspendCounter++,Zr(),X=r,R.H=i,R.A=a,Z===null&&(Gb=null,Q=0,dr()),o}function bl(){for(;Z!==null;)Cl(Z)}function xl(e,t){var n=X;X|=Ib;var r=hl(),i=gl();if(Gb!==e||Q!==t){if(Ip){var a=e.memoizedUpdaters;0<a.size&&(ql(e,Q),a.clear()),qe(e,t)}xx=null,yx=wp()+bx,fl(e,t)}else ix=Ie(e,t);a:do try{if($!==Kb&&Z!==null)b:switch(t=Z,a=nx,$){case qb:$=Kb,nx=null,El(e,t,a,qb);break;case Jb:case tx:if(Li(a)){$=Kb,nx=null,wl(t);break}t=function(){$!==Jb&&$!==tx||Gb!==e||($=$b),Xl(e)},a.then(t,t);break a;case Yb:$=$b;break a;case Xb:$=Zb;break a;case $b:Li(a)?($=Kb,nx=null,wl(t)):($=Kb,nx=null,El(e,t,a,$b));break;case Zb:var o=null;switch(Z.tag){case 26:o=Z.memoizedState;case 5:case 27:var s=Z;if(o?Jd(o):s.stateNode.complete){$=Kb,nx=null;var c=s.sibling;if(c!==null)Z=c;else{var l=s.return;l===null?Z=null:(Z=l,Dl(l))}break b}break;default:console.error(`Unexpected type of fiber triggered a suspensey commit. This is a bug in React.`)}$=Kb,nx=null,El(e,t,a,Zb);break;case Qb:$=Kb,nx=null,El(e,t,a,Qb);break;case ex:ul(),sx=Ub;break a;default:throw Error(`Unexpected SuspendedReason. This is a bug in React.`)}R.actQueue===null?Sl():bl();break}catch(t){pl(e,t)}while(1);return Zr(),R.H=r,R.A=i,X=n,Z===null?(Gb=null,Q=0,dr(),sx):Rb}function Sl(){for(;Z!==null&&!Sp();)Cl(Z)}function Cl(e){var t=e.alternate;(e.mode&U)===H?t=E(e,Bs,t,e,ox):(Ci(e),t=E(e,Bs,t,e,ox),wi(e)),e.memoizedProps=e.pendingProps,t===null?Dl(e):Z=t}function wl(e){var t=E(e,Tl,e);e.memoizedProps=e.pendingProps,t===null?Dl(e):Z=t}function Tl(e){var t=e.alternate,n=(e.mode&U)!==H;switch(n&&Ci(e),e.tag){case 15:case 0:t=ws(t,e,e.pendingProps,e.type,void 0,Q);break;case 11:t=ws(t,e,e.pendingProps,e.type.render,e.ref,Q);break;case 5:Aa(e);default:Ys(t,e),e=Z=Tr(e,ox),t=Bs(t,e,ox)}return n&&wi(e),t}function El(e,t,n,r){Zr(),Aa(t),Gv=null,Kv=0;var i=t.return;try{if(fs(e,i,t,n,Q)){sx=zb,ss(e,Mr(n,e.current)),Z=null;return}}catch(t){if(i!==null)throw Z=i,t;sx=zb,ss(e,Mr(n,e.current)),Z=null;return}t.flags&32768?(W||r===qb?e=!0:ix||Q&536870912?e=!1:(rx=e=!0,(r===Jb||r===tx||r===Yb||r===Qb)&&(r=uy.current,r!==null&&r.tag===13&&(r.flags|=16384))),Ol(t,e)):Dl(t)}function Dl(e){var t=e;do{if(t.flags&32768){Ol(t,rx);return}var n=t.alternate;if(e=t.return,Ci(t),n=E(t,qs,n,t,ox),(t.mode&U)!==H&&Ti(t),n!==null){Z=n;return}if(t=t.sibling,t!==null){Z=t;return}Z=t=e}while(t!==null);sx===Rb&&(sx=Wb)}function Ol(e,t){do{var n=Js(e.alternate,e);if(n!==null){n.flags&=32767,Z=n;return}if((e.mode&U)!==H){Ti(e),n=e.actualDuration;for(var r=e.child;r!==null;)n+=r.actualDuration,r=r.sibling;e.actualDuration=n}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Z=e;return}Z=e=n}while(e!==null);sx=Ub,Z=null}function kl(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.cancelPendingCommit=null;do Fl();while(Px!==Ox);if(dv.flushLegacyContextWarning(),dv.flushPendingUnsafeLifecycleWarnings(),(X&(Ib|Lb))!==Fb)throw Error(`Should not already be working.`);if(Qn(n),l===Bb?sr(f,p,n,Sx):r===null?rr(f,p,n,Sx):or(f,p,n,r,t!==null&&t.alternate!==null&&t.alternate.memoizedState.isDehydrated&&(t.flags&256)!=0,Sx),t!==null){if(n===0&&console.error(`finishedLanes should not be empty during a commit. This is a bug in React.`),t===e.current)throw Error(`Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.`);if(a=t.lanes|t.childLanes,a|=Fg,Ve(e,n,a,o,s,c),e===Gb&&(Z=Gb=null,Q=0),Ix=t,Fx=e,Lx=n,Rx=a,Bx=i,Vx=r,zx=p,Hx=d,Ux=wx,Wx=null,t.actualDuration!==0||t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Jl(Op,function(){return XS=window.event,Ux===wx&&(Ux=Ex),Il(),null})):(e.callbackNode=null,e.callbackPriority=0),w_=null,S_=__(),d!==null&&cr(p,S_,d,Sx),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=R.T,R.T=null,i=z.p,z.p=Up,o=X,X|=Lb;try{xc(e,t,n)}finally{X=o,z.p=i,R.T=r}}Px=kx,Al(),jl(),Ml()}}function Al(){if(Px===kx){Px=Ox;var e=Fx,t=Ix,n=Lx,r=(t.flags&13878)!=0;if(t.subtreeFlags&13878||r){r=R.T,R.T=null;var i=z.p;z.p=Up;var a=X;X|=Lb;try{wb=n,Tb=e,gi(),jc(t,e),Tb=wb=null,n=qS;var o=Hn(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Vn(s.ownerDocument.documentElement,s)){if(c!==null&&Un(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 _=Bn(s,h),v=Bn(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}}LC=!!KS,qS=KS=null}finally{X=a,z.p=i,R.T=r}}e.current=t,Px=Ax}}function jl(){if(Px===Ax){Px=Ox;var e=Wx;if(e!==null){S_=__();var t=C_,n=S_;!Cg||n<=t||(ev?ev.run(console.timeStamp.bind(console,e,t,n,V,B,`secondary-light`)):console.timeStamp(e,t,n,V,B,`secondary-light`))}e=Fx,t=Ix,n=Lx;var r=(t.flags&8772)!=0;if(t.subtreeFlags&8772||r){r=R.T,R.T=null;var i=z.p;z.p=Up;var a=X;X|=Lb;try{wb=n,Tb=e,gi(),Sc(e,t.alternate,t),Tb=wb=null}finally{X=a,z.p=i,R.T=r}}e=zx,t=Hx,C_=__(),e=t===null?e:S_,t=C_,n=Ux===Tx,r=Sx,w_===null?!Cg||t<=e||(r?r.run(console.timeStamp.bind(console,n?`Commit Interrupted View Transition`:`Commit`,e,t,V,B,n?`error`:`secondary-dark`)):console.timeStamp(n?`Commit Interrupted View Transition`:`Commit`,e,t,V,B,n?`error`:`secondary-dark`)):lr(e,t,w_,!1,r),Px=jx}}function Ml(){if(Px===Mx||Px===jx){if(Px===Mx){var e=C_;C_=__();var t=C_,n=Ux===Tx;!Cg||t<=e||(ev?ev.run(console.timeStamp.bind(console,n?`Interrupted View Transition`:`Starting Animation`,e,t,V,B,n?`error`:`secondary-light`)):console.timeStamp(n?`Interrupted View Transition`:`Starting Animation`,e,t,V,B,n?` error`:`secondary-light`)),Ux!==Tx&&(Ux=Dx)}Px=Ox,Cp(),e=Fx;var r=Ix;t=Lx,n=Vx;var i=r.actualDuration!==0||(r.subtreeFlags&10256)!=0||(r.flags&10256)!=0;i?Px=Nx:(Px=Ox,Ix=Fx=null,Pl(e,e.pendingLanes),Zx=0,Qx=null);var a=e.pendingLanes;if(a===0&&(Cx=null),i||Gl(e),a=Je(t),r=r.stateNode,Pp&&typeof Pp.onCommitFiberRoot==`function`)try{var o=(r.current.flags&128)==128;switch(a){case Up:var s=Ep;break;case Wp:s=Dp;break;case Gp:s=Op;break;case Kp:s=Ap;break;default:s=Op}Pp.onCommitFiberRoot(Np,r,s,o)}catch(e){Fp||(Fp=!0,console.error(`React instrumentation encountered an error: %o`,e))}if(Ip&&e.memoizedUpdaters.clear(),el(),n!==null){o=R.T,s=z.p,z.p=Up,R.T=null;try{var c=e.onRecoverableError;for(r=0;r<n.length;r++){var l=n[r],u=Nl(l.stack);E(l.source,c,l.value,u)}}finally{R.T=o,z.p=s}}Lx&3&&Fl(),Xl(e),a=e.pendingLanes,t&261930&&a&42?(iv=!0,e===qx?Kx++:(Kx=0,qx=e)):Kx=0,i||dl(t,C_),Zl(0,!1)}}function Nl(e){return e={componentStack:e},Object.defineProperty(e,"digest",{get:function(){console.error(`You are accessing "digest" from the errorInfo object passed to onRecoverableError. This property is no longer provided as part of errorInfo but can be accessed as a property of the Error instance itself.`)}}),e}function Pl(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ui(t)))}function Fl(){return Al(),jl(),Ml(),Il()}function Il(){if(Px!==Nx)return!1;var e=Fx,t=Rx;Rx=0;var n=Je(Lx),r=Gp===0||Gp>n?Gp:n;n=R.T;var i=z.p;try{z.p=r,R.T=null;var a=Bx;Bx=null,r=Fx;var o=Lx;if(Px=Ox,Ix=Fx=null,Lx=0,(X&(Ib|Lb))!==Fb)throw Error(`Cannot flush passive effects while already rendering.`);Qn(o),Jx=!0,Yx=!1;var s=0;if(w_=null,s=wp(),Ux===Dx)ur(C_,s,ev);else{var c=C_,l=s,u=Ux===Ex;!Cg||l<=c||(Sx?Sx.run(console.timeStamp.bind(console,u?`Waiting for Paint`:`Waiting`,c,l,V,B,`secondary-light`)):console.timeStamp(u?`Waiting for Paint`:`Waiting`,c,l,V,B,`secondary-light`))}c=X,X|=Lb;var d=r.current;gi(),Xc(d);var f=r.current;d=zx,gi(),Hc(r,f,o,a,d),Gl(r),X=c;var p=wp();if(f=s,d=Sx,w_===null?!Cg||p<=f||(d?d.run(console.timeStamp.bind(console,`Remaining Effects`,f,p,V,B,`secondary-dark`)):console.timeStamp(`Remaining Effects`,f,p,V,B,`secondary-dark`)):lr(f,p,w_,!0,d),dl(o,p),Zl(0,!1),Yx?r===Qx?Zx++:(Zx=0,Qx=r):Zx=0,Yx=Jx=!1,Pp&&typeof Pp.onPostCommitFiberRoot==`function`)try{Pp.onPostCommitFiberRoot(Np,r)}catch(e){Fp||(Fp=!0,console.error(`React instrumentation encountered an error: %o`,e))}var m=r.current.stateNode;return m.effectDuration=0,m.passiveEffectDuration=0,!0}finally{z.p=i,R.T=n,Pl(e,t)}}function Ll(e,t,n){t=Mr(n,t),Di(t),t=ls(e.stateNode,t,2),e=ra(e,t,2),e!==null&&(Be(e,2),Xl(e))}function F(e,t,n){if($x=!1,e.tag===3)Ll(e,e,n);else{for(;t!==null;){if(t.tag===3){Ll(t,e,n);return}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(Cx===null||!Cx.has(r))){e=Mr(n,e),Di(e),n=us(2),r=ra(t,n,2),r!==null&&(ds(n,r,t,e),Be(r,2),Xl(r));return}}t=t.return}console.error(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Potential causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
158
+
159
+ Error message:
160
+
161
+ %s`,n)}}function Rl(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Pb;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)||(ax=!0,i.add(n),r=zl.bind(null,e,t,n),Ip&&ql(e,n),t.then(r,r))}function zl(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,n&127?0>j_&&(A_=j_=__(),M_=v_(`Promise Resolved`),N_=b_):n&4194048&&0>H_&&(B_=H_=__(),W_=v_(`Promise Resolved`),U_=b_),tl()&&R.actQueue===null&&console.error(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
162
+
163
+ When testing, code that resolves suspended data should be wrapped into act(...):
164
+
165
+ act(() => {
166
+ /* finish loading suspended data */
167
+ });
168
+ /* assert on the output */
169
+
170
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`),Gb===e&&(Q&n)===n&&(sx===Hb||sx===Vb&&(Q&62914560)===Q&&wp()-gx<vx?(X&Ib)===Fb&&fl(e,0):ux|=n,fx===Q&&(fx=0)),Xl(e)}function Bl(e,t){t===0&&(t=Re()),e=mr(e,t),e!==null&&(Be(e,t),Xl(e))}function Vl(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Bl(e,n)}function Hl(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(`Pinged unknown suspense boundary type. This is probably a bug in React.`)}r!==null&&r.delete(t),Bl(e,n)}function Ul(e,t,n){if(t.subtreeFlags&67117056)for(t=t.child;t!==null;){var r=e,i=t,a=i.type===Lf;a=n||a,i.tag===22?i.memoizedState===null&&(a&&i.flags&8192?E(i,Wl,r,i):i.subtreeFlags&67108864&&E(i,Ul,r,i,a)):i.flags&67108864?a&&E(i,Wl,r,i):Ul(r,i,a),t=t.sibling}}function Wl(e,t){Me(!0);try{Fc(t),Qc(t),Lc(e,t.alternate,t,!1),Wc(e,t,0,null,!1,0)}finally{Me(!1)}}function Gl(e){var t=!0;e.current.mode&(Bg|Vg)||(t=!1),Ul(e,e.current,t)}function Kl(e){if((X&Ib)===Fb){var t=e.tag;if(t===3||t===1||t===0||t===11||t===14||t===15){if(t=S(e)||`ReactComponent`,eS!==null){if(eS.has(t))return;eS.add(t)}else eS=new Set([t]);E(e,function(){console.error(`Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously tries to update the component. Move this work to useEffect instead.`)})}}}function ql(e,t){Ip&&e.memoizedUpdaters.forEach(function(n){Ke(e,n,t)})}function Jl(e,t){var n=R.actQueue;return n===null?bp(e,t):(n.push(t),rS)}function Yl(e){tl()&&R.actQueue===null&&E(e,function(){console.error(`An update to %s inside a test was not wrapped in act(...).
171
+
172
+ When testing, code that causes React state updates should be wrapped into act(...):
173
+
174
+ act(() => {
175
+ /* fire events that update state */
176
+ });
177
+ /* assert on the output */
178
+
179
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,S(e))})}function Xl(e){e!==aS&&e.next===null&&(aS===null?iS=aS=e:aS=aS.next=e),cS=!0,R.actQueue===null?oS||(oS=!0,iu()):sS||(sS=!0,iu())}function Zl(e,t){if(!lS&&cS){lS=!0;do for(var n=!1,r=iS;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-Lp(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,nu(r,a))}else a=Q,a=Fe(r,r===Gb?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==$S),!(a&3)||Ie(r,a)||(n=!0,nu(r,a));r=r.next}while(n);lS=!1}}function Ql(){XS=window.event,$l()}function $l(){cS=sS=oS=!1;var e=0;uS!==0&&Ku()&&(e=uS);for(var t=wp(),n=null,r=iS;r!==null;){var i=r.next,a=eu(r,t);a===0?(r.next=null,n===null?iS=i:n.next=i,i===null&&(aS=n)):(n=r,(e!==0||a&3)&&(cS=!0)),r=i}Px!==Ox&&Px!==Nx||Zl(e,!1),uS!==0&&(uS=0)}function eu(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-Lp(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Le(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Gb,n=Q,n=Fe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r=e.callbackNode,n===0||e===t&&($===Jb||$===tx)||e.cancelPendingCommit!==null)return r!==null&&ru(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Ie(e,n)){if(t=n&-n,t!==e.callbackPriority||R.actQueue!==null&&r!==dS)ru(r);else return t;switch(Je(n)){case Up:case Wp:n=Dp;break;case Gp:n=Op;break;case Kp:n=Ap;break;default:n=Op}return r=tu.bind(null,e),R.actQueue===null?n=bp(n,r):(R.actQueue.push(r),n=dS),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&ru(r),e.callbackPriority=2,e.callbackNode=null,2}function tu(e,t){if(iv=rv=!1,XS=window.event,Px!==Ox&&Px!==Nx)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Ux===wx&&(Ux=Ex),Fl()&&e.callbackNode!==n)return null;var r=Q;return r=Fe(e,e===Gb?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==$S),r===0?null:(al(e,r,t),eu(e,wp()),e.callbackNode!=null&&e.callbackNode===n?tu.bind(null,e):null)}function nu(e,t){if(Fl())return null;rv=iv,iv=!1,al(e,t,!0)}function ru(e){e!==dS&&e!==null&&xp(e)}function iu(){R.actQueue!==null&&R.actQueue.push(function(){return $l(),null}),tC(function(){(X&(Ib|Lb))===Fb?$l():bp(Ep,Ql)})}function au(){if(uS===0){var e=sv;e===0&&(e=Bp,Bp<<=1,!(Bp&261888)&&(Bp=256)),uS=e}return uS}function ou(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:(D(e,`action`),cn(``+e))}function su(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 cu(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=ou((i[Yp]||null).action),o=r.submitter;o&&(t=(t=o[Yp]||null)?ou(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new lh(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(uS!==0){var e=o?su(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a};Object.freeze(t),Io(n,t,null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?su(i,o):new FormData(i),t={pending:!0,data:e,method:i.method,action:a},Object.freeze(t),Io(n,t,a,e))},currentTarget:i}]})}}function lu(e,t,n){e.currentTarget=n;try{t(e)}catch(e){mg(e)}e.currentTarget=null}function uu(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n];a:{var i=void 0,a=r.event;if(r=r.listeners,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!==i&&a.isPropagationStopped())break a;c===null?lu(a,s,l):E(c,lu,a,s,l),i=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&a.isPropagationStopped())break a;c===null?lu(a,s,l):E(c,lu,a,s,l),i=c}}}}function I(e,t){pS.has(e)||console.error(`Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.`,e);var n=t[Zp];n===void 0&&(n=t[Zp]=new Set);var r=e+`__bubble`;n.has(r)||(pu(t,e,2,!1),n.add(r))}function du(e,t,n){pS.has(e)&&!t&&console.error(`Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.`,e);var r=0;t&&(r|=4),pu(n,e,r,t)}function fu(e){if(!e[mS]){e[mS]=!0,nm.forEach(function(t){t!==`selectionchange`&&(pS.has(t)||du(t,!1,e),du(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[mS]||(t[mS]=!0,du(`selectionchange`,!1,t))}}function pu(e,t,n,r){switch(hf(t)){case Up:var i=uf;break;case Wp:i=df;break;default:i=ff}n=i.bind(null,t,n,e),i=void 0,!rh||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 mu(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&o.stateNode.containerInfo===i)return;o=o.return}for(;s!==null;){if(o=Qe(s),o===null)return;if(c=o.tag,c===5||c===6||c===26||c===27){r=a=o;continue a}s=s.parentNode}}r=r.return}fn(function(){var r=a,i=un(n),o=[];a:{var s=cg.get(e);if(s!==void 0){var c=lh,l=e;switch(e){case`keypress`:if(hn(n)===0)break a;case`keydown`:case`keyup`:c=Eh;break;case`focusin`:l=`focus`,c=vh;break;case`focusout`:l=`blur`,c=vh;break;case`beforeblur`:case`afterblur`:c=vh;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`:c=gh;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=_h;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Oh;break;case tg:case ng:case rg:c=yh;break;case sg:c=kh;break;case`scroll`:case`scrollend`:c=dh;break;case`wheel`:c=Ah;break;case`copy`:case`cut`:case`paste`:c=bh;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Dh;break;case`toggle`:case`beforetoggle`:c=jh}var u=(t&4)!=0,d=!u&&(e===`scroll`||e===`scrollend`),f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){var h=p;if(m=h.stateNode,h=h.tag,h!==5&&h!==26&&h!==27||m===null||f===null||(h=pn(p,f),h!=null&&u.push(hu(p,h,m))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Qm&&(l=n.relatedTarget||n.fromElement)&&(Qe(l)||l[Xp]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Qe(l):null,l!==null&&(d=ee(l),u=l.tag,l!==d||u!==5&&u!==27&&u!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=gh,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Dh,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:et(c),m=l==null?s:et(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Qe(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=_u,f=c,p=l,m=0,h=f;h;h=u(h))m++;h=0;for(var g=p;g;g=u(g))h++;for(;0<m-h;)f=u(f),m--;for(;0<h-m;)p=u(p),h--;for(;m--;){if(f===p||p!==null&&f===p.alternate){u=f;break b}f=u(f),p=u(p)}u=null}else u=null;c!==null&&vu(o,s,c,u,!1),l!==null&&d!==null&&vu(o,d,l,u,!0)}}a:{if(s=r?et(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var _=An;else if(Tn(s))if(Gh)_=In;else{_=Pn;var v=Nn}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&tn(r.elementType)&&(_=An):_=Fn;if(_&&=_(e,r)){Dn(o,_,n,i);break a}v&&v(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&xt(s,`number`,s.value)}switch(v=r?et(r):window,e){case`focusin`:(Tn(v)||v.contentEditable===`true`)&&(Jh=v,Yh=r,Xh=null);break;case`focusout`:Xh=Yh=Jh=null;break;case`mousedown`:Zh=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zh=!1,Wn(o,n,i);break;case`selectionchange`:if(qh)break;case`keydown`:case`keyup`:Wn(o,n,i)}var y;if(Ph)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else Vh?xn(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===Nh&&(b=`onCompositionStart`);b&&(Lh&&n.locale!==`ko`&&(Vh||b!==`onCompositionStart`?b===`onCompositionEnd`&&Vh&&(y=mn()):(ah=i,oh=`value`in ah?ah.value:ah.textContent,Vh=!0)),v=gu(r,b),0<v.length&&(b=new xh(b,e,null,n,i),o.push({event:b,listeners:v}),y?b.data=y:(y=Sn(n),y!==null&&(b.data=y)))),(y=Ih?Cn(e,n):wn(e,n))&&(b=gu(r,`onBeforeInput`),0<b.length&&(v=new Sh(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:v,listeners:b}),v.data=y)),cu(o,e,r,n,i)}uu(o,t)})}function hu(e,t,n){return{instance:e,listener:t,currentTarget:n}}function gu(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=pn(e,n),i!=null&&r.unshift(hu(e,i,a)),i=pn(e,t),i!=null&&r.push(hu(e,i,a))),e.tag===3)return r;e=e.return}return[]}function _u(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function vu(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=pn(n,a),l!=null&&o.unshift(hu(n,l,c))):i||(l=pn(n,a),l!=null&&o.push(hu(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}function yu(e,t){an(e,t),e!==`input`&&e!==`textarea`&&e!==`select`||t==null||t.value!==null||Gm||(Gm=!0,e===`select`&&t.multiple?console.error("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",e):console.error("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",e));var n={registrationNameDependencies:rm,possibleRegistrationNames:im};tn(e)||typeof t.is==`string`||sn(e,t,n),t.contentEditable&&!t.suppressContentEditableWarning&&t.children!=null&&console.error("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional.")}function bu(e,t,n,r){t!==n&&(n=wu(n),wu(t)!==n&&(r[e]=t))}function xu(e,t,n){t.forEach(function(t){n[Au(t)]=t===`style`?ju(e):e.getAttribute(t)})}function Su(e,t){!1===t?console.error("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",e,e,e):console.error("Expected `%s` listener to be a function, instead got a value of `%s` type.",e,typeof t)}function Cu(e,t){return e=e.namespaceURI===Lm||e.namespaceURI===Rm?e.ownerDocument.createElementNS(e.namespaceURI,e.tagName):e.ownerDocument.createElement(e.tagName),e.innerHTML=t,e.innerHTML}function wu(e){return De(e)&&(console.error(`The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.`,Ee(e)),Oe(e)),(typeof e==`string`?e:``+e).replace(CS,`
180
+ `).replace(wS,``)}function Tu(e,t){return t=wu(t),wu(e)===t}function Eu(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?(Xt(r,t,!1),t===`body`||t===`textarea`&&r===``||Zt(e,r)):(typeof r==`number`||typeof r==`bigint`)&&(Xt(``+r,t,!1),t!==`body`&&Zt(e,``+r));break;case`className`:lt(e,`class`,r);break;case`tabIndex`:lt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:lt(e,n,r);break;case`style`:en(e,r,a);break;case`data`:if(t!==`object`){lt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){console.error(n===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,n,n),e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}D(r,n),r=cn(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(r!=null&&(t===`form`?n===`formAction`?console.error(`You can only pass the formAction prop to <input> or <button>. Use the action prop on <form>.`):typeof r==`function`&&(i.encType==null&&i.method==null||bS||(bS=!0,console.error(`Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.`)),i.target==null||yS||(yS=!0,console.error(`Cannot specify a target for a form that specifies a function as the action. The function will always be executed in the same window.`))):t===`input`||t===`button`?n===`action`?console.error(`You can only pass the action prop to <form>. Use the formAction prop on <input> or <button>.`):t!==`input`||i.type===`submit`||i.type===`image`||_S?t!==`button`||i.type==null||i.type===`submit`||_S?typeof r==`function`&&(i.name==null||vS||(vS=!0,console.error(`Cannot specify a "name" prop for a button that specifies a function as a formAction. React needs it to encode which action should be invoked. It will get overridden.`)),i.formEncType==null&&i.formMethod==null||bS||(bS=!0,console.error(`Cannot specify a formEncType or formMethod for a button that specifies a function as a formAction. React provides those automatically. They will get overridden.`)),i.formTarget==null||yS||(yS=!0,console.error(`Cannot specify a formTarget for a button that specifies a function as a formAction. The function will always be executed in the same window.`))):(_S=!0,console.error(`A button can only specify a formAction along with type="submit" or no type.`)):(_S=!0,console.error(`An input can only specify a formAction along with type="submit" or type="image".`)):console.error(n===`action`?`You can only pass the action prop to <form>.`:`You can only pass the formAction prop to <input> or <button>.`)),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}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&Eu(e,t,`name`,i.name,i,null),Eu(e,t,`formEncType`,i.formEncType,i,null),Eu(e,t,`formMethod`,i.formMethod,i,null),Eu(e,t,`formTarget`,i.formTarget,i,null)):(Eu(e,t,`encType`,i.encType,i,null),Eu(e,t,`method`,i.method,i,null),Eu(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}D(r,n),r=cn(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(typeof r!=`function`&&Su(n,r),e.onclick=ln);break;case`onScroll`:r!=null&&(typeof r!=`function`&&Su(n,r),I(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&Su(n,r),I(`scrollend`,e));break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");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}D(r,n),n=cn(``+r),e.setAttributeNS(TS,`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`?(D(r,n),e.setAttribute(n,``+r)):e.removeAttribute(n);break;case`inert`:r!==``||SS[n]||(SS[n]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",n));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`?(D(r,n),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?(D(r,n),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):(D(r,n),e.setAttribute(n,r));break;case`popover`:I(`beforetoggle`,e),I(`toggle`,e),ct(e,`popover`,r);break;case`xlinkActuate`:ut(e,TS,`xlink:actuate`,r);break;case`xlinkArcrole`:ut(e,TS,`xlink:arcrole`,r);break;case`xlinkRole`:ut(e,TS,`xlink:role`,r);break;case`xlinkShow`:ut(e,TS,`xlink:show`,r);break;case`xlinkTitle`:ut(e,TS,`xlink:title`,r);break;case`xlinkType`:ut(e,TS,`xlink:type`,r);break;case`xmlBase`:ut(e,ES,`xml:base`,r);break;case`xmlLang`:ut(e,ES,`xml:lang`,r);break;case`xmlSpace`:ut(e,ES,`xml:space`,r);break;case`is`:a!=null&&console.error(`Cannot update the "is" prop after it has been initialized.`),ct(e,`is`,r);break;case`innerText`:case`textContent`:break;case`popoverTarget`:xS||typeof r!=`object`||!r||(xS=!0,console.error("The `popoverTarget` prop expects the ID of an Element as a string. Received %s instead.",r));default:!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`?(n=nn(n),ct(e,n,r)):rm.hasOwnProperty(n)&&r!=null&&typeof r!=`function`&&Su(n,r)}}function Du(e,t,n,r,i,a){switch(n){case`style`:en(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://react.dev/link/dangerously-set-inner-html for more information.");if(n=r.__html,n!=null){if(i.children!=null)throw Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");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&&(typeof r!=`function`&&Su(n,r),I(`scroll`,e));break;case`onScrollEnd`:r!=null&&(typeof r!=`function`&&Su(n,r),I(`scrollend`,e));break;case`onClick`:r!=null&&(typeof r!=`function`&&Su(n,r),e.onclick=ln);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(rm.hasOwnProperty(n))r!=null&&typeof r!=`function`&&Su(n,r);else a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[Yp]||null,a=a==null?null:a[n],typeof a==`function`&&e.removeEventListener(t,a,i),typeof r==`function`)){typeof a!=`function`&&a!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i);break a}n in e?e[n]=r:!0===r?e.setAttribute(n,``):ct(e,n,r)}}}function Ou(e,t,n){switch(yu(t,n),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:I(`error`,e),I(`load`,e);var r=!1,i=!1,a;for(a in n)if(n.hasOwnProperty(a)){var o=n[a];if(o!=null)switch(a){case`src`:r=!0;break;case`srcSet`:i=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Eu(e,t,a,o,n,null)}}i&&Eu(e,t,`srcSet`,n.srcSet,n,null),r&&Eu(e,t,`src`,n.src,n,null);return;case`input`:at(`input`,n),I(`invalid`,e);var s=a=o=i=null,c=null,l=null;for(r in n)if(n.hasOwnProperty(r)){var u=n[r];if(u!=null)switch(r){case`name`:i=u;break;case`type`:o=u;break;case`checked`:c=u;break;case`defaultChecked`:l=u;break;case`value`:a=u;break;case`defaultValue`:s=u;break;case`children`:case`dangerouslySetInnerHTML`:if(u!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Eu(e,t,r,u,n,null)}}vt(e,n),bt(e,a,s,c,l,o,i,!1);return;case`select`:for(i in at(`select`,n),I(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(s=n[i],s!=null))switch(i){case`value`:a=s;break;case`defaultValue`:o=s;break;case`multiple`:r=s;default:Eu(e,t,i,s,n,null)}Tt(e,n),t=a,n=o,e.multiple=!!r,t==null?n!=null&&wt(e,!!r,n,!0):wt(e,!!r,t,!1);return;case`textarea`:for(o in at(`textarea`,n),I(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(s=n[o],s!=null))switch(o){case`value`:r=s;break;case`defaultValue`:i=s;break;case`children`:a=s;break;case`dangerouslySetInnerHTML`:if(s!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:Eu(e,t,o,s,n,null)}Et(e,n),Ot(e,r,i,a);return;case`option`:for(c in St(e,n),n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:Eu(e,t,c,r,n,null)}return;case`dialog`:I(`beforetoggle`,e),I(`toggle`,e),I(`cancel`,e),I(`close`,e);break;case`iframe`:case`object`:I(`load`,e);break;case`video`:case`audio`:for(r=0;r<fS.length;r++)I(fS[r],e);break;case`image`:I(`error`,e),I(`load`,e);break;case`details`:I(`toggle`,e);break;case`embed`:case`source`:case`link`:I(`error`,e),I(`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(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");default:Eu(e,t,l,r,n,null)}return;default:if(tn(t)){for(u in n)n.hasOwnProperty(u)&&(r=n[u],r!==void 0&&Du(e,t,u,r,n,void 0));return}}for(s in n)n.hasOwnProperty(s)&&(r=n[s],r!=null&&Eu(e,t,s,r,n,null))}function ku(e,t,n,r){switch(yu(t,r),t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,s=null,c=null,l=null,u=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case`checked`:break;case`value`:break;case`defaultValue`:c=d;default:r.hasOwnProperty(p)||Eu(e,t,p,null,r,d)}}for(var f in r){var p=r[f];if(d=n[f],r.hasOwnProperty(f)&&(p!=null||d!=null))switch(f){case`type`:a=p;break;case`name`:i=p;break;case`checked`:l=p;break;case`defaultChecked`:u=p;break;case`value`:o=p;break;case`defaultValue`:s=p;break;case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:p!==d&&Eu(e,t,f,p,r,d)}}t=n.type===`checkbox`||n.type===`radio`?n.checked!=null:n.value!=null,r=r.type===`checkbox`||r.type===`radio`?r.checked!=null:r.value!=null,t||!r||gS||(console.error(`A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),gS=!0),!t||r||hS||(console.error(`A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://react.dev/link/controlled-components`),hS=!0),yt(e,o,s,c,l,u,a,i);return;case`select`:for(a in p=o=s=f=null,n)if(c=n[a],n.hasOwnProperty(a)&&c!=null)switch(a){case`value`:break;case`multiple`:p=c;default:r.hasOwnProperty(a)||Eu(e,t,a,null,r,c)}for(i in r)if(a=r[i],c=n[i],r.hasOwnProperty(i)&&(a!=null||c!=null))switch(i){case`value`:f=a;break;case`defaultValue`:s=a;break;case`multiple`:o=a;default:a!==c&&Eu(e,t,i,a,r,c)}r=s,t=o,n=p,f==null?!!n!=!!t&&(r==null?wt(e,!!t,t?[]:``,!1):wt(e,!!t,r,!0)):wt(e,!!t,f,!1);return;case`textarea`:for(s in p=f=null,n)if(i=n[s],n.hasOwnProperty(s)&&i!=null&&!r.hasOwnProperty(s))switch(s){case`value`:break;case`children`:break;default:Eu(e,t,s,null,r,i)}for(o in r)if(i=r[o],a=n[o],r.hasOwnProperty(o)&&(i!=null||a!=null))switch(o){case`value`:f=i;break;case`defaultValue`:p=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");break;default:i!==a&&Eu(e,t,o,i,r,a)}Dt(e,f,p);return;case`option`:for(var m in n)if(f=n[m],n.hasOwnProperty(m)&&f!=null&&!r.hasOwnProperty(m))switch(m){case`selected`:e.selected=!1;break;default:Eu(e,t,m,null,r,f)}for(c in r)if(f=r[c],p=n[c],r.hasOwnProperty(c)&&f!==p&&(f!=null||p!=null))switch(c){case`selected`:e.selected=f&&typeof f!=`function`&&typeof f!=`symbol`;break;default:Eu(e,t,c,f,r,p)}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 h in n)f=n[h],n.hasOwnProperty(h)&&f!=null&&!r.hasOwnProperty(h)&&Eu(e,t,h,null,r,f);for(l in r)if(f=r[l],p=n[l],r.hasOwnProperty(l)&&f!==p&&(f!=null||p!=null))switch(l){case`children`:case`dangerouslySetInnerHTML`:if(f!=null)throw Error(t+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");break;default:Eu(e,t,l,f,r,p)}return;default:if(tn(t)){for(var g in n)f=n[g],n.hasOwnProperty(g)&&f!==void 0&&!r.hasOwnProperty(g)&&Du(e,t,g,void 0,r,f);for(u in r)f=r[u],p=n[u],!r.hasOwnProperty(u)||f===p||f===void 0&&p===void 0||Du(e,t,u,f,r,p);return}}for(var _ in n)f=n[_],n.hasOwnProperty(_)&&f!=null&&!r.hasOwnProperty(_)&&Eu(e,t,_,null,r,f);for(d in r)f=r[d],p=n[d],!r.hasOwnProperty(d)||f===p||f==null&&p==null||Eu(e,t,d,f,r,p)}function Au(e){switch(e){case`class`:return`className`;case`for`:return`htmlFor`;default:return e}}function ju(e){var t={};e=e.style;for(var n=0;n<e.length;n++){var r=e[n];t[r]=e.getPropertyValue(r)}return t}function Mu(e,t,n){if(t!=null&&typeof t!=`object`)console.error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.");else{var r,i=r=``,a;for(a in t)if(t.hasOwnProperty(a)){var o=t[a];o!=null&&typeof o!=`boolean`&&o!==``&&(a.indexOf(`--`)===0?(ke(o,a),r+=i+a+`:`+(``+o).trim()):typeof o!=`number`||o===0||Im.has(a)?(ke(o,a),r+=i+a.replace(Em,`-$1`).toLowerCase().replace(Dm,`-ms-`)+`:`+(``+o).trim()):r+=i+a.replace(Em,`-$1`).toLowerCase().replace(Dm,`-ms-`)+`:`+o+`px`,i=`;`)}r||=null,t=e.getAttribute(`style`),t!==r&&(r=wu(r),wu(t)!==r&&(n.style=ju(e)))}}function Nu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(D(r,t),e===``+r)return}bu(t,e,r,a)}function Pu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null){switch(typeof r){case`function`:case`symbol`:return}if(!r)return}else switch(typeof r){case`function`:case`symbol`:break;default:if(r)return}bu(t,e,r,a)}function Fu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:break;default:if(D(r,n),e===``+r)return}bu(t,e,r,a)}function Iu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return;default:if(isNaN(r))return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(!isNaN(r)&&(D(r,t),e===``+r))return}bu(t,e,r,a)}function Lu(e,t,n,r,i,a){if(i.delete(n),e=e.getAttribute(n),e===null)switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:return}else if(r!=null)switch(typeof r){case`function`:case`symbol`:case`boolean`:break;default:if(D(r,t),n=cn(``+r),e===n)return}bu(t,e,r,a)}function Ru(e,t,n,r){for(var i={},a=new Set,o=e.attributes,s=0;s<o.length;s++)switch(o[s].name.toLowerCase()){case`value`:break;case`checked`:break;case`selected`:break;default:a.add(o[s].name)}if(tn(t)){for(var c in n)if(n.hasOwnProperty(c)){var l=n[c];if(l!=null){if(rm.hasOwnProperty(c))typeof l!=`function`&&Su(c,l);else if(!0!==n.suppressHydrationWarning)switch(c){case`children`:typeof l!=`string`&&typeof l!=`number`||bu(`children`,e.textContent,l,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,l=l?l.__html:void 0,l!=null&&(l=Cu(e,l),bu(c,o,l,i));continue;case`style`:a.delete(c),Mu(e,l,i);continue;case`offsetParent`:case`offsetTop`:case`offsetLeft`:case`offsetWidth`:case`offsetHeight`:case`isContentEditable`:case`outerText`:case`outerHTML`:a.delete(c.toLowerCase()),console.error("Assignment to read-only property will result in a no-op: `%s`",c);continue;case`className`:a.delete(`class`),o=st(e,`class`,l),bu(`className`,o,l,i);continue;default:r.context===US&&t!==`svg`&&t!==`math`?a.delete(c.toLowerCase()):a.delete(c),o=st(e,c,l),bu(c,o,l,i)}}}}else for(l in n)if(n.hasOwnProperty(l)&&(c=n[l],c!=null)){if(rm.hasOwnProperty(l))typeof c!=`function`&&Su(l,c);else if(!0!==n.suppressHydrationWarning)switch(l){case`children`:typeof c!=`string`&&typeof c!=`number`||bu(`children`,e.textContent,c,i);continue;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`value`:case`checked`:case`selected`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:continue;case`dangerouslySetInnerHTML`:o=e.innerHTML,c=c?c.__html:void 0,c!=null&&(c=Cu(e,c),o!==c&&(i[l]={__html:o}));continue;case`className`:Nu(e,l,`class`,c,a,i);continue;case`tabIndex`:Nu(e,l,`tabindex`,c,a,i);continue;case`style`:a.delete(l),Mu(e,c,i);continue;case`multiple`:a.delete(l),bu(l,e.multiple,c,i);continue;case`muted`:a.delete(l),bu(l,e.muted,c,i);continue;case`autoFocus`:a.delete(`autofocus`),bu(l,e.autofocus,c,i);continue;case`data`:if(t!==`object`){a.delete(l),o=e.getAttribute(`data`),bu(l,o,c,i);continue}case`src`:case`href`:if(!(c!==``||t===`a`&&l===`href`||t===`object`&&l===`data`)){console.error(l===`src`?`An empty string ("") was passed to the %s attribute. This may cause the browser to download the whole page again over the network. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`:`An empty string ("") was passed to the %s attribute. To fix this, either do not render the element at all or pass null to %s instead of an empty string.`,l,l);continue}Lu(e,l,l,c,a,i);continue;case`action`:case`formAction`:if(o=e.getAttribute(l),typeof c==`function`){a.delete(l.toLowerCase()),l===`formAction`?(a.delete(`name`),a.delete(`formenctype`),a.delete(`formmethod`),a.delete(`formtarget`)):(a.delete(`enctype`),a.delete(`method`),a.delete(`target`));continue}else if(o===DS){a.delete(l.toLowerCase()),bu(l,`function`,c,i);continue}Lu(e,l,l.toLowerCase(),c,a,i);continue;case`xlinkHref`:Lu(e,l,`xlink:href`,c,a,i);continue;case`contentEditable`:Fu(e,l,`contenteditable`,c,a,i);continue;case`spellCheck`:Fu(e,l,`spellcheck`,c,a,i);continue;case`draggable`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:Fu(e,l,l,c,a,i);continue;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`:Pu(e,l,l.toLowerCase(),c,a,i);continue;case`capture`:case`download`:a:{s=e;var u=o=l,d=i;if(a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:break a;default:if(!1===c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:break;case`boolean`:if(!0===c&&s===``)break a;break;default:if(D(c,o),s===``+c)break a}bu(o,s,c,d)}continue;case`cols`:case`rows`:case`size`:case`span`:a:{if(s=e,u=o=l,d=i,a.delete(u),s=s.getAttribute(u),s===null)switch(typeof c){case`undefined`:case`function`:case`symbol`:case`boolean`:break a;default:if(isNaN(c)||1>c)break a}else if(c!=null)switch(typeof c){case`function`:case`symbol`:case`boolean`:break;default:if(!(isNaN(c)||1>c)&&(D(c,o),s===``+c))break a}bu(o,s,c,d)}continue;case`rowSpan`:Iu(e,l,`rowspan`,c,a,i);continue;case`start`:Iu(e,l,l,c,a,i);continue;case`xHeight`:Nu(e,l,`x-height`,c,a,i);continue;case`xlinkActuate`:Nu(e,l,`xlink:actuate`,c,a,i);continue;case`xlinkArcrole`:Nu(e,l,`xlink:arcrole`,c,a,i);continue;case`xlinkRole`:Nu(e,l,`xlink:role`,c,a,i);continue;case`xlinkShow`:Nu(e,l,`xlink:show`,c,a,i);continue;case`xlinkTitle`:Nu(e,l,`xlink:title`,c,a,i);continue;case`xlinkType`:Nu(e,l,`xlink:type`,c,a,i);continue;case`xmlBase`:Nu(e,l,`xml:base`,c,a,i);continue;case`xmlLang`:Nu(e,l,`xml:lang`,c,a,i);continue;case`xmlSpace`:Nu(e,l,`xml:space`,c,a,i);continue;case`inert`:c!==``||SS[l]||(SS[l]=!0,console.error("Received an empty string for a boolean attribute `%s`. This will treat the attribute as if it were false. Either pass `false` to silence this warning, or pass `true` if you used an empty string in earlier versions of React to indicate this attribute is true.",l)),Pu(e,l,l,c,a,i);continue;default:if(!(2<l.length)||l[0]!==`o`&&l[0]!==`O`||l[1]!==`n`&&l[1]!==`N`){s=nn(l),o=!1,r.context===US&&t!==`svg`&&t!==`math`?a.delete(s.toLowerCase()):(u=l.toLowerCase(),u=Bm.hasOwnProperty(u)&&Bm[u]||null,u!==null&&u!==l&&(o=!0,a.delete(u)),a.delete(s));a:if(u=e,d=s,s=c,ot(d))if(u.hasAttribute(d))u=u.getAttribute(d),D(s,d),s=u===``+s?s:u;else{switch(typeof s){case`function`:case`symbol`:break a;case`boolean`:if(u=d.toLowerCase().slice(0,5),u!==`data-`&&u!==`aria-`)break a}s=s===void 0?void 0:null}else s=void 0;o||bu(l,s,c,i)}}}return 0<a.size&&!0!==n.suppressHydrationWarning&&xu(e,a,i),Object.keys(i).length===0?null:i}function zu(e,t){switch(e.length){case 0:return``;case 1:return e[0];case 2:return e[0]+` `+t+` `+e[1];default:return e.slice(0,-1).join(`, `)+`, `+t+` `+e[e.length-1]}}function Bu(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Vu(){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&&Bu(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&&Bu(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}function Hu(e){return e.nodeType===9?e:e.ownerDocument}function Uu(e){switch(e){case Rm:return WS;case Lm:return GS;default:return US}}function Wu(e,t){if(e===US)switch(t){case`svg`:return WS;case`math`:return GS;default:return US}return e===WS&&t===`foreignObject`?US:e}function Gu(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}function Ku(){var e=window.event;return e&&e.type===`popstate`?e===YS?!1:(YS=e,!0):(YS=null,!1)}function qu(){var e=window.event;return e&&e!==XS?e.type:null}function Ju(){var e=window.event;return e&&e!==XS?e.timeStamp:-1.1}function Yu(e){setTimeout(function(){throw e})}function Xu(e,t,n){switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&e.focus();break;case`img`:n.src?e.src=n.src:n.srcSet&&(e.srcset=n.srcSet)}}function Zu(){}function Qu(e,t,n,r){ku(e,t,n,r),e[Yp]=r}function $u(e){Zt(e,``)}function ed(e,t,n){e.nodeValue=n}function td(e){if(!e.__reactWarnedAboutChildrenConflict){var t=e[Yp]||null;if(t!==null){var n=$e(e);n!==null&&(typeof t.children==`string`||typeof t.children==`number`?(e.__reactWarnedAboutChildrenConflict=!0,E(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "children" text content using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})):t.dangerouslySetInnerHTML!=null&&(e.__reactWarnedAboutChildrenConflict=!0,E(n,function(){console.error('Cannot use a ref on a React element as a container to `createRoot` or `createPortal` if that element also sets "dangerouslySetInnerHTML" using React. It should be a leaf with no children. Otherwise it\'s ambiguous which children should be used.')})))}}}function nd(e){return e===`head`}function rd(e,t){e.removeChild(t)}function id(e,t){(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e).removeChild(t)}function ad(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===MS||n===AS){if(r===0){e.removeChild(i),Tf(t);return}r--}else if(n===jS||n===NS||n===PS||n===FS||n===kS)r++;else if(n===IS)Ad(e.ownerDocument.documentElement);else if(n===RS){n=e.ownerDocument.head,Ad(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[tm]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===LS&&Ad(e.ownerDocument.body);n=i}while(n);Tf(t)}function od(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===MS){if(e===0)break;e--}else n!==jS&&n!==NS&&n!==PS&&n!==FS||e++;n=r}while(n)}function sd(e){od(e,!0)}function cd(e){e=e.style,typeof e.setProperty==`function`?e.setProperty(`display`,`none`,`important`):e.display=`none`}function ld(e){e.nodeValue=``}function ud(e){od(e,!1)}function dd(e,t){t=t[HS],t=t!=null&&t.hasOwnProperty(`display`)?t.display:null,e.style.display=t==null||typeof t==`boolean`?``:(``+t).trim()}function fd(e,t){e.nodeValue=t}function pd(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`:pd(n),Ze(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function md(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`){D(i.name,`name`);var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[tm])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=bd(e.nextSibling),e===null)break}return null}function hd(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=bd(e.nextSibling),e===null))return null;return e}function gd(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=bd(e.nextSibling),e===null))return null;return e}function _d(e){return e.data===NS||e.data===PS}function vd(e){return e.data===FS||e.data===NS&&e.ownerDocument.readyState!==VS}function yd(e,t){var n=e.ownerDocument;if(e.data===PS)e._reactRetry=t;else if(e.data!==NS||n.readyState!==VS)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function bd(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===jS||t===FS||t===NS||t===PS||t===kS||t===zS||t===BS)break;if(t===MS||t===AS)return null}}return e}function xd(e){if(e.nodeType===1){for(var t=e.nodeName.toLowerCase(),n={},r=e.attributes,i=0;i<r.length;i++){var a=r[i];n[Au(a.name)]=a.name.toLowerCase()===`style`?ju(e):a.value}return{type:t,props:n}}return e.nodeType===8?e.data===kS?{type:`Activity`,props:{}}:{type:`Suspense`,props:{}}:e.nodeValue}function Sd(e,t,n){return n===null||!0!==n[OS]?(e.nodeValue===t?e=null:(t=wu(t),e=wu(e.nodeValue)===t?null:e.nodeValue),e):null}function Cd(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===MS||n===AS){if(t===0)return bd(e.nextSibling);t--}else n!==jS&&n!==FS&&n!==NS&&n!==PS&&n!==kS||t++}e=e.nextSibling}return null}function wd(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===jS||n===FS||n===NS||n===PS||n===kS){if(t===0)return e;t--}else n!==MS&&n!==AS||t++}e=e.previousSibling}return null}function Td(e){Tf(e)}function Ed(e){Tf(e)}function Dd(e){Tf(e)}function Od(e,t,n,r,i){switch(i&&Yt(e,r.ancestorInfo),t=Hu(n),e){case`html`:if(e=t.documentElement,!e)throw Error(`React expected an <html> element (document.documentElement) to exist in the Document but one was not found. React never removes the documentElement for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`head`:if(e=t.head,!e)throw Error(`React expected a <head> element (document.head) to exist in the Document but one was not found. React never removes the head for any Document it renders into so the cause is likely in some other script running on this page.`);return e;case`body`:if(e=t.body,!e)throw Error(`React expected a <body> element (document.body) to exist in the Document but one was not found. React never removes the body for any Document it renders into so the cause is likely in some other script running on this page.`);return e;default:throw Error(`resolveSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}}function kd(e,t,n,r){if(!n[Xp]&&$e(n)){var i=n.tagName.toLowerCase();console.error(`You are mounting a new %s component when a previous one has not first unmounted. It is an error to render more than one %s component at a time and attributes and children of these components will likely fail in unpredictable ways. Please only render a single instance of <%s> and if you need to mount a new one, ensure any previous ones have unmounted first.`,i,i,i)}switch(e){case`html`:case`head`:case`body`:break;default:console.error(`acquireSingletonInstance was called with an element type that is not supported. This is a bug in React.`)}for(i=n.attributes;i.length;)n.removeAttributeNode(i[0]);Ou(n,e,t),n[Jp]=r,n[Yp]=t}function Ad(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ze(e)}function jd(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}function Md(e,t,n){var r=dC;if(r&&typeof t==`string`&&t){var i=_t(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),lC.has(i)||(lC.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Ou(t,`link`,e),nt(t),r.head.appendChild(t)))}}function Nd(e,t,n,r){var i=(i=rp.current)?jd(i):null;if(!i)throw Error(`"resourceRoot" was expected to exist. This is a bug in React.`);switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fd(n.href),t=tt(i).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,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=Fd(n.href);var a=tt(i).hoistableStyles,o=a.get(e);if(!o&&(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:rC,preload:null}},a.set(e,o),(a=i.querySelector(Id(e)))&&!a._p&&(o.instance=a,o.state.loading=iC|sC),!cC.has(e))){var s={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy};cC.set(e,s),a||Rd(i,e,s,o.state)}if(t&&r===null)throw n=`
181
+
182
+ - `+Pd(t)+`
183
+ + `+Pd(n),Error("Expected <link> not to update to be updated to a stylesheet with precedence. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return o}if(t&&r!==null)throw n=`
184
+
185
+ - `+Pd(t)+`
186
+ + `+Pd(n),Error("Expected stylesheet with precedence to not be updated to a different kind of <link>. Check the `rel`, `href`, and `precedence` props of this component. Alternatively, check whether two different <link> components render in the same slot or share the same key."+n);return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zd(n),t=tt(i).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(`getResource encountered a type it did not expect: "`+e+`". this is a bug in React.`)}}function Pd(e){var t=0,n=`<link`;return typeof e.rel==`string`?(t++,n+=` rel="`+e.rel+`"`):yp.call(e,`rel`)&&(t++,n+=` rel="`+(e.rel===null?`null`:`invalid type `+typeof e.rel)+`"`),typeof e.href==`string`?(t++,n+=` href="`+e.href+`"`):yp.call(e,`href`)&&(t++,n+=` href="`+(e.href===null?`null`:`invalid type `+typeof e.href)+`"`),typeof e.precedence==`string`?(t++,n+=` precedence="`+e.precedence+`"`):yp.call(e,`precedence`)&&(t++,n+=` precedence={`+(e.precedence===null?`null`:`invalid type `+typeof e.precedence)+`}`),Object.getOwnPropertyNames(e).length>t&&(n+=` ...`),n+` />`}function Fd(e){return`href="`+_t(e)+`"`}function Id(e){return`link[rel="stylesheet"][`+e+`]`}function Ld(e){return L({},e,{"data-precedence":e.precedence,precedence:null})}function Rd(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=iC:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=iC}),t.addEventListener(`error`,function(){return r.loading|=aC}),Ou(t,`link`,n),nt(t),e.head.appendChild(t))}function zd(e){return`[src="`+_t(e)+`"]`}function Bd(e){return`script[async]`+e}function Vd(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+_t(n.href)+`"]`);if(r)return t.instance=r,nt(r),r;var i=L({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),nt(r),Ou(r,`style`,i),Hd(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Fd(n.href);var a=e.querySelector(Id(i));if(a)return t.state.loading|=sC,t.instance=a,nt(a),a;r=Ld(n),(i=cC.get(i))&&Ud(r,i),a=(e.ownerDocument||e).createElement(`link`),nt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ou(a,`link`,r),t.state.loading|=sC,Hd(a,n.precedence,e),t.instance=a;case`script`:return a=zd(n.src),(i=e.querySelector(Bd(a)))?(t.instance=i,nt(i),i):(r=n,(i=cC.get(a))&&(r=L({},n),Wd(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),nt(i),Ou(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(`acquireResource encountered a resource type it did not expect: "`+t.type+`". this is a bug in React.`)}else t.type===`stylesheet`&&(t.state.loading&sC)===rC&&(r=t.instance,t.state.loading|=sC,Hd(r,n.precedence,e));return t.instance}function Hd(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 Ud(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wd(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}function Gd(e,t,n){if(fC===null){var r=new Map,i=fC=new Map;i.set(n,r)}else i=fC,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[tm]||a[Jp]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==Rm){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Kd(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function qd(e,t,n){var r=!n.ancestorInfo.containerTagInScope;if(n.context===WS||t.itemProp!=null)return!r||t.itemProp==null||e!==`meta`&&e!==`title`&&e!==`style`&&e!==`link`&&e!==`script`||console.error("Cannot render a <%s> outside the main document if it has an `itemProp` prop. `itemProp` suggests the tag belongs to an `itemScope` which can appear anywhere in the DOM. If you were intending for React to hoist this <%s> remove the `itemProp` prop. Otherwise, try moving this tag into the <head> or <body> of the Document.",e,e),!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``){r&&console.error('Cannot render a <style> outside the main document without knowing its precedence and a unique href key. React can hoist and deduplicate <style> tags if you provide a `precedence` prop along with an `href` prop that does not conflict with the `href` values used in any other hoisted <style> or <link rel="stylesheet" ...> tags. Note that hoisting <style> tags is considered an advanced feature that most will not use directly. Consider moving the <style> tag to the <head> or consider adding a `precedence="default"` and `href="some unique resource identifier"`.');break}return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError){if(t.rel===`stylesheet`&&typeof t.precedence==`string`){e=t.href;var i=t.onError,a=t.disabled;n=[],t.onLoad&&n.push("`onLoad`"),i&&n.push("`onError`"),a!=null&&n.push("`disabled`"),i=zu(n,`and`),i+=n.length===1?` prop`:` props`,a=n.length===1?`an `+i:`the `+i,n.length&&console.error('React encountered a <link rel="stylesheet" href="%s" ... /> with a `precedence` prop that also included %s. The presence of loading and error handlers indicates an intent to manage the stylesheet loading state from your from your Component code and React will not hoist or deduplicate this stylesheet. If your intent was to have React hoist and deduplciate this stylesheet using the `precedence` prop remove the %s, otherwise remove the `precedence` prop.',e,a,i)}r&&(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``?console.error("Cannot render a <link> outside the main document without a `rel` and `href` prop. Try adding a `rel` and/or `href` prop to this <link> or moving the link into the <head> tag"):(t.onError||t.onLoad)&&console.error(`Cannot render a <link> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`));break}switch(t.rel){case`stylesheet`:return e=t.precedence,t=t.disabled,typeof e!=`string`&&r&&console.error(`Cannot render a <link rel="stylesheet" /> outside the main document without knowing its precedence. Consider adding precedence="default" or moving it into the root <head> tag.`),typeof e==`string`&&t==null;default:return!0}case`script`:if(e=t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`,!e||t.onLoad||t.onError||!t.src||typeof t.src!=`string`){r&&(e?t.onLoad||t.onError?console.error(`Cannot render a <script> with onLoad or onError listeners outside the main document. Try removing onLoad={...} and onError={...} or moving it into the root <head> tag or somewhere in the <body>.`):console.error("Cannot render a <script> outside the main document without `async={true}` and a non-empty `src` prop. Ensure there is a valid `src` and either make the script async or move it into the root <head> tag or somewhere in the <body>."):console.error(`Cannot render a sync or defer <script> outside the main document without knowing its order. Try adding async="" or moving it into the root <head> tag.`));break}return!0;case`noscript`:case`template`:r&&console.error(`Cannot render <%s> outside the main document. Try moving it into the root <head> tag.`,e)}return!1}function Jd(e){return!(e.type===`stylesheet`&&(e.state.loading&oC)===rC)}function Yd(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&(n.state.loading&sC)===rC){if(n.instance===null){var i=Fd(r.href),a=t.querySelector(Id(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Zd.bind(e),t.then(e,e)),n.state.loading|=sC,n.instance=a,nt(a);return}a=t.ownerDocument||t,r=Ld(r),(i=cC.get(i))&&Ud(r,i),a=a.createElement(`link`),nt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Ou(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&oC)===rC&&(e.count++,n=Zd.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}function Xd(e,t){return e.stylesheets&&e.count===0&&Qd(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},pC+t);0<e.imgBytes&&gC===0&&(gC=125*Vu()*hC);var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Qd(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>gC?50:mC)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Zd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Qd(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}function Qd(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vC=new Map,t.forEach($d,e),vC=null,Zd.call(e))}function $d(e,t){if(!(t.state.loading&sC)){var n=vC.get(e);if(n)var r=n.get(_C);else{n=new Map,vC.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(_C,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(_C,i),n.set(o,i),this.count++,r=Zd.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|=sC}}function ef(e,t,n,r,i,a,o,s,c){for(this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=$S,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=ze(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ze(0),this.hiddenUpdates=ze(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,this.passiveEffectDuration=this.effectDuration=-0,this.memoizedUpdaters=new Set,e=this.pendingUpdatersLaneMap=[],t=0;31>t;t++)e.push(new Set);this._debugRootType=n?`hydrateRoot()`:`createRoot()`}function tf(e,t,n,r,i,a,o,s,c,l,u,d){return e=new ef(e,t,n,o,c,l,u,d,s),t=zg,!0===a&&(t|=Bg|Vg),t|=U,a=h(3,null,null,t),e.current=a,a.stateNode=e,t=ci(),li(t),e.pooledCache=t,li(t),a.memoizedState={element:r,isDehydrated:n,cache:t},ea(a),e}function nf(e){return e?(e=Ig,e):Ig}function rf(e,t,n,r,i,a){if(Pp&&typeof Pp.onScheduleFiberRoot==`function`)try{Pp.onScheduleFiberRoot(Np,r,n)}catch(e){Fp||(Fp=!0,console.error(`React instrumentation encountered an error: %o`,e))}i=nf(i),r.context===null?r.context=i:r.pendingContext=i,vp&&_p!==null&&!EC&&(EC=!0,console.error(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
187
+
188
+ Check the render method of %s.`,S(_p)||`Unknown`)),r=na(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(typeof a!=`function`&&console.error("Expected the last optional `callback` argument to be a function. Instead received: %s.",a),r.callback=a),n=ra(e,r,t),n!==null&&(di(t,`root.render()`,null),il(n,e,t),ia(n,e,t))}function af(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function of(e,t){af(e,t),(e=e.alternate)&&af(e,t)}function sf(e){if(e.tag===13||e.tag===31){var t=mr(e,67108864);t!==null&&il(t,e,67108864),of(e,67108864)}}function cf(e){if(e.tag===13||e.tag===31){var t=nl(e);t=Ge(t);var n=mr(e,t);n!==null&&il(n,e,t),of(e,t)}}function lf(){return _p}function uf(e,t,n,r){var i=R.T;R.T=null;var a=z.p;try{z.p=Up,ff(e,t,n,r)}finally{z.p=a,R.T=i}}function df(e,t,n,r){var i=R.T;R.T=null;var a=z.p;try{z.p=Wp,ff(e,t,n,r)}finally{z.p=a,R.T=i}}function ff(e,t,n,r){if(LC){var i=pf(r);if(i===null)mu(e,t,r,RC,n),gf(e,r);else if(vf(i,e,t,n,r))r.stopPropagation();else if(gf(e,r),t&4&&-1<KC.indexOf(e)){for(;i!==null;){var a=$e(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Pe(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-Lp(o);s.entanglements[1]|=c,o&=~c}Xl(a),(X&(Ib|Lb))===Fb&&(yx=wp()+bx,Zl(0,!1))}}break;case 31:case 13:s=mr(a,2),s!==null&&il(s,a,2),ll(),of(a,2)}if(a=pf(r),a===null&&mu(e,t,r,RC,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else mu(e,t,r,null,n)}}function pf(e){return e=un(e),mf(e)}function mf(e){if(RC=null,e=Qe(e),e!==null){var t=ee(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=te(t),e!==null)return e;e=null}else if(n===31){if(e=ne(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 RC=e,null}function hf(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 Up;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 Wp;case`message`:switch(Tp()){case Ep:return Up;case Dp:return Wp;case Op:case kp:return Gp;case Ap:return Kp;default:return Gp}default:return Gp}}function gf(e,t){switch(e){case`focusin`:case`focusout`:BC=null;break;case`dragenter`:case`dragleave`:VC=null;break;case`mouseover`:case`mouseout`:HC=null;break;case`pointerover`:case`pointerout`:UC.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:WC.delete(t.pointerId)}}function _f(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=$e(t),t!==null&&sf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function vf(e,t,n,r,i){switch(t){case`focusin`:return BC=_f(BC,e,t,n,r,i),!0;case`dragenter`:return VC=_f(VC,e,t,n,r,i),!0;case`mouseover`:return HC=_f(HC,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return UC.set(a,_f(UC.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,WC.set(a,_f(WC.get(a)||null,e,t,n,r,i)),!0}return!1}function yf(e){var t=Qe(e.target);if(t!==null){var n=ee(t);if(n!==null){if(t=n.tag,t===13){if(t=te(n),t!==null){e.blockedOn=t,Xe(e.priority,function(){cf(n)});return}}else if(t===31){if(t=ne(n),t!==null){e.blockedOn=t,Xe(e.priority,function(){cf(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 bf(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=pf(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n),i=r;Qm!==null&&console.error(`Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue.`),Qm=i,n.target.dispatchEvent(r),Qm===null&&console.error(`Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue.`),Qm=null}else return t=$e(n),t!==null&&sf(t),e.blockedOn=n,!1;t.shift()}return!0}function xf(e,t,n){bf(e)&&n.delete(t)}function Sf(){zC=!1,BC!==null&&bf(BC)&&(BC=null),VC!==null&&bf(VC)&&(VC=null),HC!==null&&bf(HC)&&(HC=null),UC.forEach(xf),WC.forEach(xf)}function Cf(e,t){e.blockedOn===t&&(e.blockedOn=null,zC||(zC=!0,Af.unstable_scheduleCallback(Af.unstable_NormalPriority,Sf)))}function wf(e){qC!==e&&(qC=e,Af.unstable_scheduleCallback(Af.unstable_NormalPriority,function(){qC===e&&(qC=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(mf(r||n)===null)continue;break}var a=$e(n);a!==null&&(e.splice(t,3),t-=3,n={pending:!0,data:i,method:n.method,action:r},Object.freeze(n),Io(a,n,r,i))}}))}function Tf(e){function t(t){return Cf(t,e)}BC!==null&&Cf(BC,e),VC!==null&&Cf(VC,e),HC!==null&&Cf(HC,e),UC.forEach(t),WC.forEach(t);for(var n=0;n<GC.length;n++){var r=GC[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<GC.length&&(n=GC[0],n.blockedOn===null);)yf(n),n.blockedOn===null&&GC.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[Yp]||null;if(typeof a==`function`)o||wf(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[Yp]||null)s=o.formAction;else if(mf(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),wf(n)}}}function Ef(){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 Df(e){this._internalRoot=e}function Of(e){this._internalRoot=e}function kf(e){e[Xp]&&(e._reactRootContainer?console.error(`You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported.`):console.error(`You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it.`))}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var Af=m(),jf=f(),Mf=g(),L=Object.assign,Nf=Symbol.for(`react.element`),Pf=Symbol.for(`react.transitional.element`),Ff=Symbol.for(`react.portal`),If=Symbol.for(`react.fragment`),Lf=Symbol.for(`react.strict_mode`),Rf=Symbol.for(`react.profiler`),zf=Symbol.for(`react.consumer`),Bf=Symbol.for(`react.context`),Vf=Symbol.for(`react.forward_ref`),Hf=Symbol.for(`react.suspense`),Uf=Symbol.for(`react.suspense_list`),Wf=Symbol.for(`react.memo`),Gf=Symbol.for(`react.lazy`),Kf=Symbol.for(`react.activity`),qf=Symbol.for(`react.memo_cache_sentinel`),Jf=Symbol.iterator,Yf=Symbol.for(`react.client.reference`),Xf=Array.isArray,R=jf.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,z=Mf.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Zf=Object.freeze({pending:!1,data:null,method:null,action:null}),Qf=[],$f=[],ep=-1,tp=ce(null),np=ce(null),rp=ce(null),ip=ce(null),ap=0,op,sp,cp,lp,up,dp,fp;me.__reactDisabledLog=!0;var pp,mp,hp=!1,gp=new(typeof WeakMap==`function`?WeakMap:Map),_p=null,vp=!1,yp=Object.prototype.hasOwnProperty,bp=Af.unstable_scheduleCallback,xp=Af.unstable_cancelCallback,Sp=Af.unstable_shouldYield,Cp=Af.unstable_requestPaint,wp=Af.unstable_now,Tp=Af.unstable_getCurrentPriorityLevel,Ep=Af.unstable_ImmediatePriority,Dp=Af.unstable_UserBlockingPriority,Op=Af.unstable_NormalPriority,kp=Af.unstable_LowPriority,Ap=Af.unstable_IdlePriority,jp=Af.log,Mp=Af.unstable_setDisableYieldValue,Np=null,Pp=null,Fp=!1,Ip=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`,Lp=Math.clz32?Math.clz32:Ne,Rp=Math.log,zp=Math.LN2,Bp=256,Vp=262144,Hp=4194304,Up=2,Wp=8,Gp=32,Kp=268435456,qp=Math.random().toString(36).slice(2),Jp=`__reactFiber$`+qp,Yp=`__reactProps$`+qp,Xp=`__reactContainer$`+qp,Zp=`__reactEvents$`+qp,Qp=`__reactListeners$`+qp,$p=`__reactHandles$`+qp,em=`__reactResources$`+qp,tm=`__reactMarker$`+qp,nm=new Set,rm={},im={},am={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0},om=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]*$`),sm={},cm={},lm=/[\n"\\]/g,um=!1,dm=!1,fm=!1,pm=!1,mm=!1,hm=!1,gm=[`value`,`defaultValue`],_m=!1,vm=/["'&<>\n\t]|^\s|\s$/,ym=`address applet area article aside base basefont bgsound blockquote body br button caption center col colgroup dd details dir div dl dt embed fieldset figcaption figure footer form frame frameset h1 h2 h3 h4 h5 h6 head header hgroup hr html iframe img input isindex li link listing main marquee menu menuitem meta nav noembed noframes noscript object ol p param plaintext pre script section select source style summary table tbody td template textarea tfoot th thead title tr track ul wbr xmp`.split(` `),bm=`applet caption html table td th marquee object template foreignObject desc title`.split(` `),xm=bm.concat([`button`]),Sm=`dd dt li option optgroup p rp rt`.split(` `),Cm={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null,containerTagInScope:null,implicitRootScope:!1},wm={},Tm={animation:`animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction`.split(` `),background:`backgroundAttachment backgroundClip backgroundColor backgroundImage backgroundOrigin backgroundPositionX backgroundPositionY backgroundRepeat backgroundSize`.split(` `),backgroundPosition:[`backgroundPositionX`,`backgroundPositionY`],border:`borderBottomColor borderBottomStyle borderBottomWidth borderImageOutset borderImageRepeat borderImageSlice borderImageSource borderImageWidth borderLeftColor borderLeftStyle borderLeftWidth borderRightColor borderRightStyle borderRightWidth borderTopColor borderTopStyle borderTopWidth`.split(` `),borderBlockEnd:[`borderBlockEndColor`,`borderBlockEndStyle`,`borderBlockEndWidth`],borderBlockStart:[`borderBlockStartColor`,`borderBlockStartStyle`,`borderBlockStartWidth`],borderBottom:[`borderBottomColor`,`borderBottomStyle`,`borderBottomWidth`],borderColor:[`borderBottomColor`,`borderLeftColor`,`borderRightColor`,`borderTopColor`],borderImage:[`borderImageOutset`,`borderImageRepeat`,`borderImageSlice`,`borderImageSource`,`borderImageWidth`],borderInlineEnd:[`borderInlineEndColor`,`borderInlineEndStyle`,`borderInlineEndWidth`],borderInlineStart:[`borderInlineStartColor`,`borderInlineStartStyle`,`borderInlineStartWidth`],borderLeft:[`borderLeftColor`,`borderLeftStyle`,`borderLeftWidth`],borderRadius:[`borderBottomLeftRadius`,`borderBottomRightRadius`,`borderTopLeftRadius`,`borderTopRightRadius`],borderRight:[`borderRightColor`,`borderRightStyle`,`borderRightWidth`],borderStyle:[`borderBottomStyle`,`borderLeftStyle`,`borderRightStyle`,`borderTopStyle`],borderTop:[`borderTopColor`,`borderTopStyle`,`borderTopWidth`],borderWidth:[`borderBottomWidth`,`borderLeftWidth`,`borderRightWidth`,`borderTopWidth`],columnRule:[`columnRuleColor`,`columnRuleStyle`,`columnRuleWidth`],columns:[`columnCount`,`columnWidth`],flex:[`flexBasis`,`flexGrow`,`flexShrink`],flexFlow:[`flexDirection`,`flexWrap`],font:`fontFamily fontFeatureSettings fontKerning fontLanguageOverride fontSize fontSizeAdjust fontStretch fontStyle fontVariant fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition fontWeight lineHeight`.split(` `),fontVariant:`fontVariantAlternates fontVariantCaps fontVariantEastAsian fontVariantLigatures fontVariantNumeric fontVariantPosition`.split(` `),gap:[`columnGap`,`rowGap`],grid:`gridAutoColumns gridAutoFlow gridAutoRows gridTemplateAreas gridTemplateColumns gridTemplateRows`.split(` `),gridArea:[`gridColumnEnd`,`gridColumnStart`,`gridRowEnd`,`gridRowStart`],gridColumn:[`gridColumnEnd`,`gridColumnStart`],gridColumnGap:[`columnGap`],gridGap:[`columnGap`,`rowGap`],gridRow:[`gridRowEnd`,`gridRowStart`],gridRowGap:[`rowGap`],gridTemplate:[`gridTemplateAreas`,`gridTemplateColumns`,`gridTemplateRows`],listStyle:[`listStyleImage`,`listStylePosition`,`listStyleType`],margin:[`marginBottom`,`marginLeft`,`marginRight`,`marginTop`],marker:[`markerEnd`,`markerMid`,`markerStart`],mask:`maskClip maskComposite maskImage maskMode maskOrigin maskPositionX maskPositionY maskRepeat maskSize`.split(` `),maskPosition:[`maskPositionX`,`maskPositionY`],outline:[`outlineColor`,`outlineStyle`,`outlineWidth`],overflow:[`overflowX`,`overflowY`],padding:[`paddingBottom`,`paddingLeft`,`paddingRight`,`paddingTop`],placeContent:[`alignContent`,`justifyContent`],placeItems:[`alignItems`,`justifyItems`],placeSelf:[`alignSelf`,`justifySelf`],textDecoration:[`textDecorationColor`,`textDecorationLine`,`textDecorationStyle`],textEmphasis:[`textEmphasisColor`,`textEmphasisStyle`],transition:[`transitionDelay`,`transitionDuration`,`transitionProperty`,`transitionTimingFunction`],wordWrap:[`overflowWrap`]},Em=/([A-Z])/g,Dm=/^ms-/,Om=/^(?:webkit|moz|o)[A-Z]/,km=/^-ms-/,Am=/-(.)/g,jm=/;\s*$/,Mm={},Nm={},Pm=!1,Fm=!1,Im=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(` `)),Lm=`http://www.w3.org/1998/Math/MathML`,Rm=`http://www.w3.org/2000/svg`,zm=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`]]),Bm={accept:`accept`,acceptcharset:`acceptCharset`,"accept-charset":`acceptCharset`,accesskey:`accessKey`,action:`action`,allowfullscreen:`allowFullScreen`,alt:`alt`,as:`as`,async:`async`,autocapitalize:`autoCapitalize`,autocomplete:`autoComplete`,autocorrect:`autoCorrect`,autofocus:`autoFocus`,autoplay:`autoPlay`,autosave:`autoSave`,capture:`capture`,cellpadding:`cellPadding`,cellspacing:`cellSpacing`,challenge:`challenge`,charset:`charSet`,checked:`checked`,children:`children`,cite:`cite`,class:`className`,classid:`classID`,classname:`className`,cols:`cols`,colspan:`colSpan`,content:`content`,contenteditable:`contentEditable`,contextmenu:`contextMenu`,controls:`controls`,controlslist:`controlsList`,coords:`coords`,crossorigin:`crossOrigin`,dangerouslysetinnerhtml:`dangerouslySetInnerHTML`,data:`data`,datetime:`dateTime`,default:`default`,defaultchecked:`defaultChecked`,defaultvalue:`defaultValue`,defer:`defer`,dir:`dir`,disabled:`disabled`,disablepictureinpicture:`disablePictureInPicture`,disableremoteplayback:`disableRemotePlayback`,download:`download`,draggable:`draggable`,enctype:`encType`,enterkeyhint:`enterKeyHint`,fetchpriority:`fetchPriority`,for:`htmlFor`,form:`form`,formmethod:`formMethod`,formaction:`formAction`,formenctype:`formEncType`,formnovalidate:`formNoValidate`,formtarget:`formTarget`,frameborder:`frameBorder`,headers:`headers`,height:`height`,hidden:`hidden`,high:`high`,href:`href`,hreflang:`hrefLang`,htmlfor:`htmlFor`,httpequiv:`httpEquiv`,"http-equiv":`httpEquiv`,icon:`icon`,id:`id`,imagesizes:`imageSizes`,imagesrcset:`imageSrcSet`,inert:`inert`,innerhtml:`innerHTML`,inputmode:`inputMode`,integrity:`integrity`,is:`is`,itemid:`itemID`,itemprop:`itemProp`,itemref:`itemRef`,itemscope:`itemScope`,itemtype:`itemType`,keyparams:`keyParams`,keytype:`keyType`,kind:`kind`,label:`label`,lang:`lang`,list:`list`,loop:`loop`,low:`low`,manifest:`manifest`,marginwidth:`marginWidth`,marginheight:`marginHeight`,max:`max`,maxlength:`maxLength`,media:`media`,mediagroup:`mediaGroup`,method:`method`,min:`min`,minlength:`minLength`,multiple:`multiple`,muted:`muted`,name:`name`,nomodule:`noModule`,nonce:`nonce`,novalidate:`noValidate`,open:`open`,optimum:`optimum`,pattern:`pattern`,placeholder:`placeholder`,playsinline:`playsInline`,poster:`poster`,preload:`preload`,profile:`profile`,radiogroup:`radioGroup`,readonly:`readOnly`,referrerpolicy:`referrerPolicy`,rel:`rel`,required:`required`,reversed:`reversed`,role:`role`,rows:`rows`,rowspan:`rowSpan`,sandbox:`sandbox`,scope:`scope`,scoped:`scoped`,scrolling:`scrolling`,seamless:`seamless`,selected:`selected`,shape:`shape`,size:`size`,sizes:`sizes`,span:`span`,spellcheck:`spellCheck`,src:`src`,srcdoc:`srcDoc`,srclang:`srcLang`,srcset:`srcSet`,start:`start`,step:`step`,style:`style`,summary:`summary`,tabindex:`tabIndex`,target:`target`,title:`title`,type:`type`,usemap:`useMap`,value:`value`,width:`width`,wmode:`wmode`,wrap:`wrap`,about:`about`,accentheight:`accentHeight`,"accent-height":`accentHeight`,accumulate:`accumulate`,additive:`additive`,alignmentbaseline:`alignmentBaseline`,"alignment-baseline":`alignmentBaseline`,allowreorder:`allowReorder`,alphabetic:`alphabetic`,amplitude:`amplitude`,arabicform:`arabicForm`,"arabic-form":`arabicForm`,ascent:`ascent`,attributename:`attributeName`,attributetype:`attributeType`,autoreverse:`autoReverse`,azimuth:`azimuth`,basefrequency:`baseFrequency`,baselineshift:`baselineShift`,"baseline-shift":`baselineShift`,baseprofile:`baseProfile`,bbox:`bbox`,begin:`begin`,bias:`bias`,by:`by`,calcmode:`calcMode`,capheight:`capHeight`,"cap-height":`capHeight`,clip:`clip`,clippath:`clipPath`,"clip-path":`clipPath`,clippathunits:`clipPathUnits`,cliprule:`clipRule`,"clip-rule":`clipRule`,color:`color`,colorinterpolation:`colorInterpolation`,"color-interpolation":`colorInterpolation`,colorinterpolationfilters:`colorInterpolationFilters`,"color-interpolation-filters":`colorInterpolationFilters`,colorprofile:`colorProfile`,"color-profile":`colorProfile`,colorrendering:`colorRendering`,"color-rendering":`colorRendering`,contentscripttype:`contentScriptType`,contentstyletype:`contentStyleType`,cursor:`cursor`,cx:`cx`,cy:`cy`,d:`d`,datatype:`datatype`,decelerate:`decelerate`,descent:`descent`,diffuseconstant:`diffuseConstant`,direction:`direction`,display:`display`,divisor:`divisor`,dominantbaseline:`dominantBaseline`,"dominant-baseline":`dominantBaseline`,dur:`dur`,dx:`dx`,dy:`dy`,edgemode:`edgeMode`,elevation:`elevation`,enablebackground:`enableBackground`,"enable-background":`enableBackground`,end:`end`,exponent:`exponent`,externalresourcesrequired:`externalResourcesRequired`,fill:`fill`,fillopacity:`fillOpacity`,"fill-opacity":`fillOpacity`,fillrule:`fillRule`,"fill-rule":`fillRule`,filter:`filter`,filterres:`filterRes`,filterunits:`filterUnits`,floodopacity:`floodOpacity`,"flood-opacity":`floodOpacity`,floodcolor:`floodColor`,"flood-color":`floodColor`,focusable:`focusable`,fontfamily:`fontFamily`,"font-family":`fontFamily`,fontsize:`fontSize`,"font-size":`fontSize`,fontsizeadjust:`fontSizeAdjust`,"font-size-adjust":`fontSizeAdjust`,fontstretch:`fontStretch`,"font-stretch":`fontStretch`,fontstyle:`fontStyle`,"font-style":`fontStyle`,fontvariant:`fontVariant`,"font-variant":`fontVariant`,fontweight:`fontWeight`,"font-weight":`fontWeight`,format:`format`,from:`from`,fx:`fx`,fy:`fy`,g1:`g1`,g2:`g2`,glyphname:`glyphName`,"glyph-name":`glyphName`,glyphorientationhorizontal:`glyphOrientationHorizontal`,"glyph-orientation-horizontal":`glyphOrientationHorizontal`,glyphorientationvertical:`glyphOrientationVertical`,"glyph-orientation-vertical":`glyphOrientationVertical`,glyphref:`glyphRef`,gradienttransform:`gradientTransform`,gradientunits:`gradientUnits`,hanging:`hanging`,horizadvx:`horizAdvX`,"horiz-adv-x":`horizAdvX`,horizoriginx:`horizOriginX`,"horiz-origin-x":`horizOriginX`,ideographic:`ideographic`,imagerendering:`imageRendering`,"image-rendering":`imageRendering`,in2:`in2`,in:`in`,inlist:`inlist`,intercept:`intercept`,k1:`k1`,k2:`k2`,k3:`k3`,k4:`k4`,k:`k`,kernelmatrix:`kernelMatrix`,kernelunitlength:`kernelUnitLength`,kerning:`kerning`,keypoints:`keyPoints`,keysplines:`keySplines`,keytimes:`keyTimes`,lengthadjust:`lengthAdjust`,letterspacing:`letterSpacing`,"letter-spacing":`letterSpacing`,lightingcolor:`lightingColor`,"lighting-color":`lightingColor`,limitingconeangle:`limitingConeAngle`,local:`local`,markerend:`markerEnd`,"marker-end":`markerEnd`,markerheight:`markerHeight`,markermid:`markerMid`,"marker-mid":`markerMid`,markerstart:`markerStart`,"marker-start":`markerStart`,markerunits:`markerUnits`,markerwidth:`markerWidth`,mask:`mask`,maskcontentunits:`maskContentUnits`,maskunits:`maskUnits`,mathematical:`mathematical`,mode:`mode`,numoctaves:`numOctaves`,offset:`offset`,opacity:`opacity`,operator:`operator`,order:`order`,orient:`orient`,orientation:`orientation`,origin:`origin`,overflow:`overflow`,overlineposition:`overlinePosition`,"overline-position":`overlinePosition`,overlinethickness:`overlineThickness`,"overline-thickness":`overlineThickness`,paintorder:`paintOrder`,"paint-order":`paintOrder`,panose1:`panose1`,"panose-1":`panose1`,pathlength:`pathLength`,patterncontentunits:`patternContentUnits`,patterntransform:`patternTransform`,patternunits:`patternUnits`,pointerevents:`pointerEvents`,"pointer-events":`pointerEvents`,points:`points`,pointsatx:`pointsAtX`,pointsaty:`pointsAtY`,pointsatz:`pointsAtZ`,popover:`popover`,popovertarget:`popoverTarget`,popovertargetaction:`popoverTargetAction`,prefix:`prefix`,preservealpha:`preserveAlpha`,preserveaspectratio:`preserveAspectRatio`,primitiveunits:`primitiveUnits`,property:`property`,r:`r`,radius:`radius`,refx:`refX`,refy:`refY`,renderingintent:`renderingIntent`,"rendering-intent":`renderingIntent`,repeatcount:`repeatCount`,repeatdur:`repeatDur`,requiredextensions:`requiredExtensions`,requiredfeatures:`requiredFeatures`,resource:`resource`,restart:`restart`,result:`result`,results:`results`,rotate:`rotate`,rx:`rx`,ry:`ry`,scale:`scale`,security:`security`,seed:`seed`,shaperendering:`shapeRendering`,"shape-rendering":`shapeRendering`,slope:`slope`,spacing:`spacing`,specularconstant:`specularConstant`,specularexponent:`specularExponent`,speed:`speed`,spreadmethod:`spreadMethod`,startoffset:`startOffset`,stddeviation:`stdDeviation`,stemh:`stemh`,stemv:`stemv`,stitchtiles:`stitchTiles`,stopcolor:`stopColor`,"stop-color":`stopColor`,stopopacity:`stopOpacity`,"stop-opacity":`stopOpacity`,strikethroughposition:`strikethroughPosition`,"strikethrough-position":`strikethroughPosition`,strikethroughthickness:`strikethroughThickness`,"strikethrough-thickness":`strikethroughThickness`,string:`string`,stroke:`stroke`,strokedasharray:`strokeDasharray`,"stroke-dasharray":`strokeDasharray`,strokedashoffset:`strokeDashoffset`,"stroke-dashoffset":`strokeDashoffset`,strokelinecap:`strokeLinecap`,"stroke-linecap":`strokeLinecap`,strokelinejoin:`strokeLinejoin`,"stroke-linejoin":`strokeLinejoin`,strokemiterlimit:`strokeMiterlimit`,"stroke-miterlimit":`strokeMiterlimit`,strokewidth:`strokeWidth`,"stroke-width":`strokeWidth`,strokeopacity:`strokeOpacity`,"stroke-opacity":`strokeOpacity`,suppresscontenteditablewarning:`suppressContentEditableWarning`,suppresshydrationwarning:`suppressHydrationWarning`,surfacescale:`surfaceScale`,systemlanguage:`systemLanguage`,tablevalues:`tableValues`,targetx:`targetX`,targety:`targetY`,textanchor:`textAnchor`,"text-anchor":`textAnchor`,textdecoration:`textDecoration`,"text-decoration":`textDecoration`,textlength:`textLength`,textrendering:`textRendering`,"text-rendering":`textRendering`,to:`to`,transform:`transform`,transformorigin:`transformOrigin`,"transform-origin":`transformOrigin`,typeof:`typeof`,u1:`u1`,u2:`u2`,underlineposition:`underlinePosition`,"underline-position":`underlinePosition`,underlinethickness:`underlineThickness`,"underline-thickness":`underlineThickness`,unicode:`unicode`,unicodebidi:`unicodeBidi`,"unicode-bidi":`unicodeBidi`,unicoderange:`unicodeRange`,"unicode-range":`unicodeRange`,unitsperem:`unitsPerEm`,"units-per-em":`unitsPerEm`,unselectable:`unselectable`,valphabetic:`vAlphabetic`,"v-alphabetic":`vAlphabetic`,values:`values`,vectoreffect:`vectorEffect`,"vector-effect":`vectorEffect`,version:`version`,vertadvy:`vertAdvY`,"vert-adv-y":`vertAdvY`,vertoriginx:`vertOriginX`,"vert-origin-x":`vertOriginX`,vertoriginy:`vertOriginY`,"vert-origin-y":`vertOriginY`,vhanging:`vHanging`,"v-hanging":`vHanging`,videographic:`vIdeographic`,"v-ideographic":`vIdeographic`,viewbox:`viewBox`,viewtarget:`viewTarget`,visibility:`visibility`,vmathematical:`vMathematical`,"v-mathematical":`vMathematical`,vocab:`vocab`,widths:`widths`,wordspacing:`wordSpacing`,"word-spacing":`wordSpacing`,writingmode:`writingMode`,"writing-mode":`writingMode`,x1:`x1`,x2:`x2`,x:`x`,xchannelselector:`xChannelSelector`,xheight:`xHeight`,"x-height":`xHeight`,xlinkactuate:`xlinkActuate`,"xlink:actuate":`xlinkActuate`,xlinkarcrole:`xlinkArcrole`,"xlink:arcrole":`xlinkArcrole`,xlinkhref:`xlinkHref`,"xlink:href":`xlinkHref`,xlinkrole:`xlinkRole`,"xlink:role":`xlinkRole`,xlinkshow:`xlinkShow`,"xlink:show":`xlinkShow`,xlinktitle:`xlinkTitle`,"xlink:title":`xlinkTitle`,xlinktype:`xlinkType`,"xlink:type":`xlinkType`,xmlbase:`xmlBase`,"xml:base":`xmlBase`,xmllang:`xmlLang`,"xml:lang":`xmlLang`,xmlns:`xmlns`,"xml:space":`xmlSpace`,xmlnsxlink:`xmlnsXlink`,"xmlns:xlink":`xmlnsXlink`,xmlspace:`xmlSpace`,y1:`y1`,y2:`y2`,y:`y`,ychannelselector:`yChannelSelector`,z:`z`,zoomandpan:`zoomAndPan`},Vm={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0,"aria-braillelabel":0,"aria-brailleroledescription":0,"aria-colindextext":0,"aria-rowindextext":0},Hm={},Um=RegExp(`^(aria)-[: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]*$`),Wm=RegExp(`^(aria)[A-Z][: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]*$`),Gm=!1,Km={},qm=/^on./,Jm=/^on[^A-Z]/,Ym=RegExp(`^(aria)-[: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]*$`),Xm=RegExp(`^(aria)[A-Z][: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]*$`),Zm=/^[\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,Qm=null,$m=null,eh=null,th=!1,nh=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),rh=!1;if(nh)try{var ih={};Object.defineProperty(ih,"passive",{get:function(){rh=!0}}),window.addEventListener(`test`,ih,ih),window.removeEventListener(`test`,ih,ih)}catch{rh=!1}var ah=null,oh=null,sh=null,ch={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},lh=vn(ch),uh=L({},ch,{view:0,detail:0}),dh=vn(uh),fh,ph,mh,hh=L({},uh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:bn,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!==mh&&(mh&&e.type===`mousemove`?(fh=e.screenX-mh.screenX,ph=e.screenY-mh.screenY):ph=fh=0,mh=e),fh)},movementY:function(e){return`movementY`in e?e.movementY:ph}}),gh=vn(hh),_h=vn(L({},hh,{dataTransfer:0})),vh=vn(L({},uh,{relatedTarget:0})),yh=vn(L({},ch,{animationName:0,elapsedTime:0,pseudoElement:0})),bh=vn(L({},ch,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),xh=vn(L({},ch,{data:0})),Sh=xh,Ch={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},wh={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`},Th={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`},Eh=vn(L({},uh,{key:function(e){if(e.key){var t=Ch[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=hn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?wh[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:bn,charCode:function(e){return e.type===`keypress`?hn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?hn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Dh=vn(L({},hh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Oh=vn(L({},uh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:bn})),kh=vn(L({},ch,{propertyName:0,elapsedTime:0,pseudoElement:0})),Ah=vn(L({},hh,{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})),jh=vn(L({},ch,{newState:0,oldState:0})),Mh=[9,13,27,32],Nh=229,Ph=nh&&`CompositionEvent`in window,Fh=null;nh&&`documentMode`in document&&(Fh=document.documentMode);var Ih=nh&&`TextEvent`in window&&!Fh,Lh=nh&&(!Ph||Fh&&8<Fh&&11>=Fh),Rh=32,zh=String.fromCharCode(Rh),Bh=!1,Vh=!1,Hh={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},Uh=null,Wh=null,Gh=!1;nh&&(Gh=En(`input`)&&(!document.documentMode||9<document.documentMode));var Kh=typeof Object.is==`function`?Object.is:Ln,qh=nh&&`documentMode`in document&&11>=document.documentMode,Jh=null,Yh=null,Xh=null,Zh=!1,Qh={animationend:Gn(`Animation`,`AnimationEnd`),animationiteration:Gn(`Animation`,`AnimationIteration`),animationstart:Gn(`Animation`,`AnimationStart`),transitionrun:Gn(`Transition`,`TransitionRun`),transitionstart:Gn(`Transition`,`TransitionStart`),transitioncancel:Gn(`Transition`,`TransitionCancel`),transitionend:Gn(`Transition`,`TransitionEnd`)},$h={},eg={};nh&&(eg=document.createElement(`div`).style,`AnimationEvent`in window||(delete Qh.animationend.animation,delete Qh.animationiteration.animation,delete Qh.animationstart.animation),`TransitionEvent`in window||delete Qh.transitionend.transition);var tg=Kn(`animationend`),ng=Kn(`animationiteration`),rg=Kn(`animationstart`),ig=Kn(`transitionrun`),ag=Kn(`transitionstart`),og=Kn(`transitioncancel`),sg=Kn(`transitionend`),cg=new Map,lg=`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(` `);lg.push(`scrollEnd`);var ug=0;if(typeof performance==`object`&&typeof performance.now==`function`)var dg=performance,fg=function(){return dg.now()};else{var pg=Date;fg=function(){return pg.now()}}var mg=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)},hg=`This object has been omitted by React in the console log to avoid sending too much data from the server. Try logging smaller or more specific objects.`,gg=0,_g=1,vg=2,yg=3,bg=`–\xA0`,xg=`+\xA0`,Sg=` \xA0`,Cg=typeof console<`u`&&typeof console.timeStamp==`function`&&typeof performance<`u`&&typeof performance.measure==`function`,wg=`Components ⚛`,B=`Scheduler ⚛`,V=`Blocking`,Tg=!1,Eg={color:`primary`,properties:null,tooltipText:``,track:wg},Dg={start:-0,end:-0,detail:{devtools:Eg}},Og=[`Changed Props`,``],kg=`This component received deeply equal props. It might benefit from useMemo or the React Compiler in its owner.`,Ag=[`Changed Props`,kg],jg=1,Mg=2,Ng=[],Pg=0,Fg=0,Ig={};Object.freeze(Ig);var Lg=null,Rg=null,H=0,zg=1,U=2,Bg=8,Vg=16,Hg=32,Ug=!1;try{Object.preventExtensions({})}catch{Ug=!0}var Wg=new WeakMap,Gg=[],Kg=0,qg=null,Jg=0,Yg=[],Xg=0,Zg=null,Qg=1,$g=``,e_=null,t_=null,W=!1,n_=!1,r_=null,i_=null,a_=!1,o_=Error(`Hydration Mismatch Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),s_=ce(null),c_=ce(null),l_={},u_=null,d_=null,f_=!1,p_=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()})}},m_=Af.unstable_scheduleCallback,h_=Af.unstable_NormalPriority,g_={$$typeof:Bf,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0,_currentRenderer:null,_currentRenderer2:null},__=Af.unstable_now,v_=console.createTask?console.createTask:function(){return null},y_=1,b_=2,x_=-0,S_=-0,C_=-0,w_=null,T_=-1.1,E_=-0,D_=-0,G=-1.1,K=-1.1,O_=null,k_=!1,A_=-0,j_=-1.1,M_=null,N_=0,P_=null,F_=null,I_=-1.1,L_=null,R_=-1.1,z_=-1.1,B_=-0,V_=-1.1,H_=-1.1,U_=0,W_=null,G_=null,K_=null,q_=-1.1,J_=null,Y_=-1.1,X_=-1.1,Z_=-0,Q_=-0,$_=0,ev=null,tv=0,nv=-1.1,rv=!1,iv=!1,av=null,ov=0,sv=0,cv=null,lv=R.S;R.S=function(e,t){if(_x=wp(),typeof t==`object`&&t&&typeof t.then==`function`){if(0>V_&&0>H_){V_=__();var n=Ju(),r=qu();(n!==Y_||r!==J_)&&(Y_=-1.1),q_=n,J_=r}Ai(e,t)}lv!==null&&lv(e,t)};var uv=ce(null),dv={recordUnsafeLifecycleWarnings:function(){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}},fv=[],pv=[],mv=[],hv=[],gv=[],_v=[],vv=new Set;dv.recordUnsafeLifecycleWarnings=function(e,t){vv.has(e.type)||(typeof t.componentWillMount==`function`&&!0!==t.componentWillMount.__suppressDeprecationWarning&&fv.push(e),e.mode&Bg&&typeof t.UNSAFE_componentWillMount==`function`&&pv.push(e),typeof t.componentWillReceiveProps==`function`&&!0!==t.componentWillReceiveProps.__suppressDeprecationWarning&&mv.push(e),e.mode&Bg&&typeof t.UNSAFE_componentWillReceiveProps==`function`&&hv.push(e),typeof t.componentWillUpdate==`function`&&!0!==t.componentWillUpdate.__suppressDeprecationWarning&&gv.push(e),e.mode&Bg&&typeof t.UNSAFE_componentWillUpdate==`function`&&_v.push(e))},dv.flushPendingUnsafeLifecycleWarnings=function(){var e=new Set;0<fv.length&&(fv.forEach(function(t){e.add(S(t)||`Component`),vv.add(t.type)}),fv=[]);var t=new Set;0<pv.length&&(pv.forEach(function(e){t.add(S(e)||`Component`),vv.add(e.type)}),pv=[]);var n=new Set;0<mv.length&&(mv.forEach(function(e){n.add(S(e)||`Component`),vv.add(e.type)}),mv=[]);var r=new Set;0<hv.length&&(hv.forEach(function(e){r.add(S(e)||`Component`),vv.add(e.type)}),hv=[]);var i=new Set;0<gv.length&&(gv.forEach(function(e){i.add(S(e)||`Component`),vv.add(e.type)}),gv=[]);var a=new Set;if(0<_v.length&&(_v.forEach(function(e){a.add(S(e)||`Component`),vv.add(e.type)}),_v=[]),0<t.size){var o=p(t);console.error(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
189
+
190
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
191
+
192
+ Please update the following components: %s`,o)}0<r.size&&(o=p(r),console.error(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
193
+
194
+ * Move data fetching code or side effects to componentDidUpdate.
195
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
196
+
197
+ Please update the following components: %s`,o)),0<a.size&&(o=p(a),console.error(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://react.dev/link/unsafe-component-lifecycles for details.
198
+
199
+ * Move data fetching code or side effects to componentDidUpdate.
200
+
201
+ Please update the following components: %s`,o)),0<e.size&&(o=p(e),console.warn(`componentWillMount has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
202
+
203
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
204
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
205
+
206
+ Please update the following components: %s`,o)),0<n.size&&(o=p(n),console.warn(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
207
+
208
+ * Move data fetching code or side effects to componentDidUpdate.
209
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://react.dev/link/derived-state
210
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
211
+
212
+ Please update the following components: %s`,o)),0<i.size&&(o=p(i),console.warn(`componentWillUpdate has been renamed, and is not recommended for use. See https://react.dev/link/unsafe-component-lifecycles for details.
213
+
214
+ * Move data fetching code or side effects to componentDidUpdate.
215
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
216
+
217
+ Please update the following components: %s`,o))};var yv=new Map,bv=new Set;dv.recordLegacyContextWarning=function(e,t){for(var n=null,r=e;r!==null;)r.mode&Bg&&(n=r),r=r.return;n===null?console.error(`Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.`):!bv.has(e.type)&&(r=yv.get(n),e.type.contextTypes!=null||e.type.childContextTypes!=null||t!==null&&typeof t.getChildContext==`function`)&&(r===void 0&&(r=[],yv.set(n,r)),r.push(e))},dv.flushLegacyContextWarning=function(){yv.forEach(function(e){if(e.length!==0){var t=e[0],n=new Set;e.forEach(function(e){n.add(S(e)||`Component`),bv.add(e.type)});var r=p(n);E(t,function(){console.error(`Legacy context API has been detected within a strict-mode tree.
218
+
219
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
220
+
221
+ Please update the following components: %s
222
+
223
+ Learn more about this warning here: https://react.dev/link/legacy-context`,r)})}})},dv.discardPendingWarnings=function(){fv=[],pv=[],mv=[],hv=[],gv=[],_v=[],yv=new Map};var xv={react_stack_bottom_frame:function(e,t,n){var r=vp;vp=!0;try{return e(t,n)}finally{vp=r}}},Sv=xv.react_stack_bottom_frame.bind(xv),Cv={react_stack_bottom_frame:function(e){var t=vp;vp=!0;try{return e.render()}finally{vp=t}}},wv=Cv.react_stack_bottom_frame.bind(Cv),Tv={react_stack_bottom_frame:function(e,t){try{t.componentDidMount()}catch(t){F(e,e.return,t)}}},Ev=Tv.react_stack_bottom_frame.bind(Tv),Dv={react_stack_bottom_frame:function(e,t,n,r,i){try{t.componentDidUpdate(n,r,i)}catch(t){F(e,e.return,t)}}},Ov=Dv.react_stack_bottom_frame.bind(Dv),kv={react_stack_bottom_frame:function(e,t){var n=t.stack;e.componentDidCatch(t.value,{componentStack:n===null?``:n})}},Av=kv.react_stack_bottom_frame.bind(kv),jv={react_stack_bottom_frame:function(e,t,n){try{n.componentWillUnmount()}catch(n){F(e,t,n)}}},Mv=jv.react_stack_bottom_frame.bind(jv),Nv={react_stack_bottom_frame:function(e){var t=e.create;return e=e.inst,t=t(),e.destroy=t}},Pv=Nv.react_stack_bottom_frame.bind(Nv),Fv={react_stack_bottom_frame:function(e,t,n){try{n()}catch(n){F(e,t,n)}}},Iv=Fv.react_stack_bottom_frame.bind(Fv),Lv={react_stack_bottom_frame:function(e){var t=e._init;return t(e._payload)}},Rv=Lv.react_stack_bottom_frame.bind(Lv),zv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `use` to interrupt the current render. You must either rethrow it immediately, or move the `use` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary, or call the promise's `.catch` method and pass the result to `use`."),Bv=Error(`Suspense Exception: This is not a real error, and should not leak into userspace. If you're seeing this, it's likely a bug in React.`),Vv=Error("Suspense Exception: This is not a real error! It's an implementation detail of `useActionState` to interrupt the current render. You must either rethrow it immediately, or move the `useActionState` call outside of the `try/catch` block. Capturing without rethrowing will lead to unexpected behavior.\n\nTo handle async errors, wrap your component in an error boundary."),Hv={then:function(){console.error(`Internal React error: A listener was unexpectedly attached to a "noop" thenable. This is a bug in React. Please file an issue.`)}},Uv=null,Wv=!1,Gv=null,Kv=0,q=null,qv,Jv=qv=!1,Yv={},Xv={},Zv={};d=function(e,t,n){if(typeof n==`object`&&n&&n._store&&(!n._store.validated&&n.key==null||n._store.validated===2)){if(typeof n._store!=`object`)throw Error(`React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.`);n._store.validated=1;var r=S(e),i=r||`null`;if(!Yv[i]){Yv[i]=!0,n=n._owner,e=e._debugOwner;var a=``;e&&typeof e.tag==`number`&&(i=S(e))&&(a=`
224
+
225
+ Check the render method of \``+i+"`."),a||r&&(a=`
226
+
227
+ Check the top-level render call using <`+r+`>.`);var o=``;n!=null&&e!==n&&(r=null,typeof n.tag==`number`?r=S(n):typeof n.name==`string`&&(r=n.name),r&&(o=` It was passed a child from `+r+`.`)),E(t,function(){console.error(`Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.`,a,o)})}}};var Qv=Qi(!0),$v=Qi(!1),ey=0,ty=1,ny=2,ry=3,iy=!1,ay=!1,oy=null,sy=!1,cy=ce(null),ly=ce(0),uy=ce(null),dy=null,fy=1,py=2,my=ce(0),hy=0,gy=1,_y=2,vy=4,yy=8,by,xy=new Set,Sy=new Set,Cy=new Set,wy=new Set,Ty=0,J=null,Ey=null,Dy=null,Oy=!1,ky=!1,Ay=!1,jy=0,My=0,Ny=null,Py=0,Fy=25,Y=null,Iy=null,Ly=-1,Ry=!1,zy={readContext:ai,use:Pa,useCallback:Sa,useContext:Sa,useEffect:Sa,useImperativeHandle:Sa,useLayoutEffect:Sa,useInsertionEffect:Sa,useMemo:Sa,useReducer:Sa,useRef:Sa,useState:Sa,useDebugValue:Sa,useDeferredValue:Sa,useTransition:Sa,useSyncExternalStore:Sa,useId:Sa,useHostTransitionStatus:Sa,useFormState:Sa,useActionState:Sa,useOptimistic:Sa,useMemoCache:Sa,useCacheRefresh:Sa};zy.useEffectEvent=Sa;var By=null,Vy=null,Hy=null,Uy=null,Wy=null,Gy=null,Ky=null;By={readContext:function(e){return ai(e)},use:Pa,useCallback:function(e,t){return Y=`useCallback`,j(),ba(t),To(e,t)},useContext:function(e){return Y=`useContext`,j(),ai(e)},useEffect:function(e,t){return Y=`useEffect`,j(),ba(t),_o(e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,j(),ba(n),Co(e,t,n)},useInsertionEffect:function(e,t){Y=`useInsertionEffect`,j(),ba(t),ho(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,j(),ba(t),xo(e,t)},useMemo:function(e,t){Y=`useMemo`,j(),ba(t);var n=R.H;R.H=Wy;try{return Do(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,j();var r=R.H;R.H=Wy;try{return La(e,t,n)}finally{R.H=r}},useRef:function(e){return Y=`useRef`,j(),mo(e)},useState:function(e){Y=`useState`,j();var t=R.H;R.H=Wy;try{return Ya(e)}finally{R.H=t}},useDebugValue:function(){Y=`useDebugValue`,j()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,j(),ko(e,t)},useTransition:function(){return Y=`useTransition`,j(),zo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,j(),Va(e,t,n)},useId:function(){return Y=`useId`,j(),Uo()},useFormState:function(e,t){return Y=`useFormState`,j(),xa(),so(e,t)},useActionState:function(e,t){return Y=`useActionState`,j(),so(e,t)},useOptimistic:function(e){return Y=`useOptimistic`,j(),Xa(e)},useHostTransitionStatus:Ho,useMemoCache:Fa,useCacheRefresh:function(){return Y=`useCacheRefresh`,j(),Wo()},useEffectEvent:function(e){return Y=`useEffectEvent`,j(),yo(e)}},Vy={readContext:function(e){return ai(e)},use:Pa,useCallback:function(e,t){return Y=`useCallback`,M(),To(e,t)},useContext:function(e){return Y=`useContext`,M(),ai(e)},useEffect:function(e,t){return Y=`useEffect`,M(),_o(e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,M(),Co(e,t,n)},useInsertionEffect:function(e,t){Y=`useInsertionEffect`,M(),ho(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,M(),xo(e,t)},useMemo:function(e,t){Y=`useMemo`,M();var n=R.H;R.H=Wy;try{return Do(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,M();var r=R.H;R.H=Wy;try{return La(e,t,n)}finally{R.H=r}},useRef:function(e){return Y=`useRef`,M(),mo(e)},useState:function(e){Y=`useState`,M();var t=R.H;R.H=Wy;try{return Ya(e)}finally{R.H=t}},useDebugValue:function(){Y=`useDebugValue`,M()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,M(),ko(e,t)},useTransition:function(){return Y=`useTransition`,M(),zo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,M(),Va(e,t,n)},useId:function(){return Y=`useId`,M(),Uo()},useActionState:function(e,t){return Y=`useActionState`,M(),so(e,t)},useFormState:function(e,t){return Y=`useFormState`,M(),xa(),so(e,t)},useOptimistic:function(e){return Y=`useOptimistic`,M(),Xa(e)},useHostTransitionStatus:Ho,useMemoCache:Fa,useCacheRefresh:function(){return Y=`useCacheRefresh`,M(),Wo()},useEffectEvent:function(e){return Y=`useEffectEvent`,M(),yo(e)}},Hy={readContext:function(e){return ai(e)},use:Pa,useCallback:function(e,t){return Y=`useCallback`,M(),Eo(e,t)},useContext:function(e){return Y=`useContext`,M(),ai(e)},useEffect:function(e,t){Y=`useEffect`,M(),go(2048,yy,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,M(),wo(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,M(),go(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,M(),go(4,vy,e,t)},useMemo:function(e,t){Y=`useMemo`,M();var n=R.H;R.H=Gy;try{return Oo(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,M();var r=R.H;R.H=Gy;try{return Ra(e,t,n)}finally{R.H=r}},useRef:function(){return Y=`useRef`,M(),N().memoizedState},useState:function(){Y=`useState`,M();var e=R.H;R.H=Gy;try{return Ra(Ia)}finally{R.H=e}},useDebugValue:function(){Y=`useDebugValue`,M()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,M(),Ao(e,t)},useTransition:function(){return Y=`useTransition`,M(),Bo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,M(),Ha(e,t,n)},useId:function(){return Y=`useId`,M(),N().memoizedState},useFormState:function(e){return Y=`useFormState`,M(),xa(),co(e)},useActionState:function(e){return Y=`useActionState`,M(),co(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,M(),Za(e,t)},useHostTransitionStatus:Ho,useMemoCache:Fa,useCacheRefresh:function(){return Y=`useCacheRefresh`,M(),N().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,M(),bo(e)}},Uy={readContext:function(e){return ai(e)},use:Pa,useCallback:function(e,t){return Y=`useCallback`,M(),Eo(e,t)},useContext:function(e){return Y=`useContext`,M(),ai(e)},useEffect:function(e,t){Y=`useEffect`,M(),go(2048,yy,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,M(),wo(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,M(),go(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,M(),go(4,vy,e,t)},useMemo:function(e,t){Y=`useMemo`,M();var n=R.H;R.H=Ky;try{return Oo(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,M();var r=R.H;R.H=Ky;try{return Ba(e,t,n)}finally{R.H=r}},useRef:function(){return Y=`useRef`,M(),N().memoizedState},useState:function(){Y=`useState`,M();var e=R.H;R.H=Ky;try{return Ba(Ia)}finally{R.H=e}},useDebugValue:function(){Y=`useDebugValue`,M()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,M(),jo(e,t)},useTransition:function(){return Y=`useTransition`,M(),Vo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,M(),Ha(e,t,n)},useId:function(){return Y=`useId`,M(),N().memoizedState},useFormState:function(e){return Y=`useFormState`,M(),xa(),fo(e)},useActionState:function(e){return Y=`useActionState`,M(),fo(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,M(),$a(e,t)},useHostTransitionStatus:Ho,useMemoCache:Fa,useCacheRefresh:function(){return Y=`useCacheRefresh`,M(),N().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,M(),bo(e)}},Wy={readContext:function(e){return l(),ai(e)},use:function(e){return c(),Pa(e)},useCallback:function(e,t){return Y=`useCallback`,c(),j(),To(e,t)},useContext:function(e){return Y=`useContext`,c(),j(),ai(e)},useEffect:function(e,t){return Y=`useEffect`,c(),j(),_o(e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,c(),j(),Co(e,t,n)},useInsertionEffect:function(e,t){Y=`useInsertionEffect`,c(),j(),ho(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,c(),j(),xo(e,t)},useMemo:function(e,t){Y=`useMemo`,c(),j();var n=R.H;R.H=Wy;try{return Do(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,c(),j();var r=R.H;R.H=Wy;try{return La(e,t,n)}finally{R.H=r}},useRef:function(e){return Y=`useRef`,c(),j(),mo(e)},useState:function(e){Y=`useState`,c(),j();var t=R.H;R.H=Wy;try{return Ya(e)}finally{R.H=t}},useDebugValue:function(){Y=`useDebugValue`,c(),j()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,c(),j(),ko(e,t)},useTransition:function(){return Y=`useTransition`,c(),j(),zo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,c(),j(),Va(e,t,n)},useId:function(){return Y=`useId`,c(),j(),Uo()},useFormState:function(e,t){return Y=`useFormState`,c(),j(),so(e,t)},useActionState:function(e,t){return Y=`useActionState`,c(),j(),so(e,t)},useOptimistic:function(e){return Y=`useOptimistic`,c(),j(),Xa(e)},useMemoCache:function(e){return c(),Fa(e)},useHostTransitionStatus:Ho,useCacheRefresh:function(){return Y=`useCacheRefresh`,j(),Wo()},useEffectEvent:function(e){return Y=`useEffectEvent`,c(),j(),yo(e)}},Gy={readContext:function(e){return l(),ai(e)},use:function(e){return c(),Pa(e)},useCallback:function(e,t){return Y=`useCallback`,c(),M(),Eo(e,t)},useContext:function(e){return Y=`useContext`,c(),M(),ai(e)},useEffect:function(e,t){Y=`useEffect`,c(),M(),go(2048,yy,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,c(),M(),wo(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,c(),M(),go(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,c(),M(),go(4,vy,e,t)},useMemo:function(e,t){Y=`useMemo`,c(),M();var n=R.H;R.H=Gy;try{return Oo(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,c(),M();var r=R.H;R.H=Gy;try{return Ra(e,t,n)}finally{R.H=r}},useRef:function(){return Y=`useRef`,c(),M(),N().memoizedState},useState:function(){Y=`useState`,c(),M();var e=R.H;R.H=Gy;try{return Ra(Ia)}finally{R.H=e}},useDebugValue:function(){Y=`useDebugValue`,c(),M()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,c(),M(),Ao(e,t)},useTransition:function(){return Y=`useTransition`,c(),M(),Bo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,c(),M(),Ha(e,t,n)},useId:function(){return Y=`useId`,c(),M(),N().memoizedState},useFormState:function(e){return Y=`useFormState`,c(),M(),co(e)},useActionState:function(e){return Y=`useActionState`,c(),M(),co(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,c(),M(),Za(e,t)},useMemoCache:function(e){return c(),Fa(e)},useHostTransitionStatus:Ho,useCacheRefresh:function(){return Y=`useCacheRefresh`,M(),N().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,c(),M(),bo(e)}},Ky={readContext:function(e){return l(),ai(e)},use:function(e){return c(),Pa(e)},useCallback:function(e,t){return Y=`useCallback`,c(),M(),Eo(e,t)},useContext:function(e){return Y=`useContext`,c(),M(),ai(e)},useEffect:function(e,t){Y=`useEffect`,c(),M(),go(2048,yy,e,t)},useImperativeHandle:function(e,t,n){return Y=`useImperativeHandle`,c(),M(),wo(e,t,n)},useInsertionEffect:function(e,t){return Y=`useInsertionEffect`,c(),M(),go(4,_y,e,t)},useLayoutEffect:function(e,t){return Y=`useLayoutEffect`,c(),M(),go(4,vy,e,t)},useMemo:function(e,t){Y=`useMemo`,c(),M();var n=R.H;R.H=Gy;try{return Oo(e,t)}finally{R.H=n}},useReducer:function(e,t,n){Y=`useReducer`,c(),M();var r=R.H;R.H=Gy;try{return Ba(e,t,n)}finally{R.H=r}},useRef:function(){return Y=`useRef`,c(),M(),N().memoizedState},useState:function(){Y=`useState`,c(),M();var e=R.H;R.H=Gy;try{return Ba(Ia)}finally{R.H=e}},useDebugValue:function(){Y=`useDebugValue`,c(),M()},useDeferredValue:function(e,t){return Y=`useDeferredValue`,c(),M(),jo(e,t)},useTransition:function(){return Y=`useTransition`,c(),M(),Vo()},useSyncExternalStore:function(e,t,n){return Y=`useSyncExternalStore`,c(),M(),Ha(e,t,n)},useId:function(){return Y=`useId`,c(),M(),N().memoizedState},useFormState:function(e){return Y=`useFormState`,c(),M(),fo(e)},useActionState:function(e){return Y=`useActionState`,c(),M(),fo(e)},useOptimistic:function(e,t){return Y=`useOptimistic`,c(),M(),$a(e,t)},useMemoCache:function(e){return c(),Fa(e)},useHostTransitionStatus:Ho,useCacheRefresh:function(){return Y=`useCacheRefresh`,M(),N().memoizedState},useEffectEvent:function(e){return Y=`useEffectEvent`,c(),M(),bo(e)}};var qy={},Jy=new Set,Yy=new Set,Xy=new Set,Zy=new Set,Qy=new Set,$y=new Set,eb=new Set,tb=new Set,nb=new Set,rb=new Set;Object.freeze(qy);var ib={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=nl(e),i=na(r);i.payload=t,n!=null&&($o(n),i.callback=n),t=ra(e,i,r),t!==null&&(di(r,`this.setState()`,e),il(t,e,r),ia(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=nl(e),i=na(r);i.tag=ty,i.payload=t,n!=null&&($o(n),i.callback=n),t=ra(e,i,r),t!==null&&(di(r,`this.replaceState()`,e),il(t,e,r),ia(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=nl(e),r=na(n);r.tag=ny,t!=null&&($o(t),r.callback=t),t=ra(e,r,n),t!==null&&(di(n,`this.forceUpdate()`,e),il(t,e,n),ia(t,e,n))}},ab=null,ob=null,sb=Error(`This is not a real error. It's an implementation detail of React's selective hydration feature. If this leaks into userspace, it's a bug in React. Please file an issue.`),cb=!1,lb={},ub={},db={},fb={},pb=!1,mb={},hb={},gb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null},_b=!1,vb=null;vb=new Set;var yb=!1,bb=!1,xb=!1,Sb=typeof WeakSet==`function`?WeakSet:Set,Cb=null,wb=null,Tb=null,Eb=null,Db=!1,Ob=null,kb=!1,Ab=8192,jb={getCacheForType:function(e){var t=ai(g_),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return ai(g_).controller.signal},getOwner:function(){return _p}};if(typeof Symbol==`function`&&Symbol.for){var Mb=Symbol.for;Mb(`selector.component`),Mb(`selector.has_pseudo_class`),Mb(`selector.role`),Mb(`selector.test_id`),Mb(`selector.text`)}var Nb=[],Pb=typeof WeakMap==`function`?WeakMap:Map,Fb=0,Ib=2,Lb=4,Rb=0,zb=1,Bb=2,Vb=3,Hb=4,Ub=6,Wb=5,X=Fb,Gb=null,Z=null,Q=0,Kb=0,qb=1,Jb=2,Yb=3,Xb=4,Zb=5,Qb=6,$b=7,ex=8,tx=9,$=Kb,nx=null,rx=!1,ix=!1,ax=!1,ox=0,sx=Rb,cx=0,lx=0,ux=0,dx=0,fx=0,px=null,mx=null,hx=!1,gx=0,_x=0,vx=300,yx=1/0,bx=500,xx=null,Sx=null,Cx=null,wx=0,Tx=1,Ex=2,Dx=3,Ox=0,kx=1,Ax=2,jx=3,Mx=4,Nx=5,Px=0,Fx=null,Ix=null,Lx=0,Rx=0,zx=-0,Bx=null,Vx=null,Hx=null,Ux=wx,Wx=null,Gx=50,Kx=0,qx=null,Jx=!1,Yx=!1,Xx=50,Zx=0,Qx=null,$x=!1,eS=null,tS=!1,nS=new Set,rS={},iS=null,aS=null,oS=!1,sS=!1,cS=!1,lS=!1,uS=0,dS={};(function(){for(var e=0;e<lg.length;e++){var t=lg[e],n=t.toLowerCase();t=t[0].toUpperCase()+t.slice(1),qn(n,`on`+t)}qn(tg,`onAnimationEnd`),qn(ng,`onAnimationIteration`),qn(rg,`onAnimationStart`),qn(`dblclick`,`onDoubleClick`),qn(`focusin`,`onFocus`),qn(`focusout`,`onBlur`),qn(ig,`onTransitionRun`),qn(ag,`onTransitionStart`),qn(og,`onTransitionCancel`),qn(sg,`onTransitionEnd`)})(),it(`onMouseEnter`,[`mouseout`,`mouseover`]),it(`onMouseLeave`,[`mouseout`,`mouseover`]),it(`onPointerEnter`,[`pointerout`,`pointerover`]),it(`onPointerLeave`,[`pointerout`,`pointerover`]),rt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),rt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),rt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),rt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),rt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),rt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var fS=`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(` `),pS=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(fS)),mS=`_reactListening`+Math.random().toString(36).slice(2),hS=!1,gS=!1,_S=!1,vS=!1,yS=!1,bS=!1,xS=!1,SS={},CS=/\r\n?/g,wS=/\u0000|\uFFFD/g,TS=`http://www.w3.org/1999/xlink`,ES=`http://www.w3.org/XML/1998/namespace`,DS=`javascript:throw new Error('React form unexpectedly submitted.')`,OS=`suppressHydrationWarning`,kS=`&`,AS=`/&`,jS=`$`,MS=`/$`,NS=`$?`,PS=`$~`,FS=`$!`,IS=`html`,LS=`body`,RS=`head`,zS=`F!`,BS=`F`,VS=`loading`,HS=`style`,US=0,WS=1,GS=2,KS=null,qS=null,JS={dialog:!0,webview:!0},YS=null,XS=void 0,ZS=typeof setTimeout==`function`?setTimeout:void 0,QS=typeof clearTimeout==`function`?clearTimeout:void 0,$S=-1,eC=typeof Promise==`function`?Promise:void 0,tC=typeof queueMicrotask==`function`?queueMicrotask:eC===void 0?ZS:function(e){return eC.resolve(null).then(e).catch(Yu)},nC=null,rC=0,iC=1,aC=2,oC=3,sC=4,cC=new Map,lC=new Set,uC=z.d;z.d={f:function(){var e=uC.f(),t=ll();return e||t},r:function(e){var t=$e(e);t!==null&&t.tag===5&&t.type===`form`?Ro(t):uC.r(e)},D:function(e){uC.D(e),Md(`dns-prefetch`,e,null)},C:function(e,t){uC.C(e,t),Md(`preconnect`,e,t)},L:function(e,t,n){uC.L(e,t,n);var r=dC;if(r&&e&&t){var i=`link[rel="preload"][as="`+_t(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+_t(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+_t(n.imageSizes)+`"]`)):i+=`[href="`+_t(e)+`"]`;var a=i;switch(t){case`style`:a=Fd(e);break;case`script`:a=zd(e)}cC.has(a)||(e=L({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),cC.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Id(a))||t===`script`&&r.querySelector(Bd(a))||(t=r.createElement(`link`),Ou(t,`link`,e),nt(t),r.head.appendChild(t)))}},m:function(e,t){uC.m(e,t);var n=dC;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+_t(r)+`"][href="`+_t(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zd(e)}if(!cC.has(a)&&(e=L({rel:`modulepreload`,href:e},t),cC.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bd(a)))return}r=n.createElement(`link`),Ou(r,`link`,e),nt(r),n.head.appendChild(r)}}},X:function(e,t){uC.X(e,t);var n=dC;if(n&&e){var r=tt(n).hoistableScripts,i=zd(e),a=r.get(i);a||(a=n.querySelector(Bd(i)),a||(e=L({src:e,async:!0},t),(t=cC.get(i))&&Wd(e,t),a=n.createElement(`script`),nt(a),Ou(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){uC.S(e,t,n);var r=dC;if(r&&e){var i=tt(r).hoistableStyles,a=Fd(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:rC,preload:null};if(o=r.querySelector(Id(a)))s.loading=iC|sC;else{e=L({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=cC.get(a))&&Ud(e,n);var c=o=r.createElement(`link`);nt(c),Ou(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=iC}),c.addEventListener(`error`,function(){s.loading|=aC}),s.loading|=sC,Hd(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){uC.M(e,t);var n=dC;if(n&&e){var r=tt(n).hoistableScripts,i=zd(e),a=r.get(i);a||(a=n.querySelector(Bd(i)),a||(e=L({src:e,async:!0,type:`module`},t),(t=cC.get(i))&&Wd(e,t),a=n.createElement(`script`),nt(a),Ou(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}};var dC=typeof document>`u`?null:document,fC=null,pC=6e4,mC=800,hC=500,gC=0,_C=null,vC=null,yC=Zf,bC={$$typeof:Bf,Provider:null,Consumer:null,_currentValue:yC,_currentValue2:yC,_threadCount:0},xC=`%c%s%c`,SC=`background: #e6e6e6;background: light-dark(rgba(0,0,0,0.1), rgba(255,255,255,0.25));color: #000000;color: light-dark(#000000, #ffffff);border-radius: 2px`,CC=``,wC=` `,TC=Function.prototype.bind,EC=!1,DC=null,OC=null,kC=null,AC=null,jC=null,MC=null,NC=null,PC=null,FC=null,IC=null;DC=function(e,r,i,a){r=t(e,r),r!==null&&(i=n(r.memoizedState,i,0,a),r.memoizedState=i,r.baseState=i,e.memoizedProps=L({},e.memoizedProps),i=mr(e,2),i!==null&&il(i,e,2))},OC=function(e,n,r){n=t(e,n),n!==null&&(r=a(n.memoizedState,r,0),n.memoizedState=r,n.baseState=r,e.memoizedProps=L({},e.memoizedProps),r=mr(e,2),r!==null&&il(r,e,2))},kC=function(e,n,i,a){n=t(e,n),n!==null&&(i=r(n.memoizedState,i,a),n.memoizedState=i,n.baseState=i,e.memoizedProps=L({},e.memoizedProps),i=mr(e,2),i!==null&&il(i,e,2))},AC=function(e,t,r){e.pendingProps=n(e.memoizedProps,t,0,r),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=mr(e,2),t!==null&&il(t,e,2)},jC=function(e,t){e.pendingProps=a(e.memoizedProps,t,0),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=mr(e,2),t!==null&&il(t,e,2)},MC=function(e,t,n){e.pendingProps=r(e.memoizedProps,t,n),e.alternate&&(e.alternate.pendingProps=e.pendingProps),t=mr(e,2),t!==null&&il(t,e,2)},NC=function(e){var t=mr(e,2);t!==null&&il(t,e,2)},PC=function(e){var t=Re(),n=mr(e,t);n!==null&&il(n,e,t)},FC=function(e){s=e},IC=function(e){o=e};var LC=!0,RC=null,zC=!1,BC=null,VC=null,HC=null,UC=new Map,WC=new Map,GC=[],KC=`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(` `),qC=null;if(Of.prototype.render=Df.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(`Cannot update an unmounted root.`);var n=arguments;typeof n[1]==`function`?console.error(`does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`):b(n[1])?console.error(`You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root.`):n[1]!==void 0&&console.error(`You passed a second argument to root.render(...) but it only accepts one argument.`),n=e;var r=t.current;rf(r,nl(r),n,t,null,null)},Of.prototype.unmount=Df.prototype.unmount=function(){var e=arguments;if(typeof e[0]==`function`&&console.error(`does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().`),e=this._internalRoot,e!==null){this._internalRoot=null;var t=e.containerInfo;(X&(Ib|Lb))!==Fb&&console.error(`Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition.`),rf(e.current,2,null,e,null,null),ll(),t[Xp]=null}},Of.prototype.unstable_scheduleHydration=function(e){if(e){var t=Ye();e={blockedOn:null,target:e,priority:t};for(var n=0;n<GC.length&&t!==0&&t<GC[n].priority;n++);GC.splice(n,0,e),n===0&&yf(e)}},(function(){var e=jf.version;if(e!==`19.2.8`)throw Error(`Incompatible React versions: The "react" and "react-dom" packages must have the exact same version. Instead got:
228
+ - react: `+(e+`
229
+ - react-dom: 19.2.8
230
+ Learn more: https://react.dev/warnings/version-mismatch`))})(),typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://react.dev/link/react-polyfills`),z.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(`Unable to find node on an unmounted component.`):(e=Object.keys(e).join(`,`),Error(`Argument appears to not be a ReactComponent. Keys: `+e));return e=ie(t),e=e===null?null:ae(e),e=e===null?null:e.stateNode,e},!(function(){var e={bundleType:1,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:R,reconcilerVersion:`19.2.8`};return e.overrideHookState=DC,e.overrideHookStateDeletePath=OC,e.overrideHookStateRenamePath=kC,e.overrideProps=AC,e.overridePropsDeletePath=jC,e.overridePropsRenamePath=MC,e.scheduleUpdate=NC,e.scheduleRetry=PC,e.setErrorHandler=FC,e.setSuspenseHandler=IC,e.scheduleRefresh=v,e.scheduleRoot=_,e.setRefreshHandler=y,e.getCurrentFiber=lf,je(e)})()&&nh&&window.top===window.self&&(-1<navigator.userAgent.indexOf(`Chrome`)&&navigator.userAgent.indexOf(`Edge`)===-1||-1<navigator.userAgent.indexOf(`Firefox`))){var JC=window.location.protocol;/^(https?|file):$/.test(JC)&&console.info(`%cDownload the React DevTools for a better development experience: https://react.dev/link/react-devtools`+(JC===`file:`?`
231
+ You might need to use a local HTTP server (instead of file://): https://react.dev/link/react-devtools-faq`:``),`font-weight:bold`)}e.createRoot=function(e,t){if(!b(e))throw Error(`Target container is not a DOM element.`);kf(e);var n=!1,r=``,i=is,a=as,o=os;return t!=null&&(t.hydrate?console.warn(`hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead.`):typeof t==`object`&&t&&t.$$typeof===Pf&&console.error(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
232
+
233
+ let root = createRoot(domContainer);
234
+ root.render(<App />);`),!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(i=t.onUncaughtError),t.onCaughtError!==void 0&&(a=t.onCaughtError),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=tf(e,1,!1,null,null,n,r,null,i,a,o,Ef),e[Xp]=t.current,fu(e),new Df(t)},e.hydrateRoot=function(e,t,n){if(!b(e))throw Error(`Target container is not a DOM element.`);kf(e),t===void 0&&console.error(`Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)`);var r=!1,i=``,a=is,o=as,s=os,c=null;return n!=null&&(!0===n.unstable_strictMode&&(r=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onUncaughtError!==void 0&&(a=n.onUncaughtError),n.onCaughtError!==void 0&&(o=n.onCaughtError),n.onRecoverableError!==void 0&&(s=n.onRecoverableError),n.formState!==void 0&&(c=n.formState)),t=tf(e,1,!0,t,n??null,r,i,c,a,o,s,Ef),t.context=nf(null),n=t.current,r=nl(n),r=Ge(r),i=na(r),i.callback=null,ra(n,i,r),di(r,`hydrateRoot()`,null),n=r,t.current.lanes=n,Be(t,n),Xl(t),e[Xp]=t.current,fu(e),new Of(t)},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),v=o(((e,t)=>{t.exports=_()})),y=l(f(),1),b=v(),ee=/^([a-z0-9][a-z0-9_-]*):([a-z0-9][a-z0-9_-]*)$/i,te=[`database`,`queue`,`user`,`choice`,`success`,`warning`,`gateway`,`event`,`server`,`note`,`service`],ne={cart:`lucide:shopping-cart`,cloud:`lucide:cloud`,api:`lucide:waypoints`,person:`lucide:user`,actor:`lucide:user`,lambda:`logos:aws-lambda`,aws:`logos:aws`,azure:`logos:microsoft-azure`,gcp:`logos:google-cloud`,k8s:`logos:kubernetes`,docker:`logos:docker`,postgres:`logos:postgresql`,redis:`logos:redis`,kafka:`logos:kafka`,github:`logos:github-icon`,vercel:`simple-icons:vercel`};function re(e){let t=e.trim();return!t||t===`none`?`none`:ne[t.toLowerCase()]||(ee.test(t)?t.toLowerCase():te.includes(t.toLowerCase())?`builtin:${t.toLowerCase()}`:`lucide:${t.toLowerCase()}`)}function ie(e){let t=re(e);if(t===`none`)return null;let n=ee.exec(t);return n?{prefix:n[1].toLowerCase(),name:n[2].toLowerCase(),id:t}:null}function ae(){return te.map(e=>`builtin:${e}`)}var oe=`0 0 20 20`;function x(e){return{body:`<g class="flow-node-icon-glyph" fill="none" stroke="currentColor" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round" opacity="0.88">${e}</g>`,viewBox:oe,width:20,height:20,paint:`stroke`}}var se={database:x(`<ellipse cx="10" cy="4" rx="8" ry="3"/><path d="M2 4v12c0 1.7 3.6 3 8 3s8-1.3 8-3V4"/><path d="M2 10c0 1.7 3.6 3 8 3s8-1.3 8-3"/>`),queue:x(`<path d="M5 5h8a4 4 0 0 1 0 10H5a4 4 0 0 1 0-10Z"/><path d="M5 5a4 4 0 0 0 0 10"/>`),user:x(`<circle cx="10" cy="7" r="4"/><path d="M3 18c0-3.9 3.1-7 7-7s7 3.1 7 7"/>`),choice:x(`<path d="M10 3 17 10 10 17 3 10Z"/><path d="M10 7v6M7 10h6"/>`),success:x(`<path d="M6 10l3 3 6-7"/>`),warning:x(`<path d="M10 4 17 17H3Z"/><path d="M10 9v4M10 15h.01"/>`),gateway:x(`<path d="M3 10h14M10 3v14M6 6l8 8M14 6 6 14"/>`),event:x(`<path d="M5 10h10M10 5v10"/><circle cx="10" cy="10" r="7"/>`),server:x(`<rect x="3" y="3" width="14" height="14" rx="2"/><path d="M6 7h8M6 10h8M6 13h8"/><circle cx="15" cy="7" r="0.8" fill="currentColor" stroke="none"/>`),note:x(`<path d="M5 3h8l4 4v10H5Z"/><path d="M13 3v4h4"/>`),service:x(`<rect x="3" y="3" width="14" height="14" rx="3"/><path d="M6 8h8M6 11h8M6 14h5"/>`)};function S(e){let t=e.toLowerCase(),n=se[t];return n?{id:`builtin:${t}`,...n}:null}async function ce(e){if(typeof window<`u`)return null;try{let t=globalThis.process?.getBuiltinModule?.(`module`);if(!t)return null;let{createRequire:n}=t;return n(import.meta.url)(e)}catch{return null}}async function C(e){let t=await ce(e);if(t)return t;throw Error(`Complete Iconify collection "${e}" is unavailable in the browser; resolve individual icons or register a collection`)}var w={mdi:()=>C(`@iconify-json/mdi/icons.json`),logos:()=>C(`@iconify-json/logos/icons.json`),lucide:()=>C(`@iconify-json/lucide/icons.json`),carbon:()=>C(`@iconify-json/carbon/icons.json`),"simple-icons":()=>C(`@iconify-json/simple-icons/icons.json`)},T=Object.freeze({left:0,top:0,width:16,height:16}),le=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),ue=Object.freeze({...T,...le}),de=Object.freeze({...ue,body:``,hidden:!1}),fe=Object.freeze({width:null,height:null}),pe=Object.freeze({...fe,...le});function me(e,t){let n={};!e.hFlip!=!t.hFlip&&(n.hFlip=!0),!e.vFlip!=!t.vFlip&&(n.vFlip=!0);let r=((e.rotate||0)+(t.rotate||0))%4;return r&&(n.rotate=r),n}function he(e,t){let n=me(e,t);for(let r in de)r in le?r in e&&!(r in n)&&(n[r]=le[r]):r in t?n[r]=t[r]:r in e&&(n[r]=e[r]);return n}function ge(e,t){let n=e.icons,r=e.aliases||Object.create(null),i=Object.create(null);function a(e){if(n[e])return i[e]=[];if(!(e in i)){i[e]=null;let t=r[e]&&r[e].parent,n=t&&a(t);n&&(i[e]=[t].concat(n))}return i[e]}return(t||Object.keys(n).concat(Object.keys(r))).forEach(a),i}function _e(e,t,n){let r=e.icons,i=e.aliases||Object.create(null),a={};function o(e){a=he(r[e]||i[e],a)}return o(t),n.forEach(o),he(e,a)}function ve(e,t){if(e.icons[t])return _e(e,t,[]);let n=ge(e,[t])[t];return n?_e(e,t,n):null}var ye=/(-?[0-9.]*[0-9]+[0-9.]*)/g,be=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function xe(e,t,n){if(t===1)return e;if(n||=100,typeof e==`number`)return Math.ceil(e*t*n)/n;if(typeof e!=`string`)return e;let r=e.split(ye);if(r===null||!r.length)return e;let i=[],a=r.shift(),o=be.test(a);for(;;){if(o){let e=parseFloat(a);isNaN(e)?i.push(a):i.push(Math.ceil(e*t*n)/n)}else i.push(a);if(a=r.shift(),a===void 0)return i.join(``);o=!o}}function Se(e,t=`defs`){let n=``,r=e.indexOf(`<`+t);for(;r>=0;){let i=e.indexOf(`>`,r),a=e.indexOf(`</`+t);if(i===-1||a===-1)break;let o=e.indexOf(`>`,a);if(o===-1)break;n+=e.slice(i+1,a).trim(),e=e.slice(0,r).trim()+e.slice(o+1)}return{defs:n,content:e}}function Ce(e,t){return e?`<defs>`+e+`</defs>`+t:t}function we(e,t,n){let r=Se(e);return Ce(r.defs,t+r.content+n)}var E=e=>e===`unset`||e===`undefined`||e===`none`;function Te(e,t){let n={...ue,...e},r={...pe,...t},i={left:n.left,top:n.top,width:n.width,height:n.height},a=n.body;[n,r].forEach(e=>{let t=[],n=e.hFlip,r=e.vFlip,o=e.rotate;n?r?o+=2:(t.push(`translate(`+(i.width+i.left).toString()+` `+(0-i.top).toString()+`)`),t.push(`scale(-1 1)`),i.top=i.left=0):r&&(t.push(`translate(`+(0-i.left).toString()+` `+(i.height+i.top).toString()+`)`),t.push(`scale(1 -1)`),i.top=i.left=0);let s;switch(o<0&&(o-=Math.floor(o/4)*4),o%=4,o){case 1:s=i.height/2+i.top,t.unshift(`rotate(90 `+s.toString()+` `+s.toString()+`)`);break;case 2:t.unshift(`rotate(180 `+(i.width/2+i.left).toString()+` `+(i.height/2+i.top).toString()+`)`);break;case 3:s=i.width/2+i.left,t.unshift(`rotate(-90 `+s.toString()+` `+s.toString()+`)`);break}o%2==1&&(i.left!==i.top&&(s=i.left,i.left=i.top,i.top=s),i.width!==i.height&&(s=i.width,i.width=i.height,i.height=s)),t.length&&(a=we(a,`<g transform="`+t.join(` `)+`">`,`</g>`))});let o=r.width,s=r.height,c=i.width,l=i.height,u,d;o===null?(d=s===null?`1em`:s===`auto`?l:s,u=xe(d,c/l)):(u=o===`auto`?c:o,d=s===null?xe(u,l/c):s===`auto`?l:s);let f={},p=(e,t)=>{E(t)||(f[e]=t.toString())};p(`width`,u),p(`height`,d);let m=[i.left,i.top,c,l];return f.viewBox=m.join(` `),{attributes:f,viewBox:m,body:a}}var Ee=/\sid="(\S+)"/g,De=new Map;function Oe(e){e=e.replace(/[0-9]+$/,``)||`a`;let t=De.get(e)||0;return De.set(e,t+1),t?`${e}${t}`:e}function D(e){let t=[],n;for(;n=Ee.exec(e);)t.push(n[1]);if(!t.length)return e;let r=`suffix`+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(t=>{let n=Oe(t),i=t.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`);e=e.replace(RegExp(`([#;"])(`+i+`)([")]|\\.[a-z])`,`g`),`$1`+n+r+`$3`)}),e=e.replace(new RegExp(r,`g`),``),e}function ke(e){let t=e.trim().toLowerCase();if(t===`black`)return{r:0,g:0,b:0};if(t===`white`)return{r:255,g:255,b:255};let n=/^#([0-9a-f]{3})$/i.exec(t);if(n){let e=n[1];return{r:Number.parseInt(e[0]+e[0],16),g:Number.parseInt(e[1]+e[1],16),b:Number.parseInt(e[2]+e[2],16)}}let r=/^#([0-9a-f]{6})([0-9a-f]{2})?$/i.exec(t);if(r){let e=r[1];return{r:Number.parseInt(e.slice(0,2),16),g:Number.parseInt(e.slice(2,4),16),b:Number.parseInt(e.slice(4,6),16)}}let i=/^rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i.exec(t);return i?{r:Number(i[1]),g:Number(i[2]),b:Number(i[3])}:null}function Ae(e,t,n){let r=[e,t,n].map(e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4});return .2126*r[0]+.7152*r[1]+.0722*r[2]}function je(e){let t=e.trim().toLowerCase();if(!t||t===`none`||t===`currentcolor`||t===`transparent`||t.startsWith(`url(`)||t.startsWith(`var(`))return!1;let n=ke(t);if(!n)return!1;let r=Ae(n.r,n.g,n.b),i=Math.max(n.r,n.g,n.b),a=Math.min(n.r,n.g,n.b),o=i===0?0:(i-a)/i;return r<=.28&&o<.45||r<=.12}function Me(e){return e.replace(/\b(fill|stroke)="([^"]*)"/gi,(e,t,n)=>je(n)?`${t}="currentColor"`:e)}function Ne(e){return`brand`}function Pe(e,t,n){if(t===`theme`||t===`brand`)return t;if(n?.hasIconColor)return`theme`;let r=ie(e);return r?Ne(r.prefix):`brand`}var Fe=1.75;function Ie(e,t,n={}){let r=n.maxAspect??Fe,i=e.width>0&&e.height>0?e.width/e.height:1,a=Math.min(t*i,t*r);return{width:Math.max(0,a),height:Math.max(0,t)}}var Le=new Map,Re=new Map(Object.entries(w)),ze=new Map,Be=new Map,Ve=new Map,He=new Set,Ue=`https://api.iconify.design`;function We(e){let t=e.left??0,n=e.top??0,r=e.width??16,i=e.height??16;return{viewBox:`${t} ${n} ${r} ${i}`,width:r,height:i}}function Ge(e,t){let n=Te(t,{height:`unset`,width:`unset`}),r=We(t);return{id:e,body:D(n.body),viewBox:n.attributes.viewBox??r.viewBox,width:r.width,height:r.height,paint:`fill`}}function Ke(e){Ue=e.replace(/\/$/,``)}async function qe(e){let t=e.toLowerCase(),n=Le.get(t);if(n)return n;let r=ze.get(t);if(!r){let e=Re.get(t);if(!e)return ze.set(t,Promise.resolve(null)),null;r=e().then(e=>(Le.set(t,e),e)).catch(e=>(ze.delete(t),console.warn(`[kdiagram-icons] failed to load collection "${t}"`,e),null)),ze.set(t,r)}return r}function Je(e,t,n){if(e===`builtin`)return S(t);let r=Ve.get(n);if(r)return r;let i=Le.get(e);if(!i)return null;let a=ve(i,t);return a?Ge(n,a):null}function Ye(e,t){return e?{...e,...t,icons:{...e.icons,...t.icons},aliases:{...e.aliases,...t.aliases}}:t}async function Xe(e,t){if(typeof fetch!=`function`||t.length===0)return;let n=new URLSearchParams({icons:t.join(`,`)}),r=await fetch(`${Ue}/${encodeURIComponent(e)}.json?${n}`);if(!r.ok)throw Error(`Iconify API returned ${r.status} for collection "${e}"`);let i=await r.json();Le.set(e,Ye(Le.get(e),i))}function Ze(e){let t=ie(e);if(!t)return null;if(Be.has(t.id))return Be.get(t.id)??null;let n=Je(t.prefix,t.name,t.id);return(n||Le.has(t.prefix)||t.prefix===`builtin`)&&Be.set(t.id,n),n}async function Qe(e){let t=[...e].map(e=>ie(e)).filter(e=>e!=null),n=new Map;for(let e of t){if(e.prefix===`builtin`||Be.has(e.id))continue;let t=n.get(e.prefix)??[];t.includes(e.name)||t.push(e.name),n.set(e.prefix,t)}let r=typeof window<`u`;await Promise.all([...n].map(async([e,t])=>{let n=Le.get(e),i=n?t.filter(e=>!ve(n,e)):t;if(i.length!==0){if(!r||He.has(e)){await qe(e);return}await Xe(e,i)}})).catch(e=>{console.warn(`[kdiagram-icons] failed to preload requested icons`,e)});for(let e of t)Be.has(e.id)||Be.set(e.id,Je(e.prefix,e.name,e.id))}function $e(e){let t=new Set;for(let n of e){if(!n.icon||n.icon===`none`)continue;let e=re(n.icon);e!==`none`&&t.add(e)}return[...t]}var et=`var(--icon-color, var(--node-stroke, var(--kd-node-stroke)))`;function tt(e,t,n,r={}){let{width:i,height:a}=Ie(e,r.height??20,{maxAspect:r.maxAspect}),o=r.paint??Pe(e.id,void 0,{hasIconColor:!!r.color}),s=r.className??`flow-node-icon-mark`,c=o===`theme`?Me(e.body):e.body,l=r.color??(o===`theme`?et:``),u=l?`color="${l}"`:``;return`<g class="${s}" transform="translate(${t-i/2}, ${n-a/2})"${u?` ${u}`:``}><svg width="${i}" height="${a}" viewBox="${e.viewBox}" overflow="visible" aria-hidden="true">${c}</svg></g>`}function nt(e,t,n,r={}){let i=Ze(e);return i?tt(i,t,n,{...r,paint:r.paint??Pe(e,void 0,{hasIconColor:!!r.color})}):``}function rt(e){return new Worker(``+new URL(`editor.worker-r79G8Edd.js`,import.meta.url).href,{name:e?.name})}self.MonacoEnvironment={getWorker(){return new rt}};var it=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),at=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),ot=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),st=e=>{let t=ot(e);return t.charAt(0).toUpperCase()+t.slice(1)},ct={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`},lt=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0;return!1},ut=(0,y.createContext)({}),dt=()=>(0,y.useContext)(ut),ft=(0,y.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=``}=dt()??{},m=r??d?Number(n??u)*24/Number(t??l):n??u;return(0,y.createElement)(`svg`,{ref:c,...ct,width:t??l??ct.width,height:t??l??ct.height,stroke:e??f,strokeWidth:m,className:it(`lucide`,p,i),...!a&&!lt(s)&&{"aria-hidden":`true`},...s},[...o.map(([e,t])=>(0,y.createElement)(e,t)),...Array.isArray(a)?a:[a]])}),pt=(e,t)=>{let n=(0,y.forwardRef)(({className:n,...r},i)=>(0,y.createElement)(ft,{ref:i,iconNode:t,className:it(`lucide-${at(st(e))}`,`lucide-${e}`,n),...r}));return n.displayName=st(e),n},mt=pt(`check`,[[`path`,{d:`M20 6 9 17l-5-5`,key:`1gmf2c`}]]),ht=pt(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]),gt=pt(`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`}]]),_t=pt(`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`}]]),vt=pt(`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`}]]),yt=pt(`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`}]]),bt=pt(`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`}]]),xt=pt(`file-code-corner`,[[`path`,{d:`M4 12.15V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.706.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2h-3.35`,key:`1wthlu`}],[`path`,{d:`M14 2v5a1 1 0 0 0 1 1h5`,key:`wfsgrz`}],[`path`,{d:`m5 16-3 3 3 3`,key:`331omg`}],[`path`,{d:`m9 22 3-3-3-3`,key:`lsp7cz`}]]),St=pt(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]),Ct=pt(`git-branch`,[[`path`,{d:`M15 6a9 9 0 0 0-9 9V3`,key:`1cii5b`}],[`circle`,{cx:`18`,cy:`6`,r:`3`,key:`1h7g24`}],[`circle`,{cx:`6`,cy:`18`,r:`3`,key:`fqmcym`}]]),wt=pt(`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`}]]),Tt=pt(`layout-template`,[[`rect`,{width:`18`,height:`7`,x:`3`,y:`3`,rx:`1`,key:`f1a2em`}],[`rect`,{width:`9`,height:`7`,x:`3`,y:`14`,rx:`1`,key:`jqznyg`}],[`rect`,{width:`5`,height:`7`,x:`16`,y:`14`,rx:`1`,key:`q5h2i8`}]]),Et=pt(`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`}]]),Dt=pt(`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`}]]),Ot=pt(`network`,[[`rect`,{x:`16`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`4q2zg0`}],[`rect`,{x:`2`,y:`16`,width:`6`,height:`6`,rx:`1`,key:`8cvhb9`}],[`rect`,{x:`9`,y:`2`,width:`6`,height:`6`,rx:`1`,key:`1egb70`}],[`path`,{d:`M5 16v-3a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v3`,key:`1jsf9p`}],[`path`,{d:`M12 12V8`,key:`2874zd`}]]),kt=pt(`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`}]]),At=pt(`panel-right`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,key:`afitv7`}],[`path`,{d:`M15 3v18`,key:`14nvp0`}]]),jt=pt(`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`}]]),Mt=pt(`save-all`,[[`path`,{d:`M10 2v3a1 1 0 0 0 1 1h5`,key:`1xspal`}],[`path`,{d:`M18 18v-6a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6`,key:`1ra60u`}],[`path`,{d:`M18 22H4a2 2 0 0 1-2-2V6`,key:`pblm9e`}],[`path`,{d:`M8 18a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9.172a2 2 0 0 1 1.414.586l2.828 2.828A2 2 0 0 1 22 6.828V16a2 2 0 0 1-2.01 2z`,key:`1yve0x`}]]),Nt=pt(`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`}]]),Pt=pt(`share-2`,[[`circle`,{cx:`18`,cy:`5`,r:`3`,key:`gq8acd`}],[`circle`,{cx:`6`,cy:`12`,r:`3`,key:`w7nqdw`}],[`circle`,{cx:`18`,cy:`19`,r:`3`,key:`1xt0gg`}],[`line`,{x1:`8.59`,x2:`15.42`,y1:`13.51`,y2:`17.49`,key:`47mynk`}],[`line`,{x1:`15.41`,x2:`8.59`,y1:`6.51`,y2:`10.49`,key:`1n3mei`}]]),Ft=pt(`sliders-horizontal`,[[`path`,{d:`M10 5H3`,key:`1qgfaw`}],[`path`,{d:`M12 19H3`,key:`yhmn1j`}],[`path`,{d:`M14 3v4`,key:`1sua03`}],[`path`,{d:`M16 17v4`,key:`1q0r14`}],[`path`,{d:`M21 12h-9`,key:`1o4lsq`}],[`path`,{d:`M21 19h-5`,key:`1rlt1p`}],[`path`,{d:`M21 5h-7`,key:`1oszz2`}],[`path`,{d:`M8 10v4`,key:`tgpxqk`}],[`path`,{d:`M8 12H3`,key:`a7s4jb`}]]),It=pt(`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`}]]),Lt=pt(`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`}]]),Rt=pt(`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`}]]),zt=pt(`x`,[[`path`,{d:`M18 6 6 18`,key:`1bl5f8`}],[`path`,{d:`m6 6 12 12`,key:`d8bk6v`}]]),Bt=o((e=>{(function(){function t(e){if(e==null)return null;if(typeof e==`function`)return e.$$typeof===se?null:e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case v:return`Fragment`;case b:return`Profiler`;case y:return`StrictMode`;case re:return`Suspense`;case ie:return`SuspenseList`;case x:return`Activity`}if(typeof e==`object`)switch(typeof e.tag==`number`&&console.error(`Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue.`),e.$$typeof){case _:return`Portal`;case te:return e.displayName||`Context`;case ee:return(e._context.displayName||`Context`)+`.Consumer`;case ne:var n=e.render;return e=e.displayName,e||=(e=n.displayName||n.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case ae:return n=e.displayName||null,n===null?t(e.type)||`Memo`:n;case oe:n=e._payload,e=e._init;try{return t(e(n))}catch{}}return null}function n(e){return``+e}function r(e){try{n(e);var t=!1}catch{t=!0}if(t){t=console;var r=t.error,i=typeof Symbol==`function`&&Symbol.toStringTag&&e[Symbol.toStringTag]||e.constructor.name||`Object`;return r.call(t,`The provided key is an unsupported type %s. This value must be coerced to a string before using it here.`,i),n(e)}}function i(e){if(e===v)return`<>`;if(typeof e==`object`&&e&&e.$$typeof===oe)return`<...>`;try{var n=t(e);return n?`<`+n+`>`:`<...>`}catch{return`<...>`}}function a(){var e=S.A;return e===null?null:e.getOwner()}function o(){return Error(`react-stack-top-frame`)}function s(e){if(ce.call(e,`key`)){var t=Object.getOwnPropertyDescriptor(e,`key`).get;if(t&&t.isReactWarning)return!1}return e.key!==void 0}function c(e,t){function n(){T||(T=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",t))}n.isReactWarning=!0,Object.defineProperty(e,"key",{get:n,configurable:!0})}function l(){var e=t(this.type);return le[e]||(le[e]=!0,console.error(`Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.`)),e=this.props.ref,e===void 0?null:e}function u(e,t,n,r,i,a){var o=n.ref;return e={$$typeof:g,type:e,key:t,props:n,_owner:r},(o===void 0?null:o)===null?Object.defineProperty(e,"ref",{enumerable:!1,value:null}):Object.defineProperty(e,"ref",{enumerable:!1,get:l}),e._store={},Object.defineProperty(e._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(e,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(e,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:i}),Object.defineProperty(e,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:a}),Object.freeze&&(Object.freeze(e.props),Object.freeze(e)),e}function d(e,n,i,o,l,d){var f=n.children;if(f!==void 0)if(o)if(C(f)){for(o=0;o<f.length;o++)p(f[o]);Object.freeze&&Object.freeze(f)}else console.error(`React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.`);else p(f);if(ce.call(n,`key`)){f=t(e);var m=Object.keys(n).filter(function(e){return e!==`key`});o=0<m.length?`{key: someKey, `+m.join(`: ..., `)+`: ...}`:`{key: someKey}`,fe[f+o]||(m=0<m.length?`{`+m.join(`: ..., `)+`: ...}`:`{}`,console.error(`A props object containing a "key" prop is being spread into JSX:
235
+ let props = %s;
236
+ <%s {...props} />
237
+ React keys must be passed directly to JSX without using spread:
238
+ let props = %s;
239
+ <%s key={someKey} {...props} />`,o,f,m,f),fe[f+o]=!0)}if(f=null,i!==void 0&&(r(i),f=``+i),s(n)&&(r(n.key),f=``+n.key),`key`in n)for(var h in i={},n)h!==`key`&&(i[h]=n[h]);else i=n;return f&&c(i,typeof e==`function`?e.displayName||e.name||`Unknown`:e),u(e,f,i,a(),l,d)}function p(e){m(e)?e._store&&(e._store.validated=1):typeof e==`object`&&e&&e.$$typeof===oe&&(e._payload.status===`fulfilled`?m(e._payload.value)&&e._payload.value._store&&(e._payload.value._store.validated=1):e._store&&(e._store.validated=1))}function m(e){return typeof e==`object`&&!!e&&e.$$typeof===g}var h=f(),g=Symbol.for(`react.transitional.element`),_=Symbol.for(`react.portal`),v=Symbol.for(`react.fragment`),y=Symbol.for(`react.strict_mode`),b=Symbol.for(`react.profiler`),ee=Symbol.for(`react.consumer`),te=Symbol.for(`react.context`),ne=Symbol.for(`react.forward_ref`),re=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),ae=Symbol.for(`react.memo`),oe=Symbol.for(`react.lazy`),x=Symbol.for(`react.activity`),se=Symbol.for(`react.client.reference`),S=h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce=Object.prototype.hasOwnProperty,C=Array.isArray,w=console.createTask?console.createTask:function(){return null};h={react_stack_bottom_frame:function(e){return e()}};var T,le={},ue=h.react_stack_bottom_frame.bind(h,o)(),de=w(i(o)),fe={};e.Fragment=v,e.jsxDEV=function(e,t,n,r){var a=1e4>S.recentlyCreatedOwnerStacks++;return d(e,t,n,r,a?Error(`react-stack-top-frame`):ue,a?w(i(e)):de)}})()})),Vt=o(((e,t)=>{t.exports=Bt()})),O=Vt(),Ht=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/DiagnosticsList.tsx`;function Ut({diagnostics:e,onReveal:t}){return!e||e.length===0?(0,O.jsxDEV)(`div`,{className:`diag diag-ok`,children:`No diagnostics`},void 0,!1,{fileName:Ht,lineNumber:11,columnNumber:12},this):(0,O.jsxDEV)(O.Fragment,{children:e.map((e,n)=>(0,O.jsxDEV)(`button`,{type:`button`,className:`diag diag-action diag-${e.severity}`,onClick:()=>t(e.range),children:[(0,O.jsxDEV)(`strong`,{children:e.severity},void 0,!1,{fileName:Ht,lineNumber:23,columnNumber:11},this),` `,(0,O.jsxDEV)(`code`,{children:e.code},void 0,!1,{fileName:Ht,lineNumber:23,columnNumber:41},this),` `,e.message,e.hint?(0,O.jsxDEV)(`span`,{className:`hint`,children:[` — `,e.hint]},void 0,!0,{fileName:Ht,lineNumber:24,columnNumber:21},this):null]},`${e.code}-${n}`,!0,{fileName:Ht,lineNumber:17,columnNumber:9},this))},void 0,!1,{fileName:Ht,lineNumber:15,columnNumber:5},this)}var Wt=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/IconButton.tsx`;function Gt({icon:e,label:t,iconOnly:n,active:r,className:i,title:a,"aria-label":o,...s}){let c=[`icon-btn`,n?`icon-btn-only`:null,r?`active`:null,i].filter(Boolean).join(` `);return(0,O.jsxDEV)(`button`,{...s,type:`button`,className:c,title:a??(typeof t==`string`?t:void 0),"aria-label":o??(typeof t==`string`?t:void 0),"aria-pressed":r,children:[(0,O.jsxDEV)(e,{size:16,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Wt,lineNumber:40,columnNumber:7},this),!n&&t!=null?(0,O.jsxDEV)(`span`,{children:t},void 0,!1,{fileName:Wt,lineNumber:41,columnNumber:37},this):null]},void 0,!0,{fileName:Wt,lineNumber:32,columnNumber:5},this)}var Kt=`modulepreload`,qt=function(e,t){return new URL(e,t).href},Jt={},Yt=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,new URL(`../../../../../../vite/packages/vite/src/node/plugins/importAnalysisBuild.ts`,import.meta.url)).href}r=o(t.map(t=>{if(t=qt(t,n),t=s(t),t in Jt)return;Jt[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:Kt,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Xt=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/EditorPane.tsx`,Zt=(0,y.lazy)(()=>Yt(()=>import(`./SourceEditor-CTsSCxbb.js`).then(e=>({default:e.SourceEditor})),[],import.meta.url));function Qt({source:e,onChange:t,diagnostics:n,themeMode:r,documents:i,activeDocumentId:a,onDocument:o,dirty:s,canSave:c,saveState:l,saveError:u,onSave:d,onSaveAs:f,onOpenFile:p,onFormat:m,revealRange:h,onRevealRange:g}){(0,y.useEffect)(()=>{let e=e=>{!(e.metaKey||e.ctrlKey)||e.key.toLowerCase()!==`s`||(e.preventDefault(),c&&d())};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[c,d,!0]);let _=l===`saving`?`Saving…`:l===`saved`?`Saved`:l===`error`?u??`Save failed`:`Save source (⌘S)`;return(0,O.jsxDEV)(`section`,{className:`editor-pane`,children:[(0,O.jsxDEV)(`div`,{className:`editor-filebar`,role:`navigation`,"aria-label":`Open example`,children:[(0,O.jsxDEV)(xt,{size:14,strokeWidth:1.75,"aria-hidden":!0,className:`editor-filebar-icon`},void 0,!1,{fileName:Xt,lineNumber:85,columnNumber:9},this),(0,O.jsxDEV)(`div`,{className:`editor-filebar-select-wrap`,children:[(0,O.jsxDEV)(`select`,{className:`editor-filebar-select`,value:a,disabled:i.length===0,"aria-label":`Document`,onChange:e=>o(e.target.value),children:i.length===0?(0,O.jsxDEV)(`option`,{value:``,children:`(none yet)`},void 0,!1,{fileName:Xt,lineNumber:95,columnNumber:15},this):i.map(e=>(0,O.jsxDEV)(`option`,{value:e.id,children:[e.label,e.id===a&&s?` *`:``]},e.id,!0,{fileName:Xt,lineNumber:98,columnNumber:17},this))},void 0,!1,{fileName:Xt,lineNumber:87,columnNumber:11},this),(0,O.jsxDEV)(ht,{size:14,strokeWidth:2,"aria-hidden":!0,className:`editor-filebar-caret`},void 0,!1,{fileName:Xt,lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:Xt,lineNumber:86,columnNumber:9},this),s?(0,O.jsxDEV)(`span`,{className:`editor-dirty-dot`,title:`Unsaved changes`,"aria-hidden":!0},void 0,!1,{fileName:Xt,lineNumber:107,columnNumber:18},this):null,p?(0,O.jsxDEV)(Gt,{icon:St,iconOnly:!0,label:`Open .kdiagram file`,title:`Open .kdiagram file`,onClick:p},void 0,!1,{fileName:Xt,lineNumber:109,columnNumber:11},this):null,(0,O.jsxDEV)(Gt,{icon:Rt,iconOnly:!0,label:`Format source`,title:`Format source`,onClick:m},void 0,!1,{fileName:Xt,lineNumber:117,columnNumber:9},this),(0,O.jsxDEV)(Gt,{icon:Nt,iconOnly:!0,label:`Save KDiagram source`,title:_,disabled:!c,active:l===`saved`,onClick:d},void 0,!1,{fileName:Xt,lineNumber:125,columnNumber:11},this),f?(0,O.jsxDEV)(Gt,{icon:Mt,iconOnly:!0,label:`Save KDiagram source as`,title:`Save source as…`,onClick:f},void 0,!1,{fileName:Xt,lineNumber:136,columnNumber:11},this):null]},void 0,!0,{fileName:Xt,lineNumber:84,columnNumber:7},this),(0,O.jsxDEV)(y.Suspense,{fallback:(0,O.jsxDEV)(`div`,{className:`source-editor-loading`,children:`Loading editor…`},void 0,!1,{fileName:Xt,lineNumber:145,columnNumber:27},this),children:(0,O.jsxDEV)(Zt,{value:e,onChange:t,themeMode:r,revealRange:h},void 0,!1,{fileName:Xt,lineNumber:146,columnNumber:9},this)},void 0,!1,{fileName:Xt,lineNumber:145,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`pane-header pane-header-sub`,children:(0,O.jsxDEV)(`h2`,{children:[(0,O.jsxDEV)(Lt,{size:14,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Xt,lineNumber:155,columnNumber:11},this),`Diagnostics`]},void 0,!0,{fileName:Xt,lineNumber:154,columnNumber:9},this)},void 0,!1,{fileName:Xt,lineNumber:153,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`diagnostics`,children:(0,O.jsxDEV)(Ut,{diagnostics:n,onReveal:g},void 0,!1,{fileName:Xt,lineNumber:160,columnNumber:9},this)},void 0,!1,{fileName:Xt,lineNumber:159,columnNumber:7},this)]},void 0,!0,{fileName:Xt,lineNumber:83,columnNumber:5},this)}var $t=new Set([`children`,`localName`,`ref`,`style`,`className`]),en=new WeakMap,tn=(e,t,n,r,i)=>{let a=i?.[t];a===void 0?(e[t]=n,n==null&&t in HTMLElement.prototype&&e.removeAttribute(t)):n!==r&&((e,t,n)=>{let r=en.get(e);r===void 0&&en.set(e,r=new Map);let i=r.get(t);n===void 0?i!==void 0&&(r.delete(t),e.removeEventListener(t,i)):i===void 0?(r.set(t,i={handleEvent:n}),e.addEventListener(t,i)):i.handleEvent=n})(e,a,n)},nn=({react:e,tagName:t,elementClass:n,events:r,displayName:i})=>{let a=new Set(Object.keys(r??{})),o=e.forwardRef(((i,o)=>{let s=e.useRef(new Map),c=e.useRef(null),l={},u={};for(let[e,t]of Object.entries(i))$t.has(e)?l[e===`className`?`class`:e]=t:a.has(e)||e in n.prototype?u[e]=t:l[e]=t;return e.useLayoutEffect((()=>{if(c.current===null)return;let e=new Map;for(let t in u)tn(c.current,t,i[t],s.current.get(t),r),s.current.delete(t),e.set(t,i[t]);for(let[e,t]of s.current)tn(c.current,e,void 0,t,r);s.current=e})),e.useLayoutEffect((()=>{c.current?.removeAttribute(`defer-hydration`)}),[]),l.suppressHydrationWarning=!0,e.createElement(t,{...l,ref:e.useCallback((e=>{c.current=e,typeof o==`function`?o(e):o!==null&&(o.current=e)}),[o])})}));return o.displayName=i??n.name,o},rn=globalThis,an=rn.ShadowRoot&&(rn.ShadyCSS===void 0||rn.ShadyCSS.nativeShadow)&&`adoptedStyleSheets`in Document.prototype&&`replace`in CSSStyleSheet.prototype,on=Symbol(),sn=new WeakMap,cn=class{constructor(e,t,n){if(this._$cssResult$=!0,n!==on)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=t}get styleSheet(){let e=this.o,t=this.t;if(an&&e===void 0){let n=t!==void 0&&t.length===1;n&&(e=sn.get(t)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&sn.set(t,e))}return e}toString(){return this.cssText}},ln=e=>new cn(typeof e==`string`?e:e+``,void 0,on),un=(e,...t)=>new cn(e.length===1?e[0]:t.reduce((t,n,r)=>t+(e=>{if(!0===e._$cssResult$)return e.cssText;if(typeof e==`number`)return e;throw Error(`Value passed to 'css' function must be a 'css' function result: `+e+`. Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.`)})(n)+e[r+1],e[0]),e,on),dn=(e,t)=>{if(an)e.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let n of t){let t=document.createElement(`style`),r=rn.litNonce;r!==void 0&&t.setAttribute(`nonce`,r),t.textContent=n.cssText,e.appendChild(t)}},fn=an?e=>e:e=>e instanceof CSSStyleSheet?(e=>{let t=``;for(let n of e.cssRules)t+=n.cssText;return ln(t)})(e):e,{is:pn,defineProperty:mn,getOwnPropertyDescriptor:hn,getOwnPropertyNames:gn,getOwnPropertySymbols:_n,getPrototypeOf:vn}=Object,yn=globalThis,bn=yn.trustedTypes,xn=bn?bn.emptyScript:``,Sn=yn.reactiveElementPolyfillSupport,Cn=(e,t)=>e,wn={toAttribute(e,t){switch(t){case Boolean:e=e?xn:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let n=e;switch(t){case Boolean:n=e!==null;break;case Number:n=e===null?null:Number(e);break;case Object:case Array:try{n=JSON.parse(e)}catch{n=null}}return n}},Tn=(e,t)=>!pn(e,t),En={attribute:!0,type:String,converter:wn,reflect:!1,useDefault:!1,hasChanged:Tn};Symbol.metadata??=Symbol(`metadata`),yn.litPropertyMetadata??=new WeakMap;var Dn=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=En){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){let n=Symbol(),r=this.getPropertyDescriptor(e,n,t);r!==void 0&&mn(this.prototype,e,r)}}static getPropertyDescriptor(e,t,n){let{get:r,set:i}=hn(this.prototype,e)??{get(){return this[t]},set(e){this[t]=e}};return{get:r,set(t){let a=r?.call(this);i?.call(this,t),this.requestUpdate(e,a,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??En}static _$Ei(){if(this.hasOwnProperty(Cn(`elementProperties`)))return;let e=vn(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Cn(`finalized`)))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Cn(`properties`))){let e=this.properties,t=[...gn(e),..._n(e)];for(let n of t)this.createProperty(n,e[n])}let e=this[Symbol.metadata];if(e!==null){let t=litPropertyMetadata.get(e);if(t!==void 0)for(let[e,n]of t)this.elementProperties.set(e,n)}this._$Eh=new Map;for(let[e,t]of this.elementProperties){let n=this._$Eu(e,t);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let t=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let e of n)t.unshift(fn(e))}else e!==void 0&&t.push(fn(e));return t}static _$Eu(e,t){let n=t.attribute;return!1===n?void 0:typeof n==`string`?n:typeof e==`string`?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,t=this.constructor.elementProperties;for(let n of t.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return dn(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,t,n){this._$AK(e,n)}_$ET(e,t){let n=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,n);if(r!==void 0&&!0===n.reflect){let i=(n.converter?.toAttribute===void 0?wn:n.converter).toAttribute(t,n.type);this._$Em=e,i==null?this.removeAttribute(r):this.setAttribute(r,i),this._$Em=null}}_$AK(e,t){let n=this.constructor,r=n._$Eh.get(e);if(r!==void 0&&this._$Em!==r){let e=n.getPropertyOptions(r),i=typeof e.converter==`function`?{fromAttribute:e.converter}:e.converter?.fromAttribute===void 0?wn:e.converter;this._$Em=r;let a=i.fromAttribute(t,e.type);this[r]=a??this._$Ej?.get(r)??a,this._$Em=null}}requestUpdate(e,t,n,r=!1,i){if(e!==void 0){let a=this.constructor;if(!1===r&&(i=this[e]),n??=a.getPropertyOptions(e),!((n.hasChanged??Tn)(i,t)||n.useDefault&&n.reflect&&i===this._$Ej?.get(e)&&!this.hasAttribute(a._$Eu(e,n))))return;this.C(e,t,n)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(e,t,{useDefault:n,reflect:r,wrapped:i},a){n&&!(this._$Ej??=new Map).has(e)&&(this._$Ej.set(e,a??t??this[e]),!0!==i||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||n||(t=void 0),this._$AL.set(e,t)),!0===r&&this._$Em!==e&&(this._$Eq??=new Set).add(e))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[e,t]of this._$Ep)this[e]=t;this._$Ep=void 0}let e=this.constructor.elementProperties;if(e.size>0)for(let[t,n]of e){let{wrapped:e}=n,r=this[t];!0!==e||this._$AL.has(t)||r===void 0||this.C(t,void 0,n,r)}}let e=!1,t=this._$AL;try{e=this.shouldUpdate(t),e?(this.willUpdate(t),this._$EO?.forEach(e=>e.hostUpdate?.()),this.update(t)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(t)}willUpdate(e){}_$AE(e){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&=this._$Eq.forEach(e=>this._$ET(e,this[e])),this._$EM()}updated(e){}firstUpdated(e){}};Dn.elementStyles=[],Dn.shadowRootOptions={mode:`open`},Dn[Cn(`elementProperties`)]=new Map,Dn[Cn(`finalized`)]=new Map,Sn?.({ReactiveElement:Dn}),(yn.reactiveElementVersions??=[]).push(`2.1.2`);var On=globalThis,kn=e=>e,An=On.trustedTypes,jn=An?An.createPolicy(`lit-html`,{createHTML:e=>e}):void 0,Mn=`$lit$`,Nn=`lit$${Math.random().toFixed(9).slice(2)}$`,Pn=`?`+Nn,Fn=`<${Pn}>`,In=document,Ln=()=>In.createComment(``),Rn=e=>e===null||typeof e!=`object`&&typeof e!=`function`,zn=Array.isArray,Bn=e=>zn(e)||typeof e?.[Symbol.iterator]==`function`,Vn=`[
240
+ \f\r]`,Hn=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Un=/-->/g,Wn=/>/g,Gn=RegExp(`>|${Vn}(?:([^\\s"'>=/]+)(${Vn}*=${Vn}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,`g`),Kn=/'/g,qn=/"/g,Jn=/^(?:script|style|textarea|title)$/i,Yn=e=>(t,...n)=>({_$litType$:e,strings:t,values:n}),Xn=Yn(1),Zn=Yn(2),Qn=Symbol.for(`lit-noChange`),k=Symbol.for(`lit-nothing`),$n=new WeakMap,er=In.createTreeWalker(In,129);function tr(e,t){if(!zn(e)||!e.hasOwnProperty(`raw`))throw Error(`invalid template strings array`);return jn===void 0?t:jn.createHTML(t)}var nr=(e,t)=>{let n=e.length-1,r=[],i,a=t===2?`<svg>`:t===3?`<math>`:``,o=Hn;for(let t=0;t<n;t++){let n=e[t],s,c,l=-1,u=0;for(;u<n.length&&(o.lastIndex=u,c=o.exec(n),c!==null);)u=o.lastIndex,o===Hn?c[1]===`!--`?o=Un:c[1]===void 0?c[2]===void 0?c[3]!==void 0&&(o=Gn):(Jn.test(c[2])&&(i=RegExp(`</`+c[2],`g`)),o=Gn):o=Wn:o===Gn?c[0]===`>`?(o=i??Hn,l=-1):c[1]===void 0?l=-2:(l=o.lastIndex-c[2].length,s=c[1],o=c[3]===void 0?Gn:c[3]===`"`?qn:Kn):o===qn||o===Kn?o=Gn:o===Un||o===Wn?o=Hn:(o=Gn,i=void 0);let d=o===Gn&&e[t+1].startsWith(`/>`)?` `:``;a+=o===Hn?n+Fn:l>=0?(r.push(s),n.slice(0,l)+Mn+n.slice(l)+Nn+d):n+Nn+(l===-2?t:d)}return[tr(e,a+(e[n]||`<?>`)+(t===2?`</svg>`:t===3?`</math>`:``)),r]},rr=class e{constructor({strings:t,_$litType$:n},r){let i;this.parts=[];let a=0,o=0,s=t.length-1,c=this.parts,[l,u]=nr(t,n);if(this.el=e.createElement(l,r),er.currentNode=this.el.content,n===2||n===3){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;(i=er.nextNode())!==null&&c.length<s;){if(i.nodeType===1){if(i.hasAttributes())for(let e of i.getAttributeNames())if(e.endsWith(Mn)){let t=u[o++],n=i.getAttribute(e).split(Nn),r=/([.?@])?(.*)/.exec(t);c.push({type:1,index:a,name:r[2],strings:n,ctor:r[1]===`.`?cr:r[1]===`?`?lr:r[1]===`@`?ur:sr}),i.removeAttribute(e)}else e.startsWith(Nn)&&(c.push({type:6,index:a}),i.removeAttribute(e));if(Jn.test(i.tagName)){let e=i.textContent.split(Nn),t=e.length-1;if(t>0){i.textContent=An?An.emptyScript:``;for(let n=0;n<t;n++)i.append(e[n],Ln()),er.nextNode(),c.push({type:2,index:++a});i.append(e[t],Ln())}}}else if(i.nodeType===8)if(i.data===Pn)c.push({type:2,index:a});else{let e=-1;for(;(e=i.data.indexOf(Nn,e+1))!==-1;)c.push({type:7,index:a}),e+=Nn.length-1}a++}}static createElement(e,t){let n=In.createElement(`template`);return n.innerHTML=e,n}};function ir(e,t,n=e,r){if(t===Qn)return t;let i=r===void 0?n._$Cl:n._$Co?.[r],a=Rn(t)?void 0:t._$litDirective$;return i?.constructor!==a&&(i?._$AO?.(!1),a===void 0?i=void 0:(i=new a(e),i._$AT(e,n,r)),r===void 0?n._$Cl=i:(n._$Co??=[])[r]=i),i!==void 0&&(t=ir(e,i._$AS(e,t.values),i,r)),t}var ar=class{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:n}=this._$AD,r=(e?.creationScope??In).importNode(t,!0);er.currentNode=r;let i=er.nextNode(),a=0,o=0,s=n[0];for(;s!==void 0;){if(a===s.index){let t;s.type===2?t=new or(i,i.nextSibling,this,e):s.type===1?t=new s.ctor(i,s.name,s.strings,this,e):s.type===6&&(t=new dr(i,this,e)),this._$AV.push(t),s=n[++o]}a!==s?.index&&(i=er.nextNode(),a++)}return er.currentNode=In,r}p(e){let t=0;for(let n of this._$AV)n!==void 0&&(n.strings===void 0?n._$AI(e[t]):(n._$AI(e,n,t),t+=n.strings.length-2)),t++}},or=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,n,r){this.type=2,this._$AH=k,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=n,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return t!==void 0&&e?.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=ir(this,e,t),Rn(e)?e===k||e==null||e===``?(this._$AH!==k&&this._$AR(),this._$AH=k):e!==this._$AH&&e!==Qn&&this._(e):e._$litType$===void 0?e.nodeType===void 0?Bn(e)?this.k(e):this._(e):this.T(e):this.$(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==k&&Rn(this._$AH)?this._$AA.nextSibling.data=e:this.T(In.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:n}=e,r=typeof n==`number`?this._$AC(e):(n.el===void 0&&(n.el=rr.createElement(tr(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===r)this._$AH.p(t);else{let e=new ar(r,this),n=e.u(this.options);e.p(t),this.T(n),this._$AH=e}}_$AC(e){let t=$n.get(e.strings);return t===void 0&&$n.set(e.strings,t=new rr(e)),t}k(t){zn(this._$AH)||(this._$AH=[],this._$AR());let n=this._$AH,r,i=0;for(let a of t)i===n.length?n.push(r=new e(this.O(Ln()),this.O(Ln()),this,this.options)):r=n[i],r._$AI(a),i++;i<n.length&&(this._$AR(r&&r._$AB.nextSibling,i),n.length=i)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=kn(e).nextSibling;kn(e).remove(),e=t}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},sr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,n,r,i){this.type=1,this._$AH=k,this._$AN=void 0,this.element=e,this.name=t,this._$AM=r,this.options=i,n.length>2||n[0]!==``||n[1]!==``?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=k}_$AI(e,t=this,n,r){let i=this.strings,a=!1;if(i===void 0)e=ir(this,e,t,0),a=!Rn(e)||e!==this._$AH&&e!==Qn,a&&(this._$AH=e);else{let r=e,o,s;for(e=i[0],o=0;o<i.length-1;o++)s=ir(this,r[n+o],t,o),s===Qn&&(s=this._$AH[o]),a||=!Rn(s)||s!==this._$AH[o],s===k?e=k:e!==k&&(e+=(s??``)+i[o+1]),this._$AH[o]=s}a&&!r&&this.j(e)}j(e){e===k?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??``)}},cr=class extends sr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===k?void 0:e}},lr=class extends sr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==k)}},ur=class extends sr{constructor(e,t,n,r,i){super(e,t,n,r,i),this.type=5}_$AI(e,t=this){if((e=ir(this,e,t,0)??k)===Qn)return;let n=this._$AH,r=e===k&&n!==k||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,i=e!==k&&(n===k||r);r&&this.element.removeEventListener(this.name,this,n),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH==`function`?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},dr=class{constructor(e,t,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ir(this,e)}},fr=On.litHtmlPolyfillSupport;fr?.(rr,or),(On.litHtmlVersions??=[]).push(`3.3.3`);var pr=(e,t,n)=>{let r=n?.renderBefore??t,i=r._$litPart$;if(i===void 0){let e=n?.renderBefore??null;r._$litPart$=i=new or(t.insertBefore(Ln(),e),e,void 0,n??{})}return i._$AI(e),i},mr=globalThis,hr=class extends Dn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=pr(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Qn}};hr._$litElement$=!0,hr.finalized=!0,mr.litElementHydrateSupport?.({LitElement:hr});var gr=mr.litElementPolyfillSupport;gr?.({LitElement:hr}),(mr.litElementVersions??=[]).push(`4.2.2`);var _r={fromAttribute:e=>e!==`false`,toAttribute:e=>e?``:`false`};function vr(){return typeof document>`u`?`dark`:document.documentElement.dataset.theme===`light`?`light`:`dark`}function yr(e){return e===`auto`?vr():e}function br(e){return e>=100?`${Math.round(e)}ms`:`${e.toFixed(1)}ms`}function xr(e){return typeof e==`number`?`${e}px`:e}var Sr=2400,Cr=400,wr=class extends hr{constructor(...e){super(...e),this.source=``,this.theme=`auto`,this.height=420,this.frameless=!1,this.showThemeToggle=!0,this.showViewControls=!0,this.showStats=!1,this.showAnimationControls=!0,this.autoplay=!1,this.animationLoop=!1,this.animation=``,this.#e=null,this.#t=0,this.#n=null,this.#r=null,this.#i=`dark`,this.#a=!1,this.#o=!1,this.#s=null,this.#c=null,this.#l=!1,this.#u=!0,this.#d=null,this.#f=[],this.#p={id:null,playing:!1,timeMs:0,durationMs:0,loop:!1,speed:1},this.#m=null,this.#h=()=>{this.#l=document.fullscreenElement!=null&&document.fullscreenElement===this,this.requestUpdate(),requestAnimationFrame(()=>{requestAnimationFrame(()=>this.#e?.fit())})},this.#b=e=>{if(!this.showAnimationControls||this.#f.length===0)return;let t=this.#e?.animations;t&&(e.key===` `||e.code===`Space`?(e.preventDefault(),this.#p.playing?t.pause():t.play()):e.key===`ArrowRight`?(e.preventDefault(),t.step(1)):e.key===`ArrowLeft`&&(e.preventDefault(),t.step(-1)))},this.#w=()=>{this.#C()},this.#T=()=>{this.#S(Cr)},this.#E=e=>{this.#C(e.target!==e.currentTarget)},this.#D=()=>{queueMicrotask(()=>{let e=this.renderRoot,t=e instanceof ShadowRoot?e.activeElement:null;t instanceof Element&&t.closest(`.overlay`)||this.#S(Cr)})},this.#O=e=>{this.#C(e.target!==e.currentTarget),this.#b(e)},this.#k=e=>{if(this.#C(),e.composedPath().some(e=>e instanceof Element&&(e.classList.contains(`overlay--animation`)||e.classList.contains(`overlay--tools`)||e.classList.contains(`overlay--stats`))))return;let t=this.renderRoot,n=t instanceof ShadowRoot?t.activeElement:null;n instanceof HTMLElement&&n.blur();let r=e.currentTarget;r instanceof HTMLElement&&r.focus({preventScroll:!0})}}static{this.properties={source:{type:String},theme:{type:String},height:{},frameless:{type:Boolean,converter:_r,reflect:!0},showThemeToggle:{type:Boolean,attribute:`show-theme-toggle`,converter:_r},showViewControls:{type:Boolean,attribute:`show-view-controls`,converter:_r},showStats:{type:Boolean,attribute:`show-stats`,converter:_r},showAnimationControls:{type:Boolean,attribute:`animation-controls`,converter:_r},autoplay:{type:Boolean,converter:_r},animationLoop:{type:Boolean,attribute:`loop`,converter:_r},animation:{type:String},options:{attribute:!1}}}static{this.styles=un`
241
+ :host {
242
+ display: flex;
243
+ flex-direction: column;
244
+ position: relative;
245
+ box-sizing: border-box;
246
+ width: 100%;
247
+ height: 100%;
248
+ min-height: 0;
249
+ border: 1px solid var(--border, color-mix(in oklch, currentColor 18%, transparent));
250
+ background: var(--bg-panel, var(--bg, transparent));
251
+ color: var(--text, inherit);
252
+ overflow: hidden;
253
+ font-family: var(--font-ui, inherit);
254
+ }
255
+
256
+ :host([hidden]) {
257
+ display: none !important;
258
+ }
259
+
260
+ :host(:fullscreen) {
261
+ width: 100%;
262
+ height: 100% !important;
263
+ background: var(--bg, #0b0f14);
264
+ border: 0;
265
+ }
266
+
267
+ :host([frameless]:not([frameless="false"]):not(:fullscreen)) {
268
+ border: 0;
269
+ background: transparent;
270
+ }
271
+
272
+ :host([frameless]:not([frameless="false"]):not(:fullscreen)) .viewport {
273
+ background: transparent;
274
+ }
275
+
276
+ .sr-only {
277
+ position: absolute;
278
+ width: 1px;
279
+ height: 1px;
280
+ padding: 0;
281
+ margin: -1px;
282
+ overflow: hidden;
283
+ clip: rect(0, 0, 0, 0);
284
+ white-space: nowrap;
285
+ border: 0;
286
+ }
287
+
288
+ .error {
289
+ margin: 0;
290
+ padding: 0.55rem 0.75rem;
291
+ border-bottom: 1px solid
292
+ var(--border-soft, color-mix(in oklch, currentColor 12%, transparent));
293
+ color: var(--danger, #f87171);
294
+ font-size: 0.85rem;
295
+ }
296
+
297
+ .stage {
298
+ position: relative;
299
+ display: flex;
300
+ flex-direction: column;
301
+ flex: 1 1 0;
302
+ min-height: 0;
303
+ width: 100%;
304
+ height: 100%;
305
+ }
306
+
307
+ .stage:focus {
308
+ outline: none;
309
+ }
310
+
311
+ .viewport {
312
+ position: relative;
313
+ flex: 1 1 0;
314
+ width: 100%;
315
+ min-height: 0;
316
+ background: var(--bg, transparent);
317
+ z-index: 0;
318
+ }
319
+
320
+ .viewport .kdiagram-viewport,
321
+ .viewport .kdiagram-canvas,
322
+ .viewport svg {
323
+ width: 100%;
324
+ height: 100%;
325
+ display: block;
326
+ }
327
+
328
+ .overlay {
329
+ position: absolute;
330
+ z-index: 2;
331
+ display: inline-flex;
332
+ align-items: center;
333
+ gap: 0.35rem;
334
+ pointer-events: none;
335
+ opacity: 1;
336
+ transform: translateY(0);
337
+ transition:
338
+ opacity 180ms ease,
339
+ transform 180ms ease;
340
+ }
341
+
342
+ .overlay > * {
343
+ pointer-events: auto;
344
+ }
345
+
346
+ .stage[data-controls-visible="false"] .overlay {
347
+ opacity: 0;
348
+ pointer-events: none;
349
+ }
350
+
351
+ .stage[data-controls-visible="false"] .overlay > * {
352
+ pointer-events: none;
353
+ }
354
+
355
+ .stage[data-controls-visible="false"] .overlay--tools {
356
+ transform: translateY(-4px);
357
+ }
358
+
359
+ .stage[data-controls-visible="false"] .overlay--animation,
360
+ .stage[data-controls-visible="false"] .overlay--stats {
361
+ transform: translateY(4px);
362
+ }
363
+
364
+ .overlay--tools {
365
+ top: 0.55rem;
366
+ right: 0.55rem;
367
+ padding: 0.15rem;
368
+ border: 1px solid var(--border-soft, color-mix(in oklch, currentColor 12%, transparent));
369
+ background: color-mix(in oklch, var(--bg-elevated, var(--bg, #111)) 92%, transparent);
370
+ }
371
+
372
+ .overlay--stats {
373
+ left: 0.55rem;
374
+ bottom: 0.55rem;
375
+ padding: 0.2rem 0.45rem;
376
+ border: 1px solid var(--border-soft, color-mix(in oklch, currentColor 12%, transparent));
377
+ background: color-mix(in oklch, var(--bg-elevated, var(--bg, #111)) 88%, transparent);
378
+ color: var(--text-muted, color-mix(in oklch, currentColor 70%, transparent));
379
+ font-size: 0.68rem;
380
+ font-variant-numeric: tabular-nums;
381
+ gap: 0.55rem;
382
+ }
383
+
384
+ .tools {
385
+ display: inline-flex;
386
+ gap: 0.25rem;
387
+ }
388
+
389
+ .icon-btn {
390
+ appearance: none;
391
+ display: inline-flex;
392
+ align-items: center;
393
+ justify-content: center;
394
+ width: 1.85rem;
395
+ height: 1.85rem;
396
+ padding: 0;
397
+ border: 1px solid transparent;
398
+ background: transparent;
399
+ color: var(--text-muted, color-mix(in oklch, currentColor 70%, transparent));
400
+ cursor: pointer;
401
+ flex: 0 0 auto;
402
+ }
403
+
404
+ .icon-btn:hover {
405
+ color: var(--text, inherit);
406
+ border-color: var(--border, color-mix(in oklch, currentColor 18%, transparent));
407
+ background: color-mix(in oklch, var(--bg-elevated, currentColor) 8%, transparent);
408
+ }
409
+
410
+ .icon-btn:focus-visible {
411
+ color: var(--text, inherit);
412
+ outline: none;
413
+ border-color: var(--accent, #5b9fd4);
414
+ box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent, #5b9fd4) 55%, transparent);
415
+ }
416
+
417
+ .icon-btn svg {
418
+ width: 16px;
419
+ height: 16px;
420
+ display: block;
421
+ flex: none;
422
+ }
423
+
424
+ .overlay--animation {
425
+ left: 0.55rem;
426
+ right: 0.55rem;
427
+ bottom: 0.55rem;
428
+ justify-content: center;
429
+ }
430
+
431
+ .anim-bar {
432
+ display: inline-flex;
433
+ align-items: center;
434
+ gap: 0.25rem;
435
+ max-width: min(44rem, 100%);
436
+ padding: 0.3rem 0.45rem;
437
+ border: 1px solid var(--border-soft, color-mix(in oklch, currentColor 12%, transparent));
438
+ background: color-mix(in oklch, var(--bg-elevated, var(--bg, #111)) 92%, transparent);
439
+ color: var(--text, inherit);
440
+ font-size: 0.72rem;
441
+ font-variant-numeric: tabular-nums;
442
+ border-radius: 0;
443
+ }
444
+
445
+ .anim-select {
446
+ position: relative;
447
+ display: inline-flex;
448
+ align-items: center;
449
+ gap: 0.28rem;
450
+ height: 1.85rem;
451
+ min-width: 0;
452
+ max-width: 12rem;
453
+ padding: 0 1.25rem 0 0.4rem;
454
+ border: 1px solid transparent;
455
+ border-radius: 0;
456
+ background: transparent;
457
+ color: var(--text-muted, color-mix(in oklch, currentColor 78%, transparent));
458
+ flex: 0 1 auto;
459
+ box-sizing: border-box;
460
+ }
461
+
462
+ .anim-select--speed {
463
+ max-width: 4.75rem;
464
+ padding-left: 0.4rem;
465
+ }
466
+
467
+ .anim-select:hover {
468
+ color: var(--text, inherit);
469
+ border-color: var(--border, color-mix(in oklch, currentColor 18%, transparent));
470
+ background: color-mix(in oklch, var(--bg-elevated, currentColor) 8%, transparent);
471
+ }
472
+
473
+ /* Keyboard focus only — mouse/open must not stack a second system ring. */
474
+ .anim-select:has(select:focus-visible) {
475
+ color: var(--text, inherit);
476
+ border-color: var(--accent, #5b9fd4);
477
+ background: color-mix(in oklch, var(--bg-elevated, currentColor) 8%, transparent);
478
+ outline: none;
479
+ box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent, #5b9fd4) 55%, transparent);
480
+ }
481
+
482
+ .anim-select__glyph {
483
+ display: inline-flex;
484
+ flex: 0 0 auto;
485
+ opacity: 0.8;
486
+ pointer-events: none;
487
+ color: inherit;
488
+ }
489
+
490
+ .anim-select__glyph svg {
491
+ width: 14px;
492
+ height: 14px;
493
+ display: block;
494
+ }
495
+
496
+ .anim-select select {
497
+ appearance: none;
498
+ -webkit-appearance: none;
499
+ -moz-appearance: none;
500
+ border: 0;
501
+ background: transparent;
502
+ color: inherit;
503
+ font: inherit;
504
+ font-size: inherit;
505
+ line-height: 1.2;
506
+ padding: 0;
507
+ margin: 0;
508
+ min-width: 0;
509
+ max-width: 100%;
510
+ flex: 1 1 auto;
511
+ cursor: pointer;
512
+ outline: none;
513
+ box-shadow: none;
514
+ }
515
+
516
+ .anim-select select:focus,
517
+ .anim-select select:focus-visible,
518
+ .anim-select select:active {
519
+ outline: none;
520
+ outline-offset: 0;
521
+ box-shadow: none;
522
+ border: 0;
523
+ }
524
+
525
+ .anim-select select::-moz-focus-inner {
526
+ border: 0;
527
+ }
528
+
529
+ .anim-select__caret {
530
+ position: absolute;
531
+ right: 0.3rem;
532
+ top: 50%;
533
+ transform: translateY(-50%);
534
+ display: inline-flex;
535
+ pointer-events: none;
536
+ opacity: 0.75;
537
+ color: inherit;
538
+ }
539
+
540
+ .anim-select__caret svg {
541
+ width: 12px;
542
+ height: 12px;
543
+ display: block;
544
+ }
545
+
546
+ .anim-scrub {
547
+ -webkit-appearance: none;
548
+ appearance: none;
549
+ width: min(14rem, 32vw);
550
+ height: 1.85rem;
551
+ margin: 0 0.25rem;
552
+ background: transparent;
553
+ cursor: pointer;
554
+ flex: 1 1 auto;
555
+ min-width: 6rem;
556
+ border-radius: 0;
557
+ }
558
+
559
+ .anim-scrub:focus {
560
+ outline: none;
561
+ }
562
+
563
+ .anim-scrub:focus-visible {
564
+ box-shadow: 0 0 0 1px var(--accent, #5b9fd4);
565
+ }
566
+
567
+ .anim-scrub::-webkit-slider-runnable-track {
568
+ height: 6px;
569
+ border-radius: 0;
570
+ background: color-mix(in oklch, var(--text, currentColor) 16%, transparent);
571
+ }
572
+
573
+ .anim-scrub::-webkit-slider-thumb {
574
+ -webkit-appearance: none;
575
+ appearance: none;
576
+ width: 12px;
577
+ height: 12px;
578
+ margin-top: -3px;
579
+ border-radius: 0;
580
+ border: 2px solid var(--bg-elevated, var(--bg, #111));
581
+ background: var(--accent, #a195f7);
582
+ box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent, #a195f7) 55%, transparent);
583
+ }
584
+
585
+ .anim-scrub::-moz-range-track {
586
+ height: 6px;
587
+ border-radius: 0;
588
+ background: color-mix(in oklch, var(--text, currentColor) 16%, transparent);
589
+ }
590
+
591
+ .anim-scrub::-moz-range-thumb {
592
+ width: 12px;
593
+ height: 12px;
594
+ border-radius: 0;
595
+ border: 2px solid var(--bg-elevated, var(--bg, #111));
596
+ background: var(--accent, #a195f7);
597
+ box-shadow: 0 0 0 1px color-mix(in oklch, var(--accent, #a195f7) 55%, transparent);
598
+ }
599
+
600
+ .anim-time {
601
+ color: var(--text-muted, color-mix(in oklch, currentColor 70%, transparent));
602
+ min-width: 4.5rem;
603
+ text-align: center;
604
+ }
605
+
606
+ .icon-btn.is-pressed,
607
+ .icon-btn[aria-pressed="true"] {
608
+ color: var(--accent-contrast, #0b0f14);
609
+ background: var(--accent, #a195f7);
610
+ border-color: var(--accent, #a195f7);
611
+ }
612
+
613
+ .icon-btn.is-pressed:hover,
614
+ .icon-btn[aria-pressed="true"]:hover {
615
+ color: var(--accent-contrast, #0b0f14);
616
+ background: color-mix(in oklch, var(--accent, #a195f7) 85%, white);
617
+ }
618
+
619
+ @media (prefers-reduced-motion: reduce) {
620
+ .overlay {
621
+ transition: none;
622
+ }
623
+ }
624
+ `}#e;#t;#n;#r;#i;#a;#o;#s;#c;#l;#u;#d;#f;#p;#m;#h;connectedCallback(){super.connectedCallback(),this.#g(),document.addEventListener(`fullscreenchange`,this.#h),this.#A(),this.hasUpdated&&this.#N()}disconnectedCallback(){document.removeEventListener(`fullscreenchange`,this.#h),this.#r?.disconnect(),this.#r=null,this.#x(),this.#M(),super.disconnectedCallback()}firstUpdated(){this.#C(),this.#N()}updated(e){e.has(`height`)&&(this.#g(),this.#a&&requestAnimationFrame(()=>this.#e?.fit())),e.has(`theme`)&&(this.#A(),this.#P()),(e.has(`source`)||e.has(`options`))&&this.#a&&this.#F(),this.#a&&(e.has(`autoplay`)||e.has(`animationLoop`)||e.has(`animation`)||e.has(`showAnimationControls`))&&this.#y()}#g(){this.style.height=xr(this.height)}async ready(){if(await this.updateComplete,this.#e||await this.#N(),!this.#e)throw Error(this.#s??`k-diagram failed to mount`);await this.#e.ready()}fit(){this.#e?.fit()}zoomIn(){this.#e?.zoomIn()}zoomOut(){this.#e?.zoomOut()}resetView(){this.#e?.resetView()}get animations(){return this.#e?.animations}async refreshTheme(){if(!this.#a||!this.#e)return;let e=yr(this.theme===`auto`?`auto`:this.theme);this.#i=e,this.#n=e;let t=await this.#e.setTheme(e);this.#c=t.stats,this.#_(t),this.requestUpdate(),requestAnimationFrame(()=>this.#e?.fit())}#_(e){this.dispatchEvent(new CustomEvent(`kdiagram-render`,{detail:e,bubbles:!0,composed:!0}))}#v(e){this.#m?.(),this.#f=e.animations.list();let t=0,n=``;this.#m=e.animations.subscribe(r=>{this.#p=r,this.#f=e.animations.list(),this.dispatchEvent(new CustomEvent(`kdiagram-animation-timeupdate`,{detail:r,bubbles:!0,composed:!0}));let i=`${r.id}|${r.playing}|${r.loop}|${r.speed}|${r.durationMs}`,a=performance.now();(i!==n||!r.playing||a-t>50)&&(n=i,t=a,this.requestUpdate())}),this.#y()}#y(){let e=this.#e?.animations;if(!e)return;this.#f=e.list(),this.animationLoop&&e.setLoop(!0);let t=(this.animation??``).trim();if(t){let n=this.#f.find(e=>e.id===t||e.name.toLowerCase()===t.toLowerCase());n&&this.#p.id!==n.id&&(e.play(n.id),this.autoplay||e.pause(),this.dispatchEvent(new CustomEvent(`kdiagram-animation-change`,{detail:{id:n.id},bubbles:!0,composed:!0})))}this.autoplay&&this.#f.length>0&&e.play(this.#p.id??this.#f[0].id)}#b;#x(){this.#d!=null&&(clearTimeout(this.#d),this.#d=null)}#S(e=Sr){this.#x(),this.#d=setTimeout(()=>{this.#d=null;let e=this.renderRoot,t=e instanceof ShadowRoot?e.activeElement:null;t instanceof Element&&t.closest(`.overlay`)||(this.#u=!1,this.requestUpdate())},e)}#C(e=!1){this.#u||(this.#u=!0,this.requestUpdate()),this.#x(),e||this.#S()}#w;#T;#E;#D;#O;#k;#A(){this.#r?.disconnect(),this.#r=null,this.theme===`auto`?(this.#i=vr(),this.#r=new MutationObserver(()=>{let e=vr();e!==this.#i&&(this.#i=e,this.#P(),this.requestUpdate())}),this.#r.observe(document.documentElement,{attributes:!0,attributeFilter:[`data-theme`]})):this.#i=yr(this.theme)}#j(){return this.renderRoot.querySelector(`.viewport`)}#M(){this.#m?.(),this.#m=null,this.#f=[],this.#t+=1,this.#e?.destroy(),this.#e=null,this.#a=!1,this.#n=null}async#N(){if(!this.#j()||!this.isConnected)return;let e=++this.#t;this.#m?.(),this.#m=null,this.#e?.destroy(),this.#e=null,this.#a=!1,this.#n=null;try{let{KDiagram:t}=await Yt(async()=>{let{KDiagram:e}=await import(`./dist-xSRpPWs-.js`);return{KDiagram:e}},[],import.meta.url);try{await t.ensureFonts()}catch{}if(e!==this.#t||!this.isConnected)return;let n=this.#j();if(!n)return;n.replaceChildren();let r=this.source,i=yr(this.theme===`auto`?`auto`:this.theme);this.#i=i;let a=t.renderToElement(r,n,{...this.options,theme:i});if(e!==this.#t){a.destroy();return}this.#e=a;let o=await a.ready();if(e!==this.#t)return;this.#n=i,this.#c=o.stats,this.#a=!0,this.#s=o.ok?null:o.diagnostics[0]?.message??`Render failed`,this.#v(a),this.#_(o),this.requestUpdate(),requestAnimationFrame(()=>a.fit())}catch(t){if(e!==this.#t)return;this.#s=t instanceof Error?t.message:String(t),this.requestUpdate()}}async#P(){if(!this.#a||!this.#e)return;let e=yr(this.theme===`auto`?`auto`:this.theme);if(this.#i=e,this.#n===e){this.requestUpdate();return}this.#n=e;let t=await this.#e.setTheme(e);this.#c=t.stats,this.#_(t),this.requestUpdate(),requestAnimationFrame(()=>this.#e?.fit())}async#F(){let e=this.#e;if(!(!this.#a||!e)){this.#o=!0,this.requestUpdate();try{let t=await e.update(this.source,this.options);this.#c=t.stats,this.#s=t.ok?null:t.diagnostics[0]?.message??`Update failed`,this.#f=e.animations.list(),this.#y(),this.#_(t),requestAnimationFrame(()=>e.fit())}catch(e){this.#s=e instanceof Error?e.message:String(e)}finally{this.#o=!1,this.requestUpdate()}}}async#I(){try{document.fullscreenElement?await document.exitFullscreen():await this.requestFullscreen()}catch{}}#L(){this.theme=this.#i===`dark`?`light`:`dark`}#R(e,t=16){return Xn`
625
+ <svg
626
+ width=${t}
627
+ height=${t}
628
+ viewBox="0 0 24 24"
629
+ fill="none"
630
+ stroke="currentColor"
631
+ stroke-width="1.75"
632
+ stroke-linecap="round"
633
+ stroke-linejoin="round"
634
+ aria-hidden="true"
635
+ >
636
+ ${e}
637
+ </svg>
638
+ `}render(){let e=this.#o?`Updating…`:`Drag to pan / scroll to zoom`,t=this.showThemeToggle||this.showViewControls,n=this.showStats&&this.#c,r=this.showAnimationControls&&this.#f.length>0&&this.#e!=null,i=Math.max(this.#p.durationMs,1),a=`${Tr(this.#p.timeMs)} / ${Tr(this.#p.durationMs)}`;return Xn`
639
+ <span class="sr-only">Live diagram. ${e}.</span>
640
+ ${this.#s?Xn`<p class="error" role="status">${this.#s}</p>`:k}
641
+ <div
642
+ class="stage"
643
+ data-controls-visible=${String(this.#u)}
644
+ tabindex="0"
645
+ @keydown=${this.#O}
646
+ @pointerdown=${this.#k}
647
+ @pointermove=${this.#w}
648
+ @pointerenter=${this.#w}
649
+ @pointerleave=${this.#T}
650
+ @focusin=${this.#E}
651
+ @focusout=${this.#D}
652
+ >
653
+ <div class="viewport" data-theme=${this.#i}></div>
654
+ ${n&&this.#c?Xn`
655
+ <div
656
+ class="overlay overlay--stats"
657
+ aria-label="${this.#c.layoutAlgorithm} / ${this.#c.routerAlgorithm}"
658
+ >
659
+ <span>${this.#c.nodeCount}n</span>
660
+ <span>${this.#c.edgeCount}e</span>
661
+ <span>${br(this.#c.totalMs)}</span>
662
+ </div>
663
+ `:k}
664
+ ${r?Xn`
665
+ <div
666
+ class="overlay overlay--animation"
667
+ role="toolbar"
668
+ aria-label="Animation controls"
669
+ >
670
+ <div class="anim-bar">
671
+ ${this.#f.length>1?Xn`
672
+ <label class="anim-select">
673
+ <span class="anim-select__glyph" aria-hidden="true">
674
+ ${this.#R([Zn`<path d="M20.2 6 3 11l-.9-2.4c-.3-1.1.3-2.2 1.3-2.5l13.5-4c1.1-.3 2.2.3 2.5 1.3Z"></path>`,Zn`<path d="m6.2 5.3 3.1 3.9"></path>`,Zn`<path d="m12.4 3.4 3.1 4"></path>`,Zn`<path d="M3 11h18v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2Z"></path>`],14)}
675
+ </span>
676
+ <select
677
+ aria-label="Animation"
678
+ @change=${e=>{let t=e.target.value;this.#e?.animations.play(t),this.dispatchEvent(new CustomEvent(`kdiagram-animation-change`,{detail:{id:t},bubbles:!0,composed:!0}))}}
679
+ >
680
+ ${this.#f.map(e=>Xn`
681
+ <option
682
+ value=${e.id}
683
+ ?selected=${e.id===(this.#p.id??this.#f[0]?.id)}
684
+ >
685
+ ${e.name}
686
+ </option>
687
+ `)}
688
+ </select>
689
+ <span class="anim-select__caret" aria-hidden="true">
690
+ ${this.#R(Zn`<path d="M6 9l6 6 6-6"></path>`,12)}
691
+ </span>
692
+ </label>
693
+ `:k}
694
+ <button
695
+ type="button"
696
+ class="icon-btn"
697
+ aria-label="Previous step"
698
+ @click=${()=>this.#e?.animations.step(-1)}
699
+ >
700
+ ${this.#R(Zn`<path d="M15 18l-6-6 6-6"></path>`)}
701
+ </button>
702
+ <button
703
+ type="button"
704
+ class="icon-btn"
705
+ aria-label=${this.#p.playing?`Pause`:`Play`}
706
+ @click=${()=>{this.#p.playing?this.#e?.animations.pause():this.#e?.animations.play()}}
707
+ >
708
+ ${this.#p.playing?this.#R(Zn`<path d="M6 4h4v16H6zM14 4h4v16h-4z" fill="currentColor" stroke="none"></path>`):this.#R(Zn`<path d="M8 5v14l11-7z" fill="currentColor" stroke="none"></path>`)}
709
+ </button>
710
+ <button
711
+ type="button"
712
+ class="icon-btn"
713
+ aria-label="Next step"
714
+ @click=${()=>this.#e?.animations.step(1)}
715
+ >
716
+ ${this.#R(Zn`<path d="M9 18l6-6-6-6"></path>`)}
717
+ </button>
718
+ <input
719
+ class="anim-scrub"
720
+ type="range"
721
+ min="0"
722
+ max=${i}
723
+ step="16"
724
+ .value=${String(this.#p.timeMs)}
725
+ aria-label="Scrub animation"
726
+ @input=${e=>{let t=Number(e.target.value);this.#e?.animations.seek(t)}}
727
+ />
728
+ <span class="anim-time">${a}</span>
729
+ <label class="anim-select anim-select--speed">
730
+ <select
731
+ aria-label="Playback speed"
732
+ @change=${e=>{let t=Number(e.target.value);this.#e?.animations.setSpeed(t)}}
733
+ >
734
+ ${Er.map(e=>{let t=Dr(e);return Xn`
735
+ <option
736
+ value=${t}
737
+ ?selected=${t===Dr(this.#p.speed)}
738
+ >
739
+ ${Or(e)}
740
+ </option>
741
+ `})}
742
+ </select>
743
+ <span class="anim-select__caret" aria-hidden="true">
744
+ ${this.#R(Zn`<path d="M6 9l6 6 6-6"></path>`,12)}
745
+ </span>
746
+ </label>
747
+ <button
748
+ type="button"
749
+ class="icon-btn ${this.#p.loop?`is-pressed`:``}"
750
+ aria-label=${this.#p.loop?`Loop on`:`Loop off`}
751
+ aria-pressed=${this.#p.loop?`true`:`false`}
752
+ title=${this.#p.loop?`Loop on`:`Loop off`}
753
+ @click=${()=>this.#e?.animations.setLoop(!this.#p.loop)}
754
+ >
755
+ ${this.#R(Zn`<path d="M17 1l4 4-4 4M3 11V9a4 4 0 0 1 4-4h14M7 23l-4-4 4-4M21 13v2a4 4 0 0 1-4 4H3"></path>`)}
756
+ </button>
757
+ </div>
758
+ </div>
759
+ `:k}
760
+ ${t?Xn`
761
+ <div class="overlay overlay--tools" role="toolbar" aria-label="Diagram controls">
762
+ ${this.showViewControls?Xn`
763
+ <div class="tools" role="group" aria-label="View">
764
+ <button
765
+ type="button"
766
+ class="icon-btn"
767
+ aria-label="Zoom out"
768
+ @click=${()=>this.zoomOut()}
769
+ >
770
+ ${this.#R(Zn`<path d="M5 12h14"></path>`)}
771
+ </button>
772
+ <button
773
+ type="button"
774
+ class="icon-btn"
775
+ aria-label="Zoom in"
776
+ @click=${()=>this.zoomIn()}
777
+ >
778
+ ${this.#R(Zn`<path d="M12 5v14M5 12h14"></path>`)}
779
+ </button>
780
+ <button
781
+ type="button"
782
+ class="icon-btn"
783
+ aria-label="Fit to view"
784
+ @click=${()=>this.fit()}
785
+ >
786
+ ${this.#R(Zn`<path d="M8 3H5a2 2 0 0 0-2 2v3M16 3h3a2 2 0 0 1 2 2v3M8 21H5a2 2 0 0 1-2-2v-3M16 21h3a2 2 0 0 0 2-2v-3"></path>`)}
787
+ </button>
788
+ <button
789
+ type="button"
790
+ class="icon-btn"
791
+ aria-label=${this.#l?`Exit fullscreen`:`Fullscreen`}
792
+ @click=${()=>void this.#I()}
793
+ >
794
+ ${this.#l?this.#R(Zn`<path d="M4 14h6v6M20 10h-6V4M14 10l7-7M3 21l7-7"></path>`):this.#R(Zn`<path d="M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7"></path>`)}
795
+ </button>
796
+ </div>
797
+ `:k}
798
+ ${this.showThemeToggle?Xn`
799
+ <button
800
+ type="button"
801
+ class="icon-btn"
802
+ aria-label=${this.#i===`dark`?`Switch to light theme`:`Switch to dark theme`}
803
+ @click=${()=>this.#L()}
804
+ >
805
+ ${this.#i===`dark`?this.#R([Zn`<circle cx="12" cy="12" r="4"></circle>`,Zn`<path d="M12 2v2M12 20v2M4.93 4.93l1.41 1.41M17.66 17.66l1.41 1.41M2 12h2M20 12h2M4.93 19.07l1.41-1.41M17.66 6.34l1.41-1.41"></path>`]):this.#R(Zn`<path d="M21 14.5A8.5 8.5 0 1 1 9.5 3a7 7 0 0 0 11.5 11.5z"></path>`)}
806
+ </button>
807
+ `:k}
808
+ </div>
809
+ `:k}
810
+ </div>
811
+ `}};function Tr(e){let t=Math.max(0,Math.round(e/1e3)),n=Math.floor(t/60),r=t%60;return`${n}:${String(r).padStart(2,`0`)}`}var Er=[.5,.75,1,1.25,1.5,2];function Dr(e){let t=Er.find(t=>Math.abs(t-e)<.01)??Er.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t);return String(t)}function Or(e){return`${e}×`}var kr=`k-diagram`;function Ar(){customElements.get(`k-diagram`)||customElements.define(kr,wr)}Ar();var jr=`/home/runner/work/diagrams/diagrams/packages/diagrams-ui/src/diagram/KDiagramLive.tsx`,Mr=nn({react:y,tagName:kr,elementClass:wr,events:{onKDiagramRender:`kdiagram-render`}}),Nr=y.forwardRef(function({className:e,...t},n){return(0,O.jsxDEV)(Mr,{ref:n,className:[`kd-live`,e].filter(Boolean).join(` `),...t},void 0,!1,{fileName:jr,lineNumber:52,columnNumber:7},this)}),Pr={connected:!1,documents:[],capabilities:{write:!1,export:!0},presentation:{theme:`dark`,options:{theme:`dark`}},viewport:{zoom:1,x:0,y:0}};function Fr(e,t){switch(t.type){case`ready`:return{...e,connected:!0,sessionId:t.sessionId,documents:t.documents,activeDocumentId:t.activeDocumentId,capabilities:t.capabilities,presentation:t.presentation,error:void 0};case`document`:{let n=e.documents.some(e=>e.id===t.id)?e.documents.map(e=>e.id===t.id?Ir(t):e):[...e.documents,Ir(t)];return{...e,documents:n,activeDocumentId:t.id,error:void 0}}case`render`:return t.documentId!==e.activeDocumentId||e.render&&t.revision<e.render.revision?e:{...e,render:t};case`selection`:return{...e,selection:t.selection};case`viewport`:return{...e,viewport:t.viewport};case`presentation`:return{...e,presentation:t.presentation};case`saved`:return e;case`error`:return{...e,error:{code:t.code,message:t.message}}}}function Ir(e){return{id:e.id,path:e.path,label:e.label,revision:e.revision,source:e.source}}var Lr={tight:{edgeNodeSpacing:28,edgeEdgeSpacing:14,edgeLabelSpacing:10},normal:{edgeNodeSpacing:36,edgeEdgeSpacing:28,edgeLabelSpacing:16},wide:{edgeNodeSpacing:72,edgeEdgeSpacing:56,edgeLabelSpacing:28}};function Rr(e,t=e.theme){let n={};e.spacingScale!=null&&(n.spacingScale=e.spacingScale),e.density&&(n.density=e.density),e.direction&&(n.direction=e.direction),e.nodePlacement&&(n.nodePlacement=e.nodePlacement),e.groupLayout&&(n.groupLayout=e.groupLayout),e.modelOrder===`on`&&(n.considerModelOrder=!0),e.modelOrder===`off`&&(n.considerModelOrder=!1),e.groupGap&&(n.groupGap=Number(e.groupGap)),e.edgeGaps&&Object.assign(n,Lr[e.edgeGaps]);let r={};return e.edgeStyle&&(r.route=e.edgeStyle),e.crossings&&(r.crossings=e.crossings),{theme:t,layout:n,edges:r,...e.roundedCorners?{roundedCorners:!0}:{},debug:{showPorts:e.showPorts,showBounds:e.showBounds}}}function zr(e){if(!e)return`neutral`;let t=e.trim().toLowerCase();return/^(yes|y|true|ok)\b/.test(t)||t===`yes`?`yes`:/^(no|n|false)\b/.test(t)||t===`no`?`no`:/\byes\b/.test(t)&&!/\bno\b/.test(t)?`yes`:/\bno\b/.test(t)&&!/\byes\b/.test(t)?`no`:`neutral`}function Br(e){if(e===`yes`||e===`no`||e===`neutral`)return e}var Vr=500,Hr=650,Ur=450,Wr=600,Gr=350,Kr=12;function qr(e){if(e.diagramKind===`sequence`&&e.sequence)return ai(e);let t=Jr(e);if(t.length===0)return null;let n=[],r=new Map(e.nodes.map(e=>[e.id,e])),i=-1,a=e=>{let t=r.get(e);return{op:`pulse`,targets:[{type:`node`,id:e}],durationMs:t?.kind===`choice`?Hr:Ur}};for(let e of t){if(e.kind===`chapter`){i+=1,n.push({op:`dim`,targets:[{type:`all`}]}),i>0&&n.push({op:`wait`,durationMs:Gr});continue}if(e.kind===`enter`){n.push({op:`activate`,targets:[{type:`node`,id:e.nodeId}]}),n.push(a(e.nodeId));continue}if(e.kind===`enter-many`){let t=e.nodeIds.map(e=>({type:`node`,id:e}));n.push({op:`activate`,targets:t}),n.push({op:`parallel`,cues:e.nodeIds.map(e=>a(e))});continue}if(e.kind===`edge`){n.push({op:`flow`,path:[e.from,e.to],durationMs:Vr});continue}if(e.edges.length===1){let t=e.edges[0];n.push({op:`flow`,path:[t.from,t.to],durationMs:Vr})}else n.push({op:`parallel`,cues:e.edges.map(e=>({op:`flow`,path:[e.from,e.to],durationMs:Vr}))})}return n.push({op:`wait`,durationMs:Wr}),{id:`auto`,name:`Automatic`,loop:!1,cues:n,source:`auto`}}function Jr(e){let t=Yr(e);if(t.length===0)return[];let n=[];for(let e of t)n.push({kind:`chapter`}),n.push(...Qr(e.startId,e.edges));return n}function Yr(e){if(e.nodes.length===0)return[];let t=new Set(e.nodes.map(e=>e.id)),n=new Map(e.nodes.map(e=>[e.id,e])),r=ei(e,t),i=ti(e,t),a=e.nodes.filter(e=>(i.get(e.id)??0)===0),o=a.length>0?a.map(e=>e.id):[e.nodes[0].id],s=o[0],c=[],l=(e,t)=>{if(c.length>=Kr)return;let n=`${e}|${t.map(e=>`${e.from}>${e.to}`).join(`;`)}`;c.some(e=>`${e.startId}|${e.edges.map(e=>`${e.from}>${e.to}`).join(`;`)}`===n)||c.push({startId:e,edges:ni(t)})};for(let e of Xr(s,new Set,n,r))if(l(s,e),c.length>=Kr)break;let u=new Set;for(let e of c){u.add(e.startId);for(let t of e.edges)u.add(t.from),u.add(t.to)}for(let e of o.slice(1)){if(c.length>=Kr)break;let t=[],n=new Set,i=e;for(;i&&!n.has(i)&&(n.add(i),!(n.size>1&&u.has(i)));){let e=r.get(i)??[];if(e.length===0)break;let n=e[0];t.push({from:i,to:n.to}),i=n.to}l(e,t)}for(let t of e.nodes){if(u.has(t.id)||c.some(e=>e.startId===t.id||e.edges.some(e=>e.from===t.id||e.to===t.id)))continue;if(c.length>=Kr)break;let e=Xr(t.id,new Set,n,r);if(e.length===0)l(t.id,[]);else for(let n of e)l(t.id,n)}return c}function Xr(e,t,n,r){if(t.has(e))return[[]];let i=new Set(t);i.add(e);let a=r.get(e)??[];if(a.length===0)return[[]];if($r(n.get(e),a)){let t=[];for(let o of a){let a={from:e,to:o.to};for(let e of Xr(o.to,i,n,r))t.push([a,...e])}return t.length>0?t:[[]]}return Zr(a.map(t=>{let a={from:e,to:t.to};return Xr(t.to,i,n,r).map(e=>[a,...e])}))}function Zr(e){if(e.length===0)return[[]];let t=[[]];for(let n of e){let e=[];for(let r of t)for(let t of n)e.push([...r,...t]);if(t=e,t.length>=Kr)break}return t}function Qr(e,t){let n=[],r=new Set(t.map(e=>ri(e))),i=new Map(t.map(e=>[ri(e),e])),a=new Set([e]);n.push({kind:`enter`,nodeId:e});let o=t.length+2;for(;r.size>0&&o-->0;){let e=[];for(let t of r){let n=i.get(t);a.has(n.from)&&e.push(n)}if(e.length===0)break;if(e.length===1){let t=e[0];n.push({kind:`edge`,from:t.from,to:t.to})}else n.push({kind:`parallel-edges`,edges:e});let t=[];for(let n of e)r.delete(ri(n)),a.has(n.to)||(a.add(n.to),t.push(n.to));let o=[...new Set(t)];o.length===1?n.push({kind:`enter`,nodeId:o[0]}):o.length>1&&n.push({kind:`enter-many`,nodeIds:o})}return n}function $r(e,t){if(t.length<2)return!1;if(e?.kind===`choice`)return!0;let n=new Set(t.map(e=>e.edge.branch??zr(e.edge.label)));return n.has(`yes`)&&n.has(`no`)}function ei(e,t){let n=new Map;for(let r of e.edges){if(!t.has(r.from)||!t.has(r.to))continue;let e=n.get(r.from);e?e.push({to:r.to,edge:r}):n.set(r.from,[{to:r.to,edge:r}])}return n}function ti(e,t){let n=new Map;for(let e of t)n.set(e,0);for(let r of e.edges)t.has(r.to)&&n.set(r.to,(n.get(r.to)??0)+1);return n}function ni(e){let t=new Set,n=[];for(let r of e){let e=ri(r);t.has(e)||(t.add(e),n.push(r))}return n}function ri(e){return`${e.from}\0${e.to}`}function ii(e,t){let n=new Set;for(let r of e)r.startOrder<=t&&t<=r.endOrder&&n.add(r.participantId);return[...n]}function ai(e){let t=e.sequence;if(!t||t.messages.length===0)return null;let n=[],r=``;for(let e of t.messages){if(!e.from||!e.to||e.kind===`destroy`)continue;let i=ii(t.activations,e.order),a=new Set(i);a.add(e.from),a.add(e.to);let o=[...a].sort().join(`\0`);o!==r&&(n.push({op:`dim`,targets:[{type:`all`}]}),n.push({op:`activate`,targets:[...a].map(e=>({type:`node`,id:e}))}),r=o),n.push({op:`flow`,path:[e.from,e.to],durationMs:Vr,edgeId:e.id,edgeIds:[e.id]}),n.push({op:`pulse`,targets:[{type:`node`,id:e.to}],durationMs:Ur})}return n.push({op:`wait`,durationMs:Wr}),{id:`auto`,name:`Automatic`,loop:!1,cues:n,source:`auto`}}function oi(e,t){if(t.edgeIds&&e<t.edgeIds.length)return t.edgeIds[e];if(e===0)return t.edgeId}function si(e,t){let n=e.sequence;if(!n)return t;let r=n.messages.filter(e=>e.from&&e.to&&e.kind!==`destroy`).slice().sort((e,t)=>e.order-t.order),i=new Set,a=(e,t)=>{for(let n of r)if(!(i.has(n.id)||n.from!==e||n.to!==t))return i.add(n.id),n.id},o=e=>{if(e.op===`parallel`)return{...e,cues:e.cues.map(o)};if(e.op!==`flow`||e.edgeId||e.edgeIds&&e.edgeIds.length>0||e.path.length<2)return e;let t=e.path.length-1,n=[];for(let r=0;r<t;r++){let t=a(e.path[r],e.path[r+1]);if(!t)return e;n.push(t)}return{...e,edgeId:n[0],edgeIds:n}};return t.map(o)}function ci(e){return e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`animation`}var li={1:`one`,one:`one`,exactlyone:`one`,"0..1":`zeroOrOne`,"0:1":`zeroOrOne`,"01":`zeroOrOne`,zeroorone:`zeroOrOne`,optional:`zeroOrOne`,"1..n":`oneOrMany`,"1..*":`oneOrMany`,"1:n":`oneOrMany`,"1:*":`oneOrMany`,n:`oneOrMany`,many:`oneOrMany`,"+":`oneOrMany`,oneormany:`oneOrMany`,"0..n":`zeroOrMany`,"0..*":`zeroOrMany`,"0:n":`zeroOrMany`,"0:*":`zeroOrMany`,"*":`zeroOrMany`,zeroormany:`zeroOrMany`};function ui(e){return li[e.trim().toLowerCase().replace(/\s+/g,``)]}function di(e){if(e==null||e===``||typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return;let t=String(e).trim();if(!t)return;let n=pi(t);if(n)return n;let r=t.split(/[:|]/).map(e=>e.trim()).filter(Boolean);if(r.length>=2){let e=ui(r[0]),t=ui(r[1]);if(e&&t)return{from:e,to:t}}let i=ui(t);if(i)return{from:`one`,to:i}}function fi(e){if(!e)return!0;let t=e.trim();return!t||pi(t)||/^(?:1|0\.\.1|1\.\.N|0\.\.N|N|\*):\s*(?:1|0\.\.1|1\.\.N|0\.\.N|N|\*)$/i.test(t)||/^(?:\d+\.\.[Nn*]|\d+:[Nn*]|\*|[Nn]|0\.\.[Nn*])$/i.test(t)?!0:di(t)?!/[a-z]/i.test(t.replace(/n/gi,``)):!1}function pi(e){let t=e.replace(/\s+/g,``).match(/^([|}{o]+)--([|}{o]+)$/);if(!t)return;let n=mi(t[1]),r=mi(t[2]);if(!(!n||!r))return{from:n,to:r}}function mi(e){if(e===`}o`||e===`o{`)return`zeroOrMany`;if(e===`}|`||e===`|{`)return`oneOrMany`;if(e===`||`)return`one`;if(e===`o|`||e===`|o`)return`zeroOrOne`;if(e===`|`)return`one`;if(e===`o`)return`zeroOrOne`}function hi(e){return{from:e?`one`:`zeroOrOne`,to:`zeroOrMany`}}var gi=new Set([`PK`,`PRIMARY`,`FK`,`FOREIGN`,`UK`,`UNIQUE`,`NN`,`NOTNULL`,`NOT_NULL`]);function _i(e){let t=e.trim();if(!t)return null;let n,r=t.split(/\s+\/\/\s+/);r.length>1&&(t=r[0].trim(),n=r.slice(1).join(` // `).trim()||void 0);let i,a=t.match(/^(.*?)\s*->\s*([A-Za-z_][\w-]*)\.([A-Za-z_][\w-]*)\s*$/);if(a)t=a[1].trim(),i={table:a[2],column:a[3]};else{let e=t.match(/^(.*?)\s+(?:ref|references)\s+([A-Za-z_][\w-]*)\.([A-Za-z_][\w-]*)\s*$/i);e&&(t=e[1].trim(),i={table:e[2],column:e[3]})}let o=t.replace(/\s*:\s*/g,` `).split(/\s+/).filter(Boolean);if(o.length===0)return null;let s=o[0],c=[],l=!1,u=[];for(let e=1;e<o.length;e++){let t=o[e],n=t.toUpperCase();if(n===`NOT`&&o[e+1]?.toUpperCase()===`NULL`){l=!0,e++;continue}switch(n){case`PK`:case`PRIMARY`:c.includes(`pk`)||c.push(`pk`);break;case`FK`:case`FOREIGN`:c.includes(`fk`)||c.push(`fk`);break;case`UK`:case`UNIQUE`:c.includes(`uk`)||c.push(`uk`);break;case`NN`:case`NOTNULL`:case`NOT_NULL`:l=!0;break;default:gi.has(n)||u.push(t);break}}return i&&!c.includes(`fk`)&&c.push(`fk`),{name:s,type:u.length?u.join(` `):void 0,keys:c,notNull:l||void 0,references:i,note:n}}function vi(e){if(!Array.isArray(e))return[];let t=[];for(let n of e){let e=_i(String(n));e&&t.push(e)}return t}function yi(e,t){return e?e.findIndex(e=>e.name===t):-1}function bi(e){let t=[];for(let n of e.keys)t.push(n.toUpperCase());e.notNull&&t.push(`NN`);let n=[];e.type&&n.push(e.type),n.push(...t),e.references&&n.push(`-> ${e.references.table}.${e.references.column}`);let r=e.name;return n.length&&(r+=`: ${n.join(` `)}`),e.note&&(r+=` // ${e.note}`),r}var xi={alt:`alternate`,alternate:`alternate`,opt:`optional`,optional:`optional`,loop:`loop`,par:`parallel`,parallel:`parallel`,critical:`critical`,break:`break`,group:`section`,section:`section`,box:`section`};function Si(e){switch(e){case`alternate`:return`Alternate`;case`optional`:return`Optional`;case`loop`:return`Loop`;case`parallel`:return`Parallel`;case`critical`:return`Critical`;case`break`:return`Break`;case`section`:return`Section`}}function Ci(e){return xi[e.toLowerCase()]}var wi=[`<->`,`<..`,`<~`,`<=`,`<-`,`x-`,`=>`,`~>`,`..>`,`-->`,`-x`,`->`,`--`];function Ti(e,t=[]){let n=[],r=0,i=1,a=1,o=(t,n)=>{let r=e.slice(0,t).split(`
812
+ `).length,i=t-(e.lastIndexOf(`
813
+ `,t-1)+1)+1,a=e.slice(0,n).split(`
814
+ `).length,o=n-(e.lastIndexOf(`
815
+ `,n-1)+1)+1;return{start:{line:r,column:i,offset:t},end:{line:a,column:o,offset:n}}};for(;r<e.length;){let s=r;if(e[r]===`
816
+ `){n.push({type:`newline`,value:`
817
+ `,range:o(s,++r)}),i++,a=1;continue}if(e[r]===` `||e[r]===` `||e[r]===`\r`||e[r]===`;`){r++,a++;continue}if(e.slice(r,r+2)===`//`){r+=2;let t=r;for(;r<e.length&&e[r]!==`
818
+ `;)r++;n.push({type:`comment`,value:e.slice(t,r).trim(),range:o(s,r)});continue}if(e.slice(r,r+2)===`/*`){for(r+=2;r<e.length&&e.slice(r,r+2)!==`*/`;)r++;r<e.length&&(r+=2);continue}if(e[r]===`[`){n.push({type:`lbracket`,value:`[`,range:o(s,++r)}),a++;continue}if(e[r]===`]`){n.push({type:`rbracket`,value:`]`,range:o(s,++r)}),a++;continue}if(e[r]===`(`){n.push({type:`lparen`,value:`(`,range:o(s,++r)}),a++;continue}if(e[r]===`)`){n.push({type:`rparen`,value:`)`,range:o(s,++r)}),a++;continue}if(e[r]===`{`){n.push({type:`lbrace`,value:`{`,range:o(s,++r)}),a++;continue}if(e[r]===`}`){n.push({type:`rbrace`,value:`}`,range:o(s,++r)}),a++;continue}if(e[r]===`:`){n.push({type:`colon`,value:`:`,range:o(s,++r)}),a++;continue}if(e[r]===`,`){n.push({type:`comma`,value:`,`,range:o(s,++r)}),a++;continue}if(e[r]===`*`){n.push({type:`star`,value:`*`,range:o(s,++r)}),a++;continue}if(e[r]===`#`){let i=r+1;for(;i<e.length&&/[0-9a-fA-F]/.test(e[i]);)i++;let c=i-r-1;if(c===3||c===4||c===6||c===8){n.push({type:`identifier`,value:e.slice(r,i),range:o(s,i)}),a+=i-r,r=i;continue}t.push({severity:`error`,code:`FM006`,message:`Unexpected character "#"`,range:o(s,s+1),hint:`Use a valid hex color (#rgb, #rrggbb, #rgba, or #rrggbbaa)`}),r++,a++;continue}let c=!1;for(let t of wi)if(e.slice(r,r+t.length)===t){if(t===`--`){let t=e[r+2];if(t&&/[A-Za-z0-9_-]/.test(t))continue}n.push({type:`edgeOp`,value:t,range:o(s,r+t.length)}),r+=t.length,a+=t.length,c=!0;break}if(!c){if(e[r]===`.`){n.push({type:`dot`,value:`.`,range:o(s,++r)}),a++;continue}if(e[r]===`"`){r++;let i=``;for(;r<e.length&&e[r]!==`"`;)e[r]===`\\`&&r+1<e.length?i+=e[++r]:i+=e[r],r++;r>=e.length||e[r]!==`"`?t.push({severity:`error`,code:`FM007`,message:`Unclosed string literal`,range:o(s,r)}):r++,n.push({type:`string`,value:i,range:o(s,r)});continue}if(/[0-9]/.test(e[r])){let t=``;for(;r<e.length&&/[0-9]/.test(e[r]);)t+=e[r++];if(e[r]===`.`&&/[0-9]/.test(e[r+1]??``))for(t+=e[r++];r<e.length&&/[0-9]/.test(e[r]);)t+=e[r++];n.push({type:`number`,value:t,range:o(s,r)});continue}if(e[r]===`-`&&e[r+1]===`-`&&/[a-zA-Z_]/.test(e[r+2]??``)){let t=`--`;for(r+=2;r<e.length&&/[a-zA-Z0-9_-]/.test(e[r]);)t+=e[r++];n.push({type:`identifier`,value:t,range:o(s,r)});continue}if(/[a-zA-Z_]/.test(e[r])){let t=``;for(;r<e.length&&/[a-zA-Z0-9_-]/.test(e[r]);)t+=e[r++];n.push({type:`identifier`,value:t,range:o(s,r)});continue}t.push({severity:`error`,code:`FM006`,message:`Unexpected character "${e[r]}"`,range:o(s,s+1)}),r++,a++}}return n.push({type:`eof`,value:``,range:o(e.length,e.length)}),n}function Ei(e){let t=[];return new Di(Ti(e,t),t,e).parseDocument()}var Di=class{constructor(e,t,n){this.tokens=e,this.diagnostics=t,this.source=n,this.pos=0}peek(e=0){return this.tokens[this.pos+e]??this.tokens[this.tokens.length-1]}advance(){return this.tokens[this.pos++]??this.tokens[this.tokens.length-1]}at(e,t){let n=this.peek();return n.type===e&&(t===void 0||n.value===t)}atWord(e){let t=this.peek();return t.type===`identifier`&&t.value===e}skipNewlines(){this.skipTrivia()}skipTrivia(){for(;this.at(`newline`)||this.at(`comment`);)this.advance()}error(e,t,n,r){this.diagnostics.push({severity:`error`,code:e,message:t,range:n,hint:r})}parseDocument(){this.skipNewlines();let e;if(this.atWord(`kdiagram`)){this.advance();let t=this.advance();t.type===`number`&&(e=Number(t.value)),this.skipNewlines()}let t=[];for(;!this.at(`eof`)&&(this.skipNewlines(),!this.at(`eof`));)this.atWord(`diagram`)?t.push(this.parseDiagram(`flow`)):this.atWord(`state`)?t.push(this.parseDiagram(`state`)):this.atWord(`sequence`)?t.push(this.parseSequence()):(this.error(`FM001`,`Unexpected token "${this.peek().value}"`,this.peek().range),this.advance()),this.skipNewlines();return{type:`Document`,version:e,body:t,diagnostics:this.diagnostics}}parseSequence(){let e=this.peek().range.start;this.advance(),this.skipTrivia();let t;this.at(`string`)&&(t=this.advance().value,this.skipTrivia()),this.at(`lbrace`)?this.advance():this.error(`FM002`,`Expected "{" to open sequence`,this.peek().range);let n=[];for(;!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipNewlines(),!(this.at(`rbrace`)||this.at(`eof`)));){let e=this.parseSequenceStatement();e&&(Array.isArray(e)?n.push(...e):n.push(e))}this.at(`rbrace`)?this.advance():this.error(`FM002`,`Expected "}" to close sequence`,this.peek().range);let r=this.tokens[Math.min(this.pos,this.tokens.length-1)].range.end;return{type:`Sequence`,name:t,statements:n,range:{start:e,end:r}}}parseSequenceStatement(){if(this.at(`identifier`)&&this.peek(1).type===`colon`){let e=this.advance();return this.advance(),this.parseNode(e.value,e.range)}if(this.atWord(`activate`))return this.parseSequenceActivate();if(this.atWord(`deactivate`))return this.parseSequenceDeactivate();if(this.atWord(`create`))return this.parseSequenceCreate();if(this.atWord(`destroy`))return this.parseSequenceDestroy();if(this.atWord(`note`))return this.parseSequenceNote();if(this.atWord(`autonumber`))return{type:`SequenceAutonumber`,range:this.advance().range};if(this.atWord(`divider`))return this.parseSequenceDivider();if(this.atWord(`alt`)||this.atWord(`alternate`)||this.atWord(`opt`)||this.atWord(`optional`)||this.atWord(`loop`)||this.atWord(`par`)||this.atWord(`parallel`)||this.atWord(`critical`)||this.atWord(`break`)||this.atWord(`group`)||this.atWord(`section`)||this.atWord(`box`))return this.parseSequenceFragment();if(this.atWord(`style`))return this.parseStyle();if(this.atWord(`direction`)||this.atWord(`density`))return this.parseDirective();if(this.atWord(`layout`))return this.parseLayoutBlock();if(this.atWord(`edges`))return this.parseEdgePolicyBlock();if(this.atWord(`render`))return this.parseRenderBlock();if(this.atWord(`presentation`))return this.parsePresentationBlock();if(this.atWord(`animation`))return this.parseAnimationBlock();if(this.at(`star`)&&this.peek(1).type===`edgeOp`){let e=this.advance();return this.parseEdgeChain(`*`,void 0,e.range)}if(this.at(`identifier`)){if(this.looksLikeStyleRef())return this.parseStyleRefStatement();let e=this.advance();if(this.at(`dot`)||this.at(`edgeOp`)){let t=this.parseQualifiedName(e.value,e.range);return this.parseEdgeChain(t.nodeId,t.column,e.range)}return this.error(`FM003`,`Unexpected identifier "${e.value}"`,e.range),null}return this.error(`FM004`,`Unexpected token "${this.peek().value}"`,this.peek().range),this.advance(),null}parseSequenceActivate(){let e=this.advance(),t=this.advance();return t.type===`identifier`?{type:`SequenceActivate`,participantId:t.value,range:{start:e.range.start,end:t.range.end}}:(this.error(`FM140`,`Expected participant id after activate`,t.range),{type:`SequenceActivate`,participantId:``,range:e.range})}parseSequenceDeactivate(){let e=this.advance(),t=this.advance();return t.type===`identifier`?{type:`SequenceDeactivate`,participantId:t.value,range:{start:e.range.start,end:t.range.end}}:(this.error(`FM141`,`Expected participant id after deactivate`,t.range),{type:`SequenceDeactivate`,participantId:``,range:e.range})}parseSequenceCreate(){let e=this.advance();if(this.skipTrivia(),!(this.at(`identifier`)&&this.peek(1).type===`colon`))return this.error(`FM142`,'Expected `create id: kind "Label"`',this.peek().range),{type:`SequenceCreate`,node:{type:`Node`,id:``,kind:`participant`,properties:{},styleRefs:[],range:e.range},range:e.range};let t=this.advance();this.advance();let n=this.parseNode(t.value,t.range);return{type:`SequenceCreate`,node:n,range:{start:e.range.start,end:n.range.end}}}parseSequenceDestroy(){let e=this.advance(),t=this.advance();return t.type===`identifier`?{type:`SequenceDestroy`,participantId:t.value,range:{start:e.range.start,end:t.range.end}}:(this.error(`FM143`,`Expected participant id after destroy`,t.range),{type:`SequenceDestroy`,participantId:``,range:e.range})}parseSequenceNote(){let e=this.advance();this.skipTrivia();let t=`over`;this.atWord(`over`)?(this.advance(),t=`over`):this.atWord(`left`)?(this.advance(),this.skipTrivia(),this.atWord(`of`)&&this.advance(),t=`left`):this.atWord(`right`)?(this.advance(),this.skipTrivia(),this.atWord(`of`)&&this.advance(),t=`right`):this.error(`FM144`,`Expected note placement (over | left of | right of)`,this.peek().range),this.skipTrivia();let n=[];for(;this.at(`identifier`);){if(n.push(this.advance().value),this.skipTrivia(),this.at(`comma`)){this.advance(),this.skipTrivia();continue}break}let r=``;return this.at(`string`)?r=this.advance().value:this.error(`FM145`,`Expected note text string`,this.peek().range),{type:`SequenceNote`,placement:t,participantIds:n,text:r,range:{start:e.range.start,end:this.peek(-1)?.range.end??e.range.end}}}parseSequenceDivider(){let e=this.advance();this.skipTrivia();let t;return this.at(`string`)&&(t=this.advance().value),{type:`SequenceDivider`,label:t,range:{start:e.range.start,end:this.peek(-1)?.range.end??e.range.end}}}parseSequenceFragment(){let e=this.peek(),t=Ci(e.value)??`section`;this.advance(),this.skipTrivia();let n;this.at(`string`)&&(n=this.advance().value,this.skipTrivia());let r=this.parseOptionalIsStyleRefs();this.skipTrivia();let i=[],a=this.parseSequenceFragmentBody(n,r);for(i.push(a);t===`alternate`&&(this.atWord(`else`)||this.atWord(`otherwise`))||t===`parallel`&&(this.atWord(`and`)||this.atWord(`also`));){this.advance(),this.skipTrivia();let e;this.at(`string`)&&(e=this.advance().value,this.skipTrivia());let t=this.parseOptionalIsStyleRefs();this.skipTrivia(),i.push(this.parseSequenceFragmentBody(e,t))}return{type:`SequenceFragment`,operator:t,label:n,styleRefs:r,operands:i,range:{start:e.range.start,end:this.peek(-1)?.range.end??e.range.end}}}parseSequenceFragmentBody(e,t=[]){let n=this.peek().range.start;if(!this.at(`lbrace`))return this.error(`FM146`,`Expected "{" to open fragment body`,this.peek().range),{label:e,styleRefs:t,statements:[],range:this.peek().range};this.advance();let r=[];for(;!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipNewlines(),!(this.at(`rbrace`)||this.at(`eof`)));){let e=this.parseSequenceStatement();e&&(Array.isArray(e)?r.push(...e):r.push(e))}return this.at(`rbrace`)?this.advance():this.error(`FM146`,`Expected "}" to close fragment body`,this.peek().range),{label:e,styleRefs:t,statements:r,range:{start:n,end:this.peek(-1)?.range.end??n}}}parseDiagram(e){let t=this.peek().range.start;this.advance(),this.skipTrivia();let n;this.at(`string`)&&(n=this.advance().value,this.skipTrivia()),this.at(`lbrace`)?this.advance():this.error(`FM002`,`Expected "{" to open ${e} diagram`,this.peek().range);let r=[];for(;!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipNewlines(),!(this.at(`rbrace`)||this.at(`eof`)));){let e=this.parseStatement(!0);e&&(Array.isArray(e)?r.push(...e):r.push(e))}this.at(`rbrace`)?this.advance():this.error(`FM002`,`Expected "}" to close diagram`,this.peek().range);let i=this.tokens[Math.min(this.pos,this.tokens.length-1)].range.end;return{type:`Diagram`,diagramKind:e,name:n,statements:r,range:{start:t,end:i}}}parseStatement(e=!1){if(this.at(`identifier`)&&this.peek(1).type===`colon`){if(e&&Ai(this.peek().value))return this.parseDirective();let t=this.advance();return this.advance(),this.parseNode(t.value,t.range)}if(this.atWord(`group`)||this.atWord(`boundary`)||this.atWord(`zone`)||this.atWord(`swimlane`))return this.parseGroup();if(this.atWord(`style`))return this.parseStyle();if(this.atWord(`direction`)||this.atWord(`density`))return this.parseDirective();if(this.atWord(`layout`))return this.parseLayoutBlock();if(this.atWord(`edges`))return this.parseEdgePolicyBlock();if(this.atWord(`render`))return this.parseRenderBlock();if(this.atWord(`presentation`))return this.parsePresentationBlock();if(this.atWord(`animation`))return this.parseAnimationBlock();if(this.at(`identifier`)){if(this.looksLikeStyleRef())return this.parseStyleRefStatement();if(e&&this.looksLikeGroupMember())return this.parseGroupMemberList();let t=this.advance();if(this.at(`dot`)||this.at(`edgeOp`)){let e=this.parseQualifiedName(t.value,t.range);return this.parseEdgeChain(e.nodeId,e.column,t.range)}return this.error(`FM003`,`Unexpected identifier "${t.value}"`,t.range),null}return this.error(`FM004`,`Unexpected token "${this.peek().value}"`,this.peek().range),this.advance(),null}parseNode(e,t){let n=t.start,r=this.advance(),i=r.value,a;this.at(`string`)&&(a=this.advance().value);let o=this.parseOptionalIsStyleRefs(),s=this.parseOptionalProperties();o.push(...this.parseOptionalIsStyleRefs());let c=this.peek(-1)?.range.end??r.range.end;return{type:`Node`,id:e,kind:i,label:a,properties:s,styleRefs:o,range:{start:n,end:c}}}parseOptionalIsStyleRefs(){let e=[];for(;this.atWord(`is`);){this.advance();let t=this.advance();if(t.type!==`identifier`){this.error(`FM008`,`Expected style name after "is"`,t.range);break}e.push(t.value)}return e}parseQualifiedName(e,t){if(!this.at(`dot`))return{nodeId:e};this.advance();let n=this.advance();return n.type===`identifier`?{nodeId:e,column:n.value}:(this.error(`FM007`,`Expected column name after '.'`,n.range),{nodeId:e})}parseEdgeChain(e,t,n){let r=[],i=e,a=t,o=n.start;for(;this.at(`edgeOp`);){let e=this.advance(),t,n,s;if(this.at(`star`)){let e=this.advance();t=`*`,s=e.range}else{let e=this.advance();if(e.type!==`identifier`){this.error(`FM005`,`Expected target node id after edge operator`,e.range,`Add a target node id after the edge operator.`);break}let r=this.parseQualifiedName(e.value,e.range);t=r.nodeId,n=r.column,s=e.range}let c;this.at(`string`)&&(c=this.advance().value);let l=this.parseOptionalProperties(),u=this.peek(-1)?.range.end??s.end;if(r.push({type:`Edge`,from:i,to:t,fromColumn:a,toColumn:n,op:e.value,label:c,properties:l,styleRefs:[],range:{start:o,end:u}}),i=t,a=n,o=s.start,this.atWord(`is`)){this.advance();let e=this.advance();r[r.length-1].styleRefs.push(e.value)}}return r}looksLikeStyleRef(){let e=this.pos;for(;this.tokens[e]?.type===`identifier`;){if(e++,this.tokens[e]?.type===`comma`){e++;continue}break}let t=this.tokens[e];return t?.type===`identifier`&&t.value===`is`}looksLikeGroupMember(){if(!this.at(`identifier`))return!1;let e=this.peek(1);return!(e.type===`colon`||e.type===`edgeOp`||e.type===`dot`||e.type===`identifier`&&e.value===`is`)}parseStyleRefStatement(){let e=this.peek().range.start,t=[this.advance().value];for(;this.at(`comma`);)this.advance(),t.push(this.advance().value);return this.advance(),{type:`StyleRef`,targetIds:t,styleName:this.advance().value,range:{start:e,end:this.peek(-1)?.range.end??e}}}parseGroupMemberList(){let e=this.peek().range.start,t=[this.advance().value];for(;this.at(`comma`);)this.advance(),t.push(this.advance().value);return{type:`GroupMember`,nodeIds:t,range:{start:e,end:this.peek(-1)?.range.end??e}}}parseGroup(){let e=this.peek().range.start,t=this.advance(),n=t.value,r,i;this.at(`identifier`)&&(r=this.advance().value),this.at(`string`)&&(i=this.advance().value);let a={};if(this.at(`lbrace`)){this.advance();let o=[];for(;!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipNewlines(),!(this.at(`rbrace`)||this.at(`eof`)));){let e=this.parseStatement(!0);e&&(Array.isArray(e)?o.push(...e):o.push(e))}this.at(`rbrace`)&&this.advance();let s=this.peek(-1)?.range.end??t.range.end;return{type:`Group`,id:r,label:i,groupKind:n,statements:o,properties:a,range:{start:e,end:s}}}return this.error(`FM006`,`Expected { after group declaration`,this.peek().range),{type:`Group`,id:r,label:i,groupKind:n,statements:[],properties:a,range:{start:e,end:t.range.end}}}parseStyle(){let e=this.advance().range.start,t=this.advance(),n=t.value,r=`node`;this.atWord(`for`)&&(this.advance(),this.atWord(`edge`)?(this.advance(),r=`edge`):this.atWord(`fragment`)&&(this.advance(),r=`fragment`));let i=this.parseBlockProperties();return{type:`Style`,name:n,target:r,properties:i,range:{start:e,end:this.peek(-1)?.range.end??t.range.end}}}parseDirective(){let e=this.advance(),t=e.range.start,n=e.value,r;return this.at(`colon`)&&this.advance(),this.at(`lbracket`)?r=this.parseIdentifierList():!this.at(`newline`)&&!this.at(`comment`)&&!this.at(`rbrace`)&&!this.at(`eof`)&&(r=this.parsePropertyValue()),{type:`Directive`,name:n,value:r,range:{start:t,end:this.peek(-1)?.range.end??e.range.end}}}parseLayoutBlock(){let e=this.advance().range.start;return{type:`LayoutBlock`,properties:this.parseBlockProperties(),range:{start:e,end:this.peek(-1)?.range.end??{line:1,column:1,offset:0}}}}parseEdgePolicyBlock(){let e=this.advance().range.start;return{type:`EdgePolicyBlock`,properties:this.parseBlockProperties(),range:{start:e,end:this.peek(-1)?.range.end??{line:1,column:1,offset:0}}}}parseRenderBlock(){let e=this.advance().range.start;return{type:`RenderBlock`,properties:this.at(`lbrace`)?this.parseBlockProperties():{},range:{start:e,end:this.peek(-1)?.range.end??{line:1,column:1,offset:0}}}}parsePresentationBlock(){let e=this.advance().range.start;return{type:`PresentationBlock`,properties:this.at(`lbrace`)?this.parseBlockProperties():{},range:{start:e,end:this.peek(-1)?.range.end??{line:1,column:1,offset:0}}}}parseAnimationBlock(){let e=this.advance();this.skipTrivia();let t=`Animation`;if(this.at(`string`)?(t=this.advance().value,this.skipTrivia()):this.error(`FM120`,"Expected quoted animation name after `animation`",this.peek().range),!this.at(`lbrace`))return this.error(`FM121`,`Expected "{" to open animation block`,this.peek().range),{type:`AnimationBlock`,name:t,cues:[],range:{start:e.range.start,end:e.range.end}};this.advance();let n=[];for(;!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipTrivia(),!(this.at(`rbrace`)||this.at(`eof`)));){let e=this.parseAnimationCue();e&&n.push(e)}return this.at(`rbrace`)?this.advance():this.error(`FM121`,`Expected "}" to close animation block`,this.peek().range),{type:`AnimationBlock`,name:t,cues:n,range:{start:e.range.start,end:this.peek(-1)?.range.end??e.range.end}}}parseAnimationCue(){let e=this.peek().range;if(this.atWord(`loop`))return this.advance(),{type:`loop`,range:e};if(this.atWord(`wait`))return this.advance(),{type:`wait`,durationMs:this.parseDurationMs()??400,range:{start:e.start,end:this.peek(-1)?.range.end??e.end}};if(this.atWord(`parallel`)){if(this.advance(),this.skipTrivia(),!this.at(`lbrace`))return this.error(`FM121`,`Expected "{" to open parallel animation group`,this.peek().range),null;this.advance();let t=[];for(;!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipTrivia(),!(this.at(`rbrace`)||this.at(`eof`)));){if(this.atWord(`parallel`)){this.error(`FM130`,`Nested parallel groups are not supported`,this.peek().range,`Keep parallel groups one level deep`),this.advance();continue}if(this.atWord(`loop`)){this.error(`FM129`,"`loop` belongs on the animation block, not inside parallel",this.peek().range),this.advance();continue}let e=this.parseAnimationCue();e&&t.push(e)}return this.at(`rbrace`)?this.advance():this.error(`FM121`,`Expected "}" to close parallel group`,this.peek().range),{type:`parallel`,cues:t,range:{start:e.start,end:this.peek(-1)?.range.end??e.end}}}if(this.atWord(`dim`)||this.atWord(`activate`)||this.atWord(`pulse`)){let t=this.advance().value,n=this.parseAnimationTargets(),r;t===`pulse`&&this.atWord(`for`)&&(this.advance(),r=this.parseDurationMs());let i={start:e.start,end:this.peek(-1)?.range.end??e.end};return t===`pulse`?{type:`pulse`,targets:n,durationMs:r,range:i}:{type:t,targets:n,range:i}}if(this.atWord(`flow`)){this.advance();let t=this.parseAnimationPath(),n;return this.atWord(`for`)&&(this.advance(),n=this.parseDurationMs()),{type:`flow`,path:t,durationMs:n,range:{start:e.start,end:this.peek(-1)?.range.end??e.end}}}return this.error(`FM122`,`Unexpected animation cue "${this.peek().value}"`,this.peek().range,`Expected dim, activate, pulse, flow, wait, parallel, or loop`),this.advance(),null}parseAnimationTargets(){let e=[];for(;;){if(this.skipTrivia(),this.at(`star`))this.advance(),e.push({type:`all`});else if(this.at(`identifier`)){let t=this.advance().value;if(this.at(`edgeOp`)&&this.peek().value===`->`){if(this.advance(),!this.at(`identifier`)){this.error(`FM123`,"Expected node id after `->` in animation target",this.peek().range);break}let n=this.advance().value;e.push({type:`edge`,from:t,to:n})}else e.push({type:`node`,id:t})}else break;if(this.skipTrivia(),this.at(`comma`)){this.advance();continue}break}return e.length===0&&this.error(`FM124`,`Expected animation target (* or node id)`,this.peek().range),e}parseAnimationPath(){let e=[];if(!this.at(`identifier`))return this.error(`FM125`,`Expected node id to start flow path`,this.peek().range),e;for(e.push(this.advance().value);this.at(`edgeOp`)&&this.peek().value===`->`;){if(this.advance(),!this.at(`identifier`)){this.error(`FM125`,"Expected node id after `->` in flow path",this.peek().range);break}e.push(this.advance().value)}return e.length<2&&this.error(`FM126`,`flow path needs at least two node ids (a -> b)`,this.peek().range),e}parseDurationMs(){if(!this.at(`number`)){this.error(`FM127`,`Expected duration (e.g. 800ms or 1.5s)`,this.peek().range);return}let e=Number(this.advance().value);if(Number.isFinite(e))return this.at(`identifier`)&&(this.peek().value===`ms`||this.peek().value===`s`)&&this.advance().value===`s`?Math.round(e*1e3):Math.round(e)}parseBlockProperties(){let e={};if(!this.at(`lbrace`))return e;for(this.advance();!this.at(`rbrace`)&&!this.at(`eof`);)if(this.skipTrivia(),this.at(`identifier`)){let t=this.advance().value;if(this.at(`colon`)&&this.advance(),t===`columns`&&this.at(`lbrace`)){e[t]=this.parseColumnsBlock();continue}if(this.at(`lbracket`)){e[t]=this.parseIdentifierList();continue}if(this.at(`newline`)||this.at(`comment`)||this.at(`rbrace`)||this.at(`eof`))continue;e[t]=t.startsWith(`--`)||t===`iconColor`?this.parseCssValue():this.parsePropertyValue()}else this.at(`rbrace`)||this.advance();return this.at(`rbrace`)&&this.advance(),e}parsePropertyValue(){let e=this.advance();if(e.type===`number`)return Number(e.value);if(e.value===`true`||e.value===`false`)return e.value===`true`;if(e.type===`string`)return e.value;let t=e.value;for(;this.at(`colon`)&&this.peek(1).type===`identifier`;)this.advance(),t+=`:${this.advance().value}`;return t}parseCssValue(){if(this.at(`string`))return this.advance().value;if(this.at(`newline`)||this.at(`comment`)||this.at(`rbrace`)||this.at(`eof`))return``;let e=this.peek().range.start.offset,t=e;for(;!this.at(`newline`)&&!this.at(`comment`)&&!this.at(`rbrace`)&&!this.at(`eof`);)t=this.advance().range.end.offset;return this.source.slice(e,t).trim()}parseColumnsBlock(){let e=[];if(!this.at(`lbrace`))return e;for(this.advance();!this.at(`rbrace`)&&!this.at(`eof`)&&(this.skipTrivia(),!(this.at(`rbrace`)||this.at(`eof`)));){if(this.peek().type!==`identifier`){this.error(`FM113`,`Expected column name in columns block`,this.peek().range),this.advance();continue}let t=this.advance();this.at(`colon`)&&this.advance();let n=[];for(;!this.at(`newline`)&&!this.at(`comment`)&&!this.at(`rbrace`)&&!this.at(`eof`)&&!this.at(`comma`);){let e=this.advance();n.push(e.value)}let r;this.at(`comment`)&&(r=this.advance().value||void 0),this.at(`comma`)&&this.advance();let i=Oi(n),a=r?`${t.value}: ${i} // ${r}`:`${t.value}: ${i}`;e.push(a.trim())}return this.at(`rbrace`)&&this.advance(),e}parseOptionalProperties(){return this.at(`lbrace`)?this.parseBlockProperties():{}}parseIdentifierList(){let e=[];if(!this.at(`lbracket`))return e;for(this.advance();!this.at(`rbracket`)&&!this.at(`eof`)&&(this.skipTrivia(),!this.at(`rbracket`));)e.push(this.advance().value),this.at(`comma`)&&this.advance();return this.at(`rbracket`)&&this.advance(),e}};function Oi(e){if(e.length===0)return``;let t=``;for(let n of e){if(n===`.`){t=t.trimEnd()+`.`;continue}if(t.endsWith(`.`)){t+=n;continue}t+=t?` ${n}`:n}return t.trim()}var ki=new Set([`padding`,`arrange`,`align`,`gap`,`columns`,`rows`,`column`,`row`,`span`,`colSpan`,`rowSpan`,`chrome`,`icon`,`iconPaint`,`iconColor`]);function Ai(e){return ki.has(e)}var ji=[`preset`,`background`,`grid`,`frame`,`legend`,`nodeGradient`,`groupHeaders`];function Mi(e,t=0){return e==null?{top:t,right:t,bottom:t,left:t}:typeof e==`number`?{top:e,right:e,bottom:e,left:e}:{top:e.top??t,right:e.right??t,bottom:e.bottom??t,left:e.left??t}}var Ni={title:!1,labelCase:`as-authored`,showKindSubtitles:!1,showEndpoints:!1,groupAccent:!1,clampLabels:!0};function Pi(e,t){if(e===!1||e==null)return!1;if(e===!0||e===`auto`)return t?{text:t,align:`start`}:!1;if(typeof e==`object`){let n=e.text??t;return n?{text:n,subtitle:e.subtitle,align:e.align??`start`}:!1}return!1}function Fi(e,t){let n={...Ni,...e};return{title:Pi(n.title,t),padding:Mi(n.padding,0),contentPadding:Mi(n.contentPadding,0),labelCase:`as-authored`,showKindSubtitles:n.showKindSubtitles===!0,showEndpoints:n.showEndpoints===!0,groupAccent:n.groupAccent===!0,clampLabels:n.clampLabels!==!1}}function Ii(e){let t={},n=t=>{let n=e[t];return typeof n==`string`?n:void 0},r=t=>{let n=e[t];if(typeof n==`boolean`)return n;if(n===`true`)return!0;if(n===`false`)return!1},i=t=>{let n=e[t];return typeof n==`number`?n:void 0},a=e.title,o=n(`titleSubtitle`),s=n(`titleAlign`);a===!1||a===`false`||a===`none`?t.title=!1:a===!0||a===`true`||a===`auto`?o||s?t.title={subtitle:o,align:s}:t.title=a===`auto`?`auto`:!0:typeof a==`string`?t.title={text:a,subtitle:o,align:s}:(o||s)&&(t.title={subtitle:o,align:s});let c=i(`padding`);c!=null&&(t.padding=c);let l=i(`contentPadding`);l!=null&&(t.contentPadding=l),t.labelCase=`as-authored`;let u=r(`showKindSubtitles`);u!=null&&(t.showKindSubtitles=u);let d=r(`showEndpoints`);if(d!=null&&(t.showEndpoints=d),e.groupAccent===`auto`)t.groupAccent=!0;else{let e=r(`groupAccent`);e!=null&&(t.groupAccent=e)}let f=r(`clampLabels`);return f!=null&&(t.clampLabels=f),t}function Li(e,t){return`as-authored`}function Ri(e,t){return e}function zi(...e){let t;for(let n of e)n&&(t={...t,...n});return t}var Bi=[`rectangle`,`rounded`,`pill`,`circle`,`ellipse`,`diamond`,`hexagon`,`triangle`,`parallelogram`,`trapezoid`,`document`,`folded-document`,`cylinder`,`cloud`,`person`,`queue`,`stream`,`table`,`boundary`],Vi={note:`folded-document`,card:`rounded`,round:`rounded`,roundedbox:`rounded`,rect:`rectangle`,box:`rectangle`,cyl:`cylinder`,hex:`hexagon`,diam:`diamond`,capsule:`pill`,stadium:`pill`,pipe:`queue`,log:`stream`};function Hi(e){if(!e)return`rounded`;let t=String(e).trim().toLowerCase();return t?Vi[t]??t:`rounded`}function Ui(e){if(!e)return!1;let t=Hi(e);return Bi.includes(t)}function A(e,t){let n=new Set(t.capabilities??[]);(t.shape===`rounded`||t.shape===`rectangle`||t.shape===`table`||t.shape===`boundary`)&&n.add(`card`);let r=Hi(t.shape),i=[`flow-node-${e}`,`flow-shape-${r}`,...t.extraClasses??[]];return{shape:r,icon:t.icon,subtitle:t.subtitle,classNames:[...new Set(i)],cssVars:t.cssVars??{},defaultMinWidth:t.min??120,defaultMaxWidth:t.max??240,defaultDepth:t.depth??1,category:t.category,capabilities:[...n]}}function Wi(e){let t=e.replace(/[_-]+/g,` `).trim();return t?t.replace(/\b\w/g,e=>e.toUpperCase()):`Node`}function Gi(e){return e.replace(/[^a-z0-9-]/gi,``)||`generic`}var Ki={note:A(`note`,{shape:`folded-document`,subtitle:`Note`,category:`general`,min:120,max:280,capabilities:[`annotation`]}),label:A(`label`,{shape:`rounded`,subtitle:`Label`,category:`general`,min:64,max:200,capabilities:[`annotation`,`symbolic`]}),group:A(`group`,{shape:`boundary`,subtitle:`Group`,category:`general`,min:160,max:400,capabilities:[`boundary`]}),image:A(`image`,{shape:`rectangle`,subtitle:`Image`,category:`general`,min:80,max:320}),icon:A(`icon`,{shape:`rounded`,subtitle:`Icon`,category:`general`,min:56,max:96,capabilities:[`symbolic`,`icon-only`]}),start:A(`start`,{shape:`pill`,subtitle:`Start`,category:`flowchart`,min:88,max:160,capabilities:[`symbolic`]}),end:A(`end`,{shape:`pill`,subtitle:`End`,category:`flowchart`,min:88,max:160,capabilities:[`symbolic`]}),process:A(`process`,{shape:`rounded`,subtitle:`Process`,category:`flowchart`,min:128,max:260}),task:A(`task`,{shape:`rounded`,subtitle:`Task`,category:`flowchart`,min:120,max:240}),subprocess:A(`subprocess`,{shape:`rounded`,subtitle:`Subprocess`,category:`flowchart`,min:140,max:280}),choice:A(`choice`,{shape:`diamond`,subtitle:`Decision`,category:`flowchart`,min:180,max:360}),decision:A(`decision`,{shape:`diamond`,subtitle:`Decision`,category:`flowchart`,min:180,max:360,extraClasses:[`flow-node-choice`]}),io:A(`io`,{shape:`parallelogram`,subtitle:`Input / Output`,category:`flowchart`,min:120,max:240}),document:A(`document`,{shape:`document`,subtitle:`Document`,category:`flowchart`,min:120,max:240}),preparation:A(`preparation`,{shape:`hexagon`,subtitle:`Preparation`,category:`flowchart`,min:120,max:220}),manual:A(`manual`,{shape:`trapezoid`,subtitle:`Manual`,category:`flowchart`,min:120,max:240}),connector:A(`connector`,{shape:`circle`,subtitle:`Connector`,category:`flowchart`,min:36,max:56,capabilities:[`symbolic`]}),user:A(`user`,{shape:`person`,subtitle:`User`,category:`architecture`,icon:`user`,min:100,max:220,extraClasses:[`flow-node-user`]}),person:A(`person`,{shape:`person`,subtitle:`Person`,category:`architecture`,icon:`user`,min:100,max:220,extraClasses:[`flow-node-user`]}),actor:A(`actor`,{shape:`rounded`,subtitle:`Actor`,category:`architecture`,icon:`user`,min:120,max:240,extraClasses:[`flow-node-actor`],capabilities:[`sequence-lifeline`]}),participant:A(`participant`,{shape:`rounded`,subtitle:`Participant`,category:`architecture`,min:120,max:240,extraClasses:[`flow-node-participant`],capabilities:[`sequence-lifeline`]}),system:A(`system`,{shape:`rounded`,subtitle:`System`,category:`architecture`,min:176,max:340}),external:A(`external`,{shape:`rectangle`,subtitle:`External`,category:`architecture`,min:120,max:260}),container:A(`container`,{shape:`rounded`,subtitle:`Container`,category:`architecture`,min:148,max:300}),component:A(`component`,{shape:`rounded`,subtitle:`Component`,category:`architecture`,min:120,max:240}),service:A(`service`,{shape:`rounded`,subtitle:`Service`,category:`architecture`,min:128,max:280}),application:A(`application`,{shape:`rounded`,subtitle:`Application`,category:`architecture`,min:140,max:280,extraClasses:[`flow-node-service`]}),module:A(`module`,{shape:`rounded`,subtitle:`Module`,category:`architecture`,min:120,max:240,extraClasses:[`flow-node-service`]}),package:A(`package`,{shape:`folded-document`,subtitle:`Package`,category:`architecture`,min:120,max:240}),deployment:A(`deployment`,{shape:`rectangle`,subtitle:`Deployment`,category:`architecture`,min:140,max:280,extraClasses:[`flow-node-service`]}),server:A(`server`,{shape:`rectangle`,subtitle:`Server`,category:`infrastructure`,min:120,max:240,extraClasses:[`flow-node-service`]}),database:A(`database`,{shape:`cylinder`,subtitle:`Database`,category:`infrastructure`,min:100,max:200,capabilities:[`datastore`]}),cache:A(`cache`,{shape:`cylinder`,subtitle:`Cache`,category:`infrastructure`,min:100,max:200,capabilities:[`datastore`],extraClasses:[`flow-node-database`]}),store:A(`store`,{shape:`cylinder`,subtitle:`Data store`,category:`infrastructure`,min:100,max:220,capabilities:[`datastore`],extraClasses:[`flow-node-database`]}),bucket:A(`bucket`,{shape:`cylinder`,subtitle:`Object store`,category:`infrastructure`,min:100,max:220,capabilities:[`datastore`],extraClasses:[`flow-node-database`]}),queue:A(`queue`,{shape:`queue`,subtitle:`Queue`,category:`infrastructure`,min:100,max:180,capabilities:[`messaging`]}),topic:A(`topic`,{shape:`stream`,subtitle:`Topic`,category:`infrastructure`,min:100,max:220,capabilities:[`messaging`],extraClasses:[`flow-node-stream`]}),stream:A(`stream`,{shape:`stream`,subtitle:`Stream`,category:`infrastructure`,min:120,max:260,capabilities:[`messaging`]}),gateway:A(`gateway`,{shape:`hexagon`,subtitle:`Gateway`,category:`infrastructure`,min:110,max:200}),loadbalancer:A(`loadbalancer`,{shape:`hexagon`,subtitle:`Load balancer`,category:`infrastructure`,min:120,max:220,extraClasses:[`flow-node-gateway`]}),cloud:A(`cloud`,{shape:`cloud`,subtitle:`Cloud`,category:`infrastructure`,min:140,max:260}),firewall:A(`firewall`,{shape:`rectangle`,subtitle:`Firewall`,category:`infrastructure`,min:100,max:200,extraClasses:[`flow-node-gateway`]}),zone:A(`zone`,{shape:`boundary`,subtitle:`Zone`,category:`infrastructure`,min:180,max:400,capabilities:[`boundary`]}),broker:A(`broker`,{shape:`hexagon`,subtitle:`Broker`,category:`messaging`,min:110,max:200,capabilities:[`messaging`]}),event:A(`event`,{shape:`pill`,subtitle:`Event`,category:`messaging`,min:90,max:180,capabilities:[`messaging`,`symbolic`]}),command:A(`command`,{shape:`rounded`,subtitle:`Command`,category:`messaging`,min:110,max:220,capabilities:[`messaging`],extraClasses:[`flow-node-service`]}),message:A(`message`,{shape:`document`,subtitle:`Message`,category:`messaging`,min:100,max:200,capabilities:[`messaging`]}),worker:A(`worker`,{shape:`rounded`,subtitle:`Worker`,category:`messaging`,min:110,max:200,extraClasses:[`flow-node-service`]}),producer:A(`producer`,{shape:`rounded`,subtitle:`Producer`,category:`messaging`,min:110,max:200,capabilities:[`messaging`],extraClasses:[`flow-node-service`]}),consumer:A(`consumer`,{shape:`rounded`,subtitle:`Consumer`,category:`messaging`,min:110,max:200,capabilities:[`messaging`],extraClasses:[`flow-node-service`]}),dlq:A(`dlq`,{shape:`queue`,subtitle:`Dead-letter queue`,category:`messaging`,min:110,max:200,capabilities:[`messaging`],extraClasses:[`flow-node-queue`,`flow-node-warning`]}),job:A(`job`,{shape:`rounded`,subtitle:`Job`,category:`messaging`,min:110,max:200,extraClasses:[`flow-node-worker`]}),table:A(`table`,{shape:`cylinder`,subtitle:`Table`,category:`modeling`,min:160,max:320,capabilities:[`datastore`,`erd-table`]}),entity:A(`entity`,{shape:`cylinder`,subtitle:`Entity`,category:`modeling`,min:160,max:320,capabilities:[`datastore`,`erd-table`],extraClasses:[`flow-node-table`]}),class:A(`class`,{shape:`table`,subtitle:`Class`,category:`modeling`,min:160,max:320,capabilities:[`erd-table`],extraClasses:[`flow-node-table`]}),interface:A(`interface`,{shape:`rounded`,subtitle:`Interface`,category:`modeling`,min:120,max:240,extraClasses:[`flow-node-service`]}),aggregate:A(`aggregate`,{shape:`rounded`,subtitle:`Aggregate`,category:`modeling`,min:140,max:280,extraClasses:[`flow-node-service`]}),projection:A(`projection`,{shape:`rounded`,subtitle:`Projection`,category:`modeling`,min:140,max:280,extraClasses:[`flow-node-service`]}),policy:A(`policy`,{shape:`hexagon`,subtitle:`Policy`,category:`modeling`,min:120,max:220,extraClasses:[`flow-node-gateway`]}),state:A(`state`,{shape:`rounded`,subtitle:`State`,category:`state`,min:100,max:200}),initial:A(`initial`,{shape:`circle`,subtitle:`Initial`,category:`state`,min:28,max:40,capabilities:[`symbolic`]}),final:A(`final`,{shape:`circle`,subtitle:`Final`,category:`state`,min:32,max:48,capabilities:[`symbolic`]}),junction:A(`junction`,{shape:`circle`,subtitle:`Junction`,category:`state`,min:24,max:36,capabilities:[`symbolic`]}),fork:A(`fork`,{shape:`rectangle`,subtitle:`Fork`,category:`state`,min:80,max:160,capabilities:[`symbolic`]}),join:A(`join`,{shape:`rectangle`,subtitle:`Join`,category:`state`,min:80,max:160,capabilities:[`symbolic`]}),success:A(`success`,{shape:`rounded`,subtitle:`Success`,category:`flowchart`,min:128,max:260}),warning:A(`warning`,{shape:`rounded`,subtitle:`Manual review`,category:`flowchart`,min:128,max:260}),failure:A(`failure`,{shape:`rounded`,subtitle:`Failure`,category:`flowchart`,min:120,max:240,extraClasses:[`flow-node-warning`]}),commit:A(`commit`,{shape:`circle`,subtitle:`Commit`,category:`git`,min:28,max:44,capabilities:[`symbolic`]}),branch:A(`branch`,{shape:`pill`,subtitle:`Branch`,category:`git`,min:72,max:160,capabilities:[`symbolic`]}),tag:A(`tag`,{shape:`pill`,subtitle:`Tag`,category:`git`,min:64,max:140,capabilities:[`symbolic`]})};for(let[e,t]of Object.entries({rectangle:{shape:`rectangle`,subtitle:`Rectangle`,category:`shape`,min:100,max:240},rounded:{shape:`rounded`,subtitle:`Rounded`,category:`shape`,min:100,max:240},pill:{shape:`pill`,subtitle:`Pill`,category:`shape`,min:88,max:180,capabilities:[`symbolic`]},circle:{shape:`circle`,subtitle:`Circle`,category:`shape`,min:36,max:72,capabilities:[`symbolic`]},ellipse:{shape:`ellipse`,subtitle:`Ellipse`,category:`shape`,min:100,max:200},diamond:{shape:`diamond`,subtitle:`Diamond`,category:`shape`,min:120,max:280},hexagon:{shape:`hexagon`,subtitle:`Hexagon`,category:`shape`,min:110,max:220},triangle:{shape:`triangle`,subtitle:`Triangle`,category:`shape`,min:64,max:140,capabilities:[`symbolic`]},parallelogram:{shape:`parallelogram`,subtitle:`Parallelogram`,category:`shape`,min:120,max:240},trapezoid:{shape:`trapezoid`,subtitle:`Trapezoid`,category:`shape`,min:120,max:240},"folded-document":{shape:`folded-document`,subtitle:`Folded document`,category:`shape`,min:120,max:240,capabilities:[`annotation`]},cylinder:{shape:`cylinder`,subtitle:`Cylinder`,category:`shape`,min:100,max:200,capabilities:[`datastore`]},boundary:{shape:`boundary`,subtitle:`Boundary`,category:`shape`,min:160,max:400,capabilities:[`boundary`]}}))e in Ki||(Ki[e]=A(e,t));var qi={shape:`rounded`,subtitle:`Node`,classNames:[`flow-node-generic`],cssVars:{},defaultMinWidth:100,defaultMaxWidth:200,defaultDepth:1,category:`general`,capabilities:[`card`]};function Ji(e){return Ki[e]||A(e,{shape:e,subtitle:Wi(e),category:`shape`})}function Yi(e){let t=Ki[e];if(t)return{defaults:t,isBuiltin:!0};let n=Hi(e);return n!==e&&Ui(n)?{defaults:Ji(n),isBuiltin:!0}:Bi.includes(e)?{defaults:Ji(e),isBuiltin:!0}:{defaults:{...qi,subtitle:Wi(e),classNames:[`flow-node-${Gi(e)}`,`flow-node-generic`]},isBuiltin:!1}}function Xi(e,t){return Yi(e).defaults.capabilities.includes(t)}function Zi(e){return Yi(e).defaults.subtitle}var Qi=Object.keys(Ki).sort(),$i=Ki;function ea(e){switch(e.toLowerCase()){case`lr`:case`right`:return`LR`;case`rl`:return`RL`;case`td`:case`tb`:case`down`:return`TD`;case`bt`:return`BT`;default:return e.toUpperCase()}}var ta=400,na=600;function ra(e,t,n){let r=new Set,i=[];for(let a of e){let e=ci(a.name);if(r.has(e)){let t=2;for(;r.has(`${e}-${t}`);)t++;e=`${e}-${t}`}r.add(e);let o=!1,s=[];for(let e of a.cues){if(e.type===`loop`){o=!0;continue}let r=ia(e,t,n);r&&s.push(r)}let c=s.length===0?`auto`:`authored`;i.push({id:e,name:a.name,loop:o,cues:s,source:c})}return i}function ia(e,t,n){switch(e.type){case`dim`:case`activate`:return{op:e.type,targets:aa(e.targets,t,n,e.range)};case`pulse`:return{op:`pulse`,targets:aa(e.targets,t,n,e.range),durationMs:e.durationMs??ta};case`flow`:for(let r of e.path)t.has(r)||n.push({severity:`error`,code:`FM128`,message:`Unknown node "${r}" in animation flow path`,range:e.range});return{op:`flow`,path:e.path,durationMs:e.durationMs??na};case`wait`:return{op:`wait`,durationMs:e.durationMs};case`parallel`:{let r=[];for(let i of e.cues){if(i.type===`loop`){n.push({severity:`warning`,code:`FM129`,message:"`loop` inside parallel is ignored — place it on the animation block",range:i.range});continue}if(i.type===`parallel`){n.push({severity:`error`,code:`FM130`,message:`Nested parallel groups are not supported`,range:i.range});continue}let e=ia(i,t,n);e&&r.push(e)}return{op:`parallel`,cues:r}}case`loop`:return null}}function aa(e,t,n,r){let i=[];for(let a of e){if(a.type===`all`){i.push({type:`all`});continue}if(a.type===`node`){t.has(a.id)||n.push({severity:`error`,code:`FM128`,message:`Unknown node "${a.id}" in animation`,range:r}),i.push({type:`node`,id:a.id});continue}(!t.has(a.from)||!t.has(a.to))&&n.push({severity:`error`,code:`FM128`,message:`Unknown edge endpoints "${a.from} -> ${a.to}" in animation`,range:r}),i.push({type:`edge`,from:a.from,to:a.to})}return i}function oa(e,t,n){if(t===`*`)return`found`;if(n===`*`)return`lost`;switch(e){case`-->`:return`return`;case`~>`:case`<~`:case`=>`:case`<=`:return`async`;case`-x`:case`x-`:return`failure`;default:return`sync`}}function sa(e){let t=e.styles??e.style;return Array.isArray(t)?t.map(String):typeof t==`string`?[t]:[]}function ca(e){let t={};for(let[n,r]of Object.entries(e))typeof r!=`string`&&typeof r!=`number`&&typeof r!=`boolean`||(n.startsWith(`--`)||n===`iconColor`)&&(n===`iconColor`?t[`--icon-color`]=String(r):n.startsWith(`--`)&&(t[n]=String(r)));return t}function la(e,t,n){if(t.has(e.id))return n.push({severity:`error`,code:`FM101`,message:`Duplicate participant id "${e.id}"`,range:e.range}),t.get(e.id)??null;let{defaults:r,isBuiltin:i}=Yi(e.kind);i||n.push({severity:`warning`,code:`FM102`,message:`Unknown node kind "${e.kind}" — using generic defaults`,range:e.range,hint:`Any kind can be a sequence lifeline; prefer participant, actor, or architecture kinds.`});let a=e.properties.shape==null?void 0:String(e.properties.shape),o=a?Hi(a):void 0;a&&!Ui(o)&&n.push({severity:`warning`,code:`FM111`,message:`Unknown shape "${a}"`,range:e.range});let s=[...sa(e.properties),...e.styleRefs],c={...r.cssVars,...ca(e.properties)},l=e.properties.icon==null?void 0:String(e.properties.icon),u=l===`none`?void 0:l===void 0?r.shape===`person`?void 0:r.icon:l,d=e.properties.iconPaint==null?void 0:String(e.properties.iconPaint).toLowerCase(),f=d===`theme`||d===`brand`?d:void 0,p=e.properties.iconColor!=null&&String(e.properties.iconColor).length>0?String(e.properties.iconColor):void 0,m={...c,...p?{"--icon-color":p}:{}},h={id:e.id,label:e.label??e.id,labelAuthored:e.label!=null,kind:e.kind,shape:o??r.shape,icon:u,iconPaint:f,iconColor:p,minWidth:r.defaultMinWidth,maxWidth:r.defaultMaxWidth,depth:r.defaultDepth,styleRefs:s,unresolvedVars:Object.keys(m).length?m:void 0,sourceRange:e.range};return t.set(e.id,h),h}function ua(e){let t=e.order;return e.order+=1,t}function da(e,t,n){t===`*`||!t||(e.nodes.has(t)?e.participantOrder.includes(t)||e.participantOrder.push(t):e.diagnostics.push({severity:`error`,code:`FM147`,message:`Unknown participant "${t}" — declare with \`id: kind "Label"\` before use`,range:n??{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}}}))}function fa(e,t,n){let r=ua(e),i=t.id??`msg${e.edgeCounter++}`,a={...t,id:i,order:r};e.messages.push(a);let o=n?.styleRefs??[],s=n?.branch??(a.label==null?void 0:zr(a.label));return a.from&&a.to&&a.from!==`*`&&a.to!==`*`&&e.edges.push({id:i,from:a.from,to:a.to,label:a.label,labelAuthored:a.labelAuthored,kind:a.kind===`async`?`eventual`:a.kind===`failure`?`failure`:a.kind===`return`?`dependency`:a.kind===`destroy`?`failure`:`sync`,arrows:`end`,styleRefs:o,branch:s===`neutral`?void 0:s,sequenceOrder:r,sequenceKind:a.kind,sourceRange:a.sourceRange}),a}function pa(e,t,n){let r=e.openActivations.get(t);if(!r||r.length===0)return;let i=r.pop();e.activations.push({id:i.id,participantId:t,startOrder:i.startOrder,endOrder:n,sourceRange:i.range})}function ma(e,t,n,r){let i=e.openActivations.get(t)??[];i.push({id:`act${e.nextActId++}`,startOrder:n,range:r}),e.openActivations.set(t,i)}function ha(e,t){for(let n of e)switch(n.type){case`Node`:la(n,t.nodes,t.diagnostics),t.participantOrder.includes(n.id)||t.participantOrder.push(n.id);break;case`Edge`:{let e=n.from,r=n.to;da(t,e,n.range),da(t,r,n.range);let i=oa(n.op,e,r),a=[...sa(n.properties),...n.styleRefs],o=Br(n.properties.branch)??(n.label==null?void 0:zr(n.label)),s=fa(t,{from:e===`*`?null:e,to:r===`*`?null:r,kind:i,label:n.label,labelAuthored:n.label!=null,sourceRange:n.range},{styleRefs:a,branch:o});if(i===`sync`&&s.to)ma(t,s.to,s.order,n.range),s.from&&t.callStack.push({messageId:s.id,to:s.to,from:s.from});else if(i===`return`&&s.from){let e=[...t.callStack].reverse().findIndex(e=>e.to===s.from);if(e>=0){let n=t.callStack.length-1-e;s.replyTo=t.callStack[n].messageId,t.callStack.splice(n,1)}pa(t,s.from,s.order)}break}case`SequenceActivate`:da(t,n.participantId,n.range),ma(t,n.participantId,t.order,n.range);break;case`SequenceDeactivate`:da(t,n.participantId,n.range),pa(t,n.participantId,Math.max(0,t.order-1));break;case`SequenceCreate`:{la(n.node,t.nodes,t.diagnostics),t.participantOrder.includes(n.node.id)||t.participantOrder.push(n.node.id);let e=t.messages.at(-1);fa(t,{from:e?.to??e?.from??null,to:n.node.id,kind:`create`,label:n.node.label,labelAuthored:n.node.label!=null,sourceRange:n.range});break}case`SequenceDestroy`:da(t,n.participantId,n.range),fa(t,{from:n.participantId,to:n.participantId,kind:`destroy`,sourceRange:n.range}),pa(t,n.participantId,t.order-1);break;case`SequenceNote`:{for(let e of n.participantIds)da(t,e,n.range);let e=ua(t);t.notes.push({id:`note${t.nextNoteId++}`,order:e,placement:n.placement,participantIds:n.participantIds,text:n.text,sourceRange:n.range});break}case`SequenceDivider`:{let e=ua(t);t.dividers.push({id:`div${t.nextDivId++}`,order:e,label:n.label,sourceRange:n.range});break}case`SequenceAutonumber`:t.autonumber=!0;break;case`SequenceFragment`:ga(n,t);break;case`Style`:t.styles.push({name:n.name,target:n.target,properties:Object.fromEntries(Object.entries(n.properties).map(([e,t])=>[e,String(t)]))});break;case`StyleRef`:for(let e of n.targetIds){let r=t.nodes.get(e);r&&!r.styleRefs.includes(n.styleName)&&r.styleRefs.push(n.styleName)}break;case`Directive`:case`LayoutBlock`:case`EdgePolicyBlock`:case`RenderBlock`:case`PresentationBlock`:case`AnimationBlock`:break;default:break}}function ga(e,t){let n=`frag${t.nextFragId++}`,r=t.order,i=[];for(let n of e.operands){let e=t.order,r=t.fragments.length;ha(n.statements,t);let a=t.fragments.splice(r),o=Math.max(e,t.order-1);i.push({label:n.label,styleRefs:[...n.styleRefs],startOrder:e,endOrder:o,children:a})}let a=Math.max(r,t.order-1);t.fragments.push({id:n,operator:e.operator,label:e.label,styleRefs:[...e.styleRefs],unresolvedVars:{},startOrder:r,endOrder:a,operands:i,sourceRange:e.range})}function _a(e){let t=[];for(let n of e)if(n.type===`AnimationBlock`&&t.push(n),n.type===`SequenceFragment`)for(let e of n.operands)t.push(..._a(e.statements));return t}function va(e){let t=Math.max(0,e.order-1);for(let[n,r]of e.openActivations)for(;r.length;){let i=r.pop();e.activations.push({id:i.id,participantId:n,startOrder:i.startOrder,endOrder:t,sourceRange:i.range})}}function ya(e,t=0){let n=[...e.diagnostics],r=e.body[t];if(!r||r.type!==`Sequence`)return n.push({severity:`error`,code:`FM100`,message:`No sequence diagram found at index`,range:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}}}),{graph:{id:`empty`,diagramKind:`sequence`,nodes:[],edges:[],groups:[],styles:[],animations:[],diagnostics:n},layoutHints:{},routingHints:{},renderHints:{},diagnostics:n};let i=r,a={nodes:new Map,edges:[],styles:[],diagnostics:n,participantOrder:[],messages:[],activations:[],fragments:[],notes:[],dividers:[],autonumber:!1,order:0,edgeCounter:0,openActivations:new Map,callStack:[],nextActId:0,nextFragId:0,nextNoteId:0,nextDivId:0};ha(i.statements,a),va(a);let o={autonumber:a.autonumber,messages:a.messages,activations:a.activations,fragments:a.fragments,notes:a.notes,dividers:a.dividers,participantOrder:a.participantOrder},s={id:i.name?i.name.toLowerCase().replace(/\s+/g,`-`):`sequence`,title:i.name,diagramKind:`sequence`,sequence:o,nodes:a.participantOrder.map(e=>a.nodes.get(e)).filter(Boolean),edges:a.edges,groups:[],styles:a.styles,animations:ra(_a(i.statements),a.nodes,n),diagnostics:n},c=j(i);n.push(...c.diagnostics);let{diagnostics:l,...u}=c;return u.layoutHints={...u.layoutHints,direction:u.layoutHints.direction??`TD`},{graph:s,...u,diagnostics:n}}function j(e){let t={},n={},r={},i=[],a=[];for(let i of e.statements){if(i.type===`Directive`&&(i.name===`direction`&&i.value&&(t.direction=ea(String(i.value))),i.name===`density`&&i.value)){let e=String(i.value);(e===`compact`||e===`normal`||e===`spacious`)&&(t.density=e)}if(i.type===`LayoutBlock`&&(i.properties.direction&&(t.direction=ea(String(i.properties.direction))),i.properties.density)){let e=String(i.properties.density);(e===`compact`||e===`normal`||e===`spacious`)&&(t.density=e)}if(i.type===`EdgePolicyBlock`&&i.properties.route&&(n.route=String(i.properties.route)),i.type===`RenderBlock`&&i.properties.theme&&(r.theme=String(i.properties.theme)),i.type===`PresentationBlock`){let e=Ii(i.properties);e&&a.push(e)}}let o=zi(...a);return o&&(r.presentation=o),{layoutHints:t,routingHints:n,renderHints:r,diagnostics:i}}function M(e){let t=e.toLowerCase(),n,r=3;for(let e of Qi){let i=ba(t,e.toLowerCase());i<r&&(r=i,n=e)}return n}function ba(e,t){let n=e.length,r=t.length,i=Array.from({length:n+1},()=>Array.from({length:r+1},()=>0));for(let e=0;e<=n;e++)i[e][0]=e;for(let e=0;e<=r;e++)i[0][e]=e;for(let a=1;a<=n;a++)for(let n=1;n<=r;n++){let r=e[a-1]===t[n-1]?0:1;i[a][n]=Math.min(i[a-1][n]+1,i[a][n-1]+1,i[a-1][n-1]+r)}return i[n][r]}function xa(e){let t=[],n=e.styles;if(Array.isArray(n))for(let e of n)t.push(String(e));return t}function Sa(e){let t={};for(let[n,r]of Object.entries(e))n.startsWith(`--`)&&(t[n]=String(r));return Object.keys(t).length?t:void 0}function Ca(e){switch(e){case`=>`:case`<=`:return`async`;case`~>`:case`<~`:return`eventual`;case`..>`:case`<..`:case`-->`:return`dependency`;case`-x`:case`x-`:return`failure`;case`--`:return`association`;default:return`sync`}}function wa(e){return e===`<-`||e===`<=`||e===`<..`||e===`x-`||e===`<~`}function Ta(e){return e===`<->`?`both`:e===`--`?`none`:`end`}function Ea(e){if(e===`low`||e===`normal`||e===`high`)return e}function Da(e){if(typeof e!=`string`&&typeof e!=`number`&&typeof e!=`boolean`)return;let t=String(e).trim().toLowerCase();if(t===`start`||t===`begin`||t===`source`)return`start`;if(t===`middle`||t===`mid`||t===`center`)return`middle`;if(t===`end`||t===`target`)return`end`}function Oa(e){if(e===`auto`||e===`flat`||e===`compound`||e===`swimlane`)return e}function ka(e){switch(e){case`straight`:case`balanced`:case`basic`:return e;default:return}}function Aa(e){if(e===`compact`||e===`normal`||e===`spacious`)return e}function ja(e){return e===`mid`||e===`comfortable`||e===`roomy`}function N(e){if(e===`none`||e===`gaps`||e===`jumps`||e===`smart`)return e;if(e===`gap`)return`gaps`}function Ma(e){if(e===!0||e===!1)return e;if(e===`true`)return!0;if(e===`false`)return!1}function Na(e){if(e==null||e===``)return;let t=Number(e);return Number.isFinite(t)?t:void 0}function Pa(e){let t=Na(e);if(!(t==null||t<=0))return Math.min(2,Math.max(.75,t))}function Fa(e,t){for(let n of e)switch(n.type){case`Node`:{if(t.nodes.has(n.id)){t.diagnostics.push({severity:`error`,code:`FM101`,message:`Duplicate node id "${n.id}"`,range:n.range});break}let{defaults:e,isBuiltin:r}=Yi(n.kind);if(!r){let e=M(n.kind);t.diagnostics.push({severity:`warning`,code:`FM102`,message:`Unknown node kind "${n.kind}" — using generic defaults`,range:n.range,hint:e?`Did you mean "${e}"?`:`See built-in kinds (service, database, event, process, …) or keep an open kind.`})}let i=vi(n.properties.columns),a=i.length>0,o=n.properties.shape==null?void 0:String(n.properties.shape),s=o?Hi(o):void 0;o&&!Ui(s)&&t.diagnostics.push({severity:`warning`,code:`FM111`,message:`Unknown shape "${o}" — rendering falls back to rounded unless a custom shape is registered`,range:n.range,hint:`Known shapes: rectangle, rounded, pill, diamond, hexagon, cylinder, queue, cloud, document, …`});let c=e.capabilities.includes(`erd-table`)||n.kind===`table`||n.kind===`entity`,l=s??(a&&c?`table`:e.shape),u=[...xa(n.properties),...n.styleRefs],d={...e.cssVars,...Sa(n.properties)},f=a?Math.max(e.defaultMinWidth,200):e.defaultMinWidth,p=a?Math.max(e.defaultMaxWidth,360):e.defaultMaxWidth,m=n.properties.icon==null?void 0:String(n.properties.icon),h=m===`none`?void 0:m===void 0?l===`person`?void 0:e.icon:m,g=n.properties.iconPaint==null?void 0:String(n.properties.iconPaint).toLowerCase(),_=g===`theme`||g===`brand`?g:void 0,v=n.properties.iconColor!=null&&String(n.properties.iconColor).length>0?String(n.properties.iconColor):void 0,y={...d,...v?{"--icon-color":v}:{}},b=t.groupStack.at(-1);t.nodes.set(n.id,{id:n.id,label:n.label??n.id,labelAuthored:n.label!=null,kind:n.kind,shape:l,icon:h,iconPaint:_,iconColor:v,groupId:b,styleRefs:u,unresolvedVars:Object.keys(y).length?y:void 0,note:n.properties.note==null?void 0:String(n.properties.note),showSubtitle:n.properties.subtitle===!0,subtitle:typeof n.properties.subtitle==`string`&&n.properties.subtitle.length>0?String(n.properties.subtitle):void 0,technology:n.properties.technology!=null&&String(n.properties.technology).length>0?String(n.properties.technology):void 0,description:n.properties.description!=null&&String(n.properties.description).length>0?String(n.properties.description):void 0,columns:a?i:void 0,minWidth:n.properties.minWidth??f,maxWidth:n.properties.maxWidth??p,depth:n.properties.depth??e.defaultDepth,scale:Pa(n.properties.scale),sourceRange:n.range}),b&&t.groups.find(e=>e.id===b)?.members?.push({kind:`node`,id:n.id});break}case`Edge`:{t.edgeCounter++;let e=n.fromColumn??(n.properties.fromColumn==null?n.properties.fromCol==null?void 0:String(n.properties.fromCol):String(n.properties.fromColumn)),r=n.toColumn??(n.properties.toColumn==null?n.properties.toCol==null?void 0:String(n.properties.toCol):String(n.properties.toColumn)),i=di(n.properties.cardinality??n.properties.rel)??di(n.label)??(e||r?{from:`one`,to:`zeroOrMany`}:void 0),a=Br(n.properties.branch)??(i&&fi(n.label)?void 0:zr(n.label)),o=Ma(n.properties.identifying),s=n.properties.icon==null?void 0:String(n.properties.icon),c=s&&s!==`none`?s:void 0,l=n.properties.iconPaint==null?void 0:String(n.properties.iconPaint).toLowerCase(),u=l===`theme`||l===`brand`?l:void 0,d=n.properties.iconColor!=null&&String(n.properties.iconColor).length>0?String(n.properties.iconColor):void 0,f=wa(n.op),p=String(n.properties.arrows??``).toLowerCase(),m=p===`both`||p===`start`||p===`end`||p===`none`?p:Ta(n.op);t.edges.push({id:`e${t.edgeCounter}`,from:f?n.to:n.from,to:f?n.from:n.to,fromColumn:f?r:e,toColumn:f?e:r,label:n.label,labelAuthored:n.label!=null,kind:Ca(n.op),arrows:m,styleRefs:[...xa(n.properties),...n.styleRefs],icon:c,iconPaint:u,iconColor:d,priority:Ea(n.properties.priority),labelPosition:Da(n.properties.labelPosition??n.properties.labelAt),branch:a,cardinality:i,identifying:o??void 0,sourceRange:n.range});break}case`Group`:{let e=n.id??`group_${t.groups.length+1}`,r=Ga(n.statements),i=r.icon,a=i&&i!==`none`?i:void 0,o={id:e,label:n.label??e,labelAuthored:n.label!=null,kind:n.groupKind,parentId:t.groupStack.at(-1),nodeIds:[],childGroupIds:[],members:[],styleRefs:[],paddingHint:r.paddingHint,chrome:r.chrome,icon:a,iconPaint:r.iconPaint,iconColor:r.iconColor,arrange:r.arrange,align:r.align,gap:r.gap,columns:r.columns,rows:r.rows,column:r.column,row:r.row,span:r.span,colSpan:r.colSpan,rowSpan:r.rowSpan,cellArrange:r.cellArrange};if(t.groupStack.length>0){let n=t.groups.find(e=>e.id===t.groupStack.at(-1));n?.childGroupIds.push(e),n?.members?.push({kind:`group`,id:e})}t.groups.push(o),t.groupStack.push(e),Fa(n.statements,t);for(let n of t.nodes.values())n.groupId===e&&!o.nodeIds.includes(n.id)&&o.nodeIds.push(n.id);o.arrange===`stack`&&o.childGroupIds.length===0&&o.cellArrange==null&&(o.cellArrange=`stack`,o.arrange=void 0),t.groupStack.pop();break}case`Style`:{let e={};for(let[t,r]of Object.entries(n.properties))e[t]=String(r);t.styles.push({name:n.name,target:n.target,properties:e});break}case`StyleRef`:{let e=t.styles.find(e=>e.name===n.styleName);for(let r of n.targetIds){let i=t.nodes.get(r);i?i.styleRefs.includes(n.styleName)||i.styleRefs.push(n.styleName):t.diagnostics.push({severity:`warning`,code:`FM105`,message:e?.target===`edge`?`Style "${n.styleName}" targets edges — use \`a -> b is ${n.styleName}\` or styles: […] on the edge`:`Style ref "${n.styleName}" references unknown node "${r}"`,range:n.range})}break}case`GroupMember`:{let e=t.groupStack.at(-1);if(!e)break;let r=t.groups.find(t=>t.id===e);for(let i of n.nodeIds){let a=t.nodes.get(i);a?(a.groupId=e,r&&!r.nodeIds.includes(i)&&r.nodeIds.push(i),r&&!r.members?.some(e=>e.kind===`node`&&e.id===i)&&r.members?.push({kind:`node`,id:i})):t.pendingGroupMembers.push({nodeId:i,groupId:e,range:n.range})}break}default:break}}function Ia(e){for(let t of e)if(t.type===`Directive`&&t.name===`padding`&&t.value!=null)return String(t.value)}function La(e){if(e===!0||e===`true`||e===`on`)return!0;if(e===!1||e===`false`||e===`none`||e===`off`)return!1}function Ra(e){if(e===`stack`||e===`row`||e===`grid`)return e}function za(e){if(e===`stretch`||e===`start`||e===`center`||e===`end`)return e}function Ba(e){if(e===`flow`||e===`pack`||e===`stack`)return e}function Va(e){if(typeof e==`number`&&Number.isFinite(e)&&e>=1)return Math.floor(e);if(typeof e==`string`){let t=Number(e);return Number.isFinite(t)&&t>=1?Math.floor(t):void 0}if(Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`))return e.map(String)}function Ha(e){if(typeof e==`number`&&Number.isFinite(e)&&e>=1)return Math.floor(e);if(typeof e==`string`){let t=Number(e);if(Number.isFinite(t)&&t>=1&&String(t)===e.trim())return Math.floor(t);if(e.trim())return e.trim()}}function Ua(e){let t=typeof e==`number`?e:Number(e);if(!(!Number.isFinite(t)||t<1))return Math.floor(t)}function Wa(e){if(typeof e==`number`&&Number.isFinite(e))return e;if(typeof e==`string`&&e.trim()){let t=Number(e);if(Number.isFinite(t))return t;let n=e.trim();return n===`compact`||n===`normal`||n===`spacious`?n:void 0}}function Ga(e){let t={paddingHint:Ia(e)};for(let n of e)if(!(n.type!==`Directive`||n.value==null))switch(n.name){case`chrome`:{let e=La(n.value);e!=null&&(t.chrome=e);break}case`icon`:t.icon=String(n.value);break;case`iconPaint`:{let e=String(n.value).toLowerCase();(e===`theme`||e===`brand`)&&(t.iconPaint=e);break}case`iconColor`:{let e=String(n.value).trim();e.length>0&&(t.iconColor=e);break}case`arrange`:{let e=Ra(n.value),r=Ba(n.value);e?t.arrange=e:r&&(t.cellArrange=r);break}case`align`:{let e=za(n.value);e&&(t.align=e);break}case`gap`:{let e=Wa(n.value);e!=null&&(t.gap=e);break}case`columns`:{let e=Va(n.value);e!=null&&(t.columns=e);break}case`rows`:{let e=Va(n.value);e!=null&&(t.rows=e);break}case`column`:{let e=Ha(n.value);e!=null&&(t.column=e);break}case`row`:{let e=Ha(n.value);e!=null&&(t.row=e);break}case`span`:{let e=Ua(n.value);e!=null&&(t.span=e);break}case`colSpan`:{let e=Ua(n.value);e!=null&&(t.colSpan=e);break}case`rowSpan`:{let e=Ua(n.value);e!=null&&(t.rowSpan=e);break}default:break}return t}function Ka(e,t){let n=[];for(let r of ji)r in e&&n.push({severity:`warning`,code:`FM210`,message:`presentation.${r} was removed — SVG is chromeless by default; set title, legend, padding, groupAccent, etc. explicitly`,range:t,hint:r===`preset`?`Presets (document/slide/print/embed) no longer exist.`:`Drop ${r}; backgrounds, grids, and frames are not part of the SVG embed model.`});return n}function qa(e){let t={},n={},r={},i=[],a=[];for(let o of e.statements){if(o.type===`Directive`&&(o.name===`direction`&&o.value&&(t.direction=ea(String(o.value))),o.name===`density`&&o.value)){ja(o.value)&&i.push({severity:`error`,code:`FM112`,message:`density "${String(o.value)}" is not supported`,range:o.range,hint:`Use density compact, normal, or spacious`});let e=Aa(o.value);e&&(t.density=e)}if(o.type===`LayoutBlock`){if(o.properties.direction&&(t.direction=ea(String(o.properties.direction))),o.properties.density){ja(o.properties.density)&&i.push({severity:`error`,code:`FM112`,message:`density "${String(o.properties.density)}" is not supported`,range:o.range,hint:`Use density compact, normal, or spacious`});let e=Aa(o.properties.density);e&&(t.density=e)}if(o.properties.spacingScale!=null){let e=Na(o.properties.spacingScale);e!=null&&(t.spacingScale=e)}let e=Oa(o.properties.groupLayout);e&&(t.groupLayout=e);let n=ka(o.properties.nodePlacement);n&&(t.nodePlacement=n);let r=Ma(o.properties.considerModelOrder);r!=null&&(t.considerModelOrder=r);let a=Na(o.properties.groupGap);a!=null&&(t.groupGap=a);let s=Na(o.properties.edgeNodeSpacing);s!=null&&(t.edgeNodeSpacing=s);let c=Na(o.properties.edgeEdgeSpacing);c!=null&&(t.edgeEdgeSpacing=c);let l=Na(o.properties.edgeLabelSpacing);l!=null&&(t.edgeLabelSpacing=l);let u=Ra(o.properties.arrange);u&&(t.arrange=u);let d=za(o.properties.align);d&&(t.align=d);let f=Wa(o.properties.gap);f!=null&&(t.gap=f);let p=Va(o.properties.columns);p!=null&&(t.columns=p);let m=Va(o.properties.rows);m!=null&&(t.rows=m);let h=o.properties.edgeGap==null?``:String(o.properties.edgeGap);if(h===`tight`||h===`normal`||h===`wide`){let e={tight:{edgeNodeSpacing:28,edgeEdgeSpacing:14,edgeLabelSpacing:10},normal:{edgeNodeSpacing:36,edgeEdgeSpacing:28,edgeLabelSpacing:16},wide:{edgeNodeSpacing:72,edgeEdgeSpacing:56,edgeLabelSpacing:28}}[h];t.edgeNodeSpacing??=e.edgeNodeSpacing,t.edgeEdgeSpacing??=e.edgeEdgeSpacing,t.edgeLabelSpacing??=e.edgeLabelSpacing}}if(o.type===`EdgePolicyBlock`){if(o.properties.route&&(n.route=String(o.properties.route)),o.properties.crossings){let e=N(o.properties.crossings);e&&(n.crossings=e)}o.properties.cornerRadius!=null&&(n.cornerRadius=Number(o.properties.cornerRadius)),o.properties.parallel&&(n.parallel=String(o.properties.parallel)),o.properties.arrowheads!=null&&(n.arrowheads=o.properties.arrowheads!==!1)}if(o.type===`PresentationBlock`&&(i.push(...Ka(o.properties,o.range)),a.push(Ii(o.properties))),o.type===`RenderBlock`){o.properties.theme&&(r.theme=String(o.properties.theme)),o.properties.shadows!=null&&(r.shadows=o.properties.shadows!==!1),o.properties.roundedCorners!=null&&(r.roundedCorners=o.properties.roundedCorners!==!1);let e=o.properties.presentation;typeof e==`string`?i.push({severity:`warning`,code:`FM210`,message:`render.presentation: "${e}" presets were removed — SVG is chromeless by default`,range:o.range,hint:`Use presentation { title, padding, groupAccent, … } for opt-in chrome.`}):(i.push(...Ka(o.properties,o.range)),a.push(Ii(o.properties)))}}let o=zi(...a);return o&&(r.presentation=o),{layoutHints:t,routingHints:n,renderHints:r,diagnostics:i}}function Ja(e,t=0){let n=e.body[t];if(n?.type===`Sequence`)return ya(e,t);let r=[...e.diagnostics],i=n;if(!i||i.type!==`Diagram`)return r.push({severity:`error`,code:`FM100`,message:`No diagram found in document`,range:{start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0}}}),{graph:{id:`empty`,nodes:[],edges:[],groups:[],styles:[],animations:[],diagnostics:r},layoutHints:{},routingHints:{},renderHints:{},diagnostics:r};let a=new Map,o=[],s=[],c=[],l=[];Fa(i.statements,{nodes:a,edges:o,groups:s,styles:c,diagnostics:r,groupStack:[],edgeCounter:0,pendingGroupMembers:l});for(let e of l){let t=a.get(e.nodeId),n=s.find(t=>t.id===e.groupId);t&&n?(t.groupId=e.groupId,n.nodeIds.includes(e.nodeId)||n.nodeIds.push(e.nodeId),n.members?.some(t=>t.kind===`node`&&t.id===e.nodeId)||n.members?.push({kind:`node`,id:e.nodeId})):r.push({severity:`warning`,code:`FM106`,message:`Group membership references unknown node "${e.nodeId}"`,range:e.range})}for(let e of o)a.has(e.from)||r.push({severity:`error`,code:`FM103`,message:`Edge references unknown node "${e.from}"`,range:e.sourceRange??i.range}),a.has(e.to)||r.push({severity:`error`,code:`FM104`,message:`Edge references unknown node "${e.to}"`,range:e.sourceRange??i.range});let u=o.length;for(let e of a.values())if(e.columns)for(let t of e.columns){let n=t.references;if(!n)continue;let s=a.get(n.table);if(!s){r.push({severity:`error`,code:`FM107`,message:`FK "${e.id}.${t.name}" references unknown table "${n.table}"`,range:e.sourceRange??i.range});continue}yi(s.columns,n.column)<0&&s.columns?.length&&r.push({severity:`warning`,code:`FM108`,message:`FK "${e.id}.${t.name}" references unknown column "${n.table}.${n.column}"`,range:e.sourceRange??i.range});let c=hi(t.notNull),l=o.find(r=>r.from===n.table&&r.to===e.id&&(r.fromColumn==null||r.fromColumn===n.column)&&(r.toColumn==null||r.toColumn===t.name));if(l){l.fromColumn??=n.column,l.toColumn??=t.name,l.cardinality??=c,l.identifying??=!1;continue}let d=o.find(r=>r.from===e.id&&r.to===n.table&&(r.fromColumn==null||r.fromColumn===t.name)&&(r.toColumn==null||r.toColumn===n.column));if(d){d.fromColumn??=t.name,d.toColumn??=n.column,d.cardinality??={from:c.to,to:c.from},d.identifying??=!1;continue}u++,o.push({id:`e${u}`,from:n.table,to:e.id,fromColumn:n.column,toColumn:t.name,kind:`sync`,styleRefs:[],cardinality:c,identifying:!1,sourceRange:e.sourceRange})}for(let e of o){let t=a.get(e.from),n=a.get(e.to);if(e.fromColumn&&t&&yi(t.columns,e.fromColumn)<0&&r.push({severity:`warning`,code:`FM109`,message:`Edge column "${e.from}.${e.fromColumn}" not found on table`,range:e.sourceRange??i.range}),e.toColumn&&n&&yi(n.columns,e.toColumn)<0&&r.push({severity:`warning`,code:`FM110`,message:`Edge column "${e.to}.${e.toColumn}" not found on table`,range:e.sourceRange??i.range}),e.fromColumn&&e.toColumn&&!di(e.label)){let r=n?.columns?.find(t=>t.name===e.toColumn&&t.keys.includes(`fk`)),i=t?.columns?.find(t=>t.name===e.fromColumn&&t.keys.includes(`fk`)),a=r?hi(r.notNull):i?(()=>{let e=hi(i.notNull);return{from:e.to,to:e.from}})():void 0;if(a){let t=e.cardinality?.from===`one`&&e.cardinality?.to===`zeroOrMany`;(!e.cardinality||t)&&(e.cardinality=a)}}e.identifying==null&&(e.fromColumn||e.toColumn)&&t?.shape===`table`&&n?.shape===`table`&&(e.identifying=!1)}if(i.diagramKind===`state`){let e=[...a.values()].filter(e=>e.kind===`initial`),t=[...a.values()].filter(e=>e.kind===`final`);e.length!==1&&r.push({severity:e.length===0?`warning`:`error`,code:`FM150`,message:e.length===0?`State diagram has no initial pseudostate`:`State diagram must have exactly one initial pseudostate`,range:e[1]?.sourceRange??i.range,hint:'Declare one symbolic entry node, for example `entry: initial "Start"`.'}),t.length===0&&r.push({severity:`warning`,code:`FM151`,message:`State diagram has no final state`,range:i.range,hint:'Declare at least one terminal node, for example `done: final "Completed"`.'});for(let t of e){let e=o.filter(e=>e.to===t.id),n=o.filter(e=>e.from===t.id);e.length>0&&r.push({severity:`error`,code:`FM152`,message:`Initial pseudostate "${t.id}" cannot have incoming transitions`,range:e[0]?.sourceRange??t.sourceRange??i.range}),n.length!==1&&r.push({severity:`warning`,code:`FM153`,message:`Initial pseudostate "${t.id}" should have exactly one outgoing transition`,range:t.sourceRange??i.range})}for(let e of t){let t=o.find(t=>t.from===e.id);t&&r.push({severity:`error`,code:`FM154`,message:`Final state "${e.id}" cannot have outgoing transitions`,range:t.sourceRange??e.sourceRange??i.range})}}let d={id:i.name?i.name.toLowerCase().replace(/\s+/g,`-`):`diagram`,title:i.name,diagramKind:i.diagramKind,nodes:[...a.values()],edges:o,groups:s,styles:c,animations:ra(Ya(i.statements),a,r),diagnostics:r},f=qa(i);r.push(...f.diagnostics);let{diagnostics:p,...m}=f;return i.diagramKind===`state`&&(m.layoutHints={...m.layoutHints,direction:m.layoutHints.direction??`TD`}),{graph:d,...m,diagnostics:r}}function Ya(e){let t=[];for(let n of e)n.type===`AnimationBlock`&&t.push(n),n.type===`Group`&&t.push(...Ya(n.statements));return t}var Xa=` `;function Za(e){let t=Ei(e);return t.diagnostics.some(e=>e.severity===`error`)?e.trimEnd()+`
819
+ `:Qa(t)}function Qa(e){let t=[];return e.version!=null&&t.push(`kdiagram ${e.version}`),t.push(...e.body.map($a)),t.join(`
820
+
821
+ `)+`
822
+ `}function $a(e){return e.type===`Sequence`?ro(e):eo(e)}function eo(e){let t=e.diagramKind===`state`?`state`:`diagram`,n=[e.name==null?`${t} {`:`${t} "${e.name}" {`],r=e.statements.filter(to),i=e.statements.filter(e=>!to(e));for(let e of r)ao(e,1,n);r.length>0&&i.length>0&&n.push(``);let a;for(let t of i){let r=a!=null&&e.statements.indexOf(t)===e.statements.indexOf(a)+1;a&&r&&go(a,t)&&n.push(``),ao(t,1,n),a=t}return n.push(`}`),n.join(`
823
+ `)}function to(e){return no(e)<1/0}function no(e){return e.type===`Directive`&&e.name===`direction`?0:e.type===`Directive`&&e.name===`density`?1:e.type===`LayoutBlock`?2:e.type===`EdgePolicyBlock`?3:e.type===`RenderBlock`?4:e.type===`PresentationBlock`?5:1/0}function ro(e){let t=[e.name==null?`sequence {`:`sequence "${e.name}" {`];return ho(e.statements,t,e=>io(e,1,t)),t.push(`}`),t.join(`
824
+ `)}function io(e,t,n){let r=Xa.repeat(t);switch(e.type){case`SequenceActivate`:n.push(`${r}activate ${e.participantId}`);break;case`SequenceDeactivate`:n.push(`${r}deactivate ${e.participantId}`);break;case`SequenceCreate`:{let i=e.node,a=i.styleRefs.map(e=>` is ${e}`).join(``);fo(`${r}create ${i.id}: ${i.kind}${i.label?` "${i.label}"`:``}${a}`,i.properties,t,n);break}case`SequenceDestroy`:n.push(`${r}destroy ${e.participantId}`);break;case`SequenceNote`:{let t=e.participantIds.join(`, `),i=e.placement===`over`?`over ${t}`:e.placement===`left`?`left of ${t}`:`right of ${t}`;n.push(`${r}note ${i} "${e.text}"`);break}case`SequenceDivider`:n.push(e.label?`${r}divider "${e.label}"`:`${r}divider`);break;case`SequenceAutonumber`:n.push(`${r}autonumber`);break;case`SequenceFragment`:{let i=e.label?` "${e.label}"`:``;for(let a=0;a<e.operands.length;a++){let o=e.operands[a],s=a===0?e.operator:e.operator===`parallel`?`and`:`else`,c=a===0?i:o.label?` "${o.label}"`:``,l=o.styleRefs.map(e=>` is ${e}`).join(``);n.push(`${r}${s}${c}${l} {`),ho(o.statements,n,e=>io(e,t+1,n)),n.push(`${r}}`)}break}default:ao(e,t,n);break}}function ao(e,t,n){let r=Xa.repeat(t);switch(e.type){case`Directive`:n.push(`${r}${oo(e)}`);break;case`Node`:{let i=e.styleRefs.map(e=>` is ${e}`).join(``);fo(`${r}${e.id}: ${e.kind}${e.label?` "${e.label}"`:``}${i}`,e.properties,t,n);break}case`Edge`:{let i=e.fromColumn?`${e.from}.${e.fromColumn}`:e.from,a=e.toColumn?`${e.to}.${e.toColumn}`:e.to,o=e.label?` "${e.label}"`:``,s=e.styleRefs.map(e=>` is ${e}`).join(``);fo(`${r}${i} ${e.op} ${a}${o}`,e.properties,t,n,s);break}case`Group`:po(e,t,n);break;case`Style`:{let i=e.target===`edge`?` for edge`:e.target===`fragment`?` for fragment`:``;mo(`${r}style ${e.name}${i}`,e.properties,t,n);break}case`StyleRef`:n.push(`${r}${e.targetIds.join(`, `)} is ${e.styleName}`);break;case`GroupMember`:n.push(`${r}${e.nodeIds.join(`, `)}`);break;case`LayoutBlock`:mo(`${r}layout`,e.properties,t,n);break;case`EdgePolicyBlock`:mo(`${r}edges`,e.properties,t,n);break;case`RenderBlock`:mo(`${r}render`,e.properties,t,n);break;case`PresentationBlock`:mo(`${r}presentation`,e.properties,t,n);break;case`AnimationBlock`:n.push(`${r}animation "${e.name}" {`),ho(e.cues,n,e=>{for(let t of so(e))n.push(t?`${r}${Xa}${t}`:``)}),n.push(`${r}}`);break}}function oo(e){let t=Array.isArray(e.value)?e.value.join(`, `):e.value??``;return e.name===`direction`||e.name===`density`?`${e.name} ${t}`:`${e.name}: ${t}`}function so(e){if(e.type===`parallel`){let t=[`parallel {`],n;for(let r of e.cues){n&&go(n,r)&&t.push(``);for(let e of so(r))t.push(e?`${Xa}${e}`:``);n=r}return t.push(`}`),t}return[co(e)]}function co(e){switch(e.type){case`loop`:return`loop`;case`wait`:return`wait ${uo(e.durationMs)}`;case`dim`:case`activate`:return`${e.type} ${e.targets.map(lo).join(`, `)}`;case`pulse`:{let t=e.durationMs==null?``:` for ${uo(e.durationMs)}`;return`pulse ${e.targets.map(lo).join(`, `)}${t}`}case`flow`:{let t=e.durationMs==null?``:` for ${uo(e.durationMs)}`;return`flow ${e.path.join(` -> `)}${t}`}case`parallel`:return`parallel { … }`}}function lo(e){return e.type===`all`?`*`:e.type===`node`?e.id:`${e.from} -> ${e.to}`}function uo(e){return e>=1e3&&e%100==0?`${e/1e3}s`:`${e}ms`}function fo(e,t,n,r,i=``){let a=Xa.repeat(n),o=Object.entries(t);if(o.length===0){r.push(`${e}${i}`);return}if(o.length===1&&o[0][0]!==`columns`){let[t,n]=o[0];r.push(`${e} { ${t}: ${_o(n)} }${i}`);return}r.push(`${e} {`);for(let[e,t]of o){if(e===`columns`&&Array.isArray(t)){r.push(`${a}${Xa}columns {`);for(let e of t){let t=_i(String(e)),n=t?bi(t):String(e);r.push(`${a}${Xa}${Xa}${n}`)}r.push(`${a}${Xa}}`);continue}r.push(`${a}${Xa}${e}: ${_o(t)}`)}r.push(`${a}}${i}`)}function po(e,t,n){let r=Xa.repeat(t),i=e.id?`${e.id} `:``,a=e.label==null?``:`"${e.label}" `;n.push(`${r}${e.groupKind} ${i}${a}{`),ho(e.statements,n,e=>ao(e,t+1,n)),n.push(`${r}}`)}function mo(e,t,n,r){let i=Object.entries(t);if(i.length===0){r.push(`${e} {}`);return}if(i.length===1){let[t,n]=i[0];r.push(`${e} { ${t}: ${_o(n)} }`);return}let a=Xa.repeat(n);r.push(`${e} {`);for(let[e,t]of i)r.push(`${a}${Xa}${e}: ${_o(t)}`);r.push(`${a}}`)}function ho(e,t,n){let r;for(let i of e)r&&go(r,i)&&t.push(``),n(i),r=i}function go(e,t){return t.range.start.line>e.range.end.line+1}function _o(e){return Array.isArray(e)?`[${e.map(e=>`"${e}"`).join(`, `)}]`:typeof e==`string`?/^[A-Za-z_][A-Za-z0-9_-]*$/.test(e)?e:JSON.stringify(e):String(e)}function vo(e,...t){let n={...e};for(let e of t)if(e)for(let[t,r]of Object.entries(e))r!==void 0&&(n[t]=r);return n}function yo(e,t,n=0){return!(e.x+e.width+n<=t.x||t.x+t.width+n<=e.x||e.y+e.height+n<=t.y||t.y+t.height+n<=e.y)}var bo={theme:`dark`,direction:``,density:``,groupLayout:``,edgeStyle:``,crossings:``};function xo(e){let t=wo(e);if(!t)return{...bo};let n={...bo};for(let e of t.statements)if(e.type===`Directive`&&e.name===`direction`)n.direction=Ro(String(e.value??``),[`LR`,`RL`,`TD`,`BT`]);else if(e.type===`Directive`&&e.name===`density`)n.density=Ro(String(e.value??``),[`compact`,`normal`,`spacious`]);else if(e.type===`LayoutBlock`){let t=Po(e.properties,`direction`),r=Po(e.properties,`density`);t&&(n.direction=Ro(t,[`LR`,`RL`,`TD`,`BT`])),r&&(n.density=Ro(r,[`compact`,`normal`,`spacious`]));let i=Po(e.properties,`groupLayout`);i&&(n.groupLayout=Ro(i,[`auto`,`compound`,`flat`,`swimlane`]))}else if(e.type===`EdgePolicyBlock`){let t=Po(e.properties,`route`),r=Po(e.properties,`crossings`);t&&(n.edgeStyle=Ro(t,[`metro`,`rounded`,`orthogonal`,`straight`,`bezier`])),r&&(n.crossings=Ro(r,[`jumps`,`smart`,`gaps`,`none`]))}else e.type===`RenderBlock`&&(n.theme=Ro(String(e.properties.theme??`dark`),[`dark`,`light`])||`dark`);return n}function So(e,t,n){let r=wo(e);if(!r)return e;if(t===`direction`||t===`density`){let i=r.statements.find(e=>e.type===`LayoutBlock`);if(n&&i?.properties[t]!=null)return Eo(e,r,`LayoutBlock`,`layout`,t,n);let a=To(e,r,t,n);if(n)return a;let o=wo(a);return o?Eo(a,o,`LayoutBlock`,`layout`,t,``):a}return t===`groupLayout`?Eo(e,r,`LayoutBlock`,`layout`,`groupLayout`,n):t===`theme`?Eo(e,r,`RenderBlock`,`render`,`theme`,n):Eo(e,r,`EdgePolicyBlock`,`edges`,t===`edgeStyle`?`route`:`crossings`,n)}function Co(e){return Object.keys(bo).reduce((e,t)=>So(e,t,``),e)}function wo(e){let t=Ei(e).body[0];return t?.type===`Diagram`?t:null}function To(e,t,n,r){let i=t.statements.find(e=>e.type===`Directive`&&e.name===n);return i?r?No(e,i.range.start.offset,i.range.end.offset,`${n} ${r}`):jo(e,t,i):r?Oo(e,t,`${n} ${r}`,ko(n)):e}function Eo(e,t,n,r,i,a){let o=t.statements.find(e=>e.type===n);if(!o)return a?Oo(e,t,Do(r,{[i]:a}),ko(r)):e;let s=e.slice(o.range.start.offset,o.range.end.offset),c=s.indexOf(`{`),l=s.lastIndexOf(`}`);if(!s.slice(c+1,l).includes(`
825
+ `)){let n={...o.properties};return a?n[i]=a:delete n[i],Object.keys(n).length===0?jo(e,t,o):No(e,o.range.start.offset,o.range.end.offset,Do(r,n))}let u=RegExp(`^([\\t ]*${Lo(i)}[\\t ]*:[\\t ]*)(.*?)([\\t ]*//.*)?$`,`m`),d=u.exec(s);if(d){let n=a?s.replace(u,`$1${a}$3`):Io(s,d.index,d[0].length);return n.slice(n.indexOf(`{`)+1,n.lastIndexOf(`}`)).trim()?No(e,o.range.start.offset,o.range.end.offset,n):jo(e,t,o)}if(!a)return e;let f=`${Mo(e,o.range.start.offset)} ${i}: ${a}\n`,p=`${s.slice(0,l)}${f}${s.slice(l)}`;return No(e,o.range.start.offset,o.range.end.offset,p)}function Do(e,t,n=``){return`${e} {\n${Object.entries(t).map(([e,t])=>`${n} ${e}: ${Fo(t)}`).join(`
826
+ `)}\n${n}}`}function Oo(e,t,n,r){let i=`${Mo(e,t.range.start.offset)} `,a=n.split(`
827
+ `).map(e=>`${i}${e}`).join(`
828
+ `),o=t.statements.find(e=>ko(e)>r);if(o){let t=e.lastIndexOf(`
829
+ `,o.range.start.offset-1)+1,n=ko(o)===1/0;return`${e.slice(0,t)}${a}\n${n?`
830
+ `:``}${e.slice(t)}`}let s=e.lastIndexOf(`}`,t.range.end.offset);return s<0?e:`${e.slice(0,s)}${a}\n${e.slice(s)}`}function ko(e){let t=typeof e==`string`?e:e.type===`Directive`?e.name:e.type===`LayoutBlock`?`layout`:e.type===`EdgePolicyBlock`?`edges`:e.type===`RenderBlock`?`render`:e.type===`PresentationBlock`?`presentation`:`content`,n=[`direction`,`density`,`layout`,`edges`,`render`,`presentation`];return n.indexOf(t)===-1?1/0:n.indexOf(t)}function Ao(e,t){let n=e.lastIndexOf(`
831
+ `,t.range.start.offset-1)+1,r=e.indexOf(`
832
+ `,t.range.end.offset);return No(e,n,r<0?t.range.end.offset:r+1,``)}function jo(e,t,n){let r=Ao(e,n);if(t.statements.some(e=>e!==n&&ko(e)<1/0))return r;let i=wo(r)?.statements[0];if(!i)return r;let a=r.lastIndexOf(`
833
+ `,i.range.start.offset-1)+1,o=r.slice(0,a);return o.endsWith(`
834
+
835
+ `)?`${o.slice(0,-1)}${r.slice(a)}`:r}function Mo(e,t){let n=e.lastIndexOf(`
836
+ `,t-1)+1;return/^\s*/.exec(e.slice(n,t))?.[0]??``}function No(e,t,n,r){return`${e.slice(0,t)}${r}${e.slice(n)}`}function Po(e,t){let n=e[t];return typeof n==`string`?n:``}function Fo(e){return Array.isArray(e)?`[${e.join(`, `)}]`:String(e)}function Io(e,t,n){let r=e.lastIndexOf(`
837
+ `,t-1)+1,i=e.indexOf(`
838
+ `,t+n),a=i<0?t+n:i+1;return`${e.slice(0,r)}${e.slice(a)}`}function Lo(e){return e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`)}function Ro(e,t){return t.includes(e)?e:``}var zo={theme:`dark`,direction:``,density:``,spacingScale:null,nodePlacement:``,groupLayout:``,modelOrder:``,groupGap:``,edgeGaps:``,edgeStyle:``,crossings:``,roundedCorners:!1,showPorts:!1,showBounds:!1},Bo={tight:{edgeNodeSpacing:28,edgeEdgeSpacing:14,edgeLabelSpacing:10},normal:{edgeNodeSpacing:36,edgeEdgeSpacing:28,edgeLabelSpacing:16},wide:{edgeNodeSpacing:72,edgeEdgeSpacing:56,edgeLabelSpacing:28}};function Vo(e,t=e.theme){let n={};e.spacingScale!=null&&(n.spacingScale=e.spacingScale),e.density&&(n.density=e.density),e.direction&&(n.direction=e.direction),e.nodePlacement&&(n.nodePlacement=e.nodePlacement),e.groupLayout&&(n.groupLayout=e.groupLayout),e.modelOrder===`on`&&(n.considerModelOrder=!0),e.modelOrder===`off`&&(n.considerModelOrder=!1),e.groupGap&&(n.groupGap=Number(e.groupGap)),e.edgeGaps&&Object.assign(n,Bo[e.edgeGaps]);let r={};return e.edgeStyle&&(r.route=e.edgeStyle),e.crossings&&(r.crossings=e.crossings),{theme:t,layout:n,edges:r,...e.roundedCorners?{roundedCorners:!0}:{},debug:{showPorts:e.showPorts,showBounds:e.showBounds}}}var Ho={"--kd-bg":`#070b12`,"--kd-surface":`#10161f`,"--kd-surface-2":`#171e29`,"--kd-surface-3":`#222a36`,"--kd-text":`#e8ebf1`,"--kd-muted":`#9099a5`,"--kd-border":`#343e4a`,"--kd-edge":`#7e8792`,"--kd-edge-label-bg":`#151c26`,"--kd-edge-label-text":`#e8ebf1`,"--kd-edge-label-stroke":`#3d4754`,"--kd-accent":`#a195f7`,"--kd-danger":`#f07f77`,"--kd-danger-fill":`#2a1214`,"--kd-warning":`#ebbd57`,"--kd-success":`#61c594`,"--kd-choice":`#a3a0d8`,"--kd-user-fill":`#16122a`,"--kd-user-stroke":`#a195f7`,"--kd-service-fill":`#141222`,"--kd-service-stroke":`#a195f7`,"--kd-system-fill":`#17102e`,"--kd-system-stroke":`#c1bbfc`,"--kd-container-fill":`#141222`,"--kd-container-stroke":`#a195f7`,"--kd-component-fill":`#161822`,"--kd-component-stroke":`#9a8fb8`,"--kd-data-fill":`#0a1a20`,"--kd-data-stroke":`#5bbdda`,"--kd-table-fill":`#10161f`,"--kd-table-header-fill":`#171e29`,"--kd-table-title":`#e8ebf1`,"--kd-table-zebra":`rgba(144, 153, 165, 0.06)`,"--kd-table-badge-pk-fill":`#7c5cbf`,"--kd-table-badge-fk-fill":`#6b5f9a`,"--kd-table-badge-uk-fill":`#2f7a62`,"--kd-table-badge-text":`#e8ebf1`,"--kd-choice-fill":`#1a1b2c`,"--kd-choice-stroke":`#a3a0d8`,"--kd-success-fill":`#0a2015`,"--kd-success-stroke":`#61c594`,"--kd-warning-fill":`#271e0a`,"--kd-warning-stroke":`#ebbd57`,"--kd-event-fill":`#101e17`,"--kd-async-stroke":`#61c594`,"--kd-external-fill":`#111418`,"--kd-external-stroke":`#9099a5`,"--kd-group-fill":`rgba(161, 149, 247, 0.1)`,"--kd-group-stroke":`rgba(161, 149, 247, 0.42)`,"--kd-node-fill":`var(--kd-surface)`,"--kd-node-stroke":`var(--kd-border)`,"--kd-node-shadow":`rgba(2, 6, 12, 0.45)`,"--kd-node-glow":`rgba(161, 149, 247, 0.14)`,"--kd-edge-yes":`var(--kd-success)`,"--kd-edge-no":`var(--kd-danger)`,"--kd-edge-yes-label-bg":`#0f5138`,"--kd-edge-yes-label-text":`#ecfdf5`,"--kd-edge-no-label-bg":`#8f2a2a`,"--kd-edge-no-label-text":`#fef2f2`,"--kd-port-fill":`var(--kd-bg)`,"--kd-port-stroke":`var(--kd-accent)`,"--kd-sequence-lifeline":`var(--kd-edge)`,"--kd-sequence-activation-fill":`var(--kd-surface-2)`,"--kd-sequence-activation-stroke":`var(--kd-edge)`,"--kd-sequence-fragment-fill":`rgba(161, 149, 247, 0.04)`,"--kd-sequence-fragment-stroke":`rgba(161, 149, 247, 0.28)`,"--kd-sequence-note-fill":`var(--kd-surface-2)`,"--kd-sequence-note-stroke":`var(--kd-border)`},Uo={"--kd-bg":`#f2f5f9`,"--kd-surface":`#ffffff`,"--kd-surface-2":`#eef2f7`,"--kd-surface-3":`#e0e5eb`,"--kd-text":`#141b24`,"--kd-muted":`#565e69`,"--kd-border":`#c4cbd4`,"--kd-edge":`#616a75`,"--kd-edge-label-bg":`#ffffff`,"--kd-edge-label-text":`#141b24`,"--kd-edge-label-stroke":`#c4cbd4`,"--kd-accent":`#5f38ca`,"--kd-danger":`#c53637`,"--kd-danger-fill":`#fef2f2`,"--kd-warning":`#b67700`,"--kd-success":`#007d50`,"--kd-choice":`#6360a0`,"--kd-user-fill":`#f3eefc`,"--kd-user-stroke":`#5f38ca`,"--kd-service-fill":`#f5f0fc`,"--kd-service-stroke":`#5f38ca`,"--kd-system-fill":`#ede5fa`,"--kd-system-stroke":`#432990`,"--kd-container-fill":`#f5f0fc`,"--kd-container-stroke":`#5f38ca`,"--kd-component-fill":`#f7f5fb`,"--kd-component-stroke":`#6b5f8a`,"--kd-data-fill":`#e8f7fb`,"--kd-data-stroke":`#0e7490`,"--kd-table-fill":`#ffffff`,"--kd-table-header-fill":`#eef2f7`,"--kd-table-title":`#141b24`,"--kd-table-zebra":`rgba(86, 94, 105, 0.07)`,"--kd-table-badge-pk-fill":`#5f38ca`,"--kd-table-badge-fk-fill":`#6b5f9a`,"--kd-table-badge-uk-fill":`#2f7a62`,"--kd-table-badge-text":`#ffffff`,"--kd-choice-fill":`#f3f2fa`,"--kd-choice-stroke":`#6360a0`,"--kd-success-fill":`#ecfdf5`,"--kd-success-stroke":`#007d50`,"--kd-warning-fill":`#fffbeb`,"--kd-warning-stroke":`#b67700`,"--kd-event-fill":`#f0fdf4`,"--kd-async-stroke":`#007d50`,"--kd-external-fill":`#f8fafc`,"--kd-external-stroke":`#565e69`,"--kd-group-fill":`rgba(95, 56, 202, 0.07)`,"--kd-group-stroke":`rgba(95, 56, 202, 0.32)`,"--kd-node-fill":`var(--kd-surface)`,"--kd-node-stroke":`var(--kd-border)`,"--kd-node-shadow":`rgba(20, 27, 36, 0.12)`,"--kd-node-glow":`rgba(95, 56, 202, 0.08)`,"--kd-edge-yes":`var(--kd-success)`,"--kd-edge-no":`var(--kd-danger)`,"--kd-edge-yes-label-bg":`#007d50`,"--kd-edge-yes-label-text":`#ffffff`,"--kd-edge-no-label-bg":`#c53637`,"--kd-edge-no-label-text":`#ffffff`,"--kd-port-fill":`var(--kd-bg)`,"--kd-port-stroke":`var(--kd-accent)`,"--kd-sequence-lifeline":`var(--kd-edge)`,"--kd-sequence-activation-fill":`var(--kd-surface-2)`,"--kd-sequence-activation-stroke":`var(--kd-edge)`,"--kd-sequence-fragment-fill":`rgba(95, 56, 202, 0.03)`,"--kd-sequence-fragment-stroke":`rgba(95, 56, 202, 0.22)`,"--kd-sequence-note-fill":`var(--kd-surface-2)`,"--kd-sequence-note-stroke":`var(--kd-border)`},Wo=new Map;function Go(e){let t=Wo.get(e);return t?{...t}:e===`light`?{...Uo}:{...Ho}}function Ko(e,t){Wo.set(e,t)}function qo(e,t=!1){if(!t)return Yo;let n=Go(e);return`.k-diagram {\n${Object.entries(n).map(([e,t])=>` ${e}: ${t};`).join(`
839
+ `)}\n}\n${Yo}`}function Jo(e){return`flow-node-${e.replace(/[^a-z0-9-]/gi,``)}`}var Yo=`
840
+ .k-diagram {
841
+ font-family: "Inter", "Segoe UI", system-ui, sans-serif;
842
+ }
843
+ .flow-node-shell { fill: var(--node-fill, var(--kd-node-fill)); stroke: var(--node-stroke, var(--kd-node-stroke)); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
844
+ .flow-node-shell-rim { pointer-events: none; }
845
+ .flow-node-title { fill: var(--kd-text); font-size: 15px; font-weight: 800; letter-spacing: -0.02em; }
846
+ .flow-node-subtitle { fill: var(--kd-muted); font-size: 10.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
847
+ .flow-node-technology { fill: var(--kd-muted); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; font-style: italic; }
848
+ .flow-node-description { fill: var(--kd-muted); font-size: 11px; font-weight: 500; letter-spacing: 0.01em; opacity: 0.92; }
849
+ .flow-node-note-text { fill: var(--kd-muted); font-size: 9px; font-style: italic; }
850
+ .flow-node-icon-glyph { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.88; }
851
+ .flow-port-marker { fill: var(--node-stroke, var(--kd-node-stroke)); stroke: none; }
852
+ .flow-node-user, .flow-node-actor, .flow-node-person { --node-fill: var(--kd-user-fill); --node-stroke: var(--kd-user-stroke); }
853
+ .flow-node-participant { --node-fill: var(--kd-surface); --node-stroke: var(--kd-border); }
854
+ .flow-node-system { --node-fill: var(--kd-system-fill); --node-stroke: var(--kd-system-stroke); }
855
+ .flow-node-system .flow-node-shell { stroke-width: 2; }
856
+ .flow-node-container { --node-fill: var(--kd-container-fill); --node-stroke: var(--kd-container-stroke); }
857
+ .flow-node-component { --node-fill: var(--kd-component-fill); --node-stroke: var(--kd-component-stroke); }
858
+ .flow-node-service, .flow-node-worker, .flow-node-application, .flow-node-module, .flow-node-process, .flow-node-task, .flow-node-subprocess, .flow-node-command, .flow-node-producer, .flow-node-consumer, .flow-node-job, .flow-node-aggregate, .flow-node-projection, .flow-node-interface, .flow-node-deployment, .flow-node-server, .flow-node-state { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-service-stroke); }
859
+ .flow-node-database, .flow-node-entity, .flow-node-cache, .flow-node-store, .flow-node-bucket { --node-fill: var(--kd-data-fill); --node-stroke: var(--kd-data-stroke); }
860
+ .flow-node-table, .flow-node-class { --node-fill: var(--kd-table-fill, var(--kd-service-fill)); --node-stroke: var(--kd-service-stroke); }
861
+ .flow-node-gateway, .flow-node-broker, .flow-node-loadbalancer, .flow-node-firewall, .flow-node-preparation, .flow-node-policy { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent); }
862
+ .flow-node-queue, .flow-node-dlq, .flow-node-topic, .flow-node-stream { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent); }
863
+ .flow-node-event, .flow-node-start, .flow-node-end, .flow-node-branch, .flow-node-tag { --node-fill: var(--kd-event-fill); --node-stroke: var(--kd-async-stroke); }
864
+ .flow-node-choice, .flow-node-decision { --node-fill: var(--kd-choice-fill); --node-stroke: var(--kd-choice-stroke); }
865
+ .flow-node-warning, .flow-node-failure, .flow-node-manual { --node-fill: var(--kd-warning-fill); --node-stroke: var(--kd-warning-stroke); }
866
+ .flow-node-success { --node-fill: var(--kd-success-fill); --node-stroke: var(--kd-success-stroke); }
867
+ .flow-node-external { --node-fill: var(--kd-external-fill); --node-stroke: var(--kd-external-stroke); --node-stroke-dash: 5 3.5; }
868
+ .flow-node-note, .flow-node-document, .flow-node-message, .flow-node-package { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-muted); }
869
+ .flow-node-cloud, .flow-node-zone, .flow-node-group, .flow-node-boundary { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-service-stroke); }
870
+ .flow-node-io { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent); }
871
+ .flow-node-connector, .flow-node-initial, .flow-node-final, .flow-node-junction, .flow-node-commit { --node-fill: var(--kd-text); --node-stroke: var(--kd-text); }
872
+ /* Icon-only kind (node shell) — do not put glyph color rules here. */
873
+ .flow-node-icon {
874
+ --node-fill: color-mix(in srgb, var(--kd-node-fill) 88%, var(--kd-accent, var(--kd-text)) 12%);
875
+ --node-stroke: var(--kd-node-stroke);
876
+ }
877
+ /* Glyph wrapper — --icon-color for icon-only tint; else node stroke / theme. */
878
+ .flow-node-icon-mark {
879
+ color: var(--icon-color, var(--node-stroke, var(--kd-node-stroke)));
880
+ }
881
+ .flow-node-fork, .flow-node-join { --node-fill: var(--kd-text); --node-stroke: var(--kd-text); }
882
+ .flow-node-rectangle, .flow-node-rounded, .flow-shape-rectangle, .flow-shape-rounded { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-service-stroke); }
883
+ .flow-node-pill, .flow-shape-pill { --node-fill: var(--kd-event-fill); --node-stroke: var(--kd-async-stroke); }
884
+ .flow-node-diamond, .flow-shape-diamond { --node-fill: var(--kd-choice-fill); --node-stroke: var(--kd-choice-stroke); }
885
+ .flow-node-hexagon, .flow-shape-hexagon { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent); }
886
+ .flow-node-cylinder, .flow-shape-cylinder { --node-fill: var(--kd-data-fill); --node-stroke: var(--kd-data-stroke); }
887
+ .flow-node-ellipse, .flow-shape-ellipse, .flow-node-circle, .flow-shape-circle { --node-fill: var(--kd-event-fill); --node-stroke: var(--kd-async-stroke); }
888
+ .flow-node-triangle, .flow-shape-triangle, .flow-node-parallelogram, .flow-shape-parallelogram, .flow-node-trapezoid, .flow-shape-trapezoid { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent); }
889
+ .flow-node-folded-document, .flow-shape-folded-document { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-muted); }
890
+ .flow-shape-document { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-muted); }
891
+ .flow-shape-cloud, .flow-shape-boundary { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-service-stroke); }
892
+ .flow-shape-person { --node-fill: var(--kd-user-fill); --node-stroke: var(--kd-user-stroke); }
893
+ .flow-shape-queue, .flow-shape-stream { --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent); }
894
+ .flow-node-shell-partition { pointer-events: none; }
895
+ /* Built-in semantic styles (is danger, is success, ...) — also applied via StyleDefinition. */
896
+ .kd-style-danger, .kd-style-dangerous, .kd-style-error, .kd-style-fail, .kd-style-failure,
897
+ .kd-style-critical {
898
+ --node-fill: var(--kd-danger-fill); --node-stroke: var(--kd-danger);
899
+ }
900
+ .kd-style-warning, .kd-style-warn, .kd-style-caution {
901
+ --node-fill: var(--kd-warning-fill); --node-stroke: var(--kd-warning-stroke);
902
+ }
903
+ .kd-style-success, .kd-style-ok, .kd-style-pass {
904
+ --node-fill: var(--kd-success-fill); --node-stroke: var(--kd-success-stroke);
905
+ }
906
+ .kd-style-muted, .kd-style-deprecated, .kd-style-inactive {
907
+ --node-fill: var(--kd-surface); --node-stroke: var(--kd-muted); --node-stroke-dash: 5 3.5;
908
+ }
909
+ .kd-style-info, .kd-style-accent {
910
+ --node-fill: var(--kd-service-fill); --node-stroke: var(--kd-accent);
911
+ }
912
+ .flow-table-shell { stroke: none; }
913
+ .flow-table-border { fill: none; stroke: var(--node-stroke, var(--kd-node-stroke)); stroke-width: 1.5; }
914
+ .flow-table-title { fill: var(--kd-table-title, var(--kd-text)); font-weight: 700; letter-spacing: -0.01em; }
915
+ .flow-table-col-name { fill: var(--kd-text); font-weight: 600; letter-spacing: -0.01em; }
916
+ .flow-table-col-pk { font-weight: 700; }
917
+ .flow-table-col-type { fill: var(--kd-muted); font-weight: 500; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0; font-size: 10px; }
918
+ .flow-table-col-nn { fill: var(--kd-muted); font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.02em; font-size: 9px; opacity: 0.72; }
919
+ .flow-table-col-note { fill: var(--kd-muted); font-weight: 500; opacity: 0.78; letter-spacing: 0; font-size: 9.5px; }
920
+ .flow-table-badge-pk { fill: var(--kd-table-badge-pk-fill); }
921
+ .flow-table-badge-fk { fill: var(--kd-table-badge-fk-fill); }
922
+ .flow-table-badge-uk { fill: var(--kd-table-badge-uk-fill); }
923
+ .flow-table-badge-text { fill: var(--kd-table-badge-text); font-weight: 800; letter-spacing: 0.02em; }
924
+ .flow-table-zebra { pointer-events: none; }
925
+ .flow-group-box { fill: var(--kd-group-fill); stroke: var(--kd-group-stroke); }
926
+ .flow-group-header-bar { pointer-events: none; }
927
+ .flow-group-header-accent { pointer-events: none; }
928
+ .flow-group-header-rule { pointer-events: none; }
929
+ .flow-group-label { fill: var(--kd-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
930
+ .flow-group-label-icon { color: var(--icon-color, var(--kd-muted)); }
931
+ .flow-group-chromeless { pointer-events: none; }
932
+ .flow-edge-label-bg { fill: var(--kd-edge-label-bg); stroke: var(--kd-edge-label-stroke); stroke-width: 1; }
933
+ .flow-edge-label-leader { stroke: var(--kd-edge-label-stroke); stroke-width: 1; fill: none; opacity: 0.85; }
934
+ .flow-edge-label-text { fill: var(--kd-edge-label-text); font-size: 11px; font-weight: 700; letter-spacing: 0.02em; }
935
+ .flow-edge-label-icon { color: var(--icon-color, var(--kd-edge-label-text)); }
936
+ .flow-debug-port { fill: var(--kd-accent); stroke: var(--kd-bg); stroke-width: 1.5; opacity: 0.95; }
937
+ .flow-debug-port-source { fill: var(--kd-edge-yes, var(--kd-accent)); }
938
+ .flow-debug-port-target { fill: var(--kd-edge-no, var(--kd-danger, var(--kd-accent))); }
939
+ .flow-edge-endpoint { stroke: var(--kd-bg); stroke-width: 1.25; opacity: 0.95; }
940
+ .flow-canvas-title-text { fill: var(--kd-text); font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
941
+ .flow-canvas-subtitle-text { fill: var(--kd-muted); font-size: 13px; font-weight: 500; letter-spacing: 0.01em; }
942
+ .flow-canvas-legend-text { fill: var(--kd-muted); font-size: 10px; font-weight: 600; letter-spacing: 0.02em; }
943
+ .flow-group-label-bar { fill: var(--kd-text); font-weight: 700; }
944
+ .flow-edge-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
945
+ .flow-sequence-message-path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
946
+ .flow-sequence-message-label { fill: var(--kd-text); font-size: 11px; font-weight: 700; letter-spacing: 0.01em; }
947
+ .flow-sequence-fragment-box { fill: var(--kd-sequence-fragment-fill); stroke: var(--kd-sequence-fragment-stroke); }
948
+ .flow-sequence-fragment-operand {
949
+ fill: var(--kd-sequence-fragment-fill, transparent);
950
+ stroke: none;
951
+ pointer-events: none;
952
+ }
953
+ .flow-sequence-fragment-label { fill: var(--kd-muted); font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
954
+ .flow-sequence-divider-label { fill: var(--kd-muted); font-size: 11px; font-weight: 600; letter-spacing: 0.02em; }
955
+ .flow-sequence-note-text { fill: var(--kd-text); font-size: 11px; font-weight: 500; }
956
+ .flow-edge-label-yes .flow-edge-label-bg { fill: var(--kd-edge-yes-label-bg); stroke: var(--kd-edge-yes); }
957
+ .flow-edge-label-yes .flow-edge-label-text { fill: var(--kd-edge-yes-label-text); }
958
+ .flow-edge-label-no .flow-edge-label-bg { fill: var(--kd-edge-no-label-bg); stroke: var(--kd-edge-no); }
959
+ .flow-edge-label-no .flow-edge-label-text { fill: var(--kd-edge-no-label-text); }
960
+ .flow-edge-branch-yes { stroke: var(--kd-edge-yes); }
961
+ .flow-edge-branch-no { stroke: var(--kd-edge-no); }
962
+ .flow-edge-async { stroke-dasharray: 6 4; }
963
+ .flow-edge-eventual { stroke-dasharray: 2 6; opacity: 0.85; }
964
+ .flow-edge-association { stroke-dasharray: 1 0; opacity: 0.75; }
965
+ .flow-edge-dependency { stroke-dasharray: 2 4; opacity: 0.82; }
966
+ .flow-edge-failure { stroke: var(--kd-danger); }
967
+
968
+ /* Diagram animation emphasis (interactive player)
969
+ * Resolve --kd-* on .k-diagram (SVG root), not on .kdiagram-viewport —
970
+ * intermediate vars on the viewport can't see tokens defined on the SVG child.
971
+ * Active emphasis must NOT replace semantic strokes (yes/no, kind, danger, …).
972
+ */
973
+ .k-diagram {
974
+ --kd-anim-dim-opacity: 0.62;
975
+ /* Soft haze — keep presence via wide blur, not a tight bright ring. */
976
+ --kd-anim-glow: color-mix(in srgb, var(--kd-text, #e8ebf1) 18%, transparent);
977
+ --kd-anim-glow-soft: color-mix(in srgb, var(--kd-text, #e8ebf1) 9%, transparent);
978
+ /* Pulse peak — stronger than steady active so the beat reads clearly. */
979
+ --kd-anim-pulse-glow: color-mix(in srgb, var(--kd-text, #e8ebf1) 36%, transparent);
980
+ --kd-anim-pulse-glow-soft: color-mix(in srgb, var(--kd-text, #e8ebf1) 16%, transparent);
981
+ /* Fallback only when an edge has no resolvable stroke (flow overlays set inline). */
982
+ --kd-anim-flow-stroke: color-mix(in srgb, var(--kd-accent, #a195f7) 55%, white);
983
+ --kd-anim-flow-core: color-mix(in srgb, var(--kd-accent, #a195f7) 30%, white);
984
+ }
985
+ .k-diagram .flow-anim-dim {
986
+ opacity: var(--kd-anim-dim-opacity);
987
+ }
988
+ .k-diagram .flow-anim-active {
989
+ opacity: 1 !important;
990
+ }
991
+ .k-diagram .flow-anim-active.flow-node {
992
+ filter: drop-shadow(0 0 8px var(--kd-anim-glow))
993
+ drop-shadow(0 0 22px var(--kd-anim-glow-soft));
994
+ }
995
+ .k-diagram .flow-anim-active.flow-node :is(.flow-node-shell, rect.flow-node-shell) {
996
+ stroke-width: 2.5px;
997
+ }
998
+ .k-diagram .flow-anim-active.flow-edge .flow-edge-path,
999
+ .k-diagram .flow-anim-active.flow-edge .flow-edge-jump,
1000
+ .k-diagram .flow-anim-active.flow-edge .flow-sequence-message-path {
1001
+ stroke-width: 2.6px;
1002
+ stroke-opacity: 1;
1003
+ filter: drop-shadow(0 0 6px var(--kd-anim-glow))
1004
+ drop-shadow(0 0 16px var(--kd-anim-glow-soft));
1005
+ }
1006
+ .k-diagram .flow-anim-active.flow-sequence-fragment .flow-sequence-fragment-box {
1007
+ stroke-width: 2.2px;
1008
+ filter: drop-shadow(0 0 8px var(--kd-anim-glow))
1009
+ drop-shadow(0 0 18px var(--kd-anim-glow-soft));
1010
+ }
1011
+ .k-diagram .flow-anim-active.flow-sequence-fragment-operand {
1012
+ filter: drop-shadow(0 0 6px var(--kd-anim-glow-soft));
1013
+ }
1014
+ .k-diagram .flow-anim-pulse {
1015
+ animation: flow-anim-pulse 0.65s ease-in-out infinite;
1016
+ }
1017
+ @keyframes flow-anim-pulse {
1018
+ 0%, 100% {
1019
+ filter: drop-shadow(0 0 6px var(--kd-anim-glow))
1020
+ drop-shadow(0 0 14px var(--kd-anim-glow-soft));
1021
+ }
1022
+ 50% {
1023
+ filter: drop-shadow(0 0 14px var(--kd-anim-pulse-glow))
1024
+ drop-shadow(0 0 36px var(--kd-anim-pulse-glow-soft));
1025
+ }
1026
+ }
1027
+ .k-diagram .flow-anim-flow-track {
1028
+ fill: none;
1029
+ stroke: color-mix(in srgb, var(--kd-anim-flow-stroke) 40%, transparent);
1030
+ stroke-width: 5;
1031
+ stroke-linecap: round;
1032
+ stroke-linejoin: round;
1033
+ pointer-events: none;
1034
+ }
1035
+ .k-diagram .flow-anim-flow-overlay {
1036
+ fill: none;
1037
+ stroke: var(--kd-anim-flow-stroke);
1038
+ stroke-width: 3.75;
1039
+ stroke-linecap: round;
1040
+ stroke-linejoin: round;
1041
+ pointer-events: none;
1042
+ filter: drop-shadow(0 0 8px var(--kd-anim-glow))
1043
+ drop-shadow(0 0 18px var(--kd-anim-glow-soft));
1044
+ }
1045
+ .k-diagram .flow-anim-flow-core {
1046
+ fill: none;
1047
+ stroke: var(--kd-anim-flow-core);
1048
+ stroke-width: 1.75;
1049
+ stroke-linecap: round;
1050
+ stroke-linejoin: round;
1051
+ pointer-events: none;
1052
+ }
1053
+ .k-diagram .flow-anim-flow-head {
1054
+ fill: var(--kd-anim-flow-core);
1055
+ stroke: var(--kd-anim-flow-stroke);
1056
+ stroke-width: 1.5;
1057
+ pointer-events: none;
1058
+ filter: drop-shadow(0 0 8px var(--kd-anim-glow))
1059
+ drop-shadow(0 0 18px var(--kd-anim-glow-soft));
1060
+ }
1061
+ @media (prefers-reduced-motion: reduce) {
1062
+ .k-diagram .flow-anim-pulse {
1063
+ animation: none;
1064
+ filter: drop-shadow(0 0 8px var(--kd-anim-glow))
1065
+ drop-shadow(0 0 18px var(--kd-anim-glow-soft));
1066
+ }
1067
+ }
1068
+ `;function Xo(e){return Zi(e)}function Zo(e,t){return t||zr(e)}function Qo(e){return e===`yes`?`flow-edge-branch-yes`:e===`no`?`flow-edge-branch-no`:``}function $o(e){return e===`yes`?`flow-edge-label-yes`:e===`no`?`flow-edge-label-no`:``}function es(e,t){return e===`yes`?`var(--kd-edge-yes)`:e===`no`?`var(--kd-edge-no)`:t}function ts(e,t,n){return{"--kd-sequence-fragment-fill":`color-mix(in srgb, var(${e}) ${t}%, transparent)`,"--kd-sequence-fragment-stroke":`color-mix(in srgb, var(${e}) ${n}%, transparent)`}}var ns=[{aliases:[`danger`,`dangerous`,`error`,`fail`,`failed`,`failure`],node:{"--node-fill":`var(--kd-danger-fill)`,"--node-stroke":`var(--kd-danger)`,badge:`!`},edge:{"--edge-stroke":`var(--kd-danger)`,strokeWidth:`2.4`},fragment:ts(`--kd-danger`,3.5,34)},{aliases:[`warning`,`warn`,`caution`],node:{"--node-fill":`var(--kd-warning-fill)`,"--node-stroke":`var(--kd-warning-stroke)`,badge:`!`},edge:{"--edge-stroke":`var(--kd-warning)`,strokeWidth:`2.2`},fragment:ts(`--kd-warning`,3.5,32)},{aliases:[`success`,`ok`,`pass`],node:{"--node-fill":`var(--kd-success-fill)`,"--node-stroke":`var(--kd-success-stroke)`,badge:`✓`},edge:{"--edge-stroke":`var(--kd-success)`,strokeWidth:`2.2`},fragment:ts(`--kd-success`,3.5,32)},{aliases:[`critical`],node:{"--node-fill":`var(--kd-danger-fill)`,"--node-stroke":`var(--kd-danger)`,badge:`!`,strokeWidth:`2.6`},edge:{"--edge-stroke":`var(--kd-danger)`,strokeWidth:`3`},fragment:ts(`--kd-danger`,5,40)},{aliases:[`muted`,`deprecated`,`inactive`],node:{"--node-fill":`var(--kd-surface)`,"--node-stroke":`var(--kd-muted)`,strokeDash:`5 3.5`},edge:{"--edge-stroke":`var(--kd-muted)`,strokeDash:`5 3.5`},fragment:ts(`--kd-muted`,2.5,26)},{aliases:[`info`,`accent`],node:{"--node-fill":`var(--kd-service-fill)`,"--node-stroke":`var(--kd-accent)`},edge:{"--edge-stroke":`var(--kd-accent)`},fragment:ts(`--kd-accent`,3,28)}];function rs(e,t,n){return t.map(t=>({name:t,target:e,properties:{...n}}))}var is=[`danger`,`warning`,`success`,`critical`,`muted`,`info`],as=ns.flatMap(e=>[...rs(`node`,e.aliases,e.node),...rs(`edge`,e.aliases,e.edge),...rs(`fragment`,e.aliases,e.fragment)]);function os(e){let t=e=>`${e.target??`node`}:${e.name}`,n=new Map;for(let e of as)n.set(t(e),e);for(let r of e)n.set(t(r),r);return[...n.values()]}function ss(e,t,n,r,i){for(let[a,o]of Object.entries(e.properties))a.startsWith(`--`)?t[a]=o:a===`badge`?n=o:a===`strokeWidth`?r=Number(o):a===`strokeDash`&&(i=o);return{badge:n,strokeWidth:r,strokeDash:i}}function cs(e,t){for(let[n,r]of Object.entries(e.properties))n.startsWith(`--`)?t[n]=r:n===`fill`?t[`--kd-sequence-fragment-fill`]=r:n===`stroke`&&(t[`--kd-sequence-fragment-stroke`]=r)}function ls(e,t){let n=Yi(e.kind).defaults,r={...n.cssVars,...e.unresolvedVars},i,a,o,s=os(t);for(let t of e.styleRefs){let e=s.find(e=>e.name===t&&(e.target??`node`)===`node`);e&&({badge:i,strokeWidth:a,strokeDash:o}=ss(e,r,i,a,o))}e.kind===`external`&&!o&&(o=`5 3.5`);let c=n.classNames.filter(t=>t!==`flow-node-${e.kind}`),l=e.styleRefs.map(e=>`kd-style-${e.replace(/[^a-z0-9-]/gi,``)}`);return{cssVars:r,classes:[...c,...l],badge:i,strokeWidth:a,strokeDash:o}}function us(e,t){let n={},r,i,a=os(t);for(let t of e.styleRefs){let e=a.find(e=>e.name===t&&e.target===`edge`);e&&({strokeWidth:r,strokeDash:i}=ss(e,n,void 0,r,i))}return{cssVars:n,classes:e.styleRefs.map(e=>`kd-style-${e.replace(/[^a-z0-9-]/gi,``)}`),strokeWidth:r,strokeDash:i}}function ds(e,t){let n={...e.unresolvedVars},r=os(t);for(let t of e.styleRefs){let e=r.find(e=>e.name===t&&e.target===`fragment`);e&&cs(e,n)}return{cssVars:n,classes:e.styleRefs.map(e=>`kd-style-${e.replace(/[^a-z0-9-]/gi,``)}`)}}function fs(e){return Object.entries(e).map(([e,t])=>`${e}: ${t}`).join(`; `)}function ps(e){let t=e.trim().replace(/^#/,``),n=t.length===3?t.split(``).map(e=>e+e).join(``):t;return/^[0-9a-fA-F]{6}$/.test(n)?{r:parseInt(n.slice(0,2),16),g:parseInt(n.slice(2,4),16),b:parseInt(n.slice(4,6),16)}:null}function ms({r:e,g:t,b:n}){let r=e=>Math.max(0,Math.min(255,Math.round(e)));return`#${[r(e),r(t),r(n)].map(e=>e.toString(16).padStart(2,`0`)).join(``)}`}function hs(e){let t=ps(e);return t?Os(t):null}function P(e){return ms(ks(e))}function gs({l:e,c:t,h:n},r){let i=Cs(e)*100,a=Math.max(0,t),o=(n%360+360)%360;return r==null?`oklch(${Ss(i)}% ${Ss(a)} ${Ss(o)})`:`oklch(${Ss(i)}% ${Ss(a)} ${Ss(o)} / ${Cs(r)})`}function _s(e){return e.l<.55}function vs(e,t){let n=ps(e);if(!n)return e;let r=Cs(t);return`rgba(${Math.round(n.r)}, ${Math.round(n.g)}, ${Math.round(n.b)}, ${r})`}function ys(e,t,n=1){return{l:Cs(t),c:Math.max(0,Math.min(.04,e.c)*n),h:Number.isFinite(e.h)?e.h:260}}function bs(e,t,n){let r=Cs(n);return{l:t+(e.l-t)*r*.35+(e.l<t?-.02:.02)*r,c:e.c*r*.55,h:e.h}}function xs(e,t){return{...e,h:((e.h+t)%360+360)%360}}function Ss(e){return(Math.round(e*1e3)/1e3).toString()}function Cs(e){return Math.max(0,Math.min(1,e))}function ws(e){let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4}function Ts(e){return Cs(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)*255}function Es({r:e,g:t,b:n}){let r=ws(e),i=ws(t),a=ws(n),o=Math.cbrt(.4122214708*r+.5363325363*i+.0514459929*a),s=Math.cbrt(.2119034982*r+.6806995451*i+.1073969566*a),c=Math.cbrt(.0883024619*r+.2817188376*i+.6299787005*a);return{L:.2104542553*o+.793617785*s-.0040720468*c,a:1.9779984951*o-2.428592205*s+.4505937099*c,b:.0259040371*o+.7827717662*s-.808675766*c}}function Ds({L:e,a:t,b:n}){let r=e+.3963377774*t+.2158037573*n,i=e-.1055613458*t-.0638541728*n,a=e-.0894841775*t-1.291485548*n,o=r*r*r,s=i*i*i,c=a*a*a;return{r:Ts(4.0767416621*o-3.3077115913*s+.2309699292*c),g:Ts(-1.2684380046*o+2.6097574011*s-.3413193965*c),b:Ts(-.0041960863*o-.7034186147*s+1.707614701*c)}}function Os(e){let{L:t,a:n,b:r}=Es(e),i=Math.sqrt(n*n+r*r),a=Math.atan2(r,n)*180/Math.PI;return a<0&&(a+=360),{l:t,c:i,h:i<1e-6?0:a}}function ks({l:e,c:t,h:n}){let r=(n%360+360)%360*Math.PI/180;return Ds({L:Cs(e),a:t*Math.cos(r),b:t*Math.sin(r)})}var As=`studio-live`;function js(e){return e===`light`?{mode:e,accent:P({l:.48,c:.21,h:288}),neutral:P({l:.975,c:.008,h:288})}:{mode:e,accent:P({l:.72,c:.14,h:288}),neutral:P({l:.16,c:.012,h:288})}}var Ms=[{id:`default`,label:`Default`},{id:`ocean`,label:`Ocean`},{id:`forest`,label:`Forest`},{id:`ember`,label:`Ember`},{id:`slate`,label:`Slate`}];function Ns(e,t){if(e==="default")return js(t);let n=t===`dark`;switch(e){case`ocean`:return{mode:t,accent:P({l:n?.78:.45,c:n?.09:.1,h:230}),neutral:P({l:n?.16:.97,c:.012,h:230})};case`forest`:return{mode:t,accent:P({l:n?.78:.42,c:n?.1:.11,h:150}),neutral:P({l:n?.155:.97,c:.01,h:145})};case`ember`:return{mode:t,accent:P({l:n?.76:.5,c:n?.12:.13,h:40}),neutral:P({l:n?.15:.97,c:.012,h:50})};case`slate`:return{mode:t,accent:P({l:n?.82:.38,c:.01,h:260}),neutral:P({l:n?.14:.96,c:.004,h:260})}}}function Ps(e){let t=ps(e);return t?ms(t).toLowerCase():e.trim().toLowerCase()}function Fs(e,t){let n=js(e.mode),r=js(t),i=Ps(e.neutral)===Ps(n.neutral);return{mode:t,accent:Ps(e.accent)===Ps(n.accent)?r.accent:Ls(e.accent,t),neutral:i?r.neutral:Is(e.neutral,t,r.neutral)}}function Is(e,t,n){let r=hs(e),i=hs(n);return!r||!i?n:P({l:i.l,c:r.c,h:r.h})}function Ls(e,t){let n=hs(e);if(!n)return e;let r=t===`dark`?Math.max(.55,Math.min(.86,n.l)):Math.max(.28,Math.min(.5,n.l));return P({...n,l:r})}function Rs(e,t){let n=js(e);return t?{mode:e,accent:typeof t.accent==`string`?t.accent:n.accent,neutral:typeof t.neutral==`string`?t.neutral:n.neutral}:n}function zs(e,t){return hs(e)??t}function Bs(e,t){return t===_s(e)?e:ys(e,t?.155:.97)}function Vs(e){let t=zs(e.accent,{l:.72,c:.14,h:288}),n=zs(e.neutral,{l:.16,c:.012,h:288}),r=e.mode===`dark`,i=Bs(n,r),a=ys(i,i.l),o=ys(i,r?i.l+.04:i.l-.03),s=ys(i,r?i.l+.025:i.l-.02),c=ys(i,r?Math.max(.08,i.l-.03):Math.min(1,i.l+.01)),l=ys(i,r?i.l+.14:i.l-.18,1.2),u=ys(i,r?i.l+.08:i.l-.1,.9),d=ys(i,r?.93:.18,.4),f=ys(i,r?.68:.42,.5),p=ys(i,r?.48:.58,.4);return{"--bg":gs(a),"--bg-elevated":gs(o),"--bg-panel":gs(s),"--bg-input":gs(c),"--border":gs(l),"--border-soft":gs(u),"--text":gs(d),"--text-muted":gs(f),"--text-faint":gs(p),"--accent":gs(t),"--accent-soft":gs(t,r?.18:.12),"--accent-contrast":gs(t.l>.6?ys(i,.16,.4):ys(i,.98,.3)),"--accent-strong":gs({l:.52,c:Math.min(.24,Math.max(.08,t.c)),h:t.h}),"--accent-strong-hover":gs({l:.45,c:Math.min(.22,Math.max(.08,t.c*.9)),h:t.h}),"--on-accent-strong":gs(ys(i,.98,.3)),"--focus":gs(t,r?.45:.4),"--shadow":r?`0 12px 40px oklch(0% 0 0 / 0.45)`:`0 12px 40px oklch(20% 0 0 / 0.12)`}}function Hs(e){let t=document.documentElement;for(let[n,r]of Object.entries(e))t.style.setProperty(n,r)}function Us(e){let t=Go(e.mode),n=zs(e.accent,{l:.72,c:.14,h:288}),r=zs(e.neutral,{l:.16,c:.012,h:288}),i=e.mode===`dark`,a=Bs(r,i),o=P(ys(a,a.l)),s=P(ys(a,i?a.l+.05:a.l-.03)),c=P(ys(a,i?a.l+.09:a.l-.06)),l=P(ys(a,i?a.l+.14:a.l-.1)),u=P(ys(a,i?.93:.2,.35)),d=P(ys(a,i?.68:.45,.45)),f=P(ys(a,i?a.l+.16:a.l-.2,1.1)),p=P(ys(a,i?.62:.5,.7)),m=P(n),h=hs(s)?.l??(i?.22:.96),g=e=>P(bs(n,h,e)),_=P(xs(n,28));return{...t,"--kd-bg":o,"--kd-surface":s,"--kd-surface-2":c,"--kd-surface-3":l,"--kd-text":u,"--kd-muted":d,"--kd-border":f,"--kd-edge":p,"--kd-edge-label-bg":c,"--kd-edge-label-text":u,"--kd-edge-label-stroke":f,"--kd-accent":m,"--kd-user-fill":g(i?.7:.45),"--kd-user-stroke":m,"--kd-service-fill":g(i?.55:.35),"--kd-service-stroke":m,"--kd-data-fill":P(bs(xs(n,28),h,i?.6:.4)),"--kd-data-stroke":_,"--kd-table-fill":s,"--kd-table-header-fill":c,"--kd-table-title":u,"--kd-table-zebra":vs(f,i?.35:.45),"--kd-table-badge-pk-fill":m,"--kd-table-badge-fk-fill":P({...xs(n,40),c:Math.min(.06,n.c+.01),l:i?Math.min(.55,n.l-.1):Math.max(.4,n.l)}),"--kd-table-badge-uk-fill":P(bs(hs(t[`--kd-success`]??m)??{l:.7,c:.1,h:160},h,i?.7:.5)),"--kd-table-badge-text":i?u:`#ffffff`,"--kd-event-fill":g(i?.4:.25),"--kd-event-stroke":t[`--kd-success`]??m,"--kd-external-fill":c,"--kd-external-stroke":d,"--kd-group-fill":vs(m,i?.08:.06),"--kd-group-stroke":vs(m,i?.35:.28),"--kd-grid-dot":vs(m,i?.1:.08),"--kd-node-fill":`var(--kd-surface)`,"--kd-node-stroke":`var(--kd-border)`,"--kd-node-shadow":i?`rgba(0, 0, 0, 0.42)`:`rgba(15, 23, 42, 0.1)`,"--kd-node-glow":vs(m,i?.14:.08),"--kd-port-fill":`var(--kd-bg)`,"--kd-port-stroke":`var(--kd-accent)`,"--kd-choice-fill":P(bs(xs(n,40),h,i?.55:.35)),"--kd-choice-stroke":t[`--kd-choice`]??P(xs(n,40)),"--kd-success-fill":P(bs(hs(t[`--kd-success`]??m)??{l:.7,c:.1,h:160},h,i?.5:.3)),"--kd-success-stroke":t[`--kd-success`],"--kd-warning-fill":P(bs(hs(t[`--kd-warning`]??m)??{l:.78,c:.12,h:85},h,i?.5:.3)),"--kd-warning-stroke":t[`--kd-warning`]}}var Ws=zo;function Gs(e){return Vo(e,As)}function Ks(e){return{...Gs(e),snapshotTheme:!0}}var qs=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/EmbedView.tsx`;function Js({source:e}){return(0,O.jsxDEV)(`main`,{className:`embed-shell`,children:(0,O.jsxDEV)(Nr,{source:e,theme:`auto`,height:`100%`,frameless:!0,showThemeToggle:!0,showViewControls:!0,showAnimationControls:!0,options:(0,y.useMemo)(()=>{let{theme:t,...n}=Rr({...Ws,...xo(e)},`dark`);return n},[e])},void 0,!1,{fileName:qs,lineNumber:15,columnNumber:7},this)},void 0,!1,{fileName:qs,lineNumber:14,columnNumber:5},this)}function Ys(e,t,n=5){return!e||e.id!==t.id?null:Math.hypot(t.x-e.x,t.y-e.y)<=n?e.nodeId:null}var Xs=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/PreviewPane.tsx`;function Zs({source:e,renderOptions:t,liveRef:n,result:r,onRender:i,onNodeNavigate:a}){let o=(0,y.useMemo)(()=>{let{theme:e,...n}=t;return n},[t]);return(0,O.jsxDEV)(`section`,{className:`preview-pane output-pane`,children:[(0,O.jsxDEV)(`div`,{className:`pane-header preview-header`,children:[(0,O.jsxDEV)(`h2`,{children:[(0,O.jsxDEV)(bt,{size:14,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Xs,lineNumber:36,columnNumber:11},this),`Preview`]},void 0,!0,{fileName:Xs,lineNumber:35,columnNumber:9},this),(0,O.jsxDEV)(`span`,{className:`preview-hint`,children:`Click a node to reveal its source`},void 0,!1,{fileName:Xs,lineNumber:39,columnNumber:9},this)]},void 0,!0,{fileName:Xs,lineNumber:34,columnNumber:7},this),(0,O.jsxDEV)(Qs,{source:e,liveOptions:o,liveRef:n,onRender:i,onNodeNavigate:a},void 0,!1,{fileName:Xs,lineNumber:41,columnNumber:7},this),r?.stats?(0,O.jsxDEV)(`footer`,{className:`output-status`,children:[(0,O.jsxDEV)(`span`,{children:[r.stats.nodeCount,`n`]},void 0,!0,{fileName:Xs,lineNumber:50,columnNumber:11},this),(0,O.jsxDEV)(`span`,{children:[r.stats.edgeCount,`e`]},void 0,!0,{fileName:Xs,lineNumber:51,columnNumber:11},this),(0,O.jsxDEV)(`span`,{children:[r.stats.totalMs.toFixed(1),`ms`]},void 0,!0,{fileName:Xs,lineNumber:52,columnNumber:11},this)]},void 0,!0,{fileName:Xs,lineNumber:49,columnNumber:9},this):null]},void 0,!0,{fileName:Xs,lineNumber:33,columnNumber:5},this)}function Qs({source:e,liveOptions:t,liveRef:n,onRender:r,onNodeNavigate:i}){let a=(0,y.useRef)(void 0),o=e=>{for(let t of e.nativeEvent.composedPath())if(t instanceof Element){let e=t.getAttribute(`data-node-id`);if(e)return e}return null};return(0,O.jsxDEV)(`div`,{className:`preview-stage`,onPointerDownCapture:e=>{if(e.button!==0)return;let t=o(e);t&&(a.current={id:e.pointerId,x:e.clientX,y:e.clientY,nodeId:t})},onPointerUpCapture:e=>{let t=a.current;a.current=void 0;let n=Ys(t,{id:e.pointerId,x:e.clientX,y:e.clientY});n&&i(n)},onPointerCancelCapture:()=>{a.current=void 0},children:(0,O.jsxDEV)(Nr,{ref:n,className:`preview preview--live`,source:e,theme:As,height:`100%`,showThemeToggle:!1,showViewControls:!0,showAnimationControls:!0,options:t,onKDiagramRender:e=>r(e.detail)},void 0,!1,{fileName:Xs,lineNumber:107,columnNumber:7},this)},void 0,!1,{fileName:Xs,lineNumber:84,columnNumber:5},this)}var $s=2e5;function ec(e){let t=new URLSearchParams(e.replace(/^#/,``)),n=t.get(`source`);return{source:n?ac(n):void 0,embed:t.get(`embed`)===`1`}}function tc(e,t=`https://diagrams.kekonic.com/studio/`,n=!1){let r=new URL(t);r.search=``;let i=new URLSearchParams;return n&&i.set(`embed`,`1`),i.set(`source`,ic(e)),r.hash=i.toString(),r.toString()}function nc(e,t){return`<iframe src="${oc(tc(e,t,!0))}" title="KDiagram diagram" width="100%" height="560" loading="lazy" allow="fullscreen"></iframe>`}function rc(e){return`<k-diagram id="k-diagram" theme="auto" height="560"></k-diagram>
1069
+
1070
+ <script type="module">
1071
+ import "@kekonic/diagrams-element";
1072
+
1073
+ const diagram = document.querySelector("#k-diagram");
1074
+ diagram.source = ${JSON.stringify(e).replaceAll(`<`,`\\u003c`)};
1075
+ <\/script>`}function ic(e){let t=new TextEncoder().encode(e);if(t.byteLength>$s)throw Error(`This diagram is too large to share in a URL. Save the .kdiagram file instead.`);let n=``;for(let e of t)n+=String.fromCharCode(e);return btoa(n).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function ac(e){try{let t=e.replaceAll(`-`,`+`).replaceAll(`_`,`/`),n=t.padEnd(Math.ceil(t.length/4)*4,`=`),r=atob(n),i=Uint8Array.from(r,e=>e.charCodeAt(0));return i.byteLength>$s?void 0:new TextDecoder(`utf-8`,{fatal:!0}).decode(i)}catch{return}}function oc(e){return e.replaceAll(`&`,`&amp;`).replaceAll(`"`,`&quot;`)}var sc=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/ShareDialog.tsx`;function cc({source:e,studioUrl:t,onRenderSvg:n,onClose:r}){let[i,a]=(0,y.useState)(),[o,s]=(0,y.useState)(),c=(0,y.useMemo)(()=>({link:tc(e,t),iframe:nc(e,t),component:rc(e)}),[e,t]);(0,y.useEffect)(()=>{let e=e=>{e.key===`Escape`&&r()};return window.addEventListener(`keydown`,e),()=>window.removeEventListener(`keydown`,e)},[r]);let l=async(e,t)=>{s(void 0);try{let r=t??await n();if(!r)throw Error(`Fix diagram errors before copying SVG.`);await uc(r),a(e),window.setTimeout(()=>a(t=>t===e?void 0:t),1800)}catch(e){s(e instanceof Error?e.message:`Could not copy to the clipboard`)}};return(0,O.jsxDEV)(`div`,{className:`modal-backdrop`,role:`presentation`,onMouseDown:r,children:(0,O.jsxDEV)(`section`,{className:`share-dialog`,role:`dialog`,"aria-modal":`true`,"aria-labelledby":`share-title`,onMouseDown:e=>e.stopPropagation(),children:[(0,O.jsxDEV)(`header`,{className:`share-header`,children:[(0,O.jsxDEV)(`div`,{children:[(0,O.jsxDEV)(`h2`,{id:`share-title`,children:`Share and embed`},void 0,!1,{fileName:sc,lineNumber:62,columnNumber:13},this),(0,O.jsxDEV)(`p`,{children:`Choose an editable source link or a presentation-ready embed.`},void 0,!1,{fileName:sc,lineNumber:63,columnNumber:13},this)]},void 0,!0,{fileName:sc,lineNumber:61,columnNumber:11},this),(0,O.jsxDEV)(Gt,{icon:zt,iconOnly:!0,label:`Close`,onClick:r,autoFocus:!0},void 0,!1,{fileName:sc,lineNumber:65,columnNumber:11},this)]},void 0,!0,{fileName:sc,lineNumber:60,columnNumber:9},this),(0,O.jsxDEV)(`div`,{className:`share-options`,children:[(0,O.jsxDEV)(lc,{icon:Et,title:`Editable Studio link`,description:`Opens this source in the hosted Studio. Source stays in the URL fragment.`,value:c.link,copied:i===`link`,onCopy:()=>void l(`link`,c.link)},void 0,!1,{fileName:sc,lineNumber:69,columnNumber:11},this),(0,O.jsxDEV)(lc,{icon:yt,title:`Interactive iframe`,description:`A diagram-only pan, zoom, fullscreen, and animation embed.`,value:c.iframe,copied:i===`iframe`,onCopy:()=>void l(`iframe`,c.iframe)},void 0,!1,{fileName:sc,lineNumber:77,columnNumber:11},this),(0,O.jsxDEV)(lc,{icon:gt,title:`Web component`,description:`Framework-neutral code for projects that install KDiagram from npm.`,value:c.component,copied:i===`component`,onCopy:()=>void l(`component`,c.component)},void 0,!1,{fileName:sc,lineNumber:85,columnNumber:11},this),(0,O.jsxDEV)(lc,{icon:wt,title:`SVG markup`,description:`Self-contained rendered markup for documents, sites, and design tools.`,copied:i===`svg`,onCopy:()=>void l(`svg`)},void 0,!1,{fileName:sc,lineNumber:93,columnNumber:11},this)]},void 0,!0,{fileName:sc,lineNumber:68,columnNumber:9},this),o?(0,O.jsxDEV)(`p`,{className:`share-error`,children:o},void 0,!1,{fileName:sc,lineNumber:101,columnNumber:18},this):null]},void 0,!0,{fileName:sc,lineNumber:53,columnNumber:7},this)},void 0,!1,{fileName:sc,lineNumber:52,columnNumber:5},this)}function lc({icon:e,title:t,description:n,value:r,copied:i,onCopy:a}){return(0,O.jsxDEV)(`article`,{className:`share-option`,children:[(0,O.jsxDEV)(e,{size:18,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:sc,lineNumber:124,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`share-option-copy`,children:[(0,O.jsxDEV)(`h3`,{children:t},void 0,!1,{fileName:sc,lineNumber:126,columnNumber:9},this),(0,O.jsxDEV)(`p`,{children:n},void 0,!1,{fileName:sc,lineNumber:127,columnNumber:9},this),r?(0,O.jsxDEV)(`textarea`,{value:r,readOnly:!0,rows:t===`Editable Studio link`?2:4},void 0,!1,{fileName:sc,lineNumber:129,columnNumber:11},this):null]},void 0,!0,{fileName:sc,lineNumber:125,columnNumber:7},this),(0,O.jsxDEV)(Gt,{icon:i?mt:_t,iconOnly:!0,label:i?`Copied`:`Copy ${t}`,active:i,onClick:a},void 0,!1,{fileName:sc,lineNumber:132,columnNumber:7},this)]},void 0,!0,{fileName:sc,lineNumber:123,columnNumber:5},this)}async function uc(e){if(navigator.clipboard?.writeText){await navigator.clipboard.writeText(e);return}let t=document.createElement(`textarea`);t.value=e,t.style.position=`fixed`,t.style.opacity=`0`,document.body.append(t),t.select();let n=document.execCommand(`copy`);if(t.remove(),!n)throw Error(`Clipboard access is unavailable.`)}var dc=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/Accordion.tsx`,fc=(0,y.createContext)(null);function pc(e){let t=(0,y.useContext)(fc);if(!t)throw Error(`${e} must be used within <Accordion>`);return t}function mc(e){return e==null?new Set:new Set(Array.isArray(e)?e:[e])}function hc({type:e=`multiple`,defaultValue:t,value:n,onValueChange:r,children:i,className:a}){let[o,s]=(0,y.useState)(()=>mc(t)),c=n==null?o:mc(n),l=(0,y.useId)(),u=(0,y.useCallback)(t=>{let i=new Set(c);i.has(t)?i.delete(t):(e===`single`&&i.clear(),i.add(t)),n??s(i),r?.([...i])},[n,r,c,e]),d=(0,y.useMemo)(()=>({type:e,open:c,toggle:u,baseId:l}),[e,c,u,l]);return(0,O.jsxDEV)(fc.Provider,{value:d,children:(0,O.jsxDEV)(`div`,{className:a?`accordion ${a}`:`accordion`,children:i},void 0,!1,{fileName:dc,lineNumber:72,columnNumber:7},this)},void 0,!1,{fileName:dc,lineNumber:71,columnNumber:5},this)}function gc({value:e,title:t,children:n,className:r}){let{open:i,toggle:a,baseId:o}=pc(`AccordionItem`),s=i.has(e),c=`${o}-panel-${e}`,l=`${o}-header-${e}`;return(0,O.jsxDEV)(`div`,{className:r?`accordion-item ${r}`:`accordion-item`,"data-state":s?`open`:`closed`,children:[(0,O.jsxDEV)(`h3`,{className:`accordion-heading`,children:(0,O.jsxDEV)(`button`,{type:`button`,id:l,className:`accordion-trigger`,"aria-expanded":s,"aria-controls":c,onClick:()=>a(e),children:[(0,O.jsxDEV)(`span`,{className:`accordion-title`,children:t},void 0,!1,{fileName:dc,lineNumber:104,columnNumber:11},this),(0,O.jsxDEV)(ht,{size:14,strokeWidth:1.75,className:`accordion-chevron`,"aria-hidden":!0},void 0,!1,{fileName:dc,lineNumber:105,columnNumber:11},this)]},void 0,!0,{fileName:dc,lineNumber:96,columnNumber:9},this)},void 0,!1,{fileName:dc,lineNumber:95,columnNumber:7},this),(0,O.jsxDEV)(`div`,{id:c,role:`region`,"aria-labelledby":l,className:`accordion-panel`,hidden:!s,children:n},void 0,!1,{fileName:dc,lineNumber:108,columnNumber:7},this)]},void 0,!0,{fileName:dc,lineNumber:91,columnNumber:5},this)}var _c=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/ThemePanel.tsx`;function vc(e){let t=e.trim();if(/^#[0-9a-fA-F]{6}$/.test(t))return t;if(/^#[0-9a-fA-F]{3}$/.test(t)){let[e,n,r]=t.slice(1);return`#${e}${e}${n}${n}${r}${r}`}return`#000000`}function yc(e){for(let{id:t}of Ms){let n=Ns(t,e.mode);if(vc(n.accent).toLowerCase()===vc(e.accent).toLowerCase()&&vc(n.neutral).toLowerCase()===vc(e.neutral).toLowerCase())return t}return null}function bc({label:e,value:t,onChange:n}){return(0,O.jsxDEV)(`label`,{className:`field color-field`,children:[(0,O.jsxDEV)(`span`,{className:`field-label`,children:e},void 0,!1,{fileName:_c,lineNumber:52,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`color-row`,children:[(0,O.jsxDEV)(`input`,{type:`color`,value:vc(t),onChange:e=>n(e.target.value),"aria-label":`${e} color`},void 0,!1,{fileName:_c,lineNumber:54,columnNumber:9},this),(0,O.jsxDEV)(`input`,{type:`text`,className:`color-hex`,value:t,spellCheck:!1,"aria-label":`${e} hex value`,onChange:e=>n(e.target.value)},void 0,!1,{fileName:_c,lineNumber:60,columnNumber:9},this)]},void 0,!0,{fileName:_c,lineNumber:53,columnNumber:7},this)]},void 0,!0,{fileName:_c,lineNumber:51,columnNumber:5},this)}function xc({seeds:e,onChange:t,onReset:n}){let r=yc(e);return(0,O.jsxDEV)(`div`,{className:`theme-panel`,children:[(0,O.jsxDEV)(`div`,{className:`theme-presets`,role:`group`,"aria-label":`Palette presets`,children:Ms.map(({id:n,label:i})=>{let a=Ns(n,e.mode);return(0,O.jsxDEV)(`button`,{type:`button`,className:`theme-preset`,"data-active":r===n?`true`:void 0,"aria-pressed":r===n,title:`${i} palette`,onClick:()=>t(a),children:[(0,O.jsxDEV)(`span`,{className:`theme-preset__swatch`,style:{background:`linear-gradient(135deg, ${a.neutral} 45%, ${a.accent} 45%)`},"aria-hidden":!0},void 0,!1,{fileName:_c,lineNumber:91,columnNumber:15},this),(0,O.jsxDEV)(`span`,{children:i},void 0,!1,{fileName:_c,lineNumber:98,columnNumber:15},this)]},n,!0,{fileName:_c,lineNumber:82,columnNumber:13},this)})},void 0,!1,{fileName:_c,lineNumber:78,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`field-stack`,children:[(0,O.jsxDEV)(bc,{label:`Accent`,value:e.accent,onChange:e=>t({accent:e})},void 0,!1,{fileName:_c,lineNumber:105,columnNumber:9},this),(0,O.jsxDEV)(bc,{label:`Neutral`,value:e.neutral,onChange:e=>t({neutral:e})},void 0,!1,{fileName:_c,lineNumber:110,columnNumber:9},this)]},void 0,!0,{fileName:_c,lineNumber:104,columnNumber:7},this),(0,O.jsxDEV)(Gt,{icon:jt,label:`Reset palette`,className:`ghost tiny`,onClick:n},void 0,!1,{fileName:_c,lineNumber:117,columnNumber:7},this)]},void 0,!0,{fileName:_c,lineNumber:77,columnNumber:5},this)}var Sc=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/controls/ControlField.tsx`;function Cc(e){return e===``||e==null}function wc({def:e,options:t,onChange:n}){let r=t[e.id];if(e.kind===`segment`){let t=String(r??``);return(0,O.jsxDEV)(`div`,{className:Cc(r)?`field field-segment is-auto`:`field field-segment`,title:e.title,children:[(0,O.jsxDEV)(`span`,{className:`field-label`,children:e.label},void 0,!1,{fileName:Sc,lineNumber:25,columnNumber:9},this),(0,O.jsxDEV)(`div`,{className:`segmented`,role:`radiogroup`,"aria-label":e.label,children:e.options.map(r=>{let i=t===r.value,a=r.title??r.label;return(0,O.jsxDEV)(`button`,{type:`button`,role:`radio`,"aria-checked":i,className:i?`segment is-selected`:`segment`,title:a,onClick:()=>n(e.id,r.value),children:r.shortLabel??r.label},r.value||`__empty`,!1,{fileName:Sc,lineNumber:31,columnNumber:15},this)})},void 0,!1,{fileName:Sc,lineNumber:26,columnNumber:9},this)]},void 0,!0,{fileName:Sc,lineNumber:21,columnNumber:7},this)}if(e.kind===`select`)return(0,O.jsxDEV)(`label`,{className:Cc(r)?`field is-auto`:`field`,title:e.title,children:[(0,O.jsxDEV)(`span`,{className:`field-label`,children:e.label},void 0,!1,{fileName:Sc,lineNumber:53,columnNumber:9},this),(0,O.jsxDEV)(`select`,{value:String(r??``),onChange:t=>n(e.id,t.target.value),children:e.options.map(e=>(0,O.jsxDEV)(`option`,{value:e.value,children:e.label},e.value||`__empty`,!1,{fileName:Sc,lineNumber:59,columnNumber:13},this))},void 0,!1,{fileName:Sc,lineNumber:54,columnNumber:9},this)]},void 0,!0,{fileName:Sc,lineNumber:52,columnNumber:7},this);if(e.kind===`range`){let t=typeof r==`number`?r:null,i=t==null,a=i?e.nullLabel??`Auto`:e.format?.(t)??String(t),o=(e.min+e.max)/2;return(0,O.jsxDEV)(`label`,{className:i?`field field-range is-auto`:`field field-range`,title:e.title,children:[(0,O.jsxDEV)(`span`,{className:`field-label`,children:[e.label,(0,O.jsxDEV)(`output`,{children:a},void 0,!1,{fileName:Sc,lineNumber:78,columnNumber:11},this)]},void 0,!0,{fileName:Sc,lineNumber:76,columnNumber:9},this),(0,O.jsxDEV)(`div`,{className:`range-row`,children:[(0,O.jsxDEV)(`input`,{type:`range`,min:e.min,max:e.max,step:e.step,value:t??o,onChange:t=>n(e.id,parseFloat(t.target.value))},void 0,!1,{fileName:Sc,lineNumber:81,columnNumber:11},this),(0,O.jsxDEV)(`button`,{type:`button`,className:`ghost tiny`,title:`Use diagram source / engine default`,disabled:i,onClick:()=>n(e.id,null),children:`Auto`},void 0,!1,{fileName:Sc,lineNumber:91,columnNumber:11},this)]},void 0,!0,{fileName:Sc,lineNumber:80,columnNumber:9},this)]},void 0,!0,{fileName:Sc,lineNumber:75,columnNumber:7},this)}let i=!!r;return(0,O.jsxDEV)(`div`,{className:`field field-toggle`,title:e.title,children:[(0,O.jsxDEV)(`span`,{className:`field-label`,id:`toggle-${e.id}`,children:e.label},void 0,!1,{fileName:Sc,lineNumber:108,columnNumber:7},this),(0,O.jsxDEV)(`button`,{type:`button`,className:i?`toggle is-on`:`toggle`,role:`switch`,"aria-checked":i,"aria-labelledby":`toggle-${e.id}`,onClick:()=>n(e.id,!i),children:(0,O.jsxDEV)(`span`,{className:`toggle-thumb`,"aria-hidden":!0},void 0,!1,{fileName:Sc,lineNumber:119,columnNumber:9},this)},void 0,!1,{fileName:Sc,lineNumber:111,columnNumber:7},this)]},void 0,!0,{fileName:Sc,lineNumber:107,columnNumber:5},this)}var Tc={value:``,label:`Auto`,shortLabel:`Auto`},Ec=[{id:`theme`,section:`appearance`,label:`Theme`,kind:`segment`,title:`The exported palette. This updates render.theme in the diagram source.`,options:[{value:`dark`,label:`Dark`},{value:`light`,label:`Light`}]},{id:`direction`,section:`layout`,label:`Direction`,kind:`segment`,title:`Auto follows direction in the diagram source`,options:[Tc,{value:`TD`,label:`Top → down`,shortLabel:`↓`,title:`Top → down`},{value:`LR`,label:`Left → right`,shortLabel:`→`,title:`Left → right`},{value:`BT`,label:`Bottom → top`,shortLabel:`↑`,title:`Bottom → top`},{value:`RL`,label:`Right → left`,shortLabel:`←`,title:`Right → left`}]},{id:`density`,section:`layout`,label:`Density`,kind:`segment`,title:`Auto follows density in the diagram source`,options:[Tc,{value:`compact`,label:`Compact`,shortLabel:`Tight`},{value:`normal`,label:`Normal`,shortLabel:`Normal`},{value:`spacious`,label:`Spacious`,shortLabel:`Loose`}]},{id:`groupLayout`,section:`layout`,label:`Groups`,kind:`segment`,title:`How groups participate in layout. This updates layout.groupLayout in the source.`,options:[Tc,{value:`auto`,label:`Engine`,shortLabel:`Engine`},{value:`compound`,label:`Nested`,shortLabel:`Nest`},{value:`flat`,label:`Flat`},{value:`swimlane`,label:`Lanes`,shortLabel:`Lanes`}]},{id:`edgeStyle`,section:`edges`,label:`Edge style`,kind:`segment`,title:`Auto follows edges.route in the diagram source`,options:[Tc,{value:`metro`,label:`Metro`,shortLabel:`Metro`},{value:`rounded`,label:`Rounded`,shortLabel:`Round`},{value:`orthogonal`,label:`Orthogonal`,shortLabel:`Ortho`},{value:`straight`,label:`Straight`,shortLabel:`Line`},{value:`bezier`,label:`Bezier`,shortLabel:`Curve`}]},{id:`crossings`,section:`edges`,label:`Crossings`,kind:`segment`,title:`Auto follows edges.crossings in the diagram source`,options:[Tc,{value:`jumps`,label:`Jumps`},{value:`smart`,label:`Smart`},{value:`gaps`,label:`Gaps`},{value:`none`,label:`None`}]}];function Dc(e){return Ec.filter(t=>t.section===e)}var Oc=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/controls/AdjustPanel.tsx`;function kc({options:e,onChange:t,onReset:n,themeSeeds:r,onThemeSeedsChange:i,onResetThemeSeeds:a}){let o=Dc(`appearance`),s=Dc(`layout`),c=Dc(`edges`);return(0,O.jsxDEV)(`div`,{className:`sidebar-panel adjust-panel`,children:(0,O.jsxDEV)(hc,{type:`multiple`,defaultValue:[`appearance`,`layout`,`edges`],className:`sidebar-accordion`,children:[(0,O.jsxDEV)(gc,{value:`appearance`,title:(0,O.jsxDEV)(O.Fragment,{children:[(0,O.jsxDEV)(kt,{size:14,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Oc,lineNumber:42,columnNumber:15},this),`Appearance`]},void 0,!0,{fileName:Oc,lineNumber:41,columnNumber:13},this),children:(0,O.jsxDEV)(`div`,{className:`field-stack`,children:[o.map(n=>(0,O.jsxDEV)(wc,{def:n,options:e,onChange:t},n.id,!1,{fileName:Oc,lineNumber:49,columnNumber:15},this)),(0,O.jsxDEV)(xc,{seeds:r,onChange:i,onReset:a},void 0,!1,{fileName:Oc,lineNumber:51,columnNumber:13},this),(0,O.jsxDEV)(`p`,{className:`field-help`,children:`Mode is saved in source. The selected palette is embedded in exported SVG files.`},void 0,!1,{fileName:Oc,lineNumber:56,columnNumber:13},this)]},void 0,!0,{fileName:Oc,lineNumber:47,columnNumber:11},this)},void 0,!1,{fileName:Oc,lineNumber:38,columnNumber:9},this),(0,O.jsxDEV)(gc,{value:`layout`,title:(0,O.jsxDEV)(O.Fragment,{children:[(0,O.jsxDEV)(Tt,{size:14,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Oc,lineNumber:65,columnNumber:15},this),`Layout`]},void 0,!0,{fileName:Oc,lineNumber:64,columnNumber:13},this),children:(0,O.jsxDEV)(`div`,{className:`field-stack`,children:[s.map(n=>(0,O.jsxDEV)(wc,{def:n,options:e,onChange:t},n.id,!1,{fileName:Oc,lineNumber:72,columnNumber:15},this)),(0,O.jsxDEV)(`div`,{className:`section-actions`,children:(0,O.jsxDEV)(Gt,{icon:jt,label:`Remove settings`,className:`ghost tiny`,onClick:n},void 0,!1,{fileName:Oc,lineNumber:75,columnNumber:15},this)},void 0,!1,{fileName:Oc,lineNumber:74,columnNumber:13},this)]},void 0,!0,{fileName:Oc,lineNumber:70,columnNumber:11},this)},void 0,!1,{fileName:Oc,lineNumber:61,columnNumber:9},this),(0,O.jsxDEV)(gc,{value:`edges`,title:(0,O.jsxDEV)(O.Fragment,{children:[(0,O.jsxDEV)(Ct,{size:14,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Oc,lineNumber:88,columnNumber:15},this),`Edges`]},void 0,!0,{fileName:Oc,lineNumber:87,columnNumber:13},this),children:(0,O.jsxDEV)(`div`,{className:`field-stack`,children:c.map(n=>(0,O.jsxDEV)(wc,{def:n,options:e,onChange:t},n.id,!1,{fileName:Oc,lineNumber:95,columnNumber:15},this))},void 0,!1,{fileName:Oc,lineNumber:93,columnNumber:11},this)},void 0,!1,{fileName:Oc,lineNumber:84,columnNumber:9},this)]},void 0,!0,{fileName:Oc,lineNumber:33,columnNumber:7},this)},void 0,!1,{fileName:Oc,lineNumber:32,columnNumber:5},this)}var Ac=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/Sidebar.tsx`;function jc({open:e,options:t,onChange:n,onReset:r,themeSeeds:i,onThemeSeedsChange:a,onResetThemeSeeds:o}){return e?(0,O.jsxDEV)(`aside`,{className:`drawer sidebar`,"aria-label":`Adjust diagram`,children:[(0,O.jsxDEV)(`header`,{className:`sidebar-header`,children:(0,O.jsxDEV)(`h2`,{children:[(0,O.jsxDEV)(Ft,{size:16,strokeWidth:1.75,"aria-hidden":!0},void 0,!1,{fileName:Ac,lineNumber:31,columnNumber:11},this),`Diagram settings`]},void 0,!0,{fileName:Ac,lineNumber:30,columnNumber:9},this)},void 0,!1,{fileName:Ac,lineNumber:29,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`sidebar-body`,children:(0,O.jsxDEV)(kc,{options:t,onChange:n,onReset:r,themeSeeds:i,onThemeSeedsChange:a,onResetThemeSeeds:o},void 0,!1,{fileName:Ac,lineNumber:36,columnNumber:9},this)},void 0,!1,{fileName:Ac,lineNumber:35,columnNumber:7},this)]},void 0,!0,{fileName:Ac,lineNumber:28,columnNumber:5},this):null}var Mc=`kdiagram-studio:`;function Nc(e,t){try{let n=localStorage.getItem(Mc+e);return n==null?t:JSON.parse(n)}catch{return t}}function Pc(e,t){try{localStorage.setItem(Mc+e,JSON.stringify(t))}catch{}}var Fc=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/SplitPane.tsx`;function Ic({left:e,right:t,storageKey:n=`splitRatio`,defaultRatio:r=.38,minLeftPct:i=22,maxLeftPct:a=62}){let[o,s]=(0,y.useState)(()=>Nc(n,r)),c=(0,y.useRef)(!1),l=(0,y.useRef)(null);(0,y.useEffect)(()=>{Pc(n,o)},[o,n]);let u=(0,y.useCallback)(e=>{c.current=!0,e.target.setPointerCapture(e.pointerId)},[]),d=(0,y.useCallback)(e=>{if(!c.current||!l.current)return;let t=l.current.getBoundingClientRect(),n=(e.clientX-t.left)/t.width,r=Math.min(a/100,Math.max(i/100,n));s(r)},[a,i]),f=(0,y.useCallback)(()=>{c.current=!1},[]);return(0,O.jsxDEV)(`div`,{className:`split-pane`,ref:l,style:{gridTemplateColumns:`minmax(0, ${o}fr) 6px minmax(0, ${1-o}fr)`},children:[(0,O.jsxDEV)(`div`,{className:`split-pane-left`,children:e},void 0,!1,{fileName:Fc,lineNumber:55,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`split-handle`,role:`separator`,"aria-orientation":`vertical`,"aria-valuenow":Math.round(o*100),tabIndex:0,onPointerDown:u,onPointerMove:d,onPointerUp:f,onKeyDown:e=>{e.key===`ArrowLeft`&&s(e=>Math.max(i/100,e-.02)),e.key===`ArrowRight`&&s(e=>Math.min(a/100,e+.02))}},void 0,!1,{fileName:Fc,lineNumber:56,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`split-pane-right`,children:t},void 0,!1,{fileName:Fc,lineNumber:70,columnNumber:7},this)]},void 0,!0,{fileName:Fc,lineNumber:50,columnNumber:5},this)}var Lc=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/components/Toolbar.tsx`;function Rc({product:e,theme:t,connection:n,onToggleTheme:r,onExport:i,onShare:a,onToggleSidebar:o,sidebarOpen:s}){return(0,O.jsxDEV)(`header`,{className:`toolbar`,children:[(0,O.jsxDEV)(`div`,{className:`brand`,children:[(0,O.jsxDEV)(Ot,{size:18,strokeWidth:1.75,"aria-hidden":!0,className:`brand-mark`},void 0,!1,{fileName:Lc,lineNumber:30,columnNumber:9},this),(0,O.jsxDEV)(`h1`,{children:`KDiagram`},void 0,!1,{fileName:Lc,lineNumber:31,columnNumber:9},this),(0,O.jsxDEV)(`span`,{className:`tag`,children:e},void 0,!1,{fileName:Lc,lineNumber:32,columnNumber:9},this)]},void 0,!0,{fileName:Lc,lineNumber:29,columnNumber:7},this),n?(0,O.jsxDEV)(`span`,{className:`connection-status`,"data-connected":n.connected,children:n.label},void 0,!1,{fileName:Lc,lineNumber:36,columnNumber:9},this):null,(0,O.jsxDEV)(`div`,{className:`toolbar-spacer`},void 0,!1,{fileName:Lc,lineNumber:41,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`toolbar-actions`,children:[(0,O.jsxDEV)(Gt,{icon:vt,label:`Export SVG`,onClick:i},void 0,!1,{fileName:Lc,lineNumber:44,columnNumber:9},this),(0,O.jsxDEV)(Gt,{icon:Pt,label:`Share`,onClick:a},void 0,!1,{fileName:Lc,lineNumber:45,columnNumber:9},this),(0,O.jsxDEV)(Gt,{icon:t===`dark`?Dt:It,iconOnly:!0,label:t===`dark`?`Switch to light theme`:`Switch to dark theme`,title:t===`dark`?`Dark — click for light`:`Light — click for dark`,onClick:r},void 0,!1,{fileName:Lc,lineNumber:47,columnNumber:9},this),(0,O.jsxDEV)(Gt,{icon:At,iconOnly:!0,label:s?`Hide sidebar`:`Show sidebar`,title:s?`Hide sidebar`:`Show sidebar`,active:s,"aria-expanded":s,onClick:o},void 0,!1,{fileName:Lc,lineNumber:55,columnNumber:9},this)]},void 0,!0,{fileName:Lc,lineNumber:43,columnNumber:7},this)]},void 0,!0,{fileName:Lc,lineNumber:28,columnNumber:5},this)}var zc=Object.assign({"../../../../../examples/architecture-icons.kdiagram":`diagram "Architecture icons" {
1076
+ direction LR
1077
+
1078
+ presentation {
1079
+ title: "Architecture icons"
1080
+ titleSubtitle: "Lucide names, lucide: prefix, and brand logos"
1081
+ }
1082
+
1083
+ layout {
1084
+ density: normal
1085
+ }
1086
+
1087
+ ada: user "Ada" { icon: user }
1088
+ aws: cloud "AWS" { icon: logos:aws }
1089
+ api: gateway "API" { icon: lucide:waypoints }
1090
+ cart: service "Checkout" { icon: shopping-cart }
1091
+ pg: database "Postgres" { icon: logos:postgresql }
1092
+ stripe: external "Stripe" { icon: simple-icons:stripe }
1093
+
1094
+ ada -> api
1095
+ aws ..> api
1096
+ api -> cart
1097
+ cart -> pg
1098
+ cart -> stripe
1099
+ }
1100
+ `,"../../../../../examples/builtin-kinds-and-edges.kdiagram":`diagram "Language showcase" {
1101
+ direction TD
1102
+
1103
+ presentation {
1104
+ title: "Language showcase"
1105
+ titleSubtitle: "Every kind, content properties, and every edge treatment"
1106
+ }
1107
+
1108
+ layout {
1109
+ density: normal
1110
+ }
1111
+
1112
+ group showcase {
1113
+ arrange: stack
1114
+ align: stretch
1115
+
1116
+ // —— Every content knob in one place ——
1117
+ group features "Content features" {
1118
+ arrange: pack
1119
+
1120
+ featTitle: service "Checkout" {
1121
+ icon: shopping-cart
1122
+ subtitle: "Authored caption"
1123
+ note: "note: footnote"
1124
+ scale: 1.15
1125
+ minWidth: 160
1126
+ }
1127
+
1128
+ featKind: service "Inventory" {
1129
+ icon: package
1130
+ subtitle: true
1131
+ }
1132
+
1133
+ featShape: service "Payments" {
1134
+ shape: hexagon
1135
+ icon: credit-card
1136
+ subtitle: "shape: hexagon"
1137
+ }
1138
+
1139
+ featBrand: external "Stripe" {
1140
+ icon: simple-icons:stripe
1141
+ iconPaint: brand
1142
+ subtitle: "iconPaint: brand"
1143
+ }
1144
+
1145
+ featPlain: service "Silent" {
1146
+ icon: none
1147
+ note: "icon: none"
1148
+ }
1149
+
1150
+ featPerson: person "Operator" {
1151
+ subtitle: true
1152
+ }
1153
+ }
1154
+
1155
+ // —— Edge operators, priority, and branch cues (pair cells) ——
1156
+ group edges "Edge treatments" {
1157
+ arrange: grid
1158
+ columns: 2
1159
+
1160
+ group syncEdge "Sync ->" {
1161
+ arrange: pack
1162
+ syncA: service "Caller" { icon: waypoints }
1163
+ syncB: service "Callee" { icon: box }
1164
+ }
1165
+
1166
+ group eventEdge "Async =>" {
1167
+ arrange: pack
1168
+ eventA: service "Publisher" { icon: megaphone }
1169
+ eventB: broker "Bus" { icon: logos:kafka }
1170
+ }
1171
+
1172
+ group eventualEdge "Eventual ~>" {
1173
+ arrange: pack
1174
+ evA: service "Writer" { icon: pencil }
1175
+ evB: service "Reader" { icon: book-open }
1176
+ }
1177
+
1178
+ group assocEdge "Association --" {
1179
+ arrange: pack
1180
+ asA: service "Peer A" { icon: box }
1181
+ asB: service "Peer B" { icon: box }
1182
+ }
1183
+
1184
+ group reverseEdge "Reverse <-" {
1185
+ arrange: pack
1186
+ revA: service "Sink" { icon: inbox }
1187
+ revB: service "Source" { icon: send }
1188
+ }
1189
+
1190
+ group biEdge "Bidirectional <->" {
1191
+ arrange: pack
1192
+ biA: service "Left" { icon: arrow-left-right }
1193
+ biB: service "Right" { icon: arrow-left-right }
1194
+ }
1195
+
1196
+ group softEdge "Soft ..>" {
1197
+ arrange: pack
1198
+ softA: service "Reader" { icon: eye }
1199
+ softB: cache "Cache" { icon: logos:redis }
1200
+ }
1201
+
1202
+ group failEdge "Failure -x" {
1203
+ arrange: pack
1204
+ failA: service "Pay" { icon: credit-card }
1205
+ failB: failure "Declined" { icon: circle-x }
1206
+ }
1207
+
1208
+ group yesEdge "Branch yes" {
1209
+ arrange: pack
1210
+ yesA: choice "Eligible?" { subtitle: true }
1211
+ yesB: success "Approve" { icon: circle-check }
1212
+ }
1213
+
1214
+ group noEdge "Branch no" {
1215
+ arrange: pack
1216
+ noA: choice "In stock?" { subtitle: true }
1217
+ noB: warning "Backorder" { icon: circle-alert }
1218
+ }
1219
+
1220
+ group hiEdge "Priority high" {
1221
+ arrange: pack
1222
+ hiA: service "Critical" {
1223
+ icon: zap
1224
+ scale: 1.1
1225
+ }
1226
+ hiB: service "Path" { icon: arrow-right }
1227
+ }
1228
+
1229
+ group loEdge "Priority low" {
1230
+ arrange: pack
1231
+ loA: service "Background" { icon: moon }
1232
+ loB: service "Job" { icon: cog }
1233
+ }
1234
+ }
1235
+
1236
+ group architecture "Architecture" {
1237
+ arrange: pack
1238
+
1239
+ customer: user "Customer" { subtitle: true }
1240
+ actor1: actor "Clerk" { subtitle: true }
1241
+ personN: person "Operator" { subtitle: true }
1242
+ api: gateway "API Gateway" { icon: waypoints; subtitle: true }
1243
+ checkout: service "Checkout" { icon: shopping-cart; subtitle: true }
1244
+ app: application "Storefront" { icon: layout-template; subtitle: true }
1245
+ box: container "App container" { icon: box; subtitle: true }
1246
+ part: component "Pricing" { icon: puzzle; subtitle: true }
1247
+ sys: system "Commerce" { icon: network; subtitle: true }
1248
+ deploy: deployment "k8s" { icon: logos:kubernetes; subtitle: true }
1249
+ host: server "Node pool" { icon: server; subtitle: true }
1250
+ mod: module "Tax" { icon: blocks; subtitle: true }
1251
+ pkg: package "billing" { icon: package; subtitle: true }
1252
+ stripe: external "Stripe" { icon: simple-icons:stripe; iconPaint: brand; subtitle: true }
1253
+ }
1254
+
1255
+ group infrastructure "Infrastructure" {
1256
+ arrange: pack
1257
+
1258
+ ordersDb: database "Orders DB" { icon: logos:postgresql; subtitle: true }
1259
+ sessions: cache "Sessions" { icon: logos:redis; subtitle: true }
1260
+ storeN: store "Warehouse" { icon: warehouse; subtitle: true }
1261
+ bucketN: bucket "Receipts" { icon: archive; subtitle: true }
1262
+ lb: loadbalancer "Edge LB" { icon: scale; subtitle: true }
1263
+ cloudN: cloud "AWS" { icon: logos:aws; iconPaint: brand; subtitle: true }
1264
+ fw: firewall "WAF" { icon: shield; subtitle: true }
1265
+ zoneN: zone "DMZ" { subtitle: true }
1266
+ }
1267
+
1268
+ group messaging "Messaging" {
1269
+ arrange: pack
1270
+
1271
+ bus: broker "Event bus" { icon: logos:kafka; subtitle: true }
1272
+ jobs: queue "jobs" { icon: list-ordered; subtitle: true }
1273
+ topicN: topic "orders" { icon: radio; subtitle: true }
1274
+ streamN: stream "checkout.v1" { icon: waves; subtitle: true }
1275
+ placed: event "OrderPlaced" { icon: sparkles; subtitle: true }
1276
+ cmd: command "PlaceOrder" { icon: terminal; subtitle: true }
1277
+ msg: message "Payload" { icon: mail; subtitle: true }
1278
+ fulfill: worker "Fulfillment" { icon: cog; subtitle: true }
1279
+ prod: producer "Publisher" { icon: upload; subtitle: true }
1280
+ cons: consumer "Subscriber" { icon: download; subtitle: true }
1281
+ dead: dlq "orders.dlq" { icon: circle-alert; subtitle: true }
1282
+ jobN: job "Nightly" { icon: clock; subtitle: true }
1283
+ }
1284
+
1285
+ group flowchart "Flowchart" {
1286
+ arrange: pack
1287
+
1288
+ startN: start "Begin" { subtitle: true }
1289
+ endN: end "Done" { subtitle: true }
1290
+ step: process "Reserve stock" { icon: list-checks; subtitle: true }
1291
+ work: task "Pick" { icon: check-square; subtitle: true }
1292
+ sub: subprocess "Ship" { icon: git-branch; subtitle: true }
1293
+ stocked: choice "In stock?" { subtitle: true }
1294
+ decide: decision "Approve?" { subtitle: true }
1295
+ prep: preparation "Prep" { icon: wrench; subtitle: true }
1296
+ manualN: manual "Review" { icon: hand; subtitle: true }
1297
+ ioN: io "Scan" { icon: scan-line; subtitle: true }
1298
+ docN: document "Invoice" { icon: file-text; subtitle: true }
1299
+ noteN: note "Ops note" { icon: sticky-note; subtitle: true }
1300
+ conn: connector "A" { subtitle: true }
1301
+ confirmed: success "Confirmed" { icon: circle-check; subtitle: true }
1302
+ denied: warning "Unavailable" { icon: circle-alert; subtitle: true }
1303
+ failN: failure "Failed" { icon: circle-x; subtitle: true }
1304
+ }
1305
+
1306
+ group modeling "Modeling" {
1307
+ arrange: pack
1308
+
1309
+ orders: table "orders" {
1310
+ subtitle: "ERD card"
1311
+ columns {
1312
+ id: uuid PK
1313
+ status: text NN // lifecycle
1314
+ total: numeric
1315
+ }
1316
+ }
1317
+ product: entity "Product" { icon: tag; subtitle: true }
1318
+ cls: class "Order" { icon: layers; subtitle: true }
1319
+ iface: interface "Pricer" { icon: plug; subtitle: true }
1320
+ agg: aggregate "Cart" { icon: shopping-basket; subtitle: true }
1321
+ proj: projection "OrderView" { icon: eye; subtitle: true }
1322
+ pol: policy "RefundPolicy" { icon: scroll-text; subtitle: true }
1323
+ }
1324
+
1325
+ group stateGit "State & git" {
1326
+ arrange: pack
1327
+
1328
+ st: state "Pending" { subtitle: true }
1329
+ ini: initial "I"
1330
+ fin: final "F"
1331
+ jct: junction "J"
1332
+ forkN: fork "Fork" { subtitle: true }
1333
+ joinN: join "Join" { subtitle: true }
1334
+ commitN: commit "c"
1335
+ branchN: branch "main" { subtitle: true }
1336
+ tagN: tag "v1" { subtitle: true }
1337
+ }
1338
+
1339
+ group general "General" {
1340
+ arrange: pack
1341
+
1342
+ iconN: icon "Mark" { icon: star; subtitle: true }
1343
+ labelN: label "Tag" { subtitle: true }
1344
+ img: image "Logo" { icon: image; subtitle: true }
1345
+ grp: group "Bundle" { icon: folders; subtitle: true }
1346
+ }
1347
+ }
1348
+
1349
+ // Content features — only adjacent peers (avoid pack-wrap loops)
1350
+ featTitle -> featKind
1351
+ featKind -> featShape
1352
+
1353
+ // Edge treatments — operators, branch cues, and priority
1354
+ syncA -> syncB "sync ->" { priority: high }
1355
+ eventA => eventB "async =>"
1356
+ evA ~> evB "eventual ~>"
1357
+ asA -- asB "association"
1358
+ revB <- revA "reverse <-"
1359
+ biA <-> biB "bidirectional"
1360
+ softA ..> softB "dependency ..>"
1361
+ failA -x failB "failure -x"
1362
+ yesA -> yesB "yes" { branch: yes }
1363
+ noA -> noB "no" { branch: no }
1364
+ hiA -> hiB "priority: high" { priority: high }
1365
+ loA -> loB "priority: low" { priority: low }
1366
+ }
1367
+ `,"../../../../../examples/checkout-architecture.kdiagram":`diagram "Checkout" {
1368
+ direction LR
1369
+
1370
+ presentation {
1371
+ title: "Checkout"
1372
+ titleSubtitle: "Edge → services → data → Stripe · sync calls and OrderPlaced"
1373
+ groupAccent: true
1374
+ }
1375
+
1376
+ layout {
1377
+ density: normal
1378
+ spacingScale: 1.05
1379
+ }
1380
+
1381
+ edges {
1382
+ route: metro
1383
+ crossings: smart
1384
+ }
1385
+
1386
+ group system {
1387
+ chrome: false
1388
+ arrange: row
1389
+ align: stretch
1390
+
1391
+ group clients "Clients" {
1392
+ arrange: stack
1393
+ web: actor "Web checkout" {
1394
+ icon: monitor
1395
+ note: "SPA"
1396
+ }
1397
+ mobile: actor "Mobile app" {
1398
+ icon: smartphone
1399
+ note: "iOS / Android"
1400
+ }
1401
+ }
1402
+
1403
+ group edgePlane "Edge" {
1404
+ arrange: stack
1405
+ cdn: external "CDN" { icon: globe }
1406
+ api: gateway "API Gateway" {
1407
+ icon: waypoints
1408
+ subtitle: true
1409
+ technology: "Kong"
1410
+ }
1411
+ }
1412
+
1413
+ group app "Application" {
1414
+ arrange: stack
1415
+ checkout: service "Checkout" {
1416
+ icon: shopping-cart
1417
+ note: "cart · totals · place order"
1418
+ }
1419
+ inventory: service "Inventory" {
1420
+ icon: package
1421
+ note: "reserve stock"
1422
+ }
1423
+ billing: service "Billing" {
1424
+ icon: credit-card
1425
+ note: "authorize · capture"
1426
+ }
1427
+ }
1428
+
1429
+ group data "Data plane" {
1430
+ arrange: stack
1431
+ db: database "Postgres" { icon: logos:postgresql }
1432
+ cache: cache "Redis" { icon: logos:redis }
1433
+ bus: broker "Event bus" { icon: logos:kafka }
1434
+ }
1435
+
1436
+ group integrations "Integrations" {
1437
+ arrange: stack
1438
+ stripe: external "Stripe" { icon: simple-icons:stripe }
1439
+ mail: external "Email" { icon: send }
1440
+ }
1441
+ }
1442
+
1443
+ web -> cdn "assets"
1444
+ web -> api "HTTPS"
1445
+ mobile -> api "HTTPS"
1446
+ cdn ..> api
1447
+ api -> checkout "POST /orders" { priority: high }
1448
+ api -> inventory "GET /stock"
1449
+ api -> billing "POST /pay"
1450
+
1451
+ checkout -> db "write order" { priority: high }
1452
+ checkout ..> cache "session"
1453
+ inventory -> db "reservations"
1454
+ inventory ..> cache "hot SKUs"
1455
+ billing -> stripe "PaymentIntent" { priority: high }
1456
+ billing -> db "payment row"
1457
+
1458
+ checkout => bus "OrderPlaced" { icon: mail; priority: high }
1459
+ bus => mail "receipt"
1460
+ }
1461
+ `,"../../../../../examples/checkout-schema.kdiagram":`diagram "Checkout schema" {
1462
+ direction LR
1463
+
1464
+ presentation {
1465
+ title: "Checkout schema"
1466
+ titleSubtitle: "Customers · catalog · orders · payments — FK crow’s-feet"
1467
+ }
1468
+
1469
+ layout {
1470
+ density: normal
1471
+ spacingScale: 1.1
1472
+ groupLayout: flat
1473
+ nodePlacement: basic
1474
+ considerModelOrder: true
1475
+ edgeNodeSpacing: 28
1476
+ edgeEdgeSpacing: 16
1477
+ }
1478
+
1479
+ edges {
1480
+ route: orthogonal
1481
+ crossings: gaps
1482
+ }
1483
+
1484
+ customers: table "customers" {
1485
+ columns {
1486
+ id: uuid PK
1487
+ email: text UK NN
1488
+ name: text NN
1489
+ created_at: timestamptz NN
1490
+ }
1491
+ }
1492
+
1493
+ products: table "products" {
1494
+ columns {
1495
+ id: uuid PK
1496
+ sku: text UK NN
1497
+ name: text NN
1498
+ unit_price_cents: int NN
1499
+ active: bool NN
1500
+ }
1501
+ }
1502
+
1503
+ orders: table "orders" {
1504
+ columns {
1505
+ id: uuid PK
1506
+ customer_id: uuid FK NN -> customers.id
1507
+ status: text NN
1508
+ currency: text NN
1509
+ total_cents: int NN
1510
+ placed_at: timestamptz NN
1511
+ }
1512
+ }
1513
+
1514
+ order_items: table "order_items" {
1515
+ columns {
1516
+ id: uuid PK
1517
+ order_id: uuid FK NN -> orders.id
1518
+ product_id: uuid FK NN -> products.id
1519
+ qty: int NN
1520
+ unit_price_cents: int NN
1521
+ }
1522
+ }
1523
+
1524
+ payments: table "payments" {
1525
+ columns {
1526
+ id: uuid PK
1527
+ order_id: uuid FK NN -> orders.id
1528
+ provider: text NN
1529
+ provider_ref: text UK
1530
+ amount_cents: int NN
1531
+ status: text NN
1532
+ captured_at: timestamptz
1533
+ }
1534
+ }
1535
+
1536
+ shipments: table "shipments" {
1537
+ columns {
1538
+ id: uuid PK
1539
+ order_id: uuid FK NN -> orders.id
1540
+ carrier: text NN
1541
+ tracking: text UK
1542
+ shipped_at: timestamptz
1543
+ }
1544
+ }
1545
+ }
1546
+ `,"../../../../../examples/customer-refund-request.kdiagram":`diagram "Customer refund request" {
1547
+ direction TD
1548
+
1549
+ presentation {
1550
+ title: "Customer refund request"
1551
+ titleSubtitle: "Eligibility · inspection · approval · payout — metro + jumps"
1552
+ groupAccent: true
1553
+ }
1554
+
1555
+ layout {
1556
+ density: normal
1557
+ considerModelOrder: true
1558
+ spacingScale: 1.05
1559
+ }
1560
+
1561
+ edges {
1562
+ route: metro
1563
+ crossings: jumps
1564
+ }
1565
+
1566
+ request: user "Customer submits refund" { icon: user }
1567
+ eligible: choice "Within return window?"
1568
+ inspect: service "Inspect returned item" { icon: search }
1569
+ condition: choice "Item condition OK?"
1570
+
1571
+ group approval "Approval lane" {
1572
+ arrange: stack
1573
+ limit: choice "Under auto-approve limit?"
1574
+ manager: warning "Manager review" { icon: user-round-check }
1575
+ approve: success "Approve refund" { icon: circle-check }
1576
+ }
1577
+
1578
+ group fulfillment "Fulfillment" {
1579
+ arrange: pack
1580
+ payout: service "Refund to card" { icon: credit-card }
1581
+ notify: service "Email confirmation" { icon: mail }
1582
+ }
1583
+
1584
+ deny: warning "Deny request" { icon: circle-x }
1585
+ closed: success "Close case" { icon: circle-check }
1586
+
1587
+ request -> eligible { priority: high }
1588
+ eligible -> inspect "yes" { priority: high }
1589
+ eligible -> deny "no"
1590
+
1591
+ inspect -> condition { priority: high }
1592
+ condition -> limit "yes" { priority: high }
1593
+ condition -> deny "no"
1594
+
1595
+ limit -> approve "yes" { priority: high }
1596
+ limit -> manager "no" { priority: high }
1597
+ manager -> approve { priority: high }
1598
+
1599
+ approve -> payout { priority: high }
1600
+ payout -> notify { priority: high }
1601
+ notify -> closed { priority: high }
1602
+ deny -> closed
1603
+
1604
+ animation "Denied" {
1605
+ dim *
1606
+ activate request
1607
+ wait 300ms
1608
+ flow request -> eligible for 600ms
1609
+ activate eligible
1610
+ pulse eligible for 2s
1611
+ flow eligible -> deny -> closed for 2s
1612
+ activate closed
1613
+ wait 800ms
1614
+ loop
1615
+ }
1616
+ }
1617
+ `,"../../../../../examples/demo-activation-channels.kdiagram":`diagram "Activation channels" {
1618
+ direction LR
1619
+
1620
+ presentation {
1621
+ title: "Activation channels"
1622
+ titleSubtitle: "Salesforce on top, partners below — both meet at Member Activation"
1623
+ groupAccent: true
1624
+ }
1625
+
1626
+ layout {
1627
+ density: normal
1628
+ spacingScale: 1.08
1629
+ considerModelOrder: true
1630
+ groupLayout: compound
1631
+ nodePlacement: balanced
1632
+ }
1633
+
1634
+ edges {
1635
+ route: metro
1636
+ crossings: jumps
1637
+ }
1638
+
1639
+ group platform {
1640
+ arrange: grid
1641
+ columns: [channel, entry, domain, write, read]
1642
+ rows: 2
1643
+ align: stretch
1644
+
1645
+ group sfChannel "Salesforce" {
1646
+ column: channel
1647
+ row: 1
1648
+ arrange: stack
1649
+ salesforce: external "Salesforce Health Cloud" {
1650
+ icon: cloud
1651
+ note: "Platform event"
1652
+ }
1653
+ }
1654
+
1655
+ group partnerChannel "Partners" {
1656
+ column: channel
1657
+ row: 2
1658
+ arrange: stack
1659
+ partners: external "Other channels / partners" {
1660
+ icon: building-2
1661
+ note: "HTTP job"
1662
+ }
1663
+ }
1664
+
1665
+ group temporal "Temporal" {
1666
+ column: entry
1667
+ row: 1
1668
+ arrange: stack
1669
+ worker: worker "Temporal worker" { icon: inbox }
1670
+ workflow: worker "Account activation workflow" {
1671
+ icon: workflow
1672
+ subtitle: true
1673
+ technology: "Temporal"
1674
+ }
1675
+ }
1676
+
1677
+ group asyncDoor "Accept now, result later" {
1678
+ column: entry
1679
+ row: 2
1680
+ arrange: stack
1681
+ ardr: gateway "Accept-now engine" {
1682
+ icon: timer
1683
+ note: "Returns a job id, finishes later"
1684
+ }
1685
+ }
1686
+
1687
+ group domain "Domain" {
1688
+ column: domain
1689
+ row: 1
1690
+ rowSpan: 2
1691
+ arrange: stack
1692
+ mas: service "Member Activation Service" {
1693
+ icon: users
1694
+ note: "Commands and queries"
1695
+ }
1696
+ }
1697
+
1698
+ group writeSide "Write side" {
1699
+ column: write
1700
+ row: 1
1701
+ rowSpan: 2
1702
+ arrange: stack
1703
+ connector: external "HealthRules Connector" { icon: plug }
1704
+ payer: external "HealthRules Payer" {
1705
+ icon: shield-check
1706
+ subtitle: true
1707
+ technology: "HealthRules"
1708
+ }
1709
+ }
1710
+
1711
+ group readSide "Read side" {
1712
+ column: read
1713
+ row: 1
1714
+ rowSpan: 2
1715
+ arrange: stack
1716
+ cornerstone: service "Cornerstone" { icon: database }
1717
+ ods: database "Operational data store" { icon: database }
1718
+ }
1719
+ }
1720
+
1721
+ // Top row: Salesforce → Temporal → domain
1722
+ salesforce => worker "Platform event" { icon: mail; priority: high }
1723
+ worker -> workflow { priority: high }
1724
+ workflow -> mas "Commands" { priority: high }
1725
+
1726
+ // Bottom row: partners → accept-now → domain (and result back)
1727
+ partners -> ardr "HTTP job" { priority: high }
1728
+ ardr -> mas "Dispatch" { priority: high }
1729
+ ardr -> partners "Deferred result"
1730
+
1731
+ // Shared write / read (cross-column)
1732
+ mas -> connector "Write" { priority: high }
1733
+ connector -> payer { priority: high }
1734
+ payer ~> cornerstone "Eventually"
1735
+ cornerstone -> ods "Projects" { priority: high }
1736
+ mas -> ods "Query"
1737
+ }
1738
+ `,"../../../../../examples/demo-activation-paths.kdiagram":`diagram "Account activation paths" {
1739
+ direction LR
1740
+
1741
+ presentation {
1742
+ title: "Account activation paths"
1743
+ titleSubtitle: "Happy path and validation failure after a common start"
1744
+ groupAccent: true
1745
+ }
1746
+
1747
+ layout {
1748
+ density: normal
1749
+ spacingScale: 1.08
1750
+ considerModelOrder: true
1751
+ groupLayout: compound
1752
+ nodePlacement: balanced
1753
+ }
1754
+
1755
+ edges {
1756
+ route: metro
1757
+ crossings: jumps
1758
+ }
1759
+
1760
+ group platform {
1761
+ chrome: false
1762
+ arrange: row
1763
+ align: stretch
1764
+
1765
+ group start "Start" {
1766
+ arrange: stack
1767
+ salesforce: external "Salesforce" {
1768
+ icon: cloud
1769
+ note: "Application Complete"
1770
+ }
1771
+ workflow: worker "Account activation workflow" {
1772
+ icon: workflow
1773
+ subtitle: true
1774
+ technology: "Temporal"
1775
+ }
1776
+ mas: service "Request membership account" {
1777
+ icon: users
1778
+ note: "Member Activation Service"
1779
+ }
1780
+ hasPrograms: choice "Programs present?"
1781
+ }
1782
+
1783
+ group lanes {
1784
+ chrome: false
1785
+ arrange: stack
1786
+ align: stretch
1787
+
1788
+ group success "Happy path" {
1789
+ arrange: row
1790
+ align: stretch
1791
+
1792
+ group happyOutcome "Household" {
1793
+ arrange: stack
1794
+ active: success "Active household" { icon: circle-check }
1795
+ }
1796
+
1797
+ group happySide "Also runs in parallel" {
1798
+ arrange: stack
1799
+ share: process "Request share account" { icon: handshake }
1800
+ charge: process "Charge first-month share" { icon: credit-card }
1801
+ okta: process "Create Okta user accounts" { icon: key-round }
1802
+ closedWon: process "Notify Salesforce Closed Won" { icon: trophy }
1803
+ }
1804
+
1805
+ group happyClose "Downstream" {
1806
+ arrange: stack
1807
+ hrpOk: external "HealthRules Connector" { icon: plug }
1808
+ cornerstone: service "Cornerstone" { icon: database }
1809
+ odsOk: database "Operational data store" { icon: database }
1810
+ lookupOk: success "Lookup finds the household" { icon: search }
1811
+ }
1812
+ }
1813
+
1814
+ group failure "Validation fails" {
1815
+ arrange: row
1816
+ align: stretch
1817
+
1818
+ group failOutcome "Household" {
1819
+ arrange: stack
1820
+ rejected: failure "Activation rejected" {
1821
+ icon: circle-x
1822
+ note: "Programs required"
1823
+ }
1824
+ }
1825
+
1826
+ group failEffects "Downstream" {
1827
+ arrange: stack
1828
+ hrpNo: external "HealthRules Connector" {
1829
+ icon: plug
1830
+ note: "Nothing written"
1831
+ }
1832
+ lookupEmpty: warning "Lookup finds nothing" { icon: search }
1833
+ }
1834
+ }
1835
+ }
1836
+ }
1837
+
1838
+ salesforce => workflow "Application Complete" { icon: mail; priority: high }
1839
+ workflow -> mas "Request membership account" { priority: high }
1840
+ mas -> hasPrograms { priority: high }
1841
+
1842
+ hasPrograms -> active "yes" { branch: yes; priority: high }
1843
+ hasPrograms -x rejected "no" { branch: no }
1844
+
1845
+ active -> share { priority: high }
1846
+ active -> charge { priority: high }
1847
+ active -> okta { priority: high }
1848
+ active -> closedWon { priority: high }
1849
+ active -> hrpOk "Write" { priority: high }
1850
+ hrpOk ~> cornerstone "Eventually"
1851
+ cornerstone -> odsOk "Project" { priority: high }
1852
+ odsOk -> lookupOk { priority: high }
1853
+
1854
+ rejected ..> hrpNo "No write"
1855
+ rejected -> lookupEmpty
1856
+ }
1857
+ `,"../../../../../examples/demo-ardr-no-programs.kdiagram":`diagram "demo:ardr-no-programs" {
1858
+ direction TD
1859
+
1860
+ presentation {
1861
+ title: "pnpm demo:ardr-no-programs"
1862
+ titleSubtitle: "Same accept-now path — validation fails after accept"
1863
+ groupAccent: true
1864
+ }
1865
+
1866
+ layout {
1867
+ density: normal
1868
+ considerModelOrder: true
1869
+ }
1870
+
1871
+ edges {
1872
+ route: metro
1873
+ crossings: jumps
1874
+ }
1875
+
1876
+ cli: external "Demo CLI" {
1877
+ icon: terminal
1878
+ note: "Empty programs"
1879
+ }
1880
+
1881
+ group acceptNow "Accept-now path" {
1882
+ arrange: stack
1883
+ engine: gateway "Accept-now engine" {
1884
+ icon: timer
1885
+ note: "202 + job id"
1886
+ }
1887
+ dispatcher: worker "Dispatcher" { icon: route }
1888
+ mas: failure "MAS rejects" {
1889
+ icon: circle-x
1890
+ note: "Programs required"
1891
+ }
1892
+ results: worker "Result handler" { icon: inbox }
1893
+ outbound: queue "Outbound message queue" { icon: mail }
1894
+ }
1895
+
1896
+ cli -> engine "post job" { priority: high }
1897
+ engine -> dispatcher { priority: high }
1898
+ dispatcher -> mas "route" { priority: high }
1899
+ mas -x results "failed result on results queue" { priority: high }
1900
+ results -> engine "job failed" { priority: high }
1901
+ results => outbound
1902
+ cli -> engine "poll"
1903
+ engine -x cli "failed"
1904
+ }
1905
+ `,"../../../../../examples/demo-ardr.kdiagram":`diagram "demo:ardr" {
1906
+ direction TD
1907
+
1908
+ presentation {
1909
+ title: "pnpm demo:ardr"
1910
+ titleSubtitle: "Accept now, result later — needs pnpm up:ardr"
1911
+ groupAccent: true
1912
+ }
1913
+
1914
+ layout {
1915
+ density: normal
1916
+ considerModelOrder: true
1917
+ }
1918
+
1919
+ edges {
1920
+ route: metro
1921
+ crossings: jumps
1922
+ }
1923
+
1924
+ cli: external "Demo CLI" {
1925
+ icon: terminal
1926
+ note: "Posts job, then polls"
1927
+ }
1928
+
1929
+ group acceptNow "Accept-now path" {
1930
+ arrange: stack
1931
+ engine: gateway "Accept-now engine" {
1932
+ icon: timer
1933
+ note: "202 + job id"
1934
+ }
1935
+ dispatcher: worker "Dispatcher" {
1936
+ icon: route
1937
+ note: "Ids-only queue message"
1938
+ }
1939
+ mas: service "Member Activation Service" { icon: users }
1940
+ hrp: external "HealthRules Connector" {
1941
+ icon: plug
1942
+ subtitle: true
1943
+ technology: "mock-hrp"
1944
+ }
1945
+ results: worker "Result handler" { icon: inbox }
1946
+ outbound: queue "Outbound message queue" { icon: mail }
1947
+ }
1948
+
1949
+ cli -> engine "post job" { priority: high }
1950
+ engine => dispatcher "store payload, queue ids-only" { icon: mail; priority: high }
1951
+ dispatcher -> mas "route" { priority: high }
1952
+ mas -> hrp "validate and write" { priority: high }
1953
+ mas => results "complete on results queue" { priority: high }
1954
+ results -> engine "update job status" { priority: high }
1955
+ results => outbound "publish"
1956
+ cli -> engine "poll job status"
1957
+ engine -> cli "complete"
1958
+ }
1959
+ `,"../../../../../examples/demo-closed-won-fail.kdiagram":`diagram "Closed Won fails" {
1960
+ direction LR
1961
+
1962
+ presentation {
1963
+ groupAccent: true
1964
+ }
1965
+
1966
+ edges {
1967
+ route: metro
1968
+ crossings: jumps
1969
+ }
1970
+
1971
+ group platform {
1972
+ arrange: row
1973
+ align: stretch
1974
+
1975
+ group start "Membership first" {
1976
+ arrange: stack
1977
+ salesforce: external "Salesforce" { icon: cloud }
1978
+ mas: service "Request membership account" {
1979
+ icon: users
1980
+ note: "Household write succeeds"
1981
+ }
1982
+ hrp: external "HealthRules Connector" { icon: plug }
1983
+ }
1984
+
1985
+ group sideWork "Also runs in parallel" {
1986
+ arrange: stack
1987
+ share: success "Request share account" { icon: handshake }
1988
+ charge: success "Charge first-month share" { icon: credit-card }
1989
+ okta: success "Create Okta user accounts" { icon: key-round }
1990
+ closedWon: failure "Notify Salesforce Closed Won" {
1991
+ icon: trophy
1992
+ note: "Fails — log and continue"
1993
+ }
1994
+ }
1995
+
1996
+ group close "Result" {
1997
+ arrange: stack
1998
+ lookup: success "Household still visible in lookup" { icon: search }
1999
+ }
2000
+ }
2001
+
2002
+ salesforce => mas "Application Complete" { priority: high }
2003
+ mas -> hrp "Write" { priority: high }
2004
+ mas -> share { priority: high }
2005
+ mas -> charge { priority: high }
2006
+ mas -> okta { priority: high }
2007
+ mas -> closedWon { priority: high }
2008
+ share -> lookup { priority: high }
2009
+ charge -> lookup { priority: high }
2010
+ okta -> lookup { priority: high }
2011
+ closedWon -x lookup "Fail, continue"
2012
+ }
2013
+ `,"../../../../../examples/demo-duplicate.kdiagram":`diagram "Duplicate activate" {
2014
+ direction LR
2015
+
2016
+ presentation {
2017
+ title: "Duplicate activate"
2018
+ titleSubtitle: "Same Salesforce account twice — still one household"
2019
+ groupAccent: true
2020
+ }
2021
+
2022
+ layout {
2023
+ density: normal
2024
+ considerModelOrder: true
2025
+ }
2026
+
2027
+ edges {
2028
+ route: metro
2029
+ crossings: jumps
2030
+ }
2031
+
2032
+ first: external "First Application Complete" {
2033
+ icon: cloud
2034
+ note: "Creates the household"
2035
+ }
2036
+ household: success "Household created" { icon: users }
2037
+ second: external "Second Application Complete" {
2038
+ icon: cloud
2039
+ note: "Same Salesforce account"
2040
+ }
2041
+ mas: service "Request membership account" { icon: users }
2042
+ idempotent: warning "Household already exists" {
2043
+ icon: copy
2044
+ note: "No second household"
2045
+ }
2046
+ lookup: success "Lookup still finds one household" { icon: search }
2047
+
2048
+ first => household { priority: high }
2049
+ second => mas { priority: high }
2050
+ mas -> idempotent { priority: high }
2051
+ household -> lookup { priority: high }
2052
+ idempotent -> lookup { priority: high }
2053
+ }
2054
+ `,"../../../../../examples/demo-new-joiner.kdiagram":`diagram "New joiner" {
2055
+ direction LR
2056
+
2057
+ presentation {
2058
+ title: "New joiner"
2059
+ titleSubtitle: "Happy path — active household end to end"
2060
+ groupAccent: true
2061
+ }
2062
+
2063
+ layout {
2064
+ density: normal
2065
+ spacingScale: 1.08
2066
+ considerModelOrder: true
2067
+ groupLayout: compound
2068
+ nodePlacement: balanced
2069
+ }
2070
+
2071
+ edges {
2072
+ route: metro
2073
+ crossings: jumps
2074
+ }
2075
+
2076
+ group platform {
2077
+ chrome: false
2078
+ arrange: row
2079
+ align: stretch
2080
+
2081
+ group publish "Start" {
2082
+ arrange: stack
2083
+ salesforce: external "Salesforce" {
2084
+ icon: cloud
2085
+ note: "Application Complete"
2086
+ }
2087
+ workflow: worker "Account activation workflow" {
2088
+ icon: workflow
2089
+ subtitle: true
2090
+ technology: "Temporal"
2091
+ }
2092
+ }
2093
+
2094
+ group membership "Membership account" {
2095
+ arrange: stack
2096
+ mas: service "Request membership account" {
2097
+ icon: users
2098
+ note: "Validate and write to HealthRules"
2099
+ subtitle: true
2100
+ technology: "Member Activation Service"
2101
+ }
2102
+ hrp: external "HealthRules Connector" { icon: plug }
2103
+ active: success "Active household" { icon: circle-check }
2104
+ }
2105
+
2106
+ group sideWork "Also runs in parallel" {
2107
+ arrange: stack
2108
+ share: process "Request share account" { icon: handshake }
2109
+ charge: process "Charge first-month share" { icon: credit-card }
2110
+ okta: process "Create Okta user accounts" { icon: key-round }
2111
+ closedWon: process "Notify Salesforce Closed Won" { icon: trophy }
2112
+ }
2113
+
2114
+ group close "Downstream" {
2115
+ arrange: stack
2116
+ cornerstone: service "Cornerstone" { icon: database }
2117
+ ods: database "Operational data store" { icon: database }
2118
+ lookup: success "Lookup finds the household" { icon: search }
2119
+ }
2120
+ }
2121
+
2122
+ salesforce => workflow "Application Complete" { icon: mail; priority: high }
2123
+ workflow -> mas "Request membership account" { priority: high }
2124
+ mas -> hrp "Write" { priority: high }
2125
+ mas -> active { priority: high }
2126
+ hrp ~> cornerstone "Eventually"
2127
+
2128
+ active -> share { priority: high }
2129
+ active -> charge { priority: high }
2130
+ active -> okta { priority: high }
2131
+ active -> closedWon { priority: high }
2132
+
2133
+ cornerstone -> ods "Project" { priority: high }
2134
+ ods -> lookup { priority: high }
2135
+ }
2136
+ `,"../../../../../examples/demo-no-programs.kdiagram":`diagram "No programs" {
2137
+ direction LR
2138
+
2139
+ presentation {
2140
+ title: "No programs"
2141
+ titleSubtitle: "Validation fails — nothing written to HealthRules"
2142
+ groupAccent: true
2143
+ }
2144
+
2145
+ layout {
2146
+ density: normal
2147
+ considerModelOrder: true
2148
+ }
2149
+
2150
+ edges {
2151
+ route: metro
2152
+ crossings: jumps
2153
+ }
2154
+
2155
+ salesforce: external "Salesforce" {
2156
+ icon: cloud
2157
+ note: "Empty programs"
2158
+ }
2159
+ workflow: worker "Account activation workflow" { icon: workflow }
2160
+ mas: failure "Request membership account" {
2161
+ icon: circle-x
2162
+ note: "Programs required"
2163
+ }
2164
+ hrp: external "HealthRules Connector" { icon: plug }
2165
+ lookup: warning "Lookup finds nothing" { icon: search }
2166
+
2167
+ salesforce => workflow "Application Complete" { priority: high }
2168
+ workflow -> mas { priority: high }
2169
+ mas -x hrp "No write"
2170
+ mas -> lookup
2171
+ }
2172
+ `,"../../../../../examples/demo-on-hold.kdiagram":`diagram "On-hold household" {
2173
+ direction LR
2174
+
2175
+ presentation {
2176
+ title: "On-hold household"
2177
+ titleSubtitle: "Programs present, no owner — Okta skipped"
2178
+ groupAccent: true
2179
+ }
2180
+
2181
+ layout {
2182
+ density: normal
2183
+ spacingScale: 1.05
2184
+ considerModelOrder: true
2185
+ groupLayout: compound
2186
+ }
2187
+
2188
+ edges {
2189
+ route: metro
2190
+ crossings: jumps
2191
+ }
2192
+
2193
+ group platform {
2194
+ chrome: false
2195
+ arrange: row
2196
+ align: stretch
2197
+
2198
+ group start "Start" {
2199
+ arrange: stack
2200
+ salesforce: external "Salesforce" {
2201
+ icon: cloud
2202
+ note: "Samuel only, no owner"
2203
+ }
2204
+ workflow: worker "Account activation workflow" { icon: workflow }
2205
+ mas: warning "Request membership account" {
2206
+ icon: users
2207
+ note: "Writes an on-hold household"
2208
+ }
2209
+ }
2210
+
2211
+ group sideWork "Also runs in parallel" {
2212
+ arrange: stack
2213
+ share: process "Request share account" { icon: handshake }
2214
+ charge: process "Charge first-month share" { icon: credit-card }
2215
+ okta: warning "Create Okta user accounts" {
2216
+ icon: key-round
2217
+ note: "Skipped when there is no owner"
2218
+ }
2219
+ closedWon: process "Notify Salesforce Closed Won" { icon: trophy }
2220
+ }
2221
+
2222
+ group close "Result" {
2223
+ arrange: stack
2224
+ lookup: warning "Lookup finds on-hold household" { icon: search }
2225
+ }
2226
+ }
2227
+
2228
+ salesforce => workflow "Application Complete" { priority: high }
2229
+ workflow -> mas { priority: high }
2230
+ mas -> share { priority: high }
2231
+ mas -> charge { priority: high }
2232
+ mas ..> okta "Skipped"
2233
+ mas -> closedWon { priority: high }
2234
+ mas -> lookup { priority: high }
2235
+ }
2236
+ `,"../../../../../examples/demo-projection-paused.kdiagram":`diagram "demo:projection-paused" {
2237
+ direction TD
2238
+
2239
+ presentation {
2240
+ title: "pnpm demo:projection-paused"
2241
+ titleSubtitle: "Not a full activation story — pauses Cornerstone so the read model lags"
2242
+ groupAccent: true
2243
+ }
2244
+
2245
+ layout {
2246
+ density: normal
2247
+ considerModelOrder: true
2248
+ }
2249
+
2250
+ edges {
2251
+ route: metro
2252
+ crossings: jumps
2253
+ }
2254
+
2255
+ pause: warning "Recreate mock-cornerstone" {
2256
+ icon: pause
2257
+ note: "PAUSED=true"
2258
+ }
2259
+ stopped: failure "Cornerstone stops projecting" { icon: database }
2260
+ demo: external "Run a normal Salesforce demo" {
2261
+ icon: terminal
2262
+ note: "Needs pnpm up"
2263
+ }
2264
+ inbox: success "Inbox can still complete" { icon: inbox }
2265
+ stale: warning "Operational data store empty or stale" { icon: database }
2266
+ unpause: process "Unpause Cornerstone" {
2267
+ icon: play
2268
+ note: "PAUSED=false, recreate"
2269
+ }
2270
+ catchup: success "Projection catches up" { icon: circle-check }
2271
+
2272
+ pause -> stopped { priority: high }
2273
+ demo => inbox { priority: high }
2274
+ inbox -> stale
2275
+ unpause -> catchup { priority: high }
2276
+ stale -> catchup
2277
+ }
2278
+ `,"../../../../../examples/demo-salesforce-overview.kdiagram":`diagram "Salesforce activation overview" {
2279
+ direction LR
2280
+
2281
+ presentation {
2282
+ title: "Salesforce activation overview"
2283
+ titleSubtitle: "Membership account, parallel provisioning, then projection"
2284
+ groupAccent: true
2285
+ }
2286
+
2287
+ layout {
2288
+ density: normal
2289
+ spacingScale: 1.08
2290
+ considerModelOrder: true
2291
+ groupLayout: compound
2292
+ nodePlacement: balanced
2293
+ }
2294
+
2295
+ edges {
2296
+ route: metro
2297
+ crossings: jumps
2298
+ }
2299
+
2300
+ group platform {
2301
+ chrome: false
2302
+ arrange: row
2303
+ align: stretch
2304
+
2305
+ group ingress "Start" {
2306
+ arrange: stack
2307
+ salesforce: external "Salesforce" {
2308
+ icon: cloud
2309
+ note: "Application Complete"
2310
+ }
2311
+ workflow: worker "Account activation workflow" {
2312
+ icon: workflow
2313
+ subtitle: true
2314
+ technology: "Temporal"
2315
+ }
2316
+ }
2317
+
2318
+ group membership "Membership account" {
2319
+ arrange: stack
2320
+ mas: service "Request membership account" {
2321
+ icon: users
2322
+ note: "Validate and write to HealthRules"
2323
+ subtitle: true
2324
+ technology: "Member Activation Service"
2325
+ }
2326
+ hrp: external "HealthRules Connector" { icon: plug }
2327
+ }
2328
+
2329
+ group sideWork "Also runs in parallel" {
2330
+ arrange: stack
2331
+ share: process "Request share account" { icon: handshake }
2332
+ charge: process "Charge first-month share" { icon: credit-card }
2333
+ okta: process "Create Okta user accounts" { icon: key-round }
2334
+ closedWon: process "Notify Salesforce Closed Won" { icon: trophy }
2335
+ }
2336
+
2337
+ group finish "Downstream" {
2338
+ arrange: stack
2339
+ cornerstone: service "Cornerstone" { icon: database }
2340
+ ods: database "Operational data store" { icon: database }
2341
+ lookup: process "Read lookup" { icon: search }
2342
+ }
2343
+ }
2344
+
2345
+ salesforce => workflow "Application Complete" { icon: mail; priority: high }
2346
+ workflow -> mas "Request membership account" { priority: high }
2347
+ mas -> hrp "Write" { priority: high }
2348
+ hrp ~> cornerstone "Eventually"
2349
+
2350
+ workflow -> share { priority: high }
2351
+ workflow -> charge { priority: high }
2352
+ workflow -> okta { priority: high }
2353
+ workflow -> closedWon { priority: high }
2354
+
2355
+ cornerstone -> ods "Project" { priority: high }
2356
+ lookup -> ods "Query"
2357
+ }
2358
+ `,"../../../../../examples/enterprise-rag.kdiagram":`diagram "Enterprise RAG" {
2359
+ direction LR
2360
+
2361
+ presentation {
2362
+ title: "Enterprise RAG"
2363
+ titleSubtitle: "Guarded retrieval across ingress, orchestration, knowledge, and controls"
2364
+ groupAccent: true
2365
+ padding: 0
2366
+ }
2367
+
2368
+ layout {
2369
+ density: spacious
2370
+ spacingScale: 2
2371
+ padding: 0
2372
+ }
2373
+
2374
+ edges {
2375
+ route: metro
2376
+ crossings: smart
2377
+ }
2378
+
2379
+ group platform {
2380
+ chrome: false
2381
+ arrange: row
2382
+ align: stretch
2383
+
2384
+ group ingress "Ingress" {
2385
+ arrange: stack
2386
+ userIn: user "Analyst" { icon: message-square }
2387
+ auth: gateway "Auth gateway" {
2388
+ icon: shield-check
2389
+ subtitle: true
2390
+ technology: "OIDC"
2391
+ }
2392
+ allowed: choice "Policy OK?"
2393
+ }
2394
+
2395
+ group orchestration "Orchestration" {
2396
+ arrange: stack
2397
+ rewriter: service "Query rewriter" { icon: wand-sparkles }
2398
+ encoder: service "Encoder" { icon: binary }
2399
+ retrieval: service "Retrieval" { icon: search }
2400
+ ranking: service "Reranker" { icon: list-filter }
2401
+ generator: service "Generator" {
2402
+ icon: bot
2403
+ subtitle: true
2404
+ technology: "LLM"
2405
+ }
2406
+ }
2407
+
2408
+ group knowledge "Knowledge" {
2409
+ arrange: stack
2410
+ embStore: database "Embeddings" {
2411
+ icon: database
2412
+ note: "vector index"
2413
+ }
2414
+ docStore: database "Document store" {
2415
+ icon: database
2416
+ note: "chunked corpus"
2417
+ }
2418
+ featureStore: cache "Feature cache" { icon: logos:redis }
2419
+ }
2420
+
2421
+ group controls "Controls" {
2422
+ arrange: stack
2423
+ outGuard: warning "Output guard" { icon: shield-alert }
2424
+ answer: success "Answer" { icon: message-circle }
2425
+ telemetry: service "Telemetry" { icon: activity }
2426
+ deny: failure "Blocked" { icon: circle-x }
2427
+ }
2428
+ }
2429
+
2430
+ userIn -> auth
2431
+ auth -> allowed
2432
+ allowed -> rewriter "yes" { priority: high }
2433
+ allowed -x deny "no"
2434
+
2435
+ rewriter -> encoder { priority: high }
2436
+ encoder -> retrieval { priority: high }
2437
+ retrieval -> ranking { priority: high }
2438
+ ranking -> generator { priority: high }
2439
+ generator -> outGuard { priority: high }
2440
+ outGuard -> answer "yes" { branch: yes; priority: high }
2441
+ outGuard -> deny "no" { branch: no }
2442
+
2443
+ retrieval ..> embStore "kNN"
2444
+ encoder ..> docStore "hydrate chunks"
2445
+ ranking ..> featureStore
2446
+ ranking => telemetry "scores"
2447
+ generator => telemetry "tokens"
2448
+
2449
+ animation "Default" {}
2450
+ }
2451
+ `,"../../../../../examples/geometry-kinds.kdiagram":`diagram "Geometry kinds" {
2452
+ direction TD
2453
+
2454
+ presentation {
2455
+ title: "Geometry kinds"
2456
+ titleSubtitle: "Bare shapes and common aliases"
2457
+ }
2458
+
2459
+ layout {
2460
+ density: normal
2461
+ }
2462
+
2463
+ group catalog {
2464
+ arrange: stack
2465
+ align: stretch
2466
+
2467
+ group basics "Basics" {
2468
+ arrange: pack
2469
+ r: rectangle "Rect"
2470
+ round: rounded "Rounded"
2471
+ p: pill "Pill"
2472
+ ell: ellipse "Ellipse"
2473
+ cir: circle "O"
2474
+ }
2475
+
2476
+ group flowchart "Flowchart" {
2477
+ arrange: pack
2478
+ d: diamond "Diamond"
2479
+ h: hexagon "Hexagon"
2480
+ para: parallelogram "IO"
2481
+ trap: trapezoid "Manual"
2482
+ tri: triangle "Warn"
2483
+ }
2484
+
2485
+ group media "Media" {
2486
+ arrange: pack
2487
+ c: cylinder "Cylinder"
2488
+ cl: cloud "Cloud"
2489
+ doc: document "Doc"
2490
+ fold: folded-document "Note"
2491
+ per: person "Actor"
2492
+ q: queue "Q"
2493
+ }
2494
+
2495
+ group aliases "Aliases" {
2496
+ arrange: pack
2497
+ a: diam "Alias◆"
2498
+ b: hex "Alias⬡"
2499
+ box: rect "Alias□"
2500
+ cap: capsule "Alias⬭"
2501
+ }
2502
+ }
2503
+ }
2504
+ `,"../../../../../examples/hexagonal-architecture.kdiagram":`diagram "Hexagonal architecture" {
2505
+ direction LR
2506
+
2507
+ presentation {
2508
+ title: "Hexagonal architecture"
2509
+ titleSubtitle: "Order core · driving & driven adapters · queue-side Inventory & Fulfillment"
2510
+ groupAccent: true
2511
+ }
2512
+
2513
+ layout {
2514
+ density: normal
2515
+ spacingScale: 1.1
2516
+ considerModelOrder: true
2517
+ }
2518
+
2519
+ edges {
2520
+ route: metro
2521
+ crossings: jumps
2522
+ }
2523
+
2524
+ group system {
2525
+ chrome: false
2526
+ arrange: stack
2527
+ align: stretch
2528
+
2529
+ // Primary hexagon: actors → driving adapters → application core → driven adapters
2530
+ group orderContext "Order context" {
2531
+ arrange: row
2532
+ align: stretch
2533
+
2534
+ group actors "Actors" {
2535
+ arrange: stack
2536
+ browser: rect "Browser" { icon: monitor }
2537
+ mobile: rect "Mobile" { icon: smartphone }
2538
+ partner: external "Partner portal" { icon: building-2 }
2539
+ }
2540
+
2541
+ group driving "Driving adapters" {
2542
+ arrange: stack
2543
+ bff: service "Web BFF" { icon: panels-top-left }
2544
+ gateway: gateway "API Gateway" { icon: waypoints }
2545
+ }
2546
+
2547
+ group application "Application core" {
2548
+ arrange: stack
2549
+ order: service "Order" {
2550
+ shape: hexagon
2551
+ icon: shopping-cart
2552
+ }
2553
+ }
2554
+
2555
+ group driven "Driven adapters" {
2556
+ arrange: stack
2557
+ ordersDb: database "Orders DB" { icon: logos:postgresql }
2558
+ bus: broker "RabbitMQ" { icon: logos:rabbitmq }
2559
+ }
2560
+ }
2561
+
2562
+ // Secondary hexagons listen on message ports (other bounded contexts).
2563
+ group asyncPlane "Secondary contexts" {
2564
+ arrange: row
2565
+ align: stretch
2566
+
2567
+ group messagePorts "Message ports" {
2568
+ arrange: stack
2569
+ inventoryQ: queue "inventory" { icon: list-ordered }
2570
+ fulfillQ: queue "fulfillment" { icon: list-ordered }
2571
+ }
2572
+
2573
+ group inventoryContext "Inventory context" {
2574
+ arrange: row
2575
+ align: stretch
2576
+
2577
+ group inventoryApp "Application core" {
2578
+ inventory: service "Inventory" {
2579
+ shape: hexagon
2580
+ icon: package
2581
+ }
2582
+ }
2583
+
2584
+ group inventoryDriven "Driven adapters" {
2585
+ arrange: stack
2586
+ cache: cache "Redis" { icon: logos:redis }
2587
+ stockDb: database "Stock DB" { icon: logos:postgresql }
2588
+ }
2589
+ }
2590
+
2591
+ group fulfillContext "Fulfillment context" {
2592
+ fulfill: service "Fulfillment" {
2593
+ shape: hexagon
2594
+ icon: package-check
2595
+ }
2596
+ }
2597
+ }
2598
+ }
2599
+
2600
+ // Driving side → Order core
2601
+ browser -> bff { priority: high }
2602
+ mobile -> bff
2603
+ partner -> bff
2604
+ bff -> gateway { priority: high }
2605
+ gateway -> order { priority: high }
2606
+
2607
+ // Order core → driven adapters
2608
+ order -> ordersDb "write order" { priority: high }
2609
+ order => bus "OrderPlaced" { priority: high }
2610
+
2611
+ // Bus opens ports into other contexts
2612
+ bus => inventoryQ "route" { priority: high }
2613
+ bus => fulfillQ "route" { priority: high }
2614
+ inventoryQ -> inventory { priority: high }
2615
+ fulfillQ -> fulfill { priority: high }
2616
+
2617
+ // Cache-aside inside Inventory's driven adapters
2618
+ inventory -> cache "get"
2619
+ inventory -> stockDb "load"
2620
+ inventory -> cache "set"
2621
+
2622
+ animation "Place order" {
2623
+ dim *
2624
+ activate browser
2625
+ wait 250ms
2626
+ flow browser -> bff -> gateway -> order for 2s
2627
+ activate order
2628
+ pulse order for 450ms
2629
+ flow order -> ordersDb for 700ms
2630
+ activate ordersDb
2631
+ wait 250ms
2632
+ flow order -> bus for 700ms
2633
+ activate bus
2634
+ wait 280ms
2635
+ flow bus -> inventoryQ for 550ms
2636
+ flow bus -> fulfillQ for 550ms
2637
+ activate inventoryQ, fulfillQ
2638
+ wait 280ms
2639
+ flow inventoryQ -> inventory for 650ms
2640
+ flow fulfillQ -> fulfill for 650ms
2641
+ activate inventory, fulfill
2642
+ wait 900ms
2643
+ loop
2644
+ }
2645
+
2646
+ animation "Cache-aside hit" {
2647
+ dim *
2648
+ activate inventory
2649
+ pulse inventory for 400ms
2650
+ flow inventory -> cache for 700ms
2651
+ activate cache
2652
+ wait 500ms
2653
+ activate inventory
2654
+ wait 900ms
2655
+ loop
2656
+ }
2657
+
2658
+ animation "Cache-aside miss" {
2659
+ dim *
2660
+ activate inventory
2661
+ wait 280ms
2662
+ flow inventory -> cache for 600ms
2663
+ activate cache
2664
+ wait 320ms
2665
+ flow inventory -> stockDb for 700ms
2666
+ activate stockDb
2667
+ wait 320ms
2668
+ flow inventory -> cache for 700ms
2669
+ activate cache
2670
+ wait 400ms
2671
+ activate inventory
2672
+ wait 900ms
2673
+ loop
2674
+ }
2675
+
2676
+ animation "Fulfill from queue" {
2677
+ dim *
2678
+ activate fulfillQ
2679
+ pulse fulfillQ for 450ms
2680
+ flow fulfillQ -> fulfill for 800ms
2681
+ activate fulfill
2682
+ pulse fulfill for 500ms
2683
+ wait 900ms
2684
+ loop
2685
+ }
2686
+ }
2687
+ `,"../../../../../examples/layered-architecture.kdiagram":`diagram "Layered architecture" {
2688
+ direction TD
2689
+
2690
+ presentation {
2691
+ title: "Layered architecture"
2692
+ titleSubtitle: "Presentation → API → data as stretch bands"
2693
+ groupAccent: true
2694
+ }
2695
+
2696
+ layout {
2697
+ density: normal
2698
+ spacingScale: 1.05
2699
+ }
2700
+
2701
+ edges {
2702
+ route: metro
2703
+ crossings: smart
2704
+ }
2705
+
2706
+ group system {
2707
+ arrange: stack
2708
+ align: stretch
2709
+
2710
+ group web "Experiences" {
2711
+ arrange: pack
2712
+ browser: rect "Browser" { icon: monitor }
2713
+ mobile: rect "Mobile" { icon: smartphone }
2714
+ partner: external "Partner portal" { icon: building-2 }
2715
+ }
2716
+
2717
+ group api "Services" {
2718
+ arrange: pack
2719
+ gateway: gateway "API Gateway" { icon: waypoints }
2720
+ checkout: service "Checkout" { icon: shopping-cart }
2721
+ catalog: service "Catalog" { icon: package }
2722
+ billing: service "Billing" { icon: credit-card }
2723
+ }
2724
+
2725
+ group data "Data" {
2726
+ arrange: pack
2727
+ bus: broker "Event bus" { icon: logos:rabbitmq }
2728
+ cache: cache "Redis" { icon: logos:redis }
2729
+ db: database "Postgres" { icon: logos:postgresql }
2730
+ }
2731
+ }
2732
+
2733
+ browser -> gateway
2734
+ mobile -> gateway
2735
+ partner -> gateway
2736
+ gateway -> checkout
2737
+ gateway -> catalog
2738
+ gateway -> billing
2739
+ catalog -> db
2740
+ checkout ..> cache
2741
+ billing -> db
2742
+ checkout => bus "OrderPlaced"
2743
+ }
2744
+ `,"../../../../../examples/module-columns.kdiagram":`diagram "Module columns" {
2745
+ direction LR
2746
+
2747
+ presentation {
2748
+ title: "Module columns"
2749
+ titleSubtitle: "Edge, core, and data as equal-height columns"
2750
+ }
2751
+
2752
+ layout {
2753
+ density: normal
2754
+ }
2755
+
2756
+ group platform {
2757
+ arrange: row
2758
+ align: stretch
2759
+
2760
+ group edgePlane "Edge" {
2761
+ arrange: stack
2762
+ cdn: external "CDN" { icon: globe }
2763
+ gateway: gateway "API Gateway" { icon: waypoints }
2764
+ }
2765
+
2766
+ group core "Core" {
2767
+ arrange: stack
2768
+ checkout: service "Checkout" { icon: shopping-cart }
2769
+ inventory: service "Inventory" { icon: package }
2770
+ billing: service "Billing" { icon: credit-card }
2771
+ }
2772
+
2773
+ group data "Data" {
2774
+ arrange: stack
2775
+ bus: broker "Event bus" { icon: logos:kafka }
2776
+ db: database "Postgres" { icon: logos:postgresql }
2777
+ }
2778
+ }
2779
+
2780
+ cdn -> checkout
2781
+ gateway -> checkout
2782
+ gateway -> inventory
2783
+ gateway -> billing
2784
+ checkout => bus "OrderPlaced"
2785
+ inventory -> db
2786
+ billing => bus "Charged"
2787
+ }
2788
+ `,"../../../../../examples/node-content.kdiagram":`diagram "Node content" {
2789
+ direction LR
2790
+
2791
+ presentation {
2792
+ title: "Node content"
2793
+ titleSubtitle: "Subtitles, notes, scale, and icons"
2794
+ }
2795
+
2796
+ layout {
2797
+ density: normal
2798
+ }
2799
+
2800
+ checkout: service "Checkout" {
2801
+ icon: shopping-cart
2802
+ subtitle: "Payments domain"
2803
+ }
2804
+
2805
+ inventory: service "Inventory" {
2806
+ icon: package
2807
+ subtitle: true
2808
+ }
2809
+
2810
+ api: gateway "API Gateway" {
2811
+ icon: waypoints
2812
+ note: "edge entry"
2813
+ scale: 1.15
2814
+ }
2815
+
2816
+ pg: database "Postgres" {
2817
+ icon: logos:postgresql
2818
+ subtitle: "primary"
2819
+ }
2820
+
2821
+ stripe: external "Stripe" {
2822
+ icon: simple-icons:stripe
2823
+ iconPaint: brand
2824
+ }
2825
+
2826
+ checkout -> api
2827
+ api -> inventory
2828
+ inventory -> pg
2829
+ api -> stripe
2830
+ }
2831
+ `,"../../../../../examples/order-placed-pipeline.kdiagram":`diagram "OrderPlaced pipeline" {
2832
+ direction LR
2833
+
2834
+ presentation {
2835
+ title: "OrderPlaced pipeline"
2836
+ titleSubtitle: "One publish · fan-out queues · workers · sinks · dead-letter"
2837
+ groupAccent: true
2838
+ }
2839
+
2840
+ layout {
2841
+ density: normal
2842
+ }
2843
+
2844
+ edges {
2845
+ route: metro
2846
+ crossings: smart
2847
+ }
2848
+
2849
+ group pipeline {
2850
+ chrome: false
2851
+ arrange: row
2852
+ align: stretch
2853
+
2854
+ group producers "Producers" {
2855
+ arrange: stack
2856
+ checkout: service "Checkout" { icon: shopping-cart }
2857
+ bus: broker "Event bus" {
2858
+ icon: logos:kafka
2859
+ subtitle: true
2860
+ technology: "Kafka"
2861
+ }
2862
+ }
2863
+
2864
+ group queues "Queues" {
2865
+ arrange: stack
2866
+ ordersQ: queue "orders" { icon: list-ordered }
2867
+ paymentsQ: queue "payments" { icon: list-ordered }
2868
+ emailQ: queue "email" { icon: list-ordered }
2869
+ }
2870
+
2871
+ group consumers "Consumers" {
2872
+ arrange: stack
2873
+ inventory: worker "Inventory worker" { icon: package }
2874
+ billing: worker "Billing worker" { icon: credit-card }
2875
+ notify: worker "Notify worker" { icon: mail }
2876
+ }
2877
+
2878
+ group sinks "Sinks" {
2879
+ arrange: stack
2880
+ ordersDb: database "Orders DB" { icon: logos:postgresql }
2881
+ stripe: external "Stripe" { icon: simple-icons:stripe }
2882
+ mail: external "Email provider" { icon: send }
2883
+ deadLetter: dlq "dead-letter" { icon: circle-alert }
2884
+ }
2885
+ }
2886
+
2887
+ checkout => bus "OrderPlaced" { icon: mail; priority: high }
2888
+ bus => ordersQ "route"
2889
+ bus => paymentsQ "route"
2890
+ bus => emailQ "route"
2891
+
2892
+ ordersQ -> inventory { priority: high }
2893
+ paymentsQ -> billing { priority: high }
2894
+ emailQ -> notify
2895
+
2896
+ inventory -> ordersDb "upsert lines" { priority: high }
2897
+ billing -> stripe "capture" { priority: high }
2898
+ billing -> ordersDb "payment status"
2899
+ notify -> mail "receipt" { icon: send }
2900
+
2901
+ billing -x deadLetter "poison message" { icon: circle-alert }
2902
+ inventory -x deadLetter "retry exhausted"
2903
+ }
2904
+ `,"../../../../../examples/platform-grid.kdiagram":`diagram "Platform grid" {
2905
+ direction LR
2906
+
2907
+ presentation {
2908
+ title: "Platform grid"
2909
+ titleSubtitle: "Named columns with core spanning both rows"
2910
+ }
2911
+
2912
+ layout {
2913
+ density: normal
2914
+ }
2915
+
2916
+ group platform {
2917
+ arrange: grid
2918
+ columns: [edge, core, data]
2919
+ rows: 2
2920
+ align: stretch
2921
+
2922
+ group edgePlane "Edge" {
2923
+ column: edge
2924
+ arrange: pack
2925
+ gateway: gateway "API Gateway" { icon: waypoints }
2926
+ }
2927
+
2928
+ group core "Core" {
2929
+ column: core
2930
+ rowSpan: 2
2931
+ arrange: stack
2932
+ checkout: service "Checkout" { icon: shopping-cart }
2933
+ inventory: service "Inventory" { icon: package }
2934
+ billing: service "Billing" { icon: credit-card }
2935
+ }
2936
+
2937
+ group data "Data" {
2938
+ column: data
2939
+ arrange: stack
2940
+ db: database "Postgres" { icon: logos:postgresql }
2941
+ cache: cache "Redis" { icon: logos:redis }
2942
+ }
2943
+
2944
+ group ops "Ops" {
2945
+ column: edge
2946
+ row: 2
2947
+ arrange: stack
2948
+ metrics: service "Metrics" { icon: activity }
2949
+ logs: service "Logs" { icon: scroll-text }
2950
+ }
2951
+ }
2952
+
2953
+ gateway -> checkout
2954
+ gateway -> inventory
2955
+ gateway -> billing
2956
+ checkout -> db
2957
+ inventory ..> cache
2958
+ metrics ..> gateway
2959
+ }
2960
+ `,"../../../../../examples/platform-spans.kdiagram":`diagram "Grid spans" {
2961
+ direction LR
2962
+
2963
+ presentation {
2964
+ title: "Grid spans"
2965
+ titleSubtitle: "colSpan full-width bands and rowSpan tall columns"
2966
+ }
2967
+
2968
+ layout {
2969
+ density: normal
2970
+ }
2971
+
2972
+ group platform {
2973
+ arrange: grid
2974
+ columns: [edge, core, data]
2975
+ rows: 3
2976
+ align: stretch
2977
+
2978
+ group ingress "Ingress" {
2979
+ row: 1
2980
+ colSpan: 3
2981
+ arrange: pack
2982
+ cdn: external "CDN" { icon: globe }
2983
+ gateway: gateway "API Gateway" { icon: waypoints }
2984
+ }
2985
+
2986
+ group edgePlane "Edge" {
2987
+ column: edge
2988
+ row: 2
2989
+ arrange: pack
2990
+ auth: service "Auth" { icon: shield-check }
2991
+ }
2992
+
2993
+ group core "Core" {
2994
+ column: core
2995
+ row: 2
2996
+ rowSpan: 2
2997
+ arrange: stack
2998
+ checkout: service "Checkout" { icon: shopping-cart }
2999
+ billing: service "Billing" { icon: credit-card }
3000
+ }
3001
+
3002
+ group data "Data" {
3003
+ column: data
3004
+ row: 2
3005
+ arrange: stack
3006
+ db: database "Postgres" { icon: logos:postgresql }
3007
+ cache: cache "Redis" { icon: logos:redis }
3008
+ }
3009
+
3010
+ group ops "Ops" {
3011
+ row: 3
3012
+ colSpan: 2
3013
+ column: edge
3014
+ arrange: pack
3015
+ metrics: service "Metrics" { icon: activity }
3016
+ logs: service "Logs" { icon: scroll-text }
3017
+ }
3018
+ }
3019
+
3020
+ // Cross-cell edges only (avoid siblings inside pack/stack cells)
3021
+ cdn -> auth
3022
+ gateway -> checkout
3023
+ gateway -> billing
3024
+ auth -> checkout
3025
+ checkout -> db
3026
+ billing ..> cache
3027
+ metrics ..> gateway
3028
+ }
3029
+ `,"../../../../../examples/presentation-slide.kdiagram":`diagram "Platform overview" {
3030
+ direction LR
3031
+
3032
+ presentation {
3033
+ title: "Platform overview"
3034
+ titleSubtitle: "Review-ready chrome — title and group accents — still embeddable SVG"
3035
+ groupAccent: true
3036
+ }
3037
+
3038
+ layout {
3039
+ density: normal
3040
+ spacingScale: 1.05
3041
+ }
3042
+
3043
+ edges {
3044
+ route: metro
3045
+ crossings: smart
3046
+ }
3047
+
3048
+ group platform {
3049
+ chrome: false
3050
+ arrange: row
3051
+ align: stretch
3052
+
3053
+ group edgePlane "Edge" {
3054
+ arrange: stack
3055
+ cdn: external "CDN" { icon: globe }
3056
+ api: gateway "API Gateway" {
3057
+ icon: waypoints
3058
+ subtitle: true
3059
+ technology: "Kong"
3060
+ }
3061
+ auth: service "Auth" { icon: shield-check }
3062
+ }
3063
+
3064
+ group core "Core" {
3065
+ arrange: stack
3066
+ checkout: service "Checkout" { icon: shopping-cart }
3067
+ billing: service "Billing" { icon: credit-card }
3068
+ catalog: service "Catalog" { icon: package }
3069
+ }
3070
+
3071
+ group data "Data" {
3072
+ arrange: stack
3073
+ db: database "Postgres" { icon: logos:postgresql }
3074
+ cache: cache "Redis" { icon: logos:redis }
3075
+ bus: broker "Events" { icon: logos:kafka }
3076
+ }
3077
+ }
3078
+
3079
+ cdn -> api
3080
+ api -> auth
3081
+ auth -> checkout
3082
+ auth -> catalog
3083
+ api -> billing
3084
+ checkout -> db
3085
+ catalog ..> cache
3086
+ billing => bus "Charged"
3087
+ checkout => bus "OrderPlaced"
3088
+
3089
+ animation "default" {}
3090
+ }
3091
+ `,"../../../../../examples/temporal-order-workflow-sequence.kdiagram":`sequence "Order orchestration (Temporal) — sequence" {
3092
+ autonumber
3093
+
3094
+ presentation {
3095
+ groupAccent: false
3096
+ }
3097
+
3098
+ client: service "Checkout API" { icon: monitor }
3099
+ temporal: service "Temporal" { icon: workflow; technology: "Server" }
3100
+ ordersQ: queue "orders" { icon: list-ordered }
3101
+ worker: worker "OrderWorkflow" { icon: inbox }
3102
+ inventory: external "Inventory API" { icon: package }
3103
+ payments: external "Payments" { icon: simple-icons:stripe }
3104
+ shipping: external "Shipping" { icon: truck }
3105
+ mail: external "Email" { icon: send }
3106
+
3107
+ client => temporal "Start Order Workflow"
3108
+ temporal -> ordersQ "schedule"
3109
+ ordersQ -> worker "poll"
3110
+
3111
+ activate worker
3112
+ worker -> inventory "Validate · Read"
3113
+ inventory --> worker "ok"
3114
+
3115
+ parallel "Reserve" is info {
3116
+ worker -> inventory "Hold"
3117
+ inventory --> worker "held"
3118
+ } and "Authorize" is info {
3119
+ worker -> payments "Authorize"
3120
+ payments --> worker "auth ok"
3121
+ }
3122
+
3123
+ divider "Await Payment Captured (signal or 15m timer)"
3124
+ note over worker, payments "Signal PaymentCaptured or timer fires"
3125
+
3126
+ payments ~> worker "PaymentCaptured"
3127
+
3128
+ alternate "payment ok" is success {
3129
+ create ship: subprocess "Ship Order" {
3130
+ icon: workflow
3131
+ technology: "Child"
3132
+ }
3133
+ worker -> ship "Start child"
3134
+ activate ship
3135
+ ship -> shipping "Create label"
3136
+ shipping --> ship "label"
3137
+ ship --> worker "shipped"
3138
+ deactivate ship
3139
+ destroy ship
3140
+
3141
+ worker -> mail "Notify Customer"
3142
+ mail --> worker "sent"
3143
+ } else "timeout" is danger {
3144
+ worker -> inventory "Compensate · Release hold"
3145
+ inventory --> worker "released"
3146
+ worker -x worker "Fail Workflow"
3147
+ }
3148
+
3149
+ deactivate worker
3150
+
3151
+ animation "Happy path" {
3152
+ dim *
3153
+ activate client
3154
+ wait 200ms
3155
+ flow client -> temporal -> ordersQ -> worker for 1.2s
3156
+ activate worker
3157
+ flow worker -> inventory for 450ms
3158
+ parallel {
3159
+ flow worker -> inventory for 450ms
3160
+ flow worker -> payments for 450ms
3161
+ }
3162
+ wait 300ms
3163
+ flow payments -> worker for 500ms
3164
+ flow worker -> ship for 450ms
3165
+ activate ship
3166
+ flow ship -> shipping for 450ms
3167
+ flow ship -> worker for 450ms
3168
+ flow worker -> mail for 450ms
3169
+ wait 800ms
3170
+ loop
3171
+ }
3172
+
3173
+ animation "Timeout compensate" {
3174
+ dim *
3175
+ activate client
3176
+ wait 150ms
3177
+ flow client -> temporal -> ordersQ -> worker for 1.2s
3178
+ activate worker
3179
+ parallel {
3180
+ flow worker -> inventory for 450ms
3181
+ flow worker -> payments for 450ms
3182
+ }
3183
+ wait 600ms
3184
+ flow worker -> inventory for 500ms
3185
+ wait 800ms
3186
+ loop
3187
+ }
3188
+ }
3189
+ `,"../../../../../examples/temporal-order-workflow.kdiagram":`diagram "Order orchestration (Temporal)" {
3190
+ direction LR
3191
+
3192
+ presentation {
3193
+ groupAccent: false
3194
+ }
3195
+
3196
+ edges {
3197
+ route: metro
3198
+ crossings: jumps
3199
+ }
3200
+
3201
+ group platform {
3202
+ arrange: row
3203
+ align: center
3204
+ chrome: false
3205
+
3206
+ // Left: how work gets onto a worker (short vertical spine).
3207
+ group runtime "Temporal runtime" {
3208
+ arrange: stack
3209
+ client: service "Checkout API" {
3210
+ icon: monitor
3211
+ note: "StartWorkflow"
3212
+ }
3213
+ temporal: service "Temporal" {
3214
+ icon: workflow
3215
+ subtitle: true
3216
+ technology: "Server"
3217
+ }
3218
+ ordersQ: queue "orders" {
3219
+ icon: list-ordered
3220
+ note: "Task queue"
3221
+ }
3222
+ worker: worker "Worker" {
3223
+ icon: inbox
3224
+ note: "Poll + execute"
3225
+ }
3226
+ }
3227
+
3228
+ // Center: workflow phases top→bottom so hops stay inside the column.
3229
+ group orchestration "Order Workflow" {
3230
+ arrange: stack
3231
+
3232
+ validate: task "Validate Order" {
3233
+ icon: badge-check
3234
+ note: "Activity · retries"
3235
+ }
3236
+
3237
+ group parallel "Promise.all" {
3238
+ arrange: pack
3239
+ reserve: task "Reserve Inventory" { icon: package }
3240
+ authPay: task "Authorize Payment" { icon: credit-card }
3241
+ }
3242
+
3243
+ awaitPay: event "Await Payment Captured" {
3244
+ icon: timer
3245
+ note: "Signal or 15m timer"
3246
+ }
3247
+
3248
+ paid: choice "Payment ok?"
3249
+
3250
+ // Yes/no branches sit side-by-side so the timeout edge is a short hop.
3251
+ group outcomes {
3252
+ arrange: stack
3253
+ align: stretch
3254
+
3255
+ group success "Happy path" {
3256
+ arrange: stack
3257
+ shipChild: subprocess "Ship Order (child)" {
3258
+ icon: workflow
3259
+ note: "Child workflow"
3260
+ subtitle: true
3261
+ technology: "Temporal"
3262
+ }
3263
+ complete: success "Mark Completed" { icon: circle-check; styles: [success] }
3264
+ notify: task "Notify Customer" { icon: mail }
3265
+ }
3266
+
3267
+ group failure "Compensate" {
3268
+ arrange: stack
3269
+ compensate: task "Compensate Reserve" {
3270
+ icon: undo-2
3271
+ note: "Saga rollback"
3272
+ styles: [warning]
3273
+ }
3274
+ failed: failure "Fail Workflow" { icon: circle-x; styles: [danger] }
3275
+ }
3276
+ }
3277
+ }
3278
+
3279
+ // Right: externals in the same vertical order as the activities that call them.
3280
+ group systems "Systems" {
3281
+ arrange: stack
3282
+ inventory: external "Inventory API" { icon: package }
3283
+ payments: external "Payments" { icon: simple-icons:stripe }
3284
+ shipping: external "Shipping" { icon: truck }
3285
+ mail: external "Email" { icon: send }
3286
+ }
3287
+ }
3288
+
3289
+ // Runtime spine — start is async; schedule lands on the queue.
3290
+ client => temporal "Start Order Workflow" { icon: mail }
3291
+ temporal => ordersQ "schedule"
3292
+ ordersQ -> worker
3293
+
3294
+ // Enter the workflow, then phase-to-phase inside OrderWorkflow.
3295
+ worker -> validate "run OrderWorkflow"
3296
+ validate -> reserve
3297
+ validate -> authPay
3298
+ reserve -> awaitPay
3299
+ authPay -> awaitPay
3300
+ awaitPay -> paid
3301
+
3302
+ paid -> shipChild "yes" { branch: yes; priority: high }
3303
+ shipChild -> complete
3304
+ complete -> notify
3305
+
3306
+ paid -x compensate "timeout" { branch: no }
3307
+ compensate -x failed
3308
+
3309
+ // Short hops into the systems column.
3310
+ validate ..> inventory "Read"
3311
+ reserve -> inventory "Hold"
3312
+ authPay -> payments "Authorize" { labelPosition: start }
3313
+ payments => awaitPay "Signal Payment Captured" { icon: mail; labelPosition: end }
3314
+ shipChild -> shipping "Create label"
3315
+ notify -> mail "Receipt"
3316
+ compensate -> inventory "Release hold"
3317
+
3318
+ animation "All" {}
3319
+
3320
+ animation "Happy path" {
3321
+ dim *
3322
+ activate client
3323
+ wait 200ms
3324
+ flow client -> temporal -> ordersQ -> worker for 1.4s
3325
+ activate worker
3326
+ pulse worker for 350ms
3327
+ flow worker -> validate for 550ms
3328
+ activate validate
3329
+ pulse validate for 350ms
3330
+ parallel {
3331
+ flow validate -> reserve for 500ms
3332
+ flow validate -> authPay for 500ms
3333
+ flow validate -> inventory for 500ms
3334
+ }
3335
+ activate reserve, authPay, inventory
3336
+ wait 280ms
3337
+ parallel {
3338
+ flow reserve -> inventory for 450ms
3339
+ flow authPay -> payments for 450ms
3340
+ }
3341
+ activate inventory, payments
3342
+ wait 250ms
3343
+ parallel {
3344
+ flow reserve -> awaitPay for 500ms
3345
+ flow authPay -> awaitPay for 500ms
3346
+ }
3347
+ activate awaitPay
3348
+ // Sit on the wait node so the signal reads as an answer, not an arrival race.
3349
+ pulse awaitPay for 1.1s
3350
+ wait 250ms
3351
+ flow payments -> awaitPay for 550ms
3352
+ flow awaitPay -> paid for 450ms
3353
+ activate paid
3354
+ pulse paid for 400ms
3355
+ flow paid -> shipChild for 500ms
3356
+ activate shipChild
3357
+ parallel {
3358
+ flow shipChild -> complete for 450ms
3359
+ flow shipChild -> shipping for 450ms
3360
+ }
3361
+ activate complete, shipping
3362
+ flow complete -> notify for 450ms
3363
+ activate notify
3364
+ flow notify -> mail for 450ms
3365
+ activate mail
3366
+ wait 800ms
3367
+ loop
3368
+ }
3369
+
3370
+ animation "Timeout compensate" {
3371
+ dim *
3372
+ activate client
3373
+ wait 150ms
3374
+ flow client -> temporal -> ordersQ -> worker -> validate for 1.6s
3375
+ activate validate
3376
+ parallel {
3377
+ flow validate -> reserve for 450ms
3378
+ flow validate -> authPay for 450ms
3379
+ }
3380
+ activate reserve, authPay
3381
+ parallel {
3382
+ flow reserve -> awaitPay for 450ms
3383
+ flow authPay -> awaitPay for 450ms
3384
+ }
3385
+ activate awaitPay
3386
+ pulse awaitPay for 1.2s
3387
+ wait 450ms
3388
+ flow awaitPay -> paid for 450ms
3389
+ activate paid
3390
+ pulse paid for 400ms
3391
+ flow paid -> compensate for 500ms
3392
+ activate compensate
3393
+ parallel {
3394
+ flow compensate -> failed for 450ms
3395
+ flow compensate -> inventory for 450ms
3396
+ }
3397
+ activate failed, inventory
3398
+ wait 800ms
3399
+ loop
3400
+ }
3401
+ }
3402
+ `}),Bc=`diagram {
3403
+ direction LR
3404
+ a: service "A"
3405
+ b: service "B"
3406
+ a -> b
3407
+ }
3408
+ `,Vc=Object.entries(zc).map(([e,t])=>{let n=e.split(`/`).pop().replace(`.kdiagram`,``);return{id:n,label:n.split(`-`).map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(` `),source:t}}).sort((e,t)=>e.label.localeCompare(t.label)),Hc=Vc[0],Uc=`kdiagram-icon-api`,Wc=`kdiagram-public-studio`;function Gc(e,t=document.baseURI){return new URL(e.replace(/^\//,``),new URL(`.`,t)).toString()}function Kc(e){let t=e.querySelector(`meta[name="${Uc}"]`)?.content.trim();return qc(e.baseURI,t)}function qc(e,t){return new URL(t||`__kdiagram/icons`,new URL(`.`,e)).toString().replace(/\/$/,``)}function Jc(e){let t=e.querySelector(`meta[name="${Wc}"]`)?.content.trim();return new URL(t||`.`,e.baseURI).toString()}async function Yc(e,t){try{let n=await(await fetch(Gc(`__kdiagram/save-example`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({id:e,source:t})})).json();if(n.ok){let n=Vc.find(t=>t.id===e);n&&(n.source=t.endsWith(`
3409
+ `)?t:`${t}\n`)}return n}catch(e){return{ok:!1,error:e instanceof Error?e.message:`Network error while saving`}}}function Xc(){return!0}var Zc={types:[{description:`KDiagram diagram`,accept:{"text/plain":[`.kdiagram`]}}],excludeAcceptAllOption:!1};async function Qc(e=window,t=document){if(e.showOpenFilePicker)try{let[t]=await e.showOpenFilePicker({...Zc,multiple:!1});if(!t)return null;let n=await t.getFile();return{name:t.name,source:await n.text(),handle:t}}catch(e){if(rl(e))return null;throw e}return tl(t)}async function $c(e,t,n,r=!1,i=window,a=document){let o=r?void 0:n;if(!o&&i.showSaveFilePicker)try{o=await i.showSaveFilePicker({...Zc,suggestedName:el(t)})}catch(e){if(rl(e))return null;throw e}let s=e.endsWith(`
3410
+ `)?e:`${e}\n`;if(o){let e=await o.createWritable();return await e.write(s),await e.close(),{name:o.name,handle:o,downloaded:!1}}return nl(s,el(t),a),{name:el(t),downloaded:!0}}function el(e){let t=e.trim()||`diagram`;return t.toLowerCase().endsWith(`.kdiagram`)?t:`${t}.kdiagram`}function tl(e){return new Promise(t=>{let n=e.createElement(`input`);n.type=`file`,n.accept=`.kdiagram,text/plain`,n.hidden=!0,n.addEventListener(`change`,()=>{let e=n.files?.[0];if(n.remove(),!e){t(null);return}e.text().then(n=>t({name:e.name,source:n}))},{once:!0}),n.addEventListener(`cancel`,()=>{n.remove(),t(null)},{once:!0}),e.body.append(n),n.click()})}function nl(e,t,n){let r=URL.createObjectURL(new Blob([e],{type:`text/plain;charset=utf-8`})),i=n.createElement(`a`);i.href=r,i.download=t,i.click(),URL.revokeObjectURL(r)}function rl(e){return e instanceof DOMException&&e.name===`AbortError`}var il=new Set([`direction`,`density`,`spacingScale`,`nodePlacement`,`groupLayout`,`modelOrder`,`groupGap`,`edgeGaps`]);function al(e){Ko(As,Us(e)),Hs(Vs(e))}function ol(e){let t=Nc(`draft`,null),n=e??t?.source??Hc?.source??Bc,r=xo(n).theme,i=Rs(r,Nc(`themeSeeds`,null)),a=e?`Shared diagram.kdiagram`:t?.name??Hc?.label??`Diagram`,o=e||t?`browser-document`:Hc?.id??`browser-document`,[s,c]=(0,y.useState)(n),[l,u]=(0,y.useState)(n),[d,f]=(0,y.useState)(n),[p,m]=(0,y.useState)(o),[h,g]=(0,y.useState)(a),[_,v]=(0,y.useState)(),[b,ee]=(0,y.useState)(`idle`),[te,ne]=(0,y.useState)(null),[re,ie]=(0,y.useState)(()=>({...Ws,...xo(n)})),[ae,oe]=(0,y.useState)(i),[x,se]=(0,y.useState)(null),[S,ce]=(0,y.useState)(!1),C=(0,y.useRef)(null),w=(0,y.useRef)(void 0),T=(0,y.useRef)(s),le=(0,y.useRef)(re),ue=(0,y.useRef)(ae);T.current=s,le.current=re,ue.current=ae;let de=(0,y.useMemo)(()=>Gs(re),[re]),fe=(0,y.useMemo)(()=>Vc.some(e=>e.id===p)?Vc:[...Vc,{id:p,label:h,source:s}],[h,p,s]),pe=(0,y.useCallback)(e=>{se(e),ce(!0)},[]);(0,y.useEffect)(()=>{al(ue.current)},[]),(0,y.useEffect)(()=>{document.documentElement.dataset.chromeTheme=re.theme,document.documentElement.dataset.theme=re.theme,Pc(`theme`,re.theme),oe(e=>{if(e.mode===re.theme)return e;let t=Fs(e,re.theme);return ue.current=t,t})},[re.theme]),(0,y.useEffect)(()=>{ue.current=ae,Pc(`themeSeeds`,ae),al(ae),C.current?.refreshTheme()},[ae]),(0,y.useEffect)(()=>{Pc(`draft`,{source:s,name:h})},[h,s]);let me=(0,y.useCallback)(e=>{T.current=e,c(e),ie(t=>{let n={...t,...xo(e)};return le.current=n,n}),clearTimeout(w.current),w.current=setTimeout(()=>{u(e)},200)},[]),he=(0,y.useCallback)((e,t)=>{if(sl(e)&&typeof t==`string`){let n=So(T.current,e,t);T.current=n,c(n),u(n),ie(e=>{let t={...e,...xo(n)};return le.current=t,t}),clearTimeout(w.current);return}ie(n=>{let r={...n,[e]:t};return le.current=r,r}),il.has(e)&&requestAnimationFrame(()=>{C.current?.fit()})},[]),ge=(0,y.useCallback)(()=>{let e=Co(T.current);T.current=e,c(e),u(e),ie(t=>{let n={...t,...xo(e)};return le.current=n,n}),clearTimeout(w.current),requestAnimationFrame(()=>{C.current?.fit()})},[]),_e=(0,y.useCallback)(()=>{let e=le.current.theme===`dark`?`light`:`dark`;he(`theme`,e)},[he]),ve=(0,y.useCallback)(e=>{oe(t=>{let n={...t,...e,mode:t.mode};return ue.current=n,n})},[]),ye=(0,y.useCallback)(()=>{oe(e=>{let t=js(e.mode);return ue.current=t,t})},[]),be=s!==d,xe=b!==`saving`,Se=(0,y.useCallback)((e,t)=>{let n=Vc.find(t=>t.id===e);m(e),g(n?.label??e),v(void 0),T.current=t,c(t),u(t),f(t),ie(e=>{let n={...e,...xo(t)};return le.current=n,n}),ee(`idle`),ne(null),clearTimeout(w.current),requestAnimationFrame(()=>{C.current?.fit()})},[]),Ce=(0,y.useCallback)(async(e=!1)=>{ee(`saving`),ne(null);try{let t=Vc.some(e=>e.id===p);if(!e&&!_&&Xc()&&t){let e=await Yc(p,T.current);if(!e.ok)throw Error(e.error)}else{let t=await $c(T.current,h,_,e);if(!t){ee(`idle`);return}v(t.handle),g(t.name),m(`browser-document`)}let n=T.current.endsWith(`
3411
+ `)?T.current:`${T.current}\n`;T.current=n,c(n),u(n),f(n),ee(`saved`),window.setTimeout(()=>ee(e=>e===`saved`?`idle`:e),1600)}catch(e){ee(`error`),ne(e instanceof Error?e.message:`Could not save the diagram file`)}},[h,p,_]),we=(0,y.useCallback)(async()=>{try{let e=await Qc();if(!e)return;v(e.handle),g(e.name),m(`browser-document`),T.current=e.source,c(e.source),u(e.source),f(e.source),ie(t=>{let n={...t,...xo(e.source)};return le.current=n,n}),ee(`idle`),ne(null),clearTimeout(w.current),requestAnimationFrame(()=>C.current?.fit())}catch(e){ee(`error`),ne(e instanceof Error?e.message:`Could not open the diagram file`)}},[]),E=(0,y.useCallback)(()=>{let e=Za(T.current);T.current=e,c(e),u(e),clearTimeout(w.current)},[]),Te=(0,y.useCallback)(async()=>{al(ue.current);let e=Ks(le.current),{KDiagram:t}=await Yt(async()=>{let{KDiagram:e}=await import(`./dist-xSRpPWs-.js`);return{KDiagram:e}},[],import.meta.url),n=await t.renderToSvg(T.current,e);return n.ok&&n.svg?n.svg:null},[]);return{liveRef:C,source:s,previewSource:l,exampleId:p,documents:fe,documentName:h,dirty:be,canSave:xe,saveState:b,saveError:te,options:re,themeSeeds:ae,renderOptions:de,result:x,ready:S,updateSource:me,setOption:he,resetOptions:ge,toggleTheme:_e,patchThemeSeeds:ve,resetThemeSeeds:ye,loadExample:Se,saveExample:Ce,saveAs:()=>Ce(!0),openFile:we,formatSource:E,exportSvg:(0,y.useCallback)(async()=>{let e=await Te();if(!e)return;let t=new Blob([e],{type:`image/svg+xml`}),n=URL.createObjectURL(t),r=document.createElement(`a`);r.href=n,r.download=`${h.replace(/\.kdiagram$/i,``)||`diagram`}.svg`,r.click(),URL.revokeObjectURL(n)},[h,Te]),renderSvg:Te,applyResult:pe,fit:(0,y.useCallback)(()=>{C.current?.fit()},[]),zoomIn:(0,y.useCallback)(()=>{C.current?.zoomIn()},[]),zoomOut:(0,y.useCallback)(()=>{C.current?.zoomOut()},[]),resetView:(0,y.useCallback)(()=>{C.current?.resetView()},[])}}function sl(e){return e===`theme`||e===`direction`||e===`density`||e===`groupLayout`||e===`edgeStyle`||e===`crossings`}function cl(e){let t=ol(),[n,r]=(0,y.useState)(Pr),[i,a]=(0,y.useState)(``),[o,s]=(0,y.useState)(!1),[c,l]=(0,y.useState)({label:`Connecting…`,connected:!1}),u=(0,y.useRef)(n),d=(0,y.useRef)(void 0);u.current=n;let f=(0,y.useCallback)(async t=>{let n=await fetch(Gc(`message?token=${encodeURIComponent(e)}`),{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t)});n.ok||l({label:`Request failed: ${n.status}`,connected:!1})},[e]),p=(0,y.useCallback)(e=>{t.loadExample(e.id,e.source),a(e.source)},[t.loadExample]);(0,y.useEffect)(()=>{let t=new EventSource(Gc(`events?token=${encodeURIComponent(e)}`));return t.onmessage=e=>{let t=JSON.parse(e.data);switch(r(e=>{let n=Fr(e,t);return u.current=n,n}),t.type){case`ready`:{s(t.capabilities.write),l({label:`Connected`,connected:!0});let e=t.documents.find(e=>e.id===t.activeDocumentId);e&&p(e);break}case`document`:p(t);break;case`saved`:{let e=u.current.documents.find(e=>e.id===t.documentId);e&&a(e.source),l({label:`Saved`,connected:!0});break}case`error`:l({label:`${t.code}: ${t.message}`,connected:!1});break;case`render`:case`selection`:case`viewport`:case`presentation`:break}},t.onerror=()=>l({label:`Reconnecting…`,connected:!1}),()=>t.close()},[p,e]);let m=(0,y.useCallback)(e=>{t.updateSource(e),clearTimeout(d.current),d.current=setTimeout(()=>{let t=u.current.documents.find(e=>e.id===u.current.activeDocumentId);if(!t)return;let n=Math.max(t.revision+1,(u.current.render?.revision??0)+1);t.revision=n,t.source=e,f({version:1,type:`source`,documentId:t.id,revision:n,source:e})},120)},[f,t.updateSource]),h=(0,y.useCallback)(e=>void f({version:1,type:`open`,documentId:e}),[f]),g=(0,y.useCallback)(()=>{let e=u.current.documents.find(e=>e.id===u.current.activeDocumentId);!e||!o||f({version:1,type:`save`,documentId:e.id,revision:e.revision,source:t.source})},[f,t.source,o]),_=(0,y.useCallback)(()=>{m(Za(t.source))},[m,t.source]);return{...t,documents:n.documents,activeDocumentId:n.activeDocumentId??``,connection:c,dirty:t.source!==i,canSave:o&&t.source!==i,updateSource:m,loadExample:e=>h(e),saveExample:async()=>g(),formatSource:_}}var ll=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/App.tsx`;function ul(){return Nc(`sidebarOpen`,!1)}function dl(){let e=new URLSearchParams(location.search).get(`token`),t=ec(location.hash);return t.embed?(0,O.jsxDEV)(Js,{source:t.source??Bc},void 0,!1,{fileName:ll,lineNumber:28,columnNumber:28},this):e?(0,O.jsxDEV)(pl,{token:e},void 0,!1,{fileName:ll,lineNumber:29,columnNumber:18},this):(0,O.jsxDEV)(fl,{sharedSource:t.source},void 0,!1,{fileName:ll,lineNumber:29,columnNumber:54},this)}function fl({sharedSource:e}){let t=ol(e);return(0,O.jsxDEV)(ml,{studio:t,documents:t.documents,activeDocumentId:t.exampleId},void 0,!1,{fileName:ll,lineNumber:35,columnNumber:5},this)}function pl({token:e}){let t=cl(e);return(0,O.jsxDEV)(ml,{studio:t,documents:t.documents,activeDocumentId:t.activeDocumentId,connection:t.connection},void 0,!1,{fileName:ll,lineNumber:42,columnNumber:5},this)}function ml({studio:e,documents:t,activeDocumentId:n,connection:r}){let[i,a]=(0,y.useState)(ul),[o,s]=(0,y.useState)(!1),[c,l]=(0,y.useState)(),u=(0,y.useCallback)(e=>{l({range:e,requestId:Date.now()})},[]),d=(0,y.useCallback)(e=>{a(e),Pc(`sidebarOpen`,e)},[]);(0,y.useEffect)(()=>{requestAnimationFrame(()=>e.fit())},[i,e.fit]);let f=(0,y.useCallback)(t=>{let n=e.result?.graph?.nodes.find(e=>e.id===t)?.sourceRange;n&&u(n)},[u,e.result]);return(0,O.jsxDEV)(`div`,{className:`app-shell`,"data-chrome-theme":e.options.theme,children:[(0,O.jsxDEV)(Rc,{product:`Studio`,theme:e.options.theme,connection:r,onToggleTheme:e.toggleTheme,onExport:()=>void e.exportSvg(),onShare:()=>s(!0),onToggleSidebar:()=>d(!i),sidebarOpen:i},void 0,!1,{fileName:ll,lineNumber:92,columnNumber:7},this),(0,O.jsxDEV)(`div`,{className:`workspace-row`,children:[(0,O.jsxDEV)(Ic,{left:(0,O.jsxDEV)(Qt,{source:e.source,onChange:e.updateSource,diagnostics:e.result?.diagnostics,themeMode:e.options.theme,documents:t,activeDocumentId:n,onDocument:n=>{let r=t.find(e=>e.id===n);e.loadExample(n,r?.source??``)},dirty:e.dirty,canSave:e.canSave,saveState:e.saveState,saveError:e.saveError,onSave:()=>void e.saveExample(),onSaveAs:r?void 0:()=>void e.saveAs(),onOpenFile:r?void 0:()=>void e.openFile(),onFormat:e.formatSource,revealRange:c,onRevealRange:u},void 0,!1,{fileName:ll,lineNumber:106,columnNumber:13},this),right:(0,O.jsxDEV)(Zs,{source:e.previewSource,renderOptions:e.renderOptions,liveRef:e.liveRef,result:e.result,onRender:e.applyResult,onNodeNavigate:f},void 0,!1,{fileName:ll,lineNumber:130,columnNumber:13},this)},void 0,!1,{fileName:ll,lineNumber:104,columnNumber:9},this),(0,O.jsxDEV)(jc,{open:i,options:e.options,onChange:e.setOption,onReset:e.resetOptions,themeSeeds:e.themeSeeds,onThemeSeedsChange:e.patchThemeSeeds,onResetThemeSeeds:e.resetThemeSeeds},void 0,!1,{fileName:ll,lineNumber:140,columnNumber:9},this)]},void 0,!0,{fileName:ll,lineNumber:103,columnNumber:7},this),o?(0,O.jsxDEV)(cc,{source:e.source,studioUrl:Jc(document),onRenderSvg:e.renderSvg,onClose:()=>s(!1)},void 0,!1,{fileName:ll,lineNumber:151,columnNumber:9},this):null]},void 0,!0,{fileName:ll,lineNumber:91,columnNumber:5},this)}var hl=`/home/runner/work/diagrams/diagrams/packages/diagrams-studio/browser/src/main.tsx`;Ke(Kc(document));var gl=document.getElementById(`app`);if(!gl)throw Error(`#app missing`);(0,b.createRoot)(gl).render((0,O.jsxDEV)(y.StrictMode,{children:(0,O.jsxDEV)(dl,{},void 0,!1,{fileName:hl,lineNumber:16,columnNumber:5},void 0)},void 0,!1,{fileName:hl,lineNumber:15,columnNumber:3},void 0));export{ae as $,zi as A,qr as B,Xi as C,Hi as D,Ui as E,yi as F,nt as G,zr as H,fi as I,Ze as J,$e as K,ci as L,Ei as M,wi as N,Li as O,Si as P,ne as Q,si as R,Yi as S,Bi as T,Yt as U,Jr as V,Vt as W,Ie as X,Ke as Y,Pe as Z,vo as _,is as a,u as at,$i as b,Zo as c,Yo as d,re as et,Go as f,yo as g,qo as h,fs as i,s as it,Fi as j,Ri as k,es as l,Ko as m,ds as n,f as nt,Qo as o,l as ot,Jo as p,Qe as q,ls as r,o as rt,$o as s,us as t,ie as tt,Xo as u,Za as v,Zi as w,Qi as x,Ja as y,oi as z};