@azlib/scheduler 1.1.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -0
- package/dist/{cli-config-Cz8QP_4I.cjs → cli-config-DLwU62NO.cjs} +222 -102
- package/dist/{cli-config-7F2U8qPM.mjs → cli-config-DrI08d47.mjs} +188 -104
- package/dist/cli-config-DrI08d47.mjs.map +1 -0
- package/dist/dashboard/cli.cjs +1 -1
- package/dist/dashboard/cli.d.cts +1 -1
- package/dist/dashboard/cli.d.mts +1 -1
- package/dist/dashboard/cli.mjs +1 -1
- package/dist/dashboard/public/assets/index-DczjtqRn.js +12 -0
- package/dist/dashboard/public/index.html +2 -2
- package/dist/dashboard.cjs +7 -1
- package/dist/dashboard.d.cts +13 -2
- package/dist/dashboard.d.cts.map +1 -1
- package/dist/dashboard.d.mts +13 -2
- package/dist/dashboard.d.mts.map +1 -1
- package/dist/dashboard.mjs +2 -2
- package/dist/http-server-Cme4XKyH.d.mts +34 -0
- package/dist/http-server-Cme4XKyH.d.mts.map +1 -0
- package/dist/http-server-u1BnbkAK.d.cts +34 -0
- package/dist/http-server-u1BnbkAK.d.cts.map +1 -0
- package/package.json +5 -5
- package/dist/cli-config-7F2U8qPM.mjs.map +0 -1
- package/dist/dashboard/public/assets/index-eWhp41cY.js +0 -12
- package/dist/http-server-DN6Lg464.d.cts +0 -19
- package/dist/http-server-DN6Lg464.d.cts.map +0 -1
- package/dist/http-server-DPQ9HIK-.d.mts +0 -19
- package/dist/http-server-DPQ9HIK-.d.mts.map +0 -1
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
var e=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports);(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 t=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.consumer`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.for(`react.activity`),p=Symbol.iterator;function m(e){return typeof e!=`object`||!e?null:(e=p&&e[p]||e[`@@iterator`],typeof e==`function`?e:null)}var h={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},g=Object.assign,_={};function v(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}v.prototype.isReactComponent={},v.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},v.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function y(){}y.prototype=v.prototype;function b(e,t,n){this.props=e,this.context=t,this.refs=_,this.updater=n||h}var x=b.prototype=new y;x.constructor=b,g(x,v.prototype),x.isPureReactComponent=!0;var S=Array.isArray;function C(){}var w={H:null,A:null,T:null,S:null},T=Object.prototype.hasOwnProperty;function ee(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function te(e,t){return ee(e.type,t,e.props)}function E(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ne(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var re=/\/+/g;function ie(e,t){return typeof e==`object`&&e&&e.key!=null?ne(``+e.key):t.toString(36)}function ae(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 oe(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`bigint`:case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0;break;case d:return c=e._init,oe(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+ie(e,0):a,S(o)?(i=``,c!=null&&(i=c.replace(re,`$&/`)+`/`),oe(o,r,i,``,function(e){return e})):o!=null&&(E(o)&&(o=te(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(re,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(S(e))for(var u=0;u<e.length;u++)a=e[u],s=l+ie(a,u),c+=oe(a,r,i,s,o);else if(u=m(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+ie(a,u++),c+=oe(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return oe(ae(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function se(e,t,n){if(e==null)return e;var r=[],i=0;return oe(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function D(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var O=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)},k={map:se,forEach:function(e,t,n){se(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return se(e,function(){t++}),t},toArray:function(e){return se(e,function(e){return e})||[]},only:function(e){if(!E(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=k,e.Component=v,e.Fragment=r,e.Profiler=a,e.PureComponent=b,e.StrictMode=i,e.Suspense=l,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=w,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return w.H.useMemoCache(e)}},e.cache=function(e){return function(){return e.apply(null,arguments)}},e.cacheSignal=function(){return null},e.cloneElement=function(e,t,n){if(e==null)throw Error(`The argument must be a React element, but you passed `+e+`.`);var r=g({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!T.call(t,a)||a===`key`||a===`__self`||a===`__source`||a===`ref`&&t.ref===void 0||(r[a]=t[a]);var a=arguments.length-2;if(a===1)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return ee(e.type,i,r)},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:o,_context:e},e},e.createElement=function(e,t,n){var r,i={},a=null;if(t!=null)for(r in t.key!==void 0&&(a=``+t.key),t)T.call(t,r)&&r!==`key`&&r!==`__self`&&r!==`__source`&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1<o){for(var s=Array(o),c=0;c<o;c++)s[c]=arguments[c+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps,o)i[r]===void 0&&(i[r]=o[r]);return ee(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=E,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:D}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=w.T,n={};w.T=n;try{var r=e(),i=w.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(C,O)}catch(e){O(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),w.T=t}},e.unstable_useCacheRefresh=function(){return w.H.useCacheRefresh()},e.use=function(e){return w.H.use(e)},e.useActionState=function(e,t,n){return w.H.useActionState(e,t,n)},e.useCallback=function(e,t){return w.H.useCallback(e,t)},e.useContext=function(e){return w.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return w.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return w.H.useEffect(e,t)},e.useEffectEvent=function(e){return w.H.useEffectEvent(e)},e.useId=function(){return w.H.useId()},e.useImperativeHandle=function(e,t,n){return w.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return w.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return w.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return w.H.useMemo(e,t)},e.useOptimistic=function(e,t){return w.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return w.H.useReducer(e,t,n)},e.useRef=function(e){return w.H.useRef(e)},e.useState=function(e){return w.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return w.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return w.H.useTransition()},e.version=`19.2.8`})),n=e(((e,n)=>{n.exports=t()})),r=e((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m)if(n(c)!==null)m=!0,S||(S=!0,E());else{var t=n(l);t!==null&&ie(x,t.startTime-e)}}var S=!1,C=-1,w=5,T=-1;function ee(){return g?!0:!(e.unstable_now()-T<w)}function te(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&ie(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?E():S=!1}}}var E;if(typeof y==`function`)E=function(){y(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,E=function(){re.postMessage(null)}}else E=function(){_(te,0)};function ie(t,n){C=_(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):w=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_requestPaint=function(){g=!0},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(v(C),C=-1):h=!0,ie(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,E()))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),i=e(((e,t)=>{t.exports=r()})),a=e((e=>{var t=n();function r(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function i(){}var a={d:{f:i,r:function(){throw Error(r(522))},D:i,C:i,L:i,m:i,X:i,S:i,M:i},p:0,findDOMNode:null},o=Symbol.for(`react.portal`);function s(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:o,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}var c=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function l(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=a,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(r(299));return s(e,t,null,n)},e.flushSync=function(e){var t=c.T,n=a.p;try{if(c.T=null,a.p=2,e)return e()}finally{c.T=t,a.p=n,a.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,a.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&a.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin),i=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?a.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:o}):n===`script`&&a.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`)if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=l(t.as,t.crossOrigin);a.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0})}}else t??a.d.M(e)},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=l(n,t.crossOrigin);a.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`)if(t){var n=l(t.as,t.crossOrigin);a.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})}else a.d.m(e)},e.requestFormReset=function(e){a.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return c.H.useFormState(e,t,n)},e.useFormStatus=function(){return c.H.useHostTransitionStatus()},e.version=`19.2.8`})),o=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=a()})),s=e((e=>{var t=i(),r=n(),a=o();function s(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function c(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function l(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 u(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 d(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 f(e){if(l(e)!==e)throw Error(s(188))}function p(e){var t=e.alternate;if(!t){if(t=l(e),t===null)throw Error(s(188));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 f(i),e;if(a===r)return f(i),t;a=a.sibling}throw Error(s(188))}if(n.return!==r.return)n=i,r=a;else{for(var o=!1,c=i.child;c;){if(c===n){o=!0,n=i,r=a;break}if(c===r){o=!0,r=i,n=a;break}c=c.sibling}if(!o){for(c=a.child;c;){if(c===n){o=!0,n=a,r=i;break}if(c===r){o=!0,r=a,n=i;break}c=c.sibling}if(!o)throw Error(s(189))}}if(n.alternate!==r)throw Error(s(190))}if(n.tag!==3)throw Error(s(188));return n.stateNode.current===n?e:t}function m(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=m(e),t!==null)return t;e=e.sibling}return null}var h=Object.assign,g=Symbol.for(`react.element`),_=Symbol.for(`react.transitional.element`),v=Symbol.for(`react.portal`),y=Symbol.for(`react.fragment`),b=Symbol.for(`react.strict_mode`),x=Symbol.for(`react.profiler`),S=Symbol.for(`react.consumer`),C=Symbol.for(`react.context`),w=Symbol.for(`react.forward_ref`),T=Symbol.for(`react.suspense`),ee=Symbol.for(`react.suspense_list`),te=Symbol.for(`react.memo`),E=Symbol.for(`react.lazy`),ne=Symbol.for(`react.activity`),re=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.iterator;function ae(e){return typeof e!=`object`||!e?null:(e=ie&&e[ie]||e[`@@iterator`],typeof e==`function`?e:null)}var oe=Symbol.for(`react.client.reference`);function se(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 y:return`Fragment`;case x:return`Profiler`;case b:return`StrictMode`;case T:return`Suspense`;case ee:return`SuspenseList`;case ne:return`Activity`}if(typeof e==`object`)switch(e.$$typeof){case v:return`Portal`;case C:return e.displayName||`Context`;case S:return(e._context.displayName||`Context`)+`.Consumer`;case w:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case te:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case E:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var D=Array.isArray,O=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,k=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},A=[],le=-1;function j(e){return{current:e}}function M(e){0>le||(e.current=A[le],A[le]=null,le--)}function N(e,t){le++,A[le]=e.current,e.current=t}var ue=j(null),de=j(null),P=j(null),fe=j(null);function pe(e,t){switch(N(P,t),N(de,e),N(ue,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?Vd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=Vd(t),e=Hd(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}M(ue),N(ue,e)}function me(){M(ue),M(de),M(P)}function he(e){e.memoizedState!==null&&N(fe,e);var t=ue.current,n=Hd(t,e.type);t!==n&&(N(de,e),N(ue,n))}function F(e){de.current===e&&(M(ue),M(de)),fe.current===e&&(M(fe),Qf._currentValue=ce)}var ge,_e;function ve(e){if(ge===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);ge=t&&t[1]||``,_e=-1<e.stack.indexOf(`
|
|
2
|
-
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
-
`+ge+e+_e}var ye=!1;function be(e,t){if(!e||ye)return``;ye=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(n,[])}catch(e){var r=e}Reflect.construct(e,[],n)}else{try{n.call()}catch(e){r=e}e.call(n.prototype)}}else{try{throw Error()}catch(e){r=e}(n=e())&&typeof n.catch==`function`&&n.catch(function(){})}}catch(e){if(e&&r&&typeof e.stack==`string`)return[e.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName=`DetermineComponentFrameRoot`;var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,`name`);i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:`DetermineComponentFrameRoot`});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var c=o.split(`
|
|
4
|
-
`),l=s.split(`
|
|
5
|
-
`);for(i=r=0;r<c.length&&!c[r].includes(`DetermineComponentFrameRoot`);)r++;for(;i<l.length&&!l[i].includes(`DetermineComponentFrameRoot`);)i++;if(r===c.length||i===l.length)for(r=c.length-1,i=l.length-1;1<=r&&0<=i&&c[r]!==l[i];)i--;for(;1<=r&&0<=i;r--,i--)if(c[r]!==l[i]){if(r!==1||i!==1)do if(r--,i--,0>i||c[r]!==l[i]){var u=`
|
|
6
|
-
`+c[r].replace(` at new `,` at `);return e.displayName&&u.includes(`<anonymous>`)&&(u=u.replace(`<anonymous>`,e.displayName)),u}while(1<=r&&0<=i);break}}}finally{ye=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?ve(n):``}function I(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 be(e.type,!1);case 11:return be(e.type.render,!1);case 1:return be(e.type,!0);case 31:return ve(`Activity`);default:return``}}function xe(e){try{var t=``,n=null;do t+=I(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
-
Error generating stack: `+e.message+`
|
|
8
|
-
`+e.stack}}var Se=Object.prototype.hasOwnProperty,Ce=t.unstable_scheduleCallback,we=t.unstable_cancelCallback,Te=t.unstable_shouldYield,Ee=t.unstable_requestPaint,De=t.unstable_now,Oe=t.unstable_getCurrentPriorityLevel,ke=t.unstable_ImmediatePriority,Ae=t.unstable_UserBlockingPriority,je=t.unstable_NormalPriority,Me=t.unstable_LowPriority,Ne=t.unstable_IdlePriority,Pe=t.log,Fe=t.unstable_setDisableYieldValue,Ie=null,Le=null;function Re(e){if(typeof Pe==`function`&&Fe(e),Le&&typeof Le.setStrictMode==`function`)try{Le.setStrictMode(Ie,e)}catch{}}var ze=Math.clz32?Math.clz32:He,Be=Math.log,Ve=Math.LN2;function He(e){return e>>>=0,e===0?32:31-(Be(e)/Ve|0)|0}var Ue=256,We=262144,Ge=4194304;function Ke(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function qe(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=Ke(n))):i=Ke(o):i=Ke(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=Ke(n))):i=Ke(o)):i=Ke(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 Je(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function Ye(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Xe(){var e=Ge;return Ge<<=1,!(Ge&62914560)&&(Ge=4194304),e}function Ze(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Qe(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function $e(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-ze(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&&et(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function et(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ze(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function tt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ze(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function nt(e,t){var n=t&-t;return n=n&42?1:rt(n),(n&(e.suspendedLanes|t))===0?n:0}function rt(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 it(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function at(){var e=k.p;return e===0?(e=window.event,e===void 0?32:mp(e.type)):e}function ot(e,t){var n=k.p;try{return k.p=e,t()}finally{k.p=n}}var st=Math.random().toString(36).slice(2),ct=`__reactFiber$`+st,lt=`__reactProps$`+st,L=`__reactContainer$`+st,ut=`__reactEvents$`+st,dt=`__reactListeners$`+st,ft=`__reactHandles$`+st,pt=`__reactResources$`+st,mt=`__reactMarker$`+st;function ht(e){delete e[ct],delete e[lt],delete e[ut],delete e[dt],delete e[ft]}function gt(e){var t=e[ct];if(t)return t;for(var n=e.parentNode;n;){if(t=n[L]||n[ct]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=df(e);e!==null;){if(n=e[ct])return n;e=df(e)}return t}e=n,n=e.parentNode}return null}function _t(e){if(e=e[ct]||e[L]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function vt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(s(33))}function yt(e){var t=e[pt];return t||=e[pt]={hoistableStyles:new Map,hoistableScripts:new Map},t}function bt(e){e[mt]=!0}var xt=new Set,St={};function R(e,t){Ct(e,t),Ct(e+`Capture`,t)}function Ct(e,t){for(St[e]=t,e=0;e<t.length;e++)xt.add(t[e])}var wt=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]*$`),Tt={},Et={};function Dt(e){return Se.call(Et,e)?!0:Se.call(Tt,e)?!1:wt.test(e)?Et[e]=!0:(Tt[e]=!0,!1)}function Ot(e,t,n){if(Dt(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:e.removeAttribute(t);return;case`boolean`:var r=t.toLowerCase().slice(0,5);if(r!==`data-`&&r!==`aria-`){e.removeAttribute(t);return}}e.setAttribute(t,``+n)}}function kt(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(t);return}e.setAttribute(t,``+n)}}function At(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case`undefined`:case`function`:case`symbol`:case`boolean`:e.removeAttribute(n);return}e.setAttributeNS(t,n,``+r)}}function jt(e){switch(typeof e){case`bigint`:case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function Mt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Nt(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&r!==void 0&&typeof r.get==`function`&&typeof r.set==`function`){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Pt(e){if(!e._valueTracker){var t=Mt(e)?`checked`:`value`;e._valueTracker=Nt(e,t,``+e[t])}}function Ft(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Mt(e)?e.checked?`true`:`false`:e.value),e=r,e===n?!1:(t.setValue(e),!0)}function z(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}var It=/[\n"\\]/g;function Lt(e){return e.replace(It,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function Rt(e,t,n,r,i,a,o,s){e.name=``,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`?e.type=o:e.removeAttribute(`type`),t==null?o!==`submit`&&o!==`reset`||e.removeAttribute(`value`):o===`number`?(t===0&&e.value===``||e.value!=t)&&(e.value=``+jt(t)):e.value!==``+jt(t)&&(e.value=``+jt(t)),t==null?n==null?r!=null&&e.removeAttribute(`value`):Bt(e,o,jt(n)):Bt(e,o,jt(t)),i==null&&a!=null&&(e.defaultChecked=!!a),i!=null&&(e.checked=i&&typeof i!=`function`&&typeof i!=`symbol`),s!=null&&typeof s!=`function`&&typeof s!=`symbol`&&typeof s!=`boolean`?e.name=``+jt(s):e.removeAttribute(`name`)}function zt(e,t,n,r,i,a,o,s){if(a!=null&&typeof a!=`function`&&typeof a!=`symbol`&&typeof a!=`boolean`&&(e.type=a),t!=null||n!=null){if(!(a!==`submit`&&a!==`reset`||t!=null)){Pt(e);return}n=n==null?``:``+jt(n),t=t==null?n:``+jt(t),s||t===e.value||(e.value=t),e.defaultValue=t}r??=i,r=typeof r!=`function`&&typeof r!=`symbol`&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,o!=null&&typeof o!=`function`&&typeof o!=`symbol`&&typeof o!=`boolean`&&(e.name=o),Pt(e)}function Bt(e,t,n){t===`number`&&z(e.ownerDocument)===e||e.defaultValue===``+n||(e.defaultValue=``+n)}function Vt(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=``+jt(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 Ht(e,t,n){if(t!=null&&(t=``+jt(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n==null?``:``+jt(n)}function Ut(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(s(92));if(D(r)){if(1<r.length)throw Error(s(93));r=r[0]}n=r}n??=``,t=n}n=jt(t),e.defaultValue=n,r=e.textContent,r===n&&r!==``&&r!==null&&(e.value=r),Pt(e)}function Wt(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Gt=new Set(`animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp`.split(` `));function Kt(e,t,n){var r=t.indexOf(`--`)===0;n==null||typeof n==`boolean`||n===``?r?e.setProperty(t,``):t===`float`?e.cssFloat=``:e[t]=``:r?e.setProperty(t,n):typeof n!=`number`||n===0||Gt.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function qt(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(s(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``);for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&Kt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&Kt(e,a,t[a])}function Jt(e){if(e.indexOf(`-`)===-1)return!1;switch(e){case`annotation-xml`:case`color-profile`:case`font-face`:case`font-face-src`:case`font-face-uri`:case`font-face-format`:case`font-face-name`:case`missing-glyph`:return!1;default:return!0}}var Yt=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`]]),Xt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function Zt(e){return Xt.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function Qt(){}var $t=null;function en(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var B=null,V=null;function tn(e){var t=_t(e);if(t&&(e=t.stateNode)){var n=e[lt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(Rt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name="`+Lt(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[lt]||null;if(!i)throw Error(s(90));Rt(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&&Ft(r)}break a;case`textarea`:Ht(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&Vt(e,!!n.multiple,t,!1)}}}var nn=!1;function rn(e,t,n){if(nn)return e(t,n);nn=!0;try{return e(t)}finally{if(nn=!1,(B!==null||V!==null)&&(bu(),B&&(t=B,e=V,V=B=null,tn(t),e)))for(t=0;t<e.length;t++)tn(e[t])}}function an(e,t){var n=e.stateNode;if(n===null)return null;var r=n[lt]||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(s(231,t,typeof n));return n}var on=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),sn=!1;if(on)try{var cn={};Object.defineProperty(cn,"passive",{get:function(){sn=!0}}),window.addEventListener(`test`,cn,cn),window.removeEventListener(`test`,cn,cn)}catch{sn=!1}var ln=null,un=null,dn=null;function fn(){if(dn)return dn;var e,t=un,n=t.length,r,i=`value`in ln?ln.value:ln.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 dn=i.slice(e,1<r?1-r:void 0)}function pn(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 mn(){return!0}function hn(){return!1}function gn(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)?mn:hn,this.isPropagationStopped=hn,this}return h(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=mn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=mn)},persist:function(){},isPersistent:mn}),t}var _n={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},vn=gn(_n),yn=h({},_n,{view:0,detail:0}),bn=gn(yn),xn,Sn,Cn,wn=h({},yn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Fn,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!==Cn&&(Cn&&e.type===`mousemove`?(xn=e.screenX-Cn.screenX,Sn=e.screenY-Cn.screenY):Sn=xn=0,Cn=e),xn)},movementY:function(e){return`movementY`in e?e.movementY:Sn}}),Tn=gn(wn),En=gn(h({},wn,{dataTransfer:0})),Dn=gn(h({},yn,{relatedTarget:0})),On=gn(h({},_n,{animationName:0,elapsedTime:0,pseudoElement:0})),kn=gn(h({},_n,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),An=gn(h({},_n,{data:0})),jn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Mn={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`},Nn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Pn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Nn[e])?!!t[e]:!1}function Fn(){return Pn}var In=gn(h({},yn,{key:function(e){if(e.key){var t=jn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=pn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Mn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Fn,charCode:function(e){return e.type===`keypress`?pn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?pn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Ln=gn(h({},wn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),Rn=gn(h({},yn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Fn})),zn=gn(h({},_n,{propertyName:0,elapsedTime:0,pseudoElement:0})),Bn=gn(h({},wn,{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})),Vn=gn(h({},_n,{newState:0,oldState:0})),Hn=[9,13,27,32],Un=on&&`CompositionEvent`in window,Wn=null;on&&`documentMode`in document&&(Wn=document.documentMode);var Gn=on&&`TextEvent`in window&&!Wn,Kn=on&&(!Un||Wn&&8<Wn&&11>=Wn),qn=` `,Jn=!1;function Yn(e,t){switch(e){case`keyup`:return Hn.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function Xn(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var Zn=!1;function Qn(e,t){switch(e){case`compositionend`:return Xn(t);case`keypress`:return t.which===32?(Jn=!0,qn):null;case`textInput`:return e=t.data,e===qn&&Jn?null:e;default:return null}}function $n(e,t){if(Zn)return e===`compositionend`||!Un&&Yn(e,t)?(e=fn(),dn=un=ln=null,Zn=!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 Kn&&t.locale!==`ko`?null:t.data;default:return null}}var er={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function tr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!er[e.type]:t===`textarea`}function nr(e,t,n,r){B?V?V.push(r):V=[r]:B=r,t=Ed(t,`onChange`),0<t.length&&(n=new vn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var rr=null,ir=null;function ar(e){yd(e,0)}function or(e){if(Ft(vt(e)))return e}function sr(e,t){if(e===`change`)return t}var cr=!1;if(on){var lr;if(on){var H=`oninput`in document;if(!H){var ur=document.createElement(`div`);ur.setAttribute(`oninput`,`return;`),H=typeof ur.oninput==`function`}lr=H}else lr=!1;cr=lr&&(!document.documentMode||9<document.documentMode)}function dr(){rr&&(rr.detachEvent(`onpropertychange`,fr),ir=rr=null)}function fr(e){if(e.propertyName===`value`&&or(ir)){var t=[];nr(t,ir,e,en(e)),rn(ar,t)}}function pr(e,t,n){e===`focusin`?(dr(),rr=t,ir=n,rr.attachEvent(`onpropertychange`,fr)):e===`focusout`&&dr()}function mr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return or(ir)}function hr(e,t){if(e===`click`)return or(t)}function gr(e,t){if(e===`input`||e===`change`)return or(t)}function _r(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var vr=typeof Object.is==`function`?Object.is:_r;function yr(e,t){if(vr(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(!Se.call(t,i)||!vr(e[i],t[i]))return!1}return!0}function br(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function xr(e,t){var n=br(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=br(n)}}function Sr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Cr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=z(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=z(e.document)}return t}function wr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}var Tr=on&&`documentMode`in document&&11>=document.documentMode,Er=null,Dr=null,Or=null,kr=!1;function Ar(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;kr||Er==null||Er!==z(r)||(r=Er,`selectionStart`in r&&wr(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}),Or&&yr(Or,r)||(Or=r,r=Ed(Dr,`onSelect`),0<r.length&&(t=new vn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Er)))}function jr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var Mr={animationend:jr(`Animation`,`AnimationEnd`),animationiteration:jr(`Animation`,`AnimationIteration`),animationstart:jr(`Animation`,`AnimationStart`),transitionrun:jr(`Transition`,`TransitionRun`),transitionstart:jr(`Transition`,`TransitionStart`),transitioncancel:jr(`Transition`,`TransitionCancel`),transitionend:jr(`Transition`,`TransitionEnd`)},Nr={},Pr={};on&&(Pr=document.createElement(`div`).style,`AnimationEvent`in window||(delete Mr.animationend.animation,delete Mr.animationiteration.animation,delete Mr.animationstart.animation),`TransitionEvent`in window||delete Mr.transitionend.transition);function Fr(e){if(Nr[e])return Nr[e];if(!Mr[e])return e;var t=Mr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Pr)return Nr[e]=t[n];return e}var Ir=Fr(`animationend`),Lr=Fr(`animationiteration`),Rr=Fr(`animationstart`),zr=Fr(`transitionrun`),Br=Fr(`transitionstart`),Vr=Fr(`transitioncancel`),Hr=Fr(`transitionend`),Ur=new Map,Wr=`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(` `);Wr.push(`scrollEnd`);function Gr(e,t){Ur.set(e,t),R(t,[e])}var Kr=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)},qr=[],Jr=0,Yr=0;function Xr(){for(var e=Jr,t=Yr=Jr=0;t<e;){var n=qr[t];qr[t++]=null;var r=qr[t];qr[t++]=null;var i=qr[t];qr[t++]=null;var a=qr[t];if(qr[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&&ei(n,i,a)}}function Zr(e,t,n,r){qr[Jr++]=e,qr[Jr++]=t,qr[Jr++]=n,qr[Jr++]=r,Yr|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Qr(e,t,n,r){return Zr(e,t,n,r),ti(e)}function $r(e,t){return Zr(e,null,null,t),ti(e)}function ei(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var i=!1,a=e.return;a!==null;)a.childLanes|=n,r=a.alternate,r!==null&&(r.childLanes|=n),a.tag===22&&(e=a.stateNode,e===null||e._visibility&1||(i=!0)),e=a,a=a.return;return e.tag===3?(a=e.stateNode,i&&t!==null&&(i=31-ze(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function ti(e){if(50<du)throw du=0,fu=null,Error(s(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var ni={};function ri(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ii(e,t,n,r){return new ri(e,t,n,r)}function ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function oi(e,t){var n=e.alternate;return n===null?(n=ii(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function si(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function ci(e,t,n,r,i,a){var o=0;if(r=e,typeof e==`function`)ai(e)&&(o=1);else if(typeof e==`string`)o=Uf(e,n,ue.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(e){case ne:return e=ii(31,n,t,i),e.elementType=ne,e.lanes=a,e;case y:return li(n.children,i,a,t);case b:o=8,i|=24;break;case x:return e=ii(12,n,t,i|2),e.elementType=x,e.lanes=a,e;case T:return e=ii(13,n,t,i),e.elementType=T,e.lanes=a,e;case ee:return e=ii(19,n,t,i),e.elementType=ee,e.lanes=a,e;default:if(typeof e==`object`&&e)switch(e.$$typeof){case C:o=10;break a;case S:o=9;break a;case w:o=11;break a;case te:o=14;break a;case E:o=16,r=null;break a}o=29,n=Error(s(130,e===null?`null`:typeof e,``)),r=null}return t=ii(o,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function li(e,t,n,r){return e=ii(7,e,r,t),e.lanes=n,e}function ui(e,t,n){return e=ii(6,e,null,t),e.lanes=n,e}function di(e){var t=ii(18,null,null,0);return t.stateNode=e,t}function fi(e,t,n){return t=ii(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var pi=new WeakMap;function mi(e,t){if(typeof e==`object`&&e){var n=pi.get(e);return n===void 0?(t={value:e,source:t,stack:xe(t)},pi.set(e,t),t):n}return{value:e,source:t,stack:xe(t)}}var hi=[],gi=0,_i=null,vi=0,yi=[],bi=0,xi=null,Si=1,Ci=``;function wi(e,t){hi[gi++]=vi,hi[gi++]=_i,_i=e,vi=t}function Ti(e,t,n){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,xi=e;var r=Si;e=Ci;var i=32-ze(r)-1;r&=~(1<<i),n+=1;var a=32-ze(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Si=1<<32-ze(t)+i|n<<i|r,Ci=a+e}else Si=1<<a|n<<i|r,Ci=e}function Ei(e){e.return!==null&&(wi(e,1),Ti(e,1,0))}function Di(e){for(;e===_i;)_i=hi[--gi],hi[gi]=null,vi=hi[--gi],hi[gi]=null;for(;e===xi;)xi=yi[--bi],yi[bi]=null,Ci=yi[--bi],yi[bi]=null,Si=yi[--bi],yi[bi]=null}function Oi(e,t){yi[bi++]=Si,yi[bi++]=Ci,yi[bi++]=xi,Si=t.id,Ci=t.overflow,xi=e}var ki=null,Ai=null,U=!1,ji=null,Mi=!1,Ni=Error(s(519));function Pi(e){throw Bi(mi(Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),Ni}function Fi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[ct]=e,t[lt]=r,n){case`dialog`:Q(`cancel`,t),Q(`close`,t);break;case`iframe`:case`object`:case`embed`:Q(`load`,t);break;case`video`:case`audio`:for(n=0;n<_d.length;n++)Q(_d[n],t);break;case`source`:Q(`error`,t);break;case`img`:case`image`:case`link`:Q(`error`,t),Q(`load`,t);break;case`details`:Q(`toggle`,t);break;case`input`:Q(`invalid`,t),zt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Q(`invalid`,t);break;case`textarea`:Q(`invalid`,t),Ut(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||Md(t.textContent,n)?(r.popover!=null&&(Q(`beforetoggle`,t),Q(`toggle`,t)),r.onScroll!=null&&Q(`scroll`,t),r.onScrollEnd!=null&&Q(`scrollend`,t),r.onClick!=null&&(t.onclick=Qt),t=!0):t=!1,t||Pi(e,!0)}function Ii(e){for(ki=e.return;ki;)switch(ki.tag){case 5:case 31:case 13:Mi=!1;return;case 27:case 3:Mi=!0;return;default:ki=ki.return}}function Li(e){if(e!==ki)return!1;if(!U)return Ii(e),U=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!==`form`&&n!==`button`)||Ud(e.type,e.memoizedProps)),n=!n),n&&Ai&&Pi(e),Ii(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));Ai=uf(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(317));Ai=uf(e)}else t===27?(t=Ai,Zd(e.type)?(e=lf,lf=null,Ai=e):Ai=t):Ai=ki?cf(e.stateNode.nextSibling):null;return!0}function Ri(){Ai=ki=null,U=!1}function zi(){var e=ji;return e!==null&&(Zl===null?Zl=e:Zl.push.apply(Zl,e),ji=null),e}function Bi(e){ji===null?ji=[e]:ji.push(e)}var Vi=j(null),Hi=null,Ui=null;function Wi(e,t,n){N(Vi,t._currentValue),t._currentValue=n}function Gi(e){e._currentValue=Vi.current,M(Vi)}function Ki(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function qi(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 c=a;a=i;for(var l=0;l<t.length;l++)if(c.context===t[l]){a.lanes|=n,c=a.alternate,c!==null&&(c.lanes|=n),Ki(a.return,n,e),r||(o=null);break a}a=c.next}}else if(i.tag===18){if(o=i.return,o===null)throw Error(s(341));o.lanes|=n,a=o.alternate,a!==null&&(a.lanes|=n),Ki(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 Ji(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(s(387));if(o=o.memoizedProps,o!==null){var c=i.type;vr(i.pendingProps.value,o.value)||(e===null?e=[c]:e.push(c))}}else if(i===fe.current){if(o=i.alternate,o===null)throw Error(s(387));o.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(e===null?e=[Qf]:e.push(Qf))}i=i.return}e!==null&&qi(t,e,n,r),t.flags|=262144}function Yi(e){for(e=e.firstContext;e!==null;){if(!vr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Xi(e){Hi=e,Ui=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Zi(e){return $i(Hi,e)}function Qi(e,t){return Hi===null&&Xi(e),$i(e,t)}function $i(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ui===null){if(e===null)throw Error(s(308));Ui=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ui=Ui.next=t;return n}var ea=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()})}},ta=t.unstable_scheduleCallback,na=t.unstable_NormalPriority,ra={$$typeof:C,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ia(){return{controller:new ea,data:new Map,refCount:0}}function aa(e){e.refCount--,e.refCount===0&&ta(na,function(){e.controller.abort()})}var oa=null,sa=0,ca=0,la=null;function ua(e,t){if(oa===null){var n=oa=[];sa=0,ca=dd(),la={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return sa++,t.then(da,da),t}function da(){if(--sa===0&&oa!==null){la!==null&&(la.status=`fulfilled`);var e=oa;oa=null,ca=0,la=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function fa(e,t){var n=[],r={status:`pending`,value:null,reason:null,then:function(e){n.push(e)}};return e.then(function(){r.status=`fulfilled`,r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)},function(e){for(r.status=`rejected`,r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)}),r}var pa=O.S;O.S=function(e,t){eu=De(),typeof t==`object`&&t&&typeof t.then==`function`&&ua(e,t),pa!==null&&pa(e,t)};var ma=j(null);function ha(){var e=ma.current;return e===null?q.pooledCache:e}function ga(e,t){t===null?N(ma,ma.current):N(ma,t.pool)}function _a(){var e=ha();return e===null?null:{parent:ra._currentValue,pool:e}}var va=Error(s(460)),ya=Error(s(474)),ba=Error(s(542)),xa={then:function(){}};function Sa(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Ca(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Qt,Qt),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e;default:if(typeof t.status==`string`)t.then(Qt,Qt);else{if(e=q,e!==null&&100<e.shellSuspendCounter)throw Error(s(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,Da(e),e}throw Ta=t,va}}function wa(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(Ta=e,va):e}}var Ta=null;function Ea(){if(Ta===null)throw Error(s(459));var e=Ta;return Ta=null,e}function Da(e){if(e===va||e===ba)throw Error(s(483))}var Oa=null,ka=0;function Aa(e){var t=ka;return ka+=1,Oa===null&&(Oa=[]),Ca(Oa,e,t)}function ja(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function Ma(e,t){throw t.$$typeof===g?Error(s(525)):(e=Object.prototype.toString.call(t),Error(s(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function Na(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=oi(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 c(e,t,n,r){return t===null||t.tag!==6?(t=ui(n,e.mode,r),t.return=e,t):(t=i(t,n),t.return=e,t)}function l(e,t,n,r){var a=n.type;return a===y?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===a||typeof a==`object`&&a&&a.$$typeof===E&&wa(a)===t.type)?(t=i(t,n.props),ja(t,n),t.return=e,t):(t=ci(n.type,n.key,n.props,null,e.mode,r),ja(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fi(n,e.mode,r),t.return=e,t):(t=i(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,a){return t===null||t.tag!==7?(t=li(n,e.mode,r,a),t.return=e,t):(t=i(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=ui(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case _:return n=ci(t.type,t.key,t.props,null,e.mode,n),ja(n,t),n.return=e,n;case v:return t=fi(t,e.mode,n),t.return=e,t;case E:return t=wa(t),f(e,t,n)}if(D(t)||ae(t))return t=li(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,Aa(t),n);if(t.$$typeof===C)return f(e,Qi(e,t),n);Ma(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`||typeof n==`bigint`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case _:return n.key===i?l(e,t,n,r):null;case v:return n.key===i?u(e,t,n,r):null;case E:return n=wa(n),p(e,t,n,r)}if(D(n)||ae(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,Aa(n),r);if(n.$$typeof===C)return p(e,t,Qi(e,n),r);Ma(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`||typeof r==`bigint`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case _:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case v:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case E:return r=wa(r),m(e,t,n,r,i)}if(D(r)||ae(r))return e=e.get(n)||null,d(t,e,r,i,null);if(typeof r.then==`function`)return m(e,t,n,Aa(r),i);if(r.$$typeof===C)return m(e,t,n,Qi(t,r),i);Ma(t,r)}return null}function h(i,o,s,c){for(var l=null,u=null,d=o,h=o=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),o=a(_,o,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),U&&wi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(o=a(d,o,h),u===null?l=d:u.sibling=d,u=d);return U&&wi(i,h),l}for(d=r(d);h<s.length;h++)g=m(d,i,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),o=a(g,o,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),U&&wi(i,h),l}function g(i,o,c,l){if(c==null)throw Error(s(151));for(var u=null,d=null,h=o,g=o=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(i,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(i,h),o=a(y,o,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(i,h),U&&wi(i,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(i,v.value,l),v!==null&&(o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return U&&wi(i,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,i,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),o=a(v,o,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(i,e)}),U&&wi(i,g),u}function b(e,r,a,c){if(typeof a==`object`&&a&&a.type===y&&a.key===null&&(a=a.props.children),typeof a==`object`&&a){switch(a.$$typeof){case _:a:{for(var l=a.key;r!==null;){if(r.key===l){if(l=a.type,l===y){if(r.tag===7){n(e,r.sibling),c=i(r,a.props.children),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===E&&wa(l)===r.type){n(e,r.sibling),c=i(r,a.props),ja(c,a),c.return=e,e=c;break a}n(e,r);break}else t(e,r);r=r.sibling}a.type===y?(c=li(a.props.children,e.mode,c,a.key),c.return=e,e=c):(c=ci(a.type,a.key,a.props,null,e.mode,c),ja(c,a),c.return=e,e=c)}return o(e);case v:a:{for(l=a.key;r!==null;){if(r.key===l)if(r.tag===4&&r.stateNode.containerInfo===a.containerInfo&&r.stateNode.implementation===a.implementation){n(e,r.sibling),c=i(r,a.children||[]),c.return=e,e=c;break a}else{n(e,r);break}else t(e,r);r=r.sibling}c=fi(a,e.mode,c),c.return=e,e=c}return o(e);case E:return a=wa(a),b(e,r,a,c)}if(D(a))return h(e,r,a,c);if(ae(a)){if(l=ae(a),typeof l!=`function`)throw Error(s(150));return a=l.call(a),g(e,r,a,c)}if(typeof a.then==`function`)return b(e,r,Aa(a),c);if(a.$$typeof===C)return b(e,r,Qi(e,a),c);Ma(e,a)}return typeof a==`string`&&a!==``||typeof a==`number`||typeof a==`bigint`?(a=``+a,r!==null&&r.tag===6?(n(e,r.sibling),c=i(r,a),c.return=e,e=c):(n(e,r),c=ui(a,e.mode,c),c.return=e,e=c),o(e)):n(e,r)}return function(e,t,n,r){try{ka=0;var i=b(e,t,n,r);return Oa=null,i}catch(t){if(t===va||t===ba)throw t;var a=ii(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var Pa=Na(!0),Fa=Na(!1),Ia=!1;function La(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ra(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 za(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Ba(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,K&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=ti(e),ei(e,null,n),t}return Zr(e,r,t,n),ti(e)}function Va(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,tt(e,n)}}function Ha(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ua=!1;function Wa(){if(Ua){var e=la;if(e!==null)throw e}}function Ga(e,t,n,r){Ua=!1;var i=e.updateQueue;Ia=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane&-536870913,p=f!==s.lane;if(p?(Y&f)===f:(r&f)===f){f!==0&&f===ca&&(Ua=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,g=s;f=t;var _=n;switch(g.tag){case 1:if(m=g.payload,typeof m==`function`){d=m.call(_,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=g.payload,f=typeof m==`function`?m.call(_,d,f):m,f==null)break a;d=h({},d,f);break a;case 2:Ia=!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),Gl|=o,e.lanes=o,e.memoizedState=d}}function Ka(e,t){if(typeof e!=`function`)throw Error(s(191,e));e.call(t)}function qa(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)Ka(n[e],t)}var Ja=j(null),Ya=j(0);function Xa(e,t){e=Ul,N(Ya,e),N(Ja,t),Ul=e|t.baseLanes}function Za(){N(Ya,Ul),N(Ja,Ja.current)}function Qa(){Ul=Ya.current,M(Ja),M(Ya)}var $a=j(null),eo=null;function to(e){var t=e.alternate;N(oo,oo.current&1),N($a,e),eo===null&&(t===null||Ja.current!==null||t.memoizedState!==null)&&(eo=e)}function no(e){N(oo,oo.current),N($a,e),eo===null&&(eo=e)}function ro(e){e.tag===22?(N(oo,oo.current),N($a,e),eo===null&&(eo=e)):io(e)}function io(){N(oo,oo.current),N($a,$a.current)}function ao(e){M($a),eo===e&&(eo=null),M(oo)}var oo=j(0);function so(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||af(n)||of(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder===`forwards`||t.memoizedProps.revealOrder===`backwards`||t.memoizedProps.revealOrder===`unstable_legacy-backwards`||t.memoizedProps.revealOrder===`together`)){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var co=0,W=null,G=null,lo=null,uo=!1,fo=!1,po=!1,mo=0,ho=0,go=null,_o=0;function vo(){throw Error(s(321))}function yo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!vr(e[n],t[n]))return!1;return!0}function bo(e,t,n,r,i,a){return co=a,W=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,O.H=e===null||e.memoizedState===null?Ls:Rs,po=!1,a=n(r,i),po=!1,fo&&(a=So(t,n,r,i)),xo(e),a}function xo(e){O.H=Is;var t=G!==null&&G.next!==null;if(co=0,lo=G=W=null,uo=!1,ho=0,go=null,t)throw Error(s(300));e===null||tc||(e=e.dependencies,e!==null&&Yi(e)&&(tc=!0))}function So(e,t,n,r){W=e;var i=0;do{if(fo&&(go=null),ho=0,fo=!1,25<=i)throw Error(s(301));if(i+=1,lo=G=null,e.updateQueue!=null){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,a.memoCache!=null&&(a.memoCache.index=0)}O.H=zs,a=t(n,r)}while(fo);return a}function Co(){var e=O.H,t=e.useState()[0];return t=typeof t.then==`function`?Ao(t):t,e=e.useState()[0],(G===null?null:G.memoizedState)!==e&&(W.flags|=1024),t}function wo(){var e=mo!==0;return mo=0,e}function To(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function Eo(e){if(uo){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}uo=!1}co=0,lo=G=W=null,fo=!1,ho=mo=0,go=null}function Do(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lo===null?W.memoizedState=lo=e:lo=lo.next=e,lo}function Oo(){if(G===null){var e=W.alternate;e=e===null?null:e.memoizedState}else e=G.next;var t=lo===null?W.memoizedState:lo.next;if(t!==null)lo=t,G=e;else{if(e===null)throw W.alternate===null?Error(s(467)):Error(s(310));G=e,e={memoizedState:G.memoizedState,baseState:G.baseState,baseQueue:G.baseQueue,queue:G.queue,next:null},lo===null?W.memoizedState=lo=e:lo=lo.next=e}return lo}function ko(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ao(e){var t=ho;return ho+=1,go===null&&(go=[]),e=Ca(go,e,t),t=W,(lo===null?t.memoizedState:lo.next)===null&&(t=t.alternate,O.H=t===null||t.memoizedState===null?Ls:Rs),e}function jo(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return Ao(e);if(e.$$typeof===C)return Zi(e)}throw Error(s(438,String(e)))}function Mo(e){var t=null,n=W.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=W.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(e){return e.slice()}),index:0})))}if(t??={data:[],index:0},n===null&&(n=ko(),W.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=re;return t.index++,n}function No(e,t){return typeof t==`function`?t(e):t}function Po(e){return Fo(Oo(),G,e)}function Fo(e,t,n){var r=e.queue;if(r===null)throw Error(s(311));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=a,r.pending=null}if(a=e.baseState,i===null)e.memoizedState=a;else{t=i.next;var c=o=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(co&f)===f:(Y&f)===f){var p=u.revertLane;if(p===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),f===ca&&(d=!0);else if((co&p)===p){u=u.next,p===ca&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,o=a):l=l.next=f,W.lanes|=p,Gl|=p;f=u.action,po&&n(a,f),a=u.hasEagerState?u.eagerState:n(a,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,o=a):l=l.next=p,W.lanes|=f,Gl|=f;u=u.next}while(u!==null&&u!==t);if(l===null?o=a:l.next=c,!vr(a,e.memoizedState)&&(tc=!0,d&&(n=la,n!==null)))throw n;e.memoizedState=a,e.baseState=o,e.baseQueue=l,r.lastRenderedState=a}return i===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Io(e){var t=Oo(),n=t.queue;if(n===null)throw Error(s(311));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);vr(a,t.memoizedState)||(tc=!0),t.memoizedState=a,t.baseQueue===null&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function Lo(e,t,n){var r=W,i=Oo(),a=U;if(a){if(n===void 0)throw Error(s(407));n=n()}else n=t();var o=!vr((G||i).memoizedState,n);if(o&&(i.memoizedState=n,tc=!0),i=i.queue,cs(Bo.bind(null,r,i,e),[e]),i.getSnapshot!==t||o||lo!==null&&lo.memoizedState.tag&1){if(r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,i,n,t),null),q===null)throw Error(s(349));a||co&127||Ro(r,t,n)}return n}function Ro(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=W.updateQueue,t===null?(t=ko(),W.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function zo(e,t,n,r){t.value=n,t.getSnapshot=r,Vo(t)&&Ho(e)}function Bo(e,t,n){return n(function(){Vo(t)&&Ho(e)})}function Vo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!vr(e,n)}catch{return!0}}function Ho(e){var t=$r(e,2);t!==null&&hu(t,e,2)}function Uo(e){var t=Do();if(typeof e==`function`){var n=e;if(e=n(),po){Re(!0);try{n()}finally{Re(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:e},t}function Wo(e,t,n,r){return e.baseState=n,Fo(e,G,typeof r==`function`?r:No)}function Go(e,t,n,r,i){if(Ns(e))throw Error(s(485));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)}};O.T===null?a.isTransition=!1:n(!0),r(a),n=t.pending,n===null?(a.next=t.pending=a,Ko(t,a)):(a.next=n.next,t.pending=n.next=a)}}function Ko(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=O.T,o={};O.T=o;try{var s=n(i,r),c=O.S;c!==null&&c(o,s),qo(e,t,s)}catch(n){Yo(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),O.T=a}}else try{a=n(i,r),qo(e,t,a)}catch(n){Yo(e,t,n)}}function qo(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Jo(e,t,n)},function(n){return Yo(e,t,n)}):Jo(e,t,n)}function Jo(e,t,n){t.status=`fulfilled`,t.value=n,Xo(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Ko(e,n)))}function Yo(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Xo(t),t=t.next;while(t!==r)}e.action=null}function Xo(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Zo(e,t){return t}function Qo(e,t){if(U){var n=q.formState;if(n!==null){a:{var r=W;if(U){if(Ai){b:{for(var i=Ai,a=Mi;i.nodeType!==8;){if(!a){i=null;break b}if(i=cf(i.nextSibling),i===null){i=null;break b}}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){Ai=cf(i.nextSibling),r=i.data===`F!`;break a}}Pi(r)}r=!1}r&&(t=n[0])}}return n=Do(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Zo,lastRenderedState:t},n.queue=r,n=As.bind(null,W,r),r.dispatch=n,r=Uo(!1),a=Ms.bind(null,W,!1,r.queue),r=Do(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Go.bind(null,W,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function $o(e){return es(Oo(),G,e)}function es(e,t,n){if(t=Fo(e,t,Zo)[0],e=Po(No)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=Ao(t)}catch(e){throw e===va?ba:e}else r=t;t=Oo();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(W.flags|=2048,rs(9,{destroy:void 0},ts.bind(null,i,n),null)),[r,a,e]}function ts(e,t){e.action=t}function ns(e){var t=Oo(),n=G;if(n!==null)return es(t,n,e);Oo(),t=t.memoizedState,n=Oo();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function rs(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=W.updateQueue,t===null&&(t=ko(),W.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function is(){return Oo().memoizedState}function as(e,t,n,r){var i=Do();W.flags|=e,i.memoizedState=rs(1|t,{destroy:void 0},n,r===void 0?null:r)}function os(e,t,n,r){var i=Oo();r=r===void 0?null:r;var a=i.memoizedState.inst;G!==null&&r!==null&&yo(r,G.memoizedState.deps)?i.memoizedState=rs(t,a,n,r):(W.flags|=e,i.memoizedState=rs(1|t,a,n,r))}function ss(e,t){as(8390656,8,e,t)}function cs(e,t){os(2048,8,e,t)}function ls(e){W.flags|=4;var t=W.updateQueue;if(t===null)t=ko(),W.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function us(e){var t=Oo().memoizedState;return ls({ref:t,nextImpl:e}),function(){if(K&2)throw Error(s(440));return t.impl.apply(void 0,arguments)}}function ds(e,t){return os(4,2,e,t)}function fs(e,t){return os(4,4,e,t)}function ps(e,t){if(typeof t==`function`){e=e();var n=t(e);return function(){typeof n==`function`?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ms(e,t,n){n=n==null?null:n.concat([e]),os(4,4,ps.bind(null,t,e),n)}function hs(){}function gs(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&yo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function _s(e,t){var n=Oo();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&yo(t,r[1]))return r[0];if(r=e(),po){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r}function vs(e,t,n){return n===void 0||co&1073741824&&!(Y&261930)?e.memoizedState=t:(e.memoizedState=n,e=mu(),W.lanes|=e,Gl|=e,n)}function ys(e,t,n,r){return vr(n,t)?n:Ja.current===null?!(co&42)||co&1073741824&&!(Y&261930)?(tc=!0,e.memoizedState=n):(e=mu(),W.lanes|=e,Gl|=e,t):(e=vs(e,n,r),vr(e,t)||(tc=!0),e)}function bs(e,t,n,r,i){var a=k.p;k.p=a!==0&&8>a?a:8;var o=O.T,s={};O.T=s,Ms(e,!1,t,n);try{var c=i(),l=O.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?js(e,t,fa(c,r),pu(e)):js(e,t,r,pu(e))}catch(n){js(e,t,{then:function(){},status:`rejected`,reason:n},pu())}finally{k.p=a,o!==null&&s.types!==null&&(o.types=s.types),O.T=o}}function xs(){}function Ss(e,t,n,r){if(e.tag!==5)throw Error(s(476));var i=Cs(e).queue;bs(e,i,t,ce,n===null?xs:function(){return ws(e),n(r)})}function Cs(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:ce},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:No,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ws(e){var t=Cs(e);t.next===null&&(t=e.alternate.memoizedState),js(e,t.next.queue,{},pu())}function Ts(){return Zi(Qf)}function Es(){return Oo().memoizedState}function Ds(){return Oo().memoizedState}function Os(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=pu();e=za(n);var r=Ba(t,e,n);r!==null&&(hu(r,t,n),Va(r,t,n)),t={cache:ia()},e.payload=t;return}t=t.return}}function ks(e,t,n){var r=pu();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},Ns(e)?Ps(t,n):(n=Qr(e,t,n,r),n!==null&&(hu(n,e,r),Fs(n,t,r)))}function As(e,t,n){js(e,t,n,pu())}function js(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(Ns(e))Ps(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,vr(s,o))return Zr(e,t,i,0),q===null&&Xr(),!1}catch{}if(n=Qr(e,t,i,r),n!==null)return hu(n,e,r),Fs(n,t,r),!0}return!1}function Ms(e,t,n,r){if(r={lane:2,revertLane:dd(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},Ns(e)){if(t)throw Error(s(479))}else t=Qr(e,n,r,2),t!==null&&hu(t,e,2)}function Ns(e){var t=e.alternate;return e===W||t!==null&&t===W}function Ps(e,t){fo=uo=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Fs(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,tt(e,n)}}var Is={readContext:Zi,use:jo,useCallback:vo,useContext:vo,useEffect:vo,useImperativeHandle:vo,useLayoutEffect:vo,useInsertionEffect:vo,useMemo:vo,useReducer:vo,useRef:vo,useState:vo,useDebugValue:vo,useDeferredValue:vo,useTransition:vo,useSyncExternalStore:vo,useId:vo,useHostTransitionStatus:vo,useFormState:vo,useActionState:vo,useOptimistic:vo,useMemoCache:vo,useCacheRefresh:vo};Is.useEffectEvent=vo;var Ls={readContext:Zi,use:jo,useCallback:function(e,t){return Do().memoizedState=[e,t===void 0?null:t],e},useContext:Zi,useEffect:ss,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),as(4194308,4,ps.bind(null,t,e),n)},useLayoutEffect:function(e,t){return as(4194308,4,e,t)},useInsertionEffect:function(e,t){as(4,2,e,t)},useMemo:function(e,t){var n=Do();t=t===void 0?null:t;var r=e();if(po){Re(!0);try{e()}finally{Re(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=Do();if(n!==void 0){var i=n(t);if(po){Re(!0);try{n(t)}finally{Re(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ks.bind(null,W,e),[r.memoizedState,e]},useRef:function(e){var t=Do();return e={current:e},t.memoizedState=e},useState:function(e){e=Uo(e);var t=e.queue,n=As.bind(null,W,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:hs,useDeferredValue:function(e,t){return vs(Do(),e,t)},useTransition:function(){var e=Uo(!1);return e=bs.bind(null,W,e.queue,!0,!1),Do().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=W,i=Do();if(U){if(n===void 0)throw Error(s(407));n=n()}else{if(n=t(),q===null)throw Error(s(349));Y&127||Ro(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,ss(Bo.bind(null,r,a,e),[e]),r.flags|=2048,rs(9,{destroy:void 0},zo.bind(null,r,a,n,t),null),n},useId:function(){var e=Do(),t=q.identifierPrefix;if(U){var n=Ci,r=Si;n=(r&~(1<<32-ze(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=mo++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=_o++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:Ts,useFormState:Qo,useActionState:Qo,useOptimistic:function(e){var t=Do();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=Ms.bind(null,W,!0,n),n.dispatch=t,[e,t]},useMemoCache:Mo,useCacheRefresh:function(){return Do().memoizedState=Os.bind(null,W)},useEffectEvent:function(e){var t=Do(),n={impl:e};return t.memoizedState=n,function(){if(K&2)throw Error(s(440));return n.impl.apply(void 0,arguments)}}},Rs={readContext:Zi,use:jo,useCallback:gs,useContext:Zi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Po,useRef:is,useState:function(){return Po(No)},useDebugValue:hs,useDeferredValue:function(e,t){return ys(Oo(),G.memoizedState,e,t)},useTransition:function(){var e=Po(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:$o,useActionState:$o,useOptimistic:function(e,t){return Wo(Oo(),G,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};Rs.useEffectEvent=us;var zs={readContext:Zi,use:jo,useCallback:gs,useContext:Zi,useEffect:cs,useImperativeHandle:ms,useInsertionEffect:ds,useLayoutEffect:fs,useMemo:_s,useReducer:Io,useRef:is,useState:function(){return Io(No)},useDebugValue:hs,useDeferredValue:function(e,t){var n=Oo();return G===null?vs(n,e,t):ys(n,G.memoizedState,e,t)},useTransition:function(){var e=Io(No)[0],t=Oo().memoizedState;return[typeof e==`boolean`?e:Ao(e),t]},useSyncExternalStore:Lo,useId:Es,useHostTransitionStatus:Ts,useFormState:ns,useActionState:ns,useOptimistic:function(e,t){var n=Oo();return G===null?(n.baseState=e,[e,n.queue.dispatch]):Wo(n,G,e,t)},useMemoCache:Mo,useCacheRefresh:Ds};zs.useEffectEvent=us;function Bs(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:h({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Vs={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=pu(),i=za(r);i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(hu(t,e,r),Va(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=pu(),i=za(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=Ba(e,i,r),t!==null&&(hu(t,e,r),Va(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=pu(),r=za(n);r.tag=2,t!=null&&(r.callback=t),t=Ba(e,r,n),t!==null&&(hu(t,e,n),Va(t,e,n))}};function Hs(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!yr(n,r)||!yr(i,a):!0}function Us(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Vs.enqueueReplaceState(t,t.state,null)}function Ws(e,t){var n=t;if(`ref`in t)for(var r in n={},t)r!==`ref`&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=h({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function Gs(e){Kr(e)}function Ks(e){console.error(e)}function qs(e){Kr(e)}function Js(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Ys(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(e){setTimeout(function(){throw e})}}function Xs(e,t,n){return n=za(n),n.tag=3,n.payload={element:null},n.callback=function(){Js(e,t)},n}function Zs(e){return e=za(e),e.tag=3,e}function Qs(e,t,n,r){var i=n.type.getDerivedStateFromError;if(typeof i==`function`){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ys(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Ys(t,n,r),typeof i!=`function`&&(ru===null?ru=new Set([this]):ru.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function $s(e,t,n,r,i){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&Ji(t,n,i,!0),n=$a.current,n!==null){switch(n.tag){case 31:case 13:return eo===null?Du():n.alternate===null&&Wl===0&&(Wl=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),Gu(e,r,i)),!1;case 22:return n.flags|=65536,r===xa?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)),Gu(e,r,i)),!1}throw Error(s(435,n.tag))}return Gu(e,r,i),Du(),!1}if(U)return t=$a.current,t===null?(r!==Ni&&(t=Error(s(423),{cause:r}),Bi(mi(t,n))),e=e.current.alternate,e.flags|=65536,i&=-i,e.lanes|=i,r=mi(r,n),i=Xs(e.stateNode,r,i),Ha(e,i),Wl!==4&&(Wl=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==Ni&&(e=Error(s(422),{cause:r}),Bi(mi(e,n)))),!1;var a=Error(s(520),{cause:r});if(a=mi(a,n),Xl===null?Xl=[a]:Xl.push(a),Wl!==4&&(Wl=2),t===null)return!0;r=mi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,e=Xs(n.stateNode,r,e),Ha(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`&&(ru===null||!ru.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,i=Zs(i),Qs(i,e,n,r),Ha(n,i),!1}n=n.return}while(n!==null);return!1}var ec=Error(s(461)),tc=!1;function nc(e,t,n,r){t.child=e===null?Fa(t,null,n,r):Pa(t,e.child,n,r)}function rc(e,t,n,r,i){n=n.render;var a=t.ref;if(`ref`in r){var o={};for(var s in r)s!==`ref`&&(o[s]=r[s])}else o=r;return Xi(t),r=bo(e,t,n,o,a,i),s=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(U&&s&&Ei(t),t.flags|=1,nc(e,t,r,i),t.child)}function ic(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!ai(a)&&a.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=a,ac(e,t,a,r,i)):(e=ci(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!Oc(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?yr:n,n(o,r)&&e.ref===t.ref)return Dc(e,t,i)}return t.flags|=1,e=oi(a,r),e.ref=t.ref,e.return=t,t.child=e}function ac(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(yr(a,r)&&e.ref===t.ref)if(tc=!1,t.pendingProps=r=a,Oc(e,i))e.flags&131072&&(tc=!0);else return t.lanes=e.lanes,Dc(e,t,i)}return pc(e,t,n,r,i)}function oc(e,t,n,r){var i=r.children,a=e===null?null:e.memoizedState;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode===`hidden`){if(t.flags&128){if(a=a===null?n:a.baseLanes|n,e!==null){for(r=t.child=e.child,i=0;r!==null;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return cc(e,t,a,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&ga(t,a===null?null:a.cachePool),a===null?Za():Xa(t,a),ro(t);else return r=t.lanes=536870912,cc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&ga(t,null),Za(),io(t)):(ga(t,a.cachePool),Xa(t,a),io(t),t.memoizedState=null);return nc(e,t,i,n),t.child}function sc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function cc(e,t,n,r,i){var a=ha();return a=a===null?null:{parent:ra._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&ga(t,null),Za(),ro(t),e!==null&&Ji(e,t,r,!0),t.childLanes=i,null}function lc(e,t){return t=Sc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function uc(e,t,n){return Pa(t,e.child,null,n),e=lc(t,t.pendingProps),e.flags|=2,ao(t),t.memoizedState=null,e}function dc(e,t,n){var r=t.pendingProps,i=(t.flags&128)!=0;if(t.flags&=-129,e===null){if(U){if(r.mode===`hidden`)return e=lc(t,r),t.lanes=536870912,sc(null,e);if(no(t),(e=Ai)?(e=rf(e,Mi),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,ki=t,Ai=null)):e=null,e===null)throw Pi(t);return t.lanes=536870912,null}return lc(t,r)}var a=e.memoizedState;if(a!==null){var o=a.dehydrated;if(no(t),i)if(t.flags&256)t.flags&=-257,t=uc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(s(558));else if(tc||Ji(e,t,n,!1),i=(n&e.childLanes)!==0,tc||i){if(r=q,r!==null&&(o=nt(r,n),o!==0&&o!==a.retryLane))throw a.retryLane=o,$r(e,o),hu(r,e,o),ec;Du(),t=uc(e,t,n)}else e=a.treeContext,Ai=cf(o.nextSibling),ki=t,U=!0,ji=null,Mi=!1,e!==null&&Oi(t,e),t=lc(t,r),t.flags|=4096;return t}return e=oi(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function fc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(s(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function pc(e,t,n,r,i){return Xi(t),n=bo(e,t,n,r,void 0,i),r=wo(),e!==null&&!tc?(To(e,t,i),Dc(e,t,i)):(U&&r&&Ei(t),t.flags|=1,nc(e,t,n,i),t.child)}function mc(e,t,n,r,i,a){return Xi(t),t.updateQueue=null,n=So(t,r,n,i),xo(e),r=wo(),e!==null&&!tc?(To(e,t,a),Dc(e,t,a)):(U&&r&&Ei(t),t.flags|=1,nc(e,t,n,a),t.child)}function hc(e,t,n,r,i){if(Xi(t),t.stateNode===null){var a=ni,o=n.contextType;typeof o==`object`&&o&&(a=Zi(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=Vs,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},La(t),o=n.contextType,a.context=typeof o==`object`&&o?Zi(o):ni,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(Bs(t,n,o,r),a.state=t.memoizedState),typeof n.getDerivedStateFromProps==`function`||typeof a.getSnapshotBeforeUpdate==`function`||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(o=a.state,typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount(),o!==a.state&&Vs.enqueueReplaceState(a,a.state,null),Ga(t,r,a,i),Wa(),a.state=t.memoizedState),typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!0}else if(e===null){a=t.stateNode;var s=t.memoizedProps,c=Ws(n,s);a.props=c;var l=a.context,u=n.contextType;o=ni,typeof u==`object`&&u&&(o=Zi(u));var d=n.getDerivedStateFromProps;u=typeof d==`function`||typeof a.getSnapshotBeforeUpdate==`function`,s=t.pendingProps!==s,u||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(s||l!==o)&&Us(t,a,r,o),Ia=!1;var f=t.memoizedState;a.state=f,Ga(t,r,a,i),Wa(),l=t.memoizedState,s||f!==l||Ia?(typeof d==`function`&&(Bs(t,n,d,r),l=t.memoizedState),(c=Ia||Hs(t,n,c,r,f,l,o))?(u||typeof a.UNSAFE_componentWillMount!=`function`&&typeof a.componentWillMount!=`function`||(typeof a.componentWillMount==`function`&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount==`function`&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount==`function`&&(t.flags|=4194308)):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=o,r=c):(typeof a.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,Ra(e,t),o=t.memoizedProps,u=Ws(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=ni,typeof l==`object`&&l&&(c=Zi(l)),s=n.getDerivedStateFromProps,(l=typeof s==`function`||typeof a.getSnapshotBeforeUpdate==`function`)||typeof a.UNSAFE_componentWillReceiveProps!=`function`&&typeof a.componentWillReceiveProps!=`function`||(o!==d||f!==c)&&Us(t,a,r,c),Ia=!1,f=t.memoizedState,a.state=f,Ga(t,r,a,i),Wa();var p=t.memoizedState;o!==d||f!==p||Ia||e!==null&&e.dependencies!==null&&Yi(e.dependencies)?(typeof s==`function`&&(Bs(t,n,s,r),p=t.memoizedState),(u=Ia||Hs(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&Yi(e.dependencies))?(l||typeof a.UNSAFE_componentWillUpdate!=`function`&&typeof a.componentWillUpdate!=`function`||(typeof a.componentWillUpdate==`function`&&a.componentWillUpdate(r,p,c),typeof a.UNSAFE_componentWillUpdate==`function`&&a.UNSAFE_componentWillUpdate(r,p,c)),typeof a.componentDidUpdate==`function`&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=c,r=u):(typeof a.componentDidUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!=`function`||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,fc(e,t),r=(t.flags&128)!=0,a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=Pa(t,e.child,null,i),t.child=Pa(t,null,n,i)):nc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=Dc(e,t,i),e}function gc(e,t,n,r){return Ri(),t.flags|=256,nc(e,t,n,r),t.child}var _c={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vc(e){return{baseLanes:e,cachePool:_a()}}function yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=Jl),e}function bc(e,t,n){var r=t.pendingProps,i=!1,a=(t.flags&128)!=0,o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:(oo.current&2)!=0),o&&(i=!0,t.flags&=-129),o=(t.flags&32)!=0,t.flags&=-33,e===null){if(U){if(i?to(t):io(t),(e=Ai)?(e=rf(e,Mi),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:xi===null?null:{id:Si,overflow:Ci},retryLane:536870912,hydrationErrors:null},n=di(e),n.return=t,t.child=n,ki=t,Ai=null)):e=null,e===null)throw Pi(t);return of(e)?t.lanes=32:t.lanes=536870912,null}var c=r.children;return r=r.fallback,i?(io(t),i=t.mode,c=Sc({mode:`hidden`,children:c},i),r=li(r,i,n,null),c.return=t,r.return=t,c.sibling=r,t.child=c,r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,o,n),t.memoizedState=_c,sc(null,r)):(to(t),xc(t,c))}var l=e.memoizedState;if(l!==null&&(c=l.dehydrated,c!==null)){if(a)t.flags&256?(to(t),t.flags&=-257,t=Cc(e,t,n)):t.memoizedState===null?(io(t),c=r.fallback,i=t.mode,r=Sc({mode:`visible`,children:r.children},i),c=li(c,i,n,null),c.flags|=2,r.return=t,c.return=t,r.sibling=c,t.child=r,Pa(t,e.child,null,n),r=t.child,r.memoizedState=vc(n),r.childLanes=yc(e,o,n),t.memoizedState=_c,t=sc(null,r)):(io(t),t.child=e.child,t.flags|=128,t=null);else if(to(t),of(c)){if(o=c.nextSibling&&c.nextSibling.dataset,o)var u=o.dgst;o=u,r=Error(s(419)),r.stack=``,r.digest=o,Bi({value:r,source:null,stack:null}),t=Cc(e,t,n)}else if(tc||Ji(e,t,n,!1),o=(n&e.childLanes)!==0,tc||o){if(o=q,o!==null&&(r=nt(o,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,$r(e,r),hu(o,e,r),ec;af(c)||Du(),t=Cc(e,t,n)}else af(c)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,Ai=cf(c.nextSibling),ki=t,U=!0,ji=null,Mi=!1,e!==null&&Oi(t,e),t=xc(t,r.children),t.flags|=4096);return t}return i?(io(t),c=r.fallback,i=t.mode,l=e.child,u=l.sibling,r=oi(l,{mode:`hidden`,children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,u===null?(c=li(c,i,n,null),c.flags|=2):c=oi(u,c),c.return=t,r.return=t,r.sibling=c,t.child=r,sc(null,r),r=t.child,c=e.child.memoizedState,c===null?c=vc(n):(i=c.cachePool,i===null?i=_a():(l=ra._currentValue,i=i.parent===l?i:{parent:l,pool:l}),c={baseLanes:c.baseLanes|n,cachePool:i}),r.memoizedState=c,r.childLanes=yc(e,o,n),t.memoizedState=_c,sc(e.child,r)):(to(t),n=e.child,e=n.sibling,n=oi(n,{mode:`visible`,children:r.children}),n.return=t,n.sibling=null,e!==null&&(o=t.deletions,o===null?(t.deletions=[e],t.flags|=16):o.push(e)),t.child=n,t.memoizedState=null,n)}function xc(e,t){return t=Sc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Sc(e,t){return e=ii(22,e,null,t),e.lanes=0,e}function Cc(e,t,n){return Pa(t,e.child,null,n),e=xc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function wc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Ki(e.return,t,n)}function Tc(e,t,n,r,i,a){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function Ec(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=oo.current,s=(o&2)!=0;if(s?(o=o&1|2,t.flags|=128):o&=1,N(oo,o),nc(e,t,r,n),r=U?vi:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&wc(e,n,t);else if(e.tag===19)wc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&so(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),Tc(t,!1,i,n,a,r);break;case`backwards`:case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&so(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}Tc(t,!0,n,null,a,r);break;case`together`:Tc(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Dc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Gl|=t.lanes,(n&t.childLanes)===0)if(e!==null){if(Ji(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(s(153));if(t.child!==null){for(e=t.child,n=oi(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=oi(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Oc(e,t){return(e.lanes&t)===0?(e=e.dependencies,!!(e!==null&&Yi(e))):!0}function kc(e,t,n){switch(t.tag){case 3:pe(t,t.stateNode.containerInfo),Wi(t,ra,e.memoizedState.cache),Ri();break;case 27:case 5:he(t);break;case 4:pe(t,t.stateNode.containerInfo);break;case 10:Wi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,no(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(to(t),e=Dc(e,t,n),e===null?null:e.sibling):bc(e,t,n):(to(t),t.flags|=128,null);to(t);break;case 19:var i=(e.flags&128)!=0;if(r=(n&t.childLanes)!==0,r||=(Ji(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return Ec(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),N(oo,oo.current),r)break;return null;case 22:return t.lanes=0,oc(e,t,n,t.pendingProps);case 24:Wi(t,ra,e.memoizedState.cache)}return Dc(e,t,n)}function Ac(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)tc=!0;else{if(!Oc(e,n)&&!(t.flags&128))return tc=!1,kc(e,t,n);tc=!!(e.flags&131072)}else tc=!1,U&&t.flags&1048576&&Ti(t,vi,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=wa(t.elementType),t.type=e,typeof e==`function`)ai(e)?(r=Ws(e,r),t.tag=1,t=hc(null,t,e,r,n)):(t.tag=0,t=pc(null,t,e,r,n));else{if(e!=null){var i=e.$$typeof;if(i===w){t.tag=11,t=rc(null,t,e,r,n);break a}else if(i===te){t.tag=14,t=ic(null,t,e,r,n);break a}}throw t=se(e)||e,Error(s(306,t,``))}}return t;case 0:return pc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,i=Ws(r,t.pendingProps),hc(e,t,r,i,n);case 3:a:{if(pe(t,t.stateNode.containerInfo),e===null)throw Error(s(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,Ra(e,t),Ga(t,r,null,n);var o=t.memoizedState;if(r=o.cache,Wi(t,ra,r),r!==a.cache&&qi(t,[ra],n,!0),Wa(),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=gc(e,t,r,n);break a}else if(r!==i){i=mi(Error(s(424)),t),Bi(i),t=gc(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(Ai=cf(e.firstChild),ki=t,U=!0,ji=null,Mi=!0,n=Fa(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ri(),r===i){t=Dc(e,t,n);break a}nc(e,t,r,n)}t=t.child}return t;case 26:return fc(e,t),e===null?(n=kf(t.type,null,t.pendingProps,null))?t.memoizedState=n:U||(n=t.type,e=t.pendingProps,r=Bd(P.current).createElement(n),r[ct]=t,r[lt]=e,Pd(r,n,e),bt(r),t.stateNode=r):t.memoizedState=kf(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return he(t),e===null&&U&&(r=t.stateNode=ff(t.type,t.pendingProps,P.current),ki=t,Mi=!0,i=Ai,Zd(t.type)?(lf=i,Ai=cf(r.firstChild)):Ai=i),nc(e,t,t.pendingProps.children,n),fc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&U&&((i=r=Ai)&&(r=tf(r,t.type,t.pendingProps,Mi),r===null?i=!1:(t.stateNode=r,ki=t,Ai=cf(r.firstChild),Mi=!1,i=!0)),i||Pi(t)),he(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,r=a.children,Ud(i,a)?r=null:o!==null&&Ud(i,o)&&(t.flags|=32),t.memoizedState!==null&&(i=bo(e,t,Co,null,null,n),Qf._currentValue=i),fc(e,t),nc(e,t,r,n),t.child;case 6:return e===null&&U&&((e=n=Ai)&&(n=nf(n,t.pendingProps,Mi),n===null?e=!1:(t.stateNode=n,ki=t,Ai=null,e=!0)),e||Pi(t)),null;case 13:return bc(e,t,n);case 4:return pe(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Pa(t,null,r,n):nc(e,t,r,n),t.child;case 11:return rc(e,t,t.type,t.pendingProps,n);case 7:return nc(e,t,t.pendingProps,n),t.child;case 8:return nc(e,t,t.pendingProps.children,n),t.child;case 12:return nc(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Wi(t,t.type,r.value),nc(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,Xi(t),i=Zi(i),r=r(i),t.flags|=1,nc(e,t,r,n),t.child;case 14:return ic(e,t,t.type,t.pendingProps,n);case 15:return ac(e,t,t.type,t.pendingProps,n);case 19:return Ec(e,t,n);case 31:return dc(e,t,n);case 22:return oc(e,t,n,t.pendingProps);case 24:return Xi(t),r=Zi(ra),e===null?(i=ha(),i===null&&(i=q,a=ia(),i.pooledCache=a,a.refCount++,a!==null&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},La(t),Wi(t,ra,i)):((e.lanes&n)!==0&&(Ra(e,t),Ga(t,null,null,n),Wa()),i=e.memoizedState,a=t.memoizedState,i.parent===r?(r=a.cache,Wi(t,ra,r),r!==i.cache&&qi(t,[ra],n,!0)):(i={parent:r,cache:r},t.memoizedState=i,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=i),Wi(t,ra,r))),nc(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(s(156,t.tag))}function jc(e){e.flags|=4}function Mc(e,t,n,r,i){if((t=(e.mode&32)!=0)&&(t=!1),t){if(e.flags|=16777216,(i&335544128)===i)if(e.stateNode.complete)e.flags|=8192;else if(wu())e.flags|=8192;else throw Ta=xa,ya}else e.flags&=-16777217}function Nc(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Wf(t))if(wu())e.flags|=8192;else throw Ta=xa,ya}function Pc(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:Xe(),e.lanes|=t,Yl|=t)}function Fc(e,t){if(!U)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Ic(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&65011712,r|=i.flags&65011712,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Lc(e,t,n){var r=t.pendingProps;switch(Di(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ic(t),null;case 1:return Ic(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Gi(ra),me(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Li(t)?jc(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,zi())),Ic(t),null;case 26:var i=t.type,a=t.memoizedState;return e===null?(jc(t),a===null?(Ic(t),Mc(t,i,null,r,n)):(Ic(t),Nc(t,a))):a?a===e.memoizedState?(Ic(t),t.flags&=-16777217):(jc(t),Ic(t),Nc(t,a)):(e=e.memoizedProps,e!==r&&jc(t),Ic(t),Mc(t,i,e,r,n)),null;case 27:if(F(t),n=P.current,i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ic(t),null}e=ue.current,Li(t)?Fi(t,e):(e=ff(i,r,n),t.stateNode=e,jc(t))}return Ic(t),null;case 5:if(F(t),i=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(!r){if(t.stateNode===null)throw Error(s(166));return Ic(t),null}if(a=ue.current,Li(t))Fi(t,a);else{var o=Bd(P.current);switch(a){case 1:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case 2:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;default:switch(i){case`svg`:a=o.createElementNS(`http://www.w3.org/2000/svg`,i);break;case`math`:a=o.createElementNS(`http://www.w3.org/1998/Math/MathML`,i);break;case`script`:a=o.createElement(`div`),a.innerHTML=`<script><\/script>`,a=a.removeChild(a.firstChild);break;case`select`:a=typeof r.is==`string`?o.createElement(`select`,{is:r.is}):o.createElement(`select`),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a=typeof r.is==`string`?o.createElement(i,{is:r.is}):o.createElement(i)}}a[ct]=t,a[lt]=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(Pd(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&&jc(t)}}return Ic(t),Mc(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&jc(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(s(166));if(e=P.current,Li(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,i=ki,i!==null)switch(i.tag){case 27:case 5:r=i.memoizedProps}e[ct]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||Md(e.nodeValue,n)),e||Pi(t,!0)}else e=Bd(e).createTextNode(r),e[ct]=t,t.stateNode=e}return Ic(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Li(t),n!==null){if(e===null){if(!r)throw Error(s(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(s(557));e[ct]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),e=!1}else n=zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(ao(t),t):(ao(t),null);if(t.flags&128)throw Error(s(558))}return Ic(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(i=Li(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error(s(318));if(i=t.memoizedState,i=i===null?null:i.dehydrated,!i)throw Error(s(317));i[ct]=t}else Ri(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Ic(t),i=!1}else i=zi(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return t.flags&256?(ao(t),t):(ao(t),null)}return ao(t),t.flags&128?(t.lanes=n,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),Pc(t,t.updateQueue),Ic(t),null);case 4:return me(),e===null&&Sd(t.stateNode.containerInfo),Ic(t),null;case 10:return Gi(t.type),Ic(t),null;case 19:if(M(oo),r=t.memoizedState,r===null)return Ic(t),null;if(i=(t.flags&128)!=0,a=r.rendering,a===null)if(i)Fc(r,!1);else{if(Wl!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=so(e),a!==null){for(t.flags|=128,Fc(r,!1),e=a.updateQueue,t.updateQueue=e,Pc(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)si(n,e),n=n.sibling;return N(oo,oo.current&1|2),U&&wi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&De()>tu&&(t.flags|=128,i=!0,Fc(r,!1),t.lanes=4194304)}else{if(!i)if(e=so(a),e!==null){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,Pc(t,e),Fc(r,!0),r.tail===null&&r.tailMode===`hidden`&&!a.alternate&&!U)return Ic(t),null}else 2*De()-r.renderingStartTime>tu&&n!==536870912&&(t.flags|=128,i=!0,Fc(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?(Ic(t),null):(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=De(),e.sibling=null,n=oo.current,N(oo,i?n&1|2:n&1),U&&wi(t,r.treeForkCount),e);case 22:case 23:return ao(t),Qa(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Ic(t),t.subtreeFlags&6&&(t.flags|=8192)):Ic(t),n=t.updateQueue,n!==null&&Pc(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&M(ma),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Gi(ra),Ic(t),null;case 25:return null;case 30:return null}throw Error(s(156,t.tag))}function Rc(e,t){switch(Di(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Gi(ra),me(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return F(t),null;case 31:if(t.memoizedState!==null){if(ao(t),t.alternate===null)throw Error(s(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(ao(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(s(340));Ri()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return M(oo),null;case 4:return me(),null;case 10:return Gi(t.type),null;case 22:case 23:return ao(t),Qa(),e!==null&&M(ma),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Gi(ra),null;case 25:return null;default:return null}}function zc(e,t){switch(Di(t),t.tag){case 3:Gi(ra),me();break;case 26:case 27:case 5:F(t);break;case 4:me();break;case 31:t.memoizedState!==null&&ao(t);break;case 13:ao(t);break;case 19:M(oo);break;case 10:Gi(t.type);break;case 22:case 23:ao(t),Qa(),e!==null&&M(ma);break;case 24:Gi(ra)}}function Bc(e,t){try{var n=t.updateQueue,r=n===null?null:n.lastEffect;if(r!==null){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(e){Z(t,t.return,e)}}function Vc(e,t,n){try{var r=t.updateQueue,i=r===null?null:r.lastEffect;if(i!==null){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(s!==void 0){o.destroy=void 0,i=t;var c=n,l=s;try{l()}catch(e){Z(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){Z(t,t.return,e)}}function Hc(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{qa(t,n)}catch(t){Z(e,e.return,t)}}}function Uc(e,t,n){n.props=Ws(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){Z(e,t,n)}}function Wc(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){Z(e,t,n)}}function Gc(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r==`function`)try{r()}catch(n){Z(e,t,n)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n==`function`)try{n(null)}catch(n){Z(e,t,n)}else n.current=null}function Kc(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{a:switch(t){case`button`:case`input`:case`select`:case`textarea`:n.autoFocus&&r.focus();break a;case`img`:n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(t){Z(e,e.return,t)}}function qc(e,t,n){try{var r=e.stateNode;Fd(r,e.type,n,t),r[lt]=t}catch(t){Z(e,e.return,t)}}function Jc(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Zd(e.type)||e.tag===4}function Yc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Jc(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Zd(e.type)||e.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Xc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Qt));else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Xc(e,t,n),e=e.sibling;e!==null;)Xc(e,t,n),e=e.sibling}function Zc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Zd(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(Zc(e,t,n),e=e.sibling;e!==null;)Zc(e,t,n),e=e.sibling}function Qc(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);Pd(t,r,n),t[ct]=e,t[lt]=n}catch(t){Z(e,e.return,t)}}var $c=!1,el=!1,tl=!1,nl=typeof WeakSet==`function`?WeakSet:Set,rl=null;function il(e,t){if(e=e.containerInfo,Rd=sp,e=Cr(e),wr(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,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||i!==0&&f.nodeType!==3||(c=o+i),f!==a||r!==0&&f.nodeType!==3||(l=o+r),f.nodeType===3&&(o+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===i&&(c=o),p===a&&++d===r&&(l=o),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(zd={focusedElem:e,selectionRange:n},sp=!1,rl=t;rl!==null;)if(t=rl,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,rl=e;else for(;rl!==null;){switch(t=rl,a=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e===null?null:e.events,e!==null))for(n=0;n<e.length;n++)i=e[n],i.ref.impl=i.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&a!==null){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var h=Ws(n.type,i);e=r.getSnapshotBeforeUpdate(h,a),r.__reactInternalSnapshotBeforeUpdate=e}catch(e){Z(n,n.return,e)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)ef(e);else if(n===1)switch(e.nodeName){case`HEAD`:case`HTML`:case`BODY`:ef(e);break;default:e.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(s(163))}if(e=t.sibling,e!==null){e.return=t.return,rl=e;break}rl=t.return}}function al(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:bl(e,n),r&4&&Bc(5,n);break;case 1:if(bl(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){Z(n,n.return,e)}else{var i=Ws(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){Z(n,n.return,e)}}r&64&&Hc(n),r&512&&Wc(n,n.return);break;case 3:if(bl(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{qa(e,t)}catch(e){Z(n,n.return,e)}}break;case 27:t===null&&r&4&&Qc(n);case 26:case 5:bl(e,n),t===null&&r&4&&Kc(n),r&512&&Wc(n,n.return);break;case 12:bl(e,n);break;case 31:bl(e,n),r&4&&dl(e,n);break;case 13:bl(e,n),r&4&&fl(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=Ju.bind(null,n),sf(e,n))));break;case 22:if(r=n.memoizedState!==null||$c,!r){t=t!==null&&t.memoizedState!==null||el,i=$c;var a=el;$c=r,(el=t)&&!a?Sl(e,n,(n.subtreeFlags&8772)!=0):bl(e,n),$c=i,el=a}break;case 30:break;default:bl(e,n)}}function ol(e){var t=e.alternate;t!==null&&(e.alternate=null,ol(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&ht(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var sl=null,cl=!1;function ll(e,t,n){for(n=n.child;n!==null;)ul(e,t,n),n=n.sibling}function ul(e,t,n){if(Le&&typeof Le.onCommitFiberUnmount==`function`)try{Le.onCommitFiberUnmount(Ie,n)}catch{}switch(n.tag){case 26:el||Gc(n,t),ll(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:el||Gc(n,t);var r=sl,i=cl;Zd(n.type)&&(sl=n.stateNode,cl=!1),ll(e,t,n),pf(n.stateNode),sl=r,cl=i;break;case 5:el||Gc(n,t);case 6:if(r=sl,i=cl,sl=null,ll(e,t,n),sl=r,cl=i,sl!==null)if(cl)try{(sl.nodeType===9?sl.body:sl.nodeName===`HTML`?sl.ownerDocument.body:sl).removeChild(n.stateNode)}catch(e){Z(n,t,e)}else try{sl.removeChild(n.stateNode)}catch(e){Z(n,t,e)}break;case 18:sl!==null&&(cl?(e=sl,Qd(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Np(e)):Qd(sl,n.stateNode));break;case 4:r=sl,i=cl,sl=n.stateNode.containerInfo,cl=!0,ll(e,t,n),sl=r,cl=i;break;case 0:case 11:case 14:case 15:Vc(2,n,t),el||Vc(4,n,t),ll(e,t,n);break;case 1:el||(Gc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&Uc(n,t,r)),ll(e,t,n);break;case 21:ll(e,t,n);break;case 22:el=(r=el)||n.memoizedState!==null,ll(e,t,n),el=r;break;default:ll(e,t,n)}}function dl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Np(e)}catch(e){Z(t,t.return,e)}}}function fl(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Np(e)}catch(e){Z(t,t.return,e)}}function pl(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new nl),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new nl),t;default:throw Error(s(435,e.tag))}}function ml(e,t){var n=pl(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=Yu.bind(null,e,t);t.then(r,r)}})}function hl(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r],a=e,o=t,c=o;a:for(;c!==null;){switch(c.tag){case 27:if(Zd(c.type)){sl=c.stateNode,cl=!1;break a}break;case 5:sl=c.stateNode,cl=!1;break a;case 3:case 4:sl=c.stateNode.containerInfo,cl=!0;break a}c=c.return}if(sl===null)throw Error(s(160));ul(a,o,i),sl=null,cl=!1,a=i.alternate,a!==null&&(a.return=null),i.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)_l(t,e),t=t.sibling}var gl=null;function _l(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:hl(t,e),vl(e),r&4&&(Vc(3,e,e.return),Bc(3,e),Vc(5,e,e.return));break;case 1:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&64&&$c&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var i=gl;if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),r&4){var a=n===null?null:n.memoizedState;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){a:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;b:switch(r){case`title`:a=i.getElementsByTagName(`title`)[0],(!a||a[mt]||a[ct]||a.namespaceURI===`http://www.w3.org/2000/svg`||a.hasAttribute(`itemprop`))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector(`head > title`))),Pd(a,r,n),a[ct]=e,bt(a),r=a;break a;case`link`:var o=Vf(`link`,`href`,i).get(r+(n.href||``));if(o){for(var c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&a.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&a.getAttribute(`title`)===(n.title==null?null:n.title)&&a.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;case`meta`:if(o=Vf(`meta`,`content`,i).get(r+(n.content||``))){for(c=0;c<o.length;c++)if(a=o[c],a.getAttribute(`content`)===(n.content==null?null:``+n.content)&&a.getAttribute(`name`)===(n.name==null?null:n.name)&&a.getAttribute(`property`)===(n.property==null?null:n.property)&&a.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&a.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(c,1);break b}}a=i.createElement(r),Pd(a,r,n),i.head.appendChild(a);break;default:throw Error(s(468,r))}a[ct]=e,bt(a),r=a}e.stateNode=r}else Hf(i,e.type,e.stateNode);else e.stateNode=If(i,r,e.memoizedProps);else a===r?r===null&&e.stateNode!==null&&qc(e,e.memoizedProps,n.memoizedProps):(a===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):a.count--,r===null?Hf(i,e.type,e.stateNode):If(i,r,e.memoizedProps))}break;case 27:hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),n!==null&&r&4&&qc(e,e.memoizedProps,n.memoizedProps);break;case 5:if(hl(t,e),vl(e),r&512&&(el||n===null||Gc(n,n.return)),e.flags&32){i=e.stateNode;try{Wt(i,``)}catch(t){Z(e,e.return,t)}}r&4&&e.stateNode!=null&&(i=e.memoizedProps,qc(e,i,n===null?i:n.memoizedProps)),r&1024&&(tl=!0);break;case 6:if(hl(t,e),vl(e),r&4){if(e.stateNode===null)throw Error(s(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(t){Z(e,e.return,t)}}break;case 3:if(Bf=null,i=gl,gl=gf(t.containerInfo),hl(t,e),gl=i,vl(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Np(t.containerInfo)}catch(t){Z(e,e.return,t)}tl&&(tl=!1,yl(e));break;case 4:r=gl,gl=gf(e.stateNode.containerInfo),hl(t,e),vl(e),gl=r;break;case 12:hl(t,e),vl(e);break;case 31:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 13:hl(t,e),vl(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&($l=De()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 22:i=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,u=$c,d=el;if($c=u||i,el=d||l,hl(t,e),el=d,$c=u,vl(e),r&8192)a:for(t=e.stateNode,t._visibility=i?t._visibility&-2:t._visibility|1,i&&(n===null||l||$c||el||xl(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(a=l.stateNode,i)o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`;else{c=l.stateNode;var f=l.memoizedProps.style,p=f!=null&&f.hasOwnProperty(`display`)?f.display:null;c.style.display=p==null||typeof p==`boolean`?``:(``+p).trim()}}catch(e){Z(l,l.return,e)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=i?``:l.memoizedProps}catch(e){Z(l,l.return,e)}}}else if(t.tag===18){if(n===null){l=t;try{var m=l.stateNode;i?$d(m,!0):$d(l.stateNode,!1)}catch(e){Z(l,l.return,e)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break a;for(;t.sibling===null;){if(t.return===null||t.return===e)break a;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,ml(e,n))));break;case 19:hl(t,e),vl(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,ml(e,r)));break;case 30:break;case 21:break;default:hl(t,e),vl(e)}}function vl(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Jc(r)){n=r;break}r=r.return}if(n==null)throw Error(s(160));switch(n.tag){case 27:var i=n.stateNode;Zc(e,Yc(e),i);break;case 5:var a=n.stateNode;n.flags&32&&(Wt(a,``),n.flags&=-33),Zc(e,Yc(e),a);break;case 3:case 4:var o=n.stateNode.containerInfo;Xc(e,Yc(e),o);break;default:throw Error(s(161))}}catch(t){Z(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function yl(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;yl(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function bl(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)al(e,t.alternate,t),t=t.sibling}function xl(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Vc(4,t,t.return),xl(t);break;case 1:Gc(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount==`function`&&Uc(t,t.return,n),xl(t);break;case 27:pf(t.stateNode);case 26:case 5:Gc(t,t.return),xl(t);break;case 22:t.memoizedState===null&&xl(t);break;case 30:xl(t);break;default:xl(t)}e=e.sibling}}function Sl(e,t,n){for(n&&=(t.subtreeFlags&8772)!=0,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Sl(i,a,n),Bc(4,a);break;case 1:if(Sl(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){Z(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var s=r.stateNode;try{var c=i.shared.hiddenCallbacks;if(c!==null)for(i.shared.hiddenCallbacks=null,i=0;i<c.length;i++)Ka(c[i],s)}catch(e){Z(r,r.return,e)}}n&&o&64&&Hc(a),Wc(a,a.return);break;case 27:Qc(a);case 26:case 5:Sl(i,a,n),n&&r===null&&o&4&&Kc(a),Wc(a,a.return);break;case 12:Sl(i,a,n);break;case 31:Sl(i,a,n),n&&o&4&&dl(i,a);break;case 13:Sl(i,a,n),n&&o&4&&fl(i,a);break;case 22:a.memoizedState===null&&Sl(i,a,n),Wc(a,a.return);break;case 30:break;default:Sl(i,a,n)}t=t.sibling}}function Cl(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&aa(n))}function wl(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e))}function Tl(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)El(e,t,n,r),t=t.sibling}function El(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Tl(e,t,n,r),i&2048&&Bc(9,t);break;case 1:Tl(e,t,n,r);break;case 3:Tl(e,t,n,r),i&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&aa(e)));break;case 12:if(i&2048){Tl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;typeof s==`function`&&s(o,t.alternate===null?`mount`:`update`,e.passiveEffectDuration,-0)}catch(e){Z(t,t.return,e)}}else Tl(e,t,n,r);break;case 31:Tl(e,t,n,r);break;case 13:Tl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,t.memoizedState===null?a._visibility&2?Tl(e,t,n,r):(a._visibility|=2,Dl(e,t,n,r,(t.subtreeFlags&10256)!=0||!1)):a._visibility&2?Tl(e,t,n,r):Ol(e,t),i&2048&&Cl(o,t);break;case 24:Tl(e,t,n,r),i&2048&&wl(t.alternate,t);break;default:Tl(e,t,n,r)}}function Dl(e,t,n,r,i){for(i&&=(t.subtreeFlags&10256)!=0||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Dl(a,o,s,c,i),Bc(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Dl(a,o,s,c,i)):u._visibility&2?Dl(a,o,s,c,i):Ol(a,o),i&&l&2048&&Cl(o.alternate,o);break;case 24:Dl(a,o,s,c,i),i&&l&2048&&wl(o.alternate,o);break;default:Dl(a,o,s,c,i)}t=t.sibling}}function Ol(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:Ol(n,r),i&2048&&Cl(r.alternate,r);break;case 24:Ol(n,r),i&2048&&wl(r.alternate,r);break;default:Ol(n,r)}t=t.sibling}}var kl=8192;function Al(e,t,n){if(e.subtreeFlags&kl)for(e=e.child;e!==null;)jl(e,t,n),e=e.sibling}function jl(e,t,n){switch(e.tag){case 26:Al(e,t,n),e.flags&kl&&e.memoizedState!==null&&Gf(n,gl,e.memoizedState,e.memoizedProps);break;case 5:Al(e,t,n);break;case 3:case 4:var r=gl;gl=gf(e.stateNode.containerInfo),Al(e,t,n),gl=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=kl,kl=16777216,Al(e,t,n),kl=r):Al(e,t,n));break;default:Al(e,t,n)}}function Ml(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Nl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Pl(e),e=e.sibling}function Pl(e){switch(e.tag){case 0:case 11:case 15:Nl(e),e.flags&2048&&Vc(9,e,e.return);break;case 3:Nl(e);break;case 12:Nl(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Fl(e)):Nl(e);break;default:Nl(e)}}function Fl(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];rl=r,Il(r,e)}Ml(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Vc(8,t,t.return),Fl(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Fl(t));break;default:Fl(t)}e=e.sibling}}function Il(e,t){for(;rl!==null;){var n=rl;switch(n.tag){case 0:case 11:case 15:Vc(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:aa(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,rl=r;else a:for(n=e;rl!==null;){r=rl;var i=r.sibling,a=r.return;if(ol(r),r===n){rl=null;break a}if(i!==null){i.return=a,rl=i;break a}rl=a}}}var Ll={getCacheForType:function(e){var t=Zi(ra),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Zi(ra).controller.signal}},Rl=typeof WeakMap==`function`?WeakMap:Map,K=0,q=null,J=null,Y=0,X=0,zl=null,Bl=!1,Vl=!1,Hl=!1,Ul=0,Wl=0,Gl=0,Kl=0,ql=0,Jl=0,Yl=0,Xl=null,Zl=null,Ql=!1,$l=0,eu=0,tu=1/0,nu=null,ru=null,iu=0,au=null,ou=null,su=0,cu=0,lu=null,uu=null,du=0,fu=null;function pu(){return K&2&&Y!==0?Y&-Y:O.T===null?at():dd()}function mu(){if(Jl===0)if(!(Y&536870912)||U){var e=We;We<<=1,!(We&3932160)&&(We=262144),Jl=e}else Jl=536870912;return e=$a.current,e!==null&&(e.flags|=32),Jl}function hu(e,t,n){(e===q&&(X===2||X===9)||e.cancelPendingCommit!==null)&&(Su(e,0),yu(e,Y,Jl,!1)),Qe(e,n),(!(K&2)||e!==q)&&(e===q&&(!(K&2)&&(Kl|=n),Wl===4&&yu(e,Y,Jl,!1)),rd(e))}function gu(e,t,n){if(K&6)throw Error(s(327));var r=!n&&(t&127)==0&&(t&e.expiredLanes)===0||Je(e,t),i=r?Au(e,t):Ou(e,t,!0),a=r;do{if(i===0){Vl&&!r&&yu(e,t,0,!1);break}else{if(n=e.current.alternate,a&&!vu(n)){i=Ou(e,t,!1),a=!1;continue}if(i===2){if(a=t,e.errorRecoveryDisabledLanes&a)var o=0;else o=e.pendingLanes&-536870913,o=o===0?o&536870912?536870912:0:o;if(o!==0){t=o;a:{var c=e;i=Xl;var l=c.current.memoizedState.isDehydrated;if(l&&(Su(c,o).flags|=256),o=Ou(c,o,!1),o!==2){if(Hl&&!l){c.errorRecoveryDisabledLanes|=a,Kl|=a,i=4;break a}a=Zl,Zl=i,a!==null&&(Zl===null?Zl=a:Zl.push.apply(Zl,a))}i=o}if(a=!1,i!==2)continue}}if(i===1){Su(e,0),yu(e,t,0,!0);break}a:{switch(r=e,a=i,a){case 0:case 1:throw Error(s(345));case 4:if((t&4194048)!==t)break;case 6:yu(r,t,Jl,!Bl);break a;case 2:Zl=null;break;case 3:case 5:break;default:throw Error(s(329))}if((t&62914560)===t&&(i=$l+300-De(),10<i)){if(yu(r,t,Jl,!Bl),qe(r,0,!0)!==0)break a;su=t,r.timeoutHandle=Kd(_u.bind(null,r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,a,`Throttled`,-0,0),i);break a}_u(r,n,Zl,nu,Ql,t,Jl,Kl,Yl,Bl,a,null,-0,0)}}break}while(1);rd(e)}function _u(e,t,n,r,i,a,o,s,c,l,u,d,f,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)==16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Qt},jl(t,a,d);var m=(a&62914560)===a?$l-De():(a&4194048)===a?eu-De():0;if(m=qf(d,m),m!==null){su=a,e.cancelPendingCommit=m(Lu.bind(null,e,t,a,n,r,i,o,s,c,u,d,null,f,p)),yu(e,a,o,!l);return}}Lu(e,t,a,n,r,i,o,s,c)}function vu(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(!vr(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 yu(e,t,n,r){t&=~ql,t&=~Kl,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ze(i),o=1<<a;r[a]=-1,i&=~o}n!==0&&et(e,n,t)}function bu(){return K&6?!0:(id(0,!1),!1)}function xu(){if(J!==null){if(X===0)var e=J.return;else e=J,Ui=Hi=null,Eo(e),Oa=null,ka=0,e=J;for(;e!==null;)zc(e.alternate,e),e=e.return;J=null}}function Su(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,qd(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),su=0,xu(),q=e,J=n=oi(e.current,null),Y=t,X=0,zl=null,Bl=!1,Vl=Je(e,t),Hl=!1,Yl=Jl=ql=Kl=Gl=Wl=0,Zl=Xl=null,Ql=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var i=31-ze(r),a=1<<i;t|=e[i],r&=~a}return Ul=t,Xr(),n}function Cu(e,t){W=null,O.H=Is,t===va||t===ba?(t=Ea(),X=3):t===ya?(t=Ea(),X=4):X=t===ec?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,zl=t,J===null&&(Wl=1,Js(e,mi(t,e.current)))}function wu(){var e=$a.current;return e===null?!0:(Y&4194048)===Y?eo===null:(Y&62914560)===Y||Y&536870912?e===eo:!1}function Tu(){var e=O.H;return O.H=Is,e===null?Is:e}function Eu(){var e=O.A;return O.A=Ll,e}function Du(){Wl=4,Bl||(Y&4194048)!==Y&&$a.current!==null||(Vl=!0),!(Gl&134217727)&&!(Kl&134217727)||q===null||yu(q,Y,Jl,!1)}function Ou(e,t,n){var r=K;K|=2;var i=Tu(),a=Eu();(q!==e||Y!==t)&&(nu=null,Su(e,t)),t=!1;var o=Wl;a:do try{if(X!==0&&J!==null){var s=J,c=zl;switch(X){case 8:xu(),o=6;break a;case 3:case 2:case 9:case 6:$a.current===null&&(t=!0);var l=X;if(X=0,zl=null,Pu(e,s,c,l),n&&Vl){o=0;break a}break;default:l=X,X=0,zl=null,Pu(e,s,c,l)}}ku(),o=Wl;break}catch(t){Cu(e,t)}while(1);return t&&e.shellSuspendCounter++,Ui=Hi=null,K=r,O.H=i,O.A=a,J===null&&(q=null,Y=0,Xr()),o}function ku(){for(;J!==null;)Mu(J)}function Au(e,t){var n=K;K|=2;var r=Tu(),i=Eu();q!==e||Y!==t?(nu=null,tu=De()+500,Su(e,t)):Vl=Je(e,t);a:do try{if(X!==0&&J!==null){t=J;var a=zl;b:switch(X){case 1:X=0,zl=null,Pu(e,t,a,1);break;case 2:case 9:if(Sa(a)){X=0,zl=null,Nu(t);break}t=function(){X!==2&&X!==9||q!==e||(X=7),rd(e)},a.then(t,t);break a;case 3:X=7;break a;case 4:X=5;break a;case 7:Sa(a)?(X=0,zl=null,Nu(t)):(X=0,zl=null,Pu(e,t,a,7));break;case 5:var o=null;switch(J.tag){case 26:o=J.memoizedState;case 5:case 27:var c=J;if(o?Wf(o):c.stateNode.complete){X=0,zl=null;var l=c.sibling;if(l!==null)J=l;else{var u=c.return;u===null?J=null:(J=u,Fu(u))}break b}}X=0,zl=null,Pu(e,t,a,5);break;case 6:X=0,zl=null,Pu(e,t,a,6);break;case 8:xu(),Wl=6;break a;default:throw Error(s(462))}}ju();break}catch(t){Cu(e,t)}while(1);return Ui=Hi=null,O.H=r,O.A=i,K=n,J===null?(q=null,Y=0,Xr(),Wl):0}function ju(){for(;J!==null&&!Te();)Mu(J)}function Mu(e){var t=Ac(e.alternate,e,Ul);e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Nu(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=mc(n,t,t.pendingProps,t.type,void 0,Y);break;case 11:t=mc(n,t,t.pendingProps,t.type.render,t.ref,Y);break;case 5:Eo(t);default:zc(n,t),t=J=si(t,Ul),t=Ac(n,t,Ul)}e.memoizedProps=e.pendingProps,t===null?Fu(e):J=t}function Pu(e,t,n,r){Ui=Hi=null,Eo(t),Oa=null,ka=0;var i=t.return;try{if($s(e,i,t,n,Y)){Wl=1,Js(e,mi(n,e.current)),J=null;return}}catch(t){if(i!==null)throw J=i,t;Wl=1,Js(e,mi(n,e.current)),J=null;return}t.flags&32768?(U||r===1?e=!0:Vl||Y&536870912?e=!1:(Bl=e=!0,(r===2||r===9||r===3||r===6)&&(r=$a.current,r!==null&&r.tag===13&&(r.flags|=16384))),Iu(t,e)):Fu(t)}function Fu(e){var t=e;do{if(t.flags&32768){Iu(t,Bl);return}e=t.return;var n=Lc(t.alternate,t,Ul);if(n!==null){J=n;return}if(t=t.sibling,t!==null){J=t;return}J=t=e}while(t!==null);Wl===0&&(Wl=5)}function Iu(e,t){do{var n=Rc(e.alternate,e);if(n!==null){n.flags&=32767,J=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){J=e;return}J=e=n}while(e!==null);Wl=6,J=null}function Lu(e,t,n,r,i,a,o,c,l){e.cancelPendingCommit=null;do Hu();while(iu!==0);if(K&6)throw Error(s(327));if(t!==null){if(t===e.current)throw Error(s(177));if(a=t.lanes|t.childLanes,a|=Yr,$e(e,n,a,o,c,l),e===q&&(J=q=null,Y=0),ou=t,au=e,su=n,cu=a,lu=i,uu=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,Xu(je,function(){return Uu(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!=0,t.subtreeFlags&13878||r){r=O.T,O.T=null,i=k.p,k.p=2,o=K,K|=4;try{il(e,t,n)}finally{K=o,k.p=i,O.T=r}}iu=1,Ru(),zu(),Bu()}}function Ru(){if(iu===1){iu=0;var e=au,t=ou,n=(t.flags&13878)!=0;if(t.subtreeFlags&13878||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=K;K|=4;try{_l(t,e);var a=zd,o=Cr(e.containerInfo),s=a.focusedElem,c=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&Sr(s.ownerDocument.documentElement,s)){if(c!==null&&wr(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 _=xr(s,h),v=xr(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}}sp=!!Rd,zd=Rd=null}finally{K=i,k.p=r,O.T=n}}e.current=t,iu=2}}function zu(){if(iu===2){iu=0;var e=au,t=ou,n=(t.flags&8772)!=0;if(t.subtreeFlags&8772||n){n=O.T,O.T=null;var r=k.p;k.p=2;var i=K;K|=4;try{al(e,t.alternate,t)}finally{K=i,k.p=r,O.T=n}}iu=3}}function Bu(){if(iu===4||iu===3){iu=0,Ee();var e=au,t=ou,n=su,r=uu;t.subtreeFlags&10256||t.flags&10256?iu=5:(iu=0,ou=au=null,Vu(e,e.pendingLanes));var i=e.pendingLanes;if(i===0&&(ru=null),it(n),t=t.stateNode,Le&&typeof Le.onCommitFiberRoot==`function`)try{Le.onCommitFiberRoot(Ie,t,void 0,(t.current.flags&128)==128)}catch{}if(r!==null){t=O.T,i=k.p,k.p=2,O.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{O.T=t,k.p=i}}su&3&&Hu(),rd(e),i=e.pendingLanes,n&261930&&i&42?e===fu?du++:(du=0,fu=e):du=0,id(0,!1)}}function Vu(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,aa(t)))}function Hu(){return Ru(),zu(),Bu(),Uu()}function Uu(){if(iu!==5)return!1;var e=au,t=cu;cu=0;var n=it(su),r=O.T,i=k.p;try{k.p=32>n?32:n,O.T=null,n=lu,lu=null;var a=au,o=su;if(iu=0,ou=au=null,su=0,K&6)throw Error(s(331));var c=K;if(K|=4,Pl(a.current),El(a,a.current,o,n),K=c,id(0,!1),Le&&typeof Le.onPostCommitFiberRoot==`function`)try{Le.onPostCommitFiberRoot(Ie,a)}catch{}return!0}finally{k.p=i,O.T=r,Vu(e,t)}}function Wu(e,t,n){t=mi(n,t),t=Xs(e.stateNode,t,2),e=Ba(e,t,2),e!==null&&(Qe(e,2),rd(e))}function Z(e,t,n){if(e.tag===3)Wu(e,e,n);else for(;t!==null;){if(t.tag===3){Wu(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(ru===null||!ru.has(r))){e=mi(n,e),n=Zs(2),r=Ba(t,n,2),r!==null&&(Qs(n,r,t,e),Qe(r,2),rd(r));break}}t=t.return}}function Gu(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Rl;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(Hl=!0,i.add(n),e=Ku.bind(null,e,t,n),t.then(e,e))}function Ku(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,q===e&&(Y&n)===n&&(Wl===4||Wl===3&&(Y&62914560)===Y&&300>De()-$l?!(K&2)&&Su(e,0):ql|=n,Yl===Y&&(Yl=0)),rd(e)}function qu(e,t){t===0&&(t=Xe()),e=$r(e,t),e!==null&&(Qe(e,t),rd(e))}function Ju(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),qu(e,n)}function Yu(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(s(314))}r!==null&&r.delete(t),qu(e,n)}function Xu(e,t){return Ce(e,t)}var Zu=null,Qu=null,$u=!1,ed=!1,td=!1,nd=0;function rd(e){e!==Qu&&e.next===null&&(Qu===null?Zu=Qu=e:Qu=Qu.next=e),ed=!0,$u||($u=!0,ud())}function id(e,t){if(!td&&ed){td=!0;do for(var n=!1,r=Zu;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-ze(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,ld(r,a))}else a=Y,a=qe(r,r===q?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||Je(r,a)||(n=!0,ld(r,a));r=r.next}while(n);td=!1}}function ad(){od()}function od(){ed=$u=!1;var e=0;nd!==0&&Gd()&&(e=nd);for(var t=De(),n=null,r=Zu;r!==null;){var i=r.next,a=sd(r,t);a===0?(r.next=null,n===null?Zu=i:n.next=i,i===null&&(Qu=n)):(n=r,(e!==0||a&3)&&(ed=!0)),r=i}iu!==0&&iu!==5||id(e,!1),nd!==0&&(nd=0)}function sd(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-ze(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=Ye(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=q,n=Y,n=qe(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(X===2||X===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&we(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||Je(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&we(r),it(n)){case 2:case 8:n=Ae;break;case 32:n=je;break;case 268435456:n=Ne;break;default:n=je}return r=cd.bind(null,e),n=Ce(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&we(r),e.callbackPriority=2,e.callbackNode=null,2}function cd(e,t){if(iu!==0&&iu!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(Hu()&&e.callbackNode!==n)return null;var r=Y;return r=qe(e,e===q?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(gu(e,r,t),sd(e,De()),e.callbackNode!=null&&e.callbackNode===n?cd.bind(null,e):null)}function ld(e,t){if(Hu())return null;gu(e,t,!0)}function ud(){Yd(function(){K&6?Ce(ke,ad):od()})}function dd(){if(nd===0){var e=ca;e===0&&(e=Ue,Ue<<=1,!(Ue&261888)&&(Ue=256)),nd=e}return nd}function fd(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:Zt(``+e)}function pd(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 md(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=fd((i[lt]||null).action),o=r.submitter;o&&(t=(t=o[lt]||null)?fd(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new vn(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(nd!==0){var e=o?pd(i,o):new FormData(i);Ss(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=o?pd(i,o):new FormData(i),Ss(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var hd=0;hd<Wr.length;hd++){var gd=Wr[hd];Gr(gd.toLowerCase(),`on`+(gd[0].toUpperCase()+gd.slice(1)))}Gr(Ir,`onAnimationEnd`),Gr(Lr,`onAnimationIteration`),Gr(Rr,`onAnimationStart`),Gr(`dblclick`,`onDoubleClick`),Gr(`focusin`,`onFocus`),Gr(`focusout`,`onBlur`),Gr(zr,`onTransitionRun`),Gr(Br,`onTransitionStart`),Gr(Vr,`onTransitionCancel`),Gr(Hr,`onTransitionEnd`),Ct(`onMouseEnter`,[`mouseout`,`mouseover`]),Ct(`onMouseLeave`,[`mouseout`,`mouseover`]),Ct(`onPointerEnter`,[`pointerout`,`pointerover`]),Ct(`onPointerLeave`,[`pointerout`,`pointerover`]),R(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),R(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),R(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),R(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),R(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),R(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var _d=`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(` `),vd=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(_d));function yd(e,t){t=(t&4)!=0;for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){Kr(e)}i.currentTarget=null,a=c}}}}function Q(e,t){var n=t[ut];n===void 0&&(n=t[ut]=new Set);var r=e+`__bubble`;n.has(r)||(Cd(t,e,2,!1),n.add(r))}function bd(e,t,n){var r=0;t&&(r|=4),Cd(n,e,r,t)}var xd=`_reactListening`+Math.random().toString(36).slice(2);function Sd(e){if(!e[xd]){e[xd]=!0,xt.forEach(function(t){t!==`selectionchange`&&(vd.has(t)||bd(t,!1,e),bd(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[xd]||(t[xd]=!0,bd(`selectionchange`,!1,t))}}function Cd(e,t,n,r){switch(mp(t)){case 2:var i=cp;break;case 8:i=lp;break;default:i=up}n=i.bind(null,t,n,e),i=void 0,!sn||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 wd(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=gt(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}rn(function(){var r=a,i=en(n),o=[];a:{var s=Ur.get(e);if(s!==void 0){var c=vn,u=e;switch(e){case`keypress`:if(pn(n)===0)break a;case`keydown`:case`keyup`:c=In;break;case`focusin`:u=`focus`,c=Dn;break;case`focusout`:u=`blur`,c=Dn;break;case`beforeblur`:case`afterblur`:c=Dn;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=Tn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=En;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=Rn;break;case Ir:case Lr:case Rr:c=On;break;case Hr:c=zn;break;case`scroll`:case`scrollend`:c=bn;break;case`wheel`:c=Bn;break;case`copy`:case`cut`:case`paste`:c=kn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Ln;break;case`toggle`:case`beforetoggle`:c=Vn}var d=(t&4)!=0,f=!d&&(e===`scroll`||e===`scrollend`),p=d?s===null?null:s+`Capture`:s;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=an(m,p),g!=null&&d.push(Td(m,g,h))),f)break;m=m.return}0<d.length&&(s=new c(s,u,null,n,i),o.push({event:s,listeners:d}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==$t&&(u=n.relatedTarget||n.fromElement)&&(gt(u)||u[L]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(u=n.relatedTarget||n.toElement,c=r,u=u?gt(u):null,u!==null&&(f=l(u),d=u.tag,u!==f||d!==5&&d!==27&&d!==6)&&(u=null)):(c=null,u=r),c!==u)){if(d=Tn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=Ln,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?s:vt(c),h=u==null?s:vt(u),s=new d(g,m+`leave`,c,n,i),s.target=f,s.relatedTarget=h,g=null,gt(i)===r&&(d=new d(p,m+`enter`,u,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,c&&u)b:{for(d=Dd,p=c,m=u,h=0,g=p;g;g=d(g))h++;g=0;for(var _=m;_;_=d(_))g++;for(;0<h-g;)p=d(p),h--;for(;0<g-h;)m=d(m),g--;for(;h--;){if(p===m||m!==null&&p===m.alternate){d=p;break b}p=d(p),m=d(m)}d=null}else d=null;c!==null&&Od(o,s,c,d,!1),u!==null&&f!==null&&Od(o,f,u,d,!0)}}a:{if(s=r?vt(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var v=sr;else if(tr(s))if(cr)v=gr;else{v=mr;var y=pr}else c=s.nodeName,!c||c.toLowerCase()!==`input`||s.type!==`checkbox`&&s.type!==`radio`?r&&Jt(r.elementType)&&(v=sr):v=hr;if(v&&=v(e,r)){nr(o,v,n,i);break a}y&&y(e,s,r),e===`focusout`&&r&&s.type===`number`&&r.memoizedProps.value!=null&&Bt(s,`number`,s.value)}switch(y=r?vt(r):window,e){case`focusin`:(tr(y)||y.contentEditable===`true`)&&(Er=y,Dr=r,Or=null);break;case`focusout`:Or=Dr=Er=null;break;case`mousedown`:kr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:kr=!1,Ar(o,n,i);break;case`selectionchange`:if(Tr)break;case`keydown`:case`keyup`:Ar(o,n,i)}var b;if(Un)b:{switch(e){case`compositionstart`:var x=`onCompositionStart`;break b;case`compositionend`:x=`onCompositionEnd`;break b;case`compositionupdate`:x=`onCompositionUpdate`;break b}x=void 0}else Zn?Yn(e,n)&&(x=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(x=`onCompositionStart`);x&&(Kn&&n.locale!==`ko`&&(Zn||x!==`onCompositionStart`?x===`onCompositionEnd`&&Zn&&(b=fn()):(ln=i,un=`value`in ln?ln.value:ln.textContent,Zn=!0)),y=Ed(r,x),0<y.length&&(x=new An(x,e,null,n,i),o.push({event:x,listeners:y}),b?x.data=b:(b=Xn(n),b!==null&&(x.data=b)))),(b=Gn?Qn(e,n):$n(e,n))&&(x=Ed(r,`onBeforeInput`),0<x.length&&(y=new An(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:y,listeners:x}),y.data=b)),md(o,e,r,n,i)}yd(o,t)})}function Td(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Ed(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=an(e,n),i!=null&&r.unshift(Td(e,i,a)),i=an(e,t),i!=null&&r.push(Td(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Dd(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Od(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=an(n,a),l!=null&&o.unshift(Td(n,l,c))):i||(l=an(n,a),l!=null&&o.push(Td(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var kd=/\r\n?/g,Ad=/\u0000|\uFFFD/g;function jd(e){return(typeof e==`string`?e:``+e).replace(kd,`
|
|
9
|
-
`).replace(Ad,``)}function Md(e,t){return t=jd(t),jd(e)===t}function $(e,t,n,r,i,a){switch(n){case`children`:typeof r==`string`?t===`body`||t===`textarea`&&r===``||Wt(e,r):(typeof r==`number`||typeof r==`bigint`)&&t!==`body`&&Wt(e,``+r);break;case`className`:kt(e,`class`,r);break;case`tabIndex`:kt(e,`tabindex`,r);break;case`dir`:case`role`:case`viewBox`:case`width`:case`height`:kt(e,n,r);break;case`style`:qt(e,r,a);break;case`data`:if(t!==`object`){kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)){e.removeAttribute(n);break}if(r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Zt(``+r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}else typeof a==`function`&&(n===`formAction`?(t!==`input`&&$(e,t,`name`,i.name,i,null),$(e,t,`formEncType`,i.formEncType,i,null),$(e,t,`formMethod`,i.formMethod,i,null),$(e,t,`formTarget`,i.formTarget,i,null)):($(e,t,`encType`,i.encType,i,null),$(e,t,`method`,i.method,i,null),$(e,t,`target`,i.target,i,null)));if(r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=Zt(``+r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=Qt);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`multiple`:e.multiple=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`muted`:e.muted=r&&typeof r!=`function`&&typeof r!=`symbol`;break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`defaultValue`:case`defaultChecked`:case`innerHTML`:case`ref`:break;case`autoFocus`:break;case`xlinkHref`:if(r==null||typeof r==`function`||typeof r==`boolean`||typeof r==`symbol`){e.removeAttribute(`xlink:href`);break}n=Zt(``+r),e.setAttributeNS(`http://www.w3.org/1999/xlink`,`xlink:href`,n);break;case`contentEditable`:case`spellCheck`:case`draggable`:case`value`:case`autoReverse`:case`externalResourcesRequired`:case`focusable`:case`preserveAlpha`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``+r):e.removeAttribute(n);break;case`inert`:case`allowFullScreen`:case`async`:case`autoPlay`:case`controls`:case`default`:case`defer`:case`disabled`:case`disablePictureInPicture`:case`disableRemotePlayback`:case`formNoValidate`:case`hidden`:case`loop`:case`noModule`:case`noValidate`:case`open`:case`playsInline`:case`readOnly`:case`required`:case`reversed`:case`scoped`:case`seamless`:case`itemScope`:r&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,``):e.removeAttribute(n);break;case`capture`:case`download`:!0===r?e.setAttribute(n,``):!1!==r&&r!=null&&typeof r!=`function`&&typeof r!=`symbol`?e.setAttribute(n,r):e.removeAttribute(n);break;case`cols`:case`rows`:case`size`:case`span`:r!=null&&typeof r!=`function`&&typeof r!=`symbol`&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case`rowSpan`:case`start`:r==null||typeof r==`function`||typeof r==`symbol`||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case`popover`:Q(`beforetoggle`,e),Q(`toggle`,e),Ot(e,`popover`,r);break;case`xlinkActuate`:At(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:At(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:At(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:At(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:At(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:At(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Ot(e,`is`,r);break;case`innerText`:case`textContent`:break;default:(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)&&(n=Yt.get(n)||n,Ot(e,n,r))}}function Nd(e,t,n,r,i,a){switch(n){case`style`:qt(e,r,a);break;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(s(61));if(n=r.__html,n!=null){if(i.children!=null)throw Error(s(60));e.innerHTML=n}}break;case`children`:typeof r==`string`?Wt(e,r):(typeof r==`number`||typeof r==`bigint`)&&Wt(e,``+r);break;case`onScroll`:r!=null&&Q(`scroll`,e);break;case`onScrollEnd`:r!=null&&Q(`scrollend`,e);break;case`onClick`:r!=null&&(e.onclick=Qt);break;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:break;case`innerText`:case`textContent`:break;default:if(!St.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(i=n.endsWith(`Capture`),t=n.slice(2,i?n.length-7:void 0),a=e[lt]||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,``):Ot(e,n,r)}}}function Pd(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Q(`error`,e),Q(`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(s(137,t));default:$(e,t,a,o,n,null)}}i&&$(e,t,`srcSet`,n.srcSet,n,null),r&&$(e,t,`src`,n.src,n,null);return;case`input`:Q(`invalid`,e);var c=a=o=i=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:i=d;break;case`type`:o=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:a=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(s(137,t));break;default:$(e,t,r,d,n,null)}}zt(e,a,c,l,u,o,i,!1);return;case`select`:for(i in Q(`invalid`,e),r=o=a=null,n)if(n.hasOwnProperty(i)&&(c=n[i],c!=null))switch(i){case`value`:a=c;break;case`defaultValue`:o=c;break;case`multiple`:r=c;default:$(e,t,i,c,n,null)}t=a,n=o,e.multiple=!!r,t==null?n!=null&&Vt(e,!!r,n,!0):Vt(e,!!r,t,!1);return;case`textarea`:for(o in Q(`invalid`,e),a=i=r=null,n)if(n.hasOwnProperty(o)&&(c=n[o],c!=null))switch(o){case`value`:r=c;break;case`defaultValue`:i=c;break;case`children`:a=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(s(91));break;default:$(e,t,o,c,n,null)}Ut(e,r,i,a);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:$(e,t,l,r,n,null)}return;case`dialog`:Q(`beforetoggle`,e),Q(`toggle`,e),Q(`cancel`,e),Q(`close`,e);break;case`iframe`:case`object`:Q(`load`,e);break;case`video`:case`audio`:for(r=0;r<_d.length;r++)Q(_d[r],e);break;case`image`:Q(`error`,e),Q(`load`,e);break;case`details`:Q(`toggle`,e);break;case`embed`:case`source`:case`link`:Q(`error`,e),Q(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(s(137,t));default:$(e,t,u,r,n,null)}return;default:if(Jt(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&Nd(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&$(e,t,c,r,n,null))}function Fd(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var i=null,a=null,o=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||$(e,t,m,null,r,f)}}for(var p in r){var m=r[p];if(f=n[p],r.hasOwnProperty(p)&&(m!=null||f!=null))switch(p){case`type`:a=m;break;case`name`:i=m;break;case`checked`:u=m;break;case`defaultChecked`:d=m;break;case`value`:o=m;break;case`defaultValue`:c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(s(137,t));break;default:m!==f&&$(e,t,p,m,r,f)}}Rt(e,o,c,l,u,d,a,i);return;case`select`:for(a in m=o=c=p=null,n)if(l=n[a],n.hasOwnProperty(a)&&l!=null)switch(a){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(a)||$(e,t,a,null,r,l)}for(i in r)if(a=r[i],l=n[i],r.hasOwnProperty(i)&&(a!=null||l!=null))switch(i){case`value`:p=a;break;case`defaultValue`:c=a;break;case`multiple`:o=a;default:a!==l&&$(e,t,i,a,r,l)}t=c,n=o,r=m,p==null?!!r!=!!n&&(t==null?Vt(e,!!n,n?[]:``,!1):Vt(e,!!n,t,!0)):Vt(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(i=n[c],n.hasOwnProperty(c)&&i!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:$(e,t,c,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`:p=i;break;case`defaultValue`:m=i;break;case`children`:break;case`dangerouslySetInnerHTML`:if(i!=null)throw Error(s(91));break;default:i!==a&&$(e,t,o,i,r,a)}Ht(e,p,m);return;case`option`:for(var h in n)if(p=n[h],n.hasOwnProperty(h)&&p!=null&&!r.hasOwnProperty(h))switch(h){case`selected`:e.selected=!1;break;default:$(e,t,h,null,r,p)}for(l in r)if(p=r[l],m=n[l],r.hasOwnProperty(l)&&p!==m&&(p!=null||m!=null))switch(l){case`selected`:e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:$(e,t,l,p,r,m)}return;case`img`:case`link`:case`area`:case`base`:case`br`:case`col`:case`embed`:case`hr`:case`keygen`:case`meta`:case`param`:case`source`:case`track`:case`wbr`:case`menuitem`:for(var g in n)p=n[g],n.hasOwnProperty(g)&&p!=null&&!r.hasOwnProperty(g)&&$(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(s(137,t));break;default:$(e,t,u,p,r,m)}return;default:if(Jt(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&Nd(e,t,_,void 0,r,p);for(d in r)p=r[d],m=n[d],!r.hasOwnProperty(d)||p===m||p===void 0&&m===void 0||Nd(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&$(e,t,v,null,r,p);for(f in r)p=r[f],m=n[f],!r.hasOwnProperty(f)||p===m||p==null&&m==null||$(e,t,f,p,r,m)}function Id(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function Ld(){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&&Id(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&&Id(d)&&(c=c.responseEnd,o+=u*(c<s?1:(s-l)/(c-l)))}if(--r,t+=8*(a+o)/(i.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e==`number`)?e:5}var Rd=null,zd=null;function Bd(e){return e.nodeType===9?e:e.ownerDocument}function Vd(e){switch(e){case`http://www.w3.org/2000/svg`:return 1;case`http://www.w3.org/1998/Math/MathML`:return 2;default:return 0}}function Hd(e,t){if(e===0)switch(t){case`svg`:return 1;case`math`:return 2;default:return 0}return e===1&&t===`foreignObject`?0:e}function Ud(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.children==`bigint`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Wd=null;function Gd(){var e=window.event;return e&&e.type===`popstate`?e===Wd?!1:(Wd=e,!0):(Wd=null,!1)}var Kd=typeof setTimeout==`function`?setTimeout:void 0,qd=typeof clearTimeout==`function`?clearTimeout:void 0,Jd=typeof Promise==`function`?Promise:void 0,Yd=typeof queueMicrotask==`function`?queueMicrotask:Jd===void 0?Kd:function(e){return Jd.resolve(null).then(e).catch(Xd)};function Xd(e){setTimeout(function(){throw e})}function Zd(e){return e===`head`}function Qd(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8)if(n=i.data,n===`/$`||n===`/&`){if(r===0){e.removeChild(i),Np(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)pf(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,pf(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[mt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&pf(e.ownerDocument.body);n=i}while(n);Np(t)}function $d(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display=`none`):(n.style.display=n._stashedDisplay||``,n.getAttribute(`style`)===``&&n.removeAttribute(`style`)):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=``):n.nodeValue=n._stashedText||``),r&&r.nodeType===8)if(n=r.data,n===`/$`){if(e===0)break;e--}else n!==`$`&&n!==`$?`&&n!==`$~`&&n!==`$!`||e++;n=r}while(n)}function ef(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`:ef(n),ht(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function tf(e,t,n,r){for(;e.nodeType===1;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!==`INPUT`||e.type!==`hidden`))break}else if(!r)if(t===`input`&&e.type===`hidden`){var a=i.name==null?null:``+i.name;if(i.type===`hidden`&&e.getAttribute(`name`)===a)return e}else return e;else if(!e[mt])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=cf(e.nextSibling),e===null)break}return null}function nf(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=cf(e.nextSibling),e===null))return null;return e}function rf(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=cf(e.nextSibling),e===null))return null;return e}function af(e){return e.data===`$?`||e.data===`$~`}function of(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function sf(e,t){var n=e.ownerDocument;if(e.data===`$~`)e._reactRetry=t;else if(e.data!==`$?`||n.readyState!==`loading`)t();else{var r=function(){t(),n.removeEventListener(`DOMContentLoaded`,r)};n.addEventListener(`DOMContentLoaded`,r),e._reactRetry=r}}function cf(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`||t===`$~`||t===`&`||t===`F!`||t===`F`)break;if(t===`/$`||t===`/&`)return null}}return e}var lf=null;function uf(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return cf(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function df(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`||n===`$~`||n===`&`){if(t===0)return e;t--}else n!==`/$`&&n!==`/&`||t++}e=e.previousSibling}return null}function ff(e,t,n){switch(t=Bd(n),e){case`html`:if(e=t.documentElement,!e)throw Error(s(452));return e;case`head`:if(e=t.head,!e)throw Error(s(453));return e;case`body`:if(e=t.body,!e)throw Error(s(454));return e;default:throw Error(s(451))}}function pf(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);ht(e)}var mf=new Map,hf=new Set;function gf(e){return typeof e.getRootNode==`function`?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var _f=k.d;k.d={f:vf,r:yf,D:Sf,C:Cf,L:wf,m:Tf,X:Df,S:Ef,M:Of};function vf(){var e=_f.f(),t=bu();return e||t}function yf(e){var t=_t(e);t!==null&&t.tag===5&&t.type===`form`?ws(t):_f.r(e)}var bf=typeof document>`u`?null:document;function xf(e,t,n){var r=bf;if(r&&typeof t==`string`&&t){var i=Lt(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),hf.has(i)||(hf.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Sf(e){_f.D(e),xf(`dns-prefetch`,e,null)}function Cf(e,t){_f.C(e,t),xf(`preconnect`,e,t)}function wf(e,t,n){_f.L(e,t,n);var r=bf;if(r&&e&&t){var i=`link[rel="preload"][as="`+Lt(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+Lt(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+Lt(n.imageSizes)+`"]`)):i+=`[href="`+Lt(e)+`"]`;var a=i;switch(t){case`style`:a=Af(e);break;case`script`:a=Pf(e)}mf.has(a)||(e=h({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),mf.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(jf(a))||t===`script`&&r.querySelector(Ff(a))||(t=r.createElement(`link`),Pd(t,`link`,e),bt(t),r.head.appendChild(t)))}}function Tf(e,t){_f.m(e,t);var n=bf;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+Lt(r)+`"][href="`+Lt(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=Pf(e)}if(!mf.has(a)&&(e=h({rel:`modulepreload`,href:e},t),mf.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Ff(a)))return}r=n.createElement(`link`),Pd(r,`link`,e),bt(r),n.head.appendChild(r)}}}function Ef(e,t,n){_f.S(e,t,n);var r=bf;if(r&&e){var i=yt(r).hoistableStyles,a=Af(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(jf(a)))s.loading=5;else{e=h({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=mf.get(a))&&Rf(e,n);var c=o=r.createElement(`link`);bt(c),Pd(c,`link`,e),c._p=new Promise(function(e,t){c.onload=e,c.onerror=t}),c.addEventListener(`load`,function(){s.loading|=1}),c.addEventListener(`error`,function(){s.loading|=2}),s.loading|=4,Lf(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Df(e,t){_f.X(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Of(e,t){_f.M(e,t);var n=bf;if(n&&e){var r=yt(n).hoistableScripts,i=Pf(e),a=r.get(i);a||(a=n.querySelector(Ff(i)),a||(e=h({src:e,async:!0,type:`module`},t),(t=mf.get(i))&&zf(e,t),a=n.createElement(`script`),bt(a),Pd(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function kf(e,t,n,r){var i=(i=P.current)?gf(i):null;if(!i)throw Error(s(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(t=Af(n.href),n=yt(i).hoistableStyles,r=n.get(t),r||(r={type:`style`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Af(n.href);var a=yt(i).hoistableStyles,o=a.get(e);if(o||(i=i.ownerDocument||i,o={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},a.set(e,o),(a=i.querySelector(jf(e)))&&!a._p&&(o.instance=a,o.state.loading=5),mf.has(e)||(n={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},mf.set(e,n),a||Nf(i,e,n,o.state))),t&&r===null)throw Error(s(528,``));return o}if(t&&r!==null)throw Error(s(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(t=Pf(n),n=yt(i).hoistableScripts,r=n.get(t),r||(r={type:`script`,instance:null,count:0,state:null},n.set(t,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(s(444,e))}}function Af(e){return`href="`+Lt(e)+`"`}function jf(e){return`link[rel="stylesheet"][`+e+`]`}function Mf(e){return h({},e,{"data-precedence":e.precedence,precedence:null})}function Nf(e,t,n,r){e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)?r.loading=1:(t=e.createElement(`link`),r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2}),Pd(t,`link`,n),bt(t),e.head.appendChild(t))}function Pf(e){return`[src="`+Lt(e)+`"]`}function Ff(e){return`script[async]`+e}function If(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+Lt(n.href)+`"]`);if(r)return t.instance=r,bt(r),r;var i=h({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),bt(r),Pd(r,`style`,i),Lf(r,n.precedence,e),t.instance=r;case`stylesheet`:i=Af(n.href);var a=e.querySelector(jf(i));if(a)return t.state.loading|=4,t.instance=a,bt(a),a;r=Mf(n),(i=mf.get(i))&&Rf(r,i),a=(e.ownerDocument||e).createElement(`link`),bt(a);var o=a;return o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),t.state.loading|=4,Lf(a,n.precedence,e),t.instance=a;case`script`:return a=Pf(n.src),(i=e.querySelector(Ff(a)))?(t.instance=i,bt(i),i):(r=n,(i=mf.get(a))&&(r=h({},n),zf(r,i)),e=e.ownerDocument||e,i=e.createElement(`script`),bt(i),Pd(i,`link`,r),e.head.appendChild(i),t.instance=i);case`void`:return null;default:throw Error(s(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Lf(r,n.precedence,e));return t.instance}function Lf(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 Rf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function zf(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Bf=null;function Vf(e,t,n){if(Bf===null){var r=new Map,i=Bf=new Map;i.set(n,r)}else i=Bf,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[mt]||a[ct]||e===`link`&&a.getAttribute(`rel`)===`stylesheet`)&&a.namespaceURI!==`http://www.w3.org/2000/svg`){var o=a.getAttribute(t)||``;o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function Hf(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Uf(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case`meta`:case`title`:return!0;case`style`:if(typeof t.precedence!=`string`||typeof t.href!=`string`||t.href===``)break;return!0;case`link`:if(typeof t.rel!=`string`||typeof t.href!=`string`||t.href===``||t.onLoad||t.onError)break;switch(t.rel){case`stylesheet`:return e=t.disabled,typeof t.precedence==`string`&&e==null;default:return!0}case`script`:if(t.async&&typeof t.async!=`function`&&typeof t.async!=`symbol`&&!t.onLoad&&!t.onError&&t.src&&typeof t.src==`string`)return!0}return!1}function Wf(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Gf(e,t,n,r){if(n.type===`stylesheet`&&(typeof r.media!=`string`||!1!==matchMedia(r.media).matches)&&!(n.state.loading&4)){if(n.instance===null){var i=Af(r.href),a=t.querySelector(jf(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=Jf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,bt(a);return}a=t.ownerDocument||t,r=Mf(r),(i=mf.get(i))&&Rf(r,i),a=a.createElement(`link`),bt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),Pd(a,`link`,r),n.instance=a}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Jf.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var Kf=0;function qf(e,t){return e.stylesheets&&e.count===0&&Xf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&Kf===0&&(Kf=62500*Ld());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Xf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>Kf?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function Jf(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Xf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Yf=null;function Xf(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Yf=new Map,t.forEach(Zf,e),Yf=null,Jf.call(e))}function Zf(e,t){if(!(t.state.loading&4)){var n=Yf.get(e);if(n)var r=n.get(null);else{n=new Map,Yf.set(e,n);for(var i=e.querySelectorAll(`link[data-precedence],style[data-precedence]`),a=0;a<i.length;a++){var o=i[a];(o.nodeName===`LINK`||o.getAttribute(`media`)!==`not all`)&&(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}i=t.instance,o=i.getAttribute(`data-precedence`),a=n.get(o)||r,a===r&&n.set(null,i),n.set(o,i),this.count++,r=Jf.bind(this),i.addEventListener(`load`,r),i.addEventListener(`error`,r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(i,e.firstChild)),t.state.loading|=4}}var Qf={$$typeof:C,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function $f(e,t,n,r,i,a,o,s,c){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=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}function ep(e,t,n,r,i,a,o,s,c,l,u,d){return e=new $f(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ii(3,null,null,t),e.current=a,a.stateNode=e,t=ia(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},La(a),e}function tp(e){return e?(e=ni,e):ni}function np(e,t,n,r,i,a){i=tp(i),r.context===null?r.context=i:r.pendingContext=i,r=za(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=Ba(e,r,t),n!==null&&(hu(n,e,t),Va(n,e,t))}function rp(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ip(e,t){rp(e,t),(e=e.alternate)&&rp(e,t)}function ap(e){if(e.tag===13||e.tag===31){var t=$r(e,67108864);t!==null&&hu(t,e,67108864),ip(e,67108864)}}function op(e){if(e.tag===13||e.tag===31){var t=pu();t=rt(t);var n=$r(e,t);n!==null&&hu(n,e,t),ip(e,t)}}var sp=!0;function cp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=2,up(e,t,n,r)}finally{k.p=a,O.T=i}}function lp(e,t,n,r){var i=O.T;O.T=null;var a=k.p;try{k.p=8,up(e,t,n,r)}finally{k.p=a,O.T=i}}function up(e,t,n,r){if(sp){var i=dp(r);if(i===null)wd(e,t,r,fp,n),Cp(e,r);else if(Tp(i,e,t,n,r))r.stopPropagation();else if(Cp(e,r),t&4&&-1<Sp.indexOf(e)){for(;i!==null;){var a=_t(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=Ke(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-ze(o);s.entanglements[1]|=c,o&=~c}rd(a),!(K&6)&&(tu=De()+500,id(0,!1))}}break;case 31:case 13:s=$r(a,2),s!==null&&hu(s,a,2),bu(),ip(a,2)}if(a=dp(r),a===null&&wd(e,t,r,fp,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else wd(e,t,r,null,n)}}function dp(e){return e=en(e),pp(e)}var fp=null;function pp(e){if(fp=null,e=gt(e),e!==null){var t=l(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=u(t),e!==null)return e;e=null}else if(n===31){if(e=d(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 fp=e,null}function mp(e){switch(e){case`beforetoggle`:case`cancel`:case`click`:case`close`:case`contextmenu`:case`copy`:case`cut`:case`auxclick`:case`dblclick`:case`dragend`:case`dragstart`:case`drop`:case`focusin`:case`focusout`:case`input`:case`invalid`:case`keydown`:case`keypress`:case`keyup`:case`mousedown`:case`mouseup`:case`paste`:case`pause`:case`play`:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`:case`toggle`:case`touchcancel`:case`touchend`:case`touchstart`:case`volumechange`:case`change`:case`selectionchange`:case`textInput`:case`compositionstart`:case`compositionend`:case`compositionupdate`:case`beforeblur`:case`afterblur`:case`beforeinput`:case`blur`:case`fullscreenchange`:case`focus`:case`hashchange`:case`popstate`:case`select`:case`selectstart`:return 2;case`drag`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`mousemove`:case`mouseout`:case`mouseover`:case`pointermove`:case`pointerout`:case`pointerover`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Oe()){case ke:return 2;case Ae:return 8;case je:case Me:return 32;case Ne:return 268435456;default:return 32}default:return 32}}var hp=!1,gp=null,_p=null,vp=null,yp=new Map,bp=new Map,xp=[],Sp=`mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset`.split(` `);function Cp(e,t){switch(e){case`focusin`:case`focusout`:gp=null;break;case`dragenter`:case`dragleave`:_p=null;break;case`mouseover`:case`mouseout`:vp=null;break;case`pointerover`:case`pointerout`:yp.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:bp.delete(t.pointerId)}}function wp(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=_t(t),t!==null&&ap(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Tp(e,t,n,r,i){switch(t){case`focusin`:return gp=wp(gp,e,t,n,r,i),!0;case`dragenter`:return _p=wp(_p,e,t,n,r,i),!0;case`mouseover`:return vp=wp(vp,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return yp.set(a,wp(yp.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,bp.set(a,wp(bp.get(a)||null,e,t,n,r,i)),!0}return!1}function Ep(e){var t=gt(e.target);if(t!==null){var n=l(t);if(n!==null){if(t=n.tag,t===13){if(t=u(n),t!==null){e.blockedOn=t,ot(e.priority,function(){op(n)});return}}else if(t===31){if(t=d(n),t!==null){e.blockedOn=t,ot(e.priority,function(){op(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 Dp(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=dp(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);$t=r,n.target.dispatchEvent(r),$t=null}else return t=_t(n),t!==null&&ap(t),e.blockedOn=n,!1;t.shift()}return!0}function Op(e,t,n){Dp(e)&&n.delete(t)}function kp(){hp=!1,gp!==null&&Dp(gp)&&(gp=null),_p!==null&&Dp(_p)&&(_p=null),vp!==null&&Dp(vp)&&(vp=null),yp.forEach(Op),bp.forEach(Op)}function Ap(e,n){e.blockedOn===n&&(e.blockedOn=null,hp||(hp=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,kp)))}var jp=null;function Mp(e){jp!==e&&(jp=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){jp===e&&(jp=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(pp(r||n)===null)continue;break}var a=_t(n);a!==null&&(e.splice(t,3),t-=3,Ss(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Np(e){function t(t){return Ap(t,e)}gp!==null&&Ap(gp,e),_p!==null&&Ap(_p,e),vp!==null&&Ap(vp,e),yp.forEach(t),bp.forEach(t);for(var n=0;n<xp.length;n++){var r=xp[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<xp.length&&(n=xp[0],n.blockedOn===null);)Ep(n),n.blockedOn===null&&xp.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[lt]||null;if(typeof a==`function`)o||Mp(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[lt]||null)s=o.formAction;else if(pp(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Mp(n)}}}function Pp(){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 Fp(e){this._internalRoot=e}Ip.prototype.render=Fp.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(s(409));var n=t.current;np(n,pu(),e,t,null,null)},Ip.prototype.unmount=Fp.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;np(e.current,2,null,e,null,null),bu(),t[L]=null}};function Ip(e){this._internalRoot=e}Ip.prototype.unstable_scheduleHydration=function(e){if(e){var t=at();e={blockedOn:null,target:e,priority:t};for(var n=0;n<xp.length&&t!==0&&t<xp[n].priority;n++);xp.splice(n,0,e),n===0&&Ep(e)}};var Lp=r.version;if(Lp!==`19.2.8`)throw Error(s(527,Lp,`19.2.8`));k.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(s(188)):(e=Object.keys(e).join(`,`),Error(s(268,e)));return e=p(t),e=e===null?null:m(e),e=e===null?null:e.stateNode,e};var Rp={bundleType:0,version:`19.2.8`,rendererPackageName:`react-dom`,currentDispatcherRef:O,reconcilerVersion:`19.2.8`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var zp=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!zp.isDisabled&&zp.supportsFiber)try{Ie=zp.inject(Rp),Le=zp}catch{}}e.createRoot=function(e,t){if(!c(e))throw Error(s(299));var n=!1,r=``,i=Gs,a=Ks,o=qs;return t!=null&&(!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=ep(e,1,!1,null,null,n,r,null,i,a,o,Pp),e[L]=t.current,Sd(e),new Fp(t)}})),c=e(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=s()})),l=n(),u=c();function d(e,t,n){if(t>n)throw RangeError(`min must be less than or equal to max`);return Math.min(n,Math.max(t,e))}var f=e((e=>{var t=Symbol.for(`react.transitional.element`),n=Symbol.for(`react.fragment`);function r(e,n,r){var i=null;if(r!==void 0&&(i=``+r),n.key!==void 0&&(i=``+n.key),`key`in n)for(var a in r={},n)a!==`key`&&(r[a]=n[a]);else r=n;return n=r.ref,{$$typeof:t,type:e,key:i,ref:n===void 0?null:n,props:r}}e.Fragment=n,e.jsx=r,e.jsxs=r})),p=e(((e,t)=>{t.exports=f()}))();function m(e){let[t,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{if(typeof window.matchMedia!=`function`)return;let t=window.matchMedia(e),r=()=>{n(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e]),t}function h(e){let t=e.replace(/^#/,``).trim();if(t.length===3)return{r:Number.parseInt(t[0]+t[0],16),g:Number.parseInt(t[1]+t[1],16),b:Number.parseInt(t[2]+t[2],16)};if(t.length===6||t.length===8)return{r:Number.parseInt(t.slice(0,2),16),g:Number.parseInt(t.slice(2,4),16),b:Number.parseInt(t.slice(4,6),16)};let n=e.match(/^rgba?\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/i);return n?{r:Number.parseInt(n[1],10),g:Number.parseInt(n[2],10),b:Number.parseInt(n[3],10)}:{r:0,g:0,b:0}}function g({r:e,g:t,b:n}){let r=e=>d(Math.round(e),0,255).toString(16).padStart(2,`0`);return`#${r(e)}${r(t)}${r(n)}`}function _(e){let t=h(e),n=e=>{let t=e/255;return t<=.03928?t/12.92:((t+.055)/1.055)**2.4},r=n(t.r),i=n(t.g),a=n(t.b);return .2126*r+.7152*i+.0722*a}function v(e,t){let n=_(e),r=_(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function y(e,t=`#f7f7f4`,n=`#1d2538`){let r=v(t,e);return v(n,e)>=r?n:t}function b(e,t){let n=h(e),r=e=>d(Math.round(e+(255-e)*t),0,255);return g({r:r(n.r),g:r(n.g),b:r(n.b)})}function x(e,t){let n=h(e),r=e=>d(Math.round(e*(1-t)),0,255);return g({r:r(n.r),g:r(n.g),b:r(n.b)})}var S={step:5,unit:`px`,values:{xs:0,sm:600,md:900,lg:1200,xl:1536}};function C(e){let t={...S.values,...e?.values},n=e?.unit??`px`,r=e?.step??5,i=[`xs`,`sm`,`md`,`lg`,`xl`];function a(e){return`@media (min-width:${typeof e==`number`?e:t[e]}${n})`}function o(e){let o;if(typeof e==`number`)o=e;else{let n=i.indexOf(e)+1;if(n===i.length)return a(`xs`);o=t[i[n]]-r/100}return`@media (max-width:${o}${n})`}function s(e,a){let o=typeof e==`number`?e:t[e],s;if(typeof a==`number`)s=a;else{let e=i.indexOf(a)+1;s=e<i.length?t[i[e]]-r/100:t.xl}return`@media (min-width:${o}${n}) and (max-width:${s}${n})`}function c(e){return i.indexOf(e)+1<i.length?s(e,e):a(e)}return{between:s,down:o,only:c,unit:n,up:a,values:t}}function w(e=4){if(typeof e==`function`)return e;let t=e,n=(...e)=>e.length===0?`${t}px`:e.map(e=>`${e*t}px`).join(` `);return n.factor=t,n}function T(e,t){if(!e)return t;if(typeof e==`string`)return{contrastText:y(e),dark:x(e,.2),light:b(e,.2),main:e};let n=e.main??t.main;return{contrastText:e.contrastText??y(n),dark:e.dark??x(n,.2),light:e.light??b(n,.2),main:n}}function ee(e){let t=e?.mode??`dark`,n=t===`dark`,r=n?{contrastText:`#1d2538`,dark:`#d97706`,light:`#fde68a`,main:`#ffd9a0`}:{contrastText:`#ffffff`,dark:`#7c2d12`,light:`#f59e0b`,main:`#a85c0a`},i=n?{contrastText:`#1d2538`,dark:`#ea580c`,light:`#fdba74`,main:`#ff7b54`}:{contrastText:`#ffffff`,dark:`#9a3412`,light:`#fb923c`,main:`#c2410c`},a=n?{contrastText:`#1d2538`,dark:`#d97706`,light:`#fef08a`,main:`#ffd9a0`}:{contrastText:`#ffffff`,dark:`#78350f`,light:`#fbbf24`,main:`#a85c0a`},o=n?{contrastText:`#064e3b`,dark:`#059669`,light:`#d1fae5`,main:`#b9fbc0`}:{contrastText:`#ffffff`,dark:`#14532d`,light:`#4ade80`,main:`#1f7a42`},s=n?{contrastText:`#78350f`,dark:`#d97706`,light:`#fef3c7`,main:`#ffe1a8`}:{contrastText:`#ffffff`,dark:`#713f12`,light:`#facc15`,main:`#9c5600`},c=n?{contrastText:`#7f1d1d`,dark:`#dc2626`,light:`#fee2e2`,main:`#ffd0d0`}:{contrastText:`#ffffff`,dark:`#7f1d1d`,light:`#f87171`,main:`#b91c1c`},l=n?{contrastText:`#1e3a8a`,dark:`#2563eb`,light:`#dbeafe`,main:`#93c5fd`}:{contrastText:`#ffffff`,dark:`#1e3a8a`,light:`#60a5fa`,main:`#2563eb`},u=n?{dim:`rgba(247, 247, 244, 0.58)`,faint:`rgba(247, 247, 244, 0.46)`,ghost:`rgba(247, 247, 244, 0.34)`,muted:`rgba(247, 247, 244, 0.82)`,placeholder:`rgba(247, 247, 244, 0.42)`,primary:`#f7f7f4`,subtle:`rgba(247, 247, 244, 0.68)`}:{dim:`rgba(33, 48, 74, 0.58)`,faint:`rgba(33, 48, 74, 0.46)`,ghost:`rgba(33, 48, 74, 0.32)`,muted:`rgba(33, 48, 74, 0.82)`,placeholder:`rgba(33, 48, 74, 0.4)`,primary:`#21304a`,subtle:`rgba(33, 48, 74, 0.68)`},d=n?{default:`#0b1220`,popover:`rgba(10, 16, 28, 0.98)`,surface:`rgba(255, 255, 255, 0.08)`,surfaceCard:`rgba(255, 255, 255, 0.05)`,surfaceDark:`rgba(11, 18, 32, 0.18)`,surfaceHover:`rgba(255, 255, 255, 0.14)`}:{default:`#f8fafc`,popover:`rgba(255, 255, 255, 0.98)`,surface:`rgba(255, 255, 255, 0.82)`,surfaceCard:`rgba(255, 255, 255, 0.7)`,surfaceDark:`rgba(255, 255, 255, 0.48)`,surfaceHover:`rgba(255, 255, 255, 0.94)`},f=n?{default:`rgba(255, 255, 255, 0.14)`,faint:`rgba(255, 255, 255, 0.10)`,icon:`rgba(255, 255, 255, 0.16)`,subtle:`rgba(255, 255, 255, 0.08)`}:{default:`rgba(28, 47, 78, 0.16)`,faint:`rgba(28, 47, 78, 0.12)`,icon:`rgba(28, 47, 78, 0.18)`,subtle:`rgba(28, 47, 78, 0.1)`};return{...e,accent:T(e?.accent,a),background:{...d,...e?.background},border:{...f,...e?.border},error:T(e?.error,c),info:T(e?.info,l),mode:t,primary:T(e?.primary,r),secondary:T(e?.secondary,i),success:T(e?.success,o),text:{...u,...e?.text},warning:T(e?.warning,s)}}var te={body1:{fontSize:`14px`,lineHeight:`20px`},body2:{fontSize:`12px`,lineHeight:`18px`},button:{fontSize:`12px`,fontWeight:700,letterSpacing:`0.08em`,lineHeight:`16px`,textTransform:`uppercase`},caption:{fontSize:`11px`,lineHeight:`16px`},h1:{fontSize:`32px`,fontWeight:700,lineHeight:`40px`},h2:{fontSize:`28px`,fontWeight:700,lineHeight:`36px`},h3:{fontSize:`24px`,fontWeight:700,lineHeight:`32px`},h4:{fontSize:`20px`,fontWeight:700,lineHeight:`28px`},h5:{fontSize:`18px`,fontWeight:700,lineHeight:`28px`},h6:{fontSize:`16px`,fontWeight:700,lineHeight:`24px`},overline:{fontSize:`11px`,fontWeight:800,letterSpacing:`0.12em`,lineHeight:`16px`,textTransform:`uppercase`},subtitle1:{fontSize:`14px`,fontWeight:700,lineHeight:`20px`},subtitle2:{fontSize:`13px`,fontWeight:600,lineHeight:`18px`}};function E(e){let t=e?.fontFamily??`"Roboto", "Segoe UI", sans-serif`,n={fontFamily:t,fontSize:e?.fontSize??14};for(let[r,i]of Object.entries(te))n[r]={...i,fontFamily:t,...e?.[r]};return n}var ne={borderRadius:6,radius2xl:`6px`,radius3xl:`8px`,radiusLg:`2px`,radiusMd:`4px`,radiusSm:`2px`,radiusXl:`4px`},re={dropdown:1e3,modal:1300,popover:1200,toast:1400,tooltip:1100};function ie(e){let t=ee(e?.palette),n=E(e?.typography),r=w(e?.spacing),i=C(e?.breakpoints),a={...ne,...e?.shape},o={...re,...e?.zIndex};return{breakpoints:i,components:e?.components??{},palette:t,shape:a,spacing:r,typography:n,zIndex:o}}var ae=ie(),oe=(0,l.createContext)(ae);function se(e){let{palette:t,typography:n}=e;return{"--az-color-addon-accent":t.accent.main,"--az-color-addon-accent-active":t.accent.light,"--az-color-addon-accent-bg":t.accent.light,"--az-color-addon-accent-border":t.accent.dark,"--az-color-addon-border":t.border.default,"--az-color-addon-border-faint":t.border.faint,"--az-color-addon-border-icon":t.border.icon,"--az-color-addon-border-subtle":t.border.subtle,"--az-color-addon-btn-text":t.primary.contrastText,"--az-color-addon-dim":t.text.dim,"--az-color-addon-error":t.error.main,"--az-color-addon-faint":t.text.faint,"--az-color-addon-ghost":t.text.ghost,"--az-color-addon-muted":t.text.muted,"--az-color-addon-placeholder":t.text.placeholder,"--az-color-addon-popover":t.background.popover,"--az-color-addon-subtle":t.text.subtle,"--az-color-addon-success":t.success.main,"--az-color-addon-surface":t.background.surface,"--az-color-addon-surface-card":t.background.surfaceCard,"--az-color-addon-surface-dark":t.background.surfaceDark,"--az-color-addon-surface-hover":t.background.surfaceHover,"--az-color-addon-text":t.text.primary,"--az-color-addon-warning":t.warning.main,"--az-font-addon":n.fontFamily}}function D({children:e,theme:t=ae}){let n=(0,l.useMemo)(()=>se(t),[t]);return(0,p.jsx)(oe.Provider,{value:t,children:(0,p.jsx)(`div`,{className:`az-theme-provider`,"data-theme":t.palette.mode,style:n,children:e})})}function O(){return(0,l.useContext)(oe)}function k({name:e,props:t}){let n=O(),r=n.components?.[e]??n.components?.[`Az${e}`];if(!r||!r.defaultProps)return t;let i={...r.defaultProps};for(let[e,n]of Object.entries(t))n!==void 0&&(i[e]=n);return i}function ce(e,t){return e?typeof e==`function`?e(t):e:{}}function A(e,t){for(let[n,r]of Object.entries(e))if(t[n]!==r)return!1;return!0}function le(e,t){if(!e||e.length===0)return{};let n=[],r;for(let i of e)A(i.props,t)&&(i.className&&n.push(i.className),i.style&&(r={...r,...i.style}));return{className:n.length>0?n.join(` `):void 0,style:r}}function j(e,t){if(!e)return{};let n=typeof e==`function`?e(t):e;return n?typeof n==`string`?{className:n}:{style:n}:{}}function M(e,t){if(e!==void 0)return typeof e==`number`?t.spacing(e):e}function N(e,t){if(!e)return;let n=t.palette;if(e.includes(`.`)){let[t,r]=e.split(`.`);if(n[t]&&n[t][r])return n[t][r]}return n[e]?.main?n[e].main:e}function ue(e,t){if(!e)return;if(Array.isArray(e)){let n={};for(let r of e)if(r){let e=ue(r,t);e&&(n={...n,...e})}return Object.keys(n).length>0?n:void 0}let n=typeof e==`function`?e(t):e,r={};for(let[e,i]of Object.entries(n))if(i!==void 0)switch(e){case`p`:r.padding=M(i,t);break;case`pt`:r.paddingTop=M(i,t);break;case`pr`:r.paddingRight=M(i,t);break;case`pb`:r.paddingBottom=M(i,t);break;case`pl`:r.paddingLeft=M(i,t);break;case`px`:{let e=M(i,t);r.paddingLeft=e,r.paddingRight=e;break}case`py`:{let e=M(i,t);r.paddingTop=e,r.paddingBottom=e;break}case`m`:r.margin=M(i,t);break;case`mt`:r.marginTop=M(i,t);break;case`mr`:r.marginRight=M(i,t);break;case`mb`:r.marginBottom=M(i,t);break;case`ml`:r.marginLeft=M(i,t);break;case`mx`:{let e=M(i,t);r.marginLeft=e,r.marginRight=e;break}case`my`:{let e=M(i,t);r.marginTop=e,r.marginBottom=e;break}case`bgcolor`:case`backgroundColor`:r.backgroundColor=N(i,t);break;case`color`:r.color=N(i,t);break;default:r[e]=i}return r}var de=o();function P(e){this.content=e}P.prototype={constructor:P,find:function(e){for(var t=0;t<this.content.length;t+=2)if(this.content[t]===e)return t;return-1},get:function(e){var t=this.find(e);return t==-1?void 0:this.content[t+1]},update:function(e,t,n){var r=n&&n!=e?this.remove(n):this,i=r.find(e),a=r.content.slice();return i==-1?a.push(n||e,t):(a[i+1]=t,n&&(a[i]=n)),new P(a)},remove:function(e){var t=this.find(e);if(t==-1)return this;var n=this.content.slice();return n.splice(t,2),new P(n)},addToStart:function(e,t){return new P([e,t].concat(this.remove(e).content))},addToEnd:function(e,t){var n=this.remove(e).content.slice();return n.push(e,t),new P(n)},addBefore:function(e,t,n){var r=this.remove(t),i=r.content.slice(),a=r.find(e);return i.splice(a==-1?i.length:a,0,t,n),new P(i)},forEach:function(e){for(var t=0;t<this.content.length;t+=2)e(this.content[t],this.content[t+1])},prepend:function(e){return e=P.from(e),e.size?new P(e.content.concat(this.subtract(e).content)):this},append:function(e){return e=P.from(e),e.size?new P(this.subtract(e).content.concat(e.content)):this},subtract:function(e){var t=this;e=P.from(e);for(var n=0;n<e.content.length;n+=2)t=t.remove(e.content[n]);return t},toObject:function(){var e={};return this.forEach(function(t,n){e[t]=n}),e},get size(){return this.content.length>>1}},P.from=function(e){if(e instanceof P)return e;var t=[];if(e)for(var n in e)t.push(n,e[n]);return new P(t)};function fe(e,t,n){for(let r=0;;r++){if(r==e.childCount||r==t.childCount)return e.childCount==t.childCount?null:n;let i=e.child(r),a=t.child(r);if(i==a){n+=i.nodeSize;continue}if(!i.sameMarkup(a))return n;if(i.isText&&i.text!=a.text){let e=i.text,t=a.text,r=0;for(;e[r]==t[r];r++)n++;return r&&r<e.length&&r<t.length&&he(e.charCodeAt(r-1))&&me(e.charCodeAt(r))&&n--,n}if(i.content.size||a.content.size){let e=fe(i.content,a.content,n+1);if(e!=null)return e}n+=i.nodeSize}}function pe(e,t,n,r){for(let i=e.childCount,a=t.childCount;;){if(i==0||a==0)return i==a?null:{a:n,b:r};let o=e.child(--i),s=t.child(--a),c=o.nodeSize;if(o==s){n-=c,r-=c;continue}if(!o.sameMarkup(s))return{a:n,b:r};if(o.isText&&o.text!=s.text){let e=o.text,t=s.text,i=e.length,a=t.length;for(;i>0&&a>0&&e[i-1]==t[a-1];)i--,a--,n--,r--;return i&&a&&i<e.length&&he(e.charCodeAt(i-1))&&me(e.charCodeAt(i))&&(n++,r++),{a:n,b:r}}if(o.content.size||s.content.size){let e=pe(o.content,s.content,n-1,r-1);if(e)return e}n-=c,r-=c}}function me(e){return e>=56320&&e<57344}function he(e){return e>=55296&&e<56320}var F=class e{constructor(e,t){if(this.content=e,this.size=t||0,t==null)for(let t=0;t<e.length;t++)this.size+=e[t].nodeSize}nodesBetween(e,t,n,r=0,i){for(let a=0,o=0;o<t;a++){let s=this.content[a],c=o+s.nodeSize;if(c>e&&n(s,r+o,i||null,a)!==!1&&s.content.size){let i=o+1;s.nodesBetween(Math.max(0,e-i),Math.min(s.content.size,t-i),n,r+i)}o=c}}descendants(e){this.nodesBetween(0,this.size,e)}textBetween(e,t,n,r){let i=``,a=!0;return this.nodesBetween(e,t,(o,s)=>{let c=o.isText?o.text.slice(Math.max(e,s)-s,t-s):o.isLeaf?r?typeof r==`function`?r(o):r:o.type.spec.leafText?o.type.spec.leafText(o):``:``;o.isBlock&&(o.isLeaf&&c||o.isTextblock)&&n&&(a?a=!1:i+=n),i+=c},0),i}append(t){if(!t.size)return this;if(!this.size)return t;let n=this.lastChild,r=t.firstChild,i=this.content.slice(),a=0;for(n.isText&&n.sameMarkup(r)&&(i[i.length-1]=n.withText(n.text+r.text),a=1);a<t.content.length;a++)i.push(t.content[a]);return new e(i,this.size+t.size)}cut(t,n=this.size){if(t==0&&n==this.size)return this;let r=[],i=0;if(n>t)for(let e=0,a=0;a<n;e++){let o=this.content[e],s=a+o.nodeSize;s>t&&((a<t||s>n)&&(o=o.isText?o.cut(Math.max(0,t-a),Math.min(o.text.length,n-a)):o.cut(Math.max(0,t-a-1),Math.min(o.content.size,n-a-1))),r.push(o),i+=o.nodeSize),a=s}return new e(r,i)}cutByIndex(t,n){return t==n?e.empty:t==0&&n==this.content.length?this:new e(this.content.slice(t,n))}replaceChild(t,n){let r=this.content[t];if(r==n)return this;let i=this.content.slice(),a=this.size+n.nodeSize-r.nodeSize;return i[t]=n,new e(i,a)}addToStart(t){return new e([t].concat(this.content),this.size+t.nodeSize)}addToEnd(t){return new e(this.content.concat(t),this.size+t.nodeSize)}eq(e){if(this.content.length!=e.content.length)return!1;for(let t=0;t<this.content.length;t++)if(!this.content[t].eq(e.content[t]))return!1;return!0}get firstChild(){return this.content.length?this.content[0]:null}get lastChild(){return this.content.length?this.content[this.content.length-1]:null}get childCount(){return this.content.length}child(e){let t=this.content[e];if(!t)throw RangeError(`Index `+e+` out of range for `+this);return t}maybeChild(e){return this.content[e]||null}forEach(e){for(let t=0,n=0;t<this.content.length;t++){let r=this.content[t];e(r,n,t),n+=r.nodeSize}}findDiffStart(e,t=0){return fe(this,e,t)}findDiffEnd(e,t=this.size,n=e.size){return pe(this,e,t,n)}findIndex(e){if(e==0)return _e(0,e);if(e==this.size)return _e(this.content.length,e);if(e>this.size||e<0)throw RangeError(`Position ${e} outside of fragment (${this})`);for(let t=0,n=0;;t++){let r=this.child(t),i=n+r.nodeSize;if(i>=e)return i==e?_e(t+1,i):_e(t,n);n=i}}toString(){return`<`+this.toStringInner()+`>`}toStringInner(){return this.content.join(`, `)}toJSON(){return this.content.length?this.content.map(e=>e.toJSON()):null}static fromJSON(t,n){if(!n)return e.empty;if(!Array.isArray(n))throw RangeError(`Invalid input for Fragment.fromJSON`);return e.fromArray(n.map(t.nodeFromJSON))}static fromArray(t){if(!t.length)return e.empty;let n,r=0;for(let e=0;e<t.length;e++){let i=t[e];r+=i.nodeSize,e&&i.isText&&t[e-1].sameMarkup(i)?(n||=t.slice(0,e),n[n.length-1]=i.withText(n[n.length-1].text+i.text)):n&&n.push(i)}return new e(n||t,r)}static from(t){if(!t)return e.empty;if(t instanceof e)return t;if(Array.isArray(t))return this.fromArray(t);if(t.attrs)return new e([t],t.nodeSize);throw RangeError(`Can not convert `+t+` to a Fragment`+(t.nodesBetween?` (looks like multiple versions of prosemirror-model were loaded)`:``))}};F.empty=new F([],0);var ge={index:0,offset:0};function _e(e,t){return ge.index=e,ge.offset=t,ge}function ve(e,t){if(e===t)return!0;if(!(e&&typeof e==`object`)||!(t&&typeof t==`object`))return!1;let n=Array.isArray(e);if(Array.isArray(t)!=n)return!1;if(n){if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!ve(e[n],t[n]))return!1}else{for(let n in e)if(!(n in t)||!ve(e[n],t[n]))return!1;for(let n in t)if(!(n in e))return!1}return!0}var ye=class e{constructor(e,t){this.type=e,this.attrs=t}addToSet(e){let t,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(this.eq(i))return e;if(this.type.excludes(i.type))t||=e.slice(0,r);else if(i.type.excludes(this.type))return e;else!n&&i.type.rank>this.type.rank&&(t||=e.slice(0,r),t.push(this),n=!0),t&&t.push(i)}return t||=e.slice(),n||t.push(this),t}removeFromSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return e.slice(0,t).concat(e.slice(t+1));return e}isInSet(e){for(let t=0;t<e.length;t++)if(this.eq(e[t]))return!0;return!1}eq(e){return this==e||this.type==e.type&&ve(this.attrs,e.attrs)}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Mark.fromJSON`);let n=e.marks[t.type];if(!n)throw RangeError(`There is no mark type ${t.type} in this schema`);let r=n.create(t.attrs);return n.checkAttrs(r.attrs),r}static sameSet(e,t){if(e==t)return!0;if(e.length!=t.length)return!1;for(let n=0;n<e.length;n++)if(!e[n].eq(t[n]))return!1;return!0}static setFrom(t){if(!t||Array.isArray(t)&&t.length==0)return e.none;if(t instanceof e)return[t];let n=t.slice();return n.sort((e,t)=>e.type.rank-t.type.rank),n}};ye.none=[];var be=class extends Error{},I=class e{constructor(e,t,n){this.content=e,this.openStart=t,this.openEnd=n}get size(){return this.content.size-this.openStart-this.openEnd}insertAt(t,n){let r=Se(this.content,t+this.openStart,n,this.openStart+1,this.openEnd+1);return r&&new e(r,this.openStart,this.openEnd)}removeBetween(t,n){return new e(xe(this.content,t+this.openStart,n+this.openStart),this.openStart,this.openEnd)}eq(e){return this.content.eq(e.content)&&this.openStart==e.openStart&&this.openEnd==e.openEnd}toString(){return this.content+`(`+this.openStart+`,`+this.openEnd+`)`}toJSON(){if(!this.content.size)return null;let e={content:this.content.toJSON()};return this.openStart>0&&(e.openStart=this.openStart),this.openEnd>0&&(e.openEnd=this.openEnd),e}static fromJSON(t,n){if(!n)return e.empty;let r=n.openStart||0,i=n.openEnd||0;if(typeof r!=`number`||typeof i!=`number`)throw RangeError(`Invalid input for Slice.fromJSON`);return new e(F.fromJSON(t,n.content),r,i)}static maxOpen(t,n=!0){let r=0,i=0;for(let e=t.firstChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.firstChild)r++;for(let e=t.lastChild;e&&!e.isLeaf&&(n||!e.type.spec.isolating);e=e.lastChild)i++;return new e(t,r,i)}};I.empty=new I(F.empty,0,0);function xe(e,t,n){let{index:r,offset:i}=e.findIndex(t),a=e.maybeChild(r),{index:o,offset:s}=e.findIndex(n);if(i==t||a.isText){if(s!=n&&!e.child(o).isText)throw RangeError(`Removing non-flat range`);return e.cut(0,t).append(e.cut(n))}if(r!=o)throw RangeError(`Removing non-flat range`);return e.replaceChild(r,a.copy(xe(a.content,t-i-1,n-i-1)))}function Se(e,t,n,r,i,a){let{index:o,offset:s}=e.findIndex(t),c=e.maybeChild(o);if(s==t||c.isText)return a&&r<=0&&i<=0&&!a.canReplace(o,o,n)?null:e.cut(0,t).append(n).append(e.cut(t));let l=Se(c.content,t-s-1,n,o==0?r-1:0,o==e.childCount-1?i-1:0,c);return l&&e.replaceChild(o,c.copy(l))}function Ce(e,t,n){if(n.openStart>e.depth)throw new be(`Inserted content deeper than insertion position`);if(e.depth-n.openStart!=t.depth-n.openEnd)throw new be(`Inconsistent open depths`);return we(e,t,n,0)}function we(e,t,n,r){let i=e.index(r),a=e.node(r);if(i==t.index(r)&&r<e.depth-n.openStart){let o=we(e,t,n,r+1);return a.copy(a.content.replaceChild(i,o))}else if(!n.content.size)return ke(a,je(e,t,r));else if(!n.openStart&&!n.openEnd&&e.depth==r&&t.depth==r){let r=e.parent,i=r.content;return ke(r,i.cut(0,e.parentOffset).append(n.content).append(i.cut(t.parentOffset)))}else{let{start:i,end:o}=Me(n,e);return ke(a,Ae(e,i,o,t,r))}}function Te(e,t){if(!t.type.compatibleContent(e.type))throw new be(`Cannot join `+t.type.name+` onto `+e.type.name)}function Ee(e,t,n){let r=e.node(n);return Te(r,t.node(n)),r}function De(e,t){let n=t.length-1;n>=0&&e.isText&&e.sameMarkup(t[n])?t[n]=e.withText(t[n].text+e.text):t.push(e)}function Oe(e,t,n,r){let i=(t||e).node(n),a=0,o=t?t.index(n):i.childCount;e&&(a=e.index(n),e.depth>n?a++:e.textOffset&&(De(e.nodeAfter,r),a++));for(let e=a;e<o;e++)De(i.child(e),r);t&&t.depth==n&&t.textOffset&&De(t.nodeBefore,r)}function ke(e,t){if(!e.type.validContent(t))throw new be(`Invalid content for node `+e.type.name);return e.copy(t)}function Ae(e,t,n,r,i){let a=e.depth>i&&Ee(e,t,i+1),o=r.depth>i&&Ee(n,r,i+1),s=[];return Oe(null,e,i,s),a&&o&&t.index(i)==n.index(i)?(Te(a,o),De(ke(a,Ae(e,t,n,r,i+1)),s)):(a&&De(ke(a,je(e,t,i+1)),s),Oe(t,n,i,s),o&&De(ke(o,je(n,r,i+1)),s)),Oe(r,null,i,s),new F(s)}function je(e,t,n){let r=[];return Oe(null,e,n,r),e.depth>n&&De(ke(Ee(e,t,n+1),je(e,t,n+1)),r),Oe(t,null,n,r),new F(r)}function Me(e,t){let n=t.depth-e.openStart,r=t.node(n).copy(e.content);for(let e=n-1;e>=0;e--)r=t.node(e).copy(F.from(r));return{start:r.resolveNoCache(e.openStart+n),end:r.resolveNoCache(r.content.size-e.openEnd-n)}}var Ne=class e{constructor(e,t,n){this.pos=e,this.path=t,this.parentOffset=n,this.depth=t.length/3-1}resolveDepth(e){return e==null?this.depth:e<0?this.depth+e:e}get parent(){return this.node(this.depth)}get doc(){return this.node(0)}node(e){return this.path[this.resolveDepth(e)*3]}index(e){return this.path[this.resolveDepth(e)*3+1]}indexAfter(e){return e=this.resolveDepth(e),this.index(e)+(e==this.depth&&!this.textOffset?0:1)}start(e){return e=this.resolveDepth(e),e==0?0:this.path[e*3-1]+1}end(e){return e=this.resolveDepth(e),this.start(e)+this.node(e).content.size}before(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position before the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]}after(e){if(e=this.resolveDepth(e),!e)throw RangeError(`There is no position after the top-level node`);return e==this.depth+1?this.pos:this.path[e*3-1]+this.path[e*3].nodeSize}get textOffset(){return this.pos-this.path[this.path.length-1]}get nodeAfter(){let e=this.parent,t=this.index(this.depth);if(t==e.childCount)return null;let n=this.pos-this.path[this.path.length-1],r=e.child(t);return n?e.child(t).cut(n):r}get nodeBefore(){let e=this.index(this.depth),t=this.pos-this.path[this.path.length-1];return t?this.parent.child(e).cut(0,t):e==0?null:this.parent.child(e-1)}posAtIndex(e,t){t=this.resolveDepth(t);let n=this.path[t*3],r=t==0?0:this.path[t*3-1]+1;for(let t=0;t<e;t++)r+=n.child(t).nodeSize;return r}marks(){let e=this.parent,t=this.index();if(e.content.size==0)return ye.none;if(this.textOffset)return e.child(t).marks;let n=e.maybeChild(t-1),r=e.maybeChild(t);if(!n){let e=n;n=r,r=e}let i=n.marks;for(var a=0;a<i.length;a++)i[a].type.spec.inclusive===!1&&(!r||!i[a].isInSet(r.marks))&&(i=i[a--].removeFromSet(i));return i}marksAcross(e){let t=this.parent.maybeChild(this.index());if(!t||!t.isInline)return null;let n=t.marks,r=e.parent.maybeChild(e.index());for(var i=0;i<n.length;i++)n[i].type.spec.inclusive===!1&&(!r||!n[i].isInSet(r.marks))&&(n=n[i--].removeFromSet(n));return n}sharedDepth(e){for(let t=this.depth;t>0;t--)if(this.start(t)<=e&&this.end(t)>=e)return t;return 0}blockRange(e=this,t){if(e.pos<this.pos)return e.blockRange(this);for(let n=this.depth-(this.parent.inlineContent||this.pos==e.pos?1:0);n>=0;n--)if(e.pos<=this.end(n)&&(!t||t(this.node(n))))return new Le(this,e,n);return null}sameParent(e){return this.pos-this.parentOffset==e.pos-e.parentOffset}max(e){return e.pos>this.pos?e:this}min(e){return e.pos<this.pos?e:this}toString(){let e=``;for(let t=1;t<=this.depth;t++)e+=(e?`/`:``)+this.node(t).type.name+`_`+this.index(t-1);return e+`:`+this.parentOffset}static resolve(t,n){if(!(n>=0&&n<=t.content.size))throw RangeError(`Position `+n+` out of range`);let r=[],i=0,a=n;for(let e=t;;){let{index:t,offset:n}=e.content.findIndex(a),o=a-n;if(r.push(e,t,i+n),!o||(e=e.child(t),e.isText))break;a=o-1,i+=n+1}return new e(n,r,a)}static resolveCached(t,n){let r=Ie.get(t);if(r)for(let e=0;e<r.elts.length;e++){let t=r.elts[e];if(t.pos==n)return t}else Ie.set(t,r=new Pe);let i=r.elts[r.i]=e.resolve(t,n);return r.i=(r.i+1)%Fe,i}},Pe=class{constructor(){this.elts=[],this.i=0}},Fe=12,Ie=new WeakMap,Le=class{constructor(e,t,n){this.$from=e,this.$to=t,this.depth=n}get start(){return this.$from.before(this.depth+1)}get end(){return this.$to.after(this.depth+1)}get parent(){return this.$from.node(this.depth)}get startIndex(){return this.$from.index(this.depth)}get endIndex(){return this.$to.indexAfter(this.depth)}},Re=Object.create(null),ze=class e{constructor(e,t,n,r=ye.none){this.type=e,this.attrs=t,this.marks=r,this.content=n||F.empty}get children(){return this.content.content}get nodeSize(){return this.isLeaf?1:2+this.content.size}get childCount(){return this.content.childCount}child(e){return this.content.child(e)}maybeChild(e){return this.content.maybeChild(e)}forEach(e){this.content.forEach(e)}nodesBetween(e,t,n,r=0){this.content.nodesBetween(e,t,n,r,this)}descendants(e){this.nodesBetween(0,this.content.size,e)}get textContent(){return this.isLeaf&&this.type.spec.leafText?this.type.spec.leafText(this):this.textBetween(0,this.content.size,``)}textBetween(e,t,n,r){return this.content.textBetween(e,t,n,r)}get firstChild(){return this.content.firstChild}get lastChild(){return this.content.lastChild}eq(e){return this==e||this.sameMarkup(e)&&this.content.eq(e.content)}sameMarkup(e){return this.hasMarkup(e.type,e.attrs,e.marks)}hasMarkup(e,t,n){return this.type==e&&ve(this.attrs,t||e.defaultAttrs||Re)&&ye.sameSet(this.marks,n||ye.none)}copy(t=null){return t==this.content?this:new e(this.type,this.attrs,t,this.marks)}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.content,t)}cut(e,t=this.content.size){return e==0&&t==this.content.size?this:this.copy(this.content.cut(e,t))}slice(e,t=this.content.size,n=!1){if(e==t)return I.empty;let r=this.resolve(e),i=this.resolve(t),a=n?0:r.sharedDepth(t),o=r.start(a);return new I(r.node(a).content.cut(r.pos-o,i.pos-o),r.depth-a,i.depth-a)}replace(e,t,n){return Ce(this.resolve(e),this.resolve(t),n)}nodeAt(e){for(let t=this;;){let{index:n,offset:r}=t.content.findIndex(e);if(t=t.maybeChild(n),!t)return null;if(r==e||t.isText)return t;e-=r+1}}childAfter(e){let{index:t,offset:n}=this.content.findIndex(e);return{node:this.content.maybeChild(t),index:t,offset:n}}childBefore(e){if(e==0)return{node:null,index:0,offset:0};let{index:t,offset:n}=this.content.findIndex(e);if(n<e)return{node:this.content.child(t),index:t,offset:n};let r=this.content.child(t-1);return{node:r,index:t-1,offset:n-r.nodeSize}}resolve(e){return Ne.resolveCached(this,e)}resolveNoCache(e){return Ne.resolve(this,e)}rangeHasMark(e,t,n){let r=!1;return t>e&&this.nodesBetween(e,t,e=>(n.isInSet(e.marks)&&(r=!0),!r)),r}get isBlock(){return this.type.isBlock}get isTextblock(){return this.type.isTextblock}get inlineContent(){return this.type.inlineContent}get isInline(){return this.type.isInline}get isText(){return this.type.isText}get isLeaf(){return this.type.isLeaf}get isAtom(){return this.type.isAtom}toString(){if(this.type.spec.toDebugString)return this.type.spec.toDebugString(this);let e=this.type.name;return this.content.size&&(e+=`(`+this.content.toStringInner()+`)`),Ve(this.marks,e)}contentMatchAt(e){let t=this.type.contentMatch.matchFragment(this.content,0,e);if(!t)throw Error(`Called contentMatchAt on a node with invalid content`);return t}canReplace(e,t,n=F.empty,r=0,i=n.childCount){let a=this.contentMatchAt(e).matchFragment(n,r,i),o=a&&a.matchFragment(this.content,t);if(!o||!o.validEnd)return!1;for(let e=r;e<i;e++)if(!this.type.allowsMarks(n.child(e).marks))return!1;return!0}canReplaceWith(e,t,n,r){if(r&&!this.type.allowsMarks(r))return!1;let i=this.contentMatchAt(e).matchType(n),a=i&&i.matchFragment(this.content,t);return a?a.validEnd:!1}canAppend(e){return e.content.size?this.canReplace(this.childCount,this.childCount,e.content):this.type.compatibleContent(e.type)}check(){this.type.checkContent(this.content),this.type.checkAttrs(this.attrs);let e=ye.none;for(let t=0;t<this.marks.length;t++){let n=this.marks[t];n.type.checkAttrs(n.attrs),e=n.addToSet(e)}if(!ye.sameSet(e,this.marks))throw RangeError(`Invalid collection of marks for node ${this.type.name}: ${this.marks.map(e=>e.type.name)}`);this.content.forEach(e=>e.check())}toJSON(){let e={type:this.type.name};for(let t in this.attrs){e.attrs=this.attrs;break}return this.content.size&&(e.content=this.content.toJSON()),this.marks.length&&(e.marks=this.marks.map(e=>e.toJSON())),e}static fromJSON(e,t){if(!t)throw RangeError(`Invalid input for Node.fromJSON`);let n;if(t.marks){if(!Array.isArray(t.marks))throw RangeError(`Invalid mark data for Node.fromJSON`);n=t.marks.map(e.markFromJSON)}if(t.type==`text`){if(typeof t.text!=`string`)throw RangeError(`Invalid text node in JSON`);return e.text(t.text,n)}let r=F.fromJSON(e,t.content),i=e.nodeType(t.type).create(t.attrs,r,n);return i.type.checkAttrs(i.attrs),i}};ze.prototype.text=void 0;var Be=class e extends ze{constructor(e,t,n,r){if(super(e,t,null,r),!n)throw RangeError(`Empty text nodes are not allowed`);this.text=n}toString(){return this.type.spec.toDebugString?this.type.spec.toDebugString(this):Ve(this.marks,JSON.stringify(this.text))}get textContent(){return this.text}textBetween(e,t){return this.text.slice(e,t)}get nodeSize(){return this.text.length}mark(t){return t==this.marks?this:new e(this.type,this.attrs,this.text,t)}withText(t){return t==this.text?this:new e(this.type,this.attrs,t,this.marks)}cut(e=0,t=this.text.length){return e==0&&t==this.text.length?this:this.withText(this.text.slice(e,t))}eq(e){return this.sameMarkup(e)&&this.text==e.text}toJSON(){let e=super.toJSON();return e.text=this.text,e}};function Ve(e,t){for(let n=e.length-1;n>=0;n--)t=e[n].type.name+`(`+t+`)`;return t}var He=class e{constructor(e){this.validEnd=e,this.next=[],this.wrapCache=[]}static parse(t,n){let r=new Ue(t,n);if(r.next==null)return e.empty;let i=We(r);r.next&&r.err(`Unexpected trailing text`);let a=et(Ze(i));return tt(a,r),a}matchType(e){for(let t=0;t<this.next.length;t++)if(this.next[t].type==e)return this.next[t].next;return null}matchFragment(e,t=0,n=e.childCount){let r=this;for(let i=t;r&&i<n;i++)r=r.matchType(e.child(i).type);return r}get inlineContent(){return this.next.length!=0&&this.next[0].type.isInline}get defaultType(){for(let e=0;e<this.next.length;e++){let{type:t}=this.next[e];if(!(t.isText||t.hasRequiredAttrs()))return t}return null}compatible(e){for(let t=0;t<this.next.length;t++)for(let n=0;n<e.next.length;n++)if(this.next[t].type==e.next[n].type)return!0;return!1}fillBefore(e,t=!1,n=0){let r=[this];function i(a,o){let s=a.matchFragment(e,n);if(s&&(!t||s.validEnd))return F.from(o.map(e=>e.createAndFill()));for(let e=0;e<a.next.length;e++){let{type:t,next:n}=a.next[e];if(!(t.isText||t.hasRequiredAttrs())&&r.indexOf(n)==-1){r.push(n);let e=i(n,o.concat(t));if(e)return e}}return null}return i(this,[])}findWrapping(e){for(let t=0;t<this.wrapCache.length;t+=2)if(this.wrapCache[t]==e)return this.wrapCache[t+1];let t=this.computeWrapping(e);return this.wrapCache.push(e,t),t}computeWrapping(e){let t=Object.create(null),n=[{match:this,type:null,via:null}];for(;n.length;){let r=n.shift(),i=r.match;if(i.matchType(e)){let e=[];for(let t=r;t.type;t=t.via)e.push(t.type);return e.reverse()}for(let e=0;e<i.next.length;e++){let{type:a,next:o}=i.next[e];!a.isLeaf&&!a.hasRequiredAttrs()&&!(a.name in t)&&(!r.type||o.validEnd)&&(n.push({match:a.contentMatch,type:a,via:r}),t[a.name]=!0)}}return null}get edgeCount(){return this.next.length}edge(e){if(e>=this.next.length)throw RangeError(`There's no ${e}th edge in this content match`);return this.next[e]}toString(){let e=[];function t(n){e.push(n);for(let r=0;r<n.next.length;r++)e.indexOf(n.next[r].next)==-1&&t(n.next[r].next)}return t(this),e.map((t,n)=>{let r=n+(t.validEnd?`*`:` `)+` `;for(let n=0;n<t.next.length;n++)r+=(n?`, `:``)+t.next[n].type.name+`->`+e.indexOf(t.next[n].next);return r}).join(`
|
|
10
|
-
`)}};He.empty=new He(!0);var Ue=class{constructor(e,t){this.string=e,this.nodeTypes=t,this.inline=null,this.pos=0,this.tokens=e.split(/\s*(?=\b|\W|$)/),this.tokens[this.tokens.length-1]==``&&this.tokens.pop(),this.tokens[0]==``&&this.tokens.shift()}get next(){return this.tokens[this.pos]}eat(e){return this.next==e&&(this.pos++||!0)}err(e){throw SyntaxError(e+` (in content expression '`+this.string+`')`)}};function We(e){let t=[];do t.push(Ge(e));while(e.eat(`|`));return t.length==1?t[0]:{type:`choice`,exprs:t}}function Ge(e){let t=[];do t.push(Ke(e));while(e.next&&e.next!=`)`&&e.next!=`|`);return t.length==1?t[0]:{type:`seq`,exprs:t}}function Ke(e){let t=Xe(e);for(;;)if(e.eat(`+`))t={type:`plus`,expr:t};else if(e.eat(`*`))t={type:`star`,expr:t};else if(e.eat(`?`))t={type:`opt`,expr:t};else if(e.eat(`{`))t=Je(e,t);else break;return t}function qe(e){/\D/.test(e.next)&&e.err(`Expected number, got '`+e.next+`'`);let t=Number(e.next);return e.pos++,t}function Je(e,t){let n=qe(e),r=n;return e.eat(`,`)&&(r=e.next==`}`?-1:qe(e)),e.eat(`}`)||e.err(`Unclosed braced range`),{type:`range`,min:n,max:r,expr:t}}function Ye(e,t){let n=e.nodeTypes,r=n[t];if(r)return[r];let i=[];for(let e in n){let r=n[e];r.isInGroup(t)&&i.push(r)}return i.length==0&&e.err(`No node type or group '`+t+`' found`),i}function Xe(e){if(e.eat(`(`)){let t=We(e);return e.eat(`)`)||e.err(`Missing closing paren`),t}else if(/\W/.test(e.next))e.err(`Unexpected token '`+e.next+`'`);else{let t=Ye(e,e.next).map(t=>(e.inline==null?e.inline=t.isInline:e.inline!=t.isInline&&e.err(`Mixing inline and block content`),{type:`name`,value:t}));return e.pos++,t.length==1?t[0]:{type:`choice`,exprs:t}}}function Ze(e){let t=[[]];return i(a(e,0),n()),t;function n(){return t.push([])-1}function r(e,n,r){let i={term:r,to:n};return t[e].push(i),i}function i(e,t){e.forEach(e=>e.to=t)}function a(e,t){if(e.type==`choice`)return e.exprs.reduce((e,n)=>e.concat(a(n,t)),[]);if(e.type==`seq`)for(let r=0;;r++){let o=a(e.exprs[r],t);if(r==e.exprs.length-1)return o;i(o,t=n())}else if(e.type==`star`){let o=n();return r(t,o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`plus`){let o=n();return i(a(e.expr,t),o),i(a(e.expr,o),o),[r(o)]}else if(e.type==`opt`)return[r(t)].concat(a(e.expr,t));else if(e.type==`range`){let o=t;for(let t=0;t<e.min;t++){let t=n();i(a(e.expr,o),t),o=t}if(e.max==-1)i(a(e.expr,o),o);else for(let t=e.min;t<e.max;t++){let t=n();r(o,t),i(a(e.expr,o),t),o=t}return[r(o)]}else if(e.type==`name`)return[r(t,void 0,e.value)];else throw Error(`Unknown expr type`)}}function Qe(e,t){return t-e}function $e(e,t){let n=[];return r(t),n.sort(Qe);function r(t){let i=e[t];if(i.length==1&&!i[0].term)return r(i[0].to);n.push(t);for(let e=0;e<i.length;e++){let{term:t,to:a}=i[e];!t&&n.indexOf(a)==-1&&r(a)}}}function et(e){let t=Object.create(null);return n($e(e,0));function n(r){let i=[];r.forEach(t=>{e[t].forEach(({term:t,to:n})=>{if(!t)return;let r;for(let e=0;e<i.length;e++)i[e][0]==t&&(r=i[e][1]);$e(e,n).forEach(e=>{r||i.push([t,r=[]]),r.indexOf(e)==-1&&r.push(e)})})});let a=t[r.join(`,`)]=new He(r.indexOf(e.length-1)>-1);for(let e=0;e<i.length;e++){let r=i[e][1].sort(Qe);a.next.push({type:i[e][0],next:t[r.join(`,`)]||n(r)})}return a}}function tt(e,t){for(let n=0,r=[e];n<r.length;n++){let e=r[n],i=!e.validEnd,a=[];for(let t=0;t<e.next.length;t++){let{type:n,next:o}=e.next[t];a.push(n.name),i&&!(n.isText||n.hasRequiredAttrs())&&(i=!1),r.indexOf(o)==-1&&r.push(o)}i&&t.err(`Only non-generatable nodes (`+a.join(`, `)+`) in a required position (see https://prosemirror.net/docs/guide/#generatable)`)}}function nt(e){let t=Object.create(null);for(let n in e){let r=e[n];if(!r.hasDefault)return null;t[n]=r.default}return t}function rt(e,t){let n=Object.create(null);for(let r in e){let i=t&&t[r];if(i===void 0){let t=e[r];if(t.hasDefault)i=t.default;else throw RangeError(`No value supplied for attribute `+r)}n[r]=i}return n}function it(e,t,n,r){for(let i in t)if(!(i in e))throw RangeError(`Unsupported attribute ${i} for ${n} of type ${r}`);for(let n in e)e[n].validate&&e[n].validate(t[n])}function at(e,t){let n=Object.create(null);if(t)for(let r in t)n[r]=new ct(e,r,t[r]);return n}var ot=class e{constructor(e,t,n){this.name=e,this.schema=t,this.spec=n,this.markSet=null,this.groups=n.group?n.group.split(` `):[],this.attrs=at(e,n.attrs),this.defaultAttrs=nt(this.attrs),this.contentMatch=null,this.inlineContent=null,this.isBlock=!(n.inline||e==`text`),this.isText=e==`text`}get isInline(){return!this.isBlock}get isTextblock(){return this.isBlock&&this.inlineContent}get isLeaf(){return this.contentMatch==He.empty}get isAtom(){return this.isLeaf||!!this.spec.atom}isInGroup(e){return this.groups.indexOf(e)>-1}get whitespace(){return this.spec.whitespace||(this.spec.code?`pre`:`normal`)}hasRequiredAttrs(){for(let e in this.attrs)if(this.attrs[e].isRequired)return!0;return!1}compatibleContent(e){return this==e||this.contentMatch.compatible(e.contentMatch)}computeAttrs(e){return!e&&this.defaultAttrs?this.defaultAttrs:rt(this.attrs,e)}create(e=null,t,n){if(this.isText)throw Error(`NodeType.create can't construct text nodes`);return new ze(this,this.computeAttrs(e),F.from(t),ye.setFrom(n))}createChecked(e=null,t,n){return t=F.from(t),this.checkContent(t),new ze(this,this.computeAttrs(e),t,ye.setFrom(n))}createAndFill(e=null,t,n){if(e=this.computeAttrs(e),t=F.from(t),t.size){let e=this.contentMatch.fillBefore(t);if(!e)return null;t=e.append(t)}let r=this.contentMatch.matchFragment(t),i=r&&r.fillBefore(F.empty,!0);return i?new ze(this,e,t.append(i),ye.setFrom(n)):null}validContent(e){let t=this.contentMatch.matchFragment(e);if(!t||!t.validEnd)return!1;for(let t=0;t<e.childCount;t++)if(!this.allowsMarks(e.child(t).marks))return!1;return!0}checkContent(e){if(!this.validContent(e))throw RangeError(`Invalid content for node ${this.name}: ${e.toString().slice(0,50)}`)}checkAttrs(e){it(this.attrs,e,`node`,this.name)}allowsMarkType(e){return this.markSet==null||this.markSet.indexOf(e)>-1}allowsMarks(e){if(this.markSet==null)return!0;for(let t=0;t<e.length;t++)if(!this.allowsMarkType(e[t].type))return!1;return!0}allowedMarks(e){if(this.markSet==null)return e;let t;for(let n=0;n<e.length;n++)this.allowsMarkType(e[n].type)?t&&t.push(e[n]):t||=e.slice(0,n);return t?t.length?t:ye.none:e}static compile(t,n){let r=Object.create(null);t.forEach((t,i)=>r[t]=new e(t,n,i));let i=n.spec.topNode||`doc`;if(!r[i])throw RangeError(`Schema is missing its top node type ('`+i+`')`);if(!r.text)throw RangeError(`Every schema needs a 'text' type`);for(let e in r.text.attrs)throw RangeError(`The text node type should not have attributes`);return r}};function st(e,t,n){let r=n.split(`|`);return n=>{let i=n===null?`null`:typeof n;if(r.indexOf(i)<0)throw RangeError(`Expected value of type ${r} for attribute ${t} on type ${e}, got ${i}`)}}var ct=class{constructor(e,t,n){this.hasDefault=Object.prototype.hasOwnProperty.call(n,`default`),this.default=n.default,this.validate=typeof n.validate==`string`?st(e,t,n.validate):n.validate}get isRequired(){return!this.hasDefault}},lt=class e{constructor(e,t,n,r){this.name=e,this.rank=t,this.schema=n,this.spec=r,this.attrs=at(e,r.attrs),this.excluded=null;let i=nt(this.attrs);this.instance=i?new ye(this,i):null}create(e=null){return!e&&this.instance?this.instance:new ye(this,rt(this.attrs,e))}static compile(t,n){let r=Object.create(null),i=0;return t.forEach((t,a)=>r[t]=new e(t,i++,n,a)),r}removeFromSet(e){for(var t=0;t<e.length;t++)e[t].type==this&&(e=e.slice(0,t).concat(e.slice(t+1)),t--);return e}isInSet(e){for(let t=0;t<e.length;t++)if(e[t].type==this)return e[t]}checkAttrs(e){it(this.attrs,e,`mark`,this.name)}excludes(e){return this.excluded.indexOf(e)>-1}},L=class{constructor(e){this.linebreakReplacement=null,this.cached=Object.create(null);let t=this.spec={};for(let n in e)t[n]=e[n];t.nodes=P.from(e.nodes),t.marks=P.from(e.marks||{}),this.nodes=ot.compile(this.spec.nodes,this),this.marks=lt.compile(this.spec.marks,this);let n=Object.create(null);for(let e in this.nodes){if(e in this.marks)throw RangeError(e+` can not be both a node and a mark`);let t=this.nodes[e],r=t.spec.content||``,i=t.spec.marks;if(t.contentMatch=n[r]||(n[r]=He.parse(r,this.nodes)),t.inlineContent=t.contentMatch.inlineContent,t.spec.linebreakReplacement){if(this.linebreakReplacement)throw RangeError(`Multiple linebreak nodes defined`);if(!t.isInline||!t.isLeaf)throw RangeError(`Linebreak replacement nodes must be inline leaf nodes`);this.linebreakReplacement=t}t.markSet=i==`_`?null:i?ut(this,i.split(` `)):i==``||!t.inlineContent?[]:null}for(let e in this.marks){let t=this.marks[e],n=t.spec.excludes;t.excluded=n==null?[t]:n==``?[]:ut(this,n.split(` `))}this.nodeFromJSON=e=>ze.fromJSON(this,e),this.markFromJSON=e=>ye.fromJSON(this,e),this.topNodeType=this.nodes[this.spec.topNode||`doc`],this.cached.wrappings=Object.create(null)}node(e,t=null,n,r){if(typeof e==`string`)e=this.nodeType(e);else if(!(e instanceof ot))throw RangeError(`Invalid node type: `+e);else if(e.schema!=this)throw RangeError(`Node type from different schema used (`+e.name+`)`);return e.createChecked(t,n,r)}text(e,t){let n=this.nodes.text;return new Be(n,n.defaultAttrs,e,ye.setFrom(t))}mark(e,t){return typeof e==`string`&&(e=this.marks[e]),e.create(t)}nodeType(e){let t=this.nodes[e];if(!t)throw RangeError(`Unknown node type: `+e);return t}};function ut(e,t){let n=[];for(let r=0;r<t.length;r++){let i=t[r],a=e.marks[i],o=a;if(a)n.push(a);else for(let t in e.marks){let r=e.marks[t];(i==`_`||r.spec.group&&r.spec.group.split(` `).indexOf(i)>-1)&&n.push(o=r)}if(!o)throw SyntaxError(`Unknown mark type: '`+t[r]+`'`)}return n}var dt=65535,ft=2**16;function pt(e,t){return e+t*ft}function mt(e){return e&dt}function ht(e){return(e-(e&dt))/ft}var gt=1,_t=2,vt=4,yt=8,bt=class{constructor(e,t,n){this.pos=e,this.delInfo=t,this.recover=n}get deleted(){return(this.delInfo&yt)>0}get deletedBefore(){return(this.delInfo&5)>0}get deletedAfter(){return(this.delInfo&6)>0}get deletedAcross(){return(this.delInfo&vt)>0}},xt=class e{constructor(t,n=!1){if(this.ranges=t,this.inverted=n,!t.length&&e.empty)return e.empty}recover(e){let t=0,n=mt(e);if(!this.inverted)for(let e=0;e<n;e++)t+=this.ranges[e*3+2]-this.ranges[e*3+1];return this.ranges[n*3]+t+ht(e)}mapResult(e,t=1){return this._map(e,t,!1)}map(e,t=1){return this._map(e,t,!0)}_map(e,t,n){let r=0,i=this.inverted?2:1,a=this.inverted?1:2;for(let o=0;o<this.ranges.length;o+=3){let s=this.ranges[o]-(this.inverted?r:0);if(s>e)break;let c=this.ranges[o+i],l=this.ranges[o+a],u=s+c;if(e<=u){let i=c?e==s?-1:e==u?1:t:t,a=s+r+(i<0?0:l);if(n)return a;let d=e==(t<0?s:u)?null:pt(o/3,e-s),f=e==s?_t:e==u?gt:vt;return(t<0?e!=s:e!=u)&&(f|=yt),new bt(a,f,d)}r+=l-c}return n?e+r:new bt(e+r,0,null)}touches(e,t){let n=0,r=mt(t),i=this.inverted?2:1,a=this.inverted?1:2;for(let t=0;t<this.ranges.length;t+=3){let o=this.ranges[t]-(this.inverted?n:0);if(o>e)break;let s=this.ranges[t+i];if(e<=o+s&&t==r*3)return!0;n+=this.ranges[t+a]-s}return!1}forEach(e){let t=this.inverted?2:1,n=this.inverted?1:2;for(let r=0,i=0;r<this.ranges.length;r+=3){let a=this.ranges[r],o=a-(this.inverted?i:0),s=a+(this.inverted?0:i),c=this.ranges[r+t],l=this.ranges[r+n];e(o,o+c,s,s+l),i+=l-c}}invert(){return new e(this.ranges,!this.inverted)}toString(){return(this.inverted?`-`:``)+JSON.stringify(this.ranges)}static offset(t){return t==0?e.empty:new e(t<0?[0,-t,0]:[0,0,t])}};xt.empty=new xt([]);var St=Object.create(null),R=class{getMap(){return xt.empty}merge(e){return null}static fromJSON(e,t){if(!t||!t.stepType)throw RangeError(`Invalid input for Step.fromJSON`);let n=St[t.stepType];if(!n)throw RangeError(`No step type ${t.stepType} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in St)throw RangeError(`Duplicate use of step JSON ID `+e);return St[e]=t,t.prototype.jsonID=e,t}},Ct=class e{constructor(e,t){this.doc=e,this.failed=t}static ok(t){return new e(t,null)}static fail(t){return new e(null,t)}static fromReplace(t,n,r,i){try{return e.ok(t.replace(n,r,i))}catch(t){if(t instanceof be)return e.fail(t.message);throw t}}};function wt(e,t,n){let r=[];for(let i=0;i<e.childCount;i++){let a=e.child(i);a.content.size&&(a=a.copy(wt(a.content,t,a))),a.isInline&&(a=t(a,n,i)),r.push(a)}return F.fromArray(r)}var Tt=class e extends R{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=e.resolve(this.from),r=n.node(n.sharedDepth(this.to)),i=new I(wt(t.content,(e,t)=>!e.isAtom||!t.type.allowsMarkType(this.mark.type)?e:e.mark(this.mark.addToSet(e.marks)),r),t.openStart,t.openEnd);return Ct.fromReplace(e,this.from,this.to,i)}invert(){return new Et(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`addMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for AddMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};R.jsonID(`addMark`,Tt);var Et=class e extends R{constructor(e,t,n){super(),this.from=e,this.to=t,this.mark=n}apply(e){let t=e.slice(this.from,this.to),n=new I(wt(t.content,e=>e.mark(this.mark.removeFromSet(e.marks)),e),t.openStart,t.openEnd);return Ct.fromReplace(e,this.from,this.to,n)}invert(){return new Tt(this.from,this.to,this.mark)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1);return n.deleted&&r.deleted||n.pos>=r.pos?null:new e(n.pos,r.pos,this.mark)}merge(t){return t instanceof e&&t.mark.eq(this.mark)&&this.from<=t.to&&this.to>=t.from?new e(Math.min(this.from,t.from),Math.max(this.to,t.to),this.mark):null}toJSON(){return{stepType:`removeMark`,mark:this.mark.toJSON(),from:this.from,to:this.to}}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for RemoveMarkStep.fromJSON`);return new e(n.from,n.to,t.markFromJSON(n.mark))}};R.jsonID(`removeMark`,Et);var Dt=class e extends R{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ct.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.addToSet(t.marks));return Ct.fromReplace(e,this.pos,this.pos+1,new I(F.from(n),0,+!t.isLeaf))}invert(t){let n=t.nodeAt(this.pos);if(n){let t=this.mark.addToSet(n.marks);if(t.length==n.marks.length){for(let r=0;r<n.marks.length;r++)if(!n.marks[r].isInSet(t))return new e(this.pos,n.marks[r]);return new e(this.pos,this.mark)}}return new Ot(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`addNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for AddNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};R.jsonID(`addNodeMark`,Dt);var Ot=class e extends R{constructor(e,t){super(),this.pos=e,this.mark=t}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ct.fail(`No node at mark step's position`);let n=t.type.create(t.attrs,null,this.mark.removeFromSet(t.marks));return Ct.fromReplace(e,this.pos,this.pos+1,new I(F.from(n),0,+!t.isLeaf))}invert(e){let t=e.nodeAt(this.pos);return!t||!this.mark.isInSet(t.marks)?this:new Dt(this.pos,this.mark)}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.mark)}toJSON(){return{stepType:`removeNodeMark`,pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,n){if(typeof n.pos!=`number`)throw RangeError(`Invalid input for RemoveNodeMarkStep.fromJSON`);return new e(n.pos,t.markFromJSON(n.mark))}};R.jsonID(`removeNodeMark`,Ot);var kt=class e extends R{constructor(e,t,n,r=!1){super(),this.from=e,this.to=t,this.slice=n,this.structure=r}apply(e){return this.structure&&jt(e,this.from,this.to)?Ct.fail(`Structure replace would overwrite content`):Ct.fromReplace(e,this.from,this.to,this.slice)}getMap(){return new xt([this.from,this.to-this.from,this.slice.size])}invert(t){return new e(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let n=t.mapResult(this.to,-1),r=this.from==this.to&&e.MAP_BIAS<0?n:t.mapResult(this.from,1);return r.deletedAcross&&n.deletedAcross?null:new e(r.pos,Math.max(r.pos,n.pos),this.slice,this.structure)}merge(t){if(!(t instanceof e)||t.structure||this.structure)return null;if(this.from+this.slice.size==t.from&&!this.slice.openEnd&&!t.slice.openStart){let n=this.slice.size+t.slice.size==0?I.empty:new I(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd);return new e(this.from,this.to+(t.to-t.from),n,this.structure)}else if(t.to==this.from&&!this.slice.openStart&&!t.slice.openEnd){let n=this.slice.size+t.slice.size==0?I.empty:new I(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd);return new e(t.from,this.to,n,this.structure)}else return null}toJSON(){let e={stepType:`replace`,from:this.from,to:this.to};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`)throw RangeError(`Invalid input for ReplaceStep.fromJSON`);return new e(n.from,n.to,I.fromJSON(t,n.slice),!!n.structure)}};kt.MAP_BIAS=1,R.jsonID(`replace`,kt);var At=class e extends R{constructor(e,t,n,r,i,a,o=!1){super(),this.from=e,this.to=t,this.gapFrom=n,this.gapTo=r,this.slice=i,this.insert=a,this.structure=o}apply(e){if(this.structure&&(jt(e,this.from,this.gapFrom)||jt(e,this.gapTo,this.to)))return Ct.fail(`Structure gap-replace would overwrite content`);let t=e.slice(this.gapFrom,this.gapTo);if(t.openStart||t.openEnd)return Ct.fail(`Gap is not a flat range`);let n=this.slice.insertAt(this.insert,t.content);return n?Ct.fromReplace(e,this.from,this.to,n):Ct.fail(`Content does not fit in gap`)}getMap(){return new xt([this.from,this.gapFrom-this.from,this.insert,this.gapTo,this.to-this.gapTo,this.slice.size-this.insert])}invert(t){let n=this.gapTo-this.gapFrom;return new e(this.from,this.from+this.slice.size+n,this.from+this.insert,this.from+this.insert+n,t.slice(this.from,this.to).removeBetween(this.gapFrom-this.from,this.gapTo-this.from),this.gapFrom-this.from,this.structure)}map(t){let n=t.mapResult(this.from,1),r=t.mapResult(this.to,-1),i=this.from==this.gapFrom?n.pos:t.map(this.gapFrom,-1),a=this.to==this.gapTo?r.pos:t.map(this.gapTo,1);return n.deletedAcross&&r.deletedAcross||i<n.pos||a>r.pos?null:new e(n.pos,r.pos,i,a,this.slice,this.insert,this.structure)}toJSON(){let e={stepType:`replaceAround`,from:this.from,to:this.to,gapFrom:this.gapFrom,gapTo:this.gapTo,insert:this.insert};return this.slice.size&&(e.slice=this.slice.toJSON()),this.structure&&(e.structure=!0),e}static fromJSON(t,n){if(typeof n.from!=`number`||typeof n.to!=`number`||typeof n.gapFrom!=`number`||typeof n.gapTo!=`number`||typeof n.insert!=`number`)throw RangeError(`Invalid input for ReplaceAroundStep.fromJSON`);return new e(n.from,n.to,n.gapFrom,n.gapTo,I.fromJSON(t,n.slice),n.insert,!!n.structure)}};R.jsonID(`replaceAround`,At);function jt(e,t,n){let r=e.resolve(t),i=n-t,a=r.depth;for(;i>0&&a>0&&r.indexAfter(a)==r.node(a).childCount;)a--,i--;if(i>0){let e=r.node(a).maybeChild(r.indexAfter(a));for(;i>0;){if(!e||e.isLeaf)return!0;e=e.firstChild,i--}}return!1}var Mt=class e extends R{constructor(e,t,n){super(),this.pos=e,this.attr=t,this.value=n}apply(e){let t=e.nodeAt(this.pos);if(!t)return Ct.fail(`No node at attribute step's position`);let n=Object.create(null);for(let e in t.attrs)n[e]=t.attrs[e];n[this.attr]=this.value;let r=t.type.create(n,null,t.marks);return Ct.fromReplace(e,this.pos,this.pos+1,new I(F.from(r),0,+!t.isLeaf))}getMap(){return xt.empty}invert(t){return new e(this.pos,this.attr,t.nodeAt(this.pos).attrs[this.attr])}map(t){let n=t.mapResult(this.pos,1);return n.deletedAfter?null:new e(n.pos,this.attr,this.value)}toJSON(){return{stepType:`attr`,pos:this.pos,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.pos!=`number`||typeof n.attr!=`string`)throw RangeError(`Invalid input for AttrStep.fromJSON`);return new e(n.pos,n.attr,n.value)}};R.jsonID(`attr`,Mt);var Nt=class e extends R{constructor(e,t){super(),this.attr=e,this.value=t}apply(e){let t=Object.create(null);for(let n in e.attrs)t[n]=e.attrs[n];t[this.attr]=this.value;let n=e.type.create(t,e.content,e.marks);return Ct.ok(n)}getMap(){return xt.empty}invert(t){return new e(this.attr,t.attrs[this.attr])}map(e){return this}toJSON(){return{stepType:`docAttr`,attr:this.attr,value:this.value}}static fromJSON(t,n){if(typeof n.attr!=`string`)throw RangeError(`Invalid input for DocAttrStep.fromJSON`);return new e(n.attr,n.value)}};R.jsonID(`docAttr`,Nt);var Pt=class extends Error{};Pt=function e(t){let n=Error.call(this,t);return n.__proto__=e.prototype,n},Pt.prototype=Object.create(Error.prototype),Pt.prototype.constructor=Pt,Pt.prototype.name=`TransformError`;var Ft=Object.create(null),z=class{constructor(e,t,n){this.$anchor=e,this.$head=t,this.ranges=n||[new It(e.min(t),e.max(t))]}get anchor(){return this.$anchor.pos}get head(){return this.$head.pos}get from(){return this.$from.pos}get to(){return this.$to.pos}get $from(){return this.ranges[0].$from}get $to(){return this.ranges[0].$to}get empty(){let e=this.ranges;for(let t=0;t<e.length;t++)if(e[t].$from.pos!=e[t].$to.pos)return!1;return!0}content(){return this.$from.doc.slice(this.from,this.to,!0)}replace(e,t=I.empty){let n=t.content.lastChild,r=null;for(let e=0;e<t.openEnd;e++)r=n,n=n.lastChild;let i=e.steps.length,a=this.ranges;for(let o=0;o<a.length;o++){let{$from:s,$to:c}=a[o],l=e.mapping.slice(i);e.replaceRange(l.map(s.pos),l.map(c.pos),o?I.empty:t),o==0&&Kt(e,i,(n?n.isInline:r&&r.isTextblock)?-1:1)}}replaceWith(e,t){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n),c=s.map(a.pos),l=s.map(o.pos);i?e.deleteRange(c,l):(e.replaceRangeWith(c,l,t),Kt(e,n,t.isInline?-1:1))}}static findFrom(e,t,n=!1){let r=e.parent.inlineContent?new zt(e):Gt(e.node(0),e.parent,e.pos,e.index(),t,n);if(r)return r;for(let r=e.depth-1;r>=0;r--){let i=t<0?Gt(e.node(0),e.node(r),e.before(r+1),e.index(r),t,n):Gt(e.node(0),e.node(r),e.after(r+1),e.index(r)+1,t,n);if(i)return i}return null}static near(e,t=1){return this.findFrom(e,t)||this.findFrom(e,-t)||new Ut(e.node(0))}static atStart(e){return Gt(e,e,0,0,1)||new Ut(e)}static atEnd(e){return Gt(e,e,e.content.size,e.childCount,-1)||new Ut(e)}static fromJSON(e,t){if(!t||!t.type)throw RangeError(`Invalid input for Selection.fromJSON`);let n=Ft[t.type];if(!n)throw RangeError(`No selection type ${t.type} defined`);return n.fromJSON(e,t)}static jsonID(e,t){if(e in Ft)throw RangeError(`Duplicate use of selection JSON ID `+e);return Ft[e]=t,t.prototype.jsonID=e,t}getBookmark(){return zt.between(this.$anchor,this.$head).getBookmark()}};z.prototype.visible=!0;var It=class{constructor(e,t){this.$from=e,this.$to=t}},Lt=!1;function Rt(e){!Lt&&!e.parent.inlineContent&&(Lt=!0,console.warn(`TextSelection endpoint not pointing into a node with inline content (`+e.parent.type.name+`)`))}var zt=class e extends z{constructor(e,t=e){Rt(e),Rt(t),super(e,t)}get $cursor(){return this.$anchor.pos==this.$head.pos?this.$head:null}map(t,n){let r=t.resolve(n.map(this.head));if(!r.parent.inlineContent)return z.near(r);let i=t.resolve(n.map(this.anchor));return new e(i.parent.inlineContent?i:r,r)}replace(e,t=I.empty){if(super.replace(e,t),t==I.empty){let t=this.$from.marksAcross(this.$to);t&&e.ensureMarks(t)}}eq(t){return t instanceof e&&t.anchor==this.anchor&&t.head==this.head}getBookmark(){return new Bt(this.anchor,this.head)}toJSON(){return{type:`text`,anchor:this.anchor,head:this.head}}static fromJSON(t,n){if(typeof n.anchor!=`number`||typeof n.head!=`number`)throw RangeError(`Invalid input for TextSelection.fromJSON`);return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(e,t,n=t){let r=e.resolve(t);return new this(r,n==t?r:e.resolve(n))}static between(t,n,r){let i=t.pos-n.pos;if((!r||i)&&(r=i>=0?1:-1),!n.parent.inlineContent){let e=z.findFrom(n,r,!0)||z.findFrom(n,-r,!0);if(e)n=e.$head;else return z.near(n,r)}return t.parent.inlineContent||(i==0?t=n:(t=(z.findFrom(t,-r,!0)||z.findFrom(t,r,!0)).$anchor,t.pos<n.pos!=i<0&&(t=n))),new e(t,n)}};z.jsonID(`text`,zt);var Bt=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){return zt.between(e.resolve(this.anchor),e.resolve(this.head))}},Vt=class e extends z{constructor(e){let t=e.nodeAfter,n=e.node(0).resolve(e.pos+t.nodeSize);super(e,n),this.node=t}map(t,n){let{deleted:r,pos:i}=n.mapResult(this.anchor),a=t.resolve(i);return r?z.near(a):new e(a)}content(){return new I(F.from(this.node),0,0)}eq(t){return t instanceof e&&t.anchor==this.anchor}toJSON(){return{type:`node`,anchor:this.anchor}}getBookmark(){return new Ht(this.anchor)}static fromJSON(t,n){if(typeof n.anchor!=`number`)throw RangeError(`Invalid input for NodeSelection.fromJSON`);return new e(t.resolve(n.anchor))}static create(t,n){return new e(t.resolve(n))}static isSelectable(e){return!e.isText&&e.type.spec.selectable!==!1}};Vt.prototype.visible=!1,z.jsonID(`node`,Vt);var Ht=class e{constructor(e){this.anchor=e}map(t){let{deleted:n,pos:r}=t.mapResult(this.anchor);return n?new Bt(r,r):new e(r)}resolve(e){let t=e.resolve(this.anchor),n=t.nodeAfter;return n&&Vt.isSelectable(n)?new Vt(t):z.near(t)}},Ut=class e extends z{constructor(e){super(e.resolve(0),e.resolve(e.content.size))}replace(e,t=I.empty){if(t==I.empty){e.delete(0,e.doc.content.size);let t=z.atStart(e.doc);t.eq(e.selection)||e.setSelection(t)}else super.replace(e,t)}toJSON(){return{type:`all`}}static fromJSON(t){return new e(t)}map(t){return new e(t)}eq(t){return t instanceof e}getBookmark(){return Wt}};z.jsonID(`all`,Ut);var Wt={map(){return this},resolve(e){return new Ut(e)}};function Gt(e,t,n,r,i,a=!1){if(t.inlineContent)return zt.create(e,n);for(let o=r-(i>0?0:1);i>0?o<t.childCount:o>=0;o+=i){let r=t.child(o);if(!r.isAtom){let t=Gt(e,r,n+i,i<0?r.childCount:0,i,a);if(t)return t}else if(!a&&Vt.isSelectable(r))return Vt.create(e,n-(i<0?r.nodeSize:0));n+=r.nodeSize*i}return null}function Kt(e,t,n){let r=e.steps.length-1;if(r<t)return;let i=e.steps[r];if(!(i instanceof kt||i instanceof At))return;let a=e.mapping.maps[r],o;a.forEach((e,t,n,r)=>{o??=r}),e.setSelection(z.near(e.doc.resolve(o),n))}function qt(e,t){return!t||!e?e:e.bind(t)}var Jt=class{constructor(e,t,n){this.name=e,this.init=qt(t.init,n),this.apply=qt(t.apply,n)}};new Jt(`doc`,{init(e){return e.doc||e.schema.topNodeType.createAndFill()},apply(e){return e.doc}}),new Jt(`selection`,{init(e,t){return e.selection||z.atStart(t.doc)},apply(e){return e.selection}}),new Jt(`storedMarks`,{init(e){return e.storedMarks||null},apply(e,t,n,r){return r.selection.$cursor?e.storedMarks:null}}),new Jt(`scrollToSelection`,{init(){return 0},apply(e,t){return e.scrolledIntoView?t+1:t}});var Yt=Object.create(null);function Xt(e){return e in Yt?e+`$`+ ++Yt[e]:(Yt[e]=0,e+`$`)}for(var Zt=class{constructor(e=`key`){this.key=Xt(e)}get(e){return e.config.pluginsByKey[this.key]}getState(e){return e[this.key]}},Qt={8:`Backspace`,9:`Tab`,10:`Enter`,12:`NumLock`,13:`Enter`,16:`Shift`,17:`Control`,18:`Alt`,20:`CapsLock`,27:`Escape`,32:` `,33:`PageUp`,34:`PageDown`,35:`End`,36:`Home`,37:`ArrowLeft`,38:`ArrowUp`,39:`ArrowRight`,40:`ArrowDown`,44:`PrintScreen`,45:`Insert`,46:`Delete`,59:`;`,61:`=`,91:`Meta`,92:`Meta`,106:`*`,107:`+`,108:`,`,109:`-`,110:`.`,111:`/`,144:`NumLock`,145:`ScrollLock`,160:`Shift`,161:`Shift`,162:`Control`,163:`Control`,164:`Alt`,165:`Alt`,173:`-`,186:`;`,187:`=`,188:`,`,189:`-`,190:`.`,191:`/`,192:"`",219:`[`,220:`\\`,221:`]`,222:`'`},$t={48:`)`,49:`!`,50:`@`,51:`#`,52:`$`,53:`%`,54:`^`,55:`&`,56:`*`,57:`(`,59:`:`,61:`+`,173:`_`,186:`:`,187:`+`,188:`<`,189:`_`,190:`>`,191:`?`,192:`~`,219:`{`,220:`|`,221:`}`,222:`"`},en=typeof navigator<`u`&&/Mac/.test(navigator.platform),B=typeof navigator<`u`&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent),V=0;V<10;V++)Qt[48+V]=Qt[96+V]=String(V);for(var V=1;V<=24;V++)Qt[V+111]=`F`+V;for(var V=65;V<=90;V++)Qt[V]=String.fromCharCode(V+32),$t[V]=String.fromCharCode(V);for(var tn in Qt)$t.hasOwnProperty(tn)||($t[tn]=Qt[tn]);function nn(e){var t=!(en&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||B&&e.shiftKey&&e.key&&e.key.length==1||e.key==`Unidentified`)&&e.key||(e.shiftKey?$t:Qt)[e.keyCode]||e.key||`Unidentified`;return t==`Esc`&&(t=`Escape`),t==`Del`&&(t=`Delete`),t==`Left`&&(t=`ArrowLeft`),t==`Up`&&(t=`ArrowUp`),t==`Right`&&(t=`ArrowRight`),t==`Down`&&(t=`ArrowDown`),t}var rn=typeof navigator<`u`&&/Mac|iP(hone|[oa]d)/.test(navigator.platform),an=typeof navigator<`u`&&/Win/.test(navigator.platform);function on(e){let t=e.split(/-(?!$)/),n=t[t.length-1];n==`Space`&&(n=` `);let r,i,a,o;for(let e=0;e<t.length-1;e++){let n=t[e];if(/^(cmd|meta|m)$/i.test(n))o=!0;else if(/^a(lt)?$/i.test(n))r=!0;else if(/^(c|ctrl|control)$/i.test(n))i=!0;else if(/^s(hift)?$/i.test(n))a=!0;else if(/^mod$/i.test(n))rn?o=!0:i=!0;else throw Error(`Unrecognized modifier name: `+n)}return r&&(n=`Alt-`+n),i&&(n=`Ctrl-`+n),o&&(n=`Meta-`+n),a&&(n=`Shift-`+n),n}function sn(e){let t=Object.create(null);for(let n in e)t[on(n)]=e[n];return t}function cn(e,t,n=!0){return t.altKey&&(e=`Alt-`+e),t.ctrlKey&&(e=`Ctrl-`+e),t.metaKey&&(e=`Meta-`+e),n&&t.shiftKey&&(e=`Shift-`+e),e}function ln(e){let t=sn(e);return function(e,n){let r=nn(n),i,a=t[cn(r,n)];if(a&&a(e.state,e.dispatch,e))return!0;if(r.length==1&&r!=` `){if(n.shiftKey){let i=t[cn(r,n,!1)];if(i&&i(e.state,e.dispatch,e))return!0}if((n.altKey||n.metaKey||n.ctrlKey)&&!(an&&n.ctrlKey&&n.altKey)&&(i=Qt[n.keyCode])&&i!=r){let r=t[cn(i,n)];if(r&&r(e.state,e.dispatch,e))return!0}}return!1}}var un,dn;if(typeof WeakMap<`u`){let e=new WeakMap;un=t=>e.get(t),dn=(t,n)=>(e.set(t,n),n)}else{let e=[],t=0;un=t=>{for(let n=0;n<e.length;n+=2)if(e[n]==t)return e[n+1]},dn=(n,r)=>(t==10&&(t=0),e[t++]=n,e[t++]=r)}var fn=class{constructor(e,t,n,r){this.width=e,this.height=t,this.map=n,this.problems=r}findCell(e){for(let t=0;t<this.map.length;t++){let n=this.map[t];if(n!=e)continue;let r=t%this.width,i=t/this.width|0,a=r+1,o=i+1;for(let e=1;a<this.width&&this.map[t+e]==n;e++)a++;for(let e=1;o<this.height&&this.map[t+this.width*e]==n;e++)o++;return{left:r,top:i,right:a,bottom:o}}throw RangeError(`No cell with offset ${e} found`)}colCount(e){for(let t=0;t<this.map.length;t++)if(this.map[t]==e)return t%this.width;throw RangeError(`No cell with offset ${e} found`)}nextCell(e,t,n){let{left:r,right:i,top:a,bottom:o}=this.findCell(e);return t==`horiz`?(n<0?r==0:i==this.width)?null:this.map[a*this.width+(n<0?r-1:i)]:(n<0?a==0:o==this.height)?null:this.map[r+this.width*(n<0?a-1:o)]}rectBetween(e,t){let{left:n,right:r,top:i,bottom:a}=this.findCell(e),{left:o,right:s,top:c,bottom:l}=this.findCell(t);return{left:Math.min(n,o),top:Math.min(i,c),right:Math.max(r,s),bottom:Math.max(a,l)}}cellsInRect(e){let t=[],n={};for(let r=e.top;r<e.bottom;r++)for(let i=e.left;i<e.right;i++){let a=r*this.width+i,o=this.map[a];n[o]||(n[o]=!0,!(i==e.left&&i&&this.map[a-1]==o||r==e.top&&r&&this.map[a-this.width]==o)&&t.push(o))}return t}positionAt(e,t,n){for(let r=0,i=0;;r++){let a=i+n.child(r).nodeSize;if(r==e){let n=t+e*this.width,r=(e+1)*this.width;for(;n<r&&this.map[n]<i;)n++;return n==r?a-1:this.map[n]}i=a}}static get(e){return un(e)||dn(e,pn(e))}};function pn(e){if(e.type.spec.tableRole!=`table`)throw RangeError(`Not a table node: `+e.type.name);let t=mn(e),n=e.childCount,r=[],i=0,a=null,o=[];for(let e=0,i=t*n;e<i;e++)r[e]=0;for(let s=0,c=0;s<n;s++){let l=e.child(s);c++;for(let e=0;;e++){for(;i<r.length&&r[i]!=0;)i++;if(e==l.childCount)break;let u=l.child(e),{colspan:d,rowspan:f,colwidth:p}=u.attrs;for(let e=0;e<f;e++){if(e+s>=n){(a||=[]).push({type:`overlong_rowspan`,pos:c,n:f-e});break}let l=i+e*t;for(let e=0;e<d;e++){r[l+e]==0?r[l+e]=c:(a||=[]).push({type:`collision`,row:s,pos:c,n:d-e});let n=p&&p[e];if(n){let r=(l+e)%t*2,i=o[r];i==null||i!=n&&o[r+1]==1?(o[r]=n,o[r+1]=1):i==n&&o[r+1]++}}}i+=d,c+=u.nodeSize}let u=(s+1)*t,d=0;for(;i<u;)r[i++]==0&&d++;d&&(a||=[]).push({type:`missing`,row:s,n:d}),c++}(t===0||n===0)&&(a||=[]).push({type:`zero_sized`});let s=new fn(t,n,r,a),c=!1;for(let e=0;!c&&e<o.length;e+=2)o[e]!=null&&o[e+1]<n&&(c=!0);return c&&hn(s,o,e),s}function mn(e){let t=-1,n=!1;for(let r=0;r<e.childCount;r++){let i=e.child(r),a=0;if(n)for(let t=0;t<r;t++){let n=e.child(t);for(let e=0;e<n.childCount;e++){let i=n.child(e);t+i.attrs.rowspan>r&&(a+=i.attrs.colspan)}}for(let e=0;e<i.childCount;e++){let t=i.child(e);a+=t.attrs.colspan,t.attrs.rowspan>1&&(n=!0)}t==-1?t=a:t!=a&&(t=Math.max(t,a))}return t}function hn(e,t,n){e.problems||=[];let r={};for(let i=0;i<e.map.length;i++){let a=e.map[i];if(r[a])continue;r[a]=!0;let o=n.nodeAt(a);if(!o)throw RangeError(`No cell with offset ${a} found`);let s=null,c=o.attrs;for(let n=0;n<c.colspan;n++){let r=t[(i+n)%e.width*2];r!=null&&(!c.colwidth||c.colwidth[n]!=r)&&((s||=gn(c))[n]=r)}s&&e.problems.unshift({type:`colwidth mismatch`,pos:a,colwidth:s})}}function gn(e){if(e.colwidth)return e.colwidth.slice();let t=[];for(let n=0;n<e.colspan;n++)t.push(0);return t}function _n(e,t){if(typeof e==`string`)return{};let n=e.getAttribute(`data-colwidth`),r=n&&/^\d+(,\d+)*$/.test(n)?n.split(`,`).map(e=>Number(e)):null,i=Number(e.getAttribute(`colspan`)||1),a={colspan:i,rowspan:Number(e.getAttribute(`rowspan`)||1),colwidth:r&&r.length==i?r:null};for(let n in t){let r=t[n].getFromDOM,i=r&&r(e);i!=null&&(a[n]=i)}return a}function vn(e,t){let n={};e.attrs.colspan!=1&&(n.colspan=e.attrs.colspan),e.attrs.rowspan!=1&&(n.rowspan=e.attrs.rowspan),e.attrs.colwidth&&(n[`data-colwidth`]=e.attrs.colwidth.join(`,`));for(let r in t){let i=t[r].setDOMAttr;i&&i(e.attrs[r],n)}return n}function yn(e){if(e!==null){if(!Array.isArray(e))throw TypeError(`colwidth must be null or an array`);for(let t of e)if(typeof t!=`number`)throw TypeError(`colwidth must be null or an array of numbers`)}}function bn(e){let t=e.cellAttributes||{},n={colspan:{default:1,validate:`number`},rowspan:{default:1,validate:`number`},colwidth:{default:null,validate:yn}};for(let e in t)n[e]={default:t[e].default,validate:t[e].validate};return{table:{content:`table_row+`,tableRole:`table`,isolating:!0,group:e.tableGroup,parseDOM:[{tag:`table`}],toDOM(){return[`table`,[`tbody`,0]]}},table_row:{content:`(table_cell | table_header)*`,tableRole:`row`,parseDOM:[{tag:`tr`}],toDOM(){return[`tr`,0]}},table_cell:{content:e.cellContent,attrs:n,tableRole:`cell`,isolating:!0,parseDOM:[{tag:`td`,getAttrs:e=>_n(e,t)}],toDOM(e){return[`td`,vn(e,t),0]}},table_header:{content:e.cellContent,attrs:n,tableRole:`header_cell`,isolating:!0,parseDOM:[{tag:`th`,getAttrs:e=>_n(e,t)}],toDOM(e){return[`th`,vn(e,t),0]}}}}function xn(e){let t=e.cached.tableNodeTypes;if(!t){t=e.cached.tableNodeTypes={};for(let n in e.nodes){let r=e.nodes[n],i=r.spec.tableRole;i&&(t[i]=r)}}return t}new Zt(`selectingCells`);function Sn(e){for(let t=e.depth-1;t>0;t--)if(e.node(t).type.spec.tableRole==`row`)return e.node(0).resolve(e.before(t+1));return null}function Cn(e){let t=e.selection.$head;for(let e=t.depth;e>0;e--)if(t.node(e).type.spec.tableRole==`row`)return!0;return!1}function wn(e){let t=e.selection;if(`$anchorCell`in t&&t.$anchorCell)return t.$anchorCell.pos>t.$headCell.pos?t.$anchorCell:t.$headCell;if(`node`in t&&t.node&&t.node.type.spec.tableRole==`cell`)return t.$anchor;let n=Sn(t.$head)||Tn(t.$head);if(n)return n;throw RangeError(`No cell found around position ${t.head}`)}function Tn(e){for(let t=e.nodeAfter,n=e.pos;t;t=t.firstChild,n++){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n)}for(let t=e.nodeBefore,n=e.pos;t;t=t.lastChild,n--){let r=t.type.spec.tableRole;if(r==`cell`||r==`header_cell`)return e.doc.resolve(n-t.nodeSize)}}function En(e){return e.parent.type.spec.tableRole==`row`&&!!e.nodeAfter}function Dn(e,t){return e.depth==t.depth&&e.pos>=t.start(-1)&&e.pos<=t.end(-1)}function On(e,t,n){let r=e.node(-1),i=fn.get(r),a=e.start(-1),o=i.nextCell(e.pos-a,t,n);return o==null?null:e.node(0).resolve(a+o)}function kn(e,t,n=1){let r={...e,colspan:e.colspan-n};return r.colwidth&&(r.colwidth=r.colwidth.slice(),r.colwidth.splice(t,n),r.colwidth.some(e=>e>0)||(r.colwidth=null)),r}var An=class e extends z{constructor(e,t=e){let n=e.node(-1),r=fn.get(n),i=e.start(-1),a=r.rectBetween(e.pos-i,t.pos-i),o=e.node(0),s=r.cellsInRect(a).filter(e=>e!=t.pos-i);s.unshift(t.pos-i);let c=s.map(e=>{let t=n.nodeAt(e);if(!t)throw RangeError(`No cell with offset ${e} found`);let r=i+e+1;return new It(o.resolve(r),o.resolve(r+t.content.size))});super(c[0].$from,c[0].$to,c),this.$anchorCell=e,this.$headCell=t}map(t,n){let r=t.resolve(n.map(this.$anchorCell.pos)),i=t.resolve(n.map(this.$headCell.pos));if(En(r)&&En(i)&&Dn(r,i)){let t=this.$anchorCell.node(-1)!=r.node(-1);return t&&this.isRowSelection()?e.rowSelection(r,i):t&&this.isColSelection()?e.colSelection(r,i):new e(r,i)}return zt.between(r,i)}content(){let e=this.$anchorCell.node(-1),t=fn.get(e),n=this.$anchorCell.start(-1),r=t.rectBetween(this.$anchorCell.pos-n,this.$headCell.pos-n),i={},a=[];for(let n=r.top;n<r.bottom;n++){let o=[];for(let a=n*t.width+r.left,s=r.left;s<r.right;s++,a++){let n=t.map[a];if(i[n])continue;i[n]=!0;let s=t.findCell(n),c=e.nodeAt(n);if(!c)throw RangeError(`No cell with offset ${n} found`);let l=r.left-s.left,u=s.right-r.right;if(l>0||u>0){let e=c.attrs;if(l>0&&(e=kn(e,0,l)),u>0&&(e=kn(e,e.colspan-u,u)),s.left<r.left){if(c=c.type.createAndFill(e),!c)throw RangeError(`Could not create cell with attrs ${JSON.stringify(e)}`)}else c=c.type.create(e,c.content)}if(s.top<r.top||s.bottom>r.bottom){let e={...c.attrs,rowspan:Math.min(s.bottom,r.bottom)-Math.max(s.top,r.top)};c=s.top<r.top?c.type.createAndFill(e):c.type.create(e,c.content)}o.push(c)}a.push(e.child(n).copy(F.from(o)))}let o=this.isColSelection()&&this.isRowSelection()?e:a;return new I(F.from(o),1,1)}replace(e,t=I.empty){let n=e.steps.length,r=this.ranges;for(let i=0;i<r.length;i++){let{$from:a,$to:o}=r[i],s=e.mapping.slice(n);e.replace(s.map(a.pos),s.map(o.pos),i?I.empty:t)}let i=z.findFrom(e.doc.resolve(e.mapping.slice(n).map(this.to)),-1);i&&e.setSelection(i)}replaceWith(e,t){this.replace(e,new I(F.from(t),0,0))}forEachCell(e){let t=this.$anchorCell.node(-1),n=fn.get(t),r=this.$anchorCell.start(-1),i=n.cellsInRect(n.rectBetween(this.$anchorCell.pos-r,this.$headCell.pos-r));for(let n=0;n<i.length;n++)e(t.nodeAt(i[n]),r+i[n])}isColSelection(){let e=this.$anchorCell.index(-1),t=this.$headCell.index(-1);if(Math.min(e,t)>0)return!1;let n=e+this.$anchorCell.nodeAfter.attrs.rowspan,r=t+this.$headCell.nodeAfter.attrs.rowspan;return Math.max(n,r)==this.$headCell.node(-1).childCount}static colSelection(t,n=t){let r=t.node(-1),i=fn.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.top<=s.top?(o.top>0&&(t=c.resolve(a+i.map[o.left])),s.bottom<i.height&&(n=c.resolve(a+i.map[i.width*(i.height-1)+s.right-1]))):(s.top>0&&(n=c.resolve(a+i.map[s.left])),o.bottom<i.height&&(t=c.resolve(a+i.map[i.width*(i.height-1)+o.right-1]))),new e(t,n)}isRowSelection(){let e=this.$anchorCell.node(-1),t=fn.get(e),n=this.$anchorCell.start(-1),r=t.colCount(this.$anchorCell.pos-n),i=t.colCount(this.$headCell.pos-n);if(Math.min(r,i)>0)return!1;let a=r+this.$anchorCell.nodeAfter.attrs.colspan,o=i+this.$headCell.nodeAfter.attrs.colspan;return Math.max(a,o)==t.width}eq(t){return t instanceof e&&t.$anchorCell.pos==this.$anchorCell.pos&&t.$headCell.pos==this.$headCell.pos}static rowSelection(t,n=t){let r=t.node(-1),i=fn.get(r),a=t.start(-1),o=i.findCell(t.pos-a),s=i.findCell(n.pos-a),c=t.node(0);return o.left<=s.left?(o.left>0&&(t=c.resolve(a+i.map[o.top*i.width])),s.right<i.width&&(n=c.resolve(a+i.map[i.width*(s.top+1)-1]))):(s.left>0&&(n=c.resolve(a+i.map[s.top*i.width])),o.right<i.width&&(t=c.resolve(a+i.map[i.width*(o.top+1)-1]))),new e(t,n)}toJSON(){return{type:`cell`,anchor:this.$anchorCell.pos,head:this.$headCell.pos}}static fromJSON(t,n){return new e(t.resolve(n.anchor),t.resolve(n.head))}static create(t,n,r=n){return new e(t.resolve(n),t.resolve(r))}getBookmark(){return new jn(this.$anchorCell.pos,this.$headCell.pos)}};An.prototype.visible=!1,z.jsonID(`cell`,An);var jn=class e{constructor(e,t){this.anchor=e,this.head=t}map(t){return new e(t.map(this.anchor),t.map(this.head))}resolve(e){let t=e.resolve(this.anchor),n=e.resolve(this.head);return t.parent.type.spec.tableRole==`row`&&n.parent.type.spec.tableRole==`row`&&t.index()<t.parent.childCount&&n.index()<n.parent.childCount&&Dn(t,n)?new An(t,n):z.near(n,1)}};new Zt(`fix-tables`);function Mn(e){let t=e.selection,n=wn(e),r=n.node(-1),i=n.start(-1),a=fn.get(r);return{...t instanceof An?a.rectBetween(t.$anchorCell.pos-i,t.$headCell.pos-i):a.findCell(n.pos-i),tableStart:i,map:a,table:r}}function Nn(e){return function(t,n){if(!Cn(t))return!1;if(n){let r=xn(t.schema),i=Mn(t),a=t.tr,o=i.map.cellsInRect(e==`column`?{left:i.left,top:0,right:i.right,bottom:i.map.height}:e==`row`?{left:0,top:i.top,right:i.map.width,bottom:i.bottom}:i),s=o.map(e=>i.table.nodeAt(e));for(let e=0;e<o.length;e++)s[e].type==r.header_cell&&a.setNodeMarkup(i.tableStart+o[e],r.cell,s[e].attrs);if(a.steps.length===0)for(let e=0;e<o.length;e++)a.setNodeMarkup(i.tableStart+o[e],r.header_cell,s[e].attrs);n(a)}return!0}}function Pn(e,t,n){let r=t.map.cellsInRect({left:0,top:0,right:e==`row`?t.map.width:1,bottom:e==`column`?t.map.height:1});for(let e=0;e<r.length;e++){let i=t.table.nodeAt(r[e]);if(i&&i.type!==n.header_cell)return!1}return!0}function Fn(e,t){return t||={useDeprecatedLogic:!1},t.useDeprecatedLogic?Nn(e):function(t,n){if(!Cn(t))return!1;if(n){let r=xn(t.schema),i=Mn(t),a=t.tr,o=Pn(`row`,i,r),s=Pn(`column`,i,r),c=(e===`column`?o:e===`row`&&s)?1:0,l=e==`column`?{left:0,top:c,right:1,bottom:i.map.height}:e==`row`?{left:c,top:0,right:i.map.width,bottom:1}:i,u=e==`column`?s?r.cell:r.header_cell:e==`row`?o?r.cell:r.header_cell:r.cell;i.map.cellsInRect(l).forEach(e=>{let t=e+i.tableStart,n=a.doc.nodeAt(t);n&&a.setNodeMarkup(t,u,n.attrs)}),n(a)}return!0}}Fn(`row`,{useDeprecatedLogic:!0}),Fn(`column`,{useDeprecatedLogic:!0}),Fn(`cell`,{useDeprecatedLogic:!0});function In(e,t){let n=e.selection;if(!(n instanceof An))return!1;if(t){let r=e.tr,i=xn(e.schema).cell.createAndFill().content;n.forEachCell((e,t)=>{e.content.eq(i)||r.replace(r.mapping.map(t+1),r.mapping.map(t+e.nodeSize-1),new I(i,0,0))}),r.docChanged&&t(r)}return!0}ln({ArrowLeft:Rn(`horiz`,-1),ArrowRight:Rn(`horiz`,1),ArrowUp:Rn(`vert`,-1),ArrowDown:Rn(`vert`,1),"Shift-ArrowLeft":zn(`horiz`,-1),"Shift-ArrowRight":zn(`horiz`,1),"Shift-ArrowUp":zn(`vert`,-1),"Shift-ArrowDown":zn(`vert`,1),Backspace:In,"Mod-Backspace":In,Delete:In,"Mod-Delete":In});function Ln(e,t,n){return n.eq(e.selection)?!1:(t&&t(e.tr.setSelection(n).scrollIntoView()),!0)}function Rn(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection;if(a instanceof An)return Ln(n,r,z.near(a.$headCell,t));if(e!=`horiz`&&!a.empty)return!1;let o=Bn(i,e,t);if(o==null)return!1;if(e==`horiz`)return Ln(n,r,z.near(n.doc.resolve(a.head+t),t));{let i=n.doc.resolve(o),a=On(i,e,t),s;return s=a?z.near(a,1):t<0?z.near(n.doc.resolve(i.before(-1)),-1):z.near(n.doc.resolve(i.after(-1)),1),Ln(n,r,s)}}}function zn(e,t){return(n,r,i)=>{if(!i)return!1;let a=n.selection,o;if(a instanceof An)o=a;else{let r=Bn(i,e,t);if(r==null)return!1;o=new An(n.doc.resolve(r))}let s=On(o.$headCell,e,t);return s?Ln(n,r,new An(o.$anchorCell,s)):!1}}function Bn(e,t,n){if(!(e.state.selection instanceof zt))return null;let{$head:r}=e.state.selection;for(let i=r.depth-1;i>=0;i--){let a=r.node(i);if((n<0?r.index(i):r.indexAfter(i))!=(n<0?0:a.childCount))return null;if(a.type.spec.tableRole==`cell`||a.type.spec.tableRole==`header_cell`){let a=r.before(i),o=t==`vert`?n>0?`down`:`up`:n>0?`right`:`left`;return e.endOfTextblock(o)?a:null}}return null}new Zt(`tableColumnResizing`);var Vn=e(((e,t)=>{function n(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function r(e){if(Array.isArray(e))return e}function i(e,t){var n=e==null?null:typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(n!=null){var r,i,a,o,s=[],c=!0,l=!1;try{if(a=(n=n.call(e)).next,t!==0)for(;!(c=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);c=!0);}catch(e){l=!0,i=e}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return s}}function a(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
11
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function o(e,t){return r(e)||i(e,t)||s(e,t)||a()}function s(e,t){if(e){if(typeof e==`string`)return n(e,t);var r={}.toString.call(e).slice(8,-1);return r===`Object`&&e.constructor&&(r=e.constructor.name),r===`Map`||r===`Set`?Array.from(e):r===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(e,t):void 0}}var c=Object.entries,l=Object.setPrototypeOf,u=Object.isFrozen,d=Object.getPrototypeOf,f=Object.getOwnPropertyDescriptor,p=Object.freeze,m=Object.seal,h=Object.create,g=typeof Reflect<`u`&&Reflect,_=g.apply,v=g.construct;p||=function(e){return e},m||=function(e){return e},_||=function(e,t){var n=[...arguments].slice(2);return e.apply(t,n)},v||=function(e){return new e(...[...arguments].slice(1))};var y=A(Array.prototype.forEach),b=A(Array.prototype.lastIndexOf),x=A(Array.prototype.pop),S=A(Array.prototype.push),C=A(Array.prototype.splice),w=Array.isArray,T=A(String.prototype.toLowerCase),ee=A(String.prototype.toString),te=A(String.prototype.match),E=A(String.prototype.replace),ne=A(String.prototype.indexOf),re=A(String.prototype.trim),ie=A(Number.prototype.toString),ae=A(Boolean.prototype.toString),oe=typeof BigInt>`u`?null:A(BigInt.prototype.toString),se=typeof Symbol>`u`?null:A(Symbol.prototype.toString),D=A(Object.prototype.hasOwnProperty),O=A(Object.prototype.toString),k=A(RegExp.prototype.test),ce=le(TypeError);function A(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);var n=[...arguments].slice(1);return _(e,t,n)}}function le(e){return function(){return v(e,[...arguments])}}function j(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:T;if(l&&l(e,null),!w(t))return e;let r=t.length;for(;r--;){let i=t[r];if(typeof i==`string`){let e=n(i);e!==i&&(u(t)||(t[r]=e),i=e)}e[i]=!0}return e}function M(e){for(let t=0;t<e.length;t++)D(e,t)||(e[t]=null);return e}function N(e){let t=h(null);for(let r of c(e)){var n=o(r,2);let i=n[0],a=n[1];D(e,i)&&(w(a)?t[i]=M(a):a&&typeof a==`object`&&a.constructor===Object?t[i]=N(a):t[i]=a)}return t}function ue(e){switch(typeof e){case`string`:return e;case`number`:return ie(e);case`boolean`:return ae(e);case`bigint`:return oe?oe(e):`0`;case`symbol`:return se?se(e):`Symbol()`;case`undefined`:return O(e);case`function`:case`object`:{if(e===null)return O(e);let t=e,n=de(t,`toString`);if(typeof n==`function`){let e=n(t);return typeof e==`string`?e:O(e)}return O(e)}default:return O(e)}}function de(e,t){for(;e!==null;){let n=f(e,t);if(n){if(n.get)return A(n.get);if(typeof n.value==`function`)return A(n.value)}e=d(e)}function n(){return null}return n}function P(e){try{return k(e,``),!0}catch{return!1}}var fe=p(`a.abbr.acronym.address.area.article.aside.audio.b.bdi.bdo.big.blink.blockquote.body.br.button.canvas.caption.center.cite.code.col.colgroup.content.data.datalist.dd.decorator.del.details.dfn.dialog.dir.div.dl.dt.element.em.fieldset.figcaption.figure.font.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.img.input.ins.kbd.label.legend.li.main.map.mark.marquee.menu.menuitem.meter.nav.nobr.ol.optgroup.option.output.p.picture.pre.progress.q.rp.rt.ruby.s.samp.search.section.select.shadow.slot.small.source.spacer.span.strike.strong.style.sub.summary.sup.table.tbody.td.template.textarea.tfoot.th.thead.time.tr.track.tt.u.ul.var.video.wbr`.split(`.`)),pe=p(`svg.a.altglyph.altglyphdef.altglyphitem.animatecolor.animatemotion.animatetransform.circle.clippath.defs.desc.ellipse.enterkeyhint.exportparts.filter.font.g.glyph.glyphref.hkern.image.inputmode.line.lineargradient.marker.mask.metadata.mpath.part.path.pattern.polygon.polyline.radialgradient.rect.stop.style.switch.symbol.text.textpath.title.tref.tspan.view.vkern`.split(`.`)),me=p([`feBlend`,`feColorMatrix`,`feComponentTransfer`,`feComposite`,`feConvolveMatrix`,`feDiffuseLighting`,`feDisplacementMap`,`feDistantLight`,`feDropShadow`,`feFlood`,`feFuncA`,`feFuncB`,`feFuncG`,`feFuncR`,`feGaussianBlur`,`feImage`,`feMerge`,`feMergeNode`,`feMorphology`,`feOffset`,`fePointLight`,`feSpecularLighting`,`feSpotLight`,`feTile`,`feTurbulence`]),he=p([`animate`,`color-profile`,`cursor`,`discard`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`foreignobject`,`hatch`,`hatchpath`,`mesh`,`meshgradient`,`meshpatch`,`meshrow`,`missing-glyph`,`script`,`set`,`solidcolor`,`unknown`,`use`]),F=p(`math.menclose.merror.mfenced.mfrac.mglyph.mi.mlabeledtr.mmultiscripts.mn.mo.mover.mpadded.mphantom.mroot.mrow.ms.mspace.msqrt.mstyle.msub.msup.msubsup.mtable.mtd.mtext.mtr.munder.munderover.mprescripts`.split(`.`)),ge=p([`maction`,`maligngroup`,`malignmark`,`mlongdiv`,`mscarries`,`mscarry`,`msgroup`,`mstack`,`msline`,`msrow`,`semantics`,`annotation`,`annotation-xml`,`mprescripts`,`none`]),_e=p([`#text`]),ve=p(`accept.action.align.alt.autocapitalize.autocomplete.autopictureinpicture.autoplay.background.bgcolor.border.capture.cellpadding.cellspacing.checked.cite.class.clear.color.cols.colspan.command.commandfor.controls.controlslist.coords.crossorigin.datetime.decoding.default.dir.disabled.disablepictureinpicture.disableremoteplayback.download.draggable.enctype.enterkeyhint.exportparts.face.for.headers.height.hidden.high.href.hreflang.id.inert.inputmode.integrity.ismap.kind.label.lang.list.loading.loop.low.max.maxlength.media.method.min.minlength.multiple.muted.name.nonce.noshade.novalidate.nowrap.open.optimum.part.pattern.placeholder.playsinline.popover.popovertarget.popovertargetaction.poster.preload.pubdate.radiogroup.readonly.rel.required.rev.reversed.role.rows.rowspan.spellcheck.scope.selected.shape.size.sizes.slot.span.srclang.start.src.srcset.step.style.summary.tabindex.title.translate.type.usemap.valign.value.width.wrap.xmlns`.split(`.`)),ye=p(`accent-height.accumulate.additive.alignment-baseline.amplitude.ascent.attributename.attributetype.azimuth.basefrequency.baseline-shift.begin.bias.by.class.clip.clippathunits.clip-path.clip-rule.color.color-interpolation.color-interpolation-filters.color-profile.color-rendering.cx.cy.d.dx.dy.diffuseconstant.direction.display.divisor.dominant-baseline.dur.edgemode.elevation.end.exponent.fill.fill-opacity.fill-rule.filter.filterunits.flood-color.flood-opacity.font-family.font-size.font-size-adjust.font-stretch.font-style.font-variant.font-weight.fx.fy.g1.g2.glyph-name.glyphref.gradientunits.gradienttransform.height.href.id.image-rendering.in.in2.intercept.k.k1.k2.k3.k4.kerning.keypoints.keysplines.keytimes.lang.lengthadjust.letter-spacing.kernelmatrix.kernelunitlength.lighting-color.local.marker-end.marker-mid.marker-start.markerheight.markerunits.markerwidth.maskcontentunits.maskunits.max.mask.mask-type.media.method.mode.min.name.numoctaves.offset.operator.opacity.order.orient.orientation.origin.overflow.paint-order.path.pathlength.patterncontentunits.patterntransform.patternunits.points.preservealpha.preserveaspectratio.primitiveunits.r.rx.ry.radius.refx.refy.repeatcount.repeatdur.restart.result.rotate.scale.seed.shape-rendering.slope.specularconstant.specularexponent.spreadmethod.startoffset.stddeviation.stitchtiles.stop-color.stop-opacity.stroke-dasharray.stroke-dashoffset.stroke-linecap.stroke-linejoin.stroke-miterlimit.stroke-opacity.stroke.stroke-width.style.surfacescale.systemlanguage.tabindex.tablevalues.targetx.targety.transform.transform-origin.text-anchor.text-decoration.text-orientation.text-rendering.textlength.type.u1.u2.unicode.values.viewbox.visibility.version.vert-adv-y.vert-origin-x.vert-origin-y.width.word-spacing.wrap.writing-mode.xchannelselector.ychannelselector.x.x1.x2.xmlns.y.y1.y2.z.zoomandpan`.split(`.`)),be=p(`accent.accentunder.align.bevelled.close.columnalign.columnlines.columnspacing.columnspan.denomalign.depth.dir.display.displaystyle.encoding.fence.frame.height.href.id.largeop.length.linethickness.lquote.lspace.mathbackground.mathcolor.mathsize.mathvariant.maxsize.minsize.movablelimits.notation.numalign.open.rowalign.rowlines.rowspacing.rowspan.rspace.rquote.scriptlevel.scriptminsize.scriptsizemultiplier.selection.separator.separators.stretchy.subscriptshift.supscriptshift.symmetric.voffset.width.xmlns`.split(`.`)),I=p([`xlink:href`,`xml:id`,`xlink:title`,`xml:space`,`xmlns:xlink`]),xe=m(/{{[\w\W]*|^[\w\W]*}}/g),Se=m(/<%[\w\W]*|^[\w\W]*%>/g),Ce=m(/\${[\w\W]*/g),we=m(/^data-[\-\w.\u00B7-\uFFFF]+$/),Te=m(/^aria-[\-\w]+$/),Ee=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),De=m(/^(?:\w+script|data):/i),Oe=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ke=m(/^html$/i),Ae=m(/^[a-z][.\w]*(-[.\w]+)+$/i),je=m(/<[/\w!]/g),Me=m(/<[/\w]/g),Ne=m(/<\/no(script|embed|frames)/i),Pe=m(/\/>/i),Fe={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Ie=function(){return typeof window>`u`?null:window},Le=function(e,t){if(typeof e!=`object`||typeof e.createPolicy!=`function`)return null;let n=null,r=`data-tt-policy-suffix`;t&&t.hasAttribute(r)&&(n=t.getAttribute(r));let i=`dompurify`+(n?`#`+n:``);try{return e.createPolicy(i,{createHTML(e){return e},createScriptURL(e){return e}})}catch{return console.warn(`TrustedTypes policy `+i+` could not be created.`),null}},Re=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},ze=function(e,t,n,r){return D(e,t)&&w(e[t])?j(r.base?N(r.base):{},e[t],r.transform):n};function Be(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ie(),t=e=>Be(e);if(t.version=`3.4.12`,t.removed=[],!e||!e.document||e.document.nodeType!==Fe.document||!e.Element)return t.isSupported=!1,t;let n=e.document,r=n,i=r.currentScript;e.DocumentFragment;let a=e.HTMLTemplateElement,o=e.Node,s=e.Element,l=e.NodeFilter;e.NamedNodeMap===void 0&&(e.NamedNodeMap||e.MozNamedAttrMap),e.HTMLFormElement;let u=e.DOMParser,d=e.trustedTypes,f=s.prototype,g=de(f,`cloneNode`),_=de(f,`remove`),v=de(f,`nextSibling`),ie=de(f,`childNodes`),ae=de(f,`parentNode`),oe=de(f,`shadowRoot`),se=de(f,`attributes`),O=o&&o.prototype?de(o.prototype,`nodeType`):null,A=o&&o.prototype?de(o.prototype,`nodeName`):null;if(typeof a==`function`){let e=n.createElement(`template`);e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let le,M=``,Ve,He=!1,Ue=0,We=function(){if(Ue>0)throw ce(`A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.`)},Ge=function(e){We(),Ue++;try{return le.createHTML(e)}finally{Ue--}},Ke=function(e){We(),Ue++;try{return le.createScriptURL(e)}finally{Ue--}},qe=function(){return He||=(Ve=Le(d,i),!0),Ve},Je=n,Ye=Je.implementation,Xe=Je.createNodeIterator,Ze=Je.createDocumentFragment,Qe=Je.getElementsByTagName,$e=r.importNode,et=Re();t.isSupported=typeof c==`function`&&typeof ae==`function`&&Ye&&Ye.createHTMLDocument!==void 0;let tt=xe,nt=Se,rt=Ce,it=we,at=Te,ot=De,st=Oe,ct=Ae,lt=Ee,L=null,ut=j({},[...fe,...pe,...me,...F,..._e]),dt=null,ft=j({},[...ve,...ye,...be,...I]),pt=Object.seal(h(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),mt=null,ht=null,gt=Object.seal(h(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),_t=!0,vt=!0,yt=!1,bt=!0,xt=!1,St=!0,R=!1,Ct=!1,wt=null,Tt=null,Et=!1,Dt=!1,Ot=!1,kt=!1,At=!0,jt=!1,Mt=`user-content-`,Nt=!0,Pt=!1,Ft={},z=null,It=j({},`annotation-xml.audio.colgroup.desc.foreignobject.head.iframe.math.mi.mn.mo.ms.mtext.noembed.noframes.noscript.plaintext.script.selectedcontent.style.svg.template.thead.title.video.xmp`.split(`.`)),Lt=null,Rt=j({},[`audio`,`video`,`img`,`source`,`image`,`track`]),zt=null,Bt=j({},[`alt`,`class`,`for`,`id`,`label`,`name`,`pattern`,`placeholder`,`role`,`summary`,`title`,`value`,`style`,`xmlns`]),Vt=`http://www.w3.org/1998/Math/MathML`,Ht=`http://www.w3.org/2000/svg`,Ut=`http://www.w3.org/1999/xhtml`,Wt=Ut,Gt=!1,Kt=null,qt=j({},[Vt,Ht,Ut],ee),Jt=p([`mi`,`mo`,`mn`,`ms`,`mtext`]),Yt=j({},Jt),Xt=p([`annotation-xml`]),Zt=j({},Xt),Qt=j({},[`title`,`style`,`font`,`a`,`script`]),$t=null,en=[`application/xhtml+xml`,`text/html`],B=null,V=null,tn=n.createElement(`form`),nn=function(e){return e instanceof RegExp||e instanceof Function},rn=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(V&&V===e)return;(!e||typeof e!=`object`)&&(e={}),e=N(e),$t=en.indexOf(e.PARSER_MEDIA_TYPE)===-1?`text/html`:e.PARSER_MEDIA_TYPE,B=$t===`application/xhtml+xml`?ee:T,L=ze(e,`ALLOWED_TAGS`,ut,{transform:B}),dt=ze(e,`ALLOWED_ATTR`,ft,{transform:B}),Kt=ze(e,`ALLOWED_NAMESPACES`,qt,{transform:ee}),zt=ze(e,`ADD_URI_SAFE_ATTR`,Bt,{transform:B,base:Bt}),Lt=ze(e,`ADD_DATA_URI_TAGS`,Rt,{transform:B,base:Rt}),z=ze(e,`FORBID_CONTENTS`,It,{transform:B}),mt=ze(e,`FORBID_TAGS`,N({}),{transform:B}),ht=ze(e,`FORBID_ATTR`,N({}),{transform:B}),Ft=D(e,`USE_PROFILES`)?e.USE_PROFILES&&typeof e.USE_PROFILES==`object`?N(e.USE_PROFILES):e.USE_PROFILES:!1,_t=e.ALLOW_ARIA_ATTR!==!1,vt=e.ALLOW_DATA_ATTR!==!1,yt=e.ALLOW_UNKNOWN_PROTOCOLS||!1,bt=e.ALLOW_SELF_CLOSE_IN_ATTR!==!1,xt=e.SAFE_FOR_TEMPLATES||!1,St=e.SAFE_FOR_XML!==!1,R=e.WHOLE_DOCUMENT||!1,Dt=e.RETURN_DOM||!1,Ot=e.RETURN_DOM_FRAGMENT||!1,kt=e.RETURN_TRUSTED_TYPE||!1,Et=e.FORCE_BODY||!1,At=e.SANITIZE_DOM!==!1,jt=e.SANITIZE_NAMED_PROPS||!1,Nt=e.KEEP_CONTENT!==!1,Pt=e.IN_PLACE||!1,lt=P(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:Ee,Wt=typeof e.NAMESPACE==`string`?e.NAMESPACE:Ut,Yt=D(e,`MATHML_TEXT_INTEGRATION_POINTS`)&&e.MATHML_TEXT_INTEGRATION_POINTS&&typeof e.MATHML_TEXT_INTEGRATION_POINTS==`object`?N(e.MATHML_TEXT_INTEGRATION_POINTS):j({},Jt),Zt=D(e,`HTML_INTEGRATION_POINTS`)&&e.HTML_INTEGRATION_POINTS&&typeof e.HTML_INTEGRATION_POINTS==`object`?N(e.HTML_INTEGRATION_POINTS):j({},Xt);let t=D(e,`CUSTOM_ELEMENT_HANDLING`)&&e.CUSTOM_ELEMENT_HANDLING&&typeof e.CUSTOM_ELEMENT_HANDLING==`object`?N(e.CUSTOM_ELEMENT_HANDLING):h(null);if(pt=h(null),D(t,`tagNameCheck`)&&nn(t.tagNameCheck)&&(pt.tagNameCheck=t.tagNameCheck),D(t,`attributeNameCheck`)&&nn(t.attributeNameCheck)&&(pt.attributeNameCheck=t.attributeNameCheck),D(t,`allowCustomizedBuiltInElements`)&&typeof t.allowCustomizedBuiltInElements==`boolean`&&(pt.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),m(pt),xt&&(vt=!1),Ot&&(Dt=!0),Ft&&(L=j({},_e),dt=h(null),Ft.html===!0&&(j(L,fe),j(dt,ve)),Ft.svg===!0&&(j(L,pe),j(dt,ye),j(dt,I)),Ft.svgFilters===!0&&(j(L,me),j(dt,ye),j(dt,I)),Ft.mathMl===!0&&(j(L,F),j(dt,be),j(dt,I))),gt.tagCheck=null,gt.attributeCheck=null,D(e,`ADD_TAGS`)&&(typeof e.ADD_TAGS==`function`?gt.tagCheck=e.ADD_TAGS:w(e.ADD_TAGS)&&(L===ut&&(L=N(L)),j(L,e.ADD_TAGS,B))),D(e,`ADD_ATTR`)&&(typeof e.ADD_ATTR==`function`?gt.attributeCheck=e.ADD_ATTR:w(e.ADD_ATTR)&&(dt===ft&&(dt=N(dt)),j(dt,e.ADD_ATTR,B))),D(e,`ADD_URI_SAFE_ATTR`)&&w(e.ADD_URI_SAFE_ATTR)&&j(zt,e.ADD_URI_SAFE_ATTR,B),D(e,`FORBID_CONTENTS`)&&w(e.FORBID_CONTENTS)&&(z===It&&(z=N(z)),j(z,e.FORBID_CONTENTS,B)),D(e,`ADD_FORBID_CONTENTS`)&&w(e.ADD_FORBID_CONTENTS)&&(z===It&&(z=N(z)),j(z,e.ADD_FORBID_CONTENTS,B)),Nt&&(L[`#text`]=!0),R&&j(L,[`html`,`head`,`body`]),L.table&&(j(L,[`tbody`]),delete mt.tbody),e.TRUSTED_TYPES_POLICY){if(typeof e.TRUSTED_TYPES_POLICY.createHTML!=`function`)throw ce(`TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.`);if(typeof e.TRUSTED_TYPES_POLICY.createScriptURL!=`function`)throw ce(`TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.`);let t=le;le=e.TRUSTED_TYPES_POLICY;try{M=Ge(``)}catch(e){throw le=t,e}}else e.TRUSTED_TYPES_POLICY===null?(le=void 0,M=``):(le===void 0&&(le=qe()),le&&typeof M==`string`&&(M=Ge(``)));p&&p(e),V=e},an=j({},[...pe,...me,...he]),on=j({},[...F,...ge]),sn=function(e,t,n){return t.namespaceURI===Ut?e===`svg`:t.namespaceURI===Vt?e===`svg`&&(n===`annotation-xml`||Yt[n]):!!an[e]},cn=function(e,t,n){return t.namespaceURI===Ut?e===`math`:t.namespaceURI===Ht?e===`math`&&Zt[n]:!!on[e]},ln=function(e,t,n){return t.namespaceURI===Ht&&!Zt[n]||t.namespaceURI===Vt&&!Yt[n]?!1:!on[e]&&(Qt[e]||!an[e])},un=function(e){let t=ae(e);(!t||!t.tagName)&&(t={namespaceURI:Wt,tagName:`template`});let n=T(e.tagName),r=T(t.tagName);return Kt[e.namespaceURI]?e.namespaceURI===Ht?sn(n,t,r):e.namespaceURI===Vt?cn(n,t,r):e.namespaceURI===Ut?ln(n,t,r):!!($t===`application/xhtml+xml`&&Kt[e.namespaceURI]):!1},dn=function(e){S(t.removed,{element:e});try{ae(e).removeChild(e)}catch{if(_(e),!ae(e))throw ce(`a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place`)}},fn=function(e){hn(e);let t=ie(e);if(t){let e=[];y(t,t=>{S(e,t)}),y(e,e=>{try{_(e)}catch{}})}let n=se(e);if(n)for(let t=n.length-1;t>=0;--t){let r=n[t],i=r&&r.name;if(typeof i==`string`)try{e.removeAttribute(i)}catch{}}},pn=function(e,n){try{S(t.removed,{attribute:n.getAttributeNode(e),from:n})}catch{S(t.removed,{attribute:null,from:n})}if(n.removeAttribute(e),e===`is`)if(Dt||Ot)try{dn(n)}catch{}else try{n.setAttribute(e,``)}catch{}},mn=function(e){let t=se(e);if(t)for(let n=t.length-1;n>=0;--n){let r=t[n],i=r&&r.name;if(!(typeof i!=`string`||dt[B(i)]))try{e.removeAttribute(i)}catch{}}},hn=function(e){let t=[e];for(;t.length>0;){let e=t.pop();(O?O(e):e.nodeType)===Fe.element&&mn(e);let n=ie(e);if(n)for(let e=n.length-1;e>=0;--e)t.push(n[e])}},gn=function(e){if(!St)return;let t=[e];for(;t.length>0;){let e=t.pop(),n=O?O(e):e.nodeType;if(n===Fe.processingInstruction||n===Fe.comment&&k(Me,e.data)){try{_(e)}catch{}continue}if(n===Fe.element){let t=e,n=B(A?A(e):e.nodeName);try{t.hasAttribute&&t.hasAttribute(`patchsrc`)&&t.removeAttribute(`patchsrc`),t.hasAttribute&&t.hasAttribute(`for`)&&n!==`label`&&n!==`output`&&t.removeAttribute(`for`)}catch{}}let r=ie(e);if(r)for(let e=r.length-1;e>=0;--e)t.push(r[e])}},_n=function(e){let t=null,r=null;if(Et)e=`<remove></remove>`+e;else{let t=te(e,/^[\r\n\t ]+/);r=t&&t[0]}$t===`application/xhtml+xml`&&Wt===Ut&&(e=`<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>`+e+`</body></html>`);let i=le?Ge(e):e;if(Wt===Ut)try{t=new u().parseFromString(i,$t)}catch{}if(!t||!t.documentElement){t=Ye.createDocument(Wt,`template`,null);try{t.documentElement.innerHTML=Gt?M:i}catch{}}let a=t.body||t.documentElement;return e&&r&&a.insertBefore(n.createTextNode(r),a.childNodes[0]||null),Wt===Ut?Qe.call(t,R?`html`:`body`)[0]:R?t.documentElement:a},vn=function(e){return Xe.call(e.ownerDocument||e,e,l.SHOW_ELEMENT|l.SHOW_COMMENT|l.SHOW_TEXT|l.SHOW_PROCESSING_INSTRUCTION|l.SHOW_CDATA_SECTION,null)},yn=function(e){return e=E(e,tt,` `),e=E(e,nt,` `),e=E(e,rt,` `),e},bn=function(e){e.normalize();let t=Xe.call(e.ownerDocument||e,e,l.SHOW_TEXT|l.SHOW_COMMENT|l.SHOW_CDATA_SECTION|l.SHOW_PROCESSING_INSTRUCTION,null),n=t.nextNode();for(;n;)n.data=yn(n.data),n=t.nextNode();let r=e.querySelectorAll?.call(e,`template`);r&&y(r,e=>{Sn(e.content)&&bn(e.content)})},xn=function(e){let t=A?A(e):null;return typeof t!=`string`||B(t)!==`form`?!1:typeof e.nodeName!=`string`||typeof e.textContent!=`string`||typeof e.removeChild!=`function`||e.attributes!==se(e)||typeof e.removeAttribute!=`function`||typeof e.setAttribute!=`function`||typeof e.namespaceURI!=`string`||typeof e.insertBefore!=`function`||typeof e.hasChildNodes!=`function`||e.nodeType!==O(e)||e.childNodes!==ie(e)},Sn=function(e){if(!O||typeof e!=`object`||!e)return!1;try{return O(e)===Fe.documentFragment}catch{return!1}},Cn=function(e){if(!O||typeof e!=`object`||!e)return!1;try{return typeof O(e)==`number`}catch{return!1}};function wn(e,n,r){e.length!==0&&y(e,e=>{e.call(t,n,r,V)})}let Tn=function(e,t){return!!(St&&e.hasChildNodes()&&!Cn(e.firstElementChild)&&k(je,e.textContent)&&k(je,e.innerHTML)||St&&e.namespaceURI===Ut&&t===`style`&&Cn(e.firstElementChild)||e.nodeType===Fe.processingInstruction||St&&e.nodeType===Fe.comment&&k(Me,e.data))},En=function(e,t){if(!mt[t]&&An(t)&&(pt.tagNameCheck instanceof RegExp&&k(pt.tagNameCheck,t)||pt.tagNameCheck instanceof Function&&pt.tagNameCheck(t)))return!1;if(Nt&&!z[t]){let t=ae(e),n=ie(e);if(n&&t){let r=n.length;for(let i=r-1;i>=0;--i){let r=Pt?n[i]:g(n[i],!0);t.insertBefore(r,v(e))}}}return dn(e),!0},Dn=function(e,n){if(wn(et.beforeSanitizeElements,e,null),e!==n&&ae(e)===null)return!0;if(xn(e))return dn(e),!0;let r=B(A?A(e):e.nodeName);if(wn(et.uponSanitizeElement,e,{tagName:r,allowedTags:L}),e!==n&&ae(e)===null)return!0;if(Tn(e,r))return dn(e),!0;if(mt[r]||!(gt.tagCheck instanceof Function&>.tagCheck(r))&&!L[r]){let t=En(e,r);return t===!1&&wn(et.afterSanitizeElements,e,null),t}if((O?O(e):e.nodeType)===Fe.element&&!un(e)||(r===`noscript`||r===`noembed`||r===`noframes`)&&k(Ne,e.innerHTML))return dn(e),!0;if(xt&&e.nodeType===Fe.text){let n=yn(e.textContent);e.textContent!==n&&(S(t.removed,{element:e.cloneNode()}),e.textContent=n)}return wn(et.afterSanitizeElements,e,null),!1},On=function(e,t,r){if(ht[t]||St&&t===`patchsrc`||St&&t===`for`&&e!==`label`&&e!==`output`||At&&(t===`id`||t===`name`)&&(r in n||r in tn))return!1;let i=dt[t]||gt.attributeCheck instanceof Function&>.attributeCheck(t,e);if(!(vt&&k(it,t))&&!(_t&&k(at,t))){if(!i){if(!(An(e)&&(pt.tagNameCheck instanceof RegExp&&k(pt.tagNameCheck,e)||pt.tagNameCheck instanceof Function&&pt.tagNameCheck(e))&&(pt.attributeNameCheck instanceof RegExp&&k(pt.attributeNameCheck,t)||pt.attributeNameCheck instanceof Function&&pt.attributeNameCheck(t,e))||t===`is`&&pt.allowCustomizedBuiltInElements&&(pt.tagNameCheck instanceof RegExp&&k(pt.tagNameCheck,r)||pt.tagNameCheck instanceof Function&&pt.tagNameCheck(r))))return!1}else if(!zt[t]&&!k(lt,E(r,st,``))&&!((t===`src`||t===`xlink:href`||t===`href`)&&e!==`script`&&ne(r,`data:`)===0&&Lt[e])&&!(yt&&!k(ot,E(r,st,``)))&&r)return!1}return!0},kn=j({},[`annotation-xml`,`color-profile`,`font-face`,`font-face-format`,`font-face-name`,`font-face-src`,`font-face-uri`,`missing-glyph`]),An=function(e){return!kn[T(e)]&&k(ct,e)},jn=function(e,t,n,r){if(le&&typeof d==`object`&&typeof d.getAttributeType==`function`&&!n)switch(d.getAttributeType(e,t)){case`TrustedHTML`:return Ge(r);case`TrustedScriptURL`:return Ke(r)}return r},Mn=function(e,n,r,i){try{r?e.setAttributeNS(r,n,i):e.setAttribute(n,i),xn(e)?dn(e):x(t.removed)}catch{pn(n,e)}},Nn=function(e){wn(et.beforeSanitizeAttributes,e,null);let t=e.attributes;if(!t||xn(e))return;let n={attrName:``,attrValue:``,keepAttr:!0,allowedAttributes:dt,forceKeepAttr:void 0},r=t.length,i=B(e.nodeName);for(;r--;){let a=t[r],o=a.name,s=a.namespaceURI,c=a.value,l=B(o),u=c,d=o===`value`?u:re(u);if(n.attrName=l,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,wn(et.uponSanitizeAttribute,e,n),d=n.attrValue,jt&&(l===`id`||l===`name`)&&ne(d,Mt)!==0&&(pn(o,e),d=Mt+d),St&&k(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){pn(o,e);continue}if(l===`attributename`&&te(d,`href`)){pn(o,e);continue}if(!n.forceKeepAttr){if(!n.keepAttr){pn(o,e);continue}if(!bt&&k(Pe,d)){pn(o,e);continue}if(xt&&(d=yn(d)),!On(i,l,d)){pn(o,e);continue}d=jn(i,l,s,d),d!==u&&Mn(e,o,s,d)}}wn(et.afterSanitizeAttributes,e,null)},Pn=function(e){let t=null,n=vn(e);for(wn(et.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)if(wn(et.uponSanitizeShadowNode,t,null),Dn(t,e),Nn(t),Sn(t.content)&&Pn(t.content),(O?O(t):t.nodeType)===Fe.element){let e=oe(t);Sn(e)&&(Fn(e),Pn(e))}wn(et.afterSanitizeShadowDOM,e,null)},Fn=function(e){let t=[{node:e,shadow:null}];for(;t.length>0;){let e=t.pop();if(e.shadow){Pn(e.shadow);continue}let n=e.node,r=(O?O(n):n.nodeType)===Fe.element,i=ie(n);if(i)for(let e=i.length-1;e>=0;--e)t.push({node:i[e],shadow:null});if(r){let e=A?A(n):null;if(typeof e==`string`&&B(e)===`template`){let e=n.content;Sn(e)&&t.push({node:e,shadow:null})}}if(r){let e=oe(n);Sn(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return t.sanitize=function(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=null,a=null,o=null,s=null;if(Gt=!e,Gt&&(e=`<!-->`),typeof e!=`string`&&!Cn(e)&&(e=ue(e),typeof e!=`string`))throw ce(`dirty is not a string, aborting`);if(!t.isSupported)return e;Ct?(L=wt,dt=Tt):rn(n),(et.uponSanitizeElement.length>0||et.uponSanitizeAttribute.length>0)&&(L=N(L)),et.uponSanitizeAttribute.length>0&&(dt=N(dt)),t.removed=[];let c=Pt&&typeof e!=`string`&&Cn(e);if(c){gn(e);let t=A?A(e):e.nodeName;if(typeof t==`string`){let n=B(t);if(!L[n]||mt[n])throw fn(e),ce(`root node is forbidden and cannot be sanitized in-place`)}if(xn(e))throw fn(e),ce(`root node is clobbered and cannot be sanitized in-place`);try{Fn(e)}catch(t){throw fn(e),t}}else if(Cn(e))i=_n(`<!---->`),a=i.ownerDocument.importNode(e,!0),a.nodeType===Fe.element&&a.nodeName===`BODY`||a.nodeName===`HTML`?i=a:i.appendChild(a),Fn(a);else{if(!Dt&&!xt&&!R&&e.indexOf(`<`)===-1)return le&&kt?Ge(e):e;if(i=_n(e),!i)return Dt?null:kt?M:``}i&&Et&&dn(i.firstChild);let l=c?e:i,u=vn(l);try{for(;o=u.nextNode();)Dn(o,l),Nn(o),Sn(o.content)&&Pn(o.content)}catch(n){throw c&&(fn(e),y(t.removed,e=>{e.element&&hn(e.element)})),n}if(c)return y(t.removed,e=>{e.element&&hn(e.element)}),xt&&bn(e),e;if(Dt){if(xt&&bn(i),Ot)for(s=Ze.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(dt.shadowroot||dt.shadowrootmode)&&(s=$e.call(r,s,!0)),s}let d=R?i.outerHTML:i.innerHTML;return R&&L[`!doctype`]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&k(ke,i.ownerDocument.doctype.name)&&(d=`<!DOCTYPE `+i.ownerDocument.doctype.name+`>
|
|
12
|
-
`+d),xt&&(d=yn(d)),le&&kt?Ge(d):d},t.setConfig=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};rn(e),Ct=!0,wt=L,Tt=dt},t.clearConfig=function(){V=null,Ct=!1,wt=null,Tt=null,le=Ve,M=``},t.isValidAttribute=function(e,t,n){V||rn({});let r=B(e),i=B(t);return On(r,i,n)},t.addHook=function(e,t){typeof t==`function`&&D(et,e)&&S(et[e],t)},t.removeHook=function(e,t){if(D(et,e)){if(t!==void 0){let n=b(et[e],t);return n===-1?void 0:C(et[e],n,1)[0]}return x(et[e])}},t.removeHooks=function(e){D(et,e)&&(et[e]=[])},t.removeAllHooks=function(){et=Re()},t}t.exports=Be()}));e(((e,t)=>{t.exports=self.DOMPurify||(self.DOMPurify=Vn().default||Vn())}))();var Hn=new Set([`font-family`,`font-size`,`text-align`,`margin-left`,`background-color`]),Un=(e,t)=>{let n=t.trim().toLowerCase();if(e===`font-family`)return n===`serif`||n===`monospace`?n:null;if(e===`font-size`)return[`12px`,`16px`,`20px`,`28px`].includes(n)?n:null;if(e===`text-align`)return[`left`,`center`,`right`,`justify`].includes(n)?n:null;if(e===`margin-left`){let e=/^([0-9]{1,3})px$/.exec(n);if(!e)return null;let t=Number.parseInt(e[1],10);return t>=0&&t%24==0?`${t}px`:null}return e===`background-color`?n:null},Wn=e=>{if(!e)return null;let t=e.split(`;`).map(e=>e.trim()).filter(e=>e.length>0).map(e=>{let t=e.indexOf(`:`);if(t<0)return null;let n=e.slice(0,t).trim().toLowerCase(),r=e.slice(t+1).trim();if(!Hn.has(n))return null;let i=Un(n,r);return i?`${n}:${i}`:null}).filter(e=>!!e);return t.length===0?null:t.join(`;`)};new L({nodes:{doc:{content:`block+`},paragraph:{content:`inline*`,group:`block`,attrs:{style:{default:null},dir:{default:null}},parseDOM:[{tag:`p`,getAttrs:e=>e instanceof HTMLElement?{style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:null}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),[`p`,t,0]}},heading:{attrs:{level:{default:1},style:{default:null},dir:{default:null}},content:`inline*`,group:`block`,defining:!0,parseDOM:[{tag:`h1`,getAttrs:e=>e instanceof HTMLElement?{level:1,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:1}},{tag:`h2`,getAttrs:e=>e instanceof HTMLElement?{level:2,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:2}},{tag:`h3`,getAttrs:e=>e instanceof HTMLElement?{level:3,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:3}},{tag:`h4`,getAttrs:e=>e instanceof HTMLElement?{level:4,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:4}},{tag:`h5`,getAttrs:e=>e instanceof HTMLElement?{level:5,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:5}},{tag:`h6`,getAttrs:e=>e instanceof HTMLElement?{level:6,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:{level:6}}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),[`h${d(Number(e.attrs.level)||1,1,6)}`,t,0]}},blockquote:{content:`block+`,group:`block`,attrs:{style:{default:null},dir:{default:null}},parseDOM:[{tag:`blockquote`,getAttrs:e=>e instanceof HTMLElement?{style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}:null}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),[`blockquote`,t,0]}},code_block:{content:`text*`,group:`block`,code:!0,defining:!0,marks:``,attrs:{language:{default:null},style:{default:null},dir:{default:null}},parseDOM:[{tag:`pre`,preserveWhitespace:`full`,getAttrs:e=>{if(!(e instanceof HTMLElement))return null;let t=e.querySelector(`code`),n=null;if(t){let e=/language-([a-z0-9_-]+)/i.exec(t.className);e&&(n=e[1])}return{language:n||e.getAttribute(`data-language`)||null,style:Wn(e.getAttribute(`style`)||``),dir:e.getAttribute(`dir`)||null}}}],toDOM:e=>{let t={};e.attrs.style&&(t.style=e.attrs.style),e.attrs.dir&&(t.dir=e.attrs.dir),e.attrs.language&&(t[`data-language`]=e.attrs.language);let n={};return e.attrs.language&&(n.class=`language-${e.attrs.language}`),[`pre`,t,[`code`,n,0]]}},task_list:{content:`task_item+`,group:`block`,parseDOM:[{tag:`ul[data-type='task_list']`},{tag:`ul.task-list`},{tag:`ul.az-task-list`}],toDOM:()=>[`ul`,{"data-type":`task_list`,class:`az-task-list`},0]},task_item:{content:`paragraph block*`,defining:!0,attrs:{checked:{default:!1},style:{default:null}},parseDOM:[{tag:`li[data-type='task_item']`,getAttrs:e=>e instanceof HTMLElement?{checked:e.getAttribute(`data-checked`)===`true`,style:Wn(e.getAttribute(`style`)||``)}:null},{tag:`li.task-item`,getAttrs:e=>e instanceof HTMLElement?{checked:e.classList.contains(`checked`)||e.getAttribute(`data-checked`)===`true`,style:Wn(e.getAttribute(`style`)||``)}:null},{tag:`li.az-task-item`,getAttrs:e=>e instanceof HTMLElement?{checked:e.classList.contains(`az-task-item-checked`)||e.getAttribute(`data-checked`)===`true`,style:Wn(e.getAttribute(`style`)||``)}:null}],toDOM:e=>{let t={"data-type":`task_item`,"data-checked":e.attrs.checked?`true`:`false`,class:e.attrs.checked?`az-task-item az-task-item-checked`:`az-task-item`};return e.attrs.style&&(t.style=e.attrs.style),[`li`,t,0]}},bullet_list:{content:`list_item+`,group:`block`,parseDOM:[{tag:`ul`,getAttrs:e=>e instanceof HTMLElement&&(e.getAttribute(`data-type`)===`task_list`||e.classList.contains(`task-list`)||e.classList.contains(`az-task-list`))?!1:null}],toDOM:()=>[`ul`,0]},ordered_list:{attrs:{order:{default:1}},content:`list_item+`,group:`block`,parseDOM:[{tag:`ol`,getAttrs:e=>e instanceof HTMLOListElement?{order:e.start||1}:{order:1}}],toDOM:e=>[`ol`,{start:e.attrs.order||1},0]},list_item:{content:`paragraph block*`,defining:!0,attrs:{style:{default:null}},parseDOM:[{tag:`li`,getAttrs:e=>e instanceof HTMLElement?e.getAttribute(`data-type`)===`task_item`||e.classList.contains(`task-item`)||e.classList.contains(`az-task-item`)?!1:{style:Wn(e.getAttribute(`style`)||``)}:null}],toDOM:e=>{let t={};return e.attrs.style&&(t.style=e.attrs.style),[`li`,t,0]}},horizontal_rule:{group:`block`,parseDOM:[{tag:`hr`}],toDOM:()=>[`hr`,{class:`az-horizontal-rule`}]},callout:{content:`block+`,group:`block`,defining:!0,attrs:{type:{default:`info`},style:{default:null}},parseDOM:[{tag:`div[data-callout]`,getAttrs:e=>e instanceof HTMLElement?{type:e.getAttribute(`data-callout`)||`info`,style:Wn(e.getAttribute(`style`)||``)}:null},{tag:`div.az-callout`,getAttrs:e=>e instanceof HTMLElement?{type:e.getAttribute(`data-type`)||`info`,style:Wn(e.getAttribute(`style`)||``)}:null}],toDOM:e=>{let t={"data-callout":e.attrs.type||`info`,class:`az-callout az-callout-${e.attrs.type||`info`}`};return e.attrs.style&&(t.style=e.attrs.style),[`div`,t,0]}},...bn({tableGroup:`block`,cellContent:`block+`,cellAttributes:{background:{default:null,getFromDOM(e){return e.style.backgroundColor||null},setDOMAttr(e,t){e&&(t.style=(t.style||``)+`background-color: ${e};`)}}}}),image:{inline:!0,attrs:{src:{},alt:{default:null},title:{default:null},width:{default:null},align:{default:null}},group:`inline`,draggable:!0,parseDOM:[{tag:`img[src]`,getAttrs:e=>e instanceof HTMLElement?{src:e.getAttribute(`src`),alt:e.getAttribute(`alt`),title:e.getAttribute(`title`),width:e.getAttribute(`width`)||null,align:e.getAttribute(`data-align`)||null}:null}],toDOM:e=>{let t={src:e.attrs.src};return e.attrs.alt&&(t.alt=e.attrs.alt),e.attrs.title&&(t.title=e.attrs.title),e.attrs.width&&(t.width=e.attrs.width),e.attrs.align&&(t[`data-align`]=e.attrs.align),[`img`,t]}},video:{inline:!0,attrs:{src:{},controls:{default:`true`}},group:`inline`,parseDOM:[{tag:`video[src]`,getAttrs:e=>e instanceof HTMLElement?{src:e.getAttribute(`src`),controls:e.getAttribute(`controls`)||`true`}:null}],toDOM:e=>[`video`,{src:e.attrs.src,controls:e.attrs.controls}]},text:{group:`inline`},hard_break:{inline:!0,group:`inline`,selectable:!1,parseDOM:[{tag:`br`}],toDOM:()=>[`br`]}},marks:{strong:{parseDOM:[{tag:`strong`},{tag:`b`,getAttrs:()=>null}],toDOM:()=>[`strong`,0]},em:{parseDOM:[{tag:`em`},{tag:`i`,getAttrs:()=>null}],toDOM:()=>[`em`,0]},underline:{parseDOM:[{tag:`u`}],toDOM:()=>[`u`,0]},strike:{parseDOM:[{tag:`s`},{tag:`del`},{tag:`strike`}],toDOM:()=>[`s`,0]},code:{parseDOM:[{tag:`code`}],toDOM:()=>[`code`,0]},style:{attrs:{style:{default:null}},parseDOM:[{tag:`span[style]`,getAttrs:e=>{if(!(e instanceof HTMLElement))return null;let t=Wn(e.getAttribute(`style`)||``);return t?{style:t}:!1}}],toDOM:e=>[`span`,{style:e.attrs.style},0]},link:{attrs:{href:{default:null},title:{default:null},target:{default:`_blank`},style:{default:null}},inclusive:!1,parseDOM:[{tag:`a`,getAttrs:e=>{if(!(e instanceof HTMLElement))return!1;let t=e.getAttribute(`href`),n=e.getAttribute(`style`);return!t&&!n?!1:{href:t||null,title:e.getAttribute(`title`)||null,target:e.getAttribute(`target`)||`_blank`,style:Wn(n||``)}}}],toDOM:e=>{let t={};return e.attrs.href&&(t.href=e.attrs.href),e.attrs.title&&(t.title=e.attrs.title),e.attrs.target&&e.attrs.href&&(t.target=e.attrs.target),e.attrs.style&&(t.style=e.attrs.style),[`a`,t,0]}},formula:{parseDOM:[{tag:`span[data-formula]`}],toDOM:()=>[`span`,{"data-formula":`true`},0]}}}),typeof Range<`u`&&(Range.prototype.getClientRects||(Range.prototype.getClientRects=()=>[]),Range.prototype.getBoundingClientRect||(Range.prototype.getBoundingClientRect=()=>({top:0,bottom:0,left:0,right:0,width:0,height:0,x:0,y:0,toJSON:()=>({})}))),typeof Element<`u`&&(Element.prototype.getClientRects||(Element.prototype.getClientRects=()=>[]),Element.prototype.getBoundingClientRect||(Element.prototype.getBoundingClientRect=()=>({top:0,bottom:0,left:0,right:0,width:0,height:0,x:0,y:0,toJSON:()=>({})}))),typeof document<`u`&&(document.elementFromPoint||(document.elementFromPoint=()=>null)),(0,l.createContext)(null);var Gn={en:{"common.cancel":`Cancel`,"common.close":`Close`,"autocomplete.noMatchesFound":`No matches found.`,"autocomplete.openOptions":`Open {label}`,"autocomplete.closeOptions":`Close {label}`,"autocomplete.clearSelection":`Clear {label}`,"autocomplete.removeSelection":`Remove {label}`,"hierarchySelect.noOptions":`No options available.`,"hierarchySelect.placeholder":`Select one or more options`,"hierarchySelect.openOptions":`Open {label}`,"hierarchySelect.closeOptions":`Close {label}`,"hierarchySelect.removeSelection":`Remove {label}`,"tagSelect.noOptions":`No options available.`,"tagSelect.placeholder":`Type and press Enter to add tags`,"tagSelect.openOptions":`Open {label}`,"tagSelect.closeOptions":`Close {label}`,"tagSelect.clearSelection":`Clear {label}`,"tagSelect.removeSelection":`Remove {label}`,"tagSelect.createSelection":`Add "{label}"`,"fileDrop.dropTitle":`Drop files here`,"fileDrop.dropHint":`Drag and drop files, or choose from your device.`,"fileDrop.browseFiles":`Browse files`,"fileDrop.fileCount":`{count} file{plural} selected`,"fileDrop.remove":`Remove`,"fileDrop.removeFile":`Remove {name}`,"modal.collapse":`Collapse`,"modal.expand":`Expand`,"dataTable.deleteRecord":`Delete record?`,"dataTable.deleteConfirm":`This will permanently remove the record for`,"dataTable.deleting":`Deleting...`,"dataTable.yesDelete":`Yes, delete`,"dataTable.record":`record`,"dataTable.records":`records`,"dataTable.noMatch":`No records match your search.`,"dataTable.noRecords":`No records yet.`,"dataTable.saveChanges":`Save changes`,"dataTable.cancelEdit":`Cancel edit`,"dataTable.editRow":`Edit row`,"dataTable.perPage":`/ page`,"dataTable.previousPage":`Previous page`,"dataTable.nextPage":`Next page`,"dataTable.rowsPerPage":`Rows per page`,"dataTable.rowHasMissing":`row has missing fields`,"dataTable.rowsHaveMissing":`rows have missing fields`,"dataTable.selectAll":`Select all`,"dataTable.selectRow":`Select {label}`,"dataTable.selected":`{count} selected`,"dataTable.deleteSelected":`Delete selected`,"dataTable.deselectAll":`Deselect all`,"dataTable.bulkDeleteTitle":`Delete {count} records?`,"dataTable.bulkDeleteConfirm":`This will permanently remove {count} selected records. This action cannot be undone.`,"dataTable.filter":`Filter`,"dataTable.filterByColumn":`Filter by column`,"dataTable.clearFilters":`Clear filters`,"dataTable.addFilter":`Add filter`,"dataTable.removeFilter":`Remove filter`,"dataTable.removeAllFilters":`Remove all filters`,"dataTable.filterOperator":`Operator`,"dataTable.selectOption":`Select...`,"dataTable.opContains":`contains`,"dataTable.opNotContains":`does not contain`,"dataTable.opEquals":`equals`,"dataTable.opStartsWith":`starts with`,"dataTable.opEndsWith":`ends with`,"dataTable.opEqual":`=`,"dataTable.opGreaterThan":`>`,"dataTable.opLessThan":`<`,"dataTable.opGreaterThanOrEqual":`>=`,"dataTable.opLessThanOrEqual":`<=`,"dataTable.opBetween":`between`,"dataTable.opIs":`is`,"dataTable.opBefore":`before`,"dataTable.opAfter":`after`,"dataTable.opIsOneOf":`is one of`,"dataTable.opAnd":`and`,"dataTable.sort":`Sort`,"dataTable.sortByColumn":`Sort by column`,"dataTable.clearSort":`Clear sort`,"dataTable.sortedByLabel":`Sorted:`,"dataTable.group":`Group`,"dataTable.groupByColumn":`Group by column`,"dataTable.groupedByLabel":`Grouped:`,"dataTable.clearGrouping":`Clear grouping`,"dataTable.columns":`Columns`,"dataTable.export":`Export`,"dataTable.exportAs":`Export as`,"dataTable.toggleColumns":`Toggle columns`,"dataTable.resetColumns":`Reset columns`,"dataTable.filterColumn":`Filter {column}...`,"dataTable.groupByField":`Group by {column}`,"dataTable.reorderColumn":`Reorder {column}`,"dataTable.mergeCells":`Merge cells`,"dataTable.unmergeCells":`Unmerge cells`,"dataTable.alignCells":`Align cells`,"dataTable.alignLeft":`Align left`,"dataTable.alignCenter":`Align center`,"dataTable.alignRight":`Align right`,"dataTable.formatCells":`Format cells`,"dataTable.bold":`Bold`,"dataTable.italic":`Italic`,"dataTable.underline":`Underline`,"dataTable.clearCellData":`Clear cell data`,"dataTable.clearCellFormatting":`Clear cell formatting`,"dataTable.clearCellSelection":`Clear cell selection`,"dataTable.copiedCells":`Copied {count} cell{plural}`,"dataTable.undo":`Undo`,"dataTable.redo":`Redo`,"dataTable.changesSaved":`Changes saved`,"dataTable.undoApplied":`Undid the latest change`,"dataTable.redoApplied":`Redid the latest change`,"dataTable.dragToFill":`Drag to fill selection`,"dataTable.resetLayout":`Reset layout`,"dataTable.resetAll":`Reset`,"dataTable.switchToInfinite":`Switch to infinite scroll`,"dataTable.switchToPaginated":`Switch to pagination`,"dataTable.loadingMore":`Loading more...`,"treeView.expand":`Expand item`,"treeView.collapse":`Collapse item`,"treeView.expandItem":`Expand {label}`,"treeView.collapseItem":`Collapse {label}`,"datePicker.placeholder":`Select a date`,"datePicker.calendarLabel":`Date picker calendar`,"datePicker.previousMonth":`Previous month`,"datePicker.nextMonth":`Next month`,"datePicker.monthSelect":`Select month`,"datePicker.yearSelect":`Select year`,"dateRangePicker.startPlaceholder":`Start date`,"dateRangePicker.endPlaceholder":`End date`,"dateRangePicker.calendarLabel":`Date range picker calendar`,"dateRangePicker.selectStart":`Select a start date`,"dateRangePicker.selectEnd":`Select an end date`,"errorBoundary.title":`Something went wrong`,"errorBoundary.description":`An unexpected error occurred in this section. You can try again or return to the main panel.`,"errorBoundary.retry":`Try Again`},vi:{"common.cancel":`Hủy`,"common.close":`Đóng`,"autocomplete.noMatchesFound":`Không tìm thấy kết quả phù hợp.`,"autocomplete.openOptions":`Mở {label}`,"autocomplete.closeOptions":`Đóng {label}`,"autocomplete.clearSelection":`Xóa {label}`,"autocomplete.removeSelection":`Bỏ {label}`,"hierarchySelect.noOptions":`Không có lựa chọn nào.`,"hierarchySelect.placeholder":`Chọn một hoặc nhiều mục`,"hierarchySelect.openOptions":`Mở {label}`,"hierarchySelect.closeOptions":`Đóng {label}`,"hierarchySelect.removeSelection":`Bỏ {label}`,"tagSelect.noOptions":`Không có lựa chọn nào.`,"tagSelect.placeholder":`Nhập và nhấn Enter để thêm thẻ`,"tagSelect.openOptions":`Mở {label}`,"tagSelect.closeOptions":`Đóng {label}`,"tagSelect.clearSelection":`Xóa {label}`,"tagSelect.removeSelection":`Bỏ {label}`,"tagSelect.createSelection":`Thêm "{label}"`,"fileDrop.dropTitle":`Thả tệp vào đây`,"fileDrop.dropHint":`Kéo thả tệp hoặc chọn từ thiết bị của bạn.`,"fileDrop.browseFiles":`Chọn tệp`,"fileDrop.fileCount":`Đã chọn {count} tệp`,"fileDrop.remove":`Xóa`,"fileDrop.removeFile":`Xóa {name}`,"modal.collapse":`Thu gọn`,"modal.expand":`Mở rộng`,"dataTable.deleteRecord":`Xóa bản ghi?`,"dataTable.deleteConfirm":`Thao tác này sẽ xóa vĩnh viễn bản ghi của`,"dataTable.deleting":`Đang xóa...`,"dataTable.yesDelete":`Có, xóa`,"dataTable.record":`bản ghi`,"dataTable.records":`bản ghi`,"dataTable.noMatch":`Không có bản ghi nào khớp với tìm kiếm.`,"dataTable.noRecords":`Chưa có bản ghi nào.`,"dataTable.saveChanges":`Lưu thay đổi`,"dataTable.cancelEdit":`Hủy chỉnh sửa`,"dataTable.editRow":`Chỉnh sửa hàng`,"dataTable.perPage":`/ trang`,"dataTable.previousPage":`Trang trước`,"dataTable.nextPage":`Trang sau`,"dataTable.rowsPerPage":`Số hàng mỗi trang`,"dataTable.rowHasMissing":`hàng thiếu trường dữ liệu`,"dataTable.rowsHaveMissing":`hàng thiếu trường dữ liệu`,"dataTable.selectAll":`Chọn tất cả`,"dataTable.selectRow":`Chọn {label}`,"dataTable.selected":`{count} đã chọn`,"dataTable.deleteSelected":`Xóa đã chọn`,"dataTable.deselectAll":`Bỏ chọn tất cả`,"dataTable.bulkDeleteTitle":`Xóa {count} bản ghi?`,"dataTable.bulkDeleteConfirm":`Thao tác này sẽ xóa vĩnh viễn {count} bản ghi đã chọn. Không thể hoàn tác.`,"dataTable.filter":`Lọc`,"dataTable.filterByColumn":`Lọc theo cột`,"dataTable.clearFilters":`Xóa bộ lọc`,"dataTable.addFilter":`Thêm bộ lọc`,"dataTable.removeFilter":`Xóa bộ lọc`,"dataTable.removeAllFilters":`Xóa tất cả bộ lọc`,"dataTable.filterOperator":`Toán tử`,"dataTable.selectOption":`Chọn...`,"dataTable.opContains":`chứa`,"dataTable.opNotContains":`không chứa`,"dataTable.opEquals":`bằng`,"dataTable.opStartsWith":`bắt đầu bằng`,"dataTable.opEndsWith":`kết thúc bằng`,"dataTable.opEqual":`=`,"dataTable.opGreaterThan":`>`,"dataTable.opLessThan":`<`,"dataTable.opGreaterThanOrEqual":`>=`,"dataTable.opLessThanOrEqual":`<=`,"dataTable.opBetween":`trong khoảng`,"dataTable.opIs":`là`,"dataTable.opBefore":`trước`,"dataTable.opAfter":`sau`,"dataTable.opIsOneOf":`là một trong`,"dataTable.opAnd":`và`,"dataTable.sort":`Sắp xếp`,"dataTable.sortByColumn":`Sắp xếp theo cột`,"dataTable.clearSort":`Xóa sắp xếp`,"dataTable.sortedByLabel":`Sắp xếp:`,"dataTable.group":`Nhóm`,"dataTable.groupByColumn":`Nhóm theo cột`,"dataTable.groupedByLabel":`Nhóm:`,"dataTable.clearGrouping":`Xóa nhóm`,"dataTable.columns":`Cột`,"dataTable.export":`Xuất`,"dataTable.exportAs":`Xuất dưới dạng`,"dataTable.toggleColumns":`Bật/tắt cột`,"dataTable.resetColumns":`Đặt lại cột`,"dataTable.filterColumn":`Lọc {column}...`,"dataTable.groupByField":`Nhóm theo {column}`,"dataTable.reorderColumn":`Sắp xếp lại {column}`,"dataTable.mergeCells":`Gộp ô`,"dataTable.unmergeCells":`Tách ô`,"dataTable.alignCells":`Căn chỉnh ô`,"dataTable.alignLeft":`Căn trái`,"dataTable.alignCenter":`Căn giữa`,"dataTable.alignRight":`Căn phải`,"dataTable.formatCells":`Định dạng ô`,"dataTable.bold":`In đậm`,"dataTable.italic":`In nghiêng`,"dataTable.underline":`Gạch chân`,"dataTable.clearCellData":`Xóa dữ liệu ô`,"dataTable.clearCellFormatting":`Xóa định dạng ô`,"dataTable.clearCellSelection":`Bỏ chọn ô`,"dataTable.copiedCells":`Đã sao chép {count} ô`,"dataTable.undo":`Hoàn tác`,"dataTable.redo":`Làm lại`,"dataTable.changesSaved":`Đã lưu thay đổi`,"dataTable.undoApplied":`Đã hoàn tác thay đổi gần nhất`,"dataTable.redoApplied":`Đã làm lại thay đổi gần nhất`,"dataTable.dragToFill":`Kéo để điền vùng chọn`,"dataTable.resetLayout":`Đặt lại bố cục`,"dataTable.resetAll":`Đặt lại`,"dataTable.switchToInfinite":`Chuyển sang cuộn vô hạn`,"dataTable.switchToPaginated":`Chuyển sang phân trang`,"dataTable.loadingMore":`Đang tải thêm...`,"treeView.expand":`Mở rộng mục`,"treeView.collapse":`Thu gọn mục`,"treeView.expandItem":`Mở rộng {label}`,"treeView.collapseItem":`Thu gọn {label}`,"datePicker.placeholder":`Chọn ngày`,"datePicker.calendarLabel":`Lịch chọn ngày`,"datePicker.previousMonth":`Tháng trước`,"datePicker.nextMonth":`Tháng sau`,"datePicker.monthSelect":`Chọn tháng`,"datePicker.yearSelect":`Chọn năm`,"dateRangePicker.startPlaceholder":`Ngày bắt đầu`,"dateRangePicker.endPlaceholder":`Ngày kết thúc`,"dateRangePicker.calendarLabel":`Lịch chọn khoảng ngày`,"dateRangePicker.selectStart":`Chọn ngày bắt đầu`,"dateRangePicker.selectEnd":`Chọn ngày kết thúc`,"errorBoundary.title":`Đã xảy ra lỗi`,"errorBoundary.description":`Đã xảy ra lỗi không mong muốn trong phần này. Bạn có thể thử lại hoặc quay lại bảng điều khiển chính.`,"errorBoundary.retry":`Thử lại`}},Kn=`automate-form-wizard-document-overlay-root`;function qn(e){return e===`vi`?`vi`:`en`}function Jn(e,t){if(!t)return e;let n=e;for(let[e,r]of Object.entries(t))n=n.replaceAll(`{${e}}`,String(r));return n}function Yn(e){return(t,n)=>Jn(Gn[e][t]??t,n)}function Xn(){if(typeof document>`u`||!document.body)return null;let e=document.getElementById(Kn);if(e instanceof HTMLElement)return e;let t=document.createElement(`div`);return t.id=Kn,document.body.appendChild(t),t}var Zn=(0,l.createContext)({locale:`en`,resolveOverlayRoot:Xn,t:Yn(`en`)});function Qn({children:e,locale:t=`en`,resolveOverlayRoot:n=Xn,theme:r,translate:i}){let a=qn(t),o=(0,p.jsx)(Zn.Provider,{value:{locale:a,resolveOverlayRoot:n,t:i??Yn(a)},children:e});return r?(0,p.jsx)(D,{theme:r,children:o}):o}function $n(){let{locale:e,t}=(0,l.useContext)(Zn);return{locale:e,t}}function er(){return(0,l.useContext)(Zn).resolveOverlayRoot()}var tr=`az:duration-200 az:ease`;function nr(e,t,n=200){return e==null?n:typeof e==`number`?e:e[t]??e.enter??e.exit??n}function rr(e,t={}){return e===!1?{enabled:!1,type:t.type??`fade`}:e===!0||e==null?{enabled:!0,type:t.type??`fade`,direction:t.direction,timeout:t.timeout,mountOnEnter:t.mountOnEnter,unmountOnExit:t.unmountOnExit,disablePrefersReducedMotion:t.disablePrefersReducedMotion}:e.enabled===!1?{enabled:!1,type:e.type??t.type??`fade`}:{enabled:!0,type:e.type??t.type??`fade`,direction:e.direction??t.direction,timeout:e.timeout??t.timeout,mountOnEnter:e.mountOnEnter??t.mountOnEnter,unmountOnExit:e.unmountOnExit??t.unmountOnExit,disablePrefersReducedMotion:e.disablePrefersReducedMotion??t.disablePrefersReducedMotion}}function ir(e,t){return rr(e,t).enabled}function ar(e,t){if(t)switch(e){case`up`:return`az:translate-y-2`;case`down`:return`-az:translate-y-2`;case`left`:return`az:translate-x-2`;case`right`:return`-az:translate-x-2`}return`az:translate-x-0 az:translate-y-0`}function or(e,t,n=`up`,r=!1){let i=t===`exited`||t===`exiting`||t===`entering`&&!r;switch(e){case`fade`:return[`az:transition-opacity`,tr,i?`az:opacity-0`:`az:opacity-100`].join(` `);case`grow`:return[`az:transition-[opacity,transform]`,tr,`az:origin-center`,i?`az:scale-95 az:opacity-0`:`az:scale-100 az:opacity-100`].join(` `);case`zoom`:return[`az:transition-transform`,tr,`az:origin-center`,i?`az:scale-0`:`az:scale-100`].join(` `);case`slide`:return[`az:transition-[opacity,transform]`,tr,i?`az:opacity-0`:`az:opacity-100`,ar(n,i)].join(` `);case`collapse`:return[`az:overflow-hidden az:transition-[height,opacity]`,tr].join(` `);default:return``}}function sr(e,t){return e===`top`?`down`:e===`bottom`?`up`:t===`left`?`right`:t===`right`?`left`:`up`}function cr(){return m(`(prefers-reduced-motion: reduce)`)}function lr({appear:e=!1,disablePrefersReducedMotion:t=!1,in:n,mountOnEnter:r=!1,onEnter:i,onEntering:a,onEntered:o,onExit:s,onExiting:c,onExited:u,timeout:d,unmountOnExit:f=!1}){let p=cr()&&!t,[m,h]=(0,l.useState)(()=>!(r&&!n)),[g,_]=(0,l.useState)(()=>r&&!n?`exited`:n?e?`entering`:`entered`:`exited`),v=(0,l.useRef)(null),y=(0,l.useRef)(null),b=(0,l.useRef)(!e),x=(0,l.useRef)(g),S=(0,l.useRef)(n),C=(0,l.useRef)({onEnter:i,onEntering:a,onEntered:o,onExit:s,onExiting:c,onExited:u});x.current=g,S.current=n,C.current={onEnter:i,onEntering:a,onEntered:o,onExit:s,onExiting:c,onExited:u};let w=(0,l.useCallback)(()=>{y.current!=null&&(window.clearTimeout(y.current),y.current=null)},[]),T=(0,l.useCallback)(e=>{v.current=e},[]),ee=(0,l.useCallback)((e,t)=>{if(w(),p||e<=0){t();return}let n=v.current,r=()=>{y.current=null,t()};if(n){let e=t=>{t.target===n&&(n.removeEventListener(`transitionend`,e),r())};n.addEventListener(`transitionend`,e)}y.current=window.setTimeout(r,e+16)},[w,p]),te=(0,l.useCallback)(()=>{!m&&r&&h(!0),C.current.onEnter?.(),_(`entering`),C.current.onEntering?.();let t=nr(d,e&&!b.current?`appear`:`enter`);ee(t,()=>{S.current&&(_(`entered`),C.current.onEntered?.(),b.current=!0)})},[e,r,m,d,ee]),E=(0,l.useCallback)(()=>{C.current.onExit?.(),_(`exiting`),C.current.onExiting?.();let e=nr(d,`exit`);ee(e,()=>{_(`exited`),C.current.onExited?.(),f&&h(!1)})},[d,f,ee]);return(0,l.useEffect)(()=>{if(n){if(x.current===`entered`||x.current===`entering`){m||h(!0);return}te();return}!m||x.current===`exited`||x.current===`exiting`||E()},[n,m,te,E]),(0,l.useEffect)(()=>()=>w(),[w]),{mounted:m,phase:g,registerNode:T}}function H(...e){return e.filter(Boolean).join(` `)}function ur(e){if(e!==void 0)return typeof e==`number`?`${e}px`:e}function dr(e){if(e!==void 0)return typeof e==`number`?`${e*4}px`:e}function fr({appear:e=!1,as:t=`div`,children:n,className:r,disablePrefersReducedMotion:i=!1,in:a=!1,mountOnEnter:o=!1,onEnter:s,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p,phaseClassName:m,style:h,styleForPhase:g,timeout:_,unmountOnExit:v=!1,...y}){let{mounted:b,phase:x,registerNode:S}=lr({appear:e,disablePrefersReducedMotion:i,in:a,mountOnEnter:o,onEnter:s,onEntering:c,onEntered:u,onExit:d,onExiting:f,onExited:p,timeout:_,unmountOnExit:v}),C=(0,l.useRef)(null),[w,T]=(0,l.useState)(x===`entered`);if((0,l.useEffect)(()=>{S(C.current)},[b,x,S]),(0,l.useEffect)(()=>{if(x===`entering`){T(!1);let e=window.requestAnimationFrame(()=>{window.requestAnimationFrame(()=>T(!0))});return()=>window.cancelAnimationFrame(e)}if(x===`entered`){T(!0);return}T(!1)},[x]),!b)return null;let ee=g?g(x,w,h):h;return(0,l.createElement)(t,{...y,className:H(m?.(x,w),r),"data-transition-active":w?`true`:`false`,"data-transition-phase":x,ref:C,style:ee},n)}function pr(e){return(0,p.jsx)(fr,{...e,phaseClassName:(e,t)=>or(`fade`,e,`up`,t)})}function mr(e){return(0,p.jsx)(fr,{...e,phaseClassName:(e,t)=>or(`grow`,e,`up`,t)})}function hr({direction:e=`up`,...t}){return(0,p.jsx)(fr,{...t,phaseClassName:(t,n)=>or(`slide`,t,e,n)})}var gr={"danger-icon":`az:size-5.5 az:inline-flex az:items-center az:justify-center az:border az:border-[rgba(255,100,100,0.3)] az:rounded-full az:bg-[rgba(255,100,100,0.08)] az:text-[rgba(255,140,140,0.8)] az:[font:inherit] az:text-xs az:leading-none az:cursor-pointer az:hover:bg-[rgba(255,80,80,0.22)] az:hover:text-[#ffaaaa]`,ghost:`az:px-2.5 az:py-1.25 az:rounded-xl az:border az:border-addon-accent-border az:bg-transparent az:text-addon-accent az:[font:inherit] az:text-xs az:font-medium az:cursor-pointer az:whitespace-nowrap az:hover:bg-addon-accent-active`,icon:`az:size-5.5 az:inline-flex az:items-center az:justify-center az:border az:border-addon-border-icon az:rounded-full az:bg-addon-surface az:text-addon-subtle az:[font:inherit] az:text-[13px] az:leading-none az:cursor-pointer az:hover:bg-addon-surface-hover az:hover:text-addon-text`,primary:`az:appearance-none az:border-0 az:rounded-2xl az:py-2 az:px-4 az:[font:inherit] az:text-xs az:font-bold az:cursor-pointer az:transition-[transform,opacity,background] az:duration-160 az:ease az:hover:-translate-y-px az:hover:brightness-110 az:disabled:opacity-[0.48] az:disabled:cursor-not-allowed az:disabled:translate-y-0 az:bg-[linear-gradient(135deg,#ffb347_0%,#ff7b54_100%)] az:text-addon-btn-text`,secondary:`az:appearance-none az:border-0 az:rounded-2xl az:py-2 az:px-3 az:[font:inherit] az:text-xs az:font-bold az:cursor-pointer az:transition-[transform,opacity,background] az:duration-160 az:ease az:hover:-translate-y-px az:hover:bg-addon-surface-hover az:disabled:opacity-[0.48] az:disabled:cursor-not-allowed az:disabled:translate-y-0 az:bg-addon-surface az:text-addon-text`},_r={lg:`az:py-2.5 az:px-5 az:text-sm`,md:``,sm:`az:py-1 az:px-2.5 az:text-[11px]`},vr=(0,l.forwardRef)(function(e,t){let n=k({name:`Button`,props:e}),r=O(),{children:i,className:a,color:o,disabled:s=!1,endIcon:c,loading:l=!1,size:u=`md`,slotProps:d,slots:f,startIcon:m,style:h,sx:g,type:_=`button`,variant:v=`primary`,...y}=n,b={...n,disabled:!!(s||l),loading:l,size:u,variant:v},x=r.components?.Button??r.components?.AzButton,S=le(x?.variants,b),C=j(x?.styleOverrides?.root,{ownerState:b,theme:r}),w=ue(g,r),T=gr[v]??``,ee=_r[u]??``,te=ce(d?.root,b),E=ce(d?.startIcon,b),ne=ce(d?.endIcon,b),re=ce(d?.loadingIndicator,b),ie=H(T,ee,S.className,C.className,!!(m||c||l)&&`az:inline-flex az:items-center az:justify-center az:gap-1.5`,te.className,a),ae={...S.style,...C.style,...w,...h,...te.style},oe=f?.root??`button`,se=f?.startIcon??`span`,D=f?.endIcon??`span`,A=f?.loadingIndicator??`span`;return(0,p.jsxs)(oe,{className:ie,disabled:s||l,ref:t,style:ae,type:_,...y,...te,children:[l?(0,p.jsx)(A,{className:H(`az:animate-spin az:inline-block`,re.className),...re,children:`◌`}):m&&(0,p.jsx)(se,{className:H(`az:inline-flex az:items-center`,E.className),...E,children:m}),i,!l&&c&&(0,p.jsx)(D,{className:H(`az:inline-flex az:items-center`,ne.className),...ne,children:c})]})});function yr(e,t){let n=l.Children.toArray(e);return n.flatMap((e,r)=>r===n.length-1?[e]:[e,(0,l.isValidElement)(t)?(0,l.cloneElement)(t,{key:`stack-divider-${r}`}):(0,p.jsx)(l.Fragment,{children:t},`stack-divider-${r}`)])}function br({alignItems:e,children:t,component:n,direction:r=`column`,divider:i,justifyContent:a,spacing:o=0,style:s,wrap:c,...l}){let u=n??`div`,d=i?yr(t,i):t;return(0,p.jsx)(u,{style:{alignItems:e,display:`flex`,flexDirection:r,gap:dr(o),justifyContent:a,minWidth:r.startsWith(`row`)?0:void 0,...s,flexWrap:c},...l,children:d})}var xr={body1:`p`,body2:`p`,button:`span`,caption:`span`,h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,inherit:`span`,overline:`span`,subtitle1:`p`,subtitle2:`p`},Sr={body1:`az:m-0 az:text-sm az:leading-5 az:font-normal az:text-addon-text`,body2:`az:m-0 az:text-xs az:leading-[18px] az:font-normal az:text-addon-muted`,button:`az:m-0 az:text-xs az:leading-4 az:font-bold az:tracking-[0.08em] az:uppercase az:text-addon-text`,caption:`az:m-0 az:text-[11px] az:leading-4 az:font-normal az:text-addon-dim`,h1:`az:m-0 az:text-[32px] az:leading-10 az:font-bold az:text-addon-text`,h2:`az:m-0 az:text-[28px] az:leading-9 az:font-bold az:text-addon-text`,h3:`az:m-0 az:text-2xl az:leading-8 az:font-bold az:text-addon-text`,h4:`az:m-0 az:text-xl az:leading-7 az:font-bold az:text-addon-text`,h5:`az:m-0 az:text-lg az:leading-7 az:font-bold az:text-addon-text`,h6:`az:m-0 az:text-base az:leading-6 az:font-bold az:text-addon-text`,inherit:`az:m-0 az:[font:inherit] az:text-inherit`,overline:`az:m-0 az:text-[11px] az:leading-4 az:font-extrabold az:tracking-[0.12em] az:uppercase az:text-addon-faint`,subtitle1:`az:m-0 az:text-sm az:leading-5 az:font-bold az:text-addon-text`,subtitle2:`az:m-0 az:text-[13px] az:leading-[18px] az:font-semibold az:text-addon-muted`},Cr={accent:`az:text-addon-accent`,default:`az:text-addon-text`,dim:`az:text-addon-dim`,error:`az:text-addon-error`,faint:`az:text-addon-faint`,muted:`az:text-addon-muted`,subtle:`az:text-addon-subtle`,success:`az:text-addon-success`,warning:`az:text-addon-warning`};function wr(e){let t=k({name:`Typography`,props:e}),n=O(),{align:r=`inherit`,className:i,color:a=`default`,component:o,gutterBottom:s=!1,noWrap:c=!1,style:l,sx:u,variant:d=`body1`,...f}=t,m={align:r,color:a,gutterBottom:s,noWrap:c,variant:d,...t},h=n.components?.Typography??n.components?.AzTypography,g=le(h?.variants,m),_=j(h?.styleOverrides?.root,{ownerState:m,theme:n}),v=ue(u,n),y=o??xr[d],b=Cr[a],x=b?void 0:a;return(0,p.jsx)(y,{className:H(Sr[d],b,g.className,_.className,s&&`az:mb-4`,c&&`az:block az:min-w-0 az:overflow-hidden az:text-ellipsis az:whitespace-nowrap`,i),style:{color:x,textAlign:r===`inherit`?void 0:r,...g.style,..._.style,...v,...l},...f})}var Tr={small:`az:box-border az:min-h-[32px] az:py-1 az:text-xs az:leading-none`,medium:`az:box-border az:min-h-[40px] az:py-1.5 az:text-sm az:leading-none`,large:`az:box-border az:min-h-[50px] az:py-2 az:text-base az:leading-none`},Er={small:{full:`az:rounded-lg`,start:`az:rounded-l-lg`,end:`az:rounded-r-lg`},medium:{full:`az:rounded-xl`,start:`az:rounded-l-xl`,end:`az:rounded-r-xl`},large:{full:`az:rounded-2xl`,start:`az:rounded-l-2xl`,end:`az:rounded-r-2xl`}},Dr=`az:box-border az:inline-flex az:shrink-0 az:items-stretch az:self-stretch az:min-h-0 az:border az:bg-addon-surface az:overflow-hidden az:[&_button]:box-border az:[&_button]:inline-flex az:[&_button]:h-full az:[&_button]:min-h-0 az:[&_button]:items-center az:[&_button]:justify-center az:[&_button]:rounded-none az:[&_button]:hover:translate-y-0`,Or={accent:`az:border-addon-accent-border`,default:`az:border-addon-border`};function kr(e){return e!=null&&e!==!1}function Ar(e,t){return kr(e)||kr(t)}function jr(e,t){let n=Er[e];return!t.hasStartAddon&&!t.hasEndAddon?n.full:t.hasStartAddon&&t.hasEndAddon?`az:rounded-none`:t.hasStartAddon?n.end:n.start}function Mr({border:e=`accent`,children:t,className:n,endAddon:r,fullWidth:i=!0,size:a=`medium`,startAddon:o}){let s=kr(o),c=kr(r);if(!s&&!c)return t;let l=Or[e],u=Er[a];return(0,p.jsxs)(`div`,{className:H(`az:min-w-0 az:items-stretch`,i?`az:flex az:w-full`:`az:inline-flex az:w-fit az:max-w-full`,n),role:`group`,children:[s?(0,p.jsx)(`div`,{className:H(Dr,l,u.start,`az:rounded-r-none az:border-r-0`),children:o}):null,(0,p.jsx)(`div`,{className:H(`az:flex az:min-w-0 az:items-stretch az:[&>*]:box-border az:[&>*]:h-full`,i&&`az:flex-1`,s&&`az:[&>*]:border-l-0`,c&&`az:[&>*]:border-r-0`),children:t}),c?(0,p.jsx)(`div`,{className:H(Dr,l,u.end,`az:rounded-l-none az:border-l-0`),children:r}):null]})}var Nr=`az:inline-flex az:size-7 az:shrink-0 az:items-center az:justify-center az:rounded-full az:border-0 az:bg-transparent az:p-0 az:[font:inherit] az:leading-none az:cursor-pointer az:transition-colors az:duration-160`;`${Nr}`,`${Nr}`;function Pr(e){let{className:t,component:n,style:r,sx:i,...a}=k({name:`Box`,props:e}),o=ue(i,O());return(0,p.jsx)(n??`div`,{className:H(`az-box`,t),style:{...o,...r},...a})}var Fr={accent:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-addon-accent-border az:bg-addon-accent-bg az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-addon-accent`,default:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-addon-border az:bg-addon-surface az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-addon-muted`,success:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-[rgba(185,251,192,0.35)] az:bg-[rgba(185,251,192,0.12)] az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-addon-success`,warning:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-[rgba(255,225,168,0.35)] az:bg-[rgba(255,225,168,0.12)] az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-[#ffe1a8]`,danger:`az:inline-flex az:items-center az:px-2.5 az:py-1 az:rounded-full az:border az:border-[rgba(255,208,208,0.35)] az:bg-[rgba(255,208,208,0.12)] az:text-[10px] az:font-extrabold az:tracking-[0.14em] az:uppercase az:text-[#ffd0d0]`};function Ir({variant:e=`default`,className:t,...n}){let r=Fr[e];return(0,p.jsx)(`span`,{className:t?`${r} ${t}`:r,...n})}var Lr=[10,25,50];Lr[0],Lr[0];var Rr=`addon-themed-select az:border az:border-addon-accent-border az:bg-addon-surface az:text-addon-text az:[font:inherit] az:appearance-none az:focus:outline-none az:focus:border-[rgba(255,179,71,0.7)] az:focus:shadow-[0_0_0_1px_rgba(255,179,71,0.35)]`,zr={small:`az:pl-2.5 az:pr-8`,medium:`az:pl-3 az:pr-9`,large:`az:pl-3.5 az:pr-10`},Br=`az:w-full`,Vr=`az:w-auto az:min-w-fit az:max-w-full az:[field-sizing:content]`;function Hr({children:e,className:t,endAddon:n,fullWidth:r=!0,size:i=`medium`,sizeToContent:a=!1,startAddon:o,...s}){let c=kr(o),l=kr(n),u=(0,p.jsx)(`select`,{className:H(Rr,Tr[i],zr[i],jr(i,{hasStartAddon:c,hasEndAddon:l}),a?Vr:r?Br:``,t),...s,children:e});return Ar(o,n)?(0,p.jsx)(Mr,{endAddon:n,fullWidth:!a&&r,size:i,startAddon:o,children:u}):u}var Ur={"address-card":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`6`,width:`16`,height:`12`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M8 10.5h4.5M8 13.5h6.5M15.5 10a1.75 1.75 0 1 1 0 3.5 1.75 1.75 0 0 1 0-3.5Zm-2.5 5c.6-1.2 1.5-1.8 2.5-1.8s1.9.6 2.5 1.8`,strokeWidth:e})]}),"arrow-left":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M19 12H5`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m11 6-6 6 6 6`,strokeWidth:e})]}),"arrow-up-right":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 16 16 8`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 8h7v7`,strokeWidth:e})]}),banknote:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`7`,width:`16`,height:`10`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7 10c.8 0 1.5-.7 1.5-1.5M17 10c-.8 0-1.5-.7-1.5-1.5M7 14c.8 0 1.5.7 1.5 1.5M17 14c-.8 0-1.5.7-1.5 1.5M12 9.5c1.2 0 2 1 2 2.5s-.8 2.5-2 2.5-2-1-2-2.5.8-2.5 2-2.5Z`,strokeWidth:e})]}),briefcase:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M5.5 8.5h13a1.5 1.5 0 0 1 1.5 1.5v7a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2v-7a1.5 1.5 0 0 1 1.5-1.5Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 8.5V7a2 2 0 0 1 2-2h2a2 2 0 0 1 2 2v1.5M4 12.5c2 .9 4.7 1.4 8 1.4s6-.5 8-1.4`,strokeWidth:e})]}),calendar:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`6`,width:`16`,height:`14`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M8 4v4M16 4v4M4 10h16M8 14h3M8 17h8`,strokeWidth:e})]}),"chart-column":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M5 19.5h14`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7.5 18v-5.5M12 18V8.5M16.5 18v-8`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`6`,y:`12.5`,width:`3`,height:`5.5`,rx:`.8`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`10.5`,y:`8.5`,width:`3`,height:`9.5`,rx:`.8`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`15`,y:`10`,width:`3`,height:`8`,rx:`.8`,strokeWidth:e})]}),check:e=>(0,p.jsx)(`path`,{d:`m5 12 4.2 4.2L19 7.6`,strokeWidth:e}),"chevron-down":e=>(0,p.jsx)(`path`,{d:`m6.5 9.5 5.5 5 5.5-5`,strokeWidth:e}),"chevron-left":e=>(0,p.jsx)(`path`,{d:`m14.5 6.5-5 5.5 5 5.5`,strokeWidth:e}),"chevron-right":e=>(0,p.jsx)(`path`,{d:`m9.5 6.5 5 5.5-5 5.5`,strokeWidth:e}),"chevron-up":e=>(0,p.jsx)(`path`,{d:`m6.5 14.5 5.5-5 5.5 5`,strokeWidth:e}),"circle-alert":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`8.5`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M12 8.5v4.5M12 16.5h.01`,strokeWidth:e})]}),"clipboard-list":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M9 6.5h6M10 4.5h4a1.5 1.5 0 0 1 1.5 1.5v.5h1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-9a2 2 0 0 1-2-2v-9a2 2 0 0 1 2-2h1V6a1.5 1.5 0 0 1 1.5-1.5Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m9 11 1.5 1.5L12 11M9 15 10.5 16.5 12 15M13.5 12h3M13.5 16h3`,strokeWidth:e})]}),components:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`4`,width:`5`,height:`5`,rx:`1`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`13`,y:`4`,width:`7`,height:`5`,rx:`1`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`4`,y:`13`,width:`7`,height:`7`,rx:`1`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`15`,y:`13`,width:`5`,height:`7`,rx:`1`,strokeWidth:e})]}),copy:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`9`,y:`7`,width:`9`,height:`11`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7 15H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v1`,strokeWidth:e})]}),"credit-card":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4`,y:`6.5`,width:`16`,height:`11`,rx:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4 10h16M7.5 14h3.5M14 14h2.5`,strokeWidth:e})]}),"file-archive":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 11h6M9 14h6M11 14v4M13 14v4`,strokeWidth:e})]}),"file-image":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 17l2.5-2.8 2.2 2.3 1.6-1.7 1.7 2.2M10 10.5h.01`,strokeWidth:e})]}),"file-pdf":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 17v-5h2a1.5 1.5 0 1 1 0 3h-2M13.5 17v-5h1.8a1.7 1.7 0 0 1 0 3.4h-1.8M17 17v-5h2`,strokeWidth:e})]}),"file-scan":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 12h6M10 9.5H8M16 9.5h-2M10 14.5H8M16 14.5h-2`,strokeWidth:e})]}),"file-spreadsheet":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 11h7M9 14h7M9 17h7M12 11v6M15 11v6`,strokeWidth:e})]}),"file-text":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 4.5h6l4 4v10a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2v-12a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M14 4.5v4h4M9 11h6M9 14h6M9 17h4`,strokeWidth:e})]}),folder:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4 8.5a2 2 0 0 1 2-2h4l1.8 1.8H18a2 2 0 0 1 2 2v6.2a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4.5 10h15`,strokeWidth:e})]}),grid:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`rect`,{x:`4.5`,y:`4.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`13.5`,y:`4.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`4.5`,y:`13.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e}),(0,p.jsx)(`rect`,{x:`13.5`,y:`13.5`,width:`6`,height:`6`,rx:`1.2`,strokeWidth:e})]}),handshake:e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M4.5 12 8 8.5h3l1.5 1.5h1L16 7.5h3.5M4.5 12l3.3 3.3a1.3 1.3 0 0 0 1.8 0l1.2-1.2M16 7.5l3.5 3.5-4.4 4.4a1.4 1.4 0 0 1-2 0L10.5 13M9.8 14.4l1.1 1.1a1.3 1.3 0 0 0 1.9 0l.8-.8`,strokeWidth:e})}),"heart-pulse":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M12 19s-6.8-4.5-8.3-8.1C2.5 8 4.3 5.5 7 5.5c1.8 0 3 .9 5 3.1 2-2.2 3.2-3.1 5-3.1 2.7 0 4.5 2.5 3.3 5.4C18.8 14.5 12 19 12 19Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M7.2 12h2l1.1-2.2 2.2 5 1.2-2.3h3`,strokeWidth:e})]}),loader:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M12 4a8 8 0 1 0 8 8`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M17.5 4.5H20v2.5`,strokeWidth:e})]}),logout:e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M10 4.5H7a2 2 0 0 0-2 2v11a2 2 0 0 0 2 2h3M14 8l4 4-4 4M18 12H9`,strokeWidth:e})}),"map-route":e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M5.5 18.5a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm13-9a2 2 0 1 0 0-4 2 2 0 0 0 0 4ZM7.3 15.2c1.5-3 3.4-4.6 6.1-5.2M13.7 10c1.1.1 2.1.7 3 1.8M10.5 6.5c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2Zm-2 0v8`,strokeWidth:e})}),"message-square":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M6 6.5h12a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H11l-4.5 3v-3H6a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M8.5 10.5h7M8.5 13.5h5`,strokeWidth:e})]}),package:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`m12 4 7 3.5v9L12 20l-7-3.5v-9Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m12 4-7 3.5 7 3.5 7-3.5M12 11v9`,strokeWidth:e})]}),"package-check":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`m12 4 7 3.5v9L12 20l-7-3.5v-9Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m12 4-7 3.5 7 3.5 7-3.5M12 11v9M9.2 14.3l1.5 1.5 3-3`,strokeWidth:e})]}),pill:e=>(0,p.jsx)(p.Fragment,{children:(0,p.jsx)(`path`,{d:`M9 6a4 4 0 0 1 5.7 0l1.3 1.3a4 4 0 0 1 0 5.7L13 16a4 4 0 1 1-5.7-5.7L9 6Zm1.2 6.8 5.6-5.6`,strokeWidth:e})}),receipt:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M7 4.5h10v15l-2.2-1.6-2 1.6-2-1.6-2 1.6-2.3-1.6Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9.5 9.5h5M9.5 12.5h5M9.5 15.5h3.5`,strokeWidth:e})]}),settings:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`2.75`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M12 5.2v1.6M12 17.2v1.6M18.1 8.3l-1.2.9M7.1 14.8l-1.2.9M18.8 12h-1.6M6.8 12H5.2M16.9 14.8l1.2.9M7.1 9.2 5.9 8.3`,strokeWidth:e})]}),share:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`18`,cy:`6`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`6`,cy:`12`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`18`,cy:`18`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`m8.2 10.8 7.6-3.6M8.2 13.2l7.6 3.6`,strokeWidth:e})]}),"shield-cross":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M12 4.5 18 7v4.5c0 3.5-2.3 6.5-6 8-3.7-1.5-6-4.5-6-8V7Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M12 9v6M9 12h6`,strokeWidth:e})]}),"shopping-bag":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M7.5 8h9l1 10.2a1.8 1.8 0 0 1-1.8 2H8.3a1.8 1.8 0 0 1-1.8-2Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 9V7.6A3 3 0 0 1 12 4.5a3 3 0 0 1 3 3.1V9`,strokeWidth:e})]}),"shopping-cart":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4 6h2l1.5 7.5h8.5l2-5.5H7.2`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`10`,cy:`18`,r:`1.4`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`16`,cy:`18`,r:`1.4`,strokeWidth:e})]}),stethoscope:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M8 5.5v5a4 4 0 0 0 8 0v-5M8 8H6.5M17.5 8H16M12 14.5v2.5a2.5 2.5 0 1 0 5 0v-1.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`17`,cy:`15.5`,r:`1.5`,strokeWidth:e})]}),tags:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4.5 12.5V6.8A1.8 1.8 0 0 1 6.3 5h5.7l7.5 7.5-5.7 5.7Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 8.5h.01`,strokeWidth:e})]}),target:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`7.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`4`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`12`,cy:`12`,r:`1.2`,strokeWidth:e})]}),truck:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M4 8.5h9v6H4ZM13 10h3l2 2v2.5h-5Z`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`8`,cy:`17`,r:`1.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`16.5`,cy:`17`,r:`1.5`,strokeWidth:e})]}),"user-check":e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`10`,cy:`9`,r:`3`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4.5 18a5.7 5.7 0 0 1 11 0M15.5 10.5l1.7 1.7 3.1-3.1`,strokeWidth:e})]}),users:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`circle`,{cx:`9`,cy:`9.5`,r:`2.5`,strokeWidth:e}),(0,p.jsx)(`circle`,{cx:`16`,cy:`10.5`,r:`2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M4.5 18a4.8 4.8 0 0 1 9 0M14 18c.3-1.5 1.6-2.7 3.2-2.9`,strokeWidth:e})]}),wallet:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`M5.5 8.5h12a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-12a2 2 0 0 1-2-2v-7a2 2 0 0 1 2-2ZM6 8V6.8A1.8 1.8 0 0 1 7.8 5h7.2`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M16 13h3M16.2 13h.01`,strokeWidth:e})]}),warehouse:e=>(0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)(`path`,{d:`m4.5 10.5 7.5-5 7.5 5V19h-15Z`,strokeWidth:e}),(0,p.jsx)(`path`,{d:`M9 19v-5h6v5M7.5 10.5h9`,strokeWidth:e})]}),x:e=>(0,p.jsx)(`path`,{d:`m8 8 8 8M16 8l-8 8`,strokeWidth:e}),zap:e=>(0,p.jsx)(`path`,{d:`M13 3 5.5 13.5H12l-1 7.5L18.5 10.5H12L13 3Z`,strokeWidth:e})};(0,l.forwardRef)(function({className:e,name:t,role:n,size:r=16,strokeWidth:i=1.8,style:a,...o},s){let c=Ur[t],l=!!(o[`aria-label`]||o[`aria-labelledby`]||n===`img`),u=ur(r),d={height:u,width:u,...a};return(0,p.jsx)(`svg`,{...o,"aria-hidden":!l||void 0,className:H(`az:inline-block az:shrink-0`,e),fill:`none`,focusable:`false`,ref:s,role:l?n??`img`:void 0,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,style:d,viewBox:`0 0 24 24`,children:c(i)})});var Wr=`az:w-full az:border az:border-addon-accent-border az:bg-addon-surface az:text-addon-text az:[font:inherit] az:placeholder:text-addon-placeholder az:focus:outline-none az:focus:border-[rgba(255,179,71,0.7)] az:focus:shadow-[0_0_0_1px_rgba(255,179,71,0.35)]`,Gr={small:`az:px-2.5`,medium:`az:px-3`,large:`az:px-3.5`};function Kr({className:e,endAddon:t,size:n=`medium`,startAddon:r,...i}){let a=kr(r),o=kr(t),s=(0,p.jsx)(`input`,{className:H(Wr,Tr[n],Gr[n],jr(n,{hasStartAddon:a,hasEndAddon:o}),e),...i});return Ar(r,t)?(0,p.jsx)(Mr,{endAddon:t,size:n,startAddon:r,children:s}):s}function qr({className:e,component:t,disablePadding:n=!1,...r}){return(0,p.jsx)(t??`ul`,{className:H(`az:m-0 az:list-none az:min-w-0`,n?`az:p-0`:`az:px-0 az:py-2`,e),role:`list`,...r})}function Jr({alignItems:e=`center`,children:t,className:n,component:r,disableGutters:i=!1,disablePadding:a=!1,secondaryAction:o,selected:s=!1,...c}){return(0,p.jsxs)(r??`li`,{className:H(`az:flex az:min-w-0 az:list-none az:gap-3`,e===`flex-start`?`az:items-start`:`az:items-center`,a?`az:p-0`:i?`az:py-2`:`az:px-4 az:py-2`,s&&`az:rounded-2xl az:bg-addon-accent-active`,o!=null&&`az:justify-between`,n),...c,children:[(0,p.jsx)(`div`,{className:`az:flex az:min-w-0 az:flex-1 az:gap-3`,children:t}),o?(0,p.jsx)(`div`,{className:`az:shrink-0`,children:o}):null]})}function Yr({className:e,inset:t=!1,primary:n,primaryTypographyProps:r,secondary:i,secondaryTypographyProps:a}){return(0,p.jsxs)(`div`,{className:H(`az:min-w-0 az:flex-1`,t&&`az:pl-10`,e),children:[n===void 0?null:(0,p.jsx)(wr,{noWrap:!0,variant:`body1`,...r,children:n}),i===void 0?null:(0,p.jsx)(wr,{className:`az:mt-1`,variant:`caption`,...a,children:i})]})}function Xr(e){let t=k({name:`Modal`,props:e}),n=O(),{children:r,defaultExpanded:i,footer:a,fullHeight:o,onClose:s,slotProps:c,slots:u,sx:d,title:f,transition:m}=t,h=er(),[g,_]=(0,l.useState)(i??!1),[v,y]=(0,l.useState)(!0),{t:b}=$n(),x=ir(m,{type:`grow`}),S=(0,l.useCallback)(()=>{if(!x){s();return}y(!1)},[s,x]);(0,l.useEffect)(()=>{let e=e=>{e.key===`Escape`&&S()};return document.addEventListener(`keydown`,e),()=>document.removeEventListener(`keydown`,e)},[S]),(0,l.useEffect)(()=>{let e=document.documentElement,t=document.body,n=e.style.overflow,r=t.style.overflow,i=e.style.overscrollBehavior,a=t.style.overscrollBehavior;return e.style.overflow=`hidden`,t.style.overflow=`hidden`,e.style.overscrollBehavior=`none`,t.style.overscrollBehavior=`none`,()=>{e.style.overflow=n,t.style.overflow=r,e.style.overscrollBehavior=i,t.style.overscrollBehavior=a}},[]);let C={fullHeight:o,isExpanded:g,...t},w=n.components?.Modal??n.components?.AzModal,T=le(w?.variants,C),ee=j(w?.styleOverrides?.root,{ownerState:C,theme:n}),te=ue(d,n),E=ce(c?.surface,C),ne=ce(c?.backdrop,C),re=ce(c?.header,C),ie=ce(c?.content,C),ae=ce(c?.footer,C),oe=ce(c?.closeButton,C),se=u?.surface??`div`,D=u?.header??`div`,A=u?.content??`div`,M=u?.footer??`div`,N=u?.closeButton??`button`,P=(0,p.jsxs)(se,{"aria-label":f,"aria-modal":`true`,className:H(`addon-modal-surface az:flex az:flex-col az:overflow-hidden az:rounded-3xl az:border az:font-addon az:text-addon-text az:transition-[width,max-height,height,border-radius] az:duration-200 az:ease`,g?`az:w-[calc(100vw-32px)] az:max-h-[calc(100vh-32px)] az:rounded-xl`:`az:w-[min(1200px,calc(100vw-48px))] az:max-h-[calc(100vh-48px)]`,o&&`az:h-[calc(100vh-32px)]`,T.className,ee.className,E.className),onClick:e=>e.stopPropagation(),role:`dialog`,style:{...T.style,...ee.style,...te,...E.style},...E,children:[(0,p.jsxs)(D,{className:H(`az:flex az:items-center az:justify-between az:gap-3 az:px-5 az:pt-4 az:pb-3 az:border-b az:border-addon-border-subtle az:shrink-0`,re.className),...re,children:[(0,p.jsx)(`h2`,{className:`az:m-0 az:text-[15px] az:font-bold az:text-addon-text`,children:f}),(0,p.jsxs)(`div`,{className:`az:flex az:items-center az:gap-1.5`,children:[(0,p.jsx)(`button`,{"aria-label":b(g?`modal.collapse`:`modal.expand`),className:`az:size-7 az:inline-flex az:items-center az:justify-center az:border az:border-addon-border-icon az:rounded-full az:bg-addon-surface az:text-addon-muted az:[font:inherit] az:text-sm az:leading-none az:cursor-pointer az:hover:bg-addon-surface-hover az:hover:text-addon-text`,onClick:()=>_(e=>!e),title:b(g?`modal.collapse`:`modal.expand`),type:`button`,children:g?`⊡`:`⊞`}),(0,p.jsx)(N,{"aria-label":`${b(`common.close`)} ${f}`,className:H(`az:size-7 az:inline-flex az:items-center az:justify-center az:border az:border-addon-border-icon az:rounded-full az:bg-addon-surface az:text-addon-muted az:[font:inherit] az:text-lg az:leading-none az:cursor-pointer az:hover:bg-addon-surface-hover az:hover:text-addon-text`,oe.className),onClick:S,title:`${b(`common.close`)} ${f}`,type:`button`,...oe,children:`×`})]})]}),(0,p.jsx)(A,{className:H(`az:flex-1 az:min-h-0 az:flex az:flex-col az:overflow-y-auto az:overscroll-contain`,o&&`az:h-full`,ie.className),...ie,children:r}),a&&(0,p.jsx)(M,{className:H(`addon-modal-footer az:flex az:items-center az:justify-end az:gap-2.5 az:px-5 az:py-3 az:border-t az:border-addon-border-subtle az:shrink-0`,ae.className),...ae,children:a})]}),fe=u?.backdrop??`div`,pe=(0,p.jsx)(pr,{appear:!0,in:v,onExited:x?s:void 0,children:(0,p.jsx)(fe,{className:H(`addon-modal-backdrop az:fixed az:inset-0 az:flex az:flex-col az:items-center az:justify-center az:p-6 az:z-2147483647`,ne.className),role:`presentation`,...ne,children:x?(0,p.jsx)(mr,{appear:!0,in:v,children:P}):P})});if(x)return h?(0,de.createPortal)(pe,h):pe;let me=(0,p.jsx)(fe,{className:H(`addon-modal-backdrop az:fixed az:inset-0 az:flex az:flex-col az:items-center az:justify-center az:p-6 az:z-2147483647`,ne.className),role:`presentation`,...ne,children:P});return h?(0,de.createPortal)(me,h):me}function Zr(){return(0,p.jsxs)(Pr,{"aria-hidden":`true`,className:`az:relative az:size-20 az:rounded-3xl az:border az:border-addon-border-subtle az:bg-addon-surface-card`,children:[(0,p.jsx)(Pr,{className:`az:absolute az:inset-3 az:rounded-2xl az:border az:border-dashed az:border-addon-border-subtle`}),(0,p.jsx)(Pr,{className:`az:absolute az:left-1/2 az:top-1/2 az:h-7 az:w-7 az:-translate-x-1/2 az:-translate-y-1/2 az:rounded-full az:border az:border-addon-border az:bg-addon-surface`})]})}function Qr(e,t,n){return e==null?null:typeof e==`string`||typeof e==`number`?(0,p.jsx)(wr,{className:t,variant:n,children:e}):e}function $r({className:e,children:t,description:n,image:r,imageStyle:i,title:a,...o}){let s=typeof r==`string`?(0,p.jsx)(`img`,{alt:``,"aria-hidden":`true`,className:`az:max-h-28 az:max-w-full az:object-contain`,src:r,style:i}):r??(0,p.jsx)(Zr,{});return(0,p.jsxs)(`div`,{className:H(`az:flex az:min-h-0 az:flex-col az:items-center az:justify-center az:gap-4 az:px-6 az:py-8 az:text-center`,e),...o,children:[(0,p.jsx)(`div`,{style:typeof r==`string`?void 0:i,children:s}),(0,p.jsxs)(br,{className:`az:max-w-80`,spacing:1.5,children:[Qr(a,`az:text-[15px] az:text-addon-text`,`h6`),Qr(n,`az:text-[12px] az:text-addon-dim`,`body2`)]}),t]})}function ei({alignItems:e,columnGap:t,component:n,direction:r=`row`,gap:i,inline:a=!1,justifyContent:o,rowGap:s,style:c,wrap:l,...u}){return(0,p.jsx)(n??`div`,{style:{alignItems:e,columnGap:dr(t),display:a?`inline-flex`:`flex`,flexDirection:r,gap:dr(i),justifyContent:o,minWidth:r.startsWith(`row`)?0:void 0,rowGap:dr(s),flexWrap:l,...c},...u})}function ti({children:e,className:t,error:n,label:r}){return(0,p.jsxs)(`label`,{className:t?`az:grid az:gap-2 az:text-xs az:font-semibold az:text-addon-muted az:uppercase az:tracking-[0.08em] ${t}`:`az:grid az:gap-2 az:text-xs az:font-semibold az:text-addon-muted az:uppercase az:tracking-[0.08em]`,children:[r,e,n&&(0,p.jsx)(`p`,{className:`az:m-0 az:text-[11px] az:font-medium az:normal-case az:tracking-normal az:text-addon-error az:leading-snug`,children:n})]})}var ni={default:{indicator:`az:bg-addon-muted`,label:``},success:{indicator:`az:bg-[rgba(185,251,192,0.7)]`,label:`success`},info:{indicator:`az:bg-addon-accent-border`,label:`info`},warning:{indicator:`az:bg-[rgba(255,225,168,0.7)]`,label:`warning`},error:{indicator:`az:bg-[rgba(255,208,208,0.7)]`,label:`error`}},ri={default:`az:border-addon-border-icon az:bg-addon-surface az:text-addon-muted`,success:`az:border-[rgba(185,251,192,0.35)] az:bg-[rgba(185,251,192,0.18)] az:text-addon-success`,info:`az:border-addon-accent-border az:bg-addon-accent-active az:text-addon-accent`,warning:`az:border-[rgba(255,225,168,0.35)] az:bg-[rgba(255,225,168,0.18)] az:text-addon-warning`,error:`az:border-[rgba(255,208,208,0.35)] az:bg-[rgba(255,208,208,0.18)] az:text-addon-error`},ii={default:`•`,success:`+`,info:`i`,warning:`!`,error:`×`},ai={default:`az:bg-addon-surface`,success:`az:bg-[rgba(185,251,192,0.18)]`,info:`az:bg-[rgba(255,179,71,0.18)]`,warning:`az:bg-[rgba(255,225,168,0.18)]`,error:`az:bg-[rgba(255,208,208,0.18)]`};function oi({id:e,message:t,title:n,timestamp:r,type:i=`default`,variant:a=`outlined`,duration:o=5e3,onClose:s}){let{t:c}=$n(),u=a===`filled`,{indicator:d}=ni[i],f=ri[i],m=ii[i];return(0,l.useEffect)(()=>{if(o==null||!s)return;let t=window.setTimeout(()=>{s(e)},o);return()=>window.clearTimeout(t)},[o,e,s]),(0,p.jsxs)(`div`,{"aria-atomic":`true`,"aria-live":`assertive`,className:H(`az:relative az:pointer-events-auto az:w-[min(360px,calc(100vw-32px))] az:overflow-hidden az:rounded-2xl az:border az:border-addon-border az:bg-addon-popover az:shadow-[0_16px_32px_rgba(0,0,0,0.32)]`),role:`alert`,children:[u?(0,p.jsx)(`div`,{"aria-hidden":`true`,className:H(`az:pointer-events-none az:absolute az:inset-0`,ai[i])}):null,u?null:(0,p.jsx)(`div`,{className:H(`az:h-1 az:w-full`,d)}),(0,p.jsxs)(ei,{alignItems:`center`,className:`az:gap-2.5 az:px-4 az:pt-3`,justifyContent:`space-between`,children:[(0,p.jsxs)(ei,{alignItems:`center`,className:`az:min-w-0 az:gap-2.5`,children:[(0,p.jsx)(`span`,{"aria-hidden":`true`,className:H(`az:flex az:h-6 az:w-6 az:shrink-0 az:items-center az:justify-center az:rounded-full az:border az:text-xs az:font-bold`,f),children:m}),n==null?null:(0,p.jsx)(wr,{className:`az:truncate az:font-semibold az:text-addon-text`,variant:`body2`,children:n}),r?(0,p.jsx)(wr,{className:`az:shrink-0 az:text-addon-dim`,variant:`caption`,children:r}):null]}),s?(0,p.jsx)(vr,{"aria-label":c(`common.close`),className:`az:ml-1 az:shrink-0`,variant:`ghost`,onClick:()=>s(e),children:`×`}):null]}),t==null?null:(0,p.jsx)(`div`,{className:`az:px-4 az:pb-3 az:pt-1.5`,children:(0,p.jsx)(wr,{className:`az:text-addon-muted`,variant:`body2`,children:t})})]})}function si(e){let t=e?.horizontal??`right`;return H((e?.vertical??`top`)===`top`?`az:top-4`:`az:bottom-4`,t===`left`&&`az:left-4`,t===`center`&&`az:left-1/2 az:-translate-x-1/2`,t===`right`&&`az:right-4`)}function ci({anchorOrigin:e,toasts:t,onClose:n,transition:r}){let i=er(),a=sr(e?.vertical,e?.horizontal),o=ir(r,{type:`slide`,direction:a}),[s,c]=(0,l.useState)(t);(0,l.useEffect)(()=>{c(e=>{let n=new Map(t.map(e=>[e.id,e])),r=[...t];for(let t of e)n.has(t.id)||r.push(t);return r})},[t]);let u=(0,l.useMemo)(()=>new Set(t.map(e=>e.id)),[t]),d=e=>{c(t=>t.filter(t=>t.id!==e))};if(s.length===0)return null;let f=(0,p.jsx)(`div`,{"aria-label":`Notifications`,"aria-live":`polite`,className:H(`az:pointer-events-none az:fixed az:z-2147483647 az:flex az:flex-col az:gap-2`,si(e)),role:`region`,children:(0,p.jsx)(br,{spacing:2,children:s.map(e=>{let t=(0,p.jsx)(oi,{...e,onClose:n},e.id);return o?(0,p.jsx)(hr,{appear:!0,direction:a,in:u.has(e.id),mountOnEnter:!0,onExited:()=>d(e.id),unmountOnExit:!0,children:t},e.id):u.has(e.id)?t:null})})});return i?(0,de.createPortal)(f,i):f}function li(e,t){switch(t.type){case`PUSH`:return{...e,toasts:[...e.toasts,t.payload],nextId:e.nextId+1};case`DISMISS`:return{...e,toasts:e.toasts.filter(e=>e.id!==t.id)};case`DISMISS_ALL`:return{...e,toasts:[]};default:return e}}var ui={toasts:[],nextId:1},di=(0,l.createContext)(null);function fi(){let[e,t]=(0,l.useReducer)(li,ui),n=(0,l.useCallback)(e=>{let n=String(Date.now());return t({type:`PUSH`,payload:{id:n,...e}}),n},[]),r=(0,l.useCallback)(e=>{t({type:`DISMISS`,id:e})},[]),i=(0,l.useCallback)(()=>{t({type:`DISMISS_ALL`})},[]);return{toasts:e.toasts,push:n,dismiss:r,dismissAll:i}}function pi(){let e=(0,l.useContext)(di),t=fi();return e??t}function mi({anchorOrigin:e,children:t,transition:n}){let r=fi(),i=(0,l.useMemo)(()=>({dismiss:r.dismiss,dismissAll:r.dismissAll,push:r.push,toasts:r.toasts}),[r.dismiss,r.dismissAll,r.push,r.toasts]);return(0,p.jsxs)(di.Provider,{value:i,children:[t,(0,p.jsx)(ci,{anchorOrigin:e,onClose:r.dismiss,toasts:r.toasts,transition:n})]})}var hi=`az:inline-flex az:max-w-full az:items-center az:gap-3 az:align-middle az:text-sm az:text-addon-muted`,gi=`az:relative az:inline-flex az:shrink-0 az:items-center`,_i=`az:inline-flex az:h-full az:w-full az:items-center az:rounded-full az:border az:p-0.5 az:transition-[background,border-color,box-shadow] az:duration-160 az:ease`,vi=`az:block az:rounded-full az:shadow-[0_2px_8px_rgba(0,0,0,0.24)] az:transition-[transform,background] az:duration-160 az:ease`,yi=`az:absolute az:inset-0 az:m-0 az:h-full az:w-full az:cursor-pointer az:opacity-0 disabled:az:cursor-not-allowed`,bi=`az:min-w-0`,xi=`az:shadow-[0_0_0_1px_var(--az-color-addon-accent),0_0_0_4px_var(--az-color-addon-accent-bg)]`,Si={start:`az:-ml-2`,end:`az:-mr-2`},Ci={medium:{control:`az:h-6 az:w-11`,thumb:`az:size-5`,translate:`az:translate-x-5`},small:{control:`az:h-5 az:w-9`,thumb:`az:size-4`,translate:`az:translate-x-4`}};function wi(e,t){if(typeof e==`function`){e(t);return}e&&(e.current=t)}(0,l.forwardRef)(function({checked:e,className:t,defaultChecked:n=!1,disabled:r=!1,edge:i=!1,inputProps:a,inputRef:o,label:s,labelPlacement:c=`end`,onBlur:u,onChange:d,onFocus:f,size:m=`medium`,...h},g){let _=e!==void 0,[v,y]=(0,l.useState)(!!n),[b,x]=(0,l.useState)(!1),S=_?!!e:v;function C(e){x(!1),u?.(e)}function w(e){_||y(e.target.checked),d?.(e,e.target.checked)}function T(e){x(e.currentTarget.matches(`:focus-visible`)),f?.(e)}function ee(e){wi(g,e),wi(o,e)}let te=[hi,c===`start`?`az:flex-row-reverse`:``,r?`az:cursor-not-allowed az:opacity-[0.48]`:`az:cursor-pointer`,i?Si[i]:``,t].filter(Boolean).join(` `),E=[gi,Ci[m].control].join(` `),ne=[_i,S?`az:border-addon-accent-border az:bg-addon-accent-bg`:`az:border-addon-border az:bg-addon-surface-dark`,b?xi:``].filter(Boolean).join(` `),re=[vi,Ci[m].thumb,S?`${Ci[m].translate} az:bg-[var(--az-color-addon-accent)]`:`az:translate-x-0 az:bg-[var(--az-color-addon-text)]`].join(` `);return(0,p.jsxs)(`label`,{className:te,children:[(0,p.jsxs)(`span`,{className:E,children:[(0,p.jsx)(`input`,{...a,...h,checked:S,className:yi,disabled:r,onBlur:C,onChange:w,onFocus:T,ref:ee,role:`switch`,type:`checkbox`}),(0,p.jsx)(`span`,{"aria-hidden":`true`,className:ne,children:(0,p.jsx)(`span`,{className:re})})]}),s?(0,p.jsx)(`span`,{className:bi,children:s}):null]})});var Ti=`Tabs.Tab`,Ei=`az:relative az:inline-flex az:min-w-0 az:items-center az:gap-2 az:border az:[font:inherit] az:text-sm az:font-semibold az:transition-[background,border-color,color,box-shadow] az:duration-160 az:ease az:focus-visible:outline-none az:focus-visible:shadow-[0_0_0_1px_var(--az-color-addon-accent),0_0_0_4px_var(--az-color-addon-accent-bg)]`;function Di(e,t){return`${e}-${U(t)}-tab`}function Oi(e,t){return`${e}-${U(t)}-panel`}function ki({active:e,disabled:t,indicatorWeight:n,orientation:r,selectionStyle:i,scrollable:a,stretch:o,variant:s}){let c=r===`vertical`;return H(Ei,t?`az:cursor-not-allowed az:opacity-[0.48]`:`az:cursor-pointer`,c||o&&!a?`az:w-full`:``,!c&&o&&!a?`az:flex-1`:``,s===`line`?H(c?n===2?`az:-ml-px az:justify-start az:rounded-none az:border-y-0 az:border-r-0 az:border-l-2 az:bg-transparent az:px-3 az:py-2.5 az:text-left`:`az:-ml-px az:justify-start az:rounded-none az:border-y-0 az:border-r-0 az:border-l az:bg-transparent az:px-3 az:py-2.5 az:text-left`:n===2?`az:-mb-px az:justify-center az:rounded-none az:border-x-0 az:border-t-0 az:border-b-2 az:bg-transparent az:px-1 az:py-3 az:whitespace-nowrap`:`az:-mb-px az:justify-center az:rounded-none az:border-x-0 az:border-t-0 az:border-b az:bg-transparent az:px-1 az:py-3 az:whitespace-nowrap`,e?`az:border-addon-accent-border az:text-addon-accent`:`az:border-transparent az:text-addon-muted az:hover:border-addon-border az:hover:text-addon-text`):s===`button`?H(`az:relative az:-mb-px az:justify-center az:rounded-t-2xl az:border-b-0 az:px-3.5 az:py-2.5 az:whitespace-nowrap`,e?i===`fill`?`az:z-10 az:border-addon-border az:bg-addon-accent-bg az:text-addon-text`:`az:z-10 az:border-addon-border az:bg-addon-surface-hover az:text-addon-text`:`az:border-transparent az:bg-transparent az:text-addon-muted az:hover:bg-addon-surface-hover az:hover:text-addon-text`):H(c?`az:justify-start az:rounded-2xl az:px-3.5 az:py-3 az:text-left`:`az:justify-center az:rounded-2xl az:px-3.5 az:py-2.5 az:whitespace-nowrap`,e?i===`fill`?`az:border-addon-accent-border az:bg-addon-accent-bg az:text-addon-text`:`az:border-addon-accent-border az:bg-transparent az:text-addon-text`:`az:border-addon-border-subtle az:bg-addon-surface-dark az:text-addon-muted az:hover:bg-addon-surface-hover az:hover:text-addon-text`))}function Ai(e,t,n){let r=e.closest(`[role="tablist"]`);if(!r)return null;let i=Array.from(r.querySelectorAll(`[role="tab"]`)).filter(e=>!e.disabled),a=i.indexOf(e);return a===-1||i.length===0?null:n===`Home`?i[0]??null:n===`End`?i.at(-1)??null:t===`horizontal`?n!==`ArrowRight`&&n!==`ArrowLeft`?null:i[((n===`ArrowRight`?a+1:a-1)+i.length)%i.length]??null:n!==`ArrowDown`&&n!==`ArrowUp`?null:i[((n===`ArrowDown`?a+1:a-1)+i.length)%i.length]??null}function U(e){return String(e).trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`tab`}var ji=(0,l.createContext)(null),Mi=(0,l.forwardRef)(function({className:e,disabled:t=!1,onClick:n,onKeyDown:r,type:i=`button`,value:a,...o},s){let c=Ni(`Tab`),l=c.value===a;function u(e){n?.(e),!(e.defaultPrevented||t||l)&&c.onSelect(a)}function d(e){if(r?.(e),e.defaultPrevented)return;let t=Ai(e.currentTarget,c.orientation,e.key);t&&(e.preventDefault(),t.focus(),t.click())}return(0,p.jsx)(`button`,{...o,"aria-controls":Oi(c.baseId,a),"aria-selected":l,className:H(ki({active:l,disabled:t,indicatorWeight:c.indicatorWeight,orientation:c.orientation,selectionStyle:c.selectionStyle,scrollable:c.scrollable,stretch:c.stretch,variant:c.variant}),e),"data-selected":l,disabled:t,id:Di(c.baseId,a),onClick:u,onKeyDown:d,ref:s,role:`tab`,tabIndex:l?0:-1,type:i})});Mi.displayName=Ti;function Ni(e){let t=(0,l.useContext)(ji);if(!t)throw Error(`${e} must be used inside <Tabs>.`);return t}var Pi=`az:inline-flex az:size-7 az:shrink-0 az:items-center az:justify-center az:rounded-full az:border-0 az:bg-transparent az:p-0 az:[font:inherit] az:leading-none az:cursor-pointer az:transition-colors az:duration-160 az:ease disabled:az:cursor-not-allowed disabled:az:opacity-60`;`${Pi}`,`${Pi}`;var Fi=(0,l.createContext)(null),Ii={small:`az:min-h-8 az:px-2.5 az:text-xs`,medium:`az:min-h-9 az:px-3 az:text-sm`,large:`az:min-h-10 az:px-4 az:text-sm`};(0,l.forwardRef)(function({className:e,disabled:t=!1,onChange:n,onClick:r,selected:i=!1,size:a,type:o=`button`,value:s,...c},u){let d=(0,l.useContext)(Fi),f=d!==null,m=t||d?.disabled||!1,h=d?d.isSelected(s):i,g=a??d?.size??`medium`;function _(e){r?.(e),!e.defaultPrevented&&(d?.onItemSelect?.(e,s),n?.(e,!h))}let v=[`az:relative az:inline-flex az:min-w-0 az:items-center az:justify-center az:gap-1.5 az:whitespace-nowrap az:[font:inherit] az:font-semibold az:transition-[background,color,box-shadow,opacity] az:duration-160 az:ease az:focus-visible:outline-none az:focus-visible:shadow-[0_0_0_1px_var(--az-color-addon-accent),0_0_0_4px_var(--az-color-addon-accent-bg)]`,Ii[g],f?`az:rounded-none az:border-0`:`az:rounded-xl az:border`,h?f?`az:bg-addon-accent-bg az:text-addon-text`:`az:border-addon-border az:bg-addon-accent-bg az:text-addon-text`:f?`az:bg-transparent az:text-addon-muted az:hover:bg-addon-surface-hover az:hover:text-addon-text`:`az:border-addon-border az:bg-addon-surface-dark az:text-addon-muted az:hover:border-addon-border-subtle az:hover:bg-addon-surface-hover az:hover:text-addon-text`,m?`az:cursor-not-allowed az:opacity-[0.48]`:`az:cursor-pointer`,d?.fullWidth?d.orientation===`vertical`?`az:w-full`:`az:flex-1`:``,e].filter(Boolean).join(` `);return(0,p.jsx)(`button`,{...c,"aria-pressed":h,className:v,disabled:m,onClick:_,ref:u,type:o,value:s})});var Li=`az:w-full az:border az:border-addon-accent-border az:bg-addon-surface az:text-addon-text az:[font:inherit] az:placeholder:text-addon-placeholder az:focus:outline-none az:focus:border-[rgba(255,179,71,0.7)] az:focus:shadow-[0_0_0_1px_rgba(255,179,71,0.35)] az:resize-y`,Ri={small:`az:py-1.5 az:px-2.5 az:text-xs az:rounded-lg az:min-h-12`,medium:`az:py-2 az:px-3 az:text-sm az:rounded-xl az:min-h-14`,large:`az:py-3 az:px-3.5 az:text-base az:rounded-2xl az:min-h-16`};function zi({className:e,size:t=`medium`,...n}){let r=Ri[t];return(0,p.jsx)(`textarea`,{className:e?`${Li} ${r} ${e}`:`${Li} ${r}`,...n})}async function Bi(e){if(e.status===204)return;let t=await e.json().catch(()=>({}));if(!e.ok){let n=typeof t==`object`&&t&&`error`in t&&typeof t.error==`string`?t.error:`Request failed (${e.status})`;throw Error(n)}return t}function Vi(e){let t=()=>{let t={Accept:`application/json`,"Content-Type":`application/json`};return e&&(t.Authorization=`Bearer ${e}`),t};return{async getHealth(){return Bi(await fetch(`/api/health`,{headers:t()}))},async listItems(){return(await Bi(await fetch(`/api/jobs`,{headers:t()}))).items},async listHandlers(){return(await Bi(await fetch(`/api/handlers`,{headers:t()}))).handlers},async createJob(e){await Bi(await fetch(`/api/jobs`,{method:`POST`,headers:t(),body:JSON.stringify({name:e.name,handlerKey:e.handlerKey,expression:e.expression,timezone:e.timezone,config:e.config,enabled:e.enabled})}))},async pauseJob(e){await Bi(await fetch(`/api/jobs/${encodeURIComponent(e)}/pause`,{method:`POST`,headers:t()}))},async resumeJob(e){await Bi(await fetch(`/api/jobs/${encodeURIComponent(e)}/resume`,{method:`POST`,headers:t()}))},async runJob(e){await Bi(await fetch(`/api/jobs/${encodeURIComponent(e)}/run`,{method:`POST`,headers:t()}))},async deleteJob(e){await Bi(await fetch(`/api/jobs/${encodeURIComponent(e)}`,{method:`DELETE`,headers:t()}))},async listExecutions(e){return(await Bi(await fetch(`/api/jobs/${encodeURIComponent(e)}/executions`,{headers:t()}))).executions},async retryExecution(e){await Bi(await fetch(`/api/executions/${encodeURIComponent(e)}/retry`,{method:`POST`,headers:t()}))}}}var Hi={name:``,handlerKey:``,expression:`* * * * *`,timezone:`UTC`,config:`{}`,enabled:!0};function Ui(e){try{return JSON.stringify(e,null,2)}catch{return`{}`}}function Wi({api:e}){let t=pi(),[n,r]=(0,l.useState)(null),[i,a]=(0,l.useState)([]),[o,s]=(0,l.useState)([]),[c,u]=(0,l.useState)(Hi),[d,f]=(0,l.useState)(null),[m,h]=(0,l.useState)(null),[g,_]=(0,l.useState)([]),[v,y]=(0,l.useState)(null),b=async()=>{try{let[t,n,i]=await Promise.all([e.getHealth(),e.listItems(),e.listHandlers()]);r(t),a(n),s(i),f(null),u(e=>e.handlerKey||i.length===0?e:{...e,handlerKey:i[0]??``})}catch(e){let t=e instanceof Error?e.message:`Could not load jobs.`;f(t)}};(0,l.useEffect)(()=>{b()},[e]);let x=async(e,n)=>{try{await e(),t.push({type:`success`,message:n}),await b()}catch(e){t.push({type:`error`,message:e instanceof Error?e.message:`Request failed.`})}},S=async n=>{h(n);try{_(await e.listExecutions(n))}catch(e){t.push({type:`error`,message:e instanceof Error?e.message:`Could not load executions.`}),_([])}},C=i.find(e=>e.jobId===m);return(0,p.jsxs)(br,{spacing:24,children:[(0,p.jsx)(wr,{component:`h1`,variant:`h4`,children:`Scheduler dashboard`}),n?(0,p.jsxs)(br,{alignItems:`center`,"data-testid":`jobs-health`,direction:`row`,spacing:8,wrap:`wrap`,children:[(0,p.jsxs)(Ir,{variant:`accent`,children:[n.totalJobs,` jobs`]}),(0,p.jsxs)(Ir,{variant:`success`,children:[n.enabledJobs,` enabled`]}),(0,p.jsxs)(Ir,{variant:`warning`,children:[n.pausedJobs,` paused`]}),(0,p.jsxs)(Ir,{variant:`danger`,children:[n.failedExecutions,` failed runs`]})]}):null,d?(0,p.jsx)(wr,{color:`error`,role:`alert`,children:d}):null,(0,p.jsxs)(`section`,{children:[(0,p.jsx)(wr,{component:`h2`,variant:`h6`,children:`Create schedule`}),(0,p.jsx)(`form`,{onSubmit:t=>{t.preventDefault(),x(async()=>{if(!c.name.trim()||!c.handlerKey.trim())throw Error(`Name and handler are required.`);await e.createJob(c),u({...Hi,handlerKey:c.handlerKey})},`Job created.`)},children:(0,p.jsxs)(br,{spacing:12,children:[(0,p.jsx)(ti,{label:`Name`,children:(0,p.jsx)(Kr,{name:`name`,onChange:e=>u(t=>({...t,name:e.target.value})),value:c.name})}),(0,p.jsx)(ti,{label:`Handler`,children:o.length>0?(0,p.jsx)(Hr,{name:`handlerKey`,onChange:e=>u(t=>({...t,handlerKey:e.target.value})),value:c.handlerKey,children:o.map(e=>(0,p.jsx)(`option`,{value:e,children:e},e))}):(0,p.jsx)(Kr,{name:`handlerKey`,onChange:e=>u(t=>({...t,handlerKey:e.target.value})),value:c.handlerKey})}),(0,p.jsxs)(br,{direction:`row`,spacing:12,children:[(0,p.jsx)(ti,{label:`Cron expression`,children:(0,p.jsx)(Kr,{name:`expression`,onChange:e=>u(t=>({...t,expression:e.target.value})),value:c.expression})}),(0,p.jsx)(ti,{label:`Timezone`,children:(0,p.jsx)(Kr,{name:`timezone`,onChange:e=>u(t=>({...t,timezone:e.target.value})),value:c.timezone})})]}),(0,p.jsx)(ti,{label:`Config (JSON)`,children:(0,p.jsx)(zi,{name:`config`,onChange:e=>u(t=>({...t,config:e.target.value})),rows:4,value:c.config})}),(0,p.jsx)(vr,{type:`submit`,children:`Create job`})]})})]}),(0,p.jsxs)(`section`,{children:[(0,p.jsx)(wr,{component:`h2`,variant:`h6`,children:`Scheduled jobs`}),i.length===0?(0,p.jsx)($r,{description:`No scheduled jobs yet.`,title:`No jobs`}):(0,p.jsx)(qr,{children:i.map(t=>(0,p.jsx)(Jr,{secondaryAction:(0,p.jsxs)(br,{direction:`row`,spacing:8,children:[(0,p.jsx)(vr,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void S(t.jobId),children:`Runs`}),(0,p.jsx)(vr,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(()=>e.runJob(t.jobId),`Run queued.`),children:`Run now`}),t.enabled?(0,p.jsx)(vr,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(()=>e.pauseJob(t.jobId),`Paused.`),children:`Pause`}):(0,p.jsx)(vr,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(()=>e.resumeJob(t.jobId),`Resumed.`),children:`Resume`}),(0,p.jsx)(vr,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>y(t.jobId),children:`Delete`})]}),children:(0,p.jsx)(Yr,{primary:t.name,secondary:`${t.enabled?`enabled`:`paused`} · ${t.handlerKey} · ${t.schedule.expression} · ${t.schedule.timezone}${t.nextRunAt?` · next ${t.nextRunAt}`:``}`})},t.jobId))})]}),C?(0,p.jsxs)(`section`,{children:[(0,p.jsx)(wr,{component:`h2`,variant:`h6`,children:`Recent executions`}),(0,p.jsx)(wr,{color:`muted`,variant:`body2`,children:C.name}),g.length===0?(0,p.jsx)($r,{description:`No executions recorded yet.`,title:`No runs`}):(0,p.jsx)(qr,{children:g.map(t=>(0,p.jsx)(Jr,{secondaryAction:t.status===`failed`||t.status===`dead-letter`?(0,p.jsx)(vr,{size:`sm`,type:`button`,variant:`secondary`,onClick:()=>void x(async()=>{await e.retryExecution(t.executionId),await S(t.jobId)},`Retry queued.`),children:`Retry`}):null,children:(0,p.jsx)(Yr,{primary:`${t.status} · ${t.triggeredAt}`,secondary:t.lastError?t.lastError:Ui(C.config)})},t.executionId))})]}):null,v?(0,p.jsx)(Xr,{footer:(0,p.jsxs)(br,{direction:`row`,justifyContent:`end`,spacing:8,children:[(0,p.jsx)(vr,{type:`button`,variant:`secondary`,onClick:()=>y(null),children:`Cancel`}),(0,p.jsx)(vr,{type:`button`,onClick:()=>{let t=v;y(null),x(()=>e.deleteJob(t),`Deleted.`)},children:`Delete`})]}),title:`Delete job`,onClose:()=>y(null),children:(0,p.jsx)(wr,{children:`Delete this scheduled job? This cannot be undone.`})}):null]})}var Gi=`azlibSchedulerDashboardToken`;function Ki(){let e=new URLSearchParams(window.location.search).get(`token`);return e?.trim()?e.trim():window.sessionStorage.getItem(Gi)??``}function qi(){let[e,t]=(0,l.useState)(Ki),[n,r]=(0,l.useState)(e),[i,a]=(0,l.useState)(!1),o=(0,l.useMemo)(()=>Vi(e||void 0),[e]);return(0,p.jsx)(Qn,{children:(0,p.jsx)(mi,{children:(0,p.jsx)(`main`,{style:{margin:`0 auto`,maxWidth:960,padding:24},children:i?(0,p.jsxs)(br,{spacing:12,children:[(0,p.jsx)(wr,{component:`h1`,variant:`h4`,children:`Scheduler dashboard`}),(0,p.jsx)(wr,{color:`muted`,children:`This dashboard requires a bearer token.`}),(0,p.jsx)(`form`,{onSubmit:e=>{e.preventDefault();let r=n.trim();window.sessionStorage.setItem(Gi,r),t(r),a(!1)},children:(0,p.jsxs)(br,{spacing:12,children:[(0,p.jsx)(ti,{label:`Dashboard token`,children:(0,p.jsx)(Kr,{name:`token`,onChange:e=>r(e.target.value),type:`password`,value:n})}),(0,p.jsx)(vr,{type:`submit`,children:`Continue`})]})})]}):(0,p.jsx)(Wi,{api:{...o,getHealth:async()=>{try{return await o.getHealth()}catch(e){throw e instanceof Error&&e.message===`Unauthorized`&&a(!0),e}}}})})})})}var Ji=document.getElementById(`root`);if(!Ji)throw Error(`Missing #root element`);(0,u.createRoot)(Ji).render((0,p.jsx)(l.StrictMode,{children:(0,p.jsx)(qi,{})}));
|