@seedtactics/insight-client 17.0.11 → 17.1.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/dist/assets/index-UxwWou4m.js +92 -0
- package/dist/assets/rolldown-runtime-XKyaHtl9.js +1 -0
- package/dist/assets/vendor-DxpZ1E10.js +275 -0
- package/dist/components/operations/Rebookings.js +10 -11
- package/dist/fms-insight-api.json +1 -1
- package/dist/index.html +4 -2
- package/dist/network/api.js +1 -1
- package/package.json +6 -6
- package/dist/assets/index-BKr-hck2.js +0 -366
- /package/dist/assets/{index-DXfAwuj-.css → vendor-DXfAwuj-.css} +0 -0
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
import{n as e,r as t,t as n}from"./rolldown-runtime-XKyaHtl9.js";var r=0;function i(e,t){let n=`atom${++r}`,i={toString(){return n}};return typeof e==`function`?i.read=e:(i.init=e,i.read=a,i.write=o),t&&(i.write=t),i}function a(e){return e(this)}function o(e,t,n){return t(this,typeof n==`function`?n(e(this)):n)}function s(e){return`init`in e}function c(e){return typeof e.write==`function`}function l(e){return!!e.onMount}function u(e){return`v`in e||`e`in e}function d(e){if(`e`in e)throw e.e;return e.v}function f(e){return typeof e?.then==`function`}function p(e){if(!(e instanceof Error))return!1;let t=e.name,n=e.message.toLowerCase();return(t===`RangeError`||t===`InternalError`)&&(n.includes(`call stack`)||n.includes(`too much recursion`)||n.includes(`stack overflow`))}function m(e,t,n){if(!n.p.has(e)){n.p.add(e);let r=()=>n.p.delete(e);t.then(r,r)}}function h(e,t,n){let r=n.get(e)?.t,i=t.p;if(!r?.size)return i;if(!i.size)return r;let a=new Set(r);for(let e of i)a.add(e);return a}function g(e){return!!e.INTERNAL_onInit}var _=(e,t,n,...r)=>n.read(...r),v=(e,t,n,...r)=>n.write(...r),y=(e,t,n)=>n.INTERNAL_onInit(t),b=(e,t,n,r)=>n.onMount?.(r),x=(e,t,n)=>{let r=e.a,i=r.get(n);if(!i){let a=e.h,o=e.I;i={d:new Map,p:new Set,n:0},r.set(n,i),a.i?.(n),g(n)&&o(e,t,n)}return i},S=(e,t)=>{let n=e.m,r=e.c,i=e.q,a=e.Q,o=e.h,s=e.C;if(!o.f&&!r.size&&!i.size&&!a.size)return;let c=[],l=e=>{try{e()}catch(e){c.push(e)}};do{o.f&&l(o.f);let c=new Set;for(let e of r){let t=n.get(e)?.l;if(t)for(let e of t)c.add(e)}r.clear();for(let e of a)c.add(e);a.clear();for(let e of i)c.add(e);i.clear();for(let e of c)l(e);r.size&&s(e,t)}while(r.size||a.size||i.size);if(c.length)throw typeof AggregateError==`function`?AggregateError(c):Object.assign(Error(),{errors:c})},C=(e,t)=>{let n=e.m,r=e.i,i=e.c,a=e.e,o=e.r,s=e.D;if(!i.size)return;let c=[],l=[],u=new WeakSet,d=new WeakSet,f=[],p=[];for(let n of i)f.push(n),p.push(a(e,t,n));for(;f.length;){let i=f.length-1,o=f[i],s=p[i];if(d.has(o))f.pop(),p.pop();else if(u.has(o))r.get(o)===s.n&&(c.push(o),l.push(s)),d.add(o),f.pop(),p.pop();else{u.add(o);for(let r of h(o,s,n))u.has(r)||(f.push(r),p.push(a(e,t,r)))}}for(let n=c.length-1;n>=0;--n){let a=c[n],u=l[n],d=!1;for(let e of u.d.keys())if(e!==a&&i.has(e)){d=!0;break}d&&(r.set(a,u.n),o(e,t,a),s(e,t,a)),r.delete(a)}},w=(e,t,n)=>{let r=e.m,i=e.i,a=e.c,o=e.h,c=e.R,l=e.e,h=e.f,g=e.C,_=e.r,v=e.D,y=e.v,b=e.H,x=e.E,S=l(e,t,n),C=x[0];if(u(S)){if(r.has(n)&&i.get(n)!==S.n||S.m===C)return S.m=C,S;let a=!1;for(let[n,r]of S.d)if(_(e,t,n).n!==r){a=!0;break}if(!a)return S.m=C,S}let w=!0,T=new Set(S.d.keys()),E=()=>{for(let e of T)S.d.delete(e)},D=()=>{if(r.has(n)){let r=!a.size;v(e,t,n),r&&(g(e,t),h(e,t))}},O=i=>{if(i===n){let n=l(e,t,i);if(!u(n)){if(s(i))y(e,t,i,i.init);else throw Error(`no atom init`)}return d(n)}let a=_(e,t,i);try{return d(a)}finally{T.delete(i),S.d.set(i,a.n),f(S.v)&&m(n,S.v,a),r.has(n)&&r.get(i)?.t.add(n),w||D()}},k,ee={get signal(){return k||=new AbortController,k.signal}},A=S.n,j=i.get(n)===A;try{let r=c(e,t,n,O,ee);if(y(e,t,n,r),f(r)){b(e,t,r,()=>k?.abort());let n=()=>{E(),D()};r.then(n,n)}else E();return o.r?.(n),S.m=C,S}catch(e){if(p(e))throw e;return delete S.v,S.e=e,++S.n,S.m=C,S}finally{w=!1,S.n!==A&&j&&(i.set(n,S.n),a.add(n),o.c?.(n))}},T=(e,t,n)=>{let r=e.m,i=e.i,a=e.e,o=[n];for(;o.length;){let n=o.pop(),s=a(e,t,n);for(let c of h(n,s,r)){let n=a(e,t,c);i.get(c)!==n.n&&(i.set(c,n.n),o.push(c))}}},E=(e,t,n,r)=>{let i=e.c,a=e.h,o=e.W,c=e.e,l=e.f,u=e.C,f=e.r,p=e.d,m=e.w,h=e.D,g=e.v,_=e.E,v=!0,y=n=>d(f(e,t,n)),b=(r,...o)=>{let d=c(e,t,r);try{if(r===n){if(!s(r))throw Error(`atom not writable`);let n=d.n,c=o[0];g(e,t,r,c),h(e,t,r),n!==d.n&&(++_[0],i.add(r),p(e,t,r),a.c?.(r));return}return m(e,t,r,o)}finally{v||(u(e,t),l(e,t))}};try{return o(e,t,n,y,b,...r)}finally{v=!1}},D=(e,t,n)=>{let r=e.m,i=e.c,a=e.h,o=e.e,s=e.d,c=e.t,l=e.T,u=o(e,t,n),d=r.get(n);if(d){for(let[r,l]of u.d)if(!d.d.has(r)){let u=o(e,t,r);c(e,t,r).t.add(n),d.d.add(r),l!==u.n&&(i.add(r),s(e,t,r),a.c?.(r))}for(let r of d.d)u.d.has(r)||(d.d.delete(r),l(e,t,r)?.t.delete(n))}},O=(e,t,n)=>{let r=e.m,i=e.q,a=e.h,o=e.M,s=e.e,u=e.f,d=e.C,f=e.r,p=e.w,m=e.t,h=s(e,t,n),g=r.get(n);if(!g){f(e,t,n);for(let r of h.d.keys())m(e,t,r).t.add(n);g={l:new Set,d:new Set(h.d.keys()),t:new Set},r.set(n,g),c(n)&&l(n)&&i.add(()=>{let r=!0,i=(...i)=>{try{return p(e,t,n,i)}finally{r||(d(e,t),u(e,t))}};try{let a=o(e,t,n,i);a&&(g.u=()=>{r=!0;try{a()}finally{r=!1}})}finally{r=!1}}),a.m?.(n)}return g},k=(e,t,n)=>{let r=e.m,i=e.Q,a=e.h,o=e.e,s=e.T,c=o(e,t,n),l=r.get(n);if(!l||l.l.size)return l;let u=!1;for(let e of l.t)if(r.get(e)?.d.has(n)){u=!0;break}if(u)return l;l.u&&i.add(l.u),l=void 0,r.delete(n);for(let r of c.d.keys())s(e,t,r)?.t.delete(n);a.u?.(n)},ee=(e,t,n,r)=>{let i=e.e,a=e.A,o=i(e,t,n),s=`v`in o,c=o.v;if(f(r))for(let a of o.d.keys())m(n,r,i(e,t,a));o.v=r,delete o.e,s&&Object.is(c,o.v)||(++o.n,f(c)&&a(e,t,c))},A=(e,t,n)=>{let r=e.r;return d(r(e,t,n))},j=(e,t,n,...r)=>{let i=e.c,a=e.f,o=e.C,s=e.w,c=i.size;try{return s(e,t,n,r)}finally{i.size!==c&&(o(e,t),a(e,t))}},M=(e,t,n,r)=>{let i=e.f,a=e.C,o=e.t,s=e.T,c=o(e,t,n).l;return c.add(r),a(e,t),i(e,t),()=>{c.delete(r),s(e,t,n),a(e,t),i(e,t)}},te=(e,t,n,r)=>{let i=e.p,a=i.get(n);if(!a){a=new Set,i.set(n,a);let e=()=>i.delete(n);n.then(e,e)}a.add(r)},ne=(e,t,n)=>{e.p.get(n)?.forEach(e=>e())},N=new WeakMap;function P(e){let t=N.get(e),n=t.B;return n?n(t,e):t}function re(e){let t={get(e){return r(n,t,e)},set(e,...r){return i(n,t,e,...r)},sub(e,r){return a(n,t,e,r)}},n=Object.freeze({a:new WeakMap,m:new WeakMap,i:new WeakMap,c:new Set,q:new Set,Q:new Set,h:{},R:_,W:v,I:y,M:b,e:x,f:S,C,r:w,d:T,w:E,D,t:O,T:k,v:ee,g:A,s:j,b:M,B:void 0,p:new WeakMap,H:te,A:ne,E:[0],...e});N.set(t,n);let r=n.g,i=n.s,a=n.b;return t}function F(){return re()}var I;function ie(){return I||=F(),I}var L=n((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.for(`react.view_transition`),m=Symbol.iterator;function h(e){return typeof e!=`object`||!e?null:(e=m&&e[m]||e[`@@iterator`],typeof e==`function`?e:null)}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_=Object.assign,v={};function y(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}y.prototype.isReactComponent={},y.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`)},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function b(){}b.prototype=y.prototype;function x(e,t,n){this.props=e,this.context=t,this.refs=v,this.updater=n||g}var S=x.prototype=new b;S.constructor=x,_(S,y.prototype),S.isPureReactComponent=!0;var C=Array.isArray;function w(){}var T={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function D(e,n,r){var i=r.ref;return{$$typeof:t,type:e,key:n,ref:i===void 0?null:i,props:r}}function O(e,t){return D(e.type,t,e.props)}function k(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function ee(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var A=/\/+/g;function j(e,t){return typeof e==`object`&&e&&e.key!=null?ee(``+e.key):t.toString(36)}function M(e){switch(e.status){case`fulfilled`:return e.value;case`rejected`:throw e.reason;default:switch(typeof e.status==`string`?e.then(w,w):(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 te(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,te(c(e._payload),r,i,a,o)}}if(c)return o=o(e),c=a===``?`.`+j(e,0):a,C(o)?(i=``,c!=null&&(i=c.replace(A,`$&/`)+`/`),te(o,r,i,``,function(e){return e})):o!=null&&(k(o)&&(o=O(o,i+(o.key==null||e&&e.key===o.key?``:(``+o.key).replace(A,`$&/`)+`/`)+c)),r.push(o)),1;c=0;var l=a===``?`.`:a+`:`;if(C(e))for(var u=0;u<e.length;u++)a=e[u],s=l+j(a,u),c+=te(a,r,i,s,o);else if(u=h(e),typeof u==`function`)for(e=u.call(e),u=0;!(a=e.next()).done;)a=a.value,s=l+j(a,u++),c+=te(a,r,i,s,o);else if(s===`object`){if(typeof e.then==`function`)return te(M(e),r,i,a,o);throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`)}return c}function ne(e,t,n){if(e==null)return e;var r=[],i=0;return te(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function N(e){if(e._status===-1){var t=e._result,n=t();n.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t,n.status===void 0&&(n.status=`fulfilled`,n.value=t))},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t,n.status===void 0&&(n.status=`rejected`,n.reason=t))}),e._status===-1&&(e._status=0,e._result=n)}if(e._status===1)return e._result.default;throw e._result}var P=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)};function re(e){var t=T.T,n={};n.types=t===null?null:t.types,T.T=n;try{var r=e(),i=T.S;i!==null&&i(n,r),typeof r==`object`&&r&&typeof r.then==`function`&&r.then(w,P)}catch(e){P(e)}finally{t!==null&&n.types!==null&&(t.types=n.types),T.T=t}}function F(e){var t=T.T;if(t!==null){var n=t.types;n===null?t.types=[e]:n.indexOf(e)===-1&&n.push(e)}else re(F.bind(null,e))}var I={map:ne,forEach:function(e,t,n){ne(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return ne(e,function(){t++}),t},toArray:function(e){return ne(e,function(e){return e})||[]},only:function(e){if(!k(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}};e.Activity=f,e.Children=I,e.Component=y,e.Fragment=r,e.Profiler=a,e.PureComponent=x,e.StrictMode=i,e.Suspense=l,e.ViewTransition=p,e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=T,e.__COMPILER_RUNTIME={__proto__:null,c:function(e){return T.H.useMemoCache(e)}},e.addTransitionType=F,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=_({},e.props),i=e.key;if(t!=null)for(a in t.key!==void 0&&(i=``+t.key),t)!E.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 D(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)E.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 D(e,a,i)},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=k,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:N}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=re,e.unstable_useCacheRefresh=function(){return T.H.useCacheRefresh()},e.use=function(e){return T.H.use(e)},e.useActionState=function(e,t,n){return T.H.useActionState(e,t,n)},e.useCallback=function(e,t){return T.H.useCallback(e,t)},e.useContext=function(e){return T.H.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e,t){return T.H.useDeferredValue(e,t)},e.useEffect=function(e,t){return T.H.useEffect(e,t)},e.useEffectEvent=function(e){return T.H.useEffectEvent(e)},e.useId=function(){return T.H.useId()},e.useImperativeHandle=function(e,t,n){return T.H.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return T.H.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return T.H.useLayoutEffect(e,t)},e.useMemo=function(e,t){return T.H.useMemo(e,t)},e.useOptimistic=function(e,t){return T.H.useOptimistic(e,t)},e.useReducer=function(e,t,n){return T.H.useReducer(e,t,n)},e.useRef=function(e){return T.H.useRef(e)},e.useState=function(e){return T.H.useState(e)},e.useSyncExternalStore=function(e,t,n){return T.H.useSyncExternalStore(e,t,n)},e.useTransition=function(){return T.H.useTransition()},e.version=`19.3.1`})),R=n(((e,t)=>{t.exports=L()})),z=t(R(),1),ae=(0,z.createContext)(void 0);function oe(e){let t=(0,z.useContext)(ae);return e?.store||t||ie()}function se({children:e,store:t}){let n=(0,z.useRef)(null);return t?(0,z.createElement)(ae.Provider,{value:t},e):(n.current===null&&(n.current=F()),(0,z.createElement)(ae.Provider,{value:n.current},e))}var ce=e=>typeof e?.then==`function`,B=new WeakMap,le=(e,t,n)=>{let r=P(e),i=r.H,a=B.get(t);return a||(a=new Promise((o,s)=>{let c=t,l=e=>t=>{c===e&&o(t)},u=e=>t=>{c===e&&s(t)},d=()=>{try{let t=n();ce(t)?(B.set(t,a),c=t,t.then(l(t),u(t)),i(r,e,t,d)):o(t)}catch(e){s(e)}};t.then(l(t),u(t)),i(r,e,t,d)}),B.set(t,a)),a},V=(e,t,n)=>[n,e,t,r=>{let i=e.sub(t,r),a=!0;try{a=!Object.is(n,e.get(t))}catch{}return a&&r(),i}];function ue(e,t){let n=oe(t),[[r,i,a,o],s]=(0,z.useReducer)(t=>{let r=n.get(e);return t[1]===n&&t[2]===e?Object.is(t[0],r)?t:[r,n,e,t[3]]:V(n,e,r)},void 0,()=>V(n,e,n.get(e))),c=r;return(i!==n||a!==e)&&(s(),c=n.get(e)),(0,z.useEffect)(()=>o(s),[o]),(0,z.useDebugValue)(c),ce(c)?le(n,c,()=>n.get(e)):c}var de=e=>{e.status||(e.status=`pending`,e.then(t=>{e.status=`fulfilled`,e.value=t},t=>{e.status=`rejected`,e.reason=t}))},fe=z.use||(e=>{if(e.status===`pending`)throw e;if(e.status===`fulfilled`)return e.value;throw e.status===`rejected`?e.reason:(de(e),e)});function pe(e,t){let{unstable_promiseStatus:n=!z.use}=t||{},r=ue(e,t);return ce(r)?(n&&de(r),fe(r)):r}function me(e,t){let n=oe(t),r=(0,z.useCallback)(()=>{let t=n.get(e);return ce(t)?le(n,t,()=>n.get(e)):t},[n,e]),i=(0,z.useSyncExternalStore)((0,z.useCallback)(t=>n.sub(e,t),[n,e]),r,r);return(0,z.useDebugValue)(i),i}function he(e,t){let n=oe(t);return(0,z.useCallback)((...t)=>n.set(e,...t),[n,e])}function ge(e,t){return[pe(e,t),he(e,t)]}var _e=class extends Error{};_e.prototype.name=`InvalidTokenError`;function ve(e){return decodeURIComponent(atob(e).replace(/(.)/g,(e,t)=>{let n=t.charCodeAt(0).toString(16).toUpperCase();return n.length<2&&(n=`0`+n),`%`+n}))}function ye(e){let t=e.replace(/-/g,`+`).replace(/_/g,`/`);switch(t.length%4){case 0:break;case 2:t+=`==`;break;case 3:t+=`=`;break;default:throw Error(`base64 string is not of the correct length`)}try{return ve(t)}catch{return atob(t)}}function be(e,t){if(typeof e!=`string`)throw new _e(`Invalid token specified: must be a string`);t||={};let n=t.header===!0?0:1,r=e.split(`.`)[n];if(typeof r!=`string`)throw new _e(`Invalid token specified: missing part #${n+1}`);let i;try{i=ye(r)}catch(e){throw new _e(`Invalid token specified: invalid base64 for part #${n+1} (${e.message})`)}try{return JSON.parse(i)}catch(e){throw new _e(`Invalid token specified: invalid json for part #${n+1} (${e.message})`)}}var xe={debug:()=>void 0,info:()=>void 0,warn:()=>void 0,error:()=>void 0},Se,Ce,we=(e=>(e[e.NONE=0]=`NONE`,e[e.ERROR=1]=`ERROR`,e[e.WARN=2]=`WARN`,e[e.INFO=3]=`INFO`,e[e.DEBUG=4]=`DEBUG`,e))(we||{});(e=>{function t(){Se=3,Ce=xe}e.reset=t;function n(e){if(!(0<=e&&e<=4))throw Error(`Invalid log level`);Se=e}e.setLevel=n;function r(e){Ce=e}e.setLogger=r})(we||={});var Te=class e{constructor(e){this._name=e}debug(...t){Se>=4&&Ce.debug(e._format(this._name,this._method),...t)}info(...t){Se>=3&&Ce.info(e._format(this._name,this._method),...t)}warn(...t){Se>=2&&Ce.warn(e._format(this._name,this._method),...t)}error(...t){Se>=1&&Ce.error(e._format(this._name,this._method),...t)}throw(e){throw this.error(e),e}create(e){let t=Object.create(this);return t._method=e,t.debug(`begin`),t}static createStatic(t,n){let r=new e(`${t}.${n}`);return r.debug(`begin`),r}static _format(e,t){let n=`[${e}]`;return t?`${n} ${t}:`:n}static debug(t,...n){Se>=4&&Ce.debug(e._format(t),...n)}static info(t,...n){Se>=3&&Ce.info(e._format(t),...n)}static warn(t,...n){Se>=2&&Ce.warn(e._format(t),...n)}static error(t,...n){Se>=1&&Ce.error(e._format(t),...n)}};we.reset();var Ee=class{static decode(e){try{return be(e)}catch(e){throw Te.error(`JwtUtils.decode`,e),e}}static async generateSignedJwt(e,t,n){let r=`${Ae.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${Ae.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`,i=await window.crypto.subtle.sign({name:`ECDSA`,hash:{name:`SHA-256`}},n,new TextEncoder().encode(r));return`${r}.${Ae.encodeBase64Url(new Uint8Array(i))}`}static async generateSignedJwtWithHmac(e,t,n){let r=`${Ae.encodeBase64Url(new TextEncoder().encode(JSON.stringify(e)))}.${Ae.encodeBase64Url(new TextEncoder().encode(JSON.stringify(t)))}`,i=await window.crypto.subtle.sign(`HMAC`,n,new TextEncoder().encode(r));return`${r}.${Ae.encodeBase64Url(new Uint8Array(i))}`}},De=`10000000-1000-4000-8000-100000000000`,Oe=e=>btoa([...new Uint8Array(e)].map(e=>String.fromCharCode(e)).join(``)),ke=class e{static _randomWord(){let e=new Uint32Array(1);return crypto.getRandomValues(e),e[0]}static generateUUIDv4(){return De.replace(/[018]/g,t=>(+t^e._randomWord()&15>>t/4).toString(16)).replace(/-/g,``)}static generateCodeVerifier(){return e.generateUUIDv4()+e.generateUUIDv4()+e.generateUUIDv4()}static async generateCodeChallenge(e){if(!crypto.subtle)throw Error(`Crypto.subtle is available only in secure contexts (HTTPS).`);try{let t=new TextEncoder().encode(e);return Oe(await crypto.subtle.digest(`SHA-256`,t)).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}catch(e){throw Te.error(`CryptoUtils.generateCodeChallenge`,e),e}}static generateBasicAuth(e,t){return Oe(new TextEncoder().encode([e,t].join(`:`)))}static async hash(e,t){let n=new TextEncoder().encode(t),r=await crypto.subtle.digest(e,n);return new Uint8Array(r)}static async customCalculateJwkThumbprint(t){let n;switch(t.kty){case`RSA`:n={e:t.e,kty:t.kty,n:t.n};break;case`EC`:n={crv:t.crv,kty:t.kty,x:t.x,y:t.y};break;case`OKP`:n={crv:t.crv,kty:t.kty,x:t.x};break;case`oct`:n={crv:t.k,kty:t.kty};break;default:throw Error(`Unknown jwk type`)}let r=await e.hash(`SHA-256`,JSON.stringify(n));return e.encodeBase64Url(r)}static async generateDPoPProof({url:t,accessToken:n,httpMethod:r,keyPair:i,nonce:a}){let o,s,c={jti:window.crypto.randomUUID(),htm:r??`GET`,htu:t,iat:Math.floor(Date.now()/1e3)};n&&(o=await e.hash(`SHA-256`,n),s=e.encodeBase64Url(o),c.ath=s),a&&(c.nonce=a);try{let e=await crypto.subtle.exportKey(`jwk`,i.publicKey),t={alg:`ES256`,typ:`dpop+jwt`,jwk:{crv:e.crv,kty:e.kty,x:e.x,y:e.y}};return await Ee.generateSignedJwt(t,c,i.privateKey)}catch(e){throw e instanceof TypeError?Error(`Error exporting dpop public key: ${e.message}`):e}}static async generateDPoPJkt(t){try{let n=await crypto.subtle.exportKey(`jwk`,t.publicKey);return await e.customCalculateJwkThumbprint(n)}catch(e){throw e instanceof TypeError?Error(`Could not retrieve dpop keys from storage: ${e.message}`):e}}static async generateDPoPKeys(){return await window.crypto.subtle.generateKey({name:`ECDSA`,namedCurve:`P-256`},!1,[`sign`,`verify`])}static async generateClientAssertionJwt(t,n,r,i=`HS256`){let a=Math.floor(Date.now()/1e3),o={alg:i,typ:`JWT`},s={iss:t,sub:t,aud:r,jti:e.generateUUIDv4(),exp:a+300,iat:a},c={HS256:`SHA-256`,HS384:`SHA-384`,HS512:`SHA-512`}[i];if(!c)throw Error(`Unsupported algorithm: ${i}. Supported algorithms are: HS256, HS384, HS512`);let l=new TextEncoder,u=await crypto.subtle.importKey(`raw`,l.encode(n),{name:`HMAC`,hash:c},!1,[`sign`]);return await Ee.generateSignedJwtWithHmac(o,s,u)}};ke.encodeBase64Url=e=>Oe(e).replace(/=/g,``).replace(/\+/g,`-`).replace(/\//g,`_`);var Ae=ke,je=class{constructor(e){this._name=e,this._callbacks=[],this._logger=new Te(`Event('${this._name}')`)}addHandler(e){return this._callbacks.push(e),()=>this.removeHandler(e)}removeHandler(e){let t=this._callbacks.lastIndexOf(e);t>=0&&this._callbacks.splice(t,1)}async raise(...e){this._logger.debug(`raise:`,...e);for(let t of this._callbacks)await t(...e)}},Me=class{static center({...e}){return e.width??=[800,720,600,480].find(e=>e<=window.outerWidth/1.618)??360,e.left??=Math.max(0,Math.round(window.screenX+(window.outerWidth-e.width)/2)),e.height!=null&&(e.top??=Math.max(0,Math.round(window.screenY+(window.outerHeight-e.height)/2))),e}static serialize(e){return Object.entries(e).filter(([,e])=>e!=null).map(([e,t])=>`${e}=${typeof t==`boolean`?t?`yes`:`no`:t}`).join(`,`)}},Ne=class e extends je{constructor(){super(...arguments),this._logger=new Te(`Timer('${this._name}')`),this._timerHandle=null,this._expiration=0,this._callback=()=>{let t=this._expiration-e.getEpochTime();this._logger.debug(`timer completes in`,t),this._expiration<=e.getEpochTime()&&(this.cancel(),super.raise())}}static getEpochTime(){return Math.floor(Date.now()/1e3)}init(t){let n=this._logger.create(`init`);t=Math.max(Math.floor(t),1);let r=e.getEpochTime()+t;if(this.expiration===r&&this._timerHandle){n.debug(`skipping since already initialized for expiration at`,this.expiration);return}this.cancel(),n.debug(`using duration`,t),this._expiration=r;let i=Math.min(t,5);this._timerHandle=setInterval(this._callback,i*1e3)}get expiration(){return this._expiration}cancel(){this._logger.create(`cancel`),this._timerHandle&&=(clearInterval(this._timerHandle),null)}},Pe=class{static readParams(e,t=`query`){if(!e)throw TypeError(`Invalid URL`);let n=new URL(e,`http://127.0.0.1`)[t===`fragment`?`hash`:`search`];return new URLSearchParams(n.slice(1))}},Fe=`;`,Ie=class extends Error{constructor(e,t){if(super(e.error_description||e.error||``),this.form=t,this.name=`ErrorResponse`,!e.error)throw Te.error(`ErrorResponse`,`No error passed`),Error(`No error passed`);this.error=e.error,this.error_description=e.error_description??null,this.error_uri=e.error_uri??null,this.state=e.userState,this.session_state=e.session_state??null,this.url_state=e.url_state}},Le=class extends Error{constructor(e){super(e),this.name=`ErrorTimeout`}},Re=class{constructor(e){this._logger=new Te(`AccessTokenEvents`),this._expiringTimer=new Ne(`Access token expiring`),this._expiredTimer=new Ne(`Access token expired`),this._expiringNotificationTimeInSeconds=e.expiringNotificationTimeInSeconds}async load(e){let t=this._logger.create(`load`);if(e.access_token&&e.expires_in!==void 0){let n=e.expires_in;if(t.debug(`access token present, remaining duration:`,n),n>0){let e=n-this._expiringNotificationTimeInSeconds;e<=0&&(e=1),t.debug(`registering expiring timer, raising in`,e,`seconds`),this._expiringTimer.init(e)}else t.debug(`canceling existing expiring timer because we're past expiration.`),this._expiringTimer.cancel();let r=n+1;t.debug(`registering expired timer, raising in`,r,`seconds`),this._expiredTimer.init(r)}else this._expiringTimer.cancel(),this._expiredTimer.cancel()}async unload(){this._logger.debug(`unload: canceling existing access token timers`),this._expiringTimer.cancel(),this._expiredTimer.cancel()}addAccessTokenExpiring(e){return this._expiringTimer.addHandler(e)}removeAccessTokenExpiring(e){this._expiringTimer.removeHandler(e)}addAccessTokenExpired(e){return this._expiredTimer.addHandler(e)}removeAccessTokenExpired(e){this._expiredTimer.removeHandler(e)}},ze=class{constructor(e,t,n,r,i){this._callback=e,this._client_id=t,this._intervalInSeconds=r,this._stopOnError=i,this._logger=new Te(`CheckSessionIFrame`),this._timer=null,this._session_state=null,this._message=e=>{e.origin===this._frame_origin&&e.source===this._frame.contentWindow&&(e.data===`error`?(this._logger.error(`error message from check session op iframe`),this._stopOnError&&this.stop()):e.data===`changed`?(this._logger.debug(`changed message from check session op iframe`),this.stop(),this._callback()):this._logger.debug(e.data+` message from check session op iframe`))};let a=new URL(n);this._frame_origin=a.origin,this._frame=window.document.createElement(`iframe`),this._frame.style.visibility=`hidden`,this._frame.style.position=`fixed`,this._frame.style.left=`-1000px`,this._frame.style.top=`0`,this._frame.width=`0`,this._frame.height=`0`,this._frame.src=a.href}load(){return new Promise(e=>{this._frame.onload=()=>{e()},window.document.body.appendChild(this._frame),window.addEventListener(`message`,this._message,!1)})}start(e){if(this._session_state===e)return;this._logger.create(`start`),this.stop(),this._session_state=e;let t=()=>{this._frame.contentWindow&&this._session_state&&this._frame.contentWindow.postMessage(this._client_id+` `+this._session_state,this._frame_origin)};t(),this._timer=setInterval(t,this._intervalInSeconds*1e3)}stop(){this._logger.create(`stop`),this._session_state=null,this._timer&&=(clearInterval(this._timer),null)}},Be=class{constructor(){this._logger=new Te(`InMemoryWebStorage`),this._data={}}clear(){this._logger.create(`clear`),this._data={}}getItem(e){return this._logger.create(`getItem('${e}')`),this._data[e]}setItem(e,t){this._logger.create(`setItem('${e}')`),this._data[e]=t}removeItem(e){this._logger.create(`removeItem('${e}')`),delete this._data[e]}get length(){return Object.getOwnPropertyNames(this._data).length}key(e){return Object.getOwnPropertyNames(this._data)[e]}},Ve=class extends Error{constructor(e,t){super(t),this.name=`ErrorDPoPNonce`,this.nonce=e}},He=class{constructor(e=[],t=null,n={}){this._jwtHandler=t,this._extraHeaders=n,this._logger=new Te(`JsonService`),this._contentTypes=[],this._contentTypes.push(...e,`application/json`),t&&this._contentTypes.push(`application/jwt`)}async fetchWithTimeout(e,t={}){let{timeoutInSeconds:n,...r}=t;if(!n)return await fetch(e,r);let i=new AbortController,a=setTimeout(()=>i.abort(),n*1e3);try{return await fetch(e,{...t,signal:i.signal})}catch(e){throw e instanceof DOMException&&e.name===`AbortError`?new Le(`Network timed out`):e}finally{clearTimeout(a)}}async getJson(e,{token:t,credentials:n,timeoutInSeconds:r}={}){let i=this._logger.create(`getJson`),a={Accept:this._contentTypes.join(`, `)};t&&(i.debug(`token passed, setting Authorization header`),a.Authorization=`Bearer `+t),this._appendExtraHeaders(a);let o;try{i.debug(`url:`,e),o=await this.fetchWithTimeout(e,{method:`GET`,headers:a,timeoutInSeconds:r,credentials:n})}catch(e){throw i.error(`Network Error`),e}i.debug(`HTTP response received, status`,o.status);let s=o.headers.get(`Content-Type`);if(s&&!this._contentTypes.find(e=>s.startsWith(e))&&i.throw(Error(`Invalid response Content-Type: ${s??`undefined`}, from URL: ${e}`)),o.ok&&this._jwtHandler&&s?.startsWith(`application/jwt`))return await this._jwtHandler(await o.text());let c;try{c=await o.json()}catch(e){throw i.error(`Error parsing JSON response`,e),o.ok?e:Error(`${o.statusText} (${o.status})`)}if(!o.ok)throw i.error(`Error from server:`,c),c.error?new Ie(c):Error(`${o.statusText} (${o.status}): ${JSON.stringify(c)}`);return c}async postForm(e,{body:t,basicAuth:n,timeoutInSeconds:r,initCredentials:i,extraHeaders:a}){let o=this._logger.create(`postForm`),s={Accept:this._contentTypes.join(`, `),"Content-Type":`application/x-www-form-urlencoded`,...a};n!==void 0&&(s.Authorization=`Basic `+n),this._appendExtraHeaders(s);let c;try{o.debug(`url:`,e),c=await this.fetchWithTimeout(e,{method:`POST`,headers:s,body:t,timeoutInSeconds:r,credentials:i})}catch(e){throw o.error(`Network error`),e}o.debug(`HTTP response received, status`,c.status);let l=c.headers.get(`Content-Type`);if(l&&!this._contentTypes.find(e=>l.startsWith(e)))throw Error(`Invalid response Content-Type: ${l??`undefined`}, from URL: ${e}`);let u=await c.text(),d={};if(u)try{d=JSON.parse(u)}catch(e){throw o.error(`Error parsing JSON response`,e),c.ok?e:Error(`${c.statusText} (${c.status})`)}if(!c.ok)throw o.error(`Error from server:`,d),c.headers.has(`dpop-nonce`)?new Ve(c.headers.get(`dpop-nonce`),`${JSON.stringify(d)}`):d.error?new Ie(d,t):Error(`${c.statusText} (${c.status}): ${JSON.stringify(d)}`);return d}_appendExtraHeaders(e){let t=this._logger.create(`appendExtraHeaders`),n=Object.keys(this._extraHeaders),r=[`accept`,`content-type`],i=[`authorization`];n.length!==0&&n.forEach(n=>{if(r.includes(n.toLocaleLowerCase())){t.warn(`Protected header could not be set`,n,r);return}if(i.includes(n.toLocaleLowerCase())&&Object.keys(e).includes(n)){t.warn(`Header could not be overridden`,n,i);return}let a=typeof this._extraHeaders[n]==`function`?this._extraHeaders[n]():this._extraHeaders[n];a&&a!==``&&(e[n]=a)})}},Ue=class{constructor(e){this._settings=e,this._logger=new Te(`MetadataService`),this._signingKeys=null,this._metadata=null,this._metadataUrl=this._settings.metadataUrl,this._jsonService=new He([`application/jwk-set+json`],null,this._settings.extraHeaders),this._settings.signingKeys&&(this._logger.debug(`using signingKeys from settings`),this._signingKeys=this._settings.signingKeys),this._settings.metadata&&(this._logger.debug(`using metadata from settings`),this._metadata=this._settings.metadata),this._settings.fetchRequestCredentials&&(this._logger.debug(`using fetchRequestCredentials from settings`),this._fetchRequestCredentials=this._settings.fetchRequestCredentials)}resetSigningKeys(){this._signingKeys=null}async getMetadata(){let e=this._logger.create(`getMetadata`);if(this._metadata)return e.debug(`using cached values`),this._metadata;if(!this._metadataUrl)throw e.throw(Error(`No authority or metadataUrl configured on settings`)),null;e.debug(`getting metadata from`,this._metadataUrl);let t=await this._jsonService.getJson(this._metadataUrl,{credentials:this._fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return e.debug(`merging remote JSON with seed metadata`),this._metadata=Object.assign({},t,this._settings.metadataSeed),this._metadata}getIssuer(){return this._getMetadataProperty(`issuer`)}getAuthorizationEndpoint(){return this._getMetadataProperty(`authorization_endpoint`)}getUserInfoEndpoint(){return this._getMetadataProperty(`userinfo_endpoint`)}getTokenEndpoint(e=!0){return this._getMetadataProperty(`token_endpoint`,e)}getCheckSessionIframe(){return this._getMetadataProperty(`check_session_iframe`,!0)}getEndSessionEndpoint(){return this._getMetadataProperty(`end_session_endpoint`,!0)}getRevocationEndpoint(e=!0){return this._getMetadataProperty(`revocation_endpoint`,e)}getKeysEndpoint(e=!0){return this._getMetadataProperty(`jwks_uri`,e)}async _getMetadataProperty(e,t=!1){let n=this._logger.create(`_getMetadataProperty('${e}')`),r=await this.getMetadata();if(n.debug(`resolved`),r[e]===void 0){if(t===!0){n.warn(`Metadata does not contain optional property`);return}n.throw(Error(`Metadata does not contain property `+e))}return r[e]}async getSigningKeys(){let e=this._logger.create(`getSigningKeys`);if(this._signingKeys)return e.debug(`returning signingKeys from cache`),this._signingKeys;let t=await this.getKeysEndpoint(!1);e.debug(`got jwks_uri`,t);let n=await this._jsonService.getJson(t,{timeoutInSeconds:this._settings.requestTimeoutInSeconds});if(e.debug(`got key set`,n),!Array.isArray(n.keys))throw e.throw(Error(`Missing keys on keyset`)),null;return this._signingKeys=n.keys,this._signingKeys}},We=class{constructor({prefix:e=`oidc.`,store:t=localStorage}={}){this._logger=new Te(`WebStorageStateStore`),this._store=t,this._prefix=e}async set(e,t){this._logger.create(`set('${e}')`),e=this._prefix+e,await this._store.setItem(e,t)}async get(e){return this._logger.create(`get('${e}')`),e=this._prefix+e,await this._store.getItem(e)}async remove(e){this._logger.create(`remove('${e}')`),e=this._prefix+e;let t=await this._store.getItem(e);return await this._store.removeItem(e),t}async getAllKeys(){this._logger.create(`getAllKeys`);let e=await this._store.length,t=[];for(let n=0;n<e;n++){let e=await this._store.key(n);e&&e.indexOf(this._prefix)===0&&t.push(e.substr(this._prefix.length))}return t}},Ge=`code`,Ke=`openid`,qe=`client_secret_post`,Je=900,Ye=class{constructor({authority:e,metadataUrl:t,metadata:n,signingKeys:r,metadataSeed:i,client_id:a,client_secret:o,response_type:s=Ge,scope:c=Ke,redirect_uri:l,post_logout_redirect_uri:u,client_authentication:d=qe,token_endpoint_auth_signing_alg:f=`HS256`,prompt:p,display:m,max_age:h,ui_locales:g,acr_values:_,resource:v,response_mode:y,filterProtocolClaims:b=!0,loadUserInfo:x=!1,requestTimeoutInSeconds:S,staleStateAgeInSeconds:C=Je,mergeClaimsStrategy:w={array:`replace`},disablePKCE:T=!1,stateStore:E,revokeTokenAdditionalContentTypes:D,fetchRequestCredentials:O,refreshTokenAllowedScope:k,extraQueryParams:ee={},extraTokenParams:A={},extraHeaders:j={},dpop:M,omitScopeWhenRequesting:te=!1}){if(this.authority=e,t?this.metadataUrl=t:(this.metadataUrl=e,e&&(this.metadataUrl.endsWith(`/`)||(this.metadataUrl+=`/`),this.metadataUrl+=`.well-known/openid-configuration`)),this.metadata=n,this.metadataSeed=i,this.signingKeys=r,this.client_id=a,this.client_secret=o,this.response_type=s,this.scope=c,this.redirect_uri=l,this.post_logout_redirect_uri=u,this.client_authentication=d,this.token_endpoint_auth_signing_alg=f,this.prompt=p,this.display=m,this.max_age=h,this.ui_locales=g,this.acr_values=_,this.resource=v,this.response_mode=y,this.filterProtocolClaims=b??!0,this.loadUserInfo=!!x,this.staleStateAgeInSeconds=C,this.mergeClaimsStrategy=w,this.omitScopeWhenRequesting=te,this.disablePKCE=!!T,this.revokeTokenAdditionalContentTypes=D,this.fetchRequestCredentials=O||`same-origin`,this.requestTimeoutInSeconds=S,E)this.stateStore=E;else{let e=typeof window<`u`?window.localStorage:new Be;this.stateStore=new We({store:e})}if(this.refreshTokenAllowedScope=k,this.extraQueryParams=ee,this.extraTokenParams=A,this.extraHeaders=j,this.dpop=M,this.dpop&&!this.dpop?.store)throw Error(`A DPoPStore is required when dpop is enabled`)}},Xe=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Te(`UserInfoService`),this._getClaimsFromJwt=async e=>{let t=this._logger.create(`_getClaimsFromJwt`);try{let n=Ee.decode(e);return t.debug(`JWT decoding successful`),n}catch(e){throw t.error(`Error parsing JWT response`),e}},this._jsonService=new He(void 0,this._getClaimsFromJwt,this._settings.extraHeaders)}async getClaims(e){let t=this._logger.create(`getClaims`);e||this._logger.throw(Error(`No token passed`));let n=await this._metadataService.getUserInfoEndpoint();t.debug(`got userinfo url`,n);let r=await this._jsonService.getJson(n,{token:e,credentials:this._settings.fetchRequestCredentials,timeoutInSeconds:this._settings.requestTimeoutInSeconds});return t.debug(`got claims`,r),r}},Ze=class{constructor(e,t){this._settings=e,this._metadataService=t,this._logger=new Te(`TokenClient`),this._jsonService=new He(this._settings.revokeTokenAdditionalContentTypes,null,this._settings.extraHeaders)}async exchangeCode({grant_type:e=`authorization_code`,redirect_uri:t=this._settings.redirect_uri,client_id:n=this._settings.client_id,client_secret:r=this._settings.client_secret,extraHeaders:i,...a}){let o=this._logger.create(`exchangeCode`);n||o.throw(Error(`A client_id is required`)),t||o.throw(Error(`A redirect_uri is required`)),a.code||o.throw(Error(`A code is required`));let s=new URLSearchParams({grant_type:e,redirect_uri:t});for(let[e,t]of Object.entries(a))t!=null&&s.set(e,t);if((this._settings.client_authentication===`client_secret_basic`||this._settings.client_authentication===`client_secret_jwt`)&&r==null)throw o.throw(Error(`A client_secret is required`)),null;let c,l=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case`client_secret_basic`:c=Ae.generateBasicAuth(n,r);break;case`client_secret_post`:s.append(`client_id`,n),r&&s.append(`client_secret`,r);break;case`client_secret_jwt`:{let e=await Ae.generateClientAssertionJwt(n,r,l,this._settings.token_endpoint_auth_signing_alg);s.append(`client_id`,n),s.append(`client_assertion_type`,`urn:ietf:params:oauth:client-assertion-type:jwt-bearer`),s.append(`client_assertion`,e);break}}o.debug(`got token endpoint`);let u=await this._jsonService.postForm(l,{body:s,basicAuth:c,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:i});return o.debug(`got response`),u}async exchangeCredentials({grant_type:e=`password`,client_id:t=this._settings.client_id,client_secret:n=this._settings.client_secret,scope:r=this._settings.scope,...i}){let a=this._logger.create(`exchangeCredentials`);t||a.throw(Error(`A client_id is required`));let o=new URLSearchParams({grant_type:e});this._settings.omitScopeWhenRequesting||o.set(`scope`,r);for(let[e,t]of Object.entries(i))t!=null&&o.set(e,t);if((this._settings.client_authentication===`client_secret_basic`||this._settings.client_authentication===`client_secret_jwt`)&&n==null)throw a.throw(Error(`A client_secret is required`)),null;let s,c=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case`client_secret_basic`:s=Ae.generateBasicAuth(t,n);break;case`client_secret_post`:o.append(`client_id`,t),n&&o.append(`client_secret`,n);break;case`client_secret_jwt`:{let e=await Ae.generateClientAssertionJwt(t,n,c,this._settings.token_endpoint_auth_signing_alg);o.append(`client_id`,t),o.append(`client_assertion_type`,`urn:ietf:params:oauth:client-assertion-type:jwt-bearer`),o.append(`client_assertion`,e);break}}a.debug(`got token endpoint`);let l=await this._jsonService.postForm(c,{body:o,basicAuth:s,timeoutInSeconds:this._settings.requestTimeoutInSeconds,initCredentials:this._settings.fetchRequestCredentials});return a.debug(`got response`),l}async exchangeRefreshToken({grant_type:e=`refresh_token`,client_id:t=this._settings.client_id,client_secret:n=this._settings.client_secret,timeoutInSeconds:r,extraHeaders:i,...a}){let o=this._logger.create(`exchangeRefreshToken`);t||o.throw(Error(`A client_id is required`)),a.refresh_token||o.throw(Error(`A refresh_token is required`));let s=new URLSearchParams({grant_type:e});for(let[e,t]of Object.entries(a))Array.isArray(t)?t.forEach(t=>s.append(e,t)):t!=null&&s.set(e,t);if((this._settings.client_authentication===`client_secret_basic`||this._settings.client_authentication===`client_secret_jwt`)&&n==null)throw o.throw(Error(`A client_secret is required`)),null;let c,l=await this._metadataService.getTokenEndpoint(!1);switch(this._settings.client_authentication){case`client_secret_basic`:c=Ae.generateBasicAuth(t,n);break;case`client_secret_post`:s.append(`client_id`,t),n&&s.append(`client_secret`,n);break;case`client_secret_jwt`:{let e=await Ae.generateClientAssertionJwt(t,n,l,this._settings.token_endpoint_auth_signing_alg);s.append(`client_id`,t),s.append(`client_assertion_type`,`urn:ietf:params:oauth:client-assertion-type:jwt-bearer`),s.append(`client_assertion`,e);break}}o.debug(`got token endpoint`);let u=await this._jsonService.postForm(l,{body:s,basicAuth:c,timeoutInSeconds:r,initCredentials:this._settings.fetchRequestCredentials,extraHeaders:i});return o.debug(`got response`),u}async revoke(e){let t=this._logger.create(`revoke`);e.token||t.throw(Error(`A token is required`));let n=await this._metadataService.getRevocationEndpoint(!1);t.debug(`got revocation endpoint, revoking ${e.token_type_hint??`default token type`}`);let r=new URLSearchParams;for(let[t,n]of Object.entries(e))n!=null&&r.set(t,n);r.set(`client_id`,this._settings.client_id),this._settings.client_secret&&r.set(`client_secret`,this._settings.client_secret),await this._jsonService.postForm(n,{body:r,timeoutInSeconds:this._settings.requestTimeoutInSeconds}),t.debug(`got response`)}},Qe=class{constructor(e,t,n){this._settings=e,this._metadataService=t,this._claimsService=n,this._logger=new Te(`ResponseValidator`),this._userInfoService=new Xe(this._settings,this._metadataService),this._tokenClient=new Ze(this._settings,this._metadataService)}async validateSigninResponse(e,t,n){let r=this._logger.create(`validateSigninResponse`);this._processSigninState(e,t),r.debug(`state processed`),await this._processCode(e,t,n),r.debug(`code processed`),e.isOpenId&&this._validateIdTokenAttributes(e,``,t.nonce),r.debug(`tokens validated`),await this._processClaims(e,t?.skipUserInfo,e.isOpenId),r.debug(`claims processed`)}async validateCredentialsResponse(e,t){let n=this._logger.create(`validateCredentialsResponse`),r=e.isOpenId&&!!e.id_token;r&&this._validateIdTokenAttributes(e),n.debug(`tokens validated`),await this._processClaims(e,t,r),n.debug(`claims processed`)}async validateRefreshResponse(e,t){let n=this._logger.create(`validateRefreshResponse`);e.userState=t.data,e.session_state??=t.session_state,e.scope??=t.scope,e.isOpenId&&e.id_token&&(this._validateIdTokenAttributes(e,t.id_token),n.debug(`ID Token validated`)),e.id_token||(e.id_token=t.id_token,e.profile=t.profile);let r=e.isOpenId&&!!e.id_token;await this._processClaims(e,!1,r),n.debug(`claims processed`)}validateSignoutResponse(e,t){let n=this._logger.create(`validateSignoutResponse`);if(t.id!==e.state&&n.throw(Error(`State does not match`)),n.debug(`state validated`),e.userState=t.data,e.error)throw n.warn(`Response was error`,e.error),new Ie(e)}_processSigninState(e,t){let n=this._logger.create(`_processSigninState`);if(t.id!==e.state&&n.throw(Error(`State does not match`)),t.client_id||n.throw(Error(`No client_id on state`)),t.authority||n.throw(Error(`No authority on state`)),this._settings.authority!==t.authority&&n.throw(Error(`authority mismatch on settings vs. signin state`)),this._settings.client_id&&this._settings.client_id!==t.client_id&&n.throw(Error(`client_id mismatch on settings vs. signin state`)),n.debug(`state validated`),e.userState=t.data,e.url_state=t.url_state,e.scope??=t.scope,e.error)throw n.warn(`Response was error`,e.error),new Ie(e);t.code_verifier&&!e.code&&n.throw(Error(`Expected code in response`))}async _processClaims(e,t=!1,n=!0){let r=this._logger.create(`_processClaims`);if(e.profile=this._claimsService.filterProtocolClaims(e.profile),t||!this._settings.loadUserInfo||!e.access_token){r.debug(`not loading user info`);return}r.debug(`loading user info`);let i=await this._userInfoService.getClaims(e.access_token);r.debug(`user info claims received from user info endpoint`),n&&i.sub!==e.profile.sub&&r.throw(Error(`subject from UserInfo response does not match subject in ID Token`)),e.profile=this._claimsService.mergeClaims(e.profile,this._claimsService.filterProtocolClaims(i)),r.debug(`user info claims received, updated profile:`,e.profile)}async _processCode(e,t,n){let r=this._logger.create(`_processCode`);if(e.code){r.debug(`Validating code`);let i=await this._tokenClient.exchangeCode({client_id:t.client_id,client_secret:t.client_secret,code:e.code,redirect_uri:t.redirect_uri,code_verifier:t.code_verifier,extraHeaders:n,...t.extraTokenParams});Object.assign(e,i)}else r.debug(`No code to process`)}_validateIdTokenAttributes(e,t,n){let r=this._logger.create(`_validateIdTokenAttributes`);r.debug(`decoding ID Token JWT`);let i=Ee.decode(e.id_token??``);if(i.sub||r.throw(Error(`ID Token is missing a subject claim`)),n&&i.nonce!==n&&r.throw(Error(`nonce in id_token does not match nonce in client storage`)),t){let e=Ee.decode(t);i.sub!==e.sub&&r.throw(Error(`sub in id_token does not match current sub`)),i.auth_time&&i.auth_time!==e.auth_time&&r.throw(Error(`auth_time in id_token does not match original auth_time`)),i.azp&&i.azp!==e.azp&&r.throw(Error(`azp in id_token does not match original azp`)),!i.azp&&e.azp&&r.throw(Error(`azp not in id_token, but present in original id_token`))}e.profile=i}},$e=class e{constructor(e){this.id=e.id||Ae.generateUUIDv4(),this.data=e.data,this.created=e.created&&e.created>0?e.created:Ne.getEpochTime(),this.request_type=e.request_type,this.url_state=e.url_state}toStorageString(){return new Te(`State`).create(`toStorageString`),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state})}static fromStorageString(t){return Te.createStatic(`State`,`fromStorageString`),Promise.resolve(new e(JSON.parse(t)))}static async clearStaleState(t,n){let r=Te.createStatic(`State`,`clearStaleState`),i=Ne.getEpochTime()-n,a=await t.getAllKeys();r.debug(`got keys`,a);for(let n=0;n<a.length;n++){let o=a[n],s=await t.get(o),c=!1;if(s)try{let t=await e.fromStorageString(s);r.debug(`got item from key:`,o,t.created),t.created<=i&&(c=!0)}catch(e){r.error(`Error parsing state for key:`,o,e),c=!0}else r.debug(`no item in storage for key:`,o),c=!0;c&&(r.debug(`removed item for key:`,o),t.remove(o))}}},et=class e extends $e{constructor(e){super(e),this.code_verifier=e.code_verifier,this.code_challenge=e.code_challenge,this.authority=e.authority,this.client_id=e.client_id,this.redirect_uri=e.redirect_uri,this.scope=e.scope,this.client_secret=e.client_secret,this.extraTokenParams=e.extraTokenParams,this.response_mode=e.response_mode,this.skipUserInfo=e.skipUserInfo,this.nonce=e.nonce}static async create(t){let n=t.code_verifier===!0?Ae.generateCodeVerifier():t.code_verifier||void 0,r=n?await Ae.generateCodeChallenge(n):void 0;return new e({...t,code_verifier:n,code_challenge:r})}toStorageString(){return new Te(`SigninState`).create(`toStorageString`),JSON.stringify({id:this.id,data:this.data,created:this.created,request_type:this.request_type,url_state:this.url_state,code_verifier:this.code_verifier,authority:this.authority,client_id:this.client_id,redirect_uri:this.redirect_uri,scope:this.scope,client_secret:this.client_secret,extraTokenParams:this.extraTokenParams,response_mode:this.response_mode,skipUserInfo:this.skipUserInfo,nonce:this.nonce})}static fromStorageString(t){Te.createStatic(`SigninState`,`fromStorageString`);let n=JSON.parse(t);return e.create(n)}},tt=class e{constructor(e){this.url=e.url,this.state=e.state}static async create({url:t,authority:n,client_id:r,redirect_uri:i,response_type:a,scope:o,state_data:s,response_mode:c,request_type:l,client_secret:u,nonce:d,url_state:f,resource:p,skipUserInfo:m,extraQueryParams:h,extraTokenParams:g,disablePKCE:_,dpopJkt:v,omitScopeWhenRequesting:y,...b}){if(!t)throw this._logger.error(`create: No url passed`),Error(`url`);if(!r)throw this._logger.error(`create: No client_id passed`),Error(`client_id`);if(!i)throw this._logger.error(`create: No redirect_uri passed`),Error(`redirect_uri`);if(!a)throw this._logger.error(`create: No response_type passed`),Error(`response_type`);if(!o)throw this._logger.error(`create: No scope passed`),Error(`scope`);if(!n)throw this._logger.error(`create: No authority passed`),Error(`authority`);let x=await et.create({data:s,request_type:l,url_state:f,code_verifier:!_,client_id:r,authority:n,redirect_uri:i,response_mode:c,client_secret:u,scope:o,extraTokenParams:g,skipUserInfo:m,nonce:d}),S=new URL(t);S.searchParams.append(`client_id`,r),S.searchParams.append(`redirect_uri`,i),S.searchParams.append(`response_type`,a),y||S.searchParams.append(`scope`,o),d&&S.searchParams.append(`nonce`,d),v&&S.searchParams.append(`dpop_jkt`,v);let C=x.id;f&&(C=`${C}${Fe}${f}`),S.searchParams.append(`state`,C),x.code_challenge&&(S.searchParams.append(`code_challenge`,x.code_challenge),S.searchParams.append(`code_challenge_method`,`S256`)),p&&(Array.isArray(p)?p:[p]).forEach(e=>S.searchParams.append(`resource`,e));for(let[e,t]of Object.entries({response_mode:c,...b,...h}))t!=null&&S.searchParams.append(e,t.toString());return new e({url:S.href,state:x})}};tt._logger=new Te(`SigninRequest`);var nt=tt,rt=`openid`,it=class{constructor(e){if(this.access_token=``,this.token_type=``,this.profile={},this.state=e.get(`state`),this.session_state=e.get(`session_state`),this.state){let e=decodeURIComponent(this.state).split(Fe);this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(Fe))}this.error=e.get(`error`),this.error_description=e.get(`error_description`),this.error_uri=e.get(`error_uri`),this.code=e.get(`code`)}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Ne.getEpochTime()}set expires_in(e){typeof e==`string`&&(e=Number(e)),e!==void 0&&e>=0&&(this.expires_at=Math.floor(e)+Ne.getEpochTime())}get isOpenId(){return this.scope?.split(` `).includes(rt)||!!this.id_token}},at=class{constructor({url:e,state_data:t,id_token_hint:n,post_logout_redirect_uri:r,extraQueryParams:i,request_type:a,client_id:o,url_state:s}){if(this._logger=new Te(`SignoutRequest`),!e)throw this._logger.error(`ctor: No url passed`),Error(`url`);let c=new URL(e);if(n&&c.searchParams.append(`id_token_hint`,n),o&&c.searchParams.append(`client_id`,o),r&&(c.searchParams.append(`post_logout_redirect_uri`,r),t||s)){this.state=new $e({data:t,request_type:a,url_state:s});let e=this.state.id;s&&(e=`${e}${Fe}${s}`),c.searchParams.append(`state`,e)}for(let[e,t]of Object.entries({...i}))t!=null&&c.searchParams.append(e,t.toString());this.url=c.href}},ot=class{constructor(e){if(this.state=e.get(`state`),this.state){let e=decodeURIComponent(this.state).split(Fe);this.state=e[0],e.length>1&&(this.url_state=e.slice(1).join(Fe))}this.error=e.get(`error`),this.error_description=e.get(`error_description`),this.error_uri=e.get(`error_uri`)}},st=[`nbf`,`jti`,`auth_time`,`nonce`,`acr`,`amr`,`azp`,`at_hash`],ct=[`sub`,`iss`,`aud`,`exp`,`iat`],lt=class{constructor(e){this._settings=e,this._logger=new Te(`ClaimsService`)}filterProtocolClaims(e){let t={...e};if(this._settings.filterProtocolClaims){let e;e=Array.isArray(this._settings.filterProtocolClaims)?this._settings.filterProtocolClaims:st;for(let n of e)ct.includes(n)||delete t[n]}return t}mergeClaims(e,t){let n={...e};for(let[e,r]of Object.entries(t))if(n[e]!==r){if(Array.isArray(n[e])||Array.isArray(r)){if(this._settings.mergeClaimsStrategy.array==`replace`)n[e]=r;else{let t=Array.isArray(n[e])?n[e]:[n[e]];for(let e of Array.isArray(r)?r:[r])t.includes(e)||t.push(e);n[e]=t}}else n[e]=typeof n[e]==`object`&&typeof r==`object`?this.mergeClaims(n[e],r):r}return n}},ut=class{constructor(e,t){this.keys=e,this.nonce=t}},dt=class{constructor(e,t){this._logger=new Te(`OidcClient`),this.settings=e instanceof Ye?e:new Ye(e),this.metadataService=t??new Ue(this.settings),this._claimsService=new lt(this.settings),this._validator=new Qe(this.settings,this.metadataService,this._claimsService),this._tokenClient=new Ze(this.settings,this.metadataService)}async createSigninRequest({state:e,request:t,request_uri:n,request_type:r,id_token_hint:i,login_hint:a,skipUserInfo:o,nonce:s,url_state:c,response_type:l=this.settings.response_type,scope:u=this.settings.scope,redirect_uri:d=this.settings.redirect_uri,prompt:f=this.settings.prompt,display:p=this.settings.display,max_age:m=this.settings.max_age,ui_locales:h=this.settings.ui_locales,acr_values:g=this.settings.acr_values,resource:_=this.settings.resource,response_mode:v=this.settings.response_mode,extraQueryParams:y=this.settings.extraQueryParams,extraTokenParams:b=this.settings.extraTokenParams,dpopJkt:x,omitScopeWhenRequesting:S=this.settings.omitScopeWhenRequesting}){let C=this._logger.create(`createSigninRequest`);if(l!==`code`)throw Error(`Only the Authorization Code flow (with PKCE) is supported`);let w=await this.metadataService.getAuthorizationEndpoint();C.debug(`Received authorization endpoint`,w);let T=await nt.create({url:w,authority:this.settings.authority,client_id:this.settings.client_id,redirect_uri:d,response_type:l,scope:u,state_data:e,url_state:c,prompt:f,display:p,max_age:m,ui_locales:h,id_token_hint:i,login_hint:a,acr_values:g,dpopJkt:x,resource:_,request:t,request_uri:n,extraQueryParams:y,extraTokenParams:b,request_type:r,response_mode:v,client_secret:this.settings.client_secret,skipUserInfo:o,nonce:s,disablePKCE:this.settings.disablePKCE,omitScopeWhenRequesting:S});await this.clearStaleState();let E=T.state;return await this.settings.stateStore.set(E.id,E.toStorageString()),T}async readSigninResponseState(e,t=!1){let n=this._logger.create(`readSigninResponseState`),r=new it(Pe.readParams(e,this.settings.response_mode));if(!r.state)throw n.throw(Error(`No state in response`)),null;let i=await this.settings.stateStore[t?`remove`:`get`](r.state);if(!i)throw n.throw(Error(`No matching state found in storage`)),null;return{state:await et.fromStorageString(i),response:r}}async processSigninResponse(e,t,n=!0){let r=this._logger.create(`processSigninResponse`),{state:i,response:a}=await this.readSigninResponseState(e,n);if(r.debug(`received state from storage; validating response`),this.settings.dpop&&this.settings.dpop.store){let e=await this.getDpopProof(this.settings.dpop.store);t={...t,DPoP:e}}try{await this._validator.validateSigninResponse(a,i,t)}catch(e){if(e instanceof Ve&&this.settings.dpop){let n=await this.getDpopProof(this.settings.dpop.store,e.nonce);t.DPoP=n,await this._validator.validateSigninResponse(a,i,t)}else throw e}return a}async getDpopProof(e,t){let n,r;return(await e.getAllKeys()).includes(this.settings.client_id)?(r=await e.get(this.settings.client_id),r.nonce!==t&&t&&(r.nonce=t,await e.set(this.settings.client_id,r))):(n=await Ae.generateDPoPKeys(),r=new ut(n,t),await e.set(this.settings.client_id,r)),await Ae.generateDPoPProof({url:await this.metadataService.getTokenEndpoint(!1),httpMethod:`POST`,keyPair:r.keys,nonce:r.nonce})}async processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:n=!1,extraTokenParams:r={}}){let i=await this._tokenClient.exchangeCredentials({username:e,password:t,...r}),a=new it(new URLSearchParams);return Object.assign(a,i),await this._validator.validateCredentialsResponse(a,n),a}async useRefreshToken({state:e,redirect_uri:t,resource:n,timeoutInSeconds:r,extraHeaders:i,extraTokenParams:a}){let o=this._logger.create(`useRefreshToken`),s;if(this.settings.refreshTokenAllowedScope===void 0)s=e.scope;else{let t=this.settings.refreshTokenAllowedScope.split(` `);s=(e.scope?.split(` `)||[]).filter(e=>t.includes(e)).join(` `)}if(this.settings.dpop&&this.settings.dpop.store){let e=await this.getDpopProof(this.settings.dpop.store);i={...i,DPoP:e}}let c;try{c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:s,redirect_uri:t,resource:n,timeoutInSeconds:r,extraHeaders:i,...a})}catch(o){if(o instanceof Ve&&this.settings.dpop)i.DPoP=await this.getDpopProof(this.settings.dpop.store,o.nonce),c=await this._tokenClient.exchangeRefreshToken({refresh_token:e.refresh_token,scope:s,redirect_uri:t,resource:n,timeoutInSeconds:r,extraHeaders:i,...a});else throw o}let l=new it(new URLSearchParams);return Object.assign(l,c),o.debug(`validating response`,l),await this._validator.validateRefreshResponse(l,{...e,scope:s}),l}async createSignoutRequest({state:e,id_token_hint:t,client_id:n,request_type:r,url_state:i,post_logout_redirect_uri:a=this.settings.post_logout_redirect_uri,extraQueryParams:o=this.settings.extraQueryParams}={}){let s=this._logger.create(`createSignoutRequest`),c=await this.metadataService.getEndSessionEndpoint();if(!c)throw s.throw(Error(`No end session endpoint`)),null;s.debug(`Received end session endpoint`,c),!n&&a&&!t&&(n=this.settings.client_id);let l=new at({url:c,id_token_hint:t,client_id:n,post_logout_redirect_uri:a,state_data:e,extraQueryParams:o,request_type:r,url_state:i});await this.clearStaleState();let u=l.state;return u&&(s.debug(`Signout request has state to persist`),await this.settings.stateStore.set(u.id,u.toStorageString())),l}async readSignoutResponseState(e,t=!1){let n=this._logger.create(`readSignoutResponseState`),r=new ot(Pe.readParams(e,this.settings.response_mode));if(!r.state){if(n.debug(`No state in response`),r.error)throw n.warn(`Response was error:`,r.error),new Ie(r);return{state:void 0,response:r}}let i=await this.settings.stateStore[t?`remove`:`get`](r.state);if(!i)throw n.throw(Error(`No matching state found in storage`)),null;return{state:await $e.fromStorageString(i),response:r}}async processSignoutResponse(e){let t=this._logger.create(`processSignoutResponse`),{state:n,response:r}=await this.readSignoutResponseState(e,!0);return n?(t.debug(`Received state from storage; validating response`),this._validator.validateSignoutResponse(r,n)):t.debug(`No state from storage; skipping response validation`),r}clearStaleState(){return this._logger.create(`clearStaleState`),$e.clearStaleState(this.settings.stateStore,this.settings.staleStateAgeInSeconds)}async revokeToken(e,t){return this._logger.create(`revokeToken`),await this._tokenClient.revoke({token:e,token_type_hint:t})}},ft=class{constructor(e){this._userManager=e,this._logger=new Te(`SessionMonitor`),this._start=async e=>{let t=e.session_state;if(!t)return;let n=this._logger.create(`_start`);if(e.profile?(this._sub=e.profile.sub,n.debug(`session_state`,t,`, sub`,this._sub)):(this._sub=void 0,n.debug(`session_state`,t,`, anonymous user`)),this._checkSessionIFrame)this._checkSessionIFrame.start(t);else try{let e=await this._userManager.metadataService.getCheckSessionIframe();if(e){n.debug(`initializing check session iframe`);let r=this._userManager.settings.client_id,i=this._userManager.settings.checkSessionIntervalInSeconds,a=this._userManager.settings.stopCheckSessionOnError,o=new ze(this._callback,r,e,i,a);await o.load(),this._checkSessionIFrame=o,o.start(t)}else n.warn(`no check session iframe found in the metadata`)}catch(e){n.error(`Error from getCheckSessionIframe:`,e instanceof Error?e.message:e)}},this._stop=()=>{let e=this._logger.create(`_stop`);if(this._sub=void 0,this._checkSessionIFrame&&this._checkSessionIFrame.stop(),this._userManager.settings.monitorAnonymousSession){let t=setInterval(async()=>{clearInterval(t);try{let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub?{sub:e.sub}:null};this._start(t)}}catch(t){e.error(`error from querySessionStatus`,t instanceof Error?t.message:t)}},1e3)}},this._callback=async()=>{let e=this._logger.create(`_callback`);try{let t=await this._userManager.querySessionStatus(),n=!0;t&&this._checkSessionIFrame?t.sub===this._sub?(n=!1,this._checkSessionIFrame.start(t.session_state),e.debug(`same sub still logged in at OP, session state has changed, restarting check session iframe; session_state`,t.session_state),await this._userManager.events._raiseUserSessionChanged()):e.debug(`different subject signed into OP`,t.sub):e.debug(`subject no longer signed into OP`),n?this._sub?await this._userManager.events._raiseUserSignedOut():await this._userManager.events._raiseUserSignedIn():e.debug(`no change in session detected, no event to raise`)}catch(t){this._sub&&(e.debug(`Error calling queryCurrentSigninSession; raising signed out event`,t),await this._userManager.events._raiseUserSignedOut())}},e||this._logger.throw(Error(`No user manager passed`)),this._userManager.events.addUserLoaded(this._start),this._userManager.events.addUserUnloaded(this._stop),this._init().catch(e=>{this._logger.error(e)})}async _init(){this._logger.create(`_init`);let e=await this._userManager.getUser();if(e)this._start(e);else if(this._userManager.settings.monitorAnonymousSession){let e=await this._userManager.querySessionStatus();if(e){let t={session_state:e.session_state,profile:e.sub?{sub:e.sub}:null};this._start(t)}}}},pt=class e{constructor(e){this.id_token=e.id_token,this.session_state=e.session_state??null,this.access_token=e.access_token,this.refresh_token=e.refresh_token,this.token_type=e.token_type,this.scope=e.scope,this.profile=e.profile,this.expires_at=e.expires_at,this.state=e.userState,this.url_state=e.url_state}get expires_in(){if(this.expires_at!==void 0)return this.expires_at-Ne.getEpochTime()}set expires_in(e){e!==void 0&&(this.expires_at=Math.floor(e)+Ne.getEpochTime())}get expired(){let e=this.expires_in;if(e!==void 0)return e<=0}get scopes(){return this.scope?.split(` `)??[]}toStorageString(){return new Te(`User`).create(`toStorageString`),JSON.stringify({id_token:this.id_token,session_state:this.session_state,access_token:this.access_token,refresh_token:this.refresh_token,token_type:this.token_type,scope:this.scope,profile:this.profile,expires_at:this.expires_at})}static fromStorageString(t){return Te.createStatic(`User`,`fromStorageString`),new e(JSON.parse(t))}},mt=`oidc-client`,ht=class{constructor(){this._abort=new je(`Window navigation aborted`),this._disposeHandlers=new Set,this._window=null}async navigate(e){let t=this._logger.create(`navigate`);if(!this._window)throw Error(`Attempted to navigate on a disposed window`);t.debug(`setting URL in window`),this._window.location.replace(e.url);let{url:n,keepOpen:r}=await new Promise((n,r)=>{let i=i=>{let a=i.data,o=e.scriptOrigin??window.location.origin;if(i.origin===o&&a?.source===mt){try{let n=Pe.readParams(a.url,e.response_mode).get(`state`);if(n||t.warn(`no state found in response url`),i.source!==this._window&&n!==e.state)return}catch{this._dispose(),r(Error(`Invalid response from window`))}n(a)}};window.addEventListener(`message`,i,!1),this._disposeHandlers.add(()=>window.removeEventListener(`message`,i,!1));let a=new BroadcastChannel(`oidc-client-popup-${e.state}`);a.addEventListener(`message`,i,!1),this._disposeHandlers.add(()=>a.close()),this._disposeHandlers.add(this._abort.addHandler(e=>{this._dispose(),r(e)}))});return t.debug(`got response from window`),this._dispose(),r||this.close(),{url:n}}_dispose(){this._logger.create(`_dispose`);for(let e of this._disposeHandlers)e();this._disposeHandlers.clear()}static _notifyParent(e,t,n=!1,r=window.location.origin){let i={source:mt,url:t,keepOpen:n},a=new Te(`_notifyParent`);if(e)a.debug(`With parent. Using parent.postMessage.`),e.postMessage(i,r);else{a.debug(`No parent. Using BroadcastChannel.`);let e=new URL(t).searchParams.get(`state`);if(!e)throw Error(`No parent and no state in URL. Can't complete notification.`);let n=new BroadcastChannel(`oidc-client-popup-${e}`);n.postMessage(i),n.close()}}},gt={location:!1,toolbar:!1,height:640,closePopupWindowAfterInSeconds:-1},_t=`_blank`,vt=60,yt=2,bt=10,xt=class extends Ye{constructor(e){let{popup_redirect_uri:t=e.redirect_uri,popup_post_logout_redirect_uri:n=e.post_logout_redirect_uri,popupWindowFeatures:r=gt,popupWindowTarget:i=_t,redirectMethod:a=`assign`,redirectTarget:o=`self`,iframeNotifyParentOrigin:s=e.iframeNotifyParentOrigin,iframeScriptOrigin:c=e.iframeScriptOrigin,requestTimeoutInSeconds:l,silent_redirect_uri:u=e.redirect_uri,silentRequestTimeoutInSeconds:d,automaticSilentRenew:f=!0,validateSubOnSilentRenew:p=!0,includeIdTokenInSilentRenew:m=!1,monitorSession:h=!1,monitorAnonymousSession:g=!1,checkSessionIntervalInSeconds:_=yt,query_status_response_type:v=`code`,stopCheckSessionOnError:y=!0,revokeTokenTypes:b=[`access_token`,`refresh_token`],revokeTokensOnSignout:x=!1,includeIdTokenInSilentSignout:S=!1,accessTokenExpiringNotificationTimeInSeconds:C=vt,maxSilentRenewTimeoutRetries:w,userStore:T}=e;if(super(e),this.popup_redirect_uri=t,this.popup_post_logout_redirect_uri=n,this.popupWindowFeatures=r,this.popupWindowTarget=i,this.redirectMethod=a,this.redirectTarget=o,this.iframeNotifyParentOrigin=s,this.iframeScriptOrigin=c,this.silent_redirect_uri=u,this.silentRequestTimeoutInSeconds=d||l||bt,this.automaticSilentRenew=f,this.validateSubOnSilentRenew=p,this.includeIdTokenInSilentRenew=m,this.monitorSession=h,this.monitorAnonymousSession=g,this.checkSessionIntervalInSeconds=_,this.stopCheckSessionOnError=y,this.query_status_response_type=v,this.revokeTokenTypes=b,this.revokeTokensOnSignout=x,this.includeIdTokenInSilentSignout=S,this.accessTokenExpiringNotificationTimeInSeconds=C,this.maxSilentRenewTimeoutRetries=w,T)this.userStore=T;else{let e=typeof window<`u`?window.sessionStorage:new Be;this.userStore=new We({store:e})}}},St=class e extends ht{constructor({silentRequestTimeoutInSeconds:t=bt}){super(),this._logger=new Te(`IFrameWindow`),this._timeoutInSeconds=t,this._frame=e.createHiddenIframe(),this._window=this._frame.contentWindow}static createHiddenIframe(){let e=window.document.createElement(`iframe`);return e.style.visibility=`hidden`,e.style.position=`fixed`,e.style.left=`-1000px`,e.style.top=`0`,e.width=`0`,e.height=`0`,window.document.body.appendChild(e),e}async navigate(e){this._logger.debug(`navigate: Using timeout of:`,this._timeoutInSeconds);let t=setTimeout(()=>void this._abort.raise(new Le(`IFrame timed out without a response`)),this._timeoutInSeconds*1e3);return this._disposeHandlers.add(()=>clearTimeout(t)),await super.navigate(e)}close(){var e;this._frame&&=(this._frame.parentNode&&(this._frame.addEventListener(`load`,e=>{var t;let n=e.target;(t=n.parentNode)==null||t.removeChild(n),this._abort.raise(Error(`IFrame removed from DOM`))},!0),(e=this._frame.contentWindow)==null||e.location.replace(`about:blank`)),null),this._window=null}static notifyParent(e,t){return super._notifyParent(window.parent,e,!1,t)}},Ct=class{constructor(e){this._settings=e,this._logger=new Te(`IFrameNavigator`)}async prepare({silentRequestTimeoutInSeconds:e=this._settings.silentRequestTimeoutInSeconds}){return new St({silentRequestTimeoutInSeconds:e})}async callback(e){this._logger.create(`callback`),St.notifyParent(e,this._settings.iframeNotifyParentOrigin)}},wt=500,Tt=1e3,Et=class extends ht{constructor({popupWindowTarget:e=_t,popupWindowFeatures:t={},popupSignal:n,popupAbortOnClose:r}){super(),this._logger=new Te(`PopupWindow`);let i=Me.center({...gt,...t});this._window=window.open(void 0,e,Me.serialize(i)),this.abortOnClose=!!r,n&&n.addEventListener(`abort`,()=>{this._abort.raise(Error(n.reason??`Popup aborted`))}),t.closePopupWindowAfterInSeconds&&t.closePopupWindowAfterInSeconds>0&&setTimeout(()=>{!this._window||typeof this._window.closed!=`boolean`||this._window.closed?this._abort.raise(Error(`Popup blocked by user`)):this.close()},t.closePopupWindowAfterInSeconds*Tt)}async navigate(e){var t;(t=this._window)==null||t.focus();let n=setInterval(()=>{(!this._window||this._window.closed)&&(this._logger.debug(`Popup closed by user or isolated by redirect`),r(),this._disposeHandlers.delete(r),this.abortOnClose&&this._abort.raise(Error(`Popup closed by user`)))},wt),r=()=>clearInterval(n);return this._disposeHandlers.add(r),await super.navigate(e)}close(){this._window&&(this._window.closed||(this._window.close(),this._abort.raise(Error(`Popup closed`)))),this._window=null}static notifyOpener(e,t){super._notifyParent(window.opener,e,t),!t&&!window.opener&&window.close()}},Dt=class{constructor(e){this._settings=e,this._logger=new Te(`PopupNavigator`)}async prepare({popupWindowFeatures:e=this._settings.popupWindowFeatures,popupWindowTarget:t=this._settings.popupWindowTarget,popupSignal:n,popupAbortOnClose:r}){return new Et({popupWindowFeatures:e,popupWindowTarget:t,popupSignal:n,popupAbortOnClose:r})}async callback(e,{keepOpen:t=!1}){this._logger.create(`callback`),Et.notifyOpener(e,t)}},Ot=class{constructor(e){this._settings=e,this._logger=new Te(`RedirectNavigator`)}async prepare({redirectMethod:e=this._settings.redirectMethod,redirectTarget:t=this._settings.redirectTarget}){this._logger.create(`prepare`);let n=window.self;t===`top`&&(n=window.top??window.self);let r=n.location[e].bind(n.location),i;return{navigate:async e=>(this._logger.create(`navigate`),await new Promise((t,n)=>{i=n,window.addEventListener(`pageshow`,()=>t(window.location.href)),r(e.url)})),close:()=>{this._logger.create(`close`),i?.(Error(`Redirect aborted`)),n.stop()}}}async callback(){}},kt=class extends Re{constructor(e){super({expiringNotificationTimeInSeconds:e.accessTokenExpiringNotificationTimeInSeconds}),this._logger=new Te(`UserManagerEvents`),this._userLoaded=new je(`User loaded`),this._userUnloaded=new je(`User unloaded`),this._silentRenewError=new je(`Silent renew error`),this._userSignedIn=new je(`User signed in`),this._userSignedOut=new je(`User signed out`),this._userSessionChanged=new je(`User session changed`)}async load(e,t=!0){await super.load(e),t&&await this._userLoaded.raise(e)}async unload(){await super.unload(),await this._userUnloaded.raise()}addUserLoaded(e){return this._userLoaded.addHandler(e)}removeUserLoaded(e){return this._userLoaded.removeHandler(e)}addUserUnloaded(e){return this._userUnloaded.addHandler(e)}removeUserUnloaded(e){return this._userUnloaded.removeHandler(e)}addSilentRenewError(e){return this._silentRenewError.addHandler(e)}removeSilentRenewError(e){return this._silentRenewError.removeHandler(e)}async _raiseSilentRenewError(e){await this._silentRenewError.raise(e)}addUserSignedIn(e){return this._userSignedIn.addHandler(e)}removeUserSignedIn(e){this._userSignedIn.removeHandler(e)}async _raiseUserSignedIn(){await this._userSignedIn.raise()}addUserSignedOut(e){return this._userSignedOut.addHandler(e)}removeUserSignedOut(e){this._userSignedOut.removeHandler(e)}async _raiseUserSignedOut(){await this._userSignedOut.raise()}addUserSessionChanged(e){return this._userSessionChanged.addHandler(e)}removeUserSessionChanged(e){this._userSessionChanged.removeHandler(e)}async _raiseUserSessionChanged(){await this._userSessionChanged.raise()}},At=class{constructor(e){this._userManager=e,this._logger=new Te(`SilentRenewService`),this._isStarted=!1,this._retryTimer=new Ne(`Retry Silent Renew`),this._timeoutRetryCount=0,this._tokenExpiring=async()=>{let e=this._logger.create(`_tokenExpiring`);try{await this._userManager.signinSilent(),this._timeoutRetryCount=0,e.debug(`silent token renewal successful`)}catch(t){if(t instanceof Le){this._timeoutRetryCount++;let n=this._userManager.settings.maxSilentRenewTimeoutRetries;if(n!==void 0&&this._timeoutRetryCount>n){e.error(`Timeout retry limit reached (${this._timeoutRetryCount} > ${n}), raising silentRenewError:`,t),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(t);return}e.warn(`ErrorTimeout from signinSilent (attempt ${this._timeoutRetryCount}), retry in 5s:`,t),this._retryTimer.init(5);return}e.error(`Error from signinSilent:`,t),this._timeoutRetryCount=0,await this._userManager.events._raiseSilentRenewError(t)}}}async start(){let e=this._logger.create(`start`);if(!this._isStarted){this._isStarted=!0,this._userManager.events.addAccessTokenExpiring(this._tokenExpiring),this._retryTimer.addHandler(this._tokenExpiring);try{await this._userManager.getUser()}catch(t){e.error(`getUser error`,t)}}}stop(){this._isStarted&&=(this._retryTimer.cancel(),this._retryTimer.removeHandler(this._tokenExpiring),this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring),!1)}},jt=class{constructor(e){this.refresh_token=e.refresh_token,this.id_token=e.id_token,this.session_state=e.session_state,this.scope=e.scope,this.profile=e.profile,this.data=e.state}},Mt=class{constructor(e,t,n,r){this._logger=new Te(`UserManager`),this.settings=new xt(e),this._client=new dt(e),this._redirectNavigator=t??new Ot(this.settings),this._popupNavigator=n??new Dt(this.settings),this._iframeNavigator=r??new Ct(this.settings),this._events=new kt(this.settings),this._silentRenewService=new At(this),this.settings.automaticSilentRenew&&this.startSilentRenew(),this._sessionMonitor=null,this.settings.monitorSession&&(this._sessionMonitor=new ft(this))}get events(){return this._events}get metadataService(){return this._client.metadataService}async getUser(e=!1){let t=this._logger.create(`getUser`),n=await this._loadUser();return n?(t.info(`user loaded`),await this._events.load(n,e),n):(t.info(`user not found in storage`),null)}async removeUser(){let e=this._logger.create(`removeUser`);await this.storeUser(null),e.info(`user removed from storage`),await this._events.unload()}async signinRedirect(e={}){this._logger.create(`signinRedirect`);let{redirectMethod:t,...n}=e,r;this.settings.dpop?.bind_authorization_code&&(r=await this.generateDPoPJkt(this.settings.dpop));let i=await this._redirectNavigator.prepare({redirectMethod:t});await this._signinStart({request_type:`si:r`,dpopJkt:r,...n},i)}async signinRedirectCallback(e=window.location.href){let t=this._logger.create(`signinRedirectCallback`),n=await this._signinEnd(e);return n.profile&&n.profile.sub?t.info(`success, signed in subject`,n.profile.sub):t.info(`no subject`),n}async signinResourceOwnerCredentials({username:e,password:t,skipUserInfo:n=!1}){let r=this._logger.create(`signinResourceOwnerCredential`),i=await this._client.processResourceOwnerPasswordCredentials({username:e,password:t,skipUserInfo:n,extraTokenParams:this.settings.extraTokenParams});r.debug(`got signin response`);let a=await this._buildUser(i);return a.profile&&a.profile.sub?r.info(`success, signed in subject`,a.profile.sub):r.info(`no subject`),a}async signinPopup(e={}){let t=this._logger.create(`signinPopup`),n;this.settings.dpop?.bind_authorization_code&&(n=await this.generateDPoPJkt(this.settings.dpop));let{popupWindowFeatures:r,popupWindowTarget:i,popupSignal:a,popupAbortOnClose:o,...s}=e,c=this.settings.popup_redirect_uri;c||t.throw(Error(`No popup_redirect_uri configured`));let l=await this._popupNavigator.prepare({popupWindowFeatures:r,popupWindowTarget:i,popupSignal:a,popupAbortOnClose:o}),u=await this._signin({request_type:`si:p`,redirect_uri:c,display:`popup`,dpopJkt:n,...s},l);return u&&(u.profile&&u.profile.sub?t.info(`success, signed in subject`,u.profile.sub):t.info(`no subject`)),u}async signinPopupCallback(e=window.location.href,t=!1){let n=this._logger.create(`signinPopupCallback`);await this._popupNavigator.callback(e,{keepOpen:t}),n.info(`success`)}async signinSilent(e={}){let t=this._logger.create(`signinSilent`),{silentRequestTimeoutInSeconds:n,...r}=e,i=await this._loadUser();if(!e.forceIframeAuth&&i?.refresh_token){t.debug(`using refresh token`);let e=new jt(i);return await this._useRefreshToken({state:e,redirect_uri:r.redirect_uri,resource:r.resource,extraTokenParams:r.extraTokenParams,timeoutInSeconds:n})}let a;this.settings.dpop?.bind_authorization_code&&(a=await this.generateDPoPJkt(this.settings.dpop));let o=this.settings.silent_redirect_uri;o||t.throw(Error(`No silent_redirect_uri configured`));let s;i&&this.settings.validateSubOnSilentRenew&&(t.debug(`subject prior to silent renew:`,i.profile.sub),s=i.profile.sub);let c=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});return i=await this._signin({request_type:`si:s`,redirect_uri:o,prompt:`none`,id_token_hint:this.settings.includeIdTokenInSilentRenew?i?.id_token:void 0,dpopJkt:a,...r},c,s),i&&(i.profile?.sub?t.info(`success, signed in subject`,i.profile.sub):t.info(`no subject`)),i}async _useRefreshToken(e){let t=await this._client.useRefreshToken({timeoutInSeconds:this.settings.silentRequestTimeoutInSeconds,...e}),n=new pt({...e.state,...t});return await this.storeUser(n),await this._events.load(n),n}async signinSilentCallback(e=window.location.href){let t=this._logger.create(`signinSilentCallback`);await this._iframeNavigator.callback(e),t.info(`success`)}async signinCallback(e=window.location.href){let{state:t}=await this._client.readSigninResponseState(e);switch(t.request_type){case`si:r`:return await this.signinRedirectCallback(e);case`si:p`:await this.signinPopupCallback(e);break;case`si:s`:await this.signinSilentCallback(e);break;default:throw Error(`invalid request_type in state`)}}async signoutCallback(e=window.location.href,t=!1){let{state:n}=await this._client.readSignoutResponseState(e);if(n)switch(n.request_type){case`so:r`:return await this.signoutRedirectCallback(e);case`so:p`:await this.signoutPopupCallback(e,t);break;case`so:s`:await this.signoutSilentCallback(e);break;default:throw Error(`invalid request_type in state`)}}async querySessionStatus(e={}){let t=this._logger.create(`querySessionStatus`),{silentRequestTimeoutInSeconds:n,...r}=e,i=this.settings.silent_redirect_uri;i||t.throw(Error(`No silent_redirect_uri configured`));let a=await this._loadUser(),o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n}),s=await this._signinStart({request_type:`si:s`,redirect_uri:i,prompt:`none`,id_token_hint:this.settings.includeIdTokenInSilentRenew?a?.id_token:void 0,response_type:this.settings.query_status_response_type,scope:`openid`,skipUserInfo:!0,...r},o);try{let e=await this._client.processSigninResponse(s.url,{});return t.debug(`got signin response`),e.session_state&&e.profile.sub?(t.info(`success for subject`,e.profile.sub),{session_state:e.session_state,sub:e.profile.sub}):(t.info(`success, user not authenticated`),null)}catch(e){if(this.settings.monitorAnonymousSession&&e instanceof Ie)switch(e.error){case`login_required`:case`consent_required`:case`interaction_required`:case`account_selection_required`:return t.info(`success for anonymous user`),{session_state:e.session_state}}throw e}}async _signin(e,t,n){let r=await this._signinStart(e,t);return await this._signinEnd(r.url,n)}async _signinStart(e,t){let n=this._logger.create(`_signinStart`);try{let r=await this._client.createSigninRequest(e);return n.debug(`got signin request`),await t.navigate({url:r.url,state:r.state.id,response_mode:r.state.response_mode,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw n.debug(`error after preparing navigator, closing navigator window`),t.close(),e}}async _signinEnd(e,t){let n=this._logger.create(`_signinEnd`),r=await this._client.processSigninResponse(e,{});return n.debug(`got signin response`),await this._buildUser(r,t)}async _buildUser(e,t){let n=this._logger.create(`_buildUser`),r=new pt(e);if(t){if(t!==r.profile.sub)throw n.debug(`current user does not match user returned from signin. sub from signin:`,r.profile.sub),new Ie({...e,error:`login_required`});n.debug(`current user matches user returned from signin`)}return await this.storeUser(r),n.debug(`user stored`),await this._events.load(r),r}async signoutRedirect(e={}){let t=this._logger.create(`signoutRedirect`),{redirectMethod:n,...r}=e,i=await this._redirectNavigator.prepare({redirectMethod:n});await this._signoutStart({request_type:`so:r`,post_logout_redirect_uri:this.settings.post_logout_redirect_uri,...r},i),t.info(`success`)}async signoutRedirectCallback(e=window.location.href){let t=this._logger.create(`signoutRedirectCallback`),n=await this._signoutEnd(e);return t.info(`success`),n}async signoutPopup(e={}){let t=this._logger.create(`signoutPopup`),{popupWindowFeatures:n,popupWindowTarget:r,popupSignal:i,...a}=e,o=this.settings.popup_post_logout_redirect_uri,s=await this._popupNavigator.prepare({popupWindowFeatures:n,popupWindowTarget:r,popupSignal:i});await this._signout({request_type:`so:p`,post_logout_redirect_uri:o,state:o==null?void 0:{},...a},s),t.info(`success`)}async signoutPopupCallback(e=window.location.href,t=!1){let n=this._logger.create(`signoutPopupCallback`);await this._popupNavigator.callback(e,{keepOpen:t}),n.info(`success`)}async _signout(e,t){let n=await this._signoutStart(e,t);return await this._signoutEnd(n.url)}async _signoutStart(e={},t){let n=this._logger.create(`_signoutStart`);try{let r=await this._loadUser();n.debug(`loaded current user from storage`),this.settings.revokeTokensOnSignout&&await this._revokeInternal(r);let i=e.id_token_hint||r&&r.id_token;i&&(n.debug(`setting id_token_hint in signout request`),e.id_token_hint=i),await this.removeUser(),n.debug(`user removed, creating signout request`);let a=await this._client.createSignoutRequest(e);return n.debug(`got signout request`),await t.navigate({url:a.url,state:a.state?.id,scriptOrigin:this.settings.iframeScriptOrigin})}catch(e){throw n.debug(`error after preparing navigator, closing navigator window`),t.close(),e}}async _signoutEnd(e){let t=this._logger.create(`_signoutEnd`),n=await this._client.processSignoutResponse(e);return t.debug(`got signout response`),n}async signoutSilent(e={}){let t=this._logger.create(`signoutSilent`),{silentRequestTimeoutInSeconds:n,...r}=e,i=this.settings.includeIdTokenInSilentSignout?(await this._loadUser())?.id_token:void 0,a=this.settings.popup_post_logout_redirect_uri,o=await this._iframeNavigator.prepare({silentRequestTimeoutInSeconds:n});await this._signout({request_type:`so:s`,post_logout_redirect_uri:a,id_token_hint:i,...r},o),t.info(`success`)}async signoutSilentCallback(e=window.location.href){let t=this._logger.create(`signoutSilentCallback`);await this._iframeNavigator.callback(e),t.info(`success`)}async revokeTokens(e){let t=await this._loadUser();await this._revokeInternal(t,e)}async _revokeInternal(e,t=this.settings.revokeTokenTypes){let n=this._logger.create(`_revokeInternal`);if(!e)return;let r=t.filter(t=>typeof e[t]==`string`);if(!r.length)n.debug(`no need to revoke due to no token(s)`);else{for(let t of r)await this._client.revokeToken(e[t],t),n.info(`${t} revoked successfully`),t!==`access_token`&&(e[t]=null);await this.storeUser(e),n.debug(`user stored`),await this._events.load(e)}}startSilentRenew(){this._logger.create(`startSilentRenew`),this._silentRenewService.start()}stopSilentRenew(){this._silentRenewService.stop()}get _userStoreKey(){return`user:${this.settings.authority}:${this.settings.client_id}`}async _loadUser(){let e=this._logger.create(`_loadUser`),t=await this.settings.userStore.get(this._userStoreKey);return t?(e.debug(`user storageString loaded`),pt.fromStorageString(t)):(e.debug(`no user storageString`),null)}async storeUser(e){let t=this._logger.create(`storeUser`);if(e){t.debug(`storing user`);let n=e.toStorageString();await this.settings.userStore.set(this._userStoreKey,n)}else this._logger.debug(`removing user`),await this.settings.userStore.remove(this._userStoreKey),this.settings.dpop&&await this.settings.dpop.store.remove(this.settings.client_id)}async clearStaleState(){await this._client.clearStaleState()}async dpopProof(e,t,n,r){let i=await(this.settings.dpop?.store)?.get(this.settings.client_id);if(i)return await Ae.generateDPoPProof({url:e,accessToken:t?.access_token,httpMethod:n,keyPair:i.keys,nonce:r})}async generateDPoPJkt(e){let t=await e.store.get(this.settings.client_id);return t||(t=new ut(await Ae.generateDPoPKeys()),await e.store.set(this.settings.client_id,t)),await Ae.generateDPoPJkt(t.keys)}},Nt=n((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(e.unstable_now=void 0,typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=!1,_=typeof setTimeout==`function`?setTimeout:null,v=typeof clearTimeout==`function`?clearTimeout:null,y=typeof setImmediate<`u`?setImmediate:null;function b(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function x(e){if(h=!1,b(e),!m){if(n(c)!==null)m=!0,S||(S=!0,O());else{var t=n(l);t!==null&&A(x,t.startTime-e)}}}var S=!1,C=-1,w=5,T=-1;function E(){return g?!0:!(e.unstable_now()-T<w)}function D(){if(g=!1,S){var t=e.unstable_now();T=t;var i=!0;try{a:{m=!1,h&&(h=!1,v(C),C=-1),p=!0;var a=f;try{b:{for(b(t),d=n(c);d!==null&&!(d.expirationTime>t&&E());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=t);if(t=e.unstable_now(),typeof s==`function`){d.callback=s,b(t),i=!0;break b}d===n(c)&&r(c),b(t)}else r(c);d=n(c)}if(d!==null)i=!0;else{var u=n(l);u!==null&&A(x,u.startTime-t),i=!1}}break a}finally{d=null,f=a,p=!1}i=void 0}}finally{i?O():S=!1}}}var O;if(typeof y==`function`)O=function(){y(D)};else if(typeof MessageChannel<`u`){var k=new MessageChannel,ee=k.port2;k.port1.onmessage=D,O=function(){ee.postMessage(null)}}else O=function(){_(D,0)};function A(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,A(x,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,S||(S=!0,O()))),r},e.unstable_shouldYield=E,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),Pt=n(((e,t)=>{t.exports=Nt()})),Ft=n((e=>{var t=R();function n(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function r(){}var i={d:{f:r,r:function(){throw Error(n(522))},D:r,C:r,L:r,m:r,X:r,S:r,M:r},p:0,findDOMNode:null},a=Symbol.for(`react.portal`),o=Symbol.for(`react.recoverable`),s=Symbol.for(`react.optimistic_key`);function c(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:r==null?null:r===s?s:``+r,children:e,containerInfo:t,implementation:n}}var l=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){if(e===`font`)return``;if(typeof t==`string`)return t===`use-credentials`?t:``}e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=i,e.browser=function(e){return{$$typeof:o,_reason:e}},e.createPortal=function(e,t){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(n(299));return c(e,t,null,r)},e.flushSync=function(e){var t=l.T,n=i.p;try{if(l.T=null,i.p=2,e)return e()}finally{l.T=t,i.p=n,i.d.f()}},e.preconnect=function(e,t){typeof e==`string`&&(t?(t=t.crossOrigin,t=typeof t==`string`?t===`use-credentials`?t:``:void 0):t=null,i.d.C(e,t))},e.prefetchDNS=function(e){typeof e==`string`&&i.d.D(e)},e.preinit=function(e,t){if(typeof e==`string`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin),a=typeof t.integrity==`string`?t.integrity:void 0,o=typeof t.fetchPriority==`string`?t.fetchPriority:void 0;n===`style`?i.d.S(e,typeof t.precedence==`string`?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:o}):n===`script`&&i.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:o,nonce:typeof t.nonce==`string`?t.nonce:void 0})}},e.preinitModule=function(e,t){if(typeof e==`string`){if(typeof t==`object`&&t){if(t.as==null||t.as===`script`){var n=u(t.as,t.crossOrigin);i.d.M(e,{crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}}else t??i.d.M(e)}},e.preload=function(e,t){if(typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){var n=t.as,r=u(n,t.crossOrigin);i.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){if(typeof e==`string`){if(t){var n=u(t.as,t.crossOrigin);i.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0})}else i.d.m(e)}},e.requestFormReset=function(e){i.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},e.useFormStatus=function(){return l.H.useHostTransitionStatus()},e.version=`19.3.1`})),It=n(((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=Ft()})),Lt=n((e=>{var t=Pt(),n=R(),r=It();function i(e){var t=`https://react.dev/errors/`+e;if(1<arguments.length){t+=`?args[]=`+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n])}return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}function a(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function o(e){for(var t=e,n=t;n&&!n.alternate;)t=n,t.flags&4098&&(e=t.return),n=t.return;for(;t.return;)t=t.return;return t.tag===3?e:null}function s(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function c(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function l(e){if(o(e)!==e)throw Error(i(188))}function u(e){var t=e.alternate;if(!t){if(t=o(e),t===null)throw Error(i(188));return t===e?e:null}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var s=a.alternate;if(s===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===s.child){for(s=a.child;s;){if(s===n)return l(a),e;if(s===r)return l(a),t;s=s.sibling}throw Error(i(188))}if(n.return!==r.return)n=a,r=s;else{for(var c=!1,u=a.child;u;){if(u===n){c=!0,n=a,r=s;break}if(u===r){c=!0,r=a,n=s;break}u=u.sibling}if(!c){for(u=s.child;u;){if(u===n){c=!0,n=s,r=a;break}if(u===r){c=!0,r=s,n=a;break}u=u.sibling}if(!c)throw Error(i(189))}}if(n.alternate!==r)throw Error(i(190))}if(n.tag!==3)throw Error(i(188));return n.stateNode.current===n?e:t}function d(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=d(e),t!==null)return t;e=e.sibling}return null}function f(e,t,n,r,i,a){for(;e!==null;){if((e.tag===5||e.tag===27||e.tag===6)&&n(e,r,i,a)||(e.tag!==22||e.memoizedState===null)&&(t||e.tag!==5&&e.tag!==27)&&f(e.child,t,n,r,i,a))return!0;e=e.sibling}return!1}function p(e){for(e=e.return;e!==null;){if(e.tag===3||e.tag===5||e.tag===27)return e;e=e.return}return null}function m(e){var t=!1;for(e=e.return;e!==null&&(e.tag===4&&(t=!0),e.tag!==3&&e.tag!==5&&e.tag!==27);)e=e.return;return t}function h(e){var t=[null,null],n=p(e);return n===null||g(t,e,n.child,{foundSelf:!1}),t}function g(e,t,n,r){for(;n!==null;){if(n===t)r.foundSelf=!0;else if(n.tag===5||n.tag===27||n.tag===6){if(r.foundSelf)return e[1]=n,!0;e[0]=n}else if((n.tag!==22||n.memoizedState===null)&&g(e,t,n.child,r))return!0;n=n.sibling}return!1}function _(e){switch(e.tag){case 5:case 27:case 6:return e.stateNode;case 3:return e.stateNode.containerInfo;default:throw Error(i(559))}}var v=null,y=null;function b(e,t,n){return e===n||e===t&&(v=e,!0)}function x(e,t,n){return e===n?(y=e,!1):e===t&&(y!==null&&(v=e),!0)}function S(e){if(e===null)return null;do e=e===null?null:e.return;while(e&&e.tag!==5&&e.tag!==27&&e.tag!==3);return e||null}function C(e,t,n){for(var r=0,i=e;i;i=n(i))r++;i=0;for(var a=t;a;a=n(a))i++;for(;0<r-i;)e=n(e),r--;for(;0<i-r;)t=n(t),i--;for(;r--;){if(e===t||t!==null&&e===t.alternate)return e;e=n(e),t=n(t)}return null}var w=Object.assign,T=Symbol.for(`react.element`),E=Symbol.for(`react.transitional.element`),D=Symbol.for(`react.portal`),O=Symbol.for(`react.fragment`),k=Symbol.for(`react.strict_mode`),ee=Symbol.for(`react.profiler`),A=Symbol.for(`react.consumer`),j=Symbol.for(`react.context`),M=Symbol.for(`react.forward_ref`),te=Symbol.for(`react.suspense`),ne=Symbol.for(`react.suspense_list`),N=Symbol.for(`react.memo`),P=Symbol.for(`react.lazy`),re=Symbol.for(`react.activity`),F=Symbol.for(`react.legacy_hidden`),I=Symbol.for(`react.memo_cache_sentinel`),ie=Symbol.for(`react.view_transition`),L=Symbol.for(`react.recoverable`),z=Symbol.iterator;function ae(e){return typeof e!=`object`||!e?null:(e=z&&e[z]||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 O:return`Fragment`;case ee:return`Profiler`;case k:return`StrictMode`;case te:return`Suspense`;case ne:return`SuspenseList`;case re:return`Activity`;case ie:return`ViewTransition`}if(typeof e==`object`)switch(e.$$typeof){case D:return`Portal`;case j:return e.displayName||`Context`;case A:return(e._context.displayName||`Context`)+`.Consumer`;case M:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case N:return t=e.displayName||null,t===null?se(e.type)||`Memo`:t;case P:t=e._payload,e=e._init;try{return se(e(t))}catch{}}return null}var ce=Array.isArray,B=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,le=r.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V={pending:!1,data:null,method:null,action:null},ue=[],de=-1;function fe(e){return{current:e}}function pe(e){0>de||(e.current=ue[de],ue[de]=null,de--)}function me(e,t){de++,ue[de]=e.current,e.current=t}var he=fe(null),ge=fe(null),_e=fe(null),ve=fe(null);function ye(e,t){switch(me(_e,t),me(ge,e),me(he,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?dp(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=dp(t),e=fp(t,e);else switch(e){case`svg`:e=1;break;case`math`:e=2;break;default:e=0}}pe(he),me(he,e)}function be(){pe(he),pe(ge),pe(_e)}function xe(e){var t=e.memoizedState;t!==null&&(ch._currentValue=t.memoizedState,me(ve,e)),t=he.current;var n=fp(t,e.type);t!==n&&(me(ge,e),me(he,n))}function Se(e){ge.current===e&&(pe(he),pe(ge)),ve.current===e&&(pe(ve),ch._currentValue=V)}var Ce,we;function Te(e){if(Ce===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);Ce=t&&t[1]||``,we=-1<e.stack.indexOf(`
|
|
2
|
+
at`)?` (<anonymous>)`:-1<e.stack.indexOf(`@`)?`@unknown:0:0`:``}return`
|
|
3
|
+
`+Ce+e+we}var Ee=!1;function De(e,t){if(!e||Ee)return``;Ee=!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}n=!1;try{var i=Object.getOwnPropertyDescriptor(e.prototype,`props`);Object.defineProperty(e.prototype,"props",{configurable:!0,set:function(){throw Error()}}),n=!0,new e}finally{n&&(i===void 0?delete e.prototype.props:Object.defineProperty(e.prototype,"props",i))}}}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{Ee=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:``)?Te(n):``}function Oe(e,t){switch(e.tag){case 26:case 27:case 5:return Te(e.type);case 16:return Te(`Lazy`);case 13:return e.child!==t&&t!==null?Te(`Suspense Fallback`):Te(`Suspense`);case 19:return Te(`SuspenseList`);case 0:case 15:return De(e.type,!1);case 11:return De(e.type.render,!1);case 1:return De(e.type,!0);case 31:return Te(`Activity`);case 30:return Te(`ViewTransition`);default:return``}}function ke(e){try{var t=``,n=null;do t+=Oe(e,n),n=e,e=e.return;while(e);return t}catch(e){return`
|
|
7
|
+
Error generating stack: `+e.message+`
|
|
8
|
+
`+e.stack}}var Ae=Object.prototype.hasOwnProperty,je=t.unstable_scheduleCallback,Me=t.unstable_cancelCallback,Ne=t.unstable_shouldYield,Pe=t.unstable_requestPaint,Fe=t.unstable_now,Ie=t.unstable_getCurrentPriorityLevel,Le=t.unstable_ImmediatePriority,Re=t.unstable_UserBlockingPriority,ze=t.unstable_NormalPriority,Be=t.unstable_LowPriority,Ve=t.unstable_IdlePriority,He=t.log,Ue=t.unstable_setDisableYieldValue,We=null,Ge=null;function Ke(e){if(typeof He==`function`&&Ue(e),Ge&&typeof Ge.setStrictMode==`function`)try{Ge.setStrictMode(We,e)}catch{}}var qe=Math.clz32?Math.clz32:Xe,Je=Math.log,Ye=Math.LN2;function Xe(e){return e>>>=0,e===0?32:31-(Je(e)/Ye|0)|0}var Ze=256,Qe=262144,$e=4194304;function et(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&-e;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 tt(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=et(n))):i=et(o):i=et(s)):(r=s&~a,r===0?(o&=s,o===0?n||(n=s&~e,n!==0&&(i=et(n))):i=et(o)):i=et(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 nt(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function rt(e,t){t&8&&(t|=t&32);var n=e.entangledLanes;if(n!==0)for(e=e.entanglements,n&=t;0<n;){var r=31-qe(n),i=1<<r;t|=e[r],n&=~i}return t}function it(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 at(){var e=$e;return $e<<=1,!($e&62914560)&&($e=4194304),e}function ot(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function st(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function ct(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-qe(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&<(e,r,0),a!==0&&i===0&&e.tag!==0&&(e.suspendedLanes|=a&~(o&~t))}function lt(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-qe(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function ut(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-qe(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function dt(e,t){var n=t&-t;return n=n&42?1:ft(n),(n&(e.suspendedLanes|t))===0?n:0}function ft(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 pt(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function mt(){var e=le.p;return e===0?(e=window.event,e===void 0?32:wh(e.type)):e}function ht(e,t){var n=le.p;try{return le.p=e,t()}finally{le.p=n}}var gt=Math.random().toString(36).slice(2),_t=`__reactFiber$`+gt,vt=`__reactProps$`+gt,yt=`__reactContainer$`+gt,bt=`__reactEvents$`+gt,xt=`__reactListeners$`+gt,St=`__reactHandles$`+gt,Ct=`__reactResources$`+gt,wt=`__reactMarker$`+gt,Tt=`__reactLoad$`+gt;function Et(e){delete e[_t],delete e[vt],delete e[xt],delete e[St]}function Dt(e){var t;if(t=e[_t])return t;for(var n=e.parentNode;n;){if(t=n[yt]||n[_t]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=pm(e);e!==null;){if(n=e[_t])return n;e=pm(e)}return t}e=n,n=e.parentNode}return null}function Ot(e){if(e=e[_t]||e[yt]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function kt(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(i(33))}function At(e){var t=e[Ct];return t||=e[Ct]={hoistableStyles:new Map,hoistableScripts:new Map},t}function jt(e){e[wt]=!0}function Mt(e){e[Tt]=void 0}var Nt=new Set,Ft={};function Lt(e,t){Rt(e,t),Rt(e+`Capture`,t)}function Rt(e,t){for(Ft[e]=t,e=0;e<t.length;e++)Nt.add(t[e])}var zt=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]*$`),Bt={},Vt={};function Ht(e){return Ae.call(Vt,e)?!0:Ae.call(Bt,e)?!1:zt.test(e)?Vt[e]=!0:(Bt[e]=!0,!1)}var Ut=!1;function Wt(){var e=Ut;return Ut=!1,e}function Gt(e,t,n){if(Ht(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 qt(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 Yt(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function Xt(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 Zt(e){if(!e._valueTracker){var t=Yt(e)?`checked`:`value`;e._valueTracker=Xt(e,t,``+e[t])}}function Qt(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=Yt(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}var $t=/[\n"\\]/g;function en(e){return e.replace($t,function(e){return`\\`+e.charCodeAt(0).toString(16)+` `})}function tn(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`):rn(e,Jt(n)):o===`number`&&e.value==t?rn(e,Jt(e.value)):rn(e,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 nn(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)){Zt(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),Zt(e)}function rn(e,t){e.defaultValue!==``+t&&(e.defaultValue=``+t)}function an(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 on(e,t,n){t!=null&&(t=``+Jt(t),t!==e.value&&(e.value=t),n==null)?e.defaultValue!==t&&(e.defaultValue=t):e.defaultValue=n==null?``:``+Jt(n)}function sn(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(i(92));if(ce(r)){if(1<r.length)throw Error(i(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),Zt(e)}function cn(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var ln=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 un(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||ln.has(t)?t===`float`?e.cssFloat=n:e[t]=(``+n).trim():e[t]=n+`px`}function dn(e,t,n){if(t!=null&&typeof t!=`object`)throw Error(i(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf(`--`)===0?e.setProperty(r,``):r===`float`?e.cssFloat=``:e[r]=``,Ut=!0);for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&(un(e,a,r),Ut=!0)}else for(var o in t)t.hasOwnProperty(o)&&un(e,o,t[o])}function fn(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 pn=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`],[`maskType`,`mask-type`],[`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`]]),mn=/^[\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 hn(e){return mn.test(``+e)?`javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')`:e}function gn(){}var _n=null;function vn(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yn=null,bn=null;function xn(e){var t=Ot(e);if(t&&(e=t.stateNode)){var n=e[vt]||null;a:switch(e=t.stateNode,t.type){case`input`:if(tn(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="`+en(``+t)+`"][type="radio"]`),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[vt]||null;if(!a)throw Error(i(90));tn(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&Qt(r)}break a;case`textarea`:on(e,n.value,n.defaultValue);break a;case`select`:t=n.value,t!=null&&an(e,!!n.multiple,t,!1)}}}var Sn=!1;function Cn(e,t,n){if(Sn)return e(t,n);Sn=!0;try{return e(t)}finally{if(Sn=!1,(yn!==null||bn!==null)&&(Rd(),yn&&(t=yn,e=bn,bn=yn=null,xn(t),e)))for(t=0;t<e.length;t++)xn(e[t])}}function wn(e,t){var n=e.stateNode;if(n===null)return null;var r=n[vt]||null;if(r===null)return null;n=r[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(r=!r.disabled)||(e=e.type,r=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!r;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(i(231,t,typeof n));return n}var Tn=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,En=!1;if(Tn)try{var Dn={};Object.defineProperty(Dn,"passive",{get:function(){En=!0}}),window.addEventListener(`test`,Dn,Dn),window.removeEventListener(`test`,Dn,Dn)}catch{En=!1}var On=null,kn=null,An=null;function jn(){if(An)return An;var e,t=kn,n=t.length,r,i=`value`in On?On.value:On.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return An=i.slice(e,1<r?1-r:void 0)}function Mn(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 Nn(){return!0}function Pn(){return!1}function Fn(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)?Nn:Pn,this.isPropagationStopped=Pn,this}return w(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=Nn)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=Nn)},persist:function(){},isPersistent:Nn}),t}var In={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ln=Fn(In),Rn=w({},In,{view:0,detail:0}),zn=Fn(Rn),Bn,Vn,Hn,Un=w({},Rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:er,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!==Hn&&(Hn&&e.type===`mousemove`?(Bn=e.screenX-Hn.screenX,Vn=e.screenY-Hn.screenY):Vn=Bn=0,Hn=e),Bn)},movementY:function(e){return`movementY`in e?e.movementY:Vn}}),Wn=Fn(Un),Gn=Fn(w({},Un,{dataTransfer:0})),Kn=Fn(w({},Rn,{relatedTarget:0})),qn=Fn(w({},In,{animationName:0,elapsedTime:0,pseudoElement:0})),Jn=Fn(w({},In,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Yn=Fn(w({},In,{data:0})),Xn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},Zn={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`},Qn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function $n(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Qn[e])?!!t[e]:!1}function er(){return $n}var tr=Fn(w({},Rn,{key:function(e){if(e.key){var t=Xn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=Mn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?Zn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:er,charCode:function(e){return e.type===`keypress`?Mn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?Mn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),nr=Fn(w({},Un,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),rr=Fn(w({},In,{submitter:0})),ir=Fn(w({},Rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:er})),ar=Fn(w({},In,{propertyName:0,elapsedTime:0,pseudoElement:0})),or=Fn(w({},Un,{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})),sr=Fn(w({},In,{newState:0,oldState:0,source:0})),cr=[9,13,27,32],lr=Tn&&`CompositionEvent`in window,ur=null;Tn&&`documentMode`in document&&(ur=document.documentMode);var dr=Tn&&`TextEvent`in window&&!ur,fr=Tn&&(!lr||ur&&8<ur&&11>=ur),pr=` `,mr=!1;function hr(e,t){switch(e){case`keyup`:return cr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function gr(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var _r=!1;function vr(e,t){switch(e){case`compositionend`:return gr(t);case`keypress`:return t.which===32?(mr=!0,pr):null;case`textInput`:return e=t.data,e===pr&&mr?null:e;default:return null}}function yr(e,t){if(_r)return e===`compositionend`||!lr&&hr(e,t)?(e=jn(),An=kn=On=null,_r=!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 fr&&t.locale!==`ko`?null:t.data;default:return null}}var br={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 xr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!br[e.type]:t===`textarea`}function Sr(e,t,n,r){yn?bn?bn.push(r):bn=[r]:yn=r,t=Jf(t,`onChange`),0<t.length&&(n=new Ln(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var Cr=null,wr=null;function Tr(e){Bf(e,0)}function Er(e){if(Qt(kt(e)))return e}function Dr(e,t){if(e===`change`)return t}var Or=!1;if(Tn){var kr;if(Tn){var Ar=`oninput`in document;if(!Ar){var jr=document.createElement(`div`);jr.setAttribute(`oninput`,`return;`),Ar=typeof jr.oninput==`function`}kr=Ar}else kr=!1;Or=kr&&(!document.documentMode||9<document.documentMode)}function Mr(){Cr&&(Cr.detachEvent(`onpropertychange`,Nr),wr=Cr=null)}function Nr(e){if(e.propertyName===`value`&&Er(wr)){var t=[];Sr(t,wr,e,vn(e)),Cn(Tr,t)}}function Pr(e,t,n){e===`focusin`?(Mr(),Cr=t,wr=n,Cr.attachEvent(`onpropertychange`,Nr)):e===`focusout`&&Mr()}function Fr(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return Er(wr)}function Ir(e,t){if(e===`click`)return Er(t)}function Lr(e,t){if(e===`input`||e===`change`)return Er(t)}function Rr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var zr=typeof Object.is==`function`?Object.is:Rr;function Br(e,t){if(zr(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(!Ae.call(t,i)||!zr(e[i],t[i]))return!1}return!0}function Vr(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function Hr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Ur(e,t){var n=Hr(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=Hr(n)}}function Wr(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Wr(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Gr(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=Vr(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=Vr(e.document)}return t}function Kr(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 qr=Tn&&`documentMode`in document&&11>=document.documentMode,Jr=null,Yr=null,Xr=null,Zr=!1;function Qr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Zr||Jr==null||Jr!==Vr(r)||(r=Jr,`selectionStart`in r&&Kr(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}),Xr&&Br(Xr,r)||(Xr=r,r=Jf(Yr,`onSelect`),0<r.length&&(t=new Ln(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Jr)))}function $r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var ei={animationend:$r(`Animation`,`AnimationEnd`),animationiteration:$r(`Animation`,`AnimationIteration`),animationstart:$r(`Animation`,`AnimationStart`),transitionrun:$r(`Transition`,`TransitionRun`),transitionstart:$r(`Transition`,`TransitionStart`),transitioncancel:$r(`Transition`,`TransitionCancel`),transitionend:$r(`Transition`,`TransitionEnd`)},ti={},ni={};Tn&&(ni=document.createElement(`div`).style,`AnimationEvent`in window||(delete ei.animationend.animation,delete ei.animationiteration.animation,delete ei.animationstart.animation),`TransitionEvent`in window||delete ei.transitionend.transition);function ri(e){if(ti[e])return ti[e];if(!ei[e])return e;var t=ei[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in ni)return ti[e]=t[n];return e}var H=ri(`animationend`),ii=ri(`animationiteration`),ai=ri(`animationstart`),oi=ri(`transitionrun`),si=ri(`transitionstart`),ci=ri(`transitioncancel`),li=ri(`transitionend`),ui=new Map,di=`abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error fullscreenChange fullscreenError 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(` `);di.push(`scrollEnd`);function fi(e,t){ui.set(e,t),Lt(t,[e])}var pi=0;function mi(e,t){if(e.name!=null&&e.name!==`auto`)return e.name;if(t.autoName!==null)return t.autoName;e=yd.identifierPrefix;var n=pi++;return e=`_`+e+`t_`+n.toString(32)+`_`,t.autoName=e}function hi(e){if(e==null||typeof e==`string`)return e;var t=null,n=Dd;if(n!==null)for(var r=0;r<n.length;r++){var i=e[n[r]];if(i!=null){if(i===`none`)return`none`;t=t==null?i:t+(` `+i)}}return t??e.default}function gi(e,t){return e=hi(e),t=hi(t),t==null?e===`auto`?null:e:t===`auto`?null:t}var _i=typeof reportError==`function`?reportError:function(e){if(typeof window==`object`&&typeof window.ErrorEvent==`function`){var t=new window.ErrorEvent(`error`,{bubbles:!0,cancelable:!0,message:typeof e==`object`&&e&&typeof e.message==`string`?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process==`object`&&typeof process.emit==`function`){process.emit(`uncaughtException`,e);return}console.error(e)},vi=[],yi=0,bi=0;function xi(){for(var e=yi,t=bi=yi=0;t<e;){var n=vi[t];vi[t++]=null;var r=vi[t];vi[t++]=null;var i=vi[t];vi[t++]=null;var a=vi[t];if(vi[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&&Ti(n,i,a)}}function Si(e,t,n,r){vi[yi++]=e,vi[yi++]=t,vi[yi++]=n,vi[yi++]=r,bi|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function Ci(e,t,n,r){return Si(e,t,n,r),Ei(e)}function wi(e,t){return Si(e,null,null,t),Ei(e)}function Ti(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-qe(n),e=a.hiddenUpdates,r=e[i],r===null?e[i]=[t]:r.push(t),t.lane=n|536870912),a):null}function Ei(e){if(50<Od)throw Od=0,kd=null,Error(i(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Di={};function Oi(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 ki(e,t,n,r){return new Oi(e,t,n,r)}function Ai(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ji(e,t){var n=e.alternate;return n===null?(n=ki(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&1206910976,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 Mi(e,t){e.flags&=1206910978;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 Ni(e,t,n,r,a,o){var s=0;if(r=e,typeof r==`function`)Ai(r)&&(s=1);else if(typeof r==`string`)s=Jm(e,n,he.current)?26:e===`html`||e===`head`||e===`body`?27:5;else a:switch(r){case re:return e=ki(31,n,t,a),e.elementType=re,e.lanes=o,e;case O:return Pi(n.children,a,o,t);case k:s=8,a|=24;break;case ee:return e=ki(12,n,t,a|2),e.elementType=ee,e.lanes=o,e;case te:return e=ki(13,n,t,a),e.elementType=te,e.lanes=o,e;case ne:return e=ki(19,n,t,a),e.elementType=ne,e.lanes=o,e;case F:case ie:return e=a|32,e=ki(30,n,t,e),e.elementType=ie,e.lanes=o,e.stateNode={autoName:null,paired:null,clones:null,ref:null},e;default:if(typeof r==`object`&&r)switch(r.$$typeof){case j:s=10;break a;case A:s=9;break a;case M:s=11;break a;case N:s=14;break a;case P:s=16,r=null;break a}s=29,n=Error(i(130,e===null?`null`:typeof e,``)),r=null}return t=ki(s,n,t,a),t.elementType=e,t.type=r,t.lanes=o,t}function Pi(e,t,n,r){return e=ki(7,e,r,t),e.lanes=n,e}function Fi(e,t,n){return e=ki(6,e,null,t),e.lanes=n,e}function Ii(e){var t=ki(18,null,null,0);return t.stateNode=e,t}function Li(e,t,n){return t=ki(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var Ri=new WeakMap;function zi(e,t){if(typeof e==`object`&&e){var n=Ri.get(e);return n===void 0?(t={value:e,source:t,stack:ke(t)},Ri.set(e,t),t):n}return{value:e,source:t,stack:ke(t)}}var Bi=[],Vi=0,Hi=null,Ui=0,Wi=[],Gi=0,Ki=null,qi=1,Ji=``;function Yi(e,t){Bi[Vi++]=Ui,Bi[Vi++]=Hi,Hi=e,Ui=t}function Xi(e,t,n){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,Ki=e;var r=qi;e=Ji;var i=32-qe(r)-1;r&=~(1<<i),n+=1;var a=32-qe(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,qi=1<<32-qe(t)+i|n<<i|r,Ji=a+e}else qi=1<<a|n<<i|r,Ji=e}function Zi(e){e.return!==null&&(Yi(e,1),Xi(e,1,0))}function Qi(e){for(;e===Hi;)Hi=Bi[--Vi],Bi[Vi]=null,Ui=Bi[--Vi],Bi[Vi]=null;for(;e===Ki;)Ki=Wi[--Gi],Wi[Gi]=null,Ji=Wi[--Gi],Wi[Gi]=null,qi=Wi[--Gi],Wi[Gi]=null}function $i(e,t){Wi[Gi++]=qi,Wi[Gi++]=Ji,Wi[Gi++]=Ki,qi=t.id,Ji=t.overflow,Ki=e}var ea=null,ta=null,na=!1,ra=null,ia=!1,aa=Error(i(519));function oa(e){throw fa(zi(Error(i(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?`text`:`HTML`,``)),e)),aa}function sa(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[_t]=e,t[vt]=r,n){case`dialog`:Vf(`cancel`,t),Vf(`close`,t);break;case`iframe`:case`object`:case`embed`:Vf(`load`,t);break;case`video`:case`audio`:for(n=0;n<Rf.length;n++)Vf(Rf[n],t);break;case`source`:Vf(`error`,t);break;case`img`:case`image`:case`link`:Vf(`error`,t),Vf(`load`,t);break;case`details`:Vf(`toggle`,t);break;case`input`:Vf(`invalid`,t),nn(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case`select`:Vf(`invalid`,t);break;case`textarea`:Vf(`invalid`,t),sn(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||ep(t.textContent,n)?(r.popover!=null&&(Vf(`beforetoggle`,t),Vf(`toggle`,t)),r.onScroll!=null&&Vf(`scroll`,t),r.onScrollEnd!=null&&Vf(`scrollend`,t),r.onClick!=null&&(t.onclick=gn),t=!0):t=!1,t||oa(e,!0)}function ca(e){for(ea=e.return;ea;)switch(ea.tag){case 5:case 31:case 13:ia=!1;return;case 27:case 3:ia=!0;return;default:ea=ea.return}}function la(e){if(e!==ea)return!1;if(!na)return ca(e),na=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=n===`form`||n===`button`||mp(e.type,e.memoizedProps)),n=!n),n&&ta&&oa(e),ca(e),t===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=fm(e)}else if(t===31){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(317));ta=fm(e)}else t===27?(t=ta,Cp(e.type)?(e=dm,dm=null,ta=e):ta=t):ta=ea?um(e.stateNode.nextSibling):null;return!0}function ua(){ta=ea=null,na=!1}function da(){var e=ra;return e!==null&&(fd===null?fd=e:fd.push.apply(fd,e),ra=null),e}function fa(e){ra===null?ra=[e]:ra.push(e)}var pa=fe(null),ma=null,ha=null;function ga(e,t,n){me(pa,t._currentValue),t._currentValue=n}function _a(e){e._currentValue=pa.current,pe(pa)}function va(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 ya(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var o=a.dependencies;if(o!==null){var s=a.child;o=o.firstContext;a:for(;o!==null;){var c=o;o=a;for(var l=0;l<t.length;l++)if(c.context===t[l]){o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),va(o.return,n,e),r||(s=null);break a}o=c.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(i(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),va(s,n,e),s=null}else a.tag===13&&a.memoizedState!==null&&a.memoizedState.dehydrated===null?(a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),va(a.return,n,e),s=a.child,s=s===null?null:s.sibling):s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function ba(e,t,n,r){e=null;for(var a=t,o=!1;a!==null;){if(!o){if(a.flags&524288)o=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(i(387));if(s=s.memoizedProps,s!==null){var c=a.type;zr(a.pendingProps.value,s.value)||(e===null?e=[c]:e.push(c))}}else if(a===ve.current){if(s=a.alternate,s===null)throw Error(i(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e===null?e=[ch]:e.push(ch))}a=a.return}return e!==null&&ya(t,e,n,r),t.flags|=262144,e!==null}function xa(e){for(e=e.firstContext;e!==null;){if(!zr(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Sa(e){ma=e,ha=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Ca(e){return Ta(ma,e)}function wa(e,t){return ma===null&&Sa(e),Ta(e,t)}function Ta(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},ha===null){if(e===null)throw Error(i(308));ha=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else ha=ha.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()})}},Da=t.unstable_scheduleCallback,Oa=t.unstable_NormalPriority,ka={$$typeof:j,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Aa(){return{controller:new Ea,data:new Map,refCount:0}}function ja(e){e.refCount--,e.refCount===0&&Da(Oa,function(){e.controller.abort()})}function Ma(e,t){if(e.pendingLanes&4194048){var n=e.transitionTypes;for(n===null&&(n=e.transitionTypes=[]),e=0;e<t.length;e++){var r=t[e];n.indexOf(r)===-1&&n.push(r)}}}var Na=null;function Pa(e){var t=e.transitionTypes;return e.transitionTypes=null,t}var Fa=null,Ia=0,La=0,Ra=null;function za(e,t){if(Fa===null){var n=Fa=[];Ia=0,La=Nf(),Ra={status:`pending`,value:void 0,then:function(e){n.push(e)}}}return Ia++,t.then(Ba,Ba),t}function Ba(){if(--Ia===0&&(Na=null,Fa!==null)){Ra!==null&&(Ra.status=`fulfilled`);var e=Fa;Fa=null,La=0,Ra=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Va(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 Ha=B.S;B.S=function(e,t){if(hd=Fe(),typeof t==`object`&&t&&typeof t.then==`function`&&za(e,t),Na!==null)for(var n=yf;n!==null;)Ma(n,Na),n=n.next;if(n=e.types,n!==null){for(var r=yf;r!==null;)Ma(r,n),r=r.next;if(La!==0){r=Na,r===null&&(r=Na=[]);for(var i=0;i<n.length;i++){var a=n[i];r.indexOf(a)===-1&&r.push(a)}}}Ha!==null&&Ha(e,t)};var Ua=fe(null);function Wa(){var e=Ua.current;return e===null?Xu.pooledCache:e}function Ga(e,t){t===null?me(Ua,Ua.current):me(Ua,t.pool)}function Ka(){var e=Wa();return e===null?null:{parent:ka._currentValue,pool:e}}var qa=Error(i(460)),Ja=Error(i(474)),Ya=Error(i(542)),Xa={then:function(){}};function Za(e){return e=e.status,e===`fulfilled`||e===`rejected`}function Qa(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(gn,gn),t=n),t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e===void 0&&!(`reason`in t)?Error(i(600)):e;default:if(typeof t.status==`string`)t.then(gn,gn);else{if(e=Xu,e!==null&&100<e.shellSuspendCounter)throw Error(i(482));e=t,e.status=`pending`,e.then(function(e){if(t.status===`pending`){var n=t;n.status=`fulfilled`,n.value=e}},function(e){if(t.status===`pending`){var n=t;n.status=`rejected`,n.reason=e}})}switch(t.status){case`fulfilled`:return t.value;case`rejected`:throw e=t.reason,no(e),e}throw eo=t,qa}}function $a(e){try{var t=e._init;return t(e._payload)}catch(e){throw typeof e==`object`&&e&&typeof e.then==`function`?(eo=e,qa):e}}var eo=null;function to(){if(eo===null)throw Error(i(459));var e=eo;return eo=null,e}function no(e){if(e===qa||e===Ya)throw Error(i(483))}var ro=null,io=0;function ao(e){var t=io;return io+=1,ro===null&&(ro=[]),Qa(ro,e,t)}function U(e,t){t=t.props.ref,e.ref=t===void 0?null:t}function oo(e,t){throw t.$$typeof===T?Error(i(525)):(e=Object.prototype.toString.call(t),Error(i(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e)))}function so(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;e!==null;)e.key===null?t.set(e.index,e):t.set(e.key,e),e=e.sibling;return t}function a(e,t){return e=ji(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=134217730,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=134217730),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=Fi(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===O?(e=d(e,t,n.props.children,r,n.key),U(e,n),e):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===P&&$a(i)===t.type)?(t=a(t,n.props),U(t,n),t.return=e,t):(t=Ni(n.type,n.key,n.props,null,e.mode,r),U(t,n),t.return=e,t)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=Li(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=Pi(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`||typeof t==`bigint`)return t=Fi(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case E:return n=Ni(t.type,t.key,t.props,null,e.mode,n),U(n,t),n.return=e,n;case D:return t=Li(t,e.mode,n),t.return=e,t;case P:return t=$a(t),f(e,t,n)}if(ce(t)||ae(t))return t=Pi(t,e.mode,n,null),t.return=e,t;if(typeof t.then==`function`)return f(e,ao(t),n);if(t.$$typeof===j)return f(e,wa(e,t),n);oo(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 E:return n.key===i?l(e,t,n,r):null;case D:return n.key===i?u(e,t,n,r):null;case P:return n=$a(n),p(e,t,n,r)}if(ce(n)||ae(n))return i===null?d(e,t,n,r,null):null;if(typeof n.then==`function`)return p(e,t,ao(n),r);if(n.$$typeof===j)return p(e,t,wa(e,n),r);oo(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 E:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case D:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case P:return r=$a(r),m(e,t,n,r,i)}if(ce(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,ao(r),i);if(r.$$typeof===j)return m(e,t,n,wa(t,r),i);oo(t,r)}return null}function h(i,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(i,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(i,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(i,d),na&&Yi(i,h),l;if(d===null){for(;h<s.length;h++)d=f(i,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return na&&Yi(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(_.key===null?h:_.key)),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(i,e)}),na&&Yi(i,h),l}function g(a,s,c,l){if(c==null)throw Error(i(151));for(var u=null,d=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),na&&Yi(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return na&&Yi(a,g),u}for(h=r(h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&(_=v.alternate,_!==null&&h.delete(_.key===null?g:_.key)),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),na&&Yi(a,g),u}function _(e,r,o,c){if(typeof o==`object`&&o&&o.type===O&&o.key===null&&o.props.ref===void 0&&(o=o.props.children),typeof o==`object`&&o){switch(o.$$typeof){case E:a:{for(var l=o.key;r!==null;){if(r.key===l){if(l=o.type,l===O){if(r.tag===7){n(e,r.sibling),c=a(r,o.props.children),U(c,o),c.return=e,e=c;break a}}else if(r.elementType===l||typeof l==`object`&&l&&l.$$typeof===P&&$a(l)===r.type){n(e,r.sibling),c=a(r,o.props),U(c,o),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}o.type===O?(c=Pi(o.props.children,e.mode,c,o.key),U(c,o),c.return=e,e=c):(c=Ni(o.type,o.key,o.props,null,e.mode,c),U(c,o),c.return=e,e=c)}return s(e);case D:a:{for(l=o.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(e,r.sibling),c=a(r,o.children||[]),c.return=e,e=c;break a}n(e,r);break}t(e,r),r=r.sibling}c=Li(o,e.mode,c),c.return=e,e=c}return s(e);case P:return o=$a(o),_(e,r,o,c)}if(ce(o))return h(e,r,o,c);if(ae(o)){if(l=ae(o),typeof l!=`function`)throw Error(i(150));return o=l.call(o),g(e,r,o,c)}if(typeof o.then==`function`)return _(e,r,ao(o),c);if(o.$$typeof===j)return _(e,r,wa(e,o),c);oo(e,o)}return typeof o==`string`&&o!==``||typeof o==`number`||typeof o==`bigint`?(o=``+o,r!==null&&r.tag===6?(n(e,r.sibling),c=a(r,o),c.return=e,e=c):(n(e,r),c=Fi(o,e.mode,c),c.return=e,e=c),s(e)):n(e,r)}return function(e,t,n,r){try{io=0;var i=_(e,t,n,r);return ro=null,i}catch(t){if(t===qa||t===Ya)throw t;var a=ki(29,t,null,e.mode);return a.lanes=r,a.return=e,a}}}var W=so(!0),co=so(!1),lo=!1;function uo(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function fo(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 po(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function mo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Yu&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Ei(e),Ti(e,null,n),t}return Si(e,r,t,n),Ei(e)}function ho(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,ut(e,n)}}function go(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}else e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var _o=!1;function vo(){if(_o){var e=Ra;if(e!==null)throw e}}function yo(e,t,n,r){_o=!1;var i=e.updateQueue;lo=!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?(Qu&f)===f:(r&f)===f){f!==0&&f===La&&(_o=!0),u!==null&&(u=u.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});a:{var m=e,h=s;f=t;var g=n;switch(h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(g,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(g,d,f):m,f==null)break a;d=w({},d,f);break a;case 2:lo=!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),od|=o,e.lanes=o,e.memoizedState=d}}function bo(e,t){if(typeof e!=`function`)throw Error(i(191,e));e.call(t)}function xo(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)bo(n[e],t)}var So=fe(null),Co=fe(0);function wo(e,t){e=id,me(Co,e),me(So,t),id=e|t.baseLanes}function To(){me(Co,id),me(So,So.current)}function Eo(){id=Co.current,pe(So),pe(Co)}var Do=fe(null),Oo=null;function ko(e){var t=e.alternate;me(Po,Po.current&1),me(Do,e),Oo===null&&(t===null||So.current!==null||t.memoizedState!==null)&&(Oo=e)}function Ao(e){me(Po,Po.current),me(Do,e),Oo===null&&(Oo=e)}function jo(e){e.tag===22?(me(Po,Po.current),me(Do,e),Oo===null&&(Oo=e)):Mo()}function Mo(){me(Po,Po.current),me(Do,Do.current)}function No(e){pe(Do),Oo===e&&(Oo=null),pe(Po)}var Po=fe(0);function Fo(e,t){me(Do,Do.current),me(Po,t)}function Io(e){pe(Po),pe(Do),Oo===e&&(Oo=null)}function Lo(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||sm(n)||cm(n)))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==`independent`){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 Ro=0,zo=null,Bo=null,Vo=null,Ho=!1,Uo=!1,Wo=!1,Go=0,Ko=0,qo=null,Jo=0;function Yo(){throw Error(i(321))}function Xo(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!zr(e[n],t[n]))return!1;return!0}function Zo(e,t,n,r,i,a){return Ro=a,zo=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,B.H=e===null||e.memoizedState===null?pc:mc,Wo=!1,a=n(r,i),Wo=!1,Uo&&(a=$o(t,n,r,i)),Qo(e),a}function Qo(e){B.H=fc;var t=Bo!==null&&Bo.next!==null;if(Ro=0,Vo=Bo=zo=null,Ho=!1,Ko=0,qo=null,t)throw Error(i(300));e===null||jc||(e=e.dependencies,e!==null&&xa(e)&&(jc=!0))}function $o(e,t,n,r){zo=e;var a=0;do{if(Uo&&(qo=null),Ko=0,Uo=!1,25<=a)throw Error(i(301));if(a+=1,Vo=Bo=null,e.updateQueue!=null){var o=e.updateQueue;o.lastEffect=null,o.events=null,o.stores=null,o.memoCache!=null&&(o.memoCache.index=0)}B.H=hc,o=t(n,r)}while(Uo);return o}function es(){var e=B.H,t=e.useState()[0];return t=typeof t.then==`function`?ss(t):t,e=e.useState()[0],(Bo===null?null:Bo.memoizedState)!==e&&(zo.flags|=1024),t}function ts(){var e=Go!==0;return Go=0,e}function ns(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function rs(e){if(Ho){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}Ho=!1}Ro=0,Vo=Bo=zo=null,Uo=!1,Ko=Go=0,qo=null}function is(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Vo===null?zo.memoizedState=Vo=e:Vo=Vo.next=e,Vo}function as(){if(Bo===null){var e=zo.alternate;e=e===null?null:e.memoizedState}else e=Bo.next;var t=Vo===null?zo.memoizedState:Vo.next;if(t!==null)Vo=t,Bo=e;else{if(e===null)throw zo.alternate===null?Error(i(467)):Error(i(310));Bo=e,e={memoizedState:Bo.memoizedState,baseState:Bo.baseState,baseQueue:Bo.baseQueue,queue:Bo.queue,next:null},Vo===null?zo.memoizedState=Vo=e:Vo=Vo.next=e}return Vo}function os(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ss(e){var t=Ko;return Ko+=1,qo===null&&(qo=[]),e=Qa(qo,e,t),t=zo,(Vo===null?t.memoizedState:Vo.next)===null&&(t=t.alternate,B.H=t===null||t.memoizedState===null?pc:mc),e}function cs(e){if(typeof e==`object`&&e){if(typeof e.then==`function`)return ss(e);if(e.$$typeof===L)return;if(e.$$typeof===j)return Ca(e)}throw Error(i(438,String(e)))}function ls(e){var t=null,n=zo.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=zo.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=os(),zo.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]=I;return t.index++,n}function us(e,t){return typeof t==`function`?t(e):t}function ds(e){return fs(as(),Bo,e)}function fs(e,t,n){var r=e.queue;if(r===null)throw Error(i(311));r.lastRenderedReducer=n;var a=e.baseQueue,o=r.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}t.baseQueue=a=o,r.pending=null}if(o=e.baseState,a===null)e.memoizedState=o;else{t=a.next;var c=s=null,l=null,u=t,d=!1;do{var f=u.lane&-536870913;if(f===u.lane?(Ro&f)===f:(Qu&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===La&&(d=!0);else if((Ro&p)===p){u=u.next,p===La&&(d=!0);continue}else f={lane:0,revertLane:u.revertLane,gesture:null,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=f,s=o):l=l.next=f,zo.lanes|=p,od|=p;f=u.action,Wo&&n(o,f),o=u.hasEagerState?u.eagerState:n(o,f)}else p={lane:f,revertLane:u.revertLane,gesture:u.gesture,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null},l===null?(c=l=p,s=o):l=l.next=p,zo.lanes|=f,od|=f;u=u.next}while(u!==null&&u!==t);if(l===null?s=o:l.next=c,!zr(o,e.memoizedState)&&(jc=!0,d&&(n=Ra,n!==null)))throw n;e.memoizedState=o,e.baseState=s,e.baseQueue=l,r.lastRenderedState=o}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function ps(e){var t=as(),n=t.queue;if(n===null)throw Error(i(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);zr(o,t.memoizedState)||(jc=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,r]}function ms(e,t,n){var r=zo,a=as(),o=na;if(o){if(n===void 0)throw Error(i(407));n=n()}else n=t();var s=!zr((Bo||a).memoizedState,n);if(s&&(a.memoizedState=n,jc=!0),a=a.queue,G(_s.bind(null,r,a,e),[e]),e=a.getSnapshot!==t||s||Vo!==null&&!!(Vo.memoizedState.tag&1),Ps(e?9:8,{destroy:void 0},gs.bind(null,r,a,n,t),null),e){if(r.flags|=2048,Xu===null)throw Error(i(349));o||Ro&127||hs(r,t,n)}return n}function hs(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=zo.updateQueue,t===null?(t=os(),zo.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function gs(e,t,n,r){t.value=n,t.getSnapshot=r,vs(t)&&ys(e)}function _s(e,t,n){return n(function(){vs(t)&&ys(e)})}function vs(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!zr(e,n)}catch{return!0}}function ys(e){var t=wi(e,2);t!==null&&Nd(t,e,2)}function bs(e){var t=is();if(typeof e==`function`){var n=e;if(e=n(),Wo){Ke(!0);try{n()}finally{Ke(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:e},t}function xs(e,t,n,r){return e.baseState=n,fs(e,Bo,typeof r==`function`?r:us)}function Ss(e,t,n,r,a){if(lc(e))throw Error(i(485));if(e=t.action,e!==null){var o={payload:a,action:e,next:null,isTransition:!0,status:`pending`,value:null,reason:null,listeners:[],then:function(e){o.listeners.push(e)}};B.T===null?o.isTransition=!1:n(!0),r(o),n=t.pending,n===null?(o.next=t.pending=o,Cs(t,o)):(o.next=n.next,t.pending=n.next=o)}}function Cs(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=B.T,o={};o.types=a===null?null:a.types,B.T=o;try{var s=n(i,r),c=B.S;c!==null&&c(o,s),ws(e,t,s)}catch(n){Es(e,t,n)}finally{a!==null&&o.types!==null&&(a.types=o.types),B.T=a}}else try{a=n(i,r),ws(e,t,a)}catch(n){Es(e,t,n)}}function ws(e,t,n){typeof n==`object`&&n&&typeof n.then==`function`?n.then(function(n){Ts(e,t,n)},function(n){return Es(e,t,n)}):Ts(e,t,n)}function Ts(e,t,n){t.status=`fulfilled`,t.value=n,Ds(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,Cs(e,n)))}function Es(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status=`rejected`,t.reason=n,Ds(t),t=t.next;while(t!==r)}e.action=null}function Ds(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function Os(e,t){return t}function ks(e,t){if(na){var n=Xu.formState;if(n!==null){a:{var r=zo;if(na){if(ta){b:{for(var i=ta,a=ia;i.nodeType!==8;)if(!a||(i=um(i.nextSibling),i===null)){i=null;break b}a=i.data,i=a===`F!`||a===`F`?i:null}if(i){ta=um(i.nextSibling),r=i.data===`F!`;break a}}oa(r)}r=!1}r&&(t=n[0])}}return n=is(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Os,lastRenderedState:t},n.queue=r,n=oc.bind(null,zo,r),r.dispatch=n,r=bs(!1),a=cc.bind(null,zo,!1,r.queue),r=is(),i={state:t,dispatch:null,action:e,pending:null},r.queue=i,n=Ss.bind(null,zo,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function As(e){return js(as(),Bo,e)}function js(e,t,n){if(t=fs(e,t,Os)[0],e=ds(us)[0],typeof t==`object`&&t&&typeof t.then==`function`)try{var r=ss(t)}catch(e){throw e===qa?Ya:e}else r=t;t=as();var i=t.queue,a=i.dispatch;return n!==t.memoizedState&&(zo.flags|=2048,Ps(9,{destroy:void 0},Ms.bind(null,i,n),null)),[r,a,e]}function Ms(e,t){e.action=t}function Ns(e){var t=as(),n=Bo;if(n!==null)return js(t,n,e);as(),t=t.memoizedState,n=as();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ps(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=zo.updateQueue,t===null&&(t=os(),zo.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 Fs(){return as().memoizedState}function Is(e,t,n,r){var i=is();zo.flags|=e,i.memoizedState=Ps(1|t,{destroy:void 0},n,r===void 0?null:r)}function Ls(e,t,n,r){var i=as();r=r===void 0?null:r;var a=i.memoizedState.inst;Bo!==null&&r!==null&&Xo(r,Bo.memoizedState.deps)?i.memoizedState=Ps(t,a,n,r):(zo.flags|=e,i.memoizedState=Ps(1|t,a,n,r))}function Rs(e,t){Is(8390656,8,e,t)}function G(e,t){Ls(2048,8,e,t)}function zs(e){zo.flags|=4;var t=zo.updateQueue;if(t===null)t=os(),zo.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function Bs(e){var t=as().memoizedState;return zs({ref:t,nextImpl:e}),function(){if(Yu&2)throw Error(i(440));return t.impl.apply(void 0,arguments)}}function Vs(e,t){return Ls(4,2,e,t)}function Hs(e,t){return Ls(4,4,e,t)}function Us(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 Ws(e,t,n){n=n==null?null:n.concat([e]),Ls(4,4,Us.bind(null,t,e),n)}function Gs(){}function Ks(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&Xo(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function qs(e,t){var n=as();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&Xo(t,r[1]))return r[0];if(r=e(),Wo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r}function Js(e,t,n){return n===void 0||Ro&1073741824&&!(Qu&261930)?e.memoizedState=t:(e.memoizedState=n,e=jd(),zo.lanes|=e,od|=e,n)}function Ys(e,t,n,r){return zr(n,t)?n:So.current===null?!(Ro&106)||Ro&1073741824&&!(Qu&261930)?(jc=!0,e.memoizedState=n):(e=jd(),zo.lanes|=e,od|=e,t):(e=Js(e,n,r),zr(e,t)||(jc=!0),e)}function Xs(e,t,n,r,i){var a=le.p;le.p=a!==0&&8>a?a:8;var o=B.T,s={};s.types=o===null?null:o.types,B.T=s,cc(e,!1,t,n);try{var c=i(),l=B.S;l!==null&&l(s,c),typeof c==`object`&&c&&typeof c.then==`function`?sc(e,t,Va(c,r),Ad(e)):sc(e,t,r,Ad(e))}catch(n){sc(e,t,{then:function(){},status:`rejected`,reason:n},Ad())}finally{le.p=a,o!==null&&s.types!==null&&(o.types=s.types),B.T=o}}function Zs(){}function Qs(e,t,n,r){if(e.tag!==5)throw Error(i(476));var a=$s(e).queue;Xs(e,a,t,V,n===null?Zs:function(){return ec(e),n(r)})}function $s(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:V,baseState:V,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:V},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function ec(e){var t=$s(e);t.next===null&&(t=e.alternate.memoizedState),sc(e,t.next.queue,{},Ad())}function tc(){return Ca(ch)}function nc(){return as().memoizedState}function rc(){return as().memoizedState}function ic(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Ad();e=po(n);var r=mo(t,e,n);r!==null&&(Nd(r,t,n),ho(r,t,n)),t={cache:Aa()},e.payload=t;return}t=t.return}}function ac(e,t,n){var r=Ad();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},lc(e)?uc(t,n):(n=Ci(e,t,n,r),n!==null&&(Nd(n,e,r),dc(n,t,r)))}function oc(e,t,n){sc(e,t,n,Ad())}function sc(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(lc(e))uc(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,zr(s,o))return Si(e,t,i,0),Xu===null&&xi(),!1}catch{}if(n=Ci(e,t,i,r),n!==null)return Nd(n,e,r),dc(n,t,r),!0}return!1}function cc(e,t,n,r){if(r={lane:2,revertLane:Nf(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},lc(e)){if(t)throw Error(i(479))}else t=Ci(e,n,r,2),t!==null&&Nd(t,e,2)}function lc(e){var t=e.alternate;return e===zo||t!==null&&t===zo}function uc(e,t){Uo=Ho=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function dc(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,ut(e,n)}}var fc={readContext:Ca,use:cs,useCallback:Yo,useContext:Yo,useEffect:Yo,useImperativeHandle:Yo,useLayoutEffect:Yo,useInsertionEffect:Yo,useMemo:Yo,useReducer:Yo,useRef:Yo,useState:Yo,useDebugValue:Yo,useDeferredValue:Yo,useTransition:Yo,useSyncExternalStore:Yo,useId:Yo,useHostTransitionStatus:Yo,useFormState:Yo,useActionState:Yo,useOptimistic:Yo,useMemoCache:Yo,useCacheRefresh:Yo,useEffectEvent:Yo},pc={readContext:Ca,use:cs,useCallback:function(e,t){return is().memoizedState=[e,t===void 0?null:t],e},useContext:Ca,useEffect:Rs,useImperativeHandle:function(e,t,n){n=n==null?null:n.concat([e]),Is(4194308,4,Us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Is(4194308,4,e,t)},useInsertionEffect:function(e,t){Is(4,2,e,t)},useMemo:function(e,t){var n=is();t=t===void 0?null:t;var r=e();if(Wo){Ke(!0);try{e()}finally{Ke(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=is();if(n!==void 0){var i=n(t);if(Wo){Ke(!0);try{n(t)}finally{Ke(!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=ac.bind(null,zo,e),[r.memoizedState,e]},useRef:function(e){var t=is();return e={current:e},t.memoizedState=e},useState:function(e){e=bs(e);var t=e.queue,n=oc.bind(null,zo,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Gs,useDeferredValue:function(e,t){return Js(is(),e,t)},useTransition:function(){var e=bs(!1);return e=Xs.bind(null,zo,e.queue,!0,!1),is().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=zo,a=is();if(na){if(n===void 0)throw Error(i(407));n=n()}else{if(n=t(),Xu===null)throw Error(i(349));Qu&127||hs(r,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,Rs(_s.bind(null,r,o,e),[e]),r.flags|=2048,Ps(9,{destroy:void 0},gs.bind(null,r,o,n,t),null),n},useId:function(){var e=is(),t=Xu.identifierPrefix;if(na){var n=Ji,r=qi;n=(r&~(1<<32-qe(r)-1)).toString(32)+n,t=`_`+t+`R_`+n,n=Go++,0<n&&(t+=`H`+n.toString(32)),t+=`_`}else n=Jo++,t=`_`+t+`r_`+n.toString(32)+`_`;return e.memoizedState=t},useHostTransitionStatus:tc,useFormState:ks,useActionState:ks,useOptimistic:function(e){var t=is();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=cc.bind(null,zo,!0,n),n.dispatch=t,[e,t]},useMemoCache:ls,useCacheRefresh:function(){return is().memoizedState=ic.bind(null,zo)},useEffectEvent:function(e){var t=is(),n={impl:e};return t.memoizedState=n,function(){if(Yu&2)throw Error(i(440));return n.impl.apply(void 0,arguments)}}},mc={readContext:Ca,use:cs,useCallback:Ks,useContext:Ca,useEffect:G,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:ds,useRef:Fs,useState:function(){return ds(us)},useDebugValue:Gs,useDeferredValue:function(e,t){return Ys(as(),Bo.memoizedState,e,t)},useTransition:function(){var e=ds(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:nc,useHostTransitionStatus:tc,useFormState:As,useActionState:As,useOptimistic:function(e,t){return xs(as(),Bo,e,t)},useMemoCache:ls,useCacheRefresh:rc,useEffectEvent:Bs},hc={readContext:Ca,use:cs,useCallback:Ks,useContext:Ca,useEffect:G,useImperativeHandle:Ws,useInsertionEffect:Vs,useLayoutEffect:Hs,useMemo:qs,useReducer:ps,useRef:Fs,useState:function(){return ps(us)},useDebugValue:Gs,useDeferredValue:function(e,t){var n=as();return Bo===null?Js(n,e,t):Ys(n,Bo.memoizedState,e,t)},useTransition:function(){var e=ps(us)[0],t=as().memoizedState;return[typeof e==`boolean`?e:ss(e),t]},useSyncExternalStore:ms,useId:nc,useHostTransitionStatus:tc,useFormState:Ns,useActionState:Ns,useOptimistic:function(e,t){var n=as();return Bo===null?(n.baseState=e,[e,n.queue.dispatch]):xs(n,Bo,e,t)},useMemoCache:ls,useCacheRefresh:rc,useEffectEvent:Bs};function gc(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:w({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var _c={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=po(r);i.payload=t,n!=null&&(i.callback=n),t=mo(e,i,r),t!==null&&(Nd(t,e,r),ho(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ad(),i=po(r);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=mo(e,i,r),t!==null&&(Nd(t,e,r),ho(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ad(),r=po(n);r.tag=2,t!=null&&(r.callback=t),t=mo(e,r,n),t!==null&&(Nd(t,e,n),ho(t,e,n))}};function vc(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?!Br(n,r)||!Br(i,a):!0}function yc(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&&_c.enqueueReplaceState(t,t.state,null)}function bc(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=w({},n)),e)n[i]===void 0&&(n[i]=e[i]);return n}function xc(e){_i(e)}function Sc(e){console.error(e)}function Cc(e){_i(e)}function wc(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(e){setTimeout(function(){throw e})}}function Tc(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 Ec(e,t,n){return n=po(n),n.tag=3,n.payload={element:null},n.callback=function(){wc(e,t)},n}function Dc(e){return e=po(e),e.tag=3,e}function Oc(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(){Tc(t,n,r)}}var o=n.stateNode;o!==null&&typeof o.componentDidCatch==`function`&&(e.callback=function(){Tc(t,n,r),typeof i!=`function`&&(vd===null?vd=new Set([this]):vd.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:e===null?``:e})})}function kc(e,t,n,r,a){if(n.flags|=32768,typeof r==`object`&&r&&typeof r.then==`function`){if(t=n.alternate,t!==null&&ba(t,n,a,!0),n=Do.current,n!==null){switch(n.tag){case 31:case 13:case 19:return Oo===null?Gd():n.alternate===null&&ad===0&&(ad=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===Xa?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),pf(e,r,a)),!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)),pf(e,r,a)),!1}throw Error(i(435,n.tag))}return pf(e,r,a),Gd(),!1}if(na)return t=Do.current,t===null?(r!==aa&&(t=Error(i(423),{cause:r}),fa(zi(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=zi(r,n),a=Ec(e.stateNode,r,a),go(e,a),ad!==4&&(ad=2)):(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==aa&&(e=Error(i(422),{cause:r}),fa(zi(e,n)))),!1;var o=Error(i(520),{cause:r});if(o=zi(o,n),dd===null?dd=[o]:dd.push(o),ad!==4&&(ad=2),t===null)return!0;r=zi(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Ec(n.stateNode,r,e),go(n,e),!1;case 1:if(t=n.type,o=n.stateNode,!(n.flags&128)&&(typeof t.getDerivedStateFromError==`function`||o!==null&&typeof o.componentDidCatch==`function`&&(vd===null||!vd.has(o))))return n.flags|=65536,a&=-a,n.lanes|=a,a=Dc(a),Oc(a,e,n,r),go(n,a),!1;break;case 22:if(n.memoizedState!==null)return n.flags|=65536,!1}n=n.return}while(n!==null);return!1}var Ac=Error(i(461)),jc=!1;function Mc(e,t,n,r){t.child=e===null?co(t,null,n,r):W(t,e.child,n,r)}function Nc(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 Sa(t),r=Zo(e,t,n,o,a,i),s=ts(),e!==null&&!jc?(ns(e,t,i),sl(e,t,i)):(na&&s&&Zi(t),t.flags|=1,Mc(e,t,r,i),t.child)}function Pc(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,Fc(e,t,a,r,i)):(e=Ni(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,!cl(e,i)){var o=a.memoizedProps;if(n=n.compare,n=n===null?Br:n,n(o,r)&&e.ref===t.ref)return sl(e,t,i)}return t.flags|=1,e=ji(a,r),e.ref=t.ref,e.return=t,t.child=e}function Fc(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Br(a,r)&&e.ref===t.ref){if(jc=!1,t.pendingProps=r=a,cl(e,i))e.flags&131072&&(jc=!0);else return t.lanes=e.lanes,sl(e,t,i)}}return Uc(e,t,n,r,i)}function Ic(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 Rc(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?To():wo(t,a),jo(t);else return r=t.lanes=536870912,Rc(e,t,a===null?n:a.baseLanes|n,n,r)}else a===null?(e!==null&&Ga(t,null),To(),Mo()):(Ga(t,a.cachePool),wo(t,a),Mo(),t.memoizedState=null);return Mc(e,t,i,n),t.child}function Lc(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Rc(e,t,n,r,i){var a=Wa();return a=a===null?null:{parent:ka._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},e!==null&&Ga(t,null),To(),jo(t),e!==null&&ba(e,t,r,!0),t.childLanes=i,null}function zc(e,t){return t=Qc({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function Bc(e,t,n){return W(t,e.child,null,n),e=zc(t,t.pendingProps),e.flags|=2,No(t),t.memoizedState=null,e}function Vc(e,t,n){var r=t.pendingProps,a=!!(t.flags&128);if(t.flags&=-129,e===null){if(na){if(r.mode===`hidden`)return e=zc(t,r),t.lanes=536870912,e.memoizedState={baseLanes:0,cachePool:null},Lc(null,e);if(Ao(t),(e=ta)?(e=om(e,ia),e=e!==null&&e.data===`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw oa(t);return t.lanes=536870912,null}return zc(t,r)}var o=e.memoizedState;if(o!==null){var s=o.dehydrated;if(Ao(t),a){if(t.flags&256)t.flags&=-257,t=Bc(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(i(558))}else if(jc||ba(e,t,n,!1),a=(n&e.childLanes)!==0,jc||a){if(So.current===null){if(r=Xu,r!==null&&(s=dt(r,n),s!==0&&s!==o.retryLane))throw o.retryLane=s,wi(e,s),Nd(r,e,s),Ac;Gd()}t=Bc(e,t,n)}else e=o.treeContext,ta=um(s.nextSibling),ea=t,na=!0,ra=null,ia=!1,e!==null&&$i(t,e),t=zc(t,r),t.flags|=134221824;return t}return e=ji(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Hc(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!=`function`&&typeof n!=`object`)throw Error(i(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Uc(e,t,n,r,i){return Sa(t),n=Zo(e,t,n,r,void 0,i),r=ts(),e!==null&&!jc?(ns(e,t,i),sl(e,t,i)):(na&&r&&Zi(t),t.flags|=1,Mc(e,t,n,i),t.child)}function Wc(e,t,n,r,i,a){return Sa(t),t.updateQueue=null,n=$o(t,r,n,i),Qo(e),r=ts(),e!==null&&!jc?(ns(e,t,a),sl(e,t,a)):(na&&r&&Zi(t),t.flags|=1,Mc(e,t,n,a),t.child)}function Gc(e,t,n,r,i){if(Sa(t),t.stateNode===null){var a=Di,o=n.contextType;typeof o==`object`&&o&&(a=Ca(o)),a=new n(r,a),t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,a.updater=_c,t.stateNode=a,a._reactInternals=t,a=t.stateNode,a.props=r,a.state=t.memoizedState,a.refs={},uo(t),o=n.contextType,a.context=typeof o==`object`&&o?Ca(o):Di,a.state=t.memoizedState,o=n.getDerivedStateFromProps,typeof o==`function`&&(gc(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&&_c.enqueueReplaceState(a,a.state,null),yo(t,r,a,i),vo(),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=bc(n,s);a.props=c;var l=a.context,u=n.contextType;o=Di,typeof u==`object`&&u&&(o=Ca(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)&&yc(t,a,r,o),lo=!1;var f=t.memoizedState;a.state=f,yo(t,r,a,i),vo(),l=t.memoizedState,s||f!==l||lo?(typeof d==`function`&&(gc(t,n,d,r),l=t.memoizedState),(c=lo||vc(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,fo(e,t),o=t.memoizedProps,u=bc(n,o),a.props=u,d=t.pendingProps,f=a.context,l=n.contextType,c=Di,typeof l==`object`&&l&&(c=Ca(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)&&yc(t,a,r,c),lo=!1,f=t.memoizedState,a.state=f,yo(t,r,a,i),vo();var p=t.memoizedState;o!==d||f!==p||lo||e!==null&&e.dependencies!==null&&xa(e.dependencies)?(typeof s==`function`&&(gc(t,n,s,r),p=t.memoizedState),(u=lo||vc(t,n,u,r,f,p,c)||e!==null&&e.dependencies!==null&&xa(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,Hc(e,t),r=!!(t.flags&128),a||r?(a=t.stateNode,n=r&&typeof n.getDerivedStateFromError!=`function`?null:a.render(),t.flags|=1,e!==null&&r?(t.child=W(t,e.child,null,i),t.child=W(t,null,n,i)):Mc(e,t,n,i),t.memoizedState=a.state,e=t.child):e=sl(e,t,i),e}function Kc(e,t,n,r){return ua(),t.flags|=256,Mc(e,t,n,r),t.child}var qc={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Jc(e){return{baseLanes:e,cachePool:Ka()}}function Yc(e,t,n){return e=e===null?0:e.childLanes&~n,t&&(e|=ld),e}function Xc(e,t,n){var r=t.pendingProps,i=!1,a=!!(t.flags&128),o;if((o=a)||(o=e!==null&&e.memoizedState===null?!1:!!(Po.current&2)),o&&(i=!0,t.flags&=-129),o=!!(t.flags&32),t.flags&=-33,e===null){if(na){if(i?ko(t):Mo(),(e=ta)?(e=om(e,ia),e=e!==null&&e.data!==`&`?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Ki===null?null:{id:qi,overflow:Ji},retryLane:536870912,hydrationErrors:null},n=Ii(e),n.return=t,t.child=n,ea=t,ta=null)):e=null,e===null)throw oa(t);return t.lanes=cm(e)?32:536870912,null}return a=r.children,r=r.fallback,i?(Mo(),i=t.mode,a=Qc({mode:`hidden`,children:a},i),r=Pi(r,i,n,null),a.return=t,r.return=t,a.sibling=r,t.child=a,r=t.child,r.memoizedState=Jc(n),r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(null,r)):(ko(t),Zc(t,a))}var s=e.memoizedState;if(s!==null){var c=s.dehydrated;if(c!==null)return el(e,t,a,o,r,c,s,n)}return i?(Mo(),i=r.fallback,a=t.mode,s=e.child,c=s.sibling,r=ji(s,{mode:`hidden`,children:r.children}),r.subtreeFlags=s.subtreeFlags&1206910976,c===null?(i=Pi(i,a,n,null),i.flags|=2):i=ji(c,i),i.return=t,r.return=t,r.sibling=i,t.child=r,Lc(null,r),r=t.child,i=e.child.memoizedState,i===null?i=Jc(n):(a=i.cachePool,a===null?a=Ka():(s=ka._currentValue,a=a.parent===s?a:{parent:s,pool:s}),i={baseLanes:i.baseLanes|n,cachePool:a}),r.memoizedState=i,r.childLanes=Yc(e,o,n),t.memoizedState=qc,Lc(e.child,r)):(ko(t),n=e.child,e=n.sibling,n=ji(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 Zc(e,t){return t=Qc({mode:`visible`,children:t},e.mode),t.return=e,e.child=t}function Qc(e,t){return e=ki(22,e,null,t),e.lanes=0,e}function $c(e,t,n){return W(t,e.child,null,n),e=Zc(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function el(e,t,n,r,a,o,s,c){if(n)return t.flags&256?(ko(t),t.flags&=-257,$c(e,t,c)):t.memoizedState===null?(Mo(),o=a.fallback,s=t.mode,a=Qc({mode:`visible`,children:a.children},s),o=Pi(o,s,c,null),o.flags|=2,a.return=t,o.return=t,a.sibling=o,t.child=a,W(t,e.child,null,c),a=t.child,a.memoizedState=Jc(c),a.childLanes=Yc(e,r,c),t.memoizedState=qc,Lc(null,a)):(Mo(),t.child=e.child,t.flags|=128,null);if(ko(t),cm(o)){if(r=o.nextSibling&&o.nextSibling.dataset,r)var l=r.dgst;return r=l,r!==``&&(a=Error(i(419)),a.stack=``,a.digest=r,fa({value:a,source:null,stack:null})),$c(e,t,c)}if(jc||ba(e,t,c,!1),r=(c&e.childLanes)!==0,jc||r){if(So.current!==null)return $c(e,t,c);if(r=Xu,r!==null&&(a=dt(r,c),a!==0&&a!==s.retryLane))throw s.retryLane=a,wi(e,a),Nd(r,e,a),Ac;return sm(o)||Gd(),$c(e,t,c)}return sm(o)?(t.flags|=192,t.child=e.child,null):(e=s.treeContext,ta=um(o.nextSibling),ea=t,na=!0,ra=null,ia=!1,e!==null&&$i(t,e),t=Zc(t,a.children),t.flags|=134221824,t)}function tl(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),va(e.return,t,n)}function nl(e){for(var t=null;e!==null;){var n=e.alternate;n!==null&&Lo(n)===null&&(t=e),e=e.sibling}return t}function rl(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 il(e){var t=e.child;for(e.child=null;t!==null;){var n=t.sibling;t.sibling=e.child,e.child=t,t=n}}function al(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=Po.current;if(t.flags&128)return Fo(t,o),null;var s=!!(o&2);if(s?(o=o&1|2,t.flags|=128):o&=1,Fo(t,o),i===`backwards`&&e!==null?(il(e),Mc(e,t,r,n),il(e)):Mc(e,t,r,n),r=na?Ui:0,!s&&e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&tl(e,n,t);else if(e.tag===19)tl(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`backwards`:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null,il(t)),rl(t,!0,i,null,a,r);break;case`unstable_legacy-backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Lo(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}rl(t,!0,n,null,a,r);break;case`together`:rl(t,!1,null,null,void 0,r);break;case`independent`:t.memoizedState=null;break;default:n=nl(t.child),n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),rl(t,!1,i,n,a,r)}return t.child}function ol(e,t,n){var r=t.pendingProps;return ga(t,t.type,r.value),Mc(e,t,r.children,n),t.child}function sl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),od|=t.lanes,(n&t.childLanes)===0){if(e!==null){if(ba(e,t,n,!1),(n&t.childLanes)===0)return null}else return null}if(e!==null&&t.child!==e.child)throw Error(i(153));if(t.child!==null){for(e=t.child,n=ji(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=ji(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function cl(e,t){return(e.lanes&t)!==0||(e=e.dependencies,!!(e!==null&&xa(e)))}function ll(e,t,n){switch(t.tag){case 3:ye(t,t.stateNode.containerInfo),ga(t,ka,e.memoizedState.cache),ua();break;case 27:case 5:xe(t);break;case 4:ye(t,t.stateNode.containerInfo);break;case 10:ga(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Ao(t),null;break;case 13:var r=t.memoizedState;if(r!==null){if(r.dehydrated!==null)return ko(t),t.flags|=128,null;r=ba(e,t,n,!1);var i=t.child.childLanes;return r||(n&i)!==0?Xc(e,t,n):(ko(t),e=sl(e,t,n),e===null?null:e.sibling)}ko(t);break;case 19:if(t.flags&128)return al(e,t,n);if(i=!!(e.flags&128),r=(n&t.childLanes)!==0,r||=(ba(e,t,n,!1),(n&t.childLanes)!==0),i){if(r)return al(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Fo(t,Po.current),r)break;return null;case 22:return t.lanes=0,Ic(e,t,n,t.pendingProps);case 24:ga(t,ka,e.memoizedState.cache)}return sl(e,t,n)}function ul(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps)jc=!0;else{if(!cl(e,n)&&!(t.flags&128))return jc=!1,ll(e,t,n);jc=!!(e.flags&131072)}}else jc=!1,na&&t.flags&1048576&&Xi(t,Ui,t.index);switch(t.lanes=0,t.tag){case 16:a:{var r=t.pendingProps;if(e=$a(t.elementType),t.type=e,typeof e==`function`)Ai(e)?(r=bc(e,r),t.tag=1,t=Gc(null,t,e,r,n)):(t.tag=0,t=Uc(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===M){t.tag=11,t=Nc(null,t,e,r,n);break a}if(a===N){t.tag=14,t=Pc(null,t,e,r,n);break a}if(a===j){t.tag=10,t.type=e,t=ol(null,t,n);break a}}throw t=se(e)||e,Error(i(306,t,``))}}return t;case 0:return Uc(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=bc(r,t.pendingProps),Gc(e,t,r,a,n);case 3:a:{if(ye(t,t.stateNode.containerInfo),e===null)throw Error(i(387));r=t.pendingProps;var o=t.memoizedState;a=o.element,fo(e,t),yo(t,r,null,n);var s=t.memoizedState;if(r=s.cache,ga(t,ka,r),r!==o.cache&&ya(t,[ka],n,!0),vo(),r=s.element,o.isDehydrated){if(o={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){t=Kc(e,t,r,n);break a}if(r!==a){a=zi(Error(i(424)),t),fa(a),t=Kc(e,t,r,n);break a}switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName===`HTML`?e.ownerDocument.body:e}for(ta=um(e.firstChild),ea=t,na=!0,ra=null,ia=!0,n=co(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|134221824,n=n.sibling}else{if(ua(),r===a){t=sl(e,t,n);break a}Mc(e,t,r,n)}t=t.child}return t;case 26:return Hc(e,t),e===null?(n=Pm(t.type,null,t.pendingProps,null))?t.memoizedState=n:na||(t.stateNode=pp(t.type,t.pendingProps,_e.current,t)):t.memoizedState=Pm(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return xe(t),e===null&&na&&(r=t.stateNode=gm(t.type,t.pendingProps,_e.current),ea=t,ia=!0,a=ta,Cp(t.type)?(dm=a,ta=um(r.firstChild)):ta=a),Mc(e,t,t.pendingProps.children,n),Hc(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&na&&((a=r=ta)&&(r=im(r,t.type,t.pendingProps,ia),r===null?a=!1:(t.stateNode=r,ea=t,ta=um(r.firstChild),ia=!1,a=!0)),a||oa(t)),xe(t),a=t.type,o=t.pendingProps,s=e===null?null:e.memoizedProps,r=o.children,mp(a,o)?r=null:s!==null&&mp(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=Zo(e,t,es,null,null,n),ch._currentValue=a),Hc(e,t),Mc(e,t,r,n),t.child;case 6:return e===null&&na&&((e=n=ta)&&(n=am(n,t.pendingProps,ia),n===null?e=!1:(t.stateNode=n,ea=t,ta=null,e=!0)),e||oa(t)),null;case 13:return Xc(e,t,n);case 4:return ye(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=W(t,null,r,n):Mc(e,t,r,n),t.child;case 11:return Nc(e,t,t.type,t.pendingProps,n);case 7:return r=t.pendingProps,Hc(e,t),Mc(e,t,r,n),t.child;case 8:return Mc(e,t,t.pendingProps.children,n),t.child;case 12:return Mc(e,t,t.pendingProps.children,n),t.child;case 10:return ol(e,t,n);case 9:return a=t.type._context,r=t.pendingProps.children,Sa(t),a=Ca(a),r=r(a),t.flags|=1,Mc(e,t,r,n),t.child;case 14:return Pc(e,t,t.type,t.pendingProps,n);case 15:return Fc(e,t,t.type,t.pendingProps,n);case 19:return al(e,t,n);case 31:return Vc(e,t,n);case 22:return Ic(e,t,n,t.pendingProps);case 24:return Sa(t),r=Ca(ka),e===null?(a=Wa(),a===null&&(a=Xu,o=Aa(),a.pooledCache=o,o.refCount++,o!==null&&(a.pooledCacheLanes|=n),a=o),t.memoizedState={parent:r,cache:a},uo(t),ga(t,ka,a)):((e.lanes&n)!==0&&(fo(e,t),yo(t,null,null,n),vo()),a=e.memoizedState,o=t.memoizedState,a.parent===r?(r=o.cache,ga(t,ka,r),r!==a.cache&&ya(t,[ka],n,!0)):(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),ga(t,ka,r))),Mc(e,t,t.pendingProps.children,n),t.child;case 30:return t.stateNode===null&&(t.stateNode={autoName:null,paired:null,clones:null,ref:null}),r=t.pendingProps,r.name!=null&&r.name!==`auto`?t.flags|=e===null?18882560:18874368:na&&Zi(t),e!==null&&e.memoizedProps.name!==r.name?t.flags|=4194816:Hc(e,t),Mc(e,t,r.children,n),t.child;case 29:throw t.pendingProps}throw Error(i(156,t.tag))}function dl(e){e.flags|=4}function fl(e,t,n,r,i){var a;if((a=!!(e.mode&32))&&(a=n===null?Ym(t,r):Ym(t,r)&&(r.src!==n.src||r.srcSet!==n.srcSet)),a){if(e.flags|=16777216,(i&335544128)===i){if(e.stateNode.complete)e.flags|=8192;else if(Hd())e.flags|=8192;else throw eo=Xa,Ja}}else e.flags&=-16777217}function pl(e,t){if(t.type!==`stylesheet`||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!Xm(t)){if(Hd())e.flags|=8192;else throw eo=Xa,Ja}}function ml(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag===22?536870912:at(),e.lanes|=t,ud|=t)}function hl(e,t){if(!na)switch(e.tailMode){case`visible`:break;case`collapsed`:for(var n=e.tail,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;break;default:for(t=e.tail,n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null}}function gl(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&1206910976,r|=i.flags&1206910976,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 _l(e,t,n){var r=t.pendingProps;switch(Qi(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return gl(t),null;case 1:return gl(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),_a(ka),be(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(la(t)?dl(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,da())),gl(t),null;case 26:var a=t.type,o=t.memoizedState;return e===null?(dl(t),o===null?(gl(t),fl(t,a,null,r,n)):(gl(t),pl(t,o))):o?o===e.memoizedState?(gl(t),t.flags&=-16777217):(dl(t),gl(t),pl(t,o)):(e=e.memoizedProps,e!==r&&dl(t),gl(t),fl(t,a,e,r,n)),null;case 27:if(Se(t),n=_e.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}e=he.current,la(t)?sa(t,e):(e=gm(a,r,n),t.stateNode=e,dl(t))}return gl(t),t.subtreeFlags&=-33554433,null;case 5:if(Se(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(!r){if(t.stateNode===null)throw Error(i(166));return gl(t),t.subtreeFlags&=-33554433,null}if(o=he.current,la(t))sa(t,o);else{var s=up(_e.current);switch(o){case 1:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case 2:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;default:switch(a){case`svg`:o=s.createElementNS(`http://www.w3.org/2000/svg`,a);break;case`math`:o=s.createElementNS(`http://www.w3.org/1998/Math/MathML`,a);break;case`script`:o=s.createElement(`div`),o.innerHTML=`<script><\/script>`,o=o.removeChild(o.firstChild);break;case`select`:o=typeof r.is==`string`?s.createElement(`select`,{is:r.is}):s.createElement(`select`),r.multiple?o.multiple=!0:r.size&&(o.size=r.size);break;default:o=typeof r.is==`string`?s.createElement(a,{is:r.is}):s.createElement(a)}}o[_t]=t,o[vt]=r;a:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)o.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break a;for(;s.sibling===null;){if(s.return===null||s.return===t)break a;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=o;a:switch(rp(o,a,r),a){case`button`:case`input`:case`select`:case`textarea`:r=!!r.autoFocus;break a;case`img`:r=!0;break a;default:r=!1}r&&dl(t)}}return gl(t),t.subtreeFlags&=-33554433,fl(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&dl(t);else{if(typeof r!=`string`&&t.stateNode===null)throw Error(i(166));if(e=_e.current,la(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=ea,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[_t]=t,e=!!(e.nodeValue===n||r!==null&&!0===r.suppressHydrationWarning||ep(e.nodeValue,n)),e||oa(t,!0)}else e=up(e).createTextNode(r),e[_t]=t,t.stateNode=e}return gl(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=la(t),n!==null){if(e===null){if(!r)throw Error(i(318));if(e=t.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(i(557));e[_t]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),e=!1}else n=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(No(t),t):(No(t),null);if(t.flags&128)throw Error(i(558))}return gl(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=la(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(i(318));if(a=t.memoizedState,a=a===null?null:a.dehydrated,!a)throw Error(i(317));a[_t]=t}else ua(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;gl(t),a=!1}else a=da(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(No(t),t):(No(t),null)}return No(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),ml(t,t.updateQueue),gl(t),null);case 4:return be(),e===null&&Wf(t.stateNode.containerInfo),t.flags|=67108864,gl(t),null;case 10:return _a(t.type),gl(t),null;case 19:if(Io(t),r=t.memoizedState,r===null)return gl(t),null;if(a=!!(t.flags&128),o=r.rendering,o===null){if(a)hl(r,!1);else{if(ad!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(o=Lo(e),o!==null){for(t.flags|=128,hl(r,!1),e=o.updateQueue,t.updateQueue=e,ml(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)Mi(n,e),n=n.sibling;return Fo(t,Po.current&1|2),na&&Yi(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Fe()>gd&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}}else{if(!a){if(e=Lo(o),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,ml(t,e),hl(r,!0),r.tail===null&&r.tailMode!==`collapsed`&&r.tailMode!==`visible`&&!o.alternate&&!na)return gl(t),null}else 2*Fe()-r.renderingStartTime>gd&&n!==536870912&&(t.flags|=128,a=!0,hl(r,!1),t.lanes=4194304)}r.isBackwards?(o.sibling=t.child,t.child=o):(e=r.last,e===null?t.child=o:e.sibling=o,r.last=o)}if(r.tail!==null){e=r.tail;a:{for(n=e;n!==null;){if(n.alternate!==null){n=!1;break a}n=n.sibling}n=!0}return r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Fe(),e.sibling=null,o=Po.current,o=a?o&1|2:o&1,r.tailMode===`visible`||r.tailMode===`collapsed`||!n||na?Fo(t,o):(n=o,me(Do,t),me(Po,n),Oo===null&&(Oo=t)),na&&Yi(t,r.treeForkCount),e}return gl(t),null;case 22:case 23:return No(t),Eo(),r=t.memoizedState!==null,e===null?r&&(t.flags|=8192):e.memoizedState!==null!==r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(gl(t),t.subtreeFlags&6&&(t.flags|=8192)):gl(t),n=t.updateQueue,n!==null&&ml(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&&pe(Ua),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),_a(ka),gl(t),null;case 25:return null;case 30:return t.flags|=33554432,gl(t),null}throw Error(i(156,t.tag))}function vl(e,t){switch(Qi(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return _a(ka),be(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return Se(t),null;case 31:if(t.memoizedState!==null){if(No(t),t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(No(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(i(340));ua()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Io(t),e=t.flags,e&65536?(t.flags=e&-65537|128,e=t.memoizedState,e!==null&&(e.rendering=null,e.tail=null),t.flags|=4,t):null;case 4:return be(),null;case 10:return _a(t.type),null;case 22:case 23:return No(t),Eo(),e!==null&&pe(Ua),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return _a(ka),null;case 25:return null;default:return null}}function yl(e,t){switch(Qi(t),t.tag){case 3:_a(ka),be();break;case 26:case 27:case 5:Se(t);break;case 4:be();break;case 31:t.memoizedState!==null&&No(t);break;case 13:No(t);break;case 19:Io(t);break;case 10:_a(t.type);break;case 22:case 23:No(t),Eo(),e!==null&&pe(Ua);break;case 24:_a(ka)}}function bl(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){ff(t,t.return,e)}}function xl(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){ff(i,c,e)}}}r=r.next}while(r!==a)}}catch(e){ff(t,t.return,e)}}function Sl(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{xo(t,n)}catch(t){ff(e,e.return,t)}}}function K(e,t,n){n.props=bc(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(n){ff(e,t,n)}}function Cl(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:var i=e.stateNode,a=mi(e.memoizedProps,i);(i.ref===null||i.ref.name!==a)&&(i.ref=Fp(a)),r=i.ref;break;case 7:if(e.stateNode===null){var o=new Ip(e);f(e.child,!1,$p,o,void 0,void 0),e.stateNode=o}r=e.stateNode;break;default:r=e.stateNode}typeof n==`function`?e.refCleanup=n(r):n.current=r}}catch(n){ff(e,t,n)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(n!==null){if(typeof r==`function`)try{r()}catch(n){ff(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){ff(e,t,n)}else n.current=null}}function Tl(e,t){if((e.tag===5||e.tag===27||e.tag===6)&&e.alternate===null&&t!==null)for(var n=0;n<t.length;n++)tm(e.stateNode,t[n])}function El(e){for(var t=e.return;t!==null&&(kl(t)&&tm(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Dl(e){for(var t=e.return;t!==null&&(kl(t)&&nm(e.stateNode,t.stateNode),!Ol(t));)t=t.return}function Ol(e){return e.tag===5||e.tag===3||e.tag===27}function kl(e){return e&&e.tag===7&&e.stateNode!==null}function Al(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){ff(e,e.return,t)}}function jl(e,t,n){try{var r=e.stateNode;ap(r,e.type,n,t),r[vt]=t}catch(t){ff(e,e.return,t)}}function Ml(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Cp(e.type)||e.tag===4}function Nl(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Ml(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&&Cp(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 Pl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n).insertBefore(i,t):(t=n.nodeType===9?n.body:n.nodeName===`HTML`?n.ownerDocument.body:n,t.appendChild(i),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=gn)),Tl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Tl(e,r),r=null,Cp(e.type)&&(n=e.stateNode,t=null)),e=e.child,e!==null))for(Pl(e,t,n,r),e=e.sibling;e!==null;)Pl(e,t,n,r),e=e.sibling}function Fl(e,t,n,r){var i=e.tag;if(i===5||i===6)i=e.stateNode,t?n.insertBefore(i,t):n.appendChild(i),Tl(e,r),Ut=!0;else if(i!==4&&(i===27&&(Tl(e,r),r=null,Cp(e.type)&&(n=e.stateNode)),e=e.child,e!==null))for(Fl(e,t,n,r),e=e.sibling;e!==null;)Fl(e,t,n,r),e=e.sibling}function Il(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);rp(t,r,n),t[_t]=e,t[vt]=n}catch(t){ff(e,e.return,t)}}var Ll=!1,Rl=null;function zl(e){(e.tag===30||e.subtreeFlags&33554432)&&(Ll=!0)}var Bl=null;function Vl(){var e=Bl;return Bl=null,e}var Hl=0;function Ul(e,t,n,r,i){return Hl=0,Wl(e.child,t,n,r,i)}function Wl(e,t,n,r,i){for(var a=!1;e!==null;){if(e.tag===5){var o=e.stateNode;if(r!==null){var s=kp(o);r.push(s),s.view&&(a=!0)}else a||kp(o).view&&(a=!0);Ll=!0,Ep(o,Hl===0?t:t+`_`+Hl,n),Hl++}else e.tag===22&&e.memoizedState!==null||e.tag===30&&i||Wl(e.child,t,n,r,i)&&(a=!0);e=e.sibling}return a}function Gl(e,t){for(;e!==null;)e.tag===5?Dp(e.stateNode,e.memoizedProps):e.tag===22&&e.memoizedState!==null||e.tag===30&&t||Gl(e.child,t),e=e.sibling}function Kl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if((e.tag!==22||e.memoizedState===null)&&(Kl(e),e.tag===30&&e.flags&18874368&&e.stateNode.paired)){var t=e.memoizedProps;if(t.name==null||t.name===`auto`)throw Error(i(544));var n=t.name;t=gi(t.default,t.share),t!==`none`&&(Ul(e,n,t,null,!1)||Gl(e.child,!1))}e=e.sibling}}function ql(e,t){if(e.tag===30){var n=e.stateNode,r=e.memoizedProps,i=mi(r,n),a=gi(r.default,n.paired?r.share:r.enter);a===`none`?Kl(e):Ul(e,i,a,null,!1)?(Kl(e),n.paired||t||Md(e,r.onEnter)):Gl(e.child,!1)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)ql(e,t),e=e.sibling;else Kl(e)}function Jl(e){if(Rl!==null&&Rl.size!==0){var t=Rl;if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var n=e.memoizedProps,r=n.name;if(r!=null&&r!==`auto`){var i=t.get(r);if(i!==void 0){var a=gi(n.default,n.share);if(a!==`none`&&(Ul(e,r,a,null,!1)?(a=e.stateNode,i.paired=a,a.paired=i,Md(e,n.onShare)):Gl(e.child,!1)),t.delete(r),t.size===0)break}}}Jl(e)}e=e.sibling}}}function Yl(e){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode),r=Rl===null?void 0:Rl.get(n),i=gi(t.default,r===void 0?t.exit:t.share);i!==`none`&&(Ul(e,n,i,null,!1)?r===void 0?Md(e,t.onExit):(i=e.stateNode,r.paired=i,i.paired=r,Rl.delete(n),Md(e,t.onShare)):Gl(e.child,!1)),Rl!==null&&Jl(e)}else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Yl(e),e=e.sibling;else Rl!==null&&Jl(e)}function Xl(e){for(e=e.child;e!==null;){if(e.tag===30){var t=e.memoizedProps,n=mi(t,e.stateNode);t=gi(t.default,t.update),e.flags&=-5,t!==`none`&&Ul(e,n,t,e.memoizedState=[],!1)}else e.subtreeFlags&33554432&&Xl(e);e=e.sibling}}function Zl(e){if(e.subtreeFlags&18874368)for(e=e.child;e!==null;){if(e.tag!==22||e.memoizedState===null){if(e.tag===30&&e.flags&18874368){var t=e.stateNode;t.paired!==null&&(t.paired=null,Gl(e.child,!1))}Zl(e)}e=e.sibling}}function Ql(e){if(e.tag===30)e.stateNode.paired=null,Gl(e.child,!1),Zl(e);else if(e.subtreeFlags&33554432)for(e=e.child;e!==null;)Ql(e),e=e.sibling;else Zl(e)}function $l(e){for(e=e.child;e!==null;)e.tag===30?Gl(e.child,!1):e.subtreeFlags&33554432&&$l(e),e=e.sibling}function eu(e,t,n,r,i,a,o){for(var s=!1;t!==null;){if(t.tag===5){var c=t.stateNode;if(a!==null&&Hl<a.length){var l=a[Hl],u=kp(c);(l.view||u.view)&&(s=!0);var d;if(d=!(e.flags&4)){if(u.clip)d=!0;else{d=l.rect;var f=u.rect;d=d.y!==f.y||d.x!==f.x||d.height!==f.height||d.width!==f.width}}d&&(e.flags|=4),u.abs?u=!l.abs:(l=l.rect,u=u.rect,u=l.height!==u.height||l.width!==u.width),u&&(e.flags|=32)}else e.flags|=32;e.flags&4&&Ep(c,Hl===0?n:n+`_`+Hl,i),s&&e.flags&4||(Bl===null&&(Bl=[]),Bl.push(c,Hl===0?r:r+`_`+Hl,t.memoizedProps)),Hl++}else(t.tag!==22||t.memoizedState===null)&&(t.tag===30&&o?e.flags|=t.flags&32:eu(e,t.child,n,r,i,a,o)&&(s=!0));t=t.sibling}return s}function tu(e,t){for(e=e.child;e!==null;){if(e.tag===30){var n=e.memoizedProps,r=e.stateNode,i=mi(n,r),a=gi(n.default,n.update);if(t){r=r.clones;var o=r===null?null:r.map(Ap)}else o=e.memoizedState,e.memoizedState=null;r=e;var s=e.child;Hl=0,i=eu(r,s,i,i,a,o,!1),e.flags&4&&i&&(t||Md(e,n.onUpdate))}else e.subtreeFlags&33554432&&tu(e,t);e=e.sibling}}var nu=!1,ru=!1,q=!1,iu=!1,J=typeof WeakSet==`function`?WeakSet:Set,Y=null,X=!1,au=!1,ou=!1,su=!1;function cu(e,t,n){if(e=e.containerInfo,cp=_h,e=Gr(e),Kr(e)){if(`selectionStart`in e)var r={start:e.selectionStart,end:e.selectionEnd};else a:{r=(r=e.ownerDocument)&&r.defaultView||window;var i=r.getSelection&&r.getSelection();if(i&&i.rangeCount!==0){r=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{r.nodeType,o.nodeType}catch{r=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==r||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===r&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}r=c===-1||l===-1?null:{start:c,end:l}}else r=null}r||={start:0,end:0}}else r=null;for(lp={focusedElem:e,selectionRange:r},_h=!1,n=(n&335544064)===n,Y=t,t=n?9270:1024;Y!==null;){if(e=Y,n&&(r=e.deletions,r!==null))for(a=0;a<r.length;a++)n&&Yl(r[a]);if(e.alternate===null&&e.flags&2)n&&zl(e),lu(n);else{if(e.tag===22){if(r=e.alternate,e.memoizedState!==null){r!==null&&r.memoizedState===null&&n&&Yl(r),lu(n);continue}if(r!==null&&r.memoizedState!==null){n&&zl(e),lu(n);continue}}r=e.child,(e.subtreeFlags&t)!==0&&r!==null?(r.return=e,Y=r):(n&&Xl(e),lu(n))}}Rl=null}function lu(e){for(;Y!==null;){var t=Y,n=e,r=t.alternate,a=t.flags;switch(t.tag){case 0:case 11:case 15:break;case 1:if(a&1024&&r!==null){n=void 0,a=r.memoizedProps,r=r.memoizedState;var o=t.stateNode;try{var s=bc(t.type,a);n=o.getSnapshotBeforeUpdate(s,r),o.__reactInternalSnapshotBeforeUpdate=n}catch(e){ff(t,t.return,e)}}break;case 3:if(a&1024){if(r=t.stateNode.containerInfo,n=r.nodeType,n===9)rm(r);else if(n===1)switch(r.nodeName){case`HEAD`:case`HTML`:case`BODY`:rm(r);break;default:r.textContent=``}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;case 30:n&&r!==null&&(n=mi(r.memoizedProps,r.stateNode),a=t.memoizedProps,a=gi(a.default,a.update),a!==`none`&&Ul(r,n,a,r.memoizedState=[],!0));break;default:if(a&1024)throw Error(i(163))}if(r=t.sibling,r!==null){r.return=t.return,Y=r;break}Y=t.return}}function uu(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Au(e,n),r&4&&bl(5,n);break;case 1:if(Au(e,n),r&4){if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(e){ff(n,n.return,e)}else{var i=bc(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(e){ff(n,n.return,e)}}}r&64&&Sl(n),r&512&&Cl(n,n.return);break;case 3:if(Au(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{xo(e,t)}catch(e){ff(n,n.return,e)}}break;case 27:t===null&&r&4&&Il(n);case 26:case 5:Au(e,n),t===null&&r&4&&Al(n),r&512&&Cl(n,n.return);break;case 12:Au(e,n);break;case 31:Au(e,n),r&4&&yu(e,n);break;case 13:Au(e,n),r&4&&bu(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=gf.bind(null,n),lm(e,n))));break;case 22:if(r=n.memoizedState!==null||nu,!r){var a=t!==null&&t.memoizedState!==null||ru;t=nu,i=ru,nu=r,(ru=a)&&!i?(r=2,n.subtreeFlags&8772&&(r|=1),Mu(e,n,r)):Au(e,n),nu=t,ru=i}break;case 30:Au(e,n),r&512&&Cl(n,n.return);break;case 7:r&512&&Cl(n,n.return);default:Au(e,n)}}function du(e,t){for(e=e.child;e!==null;)fu(e,t),e=e.sibling}function fu(e,t){switch(e.tag){case 5:case 26:try{var n=e.stateNode;if(t){var r=n.style;typeof r.setProperty==`function`?r.setProperty(`display`,`none`,`important`):r.display=`none`}else{var i=e.stateNode,a=e.memoizedProps.style,o=a!=null&&a.hasOwnProperty(`display`)?a.display:null;i.style.display=o==null||typeof o==`boolean`?``:(``+o).trim()}}catch(t){ff(e,e.return,t)}pu(e,t);break;case 6:try{e.stateNode.nodeValue=t?``:e.memoizedProps,Ut=!0}catch(t){ff(e,e.return,t)}break;case 18:try{var s=e.stateNode;t?Tp(s,!0):Tp(e.stateNode,!1)}catch(t){ff(e,e.return,t)}break;case 22:case 23:e.memoizedState===null&&du(e,t);break;default:du(e,t)}}function pu(e,t){if(e.subtreeFlags&67108864)for(e=e.child;e!==null;){a:{var n=e,r=t;switch(n.tag){case 4:fu(n,r);break a;case 22:n.memoizedState===null&&pu(n,r);break a;default:pu(n,r)}}e=e.sibling}}function mu(e){var t=e.alternate;t!==null&&(e.alternate=null,mu(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&Et(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 hu=null,gu=!1;function _u(e,t,n){for(n=n.child;n!==null;)vu(e,t,n),n=n.sibling}function vu(e,t,n){if(Ge&&typeof Ge.onCommitFiberUnmount==`function`)try{Ge.onCommitFiberUnmount(We,n)}catch{}switch(n.tag){case 26:ru||wl(n,t),_u(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&!ru&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:ru||wl(n,t),Dl(n);var r=hu,i=gu;Cp(n.type)&&(hu=n.stateNode,gu=!1),_u(e,t,n),_m(n.stateNode,n.type,n.memoizedProps),hu=r,gu=i;break;case 5:ru||wl(n,t),Dl(n);case 6:if(n.tag===6&&Dl(n),r=hu,i=gu,hu=null,_u(e,t,n),hu=r,gu=i,hu!==null){if(gu)try{(hu.nodeType===9?hu.body:hu.nodeName===`HTML`?hu.ownerDocument.body:hu).removeChild(n.stateNode),Ut=!0}catch(e){ff(n,t,e)}else try{hu.removeChild(n.stateNode),Ut=!0}catch(e){ff(n,t,e)}}break;case 18:hu!==null&&(gu?(e=hu,wp(e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,n.stateNode),Uh(e)):wp(hu,n.stateNode));break;case 4:r=hu,i=gu,hu=n.stateNode.containerInfo,gu=!0,_u(e,t,n),hu=r,gu=i;break;case 0:case 11:case 14:case 15:xl(2,n,t),ru||xl(4,n,t),_u(e,t,n);break;case 1:ru||(wl(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`&&K(n,t,r)),_u(e,t,n);break;case 21:_u(e,t,n);break;case 22:ru=(r=ru)||n.memoizedState!==null,_u(e,t,n),ru=r;break;case 30:wl(n,t),_u(e,t,n);break;case 7:ru||wl(n,t),_u(e,t,n);break;default:_u(e,t,n)}}function yu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Uh(e)}catch(e){ff(t,t.return,e)}}}function bu(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Uh(e)}catch(e){ff(t,t.return,e)}}function xu(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new J),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new J),t;default:throw Error(i(435,e.tag))}}function Su(e,t){var n=xu(e);t.forEach(function(t){if(!n.has(t)){n.add(t);var r=_f.bind(null,e,t);t.then(r,r)}})}function Cu(e,t,n){var r=t.deletions;if(r!==null)for(var a=0;a<r.length;a++){var o=r[a],s=e,c=t,l=c;a:for(;l!==null;){switch(l.tag){case 27:if(Cp(l.type)){hu=l.stateNode,gu=!1;break a}break;case 5:hu=l.stateNode,gu=!1;break a;case 3:case 4:hu=l.stateNode.containerInfo,gu=!0;break a}l=l.return}if(hu===null)throw Error(i(160));vu(s,c,o),hu=null,gu=!1,s=o.alternate,s!==null&&(s.return=null),o.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)Tu(t,e,n),t=t.sibling}var wu=null;function Tu(e,t,n){var r=e.alternate,a=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(a&4&&(r=e.updateQueue,r=r===null?null:r.events,r!==null))for(var o=0;o<r.length;o++){var s=r[o];s.ref.impl=s.nextImpl}Cu(t,e,n),Eu(e),a&4&&(xl(3,e,e.return),bl(3,e),xl(5,e,e.return));break;case 1:Cu(t,e,n),Eu(e),a&512&&(ru||r===null||wl(r,r.return)),a&64&&nu&&(e=e.updateQueue,e!==null&&(t=e.callbacks,t!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?t:n.concat(t))));break;case 26:if(o=wu,Cu(t,e,n),Eu(e),a&512&&(ru||r===null||wl(r,r.return)),a&4){if(a=r===null?null:r.memoizedState,n=e.memoizedState,r===null){if(n===null){if(e.stateNode===null){if(nu)e.stateNode=pp(e.type,e.memoizedProps,t.containerInfo,e);else{a:{t=e.type,n=e.memoizedProps,a=o.ownerDocument||o;b:switch(t){case`title`:r=a.getElementsByTagName(`title`)[0],(!r||r[wt]||r[_t]||r.namespaceURI===`http://www.w3.org/2000/svg`||r.hasAttribute(`itemprop`))&&(r=a.createElement(t),a.head.insertBefore(r,a.querySelector(`head > title`))),rp(r,t,n),r[_t]=e,jt(r),t=r;break a;case`link`:if(o=Km(`link`,`href`,a).get(t+(n.href||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`href`)===(n.href==null||n.href===``?null:n.href)&&r.getAttribute(`rel`)===(n.rel==null?null:n.rel)&&r.getAttribute(`title`)===(n.title==null?null:n.title)&&r.getAttribute(`crossorigin`)===(n.crossOrigin==null?null:n.crossOrigin)){o.splice(s,1);break b}}r=a.createElement(t),rp(r,t,n),a.head.appendChild(r);break;case`meta`:if(o=Km(`meta`,`content`,a).get(t+(n.content||``))){for(s=0;s<o.length;s++)if(r=o[s],r.getAttribute(`content`)===(n.content==null?null:``+n.content)&&r.getAttribute(`name`)===(n.name==null?null:n.name)&&r.getAttribute(`property`)===(n.property==null?null:n.property)&&r.getAttribute(`http-equiv`)===(n.httpEquiv==null?null:n.httpEquiv)&&r.getAttribute(`charset`)===(n.charSet==null?null:n.charSet)){o.splice(s,1);break b}}r=a.createElement(t),rp(r,t,n),a.head.appendChild(r);break;default:throw Error(i(468,t))}r[_t]=e,jt(r),t=r}e.stateNode=t}}else nu||qm(o,e.type,e.stateNode)}else e.stateNode=Vm(o,n,e.memoizedProps)}else a===n?n===null&&e.stateNode!==null&&jl(e,e.memoizedProps,r.memoizedProps):(a===null?(t=r.stateNode,t===null||ru||t.parentNode.removeChild(t)):a.count--,n===null?nu||qm(o,e.type,e.stateNode):Vm(o,n,e.memoizedProps))}break;case 27:Cu(t,e,n),Eu(e),a&512&&(ru||r===null||wl(r,r.return)),r!==null&&a&4&&jl(e,e.memoizedProps,r.memoizedProps);break;case 5:if(o=q,q=!1,Cu(t,e,n),q=o,Eu(e),a&512&&(ru||r===null||wl(r,r.return)),e.flags&32){t=e.stateNode;try{cn(t,``),Ut=!0}catch(t){ff(e,e.return,t)}}a&4&&e.stateNode!=null&&(t=e.memoizedProps,jl(e,t,r===null?t:r.memoizedProps)),a&1024&&(iu=!0);break;case 6:if(Cu(t,e,n),Eu(e),a&4){if(e.stateNode===null)throw Error(i(162));t=e.memoizedProps,n=e.stateNode;try{n.nodeValue=t,Ut=!0}catch(t){ff(e,e.return,t)}}break;case 3:if(Ut=!1,Gm=null,o=wu,wu=xm(t.containerInfo),Cu(t,e,n),wu=o,Eu(e),a&4&&r!==null&&r.memoizedState.isDehydrated)try{Uh(t.containerInfo)}catch(t){ff(e,e.return,t)}iu&&(iu=!1,Du(e)),Ut=!1;break;case 4:a=q,q=nu,r=Wt(),o=wu,wu=xm(e.stateNode.containerInfo),Cu(t,e,n),Eu(e),wu=o,Ut&&au&&(ou=!0),Ut=r,q=a;break;case 12:Cu(t,e,n),Eu(e);break;case 31:Cu(t,e,n),Eu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 13:Cu(t,e,n),Eu(e),e.child.flags&8192&&e.memoizedState!==null!=(r!==null&&r.memoizedState!==null)&&(md=Fe()),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 22:o=e.memoizedState!==null,s=r!==null&&r.memoizedState!==null;var c=nu,l=ru,u=q;nu=c||o,q=u||o,ru=l||s,Cu(t,e,n),ru=l,q=u,nu=c,Eu(e),a&8192&&(t=e.stateNode,t._visibility=o?t._visibility&-2:t._visibility|1,!o||r===null||s||nu||ru||(t=s||ru,n=nu,r=ru,nu=o||nu,ru=t,ju(e,2),nu=n,ru=r),!o&&q||du(e,o)),a&4&&(t=e.updateQueue,t!==null&&(n=t.retryQueue,n!==null&&(t.retryQueue=null,Su(e,n))));break;case 19:Cu(t,e,n),Eu(e),a&4&&(t=e.updateQueue,t!==null&&(e.updateQueue=null,Su(e,t)));break;case 30:a&512&&(ru||r===null||wl(r,r.return)),a=Wt(),o=au,s=(n&335544064)===n,c=e.memoizedProps,au=s&&gi(c.default,c.update)!==`none`,Cu(t,e,n),Eu(e),s&&r!==null&&Ut&&(e.flags|=4),au=o,Ut=a;break;case 21:break;case 7:a&512&&(ru||r===null||wl(r,r.return)),r&&r.stateNode!==null&&(r.stateNode._fragmentFiber=e);default:Cu(t,e,n),Eu(e)}}function Eu(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(Ml(r)){n=r;break}r=r.return}r=null;for(var a=e.return;a!==null;){if(kl(a)){var o=a.stateNode;r===null?r=[o]:r.push(o)}if(Ol(a))break;a=a.return}var s=r;if(n==null)throw Error(i(160));switch(n.tag){case 27:var c=n.stateNode;Fl(e,Nl(e),c,s);break;case 5:var l=n.stateNode;n.flags&32&&(cn(l,``),n.flags&=-33),Fl(e,Nl(e),l,s);break;case 3:case 4:var u=n.stateNode.containerInfo;Pl(e,Nl(e),u,s);break;default:throw Error(i(161))}}catch(t){ff(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Du(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;Du(t),t.tag===5&&t.flags&1024&&(t=t.stateNode,_h=!0,t.reset(),_h=!1),e=e.sibling}}function Ou(e,t){if(t.subtreeFlags&9270)for(t=t.child;t!==null;)ku(t,e),t=t.sibling;else tu(t,!1)}function ku(e,t){var n=e.alternate;if(n===null)ql(e,!1);else switch(e.tag){case 3:if(su=X=!1,Vl(),Ou(t,e),!X&&!ou){if(e=Bl,e!==null)for(var r=0;r<e.length;r+=3){n=e[r];var i=e[r+1];Dp(n,e[r+2]),n=n.ownerDocument.documentElement,n!==null&&n.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(`+i+`)`})}e=t.containerInfo,e=e.nodeType===9?e.documentElement:e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===``&&(e.style.viewTransitionName=`none`,e.animate({opacity:[0,0],pointerEvents:[`none`,`none`]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition-group(root)`}),e.animate({width:[0,0],height:[0,0]},{duration:0,fill:`forwards`,pseudoElement:`::view-transition`})),su=!0}Bl=null;break;case 5:Ou(t,e);break;case 4:r=X,X=!1,Ou(t,e),X&&(ou=!0),X=r;break;case 22:e.memoizedState===null&&(n.memoizedState===null?Ou(t,e):ql(e,!1));break;case 30:r=X,i=Vl(),X=!1,Ou(t,e),X&&(e.flags|=4);var a=e.memoizedProps,o=e.stateNode;t=mi(a,o),o=mi(n.memoizedProps,o);var s=gi(a.default,a.update);s===`none`?t=!1:(a=n.memoizedState,n.memoizedState=null,n=e.child,Hl=0,t=eu(e,n,t,o,s,a,!0),Hl!==(a===null?0:a.length)&&(e.flags|=32)),e.flags&4&&t?(Md(e,e.memoizedProps.onUpdate),Bl=i):i!==null&&(i.push.apply(i,Bl),Bl=i),X=e.flags&32?!0:r;break;default:Ou(t,e)}}function Au(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)uu(e,t.alternate,t),t=t.sibling}function ju(e,t){for(e=e.child;e!==null;){var n=e,r=t;switch(n.tag){case 0:case 11:case 14:case 15:xl(4,n,n.return),ju(n,r);break;case 1:wl(n,n.return);var i=n.stateNode;typeof i.componentWillUnmount==`function`&&K(n,n.return,i),ju(n,r);break;case 27:r&2&&_m(n.stateNode,n.type,n.memoizedProps);case 5:wl(n,n.return),n.tag!==5&&n.tag!==27||Dl(n),ju(n,r);break;case 6:Dl(n);break;case 26:wl(n,n.return),i=n.stateNode,n.memoizedState!==null||i===null||ru||i.parentNode.removeChild(i),ju(n,r);break;case 22:n.memoizedState===null&&ju(n,r);break;case 30:wl(n,n.return),ju(n,r);break;case 7:wl(n,n.return);default:ju(n,r)}e=e.sibling}}function Mu(e,t,n){for(n=t.subtreeFlags&8772?n:n&-2,t=t.child;t!==null;){var r=t.alternate,i=e,a=t,o=a.flags,s=!!(n&1);switch(a.tag){case 0:case 11:case 15:Mu(i,a,n),bl(4,a);break;case 1:if(Mu(i,a,n),r=a,i=r.stateNode,typeof i.componentDidMount==`function`)try{i.componentDidMount()}catch(e){ff(r,r.return,e)}if(r=a,i=r.updateQueue,i!==null){var c=r.stateNode;try{var l=i.shared.hiddenCallbacks;if(l!==null)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)bo(l[i],c)}catch(e){ff(r,r.return,e)}}s&&o&64&&Sl(a),Cl(a,a.return);break;case 27:n&2&&Il(a);case 5:a.tag!==5&&a.tag!==27||El(a),Mu(i,a,n),s&&r===null&&o&4&&Al(a),Cl(a,a.return);break;case 6:El(a);break;case 26:c=a.stateNode,a.memoizedState!==null||c===null||nu||qm(xm(c.ownerDocument),a.type,c),Mu(i,a,n),s&&r===null&&o&4&&Al(a),Cl(a,a.return);break;case 12:Mu(i,a,n);break;case 31:Mu(i,a,n),s&&o&4&&yu(i,a);break;case 13:Mu(i,a,n),s&&o&4&&bu(i,a);break;case 22:a.memoizedState===null&&Mu(i,a,n),Cl(a,a.return);break;case 30:Mu(i,a,n),Cl(a,a.return);break;case 7:Cl(a,a.return);default:Mu(i,a,n)}t=t.sibling}}function Nu(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&&ja(n))}function Pu(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&ja(e))}function Fu(e,t,n,r){var i=(n&335544064)===n;if(t.subtreeFlags&(i?10262:10256))for(t=t.child;t!==null;)Iu(e,t,n,r),t=t.sibling;else i&&$l(t)}function Iu(e,t,n,r){var i=(n&335544064)===n;i&&t.alternate===null&&t.return!==null&&t.return.alternate!==null&&Ql(t);var a=t.flags;switch(t.tag){case 0:case 11:case 15:Fu(e,t,n,r),a&2048&&bl(9,t);break;case 1:Fu(e,t,n,r);break;case 3:Fu(e,t,n,r),i&&su&&(e=e.containerInfo,e=e.nodeType===9?e.body:e.nodeName===`HTML`?e.ownerDocument.body:e,e.style.viewTransitionName===`root`&&(e.style.viewTransitionName=``),e=e.ownerDocument.documentElement,e!==null&&e.style.viewTransitionName===`none`&&(e.style.viewTransitionName=``)),a&2048&&(a=null,t.alternate!==null&&(a=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==a&&(t.refCount++,a!=null&&ja(a)));break;case 12:if(a&2048){Fu(e,t,n,r),a=t.stateNode;try{var o=t.memoizedProps,s=o.id,c=o.onPostCommit;typeof c==`function`&&c(s,t.alternate===null?`mount`:`update`,a.passiveEffectDuration,-0)}catch(e){ff(t,t.return,e)}}else Fu(e,t,n,r);break;case 31:Fu(e,t,n,r);break;case 13:Fu(e,t,n,r);break;case 23:break;case 22:o=t.stateNode,s=t.alternate,t.memoizedState===null?(i&&s!==null&&s.memoizedState!==null&&Ql(t),o._visibility&2?Fu(e,t,n,r):(o._visibility|=2,Lu(e,t,n,r,!!(t.subtreeFlags&10256)||!1))):(i&&s!==null&&s.memoizedState===null&&Ql(s),o._visibility&2?Fu(e,t,n,r):Ru(e,t)),a&2048&&Nu(s,t);break;case 24:Fu(e,t,n,r),a&2048&&Pu(t.alternate,t);break;case 30:i&&(a=t.alternate,a!==null&&(Gl(a.child,!0),Gl(t.child,!0))),Fu(e,t,n,r);break;default:Fu(e,t,n,r)}}function Lu(e,t,n,r,i){for(i&&=!!(t.subtreeFlags&10256)||!1,t=t.child;t!==null;){var a=e,o=t,s=n,c=r,l=o.flags;switch(o.tag){case 0:case 11:case 15:Lu(a,o,s,c,i),bl(8,o);break;case 23:break;case 22:var u=o.stateNode;o.memoizedState===null?(u._visibility|=2,Lu(a,o,s,c,i)):u._visibility&2?Lu(a,o,s,c,i):Ru(a,o),i&&l&2048&&Nu(o.alternate,o);break;case 24:Lu(a,o,s,c,i),i&&l&2048&&Pu(o.alternate,o);break;default:Lu(a,o,s,c,i)}t=t.sibling}}function Ru(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:Ru(n,r),i&2048&&Nu(r.alternate,r);break;case 24:Ru(n,r),i&2048&&Pu(r.alternate,r);break;default:Ru(n,r)}t=t.sibling}}var zu=8192;function Bu(e,t,n){if(e.subtreeFlags&zu)for(e=e.child;e!==null;)Vu(e,t,n),e=e.sibling}function Vu(e,t,n){switch(e.tag){case 26:Bu(e,t,n),e.flags&zu&&(e.memoizedState===null?(e=e.stateNode,(t&335544128)===t&&Qm(n,e)):$m(n,wu,e.memoizedState,e.memoizedProps));break;case 5:Bu(e,t,n),e.flags&zu&&(e=e.stateNode,(t&335544128)===t&&Qm(n,e));break;case 3:case 4:var r=wu;wu=xm(e.stateNode.containerInfo),Bu(e,t,n),wu=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=zu,zu=16777216,Bu(e,t,n),zu=r):Bu(e,t,n));break;case 30:if((e.flags&zu)!==0&&(r=e.memoizedProps.name,r!=null&&r!==`auto`)){var i=e.stateNode;i.paired=null,Rl===null&&(Rl=new Map),Rl.set(r,i)}Bu(e,t,n);break;default:Bu(e,t,n)}}function Hu(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 Uu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Y=r,Ku(r,e)}Hu(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)Wu(e),e=e.sibling}function Wu(e){switch(e.tag){case 0:case 11:case 15:Uu(e),e.flags&2048&&xl(9,e,e.return);break;case 3:Uu(e);break;case 12:Uu(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Gu(e)):Uu(e);break;default:Uu(e)}}function Gu(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Y=r,Ku(r,e)}Hu(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:xl(8,t,t.return),Gu(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Gu(t));break;default:Gu(t)}e=e.sibling}}function Ku(e,t){for(;Y!==null;){var n=Y;switch(n.tag){case 0:case 11:case 15:xl(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:ja(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Y=r;else a:for(n=e;Y!==null;){r=Y;var i=r.sibling,a=r.return;if(mu(r),r===n){Y=null;break a}if(i!==null){i.return=a,Y=i;break a}Y=a}}}var qu={getCacheForType:function(e){var t=Ca(ka),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ca(ka).controller.signal}},Ju=typeof WeakMap==`function`?WeakMap:Map,Yu=0,Xu=null,Zu=null,Qu=0,$u=0,ed=null,td=!1,nd=!1,rd=!1,id=0,ad=0,od=0,sd=0,cd=0,ld=0,ud=0,dd=null,fd=null,pd=!1,md=0,hd=0,gd=1/0,_d=null,vd=null,Z=0,yd=null,bd=null,xd=0,Sd=0,Cd=null,wd=null,Td=null,Ed=null,Dd=null,Od=0,kd=null;function Ad(){return Yu&2&&Qu!==0?Qu&-Qu:B.T===null?mt():Nf()}function jd(){if(ld===0){if(!(Qu&536870912)||na){var e=Qe;Qe<<=1,!(Qe&3932160)&&(Qe=262144),ld=e}else ld=536870912}return e=Do.current,e!==null&&(e.flags|=32),ld}function Md(e,t){if(t!=null){var n=e.stateNode,r=n.ref;r===null&&(r=n.ref=Fp(mi(e.memoizedProps,n))),Ed===null&&(Ed=[]),Ed.push(t.bind(null,r))}}function Nd(e,t,n){(e===Xu&&($u===2||$u===9)||e.cancelPendingCommit!==null)&&(Bd(e,0),Ld(e,Qu,ld,!1)),st(e,n),Yu&2&&e===Xu||(e===Xu&&(!(Yu&2)&&(sd|=n),ad===4&&Ld(e,Qu,ld,!1)),Tf(e))}function Pd(e,t,n){if(Yu&6)throw Error(i(327));var r=!n&&!(t&127)&&(t&e.expiredLanes)===0||nt(e,t),a=r?Jd(e,t):Kd(e,t,!0),o=r;do{if(a===0){nd&&!r&&Ld(e,t,0,!1);break}if(n=e.current.alternate,o&&!Id(n))a=Kd(e,t,!1),o=!1;else{if(a===2){if(o=t,e.errorRecoveryDisabledLanes&o)var s=0;else s=e.pendingLanes&-536870913,s=s===0?s&536870912?536870912:0:s;if(s!==0){t=s;a:{var c=e;a=dd;var l=c.current.memoizedState.isDehydrated;if(l&&(Bd(c,s).flags|=256),s=Kd(c,s,!1),s!==2&&s!==6){if(rd&&!l){c.errorRecoveryDisabledLanes|=o,sd|=o,a=4;break a}o=fd,fd=a,o!==null&&(fd===null?fd=o:fd.push.apply(fd,o))}a=s}if(o=!1,a!==2)continue}}if(a===1){Bd(e,0),Ld(e,t,0,!0);break}a:{switch(r=e,o=a,o){case 0:case 1:throw Error(i(345));case 4:if((t&4194048)!==t&&(t&62914560)!==t)break;case 6:Ld(r,t,ld,!td);break a;case 2:fd=null;break;case 3:case 5:break;default:throw Error(i(329))}if((t&62914560)===t&&(a=md+300-Fe(),10<a)){if(Ld(r,t,ld,!td),tt(r,0,!0)!==0)break a;xd=t,r.timeoutHandle=_p(Fd.bind(null,r,n,fd,_d,pd,t,ld,sd,ud,td,o,`Throttled`,-0,0),a);break a}Fd(r,n,fd,_d,pd,t,ld,sd,ud,td,o,null,-0,0)}break}}while(1);Tf(e)}function Fd(e,t,n,r,i,a,o,s,c,l,u,d,f,p){e.timeoutHandle=-1;var m=t.subtreeFlags,h=(a&335544064)===a;d=null,(h||m&8192||(m&16785408)==16785408)&&(d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:gn},Rl=null,Vu(t,a,d),h&&(m=d,h=e.containerInfo,h=(h.nodeType===9?h:h.ownerDocument).__reactViewTransition,h!=null&&(m.count++,m.waitingForViewTransition=!0,m=rh.bind(m),h.finished.then(m,m))),m=(a&62914560)===a?md-Fe():(a&4194048)===a?hd-Fe():0,m=th(d,m),m!==null)?(xd=a,e.cancelPendingCommit=m(ef.bind(null,e,t,a,n,r,i,o,s,c,l,u,d,null,f,p)),Ld(e,a,o,!l)):ef(e,t,a,n,r,i,o,s,c,l,u,d)}function Id(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(!zr(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 Ld(e,t,n,r){t=rt(e,t),t&=~cd,t&=~sd,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-qe(i),o=1<<a;r[a]=-1,i&=~o}n!==0&<(e,n,t)}function Rd(){return Yu&6?!0:(Ef(0,!1),!1)}function zd(){if(Zu!==null){if($u===0)var e=Zu.return;else e=Zu,ha=ma=null,rs(e),ro=null,io=0,e=Zu;for(;e!==null;)yl(e.alternate,e),e=e.return;Zu=null}}function Bd(e,t){var n=e.timeoutHandle;return n!==-1&&(e.timeoutHandle=-1,vp(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),xd=0,zd(),Xu=e,Zu=n=ji(e.current,null),Qu=t,$u=0,ed=null,td=!1,nd=nt(e,t),rd=!1,ud=ld=cd=sd=od=ad=0,fd=dd=null,pd=!1,id=rt(e,t),xi(),n}function Vd(e,t){zo=null,B.H=fc,t===qa||t===Ya?(t=to(),$u=3):t===Ja?(t=to(),$u=4):$u=t===Ac?8:typeof t==`object`&&t&&typeof t.then==`function`?6:1,ed=t,Zu===null&&(ad=1,wc(e,zi(t,e.current)))}function Hd(){var e=Do.current;return e===null?!0:(Qu&4194048)===Qu?Oo===null:(Qu&62914560)===Qu||Qu&536870912?e===Oo:!1}function Ud(){var e=B.H;return B.H=fc,e===null?fc:e}function Wd(){var e=B.A;return B.A=qu,e}function Gd(){ad=4,td||(Qu&4194048)!==Qu&&Do.current!==null||(nd=!0),!(od&134217727)&&!(sd&134217727)||Xu===null||Ld(Xu,Qu,ld,!1)}function Kd(e,t,n){var r=Yu;Yu|=2;var i=Ud(),a=Wd();(Xu!==e||Qu!==t)&&(_d=null,Bd(e,t)),t=!1;var o=ad;a:do try{if($u!==0&&Zu!==null){var s=Zu,c=ed;switch($u){case 8:zd(),o=6;break a;case 3:case 2:case 9:case 6:Do.current===null&&(t=!0);var l=$u;if($u=0,ed=null,Qd(e,s,c,l),n&&nd){o=0;break a}break;default:l=$u,$u=0,ed=null,Qd(e,s,c,l)}}qd(),o=ad;break}catch(t){Vd(e,t)}while(1);return t&&e.shellSuspendCounter++,ha=ma=null,Yu=r,B.H=i,B.A=a,Zu===null&&(Xu=null,Qu=0,xi()),o}function qd(){for(;Zu!==null;)Xd(Zu)}function Jd(e,t){var n=Yu;Yu|=2;var r=Ud(),a=Wd();Xu!==e||Qu!==t?(_d=null,gd=Fe()+500,Bd(e,t)):nd=nt(e,t);a:do try{if($u!==0&&Zu!==null){t=Zu;var o=ed;b:switch($u){case 1:$u=0,ed=null,Qd(e,t,o,1);break;case 2:case 9:if(Za(o)){$u=0,ed=null,Zd(t);break}t=function(){$u!==2&&$u!==9||Xu!==e||($u=7),Tf(e)},o.then(t,t);break a;case 3:$u=7;break a;case 4:$u=5;break a;case 7:Za(o)?($u=0,ed=null,Zd(t)):($u=0,ed=null,Qd(e,t,o,7));break;case 5:var s=null;switch(Zu.tag){case 26:s=Zu.memoizedState;case 5:case 27:var c=Zu;if(s?Xm(s):c.stateNode.complete){$u=0,ed=null;var l=c.sibling;if(l!==null)Zu=l;else{var u=c.return;u===null?Zu=null:(Zu=u,$d(u))}break b}}$u=0,ed=null,Qd(e,t,o,5);break;case 6:$u=0,ed=null,Qd(e,t,o,6);break;case 8:zd(),ad=6;break a;default:throw Error(i(462))}}Yd();break}catch(t){Vd(e,t)}while(1);return ha=ma=null,B.H=r,B.A=a,Yu=n,Zu===null?(Xu=null,Qu=0,xi(),ad):0}function Yd(){for(;Zu!==null&&!Ne();)Xd(Zu)}function Xd(e){var t=ul(e.alternate,e,id);e.memoizedProps=e.pendingProps,t===null?$d(e):Zu=t}function Zd(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Wc(n,t,t.pendingProps,t.type,void 0,Qu);break;case 11:t=Wc(n,t,t.pendingProps,t.type.render,t.ref,Qu);break;case 5:rs(t);var r=t;r===ea&&(na?(ca(r),r.tag===5&&r.stateNode!=null&&(ta=r.stateNode)):(ca(r),na=!0));default:yl(n,t),t=Zu=Mi(t,id),t=ul(n,t,id)}e.memoizedProps=e.pendingProps,t===null?$d(e):Zu=t}function Qd(e,t,n,r){ha=ma=null,rs(t),ro=null,io=0;var i=t.return;try{if(kc(e,i,t,n,Qu)){ad=1,wc(e,zi(n,e.current)),Zu=null;return}}catch(t){if(i!==null)throw Zu=i,t;ad=1,wc(e,zi(n,e.current)),Zu=null;return}t.flags&32768?(na||r===1?e=!0:nd||Qu&536870912?e=!1:(td=e=!0,(r===2||r===9||r===3||r===6)&&(r=Do.current,r!==null&&r.tag===13&&(r.flags|=16384))),Q(t,e)):$d(t)}function $d(e){var t=e;do{if(t.flags&32768){Q(t,td);return}e=t.return;var n=_l(t.alternate,t,id);if(n!==null){Zu=n;return}if(t=t.sibling,t!==null){Zu=t;return}Zu=t=e}while(t!==null);ad===0&&(ad=5)}function Q(e,t){do{var n=vl(e.alternate,e);if(n!==null){n.flags&=32767,Zu=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){Zu=e;return}Zu=e=n}while(e!==null);ad=6,Zu=null}function ef(e,t,n,r,a,o,s,c,l,u,d,f){e.cancelPendingCommit=null;do lf();while(Z!==0);if(Yu&6)throw Error(i(327));if(t!==null){if(t===e.current)throw Error(i(177));e===Xu&&(Zu=Xu=null,Qu=0),bd=t,yd=e,xd=n,Cd=a,wd=r,tf(e,t,n,s,c,l,f)}}function tf(e,t,n,r,i,a,o){var s=t.lanes|t.childLanes;if(Sd=s,s|=bi,ct(e,n,s,r,i,a),Ed=null,(n&335544064)===n?(Dd=Pa(e),r=10262):(Dd=null,r=10256),(t.subtreeFlags&r)!==0||(t.flags&r)!==0?(e.callbackNode=null,e.callbackPriority=0,vf(ze,function(){return uf(),null})):(e.callbackNode=null,e.callbackPriority=0),Ll=!1,r=!!(t.flags&13878),t.subtreeFlags&13878||r){r=B.T,B.T=null,i=le.p,le.p=2,a=Yu,Yu|=4;try{cu(e,t,n)}finally{Yu=a,le.p=i,B.T=r}}Z=1,Ll?Td=Np(o,e.containerInfo,Dd,af,of,rf,sf,uf,nf,null,null):(af(),of(),sf())}function nf(e){if(Z!==0){var t=yd.onRecoverableError;t(e,{componentStack:null})}}function rf(){Z===3&&(Z=0,ku(bd,yd),Z=4)}function af(){if(Z===1){Z=0;var e=yd,t=bd,n=xd,r=!!(t.flags&13878);if(t.subtreeFlags&13878||r){r=B.T,B.T=null;var i=le.p;le.p=2;var a=Yu;Yu|=4;try{au=ou=!1,Tu(t,e,n),n=lp;var o=Gr(e.containerInfo),s=n.focusedElem,c=n.selectionRange;if(o!==s&&s&&s.ownerDocument&&Wr(s.ownerDocument.documentElement,s)){if(c!==null&&Kr(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 _=Ur(s,h),v=Ur(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}}_h=!!cp,lp=cp=null}finally{Yu=a,le.p=i,B.T=r}}e.current=t,Z=2}}function of(){if(Z===2){Z=0;var e=yd,t=bd,n=!!(t.flags&8772);if(t.subtreeFlags&8772||n){n=B.T,B.T=null;var r=le.p;le.p=2;var i=Yu;Yu|=4;try{uu(e,t.alternate,t)}finally{Yu=i,le.p=r,B.T=n}}Z=3}}function sf(){if(Z===4||Z===3){Z=0;var e=Td;Td=null,Pe();var t=yd,n=bd,r=xd,i=wd,a=(r&335544064)===r?10262:10256;if((n.subtreeFlags&a)!==0||(n.flags&a)!==0?Z=5:(Z=0,bd=yd=null,cf(t,t.pendingLanes)),a=t.pendingLanes,a===0&&(vd=null),pt(r),n=n.stateNode,Ge&&typeof Ge.onCommitFiberRoot==`function`)try{Ge.onCommitFiberRoot(We,n,void 0,(n.current.flags&128)==128)}catch{}if(i!==null){n=B.T,a=le.p,le.p=2,B.T=null;try{for(var o=t.onRecoverableError,s=0;s<i.length;s++){var c=i[s];o(c.value,{componentStack:c.stack})}}finally{B.T=n,le.p=a}}if(i=Ed,o=Dd,Dd=null,i!==null&&(Ed=null,o===null&&(o=[]),e!==null))for(c=0;c<i.length;c++)n=(0,i[c])(o),n!==void 0&&e.finished.finally(n);xd&3&&lf(),Tf(t),a=t.pendingLanes,r&261930&&a&42?t===kd?Od++:(Od=0,kd=t):(Od=0,kd=null),Ef(0,!1)}}function cf(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,ja(t)))}function lf(){return Td!==null&&(Td.skipTransition(),Td=null),af(),of(),sf(),uf()}function uf(){if(Z!==5)return!1;var e=yd,t=Sd;Sd=0;var n=pt(xd),r=B.T,a=le.p;try{le.p=32>n?32:n,B.T=null,n=Cd,Cd=null;var o=yd,s=xd;if(Z=0,bd=yd=null,xd=0,Yu&6)throw Error(i(331));var c=Yu;if(Yu|=4,Wu(o.current),Iu(o,o.current,s,n),Yu=c,Ef(0,!1),Ge&&typeof Ge.onPostCommitFiberRoot==`function`)try{Ge.onPostCommitFiberRoot(We,o)}catch{}return!0}finally{le.p=a,B.T=r,cf(e,t)}}function df(e,t,n){t=zi(n,t),t=Ec(e.stateNode,t,2),e=mo(e,t,2),e!==null&&(st(e,2),Tf(e))}function ff(e,t,n){if(e.tag===3)df(e,e,n);else for(;t!==null;){if(t.tag===3){df(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(vd===null||!vd.has(r))){e=zi(n,e),n=Dc(2),r=mo(t,n,2),r!==null&&(Oc(n,r,t,e),st(r,2),Tf(r));break}}t=t.return}}function pf(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ju;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)||(rd=!0,i.add(n),e=mf.bind(null,e,t,n),t.then(e,e))}function mf(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Xu===e&&(Qu&n)===n&&(ad===4||ad===3&&(Qu&62914560)===Qu&&300>Fe()-md?Yu&2?cd|=n:Bd(e,0):cd|=n,ud===Qu&&(ud=0)),Tf(e)}function hf(e,t){t===0&&(t=at()),e=wi(e,t),e!==null&&(st(e,t),Tf(e))}function gf(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),hf(e,n)}function _f(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(i(314))}r!==null&&r.delete(t),hf(e,n)}function vf(e,t){return je(e,t)}var yf=null,bf=null,xf=!1,Sf=!1,Cf=!1,wf=0;function Tf(e){e!==bf&&e.next===null&&(bf===null?yf=bf=e:bf=bf.next=e),Sf=!0,xf||(xf=!0,Mf())}function Ef(e,t){if(!Cf&&Sf){Cf=!0;do for(var n=!1,r=yf;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-qe(42|e)+1)-1,a&=i&~(o&~s),a=a&201326741?a&201326741|1:a?a|2:0}a!==0&&(n=!0,jf(r,a))}else a=Qu,a=tt(r,r===Xu?a:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(a&3)||nt(r,a)||(n=!0,jf(r,a))}r=r.next}while(n);Cf=!1}}function Df(){Of()}function Of(){Sf=xf=!1;var e=0;wf!==0&&gp()&&(e=wf);for(var t=Fe(),n=null,r=yf;r!==null;){var i=r.next,a=kf(r,t);a===0?(r.next=null,n===null?yf=i:n.next=i,i===null&&(bf=n)):(n=r,(e!==0||a&3)&&(Sf=!0)),r=i}Z!==0&&Z!==5||Ef(e,!1),wf!==0&&(wf=0)}function kf(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes&-62914561;0<a;){var o=31-qe(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=it(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}if(t=Xu,n=Qu,n=tt(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&($u===2||$u===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&Me(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||nt(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&Me(r),pt(n)){case 2:case 8:n=Re;break;case 32:n=ze;break;case 268435456:n=Ve;break;default:n=ze}return r=Af.bind(null,e),n=je(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&Me(r),e.callbackPriority=2,e.callbackNode=null,2}function Af(e,t){if(Z!==0&&Z!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(lf()&&e.callbackNode!==n)return null;var r=Qu;return r=tt(e,e===Xu?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(Pd(e,r,t),kf(e,Fe()),e.callbackNode!=null&&e.callbackNode===n?Af.bind(null,e):null)}function jf(e,t){if(lf())return null;Pd(e,t,!0)}function Mf(){xp(function(){Yu&6?je(Le,Df):Of()})}function Nf(){if(wf===0){var e=La;e===0&&(e=Ze,Ze<<=1,!(Ze&261888)&&(Ze=256)),wf=e}return wf}function Pf(e){return e==null||typeof e==`symbol`||typeof e==`boolean`?null:typeof e==`function`?e:hn(e)}function Ff(e,t,n,r,i){if(t===`submit`&&n&&n.stateNode===i){var a=Pf((i[vt]||null).action),o=r.submitter;o&&(t=(t=o[vt]||null)?Pf(t.formAction):o.getAttribute(`formAction`),t!==null&&(a=t,o=null));var s=new Ln(`action`,`action`,null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(wf!==0){var e=new FormData(i,o);Qs(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else typeof a==`function`&&(s.preventDefault(),e=new FormData(i,o),Qs(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}for(var If=0;If<di.length;If++){var Lf=di[If];fi(Lf.toLowerCase(),`on`+(Lf[0].toUpperCase()+Lf.slice(1)))}fi(H,`onAnimationEnd`),fi(ii,`onAnimationIteration`),fi(ai,`onAnimationStart`),fi(`dblclick`,`onDoubleClick`),fi(`focusin`,`onFocus`),fi(`focusout`,`onBlur`),fi(oi,`onTransitionRun`),fi(si,`onTransitionStart`),fi(ci,`onTransitionCancel`),fi(li,`onTransitionEnd`),Rt(`onMouseEnter`,[`mouseout`,`mouseover`]),Rt(`onMouseLeave`,[`mouseout`,`mouseover`]),Rt(`onPointerEnter`,[`pointerout`,`pointerover`]),Rt(`onPointerLeave`,[`pointerout`,`pointerover`]),Lt(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),Lt(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),Lt(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),Lt(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),Lt(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var Rf=`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(` `),zf=new Set(`beforetoggle cancel close invalid load scroll scrollend toggle`.split(` `).concat(Rf));function Bf(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;a=s,i.currentTarget=l;try{a(i)}catch(e){_i(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){_i(e)}i.currentTarget=null,a=c}}}}function Vf(e,t){var n=t[bt];n===void 0&&(n=t[bt]=new Set);var r=e+`__bubble`;n.has(r)||(Gf(t,e,2,!1),n.add(r))}function Hf(e,t,n){var r=0;t&&(r|=4),Gf(n,e,r,t)}var Uf=`_reactListening`+Math.random().toString(36).slice(2);function Wf(e){if(!e[Uf]){e[Uf]=!0,Nt.forEach(function(t){t!==`selectionchange`&&(zf.has(t)||Hf(t,!1,e),Hf(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[Uf]||(t[Uf]=!0,Hf(`selectionchange`,!1,t))}}function Gf(e,t,n,r){switch(wh(t)){case 2:var i=vh;break;case 8:i=yh;break;default:i=bh}n=i.bind(null,t,n,e),i=void 0,!En||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 Kf(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var c=r.stateNode.containerInfo;if(c===i)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===i)return;s=s.return}for(;c!==null;){if(s=Dt(c),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=a=s;continue a}c=c.parentNode}}r=r.return}Cn(function(){var r=a,i=vn(n),s=[];a:{var c=ui.get(e);if(c!==void 0){var l=Ln,u=e;switch(e){case`keypress`:if(Mn(n)===0)break a;case`keydown`:case`keyup`:l=tr;break;case`focusin`:u=`focus`,l=Kn;break;case`focusout`:u=`blur`,l=Kn;break;case`beforeblur`:case`afterblur`:l=Kn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:l=Wn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:l=Gn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:l=ir;break;case H:case ii:case ai:l=qn;break;case li:l=ar;break;case`scroll`:case`scrollend`:l=zn;break;case`wheel`:l=or;break;case`copy`:case`cut`:case`paste`:l=Jn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:l=nr;break;case`submit`:l=rr;break;case`toggle`:case`beforetoggle`:l=sr}var d=!!(t&4),f=!d&&(e===`scroll`||e===`scrollend`),p=d?c===null?null:c+`Capture`:c;d=[];for(var m=r,h;m!==null;){var g=m;if(h=g.stateNode,g=g.tag,g!==5&&g!==26&&g!==27||h===null||p===null||(g=wn(m,p),g!=null&&d.push(qf(m,g,h))),f)break;m=m.return}0<d.length&&(c=new l(c,u,null,n,i),s.push({event:c,listeners:d}))}}if(!(t&7)){a:{if(l=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,l&&n!==_n&&(u=n.relatedTarget||n.fromElement)&&(Dt(u)||u[yt]))break a;(c||l)&&(u=i.window===i?i:(l=i.ownerDocument)?l.defaultView||l.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Dt(l):null,l!==null&&(f=o(l),d=l.tag,l!==f||d!==5&&d!==27&&d!==6)&&(l=null)):(c=null,l=r),c!==l&&(d=Wn,g=`onMouseLeave`,p=`onMouseEnter`,m=`mouse`,(e===`pointerout`||e===`pointerover`)&&(d=nr,g=`onPointerLeave`,p=`onPointerEnter`,m=`pointer`),f=c==null?u:kt(c),h=l==null?u:kt(l),u=new d(g,m+`leave`,c,n,i),u.target=f,u.relatedTarget=h,g=null,Dt(i)===r&&(d=new d(p,m+`enter`,l,n,i),d.target=h,d.relatedTarget=f,g=d),f=g,d=c&&l?C(c,l,Yf):null,c!==null&&Xf(s,u,c,d,!1),l!==null&&f!==null&&Xf(s,f,l,d,!0)))}a:{if(c=r?kt(r):window,l=c.nodeName&&c.nodeName.toLowerCase(),l===`select`||l===`input`&&c.type===`file`)var _=Dr;else if(xr(c)){if(Or)_=Lr;else{_=Fr;var v=Pr}}else l=c.nodeName,!l||l.toLowerCase()!==`input`||c.type!==`checkbox`&&c.type!==`radio`?r&&fn(r.elementType)&&(_=Dr):_=Ir;if(_&&=_(e,r)){Sr(s,_,n,i);break a}v&&v(e,c,r)}switch(v=r?kt(r):window,e){case`focusin`:(xr(v)||v.contentEditable===`true`)&&(Jr=v,Yr=r,Xr=null);break;case`focusout`:Xr=Yr=Jr=null;break;case`mousedown`:Zr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Zr=!1,Qr(s,n,i);break;case`selectionchange`:if(qr)break;case`keydown`:case`keyup`:Qr(s,n,i)}var y;if(lr)b:{switch(e){case`compositionstart`:var b=`onCompositionStart`;break b;case`compositionend`:b=`onCompositionEnd`;break b;case`compositionupdate`:b=`onCompositionUpdate`;break b}b=void 0}else _r?hr(e,n)&&(b=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(b=`onCompositionStart`);b&&(fr&&n.locale!==`ko`&&(_r||b!==`onCompositionStart`?b===`onCompositionEnd`&&_r&&(y=jn()):(On=i,kn=`value`in On?On.value:On.textContent,_r=!0)),v=Jf(r,b),0<v.length&&(b=new Yn(b,e,null,n,i),s.push({event:b,listeners:v}),y?b.data=y:(y=gr(n),y!==null&&(b.data=y)))),(y=dr?vr(e,n):yr(e,n))&&(b=Jf(r,`onBeforeInput`),0<b.length&&(v=new Yn(`onBeforeInput`,`beforeinput`,null,n,i),s.push({event:v,listeners:b}),v.data=y)),Ff(s,e,r,n,i)}Bf(s,t)})}function qf(e,t,n){return{instance:e,listener:t,currentTarget:n}}function Jf(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=wn(e,n),i!=null&&r.unshift(qf(e,i,a)),i=wn(e,t),i!=null&&r.push(qf(e,i,a))),e.tag===3)return r;e=e.return}return[]}function Yf(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Xf(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=wn(n,a),l!=null&&o.unshift(qf(n,l,c))):i||(l=wn(n,a),l!=null&&o.push(qf(n,l,c)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var Zf=/\r\n?/g,Qf=/\u0000|\uFFFD/g;function $f(e){return(typeof e==`string`?e:``+e).replace(Zf,`
|
|
9
|
+
`).replace(Qf,``)}function ep(e,t){return t=$f(t),$f(e)===t}function tp(e,t,n,r,a,o){switch(n){case`children`:if(typeof r==`string`)t===`body`||t===`textarea`&&r===``||cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)t!==`body`&&cn(e,``+r);else return;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`:dn(e,r,o);return;case`data`:if(t!==`object`){Kt(e,`data`,r);break}case`src`:case`href`:if(r===``&&(t!==`a`||n!==`href`)||r==null||typeof r==`function`||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`action`:case`formAction`:if(typeof r==`function`){e.setAttribute(n,`javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')`);break}if(typeof o==`function`&&(n===`formAction`?(t!==`input`&&tp(e,t,`name`,a.name,a,null),tp(e,t,`formEncType`,a.formEncType,a,null),tp(e,t,`formMethod`,a.formMethod,a,null),tp(e,t,`formTarget`,a.formTarget,a,null)):(tp(e,t,`encType`,a.encType,a,null),tp(e,t,`method`,a.method,a,null),tp(e,t,`target`,a.target,a,null))),r==null||typeof r==`symbol`||typeof r==`boolean`){e.removeAttribute(n);break}r=hn(r),e.setAttribute(n,r);break;case`onClick`:r!=null&&(e.onclick=gn);return;case`onScroll`:r!=null&&Vf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Vf(`scrollend`,e);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(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=hn(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`credentialless`: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`:Vf(`beforetoggle`,e),Vf(`toggle`,e),Gt(e,`popover`,r);break;case`xlinkActuate`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:actuate`,r);break;case`xlinkArcrole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:arcrole`,r);break;case`xlinkRole`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:role`,r);break;case`xlinkShow`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:show`,r);break;case`xlinkTitle`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:title`,r);break;case`xlinkType`:qt(e,`http://www.w3.org/1999/xlink`,`xlink:type`,r);break;case`xmlBase`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:base`,r);break;case`xmlLang`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:lang`,r);break;case`xmlSpace`:qt(e,`http://www.w3.org/XML/1998/namespace`,`xml:space`,r);break;case`is`:Gt(e,`is`,r);break;case`innerText`:case`textContent`:return;default:if(!(2<n.length)||n[0]!==`o`&&n[0]!==`O`||n[1]!==`n`&&n[1]!==`N`)n=pn.get(n)||n,Gt(e,n,r);else return}Ut=!0}function np(e,t,n,r,a,o){switch(n){case`style`:dn(e,r,o);return;case`dangerouslySetInnerHTML`:if(r!=null){if(typeof r!=`object`||!(`__html`in r))throw Error(i(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(i(60));o?.__html!==n&&(e.innerHTML=n)}}break;case`children`:if(typeof r==`string`)cn(e,r);else if(typeof r==`number`||typeof r==`bigint`)cn(e,``+r);else return;break;case`onScroll`:r!=null&&Vf(`scroll`,e);return;case`onScrollEnd`:r!=null&&Vf(`scrollend`,e);return;case`onClick`:r!=null&&(e.onclick=gn);return;case`suppressContentEditableWarning`:case`suppressHydrationWarning`:case`innerHTML`:case`ref`:return;case`innerText`:case`textContent`:return;default:if(!Ft.hasOwnProperty(n))a:{if(n[0]===`o`&&n[1]===`n`&&(a=n.endsWith(`Capture`),o=n.slice(2,a?n.length-7:void 0),t=e[vt]||null,t=t==null?null:t[n],typeof t==`function`&&e.removeEventListener(o,t,a),typeof r==`function`)){typeof t!=`function`&&t!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(o,r,a);break a}Ut=!0,n in e?e[n]=r:!0===r?e.setAttribute(n,``):Gt(e,n,r)}return}Ut=!0}function rp(e,t,n){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`img`:Vf(`error`,e),Vf(`load`,e);var r=!1,a=!1,o;for(o in n)if(n.hasOwnProperty(o)){var s=n[o];if(s!=null)switch(o){case`src`:r=!0;break;case`srcSet`:a=!0;break;case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:tp(e,t,o,s,n,null)}}a&&tp(e,t,`srcSet`,n.srcSet,n,null),r&&tp(e,t,`src`,n.src,n,null);return;case`input`:Vf(`invalid`,e);var c=o=s=a=null,l=null,u=null;for(r in n)if(n.hasOwnProperty(r)){var d=n[r];if(d!=null)switch(r){case`name`:a=d;break;case`type`:s=d;break;case`checked`:l=d;break;case`defaultChecked`:u=d;break;case`value`:o=d;break;case`defaultValue`:c=d;break;case`children`:case`dangerouslySetInnerHTML`:if(d!=null)throw Error(i(137,t));break;default:tp(e,t,r,d,n,null)}}nn(e,o,c,l,u,s,a,!1);return;case`select`:for(a in Vf(`invalid`,e),r=s=o=null,n)if(n.hasOwnProperty(a)&&(c=n[a],c!=null))switch(a){case`value`:o=c;break;case`defaultValue`:s=c;break;case`multiple`:r=c;default:tp(e,t,a,c,n,null)}t=o,n=s,e.multiple=!!r,t==null?n!=null&&an(e,!!r,n,!0):an(e,!!r,t,!1);return;case`textarea`:for(s in Vf(`invalid`,e),o=a=r=null,n)if(n.hasOwnProperty(s)&&(c=n[s],c!=null))switch(s){case`value`:r=c;break;case`defaultValue`:a=c;break;case`children`:o=c;break;case`dangerouslySetInnerHTML`:if(c!=null)throw Error(i(91));break;default:tp(e,t,s,c,n,null)}sn(e,r,a,o);return;case`option`:for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case`selected`:e.selected=r&&typeof r!=`function`&&typeof r!=`symbol`;break;default:tp(e,t,l,r,n,null)}return;case`dialog`:Vf(`beforetoggle`,e),Vf(`toggle`,e),Vf(`cancel`,e),Vf(`close`,e);break;case`iframe`:case`object`:Vf(`load`,e);break;case`video`:case`audio`:for(r=0;r<Rf.length;r++)Vf(Rf[r],e);break;case`image`:Vf(`error`,e),Vf(`load`,e);break;case`details`:Vf(`toggle`,e);break;case`embed`:case`source`:case`link`:Vf(`error`,e),Vf(`load`,e);case`area`:case`base`:case`br`:case`col`:case`hr`:case`keygen`:case`meta`:case`param`:case`track`:case`wbr`:case`menuitem`:for(u in n)if(n.hasOwnProperty(u)&&(r=n[u],r!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:throw Error(i(137,t));default:tp(e,t,u,r,n,null)}return;default:if(fn(t)){for(d in n)n.hasOwnProperty(d)&&(r=n[d],r!==void 0&&np(e,t,d,r,n,void 0));return}}for(c in n)n.hasOwnProperty(c)&&(r=n[c],r!=null&&tp(e,t,c,r,n,null))}var ip={};function ap(e,t,n,r){switch(t){case`div`:case`span`:case`svg`:case`path`:case`a`:case`g`:case`p`:case`li`:break;case`input`:var a=null,o=null,s=null,c=null,l=null,u=null,d=null;for(m in n){var f=n[m];if(n.hasOwnProperty(m)&&f!=null)switch(m){case`checked`:break;case`value`:break;case`defaultValue`:l=f;default:r.hasOwnProperty(m)||tp(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`:m!==f&&(Ut=!0),o=m;break;case`name`:m!==f&&(Ut=!0),a=m;break;case`checked`:m!==f&&(Ut=!0),u=m;break;case`defaultChecked`:m!==f&&(Ut=!0),d=m;break;case`value`:m!==f&&(Ut=!0),s=m;break;case`defaultValue`:m!==f&&(Ut=!0),c=m;break;case`children`:case`dangerouslySetInnerHTML`:if(m!=null)throw Error(i(137,t));break;default:m!==f&&tp(e,t,p,m,r,f)}}tn(e,s,c,l,u,d,o,a);return;case`select`:for(o in m=s=c=p=null,n)if(l=n[o],n.hasOwnProperty(o)&&l!=null)switch(o){case`value`:break;case`multiple`:m=l;default:r.hasOwnProperty(o)||tp(e,t,o,null,r,l)}for(a in r)if(o=r[a],l=n[a],r.hasOwnProperty(a)&&(o!=null||l!=null))switch(a){case`value`:o!==l&&(Ut=!0),p=o;break;case`defaultValue`:o!==l&&(Ut=!0),c=o;break;case`multiple`:o!==l&&(Ut=!0),s=o;default:o!==l&&tp(e,t,a,o,r,l)}t=c,n=s,r=m,p==null?!!r!=!!n&&(t==null?an(e,!!n,n?[]:``,!1):an(e,!!n,t,!0)):an(e,!!n,p,!1);return;case`textarea`:for(c in m=p=null,n)if(a=n[c],n.hasOwnProperty(c)&&a!=null&&!r.hasOwnProperty(c))switch(c){case`value`:break;case`children`:break;default:tp(e,t,c,null,r,a)}for(s in r)if(a=r[s],o=n[s],r.hasOwnProperty(s)&&(a!=null||o!=null))switch(s){case`value`:a!==o&&(Ut=!0),p=a;break;case`defaultValue`:a!==o&&(Ut=!0),m=a;break;case`children`:break;case`dangerouslySetInnerHTML`:if(a!=null)throw Error(i(91));break;default:a!==o&&tp(e,t,s,a,r,o)}on(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:tp(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`:p!==m&&(Ut=!0),e.selected=p&&typeof p!=`function`&&typeof p!=`symbol`;break;default:tp(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)&&tp(e,t,g,null,r,p);for(u in r)if(p=r[u],m=n[u],r.hasOwnProperty(u)&&p!==m&&(p!=null||m!=null))switch(u){case`children`:case`dangerouslySetInnerHTML`:if(p!=null)throw Error(i(137,t));break;default:tp(e,t,u,p,r,m)}return;default:if(fn(t)){for(var _ in n)p=n[_],n.hasOwnProperty(_)&&p!==void 0&&!r.hasOwnProperty(_)&&np(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||np(e,t,d,p,r,m);return}}for(var v in n)p=n[v],n.hasOwnProperty(v)&&p!=null&&!r.hasOwnProperty(v)&&tp(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||tp(e,t,f,p,r,m)}function op(e){switch(e){case`css`:case`script`:case`font`:case`img`:case`image`:case`input`:case`link`:return!0;default:return!1}}function sp(){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&&op(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&&op(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 cp=null,lp=null;function up(e){return e.nodeType===9?e:e.ownerDocument}function dp(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 fp(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 pp(e,t,n,r){return n=up(n).createElement(e),n[_t]=r,n[vt]=t,rp(n,e,t),jt(n),n}function mp(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 hp=null;function gp(){var e=window.event;return e&&e.type===`popstate`?e!==hp&&(hp=e,!0):(hp=null,!1)}var _p=typeof setTimeout==`function`?setTimeout:void 0,vp=typeof clearTimeout==`function`?clearTimeout:void 0,yp=typeof Promise==`function`?Promise:void 0,bp=typeof requestAnimationFrame==`function`?requestAnimationFrame:_p,xp=typeof queueMicrotask==`function`?queueMicrotask:yp===void 0?_p:function(e){return yp.resolve(null).then(e).catch(Sp)};function Sp(e){setTimeout(function(){throw e})}function Cp(e){return e===`head`}function wp(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),Uh(t);return}r--}else if(n===`$`||n===`$?`||n===`$~`||n===`$!`||n===`&`)r++;else if(n===`html`)vm(e.ownerDocument.documentElement);else if(n===`head`){n=e.ownerDocument.head,vm(n);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[wt]||s===`SCRIPT`||s===`STYLE`||s===`LINK`&&a.rel.toLowerCase()===`stylesheet`||n.removeChild(a),a=o}}else n===`body`&&vm(e.ownerDocument.body)}n=i}while(n);Uh(t)}function Tp(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 Ep(e,t,n){if(t=CSS.escape(t)===t?t:`r-`+btoa(t).replace(/=/g,``),e.style.viewTransitionName=t,n!=null&&(e.style.viewTransitionClass=n),n=getComputedStyle(e),n.display===`inline`){if(t=e.getClientRects(),t.length===1)var r=1;else for(var i=r=0;i<t.length;i++){var a=t[i];0<a.width&&0<a.height&&r++}r===1&&(e=e.style,e.display=t.length===1?`inline-block`:`block`,e.marginTop=`-`+n.paddingTop,e.marginBottom=`-`+n.paddingBottom)}}function Dp(e,t){e=e.style,t=t.style;var n=t==null?null:t.hasOwnProperty(`viewTransitionName`)?t.viewTransitionName:t.hasOwnProperty(`view-transition-name`)?t[`view-transition-name`]:null;e.viewTransitionName=n==null||typeof n==`boolean`?``:(``+n).trim(),n=t==null?null:t.hasOwnProperty(`viewTransitionClass`)?t.viewTransitionClass:t.hasOwnProperty(`view-transition-class`)?t[`view-transition-class`]:null,e.viewTransitionClass=n==null||typeof n==`boolean`?``:(``+n).trim(),e.display===`inline-block`&&(t==null?e.display=e.margin=``:(n=t.display,e.display=n==null||typeof n==`boolean`?``:n,n=t.margin,n==null?(n=t.hasOwnProperty(`marginTop`)?t.marginTop:t[`margin-top`],e.marginTop=n==null||typeof n==`boolean`?``:n,t=t.hasOwnProperty(`marginBottom`)?t.marginBottom:t[`margin-bottom`],e.marginBottom=t==null||typeof t==`boolean`?``:t):e.margin=n))}function Op(e,t,n){return n=n.ownerDocument.defaultView,{rect:e,abs:t.position===`absolute`||t.position===`fixed`,clip:t.clipPath!==`none`||t.overflow!==`visible`||t.filter!==`none`||t.mask!==`none`||t.mask!==`none`||t.borderRadius!==`0px`,view:0<=e.bottom&&0<=e.right&&e.top<=n.innerHeight&&e.left<=n.innerWidth}}function kp(e){return Op(e.getBoundingClientRect(),getComputedStyle(e),e)}function Ap(e){var t=e.getBoundingClientRect();t=new DOMRect(t.x+2e4,t.y+2e4,t.width,t.height);var n=getComputedStyle(e);return Op(t,n,e)}function jp(e){return e.documentElement.clientHeight}function Mp(e){this.addEventListener(`load`,e),this.addEventListener(`error`,e)}function Np(e,t,n,r,i,a,o,s,c){var l=t.nodeType===9?t:t.ownerDocument;try{var u=l.startViewTransition({update:function(){var t=l.defaultView,n=t.navigation&&t.navigation.transition,o=l.fonts.status;r();var s=[];if(o===`loaded`&&(jp(l),l.fonts.status===`loading`&&s.push(l.fonts.ready)),o=s.length,e!==null)for(var c=e.suspenseyImages,u=0,d=0;d<c.length;d++){var f=c[d];if(!f.complete){var p=f.getBoundingClientRect();if(0<p.bottom&&0<p.right&&p.top<t.innerHeight&&p.left<t.innerWidth){if(u+=Zm(f),u>eh){s.length=o;break}f=new Promise(Mp.bind(f)),s.push(f)}}}if(0<s.length)return t=Promise.race([Promise.all(s),new Promise(function(e){return setTimeout(e,500)})]).then(i,i),(n?Promise.allSettled([n.finished,t]):t).then(a,a);if(i(),n)return n.finished.then(a,a);a()},types:n});l.__reactViewTransition=u;var d=[];return u.ready.then(function(){for(var e=l.documentElement.getAnimations({subtree:!0}),t=0;t<e.length;t++){var n=e[t],r=n.effect,i=r.pseudoElement;if(i!=null&&i.startsWith(`::view-transition`)){d.push(n),n=r.getKeyframes();for(var a=i=void 0,s=!0,c=0;c<n.length;c++){var u=n[c],f=u.width;if(i===void 0)i=f;else if(i!==f){s=!1;break}if(f=u.height,a===void 0)a=f;else if(a!==f){s=!1;break}delete u.width,delete u.height,u.transform===`none`&&delete u.transform}s&&i!==void 0&&a!==void 0&&(r.setKeyframes(n),s=getComputedStyle(r.target,r.pseudoElement),s.width!==i||s.height!==a)&&(s=n[0],s.width=i,s.height=a,s=n[n.length-1],s.width=i,s.height=a,r.setKeyframes(n))}}o()},function(e){l.__reactViewTransition===u&&(l.__reactViewTransition=null);try{if(typeof e==`object`&&e)switch(e.name){case`InvalidStateError`:(e.message===`View transition was skipped because document visibility state is hidden.`||e.message===`Skipping view transition because document visibility state has become hidden.`||e.message===`Skipping view transition because viewport size changed.`||e.message===`Transition was aborted because of invalid state`)&&(e=null)}e!==null&&c(e)}finally{r(),i(),o()}}),u.finished.finally(function(){for(var e=0;e<d.length;e++)d[e].cancel();l.__reactViewTransition===u&&(l.__reactViewTransition=null),s()}),u}catch{return r(),i(),o(),null}}function Pp(e,t){this._scope=document.documentElement,this._selector=`::view-transition-`+e+`(`+t+`)`}Pp.prototype.animate=function(e,t){return t=typeof t==`number`?{duration:t}:w({},t),t.pseudoElement=this._selector,this._scope.animate(e,t)},Pp.prototype.getAnimations=function(){for(var e=this._scope,t=this._selector,n=e.getAnimations({subtree:!0}),r=[],i=0;i<n.length;i++){var a=n[i].effect;a!==null&&a.target===e&&a.pseudoElement===t&&r.push(n[i])}return r},Pp.prototype.getComputedStyle=function(){return getComputedStyle(this._scope,this._selector)};function Fp(e){return{name:e,group:new Pp(`group`,e),imagePair:new Pp(`image-pair`,e),old:new Pp(`old`,e),new:new Pp(`new`,e)}}function Ip(e){this._fragmentFiber=e,this._observers=this._eventListeners=null}Ip.prototype.addEventListener=function(e,t,n){var r=null,i=null;if(!(n!=null&&typeof n!=`boolean`&&(r=n.signal||null,r!==null&&r.aborted))){this._eventListeners===null&&(this._eventListeners=[]);var a=this._eventListeners;if(Vp(a,e,t,n)===-1){var o=this,s=t;n!=null&&typeof n!=`boolean`&&!0===n.once&&(s=function(r){o.removeEventListener(e,t,n),typeof t==`function`?t.call(this,r):t.handleEvent(r)}),r!==null&&(i=o.removeEventListener.bind(o,e,t,n),r.addEventListener(`abort`,i,{once:!0}),i=r.removeEventListener.bind(r,`abort`,i)),r=zp(n),a.push({type:e,listener:t,optionsOrUseCapture:n,attachedListener:s,cleanup:i}),f(this._fragmentFiber.child,!1,Lp,e,s,r)}this._eventListeners=a}};function Lp(e,t,n,r){return _(e).addEventListener(t,n,r),!1}Ip.prototype.removeEventListener=function(e,t,n){var r=this._eventListeners;if(r!==null&&(t=Vp(r,e,t,n),t!==-1)){var i=r[t];n=i.attachedListener;var a=i.cleanup;i=zp(i.optionsOrUseCapture),f(this._fragmentFiber.child,!1,Rp,e,n,i),r.splice(t,1),a!==null&&a()}};function Rp(e,t,n,r){return _(e).removeEventListener(t,n,r),!1}function zp(e){return e!=null&&typeof e!=`boolean`&&(!0===e.once||e.signal instanceof AbortSignal)?{capture:e.capture,passive:e.passive}:e}function Bp(e){return e==null?`c=0`:typeof e==`boolean`?`c=`+(e?`1`:`0`):`c=`+(e.capture?`1`:`0`)}function Vp(e,t,n,r){if(e.length===0)return-1;r=Bp(r);for(var i=0;i<e.length;i++){var a=e[i];if(a.type===t&&a.listener===n&&Bp(a.optionsOrUseCapture)===r)return i}return-1}Ip.prototype.dispatchEvent=function(e){var t=p(this._fragmentFiber);if(t===null)return!0;t=_(t);var n=this._eventListeners;if(n!==null&&0<n.length||!e.bubbles){var r=t.nodeType===9?t.createComment(``):document.createTextNode(``);if(n)for(var i=0;i<n.length;i++){var a=n[i];r.addEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture))}if(t.appendChild(r),e=r.dispatchEvent(e),n)for(i=0;i<n.length;i++)a=n[i],r.removeEventListener(a.type,a.attachedListener,zp(a.optionsOrUseCapture));return t.removeChild(r),e}return t.dispatchEvent(e)},Ip.prototype.focus=function(e){f(this._fragmentFiber.child,!0,Hp,e,void 0,void 0)};function Hp(e,t){return e.tag!==6&&(e=_(e),mm(e,t))}Ip.prototype.focusLast=function(e){var t=[];f(this._fragmentFiber.child,!0,Up,t,void 0,void 0);for(var n=t.length-1;0<=n&&!Hp(t[n],e);n--);};function Up(e,t){return t.push(e),!1}Ip.prototype.blur=function(){var e=p(this._fragmentFiber);e!==null&&(e=_(e),e=up(e).activeElement,e!==null&&f(this._fragmentFiber.child,!1,Wp,e,void 0,void 0))};function Wp(e,t){return e.tag!==6&&(e=_(e),e===t||e.contains(t)?(t.blur(),!0):!1)}Ip.prototype.observeUsing=function(e){this._observers===null&&(this._observers=new Set),this._observers.add(e),f(this._fragmentFiber.child,!1,Gp,e,void 0,void 0)};function Gp(e,t){return e.tag===6||(e=_(e),t.observe(e)),!1}Ip.prototype.unobserveUsing=function(e){var t=this._observers;if(t!==null&&t.has(e)){t.delete(e),f(this._fragmentFiber.child,!1,Kp,e,void 0,void 0);for(var n=t=0;n<qp.length;n++){var r=qp[n];r.fragmentInstance===this&&r.observer===e?e.unobserve(r.instance):qp[t++]=r}qp.length=t}};function Kp(e,t){return e.tag===6||(e=_(e),t.unobserve(e)),!1}var qp=[],Jp=!1;function Yp(e,t,n){qp.push({fragmentInstance:e,observer:t,instance:n}),Jp||(Jp=!0,hm(function(){Jp=!1;var e=qp;qp=[];for(var t=0;t<e.length;t++){var n=e[t];n.observer.unobserve(n.instance)}}))}Ip.prototype.getClientRects=function(){var e=[];return f(this._fragmentFiber.child,!1,Xp,e,void 0,void 0),e};function Xp(e,t){if(e.tag===6){e=e.stateNode;var n=e.ownerDocument.createRange();n.selectNodeContents(e),t.push.apply(t,n.getClientRects())}else e=_(e),t.push.apply(t,e.getClientRects());return!1}Ip.prototype.getRootNode=function(e){var t=p(this._fragmentFiber);return t===null?this:_(t).getRootNode(e)},Ip.prototype.compareDocumentPosition=function(e){var t=p(this._fragmentFiber);if(t===null)return Node.DOCUMENT_POSITION_DISCONNECTED;var n=[];f(this._fragmentFiber.child,!1,Up,n,void 0,void 0);var r=_(t);if(n.length===0){if(n=r,m(this._fragmentFiber)){a:{for(t=this._fragmentFiber.return;t!==null;){if(t.tag===4){t=t.stateNode.containerInfo;break a}if(t.tag===3||t.tag===5||t.tag===27)break;t=t.return}t=null}t!=null&&(n=t)}t=this._fragmentFiber;var i=r=n.compareDocumentPosition(e);return n===e?i=Node.DOCUMENT_POSITION_CONTAINS:r&Node.DOCUMENT_POSITION_CONTAINED_BY&&(n=h(t)[1],n===null?i=Node.DOCUMENT_POSITION_PRECEDING:(e=_(n).compareDocumentPosition(e),i=e===0||e&Node.DOCUMENT_POSITION_FOLLOWING?Node.DOCUMENT_POSITION_FOLLOWING:Node.DOCUMENT_POSITION_PRECEDING)),i|=Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC}t=_(n[0]),i=_(n[n.length-1]);var a=m(this._fragmentFiber)?t.parentElement:r;if(a==null)return Node.DOCUMENT_POSITION_DISCONNECTED;r=a.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY,a=a.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_CONTAINED_BY;var o=t.compareDocumentPosition(e),s=i.compareDocumentPosition(e),c=o&Node.DOCUMENT_POSITION_CONTAINED_BY||s&Node.DOCUMENT_POSITION_CONTAINED_BY;return s=r&&a&&o&Node.DOCUMENT_POSITION_FOLLOWING&&s&Node.DOCUMENT_POSITION_PRECEDING,t=r&&t===e||a&&i===e||c||s?Node.DOCUMENT_POSITION_CONTAINED_BY:!r&&t===e||!a&&i===e?Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC:o,t&Node.DOCUMENT_POSITION_DISCONNECTED||t&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC||Zp(t,this._fragmentFiber,n[0],n[n.length-1],e)?t:Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC};function Zp(e,t,n,r,i){var a=Dt(i);if(e&Node.DOCUMENT_POSITION_CONTAINED_BY){if(n=!!a)a:{for(;a!==null;){if(a.tag===7&&(a===t||a.alternate===t)){n=!0;break a}a=a.return}n=!1}return n}if(e&Node.DOCUMENT_POSITION_CONTAINS){if(a===null)return a=i.ownerDocument,i===a||i===a.documentElement||i===a.body;a:{for(a=t,t=p(t);a!==null;){if(!(a.tag!==5&&a.tag!==3&&a.tag!==27||a!==t&&a.alternate!==t)){a=!0;break a}a=a.return}a=!1}return a}return e&Node.DOCUMENT_POSITION_PRECEDING?((t=!!a)&&!(t=a===n)&&(t=C(n,a,S),t===null?t=!1:(f(t,!0,b,a,n),a=v,v=null,t=a!==null)),t):e&Node.DOCUMENT_POSITION_FOLLOWING?((t=!!a)&&!(t=a===r)&&(t=C(r,a,S),t===null?t=!1:(f(t,!0,x,a,r),a=v,y=v=null,t=a!==null)),t):!1}function Qp(e,t){var n=e.ownerDocument.createRange();n.selectNodeContents(e),e=n.getBoundingClientRect(),window.scrollTo(window.scrollX+e.left,t?window.scrollY+e.top:window.scrollY+e.bottom-window.innerHeight)}Ip.prototype.scrollIntoView=function(e){if(typeof e==`object`)throw Error(i(566));var t=[];f(this._fragmentFiber.child,!1,Up,t,void 0,void 0);var n=!1!==e;if(t.length===0){var r=h(this._fragmentFiber);if(r=n?r[1]||r[0]||p(this._fragmentFiber):r[0]||r[1],r===null)return;if(r.tag===6){e=_(r),Qp(e,n);return}if(r=_(r),r.nodeType!==9){if(r.nodeType===11){n=`host`in r?r.host:null,n!==null&&n.scrollIntoView(e);return}r.scrollIntoView(e)}}for(r=n?t.length-1:0;r!==(n?-1:t.length);){var a=t[r];a.tag===6?(a=_(a),Qp(a,n)):_(a).scrollIntoView(e),r+=n?-1:1}};function $p(e,t){return e=_(e),em(e,t),!1}function em(e,t){e.reactFragments??=new Set,e.reactFragments.add(t)}function tm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.addEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){for(var r=0,i=0;i<qp.length;i++){var a=qp[i];(a.fragmentInstance!==t||a.observer!==n||a.instance!==e)&&(qp[r++]=a)}qp.length=r,n.observe(e)}),em(e,t))}function nm(e,t){var n=t._eventListeners;if(n!==null)for(var r=0;r<n.length;r++){var i=n[r];e.removeEventListener(i.type,i.attachedListener,zp(i.optionsOrUseCapture))}e.nodeType!==3&&(n=t._observers,n!==null&&n.forEach(function(n){typeof n.rootMargin==`string`?Yp(t,n,e):n.unobserve(e)}),e.reactFragments!=null&&e.reactFragments.delete(t))}function rm(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`:rm(n),Et(n);continue;case`SCRIPT`:case`STYLE`:continue;case`LINK`:if(n.rel.toLowerCase()===`stylesheet`)continue}e.removeChild(n)}}function im(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[wt])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=um(e.nextSibling),e===null)break}return null}function am(e,t,n){if(t===``)return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!n||(e=um(e.nextSibling),e===null))return null;return e}function om(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!==`INPUT`||e.type!==`hidden`)&&!t||(e=um(e.nextSibling),e===null))return null;return e}function sm(e){return e.data===`$?`||e.data===`$~`}function cm(e){return e.data===`$!`||e.data===`$?`&&e.ownerDocument.readyState!==`loading`}function lm(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 um(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 dm=null;function fm(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`||n===`/&`){if(t===0)return um(e.nextSibling);t--}else n!==`$`&&n!==`$!`&&n!==`$?`&&n!==`$~`&&n!==`&`||t++}e=e.nextSibling}return null}function pm(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 mm(e,t){function n(){r=!0}if(e.ownerDocument.activeElement===e)return!0;var r=!1;try{e.ownerDocument.addEventListener(`focus`,n,!0),(e.focus||HTMLElement.prototype.focus).call(e,t)}finally{e.ownerDocument.removeEventListener(`focus`,n,!0)}return r}function hm(e){bp(function(){bp(function(t){return e(t)})})}function gm(e,t,n){switch(t=up(n),e){case`html`:if(e=t.documentElement,!e)throw Error(i(452));return e;case`head`:if(e=t.head,!e)throw Error(i(453));return e;case`body`:if(e=t.body,!e)throw Error(i(454));return e;default:throw Error(i(451))}}function _m(e,t,n){for(var r in n){var i=n[r];n.hasOwnProperty(r)&&i!=null&&tp(e,t,r,null,ip,i)}n.dangerouslySetInnerHTML!=null&&(e.textContent=``),e.onclick===gn&&(e.onclick=null),Et(e)}function vm(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Et(e)}var ym=new Map,bm=new Set;function xm(e){if(typeof e.getRootNode==`function`){var t=e.getRootNode();if(t.nodeType===9||t.nodeType===11)return t}return e.nodeType===9?e:e.ownerDocument}var Sm=le.d;le.d={f:Cm,r:wm,D:Dm,C:Om,L:km,m:Am,X:Mm,S:jm,M:Nm};function Cm(){var e=Sm.f(),t=Rd();return e||t}function wm(e){var t=Ot(e);t!==null&&t.tag===5&&t.type===`form`?ec(t):Sm.r(e)}var Tm=typeof document>`u`?null:document;function Em(e,t,n){var r=Tm;if(r&&typeof t==`string`&&t){var i=en(t);i=`link[rel="`+e+`"][href="`+i+`"]`,typeof n==`string`&&(i+=`[crossorigin="`+n+`"]`),bm.has(i)||(bm.add(i),e={rel:e,crossOrigin:n,href:t},r.querySelector(i)===null&&(t=r.createElement(`link`),rp(t,`link`,e),jt(t),r.head.appendChild(t)))}}function Dm(e){Sm.D(e),Em(`dns-prefetch`,e,null)}function Om(e,t){Sm.C(e,t),Em(`preconnect`,e,t)}function km(e,t,n){Sm.L(e,t,n);var r=Tm;if(r&&e&&t){var i=`link[rel="preload"][as="`+en(t)+`"]`;t===`image`&&n&&n.imageSrcSet?(i+=`[imagesrcset="`+en(n.imageSrcSet)+`"]`,typeof n.imageSizes==`string`&&(i+=`[imagesizes="`+en(n.imageSizes)+`"]`)):i+=`[href="`+en(e)+`"]`;var a=i;switch(t){case`style`:a=Fm(e);break;case`script`:a=zm(e)}if(!(ym.has(a)||(e=w({rel:`preload`,href:t===`image`&&n&&n.imageSrcSet?void 0:e,as:t},n),ym.set(a,e),r.querySelector(i)!==null||t===`style`&&r.querySelector(Im(a))||t===`script`&&r.querySelector(Bm(a))))){var o=r.createElement(`link`);rp(o,`link`,e),t===`style`&&(o[Tt]=!0,o.onload=o.onerror=function(){Mt(o)}),jt(o),r.head.appendChild(o)}}}function Am(e,t){Sm.m(e,t);var n=Tm;if(n&&e){var r=t&&typeof t.as==`string`?t.as:`script`,i=`link[rel="modulepreload"][as="`+en(r)+`"][href="`+en(e)+`"]`,a=i;switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:a=zm(e)}if(!ym.has(a)&&(e=w({rel:`modulepreload`,href:e},t),ym.set(a,e),n.querySelector(i)===null)){switch(r){case`audioworklet`:case`paintworklet`:case`serviceworker`:case`sharedworker`:case`worker`:case`script`:if(n.querySelector(Bm(a)))return}r=n.createElement(`link`),rp(r,`link`,e),jt(r),n.head.appendChild(r)}}}function jm(e,t,n){Sm.S(e,t,n);var r=Tm;if(r&&e){var i=At(r).hoistableStyles,a=Fm(e);t||=`default`;var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector(Im(a)))s.loading=5;else{e=w({rel:`stylesheet`,href:e,"data-precedence":t},n),(n=ym.get(a))&&Um(e,n);var c=o=r.createElement(`link`);jt(c),rp(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,Hm(o,t,r)}o={type:`stylesheet`,instance:o,count:1,state:s},i.set(a,o)}}}function Mm(e,t){Sm.X(e,t);var n=Tm;if(n&&e){var r=At(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=w({src:e,async:!0},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),jt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Nm(e,t){Sm.M(e,t);var n=Tm;if(n&&e){var r=At(n).hoistableScripts,i=zm(e),a=r.get(i);a||(a=n.querySelector(Bm(i)),a||(e=w({src:e,async:!0,type:`module`},t),(t=ym.get(i))&&Wm(e,t),a=n.createElement(`script`),jt(a),rp(a,`link`,e),n.head.appendChild(a)),a={type:`script`,instance:a,count:1,state:null},r.set(i,a))}}function Pm(e,t,n,r){var a=(a=_e.current)?xm(a):null;if(!a)throw Error(i(446));switch(e){case`meta`:case`title`:return null;case`style`:return typeof n.precedence==`string`&&typeof n.href==`string`?(n=Fm(n.href),t=At(a).hoistableStyles,r=t.get(n),r||(r={type:`style`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};case`link`:if(n.rel===`stylesheet`&&typeof n.href==`string`&&typeof n.precedence==`string`){e=Fm(n.href);var o=At(a).hoistableStyles,s=o.get(e);if(s||(a=a.ownerDocument||a,s={type:`stylesheet`,instance:null,count:0,state:{loading:0,preload:null}},o.set(e,s),(o=a.querySelector(Im(e)))?o._p||(s.instance=o,s.state.loading=5):(o=ym.get(e),o||(o={rel:`preload`,as:`style`,href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},ym.set(e,o)),Rm(a,e,o,s.state))),t&&r===null)throw Error(i(528,``));return s}if(t&&r!==null)throw Error(i(529,``));return null;case`script`:return t=n.async,n=n.src,typeof n==`string`&&t&&typeof t!=`function`&&typeof t!=`symbol`?(n=zm(n),t=At(a).hoistableScripts,r=t.get(n),r||(r={type:`script`,instance:null,count:0,state:null},t.set(n,r)),r):{type:`void`,instance:null,count:0,state:null};default:throw Error(i(444,e))}}function Fm(e){return`href="`+en(e)+`"`}function Im(e){return`link[rel="stylesheet"][`+e+`]`}function Lm(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function Rm(e,t,n,r){if(t=e.querySelector(`link[rel="preload"][as="style"][`+t+`]`)){if(!0!==t[Tt]){r.loading=1;return}}else t=e.createElement(`link`),t[Tt]=!0,t.onload=t.onerror=Mt.bind(null,t),rp(t,`link`,n),jt(t),e.head.appendChild(t);r.preload=t,t.addEventListener(`load`,function(){return r.loading|=1}),t.addEventListener(`error`,function(){return r.loading|=2})}function zm(e){return`[src="`+en(e)+`"]`}function Bm(e){return`script[async]`+e}function Vm(e,t,n){if(t.count++,t.instance===null)switch(t.type){case`style`:var r=e.querySelector(`style[data-href~="`+en(n.href)+`"]`);if(r)return t.instance=r,jt(r),r;var a=w({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement(`style`),jt(r),rp(r,`style`,a),Hm(r,n.precedence,e),t.instance=r;case`stylesheet`:a=Fm(n.href);var o=e.querySelector(Im(a));if(o)return t.state.loading|=4,t.instance=o,jt(o),o;r=Lm(n),(a=ym.get(a))&&Um(r,a),o=(e.ownerDocument||e).createElement(`link`),jt(o);var s=o;return s._p=new Promise(function(e,t){s.onload=e,s.onerror=t}),rp(o,`link`,r),t.state.loading|=4,Hm(o,n.precedence,e),t.instance=o;case`script`:return o=zm(n.src),(a=e.querySelector(Bm(o)))?(t.instance=a,jt(a),a):(r=n,(a=ym.get(o))&&(r=w({},n),Wm(r,a)),e=e.ownerDocument||e,a=e.createElement(`script`),jt(a),rp(a,`link`,r),e.head.appendChild(a),t.instance=a);case`void`:return null;default:throw Error(i(443,t.type))}else t.type===`stylesheet`&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Hm(r,n.precedence,e));return t.instance}function Hm(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 Um(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.title??=t.title}function Wm(e,t){e.crossOrigin??=t.crossOrigin,e.referrerPolicy??=t.referrerPolicy,e.integrity??=t.integrity}var Gm=null;function Km(e,t,n){if(Gm===null){var r=new Map,i=Gm=new Map;i.set(n,r)}else i=Gm,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[wt]||a[_t]||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 qm(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t===`title`?e.querySelector(`head > title`):null)}function Jm(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 Ym(e,t){return e===`img`&&t.src!=null&&t.src!==``&&t.onLoad==null&&t.loading!==`lazy`}function Xm(e){return!(e.type===`stylesheet`&&!(e.state.loading&3))}function Zm(e){return(e.width||100)*(e.height||100)*(typeof devicePixelRatio==`number`?devicePixelRatio:1)*.25}function Qm(e,t){typeof t.decode==`function`&&(e.imgCount++,t.complete||(e.imgBytes+=Zm(t),e.suspenseyImages.push(t)),e=ih.bind(e),t.decode().then(e,e))}function $m(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=Fm(r.href),a=t.querySelector(Im(i));if(a){t=a._p,typeof t==`object`&&t&&typeof t.then==`function`&&(e.count++,e=rh.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,jt(a);return}a=t.ownerDocument||t,r=Lm(r),(i=ym.get(i))&&Um(r,i),a=a.createElement(`link`),jt(a);var o=a;o._p=new Promise(function(e,t){o.onload=e,o.onerror=t}),rp(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=rh.bind(e),t.addEventListener(`load`,n),t.addEventListener(`error`,n))}}var eh=0;function th(e,t){return e.stylesheets&&e.count===0&&oh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}},6e4+t);0<e.imgBytes&&eh===0&&(eh=62500*sp());var i=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&oh(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}},(e.imgBytes>eh?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}function nh(e){if(e.count===0&&(e.imgCount===0||!e.waitingForImages)){if(e.stylesheets)oh(e,e.stylesheets);else if(e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}}function rh(){this.count--,nh(this)}function ih(){this.imgCount--,nh(this)}var ah=null;function oh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,ah=new Map,t.forEach(sh,e),ah=null,rh.call(e))}function sh(e,t){if(!(t.state.loading&4)){var n=ah.get(e);if(n)var r=n.get(null);else{n=new Map,ah.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=rh.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 ch={$$typeof:j,Provider:null,Consumer:null,_currentValue:V,_currentValue2:V,_threadCount:0};function lh(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=ot(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ot(0),this.hiddenUpdates=ot(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=c,this.transitionTypes=null,this.incompleteTransitions=new Map}function uh(e,t,n,r,i,a,o,s,c,l,u,d){return e=new lh(e,t,n,o,c,l,u,d,s),t=1,!0===a&&(t|=24),a=ki(3,null,null,t),e.current=a,a.stateNode=e,t=Aa(),t.refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},uo(a),e}function dh(e){return e?(e=Di,e):Di}function fh(e,t,n,r,i,a){i=dh(i),r.context===null?r.context=i:r.pendingContext=i,r=po(t),r.payload={element:n},a=a===void 0?null:a,a!==null&&(r.callback=a),n=mo(e,r,t),n!==null&&(Nd(n,e,t),ho(n,e,t))}function ph(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function mh(e,t){ph(e,t),(e=e.alternate)&&ph(e,t)}function hh(e){if(e.tag===13||e.tag===31){var t=wi(e,67108864);t!==null&&Nd(t,e,67108864),mh(e,67108864)}}function gh(e){if(e.tag===13||e.tag===31){var t=Ad();t=ft(t);var n=wi(e,t);n!==null&&Nd(n,e,t),mh(e,t)}}var _h=!0;function vh(e,t,n,r){var i=B.T;B.T=null;var a=le.p;try{le.p=2,bh(e,t,n,r)}finally{le.p=a,B.T=i}}function yh(e,t,n,r){var i=B.T;B.T=null;var a=le.p;try{le.p=8,bh(e,t,n,r)}finally{le.p=a,B.T=i}}function bh(e,t,n,r){if(_h){var i=xh(r);if(i===null)Kf(e,t,r,Sh,n),Nh(e,r);else if(Fh(i,e,t,n,r))r.stopPropagation();else if(Nh(e,r),t&4&&-1<Mh.indexOf(e)){for(;i!==null;){var a=Ot(i);if(a!==null)switch(a.tag){case 3:if(a=a.stateNode,a.current.memoizedState.isDehydrated){var o=et(a.pendingLanes);if(o!==0){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var c=1<<31-qe(o);s.entanglements[1]|=c,o&=~c}Tf(a),!(Yu&6)&&(gd=Fe()+500,Ef(0,!1))}}break;case 31:case 13:s=wi(a,2),s!==null&&Nd(s,a,2),Rd(),mh(a,2)}if(a=xh(r),a===null&&Kf(e,t,r,Sh,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else Kf(e,t,r,null,n)}}function xh(e){return e=vn(e),Ch(e)}var Sh=null;function Ch(e){if(Sh=null,e=Dt(e),e!==null){var t=o(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=s(t),e!==null)return e;e=null}else if(n===31){if(e=c(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Sh=e,null}function wh(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`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`fullscreenerror`: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`resize`:case`scroll`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 8;case`message`:switch(Ie()){case Le:return 2;case Re:return 8;case ze:case Be:return 32;case Ve:return 268435456;default:return 32}default:return 32}}var Th=!1,Eh=null,Dh=null,Oh=null,kh=new Map,Ah=new Map,jh=[],Mh=`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 Nh(e,t){switch(e){case`focusin`:case`focusout`:Eh=null;break;case`dragenter`:case`dragleave`:Dh=null;break;case`mouseover`:case`mouseout`:Oh=null;break;case`pointerover`:case`pointerout`:kh.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:Ah.delete(t.pointerId)}}function Ph(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=Ot(t),t!==null&&hh(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function Fh(e,t,n,r,i){switch(t){case`focusin`:return Eh=Ph(Eh,e,t,n,r,i),!0;case`dragenter`:return Dh=Ph(Dh,e,t,n,r,i),!0;case`mouseover`:return Oh=Ph(Oh,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return kh.set(a,Ph(kh.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,Ah.set(a,Ph(Ah.get(a)||null,e,t,n,r,i)),!0}return!1}function Ih(e){var t=Dt(e.target);if(t!==null){var n=o(t);if(n!==null){if(t=n.tag,t===13){if(t=s(n),t!==null){e.blockedOn=t,ht(e.priority,function(){gh(n)});return}}else if(t===31){if(t=c(n),t!==null){e.blockedOn=t,ht(e.priority,function(){gh(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 Lh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=xh(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);_n=r,n.target.dispatchEvent(r),_n=null}else return t=Ot(n),t!==null&&hh(t),e.blockedOn=n,!1;t.shift()}return!0}function Rh(e,t,n){Lh(e)&&n.delete(t)}function zh(){Th=!1,Eh!==null&&Lh(Eh)&&(Eh=null),Dh!==null&&Lh(Dh)&&(Dh=null),Oh!==null&&Lh(Oh)&&(Oh=null),kh.forEach(Rh),Ah.forEach(Rh)}function Bh(e,n){e.blockedOn===n&&(e.blockedOn=null,Th||(Th=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,zh)))}var Vh=null;function Hh(e){Vh!==e&&(Vh=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){Vh===e&&(Vh=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(Ch(r||n)===null)continue;break}var a=Ot(n);a!==null&&(e.splice(t,3),t-=3,Qs(a,{pending:!0,data:i,method:n.method,action:r},r,i))}}))}function Uh(e){function t(t){return Bh(t,e)}Eh!==null&&Bh(Eh,e),Dh!==null&&Bh(Dh,e),Oh!==null&&Bh(Oh,e),kh.forEach(t),Ah.forEach(t);for(var n=0;n<jh.length;n++){var r=jh[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<jh.length&&(n=jh[0],n.blockedOn===null);)Ih(n),n.blockedOn===null&&jh.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[vt]||null;if(typeof a==`function`)o||Hh(n);else if(o){var s=null;if(a&&a.hasAttribute(`formAction`)){if(i=a,o=a[vt]||null)s=o.formAction;else if(Ch(i)!==null)continue}else s=o.action;typeof s==`function`?n[r+1]=s:(n.splice(r,3),r-=3),Hh(n)}}}function Wh(){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 Gh(e){this._internalRoot=e}Kh.prototype.render=Gh.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(i(409));var n=t.current;fh(n,Ad(),e,t,null,null)},Kh.prototype.unmount=Gh.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;fh(e.current,2,null,e,null,null),Rd(),t[yt]=null}};function Kh(e){this._internalRoot=e}Kh.prototype.unstable_scheduleHydration=function(e){if(e){var t=mt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<jh.length&&t!==0&&t<jh[n].priority;n++);jh.splice(n,0,e),n===0&&Ih(e)}};var qh=n.version;if(qh!==`19.3.1`)throw Error(i(527,qh,`19.3.1`));le.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(i(188)):(e=Object.keys(e).join(`,`),Error(i(268,e)));return e=u(t),e=e===null?null:d(e),e=e===null?null:e.stateNode,e};var Jh={bundleType:0,version:`19.3.1`,rendererPackageName:`react-dom`,currentDispatcherRef:B,reconcilerVersion:`19.3.1`};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Yh=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yh.isDisabled&&Yh.supportsFiber)try{We=Yh.inject(Jh),Ge=Yh}catch{}}e.createRoot=function(e,t){if(!a(e))throw Error(i(299));var n=!1,r=``,o=xc,s=Sc,c=Cc;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(o=t.onUncaughtError),t.onCaughtError!==void 0&&(s=t.onCaughtError),t.onRecoverableError!==void 0&&(c=t.onRecoverableError)),t=uh(e,1,!1,null,null,n,r,null,o,s,c,Wh),e[yt]=t.current,Wf(e),new Gh(t)}})),Rt=n(((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=Lt()})),zt={black:`#000`,white:`#fff`},Bt={50:`#ffebee`,100:`#ffcdd2`,200:`#ef9a9a`,300:`#e57373`,400:`#ef5350`,500:`#f44336`,600:`#e53935`,700:`#d32f2f`,800:`#c62828`,900:`#b71c1c`,A100:`#ff8a80`,A200:`#ff5252`,A400:`#ff1744`,A700:`#d50000`},Vt={50:`#f3e5f5`,100:`#e1bee7`,200:`#ce93d8`,300:`#ba68c8`,400:`#ab47bc`,500:`#9c27b0`,600:`#8e24aa`,700:`#7b1fa2`,800:`#6a1b9a`,900:`#4a148c`,A100:`#ea80fc`,A200:`#e040fb`,A400:`#d500f9`,A700:`#aa00ff`},Ht={50:`#e3f2fd`,100:`#bbdefb`,200:`#90caf9`,300:`#64b5f6`,400:`#42a5f5`,500:`#2196f3`,600:`#1e88e5`,700:`#1976d2`,800:`#1565c0`,900:`#0d47a1`,A100:`#82b1ff`,A200:`#448aff`,A400:`#2979ff`,A700:`#2962ff`},Ut={50:`#e1f5fe`,100:`#b3e5fc`,200:`#81d4fa`,300:`#4fc3f7`,400:`#29b6f6`,500:`#03a9f4`,600:`#039be5`,700:`#0288d1`,800:`#0277bd`,900:`#01579b`,A100:`#80d8ff`,A200:`#40c4ff`,A400:`#00b0ff`,A700:`#0091ea`},Wt={50:`#e8f5e9`,100:`#c8e6c9`,200:`#a5d6a7`,300:`#81c784`,400:`#66bb6a`,500:`#4caf50`,600:`#43a047`,700:`#388e3c`,800:`#2e7d32`,900:`#1b5e20`,A100:`#b9f6ca`,A200:`#69f0ae`,A400:`#00e676`,A700:`#00c853`},Gt={50:`#fff3e0`,100:`#ffe0b2`,200:`#ffcc80`,300:`#ffb74d`,400:`#ffa726`,500:`#ff9800`,600:`#fb8c00`,700:`#f57c00`,800:`#ef6c00`,900:`#e65100`,A100:`#ffd180`,A200:`#ffab40`,A400:`#ff9100`,A700:`#ff6d00`},Kt={50:`#efebe9`,100:`#d7ccc8`,200:`#bcaaa4`,300:`#a1887f`,400:`#8d6e63`,500:`#795548`,600:`#6d4c41`,700:`#5d4037`,800:`#4e342e`,900:`#3e2723`,A100:`#d7ccc8`,A200:`#bcaaa4`,A400:`#8d6e63`,A700:`#5d4037`},qt={50:`#fafafa`,100:`#f5f5f5`,200:`#eeeeee`,300:`#e0e0e0`,400:`#bdbdbd`,500:`#9e9e9e`,600:`#757575`,700:`#616161`,800:`#424242`,900:`#212121`,A100:`#f5f5f5`,A200:`#eeeeee`,A400:`#bdbdbd`,A700:`#616161`};function Jt(e,...t){let n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(e=>n.searchParams.append(`args[]`,e)),`Minified MUI error #${e}; visit ${n} for the full message.`}var Yt=`$$material`;function Xt(){return Xt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Xt.apply(null,arguments)}function Zt(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Qt(e){var t=document.createElement(`style`);return t.setAttribute(`data-emotion`,e.key),e.nonce!==void 0&&t.setAttribute(`nonce`,e.nonce),t.appendChild(document.createTextNode(``)),t.setAttribute(`data-s`,``),t}var $t=function(){function e(e){var t=this;this._insertTag=function(e){var n=t.tags.length===0?t.insertionPoint?t.insertionPoint.nextSibling:t.prepend?t.container.firstChild:t.before:t.tags[t.tags.length-1].nextSibling;t.container.insertBefore(e,n),t.tags.push(e)},this.isSpeedy=e.speedy===void 0||e.speedy,this.tags=[],this.ctr=0,this.nonce=e.nonce,this.key=e.key,this.container=e.container,this.prepend=e.prepend,this.insertionPoint=e.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(e){e.forEach(this._insertTag)},t.insert=function(e){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(Qt(this));var t=this.tags[this.tags.length-1];if(this.isSpeedy){var n=Zt(t);try{n.insertRule(e,n.cssRules.length)}catch{}}else t.appendChild(document.createTextNode(e));this.ctr++},t.flush=function(){this.tags.forEach(function(e){return e.parentNode?.removeChild(e)}),this.tags=[],this.ctr=0},e}(),en=`-ms-`,tn=`-moz-`,nn=`-webkit-`,rn=`comm`,an=`rule`,on=`decl`,sn=`@import`,cn=`@keyframes`,ln=`@layer`,un=Math.abs,dn=String.fromCharCode,fn=Object.assign;function pn(e,t){return vn(e,0)^45?(((t<<2^vn(e,0))<<2^vn(e,1))<<2^vn(e,2))<<2^vn(e,3):0}function mn(e){return e.trim()}function hn(e,t){return(e=t.exec(e))?e[0]:e}function gn(e,t,n){return e.replace(t,n)}function _n(e,t){return e.indexOf(t)}function vn(e,t){return e.charCodeAt(t)|0}function yn(e,t,n){return e.slice(t,n)}function bn(e){return e.length}function xn(e){return e.length}function Sn(e,t){return t.push(e),e}function Cn(e,t){return e.map(t).join(``)}var wn=1,Tn=1,En=0,Dn=0,On=0,kn=``;function An(e,t,n,r,i,a,o){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:wn,column:Tn,length:o,return:``}}function jn(e,t){return fn(An(``,null,null,``,null,null,0),e,{length:-e.length},t)}function Mn(){return On}function Nn(){return On=Dn>0?vn(kn,--Dn):0,Tn--,On===10&&(Tn=1,wn--),On}function Pn(){return On=Dn<En?vn(kn,Dn++):0,Tn++,On===10&&(Tn=1,wn++),On}function Fn(){return vn(kn,Dn)}function In(){return Dn}function Ln(e,t){return yn(kn,e,t)}function Rn(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function zn(e){return wn=Tn=1,En=bn(kn=e),Dn=0,[]}function Bn(e){return kn=``,e}function Vn(e){return mn(Ln(Dn-1,Wn(e===91?e+2:e===40?e+1:e)))}function Hn(e){for(;(On=Fn())&&On<33;)Pn();return Rn(e)>2||Rn(On)>3?``:` `}function Un(e,t){for(;--t&&Pn()&&!(On<48||On>102||On>57&&On<65||On>70&&On<97););return Ln(e,In()+(t<6&&Fn()==32&&Pn()==32))}function Wn(e){for(;Pn();)switch(On){case e:return Dn;case 34:case 39:e!==34&&e!==39&&Wn(On);break;case 40:e===41&&Wn(e);break;case 92:Pn()}return Dn}function Gn(e,t){for(;Pn()&&e+On!==57&&(e+On!==84||Fn()!==47););return`/*`+Ln(t,Dn-1)+`*`+dn(e===47?e:Pn())}function Kn(e){for(;!Rn(Fn());)Pn();return Ln(e,Dn)}function qn(e){return Bn(Jn(``,null,null,null,[``],e=zn(e),0,[0],e))}function Jn(e,t,n,r,i,a,o,s,c){for(var l=0,u=0,d=o,f=0,p=0,m=0,h=1,g=1,_=1,v=0,y=``,b=i,x=a,S=r,C=y;g;)switch(m=v,v=Pn()){case 40:if(m!=108&&vn(C,d-1)==58){_n(C+=gn(Vn(v),`&`,`&\f`),`&\f`)!=-1&&(_=-1);break}case 34:case 39:case 91:C+=Vn(v);break;case 9:case 10:case 13:case 32:C+=Hn(m);break;case 92:C+=Un(In()-1,7);continue;case 47:switch(Fn()){case 42:case 47:Sn(Xn(Gn(Pn(),In()),t,n),c);break;default:C+=`/`}break;case 123*h:s[l++]=bn(C)*_;case 125*h:case 59:case 0:switch(v){case 0:case 125:g=0;case 59+u:_==-1&&(C=gn(C,/\f/g,``)),p>0&&bn(C)-d&&Sn(p>32?Zn(C+`;`,r,n,d-1):Zn(gn(C,` `,``)+`;`,r,n,d-2),c);break;case 59:C+=`;`;default:if(Sn(S=Yn(C,t,n,l,u,i,s,y,b=[],x=[],d),a),v===123){if(u===0)Jn(C,t,S,S,b,a,d,s,x);else switch(f===99&&vn(C,3)===110?100:f){case 100:case 108:case 109:case 115:Jn(e,S,S,r&&Sn(Yn(e,S,S,0,0,i,s,y,i,b=[],d),x),i,x,d,s,r?b:x);break;default:Jn(C,S,S,S,[``],x,0,s,x)}}}l=u=p=0,h=_=1,y=C=``,d=o;break;case 58:d=1+bn(C),p=m;default:if(h<1){if(v==123)--h;else if(v==125&&h++==0&&Nn()==125)continue}switch(C+=dn(v),v*h){case 38:_=u>0?1:(C+=`\f`,-1);break;case 44:s[l++]=(bn(C)-1)*_,_=1;break;case 64:Fn()===45&&(C+=Vn(Pn())),f=Fn(),u=d=bn(y=C+=Kn(In())),v++;break;case 45:m===45&&bn(C)==2&&(h=0)}}return a}function Yn(e,t,n,r,i,a,o,s,c,l,u){for(var d=i-1,f=i===0?a:[``],p=xn(f),m=0,h=0,g=0;m<r;++m)for(var _=0,v=yn(e,d+1,d=un(h=o[m])),y=e;_<p;++_)(y=mn(h>0?f[_]+` `+v:gn(v,/&\f/g,f[_])))&&(c[g++]=y);return An(e,t,n,i===0?an:s,c,l,u)}function Xn(e,t,n){return An(e,t,n,rn,dn(Mn()),yn(e,2,-2),0)}function Zn(e,t,n,r){return An(e,t,n,on,yn(e,0,r),yn(e,r+1,-1),r)}function Qn(e,t){for(var n=``,r=xn(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||``;return n}function $n(e,t,n,r){switch(e.type){case ln:if(e.children.length)break;case sn:case on:return e.return=e.return||e.value;case rn:return``;case cn:return e.return=e.value+`{`+Qn(e.children,r)+`}`;case an:e.value=e.props.join(`,`)}return bn(n=Qn(e.children,r))?e.return=e.value+`{`+n+`}`:``}function er(e){var t=xn(e);return function(n,r,i,a){for(var o=``,s=0;s<t;s++)o+=e[s](n,r,i,a)||``;return o}}function tr(e){return function(t){t.root||(t=t.return)&&e(t)}}function nr(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var rr=function(e,t,n){for(var r=0,i=0;r=i,i=Fn(),r===38&&i===12&&(t[n]=1),!Rn(i);)Pn();return Ln(e,Dn)},ir=function(e,t){var n=-1,r=44;do switch(Rn(r)){case 0:r===38&&Fn()===12&&(t[n]=1),e[n]+=rr(Dn-1,t,n);break;case 2:e[n]+=Vn(r);break;case 4:if(r===44){e[++n]=Fn()===58?`&\f`:``,t[n]=e[n].length;break}default:e[n]+=dn(r)}while(r=Pn());return e},ar=function(e,t){return Bn(ir(zn(e),t))},or=new WeakMap,sr=function(e){if(!(e.type!==`rule`||!e.parent||e.length<1)){for(var t=e.value,n=e.parent,r=e.column===n.column&&e.line===n.line;n.type!==`rule`;)if(n=n.parent,!n)return;if((e.props.length!==1||t.charCodeAt(0)===58||or.get(n))&&!r){or.set(e,!0);for(var i=[],a=ar(t,i),o=n.props,s=0,c=0;s<a.length;s++)for(var l=0;l<o.length;l++,c++)e.props[c]=i[s]?a[s].replace(/&\f/g,o[l]):o[l]+` `+a[s]}}},cr=function(e){if(e.type===`decl`){var t=e.value;t.charCodeAt(0)===108&&t.charCodeAt(2)===98&&(e.return=``,e.value=``)}};function lr(e,t){switch(pn(e,t)){case 5103:return nn+`print-`+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return nn+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return nn+e+tn+e+en+e+e;case 6828:case 4268:return nn+e+en+e+e;case 6165:return nn+e+en+`flex-`+e+e;case 5187:return nn+e+gn(e,/(\w+).+(:[^]+)/,nn+`box-$1$2`+en+`flex-$1$2`)+e;case 5443:return nn+e+en+`flex-item-`+gn(e,/flex-|-self/,``)+e;case 4675:return nn+e+en+`flex-line-pack`+gn(e,/align-content|flex-|-self/,``)+e;case 5548:return nn+e+en+gn(e,`shrink`,`negative`)+e;case 5292:return nn+e+en+gn(e,`basis`,`preferred-size`)+e;case 6060:return nn+`box-`+gn(e,`-grow`,``)+nn+e+en+gn(e,`grow`,`positive`)+e;case 4554:return nn+gn(e,/([^-])(transform)/g,`$1`+nn+`$2`)+e;case 6187:return gn(gn(gn(e,/(zoom-|grab)/,nn+`$1`),/(image-set)/,nn+`$1`),e,``)+e;case 5495:case 3959:return gn(e,/(image-set\([^]*)/,nn+"$1$`$1");case 4968:return gn(gn(e,/(.+:)(flex-)?(.*)/,nn+`box-pack:$3`+en+`flex-pack:$3`),/s.+-b[^;]+/,`justify`)+nn+e+e;case 4095:case 3583:case 4068:case 2532:return gn(e,/(.+)-inline(.+)/,nn+`$1$2`)+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(bn(e)-1-t>6)switch(vn(e,t+1)){case 109:if(vn(e,t+4)!==45)break;case 102:return gn(e,/(.+:)(.+)-([^]+)/,`$1`+nn+`$2-$3$1`+tn+(vn(e,t+3)==108?`$3`:`$2-$3`))+e;case 115:return~_n(e,`stretch`)?lr(gn(e,`stretch`,`fill-available`),t)+e:e}break;case 4949:if(vn(e,t+1)!==115)break;case 6444:switch(vn(e,bn(e)-3-(~_n(e,`!important`)&&10))){case 107:return gn(e,`:`,`:`+nn)+e;case 101:return gn(e,/(.+:)([^;!]+)(;|!.+)?/,`$1`+nn+(vn(e,14)===45?`inline-`:``)+`box$3$1`+nn+`$2$3$1`+en+`$2box$3`)+e}break;case 5936:switch(vn(e,t+11)){case 114:return nn+e+en+gn(e,/[svh]\w+-[tblr]{2}/,`tb`)+e;case 108:return nn+e+en+gn(e,/[svh]\w+-[tblr]{2}/,`tb-rl`)+e;case 45:return nn+e+en+gn(e,/[svh]\w+-[tblr]{2}/,`lr`)+e}return nn+e+en+e+e}return e}var ur=[function(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case on:e.return=lr(e.value,e.length);break;case cn:return Qn([jn(e,{value:gn(e.value,`@`,`@`+nn)})],r);case an:if(e.length)return Cn(e.props,function(t){switch(hn(t,/(::plac\w+|:read-\w+)/)){case`:read-only`:case`:read-write`:return Qn([jn(e,{props:[gn(t,/:(read-\w+)/,`:`+tn+`$1`)]})],r);case`::placeholder`:return Qn([jn(e,{props:[gn(t,/:(plac\w+)/,`:`+nn+`input-$1`)]}),jn(e,{props:[gn(t,/:(plac\w+)/,`:`+tn+`$1`)]}),jn(e,{props:[gn(t,/:(plac\w+)/,en+`input-$1`)]})],r)}return``})}}],dr=function(e){var t=e.key;if(t===`css`){var n=document.querySelectorAll(`style[data-emotion]:not([data-s])`);Array.prototype.forEach.call(n,function(e){e.getAttribute(`data-emotion`).indexOf(` `)!==-1&&(document.head.appendChild(e),e.setAttribute(`data-s`,``))})}var r=e.stylisPlugins||ur,i={},a,o=[];a=e.container||document.head,Array.prototype.forEach.call(document.querySelectorAll(`style[data-emotion^="`+t+` "]`),function(e){for(var t=e.getAttribute(`data-emotion`).split(` `),n=1;n<t.length;n++)i[t[n]]=!0;o.push(e)});var s,c=[sr,cr],l,u=[$n,tr(function(e){l.insert(e)})],d=er(c.concat(r,u)),f=function(e){return Qn(qn(e),d)};s=function(e,t,n,r){l=n,f(e?e+`{`+t.styles+`}`:t.styles),r&&(p.inserted[t.name]=!0)};var p={key:t,sheet:new $t({key:t,container:a,nonce:e.nonce,speedy:e.speedy,prepend:e.prepend,insertionPoint:e.insertionPoint}),nonce:e.nonce,inserted:i,registered:{},insert:s};return p.sheet.hydrate(o),p},fr=n((e=>{var t=typeof Symbol==`function`&&Symbol.for,n=t?Symbol.for(`react.element`):60103,r=t?Symbol.for(`react.portal`):60106,i=t?Symbol.for(`react.fragment`):60107,a=t?Symbol.for(`react.strict_mode`):60108,o=t?Symbol.for(`react.profiler`):60114,s=t?Symbol.for(`react.provider`):60109,c=t?Symbol.for(`react.context`):60110,l=t?Symbol.for(`react.async_mode`):60111,u=t?Symbol.for(`react.concurrent_mode`):60111,d=t?Symbol.for(`react.forward_ref`):60112,f=t?Symbol.for(`react.suspense`):60113,p=t?Symbol.for(`react.suspense_list`):60120,m=t?Symbol.for(`react.memo`):60115,h=t?Symbol.for(`react.lazy`):60116,g=t?Symbol.for(`react.block`):60121,_=t?Symbol.for(`react.fundamental`):60117,v=t?Symbol.for(`react.responder`):60118,y=t?Symbol.for(`react.scope`):60119;function b(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:switch(e=e.type,e){case l:case u:case i:case o:case a:case f:return e;default:switch(e&&=e.$$typeof,e){case c:case d:case h:case m:case s:return e;default:return t}}case r:return t}}}function x(e){return b(e)===u}e.AsyncMode=l,e.ConcurrentMode=u,e.ContextConsumer=c,e.ContextProvider=s,e.Element=n,e.ForwardRef=d,e.Fragment=i,e.Lazy=h,e.Memo=m,e.Portal=r,e.Profiler=o,e.StrictMode=a,e.Suspense=f,e.isAsyncMode=function(e){return x(e)||b(e)===l},e.isConcurrentMode=x,e.isContextConsumer=function(e){return b(e)===c},e.isContextProvider=function(e){return b(e)===s},e.isElement=function(e){return typeof e==`object`&&!!e&&e.$$typeof===n},e.isForwardRef=function(e){return b(e)===d},e.isFragment=function(e){return b(e)===i},e.isLazy=function(e){return b(e)===h},e.isMemo=function(e){return b(e)===m},e.isPortal=function(e){return b(e)===r},e.isProfiler=function(e){return b(e)===o},e.isStrictMode=function(e){return b(e)===a},e.isSuspense=function(e){return b(e)===f},e.isValidElementType=function(e){return typeof e==`string`||typeof e==`function`||e===i||e===u||e===o||e===a||e===f||e===p||typeof e==`object`&&!!e&&(e.$$typeof===h||e.$$typeof===m||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===_||e.$$typeof===v||e.$$typeof===y||e.$$typeof===g)},e.typeOf=b})),pr=n(((e,t)=>{t.exports=fr()})),mr=n(((e,t)=>{var n=pr(),r={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};s[n.ForwardRef]=a,s[n.Memo]=o;function c(e){return n.isMemo(e)?o:s[e.$$typeof]||r}var l=Object.defineProperty,u=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;function h(e,t,n){if(typeof t!=`string`){if(m){var r=p(t);r&&r!==m&&h(e,r,n)}var a=u(t);d&&(a=a.concat(d(t)));for(var o=c(e),s=c(t),g=0;g<a.length;++g){var _=a[g];if(!i[_]&&!(n&&n[_])&&!(s&&s[_])&&!(o&&o[_])){var v=f(t,_);try{l(e,_,v)}catch{}}}}return e}t.exports=h}));function hr(e,t,n){var r=``;return n.split(` `).forEach(function(n){e[n]===void 0?n&&(r+=n+` `):t.push(e[n]+`;`)}),r}var gr=function(e,t,n){var r=e.key+`-`+t.name;n===!1&&e.registered[r]===void 0&&(e.registered[r]=t.styles)},_r=function(e,t,n){gr(e,t,n);var r=e.key+`-`+t.name;if(e.inserted[t.name]===void 0){var i=t;do e.insert(t===i?`.`+r:``,i,e.sheet,!0),i=i.next;while(i!==void 0)}};function vr(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var yr={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},br=/[A-Z]|^ms/g,xr=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Sr=function(e){return e.charCodeAt(1)===45},Cr=function(e){return e!=null&&typeof e!=`boolean`},wr=nr(function(e){return Sr(e)?e:e.replace(br,`-$&`).toLowerCase()}),Tr=function(e,t){switch(e){case`animation`:case`animationName`:if(typeof t==`string`)return t.replace(xr,function(e,t,n){return kr={name:t,styles:n,next:kr},t})}return yr[e]!==1&&!Sr(e)&&typeof t==`number`&&t!==0?t+`px`:t};function Er(e,t,n){if(n==null)return``;var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case`boolean`:return``;case`object`:var i=n;if(i.anim===1)return kr={name:i.name,styles:i.styles,next:kr},i.name;var a=n;if(a.styles!==void 0){var o=a.next;if(o!==void 0)for(;o!==void 0;)kr={name:o.name,styles:o.styles,next:kr},o=o.next;return a.styles+`;`}return Dr(e,t,n);case`function`:if(e!==void 0){var s=kr,c=n(e);return kr=s,Er(e,t,c)}}var l=n;if(t==null)return l;var u=t[l];return u===void 0?l:u}function Dr(e,t,n){var r=``;if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=Er(e,t,n[i])+`;`;else for(var a in n){var o=n[a];if(typeof o!=`object`){var s=o;t!=null&&t[s]!==void 0?r+=a+`{`+t[s]+`}`:Cr(s)&&(r+=wr(a)+`:`+Tr(a,s)+`;`)}else if(Array.isArray(o)&&typeof o[0]==`string`&&(t==null||t[o[0]]===void 0))for(var c=0;c<o.length;c++)Cr(o[c])&&(r+=wr(a)+`:`+Tr(a,o[c])+`;`);else{var l=Er(e,t,o);switch(a){case`animation`:case`animationName`:r+=wr(a)+`:`+l+`;`;break;default:r+=a+`{`+l+`}`}}}return r}var Or=/label:\s*([^\s;{]+)\s*(;|$)/g,kr;function Ar(e,t,n){if(e.length===1&&typeof e[0]==`object`&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i=``;kr=void 0;var a=e[0];a==null||a.raw===void 0?(r=!1,i+=Er(n,t,a)):i+=a[0];for(var o=1;o<e.length;o++)i+=Er(n,t,e[o]),r&&(i+=a[o]);Or.lastIndex=0;for(var s=``,c;(c=Or.exec(i))!==null;)s+=`-`+c[1];return{name:vr(i)+s,styles:i,next:kr}}var jr=function(e){return e()},Mr=z.useInsertionEffect?z.useInsertionEffect:!1,Nr=Mr||jr,Pr=Mr||z.useLayoutEffect,Fr=z.createContext(typeof HTMLElement<`u`?dr({key:`css`}):null);Fr.Provider;var Ir=function(e){return(0,z.forwardRef)(function(t,n){return e(t,(0,z.useContext)(Fr),n)})},Lr=z.createContext({}),Rr={}.hasOwnProperty,zr=`__EMOTION_TYPE_PLEASE_DO_NOT_USE__`,Br=function(e,t){var n={};for(var r in t)Rr.call(t,r)&&(n[r]=t[r]);return n[zr]=e,n},Vr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return gr(t,n,r),Nr(function(){return _r(t,n,r)}),null},Hr=Ir(function(e,t,n){var r=e.css;typeof r==`string`&&t.registered[r]!==void 0&&(r=t.registered[r]);var i=e[zr],a=[r],o=``;typeof e.className==`string`?o=hr(t.registered,a,e.className):e.className!=null&&(o=e.className+` `);var s=Ar(a,void 0,z.useContext(Lr));o+=t.key+`-`+s.name;var c={};for(var l in e)Rr.call(e,l)&&l!==`css`&&l!==zr&&(c[l]=e[l]);return c.className=o,n&&(c.ref=n),z.createElement(z.Fragment,null,z.createElement(Vr,{cache:t,serialized:s,isStringTag:typeof i==`string`}),z.createElement(i,c))});mr();var Ur=function(e,t){var n=arguments;if(t==null||!Rr.call(t,`css`))return z.createElement.apply(void 0,n);var r=n.length,i=Array(r);i[0]=Hr,i[1]=Br(e,t);for(var a=2;a<r;a++)i[a]=n[a];return z.createElement.apply(null,i)};(function(e){var t;t||=e.JSX||={}})(Ur||={});var Wr=Ir(function(e,t){var n=e.styles,r=Ar([n],void 0,z.useContext(Lr)),i=z.useRef();return Pr(function(){var e=t.key+`-global`,n=new t.sheet.constructor({key:e,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),a=!1,o=document.querySelector(`style[data-emotion="`+e+` `+r.name+`"]`);return t.sheet.tags.length&&(n.before=t.sheet.tags[0]),o!==null&&(a=!0,o.setAttribute(`data-emotion`,e),n.hydrate([o])),i.current=[n,a],function(){n.flush()}},[t]),Pr(function(){var e=i.current,n=e[0];e[1]?e[1]=!1:(r.next!==void 0&&_r(t,r.next,!0),n.tags.length&&(n.before=n.tags[n.tags.length-1].nextElementSibling,n.flush()),t.insert(``,r,n,!1))},[t,r.name]),null});function Gr(){return Ar([...arguments])}function Kr(){var e=Gr.apply(void 0,arguments),t=`animation-`+e.name;return{name:t,styles:`@keyframes `+t+`{`+e.styles+`}`,anim:1,toString:function(){return`_EMO_`+this.name+`_`+this.styles+`_EMO_`}}}var qr=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|popover|popoverTarget|popoverTargetAction|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Jr=nr(function(e){return qr.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Yr=function(e){return e!==`theme`},Xr=function(e){return typeof e==`string`&&e.charCodeAt(0)>96?Jr:Yr},Zr=function(e,t,n){var r;if(t){var i=t.shouldForwardProp;r=e.__emotion_forwardProp&&i?function(t){return e.__emotion_forwardProp(t)&&i(t)}:i}return typeof r!=`function`&&n&&(r=e.__emotion_forwardProp),r},Qr=function(e){var t=e.cache,n=e.serialized,r=e.isStringTag;return gr(t,n,r),Nr(function(){return _r(t,n,r)}),null},$r=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,o;n!==void 0&&(a=n.label,o=n.target);var s=Zr(t,n,r),c=s||Xr(i),l=!c(`as`);return function(){var u=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&d.push(`label:`+a+`;`),u[0]==null||u[0].raw===void 0)d.push.apply(d,u);else{var f=u[0];d.push(f[0]);for(var p=u.length,m=1;m<p;m++)d.push(u[m],f[m])}var h=Ir(function(e,t,n){var r=l&&e.as||i,a=``,u=[],f=e;if(e.theme==null){for(var p in f={},e)f[p]=e[p];f.theme=z.useContext(Lr)}typeof e.className==`string`?a=hr(t.registered,u,e.className):e.className!=null&&(a=e.className+` `);var m=Ar(d.concat(u),t.registered,f);a+=t.key+`-`+m.name,o!==void 0&&(a+=` `+o);var h=l&&s===void 0?Xr(r):c,g={};for(var _ in e)l&&_===`as`||h(_)&&(g[_]=e[_]);return g.className=a,n&&(g.ref=n),z.createElement(z.Fragment,null,z.createElement(Qr,{cache:t,serialized:m,isStringTag:typeof r==`string`}),z.createElement(r,g))});return h.displayName=a===void 0?`Styled(`+(typeof i==`string`?i:i.displayName||i.name||`Component`)+`)`:a,h.defaultProps=t.defaultProps,h.__emotion_real=h,h.__emotion_base=i,h.__emotion_styles=d,h.__emotion_forwardProp=s,Object.defineProperty(h,"toString",{value:function(){return`.`+o}}),h.withComponent=function(t,r){return e(t,Xt({},n,r,{shouldForwardProp:Zr(h,r,!0)})).apply(void 0,d)},h}},ei=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.marquee.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`),ti=$r.bind(null);ei.forEach(function(e){ti[e]=ti(e)});var ni=n((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})),ri=n(((e,t)=>{t.exports=ni()})),H=ri();function ii(e){return e==null||Object.keys(e).length===0}function ai(e){let{styles:t,defaultTheme:n={}}=e;return(0,H.jsx)(Wr,{styles:typeof t==`function`?e=>t(ii(e)?n:e):t})}function oi(e,t){return ti(e,t)}function si(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}var ci=[];function li(e){return ci[0]=e,Ar(ci)}var ui=n((e=>{var t=Symbol.for(`react.fragment`),n=Symbol.for(`react.strict_mode`),r=Symbol.for(`react.profiler`),i=Symbol.for(`react.consumer`),a=Symbol.for(`react.context`),o=Symbol.for(`react.forward_ref`),s=Symbol.for(`react.suspense`),c=Symbol.for(`react.suspense_list`),l=Symbol.for(`react.memo`),u=Symbol.for(`react.lazy`),d=Symbol.for(`react.view_transition`),f=Symbol.for(`react.client.reference`);e.isValidElementType=function(e){return!!(typeof e==`string`||typeof e==`function`||e===t||e===r||e===n||e===s||e===c||e===d||typeof e==`object`&&e&&(e.$$typeof===u||e.$$typeof===l||e.$$typeof===a||e.$$typeof===i||e.$$typeof===o||e.$$typeof===f||e.getModuleId!==void 0))}})),di=n(((e,t)=>{t.exports=ui()}))();function fi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function pi(e){if(z.isValidElement(e)||(0,di.isValidElementType)(e)||!fi(e))return e;let t={};return Object.keys(e).forEach(n=>{t[n]=pi(e[n])}),t}function mi(e,t,n={clone:!0}){let r=n.clone?{...e}:e;return fi(e)&&fi(t)&&Object.keys(t).forEach(i=>{z.isValidElement(t[i])||(0,di.isValidElementType)(t[i])?r[i]=t[i]:fi(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&fi(e[i])?r[i]=mi(e[i],t[i],n):n.clone?r[i]=fi(t[i])?pi(t[i]):t[i]:r[i]=t[i]}),r}var hi=e=>{let t=Object.keys(e).map(t=>({key:t,val:e[t]}))||[];return t.sort((e,t)=>e.val-t.val),t.reduce((e,t)=>({...e,[t.key]:t.val}),{})};function gi(e){let{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n=`px`,step:r=5,...i}=e,a=hi(t),o=Object.keys(a);function s(e){return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n})`}function c(e){return`@media (max-width:${(typeof t[e]==`number`?t[e]:e)-r/100}${n})`}function l(e,i){let a=o.indexOf(i);return`@media (min-width:${typeof t[e]==`number`?t[e]:e}${n}) and (max-width:${(a!==-1&&typeof t[o[a]]==`number`?t[o[a]]:i)-r/100}${n})`}function u(e){return o.indexOf(e)+1<o.length?l(e,o[o.indexOf(e)+1]):s(e)}function d(e){let t=o.indexOf(e);return t===0?s(o[1]):t===o.length-1?c(o[t]):l(e,o[o.indexOf(e)+1]).replace(`@media`,`@media not all and`)}let f=[];for(let e=0;e<o.length;e+=1)f.push(s(o[e]));return{keys:o,values:a,up:s,down:c,between:l,only:u,not:d,unit:n,internal_mediaKeys:f,...i}}var _i=/min-width:\s*([0-9.]+)/;function vi(e,t){if(!e.containerQueries||!yi(t))return t;let n=[];for(let e in t)e.startsWith(`@container`)&&n.push(e);n.sort((e,t)=>+(e.match(_i)?.[1]||0)-(t.match(_i)?.[1]||0));let r=t;for(let e=0;e<n.length;e+=1){let t=n[e],i=r[t];delete r[t],r[t]=i}return r}function yi(e){for(let t in e)if(t.startsWith(`@container`))return!0;return!1}function bi(e,t){return t===`@`||t.startsWith(`@`)&&(e.some(e=>t.startsWith(`@${e}`))||!!t.match(/^@\d/))}function xi(e,t){let n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;let[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function Si(e){let t=(e,t)=>e.replace(`@media`,t?`@container ${t}`:`@container`);function n(n,r){n.up=(...n)=>t(e.breakpoints.up(...n),r),n.down=(...n)=>t(e.breakpoints.down(...n),r),n.between=(...n)=>t(e.breakpoints.between(...n),r),n.only=(...n)=>t(e.breakpoints.only(...n),r),n.not=(...n)=>{let i=t(e.breakpoints.not(...n),r);return i.includes(`not all and`)?i.replace(`not all and `,``).replace(`min-width:`,`width<`).replace(`max-width:`,`width>`).replace(`and`,`or`):i}}let r={},i=e=>(n(r,e),r);return n(i),{...e,containerQueries:i}}var Ci={borderRadius:4};function wi(e){if(e==null)return!0;for(let t in e)return!1;return!0}function Ti(e,t){let n=Array.isArray(t),r=Array.isArray(e);return Ai(t)?t:ji(e)?Mi(t):n&&r?Oi(e,t):n===r?Ni(e,t):Mi(t)}function Ei(e){let t=0,n=e.length,r=Array(n);for(t=0;t<n;t+=1)r[t]=Mi(e[t]);return r}function Di(e){let t={};for(let n in e)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(t[n]=Mi(e[n]));return t}function Oi(e,t){let n=e.length;for(let r=0;r<t.length;r+=1)e[n+r]=Mi(t[r]);return e}function ki(e){return typeof e==`object`&&!!e&&!(e instanceof RegExp)&&!(e instanceof Date)}function Ai(e){return typeof e!=`object`||!e}function ji(e){return typeof e!=`object`||!e||e instanceof RegExp||e instanceof Date}function Mi(e){return ki(e)?Array.isArray(e)?Ei(e):Di(e):e}function Ni(e,t){for(let n in t)n!==`__proto__`&&n!==`constructor`&&n!==`prototype`&&(e[n]=n in e?Ti(e[n],t[n]):Mi(t[n]));return e}var Pi={},Fi={xs:0,sm:600,md:900,lg:1200,xl:1536},Ii=gi({values:Fi}),Li={containerQueries:e=>({up:t=>{let n=typeof t==`number`?t:Fi[t]||t;return typeof n==`number`&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Ri(e,t,n){let r={};return zi(r,e.theme,t,(e,t,i)=>{let a=n(t,i);e?r[e]=a:Ti(r,a)})}function zi(e,t,n,r){if(t??=Pi,Array.isArray(n)){let i=t.breakpoints??Ii;for(let t=0;t<n.length;t+=1)Bi(e,i.up(i.keys[t]),n[t],void 0,r);return e}if(typeof n==`object`){let i=t.breakpoints??Ii,a=i.values??Fi;for(let o in n)if(bi(i.keys,o)){let i=xi(t.containerQueries?t:Li,o);i&&Bi(e,i,n[o],o,r)}else if(o in a)Bi(e,i.up(o),n[o],o,r);else{let t=o;e[t]=n[t]}return e}return r(void 0,n),e}function Bi(e,t,n,r,i){e[t]??={},i(t,n,r)}function Vi(e=Ii){let{internal_mediaKeys:t}=e,n={};for(let e=0;e<t.length;e+=1)n[t[e]]={};return n}function Hi(e,t){let n=e.internal_mediaKeys;for(let e=0;e<n.length;e+=1){let r=n[e];wi(t[r])&&delete t[r]}return t}function Ui(e,...t){return Hi(e,[Vi(e),...t].reduce((e,t)=>mi(e,t),{}))}function Wi(e,t){if(typeof e!=`object`)return{};let n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((t,r)=>{r<e.length&&(n[t]=!0)}):r.forEach(t=>{e[t]!=null&&(n[t]=!0)}),n}function Gi(e){let{values:t,breakpoints:n,base:r}=e,i=r||Wi(t,n),a=Object.keys(i);if(a.length===0)return t;let o;return a.reduce((e,n,r)=>{if(Array.isArray(t))e[n]=t[r]==null?t[o]:t[r],o=r;else if(typeof t==`object`&&t){let r=t;e[n]=r[n]==null?r[o]:r[n],o=n}else e[n]=t;return e},{})}function Ki(e,t){if(Array.isArray(t))return!0;if(typeof t==`object`&&t){for(let n=0;n<e.keys.length;n+=1)if(e.keys[n]in t)return!0;let n=Object.keys(t);for(let t=0;t<n.length;t+=1)if(bi(e.keys,n[t]))return!0}return!1}function qi(e){if(typeof e!=`string`)throw Error(Jt(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Ji(e,t,n,r){let i;return i=typeof e==`function`?e(n):Array.isArray(e)?e[n]||n:typeof n==`string`&&Yi(e,n,!0,r)||n,t&&(i=t(i,n,e)),i}function Yi(e,t,n=!0,r=void 0){if(!e||!t)return null;let i=t.split(`.`);if(e.vars&&n){let t=Xi(e.vars,i,r);if(t!=null)return t}return Xi(e,i,r)}function Xi(e,t,n=void 0){let r,i=e,a=0;for(;a<t.length;){if(i==null)return i;r=i,i=i[t[a]],a+=1}if(n&&i===void 0){let e=t[t.length-1],i=`${n}${e==="default"?``:qi(e)}`;return r?.[i]}return i}function Zi(e){let{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=e=>{if(e[t]==null)return null;let a=e[t],o=e.theme,s=Yi(o,r)||{};return Ri(e,a,e=>{let r=Ji(s,i,e,t);return n===!1?r:{[n]:r}})};return a.propTypes={},a.filterProps=[t],a}var Qi={internal_cache:{}},$i={m:`margin`,p:`padding`},ea={t:`Top`,r:`Right`,b:`Bottom`,l:`Left`,x:[`Left`,`Right`],y:[`Top`,`Bottom`]},ta={marginX:`mx`,marginY:`my`,paddingX:`px`,paddingY:`py`},na={};for(let e in $i)na[e]=[$i[e]];for(let e in $i)for(let t in ea){let n=$i[e],r=ea[t],i=Array.isArray(r)?r.map(e=>n+e):[n+r];na[e+t]=i}for(let e in ta)na[e]=na[ta[e]];var ra=new Set([`m`,`mt`,`mr`,`mb`,`ml`,`mx`,`my`,`margin`,`marginTop`,`marginRight`,`marginBottom`,`marginLeft`,`marginX`,`marginY`,`marginInline`,`marginInlineStart`,`marginInlineEnd`,`marginBlock`,`marginBlockStart`,`marginBlockEnd`]),ia=new Set([`p`,`pt`,`pr`,`pb`,`pl`,`px`,`py`,`padding`,`paddingTop`,`paddingRight`,`paddingBottom`,`paddingLeft`,`paddingX`,`paddingY`,`paddingInline`,`paddingInlineStart`,`paddingInlineEnd`,`paddingBlock`,`paddingBlockStart`,`paddingBlockEnd`]);[...ra,...ia];function aa(e,t,n,r){let i=Yi(e,t,!0)??n;return typeof i==`number`||typeof i==`string`?e=>typeof e==`string`?e:typeof i==`string`?i.startsWith(`var(`)&&e===0?0:i.startsWith(`var(`)&&e===1?i:`calc(${e} * ${i})`:i*e:Array.isArray(i)?e=>{if(typeof e==`string`)return e;let t=i[Math.abs(e)];return e>=0?t:typeof t==`number`?-t:typeof t==`string`&&t.startsWith(`var(`)?`calc(-1 * ${t})`:`-${t}`}:typeof i==`function`?i:()=>void 0}function oa(e){return aa(e,`spacing`,8,`spacing`)}function sa(e,t){return typeof t==`string`||t==null?t:e(t)}var ca=[``];function la(e,t){let n=e.theme??Qi,r=n?.internal_cache?.unarySpacing??oa(n),i={};for(let n in e){if(!t.has(n))continue;let a=na[n]??(ca[0]=n,ca),o=e[n];zi(i,e.theme,o,(e,t)=>{let n=e?i[e]:i;for(let e=0;e<a.length;e+=1)n[a[e]]=sa(r,t)})}return i}function ua(e){return la(e,ra)}ua.propTypes={},ua.filterProps=ra;var da=ua;function fa(e){return la(e,ia)}fa.propTypes={},fa.filterProps=ia;var pa=fa;function ma(e=8,t=oa({spacing:e})){if(e.mui)return e;let n=(...e)=>(e.length===0?[1]:e).map(e=>{let n=t(e);return typeof n==`number`?`${n}px`:n}).join(` `);return n.mui=!0,n}function ha(...e){let t=e.reduce((e,t)=>(t.filterProps.forEach(n=>{e[n]=t}),e),{}),n=e=>{let n={};for(let r in e)t[r]&&Ti(n,t[r](e));return n};return n.propTypes={},n.filterProps=e.reduce((e,t)=>e.concat(t.filterProps),[]),n}function ga(e){return typeof e==`number`?`${e}px solid`:e}function _a(e,t){return Zi({prop:e,themeKey:`borders`,transform:t})}var va=_a(`border`,ga),ya=_a(`borderTop`,ga),ba=_a(`borderRight`,ga),xa=_a(`borderBottom`,ga),Sa=_a(`borderLeft`,ga),Ca=_a(`borderColor`),wa=_a(`borderTopColor`),Ta=_a(`borderRightColor`),Ea=_a(`borderBottomColor`),Da=_a(`borderLeftColor`),Oa=_a(`outline`,ga),ka=_a(`outlineColor`),Aa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){let t=aa(e.theme,`shape.borderRadius`,4,`borderRadius`);return Ri(e,e.borderRadius,e=>({borderRadius:sa(t,e)}))}return null};Aa.propTypes={},Aa.filterProps=[`borderRadius`],ha(va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Aa,Oa,ka);var ja=e=>{if(e.gap!==void 0&&e.gap!==null){let t=aa(e.theme,`spacing`,8,`gap`);return Ri(e,e.gap,e=>({gap:sa(t,e)}))}return null};ja.propTypes={},ja.filterProps=[`gap`];var Ma=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){let t=aa(e.theme,`spacing`,8,`columnGap`);return Ri(e,e.columnGap,e=>({columnGap:sa(t,e)}))}return null};Ma.propTypes={},Ma.filterProps=[`columnGap`];var Na=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){let t=aa(e.theme,`spacing`,8,`rowGap`);return Ri(e,e.rowGap,e=>({rowGap:sa(t,e)}))}return null};Na.propTypes={},Na.filterProps=[`rowGap`],ha(ja,Ma,Na,Zi({prop:`gridColumn`}),Zi({prop:`gridRow`}),Zi({prop:`gridAutoFlow`}),Zi({prop:`gridAutoColumns`}),Zi({prop:`gridAutoRows`}),Zi({prop:`gridTemplateColumns`}),Zi({prop:`gridTemplateRows`}),Zi({prop:`gridTemplateAreas`}),Zi({prop:`gridArea`}));function Pa(e,t){return t===`grey`?t:e}ha(Zi({prop:`color`,themeKey:`palette`,transform:Pa}),Zi({prop:`bgcolor`,cssProperty:`backgroundColor`,themeKey:`palette`,transform:Pa}),Zi({prop:`backgroundColor`,themeKey:`palette`,transform:Pa}));var Fa=Fi;function Ia(e){return e<=1&&e!==0?`${e*100}%`:e}var La=Zi({prop:`width`,transform:Ia}),Ra=e=>e.maxWidth!==void 0&&e.maxWidth!==null?Ri(e,e.maxWidth,t=>{let n=e.theme?.breakpoints?.values?.[t]||Fa[t];return n?e.theme?.breakpoints?.unit===`px`?{maxWidth:n}:{maxWidth:`${n}${e.theme.breakpoints.unit}`}:{maxWidth:Ia(t)}}):null;Ra.filterProps=[`maxWidth`];var za=Zi({prop:`minWidth`,transform:Ia}),Ba=Zi({prop:`height`,transform:Ia}),Va=Zi({prop:`maxHeight`,transform:Ia}),Ha=Zi({prop:`minHeight`,transform:Ia});Zi({prop:`size`,cssProperty:`width`,transform:Ia}),Zi({prop:`size`,cssProperty:`height`,transform:Ia}),ha(La,Ra,za,Ba,Va,Ha,Zi({prop:`boxSizing`}));var Ua={border:{themeKey:`borders`,transform:ga},borderTop:{themeKey:`borders`,transform:ga},borderRight:{themeKey:`borders`,transform:ga},borderBottom:{themeKey:`borders`,transform:ga},borderLeft:{themeKey:`borders`,transform:ga},borderColor:{themeKey:`palette`},borderTopColor:{themeKey:`palette`},borderRightColor:{themeKey:`palette`},borderBottomColor:{themeKey:`palette`},borderLeftColor:{themeKey:`palette`},outline:{themeKey:`borders`,transform:ga},outlineColor:{themeKey:`palette`},borderRadius:{themeKey:`shape.borderRadius`,style:Aa},color:{themeKey:`palette`,transform:Pa},bgcolor:{themeKey:`palette`,cssProperty:`backgroundColor`,transform:Pa},backgroundColor:{themeKey:`palette`,transform:Pa},p:{style:pa},pt:{style:pa},pr:{style:pa},pb:{style:pa},pl:{style:pa},px:{style:pa},py:{style:pa},padding:{style:pa},paddingTop:{style:pa},paddingRight:{style:pa},paddingBottom:{style:pa},paddingLeft:{style:pa},paddingX:{style:pa},paddingY:{style:pa},paddingInline:{style:pa},paddingInlineStart:{style:pa},paddingInlineEnd:{style:pa},paddingBlock:{style:pa},paddingBlockStart:{style:pa},paddingBlockEnd:{style:pa},m:{style:da},mt:{style:da},mr:{style:da},mb:{style:da},ml:{style:da},mx:{style:da},my:{style:da},margin:{style:da},marginTop:{style:da},marginRight:{style:da},marginBottom:{style:da},marginLeft:{style:da},marginX:{style:da},marginY:{style:da},marginInline:{style:da},marginInlineStart:{style:da},marginInlineEnd:{style:da},marginBlock:{style:da},marginBlockStart:{style:da},marginBlockEnd:{style:da},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:ja},rowGap:{style:Na},columnGap:{style:Ma},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:`zIndex`},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:`shadows`},width:{transform:Ia},maxWidth:{style:Ra},minWidth:{transform:Ia},height:{transform:Ia},maxHeight:{transform:Ia},minHeight:{transform:Ia},boxSizing:{},font:{themeKey:`font`},fontFamily:{themeKey:`typography`},fontSize:{themeKey:`typography`},fontStyle:{themeKey:`typography`},fontWeight:{themeKey:`typography`},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:`typography`}},Wa={};function Ga(){function e(t){if(!t.sx)return null;let{sx:n,theme:r=Wa,nested:i}=t,a=r.unstable_sxConfig??Ua,o={sx:null,theme:r,nested:!0};function s(n){let s=n;if(typeof n==`function`)s=n(r);else if(typeof n!=`object`)return n;if(!s)return null;let c=r.breakpoints??Ii,l=Vi(c);for(let n in s){let i=Ja(s[n],r);i!=null&&(typeof i==`object`?a[n]?qa(l,n,i,r,a):Ki(c,i)?zi(l,t.theme,i,(e,t)=>{l[e][n]=t}):(o.sx=i,l[n]=e(o)):qa(l,n,i,r,a))}return!i&&r.modularCssLayers?{"@layer sx":vi(r,Hi(c,l))}:vi(r,Hi(c,l))}return Array.isArray(n)?n.map(s):s(n)}return e.filterProps=[`sx`],e}var Ka=Ga();function qa(e,t,n,r,i){let a=i[t];if(!a){e[t]=n;return}if(n==null)return;let{themeKey:o}=a;if(o===`typography`&&n===`inherit`){e[t]=n;return}let{style:s}=a;if(s){Ti(e,s({[t]:n,theme:r}));return}let{cssProperty:c=t,transform:l}=a,u=Yi(r,o);zi(e,r,n,(n,r)=>{let i=Ji(u,l,r,t);c===!1?Ti(n?e[n]:e,i):n?e[n][c]=i:e[c]=i})}function Ja(e,t){return typeof e==`function`?e(t):e}function Ya(e,t){let n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!=`function`)return{};let r=n.getColorSchemeSelector(e);return r===`&`?t:((r.includes(`data-`)||r.includes(`.`))&&(r=`*:where(${r.replace(/\s*&$/,``)}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Xa(e={},...t){let{breakpoints:n={},palette:r={},spacing:i,shape:a={},...o}=e,s=gi(n),c=ma(i),l=mi({breakpoints:s,direction:`ltr`,components:{},palette:{mode:`light`,...r},spacing:c,shape:{...Ci,...a}},o);return l=Si(l),l.applyStyles=Ya,l=t.reduce((e,t)=>mi(e,t),l),l.unstable_sxConfig={...Ua,...o?.unstable_sxConfig},l.unstable_sx=function(e){return Ka({sx:e,theme:this})},l.internal_cache={},l}function Za(e){return Object.keys(e).length===0}function Qa(e=null){let t=z.useContext(Lr);return!t||Za(t)?e:t}var $a=Xa();function eo(e=$a){return Qa(e)}function to(e){let t=li(e);return e!==t&&t.styles?(t.styles.match(/^@layer\s+[^{]*$/)||(t.styles=`@layer global{${t.styles}}`),t):e}function no({styles:e,themeId:t,defaultTheme:n={}}){let r=eo(n),i=t&&r[t]||r,a=typeof e==`function`?e(i):e;return i.modularCssLayers&&(a=Array.isArray(a)?a.map(e=>to(typeof e==`function`?e(i):e)):to(a)),(0,H.jsx)(ai,{styles:a})}var ro=e=>e,io=(()=>{let e=ro;return{configure(t){e=t},generate(t){return e(t)},reset(){e=ro}}})();function ao(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=ao(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function U(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=ao(e))&&(r&&(r+=` `),r+=t);return r}function oo(e={}){let{themeId:t,defaultTheme:n,defaultClassName:r=`MuiBox-root`,generateClassName:i}=e,a=oi(`div`,{shouldForwardProp:e=>e!==`theme`&&e!==`sx`&&e!==`as`})(Ka);return z.forwardRef(function(e,o){let s=eo(n),{className:c,component:l=`div`,...u}=e;return(0,H.jsx)(a,{as:l,ref:o,className:U(c,i?i(r):r),theme:t&&s[t]||s,...u})})}var so={active:`active`,checked:`checked`,completed:`completed`,disabled:`disabled`,error:`error`,expanded:`expanded`,focused:`focused`,focusVisible:`focusVisible`,open:`open`,readOnly:`readOnly`,required:`required`,selected:`selected`};function W(e,t,n=`Mui`){let r=so[t];return r?`${n}-${r}`:`${io.generate(e)}-${t}`}function co(e,t,n=`Mui`){let r={};return t.forEach(t=>{r[t]=W(e,t,n)}),r}function lo(e){let{variants:t,...n}=e,r={variants:t,style:li(n),isProcessed:!0};return r.style===n||t&&t.forEach(e=>{typeof e.style!=`function`&&(e.style=li(e.style))}),r}var uo=Xa();function fo(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}function po(e,t){return t&&e&&typeof e==`object`&&e.styles&&!e.styles.startsWith(`@layer`)&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function mo(e){return e?(t,n)=>n[e]:null}function ho(e,t,n){e.theme=wi(e.theme)?n:e.theme[t]||e.theme}function go(e,t,n){let r=typeof t==`function`?t(e):t;if(Array.isArray(r))return r.flatMap(t=>go(e,t,n));if(Array.isArray(r?.variants)){let t;if(r.isProcessed)t=n?po(r.style,n):r.style;else{let{variants:e,...i}=r;t=n?po(li(i),n):i}return _o(e,r.variants,[t],n)}return r?.isProcessed?n?po(li(r.style),n):r.style:n?po(li(r),n):r}function _o(e,t,n=[],r=void 0){let i;variantLoop:for(let a=0;a<t.length;a+=1){let o=t[a];if(typeof o.props==`function`){if(i??={...e,...e.ownerState,ownerState:e.ownerState},!o.props(i))continue}else for(let t in o.props)if(e[t]!==o.props[t]&&e.ownerState?.[t]!==o.props[t])continue variantLoop;typeof o.style==`function`?(i??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?po(li(o.style(i)),r):o.style(i))):n.push(r?po(li(o.style),r):o.style)}return n}function vo(e={}){let{themeId:t,defaultTheme:n=uo,rootShouldForwardProp:r=fo,slotShouldForwardProp:i=fo}=e;function a(e){ho(e,t,n)}return(e,t={})=>{si(e,e=>e.filter(e=>e!==Ka));let{name:n,slot:o,skipVariantsResolver:s,skipSx:c,overridesResolver:l=mo(bo(o)),...u}=t,d=n&&n.startsWith(`Mui`)||o?`components`:`custom`,f=s===void 0?o&&o!==`Root`&&o!==`root`||!1:s,p=c||!1,m=fo;o===`Root`||o===`root`?m=r:o?m=i:yo(e)&&(m=void 0);let h=oi(e,{shouldForwardProp:m,label:void 0,...u}),g=e=>{if(e.__emotion_real===e)return e;if(typeof e==`function`)return function(t){return go(t,e,t.theme.modularCssLayers?d:void 0)};if(fi(e)){let t=lo(e);return function(e){return t.variants?go(e,t,e.theme.modularCssLayers?d:void 0):e.theme.modularCssLayers?po(t.style,d):t.style}}return e},_=(...t)=>{let r=[],i=t.map(g),o=[];if(r.push(a),n&&l&&o.push(function(e){let t=e.theme.components?.[n]?.styleOverrides;if(!t)return null;let r={};for(let n in t)r[n]=go(e,t[n],e.theme.modularCssLayers?`theme`:void 0);return l(e,r)}),n&&!f&&o.push(function(e){let t=e.theme?.components?.[n]?.variants;return t?_o(e,t,[],e.theme.modularCssLayers?`theme`:void 0):null}),p||o.push(Ka),Array.isArray(i[0])){let e=i.shift(),t=Array(r.length).fill(``),n=Array(o.length).fill(``),a;a=[...t,...e,...n],a.raw=[...t,...e.raw,...n],r.unshift(a)}let s=[...r,...i,...o],c=h(...s);return e.muiName&&(c.muiName=e.muiName),c};return h.withConfig&&(_.withConfig=h.withConfig),_}}function yo(e){return typeof e==`string`&&e.charCodeAt(0)>96}function bo(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}var xo=vo();function So(e,t,n=!1){let r={...t};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let a=i;if(a===`components`||a===`slots`)r[a]={...e[a],...r[a]};else if(a===`componentsProps`||a===`slotProps`){let i=e[a],o=t[a];if(!o)r[a]=i||{};else if(!i)r[a]=o;else{r[a]={...o};for(let e in i)if(Object.prototype.hasOwnProperty.call(i,e)){let t=e,s=i[t],c=o[t];typeof s==`function`||typeof c==`function`?r[a][t]=(...e)=>So((typeof s==`function`?s(...e):s)??{},(typeof c==`function`?c(...e):c)??{},n):r[a][t]=So(s??{},c??{},n)}}}else a===`className`&&n&&t.className!==void 0?r.className=U(e?.className,t?.className):a===`style`&&n&&t.style?r.style={...e?.style,...t?.style}:r[a]===void 0&&(r[a]=e[a])}return r}function Co(e){let{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:So(t.components[n].defaultProps,r)}function wo(e){let{props:t,name:n,defaultTheme:r,themeId:i}=e,a=eo(r);return i&&(a=a[i]||a),Co({theme:a,name:n,props:t})}var To=typeof window<`u`?z.useLayoutEffect:z.useEffect;function Eo(e,t,n,r,i){let[a,o]=z.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return To(()=>{if(!n)return;let t=n(e),r=()=>{o(t.matches)};return r(),t.addEventListener(`change`,r),()=>{t.removeEventListener(`change`,r)}},[e,n]),a}var Do={...z}.useSyncExternalStore;function Oo(e,t,n,r,i){let a=z.useCallback(()=>t,[t]),o=z.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){let{matches:t}=r(e);return()=>t}return a},[a,e,r,i,n]),[s,c]=z.useMemo(()=>{if(n===null)return[a,()=>()=>{}];let t=n(e);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[a,n,e]);return Do(c,s,o)}function ko(e={}){let{themeId:t}=e;return function(e,n={}){let r=Qa();r&&t&&(r=r[t]||r);let i=typeof window<`u`&&window.matchMedia!==void 0?window.matchMedia:null,{defaultMatches:a=!1,matchMedia:o,ssrMatchMedia:s=null,noSsr:c=!1}=Co({name:`MuiUseMediaQuery`,props:n,theme:r}),l=z.useMemo(()=>o===void 0?i===null?null:i.bind(window):o,[o,i]),u=typeof e==`function`?e(r):e;return u=u.replace(/^@media( ?)/m,``),u.includes(`print`)&&console.warn("MUI: You have provided a `print` query to the `useMediaQuery` hook.\nUsing the print media query to modify print styles can lead to unexpected results.\nConsider using the `displayPrint` field in the `sx` prop instead.\nMore information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."),(Do===void 0?Eo:Oo)(u,a,l,s,c)}}ko();function Ao(e,t=-(2**53-1),n=2**53-1){return Math.max(t,Math.min(e,n))}function jo(e,t=0,n=1){return Ao(e,t,n)}function Mo(e){e=e.slice(1);let t=RegExp(`.{1,${e.length>=6?2:1}}`,`g`),n=e.match(t);return n&&n[0].length===1&&(n=n.map(e=>e+e)),n?`rgb${n.length===4?`a`:``}(${n.map((e,t)=>t<3?parseInt(e,16):Math.round(parseInt(e,16)/255*1e3)/1e3).join(`, `)})`:``}function No(e){if(e.type)return e;if(e.charAt(0)===`#`)return No(Mo(e));let t=e.indexOf(`(`),n=e.substring(0,t);if(![`rgb`,`rgba`,`hsl`,`hsla`,`color`].includes(n))throw Error(Jt(9,e));let r=e.substring(t+1,e.length-1),i;if(n===`color`){if(r=r.split(` `),i=r.shift(),r.length===4&&r[3].charAt(0)===`/`&&(r[3]=r[3].slice(1)),![`srgb`,`display-p3`,`a98-rgb`,`prophoto-rgb`,`rec-2020`].includes(i))throw Error(Jt(10,i))}else r=r.split(`,`);return r=r.map(e=>parseFloat(e)),{type:n,values:r,colorSpace:i}}var Po=e=>{let t=No(e);return t.values.slice(0,3).map((e,n)=>t.type.includes(`hsl`)&&n!==0?`${e}%`:e).join(` `)},Fo=(e,t)=>{try{return Po(e)}catch{return e}};function Io(e){let{type:t,colorSpace:n}=e,{values:r}=e;return t.includes(`rgb`)?r=r.map((e,t)=>t<3?parseInt(e,10):e):t.includes(`hsl`)&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),r=t.includes(`color`)?`${n} ${r.join(` `)}`:`${r.join(`, `)}`,`${t}(${r})`}function Lo(e){e=No(e);let{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),o=(e,t=(e+n/30)%12)=>i-a*Math.max(Math.min(t-3,9-t,1),-1),s=`rgb`,c=[Math.round(o(0)*255),Math.round(o(8)*255),Math.round(o(4)*255)];return e.type===`hsla`&&(s+=`a`,c.push(t[3])),Io({type:s,values:c})}function Ro(e){e=No(e);let t=e.type===`hsl`||e.type===`hsla`?No(Lo(e)).values:e.values;return t=t.map(t=>(e.type!==`color`&&(t/=255),t<=.03928?t/12.92:((t+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zo(e,t){let n=Ro(e),r=Ro(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Bo(e,t){return e=No(e),t=jo(t),(e.type===`rgb`||e.type===`hsl`)&&(e.type+=`a`),e.type===`color`?e.values[3]=`/${t}`:e.values[3]=t,Io(e)}function Vo(e,t,n){try{return Bo(e,t)}catch{return e}}function Ho(e,t){if(e=No(e),t=jo(t),e.type.includes(`hsl`))e.values[2]*=1-t;else if(e.type.includes(`rgb`)||e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Io(e)}function Uo(e,t,n){try{return Ho(e,t)}catch{return e}}function Wo(e,t){if(e=No(e),t=jo(t),e.type.includes(`hsl`))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes(`rgb`))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes(`color`))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Io(e)}function Go(e,t,n){try{return Wo(e,t)}catch{return e}}function Ko(e,t=.15){return Ro(e)>.5?Ho(e,t):Wo(e,t)}function qo(e,t,n){try{return Ko(e,t)}catch{return e}}var Jo=z.createContext(null);function Yo(){return z.useContext(Jo)}var Xo=typeof Symbol==`function`&&Symbol.for?Symbol.for(`mui.nested`):`__THEME_NESTED__`;function Zo(e,t){return typeof t==`function`?t(e):{...e,...t}}function Qo(e){let{children:t,theme:n}=e,r=Yo(),i=z.useMemo(()=>{let e=r===null?{...n}:Zo(r,n);return e!=null&&(e[Xo]=r!==null),e},[n,r]);return(0,H.jsx)(Jo.Provider,{value:i,children:t})}var $o=z.createContext(void 0);function es({value:e,...t}){return(0,H.jsx)($o.Provider,{value:e??!0,...t})}var ts=()=>z.useContext($o)??!1,ns=z.createContext(void 0);function rs({value:e,children:t}){return(0,H.jsx)(ns.Provider,{value:e,children:t})}function is(e){let{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;let i=t.components[n];return i.defaultProps?So(i.defaultProps,r,t.components.mergeClassNameAndStyle):!i.styleOverrides&&!i.variants?So(i,r,t.components.mergeClassNameAndStyle):r}function as({props:e,name:t}){return is({props:e,name:t,theme:{components:z.useContext(ns)}})}var os=0;function ss(e){let[t,n]=z.useState(e),r=e||t;return z.useEffect(()=>{t??(os+=1,n(`mui-${os}`))},[t]),r}var cs={...z}.useId;function ls(e){if(cs!==void 0){let t=cs();return e??t}return ss(e)}function us(e){let t=Qa(),n=ls()||``,{modularCssLayers:r}=e,i=`mui.global, mui.components, mui.theme, mui.custom, mui.sx`;return i=!r||t!==null?``:typeof r==`string`?r.replace(/mui(?!\.)/g,i):`@layer ${i};`,To(()=>{let e=document.querySelector(`head`);if(!e)return;let t=e.firstChild;if(i){if(t&&t.hasAttribute?.(`data-mui-layer-order`)&&t.getAttribute(`data-mui-layer-order`)===n)return;let r=document.createElement(`style`);r.setAttribute(`data-mui-layer-order`,n),r.textContent=i,e.prepend(r)}else e.querySelector(`style[data-mui-layer-order="${n}"]`)?.remove()},[i,n]),i?(0,H.jsx)(no,{styles:i}):null}var ds={};function fs(e,t,n,r=!1){return z.useMemo(()=>{let i=e&&t[e]||t;if(typeof n==`function`){let a=n(i),o=e?{...t,[e]:a}:a;return r?()=>o:o}return e?{...t,[e]:n}:{...t,...n}},[e,t,n,r])}function ps(e){let{children:t,theme:n,themeId:r}=e,i=Qa(ds),a=Yo()||ds,o=fs(r,i,n),s=fs(r,a,n,!0),c=(r?o[r]:o).direction===`rtl`,l=us(o);return(0,H.jsx)(Qo,{theme:s,children:(0,H.jsx)(Lr.Provider,{value:o,children:(0,H.jsx)(es,{value:c,children:(0,H.jsxs)(rs,{value:r?o[r].components:o.components,children:[l,t]})})})})}var ms={theme:void 0};function hs(e){let t,n;return function(r){let i=t;return(i===void 0||r.theme!==n)&&(ms.theme=r.theme,i=lo(e(ms)),t=i,n=r.theme),i}}var gs=`mode`,_s=`color-scheme`,vs=`data-color-scheme`;({...z}).useSyncExternalStore;function ys(e){return JSON.stringify(e).replace(/</g,`\\u003c`).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}function bs(e,t){let n=e.split(`%s`),r=[];for(let e=0;e<n.length;e+=1)e>0&&r.push(t),n[e]&&r.push(ys(n[e]));return r.join(` + `)||`""`}function xs(e){let{defaultMode:t=`system`,defaultLightColorScheme:n=`light`,defaultDarkColorScheme:r=`dark`,modeStorageKey:i=gs,colorSchemeStorageKey:a=_s,attribute:o=vs,colorSchemeNode:s=`document.documentElement`,nonce:c}=e||{},l=``,u=o;if(o===`class`&&(u=`.%s`),o===`data`&&(u=`[data-%s]`),u.startsWith(`.`)){let e=u.substring(1);l+=`${s}.classList.remove(${bs(e,`light`)}, ${bs(e,`dark`)});
|
|
10
|
+
${s}.classList.add(${bs(e,`colorScheme`)});`}let d=u.match(/\[([^[\]]+)\]/);if(d){let e=d[1].indexOf(`=`),t=e===-1?d[1]:d[1].slice(0,e),n=e===-1?void 0:d[1].slice(e+1);n||(l+=`${s}.removeAttribute(${bs(t,`light`)});
|
|
11
|
+
${s}.removeAttribute(${bs(t,`dark`)});`);let r=n?bs(n.replace(/^(['"])(.*)\1$/,`$2`),`colorScheme`):`""`;l+=`
|
|
12
|
+
${s}.setAttribute(${bs(t,`colorScheme`)}, ${r});`}else u.startsWith(`.`)||(l+=`${s}.setAttribute(${ys(u)}, colorScheme);`);return(0,H.jsx)(`script`,{suppressHydrationWarning:!0,nonce:typeof window>`u`?c:``,dangerouslySetInnerHTML:{__html:`(function() {
|
|
13
|
+
try {
|
|
14
|
+
let colorScheme = '';
|
|
15
|
+
const mode = localStorage.getItem(${ys(i)}) || ${ys(t)};
|
|
16
|
+
const dark = localStorage.getItem(${ys(`${a}-dark`)}) || ${ys(r)};
|
|
17
|
+
const light = localStorage.getItem(${ys(`${a}-light`)}) || ${ys(n)};
|
|
18
|
+
if (mode === 'system') {
|
|
19
|
+
// handle system mode
|
|
20
|
+
const mql = window.matchMedia('(prefers-color-scheme: dark)');
|
|
21
|
+
if (mql.matches) {
|
|
22
|
+
colorScheme = dark
|
|
23
|
+
} else {
|
|
24
|
+
colorScheme = light
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
if (mode === 'light') {
|
|
28
|
+
colorScheme = light;
|
|
29
|
+
}
|
|
30
|
+
if (mode === 'dark') {
|
|
31
|
+
colorScheme = dark;
|
|
32
|
+
}
|
|
33
|
+
if (colorScheme) {
|
|
34
|
+
${l}
|
|
35
|
+
}
|
|
36
|
+
} catch(e){}})();`}},`mui-color-scheme-init`)}function Ss(){}var Cs=({key:e,storageWindow:t})=>(!t&&typeof window<`u`&&(t=window),{get(n){if(typeof window>`u`)return;if(!t)return n;let r;try{r=t.localStorage.getItem(e)}catch{}return r||n},set:n=>{if(t)try{t.localStorage.setItem(e,n)}catch{}},subscribe:n=>{if(!t)return Ss;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}});function ws(){}function Ts(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function Es(e,t){if(e.mode===`light`||e.mode===`system`&&e.systemMode===`light`)return t(`light`);if(e.mode===`dark`||e.mode===`system`&&e.systemMode===`dark`)return t(`dark`)}function Ds(e){return Es(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function Os(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=gs,colorSchemeStorageKey:o=_s,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Cs,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=z.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=z.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=z.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=z.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:Ts(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=z.useState(l||!d);z.useEffect(()=>{v(!0)},[]);let y=Ds(h),b=z.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:Ts(r)}})},[f,t]),x=z.useCallback(e=>{e?typeof e==`string`?e&&!u.includes(e)?console.error(`\`${e}\` does not exist in \`theme.colorSchemes\`.`):g(t=>{let n={...t};return Es(t,t=>{t===`light`&&(p?.set(e),n.lightColorScheme=e),t===`dark`&&(m?.set(e),n.darkColorScheme=e)}),n}):g(t=>{let i={...t},a=e.light===null?n:e.light,o=e.dark===null?r:e.dark;return a&&(u.includes(a)?(i.lightColorScheme=a,p?.set(a)):console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`)),o&&(u.includes(o)?(i.darkColorScheme=o,m?.set(o)):console.error(`\`${o}\` does not exist in \`theme.colorSchemes\`.`)),i}):g(e=>(p?.set(n),m?.set(r),{...e,lightColorScheme:n,darkColorScheme:r}))},[u,p,m,n,r]),S=z.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=z.useRef(S);return C.current=S,z.useEffect(()=>{if(typeof window.matchMedia!=`function`||!d)return;let e=(...e)=>C.current(...e),t=window.matchMedia(`(prefers-color-scheme: dark)`);return t.addListener(e),e(t),()=>{t.removeListener(e)}},[d]),z.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||ws,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||ws,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||ws;return()=>{e(),n(),r()}}},[x,b,u,t,s,d,f,p,m]),{...h,mode:_?h.mode:void 0,systemMode:_?h.systemMode:void 0,colorScheme:_?y:void 0,setMode:b,setColorScheme:x}}var ks=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`;function As(e){let{themeId:t,theme:n={},modeStorageKey:r=gs,colorSchemeStorageKey:i=_s,disableTransitionOnChange:a=!1,defaultColorScheme:o,resolveTheme:s}=e,c={allColorSchemes:[],colorScheme:void 0,darkColorScheme:void 0,lightColorScheme:void 0,mode:void 0,setColorScheme:()=>{},setMode:()=>{},systemMode:void 0},l=z.createContext(void 0),u=()=>z.useContext(l)||c,d={},f={};function p(e){let{children:c,theme:u,modeStorageKey:p=r,colorSchemeStorageKey:m=i,disableTransitionOnChange:h=a,storageManager:g,storageWindow:_=typeof window>`u`?void 0:window,documentNode:v=typeof document>`u`?void 0:document,colorSchemeNode:y=typeof document>`u`?void 0:document.documentElement,disableNestedContext:b=!1,disableStyleSheetGeneration:x=!1,defaultMode:S=`system`,forceThemeRerender:C=!1,noSsr:w}=e,T=z.useRef(!1),E=Yo(),D=z.useContext(l),O=!!D&&!b,k=z.useMemo(()=>u||(typeof n==`function`?n():n),[u]),ee=k[t],A=ee||k,{colorSchemes:j=d,components:M=f,cssVarPrefix:te}=A,ne=Object.keys(j).filter(e=>!!j[e]).join(`,`),N=z.useMemo(()=>ne.split(`,`),[ne]),P=typeof o==`string`?o:o.light,re=typeof o==`string`?o:o.dark,{mode:F,setMode:I,systemMode:ie,lightColorScheme:L,darkColorScheme:R,colorScheme:ae,setColorScheme:oe}=Os({supportedColorSchemes:N,defaultLightColorScheme:P,defaultDarkColorScheme:re,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:j[P]&&j[re]?S:j[A.defaultColorScheme]?.palette?.mode||A.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),se=F,ce=ae;O&&(se=D.mode,ce=D.colorScheme);let B=ce||A.defaultColorScheme;A.vars&&!C&&(B=A.defaultColorScheme);let le=z.useMemo(()=>{let e=A.generateThemeVars?.()||A.vars,t={...A,components:M,colorSchemes:j,cssVarPrefix:te,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),B){let e=j[B];e&&typeof e==`object`&&Object.keys(e).forEach(n=>{e[n]&&typeof e[n]==`object`?t[n]={...t[n],...e[n]}:t[n]=e[n]})}return s?s(t):t},[A,B,M,j,te]),V=A.colorSchemeSelector;To(()=>{if(ce&&y&&V&&V!==`media`){let e=V,t=V;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...N.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,ce));else{let e=t.replace(`%s`,ce).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||N.forEach(e=>{y.removeAttribute(t.replace(ce,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,ce)}}},[ce,V,y,N]),z.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(ks)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ce,h,v]),z.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let ue=z.useMemo(()=>({allColorSchemes:N,colorScheme:ce,darkColorScheme:R,lightColorScheme:L,mode:se,setColorScheme:oe,setMode:I,systemMode:ie}),[N,ce,R,L,se,oe,I,ie,le.colorSchemeSelector]),de=!0;(x||A.cssVariables===!1||O&&E?.cssVarPrefix===te)&&(de=!1);let fe=(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(ps,{themeId:ee?t:void 0,theme:le,children:c}),de&&(0,H.jsx)(ai,{styles:le.generateStyleSheets?.()||[]})]});return O?fe:(0,H.jsx)(l.Provider,{value:ue,children:fe})}let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>xs({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}function js(e=``){function t(...n){if(!n.length)return``;let r=n[0];return typeof r==`string`&&!r.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:``}${r}${t(...n.slice(1))})`:`, ${r}`}return(n,...r)=>`var(--${e?`${e}-`:``}${n}${t(...r)})`}var Ms=new Set([`__proto__`,`constructor`,`prototype`]),Ns=(e,t,n,r=[])=>{let i=e;for(let e=0;e<t.length;e+=1){let a=t[e];if(Ms.has(a))break;e===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i==`object`&&(i[a]=n):i&&typeof i==`object`&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])}},Ps=(e,t,n)=>{function r(e,i=[],a=[]){Object.entries(e).forEach(([e,o])=>{(!n||n&&!n([...i,e]))&&o!=null&&(typeof o==`object`&&Object.keys(o).length>0?r(o,[...i,e],Array.isArray(o)?[...a,e]:a):t([...i,e],o,a))})}r(e)},Fs=(e,t)=>typeof t==`number`?[`lineHeight`,`fontWeight`,`opacity`,`zIndex`].some(t=>e.includes(t))||e[e.length-1].toLowerCase().includes(`opacity`)?t:`${t}px`:t;function Is(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return Ps(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=Fs(e,t);Object.assign(i,{[r]:c}),Ns(a,e,`var(${r})`,s),Ns(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}function Ls(e,t={}){let{getSelector:n=_,disableCssColorScheme:r,colorSchemeSelector:i,enableContrastVars:a}=t,{colorSchemes:o={},components:s,defaultColorScheme:c=`light`,...l}=e,{vars:u,css:d,varsWithDefaults:f}=Is(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=Is(n,t);p=mi(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=Is(h,t);p=mi(p,r),m[c]={css:e,vars:n}}function _(t,n){let r=i;if(i===`class`&&(r=`.%s`),i===`data`&&(r=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(r=`[${i}="%s"]`),t){if(r===`media`)return e.defaultColorScheme===t?`:root`:{[`@media (prefers-color-scheme: ${o[t]?.palette?.mode||t})`]:{":root":n}};if(r)return e.defaultColorScheme===t?`:root, ${r.replace(`%s`,String(t))}`:r.replace(`%s`,String(t))}return`:root`}return{vars:p,generateThemeVars:()=>{let e={...u};return Object.entries(m).forEach(([,{vars:t}])=>{e=mi(e,t)}),e},generateStyleSheets:()=>{let t=[],i=e.defaultColorScheme||`light`;function s(e,n){Object.keys(n).length&&t.push(typeof e==`string`?{[e]:{...n}}:e)}s(n(void 0,{...d}),d);let{[i]:c,...l}=m;if(c){let{css:e}=c,t=o[i]?.palette?.mode,a=!r&&t?{colorScheme:t,...e}:{...e};s(n(i,{...a}),a)}return Object.entries(l).forEach(([e,{css:t}])=>{let i=o[e]?.palette?.mode,a=!r&&i?{colorScheme:i,...t}:{...t};s(n(e,{...a}),a)}),a&&t.push({":root":{"--__l-threshold":`0.7`,"--__l":`clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)`,"--__a":`clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)`}}),t}}}function Rs(e){return function(t){return e===`media`?`@media (prefers-color-scheme: ${t})`:e?e.startsWith(`data-`)&&!e.includes(`%s`)?`[${e}="${t}"] &`:e===`class`?`.${t} &`:e===`data`?`[data-${t}] &`:`${e.replace(`%s`,t)} &`:`&`}}function G(e,t,n=void 0){let r={};for(let i in e){let a=e[i],o=``,s=!0;for(let e=0;e<a.length;e+=1){let r=a[e];r&&(o+=(s===!0?``:` `)+t(r),s=!1,n&&n[r]&&(o+=` `+n[r]))}r[i]=o}return r}function zs(e,t){return z.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Bs=(e,t)=>e.filter(e=>t.includes(e)),Vs=(e,t,n)=>{let r=e.keys[0];Array.isArray(t)?t.forEach((t,r)=>{n((t,n)=>{r<=e.keys.length-1&&(r===0?Object.assign(t,n):t[e.up(e.keys[r])]=n)},t)}):t&&typeof t==`object`?(Object.keys(t).length>e.keys.length?e.keys:Bs(e.keys,Object.keys(t))).forEach(i=>{if(e.keys.includes(i)){let a=t[i];a!==void 0&&n((t,n)=>{r===i?Object.assign(t,n):t[e.up(i)]=n},a)}}):(typeof t==`number`||typeof t==`string`)&&n((e,t)=>{Object.assign(e,t)},t)};function Hs(e){return`--Grid-${e}Spacing`}function Us(e){return`--Grid-parent-${e}Spacing`}var Ws=`--Grid-columns`,Gs=`--Grid-parent-columns`,Ks=({theme:e,ownerState:t})=>{let n={};return Vs(e.breakpoints,t.size,(e,t)=>{let r={};t===`grow`&&(r={flexBasis:0,flexGrow:1,maxWidth:`100%`}),t===`auto`&&(r={flexBasis:`auto`,flexGrow:0,flexShrink:0,maxWidth:`none`,width:`auto`}),typeof t==`number`&&(r={flexGrow:0,flexBasis:`auto`,width:`calc(100% * ${t} / var(${Gs}) - (var(${Gs}) - ${t}) * (var(${Us(`column`)}) / var(${Gs})))`}),e(n,r)}),n},qs=({theme:e,ownerState:t})=>{let n={};return Vs(e.breakpoints,t.offset,(e,t)=>{let r={};t===`auto`&&(r={marginLeft:`auto`}),typeof t==`number`&&(r={marginLeft:t===0?`0px`:`calc(100% * ${t} / var(${Gs}) + var(${Us(`column`)}) * ${t} / var(${Gs}))`}),e(n,r)}),n},Js=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[Ws]:12};return Vs(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[Ws]:r,"> *":{[Gs]:r}})}),n},Ys=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Vs(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Hs(`row`)]:i,"> *":{[Us(`row`)]:i}})}),n},Xs=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Vs(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Hs(`column`)]:i,"> *":{[Us(`column`)]:i}})}),n},Zs=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Vs(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},Qs=({ownerState:e})=>({minWidth:0,boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,...e.wrap&&e.wrap!==`wrap`&&{flexWrap:e.wrap},gap:`var(${Hs(`row`)}) var(${Hs(`column`)})`}}),$s=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},ec=(e,t=`xs`)=>{function n(e){return e===void 0?!1:typeof e==`string`&&!Number.isNaN(Number(e))||typeof e==`number`&&e>0}if(n(e))return[`spacing-${t}-${String(e)}`];if(typeof e==`object`&&!Array.isArray(e)){let t=[];return Object.entries(e).forEach(([e,r])=>{n(r)&&t.push(`spacing-${e}-${String(r)}`)}),t}return[]},tc=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`],nc=Xa(),rc=xo(`div`,{name:`MuiGrid`,slot:`Root`});function ic(e){return wo({props:e,name:`MuiGrid`,defaultTheme:nc})}function ac(e={}){let{createStyledComponent:t=rc,useThemeProps:n=ic,useTheme:r=eo,componentName:i=`MuiGrid`}=e,a=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:o,size:s}=e;return G({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...tc(r),...$s(s),...n?ec(a,t.breakpoints.keys[0]):[]]},e=>W(i,e),{})};function o(e,t,n=()=>!0){let r={};return e===null||(Array.isArray(e)?e.forEach((e,i)=>{e!==null&&n(e)&&t.keys[i]&&(r[t.keys[i]]=e)}):typeof e==`object`?Object.keys(e).forEach(t=>{let i=e[t];i!=null&&n(i)&&(r[t]=i)}):r[t.keys[0]]=e),r}let s=t(Js,Xs,Ys,Ks,Zs,Qs,qs),c=z.forwardRef(function(e,t){let i=r(),c=n(e),{className:l,children:u,columns:d=12,container:f=!1,component:p=`div`,direction:m=`row`,wrap:h=`wrap`,size:g={},offset:_={},spacing:v=0,rowSpacing:y=v,columnSpacing:b=v,unstable_level:x=0,...S}=c,C=o(g,i.breakpoints,e=>e!==!1),w=o(_,i.breakpoints),T=e.columns??(x?void 0:d),E=e.spacing??(x?void 0:v),D=e.rowSpacing??e.spacing??(x?void 0:y),O=e.columnSpacing??e.spacing??(x?void 0:b),k={...c,level:x,columns:T,container:f,direction:m,wrap:h,spacing:E,rowSpacing:D,columnSpacing:O,size:C,offset:w},ee=a(k,i);return(0,H.jsx)(s,{ref:t,as:p,ownerState:k,className:U(ee.root,l),...S,children:z.Children.map(u,e=>z.isValidElement(e)&&zs(e,[`Grid`])&&f&&e.props.container?z.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return c.muiName=`Grid`,c}var oc=Xa(),sc=xo(`div`,{name:`MuiStack`,slot:`Root`});function cc(e){return wo({props:e,name:`MuiStack`,defaultTheme:oc})}function lc(e,t){let n=z.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),i<n.length-1&&e.push(z.cloneElement(t,{key:`separator-${i}`})),e),[])}var uc=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],dc=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...Ri({theme:t},Gi({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=oa(t),i=Object.keys(t.breakpoints.values).reduce((t,n)=>((typeof e.spacing==`object`&&e.spacing[n]!=null||typeof e.direction==`object`&&e.direction[n]!=null)&&(t[n]=!0),t),{}),a=Gi({values:e.direction,base:i}),o=Gi({values:e.spacing,base:i});typeof a==`object`&&Object.keys(a).forEach((e,t,n)=>{if(!a[e]){let r=t>0?a[n[t-1]]:`column`;a[e]=r}}),n=mi(n,Ri({theme:t},o,(t,n)=>e.useFlexGap?{gap:sa(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${uc(n?a[n]:e.direction)}`]:sa(r,t)}}))}return n=Ui(t.breakpoints,n),n};function fc(e={}){let{createStyledComponent:t=sc,useThemeProps:n=cc,componentName:r=`MuiStack`}=e,i=()=>G({root:[`root`]},e=>W(r,e),{}),a=t(dc);return z.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=n(e),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,H.jsx)(a,{as:r,ownerState:p,ref:t,className:U(m.root,u),...f,children:c?lc(l,c):l})})}function pc(){return{text:{primary:`rgba(0, 0, 0, 0.87)`,secondary:`rgba(0, 0, 0, 0.6)`,disabled:`rgba(0, 0, 0, 0.38)`},divider:`rgba(0, 0, 0, 0.12)`,background:{paper:zt.white,default:zt.white},action:{active:`rgba(0, 0, 0, 0.54)`,hover:`rgba(0, 0, 0, 0.04)`,hoverOpacity:.04,selected:`rgba(0, 0, 0, 0.08)`,selectedOpacity:.08,disabled:`rgba(0, 0, 0, 0.26)`,disabledBackground:`rgba(0, 0, 0, 0.12)`,disabledOpacity:.38,focus:`rgba(0, 0, 0, 0.12)`,focusOpacity:.12,activatedOpacity:.12}}}var mc=pc();function hc(){return{text:{primary:zt.white,secondary:`rgba(255, 255, 255, 0.7)`,disabled:`rgba(255, 255, 255, 0.5)`,icon:`rgba(255, 255, 255, 0.5)`},divider:`rgba(255, 255, 255, 0.12)`,background:{paper:`#121212`,default:`#121212`},action:{active:zt.white,hover:`rgba(255, 255, 255, 0.08)`,hoverOpacity:.08,selected:`rgba(255, 255, 255, 0.16)`,selectedOpacity:.16,disabled:`rgba(255, 255, 255, 0.3)`,disabledBackground:`rgba(255, 255, 255, 0.12)`,disabledOpacity:.38,focus:`rgba(255, 255, 255, 0.12)`,focusOpacity:.12,activatedOpacity:.24}}}var gc=hc();function _c(e,t,n,r){let i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t===`light`?e.light=Wo(e.main,i):t===`dark`&&(e.dark=Ho(e.main,a)))}function vc(e,t,n,r,i){let a=i.light||i,o=i.dark||i*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n===`light`?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(a*100).toFixed(0)}%)`:n===`dark`&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(o*100).toFixed(0)}%)`))}function yc(e=`light`){return e===`dark`?{main:Ht[200],light:Ht[50],dark:Ht[400]}:{main:Ht[700],light:Ht[400],dark:Ht[800]}}function bc(e=`light`){return e===`dark`?{main:Vt[200],light:Vt[50],dark:Vt[400]}:{main:Vt[500],light:Vt[300],dark:Vt[700]}}function xc(e=`light`){return e===`dark`?{main:Bt[500],light:Bt[300],dark:Bt[700]}:{main:Bt[700],light:Bt[400],dark:Bt[800]}}function Sc(e=`light`){return e===`dark`?{main:Ut[400],light:Ut[300],dark:Ut[700]}:{main:Ut[700],light:Ut[500],dark:Ut[900]}}function Cc(e=`light`){return e===`dark`?{main:Wt[400],light:Wt[300],dark:Wt[700]}:{main:Wt[800],light:Wt[500],dark:Wt[900]}}function wc(e=`light`){return e===`dark`?{main:Gt[400],light:Gt[300],dark:Gt[700]}:{main:`#ed6c02`,light:Gt[500],dark:Gt[900]}}function Tc(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Ec(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||yc(t),s=e.secondary||bc(t),c=e.error||xc(t),l=e.info||Sc(t),u=e.success||Cc(t),d=e.warning||wc(t);function f(e){return i?Tc(e):zo(e,gc.text.primary)>=n?gc.text.primary:mc.text.primary}let p=({color:e,name:t,mainShade:n=500,lightShade:a=300,darkShade:o=700})=>{if(e={...e},!e.main&&e[n]&&(e.main=e[n]),!e.hasOwnProperty(`main`))throw Error(Jt(11,t?` (${t})`:``,n));if(typeof e.main!=`string`)throw Error(Jt(12,t?` (${t})`:``,JSON.stringify(e.main)));return i?(vc(i,e,`light`,a,r),vc(i,e,`dark`,o,r)):(_c(e,`light`,a,r),_c(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=pc():t===`dark`&&(m=hc()),mi({common:{...zt},mode:t,primary:p({color:o,name:`primary`}),secondary:p({color:s,name:`secondary`,mainShade:`A400`,lightShade:`A200`,darkShade:`A700`}),error:p({color:c,name:`error`}),warning:p({color:d,name:`warning`}),info:p({color:l,name:`info`}),success:p({color:u,name:`success`}),grey:qt,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var Dc=`--_focusVisible-offset`,Oc=`--_focusVisible-behavior`,kc=`--_focusVisible-shadow`,Ac=`var(${Dc}, 1)`,jc=`var(${Oc}, )`,Mc={[Dc]:1,[Oc]:`initial`};function Nc(e){return{[kc]:e}}function Pc(e){return{[Dc]:-e,[Oc]:`inset`}}function Fc(e,t){return t.reduce((e,t)=>t&&`focusVisible`in t?mi(e,{focusVisible:t.focusVisible}):e,{focusVisible:e}).focusVisible}function Ic(e){return typeof e==`object`&&!!e&&typeof e.outlineOffset==`string`&&e.outlineOffset.includes(Dc)}function Lc(e,t){return Rc({outlineStyle:`solid`,outlineColor:t,outlineWidth:2,outlineOffset:2,boxShadow:`var(${kc}, 0 0)`,...e===!0?null:e})}function Rc(e){let t=e.outlineOffset??0;typeof t==`string`&&t.includes(Dc)||(e.outlineOffset=`calc(${Ac} * ${typeof t==`number`?`${t}px`:t})`);let n=new Set([`none`,`initial`,`inherit`,`unset`,`revert`,`revert-layer`]);return typeof e.boxShadow!=`string`||n.has(e.boxShadow.trim().toLowerCase())||/\binset\b/.test(e.boxShadow)||e.boxShadow.includes(Oc)||(e.boxShadow=`${jc} ${e.boxShadow}`),e}function zc(e){let t={};return Object.entries(e).forEach(e=>{let[n,r]=e;typeof r==`object`&&(t[n]=`${r.fontStyle?`${r.fontStyle} `:``}${r.fontVariant?`${r.fontVariant} `:``}${r.fontWeight?`${r.fontWeight} `:``}${r.fontStretch?`${r.fontStretch} `:``}${r.fontSize||``}${r.lineHeight?`/${r.lineHeight} `:``}${r.fontFamily||``}`)}),t}function Bc(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}function Vc(e){return Math.round(e*1e5)/1e5}var Hc={textTransform:`uppercase`},Uc=`"Roboto", "Helvetica", "Arial", sans-serif`;function Wc(e,t){let{fontFamily:n=Uc,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:o=500,fontWeightBold:s=700,htmlFontSize:c=16,allVariants:l,pxToRem:u,...d}=typeof t==`function`?t(e):t,f=r/14,p=u||(e=>`${e/c*f}rem`),m=(e,t,r,i,a)=>({fontFamily:n,fontWeight:e,fontSize:p(t),lineHeight:r,...n===Uc?{letterSpacing:`${Vc(i/t)}em`}:{},...a,...l});return mi({htmlFontSize:c,pxToRem:p,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:o,fontWeightBold:s,h1:m(i,96,1.167,-1.5),h2:m(i,60,1.2,-.5),h3:m(a,48,1.167,0),h4:m(a,34,1.235,.25),h5:m(a,24,1.334,0),h6:m(o,20,1.6,.15),subtitle1:m(a,16,1.75,.15),subtitle2:m(o,14,1.57,.1),body1:m(a,16,1.5,.15),body2:m(a,14,1.43,.15),button:m(o,14,1.75,.4,Hc),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,Hc),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var Gc=.2,Kc=.14,qc=.12;function Jc(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Gc})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Kc})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${qc})`].join(`,`)}var Yc=[`none`,Jc(0,2,1,-1,0,1,1,0,0,1,3,0),Jc(0,3,1,-2,0,2,2,0,0,1,5,0),Jc(0,3,3,-2,0,3,4,0,0,1,8,0),Jc(0,2,4,-1,0,4,5,0,0,1,10,0),Jc(0,3,5,-1,0,5,8,0,0,1,14,0),Jc(0,3,5,-1,0,6,10,0,0,1,18,0),Jc(0,4,5,-2,0,7,10,1,0,2,16,1),Jc(0,5,5,-3,0,8,10,1,0,3,14,2),Jc(0,5,6,-3,0,9,12,1,0,3,16,2),Jc(0,6,6,-3,0,10,14,1,0,4,18,3),Jc(0,6,7,-4,0,11,15,1,0,4,20,3),Jc(0,7,8,-4,0,12,17,2,0,5,22,4),Jc(0,7,8,-4,0,13,19,2,0,5,24,4),Jc(0,7,9,-4,0,14,21,2,0,5,26,4),Jc(0,8,9,-5,0,15,22,2,0,6,28,5),Jc(0,8,10,-5,0,16,24,2,0,6,30,5),Jc(0,8,11,-5,0,17,26,2,0,6,32,5),Jc(0,9,11,-5,0,18,28,2,0,7,34,6),Jc(0,9,12,-6,0,19,29,2,0,7,36,6),Jc(0,10,13,-6,0,20,31,3,0,8,38,7),Jc(0,10,13,-6,0,21,33,3,0,8,40,7),Jc(0,10,14,-6,0,22,35,3,0,8,42,7),Jc(0,11,14,-7,0,23,36,3,0,9,44,8),Jc(0,11,15,-7,0,24,38,3,0,9,46,8)],Xc=[`all`],Zc={},Qc={easeInOut:`cubic-bezier(0.4, 0, 0.2, 1)`,easeOut:`cubic-bezier(0.0, 0, 0.2, 1)`,easeIn:`cubic-bezier(0.4, 0, 1, 1)`,sharp:`cubic-bezier(0.4, 0, 0.6, 1)`},$c={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function el(e){return`${Math.round(e)}ms`}function tl(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function nl(e){let t={...e};delete t.reducedMotion;let n={...Qc,...t.easing},r={...$c,...t.duration};return{getAutoHeightDuration:tl,create:t.create??((e=Xc,t=Zc)=>{let{duration:i=r.standard,easing:a=n.easeInOut,delay:o=0,...s}=t;return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:el(i)} ${a} ${typeof o==`string`?o:el(o)}`).join(`,`)}),...t,easing:n,duration:r}}var rl={};function il(e=rl){return{reducedMotion:`never`,...e}}var al={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ol(e){return fi(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function sl(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r<t.length;r++){let[i,a]=t[r];!ol(a)||i.startsWith(`unstable_`)||i.startsWith(`internal_`)?delete e[i]:fi(a)&&(e[i]={...a},n(e[i]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
37
|
+
|
|
38
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
39
|
+
|
|
40
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
41
|
+
theme.motion = { reducedMotion: 'never', ...theme.motion };
|
|
42
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
43
|
+
|
|
44
|
+
export default theme;`}function cl(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}var ll=e=>{if(!Number.isNaN(+e))return+e;let t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let e=0;e<t.length;e+=1)n+=+t[e];return n};function ul(e){return e.startsWith(`hsl`)?Lo(e):e}function dl(e,t,n=``){let r=n.trim();if(r&&!r.startsWith(`color(`))try{let e=Po(ul(r));if(e.split(` `).length===3&&!e.includes(`NaN`))return`var(--${t}Channel, ${e})`}catch{}return`var(--${t}Channel)`}function fl(e){Object.assign(e,{alpha(t,n){let r=this||e;if(r.colorSpace)return`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`;if(r.vars){let e=typeof n==`string`?`calc(${n})`:n;return t.startsWith(`color(`)?t.replace(/\s*(?:\/[^)]*)?\)$/,` / ${e})`):`rgba(${t.includes(`var(`)?t.replace(/var\(--([^,\s)]+)(?:,((?:[^()]|\([^()]*\))+)\)|(?:,[^)]+)?\)+)/g,dl):Fo(ul(t))} / ${e})`}return Bo(t,ll(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${cl(n)})`:Wo(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${cl(n)})`:Ho(t,n)}})}function pl(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},motion:o={},transitions:s={},typography:c={},shape:l,colorSpace:u,...d}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(Jt(22));let f=Ec({...a,colorSpace:u}),p=Xa(e),m=mi(p,{mixins:Bc(p.breakpoints,r),palette:f,shadows:Yc.slice(),typography:Wc(f,c),motion:il(o),transitions:nl(s),zIndex:{...al}});return m=mi(m,d),m=t.reduce((e,t)=>mi(e,t),m),delete m.transitions.reducedMotion,m.focusVisible!=null&&m.focusVisible!==!1&&(m.focusVisible=Lc(m.focusVisible,m.palette.primary.main)),m.unstable_sxConfig={...Ua,...d?.unstable_sxConfig},m.unstable_sx=function(e){return Ka({sx:e,theme:this})},m.toRuntimeSource=sl,fl(m),m}function ml(e){let t;return t=e<1?5.11916*e**2:4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}var hl=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=ml(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function gl(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function _l(e){return e===`dark`?hl:[]}function vl(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Ec({...t,colorSpace:i});return{palette:o,opacity:{...gl(o.mode),...n},overlays:r||_l(o.mode),...a}}function yl(e){return e[0]===`motion`||e[0]===`focusVisible`||!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]===`palette`&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}var bl=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`],xl=e=>(t,n)=>{let r=e.rootSelector||`:root`,i=e.colorSchemeSelector,a=i;if(i===`class`&&(a=`.%s`),i===`data`&&(a=`[data-%s]`),i?.startsWith(`data-`)&&!i.includes(`%s`)&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t===`dark`){let i={};return bl(e.cssVarPrefix).forEach(e=>{i[e]=n[e],delete n[e]}),a===`media`?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:i}}:a?{[a.replace(`%s`,t)]:i,[`${r}, ${a.replace(`%s`,t)}`]:n}:{[r]:{...n,...i}}}if(a&&a!==`media`)return`${r}, ${a.replace(`%s`,String(t))}`}else if(t){if(a===`media`)return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace(`%s`,String(t))}return r};function Sl(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function Cl(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:Lo(e)}function wl(e,t){`${t}Channel`in e||(e[`${t}Channel`]=Fo(Cl(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
45
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function Tl(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}var El=e=>{try{return e()}catch{}},Dl=(e=`mui`)=>js(e);function Ol(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=vl({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=pl({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...gl(a),...n?.opacity},overlays:n?.overlays||_l(a)},s}function kl(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=yl,colorSchemeSelector:c=n.light&&n.dark?`media`:void 0,rootSelector:l=`:root`,...u}=e,d=Object.keys(n)[0],f=r||(n.light&&d!==`light`?`light`:d),p=Dl(a),{[f]:m,light:h,dark:g,..._}=n,v={..._},y=m;if((f===`dark`&&!(`dark`in n)||f===`light`&&!(`light`in n))&&(y=!0),!y)throw Error(Jt(21,f));let b;o&&(b=`oklch`);let x=Ol(b,v,y,u,f);h&&!v.light&&Ol(b,v,h,void 0,`light`),g&&!v.dark&&Ol(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...zc(x.typography),...x.font},spacing:Tl(u.spacing)};Object.keys(S.colorSchemes).forEach(e=>{let t=S.colorSchemes[e].palette,n=e=>{let n=e.split(`-`),r=n[1],i=n[2];return p(e,t[r][i])};t.mode===`light`&&(K(t.common,`background`,`#fff`),K(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(K(t.common,`background`,`#000`),K(t.common,`onBackground`,`#fff`)),o||wl(t.text,`primary`);function r(e,t,n){if(b){let r;return e===Vo&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===Uo&&(r=`#000 ${(n*100).toFixed(0)}%`),e===Go&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Sl(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`Input`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){K(t.Alert,`errorColor`,r(Uo,o?p(`palette-error-light`):t.error.light,.6)),K(t.Alert,`infoColor`,r(Uo,o?p(`palette-info-light`):t.info.light,.6)),K(t.Alert,`successColor`,r(Uo,o?p(`palette-success-light`):t.success.light,.6)),K(t.Alert,`warningColor`,r(Uo,o?p(`palette-warning-light`):t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-main`)),K(t.Alert,`infoFilledBg`,n(`palette-info-main`)),K(t.Alert,`successFilledBg`,n(`palette-success-main`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),K(t.Alert,`errorFilledColor`,El(()=>t.getContrastText(t.error.main))),K(t.Alert,`infoFilledColor`,El(()=>t.getContrastText(t.info.main))),K(t.Alert,`successFilledColor`,El(()=>t.getContrastText(t.success.main))),K(t.Alert,`warningFilledColor`,El(()=>t.getContrastText(t.warning.main))),K(t.Alert,`errorStandardBg`,r(Go,o?p(`palette-error-light`):t.error.light,.9)),K(t.Alert,`infoStandardBg`,r(Go,o?p(`palette-info-light`):t.info.light,.9)),K(t.Alert,`successStandardBg`,r(Go,o?p(`palette-success-light`):t.success.light,.9)),K(t.Alert,`warningStandardBg`,r(Go,o?p(`palette-warning-light`):t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-100`)),K(t.Avatar,`defaultBg`,n(`palette-grey-400`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),K(t.Chip,`defaultBorder`,n(`palette-grey-400`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),K(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),K(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),K(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),K(t.Input,`autofillWebkitBoxShadow`,`none`),K(t.LinearProgress,`primaryBg`,r(Go,o?p(`palette-primary-main`):t.primary.main,.62)),K(t.LinearProgress,`secondaryBg`,r(Go,o?p(`palette-secondary-main`):t.secondary.main,.62)),K(t.LinearProgress,`errorBg`,r(Go,o?p(`palette-error-main`):t.error.main,.62)),K(t.LinearProgress,`infoBg`,r(Go,o?p(`palette-info-main`):t.info.main,.62)),K(t.LinearProgress,`successBg`,r(Go,o?p(`palette-success-main`):t.success.main,.62)),K(t.LinearProgress,`warningBg`,r(Go,o?p(`palette-warning-light`):t.warning.main,.62)),K(t.Skeleton,`bg`,b?r(Vo,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),K(t.Slider,`primaryTrack`,r(Go,o?p(`palette-primary-main`):t.primary.main,.62)),K(t.Slider,`secondaryTrack`,r(Go,o?p(`palette-secondary-main`):t.secondary.main,.62)),K(t.Slider,`errorTrack`,r(Go,o?p(`palette-error-main`):t.error.main,.62)),K(t.Slider,`infoTrack`,r(Go,o?p(`palette-info-main`):t.info.main,.62)),K(t.Slider,`successTrack`,r(Go,o?p(`palette-success-main`):t.success.main,.62)),K(t.Slider,`warningTrack`,r(Go,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(Uo,o?p(`palette-background-default`):t.background.default,.6825):qo(t.background.default,.8);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,El(()=>b?gc.text.primary:t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,qo(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-400`)),K(t.StepContent,`border`,n(`palette-grey-400`)),K(t.Switch,`defaultColor`,n(`palette-common-white`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),K(t.Switch,`primaryDisabledColor`,r(Go,o?p(`palette-primary-main`):t.primary.main,.62)),K(t.Switch,`secondaryDisabledColor`,r(Go,o?p(`palette-secondary-main`):t.secondary.main,.62)),K(t.Switch,`errorDisabledColor`,r(Go,o?p(`palette-error-main`):t.error.main,.62)),K(t.Switch,`infoDisabledColor`,r(Go,o?p(`palette-info-main`):t.info.main,.62)),K(t.Switch,`successDisabledColor`,r(Go,o?p(`palette-success-main`):t.success.main,.62)),K(t.Switch,`warningDisabledColor`,r(Go,o?p(`palette-warning-main`):t.warning.main,.62)),K(t.TableCell,`border`,r(Go,Vo(o?p(`palette-divider`):t.divider,1),.88)),K(t.Tooltip,`bg`,r(Vo,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){K(t.Alert,`errorColor`,r(Go,o?p(`palette-error-light`):t.error.light,.6)),K(t.Alert,`infoColor`,r(Go,o?p(`palette-info-light`):t.info.light,.6)),K(t.Alert,`successColor`,r(Go,o?p(`palette-success-light`):t.success.light,.6)),K(t.Alert,`warningColor`,r(Go,o?p(`palette-warning-light`):t.warning.light,.6)),K(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),K(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),K(t.Alert,`successFilledBg`,n(`palette-success-dark`)),K(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),K(t.Alert,`errorFilledColor`,El(()=>t.getContrastText(t.error.dark))),K(t.Alert,`infoFilledColor`,El(()=>t.getContrastText(t.info.dark))),K(t.Alert,`successFilledColor`,El(()=>t.getContrastText(t.success.dark))),K(t.Alert,`warningFilledColor`,El(()=>t.getContrastText(t.warning.dark))),K(t.Alert,`errorStandardBg`,r(Uo,o?p(`palette-error-light`):t.error.light,.9)),K(t.Alert,`infoStandardBg`,r(Uo,o?p(`palette-info-light`):t.info.light,.9)),K(t.Alert,`successStandardBg`,r(Uo,o?p(`palette-success-light`):t.success.light,.9)),K(t.Alert,`warningStandardBg`,r(Uo,o?p(`palette-warning-light`):t.warning.light,.9)),K(t.Alert,`errorIconColor`,n(`palette-error-main`)),K(t.Alert,`infoIconColor`,n(`palette-info-main`)),K(t.Alert,`successIconColor`,n(`palette-success-main`)),K(t.Alert,`warningIconColor`,n(`palette-warning-main`)),K(t.AppBar,`defaultBg`,n(`palette-grey-900`)),K(t.AppBar,`darkBg`,n(`palette-background-paper`)),K(t.AppBar,`darkColor`,n(`palette-text-primary`)),K(t.Avatar,`defaultBg`,n(`palette-grey-600`)),K(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),K(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),K(t.Chip,`defaultBorder`,n(`palette-grey-700`)),K(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),K(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),K(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),K(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),K(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),K(t.Input,`autofillWebkitBoxShadow`,`0 0 0 100px #266798 inset`),K(t.LinearProgress,`primaryBg`,r(Uo,o?p(`palette-primary-main`):t.primary.main,.5)),K(t.LinearProgress,`secondaryBg`,r(Uo,o?p(`palette-secondary-main`):t.secondary.main,.5)),K(t.LinearProgress,`errorBg`,r(Uo,o?p(`palette-error-main`):t.error.main,.5)),K(t.LinearProgress,`infoBg`,r(Uo,o?p(`palette-info-main`):t.info.main,.5)),K(t.LinearProgress,`successBg`,r(Uo,o?p(`palette-success-main`):t.success.main,.5)),K(t.LinearProgress,`warningBg`,r(Uo,o?p(`palette-warning-main`):t.warning.main,.5)),K(t.Skeleton,`bg`,b?r(Vo,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),K(t.Slider,`primaryTrack`,r(Uo,o?p(`palette-primary-main`):t.primary.main,.5)),K(t.Slider,`secondaryTrack`,r(Uo,o?p(`palette-secondary-main`):t.secondary.main,.5)),K(t.Slider,`errorTrack`,r(Uo,o?p(`palette-error-main`):t.error.main,.5)),K(t.Slider,`infoTrack`,r(Uo,o?p(`palette-info-main`):t.info.main,.5)),K(t.Slider,`successTrack`,r(Uo,o?p(`palette-success-main`):t.success.main,.5)),K(t.Slider,`warningTrack`,r(Uo,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(Go,o?p(`palette-background-default`):t.background.default,.985):qo(t.background.default,.98);K(t.SnackbarContent,`bg`,e),K(t.SnackbarContent,`color`,El(()=>b?mc.text.primary:t.getContrastText(e))),K(t.SpeedDialAction,`fabHoverBg`,qo(t.background.paper,.15)),K(t.StepConnector,`border`,n(`palette-grey-600`)),K(t.StepContent,`border`,n(`palette-grey-600`)),K(t.Switch,`defaultColor`,n(`palette-grey-300`)),K(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),K(t.Switch,`primaryDisabledColor`,r(Uo,o?p(`palette-primary-main`):t.primary.main,.55)),K(t.Switch,`secondaryDisabledColor`,r(Uo,o?p(`palette-secondary-main`):t.secondary.main,.55)),K(t.Switch,`errorDisabledColor`,r(Uo,o?p(`palette-error-main`):t.error.main,.55)),K(t.Switch,`infoDisabledColor`,r(Uo,o?p(`palette-info-main`):t.info.main,.55)),K(t.Switch,`successDisabledColor`,r(Uo,o?p(`palette-success-main`):t.success.main,.55)),K(t.Switch,`warningDisabledColor`,r(Uo,o?p(`palette-warning-light`):t.warning.main,.55)),K(t.TableCell,`border`,r(Uo,Vo(o?p(`palette-divider`):t.divider,1),.68)),K(t.Tooltip,`bg`,r(Vo,o?p(`palette-grey-700`):t.grey[700],.92))}o||(wl(t.background,`default`),wl(t.background,`paper`),wl(t.common,`background`),wl(t.common,`onBackground`),wl(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&K(t[e],`mainChannel`,Fo(Cl(n.main))),n.light&&K(t[e],`lightChannel`,Fo(Cl(n.light))),n.dark&&K(t[e],`darkChannel`,Fo(Cl(n.dark))),n.contrastText&&K(t[e],`contrastTextChannel`,Fo(Cl(n.contrastText))),e===`text`&&(wl(t[e],`primary`),wl(t[e],`secondary`)),e===`action`&&(n.active&&wl(t[e],`active`),n.selected&&wl(t[e],`selected`)))})}),S=t.reduce((e,t)=>mi(e,t),S);let C=Fc(e.focusVisible,t);C!=null&&C!==!1&&(S.focusVisible=Lc(C,p(`palette-primary-main`)));let w={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:xl(S),enableContrastVars:o},{vars:T,generateThemeVars:E,generateStyleSheets:D}=Ls(S,w);return S.vars=T,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=E,S.generateStyleSheets=D,S.generateSpacing=function(){return ma(u.spacing,oa(this))},S.getColorSchemeSelector=Rs(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...Ua,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Ka({sx:e,theme:this})},S.internal_cache={},S.toRuntimeSource=sl,S}function Al(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ec({...n===!0?{}:n.palette,mode:t})})}function jl(e={},...t){let{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n?.mode,...o}=e,s=a||`light`,c=i?.[s],l={...i,...n?{[s]:{...typeof c!=`boolean`&&c,palette:n}}:void 0};if(r===!1){if(!(`colorSchemes`in e))return pl(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=pl({...e,palette:r},...t);if(i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Al(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Al(i,`light`,l.light)),i.focusVisible!=null&&i.focusVisible!==!1){let n=i.focusVisible,r=Fc(e.focusVisible,t),a=r&&typeof r==`object`?r.outlineColor:void 0;if(!a||Ic(r)&&a===i.palette.primary.main){let{outlineColor:e,...t}=n;n=t}Object.keys(i.colorSchemes).forEach(e=>{let t=i.colorSchemes?.[e]?.palette;t?.primary&&(i.colorSchemes[e].focusVisible=Lc(n,t.primary.main))})}return i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),kl({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}function Ml(e){return W(`MuiAccordionSummary`,e)}var Nl=co(`MuiAccordionSummary`,[`root`,`expanded`,`focusVisible`,`disabled`,`gutters`,`content`,`expandIconWrapper`]),Pl=t(It(),1);function Fl(e){return W(`MuiAutocomplete`,e)}var Il=co(`MuiAutocomplete`,`root.expanded.fullWidth.focused.focusVisible.tag.tagSizeSmall.tagSizeMedium.hasPopupIcon.hasClearIcon.inputRoot.input.inputFocused.endAdornment.clearIndicator.popupIndicator.popupIndicatorOpen.popper.popperDisablePortal.paper.listbox.loading.noOptions.status.option.groupLabel.groupUl`.split(`.`));function Ll(e){return W(`MuiCheckbox`,e)}var Rl=co(`MuiCheckbox`,[`root`,`checked`,`disabled`,`indeterminate`,`colorPrimary`,`colorSecondary`,`sizeSmall`,`sizeMedium`]);function zl(e){return typeof e==`string`}function Bl(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}function Vl(...e){let t=z.useRef(void 0),n=z.useCallback(t=>{let n=e.map(e=>{if(e==null)return null;if(typeof e==`function`){let n=e,r=n(t);return typeof r==`function`?r:()=>{n(null)}}return e.current=t,()=>{e.current=null}});return()=>{n.forEach(e=>e?.())}},e);return z.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}function Hl(e){let t=z.useRef(e);return To(()=>{t.current=e}),z.useRef((...e)=>(0,t.current)(...e)).current}function Ul(e){return e&&e.ownerDocument||document}function Wl(e){return Ul(e).defaultView||window}function Gl(e){return parseInt(e,10)||0}var Kl={shadow:{visibility:`hidden`,position:`absolute`,overflow:`hidden`,height:0,top:0,left:0,transform:`translateZ(0)`}};function ql(e){for(let t in e)return!1;return!0}function Jl(e){return ql(e)||e.outerHeightStyle===0&&!e.overflowing}var Yl=z.forwardRef(function(e,t){let{onChange:n,maxRows:r,minRows:i=1,style:a,value:o,...s}=e,{current:c}=z.useRef(o!=null),l=z.useRef(null),u=Vl(t,l),d=z.useRef(null),f=z.useRef(null),p=z.useCallback(()=>{let t=l.current,n=f.current;if(!t||!n)return;let a=Wl(t).getComputedStyle(t);if(a.width===`0px`)return{outerHeightStyle:0,overflowing:!1};n.style.width=a.width,n.value=t.value||e.placeholder||`x`,n.value.slice(-1)===`
|
|
46
|
+
`&&(n.value+=` `);let o=a.boxSizing,s=Gl(a.paddingBottom)+Gl(a.paddingTop),c=Gl(a.borderBottomWidth)+Gl(a.borderTopWidth),u=n.scrollHeight;n.value=`x`;let d=n.scrollHeight,p=u;return i&&(p=Math.max(Number(i)*d,p)),r&&(p=Math.min(Number(r)*d,p)),p=Math.max(p,d),{outerHeightStyle:p+(o===`border-box`?s+c:0),overflowing:Math.abs(p-u)<=1}},[r,i,e.placeholder]),m=Hl(()=>{let e=l.current,t=p();if(!e||!t||Jl(t))return!1;let n=t.outerHeightStyle;return d.current!=null&&d.current!==n}),h=z.useCallback(()=>{let e=l.current,t=p();if(!e||!t||Jl(t))return;let n=t.outerHeightStyle;d.current!==n&&(d.current=n,e.style.height=`${n}px`),e.style.overflow=t.overflowing?`hidden`:``},[p]),g=z.useRef(-1);return To(()=>{let e=Bl(h),t=l?.current;if(!t)return;let n=Wl(t);n.addEventListener(`resize`,e);let r;return typeof ResizeObserver<`u`&&(r=new ResizeObserver(()=>{m()&&(r.unobserve(t),cancelAnimationFrame(g.current),h(),g.current=requestAnimationFrame(()=>{r.observe(t)}))}),r.observe(t)),()=>{e.clear(),cancelAnimationFrame(g.current),n.removeEventListener(`resize`,e),r&&r.disconnect()}},[p,h,m]),To(()=>{h()}),(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(`textarea`,{value:o,onChange:e=>{c||h();let t=e.target,r=t.value.length,i=t.value.endsWith(`
|
|
47
|
+
`),a=t.selectionStart===r;i&&a&&t.setSelectionRange(r,r),n&&n(e)},ref:u,rows:i,style:a,...s}),(0,H.jsx)(`textarea`,{"aria-hidden":!0,className:e.className,readOnly:!0,ref:f,tabIndex:-1,style:{...Kl.shadow,...a,paddingTop:0,paddingBottom:0}})]})}),Xl=z.createContext(void 0);function Zl(){return z.useContext(Xl)}function Ql({props:e,states:t}){let n=z.useContext(Xl),r={};return t.forEach(t=>{let i=e[t];r[t]=i===void 0&&n?n[t]:i}),[r,n]}var $l=jl();function eu(){let e=eo($l);return e.$$material||e}function tu(e){return(0,H.jsx)(no,{...e,defaultTheme:$l,themeId:Yt})}function nu(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var ru=e=>nu(e)&&e!==`classes`,q=vo({themeId:Yt,defaultTheme:$l,rootShouldForwardProp:ru});function iu(e){return function(t){return(0,H.jsx)(tu,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}var J=hs;function Y(e){return as(e)}var X=qi,au=Vl,ou=To,su=Ul;function cu(e){let t=e.activeElement;for(;t?.shadowRoot?.activeElement!=null;)t=t.shadowRoot.activeElement;return t}var lu=cu;function uu(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function du(e,t=!1){return e&&(uu(e.value)&&e.value!==``||t&&uu(e.defaultValue)&&e.defaultValue!==``)}function fu(e){return e.startAdornment}function pu(e){return W(`MuiInputBase`,e)}var mu=co(`MuiInputBase`,[`root`,`formControl`,`focused`,`disabled`,`adornedStart`,`adornedEnd`,`error`,`sizeSmall`,`multiline`,`colorSecondary`,`fullWidth`,`hiddenLabel`,`readOnly`,`input`,`inputTypeSearch`]),hu={transition:`none`};function gu(e,t){return e===`always`?t:e===`system`?{"@media (prefers-reduced-motion: reduce)":t}:null}var _u=e=>e.scrollTop,vu={},yu=[`all`],bu={};function xu(e,t){return n=>{if(t){let r=e.current;n===void 0?t(r):t(r,n)}}}function Su(e,t,n,r,i,a){let o=e===`exited`&&!t?r:n[e]||n.exited;return i||a?{...o,...i,...a}:o}function Cu(e,t){let{timeout:n,easing:r,style:i=vu}=e;return{duration:i.transitionDuration??(typeof n==`number`?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r==`object`?r[t.mode]:r),delay:i.transitionDelay}}function wu(e,t){let n=t??hu;return gu(e.motion?.reducedMotion,n)}function Tu(e,t=yu,n=bu){let r=e.transitions?.create?.(t,n),i=wu(e);if(r===void 0)return i??vu;let a={transition:r};return i?{...a,...i}:a}var Eu,Du=`mui-auto-fill`,Ou=`mui-auto-fill-cancel`,ku=(e,t)=>{let{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size===`small`&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${X(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Au=(e,t)=>{let{ownerState:n}=e;return[t.input,n.type===`search`&&t.inputTypeSearch]},ju=e=>{let{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:o,formControl:s,fullWidth:c,hiddenLabel:l,multiline:u,readOnly:d,size:f,startAdornment:p,type:m}=e;return G({root:[`root`,`color${X(n)}`,r&&`disabled`,i&&`error`,c&&`fullWidth`,o&&`focused`,s&&`formControl`,f&&f!==`medium`&&`size${X(f)}`,u&&`multiline`,p&&`adornedStart`,a&&`adornedEnd`,l&&`hiddenLabel`,d&&`readOnly`],input:[`input`,r&&`disabled`,m===`search`&&`inputTypeSearch`,d&&`readOnly`]},pu,t)},Mu=q(`div`,{name:`MuiInputBase`,slot:`Root`,overridesResolver:ku})(J(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:`1.4375em`,boxSizing:`border-box`,position:`relative`,cursor:`text`,display:`inline-flex`,alignItems:`center`,[`&.${mu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:`default`},variants:[{props:({ownerState:e})=>e.multiline,style:{padding:`4px 0 5px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:1}},{props:({ownerState:e})=>e.fullWidth,style:{width:`100%`}}]}))),Nu=q(`input`,{name:`MuiInputBase`,slot:`Input`,overridesResolver:Au})(J(({theme:e})=>{let t=e.palette.mode===`light`,n={color:`currentColor`,...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},...Tu(e,`opacity`,{duration:e.transitions.duration.shorter})},r={opacity:`0 !important`},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:`inherit`,letterSpacing:`inherit`,color:`currentColor`,padding:`4px 0 5px`,border:0,boxSizing:`content-box`,background:`none`,height:`1.4375em`,margin:0,WebkitTapHighlightColor:`transparent`,display:`block`,minWidth:0,width:`100%`,"&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:`none`},"&::-webkit-search-decoration":{WebkitAppearance:`none`},[`label[data-shrink=false] + .${mu.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${mu.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:e})=>!e.disableInjectingGlobalStyles,style:{animationName:Ou,animationDuration:`10ms`,"&:-webkit-autofill":{animationDuration:`5000s`,animationName:Du}}},{props:{size:`small`},style:{paddingTop:1}},{props:({ownerState:e})=>e.multiline,style:{height:`auto`,resize:`none`,padding:0,paddingTop:0}},{props:{type:`search`},style:{MozAppearance:`textfield`}}]}})),Pu=iu({[`@keyframes ${Du}`]:{from:{animationName:Du}},[`@keyframes ${Ou}`]:{from:{animationName:Ou}}}),Fu=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiInputBase`}),{"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,className:s,color:c,defaultValue:l,disabled:u,disableInjectingGlobalStyles:d,endAdornment:f,error:p,fullWidth:m=!1,id:h,inputComponent:g=`input`,inputProps:_,inputRef:v,margin:y,maxRows:b,minRows:x,multiline:S=!1,name:C,onBlur:w,onChange:T,onClick:E,onFocus:D,onKeyDown:O,onKeyUp:k,placeholder:ee,readOnly:A,renderSuffix:j,rows:M,size:te,slotProps:ne={},slots:N={},startAdornment:P,type:re=`text`,value:F,...I}=n,ie={..._,...ne.input},L=ie.value==null?F:ie.value,{current:R}=z.useRef(L!=null),ae=z.useRef(),oe=z.useCallback(e=>{},[]),se=au(ae,v,ie.ref,oe),[ce,B]=z.useState(!1),[le,V]=Ql({props:n,states:[`color`,`disabled`,`error`,`hiddenLabel`,`size`,`required`,`filled`]});le.focused=V?V.focused:ce,z.useEffect(()=>{!V&&u&&ce&&(B(!1),w&&w())},[V,u,ce,w]);let ue=V&&V.onFilled,de=V&&V.onEmpty,fe=z.useCallback(e=>{du(e)?ue&&ue():de&&de()},[ue,de]);ou(()=>{R&&fe({value:L})},[L,fe,R]),ou(()=>{if(!o)return;let e=ae.current;if(!e)return;let t=su(e),n=lu(t),r=n==null||n===t.body||n===t.documentElement;e===n?V&&V.onFocus?V.onFocus():B(!0):r&&e.focus()},[o]);let pe=e=>{D&&D(e),ie.onFocus&&ie.onFocus(e),V&&V.onFocus?V.onFocus(e):B(!0)},me=e=>{w&&w(e),ie.onBlur&&ie.onBlur(e),V&&V.onBlur?V.onBlur(e):B(!1)},he=(e,...t)=>{if(!R){let t=e.target||ae.current;if(t==null)throw Error(Jt(1));fe({value:t.value})}ie.onChange&&ie.onChange(e,...t),T&&T(e,...t)};z.useEffect(()=>{fe(ae.current)},[]);let ge=e=>{ae.current&&e.currentTarget===e.target&&ae.current.focus(),E&&E(e)},_e=g,ve=ie;S&&_e===`input`&&(ve=M?{type:void 0,minRows:M,maxRows:M,...ve}:{type:void 0,maxRows:b,minRows:x,...ve},_e=Yl);let ye=e=>{fe(e.animationName===Ou?ae.current:{value:`x`})};z.useEffect(()=>{V&&V.setAdornedStart(!!P)},[V,P]);let be={...n,color:le.color||`primary`,disabled:le.disabled,endAdornment:f,error:le.error,focused:le.focused,formControl:V,fullWidth:m,hiddenLabel:le.hiddenLabel,multiline:S,size:le.size,startAdornment:P,type:re},xe=ju(be),Se=N.root||Mu,Ce=ne.root||{},we=N.input||Nu;return(0,H.jsxs)(z.Fragment,{children:[!d&&typeof Pu==`function`&&(Eu||=(0,H.jsx)(Pu,{})),(0,H.jsxs)(Se,{...Ce,ref:t,onClick:ge,...I,...!zl(Se)&&{ownerState:{...be,...Ce.ownerState}},className:U(xe.root,Ce.className,s,A&&`MuiInputBase-readOnly`),children:[P,(0,H.jsx)(Xl.Provider,{value:null,children:(0,H.jsx)(we,{"aria-invalid":le.error,"aria-describedby":r,"aria-label":i,autoComplete:a,autoFocus:o,defaultValue:l,disabled:le.disabled,id:h,onAnimationStart:ye,name:C,placeholder:ee,readOnly:A,required:le.required,rows:M,value:L,onKeyDown:O,onKeyUp:k,type:re,...ve,...!zl(we)&&{as:_e,ownerState:{...be,...ve.ownerState}},ref:se,className:U(xe.input,ve.className,A&&`MuiInputBase-readOnly`),onBlur:me,onChange:he,onFocus:pe})}),f,j?j({...le,startAdornment:P}):null]})]})});function Iu(e){return W(`MuiFilledInput`,e)}var Lu={...mu,...co(`MuiFilledInput`,[`root`,`underline`,`input`,`adornedStart`,`adornedEnd`,`sizeSmall`,`multiline`,`hiddenLabel`])};function Ru(e){return W(`MuiFormControlLabel`,e)}var zu=co(`MuiFormControlLabel`,[`root`,`labelPlacementStart`,`labelPlacementEnd`,`labelPlacementTop`,`labelPlacementBottom`,`disabled`,`label`,`error`,`required`,`asterisk`]);function Bu(e){return W(`MuiFormHelperText`,e)}var Vu=co(`MuiFormHelperText`,[`root`,`error`,`disabled`,`sizeSmall`,`sizeMedium`,`contained`,`focused`,`filled`,`required`]);function Hu(e){return W(`MuiFormLabel`,e)}var Uu=co(`MuiFormLabel`,[`root`,`colorSecondary`,`focused`,`disabled`,`error`,`filled`,`required`,`asterisk`]);function Wu(e){return W(`MuiInput`,e)}var Gu={...mu,...co(`MuiInput`,[`root`,`underline`,`input`])};function Ku(e){return W(`MuiListItemButton`,e)}var qu=co(`MuiListItemButton`,[`root`,`focusVisible`,`dense`,`alignItemsFlexStart`,`disabled`,`divider`,`gutters`,`selected`]);function Ju(e){return W(`MuiMenuItem`,e)}var Yu=co(`MuiMenuItem`,[`root`,`focusVisible`,`dense`,`disabled`,`divider`,`gutters`,`selected`]);function Xu(e){return W(`MuiNativeSelect`,e)}var Zu=co(`MuiNativeSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`icon`,`iconOpen`,`iconFilled`,`iconOutlined`,`iconStandard`,`nativeInput`,`error`]);function Qu(e){return W(`MuiOutlinedInput`,e)}var $u={...mu,...co(`MuiOutlinedInput`,[`root`,`notchedOutline`,`input`])};function ed(e){return W(`MuiRadio`,e)}var td=co(`MuiRadio`,[`root`,`checked`,`disabled`,`colorPrimary`,`colorSecondary`,`sizeSmall`]);function nd(e){return W(`MuiSlider`,e)}var rd=co(`MuiSlider`,`root.active.colorPrimary.colorSecondary.colorError.colorInfo.colorSuccess.colorWarning.disabled.dragging.focusVisible.mark.markActive.marked.markLabel.markLabelActive.rail.sizeSmall.thumb.track.trackInverted.trackFalse.valueLabel.valueLabelOpen.valueLabelCircle.valueLabelLabel.vertical`.split(`.`));function id(e){return W(`MuiToggleButton`,e)}var ad=co(`MuiToggleButton`,[`root`,`disabled`,`selected`,`standard`,`primary`,`secondary`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`fullWidth`]);function od({theme:e,...t}){let n=`$$material`in e?e[Yt]:void 0;return(0,H.jsx)(ps,{...t,themeId:n?Yt:void 0,theme:n||e})}var sd={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},{CssVarsProvider:cd,useColorScheme:ld,getInitColorSchemeScript:ud}=As({themeId:Yt,theme:()=>jl({cssVariables:!0}),colorSchemeStorageKey:sd.colorSchemeStorageKey,modeStorageKey:sd.modeStorageKey,defaultColorScheme:{light:sd.defaultLightColorScheme,dark:sd.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:Wc(e.palette,e.typography)};return t.unstable_sx=function(e){return Ka({sx:e,theme:this})},t}}),dd=cd;function fd({theme:e,...t}){let n=z.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[Yt]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,H.jsx)(od,{theme:n,...t}):(0,H.jsx)(dd,{theme:e,...t})}function pd(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}var md=pd;function hd(e){return W(`MuiSvgIcon`,e)}co(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`]);var gd=e=>{let{color:t,fontSize:n,classes:r}=e;return G({root:[`root`,t!==`inherit`&&`color${X(t)}`,`fontSize${X(n)}`]},hd,r)},_d=q(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${X(n.color)}`],t[`fontSize${X(n.fontSize)}`]]}})(J(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,...Tu(e,`fill`,{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:e=>!e.hasSvgAsChild,style:{fill:`currentColor`}},{props:{fontSize:`inherit`},style:{fontSize:`inherit`}},{props:{fontSize:`small`},style:{fontSize:e.typography?.pxToRem?.(20)||`1.25rem`}},{props:{fontSize:`medium`},style:{fontSize:e.typography?.pxToRem?.(24)||`1.5rem`}},{props:{fontSize:`large`},style:{fontSize:e.typography?.pxToRem?.(35)||`2.1875rem`}},...Object.entries((e.vars??e).palette).filter(([,e])=>e&&e.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:`action`},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:`disabled`},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:`inherit`},style:{color:void 0}}]}))),vd=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiSvgIcon`}),{children:r,className:i,color:a=`inherit`,component:o=`svg`,fontSize:s=`medium`,htmlColor:c,inheritViewBox:l=!1,titleAccess:u,viewBox:d=`0 0 24 24`,...f}=n,p=z.isValidElement(r)&&r.type===`svg`,m={...n,color:a,component:o,fontSize:s,instanceFontSize:e.fontSize,inheritViewBox:l,viewBox:d,hasSvgAsChild:p},h={};l||(h.viewBox=d);let g=gd(m);return(0,H.jsxs)(_d,{as:o,className:U(g.root,i),focusable:`false`,color:c,"aria-hidden":!u||void 0,role:u?`img`:void 0,ref:t,...h,...f,...p&&r.props,ownerState:m,children:[p?r.props.children:r,u?(0,H.jsx)(`title`,{children:u}):null]})});vd.muiName=`SvgIcon`;function Z(e,t){function n(t,n){return(0,H.jsx)(vd,{"data-testid":void 0,ref:n,...t,children:e})}return n.muiName=vd.muiName,z.memo(z.forwardRef(n))}var yd=Bl,bd=zs,xd=Wl;function Sd(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var Cd=ls;function wd(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=z.useRef(t!==void 0),[o,s]=z.useState(n);return[a?t:o,z.useCallback(e=>{a||s(e)},[])]}var Td=wd,Ed=Hl;function Dd(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function Od(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{Dd(r,t[r])&&typeof e[r]==`function`&&(n[r]=(...n)=>{e[r](...n),t[r](...n)})}),n}if(typeof e==`function`||typeof t==`function`)return r=>{let i=typeof t==`function`?t(r):t,a=typeof e==`function`?e({...r,...i}):e,o=U(r?.className,i?.className,a?.className),s=n(a,i),c={...i,...a,...s};return o&&(c.className=o),i?.style&&a?.style&&(c.style={...i.style,...a.style}),i?.sx&&a?.sx&&(c.sx=[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]),c};let r=t,i=n(e,r),a=U(r?.className,e?.className),o={...t,...e,...i};return a&&(o.className=a),r?.style&&e?.style&&(o.style={...r.style,...e.style}),r?.sx&&e?.sx&&(o.sx=[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]),o}var kd={};function Ad(e,t){let n=z.useRef(kd);return n.current===kd&&(n.current=e(t)),n}function jd(e){let t=Ad(()=>Md(e)).current;return t.next=e,To(t.effect),t}function Md(e){let t={current:e,next:e,effect:()=>{t.current=t.next}};return t}var Nd=z.createContext(null);function Pd(e){if(e==null)return{appear:void 0,enter:void 0,exit:void 0};if(typeof e==`number`)return{appear:e,enter:e,exit:e};let t=e.enter,n=e.exit;return{appear:e.appear===void 0?t:e.appear,enter:t,exit:n}}function Fd(e){if(e.autoTimeout!=null)return e.autoTimeout;let t=Pd(e.timeout);return e.currentStatus===`entering`?e.isAppearing?t.appear??t.enter??null:t.enter??null:t.exit??null}function Id(e){let{in:t=!1,appear:n=!1,enter:r=!0,exit:i=!0,mountOnEnter:a=!1,unmountOnExit:o=!1,timeout:s,addEndListener:c,reduceMotion:l=!1,getAutoTimeout:u,nodeRef:d,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,children:v,...y}=e,b=z.useContext(Nd),x=b&&!b.isMounting?r:n,[S,C]=z.useState(()=>t?x?`exited`:`entered`:a||o?`unmounted`:`exited`),w=z.useRef(S);w.current=S,t&&S===`unmounted`&&(w.current=`exited`,C(`exited`));let T=z.useRef(t&&x),E=z.useRef(!1),D=z.useRef(null),O=z.useRef(S),k=z.useRef(!1),ee=z.useRef(l),A=jd({timeout:s,addEndListener:c,reduceMotion:l,getAutoTimeout:u,onEnter:f,onEntering:p,onEntered:m,onExit:h,onExiting:g,onExited:_,enter:r,exit:i,mountOnEnter:a,unmountOnExit:o,nodeRef:d,parentGroup:b}),j=z.useCallback(()=>{D.current!==null&&(D.current.cancel(),D.current=null)},[]),M=z.useCallback(e=>{let t=!0,n=()=>{t&&(t=!1,D.current=null,e())};return n.cancel=()=>{t=!1},D.current=n,n},[]),te=z.useCallback((e,t)=>{let n,r=()=>{n!==void 0&&(clearTimeout(n),n=void 0)},i=M(()=>{r(),w.current=e,C(e)}),a=i.cancel;i.cancel=()=>{r(),a()};let o=A.current.nodeRef.current,s=A.current.addEndListener,c=A.current.getAutoTimeout!==void 0,l=A.current.getAutoTimeout?.(),u=Fd({currentStatus:t,isAppearing:k.current,timeout:A.current.timeout,autoTimeout:l}),d=ee.current,f=u??(d&&c?0:null),p=e=>{n=setTimeout(i,e)};o?s?(f!=null&&p(d?0:f),s.length>=2?s(o,i):s(i)):p(d?0:u??0):p(0)},[M,A]),ne=z.useCallback(e=>{let t=A.current,n=t.parentGroup?t.parentGroup.isMounting:e;k.current=n,!e&&!t.enter?(w.current=`entered`,C(`entered`)):(ee.current=t.reduceMotion,t.onEnter?.(n),w.current=`entering`,C(`entering`))},[A]),N=z.useCallback(()=>{let e=A.current;e.exit?(ee.current=e.reduceMotion,e.onExit?.(),w.current=`exiting`,C(`exiting`)):(w.current=`exited`,C(`exited`))},[A]),P=z.useCallback((e,t)=>{if(j(),t===`entering`){let t=A.current;if(t.mountOnEnter||t.unmountOnExit){let e=t.nodeRef.current;e&&_u(e)}ne(e)}else N()},[j,ne,N,A]);return To(()=>(E.current=!0,T.current&&(T.current=!1,P(!0,`entering`)),()=>{E.current=!1,j()}),[j,P]),To(()=>{if(!E.current)return;let e=w.current;t?e!==`entering`&&e!==`entered`&&P(!1,`entering`):e===`entering`||e===`entered`?P(!1,`exiting`):e===`exited`&&o&&(w.current=`unmounted`,C(`unmounted`))},[t,S,o,P]),To(()=>{if(S===`unmounted`||O.current===`unmounted`){O.current=S;return}let e=O.current!==S;e&&(O.current=S);let t=A.current;S===`entering`?(e&&t.onEntering?.(k.current),D.current===null&&w.current===S&&te(`entered`,`entering`)):S===`exiting`?(e&&t.onExiting?.(),D.current===null&&w.current===S&&te(`exited`,`exiting`)):S===`entered`&&e?t.onEntered?.(k.current):S===`exited`&&e&&t.onExited?.()},[A,te,S]),S===`unmounted`?null:(0,H.jsx)(Nd.Provider,{value:null,children:v(S,y)})}var Ld=`(prefers-reduced-motion: reduce)`,Rd=0,zd=`0ms`,Bd=()=>{},Vd=()=>!1,Hd=()=>!0,Ud=()=>Bd;function Wd(e){let[t,n]=z.useState(()=>({enabled:e,matches:e?null:!1})),r=t.matches;return t.enabled!==e&&(r=null,e||(r=!1)),To(()=>{let r=t=>{n(n=>n.enabled===e&&n.matches===t?n:{enabled:e,matches:t})};if(!e){t.enabled&&r(!1);return}if(typeof window>`u`||typeof window.matchMedia!=`function`){r(!1);return}let i=window.matchMedia(Ld),a=()=>{r(i.matches)};return a(),i.addEventListener(`change`,a),()=>{i.removeEventListener(`change`,a)}},[e,t.enabled]),r}var Gd={...z}.useSyncExternalStore;function Kd(e){let t=e?Hd:Vd,[n,r]=z.useMemo(()=>{if(!e||typeof window>`u`||typeof window.matchMedia!=`function`)return[Vd,Ud];let t=window.matchMedia(Ld);return[()=>t.matches,e=>(t.addEventListener(`change`,e),()=>{t.removeEventListener(`change`,e)})]},[e]);return Gd(r,n,t)}var qd=Gd===void 0?Wd:Kd;function Jd(e,t){let n=qd(!t&&e===`system`),r=!t&&(e===`always`||e===`system`&&n!==!1);return z.useMemo(()=>({shouldReduceMotion:r,getTransitionTiming(e){return r?{duration:Rd,delay:zd}:e}}),[r])}function Yd(e,t,n){return e===void 0||zl(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Xd(e,t,n){return typeof e==`function`?e(t,n):e}function Zd(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Dd(i,e[i])&&(t[i]=e[i])}return t}function Qd(e){if(e===void 0)return{};let t={},n=Object.keys(e);for(let r=0;r<n.length;r+=1){let i=n[r];Dd(i,e[i])||(t[i]=e[i])}return t}function $d(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=U(n?.className,a,i?.className,r?.className),t={...n,...i,...r};if(e.length>0&&(t.className=e),n?.style||i?.style||r?.style){let e={...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(t.style=e)}return{props:t,internalRef:void 0}}let o=Zd({...i,...r}),s=Qd(r),c=Qd(i),l=t(o),u=U(l?.className,n?.className,a,i?.className,r?.className),d={...l,...n,...c,...s};if(u.length>0&&(d.className=u),l?.style||n?.style||i?.style||r?.style){let e={...l?.style,...n?.style,...i?.style,...r?.style};Object.keys(e).length>0&&(d.style=e)}return{props:d,internalRef:l.ref}}function Q(e,t){let{className:n,elementType:r,ownerState:i,externalForwardedProps:a,internalForwardedProps:o,shouldForwardComponentProp:s=!1,...c}=t,{component:l,slots:u={[e]:void 0},slotProps:d={[e]:void 0},...f}=a,p=u[e]||r,m=Xd(d[e],i),{props:{component:h,...g},internalRef:_}=$d({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=Vl(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Yd(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}function ef(e){return W(`MuiCollapse`,e)}co(`MuiCollapse`,[`root`,`horizontal`,`vertical`,`entered`,`hidden`,`wrapper`,`wrapperInner`]);var tf={},nf=e=>{let{orientation:t,classes:n}=e;return G({root:[`root`,t],entered:[`entered`],hidden:[`hidden`],wrapper:[`wrapper`,t],wrapperInner:[`wrapperInner`,t]},ef,n)},rf=q(`div`,{name:`MuiCollapse`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.state===`entered`&&t.entered,n.state===`exited`&&!n.in&&n.collapsedSize===`0px`&&t.hidden]}})(J(({theme:e})=>({height:0,overflow:`hidden`,transition:e.transitions.create(`height`),variants:[{props:{orientation:`horizontal`},style:{height:`auto`,width:0,transition:e.transitions.create(`width`)}},{props:{state:`entered`},style:{height:`auto`,overflow:`visible`}},{props:{state:`entered`,orientation:`horizontal`},style:{width:`auto`}},{props:({ownerState:e})=>e.state===`exited`&&!e.in&&e.collapsedSize===`0px`,style:{visibility:`hidden`}}]}))),af=q(`div`,{name:`MuiCollapse`,slot:`Wrapper`})({display:`flex`,width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),of=q(`div`,{name:`MuiCollapse`,slot:`WrapperInner`})({width:`100%`,variants:[{props:{orientation:`horizontal`},style:{width:`auto`,height:`100%`}}]}),sf=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiCollapse`}),{addEndListener:r,children:i,className:a,collapsedSize:o=`0px`,component:s,disablePrefersReducedMotion:c=!1,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:m,onExited:h,onExiting:g,orientation:_=`vertical`,slots:v=tf,slotProps:y=tf,style:b,timeout:x=$c.standard,TransitionComponent:S=Id,...C}=n,w={...n,orientation:_,collapsedSize:o},T=nf(w),E=eu(),D=z.useRef(null),O=z.useRef(null),k=typeof o==`number`?`${o}px`:o,ee=_===`horizontal`,A=ee?`width`:`height`,j=Jd(E.motion.reducedMotion,c),M=z.useRef(null),te=au(t,M),ne=()=>D.current?D.current[ee?`clientWidth`:`clientHeight`]:0,N=xu(M,(e,t)=>{D.current&&ee&&(D.current.style.position=`absolute`),e.style[A]=k,d&&d(e,t)}),P=xu(M,(e,t)=>{let n=ne();D.current&&ee&&(D.current.style.position=``);let{duration:r,easing:i}=Cu({style:b,timeout:x,easing:l},{mode:`enter`});if(x===`auto`&&!j.shouldReduceMotion){let e=E.transitions.getAutoHeightDuration(n);O.current=e}else O.current=null;let a=j.getTransitionTiming({duration:O.current??r,delay:void 0});e.style.transitionDuration=typeof a.duration==`string`?a.duration:`${a.duration}ms`,e.style[A]=`${n}px`,e.style.transitionTimingFunction=i,p&&p(e,t)}),re=xu(M,(e,t)=>{e.style[A]=`auto`,f&&f(e,t)}),F=xu(M,e=>{e.style[A]=`${ne()}px`,m&&m(e)}),I=xu(M,h),ie=xu(M,e=>{let t=ne(),{duration:n,easing:r}=Cu({style:b,timeout:x,easing:l},{mode:`exit`});if(x===`auto`&&!j.shouldReduceMotion){let e=E.transitions.getAutoHeightDuration(t);O.current=e}else O.current=null;let i=j.getTransitionTiming({duration:O.current??n,delay:void 0});e.style.transitionDuration=typeof i.duration==`string`?i.duration:`${i.duration}ms`,e.style[A]=k,e.style.transitionTimingFunction=r,g&&g(e)}),L=r?e=>{r(M.current,e)}:void 0,R={slots:v,slotProps:y,component:s},[ae,oe]=Q(`root`,{ref:te,className:U(T.root,a),elementType:rf,externalForwardedProps:R,ownerState:w,additionalProps:{style:{[ee?`minWidth`:`minHeight`]:k,...b}}}),[se,ce]=Q(`wrapper`,{ref:D,className:T.wrapper,elementType:af,externalForwardedProps:R,ownerState:w}),[B,le]=Q(`wrapperInner`,{className:T.wrapperInner,elementType:of,externalForwardedProps:R,ownerState:w});return(0,H.jsx)(S,{in:u,onEnter:N,onEntered:re,onEntering:P,onExit:F,onExited:I,onExiting:ie,addEndListener:L,getAutoTimeout:x===`auto`?()=>O.current:void 0,reduceMotion:j.shouldReduceMotion,nodeRef:M,timeout:x===`auto`?null:x,...C,children:(e,{ownerState:t,...n})=>{let r={...w,state:e};return(0,H.jsx)(ae,{...oe,className:U(oe.className,{entered:T.entered,exited:!u&&k===`0px`&&T.hidden}[e]),ownerState:r,...n,children:(0,H.jsx)(se,{...ce,ownerState:r,children:(0,H.jsx)(B,{...le,ownerState:r,children:i})})})}})});sf&&(sf.muiSupportAuto=!0);function cf(e){return W(`MuiPaper`,e)}co(`MuiPaper`,`root.rounded.outlined.elevation.elevation0.elevation1.elevation2.elevation3.elevation4.elevation5.elevation6.elevation7.elevation8.elevation9.elevation10.elevation11.elevation12.elevation13.elevation14.elevation15.elevation16.elevation17.elevation18.elevation19.elevation20.elevation21.elevation22.elevation23.elevation24`.split(`.`));var lf=e=>{let{square:t,elevation:n,variant:r,classes:i}=e;return G({root:[`root`,r,!t&&`rounded`,r===`elevation`&&`elevation${n}`]},cf,i)},uf=q(`div`,{name:`MuiPaper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant===`elevation`&&t[`elevation${n.elevation}`]]}})(J(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,...Tu(e,`box-shadow`),variants:[{props:({ownerState:e})=>!e.square,style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`outlined`},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:`elevation`},style:{boxShadow:`var(--Paper-shadow)`,backgroundImage:`var(--Paper-overlay)`}}]}))),df=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiPaper`}),r=eu(),{className:i,component:a=`div`,elevation:o=1,square:s=!1,variant:c=`elevation`,...l}=n,u={...n,component:a,elevation:o,square:s,variant:c},d=lf(u);return(0,H.jsx)(uf,{as:a,ownerState:u,className:U(d.root,i),ref:t,...l,style:{...c===`elevation`&&{"--Paper-shadow":(r.vars||r).shadows[o],...r.vars&&{"--Paper-overlay":r.vars.overlays?.[o]},...!r.vars&&r.palette.mode===`dark`&&{"--Paper-overlay":`linear-gradient(${Bo(`#fff`,ml(o))}, ${Bo(`#fff`,ml(o))})`}},...l.style}})}),ff=z.createContext({});function pf(e){return W(`MuiAccordion`,e)}var mf=co(`MuiAccordion`,[`root`,`heading`,`rounded`,`expanded`,`disabled`,`gutters`,`region`]),hf=e=>{let{classes:t,square:n,expanded:r,disabled:i,disableGutters:a}=e;return G({root:[`root`,!n&&`rounded`,r&&`expanded`,i&&`disabled`,!a&&`gutters`],heading:[`heading`],region:[`region`]},pf,t)},gf=q(df,{name:`MuiAccordion`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${mf.region}`]:t.region},t.root,!n.square&&t.rounded,!n.disableGutters&&t.gutters]}})(J(({theme:e})=>{let t={duration:e.transitions.duration.shortest};return{position:`relative`,...Tu(e,[`margin`],t),overflowAnchor:`none`,"&::before":{position:`absolute`,left:0,top:-1,right:0,height:1,content:`""`,opacity:1,backgroundColor:(e.vars||e).palette.divider,...Tu(e,[`opacity`,`background-color`],t)},"&:first-of-type":{"&::before":{display:`none`}},[`&.${mf.expanded}`]:{"&::before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&::before":{display:`none`}}},[`&.${mf.disabled}`]:{backgroundColor:(e.vars||e).palette.action.disabledBackground}}}),J(({theme:e})=>({variants:[{props:e=>!e.square,style:{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(e.vars||e).shape.borderRadius,borderBottomRightRadius:(e.vars||e).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}}},{props:e=>!e.disableGutters,style:{[`&.${mf.expanded}`]:{margin:`16px 0`}}}]}))),_f=q(`h3`,{name:`MuiAccordion`,slot:`Heading`})({all:`unset`}),vf=q(`div`,{name:`MuiAccordion`,slot:`Region`})({}),yf=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAccordion`}),{children:r,className:i,defaultExpanded:a=!1,disabled:o=!1,disableGutters:s=!1,expanded:c,onChange:l,slots:u={},slotProps:d={},...f}=n,[p,m]=Td({controlled:c,default:a,name:`Accordion`,state:`expanded`}),h=z.useCallback(e=>{m(!p),l&&l(e,!p)},[p,l,m]),[g,..._]=z.Children.toArray(r),v=z.useMemo(()=>({expanded:p,disabled:o,disableGutters:s,toggle:h}),[p,o,s,h]),y={...n,disabled:o,disableGutters:s,expanded:p},b=hf(y),x={slots:u,slotProps:d},[S,C]=Q(`root`,{elementType:gf,externalForwardedProps:{...x,...f},className:U(b.root,i),shouldForwardComponentProp:!0,ownerState:y,ref:t}),[w,T]=Q(`heading`,{elementType:_f,externalForwardedProps:x,className:b.heading,ownerState:y}),[E,D]=Q(`transition`,{elementType:sf,externalForwardedProps:x,ownerState:y}),[O,k]=Q(`region`,{elementType:vf,externalForwardedProps:x,ownerState:y,className:b.region,additionalProps:{"aria-labelledby":g.props.id,id:g.props[`aria-controls`],role:`region`}});return(0,H.jsxs)(S,{...C,children:[(0,H.jsx)(w,{...T,children:(0,H.jsx)(ff.Provider,{value:v,children:g})}),(0,H.jsx)(E,{in:p,timeout:`auto`,...D,children:(0,H.jsx)(O,{...k,children:_})})]})});function bf(e){return W(`MuiAccordionDetails`,e)}co(`MuiAccordionDetails`,[`root`]);var xf=e=>{let{classes:t}=e;return G({root:[`root`]},bf,t)},Sf=q(`div`,{name:`MuiAccordionDetails`,slot:`Root`})(J(({theme:e})=>({padding:e.spacing(1,2,2)}))),Cf=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAccordionDetails`}),{className:r,...i}=n,a=n,o=xf(a);return(0,H.jsx)(Sf,{className:U(o.root,r),ref:t,ownerState:a,...i})});function wf(e){try{return e.matches(`:focus-visible`)}catch{}return!1}function Tf(e){let{focusableWhenDisabled:t,disabled:n,composite:r=!1,tabIndex:i=0,isNativeButton:a}=e,o=r&&t!==!1,s=r&&t===!1;return z.useMemo(()=>{let e={onKeyDown(e){n&&t&&e.key!==`Tab`&&e.preventDefault()}};return r||(e.tabIndex=i,!a&&n&&(e.tabIndex=t?i:-1)),(a&&(t||o)||!a&&n)&&(e[`aria-disabled`]=n),a&&(!t||s)&&(e.disabled=n),e},[r,n,t,o,s,a,i])}var Ef={};function Df(e){let{nativeButton:t,nativeButtonProp:n,internalNativeButton:r=t,allowInferredHostMismatch:i=!1,disabled:a,type:o,hasFormAction:s=!1,tabIndex:c=0,focusableWhenDisabled:l,stopEventPropagation:u=!1,onBeforeKeyDown:d,onBeforeKeyUp:f}=e,p=z.useRef(null),m=l===!0,h=Tf({focusableWhenDisabled:m,disabled:a,isNativeButton:t,tabIndex:c}),g=z.useCallback(()=>{let e=p.current;return e==null?t:e.tagName===`BUTTON`||!!(e.tagName===`A`&&e.href)},[t]),_=z.useMemo(()=>{let e=m?{}:{tabIndex:a?-1:c};return t?(e.type=o===void 0&&!s?`button`:o,m||(e.disabled=a)):(e.role=`button`,!m&&a&&(e[`aria-disabled`]=a)),m?{...e,...h}:e},[a,m,h,s,t,c,o]);return{getButtonProps:z.useCallback((e=Ef)=>{let{onClick:t,onKeyDown:n,onKeyUp:r,...i}=e,o=e=>{u&&e.stopPropagation(),a?e.preventDefault():t?.(e)},s=e=>{m&&h.onKeyDown(e),a||(d?.(e),n?.(e),e.target!==e.currentTarget||g()||(e.key===` `?e.preventDefault():e.key===`Enter`&&(e.preventDefault(),e.currentTarget.click())))},c=e=>{a||(f?.(e),r?.(e),e.target===e.currentTarget&&!g()&&e.key===` `&&!e.defaultPrevented&&e.currentTarget.click())};return{..._,...i,onClick:o,onKeyDown:s,onKeyUp:c}},[_,a,m,h,g,d,f,u]),rootRef:p}}var Of=class e{ref={current:null};shouldMount=!1;mounted=null;didMount=!1;setShouldMount=null;static create(){return new e}static use(){let t=Ad(e.create).current,[n,r]=z.useState(!1);return t.shouldMount=n,t.setShouldMount=r,z.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=Af(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&(this.ref.current!==null&&(this.didMount=!0),this.mounted.resolve())};start(...e){this.mount().then(()=>this.ref.current?.start(...e))}stop(...e){this.mount().then(()=>this.ref.current?.stop(...e))}pulsate(...e){this.mount().then(()=>this.ref.current?.pulsate(...e))}};function kf(){return Of.use()}function Af(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var jf=[];function Mf(e){z.useEffect(e,jf)}var Nf=class e{static create(){return new e}currentId=null;start(e,t){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,t()},e)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear};function Pf(){let e=Ad(Nf.create).current;return Mf(e.disposeEffect),e}function Ff(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=z.useState(!1),f=Pf(),p=z.useRef(!1),m=z.useRef(c);m.current=c;let h=c!=null,g=U(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),_={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},v=U(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),z.useEffect(()=>{!s&&h?p.current||(p.current=!0,f.start(l,()=>{p.current=!1,m.current?.()})):(p.current=!1,f.clear())},[f,h,s,l]),(0,H.jsx)(`span`,{className:g,style:_,children:(0,H.jsx)(`span`,{className:v})})}var If=co(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`]),Lf=550,Rf={},zf=[],Bf=()=>{};function Vf(e,t){let n=new Set(t),r=new Map,i=[];for(let t of e)n.has(t)?i.length>0&&(r.set(t,i),i=[]):i.push(t);let a=[];for(let e of t){let t=r.get(e);t&&a.push(...t),a.push(e)}return a.push(...i),a}function Hf({event:e,element:t,center:n}){let r=t?t.getBoundingClientRect():{width:0,height:0,left:0,top:0},i,a;if(n||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)i=Math.round(r.width/2),a=Math.round(r.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;i=Math.round(t-r.left),a=Math.round(n-r.top)}let o;if(n)o=Math.sqrt((2*r.width**2+r.height**2)/3),o%2==0&&(o+=1);else{let e=Math.max(Math.abs((t?t.clientWidth:0)-i),i)*2+2,n=Math.max(Math.abs((t?t.clientHeight:0)-a),a)*2+2;o=Math.sqrt(e**2+n**2)}return{rippleX:i,rippleY:a,rippleSize:o}}var Uf=Kr`
|
|
48
|
+
0% {
|
|
49
|
+
transform: scale(0);
|
|
50
|
+
opacity: 0.1;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
100% {
|
|
54
|
+
transform: scale(1);
|
|
55
|
+
opacity: 0.3;
|
|
56
|
+
}
|
|
57
|
+
`,Wf=Kr`
|
|
58
|
+
0% {
|
|
59
|
+
opacity: 1;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
100% {
|
|
63
|
+
opacity: 0;
|
|
64
|
+
}
|
|
65
|
+
`,Gf=Kr`
|
|
66
|
+
0% {
|
|
67
|
+
transform: scale(1);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
50% {
|
|
71
|
+
transform: scale(0.92);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
100% {
|
|
75
|
+
transform: scale(1);
|
|
76
|
+
}
|
|
77
|
+
`;function Kf(e){if(e.motion.reducedMotion===`always`)return null;let t=Gr`
|
|
78
|
+
&.${If.rippleVisible} {
|
|
79
|
+
animation-name: ${Uf};
|
|
80
|
+
animation-duration: ${Lf}ms;
|
|
81
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
&.${If.ripplePulsate} {
|
|
85
|
+
animation-duration: ${e.transitions.duration.shorter}ms;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
& .${If.childLeaving} {
|
|
89
|
+
animation-name: ${Wf};
|
|
90
|
+
animation-duration: ${Lf}ms;
|
|
91
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
& .${If.childPulsate} {
|
|
95
|
+
animation-name: ${Gf};
|
|
96
|
+
animation-duration: 2500ms;
|
|
97
|
+
animation-timing-function: ${e.transitions.easing.easeInOut};
|
|
98
|
+
animation-iteration-count: infinite;
|
|
99
|
+
animation-delay: 200ms;
|
|
100
|
+
}
|
|
101
|
+
`;return e.motion.reducedMotion===`system`?Gr`
|
|
102
|
+
@media (prefers-reduced-motion: no-preference) {
|
|
103
|
+
${t}
|
|
104
|
+
}
|
|
105
|
+
`:t}var qf=q(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),Jf=q(Ff,{name:`MuiTouchRipple`,slot:`Ripple`})`
|
|
106
|
+
opacity: 0;
|
|
107
|
+
position: absolute;
|
|
108
|
+
|
|
109
|
+
&.${If.rippleVisible} {
|
|
110
|
+
opacity: 0.3;
|
|
111
|
+
transform: scale(1);
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/*
|
|
115
|
+
* Order matters: 'child', 'childLeaving' and 'childPulsate' apply to the same
|
|
116
|
+
* element with equal specificity, so the later rule wins. 'child' must come
|
|
117
|
+
* before 'childLeaving' so the leaving 'opacity: 0' takes precedence. A focus
|
|
118
|
+
* (pulsate) ripple keeps 'pulsateKeyframe' (no opacity animation) on exit, so
|
|
119
|
+
* it relies on this static 'opacity: 0' to disappear on blur instead of
|
|
120
|
+
* lingering until removal.
|
|
121
|
+
*/
|
|
122
|
+
& .${If.child} {
|
|
123
|
+
opacity: 1;
|
|
124
|
+
display: block;
|
|
125
|
+
width: 100%;
|
|
126
|
+
height: 100%;
|
|
127
|
+
border-radius: 50%;
|
|
128
|
+
background-color: currentColor;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
& .${If.childLeaving} {
|
|
132
|
+
opacity: 0;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
& .${If.childPulsate} {
|
|
136
|
+
position: absolute;
|
|
137
|
+
/* @noflip */
|
|
138
|
+
left: 0px;
|
|
139
|
+
top: 0;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
${({theme:e})=>Kf(e)}
|
|
143
|
+
`,Yf=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTouchRipple`}),r=Jd(eu().motion.reducedMotion,!1),{center:i=!1,classes:a=Rf,className:o,...s}=n,[c,l]=z.useState({items:zf,order:zf}),u=c.items,d=z.useRef(0),f=z.useRef(null),p=z.useRef(!1);Mf(()=>(p.current=!0,()=>{p.current=!1})),z.useEffect(()=>{f.current&&=(f.current(),null)},[u]);let m=z.useRef(!1),h=Pf(),g=z.useRef(null),_=z.useRef(null),v=Ed(e=>{p.current&&l(t=>{let n=t.items.filter(t=>t.key!==e);return{items:n,order:Vf(t.order.filter(t=>t!==e),n.filter(e=>!e.exiting).map(e=>e.key))}})}),y=Ed(e=>{let{pulsate:t,rippleX:n,rippleY:r,rippleSize:i,cb:a}=e,o=d.current;d.current+=1,l(e=>{let a=[...e.items,{key:o,pulsate:t,rippleX:n,rippleY:r,rippleSize:i,exiting:!1}];return{items:a,order:Vf(e.order,a.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=a}),b=Ed((e=Rf,t=Rf,n=Bf)=>{let{pulsate:r=!1,center:a=i||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&m.current){m.current=!1;return}e?.type===`touchstart`&&(m.current=!0);let{rippleX:s,rippleY:c,rippleSize:l}=Hf({event:e,element:o?null:_.current,center:a});e?.touches?g.current===null&&(g.current=()=>{y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})},h.start(80,()=>{g.current&&=(g.current(),null)})):y({pulsate:r,rippleX:s,rippleY:c,rippleSize:l,cb:n})}),x=Ed(()=>{b(Rf,{pulsate:!0})}),S=Ed((e,t)=>{h.clear(),e?.type===`touchend`&&g.current?(g.current(),g.current=null,h.start(0,()=>{S(e,t)})):(g.current=null,l(e=>{let t=e.items.findIndex(e=>!e.exiting);if(t===-1)return e;let n=e.items.slice();return n[t]={...n[t],exiting:!0},{items:n,order:Vf(e.order,n.filter(e=>!e.exiting).map(e=>e.key))}}),f.current=t)});z.useImperativeHandle(t,()=>({pulsate:x,start:b,stop:S}),[x,b,S]);let C=new Map(u.map(e=>[e.key,e])),w=c.order.map(e=>C.get(e)).filter(Boolean);return(0,H.jsx)(qf,{className:U(If.root,a.root,o),ref:_,...s,children:w.map(e=>(0,H.jsx)(Jf,{classes:{ripple:U(a.ripple,If.ripple),rippleVisible:U(a.rippleVisible,If.rippleVisible),ripplePulsate:U(a.ripplePulsate,If.ripplePulsate),child:U(a.child,If.child),childLeaving:U(a.childLeaving,If.childLeaving),childPulsate:U(a.childPulsate,If.childPulsate)},timeout:r.shouldReduceMotion?0:Lf,pulsate:e.pulsate,rippleX:e.rippleX,rippleY:e.rippleY,rippleSize:e.rippleSize,in:!e.exiting,onExited:()=>v(e.key)},e.key))})});function Xf(e){return W(`MuiButtonBase`,e)}var Zf=co(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`]),Qf=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,suppressFocusVisible:i,classes:a}=e,o=G({root:[`root`,t&&`disabled`,n&&!i&&`focusVisible`]},Xf,a);return n&&!i&&r&&(o.root+=` ${r}`),o},$f=q(`button`,{name:`MuiButtonBase`,slot:`Root`})(J(({theme:e})=>({display:`inline-flex`,alignItems:`center`,justifyContent:`center`,position:`relative`,boxSizing:`border-box`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,textDecoration:`none`,color:`inherit`,"&::-moz-focus-inner":{borderStyle:`none`},[`&.${Zf.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`},variants:[{props:{internalDisabledThemeFocusVisible:!1},style:e.focusVisible&&{...Mc,[`&.${Zf.focusVisible}`]:e.focusVisible}}]}))),ep=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiButtonBase`}),{action:r,centerRipple:i=!1,children:a,className:o,component:s=`button`,disabled:c=!1,disableRipple:l=!1,disableTouchRipple:u=!1,focusRipple:d=!1,focusVisibleClassName:f,focusableWhenDisabled:p,suppressFocusVisible:m=!1,internalNativeButton:h,internalDisabledThemeFocusVisible:g=!1,LinkComponent:_=`a`,nativeButton:v,onBlur:y,onClick:b,onContextMenu:x,onDragLeave:S,onFocus:C,onFocusVisible:w,onKeyDown:T,onKeyUp:E,onMouseDown:D,onMouseLeave:O,onMouseUp:k,onTouchEnd:ee,onTouchMove:A,onTouchStart:j,tabIndex:M=0,TouchRippleProps:te,touchRippleRef:ne,type:N,...P}=n,re=!!(P.href||P.to),F=!!P.formAction,I=s;I===`button`&&re&&(I=_);let ie=typeof I==`string`?I===`button`:h??!1,L=v??ie,R=kf(),ae=au(R.ref,ne),[oe,se]=z.useState(!1);(c||m)&&oe&&se(!1);let ce=Ed(e=>{d&&!e.repeat&&oe&&e.key===` `&&R.stop(e,()=>{R.start(e)})}),B=Ed(e=>{d&&e.key===` `&&oe&&!e.defaultPrevented&&R.stop(e,()=>{R.pulsate(e)})}),{getButtonProps:le,rootRef:V}=Df({nativeButton:L,nativeButtonProp:v,internalNativeButton:ie,allowInferredHostMismatch:re||typeof I==`string`,disabled:c,type:N,hasFormAction:F,tabIndex:M,onBeforeKeyDown:ce,onBeforeKeyUp:B}),{onClick:ue,onKeyDown:de,onKeyUp:fe,...pe}=le({onClick:b,onKeyDown:T,onKeyUp:E});z.useImperativeHandle(r,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[V]);let me=R.shouldMount&&!l&&!c;z.useEffect(()=>{oe&&d&&!l&&R.pulsate()},[l,d,oe,R]);let he=tp(R,`start`,D,u),ge=tp(R,`stop`,x,u),_e=tp(R,`stop`,S,u),ve=tp(R,`stop`,k,u),ye=tp(R,`stop`,e=>{oe&&e.preventDefault(),O&&O(e)},u),be=tp(R,`start`,j,u),xe=tp(R,`stop`,ee,u),Se=tp(R,`stop`,A,u),Ce=tp(R,`stop`,e=>{wf(e.target)||se(!1),y&&y(e)},!1),we=Ed(e=>{V.current||=e.currentTarget,!m&&wf(e.target)&&(se(!0),w&&w(e)),C&&C(e)}),Te={};re&&(Te.tabIndex=c?-1:M,c&&(Te[`aria-disabled`]=c),Te.type=N);let Ee=au(t,V),De={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,suppressFocusVisible:m,tabIndex:M,focusVisible:oe,internalDisabledThemeFocusVisible:g},Oe=Qf(De);return(0,H.jsxs)($f,{as:I,className:U(Oe.root,o),ownerState:De,onBlur:Ce,onClick:ue,onContextMenu:ge,onFocus:we,onKeyDown:de,onKeyUp:fe,onMouseDown:he,onMouseLeave:ye,onMouseUp:ve,onDragLeave:_e,onTouchEnd:xe,onTouchMove:Se,onTouchStart:be,ref:Ee,...re?Te:pe,...P,children:[a,me?(0,H.jsx)(Yf,{ref:ae,center:i,...te}):null]})});function tp(e,t,n,r=!1){return Ed(i=>(n&&n(i),r||e[t](i),!0))}var np=e=>{let{classes:t,expanded:n,disabled:r,disableGutters:i}=e;return G({root:[`root`,n&&`expanded`,r&&`disabled`,!i&&`gutters`],focusVisible:[`focusVisible`],content:[`content`,n&&`expanded`],expandIconWrapper:[`expandIconWrapper`,n&&`expanded`]},Ml,t)},rp=q(ep,{name:`MuiAccordionSummary`,slot:`Root`})(J(({theme:e})=>({display:`flex`,width:`100%`,minHeight:48,padding:e.spacing(0,2),...Tu(e,[`min-height`,`background-color`],{duration:e.transitions.duration.shortest}),...!e.focusVisible&&{[`&.${Nl.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${Nl.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`&:hover:not(.${Nl.disabled})`]:{cursor:`pointer`},variants:[{props:e=>!e.disableGutters,style:{[`&.${Nl.expanded}`]:{minHeight:64}}}]}))),ip=q(`span`,{name:`MuiAccordionSummary`,slot:`Content`})(J(({theme:e})=>({display:`flex`,textAlign:`start`,flexGrow:1,margin:`12px 0`,variants:[{props:e=>!e.disableGutters,style:{...Tu(e,[`margin`],{duration:e.transitions.duration.shortest}),[`&.${Nl.expanded}`]:{margin:`20px 0`}}}]}))),ap=q(`span`,{name:`MuiAccordionSummary`,slot:`ExpandIconWrapper`})(J(({theme:e})=>({display:`flex`,color:(e.vars||e).palette.action.active,transform:`rotate(0deg)`,...Tu(e,`transform`,{duration:e.transitions.duration.shortest}),[`&.${Nl.expanded}`]:{transform:`rotate(180deg)`}}))),op=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAccordionSummary`}),{children:r,className:i,expandIcon:a,focusVisibleClassName:o,onClick:s,slots:c,slotProps:l,...u}=n,{disabled:d=!1,disableGutters:f,expanded:p,toggle:m}=z.useContext(ff),h=e=>{m&&m(e),s&&s(e)},g={...n,expanded:p,disabled:d,disableGutters:f},_=np(g),v={slots:c,slotProps:l},[y,b]=Q(`root`,{ref:t,shouldForwardComponentProp:!0,className:U(_.root,i),elementType:rp,externalForwardedProps:{...v,...u},ownerState:g,additionalProps:{focusRipple:!1,disableRipple:!0,internalNativeButton:!0,disabled:d,"aria-expanded":p,focusVisibleClassName:U(_.focusVisible,o)},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),h(t)}})}),[x,S]=Q(`content`,{className:_.content,elementType:ip,externalForwardedProps:v,ownerState:g}),[C,w]=Q(`expandIconWrapper`,{className:_.expandIconWrapper,elementType:ap,externalForwardedProps:v,ownerState:g});return(0,H.jsxs)(y,{...b,children:[(0,H.jsx)(x,{...S,children:r}),a&&(0,H.jsx)(C,{...w,children:a})]})});function sp(e){return typeof e.main==`string`}function cp(e,t=[]){if(!sp(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function lp(e=[]){return([,t])=>t&&cp(t,e)}function up(e){return W(`MuiAlert`,e)}var dp=co(`MuiAlert`,[`root`,`action`,`icon`,`message`,`filled`,`colorSuccess`,`colorInfo`,`colorWarning`,`colorError`,`outlined`,`standard`]);function fp(e){return W(`MuiCircularProgress`,e)}co(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDisableShrink`]);var pp=44,mp=Kr`
|
|
144
|
+
0% {
|
|
145
|
+
transform: rotate(0deg);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
100% {
|
|
149
|
+
transform: rotate(360deg);
|
|
150
|
+
}
|
|
151
|
+
`,hp=Kr`
|
|
152
|
+
0% {
|
|
153
|
+
stroke-dasharray: 1px, 200px;
|
|
154
|
+
stroke-dashoffset: 0;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
50% {
|
|
158
|
+
stroke-dasharray: 100px, 200px;
|
|
159
|
+
stroke-dashoffset: -15px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
100% {
|
|
163
|
+
stroke-dasharray: 1px, 200px;
|
|
164
|
+
stroke-dashoffset: -126px;
|
|
165
|
+
}
|
|
166
|
+
`,gp=typeof mp==`string`?null:Gr`
|
|
167
|
+
animation: ${mp} 1.4s linear infinite;
|
|
168
|
+
`,_p=typeof hp==`string`?null:Gr`
|
|
169
|
+
animation: ${hp} 1.4s ease-in-out infinite;
|
|
170
|
+
`,vp=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return G({root:[`root`,n,`color${X(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,i&&`circleDisableShrink`]},fp,t)},yp=q(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${X(n.color)}`]]}})(J(({theme:e})=>{let t=wu(e,{animation:`none`});return{display:`inline-block`,variants:[{props:{variant:`determinate`},style:{...Tu(e,`transform`)}},{props:{variant:`indeterminate`},style:gp||{animation:`${mp} 1.4s linear infinite`}},...t?[{props:{variant:`indeterminate`},style:t}]:[],...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}})),bp=q(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),xp=q(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,n.disableShrink&&t.circleDisableShrink]}})(J(({theme:e})=>{let t=wu(e,{animation:`none`});return{stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{...Tu(e,`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:_p||{animation:`${hp} 1.4s ease-in-out infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:t}]:[]]}})),Sp=q(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(J(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),Cp=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,min:s,max:c,size:l=40,style:u,thickness:d=3.6,value:f=n.min??0,variant:p=`indeterminate`,...m}=n,h=s??0,g=c??100,_={...n,color:i,disableShrink:a,size:l,thickness:d,value:f,variant:p,enableTrackSlot:o},v=vp(_),y={},b={},x={};if(p===`determinate`){let e=2*Math.PI*((pp-d)/2),t=g-h;y.strokeDasharray=e.toFixed(3),y.strokeDashoffset=t>0?`${((g-f)/t*e).toFixed(3)}px`:`${e.toFixed(3)}px`,b.transform=`rotate(-90deg)`,x[`aria-valuenow`]=f,x[`aria-valuemin`]=h,x[`aria-valuemax`]=g}return(0,H.jsx)(yp,{className:U(v.root,r),style:{width:l,height:l,...b,...u},ownerState:_,ref:t,role:`progressbar`,...x,...m,children:(0,H.jsxs)(bp,{className:v.svg,ownerState:_,viewBox:`${pp/2} ${pp/2} ${pp} ${pp}`,children:[o?(0,H.jsx)(Sp,{className:v.track,ownerState:_,cx:pp,cy:pp,r:(pp-d)/2,fill:`none`,strokeWidth:d,"aria-hidden":`true`}):null,(0,H.jsx)(xp,{className:v.circle,style:y,ownerState:_,cx:pp,cy:pp,r:(pp-d)/2,fill:`none`,strokeWidth:d})]})})});function wp(e){return W(`MuiIconButton`,e)}var Tp=co(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`]),Ep=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return G({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${X(r)}`,i&&`edge${X(i)}`,`size${X(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},wp,t)},Dp=q(ep,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${X(n.color)}`],n.edge&&t[`edge${X(n.edge)}`],t[`size${X(n.size)}`]]}})(J(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,...Tu(e,`background-color`,{duration:e.transitions.duration.shortest}),variants:[{props:e=>!e.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:`var(--IconButton-hoverBg)`,"@media (hover: none)":{backgroundColor:`transparent`}}}},{props:{edge:`start`},style:{marginLeft:-12}},{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:{edge:`end`},style:{marginRight:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}}]})),J(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main,"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:`small`},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:`large`},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${Tp.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${Tp.loading}`]:{color:`transparent`}}))),Op=q(`span`,{name:`MuiIconButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`,color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:`flex`}}]})),kp=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiIconButton`}),{edge:r=!1,children:i,className:a,color:o=`default`,disabled:s=!1,disableFocusRipple:c=!1,size:l=`medium`,id:u,loading:d=null,loadingIndicator:f,...p}=n,m=Cd(u),h=f??(0,H.jsx)(Cp,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=Ep(g);return(0,H.jsxs)(Dp,{id:d?m:u,className:U(_.root,a),centerRipple:!0,internalNativeButton:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,H.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,H.jsx)(Op,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),Ap=Z((0,H.jsx)(`path`,{d:`M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z`}),`SuccessOutlined`),jp=Z((0,H.jsx)(`path`,{d:`M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z`}),`ReportProblemOutlined`),Mp=Z((0,H.jsx)(`path`,{d:`M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`ErrorOutline`),Np=Z((0,H.jsx)(`path`,{d:`M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z`}),`InfoOutlined`),Pp=Z((0,H.jsx)(`path`,{d:`M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),Fp=e=>{let{variant:t,color:n,severity:r,classes:i}=e;return G({root:[`root`,`color${X(n||r)}`,`${t}`],icon:[`icon`],message:[`message`],action:[`action`]},up,i)},Ip=q(df,{name:`MuiAlert`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant]]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.darken:e.lighten,n=e.palette.mode===`light`?e.lighten:e.darken;return{...e.typography.body2,backgroundColor:`transparent`,display:`flex`,padding:`6px 16px`,variants:[...Object.entries(e.palette).filter(lp([`light`])).map(([r])=>({props:{colorSeverity:r,variant:`standard`},style:{color:e.vars?e.vars.palette.Alert[`${r}Color`]:t(e.palette[r].light,.6),backgroundColor:e.vars?e.vars.palette.Alert[`${r}StandardBg`]:n(e.palette[r].light,.9),[`& .${dp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${r}IconColor`]}:{color:e.palette[r].main}}})),...Object.entries(e.palette).filter(lp([`light`])).map(([n])=>({props:{colorSeverity:n,variant:`outlined`},style:{color:e.vars?e.vars.palette.Alert[`${n}Color`]:t(e.palette[n].light,.6),border:`1px solid ${(e.vars||e).palette[n].light}`,[`& .${dp.icon}`]:e.vars?{color:e.vars.palette.Alert[`${n}IconColor`]}:{color:e.palette[n].main}}})),...Object.entries(e.palette).filter(lp([`dark`])).map(([t])=>({props:{colorSeverity:t,variant:`filled`},style:{...e.focusVisible&&Nc(`0 0 0 4px ${(e.vars||e).palette.background.default}`),fontWeight:e.typography.fontWeightMedium,...e.vars?{color:e.vars.palette.Alert[`${t}FilledColor`],backgroundColor:e.vars.palette.Alert[`${t}FilledBg`]}:{backgroundColor:e.palette.mode===`dark`?e.palette[t].dark:e.palette[t].main,color:e.palette.getContrastText(e.palette[t].main)}}}))]}})),Lp=q(`div`,{name:`MuiAlert`,slot:`Icon`})({marginRight:12,padding:`7px 0`,display:`flex`,fontSize:22,opacity:.9}),Rp=q(`div`,{name:`MuiAlert`,slot:`Message`})({padding:`8px 0`,minWidth:0,overflow:`auto`}),zp=q(`div`,{name:`MuiAlert`,slot:`Action`})({display:`flex`,alignItems:`flex-start`,padding:`4px 0 0 16px`,marginLeft:`auto`,marginRight:-8}),Bp={success:(0,H.jsx)(Ap,{fontSize:`inherit`}),warning:(0,H.jsx)(jp,{fontSize:`inherit`}),error:(0,H.jsx)(Mp,{fontSize:`inherit`}),info:(0,H.jsx)(Np,{fontSize:`inherit`})},Vp=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAlert`}),{action:r,children:i,className:a,closeText:o=`Close`,color:s,icon:c,iconMapping:l=Bp,onClose:u,role:d=`alert`,severity:f=`success`,slotProps:p={},slots:m={},variant:h=`standard`,...g}=n,_={...n,color:s,severity:f,variant:h,colorSeverity:s||f},v=Fp(_),y={slots:m,slotProps:p},[b,x]=Q(`root`,{ref:t,shouldForwardComponentProp:!0,className:U(v.root,a),elementType:Ip,externalForwardedProps:{...y,...g},ownerState:_,additionalProps:{role:d,elevation:0}}),[S,C]=Q(`icon`,{className:v.icon,elementType:Lp,externalForwardedProps:y,ownerState:_}),[w,T]=Q(`message`,{className:v.message,elementType:Rp,externalForwardedProps:y,ownerState:_}),[E,D]=Q(`action`,{className:v.action,elementType:zp,externalForwardedProps:y,ownerState:_}),[O,k]=Q(`closeButton`,{elementType:kp,externalForwardedProps:y,ownerState:_}),[ee,A]=Q(`closeIcon`,{elementType:Pp,externalForwardedProps:y,ownerState:_});return(0,H.jsxs)(b,{...x,children:[c===!1?null:(0,H.jsx)(S,{...C,children:c||l[f]||Bp[f]}),(0,H.jsx)(w,{...T,children:i}),r==null?null:(0,H.jsx)(E,{...D,children:r}),r==null&&u?(0,H.jsx)(E,{...D,children:(0,H.jsx)(O,{size:`small`,"aria-label":o,title:o,color:`inherit`,onClick:u,...k,children:(0,H.jsx)(ee,{fontSize:`small`,...A})})}):null]})});function Hp(e){return W(`MuiTypography`,e)}var Up=co(`MuiTypography`,[`root`,`h1`,`h2`,`h3`,`h4`,`h5`,`h6`,`subtitle1`,`subtitle2`,`body1`,`body2`,`inherit`,`button`,`caption`,`overline`,`alignLeft`,`alignRight`,`alignCenter`,`alignJustify`,`noWrap`,`gutterBottom`]),Wp=e=>{let{align:t,gutterBottom:n,noWrap:r,variant:i,classes:a}=e;return G({root:[`root`,i,e.align!==`inherit`&&`align${X(t)}`,n&&`gutterBottom`,r&&`noWrap`]},Hp,a)},Gp=q(`span`,{name:`MuiTypography`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!==`inherit`&&t[`align${X(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom]}})(J(({theme:e})=>({margin:0,variants:[{props:{variant:`inherit`},style:{font:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},...Object.entries(e.typography).filter(([e,t])=>e!==`inherit`&&t&&typeof t==`object`).map(([e,t])=>({props:{variant:e},style:t})),...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,e])=>typeof e==`string`).map(([t])=>({props:{color:`text${X(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:e})=>e.align!==`inherit`,style:{textAlign:`var(--Typography-textAlign)`}},{props:({ownerState:e})=>e.noWrap,style:{overflow:`hidden`,textOverflow:`ellipsis`,whiteSpace:`nowrap`}},{props:({ownerState:e})=>e.gutterBottom,style:{marginBottom:`0.35em`}}]}))),Kp={h1:`h1`,h2:`h2`,h3:`h3`,h4:`h4`,h5:`h5`,h6:`h6`,subtitle1:`h6`,subtitle2:`h6`,body1:`p`,body2:`p`,inherit:`p`},qp=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTypography`}),{color:r,align:i=`inherit`,className:a,component:o,gutterBottom:s=!1,noWrap:c=!1,variant:l=`body1`,variantMapping:u=Kp,...d}=n,f={...n,align:i,color:r,className:a,component:o,gutterBottom:s,noWrap:c,variant:l,variantMapping:u},p=o||u[l]||Kp[l]||`span`,m=Wp(f);return(0,H.jsx)(Gp,{as:p,ref:t,className:U(m.root,a),...d,ownerState:f,style:{...i!==`inherit`&&{"--Typography-textAlign":i},...d.style}})});function Jp(e){return W(`MuiAlertTitle`,e)}co(`MuiAlertTitle`,[`root`]);var Yp=e=>{let{classes:t}=e;return G({root:[`root`]},Jp,t)},Xp=q(qp,{name:`MuiAlertTitle`,slot:`Root`})(J(({theme:e})=>({fontWeight:e.typography.fontWeightMedium,marginTop:-2}))),Zp=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAlertTitle`}),{className:r,...i}=n,a=n,o=Yp(a);return(0,H.jsx)(Xp,{gutterBottom:!0,component:`div`,ownerState:a,ref:t,className:U(o.root,r),...i})});function Qp(e){return W(`MuiAppBar`,e)}co(`MuiAppBar`,[`root`,`positionFixed`,`positionAbsolute`,`positionSticky`,`positionStatic`,`positionRelative`,`colorDefault`,`colorPrimary`,`colorSecondary`,`colorInherit`,`colorTransparent`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`]);var $p=e=>{let{color:t,position:n,classes:r}=e;return G({root:[`root`,`color${X(t)}`,`position${X(n)}`]},Qp,r)},em=(e,t)=>e?`${e.replace(`)`,``)}, ${t})`:t,tm=q(df,{name:`MuiAppBar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${X(n.position)}`],t[`color${X(n.color)}`]]}})(J(({theme:e})=>({display:`flex`,flexDirection:`column`,width:`100%`,boxSizing:`border-box`,flexShrink:0,variants:[{props:{position:`fixed`},style:{position:`fixed`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0,"@media print":{position:`absolute`}}},{props:{position:`absolute`},style:{position:`absolute`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`sticky`},style:{position:`sticky`,zIndex:(e.vars||e).zIndex.appBar,top:0,left:`auto`,right:0}},{props:{position:`static`},style:{position:`static`}},{props:{position:`relative`},style:{position:`relative`}},{props:{color:`inherit`},style:{"--AppBar-color":`inherit`,color:`var(--AppBar-color)`}},{props:{color:`default`},style:{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[100],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[100]),...e.applyStyles(`dark`,{"--AppBar-background":e.vars?e.vars.palette.AppBar.defaultBg:e.palette.grey[900],"--AppBar-color":e.vars?e.vars.palette.text.primary:e.palette.getContrastText(e.palette.grey[900])})}},...Object.entries(e.palette).filter(lp([`contrastText`])).map(([t])=>({props:{color:t},style:{"--AppBar-background":(e.vars??e).palette[t].main,"--AppBar-color":(e.vars??e).palette[t].contrastText,...e.focusVisible&&Nc(`0 0 0 4px ${(e.vars||e).palette.background.default}`)}})),{props:e=>e.enableColorOnDark===!0&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`}},{props:e=>e.enableColorOnDark===!1&&![`inherit`,`transparent`].includes(e.color),style:{backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundColor:e.vars?em(e.vars.palette.AppBar.darkBg,`var(--AppBar-background)`):null,color:e.vars?em(e.vars.palette.AppBar.darkColor,`var(--AppBar-color)`):null})}},{props:{color:`transparent`},style:{"--AppBar-background":`transparent`,"--AppBar-color":`inherit`,backgroundColor:`var(--AppBar-background)`,color:`var(--AppBar-color)`,...e.applyStyles(`dark`,{backgroundImage:`none`})}}]}))),nm=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAppBar`}),{className:r,color:i=`primary`,enableColorOnDark:a=!1,position:o=`fixed`,...s}=n,c={...n,color:i,position:o,enableColorOnDark:a},l=$p(c);return(0,H.jsx)(tm,{square:!0,component:`header`,ownerState:c,elevation:4,className:U(l.root,r,o===`fixed`&&`mui-fixed`),ref:t,...s})});function rm(){let[,e]=z.useState({});return z.useCallback(()=>{e({})},[])}function im(e,t){if(!e||!t)return!1;if(e.contains(t))return!0;let n=t.getRootNode?.();if(n&&n instanceof ShadowRoot){let n=t;for(;n;){if(e===n)return!0;n=n.parentNode??n.host??null}}return!1}function am(e){let t=z.useRef({});return z.useEffect(()=>{t.current=e}),t.current}var om=e=>e,sm=e=>({option:e});function cm({options:e,getOptionValue:t,isOptionEqualToValue:n,freeSolo:r,multiple:i,value:a}){let o=t??om,s=t!==void 0,c=z.useMemo(()=>new Set,[]),l=z.useCallback((e,i)=>t!==void 0&&r&&typeof i==`string`?!1:n?n(e,i):o(e)===i,[r,o,t,n]),u=z.useMemo(()=>t===void 0||n?null:new Map(e.map(e=>[t(e),e])),[t,n,e]),d=z.useMemo(()=>{if(!s)return sm;if(n){let t=new Map;return i=>{if(r&&typeof i==`string`)return{option:i};if(!t.has(i)){let r=e.findIndex(e=>n(e,i));t.set(i,r===-1?null:{option:e[r]})}return t.get(i)}}return e=>r&&typeof e==`string`?{option:e}:u.has(e)?{option:u.get(e)}:null},[r,s,n,u,e]),f=z.useRef([]),p=z.useCallback(e=>{let t=d(e);if(t!==null)return t;let n=f.current.findIndex(t=>l(t,e));return n===-1?null:{option:f.current[n]}},[d,l]),m=z.useMemo(()=>i?a:a==null?[]:[a],[i,a]),h=z.useMemo(()=>n||m.length===0?null:new Set(s&&r?m.filter(e=>typeof e!=`string`):m),[r,s,n,m]),g=z.useCallback(e=>h?h.has(o(e)):m.some(t=>t!=null&&l(e,t)),[o,l,m,h]);return z.useEffect(()=>{f.current.length>0&&(f.current=s?f.current.filter(g):[])}),{getOptionValue:o,isOptionEqualToValue:l,isOptionSelected:g,getOptionFromValue:p,rememberSelectedOption:z.useCallback((e,t)=>{s&&d(t)===null&&(f.current=[...f.current.filter(e=>g(e)&&!l(e,t)),e])},[s,d,g,l,r,c])}}function lm({array1:e,array2:t,parser:n=e=>e}){return e&&t&&e.length===t.length&&e.every((e,r)=>n(e)===n(t[r]))}function um(e){return e.normalize(`NFD`).replace(/[\u0300-\u036f]/g,``)}function dm(e={}){let{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i=`any`,stringify:a,trim:o=!1}=e;return(e,{inputValue:s,getOptionLabel:c})=>{let l=o?s.trim():s;n&&(l=l.toLowerCase()),t&&(l=um(l));let u=l?[]:e;if(l){let o=Number.isInteger(r)&&r>0?r:1/0;e.some(e=>{let r=(a||c)(e);return n&&(r=r.toLowerCase()),t&&(r=um(r)),(i===`start`?r.startsWith(l):r.includes(l))&&u.push(e),u.length>=o})}return typeof r==`number`?u.slice(0,r):u}}var fm=dm(),pm=5,mm=e=>e.current!==null&&im(e.current.parentElement,document.activeElement),hm=e=>e.label??e,gm=[];function _m(e,t,n,r,i){if(t||e==null||r)return``;let a=i(e);if(a===null)return``;let o=n(a.option);return typeof o==`string`?o:``}function vm(e){let{unstable_isActiveElementInListbox:t=mm,unstable_classNamePrefix:n=`Mui`,autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,clearOnBlur:s=!e.freeSolo,clearOnEscape:c=!1,componentName:l=`useAutocomplete`,defaultValue:u=e.multiple?gm:null,disableClearable:d=!1,disableCloseOnSelect:f=!1,disabled:p,disabledItemsFocusable:m=!1,disableListWrap:h=!1,filterOptions:g=fm,filterSelectedOptions:_=!1,freeSolo:v=!1,getOptionDisabled:y,getOptionKey:b,getOptionLabel:x=hm,getOptionValue:S,groupBy:C,handleHomeEndKeys:w=!e.freeSolo,id:T,includeInputInList:E=!1,inputValue:D,isOptionEqualToValue:O,multiple:k=!1,onChange:ee,onClose:A,onHighlightChange:j,onInputChange:M,onOpen:te,open:ne,openOnFocus:N=!1,options:P,readOnly:re=!1,renderValue:F,resetHighlightOnMouseLeave:I=!1,selectOnFocus:ie=!e.freeSolo,value:L}=e,[R,ae]=wd({controlled:L,default:u,name:l}),{getOptionValue:oe,isOptionEqualToValue:se,isOptionSelected:ce,getOptionFromValue:B,rememberSelectedOption:le}=cm({options:P,getOptionValue:S,isOptionEqualToValue:O,freeSolo:v,multiple:k,value:R}),V=ls(T),ue=x;ue=e=>{let t=x(e);return typeof t==`string`?t:String(t)};let de=z.useRef(!1),fe=z.useRef(!0),pe=z.useRef(null),me=z.useRef(!1),he=z.useRef(null),ge=z.useRef(!1),_e=z.useRef(!1),[ve,ye]=z.useState(null),[be,xe]=z.useState(-1),Se=i?0:-1,Ce=z.useRef(Se),we=z.useRef(null),Te=z.useRef(!1),Ee=z.useRef(!1),[De]=z.useState(()=>_m(u??L,k,ue,void 0,B)),[Oe,ke]=wd({controlled:D,default:De,name:l,state:`inputValue`}),[Ae,je]=z.useState(!1),Me=z.useCallback((e,t,n)=>{if(!(k?R.length<t.length:t!==null)&&!s&&(n!==`reset`||!v||k||t!==null))return;let r=_m(t,k,ue,F,B);me.current=!1,Oe!==r&&(ke(r),M&&M(e,r,n))},[ue,Oe,k,M,ke,s,v,B,R,F]),[Ne,Pe]=wd({controlled:ne,default:!1,name:l,state:`open`}),[Fe,Ie]=z.useState(!0),Le=!k&&R!=null?B(R):null,Re=Le!==null,ze=Le!==null&&Oe===ue(Le.option),Be=Ne&&!re,Ve=Be?g(P.filter(e=>!(_&&ce(e))),{inputValue:ze&&Fe?``:Oe,getOptionLabel:ue}):[],He=am({filteredOptions:Ve,value:R,inputValue:Oe,hasSelectedOption:Re});z.useEffect(()=>{let e=R!==He.value,t=S!==void 0&&He.hasSelectedOption===!1&&Re&&Oe===``&&!me.current;Ae&&!e&&!t||v&&(!e&&!t||R==null&&He.value===void 0)||Me(null,R,`reset`)},[R,Me,Ae,He.value,He.hasSelectedOption,v,S,Re,Oe]);let Ue=Ne&&Ve.length>0&&!re,We=Hl(e=>{e===-1?pe.current.focus():ve.querySelector(`[data-item-index="${e}"]`).focus()});z.useEffect(()=>{k&&be>R.length-1&&(xe(-1),We(-1))},[R,k,be,We]);function Ge(e,t){if(!he.current||e<0||e>=Ve.length)return-1;let n=e;for(;;){let r=he.current.querySelector(`[data-option-index="${n}"]`),i=m?!1:!r||r.disabled||r.getAttribute(`aria-disabled`)===`true`;if(r&&r.hasAttribute(`tabindex`)&&!i)return n;if(n=t===`next`?(n+1)%Ve.length:(n-1+Ve.length)%Ve.length,n===e)return-1}}let Ke=Hl(({index:e,reason:t,preserveScroll:r=!1})=>{if(pe.current==null&&he.current==null||(e===-1?pe.current.removeAttribute(`aria-activedescendant`):pe.current.setAttribute(`aria-activedescendant`,`${V}-option-${e}`),!he.current))return;let i=he.current.querySelector(`[role="option"].${n}-focused`);i&&(i.classList.remove(`${n}-focused`),i.classList.remove(`${n}-focusVisible`));let a=he.current;if(he.current.getAttribute(`role`)!==`listbox`&&(a=he.current.parentElement.querySelector(`[role="listbox"]`)),!a)return;if(e===-1){r||(a.scrollTop=0);return}let o=he.current.querySelector(`[data-option-index="${e}"]`);if(o&&(o.classList.add(`${n}-focused`),t===`keyboard`&&o.classList.add(`${n}-focusVisible`),a.scrollHeight>a.clientHeight&&t!==`mouse`&&t!==`touch`)){let e=o,t=a.clientHeight+a.scrollTop,n=e.offsetTop+e.offsetHeight;n>t?a.scrollTop=n-a.clientHeight:e.offsetTop-e.offsetHeight*(C?1.3:0)<a.scrollTop&&(a.scrollTop=e.offsetTop-e.offsetHeight*(C?1.3:0))}}),qe=Hl(({event:e,index:t,reason:n,preserveScroll:r=!1})=>{Ce.current=t,we.current=n??null,j&&[`mouse`,`keyboard`,`touch`].includes(n)&&j(e,t===-1?null:Ve[t],n),Ke({index:t,reason:n,preserveScroll:r})}),Je=Hl(({index:e})=>{Ce.current=e,Ke({index:e,reason:we.current})}),Ye=Hl(({event:e,diff:t,direction:n=`next`,reason:i,preserveScroll:a})=>{if(!Be)return;i===`keyboard`&&(Te.current=!1,Ee.current=!1);let o=Ge((()=>{let e=Ve.length-1;if(t===`reset`)return Se;if(t===`start`)return 0;if(t===`end`)return e;let n=Ce.current+t;return n<0?n===-1&&E?-1:h&&Ce.current!==-1||Math.abs(t)>1?0:e:n>e?n===e+1&&E?-1:h||Math.abs(t)>1?e:0:n})(),n);if(qe({index:o,reason:i,event:e,preserveScroll:a}),r&&t!==`reset`){if(o===-1)pe.current.value=Oe;else{let e=ue(Ve[o]);pe.current.value=e,e.toLowerCase().indexOf(Oe.toLowerCase())===0&&Oe.length>0&&pe.current.setSelectionRange(Oe.length,e.length)}}}),Xe=!lm({array1:He.filteredOptions,array2:Ve,parser:ue}),Ze=()=>{let e=(e,t)=>{if(e==null||t==null)return e===t;let n=B(e),r=B(t);return n===null||r===null?e===t:ue(n.option)===ue(r.option)};if(Ce.current!==-1&&!lm({array1:He.filteredOptions,array2:Ve,parser:ue})&&He.inputValue===Oe&&(k?R.length===He.value.length&&He.value.every((t,n)=>e(R[n],t)):e(He.value,R))){let e=He.filteredOptions[Ce.current];if(e)return Ve.findIndex(t=>ue(t)===ue(e))}return-1},Qe=z.useCallback(()=>{if(!Be)return;let e=Ze();if(e!==-1){Je({index:e});return}let t=k?R[0]:R;if(Ve.length===0||t==null){let e=Xe&&He.inputValue===Oe&&He.filteredOptions?.length>0&&Ve.length>He.filteredOptions.length&&He.filteredOptions.every((e,t)=>ue(e)===ue(Ve[t]));Ye({diff:`reset`,preserveScroll:e})}else if(he.current){if(t!=null){let e=Ve[Ce.current];if(k&&e&&R.findIndex(t=>se(e,t))!==-1&&He.filteredOptions?.length>0){Je({index:Ce.current});return}let n=Ve.findIndex(e=>se(e,t));n===-1?Ye({diff:`reset`}):qe({index:n})}else Ce.current>=Ve.length-1?qe({index:Ve.length-1}):qe({index:Ce.current})}},[Ve.length,!k&&R,Ye,qe,Je,Be,Oe,k]),$e=Hl(e=>{Sd(he,e),e&&Qe()});z.useEffect(()=>{(Xe||Be&&!f)&&Qe()},[Qe,Xe,Be,f]),z.useEffect(()=>{if(typeof window>`u`)return;let e=()=>{_e.current=!0};return window.addEventListener(`blur`,e),()=>{window.removeEventListener(`blur`,e)}},[]);let et=e=>{Ne||(Pe(!0),Ie(!0),Ee.current=!1,te&&te(e))},tt=(e,t)=>{Ne&&(Pe(!1),Te.current=!1,we.current=null,A&&A(e,t))},nt=(e,t,n,r)=>{if(k){if(R.length===t.length&&R.every((e,n)=>e===t[n]))return}else if(R===t)return;ee&&ee(e,t,n,r),ae(t)},rt=e=>{let t=B(e);return t===null?void 0:{option:t.option}},it=(e,t,n=`selectOption`,r=`options`)=>{let i=n,a=r===`options`?oe(t):t,s=a;if(k){s=Array.isArray(R)?R.slice():[];let e=S!==void 0&&r===`freeSolo`?s.indexOf(a):s.findIndex(e=>se(t,e));e===-1?s.push(a):r!==`freeSolo`&&(s.splice(e,1),i=`removeOption`)}r===`options`&&i!==`removeOption`&&le(t,a),Me(e,s,i),nt(e,s,i,{option:t}),f||e&&(e.ctrlKey||e.metaKey)||tt(e,i),(o===!0||o===`touch`&&Ee.current||o===`mouse`&&!Ee.current)&&pe.current.blur()};function at(e,t){if(e===-1)return-1;let n=e;for(;;){if(t===`next`&&n===R.length||t===`previous`&&n===-1)return-1;let e=ve.querySelector(`[data-item-index="${n}"]`);if(!e||!e.hasAttribute(`tabindex`)||e.disabled||e.getAttribute(`aria-disabled`)===`true`)n+=t===`next`?1:-1;else return n}}let ot=(e,t)=>{if(!k)return;Oe===``&&tt(e,`toggleInput`);let n=be;be===-1&&t===`previous`?(n=R.length-1,v&&Oe!==``&&(ke(``),M&&M(e,``,`reset`))):(n+=t===`next`?1:-1,n<0&&(n=0),n===R.length&&(n=-1)),n=at(n,t),xe(n),We(n)},st=e=>{me.current=!0,ke(``),M&&M(e,``,`clear`),nt(e,k?[]:null,`clear`)},ct=e=>t=>{if(e.onKeyDown&&e.onKeyDown(t),!t.defaultMuiPrevented&&(be!==-1&&![`ArrowLeft`,`ArrowRight`].includes(t.key)&&(xe(-1),We(-1)),t.which!==229))switch(t.key){case`Home`:Be&&w&&(t.preventDefault(),Ye({diff:`start`,direction:`next`,reason:`keyboard`,event:t}));break;case`End`:Be&&w&&(t.preventDefault(),Ye({diff:`end`,direction:`previous`,reason:`keyboard`,event:t}));break;case`PageUp`:t.preventDefault(),Ye({diff:-5,direction:`previous`,reason:`keyboard`,event:t}),et(t);break;case`PageDown`:t.preventDefault(),Ye({diff:pm,direction:`next`,reason:`keyboard`,event:t}),et(t);break;case`ArrowDown`:t.preventDefault(),Ye({diff:1,direction:`next`,reason:`keyboard`,event:t}),et(t);break;case`ArrowUp`:t.preventDefault(),Ye({diff:-1,direction:`previous`,reason:`keyboard`,event:t}),et(t);break;case`ArrowLeft`:{let e=pe.current;if(!(e&&e.selectionStart===0&&e.selectionEnd===0))return;!k&&F&&R!=null?(v&&Oe!==``&&(ke(``),M&&M(t,``,`reset`)),xe(0),We(0)):ot(t,`previous`);break}case`ArrowRight`:!k&&F?(xe(-1),We(-1)):ot(t,`next`);break;case`Enter`:{let e=Be&&Ce.current!==-1&&we.current===null,n=v&&!Fe&&e,i=!v||Fe||!e,a=n&&!Te.current;if(Ce.current!==-1&&Be&&i&&!Te.current){let e=Ve[Ce.current],n=y?y(e):!1;if(t.preventDefault(),n)return;it(t,e,`selectOption`),r&&pe.current.setSelectionRange(pe.current.value.length,pe.current.value.length)}else v&&Oe!==``&&ze===!1?((k||a)&&t.preventDefault(),it(t,Oe,`createOption`,`freeSolo`)):Be&&Te.current&&(t.preventDefault(),tt(t,`escape`));break}case`Escape`:Be?(t.preventDefault(),t.stopPropagation(),tt(t,`escape`)):c&&(Oe!==``||k&&R.length>0||F)&&(t.preventDefault(),t.stopPropagation(),st(t));break;case`Backspace`:if(ge.current){ge.current=!1;break}if(k&&!re&&Oe===``&&R.length>0){let e=be===-1?R.length-1:be,n=R.slice();n.splice(e,1),nt(t,n,`removeOption`,rt(R[e])),be!==-1&&(ge.current=!0,setTimeout(()=>{ge.current&&=!1},0))}!k&&F&&!re&&Oe===``&&nt(t,null,`removeOption`,rt(R));break;case`Delete`:if(k&&!re&&Oe===``&&R.length>0&&be!==-1){let e=be,n=R.slice();n.splice(e,1),nt(t,n,`removeOption`,rt(R[e]))}!k&&F&&!re&&Oe===``&&nt(t,null,`removeOption`,rt(R))}},lt=e=>{je(!0),be!==-1&&(xe(-1),We(-1)),_e.current?_e.current=!1:N&&!de.current&&et(e)},ut=e=>{t(he)?pe.current.focus():(je(!1),fe.current=!0,de.current=!1,a&&Ce.current!==-1&&Be&&we.current!==`mouse`&&we.current!==`touch`?it(e,Ve[Ce.current],`blur`):a&&v&&Oe!==``?it(e,Oe,`blur`,`freeSolo`):s&&Me(e,R,`blur`),tt(e,`blur`))},dt=e=>{let t=e.target.value,n=Oe!==t;n&&(me.current=!0,ke(t),Te.current=!1,M&&M(e,t,`input`)),t===``?d||k||F||nt(e,null,`clear`):et(e),n&&Ie(!1)},ft=e=>{let t=Number(e.currentTarget.getAttribute(`data-option-index`));Ce.current===t?we.current=`mouse`:qe({event:e,index:t,reason:`mouse`}),Ee.current||(Te.current=!1)},pt=e=>{I&&Ce.current!==-1&&we.current===`mouse`&&!Ee.current&&qe({event:e,index:-1,reason:`mouse`,preserveScroll:!0})},mt=e=>{Te.current=!1,qe({event:e,index:Number(e.currentTarget.getAttribute(`data-option-index`)),reason:`touch`}),Ee.current=!0},ht=e=>{let t=Number(e.currentTarget.getAttribute(`data-option-index`));it(e,Ve[t],`selectOption`),Ee.current=!1},gt=e=>t=>{let n=R.slice();n.splice(e,1),nt(t,n,`removeOption`,rt(R[e]))},_t=e=>{nt(e,null,`removeOption`,rt(R))},vt=e=>{Ne?tt(e,`toggleInput`):et(e)},yt=e=>{im(e.currentTarget,e.target)&&(!ve||im(ve,e.target))&&e.target.getAttribute(`id`)!==V&&e.preventDefault()},bt=e=>{im(e.currentTarget,e.target)&&(!ve||im(ve,e.target))&&(pe.current.focus(),ie&&fe.current&&pe.current.selectionEnd-pe.current.selectionStart===0&&pe.current.select(),fe.current=!1)},xt=e=>{p||Oe!==``&&Ne||e.button!==0||vt(e)},St=v&&Oe.length>0;St||=k?R.length>0:R!==null;let Ct=Ve;return C&&(Ct=Ve.reduce((e,t,n)=>{let r=C(t);return e.length>0&&e[e.length-1].group===r?e[e.length-1].options.push(t):e.push({key:n,index:n,group:r,options:[t]}),e},[])),p&&Ae&&ut(),{getRootProps:(e={})=>({...e,onKeyDown:ct(e),onMouseDown:yt,onClick:bt}),getInputLabelProps:()=>({id:`${V}-label`,htmlFor:V}),getInputProps:()=>({id:V,value:Oe,onBlur:ut,onFocus:lt,onChange:dt,onMouseDown:xt,"aria-activedescendant":Be?``:null,"aria-autocomplete":r?`both`:`list`,"aria-controls":Ue?`${V}-listbox`:void 0,"aria-expanded":Ue,autoComplete:`off`,ref:pe,autoCapitalize:`none`,spellCheck:`false`,role:`combobox`,disabled:p}),getClearProps:()=>({tabIndex:-1,type:`button`,onClick:e=>{de.current=!0,st(e)}}),getItemProps:({index:e=0}={})=>({...k&&{key:e},"data-item-index":e,tabIndex:-1,onFocus:()=>{be!==e&&xe(e)},...!re&&{onDelete:k?gt(e):_t}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:`button`,onClick:vt}),getListboxProps:(e={})=>({...e,role:`listbox`,id:`${V}-listbox`,"aria-labelledby":`${V}-label`,"aria-multiselectable":k||void 0,ref:$e,onMouseDown:t=>{e.onMouseDown?.(t),t.defaultMuiPrevented||t.preventDefault()},onScroll:t=>{e.onScroll?.(t),t.defaultMuiPrevented||Ee.current&&(Te.current=!0)},onMouseLeave:t=>{e.onMouseLeave?.(t),t.defaultMuiPrevented||pt(t)}}),getOptionFromValue:B,getOptionProps:({index:e,option:t})=>{let n=ce(t),r=y?y(t):!1;return{key:b?.(t)??ue(t),tabIndex:-1,role:`option`,id:`${V}-option-${e}`,onMouseMove:ft,onClick:ht,onTouchStart:mt,"data-option-index":e,"aria-disabled":r,"aria-selected":n}},id:V,inputValue:Oe,value:R,dirty:St,expanded:Be&&ve,popupOpen:Be,focused:Ae||be!==-1,anchorEl:ve,setAnchorEl:ye,focusedItem:be,groupedOptions:Ct}}var ym=`bottom`,bm=`right`,xm=`left`,Sm=`auto`,Cm=[`top`,ym,bm,xm],wm=`start`,Tm=`clippingParents`,Em=`viewport`,Dm=`popper`,Om=`reference`,km=Cm.reduce(function(e,t){return e.concat([t+`-`+wm,t+`-end`])},[]),Am=[].concat(Cm,[Sm]).reduce(function(e,t){return e.concat([t,t+`-`+wm,t+`-end`])},[]),jm=[`beforeRead`,`read`,`afterRead`,`beforeMain`,`main`,`afterMain`,`beforeWrite`,`write`,`afterWrite`];function Mm(e){return e?(e.nodeName||``).toLowerCase():null}function Nm(e){if(e==null)return window;if(e.toString()!==`[object Window]`){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pm(e){return e instanceof Nm(e).Element||e instanceof Element}function Fm(e){return e instanceof Nm(e).HTMLElement||e instanceof HTMLElement}function Im(e){return typeof ShadowRoot>`u`?!1:e instanceof Nm(e).ShadowRoot||e instanceof ShadowRoot}function Lm(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},i=t.elements[e];Fm(i)&&Mm(i)&&(Object.assign(i.style,n),Object.keys(r).forEach(function(e){var t=r[e];t===!1?i.removeAttribute(e):i.setAttribute(e,t===!0?``:t)}))})}function Rm(e){var t=e.state,n={popper:{position:t.options.strategy,left:`0`,top:`0`,margin:`0`},arrow:{position:`absolute`},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(e){var r=t.elements[e],i=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce(function(e,t){return e[t]=``,e},{});Fm(r)&&Mm(r)&&(Object.assign(r.style,a),Object.keys(i).forEach(function(e){r.removeAttribute(e)}))})}}var zm={name:`applyStyles`,enabled:!0,phase:`write`,fn:Lm,effect:Rm,requires:[`computeStyles`]};function Bm(e){return e.split(`-`)[0]}var Vm=Math.max,Hm=Math.min,Um=Math.round;function Wm(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+`/`+e.version}).join(` `):navigator.userAgent}function Gm(){return!/^((?!chrome|android).)*safari/i.test(Wm())}function Km(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Fm(e)&&(i=e.offsetWidth>0&&Um(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Um(r.height)/e.offsetHeight||1);var o=(Pm(e)?Nm(e):window).visualViewport,s=!Gm()&&n,c=(r.left+(s&&o?o.offsetLeft:0))/i,l=(r.top+(s&&o?o.offsetTop:0))/a,u=r.width/i,d=r.height/a;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c,x:c,y:l}}function qm(e){var t=Km(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function Jm(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Im(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Ym(e){return Nm(e).getComputedStyle(e)}function Xm(e){return[`table`,`td`,`th`].indexOf(Mm(e))>=0}function Zm(e){return((Pm(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qm(e){return Mm(e)===`html`?e:e.assignedSlot||e.parentNode||(Im(e)?e.host:null)||Zm(e)}function $m(e){return!Fm(e)||Ym(e).position===`fixed`?null:e.offsetParent}function eh(e){var t=/firefox/i.test(Wm());if(/Trident/i.test(Wm())&&Fm(e)&&Ym(e).position===`fixed`)return null;var n=Qm(e);for(Im(n)&&(n=n.host);Fm(n)&&[`html`,`body`].indexOf(Mm(n))<0;){var r=Ym(n);if(r.transform!==`none`||r.perspective!==`none`||r.contain===`paint`||[`transform`,`perspective`].indexOf(r.willChange)!==-1||t&&r.willChange===`filter`||t&&r.filter&&r.filter!==`none`)return n;n=n.parentNode}return null}function th(e){for(var t=Nm(e),n=$m(e);n&&Xm(n)&&Ym(n).position===`static`;)n=$m(n);return n&&(Mm(n)===`html`||Mm(n)===`body`&&Ym(n).position===`static`)?t:n||eh(e)||t}function nh(e){return[`top`,`bottom`].indexOf(e)>=0?`x`:`y`}function rh(e,t,n){return Vm(e,Hm(t,n))}function ih(e,t,n){var r=rh(e,t,n);return r>n?n:r}function ah(){return{top:0,right:0,bottom:0,left:0}}function oh(e){return Object.assign({},ah(),e)}function sh(e,t){return t.reduce(function(t,n){return t[n]=e,t},{})}var ch=function(e,t){return e=typeof e==`function`?e(Object.assign({},t.rects,{placement:t.placement})):e,oh(typeof e==`number`?sh(e,Cm):e)};function lh(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,o=n.modifiersData.popperOffsets,s=Bm(n.placement),c=nh(s),l=[`left`,`right`].indexOf(s)>=0?`height`:`width`;if(a&&o){var u=ch(i.padding,n),d=qm(a),f=c===`y`?`top`:xm,p=c===`y`?ym:bm,m=n.rects.reference[l]+n.rects.reference[c]-o[c]-n.rects.popper[l],h=o[c]-n.rects.reference[c],g=th(a),_=g?c===`y`?g.clientHeight||0:g.clientWidth||0:0,v=m/2-h/2,y=u[f],b=_-d[l]-u[p],x=_/2-d[l]/2+v,S=rh(y,x,b),C=c;n.modifiersData[r]=(t={},t[C]=S,t.centerOffset=S-x,t)}}function uh(e){var t=e.state,n=e.options.element,r=n===void 0?`[data-popper-arrow]`:n;r!=null&&(typeof r==`string`&&(r=t.elements.popper.querySelector(r),!r)||Jm(t.elements.popper,r)&&(t.elements.arrow=r))}var dh={name:`arrow`,enabled:!0,phase:`main`,fn:lh,effect:uh,requires:[`popperOffsets`],requiresIfExists:[`preventOverflow`]};function fh(e){return e.split(`-`)[1]}var ph={top:`auto`,right:`auto`,bottom:`auto`,left:`auto`};function mh(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Um(n*i)/i||0,y:Um(r*i)/i||0}}function hh(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,o=e.offsets,s=e.position,c=e.gpuAcceleration,l=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=o.x,p=f===void 0?0:f,m=o.y,h=m===void 0?0:m,g=typeof u==`function`?u({x:p,y:h}):{x:p,y:h};p=g.x,h=g.y;var _=o.hasOwnProperty(`x`),v=o.hasOwnProperty(`y`),y=xm,b=`top`,x=window;if(l){var S=th(n),C=`clientHeight`,w=`clientWidth`;if(S===Nm(n)&&(S=Zm(n),Ym(S).position!==`static`&&s===`absolute`&&(C=`scrollHeight`,w=`scrollWidth`)),S=S,i===`top`||(i===`left`||i===`right`)&&a===`end`){b=ym;var T=d&&S===x&&x.visualViewport?x.visualViewport.height:S[C];h-=T-r.height,h*=c?1:-1}if(i===`left`||(i===`top`||i===`bottom`)&&a===`end`){y=bm;var E=d&&S===x&&x.visualViewport?x.visualViewport.width:S[w];p-=E-r.width,p*=c?1:-1}}var D=Object.assign({position:s},l&&ph),O=u===!0?mh({x:p,y:h},Nm(n)):{x:p,y:h};if(p=O.x,h=O.y,c){var k;return Object.assign({},D,(k={},k[b]=v?`0`:``,k[y]=_?`0`:``,k.transform=(x.devicePixelRatio||1)<=1?`translate(`+p+`px, `+h+`px)`:`translate3d(`+p+`px, `+h+`px, 0)`,k))}return Object.assign({},D,(t={},t[b]=v?h+`px`:``,t[y]=_?p+`px`:``,t.transform=``,t))}function gh(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0||r,a=n.adaptive,o=a===void 0||a,s=n.roundOffsets,c=s===void 0||s,l={placement:Bm(t.placement),variation:fh(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy===`fixed`};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,hh(Object.assign({},l,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:o,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,hh(Object.assign({},l,{offsets:t.modifiersData.arrow,position:`absolute`,adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}var _h={name:`computeStyles`,enabled:!0,phase:`beforeWrite`,fn:gh,data:{}},vh={passive:!0};function yh(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0||i,o=r.resize,s=o===void 0||o,c=Nm(t.elements.popper),l=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&l.forEach(function(e){e.addEventListener(`scroll`,n.update,vh)}),s&&c.addEventListener(`resize`,n.update,vh),function(){a&&l.forEach(function(e){e.removeEventListener(`scroll`,n.update,vh)}),s&&c.removeEventListener(`resize`,n.update,vh)}}var bh={name:`eventListeners`,enabled:!0,phase:`write`,fn:function(){},effect:yh,data:{}},xh={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function Sh(e){return e.replace(/left|right|bottom|top/g,function(e){return xh[e]})}var Ch={start:`end`,end:`start`};function wh(e){return e.replace(/start|end/g,function(e){return Ch[e]})}function Th(e){var t=Nm(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Eh(e){return Km(Zm(e)).left+Th(e).scrollLeft}function Dh(e,t){var n=Nm(e),r=Zm(e),i=n.visualViewport,a=r.clientWidth,o=r.clientHeight,s=0,c=0;if(i){a=i.width,o=i.height;var l=Gm();(l||!l&&t===`fixed`)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:a,height:o,x:s+Eh(e),y:c}}function Oh(e){var t=Zm(e),n=Th(e),r=e.ownerDocument?.body,i=Vm(t.scrollWidth,t.clientWidth,r?r.scrollWidth:0,r?r.clientWidth:0),a=Vm(t.scrollHeight,t.clientHeight,r?r.scrollHeight:0,r?r.clientHeight:0),o=-n.scrollLeft+Eh(e),s=-n.scrollTop;return Ym(r||t).direction===`rtl`&&(o+=Vm(t.clientWidth,r?r.clientWidth:0)-i),{width:i,height:a,x:o,y:s}}function kh(e){var t=Ym(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Ah(e){return[`html`,`body`,`#document`].indexOf(Mm(e))>=0?e.ownerDocument.body:Fm(e)&&kh(e)?e:Ah(Qm(e))}function jh(e,t){t===void 0&&(t=[]);var n=Ah(e),r=n===e.ownerDocument?.body,i=Nm(n),a=r?[i].concat(i.visualViewport||[],kh(n)?n:[]):n,o=t.concat(a);return r?o:o.concat(jh(Qm(a)))}function Mh(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Nh(e,t){var n=Km(e,!1,t===`fixed`);return n.top+=e.clientTop,n.left+=e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Ph(e,t,n){return t===`viewport`?Mh(Dh(e,n)):Pm(t)?Nh(t,n):Mh(Oh(Zm(e)))}function Fh(e){var t=jh(Qm(e)),n=[`absolute`,`fixed`].indexOf(Ym(e).position)>=0&&Fm(e)?th(e):e;return Pm(n)?t.filter(function(e){return Pm(e)&&Jm(e,n)&&Mm(e)!==`body`}):[]}function Ih(e,t,n,r){var i=t===`clippingParents`?Fh(e):[].concat(t),a=[].concat(i,[n]),o=a[0],s=a.reduce(function(t,n){var i=Ph(e,n,r);return t.top=Vm(i.top,t.top),t.right=Hm(i.right,t.right),t.bottom=Hm(i.bottom,t.bottom),t.left=Vm(i.left,t.left),t},Ph(e,o,r));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Lh(e){var t=e.reference,n=e.element,r=e.placement,i=r?Bm(r):null,a=r?fh(r):null,o=t.x+t.width/2-n.width/2,s=t.y+t.height/2-n.height/2,c;switch(i){case`top`:c={x:o,y:t.y-n.height};break;case ym:c={x:o,y:t.y+t.height};break;case bm:c={x:t.x+t.width,y:s};break;case xm:c={x:t.x-n.width,y:s};break;default:c={x:t.x,y:t.y}}var l=i?nh(i):null;if(l!=null){var u=l===`y`?`height`:`width`;switch(a){case wm:c[l]=c[l]-(t[u]/2-n[u]/2);break;case`end`:c[l]=c[l]+(t[u]/2-n[u]/2)}}return c}function Rh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,o=a===void 0?e.strategy:a,s=n.boundary,c=s===void 0?Tm:s,l=n.rootBoundary,u=l===void 0?Em:l,d=n.elementContext,f=d===void 0?Dm:d,p=n.altBoundary,m=p!==void 0&&p,h=n.padding,g=h===void 0?0:h,_=oh(typeof g==`number`?sh(g,Cm):g),v=f===`popper`?Om:Dm,y=e.rects.popper,b=e.elements[m?v:f],x=Ih(Pm(b)?b:b.contextElement||Zm(e.elements.popper),c,u,o),S=Km(e.elements.reference),C=Lh({reference:S,element:y,strategy:`absolute`,placement:i}),w=Mh(Object.assign({},y,C)),T=f===`popper`?w:S,E={top:x.top-T.top+_.top,bottom:T.bottom-x.bottom+_.bottom,left:x.left-T.left+_.left,right:T.right-x.right+_.right},D=e.modifiersData.offset;if(f===`popper`&&D){var O=D[i];Object.keys(E).forEach(function(e){var t=[`right`,`bottom`].indexOf(e)>=0?1:-1,n=[`top`,`bottom`].indexOf(e)>=0?`y`:`x`;E[e]+=O[n]*t})}return E}function zh(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,o=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,l=c===void 0?Am:c,u=fh(r),d=u?s?km:km.filter(function(e){return fh(e)===u}):Cm,f=d.filter(function(e){return l.indexOf(e)>=0});f.length===0&&(f=d);var p=f.reduce(function(t,n){return t[n]=Rh(e,{placement:n,boundary:i,rootBoundary:a,padding:o})[Bm(n)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}function Bh(e){if(Bm(e)===`auto`)return[];var t=Sh(e);return[wh(e),t,wh(t)]}function Vh(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o===void 0||o,c=n.fallbackPlacements,l=n.padding,u=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,m=p===void 0||p,h=n.allowedAutoPlacements,g=t.options.placement,_=Bm(g)===g,v=c||(_||!m?[Sh(g)]:Bh(g)),y=[g].concat(v).reduce(function(e,n){return e.concat(Bm(n)===`auto`?zh(t,{placement:n,boundary:u,rootBoundary:d,padding:l,flipVariations:m,allowedAutoPlacements:h}):n)},[]),b=t.rects.reference,x=t.rects.popper,S=new Map,C=!0,w=y[0],T=0;T<y.length;T++){var E=y[T],D=Bm(E),O=fh(E)===wm,k=[`top`,ym].indexOf(D)>=0,ee=k?`width`:`height`,A=Rh(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:f,padding:l}),j=k?O?bm:xm:O?ym:`top`;b[ee]>x[ee]&&(j=Sh(j));var M=Sh(j),te=[];if(a&&te.push(A[D]<=0),s&&te.push(A[j]<=0,A[M]<=0),te.every(function(e){return e})){w=E,C=!1;break}S.set(E,te)}if(C)for(var ne=m?3:1,N=function(e){var t=y.find(function(t){var n=S.get(t);if(n)return n.slice(0,e).every(function(e){return e})});if(t)return w=t,`break`},P=ne;P>0&&N(P)!==`break`;P--);t.placement!==w&&(t.modifiersData[r]._skip=!0,t.placement=w,t.reset=!0)}}var Hh={name:`flip`,enabled:!0,phase:`main`,fn:Vh,requiresIfExists:[`offset`],data:{_skip:!1}};function Uh(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Wh(e){return[`top`,bm,ym,xm].some(function(t){return e[t]>=0})}function Gh(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,o=Rh(t,{elementContext:`reference`}),s=Rh(t,{altBoundary:!0}),c=Uh(o,r),l=Uh(s,i,a),u=Wh(c),d=Wh(l);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}var Kh={name:`hide`,enabled:!0,phase:`main`,requiresIfExists:[`preventOverflow`],fn:Gh};function qh(e,t,n){var r=Bm(e),i=[`left`,`top`].indexOf(r)>=0?-1:1,a=typeof n==`function`?n(Object.assign({},t,{placement:e})):n,o=a[0],s=a[1];return o||=0,s=(s||0)*i,[`left`,`right`].indexOf(r)>=0?{x:s,y:o}:{x:o,y:s}}function Jh(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,o=Am.reduce(function(e,n){return e[n]=qh(n,t.rects,a),e},{}),s=o[t.placement],c=s.x,l=s.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=l),t.modifiersData[r]=o}var Yh={name:`offset`,enabled:!0,phase:`main`,requires:[`popperOffsets`],fn:Jh};function Xh(e){var t=e.state,n=e.name;t.modifiersData[n]=Lh({reference:t.rects.reference,element:t.rects.popper,strategy:`absolute`,placement:t.placement})}var Zh={name:`popperOffsets`,enabled:!0,phase:`read`,fn:Xh,data:{}};function Qh(e){return e===`x`?`y`:`x`}function $h(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0||i,o=n.altAxis,s=o!==void 0&&o,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,d=n.padding,f=n.tether,p=f===void 0||f,m=n.tetherOffset,h=m===void 0?0:m,g=Rh(t,{boundary:c,rootBoundary:l,padding:d,altBoundary:u}),_=Bm(t.placement),v=fh(t.placement),y=!v,b=nh(_),x=Qh(b),S=t.modifiersData.popperOffsets,C=t.rects.reference,w=t.rects.popper,T=typeof h==`function`?h(Object.assign({},t.rects,{placement:t.placement})):h,E=typeof T==`number`?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),D=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,O={x:0,y:0};if(S){if(a){var k=b===`y`?`top`:xm,ee=b===`y`?ym:bm,A=b===`y`?`height`:`width`,j=S[b],M=j+g[k],te=j-g[ee],ne=p?-w[A]/2:0,N=v===`start`?C[A]:w[A],P=v===`start`?-w[A]:-C[A],re=t.elements.arrow,F=p&&re?qm(re):{width:0,height:0},I=t.modifiersData[`arrow#persistent`]?t.modifiersData[`arrow#persistent`].padding:ah(),ie=I[k],L=I[ee],R=rh(0,C[A],F[A]),z=y?C[A]/2-ne-R-ie-E.mainAxis:N-R-ie-E.mainAxis,ae=y?-C[A]/2+ne+R+L+E.mainAxis:P+R+L+E.mainAxis,oe=t.elements.arrow&&th(t.elements.arrow),se=oe?b===`y`?oe.clientTop||0:oe.clientLeft||0:0,ce=D?.[b]??0,B=j+z-ce-se,le=j+ae-ce,V=rh(p?Hm(M,B):M,j,p?Vm(te,le):te);S[b]=V,O[b]=V-j}if(s){var ue=b===`x`?`top`:xm,de=b===`x`?ym:bm,fe=S[x],pe=x===`y`?`height`:`width`,me=fe+g[ue],he=fe-g[de],ge=[`top`,xm].indexOf(_)!==-1,_e=D?.[x]??0,ve=ge?me:fe-C[pe]-w[pe]-_e+E.altAxis,ye=ge?fe+C[pe]+w[pe]-_e-E.altAxis:he,be=p&&ge?ih(ve,fe,ye):rh(p?ve:me,fe,p?ye:he);S[x]=be,O[x]=be-fe}t.modifiersData[r]=O}}var eg={name:`preventOverflow`,enabled:!0,phase:`main`,fn:$h,requiresIfExists:[`offset`]};function tg(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function ng(e){return e===Nm(e)||!Fm(e)?Th(e):tg(e)}function rg(e){var t=e.getBoundingClientRect(),n=Um(t.width)/e.offsetWidth||1,r=Um(t.height)/e.offsetHeight||1;return n!==1||r!==1}function ig(e,t,n){n===void 0&&(n=!1);var r=Fm(t),i=Fm(t)&&rg(t),a=Zm(t),o=Km(e,i,n),s={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((Mm(t)!==`body`||kh(a))&&(s=ng(t)),Fm(t)?(c=Km(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):a&&(c.x=Eh(a))),{x:o.left+s.scrollLeft-c.x,y:o.top+s.scrollTop-c.y,width:o.width,height:o.height}}function ag(e){var t=new Map,n=new Set,r=[];e.forEach(function(e){t.set(e.name,e)});function i(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!n.has(e)){var r=t.get(e);r&&i(r)}}),r.push(e)}return e.forEach(function(e){n.has(e.name)||i(e)}),r}function og(e){var t=ag(e);return jm.reduce(function(e,n){return e.concat(t.filter(function(e){return e.phase===n}))},[])}function sg(e){var t;return function(){return t||=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})}),t}}function cg(e){var t=e.reduce(function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e},{});return Object.keys(t).map(function(e){return t[e]})}var lg={placement:`bottom`,modifiers:[],strategy:`absolute`};function ug(){return![...arguments].some(function(e){return!(e&&typeof e.getBoundingClientRect==`function`)})}function dg(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,i=t.defaultOptions,a=i===void 0?lg:i;return function(e,t,n){n===void 0&&(n=a);var i={placement:`bottom`,orderedModifiers:[],options:Object.assign({},lg,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},o=[],s=!1,c={state:i,setOptions:function(n){var o=typeof n==`function`?n(i.options):n;u(),i.options=Object.assign({},a,i.options,o),i.scrollParents={reference:Pm(e)?jh(e):e.contextElement?jh(e.contextElement):[],popper:jh(t)};var s=og(cg([].concat(r,i.options.modifiers)));return i.orderedModifiers=s.filter(function(e){return e.enabled}),l(),c.update()},forceUpdate:function(){if(!s){var e=i.elements,t=e.reference,n=e.popper;if(ug(t,n)){i.rects={reference:ig(t,th(n),i.options.strategy===`fixed`),popper:qm(n)},i.reset=!1,i.placement=i.options.placement,i.orderedModifiers.forEach(function(e){return i.modifiersData[e.name]=Object.assign({},e.data)});for(var r=0;r<i.orderedModifiers.length;r++)if(i.reset===!0)i.reset=!1,r=-1;else{var a=i.orderedModifiers[r],o=a.fn,l=a.options,u=l===void 0?{}:l,d=a.name;typeof o==`function`&&(i=o({state:i,options:u,name:d,instance:c})||i)}}}},update:sg(function(){return new Promise(function(e){c.forceUpdate(),e(i)})}),destroy:function(){u(),s=!0}};if(!ug(e,t))return c;c.setOptions(n).then(function(e){!s&&n.onFirstUpdate&&n.onFirstUpdate(e)});function l(){i.orderedModifiers.forEach(function(e){var t=e.name,n=e.options,r=n===void 0?{}:n,a=e.effect;if(typeof a==`function`){var s=a({state:i,name:t,instance:c,options:r});o.push(s||function(){})}})}function u(){o.forEach(function(e){return e()}),o=[]}return c}}var fg=dg({defaultModifiers:[bh,Zh,_h,zm,Yh,Hh,eg,dh,Kh]});function pg(e){let{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,o=i?{}:Xd(n,r),{props:s,internalRef:c}=$d({...a,externalSlotProps:o}),l=Vl(c,o?.ref,e.additionalProps?.ref);return Yd(t,{...s,ref:l},r)}function mg(e){return e?.props?.ref||null}function hg(e){return typeof e==`function`?e():e}var gg=z.forwardRef(function(e,t){let{children:n,container:r,disablePortal:i=!1}=e,[a,o]=z.useState(null),s=Vl(z.isValidElement(n)?mg(n):null,t);if(To(()=>{i||o(hg(r)||document.body)},[r,i]),To(()=>{if(a&&!i)return Sd(t,a),()=>{Sd(t,null)}},[t,a,i]),i){if(z.isValidElement(n)){let e={ref:s};return z.cloneElement(n,e)}return n}return a&&Pl.createPortal(n,a)});function _g(e){return W(`MuiPopper`,e)}co(`MuiPopper`,[`root`]);function vg(e,t){if(t===`ltr`)return e;switch(e){case`bottom-end`:return`bottom-start`;case`bottom-start`:return`bottom-end`;case`top-end`:return`top-start`;case`top-start`:return`top-end`;default:return e}}function yg(e){return typeof e==`function`?e():e}function bg(e){return e.nodeType!==void 0}var xg=e=>{let{classes:t}=e;return G({root:[`root`]},_g,t)},Sg={},Cg=z.forwardRef(function(e,t){let{anchorEl:n,children:r,direction:i,disablePortal:a,modifiers:o,open:s,placement:c,popperOptions:l,popperRef:u,slotProps:d={},slots:f={},TransitionProps:p,ownerState:m,...h}=e,g=z.useRef(null),_=Vl(g,t),v=z.useRef(null),y=Vl(v,u),b=z.useRef(y);To(()=>{b.current=y},[y]),z.useImperativeHandle(u,()=>v.current,[]);let x=vg(c,i),[S,C]=z.useState(x),w=z.useMemo(()=>yg(n),[n]);z.useEffect(()=>{v.current&&v.current.forceUpdate()}),To(()=>{if(!w||!s)return;let e=e=>{C(e.placement)},t=[{name:`preventOverflow`,options:{altBoundary:a}},{name:`flip`,options:{altBoundary:a}},{name:`onUpdate`,enabled:!0,phase:`afterWrite`,fn:({state:t})=>{e(t)}}];o!=null&&(t=t.concat(o)),l&&l.modifiers!=null&&(t=t.concat(l.modifiers));let n=fg(w,g.current,{placement:x,...l,modifiers:t});b.current(n);let r=g.current;return()=>{if(r){let{style:e}=r,t=e.position,i=e.top,a=e.left,o=e.transform;n.destroy(),e.position=t,e.top=i,e.left=a,e.transform=o}else n.destroy();b.current(null)}},[w,a,o,s,l,x]);let T={placement:S};p!==null&&(T.TransitionProps=p);let E=xg(e),D=f.root??`div`,O=pg({elementType:D,externalSlotProps:d.root,externalForwardedProps:h,additionalProps:{role:`tooltip`,ref:_},ownerState:e,className:E.root});return(0,H.jsx)(D,{...O,children:typeof r==`function`?r(T):r})}),wg=q(z.forwardRef(function(e,t){let{anchorEl:n,children:r,container:i,direction:a=`ltr`,disablePortal:o=!1,keepMounted:s=!1,modifiers:c,open:l,placement:u=`bottom`,popperOptions:d=Sg,popperRef:f,style:p,transition:m=!1,slotProps:h={},slots:g={},..._}=e,[v,y]=z.useState(!0),b=()=>{y(!1)},x=()=>{y(!0)};if(!s&&!l&&(!m||v))return null;let S;if(i)S=i;else if(n){let e=yg(n);S=e&&bg(e)?Ul(e).body:Ul(null).body}let C=!l&&s&&(!m||v)?`none`:void 0,w=m?{in:l,onEnter:b,onExited:x}:void 0;return(0,H.jsx)(gg,{disablePortal:o,container:S,children:(0,H.jsx)(Cg,{anchorEl:n,direction:a,disablePortal:o,modifiers:c,ref:t,open:m?!v:l,placement:u,popperOptions:d,popperRef:f,slotProps:h,slots:g,..._,style:{position:`fixed`,top:0,left:0,display:C,...p},TransitionProps:w,children:r})})}),{name:`MuiPopper`,slot:`Root`})({}),Tg=z.forwardRef(function(e,t){let n=ts(),{anchorEl:r,component:i,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,slots:m,slotProps:h,...g}=Y({props:e,name:`MuiPopper`}),_={anchorEl:r,container:a,disablePortal:o,keepMounted:s,modifiers:c,open:l,placement:u,popperOptions:d,popperRef:f,transition:p,...g};return(0,H.jsx)(wg,{as:i,direction:n?`rtl`:`ltr`,slots:m,slotProps:h,..._,ref:t})});function Eg(e){return W(`MuiListSubheader`,e)}co(`MuiListSubheader`,[`root`,`colorPrimary`,`colorInherit`,`gutters`,`inset`,`sticky`]);var Dg=e=>{let{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e;return G({root:[`root`,n!=="default"&&`color${X(n)}`,!r&&`gutters`,i&&`inset`,!a&&`sticky`]},Eg,t)},Og=q(`li`,{name:`MuiListSubheader`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${X(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(J(({theme:e})=>({boxSizing:`border-box`,lineHeight:`48px`,listStyle:`none`,color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14),variants:[{props:{color:`primary`},style:{color:(e.vars||e).palette.primary.main}},{props:{color:`inherit`},style:{color:`inherit`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:72}},{props:({ownerState:e})=>!e.disableSticky,style:{position:`sticky`,top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),kg=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiListSubheader`}),{className:r,color:i=`default`,component:a=`li`,disableGutters:o=!1,disableSticky:s=!1,inset:c=!1,...l}=n,u={...n,color:i,component:a,disableGutters:o,disableSticky:s,inset:c},d=Dg(u);return(0,H.jsx)(Og,{as:a,className:U(d.root,r),ref:t,ownerState:u,...l})}),Ag=Z((0,H.jsx)(`path`,{d:`M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z`}),`Cancel`);function jg(e){return W(`MuiChip`,e)}var Mg=co(`MuiChip`,[`root`,`sizeSmall`,`sizeMedium`,`colorDefault`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`disabled`,`clickable`,`deletable`,`outlined`,`filled`,`avatar`,`icon`,`label`,`deleteIcon`,`focusVisible`]),Ng=e=>{let{classes:t,disabled:n,size:r,color:i,onDelete:a,clickable:o,variant:s}=e;return G({root:[`root`,s,n&&`disabled`,`size${X(r)}`,`color${X(i)}`,o&&`clickable`,a&&`deletable`],label:[`label`],avatar:[`avatar`],icon:[`icon`],deleteIcon:[`deleteIcon`]},jg,t)},Pg=q(`div`,{name:`MuiChip`,slot:`Root`,shouldForwardProp:e=>ru(e)&&e!==`focusableWhenDisabled`&&e!==`skipFocusWhenDisabled`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{color:r,clickable:i,onDelete:a,size:o,variant:s}=n;return[{[`& .${Mg.avatar}`]:t.avatar},{[`& .${Mg.icon}`]:t.icon},{[`& .${Mg.deleteIcon}`]:t.deleteIcon},t.root,t[`size${X(o)}`],t[`color${X(r)}`],i&&t.clickable,a&&t.deletable,t[s]]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:`100%`,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:32,lineHeight:1.5,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:16,whiteSpace:`nowrap`,...Tu(e,[`background-color`,`box-shadow`]),cursor:`unset`,outline:0,textDecoration:`none`,border:0,padding:0,verticalAlign:`middle`,boxSizing:`border-box`,[`&.${Mg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`& .${Mg.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${Mg.icon}`]:{marginLeft:5,marginRight:-6},[`& .${Mg.deleteIcon}`]:{WebkitTapHighlightColor:`transparent`,color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:`pointer`,margin:`0 5px 0 -6px`,"&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{color:`primary`},style:{[`& .${Mg.avatar}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark}}},{props:{color:`secondary`},style:{[`& .${Mg.avatar}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark}}},{props:{size:`small`},style:{height:24,[`& .${Mg.avatar}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Mg.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${Mg.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(lp([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText,[`& .${Mg.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].contrastText}}}})),{props:e=>e.iconColor===e.color,style:{[`& .${Mg.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:e=>e.iconColor===e.color&&e.color!=="default",style:{[`& .${Mg.icon}`]:{color:`inherit`}}},{props:{onDelete:!0},style:!e.focusVisible&&{[`&.${Mg.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(lp([`dark`])).map(([t])=>({props:{color:t,onDelete:!0},style:!e.focusVisible&&{[`&.${Mg.focusVisible}`]:{background:(e.vars||e).palette[t].dark}}})),{props:{clickable:!0},style:{userSelect:`none`,WebkitTapHighlightColor:`transparent`,cursor:`pointer`,"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},...!e.focusVisible&&{[`&.${Mg.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(lp([`dark`])).map(([t])=>({props:{color:t,clickable:!0},style:{"&:hover":{backgroundColor:(e.vars||e).palette[t].dark},...!e.focusVisible&&{[`&.${Mg.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t].dark}}}})),{props:{variant:`outlined`},style:{backgroundColor:`transparent`,border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Mg.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},...!e.focusVisible&&{[`&.${Mg.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`& .${Mg.avatar}`]:{marginLeft:4},[`& .${Mg.icon}`]:{marginLeft:4},[`& .${Mg.deleteIcon}`]:{marginRight:5}}},{props:{size:`small`,variant:`outlined`},style:{[`& .${Mg.avatar}`]:{marginLeft:2},[`& .${Mg.icon}`]:{marginLeft:2},[`& .${Mg.deleteIcon}`]:{marginRight:3}}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{variant:`outlined`,color:t},style:{color:(e.vars||e).palette[t].main,border:`1px solid ${e.alpha((e.vars||e).palette[t].main,.7)}`,[`&.${Mg.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)},...!e.focusVisible&&{[`&.${Mg.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.focusOpacity)}},[`& .${Mg.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[t].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t].main}}}}))]}})),Fg=q(`span`,{name:`MuiChip`,slot:`Label`})({overflow:`hidden`,textOverflow:`ellipsis`,paddingLeft:12,paddingRight:12,whiteSpace:`nowrap`,variants:[{props:{variant:`outlined`},style:{paddingLeft:11,paddingRight:11}},{props:{size:`small`},style:{paddingLeft:8,paddingRight:8}},{props:{size:`small`,variant:`outlined`},style:{paddingLeft:7,paddingRight:7}}]});function Ig(e){return e.key===`Backspace`||e.key===`Delete`}var Lg=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiChip`}),{avatar:r,className:i,clickable:a,color:o=`default`,component:s,deleteIcon:c,disabled:l=!1,icon:u,label:d,onClick:f,onDelete:p,onKeyDown:m,onKeyUp:h,size:g=`medium`,variant:_=`filled`,tabIndex:v,skipFocusWhenDisabled:y=!1,slots:b={},slotProps:x={},...S}=n,{nativeButton:C,...w}=S,T=au(z.useRef(null),t),E=e=>{e.stopPropagation(),p(e)},D=e=>{e.currentTarget===e.target&&Ig(e)&&e.preventDefault(),m&&m(e)},O=e=>{e.currentTarget===e.target&&p&&Ig(e)&&p(e),h&&h(e)},k=a!==!1&&f?!0:a,ee=k||p?ep:s||`div`,A={...n,component:ee,disabled:l,size:g,color:o,iconColor:z.isValidElement(u)&&u.props.color||o,onDelete:!!p,clickable:k,variant:_},j=Ng(A),M=ee===ep?{component:s||`div`,internalNativeButton:!1,focusVisibleClassName:j.focusVisible,...p&&{disableRipple:!0},...C!==void 0&&{nativeButton:C}}:{},te=null;p&&(te=c&&z.isValidElement(c)?z.cloneElement(c,{className:U(c.props.className,j.deleteIcon),onClick:E}):(0,H.jsx)(Ag,{className:j.deleteIcon,onClick:E}));let ne=null;r&&z.isValidElement(r)&&(ne=z.cloneElement(r,{className:U(j.avatar,r.props.className)}));let N=null;u&&z.isValidElement(u)&&(N=z.cloneElement(u,{className:U(j.icon,u.props.className)}));let P={slots:b,slotProps:x},[re,F]=Q(`root`,{elementType:Pg,externalForwardedProps:{...P,...w},ownerState:A,shouldForwardComponentProp:!0,ref:T,className:U(j.root,i),additionalProps:{disabled:k&&l?!0:void 0,tabIndex:y&&l?-1:v,...M},getSlotProps:e=>({...e,onClick:t=>{e.onClick?.(t),f?.(t)},onKeyDown:t=>{e.onKeyDown?.(t),D(t)},onKeyUp:t=>{e.onKeyUp?.(t),O(t)}})}),[I,ie]=Q(`label`,{elementType:Fg,externalForwardedProps:P,ownerState:A,className:j.label});return(0,H.jsxs)(re,{as:ee,...F,children:[ne||N,(0,H.jsx)(I,{...ie,children:d}),te]})}),Rg=Z((0,H.jsx)(`path`,{d:`M7 10l5 5 5-5z`}),`ArrowDropDown`),zg,Bg,Vg=e=>{let{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:o,hasPopupIcon:s,inputFocused:c,popupOpen:l,size:u}=e;return G({root:[`root`,r&&`expanded`,i&&`focused`,a&&`fullWidth`,o&&`hasClearIcon`,s&&`hasPopupIcon`],inputRoot:[`inputRoot`],input:[`input`,c&&`inputFocused`],tag:[`tag`,`tagSize${X(u)}`],endAdornment:[`endAdornment`],clearIndicator:[`clearIndicator`],popupIndicator:[`popupIndicator`,l&&`popupIndicatorOpen`],popper:[`popper`,n&&`popperDisablePortal`],paper:[`paper`],listbox:[`listbox`],loading:[`loading`],noOptions:[`noOptions`],status:[`status`],option:[`option`],groupLabel:[`groupLabel`],groupUl:[`groupUl`]},Fl,t)},Hg=q(`div`,{name:`MuiAutocomplete`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:o,size:s}=n;return[{[`& .${Il.tag}`]:t.tag},{[`& .${Il.tag}`]:t[`tagSize${X(s)}`]},{[`& .${Il.inputRoot}`]:t.inputRoot},{[`& .${Il.input}`]:t.input},{[`& .${Il.input}`]:o&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${Il.focused} .${Il.clearIndicator}`]:{visibility:`visible`},"@media (pointer: fine)":{[`&:hover .${Il.clearIndicator}`]:{visibility:`visible`}},[`& .${Il.tag}`]:{margin:3,maxWidth:`calc(100% - 6px)`},[`& .${Il.inputRoot}`]:{[`.${Il.hasPopupIcon}&, .${Il.hasClearIcon}&`]:{paddingRight:30},[`.${Il.hasPopupIcon}.${Il.hasClearIcon}&`]:{paddingRight:56},[`& .${Il.input}`]:{width:0,minWidth:30}},[`& .${Gu.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:`4px 4px 4px 0px`}},[`& .${Gu.root}.${mu.sizeSmall}`]:{[`& .${Gu.input}`]:{padding:`2px 4px 3px 0`}},[`& .${$u.root}`]:{padding:9,[`.${Il.hasPopupIcon}&, .${Il.hasClearIcon}&`]:{paddingRight:39},[`.${Il.hasPopupIcon}.${Il.hasClearIcon}&`]:{paddingRight:65},[`& .${Il.input}`]:{padding:`7.5px 4px 7.5px 5px`},[`& .${Il.endAdornment}`]:{right:9}},[`& .${$u.root}.${mu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Il.input}`]:{padding:`2.5px 4px 2.5px 8px`}},[`& .${Lu.root}`]:{paddingTop:19,paddingLeft:8,[`.${Il.hasPopupIcon}&, .${Il.hasClearIcon}&`]:{paddingRight:39},[`.${Il.hasPopupIcon}.${Il.hasClearIcon}&`]:{paddingRight:65},[`& .${Lu.input}`]:{padding:`7px 4px`},[`& .${Il.endAdornment}`]:{right:9}},[`& .${Lu.root}.${mu.sizeSmall}`]:{paddingBottom:1,[`& .${Lu.input}`]:{padding:`2.5px 4px`}},[`& .${mu.hiddenLabel}`]:{paddingTop:8},[`& .${Lu.root}.${mu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Il.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${Lu.root}.${mu.hiddenLabel}.${mu.sizeSmall}`]:{[`& .${Il.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Il.input}`]:{flexGrow:1,textOverflow:`ellipsis`,opacity:0},variants:[{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{[`& .${Il.tag}`]:{margin:2,maxWidth:`calc(100% - 4px)`}}},{props:{inputFocused:!0},style:{[`& .${Il.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Il.inputRoot}`]:{flexWrap:`wrap`}}}]}),Ug=q(`div`,{name:`MuiAutocomplete`,slot:`EndAdornment`})({position:`absolute`,right:0,top:`50%`,transform:`translate(0, -50%)`}),Wg=q(kp,{name:`MuiAutocomplete`,slot:`ClearIndicator`})({marginRight:-2,padding:4,visibility:`hidden`}),Gg=q(kp,{name:`MuiAutocomplete`,slot:`PopupIndicator`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:`rotate(180deg)`}}]}),Kg=q(Tg,{name:`MuiAutocomplete`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Il.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(J(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:`absolute`}}]}))),qg=q(df,{name:`MuiAutocomplete`,slot:`Paper`})(J(({theme:e})=>({...e.typography.body1,overflow:`auto`}))),Jg=q(`div`,{name:`MuiAutocomplete`,slot:`Loading`})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:`14px 16px`}))),Yg=q(`div`,{name:`MuiAutocomplete`,slot:`Status`})({}),Xg=q(`div`,{name:`MuiAutocomplete`,slot:`NoOptions`})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:`14px 16px`}))),Zg=q(`ul`,{name:`MuiAutocomplete`,slot:`Listbox`})(J(({theme:e})=>({listStyle:`none`,margin:0,padding:`8px 0`,maxHeight:`40vh`,overflow:`auto`,isolation:`isolate`,position:`relative`,[`& .${Il.option}`]:{minHeight:48,display:`flex`,overflow:`hidden`,justifyContent:`flex-start`,alignItems:`center`,cursor:`pointer`,paddingTop:6,boxSizing:`border-box`,outline:`0`,WebkitTapHighlightColor:`transparent`,paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up(`sm`)]:{minHeight:`auto`},[`&.${Il.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:`none`},[`&.${Il.focusVisible}`]:e.focusVisible?{...Pc(1),...e.focusVisible}:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Il.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},...!e.focusVisible&&{[`&.${Il.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}}))),Qg=q(kg,{name:`MuiAutocomplete`,slot:`GroupLabel`})(J(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),$g=q(`ul`,{name:`MuiAutocomplete`,slot:`GroupUl`})({padding:0,[`& .${Il.option}`]:{paddingLeft:24}}),e_=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAutocomplete`}),{autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:o=!1,className:s,clearIcon:c=zg||=(0,H.jsx)(Pp,{fontSize:`small`}),clearOnBlur:l=!n.freeSolo,clearOnEscape:u=!1,clearText:d=`Clear`,closeText:f=`Close`,defaultValue:p=n.multiple?[]:null,disableClearable:m=!1,disableCloseOnSelect:h=!1,disabled:g=!1,disabledItemsFocusable:_=!1,disableListWrap:v=!1,disablePortal:y=!1,filterOptions:b,filterSelectedOptions:x=!1,forcePopupIcon:S=`auto`,freeSolo:C=!1,fullWidth:w=!1,getLimitTagsText:T=e=>`+${e}`,getOptionDisabled:E,getOptionKey:D,getOptionLabel:O,getOptionValue:k,isOptionEqualToValue:ee,groupBy:A,handleHomeEndKeys:j=!n.freeSolo,id:M,includeInputInList:te=!1,inputValue:ne,limitTags:N=-1,loading:P=!1,loadingText:re=`Loading…`,multiple:F=!1,noOptionsText:I=`No options`,onChange:ie,onClose:L,onHighlightChange:R,onInputChange:ae,onOpen:oe,open:se,openOnFocus:ce=!1,openText:B=`Open`,options:le,popupIcon:V=Bg||=(0,H.jsx)(Rg,{}),readOnly:ue=!1,renderGroup:de,renderInput:fe,renderOption:pe,renderValue:me,resetHighlightOnMouseLeave:he=!1,selectOnFocus:ge=!n.freeSolo,size:_e=`medium`,slots:ve={},slotProps:ye={},value:be,...xe}=n,{getRootProps:Se,getInputProps:Ce,getInputLabelProps:we,getPopupIndicatorProps:Te,getClearProps:Ee,getItemProps:De,getListboxProps:Oe,getOptionFromValue:ke,getOptionProps:Ae,value:je,dirty:Me,expanded:Ne,id:Pe,popupOpen:Fe,focused:Ie,focusedItem:Le,anchorEl:Re,setAnchorEl:ze,inputValue:Be,groupedOptions:Ve}=vm({...n,componentName:`Autocomplete`}),He=rm();z.useEffect(()=>{if(!Fe||!Re||typeof ResizeObserver>`u`)return;let e=Re.clientWidth,t=new ResizeObserver(()=>{let t=Re.clientWidth;e!==t&&(e=t,He())});return t.observe(Re),()=>{t.disconnect()}},[Fe,Re,He]);let Ue=!!A,We=z.useRef({options:[],isGrouped:!1}),Ge=z.useRef(!1),Ke=Fe?{options:Ve,isGrouped:Ue}:We.current;To(()=>{Fe&&!Ge.current&&(We.current={options:[],isGrouped:Ue}),Ge.current=Fe,Fe&&Ve.length>0&&(We.current={options:Ve,isGrouped:Ue})},[Fe,Ve,Ue]);let qe=!m&&!g&&Me&&!ue,Je=(!C||S===!0)&&S!==!1,{onMouseDown:Ye}=Ce(),Xe=O||(e=>e.label??e),Ze={...n,disablePortal:y,expanded:Ne,focused:Ie,fullWidth:w,getOptionLabel:Xe,hasClearIcon:qe,hasPopupIcon:Je,inputFocused:Le===-1,popupOpen:Fe,size:_e},Qe=Vg(Ze),$e={slots:ve,slotProps:ye},[et,tt]=Q(`root`,{ref:t,className:[Qe.root,s],elementType:Hg,externalForwardedProps:{...$e,...xe},getSlotProps:Se,ownerState:Ze}),[nt,rt]=Q(`listbox`,{elementType:Zg,externalForwardedProps:$e,ownerState:Ze,className:Qe.listbox,getSlotProps:Oe}),[it,at]=Q(`paper`,{elementType:df,externalForwardedProps:$e,ownerState:Ze,className:Qe.paper}),[ot,st]=Q(`status`,{elementType:Yg,externalForwardedProps:$e,ownerState:Ze,className:Qe.status,additionalProps:{role:`status`,"aria-live":`polite`,"aria-atomic":`true`}}),[ct,lt]=Q(`popper`,{elementType:Tg,externalForwardedProps:$e,ownerState:Ze,className:Qe.popper,additionalProps:{disablePortal:y,style:{width:Re?Re.clientWidth:null,pointerEvents:Fe?void 0:`none`},role:`presentation`,anchorEl:Re,open:Fe}}),ut=Ke.options.length>0||P||!C||lt.keepMounted===!0,[dt,ft]=Q(`clearIndicator`,{elementType:Wg,externalForwardedProps:$e,ownerState:Ze,className:Qe.clearIndicator,shouldForwardComponentProp:!0,additionalProps:{...Ee(),"aria-label":d,title:d}}),[pt,mt]=Q(`popupIndicator`,{elementType:Gg,externalForwardedProps:$e,ownerState:Ze,className:Qe.popupIndicator,shouldForwardComponentProp:!0,additionalProps:{...Te(),disabled:g,"aria-label":Fe?f:B,title:Fe?f:B}}),[ht,gt]=Q(`chip`,{elementType:Lg,externalForwardedProps:$e,ownerState:Ze,className:Qe.tag,shouldForwardComponentProp:!0}),_t,vt=e=>({className:Qe.tag,disabled:g,...De(e)});if(F?je.length>0&&(_t=me?me(je,vt,Ze):je.map((e,t)=>{let{key:n,...r}=vt({index:t}),i=ke(e);return(0,H.jsx)(ht,{label:i===null?``:Xe(i.option),size:_e,...r,...gt},n)})):me&&je!=null&&(_t=me(je,vt,Ze)),N>-1&&Array.isArray(_t)){let e=_t.length-N;!Ie&&e>0&&(_t=_t.splice(0,N),_t.push((0,H.jsx)(`span`,{className:Qe.tag,children:T(e)},_t.length)))}let yt=de||(e=>(0,H.jsxs)(`li`,{children:[(0,H.jsx)(Qg,{className:Qe.groupLabel,ownerState:Ze,component:`div`,children:e.group}),(0,H.jsx)($g,{className:Qe.groupUl,ownerState:Ze,children:e.children})]},e.key)),bt=pe||((e,t)=>{let{key:n,...r}=e;return(0,H.jsx)(`li`,{...r,children:Xe(t)},n)}),xt=(e,t)=>{let n=Ae({option:e,index:t});return bt({...n,className:Qe.option},e,{selected:n[`aria-selected`],index:t,inputValue:Be},Ze)};return(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(et,{...tt,children:fe({id:Pe,disabled:g,fullWidth:n.fullWidth??!0,size:_e===`small`?`small`:void 0,slotProps:{inputLabel:we(),input:{ref:ze,className:Qe.inputRoot,startAdornment:_t,onMouseDown:e=>{e.target===e.currentTarget&&Ye(e)},...(qe||Je)&&{endAdornment:(0,H.jsxs)(Ug,{className:Qe.endAdornment,ownerState:Ze,children:[qe?(0,H.jsx)(dt,{...ft,children:c}):null,Je?(0,H.jsx)(pt,{...mt,children:V}):null]})}},htmlInput:{className:Qe.input,disabled:g,readOnly:ue,...Ce()}}})}),Re&&ut?(0,H.jsx)(Kg,{as:ct,...lt,children:(0,H.jsxs)(qg,{as:it,...at,children:[(0,H.jsxs)(ot,{...st,children:[P&&Ke.options.length===0?(0,H.jsx)(Jg,{className:Qe.loading,ownerState:Ze,children:re}):null,Ke.options.length===0&&!C&&!P?(0,H.jsx)(Xg,{className:Qe.noOptions,ownerState:Ze,onMouseDown:e=>{e.preventDefault()},children:I}):null]}),Ke.options.length>0?(0,H.jsx)(nt,{...rt,children:Ke.options.map((e,t)=>Ke.isGrouped?yt({key:e.key,group:e.group,children:e.options.map((t,n)=>xt(t,e.index+n))}):xt(e,t))}):null]})}):null]})}),t_=Z((0,H.jsx)(`path`,{d:`M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z`}),`Person`);function n_(e){return W(`MuiAvatar`,e)}co(`MuiAvatar`,[`root`,`colorDefault`,`circular`,`rounded`,`square`,`img`,`fallback`]);var r_=e=>{let{classes:t,variant:n,colorDefault:r}=e;return G({root:[`root`,n,r&&`colorDefault`],img:[`img`],fallback:[`fallback`]},n_,t)},i_=q(`div`,{name:`MuiAvatar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(J(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:`50%`,overflow:`hidden`,userSelect:`none`,variants:[{props:{variant:`rounded`},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:`square`},style:{borderRadius:0}},{props:{colorDefault:!0},style:{color:(e.vars||e).palette.background.default,"@media (forced-colors: active)":{boxSizing:`border-box`,border:`1px solid ButtonBorder`},...e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.grey[400],...e.applyStyles(`dark`,{backgroundColor:e.palette.grey[600]})}}}]}))),a_=q(`img`,{name:`MuiAvatar`,slot:`Img`})({width:`100%`,height:`100%`,textAlign:`center`,objectFit:`cover`,color:`transparent`,textIndent:1e4}),o_=q(t_,{name:`MuiAvatar`,slot:`Fallback`})({width:`75%`,height:`75%`});function s_(e,t,n,r){let[i,a]=z.useState(!1);return z.useEffect(()=>{if(!e&&!t)return;a(!1);let i=!0,o=new Image;return o.onload=()=>{i&&a(`loaded`)},o.onerror=()=>{i&&a(`error`)},o.crossOrigin=n,o.referrerPolicy=r,o.src=e,t&&(o.srcset=t),()=>{i=!1}},[n,r,e,t]),i}var c_=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiAvatar`}),{alt:r,children:i,className:a,component:o=`div`,slots:s={},slotProps:c={},sizes:l,src:u,srcSet:d,variant:f=`circular`,...p}=n,m=null,h={...n,component:o,variant:f},{crossOrigin:g,referrerPolicy:_}=(typeof c.img==`function`?c.img(h):c.img)??{},v=s_(u,d,g,_),y=u||d,b=y&&v!==`error`;h.colorDefault=!b,delete h.ownerState;let x=r_(h),S={slots:s,slotProps:c},[C,w]=Q(`root`,{ref:t,className:U(x.root,a),elementType:i_,externalForwardedProps:{...S,component:o,...p},ownerState:h}),[T,E]=Q(`img`,{className:x.img,elementType:a_,externalForwardedProps:S,additionalProps:{alt:r,src:u,srcSet:d,sizes:l},ownerState:h}),[D,O]=Q(`fallback`,{className:x.fallback,elementType:o_,externalForwardedProps:S,shouldForwardComponentProp:!0,ownerState:h});return m=b?(0,H.jsx)(T,{...E}):i||i===0?i:y&&r?r[0]:(0,H.jsx)(D,{...O}),(0,H.jsx)(C,{...w,children:m})}),l_={entering:{opacity:1},entered:{opacity:1},exiting:{opacity:0},exited:{opacity:0}},u_={opacity:0,visibility:`hidden`},d_=z.forwardRef(function(e,t){let n=eu(),r={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:i,appear:a=!0,children:o,disablePrefersReducedMotion:s=!1,easing:c,in:l,onEnter:u,onEntered:d,onEntering:f,onExit:p,onExited:m,onExiting:h,style:g,timeout:_=r,...v}=e,y=Jd(n.motion.reducedMotion,s),b=z.useRef(null),x=au(b,mg(o),t),S=xu(b,f),C=xu(b,(e,t)=>{y.shouldReduceMotion||_u(e);let r=Cu({style:g,timeout:_,easing:c},{mode:`enter`}),i=y.getTransitionTiming({duration:r.duration,delay:r.delay});e.style.transition=n.transitions.create(`opacity`,{duration:i.duration,easing:r.easing,delay:i.delay}),u&&u(e,t)}),w=xu(b,d),T=xu(b,h),E=xu(b,e=>{let t=Cu({style:g,timeout:_,easing:c},{mode:`exit`}),r=y.getTransitionTiming({duration:t.duration,delay:t.delay});e.style.transition=n.transitions.create(`opacity`,{duration:r.duration,easing:t.easing,delay:r.delay}),p&&p(e)}),D=xu(b,e=>{e.style.transition=``,m&&m(e)});return(0,H.jsx)(Id,{appear:a,in:l,nodeRef:b,onEnter:C,onEntered:w,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:i?e=>{i(b.current,e)}:void 0,reduceMotion:y.shouldReduceMotion,timeout:_,...v,children:(e,{ownerState:t,...n})=>{let r=Su(e,l,l_,u_,g,o.props.style);return z.cloneElement(o,{style:r,ref:x,...n})}})});function f_(e){return W(`MuiBackdrop`,e)}co(`MuiBackdrop`,[`root`,`invisible`]);var p_=e=>{let{classes:t,invisible:n}=e;return G({root:[`root`,n&&`invisible`]},f_,t)},m_=q(`div`,{name:`MuiBackdrop`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:`fixed`,display:`flex`,alignItems:`center`,justifyContent:`center`,right:0,bottom:0,top:0,left:0,backgroundColor:`rgba(0, 0, 0, 0.5)`,WebkitTapHighlightColor:`transparent`,variants:[{props:{invisible:!0},style:{backgroundColor:`transparent`}}]}),h_=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiBackdrop`}),{children:r,className:i,component:a=`div`,invisible:o=!1,open:s,slotProps:c={},slots:l={},transitionDuration:u,...d}=n,f={...n,component:a,invisible:o},p=p_(f),m={component:a,slots:l,slotProps:c},[h,g]=Q(`root`,{elementType:m_,externalForwardedProps:m,className:U(p.root,i),ownerState:f}),[_,v]=Q(`transition`,{elementType:d_,externalForwardedProps:m,ownerState:f});return(0,H.jsx)(_,{in:s,timeout:u,...d,...v,children:(0,H.jsx)(h,{...g,ref:t,children:r})})});function g_(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=am({badgeContent:t,max:r}),o=n;n===!1&&t===0&&!i&&(o=!0);let{badgeContent:s,max:c=r}=o?a:e,l=s&&Number(s)>c?`${c}+`:s;return{badgeContent:s,invisible:o,max:c,displayValue:l}}function __(e){return W(`MuiBadge`,e)}var v_=co(`MuiBadge`,[`root`,`badge`,`dot`,`standard`,`anchorOriginTopRight`,`anchorOriginBottomRight`,`anchorOriginTopLeft`,`anchorOriginBottomLeft`,`invisible`,`colorError`,`colorInfo`,`colorPrimary`,`colorSecondary`,`colorSuccess`,`colorWarning`,`overlapRectangular`,`overlapCircular`,`anchorOriginTopLeftCircular`,`anchorOriginTopLeftRectangular`,`anchorOriginTopRightCircular`,`anchorOriginTopRightRectangular`,`anchorOriginBottomLeftCircular`,`anchorOriginBottomLeftRectangular`,`anchorOriginBottomRightCircular`,`anchorOriginBottomRightRectangular`]),y_=10,b_=4,x_=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return G({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}`,`anchorOrigin${X(n.vertical)}${X(n.horizontal)}${X(i)}`,`overlap${X(i)}`,t!=="default"&&`color${X(t)}`]},__,o)},S_=q(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),C_=q(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${X(n.anchorOrigin.vertical)}${X(n.anchorOrigin.horizontal)}${X(n.overlap)}`],n.color!=="default"&&t[`color${X(n.color)}`],n.invisible&&t.invisible]}})(J(({theme:e})=>({display:`flex`,flexDirection:`row`,flexWrap:`wrap`,justifyContent:`center`,alignContent:`center`,alignItems:`center`,position:`absolute`,boxSizing:`border-box`,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:`0 6px`,height:20,borderRadius:y_,zIndex:1,"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},...Tu(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(lp([`contrastText`])).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main,color:(e.vars||e).palette[t].contrastText}})),{props:{variant:`dot`},style:{borderRadius:b_,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{...Tu(e,`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:{inset:`var(--Badge-inset)`,transform:`scale(1) translate(var(--Badge-translate))`,transformOrigin:`var(--Badge-origin)`,[`&.${v_.invisible}`]:{transform:`scale(0) translate(var(--Badge-translate))`}}}]})));function w_(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var T_=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,children:s,overlap:c=`rectangular`,color:l=`default`,invisible:u=!1,max:d=99,badgeContent:f,slots:p,slotProps:m,showZero:h=!1,variant:g=`standard`,..._}=n,{badgeContent:v,invisible:y,max:b,displayValue:x}=g_({max:d,invisible:u,badgeContent:f,showZero:h}),S=am({anchorOrigin:w_(r),color:l,overlap:c,variant:g,badgeContent:f}),C=y||v==null&&g!==`dot`,{color:w=l,overlap:T=c,anchorOrigin:E,variant:D=g}=C?S:n,O=w_(E),k=D===`dot`?void 0:x,ee={...n,badgeContent:v,invisible:C,max:b,displayValue:k,showZero:h,anchorOrigin:O,color:w,overlap:T,variant:D},A=x_(ee),j={slots:p,slotProps:m},[M,te]=Q(`root`,{elementType:S_,externalForwardedProps:{...j,..._},ownerState:ee,className:U(A.root,i),ref:t,additionalProps:{as:o}}),{vertical:ne,horizontal:N}=O,P=T===`circular`?`14%`:`0`,re=ne===`top`?P:`auto`,F=ne===`bottom`?P:`auto`,I=N===`right`?P:`auto`,ie=N===`left`?P:`auto`,[L,R]=Q(`badge`,{elementType:C_,externalForwardedProps:j,ownerState:ee,className:A.badge,additionalProps:{"aria-hidden":!0,style:{"--Badge-translate":`${N===`right`?`50%`:`-50%`}, ${ne===`top`?`-50%`:`50%`}`,"--Badge-inset":`${re} ${I} ${F} ${ie}`,"--Badge-origin":`${N===`right`?`100%`:`0%`} ${ne===`top`?`0%`:`100%`}`}}});return(0,H.jsxs)(M,{...te,children:[s,(0,H.jsx)(L,{...R,children:k})]})}),E_=co(`MuiBox`,[`root`]),D_=oo({themeId:Yt,defaultTheme:jl(),defaultClassName:E_.root,generateClassName:io.generate});function O_(e){return W(`MuiButton`,e)}var k_=co(`MuiButton`,`root.text.outlined.contained.disableElevation.focusVisible.disabled.colorInherit.colorPrimary.colorSecondary.colorSuccess.colorError.colorInfo.colorWarning.sizeMedium.sizeSmall.sizeLarge.fullWidth.startIcon.endIcon.icon.loading.loadingWrapper.loadingIconPlaceholder.loadingIndicator.loadingPositionCenter.loadingPositionStart.loadingPositionEnd`.split(`.`)),A_=z.createContext({}),j_=z.createContext(void 0),M_=e=>{let{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,loading:o,loadingPosition:s,classes:c}=e,l=G({root:[`root`,o&&`loading`,a,`size${X(i)}`,`color${X(t)}`,n&&`disableElevation`,r&&`fullWidth`,o&&`loadingPosition${X(s)}`],startIcon:[`icon`,`startIcon`],endIcon:[`icon`,`endIcon`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},O_,c);return{...c,...l}},N_=[{props:{size:`small`},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:`medium`},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:`large`},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],P_=q(ep,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.color===`inherit`&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode===`light`?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:`6px 16px`,border:0,borderRadius:(e.vars||e).shape.borderRadius,...Tu(e,[`background-color`,`box-shadow`,`border-color`,`color`],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:`none`},[`&.${k_.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:`contained`},style:{color:`var(--variant-containedColor)`,backgroundColor:`var(--variant-containedBg)`,boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${k_.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},[`&.${k_.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:`outlined`},style:{padding:`5px 15px`,border:`1px solid currentColor`,borderColor:`var(--variant-outlinedBorder, currentColor)`,backgroundColor:`var(--variant-outlinedBg)`,color:`var(--variant-outlinedColor)`,[`&.${k_.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:`text`},style:{padding:`6px 8px`,color:`var(--variant-textColor)`,backgroundColor:`var(--variant-textBg)`}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{"--variant-textColor":(e.vars||e).palette[t].main,"--variant-outlinedColor":(e.vars||e).palette[t].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[t].main,.5),"--variant-containedColor":(e.vars||e).palette[t].contrastText,"--variant-containedBg":(e.vars||e).palette[t].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[t].dark,"--variant-textBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[t].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:`inherit`},style:{color:`inherit`,borderColor:`currentColor`,"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:`small`,variant:`text`},style:{padding:`4px 5px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`text`},style:{padding:`8px 11px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`outlined`},style:{padding:`3px 9px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`outlined`},style:{padding:`7px 21px`,fontSize:e.typography.pxToRem(15)}},{props:{size:`small`,variant:`contained`},style:{padding:`4px 10px`,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`,variant:`contained`},style:{padding:`8px 22px`,fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:`none`,"&:hover":{boxShadow:`none`},[`&.${k_.focusVisible}`]:{boxShadow:e.focusVisible?.boxShadow??`none`},"&:active":{boxShadow:`none`},[`&.${k_.disabled}`]:{boxShadow:`none`}}},{props:{fullWidth:!0},style:{width:`100%`}},{props:{loading:!0,loadingPosition:`center`},style:{...Tu(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),[`&.${k_.loading}`]:{color:`transparent`}}}]}})),F_=q(`span`,{name:`MuiButton`,slot:`StartIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart]}})(({theme:e})=>({display:`inherit`,alignItems:`center`,marginRight:8,marginLeft:-4,"&::before":{content:`"\\200b"`,width:0,overflow:`hidden`},variants:[{props:{size:`small`},style:{marginLeft:-2}},{props:{loadingPosition:`start`,loading:!0},style:{...Tu(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`start`,loading:!0,fullWidth:!0},style:{marginRight:-8}},...N_]})),I_=q(`span`,{name:`MuiButton`,slot:`EndIcon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd]}})(({theme:e})=>({display:`inherit`,marginRight:-4,marginLeft:8,variants:[{props:{size:`small`},style:{marginRight:-2}},{props:{loadingPosition:`end`,loading:!0},style:{...Tu(e,[`opacity`],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:`end`,loading:!0,fullWidth:!0},style:{marginLeft:-8}},...N_]})),L_=q(`span`,{name:`MuiButton`,slot:`LoadingIndicator`})(({theme:e})=>({display:`none`,position:`absolute`,visibility:`visible`,variants:[{props:{loading:!0},style:{display:`flex`}},{props:{loadingPosition:`start`},style:{left:14}},{props:{loadingPosition:`start`,size:`small`},style:{left:10}},{props:{variant:`text`,loadingPosition:`start`},style:{left:6}},{props:{loadingPosition:`center`},style:{left:`50%`,transform:`translate(-50%)`,color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:`end`},style:{right:14}},{props:{loadingPosition:`end`,size:`small`},style:{right:10}},{props:{variant:`text`,loadingPosition:`end`},style:{right:6}},{props:{loadingPosition:`start`,fullWidth:!0},style:{position:`relative`,left:-10}},{props:{loadingPosition:`end`,fullWidth:!0},style:{position:`relative`,right:-10}}]})),R_=q(`span`,{name:`MuiButton`,slot:`LoadingIconPlaceholder`})({display:`inline-block`,width:`1em`,height:`1em`}),z_=z.forwardRef(function(e,t){let n=z.useContext(A_),r=z.useContext(j_),i=Y({props:So(n,e),name:`MuiButton`}),{children:a,color:o=`primary`,component:s=`button`,className:c,disabled:l=!1,disableElevation:u=!1,disableFocusRipple:d=!1,endIcon:f,focusVisibleClassName:p,fullWidth:m=!1,id:h,loading:g=null,loadingIndicator:_,loadingPosition:v=`center`,size:y=`medium`,startIcon:b,type:x,variant:S=`text`,...C}=i,w=Cd(h),T=_??(0,H.jsx)(Cp,{"aria-labelledby":w,color:`inherit`,size:16}),E={...i,color:o,component:s,disabled:l,disableElevation:u,disableFocusRipple:d,fullWidth:m,loading:g,loadingIndicator:T,loadingPosition:v,size:y,type:x,variant:S},D=M_(E),O=(b||g&&v===`start`)&&(0,H.jsx)(F_,{className:D.startIcon,ownerState:E,children:b||(0,H.jsx)(R_,{className:D.loadingIconPlaceholder,ownerState:E})}),k=(f||g&&v===`end`)&&(0,H.jsx)(I_,{className:D.endIcon,ownerState:E,children:f||(0,H.jsx)(R_,{className:D.loadingIconPlaceholder,ownerState:E})}),ee=r||``,A=typeof g==`boolean`?(0,H.jsx)(`span`,{className:D.loadingWrapper,style:{display:`contents`},children:g&&(0,H.jsx)(L_,{className:D.loadingIndicator,ownerState:E,children:T})}):null,{root:j,...M}=D;return(0,H.jsxs)(P_,{ownerState:E,className:U(n.className,D.root,c,ee),component:s,disabled:l||g,focusRipple:!d,focusVisibleClassName:U(D.focusVisible,p),ref:t,internalNativeButton:!0,type:x,id:g?w:h,...C,classes:M,children:[O,v!==`end`&&A,a,v===`end`&&A,k]})});function B_(e){return W(`MuiCard`,e)}co(`MuiCard`,[`root`]);var V_=e=>{let{classes:t}=e;return G({root:[`root`]},B_,t)},H_=q(df,{name:`MuiCard`,slot:`Root`})({overflow:`hidden`}),U_=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiCard`}),{className:r,raised:i=!1,...a}=n,o={...n,raised:i},s=V_(o);return(0,H.jsx)(H_,{className:U(s.root,r),elevation:i?8:void 0,ref:t,ownerState:o,...a})});function W_(e){return W(`MuiCardContent`,e)}co(`MuiCardContent`,[`root`]);var G_=e=>{let{classes:t}=e;return G({root:[`root`]},W_,t)},K_=q(`div`,{name:`MuiCardContent`,slot:`Root`})({padding:16,"&:last-child":{paddingBottom:24}}),q_=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiCardContent`}),{className:r,component:i=`div`,...a}=n,o={...n,component:i},s=G_(o);return(0,H.jsx)(K_,{as:i,className:U(s.root,r),ownerState:o,ref:t,...a})});function J_(e){return W(`PrivateSwitchBase`,e)}co(`PrivateSwitchBase`,[`root`,`checked`,`disabled`,`input`,`edgeStart`,`edgeEnd`]);var Y_=e=>{let{classes:t,checked:n,disabled:r,edge:i}=e;return G({root:[`root`,n&&`checked`,r&&`disabled`,i&&`edge${X(i)}`],input:[`input`]},J_,t)},X_=q(ep,{name:`MuiSwitchBase`})({padding:9,borderRadius:`50%`,variants:[{props:{edge:`start`,size:`small`},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e===`start`&&t.size!==`small`,style:{marginLeft:-12}},{props:{edge:`end`,size:`small`},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e===`end`&&t.size!==`small`,style:{marginRight:-12}}]}),Z_=q(`input`,{name:`MuiSwitchBase`,shouldForwardProp:ru})({cursor:`inherit`,position:`absolute`,opacity:0,width:`100%`,height:`100%`,top:0,left:0,margin:0,padding:0,zIndex:1}),Q_=z.forwardRef(function(e,t){let{autoFocus:n,checked:r,checkedIcon:i,defaultChecked:a,disabled:o,disableFocusRipple:s=!1,edge:c=!1,icon:l,id:u,name:d,onBlur:f,onChange:p,onFocus:m,readOnly:h,required:g=!1,tabIndex:_,type:v,value:y,slots:b={},slotProps:x={},...S}=e,{nativeButton:C,...w}=S,[T,E]=Td({controlled:r,default:!!a,name:`SwitchBase`,state:`checked`}),D=Zl(),O=e=>{m&&m(e),D&&D.onFocus&&D.onFocus(e)},k=e=>{f&&f(e),D&&D.onBlur&&D.onBlur(e)},ee=e=>{if(e.nativeEvent.defaultPrevented||h)return;let t=e.target.checked;E(t),p&&p(e,t)},A=o;D&&A===void 0&&(A=D.disabled);let j=v===`checkbox`||v===`radio`,M={...e,checked:T,disabled:A,disableFocusRipple:s,edge:c},te=Y_(M),ne={slots:b,slotProps:x},[N,P]=Q(`root`,{ref:t,elementType:X_,className:te.root,shouldForwardComponentProp:!0,externalForwardedProps:{...ne,component:`span`,...w},getSlotProps:e=>({...e,onFocus:t=>{e.onFocus?.(t),O(t)},onBlur:t=>{e.onBlur?.(t),k(t)}}),ownerState:M,additionalProps:{centerRipple:!0,focusRipple:!s,role:void 0,tabIndex:null,internalDisabledThemeFocusVisible:!0}}),[re,F]=Q(`input`,{elementType:Z_,className:te.input,externalForwardedProps:ne,getSlotProps:e=>({...e,onChange:t=>{e.onChange?.(t),ee(t)}}),ownerState:M,additionalProps:{autoFocus:n,checked:r,defaultChecked:a,disabled:A,id:j?u:void 0,name:d,readOnly:h,required:g,tabIndex:_,type:v,...v===`checkbox`&&y===void 0?{}:{value:y}}});return(0,H.jsxs)(N,{...P,children:[(0,H.jsx)(re,{...F}),T?i:l]})}),$_=Z((0,H.jsx)(`path`,{d:`M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z`}),`CheckBoxOutlineBlank`),ev=Z((0,H.jsx)(`path`,{d:`M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z`}),`CheckBox`),tv=Z((0,H.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z`}),`IndeterminateCheckBox`),nv=e=>{let{classes:t,indeterminate:n,color:r,size:i}=e,a=G({root:[`root`,n&&`indeterminate`,`color${X(r)}`,`size${X(i)}`]},Ll,t);return{...t,...a}},rv=q(Q_,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiCheckbox`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${X(n.size)}`],n.color!=="default"&&t[`color${X(n.color)}`]]}})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${Zf.focusVisible} svg:first-of-type`]:{...Mc,borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{color:`default`,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{[`&.${Rl.checked}, &.${Rl.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Rl.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),iv=(0,H.jsx)(ev,{}),av=(0,H.jsx)($_,{}),ov=(0,H.jsx)(tv,{}),sv=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiCheckbox`}),{checkedIcon:r=iv,color:i=`primary`,icon:a=av,indeterminate:o=!1,indeterminateIcon:s=ov,size:c=`medium`,disableRipple:l=!1,className:u,slots:d={},slotProps:f={},...p}=n,m=o?s:a,h=o?s:r,g={...n,disableRipple:l,color:i,indeterminate:o,size:c},_=nv(g),v=typeof f.input==`function`?f.input(g):f.input,y=z.useRef(null),b=au(y,v?.ref);ou(()=>{y.current&&(y.current.indeterminate=o)});let[x,S]=Q(`root`,{ref:t,elementType:rv,className:U(_.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:d,slotProps:f,...p},ownerState:g,additionalProps:{type:`checkbox`,icon:z.cloneElement(m,{fontSize:m.props.fontSize??c}),checkedIcon:z.cloneElement(h,{fontSize:h.props.fontSize??c}),disableRipple:n.disableRipple,slots:d,slotProps:{input:{...Od(v,{"data-indeterminate":o,onChange:e=>{e.target.indeterminate=o}}),ref:b}}}});return(0,H.jsx)(x,{...S,classes:_})}),cv=typeof iu({})==`function`,lv=(e,t)=>({WebkitFontSmoothing:`antialiased`,MozOsxFontSmoothing:`grayscale`,boxSizing:`border-box`,WebkitTextSizeAdjust:`100%`,...t&&!e.vars&&{colorScheme:e.palette.mode}}),uv=e=>({color:(e.vars||e).palette.text.primary,...e.typography.body1,backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),dv=(e,t=!1)=>{let n={};t&&e.colorSchemes&&typeof e.getColorSchemeSelector==`function`&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={":root":{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={colorScheme:r.palette?.mode}});let r={html:lv(e,t),"*, *::before, *::after":{boxSizing:`inherit`},"strong, b":{fontWeight:e.typography.fontWeightBold},body:{margin:0,...uv(e),"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}},...n},i=e.components?.MuiCssBaseline?.styleOverrides;return i&&(r=[r,i]),r},fv=`mui-ecs`,pv=e=>{let t=dv(e,!1),n=Array.isArray(t)?t[0]:t;return!e.vars&&n&&(n.html[`:root:has(${fv})`]={colorScheme:e.palette.mode}),e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([t,r])=>{let i=e.getColorSchemeSelector(t);i.startsWith(`@`)?n[i]={[`:root:not(:has(.${fv}))`]:{colorScheme:r.palette?.mode}}:n[i.replace(/\s*&/,``)]={[`&:not(:has(.${fv}))`]:{colorScheme:r.palette?.mode}}}),t},mv=iu(cv?({theme:e,enableColorScheme:t})=>dv(e,t):({theme:e})=>pv(e));function hv(e){let{children:t,enableColorScheme:n=!1}=Y({props:e,name:`MuiCssBaseline`});return(0,H.jsxs)(z.Fragment,{children:[cv&&(0,H.jsx)(mv,{enableColorScheme:n}),!cv&&!n&&(0,H.jsx)(`span`,{className:fv,style:{display:`none`}}),t]})}function gv(e=window){let t=e.document.documentElement.clientWidth;return e.innerWidth-t}function _v(e){let t=Ul(e);return e===t.body||e===t.documentElement?Wl(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function vv(e,t){t?e.setAttribute(`aria-hidden`,`true`):e.removeAttribute(`aria-hidden`)}function yv(e){return parseFloat(Wl(e).getComputedStyle(e).paddingRight)||0}function bv(e){let t=[`TEMPLATE`,`SCRIPT`,`STYLE`,`LINK`,`MAP`,`META`,`NOSCRIPT`,`PICTURE`,`COL`,`COLGROUP`,`PARAM`,`SLOT`,`SOURCE`,`TRACK`].includes(e.tagName),n=e.tagName===`INPUT`&&e.getAttribute(`type`)===`hidden`;return t||n}function xv(e,t){let n=new Set,r=e;for(;r&&r!==t;)n.add(r),r=r.parentElement;return r===t?n:new Set}function Sv(e,t,n,r){[].forEach.call(e.children,e=>{e===t||bv(e)||(n.has(e)?Sv(e,t,n,r):r.add(e))})}function Cv(e){let{container:t,modals:n}=e,r=n[n.length-1].modalRef,i=new Set;Sv(t,r,xv(r,t),i),i.forEach(t=>{!e.hiddenSet.has(t)&&t.getAttribute(`aria-hidden`)===`true`&&i.delete(t)}),e.hiddenSet.forEach(e=>{i.has(e)||vv(e,!1)}),i.forEach(e=>vv(e,!0)),r&&vv(r,!1),e.hiddenSet=i}function wv(e,t){let n=[],r=e.container;if(!t.disableScrollLock){let e;if(r.parentNode instanceof DocumentFragment)e=Ul(r).body;else{let t=r.parentElement,n=Wl(r);e=t?.nodeName===`HTML`&&n.getComputedStyle(t).overflowY===`scroll`?t:r}if(_v(e)){let t=gv(Wl(e));n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${yv(e)+t}px`;let i=Ul(r).querySelectorAll(`.mui-fixed`);[].forEach.call(i,e=>{n.push({value:e.style.paddingRight,property:`padding-right`,el:e}),e.style.paddingRight=`${yv(e)+t}px`})}n.push({value:e.style.overflow,property:`overflow`,el:e},{value:e.style.overflowX,property:`overflow-x`,el:e},{value:e.style.overflowY,property:`overflow-y`,el:e}),e.style.overflow=`hidden`}return()=>{n.forEach(({value:e,el:t,property:n})=>{e?t.style.setProperty(n,e):t.style.removeProperty(n)})}}var Tv=class{containers=[];modals=[];add(e,t){let n=this.modals.indexOf(e);if(n!==-1)return n;n=this.modals.length,this.modals.push(e),e.modalRef&&vv(e.modalRef,!1);let r=this.containers.findIndex(e=>e.container===t);if(r!==-1)return this.containers[r].modals.push(e),Cv(this.containers[r]),n;let i={modals:[e],container:t,restore:null,hiddenSet:new Set};return this.containers.push(i),Cv(i),n}mount(e,t){let n=this.containers.findIndex(t=>t.modals.includes(e)),r=this.containers[n];r.restore||=wv(r,t)}remove(e,t=!0){let n=this.modals.indexOf(e);if(n===-1)return n;let r=this.containers.findIndex(t=>t.modals.includes(e)),i=this.containers[r];return i.modals.splice(i.modals.indexOf(e),1),this.modals.splice(n,1),i.modals.length===0?(i.restore&&i.restore(),e.modalRef&&vv(e.modalRef,t),i.hiddenSet.forEach(e=>vv(e,!1)),i.hiddenSet.clear(),this.containers.splice(r,1)):(Cv(i),e.modalRef&&vv(e.modalRef,t)),n}isTopModal(e){return this.modals.length>0&&this.modals[this.modals.length-1]===e}},Ev=im,Dv=`data-mui-focusable`;function Ov(e){return e?e.hasAttribute(`data-mui-focusable`)?e:e.querySelector(`[${Dv}]`):null}var kv=`input,select,textarea,a[href],button,[tabindex],audio[controls],video[controls],[contenteditable]:not([contenteditable="false"])`;function Av(e){let t=parseInt(e.getAttribute(`tabindex`)||``,10);return Number.isNaN(t)?e.contentEditable===`true`||(e.nodeName===`AUDIO`||e.nodeName===`VIDEO`||e.nodeName===`DETAILS`)&&e.getAttribute(`tabindex`)===null?0:e.tabIndex:t}function jv(e){if(e.tagName!==`INPUT`||e.type!==`radio`||!e.name)return!1;let t=t=>e.ownerDocument.querySelector(`input[type="radio"]${t}`),n=t(`[name="${e.name}"]:checked`);return n||=t(`[name="${e.name}"]`),n!==e}function Mv(e){return!(e.disabled||e.tagName===`INPUT`&&e.type===`hidden`||jv(e))}function Nv(e){let t=[],n=[];return Array.from(e.querySelectorAll(kv)).forEach((e,r)=>{let i=Av(e);i!==-1&&Mv(e)&&(i===0?t.push(e):n.push({documentOrder:r,tabIndex:i,node:e}))}),n.sort((e,t)=>e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex).map(e=>e.node).concat(t)}function Pv(){return!0}function Fv(e){let{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=Nv,isEnabled:o=Pv,open:s}=e,c=z.useRef(!1),l=z.useRef(null),u=z.useRef(null),d=z.useRef(null),f=z.useRef(null),p=z.useRef(!1),m=z.useRef(null),h=Vl(mg(t),m),g=z.useRef(null);z.useEffect(()=>{s&&m.current&&(p.current=!n)},[n,s]),z.useEffect(()=>{if(c.current=!1,!s||!m.current)return;let e=lu(Ul(m.current)),t=Ov(m.current)??m.current;return Ev(m.current,e)||(t.hasAttribute(`tabIndex`)||t.setAttribute(`tabIndex`,`-1`),p.current&&t.focus()),()=>{!i&&d.current&&(c.current=!0,d.current.focus(),d.current=null)}},[s]),z.useEffect(()=>{if(!s||!m.current)return;let e=Ul(m.current),t=t=>{if(g.current=t,r||!o()||t.key!==`Tab`)return;let n=m.current,i=lu(e);if(n===null)return;let s=Ov(n);if(i===n||i===s){let e=a(n);if(e.length===0)return;t.preventDefault(),t.shiftKey?e[e.length-1].focus():e[0].focus()}else if(Ev(n,i)){let e=a(n),r=e.indexOf(i);if(r===-1||!e.some(e=>Av(e)>0))return;t.preventDefault();let o=0;o=t.shiftKey?r<=0?e.length-1:r-1:r===e.length-1?0:r+1,e[o].focus()}},n=()=>{let t=m.current;if(t===null)return;let n=lu(e);if(!e.hasFocus()||!o()||c.current){c.current=!1;return}if(Ev(t,n)||r&&n!==l.current&&n!==u.current)return;if(n!==f.current)f.current=null;else if(f.current!==null)return;if(!p.current)return;let i=[];if((n===l.current||n===u.current)&&(i=a(m.current)),i.length>0){let e=!!(g.current?.shiftKey&&g.current?.key===`Tab`),t=i[0],n=i[i.length-1];typeof t!=`string`&&typeof n!=`string`&&(e?n.focus():t.focus())}else t.focus()};e.addEventListener(`focusin`,n),e.addEventListener(`keydown`,t,!0);let i=setInterval(()=>{let t=lu(e);t&&t.tagName===`BODY`&&n()},50);return()=>{clearInterval(i),e.removeEventListener(`focusin`,n),e.removeEventListener(`keydown`,t,!0)}},[n,r,i,o,s,a]);let _=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0,f.current=e.target;let n=t.props.onFocus;n&&n(e)},v=e=>{d.current===null&&(d.current=e.relatedTarget),p.current=!0};return(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:l,"data-testid":`sentinelStart`}),z.cloneElement(t,{ref:h,onFocus:_}),(0,H.jsx)(`div`,{tabIndex:s?0:-1,onFocus:v,ref:u,"data-testid":`sentinelEnd`})]})}function Iv(e){return typeof e==`function`?e():e}function Lv(e){return e?e.props.hasOwnProperty(`in`):!1}var Rv=()=>{},zv=new Tv;function Bv(e){let{container:t,disableScrollLock:n=!1,closeAfterTransition:r=!1,onTransitionEnter:i,onTransitionExited:a,children:o,onClose:s,open:c,rootRef:l}=e,u=z.useRef({}),d=z.useRef(null),f=z.useRef(null),p=z.useRef(null),m=Vl(p,l),[h,g]=z.useState(!c),_=Lv(o),v=!0;(e[`aria-hidden`]===`false`||e[`aria-hidden`]===!1)&&(v=!1);let y=()=>Ul(d.current),b=()=>(u.current.modalRef=p.current,u.current.mount=d.current,u.current),x=()=>{zv.mount(b(),{disableScrollLock:n}),p.current&&(p.current.scrollTop=0)},S=Hl(()=>{let e=Iv(t)||y().body;zv.add(b(),e),p.current&&x()}),C=()=>zv.isTopModal(b()),w=Hl(e=>{d.current=e,e&&(f.current=e,c&&C()?x():p.current&&vv(p.current,v))}),T=z.useCallback(()=>{zv.remove(b(),v)},[v]);z.useEffect(()=>()=>{T()},[T]),z.useEffect(()=>{c?S():_&&r||T()},[c,T,_,r,S]);let E=e=>t=>{e.onKeyDown?.(t),t.key===`Escape`&&t.which!==229&&C()&&(t.stopPropagation(),s&&s(t,`escapeKeyDown`))},D=e=>t=>{e.onClick?.(t),t.target===t.currentTarget&&s&&s(t,`backdropClick`)};return{getRootProps:(t={})=>{let n=Zd(e);delete n.onTransitionEnter,delete n.onTransitionExited;let r={...n,...t};return{role:`presentation`,...r,onKeyDown:E(r),ref:m}},getBackdropProps:(e={})=>{let t=e;return{"aria-hidden":!0,...t,onClick:D(t),open:c}},getTransitionProps:()=>({onEnter:pd(()=>{g(!1),i&&i()},o?.props.onEnter??Rv),onExited:pd(()=>{g(!0),a&&a(),r&&T()},o?.props.onExited??Rv)}),rootRef:m,portalRef:w,portalContainer:!c&&_&&!h?f.current??t:t,isTopModal:C,exited:h,hasTransition:_}}function Vv(e){return W(`MuiModal`,e)}co(`MuiModal`,[`root`,`hidden`,`backdrop`]);var Hv=e=>{let{open:t,exited:n,classes:r}=e;return G({root:[`root`,!t&&n&&`hidden`],backdrop:[`backdrop`]},Vv,r)},Uv=q(`div`,{name:`MuiModal`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(J(({theme:e})=>({position:`fixed`,zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:e})=>!e.open&&e.exited,style:{visibility:`hidden`}}]}))),Wv=q(h_,{name:`MuiModal`,slot:`Backdrop`})({zIndex:-1}),Gv=z.forwardRef(function(e,t){let n=Y({name:`MuiModal`,props:e}),{classes:r,className:i,closeAfterTransition:a=!1,children:o,container:s,component:c,disableAutoFocus:l=!1,disableEnforceFocus:u=!1,disablePortal:d=!1,disableRestoreFocus:f=!1,disableScrollLock:p=!1,hideBackdrop:m=!1,keepMounted:h=!1,onClose:g,onTransitionEnter:_,onTransitionExited:v,open:y,slotProps:b={},slots:x={},theme:S,...C}=n,w={...n,closeAfterTransition:a,disableAutoFocus:l,disableEnforceFocus:u,disablePortal:d,disableRestoreFocus:f,disableScrollLock:p,hideBackdrop:m,keepMounted:h},{getRootProps:T,getBackdropProps:E,getTransitionProps:D,portalRef:O,portalContainer:k,isTopModal:ee,exited:A,hasTransition:j}=Bv({...w,rootRef:t}),M={...w,exited:A},te=Hv(M),ne={};if(o.props.tabIndex===void 0&&(ne.tabIndex=`-1`),j){let{onEnter:e,onExited:t}=D();ne.onEnter=e,ne.onExited=t}let N={slots:x,slotProps:b},[P,re]=Q(`root`,{ref:t,elementType:Uv,externalForwardedProps:{...N,...C,component:c},getSlotProps:T,ownerState:M,className:U(i,te?.root,!M.open&&M.exited&&te?.hidden)}),[F,I]=Q(`backdrop`,{elementType:Wv,externalForwardedProps:N,shouldForwardComponentProp:!0,getSlotProps:e=>E({...e,onClick:t=>{e?.onClick&&e.onClick(t)}}),className:te?.backdrop,ownerState:M});return!h&&!y&&(!j||A)?null:(0,H.jsx)(gg,{ref:O,container:k,disablePortal:d,children:(0,H.jsxs)(P,{...re,children:[m?null:(0,H.jsx)(F,{...I}),(0,H.jsx)(Fv,{disableEnforceFocus:u,disableAutoFocus:l,disableRestoreFocus:f,isEnabled:ee,open:y,children:z.cloneElement(o,ne)})]})})});function Kv(e){return W(`MuiDialog`,e)}co(`MuiDialog`,[`root`,`backdrop`,`scrollPaper`,`scrollBody`,`container`,`paper`,`paperWidthFalse`,`paperWidthXs`,`paperWidthSm`,`paperWidthMd`,`paperWidthLg`,`paperWidthXl`,`paperFullWidth`,`paperFullScreen`]);var qv=z.createContext({}),Jv=q(h_,{name:`MuiDialog`,slot:`Backdrop`})({zIndex:-1}),Yv=e=>{let{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e;return G({root:[`root`],backdrop:[`backdrop`],container:[`container`,`scroll${X(n)}`],paper:[`paper`,`paperWidth${X(String(r))}`,i&&`paperFullWidth`,a&&`paperFullScreen`]},Kv,t)},Xv=q(Gv,{name:`MuiDialog`,slot:`Root`})({"@media print":{position:`absolute !important`}}),Zv=q(`div`,{name:`MuiDialog`,slot:`Container`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.container,t[`scroll${X(n.scroll)}`]]}})({height:`100%`,"@media print":{height:`auto`},outline:0,variants:[{props:{scroll:`paper`},style:{display:`flex`,justifyContent:`center`,alignItems:`center`}},{props:{scroll:`body`},style:{overflowY:`auto`,overflowX:`hidden`,textAlign:`center`,"&::after":{content:`""`,display:`inline-block`,verticalAlign:`middle`,height:`100%`,width:`0`}}}]}),Qv=q(df,{name:`MuiDialog`,slot:`Paper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.paper,t[`paperWidth${X(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(J(({theme:e})=>({margin:32,position:`relative`,overflowY:`auto`,outline:0,"@media print":{overflowY:`visible`,boxShadow:`none`},variants:[{props:{scroll:`paper`},style:{display:`flex`,flexDirection:`column`,maxHeight:`calc(100% - 64px)`}},{props:{scroll:`body`},style:{display:`inline-block`,verticalAlign:`middle`,textAlign:`initial`}},{props:({ownerState:e})=>!e.maxWidth,style:{maxWidth:`calc(100% - 64px)`}},{props:{maxWidth:`xs`},style:{maxWidth:e.breakpoints.unit===`px`?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`}},{props:{maxWidth:`xs`,scroll:`body`},style:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:`calc(100% - 64px)`}}},...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`}})),...Object.keys(e.breakpoints.values).filter(e=>e!==`xs`).map(t=>({props:{maxWidth:t,scroll:`body`},style:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:`calc(100% - 64px)`}}})),{props:({ownerState:e})=>e.fullWidth,style:{width:`calc(100% - 64px)`}},{props:({ownerState:e})=>e.fullScreen,style:{margin:0,width:`100%`,maxWidth:`100%`,height:`100%`,maxHeight:`none`,borderRadius:0}},{props:({ownerState:e})=>e.fullScreen&&e.scroll===`body`,style:{margin:0,maxWidth:`100%`}}]}))),$v=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiDialog`}),r=eu(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{"aria-describedby":a,"aria-labelledby":o,"aria-modal":s=!0,children:c,className:l,fullScreen:u=!1,fullWidth:d=!1,maxWidth:f=`sm`,onClick:p,onClose:m,open:h,PaperComponent:g=df,role:_=`dialog`,scroll:v=`paper`,slots:y={},slotProps:b={},transitionDuration:x=i,...S}=n,C={...n,fullScreen:u,fullWidth:d,maxWidth:f,scroll:v},w=Yv(C),T=z.useRef(),E=e=>{T.current=e.target===e.currentTarget},D=e=>{p&&p(e),T.current&&(T.current=null,m&&m(e,`backdropClick`))},O=ls(o),k=z.useMemo(()=>({titleId:O}),[O]),ee={slots:y,slotProps:b},[A,j]=Q(`root`,{elementType:Xv,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:C,className:U(w.root,l),ref:t}),[M,te]=Q(`backdrop`,{elementType:Jv,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:C,className:w.backdrop}),[ne,N]=Q(`paper`,{elementType:Qv,shouldForwardComponentProp:!0,externalForwardedProps:ee,ownerState:C,className:w.paper,additionalProps:{elevation:24,role:_,"aria-describedby":a,"aria-labelledby":O,"aria-modal":s,tabIndex:-1,[Dv]:``}}),[P,re]=Q(`container`,{elementType:Zv,externalForwardedProps:ee,ownerState:C,className:w.container}),[F,I]=Q(`transition`,{elementType:d_,externalForwardedProps:ee,ownerState:C,additionalProps:{appear:!0,in:h,timeout:x,role:`presentation`}});return(0,H.jsx)(A,{closeAfterTransition:!0,slots:{backdrop:M},slotProps:{backdrop:{transitionDuration:x,...te}},onClose:m,open:h,onClick:D,...j,...S,children:(0,H.jsx)(F,{...I,children:(0,H.jsx)(P,{onMouseDown:E,...re,children:(0,H.jsx)(ne,{as:g,...N,children:(0,H.jsx)(qv.Provider,{value:k,children:c})})})})})});function ey(e){return W(`MuiDialogActions`,e)}co(`MuiDialogActions`,[`root`,`spacing`]);var ty=e=>{let{classes:t,disableSpacing:n}=e;return G({root:[`root`,!n&&`spacing`]},ey,t)},ny=q(`div`,{name:`MuiDialogActions`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:`flex`,alignItems:`center`,padding:8,justifyContent:`flex-end`,flex:`0 0 auto`,variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),ry=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiDialogActions`}),{className:r,disableSpacing:i=!1,...a}=n,o={...n,disableSpacing:i},s=ty(o);return(0,H.jsx)(ny,{className:U(s.root,r),ownerState:o,ref:t,...a})});function iy(e){return W(`MuiDialogContent`,e)}co(`MuiDialogContent`,[`root`,`dividers`]);function ay(e){return W(`MuiDialogTitle`,e)}var oy=co(`MuiDialogTitle`,[`root`]),sy=e=>{let{classes:t,dividers:n}=e;return G({root:[`root`,n&&`dividers`]},iy,t)},cy=q(`div`,{name:`MuiDialogContent`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(J(({theme:e})=>({flex:`1 1 auto`,WebkitOverflowScrolling:`touch`,overflowY:`auto`,padding:`20px 24px`,...e.focusVisible&&{"&:focus-visible":{...Pc(1),...e.focusVisible}},variants:[{props:({ownerState:e})=>e.dividers,style:{padding:`16px 24px`,borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:e})=>!e.dividers,style:{[`.${oy.root} + &`]:{paddingTop:0}}}]}))),ly=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiDialogContent`}),{className:r,dividers:i=!1,...a}=n,o={...n,dividers:i},s=sy(o);return(0,H.jsx)(cy,{className:U(s.root,r),ownerState:o,ref:t,...a})}),uy=e=>{let{classes:t}=e;return G({root:[`root`]},ay,t)},dy=q(qp,{name:`MuiDialogTitle`,slot:`Root`})({padding:`16px 24px`,flex:`0 0 auto`}),fy=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiDialogTitle`}),{className:r,id:i,...a}=n,o=n,s=uy(o),{titleId:c=i}=z.useContext(qv);return(0,H.jsx)(dy,{component:`h2`,className:U(s.root,r),ownerState:o,ref:t,variant:`h6`,id:i??c,...a})});function py(e){return W(`MuiDivider`,e)}var my=co(`MuiDivider`,[`root`,`absolute`,`fullWidth`,`inset`,`middle`,`flexItem`,`vertical`,`withChildren`,`textAlignRight`,`textAlignLeft`,`wrapper`,`wrapperVertical`]),hy=e=>{let{absolute:t,children:n,classes:r,flexItem:i,orientation:a,textAlign:o,variant:s}=e;return G({root:[`root`,t&&`absolute`,s,a===`vertical`&&`vertical`,i&&`flexItem`,n&&`withChildren`,o===`right`&&a!==`vertical`&&`textAlignRight`,o===`left`&&a!==`vertical`&&`textAlignLeft`],wrapper:[`wrapper`,a===`vertical`&&`wrapperVertical`]},py,r)},gy=q(`div`,{name:`MuiDivider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.orientation===`vertical`&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.textAlign===`right`&&n.orientation!==`vertical`&&t.textAlignRight,n.textAlign===`left`&&n.orientation!==`vertical`&&t.textAlignLeft]}})(J(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:`solid`,borderColor:(e.vars||e).palette.divider,borderBottomWidth:`thin`,variants:[{props:{absolute:!0},style:{position:`absolute`,bottom:0,left:0,width:`100%`}},{props:{variant:`inset`},style:{marginLeft:72}},{props:{variant:`middle`,orientation:`horizontal`},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:`middle`,orientation:`vertical`},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:`vertical`},style:{height:`100%`,borderBottomWidth:0,borderRightWidth:`thin`}},{props:{flexItem:!0},style:{alignSelf:`stretch`,height:`auto`}},{props:({ownerState:e})=>!!e.children,style:{display:`flex`,textAlign:`center`,border:0,borderTopStyle:`solid`,borderLeftStyle:`solid`,"&::before, &::after":{content:`""`,alignSelf:`center`}}},{props:({ownerState:e})=>e.children&&e.orientation!==`vertical`,style:{"&::before, &::after":{width:`100%`,borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:`inherit`}}},{props:({ownerState:e})=>e.orientation===`vertical`&&e.children,style:{flexDirection:`column`,"&::before, &::after":{height:`100%`,borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:`inherit`}}},{props:({ownerState:e})=>e.textAlign===`right`&&e.orientation!==`vertical`,style:{"&::before":{width:`90%`},"&::after":{width:`10%`}}},{props:({ownerState:e})=>e.textAlign===`left`&&e.orientation!==`vertical`,style:{"&::before":{width:`10%`},"&::after":{width:`90%`}}}]}))),_y=q(`span`,{name:`MuiDivider`,slot:`Wrapper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.wrapper,n.orientation===`vertical`&&t.wrapperVertical]}})(J(({theme:e})=>({display:`inline-block`,paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:`nowrap`,variants:[{props:{orientation:`vertical`},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),vy=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiDivider`}),{absolute:r=!1,children:i,className:a,orientation:o=`horizontal`,component:s=i||o===`vertical`?`div`:`hr`,flexItem:c=!1,role:l=s===`hr`?void 0:`separator`,textAlign:u=`center`,variant:d=`fullWidth`,...f}=n,p={...n,absolute:r,component:s,flexItem:c,orientation:o,role:l,textAlign:u,variant:d},m=hy(p);return(0,H.jsx)(gy,{as:s,className:U(m.root,a),role:l,ref:t,ownerState:p,"aria-orientation":l===`separator`&&(s!==`hr`||o===`vertical`)?o:void 0,...f,children:i?(0,H.jsx)(_y,{className:m.wrapper,ownerState:p,children:i}):null})});function yy(e){return W(`MuiFab`,e)}var by=co(`MuiFab`,[`root`,`primary`,`secondary`,`extended`,`circular`,`focusVisible`,`disabled`,`colorInherit`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`info`,`error`,`warning`,`success`]),xy=e=>{let{color:t,variant:n,classes:r,size:i}=e,a=G({root:[`root`,n,`size${X(i)}`,t===`inherit`?`colorInherit`:t]},yy,r);return{...r,...a}},Sy=q(ep,{name:`MuiFab`,slot:`Root`,shouldForwardProp:e=>ru(e)||e===`classes`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.color===`inherit`&&t.colorInherit,t[X(n.size)],t[n.color]]}})(J(({theme:e})=>({...e.typography.button,minHeight:36,...Tu(e,[`background-color`,`box-shadow`,`border-color`],{duration:e.transitions.duration.short}),borderRadius:`50%`,padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:e.palette.getContrastText?.(e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:`none`},[`&.${by.focusVisible}`]:{...e.focusVisible,boxShadow:e.focusVisible?.boxShadow?`${(e.vars||e).shadows[6]}, ${e.focusVisible.boxShadow}`:(e.vars||e).shadows[6]},variants:[{props:{size:`small`},style:{width:40,height:40}},{props:{size:`medium`},style:{width:48,height:48}},{props:{variant:`extended`},style:{borderRadius:24,padding:`0 16px`,width:`auto`,minHeight:`auto`,minWidth:48,height:48}},{props:{variant:`extended`,size:`small`},style:{width:`auto`,padding:`0 8px`,borderRadius:17,minWidth:34,height:34}},{props:{variant:`extended`,size:`medium`},style:{width:`auto`,padding:`0 16px`,borderRadius:20,minWidth:40,height:40}},{props:{color:`inherit`},style:{color:`inherit`}}]})),J(({theme:e})=>({variants:[...Object.entries(e.palette).filter(lp([`dark`,`contrastText`])).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].contrastText,backgroundColor:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:(e.vars||e).palette[t].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t].main}}}}))]})),J(({theme:e})=>({[`&.${by.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Cy=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFab`}),{children:r,className:i,color:a=`default`,component:o=`button`,disabled:s=!1,disableFocusRipple:c=!1,focusVisibleClassName:l,size:u=`large`,variant:d=`circular`,...f}=n,p={...n,color:a,component:o,disabled:s,disableFocusRipple:c,size:u,variant:d},m=xy(p),{root:h,...g}=m;return(0,H.jsx)(Sy,{className:U(m.root,i),component:o,internalNativeButton:!0,disabled:s,focusRipple:!c,focusVisibleClassName:U(m.focusVisible,l),ownerState:p,ref:t,...f,classes:g,children:r})});function wy(e){return W(`MuiSelect`,e)}var Ty=co(`MuiSelect`,[`root`,`select`,`multiple`,`filled`,`outlined`,`standard`,`disabled`,`focused`,`icon`,`iconOpen`,`nativeInput`,`error`]),Ey=e=>{let{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:o,multiline:s}=e,c=G({root:[`root`,!n&&`underline`,r&&`adornedStart`,i&&`adornedEnd`,a===`small`&&`size${X(a)}`,o&&`hiddenLabel`,s&&`multiline`],input:[`input`]},Iu,t);return{...t,...c}},Dy=q(Mu,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiFilledInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...ku(e,t),!n.disableUnderline&&t.underline]}})(J(({theme:e})=>{let t=e.palette.mode===`light`,n=t?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`,r=t?`rgba(0, 0, 0, 0.06)`:`rgba(255, 255, 255, 0.09)`,i=t?`rgba(0, 0, 0, 0.09)`:`rgba(255, 255, 255, 0.13)`,a=t?`rgba(0, 0, 0, 0.12)`:`rgba(255, 255, 255, 0.12)`;return{position:`relative`,backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,...Tu(e,`background-color`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${Lu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${Lu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...Tu(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Lu.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Lu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...Tu(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Lu.disabled}, .${Lu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Lu.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{disableUnderline:!1,color:t},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t]?.main}`}}})),{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:12}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`12px`,paddingRight:`var(--_trailingPad)`,[`&.${Ty.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`25px 12px 8px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.multiline&&e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}}]}})),Oy=q(Nu,{name:`MuiFilledInput`,slot:`Input`,overridesResolver:Au})(J(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderTopLeftRadius:`inherit`,borderTopRightRadius:`inherit`,...e.vars&&{WebkitBoxShadow:e.vars.palette.Input.autofillWebkitBoxShadow,...e.applyStyles(`dark`,{WebkitTextFillColor:`#fff`,caretColor:`#fff`})}},variants:[{props:{size:`small`},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:e})=>e.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}},{props:({ownerState:e})=>e.hiddenLabel&&e.size===`small`,style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:e})=>e.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),ky=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFilledInput`}),{disableUnderline:r=!1,fullWidth:i=!1,hiddenLabel:a,inputComponent:o=`input`,multiline:s=!1,notched:c,slotProps:l,slots:u={},type:d=`text`,...f}=n,p={...n,disableUnderline:r,fullWidth:i,inputComponent:o,multiline:s,type:d},m=Ey(n),h={root:{ownerState:p},input:{ownerState:p}},g=l?mi(h,l):h,_=u.root??Dy,v=u.input??Oy;return(0,H.jsx)(Fu,{slots:{root:_,input:v},slotProps:g,fullWidth:i,inputComponent:o,multiline:s,ref:t,type:d,...f,classes:m})});ky.muiName=`Input`;function Ay(e){return W(`MuiFormControl`,e)}co(`MuiFormControl`,[`root`,`marginNone`,`marginNormal`,`marginDense`,`fullWidth`,`disabled`]);var jy=e=>{let{classes:t,margin:n,fullWidth:r}=e;return G({root:[`root`,n!==`none`&&`margin${X(n)}`,r&&`fullWidth`]},Ay,t)},My=q(`div`,{name:`MuiFormControl`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`margin${X(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:`inline-flex`,flexDirection:`column`,position:`relative`,minWidth:0,padding:0,margin:0,border:0,verticalAlign:`top`,variants:[{props:{margin:`normal`},style:{marginTop:16,marginBottom:8}},{props:{margin:`dense`},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:`100%`}}]}),Ny=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFormControl`}),{children:r,className:i,color:a=`primary`,component:o=`div`,disabled:s=!1,error:c=!1,focused:l,fullWidth:u=!1,hiddenLabel:d=!1,margin:f=`none`,required:p=!1,size:m=`medium`,variant:h=`outlined`,...g}=n,_={...n,color:a,component:o,disabled:s,error:c,fullWidth:u,hiddenLabel:d,margin:f,required:p,size:m,variant:h},v=jy(_),[y,b]=z.useState(()=>{let e=!1;return r&&z.Children.forEach(r,t=>{if(!bd(t,[`Input`,`Select`]))return;let n=bd(t,[`Select`])?t.props.input:t;n&&fu(n.props)&&(e=!0)}),e}),[x,S]=z.useState(()=>{let e=!1;return r&&z.Children.forEach(r,t=>{bd(t,[`Input`,`Select`])&&(du(t.props,!0)||du(t.props.inputProps,!0))&&(e=!0)}),e}),[C,w]=z.useState(!1);s&&C&&w(!1);let T=l!==void 0&&!s?l:C,E;z.useRef(!1);let D=z.useCallback(()=>{S(!0)},[]),O=z.useCallback(()=>{S(!1)},[]),k=z.useMemo(()=>({adornedStart:y,setAdornedStart:b,color:a,disabled:s,error:c,filled:x,focused:T,fullWidth:u,hiddenLabel:d,size:m,onBlur:()=>{w(!1)},onFocus:()=>{w(!0)},onEmpty:O,onFilled:D,registerEffect:E,required:p,variant:h}),[y,a,s,c,x,T,u,d,E,O,D,p,m,h]);return(0,H.jsx)(Xl.Provider,{value:k,children:(0,H.jsx)(My,{as:o,ownerState:_,className:U(v.root,i),ref:t,...g,children:r})})}),Py=e=>{let{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e;return G({root:[`root`,n&&`disabled`,`labelPlacement${X(r)}`,i&&`error`,a&&`required`],label:[`label`,n&&`disabled`],asterisk:[`asterisk`,i&&`error`]},Ru,t)},Fy=q(`label`,{name:`MuiFormControlLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${zu.label}`]:t.label},t.root,t[`labelPlacement${X(n.labelPlacement)}`]]}})(J(({theme:e})=>({display:`inline-flex`,alignItems:`center`,cursor:`pointer`,verticalAlign:`middle`,WebkitTapHighlightColor:`transparent`,marginLeft:-11,marginRight:16,[`&.${zu.disabled}`]:{cursor:`default`},[`& .${zu.label}`]:{[`&.${zu.disabled}`]:{color:(e.vars||e).palette.text.disabled}},variants:[{props:{labelPlacement:`start`},style:{flexDirection:`row-reverse`,marginRight:-11}},{props:{labelPlacement:`top`},style:{flexDirection:`column-reverse`}},{props:{labelPlacement:`bottom`},style:{flexDirection:`column`}},{props:({labelPlacement:e})=>e===`start`||e===`top`||e===`bottom`,style:{marginLeft:16}}]}))),Iy=q(`span`,{name:`MuiFormControlLabel`,slot:`Asterisk`})(J(({theme:e})=>({[`&.${zu.error}`]:{color:(e.vars||e).palette.error.main}}))),Ly=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFormControlLabel`}),{checked:r,className:i,control:a,disabled:o,disableTypography:s,label:c,labelPlacement:l=`end`,name:u,onChange:d,required:f,slots:p={},slotProps:m={},value:h,...g}=n,[_,v]=Ql({props:n,states:[`error`]}),y=o??a.props.disabled??v?.disabled,b=f??a.props.required,x={disabled:y,required:b};[`checked`,`name`,`onChange`,`value`].forEach(e=>{a.props[e]===void 0&&n[e]!==void 0&&(x[e]=n[e])});let S={...n,disabled:y,labelPlacement:l,required:b,error:_.error},C=Py(S),[w,T]=Q(`typography`,{elementType:qp,externalForwardedProps:{slots:p,slotProps:m},ownerState:S}),E=c;return E!=null&&E.type!==qp&&!s&&(E=(0,H.jsx)(w,{component:`span`,...T,className:U(C.label,T?.className),children:E})),(0,H.jsxs)(Fy,{className:U(C.root,i),ownerState:S,ref:t,...g,children:[z.cloneElement(a,x),b?(0,H.jsxs)(`div`,{children:[E,(0,H.jsxs)(Iy,{ownerState:S,"aria-hidden":!0,className:C.asterisk,children:[` `,`*`]})]}):E]})});function Ry(e){return W(`MuiFormGroup`,e)}co(`MuiFormGroup`,[`root`,`row`,`error`]);var zy=e=>{let{classes:t,row:n,error:r}=e;return G({root:[`root`,n&&`row`,r&&`error`]},Ry,t)},By=q(`div`,{name:`MuiFormGroup`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.row&&t.row]}})({display:`flex`,flexDirection:`column`,flexWrap:`wrap`,variants:[{props:{row:!0},style:{flexDirection:`row`}}]}),Vy=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFormGroup`}),{className:r,row:i=!1,...a}=n,[o]=Ql({props:n,states:[`error`]}),s={...n,row:i,error:o.error},c=zy(s);return(0,H.jsx)(By,{className:U(c.root,r),ownerState:s,ref:t,...a})}),Hy,Uy=e=>{let{classes:t,contained:n,size:r,disabled:i,error:a,filled:o,focused:s,required:c}=e;return G({root:[`root`,i&&`disabled`,a&&`error`,r&&`size${X(r)}`,n&&`contained`,s&&`focused`,o&&`filled`,c&&`required`]},Bu,t)},Wy=q(`p`,{name:`MuiFormHelperText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size&&t[`size${X(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:`left`,marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Vu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Vu.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:`small`},style:{marginTop:4}},{props:({ownerState:e})=>e.contained,style:{marginLeft:14,marginRight:14}}]}))),Gy=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFormHelperText`}),{children:r,className:i,component:a=`p`,disabled:o,error:s,filled:c,focused:l,margin:u,required:d,variant:f,...p}=n,[m]=Ql({props:n,states:[`variant`,`size`,`disabled`,`error`,`filled`,`focused`,`required`]}),h={...n,component:a,contained:m.variant===`filled`||m.variant===`outlined`,variant:m.variant,size:m.size,disabled:m.disabled,error:m.error,filled:m.filled,focused:m.focused,required:m.required};delete h.ownerState;let g=Uy(h);return(0,H.jsx)(Wy,{as:a,className:U(g.root,i),ref:t,...p,ownerState:h,children:r===` `?Hy||=(0,H.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):r})}),Ky=e=>{let{classes:t,color:n,focused:r,disabled:i,error:a,filled:o,required:s}=e;return G({root:[`root`,`color${X(n)}`,i&&`disabled`,a&&`error`,o&&`filled`,r&&`focused`,s&&`required`],asterisk:[`asterisk`,a&&`error`]},Hu,t)},qy=q(`label`,{name:`MuiFormLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color===`secondary`&&t.colorSecondary,n.filled&&t.filled]}})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:`1.4375em`,padding:0,position:`relative`,variants:[...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{[`&.${Uu.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Uu.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Uu.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),Jy=q(`span`,{name:`MuiFormLabel`,slot:`Asterisk`})(J(({theme:e})=>({[`&.${Uu.error}`]:{color:(e.vars||e).palette.error.main}}))),Yy=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiFormLabel`}),{children:r,className:i,color:a,component:o=`label`,disabled:s,error:c,filled:l,focused:u,required:d,...f}=n,[p]=Ql({props:n,states:[`color`,`required`,`focused`,`disabled`,`error`,`filled`]}),m={...n,color:p.color||`primary`,component:o,disabled:p.disabled,error:p.error,filled:p.filled,focused:p.focused,required:p.required},h=Ky(m);return(0,H.jsxs)(qy,{as:o,ownerState:m,className:U(h.root,i),ref:t,...f,children:[r,p.required&&(0,H.jsxs)(Jy,{ownerState:m,"aria-hidden":!0,className:h.asterisk,children:[` `,`*`]})]})}),Xy=ac({createStyledComponent:q(`div`,{name:`MuiGrid`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.container&&t.container]}}),componentName:`MuiGrid`,useThemeProps:e=>Y({props:e,name:`MuiGrid`}),useTheme:eu});function Zy(e){return`scale(${e}, ${e**2})`}var Qy={entering:{opacity:1,transform:Zy(1)},entered:{opacity:1,transform:`none`},exiting:{opacity:0,transform:Zy(.75)},exited:{opacity:0,transform:Zy(.75)}},$y={opacity:0,transform:Zy(.75),visibility:`hidden`},eb=z.forwardRef(function(e,t){let{addEndListener:n,appear:r=!0,children:i,disablePrefersReducedMotion:a=!1,easing:o,in:s,onEnter:c,onEntered:l,onEntering:u,onExit:d,onExited:f,onExiting:p,style:m,timeout:h=`auto`,...g}=e,_=z.useRef(null),v=eu(),y=Jd(v.motion.reducedMotion,a),b=z.useRef(null),x=au(b,mg(i),t),S=xu(b,u),C=xu(b,(e,t)=>{y.shouldReduceMotion||_u(e);let{duration:n,delay:r,easing:i}=Cu({style:m,timeout:h,easing:o},{mode:`enter`}),a;h===`auto`&&!y.shouldReduceMotion?(a=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=a):(a=n,_.current=null);let s=y.getTransitionTiming({duration:a,delay:r});e.style.transition=[v.transitions.create(`opacity`,{duration:s.duration,delay:s.delay}),v.transitions.create(`transform`,{duration:typeof s.duration==`string`?s.duration:s.duration*.666,delay:s.delay,easing:i})].join(`,`),c&&c(e,t)}),w=xu(b,l),T=xu(b,p),E=xu(b,e=>{let{duration:t,delay:n,easing:r}=Cu({style:m,timeout:h,easing:o},{mode:`exit`}),i;h===`auto`&&!y.shouldReduceMotion?(i=v.transitions.getAutoHeightDuration(e.clientHeight),_.current=i):(i=t,_.current=null);let a=y.getTransitionTiming({duration:i,delay:n});e.style.transition=[v.transitions.create(`opacity`,{duration:a.duration,delay:a.delay}),v.transitions.create(`transform`,{duration:typeof a.duration==`string`?a.duration:a.duration*.666,delay:a.delay||(typeof a.duration==`string`?a.duration:a.duration*.333),easing:r})].join(`,`),e.style.opacity=0,e.style.transform=Zy(.75),d&&d(e)}),D=xu(b,e=>{e.style.transition=``,f&&f(e)});return(0,H.jsx)(Id,{appear:r,in:s,nodeRef:b,onEnter:C,onEntered:w,onEntering:S,onExit:E,onExited:D,onExiting:T,addEndListener:n?e=>{n(b.current,e)}:void 0,getAutoTimeout:h===`auto`?()=>_.current:void 0,reduceMotion:y.shouldReduceMotion,timeout:h===`auto`?null:h,...g,children:(e,{ownerState:t,...n})=>{let r=Su(e,s,Qy,$y,m,i.props.style);return z.cloneElement(i,{style:r,ref:x,...n})}})});eb&&(eb.muiSupportAuto=!0);function tb(e){return W(`MuiInputLabel`,e)}var nb=co(`MuiInputLabel`,[`root`,`focused`,`disabled`,`error`,`required`,`asterisk`,`formControl`,`sizeSmall`,`shrink`,`animated`,`standard`,`filled`,`outlined`]),rb=e=>{let{classes:t,disableUnderline:n}=e,r=G({root:[`root`,!n&&`underline`],input:[`input`]},Wu,t);return{...t,...r}},ib=q(Mu,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiInput`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[...ku(e,t),!n.disableUnderline&&t.underline]}})(J(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.42)`:`rgba(255, 255, 255, 0.7)`;return e.vars&&(t=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:`relative`,variants:[{props:({ownerState:e})=>e.formControl,style:{[`label + &, .${nb.root} + &`]:{marginTop:16}}},{props:({ownerState:e})=>!e.disableUnderline,style:{"&::after":{left:0,bottom:0,content:`""`,position:`absolute`,right:0,transform:`scaleX(0)`,...Tu(e,`transform`,{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:`none`},[`&.${Gu.focused}:after`]:{transform:`scaleX(1) translateX(0)`},[`&.${Gu.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${t}`,left:0,bottom:0,content:`""`,position:`absolute`,right:0,...Tu(e,`border-bottom-color`,{duration:e.transitions.duration.shorter}),pointerEvents:`none`},[`&:hover:not(.${Gu.disabled}, .${Gu.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${t}`}},[`&.${Gu.disabled}:before`]:{borderBottomStyle:`dotted`}}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t].main}`}}}))]}})),ab=q(Nu,{name:`MuiInput`,slot:`Input`,overridesResolver:Au})({}),ob=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiInput`}),{disableUnderline:r=!1,fullWidth:i=!1,inputComponent:a=`input`,multiline:o=!1,notched:s,slotProps:c,slots:l={},type:u=`text`,...d}=n,f=rb(n),p={root:{ownerState:{disableUnderline:r}}},m=c?mi(c,p):p,h=l.root??ib,g=l.input??ab;return(0,H.jsx)(Fu,{slots:{root:h,input:g},slotProps:m,fullWidth:i,inputComponent:a,multiline:o,ref:t,type:u,...d,classes:f})});ob.muiName=`Input`;function sb(e){return W(`MuiInputAdornment`,e)}var cb=co(`MuiInputAdornment`,[`root`,`filled`,`standard`,`outlined`,`positionStart`,`positionEnd`,`disablePointerEvents`,`hiddenLabel`,`sizeSmall`]),lb,ub=(e,t)=>{let{ownerState:n}=e;return[t.root,t[`position${X(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},db=e=>{let{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:o}=e;return G({root:[`root`,n&&`disablePointerEvents`,i&&`position${X(i)}`,o,r&&`hiddenLabel`,a&&`size${X(a)}`]},sb,t)},fb=q(`div`,{name:`MuiInputAdornment`,slot:`Root`,overridesResolver:ub})(J(({theme:e})=>({display:`flex`,maxHeight:`2em`,alignItems:`center`,whiteSpace:`nowrap`,color:(e.vars||e).palette.action.active,variants:[{props:{variant:`filled`},style:{[`&.${cb.positionStart}&:not(.${cb.hiddenLabel})`]:{marginTop:16}}},{props:{position:`start`},style:{marginRight:8}},{props:{position:`end`},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:`none`}}]}))),pb=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiInputAdornment`}),{children:r,className:i,component:a=`div`,disablePointerEvents:o=!1,disableTypography:s=!1,position:c,variant:l,...u}=n,d=Zl()||{},f=l;l&&d.variant,d&&!f&&(f=d.variant);let p={...n,hiddenLabel:d.hiddenLabel,size:d.size,disablePointerEvents:o,position:c,variant:f},m=db(p);return(0,H.jsx)(Xl.Provider,{value:null,children:(0,H.jsx)(fb,{as:a,ownerState:p,className:U(m.root,i),ref:t,...u,children:typeof r==`string`&&!s?(0,H.jsx)(qp,{color:`textSecondary`,children:r}):(0,H.jsxs)(z.Fragment,{children:[c===`start`?lb||=(0,H.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):null,r]})})})}),mb=e=>{let{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:o,required:s}=e,c=G({root:[`root`,n&&`formControl`,!a&&`animated`,i&&`shrink`,r&&r!==`medium`&&`size${X(r)}`,o],asterisk:[s&&`asterisk`]},tb,t);return{...t,...c}},hb=q(Yy,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiInputLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Uu.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size===`small`&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(J(({theme:e})=>({display:`block`,transformOrigin:`top left`,whiteSpace:`nowrap`,overflow:`hidden`,textOverflow:`ellipsis`,maxWidth:`100%`,variants:[{props:({ownerState:e})=>e.formControl,style:{position:`absolute`,left:0,top:0,transform:`translate(0, 20px) scale(1)`}},{props:{size:`small`},style:{transform:`translate(0, 17px) scale(1)`}},{props:({ownerState:e})=>e.shrink,style:{transform:`translate(0, -1.5px) scale(0.75)`,transformOrigin:`top left`,maxWidth:`133%`}},{props:({ownerState:e})=>!e.disableAnimation,style:{...Tu(e,[`color`,`transform`,`max-width`],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:`filled`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(12px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`filled`,size:`small`},style:{transform:`translate(12px, 13px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`filled`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,transform:`translate(12px, 7px) scale(0.75)`,maxWidth:`calc(133% - 24px)`}},{props:({variant:e,ownerState:t,size:n})=>e===`filled`&&t.shrink&&n===`small`,style:{transform:`translate(12px, 4px) scale(0.75)`}},{props:{variant:`outlined`},style:{zIndex:1,pointerEvents:`none`,transform:`translate(14px, 16px) scale(1)`,maxWidth:`calc(100% - 24px)`}},{props:{variant:`outlined`,size:`small`},style:{transform:`translate(14px, 9px) scale(1)`}},{props:({variant:e,ownerState:t})=>e===`outlined`&&t.shrink,style:{userSelect:`none`,pointerEvents:`auto`,maxWidth:`calc(133% - 32px)`,transform:`translate(14px, -9px) scale(0.75)`}}]}))),gb=z.forwardRef(function(e,t){let n=Y({name:`MuiInputLabel`,props:e}),{disableAnimation:r=!1,margin:i,shrink:a,variant:o,className:s,...c}=n,[l,u]=Ql({props:n,states:[`size`,`variant`,`required`,`focused`]}),d=a;d===void 0&&u&&(d=u.filled||u.focused||u.adornedStart);let f={...n,disableAnimation:r,formControl:u,shrink:d,size:l.size,variant:l.variant,required:l.required,focused:l.focused},p=mb(f);return(0,H.jsx)(hb,{"data-shrink":d,ref:t,className:U(p.root,s),...c,ownerState:f,classes:p})});function _b(e){return W(`MuiLinearProgress`,e)}co(`MuiLinearProgress`,[`root`,`colorPrimary`,`colorSecondary`,`determinate`,`indeterminate`,`buffer`,`query`,`dashed`,`bar`,`bar1`,`bar2`]);var vb=4,yb={},bb=Kr`
|
|
171
|
+
0% {
|
|
172
|
+
left: -35%;
|
|
173
|
+
right: 100%;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
60% {
|
|
177
|
+
left: 100%;
|
|
178
|
+
right: -90%;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
100% {
|
|
182
|
+
left: 100%;
|
|
183
|
+
right: -90%;
|
|
184
|
+
}
|
|
185
|
+
`,xb=typeof bb==`string`?null:Gr`
|
|
186
|
+
animation: ${bb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite;
|
|
187
|
+
`,Sb=Kr`
|
|
188
|
+
0% {
|
|
189
|
+
left: -200%;
|
|
190
|
+
right: 100%;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
60% {
|
|
194
|
+
left: 107%;
|
|
195
|
+
right: -8%;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
100% {
|
|
199
|
+
left: 107%;
|
|
200
|
+
right: -8%;
|
|
201
|
+
}
|
|
202
|
+
`,Cb=typeof Sb==`string`?null:Gr`
|
|
203
|
+
animation: ${Sb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite;
|
|
204
|
+
`,wb=Kr`
|
|
205
|
+
0% {
|
|
206
|
+
opacity: 1;
|
|
207
|
+
background-position: 0 -23px;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
60% {
|
|
211
|
+
opacity: 0;
|
|
212
|
+
background-position: 0 -23px;
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
100% {
|
|
216
|
+
opacity: 1;
|
|
217
|
+
background-position: -200px -23px;
|
|
218
|
+
}
|
|
219
|
+
`,Tb=typeof wb==`string`?null:Gr`
|
|
220
|
+
animation: ${wb} 3s infinite linear;
|
|
221
|
+
`,Eb=e=>{let{classes:t,variant:n,color:r}=e;return G({root:[`root`,`color${X(r)}`,n],dashed:[`dashed`],bar1:[`bar`,`bar1`],bar2:[`bar`,`bar2`,n===`buffer`&&`color${X(r)}`]},_b,t)},Db=(e,t)=>e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode===`light`?e.lighten(e.palette[t].main,.62):e.darken(e.palette[t].main,.5),Ob=q(`span`,{name:`MuiLinearProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${X(n.color)}`],t[n.variant]]}})(J(({theme:e})=>({position:`relative`,overflow:`hidden`,display:`block`,height:4,zIndex:0,"@media print":{colorAdjust:`exact`},variants:[...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{backgroundColor:Db(e,t)}})),{props:({ownerState:e})=>e.color===`inherit`&&e.variant!==`buffer`,style:{"&::before":{content:`""`,position:`absolute`,left:0,top:0,right:0,bottom:0,backgroundColor:`currentColor`,opacity:.3}}},{props:{variant:`buffer`},style:{backgroundColor:`transparent`}},{props:{variant:`query`},style:{transform:`rotate(180deg)`}}]}))),kb=q(`span`,{name:`MuiLinearProgress`,slot:`Dashed`})(J(({theme:e})=>({position:`absolute`,marginTop:0,height:`100%`,width:`100%`,backgroundSize:`10px 10px`,backgroundPosition:`0 -23px`,variants:[{props:{color:`inherit`},style:{opacity:.3,backgroundImage:`radial-gradient(currentColor 0%, currentColor 16%, transparent 42%)`}},...Object.entries(e.palette).filter(lp()).map(([t])=>{let n=Db(e,t);return{props:{color:t},style:{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`}}})]})),Tb||{animation:`${wb} 3s infinite linear`},J(({theme:e})=>wu(e,{animation:`none`})||yb)),Ab=q(`span`,{name:`MuiLinearProgress`,slot:`Bar1`,overridesResolver:(e,t)=>[t.bar,t.bar1]})(J(({theme:e})=>{let t=wu(e,{animation:`none`,left:`30%`,right:`auto`,width:`40%`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,...Tu(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[{props:{color:`inherit`},style:{backgroundColor:`currentColor`}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{backgroundColor:(e.vars||e).palette[t].main}})),{props:{variant:`determinate`},style:{...Tu(e,`transform`,{duration:`.${vb}s`,easing:`linear`})}},{props:{variant:`buffer`},style:{zIndex:1,...Tu(e,`transform`,{duration:`.${vb}s`,easing:`linear`})}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:xb||{animation:`${bb} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),jb=q(`span`,{name:`MuiLinearProgress`,slot:`Bar2`,overridesResolver:(e,t)=>[t.bar,t.bar2]})(J(({theme:e})=>{let t=wu(e,{animation:`none`,display:`none`});return{width:`100%`,position:`absolute`,left:0,bottom:0,top:0,...Tu(e,`transform`,{duration:`0.2s`,easing:`linear`}),transformOrigin:`left`,variants:[...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{"--LinearProgressBar2-barColor":(e.vars||e).palette[t].main}})),{props:({ownerState:e})=>e.variant!==`buffer`&&e.color!==`inherit`,style:{backgroundColor:`var(--LinearProgressBar2-barColor, currentColor)`}},{props:({ownerState:e})=>e.variant!==`buffer`&&e.color===`inherit`,style:{backgroundColor:`currentColor`}},{props:{color:`inherit`},style:{opacity:.3}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t,variant:`buffer`},style:{backgroundColor:Db(e,t),...Tu(e,`transform`,{duration:`.${vb}s`,easing:`linear`})}})),{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:{width:`auto`}},{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:Cb||{animation:`${Sb} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite`}},...t?[{props:({ownerState:e})=>e.variant===`indeterminate`||e.variant===`query`,style:t}]:[]]}})),Mb=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiLinearProgress`}),{className:r,color:i=`primary`,max:a,min:o,value:s,valueBuffer:c,variant:l=`indeterminate`,...u}=n,d={...n,color:i,variant:l},f=o??0,p=a??100,m=Eb(d),h=ts(),g={},_={bar1:{},bar2:{}};if((l===`determinate`||l===`buffer`)&&s!==void 0){let e=p-f,t=(s-f)/e*100-100;h&&(t=-t),_.bar1.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`,g[`aria-valuenow`]=s,g[`aria-valuemin`]=f,g[`aria-valuemax`]=p}if(l===`buffer`&&c!==void 0){let e=p-f,t=(c-f)/e*100-100;h&&(t=-t),_.bar2.transform=e>0?`translateX(${t}%)`:`translateX(-100%)`}return(0,H.jsxs)(Ob,{className:U(m.root,r),ownerState:d,role:`progressbar`,...g,ref:t,...u,children:[l===`buffer`?(0,H.jsx)(kb,{className:m.dashed,ownerState:d}):null,(0,H.jsx)(Ab,{className:m.bar1,ownerState:d,style:_.bar1}),l===`determinate`?null:(0,H.jsx)(jb,{className:m.bar2,ownerState:d,style:_.bar2})]})});function Nb(e){return W(`MuiLink`,e)}var Pb=co(`MuiLink`,[`root`,`underlineNone`,`underlineHover`,`underlineAlways`,`button`,`focusVisible`]),Fb=({theme:e,ownerState:t})=>{let n=t.color;if(`colorSpace`in e&&e.colorSpace){let r=Yi(e,`palette.${n}.main`)||Yi(e,`palette.${n}`)||t.color;return e.alpha(r,.4)}let r=Yi(e,`palette.${n}.main`,!1)||Yi(e,`palette.${n}`,!1)||t.color,i=Yi(e,`palette.${n}.mainChannel`)||Yi(e,`palette.${n}Channel`);if(`vars`in e&&i)return`rgba(${i} / 0.4)`;try{return Bo(r,.4)}catch{return`color-mix(in srgb, ${r} 40%, transparent)`}},Ib={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},Lb=e=>{let{classes:t,component:n,focusVisible:r,underline:i}=e;return G({root:[`root`,`underline${X(i)}`,n===`button`&&`button`,r&&`focusVisible`]},Nb,t)},Rb=q(qp,{name:`MuiLink`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`underline${X(n.underline)}`],n.component===`button`&&t.button]}})(J(({theme:e})=>({...e.focusVisible&&{[`&.${Pb.focusVisible}`]:{...Mc,...e.focusVisible}},variants:[{props:{underline:`none`},style:{textDecoration:`none`}},{props:{underline:`hover`},style:{textDecoration:`none`,"&:hover":{textDecoration:`underline`}}},{props:{underline:`always`},style:{textDecoration:`underline`,"&:hover":{textDecorationColor:`inherit`}}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color!==`inherit`,style:{textDecorationColor:`var(--Link-underlineColor)`}},{props:({underline:e,ownerState:t})=>e===`always`&&t.color===`inherit`,style:e.colorSpace?{textDecorationColor:e.alpha(`currentColor`,.4)}:null},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{underline:`always`,color:t},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette[t].main,.4)}})),{props:{underline:`always`,color:`textPrimary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.primary,.4)}},{props:{underline:`always`,color:`textSecondary`},style:{"--Link-underlineColor":e.alpha((e.vars||e).palette.text.secondary,.4)}},{props:{underline:`always`,color:`textDisabled`},style:{"--Link-underlineColor":(e.vars||e).palette.text.disabled}},{props:{component:`button`},style:{position:`relative`,WebkitTapHighlightColor:`transparent`,backgroundColor:`transparent`,outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:`pointer`,userSelect:`none`,verticalAlign:`middle`,MozAppearance:`none`,WebkitAppearance:`none`,"&::-moz-focus-inner":{borderStyle:`none`},...!e.focusVisible&&{[`&.${Pb.focusVisible}`]:{outline:`auto`}}}}]}))),zb=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiLink`}),r=eu(),{className:i,color:a=`primary`,component:o=`a`,onBlur:s,onFocus:c,TypographyClasses:l,underline:u=`always`,variant:d=`inherit`,sx:f,...p}=n,[m,h]=z.useState(!1),g=e=>{wf(e.target)||h(!1),s&&s(e)},_=e=>{wf(e.target)&&h(!0),c&&c(e)},v={...n,color:a,component:o,focusVisible:m,underline:u,variant:d},y=Lb(v);return(0,H.jsx)(Rb,{color:a,className:U(y.root,i),classes:l,component:o,onBlur:g,onFocus:_,ref:t,ownerState:v,variant:d,...p,sx:[...Ib[a]===void 0?[{color:a}]:[],...Array.isArray(f)?f:[f]],style:{...p.style,...u===`always`&&a!==`inherit`&&!Ib[a]&&{"--Link-underlineColor":Fb({theme:r,ownerState:v})}}})}),Bb=z.createContext({});function Vb(e){return W(`MuiList`,e)}co(`MuiList`,[`root`,`padding`,`dense`,`subheader`]);var Hb=e=>{let{classes:t,disablePadding:n,dense:r,subheader:i}=e;return G({root:[`root`,!n&&`padding`,r&&`dense`,i&&`subheader`]},Vb,t)},Ub=q(`ul`,{name:`MuiList`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:`none`,margin:0,padding:0,position:`relative`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0,isolation:`isolate`}}]}),Wb=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiList`}),{children:r,className:i,component:a=`ul`,dense:o=!1,disablePadding:s=!1,subheader:c,...l}=n,u=z.useMemo(()=>({dense:o}),[o]),d={...n,component:a,dense:o,disablePadding:s},f=Hb(d);return(0,H.jsx)(Bb.Provider,{value:u,children:(0,H.jsxs)(Ub,{as:a,className:U(f.root,i),ref:t,ownerState:d,...l,children:[c,r]})})});function Gb(e){return W(`MuiListItem`,e)}co(`MuiListItem`,[`root`,`dense`,`alignItemsFlexStart`,`divider`,`gutters`,`padding`,`secondaryAction`]);var Kb=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},qb=e=>{let{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:o,selected:s}=e,c=G({root:[`root`,r&&`dense`,!a&&`gutters`,o&&`divider`,i&&`disabled`,t===`flex-start`&&`alignItemsFlexStart`,s&&`selected`]},Ku,n);return{...n,...c}},Jb=q(ep,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiListItemButton`,slot:`Root`,overridesResolver:Kb})(J(({theme:e})=>({display:`flex`,flexGrow:1,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minWidth:0,boxSizing:`border-box`,textAlign:`left`,paddingTop:8,paddingBottom:8,...Tu(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${qu.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${qu.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${qu.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Pc(1):{[`&.${qu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${qu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Yb=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiListItemButton`}),{alignItems:r=`center`,autoFocus:i=!1,component:a=`div`,children:o,dense:s=!1,disableGutters:c=!1,divider:l=!1,focusVisibleClassName:u,selected:d=!1,className:f,...p}=n,m=z.useContext(Bb),h=z.useMemo(()=>({dense:s||m.dense||!1,alignItems:r,disableGutters:c}),[r,m.dense,s,c]),g=z.useRef(null);ou(()=>{i&&g.current&&g.current.focus()},[i]);let _={...n,alignItems:r,dense:h.dense,disableGutters:c,divider:l,selected:d},v=qb(_),{root:y,...b}=v,x=au(g,t);return(0,H.jsx)(Bb.Provider,{value:h,children:(0,H.jsx)(Jb,{ref:x,href:p.href||p.to,component:(p.href||p.to)&&a===`div`?`button`:a,internalNativeButton:!1,focusVisibleClassName:U(v.focusVisible,u),ownerState:_,className:U(v.root,f),...p,classes:b,children:o})})});function Xb(e){return W(`MuiListItemSecondaryAction`,e)}co(`MuiListItemSecondaryAction`,[`root`,`disableGutters`]);var Zb=e=>{let{disableGutters:t,classes:n}=e;return G({root:[`root`,t&&`disableGutters`]},Xb,n)},Qb=q(`div`,{name:`MuiListItemSecondaryAction`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:`absolute`,right:16,top:`50%`,transform:`translateY(-50%)`,variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),$b=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiListItemSecondaryAction`}),{className:r,component:i,...a}=n,o=z.useContext(Bb),s={...n,disableGutters:o.disableGutters},c=Zb(s);return(0,H.jsx)(Qb,{as:i,className:U(c.root,r),ownerState:s,ref:t,...a})});$b.muiName=`ListItemSecondaryAction`;var ex=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems===`flex-start`&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters,!n.disablePadding&&t.padding]},tx=e=>{let{alignItems:t,classes:n,dense:r,disableGutters:i,disablePadding:a,divider:o}=e;return G({root:[`root`,r&&`dense`,!i&&`gutters`,!a&&`padding`,o&&`divider`,t===`flex-start`&&`alignItemsFlexStart`],secondaryAction:[`secondaryAction`]},Gb,n)},nx=q(`div`,{name:`MuiListItem`,slot:`Root`,overridesResolver:ex})(J(({theme:e})=>({display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,width:`100%`,boxSizing:`border-box`,textAlign:`left`,variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>!e.disablePadding&&e.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:e})=>!e.disablePadding&&!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>!e.disablePadding&&!!e.secondaryAction,style:{paddingRight:48}},{props:({ownerState:e})=>!!e.secondaryAction,style:{[`& > .${qu.root}`]:{paddingRight:48}}},{props:{alignItems:`flex-start`},style:{alignItems:`flex-start`}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>e.button,style:{...Tu(e,`background-color`,{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}}}}]}))),rx=q($b,{name:`MuiListItem`,slot:`secondaryAction`})({}),ix=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiListItem`}),{alignItems:r=`center`,children:i,className:a,component:o=`li`,dense:s=!1,disableGutters:c=!1,disablePadding:l=!1,divider:u=!1,secondaryAction:d,slotProps:f={},slots:p={},...m}=n,h=z.useContext(Bb),g=z.useMemo(()=>({dense:s||h.dense||!1,alignItems:r,disableGutters:c}),[r,h.dense,s,c]),_={...n,alignItems:r,dense:g.dense,disableGutters:c,disablePadding:l,divider:u,secondaryAction:d},v=tx(_),y={slots:p,slotProps:f},[b,x]=Q(`root`,{ref:t,elementType:nx,externalForwardedProps:{component:o,...y,...m},ownerState:_,className:U(v.root,a)}),[S,C]=Q(`secondaryAction`,{elementType:rx,shouldForwardComponentProp:!0,externalForwardedProps:y,ownerState:_,className:v.secondaryAction});return(0,H.jsx)(Bb.Provider,{value:g,children:(0,H.jsxs)(b,{...x,children:[i,d&&(0,H.jsx)(S,{...C,children:d})]})})});function ax(e){return W(`MuiListItemIcon`,e)}var ox=co(`MuiListItemIcon`,[`root`,`alignItemsFlexStart`]),sx=e=>{let{alignItems:t,classes:n}=e;return G({root:[`root`,t===`flex-start`&&`alignItemsFlexStart`]},ax,n)},cx=q(`div`,{name:`MuiListItemIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.alignItems===`flex-start`&&t.alignItemsFlexStart]}})(J(({theme:e})=>({minWidth:e.spacing(4.5),color:(e.vars||e).palette.action.active,flexShrink:0,display:`inline-flex`,variants:[{props:{alignItems:`flex-start`},style:{marginTop:8}}]}))),lx=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiListItemIcon`}),{className:r,...i}=n,a=z.useContext(Bb),o={...n,alignItems:a.alignItems},s=sx(o);return(0,H.jsx)(cx,{className:U(s.root,r),ownerState:o,ref:t,...i})});function ux(e){return W(`MuiListItemText`,e)}var dx=co(`MuiListItemText`,[`root`,`multiline`,`dense`,`inset`,`primary`,`secondary`]),fx=e=>{let{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return G({root:[`root`,n&&`inset`,a&&`dense`,r&&i&&`multiline`],primary:[`primary`],secondary:[`secondary`]},ux,t)},px=q(`div`,{name:`MuiListItemText`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${dx.primary}`]:t.primary},{[`& .${dx.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:`1 1 auto`,minWidth:0,marginTop:4,marginBottom:4,[`.${Up.root}:where(& .${dx.primary})`]:{display:`block`},[`.${Up.root}:where(& .${dx.secondary})`]:{display:`block`},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),mx=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiListItemText`}),{children:r,className:i,disableTypography:a=!1,inset:o=!1,primary:s,secondary:c,slots:l={},slotProps:u={},...d}=n,{dense:f}=z.useContext(Bb),p=s??r,m=c,h={...n,disableTypography:a,inset:o,primary:!!p,secondary:!!m,dense:f},g=fx(h),_={slots:l,slotProps:u},[v,y]=Q(`root`,{className:U(g.root,i),elementType:px,externalForwardedProps:{..._,...d},ownerState:h,ref:t}),[b,x]=Q(`primary`,{className:g.primary,elementType:qp,externalForwardedProps:_,ownerState:h}),[S,C]=Q(`secondary`,{className:g.secondary,elementType:qp,externalForwardedProps:_,ownerState:h});return p!=null&&p.type!==qp&&!a&&(p=(0,H.jsx)(b,{variant:f?`body2`:`body1`,component:x?.variant?void 0:`span`,...x,children:p})),m!=null&&m.type!==qp&&!a&&(m=(0,H.jsx)(S,{variant:`body2`,color:`textSecondary`,...C,children:m})),(0,H.jsxs)(v,{...y,children:[p,m]})}),hx=z.createContext(void 0);function gx(){let e=z.useContext(hx);if(e===void 0)throw Error(`MUI: RovingTabIndexContext is missing. Roving tab index items must be placed within a roving tab index provider.`);return e}var _x=Object.is;function vx(e,t){if(e===t)return!0;if(!(e instanceof Object)||!(t instanceof Object))return!1;let n=0,r=0;for(let r in e)if(n+=1,!_x(e[r],t[r])||!(r in t))return!1;for(let e in t)r+=1;return n===r}var yx=[`ArrowRight`,`ArrowLeft`,`ArrowUp`,`ArrowDown`,`Home`,`End`];function bx(e){let{activeItemId:t,getDefaultActiveItemId:n,orientation:r,isRtl:i=!1,isItemFocusable:a=Px,wrap:o=!0}=e,[s,c]=z.useState(t),[l,u]=z.useState(t),d=s;t!==l&&(u(t),t!==void 0&&t!==s&&(d=t,c(t)));let f=z.useRef(null),p=z.useRef(new Map),[m,h]=z.useState(0),g=z.useMemo(()=>jx(p.current),[m]),_=Sx(d,g,a,n),v=z.useRef(_);v.current=_;let y=z.useCallback(()=>{let e=jx(p.current);return Ox(e,Sx(v.current,e,a,n))},[n,a]),b=z.useCallback(()=>p.current,[]),x=Hl(e=>{vx(p.current.get(e.id)??null,e)||(p.current.set(e.id,e),h(e=>e+1))}),S=Hl(e=>{p.current.delete(e)&&h(e=>e+1)}),C=Hl(e=>{c(e)}),w=z.useCallback(e=>v.current===e,[]),T=z.useCallback((e,t,n,r)=>{let i=Ex(Mx(p.current),e,t,n,r??a);return i?(i.element?.focus(),c(i.id),i):null},[a]),E=z.useCallback((e,t,n)=>({onFocus:e=>{t?.(e);let n=Mx(p.current),r=Ax(n,e.target);r!==-1&&c(n[r].id)},onKeyDown:e=>{if(n?.(e),e.defaultPrevented||e.altKey||e.shiftKey||e.ctrlKey||e.metaKey||!yx.includes(e.key))return;let t=r===`horizontal`?`ArrowLeft`:`ArrowUp`,a=r===`horizontal`?`ArrowRight`:`ArrowDown`;r===`horizontal`&&i&&(t=`ArrowRight`,a=`ArrowLeft`);let s=Mx(p.current),c=cu(Ul(f.current)),l=c===f.current,u=Tx(s,c,v.current),d=`next`;switch(e.key){case t:d=`previous`,e.preventDefault(),l&&(u=s.length);break;case a:e.preventDefault(),l&&(u=-1);break;case`Home`:e.preventDefault(),u=-1;break;case`End`:e.preventDefault(),d=`previous`,u=s.length;break;default:return}T(u,d,o)},ref:Lx(e,e=>{f.current=e})}),[T,i,r,o]),D=z.useCallback(e=>{let t=Mx(p.current),n=cu(Ul(f.current)),r=n===f.current?-1:Tx(t,n,v.current);return T(r,`next`,!0,e)?.id??null},[T]);return z.useMemo(()=>({activeItemId:_,focusNext:D,getActiveItem:y,getContainerProps:E,getItemMap:b,isItemActive:w,registerItem:x,setActiveItemId:C,unregisterItem:S}),[_,D,y,E,b,w,x,C,S])}function xx(e){let{activeItemId:t,registerItem:n,unregisterItem:r}=gx(),i=z.useRef(null),a=z.useMemo(()=>({disabled:e.disabled??!1,element:null,focusableWhenDisabled:e.focusableWhenDisabled??!1,id:e.id,selected:e.selected??!1,textValue:e.textValue}),[e.disabled,e.focusableWhenDisabled,e.id,e.selected,e.textValue]),o=z.useRef(a);o.current=a;let s=z.useCallback(t=>{i.current=t,t==null?queueMicrotask(()=>{i.current??r(e.id)}):n({...o.current,element:t})},[e.id,n,r]),c=Vl(e.ref,s);return To(()=>{i.current&&n({...a,element:i.current})},[a,n]),To(()=>{let t=e.id;return()=>{r(t)}},[e.id,r]),{ref:c,tabIndex:t===e.id?0:-1}}function Sx(e,t,n,r){return e==null?wx(t,n,r):Cx(e,t,n)}function Cx(e,t,n){let r=kx(t,e);return r===-1?Dx(t,n):n(t[r])?t[r].id:Ex(t,r,`next`,!1,n)?.id??null}function wx(e,t,n){let r=n?.(e);if(r!=null){let n=Ox(e,r);if(n&&t(n))return n.id}return Dx(e,t)}function Tx(e,t,n){if(t){let n=Ax(e,t);if(n!==-1)return n}return kx(e,n)}function Ex(e,t,n,r,i){let a=e.length-1;if(a===-1)return null;let o=!1,s=Nx(t,a,n,r),c=s;for(;s!==-1;){if(s===c){if(o)return null;o=!0}let t=e[s];if(!t||!i(t))s=Nx(s,a,n,r);else return t}return null}function Dx(e,t){return e.find(e=>t(e))?.id??null}function Ox(e,t){return t==null?null:e.find(e=>e.id===t)??null}function kx(e,t){return t==null?-1:e.findIndex(e=>e.id===t)}function Ax(e,t){return t?e.findIndex(e=>e.element===t||e.element?.contains(t)):-1}function jx(e){let t=Array.from(e.values());if(t.every(e=>e.element==null))return t;let n=t.filter(Fx).sort((e,t)=>Ix(e.element,t.element)),r=t.filter(e=>!Fx(e));return[...n,...r]}function Mx(e){return jx(e).filter(Fx)}function Nx(e,t,n,r=!0){return n===`next`?e===t?r?0:-1:e+1:e===0?r?t:-1:e-1}function Px(e){return e.element?e.focusableWhenDisabled?!0:!e.disabled&&!e.element.hasAttribute(`disabled`)&&e.element.getAttribute(`aria-disabled`)!==`true`&&e.element.hasAttribute(`tabindex`):!1}function Fx(e){return e.element!=null&&e.element.isConnected}function Ix(e,t){if(e===t)return 0;let n=e.compareDocumentPosition(t);return n&Node.DOCUMENT_POSITION_FOLLOWING||n&Node.DOCUMENT_POSITION_CONTAINED_BY?-1:n&Node.DOCUMENT_POSITION_PRECEDING||n&Node.DOCUMENT_POSITION_CONTAINS?1:0}function Lx(...e){return t=>{e.forEach(e=>{Sd(e??null,t)})}}var Rx=gv;function zx(e,t){if(t==null)e.focus();else try{e.focus({focusVisible:t===`keyboard`})}catch{e.focus()}}function Bx(e){return e?e.type===`mousedown`||e.type===`pointerdown`||e.type===`touchstart`?`pointer`:e.type===`keydown`||e.type===`click`&&e.detail===0?`keyboard`:null:null}function Vx(e){return e==null||typeof e==`string`&&!e.trim()}function Hx(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var Ux=z.createContext(null);function Wx(){return z.useContext(Ux)}var Gx=Ux.Provider,Kx=z.createContext(void 0);function qx(){let e=z.useContext(Kx);if(e===void 0)throw Error(`MUI: MenuListContext is missing. MenuItems must be placed within Menu or MenuList.`);return e}function Jx(e){let t=e?.element??e;if(!t)return``;if(e?.textValue!==void 0)return e.textValue;let n=t.innerText;return n===void 0&&(n=t.textContent),n??``}function Yx(e,t){if(t===void 0)return!0;let n=Jx(e);return n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(``))}function Xx(e,t){return Yx(e,t)?Px(e):!1}function Zx(e,t){zx(e,t)}var Qx=z.forwardRef(function(e,t){let{actions:n,autoFocus:r=!1,autoFocusItem:i=!1,children:a,className:o,disabledItemsFocusable:s=!1,disableListWrap:c=!1,onKeyDown:l,variant:u=`selectedMenu`,...d}=Y({props:e,name:`MuiMenuList`}),f=z.useRef(null),p=z.useRef(!1),[m,h]=z.useState(!1),g=Wx(),_=z.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null}),v=bx({activeItemId:void 0,getDefaultActiveItemId:z.useCallback(e=>u===`selectedMenu`?e.find(e=>e.selected&&Px(e))?.id??e.find(e=>Px(e))?.id??null:e.find(e=>Px(e))?.id??null,[u]),orientation:`vertical`,wrap:!c}),{activeItemId:y,focusNext:b,getActiveItem:x,getContainerProps:S,getItemMap:C}=v,w=Ed((e=!1)=>{if(!f.current||!e&&p.current)return null;if(i){let e=x();if(e?.element){let t=Array.from(C().values()).some(e=>e.selected),n=u===`menu`&&t&&!e.selected&&g==null;return h(n),Zx(e.element,g),p.current=!0,e.element}return r?(h(!1),f.current.focus(),f.current):null}return r?(h(!1),f.current.focus(),p.current=!0,f.current):(h(!1),null)});ou(()=>{!r&&!i?(p.current=!1,h(!1)):w()},[y,i,r,w]),z.useImperativeHandle(n,()=>({adjustStyleForScrollbar:(e,{direction:t})=>{let n=!f.current.style.width;if(e.clientHeight<f.current.clientHeight&&n){let n=xd(e),r=Rx(n);if(r>0){let e=`${r}px`,i=t===`rtl`?`paddingLeft`:`paddingRight`,a=parseFloat(n.getComputedStyle(f.current)[i])||0;f.current.style[i]=`${a+r}px`,f.current.style.width=`calc(100% + ${e})`}}return f.current},focusInitialTarget:()=>{if(!f.current)return null;let e=lu(su(f.current));return e&&Ev(f.current,e)?e:w(!0)}}),[w]);let T=S(void 0,d.onFocus),E=au(f,T.ref,t),D=z.useMemo(()=>({itemsFocusableWhenDisabled:s,suppressInitialFocusVisible:m,variant:u}),[s,m,u]),O=Ed(e=>{if(m&&h(!1),(e.ctrlKey||e.metaKey||e.altKey)&&l)l(e);else{if(T.onKeyDown(e),e.key.length===1){let t=_.current,n=e.key.toLowerCase(),r=performance.now();t.keys.length>0&&(r-t.lastTime>500?(t.keys=[],t.repeating=!0,t.previousKeyMatched=!0):t.repeating&&n!==t.keys[0]&&(t.repeating=!1)),t.lastTime=r,t.keys.push(n);let i=lu(su(f.current)),a=i&&!t.repeating&&Yx(i,t);t.previousKeyMatched&&(a||b(e=>Xx(e,t))!=null)?e.preventDefault():t.previousKeyMatched=!1}l&&l(e)}});return(0,H.jsx)(Wb,{role:`menu`,ref:E,className:o,onKeyDown:O,tabIndex:-1,...d,onFocus:T.onFocus,children:(0,H.jsx)(Kx.Provider,{value:D,children:(0,H.jsx)(hx.Provider,{value:v,children:a})})})});function $x(e){return W(`MuiPopover`,e)}co(`MuiPopover`,[`root`,`paper`]);function eS(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.height/2:t===`bottom`&&(n=e.height),n}function tS(e,t){let n=0;return typeof t==`number`?n=t:t===`center`?n=e.width/2:t===`right`&&(n=e.width),n}function nS(e){return[e.horizontal,e.vertical].map(e=>typeof e==`number`?`${e}px`:e).join(` `)}function rS(e){return typeof e==`function`?e():e}var iS=e=>{let{classes:t}=e;return G({root:[`root`],paper:[`paper`]},$x,t)},aS=q(Gv,{name:`MuiPopover`,slot:`Root`})({}),oS=q(df,{name:`MuiPopover`,slot:`Paper`})({position:`absolute`,overflowY:`auto`,overflowX:`hidden`,minWidth:16,minHeight:16,maxWidth:`calc(100% - 32px)`,maxHeight:`calc(100% - 32px)`,outline:0}),sS=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiPopover`}),{action:r,anchorEl:i,anchorOrigin:a={vertical:`top`,horizontal:`left`},anchorPosition:o,anchorReference:s=`anchorEl`,children:c,className:l,container:u,disableAutoFocus:d=!1,elevation:f=8,marginThreshold:p=16,open:m,slots:h={},slotProps:g={},transformOrigin:_={vertical:`top`,horizontal:`left`},transitionDuration:v=`auto`,disableScrollLock:y=!1,...b}=n,x=z.useRef(),S={...n,anchorOrigin:a,anchorReference:s,elevation:f,marginThreshold:p,transformOrigin:_,transitionDuration:v},C=iS(S),w=z.useCallback(()=>{if(s===`anchorPosition`)return o;let e=rS(i),t=(e&&e.nodeType===1?e:su(x.current).body).getBoundingClientRect();return{top:t.top+eS(t,a.vertical),left:t.left+tS(t,a.horizontal)}},[i,a.horizontal,a.vertical,o,s]),T=z.useCallback(e=>({vertical:eS(e,_.vertical),horizontal:tS(e,_.horizontal)}),[_.horizontal,_.vertical]),E=z.useCallback(e=>{let t={width:e.offsetWidth,height:e.offsetHeight},n=T(t);if(s===`none`)return{top:null,left:null,transformOrigin:nS(n)};let r=w(),a=r.top-n.vertical,o=r.left-n.horizontal,c=a+t.height,l=o+t.width,u=xd(rS(i)),d=u.innerHeight-p,f=u.innerWidth-p;if(p!=null&&a<p){let e=a-p;a-=e,n.vertical+=e}else if(p!=null&&c>d){let e=c-d;a-=e,n.vertical+=e}if(p!=null&&o<p){let e=o-p;o-=e,n.horizontal+=e}else if(l>f){let e=l-f;o-=e,n.horizontal+=e}return{top:`${Math.round(a)}px`,left:`${Math.round(o)}px`,transformOrigin:nS(n)}},[i,s,w,T,p]),[D,O]=z.useState(m),k=z.useCallback(()=>{let e=x.current;if(!e)return;let t=E(e);t.top!=null&&e.style.setProperty(`top`,t.top),t.left!=null&&(e.style.left=t.left),e.style.transformOrigin=t.transformOrigin,O(!0)},[E]);z.useEffect(()=>(y&&window.addEventListener(`scroll`,k),()=>window.removeEventListener(`scroll`,k)),[i,y,k]);let ee=()=>{k()},A=()=>{O(!1)};z.useEffect(()=>{m&&k()}),z.useImperativeHandle(r,()=>m?{updatePosition:()=>{k()}}:null,[m,k]),z.useEffect(()=>{if(!m)return;let e=yd(()=>{k()}),t=xd(rS(i));return t.addEventListener(`resize`,e),()=>{e.clear(),t.removeEventListener(`resize`,e)}},[i,m,k]);let j=v,M={slots:h,slotProps:g},[te,ne]=Q(`transition`,{elementType:eb,externalForwardedProps:M,ownerState:S,getSlotProps:e=>({...e,onEntering:(t,n)=>{e.onEntering?.(t,n),ee()},onExited:t=>{e.onExited?.(t),A()}}),additionalProps:{appear:!0,in:m}});v===`auto`&&!te.muiSupportAuto&&(j=void 0);let N=u||(i?su(rS(i)).body:void 0),[P,{slots:re,slotProps:F,...I}]=Q(`root`,{ref:t,elementType:aS,externalForwardedProps:{...M,...b},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:h.backdrop},slotProps:{backdrop:Od(typeof g.backdrop==`function`?g.backdrop(S):g.backdrop,{invisible:!0})},container:N,open:m},ownerState:S,className:U(C.root,l)}),[ie,L]=Q(`paper`,{ref:x,className:C.paper,elementType:oS,externalForwardedProps:M,shouldForwardComponentProp:!0,additionalProps:{elevation:f,style:D?void 0:{opacity:0}},ownerState:S});return(0,H.jsx)(P,{...I,...!zl(P)&&{slots:re,slotProps:F,disableAutoFocus:d,disableScrollLock:y},children:(0,H.jsx)(te,{...ne,timeout:j,children:(0,H.jsx)(ie,{...L,children:c})})})});function cS(e){return W(`MuiMenu`,e)}co(`MuiMenu`,[`root`,`paper`,`list`]);var lS={vertical:`top`,horizontal:`right`},uS={vertical:`top`,horizontal:`left`},dS=e=>{let{classes:t}=e;return G({root:[`root`],paper:[`paper`],list:[`list`]},cS,t)},fS=q(sS,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiMenu`,slot:`Root`})({}),pS=q(oS,{name:`MuiMenu`,slot:`Paper`})({maxHeight:`calc(100% - 96px)`,WebkitOverflowScrolling:`touch`}),mS=q(Qx,{name:`MuiMenu`,slot:`List`})({outline:0}),hS=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiMenu`}),{autoFocus:r=!0,children:i,className:a,disableAutoFocusItem:o=!1,onClose:s,open:c,PopoverClasses:l,transitionDuration:u=`auto`,variant:d=`selectedMenu`,slots:f={},slotProps:p={},...m}=n,h=ts(),g={...n,autoFocus:r,disableAutoFocusItem:o,transitionDuration:u,variant:d},_=dS(g),v=r&&c,y=v&&!o,b=z.useRef(null),x=(e,t)=>{b.current&&(b.current.adjustStyleForScrollbar(e,{direction:h?`rtl`:`ltr`}),v&&b.current.focusInitialTarget?.())},S=e=>{e.key===`Tab`&&(e.preventDefault(),s&&s(e,`tabKeyDown`))},C={slots:f,slotProps:p},w=pg({elementType:f.root,externalSlotProps:p.root,ownerState:g,className:[_.root,a]}),[T,E]=Q(`paper`,{className:_.paper,elementType:pS,externalForwardedProps:C,shouldForwardComponentProp:!0,ownerState:g}),[D,O]=Q(`list`,{className:_.list,elementType:mS,shouldForwardComponentProp:!0,externalForwardedProps:C,getSlotProps:e=>({...e,onKeyDown:t=>{S(t),e.onKeyDown?.(t)}}),ownerState:g}),k=typeof p.transition==`function`?p.transition(g):p.transition;return(0,H.jsx)(fS,{disableAutoFocus:r,onClose:s,anchorOrigin:{vertical:`bottom`,horizontal:h?`right`:`left`},transformOrigin:h?lS:uS,slots:{root:f.root,paper:T,backdrop:f.backdrop,transition:f.transition},slotProps:{root:w,paper:E,backdrop:typeof p.backdrop==`function`?p.backdrop(g):p.backdrop,transition:{...k,onEntering:(...e)=>{x(...e),k?.onEntering?.(...e)}}},open:c,ref:t,transitionDuration:u,ownerState:g,...m,classes:l,children:(0,H.jsx)(D,{actions:b,autoFocus:v,autoFocusItem:y,variant:d,...O,children:i})})}),gS=(e,t)=>{let{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},_S=e=>{let{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:o}=e,s=G({root:[`root`,n&&`dense`,t&&`disabled`,!i&&`gutters`,r&&`divider`,a&&`selected`]},Ju,o);return{...o,...s}},vS=q(ep,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiMenuItem`,slot:`Root`,overridesResolver:gS})(J(({theme:e})=>({...e.typography.body1,display:`flex`,justifyContent:`flex-start`,alignItems:`center`,position:`relative`,textDecoration:`none`,minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:`border-box`,whiteSpace:`nowrap`,"&:hover":{textDecoration:`none`,backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:`transparent`}},[`&.${Yu.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),...!e.focusVisible&&{[`&.${Yu.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},[`&.${Yu.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},...e.focusVisible?Pc(1):{[`&.${Yu.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus}},[`&.${Yu.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${my.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${my.inset}`]:{marginLeft:52},[`& .${dx.root}`]:{marginTop:0,marginBottom:0},[`& .${dx.inset}`]:{paddingLeft:36},[`& .${ox.root}`]:{minWidth:36},variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:e})=>e.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:`padding-box`}},{props:({ownerState:e})=>!e.dense,style:{[e.breakpoints.up(`sm`)]:{minHeight:`auto`}}},{props:({ownerState:e})=>e.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${ox.root} svg`]:{fontSize:`1.25rem`}}}]}))),yS=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiMenuItem`}),{autoFocus:r=!1,component:i=`li`,dense:a=!1,divider:o=!1,disableGutters:s=!1,focusVisibleClassName:c,role:l=`menuitem`,tabIndex:u,className:d,...f}=n,p=l===`menuitemcheckbox`||l===`menuitemradio`?!!n.selected:void 0,m=Wx(),h=z.useContext(Bb),g=z.useMemo(()=>({dense:a||h.dense||!1,disableGutters:s}),[h.dense,a,s]),_=qx(),v=Cd(),y=_.suppressInitialFocusVisible,b=_.itemsFocusableWhenDisabled,x=z.useRef(null);ou(()=>{r&&x.current&&zx(x.current,m)},[r]);let S={...n,dense:g.dense,divider:o,disableGutters:s},C=_S(n),{root:w,...T}=C,E=xx({id:v,ref:t,disabled:n.disabled,focusableWhenDisabled:b,selected:n.selected}),D=au(x,E.ref),O;return u===void 0?_.variant===`selectedMenu`?O=E.tabIndex:(!n.disabled||b)&&(O=-1):O=u,(0,H.jsx)(Bb.Provider,{value:g,children:(0,H.jsx)(vS,{ref:D,role:l,"aria-checked":p,tabIndex:O,component:i,internalNativeButton:!1,focusableWhenDisabled:b,suppressFocusVisible:y,focusVisibleClassName:U(C.focusVisible,c),className:U(C.root,d),...f,ownerState:S,classes:T})})}),bS=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return G({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,`icon${X(n)}`,a&&`iconOpen`,r&&`disabled`]},Xu,t)},xS=q(`select`,{name:`MuiNativeSelect`})(({theme:e})=>({MozAppearance:`none`,WebkitAppearance:`none`,userSelect:`none`,borderRadius:0,cursor:`pointer`,"&:focus":{borderRadius:0},[`&.${Zu.disabled}`]:{cursor:`default`},"&[multiple]":{height:`auto`},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},[`& ~ .${cb.root}`]:{position:`absolute`,top:`50%`,transform:`translateY(-50%)`,right:`calc(var(--_caret, 24px) + (var(--_endAdornment, 28px) - 1.5rem)/2)`},[`.${mu.root}:has(> &)`]:{"--_endAdornment":`0px`},variants:[{props:({ownerState:e})=>e.variant!==`filled`&&e.variant!==`outlined`,style:{[`.${mu.root}:has(> &)`]:{"--_caret":`24px`},[`.${mu.root}:has(> & ~ .${cb.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 24px) + var(--_endAdornment, 0px))`,minWidth:16}}},{props:{variant:`filled`},style:{[`.${mu.root}:has(> &)`]:{"--_caret":`32px`},[`.${mu.root}:has(> & ~ .${cb.root})`]:{"--_endAdornment":`28px`},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}},{props:{variant:`outlined`},style:{[`.${mu.root}:has(> &)`]:{"--_caret":`32px`},[`.${mu.root}:has(> & ~ .${cb.root})`]:{"--_endAdornment":`28px`},borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:`calc(var(--_caret, 32px) + var(--_endAdornment, 0px))`}}}]})),SS=q(xS,{name:`MuiNativeSelect`,slot:`Select`,shouldForwardProp:ru,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Zu.multiple}`]:t.multiple}]}})({}),CS=q(`svg`,{name:`MuiNativeSelect`})(({theme:e})=>({position:`absolute`,right:0,top:`calc(50% - .5em)`,pointerEvents:`none`,color:(e.vars||e).palette.action.active,[`&.${Zu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:e})=>e.open,style:{transform:`rotate(180deg)`}},{props:{variant:`filled`},style:{right:7}},{props:{variant:`outlined`},style:{right:7}}]})),wS=q(CS,{name:`MuiNativeSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${X(n.variant)}`],n.open&&t.iconOpen]}})({}),TS=z.forwardRef(function(e,t){let{className:n,disabled:r,error:i,IconComponent:a,inputRef:o,variant:s=`standard`,...c}=e,l={...e,disabled:r,variant:s,error:i},u=bS(l);return(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(SS,{ownerState:l,className:U(u.select,n),disabled:r,ref:o||t,...c}),e.multiple?null:(0,H.jsx)(wS,{as:a,ownerState:l,className:u.icon})]})}),ES,DS=q(`fieldset`,{name:`MuiNotchedOutlined`,shouldForwardProp:ru})({textAlign:`left`,position:`absolute`,bottom:0,right:0,top:-5,left:0,margin:0,padding:`0 8px`,pointerEvents:`none`,borderRadius:`inherit`,borderStyle:`solid`,borderWidth:1,overflow:`hidden`,minWidth:`0%`}),OS=q(`legend`,{name:`MuiNotchedOutlined`,shouldForwardProp:ru})(J(({theme:e})=>({float:`unset`,width:`auto`,overflow:`hidden`,variants:[{props:({ownerState:e})=>!e.withLabel,style:{padding:0,lineHeight:`11px`,...Tu(e,`width`,{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:e})=>e.withLabel,style:{display:`block`,padding:0,height:11,fontSize:`0.75em`,visibility:`hidden`,maxWidth:.01,...Tu(e,`max-width`,{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:`nowrap`,"& > span":{paddingLeft:5,paddingRight:5,display:`inline-block`,opacity:0,visibility:`visible`}}},{props:({ownerState:e})=>e.withLabel&&e.notched,style:{maxWidth:`100%`,...Tu(e,`max-width`,{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function kS(e){let{children:t,classes:n,className:r,label:i,notched:a,...o}=e,s=i!=null&&i!==``,c={...e,notched:a,withLabel:s};return(0,H.jsx)(DS,{"aria-hidden":!0,className:r,ownerState:c,...o,children:(0,H.jsx)(OS,{ownerState:c,children:s?(0,H.jsx)(`span`,{children:i}):ES||=(0,H.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``})})})}var AS=e=>{let{classes:t}=e,n=G({root:[`root`],notchedOutline:[`notchedOutline`],input:[`input`]},Qu,t);return{...t,...n}},jS=q(Mu,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiOutlinedInput`,slot:`Root`,overridesResolver:ku})(J(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{position:`relative`,borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$u.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${$u.focused} .${$u.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{[`&.${$u.focused} .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${$u.error} .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$u.disabled} .${$u.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:14}},{props:({ownerState:e})=>e.endAdornment,style:{"--_trailingPad":`14px`,paddingRight:`var(--_trailingPad)`,[`&.${Ty.root}`]:{"--_trailingPad":`0px`}}},{props:({ownerState:e})=>e.multiline,style:{padding:`16.5px 14px`}},{props:({ownerState:e,size:t})=>e.multiline&&t===`small`,style:{padding:`8.5px 14px`}}]}})),MS=q(kS,{name:`MuiOutlinedInput`,slot:`NotchedOutline`})(J(({theme:e})=>{let t=e.palette.mode===`light`?`rgba(0, 0, 0, 0.23)`:`rgba(255, 255, 255, 0.23)`;return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),NS=q(Nu,{name:`MuiOutlinedInput`,slot:`Input`,overridesResolver:Au})(J(({theme:e})=>({padding:`16.5px 14px`,"&:-webkit-autofill":{...!e.vars&&{WebkitBoxShadow:e.palette.mode===`light`?null:`0 0 0 100px #266798 inset`,WebkitTextFillColor:e.palette.mode===`light`?null:`#fff`,caretColor:e.palette.mode===`light`?null:`#fff`},borderRadius:`inherit`,...e.vars&&{WebkitBoxShadow:e.vars.palette.Input.autofillWebkitBoxShadow,...e.applyStyles(`dark`,{WebkitTextFillColor:`#fff`,caretColor:`#fff`})}},variants:[{props:{size:`small`},style:{padding:`8.5px 14px`}},{props:({ownerState:e})=>e.multiline,style:{padding:0}},{props:({ownerState:e})=>e.startAdornment,style:{paddingLeft:0}},{props:({ownerState:e})=>e.endAdornment,style:{paddingRight:0}}]}))),PS=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiOutlinedInput`}),{fullWidth:r=!1,inputComponent:i=`input`,label:a,multiline:o=!1,notched:s,slots:c={},slotProps:l={},type:u=`text`,...d}=n,f=AS(n),[p,m]=Ql({props:n,states:[`color`,`disabled`,`error`,`focused`,`hiddenLabel`,`size`,`required`]}),h={...n,color:p.color||`primary`,disabled:p.disabled,error:p.error,focused:p.focused,formControl:m,fullWidth:r,hiddenLabel:p.hiddenLabel,multiline:o,size:p.size,type:u},g=c.root??jS,_=c.input??NS,[v,y]=Q(`notchedOutline`,{elementType:MS,className:f.notchedOutline,shouldForwardComponentProp:!0,ownerState:h,externalForwardedProps:{slots:c,slotProps:l},additionalProps:{label:a!=null&&a!==``&&p.required?(0,H.jsxs)(z.Fragment,{children:[a,` `,`*`]}):a}});return(0,H.jsx)(Fu,{slots:{root:g,input:_},slotProps:l,renderSuffix:e=>(0,H.jsx)(v,{...y,notched:s===void 0?!!(e.startAdornment||e.filled||e.focused):s}),fullWidth:r,inputComponent:i,multiline:o,ref:t,type:u,...d,classes:{...f,notchedOutline:null}})});PS.muiName=`Input`;var FS=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z`}),`RadioButtonUnchecked`),IS=Z((0,H.jsx)(`path`,{d:`M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z`}),`RadioButtonChecked`),LS=q(`span`,{name:`MuiRadioButtonIcon`,shouldForwardProp:ru})({position:`relative`,display:`flex`}),RS=q(FS,{name:`MuiRadioButtonIcon`})({transform:`scale(1)`}),zS=q(IS,{name:`MuiRadioButtonIcon`})(J(({theme:e})=>({left:0,position:`absolute`,transform:`scale(0)`,...Tu(e,`transform`,{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest}),variants:[{props:{checked:!0},style:{transform:`scale(1)`,...Tu(e,`transform`,{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}}]})));function BS(e){let{checked:t=!1,classes:n={},fontSize:r}=e,i={...e,checked:t};return(0,H.jsxs)(LS,{className:n.root,ownerState:i,children:[(0,H.jsx)(RS,{fontSize:r,className:n.background,ownerState:i}),(0,H.jsx)(zS,{fontSize:r,className:n.dot,ownerState:i})]})}var VS=z.createContext(void 0);function HS(){return z.useContext(VS)}var US=e=>{let{classes:t,color:n,size:r}=e,i={root:[`root`,`color${X(n)}`,r!==`medium`&&`size${X(r)}`]};return{...t,...G(i,ed,t)}},WS=q(Q_,{shouldForwardProp:e=>ru(e)||e===`classes`,name:`MuiRadio`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.size!==`medium`&&t[`size${X(n.size)}`],t[`color${X(n.color)}`]]}})(J(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.focusVisible&&{[`&.${Zf.focusVisible} svg:first-of-type`]:{...Mc,borderRadius:99,...e.focusVisible}},[`&.${td.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{color:`default`,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t,disabled:!1,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t,disabled:!1},style:{[`&.${td.checked}`]:{color:(e.vars||e).palette[t].main}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:`transparent`}}}}]})));function GS(e,t){return typeof t==`object`&&t?e===t:String(e)===String(t)}var KS=(0,H.jsx)(BS,{checked:!0}),qS=(0,H.jsx)(BS,{}),JS=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiRadio`}),{checked:r,checkedIcon:i=KS,color:a=`primary`,icon:o=qS,name:s,onChange:c,size:l=`medium`,className:u,disabled:d,disableRipple:f=!1,slots:p={},slotProps:m={},...h}=n,g=Zl(),_=d;g&&_===void 0&&(_=g.disabled),_??=!1;let v={...n,disabled:_,disableRipple:f,color:a,size:l},y=US(v),b=HS(),x=r,S=md(c,b&&b.onChange),C=s;b&&(x===void 0&&(x=GS(b.value,n.value)),C===void 0&&(C=b.name));let w=m.input,[T,E]=Q(`root`,{ref:t,elementType:WS,className:U(y.root,u),shouldForwardComponentProp:!0,externalForwardedProps:{slots:p,slotProps:m,...h},getSlotProps:e=>({...e,onChange:(t,...n)=>{e.onChange?.(t,...n),S(t,...n)}}),ownerState:v,additionalProps:{type:`radio`,icon:z.cloneElement(o,{fontSize:o.props.fontSize??l}),checkedIcon:z.cloneElement(i,{fontSize:i.props.fontSize??l}),disabled:_,name:C,checked:x,disableRipple:n.disableRipple,slots:p,slotProps:{input:typeof w==`function`?w(v):w}}});return(0,H.jsx)(T,{...E,classes:y})});function YS(e){return W(`MuiRadioGroup`,e)}co(`MuiRadioGroup`,[`root`,`row`,`error`]);var XS=e=>{let{classes:t,row:n,error:r}=e;return G({root:[`root`,n&&`row`,r&&`error`]},YS,t)},ZS=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiRadioGroup`}),{actions:r,children:i,className:a,defaultValue:o,name:s,onChange:c,value:l,...u}=n,d=z.useRef(null),f=XS(n),[p,m]=Td({controlled:l,default:o,name:`RadioGroup`});z.useImperativeHandle(r,()=>({focus:()=>{let e=d.current.querySelector(`input:not(:disabled):checked`);e||=d.current.querySelector(`input:not(:disabled)`),e&&e.focus()}}),[]);let h=au(t,d),g=Cd(s),_=z.useMemo(()=>({name:g,onChange(e){m(e.target.value),c&&c(e,e.target.value)},value:p}),[g,c,m,p]);return(0,H.jsx)(VS.Provider,{value:_,children:(0,H.jsx)(Vy,{role:`radiogroup`,ref:h,className:U(f.root,a),...u,children:i})})}),QS={border:0,clipPath:`inset(50%)`,height:`1px`,margin:`-1px`,overflow:`hidden`,padding:0,position:`absolute`,whiteSpace:`nowrap`,width:`1px`};function $S(e){return Object.prototype.hasOwnProperty.call(e.props,`value`)}function eC(e){if(typeof e==`string`||typeof e==`number`)return String(e);let t=``;return z.Children.forEach(e,e=>{typeof e==`string`||typeof e==`number`?t+=String(e):z.isValidElement(e)&&(t+=eC(e.props.children))}),t}function tC(e,t,n=0){if(e.length===0)return-1;let r=(n%e.length+e.length)%e.length;for(let n=0;n<e.length;n+=1){let i=(r+n)%e.length;if(e[i].label.startsWith(t))return i}return-1}function nC(e,t){return!e.some(e=>e.label[0]===t&&e.label[1]===t)}function rC(e,t){let n=[],r=-1;for(let i=0;i<e.length;i+=1){let a=e[i];if(!z.isValidElement(a)||!$S(a)||a.props.disabled)continue;let o=eC(a.props.children).trim().toLowerCase();o!==``&&(r===-1&&Hx(t,a.props.value)&&(r=n.length),n.push({child:a,label:o,value:a.props.value}))}return{options:n,selectedIndex:r}}var iC,aC=2,oC=400,sC=200,cC=750,lC=` `,uC=`ArrowUp`,dC=`ArrowDown`,fC=`Enter`;function pC(e,t){if(!t)return!1;if(e.composedPath().includes(t)||e.target?.nodeType&&t.contains(e.target))return!0;let n=t.getBoundingClientRect();return n.width===0&&n.height===0?!1:e.clientX>=n.left-aC&&e.clientX<=n.right+aC&&e.clientY>=n.top-aC&&e.clientY<=n.bottom+aC}var mC=q(xS,{name:`MuiSelect`,slot:`Select`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`&.${Ty.select}`]:t.select},{[`&.${Ty.select}`]:t[n.variant]},{[`&.${Ty.error}`]:t.error},{[`&.${Ty.multiple}`]:t.multiple}]}})({[`&.${Ty.select}`]:{height:`auto`,minHeight:`1.4375em`,textOverflow:`ellipsis`,whiteSpace:`nowrap`,overflow:`hidden`}}),hC=q(CS,{name:`MuiSelect`,slot:`Icon`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.icon,n.open&&t.iconOpen]}})({}),gC=q(`input`,{shouldForwardProp:e=>nu(e)&&e!==`classes`,name:`MuiSelect`,slot:`NativeInput`})({bottom:0,left:0,position:`absolute`,opacity:0,pointerEvents:`none`,width:`100%`,boxSizing:`border-box`}),_C=e=>{let{classes:t,variant:n,disabled:r,multiple:i,open:a,error:o}=e;return G({select:[`select`,n,r&&`disabled`,i&&`multiple`,o&&`error`],icon:[`icon`,a&&`iconOpen`,r&&`disabled`],nativeInput:[`nativeInput`]},wy,t)},vC=z.forwardRef(function(e,t){let{"aria-describedby":n,"aria-label":r,autoFocus:i,autoWidth:a,children:o,className:s,defaultOpen:c,defaultValue:l,disabled:u,displayEmpty:d,error:f=!1,IconComponent:p,inputRef:m,labelId:h,MenuProps:g={},multiple:_,name:v,onBlur:y,onChange:b,onClose:x,onFocus:S,onKeyDown:C,onMouseDown:w,onOpen:T,open:E,readOnly:D,renderValue:O,required:k,SelectDisplayProps:ee={},tabIndex:A,type:j,value:M,variant:te=`standard`,...ne}=e,[N,P]=Td({controlled:M,default:l,name:`Select`}),[re,F]=Td({controlled:E,default:c,name:`Select`}),I=z.useRef(null),ie=z.useRef(null),L=z.useRef(null),R=z.useRef(!1),ae=z.useRef(!1),oe=z.useRef(null),se=z.useRef(!1),ce=z.useRef({allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}),B=z.useRef({buffer:``,previousSearchIndex:null,matchedIndex:null}),le=Pf(),V=Pf(),ue=Pf(),[de,fe]=z.useState(null),{current:pe}=z.useRef(E!=null),[me,he]=z.useState(),[ge,_e]=z.useState(null),ve=au(t,m),ye=z.useCallback(e=>{ie.current=e,e&&fe(e)},[]),be=de?.parentNode;z.useImperativeHandle(ve,()=>({focus:()=>{ie.current.focus()},node:I.current,value:N}),[N]);let xe=de!==null&&re,Se=z.useCallback(()=>{ue.clear(),B.current.buffer=``,B.current.previousSearchIndex=null,B.current.matchedIndex=null},[ue]);ou(()=>{R.current=xe,xe&&Se()},[xe,Se]);let Ce=z.useCallback(()=>{le.clear(),V.clear()},[le,V]),we=z.useCallback(()=>{Ce(),se.current=!1,ce.current={allowSelectedMouseUp:!1,allowUnselectedMouseUp:!1}},[Ce]),Te=z.useCallback(()=>{oe.current&&=(oe.current(),null)},[]);z.useEffect(()=>{xe||(we(),Te())},[xe,we,Te]),z.useEffect(()=>()=>{we(),Te(),Se()},[we,Te,Se]),z.useEffect(()=>{if(!xe||!be||a||typeof ResizeObserver>`u`)return;let e=new ResizeObserver(()=>{he(be.clientWidth)});return e.observe(be),()=>{e.disconnect()}},[xe,be,a]),z.useEffect(()=>{c&&re&&de&&!pe&&(he(a?null:be.clientWidth),ie.current.focus())},[de,a]),z.useEffect(()=>{i&&ie.current.focus()},[i]),z.useEffect(()=>{if(!h)return;let e=su(ie.current).getElementById(h);if(e){let t=()=>{getSelection().isCollapsed&&ie.current.focus()};return e.addEventListener(`click`,t),()=>{e.removeEventListener(`click`,t)}}},[h]);let Ee=Ed((e,t)=>{e||(we(),Te()),e?(Se(),_e(Bx(t)),T&&T(t)):(_e(null),x&&x(t)),pe||(R.current=e,he(a?null:be.clientWidth),F(e))}),De=()=>{we(),ae.current?(V.start(sC,()=>{ce.current.allowUnselectedMouseUp=!0}),le.start(oC,()=>{ce.current.allowSelectedMouseUp=!0})):le.start(oC,()=>{ce.current.allowSelectedMouseUp=!0,ce.current.allowUnselectedMouseUp=!0})},Oe=e=>{if(w?.(e),e.button!==0||(e.preventDefault(),!ie.current))return;ie.current.focus();let t=su(e.currentTarget);De(),Te();let n=e=>{oe.current=null,ie.current&&(pC(e,ie.current)||pC(e,L.current)||(R.current||!pe)&&Ee(!1,e))};t.addEventListener(`mouseup`,n,{capture:!0,once:!0}),oe.current=()=>{t.removeEventListener(`mouseup`,n,!0)},Ee(!0,e)},ke=e=>{Ee(!1,e)},Ae=z.Children.toArray(o),je=e=>{let t=Ae.find(t=>t.props.value===e.target.value);t!==void 0&&(P(t.props.value),b&&b(e,t))},Me=(e,t,n)=>{if(P(n),b){let r=e.nativeEvent||e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:n,name:v}}),b(i,t)}},Ne=e=>t=>{se.current=!1;let n;if(t.currentTarget.hasAttribute(`tabindex`)){if(_){n=Array.isArray(N)?N.slice():[];let t=N.indexOf(e.props.value);t===-1?n.push(e.props.value):n.splice(t,1)}else n=e.props.value;e.props.onClick&&e.props.onClick(t),N!==n&&Me(t,e,n),_||Ee(!1,t)}},Pe=(e,t)=>n=>{if(e.props.onMouseUp?.(n),se.current){se.current=!1;return}let r=!ce.current.allowSelectedMouseUp&&t,i=!ce.current.allowUnselectedMouseUp&&!t;r||i||n.currentTarget.click()},Fe=e=>{let t=B.current,n=t.buffer!==``;if(xe||_||u||e.defaultPrevented||e.nativeEvent?.isComposing||e.key.length!==1||e.ctrlKey||e.metaKey||e.altKey||e.key===lC&&!n)return!1;e.key===lC&&e.preventDefault();let r=t.buffer===``,{options:i,selectedIndex:a}=rC(Ae,N);if(i.length===0)return e.key!==lC&&Se(),!0;r&&(t.previousSearchIndex=a);let o=e.key.toLowerCase();t.buffer===o&&nC(i,o)&&(t.buffer=``,t.previousSearchIndex=t.matchedIndex),t.buffer+=o,ue.start(cC,Se);let s=tC(i,t.buffer,(t.previousSearchIndex??-1)+1);if(s!==-1){let n=i[s];return t.matchedIndex=s,Hx(N,n.value)||Me(e,n.child,n.value),!0}return e.key!==lC&&Se(),!0},Ie=e=>{if(!D){let t=Fe(e),n=e.key===lC||e.key===uC||e.key===dC||e.key===fC;!t&&n&&(e.preventDefault(),Ee(!0,e)),C?.(e)}},Le=e=>{Se(),!xe&&y&&(Object.defineProperty(e,"target",{writable:!0,value:{value:N,name:v}}),y(e))},Re=e=>t=>{e?.props?.onKeyDown?.(t),t.key===lC&&t.target===t.currentTarget&&!t.defaultPrevented&&(t.preventDefault(),t.repeat||t.currentTarget.click())};delete ne[`aria-invalid`];let ze,Be,Ve=[],He=!1,Ue=!1;(du({value:N})||d)&&(O?ze=O(N):He=!0);let We=Ae.map(e=>{if(!z.isValidElement(e))return null;let t;if(_){if(!Array.isArray(N))throw Error(Jt(2));t=N.some(t=>Hx(t,e.props.value)),t&&He&&Ve.push(e.props.children)}else t=Hx(N,e.props.value),t&&He&&(Be=e.props.children);return t&&(Ue=!0),z.cloneElement(e,{"aria-selected":t?`true`:`false`,onMouseDown:t=>{se.current=!0,e.props.onMouseDown?.(t)},onPointerDown:t=>{se.current=!0,e.props.onPointerDown?.(t)},onClick:Ne(e),onMouseUp:Pe(e,t),onKeyUp:t=>{t.key===lC&&t.preventDefault(),e.props.onKeyUp&&e.props.onKeyUp(t)},onKeyDown:Re(e),role:`option`,selected:t,value:void 0,"data-value":e.props.value})});ou(()=>{ae.current=Ue,xe||_||Ue||Se()},[Ue,_,xe,Se]),He&&(ze=_?Ve.length===0?null:Ve.reduce((e,t,n)=>(e.push(t),n<Ve.length-1&&e.push(`, `),e),[]):Be);let Ge=me;!a&&pe&&de&&(Ge=be.clientWidth);let Ke;Ke=A===void 0?u?null:0:A;let qe=ee.id||(v?`mui-component-select-${v}`:void 0),Je={...e,variant:te,value:N,open:xe,error:f},Ye=_C(Je),Xe=typeof g.slotProps?.paper==`function`?g.slotProps.paper(Je):g.slotProps?.paper,Ze=au(Xe?.ref,L),Qe=typeof g.slotProps?.list==`function`?g.slotProps.list(Je):g.slotProps?.list,$e=ls(),et=ls();return(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(mC,{as:`div`,ref:ye,tabIndex:Ke,role:`combobox`,"aria-controls":xe?$e:void 0,"aria-disabled":u?`true`:void 0,"aria-expanded":xe?`true`:`false`,"aria-haspopup":`listbox`,"aria-readonly":D?`true`:void 0,"aria-label":r,"aria-labelledby":h,"aria-describedby":n,"aria-required":k?`true`:void 0,"aria-invalid":f?`true`:void 0,onKeyDown:Ie,onMouseDown:u||D?null:Oe,onBlur:Le,onFocus:S,...ee,ownerState:Je,className:U(ee.className,Ye.select,s),id:qe,children:Vx(ze)?iC||=(0,H.jsx)(`span`,{className:`notranslate`,"aria-hidden":!0,children:``}):ze}),(0,H.jsx)(gC,{"aria-invalid":f,value:Array.isArray(N)?N.join(`,`):N,name:v,ref:I,"aria-hidden":!0,onChange:je,tabIndex:-1,disabled:u,readOnly:D,className:Ye.nativeInput,autoFocus:i,required:k,...ne,id:ne.id??et,ownerState:Je}),(0,H.jsx)(hC,{as:p,className:Ye.icon,ownerState:Je}),(0,H.jsx)(Gx,{value:ge,children:(0,H.jsx)(hS,{id:`menu-${v||``}`,anchorEl:be,open:xe,onClose:ke,anchorOrigin:{vertical:`bottom`,horizontal:`center`},transformOrigin:{vertical:`top`,horizontal:`center`},...g,slotProps:{...g.slotProps,list:{"aria-labelledby":h,role:`listbox`,"aria-multiselectable":_?`true`:void 0,disableListWrap:!0,id:$e,...Qe},paper:{...Xe,ref:Ze,style:{minWidth:Ge,...Xe?.style}}},children:We})})]})}),yC=e=>{let{classes:t}=e,n=G({root:[`root`]},wy,t);return{...t,...n}},bC={name:`MuiSelect`,slot:`Root`,shouldForwardProp:e=>ru(e)&&e!==`variant`},xC=q(ob,bC)(``),SC=q(PS,bC)(``),CC=q(ky,bC)(``),wC=z.forwardRef(function(e,t){let n=Y({name:`MuiSelect`,props:e}),{autoWidth:r=!1,children:i,classes:a={},className:o,defaultOpen:s=!1,displayEmpty:c=!1,IconComponent:l=Rg,id:u,input:d,inputProps:f,label:p,labelId:m,MenuProps:h,multiple:g=!1,native:_=!1,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:S,variant:C=`outlined`,...w}=n,T=_?TS:vC,[E]=Ql({props:n,states:[`variant`,`error`]}),D=E.variant||C,O={...n,variant:D,classes:a},k=yC(O),{root:ee,...A}=k,j=d||{standard:(0,H.jsx)(xC,{ownerState:O}),outlined:(0,H.jsx)(SC,{label:p,ownerState:O}),filled:(0,H.jsx)(CC,{ownerState:O})}[D],M=au(t,mg(j));return(0,H.jsx)(z.Fragment,{children:z.cloneElement(j,{inputComponent:T,inputProps:{children:i,error:E.error,IconComponent:l,variant:D,type:void 0,multiple:g,..._?{id:u}:{autoWidth:r,defaultOpen:s,displayEmpty:c,labelId:m,MenuProps:h,onClose:v,onOpen:y,open:b,renderValue:x,SelectDisplayProps:{id:u,...S}},...f,classes:f?mi(A,f.classes):A,...d?d.props.inputProps:{}},...(g&&_||c)&&D===`outlined`?{notched:!0}:{},ref:M,className:U(j.props.className,o,k.root),...!d&&{variant:D},...w})})});wC.muiName=`Select`;function TC(e,t,n=(e,t)=>e===t){return e.length===t.length&&e.every((e,r)=>n(e,t[r]))}var EC=2,DC=[],OC={};function kC(e,t,n,r,i){return n===1?Math.min(e+t,i):Math.max(e-t,r)}function AC(e,t){return e-t}function jC(e,t,n=-1){let{index:r}=e.reduce((e,n,r)=>{let i=Math.abs(t-n);return e==null||i<=e.distance?{distance:i,index:r}:e},null)??OC;return r==null?r:n>=0&&e[n]===e[r]?n:r}function MC(e,t){if(t.current!=null&&e.changedTouches){let n=e;for(let e=0;e<n.changedTouches.length;e+=1){let r=n.changedTouches[e];if(r.identifier===t.current)return{x:r.clientX,y:r.clientY}}return!1}return{x:e.clientX,y:e.clientY}}function NC(e,t,n){return(e-t)*100/(n-t)}function PC(e,t,n){return(n-t)*e+t}function FC(e){if(Math.abs(e)<1){let t=e.toExponential().split(`e-`),n=t[0].split(`.`)[1];return(n?n.length:0)+parseInt(t[1],10)}let t=e.toString().split(`.`)[1];return t?t.length:0}function IC(e,t,n){let r=Math.round((e-n)/t)*t+n;return Number(r.toFixed(FC(t)))}function LC(e,t,n){let r=e.slice();return r[n]=t,r.sort(AC)}function RC(e,t,n,r){let i=lu(Ul(e.current));if(!Ev(e.current,i)||Number(i?.getAttribute(`data-index`))!==t){let n=e.current?.querySelector(`[type="range"][data-index="${t}"]`);n!=null&&(r==null?n.focus({preventScroll:!0}):n.focus({preventScroll:!0,focusVisible:r}))}n&&n(t)}function zC(e,t){return typeof e==`number`&&typeof t==`number`?e===t:typeof e==`object`&&typeof t==`object`&&TC(e,t)}var BC={horizontal:{offset:e=>({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},VC=e=>e;function HC(e){let{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:o=!1,max:s=100,min:c=0,name:l,onChange:u,onChangeCommitted:d,orientation:f=`horizontal`,rootRef:p,scale:m=VC,step:h=1,shiftStep:g=10,tabIndex:_,value:v}=e,y=z.useRef(void 0),b=z.useRef(null),[x,S]=z.useState(-1),[C,w]=z.useState(-1),[T,E]=z.useState(!1),D=z.useRef(0),O=z.useRef(-1),k=z.useRef(!1),ee=z.useRef(-1),A=Hl(()=>{b.current!=null&&(cancelAnimationFrame(b.current),b.current=null)}),j=z.useRef(null),[M,te]=wd({controlled:v,default:n??c,name:`Slider`}),ne=Hl((e,t,n)=>{let r=`nativeEvent`in e?e.nativeEvent:e,i=new r.constructor(r.type,r);Object.defineProperty(i,"target",{writable:!0,value:{value:t,name:l}}),j.current=t,u?.(i,t,n)}),N=Array.isArray(M),P=z.useMemo(()=>{if(typeof M==`number`)return[Ao(M,c,s)];if(M==null)return[c];let e=M.slice().sort(AC);for(let t=0;t<e.length;t+=1){let n=e[t];e[t]=n==null?c:Ao(n,c,s)}return e},[M,c,s]),re=z.useMemo(()=>{if(o===!0&&h!=null){let e=Array(Math.floor((s-c)/h)+1);for(let t=0;t<e.length;t+=1)e[t]={value:c+h*t};return e}return Array.isArray(o)?o:DC},[o,h,c,s]),F=z.useMemo(()=>{let e=Array(re.length);for(let t=0;t<re.length;t+=1)e[t]=re[t].value;return e},[re]),[I,ie]=z.useState(-1),L=z.useRef(null),R=Vl(p,L),ae=e=>t=>{let n=Number(t.currentTarget.getAttribute(`data-index`));wf(t.target)&&ie(n),w(n),e?.onFocus?.(t)},oe=e=>t=>{wf(t.target)||ie(-1),w(-1),e?.onBlur?.(t)},se=(e,t)=>{let n=Number(e.currentTarget.getAttribute(`data-index`)),r=P[n],a=F.indexOf(r),o=t;if(re&&h==null){let e=F[F.length-1];o=o>=e?e:o<=F[0]?F[0]:o<r?F[a-1]:F[a+1]}if(o=Ao(o,c,s),N){i&&(o=Ao(o,P[n-1]??-1/0,P[n+1]??1/0));let e=o;o=LC(P,o,n);let t=n;i||(t=o.indexOf(e)),RC(L,t)}te(o),ie(n),u&&!zC(o,M)&&ne(e,o,n),d&&d(e,j.current??o)},ce=e=>t=>{if([`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`,`PageUp`,`PageDown`,`Home`,`End`].includes(t.key)){t.preventDefault();let e=Number(t.currentTarget.getAttribute(`data-index`)),n=P[e],r=null;if(h!=null){let e=t.shiftKey?g:h;switch(t.key){case`ArrowUp`:r=kC(n,e,1,c,s);break;case`ArrowRight`:r=kC(n,e,a?-1:1,c,s);break;case`ArrowDown`:r=kC(n,e,-1,c,s);break;case`ArrowLeft`:r=kC(n,e,a?1:-1,c,s);break;case`PageUp`:r=kC(n,g,1,c,s);break;case`PageDown`:r=kC(n,g,-1,c,s);break;case`Home`:r=c;break;case`End`:r=s}}else if(re){let e=F[F.length-1],i=F.indexOf(n),o=[a?`ArrowRight`:`ArrowLeft`,`ArrowDown`,`PageDown`,`Home`],s=[a?`ArrowLeft`:`ArrowRight`,`ArrowUp`,`PageUp`,`End`];o.includes(t.key)?r=i===0?F[0]:F[i-1]:s.includes(t.key)&&(r=i===F.length-1?e:F[i+1])}r!=null&&se(t,r)}e?.onKeyDown?.(t)};To(()=>{let e=lu(Ul(L.current));r&&Ev(L.current,e)&&e!=null&&`blur`in e&&e.blur()},[r]),r&&x!==-1&&S(-1),r&&I!==-1&&ie(-1);let B=e=>t=>{e.onChange?.(t),se(t,t.currentTarget.valueAsNumber)},le=z.useRef(void 0),V=f;a&&f===`horizontal`&&(V+=`-reverse`);let ue=e=>{let{current:t}=L;if(!t)return null;let{width:n,height:r,bottom:a,left:o}=t.getBoundingClientRect(),l;l=V.startsWith(`vertical`)?(a-e.y)/r:(e.x-o)/n,V.includes(`-reverse`)&&(l=1-l);let u;if(u=PC(l,c,s),h)u=IC(u,h,c);else{let e=jC(F,u);u=F[e]}u=Ao(u,c,s);let d=0;if(N){let e=le.current!==-1;d=e?le.current:jC(P,u,O.current),i&&(u=Ao(u,P[d-1]??-1/0,P[d+1]??1/0));let t=u;u=LC(P,u,d),i&&e||(d=u.indexOf(t),le.current=d)}return{newValue:u,activeIndex:d}},de=Hl(e=>{if(`pointerId`in e&&e.pointerId!==ee.current)return;let t=MC(e,y);if(!t)return;if(D.current+=1,e.type===`pointermove`&&e.buttons===0){fe(e);return}let n=ue(t);n&&(RC(L,n.activeIndex,S,!1),O.current=n.activeIndex,te(n.newValue),!T&&D.current>EC&&E(!0),u&&!zC(n.newValue,M)&&ne(e,n.newValue,n.activeIndex))}),fe=Hl(e=>{if(`pointerId`in e&&e.pointerId!==ee.current)return;let t=MC(e,y);if(E(!1),!t)return;let n=ue(t);S(-1),e.type===`touchend`&&w(-1),n&&d&&d(e,j.current??n.newValue),`pointerType`in e&&L.current?.hasPointerCapture(e.pointerId)&&L.current.releasePointerCapture(e.pointerId),y.current=void 0,ee.current=-1,me()}),pe=Hl(e=>{if(r)return;if(k.current){k.current=!1;let t=e.changedTouches[0];t!=null&&(y.current=t.identifier);return}let t=e.changedTouches[0];t!=null&&(y.current=t.identifier);let n=MC(e,y);if(n!==!1){le.current=-1;let t=ue(n);t&&(RC(L,t.activeIndex,S,!1),O.current=t.activeIndex,te(t.newValue),u&&!zC(t.newValue,M)&&ne(e,t.newValue,t.activeIndex))}D.current=0;let i=Ul(L.current);i.addEventListener(`touchmove`,de,{passive:!0}),i.addEventListener(`touchend`,fe,{passive:!0})}),me=z.useCallback(()=>{let e=Ul(L.current);e.removeEventListener(`pointermove`,de),e.removeEventListener(`pointerup`,fe),e.removeEventListener(`touchmove`,de),e.removeEventListener(`touchend`,fe)},[fe,de]);z.useEffect(()=>{let e=L.current;if(e)return e.addEventListener(`touchstart`,pe,{passive:!0}),()=>{e.removeEventListener(`touchstart`,pe),A(),me()}},[me,pe,A]),z.useEffect(()=>{r&&(me(),A())},[r,me,A]);let he=e=>t=>{if(e.onPointerDown?.(t),t.pointerType===`touch`&&(k.current=!0),r||t.defaultPrevented||t.button!==0)return;let n=MC(t,y);if(n!==!1){le.current=-1;let e=ue(n);if(e){let n=L.current?.querySelector(`input[type="range"][data-index="${e.activeIndex}"]`),r=Ul(L.current),i=n!=null&&n===lu(r);S(e.activeIndex),O.current=e.activeIndex,i?t.preventDefault():(A(),b.current=requestAnimationFrame(()=>{b.current=null,RC(L,e.activeIndex,void 0,!1)})),te(e.newValue),u&&!zC(e.newValue,M)&&ne(t,e.newValue,e.activeIndex)}}D.current=0,ee.current=t.pointerId;let i=Ul(L.current);try{t.currentTarget.setPointerCapture(t.pointerId)}catch{}i.addEventListener(`pointermove`,de,{passive:!0}),i.addEventListener(`pointerup`,fe)},ge=NC(N?P[0]:c,c,s),_e=NC(P[P.length-1],c,s)-ge,ve=(e=OC)=>{let t=Zd(e),n={onPointerDown:he(t)},r={...t,...n};return{...e,ref:R,...r}},ye=e=>t=>{e.onMouseOver?.(t);let n=Number(t.currentTarget.getAttribute(`data-index`));w(n)},be=e=>t=>{e.onMouseLeave?.(t),w(-1)},xe=(e=OC)=>{let t=Zd(e),n={onMouseOver:ye(t),onMouseLeave:be(t)};return{...e,...t,...n}},Se=e=>{let t;return N?x===e?t=2:O.current===e&&(t=1):x===e&&(t=1),{pointerEvents:x!==-1&&x!==e?`none`:void 0,zIndex:t}},Ce;return f===`vertical`&&(Ce=a?`vertical-rl`:`vertical-lr`),{active:x,axis:V,axisProps:BC,dragging:T,focusedThumbIndex:I,getHiddenInputProps:(n=OC)=>{let i=Zd(n),o={onChange:B(i),onFocus:ae(i),onBlur:oe(i),onKeyDown:ce(i)},u={...i,...o};return{tabIndex:_,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":m(s),"aria-valuemin":m(c),name:l,type:`range`,min:e.min,max:e.max,step:e.step===null&&e.marks?`any`:e.step??void 0,disabled:r,...n,...u,style:{...QS,direction:a?`rtl`:`ltr`,width:`100%`,height:`100%`,writingMode:Ce}}},getRootProps:ve,getThumbProps:xe,marks:re,open:C,range:N,rootRef:R,trackLeap:_e,trackOffset:ge,values:P,getThumbStyle:Se}}var UC=e=>{let{open:t}=e;return{offset:U(t&&rd.valueLabelOpen),circle:rd.valueLabelCircle,label:rd.valueLabelLabel}};function WC(e){let{children:t,className:n,value:r}=e,i=UC(e);return t?z.cloneElement(t,{className:t.props.className},(0,H.jsxs)(z.Fragment,{children:[t.props.children,(0,H.jsx)(`span`,{className:U(i.offset,n),"aria-hidden":!0,children:(0,H.jsx)(`span`,{className:i.circle,children:(0,H.jsx)(`span`,{className:i.label,children:r})})})]})):null}function GC(e){return e}var KC=q(`span`,{name:`MuiSlider`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`color${X(n.color)}`],n.size!==`medium`&&t[`size${X(n.size)}`],n.marked&&t.marked,n.orientation===`vertical`&&t.vertical,n.track===`inverted`&&t.trackInverted,n.track===!1&&t.trackFalse]}})(J(({theme:e})=>({borderRadius:12,boxSizing:`content-box`,display:`inline-block`,position:`relative`,cursor:`pointer`,touchAction:`none`,WebkitTapHighlightColor:`transparent`,"@media print":{colorAdjust:`exact`},[`&.${rd.disabled}`]:{pointerEvents:`none`,cursor:`default`,color:(e.vars||e).palette.grey[400]},[`&.${rd.dragging}`]:{[`& .${rd.thumb}, & .${rd.track}`]:{transition:`none`}},variants:[...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),{props:{orientation:`horizontal`},style:{height:4,width:`100%`,padding:`13px 0`,"@media (pointer: coarse)":{padding:`20px 0`}}},{props:{orientation:`horizontal`,size:`small`},style:{height:2}},{props:{orientation:`horizontal`,marked:!0},style:{marginBottom:20}},{props:{orientation:`vertical`},style:{height:`100%`,width:4,padding:`0 13px`,"@media (pointer: coarse)":{padding:`0 20px`}}},{props:{orientation:`vertical`,size:`small`},style:{width:2}},{props:{orientation:`vertical`,marked:!0},style:{marginRight:44}}]}))),qC=q(`span`,{name:`MuiSlider`,slot:`Rail`})({display:`block`,position:`absolute`,borderRadius:`inherit`,backgroundColor:`currentColor`,opacity:.38,"@media (forced-colors: active)":{border:`1px solid transparent`,boxSizing:`border-box`},variants:[{props:{orientation:`horizontal`},style:{width:`100%`,height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{height:`100%`,width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:`inverted`},style:{opacity:1}}]}),JC=q(`span`,{name:`MuiSlider`,slot:`Track`})(J(({theme:e})=>({display:`block`,position:`absolute`,borderRadius:`inherit`,border:`1px solid currentColor`,backgroundColor:`currentColor`,...Tu(e,[`left`,`width`,`bottom`,`height`],{duration:e.transitions.duration.shortest}),variants:[{props:{size:`small`},style:{"@media (forced-colors: none)":{border:`none`}}},{props:{orientation:`horizontal`},style:{height:`inherit`,top:`50%`,transform:`translateY(-50%)`}},{props:{orientation:`vertical`},style:{width:`inherit`,left:`50%`,transform:`translateX(-50%)`}},{props:{track:!1},style:{display:`none`}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t,track:`inverted`},style:{...e.vars?{backgroundColor:e.vars.palette.Slider[`${t}Track`],borderColor:e.vars.palette.Slider[`${t}Track`]}:{backgroundColor:e.lighten(e.palette[t].main,.62),borderColor:e.lighten(e.palette[t].main,.62),...e.applyStyles(`dark`,{backgroundColor:e.darken(e.palette[t].main,.5)}),...e.applyStyles(`dark`,{borderColor:e.darken(e.palette[t].main,.5)})}}}))]}))),YC=q(`span`,{name:`MuiSlider`,slot:`Thumb`})(J(({theme:e})=>({position:`absolute`,width:20,height:20,boxSizing:`border-box`,borderRadius:`50%`,outline:0,backgroundColor:`currentColor`,display:`flex`,alignItems:`center`,justifyContent:`center`,...Tu(e,[`box-shadow`,`left`,`bottom`],{duration:e.transitions.duration.shortest}),"@media (forced-colors: active)":{border:`1px solid ButtonBorder`},"&::before":{position:`absolute`,content:`""`,borderRadius:`inherit`,width:`100%`,height:`100%`,boxShadow:(e.vars||e).shadows[2]},"&::after":{position:`absolute`,content:`""`,borderRadius:`50%`,width:42,height:42,top:`50%`,left:`50%`,transform:`translate(-50%, -50%)`},[`&.${rd.disabled}`]:{"&:hover":{boxShadow:`none`}},...e.focusVisible&&{[`&.${rd.focusVisible}`]:{...Mc,...e.focusVisible}},variants:[{props:{size:`small`},style:{width:12,height:12,"&::before":{boxShadow:`none`}}},{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-50%, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 50%)`}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{"&:hover":{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:`none`}},...!e.focusVisible&&{[`&.${rd.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.alpha((e.vars||e).palette[t].main,.16)}`,"@media (hover: none)":{boxShadow:`none`}}},[`&.${rd.active}`]:{boxShadow:`0px 0px 0px 14px ${e.alpha((e.vars||e).palette[t].main,.16)}`}}}))]}))),XC=q(WC,{name:`MuiSlider`,slot:`ValueLabel`})(J(({theme:e})=>({zIndex:1,whiteSpace:`nowrap`,...e.typography.body2,fontWeight:500,...Tu(e,[`transform`],{duration:e.transitions.duration.shortest}),position:`absolute`,backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:`flex`,alignItems:`center`,justifyContent:`center`,padding:`0.25rem 0.75rem`,variants:[{props:{orientation:`horizontal`},style:{transform:`translateY(-100%) scale(0)`,top:`-10px`,transformOrigin:`bottom center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, 50%) rotate(45deg)`,backgroundColor:`inherit`,bottom:0,left:`50%`},[`&.${rd.valueLabelOpen}`]:{transform:`translateY(-100%) scale(1)`}}},{props:{orientation:`vertical`},style:{transform:`translateY(-50%) scale(0)`,right:`30px`,top:`50%`,transformOrigin:`right center`,"&::before":{position:`absolute`,content:`""`,width:8,height:8,transform:`translate(-50%, -50%) rotate(45deg)`,backgroundColor:`inherit`,right:-8,top:`50%`},[`&.${rd.valueLabelOpen}`]:{transform:`translateY(-50%) scale(1)`}}},{props:{size:`small`},style:{fontSize:e.typography.pxToRem(12),padding:`0.25rem 0.5rem`}},{props:{orientation:`vertical`,size:`small`},style:{right:`20px`}}]}))),ZC=q(`span`,{name:`MuiSlider`,slot:`Mark`,shouldForwardProp:e=>nu(e)&&e!==`markActive`,overridesResolver:(e,t)=>{let{markActive:n}=e;return[t.mark,n&&t.markActive]}})(J(({theme:e})=>({position:`absolute`,width:2,height:2,borderRadius:1,backgroundColor:`currentColor`,variants:[{props:{orientation:`horizontal`},style:{top:`50%`,transform:`translate(-1px, -50%)`}},{props:{orientation:`vertical`},style:{left:`50%`,transform:`translate(-50%, 1px)`}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]}))),QC=q(`span`,{name:`MuiSlider`,slot:`MarkLabel`,shouldForwardProp:e=>nu(e)&&e!==`markLabelActive`})(J(({theme:e})=>({...e.typography.body2,color:(e.vars||e).palette.text.secondary,position:`absolute`,whiteSpace:`nowrap`,variants:[{props:{orientation:`horizontal`},style:{top:30,transform:`translateX(-50%)`,"@media (pointer: coarse)":{top:40}}},{props:{orientation:`vertical`},style:{left:36,transform:`translateY(50%)`,"@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]}))),$C=e=>{let{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:o,color:s,size:c}=e;return G({root:[`root`,t&&`disabled`,n&&`dragging`,r&&`marked`,i===`vertical`&&`vertical`,a===`inverted`&&`trackInverted`,a===!1&&`trackFalse`,s&&`color${X(s)}`,c&&`size${X(c)}`],rail:[`rail`],track:[`track`],mark:[`mark`],markActive:[`markActive`],markLabel:[`markLabel`],markLabelActive:[`markLabelActive`],valueLabel:[`valueLabel`],thumb:[`thumb`,t&&`disabled`],active:[`active`],disabled:[`disabled`],focusVisible:[`focusVisible`]},nd,o)},ew=({children:e})=>e,tw=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiSlider`}),r=ts(),{"aria-label":i,"aria-valuetext":a,"aria-labelledby":o,color:s=`primary`,classes:c,className:l,disableSwap:u=!1,disabled:d=!1,getAriaLabel:f,getAriaValueText:p,marks:m=!1,max:h=100,min:g=0,name:_,onChange:v,onChangeCommitted:y,orientation:b=`horizontal`,shiftStep:x=10,size:S=`medium`,step:C=1,scale:w=GC,slotProps:T={},slots:E={},tabIndex:D,track:O=`normal`,value:k,valueLabelDisplay:ee=`off`,valueLabelFormat:A=GC,...j}=n,M={...n,isRtl:r,max:h,min:g,classes:c,disabled:d,disableSwap:u,orientation:b,marks:m,color:s,size:S,step:C,shiftStep:x,scale:w,track:O,valueLabelDisplay:ee,valueLabelFormat:A},{axisProps:te,getRootProps:ne,getHiddenInputProps:N,getThumbProps:P,open:re,active:F,axis:I,focusedThumbIndex:ie,range:L,dragging:R,marks:ae,values:oe,trackOffset:se,trackLeap:ce,getThumbStyle:B}=HC({...M,rootRef:t});M.marked=ae.length>0&&ae.some(e=>e.label),M.dragging=R,M.focusedThumbIndex=ie;let le=$C(M),V={slots:E,slotProps:T},[ue,de]=Q(`root`,{elementType:KC,getSlotProps:ne,externalForwardedProps:{...V,...j},ownerState:M,className:[le.root,l]}),[fe,pe]=Q(`rail`,{elementType:qC,externalForwardedProps:V,ownerState:M,className:le.rail}),[me,he]=Q(`track`,{elementType:JC,externalForwardedProps:V,additionalProps:{style:{...te[I].offset(se),...te[I].leap(ce)}},ownerState:M,className:le.track}),[ge,_e]=Q(`thumb`,{elementType:YC,getSlotProps:P,externalForwardedProps:V,ownerState:M,className:le.thumb}),[ve,ye]=Q(`valueLabel`,{elementType:XC,externalForwardedProps:V,ownerState:M,className:le.valueLabel}),[be,xe]=Q(`mark`,{elementType:ZC,externalForwardedProps:V,ownerState:M,className:le.mark}),[Se,Ce]=Q(`markLabel`,{elementType:QC,externalForwardedProps:V,ownerState:M,className:le.markLabel}),[we,Te]=Q(`input`,{elementType:`input`,getSlotProps:N,externalForwardedProps:V,ownerState:M});return(0,H.jsxs)(ue,{...de,children:[(0,H.jsx)(fe,{...pe}),(0,H.jsx)(me,{...he}),ae.filter(e=>e.value>=g&&e.value<=h).map((e,t)=>{let n=NC(e.value,g,h),r=te[I].offset(n),i;return i=O===!1?oe.includes(e.value):O===`normal`&&(L?e.value>=oe[0]&&e.value<=oe[oe.length-1]:e.value<=oe[0])||O===`inverted`&&(L?e.value<=oe[0]||e.value>=oe[oe.length-1]:e.value>=oe[0]),(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(be,{"data-index":t,...xe,...!zl(be)&&{markActive:i},style:{...r,...xe.style},className:U(xe.className,i&&le.markActive)}),e.label==null?null:(0,H.jsx)(Se,{"aria-hidden":!0,"data-index":t,...Ce,...!zl(Se)&&{markLabelActive:i},style:{...r,...Ce.style},className:U(le.markLabel,Ce.className,i&&le.markLabelActive),children:e.label})]},t)}),oe.map((e,t)=>{let n=NC(e,g,h),r=te[I].offset(n),s=ee===`off`?ew:ve;return(0,H.jsx)(s,{...!zl(s)&&{valueLabelFormat:A,valueLabelDisplay:ee,value:typeof A==`function`?A(w(e),t):A,index:t,open:re===t||F===t||ee===`on`,disabled:d},...ye,children:(0,H.jsx)(ge,{"data-index":t,..._e,className:U(le.thumb,_e.className,F===t&&le.active,ie===t&&le.focusVisible),style:{...r,...B(t),..._e.style},children:(0,H.jsx)(we,{"data-index":t,"aria-label":f?f(t):i,"aria-valuenow":w(e),"aria-labelledby":o,"aria-valuetext":p?p(w(e),t):a,value:oe[t],...Te})})},t)})]})});function nw(e){return W(`MuiTooltip`,e)}var rw=co(`MuiTooltip`,[`popper`,`popperInteractive`,`popperArrow`,`popperClose`,`tooltip`,`tooltipArrow`,`touch`,`tooltipPlacementLeft`,`tooltipPlacementRight`,`tooltipPlacementTop`,`tooltipPlacementBottom`,`arrow`]);function iw(e){return Math.round(e*1e5)/1e5}var aw=e=>{let{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a,open:o}=e;return G({popper:[`popper`,!n&&`popperInteractive`,r&&`popperArrow`,!o&&`popperClose`],tooltip:[`tooltip`,r&&`tooltipArrow`,i&&`touch`,`tooltipPlacement${X(a.split(`-`)[0])}`],arrow:[`arrow`]},nw,t)},ow=q(Tg,{name:`MuiTooltip`,slot:`Popper`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(J(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:`none`,variants:[{props:({ownerState:e})=>e.open&&!e.disableInteractive,style:{pointerEvents:`auto`}},{props:({ownerState:e})=>e.arrow,style:{[`&[data-popper-placement*="bottom"] .${rw.arrow}`]:{top:0,marginTop:`-0.71em`,"&::before":{transformOrigin:`0 100%`}},[`&[data-popper-placement*="top"] .${rw.arrow}`]:{bottom:0,marginBottom:`-0.71em`,"&::before":{transformOrigin:`100% 0`}},[`&[data-popper-placement*="right"] .${rw.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineStart:0,marginInlineStart:`-0.71em`,"&::before":{transformOrigin:`100% 100%`}},[`&[data-popper-placement*="left"] .${rw.arrow}`]:{height:`1em`,width:`0.71em`,insetInlineEnd:0,marginInlineEnd:`-0.71em`,"&::before":{transformOrigin:`0 0`}}}}]}))),sw=q(`div`,{name:`MuiTooltip`,slot:`Tooltip`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${X(n.placement.split(`-`)[0])}`]]}})(J(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:`4px 8px`,fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:`break-word`,fontWeight:e.typography.fontWeightMedium,[`.${rw.popper}[data-popper-placement*="left"] &`]:{transformOrigin:`right center`,marginInlineEnd:`14px`},[`.${rw.popper}[data-popper-placement*="right"] &`]:{transformOrigin:`left center`,marginInlineStart:`14px`},[`.${rw.popper}[data-popper-placement*="top"] &`]:{transformOrigin:`center bottom`,marginBottom:`14px`},[`.${rw.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:`center top`,marginTop:`14px`},variants:[{props:({ownerState:e})=>e.arrow,style:{position:`relative`,marginBlock:0}},{props:({ownerState:e})=>e.touch,style:{padding:`8px 16px`,fontSize:e.typography.pxToRem(14),lineHeight:`${iw(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:e})=>e.touch,style:{[`.${rw.popper}[data-popper-placement*="left"] &`]:{marginInlineEnd:`24px`},[`.${rw.popper}[data-popper-placement*="right"] &`]:{marginInlineStart:`24px`},[`.${rw.popper}[data-popper-placement*="top"] &`]:{marginBottom:`24px`},[`.${rw.popper}[data-popper-placement*="bottom"] &`]:{marginTop:`24px`}}}]}))),cw=q(`span`,{name:`MuiTooltip`,slot:`Arrow`})(J(({theme:e})=>({overflow:`hidden`,position:`absolute`,width:`1em`,height:`0.71em`,boxSizing:`border-box`,color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:`""`,margin:`auto`,display:`block`,width:`100%`,height:`100%`,backgroundColor:`currentColor`,transform:`rotate(45deg)`}}))),lw=!1,uw=new Nf,dw={x:0,y:0};function fw(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}var pw=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTooltip`}),{arrow:r=!1,children:i,classes:a,describeChild:o=!1,disableFocusListener:s=!1,disableHoverListener:c=!1,disableInteractive:l=!1,disableTouchListener:u=!1,enterDelay:d=100,enterNextDelay:f=0,enterTouchDelay:p=700,followCursor:m=!1,id:h,leaveDelay:g=0,leaveTouchDelay:_=1500,onClose:v,onOpen:y,open:b,placement:x=`bottom`,slotProps:S={},slots:C={},title:w,...T}=n,E=z.isValidElement(i)?i:(0,H.jsx)(`span`,{children:i}),D=eu(),[O,k]=z.useState(),[ee,A]=z.useState(null),j=z.useRef(!1),M=z.useRef(!1),te=l||m,ne=Pf(),N=Pf(),P=Pf(),re=Pf(),[F,I]=Td({controlled:b,default:!1,name:`Tooltip`,state:`open`}),ie=F,{current:L}=z.useRef(b!==void 0),R=Cd(h),ae=z.useRef(),oe=Ed(()=>{ae.current!==void 0&&(document.body.style.WebkitUserSelect=ae.current,ae.current=void 0),re.clear()});z.useEffect(()=>oe,[oe]);let se=e=>{uw.clear(),lw=!0,I(!0),y&&!ie&&y(e)},ce=Ed(e=>{M.current=!1,uw.start(800+g,()=>{lw=!1}),I(!1),v&&ie&&v(e),ne.start(D.transitions.duration.shortest,()=>{j.current=!1})}),B=e=>{j.current&&e.type!==`touchstart`||(O&&O.removeAttribute(`title`),N.clear(),P.clear(),d||lw&&f?N.start(lw?f:d,()=>{se(e)}):se(e))},le=e=>{if(O?.disabled&&!L){if(ie&&!M.current)return;M.current=!0}else M.current=!1;B(e)},V=e=>{(!O?.disabled||L||M.current)&&B(e)},ue=e=>{N.clear(),P.start(g,()=>{ce(e)})},[,de]=z.useState(!1),fe=e=>{let t=e?.target??O;if(!t||t.disabled||!wf(t)){de(!1);let n=e??new Event(`blur`);!e&&t&&(Object.defineProperty(n,"target",{value:t}),Object.defineProperty(n,"currentTarget",{value:t})),ue(n)}},pe=e=>{if(O||k(e.currentTarget),M.current=!1,wf(e.target)){let t=e=>{e.target.disabled&&fe(e),e.target.removeEventListener(`blur`,t)};e.target.addEventListener(`blur`,t),de(!0),B(e)}},me=e=>{j.current=!0;let t=E.props;t.onTouchStart&&t.onTouchStart(e)},he=e=>{me(e),P.clear(),ne.clear(),oe(),ae.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect=`none`,re.start(p,()=>{document.body.style.WebkitUserSelect=ae.current,le(e)})},ge=e=>{E.props.onTouchEnd&&E.props.onTouchEnd(e),oe(),P.start(_,()=>{ce(e)})};z.useEffect(()=>{if(!ie)return;function e(e){e.key===`Escape`&&ce(e)}return document.addEventListener(`keydown`,e),()=>{document.removeEventListener(`keydown`,e)}},[ce,ie]);let _e=au(mg(E),k,t);!w&&w!==0&&(ie=!1);let ve=z.useRef(),ye=e=>{let t=E.props;t.onMouseMove&&t.onMouseMove(e),dw={x:e.clientX,y:e.clientY},ve.current&&ve.current.update()},be={},xe=typeof w==`string`;o?(be.title=!ie&&xe&&!c?w:null,be[`aria-describedby`]=ie?R:null):(be[`aria-label`]=xe?w:null,be[`aria-labelledby`]=ie&&!xe?R:null);let Se={...be,...T,...E.props,className:U(T.className,E.props.className),onTouchStart:me,ref:_e,...m?{onMouseMove:ye}:{}},Ce={};u||(Se.onTouchStart=he,Se.onTouchEnd=ge),c||(Se.onMouseOver=fw(le,Se.onMouseOver),Se.onMouseLeave=fw(ue,Se.onMouseLeave),te||(Ce.onMouseOver=V,Ce.onMouseLeave=ue)),s||(Se.onFocus=fw(pe,Se.onFocus),Se.onBlur=fw(fe,Se.onBlur),te||(Ce.onFocus=pe,Ce.onBlur=fe));let we={...n,arrow:r,disableInteractive:te,open:ie,placement:x,touch:j.current},Te=typeof S.popper==`function`?S.popper(we):S.popper,Ee=z.useMemo(()=>{let e=[{name:`arrow`,enabled:!!ee,options:{element:ee,padding:4}}];return Te?.popperOptions?.modifiers&&(e=e.concat(Te.popperOptions.modifiers)),{...Te?.popperOptions,modifiers:e}},[ee,Te?.popperOptions]),De=aw(we),Oe={slots:C,slotProps:{arrow:S.arrow,popper:Te,tooltip:S.tooltip,transition:S.transition}},[ke,Ae]=Q(`popper`,{elementType:ow,externalForwardedProps:Oe,ownerState:we,className:De.popper}),[je,Me]=Q(`transition`,{elementType:eb,externalForwardedProps:Oe,ownerState:we}),[Ne,Pe]=Q(`tooltip`,{elementType:sw,className:De.tooltip,externalForwardedProps:Oe,ownerState:we}),[Fe,Ie]=Q(`arrow`,{elementType:cw,className:De.arrow,externalForwardedProps:Oe,ownerState:we,ref:A});return(0,H.jsxs)(z.Fragment,{children:[z.cloneElement(E,Se),(0,H.jsx)(ke,{as:Tg,placement:x,anchorEl:m?{getBoundingClientRect:()=>({top:dw.y,left:dw.x,right:dw.x,bottom:dw.y,width:0,height:0})}:O,popperRef:ve,open:O?ie:!1,id:R,transition:!0,...Ce,...Ae,popperOptions:Ee,children:({TransitionProps:e})=>(0,H.jsx)(je,{timeout:D.transitions.duration.shorter,...e,...Me,children:(0,H.jsxs)(Ne,{...Pe,children:[w,r?(0,H.jsx)(Fe,{...Ie}):null]})})})]})}),mw=fc({createStyledComponent:q(`div`,{name:`MuiStack`,slot:`Root`}),useThemeProps:e=>Y({props:e,name:`MuiStack`})}),hw=z.createContext({});function gw(){return z.useContext(hw)}var _w=z.createContext({});function vw(e){return W(`MuiStep`,e)}co(`MuiStep`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`completed`]);var yw=e=>{let{classes:t,orientation:n,alternativeLabel:r,completed:i}=e;return G({root:[`root`,n,r&&`alternativeLabel`,i&&`completed`]},vw,t)},bw=q(`li`,{name:`MuiStep`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({variants:[{props:{orientation:`horizontal`,alternativeLabel:!1,hasConnector:!1},style:{paddingLeft:8}},{props:{orientation:`horizontal`,alternativeLabel:!1,last:!0},style:{paddingRight:8}},{props:{orientation:`horizontal`,alternativeLabel:!1,hasConnector:!0},style:{flex:`1 1 auto`,display:`grid`,gridTemplateColumns:`1fr auto`,alignItems:`center`,gap:8}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{display:`flex`,flexDirection:`column`}},{props:{orientation:`horizontal`,alternativeLabel:!0},style:{flex:1,position:`relative`}}]}),xw=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiStep`}),{active:r,children:i,className:a,component:o=`li`,completed:s,disabled:c,expanded:l=!1,index:u,last:d,...f}=n,{activeStep:p,connector:m,alternativeLabel:h,orientation:g,nonLinear:_,isTabList:v}=gw(),[y=!1,b=!1,x=!1]=[r,s,c];p===u?y=r===void 0||r:!_&&p>u?b=s===void 0||s:!_&&p<u&&(x=c===void 0||c);let S=z.useMemo(()=>({index:u,last:d,expanded:l,icon:u+1,active:y,completed:b,disabled:x}),[u,d,l,y,b,x]),C=!!m&&u!==0,w={...n,active:y,orientation:g,alternativeLabel:h,completed:b,disabled:x,expanded:l,component:o,hasConnector:C},T=yw(w);return(0,H.jsx)(_w.Provider,{value:S,children:(0,H.jsxs)(bw,{as:o,className:U(T.root,a),ref:t,ownerState:w,role:v?`presentation`:void 0,...f,children:[C?m:null,i]})})}),Sw=Z((0,H.jsx)(`path`,{d:`M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z`}),`CheckCircle`),Cw=Z((0,H.jsx)(`path`,{d:`M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z`}),`Warning`);function ww(e){return W(`MuiStepIcon`,e)}var Tw=co(`MuiStepIcon`,[`root`,`active`,`completed`,`error`,`text`]),Ew,Dw=e=>{let{classes:t,active:n,completed:r,error:i}=e;return G({root:[`root`,n&&`active`,r&&`completed`,i&&`error`],text:[`text`]},ww,t)},Ow=q(vd,{name:`MuiStepIcon`,slot:`Root`})(J(({theme:e})=>({display:`block`,...Tu(e,`color`,{duration:e.transitions.duration.shortest}),color:(e.vars||e).palette.text.disabled,[`&.${Tw.completed}, &.${Tw.active}`]:{color:(e.vars||e).palette.primary.main},[`&.${Tw.error}`]:{color:(e.vars||e).palette.error.main}}))),kw=q(`text`,{name:`MuiStepIcon`,slot:`Text`})(J(({theme:e})=>({fill:(e.vars||e).palette.primary.contrastText,fontSize:e.typography.caption.fontSize,fontFamily:e.typography.fontFamily}))),Aw=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiStepIcon`}),{active:r=!1,className:i,completed:a=!1,error:o=!1,icon:s,...c}=n,l={...n,active:r,completed:a,error:o},u=Dw(l);if(typeof s==`number`||typeof s==`string`){let e=U(i,u.root);return o?(0,H.jsx)(Ow,{as:Cw,className:e,ref:t,ownerState:l,...c}):a?(0,H.jsx)(Ow,{as:Sw,className:e,ref:t,ownerState:l,...c}):(0,H.jsxs)(Ow,{className:e,ref:t,ownerState:l,...c,children:[Ew||=(0,H.jsx)(`circle`,{cx:`12`,cy:`12`,r:`12`}),(0,H.jsx)(kw,{className:u.text,x:`12`,y:`12`,textAnchor:`middle`,dominantBaseline:`central`,ownerState:l,children:s})]})}return s});function jw(e){return W(`MuiStepLabel`,e)}var Mw=co(`MuiStepLabel`,[`root`,`horizontal`,`vertical`,`label`,`active`,`completed`,`error`,`disabled`,`iconContainer`,`alternativeLabel`,`labelContainer`]),Nw=e=>{let{classes:t,orientation:n,active:r,completed:i,error:a,disabled:o,alternativeLabel:s}=e;return G({root:[`root`,n,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],label:[`label`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],iconContainer:[`iconContainer`,r&&`active`,i&&`completed`,a&&`error`,o&&`disabled`,s&&`alternativeLabel`],labelContainer:[`labelContainer`,s&&`alternativeLabel`]},jw,t)},Pw=q(`span`,{name:`MuiStepLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation]]}})({display:`flex`,alignItems:`center`,[`&.${Mw.disabled}`]:{cursor:`default`},variants:[{props:{orientation:`vertical`},style:{textAlign:`left`,padding:`8px 0`}},{props:{alternativeLabel:!0},style:{flexDirection:`column`}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{flexDirection:`row-reverse`}}]}),Fw=q(`span`,{name:`MuiStepLabel`,slot:`Label`})(J(({theme:e})=>({...e.typography.body2,display:`block`,...Tu(e,`color`,{duration:e.transitions.duration.shortest}),[`&.${Mw.active}, &.${Mw.completed}`]:{color:(e.vars||e).palette.text.primary,fontWeight:500},[`&.${Mw.alternativeLabel}`]:{marginTop:16},[`&.${Mw.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{[`&.${Mw.alternativeLabel}`]:{marginTop:0}}}]}))),Iw=q(`span`,{name:`MuiStepLabel`,slot:`IconContainer`})({flexShrink:0,display:`flex`,paddingRight:8,[`&.${Mw.alternativeLabel}`]:{paddingRight:0},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{paddingRight:0,paddingLeft:8}}]}),Lw=q(`span`,{name:`MuiStepLabel`,slot:`LabelContainer`})(J(({theme:e})=>({width:`100%`,color:(e.vars||e).palette.text.secondary,[`&.${Mw.alternativeLabel}`]:{textAlign:`center`},variants:[{props:{orientation:`vertical`,alternativeLabel:!0},style:{[`&.${Mw.alternativeLabel}`]:{textAlign:`right`}}}]}))),Rw=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiStepLabel`}),{children:r,className:i,error:a=!1,icon:o,optional:s,slots:c={},slotProps:l={},...u}=n,{alternativeLabel:d,orientation:f}=gw(),{active:p,disabled:m,completed:h,icon:g}=z.useContext(_w),_=o||g,v={...n,active:p,alternativeLabel:d,completed:h,disabled:m,error:a,orientation:f},y=Nw(v),b={slots:c,slotProps:l},[x,S]=Q(`root`,{elementType:Pw,externalForwardedProps:{...b,...u},ownerState:v,ref:t,className:U(y.root,i)}),[C,w]=Q(`label`,{elementType:Fw,externalForwardedProps:b,ownerState:v}),[T,E]=Q(`stepIcon`,{elementType:_?Aw:void 0,externalForwardedProps:b,ownerState:v});return(0,H.jsxs)(x,{...S,children:[_||T?(0,H.jsx)(Iw,{className:y.iconContainer,ownerState:v,children:(0,H.jsx)(T,{completed:h,active:p,error:a,icon:_,...E})}):null,(0,H.jsxs)(Lw,{className:y.labelContainer,ownerState:v,children:[r?(0,H.jsx)(C,{...w,className:U(y.label,w?.className),children:r}):null,s]})]})});Rw.muiName=`StepLabel`;function zw(e){return W(`MuiStepButton`,e)}var Bw=co(`MuiStepButton`,[`root`,`horizontal`,`vertical`,`touchRipple`]),Vw=e=>{let{classes:t,orientation:n}=e;return G({root:[`root`,n],touchRipple:[`touchRipple`]},zw,t)},Hw=q(ep,{name:`MuiStepButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${Bw.touchRipple}`]:t.touchRipple},t.root,t[n.orientation]]}})(J(({theme:e})=>({width:`100%`,padding:`24px 16px`,margin:`-24px -16px`,boxSizing:`content-box`,[`& .${Bw.touchRipple}`]:{color:`rgba(0, 0, 0, 0.3)`,...e.applyStyles(`dark`,{color:`rgba(255, 255, 255, 0.3)`})},...e.focusVisible&&{[`&.${Zf.focusVisible} .${Mw.root}`]:{borderRadius:(e.vars||e).shape.borderRadius,...e.focusVisible}},variants:[{props:{orientation:`vertical`},style:{justifyContent:`flex-start`,padding:`8px`,margin:`-8px`}}]}))),Uw=z.forwardRef(function(e,t){let{children:n,disabled:r,index:i,...a}=e,o=xx({id:i,ref:t,disabled:r});return(0,H.jsx)(Hw,{disabled:r,...o,...a,children:n})}),Ww=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiStepButton`}),{children:r,className:i,icon:a,optional:o,...s}=n,{disabled:c,active:l,index:u}=z.useContext(_w),{orientation:d,totalSteps:f,isTabList:p}=gw(),m={...n,orientation:d},h=Vw(m),g={icon:a,optional:o},_=bd(r,[`StepLabel`])?z.cloneElement(r,g):(0,H.jsx)(Rw,{...g,children:r}),v={internalNativeButton:!0,focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:U(h.root,i),ownerState:m,"aria-selected":l,"aria-posinset":u+1,"aria-setsize":f,role:`tab`,internalDisabledThemeFocusVisible:!0,...s};return p?(0,H.jsx)(Uw,{...v,index:u,ref:t,children:_}):(0,H.jsx)(Hw,{ref:t,tabIndex:l?0:-1,...v,children:_})});function Gw(e){return W(`MuiStepConnector`,e)}co(`MuiStepConnector`,[`root`,`horizontal`,`vertical`,`alternativeLabel`,`active`,`completed`,`disabled`,`line`]);var Kw=e=>{let{classes:t,orientation:n,alternativeLabel:r,active:i,completed:a,disabled:o}=e;return G({root:[`root`,n,r&&`alternativeLabel`,i&&`active`,a&&`completed`,o&&`disabled`],line:[`line`]},Gw,t)},qw=q(`div`,{name:`MuiStepConnector`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.completed&&t.completed]}})({flex:`1 1 auto`,variants:[{props:{orientation:`vertical`},style:{marginLeft:12}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{marginLeft:`auto`,marginRight:12}},{props:{orientation:`horizontal`,alternativeLabel:!0},style:{position:`absolute`,top:12,left:`calc(-50% + 20px)`,right:`calc(50% + 20px)`}}]}),Jw=q(`span`,{name:`MuiStepConnector`,slot:`Line`})(J(({theme:e})=>{let t=e.palette.mode===`light`?e.palette.grey[400]:e.palette.grey[600];return{display:`block`,borderColor:e.vars?e.vars.palette.StepConnector.border:t,variants:[{props:{orientation:`horizontal`},style:{borderTopStyle:`solid`,borderTopWidth:1}},{props:{orientation:`vertical`},style:{borderLeftStyle:`solid`,borderLeftWidth:1,minHeight:24}}]}})),Yw=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiStepConnector`}),{className:r,...i}=n,{alternativeLabel:a,orientation:o=`horizontal`}=gw(),{active:s,disabled:c,completed:l}=z.useContext(_w),u={...n,alternativeLabel:a,orientation:o,active:s,completed:l,disabled:c},d=Kw(u);return(0,H.jsx)(qw,{className:U(d.root,r),ref:t,ownerState:u,...i,children:(0,H.jsx)(Jw,{className:d.line,ownerState:u})})});function Xw(e){return W(`MuiStepper`,e)}co(`MuiStepper`,[`root`,`horizontal`,`vertical`,`nonLinear`,`alternativeLabel`]);var Zw=e=>{let{orientation:t,nonLinear:n,alternativeLabel:r,classes:i}=e;return G({root:[`root`,t,n&&`nonLinear`,r&&`alternativeLabel`]},Xw,i)},Qw=q(`ol`,{name:`MuiStepper`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.orientation],n.alternativeLabel&&t.alternativeLabel,n.nonLinear&&t.nonLinear]}})({display:`flex`,listStyle:`none`,margin:0,padding:0,variants:[{props:{orientation:`horizontal`},style:{flexDirection:`row`,alignItems:`center`}},{props:{orientation:`horizontal`,alternativeLabel:!1},style:{gap:8}},{props:{orientation:`vertical`},style:{flexDirection:`column`}},{props:{alternativeLabel:!0},style:{alignItems:`flex-start`}},{props:{orientation:`vertical`,alternativeLabel:!0},style:{alignItems:`flex-end`}}]}),$w=(0,H.jsx)(Yw,{});function eT(e){let{children:t,className:n,component:r,forwardedRef:i,isRtl:a,orientation:o,ownerState:s,...c}=e,l=bx({orientation:o,isRtl:a}),u=l.getContainerProps(i,c.onFocus,c.onKeyDown);return(0,H.jsx)(hx.Provider,{value:l,children:(0,H.jsx)(Qw,{as:r,ownerState:s,className:n,role:`tablist`,"aria-orientation":o,...c,...u,children:t})})}var tT=z.forwardRef(function(e,t){let n=ts(),r=Y({props:e,name:`MuiStepper`}),{activeStep:i=0,alternativeLabel:a=!1,children:o,className:s,component:c=`ol`,connector:l=$w,nonLinear:u=!1,orientation:d=`horizontal`,...f}=r,p={...r,nonLinear:u,alternativeLabel:a,orientation:d,component:c},m=Zw(p),h=z.Children.toArray(o).filter(Boolean),g=h.length,_=h.some(e=>{if(!z.isValidElement(e))return!1;if(e.type===Ww)return!0;let t=e.props.children;return t?z.Children.toArray(t).some(e=>z.isValidElement(e)&&e.type===Ww):!1}),v=h.map((e,t)=>z.cloneElement(e,{index:t,last:t+1===g,...e.props})),y=z.useMemo(()=>({activeStep:i,alternativeLabel:a,connector:l,nonLinear:u,orientation:d,totalSteps:g,isTabList:_}),[i,a,l,u,d,g,_]);return _?(0,H.jsx)(hw.Provider,{value:y,children:(0,H.jsx)(eT,{forwardedRef:t,isRtl:n,className:U(m.root,s),component:c,orientation:d,ownerState:p,...f,children:v})}):(0,H.jsx)(hw.Provider,{value:y,children:(0,H.jsx)(Qw,{as:c,ownerState:p,className:U(m.root,s),ref:t,...f,children:v})})});function nT(e){return W(`MuiTab`,e)}var rT=co(`MuiTab`,[`root`,`labelIcon`,`textColorInherit`,`textColorPrimary`,`textColorSecondary`,`selected`,`disabled`,`fullWidth`,`wrapped`,`icon`]),iT=e=>{let{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:o,selected:s,disabled:c}=e;return G({root:[`root`,a&&o&&`labelIcon`,`textColor${X(n)}`,r&&`fullWidth`,i&&`wrapped`,s&&`selected`,c&&`disabled`],icon:[`icon`]},nT,t)},aT=q(ep,{name:`MuiTab`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${X(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${rT.icon}`]:t.icon}]}})(J(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:`relative`,minHeight:48,flexShrink:0,padding:`12px 16px`,overflow:`hidden`,whiteSpace:`normal`,textAlign:`center`,lineHeight:1.25,...e.focusVisible&&Pc(3),variants:[{props:({ownerState:e})=>e.label&&(e.iconPosition===`top`||e.iconPosition===`bottom`),style:{flexDirection:`column`}},{props:({ownerState:e})=>e.label&&e.iconPosition!==`top`&&e.iconPosition!==`bottom`,style:{flexDirection:`row`}},{props:({ownerState:e})=>e.icon&&e.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`top`,style:{[`& > .${rT.icon}`]:{marginBottom:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`bottom`,style:{[`& > .${rT.icon}`]:{marginTop:6}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`start`,style:{[`& > .${rT.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:e,iconPosition:t})=>e.icon&&e.label&&t===`end`,style:{[`& > .${rT.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:`inherit`},style:{color:`inherit`,opacity:.6,[`&.${rT.selected}`]:{opacity:1},...e.focusVisible&&{[`&.${Zf.focusVisible}`]:{opacity:1}},[`&.${rT.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:`primary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${rT.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${rT.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:`secondary`},style:{color:(e.vars||e).palette.text.secondary,[`&.${rT.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${rT.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:e})=>e.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:`none`}},{props:({ownerState:e})=>e.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),oT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTab`}),{className:r,disabled:i=!1,disableFocusRipple:a=!1,fullWidth:o,icon:s,iconPosition:c=`top`,indicator:l,label:u,onChange:d,onClick:f,onFocus:p,selected:m,selectionFollowsFocus:h,textColor:g=`inherit`,value:_,wrapped:v=!1,...y}=n,b=gx(),x=xx({id:_,ref:t,disabled:i,selected:m}),S=b.getItemMap().size===0&&m?0:x.tabIndex,C={...n,disabled:i,disableFocusRipple:a,selected:m,icon:!!s,iconPosition:c,label:!!u,fullWidth:o,textColor:g,wrapped:v},w=iT(C),T=s&&u&&z.isValidElement(s)?z.cloneElement(s,{className:U(w.icon,s.props.className)}):s;return(0,H.jsxs)(aT,{internalNativeButton:!0,focusRipple:!a,className:U(w.root,r),ref:x.ref,role:`tab`,"aria-selected":m,disabled:i,onClick:e=>{!m&&d&&d(e,_),f&&f(e)},onFocus:e=>{h&&!m&&d&&d(e,_),p&&p(e)},tabIndex:S,ownerState:C,...y,children:[c===`top`||c===`start`?(0,H.jsxs)(z.Fragment,{children:[T,u]}):(0,H.jsxs)(z.Fragment,{children:[u,T]}),l]})}),sT=z.createContext();function cT(e){return W(`MuiTable`,e)}co(`MuiTable`,[`root`,`stickyHeader`]);var lT=e=>{let{classes:t,stickyHeader:n}=e;return G({root:[`root`,n&&`stickyHeader`]},cT,t)},uT=q(`table`,{name:`MuiTable`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(J(({theme:e})=>({display:`table`,width:`100%`,borderCollapse:`collapse`,borderSpacing:0,"& caption":{...e.typography.body2,padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:`left`,captionSide:`bottom`},variants:[{props:({ownerState:e})=>e.stickyHeader,style:{borderCollapse:`separate`}}]}))),dT=`table`,fT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTable`}),{className:r,component:i=dT,padding:a=`normal`,size:o=`medium`,stickyHeader:s=!1,...c}=n,l={...n,component:i,padding:a,size:o,stickyHeader:s},u=lT(l),d=z.useMemo(()=>({padding:a,size:o,stickyHeader:s}),[a,o,s]);return(0,H.jsx)(sT.Provider,{value:d,children:(0,H.jsx)(uT,{as:i,role:i===dT?null:`table`,ref:t,className:U(u.root,r),ownerState:l,...c})})}),pT=z.createContext();function mT(e){return W(`MuiTableBody`,e)}co(`MuiTableBody`,[`root`]);var hT=e=>{let{classes:t}=e;return G({root:[`root`]},mT,t)},gT=q(`tbody`,{name:`MuiTableBody`,slot:`Root`})({display:`table-row-group`}),_T={variant:`body`},vT=`tbody`,yT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTableBody`}),{className:r,component:i=vT,...a}=n,o={...n,component:i},s=hT(o);return(0,H.jsx)(pT.Provider,{value:_T,children:(0,H.jsx)(gT,{className:U(s.root,r),as:i,ref:t,role:i===vT?null:`rowgroup`,ownerState:o,...a})})});function bT(e){return W(`MuiTableCell`,e)}var xT=co(`MuiTableCell`,[`root`,`head`,`body`,`footer`,`sizeSmall`,`sizeMedium`,`paddingCheckbox`,`paddingNone`,`alignLeft`,`alignCenter`,`alignRight`,`alignJustify`,`stickyHeader`]),ST=e=>{let{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:o}=e;return G({root:[`root`,n,o&&`stickyHeader`,r!==`inherit`&&`align${X(r)}`,i!==`normal`&&`padding${X(i)}`,`size${X(a)}`]},bT,t)},CT=q(`td`,{name:`MuiTableCell`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`size${X(n.size)}`],n.padding!==`normal`&&t[`padding${X(n.padding)}`],n.align!==`inherit`&&t[`align${X(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(J(({theme:e})=>({...e.typography.body2,display:`table-cell`,verticalAlign:`inherit`,borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid
|
|
222
|
+
${e.palette.mode===`light`?e.lighten(e.alpha(e.palette.divider,1),.88):e.darken(e.alpha(e.palette.divider,1),.68)}`,textAlign:`left`,padding:16,variants:[{props:{variant:`head`},style:{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium}},{props:{variant:`body`},style:{color:(e.vars||e).palette.text.primary}},{props:{variant:`footer`},style:{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)}},{props:{size:`small`},style:{padding:`6px 16px`,[`&.${xT.paddingCheckbox}`]:{width:24,padding:`0 12px 0 16px`,"& > *":{padding:0}}}},{props:{padding:`checkbox`},style:{width:48,padding:`0 0 0 4px`}},{props:{padding:`none`},style:{padding:0}},{props:{align:`left`},style:{textAlign:`left`}},{props:{align:`center`},style:{textAlign:`center`}},{props:{align:`right`},style:{textAlign:`right`,flexDirection:`row-reverse`}},{props:{align:`justify`},style:{textAlign:`justify`}},{props:({ownerState:e})=>e.stickyHeader,style:{position:`sticky`,top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default}}]}))),wT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTableCell`}),{align:r=`inherit`,className:i,component:a,padding:o,scope:s,size:c,sortDirection:l,variant:u,...d}=n,f=z.useContext(sT),p=z.useContext(pT),m=p&&p.variant===`head`,h;h=a||(m?`th`:`td`);let g=s;h===`td`?g=void 0:!g&&m&&(g=`col`);let _=u||p&&p.variant,v={...n,align:r,component:h,padding:o||(f&&f.padding?f.padding:`normal`),size:c||(f&&f.size?f.size:`medium`),sortDirection:l,stickyHeader:_===`head`&&f&&f.stickyHeader,variant:_},y=ST(v),b=null;return l&&(b=l===`asc`?`ascending`:`descending`),(0,H.jsx)(CT,{as:h,ref:t,className:U(y.root,i),"aria-sort":b,scope:g,ownerState:v,...d})});function TT(e){return W(`MuiTableFooter`,e)}co(`MuiTableFooter`,[`root`]);var ET=e=>{let{classes:t}=e;return G({root:[`root`]},TT,t)},DT=q(`tfoot`,{name:`MuiTableFooter`,slot:`Root`})({display:`table-footer-group`}),OT={variant:`footer`},kT=`tfoot`,AT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTableFooter`}),{className:r,component:i=kT,...a}=n,o={...n,component:i},s=ET(o);return(0,H.jsx)(pT.Provider,{value:OT,children:(0,H.jsx)(DT,{as:i,className:U(s.root,r),ref:t,role:i===kT?null:`rowgroup`,ownerState:o,...a})})});function jT(e){return W(`MuiTableHead`,e)}co(`MuiTableHead`,[`root`]);var MT=e=>{let{classes:t}=e;return G({root:[`root`]},jT,t)},NT=q(`thead`,{name:`MuiTableHead`,slot:`Root`})({display:`table-header-group`}),PT={variant:`head`},FT=`thead`,IT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTableHead`}),{className:r,component:i=FT,...a}=n,o={...n,component:i},s=MT(o);return(0,H.jsx)(pT.Provider,{value:PT,children:(0,H.jsx)(NT,{as:i,className:U(s.root,r),ref:t,role:i===FT?null:`rowgroup`,ownerState:o,...a})})});function LT(e){return W(`MuiToolbar`,e)}co(`MuiToolbar`,[`root`,`gutters`,`regular`,`dense`]);var RT=e=>{let{classes:t,disableGutters:n,variant:r}=e;return G({root:[`root`,!n&&`gutters`,r]},LT,t)},zT=q(`div`,{name:`MuiToolbar`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(J(({theme:e})=>({position:`relative`,display:`flex`,alignItems:`center`,variants:[{props:({ownerState:e})=>!e.disableGutters,style:{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up(`sm`)]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}}},{props:{variant:`dense`},style:{minHeight:48}},{props:{variant:`regular`},style:e.mixins.toolbar}]}))),BT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiToolbar`}),{className:r,component:i=`div`,disableGutters:a=!1,variant:o=`regular`,...s}=n,c={...n,component:i,disableGutters:a,variant:o},l=RT(c);return(0,H.jsx)(zT,{as:i,className:U(l.root,r),ref:t,ownerState:c,...s})}),VT=Z((0,H.jsx)(`path`,{d:`M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z`}),`KeyboardArrowLeft`),HT=Z((0,H.jsx)(`path`,{d:`M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z`}),`KeyboardArrowRight`);function UT(e){return W(`MuiTableRow`,e)}var WT=co(`MuiTableRow`,[`root`,`selected`,`hover`,`head`,`footer`]),GT=e=>{let{classes:t,selected:n,hover:r,head:i,footer:a}=e;return G({root:[`root`,n&&`selected`,r&&`hover`,i&&`head`,a&&`footer`]},UT,t)},KT=q(`tr`,{name:`MuiTableRow`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(J(({theme:e})=>({color:`inherit`,display:`table-row`,verticalAlign:`middle`,outline:0,[`&.${WT.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${WT.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)}}}))),qT=`tr`,JT=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTableRow`}),{className:r,component:i=qT,hover:a=!1,selected:o=!1,...s}=n,c=z.useContext(pT),l={...n,component:i,hover:a,selected:o,head:c&&c.variant===`head`,footer:c&&c.variant===`footer`},u=GT(l);return(0,H.jsx)(KT,{as:i,ref:t,className:U(u.root,r),role:i===qT?null:`row`,ownerState:l,...s})}),YT=Z((0,H.jsx)(`path`,{d:`M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z`}),`ArrowDownward`);function XT(e){return W(`MuiTableSortLabel`,e)}var ZT=co(`MuiTableSortLabel`,[`root`,`active`,`icon`,`directionDesc`,`directionAsc`]),QT=e=>{let{classes:t,direction:n,active:r}=e;return G({root:[`root`,r&&`active`,`direction${X(n)}`],icon:[`icon`]},XT,t)},$T=q(ep,{name:`MuiTableSortLabel`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.active&&t.active]}})(J(({theme:e})=>({cursor:`pointer`,display:`inline-flex`,justifyContent:`flex-start`,flexDirection:`inherit`,alignItems:`center`,"&:focus":{color:(e.vars||e).palette.text.secondary},"&:hover":{color:(e.vars||e).palette.text.secondary,[`& .${ZT.icon}`]:{opacity:.5}},[`&.${ZT.active}`]:{color:(e.vars||e).palette.text.primary,[`& .${ZT.icon}`]:{opacity:1,color:(e.vars||e).palette.text.secondary}}}))),eE=q(`span`,{name:`MuiTableSortLabel`,slot:`Icon`})(J(({theme:e})=>({fontSize:18,marginRight:4,marginLeft:4,opacity:0,...Tu(e,[`opacity`,`transform`],{duration:e.transitions.duration.shorter}),userSelect:`none`,variants:[{props:{direction:`desc`},style:{transform:`rotate(0deg)`}},{props:{direction:`asc`},style:{transform:`rotate(180deg)`}}]}))),tE=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTableSortLabel`}),{active:r=!1,children:i,className:a,direction:o=`asc`,hideSortIcon:s=!1,IconComponent:c=YT,slots:l={},slotProps:u={},...d}=n,f={...n,active:r,direction:o,hideSortIcon:s,IconComponent:c},p=QT(f),m={slots:l,slotProps:u},[h,g]=Q(`root`,{elementType:$T,externalForwardedProps:m,ownerState:f,className:U(p.root,a),ref:t,additionalProps:{internalNativeButton:!1}}),[_,v]=Q(`icon`,{elementType:eE,externalForwardedProps:m,ownerState:f,className:p.icon});return(0,H.jsxs)(h,{disableRipple:!0,component:`span`,...g,...d,children:[i,s&&!r?null:(0,H.jsx)(_,{as:c,...v})]})});function nE(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function rE(e,t,n,r={},i=()=>{}){let{ease:a=nE,duration:o=300}=r,s=null,c=t[e],l=!1,u=()=>{l=!0},d=r=>{if(l){i(Error(`Animation cancelled`));return}s===null&&(s=r);let u=Math.min(1,(r-s)/o);t[e]=a(u)*(n-c)+c,requestAnimationFrame(u>=1?()=>{i(null)}:d)};return c===n?(i(Error(`Element already at target position`)),u):(requestAnimationFrame(d),u)}var iE={width:99,height:99,position:`absolute`,top:-9999,overflow:`scroll`,pointerEvents:`none`};function aE(e){let{onChange:t,...n}=e,r=z.useRef(),i=z.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return ou(()=>{let e=yd(()=>{let e=r.current;a(),e!==r.current&&t(r.current)}),n=xd(i.current);return n.addEventListener(`resize`,e),()=>{e.clear(),n.removeEventListener(`resize`,e)}},[t]),z.useEffect(()=>{a(),t(r.current)},[t]),(0,H.jsx)(`div`,{style:iE,...n,ref:i})}function oE(e){return W(`MuiTabScrollButton`,e)}var sE=co(`MuiTabScrollButton`,[`root`,`vertical`,`horizontal`,`disabled`]),cE=e=>{let{classes:t,orientation:n,disabled:r}=e;return G({root:[`root`,n,r&&`disabled`]},oE,t)},lE=q(ep,{name:`MuiTabScrollButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${sE.disabled}`]:{opacity:0},variants:[{props:{orientation:`vertical`},style:{width:`100%`,height:40,"& svg":{transform:`var(--TabScrollButton-svgRotate)`}}}]}),uE=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTabScrollButton`}),{className:r,slots:i={},slotProps:a={},direction:o,orientation:s,disabled:c,...l}=n,{nativeButton:u,...d}=l,f=ts(),p={isRtl:f,...n},m=cE(p),h=i.StartScrollButtonIcon??VT,g=i.EndScrollButtonIcon??HT,_=pg({elementType:h,externalSlotProps:a.startScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p}),v=pg({elementType:g,externalSlotProps:a.endScrollButtonIcon,additionalProps:{fontSize:`small`},ownerState:p});return(0,H.jsx)(lE,{component:`div`,className:U(m.root,r),ref:t,role:null,ownerState:p,tabIndex:null,...d,style:{...d.style,...s===`vertical`&&{"--TabScrollButton-svgRotate":`rotate(${f?-90:90}deg)`}},children:o===`left`?(0,H.jsx)(h,{..._}):(0,H.jsx)(g,{...v})})});function dE(e){return W(`MuiTabs`,e)}var fE=co(`MuiTabs`,[`root`,`vertical`,`list`,`centered`,`scroller`,`fixed`,`scrollableX`,`scrollableY`,`hideScrollbar`,`scrollButtons`,`scrollButtonsHideMobile`,`indicator`]),pE=e=>{let{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:o,scrollButtonsHideMobile:s,classes:c}=e;return G({root:[`root`,t&&`vertical`],scroller:[`scroller`,n&&`fixed`,r&&`hideScrollbar`,i&&`scrollableX`,a&&`scrollableY`],list:[`list`,t&&`vertical`,o&&`centered`],indicator:[`indicator`],scrollButtons:[`scrollButtons`,s&&`scrollButtonsHideMobile`],scrollableX:[i&&`scrollableX`],hideScrollbar:[r&&`hideScrollbar`]},dE,c)},mE=q(`div`,{name:`MuiTabs`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[{[`& .${fE.scrollButtons}`]:t.scrollButtons},{[`& .${fE.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(J(({theme:e})=>({overflow:`hidden`,minHeight:48,WebkitOverflowScrolling:`touch`,display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.scrollButtonsHideMobile,style:{[`& .${fE.scrollButtons}`]:{[e.breakpoints.down(`sm`)]:{display:`none`}}}}]}))),hE=q(`div`,{name:`MuiTabs`,slot:`Scroller`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:`relative`,display:`inline-block`,flex:`1 1 auto`,whiteSpace:`nowrap`,variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:`hidden`,width:`100%`}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:`auto`,overflowY:`hidden`}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:`auto`,overflowX:`hidden`}}]}),gE=q(`div`,{name:`MuiTabs`,slot:`List`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.list,n.centered&&t.centered]}})({display:`flex`,variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:`column`}},{props:({ownerState:e})=>e.centered,style:{justifyContent:`center`}}]}),_E=q(`span`,{name:`MuiTabs`,slot:`Indicator`})(J(({theme:e})=>({position:`absolute`,height:2,bottom:0,width:`100%`,...Tu(e),variants:[{props:{indicatorColor:`primary`},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:`secondary`},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:e})=>e.vertical,style:{height:`100%`,width:2,right:0}}]}))),vE=q(aE)({overflowX:`auto`,overflowY:`hidden`,scrollbarWidth:`none`,"&::-webkit-scrollbar":{display:`none`}}),yE={};function bE(e,t){let n=parseFloat(e);return Number.isNaN(n)?0:e.endsWith(`%`)?n/100*t:n}var xE=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTabs`}),r=eu(),i=ts(),a=Jd(r.motion.reducedMotion,!1),{"aria-label":o,"aria-labelledby":s,action:c,centered:l=!1,children:u,className:d,component:f=`div`,allowScrollButtonsMobile:p=!1,indicatorColor:m=`primary`,onChange:h,orientation:g=`horizontal`,scrollButtons:_=`auto`,selectionFollowsFocus:v,slots:y={},slotProps:b={},textColor:x=`primary`,value:S,variant:C=`standard`,visibleScrollbar:w=!1,...T}=n,E=C===`scrollable`,D=g===`vertical`,O=D?`scrollTop`:`scrollLeft`,k=D?`top`:`left`,ee=D?`bottom`:`right`,A=D?`clientHeight`:`clientWidth`,j=D?`height`:`width`,M={...n,component:f,allowScrollButtonsMobile:p,indicatorColor:m,orientation:g,vertical:D,scrollButtons:_,textColor:x,variant:C,visibleScrollbar:w,fixed:!E,hideScrollbar:E&&!w,scrollableX:E&&!D,scrollableY:E&&D,centered:l&&!E,scrollButtonsHideMobile:!p},te=pE(M),ne=pg({elementType:y.startScrollButtonIcon,externalSlotProps:b.startScrollButtonIcon,ownerState:M}),N=pg({elementType:y.endScrollButtonIcon,externalSlotProps:b.endScrollButtonIcon,ownerState:M}),[P,re]=z.useState(yE),[F,I]=z.useState(!1),[ie,L]=z.useState(!1),[R,ae]=z.useState(!1),oe=S===!1?null:S,[se,ce]=z.useState(!1),[B,le]=z.useState({overflow:`hidden`,scrollbarWidth:0}),V=new Map,ue=z.useRef(null),de=z.useRef(null),fe=P!==yE,pe={slots:y,slotProps:b},me=()=>{let e=ue.current,t;if(e){let n=e.getBoundingClientRect();t={clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,scrollWidth:e.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}let n;if(e&&S!==!1){let e=de.current.children;if(e.length>0){let t=e[V.get(S)];n=t?t.getBoundingClientRect():null}}return{tabsMeta:t,tabMeta:n}},he=Ed(()=>{let{tabsMeta:e,tabMeta:t}=me(),n=0,r;D?(r=`top`,t&&e&&(n=t.top-e.top+e.scrollTop)):(r=i?`right`:`left`,t&&e&&(n=(i?-1:1)*(t[r]-e[r]+e.scrollLeft)));let a={[r]:n,[j]:t?t[j]:0};if(typeof P[r]!=`number`||typeof P[j]!=`number`)re(a);else{let e=Math.abs(P[r]-a[r]),t=Math.abs(P[j]-a[j]);(e>=1||t>=1)&&re(a)}}),ge=(e,{animation:t=!0}={})=>{t&&!a.shouldReduceMotion?rE(O,ue.current,e,{duration:r.transitions.duration.standard}):ue.current[O]=e},_e=e=>{let t=ue.current[O];t+=D?e:e*(i?-1:1),ge(t)},ve=()=>{let e=ue.current[A],t=0,n=Array.from(de.current.children);for(let r=0;r<n.length;r+=1){let i=n[r];if(t+i[A]>e){r===0&&(t=e);break}t+=i[A]}return t},ye=()=>{_e(-1*ve())},be=()=>{_e(ve())},[xe,{onChange:Se,...Ce}]=Q(`scrollbar`,{className:U(te.scrollableX,te.hideScrollbar),elementType:vE,shouldForwardComponentProp:!0,externalForwardedProps:pe,ownerState:M}),we=z.useCallback(e=>{Se?.(e),le({overflow:null,scrollbarWidth:e})},[Se]),[Te,Ee]=Q(`scrollButtons`,{className:te.scrollButtons,elementType:uE,externalForwardedProps:pe,ownerState:M,additionalProps:{orientation:g,slots:{StartScrollButtonIcon:y.startScrollButtonIcon,EndScrollButtonIcon:y.endScrollButtonIcon},slotProps:{startScrollButtonIcon:ne,endScrollButtonIcon:N}}}),De=()=>{let e={};e.scrollbarSizeListener=E?(0,H.jsx)(xe,{...Ce,onChange:we}):null;let t=E&&(_===`auto`&&(F||ie)||_===!0);return e.scrollButtonStart=t?(0,H.jsx)(Te,{direction:i?`right`:`left`,onClick:ye,disabled:!F,...Ee}):null,e.scrollButtonEnd=t?(0,H.jsx)(Te,{direction:i?`left`:`right`,onClick:be,disabled:!ie,...Ee}):null,e},Oe=Ed(e=>{let{tabsMeta:t,tabMeta:n}=me();if(!n||!t)return;let r=xd(ue.current).getComputedStyle(ue.current),i=D?t.clientHeight:t.clientWidth,a=bE(r[D?`scrollPaddingTop`:`scrollPaddingLeft`],i),o=bE(r[D?`scrollPaddingBottom`:`scrollPaddingRight`],i),s=t[k]+a,c=t[ee]-o,l=t[O]+(n[k]-s);n[k]<s?ge(l,{animation:e}):n[ee]>c&&(n[ee]-n[k]>c-s?ge(l,{animation:e}):ge(t[O]+(n[ee]-c),{animation:e}))}),ke=Ed(()=>{E&&_!==!1&&ae(!R)});z.useEffect(()=>{let e=yd(()=>{ue.current&&he()}),t,n=n=>{n.forEach(e=>{e.removedNodes.forEach(e=>{t?.unobserve(e)}),e.addedNodes.forEach(e=>{t?.observe(e)})}),e(),ke()},r=xd(ue.current);r.addEventListener(`resize`,e);let i;return typeof ResizeObserver<`u`&&(t=new ResizeObserver(e),Array.from(de.current.children).forEach(e=>{t.observe(e)})),typeof MutationObserver<`u`&&(i=new MutationObserver(n),i.observe(de.current,{childList:!0})),()=>{e.clear(),r.removeEventListener(`resize`,e),i?.disconnect(),t?.disconnect()}},[he,ke]),z.useEffect(()=>{let e=Array.from(de.current.children),t=e.length;if(typeof IntersectionObserver<`u`&&t>0&&E&&_!==!1){let n=e[0],r=e[t-1],i={root:ue.current,threshold:.99},a=new IntersectionObserver(e=>{I(!e[0].isIntersecting)},i);a.observe(n);let o=new IntersectionObserver(e=>{L(!e[0].isIntersecting)},i);return o.observe(r),()=>{a.disconnect(),o.disconnect()}}},[E,_,R,u?.length]),z.useEffect(()=>{he()}),z.useEffect(()=>{Oe(yE!==P)},[Oe,P]),z.useEffect(()=>{if(typeof ResizeObserver>`u`||!E||_!==`auto`)return;let e=new ResizeObserver(()=>{Oe(!1)});return e.observe(ue.current),()=>{e.disconnect()}},[E,_,Oe]),z.useImperativeHandle(c,()=>({updateIndicator:he,updateScrollButtons:ke}),[he,ke]);let[Ae,je]=Q(`indicator`,{className:te.indicator,elementType:_E,externalForwardedProps:pe,ownerState:M,additionalProps:{style:P}}),Me=(0,H.jsx)(Ae,{...je}),Ne=bx({activeItemId:se?void 0:oe,orientation:g,isRtl:i}),Pe=Ne.getContainerProps(),Fe=z.Children.toArray(u).filter(z.isValidElement).map((e,t)=>{let n=e.props.value===void 0?t:e.props.value;return V.set(n,t),{child:e,index:t,childValue:n}}).map(({child:e,childValue:t})=>{let n=t===S;return z.cloneElement(e,{fullWidth:C===`fullWidth`,indicator:n&&!fe&&Me,selected:n,selectionFollowsFocus:v,onChange:h,textColor:x,value:t})}),Ie=De(),[Le,Re]=Q(`root`,{ref:t,className:U(te.root,d),elementType:mE,externalForwardedProps:{...pe,...T,component:f},ownerState:M}),[ze,Be]=Q(`scroller`,{ref:ue,className:te.scroller,elementType:hE,externalForwardedProps:pe,ownerState:M,additionalProps:{style:{overflow:B.overflow,[D?`margin${i?`Left`:`Right`}`:`marginBottom`]:w?void 0:-B.scrollbarWidth}}}),Ve=au(Pe.ref,de),He=e=>{let t=de.current;lu(su(t))?.getAttribute(`role`)===`tab`&&Pe.onKeyDown(e)},[Ue,We]=Q(`list`,{ref:Ve,className:te.list,elementType:gE,externalForwardedProps:pe,ownerState:M,getSlotProps:e=>({...e,onBlur:t=>{Ev(t.currentTarget,t.relatedTarget)||ce(!1),e.onBlur?.(t)},onKeyDown:t=>{He(t),e.onKeyDown?.(t)},onFocus:t=>{ce(!0),Pe.onFocus(t),e.onFocus?.(t)}})});return(0,H.jsxs)(Le,{...Re,children:[Ie.scrollButtonStart,Ie.scrollbarSizeListener,(0,H.jsxs)(ze,{...Be,children:[(0,H.jsx)(Ue,{"aria-label":o,"aria-labelledby":s,"aria-orientation":g===`vertical`?`vertical`:null,role:`tablist`,...We,children:(0,H.jsx)(hx.Provider,{value:Ne,children:Fe})}),fe&&Me]}),Ie.scrollButtonEnd]})});function SE(e){return W(`MuiTextField`,e)}co(`MuiTextField`,[`root`]);var CE={standard:ob,filled:ky,outlined:PS},wE=e=>{let{classes:t}=e;return G({root:[`root`]},SE,t)},TE=q(Ny,{name:`MuiTextField`,slot:`Root`})({}),EE=z.forwardRef(function(e,t){let n=Y({props:e,name:`MuiTextField`}),{autoComplete:r,autoFocus:i=!1,children:a,className:o,color:s=`primary`,defaultValue:c,disabled:l=!1,error:u=!1,fullWidth:d=!1,helperText:f,id:p,inputRef:m,label:h,maxRows:g,minRows:_,multiline:v=!1,name:y,onBlur:b,onChange:x,onFocus:S,placeholder:C,required:w=!1,rows:T,select:E=!1,slots:D={},slotProps:O={},type:k,value:ee,variant:A=`outlined`,...j}=n,M={...n,autoFocus:i,color:s,disabled:l,error:u,fullWidth:d,multiline:v,required:w,select:E,variant:A},te=wE(M),ne=ls(p),N=f&&ne?`${ne}-helper-text`:void 0,P=h&&ne?`${ne}-label`:void 0,re=CE[A],F={slots:D,slotProps:O},[I,ie]=Q(`select`,{elementType:wC,externalForwardedProps:F,ownerState:M}),L=E&&ie.native,[R,z]=Q(`inputLabel`,{elementType:gb,externalForwardedProps:F,ownerState:M}),ae={};A===`outlined`&&(z.shrink!==void 0&&(ae.notched=z.shrink),ae.label=h),E&&(L||(ae.id=void 0),ae[`aria-describedby`]=void 0);let[oe,se]=Q(`root`,{elementType:TE,shouldForwardComponentProp:!0,externalForwardedProps:{...F,...j},ownerState:M,className:U(te.root,o),ref:t,additionalProps:{disabled:l,error:u,fullWidth:d,required:w,color:s,variant:A}}),[ce,B]=Q(`input`,{elementType:re,externalForwardedProps:F,additionalProps:ae,ownerState:M}),[le,V]=Q(`htmlInput`,{elementType:`input`,externalForwardedProps:F,ownerState:M}),[ue,de]=Q(`formHelperText`,{elementType:Gy,externalForwardedProps:F,ownerState:M}),fe=(0,H.jsx)(ce,{"aria-describedby":N,autoComplete:r,autoFocus:i,defaultValue:c,fullWidth:d,multiline:v,name:y,rows:T,maxRows:g,minRows:_,type:k,value:ee,id:ne,inputRef:m,onBlur:b,onChange:x,onFocus:S,placeholder:C,inputProps:V,slots:{input:D.htmlInput?le:void 0},...B});return(0,H.jsxs)(oe,{...se,children:[h!=null&&h!==``&&(0,H.jsx)(R,{htmlFor:E&&!L?void 0:ne,id:P,...E&&!L&&{component:`div`},...z,children:h}),E?(0,H.jsx)(I,{"aria-describedby":N,id:ne,labelId:P,value:ee,input:fe,...ie,children:a}):fe,f&&(0,H.jsx)(ue,{id:N,...de,children:f})]})}),DE=z.createContext({}),OE=z.createContext(void 0);function kE(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.includes(e):e===t}function AE(e,t){let{children:n,disabled:r=!1,selected:i=!1,value:a}=e,o=gx(),s=xx({id:a,ref:t,disabled:r,selected:i}),c=o.getItemMap().size===0&&i?0:s.tabIndex;return z.cloneElement(z.Children.only(n),{...s,tabIndex:n.props.tabIndex??c})}var jE=z.forwardRef(AE),ME=e=>{let{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:o}=e;return G({root:[`root`,r&&`selected`,i&&`disabled`,n&&`fullWidth`,`size${X(a)}`,o]},id,t)},NE=q(ep,{name:`MuiToggleButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[`size${X(n.size)}`]]}})(J(({theme:e})=>({...e.typography.button,borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active,[`&.${ad.disabled}`]:{color:(e.vars||e).palette.action.disabled,border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},"&:hover":{textDecoration:`none`,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:`transparent`}},variants:[{props:{color:`standard`},style:{[`&.${ad.selected}`]:{color:(e.vars||e).palette.text.primary,backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.selectedOpacity)}}}}},...Object.entries(e.palette).filter(lp()).map(([t])=>({props:{color:t},style:{[`&.${ad.selected}`]:{color:(e.vars||e).palette[t].main,backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity),"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.selectedOpacity)}}}}})),{props:{fullWidth:!0},style:{width:`100%`}},{props:{size:`small`},style:{padding:7,fontSize:e.typography.pxToRem(13)}},{props:{size:`large`},style:{padding:15,fontSize:e.typography.pxToRem(15)}}]}))),PE=z.forwardRef(function(e,t){let{value:n,isRovingTabIndex:r,...i}=z.useContext(DE),a=z.useContext(OE),o=Y({props:So({...i,selected:kE(e.value,n)},e),name:`MuiToggleButton`}),{children:s,className:c,color:l=`standard`,disabled:u=!1,disableFocusRipple:d=!1,fullWidth:f=!1,onChange:p,onClick:m,selected:h,size:g=`medium`,value:_,...v}=o,y={...o,color:l,disabled:u,disableFocusRipple:d,fullWidth:f,size:g},b=ME(y),x=e=>{m&&(m(e,_),e.defaultPrevented)||p&&p(e,_)},S=a||``,C=(0,H.jsx)(NE,{className:U(i.className,b.root,c,S),internalNativeButton:!0,disabled:u,focusRipple:!d,ref:r?void 0:t,onClick:x,onChange:p,value:_,ownerState:y,"aria-pressed":h,...v,children:s});return r?(0,H.jsx)(jE,{disabled:u,selected:h,ref:t,value:_,children:C}):C}),FE=ko({themeId:Yt}),IE=Z((0,H.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 3c1.93 0 3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5S10.07 6 12 6m7 13H5v-.23c0-.62.28-1.2.76-1.58C7.47 15.82 9.64 15 12 15s4.53.82 6.24 2.19c.48.38.76.97.76 1.58z`}),`AccountBox`),LE=Z((0,H.jsx)(`path`,{d:`M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z`}),`Add`),RE=Z((0,H.jsx)(`path`,{d:`m9.78 11.16-1.42 1.42c-.68-.69-1.34-1.58-1.79-2.94l1.94-.49c.32.89.77 1.5 1.27 2.01M11 6 7 2 3 6h3.02c.02.81.08 1.54.19 2.17l1.94-.49C8.08 7.2 8.03 6.63 8.02 6zm10 0-4-4-4 4h2.99c-.1 3.68-1.28 4.75-2.54 5.88-.5.44-1.01.92-1.45 1.55-.34-.49-.73-.88-1.13-1.24L9.46 13.6c.93.85 1.54 1.54 1.54 3.4v5h2v-5c0-2.02.71-2.66 1.79-3.63 1.38-1.24 3.08-2.78 3.2-7.37z`}),`AltRoute`),zE=Z((0,H.jsx)(`path`,{d:`M19 3h-4.18C14.4 1.84 13.3 1 12 1s-2.4.84-2.82 2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-7 0c.55 0 1 .45 1 1s-.45 1-1 1-1-.45-1-1 .45-1 1-1m4 12h-4v3l-5-5 5-5v3h4z`}),`AssignmentReturn`),BE=Z((0,H.jsx)(`path`,{d:`M11.8 10.9c-2.27-.59-3-1.2-3-2.15 0-1.09 1.01-1.85 2.7-1.85 1.78 0 2.44.85 2.5 2.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5 1.68-3.5 3.61 0 2.31 1.91 3.46 4.7 4.13 2.5.6 3 1.48 3 2.41 0 .69-.49 1.79-2.7 1.79-2.06 0-2.87-.92-2.98-2.1h-2.2c.12 2.19 1.76 3.42 3.68 3.83V21h3v-2.15c1.95-.37 3.5-1.5 3.5-3.55 0-2.84-2.43-3.81-4.7-4.4`}),`AttachMoney`),VE=Z((0,H.jsx)(`path`,{d:`M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20zm-6 8h-4v-2h4zm0-4h-4v-2h4z`}),`BugReport`),HE=Z((0,H.jsx)(`path`,{d:`m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4`}),`Build`),UE=Z((0,H.jsx)(`path`,{d:`M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m0 16H5V10h14zM9 14H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2zm-8 4H7v-2h2zm4 0h-2v-2h2zm4 0h-2v-2h2z`}),`CalendarMonth`),WE=Z((0,H.jsx)(`path`,{d:`M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m0 18H4V8h16z`}),`CalendarToday`),GE=Z((0,H.jsx)(`path`,{d:`M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2M8 11H4V6h4zm6 0h-4V6h4zm6 0h-4V6h4zM8 18H4v-5h4zm6 0h-4v-5h4zm6 0h-4v-5h4z`}),`CalendarViewMonth`),KE=Z((0,H.jsx)(`path`,{d:`m14 4 2.29 2.29-2.88 2.88 1.42 1.42 2.88-2.88L20 10V4zm-4 0H4v6l2.29-2.29 4.71 4.7V20h2v-8.41l-5.29-5.3z`}),`CallSplit`),qE=Z([(0,H.jsx)(`circle`,{cx:`12`,cy:`12`,r:`3.2`},`0`),(0,H.jsx)(`path`,{d:`M9 2 7.17 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-3.17L15 2zm3 15c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5`},`1`)],`CameraAlt`),JE=Z((0,H.jsx)(`path`,{d:`M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z`}),`Check`),YE=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8z`}),`CheckCircle`),XE=Z((0,H.jsx)(`path`,{d:`M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z`}),`ChevronRight`),ZE=Z((0,H.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Clear`),QE=Z((0,H.jsx)(`path`,{d:`M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z`}),`Close`),$E=Z((0,H.jsx)(`path`,{d:`M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z`}),`Code`),eD=Z((0,H.jsx)(`path`,{d:`M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z`}),`Delete`),tD=Z((0,H.jsx)(`path`,{d:`m21.41 10.59-7.99-8c-.78-.78-2.05-.78-2.83 0l-8.01 8c-.78.78-.78 2.05 0 2.83l8.01 8c.78.78 2.05.78 2.83 0l7.99-8c.79-.79.79-2.05 0-2.83M13.5 14.5V12H10v3H8v-4c0-.55.45-1 1-1h4.5V7.5L17 11z`}),`Directions`),nD=Z((0,H.jsx)(`path`,{d:`M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2M20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2`}),`Dns`),rD=Z((0,H.jsx)(`path`,{d:`M11 9.16V2c-5 .5-9 4.79-9 10s4 9.5 9 10v-7.16c-1-.41-2-1.52-2-2.84s1-2.43 2-2.84M14.86 11H22c-.48-4.75-4-8.53-9-9v7.16c1 .3 1.52.98 1.86 1.84M13 14.84V22c5-.47 8.52-4.25 9-9h-7.14c-.34.86-.86 1.54-1.86 1.84`}),`DonutSmall`),iD=Z((0,H.jsx)(`path`,{d:`M11 18c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2m-2-8c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0-6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m6 4c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2m0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`DragIndicator`),aD=Z((0,H.jsx)(`path`,{d:`M3 17.25V21h3.75L17.81 9.94l-3.75-3.75zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75z`}),`Edit`),oD=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`Error`),sD=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z`}),`ErrorOutlined`),cD=Z((0,H.jsx)(`path`,{d:`M10.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67zM19 3H5c-1.11 0-2 .9-2 2v4h2V5h14v14H5v-4H3v4c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2`}),`ExitToApp`),lD=Z((0,H.jsx)(`path`,{d:`M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z`}),`ExpandMore`),uD=Z((0,H.jsx)(`path`,{d:`M20.5 11H19V7c0-1.1-.9-2-2-2h-4V3.5C13 2.12 11.88 1 10.5 1S8 2.12 8 3.5V5H4c-1.1 0-1.99.9-1.99 2v3.8H3.5c1.49 0 2.7 1.21 2.7 2.7s-1.21 2.7-2.7 2.7H2V20c0 1.1.9 2 2 2h3.8v-1.5c0-1.49 1.21-2.7 2.7-2.7s2.7 1.21 2.7 2.7V22H17c1.1 0 2-.9 2-2v-4h1.5c1.38 0 2.5-1.12 2.5-2.5S21.88 11 20.5 11`}),`Extension`),dD=Z((0,H.jsx)(`path`,{d:`M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z`}),`FilterList`),fD=Z((0,H.jsx)(`path`,{d:`M18.41 16.59 13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z`}),`FirstPage`),pD=Z((0,H.jsx)(`path`,{d:`M20 6h-8l-2-2H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2m0 12H4V8h16z`}),`FolderOpen`),mD=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25`}),`HelpOutlined`),hD=Z((0,H.jsx)(`path`,{d:`M13 3c-4.97 0-9 4.03-9 9H1l3.89 3.89.07.14L9 12H6c0-3.87 3.13-7 7-7s7 3.13 7 7-3.13 7-7 7c-1.93 0-3.68-.79-4.94-2.06l-1.42 1.42C8.27 19.99 10.51 21 13 21c4.97 0 9-4.03 9-9s-4.03-9-9-9m-1 5v5l4.28 2.54.72-1.21-3.5-2.08V8z`}),`History`),gD=Z((0,H.jsx)(`path`,{d:`M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2z`}),`HourglassFull`),_D=Z((0,H.jsx)(`path`,{d:`M9 3 5 6.99h3V14h2V6.99h3zm7 14.01V10h-2v7.01h-3L15 21l4-3.99z`}),`ImportExport`),vD=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-6h2zm0-8h-2V7h2z`}),`Info`),yD=Z((0,H.jsx)(`path`,{d:`M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M9 17H7v-7h2zm4 0h-2V7h2zm4 0h-2v-4h2z`}),`InsertChart`),bD=Z((0,H.jsx)(`path`,{d:`M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z`}),`KeyboardArrowDown`),xD=Z((0,H.jsx)(`path`,{d:`M15.41 16.59 10.83 12l4.58-4.59L14 6l-6 6 6 6z`}),`KeyboardArrowLeft`),SD=Z((0,H.jsx)(`path`,{d:`M8.59 16.59 13.17 12 8.59 7.41 10 6l6 6-6 6z`}),`KeyboardArrowRight`),CD=Z((0,H.jsx)(`path`,{d:`M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z`}),`KeyboardArrowUp`),wD=Z((0,H.jsx)(`path`,{d:`M5.59 7.41 10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z`}),`LastPage`),TD=Z((0,H.jsx)(`path`,{d:`M12 4V1L8 5l4 4V6c3.31 0 6 2.69 6 6 0 1.01-.25 1.97-.7 2.8l1.46 1.46C19.54 15.03 20 13.57 20 12c0-4.42-3.58-8-8-8m0 14c-3.31 0-6-2.69-6-6 0-1.01.25-1.97.7-2.8L5.24 7.74C4.46 8.97 4 10.43 4 12c0 4.42 3.58 8 8 8v3l4-4-4-4z`}),`Loop`),ED=Z((0,H.jsx)(`path`,{d:`M15 9H9v6h6zm-2 4h-2v-2h2zm8-2V9h-2V7c0-1.1-.9-2-2-2h-2V3h-2v2h-2V3H9v2H7c-1.1 0-2 .9-2 2v2H3v2h2v2H3v2h2v2c0 1.1.9 2 2 2h2v2h2v-2h2v2h2v-2h2c1.1 0 2-.9 2-2v-2h2v-2h-2v-2zm-4 6H7V7h10z`}),`Memory`),DD=Z((0,H.jsx)(`path`,{d:`M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2m-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2`}),`MoreHoriz`),OD=Z((0,H.jsx)(`path`,{d:`M12 22c1.1 0 2-.9 2-2h-4c0 1.1.89 2 2 2m6-6v-5c0-3.07-1.64-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68C7.63 5.36 6 7.92 6 11v5l-2 2v1h16v-1z`}),`Notifications`),kD=Z((0,H.jsx)(`path`,{d:`M17.66 8 12 2.35 6.34 8C4.78 9.56 4 11.64 4 13.64s.78 4.11 2.34 5.67 3.61 2.35 5.66 2.35 4.1-.79 5.66-2.35S20 15.64 20 13.64 19.22 9.56 17.66 8M6 14c.01-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 17.99 12 18 14z`}),`Opacity`),AD=Z((0,H.jsx)(`path`,{d:`M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m.88 15.76V19h-1.75v-1.29c-.74-.18-2.39-.77-3.02-2.96l1.65-.67c.06.22.58 2.09 2.4 2.09.93 0 1.98-.48 1.98-1.61 0-.96-.7-1.46-2.28-2.03-1.1-.39-3.35-1.03-3.35-3.31 0-.1.01-2.4 2.62-2.96V5h1.75v1.24c1.84.32 2.51 1.79 2.66 2.23l-1.58.67c-.11-.35-.59-1.34-1.9-1.34-.7 0-1.81.37-1.81 1.39 0 .95.86 1.31 2.64 1.9 2.4.83 3.01 2.05 3.01 3.45 0 2.63-2.5 3.13-3.02 3.22`}),`Paid`),jD=Z((0,H.jsx)(`path`,{d:`M18 17H6v-2h12zm0-4H6v-2h12zm0-4H6V7h12zM3 22l1.5-1.5L6 22l1.5-1.5L9 22l1.5-1.5L12 22l1.5-1.5L15 22l1.5-1.5L18 22l1.5-1.5L21 22V2l-1.5 1.5L18 2l-1.5 1.5L15 2l-1.5 1.5L12 2l-1.5 1.5L9 2 7.5 3.5 6 2 4.5 3.5 3 2z`}),`Receipt`),MD=Z((0,H.jsx)(`path`,{d:`M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z`}),`Refresh`),ND=Z((0,H.jsx)(`path`,{d:`M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8`}),`Replay`),PD=Z((0,H.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14m-2.17-1.5 2.14-1.53 2.14 1.53-.83-2.46 2.15-1.5h-2.62L9.47 6l-.84 2.54H6l2.14 1.49z`}),`SavedSearch`),FD=Z((0,H.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14`}),`Search`),ID=Z((0,H.jsx)(`path`,{d:`M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6`}),`Settings`),LD=Z((0,H.jsx)(`path`,{d:`m17.21 9-4.38-6.56c-.19-.28-.51-.42-.83-.42s-.64.14-.83.43L6.79 9H2c-.55 0-1 .45-1 1 0 .09.01.18.04.27l2.54 9.27c.23.84 1 1.46 1.92 1.46h13c.92 0 1.69-.62 1.93-1.46l2.54-9.27L23 10c0-.55-.45-1-1-1zM9 9l3-4.4L15 9zm3 8c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2`}),`ShoppingBasket`),RD=Z((0,H.jsx)(`path`,{d:`m6 18 8.5-6L6 6zM16 6v12h2V6z`}),`SkipNext`),zD=Z((0,H.jsx)(`path`,{d:`M6 6h2v12H6zm3.5 6 8.5 6V6z`}),`SkipPrevious`),BD=Z((0,H.jsx)(`path`,{d:`M14.43 10 12 2l-2.43 8H2l6.18 4.41L5.83 22 12 17.31 18.18 22l-2.35-7.59L22 10z`}),`StarRate`),VD=Z((0,H.jsx)(`path`,{d:`M15 3H5c-1.1 0-1.99.9-1.99 2L3 19c0 1.1.89 2 1.99 2H19c1.1 0 2-.9 2-2V9zM8 17c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m0-4c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m6 1V4.5l5.5 5.5z`}),`Summarize`),HD=Z((0,H.jsx)(`path`,{d:`M23 8c0 1.1-.9 2-2 2-.18 0-.35-.02-.51-.07l-3.56 3.55c.05.16.07.34.07.52 0 1.1-.9 2-2 2s-2-.9-2-2c0-.18.02-.36.07-.52l-2.55-2.55c-.16.05-.34.07-.52.07s-.36-.02-.52-.07l-4.55 4.56c.05.16.07.33.07.51 0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2c.18 0 .35.02.51.07l4.56-4.55C8.02 9.36 8 9.18 8 9c0-1.1.9-2 2-2s2 .9 2 2c0 .18-.02.36-.07.52l2.55 2.55c.16-.05.34-.07.52-.07s.36.02.52.07l3.55-3.56C19.02 8.35 19 8.18 19 8c0-1.1.9-2 2-2s2 .9 2 2`}),`Timeline`),UD=Z((0,H.jsx)(`path`,{d:`M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5M12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5m0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3`}),`Visibility`),WD=Z((0,H.jsx)(`path`,{d:`M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z`}),`VisibilityOff`),GD=Z((0,H.jsx)(`path`,{d:`M1 21h22L12 2zm12-3h-2v-2h2zm0-4h-2v-4h2z`}),`Warning`),KD=Z([(0,H.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14`},`0`),(0,H.jsx)(`path`,{d:`M12 10h-2v2H9v-2H7V9h2V7h1v2h2z`},`1`)],`ZoomIn`),qD=Z((0,H.jsx)(`path`,{d:`M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14M7 9h5v1H7z`}),`ZoomOut`),JD=864e5,YD=6e4,XD=36e5,ZD=Symbol.for(`constructDateFrom`);function QD(e,t){return typeof e==`function`?e(t):e&&typeof e==`object`&&ZD in e?e[ZD](t):e instanceof Date?new e.constructor(t):new Date(t)}function $D(e,t){return QD(t||e,e)}function eO(e,t,n){let r=$D(e,n?.in);return isNaN(t)?QD(n?.in||e,NaN):(t&&r.setDate(r.getDate()+t),r)}function tO(e,t,n){let r=$D(e,n?.in);if(isNaN(t))return QD(n?.in||e,NaN);if(!t)return r;let i=r.getDate(),a=QD(n?.in||e,r.getTime());return a.setMonth(r.getMonth()+t+1,0),i>=a.getDate()?a:(r.setFullYear(a.getFullYear(),a.getMonth(),i),r)}function nO(e,t,n){return QD(n?.in||e,+$D(e)+t)}function rO(e,t,n){return nO(e,t*XD,n)}var iO={};function aO(){return iO}function oO(e,t){let n=aO(),r=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,i=$D(e,t?.in),a=i.getDay(),o=(a<r?7:0)+a-r;return i.setDate(i.getDate()-o),i.setHours(0,0,0,0),i}function sO(e){let t=$D(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-n}function cO(e,...t){let n=QD.bind(null,e||t.find(e=>typeof e==`object`));return t.map(n)}function lO(e,t){let n=$D(e,t?.in);return n.setHours(0,0,0,0),n}function uO(e,t,n){let[r,i]=cO(n?.in,e,t),a=lO(r),o=lO(i),s=+a-sO(a),c=+o-sO(o);return Math.round((s-c)/JD)}function dO(e,t,n){let r=$D(e,n?.in);return r.setTime(r.getTime()+t*YD),r}function fO(e,t,n){return nO(e,t*1e3,n)}function pO(e,t,n){return tO(e,t*12,n)}function mO(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=QD.bind(null,e));let t=$D(e,r);(!n||n<t||isNaN(+t))&&(n=t)}),QD(r,n||NaN)}function hO(e,t){let n,r=t?.in;return e.forEach(e=>{!r&&typeof e==`object`&&(r=QD.bind(null,e));let t=$D(e,r);(!n||n>t||isNaN(+t))&&(n=t)}),QD(r,n||NaN)}function gO(e,t,n){let[r,i]=cO(n?.in,e,t),a=_O(r,i),o=Math.abs(uO(r,i));r.setDate(r.getDate()-a*o);let s=a*(o-Number(_O(r,i)===-a));return s===0?0:s}function _O(e,t){let n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function vO(e){return t=>{let n=(e?Math[e]:Math.trunc)(t);return n===0?0:n}}function yO(e,t){return+$D(e)-$D(t)}function bO(e,t,n){let r=yO(e,t)/YD;return vO(n?.roundingMethod)(r)}function xO(e,t){let n=$D(e,t?.in);return n.setHours(23,59,59,999),n}function SO(e,t,n){let r=yO(e,t)/1e3;return vO(n?.roundingMethod)(r)}function CO(e,t){let n=$D(e,t?.in);return n.setDate(1),n.setHours(0,0,0,0),n}function wO(e,t){let n=$D(e,t?.in),r=n.getFullYear(),i=n.getMonth(),a=QD(n,0);return a.setFullYear(r,i+1,0),a.setHours(0,0,0,0),a.getDate()}function TO(e){return lO(Date.now(),e)}var EO=3,DO=2;function OO(e,t,n){let r=n.left,i=n.right;return r===null?i===null?{key:e,val:t,size:2,left:null,right:n}:{key:n.key,val:n.val,size:3,left:{key:e,val:t,size:1,left:null,right:null},right:i}:i===null?{key:r.key,val:r.val,size:3,left:{key:e,val:t,size:1,left:null,right:null},right:{key:n.key,val:n.val,size:1,left:null,right:null}}:{key:n.key,val:n.val,size:1+n.size,left:{key:e,val:t,size:1+r.size,left:null,right:r},right:i}}function kO(e,t,n){let r=n.left,i=n.right;return r===null?i===null?{key:e,val:t,size:2,left:n,right:null}:{key:i.key,val:i.val,size:3,left:{key:n.key,val:n.val,size:1,left:null,right:null},right:{key:e,val:t,size:1,left:null,right:null}}:i===null?{key:n.key,val:n.val,size:3,left:r,right:{key:e,val:t,size:1,left:null,right:null}}:{key:n.key,val:n.val,size:1+n.size,left:r,right:{key:e,val:t,size:1+i.size,left:i,right:null}}}function AO(e,t,n,r){let i=r.left,a=r.right;return i.size<DO*a.size?{key:r.key,val:r.val,size:1+n.size+r.size,left:{key:e,val:t,size:1+n.size+i.size,left:n,right:i},right:a}:{key:i.key,val:i.val,size:1+n.size+r.size,left:{key:e,val:t,size:1+n.size+(i.left?.size??0),left:n,right:i.left},right:{key:r.key,val:r.val,size:1+a.size+(i.right?.size??0),left:i.right,right:a}}}function jO(e,t,n,r){let i=n.left,a=n.right;return a.size<DO*i.size?{key:n.key,val:n.val,size:1+n.size+r.size,left:i,right:{key:e,val:t,size:1+r.size+a.size,left:a,right:r}}:{key:a.key,val:a.val,size:1+n.size+r.size,left:{key:n.key,val:n.val,size:1+i.size+(a.left?.size??0),left:i,right:a.left},right:{key:e,val:t,size:1+r.size+(a.right?.size??0),left:a.right,right:r}}}function MO(e,t,n,r){if(r===null)return e===null?{key:t,val:n,size:1,left:null,right:null}:kO(t,n,e);let i=e;return i.size>EO*r.size?jO(t,n,i,r):{key:t,val:n,size:1+i.size+r.size,left:e,right:r}}function NO(e,t,n,r){if(e===null)return r===null?{key:t,val:n,size:1,left:null,right:null}:OO(t,n,r);let i=r;return i.size>EO*e.size?AO(t,n,e,i):{key:t,val:n,size:1+e.size+i.size,left:e,right:r}}function PO(e,t,n,r){return e===null?r===null?{key:t,val:n,size:1,left:null,right:null}:OO(t,n,r):r===null?kO(t,n,e):r.size>EO*e.size?AO(t,n,e,r):e.size>EO*r.size?jO(t,n,e,r):{key:t,val:n,size:1+e.size+r.size,left:e,right:r}}function FO(e,t,n){return n===null?{key:e,val:t,size:1,left:null,right:null}:MO(FO(e,t,n.left),n.key,n.val,n.right)}function IO(e,t,n){if(n===null)return{key:e,val:t,size:1,left:null,right:null};let r=IO(e,t,n.right);return NO(n.left,n.key,n.val,r)}function LO(e,t,n,r){return e===null?FO(t,n,r):r===null?IO(t,n,e):r.size>EO*e.size?MO(LO(e,t,n,r.left),r.key,r.val,r.right):e.size>EO*r.size?NO(e.left,e.key,e.val,LO(e.right,t,n,r)):{key:t,val:n,size:1+e.size+r.size,left:e,right:r}}function RO(e){let t=e.left;if(t===null)return{k:e.key,v:e.val,rest:e.right};{let n=RO(t);return n.rest=NO(n.rest,e.key,e.val,e.right),n}}function zO(e){let t=e.right;if(t===null)return{k:e.key,v:e.val,rest:e.left};{let n=zO(t);return n.rest=MO(e.left,e.key,e.val,n.rest),n}}function BO(e,t){if(e===null)return t;if(t===null)return e;if(e.size>t.size){let{k:n,v:r,rest:i}=zO(e);return NO(i,n,r,t)}{let{k:n,v:r,rest:i}=RO(t);return MO(e,n,r,i)}}function VO(e,t){return e===null?t:t===null?e:t.size>EO*e.size?MO(VO(e,t.left),t.key,t.val,t.right):e.size>EO*t.size?NO(e.left,e.key,e.val,VO(e.right,t)):BO(e,t)}function HO(e,t,n,r,i){return e<0?{key:t,val:n,size:2,left:null,right:{key:r,val:i,size:1,left:null,right:null}}:{key:t,val:n,size:2,left:{key:r,val:i,size:1,left:null,right:null},right:null}}function UO(e){let t=e.right,n=t.size;return t.size=e.size,e.right=t.left,e.size=e.size-n+(e.right?.size??0),t.left=e,t}function WO(e){let t=e.left,n=t.size;return t.size=e.size,e.left=t.right,e.size=e.size-n+(e.left?.size??0),t.right=e,t}function GO(e){let t=e.left.size,n=e.right?.size??0;if(t>EO*n&&t+n>1){let t=e.left.left?.size??0;return(e.left.right?.size??0)<DO*t||(e.left=UO(e.left)),WO(e)}return e}function KO(e){let t=e.left?.size??0,n=e.right.size;return n>EO*t&&t+n>1?((e.right.left?.size??0)<DO*(e.right.right?.size??0)||(e.right=WO(e.right)),UO(e)):e}function qO(e){return typeof e==`object`&&!!e&&`compare`in e}function JO(e,t){return`asc`in e?e.asc(t):`desc`in e?e.desc(t):e(t)}function YO(...e){return(t,n)=>{for(let r of e)if(`desc`in r){let e=r.desc(t),i=r.desc(n);if(typeof e==`string`&&typeof i==`string`){let t=e.localeCompare(i);if(t===0)continue;return t<0?1:-1}if(qO(e)&&i!==null){let t=e.compare(i);if(t===0)continue;return t<0?1:-1}if(e===i)continue;return e===null?-1:i===null||e<i?1:-1}else{let e=`asc`in r?r.asc:r,i=e(t),a=e(n);if(typeof i==`string`&&typeof a==`string`){let e=i.localeCompare(a);if(e===0)continue;return e<0?-1:1}if(qO(i)&&a!==null){let e=i.compare(a);if(e===0)continue;return e<0?-1:1}if(i===a)continue;return i===null?1:a===null||i<a?-1:1}return 0}}function XO(e,t){return e===t?0:e?1:-1}function ZO(e,t){return e-t}function QO(e,t){return e.localeCompare(t)}function $O(e,t){return e.getTime()-t.getTime()}function ek(e,t){return e.compare(t)}function tk(){let e;function t(t){switch(typeof t){case`object`:if(t instanceof Date){e.compare=$O;return}if(qO(t)){e.compare=ek;return}throw Error(`key type must have compare method`);case`string`:e.compare=QO;return;case`number`:e.compare=ZO;return;case`boolean`:e.compare=XO;return;default:throw Error(`cannot compare keys`)}}function n(n,r){return t(n),e.compare(n,r)}return e={compare:n},e}function nk({compare:e},t,n){let r=n;for(;r;){let n=e(t,r.key);if(n===0)return r.val;r=n<0?r.left:r.right}}function rk(e){let t=e;for(;;){let e=t.left;if(e)t=e;else return[t.key,t.val]}}function ik(e){let t=e;for(;;){let e=t.right;if(e)t=e;else return[t.key,t.val]}}function ak({compare:e},t,n,r){function i(r){if(r===null){let e=n(void 0);return e===void 0?null:{key:t,val:e,size:1,left:null,right:null}}let a=e(t,r.key);if(a===0){let e=n(r.val);return e===void 0?BO(r.left,r.right):e===r.val?r:{key:t,val:e,size:r.size,left:r.left,right:r.right}}if(a<0){let e=i(r.left);return e===r.left?r:PO(e,r.key,r.val,r.right)}{let e=i(r.right);return e===r.right?r:PO(r.left,r.key,r.val,e)}}return i(r)}function ok({compare:e},t,n,r,i){let a=!0;function o(i){if(i===null)return{key:t,val:r(void 0,n),size:1,left:null,right:null};let s=e(t,i.key);if(s<0)return i.left=o(i.left),a&&(i.size+=1),GO(i);if(s>0)return i.right=o(i.right),a&&(i.size+=1),KO(i);{let e=r(i.val,n);return e===i.val?(a=!1,i):(a=!1,{key:i.key,val:e,size:i.size,left:i.left,right:i.right})}}return o(i)}function sk({compare:e},t,n){let r,i,a=null,o=!0;function s(t){if(t===null)return{key:r,val:i,size:1,left:null,right:null};let a=e(r,t.key);return a<0?(t.left=s(t.left),o&&(t.size+=1),GO(t)):a>0?(t.right=s(t.right),o&&(t.size+=1),KO(t)):i===t.val?(o=!1,t):(o=!1,{key:t.key,val:n?n(t.val,i):i,size:t.size,left:t.left,right:t.right})}for([r,i]of t)a=s(a),o=!0;return a}function ck({compare:e},t,n,r){let i,a,o=null,s=!0;function c(t){if(t===null)return{key:i,val:r?r(void 0,a):a,size:1,left:null,right:null};let n=e(i,t.key);if(n<0)return t.left=c(t.left),s&&(t.size+=1),GO(t);if(n>0)return t.right=c(t.right),s&&(t.size+=1),KO(t);{s=!1;let e=r?r(t.val,a):a;return e===t.val?t:{key:t.key,val:e,size:t.size,left:t.left,right:t.right}}}for(a of t)i=n(a),o=c(o),s=!0;return o}function*lk(e,t){let n=[],r=t;for(;r!==null||n.length>0;)r===null?(r=n.pop(),yield e(r.key,r.val),r=r.right):(n.push(r),r=r.left)}function*uk(e,t){let n=[],r=t;for(;r!==null||n.length>0;)r===null?(r=n.pop(),yield e(r.key,r.val),r=r.left):(n.push(r),r=r.right)}function dk(e,t,n){let r=[],i=n,a=t;for(;i!==null||r.length>0;)i===null?(i=r.pop(),a=e(a,i.key,i.val),i=i.right):(r.push(i),i=i.left);return a}function fk(e,t,n){let r=[],i=n,a=t;for(;i!==null||r.length>0;)i===null?(i=r.pop(),a=e(i.key,i.val,a),i=i.left):(r.push(i),i=i.right);return a}function pk(e,t){function n(t){if(!t)return null;let r=n(t.left),i=e(t.val,t.key),a=n(t.right);return i===t.val&&r===t.left&&a===t.right?t:{key:t.key,val:i,size:t.size,left:r,right:a}}return n(t)}function mk(e,t,n){function r(n){if(!n)return null;let i=r(n.left),a=e(n.val,n.key),o=r(n.right);return a===void 0||t&&a===null?VO(i,o):a===n.val&&i===n.left&&o===n.right?n:LO(i,n.key,a,o)}return r(n)}function hk({compare:e},t,n){function r(n){if(!n)return{below:null,val:void 0,above:null};let i=e(t,n.key);if(i<0){let e=r(n.left),t=LO(e.above,n.key,n.val,n.right);return{below:e.below,val:e.val,above:t}}if(i>0){let e=r(n.right);return{below:LO(n.left,n.key,n.val,e.below),val:e.val,above:e.above}}return{below:n.left,val:n.val,above:n.right}}return r(n)}function gk(e,t){function n(t){if(t===null)return[null,null];let[r,i]=n(t.left),[a,o]=n(t.right);if(e(t.key,t.val))return[r===t.left&&a===t.right?t:LO(r,t.key,t.val,a),VO(i,o)];{let e=o===t.right&&i===t.left?t:LO(i,t.key,t.val,o);return[VO(r,a),e]}}return n(t)}function _k(e){return RO(e)}function vk(e){return zO(e)}function yk(e,t,n){if(!t)return!0;if(!n||t.size>n.size)return!1;function r(t,n){if(!t)return!0;let i=hk(e,t.key,n);return i.val===void 0||(t.left?.size??0)>(i.below?.size??0)||(t.right?.size??0)>(i.above?.size??0)?!1:r(t.left,i.below)&&r(t.right,i.above)}return r(t,n)}function bk(e,t,n){if(!t||!n)return!0;function r(t,n){if(!t||!n)return!0;if(t.size===1)return nk(e,t.key,n)===void 0;let i=hk(e,t.key,n);return i.val===void 0&&r(t.left,i.below)&&r(t.right,i.above)}return r(t,n)}function xk({compare:e},t,n){let r=n,i=0;for(;r;){let n=e(t,r.key);if(n===0)return r.left&&(i+=r.left.size),i;n<0?r=r.left:(r.left&&(i+=r.left.size),i+=1,r=r.right)}return-1}function Sk(e,t){let n=t,r=e;for(;n;){let e=n.left?n.left.size:0;if(r<e)n=n.left;else if(r===e)return[n.key,n.val];else r-=e+1,n=n.right}}function Ck(e,t){if(e<=0||t===null)return null;if(e>=t.size)return t;let n=t.left?t.left.size:0;if(e<=n)return Ck(e,t.left);{let r=Ck(e-n-1,t.right);return LO(t.left,t.key,t.val,r)}}function wk(e,t){if(e<=0||t===null)return t;if(e>=t.size)return null;let n=t.left?t.left.size:0;return e<n?LO(wk(e,t.left),t.key,t.val,t.right):e===n?FO(t.key,t.val,t.right):wk(e-n-1,t.right)}function Tk(e,t,n){if(e<0||n===null)return n;let r=n.left?n.left.size:0;if(e<r){let r=Tk(e,t,n.left);return r===n.left?n:PO(r,n.key,n.val,n.right)}if(e===r){let e=t(n.key,n.val);return e===void 0?BO(n.left,n.right):e===n.val?n:{key:n.key,val:e,size:n.size,left:n.left,right:n.right}}{let i=Tk(e-r-1,t,n.right);return i===n.right?n:PO(n.left,n.key,n.val,i)}}function Ek(e,t,n,r){function i(n,r){if(!n)return r;if(!r)return n;if(!n.left&&!n.right)return ak(e,n.key,e=>e===void 0?n.val:t(n.val,e,n.key),r);if(!r.left&&!r.right)return ak(e,r.key,e=>e===void 0?r.val:t(e,r.val,r.key),n);let a=hk(e,n.key,r),o=i(n.left,a.below),s=i(n.right,a.above);return o===n.left&&s===n.right&&(a.val===void 0||a.val===n.val)?n:a.val===void 0?LO(o,n.key,n.val,s):LO(o,n.key,t(n.val,a.val,n.key),s)}return i(n,r)}function Dk(e,t,n,r){function i(n,r){if(!n||!r)return null;let a=hk(e,n.key,r),o=i(n.left,a.below),s=i(n.right,a.above);return a.val===void 0?VO(o,s):o===n.left&&s===n.right&&a.val===n.val?n:LO(o,n.key,t(n.val,a.val,n.key),s)}return i(n,r)}function Ok(e,t,n){function r(t,n){if(!t)return null;if(!n)return t;let i=hk(e,t.key,n),a=r(t.left,i.below),o=r(t.right,i.above);return i.val===void 0?a===t.left&&o===t.right?t:LO(a,t.key,t.val,o):VO(a,o)}return r(t,n)}function kk(e,t,n){function r(t,n){if(!t)return n;if(!n)return t;if(!t.left&&!t.right)return ak(e,t.key,e=>e===void 0?t.val:void 0,n);if(!n.left&&!n.right)return ak(e,n.key,e=>e===void 0?n.val:void 0,t);let i=hk(e,t.key,n),a=r(t.left,i.below),o=r(t.right,i.above);return i.val===void 0?LO(a,t.key,t.val,o):VO(a,o)}return r(t,n)}function Ak(e,t,n,r){function i(e,n){return t(void 0,e,n)}function a(n,r){if(!r)return n;if(!n)return mk(i,!1,r);let o=hk(e,n.key,r),s=a(n.left,o.below),c=a(n.right,o.above);if(o.val!==void 0){let e=t(n.val,o.val,n.key);return e===void 0?VO(s,c):e===n.val&&s===n.left&&c===n.right?n:LO(s,n.key,e,c)}return s===n.left&&c===n.right?n:LO(s,n.key,n.val,c)}return a(n,r)}function jk(e){return typeof e==`object`&&!!e&&`hash`in e}function Mk(e,t){return e*16777619^t}function Nk(e){let t=2166136261;for(let n=0;n<e.length;n++)t=Mk(t,e.charCodeAt(n));return Mk(t,e.length)}function Pk(e){return+!!e}function Fk(e){if(Number.isInteger(e)&&e>=-2147483648&&e<=2147483647)return e;if(Object.is(e,1/0)||Object.is(e,NaN))return 0;{let t=new ArrayBuffer(8);new Float64Array(t)[0]=e;let n=new Int32Array(t);return Mk(Mk(2166136261,n[0]),n[1])}}function Ik(e){return Fk(e.getTime())}function Lk(...e){let t=e.length===1?0:2166136261;for(let n=0;n<e.length;n++){let r=e[n];if(r==null)t=Mk(t,0);else switch(typeof r){case`string`:t=Mk(t,Nk(r));break;case`number`:t=Mk(t,Fk(r));break;case`boolean`:t=Mk(t,Pk(r));break;default:t=r instanceof Date?Mk(t,Fk(r.getTime())):jk(r)?Mk(t,r.hash()):Mk(t,Nk(r.toString()))}}return e.length===1?t:Mk(t,e.length)}function Rk(){let e;function t(t){switch(typeof t){case`object`:if(t instanceof Date){e.compare=$O,e.hash=Ik;return}if(jk(t)){e.compare=ek,e.hash=e=>e.hash();return}throw Error(`key type must have compare and hash methods`);case`string`:e.compare=QO,e.hash=Nk;return;case`number`:e.compare=ZO,e.hash=Fk;return;case`boolean`:e.compare=XO,e.hash=Pk;return}}function n(n,r){return t(n),e.compare(n,r)}function r(n){return t(n),e.hash(n)}return e={compare:n,hash:r},e}var zk=5,Bk=31,Vk=-1;function Hk(e,t){return 1<<(e>>>t&Bk)}function Uk(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>24}function Wk(e,t){return Uk(e&t-1)}function Gk(e,t){return e>>>t&Bk}function Kk(){}function qk(e,t,n,r,i){r===void 0&&(r=e.hash(t)),i===void 0&&(i=0);let a=n;do if(`children`in a){let e=a.bitmap;if(e!==Vk){let t=Hk(r,i);if((e&t)===0)return;a=a.children[Wk(e,t)],i+=zk}else a=a.children[Gk(r,i)],i+=zk}else if(`key`in a)return r===a.hash&&e.compare(t,a.key)===0?a.val:void 0;else if(r===a.hash)return nk(e,t,a.collision);else return;while(a);throw Error(`Internal immutable-collections violation: node undefined during lookup`)}function Jk(e,t,n){let r=t.hash,i=n.hash,a,o;for(;;){let s=Hk(r,e),c=Hk(i,e);if(s===c){let t=[,],n={bitmap:s,children:t};a===void 0&&(a=n),o!==void 0&&(o[0]=n),o=t,e+=zk}else{let l={bitmap:s|c,children:Gk(r,e)<Gk(i,e)?[t,n]:[n,t]};return o!==void 0&&(o[0]=l),a??l}}}function Yk(e,t,n,r){let i=e.hash(t);if(r===null)return[{hash:i,key:t,val:n(void 0)},!0];let a,o,s=0,c=0,l=r;do if(`children`in l){let e,r,u=l.bitmap;if(u!==Vk){let d=Hk(i,c);if(e=Wk(u,d),(u&d)===0){let r=l.children,c={hash:i,key:t,val:n(void 0)},f=[...r.slice(0,e),c,...r.slice(e)],p={bitmap:u|d,children:f};return o!==void 0&&(o[s]=p),[a??p,!0]}r={bitmap:u,children:[...l.children]}}else e=Gk(i,c),r={bitmap:Vk,children:[...l.children]};a===void 0&&(a=r),o!==void 0&&(o[s]=r),o=r.children,s=e,c+=zk,l=r.children[e]}else if(`key`in l){let u,d=!0;if(i===l.hash){let a=e.compare(t,l.key);if(a===0){let e=n(l.val);if(e===l.val)return[r,!1];u={hash:i,key:t,val:e},d=!1}else u={hash:i,collision:HO(a,t,n(void 0),l.key,l.val)}}else u=Jk(c,{hash:i,key:t,val:n(void 0)},l);return o!==void 0&&(o[s]=u),[a??u,d]}else{let u,d=!0;if(i===l.hash){let a=ak(e,t,n,l.collision);if(a===l.collision)return[r,!1];d=a.size!==l.collision.size,u={hash:i,collision:a}}else u=Jk(c,l,{hash:i,key:t,val:n(void 0)});return o!==void 0&&(o[s]=u),[a??u,d]}while(l);throw Error(`Internal immutable-collections violation: hamt insert reached null`)}function Xk(e,t,n,r,i){let a=e.hash(t);if(i===null)return{hash:a,key:t,val:r(void 0,n)};let o,s=0,c=0,l=i;do if(`children`in l){let e,u=l.bitmap;if(u!==Vk){let o=Hk(a,c);if(e=Wk(u,o),(u&o)===0){let s={hash:a,key:t,val:r(void 0,n)};return l.children.splice(e,0,s),l.bitmap|=o,i}}else e=Gk(a,c);o=l.children,s=e,c+=zk,l=o[e]}else if(`key`in l){let u;if(a===l.hash){let o=e.compare(t,l.key);if(e.compare(t,l.key)===0)return l.val=r(l.val,n),i;u={hash:a,collision:HO(o,t,r(void 0,n),l.key,l.val)}}else u=Jk(c,{hash:a,key:t,val:r(void 0,n)},l);return o===void 0?i=u:o[s]=u,i}else if(a===l.hash)return l.collision=ok(e,t,n,r,l.collision),i;else{let e=Jk(c,l,{hash:a,key:t,val:r(void 0,n)});return o===void 0?i=e:o[s]=e,i}while(l);throw Error(`Internal immutable-collections violation: hamt mutate insert reached null`)}function Zk(e,t,n){let r=null,i=0,a;a=n?function(e,t){return e===void 0?(i++,t):n(e,t)}:function(e,t){return e===void 0&&i++,t};for(let[n,i]of t)r=Xk(e,n,i,a,r);return[r,i]}function Qk(e,t,n,r){let i=null,a=0,o;o=r?function(e,t){return e===void 0?(a++,r(void 0,t)):r(e,t)}:function(e,t){return e===void 0&&a++,t};for(let r of t)i=Xk(e,n(r),r,o,i);return[i,a]}function $k(e){for(;;)if(`children`in e){if(e.children.length===1)e=e.children[0];else return null}else return e}function eA(e,t,n){let r=e[e.length-1];if(r.node.bitmap===Vk){let t=r.node.children;t.splice(r.childIdx,1);let n=~(1<<r.childIdx);if(e.length===1)return{bitmap:n,children:t};{let r=e[e.length-2];return r.node.children[r.childIdx]={bitmap:n,children:t},e[0].node}}if(r.node.children.length===2){let t=$k(r.node.children[1-r.childIdx]);if(t){for(let n=e.length-2;n>=0;n--){let r=e[n];if(r.node.children.length!==1)return r.node.children[r.childIdx]=t,e[0].node}return t}}return r.node.bitmap&=~Hk(t,n-zk),r.node.children.splice(r.childIdx,1),e[0].node}function tA(e,t,n){if(e.length>0){let n=e[e.length-1];n.node.children[n.childIdx]=t}e.push({node:t,childIdx:n})}function nA(e,t,n,r,i){if(n===null)return null;r===void 0&&(r=e.hash(t)),i===void 0&&(i=0);let a=[],o=n;do if(`children`in o){let e,t=o.bitmap;if(t!==Vk){let a=Hk(r,i);if((t&a)===0)return n;e=Wk(t,a)}else e=Gk(r,i);let s={bitmap:t,children:[...o.children]};tA(a,s,e),i+=zk,o=s.children[e]}else if(`key`in o)return r===o.hash&&e.compare(t,o.key)===0?a.length===0?null:eA(a,r,i):n;else if(r===o.hash){let i=ak(e,t,Kk,o.collision);if(i===o.collision)return n;let s;if(s=i.size===1?{hash:r,key:i.key,val:i.val}:{hash:r,collision:i},a.length>0){let e=a[a.length-1];return e.node.children[e.childIdx]=s,a[0].node}return s}else return n;while(o);throw Error(`Internal immutable-collections violation: hamt remove reached null`)}function rA(e,t,n,r){if(r===null){let r=n(void 0);return r===void 0?[null,0]:[{hash:e.hash(t),key:t,val:r},1]}let i=e.hash(t),a=[],o=0,s=r;do if(`children`in s){let e,c=s.bitmap;if(c!==Vk){let l=Hk(i,o);if((c&l)===0){let e=n(void 0);if(e===void 0)return[r,0];{let n=s.children,r=Wk(c,l),o=[...n.slice(0,r),{hash:i,key:t,val:e},...n.slice(r)],u={bitmap:c|l,children:o};if(a.length>0){let e=a[a.length-1];return e.node.children[e.childIdx]=u,[a[0].node,1]}return[u,1]}}e=Wk(c,l)}else e=Gk(i,o);let l={bitmap:c,children:[...s.children]};tA(a,l,e),o+=zk,s=l.children[e]}else if(`key`in s){let c,l;if(i===s.hash){let u=e.compare(t,s.key);if(u===0){let e=n(s.val);if(e===void 0)return a.length===0?[null,-1]:[eA(a,i,o),-1];if(e===s.val)return[r,0];c={hash:i,key:t,val:e},l=0}else{let e=n(void 0);if(e===void 0)return[r,0];c={hash:i,collision:HO(u,t,e,s.key,s.val)},l=1}}else{let e=n(void 0);if(e===void 0)return[r,0];c=Jk(o,{hash:i,key:t,val:e},s),l=1}if(a.length>0){let e=a[a.length-1];return e.node.children[e.childIdx]=c,[a[0].node,l]}return[c,l]}else{let c,l;if(i===s.hash){let a=ak(e,t,n,s.collision);if(a===s.collision)return[r,0];l=a.size-s.collision.size,c=a.size===1?{hash:i,key:a.key,val:a.val}:{hash:i,collision:a}}else{let e=n(void 0);if(e===void 0)return[r,0];c=Jk(o,{hash:i,key:t,val:e},s),l=1}if(a.length>0){let e=a[a.length-1];return e.node.children[e.childIdx]=c,[a[0].node,l]}return[c,l]}while(s);throw Error(`Internal immutable-collections violation: hamt alter reached null`)}function*iA(e,t){if(t===null)return;let n=[t],r;for(;r=n.pop();)if(`children`in r)for(let e=0,t=r.children,i=t.length;e<i;e++)n.push(t[e]);else`key`in r?yield e(r.key,r.val):yield*lk(e,r.collision)}function aA(e,t,n){let r=t;if(n===null)return r;let i=[n],a;for(;a=i.pop();)if(`children`in a)for(let e=0,t=a.children,n=t.length;e<n;e++)i.push(t[e]);else r=`key`in a?e(r,a.key,a.val):dk(e,r,a.collision);return r}function oA(e,t){if(t===null)return null;function n(t){if(`children`in t){let e;for(let r=0,i=t.children,a=i.length;r<a;r++){let t=i[r],a=n(t);e?e.push(a):t!==a&&(e=[...i.slice(0,r),a])}return e?{bitmap:t.bitmap,children:e}:t}if(`key`in t){let n=e(t.val,t.key);return t.val===n?t:{hash:t.hash,key:t.key,val:n}}{let n=pk(e,t.collision);return n===t.collision?t:{hash:t.hash,collision:n}}}return n(t)}function sA(e,t,n){if(n===null)return[null,0];let r=0;function i(n){if(`children`in n){let e=n.bitmap,t,r=e;for(let a=1,o=0,s=e;s!==0;s&=~a,a<<=1)if(e&a){let e=n.children[o],s=i(e);t?s?t.push(s):r&=~a:s?e!==s&&(t=[...n.children.slice(0,o),s]):(t=[...n.children.slice(0,o)],r&=~a),o++}return t?t.length===0?null:t.length===1&&$k(t[0])||{bitmap:r,children:t}:n}if(`key`in n){let i=e(n.val,n.key);return i===void 0||t&&i===null?null:n.val===i?(r++,n):(r++,{hash:n.hash,key:n.key,val:i})}{let i=mk(e,t,n.collision);return i===n.collision?(r+=n.collision.size,n):i===null?null:i.size===1?(r+=1,{hash:n.hash,key:i.key,val:i.val}):(r+=i.size,{hash:n.hash,collision:i})}}return[i(n),r]}function cA(e,t,n,r){if(n===null)return[r,0];if(r===null)return[n,0];let i=0;function a(n,r,o){if(`key`in r&&`key`in o){if(r.hash===o.hash){let n=e.compare(r.key,o.key);if(n===0){i++;let e=t(r.val,o.val,r.key);return e===r.val?r:e===o.val?o:{hash:r.hash,key:r.key,val:e}}return{hash:r.hash,collision:HO(n,r.key,r.val,o.key,o.val)}}return Jk(n,r,o)}if(`key`in r&&`collision`in o){if(r.hash===o.hash){let n=ak(e,r.key,e=>e===void 0?r.val:(i++,t(r.val,e,r.key)),o.collision);return n===o.collision?o:{hash:r.hash,collision:n}}return Jk(n,r,o)}if(`collision`in r&&`key`in o){if(r.hash===o.hash){let n=ak(e,o.key,e=>e===void 0?o.val:(i++,t(e,o.val,o.key)),r.collision);return n===r.collision?r:{hash:o.hash,collision:n}}return Jk(n,r,o)}if(`collision`in r&&`collision`in o){if(r.hash===o.hash){let n=Ek(e,t,r.collision,o.collision);return n===r.collision?r:(i+=r.collision.size+o.collision.size-n.size,{hash:r.hash,collision:n})}return Jk(n,r,o)}if(`children`in r&&`children`in o){let e=r.bitmap,t=o.bitmap,i=e&t,s;for(let c=1,l=0,u=0,d=e|t;d!==0;d&=~c,c<<=1)if(c&i){let e=a(n+zk,r.children[l],o.children[u]);s?s.push(e):e!==r.children[l]&&(s=[...r.children.slice(0,l),e]),l++,u++}else c&e?(s&&s.push(r.children[l]),l++):c&t&&(s?s.push(o.children[u]):s=[...r.children.slice(0,l),o.children[u]],u++);return s?{bitmap:e|t,children:s}:r}if(`children`in r){let e=o.hash,t=r.bitmap,i=r.children,s;if(t===Vk)s=Gk(e,n);else{let r=Hk(e,n);if(t&r)s=Wk(t,r);else{let e=Wk(t,r),n=[...i.slice(0,e),o,...i.slice(e)];return{bitmap:t|r,children:n}}}let c=i[s],l=a(n+zk,c,o);if(l===c)return r;{let e=[...i];return e[s]=l,{bitmap:t,children:e}}}{let e=r.hash,t=o,i=t.bitmap,s=t.children,c;if(i===Vk)c=Gk(e,n);else{let t=Hk(e,n);if(i&t)c=Wk(i,t);else{let e=Wk(i,t),n=[...s.slice(0,e),r,...s.slice(e)];return{bitmap:i|t,children:n}}}let l=s[c],u=a(n+zk,r,l);if(u===l)return o;{let e=[...s];return e[c]=u,{bitmap:i,children:e}}}}return[a(0,n,r),i]}function lA(e,t,n,r){if(n===null||r===null)return[null,0];let i=0;function a(n,r,o){if(`key`in r){let a=qk(e,r.key,o,r.hash,n);if(a!==void 0){i++;let e=t(r.val,a,r.key);return e===r.val?r:{hash:r.hash,key:r.key,val:e}}return null}if(`key`in o){let a=qk(e,o.key,r,o.hash,n);if(a!==void 0){i++;let e=t(a,o.val,o.key);return e===o.val?o:{hash:o.hash,key:o.key,val:e}}return null}if(`collision`in r&&`collision`in o){let n=Dk(e,t,r.collision,o.collision);return n===r.collision?(i+=r.collision.size,r):n===null?null:n.size===1?(i+=1,{hash:r.hash,key:n.key,val:n.val}):(i+=n.size,{hash:r.hash,collision:n})}if(`children`in r&&`children`in o){let e=r.bitmap,t=o.bitmap,i=e&t,s,c=i;for(let l=1,u=0,d=0,f=e|t;f!==0;f&=~l,l<<=1)if(l&i){let e=a(n+zk,r.children[u],o.children[d]);s?e===null?c&=~l:s.push(e):e!==r.children[u]&&(e===null?(s=[...r.children.slice(0,u)],c&=~l):s=[...r.children.slice(0,u),e]),u++,d++}else l&e?(s||=[...r.children.slice(0,u)],u++):l&t&&d++;return s?s.length===0?null:s.length===1?$k(s[0])??{bitmap:c,children:s}:{bitmap:c,children:s}:r}if(`children`in r){let e=o.hash,t=r.bitmap,i;if(t===Vk)i=Gk(e,n);else{let r=Hk(e,n);if(r&t)i=Wk(t,r);else return null}return a(n+zk,r.children[i],o)}{let e=r.hash,t=o,i=t.bitmap,s;if(i===Vk)s=Gk(e,n);else{let t=Hk(e,n);if(t&i)s=Wk(i,t);else return null}return a(n+zk,r,t.children[s])}}return[a(0,n,r),i]}function uA(e,t,n){if(n===null)return[t,0];if(t===null)return[null,0];let r=0;function i(t,n,a){if(`key`in n)return qk(e,n.key,a,n.hash,t)===void 0?n:(r+=1,null);if(`key`in a){let i=nA(e,a.key,n,a.hash,t);return i===n?n:(r+=1,i)}if(`children`in n&&`children`in a){let e=n.bitmap,r=a.bitmap,o=e&r,s,c=e;for(let l=1,u=0,d=0,f=e;f!==0;f&=~l,l<<=1)if(l&o){let e=i(t+zk,n.children[u],a.children[d]);s?e===null?c&=~l:s.push(e):e!==n.children[u]&&(e===null?(s=[...n.children.slice(0,u)],c&=~l):s=[...n.children.slice(0,u),e]),u++,d++}else l&e?(s&&s.push(n.children[u]),u++):l&r&&d++;return s?s.length===0?null:s.length===1?$k(s[0])??{bitmap:c,children:s}:{bitmap:c,children:s}:n}if(`collision`in n&&`collision`in a){let t=Ok(e,n.collision,a.collision);return t===null?(r+=n.collision.size,null):t.size===1?(r+=n.collision.size-1,{hash:n.hash,key:t.key,val:t.val}):t===n.collision?n:(r+=n.collision.size-t.size,{hash:n.hash,collision:t})}if(`children`in n){let e=a.hash,r=n.bitmap,o,s;if(r===Vk)o=Gk(e,t),s=1<<o;else if(s=Hk(e,t),r&s)o=Wk(r,s);else return n;let c=n.children,l=c[o],u=i(t+zk,l,a);if(u===l)return n;if(u===null){if(c.length===2){let e=c[1-o];return $k(e)??{bitmap:r&~s,children:[e]}}{let e=[...c.slice(0,o),...c.slice(o+1)];return{bitmap:r&~s,children:e}}}{let e=[...c];return e[o]=u,{bitmap:r,children:e}}}{let e=n.hash,r=a,o=r.bitmap,s;if(o===Vk)s=Gk(e,t);else{let r=Hk(e,t);if(r&o)s=Wk(o,r);else return n}return i(t+zk,n,r.children[s])}}return[i(0,t,n),r]}function dA(e,t,n,r){if(r===null)return[n,0];if(n===null){let[e,t]=sA(i,!1,r);return[e,-t]}function i(e,n){return t(void 0,e,n)}let a=0;function o(n,r,s){if(`key`in r&&`key`in s){if(r.hash===s.hash){let n=e.compare(r.key,s.key);if(n===0){let e=t(r.val,s.val,r.key);return e===void 0?(a+=1,null):e===r.val?r:e===s.val?s:{hash:r.hash,key:r.key,val:e}}{let e=t(void 0,s.val,s.key);return e===void 0?r:(--a,{hash:r.hash,collision:HO(n,r.key,r.val,s.key,e)})}}{let e=t(void 0,s.val,s.key);return e===void 0?r:(--a,Jk(n,r,{hash:s.hash,key:s.key,val:e}))}}if(`collision`in r&&`key`in s){if(r.hash===s.hash){let n=ak(e,s.key,e=>t(e,s.val,s.key),r.collision);return n===r.collision?r:n.size===1?(a+=r.collision.size-1,{hash:r.hash,key:n.key,val:n.val}):(a+=r.collision.size-n.size,{hash:r.hash,collision:n})}{let e=t(void 0,s.val,s.key);return e===void 0?r:(--a,Jk(n,r,{hash:s.hash,key:s.key,val:e}))}}if(`key`in r&&`collision`in s){if(r.hash===s.hash){let n=Ak(e,t,{key:r.key,val:r.val,size:1,left:null,right:null},s.collision);return n===null?(a+=1,null):(a+=1-n.size,{hash:r.hash,collision:n})}{let e=mk(i,!1,s.collision);return e===null?r:e.size===1?(--a,Jk(n,r,{hash:s.hash,key:e.key,val:e.val})):(a-=e.size,Jk(n,r,{hash:s.hash,collision:e}))}}if(`collision`in r&&`collision`in s){if(r.hash===s.hash){let n=Ak(e,t,r.collision,s.collision);return n===null?(a+=r.collision.size,null):n===r.collision?r:n.size===1?(a+=r.collision.size-1,{hash:r.hash,key:n.key,val:n.val}):(a+=r.collision.size-n.size,{hash:r.hash,collision:n})}{let e=mk(i,!1,s.collision);return e===null?r:e.size===1?(--a,Jk(n,r,{hash:s.hash,key:e.key,val:e.val})):(a-=e.size,Jk(n,r,{hash:s.hash,collision:e}))}}if(`children`in r&&`children`in s){let e=r.bitmap,t=s.bitmap,c=e&t,l,u=e;for(let d=1,f=0,p=0,m=e|t;m!==0;m&=~d,d<<=1)if(d&c){let e=o(n+zk,r.children[f],s.children[p]);l?e===null?u&=~d:l.push(e):e!==r.children[f]&&(e===null?(l=[...r.children.slice(0,f)],u&=~d):l=[...r.children.slice(0,f),e]),f++,p++}else if(d&e)l&&l.push(r.children[f]),f++;else if(d&t){let[e,t]=sA(i,!1,s.children[p]);e!==null&&(a-=t,u|=d,l?l.push(e):l=[...r.children.slice(0,f),e]),p++}return l?l.length===0?null:l.length===1?$k(l[0])??{bitmap:u,children:l}:{bitmap:u,children:l}:r}if(`children`in r){let e=s,t=e.hash,c=r.bitmap,l,u;if(c===Vk?(l=Gk(t,n),u=1<<l):(u=Hk(t,n),l=Wk(c,u)),c&u){let e=r.children,t=e[l],i=o(n+zk,t,s);if(i===null){if(e.length===2){let t=e[1-l];return $k(t)??{bitmap:c&~u,children:[t]}}{let t=[...e.slice(0,l),...e.slice(l+1)];return{bitmap:c&~u,children:t}}}if(i===t)return r;{let t=[...e];return t[l]=i,{bitmap:c,children:t}}}{let t=Wk(c,u),[n,o]=sA(i,!1,e);if(n!==null){a-=o;let e=r.children,i=[...e.slice(0,t),n,...e.slice(t)];return{bitmap:c|u,children:i}}return r}}{let e=s,t=r.hash,c=Hk(t,n),l=e.bitmap,u,d=l;for(let t=1,s=0,f=l|c;f!==0;f&=~t,t<<=1)if(t&l){let l;if(t&c)l=o(n+zk,r,e.children[s]);else{let t;[l,t]=sA(i,!1,e.children[s]),a-=t}u?l===null?d&=~t:u.push(l):l!==e.children[s]&&(l===null?(u=[...e.children.slice(0,s)],d&=~t):u=[...e.children.slice(0,s),l]),s++}else t&c&&(d|=t,u?u.push(r):u=[...e.children.slice(0,s),r]);return u?u.length===0?null:u.length===1?$k(u[0])??{bitmap:d,children:u}:{bitmap:d,children:u}:s}}return[o(0,n,r),a]}function fA(){return!0}var pA=class e{static empty(){return new e(Rk(),null,0)}static ofKeys(t){let n=t;return new e(n.cfg,n.root,n.size)}static from(t){let n=null,r=0,i=Rk();function a(e){return e===void 0&&r++,!0}for(let e of t)n=Xk(i,e,void 0,a,n);return new e(i,n,r)}static build(t,n){let r=null,i=0,a=Rk();function o(e){return e===void 0&&i++,!0}for(let e of t)r=Xk(a,n(e),void 0,o,r);return new e(a,r,i)}has(e){return this.root!==null&&qk(this.cfg,e,this.root)!==void 0}[Symbol.iterator](){return iA(e=>e,this.root)}entries(){return iA(e=>[e,e],this.root)}keys(){return iA(e=>e,this.root)}values(){return iA(e=>e,this.root)}forEach(e){aA((t,n)=>{e(n,n,this)},void 0,this.root)}fold(e,t){return aA((t,n)=>e(t,n),t,this.root)}toLazySeq(){let e=this.root;return SA.ofIterator(()=>iA(e=>e,e))}add(t){let[n,r]=Yk(this.cfg,t,fA,this.root);return n===this.root?this:new e(this.cfg,n,this.size+ +!!r)}delete(t){let n=nA(this.cfg,t,this.root);return n===this.root?this:new e(this.cfg,n,this.size-1)}union(t){let[n,r]=cA(this.cfg,fA,this.root,t.root);return n===this.root?this:new e(this.cfg,n,this.size+t.size-r)}static union(...t){let n=t.filter(e=>e.size>0);if(n.length===0)return e.empty();{let t=n[0].root,r=n[0].size;for(let e=1;e<n.length;e++){let i=n[e],[a,o]=cA(i.cfg,fA,t,i.root);t=a,r+=i.size-o}return t===n[0].root?n[0]:new e(n[0].cfg,t,r)}}append(t){return this.union(e.from(t))}intersection(t){let[n,r]=lA(this.cfg,fA,this.root,t.root);return n===this.root?this:new e(this.cfg,n,r)}static intersection(...t){if(t.length===0)return e.empty();{let n=t[0].root,r=0;for(let e=1;e<t.length;e++){let i=t[e],[a,o]=lA(i.cfg,fA,n,i.root);n=a,r+=o}return n===t[0].root?t[0]:new e(t[0].cfg,n,r)}}difference(t){let[n,r]=uA(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n,this.size-r)}symmetricDifference(t){let[n,r]=dA(this.cfg,e=>e===void 0||void 0,this.root,t.root);return n===this.root?this:new e(this.cfg,n,this.size-r)}filter(t){let[n,r]=sA((e,n)=>t(n)?e:void 0,!1,this.root);return n===this.root?this:new e(this.cfg,n,r)}transform(e){return e(this)}isSubsetOf(e){if(this.size>e.size)return!1;for(let t of this)if(!e.has(t))return!1;return!0}isSupersetOf(e){return e.isSubsetOf(this)}isDisjointFrom(e){if(this.size<=e.size){for(let t of this)if(e.has(t))return!1}else for(let t of e)if(this.has(t))return!1;return!0}constructor(e,t,n){this.cfg=e,this.root=t,this.size=n}};Object.defineProperty(pA.prototype,"@@__IMMUTABLE_SET__@@",{value:!0});function mA(){return!0}function hA(){}var gA=class e{static empty(){return new e(tk(),null)}static ofKeys(t){let n=t;return new e(n.cfg,n.root)}static from(t){let n=tk();return new e(n,ck(n,t,e=>e,mA))}static build(t,n){let r=tk();return new e(r,ck(r,t,n,mA))}get size(){return this.root===null?0:this.root.size}has(e){return this.root!==null&&nk(this.cfg,e,this.root)!==void 0}[Symbol.iterator](){return lk(e=>e,this.root)}entries(){return lk(e=>[e,e],this.root)}keys(){return lk(e=>e,this.root)}values(){return lk(e=>e,this.root)}forEach(e){dk((t,n)=>{e(n,n,this)},void 0,this.root)}foldl(e,t){return dk((t,n)=>e(t,n),t,this.root)}foldr(e,t){return fk((t,n,r)=>e(t,r),t,this.root)}toAscLazySeq(){let e=this.root;return SA.ofIterator(()=>lk(e=>e,e))}toDescLazySeq(){let e=this.root;return SA.ofIterator(()=>uk(e=>e,e))}add(t){let n=ak(this.cfg,t,mA,this.root);return n===this.root?this:new e(this.cfg,n)}delete(t){let n=ak(this.cfg,t,hA,this.root);return n===this.root?this:new e(this.cfg,n)}partition(t){let[n,r]=gk(t,this.root);return n===this.root?[this,new e(this.cfg,null)]:r===this.root?[new e(this.cfg,null),this]:[new e(this.cfg,n),new e(this.cfg,r)]}filter(t){let n=mk((e,n)=>t(n)?!0:void 0,!1,this.root);return n===this.root?this:new e(this.cfg,n)}split(t){let n=hk(this.cfg,t,this.root);return{below:new e(this.cfg,n.below),present:n.val!==void 0,above:new e(this.cfg,n.above)}}transform(e){return e(this)}lookupMin(){if(this.root!==null)return rk(this.root)[0]}lookupMax(){if(this.root!==null)return ik(this.root)[0]}deleteMin(){if(this.root===null)return this;let t=_k(this.root);return new e(this.cfg,t.rest)}deleteMax(){if(this.root===null)return this;let t=vk(this.root);return new e(this.cfg,t.rest)}minView(){if(this.root!==null){let t=_k(this.root);return{min:t.k,rest:new e(this.cfg,t.rest)}}}maxView(){if(this.root!==null){let t=vk(this.root);return{max:t.k,rest:new e(this.cfg,t.rest)}}}indexOf(e){return xk(this.cfg,e,this.root)}getByIndex(e){return Sk(e,this.root)?.[0]}take(t){let n=Ck(t,this.root);return n===this.root?this:new e(this.cfg,n)}drop(t){let n=wk(t,this.root);return n===this.root?this:new e(this.cfg,n)}deleteByIndex(t){let n=Tk(t,hA,this.root);return n===this.root?this:new e(this.cfg,n)}union(t){let n=Ek(this.cfg,mA,this.root,t.root);return n===this.root?this:new e(this.cfg,n)}static union(...t){let n=t.filter(e=>e.size>0);if(n.length===0)return e.empty();{let t=n[0].root;for(let e=1;e<n.length;e++){let r=n[e];t=Ek(r.cfg,mA,t,r.root)}return t===n[0].root?n[0]:new e(n[0].cfg,t)}}intersection(t){let n=Dk(this.cfg,mA,this.root,t.root);return n===this.root?this:new e(this.cfg,n)}static intersection(...t){if(t.length===0)return e.empty();{let n=t[0].root;for(let e=1;e<t.length;e++){let r=t[e];n=Dk(r.cfg,mA,n,r.root)}return n===t[0].root?t[0]:new e(t[0].cfg,n)}}difference(t){let n=Ok(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n)}symmetricDifference(t){let n=kk(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n)}isSubsetOf(e){return yk(this.cfg,this.root,e.root)}isSupersetOf(e){return yk(this.cfg,e.root,this.root)}isDisjointFrom(e){return bk(this.cfg,this.root,e.root)}constructor(e,t){this.cfg=e,this.root=t}};Object.defineProperty(gA.prototype,"@@__IMMUTABLE_SET__@@",{value:!0}),Object.defineProperty(gA.prototype,"@@__IMMUTABLE_ORDERED__@@",{value:!0});function _A(){}var vA=class e{static empty(){return new e(tk(),null)}static from(t,n){let r=tk();return new e(r,sk(r,t,n))}static build(t,n,r){let i=tk();return new e(i,ck(i,t,n,r))}get size(){return this.root===null?0:this.root.size}get(e){return nk(this.cfg,e,this.root)}has(e){return nk(this.cfg,e,this.root)!==void 0}[Symbol.iterator](){return lk((e,t)=>[e,t],this.root)}entries(){return lk((e,t)=>[e,t],this.root)}keys(){return lk(e=>e,this.root)}values(){return lk((e,t)=>t,this.root)}forEach(e){dk((t,n,r)=>{e(r,n,this)},void 0,this.root)}foldl(e,t){return dk(e,t,this.root)}foldr(e,t){return fk(e,t,this.root)}toAscLazySeq(){let e=this.root;return SA.ofIterator(()=>lk((e,t)=>[e,t],e))}keysToAscLazySeq(){let e=this.root;return SA.ofIterator(()=>lk(e=>e,e))}valuesToAscLazySeq(){let e=this.root;return SA.ofIterator(()=>lk((e,t)=>t,e))}toDescLazySeq(){let e=this.root;return SA.ofIterator(()=>uk((e,t)=>[e,t],e))}keysToDescLazySeq(){let e=this.root;return SA.ofIterator(()=>uk(e=>e,e))}valuesToDescLazySeq(){let e=this.root;return SA.ofIterator(()=>uk((e,t)=>t,e))}keySet(){return gA.ofKeys(this)}set(t,n){let r=ak(this.cfg,t,()=>n,this.root);return r===this.root?this:new e(this.cfg,r)}alter(t,n){let r=ak(this.cfg,t,n,this.root);return r===this.root?this:new e(this.cfg,r)}delete(t){let n=ak(this.cfg,t,_A,this.root);return n===this.root?this:new e(this.cfg,n)}partition(t){let[n,r]=gk(t,this.root);return n===this.root?[this,new e(this.cfg,null)]:r===this.root?[new e(this.cfg,null),this]:[new e(this.cfg,n),new e(this.cfg,r)]}mapValues(t){let n=pk(t,this.root);return n===this.root?this:new e(this.cfg,n)}collectValues(t){let n=mk(t,!0,this.root);return n===this.root?this:new e(this.cfg,n)}filter(t){let n=mk((e,n)=>t(e,n)?e:void 0,!1,this.root);return n===this.root?this:new e(this.cfg,n)}split(t){let n=hk(this.cfg,t,this.root);return{below:new e(this.cfg,n.below),val:n.val,above:new e(this.cfg,n.above)}}transform(e){return e(this)}lookupMin(){if(this.root!==null)return rk(this.root)}lookupMax(){if(this.root!==null)return ik(this.root)}deleteMin(){if(this.root===null)return this;let t=_k(this.root);return new e(this.cfg,t.rest)}deleteMax(){if(this.root===null)return this;let t=vk(this.root);return new e(this.cfg,t.rest)}minView(){if(this.root!==null){let t=_k(this.root);return{minKey:t.k,minVal:t.v,rest:new e(this.cfg,t.rest)}}}maxView(){if(this.root!==null){let t=vk(this.root);return{maxKey:t.k,maxVal:t.v,rest:new e(this.cfg,t.rest)}}}indexOf(e){return xk(this.cfg,e,this.root)}getByIndex(e){return Sk(e,this.root)}take(t){let n=Ck(t,this.root);return n===this.root?this:new e(this.cfg,n)}drop(t){let n=wk(t,this.root);return n===this.root?this:new e(this.cfg,n)}setByIndex(t,n){let r=Tk(t,()=>n,this.root);return r===this.root?this:new e(this.cfg,r)}deleteByIndex(t){let n=Tk(t,_A,this.root);return n===this.root?this:new e(this.cfg,n)}alterByIndex(t,n){let r=Tk(t,n,this.root);return r===this.root?this:new e(this.cfg,r)}union(t,n){let r=Ek(this.cfg,n??((e,t)=>t),this.root,t.root);return r===this.root?this:new e(this.cfg,r)}static union(t,...n){let r=n.filter(e=>e.size>0);if(r.length===0)return e.empty();{let n=r[0].root;for(let e=1;e<r.length;e++){let i=r[e];n=Ek(i.cfg,t,n,i.root)}return n===r[0].root?r[0]:new e(r[0].cfg,n)}}intersection(t,n){let r=Dk(this.cfg,n??((e,t)=>t),this.root,t.root);return r===this.root?this:new e(this.cfg,r)}static intersection(t,...n){if(n.length===0)return e.empty();{let r=n[0].root;for(let e=1;e<n.length;e++){let i=n[e];r=Dk(i.cfg,t,r,i.root)}return r===n[0].root?n[0]:new e(n[0].cfg,r)}}difference(t){let n=Ok(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n)}symmetricDifference(t){let n=kk(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n)}withoutKeys(t){let n=t,r=Ok(this.cfg,this.root,n.root);return r===this.root?this:new e(this.cfg,r)}adjust(t,n){let r=Ak(this.cfg,n,this.root,t.root);return r===this.root?this:new e(this.cfg,r)}constructor(e,t){this.cfg=e,this.root=t}};Object.defineProperty(vA.prototype,"@@__IMMUTABLE_KEYED__@@",{value:!0}),Object.defineProperty(vA.prototype,"@@__IMMUTABLE_ORDERED__@@",{value:!0});var yA=function(e,t,n,r){if(n===`a`&&!r)throw TypeError(`Private accessor was defined without a getter`);if(typeof t==`function`?e!==t||!r:!t.has(e))throw TypeError(`Cannot read private member from an object whose class did not declare it`);return n===`m`?r:n===`a`?r.call(e):r?r.value:t.get(e)},bA=function(e,t,n,r,i){if(r===`m`)throw TypeError(`Private method is not writable`);if(r===`a`&&!i)throw TypeError(`Private accessor was defined without a setter`);if(typeof t==`function`?e!==t||!i:!t.has(e))throw TypeError(`Cannot write private member to an object whose class did not declare it`);return r===`a`?i.call(e,n):i?i.value=n:t.set(e,n),n},xA,SA=class e{static of(t){return new e(t)}static ofIterator(t){return new e({[Symbol.iterator](){return t()}})}static ofObject(t){return e.ofIterator(function*(){for(let e in t)Object.prototype.hasOwnProperty.call(t,e)&&(yield[e,t[e]])})}static ofRange(t,n,r){let i=r||1;return i>0?e.ofIterator(function*(){for(let e=t;e<n;e+=i)yield e}):e.ofIterator(function*(){for(let e=t;e>n;e+=i)yield e})}[(xA=new WeakMap,Symbol.iterator)](){return yA(this,xA,`f`)[Symbol.iterator]()}aggregate(t,n,r){let i=new Map;for(let e of yA(this,xA,`f`)){let a=t(e),o=i.get(a);o===void 0?i.set(a,n(e)):i.set(a,r(o,n(e)))}return e.of(i)}append(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){yield*n,yield t})}chunk(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){let e=[];for(let r of n)e.push(r),e.length===t&&(yield e,e=[]);e.length>0&&(yield e)})}concat(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){yield*n,yield*t})}distinct(){let t=yA(this,xA,`f`);return e.ofIterator(function*(){let e=new Set;for(let n of t)e.has(n)||(e.add(n),yield n)})}distinctBy(t,...n){n.unshift(t);let r=yA(this,xA,`f`),i={hash:e=>Lk(...n.map(t=>t(e))),compare:YO(...n)};return e.ofIterator(function*(){let e=null,t=!1;function n(e){return t=e===void 0,!0}for(let a of r)e=Xk(i,a,!0,n,e),t&&(yield a)})}distinctAndSortBy(t,...n){n.unshift(t);let r={compare:YO(...n)},i=null;function a(e,t){return e===void 0?t:e}for(let e of yA(this,xA,`f`))i=ok(r,e,e,a,i);return e.ofIterator(()=>lk(e=>e,i))}drop(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){let e=0;for(let r of n)e>=t?yield r:e+=1})}dropWhile(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){let e=!0;for(let r of n)e?t(r)||(e=!1,yield r):yield r})}filter(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){for(let e of n)t(e)&&(yield e)})}flatMap(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){for(let e of n)yield*t(e)})}groupBy(t,...n){n.unshift(t);let r={hash:e=>Lk(...n.map(t=>t(e))),compare:YO(...n)},i=null;function a(e,t){return e===void 0?[t]:(e.push(t),e)}for(let e of yA(this,xA,`f`))i=Xk(r,e,e,a,i);return e.ofIterator(()=>iA((e,t)=>n.length===1?[n[0](e),t]:[n.map(t=>t(e)),t],i))}orderedGroupBy(t,...n){n.unshift(t);let r={compare:YO(...n)},i=null;function a(e,t){return e===void 0?[t]:(e.push(t),e)}for(let e of yA(this,xA,`f`))i=ok(r,e,e,a,i);return e.ofIterator(()=>lk((e,t)=>n.length===1?[JO(n[0],e),t]:[n.map(t=>JO(t,e)),t],i))}map(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){let e=0;for(let r of n)yield t(r,e),e+=1})}collect(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){for(let e of n){let n=t(e);n!=null&&(yield n)}})}prepend(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){yield t,yield*n})}prependAll(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){yield*t,yield*n})}sortWith(t){return e.of(Array.from(yA(this,xA,`f`)).sort(t))}sortBy(t,...n){return e.of(Array.from(yA(this,xA,`f`)).sort(YO(t,...n)))}tail(){let t=yA(this,xA,`f`);return e.ofIterator(function*(){let e=!1;for(let n of t)e?yield n:e=!0})}take(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){let e=0;for(let r of n){if(e>=t)return;yield r,e+=1}})}takeWhile(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){for(let e of n)if(t(e))yield e;else return})}zip(t){let n=yA(this,xA,`f`);return e.ofIterator(function*(){let e=n[Symbol.iterator](),r=t[Symbol.iterator]();for(;;){let t=e.next(),n=r.next();if(t.done||n.done)return;yield[t.value,n.value]}})}every(e){for(let t of yA(this,xA,`f`))if(!e(t))return!1;return!0}some(e){for(let t of yA(this,xA,`f`))if(e(t))return!0;return!1}isEmpty(){return yA(this,xA,`f`)[Symbol.iterator]().next().done===!0}find(e){for(let t of yA(this,xA,`f`))if(e(t))return t}head(){let e=yA(this,xA,`f`)[Symbol.iterator]().next();if(!e.done)return e.value}length(){let e=0;for(let t of yA(this,xA,`f`))e+=1;return e}maxBy(e,...t){let n=YO(e,...t),r;for(let e of yA(this,xA,`f`))(r===void 0||n(r,e)<=0)&&(r=e);return r}minBy(e,...t){let n=YO(e,...t),r;for(let e of yA(this,xA,`f`))(r===void 0||n(r,e)>=0)&&(r=e);return r}sumBy(e){let t=0;for(let n of yA(this,xA,`f`))t+=e(n);return t}toRArray(){return Array.from(yA(this,xA,`f`))}toMutableArray(){return Array.from(yA(this,xA,`f`))}toSortedArray(e,...t){return Array.from(yA(this,xA,`f`)).sort(YO(e,...t))}toHashMap(e,t){return CA.from(this.map(e),t)}buildHashMap(e,t){return CA.build(yA(this,xA,`f`),e,t)}toOrderedMap(e,t){return vA.from(this.map(e),t)}buildOrderedMap(e,t){return vA.build(yA(this,xA,`f`),e,t)}toRMap(e,t){return this.toMutableMap(e,t)}toMutableMap(e,t){let n=new Map;for(let r of yA(this,xA,`f`)){let[i,a]=e(r);if(t!==void 0){let e=n.get(i);e?n.set(i,t(e,a)):n.set(i,a)}else n.set(i,a)}return n}toObject(e,t){let n={};for(let r of yA(this,xA,`f`)){let[i,a]=e(r);if(t!==void 0){let e=n[i];n[i]=e?t(e,a):a}else n[i]=a}return n}toHashSet(e){return pA.build(yA(this,xA,`f`),e)}toOrderedSet(e){return gA.build(yA(this,xA,`f`),e)}toRSet(e){return this.toMutableSet(e)}toMutableSet(e){let t=new Set;for(let n of yA(this,xA,`f`))t.add(e(n));return t}fold(e,t){let n=e;for(let e of yA(this,xA,`f`))n=t(n,e);return n}reduce(e,t){if(t===void 0){let t=!0,n;for(let r of yA(this,xA,`f`))t?(t=!1,n=r):n=e(n,r);if(t)throw Error(`Empty sequence`);return n}return this.fold(t,e)}transform(e){return e(this)}toLookup(e,t){let n;return n=t===void 0?(e,t)=>e===void 0?[t]:(e.push(t),e):(e,n)=>e===void 0?[t(n)]:(e.push(t(n)),e),CA.build(yA(this,xA,`f`),e,n)}toOrderedLookup(e,t){let n;return n=t===void 0?(e,t)=>e===void 0?[t]:(e.push(t),e):(e,n)=>e===void 0?[t(n)]:(e.push(t(n)),e),vA.build(yA(this,xA,`f`),e,n)}toLookupMap(e,t,n,r){let i;return i=n===void 0?(e,n)=>(e??CA.empty()).set(t(n),n):r===void 0?(e,r)=>(e??CA.empty()).set(t(r),n(r)):(e,i)=>(e??CA.empty()).alter(t(i),e=>e===void 0?n(i):r(e,n(i))),CA.build(yA(this,xA,`f`),e,i)}toLookupOrderedMap(e,t,n,r){let i;return i=n===void 0?(e,n)=>(e??vA.empty()).set(t(n),n):r===void 0?(e,r)=>(e??vA.empty()).set(t(r),n(r)):(e,i)=>(e??vA.empty()).alter(t(i),e=>e===void 0?n(i):r(e,n(i))),vA.build(yA(this,xA,`f`),e,i)}toRLookup(e,t){let n=new Map;for(let r of yA(this,xA,`f`)){let i=e(r),a=t===void 0?r:t(r),o=n.get(i);o===void 0?n.set(i,[a]):o.push(a)}return n}constructor(e){xA.set(this,void 0),bA(this,xA,e,`f`)}},CA=class e{static empty(){return new e(Rk(),null,0)}static from(t,n){let r=Rk(),[i,a]=Zk(r,t,n);return new e(r,i,a)}static build(t,n,r){let i=Rk(),[a,o]=Qk(i,t,n,r);return new e(i,a,o)}get(e){if(this.root!==null)return qk(this.cfg,e,this.root)}has(e){return this.get(e)!==void 0}[Symbol.iterator](){return iA((e,t)=>[e,t],this.root)}entries(){return iA((e,t)=>[e,t],this.root)}keys(){return iA(e=>e,this.root)}values(){return iA((e,t)=>t,this.root)}forEach(e){aA((t,n,r)=>{e(r,n,this)},void 0,this.root)}fold(e,t){return aA(e,t,this.root)}toLazySeq(){let e=this.root;return SA.ofIterator(()=>iA((e,t)=>[e,t],e))}keysToLazySeq(){let e=this.root;return SA.ofIterator(()=>iA(e=>e,e))}valuesToLazySeq(){let e=this.root;return SA.ofIterator(()=>iA((e,t)=>t,e))}keySet(){return pA.ofKeys(this)}set(e,t){return this.modify(e,()=>t)}modify(t,n){let[r,i]=Yk(this.cfg,t,n,this.root);return r===this.root?this:new e(this.cfg,r,this.size+ +!!i)}delete(t){let n=nA(this.cfg,t,this.root);return n===this.root?this:new e(this.cfg,n,this.size-1)}alter(t,n){let[r,i]=rA(this.cfg,t,n,this.root);return r===this.root?this:new e(this.cfg,r,this.size+i)}mapValues(t){let n=oA(t,this.root);return n===this.root?this:new e(this.cfg,n,this.size)}collectValues(t){let[n,r]=sA(t,!0,this.root);return n===this.root?this:new e(this.cfg,n,r)}filter(t){let[n,r]=sA((e,n)=>t(e,n)?e:void 0,!1,this.root);return n===this.root?this:new e(this.cfg,n,r)}transform(e){return e(this)}union(t,n){let[r,i]=cA(this.cfg,n??((e,t)=>t),this.root,t.root);return r===this.root?this:new e(this.cfg,r,this.size+t.size-i)}static union(t,...n){let r=n.filter(e=>e.size>0);if(r.length===0)return e.empty();{let n=r[0].root,i=r[0].size;for(let e=1;e<r.length;e++){let a=r[e],[o,s]=cA(a.cfg,t,n,a.root);n=o,i+=a.size-s}return n===r[0].root?r[0]:new e(r[0].cfg,n,i)}}append(t){return this.union(e.from(t))}intersection(t,n){let[r,i]=lA(this.cfg,n??((e,t)=>t),this.root,t.root);return r===this.root?this:new e(this.cfg,r,i)}static intersection(t,...n){if(n.length===0)return e.empty();{let r=n[0].root,i=0;for(let e=1;e<n.length;e++){let a=n[e],[o,s]=lA(a.cfg,t,r,a.root);r=o,i+=s}return r===n[0].root?n[0]:new e(n[0].cfg,r,i)}}difference(t){let[n,r]=uA(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n,this.size-r)}symmetricDifference(t){let[n,r]=dA(this.cfg,(e,t)=>e===void 0?t:void 0,this.root,t.root);return n===this.root?this:new e(this.cfg,n,this.size-r)}withoutKeys(t){let[n,r]=uA(this.cfg,this.root,t.root);return n===this.root?this:new e(this.cfg,n,this.size-r)}adjust(t,n){let[r,i]=dA(this.cfg,n,this.root,t.root);return r===this.root?this:new e(this.cfg,r,this.size-i)}constructor(e,t,n){this.cfg=e,this.root=t,this.size=n}};Object.defineProperty(CA.prototype,"@@__IMMUTABLE_KEYED__@@",{value:!0});function wA(e,t){let n=null,r=new Map,i=new Set;function a(i){let s;if(t===void 0)s=r.get(i);else for(let[e,n]of r)if(t(e,i)){s=n;break}if(s!==void 0){if(n?.(s[1],i))a.remove(i);else return s[0]}let c=e(i);return r.set(i,[c,Date.now()]),o(`CREATE`,i,c),c}function o(e,t,n){for(let r of i)r({type:e,param:t,atom:n})}return a.unstable_listen=e=>(i.add(e),()=>{i.delete(e)}),a.getParams=()=>r.keys(),a.remove=e=>{if(t===void 0){if(!r.has(e))return;let[t]=r.get(e);r.delete(e),o(`REMOVE`,e,t)}else for(let[n,[i]]of r)if(t(n,e)){r.delete(n),o(`REMOVE`,n,i);break}},a.setShouldRemove=e=>{if(n=e,n)for(let[e,[t,i]]of r)n(i,e)&&(r.delete(e),o(`REMOVE`,e,t))},a}var TA=Symbol(``);function EA(e){let t=Symbol(),n=i(t),r=i((r,i)=>{let a=r(n);return a===t?e(r,i):a},(e,i,a)=>{let o=typeof a==`function`?a(e(r)):a;i(n,o===TA?t:o)});return r}var DA=e=>typeof e?.then==`function`;function OA(e=()=>{try{return window.localStorage}catch{return}},t){let n,r,i={getItem:(i,a)=>{let o=e=>{if(e||=``,n!==e){try{r=JSON.parse(e,t?.reviver)}catch{return a}n=e}return r},s=e()?.getItem(i)??null;return DA(s)?s.then(o):o(s)},setItem:(n,r)=>e()?.setItem(n,JSON.stringify(r,t?.replacer)),removeItem:t=>e()?.removeItem(t)},a=e=>(n,r,i)=>e(n,e=>{let n;try{n=JSON.parse(e||``,t?.reviver)}catch{n=i}r(n)}),o;try{o=e()?.subscribe}catch{}return!o&&typeof window<`u`&&typeof window.addEventListener==`function`&&window.Storage&&(o=(t,n)=>{if(!(e()instanceof window.Storage))return()=>{};let r=r=>{r.storageArea===e()&&r.key===t&&n(r.newValue)};return window.addEventListener(`storage`,r),()=>{window.removeEventListener(`storage`,r)}}),o&&(i.subscribe=a(o)),i}var kA=OA();function AA(e,t,n=kA,r){let a=r?.getOnInit,o=i(a?n.getItem(e,t):t);return o.onMount=r=>(r(n.getItem(e,t)),n.subscribe?.(e,r,t)),i(e=>e(o),(r,i,a)=>{let s=typeof a==`function`?a(r(o)):a;return s===TA?(i(o,t),n.removeItem(e)):DA(s)?s.then(t=>(i(o,t),n.setItem(e,t))):(i(o,s),n.setItem(e,s))})}var jA=(e,t,n)=>(t.has(n)?t:t.set(n,e())).get(n),MA=new WeakMap,NA=(e,t,n)=>jA(e,jA(()=>new WeakMap,MA,t),n),PA=e=>typeof e?.then==`function`,FA=()=>void 0;function IA(e,t=FA){return NA(()=>{let n=new WeakMap,r=new WeakMap,a=i(0),o=i([]);o.INTERNAL_onInit=e=>{e.set(o,[()=>e.set(a,e=>e+1)])};let s=i(i=>{i(a);let c;try{c=i(s)}catch{}let l=i(e);if(!PA(l))return{v:l};if(l!==c?.p&&l.then(e=>{r.set(l,e);let[t]=i(o);t()},e=>{n.set(l,e);let[t]=i(o);t()}),n.has(l)){if(c&&`e`in c&&c.p===l)return c;let e=n.get(l);return c&&`v`in c?{p:l,e,v:c.v}:{p:l,e}}return r.has(l)?{p:l,v:r.get(l)}:c&&`v`in c?{p:l,f:t(c.v),v:c.v}:{p:l,f:t()}});return s.init=void 0,i(e=>{let t=e(s);if(`e`in t)throw t.e;return`f`in t?t.f:t.v},(t,n,...r)=>n(e,...r))},e,t)}var LA=Object.create,RA=Object.defineProperty,zA=Object.getOwnPropertyDescriptor,BA=Object.getOwnPropertyNames,VA=Object.getPrototypeOf,HA=Object.prototype.hasOwnProperty,UA=(e,t)=>function(){return t||(0,e[BA(e)[0]])((t={exports:{}}).exports,t),t.exports},WA=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of BA(t))!HA.call(e,i)&&i!==n&&RA(e,i,{get:()=>t[i],enumerable:!(r=zA(t,i))||r.enumerable});return e},GA=((e,t,n)=>(n=e==null?{}:LA(VA(e)),WA(RA(n,`default`,{value:e,enumerable:!0}),e)))(UA({"node_modules/toggle-selection/index.js"(e,t){t.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case`INPUT`:case`TEXTAREA`:t.blur();break;default:t=null}return e.removeAllRanges(),function(){e.type===`Caret`&&e.removeAllRanges(),e.rangeCount||n.forEach(function(t){e.addRange(t)}),t&&t.focus()}}}})(),1).default,KA=`Copy to clipboard: #{key}, Enter`;function qA(e){var t=((navigator.userAgentData?/mac/i.test(navigator.userAgentData.platform):/mac os x/i.test(navigator.userAgent))?`⌘`:`Ctrl`)+`+C`;return e.replace(/#{\s*key\s*}/g,t)}function JA(e,t){var n={};return n[`text/plain`]=new Blob([e],{type:`text/plain`}),t&&t!==`text/plain`&&(n[t]=new Blob([e],{type:t})),new ClipboardItem(n)}async function YA(e,t){if(!t.format&&!t.onCopy)return await navigator.clipboard.writeText(e),!0;var n=JA(e,t.format);return t.onCopy&&(n=t.onCopy(n)||n),await navigator.clipboard.write([n]),!0}function XA(e,t){var n=document.createElement(`span`);return n.textContent=e,n.ariaHidden=`true`,n.style.all=`unset`,n.style.position=`fixed`,n.style.top=`0`,n.style.clip=`rect(0, 0, 0, 0)`,n.style.whiteSpace=`pre`,n.style.webkitUserSelect=`text`,n.style.MozUserSelect=`text`,n.style.msUserSelect=`text`,n.style.userSelect=`text`,n.addEventListener(`copy`,function(n){n.stopPropagation(),t.format&&(n.preventDefault(),n.clipboardData&&n.clipboardData.setData(t.format,e)),t.onCopy&&n.clipboardData&&t.onCopy(n.clipboardData)}),n}function ZA(){let e=document.activeElement;for(;e;){if(e.tagName===`DIALOG`&&e.open)return e;e=e.parentElement}return null}function QA(e,t){var n=GA(),r=document.createRange(),i=document.getSelection(),a=XA(e,t),o=ZA()||document.fullscreenElement||document.body,s=!1;try{if(o.appendChild(a),r.selectNodeContents(a),i.removeAllRanges(),i.addRange(r),!document.execCommand(`copy`))throw Error(`copy command was unsuccessful`);s=!0}finally{typeof i.removeRange==`function`?i.removeRange(r):i.removeAllRanges(),o.removeChild(a),n()}return s}async function $A(e,t={}){var n=t.debug||!1;if(window.isSecureContext&&navigator.clipboard)try{return await YA(e,t)}catch(e){n&&console.error(`unable to copy using navigator.clipboard: `,e),n&&console.warn(`falling back to execCommand`)}else n&&!window.isSecureContext&&console.warn(`copy-to-clipboard: navigator.clipboard requires a secure context (HTTPS/localhost). Falling back to execCommand.`);try{return QA(e,t)}catch(i){if(n&&console.error(`unable to copy using execCommand: `,i),n&&console.error(`falling back to prompt`),t.fallbackToPrompt){var r=qA(`message`in t?t.message:KA);window.prompt(r,e)}}return!1}var ej=$A;function tj(e,t,{signal:n,edges:r}={}){let i,a=null,o=r!=null&&r.includes(`leading`),s=r==null||r.includes(`trailing`),c=()=>{a!==null&&(e.apply(i,a),i=void 0,a=null)},l=()=>{s&&c(),p()},u=null,d=()=>{u!=null&&clearTimeout(u),u=setTimeout(()=>{u=null,l()},t)},f=()=>{u!==null&&(clearTimeout(u),u=null)},p=()=>{f(),i=void 0,a=null},m=()=>{c()},h=function(...e){if(n?.aborted)return;i=this,a=e;let t=u==null;d(),o&&t&&c()};return h.schedule=d,h.cancel=p,h.flush=m,n?.addEventListener(`abort`,p,{once:!0}),h}function nj(e,t=0,n={}){typeof n!=`object`&&(n={});let{leading:r=!1,trailing:i=!0,maxWait:a}=n,o=[,,];r&&(o[0]=`leading`),i&&(o[1]=`trailing`);let s,c=null,l=tj(function(...t){s=e.apply(this,t),c=null},t,{edges:o}),u=function(...t){return a!=null&&(c===null&&(c=Date.now()),Date.now()-c>=a)?((r||i)&&(s=e.apply(this,t)),c=Date.now(),l.cancel(),l.schedule(),s):(l.apply(this,t),s)};return u.cancel=l.cancel,u.flush=()=>(l.flush(),s),u}function rj(e,t=0,n={}){let{leading:r=!0,trailing:i=!0}=n;return nj(e,t,{leading:r,maxWait:t,trailing:i})}var ij=(e,t,n,r)=>{switch(t){case`debounce`:return nj(e,n,r);case`throttle`:return rj(e,n,r);default:return e}},aj=e=>{let t=z.useRef(e);return z.useEffect(()=>{t.current=e}),z.useMemo(()=>((...e)=>t.current?.call(t,...e)),[])},oj=e=>{let[t,n]=z.useState(e?.current||null);return e&&setTimeout(()=>{e.current!==t&&n(e.current)},0),{refProxy:z.useMemo(()=>new Proxy(e=>{e!==t&&n(e)},{get(e,n){return n===`current`?t:e[n]},set(e,t,r){return t===`current`?n(r):e[t]=r,!0}}),[t]),refElement:t,setRefElement:n}},sj=(e,t)=>{let n=e.borderBoxSize?.[0],r=e.contentBoxSize?.[0];return t===`border-box`&&n?{width:n.inlineSize,height:n.blockSize}:t===`content-box`&&r?{width:r.inlineSize,height:r.blockSize}:{width:e.contentRect.width,height:e.contentRect.height}};function cj({skipOnMount:e=!1,refreshMode:t,refreshRate:n=1e3,refreshOptions:r,handleWidth:i=!0,handleHeight:a=!0,targetRef:o,observerOptions:s,onResize:c,disableRerender:l=!1}={}){let u=(0,z.useRef)(e),d=aj(c),[f,p]=(0,z.useState)({width:void 0,height:void 0}),m=(0,z.useRef)({width:void 0,height:void 0}),{refProxy:h,refElement:g}=oj(o),{box:_}=s||{},v=(0,z.useCallback)(e=>{if(!i&&!a)return;if(u.current){u.current=!1;return}let t=(e,t)=>i&&e.width!==t.width||a&&e.height!==t.height;e.forEach(e=>{let n=sj(e,_);l?t(m.current,n)&&(m.current.width=n.width,m.current.height=n.height,d?.({width:n.width,height:n.height,entry:e})):p(r=>t(r,n)?(d?.({width:n.width,height:n.height,entry:e}),n):r)})},[i,a,u,_,l]),y=(0,z.useCallback)(ij(v,t,n,r),[v,t,n,r]);return(0,z.useEffect)(()=>{let e;if(g)try{e=new window.ResizeObserver(y),e.observe(g,s)}catch(e){console.warn(`ResizeObserver not supported or failed to initialize:`,e)}else(f.width||f.height)&&(d?.({width:null,height:null,entry:null}),m.current.width=void 0,m.current.height=void 0,l||p({width:void 0,height:void 0}));return()=>{var t,n,r;(t=e?.disconnect)==null||t.call(e),(r=(n=y).cancel)==null||r.call(n)}},[y,g]),Object.assign({ref:h},l?m.current:f)}function lj(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function uj(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function dj(e){let t,n,r;e.length===2?(t=e===lj||e===uj?e:fj,n=e,r=e):(t=lj,n=(t,n)=>lj(e(t),n),r=(t,n)=>e(t)-n);function i(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<0?i=t+1:a=t}while(i<a)}return i}function a(e,r,i=0,a=e.length){if(i<a){if(t(r,r)!==0)return a;do{let t=i+a>>>1;n(e[t],r)<=0?i=t+1:a=t}while(i<a)}return i}function o(e,t,n=0,a=e.length){let o=i(e,t,n,a-1);return o>n&&r(e[o-1],t)>-r(e[o],t)?o-1:o}return{left:i,center:o,right:a}}function fj(){return 0}function pj(e){return e===null?NaN:+e}var mj=dj(lj),hj=mj.right;mj.left,dj(pj).center;var gj=class extends Map{constructor(e,t=bj){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),e!=null)for(let[t,n]of e)this.set(t,n)}get(e){return super.get(_j(this,e))}has(e){return super.has(_j(this,e))}set(e,t){return super.set(vj(this,e),t)}delete(e){return super.delete(yj(this,e))}};function _j({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):n}function vj({_intern:e,_key:t},n){let r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function yj({_intern:e,_key:t},n){let r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function bj(e){return typeof e==`object`&&e?e.valueOf():e}Array.prototype.slice;var xj=Math.sqrt(50),Sj=Math.sqrt(10),Cj=Math.sqrt(2);function wj(e,t,n){let r=(t-e)/Math.max(0,n),i=Math.floor(Math.log10(r)),a=r/10**i,o=a>=xj?10:a>=Sj?5:a>=Cj?2:1,s,c,l;return i<0?(l=10**-i/o,s=Math.round(e*l),c=Math.round(t*l),s/l<e&&++s,c/l>t&&--c,l=-l):(l=10**i*o,s=Math.round(e/l),c=Math.round(t/l),s*l<e&&++s,c*l>t&&--c),c<s&&.5<=n&&n<2?wj(e,t,n*2):[s,c,l]}function Tj(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];let r=t<e,[i,a,o]=r?wj(t,e,n):wj(e,t,n);if(!(a>=i))return[];let s=a-i+1,c=Array(s);if(r){if(o<0)for(let e=0;e<s;++e)c[e]=(a-e)/-o;else for(let e=0;e<s;++e)c[e]=(a-e)*o}else if(o<0)for(let e=0;e<s;++e)c[e]=(i+e)/-o;else for(let e=0;e<s;++e)c[e]=(i+e)*o;return c}function Ej(e,t,n){return t=+t,e=+e,n=+n,wj(e,t,n)[2]}function Dj(e,t,n){t=+t,e=+e,n=+n;let r=t<e,i=r?Ej(t,e,n):Ej(e,t,n);return(r?-1:1)*(i<0?1/-i:i)}function Oj(e,t,n){e=+e,t=+t,n=(i=arguments.length)<2?(t=e,e=0,1):i<3?1:+n;for(var r=-1,i=Math.max(0,Math.ceil((t-e)/n))|0,a=Array(i);++r<i;)a[r]=e+r*n;return a}function kj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function Aj(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function jj(){}var Mj=.7,Nj=1/Mj,Pj=`\\s*([+-]?\\d+)\\s*`,Fj=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*`,Ij=`\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*`,Lj=/^#([0-9a-f]{3,8})$/,Rj=RegExp(`^rgb\\(${Pj},${Pj},${Pj}\\)$`),zj=RegExp(`^rgb\\(${Ij},${Ij},${Ij}\\)$`),Bj=RegExp(`^rgba\\(${Pj},${Pj},${Pj},${Fj}\\)$`),Vj=RegExp(`^rgba\\(${Ij},${Ij},${Ij},${Fj}\\)$`),Hj=RegExp(`^hsl\\(${Fj},${Ij},${Ij}\\)$`),Uj=RegExp(`^hsla\\(${Fj},${Ij},${Ij},${Fj}\\)$`),Wj={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};kj(jj,Yj,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:Gj,formatHex:Gj,formatHex8:Kj,formatHsl:qj,formatRgb:Jj,toString:Jj});function Gj(){return this.rgb().formatHex()}function Kj(){return this.rgb().formatHex8()}function qj(){return cM(this).formatHsl()}function Jj(){return this.rgb().formatRgb()}function Yj(e){var t,n;return e=(e+``).trim().toLowerCase(),(t=Lj.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?Xj(t):n===3?new eM(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Zj(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Zj(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Rj.exec(e))?new eM(t[1],t[2],t[3],1):(t=zj.exec(e))?new eM(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Bj.exec(e))?Zj(t[1],t[2],t[3],t[4]):(t=Vj.exec(e))?Zj(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=Hj.exec(e))?sM(t[1],t[2]/100,t[3]/100,1):(t=Uj.exec(e))?sM(t[1],t[2]/100,t[3]/100,t[4]):Wj.hasOwnProperty(e)?Xj(Wj[e]):e===`transparent`?new eM(NaN,NaN,NaN,0):null}function Xj(e){return new eM(e>>16&255,e>>8&255,e&255,1)}function Zj(e,t,n,r){return r<=0&&(e=t=n=NaN),new eM(e,t,n,r)}function Qj(e){return e instanceof jj||(e=Yj(e)),e?(e=e.rgb(),new eM(e.r,e.g,e.b,e.opacity)):new eM}function $j(e,t,n,r){return arguments.length===1?Qj(e):new eM(e,t,n,r??1)}function eM(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}kj(eM,$j,Aj(jj,{brighter(e){return e=e==null?Nj:Nj**+e,new eM(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Mj:Mj**+e,new eM(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new eM(aM(this.r),aM(this.g),aM(this.b),iM(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:tM,formatHex:tM,formatHex8:nM,formatRgb:rM,toString:rM}));function tM(){return`#${oM(this.r)}${oM(this.g)}${oM(this.b)}`}function nM(){return`#${oM(this.r)}${oM(this.g)}${oM(this.b)}${oM((isNaN(this.opacity)?1:this.opacity)*255)}`}function rM(){let e=iM(this.opacity);return`${e===1?`rgb(`:`rgba(`}${aM(this.r)}, ${aM(this.g)}, ${aM(this.b)}${e===1?`)`:`, ${e})`}`}function iM(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function aM(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function oM(e){return e=aM(e),(e<16?`0`:``)+e.toString(16)}function sM(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new uM(e,t,n,r)}function cM(e){if(e instanceof uM)return new uM(e.h,e.s,e.l,e.opacity);if(e instanceof jj||(e=Yj(e)),!e)return new uM;if(e instanceof uM)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),a=Math.max(t,n,r),o=NaN,s=a-i,c=(a+i)/2;return s?(o=t===a?(n-r)/s+(n<r)*6:n===a?(r-t)/s+2:(t-n)/s+4,s/=c<.5?a+i:2-a-i,o*=60):s=c>0&&c<1?0:o,new uM(o,s,c,e.opacity)}function lM(e,t,n,r){return arguments.length===1?cM(e):new uM(e,t,n,r??1)}function uM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}kj(uM,lM,Aj(jj,{brighter(e){return e=e==null?Nj:Nj**+e,new uM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mj:Mj**+e,new uM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new eM(pM(e>=240?e-240:e+120,i,r),pM(e,i,r),pM(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new uM(dM(this.h),fM(this.s),fM(this.l),iM(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=iM(this.opacity);return`${e===1?`hsl(`:`hsla(`}${dM(this.h)}, ${fM(this.s)*100}%, ${fM(this.l)*100}%${e===1?`)`:`, ${e})`}`}}));function dM(e){return e=(e||0)%360,e<0?e+360:e}function fM(e){return Math.max(0,Math.min(1,e||0))}function pM(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}var mM=Math.PI/180,hM=180/Math.PI,gM=18,_M=.96422,vM=1,yM=.82521,bM=4/29,xM=6/29,SM=3*xM*xM,CM=xM*xM*xM;function wM(e){if(e instanceof EM)return new EM(e.l,e.a,e.b,e.opacity);if(e instanceof NM)return PM(e);e instanceof eM||(e=Qj(e));var t=AM(e.r),n=AM(e.g),r=AM(e.b),i=DM((.2225045*t+.7168786*n+.0606169*r)/vM),a,o;return t===n&&n===r?a=o=i:(a=DM((.4360747*t+.3850649*n+.1430804*r)/_M),o=DM((.0139322*t+.0971045*n+.7141733*r)/yM)),new EM(116*i-16,500*(a-i),200*(i-o),e.opacity)}function TM(e,t,n,r){return arguments.length===1?wM(e):new EM(e,t,n,r??1)}function EM(e,t,n,r){this.l=+e,this.a=+t,this.b=+n,this.opacity=+r}kj(EM,TM,Aj(jj,{brighter(e){return new EM(this.l+gM*(e??1),this.a,this.b,this.opacity)},darker(e){return new EM(this.l-gM*(e??1),this.a,this.b,this.opacity)},rgb(){var e=(this.l+16)/116,t=isNaN(this.a)?e:e+this.a/500,n=isNaN(this.b)?e:e-this.b/200;return t=_M*OM(t),e=vM*OM(e),n=yM*OM(n),new eM(kM(3.1338561*t-1.6168667*e-.4906146*n),kM(-.9787684*t+1.9161415*e+.033454*n),kM(.0719453*t-.2289914*e+1.4052427*n),this.opacity)}}));function DM(e){return e>CM?e**(1/3):e/SM+bM}function OM(e){return e>xM?e*e*e:SM*(e-bM)}function kM(e){return 255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055)}function AM(e){return(e/=255)<=.04045?e/12.92:((e+.055)/1.055)**2.4}function jM(e){if(e instanceof NM)return new NM(e.h,e.c,e.l,e.opacity);if(e instanceof EM||(e=wM(e)),e.a===0&&e.b===0)return new NM(NaN,0<e.l&&e.l<100?0:NaN,e.l,e.opacity);var t=Math.atan2(e.b,e.a)*hM;return new NM(t<0?t+360:t,Math.sqrt(e.a*e.a+e.b*e.b),e.l,e.opacity)}function MM(e,t,n,r){return arguments.length===1?jM(e):new NM(e,t,n,r??1)}function NM(e,t,n,r){this.h=+e,this.c=+t,this.l=+n,this.opacity=+r}function PM(e){if(isNaN(e.h))return new EM(e.l,0,0,e.opacity);var t=e.h*mM;return new EM(e.l,Math.cos(t)*e.c,Math.sin(t)*e.c,e.opacity)}kj(NM,MM,Aj(jj,{brighter(e){return new NM(this.h,this.c,this.l+gM*(e??1),this.opacity)},darker(e){return new NM(this.h,this.c,this.l-gM*(e??1),this.opacity)},rgb(){return PM(this).rgb()}}));var FM=-.14861,IM=1.78277,LM=-.29227,RM=-.90649,zM=1.97294,BM=zM*RM,VM=zM*IM,HM=IM*LM-RM*FM;function UM(e){if(e instanceof GM)return new GM(e.h,e.s,e.l,e.opacity);e instanceof eM||(e=Qj(e));var t=e.r/255,n=e.g/255,r=e.b/255,i=(HM*r+BM*t-VM*n)/(HM+BM-VM),a=r-i,o=(zM*(n-i)-LM*a)/RM,s=Math.sqrt(o*o+a*a)/(zM*i*(1-i)),c=s?Math.atan2(o,a)*hM-120:NaN;return new GM(c<0?c+360:c,s,i,e.opacity)}function WM(e,t,n,r){return arguments.length===1?UM(e):new GM(e,t,n,r??1)}function GM(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}kj(GM,WM,Aj(jj,{brighter(e){return e=e==null?Nj:Nj**+e,new GM(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Mj:Mj**+e,new GM(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=isNaN(this.h)?0:(this.h+120)*mM,t=+this.l,n=isNaN(this.s)?0:this.s*t*(1-t),r=Math.cos(e),i=Math.sin(e);return new eM(255*(t+n*(FM*r+IM*i)),255*(t+n*(LM*r+RM*i)),255*(t+zM*r*n),this.opacity)}}));var KM=e=>()=>e;function qM(e,t){return function(n){return e+n*t}}function JM(e,t,n){return e**=+n,t=t**+n-e,n=1/n,function(r){return(e+r*t)**+n}}function YM(e,t){var n=t-e;return n?qM(e,n>180||n<-180?n-360*Math.round(n/360):n):KM(isNaN(e)?t:e)}function XM(e){return(e=+e)==1?ZM:function(t,n){return n-t?JM(t,n,e):KM(isNaN(t)?n:t)}}function ZM(e,t){var n=t-e;return n?qM(e,n):KM(isNaN(e)?t:e)}var QM=(function e(t){var n=XM(t);function r(e,t){var r=n((e=$j(e)).r,(t=$j(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=ZM(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+``}}return r.gamma=e,r})(1);function $M(e,t){t||=[];var n=e?Math.min(t.length,e.length):0,r=t.slice(),i;return function(a){for(i=0;i<n;++i)r[i]=e[i]*(1-a)+t[i]*a;return r}}function eN(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function tN(e,t){for(var n=t?t.length:0,r=e?Math.min(n,e.length):0,i=Array(r),a=Array(n),o=0;o<r;++o)i[o]=uN(e[o],t[o]);for(;o<n;++o)a[o]=t[o];return function(e){for(o=0;o<r;++o)a[o]=i[o](e);return a}}function nN(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function rN(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function iN(e,t){var n={},r={},i;for(i in typeof e==`object`&&e||(e={}),typeof t==`object`&&t||(t={}),t)i in e?n[i]=uN(e[i],t[i]):r[i]=t[i];return function(e){for(i in n)r[i]=n[i](e);return r}}var aN=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,oN=new RegExp(aN.source,`g`);function sN(e){return function(){return e}}function cN(e){return function(t){return e(t)+``}}function lN(e,t){var n=aN.lastIndex=oN.lastIndex=0,r,i,a,o=-1,s=[],c=[];for(e+=``,t+=``;(r=aN.exec(e))&&(i=oN.exec(t));)(a=i.index)>n&&(a=t.slice(n,a),s[o]?s[o]+=a:s[++o]=a),(r=r[0])===(i=i[0])?s[o]?s[o]+=i:s[++o]=i:(s[++o]=null,c.push({i:o,x:rN(r,i)})),n=oN.lastIndex;return n<t.length&&(a=t.slice(n),s[o]?s[o]+=a:s[++o]=a),s.length<2?c[0]?cN(c[0].x):sN(t):(t=c.length,function(e){for(var n=0,r;n<t;++n)s[(r=c[n]).i]=r.x(e);return s.join(``)})}function uN(e,t){var n=typeof t,r;return t==null||n===`boolean`?KM(t):(n===`number`?rN:n===`string`?(r=Yj(t))?(t=r,QM):lN:t instanceof Yj?QM:t instanceof Date?nN:eN(t)?$M:Array.isArray(t)?tN:typeof t.valueOf!=`function`&&typeof t.toString!=`function`||isNaN(t)?iN:rN)(e,t)}function dN(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}var fN=1e-12;function pN(e){return((e=Math.exp(e))+1/e)/2}function mN(e){return((e=Math.exp(e))-1/e)/2}function hN(e){return((e=Math.exp(2*e))-1)/(e+1)}(function e(t,n,r){function i(e,i){var a=e[0],o=e[1],s=e[2],c=i[0],l=i[1],u=i[2],d=c-a,f=l-o,p=d*d+f*f,m,h;if(p<fN)h=Math.log(u/s)/t,m=function(e){return[a+e*d,o+e*f,s*Math.exp(t*e*h)]};else{var g=Math.sqrt(p),_=(u*u-s*s+r*p)/(2*s*n*g),v=(u*u-s*s-r*p)/(2*u*n*g),y=Math.log(Math.sqrt(_*_+1)-_);h=(Math.log(Math.sqrt(v*v+1)-v)-y)/t,m=function(e){var r=e*h,i=pN(y),c=s/(n*g)*(i*hN(t*r+y)-mN(y));return[a+c*d,o+c*f,s*i/pN(t*r+y)]}}return m.duration=Math.abs(h)*1e3*t/Math.SQRT2,m}return i.rho=function(t){var n=Math.max(.001,+t),r=n*n;return e(n,r,r*r)},i})(Math.SQRT2,2,4);function gN(e){return(function t(n){n=+n;function r(t,r){var i=e((t=WM(t)).h,(r=WM(r)).h),a=ZM(t.s,r.s),o=ZM(t.l,r.l),s=ZM(t.opacity,r.opacity);return function(e){return t.h=i(e),t.s=a(e),t.l=o(e**+n),t.opacity=s(e),t+``}}return r.gamma=t,r})(1)}gN(YM),gN(ZM);function _N(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString(`en`).replace(/,/g,``):e.toString(10)}function vN(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf(`e`),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function yN(e){return e=vN(Math.abs(e)),e?e[1]:NaN}function bN(e,t){return function(n,r){for(var i=n.length,a=[],o=0,s=e[0],c=0;i>0&&s>0&&(c+s+1>r&&(s=Math.max(1,r-c)),a.push(n.substring(i-=s,i+s)),!((c+=s+1)>r));)s=e[o=(o+1)%e.length];return a.reverse().join(t)}}function xN(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var SN=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function CN(e){if(!(t=SN.exec(e)))throw Error(`invalid format: `+e);var t;return new wN({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}CN.prototype=wN.prototype;function wN(e){this.fill=e.fill===void 0?` `:e.fill+``,this.align=e.align===void 0?`>`:e.align+``,this.sign=e.sign===void 0?`-`:e.sign+``,this.symbol=e.symbol===void 0?``:e.symbol+``,this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?``:e.type+``}wN.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?`0`:``)+(this.width===void 0?``:Math.max(1,this.width|0))+(this.comma?`,`:``)+(this.precision===void 0?``:`.`+Math.max(0,this.precision|0))+(this.trim?`~`:``)+this.type};function TN(e){out:for(var t=e.length,n=1,r=-1,i;n<t;++n)switch(e[n]){case`.`:r=i=n;break;case`0`:r===0&&(r=n),i=n;break;default:if(!+e[n])break out;r>0&&(r=0)}return r>0?e.slice(0,r)+e.slice(i+1):e}var EN;function DN(e,t){var n=vN(e,t);if(!n)return EN=void 0,e.toPrecision(t);var r=n[0],i=n[1],a=i-(EN=Math.max(-8,Math.min(8,Math.floor(i/3)))*3)+1,o=r.length;return a===o?r:a>o?r+Array(a-o+1).join(`0`):a>0?r.slice(0,a)+`.`+r.slice(a):`0.`+Array(1-a).join(`0`)+vN(e,Math.max(0,t+a-1))[0]}function ON(e,t){var n=vN(e,t);if(!n)return e+``;var r=n[0],i=n[1];return i<0?`0.`+Array(-i).join(`0`)+r:r.length>i+1?r.slice(0,i+1)+`.`+r.slice(i+1):r+Array(i-r.length+2).join(`0`)}var kN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+``,d:_N,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>ON(e*100,t),r:ON,s:DN,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function AN(e){return e}var jN=Array.prototype.map,MN=[`y`,`z`,`a`,`f`,`p`,`n`,`µ`,`m`,``,`k`,`M`,`G`,`T`,`P`,`E`,`Z`,`Y`];function NN(e){var t=e.grouping===void 0||e.thousands===void 0?AN:bN(jN.call(e.grouping,Number),e.thousands+``),n=e.currency===void 0?``:e.currency[0]+``,r=e.currency===void 0?``:e.currency[1]+``,i=e.decimal===void 0?`.`:e.decimal+``,a=e.numerals===void 0?AN:xN(jN.call(e.numerals,String)),o=e.percent===void 0?`%`:e.percent+``,s=e.minus===void 0?`−`:e.minus+``,c=e.nan===void 0?`NaN`:e.nan+``;function l(e,l){e=CN(e);var u=e.fill,d=e.align,f=e.sign,p=e.symbol,m=e.zero,h=e.width,g=e.comma,_=e.precision,v=e.trim,y=e.type;y===`n`?(g=!0,y=`g`):kN[y]||(_===void 0&&(_=12),v=!0,y=`g`),(m||u===`0`&&d===`=`)&&(m=!0,u=`0`,d=`=`);var b=(l&&l.prefix!==void 0?l.prefix:``)+(p===`$`?n:p===`#`&&/[boxX]/.test(y)?`0`+y.toLowerCase():``),x=(p===`$`?r:/[%p]/.test(y)?o:``)+(l&&l.suffix!==void 0?l.suffix:``),S=kN[y],C=/[defgprs%]/.test(y);_=_===void 0?6:/[gprs]/.test(y)?Math.max(1,Math.min(21,_)):Math.max(0,Math.min(20,_));function w(e){var n=b,r=x,o,l,p;if(y===`c`)r=S(e)+r,e=``;else{e=+e;var w=e<0||1/e<0;if(e=isNaN(e)?c:S(Math.abs(e),_),v&&(e=TN(e)),w&&+e==0&&f!==`+`&&(w=!1),n=(w?f===`(`?f:s:f===`-`||f===`(`?``:f)+n,r=(y===`s`&&!isNaN(e)&&EN!==void 0?MN[8+EN/3]:``)+r+(w&&f===`(`?`)`:``),C){for(o=-1,l=e.length;++o<l;)if(p=e.charCodeAt(o),48>p||p>57){r=(p===46?i+e.slice(o+1):e.slice(o))+r,e=e.slice(0,o);break}}}g&&!m&&(e=t(e,1/0));var T=n.length+e.length+r.length,E=T<h?Array(h-T+1).join(u):``;switch(g&&m&&(e=t(E+e,E.length?h-r.length:1/0),E=``),d){case`<`:e=n+e+r+E;break;case`=`:e=n+E+e+r;break;case`^`:e=E.slice(0,T=E.length>>1)+n+e+r+E.slice(T);break;default:e=E+n+e+r}return a(e)}return w.toString=function(){return e+``},w}function u(e,t){var n=Math.max(-8,Math.min(8,Math.floor(yN(t)/3)))*3,r=10**-n,i=l((e=CN(e),e.type=`f`,e),{suffix:MN[8+n/3]});return function(e){return i(r*e)}}return{format:l,formatPrefix:u}}var PN,FN,IN;LN({thousands:`,`,grouping:[3],currency:[`$`,``]});function LN(e){return PN=NN(e),FN=PN.format,IN=PN.formatPrefix,PN}function RN(e){return Math.max(0,-yN(Math.abs(e)))}function zN(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(yN(t)/3)))*3-yN(Math.abs(e)))}function BN(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,yN(t)-yN(e))+1}var VN=new Date,HN=new Date;function UN(e,t,n,r){function i(t){return e(t=arguments.length===0?new Date:new Date(+t)),t}return i.floor=t=>(e(t=new Date(+t)),t),i.ceil=n=>(e(n=new Date(n-1)),t(n,1),e(n),n),i.round=e=>{let t=i(e),n=i.ceil(e);return e-t<n-e?t:n},i.offset=(e,n)=>(t(e=new Date(+e),n==null?1:Math.floor(n)),e),i.range=(n,r,a)=>{let o=[];if(n=i.ceil(n),a=a==null?1:Math.floor(a),!(n<r)||!(a>0))return o;let s;do o.push(s=new Date(+n)),t(n,a),e(n);while(s<n&&n<r);return o},i.filter=n=>UN(t=>{if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},(e,r)=>{if(e>=e){if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););}}),n&&(i.count=(t,r)=>(VN.setTime(+t),HN.setTime(+r),e(VN),e(HN),Math.floor(n(VN,HN))),i.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?i.filter(r?t=>r(t)%e===0:t=>i.count(0,t)%e===0):i)),i}var WN=UN(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);WN.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?UN(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):WN),WN.range;var GN=1e3,KN=GN*60,qN=KN*60,JN=qN*24,YN=JN*7,XN=JN*30,ZN=JN*365,QN=UN(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*GN)},(e,t)=>(t-e)/GN,e=>e.getUTCSeconds());QN.range;var $N=UN(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*GN)},(e,t)=>{e.setTime(+e+t*KN)},(e,t)=>(t-e)/KN,e=>e.getMinutes());$N.range;var eP=UN(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*KN)},(e,t)=>(t-e)/KN,e=>e.getUTCMinutes());eP.range;var tP=UN(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*GN-e.getMinutes()*KN)},(e,t)=>{e.setTime(+e+t*qN)},(e,t)=>(t-e)/qN,e=>e.getHours());tP.range;var nP=UN(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*qN)},(e,t)=>(t-e)/qN,e=>e.getUTCHours());nP.range;var rP=UN(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*KN)/JN,e=>e.getDate()-1);rP.range;var iP=UN(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/JN,e=>e.getUTCDate()-1);iP.range;var aP=UN(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/JN,e=>Math.floor(e/JN));aP.range;function oP(e){return UN(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(e,t)=>{e.setDate(e.getDate()+t*7)},(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*KN)/YN)}var sP=oP(0),cP=oP(1),lP=oP(2),uP=oP(3),dP=oP(4),fP=oP(5),pP=oP(6);sP.range,cP.range,lP.range,uP.range,dP.range,fP.range,pP.range;function mP(e){return UN(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t*7)},(e,t)=>(t-e)/YN)}var hP=mP(0),gP=mP(1),_P=mP(2),vP=mP(3),yP=mP(4),bP=mP(5),xP=mP(6);hP.range,gP.range,_P.range,vP.range,yP.range,bP.range,xP.range;var SP=UN(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());SP.range;var CP=UN(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());CP.range;var wP=UN(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());wP.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:UN(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)}),wP.range;var TP=UN(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());TP.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:UN(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)}),TP.range;function EP(e,t,n,r,i,a){let o=[[QN,1,GN],[QN,5,5*GN],[QN,15,15*GN],[QN,30,30*GN],[a,1,KN],[a,5,5*KN],[a,15,15*KN],[a,30,30*KN],[i,1,qN],[i,3,3*qN],[i,6,6*qN],[i,12,12*qN],[r,1,JN],[r,2,2*JN],[n,1,YN],[t,1,XN],[t,3,3*XN],[e,1,ZN]];function s(e,t,n){let r=t<e;r&&([e,t]=[t,e]);let i=n&&typeof n.range==`function`?n:c(e,t,n),a=i?i.range(e,+t+1):[];return r?a.reverse():a}function c(t,n,r){let i=Math.abs(n-t)/r,a=dj(([,,e])=>e).right(o,i);if(a===o.length)return e.every(Dj(t/ZN,n/ZN,r));if(a===0)return WN.every(Math.max(Dj(t,n,r),1));let[s,c]=o[i/o[a-1][2]<o[a][2]/i?a-1:a];return s.every(c)}return[s,c]}var[DP,OP]=EP(TP,CP,hP,aP,nP,eP),[kP,AP]=EP(wP,SP,sP,rP,tP,$N);function jP(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function MP(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function NP(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function PP(e){var t=e.dateTime,n=e.date,r=e.time,i=e.periods,a=e.days,o=e.shortDays,s=e.months,c=e.shortMonths,l=VP(i),u=HP(i),d=VP(a),f=HP(a),p=VP(o),m=HP(o),h=VP(s),g=HP(s),_=VP(c),v=HP(c),y={a:M,A:te,b:ne,B:N,c:null,d:lF,e:lF,f:mF,g:TF,G:DF,H:uF,I:dF,j:fF,L:pF,m:hF,M:gF,p:P,q:re,Q:XF,s:ZF,S:_F,u:vF,U:yF,V:xF,w:SF,W:CF,x:null,X:null,y:wF,Y:EF,Z:OF,"%":YF},b={a:F,A:I,b:ie,B:L,c:null,d:kF,e:kF,f:PF,g:GF,G:qF,H:AF,I:jF,j:MF,L:NF,m:FF,M:IF,p:R,q:z,Q:XF,s:ZF,S:LF,u:RF,U:zF,V:VF,w:HF,W:UF,x:null,X:null,y:WF,Y:KF,Z:JF,"%":YF},x={a:E,A:D,b:O,B:k,c:ee,d:$P,e:$P,f:aF,g:YP,G:JP,H:tF,I:tF,j:eF,L:iF,m:QP,M:nF,p:T,q:ZP,Q:sF,s:cF,S:rF,u:WP,U:GP,V:KP,w:UP,W:qP,x:A,X:j,y:YP,Y:JP,Z:XP,"%":oF};y.x=S(n,y),y.X=S(r,y),y.c=S(t,y),b.x=S(n,b),b.X=S(r,b),b.c=S(t,b);function S(e,t){return function(n){var r=[],i=-1,a=0,o=e.length,s,c,l;for(n instanceof Date||(n=new Date(+n));++i<o;)e.charCodeAt(i)===37&&(r.push(e.slice(a,i)),(c=FP[s=e.charAt(++i)])==null?c=s===`e`?` `:`0`:s=e.charAt(++i),(l=t[s])&&(s=l(n,c)),r.push(s),a=i+1);return r.push(e.slice(a,i)),r.join(``)}}function C(e,t){return function(n){var r=NP(1900,void 0,1),i=w(r,e,n+=``,0),a,o;if(i!=n.length)return null;if(`Q`in r)return new Date(r.Q);if(`s`in r)return new Date(r.s*1e3+(`L`in r?r.L:0));if(t&&!(`Z`in r)&&(r.Z=0),`p`in r&&(r.H=r.H%12+r.p*12),r.m===void 0&&(r.m=`q`in r?r.q:0),`V`in r){if(r.V<1||r.V>53)return null;`w`in r||(r.w=1),`Z`in r?(a=MP(NP(r.y,0,1)),o=a.getUTCDay(),a=o>4||o===0?gP.ceil(a):gP(a),a=iP.offset(a,(r.V-1)*7),r.y=a.getUTCFullYear(),r.m=a.getUTCMonth(),r.d=a.getUTCDate()+(r.w+6)%7):(a=jP(NP(r.y,0,1)),o=a.getDay(),a=o>4||o===0?cP.ceil(a):cP(a),a=rP.offset(a,(r.V-1)*7),r.y=a.getFullYear(),r.m=a.getMonth(),r.d=a.getDate()+(r.w+6)%7)}else(`W`in r||`U`in r)&&(`w`in r||(r.w=`u`in r?r.u%7:+(`W`in r)),o=`Z`in r?MP(NP(r.y,0,1)).getUTCDay():jP(NP(r.y,0,1)).getDay(),r.m=0,r.d=`W`in r?(r.w+6)%7+r.W*7-(o+5)%7:r.w+r.U*7-(o+6)%7);return`Z`in r?(r.H+=r.Z/100|0,r.M+=r.Z%100,MP(r)):jP(r)}}function w(e,t,n,r){for(var i=0,a=t.length,o=n.length,s,c;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=x[s in FP?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!=n.charCodeAt(r++))return-1}return r}function T(e,t,n){var r=l.exec(t.slice(n));return r?(e.p=u.get(r[0].toLowerCase()),n+r[0].length):-1}function E(e,t,n){var r=p.exec(t.slice(n));return r?(e.w=m.get(r[0].toLowerCase()),n+r[0].length):-1}function D(e,t,n){var r=d.exec(t.slice(n));return r?(e.w=f.get(r[0].toLowerCase()),n+r[0].length):-1}function O(e,t,n){var r=_.exec(t.slice(n));return r?(e.m=v.get(r[0].toLowerCase()),n+r[0].length):-1}function k(e,t,n){var r=h.exec(t.slice(n));return r?(e.m=g.get(r[0].toLowerCase()),n+r[0].length):-1}function ee(e,n,r){return w(e,t,n,r)}function A(e,t,r){return w(e,n,t,r)}function j(e,t,n){return w(e,r,t,n)}function M(e){return o[e.getDay()]}function te(e){return a[e.getDay()]}function ne(e){return c[e.getMonth()]}function N(e){return s[e.getMonth()]}function P(e){return i[+(e.getHours()>=12)]}function re(e){return 1+~~(e.getMonth()/3)}function F(e){return o[e.getUTCDay()]}function I(e){return a[e.getUTCDay()]}function ie(e){return c[e.getUTCMonth()]}function L(e){return s[e.getUTCMonth()]}function R(e){return i[+(e.getUTCHours()>=12)]}function z(e){return 1+~~(e.getUTCMonth()/3)}return{format:function(e){var t=S(e+=``,y);return t.toString=function(){return e},t},parse:function(e){var t=C(e+=``,!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=S(e+=``,b);return t.toString=function(){return e},t},utcParse:function(e){var t=C(e+=``,!0);return t.toString=function(){return e},t}}}var FP={"-":``,_:` `,0:`0`},IP=/^\s*\d+/,LP=/^%/,RP=/[\\^$*+?|[\]().{}]/g;function zP(e,t,n){var r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}function BP(e){return e.replace(RP,`\\$&`)}function VP(e){return RegExp(`^(?:`+e.map(BP).join(`|`)+`)`,`i`)}function HP(e){return new Map(e.map((e,t)=>[e.toLowerCase(),t]))}function UP(e,t,n){var r=IP.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function WP(e,t,n){var r=IP.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function GP(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function KP(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function qP(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function JP(e,t,n){var r=IP.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function YP(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function XP(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||`00`)),n+r[0].length):-1}function ZP(e,t,n){var r=IP.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function QP(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function $P(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function eF(e,t,n){var r=IP.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function tF(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function nF(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function rF(e,t,n){var r=IP.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function iF(e,t,n){var r=IP.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function aF(e,t,n){var r=IP.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function oF(e,t,n){var r=LP.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function sF(e,t,n){var r=IP.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function cF(e,t,n){var r=IP.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function lF(e,t){return zP(e.getDate(),t,2)}function uF(e,t){return zP(e.getHours(),t,2)}function dF(e,t){return zP(e.getHours()%12||12,t,2)}function fF(e,t){return zP(1+rP.count(wP(e),e),t,3)}function pF(e,t){return zP(e.getMilliseconds(),t,3)}function mF(e,t){return pF(e,t)+`000`}function hF(e,t){return zP(e.getMonth()+1,t,2)}function gF(e,t){return zP(e.getMinutes(),t,2)}function _F(e,t){return zP(e.getSeconds(),t,2)}function vF(e){var t=e.getDay();return t===0?7:t}function yF(e,t){return zP(sP.count(wP(e)-1,e),t,2)}function bF(e){var t=e.getDay();return t>=4||t===0?dP(e):dP.ceil(e)}function xF(e,t){return e=bF(e),zP(dP.count(wP(e),e)+(wP(e).getDay()===4),t,2)}function SF(e){return e.getDay()}function CF(e,t){return zP(cP.count(wP(e)-1,e),t,2)}function wF(e,t){return zP(e.getFullYear()%100,t,2)}function TF(e,t){return e=bF(e),zP(e.getFullYear()%100,t,2)}function EF(e,t){return zP(e.getFullYear()%1e4,t,4)}function DF(e,t){var n=e.getDay();return e=n>=4||n===0?dP(e):dP.ceil(e),zP(e.getFullYear()%1e4,t,4)}function OF(e){var t=e.getTimezoneOffset();return(t>0?`-`:(t*=-1,`+`))+zP(t/60|0,`0`,2)+zP(t%60,`0`,2)}function kF(e,t){return zP(e.getUTCDate(),t,2)}function AF(e,t){return zP(e.getUTCHours(),t,2)}function jF(e,t){return zP(e.getUTCHours()%12||12,t,2)}function MF(e,t){return zP(1+iP.count(TP(e),e),t,3)}function NF(e,t){return zP(e.getUTCMilliseconds(),t,3)}function PF(e,t){return NF(e,t)+`000`}function FF(e,t){return zP(e.getUTCMonth()+1,t,2)}function IF(e,t){return zP(e.getUTCMinutes(),t,2)}function LF(e,t){return zP(e.getUTCSeconds(),t,2)}function RF(e){var t=e.getUTCDay();return t===0?7:t}function zF(e,t){return zP(hP.count(TP(e)-1,e),t,2)}function BF(e){var t=e.getUTCDay();return t>=4||t===0?yP(e):yP.ceil(e)}function VF(e,t){return e=BF(e),zP(yP.count(TP(e),e)+(TP(e).getUTCDay()===4),t,2)}function HF(e){return e.getUTCDay()}function UF(e,t){return zP(gP.count(TP(e)-1,e),t,2)}function WF(e,t){return zP(e.getUTCFullYear()%100,t,2)}function GF(e,t){return e=BF(e),zP(e.getUTCFullYear()%100,t,2)}function KF(e,t){return zP(e.getUTCFullYear()%1e4,t,4)}function qF(e,t){var n=e.getUTCDay();return e=n>=4||n===0?yP(e):yP.ceil(e),zP(e.getUTCFullYear()%1e4,t,4)}function JF(){return`+0000`}function YF(){return`%`}function XF(e){return+e}function ZF(e){return Math.floor(e/1e3)}var QF,$F,eI,tI;nI({dateTime:`%x, %X`,date:`%-m/%-d/%Y`,time:`%-I:%M:%S %p`,periods:[`AM`,`PM`],days:[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],shortDays:[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],months:[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],shortMonths:[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`]});function nI(e){return QF=PP(e),$F=QF.format,QF.parse,eI=QF.utcFormat,tI=QF.utcParse,QF}var rI=`%Y-%m-%dT%H:%M:%S.%LZ`;Date.prototype.toISOString||eI(rI),+new Date(`2000-01-01T00:00:00.000Z`)||tI(rI);function iI(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}var aI=Symbol(`implicit`);function oI(){var e=new gj,t=[],n=[],r=aI;function i(i){let a=e.get(i);if(a===void 0){if(r!==aI)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return i.domain=function(n){if(!arguments.length)return t.slice();t=[],e=new gj;for(let r of n)e.has(r)||e.set(r,t.push(r)-1);return i},i.range=function(e){return arguments.length?(n=Array.from(e),i):n.slice()},i.unknown=function(e){return arguments.length?(r=e,i):r},i.copy=function(){return oI(t,n).unknown(r)},iI.apply(i,arguments),i}function sI(){var e=oI().unknown(void 0),t=e.domain,n=e.range,r=0,i=1,a,o,s=!1,c=0,l=0,u=.5;delete e.unknown;function d(){var e=t().length,d=i<r,f=d?i:r,p=d?r:i;a=(p-f)/Math.max(1,e-c+l*2),s&&(a=Math.floor(a)),f+=(p-f-a*(e-c))*u,o=a*(1-c),s&&(f=Math.round(f),o=Math.round(o));var m=Oj(e).map(function(e){return f+a*e});return n(d?m.reverse():m)}return e.domain=function(e){return arguments.length?(t(e),d()):t()},e.range=function(e){return arguments.length?([r,i]=e,r=+r,i=+i,d()):[r,i]},e.rangeRound=function(e){return[r,i]=e,r=+r,i=+i,s=!0,d()},e.bandwidth=function(){return o},e.step=function(){return a},e.round=function(e){return arguments.length?(s=!!e,d()):s},e.padding=function(e){return arguments.length?(c=Math.min(1,l=+e),d()):c},e.paddingInner=function(e){return arguments.length?(c=Math.min(1,e),d()):c},e.paddingOuter=function(e){return arguments.length?(l=+e,d()):l},e.align=function(e){return arguments.length?(u=Math.max(0,Math.min(1,e)),d()):u},e.copy=function(){return sI(t(),[r,i]).round(s).paddingInner(c).paddingOuter(l).align(u)},iI.apply(d(),arguments)}function cI(e){return function(){return e}}function lI(e){return+e}var uI=[0,1];function dI(e){return e}function fI(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:cI(isNaN(t)?NaN:.5)}function pI(e,t){var n;return e>t&&(n=e,e=t,t=n),function(n){return Math.max(e,Math.min(t,n))}}function mI(e,t,n){var r=e[0],i=e[1],a=t[0],o=t[1];return i<r?(r=fI(i,r),a=n(o,a)):(r=fI(r,i),a=n(a,o)),function(e){return a(r(e))}}function hI(e,t,n){var r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=fI(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){var n=hj(e,t,1,r)-1;return a[n](i[n](t))}}function gI(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function _I(){var e=uI,t=uI,n=uN,r,i,a,o=dI,s,c,l;function u(){var n=Math.min(e.length,t.length);return o!==dI&&(o=pI(e[0],e[n-1])),s=n>2?hI:mI,c=l=null,d}function d(i){return i==null||isNaN(i=+i)?a:(c||=s(e.map(r),t,n))(r(o(i)))}return d.invert=function(n){return o(i((l||=s(t,e.map(r),rN))(n)))},d.domain=function(t){return arguments.length?(e=Array.from(t,lI),u()):e.slice()},d.range=function(e){return arguments.length?(t=Array.from(e),u()):t.slice()},d.rangeRound=function(e){return t=Array.from(e),n=dN,u()},d.clamp=function(e){return arguments.length?(o=e?!0:dI,u()):o!==dI},d.interpolate=function(e){return arguments.length?(n=e,u()):n},d.unknown=function(e){return arguments.length?(a=e,d):a},function(e,t){return r=e,i=t,u()}}function vI(){return _I()(dI,dI)}function yI(e,t,n,r){var i=Dj(e,t,n),a;switch(r=CN(r??`,f`),r.type){case`s`:var o=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(a=zN(i,o))&&(r.precision=a),IN(r,o);case``:case`e`:case`g`:case`p`:case`r`:r.precision==null&&!isNaN(a=BN(i,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=a-(r.type===`e`));break;case`f`:case`%`:r.precision==null&&!isNaN(a=RN(i))&&(r.precision=a-(r.type===`%`)*2)}return FN(r)}function bI(e){var t=e.domain;return e.ticks=function(e){var n=t();return Tj(n[0],n[n.length-1],e??10)},e.tickFormat=function(e,n){var r=t();return yI(r[0],r[r.length-1],e??10,n)},e.nice=function(n){n??=10;var r=t(),i=0,a=r.length-1,o=r[i],s=r[a],c,l,u=10;for(s<o&&(l=o,o=s,s=l,l=i,i=a,a=l);u-->0;){if(l=Ej(o,s,n),l===c)return r[i]=o,r[a]=s,t(r);if(l>0)o=Math.floor(o/l)*l,s=Math.ceil(s/l)*l;else if(l<0)o=Math.ceil(o*l)/l,s=Math.floor(s*l)/l;else break;c=l}return e},e}function xI(){var e=vI();return e.copy=function(){return gI(e,xI())},iI.apply(e,arguments),bI(e)}function SI(e,t){e=e.slice();var n=0,r=e.length-1,i=e[n],a=e[r],o;return a<i&&(o=n,n=r,r=o,o=i,i=a,a=o),e[n]=t.floor(i),e[r]=t.ceil(a),e}function CI(e){return new Date(e)}function wI(e){return e instanceof Date?+e:Math.round(e)}function TI(e,t,n,r,i,a,o,s,c,l){var u=vI(),d=u.invert,f=u.domain,p=l(`.%L`),m=l(`:%S`),h=l(`%I:%M`),g=l(`%I %p`),_=l(`%a %d`),v=l(`%b %d`),y=l(`%B`),b=l(`%Y`);function x(e){return(c(e)<e?p:s(e)<e?m:o(e)<e?h:a(e)<e?g:r(e)<e?i(e)<e?_:v:n(e)<e?y:b)(e)}return u.invert=function(e){return new Date(Math.round(d(e)))},u.domain=function(e){return arguments.length?f(Array.from(e,wI)):f().map(CI)},u.ticks=function(t){var n=f();return e(n[0],n[n.length-1],t??10)},u.tickFormat=function(e,t){return t==null?x:l(t)},u.nice=function(e){var n=f();return e&&typeof e.range==`function`||(e=t(n[0],n[n.length-1],e??10)),e?f(SI(n,e)):u},u.copy=function(){return gI(u,TI(e,t,n,r,i,a,o,s,c,l))},u}function EI(){return iI.apply(TI(kP,AP,wP,SP,sP,rP,tP,$N,QN,$F).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}var DI=Object.defineProperty,OI=(e,t)=>DI(e,`name`,{value:t,configurable:!0}),kI=class{type=3;name=``;prefix=``;value=``;suffix=``;modifier=3;constructor(e,t,n,r,i,a){this.type=e,this.name=t,this.prefix=n,this.value=r,this.suffix=i,this.modifier=a}hasCustomName(){return this.name!==``&&typeof this.name!=`number`}};OI(kI,`Part`);var AI=/[$_\p{ID_Start}]/u,jI=/[$_\u200C\u200D\p{ID_Continue}]/u,MI=`.*`;function NI(e,t){return(t?/^[\x00-\xFF]*$/:/^[\x00-\x7F]*$/).test(e)}OI(NI,`isASCII`);function PI(e,t=!1){let n=[],r=0;for(;r<e.length;){let i=e[r],a=OI(function(i){if(!t)throw TypeError(i);n.push({type:`INVALID_CHAR`,index:r,value:e[r++]})},`ErrorOrInvalid`);if(i===`*`)n.push({type:`ASTERISK`,index:r,value:e[r++]});else if(i===`+`||i===`?`)n.push({type:`OTHER_MODIFIER`,index:r,value:e[r++]});else if(i===`\\`)n.push({type:`ESCAPED_CHAR`,index:r++,value:e[r++]});else if(i===`{`)n.push({type:`OPEN`,index:r,value:e[r++]});else if(i===`}`)n.push({type:`CLOSE`,index:r,value:e[r++]});else if(i===`:`){let t=``,i=r+1;for(;i<e.length;){let n=e.substr(i,1);if(i===r+1&&AI.test(n)||i!==r+1&&jI.test(n))t+=e[i++];else break}if(!t){a(`Missing parameter name at ${r}`);continue}n.push({type:`NAME`,index:r,value:t}),r=i}else if(i===`(`){let t=1,i=``,o=r+1,s=!1;if(e[o]===`?`){a(`Pattern cannot start with "?" at ${o}`);continue}for(;o<e.length;){if(!NI(e[o],!1)){a(`Invalid character '${e[o]}' at ${o}.`),s=!0;break}if(e[o]===`\\`)i+=e[o++]+e[o++];else{if(e[o]===`)`){if(t--,t===0){o++;break}}else if(e[o]===`(`&&(t++,e[o+1]!==`?`)){a(`Capturing groups are not allowed at ${o}`),s=!0;break}i+=e[o++]}}if(s)continue;if(t){a(`Unbalanced pattern at ${r}`);continue}if(!i){a(`Missing pattern at ${r}`);continue}n.push({type:`REGEX`,index:r,value:i}),r=o}else n.push({type:`CHAR`,index:r,value:e[r++]})}return n.push({type:`END`,index:r,value:``}),n}OI(PI,`lexer`);function FI(e,t={}){let n=PI(e);t.delimiter??=`/#?`,t.prefixes??=`./`;let r=`[^${II(t.delimiter)}]+?`,i=[],a=0,o=0,s=new Set,c=OI(e=>{if(o<n.length&&n[o].type===e)return n[o++].value},`tryConsume`),l=OI(()=>c(`OTHER_MODIFIER`)??c(`ASTERISK`),`tryConsumeModifier`),u=OI(e=>{let t=c(e);if(t!==void 0)return t;let{type:r,index:i}=n[o];throw TypeError(`Unexpected ${r} at ${i}, expected ${e}`)},`mustConsume`),d=OI(()=>{let e=``,t;for(;t=c(`CHAR`)??c(`ESCAPED_CHAR`);)e+=t;return e},`consumeText`),f=OI(e=>e,`DefaultEncodePart`),p=t.encodePart||f,m=``,h=OI(e=>{m+=e},`appendToPendingFixedValue`),g=OI(()=>{m.length&&(i.push(new kI(3,``,``,p(m),``,3)),m=``)},`maybeAddPartFromPendingFixedValue`),_=OI((e,t,n,o,c)=>{let l=3;switch(c){case`?`:l=1;break;case`*`:l=0;break;case`+`:l=2}if(!t&&!n&&l===3){h(e);return}if(g(),!t&&!n){if(!e)return;i.push(new kI(3,``,``,p(e),``,l));return}let u;u=n?n===`*`?MI:n:r;let d=2;u===r?(d=1,u=``):u===MI&&(d=0,u=``);let f;if(t?f=t:n&&(f=a++),s.has(f))throw TypeError(`Duplicate name '${f}'.`);s.add(f),i.push(new kI(d,f,p(e),u,p(o),l))},`addPart`);for(;o<n.length;){let e=c(`CHAR`),n=c(`NAME`),r=c(`REGEX`);if(!n&&!r&&(r=c(`ASTERISK`)),n||r){let i=e??``;t.prefixes.indexOf(i)===-1&&(h(i),i=``),g();let a=l();_(i,n,r,``,a);continue}let i=e??c(`ESCAPED_CHAR`);if(i)h(i);else if(c(`OPEN`)){let e=d(),t=c(`NAME`),n=c(`REGEX`);!t&&!n&&(n=c(`ASTERISK`));let r=d();u(`CLOSE`);let i=l();_(e,t,n,r,i)}else g(),u(`END`)}return i}OI(FI,`parse`);function II(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}OI(II,`escapeString`);function LI(e){return e&&e.ignoreCase?`ui`:`u`}OI(LI,`flags`);function RI(e,t,n){return BI(FI(e,n),t,n)}OI(RI,`stringToRegexp`);function zI(e){switch(e){case 0:return`*`;case 1:return`?`;case 2:return`+`;case 3:return``}}OI(zI,`modifierToString`);function BI(e,t,n={}){n.delimiter??=`/#?`,n.prefixes??=`./`,n.sensitive??=!1,n.strict??=!1,n.end??=!0,n.start??=!0,n.endsWith=``;let r=n.start?`^`:``;for(let i of e){if(i.type===3){i.modifier===3?r+=II(i.value):r+=`(?:${II(i.value)})${zI(i.modifier)}`;continue}t&&t.push(i.name);let e=`[^${II(n.delimiter)}]+?`,a=i.value;i.type===1?a=e:i.type===0&&(a=MI),!i.prefix.length&&!i.suffix.length?i.modifier===3||i.modifier===1?r+=`(${a})${zI(i.modifier)}`:r+=`((?:${a})${zI(i.modifier)})`:i.modifier===3||i.modifier===1?(r+=`(?:${II(i.prefix)}(${a})${II(i.suffix)})`,r+=zI(i.modifier)):(r+=`(?:${II(i.prefix)}`,r+=`((?:${a})(?:`,r+=II(i.suffix),r+=II(i.prefix),r+=`(?:${a}))*)${II(i.suffix)})`,i.modifier===0&&(r+=`?`))}let i=`[${II(n.endsWith)}]|$`,a=`[${II(n.delimiter)}]`;if(n.end)return n.strict||(r+=`${a}?`),n.endsWith.length?r+=`(?=${i})`:r+=`$`,new RegExp(r,LI(n));n.strict||(r+=`(?:${a}(?=${i}))?`);let o=!1;if(e.length){let t=e[e.length-1];t.type===3&&t.modifier===3&&(o=n.delimiter.indexOf(t)>-1)}return o||(r+=`(?=${a}|${i})`),new RegExp(r,LI(n))}OI(BI,`partsToRegexp`);var VI={delimiter:``,prefixes:``,sensitive:!0,strict:!0},HI={delimiter:`.`,prefixes:``,sensitive:!0,strict:!0},UI={delimiter:`/`,prefixes:`/`,sensitive:!0,strict:!0};function WI(e,t){return e.length?e[0]===`/`?!0:!t||e.length<2?!1:(e[0]==`\\`||e[0]==`{`)&&e[1]==`/`:!1}OI(WI,`isAbsolutePathname`);function GI(e,t){return e.startsWith(t)?e.substring(t.length,e.length):e}OI(GI,`maybeStripPrefix`);function KI(e,t){return e.endsWith(t)?e.substr(0,e.length-t.length):e}OI(KI,`maybeStripSuffix`);function qI(e){return!e||e.length<2?!1:e[0]===`[`||(e[0]===`\\`||e[0]===`{`)&&e[1]===`[`}OI(qI,`treatAsIPv6Hostname`);var JI=[`ftp`,`file`,`http`,`https`,`ws`,`wss`];function YI(e){if(!e)return!0;for(let t of JI)if(e.test(t))return!0;return!1}OI(YI,`isSpecialScheme`);function XI(e,t){if(e=GI(e,`#`),t||e===``)return e;let n=new URL(`https://example.com`);return n.hash=e,n.hash?n.hash.substring(1,n.hash.length):``}OI(XI,`canonicalizeHash`);function ZI(e,t){if(e=GI(e,`?`),t||e===``)return e;let n=new URL(`https://example.com`);return n.search=e,n.search?n.search.substring(1,n.search.length):``}OI(ZI,`canonicalizeSearch`);function QI(e,t){return t||e===``?e:qI(e)?lL(e):cL(e)}OI(QI,`canonicalizeHostname`);function $I(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.password=e,n.password}OI($I,`canonicalizePassword`);function eL(e,t){if(t||e===``)return e;let n=new URL(`https://example.com`);return n.username=e,n.username}OI(eL,`canonicalizeUsername`);function tL(e,t,n){if(n||e===``)return e;if(t&&!JI.includes(t))return new URL(`${t}:${e}`).pathname;let r=e[0]==`/`;return e=new URL(r?e:`/-`+e,`https://example.com`).pathname,r||(e=e.substring(2,e.length)),e}OI(tL,`canonicalizePathname`);function nL(e,t,n){return iL(t)===e&&(e=``),n||e===``?e:uL(e)}OI(nL,`canonicalizePort`);function rL(e,t){return e=KI(e,`:`),t||e===``?e:aL(e)}OI(rL,`canonicalizeProtocol`);function iL(e){switch(e){case`ws`:case`http`:return`80`;case`wws`:case`https`:return`443`;case`ftp`:return`21`;default:return``}}OI(iL,`defaultPortForProtocol`);function aL(e){if(e===``)return e;if(/^[-+.A-Za-z0-9]*$/.test(e))return e.toLowerCase();throw TypeError(`Invalid protocol '${e}'.`)}OI(aL,`protocolEncodeCallback`);function oL(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.username=e,t.username}OI(oL,`usernameEncodeCallback`);function sL(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.password=e,t.password}OI(sL,`passwordEncodeCallback`);function cL(e){if(e===``)return e;if(/[\t\n\r #%/:<>?@[\]^\\|]/g.test(e))throw TypeError(`Invalid hostname '${e}'`);let t=new URL(`https://example.com`);return t.hostname=e,t.hostname}OI(cL,`hostnameEncodeCallback`);function lL(e){if(e===``)return e;if(/[^0-9a-fA-F[\]:]/g.test(e))throw TypeError(`Invalid IPv6 hostname '${e}'`);return e.toLowerCase()}OI(lL,`ipv6HostnameEncodeCallback`);function uL(e){if(e===``||/^[0-9]*$/.test(e)&&parseInt(e)<=65535)return e;throw TypeError(`Invalid port '${e}'.`)}OI(uL,`portEncodeCallback`);function dL(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.pathname=e[0]===`/`?e:`/-`+e,e[0]===`/`?t.pathname:t.pathname.substring(2,t.pathname.length)}OI(dL,`standardURLPathnameEncodeCallback`);function fL(e){return e===``?e:new URL(`data:${e}`).pathname}OI(fL,`pathURLPathnameEncodeCallback`);function pL(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.search=e,t.search.substring(1,t.search.length)}OI(pL,`searchEncodeCallback`);function mL(e){if(e===``)return e;let t=new URL(`https://example.com`);return t.hash=e,t.hash.substring(1,t.hash.length)}OI(mL,`hashEncodeCallback`);var hL=class{#e;#t=[];#n={};#r=0;#i=1;#a=0;#o=0;#s=0;#c=0;#l=!1;constructor(e){this.#e=e}get result(){return this.#n}parse(){for(this.#t=PI(this.#e,!0);this.#r<this.#t.length;this.#r+=this.#i){if(this.#i=1,this.#t[this.#r].type===`END`){if(this.#o===0){this.#f(),this.#C()?this.#u(9,1):this.#S()?this.#u(8,1):this.#u(7,0);continue}if(this.#o===2){this.#p(5);continue}this.#u(10,0);break}if(this.#s>0){if(this.#T())--this.#s;else continue}if(this.#w())this.#s+=1;else switch(this.#o){case 0:this.#g()&&this.#p(1);break;case 1:if(this.#g()){this.#k();let e=7,t=1;this.#_()?(e=2,t=3):this.#l&&(e=2),this.#u(e,t)}break;case 2:this.#v()?this.#p(3):(this.#x()||this.#S()||this.#C())&&this.#p(5);break;case 3:this.#y()?this.#u(4,1):this.#v()&&this.#u(5,1);break;case 4:this.#v()&&this.#u(5,1);break;case 5:this.#E()?this.#c+=1:this.#D()&&--this.#c,this.#b()&&!this.#c?this.#u(6,1):this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 6:this.#x()?this.#u(7,0):this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 7:this.#S()?this.#u(8,1):this.#C()&&this.#u(9,1);break;case 8:this.#C()&&this.#u(9,1)}}this.#n.hostname!==void 0&&this.#n.port===void 0&&(this.#n.port=``)}#u(e,t){switch(this.#o){case 0:break;case 1:this.#n.protocol=this.#O();break;case 2:break;case 3:this.#n.username=this.#O();break;case 4:this.#n.password=this.#O();break;case 5:this.#n.hostname=this.#O();break;case 6:this.#n.port=this.#O();break;case 7:this.#n.pathname=this.#O();break;case 8:this.#n.search=this.#O();break;case 9:this.#n.hash=this.#O()}this.#o!==0&&e!==10&&([1,2,3,4].includes(this.#o)&&[6,7,8,9].includes(e)&&(this.#n.hostname??=``),[1,2,3,4,5,6].includes(this.#o)&&[8,9].includes(e)&&(this.#n.pathname??=this.#l?`/`:``),[1,2,3,4,5,6,7].includes(this.#o)&&e===9&&(this.#n.search??=``)),this.#d(e,t)}#d(e,t){this.#o=e,this.#a=this.#r+t,this.#r+=t,this.#i=0}#f(){this.#r=this.#a,this.#i=0}#p(e){this.#f(),this.#o=e}#m(e){return e<0&&(e=this.#t.length-e),e<this.#t.length?this.#t[e]:this.#t[this.#t.length-1]}#h(e,t){let n=this.#m(e);return n.value===t&&(n.type===`CHAR`||n.type===`ESCAPED_CHAR`||n.type===`INVALID_CHAR`)}#g(){return this.#h(this.#r,`:`)}#_(){return this.#h(this.#r+1,`/`)&&this.#h(this.#r+2,`/`)}#v(){return this.#h(this.#r,`@`)}#y(){return this.#h(this.#r,`:`)}#b(){return this.#h(this.#r,`:`)}#x(){return this.#h(this.#r,`/`)}#S(){if(this.#h(this.#r,`?`))return!0;if(this.#t[this.#r].value!==`?`)return!1;let e=this.#m(this.#r-1);return e.type!==`NAME`&&e.type!==`REGEX`&&e.type!==`CLOSE`&&e.type!==`ASTERISK`}#C(){return this.#h(this.#r,`#`)}#w(){return this.#t[this.#r].type==`OPEN`}#T(){return this.#t[this.#r].type==`CLOSE`}#E(){return this.#h(this.#r,`[`)}#D(){return this.#h(this.#r,`]`)}#O(){let e=this.#t[this.#r],t=this.#m(this.#a).index;return this.#e.substring(t,e.index)}#k(){let e={};Object.assign(e,VI),e.encodePart=aL;let t=RI(this.#O(),void 0,e);this.#l=YI(t)}};OI(hL,`Parser`);var gL=[`protocol`,`username`,`password`,`hostname`,`port`,`pathname`,`search`,`hash`],_L=`*`;function vL(e,t){if(typeof e!=`string`)throw TypeError(`parameter 1 is not of type 'string'.`);let n=new URL(e,t);return{protocol:n.protocol.substring(0,n.protocol.length-1),username:n.username,password:n.password,hostname:n.hostname,port:n.port,pathname:n.pathname,search:n.search===``?void 0:n.search.substring(1,n.search.length),hash:n.hash===``?void 0:n.hash.substring(1,n.hash.length)}}OI(vL,`extractValues`);function yL(e,t){return t?xL(e):e}OI(yL,`processBaseURLString`);function bL(e,t,n){let r;if(typeof t.baseURL==`string`)try{r=new URL(t.baseURL),t.protocol===void 0&&(e.protocol=yL(r.protocol.substring(0,r.protocol.length-1),n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&(e.username=yL(r.username,n)),!n&&t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.username===void 0&&t.password===void 0&&(e.password=yL(r.password,n)),t.protocol===void 0&&t.hostname===void 0&&(e.hostname=yL(r.hostname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&(e.port=yL(r.port,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&(e.pathname=yL(r.pathname,n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&(e.search=yL(r.search.substring(1,r.search.length),n)),t.protocol===void 0&&t.hostname===void 0&&t.port===void 0&&t.pathname===void 0&&t.search===void 0&&t.hash===void 0&&(e.hash=yL(r.hash.substring(1,r.hash.length),n))}catch{throw TypeError(`invalid baseURL '${t.baseURL}'.`)}if(typeof t.protocol==`string`&&(e.protocol=rL(t.protocol,n)),typeof t.username==`string`&&(e.username=eL(t.username,n)),typeof t.password==`string`&&(e.password=$I(t.password,n)),typeof t.hostname==`string`&&(e.hostname=QI(t.hostname,n)),typeof t.port==`string`&&(e.port=nL(t.port,e.protocol,n)),typeof t.pathname==`string`){if(e.pathname=t.pathname,r&&!WI(e.pathname,n)){let t=r.pathname.lastIndexOf(`/`);t>=0&&(e.pathname=yL(r.pathname.substring(0,t+1),n)+e.pathname)}e.pathname=tL(e.pathname,e.protocol,n)}return typeof t.search==`string`&&(e.search=ZI(t.search,n)),typeof t.hash==`string`&&(e.hash=XI(t.hash,n)),e}OI(bL,`applyInit`);function xL(e){return e.replace(/([+*?:{}()\\])/g,`\\$1`)}OI(xL,`escapePatternString`);function SL(e){return e.replace(/([.+*?^${}()[\]|/\\])/g,`\\$1`)}OI(SL,`escapeRegexpString`);function CL(e,t){t.delimiter??=`/#?`,t.prefixes??=`./`,t.sensitive??=!1,t.strict??=!1,t.end??=!0,t.start??=!0,t.endsWith=``;let n=`[^${SL(t.delimiter)}]+?`,r=/[$_\u200C\u200D\p{ID_Continue}]/u,i=``;for(let a=0;a<e.length;++a){let o=e[a];if(o.type===3){if(o.modifier===3){i+=xL(o.value);continue}i+=`{${xL(o.value)}}${zI(o.modifier)}`;continue}let s=o.hasCustomName(),c=!!o.suffix.length||!!o.prefix.length&&(o.prefix.length!==1||!t.prefixes.includes(o.prefix)),l=a>0?e[a-1]:null,u=a<e.length-1?e[a+1]:null;if(!c&&s&&o.type===1&&o.modifier===3&&u&&!u.prefix.length&&!u.suffix.length){if(u.type===3){let e=u.value.length>0?u.value[0]:``;c=r.test(e)}else c=!u.hasCustomName()}if(!c&&!o.prefix.length&&l&&l.type===3){let e=l.value[l.value.length-1];c=t.prefixes.includes(e)}c&&(i+=`{`),i+=xL(o.prefix),s&&(i+=`:${o.name}`),o.type===2?i+=`(${o.value})`:o.type===1?s||(i+=`(${n})`):o.type===0&&(!s&&(!l||l.type===3||l.modifier!==3||c||o.prefix!==``)?i+=`*`:i+=`(.*)`),o.type===1&&s&&o.suffix.length&&r.test(o.suffix[0])&&(i+=`\\`),i+=xL(o.suffix),c&&(i+=`}`),o.modifier!==3&&(i+=zI(o.modifier))}return i}OI(CL,`partsToPattern`);var wL=class{#e;#t={};#n={};#r={};#i={};#a=!1;constructor(e={},t,n){try{let r;if(typeof t==`string`?r=t:n=t,typeof e==`string`){let t=new hL(e);if(t.parse(),e=t.result,r===void 0&&typeof e.protocol!=`string`)throw TypeError(`A base URL must be provided for a relative constructor string.`);e.baseURL=r}else{if(!e||typeof e!=`object`)throw TypeError(`parameter 1 is not of type 'string' and cannot convert to dictionary.`);if(r)throw TypeError(`parameter 1 is not of type 'string'.`)}typeof n>`u`&&(n={ignoreCase:!1});let i={ignoreCase:n.ignoreCase===!0},a={pathname:_L,protocol:_L,username:_L,password:_L,hostname:_L,port:_L,search:_L,hash:_L};this.#e=bL(a,e,!0),iL(this.#e.protocol)===this.#e.port&&(this.#e.port=``);let o;for(o of gL){if(!(o in this.#e))continue;let e={},t=this.#e[o];switch(this.#n[o]=[],o){case`protocol`:Object.assign(e,VI),e.encodePart=aL;break;case`username`:Object.assign(e,VI),e.encodePart=oL;break;case`password`:Object.assign(e,VI),e.encodePart=sL;break;case`hostname`:Object.assign(e,HI),e.encodePart=qI(t)?lL:cL;break;case`port`:Object.assign(e,VI),e.encodePart=uL;break;case`pathname`:YI(this.#t.protocol)?(Object.assign(e,UI,i),e.encodePart=dL):(Object.assign(e,VI,i),e.encodePart=fL);break;case`search`:Object.assign(e,VI,i),e.encodePart=pL;break;case`hash`:Object.assign(e,VI,i),e.encodePart=mL}try{this.#i[o]=FI(t,e),this.#t[o]=BI(this.#i[o],this.#n[o],e),this.#r[o]=CL(this.#i[o],e),this.#a=this.#a||this.#i[o].some(e=>e.type===2)}catch{throw TypeError(`invalid ${o} pattern '${this.#e[o]}'.`)}}}catch(e){throw TypeError(`Failed to construct 'URLPattern': ${e.message}`)}}get[Symbol.toStringTag](){return`URLPattern`}test(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return!1;try{n=typeof e==`object`?bL(n,e,!1):bL(n,vL(e,t),!1)}catch{return!1}let r;for(r of gL)if(!this.#t[r].exec(n[r]))return!1;return!0}exec(e={},t){let n={pathname:``,protocol:``,username:``,password:``,hostname:``,port:``,search:``,hash:``};if(typeof e!=`string`&&t)throw TypeError(`parameter 1 is not of type 'string'.`);if(typeof e>`u`)return;try{n=typeof e==`object`?bL(n,e,!1):bL(n,vL(e,t),!1)}catch{return null}let r={};r.inputs=t?[e,t]:[e];let i;for(i of gL){let e=this.#t[i].exec(n[i]);if(!e)return null;let t={};for(let[n,r]of this.#n[i].entries())(typeof r==`string`||typeof r==`number`)&&(t[r]=e[n+1]);r[i]={input:n[i]??``,groups:t}}return r}static compareComponent(e,t,n){let r=OI((e,t)=>{for(let n of[`type`,`modifier`,`prefix`,`value`,`suffix`]){if(e[n]<t[n])return-1;if(e[n]!==t[n])return 1}return 0},`comparePart`),i=new kI(3,``,``,``,``,3),a=new kI(0,``,``,``,``,3),o=OI((e,t)=>{let n=0;for(;n<Math.min(e.length,t.length);++n){let i=r(e[n],t[n]);if(i)return i}return e.length===t.length?0:r(e[n]??i,t[n]??i)},`comparePartList`);return!t.#r[e]&&!n.#r[e]?0:t.#r[e]&&!n.#r[e]?o(t.#i[e],[a]):!t.#r[e]&&n.#r[e]?o([a],n.#i[e]):o(t.#i[e],n.#i[e])}get protocol(){return this.#r.protocol}get username(){return this.#r.username}get password(){return this.#r.password}get hostname(){return this.#r.hostname}get port(){return this.#r.port}get pathname(){return this.#r.pathname}get search(){return this.#r.search}get hash(){return this.#r.hash}get hasRegExpGroups(){return this.#a}};OI(wL,`URLPattern`),globalThis.URLPattern||(globalThis.URLPattern=wL);function TL(e,t,n){return parseInt(e.substr(t,n),16)}function EL(e){return e|=0,e<0?`00`:e<16?`0`+e.toString(16):e<256?e.toString(16):`ff`}function DL(e,t,n){return n=n<0?n+6:n>6?n-6:n,EL(255*(n<1?e+(t-e)*n:n<3?t:n<4?e+(t-e)*(4-n):e))}function OL(e){if(/^#[0-9a-f]{3,8}$/i.test(e)){let t,n=e.length;if(n<6){let n=e[1],r=e[2],i=e[3],a=e[4]||``;t=`#`+n+n+r+r+i+i+a+a}return(n==7||n>8)&&(t=e),t}}function kL(e,t,n){let r;if(t==0){let e=EL(n*255);r=e+e+e}else{let i=n<=.5?n*(t+1):n+t-n*t,a=n*2-i;r=DL(a,i,e*6+2)+DL(a,i,e*6)+DL(a,i,e*6-2)}return`#`+r}function AL(e,t,n){let r=[.55,.5,.5,.46,.6,.55,.55][e*6+.5|0];return n=n<.5?n*r*2:r+(n-.5)*(1-r)*2,kL(e,t,n)}var jL=typeof window<`u`?window:typeof self<`u`?self:typeof global<`u`?global:{},ML={V:`jdenticon_config`,n:`config`},NL={};function PL(e,t){let n=typeof e==`object`&&e||NL[ML.n]||jL[ML.V]||{},r=n.lightness||{},i=n.saturation||{},a=`color`in i?i.color:i,o=i.grayscale,s=n.backColor,c=n.padding;function l(e,t){let n=r[e];return n&&n.length>1||(n=t),function(e){return e=n[0]+e*(n[1]-n[0]),e<0?0:e>1?1:e}}function u(e){let t=n.hues,r;return t&&t.length>0&&(r=t[0|.999*e*t.length]),typeof r==`number`?(r/360%1+1)%1:e}return{W:u,o:typeof a==`number`?a:.5,D:typeof o==`number`?o:0,p:l(`color`,[.4,.8]),F:l(`grayscale`,[.3,.9]),G:OL(s),X:typeof e==`number`?e:typeof c==`number`?c:t}}var FL=class{constructor(e,t){this.x=e,this.y=t}},IL=class{constructor(e,t,n,r){this.q=e,this.t=t,this.H=n,this.Y=r}I(e,t,n,r){let i=this.q+this.H,a=this.t+this.H,o=this.Y;return o===1?new FL(i-t-(r||0),this.t+e):o===2?new FL(i-e-(n||0),a-t-(r||0)):o===3?new FL(this.q+t,a-e-(n||0)):new FL(this.q+e,this.t+t)}},LL=new IL(0,0,0,0),RL=class{constructor(e){this.J=e,this.u=LL}g(e,t){let n=t?-2:2,r=[];for(let i=t?e.length-2:0;i<e.length&&i>=0;i+=n)r.push(this.u.I(e[i],e[i+1]));this.J.g(r)}h(e,t,n,r){let i=this.u.I(e,t,n,n);this.J.h(i,n,r)}i(e,t,n,r,i){this.g([e,t,e+n,t,e+n,t+r,e,t+r],i)}j(e,t,n,r,i,a){let o=[e+n,t,e+n,t+r,e,t+r,e,t];o.splice((i||0)%4*2,2),this.g(o,a)}K(e,t,n,r,i){this.g([e+n/2,t,e+n,t+r/2,e+n/2,t+r,e,t+r/2],i)}};function zL(e,t,n,r){e%=14;let i,a,o,s,c,l;e?e==1?(o=0|n*.5,s=0|n*.8,t.j(n-o,0,o,s,2)):e==2?(o=0|n/3,t.i(o,o,n-o,n-o)):e==3?(c=n*.1,l=n<6?1:n<8?2:0|n*.25,c=c>1?0|c:c>.5?1:c,t.i(l,l,n-c-l,n-c-l)):e==4?(a=0|n*.15,o=0|n*.5,t.h(n-o-a,n-o-a,o)):e==5?(c=n*.1,l=c*4,l>3&&(l=0|l),t.i(0,0,n,n),t.g([l,l,n-c,l,l+(n-l-c)/2,n-c],!0)):e==6?t.g([0,0,n,0,n,n*.7,n*.4,n*.4,n*.7,n,0,n]):e==7?t.j(n/2,n/2,n/2,n/2,3):e==8?(t.i(0,0,n,n/2),t.i(0,n/2,n/2,n/2),t.j(n/2,n/2,n/2,n/2,1)):e==9?(c=n*.14,l=n<4?1:n<6?2:0|n*.35,c=n<8?c:0|c,t.i(0,0,n,n),t.i(l,l,n-l-c,n-l-c,!0)):e==10?(c=n*.12,l=c*3,t.i(0,0,n,n),t.h(l,l,n-c-l,!0)):e==11?t.j(n/2,n/2,n/2,n/2,3):e==12?(a=n*.25,t.i(0,0,n,n),t.K(a,a,n-a,n-a,!0)):!r&&(a=n*.4,o=n*1.2,t.h(a,a,o)):(i=n*.42,t.g([0,0,n,0,n,n-i*2,n-i,n,0,n]))}function BL(e,t,n){e%=4;let r;e?e==1?t.j(0,n/2,n,n/2,0):e==2?t.K(0,0,n,n):(r=n/6,t.h(r,r,n-2*r)):t.j(0,0,n,n,0)}function VL(e,t){return e=t.W(e),[AL(e,t.D,t.F(0)),AL(e,t.o,t.p(.5)),AL(e,t.D,t.F(1)),AL(e,t.o,t.p(1)),AL(e,t.o,t.p(0))]}function HL(e,t,n){let r=PL(n,.08);r.G&&e.m(r.G);let i=e.k,a=.5+i*r.X|0;i-=a*2;let o=new RL(e),s=0|i/4,c=0|a+i/2-s*2,l=0|a+i/2-s*2;function u(n,r,i,a,u){let p=TL(t,i,1),m=a?TL(t,a,1):0;e.L(d[f[n]]);for(let e=0;e<u.length;e++)o.u=new IL(c+u[e][0]*s,l+u[e][1]*s,s,m++%4),r(p,o,s,e);e.M()}let d=VL(TL(t,-7)/268435455,r),f=[],p;function m(e){if(e.indexOf(p)>=0){for(let t=0;t<e.length;t++)if(f.indexOf(e[t])>=0)return!0}}for(let e=0;e<3;e++)p=TL(t,8+e,1)%d.length,(m([0,4])||m([2,3]))&&(p=1),f.push(p);u(0,BL,2,3,[[1,0],[2,0],[2,3],[1,3],[0,1],[3,1],[3,2],[0,2]]),u(1,BL,4,5,[[0,0],[3,0],[3,3],[0,3]]),u(2,zL,1,null,[[1,1],[2,1],[2,2],[1,2]]),e.finish()}function UL(e){var t=0,n=0,r=encodeURI(e)+`%80`,i=[],a,o=[],s=1732584193,c=4023233417,l=~s,u=~c,d=3285377520,f=[s,c,l,u,d],p=0,m=``;function h(e,t){return e<<t|e>>>32-t}for(;t<r.length;n++)i[n>>2]=i[n>>2]|(r[t]==`%`?parseInt(r.substring(t+1,t+=3),16):r.charCodeAt(t++))<<(3-(n&3))*8;for(a=((n+7>>6)+1)*16,i[a-1]=n*8-8;p<a;p+=16){for(t=0;t<80;t++)n=h(s,5)+d+(t<20?(c&l^~c&u)+1518500249:t<40?(c^l^u)+1859775393:t<60?(c&l^c&u^l&u)+2400959708:(c^l^u)+3395469782)+(o[t]=t<16?i[p+t]|0:h(o[t-3]^o[t-8]^o[t-14]^o[t-16],1)),d=u,u=l,l=h(c,30),c=s,s=n;f[0]=s=f[0]+s|0,f[1]=c=f[1]+c|0,f[2]=l=f[2]+l|0,f[3]=u=f[3]+u|0,f[4]=d=f[4]+d|0}for(t=0;t<40;t++)m+=(f[t>>3]>>>(7-(t&7))*4&15).toString(16);return m}function WL(e){return/^[0-9a-f]{11,}$/i.test(e)&&e}function GL(e){return UL(e==null?``:``+e)}typeof document<`u`&&document.querySelectorAll.bind(document);function KL(e){return(e*10+.5|0)/10}var qL=class{constructor(){this.v=``}g(e){let t=``;for(let n=0;n<e.length;n++)t+=(n?`L`:`M`)+KL(e[n].x)+` `+KL(e[n].y);this.v+=t+`Z`}h(e,t,n){let r=+!n,i=KL(t/2),a=KL(t),o=`a`+i+`,`+i+` 0 1,`+r+` `;this.v+=`M`+KL(e.x)+` `+KL(e.y+t/2)+o+a+`,0`+o+-a+`,0`}},JL=class{constructor(e){this.A,this.B={},this.O=e,this.k=e.k}m(e){let t=/^(#......)(..)?/.exec(e),n=t[2]?TL(t[2],0)/255:1;this.O.m(t[1],n)}L(e){this.A=this.B[e]||(this.B[e]=new qL)}M(){}g(e){this.A.g(e)}h(e,t,n){this.A.h(e,t,n)}finish(){let e=this.B;for(let t in e)e.hasOwnProperty(t)&&this.O.P(t,e[t].v)}},YL={R:`http://www.w3.org/2000/svg`,S:`width`,T:`height`},XL=class{constructor(e){this.k=e,this.C=`<svg xmlns="`+YL.R+`" width="`+e+`" height="`+e+`" viewBox="0 0 `+e+` `+e+`">`}m(e,t){t&&(this.C+=`<rect width="100%" height="100%" fill="`+e+`" opacity="`+t.toFixed(2)+`"/>`)}P(e,t){this.C+=`<path fill="`+e+`" d="`+t+`"/>`}toString(){return this.C+`</svg>`}};function ZL(e,t,n){let r=new XL(t);return HL(new JL(r),WL(e)||GL(e),n),r.toString()}function QL(e){let t=new Date(e);if(!Number.isNaN(t.valueOf()))return t;let n=String(e).match(/\d+/g);if(n==null||n.length<=2)return t;{let[e,t,...r]=n.map(e=>parseInt(e)),i=[e,t-1,...r];return new Date(Date.UTC(...i))}}var $L=(e,t,n)=>{let r=e===1?t:t+`s`;return e+` `+r+` `+n};function eR(){return eR=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eR.apply(null,arguments)}var tR=60,nR=3600,rR=nR*24,iR=rR*7,aR=rR*30,oR=rR*365,sR=()=>Date.now();function cR({date:e,formatter:t,component:n=`time`,live:r=!0,minPeriod:i=0,maxPeriod:a=iR,title:o,now:s=sR,...c}){let[l,u]=(0,z.useState)(s());(0,z.useEffect)(()=>{if(!r)return;let t=(()=>{let t=QL(e).valueOf();if(!t)return console.warn(`[react-timeago] Invalid Date provided`),0;let n=Math.round(Math.abs(l-t)/1e3),r=Math.min(Math.max(n<tR?1e3:n<nR?1e3*tR:n<rR?1e3*nR:1e3*iR,i*1e3),a*1e3);return r?setTimeout(()=>{u(s())},r):0})();return()=>{t&&clearTimeout(t)}},[e,r,a,i,s,l]),(0,z.useEffect)(()=>{u(s())},[e]);let d=n,f=QL(e).valueOf();if(!f)return null;let p=Math.round(Math.abs(l-f)/1e3),m=f<l?`ago`:`from now`,[h,g]=p<tR?[Math.round(p),`second`]:p<nR?[Math.round(p/tR),`minute`]:p<rR?[Math.round(p/nR),`hour`]:p<iR?[Math.round(p/rR),`day`]:p<aR?[Math.round(p/iR),`week`]:p<oR?[Math.round(p/aR),`month`]:[Math.round(p/oR),`year`],_=o===void 0?typeof e==`string`?e:QL(e).toISOString().substring(0,16).replace(`T`,` `):o,v=d===`time`?{...c,dateTime:QL(e).toISOString()}:c,y=(e=e,t=t,n=n,r=f,i=$L,a=a)=>$L(e,t,n,r,i,a),b=t||$L,x;try{x=b(h,g,m,f,y,s),x||=$L(h,g,m,f,y,s)}catch(e){console.error(`[react-timeago] Formatter threw an error:`,e),x=$L(h,g,m,f,y,s)}return z.createElement(d,eR({},v,{title:_}),x)}function lR(){var e=[...arguments];return(0,z.useMemo)(()=>t=>{e.forEach(e=>e(t))},e)}var uR=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0;function dR(e){let t=Object.prototype.toString.call(e);return t===`[object Window]`||t===`[object global]`}function fR(e){return`nodeType`in e}function pR(e){return e?dR(e)?e:fR(e)?e.ownerDocument?.defaultView??window:window:window}function mR(e){let{Document:t}=pR(e);return e instanceof t}function hR(e){return!dR(e)&&e instanceof pR(e).HTMLElement}function gR(e){return e instanceof pR(e).SVGElement}function _R(e){return e?dR(e)?e.document:fR(e)?mR(e)?e:hR(e)||gR(e)?e.ownerDocument:document:document:document}var vR=uR?z.useLayoutEffect:z.useEffect;function yR(e){let t=(0,z.useRef)(e);return vR(()=>{t.current=e}),(0,z.useCallback)(function(){var e=[...arguments];return t.current==null?void 0:t.current(...e)},[])}function bR(){let e=(0,z.useRef)(null);return[(0,z.useCallback)((t,n)=>{e.current=setInterval(t,n)},[]),(0,z.useCallback)(()=>{e.current!==null&&(clearInterval(e.current),e.current=null)},[])]}function xR(e,t){t===void 0&&(t=[e]);let n=(0,z.useRef)(e);return vR(()=>{n.current!==e&&(n.current=e)},t),n}function SR(e,t){let n=(0,z.useRef)();return(0,z.useMemo)(()=>{let t=e(n.current);return n.current=t,t},[...t])}function CR(e){let t=yR(e),n=(0,z.useRef)(null);return[n,(0,z.useCallback)(e=>{e!==n.current&&t?.(e,n.current),n.current=e},[])]}function wR(e){let t=(0,z.useRef)();return(0,z.useEffect)(()=>{t.current=e},[e]),t.current}var TR={};function ER(e,t){return(0,z.useMemo)(()=>{if(t)return t;let n=TR[e]==null?0:TR[e]+1;return TR[e]=n,e+`-`+n},[e,t])}function DR(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>{let r=Object.entries(n);for(let[n,i]of r){let r=t[n];r!=null&&(t[n]=r+e*i)}return t},{...t})}}var OR=DR(1),kR=DR(-1);function AR(e){return`clientX`in e&&`clientY`in e}function jR(e){if(!e)return!1;let{KeyboardEvent:t}=pR(e.target);return t&&e instanceof t}function MR(e){if(!e)return!1;let{TouchEvent:t}=pR(e.target);return t&&e instanceof t}function NR(e){if(MR(e)){if(e.touches&&e.touches.length){let{clientX:t,clientY:n}=e.touches[0];return{x:t,y:n}}if(e.changedTouches&&e.changedTouches.length){let{clientX:t,clientY:n}=e.changedTouches[0];return{x:t,y:n}}}return AR(e)?{x:e.clientX,y:e.clientY}:null}var PR=Object.freeze({Translate:{toString(e){if(!e)return;let{x:t,y:n}=e;return`translate3d(`+(t?Math.round(t):0)+`px, `+(n?Math.round(n):0)+`px, 0)`}},Scale:{toString(e){if(!e)return;let{scaleX:t,scaleY:n}=e;return`scaleX(`+t+`) scaleY(`+n+`)`}},Transform:{toString(e){if(e)return[PR.Translate.toString(e),PR.Scale.toString(e)].join(` `)}},Transition:{toString(e){let{property:t,duration:n,easing:r}=e;return t+` `+n+`ms `+r}}}),FR=`a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]`;function IR(e){return e.matches(FR)?e:e.querySelector(FR)}var LR={display:`none`};function RR(e){let{id:t,value:n}=e;return z.createElement(`div`,{id:t,style:LR},n)}function zR(e){let{id:t,announcement:n,ariaLiveType:r=`assertive`}=e;return z.createElement(`div`,{id:t,style:{position:`fixed`,top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:`hidden`,clip:`rect(0 0 0 0)`,clipPath:`inset(100%)`,whiteSpace:`nowrap`},role:`status`,"aria-live":r,"aria-atomic":!0},n)}function BR(){let[e,t]=(0,z.useState)(``);return{announce:(0,z.useCallback)(e=>{e!=null&&t(e)},[]),announcement:e}}var VR=(0,z.createContext)(null);function HR(e){let t=(0,z.useContext)(VR);(0,z.useEffect)(()=>{if(!t)throw Error(`useDndMonitor must be used within a children of <DndContext>`);return t(e)},[e,t])}function UR(){let[e]=(0,z.useState)(()=>new Set),t=(0,z.useCallback)(t=>(e.add(t),()=>e.delete(t)),[e]);return[(0,z.useCallback)(t=>{let{type:n,event:r}=t;e.forEach(e=>e[n]?.call(e,r))},[e]),t]}var WR={draggable:`
|
|
223
|
+
To pick up a draggable item, press the space bar.
|
|
224
|
+
While dragging, use the arrow keys to move the item.
|
|
225
|
+
Press space again to drop the item in its new position, or press escape to cancel.
|
|
226
|
+
`},GR={onDragStart(e){let{active:t}=e;return`Picked up draggable item `+t.id+`.`},onDragOver(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was moved over droppable area `+n.id+`.`:`Draggable item `+t.id+` is no longer over a droppable area.`},onDragEnd(e){let{active:t,over:n}=e;return n?`Draggable item `+t.id+` was dropped over droppable area `+n.id:`Draggable item `+t.id+` was dropped.`},onDragCancel(e){let{active:t}=e;return`Dragging was cancelled. Draggable item `+t.id+` was dropped.`}};function KR(e){let{announcements:t=GR,container:n,hiddenTextDescribedById:r,screenReaderInstructions:i=WR}=e,{announce:a,announcement:o}=BR(),s=ER(`DndLiveRegion`),[c,l]=(0,z.useState)(!1);if((0,z.useEffect)(()=>{l(!0)},[]),HR((0,z.useMemo)(()=>({onDragStart(e){let{active:n}=e;a(t.onDragStart({active:n}))},onDragMove(e){let{active:n,over:r}=e;t.onDragMove&&a(t.onDragMove({active:n,over:r}))},onDragOver(e){let{active:n,over:r}=e;a(t.onDragOver({active:n,over:r}))},onDragEnd(e){let{active:n,over:r}=e;a(t.onDragEnd({active:n,over:r}))},onDragCancel(e){let{active:n,over:r}=e;a(t.onDragCancel({active:n,over:r}))}}),[a,t])),!c)return null;let u=z.createElement(z.Fragment,null,z.createElement(RR,{id:r,value:i.draggable}),z.createElement(zR,{id:s,announcement:o}));return n?(0,Pl.createPortal)(u,n):u}var qR;(function(e){e.DragStart=`dragStart`,e.DragMove=`dragMove`,e.DragEnd=`dragEnd`,e.DragCancel=`dragCancel`,e.DragOver=`dragOver`,e.RegisterDroppable=`registerDroppable`,e.SetDroppableDisabled=`setDroppableDisabled`,e.UnregisterDroppable=`unregisterDroppable`})(qR||={});function JR(){}function YR(e,t){return(0,z.useMemo)(()=>({sensor:e,options:t??{}}),[e,t])}function XR(){var e=[...arguments];return(0,z.useMemo)(()=>[...e].filter(e=>e!=null),[...e])}var ZR=Object.freeze({x:0,y:0});function QR(e,t){return Math.sqrt((e.x-t.x)**2+(e.y-t.y)**2)}function $R(e,t){let n=NR(e);if(!n)return`0 0`;let r={x:(n.x-t.left)/t.width*100,y:(n.y-t.top)/t.height*100};return r.x+`% `+r.y+`%`}function ez(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return n-r}function tz(e,t){let{data:{value:n}}=e,{data:{value:r}}=t;return r-n}function nz(e){let{left:t,top:n,height:r,width:i}=e;return[{x:t,y:n},{x:t+i,y:n},{x:t,y:n+r},{x:t+i,y:n+r}]}function rz(e,t){if(!e||e.length===0)return null;let[n]=e;return t?n[t]:n}function iz(e,t,n){return t===void 0&&(t=e.left),n===void 0&&(n=e.top),{x:t+e.width*.5,y:n+e.height*.5}}var az=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=iz(t,t.left,t.top),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=QR(iz(r),i);a.push({id:t,data:{droppableContainer:e,value:n}})}}return a.sort(ez)},oz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=nz(t),a=[];for(let e of r){let{id:t}=e,r=n.get(t);if(r){let n=nz(r),o=i.reduce((e,t,r)=>e+QR(n[r],t),0),s=Number((o/4).toFixed(4));a.push({id:t,data:{droppableContainer:e,value:s}})}}return a.sort(ez)};function sz(e,t){let n=Math.max(t.top,e.top),r=Math.max(t.left,e.left),i=Math.min(t.left+t.width,e.left+e.width),a=Math.min(t.top+t.height,e.top+e.height),o=i-r,s=a-n;if(r<i&&n<a){let n=t.width*t.height,r=e.width*e.height,i=o*s,a=i/(n+r-i);return Number(a.toFixed(4))}return 0}var cz=e=>{let{collisionRect:t,droppableRects:n,droppableContainers:r}=e,i=[];for(let e of r){let{id:r}=e,a=n.get(r);if(a){let n=sz(a,t);n>0&&i.push({id:r,data:{droppableContainer:e,value:n}})}}return i.sort(tz)};function lz(e,t){let{top:n,left:r,bottom:i,right:a}=t;return n<=e.y&&e.y<=i&&r<=e.x&&e.x<=a}var uz=e=>{let{droppableContainers:t,droppableRects:n,pointerCoordinates:r}=e;if(!r)return[];let i=[];for(let e of t){let{id:t}=e,a=n.get(t);if(a&&lz(r,a)){let n=nz(a).reduce((e,t)=>e+QR(r,t),0),o=Number((n/4).toFixed(4));i.push({id:t,data:{droppableContainer:e,value:o}})}}return i.sort(ez)};function dz(e,t,n){return{...e,scaleX:t&&n?t.width/n.width:1,scaleY:t&&n?t.height/n.height:1}}function fz(e,t){return e&&t?{x:e.left-t.left,y:e.top-t.top}:ZR}function pz(e){return function(t){return[...arguments].slice(1).reduce((t,n)=>({...t,top:t.top+e*n.y,bottom:t.bottom+e*n.y,left:t.left+e*n.x,right:t.right+e*n.x}),{...t})}}var mz=pz(1);function hz(e){if(e.startsWith(`matrix3d(`)){let t=e.slice(9,-1).split(/, /);return{x:+t[12],y:+t[13],scaleX:+t[0],scaleY:+t[5]}}if(e.startsWith(`matrix(`)){let t=e.slice(7,-1).split(/, /);return{x:+t[4],y:+t[5],scaleX:+t[0],scaleY:+t[3]}}return null}function gz(e,t,n){let r=hz(t);if(!r)return e;let{scaleX:i,scaleY:a,x:o,y:s}=r,c=e.left-o-(1-i)*parseFloat(n),l=e.top-s-(1-a)*parseFloat(n.slice(n.indexOf(` `)+1)),u=i?e.width/i:e.width,d=a?e.height/a:e.height;return{width:u,height:d,top:l,right:c+u,bottom:l+d,left:c}}var _z={ignoreTransform:!1};function vz(e,t){t===void 0&&(t=_z);let n=e.getBoundingClientRect();if(t.ignoreTransform){let{transform:t,transformOrigin:r}=pR(e).getComputedStyle(e);t&&(n=gz(n,t,r))}let{top:r,left:i,width:a,height:o,bottom:s,right:c}=n;return{top:r,left:i,width:a,height:o,bottom:s,right:c}}function yz(e){return vz(e,{ignoreTransform:!0})}function bz(e){let t=e.innerWidth,n=e.innerHeight;return{top:0,left:0,right:t,bottom:n,width:t,height:n}}function xz(e,t){return t===void 0&&(t=pR(e).getComputedStyle(e)),t.position===`fixed`}function Sz(e,t){t===void 0&&(t=pR(e).getComputedStyle(e));let n=/(auto|scroll|overlay)/;return[`overflow`,`overflowX`,`overflowY`].some(e=>{let r=t[e];return typeof r==`string`&&n.test(r)})}function Cz(e,t){let n=[];function r(i){if(t!=null&&n.length>=t||!i)return n;if(mR(i)&&i.scrollingElement!=null&&!n.includes(i.scrollingElement))return n.push(i.scrollingElement),n;if(!hR(i)||gR(i)||n.includes(i))return n;let a=pR(e).getComputedStyle(i);return i!==e&&Sz(i,a)&&n.push(i),xz(i,a)?n:r(i.parentNode)}return e?r(e):n}function wz(e){let[t]=Cz(e,1);return t??null}function Tz(e){return!uR||!e?null:dR(e)?e:fR(e)?mR(e)||e===_R(e).scrollingElement?window:hR(e)?e:null:null}function Ez(e){return dR(e)?e.scrollX:e.scrollLeft}function Dz(e){return dR(e)?e.scrollY:e.scrollTop}function Oz(e){return{x:Ez(e),y:Dz(e)}}var kz;(function(e){e[e.Forward=1]=`Forward`,e[e.Backward=-1]=`Backward`})(kz||={});function Az(e){return!uR||!e?!1:e===document.scrollingElement}function jz(e){let t={x:0,y:0},n=Az(e)?{height:window.innerHeight,width:window.innerWidth}:{height:e.clientHeight,width:e.clientWidth},r={x:e.scrollWidth-n.width,y:e.scrollHeight-n.height};return{isTop:e.scrollTop<=t.y,isLeft:e.scrollLeft<=t.x,isBottom:e.scrollTop>=r.y,isRight:e.scrollLeft>=r.x,maxScroll:r,minScroll:t}}var Mz={x:.2,y:.2};function Nz(e,t,n,r,i){let{top:a,left:o,right:s,bottom:c}=n;r===void 0&&(r=10),i===void 0&&(i=Mz);let{isTop:l,isBottom:u,isLeft:d,isRight:f}=jz(e),p={x:0,y:0},m={x:0,y:0},h={height:t.height*i.y,width:t.width*i.x};return!l&&a<=t.top+h.height?(p.y=kz.Backward,m.y=r*Math.abs((t.top+h.height-a)/h.height)):!u&&c>=t.bottom-h.height&&(p.y=kz.Forward,m.y=r*Math.abs((t.bottom-h.height-c)/h.height)),!f&&s>=t.right-h.width?(p.x=kz.Forward,m.x=r*Math.abs((t.right-h.width-s)/h.width)):!d&&o<=t.left+h.width&&(p.x=kz.Backward,m.x=r*Math.abs((t.left+h.width-o)/h.width)),{direction:p,speed:m}}function Pz(e){if(e===document.scrollingElement){let{innerWidth:e,innerHeight:t}=window;return{top:0,left:0,right:e,bottom:t,width:e,height:t}}let{top:t,left:n,right:r,bottom:i}=e.getBoundingClientRect();return{top:t,left:n,right:r,bottom:i,width:e.clientWidth,height:e.clientHeight}}function Fz(e){return e.reduce((e,t)=>OR(e,Oz(t)),ZR)}function Iz(e){return e.reduce((e,t)=>e+Ez(t),0)}function Lz(e){return e.reduce((e,t)=>e+Dz(t),0)}function Rz(e,t){if(t===void 0&&(t=vz),!e)return;let{top:n,left:r,bottom:i,right:a}=t(e);wz(e)&&(i<=0||a<=0||n>=window.innerHeight||r>=window.innerWidth)&&e.scrollIntoView({block:`center`,inline:`center`})}var zz=[[`x`,[`left`,`right`],Iz],[`y`,[`top`,`bottom`],Lz]],Bz=class{constructor(e,t){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;let n=Cz(t),r=Fz(n);this.rect={...e},this.width=e.width,this.height=e.height;for(let[e,t,i]of zz)for(let a of t)Object.defineProperty(this,a,{get:()=>{let t=i(n),o=r[e]-t;return this.rect[a]+o},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}},Vz=class{constructor(e){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(e=>this.target?.removeEventListener(...e))},this.target=e}add(e,t,n){var r;(r=this.target)==null||r.addEventListener(e,t,n),this.listeners.push([e,t,n])}};function Hz(e){let{EventTarget:t}=pR(e);return e instanceof t?e:_R(e)}function Uz(e,t){let n=Math.abs(e.x),r=Math.abs(e.y);return typeof t==`number`?Math.sqrt(n**2+r**2)>t:`x`in t&&`y`in t?n>t.x&&r>t.y:`x`in t?n>t.x:`y`in t&&r>t.y}var Wz;(function(e){e.Click=`click`,e.DragStart=`dragstart`,e.Keydown=`keydown`,e.ContextMenu=`contextmenu`,e.Resize=`resize`,e.SelectionChange=`selectionchange`,e.VisibilityChange=`visibilitychange`})(Wz||={});function Gz(e){e.preventDefault()}function Kz(e){e.stopPropagation()}var qz;(function(e){e.Space=`Space`,e.Down=`ArrowDown`,e.Right=`ArrowRight`,e.Left=`ArrowLeft`,e.Up=`ArrowUp`,e.Esc=`Escape`,e.Enter=`Enter`,e.Tab=`Tab`})(qz||={});var Jz={start:[qz.Space,qz.Enter],cancel:[qz.Esc],end:[qz.Space,qz.Enter,qz.Tab]},Yz=(e,t)=>{let{currentCoordinates:n}=t;switch(e.code){case qz.Right:return{...n,x:n.x+25};case qz.Left:return{...n,x:n.x-25};case qz.Down:return{...n,y:n.y+25};case qz.Up:return{...n,y:n.y-25}}},Xz=class{constructor(e){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=e;let{event:{target:t}}=e;this.props=e,this.listeners=new Vz(_R(t)),this.windowListeners=new Vz(pR(t)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(Wz.Resize,this.handleCancel),this.windowListeners.add(Wz.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(Wz.Keydown,this.handleKeyDown))}handleStart(){let{activeNode:e,onStart:t}=this.props,n=e.node.current;n&&Rz(n),t(ZR)}handleKeyDown(e){if(jR(e)){let{active:t,context:n,options:r}=this.props,{keyboardCodes:i=Jz,coordinateGetter:a=Yz,scrollBehavior:o=`smooth`}=r,{code:s}=e;if(i.end.includes(s)){this.handleEnd(e);return}if(i.cancel.includes(s)){this.handleCancel(e);return}let{collisionRect:c}=n.current,l=c?{x:c.left,y:c.top}:ZR;this.referenceCoordinates||=l;let u=a(e,{active:t,context:n.current,currentCoordinates:l});if(u){let t=kR(u,l),r={x:0,y:0},{scrollableAncestors:i}=n.current;for(let n of i){let i=e.code,{isTop:a,isRight:s,isLeft:c,isBottom:l,maxScroll:d,minScroll:f}=jz(n),p=Pz(n),m={x:Math.min(i===qz.Right?p.right-p.width/2:p.right,Math.max(i===qz.Right?p.left:p.left+p.width/2,u.x)),y:Math.min(i===qz.Down?p.bottom-p.height/2:p.bottom,Math.max(i===qz.Down?p.top:p.top+p.height/2,u.y))},h=i===qz.Right&&!s||i===qz.Left&&!c,g=i===qz.Down&&!l||i===qz.Up&&!a;if(h&&m.x!==u.x){let e=n.scrollLeft+t.x,a=i===qz.Right&&e<=d.x||i===qz.Left&&e>=f.x;if(a&&!t.y){n.scrollTo({left:e,behavior:o});return}r.x=a?n.scrollLeft-e:i===qz.Right?n.scrollLeft-d.x:n.scrollLeft-f.x,r.x&&n.scrollBy({left:-r.x,behavior:o});break}if(g&&m.y!==u.y){let e=n.scrollTop+t.y,a=i===qz.Down&&e<=d.y||i===qz.Up&&e>=f.y;if(a&&!t.x){n.scrollTo({top:e,behavior:o});return}r.y=a?n.scrollTop-e:i===qz.Down?n.scrollTop-d.y:n.scrollTop-f.y,r.y&&n.scrollBy({top:-r.y,behavior:o});break}}this.handleMove(e,OR(kR(u,this.referenceCoordinates),r))}}}handleMove(e,t){let{onMove:n}=this.props;e.preventDefault(),n(t)}handleEnd(e){let{onEnd:t}=this.props;e.preventDefault(),this.detach(),t()}handleCancel(e){let{onCancel:t}=this.props;e.preventDefault(),this.detach(),t()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}};Xz.activators=[{eventName:`onKeyDown`,handler:(e,t,n)=>{let{keyboardCodes:r=Jz,onActivation:i}=t,{active:a}=n,{code:o}=e.nativeEvent;if(r.start.includes(o)){let t=a.activatorNode.current;return t&&e.target!==t?!1:(e.preventDefault(),i?.({event:e.nativeEvent}),!0)}return!1}}];function Zz(e){return!!(e&&`distance`in e)}function Qz(e){return!!(e&&`delay`in e)}var $z=class{constructor(e,t,n){n===void 0&&(n=Hz(e.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=e,this.events=t;let{event:r}=e,{target:i}=r;this.props=e,this.events=t,this.document=_R(i),this.documentListeners=new Vz(this.document),this.listeners=new Vz(n),this.windowListeners=new Vz(pR(i)),this.initialCoordinates=NR(r)??ZR,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){let{events:e,props:{options:{activationConstraint:t,bypassActivationConstraint:n}}}=this;if(this.listeners.add(e.move.name,this.handleMove,{passive:!1}),this.listeners.add(e.end.name,this.handleEnd),e.cancel&&this.listeners.add(e.cancel.name,this.handleCancel),this.windowListeners.add(Wz.Resize,this.handleCancel),this.windowListeners.add(Wz.DragStart,Gz),this.windowListeners.add(Wz.VisibilityChange,this.handleCancel),this.windowListeners.add(Wz.ContextMenu,Gz),this.documentListeners.add(Wz.Keydown,this.handleKeydown),t){if(n!=null&&n({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Qz(t)){this.timeoutId=setTimeout(this.handleStart,t.delay),this.handlePending(t);return}if(Zz(t)){this.handlePending(t);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(e,t){let{active:n,onPending:r}=this.props;r(n,e,this.initialCoordinates,t)}handleStart(){let{initialCoordinates:e}=this,{onStart:t}=this.props;e&&(this.activated=!0,this.documentListeners.add(Wz.Click,Kz,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(Wz.SelectionChange,this.removeTextSelection),t(e))}handleMove(e){let{activated:t,initialCoordinates:n,props:r}=this,{onMove:i,options:{activationConstraint:a}}=r;if(!n)return;let o=NR(e)??ZR,s=kR(n,o);if(!t&&a){if(Zz(a)){if(a.tolerance!=null&&Uz(s,a.tolerance))return this.handleCancel();if(Uz(s,a.distance))return this.handleStart()}if(Qz(a)&&Uz(s,a.tolerance))return this.handleCancel();this.handlePending(a,s)}else e.cancelable&&e.preventDefault(),i(o)}handleEnd(){let{onAbort:e,onEnd:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleCancel(){let{onAbort:e,onCancel:t}=this.props;this.detach(),this.activated||e(this.props.active),t()}handleKeydown(e){e.code===qz.Esc&&this.handleCancel()}removeTextSelection(){var e;(e=this.document.getSelection())==null||e.removeAllRanges()}},eB={cancel:{name:`pointercancel`},move:{name:`pointermove`},end:{name:`pointerup`}},tB=class extends $z{constructor(e){let{event:t}=e,n=_R(t.target);super(e,eB,n)}};tB.activators=[{eventName:`onPointerDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return!n.isPrimary||n.button!==0?!1:(r?.({event:n}),!0)}}];var nB={move:{name:`mousemove`},end:{name:`mouseup`}},rB;(function(e){e[e.RightClick=2]=`RightClick`})(rB||={});var iB=class extends $z{constructor(e){super(e,nB,_R(e.event.target))}};iB.activators=[{eventName:`onMouseDown`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t;return n.button!==rB.RightClick&&(r?.({event:n}),!0)}}];var aB={cancel:{name:`touchcancel`},move:{name:`touchmove`},end:{name:`touchend`}},oB=class extends $z{constructor(e){super(e,aB)}static setup(){return window.addEventListener(aB.move.name,e,{capture:!1,passive:!1}),function(){window.removeEventListener(aB.move.name,e)};function e(){}}};oB.activators=[{eventName:`onTouchStart`,handler:(e,t)=>{let{nativeEvent:n}=e,{onActivation:r}=t,{touches:i}=n;return i.length>1?!1:(r?.({event:n}),!0)}}];var sB;(function(e){e[e.Pointer=0]=`Pointer`,e[e.DraggableRect=1]=`DraggableRect`})(sB||={});var cB;(function(e){e[e.TreeOrder=0]=`TreeOrder`,e[e.ReversedTreeOrder=1]=`ReversedTreeOrder`})(cB||={});function lB(e){let{acceleration:t,activator:n=sB.Pointer,canScroll:r,draggingRect:i,enabled:a,interval:o=5,order:s=cB.TreeOrder,pointerCoordinates:c,scrollableAncestors:l,scrollableAncestorRects:u,delta:d,threshold:f}=e,p=dB({delta:d,disabled:!a}),[m,h]=bR(),g=(0,z.useRef)({x:0,y:0}),_=(0,z.useRef)({x:0,y:0}),v=(0,z.useMemo)(()=>{switch(n){case sB.Pointer:return c?{top:c.y,bottom:c.y,left:c.x,right:c.x}:null;case sB.DraggableRect:return i}},[n,i,c]),y=(0,z.useRef)(null),b=(0,z.useCallback)(()=>{let e=y.current;if(!e)return;let t=g.current.x*_.current.x,n=g.current.y*_.current.y;e.scrollBy(t,n)},[]),x=(0,z.useMemo)(()=>s===cB.TreeOrder?[...l].reverse():l,[s,l]);(0,z.useEffect)(()=>{if(!a||!l.length||!v)h();else{for(let e of x){if(r?.(e)===!1)continue;let n=l.indexOf(e),i=u[n];if(!i)continue;let{direction:a,speed:s}=Nz(e,i,v,t,f);for(let e of[`x`,`y`])p[e][a[e]]||(s[e]=0,a[e]=0);if(s.x>0||s.y>0){h(),y.current=e,m(b,o),g.current=s,_.current=a;return}}g.current={x:0,y:0},_.current={x:0,y:0},h()}},[t,b,r,h,a,o,JSON.stringify(v),JSON.stringify(p),m,l,x,u,JSON.stringify(f)])}var uB={x:{[kz.Backward]:!1,[kz.Forward]:!1},y:{[kz.Backward]:!1,[kz.Forward]:!1}};function dB(e){let{delta:t,disabled:n}=e,r=wR(t);return SR(e=>{if(n||!r||!e)return uB;let i={x:Math.sign(t.x-r.x),y:Math.sign(t.y-r.y)};return{x:{[kz.Backward]:e.x[kz.Backward]||i.x===-1,[kz.Forward]:e.x[kz.Forward]||i.x===1},y:{[kz.Backward]:e.y[kz.Backward]||i.y===-1,[kz.Forward]:e.y[kz.Forward]||i.y===1}}},[n,t,r])}function fB(e,t){let n=t==null?void 0:e.get(t),r=n?n.node.current:null;return SR(e=>t==null?null:r??e??null,[r,t])}function pB(e,t){return(0,z.useMemo)(()=>e.reduce((e,n)=>{let{sensor:r}=n,i=r.activators.map(e=>({eventName:e.eventName,handler:t(e.handler,n)}));return[...e,...i]},[]),[e,t])}var mB;(function(e){e[e.Always=0]=`Always`,e[e.BeforeDragging=1]=`BeforeDragging`,e[e.WhileDragging=2]=`WhileDragging`})(mB||={});var hB;(function(e){e.Optimized=`optimized`})(hB||={});var gB=new Map;function _B(e,t){let{dragging:n,dependencies:r,config:i}=t,[a,o]=(0,z.useState)(null),{frequency:s,measure:c,strategy:l}=i,u=(0,z.useRef)(e),d=g(),f=xR(d),p=(0,z.useCallback)(function(e){e===void 0&&(e=[]),f.current||o(t=>t===null?e:t.concat(e.filter(e=>!t.includes(e))))},[f]),m=(0,z.useRef)(null),h=SR(t=>{if(d&&!n)return gB;if(!t||t===gB||u.current!==e||a!=null){let t=new Map;for(let n of e){if(!n)continue;if(a&&a.length>0&&!a.includes(n.id)&&n.rect.current){t.set(n.id,n.rect.current);continue}let e=n.node.current,r=e?new Bz(c(e),e):null;n.rect.current=r,r&&t.set(n.id,r)}return t}return t},[e,a,n,d,c]);return(0,z.useEffect)(()=>{u.current=e},[e]),(0,z.useEffect)(()=>{d||p()},[n,d]),(0,z.useEffect)(()=>{a&&a.length>0&&o(null)},[JSON.stringify(a)]),(0,z.useEffect)(()=>{d||typeof s!=`number`||m.current!==null||(m.current=setTimeout(()=>{p(),m.current=null},s))},[s,d,p,...r]),{droppableRects:h,measureDroppableContainers:p,measuringScheduled:a!=null};function g(){switch(l){case mB.Always:return!1;case mB.BeforeDragging:return n;default:return!n}}}function vB(e,t){return SR(n=>e?n||(typeof t==`function`?t(e):e):null,[t,e])}function yB(e,t){return vB(e,t)}function bB(e){let{callback:t,disabled:n}=e,r=yR(t),i=(0,z.useMemo)(()=>{if(n||typeof window>`u`||window.MutationObserver===void 0)return;let{MutationObserver:e}=window;return new e(r)},[r,n]);return(0,z.useEffect)(()=>()=>i?.disconnect(),[i]),i}function xB(e){let{callback:t,disabled:n}=e,r=yR(t),i=(0,z.useMemo)(()=>{if(n||typeof window>`u`||window.ResizeObserver===void 0)return;let{ResizeObserver:e}=window;return new e(r)},[n]);return(0,z.useEffect)(()=>()=>i?.disconnect(),[i]),i}function SB(e){return new Bz(vz(e),e)}function CB(e,t,n){t===void 0&&(t=SB);let[r,i]=(0,z.useState)(null);function a(){i(r=>{if(!e)return null;if(e.isConnected===!1)return r??n??null;let i=t(e);return JSON.stringify(r)===JSON.stringify(i)?r:i})}let o=bB({callback(t){if(e)for(let n of t){let{type:t,target:r}=n;if(t===`childList`&&r instanceof HTMLElement&&r.contains(e)){a();break}}}}),s=xB({callback:a});return vR(()=>{a(),e?(s?.observe(e),o?.observe(document.body,{childList:!0,subtree:!0})):(s?.disconnect(),o?.disconnect())},[e]),r}function wB(e){return fz(e,vB(e))}var TB=[];function EB(e){let t=(0,z.useRef)(e),n=SR(n=>e?n&&n!==TB&&e&&t.current&&e.parentNode===t.current.parentNode?n:Cz(e):TB,[e]);return(0,z.useEffect)(()=>{t.current=e},[e]),n}function DB(e){let[t,n]=(0,z.useState)(null),r=(0,z.useRef)(e),i=(0,z.useCallback)(e=>{let t=Tz(e.target);t&&n(e=>e?(e.set(t,Oz(t)),new Map(e)):null)},[]);return(0,z.useEffect)(()=>{let t=r.current;if(e!==t){a(t);let o=e.map(e=>{let t=Tz(e);return t?(t.addEventListener(`scroll`,i,{passive:!0}),[t,Oz(t)]):null}).filter(e=>e!=null);n(o.length?new Map(o):null),r.current=e}return()=>{a(e),a(t)};function a(e){e.forEach(e=>{Tz(e)?.removeEventListener(`scroll`,i)})}},[i,e]),(0,z.useMemo)(()=>e.length?t?Array.from(t.values()).reduce((e,t)=>OR(e,t),ZR):Fz(e):ZR,[e,t])}function OB(e,t){t===void 0&&(t=[]);let n=(0,z.useRef)(null);return(0,z.useEffect)(()=>{n.current=null},t),(0,z.useEffect)(()=>{let t=e!==ZR;t&&!n.current&&(n.current=e),!t&&n.current&&(n.current=null)},[e]),n.current?kR(e,n.current):ZR}function kB(e){(0,z.useEffect)(()=>{if(!uR)return;let t=e.map(e=>{let{sensor:t}=e;return t.setup==null?void 0:t.setup()});return()=>{for(let e of t)e?.()}},e.map(e=>{let{sensor:t}=e;return t}))}function AB(e,t){return(0,z.useMemo)(()=>e.reduce((e,n)=>{let{eventName:r,handler:i}=n;return e[r]=e=>{i(e,t)},e},{}),[e,t])}function jB(e){return(0,z.useMemo)(()=>e?bz(e):null,[e])}var MB=[];function NB(e,t){t===void 0&&(t=vz);let[n]=e,r=jB(n?pR(n):null),[i,a]=(0,z.useState)(MB);function o(){a(()=>e.length?e.map(e=>Az(e)?r:new Bz(t(e),e)):MB)}let s=xB({callback:o});return vR(()=>{s?.disconnect(),o(),e.forEach(e=>s?.observe(e))},[e]),i}function PB(e){if(!e)return null;if(e.children.length>1)return e;let t=e.children[0];return hR(t)?t:e}function FB(e){let{measure:t}=e,[n,r]=(0,z.useState)(null),i=xB({callback:(0,z.useCallback)(e=>{for(let{target:n}of e)if(hR(n)){r(e=>{let r=t(n);return e?{...e,width:r.width,height:r.height}:r});break}},[t])}),[a,o]=CR((0,z.useCallback)(e=>{let n=PB(e);i?.disconnect(),n&&i?.observe(n),r(n?t(n):null)},[t,i]));return(0,z.useMemo)(()=>({nodeRef:a,rect:n,setRef:o}),[n,a,o])}var IB=[{sensor:tB,options:{}},{sensor:Xz,options:{}}],LB={current:{}},RB={draggable:{measure:yz},droppable:{measure:yz,strategy:mB.WhileDragging,frequency:hB.Optimized},dragOverlay:{measure:vz}},zB=class extends Map{get(e){return e==null?void 0:super.get(e)??void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(e=>{let{disabled:t}=e;return!t})}getNodeFor(e){return this.get(e)?.node.current??void 0}},BB={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new zB,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:JR},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:RB,measureDroppableContainers:JR,windowRect:null,measuringScheduled:!1},VB={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:``},dispatch:JR,draggableNodes:new Map,over:null,measureDroppableContainers:JR},HB=(0,z.createContext)(VB),UB=(0,z.createContext)(BB);function WB(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new zB}}}function GB(e,t){switch(t.type){case qR.DragStart:return{...e,draggable:{...e.draggable,initialCoordinates:t.initialCoordinates,active:t.active}};case qR.DragMove:return e.draggable.active==null?e:{...e,draggable:{...e.draggable,translate:{x:t.coordinates.x-e.draggable.initialCoordinates.x,y:t.coordinates.y-e.draggable.initialCoordinates.y}}};case qR.DragEnd:case qR.DragCancel:return{...e,draggable:{...e.draggable,active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}}};case qR.RegisterDroppable:{let{element:n}=t,{id:r}=n,i=new zB(e.droppable.containers);return i.set(r,n),{...e,droppable:{...e.droppable,containers:i}}}case qR.SetDroppableDisabled:{let{id:n,key:r,disabled:i}=t,a=e.droppable.containers.get(n);if(!a||r!==a.key)return e;let o=new zB(e.droppable.containers);return o.set(n,{...a,disabled:i}),{...e,droppable:{...e.droppable,containers:o}}}case qR.UnregisterDroppable:{let{id:n,key:r}=t,i=e.droppable.containers.get(n);if(!i||r!==i.key)return e;let a=new zB(e.droppable.containers);return a.delete(n),{...e,droppable:{...e.droppable,containers:a}}}default:return e}}function KB(e){let{disabled:t}=e,{active:n,activatorEvent:r,draggableNodes:i}=(0,z.useContext)(HB),a=wR(r),o=wR(n?.id);return(0,z.useEffect)(()=>{if(!t&&!r&&a&&o!=null){if(!jR(a)||document.activeElement===a.target)return;let e=i.get(o);if(!e)return;let{activatorNode:t,node:n}=e;if(!t.current&&!n.current)return;requestAnimationFrame(()=>{for(let e of[t.current,n.current]){if(!e)continue;let t=IR(e);if(t){t.focus();break}}})}},[r,t,i,o,a]),null}function qB(e,t){let{transform:n,...r}=t;return e!=null&&e.length?e.reduce((e,t)=>t({transform:e,...r}),n):n}function JB(e){return(0,z.useMemo)(()=>({draggable:{...RB.draggable,...e?.draggable},droppable:{...RB.droppable,...e?.droppable},dragOverlay:{...RB.dragOverlay,...e?.dragOverlay}}),[e?.draggable,e?.droppable,e?.dragOverlay])}function YB(e){let{activeNode:t,measure:n,initialRect:r,config:i=!0}=e,a=(0,z.useRef)(!1),{x:o,y:s}=typeof i==`boolean`?{x:i,y:i}:i;vR(()=>{if(!o&&!s||!t){a.current=!1;return}if(a.current||!r)return;let e=t?.node.current;if(!e||e.isConnected===!1)return;let i=fz(n(e),r);if(o||(i.x=0),s||(i.y=0),a.current=!0,Math.abs(i.x)>0||Math.abs(i.y)>0){let t=wz(e);t&&t.scrollBy({top:i.y,left:i.x})}},[t,o,s,r,n])}var XB=(0,z.createContext)({...ZR,scaleX:1,scaleY:1}),ZB;(function(e){e[e.Uninitialized=0]=`Uninitialized`,e[e.Initializing=1]=`Initializing`,e[e.Initialized=2]=`Initialized`})(ZB||={});var QB=(0,z.memo)(function(e){let{id:t,accessibility:n,autoScroll:r=!0,children:i,sensors:a=IB,collisionDetection:o=cz,measuring:s,modifiers:c,...l}=e,[u,d]=(0,z.useReducer)(GB,void 0,WB),[f,p]=UR(),[m,h]=(0,z.useState)(ZB.Uninitialized),g=m===ZB.Initialized,{draggable:{active:_,nodes:v,translate:y},droppable:{containers:b}}=u,x=_==null?null:v.get(_),S=(0,z.useRef)({initial:null,translated:null}),C=(0,z.useMemo)(()=>_==null?null:{id:_,data:x?.data??LB,rect:S},[_,x]),w=(0,z.useRef)(null),[T,E]=(0,z.useState)(null),[D,O]=(0,z.useState)(null),k=xR(l,Object.values(l)),ee=ER(`DndDescribedBy`,t),A=(0,z.useMemo)(()=>b.getEnabled(),[b]),j=JB(s),{droppableRects:M,measureDroppableContainers:te,measuringScheduled:ne}=_B(A,{dragging:g,dependencies:[y.x,y.y],config:j.droppable}),N=fB(v,_),P=(0,z.useMemo)(()=>D?NR(D):null,[D]),re=Oe(),F=yB(N,j.draggable.measure);YB({activeNode:_==null?null:v.get(_),config:re.layoutShiftCompensation,initialRect:F,measure:j.draggable.measure});let I=CB(N,j.draggable.measure,F),ie=CB(N?N.parentElement:null),L=(0,z.useRef)({activatorEvent:null,active:null,activeNode:N,collisionRect:null,collisions:null,droppableRects:M,draggableNodes:v,draggingNode:null,draggingNodeRect:null,droppableContainers:b,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),R=b.getNodeFor(L.current.over?.id),ae=FB({measure:j.dragOverlay.measure}),oe=ae.nodeRef.current??N,se=g?ae.rect??I:null,ce=!!(ae.nodeRef.current&&ae.rect),B=wB(ce?null:I),le=jB(oe?pR(oe):null),V=EB(g?R??N:null),ue=NB(V),de=qB(c,{transform:{x:y.x-B.x,y:y.y-B.y,scaleX:1,scaleY:1},activatorEvent:D,active:C,activeNodeRect:I,containerNodeRect:ie,draggingNodeRect:se,over:L.current.over,overlayNodeRect:ae.rect,scrollableAncestors:V,scrollableAncestorRects:ue,windowRect:le}),fe=P?OR(P,y):null,pe=DB(V),me=OB(pe),he=OB(pe,[I]),ge=OR(de,me),_e=se?mz(se,de):null,ve=C&&_e?o({active:C,collisionRect:_e,droppableRects:M,droppableContainers:A,pointerCoordinates:fe}):null,ye=rz(ve,`id`),[be,xe]=(0,z.useState)(null),Se=dz(ce?de:OR(de,he),be?.rect??null,I),Ce=(0,z.useRef)(null),we=(0,z.useCallback)((e,t)=>{let{sensor:n,options:r}=t;if(w.current==null)return;let i=v.get(w.current);if(!i)return;let a=e.nativeEvent,o=new n({active:w.current,activeNode:i,event:a,options:r,context:L,onAbort(e){if(!v.get(e))return;let{onDragAbort:t}=k.current,n={id:e};t?.(n),f({type:`onDragAbort`,event:n})},onPending(e,t,n,r){if(!v.get(e))return;let{onDragPending:i}=k.current,a={id:e,constraint:t,initialCoordinates:n,offset:r};i?.(a),f({type:`onDragPending`,event:a})},onStart(e){let t=w.current;if(t==null)return;let n=v.get(t);if(!n)return;let{onDragStart:r}=k.current,i={activatorEvent:a,active:{id:t,data:n.data,rect:S}};(0,Pl.unstable_batchedUpdates)(()=>{r?.(i),h(ZB.Initializing),d({type:qR.DragStart,initialCoordinates:e,active:t}),f({type:`onDragStart`,event:i}),E(Ce.current),O(a)})},onMove(e){d({type:qR.DragMove,coordinates:e})},onEnd:s(qR.DragEnd),onCancel:s(qR.DragCancel)});Ce.current=o;function s(e){return async function(){let{active:t,collisions:n,over:r,scrollAdjustedTranslate:i}=L.current,o=null;if(t&&i){let{cancelDrop:s}=k.current;o={activatorEvent:a,active:t,collisions:n,delta:i,over:r},e===qR.DragEnd&&typeof s==`function`&&await Promise.resolve(s(o))&&(e=qR.DragCancel)}w.current=null,(0,Pl.unstable_batchedUpdates)(()=>{d({type:e}),h(ZB.Uninitialized),xe(null),E(null),O(null),Ce.current=null;let t=e===qR.DragEnd?`onDragEnd`:`onDragCancel`;if(o){let e=k.current[t];e?.(o),f({type:t,event:o})}})}}},[v]),Te=pB(a,(0,z.useCallback)((e,t)=>(n,r)=>{let i=n.nativeEvent,a=v.get(r);if(w.current!==null||!a||i.dndKit||i.defaultPrevented)return;let o={active:a};e(n,t.options,o)===!0&&(i.dndKit={capturedBy:t.sensor},w.current=r,we(n,t))},[v,we]));kB(a),vR(()=>{I&&m===ZB.Initializing&&h(ZB.Initialized)},[I,m]),(0,z.useEffect)(()=>{let{onDragMove:e}=k.current,{active:t,activatorEvent:n,collisions:r,over:i}=L.current;if(!t||!n)return;let a={active:t,activatorEvent:n,collisions:r,delta:{x:ge.x,y:ge.y},over:i};(0,Pl.unstable_batchedUpdates)(()=>{e?.(a),f({type:`onDragMove`,event:a})})},[ge.x,ge.y]),(0,z.useEffect)(()=>{let{active:e,activatorEvent:t,collisions:n,droppableContainers:r,scrollAdjustedTranslate:i}=L.current;if(!e||w.current==null||!t||!i)return;let{onDragOver:a}=k.current,o=r.get(ye),s=o&&o.rect.current?{id:o.id,rect:o.rect.current,data:o.data,disabled:o.disabled}:null,c={active:e,activatorEvent:t,collisions:n,delta:{x:i.x,y:i.y},over:s};(0,Pl.unstable_batchedUpdates)(()=>{xe(s),a?.(c),f({type:`onDragOver`,event:c})})},[ye]),vR(()=>{L.current={activatorEvent:D,active:C,activeNode:N,collisionRect:_e,collisions:ve,droppableRects:M,draggableNodes:v,draggingNode:oe,draggingNodeRect:se,droppableContainers:b,over:be,scrollableAncestors:V,scrollAdjustedTranslate:ge},S.current={initial:se,translated:_e}},[C,N,ve,_e,v,oe,se,M,b,be,V,ge]),lB({...re,delta:y,draggingRect:_e,pointerCoordinates:fe,scrollableAncestors:V,scrollableAncestorRects:ue});let Ee=(0,z.useMemo)(()=>({active:C,activeNode:N,activeNodeRect:I,activatorEvent:D,collisions:ve,containerNodeRect:ie,dragOverlay:ae,draggableNodes:v,droppableContainers:b,droppableRects:M,over:be,measureDroppableContainers:te,scrollableAncestors:V,scrollableAncestorRects:ue,measuringConfiguration:j,measuringScheduled:ne,windowRect:le}),[C,N,I,D,ve,ie,ae,v,b,M,be,te,V,ue,j,ne,le]),De=(0,z.useMemo)(()=>({activatorEvent:D,activators:Te,active:C,activeNodeRect:I,ariaDescribedById:{draggable:ee},dispatch:d,draggableNodes:v,over:be,measureDroppableContainers:te}),[D,Te,C,I,d,ee,v,be,te]);return z.createElement(VR.Provider,{value:p},z.createElement(HB.Provider,{value:De},z.createElement(UB.Provider,{value:Ee},z.createElement(XB.Provider,{value:Se},i)),z.createElement(KB,{disabled:n?.restoreFocus===!1})),z.createElement(KR,{...n,hiddenTextDescribedById:ee}));function Oe(){let e=T?.autoScrollEnabled===!1,t=typeof r==`object`?r.enabled===!1:r===!1,n=g&&!e&&!t;return typeof r==`object`?{...r,enabled:n}:{enabled:n}}}),$B=(0,z.createContext)(null),eV=`button`,tV=`Draggable`;function nV(e){let{id:t,data:n,disabled:r=!1,attributes:i}=e,a=ER(tV),{activators:o,activatorEvent:s,active:c,activeNodeRect:l,ariaDescribedById:u,draggableNodes:d,over:f}=(0,z.useContext)(HB),{role:p=eV,roleDescription:m=`draggable`,tabIndex:h=0}=i??{},g=c?.id===t,_=(0,z.useContext)(g?XB:$B),[v,y]=CR(),[b,x]=CR(),S=AB(o,t),C=xR(n);return vR(()=>(d.set(t,{id:t,key:a,node:v,activatorNode:b,data:C}),()=>{let e=d.get(t);e&&e.key===a&&d.delete(t)}),[d,t]),{active:c,activatorEvent:s,activeNodeRect:l,attributes:(0,z.useMemo)(()=>({role:p,tabIndex:h,"aria-disabled":r,"aria-pressed":g&&p===eV?!0:void 0,"aria-roledescription":m,"aria-describedby":u.draggable}),[r,p,h,g,m,u.draggable]),isDragging:g,listeners:r?void 0:S,node:v,over:f,setNodeRef:y,setActivatorNodeRef:x,transform:_}}function rV(){return(0,z.useContext)(UB)}var iV=`Droppable`,aV={timeout:25};function oV(e){let{data:t,disabled:n=!1,id:r,resizeObserverConfig:i}=e,a=ER(iV),{active:o,dispatch:s,over:c,measureDroppableContainers:l}=(0,z.useContext)(HB),u=(0,z.useRef)({disabled:n}),d=(0,z.useRef)(!1),f=(0,z.useRef)(null),p=(0,z.useRef)(null),{disabled:m,updateMeasurementsFor:h,timeout:g}={...aV,...i},_=xR(h??r),v=xB({callback:(0,z.useCallback)(()=>{d.current?(p.current!=null&&clearTimeout(p.current),p.current=setTimeout(()=>{l(Array.isArray(_.current)?_.current:[_.current]),p.current=null},g)):d.current=!0},[g]),disabled:m||!o}),[y,b]=CR((0,z.useCallback)((e,t)=>{v&&(t&&(v.unobserve(t),d.current=!1),e&&v.observe(e))},[v])),x=xR(t);return(0,z.useEffect)(()=>{v&&y.current&&(v.disconnect(),d.current=!1,v.observe(y.current))},[y,v]),(0,z.useEffect)(()=>(s({type:qR.RegisterDroppable,element:{id:r,key:a,disabled:n,node:y,rect:f,data:x}}),()=>s({type:qR.UnregisterDroppable,key:a,id:r})),[r]),(0,z.useEffect)(()=>{n!==u.current.disabled&&(s({type:qR.SetDroppableDisabled,id:r,key:a,disabled:n}),u.current.disabled=n)},[r,a,n,s]),{active:o,rect:f,isOver:c?.id===r,node:y,over:c,setNodeRef:b}}function sV(e){let{animation:t,children:n}=e,[r,i]=(0,z.useState)(null),[a,o]=(0,z.useState)(null),s=wR(n);return!n&&!r&&s&&i(s),vR(()=>{if(!a)return;let e=r?.key,n=r?.props.id;e==null||n==null?i(null):Promise.resolve(t(n,a)).then(()=>{i(null)})},[t,r,a]),z.createElement(z.Fragment,null,n,r?(0,z.cloneElement)(r,{ref:o}):null)}var cV={x:0,y:0,scaleX:1,scaleY:1};function lV(e){let{children:t}=e;return z.createElement(HB.Provider,{value:VB},z.createElement(XB.Provider,{value:cV},t))}var uV={position:`fixed`,touchAction:`none`},dV=e=>jR(e)?`transform 250ms ease`:void 0,fV=(0,z.forwardRef)((e,t)=>{let{as:n,activatorEvent:r,adjustScale:i,children:a,className:o,rect:s,style:c,transform:l,transition:u=dV}=e;if(!s)return null;let d=i?l:{...l,scaleX:1,scaleY:1},f={...uV,width:s.width,height:s.height,top:s.top,left:s.left,transform:PR.Transform.toString(d),transformOrigin:i&&r?$R(r,s):void 0,transition:typeof u==`function`?u(r):u,...c};return z.createElement(n,{className:o,style:f,ref:t},a)}),pV={duration:250,easing:`ease`,keyframes:e=>{let{transform:{initial:t,final:n}}=e;return[{transform:PR.Transform.toString(t)},{transform:PR.Transform.toString(n)}]},sideEffects:(e=>t=>{let{active:n,dragOverlay:r}=t,i={},{styles:a,className:o}=e;if(a!=null&&a.active)for(let[e,t]of Object.entries(a.active))t!==void 0&&(i[e]=n.node.style.getPropertyValue(e),n.node.style.setProperty(e,t));if(a!=null&&a.dragOverlay)for(let[e,t]of Object.entries(a.dragOverlay))t!==void 0&&r.node.style.setProperty(e,t);return o!=null&&o.active&&n.node.classList.add(o.active),o!=null&&o.dragOverlay&&r.node.classList.add(o.dragOverlay),function(){for(let[e,t]of Object.entries(i))n.node.style.setProperty(e,t);o!=null&&o.active&&n.node.classList.remove(o.active)}})({styles:{active:{opacity:`0`}}})};function mV(e){let{config:t,draggableNodes:n,droppableContainers:r,measuringConfiguration:i}=e;return yR((e,a)=>{if(t===null)return;let o=n.get(e);if(!o)return;let s=o.node.current;if(!s)return;let c=PB(a);if(!c)return;let{transform:l}=pR(a).getComputedStyle(a),u=hz(l);if(!u)return;let d=typeof t==`function`?t:hV(t);return Rz(s,i.draggable.measure),d({active:{id:e,data:o.data,node:s,rect:i.draggable.measure(s)},draggableNodes:n,dragOverlay:{node:a,rect:i.dragOverlay.measure(c)},droppableContainers:r,measuringConfiguration:i,transform:u})})}function hV(e){let{duration:t,easing:n,sideEffects:r,keyframes:i}={...pV,...e};return e=>{let{active:a,dragOverlay:o,transform:s,...c}=e;if(!t)return;let l={x:o.rect.left-a.rect.left,y:o.rect.top-a.rect.top},u={scaleX:s.scaleX===1?1:a.rect.width*s.scaleX/o.rect.width,scaleY:s.scaleY===1?1:a.rect.height*s.scaleY/o.rect.height},d={x:s.x-l.x,y:s.y-l.y,...u},f=i({...c,active:a,dragOverlay:o,transform:{initial:s,final:d}}),[p]=f,m=f[f.length-1];if(JSON.stringify(p)===JSON.stringify(m))return;let h=r?.({active:a,dragOverlay:o,...c}),g=o.node.animate(f,{duration:t,easing:n,fill:`forwards`});return new Promise(e=>{g.onfinish=()=>{h?.(),e()}})}}var gV=0;function _V(e){return(0,z.useMemo)(()=>{if(e!=null)return gV++,gV},[e])}var vV=z.memo(e=>{let{adjustScale:t=!1,children:n,dropAnimation:r,style:i,transition:a,modifiers:o,wrapperElement:s=`div`,className:c,zIndex:l=999}=e,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggableNodes:m,droppableContainers:h,dragOverlay:g,over:_,measuringConfiguration:v,scrollableAncestors:y,scrollableAncestorRects:b,windowRect:x}=rV(),S=(0,z.useContext)(XB),C=_V(d?.id),w=qB(o,{activatorEvent:u,active:d,activeNodeRect:f,containerNodeRect:p,draggingNodeRect:g.rect,over:_,overlayNodeRect:g.rect,scrollableAncestors:y,scrollableAncestorRects:b,transform:S,windowRect:x}),T=vB(f),E=mV({config:r,draggableNodes:m,droppableContainers:h,measuringConfiguration:v}),D=T?g.setRef:void 0;return z.createElement(lV,null,z.createElement(sV,{animation:E},d&&C?z.createElement(fV,{key:C,id:d.id,ref:D,as:s,activatorEvent:u,adjustScale:t,className:c,transition:a,rect:T,style:{zIndex:l,...i},transform:w},n):null))});function yV(e,t,n){let r=e.slice();return r.splice(n<0?r.length+n:n,0,r.splice(t,1)[0]),r}function bV(e,t){return e.reduce((e,n,r)=>{let i=t.get(n);return i&&(e[r]=i),e},Array(e.length))}function xV(e){return e!==null&&e>=0}function SV(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]!==t[n])return!1;return!0}function CV(e){return typeof e==`boolean`?{draggable:e,droppable:e}:e}var wV={scaleX:1,scaleY:1},TV=e=>{let{rects:t,activeNodeRect:n,activeIndex:r,overIndex:i,index:a}=e,o=t[r]??n;if(!o)return null;let s=EV(t,a,r);if(a===r){let e=t[i];return e?{x:r<i?e.left+e.width-(o.left+o.width):e.left-o.left,y:0,...wV}:null}return a>r&&a<=i?{x:-o.width-s,y:0,...wV}:a<r&&a>=i?{x:o.width+s,y:0,...wV}:{x:0,y:0,...wV}};function EV(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return!r||!i&&!a?0:n<t?i?r.left-(i.left+i.width):a.left-(r.left+r.width):a?a.left-(r.left+r.width):r.left-(i.left+i.width)}var DV=e=>{let{rects:t,activeIndex:n,overIndex:r,index:i}=e,a=yV(t,r,n),o=t[i],s=a[i];return!s||!o?null:{x:s.left-o.left,y:s.top-o.top,scaleX:s.width/o.width,scaleY:s.height/o.height}},OV={scaleX:1,scaleY:1},kV=e=>{let{activeIndex:t,activeNodeRect:n,index:r,rects:i,overIndex:a}=e,o=i[t]??n;if(!o)return null;if(r===t){let e=i[a];return e?{x:0,y:t<a?e.top+e.height-(o.top+o.height):e.top-o.top,...OV}:null}let s=AV(i,r,t);return r>t&&r<=a?{x:0,y:-o.height-s,...OV}:r<t&&r>=a?{x:0,y:o.height+s,...OV}:{x:0,y:0,...OV}};function AV(e,t,n){let r=e[t],i=e[t-1],a=e[t+1];return r?n<t?i?r.top-(i.top+i.height):a?a.top-(r.top+r.height):0:a?a.top-(r.top+r.height):i?r.top-(i.top+i.height):0:0}var jV=`Sortable`,MV=z.createContext({activeIndex:-1,containerId:jV,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:DV,disabled:{draggable:!1,droppable:!1}});function NV(e){let{children:t,id:n,items:r,strategy:i=DV,disabled:a=!1}=e,{active:o,dragOverlay:s,droppableRects:c,over:l,measureDroppableContainers:u}=rV(),d=ER(jV,n),f=s.rect!==null,p=(0,z.useMemo)(()=>r.map(e=>typeof e==`object`&&`id`in e?e.id:e),[r]),m=o!=null,h=o?p.indexOf(o.id):-1,g=l?p.indexOf(l.id):-1,_=(0,z.useRef)(p),v=!SV(p,_.current),y=g!==-1&&h===-1||v,b=CV(a);vR(()=>{v&&m&&u(p)},[v,p,m,u]),(0,z.useEffect)(()=>{_.current=p},[p]);let x=(0,z.useMemo)(()=>({activeIndex:h,containerId:d,disabled:b,disableTransforms:y,items:p,overIndex:g,useDragOverlay:f,sortedRects:bV(p,c),strategy:i}),[h,d,b.draggable,b.droppable,y,p,g,c,f,i]);return z.createElement(MV.Provider,{value:x},t)}var PV=e=>{let{id:t,items:n,activeIndex:r,overIndex:i}=e;return yV(n,r,i).indexOf(t)},FV=e=>{let{containerId:t,isSorting:n,wasDragging:r,index:i,items:a,newIndex:o,previousItems:s,previousContainerId:c,transition:l}=e;return!l||!r||s!==a&&i===o?!1:n?!0:o!==i&&t===c},IV={duration:200,easing:`ease`},LV=`transform`,RV=PR.Transition.toString({property:LV,duration:0,easing:`linear`}),zV={roleDescription:`sortable`};function BV(e){let{disabled:t,index:n,node:r,rect:i}=e,[a,o]=(0,z.useState)(null),s=(0,z.useRef)(n);return vR(()=>{if(!t&&n!==s.current&&r.current){let e=i.current;if(e){let t=vz(r.current,{ignoreTransform:!0}),n={x:e.left-t.left,y:e.top-t.top,scaleX:e.width/t.width,scaleY:e.height/t.height};(n.x||n.y)&&o(n)}}n!==s.current&&(s.current=n)},[t,n,r,i]),(0,z.useEffect)(()=>{a&&o(null)},[a]),a}function VV(e){let{animateLayoutChanges:t=FV,attributes:n,disabled:r,data:i,getNewIndex:a=PV,id:o,strategy:s,resizeObserverConfig:c,transition:l=IV}=e,{items:u,containerId:d,activeIndex:f,disabled:p,disableTransforms:m,sortedRects:h,overIndex:g,useDragOverlay:_,strategy:v}=(0,z.useContext)(MV),y=HV(r,p),b=u.indexOf(o),x=(0,z.useMemo)(()=>({sortable:{containerId:d,index:b,items:u},...i}),[d,i,b,u]),S=(0,z.useMemo)(()=>u.slice(u.indexOf(o)),[u,o]),{rect:C,node:w,isOver:T,setNodeRef:E}=oV({id:o,data:x,disabled:y.droppable,resizeObserverConfig:{updateMeasurementsFor:S,...c}}),{active:D,activatorEvent:O,activeNodeRect:k,attributes:ee,setNodeRef:A,listeners:j,isDragging:M,over:te,setActivatorNodeRef:ne,transform:N}=nV({id:o,data:x,attributes:{...zV,...n},disabled:y.draggable}),P=lR(E,A),re=!!D,F=re&&!m&&xV(f)&&xV(g),I=!_&&M,ie=F?(I&&F?N:null)??(s??v)({rects:h,activeNodeRect:k,activeIndex:f,overIndex:g,index:b}):null,L=xV(f)&&xV(g)?a({id:o,items:u,activeIndex:f,overIndex:g}):b,R=D?.id,ae=(0,z.useRef)({activeId:R,items:u,newIndex:L,containerId:d}),oe=u!==ae.current.items,se=t({active:D,containerId:d,isDragging:M,isSorting:re,id:o,index:b,items:u,newIndex:ae.current.newIndex,previousItems:ae.current.items,previousContainerId:ae.current.containerId,transition:l,wasDragging:ae.current.activeId!=null}),ce=BV({disabled:!se,index:b,node:w,rect:C});return(0,z.useEffect)(()=>{re&&ae.current.newIndex!==L&&(ae.current.newIndex=L),d!==ae.current.containerId&&(ae.current.containerId=d),u!==ae.current.items&&(ae.current.items=u)},[re,L,d,u]),(0,z.useEffect)(()=>{if(R===ae.current.activeId)return;if(R!=null&&ae.current.activeId==null){ae.current.activeId=R;return}let e=setTimeout(()=>{ae.current.activeId=R},50);return()=>clearTimeout(e)},[R]),{active:D,activeIndex:f,attributes:ee,data:x,rect:C,index:b,newIndex:L,items:u,isOver:T,isSorting:re,isDragging:M,listeners:j,node:w,overIndex:g,over:te,setNodeRef:P,setActivatorNodeRef:ne,setDroppableNodeRef:E,setDraggableNodeRef:A,transform:ce??ie,transition:B()};function B(){if(ce||oe&&ae.current.newIndex===b)return RV;if(!(I&&!jR(O)||!l)&&(re||se))return PR.Transition.toString({...l,property:LV})}}function HV(e,t){return typeof e==`boolean`?{draggable:e,droppable:!1}:{draggable:e?.draggable??t.draggable,droppable:e?.droppable??t.droppable}}function UV(e){if(!e)return!1;let t=e.data.current;return!!(t&&`sortable`in t&&typeof t.sortable==`object`&&`containerId`in t.sortable&&`items`in t.sortable&&`index`in t.sortable)}var WV=[qz.Down,qz.Right,qz.Up,qz.Left],GV=(e,t)=>{let{context:{active:n,collisionRect:r,droppableRects:i,droppableContainers:a,over:o,scrollableAncestors:s}}=t;if(WV.includes(e.code)){if(e.preventDefault(),!n||!r)return;let t=[];a.getEnabled().forEach(n=>{if(!n||n!=null&&n.disabled)return;let a=i.get(n.id);if(a)switch(e.code){case qz.Down:r.top<a.top&&t.push(n);break;case qz.Up:r.top>a.top&&t.push(n);break;case qz.Left:r.left>a.left&&t.push(n);break;case qz.Right:r.left<a.left&&t.push(n)}});let c=oz({active:n,collisionRect:r,droppableRects:i,droppableContainers:t,pointerCoordinates:null}),l=rz(c,`id`);if(l===o?.id&&c.length>1&&(l=c[1].id),l!=null){let e=a.get(n.id),t=a.get(l),o=t?i.get(t.id):null,c=t?.node.current;if(c&&o&&e&&t){let n=Cz(c).some((e,t)=>s[t]!==e),i=KV(e,t),a=qV(e,t),l=n||!i?{x:0,y:0}:{x:a?r.width-o.width:0,y:a?r.height-o.height:0},u={x:o.left,y:o.top};return l.x&&l.y?u:kR(u,l)}}}};function KV(e,t){return!UV(e)||!UV(t)?!1:e.data.current.sortable.containerId===t.data.current.sortable.containerId}function qV(e,t){return!UV(e)||!UV(t)||!KV(e,t)?!1:e.data.current.sortable.index<t.data.current.sortable.index}var JV=(0,z.createContext)(null);function YV({children:e,didCatch:t,error:n,resetErrorBoundary:r}){let i=(0,z.useMemo)(()=>({didCatch:t,error:n,resetErrorBoundary:r}),[t,n,r]);return(0,z.createElement)(JV.Provider,{value:i},e)}var XV={didCatch:!1,error:null},ZV=class extends z.Component{constructor(e){super(e),this.resetErrorBoundary=this.resetErrorBoundary.bind(this),this.state=XV}static getDerivedStateFromError(e){return{didCatch:!0,error:e}}resetErrorBoundary(...e){let{didCatch:t}=this.state;t&&(this.props.onReset?.({args:e,reason:`imperative-api`}),this.setState(XV))}componentDidCatch(e,t){this.props.onError?.(e,t)}componentDidUpdate(e,t){let{didCatch:n}=this.state,{resetKeys:r}=this.props;n&&t.didCatch&&QV(e.resetKeys,r)&&(this.props.onReset?.({next:r,prev:e.resetKeys,reason:`keys`}),this.setState(XV))}render(){let{children:e,fallbackRender:t,FallbackComponent:n,fallback:r}=this.props,{didCatch:i,error:a}=this.state,o=e;if(i){let e={error:a,resetErrorBoundary:this.resetErrorBoundary};if(typeof t==`function`)o=t(e);else if(n)o=(0,z.createElement)(n,e);else if(`fallback`in this.props)o=r;else throw a}return(0,z.createElement)(YV,{didCatch:i,error:a,resetErrorBoundary:this.resetErrorBoundary},o)}};function QV(e=[],t=[]){return e.length!==t.length||e.some((e,n)=>!Object.is(e,t[n]))}var $V=[[`All`,`*`,`*`,` `,0,`All`],[`AllReadable`,`*`,`r`,` `,0,`All Readable`],[`AllCreatable`,`*`,`w`,` `,0,`All Creatable`],[`AllLinear`,`*`,`l`,` `,0,`All Linear`],[`AllMatrix`,`*`,`m`,` `,0,`All Matrix`],[`AllGS1`,`*`,`G`,` `,0,`All GS1`],[`AllRetail`,`*`,`R`,` `,0,`All Retail`],[`AllIndustrial`,`*`,`I`,` `,0,`All Industrial`],[`Codabar`,`F`,` `,`lrw `,18,`Codabar`],[`Code39`,`A`,` `,`lrw I`,8,`Code 39`],[`Code39Std`,`A`,`s`,`lrw I`,8,`Code 39 Standard`],[`Code39Ext`,`A`,`e`,`lr I`,9,`Code 39 Extended`],[`Code32`,`A`,`2`,`lr I`,129,`Code 32`],[`PZN`,`A`,`p`,`lr I`,52,`Pharmazentralnummer`],[`Code93`,`G`,` `,`lrw I`,25,`Code 93`],[`Code128`,`C`,` `,`lrwGI`,20,`Code 128`],[`ITF`,`I`,` `,`lrw I`,3,`ITF`],[`ITF14`,`I`,`4`,`lr I`,89,`ITF-14`],[`DataBar`,`e`,` `,`lr GR`,29,`DataBar`],[`DataBarOmni`,`e`,`o`,`lr GR`,29,`DataBar Omni`],[`DataBarStk`,`e`,`s`,`lr GR`,79,`DataBar Stacked`],[`DataBarStkOmni`,`e`,`O`,`lr GR`,80,`DataBar Stacked Omni`],[`DataBarLtd`,`e`,`l`,`lr GR`,30,`DataBar Limited`],[`DataBarExp`,`e`,`e`,`lr GR`,31,`DataBar Expanded`],[`DataBarExpStk`,`e`,`E`,`lr GR`,81,`DataBar Expanded Stacked`],[`EANUPC`,`E`,` `,`lr R`,15,`EAN/UPC`],[`EAN13`,`E`,`1`,`lrw R`,15,`EAN-13`],[`EAN8`,`E`,`8`,`lrw R`,10,`EAN-8`],[`EAN5`,`E`,`5`,`l R`,12,`EAN-5`],[`EAN2`,`E`,`2`,`l R`,11,`EAN-2`],[`ISBN`,`E`,`i`,`lr R`,69,`ISBN`],[`UPCA`,`E`,`a`,`lrw R`,34,`UPC-A`],[`UPCE`,`E`,`e`,`lrw R`,37,`UPC-E`],[`Telepen`,`B`,` `,`lr I`,32,`Telepen`],[`TelepenAlpha`,`B`,`0`,`lr I`,32,`Telepen Alpha`],[`TelepenNumeric`,`B`,`1`,`lr I`,87,`Telepen Numeric`],[`OtherBarcode`,`X`,` `,` r `,0,`Other barcode`],[`DXFilmEdge`,`X`,`x`,`lr `,147,`DX Film Edge`],[`PDF417`,`L`,` `,`mrw `,55,`PDF417`],[`CompactPDF417`,`L`,`c`,`mr `,56,`Compact PDF417`],[`MicroPDF417`,`L`,`m`,`mr `,84,`MicroPDF417`],[`Aztec`,`z`,` `,`mr G `,92,`Aztec`],[`AztecCode`,`z`,`c`,`mrwG `,92,`Aztec Code`],[`AztecRune`,`z`,`r`,`mr `,128,`Aztec Rune`],[`QRCode`,`Q`,` `,`mrwG `,58,`QR Code`],[`QRCodeModel1`,`Q`,`1`,`mr `,0,`QR Code Model 1`],[`QRCodeModel2`,`Q`,`2`,`mr `,58,`QR Code Model 2`],[`MicroQRCode`,`Q`,`m`,`mr `,97,`Micro QR Code`],[`RMQRCode`,`Q`,`r`,`mr G `,145,`rMQR Code`],[`DataMatrix`,`d`,` `,`mrwG `,71,`Data Matrix`],[`MaxiCode`,`U`,` `,`mr `,57,`MaxiCode`]],eH={DataBarExpanded:`DataBarExp`,DataBarLimited:`DataBarLtd`,"Linear-Codes":`AllLinear`,"Matrix-Codes":`AllMatrix`,Any:`All`,rMQRCode:`RMQRCode`};$V.map(e=>e[5]),$V.filter(e=>e[1]===`*`).map(e=>e[0]),$V.filter(e=>e[1]!==`*`).map(e=>e[0]),$V.filter(e=>e[2]===` `).map(e=>e[0]),$V.filter(e=>e[3][0]===`l`).map(e=>e[0]),$V.filter(e=>e[3][0]===`m`).map(e=>e[0]),$V.filter(e=>e[3][1]===`r`).map(e=>e[0]),$V.filter(e=>e[3][2]===`w`||e[4]!==0).map(e=>e[0]),$V.filter(e=>e[3][3]===`G`).map(e=>e[0]),$V.filter(e=>e[3][4]===`R`).map(e=>e[0]),$V.filter(e=>e[3][4]===`I`).map(e=>e[0]);function tH(e){return eH[e]??e}function nH(e){return e.map(tH).join(`,`)}var rH=[`LocalAverage`,`GlobalHistogram`,`FixedThreshold`,`BoolCast`];function iH(e){return rH.indexOf(e)}var aH=`Unknown.ASCII.ISO8859_1.ISO8859_2.ISO8859_3.ISO8859_4.ISO8859_5.ISO8859_6.ISO8859_7.ISO8859_8.ISO8859_9.ISO8859_10.ISO8859_11.ISO8859_13.ISO8859_14.ISO8859_15.ISO8859_16.Cp437.Cp1250.Cp1251.Cp1252.Cp1256.Shift_JIS.Big5.GB2312.GB18030.EUC_JP.EUC_KR.UTF16BE.UTF8.UTF16LE.UTF32BE.UTF32LE.BINARY`.split(`.`);function oH(e){return e===`UnicodeBig`?aH.indexOf(`UTF16BE`):aH.indexOf(e)}var sH=[`Text`,`Binary`,`Mixed`,`GS1`,`ISO15434`,`UnknownECI`];function cH(e){return sH[e]}var lH=[`Ignore`,`Read`,`Require`];function uH(e){return lH.indexOf(e)}var dH=[`Plain`,`ECI`,`HRI`,`Escaped`,`Hex`,`HexECI`];function fH(e){return dH.indexOf(e)}var pH={formats:[],tryHarder:!0,tryRotate:!0,tryInvert:!0,tryDownscale:!0,tryDenoise:!1,binarizer:`LocalAverage`,isPure:!1,downscaleFactor:3,downscaleThreshold:500,minLineCount:2,maxNumberOfSymbols:255,validateOptionalChecksum:!1,returnErrors:!1,eanAddOnSymbol:`Ignore`,textMode:`HRI`,characterSet:`Unknown`,tryCode39ExtendedMode:!0};function mH(e){var t;return{...e,formats:nH(e.formats),binarizer:iH(e.binarizer),eanAddOnSymbol:uH(e.eanAddOnSymbol),textMode:fH(e.textMode),characterSet:oH(e.characterSet),tryCode39ExtendedMode:(t=e.tryCode39ExtendedMode)==null||t}}function hH(e){return{...e,orientation:e.rotation,format:e.format,symbology:e.symbology,contentType:cH(e.contentType)}}var gH={format:`QRCode`,readerInit:!1,forceSquareDataMatrix:!1,ecLevel:``,scale:1,sizeHint:0,rotate:0,invert:!1,withHRT:!1,withQuietZones:!0,addHRT:!1,addQuietZones:!0,options:``};function _H(e,t){let n=e.byteLength>>2;for(let r=0;r<n;r+=1024){let i=Math.min(r+1024,n);for(let n=r;n<i;n++){let r=n<<2;t[n]=306*e[r]+601*e[r+1]+117*e[r+2]+512>>10}}}var vH={locateFile:(e,t)=>{let n=e.match(/_(.+?)\.wasm$/);return n?`https://fastly.jsdelivr.net/npm/zxing-wasm@3.1.6/dist/${n[1]}/${e}`:t+e}},yH=new WeakMap;function bH(e,t){return Object.is(e,t)||Object.keys(e).length===Object.keys(t).length&&Object.keys(e).every(n=>Object.prototype.hasOwnProperty.call(t,n)&&e[n]===t[n])}function xH(e){let{overrides:t,equalityFn:n=bH,fireImmediately:r=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},[i,a]=yH.get(e)??[vH],o=t??i,s;if(r){if(a&&(s=n(i,o)))return a;let t=e({...o});return yH.set(e,[o,t]),t}(s??n(i,o))||yH.set(e,[o])}async function SH(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:pH,r={...pH,...n},i=await xH(e,{fireImmediately:!0}),a,o=mH(r);if(`width`in t&&`height`in t&&`data`in t){let{width:e,height:n}=t,r=t.data.buffer===i.HEAPU8.buffer?t.data.slice():t.data,s=r.byteLength/4,c=i._malloc(s);if(!c)throw Error(`Failed to allocate ${s} bytes in WASM memory`);try{_H(r,i.HEAPU8.subarray(c,c+s)),a=i.readBarcodesFromPixmap(c,e,n,o)}finally{i._free(c)}}else{let e;if(`buffer`in t)e=t;else if(`byteLength`in t)e=new Uint8Array(t);else if(`size`in t)e=new Uint8Array(await t.arrayBuffer());else throw TypeError(`Invalid input type`);let n=i._malloc(e.byteLength);if(!n)throw Error(`Failed to allocate ${e.byteLength} bytes in WASM memory`);try{i.HEAPU8.set(e,n),a=i.readBarcodesFromImage(n,e.byteLength,o)}finally{i._free(n)}}try{let e=[],t=a.size();for(let n=0;n<t;++n)e.push(hH(a.get(n)));return e}finally{a.delete()}}({...pH}),[...pH.formats],{...gH};function CH(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}async function wH(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};var t,n,r,i=e,a=!!globalThis.window,o=!!globalThis.WorkerGlobalScope;(n=globalThis.process)!=null&&(t=n.versions)!=null&&t.node&&((r=globalThis.process)==null||r.type);var s=(e,t)=>{throw t},c=void 0,l=``;function u(e){return i.locateFile?i.locateFile(e,l):l+e}var d,f;if(a||o||typeof fetch==`function`){try{l=new URL(`.`,c).href}catch{}o&&(f=e=>{var t=new XMLHttpRequest;return t.open(`GET`,e,!1),t.responseType=`arraybuffer`,t.send(null),new Uint8Array(t.response)}),d=async e=>{var t=await fetch(e,{credentials:`same-origin`});if(t.ok)return t.arrayBuffer();throw Error(t.status+` : `+t.url)}}console.log.bind(console);var p=console.error.bind(console),m,h=!1,g;class _{}class v extends _{constructor(e){super(),this.excPtr=e}}function y(){return pr.buffer}function b(){var e;if(!(te!=null&&(e=te.buffer)!=null&&e.resizable)){var t=y();te=new Int8Array(t),Jt=new Int16Array(t),i.HEAPU8=Ae=new Uint8Array(t),Yt=new Uint16Array(t),Xt=new Int32Array(t),oe=new Uint32Array(t),Ut=new Float32Array(t),Wt=new Float64Array(t)}}function x(){var e=i.preRun;e&&(typeof e==`function`&&(e=[e]),P.push(...e)),ne(P)}function S(){Yr.ra()}function C(){var e=i.postRun;e&&(typeof e==`function`&&(e=[e]),N.push(...e)),ne(N)}function w(e){var t;throw(t=i.onAbort)==null||t.call(i,e),e=`Aborted(${e})`,p(e),h=!0,e+=`. Build with -sASSERTIONS for more info.`,new WebAssembly.RuntimeError(e)}var T;function E(){return u(`zxing_reader.wasm`)}function D(e){if(e==T&&m)return new Uint8Array(m);if(f)return f(e);throw`both async and sync fetching of the wasm failed`}async function O(e){if(!m)try{var t=await d(e);return new Uint8Array(t)}catch{}return D(e)}async function k(e,t){try{var n=await O(e);return await WebAssembly.instantiate(n,t)}catch(e){p(`failed to asynchronously prepare wasm: ${e}`),w(e)}}async function ee(e,t,n){if(!e)try{var r=fetch(t,{credentials:`same-origin`});return await WebAssembly.instantiateStreaming(r,n)}catch(e){p(`wasm streaming compile failed: ${e}`),p(`falling back to ArrayBuffer instantiation`)}return k(t,n)}function A(){return{a:gr}}async function j(){function e(e){return Yr=e.exports,hr(Yr),b(),Yr}function t(t){return e(t.instance)}var n=A(),r=i.instantiateWasm;return r?new Promise(t=>{r(n,n=>t(e(n)))}):(T??=E(),t(await ee(m,T,n)))}class M{constructor(e){CH(this,`name`,`ExitStatus`),this.message=`Program terminated with exit(${e})`,this.status=e}}var te,ne=e=>{for(;e.length>0;)e.shift()(i)},N=[],P=[],re=!0,F=e=>or(e),I=()=>cr(),ie=[],L=e=>{var t=ie[e];return t||(ie[e]=t=mr.get(e)),t},R=(e,t)=>L(e)(t),z=[],ae=0,oe;class se{set_type(e){oe[this.ptr+4>>2]=e}get_type(){return oe[this.ptr+4>>2]}set_destructor(e){oe[this.ptr+8>>2]=e}get_destructor(){return oe[this.ptr+8>>2]}set_caught(e){e=+!!e,te[this.ptr+12]=e}get_caught(){return te[this.ptr+12]!=0}set_rethrown(e){e=+!!e,te[this.ptr+13]=e}get_rethrown(){return te[this.ptr+13]!=0}init(e,t){this.set_adjusted_ptr(0),this.set_type(e),this.set_destructor(t)}set_adjusted_ptr(e){oe[this.ptr+16>>2]=e}get_adjusted_ptr(){return oe[this.ptr+16>>2]}constructor(e){this.excPtr=e,this.ptr=e-24}}var ce=e=>{var t=new se(e);return t.get_caught()||(t.set_caught(!0),ae--),t.set_rethrown(!1),z.push(t),nr(e)},B=null,le=()=>{ir(0,0);var e=z.pop();ur(e.excPtr),B=null},V=e=>ar(e),ue=e=>{var t=B?.excPtr;if(!t)return V(0),0;var n=new se(t);n.set_adjusted_ptr(t);var r=n.get_type();if(!r)return V(0),t;for(var i of e){if(!i||i===r)break;var a=n.ptr+16;if(dr(i,r,a))return V(i),t}return V(r),t},de=()=>ue([]),fe=e=>ue([e]),pe=(e,t)=>ue([e,t]),me=e=>{throw e},he=()=>{z.length||w(`no exception to throw`);var e=z[z.length-1],t=e.excPtr;e.set_rethrown(!0),e.set_caught(!1),ae++,lr(t),t=B=new v(t),me(t)},ge=(e,t,n)=>{new se(e).init(t,n),lr(e),e=B=new v(e),ae++,me(e)},_e=e=>{throw e},ve=e=>{e=B??=new v(e),_e(e)},ye=()=>w(``),be={},xe=e=>{for(;e.length;){var t=e.pop();e.pop()(t)}};function Se(e){return this.fromWireType(oe[e>>2])}var Ce={},we={},Te={};class Ee extends Error{constructor(e){super(e),this.name=`InternalError`}}var De=e=>{throw new Ee(e)},Oe=(e,t,n)=>{e.forEach(e=>Te[e]=t);function r(t){var r=n(t);r.length!==e.length&&De(`Mismatched type converter count`);for(var i=0;i<e.length;++i)Re(e[i],r[i])}var i=Array(t.length),a=[],o=0;for(let[e,n]of t.entries())we.hasOwnProperty(n)?i[e]=we[n]:(a.push(n),Ce.hasOwnProperty(n)||(Ce[n]=[]),Ce[n].push(()=>{i[e]=we[n],++o,o===a.length&&r(i)}));a.length===0&&r(i)},ke=e=>sr(e),Ae,je=(e,t)=>Ae.fill(0,e,e+t),Me=e=>{var t=be[e];delete be[e];var n=t.rawConstructor,r=t.rawDestructor,i=t.valueSize,a=t.isTrivial,o=t.fields,s=o.map(e=>e.getterReturnType).concat(o.map(e=>e.setterArgumentType));Oe([e],s,e=>{var s={};for(var[c,l]of o.entries()){let t=e[c],n=l.getter,r=l.getterContext,i=e[c+o.length],a=l.setter,d=l.setterContext;var u=i.destructorFunction===null&&!i.argStackAlloc?(e,t)=>a(d,e,i.toWireType(null,t)):(e,t)=>{var n=[];a(d,e,i.toWireType(n,t)),xe(n)};s[l.fieldName]={read:e=>t.fromWireType(n(r,e)),write:u,optional:t.optional}}return[{name:t.name,fromWireType:e=>{var t={};for(var n in s)t[n]=s[n].read(e);return r(e),t},toWireType:(e,t)=>{for(var o in s)if(!(o in t)&&!s[o].optional)throw TypeError(`Missing field: "${o}"`);var c;for(o in a&&!e?(c=ke(i),je(c,i)):(c=n(),e&&e.push(r,c)),s)s[o].write(c,t[o]);return c},readValueFromPointer:Se,destructorFunction:a?null:r,argStackAlloc:a}]})},Ne=(e,t,n,r,i)=>{},Pe=e=>{for(var t=``;;){var n=Ae[e++];if(!n)return t;t+=String.fromCharCode(n)}};class Fe extends Error{constructor(e){super(e),this.name=`BindingError`}}var Ie=e=>{throw new Fe(e)};function Le(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};var r=t.name;if(e||Ie(`type "${r}" must have a positive integer typeid pointer`),we.hasOwnProperty(e)){if(n.ignoreDuplicateRegistrations)return;Ie(`Cannot register type '${r}' twice`)}if(we[e]=t,delete Te[e],Ce.hasOwnProperty(e)){var i=Ce[e];delete Ce[e],i.forEach(e=>e())}}function Re(e,t){return Le(e,t,arguments.length>2&&arguments[2]!==void 0?arguments[2]:{})}var ze=(e,t,n,r)=>{t=Pe(t),Re(e,{name:t,fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:r},readValueFromPointer:function(e){return this.fromWireType(Ae[e])},destructorFunction:null})},Be=e=>({count:e.count,deleteScheduled:e.deleteScheduled,preservePointerOnDelete:e.preservePointerOnDelete,ptr:e.ptr,ptrType:e.ptrType,smartPtr:e.smartPtr,smartPtrType:e.smartPtrType}),Ve=e=>{function t(e){return e.$$.ptrType.registeredClass.name}Ie(t(e)+` instance already deleted`)},He=!1,Ue=e=>{},We=e=>{e.smartPtr?e.smartPtrType.rawDestructor(e.smartPtr):e.ptrType.registeredClass.rawDestructor(e.ptr)},Ge=e=>{--e.count.value,e.count.value===0&&We(e)},Ke=e=>globalThis.FinalizationRegistry?(He=new FinalizationRegistry(e=>{Ge(e.$$)}),Ke=e=>{var t=e.$$;if(t.smartPtr){var n={$$:t};He.register(e,n,e)}return e},Ue=e=>He.unregister(e),Ke(e)):(Ke=e=>e,e),qe=[],Je=()=>{for(;qe.length;){var e=qe.pop();e.$$.deleteScheduled=!1,e.delete()}},Ye,Xe=()=>{let e=Ze.prototype;Object.assign(e,{isAliasOf(e){if(!(this instanceof Ze)||!(e instanceof Ze))return!1;var t=this.$$.ptrType.registeredClass,n=this.$$.ptr;e.$$=e.$$;for(var r=e.$$.ptrType.registeredClass,i=e.$$.ptr;t.baseClass;)n=t.upcast(n),t=t.baseClass;for(;r.baseClass;)i=r.upcast(i),r=r.baseClass;return t===r&&n===i},clone(){if(this.$$.ptr||Ve(this),this.$$.preservePointerOnDelete)return this.$$.count.value+=1,this;var e=Ke(Object.create(Object.getPrototypeOf(this),{$$:{value:Be(this.$$)}}));return e.$$.count.value+=1,e.$$.deleteScheduled=!1,e},delete(){this.$$.ptr||Ve(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ie(`Object already scheduled for deletion`),Ue(this),Ge(this.$$),this.$$.preservePointerOnDelete||(this.$$.smartPtr=void 0,this.$$.ptr=void 0)},isDeleted(){return!this.$$.ptr},deleteLater(){return this.$$.ptr||Ve(this),this.$$.deleteScheduled&&!this.$$.preservePointerOnDelete&&Ie(`Object already scheduled for deletion`),qe.push(this),qe.length===1&&Ye&&Ye(Je),this.$$.deleteScheduled=!0,this}});let t=Symbol.dispose;t&&(e[t]=e.delete)};function Ze(){}var Qe=(e,t)=>Object.defineProperty(t,"name",{value:e}),$e={},et=(e,t,n)=>{if(e[t].overloadTable===void 0){var r=e[t];e[t]=function(){var r=[...arguments];return e[t].overloadTable.hasOwnProperty(r.length)||Ie(`Function '${n}' called with an invalid number of arguments (${r.length}) - expects one of (${e[t].overloadTable})!`),e[t].overloadTable[r.length].apply(this,r)},e[t].overloadTable=[],e[t].overloadTable[r.argCount]=r}},tt=(e,t,n)=>{i.hasOwnProperty(e)?((n===void 0||i[e].overloadTable!==void 0&&i[e].overloadTable[n]!==void 0)&&Ie(`Cannot register public name '${e}' twice`),et(i,e,e),i[e].overloadTable.hasOwnProperty(n)&&Ie(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),i[e].overloadTable[n]=t):(i[e]=t,i[e].argCount=n)},nt=48,rt=57,it=e=>{e=e.replace(/[^a-zA-Z0-9_]/g,`$`);var t=e.charCodeAt(0);return t>=nt&&t<=rt?`_${e}`:e};function at(e,t,n,r,i,a,o,s){this.name=e,this.constructor=t,this.instancePrototype=n,this.rawDestructor=r,this.baseClass=i,this.getActualType=a,this.upcast=o,this.downcast=s,this.pureVirtualFunctions=[]}var ot=(e,t,n)=>{for(;t!==n;)t.upcast||Ie(`Expected null or instance of ${n.name}, got an instance of ${t.name}`),e=t.upcast(e),t=t.baseClass;return e},st=e=>{if(e===null)return`null`;var t=typeof e;return t===`object`||t===`array`||t===`function`?e.toString():``+e};function ct(e,t){if(t===null)return this.isReference&&Ie(`null is not a valid ${this.name}`),0;t.$$||Ie(`Cannot pass "${st(t)}" as a ${this.name}`),t.$$.ptr||Ie(`Cannot pass deleted object as a pointer of type ${this.name}`);var n=t.$$.ptrType.registeredClass;return ot(t.$$.ptr,n,this.registeredClass)}function lt(e,t){var n;if(t===null)return this.isReference&&Ie(`null is not a valid ${this.name}`),this.isSmartPointer?(n=this.rawConstructor(),e!==null&&e.push(this.rawDestructor,n),n):0;t&&t.$$||Ie(`Cannot pass "${st(t)}" as a ${this.name}`),t.$$.ptr||Ie(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.isConst&&t.$$.ptrType.isConst&&Ie(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);var r=t.$$.ptrType.registeredClass;if(n=ot(t.$$.ptr,r,this.registeredClass),this.isSmartPointer)switch(t.$$.smartPtr===void 0&&Ie(`Passing raw pointer to smart pointer is illegal`),this.sharingPolicy){case 0:t.$$.smartPtrType===this?n=t.$$.smartPtr:Ie(`Cannot convert argument of type ${t.$$.smartPtrType?t.$$.smartPtrType.name:t.$$.ptrType.name} to parameter type ${this.name}`);break;case 1:n=t.$$.smartPtr;break;case 2:if(t.$$.smartPtrType===this)n=t.$$.smartPtr;else{var i=t.clone();n=this.rawShare(n,Bt.toHandle(()=>i.delete())),e!==null&&e.push(this.rawDestructor,n)}break;default:Ie(`Unsupported sharing policy`)}return n}function ut(e,t){if(t===null)return this.isReference&&Ie(`null is not a valid ${this.name}`),0;t.$$||Ie(`Cannot pass "${st(t)}" as a ${this.name}`),t.$$.ptr||Ie(`Cannot pass deleted object as a pointer of type ${this.name}`),t.$$.ptrType.isConst&&Ie(`Cannot convert argument of type ${t.$$.ptrType.name} to parameter type ${this.name}`);var n=t.$$.ptrType.registeredClass;return ot(t.$$.ptr,n,this.registeredClass)}var dt=(e,t,n)=>{if(t===n)return e;if(n.baseClass===void 0)return null;var r=dt(e,t,n.baseClass);return r===null?null:n.downcast(r)},ft={},pt=(e,t)=>{for(t===void 0&&Ie(`ptr should not be undefined`);e.baseClass;)t=e.upcast(t),e=e.baseClass;return t},mt=(e,t)=>(t=pt(e,t),ft[t]),ht=(e,t)=>(t.ptrType&&t.ptr||De(`makeClassHandle requires ptr and ptrType`),!!t.smartPtrType!=!!t.smartPtr&&De(`Both smartPtrType and smartPtr must be specified`),t.count={value:1},Ke(Object.create(e,{$$:{value:t,writable:!0}})));function gt(e){var t=this.getPointee(e);if(!t)return this.destructor(e),null;var n=mt(this.registeredClass,t);if(n!==void 0){if(n.$$.count.value===0)return n.$$.ptr=t,n.$$.smartPtr=e,n.clone();var r=n.clone();return this.destructor(e),r}function i(){return this.isSmartPointer?ht(this.registeredClass.instancePrototype,{ptrType:this.pointeeType,ptr:t,smartPtrType:this,smartPtr:e}):ht(this.registeredClass.instancePrototype,{ptrType:this,ptr:e})}var a=$e[this.registeredClass.getActualType(t)];if(!a)return i.call(this);var o=this.isConst?a.constPointerType:a.pointerType,s=dt(t,this.registeredClass,o.registeredClass);return s===null?i.call(this):this.isSmartPointer?ht(o.registeredClass.instancePrototype,{ptrType:o,ptr:s,smartPtrType:this,smartPtr:e}):ht(o.registeredClass.instancePrototype,{ptrType:o,ptr:s})}var _t=()=>{Object.assign(vt.prototype,{getPointee(e){return this.rawGetPointee&&(e=this.rawGetPointee(e)),e},destructor(e){var t,n;(t=(n=this).rawDestructor)==null||t.call(n,e)},readValueFromPointer:Se,fromWireType:gt})};function vt(e,t,n,r,i,a,o,s,c,l,u){this.name=e,this.registeredClass=t,this.isReference=n,this.isConst=r,this.isSmartPointer=i,this.pointeeType=a,this.sharingPolicy=o,this.rawGetPointee=s,this.rawConstructor=c,this.rawShare=l,this.rawDestructor=u,!i&&t.baseClass===void 0?r?(this.toWireType=ct,this.destructorFunction=null):(this.toWireType=ut,this.destructorFunction=null):this.toWireType=lt}var yt=(e,t,n)=>{i.hasOwnProperty(e)||De(`Replacing nonexistent public symbol`),i[e].overloadTable!==void 0&&n!==void 0?i[e].overloadTable[n]=t:(i[e]=t,i[e].argCount=n)},bt={},xt=(e,t,n)=>{e=e.replace(/p/g,`i`);var r=bt[e];return r(t,...n)},St=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(arguments.length>3&&arguments[3]!==void 0&&arguments[3],e.includes(`j`))return xt(e,t,n);var r=L(t)(...n);function i(e){return e}return i(r)},Ct=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return function(){return St(e,t,[...arguments],n)}},wt=function(e,t){arguments.length>2&&arguments[2]!==void 0&&arguments[2],e=Pe(e);function n(){return e.includes(`j`)?Ct(e,t):L(t)}var r=n();return typeof r!=`function`&&Ie(`unknown function pointer with signature ${e}: ${t}`),r};class Tt extends Error{}var Et=e=>{var t=$n(e),n=Pe(t);return tr(t),n},Dt=(e,t)=>{var n=[],r={};function i(e){if(!r[e]&&!we[e]){if(Te[e]){Te[e].forEach(i);return}n.push(e),r[e]=!0}}throw t.forEach(i),new Tt(`${e}: `+n.map(Et).join([`, `]))},Ot=(e,t,n,r,i,a,o,s,c,l,u,d,f)=>{u=Pe(u),a=wt(i,a),s&&=wt(o,s),l&&=wt(c,l),f=wt(d,f);var p=it(u);tt(p,function(){Dt(`Cannot construct ${u} due to unbound types`,[r])}),Oe([e,t,n],r?[r]:[],t=>{t=t[0];var n,i;r?(n=t.registeredClass,i=n.instancePrototype):i=Ze.prototype;var o=Qe(u,function(){var e=[...arguments];if(Object.getPrototypeOf(this)!==c)throw new Fe(`Use 'new' to construct ${u}`);if(d.constructor_body===void 0)throw new Fe(`${u} has no accessible constructor`);var t=d.constructor_body[e.length];if(t===void 0)throw new Fe(`Tried to invoke ctor of ${u} with invalid number of parameters (${e.length}) - expected (${Object.keys(d.constructor_body).toString()}) parameters instead!`);return t.apply(this,e)}),c=Object.create(i,{constructor:{value:o}});o.prototype=c;var d=new at(u,o,c,f,n,a,s,l);if(d.baseClass){var m;(m=d.baseClass).__derivedClasses??(m.__derivedClasses=[]),d.baseClass.__derivedClasses.push(d)}var h=new vt(u,d,!0,!1,!1),g=new vt(u+`*`,d,!1,!1,!1),_=new vt(u+` const*`,d,!1,!0,!1);return $e[e]={pointerType:g,constPointerType:_},yt(p,o),[h,g,_]})},kt=(e,t)=>{for(var n=[],r=0;r<e;r++)n.push(oe[t+r*4>>2]);return n};function At(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].destructorFunction===void 0)return!0;return!1}function jt(e){for(var t=1;t<e.length;++t)if(e[t]!==null&&e[t].argStackAlloc)return!0;return!1}function Mt(e,t,n,r,i,a){var o=t.length;o<2&&Ie(`argTypes array size mismatch! Must at least get return value and receiver (this) types!`);var s=t[1]!==null&&n!==null,c=At(t),l=jt(t),u=l&&!a&&!c;l&&!u&&(c=!0);var d=!t[0].isVoid,f=o-2,p=Array(f),m=[],h=[];return Qe(e,function(){var e=[...arguments];h.length=0;var n;u&&(n=I());var a,o;try{m.length=s?2:1,m[0]=i,s&&(a=t[1].toWireType(h,this),m[1]=a);for(var l=0;l<f;++l){var g=t[l+2];p[l]=g.toWireType(u&&g.argStackAlloc?null:h,e[l]),m.push(p[l])}o=r(...m)}finally{u&&F(n)}function _(e){if(c)xe(h);else for(var n=s?1:2;n<t.length;n++){var r=n===1?a:p[n-2];t[n].destructorFunction!==null&&t[n].destructorFunction(r)}if(d)return t[0].fromWireType(e)}return _(o)})}var Nt=(e,t,n,r,i,a)=>{var o=kt(t,n);i=wt(r,i),Oe([],[e],e=>{e=e[0];var n=`constructor ${e.name}`;if(e.registeredClass.constructor_body===void 0&&(e.registeredClass.constructor_body=[]),e.registeredClass.constructor_body[t-1]!==void 0)throw new Fe(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.registeredClass.constructor_body[t-1]=()=>{Dt(`Cannot construct ${e.name} due to unbound types`,o)},Oe([],o,r=>(r.splice(1,0,null),e.registeredClass.constructor_body[t-1]=Mt(n,r,null,i,a),[])),[]})},Pt=e=>{e=e.trim();let t=e.indexOf(`(`);return t===-1?e:e.slice(0,t)},Ft=(e,t,n,r,i,a,o,s,c,l)=>{var u=kt(n,r);t=Pe(t),t=Pt(t),a=wt(i,a,c),Oe([],[e],e=>{e=e[0];var r=`${e.name}.${t}`;t.startsWith(`@@`)&&(t=Symbol[t.substring(2)]),s&&e.registeredClass.pureVirtualFunctions.push(t);function i(){Dt(`Cannot call ${r} due to unbound types`,u)}var l=e.registeredClass.instancePrototype,d=l[t];return d===void 0||d.overloadTable===void 0&&d.className!==e.name&&d.argCount===n-2?(i.argCount=n-2,i.className=e.name,l[t]=i):(et(l,t,r),l[t].overloadTable[n-2]=i),Oe([],u,i=>{var s=Mt(r,i,e,a,o,c);return l[t].overloadTable===void 0?(s.argCount=n-2,l[t]=s):l[t].overloadTable[n-2]=s,[]}),[]})},It=[],Lt=[0,1,,1,null,1,!0,1,!1,1],Rt=[],zt=e=>{if(e>9&&--Lt[e+1]===0){var t=Lt[e];Lt[e]=void 0;var n=Rt[e];n&&(Rt[e]=void 0,n(t)),It.push(e)}},Bt={toValue:e=>(e||Ie(`Cannot use deleted val. handle = ${e}`),Lt[e]),toHandle:e=>{switch(e){case void 0:return 2;case null:return 4;case!0:return 6;case!1:return 8;default:{let t=It.pop()||Lt.length;return Lt[t]=e,Lt[t+1]=1,t}}}},Vt={name:`emscripten::val`,fromWireType:e=>{var t=Bt.toValue(e);return zt(e),t},toWireType:(e,t)=>Bt.toHandle(t),readValueFromPointer:Se,destructorFunction:null},Ht=e=>Re(e,Vt),Ut,Wt,Gt=(e,t)=>{switch(t){case 4:return function(e){return this.fromWireType(Ut[e>>2])};case 8:return function(e){return this.fromWireType(Wt[e>>3])};default:throw TypeError(`invalid float width (${t}): ${e}`)}},Kt=(e,t,n)=>{t=Pe(t),Re(e,{name:t,fromWireType:e=>e,toWireType:(e,t)=>t,readValueFromPointer:Gt(t,n),destructorFunction:null})},qt=(e,t,n,r,i,a,o,s)=>{var c=kt(t,n);e=Pe(e),e=Pt(e),i=wt(r,i,o),tt(e,function(){Dt(`Cannot call ${e} due to unbound types`,c)},t-1),Oe([],c,n=>{var r=[n[0],null].concat(n.slice(1));return yt(e,Mt(e,r,null,i,a,o),t-1),[]})},Jt,Yt,Xt,Zt=(e,t,n)=>{switch(t){case 1:return n?e=>te[e]:e=>Ae[e];case 2:return n?e=>Jt[e>>1]:e=>Yt[e>>1];case 4:return n?e=>Xt[e>>2]:e=>oe[e>>2];default:throw TypeError(`invalid integer width (${t}): ${e}`)}},Qt=(e,t,n,r,i)=>{t=Pe(t);let a=r===0,o=e=>e;if(a){var s=32-8*n;o=e=>e<<s>>>s,i=o(i)}Re(e,{name:t,fromWireType:o,toWireType:(e,t)=>t,readValueFromPointer:Zt(t,n,r!==0),destructorFunction:null})},$t=(e,t,n)=>{let r=(e,t)=>{let n=0;return{next(){if(n>=e)return{done:!0};let r=n;return n++,{value:t(r),done:!1}},[Symbol.iterator](){return this}}};e[Symbol.iterator]||(e[Symbol.iterator]=function(){let e=this[t]();return r(e,e=>this[n](e))})},en=(e,t,n,r)=>{n=Pe(n),r=Pe(r),Oe([],[e,t],e=>{let t=e[0];return $t(t.registeredClass.instancePrototype,n,r),[]})},tn=(e,t,n)=>{var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];function i(e){var t=oe[e>>2],n=oe[e+4>>2];return new r(te.buffer,n,t)}n=Pe(n),Re(e,{name:n,fromWireType:i,readValueFromPointer:i},{ignoreDuplicateRegistrations:!0})},nn=Object.assign({optional:!0},Vt),rn=(e,t)=>{Re(e,nn)},an=(e,t,n,r)=>{if(!(r>0))return 0;for(var i=n,a=n+r-1,o=0;o<e.length;++o){var s=e.codePointAt(o);if(s<=127){if(n>=a)break;t[n++]=s}else if(s<=2047){if(n+1>=a)break;t[n++]=192|s>>6,t[n++]=128|s&63}else if(s<=65535){if(n+2>=a)break;t[n++]=224|s>>12,t[n++]=128|s>>6&63,t[n++]=128|s&63}else{if(n+3>=a)break;t[n++]=240|s>>18,t[n++]=128|s>>12&63,t[n++]=128|s>>6&63,t[n++]=128|s&63,o++}}return t[n]=0,n-i},on=(e,t,n)=>an(e,Ae,t,n),sn=e=>{for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++n):t+=3}return t},cn=globalThis.TextDecoder&&new TextDecoder,ln=(e,t,n,r)=>{var i=t+n;if(r)return i;for(;e[t]&&!(t>=i);)++t;return t},un=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=arguments.length>2?arguments[2]:void 0,r=arguments.length>3?arguments[3]:void 0;var i=ln(e,t,n,r);if(i-t>16&&e.buffer&&cn)return cn.decode(e.subarray(t,i));for(var a=``;t<i;){var o=e[t++];if(!(o&128))a+=String.fromCharCode(o);else{var s=e[t++]&63;if((o&224)==192)a+=String.fromCharCode((o&31)<<6|s);else{var c=e[t++]&63;if(o=(o&240)==224?(o&15)<<12|s<<6|c:(o&7)<<18|s<<12|c<<6|e[t++]&63,o<65536)a+=String.fromCharCode(o);else{var l=o-65536;a+=String.fromCharCode(55296|l>>10,56320|l&1023)}}}}return a},dn=(e,t,n)=>e?un(Ae,e,t,n):``,fn=(e,t)=>{t=Pe(t);var n=!0;Re(e,{name:t,fromWireType(e){var t=oe[e>>2],r=e+4,i;if(n)i=dn(r,t,!0);else{i=``;for(var a=0;a<t;++a)i+=String.fromCharCode(Ae[r+a])}return tr(e),i},toWireType(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var r,i=typeof t==`string`;i||ArrayBuffer.isView(t)&&t.BYTES_PER_ELEMENT==1||Ie(`Cannot pass non-string to std::string`),r=n&&i?sn(t):t.length;var a=er(4+r+1),o=a+4;if(oe[a>>2]=r,i){if(n)on(t,o,r+1);else for(var s=0;s<r;++s){var c=t.charCodeAt(s);c>255&&(tr(a),Ie(`String has UTF-16 code units that do not fit in 8 bits`)),Ae[o+s]=c}}else Ae.set(t,o);return e!==null&&e.push(tr,a),a},readValueFromPointer:Se,destructorFunction(e){tr(e)}})},pn=globalThis.TextDecoder?new TextDecoder(`utf-16le`):void 0,mn=(e,t,n)=>{var r=e>>1,i=ln(Yt,r,t/2,n);if(i-r>16&&pn)return pn.decode(Yt.subarray(r,i));for(var a=``,o=r;o<i;++o){var s=Yt[o];a+=String.fromCharCode(s)}return a},hn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2147483647;if(n<2)return 0;n-=2;for(var r=t,i=n<e.length*2?n/2:e.length,a=0;a<i;++a){var o=e.charCodeAt(a);Jt[t>>1]=o,t+=2}return Jt[t>>1]=0,t-r},gn=e=>e.length*2,_n=(e,t,n)=>{for(var r=``,i=e>>2,a=0;!(a>=t/4);a++){var o=oe[i+a];if(!o&&!n)break;r+=String.fromCodePoint(o)}return r},vn=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:2147483647;if(n<4)return 0;for(var r=t,i=r+n-4,a=0;a<e.length;++a){var o=e.codePointAt(a);if(o>65535&&a++,Xt[t>>2]=o,t+=4,t+4>i)break}return Xt[t>>2]=0,t-r},yn=e=>{for(var t=0,n=0;n<e.length;++n)e.codePointAt(n)>65535&&n++,t+=4;return t},bn=(e,t,n)=>{n=Pe(n);var r,i,a;t===2?(r=mn,i=hn,a=gn):(r=_n,i=vn,a=yn),Re(e,{name:n,fromWireType:e=>{var n=oe[e>>2],i=r(e+4,n*t,!0);return tr(e),i},toWireType:(e,r)=>{typeof r!=`string`&&Ie(`Cannot pass non-string to C++ string type ${n}`);var o=a(r),s=er(4+o+t);return oe[s>>2]=o/t,i(r,s+4,o+t),e!==null&&e.push(tr,s),s},readValueFromPointer:Se,destructorFunction(e){tr(e)}})},xn=(e,t,n,r,i,a,o,s)=>{be[e]={name:Pe(t),rawConstructor:wt(n,r),rawDestructor:wt(i,a),valueSize:o,isTrivial:!!s,fields:[]}},Sn=(e,t,n,r,i,a,o,s,c,l)=>{be[e].fields.push({fieldName:Pe(t),getterReturnType:n,getter:wt(r,i),getterContext:a,setterArgumentType:o,setter:wt(s,c),setterContext:l})},Cn=(e,t)=>{t=Pe(t),Re(e,{isVoid:!0,name:t,fromWireType:()=>void 0,toWireType:(e,t)=>void 0})},wn=0,Tn=()=>{re=!1,wn=0},En=[],Dn=e=>{var t=En.length;return En.push(e),t},On=(e,t)=>{var n=we[e];return n===void 0&&Ie(`${t} has unknown type ${Et(e)}`),n},kn=(e,t)=>{for(var n=Array(e),r=0;r<e;++r)n[r]=On(oe[t+r*4>>2],`parameter ${r}`);return n},An=(e,t,n)=>{var r=[],i=e(r,n);return r.length&&(oe[t>>2]=Bt.toHandle(r)),i},jn={},Mn=e=>{var t=jn[e];return t===void 0?Pe(e):t},Nn=(e,t,n)=>{var[r,...i]=kn(e,t),a=r.toWireType.bind(r),o=i.map(e=>e.readValueFromPointer.bind(e));e--;var s=Array(e);return Dn(Qe(`methodCaller<(${i.map(e=>e.name)}) => ${r.name}>`,(t,r,i,c)=>{for(var l=0,u=0;u<e;++u)s[u]=o[u](c+l),l+=8;var d;switch(n){case 0:d=Bt.toValue(t).apply(null,s);break;case 2:d=Reflect.construct(Bt.toValue(t),s);break;case 3:d=s[0];break;case 1:d=Bt.toValue(t)[Mn(r)](...s)}return An(a,i,d)}))},Pn=e=>e?(e=Mn(e),Bt.toHandle(globalThis[e])):Bt.toHandle(globalThis),Fn=e=>{e>9&&(Lt[e+1]+=1)},In=(e,t,n,r,i)=>En[e](t,n,r,i),Ln=e=>{xe(Bt.toValue(e)),zt(e)},Rn={},zn=e=>{if(e instanceof M||e==`unwind`)return g;s(1,e)},Bn=()=>re||wn>0,Vn=e=>{if(g=e,!Bn()){var t;(t=i.onExit)==null||t.call(i,e),h=!0}s(e,new M(e))},Hn=(e,t)=>{g=e,Vn(e)},Un=()=>{if(!Bn())try{Hn(g)}catch(e){zn(e)}},Wn=function(e){var t=[...arguments].slice(1);if(!h)try{return e(...t)}catch(e){zn(e)}finally{Un()}},Gn=()=>performance.now(),Kn=(e,t)=>(Rn[e]&&(clearTimeout(Rn[e].id),delete Rn[e]),t&&(Rn[e]={id:setTimeout(()=>{delete Rn[e],Wn(rr,e,Gn())},t),timeout_ms:t}),0),qn=()=>2147483648,Jn=(e,t)=>Math.ceil(e/t)*t,Yn=e=>{var t=(e-pr.buffer.byteLength+65535)/65536|0;try{return pr.grow(t),b(),1}catch{}},Xn=e=>{var t=Ae.length;e>>>=0;var n=qn();if(e>n)return!1;for(var r=1;r<=4;r*=2){var i=t*(1+.2/r);if(i=Math.min(i,e+100663296),Yn(Math.min(n,Jn(Math.max(e,i),65536))))return!0}return!1},Zn=e=>e;Xe(),_t(),i.noExitRuntime&&(re=i.noExitRuntime),i.print&&i.print,i.printErr&&(p=i.printErr),i.wasmBinary&&(m=i.wasmBinary),i.arguments&&i.arguments,i.thisProgram&&i.thisProgram;var Qn=i.preInit;if(Qn)for(typeof Qn==`function`&&(i.preInit=Qn=[Qn]);Qn.length>0;)Qn.shift()();var $n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr;function hr(e){$n=e.sa,er=i._malloc=e.ta,tr=i._free=e.ua,nr=e.va,rr=e.xa,ir=e.ya,ar=e.za,or=e.Aa,sr=e.Ba,cr=e.Ca,lr=e.Da,ur=e.Ea,dr=e.Fa,fr=bt.iiij=e.Ga,pr=e.qa,mr=e.wa}var gr={aa:R,v:ce,I:le,a:de,i:fe,l:pe,fa:he,s:ge,e:ve,ea:ye,T:Me,W:Ne,ia:ze,pa:Ot,oa:Nt,E:Ft,ga:Ht,Q:Kt,R:qt,y:Qt,ka:en,u:tn,S:rn,ha:fn,L:bn,C:xn,U:Sn,ja:Cn,da:Tn,na:Nn,ba:zt,B:Pn,P:Fn,ma:In,la:Ln,_:Kn,$:Xn,Z:Ir,N:zr,A:Tr,b:vr,z:Rr,g:yr,D:Fr,h:wr,k:Mr,o:jr,K:Lr,O:Pr,H:Cr,G:Ur,V:qr,c:xr,j:_r,X:Wr,f:Sr,M:Vr,J:Kr,d:br,F:Gr,m:Dr,Y:Hr,n:Ar,t:kr,x:Nr,q:Or,r:Br,p:Er,w:Zn,ca:Vn};function _r(e,t){var n=I();try{L(e)(t)}catch(e){if(F(n),!(e instanceof _))throw e;ir(1,0)}}function vr(e,t){var n=I();try{return L(e)(t)}catch(e){if(F(n),!(e instanceof _))throw e;ir(1,0)}}function yr(e,t,n){var r=I();try{return L(e)(t,n)}catch(e){if(F(r),!(e instanceof _))throw e;ir(1,0)}}function br(e,t,n,r){var i=I();try{L(e)(t,n,r)}catch(e){if(F(i),!(e instanceof _))throw e;ir(1,0)}}function xr(e){var t=I();try{L(e)()}catch(e){if(F(t),!(e instanceof _))throw e;ir(1,0)}}function Sr(e,t,n){var r=I();try{L(e)(t,n)}catch(e){if(F(r),!(e instanceof _))throw e;ir(1,0)}}function Cr(e,t,n,r,i,a,o,s){var c=I();try{return L(e)(t,n,r,i,a,o,s)}catch(e){if(F(c),!(e instanceof _))throw e;ir(1,0)}}function wr(e,t,n,r){var i=I();try{return L(e)(t,n,r)}catch(e){if(F(i),!(e instanceof _))throw e;ir(1,0)}}function Tr(e,t,n,r,i,a){var o=I();try{return L(e)(t,n,r,i,a)}catch(e){if(F(o),!(e instanceof _))throw e;ir(1,0)}}function Er(e,t,n,r,i,a,o,s,c,l,u){var d=I();try{L(e)(t,n,r,i,a,o,s,c,l,u)}catch(e){if(F(d),!(e instanceof _))throw e;ir(1,0)}}function Dr(e,t,n,r,i){var a=I();try{L(e)(t,n,r,i)}catch(e){if(F(a),!(e instanceof _))throw e;ir(1,0)}}function Or(e,t,n,r,i,a,o,s,c){var l=I();try{L(e)(t,n,r,i,a,o,s,c)}catch(e){if(F(l),!(e instanceof _))throw e;ir(1,0)}}function kr(e,t,n,r,i,a,o){var s=I();try{L(e)(t,n,r,i,a,o)}catch(e){if(F(s),!(e instanceof _))throw e;ir(1,0)}}function Ar(e,t,n,r,i,a){var o=I();try{L(e)(t,n,r,i,a)}catch(e){if(F(o),!(e instanceof _))throw e;ir(1,0)}}function jr(e,t,n,r,i,a){var o=I();try{return L(e)(t,n,r,i,a)}catch(e){if(F(o),!(e instanceof _))throw e;ir(1,0)}}function Mr(e,t,n,r,i){var a=I();try{return L(e)(t,n,r,i)}catch(e){if(F(a),!(e instanceof _))throw e;ir(1,0)}}function Nr(e,t,n,r,i,a,o,s){var c=I();try{L(e)(t,n,r,i,a,o,s)}catch(e){if(F(c),!(e instanceof _))throw e;ir(1,0)}}function Pr(e,t,n,r,i,a,o){var s=I();try{return L(e)(t,n,r,i,a,o)}catch(e){if(F(s),!(e instanceof _))throw e;ir(1,0)}}function Fr(e,t,n,r,i){var a=I();try{return L(e)(t,n,r,i)}catch(e){if(F(a),!(e instanceof _))throw e;ir(1,0)}}function Ir(e,t,n){var r=I();try{return L(e)(t,n)}catch(e){if(F(r),!(e instanceof _))throw e;ir(1,0)}}function Lr(e,t,n,r,i,a,o){var s=I();try{return L(e)(t,n,r,i,a,o)}catch(e){if(F(s),!(e instanceof _))throw e;ir(1,0)}}function Rr(e,t,n,r){var i=I();try{return L(e)(t,n,r)}catch(e){if(F(i),!(e instanceof _))throw e;ir(1,0)}}function zr(e,t,n,r){var i=I();try{return L(e)(t,n,r)}catch(e){if(F(i),!(e instanceof _))throw e;ir(1,0)}}function Br(e,t,n,r,i,a,o,s,c,l){var u=I();try{L(e)(t,n,r,i,a,o,s,c,l)}catch(e){if(F(u),!(e instanceof _))throw e;ir(1,0)}}function Vr(e,t,n,r,i,a,o,s,c){var l=I();try{L(e)(t,n,r,i,a,o,s,c)}catch(e){if(F(l),!(e instanceof _))throw e;ir(1,0)}}function Hr(e,t,n,r,i,a,o,s){var c=I();try{L(e)(t,n,r,i,a,o,s)}catch(e){if(F(c),!(e instanceof _))throw e;ir(1,0)}}function Ur(e,t,n,r,i,a,o,s,c){var l=I();try{return L(e)(t,n,r,i,a,o,s,c)}catch(e){if(F(l),!(e instanceof _))throw e;ir(1,0)}}function Wr(e,t,n){var r=I();try{L(e)(t,n)}catch(e){if(F(r),!(e instanceof _))throw e;ir(1,0)}}function Gr(e,t,n,r,i,a,o){var s=I();try{L(e)(t,n,r,i,a,o)}catch(e){if(F(s),!(e instanceof _))throw e;ir(1,0)}}function Kr(e,t,n,r,i){var a=I();try{L(e)(t,n,r,i)}catch(e){if(F(a),!(e instanceof _))throw e;ir(1,0)}}function qr(e,t,n,r,i){var a=I();try{return fr(e,t,n,r,i)}catch(e){if(F(a),!(e instanceof _))throw e;ir(1,0)}}async function Jr(){var e;x();var t=i.setStatus;t&&(t(`Running...`),await new Promise(e=>setTimeout(e,1)),setTimeout(t,1,``)),!h&&(S(),(e=i.onRuntimeInitialized)==null||e.call(i),C())}var Yr=await j();return await Jr(),i}function TH(e){return xH(wH,e)}async function EH(e,t){return SH(wH,e,t)}var DH=[[`aztec`,`Aztec`],[`aztec_code`,`AztecCode`],[`aztec_rune`,`AztecRune`],[`code_128`,`Code128`],[`code_39`,`Code39`],[`code_39_standard`,`Code39Std`],[`code_39_extended`,`Code39Ext`],[`code_32`,`Code32`],[`pzn`,`PZN`],[`code_93`,`Code93`],[`codabar`,`Codabar`],[`databar`,`DataBar`],[`databar_omni`,`DataBarOmni`],[`databar_stacked`,`DataBarStk`],[`databar_stacked_omni`,`DataBarStkOmni`],[`databar_expanded`,`DataBarExp`],[`databar_expanded_stacked`,`DataBarExpStk`],[`databar_limited`,`DataBarLtd`],[`data_matrix`,`DataMatrix`],[`dx_film_edge`,`DXFilmEdge`],[`ean_13`,`EAN13`],[`ean_upc`,`EANUPC`],[`isbn`,`ISBN`],[`ean_8`,`EAN8`],[`itf`,`ITF`],[`itf_14`,`ITF14`],[`maxi_code`,`MaxiCode`],[`micro_qr_code`,`MicroQRCode`],[`pdf417`,`PDF417`],[`compact_pdf417`,`CompactPDF417`],[`micro_pdf417`,`MicroPDF417`],[`qr_code`,`QRCode`],[`qr_code_model_1`,`QRCodeModel1`],[`qr_code_model_2`,`QRCodeModel2`],[`rm_qr_code`,`RMQRCode`],[`upc_a`,`UPCA`],[`upc_e`,`UPCE`],[`telepen`,`Telepen`],[`telepen_alpha`,`TelepenAlpha`],[`telepen_numeric`,`TelepenNumeric`],[`other_barcode`,`OtherBarcode`],[`linear_codes`,`AllLinear`],[`matrix_codes`,`AllMatrix`],[`gs1_codes`,`AllGS1`],[`retail_codes`,`AllRetail`],[`industrial_codes`,`AllIndustrial`],[`any`,`All`]],OH=[...DH,[`unknown`]].map(e=>e[0]),kH=new Map(DH);function AH(e){for(let[t,n]of kH)if(e===n)return t;return`unknown`}function jH(e){if(MH(e))return{width:e.naturalWidth,height:e.naturalHeight};if(NH(e))return{width:e.width.baseVal.value,height:e.height.baseVal.value};if(PH(e))return{width:e.videoWidth,height:e.videoHeight};if(IH(e))return{width:e.width,height:e.height};if(RH(e))return{width:e.displayWidth,height:e.displayHeight};if(FH(e)||LH(e))return{width:e.width,height:e.height};throw TypeError(`The provided value is not of type '(Blob or HTMLCanvasElement or HTMLImageElement or HTMLVideoElement or ImageBitmap or ImageData or OffscreenCanvas or SVGImageElement or VideoFrame)'.`)}function MH(e){try{var t;return e instanceof(e==null||(t=e.ownerDocument)==null||(t=t.defaultView)==null?void 0:t.HTMLImageElement)}catch{return!1}}function NH(e){try{var t;return e instanceof(e==null||(t=e.ownerDocument)==null||(t=t.defaultView)==null?void 0:t.SVGImageElement)}catch{return!1}}function PH(e){try{var t;return e instanceof(e==null||(t=e.ownerDocument)==null||(t=t.defaultView)==null?void 0:t.HTMLVideoElement)}catch{return!1}}function FH(e){try{var t;return e instanceof(e==null||(t=e.ownerDocument)==null||(t=t.defaultView)==null?void 0:t.HTMLCanvasElement)}catch{return!1}}function IH(e){try{return e instanceof ImageBitmap||Object.prototype.toString.call(e)===`[object ImageBitmap]`}catch{return!1}}function LH(e){try{return e instanceof OffscreenCanvas||Object.prototype.toString.call(e)===`[object OffscreenCanvas]`}catch{return!1}}function RH(e){try{return e instanceof VideoFrame||Object.prototype.toString.call(e)===`[object VideoFrame]`}catch{return!1}}function zH(e){try{return e instanceof Blob||Object.prototype.toString.call(e)===`[object Blob]`}catch{return!1}}function BH(e){try{return e instanceof ImageData||Object.prototype.toString.call(e)===`[object ImageData]`}catch{return!1}}function VH(e,t){try{let n=new OffscreenCanvas(e,t);if(n.getContext(`2d`)instanceof OffscreenCanvasRenderingContext2D)return n;throw void 0}catch{let n=document.createElement(`canvas`);return n.width=e,n.height=t,n}}async function HH(e){if(MH(e)&&!await KH(e))throw new DOMException(`Failed to load or decode HTMLImageElement.`,`InvalidStateError`);if(NH(e)&&!await qH(e))throw new DOMException(`Failed to load or decode SVGImageElement.`,`InvalidStateError`);if(RH(e)&&JH(e))throw new DOMException(`VideoFrame is closed.`,`InvalidStateError`);if(PH(e)&&(e.readyState===0||e.readyState===1))throw new DOMException(`Invalid element or state.`,`InvalidStateError`);if(IH(e)&&XH(e))throw new DOMException(`The image source is detached.`,`InvalidStateError`);let{width:t,height:n}=jH(e);if(t===0||n===0)return null;let r=VH(t,n).getContext(`2d`);r.drawImage(e,0,0);try{return r.getImageData(0,0,t,n)}catch{throw new DOMException(`Source would taint origin.`,`SecurityError`)}}async function UH(e){let t;try{t=await createImageBitmap(e)}catch{try{if(globalThis.Image){t=new Image;let n=``;try{n=URL.createObjectURL(e),t.src=n,await t.decode()}finally{URL.revokeObjectURL(n)}}else return e}catch{throw new DOMException(`Failed to load or decode Blob.`,`InvalidStateError`)}}try{return await HH(t)}finally{IH(t)&&t.close()}}function WH(e){let{width:t,height:n}=e;if(t===0||n===0)return null;let r=e.getContext(`2d`);try{return r.getImageData(0,0,t,n)}catch{throw new DOMException(`Source would taint origin.`,`SecurityError`)}}async function GH(e){if(zH(e))return await UH(e);if(BH(e)){if(YH(e))throw new DOMException(`The image data has been detached.`,`InvalidStateError`);return e}return FH(e)||LH(e)?WH(e):await HH(e)}async function KH(e){try{return await e.decode(),!0}catch{return!1}}async function qH(e){try{return await e.decode?.call(e),!0}catch{return!1}}function JH(e){return e.format===null}function YH(e){return e.data.buffer.byteLength===0}function XH(e){return e.width===0&&e.height===0}function ZH(e,t){return QH(e)?new DOMException(`${t}: ${e.message}`,e.name):$H(e)?new e.constructor(`${t}: ${e.message}`):Error(`${t}: ${e}`)}function QH(e){return e instanceof DOMException||Object.prototype.toString.call(e)===`[object DOMException]`}function $H(e){return e instanceof Error||Object.prototype.toString.call(e)===`[object Error]`}function eU(e,t){if(t.has(e))throw TypeError(`Cannot initialize the same private elements twice on an object`)}function tU(e,t,n){eU(e,t),t.set(e,n)}function nU(e,t,n){if(typeof e==`function`?e===t:e.has(t))return arguments.length<3?t:n;throw TypeError(`Private element is not present on this object`)}function rU(e,t,n){return e.set(nU(e,t),n),n}function iU(e,t){return e.get(nU(e,t))}var aU=new WeakMap,oU=class{constructor(e={}){tU(this,aU,void 0);try{var t;let n=e==null||(t=e.formats)==null?void 0:t.filter(e=>e!==`unknown`);if(n?.length===0)throw TypeError(`Hint option provided, but is empty.`);for(let e of n??[])if(!kH.has(e))throw TypeError(`Failed to read the 'formats' property from 'BarcodeDetectorOptions': The provided value '${e}' is not a valid enum value of type BarcodeFormat.`);rU(aU,this,n??[]),TH({fireImmediately:!0}).catch(()=>{})}catch(e){throw ZH(e,`Failed to construct 'BarcodeDetector'`)}}static async getSupportedFormats(){return OH.filter(e=>e!==`unknown`)}async detect(e){try{let t=await GH(e);if(t===null)return[];let n,r={textMode:`Plain`,formats:iU(aU,this).map(e=>kH.get(e))};try{n=await EH(t,r)}catch(e){throw console.error(e),new DOMException(`Barcode detection service unavailable.`,`NotSupportedError`)}return n.map(e=>{let{topLeft:{x:t,y:n},topRight:{x:r,y:i},bottomLeft:{x:a,y:o},bottomRight:{x:s,y:c}}=e.position,l=Math.min(t,r,a,s),u=Math.min(n,i,o,c),d=Math.max(t,r,a,s),f=Math.max(n,i,o,c);return{boundingBox:new DOMRectReadOnly(l,u,d-l,f-u),rawValue:e.text,format:AH(e.format),cornerPoints:[{x:t,y:n},{x:r,y:i},{x:s,y:c},{x:a,y:o}]}})}catch(e){throw ZH(e,`Failed to execute 'detect' on 'BarcodeDetector'`)}}},sU=!0,cU=!0;function lU(e,t,n){let r=e.match(t);return r&&r.length>=n&&parseFloat(r[n],10)}function uU(e,t,n){if(!e.RTCPeerConnection)return;if(!Object.getOwnPropertyDescriptor(EventTarget.prototype,`addEventListener`).writable){pU(`Unable to polyfill events`);return}let r=e.RTCPeerConnection.prototype,i=r.addEventListener;r.addEventListener=function(e,r){if(e!==t)return i.apply(this,arguments);let a=e=>{let t=n(e);t&&(r.handleEvent?r.handleEvent(t):r(t))};return this._eventMap=this._eventMap||{},this._eventMap[t]||(this._eventMap[t]=new Map),this._eventMap[t].set(r,a),i.apply(this,[e,a])};let a=r.removeEventListener;r.removeEventListener=function(e,n){if(e!==t||!this._eventMap||!this._eventMap[t]||!this._eventMap[t].has(n))return a.apply(this,arguments);let r=this._eventMap[t].get(n);return this._eventMap[t].delete(n),this._eventMap[t].size===0&&delete this._eventMap[t],Object.keys(this._eventMap).length===0&&delete this._eventMap,a.apply(this,[e,r])},Object.defineProperty(r,`on`+t,{get(){return this[`_on`+t]},set(e){this[`_on`+t]&&(this.removeEventListener(t,this[`_on`+t]),delete this[`_on`+t]),e&&this.addEventListener(t,this[`_on`+t]=e)},enumerable:!0,configurable:!0})}function dU(e){return typeof e==`boolean`?(sU=e,e?`adapter.js logging disabled`:`adapter.js logging enabled`):Error(`Argument type: `+typeof e+`. Please use a boolean.`)}function fU(e){return typeof e==`boolean`?(cU=!e,`adapter.js deprecation warnings `+(e?`disabled`:`enabled`)):Error(`Argument type: `+typeof e+`. Please use a boolean.`)}function pU(){if(typeof window==`object`){if(sU)return;typeof console<`u`&&typeof console.log==`function`&&console.log.apply(console,arguments)}}function mU(e,t){cU&&console.warn(e+` is deprecated, please use `+t+` instead.`)}function hU(e){let t={browser:null,version:null};if(e===void 0||!e.navigator||!e.navigator.userAgent)return t.browser=`Not a browser.`,t;let{navigator:n}=e;if(n.userAgentData&&n.userAgentData.brands){let e=n.userAgentData.brands.find(e=>e.brand===`Chromium`);if(e){let t=parseInt(e.version,10);if(t>=90)return{browser:`chrome`,version:t}}}if(n.mozGetUserMedia)t.browser=`firefox`,t.version=parseInt(lU(n.userAgent,/Firefox\/(\d+)\./,1));else if(n.webkitGetUserMedia||e.isSecureContext===!1&&e.webkitRTCPeerConnection)t.browser=`chrome`,t.version=parseInt(lU(n.userAgent,/Chrom(e|ium)\/(\d+)\./,2))||null;else if(e.RTCPeerConnection&&n.userAgent.match(/AppleWebKit\/(\d+)\./))t.browser=`safari`,t.version=parseInt(lU(n.userAgent,/AppleWebKit\/(\d+)\./,1)),t.supportsUnifiedPlan=e.RTCRtpTransceiver&&`currentDirection`in e.RTCRtpTransceiver.prototype,t._safariVersion=lU(n.userAgent,/Version\/(\d+(\.?\d+))/,1);else return t.browser=`Not a supported browser.`,t;return t}function gU(e){return Object.prototype.toString.call(e)===`[object Object]`}function _U(e){return gU(e)?Object.keys(e).reduce(function(t,n){let r=gU(e[n]),i=r?_U(e[n]):e[n],a=r&&!Object.keys(i).length;return i===void 0||a?t:Object.assign(t,{[n]:i})},{}):e}function vU(e,t,n){t&&!n.has(t.id)&&(n.set(t.id,t),Object.keys(t).forEach(r=>{r.endsWith(`Id`)?vU(e,e.get(t[r]),n):r.endsWith(`Ids`)&&t[r].forEach(t=>{vU(e,e.get(t),n)})}))}function yU(e,t,n){let r=n?`outbound-rtp`:`inbound-rtp`,i=new Map;if(t===null)return i;let a=[];return e.forEach(e=>{e.type===`track`&&e.trackIdentifier===t.id&&a.push(e)}),a.forEach(t=>{e.forEach(n=>{n.type===r&&n.trackId===t.id&&vU(e,n,i)})}),i}var bU=pU;function xU(e,t){if(t.version>=64)return;let n=e&&e.navigator;if(!n.mediaDevices)return;let r=function(e){if(typeof e!=`object`||e.mandatory||e.optional)return e;let t={};return Object.keys(e).forEach(n=>{if(n===`require`||n===`advanced`||n===`mediaSource`)return;let r=typeof e[n]==`object`?e[n]:{ideal:e[n]};r.exact!==void 0&&typeof r.exact==`number`&&(r.min=r.max=r.exact);let i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):t===`deviceId`?`sourceId`:t};if(r.ideal!==void 0){t.optional=t.optional||[];let e={};typeof r.ideal==`number`?(e[i(`min`,n)]=r.ideal,t.optional.push(e),e={},e[i(`max`,n)]=r.ideal,t.optional.push(e)):(e[i(``,n)]=r.ideal,t.optional.push(e))}r.exact!==void 0&&typeof r.exact!=`number`?(t.mandatory=t.mandatory||{},t.mandatory[i(``,n)]=r.exact):[`min`,`max`].forEach(e=>{r[e]!==void 0&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,n)]=r[e])})}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},i=function(e,i){if(t.version>=61)return i(e);if(e=JSON.parse(JSON.stringify(e)),e&&typeof e.audio==`object`){let t=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])};e=JSON.parse(JSON.stringify(e)),t(e.audio,`autoGainControl`,`googAutoGainControl`),t(e.audio,`noiseSuppression`,`googNoiseSuppression`),e.audio=r(e.audio)}if(e&&typeof e.video==`object`){let a=e.video.facingMode;a&&=typeof a==`object`?a:{ideal:a};let o=t.version<66;if(a&&(a.exact===`user`||a.exact===`environment`||a.ideal===`user`||a.ideal===`environment`)&&!(n.mediaDevices.getSupportedConstraints&&n.mediaDevices.getSupportedConstraints().facingMode&&!o)){delete e.video.facingMode;let t;if(a.exact===`environment`||a.ideal===`environment`?t=[`back`,`rear`]:(a.exact===`user`||a.ideal===`user`)&&(t=[`front`]),t)return n.mediaDevices.enumerateDevices().then(n=>{n=n.filter(e=>e.kind===`videoinput`);let o=n.find(e=>t.some(t=>e.label.toLowerCase().includes(t)));return!o&&n.length&&t.includes(`back`)&&(o=n[n.length-1]),o&&(e.video.deviceId=a.exact?{exact:o.deviceId}:{ideal:o.deviceId}),e.video=r(e.video),bU(`chrome: `+JSON.stringify(e)),i(e)})}e.video=r(e.video)}return bU(`chrome: `+JSON.stringify(e)),i(e)},a=function(e){return t.version>=64?e:{name:{PermissionDeniedError:`NotAllowedError`,PermissionDismissedError:`NotAllowedError`,InvalidStateError:`NotAllowedError`,DevicesNotFoundError:`NotFoundError`,ConstraintNotSatisfiedError:`OverconstrainedError`,TrackStartError:`NotReadableError`,MediaDeviceFailedDueToShutdown:`NotAllowedError`,MediaDeviceKillSwitchOn:`NotAllowedError`,TabCaptureError:`AbortError`,ScreenCaptureError:`AbortError`,DeviceCaptureError:`AbortError`}[e.name]||e.name,message:e.message,constraint:e.constraint||e.constraintName,toString(){return this.name+(this.message&&`: `)+this.message}}};if(n.getUserMedia=function(e,t,r){i(e,e=>{n.webkitGetUserMedia(e,t,e=>{r&&r(a(e))})})}.bind(n),n.mediaDevices.getUserMedia){let e=n.mediaDevices.getUserMedia.bind(n.mediaDevices);n.mediaDevices.getUserMedia=function(t){return i(t,t=>e(t).then(e=>{if(t.audio&&!e.getAudioTracks().length||t.video&&!e.getVideoTracks().length)throw e.getTracks().forEach(e=>{e.stop()}),new DOMException(``,`NotFoundError`);return e},e=>Promise.reject(a(e))))}}}var SU=e({fixNegotiationNeeded:()=>AU,shimAddTrackRemoveTrack:()=>OU,shimAddTrackRemoveTrackWithNative:()=>DU,shimGetSendersWithDtmf:()=>TU,shimGetUserMedia:()=>xU,shimMediaStream:()=>CU,shimOnTrack:()=>wU,shimPeerConnection:()=>kU,shimSenderReceiverGetStats:()=>EU});function CU(e){e.MediaStream=e.MediaStream||e.webkitMediaStream}function wU(e,t){if(!(t.version>102)){if(typeof e==`object`&&e.RTCPeerConnection&&!(`ontrack`in e.RTCPeerConnection.prototype)){Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get(){return this._ontrack},set(e){this._ontrack&&this.removeEventListener(`track`,this._ontrack),this.addEventListener(`track`,this._ontrack=e)},enumerable:!0,configurable:!0});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){return this._ontrackpoly||(this._ontrackpoly=t=>{t.stream.addEventListener(`addtrack`,n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.track.id):{track:n.track};let i=new Event(`track`);i.track=n.track,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)}),t.stream.getTracks().forEach(n=>{let r;r=e.RTCPeerConnection.prototype.getReceivers?this.getReceivers().find(e=>e.track&&e.track.id===n.id):{track:n};let i=new Event(`track`);i.track=n,i.receiver=r,i.transceiver={receiver:r},i.streams=[t.stream],this.dispatchEvent(i)})},this.addEventListener(`addstream`,this._ontrackpoly)),t.apply(this,arguments)}}else uU(e,`track`,e=>(e.transceiver||Object.defineProperty(e,"transceiver",{value:{receiver:e.receiver}}),e))}}function TU(e){if(typeof e==`object`&&e.RTCPeerConnection&&!(`getSenders`in e.RTCPeerConnection.prototype)&&`createDTMFSender`in e.RTCPeerConnection.prototype){let t=function(e,t){return{track:t,get dtmf(){return this._dtmf===void 0&&(this._dtmf=t.kind===`audio`?e.createDTMFSender(t):null),this._dtmf},_pc:e}};if(!e.RTCPeerConnection.prototype.getSenders){e.RTCPeerConnection.prototype.getSenders=function(){return this._senders=this._senders||[],this._senders.slice()};let n=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,r){let i=n.apply(this,arguments);return i||(i=t(this,e),this._senders.push(i)),i};let r=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){r.apply(this,arguments);let t=this._senders.indexOf(e);t!==-1&&this._senders.splice(t,1)}}let n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._senders=this._senders||[],n.apply(this,[e]),e.getTracks().forEach(e=>{this._senders.push(t(this,e))})};let r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._senders=this._senders||[],r.apply(this,[e]),e.getTracks().forEach(e=>{let t=this._senders.find(t=>t.track===e);t&&this._senders.splice(this._senders.indexOf(t),1)})}}else if(typeof e==`object`&&e.RTCPeerConnection&&`getSenders`in e.RTCPeerConnection.prototype&&`createDTMFSender`in e.RTCPeerConnection.prototype&&e.RTCRtpSender&&!(`dtmf`in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e},Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get(){return this._dtmf===void 0&&(this._dtmf=this.track.kind===`audio`?this._pc.createDTMFSender(this.track):null),this._dtmf}})}}function EU(e,t){if(t.version>=67||!(typeof e==`object`&&e.RTCPeerConnection&&e.RTCRtpSender&&e.RTCRtpReceiver))return;if(!(`getStats`in e.RTCRtpSender.prototype)){let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});let n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>yU(t,e.track,!0))}}if(!(`getStats`in e.RTCRtpReceiver.prototype)){let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),uU(e,`track`,e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){let e=this;return this._pc.getStats().then(t=>yU(t,e.track,!1))}}if(!(`getStats`in e.RTCRtpSender.prototype&&`getStats`in e.RTCRtpReceiver.prototype))return;let n=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){if(arguments.length>0&&arguments[0]instanceof e.MediaStreamTrack){let e=arguments[0],t,n,r;return this.getSenders().forEach(n=>{n.track===e&&(t?r=!0:t=n)}),this.getReceivers().forEach(t=>(t.track===e&&(n?r=!0:n=t),t.track===e)),r||t&&n?Promise.reject(new DOMException(`There are more than one sender or receiver for the track.`,`InvalidAccessError`)):t?t.getStats():n?n.getStats():Promise.reject(new DOMException(`There is no sender or receiver for the track.`,`InvalidAccessError`))}return n.apply(this,arguments)}}function DU(e){e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},Object.keys(this._shimmedLocalStreams).map(e=>this._shimmedLocalStreams[e][0])};let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addTrack=function(e,n){if(!n)return t.apply(this,arguments);this._shimmedLocalStreams=this._shimmedLocalStreams||{};let r=t.apply(this,arguments);return this._shimmedLocalStreams[n.id]?this._shimmedLocalStreams[n.id].indexOf(r)===-1&&this._shimmedLocalStreams[n.id].push(r):this._shimmedLocalStreams[n.id]=[n,r],r};let n=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(e){this._shimmedLocalStreams=this._shimmedLocalStreams||{},e.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException(`Track already exists.`,`InvalidAccessError`)});let t=this.getSenders();n.apply(this,arguments);let r=this.getSenders().filter(e=>t.indexOf(e)===-1);this._shimmedLocalStreams[e.id]=[e].concat(r)};let r=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},delete this._shimmedLocalStreams[e.id],r.apply(this,arguments)};let i=e.RTCPeerConnection.prototype.removeTrack;e.RTCPeerConnection.prototype.removeTrack=function(e){return this._shimmedLocalStreams=this._shimmedLocalStreams||{},e&&Object.keys(this._shimmedLocalStreams).forEach(t=>{let n=this._shimmedLocalStreams[t].indexOf(e);n!==-1&&this._shimmedLocalStreams[t].splice(n,1),this._shimmedLocalStreams[t].length===1&&delete this._shimmedLocalStreams[t]}),i.apply(this,arguments)}}function OU(e,t){if(!e.RTCPeerConnection)return;if(e.RTCPeerConnection.prototype.addTrack&&t.version>=65)return DU(e);let n=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){let e=n.apply(this);return this._reverseStreams=this._reverseStreams||{},e.map(e=>this._reverseStreams[e.id])};let r=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){if(this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},t.getTracks().forEach(e=>{if(this.getSenders().find(t=>t.track===e))throw new DOMException(`Track already exists.`,`InvalidAccessError`)}),!this._reverseStreams[t.id]){let n=new e.MediaStream(t.getTracks());this._streams[t.id]=n,this._reverseStreams[n.id]=t,t=n}r.apply(this,[t])};let i=e.RTCPeerConnection.prototype.removeStream;e.RTCPeerConnection.prototype.removeStream=function(e){this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{},i.apply(this,[this._streams[e.id]||e]),delete this._reverseStreams[this._streams[e.id]?this._streams[e.id].id:e.id],delete this._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,n){if(this.signalingState===`closed`)throw new DOMException(`The RTCPeerConnection's signalingState is 'closed'.`,`InvalidStateError`);let r=[].slice.call(arguments,1);if(r.length!==1||!r[0].getTracks().find(e=>e===t))throw new DOMException(`The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.`,`NotSupportedError`);if(this.getSenders().find(e=>e.track===t))throw new DOMException(`Track already exists.`,`InvalidAccessError`);this._streams=this._streams||{},this._reverseStreams=this._reverseStreams||{};let i=this._streams[n.id];if(i)i.addTrack(t),Promise.resolve().then(()=>{this.dispatchEvent(new Event(`negotiationneeded`))});else{let r=new e.MediaStream([t]);this._streams[n.id]=r,this._reverseStreams[r.id]=n,this.addStream(r)}return this.getSenders().find(e=>e.track===t)};function a(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{let r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(i.id,`g`),r.id)}),new RTCSessionDescription({type:t.type,sdp:n})}function o(e,t){let n=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(t=>{let r=e._reverseStreams[t],i=e._streams[r.id];n=n.replace(new RegExp(r.id,`g`),i.id)}),new RTCSessionDescription({type:t.type,sdp:n})}[`createOffer`,`createAnswer`].forEach(function(t){let n=e.RTCPeerConnection.prototype[t],r={[t](){let e=arguments;return arguments.length&&typeof arguments[0]==`function`?n.apply(this,[t=>{let n=a(this,t);e[0].apply(null,[n])},t=>{e[1]&&e[1].apply(null,t)},arguments[2]]):n.apply(this,arguments).then(e=>a(this,e))}};e.RTCPeerConnection.prototype[t]=r[t]});let s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return!arguments.length||!arguments[0].type||(arguments[0]=o(this,arguments[0])),s.apply(this,arguments)};let c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,`localDescription`);Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get(){let e=c.get.apply(this);return e.type===``?e:a(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){if(this.signalingState===`closed`)throw new DOMException(`The RTCPeerConnection's signalingState is 'closed'.`,`InvalidStateError`);if(!e._pc)throw new DOMException(`Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.`,`TypeError`);if(e._pc!==this)throw new DOMException(`Sender was not created by this connection.`,`InvalidAccessError`);this._streams=this._streams||{};let t;Object.keys(this._streams).forEach(n=>{this._streams[n].getTracks().find(t=>e.track===t)&&(t=this._streams[n])}),t&&(t.getTracks().length===1?this.removeStream(this._reverseStreams[t.id]):t.removeTrack(e.track),this.dispatchEvent(new Event(`negotiationneeded`)))}}function kU(e,t){!e.RTCPeerConnection&&e.webkitRTCPeerConnection&&(e.RTCPeerConnection=e.webkitRTCPeerConnection),e.RTCPeerConnection&&t.version<53&&[`setLocalDescription`,`setRemoteDescription`,`addIceCandidate`].forEach(function(t){let n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new(t===`addIceCandidate`?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]})}function AU(e,t){t.version>102||uU(e,`negotiationneeded`,e=>{let n=e.target;if(!((t.version<72||n.getConfiguration&&n.getConfiguration().sdpSemantics===`plan-b`)&&n.signalingState!==`stable`))return e})}function jU(e,t){let n=e&&e.navigator;if(!n.mediaDevices)return;let r=e&&e.MediaStreamTrack;if(n.getUserMedia=function(e,t,r){mU(`navigator.getUserMedia`,`navigator.mediaDevices.getUserMedia`),n.mediaDevices.getUserMedia(e).then(t,r)},!(t.version>55&&`autoGainControl`in n.mediaDevices.getSupportedConstraints())){let e=function(e,t,n){t in e&&!(n in e)&&(e[n]=e[t],delete e[t])},t=n.mediaDevices.getUserMedia.bind(n.mediaDevices);if(n.mediaDevices.getUserMedia=function(n){return typeof n==`object`&&typeof n.audio==`object`&&(n=JSON.parse(JSON.stringify(n)),e(n.audio,`autoGainControl`,`mozAutoGainControl`),e(n.audio,`noiseSuppression`,`mozNoiseSuppression`)),t(n)},r&&r.prototype.getSettings){let t=r.prototype.getSettings;r.prototype.getSettings=function(){let n=t.apply(this,arguments);return e(n,`mozAutoGainControl`,`autoGainControl`),e(n,`mozNoiseSuppression`,`noiseSuppression`),n}}if(r&&r.prototype.applyConstraints){let t=r.prototype.applyConstraints;r.prototype.applyConstraints=function(n){return this.kind===`audio`&&typeof n==`object`&&(n=JSON.parse(JSON.stringify(n)),e(n,`autoGainControl`,`mozAutoGainControl`),e(n,`noiseSuppression`,`mozNoiseSuppression`)),t.apply(this,[n])}}}}function MU(e,t){e.navigator.mediaDevices&&(e.navigator.mediaDevices&&`getDisplayMedia`in e.navigator.mediaDevices||(e.navigator.mediaDevices.getDisplayMedia=function(n){if(!(n&&n.video)){let e=new DOMException(`getDisplayMedia without video constraints is undefined`);return e.name=`NotFoundError`,e.code=8,Promise.reject(e)}return n.video===!0?n.video={mediaSource:t}:n.video.mediaSource=t,e.navigator.mediaDevices.getUserMedia(n)}))}var NU=e({shimAddTransceiver:()=>VU,shimCreateAnswer:()=>WU,shimCreateOffer:()=>UU,shimGetDisplayMedia:()=>MU,shimGetParameters:()=>HU,shimGetStats:()=>IU,shimGetUserMedia:()=>jU,shimOnTrack:()=>PU,shimPeerConnection:()=>FU,shimRTCDataChannel:()=>BU,shimReceiverGetStats:()=>RU,shimRemoveStream:()=>zU,shimSenderGetStats:()=>LU});function PU(e){typeof e==`object`&&e.RTCTrackEvent&&`receiver`in e.RTCTrackEvent.prototype&&!(`transceiver`in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function FU(e,t){typeof e==`object`&&(e.RTCPeerConnection||e.mozRTCPeerConnection)&&(!e.RTCPeerConnection&&e.mozRTCPeerConnection&&(e.RTCPeerConnection=e.mozRTCPeerConnection),t.version<53&&[`setLocalDescription`,`setRemoteDescription`,`addIceCandidate`].forEach(function(t){let n=e.RTCPeerConnection.prototype[t],r={[t](){return arguments[0]=new(t===`addIceCandidate`?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),n.apply(this,arguments)}};e.RTCPeerConnection.prototype[t]=r[t]}))}function IU(e,t){if(typeof e!=`object`||!(e.RTCPeerConnection||e.mozRTCPeerConnection)||t.version>=151)return;let n={inboundrtp:`inbound-rtp`,outboundrtp:`outbound-rtp`,candidatepair:`candidate-pair`,localcandidate:`local-candidate`,remotecandidate:`remote-candidate`},r=e.RTCPeerConnection.prototype.getStats;e.RTCPeerConnection.prototype.getStats=function(){let[e,i,a]=arguments;return this.signalingState===`closed`?Promise.resolve(new Map):r.apply(this,[e||null]).then(e=>{if(t.version<53&&!i)try{e.forEach(e=>{e.type=n[e.type]||e.type})}catch(t){if(t.name!==`TypeError`)throw t;e.forEach((t,r)=>{e.set(r,Object.assign({},t,{type:n[t.type]||t.type}))})}return e}).then(i,a)}}function LU(e){if(!(typeof e==`object`&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&`getStats`in e.RTCRtpSender.prototype)return;let t=e.RTCPeerConnection.prototype.getSenders;t&&(e.RTCPeerConnection.prototype.getSenders=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e});let n=e.RTCPeerConnection.prototype.addTrack;n&&(e.RTCPeerConnection.prototype.addTrack=function(){let e=n.apply(this,arguments);return e._pc=this,e}),e.RTCRtpSender.prototype.getStats=function(){return this.track?this._pc.getStats(this.track):Promise.resolve(new Map)}}function RU(e){if(!(typeof e==`object`&&e.RTCPeerConnection&&e.RTCRtpSender)||e.RTCRtpSender&&`getStats`in e.RTCRtpReceiver.prototype)return;let t=e.RTCPeerConnection.prototype.getReceivers;t&&(e.RTCPeerConnection.prototype.getReceivers=function(){let e=t.apply(this,[]);return e.forEach(e=>e._pc=this),e}),uU(e,`track`,e=>(e.receiver._pc=e.srcElement,e)),e.RTCRtpReceiver.prototype.getStats=function(){return this._pc.getStats(this.track)}}function zU(e){!e.RTCPeerConnection||`removeStream`in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){mU(`removeStream`,`removeTrack`),this.getSenders().forEach(t=>{t.track&&e.getTracks().includes(t.track)&&this.removeTrack(t)})})}function BU(e){e.DataChannel&&!e.RTCDataChannel&&(e.RTCDataChannel=e.DataChannel)}function VU(e,t){if(!(typeof e==`object`&&e.RTCPeerConnection)||t.version>=110)return;let n=e.RTCPeerConnection.prototype.addTransceiver;n&&(e.RTCPeerConnection.prototype.addTransceiver=function(){this.setParametersPromises=[];let e=arguments[1]&&arguments[1].sendEncodings;e===void 0&&(e=[]),e=[...e];let t=e.length>0;t&&e.forEach(e=>{if(`rid`in e&&!/^[a-z0-9]{0,16}$/i.test(e.rid))throw TypeError(`Invalid RID value provided.`);if(`scaleResolutionDownBy`in e&&!(parseFloat(e.scaleResolutionDownBy)>=1))throw RangeError(`scale_resolution_down_by must be >= 1.0`);if(`maxFramerate`in e&&!(parseFloat(e.maxFramerate)>=0))throw RangeError(`max_framerate must be >= 0.0`)});let r=n.apply(this,arguments);if(t){let{sender:t}=r,n=t.getParameters();(!(`encodings`in n)||n.encodings.length===1&&Object.keys(n.encodings[0]).length===0)&&(n.encodings=e,t.sendEncodings=e,this.setParametersPromises.push(t.setParameters(n).then(()=>{delete t.sendEncodings}).catch(()=>{delete t.sendEncodings})))}return r})}function HU(e,t){if(!(typeof e==`object`&&e.RTCRtpSender)||t.version>=110)return;let n=e.RTCRtpSender.prototype.getParameters;n&&(e.RTCRtpSender.prototype.getParameters=function(){let e=n.apply(this,arguments);return`encodings`in e||(e.encodings=[].concat(this.sendEncodings||[{}])),e})}function UU(e,t){if(!(typeof e==`object`&&e.RTCPeerConnection)||t.version>=110)return;let n=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}function WU(e,t){if(!(typeof e==`object`&&e.RTCPeerConnection)||t.version>=110)return;let n=e.RTCPeerConnection.prototype.createAnswer;e.RTCPeerConnection.prototype.createAnswer=function(){return this.setParametersPromises&&this.setParametersPromises.length?Promise.all(this.setParametersPromises).then(()=>n.apply(this,arguments)).finally(()=>{this.setParametersPromises=[]}):n.apply(this,arguments)}}var GU=e({shimAudioContext:()=>eW,shimCallbacksAPI:()=>JU,shimConstraints:()=>XU,shimCreateOfferLegacy:()=>$U,shimGetUserMedia:()=>YU,shimLocalStreamsAPI:()=>KU,shimRTCIceServerUrls:()=>ZU,shimRemoteStreamsAPI:()=>qU,shimTrackEventTransceiver:()=>QU});function KU(e){if(typeof e==`object`&&e.RTCPeerConnection){if(`getLocalStreams`in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||=[],this._localStreams}),!(`addStream`in e.RTCPeerConnection.prototype)){let t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||=[],this._localStreams.includes(e)||this._localStreams.push(e),e.getAudioTracks().forEach(n=>t.call(this,n,e)),e.getVideoTracks().forEach(n=>t.call(this,n,e))},e.RTCPeerConnection.prototype.addTrack=function(e,...n){return n&&n.forEach(e=>{this._localStreams?this._localStreams.includes(e)||this._localStreams.push(e):this._localStreams=[e]}),t.apply(this,arguments)}}`removeStream`in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||=[];let t=this._localStreams.indexOf(e);if(t===-1)return;this._localStreams.splice(t,1);let n=e.getTracks();this.getSenders().forEach(e=>{n.includes(e.track)&&this.removeTrack(e)})})}}function qU(e){if(typeof e==`object`&&e.RTCPeerConnection&&(`getRemoteStreams`in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),!(`onaddstream`in e.RTCPeerConnection.prototype))){Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get(){return this._onaddstream},set(e){this._onaddstream&&(this.removeEventListener(`addstream`,this._onaddstream),this.removeEventListener(`track`,this._onaddstreampoly)),this.addEventListener(`addstream`,this._onaddstream=e),this.addEventListener(`track`,this._onaddstreampoly=e=>{e.streams.forEach(e=>{if(this._remoteStreams||=[],this._remoteStreams.includes(e))return;this._remoteStreams.push(e);let t=new Event(`addstream`);t.stream=e,this.dispatchEvent(t)})})}});let t=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){let e=this;return this._onaddstreampoly||this.addEventListener(`track`,this._onaddstreampoly=function(t){t.streams.forEach(t=>{if(e._remoteStreams||=[],e._remoteStreams.indexOf(t)>=0)return;e._remoteStreams.push(t);let n=new Event(`addstream`);n.stream=t,e.dispatchEvent(n)})}),t.apply(e,arguments)}}}function JU(e){if(typeof e!=`object`||!e.RTCPeerConnection)return;let t=e.RTCPeerConnection.prototype,n=t.createOffer,r=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(e,t){let r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){let n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i};let s=function(e,t,n){let r=i.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r};t.setLocalDescription=s,s=function(e,t,n){let r=a.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.setRemoteDescription=s,s=function(e,t,n){let r=o.apply(this,[e]);return n?(r.then(t,n),Promise.resolve()):r},t.addIceCandidate=s}function YU(e){let t=e&&e.navigator;if(t.mediaDevices&&t.mediaDevices.getUserMedia){let e=t.mediaDevices,n=e.getUserMedia.bind(e);t.mediaDevices.getUserMedia=e=>n(XU(e))}!t.getUserMedia&&t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,n,r){t.mediaDevices.getUserMedia(e).then(n,r)}.bind(t))}function XU(e){return e&&e.video!==void 0?Object.assign({},e,{video:_U(e.video)}):e}function ZU(e){if(!e.RTCPeerConnection)return;let t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,n){if(e&&e.iceServers){let t=[];for(let n=0;n<e.iceServers.length;n++){let r=e.iceServers[n];r.urls===void 0&&r.url?(mU(`RTCIceServer.url`,`RTCIceServer.urls`),r=JSON.parse(JSON.stringify(r)),r.urls=r.url,delete r.url,t.push(r)):t.push(e.iceServers[n])}e.iceServers=t}return new t(e,n)},e.RTCPeerConnection.prototype=t.prototype,`generateCertificate`in t&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get(){return t.generateCertificate}})}function QU(e){typeof e==`object`&&e.RTCTrackEvent&&`receiver`in e.RTCTrackEvent.prototype&&!(`transceiver`in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get(){return{receiver:this.receiver}}})}function $U(e){let t=e.RTCPeerConnection.prototype.createOffer;e.RTCPeerConnection.prototype.createOffer=function(e){if(e){e.offerToReceiveAudio!==void 0&&(e.offerToReceiveAudio=!!e.offerToReceiveAudio);let t=this.getTransceivers().find(e=>e.receiver.track.kind===`audio`);e.offerToReceiveAudio===!1&&t?t.direction===`sendrecv`?t.setDirection?t.setDirection(`sendonly`):t.direction=`sendonly`:t.direction===`recvonly`&&(t.setDirection?t.setDirection(`inactive`):t.direction=`inactive`):e.offerToReceiveAudio===!0&&!t&&this.addTransceiver(`audio`,{direction:`recvonly`}),e.offerToReceiveVideo!==void 0&&(e.offerToReceiveVideo=!!e.offerToReceiveVideo);let n=this.getTransceivers().find(e=>e.receiver.track.kind===`video`);e.offerToReceiveVideo===!1&&n?n.direction===`sendrecv`?n.setDirection?n.setDirection(`sendonly`):n.direction=`sendonly`:n.direction===`recvonly`&&(n.setDirection?n.setDirection(`inactive`):n.direction=`inactive`):e.offerToReceiveVideo===!0&&!n&&this.addTransceiver(`video`,{direction:`recvonly`})}return t.apply(this,arguments)}}function eW(e){typeof e!=`object`||e.AudioContext||(e.AudioContext=e.webkitAudioContext)}var tW=n(((e,t)=>{var n={};n.generateIdentifier=function(){return Math.random().toString(36).substring(2,12)},n.localCName=n.generateIdentifier(),n.splitLines=function(e){return e.trim().split(`
|
|
227
|
+
`).map(e=>e.trim())},n.splitSections=function(e){return e.split(`
|
|
228
|
+
m=`).map((e,t)=>(t>0?`m=`+e:e).trim()+`\r
|
|
229
|
+
`)},n.getDescription=function(e){let t=n.splitSections(e);return t&&t[0]},n.getMediaSections=function(e){let t=n.splitSections(e);return t.shift(),t},n.matchPrefix=function(e,t){return n.splitLines(e).filter(e=>e.indexOf(t)===0)},n.parseCandidate=function(e){let t;t=e.indexOf(`a=candidate:`)===0?e.substring(12).split(` `):e.substring(10).split(` `);let n={foundation:t[0],component:{1:`rtp`,2:`rtcp`}[t[1]]||t[1],protocol:t[2].toLowerCase(),priority:parseInt(t[3],10),ip:t[4],address:t[4],port:parseInt(t[5],10),type:t[7]};for(let e=8;e<t.length;e+=2)switch(t[e]){case`raddr`:n.relatedAddress=t[e+1];break;case`rport`:n.relatedPort=parseInt(t[e+1],10);break;case`tcptype`:n.tcpType=t[e+1];break;case`ufrag`:n.ufrag=t[e+1],n.usernameFragment=t[e+1];break;default:n[t[e]]===void 0&&(n[t[e]]=t[e+1])}return n},n.writeCandidate=function(e){let t=[];t.push(e.foundation);let n=e.component;n===`rtp`?t.push(1):n===`rtcp`?t.push(2):t.push(n),t.push(e.protocol.toUpperCase()),t.push(e.priority),t.push(e.address||e.ip),t.push(e.port);let r=e.type;return t.push(`typ`),t.push(r),r!==`host`&&e.relatedAddress&&e.relatedPort!==void 0&&(t.push(`raddr`),t.push(e.relatedAddress),t.push(`rport`),t.push(e.relatedPort)),e.tcpType&&e.protocol.toLowerCase()===`tcp`&&(t.push(`tcptype`),t.push(e.tcpType)),(e.usernameFragment||e.ufrag)&&(t.push(`ufrag`),t.push(e.usernameFragment||e.ufrag)),`candidate:`+t.join(` `)},n.parseIceOptions=function(e){return e.substring(14).split(` `)},n.parseRtpMap=function(e){let t=e.substring(9).split(` `),n={payloadType:parseInt(t.shift(),10)};return t=t[0].split(`/`),n.name=t[0],n.clockRate=parseInt(t[1],10),n.channels=t.length===3?parseInt(t[2],10):1,n.numChannels=n.channels,n},n.writeRtpMap=function(e){let t=e.payloadType;e.preferredPayloadType!==void 0&&(t=e.preferredPayloadType);let n=e.channels||e.numChannels||1;return`a=rtpmap:`+t+` `+e.name+`/`+e.clockRate+(n===1?``:`/`+n)+`\r
|
|
230
|
+
`},n.parseExtmap=function(e){let t=e.substring(9).split(` `);return{id:parseInt(t[0],10),direction:t[0].indexOf(`/`)>0?t[0].split(`/`)[1]:`sendrecv`,uri:t[1],attributes:t.slice(2).join(` `)}},n.writeExtmap=function(e){return`a=extmap:`+(e.id||e.preferredId)+(e.direction&&e.direction!==`sendrecv`?`/`+e.direction:``)+` `+e.uri+(e.attributes?` `+e.attributes:``)+`\r
|
|
231
|
+
`},n.parseFmtp=function(e){let t={},n=e.substring(e.indexOf(` `)+1).split(`;`);for(let e=0;e<n.length;e++){let[r,...i]=n[e].trim().split(`=`);t[r.trim()]=i.length?i.join(`=`):void 0}return t},n.writeFmtp=function(e){let t=``,n=e.payloadType;if(e.preferredPayloadType!==void 0&&(n=e.preferredPayloadType),e.parameters&&Object.keys(e.parameters).length){let r=[];Object.keys(e.parameters).forEach(t=>{e.parameters[t]===void 0?r.push(t):r.push(t+`=`+e.parameters[t])}),t+=`a=fmtp:`+n+` `+r.join(`;`)+`\r
|
|
232
|
+
`}return t},n.parseRtcpFb=function(e){let t=e.substring(e.indexOf(` `)+1).split(` `);return{type:t.shift(),parameter:t.join(` `)}},n.writeRtcpFb=function(e){let t=``,n=e.payloadType;return e.preferredPayloadType!==void 0&&(n=e.preferredPayloadType),e.rtcpFeedback&&e.rtcpFeedback.length&&e.rtcpFeedback.forEach(e=>{t+=`a=rtcp-fb:`+n+` `+e.type+(e.parameter&&e.parameter.length?` `+e.parameter:``)+`\r
|
|
233
|
+
`}),t},n.parseSsrcMedia=function(e){let t=e.indexOf(` `),n={ssrc:parseInt(e.substring(7,t),10)},r=e.indexOf(`:`,t);return r>-1?(n.attribute=e.substring(t+1,r),n.value=e.substring(r+1)):n.attribute=e.substring(t+1),n},n.parseSsrcGroup=function(e){let t=e.substring(13).split(` `);return{semantics:t.shift(),ssrcs:t.map(e=>parseInt(e,10))}},n.getMid=function(e){let t=n.matchPrefix(e,`a=mid:`)[0];if(t)return t.substring(6)},n.parseFingerprint=function(e){let t=e.substring(14).split(` `);return{algorithm:t[0].toLowerCase(),value:t[1].toUpperCase()}},n.getDtlsParameters=function(e,t){return{role:`auto`,fingerprints:n.matchPrefix(e+t,`a=fingerprint:`).map(n.parseFingerprint)}},n.writeDtlsParameters=function(e,t){let n=`a=setup:`+t+`\r
|
|
234
|
+
`;return e.fingerprints.forEach(e=>{n+=`a=fingerprint:`+e.algorithm+` `+e.value+`\r
|
|
235
|
+
`}),n},n.parseCryptoLine=function(e){let t=e.substring(9).split(` `);return{tag:parseInt(t[0],10),cryptoSuite:t[1],keyParams:t[2],sessionParams:t.slice(3)}},n.writeCryptoLine=function(e){return`a=crypto:`+e.tag+` `+e.cryptoSuite+` `+(typeof e.keyParams==`object`?n.writeCryptoKeyParams(e.keyParams):e.keyParams)+(e.sessionParams?` `+e.sessionParams.join(` `):``)+`\r
|
|
236
|
+
`},n.parseCryptoKeyParams=function(e){if(e.indexOf(`inline:`)!==0)return null;let t=e.substring(7).split(`|`);return{keyMethod:`inline`,keySalt:t[0],lifeTime:t[1],mkiValue:t[2]?t[2].split(`:`)[0]:void 0,mkiLength:t[2]?t[2].split(`:`)[1]:void 0}},n.writeCryptoKeyParams=function(e){return e.keyMethod+`:`+e.keySalt+(e.lifeTime?`|`+e.lifeTime:``)+(e.mkiValue&&e.mkiLength?`|`+e.mkiValue+`:`+e.mkiLength:``)},n.getCryptoParameters=function(e,t){return n.matchPrefix(e+t,`a=crypto:`).map(n.parseCryptoLine)},n.getIceParameters=function(e,t){let r=n.matchPrefix(e+t,`a=ice-ufrag:`)[0],i=n.matchPrefix(e+t,`a=ice-pwd:`)[0];return r&&i?{usernameFragment:r.substring(12),password:i.substring(10)}:null},n.writeIceParameters=function(e){let t=`a=ice-ufrag:`+e.usernameFragment+`\r
|
|
237
|
+
a=ice-pwd:`+e.password+`\r
|
|
238
|
+
`;return e.iceLite&&(t+=`a=ice-lite\r
|
|
239
|
+
`),t},n.parseRtpParameters=function(e){let t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=n.splitLines(e)[0].split(` `);t.profile=r[2];for(let i=3;i<r.length;i++){let a=r[i],o=n.matchPrefix(e,`a=rtpmap:`+a+` `)[0];if(o){let r=n.parseRtpMap(o),i=n.matchPrefix(e,`a=fmtp:`+a+` `);switch(r.parameters=i.length?n.parseFmtp(i[0]):{},r.rtcpFeedback=n.matchPrefix(e,`a=rtcp-fb:`+a+` `).map(n.parseRtcpFb),t.codecs.push(r),r.name.toUpperCase()){case`RED`:case`ULPFEC`:t.fecMechanisms.push(r.name.toUpperCase())}}}n.matchPrefix(e,`a=extmap:`).forEach(e=>{t.headerExtensions.push(n.parseExtmap(e))});let i=n.matchPrefix(e,`a=rtcp-fb:* `).map(n.parseRtcpFb);return t.codecs.forEach(e=>{i.forEach(t=>{e.rtcpFeedback.find(e=>e.type===t.type&&e.parameter===t.parameter)||e.rtcpFeedback.push(t)})}),t},n.writeRtpDescription=function(e,t){let r=``;r+=`m=`+e+` `,r+=t.codecs.length>0?`9`:`0`,r+=` `+(t.profile||`UDP/TLS/RTP/SAVPF`)+` `,r+=t.codecs.map(e=>e.preferredPayloadType===void 0?e.payloadType:e.preferredPayloadType).join(` `)+`\r
|
|
240
|
+
`,r+=`c=IN IP4 0.0.0.0\r
|
|
241
|
+
`,r+=`a=rtcp:9 IN IP4 0.0.0.0\r
|
|
242
|
+
`,t.codecs.forEach(e=>{r+=n.writeRtpMap(e),r+=n.writeFmtp(e),r+=n.writeRtcpFb(e)});let i=0;return t.codecs.forEach(e=>{e.maxptime>i&&(i=e.maxptime)}),i>0&&(r+=`a=maxptime:`+i+`\r
|
|
243
|
+
`),t.headerExtensions&&t.headerExtensions.forEach(e=>{r+=n.writeExtmap(e)}),r},n.parseRtpEncodingParameters=function(e){let t=[],r=n.parseRtpParameters(e),i=r.fecMechanisms.indexOf(`RED`)!==-1,a=r.fecMechanisms.indexOf(`ULPFEC`)!==-1,o=n.matchPrefix(e,`a=ssrc:`).map(e=>n.parseSsrcMedia(e)).filter(e=>e.attribute===`cname`),s=o.length>0&&o[0].ssrc,c,l=n.matchPrefix(e,`a=ssrc-group:FID`).map(e=>e.substring(17).split(` `).map(e=>parseInt(e,10)));l.length>0&&l[0].length>1&&l[0][0]===s&&(c=l[0][1]),r.codecs.forEach(e=>{if(e.name.toUpperCase()===`RTX`&&e.parameters.apt){let n={ssrc:s,codecPayloadType:parseInt(e.parameters.apt,10)};s&&c&&(n.rtx={ssrc:c}),t.push(n),i&&(n=JSON.parse(JSON.stringify(n)),n.fec={ssrc:s,mechanism:a?`red+ulpfec`:`red`},t.push(n))}}),t.length===0&&s&&t.push({ssrc:s});let u=n.matchPrefix(e,`b=`);return u.length&&(u=u[0].indexOf(`b=TIAS:`)===0?parseInt(u[0].substring(7),10):u[0].indexOf(`b=AS:`)===0?parseInt(u[0].substring(5),10)*1e3*.95-16e3:void 0,t.forEach(e=>{e.maxBitrate=u})),t},n.parseRtcpParameters=function(e){let t={},r=n.matchPrefix(e,`a=ssrc:`).map(e=>n.parseSsrcMedia(e)).filter(e=>e.attribute===`cname`)[0];r&&(t.cname=r.value,t.ssrc=r.ssrc);let i=n.matchPrefix(e,`a=rtcp-rsize`);return t.reducedSize=i.length>0,t.compound=i.length===0,t.mux=n.matchPrefix(e,`a=rtcp-mux`).length>0,t},n.writeRtcpParameters=function(e){let t=``;return e.reducedSize&&(t+=`a=rtcp-rsize\r
|
|
244
|
+
`),e.mux&&(t+=`a=rtcp-mux\r
|
|
245
|
+
`),e.ssrc!==void 0&&e.cname&&(t+=`a=ssrc:`+e.ssrc+` cname:`+e.cname+`\r
|
|
246
|
+
`),t},n.parseMsid=function(e){let t,r=n.matchPrefix(e,`a=msid:`);if(r.length===1)return t=r[0].substring(7).split(` `),{stream:t[0],track:t[1]};let i=n.matchPrefix(e,`a=ssrc:`).map(e=>n.parseSsrcMedia(e)).filter(e=>e.attribute===`msid`);if(i.length>0)return t=i[0].value.split(` `),{stream:t[0],track:t[1]}},n.parseSctpDescription=function(e){let t=n.parseMLine(e),r=n.matchPrefix(e,`a=max-message-size:`),i;r.length>0&&(i=parseInt(r[0].substring(19),10)),isNaN(i)&&(i=65536);let a=n.matchPrefix(e,`a=sctp-port:`);if(a.length>0)return{port:parseInt(a[0].substring(12),10),protocol:t.fmt,maxMessageSize:i};let o=n.matchPrefix(e,`a=sctpmap:`);if(o.length>0){let e=o[0].substring(10).split(` `);return{port:parseInt(e[0],10),protocol:e[1],maxMessageSize:i}}},n.writeSctpDescription=function(e,t){let n=[];return n=e.protocol===`DTLS/SCTP`?[`m=`+e.kind+` 9 `+e.protocol+` `+t.port+`\r
|
|
247
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
248
|
+
`,`a=sctpmap:`+t.port+` `+t.protocol+` 65535\r
|
|
249
|
+
`]:[`m=`+e.kind+` 9 `+e.protocol+` `+t.protocol+`\r
|
|
250
|
+
`,`c=IN IP4 0.0.0.0\r
|
|
251
|
+
`,`a=sctp-port:`+t.port+`\r
|
|
252
|
+
`],t.maxMessageSize!==void 0&&n.push(`a=max-message-size:`+t.maxMessageSize+`\r
|
|
253
|
+
`),n.join(``)},n.generateSessionId=function(){return Math.random().toString().substr(2,22)},n.writeSessionBoilerplate=function(e,t,r){let i,a=t===void 0?2:t;return i=e||n.generateSessionId(),`v=0\r
|
|
254
|
+
o=`+(r||`thisisadapterortc`)+` `+i+` `+a+` IN IP4 127.0.0.1\r
|
|
255
|
+
s=-\r
|
|
256
|
+
t=0 0\r
|
|
257
|
+
`},n.getDirection=function(e,t){let r=n.splitLines(e);for(let e=0;e<r.length;e++)switch(r[e]){case`a=sendrecv`:case`a=sendonly`:case`a=recvonly`:case`a=inactive`:return r[e].substring(2)}return t?n.getDirection(t):`sendrecv`},n.getKind=function(e){return n.splitLines(e)[0].split(` `)[0].substring(2)},n.isRejected=function(e){return e.split(` `,2)[1]===`0`},n.parseMLine=function(e){let t=n.splitLines(e)[0].substring(2).split(` `);return{kind:t[0],port:parseInt(t[1],10),protocol:t[2],fmt:t.slice(3).join(` `)}},n.parseOLine=function(e){let t=n.matchPrefix(e,`o=`)[0].substring(2).split(` `);return{username:t[0],sessionId:t[1],sessionVersion:parseInt(t[2],10),netType:t[3],addressType:t[4],address:t[5]}},n.isValidSDP=function(e){if(typeof e!=`string`||e.length===0)return!1;let t=n.splitLines(e);for(let e=0;e<t.length;e++)if(t[e].length<2||t[e].charAt(1)!==`=`)return!1;return!0},typeof t==`object`&&(t.exports=n)})),nW=e({removeExtmapAllowMixed:()=>lW,shimAddIceCandidateNullOrEmpty:()=>uW,shimConnectionState:()=>cW,shimMaxMessageSize:()=>oW,shimParameterlessSetLocalDescription:()=>dW,shimRTCIceCandidate:()=>iW,shimRTCIceCandidateRelayProtocol:()=>aW,shimSendThrowTypeError:()=>sW}),rW=t(tW());function iW(e){if(!e.RTCIceCandidate||e.RTCIceCandidate&&`foundation`in e.RTCIceCandidate.prototype)return;let t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if(typeof e==`object`&&e.candidate&&e.candidate.indexOf(`a=`)===0&&(e=JSON.parse(JSON.stringify(e)),e.candidate=e.candidate.substring(2)),e.candidate&&e.candidate.length){let n=new t(e),r=rW.default.parseCandidate(e.candidate);for(let e in r)e in n||Object.defineProperty(n,e,{value:r[e]});return n.toJSON=function(){return{candidate:n.candidate,sdpMid:n.sdpMid,sdpMLineIndex:n.sdpMLineIndex,usernameFragment:n.usernameFragment}},n}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,uU(e,`icecandidate`,t=>(t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:`false`}),t))}function aW(e){!e.RTCIceCandidate||e.RTCIceCandidate&&`relayProtocol`in e.RTCIceCandidate.prototype||uU(e,`icecandidate`,e=>{if(e.candidate){let t=rW.default.parseCandidate(e.candidate.candidate);t.type===`relay`&&(e.candidate.relayProtocol={0:`tls`,1:`tcp`,2:`udp`}[t.priority>>24])}return e})}function oW(e,t){if(!e.RTCPeerConnection||t.browser===`chrome`&&t.version>102||t.browser===`firefox`&&t.version>=113)return;`sctp`in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get(){return this._sctp===void 0?null:this._sctp}});let n=function(e){if(!e||!e.sdp)return!1;let t=rW.default.splitSections(e.sdp);return t.shift(),t.some(e=>{let t=rW.default.parseMLine(e);return t&&t.kind===`application`&&t.protocol.indexOf(`SCTP`)!==-1})},r=function(e){let t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(t===null||t.length<2)return-1;let n=parseInt(t[1],10);return n===n?n:-1},i=function(e){let n=65536;return t.browser===`firefox`&&(n=t.version<57?e===-1?16384:2147483637:t.version<60?t.version===57?65535:65536:2147483637),n},a=function(e,n){let r=65536;t.browser===`firefox`&&t.version===57&&(r=65535);let i=rW.default.matchPrefix(e.sdp,`a=max-message-size:`);return i.length>0?r=parseInt(i[0].substring(19),10):t.browser===`firefox`&&n!==-1&&(r=2147483637),r},o=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,t.browser===`chrome`&&t.version>=76){let{sdpSemantics:e}=this.getConfiguration();e===`plan-b`&&Object.defineProperty(this,"sctp",{get(){return this._sctp===void 0?null:this._sctp},enumerable:!0,configurable:!0})}if(n(arguments[0])){let e=r(arguments[0]),t=i(e),n=a(arguments[0],e),o;o=t===0&&n===0?1/0:t===0||n===0?Math.max(t,n):Math.min(t,n);let s={};Object.defineProperty(s,"maxMessageSize",{get(){return o}}),this._sctp=s}return o.apply(this,arguments)}}function sW(e,t){if(!(e.RTCPeerConnection&&`createDataChannel`in e.RTCPeerConnection.prototype)||t.browser===`chrome`&&t.version>=149||t.browser===`firefox`&&t.version>60)return;function n(e,t){let n=e.send;e.send=function(){let r=arguments[0],i=r.length||r.size||r.byteLength;if(e.readyState===`open`&&t.sctp&&i>t.sctp.maxMessageSize)throw TypeError(`Message too large (can send a maximum of `+t.sctp.maxMessageSize+` bytes)`);return n.apply(e,arguments)}}let r=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){let e=r.apply(this,arguments);return n(e,this),e},uU(e,`datachannel`,e=>(n(e.channel,e.target),e))}function cW(e){if(!e.RTCPeerConnection||`connectionState`in e.RTCPeerConnection.prototype)return;let t=e.RTCPeerConnection.prototype;Object.defineProperty(t,"connectionState",{get(){return{completed:`connected`,checking:`connecting`}[this.iceConnectionState]||this.iceConnectionState},enumerable:!0,configurable:!0}),Object.defineProperty(t,"onconnectionstatechange",{get(){return this._onconnectionstatechange||null},set(e){this._onconnectionstatechange&&(this.removeEventListener(`connectionstatechange`,this._onconnectionstatechange),delete this._onconnectionstatechange),e&&this.addEventListener(`connectionstatechange`,this._onconnectionstatechange=e)},enumerable:!0,configurable:!0}),[`setLocalDescription`,`setRemoteDescription`].forEach(e=>{let n=t[e];t[e]=function(){return this._connectionstatechangepoly||(this._connectionstatechangepoly=e=>{let t=e.target;if(t._lastConnectionState!==t.connectionState){t._lastConnectionState=t.connectionState;let n=new Event(`connectionstatechange`,e);t.dispatchEvent(n)}return e},this.addEventListener(`iceconnectionstatechange`,this._connectionstatechangepoly)),n.apply(this,arguments)}})}function lW(e,t){if(!e.RTCPeerConnection||t.browser===`chrome`&&t.version>=71||t.browser===`safari`&&t._safariVersion>=13.1)return;let n=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(t){if(t&&t.sdp&&t.sdp.indexOf(`
|
|
258
|
+
a=extmap-allow-mixed`)!==-1){let n=t.sdp.split(`
|
|
259
|
+
`).filter(e=>e.trim()!==`a=extmap-allow-mixed`).join(`
|
|
260
|
+
`);e.RTCSessionDescription&&t instanceof e.RTCSessionDescription?arguments[0]=new e.RTCSessionDescription({type:t.type,sdp:n}):t.sdp=n}return n.apply(this,arguments)}}function uW(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let n=e.RTCPeerConnection.prototype.addIceCandidate;n&&n.length!==0&&(e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?(t.browser===`chrome`&&t.version<78||t.browser===`firefox`&&t.version<68||t.browser===`safari`)&&arguments[0]&&arguments[0].candidate===``?Promise.resolve():n.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())})}function dW(e,t){if(!(e.RTCPeerConnection&&e.RTCPeerConnection.prototype))return;let n=e.RTCPeerConnection.prototype.setLocalDescription;n&&n.length!==0&&(e.RTCPeerConnection.prototype.setLocalDescription=function(){let e=arguments[0]||{};if(typeof e!=`object`||e.type&&e.sdp)return n.apply(this,arguments);if(e={type:e.type,sdp:e.sdp},!e.type)switch(this.signalingState){case`stable`:case`have-local-offer`:case`have-remote-pranswer`:e.type=`offer`;break;default:e.type=`answer`}return e.sdp||e.type!==`offer`&&e.type!==`answer`?n.apply(this,[e]):(e.type===`offer`?this.createOffer:this.createAnswer).apply(this).then(e=>n.apply(this,[e]))})}function fW({window:e}={},t={shimChrome:!0,shimFirefox:!0,shimSafari:!0}){let n=pU,r=hU(e),i={browserDetails:r,commonShim:nW,extractVersion:lU,disableLog:dU,disableWarnings:fU,sdp:rW};switch(r.browser){case`chrome`:if(!SU||!kU||!t.shimChrome)return n(`Chrome shim is not included in this adapter release.`),i;if(r.version===null)return n(`Chrome shim can not determine version, not shimming.`),i;n(`adapter.js shimming chrome.`),i.browserShim=SU,uW(e,r),dW(e,r),xU(e,r),CU(e,r),kU(e,r),wU(e,r),OU(e,r),TU(e,r),EU(e,r),AU(e,r),iW(e,r),aW(e,r),cW(e,r),oW(e,r),sW(e,r),lW(e,r);break;case`firefox`:if(!NU||!FU||!t.shimFirefox)return n(`Firefox shim is not included in this adapter release.`),i;n(`adapter.js shimming firefox.`),i.browserShim=NU,uW(e,r),dW(e,r),jU(e,r),FU(e,r),IU(e,r),PU(e,r),zU(e,r),LU(e,r),RU(e,r),BU(e,r),VU(e,r),HU(e,r),UU(e,r),WU(e,r),iW(e,r),cW(e,r),oW(e,r),sW(e,r);break;case`safari`:if(!GU||!t.shimSafari)return n(`Safari shim is not included in this adapter release.`),i;n(`adapter.js shimming safari.`),i.browserShim=GU,uW(e,r),dW(e,r),ZU(e,r),$U(e,r),JU(e,r),KU(e,r),qU(e,r),QU(e,r),YU(e,r),eW(e,r),iW(e,r),aW(e,r),oW(e,r),sW(e,r),lW(e,r);break;default:n(`Unsupported browser!`)}return i}fW({window:typeof window>`u`?void 0:window}),typeof window<`u`&&`BarcodeDetector`in window;var pW=3e3,mW=500;function hW(e={}){let{startTimeoutMs:t=pW,settleDelayMs:n=mW}=e,r=(0,z.useRef)(Promise.resolve({type:`stop`,data:{}})),i=(0,z.useRef)(null),a=(0,z.useRef)(null),[o,s]=(0,z.useState)({}),[c,l]=(0,z.useState)({}),u=(0,z.useCallback)(async(e,r)=>{if(!window.isSecureContext)throw Error(`camera access is only permitted in secure context. Use HTTPS or localhost rather than HTTP.`);if(navigator?.mediaDevices?.getUserMedia===void 0)throw Error(`this browser has no Stream API support`);let o=await navigator.mediaDevices.getUserMedia({audio:!1,video:r});e.srcObject=o;let c;try{await Promise.race([e.play(),new Promise((e,n)=>{c=setTimeout(()=>n(Error(`Loading camera stream timed out after ${t} ms.`)),t)})])}finally{c!==void 0&&clearTimeout(c)}n>0&&await new Promise(e=>setTimeout(e,n));let[u]=o.getVideoTracks();return l(u.getSettings()),s(u.getCapabilities?.()??{}),i.current=o,a.current=u,{type:`start`,data:{videoEl:e,stream:o,constraints:r}}},[t,n]),d=(0,z.useCallback)(async(e,t)=>{e.srcObject=null,e.removeAttribute(`src`),e.load();for(let e of t.getTracks())t.removeTrack(e),e.stop();return i.current=null,a.current=null,l({}),{type:`stop`,data:{}}},[]),f=(0,z.useCallback)(async(e,{constraints:t,restart:n=!1})=>{let i=null;r.current=r.current.then(r=>{if(r.type===`start`){let{data:{videoEl:i,stream:a,constraints:o}}=r;return!n&&e===i&&t===o?r:d(i,a).then(()=>u(e,t))}return u(e,t)}).catch(e=>(i=e,{type:`stop`,data:{}}));let a=await r.current;if(i)throw i;if(a.type===`stop`)throw Error(`Something went wrong with the camera task queue (start task).`)},[u,d]),p=(0,z.useCallback)(async()=>{if(r.current=r.current.then(e=>{if(e.type===`stop`)return e;let{data:{videoEl:t,stream:n}}=e;return d(t,n)}),(await r.current).type===`start`)throw Error(`Something went wrong with the camera task queue (stop task).`)},[d]),m=(0,z.useCallback)(async e=>{let t=null;if(r.current=r.current.then(async n=>{let r=a.current;if(!r||n.type!==`start`)return t=Error(`No active video track found.`),n;try{e.advanced?.[0]?.zoom&&r.getCapabilities().torch&&(await r.applyConstraints({advanced:[{torch:!1}]}),l(r.getSettings())),await r.applyConstraints(e),s(r.getCapabilities()),l(r.getSettings())}catch(e){t=e}return n}),await r.current,t)throw t},[]),h=(0,z.useCallback)(async()=>{try{await r.current}catch{}},[]);return(0,z.useEffect)(()=>()=>{p()},[p]),{capabilities:o,settings:c,startCamera:f,stopCamera:p,updateConstraints:m,flush:h,getStream:()=>i.current}}var gW=`data:audio/mp3;base64,//PkZAAhghE0AKToAJra/n0FQygAAAGIkYJgmCYXBMAAGCTJz3zhCEM//z//1hz//8MMMMN08ssV6e5DDWIQreAgCvFKy8bXgIKMkUDDBgzJwIBtkRMQAocxIFdxghQGKDoEziAzQxOBOdH92i/iGi+zDCAEIX46a73HrSybZw1x3JZjXp7dSNy/P68rjcbt7p7fakMP5LVMyzCaj1pjvejYYAIDgDGzECjEAk1Jl3559HIon8hzlfPVTCvGJZzfcKSxXfyMWM88//9VKSxXdtnb9vomOuuRyiWVYbf+X8zp6fKGHIdycuWMMMMMMKSnp+6wsYc/9f/7z7rPPWHN556p6fP8MMMP///PPP/7+GHK9PT6p7f/unldP2np7YeHjweiYA4GLNAgAiI7u57n5//oc5/yfk6znOcPhwOBwggHCMpA4HA4KEyHOc5znO+hPIc5//+fqJh8XQPh90JU5xQinOf//87/zvP+ggAYuhCKHxdA+Hxd0EA4KKHA4ciB3kOXfXB/gmf8p/B96lAMKAgAADU+BujARHgwdisgHMfAUHAiceBg4ASBgZBiBIBH4ZaHOJsLhf8R+HYEciIgYSwj/+Bi7EqBh+AcBn5P6Bh4TuBmrAMBiZH7gaLEWgew//PkZFMlyek60MpYAShzqqZhm6gCUWeEUWAewEWYGN4X4GDEPwGE8S4GDoOIGAYKgIQOkz//gGARAUB+CwGxTwMAACAEgyAwdAlAxKhzAxXiZ///AxcEwAwJjDAziCAAwQgdAwRgdAsJQDAmAcGzYDwAhZIAKAcIQB4GT9TQMJ9/4Gi1Fv/AcAYUqKBAwGgNAwVBAAwGhwAwdBlAxFg1AwlgzAwNBuAkJQDBgEEDEqGECgChFgBgL//CIswYYH//+HKCpk4K0C9AaKKCAOBeMcR4X9C44BwABCgGAsGYCgTwHAcAwXAiAwSAQV///CJP9lwMBQAwAAAWGo5lVLCcaeneVhJAVGai3//ioaUEf//gaTAYGCj8BnEwfrIqDcsIQb/vmhU/8fAs0G8YGGwKST8Igj4GCATipksVzY8p//90FWJwh45AkX//4fCF9wMEgkL3uQc+gbGJ8t4MBAMBP/hEXf9FRuWBcAfIFjYzQdoLCBwh7IWVlxaX/w8oMCP/+EQT5poGB1Ir90DhiV6af/jFYBpT2BgoQyyt2M0ToBdEaZyzt8nTo3xdNDCTSd//o6F06CjooxRr4jVF/0bOKD6OMUNDRxiMUVFR0FFQPhGXRjDpr4MAEA4wIQUhYOIw//PkZE4nrg08sOx4ACQ0CopD2aAAlwTTBxQeMcwd8w8gZTAgABXwGABOkzpI0wAQAExnWfP4x8ZjKunWdZ1o1Qe6lFGKCNULORQCELAAPnRUf/GIx/0FHGfo3SdZ0qP2cukXKLlRtBKFgAQwCkwJgFRYBEEATmDsLSY2QiQYCEnEra+UZo6F1aKMRr6GhoaP/+j//ov+i+hjLqBgMkYoqChoo1GqCjoY06TpRqjjLOYzRRmMuizmgdKhdF8kjTAAAPMCwGswzglgwAJfzqxmioKH/////////////+ijLOAwFmN0f/////////Q///8ZjP/9DGYyFwIDBeB3MA4AlBWidKM5spykAUAQOCakK+udGqN8VDYjTRuN//0bVX//6Kio4xQFv//nf//kKOoAEIB6SY6hcxenp85///4/DEPf/84Xvl4vF4dwtxfEJgCYQHMSgKCROp4+fn////L4tQf0unz89OecLxeL0ul09y6enzp4dIhKAQFA5hKfLu1nU7/Wr71rRKJUBQSUVt////l08GUPVWgAAYAeNKsxbQNAAhQx3/oKGMM6dZ1Yy6sajMbfKio7lNcv0sScZ47lNcw32ekVFMP9fp/f+mklI6at6u/dBMQuW6y+C5BcgwAA//PkZEomGg1HYGe0riWsCqbEwiY0BJFJMxrCcxGgQ2VK8xxCF1wsABgQBBgQBAYAFCkYCgALkK4fJ00E5ctJN1Uxy5au3XoGcM4dSN0EYZwzhW0WCh1PZwzhnFFQxtnbO2d0Kt6CdXbruggkTEX5Rs4TEQUVsdVXaCcuWXIBQUGmwmgoAGcJiM4dSioHQdBnEY+hjcbov//jcb/43G43G/jCRibfxugdBnDqULO2duvQumztncbo4xGKKNxugooxGIxQULoOgFgUMTA/jbrxiMDmETL+eLhcPThzOeeOZfL5fIcBYuXD/OHv8t//LJFxjxQYHHKDGFkZMtlmKM0RgQfbVtxFIHbQBDRuzRguEI1c9XZ/rWmrZfVU3Oc/9utNNygRQkCoHlAYstNN6DJ1IINpoINppv+WG/+g2mmnUmmmpBAoJIJhnwB5xkymn606Df/t000xhU03UXC5Ol8uFyXy+Xy/l8v5w4cLk4XAvwAYUvl/QL5fTdlKZkEEEEGumaKaX00zIOemf6CH///ywI3LKpiQ2Ef4xYWMSDyI0XwzikpL0ajVHZ3j9DGIjeuXcNfjn96/S/TUz/X/vX////5K/r+v7Jn+LlAoGZOIQIwMKBQM/yppKYURmhGZkR2b//PkZE0mHg1HEG8wyiD7mlwAyDU8nJHi5htakZmZGNiRcpkJhBmUmZYQcM1VDEEBggNDV/ASEZRYKFZIhkXKLlKmk7IVTKmZNJ5KhiqVUqpX+k7+qlVKyV/ZIqZDFDWTJlFyi5TJpKhiXKBQyZzIS5JhBoayV/AQWVpGWkcYTV5O/rIVSv8/0nkr+v6/vyR/X9f1/ZN8kf5/n99/n+f5/lTKmf9/mRP8yFUqpWSv4yJUqpX9kj/MmZNJ5K/z/P9J5P/v6yFUz/CEoywgUMqZkz/FssECIsVq0aPRrRRatFFFykQZJ2Ukl///5KjmksOaA7ALROJLDnEsLbq3GTMVrwb/0dGzmM0DlfBlHQOmrdR0MYi92TX6b/cmDHLclyUVYO/4O8sFTKFTKFf8yhUyhUyhXzKlDKlCsr/+ZUoVlSsr/+ZQqZUoZUoceMfcoZUoZUoVlfOPGcmDHKcpynKg9yXJcr3JclyXJclyYO+DXJclyfgxFZVb3KcqD/g2MxzsY72L9LubPR0dCyf5K5NNd+Tv9GXRdV0XJclyfcl/n+k8kf6SX/iVynvXf///4Mg/1OkxguYzmM5jMcLHMxwwGhgNCwXMLAcwMXTLi1MD7w7tmTdBvMmE0xQFzCwHMDAd//PkZGMpigkmAGOUvCfTgcgAuC+ITswMFzC4oMLhYMByn0xvU+p9Tr0xUxf/0xv///1PBYDhgNTFTFTGTGTGTGTGTGTGTGC4GTFMDAcLAdMVMVMULAcMBpgYDhcDGFwsYXFBikLGFwMGA4MBxgcDKfTEMUoAx2BisD+mKp5Tv1OkxkxkxkxkxkxkxkxlO0xVPJi/6nv////U7CwHTFTFTGTGTGTGU+p71PpjJipihYDpipi/6n1Ov//C4GC4GTGTGTGTFU8WBSZdLhWB//yKlotyLZFiLf8tyyRUipFSKkVGRBZQMiWC3yx//wxUGKsSvDFQGHUAL3QMsHDFIYpCYy2Bmagy6BjLgy6Bh3od58DCLAizBgRb+EQiyEQiwGBFuDAi3/////20QqSBJf/qcumv/////wMZdGXAYMu1gYy6MuBEZdBgy4BjLgy6BjLgy6BjLgy6BjLQy6DBlz2cJDLgRGXAMZdGXAYMuhMZcCIy6sJGaoGMuppwNRl3WBjLgy63wiEWAwIt/+EQi0IhFsDCLAi0GBFkGBFgMJCqaqYAgAYIhBBvwf7kwcqRq7V3IctacvlN6NxqgooxRRuNRiijEZjMGRuMvz9FGozQ+1X2qe1T1S//+VhaWAtKwtML//PkZEIkbgcaAHc1xCJrjeAAtfuUAtLAWf///mWePH95ZFgsyssvM88+jzO6K+z7OM48sH+WDiweZx5YOK+zxWLGJWsa6xadAv02fTZLSpsFpvLSga0tMgWgUgWmwgUmyWl8tMgWWmLSoFJsoFlpSwsmyBg4HhEdgwHAYPBwGDgeBg8HwMHg4DB4PBgOAwcOwMHLwDn5lAwcDgiDgYDwMHA/4MB3//+EQeDAdwiDwYLPhEWQYLODBYERZBgt8Ii34GLBaB5pfAZ0FvEAQ/UfwxULlx+IXx+8f5CELH8fxKhAIDFoHBEDRc3////gwHgaRXgMHYMB2EU/gwZ/gYbw3gY3QbgYNgbgYiAbgwN3/+EQbBEG4MBuDAbAwG4RBtAwbg2////+B9B6F//////////hEdD//////////8DRahEQGCInMNg3LBElgNjDciCwG/lgNiwGxWG///mG4bf/+WA3Kw3KyIMNw2Kw3MNg3MNg3MNiIMiQ2OK0xMiA3KyJLAEZgRARmBEDEYFwBBgEgEeomowol5YAJKwCDAIAJ8sAE+gGBgCJYAQUZ/13LubMu5dyiYOAhKwEFGf9AOoz/g4CFAIol/lgAjysAgsAElYBP////lgJksBM//lgRUxF//PkZGApggsIAHt2wiNLoggAqCz8RFSwIqYioipkjEjHCCSN/+WJg5iYOYmPK5krmTmZk5mZ8sTJYmf8yJiNiIisi/ywRmRkZkZGZGRmRERkREZERGRERkREZERGxEf///hETIMEyBiZEyBiZEzwiJgDEwU4DV2gQGFOBgmP8GAiAwRAiBgIgYCIGAi/4MBHAwRgjAwRgjwMEQIgMcgY8DBGCMDBGCMDEyJn///+BiYQIBlObj4eYLIwsjAOBGFkYBoEQ84eULIw88LIA88PKHnw8sPKFkeHlANAiAaFUDAiMYPIHmDzBZBhZB///8GBOA1sH/Awni7AwnhPCITwYE/CKzBgt8Ig8GA4Ig6EQdww4Yb+F1sIgtwYCwGAsAwWAsBgLAYCwDBYCwDBaHUDF+VEDKgC2BgtBaDAWgYLQW////gYLAWQMFgLAMFoLcGAt////4RMABmBSj4NgwMOGHBsHhdcLrwbB4XXC6+F14YcLrww4Ng8MOGHBsHww4Ng8AUC4AoMQMC4fgw3wutV4QIsAgFYIBWCCVgHeVgHeWABCwAIVgH+YBwB5aRAstKgV6Ba1oMg9avtUVN/qdLWciD/cqD3Jg6DFPuTB/////lYAn//mC8C+YLwL5gvgvGC//PkZFEpLgMKYXt2xB5LogAArbdc+C8VgvlYL/mC8C+YLwL5YBfMNgNkwXixDWoHPMc4VUxVA2TBeDZPYXzXl815fK14sLxYXvK1//NeXzXl815fMtdDLSw3UsMtLCstMtLDLSwsFhWWlgt//8sFhW6f/////+WF7zXl8sL5ry+Vrxry+WF/wMLwX4MC+EQv/AwvBfAxsjYAyqpKA0lpLAwvBfBgXv///4RA2DANAYGgNgYGgNgYGwN+EQvf/BgXwYF//8DC+F4Dd6NgGBf4AgFwbB0MMF1wuuDYMBsGwusDYOBsHA2Dvg2DQuuDYOhdcMMF14YYDGYDEGwfhhgbB0MN///4RBaEQWgZByoYRWYMFvwiDsGwaF1gbB34GDwdC64XW/w1aKxDVgatir4YcLrQbBwNg7////////////+ESfgZPyff/////////4MFmBvvMAERZ8CC5adNj02E2S0qbCBSBZaYtN///oFlpU2QMXIFAYuQK9AtAo7IxLTpsIFJs/5aZRxQawaxGfIg9CsrI+PUqkWdOHp7ODsOl6cOHZ4dsulfLI9/8BAAgMBACsBLACVgBjoAWAE5OTM6WDAR0zodMdHCsJLASWAjzCQgsBJhASWAjysI8wkJMICU//PkZFkeqgcaYDd1th6DogAAqCuIxQwtDA5MdMULgyY6YqnXqdep5TpMdMVRNRL/UT9AN6jCiSjKAZRNRhAMomgFQDfCIJwYCQiCAiCMGAkGAgDBJUA3eVAMEgj////8SrDFIYqh5g8kPMHkDzB5OFkYeYPJ+HlDzB5+AYVQDibCyIPLLEZIsjIliWS0WywWyyWuWCyWJaLZbLJYDHgLAItFvy3///4eYPKBlQTh5QYEODBb//hhoNg7/C62DYPFUKwKsVgNWBq8VkVcVkVUVYrH//hGff/8Iz8GT7//////wiX4ML3gwvgwvf4ML3gZeqoHVGyBl4vgZfL2F1oNg4Lrg2DcLrg2DQw0Lrhh8Lr4YcMNBsGhdcGBcMOGGAFGAGMQsF1guuGG4XXV/4uQXOLmF1kL/8lCXkuSk4O8/FzHzuP0hIucf/CIFAMCgFPgYFAKAwCgGBQCgGHYO4GBVM4GgQI4RCMEQKQOtQjUI1CNcI14MqDKwDIAGQDzh5wsjDyw8uHmDzYeUPN+DEYRRhFEIowYgDQgIhWDApgwKAwKQYFAYFQMKkYDOxHAzsRgMKBUGBX/h5v+Hm4ecPNh5A8wBwjhZHhZAHlDzBZAFkAeQPKHnCyILIAsih5QsgDz//PkZLQgIgsMAFp1xCGLogAAA2rkB5w8oeYLIQ8kPMHkCyGHnAMKoGmAgFkUPMHmDYAtfHPHNkr/JYl8c8lCWHPHMkqSo5onMAkBDnfJX//8IgDBgBhEdAaxSQMHUGAEIgAV4risCcipBOMVRVBO////hEvAxsAwvf////8MPDDww4XWC64XXDDww4YcMPC6wYb/wYGgiGwMplMDYhTCIaCIaBga/////8GA+EQdgYPB4MB4GDwdhEH8Ig8Ig8GA6EQcEQf8DBxlBjoAweDuFwgCQXiL//iLiKCKCL4XCiKRFwEgoRT4iqpMQU1FMy4xMDCqqqqqqqr////xuDd8fv/DVwrArEIg6EQdhEHAYPBwMB+ERYBi0WAwWAZ0FoGLYOB+JfgZ0FoGdBaDBYbn+WHm9xW7/Nzzc83PLDzc8reWlA7S0oHamx//6BflpU2C0qbBaf/8yk/ysn+VkMhTKQrKVk8yE8rIVkKyYsAn/5WC+YICmCApWCGTkxtKMcVWlgFMEBTBAX////0C0C0C/////////LTFpvTZLTlpv/0Ci0xaYtOgWmymyWkAxcWmTZTYTY8tMmygUWmLTIFpsFpv9NnywLmLCx2RgWmQKTZ98UjnzZ1/++D4M6/////3//PkZOgjIg8IAFcbxCaTogAAoCuIzfJ8vfJ8Wcs5fBnD5//++L5f////////6nCKv//+o0o0FUYwqDNGCwgUMKC0VVGkVv//4Yf8LrxVCriqDVoasDVuKsNWw1bisBqwVkVkVX//gy/4YYMMGGhhgwwNg4LrhdcLrAYWGAA0zBsH4Ng3C6/////4MAoGBQIDAKBgUCAwCgYEAsDAoEAwKBAYBYMAoGBQIBgUCYGBQIBgUCwiBAYBYMAoRAgRAoGBBMBooCAYFAkIgTEUxFv/EWxFxFhFoi0LhQuFiLCL/EWqTEFNRTMuMTAwqqqq//////8TWJriV/hERAwRgYiEYGIhGBmIRgYiEYMEQMEcDMSiA1GYwMR+UDMTkA7KIgMRGIGGM0SIrRGjRlhEV4jxov8rR/5YRFhEdQSViCsR5iRJWIKxPlgQYgSViSsR5WJMQJLC78IiKERF4REeERGEREERHwMRGOBmIRhERhERAwRAYiEQGIhGBmIRAajkgG5TEEREDBHwYIwYI4REXCIV/4MCmDArgwKAYUO/gYVCkGBUGBTgYUCsGBUIhUDCoUCIVBgVBgVBgUhEKQMKhUDCoUBgVAwoFAYFcGBQDI6oA5+qQiFAMjBUGBXCyEPIFkOH//PkZPMj6gr6AFdVwifkBdwAoC2Ilh5/8PPh5Qsih5IeUA0TAZrE8PP////wMRiIIqID8piAxEIwMxCMDEQjCIj//BiIDRo8Iogii/4MKwYVhEoESkDEiIGJEgYlfBgmDBIMEAYgSBiBIREAwSERH/8I7wPfuCO4I7v/8GBvAw3Bv/////gwN34RBuBg2BuBg2BuBg2BuEQbhEG+EQbAwG4MBtwiDaDAbhEGwMBuDAbAwG4GDYG8DBsDcDBuNwDRWDcIg2AwbA34RBv///CINvCINgMRIN/////wiG4DDeG+TEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq/zB4OLAP8rBxWDisHlYOKxb5WLTFgsMWiw18LDOnjPxZoxadDOgsLAtLAbKymVhsrDZWG/LAb8w2GywGysNlgNFgNGFwuBQuWnTZLToFFpisLJsFp0Cy0voFAQLFZkMCAQwIBCsC/5WBCwBCwBCwBCsCeVgUwIBCwBDEwEMCAQrAhgUClgCFgTlgCGJgJ5gQTGJwKWAKYFApgQTGBQL5kY0HMjQYnAhWJvKwIWAIVgQrApYAhWBPBgECIEBgE/8IgXhECQiBAMCkcDEwEwMCAQGAQIhoIhsGBsIhvgwN//PkZN4irgr2AAOVqiUThegAnCtMgwNwiG/8IhuDA1hENhENgYbKYHb2IBhoNhENAwN////8IhsDKZS////8IhuBhspgc0KQRDWEQ3///CNf4GAIMDAwgAwAAwhAwAwYAIgwiHBgAMAYGAAGHv///CIBqBqESDEIgRYGoGHBiDEIgGoGgMAYgxgwgxCIETwYFYMCoMCuDApBgU8DCoU//gY3G//wYFOBhUKBEKQYFfBgV8IhSEQoBkYK8IhT/wMKhXBgUCIU4RCoRCvgYVCsDCp3A1SqAYFAiFP////gY3G1TEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVgwCAwCBEC///////8IgUIgWEQIBgUCAwTQMCAQDAoEhECAYFIwGaRMBotWAasdwH/KqBmhFgaKI4GRgKVpjCBTCBPMJHNMFMIFKwnlgJ5hUxhUwGWlpAMuMuWLTFpvQKQLQKLTIFJsoFIFFZb/8woQwoT///MIF8rC+WAphAphAppgpYClgsmwBC6bHoFFpUCi0wGXFguWCwFLgUsgX6BZaVNj0Ci03//+EQKEQKEQLCIFAxMBcDAgFAwIBQYBODAKBgUCAYEAuDAKBgUCAYFAgRAngwCgwCwiBIRAmE//PkZN4iogj2AFdVxiUrhewAhOkwQIBgQ0gbOI4GRhOBiYCgYEAv////CIFAyMBQYBf///CIF8IgUDAgFBgEAwIRwMCCcDEwFAwIBf///CIEQGMDGEXCKBpCIDCEQDCAsYInDFQMMAuYSoTQMVfBlf//+DKfBgAiGDAQMIMIgCIQYADAEGAgwP////8ItgNu2/8DAAAiABgHhECBgQGEQARA8GAeEQIMABECEQIMAwYBBgCDAARA4GAAgYACDAARAwiAgwDhED4RABEBCIGBgDoH2dgZwCBgAP//BhX/+DCiTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqF1ww////////hdeGGDDBhwjeF102E2fTYAowMLjE0zTDfyyMYjEDJTwMLSwFi0/gQLoFIFpsegWmyBQsWlQL9ApNgtIWn8tMgX6BaBX+WmQL9Nn02f9NktIgUgWmwWl9Avy06bCBSbJaUtImyWkQKLTIFgYWoFFpAKFwMLzZgwAwvLTIFlpU2fQLQK///4Yf4YaF1sLrg2DAuuDYNDDQw4NgwLrhh4XXC64Ng3C60MNwbB4XWC64YcMODYPCJYDlMQBlwRLg2DOF1v/////PkZM0eKgz0AE+UuCnLFfAAk3Fsg2DAYX/ww//4YaGGDDhdbDDACFwMuXA2DADlygusDYOBsGhhv//wNU/CKQusF1oXX+F1wuuGGC6wXWDDBdbC6wXXhHv//4AHIFgC0BZAA4Ba4FkADwFsC3AtQAOcC0BYAtgAcAA9+BYAsgW4FvgWOABwC1oq+it4RT0VVG0VFGkVywo1/RWU4U59TlFb1GvRX////QK9Nj/9AtNn02fTY9NhNlAr/QK//TYTZLSJsIFemx///oF/5aZNj02U2C0yBaBfoFAS6bKBfoFVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVQiA8GAO/4RAf//////wYA4GAO+EQHAwB4GDoB4GA4HQRB0BhlDIBpEAcBgPDIBgPAeDAHIFAYuLTpspsJsFpi0haRApAtAstIYKClgF/ysF/ysE/ysF//LAJ6plTlYC1ZUypmqtWVK1VqyplSFgBaqqcwAAVIqcrEBAAKmMBERCQhwD5iICIQEyABMAABBVGXF4gIA4DLAAWAEQgLVSsBaq1ZUv+YKClgELAJ////5YBP//LAL5WC+Vgn+WAX/LT+gW//PkZMIhLgrsAFt1yiD7FiB6A9qwmwViybCbCbCBSBabCBSBabPpsegWmwWn9ApApApNgCGBmEwWlLSpsf////hEHgYOB3////4GDkiBxMHhEdgYOB4GDwcBg4HW23gooFYHd/+BnAz8O8Vv//FaBm4rBWh38es2zbAtD1m2PVBqBrBqBrAF7AF3/5el84MkuHTgyy+dL0dRnEajMIyOn8RsZ5HGG/kbIpHIkYUiD0y2WctlZaWSwrKx6FZbxnL54ul04eLhw9Ol84dl86cOHT3Ipb5Z8qKpVx6/j0EkLctVTEFNRTMuMTAwgWQLQAHgLf/////4Fn+EQESEcIgInCIRW9TkrCzH0YIjjWtI+YeCD0woLCBQwsKRWUaRVCBZFZRtRtFRTlTlThRtAr0C0C//02E2fTZQK/0Ck2f9TlFRTlTlFT/9TlFVFRFb/9ThThynIQbWkAREue5S11rKdlkDEVABh61ExYPU+tOD4MQgcn4iwigivxFRFoXDcRQLhoiwioXCeAkFBcNiL8RURQBIKEVEWiLBcKIqIpEXC4QReIoIpCIKAQMxFAFAsIuIr/4YYLr//ww4XWBgwC64XX/hhgw3hhwuv8MNhhguvhdcAUYgaYTAAoWDDg2DQbBg//PkZPYe6gzuADd1uDKsBhBAe89cYYdGjtDT2hDmlD2leaOv9oX0OX/0NNLplNf8ewakNWGrTfTRpphNJtfaeh7T1/tStdtTpqN532lpX/1/kmQ5eaf2hoaV9paGleJAvd0rer2pWu1ar2vk56vVrV5Hj1Nop+/lfv5Zpkem5kX/2vtata2rq783nbvtbW6VjW6a2rq13+rO6VysV58K7tbp0ru6Vrtqa1a67tr6sau1ulYrnfa2v927Vrt21NSuN5X927/D4diAQANh4gEIfxB+IQG/D/4gDw/iGIRD+HRATEFNRTMuMTAwqqqqqqqqqqqqqqqqqiIEK/ititFX///8VcVuK38VsVhXBOQTpq/qm8QCAcBmIxgdfFZCHECpxFBFAuFEUC4cLhsRTEVEUDVoDQD+KrFYirFX+KwKoVgVUVUVeKwGrhWRWBViqFYDV4rMViKyGroauBg/A0YThVgNAEVQqw1fisis4quKxxWYrAatxWIqoqg1dFYxVxWIrAavAaAArIrAqoqhWYrIqvxWMVYrARCADhcKoVYavDVgqhV4qorIrHFWKuKxFViscVUVYasAaAfFY/4YcMNhdfwuuGGC64YfDDA2DwusANygbBwAxhAECwNg8MOF1hD4//PkZOkc4g7yBjd1sDNkDhgqYwtcYoUyiQ0NCkxQ0NCQkSIbGKIyRGEo5mUaNEhGKEHMmaGhI0UokORvMmZmZSZSiMZQkRnKKZkzRoSNCQpQ0NEZoaNFJkhh3KOUJEhIcoSJCQkIzlDlEjMDMyMpQ0JCQzNCRGaNCRISEZoZihoaIwlEHKNGiMzFEjRmSIwlHMyZmcyiGyMxRyhIkIxRSZokSEYGBkiRojAPESNGjQxvKHMmMoSKTJCQkIwlFKLDYWGhoZhYWAAUGBsAwsMDYUAcK4XDPhQVwwLAH/DfgHC6TEFNRaqqBgjwYI//wYI/8GCL///+DBFhERgwRcIiPAzGYgMRKIDcskBgjAxEIwYI4GiRwNEjhFH4MRwYjA0aOEUf8Io/BiLgxGEUYRRQij/BiKDEYMR+DBGBiMRQiIgYIwiIwYIgiIgMRGIDUSjhEReEREBiIRAwR/wYI/8IiP4MEcGCIIiOERH8GCIIiMIiIIiODBHBgjBgjwiIoREcIiOEREDBFCKiAxHJcIiMGCMGCLwYI8IiPhERgwRAwRAYjEUIiIGCP/AxGIgiIsGCL//4REYMEXhERBERhExhExAzyAZiEWDBGERGeKsVsVRVFcVwTnFcVxVgnYqipFUV//PkZPkcfgzeAFaVxDgUBgAgatvIYrgnYqgnQJyK4riqK4rwTsVor4rQAjABAgnQritFSKoqQTsE5C1haxfF7F4XQtULSFqC1i4LwWkXIWkXRdF+LwqAnME4iqCdwToVuK+HAERWAkAlgJB0OB3Doc8OYc8VCsVgIB3DuHAERUAkAkHMOBwOAIisO4dwEAEAEg6AkAl4CeHA4AkKhXioBIOiv8OB3F+LgWkXxeF8XouxcF0XBeF8XBdF8XhdAdouC8AEsXYWsXOKsVBU/FaKmK/FTxXFbFUVPiv/8VfxXitVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVAXX/8MN/wwwYf//DDBh4Yf/+DYODDfCIFAwKBQiaANFgUDAgFAwIBcADwFuBY/At8C1wLfgAdAtwLGBawLcC3AsgWeBYwLX4XW8LrBhgiFgMlhYLrhh4XWhdb8MOGGhdcMP4YaF1gw8LrwuvhhoYYLrYXWDDBdcGwfC60MN/ww8GwZ4XXC64GZQsF1wbBnDD4XXg2DcLrBdaDYPhhgusF1uGGC64YfhhoNg0LrQwwYcMNC62F1/g2DYXW4XXC6+GH8DTIW4YeB/wR/wjwR+DP/y06bJaRAtAtAtAs//PkZNwY2grqBFW1xDhTRegABLBstL6BRaVAstN5aYtN/psIFf5aQtIgWgUWk8tImyWkQL9Avy0qbKbKbJaf02f/0CkCy05adAsC3K7+mx5aVAv0C/TZ8tOmymwB2pspsFpPLSlpy0qbCBSBXlpk2E2E2C0paUtP6Bfpslp0CkCy0ibJaZAosWQLLTJsemwgUmz6BZaYtOgUWmLTpsJsoFJslpPLT+mwmz//6Bfpsf6BSBSbCBXoFeWk9NhNhAr0Cy0/+WnTZ8tJ/oFf6bP+myWn//8tMmz/lpf//////8sPTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVBgJwiCYMBP//gwE//////wiCAMEgkIggIqIDKpUCIIgwE8IzA4j+EYhGAZMIyDJA5gGRhGcIyDIhEQiIGAgwIRDwiAGAAwYMHBghGAZMGRCMhGYRgGRA5gIyDIwZPBk/wZIRmEY/gyOBxIMgIzCMgcTgwRBgjwYJBgngwTwYJhEQBiBGERMIrwOouAxAgGCQYIhERhEQDBGDBAREgwTCIgGCQYJgwSDBHwiI4MEAwSBiRHCIkGCYGJEQiI/Bgn4REYREeBiBIH6XhERhETwogoy04mpZibFmJuWYmx8n//PkZN4ZrgrkAFZUyDcjofgAA9qc0HafZ8HwNrjaG3xtjaDtJwTo+D55Ow7fxNRNSyLPlqJsAr/lmA/FmWYm5acTQVgTkVQTnBOQTgVxVBOBVFWK4J3FUE7gBABOwToVQTsVhUFcVRXBOhUBORWiuKkVYrCqK+KoqgnQrAnEV+K8E7FQE5xWBOQToVQTsVRW8V4qRUFYVgTsVhXioKgrCqKwqAnYqCtBOhUioK+CcisK8VRUFSKnirFQVBVFcE6FcVoJwKoqCrFXFUE7gnAqiuCcQTsE7xU8VP8VYrgnYrCuTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqn3/l/J/8vHL5f/BhwCETgGpIDOATgEIOFoDcHzgEIDgC+pG7eve1S/6tat7rXupDXSStWoIpGS4TSMQNIySMwpIyAaRkkZ8GJGdBtbwYkZ63tCKRkoIpGWDEjLCKRmEkjOvsEUjJOsIpGa6bOrgxIzsEkjIGJGYUkZVKCKRmqoDkgEjMJJGSYMSMAikZJ3qhp0dq9ru3X1I36FujPbXuxwKbr//waABfg0AC6DUDUDXBqBoAmQawJiGrhqDUGoN//PkZL8USgKcAAblrroTgfQAbhtQAag1QawaYNIAuQa12Lv9si7F2NnXa2Vsi7i/DZl2tlL9l+vL8tlUTUTUTUYQDIBlGUAyifqJKJqJ+p5Mf/U7TETEU7CxkxVO1PKdqeU8u4vq2ddnrsbM2Zs/tl9s67V2NlbIu5sgaA1Q14ExAmAaA0BrDVDXhpgTPDQGuBMA0gTKGgCYgTHDQGrDUGgNcNQaw1hoAmcNIaRIAtALVEgC1gteI8FpBaBIAtcRwkAWgFpBaILVBaIkAWgRwjhIiPEeDXwa/4NUGr+DRwaKBgX/8IhP//wiF8GBMGBP/wYEhEKEQmEQuDAoGFTAwLgwLhG/4MvCM8GSDJCNwZQOXg2DwbB8MPDDhhuGGBsHhh8Lrf4MCQYFCIUGJgiE8GBQMIFhELDDhdaGHhdYGwaGGDDhhuDYMBsHg2D8MMGHBsH8GwYDYMhEKEQgMCeDAsIhAiFBgQIhAYFhEKDAkGBMIhYGEC4GFCBELgYUKDAuEQsGBQMKEwiEBgUGBcIhQYFwYFAwgWDAoRC8GBAYE4RCgwKEQvhEJgYUIBhQkIhAiECIUGBIMC4RCgwJCIUGBAiFgaYLwiEA5cGXCNhGBGwZAw4Ng0MPBkqNqcoqorlh//PkZP8cygrkAFI0wjo7lfAAjhq4SnPor//psoFemygWmwWm/0C0Ci05adApNn/TZQLU5RU9FRFVFdTn1OFG1Gywv/UbUa9Ff0VoFgCwBbAtQLUCzAtgAchHAN8ImAbgBvwDd4RwjQDeAN8I0ImEQEQAbwRgiQjBHhHAN0A3vgG6Ab/CIhEgG5AN6EQESAbmEYI4RABvYRoRABuYRgDehEQiAiIRABvcA3QiQDfwjwDfCICPCJCJCJ4RwiYRwjBEwDehEYRgDfCNCOEQEQEcI+BagAd4FrAscCxAswLfwLAFgC1wLNVMQU1FMy4xMDBVVVVVVVVVBlBkwO3wZAZMIz//////+DJwO0IwI0DsA7cGUI34Rn4RgMuEZgywZQjAZP/hGAcmDKEYDIB28GQGQGXhGgcgRoMgRoHYBywZAZYMmBygyQYFCIUDChQYE4MCgaYJ/gwKEQsGBAiEBgXAwgQLrhdcGwcGHBsGA2Dgw4YYGwZC6/hdYMMF14YcLrYYcMPDDhdYGweF1oYb4MCwYEwYEgwJBgTCIQGBIRC/BgQDCBcIhAMKFhEKDAsGBQYFAwgTgwKDAoMCQiEgwIBhAnCIUGBQiFwiEBicIhAiFhEIgIoBooGieDPA+4GeDPCP//PkZOobXgrkAEY0jjazieQgBKKIBGgyBGhGhGgyAdoMmEaDIB2gyhGwZYMsI0GSDIEaDKB2QOWEaDKB2hGgygcoHYBygdkDtgygcngyAyhG4MgMgRgRmDJCNBkA7QjAZIRoRoMuByhGgyAyAyhGwZYHKByAcgMgRoHIEbCNCNA7fCNA7AZAO0GSEYEaDLA7cDthGgyAyAyQjAOwGUIyDKEYEaEYEYEaEbA5AZQZAZAZIMgRkGXBlBkCMgyAyQZYMngcmEb8GUGQIyDIBywZAZOEZhGBGwO2EbwjcI3hGYMqTEFNRTMuMTAwqqqqqqqqqqqqqqqqqqqqquDqz8GMDQIvBj///+DGDEGAMAifBj8IuEThFCIEQGPCLwiQYBFCKESDCETBhhGAZGEZ4MjgcSEY4GoRQigxCIEQGPCKBiBrgxwiBEwMIRAY4MQNMIkImDEGIRYMIRYRAYhFBjwYwNQYgwBgBh4GAMQiwYgxA0gahFBgBjgYBFhFhFCKEWBgEWEUGEIgMQYQMYRAMQigxhFBh4GkIgRIRYRAY4RIMQYgYhFA18IoMQYQihFhEgwhFCIDEGIRQieBiEUIoRQYhEwYDAFwGrBog0waAaQawacGsGiDQp9MZMVT3piJjJjK//PkZOYZBgjoaUJQ0DprofQgbhq0dep71PqeU69TpMdMVT6n1OlPKdJjpiKdFZkxlPKdJiJj+mKp/0xFPBoAmYaw0BpwJhDSBMQ1BqAmIEzDSGgNXDRDRhp+GsNMNAEyAmYagJkBMA1BpDXAmECZhoDXhqAmYawJjgTICZBrDSGsNAExDVDQGqGgNHDWBMIaQ0BrAmcCYgTHAmIEzDWGgNYaOBMw0BqDSBMYaA04aA1hqwJhw0ATKGqBM8NYEz4aQJkGoNMNIag1+GsCY+BMQJlDVw0cCYfDXw1ho4aQ0gTCTEFNRTMuMTAwqqoD37wjuhHf/////hGf////hHf/gycEZwRn4MnYMncIzsGTwOdOA507A507hGeEZ8GTuDJ4Rn4HPn4Mn4RnhGcDJwM3YM3gzdBm6DNwR3QjvA927Bm//Bm7Bm/Bm8GbgZvBm4GboR3gzeEd+DN8GbvBm6EZ+Bzp4Mn4HOnBGfA588IzsDnTgZPCM8Iz+EZ/CM4DnTgOdPBk8Iz4RJwGTidBi7AycTgiT4RJ8GE6ESdhEngZPJwGTieDCcESfwYToMJ3AycTwiTsDJ5OhEnwibwYb+ETdwibwibvCJuwYb/4RN/Btf/jYGyNv8bHLUtSzE0/LQBW//PkZPQcHgjQAFKVrjfDmgAge1eMLITcshNy1LX8si0LUTQtCyLQTUteWQmvLItSz4mgmnTJops0umEymDSPsnR9HwfB8k7Pvn0fAvwtcLXF/F+L4vQtQWuFoC0BaReF7AeBfwtcXBdF4XheFwXAtAui9C1haRdi6LwvirgnUE6FcVBVisKgrCvioK+KoqiqAhh3AQFXhwVYrFYCWHMOioVAI4dFWHPDgCAdDgdDmHcBIBEO+HRWAiKsBMO4dFQCAdATw6HBWHBWAgHBUHMOf/gICsOCoV4qw7+KxWHA6KhVTEFNRTMuMTAwVVVVVVVVVVVVVVVVVVVVC11Fz1+NP+/Xkqpr9OfuhQ6lZNWf+XsZc/si+KNoOj/Ntai9j7IISgZAklTqQhjToNTeQoreRdaSDODWvYAVFaWWkQmVuZPP8bRUzq896vc+XS6mm5gnnW7JLnV4z9N5XnW4k86x+uyHyxnWkmdborzraff2SvOtvljOtjd/5XRW8MivOsry/K3gUzrFPS1eFTOttTsul1+lLGdbV3c53h51mdbK7xPOr1SpnWlM63kedZnV4XPK86onnW7myrnWTmRTOqascoabXd/L+yuzS95dv1efjhl92ntYyTuIb6wuWRZFmWRa//PkZOcb/gqMACDf1LTLofggA9qc/gKRZiblqWYm3E24moSQnR9BJj6JwfBaFqWZZFoWvLUshNPxNuWn6bTZHgozRTSaNAY5oGjFQVgTkE6FUVorioK8VBXBO8VRUioAhxVioK4qAnIrYrCqKsVRVBORXBORVFcVcVwTgVBUBORUisK4rCoKwrxXFYE4FYVATjFcVhX4rcVBVFQV4rxVFSKwqCpFcV+K8VhXFYV4qivFUE4FaCdivBORUBOfBOgToE6FUVYqisKgqCtxWFbFQVxXisKgqRU4qioKuKwqCvxVBkH/4Mgf4Rg4RgfgxZBizhFYEVuDFvhFbBi3CKyEVsGLf/4MgAxaDFoGsWYMWgaxYBrFngxaDFnCKwIrAYswNas+DFgRWYGtWYMWBFZgxbgaxbgxZCKwGLIRWgxZCK2EVmDFmDFgMW4GtW8IrAYtBi3Bi0GLAYsCK0IrQit4MWeEVgRW+DFsI9cDW9AYtgxZhFaBrVgMWgxaDFvCKwIrIGtWhFaBrFuEVvBi3hFZA1i0IrYMWYMWAxaEVkGLAisCKzBizCK0DWrIRg+EYIRgQjABkHwODABkDhGDwODBgyAEYIRoRvww4YcKILYKILfhRg5htjY4OQbQ2hNAH8su//PkZP8cRgjWAFAUYjwDofQAi9pcJry1E1LUsuWvE2E0LQTcB+E2LMTctQFEEcWnFYVwTkAI4rRWFYE6BOhWwToBBAQgnIrisETANwIiAb/COEQEbgG+EcA38A3wjhGCMEeEaEeKoJwK4J2KoARBVBOIJ1FWKoJ0CcCuCdRWFcV4rioK4rAnYJ2K0V8VYr8E4xWFUVBVFQE6FXBORWFSKorxVFcVwToE5wTvBOoqwToVIJziuKwJxAQgnUVBUgnAqQCaCdxWirFaKwrRWFcE7FfFeK4rgnIrAnYrCoKoqgnAqCrip4qgnCr/////8Iu8BjvP4Ry5/8Izggc4Zw4RnD/hGcP8GThBk4eDJwgycIMnDwjOD4MnBA3eu9hF3kGO8gx3vBjvAN3jvMGO8CLvAY72DHeAbvXe+DHehF3kGO8gbvHeBF3oG713gG713vgx3oMd5BjvAi7wGO9A3eu8BjvMDd470Iu9wN3jvQY7wGO9wN3jvIRd4Bu9d6Bu9d6DHeAbvHewi7yEXecGO9BjvQN3rvIG7zykGO9A3eO9CLvYMd6EXegx3gG7x3kDd470Dd472DHewY7yDHeAKomwmhZFkAof8tCy4m5aCbcTUswFYsy0/LQTX9NBqBgJgYaY//PkZPcaTdCuAFgWlkI0DfQAe9r8Jxz6CShr8++JsArgjxNBNC0LQsyyLMsgRxallyyLIsi0LUTUtS0AVwFPia8si0LMTXiacsxNizLMTYTcsi1LMsy0E2LUsuJqJvxNyy/E1LMteWgm4mpZlkJuWRZFmWnLQTfgncVATkVcVQTsVIqQToVxWFeK4rwTmATCsCcAnQJyKoriqKwrxWiqKoqwToVRWBORWBOBVFSKgq4qAnAqAnArRVgnIJ3FYVQAgCriqK4qYqivBOsVoJwKgJ3FYVBWFfBOIqCoCcivipxUFSCd4qRV4rCvFaCc/BOhW8VxWFUVhX4r1eX/+DHgaYMOEX/CJgwwYQY8GODH/wYf4RAiQiAxCKBj4GAMYRQiwYcGEGMIoMfhECIBgEXAwCJhEA1BjhF+BhCIDEGARYGoRAYgxCLwYeESEUGMDEIoGAMAiAwBiBrCJ8GMGGEWEUGIRYMAYAxCKBiBgBqDDA1wiBEBiDAIsGIMANANMIoMAYhEBh4GMGMGARfAxBj8GAMANYRAYBFAwCIBhgYhEwNQMYGIRAMAiwNYRQi4RQYwYgahEBiBqBgESEUIqa6Z6bTBpGkmUwmkwaZpJlNCkifmkaaaBymgm0wmRPxSDTTa//PkZOYYTgboZUAQIkCEFgAAe898YTZpJtMJhNilphNdMJhMGgmemDSNJNmkaX6aNJN9MJhMc0E2mzSNJMpg0umU2mDS5oJlNJtNJnpg0DSTBoml0wmzTE8TRpGgm00mkzzRNNMJg0jQTSb/NFNdNGl02KTzRTfTPTSbTKZNLphNJpNmgmUymkwaaaTKZ/TSYTBoJr/ifptMpr9MJlNptMpg0kymumEwmf+mEwmOmkymTT5ppv80eaHTCYTHTSaNBNJtN80/0yaBoJo0k2aPTPNA0OaSaTJoplMJv9MgBAB4MBUGwbwVwUBkFAYDAU4NBoMBqhAELk//h/y1/vz6/6zMnEglwqnIsVSHBzAMMIqXiLgxS8ucoLCKl7VwipeupwYpeAxS8Z22hSl4U+qE1L2goKUva1GUJqXqwkpeAxS81IQpS8smBqXql6E1LyEVLxdEJqXoSUvAmpeJhFS8rpH3CKl6EVLxPWFKXgDUvVL1LCal4kuDFL2EVLxFlPClLyEVL2FKXhdwYpeswGpeqXkGKXqLAxS8wYpeqWk8KUvATUvQYpehJS9Bil6yoUpegipeZT2x1vN5NR2X3KrRuXjFmaS0AUCyE1BHflmWZacTYsvy05ZgAIs+WQCqJoWZ//PkZOwZ+gaYBgbm6EQMAfQAe9r8ZCbiaFkWv5ZibialoArlryyDtCSnyfR8hrE7PpNmiaIxDTGKafTJalqJoJoWQm4mnLUtSzE1LUsxNyy4mpZlqJpy14mgD8WpagKvLIEcJuWnLItBNhNhNxNgH8tSyLMTflmA/iaCaFqJqWf4mxZFmCdCvFWKwqivgnQJzFfwToAIwqgnOKgqCoK4J2KwqisKwJwKwqCqKgJwK4rYqirgnIJ2K8VhVwTmKorYrioK4JwKwrRWFQE5FUE6BOwTgV4qYqiuCdAnYqAnMVBVFUVATkVBVirioKoqCviuK8VwTjxWFfivFUVxXBOcVuKvFaKoqiuCdeEW3Bjb/gxvhFvCLYGN8GNwi3CLf8DbtuEW//CM7+DG+EW+DG8DbNgi3CLfA2zYItwY3gbZuDG8GT/Bk+DJ+DJ/hGdCM+EZwMnQZP8GT8GToRngc6dBk4IzwZOBk8GTvhGdBk+DG8Dbt8DbtgY2CLbBjYGNwi2A2zYDbN4RbhFtA2zcDbNwNu3CLaEW4RbeEW2DG8DbNwY3BjYDbNgY3A2zYItwi3CLbgbdvA27YGN/CLaDG4RbgxsDG4Rb8ItsI7oR3cGb00m0wmTT6aTZoJgUpMc0kwaa//PkZNcYqeLUAAAUHjw8DgQAe88cYTXTXNBpXiQdfLVpLJoaCSJs0TQNAbRpJpDWleaGlDmlfQ9fQ7tBZoa0IeOw3Ccq44TcHgrufDVzQNA0Om0wmDTNE0EymkymumU2mU0aSY6ZE8NFMmiaaYNDptMGn+aJpdNptNps0OmU0J50wNtMGmmEz/zQTJpppNplMJlM9M8FAYCoKAAApgqDIMACwAQbBsAMGQAQaCkGg0GgyCkGeCgNABwAAUgrwA+CoAQNAeHCAOAeAyIQHBwgDg4QYDAGgMEEOEAeA0Q4DxAHh0PEMGYMBsFQYDPgoDMGQV4NBqryAZfhGfwjMDl4Rv/wjcGT/4R/CPBH//hH4H3gzv4M7A+/gzoR4GdBnAf+DPBnwj4M7BnwivA1QIpCKcIpgaqDFgaqBogMWBqgGqgxQinA0XBi8IqEUCKBFcD7/CPwj0I+DPA/8GfBnQZ8I+EeCPwZ4R6EfhGcI0GSDIDJCNCMBkgdsIwGQDkBk4HIEZgy4RoHZwZQjcDtCMgcoRgRoRgHKDJBl4RgHIDKDIEYEaEZgyYMoRsIwGQGQIwGUGUI3A5AZMI2EaDLBlwjQZQjAjAZQoqIqqN+pypx/qNIqoqqNKNKcqchwGrCAPqN//PkZOsaCgjiBUZRnkhEBfAgw9tw+iu1RUqp2qNUNalOVG1GkV/U58sLU48sLLCiwFU4hAYA+qQQgasVhVIYQNWKwmAKpvasNoHIDm4OQHIDlGwNgbH4D+JuWQm4mhZFoJsWgm4I4TcbA2xtA5ODnGyNoHJ+NgHKDl/LMBXLUtS04mvLQteAqCaCbFoWQmha8bQ2Acg2ht8bI2RsjaGyNrjYGwNvjbByja/GxFYE4ipBOIrwTiK4J2KuK8BAK4rAnAJwKkE4FYE7FUVgEIqgIRVBO4qRXFQVBVBOMVwCcE5itBOoqAnQqCpBOIrxVBOoJ0KwJxgnQrCuKsVBXioCcCqCdAnYJyKsVYqipBOgjwiAj/8InhH4RMIkIioAC4RiJCMRP////CNk//Blkv4M6F8I9C/8GWT/8I2SwjZOEbJQZZIGWShGyYMsnwj0P///CPQ/hGyQRsn8I2SCNkgOyVkoMsnhGyQMslCNkoMsl4MsnhGyXCNk4MsmEbJ/wZZP8I2SA7JWTgyyQMiKDIieEYiAcRIihGIkIxFwZEUIxEA4iREgcRYihGIoHESIkDiJEUIxFwjEQIxEwZEWDIihGIoRiKEYiHcYJRIr9kzDmO5cIaApXE/NA0TTTKZGym/0//PkZMQWjdCsAwAWCsQ8Cfwoe89cyaXTKZACgKxsmybQFQCyPQPUbRtA9x6QAoegHKmRtClpk0RSkwaCYE/GyaaZ6ZFJTaaTCbTabTBomgmk2mxS0x0waSaTI2gcgOcT0T5MiedM9M9NCfCeGgNhMJlNJoT1MdNJhMjaNPptNGkmhtpnmgmv+KQmRSE0aaY6ZTKZTRoJg0U0aBopg0emU1/xPzTTaa5o80DRTZoJs0TRNEUhMikJs0P0x0wmkwmUymkwaKb5pppNJg0OaInhpGgmeaSbTBp9N/ptNJo0DTNAbOCkGAwGABgA4NgwAAAMAPBgAQKAyDAZgoCkFINAABWAEDAUBTAABgMBTgqACDcGAAQYDAUqLUlVt///+Bj4MIRcGH/hE//hEwY/wi8GPBj8GH8IgRcIv4RYMQi+DAIsIsIn8GHCLCJCJ/BhBgBpgwwifhFhEhF/gwCIDAGIMIMAMQYBFhFBgDH4GAMQiQNAYAwwYBECIAMIAMAAiHBgAMIAiAIg4MABgABhADAhEAGAARCBhCEQhEIMABh6EQAwIMABgCEQwMAQYD4MDCIcGACIQiHwYGDAhEOEQ4MAENB8hJD7PsnXJ0fZ98+D6LItQR3PgnZHmgPYYRopk0xj//PkZMkU/gLsKkITrkL0CfzIetvgJtNdNGkmkwCPLITf8s+WpaFmApAjgFUsyz49jSTCaGMmkyaRZlkJsWpaiagKBZlmWomh8c+CdcnROj4Pk+Akh9E6DsJ0fJ8c+OTs+idk4J2Tg+j7Pr8nB9nwfAa59k7598+D74Sk+eEkFQdDmKsOhwBEVYCeAiAmAiHcBEV4CYCIWmCHF6FqC0haRcF4XYvxfF2LwvC+FqC0xcC0C/FwLSFoF0XBfi7C0xei8LwvcLQLoWoXheC0BaIWoXBdiNiMY6cZ8RkZxnjqOojAz4zx0HUdBGozjoMw6iMjpxdi+L4uC5F/xd/haIui/bZ/+DGBp4RYMQYgw8Ivgw/CJ4RfBh/hECKBgEUGODH8InhFwY4GoMcIgRIMcInCIBrBhCIESESBp+DEGARfhEA1gxBjBj4RAYQYgxgYwiYRcIgMAiAwBjCJgYAawYYRQMQMAYhFgagYhEA0AxA1A1CJBhBgEXwMQNAihFhFAxwYAwgaYMPCJA1hEBiBrwYQiwYwiBFwYhFgxgawihFCLA0gYAwCKESBoBpCJ4MIRcGOEVB9ALR8BJj7/PonB9HyEoJwfZ9E4Dt5OeTnlqJtxNAH7nwfHPonJ8E759E6PoJI//PkZOAWKgjoZUAQYka0Ffgge9VcfZOCdE7J0To+Cc8JWTo+D7J0EqPoO0+T5PsJSfJ9n0TkJUfJOeTknPPo+z6J2Ts+ycE759/k7Pg+z5J2TonBOeTkJUTg+T5DtJ0Tvk5Pjk5DXPg+idH2HYfR9E6PgnR9k5JyfZ9cnR9cNYJSfROidE6Ps+Cdn0fB8E6DtPs+CdHwfH5OAlR8nyfB98+SdE4J0ff5OidH2TknfPkJMfYSg+Cd8+D6PsnP/JwTk++fYSQO0+D5J0fZ8HwTjn2AWDgdAL8ApALQCkO8GACwMgyAVBiAVhzwY4BeDIMgFMOh0ArDgc4BeAV4cgFsOhz/wP225HGw7wCsO4M8AqHP/+DEGQ7/8OgzgFoM4Bf4MhwO4BT4cDmHcGfDnw78GcVhUFTFXFeKoqYJ3isKuKkVgTsVoqCsKwrCoKsVQTqKorYWoXhfxeF/xdi58XOL4WmLnFYVQToE4FXiuK0VwTnFQVRVFcVhU4JzFfDgdhzBnDuHfALgyDAMQZBgGQCgBUAoDAMh3BkAsDMGcGAYgxBn+HAC0ArwCwMAS5adAry0yBSBfoFBVaKqKwVUVrRXUa9FUOEqVUjV3ySPLkvkzlNlNn02E2S06pvVKWACECpW//PkZN8VDgj+zymq5krb1ewAxJvkqe1XysDVFSqlVIo2o0ispyFVoqKNIrKcqNKcKcFhSjaKiKyKhYWiv6nCnCKijajSnPorKNKcKcqcIrqNoqKNqcKNoqKNKNqNKcIqKN//orf6BSbKbKBSBXlp0CvQKTYTZ/0C/LTxFxFoigioigCLC4cRYRWItEXC4cRcI0IoFwwXCiKwjQXC8LhRFcRcRQRSFwoikRcLhxFRFguHiKRF8E7FYVhVBOgCYVRUACKKgqgE0E6ACJFYVoJ0CcgnQrAnMVwTgE6ioKoRwDdhHhG4RARgDcCMEaEYIiAbwRIRuESEcIwRwiYRwjQjBEgWoFuBa4FngWkIQQigwhEwigx/CL/4RfCKEQGP/wYiEUwYHwYGDAwYAGA4RCEQBEGB0rCNcGU4RrBlcIsGGDCESBiEWDCBhCIEWBiDAGHCKEUGEGEGMIgMAiwigxCIDADQGIRfCIEQDXgYYRfBgBoESEXwY/CJCKEQIsGIRODEGIRQYgw8IgRYMMGAGGDEDGDAIoMcDQIkGMGGBrgwCKDAIsIkDUDWDGDDA1hE4RQMQYgwBhhFBhBh4MAMYRMIoRAiAxBjhF4mhZFpxNBNy0LQTUTXhKglR9FqWpaAP5Zi//PkZNYXkgTkGEJwlkXcDfQAe9r8bCa/k5JwTriacsizBHE6CSH1w7efHLPgjuJqWnLITYTX8tRNAH/ialqJuJuWZaFkCO4m5aE7J2TonB8E559nyEnJyfB8FmJrxNxNhNS1E3LT8sxNC0E0LTlqJuWQm3E15ZiaFqWRZiaCagP5aCblkKoqCsCdioKoqwToE6FcVwAhRWBOIrCpFbgnEVRVFUVIJ2K4rAnIqioKgrcV4riuK0E4FcVQTsVxUBOoJ3FUE7itFYE7FYVRXFUVwTkVoqAnYJxBO4rReF4XYWsLWLoui4LwuC9AdsLQL0LQA9C8Lgvi6LguBahfFwXAtIvQQ4vCqKwrxX/8E5xXit4JwKzBnwj+DF+F1guvBiQYkDRIR8I/gz8Gd4R/wYsGLBi8I8DPBneDPBnwZ/8I8DP8I8B/0Gd+DPA+8I/+Ef+DOgzvwj4R/hHoM+Ee4M4D74M+Ef/A/7gfcDPBn4R7BnfCPgz4M7Bngf8DPwjwR6B/3CPwj0Gfgz+EfBnhH8GfwioRQGIBqgRUDVAYoGiBFcIoBqoMWEUA1UDRYRUIqEUA1WBooGiAaqBogRUGJwigM8I/gz+DOCPwj/Bnwj3BnBHgZ4M4I+DOhHhNCz5aiaCb//PkZM0YugrgAAASBEUEBfQAe9rclmWompZ8shNyzLMsy1LMBUAfhNxNicBJCcE5J0JpyyLMTcBVLXloCO5aCagKACiAqflqWYmvE3E3BHlmArFnxNRNC1LUBS5aFoWhZFmWR8k5CTnxz4PonZ8E5Pg+j4LUshNQH4TYtSzLMshNBNhNSyAViyE0FQE4FYVoJ0CcRUgnYqisKoJxFWAhiuKgrCtFUE7FQE5iqKgqRVFWKorwTsVxVFYE7FTFTBOxVgnAqRXBOPisK4BOK0VoriuK0E5BOxUivFcE5FYE5FQVBXFQE6FQVBVFYVxWioCcCoLovi4LoWiL0LSL+LouBaIvBahdi6LoWgEMFoC1hacXxdC14uipiqKn8VPFbiqKsVb//Bm/+EXgx4RdhFb///hE1/8GLP//CKwIrQjoGa/wPewZqEdYM1wZqDNAetgzWEd8GagzYM2DN4M1wjoI7Bm+DNhHcD3rA9awZuEdwZvCOwjsGaA964M1A978I7hHQR0DNge98I6hHYR1wZrBmwPWgPWwZsI7wjqB63COvgzQR3BmwZsGaget8D3rCOgZoGa4R1gzYM0EdwZsI6CO+DN4R1wZsD3oGaBmwjqEdAzXCO/4R0DNAzYR0WgI8TQT//PkZL4XFgTcAE6Tekf8EfQAe9t8YTXiagKwCsJuWXLMTUtC1LMTT8TYTUJP+fAdomomoD8JuWoCgWoI7iaFkJqJqfZ8hrk4CSE5Pk+Cdk5PgnBOT7JwTg+uWZaiaCbcsgFAsy0LPlmJsWYmom5ZFmWpaibiaAjy15ZFkWQm5Zll+JsJqJvy1E0CThJz65OQlJ8H2TknZOT759k6J3z4PgTQTcsy0LITflmWfLUsiyLITYTcTT8syzLQsi0LMEcWZa8tSyE1LTibibFqWYI/8shNCyE1LQsy1LUTUBTLLloWXLUsiyLUtBN+JqJvy1E05Z8TcsxNeWn/LTnxydHwfZ9n1ydk4PsnHJyfR9E4JwTgnB8k4588nB9cnR8c+D7PjxV4q4r8VsVgTgE4/itFShX/xV4rirxVFWKoq4qfxX8E6xVxUBOYrCtwTvwTj/xV8E5/irBOsVuKwqRXFTFQVorCrFf/xWioKwrCtioCcxUFUVAToE4FUVxWFQVhUBO4rgnUVIJyKkVgToE4ipFUVoq4qisKsE64qCoCdxUFUVxXFUE78VxWFQV4qiuKgqiuK4CCK2KoqirBOATsE4FWK4qxVFUVhVFYE4gnIriuCcQTiK4rCoCdCtirBORUiqK2//PkZLAWsgzuADQNNkZj/fjIe9r8K/FXFUVwSE5aiaAKgmhaFpxNQkp8n3z5PsJOGsffLQsyyE1LItS1E1Af+CPLMTUTfibFmJoWQmxanzydHwTsnASknBaCalqWom5ZcsxNyc8nASsnHDt59BrhJgkpOicBKg7D7JyfZ8E5Pk+Cd8EeWXE0LQsiyLQtSyLIsi0LUTYsy0E3LITQshNiyLUsiy4I78shNy0LMVcE6ipgnArRVgncE4wTsVIrCqCcCtBOYrwTgE7iuKwqCoKwrcE7BOQTqKgqiqFpBEC1gPYD3F0X4WoLTF0Xxei6FqC0BaAtQWgXxdwtWFqC0haBW/FQVRUBOBUFcE6ioCcAnEVRX4rYrxWFUVBViuLsXgtAuC6FoBDBaYvi7F8XxexdF8XhcFyI//gx//CJBhgxhEwY/+EXwYgx8ImDH8GPhE8GPhEwigwhFwNQNQNfhE+DGDAGHCIBrhEhEBh4RQMAY/gYBFBhhEAxCIDCEUDEDHBiEUIoRQY+DCBp4McGEIgGgMcGIGMGIGIGgRQYgxCKBiBjBgDGESDADWBgEUDEIuDADWBpBiEUDEDDgYgwBgDEDQDUGIGgRAYQYAxCKBhCKEThEBgBiEUGIRQMQiQiwNAY//PkZKwWNgjoZUAQREakFfQAe9t8YMfwi4GBaFoJsWpaFlyyBHctCzE25ZiaFoAocsy1E24Sk+idk6LMTYTYTQsyyLUtCyLQTUswFYJMGuTg+CdHwErPotAFAsuJtxNCz4m4mvBHiafloWZZ8YppBqzTNI0jTNBMpg0jTTZZFqWfE3Af/xNf+WomhZ8suWZZCb8tC1LQtS14m/LQtBNhNOfR8hKCc8nHJ2EqCUE5CSHxydk6Pg+D7Ps+Sdk6LUTQTcTcTctSz4mwmha8TXlmJvyy5ZiaFl+WpZFoWZa8TQshNCz4mhalmJsWfLQsuWRactBNRNC1E1LLlly0E2PgJWfR8h2H2fJOSdnx+fXPs+T5PgNbnzz6Po+T7JwTk+z4PonROglJ84qCvxXxUirFX4q4qeCd1f8InCI/4R/CP//4RMI/CMEYI4RAR8I8IjCJ4REI/gG8ESEfCOERCP4R/+EaERCPCNCNCI4BvQjYRMHINobIOfjZBzDZG3xtja42gcw2PwcvG2Nng5+NgbY2wcn42htDYGwNrjYGwNsbX42vxscbI2gc3Bzg5Qcg2uNvjaGwNgbI2+Dl4OUbI2Qc42RsjbBy//g5eAboR4RwjQDeCP+EcI8IwBuwjwjBEBEA//PkZKoZMgrqADXt9EV8FfQAe9scG+EThEBGCMESESEbhEQjwjwjwjBHCIwiQDcCNCI/hHE0/LQBSLITf/lqWoSvk7LT8BWLMtRNAk58E7Po+CyLQTcsyyLUsi0Afi1LUTUTUtBNS05aFkWpZHzwkoSgnB9HwfQSsTYsizLQtRNRNgFf/8NcJWEmAWCdn0To+T4CUHyGtxNiyLT/lmJqJqJqWgmpZFqJsWgmwmwmwmv5ZiaibiactBNv/yyLTiaFkWZagKgCmJqWQmgmom3E0LTibAKfE0LLiuKgrYqipBO4JzFUE5BORXBOhVioKwqRWBOYJyKkE6BOIrYqCqCcxVxVFUV8E4FSCdcVgAgCuKkLTBDC6CHi+LwuRfha4uC+FpF8XQtAWgB2wtAWoXBchaBfwtQWnFSCdxVxXFUVhUFYV4rgnOK3wTiKir//1eDCsf//7/+wOYd///ei/f6lmiqGXpyOlCSRm+yP3UtDhFIzqBhwCFHAGFHABYGcAnAAMOAAYcAAw4BYKOAIROANgicAQYcABE4AAzgE4B+1wmcAwYcAK+sDOADgFLCJwAlWBnABwABnABwDWraETgEDOADgDBiRkgoJpGaP+64RSMoRSMGBiRkkwMSMlq7AxIy4//PkZJUYEgieBFw3fkL8FgAied8AROAAicA8DOATgAGHAAROAFwM4BOAGBhwADDgAGHANQUcAgicAYROAfgw4AIkbPNNNpo0TSNBNJgUs0l7lomEwmRSOaRp80zQFK4nvTInnTEGgwGwAwYmOmkyaInppJpMJg0k1+KUaaaTCb42U0mBsGiaSaNNNpo0OaKZNE0jTTSY5oGmaZpJrphM9MGkmDQTCZBzpg0OKR+mBtdMJobfTSbTfG2KSaBpGgaZomiaBomn02mOmkwmjSNPpjmmaKZNA0zSNFNCeClJkT40DTTCY5oJk0kyaJpdMppMdMdN80TR6ZTXTfNJNmimumem+aKZTKaTaaTRops0kwaZppk0+aSa6ZTKYTfTfTPTHTKa5omgmEyaJo9NmkaRp/pnmmaf6aNNMplMplMdMpv8TxMJlNplNJn9MdM1OM6hWa/EjiRiRiO/xIcSP+GgCZQ1+GvDRDV//4aP///4I8EwTwTBLwS/4AHgnBHBHgiwR4JgAgS4IwAYPA8ADg+AAAAFwfB4L4WADC2AGAGFwsFwuD2FgAcAPC+F/B8L4X/B7B4L4WwuD+AGDwXACAAC2D2AEFgfCwAAAAXB8LhcLeDwXCwPYPA+ACACD+AH4XwA//PkZJMVIgb2ejVLxkBMEgTIe898vwv4X/ACB/C4WwtgBg/gA4PA9gBeFhLRTXTRomkmP0yJ6J+mPy0NA0OvibNDQmfzTNNMjaFKNATxMiemiaRoGkmE2mkwmTRTHNBMGiaCZTSZTZomh0PaV9fX2hoX14kzSmOaCY5pJr80U0aPTfNFMps0jSNJMmiaSaTKb6aTKYNLphMpg0eaJoGkJ8aBoppMppMJg00xzTTabNFNJpNJpNpnpg0DT6bTRoppoJMWrSh/690NQ5paV5D2le/LND2hoQxDF/rzR1/r/aWhfaWleQxfXmheaevNDS0tLQ0ryGoch/X15D+vLy+0oc0ry/19DUOXuvIc0oav9oXkNX1/r3X18QCGHQGQHB8PiAPAaHgPDsBgcH+Hqv//+DJ0GNuEW4MbQY2wZO4Rn///4R34R3Qjv//8Gbv//8GbgZuwZvCO4GbsD37+Ed3A586DJ4Rn8DnToRn8GTsGT8GToRn4HOngyf4HOnBGeDJ0IzgjOCM8DnTwjOgydwOdP4RnYMncDbtwY2A27cItgNs3CLeDGwMbwY3CLaEWwRbQi3A27eDG0GN4G2bBFvA2zcItgY3A27YGN4G2bAxtA58/gc6eDJwHOnAyfCM7A588//PkZLMYngTSAFAUhEYcDfggw9V8DnzwOdOBk8IzuEZ4MnAyfgychsy7F3oE13Nl9sy7myrsL6qqOU5anCqkHqNDI3KVUTEU8GNU7U6gxyHKchyVV/Xa2Zspfds3rubK2VsjZmztk9djZi/TZV2NnXYu0vsm0yaBoDZNEbA2k0aKZNjmwbH/Nvm2bRtGyBVArD1G0bQPUevg9h6/+PRzZNkCrzZNgesegesermyPQPXzbHpNvm0PQPUPSbJs82TaHqAtj082h6DaNn8eo2DbHrHpNjj1m1zYHqNo2jYNnmwbPNgek2ja5sj0D1m0bJs80xtJlMdMCeps0U0meaaa6b5p/mmmU3zRTfNFN/pgHPzQNPmkaaaTXTKbTRoJk0zS6b/NBNdNJlNGj02aH6Z4IgAEEYJ4I+CMEQJcEUEXBOpHDX/w1Q0Q1Q1cNWGvw0Q0/hp/AmIaA0cCYhow0w1/w0hoDRhpw1w1BrgTLDXw1BrhrDQGgNQEzAmOGuGiGgNfgTHDQGoCZw1w0BrDWBMIEzDVDTDUGgNfAFwGjBrg1A1YNcGsAXAaQaABcBqg1g1QagaINYaoEyw1Bow1YaA1hoDSBMw1gTICYQJkGrDQGoNGGmGsNcNQawJkGuBM4aIa//PkZKAYngTsATQNQkKMFgDifh7AYagJkGsCZ+GkNWGiGsNAaYaOGgCYgTENQaw0Yaw1Q1Q0/hqw1BkAfmkaCb6ZTCY6bNBNLwmqGA5fzSTCb/lgwXOmMmMmTQ5pmkmUwmkymfzRTaZFJ6aNM002NrppMpg0kwKQmE2m0yKUaKaE95o9MJj9N9NJk0UymOaSaE/TabNNNmmmk2mU2aHTKZTCaNDjaTJoGimkyNvpk0TRTHTf6bTRopg001+mU0aXNBMjYNA0k2mjR5pfps0U100mUz0ym02mDRTHTaaTRpplMc0kz0ySA000mDSTKbNI002mzQTHTaYTf//NA0zQTBodNJk0UyKSaaZNJMprmkaP5oGmKUmEymUyaCbTHNBMJlN80DRNBMmkm/00mUwaZpprplNpvmiaJo80+aSa//TaY/6ZaH//wY4ReEX4RIMfwiAxBh/BhCJ/+ESDDwYcIn+EQIoMAiQYAw8IsGIGGETBj4MP4MQiAxhEAwAxAxBjBiEUIgMIMcDCDAGIMcGMDEGGBgEUDTwNfAx4MAiwiQYgwBgEUIgMIRAiQYhFwYAwBhA1CKDEIoGoGgMQi4MeDADGEQIkIgGMDCDAIoMAiQiAYwYYMQNQigwCJBiDEGAR//PkZJwV+gzoZUAQRkZsCfQAe9tcQYgx8GEGIMQiwMAY4MANAMcIoMSyE1E1/LMTUtCz5OD5PkJJz5Pk+uA/FqWRaib8TUTUTQtC05alqWYm4momgI8TYsxNCzE3LUtQFEsgFM+z6J0fB8nz+TsNcnB9BK+Tk+g7CdhJT6LTiaFqWYI7lqWoCvy05ZlnxNy0/LUshNBNvwR4moCj+Wv5ZlkJqWpalkCOE1E1LQsiyLITUBULLlqWZZlmJsWhZcsi1/4CiWpalkJqJuWvLXlkJsJpyy4mwm5ZlmJuWXLUTQteWgmgmwCsJoWfE3LMsiyLP8TTlkJuAolqJryzE1LTibCbloJuWhZFoWYmxZ8TcXIvxeC0i+FrF0B2i4L8LSL4uBaIDyCHF8XRfF6FqgiwtIuYWoXIrYqAncVvxVip8VIqCvUxPqtFbFf/4q/8V/8V/iririr8VATjxXipxWgnYq+KwqfFTFQVoq+KsVBW8VhUisKuK0VRXivFYE4FTBOhVFcVRV4riuCdCuCdCtwTiCcCqCcgnYqxWFcVIJwKsVxWisK8VxVgnArYqRWFeK0V4qgnQrgnYrfBOoqAnAq4J0CciqKviuK3BOoJyKsE4FUVoqisK2KwrAnArgBAFSK4//PkZJ0VagjyJgGtbkOkFfwAbh4AqRViuK4J0KgrCrFUVxVjOEeDQgjlcT4T40xtjaNI0uaI2QciGNJIl4kJZtCGIaSckIm6GL3TQ2zRTY2UwmjSNE0fxS02aY2BsJs0/+mzSE8TQpHTKZTaaG0aQpApZp/mmm+aHTfTCZGwNgUk0E0aRp/ilJlNJgT5MmkJ9zQNA0TQTH6ZG2mk0mk0mk3zQTKY/G3zQTHTabTBpGgmU0aKaTJpJpNJtMphNjYTfNE0emkymE2mEyaCbNBNfmkaJpdNJnpg0k0mDTTCbTaZTBp80k2aCbTfNE00yaCb6bTZoplMmmaKZTKaTJpmiaHTXNJNdMDbTab6Y6Z6ZNNMJhMJhN9NJrmim02m0ymU300aPTSa6Y//5pJpNdN/9NppxWxU4Jx/xWxU/xU4qcV/ipiuKwqxWFbioK/8VIqivFTwTkVgTkVor4JxFXxX8VcVxUFQE4FaCcwTvBOIqwToVuKwqCtFUVYqxXxWFeK0E7FQVYrwTnwTsV4rCqCcfFaCcRVFQE5gnAr4JyK4r4Jz4J0Koqip4rCvisKoJ3xWBOME7iuKgriuKgrAnAqgnArxXiqCcgnYJzFQVQTmAEIVYrwToAIYrwTiKkVQTkE5//PkZK4XGgzsADQNAkIcCfwAe898FXFTFYVxXxUFQVkzzS5oilg5TTTY2kyaJpJtNGgJ8aKaTQ2k2aCaNI0eaSYNJM/tKHEiQxfJG09MmgaSYTRppg0TRNNMJlMptMCfppNprmiaA2jQNLmmaRppk0jRFLNP9NJhMGmaQpZpJhNCkGkmE0J+mxSk0m0x02mjRTKbTCZ42EwaQpJpptNprmgaRpmim00J4mzSNM0kymkyKWmE0muaKYGwNjmgafTPNE0U0mUwJ7+mem01+J8mhSk2mjRTSb6aTCbNBM9MpjpjppMpk0E2mE2mE2mjSTfTaZ6YNFMcT1MpnprptNmim0wmE100aSaTRo9MGjzTTHTaaTfTSaNLpoFMAAFYNBQGwAvwAYM4NgqqkjaAN3d3d3etERNK5CZ/3Ctf8AaiAc/u7vaIn/+8XPv//+GDKv8W1/+AC8K4Yw+94xe940jgceOBwOcRaxGwH4EuNIjBfxazB8HhkwVjIAII/vDkjG/wAcJPeF5e98hNgSYLWMFvhZ73pX06aoehpmh01hMJtM9K3TKY9E10x+memvlIpZM9MUTCbShbUrtM+n5ophNZuXK+0wmemumMCemkmvc0Uwm/lJJlLe5oJZI0SyW6R0mE//PkZLcXlgrzECFvrEmMEfgAfh7k2aORpbTYUo9SBNsekGYNVKgqg6hrUXK4Q42DOwPWbILEzBSumEgkWJPU8S72G5wUuGDwguEKa1Q0UykS3Bn7FJNgg5qoEgpsGabBtGabZt7NrKCNgLYes1idmabBtm2bZsBRm0PQbF9mwPSPUBbMwzB6QojYM42ePTzbMwzR6TaNs1eBVNv81yDUJ2QYhJtD0m0PVe+x6T2M8HsbFwsh6B6D7HpugT2uZhO6HqZhmE7ISZhhkFNcghtmybBnnsD1Ho49ZtG2bZs5PVBc2EEepCaEHNjj1EJHq5smabZtmwbNEEPR+bJse9z2PY2T1SN0rdNJq6yXI06COvNJj9MGmkkGmUj7pI0TToNGlEsNEnCW10ymi5FtNFKpvps0kz0uW3aaTF00mTSzdNJu0KFYz1KjaGAhyoQCFGM//zFARgIUZ/oZpdCttay6M5drW1joSj6Ekk1b7J7R7aoQNlPrWBKLTTzOsGT5yYxLrtHTy2iUxEkES0HIBVD066VjGj31odPkkSjJtbWs6OIjKmlXHR9K5MTv5pdZolE10kk2lly74TFx5KTXeTGLrS6ExiucvJSSDUdXZm3NLn1rtYBCUEoRj77WOhCPc+g5//PkZJ8XPgzoAABMTrz8BfQyY9ONGxJULutaa1TE5LHxWEo+XecmMa3p0kqBCR6qOFaFUGpNJIIjqVi0ylBqJIkiSJIkmJj605EkSRJPetWAyVacmodBUVhGfrAZPF0AUrgRLNiqDU4VHo8h6HRObJJNdqlRBMFT0qdNE0WZhmay2tCuOY6oieWieianCnVSbzjd7SGhrLi6eUSeLcZTWqdML5PM50uOGJms9VqtYU6hrgrm4V0frUzTvYsiegR2FOkqUxSKdVCpmRCSkIAUZ4VPhqEKgFDU2VhUiIhUaIg0RAkTBYEjYBUbBMuCJgLAkCUBUinABgBE3/9EQqFRM0s0qzktk9ZFqqFC6RULE11JVDkd8Y1vVFOx9oUIpZ8Vnq5klkxBTUUzLjEwMKqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq`,_W={NotAllowedError:`permission-denied`,PermissionDeniedError:`permission-denied`,NotFoundError:`no-camera`,DevicesNotFoundError:`no-camera`,NotReadableError:`in-use`,TrackStartError:`in-use`,OverconstrainedError:`overconstrained`,ConstraintNotSatisfiedError:`overconstrained`,AbortError:`aborted`,SecurityError:`security`,TypeError:`type-error`};function vW(e){if(e instanceof DOMException||e instanceof Error){let t=e.name??``,n=e.message??String(e);return n.includes(`secure context`)?{kind:`insecure-context`,message:n,cause:e}:n.includes(`Stream API`)?{kind:`unsupported`,message:n,cause:e}:{kind:_W[t]??`unknown`,message:n,cause:e}}return{kind:`unknown`,message:typeof e==`string`?e:`Unknown scanner error`,cause:e}}var yW=[];function bW(e){let{videoElementRef:t,onScan:n,onFound:r,onError:i,retryDelay:a=100,scanDelay:o=0,formats:s=yW,allowMultiple:c=!1,sound:l=!0}=e,u=(0,z.useMemo)(()=>[...s].sort().join(`|`),[s]),d=(0,z.useRef)(null),f=(0,z.useRef)(null),p=(0,z.useRef)(null);typeof window<`u`&&d.current===null&&(d.current=new oU({formats:s})),(0,z.useEffect)(()=>{typeof window<`u`&&(d.current=new oU({formats:s}))},[u]),(0,z.useEffect)(()=>{if(typeof window>`u`||!l)f.current=null;else return f.current=new Audio(typeof l==`string`?l:gW),()=>{f.current?.pause(),f.current=null}},[l]);let m=(0,z.useCallback)(e=>async s=>{let u=d.current;if(t.current===null||t.current.readyState<=1||u===null)return;let{lastScan:h,contentBefore:g,lastScanHadContent:_}=e;if(s-h<a){p.current=window.requestAnimationFrame(m(e));return}let v;try{v=await u.detect(t.current)}catch(e){i?.(vW(e));return}let y=v.some(e=>!g.has(e.rawValue)),b=v.length>0,x=e.lastOnScan,S=s-x>=o;(y||c&&b&&S)&&(l&&f.current?.paused&&f.current.play().catch(e=>console.error(`Error playing the sound`,e)),x=s,n(v)),(b||_)&&r(v);let C=y?new Set(v.map(e=>e.rawValue)):g,w={lastScan:s,lastOnScan:x,lastScanHadContent:b,contentBefore:C};p.current=window.requestAnimationFrame(m(w))},[n,r,i,a,c,o,l]);return{startScanning:(0,z.useCallback)(()=>{if(typeof window>`u`)return;let e=performance.now(),t={lastScan:e,lastOnScan:e,contentBefore:new Set,lastScanHadContent:!1};p.current=window.requestAnimationFrame(m(t))},[m]),stopScanning:(0,z.useCallback)(()=>{p.current!==null&&(window.cancelAnimationFrame(p.current),p.current=null)},[])}}var xW={finder:!0,torch:!0,tracker:void 0,onOff:!1,zoom:!1},SW={facingMode:`environment`,width:{min:640,ideal:720,max:1920},height:{min:640,ideal:720,max:1080}},CW={container:{width:`100%`,height:`100%`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`,aspectRatio:`1/1`},video:{width:`100%`,height:`100%`,objectFit:`cover`,overflow:`hidden`}},wW=e=>e instanceof Date,TW=e=>e==null,EW=e=>typeof e==`object`,DW=e=>!TW(e)&&!Array.isArray(e)&&EW(e)&&!wW(e),OW=e=>TW(e)||!EW(e);function kW(e,t){if(OW(e)||OW(t))return e===t;if(wW(e)&&wW(t))return e.getTime()===t.getTime();if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!kW(e[n],t[n]))return!1;return!0}if(!DW(e)||!DW(t))return!1;let n=e,r=t,i=Object.keys(n),a=Object.keys(r);if(i.length!==a.length)return!1;let o=new Set(a);for(let e of i){if(!o.has(e))return!1;if(e===`ref`)continue;let t=n[e],i=r[e],a=DW(t)&&DW(i),s=Array.isArray(t)&&Array.isArray(i),c=wW(t)&&wW(i);if(a||s||c){if(!kW(t,i))return!1}else if(t!==i)return!1}return!0}function AW(e){let{disabled:t=!1,className:n,style:r}=e,i={stroke:t?`grey`:`yellow`,fill:`none`,strokeLinejoin:`round`,strokeLinecap:`round`,strokeWidth:1.5,...r};return(0,H.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,className:n,style:i,width:`28px`,height:`28px`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{d:`M3 3L6.00007 6.00007M21 21L19.8455 19.8221M9.74194 4.06811C9.83646 4.04279 9.93334 4.02428 10.0319 4.01299C10.1453 4 10.2683 4 10.5141 4H13.5327C13.7786 4 13.9015 4 14.015 4.01299C14.6068 4.08078 15.1375 4.40882 15.4628 4.90782C15.5252 5.00345 15.5802 5.11345 15.6901 5.33333C15.7451 5.44329 15.7726 5.49827 15.8037 5.54609C15.9664 5.79559 16.2318 5.95961 16.5277 5.9935C16.5844 6 16.6459 6 16.7688 6H17.8234C18.9435 6 19.5036 6 19.9314 6.21799C20.3077 6.40973 20.6137 6.71569 20.8055 7.09202C21.0234 7.51984 21.0234 8.0799 21.0234 9.2V15.3496M19.8455 19.8221C19.4278 20 18.8702 20 17.8234 20H6.22344C5.10333 20 4.54328 20 4.11546 19.782C3.73913 19.5903 3.43317 19.2843 3.24142 18.908C3.02344 18.4802 3.02344 17.9201 3.02344 16.8V9.2C3.02344 8.0799 3.02344 7.51984 3.24142 7.09202C3.43317 6.71569 3.73913 6.40973 4.11546 6.21799C4.51385 6.015 5.0269 6.00103 6.00007 6.00007M19.8455 19.8221L14.5619 14.5619M14.5619 14.5619C14.0349 15.4243 13.0847 16 12 16C10.3431 16 9 14.6569 9 13C9 11.9153 9.57566 10.9651 10.4381 10.4381M14.5619 14.5619L10.4381 10.4381M10.4381 10.4381L6.00007 6.00007`})})}function jW(e){let{disabled:t=!1,className:n,style:r}=e,i={stroke:t?`grey`:`yellow`,fill:`none`,strokeLinejoin:`round`,strokeLinecap:`round`,strokeWidth:1.5,...r};return(0,H.jsxs)(`svg`,{"aria-hidden":`true`,focusable:`false`,className:n,style:i,width:`28px`,height:`28px`,viewBox:`0 0 24 24`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,H.jsx)(`path`,{d:`M12 16C13.6569 16 15 14.6569 15 13C15 11.3431 13.6569 10 12 10C10.3431 10 9 11.3431 9 13C9 14.6569 10.3431 16 12 16Z`}),(0,H.jsx)(`path`,{d:`M3 16.8V9.2C3 8.0799 3 7.51984 3.21799 7.09202C3.40973 6.71569 3.71569 6.40973 4.09202 6.21799C4.51984 6 5.0799 6 6.2 6H7.25464C7.37758 6 7.43905 6 7.49576 5.9935C7.79166 5.95961 8.05705 5.79559 8.21969 5.54609C8.25086 5.49827 8.27836 5.44328 8.33333 5.33333C8.44329 5.11342 8.49827 5.00346 8.56062 4.90782C8.8859 4.40882 9.41668 4.08078 10.0085 4.01299C10.1219 4 10.2448 4 10.4907 4H13.5093C13.7552 4 13.8781 4 13.9915 4.01299C14.5833 4.08078 15.1141 4.40882 15.4394 4.90782C15.5017 5.00345 15.5567 5.11345 15.6667 5.33333C15.7216 5.44329 15.7491 5.49827 15.7803 5.54609C15.943 5.79559 16.2083 5.95961 16.5042 5.9935C16.561 6 16.6224 6 16.7454 6H17.8C18.9201 6 19.4802 6 19.908 6.21799C20.2843 6.40973 20.5903 6.71569 20.782 7.09202C21 7.51984 21 8.0799 21 9.2V16.8C21 17.9201 21 18.4802 20.782 18.908C20.5903 19.2843 20.2843 19.5903 19.908 19.782C19.4802 20 18.9201 20 17.8 20H6.2C5.0799 20 4.51984 20 4.09202 19.782C3.71569 19.5903 3.40973 19.2843 3.21799 18.908C3 18.4802 3 17.9201 3 16.8Z`})]})}var MW={bottom:85,right:8,position:`absolute`,zIndex:2,background:`transparent`,border:0,padding:4,margin:0,display:`inline-flex`,alignItems:`center`,justifyContent:`center`};function NW(e){let{scanning:t,startScanning:n,stopScanning:r}=e,[i,a]=(0,z.useState)(!1),o=(0,z.useRef)(null);(0,z.useEffect)(()=>()=>{o.current!==null&&clearTimeout(o.current)},[]);function s(){i||(a(!0),t?r():n(),o.current!==null&&clearTimeout(o.current),o.current=setTimeout(()=>{a(!1),o.current=null},1e3))}return(0,H.jsx)(`button`,{type:`button`,"aria-label":t?`Turn camera off`:`Turn camera on`,"aria-pressed":t,disabled:i,onClick:s,style:{...MW,cursor:i?`default`:`pointer`},children:t?(0,H.jsx)(AW,{disabled:i}):(0,H.jsx)(jW,{disabled:i})})}function PW(e){let{className:t,style:n}=e;return(0,H.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,width:`30px`,height:`30px`,viewBox:`0 0 24 24`,className:t,style:n,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{strokeWidth:.2,stroke:`yellow`,fill:`yellow`,d:`M14.516 15.158l.714.714-4.595 6.14-.75-.364L12.337 13H6.978L8.22 8.861l.803.803L8.322 12h3.036l1.793 1.792-1.475 5.16zm5.984 4.05L4.793 3.5l.707-.707 3.492 3.492L10.278 2h7.972l-5.025 7h7.149l-3.71 4.957 4.543 4.543zM12.707 10l3.243 3.243L18.376 10zM9.795 7.088l2.079 2.079L16.3 3h-5.278z`})})}function FW(e){let{className:t,style:n}=e;return(0,H.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,width:`30px`,height:`30px`,viewBox:`0 0 24 24`,className:t,style:n,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{strokeWidth:.2,stroke:`yellow`,fill:`yellow`,d:`M13.225 9l5.025-7h-7.972l-3.3 11h5.359l-2.452 8.648.75.364L20.374 9zm.438 3H8.322l2.7-9H16.3l-5.025 7h7.101l-6.7 8.953z`})})}var IW={bottom:35,right:8,position:`absolute`,zIndex:2,background:`transparent`,border:0,padding:4,margin:0,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`};function LW(e){let{status:t,scanning:n,torchToggle:r}=e;return n?(0,H.jsx)(`button`,{type:`button`,"aria-label":t?`Turn flashlight off`:`Turn flashlight on`,"aria-pressed":t,onClick:()=>r(!t),style:IW,children:t?(0,H.jsx)(PW,{}):(0,H.jsx)(FW,{})}):null}function RW(e){let{className:t,disabled:n=!1,style:r}=e,i={stroke:n?`grey`:`yellow`,fill:n?`grey`:`yellow`,...r};return(0,H.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,width:`30px`,height:`30px`,viewBox:`0 0 24 24`,className:t,style:i,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{strokeWidth:.3,d:`M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-7.46,0.5l-1.5,0c-0.645,0 -0.643,-1 -0,-1l1.5,0l-0,-1.5c-0,-0.645 1,-0.643 1,0l-0,1.5l1.5,0c0.645,0 0.643,1 -0,1l-1.5,0l-0,1.5c-0,0.645 -1,0.643 -1,0l-0,-1.5Z`})})}function zW(e){let{className:t,disabled:n=!1,style:r}=e,i={stroke:n?`grey`:`yellow`,fill:n?`grey`:`yellow`,...r};return(0,H.jsx)(`svg`,{"aria-hidden":`true`,focusable:`false`,width:`30px`,height:`30px`,viewBox:`0 0 24 24`,className:t,style:i,xmlns:`http://www.w3.org/2000/svg`,children:(0,H.jsx)(`path`,{strokeWidth:.3,d:`M16.279,17.039c-1.396,1.209 -3.216,1.941 -5.206,1.941c-4.393,0 -7.96,-3.567 -7.96,-7.96c-0,-4.393 3.567,-7.96 7.96,-7.96c4.393,0 7.96,3.567 7.96,7.96c-0,2.044 -0.772,3.909 -2.04,5.319l0.165,0.165c1.194,1.194 2.388,2.388 3.583,3.582c0.455,0.456 -0.252,1.163 -0.707,0.708l-3.755,-3.755Zm1.754,-6.019c-0,-3.841 -3.119,-6.96 -6.96,-6.96c-3.842,0 -6.96,3.119 -6.96,6.96c-0,3.841 3.118,6.96 6.96,6.96c3.841,0 6.96,-3.119 6.96,-6.96Zm-4.96,-0.5c0.645,0 0.643,1 -0,1l-4,0c-0.645,0 -0.643,-1 -0,-1l4,0Z`})})}var BW={bottom:130,right:8,position:`absolute`,zIndex:2,background:`transparent`,border:0,padding:4,margin:0,cursor:`pointer`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`},VW={...BW,bottom:180};function HW(e){let{scanning:t,capabilities:n,onZoom:r,value:i}=e;if(!t)return null;let a=n.step>0?n.step:1;function o(){r(Math.min(i+a,n.max))}function s(){r(Math.max(i-a,n.min))}let c=i<=n.min,l=i>=n.max;return(0,H.jsxs)(z.Fragment,{children:[(0,H.jsx)(`button`,{type:`button`,"aria-label":`Zoom out`,disabled:c,onClick:s,style:{...BW,cursor:c?`default`:`pointer`},children:(0,H.jsx)(zW,{disabled:c})}),(0,H.jsx)(`button`,{type:`button`,"aria-label":`Zoom in`,disabled:l,onClick:o,style:{...VW,cursor:l?`default`:`pointer`},children:(0,H.jsx)(RW,{disabled:l})})]})}var UW={fullContainer:{width:`100%`,height:`100%`,position:`relative`,display:`flex`,alignItems:`center`,justifyContent:`center`,overflow:`hidden`},innerContainer:{width:`100%`,height:`100%`,display:`flex`,alignItems:`center`,justifyContent:`center`,position:`relative`},overlay:{position:`absolute`,top:0,right:0,bottom:0,left:0,pointerEvents:`none`,display:`flex`,alignItems:`center`,justifyContent:`center`},borderBox:{position:`relative`,width:`70%`,aspectRatio:`1 / 1`,border:`2px dashed rgba(239, 68, 68, 0.4)`,borderRadius:`0.5rem`},cornerTopLeft:{position:`absolute`,width:`15%`,height:`15%`,border:`4px solid #ef4444`,top:0,left:0,borderBottomColor:`transparent`,borderRightColor:`transparent`,borderTopLeftRadius:`0.5rem`},cornerTopRight:{position:`absolute`,width:`15%`,height:`15%`,border:`4px solid #ef4444`,top:0,right:0,borderBottomColor:`transparent`,borderLeftColor:`transparent`,borderTopRightRadius:`0.5rem`},cornerBottomLeft:{position:`absolute`,width:`15%`,height:`15%`,border:`4px solid #ef4444`,bottom:0,left:0,borderTopColor:`transparent`,borderRightColor:`transparent`,borderBottomLeftRadius:`0.5rem`},cornerBottomRight:{position:`absolute`,width:`15%`,height:`15%`,border:`4px solid #ef4444`,bottom:0,right:0,borderTopColor:`transparent`,borderLeftColor:`transparent`,borderBottomRightRadius:`0.5rem`}};function WW(e){let{scanning:t,capabilities:n,onOff:r,torch:i,zoom:a,startScanning:o,stopScanning:s}=e;return(0,H.jsx)(`div`,{style:UW.fullContainer,children:(0,H.jsxs)(`div`,{style:UW.innerContainer,children:[(0,H.jsx)(`div`,{style:UW.overlay,children:(0,H.jsxs)(`div`,{style:UW.borderBox,children:[(0,H.jsx)(`div`,{style:UW.cornerTopLeft}),(0,H.jsx)(`div`,{style:UW.cornerTopRight}),(0,H.jsx)(`div`,{style:UW.cornerBottomLeft}),(0,H.jsx)(`div`,{style:UW.cornerBottomRight})]})}),r&&(0,H.jsx)(NW,{scanning:t,startScanning:o,stopScanning:s}),i&&n.torch&&(0,H.jsx)(LW,{scanning:t,status:i.status,torchToggle:i.toggle}),a&&n.zoom&&(0,H.jsx)(HW,{scanning:t,capabilities:n.zoom,value:a.value,onZoom:a.onChange})]})})}var GW={position:`absolute`,width:`100%`,height:`100%`},KW={position:`absolute`,width:`100%`,height:`100%`},qW={position:`absolute`,width:`100%`,height:`100%`};function JW(e){if(e===null)return;let t=e.getContext(`2d`);t!==null&&t.clearRect(0,0,e.width,e.height)}function YW(e,t,n,r){if(n===null||t===null)return;if(e.length===0||r===void 0){JW(n);return}let i=t.offsetWidth,a=t.offsetHeight,o=t.videoWidth,s=t.videoHeight;if(o===0||s===0){JW(n);return}let c=Math.max(i/o,a/s),l=o*c,u=s*c,d=l/o,f=u/s,p=(i-l)/2,m=(a-u)/2,h=({x:e,y:t})=>({x:Math.floor(e*d),y:Math.floor(t*f)}),g=({x:e,y:t})=>({x:Math.floor(e+p),y:Math.floor(t+m)}),_=e.map(e=>{let{boundingBox:t,cornerPoints:n}=e,{x:r,y:i}=g(h({x:t.x,y:t.y})),{x:a,y:o}=h({x:t.width,y:t.height});return{...e,cornerPoints:n.map(e=>g(h(e))),boundingBox:DOMRectReadOnly.fromRect({x:r,y:i,width:a,height:o})}});n.width=i,n.height=a;let v=n.getContext(`2d`);v!==null&&r(_,v)}var XW=(0,z.forwardRef)(function(e,t){let{onScan:n,constraints:r,formats:i=[`any`],paused:a=!1,components:o,tracker:s,children:c,styles:l,classNames:u,allowMultiple:d,scanDelay:f,retryDelay:p,onError:m,sound:h,startTimeoutMs:g,settleDelayMs:_}=e,v=(0,z.useRef)(null),y=(0,z.useRef)(null),b=(0,z.useRef)(null),x=(0,z.useMemo)(()=>{let e={...SW,...r};return r?.deviceId&&delete e.facingMode,e},[r]),S=(0,z.useMemo)(()=>({...xW,...o}),[o]),C=s??S.tracker,[w,T]=(0,z.useState)(!1),[E,D]=(0,z.useState)(!1),[O,k]=(0,z.useState)(x),ee=hW({startTimeoutMs:g,settleDelayMs:_}),A=(0,z.useRef)(ee),j=(0,z.useRef)(n),M=(0,z.useRef)(m),te=(0,z.useRef)(C);(0,z.useEffect)(()=>{A.current=ee},[ee]),(0,z.useEffect)(()=>{j.current=n},[n]),(0,z.useEffect)(()=>{M.current=m},[m]),(0,z.useEffect)(()=>{te.current=C},[C]);let ne=(0,z.useCallback)(e=>{j.current?.(e)},[]),N=(0,z.useCallback)(e=>{M.current?.(e)},[]),{startScanning:P,stopScanning:re}=bW({videoElementRef:v,onScan:ne,onFound:(0,z.useCallback)(e=>{YW(e,v.current,b.current,te.current)},[]),onError:N,formats:i,retryDelay:p??(C===void 0?500:33),scanDelay:f,allowMultiple:d,sound:h});(0,z.useEffect)(()=>(T(!0),()=>{T(!1)}),[]),(0,z.useEffect)(()=>{kW(x,O)||k(x)},[x,O]);let F=(0,z.useMemo)(()=>({constraints:O,shouldStream:w&&!a}),[O,w,a]),I=(0,z.useCallback)(async()=>{let e=v.current,t=y.current;if(e===null||t===null)return;let n=t.getContext(`2d`);if(n!==null)try{F.shouldStream?(await A.current.stopCamera(),D(!1),await A.current.startCamera(e,{constraints:F.constraints}),D(!0)):(e.videoWidth>0&&e.videoHeight>0&&(t.width=e.videoWidth,t.height=e.videoHeight,n.drawImage(e,0,0,e.videoWidth,e.videoHeight)),await A.current.stopCamera(),D(!1))}catch(e){D(!1),M.current?.(vW(e))}},[F]);(0,z.useEffect)(()=>{I()},[I]);let ie=(0,z.useMemo)(()=>F.shouldStream&&E,[F.shouldStream,E]);(0,z.useEffect)(()=>(ie&&(JW(y.current),JW(b.current),P()),()=>{re()}),[ie,P,re]),(0,z.useImperativeHandle)(t,()=>({getVideoElement:()=>v.current,getStream:()=>A.current.getStream()}),[]);let L=(0,z.useMemo)(()=>({...CW.container,...l?.container}),[l?.container]),R=(0,z.useMemo)(()=>({...CW.video,...l?.video,visibility:a?`hidden`:`visible`}),[l?.video,a]),ae=(0,z.useMemo)(()=>({...KW,display:a?`block`:`none`}),[a]);return(0,H.jsxs)(`div`,{style:L,className:u?.container,children:[(0,H.jsx)(`video`,{ref:v,style:R,className:u?.video,autoPlay:!0,muted:!0,playsInline:!0}),(0,H.jsx)(`canvas`,{ref:y,style:ae}),(0,H.jsx)(`canvas`,{ref:b,style:qW}),(0,H.jsxs)(`div`,{style:GW,children:[S.finder&&(0,H.jsx)(WW,{scanning:E,capabilities:ee.capabilities,onOff:S.onOff,zoom:S.zoom&&ee.settings.zoom?{value:ee.settings.zoom,onChange:async e=>{try{await ee.updateConstraints({...O,advanced:[{zoom:e}]})}catch(e){M.current?.(vW(e))}}}:void 0,torch:S.torch?{status:ee.settings.torch??!1,toggle:async e=>{try{await ee.updateConstraints({...O,advanced:[{torch:e}]})}catch(e){M.current?.(vW(e))}}}:void 0,startScanning:async()=>await I(),stopScanning:async()=>{try{await ee.stopCamera(),JW(b.current),D(!1)}catch(e){M.current?.(vW(e))}}}),c]})]})}),ZW=`printWindow`;function QW(e){let t=document.createElement(`iframe`);return t.width=`${document.documentElement.clientWidth}px`,t.height=`${document.documentElement.clientHeight}px`,t.style.position=`absolute`,t.style.top=`-${document.documentElement.clientHeight+100}px`,t.style.left=`-${document.documentElement.clientWidth+100}px`,t.id=ZW,t.srcdoc=`<!DOCTYPE html>`,e&&(e.allow&&(t.allow=e.allow),e.referrerPolicy!==void 0&&(t.referrerPolicy=e.referrerPolicy),e.sandbox!==void 0&&(t.sandbox=e.sandbox)),t}function $W({level:e=`error`,messages:t,suppressErrors:n=!1}){n||(e===`error`?console.error(t):e===`warning`?console.warn(t):console.debug(t))}function eG(e,t){if(t||!e){let e=document.getElementById(ZW);e&&document.body.removeChild(e)}}function tG(e){return e instanceof Error?e:Error(`Unknown Error`)}function nG(e,t){let{documentTitle:n,onAfterPrint:r,onPrintError:i,preserveAfterPrint:a,print:o,suppressErrors:s}=t;setTimeout(()=>{if(e.contentWindow){let t=function(){r?.(),eG(a)};if(e.contentWindow.focus(),o)o(e).then(t).catch(e=>{i?i(`print`,tG(e)):$W({messages:["An error was thrown by the specified `print` function"],suppressErrors:s})});else{if(e.contentWindow.print){let t=e.contentDocument?.title??``,r=e.ownerDocument.title,i=typeof n==`function`?n():n;i&&(e.ownerDocument.title=i,e.contentDocument&&(e.contentDocument.title=i)),e.contentWindow.print(),i&&(e.ownerDocument.title=r,e.contentDocument&&(e.contentDocument.title=t))}else $W({messages:["Printing for this browser is not currently possible: the browser does not have a `print` method available for iframes."],suppressErrors:s});rG()?setTimeout(t,500):t()}}else $W({messages:["Printing failed because the `contentWindow` of the print iframe did not load. This is possibly an error with `react-to-print`. Please file an issue: https://github.com/MatthewHerbst/react-to-print/issues/"],suppressErrors:s})},500)}function rG(){return[/Android/i,/webOS/i,/iPhone/i,/iPad/i,/iPod/i,/BlackBerry/i,/Windows Phone/i].some(e=>(navigator.userAgent??navigator.vendor??(`opera`in window&&window.opera)).match(e))}function iG(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,null),r=n.nextNode();for(;r;)t.push(r),r=n.nextNode();return t}function aG(e,t,n){let r=iG(e),i=iG(t);if(r.length!==i.length)$W({messages:["When cloning shadow root content, source and target elements have different size. `onBeforePrint` likely resolved too early.",e,t],suppressErrors:n});else for(let e=0;e<r.length;e++){let t=r[e],a=i[e],o=t.shadowRoot;if(o!==null){let e=a.attachShadow({mode:o.mode});e.innerHTML=o.innerHTML,aG(o,e,n)}}}var oG=`
|
|
261
|
+
@page {
|
|
262
|
+
/* Remove browser default header (title) and footer (url) */
|
|
263
|
+
margin: 0;
|
|
264
|
+
}
|
|
265
|
+
@media print {
|
|
266
|
+
body {
|
|
267
|
+
/* Tell browsers to print background colors */
|
|
268
|
+
color-adjust: exact; /* Firefox. This is an older version of "print-color-adjust" */
|
|
269
|
+
print-color-adjust: exact; /* Firefox/Safari */
|
|
270
|
+
-webkit-print-color-adjust: exact; /* Chrome/Safari/Edge/Opera */
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
`;function sG(e,t,n){let{contentNode:r,clonedContentNode:i,clonedImgNodes:a,clonedVideoNodes:o,numResourcesToLoad:s,originalCanvasNodes:c}=t,{bodyClass:l,fonts:u,ignoreGlobalStyles:d,pageStyle:f,nonce:p,suppressErrors:m,copyShadowRoots:h}=n,g=[],_=[];function v(t,r){g.includes(t)?$W({level:`debug`,messages:[`Tried to mark a resource that has already been handled`,t],suppressErrors:m}):(r?($W({messages:[`"react-to-print" was unable to load a resource but will continue attempting to print the page`,...r],suppressErrors:m}),_.push(t)):g.push(t),g.length+_.length===s&&nG(e,n))}e.onload=null;let y=e.contentDocument??e.contentWindow?.document;if(y){let t=y.body.appendChild(i);h&&aG(r,t,!!m),u&&(e.contentDocument?.fonts&&e.contentWindow?.FontFace?u.forEach(t=>{let n=new FontFace(t.family,t.source,{weight:t.weight,style:t.style});e.contentDocument.fonts.add(n),n.loaded.then(()=>{v(n)}).catch(e=>{v(n,[`Failed loading the font:`,n,`Load error:`,tG(e)])})}):(u.forEach(e=>{v(e)}),$W({messages:[`"react-to-print" is not able to load custom fonts because the browser does not support the FontFace API but will continue attempting to print the page`],suppressErrors:m})));let n=f??oG,s=y.createElement(`style`);p&&(s.setAttribute(`nonce`,p),y.head.setAttribute(`nonce`,p)),s.appendChild(y.createTextNode(n)),y.head.appendChild(s),l&&y.body.classList.add(...l.split(` `));let g=y.querySelectorAll(`canvas`);for(let e=0;e<c.length;++e){let t=c[e],n=g[e];if(n===void 0){$W({messages:["A canvas element could not be copied for printing, has it loaded? `onBeforePrint` likely resolved too early.",t],suppressErrors:m});continue}let r=n.getContext(`2d`);r&&r.drawImage(t,0,0)}for(let e=0;e<a.length;e++){let t=a[e],n=t.getAttribute(`src`);if(!n)v(t,[`Found an <img> tag with an empty "src" attribute. This prevents pre-loading it.`,t]);else{let e=new Image;e.onload=()=>{v(t)},e.onerror=(e,n,r,i,a)=>{v(t,[`Error loading <img>`,t,`Error`,a])},e.src=n}}for(let e=0;e<o.length;e++){let t=o[e];t.preload=`auto`;let n=t.getAttribute(`poster`);if(n){let e=new Image;e.onload=()=>{v(t)},e.onerror=(e,r,i,a,o)=>{v(t,[`Error loading video poster`,n,`for video`,t,`Error:`,o])},e.src=n}else t.readyState>=2?v(t):t.src?(t.onloadeddata=()=>{v(t)},t.onerror=(e,n,r,i,a)=>{v(t,[`Error loading video`,t,`Error`,a])},t.onstalled=()=>{v(t,[`Loading video stalled, skipping`,t])}):v(t,["Error loading video, `src` is empty",t])}let _=`select`,b=r.querySelectorAll(_),x=y.querySelectorAll(_);for(let e=0;e<b.length;e++)x[e].value=b[e].value;if(!d){let e=document.querySelectorAll(`style, link[rel~='stylesheet'], link[as='style']`);for(let t=0,n=e.length;t<n;++t){let n=e[t];if(n.tagName.toLowerCase()===`style`){let e=y.createElement(n.tagName),r=n.sheet;if(r){let i=``;try{let e=r.cssRules.length;for(let t=0;t<e;++t)typeof r.cssRules[t].cssText==`string`&&(i+=`${r.cssRules[t].cssText}\r
|
|
274
|
+
`)}catch(e){$W({messages:["A stylesheet could not be accessed. This is likely due to the stylesheet having cross-origin imports, and many browsers block script access to cross-origin stylesheets. See https://github.com/MatthewHerbst/react-to-print/issues/429 for details. You may be able to load the sheet by both marking the stylesheet with the cross `crossorigin` attribute, and setting the `Access-Control-Allow-Origin` header on the server serving the stylesheet. Alternatively, host the stylesheet on your domain to avoid this issue entirely.",n,`Original error: ${tG(e).message}`],level:`warning`})}e.setAttribute(`id`,`react-to-print-${t}`),p&&e.setAttribute(`nonce`,p),e.appendChild(y.createTextNode(i)),y.head.appendChild(e)}}else if(n.getAttribute(`href`)){if(n.hasAttribute(`disabled`))$W({messages:["`react-to-print` encountered a <link> tag with a `disabled` attribute and will ignore it. Note that the `disabled` attribute is deprecated, and some browsers ignore it. You should stop using it. https://developer.mozilla.org/en-US/docs/Web/HTML/Element/link#attr-disabled. The <link> is:",n],level:`warning`}),v(n);else{let e=y.createElement(n.tagName);for(let t=0,r=n.attributes.length;t<r;++t){let r=n.attributes[t];r&&e.setAttribute(r.nodeName,r.nodeValue??``)}e.onload=()=>{v(e)},e.onerror=(t,n,r,i,a)=>{v(e,[`Failed to load`,e,`Error:`,a])},p&&e.setAttribute(`nonce`,p),y.head.appendChild(e)}}else $W({messages:["`react-to-print` encountered a <link> tag with an empty `href` attribute. In addition to being invalid HTML, this can cause problems in many browsers, and so the <link> was not loaded. The <link> is:",n],level:`warning`}),v(n)}}}s===0&&nG(e,n)}function cG(e,t,n){e.onload=()=>{sG(e,t,n)},document.body.appendChild(e)}function lG({contentRef:e,optionalContent:t,suppressErrors:n}){if(t&&typeof t==`function`)return e&&$W({level:`warning`,messages:['"react-to-print" received a `contentRef` option and an optional-content param passed to its callback. The `contentRef` option will be ignored.']}),t();if(e)return e.current;$W({messages:['"react-to-print" did not receive a `contentRef` option or a optional-content param pass to its callback.'],suppressErrors:n})}function uG(e,t){let{contentRef:n,fonts:r,ignoreGlobalStyles:i,suppressErrors:a}=t,o=lG({contentRef:n,optionalContent:e,suppressErrors:a});if(!o)return;let s=o.cloneNode(!0),c=document.querySelectorAll(`link[rel~='stylesheet'], link[as='style']`),l=s.querySelectorAll(`img`),u=s.querySelectorAll(`video`),d=r?r.length:0;return{contentNode:o,clonedContentNode:s,clonedImgNodes:l,clonedVideoNodes:u,numResourcesToLoad:(i?0:c.length)+l.length+u.length+d,originalCanvasNodes:o.querySelectorAll(`canvas`)}}function dG({bodyClass:e,contentRef:t,copyShadowRoots:n,documentTitle:r,fonts:i,ignoreGlobalStyles:a,nonce:o,onAfterPrint:s,onBeforePrint:c,onPrintError:l,pageStyle:u,preserveAfterPrint:d,print:f,printIframeProps:p,suppressErrors:m}){return(0,z.useCallback)(h=>{eG(d,!0);function g(){let c={bodyClass:e,contentRef:t,copyShadowRoots:n,documentTitle:r,fonts:i,ignoreGlobalStyles:a,nonce:o,onAfterPrint:s,onPrintError:l,pageStyle:u,preserveAfterPrint:d,print:f,suppressErrors:m},g=QW(p),_=uG(h,c);_?cG(g,_,c):$W({messages:[`There is nothing to print`],suppressErrors:m})}c?c().then(()=>{g()}).catch(e=>{l?.(`onBeforePrint`,tG(e))}):g()},[e,t,n,r,i,a,o,s,c,l,u,d,p,f,m])}var fG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function e(n,r){t(this,e),this.data=n,this.text=r.text||n,this.options=r}})),pG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CODE39=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(fG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){o(n,e);function n(e,t){return i(this,n),e=e.toUpperCase(),t.mod43&&(e+=f(m(e))),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`encode`,value:function(){for(var e=u(`*`),t=0;t<this.data.length;t++)e+=u(this.data[t])+`0`;return e+=u(`*`),{data:e,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9A-Z\-\.\ \$\/\+\%]+$/)!==-1}}]),n}(n.default),c=`0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ-. $/+%*`.split(``),l=[20957,29783,23639,30485,20951,29813,23669,20855,29789,23645,29975,23831,30533,22295,30149,24005,21623,29981,23837,22301,30023,23879,30545,22343,30161,24017,21959,30065,23921,22385,29015,18263,29141,17879,29045,18293,17783,29021,18269,17477,17489,17681,20753,35770];function u(e){return d(p(e))}function d(e){return l[e].toString(2)}function f(e){return c[e]}function p(e){return c.indexOf(e)}function m(e){for(var t=0,n=0;n<e.length;n++)t+=p(e[n]);return t%=43,t}e.CODE39=s})),mG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t;function n(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var r=e.SET_A=0,i=e.SET_B=1,a=e.SET_C=2;e.SHIFT=98;var o=e.START_A=103,s=e.START_B=104,c=e.START_C=105;e.MODULO=103,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(t={},n(t,o,r),n(t,s,i),n(t,c,a),t),e.SWAP={101:r,100:i,99:a},e.A_START_CHAR=`Ð`,e.B_START_CHAR=`Ñ`,e.C_START_CHAR=`Ò`,e.A_CHARS=`[\0-_È-Ï]`,e.B_CHARS=`[ -È-Ï]`,e.C_CHARS=`(Ï*[0-9]{2}Ï*)`,e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,10011101100,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,11101011110,11110101110,11010000100,1101001e4,11010011100,1100011101011]})),hG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(fG()),r=mG();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){a(this,n);var r=o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.substring(1),t));return r.bytes=e.split(``).map(function(e){return e.charCodeAt(0)}),r}return t(n,[{key:`valid`,value:function(){return/^[\x00-\x7F\xC8-\xD3]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.bytes,t=e.shift()-105,i=r.SET_BY_CODE[t];if(i===void 0)throw RangeError(`The encoding does not start with a start character.`);this.shouldEncodeAsEan128()===!0&&e.unshift(r.FNC1);var a=n.next(e,1,i);return{text:this.text===this.data?this.text.replace(/[^\x20-\x7E]/g,``):this.text,data:n.getBar(t)+a.result+n.getBar((a.checksum+t)%r.MODULO)+n.getBar(r.STOP)}}},{key:`shouldEncodeAsEan128`,value:function(){var e=this.options.ean128||!1;return typeof e==`string`&&(e=e.toLowerCase()===`true`),e}}],[{key:`getBar`,value:function(e){return r.BARS[e]?r.BARS[e].toString():``}},{key:`correctIndex`,value:function(e,t){if(t===r.SET_A){var n=e.shift();return n<32?n+64:n-32}return t===r.SET_B?e.shift()-32:(e.shift()-48)*10+e.shift()-48}},{key:`next`,value:function(e,t,i){if(!e.length)return{result:``,checksum:0};var a=void 0,o=void 0;if(e[0]>=200){o=e.shift()-105;var s=r.SWAP[o];s===void 0?((i===r.SET_A||i===r.SET_B)&&o===r.SHIFT&&(e[0]=i===r.SET_A?e[0]>95?e[0]-96:e[0]:e[0]<32?e[0]+96:e[0]),a=n.next(e,t+1,i)):a=n.next(e,t+1,s)}else o=n.correctIndex(e,i),a=n.next(e,t+1,i);var c=n.getBar(o),l=o*t;return{result:c+a.result,checksum:l+a.checksum}}}]),n}(n.default)})),gG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=mG(),n=function(e){return e.match(RegExp(`^`+t.A_CHARS+`*`))[0].length},r=function(e){return e.match(RegExp(`^`+t.B_CHARS+`*`))[0].length},i=function(e){return e.match(RegExp(`^`+t.C_CHARS+`*`))[0]};function a(e,n){var r=n?t.A_CHARS:t.B_CHARS,i=e.match(RegExp(`^(`+r+`+?)(([0-9]{2}){2,})([^0-9]|$)`));if(i)return i[1]+`Ì`+o(e.substring(i[1].length));var s=e.match(RegExp(`^`+r+`+`))[0];return s.length===e.length?e:s+String.fromCharCode(n?205:206)+a(e.substring(s.length),!n)}function o(e){var t=i(e),o=t.length;if(o===e.length)return e;e=e.substring(o);var s=n(e)>=r(e);return t+String.fromCharCode(s?206:205)+a(e,s)}e.default=function(e){var s=void 0;if(i(e).length>=2)s=t.C_START_CHAR+o(e);else{var c=n(e)>r(e);s=(c?t.A_START_CHAR:t.B_START_CHAR)+a(e,c)}return s.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,function(e,t){return`Ë`+t})}})),_G=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(hG()),n=r(gG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){if(i(this,t),/^[\x00-\x7F\xC8-\xD3]+$/.test(e))var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,(0,n.default)(e),r));else var o=a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return a(o)}return t}(t.default)})),vG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(hG()),r=mG();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){return a(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.A_START_CHAR+e,t))}return t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.A_CHARS+`+$`).test(this.data)}}]),n}(n.default)})),yG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(hG()),r=mG();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){return a(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.B_START_CHAR+e,t))}return t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.B_CHARS+`+$`).test(this.data)}}]),n}(n.default)})),bG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(hG()),r=mG();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(n,e);function n(e,t){return a(this,n),o(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,r.C_START_CHAR+e,t))}return t(n,[{key:`valid`,value:function(){return RegExp(`^`+r.C_CHARS+`+$`).test(this.data)}}]),n}(n.default)})),xG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CODE128C=e.CODE128B=e.CODE128A=e.CODE128=void 0;var t=a(_G()),n=a(vG()),r=a(yG()),i=a(bG());function a(e){return e&&e.__esModule?e:{default:e}}e.CODE128=t.default,e.CODE128A=n.default,e.CODE128B=r.default,e.CODE128C=i.default})),SG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SIDE_BIN=`101`,e.MIDDLE_BIN=`01010`,e.BINARIES={L:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],G:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`],R:[`1110010`,`1100110`,`1101100`,`1000010`,`1011100`,`1001110`,`1010000`,`1000100`,`1001000`,`1110100`],O:[`0001101`,`0011001`,`0010011`,`0111101`,`0100011`,`0110001`,`0101111`,`0111011`,`0110111`,`0001011`],E:[`0100111`,`0110011`,`0011011`,`0100001`,`0011101`,`0111001`,`0000101`,`0010001`,`0001001`,`0010111`]},e.EAN2_STRUCTURE=[`LL`,`LG`,`GL`,`GG`],e.EAN5_STRUCTURE=[`GGLLL`,`GLGLL`,`GLLGL`,`GLLLG`,`LGGLL`,`LLGGL`,`LLLGG`,`LGLGL`,`LGLLG`,`LLGLG`],e.EAN13_STRUCTURE=[`LLLLLL`,`LLGLGG`,`LLGGLG`,`LLGGGL`,`LGLLGG`,`LGGLLG`,`LGGGLL`,`LGLGLG`,`LGLGGL`,`LGGLGL`]})),CG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=SG();e.default=function(e,n,r){var i=e.split(``).map(function(e,r){return t.BINARIES[n[r]]}).map(function(t,n){return t?t[e[n]]:``});if(r){var a=e.length-1;i=i.map(function(e,t){return t<a?e+r:e})}return i.join(``)}})),wG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=SG(),r=a(CG()),i=a(fG());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){c(i,e);function i(e,t){o(this,i);var n=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.fontSize=!t.flat&&t.fontSize>t.width*10?t.width*10:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return t(i,[{key:`encode`,value:function(){return this.options.flat?this.encodeFlat():this.encodeGuarded()}},{key:`leftText`,value:function(e,t){return this.text.substr(e,t)}},{key:`leftEncode`,value:function(e,t){return(0,r.default)(e,t)}},{key:`rightText`,value:function(e,t){return this.text.substr(e,t)}},{key:`rightEncode`,value:function(e,t){return(0,r.default)(e,t)}},{key:`encodeGuarded`,value:function(){var e={fontSize:this.fontSize},t={height:this.guardHeight};return[{data:n.SIDE_BIN,options:t},{data:this.leftEncode(),text:this.leftText(),options:e},{data:n.MIDDLE_BIN,options:t},{data:this.rightEncode(),text:this.rightText(),options:e},{data:n.SIDE_BIN,options:t}]}},{key:`encodeFlat`,value:function(){return{data:[n.SIDE_BIN,this.leftEncode(),n.MIDDLE_BIN,this.rightEncode(),n.SIDE_BIN].join(``),text:this.text}}}]),i}(i.default)})),TG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=SG(),i=a(wG());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){return(10-e.substr(0,12).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t*3:e+t},0)%10)%10};e.default=function(e){c(i,e);function i(e,t){o(this,i),e.search(/^[0-9]{12}$/)!==-1&&(e+=l(e));var n=s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t));return n.lastChar=t.lastChar,n}return t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{13}$/)!==-1&&+this.data[12]===l(this.data)}},{key:`leftText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftText`,this).call(this,1,6)}},{key:`leftEncode`,value:function(){var e=this.data.substr(1,6),t=r.EAN13_STRUCTURE[this.data[0]];return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`leftEncode`,this).call(this,e,t)}},{key:`rightText`,value:function(){return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightText`,this).call(this,7,6)}},{key:`rightEncode`,value:function(){var e=this.data.substr(7,6);return n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`rightEncode`,this).call(this,e,`RRRRRR`)}},{key:`encodeGuarded`,value:function(){var e=n(i.prototype.__proto__||Object.getPrototypeOf(i.prototype),`encodeGuarded`,this).call(this);return this.options.displayValue&&(e.unshift({data:`000000000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),this.options.lastChar&&(e.push({data:`00`}),e.push({data:`00000`,text:this.options.lastChar,options:{fontSize:this.fontSize}}))),e}}]),i}(i.default)})),EG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=function e(t,n,r){t===null&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(i===void 0){var a=Object.getPrototypeOf(t);return a===null?void 0:e(a,n,r)}if(`value`in i)return i.value;var o=i.get;return o===void 0?void 0:o.call(r)},r=i(wG());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){return(10-e.substr(0,7).split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t:e+t*3},0)%10)%10};e.default=function(e){s(r,e);function r(e,t){return a(this,r),e.search(/^[0-9]{7}$/)!==-1&&(e+=c(e)),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{8}$/)!==-1&&+this.data[7]===c(this.data)}},{key:`leftText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftText`,this).call(this,0,4)}},{key:`leftEncode`,value:function(){var e=this.data.substr(0,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`leftEncode`,this).call(this,e,`LLLL`)}},{key:`rightText`,value:function(){return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightText`,this).call(this,4,4)}},{key:`rightEncode`,value:function(){var e=this.data.substr(4,4);return n(r.prototype.__proto__||Object.getPrototypeOf(r.prototype),`rightEncode`,this).call(this,e,`RRRR`)}}]),r}(r.default)})),DG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=SG(),r=a(CG()),i=a(fG());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=function(e){return e.split(``).map(function(e){return+e}).reduce(function(e,t,n){return n%2?e+t*9:e+t*3},0)%10};e.default=function(e){c(i,e);function i(e,t){return o(this,i),s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{5}$/)!==-1}},{key:`encode`,value:function(){var e=n.EAN5_STRUCTURE[l(this.data)];return{data:`1011`+(0,r.default)(this.data,e,`01`),text:this.text}}}]),i}(i.default)})),OG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=SG(),r=a(CG()),i=a(fG());function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){c(i,e);function i(e,t){return o(this,i),s(this,(i.__proto__||Object.getPrototypeOf(i)).call(this,e,t))}return t(i,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{2}$/)!==-1}},{key:`encode`,value:function(){var e=n.EAN2_STRUCTURE[parseInt(this.data)%4];return{data:`1011`+(0,r.default)(this.data,e,`01`),text:this.text}}}]),i}(i.default)})),kG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();e.checksum=l;var n=i(CG()),r=i(fG());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var c=function(e){s(r,e);function r(e,t){a(this,r),e.search(/^[0-9]{11}$/)!==-1&&(e+=l(e));var n=o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));return n.displayValue=t.displayValue,n.fontSize=t.fontSize>t.width*10?t.width*10:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return t(r,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{12}$/)!==-1&&this.data[11]==l(this.data)}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=(0,n.default)(this.data.substr(0,6),`LLLLLL`),e+=`01010`,e+=(0,n.default)(this.data.substr(6,6),`RRRRRR`),e+=`101`,{data:e,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text.substr(0,1),options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`+(0,n.default)(this.data[0],`L`),options:{height:this.guardHeight}}),e.push({data:(0,n.default)(this.data.substr(1,5),`LLLLL`),text:this.text.substr(1,5),options:{fontSize:this.fontSize}}),e.push({data:`01010`,options:{height:this.guardHeight}}),e.push({data:(0,n.default)(this.data.substr(6,5),`RRRRR`),text:this.text.substr(6,5),options:{fontSize:this.fontSize}}),e.push({data:(0,n.default)(this.data[11],`R`)+`101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text.substr(11,1),options:{textAlign:`right`,fontSize:this.fontSize}}),e}}]),r}(r.default);function l(e){for(var t=0,n=1;n<11;n+=2)t+=parseInt(e[n]);for(n=0;n<11;n+=2)t+=parseInt(e[n])*3;return(10-t%10)%10}e.default=c})),AG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=a(CG()),r=a(fG()),i=kG();function a(e){return e&&e.__esModule?e:{default:e}}function o(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function s(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function c(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var l=[`XX00000XXX`,`XX10000XXX`,`XX20000XXX`,`XXX00000XX`,`XXXX00000X`,`XXXXX00005`,`XXXXX00006`,`XXXXX00007`,`XXXXX00008`,`XXXXX00009`],u=[[`EEEOOO`,`OOOEEE`],[`EEOEOO`,`OOEOEE`],[`EEOOEO`,`OOEEOE`],[`EEOOOE`,`OOEEEO`],[`EOEEOO`,`OEOOEE`],[`EOOEEO`,`OEEOOE`],[`EOOOEE`,`OEEEOO`],[`EOEOEO`,`OEOEOE`],[`EOEOOE`,`OEOEEO`],[`EOOEOE`,`OEEOEO`]],d=function(e){c(r,e);function r(e,t){o(this,r);var n=s(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t));if(n.isValid=!1,e.search(/^[0-9]{6}$/)!==-1)n.middleDigits=e,n.upcA=f(e,`0`),n.text=t.text||``+n.upcA[0]+e+n.upcA[n.upcA.length-1],n.isValid=!0;else if(e.search(/^[01][0-9]{7}$/)!==-1){if(n.middleDigits=e.substring(1,e.length-1),n.upcA=f(n.middleDigits,e[0]),n.upcA[n.upcA.length-1]===e[e.length-1])n.isValid=!0;else return s(n)}else return s(n);return n.displayValue=t.displayValue,n.fontSize=t.fontSize>t.width*10?t.width*10:t.fontSize,n.guardHeight=t.height+n.fontSize/2+t.textMargin,n}return t(r,[{key:`valid`,value:function(){return this.isValid}},{key:`encode`,value:function(){return this.options.flat?this.flatEncoding():this.guardedEncoding()}},{key:`flatEncoding`,value:function(){var e=``;return e+=`101`,e+=this.encodeMiddleDigits(),e+=`010101`,{data:e,text:this.text}}},{key:`guardedEncoding`,value:function(){var e=[];return this.displayValue&&e.push({data:`00000000`,text:this.text[0],options:{textAlign:`left`,fontSize:this.fontSize}}),e.push({data:`101`,options:{height:this.guardHeight}}),e.push({data:this.encodeMiddleDigits(),text:this.text.substring(1,7),options:{fontSize:this.fontSize}}),e.push({data:`010101`,options:{height:this.guardHeight}}),this.displayValue&&e.push({data:`00000000`,text:this.text[7],options:{textAlign:`right`,fontSize:this.fontSize}}),e}},{key:`encodeMiddleDigits`,value:function(){var e=this.upcA[0],t=this.upcA[this.upcA.length-1],r=u[parseInt(t)][parseInt(e)];return(0,n.default)(this.middleDigits,r)}}]),r}(r.default);function f(e,t){for(var n=l[parseInt(e[e.length-1])],r=``,a=0,o=0;o<n.length;o++){var s=n[o];r+=s===`X`?e[a++]:s}return r=``+t+r,``+r+(0,i.checksum)(r)}e.default=d})),jG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.UPCE=e.UPC=e.EAN2=e.EAN5=e.EAN8=e.EAN13=void 0;var t=s(TG()),n=s(EG()),r=s(DG()),i=s(OG()),a=s(kG()),o=s(AG());function s(e){return e&&e.__esModule?e:{default:e}}e.EAN13=t.default,e.EAN8=n.default,e.EAN5=r.default,e.EAN2=i.default,e.UPC=a.default,e.UPCE=o.default})),MG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.START_BIN=`1010`,e.END_BIN=`11101`,e.BINARIES=[`00110`,`10001`,`01001`,`11000`,`00101`,`10100`,`01100`,`00011`,`10010`,`01010`]})),NG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=MG(),r=i(fG());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(r,e);function r(){return a(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).apply(this,arguments))}return t(r,[{key:`valid`,value:function(){return this.data.search(/^([0-9]{2})+$/)!==-1}},{key:`encode`,value:function(){var e=this,t=this.data.match(/.{2}/g).map(function(t){return e.encodePair(t)}).join(``);return{data:n.START_BIN+t+n.END_BIN,text:this.text}}},{key:`encodePair`,value:function(e){var t=n.BINARIES[e[1]];return n.BINARIES[e[0]].split(``).map(function(e,n){return(e===`1`?`111`:`1`)+(t[n]===`1`?`000`:`0`)}).join(``)}}]),r}(r.default)})),PG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(NG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){var t=e.substr(0,13).split(``).map(function(e){return parseInt(e,10)}).reduce(function(e,t,n){return e+t*(3-n%2*2)},0);return Math.ceil(t/10)*10-t};e.default=function(e){o(n,e);function n(e,t){return i(this,n),e.search(/^[0-9]{13}$/)!==-1&&(e+=s(e)),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`valid`,value:function(){return this.data.search(/^[0-9]{14}$/)!==-1&&+this.data[13]===s(this.data)}}]),n}(n.default)})),FG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.ITF14=e.ITF=void 0;var t=r(NG()),n=r(PG());function r(e){return e&&e.__esModule?e:{default:e}}e.ITF=t.default,e.ITF14=n.default})),IG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(fG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var s=function(e){o(n,e);function n(e,t){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`encode`,value:function(){for(var e=`110`,t=0;t<this.data.length;t++){var n=parseInt(this.data[t]).toString(2);n=c(n,4-n.length);for(var r=0;r<n.length;r++)e+=n[r]==`0`?`100`:`110`}return e+=`1001`,{data:e,text:this.text}}},{key:`valid`,value:function(){return this.data.search(/^[0-9]+$/)!==-1}}]),n}(n.default);function c(e,t){for(var n=0;n<t;n++)e=`0`+e;return e}e.default=s})),LG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.mod10=t,e.mod11=n;function t(e){for(var t=0,n=0;n<e.length;n++){var r=parseInt(e[n]);(n+e.length)%2==0?t+=r:t+=r*2%10+Math.floor(r*2/10)}return(10-t%10)%10}function n(e){for(var t=0,n=[2,3,4,5,6,7],r=0;r<e.length;r++){var i=parseInt(e[e.length-1-r]);t+=n[r%n.length]*i}return(11-t%11)%11}})),RG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(IG()),n=LG();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod10)(e),r))}return t}(t.default)})),zG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(IG()),n=LG();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e+(0,n.mod11)(e),r))}return t}(t.default)})),BG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(IG()),n=LG();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),e+=(0,n.mod10)(e),e+=(0,n.mod10)(e),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return t}(t.default)})),VG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(IG()),n=LG();function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(t,e);function t(e,r){return i(this,t),e+=(0,n.mod11)(e),e+=(0,n.mod10)(e),a(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return t}(t.default)})),HG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.MSI1110=e.MSI1010=e.MSI11=e.MSI10=e.MSI=void 0;var t=o(IG()),n=o(RG()),r=o(zG()),i=o(BG()),a=o(VG());function o(e){return e&&e.__esModule?e:{default:e}}e.MSI=t.default,e.MSI10=n.default,e.MSI11=r.default,e.MSI1010=i.default,e.MSI1110=a.default})),UG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.pharmacode=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(fG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.pharmacode=function(e){o(n,e);function n(e,t){i(this,n);var r=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return r.number=parseInt(e,10),r}return t(n,[{key:`encode`,value:function(){for(var e=this.number,t=``;!isNaN(e)&&e!=0;)e%2==0?(t=`11100`+t,e=(e-2)/2):(t=`100`+t,e=(e-1)/2);return t=t.slice(0,-2),{data:t,text:this.text}}},{key:`valid`,value:function(){return this.number>=3&&this.number<=131070}}]),n}(n.default)})),WG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.codabar=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(fG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.codabar=function(e){o(n,e);function n(e,t){i(this,n),e.search(/^[0-9\-\$\:\.\+\/]+$/)===0&&(e=`A`+e+`A`);var r=a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e.toUpperCase(),t));return r.text=r.options.text||r.text.replace(/[A-D]/g,``),r}return t(n,[{key:`valid`,value:function(){return this.data.search(/^[A-D][0-9\-\$\:\.\+\/]+[A-D]$/)!==-1}},{key:`encode`,value:function(){for(var e=[],t=this.getEncodings(),n=0;n<this.data.length;n++)e.push(t[this.data.charAt(n)]),n!==this.data.length-1&&e.push(`0`);return{text:this.text,data:e.join(``)}}},{key:`getEncodings`,value:function(){return{0:`101010011`,1:`101011001`,2:`101001011`,3:`110010101`,4:`101101001`,5:`110101001`,6:`100101011`,7:`100101101`,8:`100110101`,9:`110100101`,"-":`101001101`,$:`101100101`,":":`1101011011`,"/":`1101101011`,".":`1101101101`,"+":`1011011011`,A:`1011001001`,B:`1001001011`,C:`1010010011`,D:`1010011001`}}}]),n}(n.default)})),GG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.SYMBOLS=`0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,U,V,W,X,Y,Z,-,., ,$,/,+,%,($),(%),(/),(+),ÿ`.split(`,`),e.BINARIES=`100010100.101001000.101000100.101000010.100101000.100100100.100100010.101010000.100010010.100001010.110101000.110100100.110100010.110010100.110010010.110001010.101101000.101100100.101100010.100110100.100011010.101011000.101001100.101000110.100101100.100010110.110110100.110110010.110101100.110100110.110010110.110011010.101101100.101100110.100110110.100111010.100101110.111010100.111010010.111001010.101101110.101110110.110101110.100100110.111011010.111010110.100110010.101011110`.split(`.`),e.MULTI_SYMBOLS={"\0":[`(%)`,`U`],"":[`($)`,`A`],"":[`($)`,`B`],"":[`($)`,`C`],"":[`($)`,`D`],"":[`($)`,`E`],"":[`($)`,`F`],"\x07":[`($)`,`G`],"\b":[`($)`,`H`]," ":[`($)`,`I`],"\n":[`($)`,`J`],"\v":[`($)`,`K`],"\f":[`($)`,`L`],"\r":[`($)`,`M`],"":[`($)`,`N`],"":[`($)`,`O`],"":[`($)`,`P`],"":[`($)`,`Q`],"":[`($)`,`R`],"":[`($)`,`S`],"":[`($)`,`T`],"":[`($)`,`U`],"":[`($)`,`V`],"":[`($)`,`W`],"":[`($)`,`X`],"":[`($)`,`Y`],"":[`($)`,`Z`],"\x1B":[`(%)`,`A`],"":[`(%)`,`B`],"":[`(%)`,`C`],"":[`(%)`,`D`],"":[`(%)`,`E`],"!":[`(/)`,`A`],'"':[`(/)`,`B`],"#":[`(/)`,`C`],"&":[`(/)`,`F`],"'":[`(/)`,`G`],"(":[`(/)`,`H`],")":[`(/)`,`I`],"*":[`(/)`,`J`],",":[`(/)`,`L`],":":[`(/)`,`Z`],";":[`(%)`,`F`],"<":[`(%)`,`G`],"=":[`(%)`,`H`],">":[`(%)`,`I`],"?":[`(%)`,`J`],"@":[`(%)`,`V`],"[":[`(%)`,`K`],"\\":[`(%)`,`L`],"]":[`(%)`,`M`],"^":[`(%)`,`N`],_:[`(%)`,`O`],"`":[`(%)`,`W`],a:[`(+)`,`A`],b:[`(+)`,`B`],c:[`(+)`,`C`],d:[`(+)`,`D`],e:[`(+)`,`E`],f:[`(+)`,`F`],g:[`(+)`,`G`],h:[`(+)`,`H`],i:[`(+)`,`I`],j:[`(+)`,`J`],k:[`(+)`,`K`],l:[`(+)`,`L`],m:[`(+)`,`M`],n:[`(+)`,`N`],o:[`(+)`,`O`],p:[`(+)`,`P`],q:[`(+)`,`Q`],r:[`(+)`,`R`],s:[`(+)`,`S`],t:[`(+)`,`T`],u:[`(+)`,`U`],v:[`(+)`,`V`],w:[`(+)`,`W`],x:[`(+)`,`X`],y:[`(+)`,`Y`],z:[`(+)`,`Z`],"{":[`(%)`,`P`],"|":[`(%)`,`Q`],"}":[`(%)`,`R`],"~":[`(%)`,`S`],"":[`(%)`,`T`]}})),KG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=GG(),r=i(fG());function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function o(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function s(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){s(r,e);function r(e,t){return a(this,r),o(this,(r.__proto__||Object.getPrototypeOf(r)).call(this,e,t))}return t(r,[{key:`valid`,value:function(){return/^[0-9A-Z\-. $/+%]+$/.test(this.data)}},{key:`encode`,value:function(){var e=this.data.split(``).flatMap(function(e){return n.MULTI_SYMBOLS[e]||e}),t=e.map(function(e){return r.getEncoding(e)}).join(``),i=r.checksum(e,20),a=r.checksum(e.concat(i),15);return{text:this.text,data:r.getEncoding(`ÿ`)+t+r.getEncoding(i)+r.getEncoding(a)+r.getEncoding(`ÿ`)+`1`}}}],[{key:`getEncoding`,value:function(e){return n.BINARIES[r.symbolValue(e)]}},{key:`getSymbol`,value:function(e){return n.SYMBOLS[e]}},{key:`symbolValue`,value:function(e){return n.SYMBOLS.indexOf(e)}},{key:`checksum`,value:function(e,t){var n=e.slice().reverse().reduce(function(e,n,i){var a=i%t+1;return e+r.symbolValue(n)*a},0);return r.getSymbol(n%47)}}]),r}(r.default)})),qG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(KG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.default=function(e){o(n,e);function n(e,t){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`valid`,value:function(){return/^[\x00-\x7f]+$/.test(this.data)}}]),n}(n.default)})),JG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.CODE93FullASCII=e.CODE93=void 0;var t=r(KG()),n=r(qG());function r(e){return e&&e.__esModule?e:{default:e}}e.CODE93=t.default,e.CODE93FullASCII=n.default})),YG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.GenericBarcode=void 0;var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=r(fG());function r(e){return e&&e.__esModule?e:{default:e}}function i(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function a(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function o(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}e.GenericBarcode=function(e){o(n,e);function n(e,t){return i(this,n),a(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t))}return t(n,[{key:`encode`,value:function(){return{data:`10101010101010101010101010101010101010101`,text:this.text}}},{key:`valid`,value:function(){return!0}}]),n}(n.default)})),XG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=pG(),n=xG(),r=jG(),i=FG(),a=HG(),o=UG(),s=WG(),c=JG(),l=YG();e.default={CODE39:t.CODE39,CODE128:n.CODE128,CODE128A:n.CODE128A,CODE128B:n.CODE128B,CODE128C:n.CODE128C,EAN13:r.EAN13,EAN8:r.EAN8,EAN5:r.EAN5,EAN2:r.EAN2,UPC:r.UPC,UPCE:r.UPCE,ITF14:i.ITF14,ITF:i.ITF,MSI:a.MSI,MSI10:a.MSI10,MSI11:a.MSI11,MSI1010:a.MSI1010,MSI1110:a.MSI1110,pharmacode:o.pharmacode,codabar:s.codabar,CODE93:c.CODE93,CODE93FullASCII:c.CODE93FullASCII,GenericBarcode:l.GenericBarcode}})),ZG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e};e.default=function(e,n){return t({},e,n)}})),QG=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){var t=[];function n(e){if(Array.isArray(e))for(var r=0;r<e.length;r++)n(e[r]);else e.text=e.text||``,e.data=e.data||``,t.push(e)}return n(e),t}})),$G=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){return e.marginTop=e.marginTop||e.margin,e.marginBottom=e.marginBottom||e.margin,e.marginRight=e.marginRight||e.margin,e.marginLeft=e.marginLeft||e.margin,e}})),eK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=t;function t(e){var t=[`width`,`height`,`textMargin`,`fontSize`,`margin`,`marginTop`,`marginBottom`,`marginLeft`,`marginRight`];for(var n in t)t.hasOwnProperty(n)&&(n=t[n],typeof e[n]==`string`&&(e[n]=parseInt(e[n],10)));return typeof e.displayValue==`string`&&(e.displayValue=e.displayValue!=`false`),e}})),tK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default={width:2,height:100,format:`auto`,displayValue:!0,fontOptions:``,font:`monospace`,text:void 0,textAlign:`center`,textPosition:`bottom`,textMargin:2,fontSize:20,background:`#ffffff`,lineColor:`#000000`,margin:10,marginTop:void 0,marginBottom:void 0,marginLeft:void 0,marginRight:void 0,valid:function(){}}})),nK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=r(eK()),n=r(tK());function r(e){return e&&e.__esModule?e:{default:e}}function i(e){var r={};for(var i in n.default)n.default.hasOwnProperty(i)&&(e.hasAttribute(`jsbarcode-`+i.toLowerCase())&&(r[i]=e.getAttribute(`jsbarcode-`+i.toLowerCase())),e.hasAttribute(`data-`+i.toLowerCase())&&(r[i]=e.getAttribute(`data-`+i.toLowerCase())));return r.value=e.getAttribute(`jsbarcode-value`)||e.getAttribute(`data-value`),r=(0,t.default)(r),r}e.default=i})),rK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.getTotalWidthOfEncodings=e.calculateEncodingAttributes=e.getBarcodePadding=e.getEncodingHeight=e.getMaximumHeightOfEncodings=void 0;var t=n(ZG());function n(e){return e&&e.__esModule?e:{default:e}}function r(e,t){return t.height+(t.displayValue&&e.text.length>0?t.fontSize+t.textMargin:0)+t.marginTop+t.marginBottom}function i(e,t,n){if(n.displayValue&&t<e){if(n.textAlign==`center`)return Math.floor((e-t)/2);if(n.textAlign==`left`)return 0;if(n.textAlign==`right`)return Math.floor(e-t)}return 0}function a(e,n,a){for(var o=0;o<e.length;o++){var s=e[o],l=(0,t.default)(n,s.options),u=l.displayValue?c(s.text,l,a):0,d=s.data.length*l.width;s.width=Math.ceil(Math.max(u,d)),s.height=r(s,l),s.barcodePadding=i(u,d,l)}}function o(e){for(var t=0,n=0;n<e.length;n++)t+=e[n].width;return t}function s(e){for(var t=0,n=0;n<e.length;n++)e[n].height>t&&(t=e[n].height);return t}function c(e,t,n){var r;if(n)r=n;else if(typeof document<`u`)r=document.createElement(`canvas`).getContext(`2d`);else return 0;r.font=t.fontOptions+` `+t.fontSize+`px `+t.font;var i=r.measureText(e);return i?i.width:0}e.getMaximumHeightOfEncodings=s,e.getEncodingHeight=r,e.getBarcodePadding=i,e.calculateEncodingAttributes=a,e.getTotalWidthOfEncodings=o})),iK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(ZG()),r=rK();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function(){function e(t,n,r){a(this,e),this.canvas=t,this.encodings=n,this.options=r}return t(e,[{key:`render`,value:function(){if(!this.canvas.getContext)throw Error(`The browser does not support canvas.`);this.prepareCanvas();for(var e=0;e<this.encodings.length;e++){var t=(0,n.default)(this.options,this.encodings[e].options);this.drawCanvasBarcode(t,this.encodings[e]),this.drawCanvasText(t,this.encodings[e]),this.moveCanvasDrawing(this.encodings[e])}this.restoreCanvas()}},{key:`prepareCanvas`,value:function(){var e=this.canvas.getContext(`2d`);e.save(),(0,r.calculateEncodingAttributes)(this.encodings,this.options,e);var t=(0,r.getTotalWidthOfEncodings)(this.encodings),n=(0,r.getMaximumHeightOfEncodings)(this.encodings);this.canvas.width=t+this.options.marginLeft+this.options.marginRight,this.canvas.height=n,e.clearRect(0,0,this.canvas.width,this.canvas.height),this.options.background&&(e.fillStyle=this.options.background,e.fillRect(0,0,this.canvas.width,this.canvas.height)),e.translate(this.options.marginLeft,0)}},{key:`drawCanvasBarcode`,value:function(e,t){var n=this.canvas.getContext(`2d`),r=t.data,i=e.textPosition==`top`?e.marginTop+e.fontSize+e.textMargin:e.marginTop;n.fillStyle=e.lineColor;for(var a=0;a<r.length;a++){var o=a*e.width+t.barcodePadding;r[a]===`1`?n.fillRect(o,i,e.width,e.height):r[a]&&n.fillRect(o,i,e.width,e.height*r[a])}}},{key:`drawCanvasText`,value:function(e,t){var n=this.canvas.getContext(`2d`),r=e.fontOptions+` `+e.fontSize+`px `+e.font;if(e.displayValue){var i,a=e.textPosition==`top`?e.marginTop+e.fontSize-e.textMargin:e.height+e.textMargin+e.marginTop+e.fontSize;n.font=r,e.textAlign==`left`||t.barcodePadding>0?(i=0,n.textAlign=`left`):e.textAlign==`right`?(i=t.width-1,n.textAlign=`right`):(i=t.width/2,n.textAlign=`center`),n.fillText(t.text,i,a)}}},{key:`moveCanvasDrawing`,value:function(e){this.canvas.getContext(`2d`).translate(e.width,0)}},{key:`restoreCanvas`,value:function(){this.canvas.getContext(`2d`).restore()}}]),e}()})),aK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),n=i(ZG()),r=rK();function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}var o=`http://www.w3.org/2000/svg`;e.default=function(){function e(t,n,r){a(this,e),this.svg=t,this.encodings=n,this.options=r,this.document=r.xmlDocument||document}return t(e,[{key:`render`,value:function(){var e=this.options.marginLeft;this.prepareSVG();for(var t=0;t<this.encodings.length;t++){var r=this.encodings[t],i=(0,n.default)(this.options,r.options),a=this.createGroup(e,i.marginTop,this.svg);this.setGroupOptions(a,i),this.drawSvgBarcode(a,i,r),this.drawSVGText(a,i,r),e+=r.width}}},{key:`prepareSVG`,value:function(){for(;this.svg.firstChild;)this.svg.removeChild(this.svg.firstChild);(0,r.calculateEncodingAttributes)(this.encodings,this.options);var e=(0,r.getTotalWidthOfEncodings)(this.encodings),t=(0,r.getMaximumHeightOfEncodings)(this.encodings),n=e+this.options.marginLeft+this.options.marginRight;this.setSvgAttributes(n,t),this.options.background&&this.drawRect(0,0,n,t,this.svg).setAttribute(`fill`,this.options.background)}},{key:`drawSvgBarcode`,value:function(e,t,n){for(var r=n.data,i=t.textPosition==`top`?t.fontSize+t.textMargin:0,a=0,o=0,s=0;s<r.length;s++)o=s*t.width+n.barcodePadding,r[s]===`1`?a++:a>0&&(this.drawRect(o-t.width*a,i,t.width*a,t.height,e),a=0);a>0&&this.drawRect(o-t.width*(a-1),i,t.width*a,t.height,e)}},{key:`drawSVGText`,value:function(e,t,n){var r=this.document.createElementNS(o,`text`);if(t.displayValue){var i,a;r.setAttribute(`font-family`,t.font),r.setAttribute(`font-size`,t.fontSize),t.fontOptions.includes(`bold`)&&r.setAttribute(`font-weight`,`bold`),t.fontOptions.includes(`italic`)&&r.setAttribute(`font-style`,`italic`),a=t.textPosition==`top`?t.fontSize-t.textMargin:t.height+t.textMargin+t.fontSize,t.textAlign==`left`||n.barcodePadding>0?(i=0,r.setAttribute(`text-anchor`,`start`)):t.textAlign==`right`?(i=n.width-1,r.setAttribute(`text-anchor`,`end`)):(i=n.width/2,r.setAttribute(`text-anchor`,`middle`)),r.setAttribute(`x`,i),r.setAttribute(`y`,a),r.appendChild(this.document.createTextNode(n.text)),e.appendChild(r)}}},{key:`setSvgAttributes`,value:function(e,t){var n=this.svg;n.setAttribute(`width`,e+`px`),n.setAttribute(`height`,t+`px`),n.setAttribute(`x`,`0px`),n.setAttribute(`y`,`0px`),n.setAttribute(`viewBox`,`0 0 `+e+` `+t),n.setAttribute(`xmlns`,o),n.setAttribute(`version`,`1.1`)}},{key:`createGroup`,value:function(e,t,n){var r=this.document.createElementNS(o,`g`);return r.setAttribute(`transform`,`translate(`+e+`, `+t+`)`),n.appendChild(r),r}},{key:`setGroupOptions`,value:function(e,t){e.setAttribute(`fill`,t.lineColor)}},{key:`drawRect`,value:function(e,t,n,r,i){var a=this.document.createElementNS(o,`rect`);return a.setAttribute(`x`,e),a.setAttribute(`y`,t),a.setAttribute(`width`,n),a.setAttribute(`height`,r),i.appendChild(a),a}}]),e}()})),oK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function(){function e(t,r,i){n(this,e),this.object=t,this.encodings=r,this.options=i}return t(e,[{key:`render`,value:function(){this.object.encodings=this.encodings}}]),e}()})),sK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=i(iK()),n=i(aK()),r=i(oK());function i(e){return e&&e.__esModule?e:{default:e}}e.default={CanvasRenderer:t.default,SVGRenderer:n.default,ObjectRenderer:r.default}})),cK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function n(e,t){if(!e)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return t&&(typeof t==`object`||typeof t==`function`)?t:e}function r(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function, not `+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var i=function(e){r(i,e);function i(e,r){t(this,i);var a=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return a.name=`InvalidInputException`,a.symbology=e,a.input=r,a.message=`"`+a.input+`" is not a valid input for `+a.symbology,a}return i}(Error),a=function(e){r(i,e);function i(){t(this,i);var e=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.name=`InvalidElementException`,e.message=`Not supported type to render on`,e}return i}(Error),o=function(e){r(i,e);function i(){t(this,i);var e=n(this,(i.__proto__||Object.getPrototypeOf(i)).call(this));return e.name=`NoElementException`,e.message=`No element to render on.`,e}return i}(Error);e.InvalidInputException=i,e.InvalidElementException=a,e.NoElementException=o})),lK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},n=a(nK()),r=a(sK()),i=cK();function a(e){return e&&e.__esModule?e:{default:e}}function o(e){if(typeof e==`string`)return s(e);if(Array.isArray(e)){for(var a=[],l=0;l<e.length;l++)a.push(o(e[l]));return a}if(typeof HTMLCanvasElement<`u`&&e instanceof HTMLImageElement)return c(e);if(e&&e.nodeName&&e.nodeName.toLowerCase()===`svg`||typeof SVGElement<`u`&&e instanceof SVGElement)return{element:e,options:(0,n.default)(e),renderer:r.default.SVGRenderer};if(typeof HTMLCanvasElement<`u`&&e instanceof HTMLCanvasElement)return{element:e,options:(0,n.default)(e),renderer:r.default.CanvasRenderer};if(e&&e.getContext)return{element:e,renderer:r.default.CanvasRenderer};if(e&&(e===void 0?`undefined`:t(e))===`object`&&!e.nodeName)return{element:e,renderer:r.default.ObjectRenderer};throw new i.InvalidElementException}function s(e){var t=document.querySelectorAll(e);if(t.length!==0){for(var n=[],r=0;r<t.length;r++)n.push(o(t[r]));return n}}function c(e){var t=document.createElement(`canvas`);return{element:t,options:(0,n.default)(e),renderer:r.default.CanvasRenderer,afterRender:function(){e.setAttribute(`src`,t.toDataURL())}}}e.default=o})),uK=n((e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function n(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}e.default=function(){function e(t){n(this,e),this.api=t}return t(e,[{key:`handleCatch`,value:function(e){if(e.name===`InvalidInputException`){if(this.api._options.valid!==this.api._defaults.valid)this.api._options.valid(!1);else throw e.message}else throw e;this.api.render=function(){}}},{key:`wrapBarcodeCall`,value:function(e){try{var t=e.apply(void 0,arguments);return this.api._options.valid(!0),t}catch(e){return this.handleCatch(e),this.api}}}]),e}()})),dK=n(((e,t)=>{var n=d(XG()),r=d(ZG()),i=d(QG()),a=d($G()),o=d(lK()),s=d(eK()),c=d(uK()),l=cK(),u=d(tK());function d(e){return e&&e.__esModule?e:{default:e}}var f=function(){},p=function(e,t,n){var r=new f;if(e===void 0)throw Error(`No element to render on was provided.`);return r._renderProperties=(0,o.default)(e),r._encodings=[],r._options=u.default,r._errorHandler=new c.default(r),t!==void 0&&(n||={},n.format||(n.format=_()),r.options(n)[n.format](t,n).render()),r};for(var m in p.getModule=function(e){return n.default[e]},n.default)n.default.hasOwnProperty(m)&&h(n.default,m);function h(e,t){f.prototype[t]=f.prototype[t.toUpperCase()]=f.prototype[t.toLowerCase()]=function(n,i){var a=this;return a._errorHandler.wrapBarcodeCall(function(){i.text=i.text===void 0?void 0:``+i.text;var o=(0,r.default)(a._options,i);o=(0,s.default)(o);var c=e[t],l=g(n,c,o);return a._encodings.push(l),a})}}function g(e,t,n){e=``+e;var a=new t(e,n);if(!a.valid())throw new l.InvalidInputException(a.constructor.name,e);var o=a.encode();o=(0,i.default)(o);for(var s=0;s<o.length;s++)o[s].options=(0,r.default)(n,o[s].options);return o}function _(){return n.default.CODE128?`CODE128`:Object.keys(n.default)[0]}f.prototype.options=function(e){return this._options=(0,r.default)(this._options,e),this},f.prototype.blank=function(e){var t=Array(e+1).join(`0`);return this._encodings.push({data:t}),this},f.prototype.init=function(){if(this._renderProperties){Array.isArray(this._renderProperties)||(this._renderProperties=[this._renderProperties]);var e;for(var t in this._renderProperties){e=this._renderProperties[t];var i=(0,r.default)(this._options,e.options);i.format==`auto`&&(i.format=_()),this._errorHandler.wrapBarcodeCall(function(){var t=i.value,r=n.default[i.format.toUpperCase()],a=g(t,r,i);v(e,a,i)})}}},f.prototype.render=function(){if(!this._renderProperties)throw new l.NoElementException;if(Array.isArray(this._renderProperties))for(var e=0;e<this._renderProperties.length;e++)v(this._renderProperties[e],this._encodings,this._options);else v(this._renderProperties,this._encodings,this._options);return this},f.prototype._defaults=u.default;function v(e,t,n){t=(0,i.default)(t);for(var o=0;o<t.length;o++)t[o].options=(0,r.default)(n,t[o].options),(0,a.default)(t[o].options);(0,a.default)(n);var s=e.renderer;new s(e.element,t,n).render(),e.afterRender&&e.afterRender()}typeof window<`u`&&(window.JsBarcode=p),typeof jQuery<`u`&&(jQuery.fn.JsBarcode=function(e,t){var n=[];return jQuery(this).each(function(){n.push(this)}),p(n,e,t)}),t.exports=p}));function fK(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n<t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n<i||n===void 0&&i>=i)&&(n=i)}return n}function pK(e,t){let n;if(t===void 0)for(let t of e)t!=null&&(n>t||n===void 0&&t>=t)&&(n=t);else{let r=-1;for(let i of e)(i=t(i,++r,e))!=null&&(n>i||n===void 0&&i>=i)&&(n=i)}return n}function mK(e,t){let n=0;if(t===void 0)for(let t of e)(t=+t)&&(n+=t);else{let r=-1;for(let i of e)(i=+t(i,++r,e))&&(n+=i)}return n}function hK(e,t){return e.sourceLinks.length?e.depth:t-1}function gK(e){return function(){return e}}function _K(e,t){return yK(e.source,t.source)||e.index-t.index}function vK(e,t){return yK(e.target,t.target)||e.index-t.index}function yK(e,t){return e.y0-t.y0}function bK(e){return e.value}function xK(e){return e.index}function SK(e){return e.nodes}function CK(e){return e.links}function wK(e,t){let n=e.get(t);if(!n)throw Error(`missing: `+t);return n}function TK({nodes:e}){for(let t of e){let e=t.y0,n=e;for(let n of t.sourceLinks)n.y0=e+n.width/2,e+=n.width;for(let e of t.targetLinks)e.y1=n+e.width/2,n+=e.width}}function EK(){let e=0,t=0,n=1,r=1,i=24,a=8,o,s=xK,c=hK,l,u,d=SK,f=CK,p=6;function m(){let e={nodes:d.apply(null,arguments),links:f.apply(null,arguments)};return h(e),g(e),_(e),v(e),x(e),TK(e),e}m.update=function(e){return TK(e),e},m.nodeId=function(e){return arguments.length?(s=typeof e==`function`?e:gK(e),m):s},m.nodeAlign=function(e){return arguments.length?(c=typeof e==`function`?e:gK(e),m):c},m.nodeSort=function(e){return arguments.length?(l=e,m):l},m.nodeWidth=function(e){return arguments.length?(i=+e,m):i},m.nodePadding=function(e){return arguments.length?(a=o=+e,m):a},m.nodes=function(e){return arguments.length?(d=typeof e==`function`?e:gK(e),m):d},m.links=function(e){return arguments.length?(f=typeof e==`function`?e:gK(e),m):f},m.linkSort=function(e){return arguments.length?(u=e,m):u},m.size=function(i){return arguments.length?(e=t=0,n=+i[0],r=+i[1],m):[n-e,r-t]},m.extent=function(i){return arguments.length?(e=+i[0][0],n=+i[1][0],t=+i[0][1],r=+i[1][1],m):[[e,t],[n,r]]},m.iterations=function(e){return arguments.length?(p=+e,m):p};function h({nodes:e,links:t}){for(let[t,n]of e.entries())n.index=t,n.sourceLinks=[],n.targetLinks=[];let n=new Map(e.map((t,n)=>[s(t,n,e),t]));for(let[e,r]of t.entries()){r.index=e;let{source:t,target:i}=r;typeof t!=`object`&&(t=r.source=wK(n,t)),typeof i!=`object`&&(i=r.target=wK(n,i)),t.sourceLinks.push(r),i.targetLinks.push(r)}if(u!=null)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(u),n.sort(u)}function g({nodes:e}){for(let t of e)t.value=t.fixedValue===void 0?Math.max(mK(t.sourceLinks,bK),mK(t.targetLinks,bK)):t.fixedValue}function _({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.depth=i;for(let{target:t}of e.sourceLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function v({nodes:e}){let t=e.length,n=new Set(e),r=new Set,i=0;for(;n.size;){for(let e of n){e.height=i;for(let{source:t}of e.targetLinks)r.add(t)}if(++i>t)throw Error(`circular link`);n=r,r=new Set}}function y({nodes:t}){let r=fK(t,e=>e.depth)+1,a=(n-e-i)/(r-1),o=Array(r);for(let n of t){let t=Math.max(0,Math.min(r-1,Math.floor(c.call(null,n,r))));n.layer=t,n.x0=e+t*a,n.x1=n.x0+i,o[t]?o[t].push(n):o[t]=[n]}if(l)for(let e of o)e.sort(l);return o}function b(e){let n=pK(e,e=>(r-t-(e.length-1)*o)/mK(e,bK));for(let i of e){let e=t;for(let t of i){t.y0=e,t.y1=e+t.value*n,e=t.y1+o;for(let e of t.sourceLinks)e.width=e.value*n}e=(r-e+o)/(i.length+1);for(let t=0;t<i.length;++t){let n=i[t];n.y0+=e*(t+1),n.y1+=e*(t+1)}O(i)}}function x(e){let n=y(e);o=Math.min(a,(r-t)/(fK(n,e=>e.length)-1)),b(n);for(let e=0;e<p;++e){let t=.99**e,r=Math.max(1-t,(e+1)/p);C(n,t,r),S(n,t,r)}}function S(e,t,n){for(let r=1,i=e.length;r<i;++r){let i=e[r];for(let e of i){let n=0,r=0;for(let{source:t,value:i}of e.targetLinks){let a=i*(e.layer-t.layer);n+=k(t,e)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,D(e)}l===void 0&&i.sort(yK),w(i,n)}}function C(e,t,n){for(let r=e.length-2;r>=0;--r){let i=e[r];for(let e of i){let n=0,r=0;for(let{target:t,value:i}of e.sourceLinks){let a=i*(t.layer-e.layer);n+=ee(e,t)*a,r+=a}if(!(r>0))continue;let i=(n/r-e.y0)*t;e.y0+=i,e.y1+=i,D(e)}l===void 0&&i.sort(yK),w(i,n)}}function w(e,n){let i=e.length>>1,a=e[i];E(e,a.y0-o,i-1,n),T(e,a.y1+o,i+1,n),E(e,r,e.length-1,n),T(e,t,0,n)}function T(e,t,n,r){for(;n<e.length;++n){let i=e[n],a=(t-i.y0)*r;a>1e-6&&(i.y0+=a,i.y1+=a),t=i.y1+o}}function E(e,t,n,r){for(;n>=0;--n){let i=e[n],a=(i.y1-t)*r;a>1e-6&&(i.y0-=a,i.y1-=a),t=i.y0-o}}function D({sourceLinks:e,targetLinks:t}){if(u===void 0){for(let{source:{sourceLinks:e}}of t)e.sort(vK);for(let{target:{targetLinks:t}}of e)t.sort(_K)}}function O(e){if(u===void 0)for(let{sourceLinks:t,targetLinks:n}of e)t.sort(vK),n.sort(_K)}function k(e,t){let n=e.y0-(e.sourceLinks.length-1)*o/2;for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n+=i+o}for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n-=i}return n}function ee(e,t){let n=t.y0-(t.targetLinks.length-1)*o/2;for(let{source:r,width:i}of t.targetLinks){if(r===e)break;n+=i+o}for(let{target:r,width:i}of e.sourceLinks){if(r===t)break;n-=i}return n}return m}var DK=Math.PI,OK=2*DK,kK=1e-6,AK=OK-kK;function jK(){this._x0=this._y0=this._x1=this._y1=null,this._=``}function MK(){return new jK}jK.prototype=MK.prototype={constructor:jK,moveTo:function(e,t){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+=`Z`)},lineTo:function(e,t){this._+=`L`+(this._x1=+e)+`,`+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+=`Q`+ +e+`,`+ +t+`,`+(this._x1=+n)+`,`+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,a){this._+=`C`+ +e+`,`+ +t+`,`+ +n+`,`+ +r+`,`+(this._x1=+i)+`,`+(this._y1=+a)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(i<0)throw Error(`negative radius: `+i);if(this._x1===null)this._+=`M`+(this._x1=e)+`,`+(this._y1=t);else if(d>kK){if(!(Math.abs(u*s-c*l)>kK)||!i)this._+=`L`+(this._x1=e)+`,`+(this._y1=t);else{var f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((DK-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>kK&&(this._+=`L`+(e+y*l)+`,`+(t+y*u)),this._+=`A`+i+`,`+i+`,0,0,`+ +(u*f>l*p)+`,`+(this._x1=e+b*s)+`,`+(this._y1=t+b*c)}}},arc:function(e,t,n,r,i,a){e=+e,t=+t,n=+n,a=!!a;var o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(n<0)throw Error(`negative radius: `+n);this._x1===null?this._+=`M`+c+`,`+l:(Math.abs(this._x1-c)>kK||Math.abs(this._y1-l)>kK)&&(this._+=`L`+c+`,`+l),n&&(d<0&&(d=d%OK+OK),d>AK?this._+=`A`+n+`,`+n+`,0,1,`+u+`,`+(e-o)+`,`+(t-s)+`A`+n+`,`+n+`,0,1,`+u+`,`+(this._x1=c)+`,`+(this._y1=l):d>kK&&(this._+=`A`+n+`,`+n+`,0,`+ +(d>=DK)+`,`+u+`,`+(this._x1=e+n*Math.cos(i))+`,`+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+=`M`+(this._x0=this._x1=+e)+`,`+(this._y0=this._y1=+t)+`h`+ +n+`v`+ +r+`h`+-n+`Z`},toString:function(){return this._}};function NK(e){return function(){return e}}function PK(e){return e[0]}function FK(e){return e[1]}var IK=Array.prototype.slice;function LK(e){return e.source}function RK(e){return e.target}function zK(e){var t=LK,n=RK,r=PK,i=FK,a=null;function o(){var o,s=IK.call(arguments),c=t.apply(this,s),l=n.apply(this,s);if(a||=o=MK(),e(a,+r.apply(this,(s[0]=c,s)),+i.apply(this,s),+r.apply(this,(s[0]=l,s)),+i.apply(this,s)),o)return a=null,o+``||null}return o.source=function(e){return arguments.length?(t=e,o):t},o.target=function(e){return arguments.length?(n=e,o):n},o.x=function(e){return arguments.length?(r=typeof e==`function`?e:NK(+e),o):r},o.y=function(e){return arguments.length?(i=typeof e==`function`?e:NK(+e),o):i},o.context=function(e){return arguments.length?(a=e??null,o):a},o}function BK(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function VK(){return zK(BK)}function HK(e){return[e.source.x1,e.y0]}function UK(e){return[e.target.x0,e.y1]}function WK(){return VK().source(HK).target(UK)}var GK=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);(KK(i,a)||!r)&&Object.defineProperty(e,n,a)},KK=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},qK=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},JK=(e,t)=>`/* Wrapped ${e}*/\n${t}`,YK=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),XK=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),ZK=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=JK.bind(null,r,t.toString());Object.defineProperty(i,"name",XK);let{writable:a,enumerable:o,configurable:s}=YK;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:o,configurable:s})};function QK(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))GK(e,t,r,n);return qK(e,t),ZK(e,t,r),e}var $K=2147483647,eq=new WeakMap,tq=new WeakMap,nq=new WeakMap;function rq(e,t){let n=e.get(t);if(n){if(n.maxAge<=Date.now())e.delete(t);else return n}}function iq(e,{cacheKey:t,cache:n=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r==`number`&&Number.isFinite(r)){if(r>$K)throw TypeError(`The \`maxAge\` option cannot exceed ${$K}.`);if(r<0)throw TypeError("The `maxAge` option should not be a negative number.")}let i=function(...a){let o=t?t(a):a[0],s=rq(n,o);if(s)return s.data;let c=e.apply(this,a),l=typeof r==`function`?r(...a):r;if(l!==void 0&&l!==1/0){if(!Number.isFinite(l))throw TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(l<=0)return c;if(l>$K)throw TypeError(`The \`maxAge\` function result cannot exceed ${$K}.`)}if(n.set(o,{data:c,maxAge:l===void 0||l===1/0?1/0:Date.now()+l}),l!==void 0&&l!==1/0){let e=setTimeout(()=>{n.delete(o),tq.get(i)?.delete(e)},l);e.unref?.();let t=tq.get(i)??new Set;t.add(e),tq.set(i,t)}return c};return QK(i,e,{ignoreNonConfigurable:!0}),eq.set(i,n),nq.set(i,t??(e=>e[0])),i}function aq(e){return typeof e==`string`}function oq(e,t,n){return n.indexOf(e)===t}function sq(e){return e.toLowerCase()===e}function cq(e){return e.indexOf(`,`)===-1?e:e.split(`,`)}function lq(e){if(!e)return e;if(e===`C`||e===`posix`||e===`POSIX`)return`en-US`;if(e.indexOf(`.`)!==-1){var t=e.split(`.`)[0],n=t===void 0?``:t;return lq(n)}if(e.indexOf(`@`)!==-1){var r=e.split(`@`)[0],n=r===void 0?``:r;return lq(n)}if(e.indexOf(`-`)===-1||!sq(e))return e;var i=e.split(`-`),a=i[0],o=i[1];return`${a}-${(o===void 0?``:o).toUpperCase()}`}function uq(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,r=n===void 0||n,i=t.fallbackLocale,a=i===void 0?`en-US`:i,o=[];if(typeof navigator<`u`){for(var s=navigator.languages||[],c=[],l=0,u=s;l<u.length;l++){var d=u[l];c=c.concat(cq(d))}var f=navigator.language,p=f&&cq(f);o=o.concat(c,p)}return r&&o.push(a),o.filter(aq).map(lq).filter(oq)}var dq=iq(uq,{cacheKey:JSON.stringify});function fq(e){return dq(e)[0]||null}var pq=iq(fq,{cacheKey:JSON.stringify}),mq=new Map;function hq(e){return function(t,n){let r=t||pq();mq.has(r)||mq.set(r,new Map);let i=mq.get(r);if(!i.has(e)){let t=new Intl.DateTimeFormat(r||void 0,e);i.set(e,t.format.bind(t))}return i.get(e)(n)}}function gq(e){let t=new Date(e);return new Date(t.setHours(12))}function _q(e){return(t,n)=>hq(e)(t,gq(n))}var vq={day:`numeric`},yq={day:`numeric`,month:`long`,year:`numeric`},bq={month:`long`},xq={month:`long`,year:`numeric`},Sq={weekday:`short`},Cq={weekday:`long`},wq={year:`numeric`},Tq=_q(vq),Eq=_q(yq),Dq=_q(bq),Oq=_q(xq),kq=_q(Sq),Aq=_q(Cq),jq=_q(wq);function Mq(e,t,n){return function(r,i=n){return t(e(r)+i)}}function Nq(e){return function(t){return new Date(e(t).getTime()-1)}}function Pq(e,t){return function(n){return[e(n),t(n)]}}function Fq(e){if(e instanceof Date)return e.getFullYear();if(typeof e==`number`)return e;let t=Number.parseInt(e,10);if(typeof e==`string`&&!Number.isNaN(t))return t;throw Error(`Failed to get year from date: ${e}.`)}function Iq(e){if(e instanceof Date)return e.getMonth();throw Error(`Failed to get month from date: ${e}.`)}function Lq(e){if(e instanceof Date)return e.getDate();throw Error(`Failed to get year from date: ${e}.`)}function Rq(e){let t=Fq(e),n=t+(-t+1)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var zq=Mq(Fq,Rq,-100),Bq=Mq(Fq,Rq,100),Vq=Nq(Bq),Hq=Mq(Fq,Vq,-100),Uq=Pq(Rq,Vq);function Wq(e){let t=Fq(e),n=t+(-t+1)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var Gq=Mq(Fq,Wq,-10),Kq=Mq(Fq,Wq,10),qq=Nq(Kq),Jq=Mq(Fq,qq,-10),Yq=Pq(Wq,qq);function Xq(e){let t=Fq(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var Zq=Mq(Fq,Xq,-1),Qq=Mq(Fq,Xq,1),$q=Nq(Qq),eJ=Mq(Fq,$q,-1),tJ=Pq(Xq,$q);function nJ(e,t){return function(n,r=t){let i=Fq(n),a=Iq(n)+r,o=new Date;return o.setFullYear(i,a,1),o.setHours(0,0,0,0),e(o)}}function rJ(e){let t=Fq(e),n=Iq(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var iJ=nJ(rJ,-1),aJ=nJ(rJ,1),oJ=Nq(aJ),sJ=nJ(oJ,-1),cJ=Pq(rJ,oJ);function lJ(e,t){return function(n,r=t){let i=Fq(n),a=Iq(n),o=Lq(n)+r,s=new Date;return s.setFullYear(i,a,o),s.setHours(0,0,0,0),e(s)}}function uJ(e){let t=Fq(e),n=Iq(e),r=Lq(e),i=new Date;return i.setFullYear(t,n,r),i.setHours(0,0,0,0),i}var dJ=Nq(lJ(uJ,1)),fJ=Pq(uJ,dJ);function pJ(e){return Lq(oJ(e))}var mJ={GREGORY:`gregory`,HEBREW:`hebrew`,ISLAMIC:`islamic`,ISO_8601:`iso8601`},hJ={gregory:[`en-CA`,`en-US`,`es-AR`,`es-BO`,`es-CL`,`es-CO`,`es-CR`,`es-DO`,`es-EC`,`es-GT`,`es-HN`,`es-MX`,`es-NI`,`es-PA`,`es-PE`,`es-PR`,`es-SV`,`es-VE`,`pt-BR`],hebrew:[`he`,`he-IL`],islamic:[`ar`,`ar-AE`,`ar-BH`,`ar-DZ`,`ar-EG`,`ar-IQ`,`ar-JO`,`ar-KW`,`ar-LY`,`ar-OM`,`ar-QA`,`ar-SA`,`ar-SD`,`ar-SY`,`ar-YE`,`dv`,`dv-MV`,`ps`,`ps-AR`]},gJ=[0,1,2,3,4,5,6],_J=gJ[0],vJ=gJ[5],yJ=gJ[6];function bJ(e,t=mJ.ISO_8601){let n=e.getDay();switch(t){case mJ.ISO_8601:return(n+6)%7;case mJ.ISLAMIC:return(n+1)%7;case mJ.HEBREW:case mJ.GREGORY:return n;default:throw Error(`Unsupported calendar type.`)}}function xJ(e){return Fq(Rq(e))}function SJ(e){return Fq(Wq(e))}function CJ(e,t=mJ.ISO_8601){let n=Fq(e),r=Iq(e),i=e.getDate()-bJ(e,t);return new Date(n,r,i)}function wJ(e,t=mJ.ISO_8601){let n=t===mJ.GREGORY?mJ.GREGORY:mJ.ISO_8601,r=CJ(e,t),i=Fq(e)+1,a,o;do a=new Date(i,0,n===mJ.ISO_8601?4:1),o=CJ(a,t),--i;while(e<o);return Math.round((r.getTime()-o.getTime())/6048e5)+1}function TJ(e,t){switch(e){case`century`:return Rq(t);case`decade`:return Wq(t);case`year`:return Xq(t);case`month`:return rJ(t);case`day`:return uJ(t);default:throw Error(`Invalid rangeType: ${e}`)}}function EJ(e,t){switch(e){case`century`:return zq(t);case`decade`:return Gq(t);case`year`:return Zq(t);case`month`:return iJ(t);default:throw Error(`Invalid rangeType: ${e}`)}}function DJ(e,t){switch(e){case`century`:return Bq(t);case`decade`:return Kq(t);case`year`:return Qq(t);case`month`:return aJ(t);default:throw Error(`Invalid rangeType: ${e}`)}}function OJ(e,t){switch(e){case`decade`:return Gq(t,-100);case`year`:return Zq(t,-10);case`month`:return iJ(t,-12);default:throw Error(`Invalid rangeType: ${e}`)}}function kJ(e,t){switch(e){case`decade`:return Kq(t,100);case`year`:return Qq(t,10);case`month`:return aJ(t,12);default:throw Error(`Invalid rangeType: ${e}`)}}function AJ(e,t){switch(e){case`century`:return Vq(t);case`decade`:return qq(t);case`year`:return $q(t);case`month`:return oJ(t);case`day`:return dJ(t);default:throw Error(`Invalid rangeType: ${e}`)}}function jJ(e,t){switch(e){case`century`:return Hq(t);case`decade`:return Jq(t);case`year`:return eJ(t);case`month`:return sJ(t);default:throw Error(`Invalid rangeType: ${e}`)}}function MJ(e,t){switch(e){case`decade`:return Jq(t,-100);case`year`:return eJ(t,-10);case`month`:return sJ(t,-12);default:throw Error(`Invalid rangeType: ${e}`)}}function NJ(e,t){switch(e){case`century`:return Uq(t);case`decade`:return Yq(t);case`year`:return tJ(t);case`month`:return cJ(t);case`day`:return fJ(t);default:throw Error(`Invalid rangeType: ${e}`)}}function PJ(e,t,n){let r=[t,n].sort((e,t)=>e.getTime()-t.getTime());return[TJ(e,r[0]),AJ(e,r[1])]}function FJ(e,t,n){return n.map(n=>(t||jq)(e,n)).join(` – `)}function IJ(e,t,n){return FJ(e,t,Uq(n))}function LJ(e,t,n){return FJ(e,t,Yq(n))}function RJ(e){return e.getDay()===new Date().getDay()}function zJ(e,t=mJ.ISO_8601){let n=e.getDay();switch(t){case mJ.ISLAMIC:case mJ.HEBREW:return n===vJ||n===yJ;case mJ.ISO_8601:case mJ.GREGORY:return n===yJ||n===_J;default:throw Error(`Unsupported calendar type.`)}}var BJ=`react-calendar__navigation`;function VJ({activeStartDate:e,drillUp:t,formatMonthYear:n=Oq,formatYear:r=jq,locale:i,maxDate:a,minDate:o,navigationAriaLabel:s=``,navigationAriaLive:c,navigationLabel:l,next2AriaLabel:u=``,next2Label:d=`»`,nextAriaLabel:f=``,nextLabel:p=`›`,prev2AriaLabel:m=``,prev2Label:h=`«`,prevAriaLabel:g=``,prevLabel:_=`‹`,setActiveStartDate:v,showDoubleView:y,view:b,views:x}){let S=x.indexOf(b)>0,C=b!==`century`,w=EJ(b,e),T=C?OJ(b,e):void 0,E=DJ(b,e),D=C?kJ(b,e):void 0,O=(()=>{if(w.getFullYear()<0)return!0;let t=jJ(b,e);return o&&o>=t})(),k=C&&(()=>{if(T.getFullYear()<0)return!0;let t=MJ(b,e);return o&&o>=t})(),ee=a&&a<E,A=C&&a&&a<D;function j(){v(w,`prev`)}function M(){v(T,`prev2`)}function te(){v(E,`next`)}function ne(){v(D,`next2`)}function N(e){let t=(()=>{switch(b){case`century`:return IJ(i,r,e);case`decade`:return LJ(i,r,e);case`year`:return r(i,e);case`month`:return n(i,e);default:throw Error(`Invalid view: ${b}.`)}})();return l?l({date:e,label:t,locale:i||pq()||void 0,view:b}):t}function P(){let n=`${BJ}__label`;return(0,H.jsxs)(`button`,{"aria-label":s,"aria-live":c,className:n,disabled:!S,onClick:t,style:{flexGrow:1},type:`button`,children:[(0,H.jsx)(`span`,{className:`${n}__labelText ${n}__labelText--from`,children:N(e)}),y?(0,H.jsxs)(H.Fragment,{children:[(0,H.jsx)(`span`,{className:`${n}__divider`,children:` – `}),(0,H.jsx)(`span`,{className:`${n}__labelText ${n}__labelText--to`,children:N(E)})]}):null]})}return(0,H.jsxs)(`div`,{className:BJ,children:[h!==null&&C?(0,H.jsx)(`button`,{"aria-label":m,className:`${BJ}__arrow ${BJ}__prev2-button`,disabled:k,onClick:M,type:`button`,children:h}):null,_!==null&&(0,H.jsx)(`button`,{"aria-label":g,className:`${BJ}__arrow ${BJ}__prev-button`,disabled:O,onClick:j,type:`button`,children:_}),P(),p!==null&&(0,H.jsx)(`button`,{"aria-label":f,className:`${BJ}__arrow ${BJ}__next-button`,disabled:ee,onClick:te,type:`button`,children:p}),d!==null&&C?(0,H.jsx)(`button`,{"aria-label":u,className:`${BJ}__arrow ${BJ}__next2-button`,disabled:A,onClick:ne,type:`button`,children:d}):null]})}function HJ(e){return`${e}%`}function UJ({children:e,className:t,count:n,direction:r,offset:i,style:a,wrap:o,...s}){return(0,H.jsx)(`div`,{className:t,style:{display:`flex`,flexDirection:r,flexWrap:o?`wrap`:`nowrap`,...a},...s,children:z.Children.map(e,(e,t)=>{let r=i&&t===0?HJ(100*i/n):null;return(0,z.cloneElement)(e,{...e.props,style:{flexBasis:HJ(100/n),flexShrink:0,flexGrow:0,overflow:`hidden`,marginLeft:r,marginInlineStart:r,marginInlineEnd:0}})})})}function WJ(e,t,n){return t&&t>e?t:n&&n<e?n:e}function GJ(e,t){return t[0]<=e&&t[1]>=e}function KJ(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function qJ(e,t){return GJ(e[0],t)||GJ(e[1],t)}function JJ(e,t,n){let r=qJ(t,e),i=[];if(r){i.push(n);let r=GJ(e[0],t),a=GJ(e[1],t);r&&i.push(`${n}Start`),a&&i.push(`${n}End`),r&&a&&i.push(`${n}BothEnds`)}return i}function YJ(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function XJ(e){if(!e)throw Error(`args is required`);let{value:t,date:n,hover:r}=e,i=`react-calendar__tile`,a=[i];if(!n)return a;let o=new Date,s=(()=>{if(Array.isArray(n))return n;let{dateType:t}=e;if(!t)throw Error(`dateType is required when date is not an array of two dates`);return NJ(t,n)})();if(GJ(o,s)&&a.push(`${i}--now`),!t||!YJ(t))return a;let c=(()=>{if(Array.isArray(t))return t;let{valueType:n}=e;if(!n)throw Error(`valueType is required when value is not an array of two dates`);return NJ(n,t)})();KJ(c,s)?a.push(`${i}--active`):qJ(c,s)&&a.push(`${i}--hasActive`);let l=JJ(c,s,`${i}--range`);if(a.push(...l),r&&(Array.isArray(t)?t:[t]).length===1){let e=JJ(r>c[0]?[c[0],r]:[r,c[0]],s,`${i}--hover`);a.push(...e)}return a}function ZJ({className:e,count:t=3,dateTransform:n,dateType:r,end:i,hover:a,offset:o,renderTile:s,start:c,step:l=1,value:u,valueType:d}){let f=[];for(let e=c;e<=i;e+=l){let t=n(e);f.push(s({classes:XJ({date:t,dateType:r,hover:a,value:u,valueType:d}),date:t}))}return(0,H.jsx)(UJ,{className:e,count:t,offset:o,wrap:!0,children:f})}function QJ(e){let{activeStartDate:t,children:n,classes:r,date:i,formatAbbr:a,locale:o,maxDate:s,maxDateTransform:c,minDate:l,minDateTransform:u,onClick:d,onMouseOver:f,style:p,tileClassName:m,tileContent:h,tileDisabled:g,view:_}=e,v=(0,z.useMemo)(()=>typeof m==`function`?m({activeStartDate:t,date:i,view:_}):m,[t,i,m,_]),y=(0,z.useMemo)(()=>typeof h==`function`?h({activeStartDate:t,date:i,view:_}):h,[t,i,h,_]);return(0,H.jsxs)(`button`,{className:U(r,v),disabled:l&&u(l)>i||s&&c(s)<i||g?.({activeStartDate:t,date:i,view:_}),onClick:d?e=>d(i,e):void 0,onFocus:f?()=>f(i):void 0,onMouseOver:f?()=>f(i):void 0,style:p,type:`button`,children:[a?(0,H.jsx)(`abbr`,{"aria-label":a(o,i),children:n}):n,y]})}var $J=`react-calendar__century-view__decades__decade`;function eY({classes:e=[],currentCentury:t,formatYear:n=jq,...r}){let{date:i,locale:a}=r,o=[];return e&&o.push(...e),o.push($J),Rq(i).getFullYear()!==t&&o.push(`${$J}--neighboringCentury`),(0,H.jsx)(QJ,{...r,classes:o,maxDateTransform:qq,minDateTransform:Wq,view:`century`,children:LJ(a,n,i)})}function tY(e){let{activeStartDate:t,hover:n,showNeighboringCentury:r,value:i,valueType:a,...o}=e,s=xJ(t),c=s+(r?119:99);return(0,H.jsx)(ZJ,{className:`react-calendar__century-view__decades`,dateTransform:Wq,dateType:`decade`,end:c,hover:n,renderTile:({date:e,...n})=>(0,H.jsx)(eY,{...o,...n,activeStartDate:t,currentCentury:s,date:e},e.getTime()),start:s,step:10,value:i,valueType:a})}function nY(e){function t(){return(0,H.jsx)(tY,{...e})}return(0,H.jsx)(`div`,{className:`react-calendar__century-view`,children:t()})}var rY=`react-calendar__decade-view__years__year`;function iY({classes:e=[],currentDecade:t,formatYear:n=jq,...r}){let{date:i,locale:a}=r,o=[];return e&&o.push(...e),o.push(rY),Wq(i).getFullYear()!==t&&o.push(`${rY}--neighboringDecade`),(0,H.jsx)(QJ,{...r,classes:o,maxDateTransform:$q,minDateTransform:Xq,view:`decade`,children:n(a,i)})}function aY(e){let{activeStartDate:t,hover:n,showNeighboringDecade:r,value:i,valueType:a,...o}=e,s=SJ(t),c=s+(r?11:9);return(0,H.jsx)(ZJ,{className:`react-calendar__decade-view__years`,dateTransform:Xq,dateType:`year`,end:c,hover:n,renderTile:({date:e,...n})=>(0,H.jsx)(iY,{...o,...n,activeStartDate:t,currentDecade:s,date:e},e.getTime()),start:s,value:i,valueType:a})}function oY(e){function t(){return(0,H.jsx)(aY,{...e})}return(0,H.jsx)(`div`,{className:`react-calendar__decade-view`,children:t()})}var sY=`react-calendar__month-view__days__day`;function cY({calendarType:e,classes:t=[],currentMonthIndex:n,formatDay:r=Tq,formatLongDate:i=Eq,...a}){let{date:o,locale:s}=a,c=[];return t&&c.push(...t),c.push(sY),zJ(o,e)&&c.push(`${sY}--weekend`),o.getMonth()!==n&&c.push(`${sY}--neighboringMonth`),(0,H.jsx)(QJ,{...a,classes:c,formatAbbr:i,maxDateTransform:dJ,minDateTransform:uJ,view:`month`,children:r(s,o)})}function lY(e){let{activeStartDate:t,calendarType:n,hover:r,showFixedNumberOfWeeks:i,showNeighboringMonth:a,value:o,valueType:s,...c}=e,l=Fq(t),u=Iq(t),d=i||a,f=bJ(t,n),p=d?0:f,m=(d?-f:0)+1,h=(()=>{if(i)return m+42-1;let e=pJ(t);if(a){let t=new Date;return t.setFullYear(l,u,e),t.setHours(0,0,0,0),e+(7-bJ(t,n)-1)}return e})();return(0,H.jsx)(ZJ,{className:`react-calendar__month-view__days`,count:7,dateTransform:e=>{let t=new Date;return t.setFullYear(l,u,e),uJ(t)},dateType:`day`,hover:r,end:h,renderTile:({date:e,...r})=>(0,H.jsx)(cY,{...c,...r,activeStartDate:t,calendarType:n,currentMonthIndex:u,date:e},e.getTime()),offset:p,start:m,value:o,valueType:s})}var uY=`react-calendar__month-view__weekdays`,dY=`${uY}__weekday`;function fY(e){let{calendarType:t,formatShortWeekday:n=kq,formatWeekday:r=Aq,locale:i,onMouseLeave:a}=e,o=rJ(new Date),s=Fq(o),c=Iq(o),l=[];for(let e=1;e<=7;e+=1){let a=new Date(s,c,e-bJ(o,t)),u=r(i,a);l.push((0,H.jsx)(`div`,{className:U(dY,RJ(a)&&`${dY}--current`,zJ(a,t)&&`${dY}--weekend`),children:(0,H.jsx)(`abbr`,{"aria-label":u,title:u,children:n(i,a).replace(`.`,``)})},e))}return(0,H.jsx)(UJ,{className:uY,count:7,onFocus:a,onMouseOver:a,children:l})}var pY=`react-calendar__tile`;function mY(e){let{onClickWeekNumber:t,weekNumber:n}=e,r=(0,H.jsx)(`span`,{children:n});if(t){let{date:t,onClickWeekNumber:n,weekNumber:i,...a}=e;return(0,H.jsx)(`button`,{...a,className:pY,onClick:e=>n(i,t,e),type:`button`,children:r})}{let{date:t,onClickWeekNumber:n,weekNumber:i,...a}=e;return(0,H.jsx)(`div`,{...a,className:pY,children:r})}}function hY(e){let{activeStartDate:t,calendarType:n,onClickWeekNumber:r,onMouseLeave:i,showFixedNumberOfWeeks:a}=e,o=(()=>{if(a)return 6;let e=pJ(t)-(7-bJ(t,n));return 1+Math.ceil(e/7)})(),s=(()=>{let e=Fq(t),r=Iq(t),i=Lq(t),a=[];for(let t=0;t<o;t+=1)a.push(CJ(new Date(e,r,i+t*7),n));return a})(),c=s.map(e=>wJ(e,n));return(0,H.jsx)(UJ,{className:`react-calendar__month-view__weekNumbers`,count:o,direction:`column`,onFocus:i,onMouseOver:i,style:{flexBasis:`calc(100% * (1 / 8)`,flexShrink:0},children:c.map((e,t)=>{let n=s[t];if(!n)throw Error(`date is not defined`);return(0,H.jsx)(mY,{date:n,onClickWeekNumber:r,weekNumber:e},e)})})}function gY(e){if(e){for(let[t,n]of Object.entries(hJ))if(n.includes(e))return t}return mJ.ISO_8601}function _Y(e){let{activeStartDate:t,locale:n,onMouseLeave:r,showFixedNumberOfWeeks:i}=e,{calendarType:a=gY(n),formatShortWeekday:o,formatWeekday:s,onClickWeekNumber:c,showWeekNumbers:l,...u}=e;function d(){return(0,H.jsx)(fY,{calendarType:a,formatShortWeekday:o,formatWeekday:s,locale:n,onMouseLeave:r})}function f(){return l?(0,H.jsx)(hY,{activeStartDate:t,calendarType:a,onClickWeekNumber:c,onMouseLeave:r,showFixedNumberOfWeeks:i}):null}function p(){return(0,H.jsx)(lY,{calendarType:a,...u})}let m=`react-calendar__month-view`;return(0,H.jsx)(`div`,{className:U(m,l?`${m}--weekNumbers`:``),children:(0,H.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-end`},children:[f(),(0,H.jsxs)(`div`,{style:{flexGrow:1,width:`100%`},children:[d(),p()]})]})})}var vY=`react-calendar__year-view__months__month`;function yY({classes:e=[],formatMonth:t=Dq,formatMonthYear:n=Oq,...r}){let{date:i,locale:a}=r;return(0,H.jsx)(QJ,{...r,classes:[...e,vY],formatAbbr:n,maxDateTransform:oJ,minDateTransform:rJ,view:`year`,children:t(a,i)})}function bY(e){let{activeStartDate:t,hover:n,value:r,valueType:i,...a}=e,o=Fq(t);return(0,H.jsx)(ZJ,{className:`react-calendar__year-view__months`,dateTransform:e=>{let t=new Date;return t.setFullYear(o,e,1),rJ(t)},dateType:`month`,end:11,hover:n,renderTile:({date:e,...n})=>(0,H.jsx)(yY,{...a,...n,activeStartDate:t,date:e},e.getTime()),start:0,value:r,valueType:i})}function xY(e){function t(){return(0,H.jsx)(bY,{...e})}return(0,H.jsx)(`div`,{className:`react-calendar__year-view`,children:t()})}var SY=`react-calendar`,CY=[`century`,`decade`,`year`,`month`],wY=[`decade`,`year`,`month`,`day`],TY=new Date;TY.setFullYear(1,0,1),TY.setHours(0,0,0,0);var EY=new Date(864e13);function DY(e){return e instanceof Date?e:new Date(e)}function OY(e,t){return CY.slice(CY.indexOf(e),CY.indexOf(t)+1)}function kY(e,t,n){return OY(t,n).indexOf(e)!==-1}function AY(e,t,n){return e&&kY(e,t,n)?e:n}function jY(e){return wY[CY.indexOf(e)]}function MY(e,t){let n=Array.isArray(e)?e[t]:e;if(!n)return null;let r=DY(n);if(Number.isNaN(r.getTime()))throw Error(`Invalid date: ${e}`);return r}function NY({value:e,minDate:t,maxDate:n,maxDetail:r},i){let a=MY(e,i);if(!a)return null;let o=jY(r);return WJ((()=>{switch(i){case 0:return TJ(o,a);case 1:return AJ(o,a);default:throw Error(`Invalid index value: ${i}`)}})(),t,n)}var PY=e=>NY(e,0),FY=e=>NY(e,1),IY=e=>[PY,FY].map(t=>t(e));function LY({maxDate:e,maxDetail:t,minDate:n,minDetail:r,value:i,view:a}){return TJ(AY(a,r,t),PY({value:i,minDate:n,maxDate:e,maxDetail:t})||new Date)}function RY({activeStartDate:e,defaultActiveStartDate:t,defaultValue:n,defaultView:r,maxDate:i,maxDetail:a,minDate:o,minDetail:s,value:c,view:l}){let u=AY(l,s,a),d=e||t;return d?TJ(u,d):LY({maxDate:i,maxDetail:a,minDate:o,minDetail:s,value:c||n,view:l||r})}function zY(e){return e&&(!Array.isArray(e)||e.length===1)}function BY(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var VY=(0,z.forwardRef)(function(e,t){let{activeStartDate:n,allowPartialRange:r,calendarType:i,className:a,"data-testid":o,defaultActiveStartDate:s,defaultValue:c,defaultView:l,formatDay:u,formatLongDate:d,formatMonth:f,formatMonthYear:p,formatShortWeekday:m,formatWeekday:h,formatYear:g,goToRangeStartOnSelect:_=!0,inputRef:v,locale:y,maxDate:b=EY,maxDetail:x=`month`,minDate:S=TY,minDetail:C=`century`,navigationAriaLabel:w,navigationAriaLive:T,navigationLabel:E,next2AriaLabel:D,next2Label:O,nextAriaLabel:k,nextLabel:ee,onActiveStartDateChange:A,onChange:j,onClickDay:M,onClickDecade:te,onClickMonth:ne,onClickWeekNumber:N,onClickYear:P,onDrillDown:re,onDrillUp:F,onViewChange:I,prev2AriaLabel:ie,prev2Label:L,prevAriaLabel:R,prevLabel:ae,returnValue:oe=`start`,selectRange:se,showDoubleView:ce,showFixedNumberOfWeeks:B,showNavigation:le=!0,showNeighboringCentury:V,showNeighboringDecade:ue,showNeighboringMonth:de=!0,showWeekNumbers:fe,tileClassName:pe,tileContent:me,tileDisabled:he,value:ge,view:_e}=e,[ve,ye]=(0,z.useState)(s),[be,xe]=(0,z.useState)(null),[Se,Ce]=(0,z.useState)(Array.isArray(c)?c.map(e=>e===null?null:DY(e)):c==null?null:DY(c)),[we,Te]=(0,z.useState)(l),Ee=n||ve||RY({activeStartDate:n,defaultActiveStartDate:s,defaultValue:c,defaultView:l,maxDate:b,maxDetail:x,minDate:S,minDetail:C,value:ge,view:_e}),De=(()=>{let e=se&&zY(Se)||ge===void 0?Se:ge;return e?Array.isArray(e)?e.map(e=>e===null?null:DY(e)):e===null?null:DY(e):null})(),Oe=jY(x),ke=AY(_e||we,C,x),Ae=OY(C,x),je=se?be:null,Me=Ae.indexOf(ke)<Ae.length-1,Ne=Ae.indexOf(ke)>0,Pe=(0,z.useCallback)(e=>(()=>{switch(oe){case`start`:return PY;case`end`:return FY;case`range`:return IY;default:throw Error(`Invalid returnValue.`)}})()({maxDate:b,maxDetail:x,minDate:S,value:e}),[b,x,S,oe]),Fe=(0,z.useCallback)((e,t)=>{ye(e);let n={action:t,activeStartDate:e,value:De,view:ke};A&&!BY(Ee,e)&&A(n)},[Ee,A,De,ke]),Ie=(0,z.useCallback)((e,t)=>{let n=(()=>{switch(ke){case`century`:return te;case`decade`:return P;case`year`:return ne;case`month`:return M;default:throw Error(`Invalid view: ${ke}.`)}})();n&&n(e,t)},[M,te,ne,P,ke]),Le=(0,z.useCallback)((e,t)=>{if(!Me)return;Ie(e,t);let n=Ae[Ae.indexOf(ke)+1];if(!n)throw Error(`Attempted to drill down from the lowest view.`);ye(e),Te(n);let r={action:`drillDown`,activeStartDate:e,value:De,view:n};A&&!BY(Ee,e)&&A(r),I&&ke!==n&&I(r),re&&re(r)},[Ee,Me,A,Ie,re,I,De,ke,Ae]),Re=(0,z.useCallback)(()=>{if(!Ne)return;let e=Ae[Ae.indexOf(ke)-1];if(!e)throw Error(`Attempted to drill up from the highest view.`);let t=TJ(e,Ee);ye(t),Te(e);let n={action:`drillUp`,activeStartDate:t,value:De,view:e};A&&!BY(Ee,t)&&A(n),I&&ke!==e&&I(n),F&&F(n)},[Ee,Ne,A,F,I,De,ke,Ae]),ze=(0,z.useCallback)((e,t)=>{let n=De;Ie(e,t);let i=se&&!zY(n),a;if(se){if(i)a=TJ(Oe,e);else{if(!n)throw Error(`previousValue is required`);if(Array.isArray(n))throw Error(`previousValue must not be an array`);a=PJ(Oe,n,e)}}else a=Pe(e);let o=!se||i||_?LY({maxDate:b,maxDetail:x,minDate:S,minDetail:C,value:a,view:ke}):null;t.persist(),ye(o),Ce(a);let s={action:`onChange`,activeStartDate:o,value:a,view:ke};if(A&&!BY(Ee,o)&&A(s),j){if(se){if(!zY(a))j(a||null,t);else if(r){if(Array.isArray(a))throw Error(`value must not be an array`);j([a||null,null],t)}}else j(a||null,t)}},[Ee,r,Pe,_,b,x,S,C,A,j,Ie,se,De,Oe,ke]);function Be(e){xe(e)}function Ve(){xe(null)}(0,z.useImperativeHandle)(t,()=>({activeStartDate:Ee,drillDown:Le,drillUp:Re,onChange:ze,setActiveStartDate:Fe,value:De,view:ke}),[Ee,Le,Re,ze,Fe,De,ke]);function He(e){let t={activeStartDate:e?DJ(ke,Ee):TJ(ke,Ee),hover:je,locale:y,maxDate:b,minDate:S,onClick:Me?Le:ze,onMouseOver:se?Be:void 0,tileClassName:pe,tileContent:me,tileDisabled:he,value:De,valueType:Oe};switch(ke){case`century`:return(0,H.jsx)(nY,{formatYear:g,showNeighboringCentury:V,...t});case`decade`:return(0,H.jsx)(oY,{formatYear:g,showNeighboringDecade:ue,...t});case`year`:return(0,H.jsx)(xY,{formatMonth:f,formatMonthYear:p,...t});case`month`:return(0,H.jsx)(_Y,{calendarType:i,formatDay:u,formatLongDate:d,formatShortWeekday:m,formatWeekday:h,onClickWeekNumber:N,onMouseLeave:se?Ve:void 0,showFixedNumberOfWeeks:B===void 0?ce:B,showNeighboringMonth:de,showWeekNumbers:fe,...t});default:throw Error(`Invalid view: ${ke}.`)}}function Ue(){return le?(0,H.jsx)(VJ,{activeStartDate:Ee,drillUp:Re,formatMonthYear:p,formatYear:g,locale:y,maxDate:b,minDate:S,navigationAriaLabel:w,navigationAriaLive:T,navigationLabel:E,next2AriaLabel:D,next2Label:O,nextAriaLabel:k,nextLabel:ee,prev2AriaLabel:ie,prev2Label:L,prevAriaLabel:R,prevLabel:ae,setActiveStartDate:Fe,showDoubleView:ce,view:ke,views:Ae}):null}return(0,H.jsxs)(`div`,{className:U(SY,se&&(Array.isArray(De)?De:[De]).length===1&&`${SY}--selectRange`,ce&&`${SY}--doubleView`,a),"data-testid":o,ref:v,children:[Ue(),(0,H.jsxs)(`div`,{className:`${SY}__viewContainer`,onBlur:se?Ve:void 0,onMouseLeave:se?Ve:void 0,children:[He(),ce?He(!0):null]})]})}),HY=Object.defineProperty,UY=(e,t)=>{let n={};for(var r in e)HY(n,r,{get:e[r],enumerable:!0});return t||HY(n,Symbol.toStringTag,{value:`Module`}),n},WY=sX(),GY=e=>nX(e,WY),KY=sX();GY.write=e=>nX(e,KY);var qY=sX();GY.onStart=e=>nX(e,qY);var JY=sX();GY.onFrame=e=>nX(e,JY);var YY=sX();GY.onFinish=e=>nX(e,YY);var XY=[];GY.setTimeout=(e,t)=>{let n=GY.now()+t,r=()=>{let e=XY.findIndex(e=>e.cancel==r);~e&&XY.splice(e,1),eX-=+!!~e},i={time:n,handler:e,cancel:r};return XY.splice(ZY(n),0,i),eX+=1,rX(),i};var ZY=e=>~(~XY.findIndex(t=>t.time>e)||~XY.length);GY.cancel=e=>{qY.delete(e),JY.delete(e),YY.delete(e),WY.delete(e),KY.delete(e)},GY.sync=e=>{tX=!0,GY.batchedUpdates(e),tX=!1},GY.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,GY.onStart(n)}return r.handler=e,r.cancel=()=>{qY.delete(n),t=null},r};var QY=typeof window<`u`?window.requestAnimationFrame:()=>{};GY.use=e=>QY=e,GY.now=typeof performance<`u`?()=>performance.now():Date.now,GY.batchedUpdates=e=>e(),GY.catch=console.error,GY.frameLoop=`always`,GY.onDemand=()=>{},GY.advance=()=>{GY.frameLoop===`demand`?oX():console.warn(`Cannot call the manual advancement of rafz whilst frameLoop is not set as demand`)};var $Y=-1,eX=0,tX=!1;function nX(e,t){tX?(t.delete(e),e(0)):(t.add(e),rX(),GY.frameLoop===`demand`&&GY.onDemand())}function rX(){$Y<0&&($Y=0,GY.frameLoop!==`demand`&&QY(aX))}function iX(){$Y=-1}function aX(){~$Y&&(QY(aX),GY.batchedUpdates(oX))}function oX(){let e=$Y;$Y=GY.now();let t=ZY($Y);t&&(cX(XY.splice(0,t),e=>e.handler()),eX-=t),eX?(qY.flush(),WY.flush(e?Math.min(64,$Y-e):16.667),JY.flush(),KY.flush(),YY.flush(),GY.frameLoop===`demand`&&eX>0&&GY.onDemand()):iX()}function sX(){let e=new Set,t=e;return{add(n){eX+=+(t==e&&!e.has(n)),e.add(n)},delete(n){return eX-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,eX-=t.size,cX(t,t=>t(n)&&e.add(t)),eX+=e.size,t=e)}}}function cX(e,t){e.forEach(e=>{try{t(e)}catch(e){GY.catch(e)}})}function lX(){}var uX=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),$={arr:Array.isArray,obj:e=>!!e&&e.constructor.name===`Object`,fun:(e=>typeof e==`function`),str:e=>typeof e==`string`,num:e=>typeof e==`number`,und:e=>e===void 0};function dX(e,t){if($.arr(e)){if(!$.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var fX=(e,t)=>e.forEach(t);function pX(e,t,n){if($.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(let r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var mX=e=>$.und(e)?[]:$.arr(e)?e:[e];function hX(e,t){if(e.size){let n=Array.from(e);e.clear(),fX(n,t)}}var gX=(e,...t)=>hX(e,e=>e(...t)),_X=()=>typeof window>`u`||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),vX=UY({assign:()=>wX,colors:()=>xX,createStringInterpolator:()=>yX,skipAnimation:()=>SX,to:()=>bX,willAdvance:()=>CX}),yX,bX,xX=null,SX=!1,CX=lX,wX=e=>{e.to&&(bX=e.to),e.now&&(GY.now=e.now),e.colors!==void 0&&(xX=e.colors),e.skipAnimation!=null&&(SX=e.skipAnimation),e.createStringInterpolator&&(yX=e.createStringInterpolator),e.requestAnimationFrame&&GY.use(e.requestAnimationFrame),e.batchedUpdates&&(GY.batchedUpdates=e.batchedUpdates),e.willAdvance&&(CX=e.willAdvance),e.frameLoop&&(GY.frameLoop=e.frameLoop),e.onDemand&&(GY.onDemand=e.onDemand)},TX=new Set,EX=[],DX=[],OX=0,kX={get idle(){return!TX.size&&!EX.length},start(e){OX>e.priority?(TX.add(e),GY.onStart(AX)):(jX(e),GY(NX))},advance:NX,sort(e){if(OX)GY.onFrame(()=>kX.sort(e));else{let t=EX.indexOf(e);~t&&(EX.splice(t,1),MX(e))}},clear(){EX=[],TX.clear()}};function AX(){TX.forEach(jX),TX.clear(),GY(NX)}function jX(e){EX.includes(e)||MX(e)}function MX(e){EX.splice(PX(EX,t=>t.priority>e.priority),0,e)}function NX(e){let t=DX;for(let n=0;n<EX.length;n++){let r=EX[n];OX=r.priority,r.idle||(CX(r),r.advance(e),r.idle||t.push(r))}return OX=0,DX=EX,DX.length=0,EX=t,EX.length>0}function PX(e,t){let n=e.findIndex(t);return n<0?e.length:n}var FX=(e,t,n)=>Math.min(Math.max(n,e),t),IX={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199},LX=`[-+]?\\d*\\.?\\d+`,RX=`[-+]?\\d*\\.?\\d+%`;function zX(...e){return`\\(\\s*(`+e.join(`)\\s*,\\s*(`)+`)\\s*\\)`}var BX=RegExp(`rgb`+zX(LX,LX,LX)),VX=RegExp(`rgba`+zX(LX,LX,LX,LX)),HX=RegExp(`hsl`+zX(LX,RX,RX)),UX=RegExp(`hsla`+zX(LX,RX,RX,LX)),WX=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,GX=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,KX=/^#([0-9a-fA-F]{6})$/,qX=/^#([0-9a-fA-F]{8})$/;function JX(e){let t;return typeof e==`number`?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=KX.exec(e))?parseInt(t[1]+`ff`,16)>>>0:xX&&xX[e]!==void 0?xX[e]:(t=BX.exec(e))?(ZX(t[1])<<24|ZX(t[2])<<16|ZX(t[3])<<8|255)>>>0:(t=VX.exec(e))?(ZX(t[1])<<24|ZX(t[2])<<16|ZX(t[3])<<8|$X(t[4]))>>>0:(t=WX.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+`ff`,16)>>>0:(t=qX.exec(e))?parseInt(t[1],16)>>>0:(t=GX.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=HX.exec(e))?(XX(QX(t[1]),eZ(t[2]),eZ(t[3]))|255)>>>0:(t=UX.exec(e))?(XX(QX(t[1]),eZ(t[2]),eZ(t[3]))|$X(t[4]))>>>0:null}function YX(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function XX(e,t,n){let r=n<.5?n*(1+t):n+t-n*t,i=2*n-r,a=YX(i,r,e+1/3),o=YX(i,r,e),s=YX(i,r,e-1/3);return Math.round(a*255)<<24|Math.round(o*255)<<16|Math.round(s*255)<<8}function ZX(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function QX(e){return(parseFloat(e)%360+360)%360/360}function $X(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(t*255)}function eZ(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function tZ(e){let t=JX(e);return t===null?e:(t||=0,`rgba(${(t&4278190080)>>>24}, ${(t&16711680)>>>16}, ${(t&65280)>>>8}, ${(t&255)/255})`)}var nZ=(e,t,n)=>{if($.fun(e))return e;if($.arr(e))return nZ({range:e,output:t,extrapolate:n});if($.str(e.output[0]))return yX(e);let r=e,i=r.output,a=r.range||[0,1],o=r.extrapolateLeft||r.extrapolate||`extend`,s=r.extrapolateRight||r.extrapolate||`extend`,c=r.easing||(e=>e);return e=>{let t=iZ(e,a);return rZ(e,a[t],a[t+1],i[t],i[t+1],c,o,s,r.map)}};function rZ(e,t,n,r,i,a,o,s,c){let l=c?c(e):e;if(l<t){if(o===`identity`)return l;o===`clamp`&&(l=t)}if(l>n){if(s===`identity`)return l;s===`clamp`&&(l=n)}return r===i?r:t===n?e<=t?r:i:(t===-1/0?l=-l:n===1/0?l-=t:l=(l-t)/(n-t),l=a(l),r===-1/0?l=-l:i===1/0?l+=r:l=l*(i-r)+r,l)}function iZ(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}var aZ=(e,t=`end`)=>n=>{n=t===`end`?Math.min(n,.999):Math.max(n,.001);let r=n*e;return FX(0,1,(t===`end`?Math.floor(r):Math.ceil(r))/e)},oZ=1.70158,sZ=oZ*1.525,cZ=2.70158,lZ=2*Math.PI/3,uZ=2*Math.PI/4.5,dZ=e=>{let t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},fZ={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-(-2*e+2)**2/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-(1-e)**3,easeInOutCubic:e=>e<.5?4*e*e*e:1-(-2*e+2)**3/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-(1-e)**4,easeInOutQuart:e=>e<.5?8*e*e*e*e:1-(-2*e+2)**4/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-(1-e)**5,easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-(-2*e+2)**5/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>e===0?0:2**(10*e-10),easeOutExpo:e=>e===1?1:1-2**(-10*e),easeInOutExpo:e=>e===0?0:e===1?1:e<.5?2**(20*e-10)/2:(2-2**(-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-e**2),easeOutCirc:e=>Math.sqrt(1-(e-1)**2),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-(2*e)**2))/2:(Math.sqrt(1-(-2*e+2)**2)+1)/2,easeInBack:e=>cZ*e*e*e-oZ*e*e,easeOutBack:e=>1+cZ*(e-1)**3+oZ*(e-1)**2,easeInOutBack:e=>e<.5?(2*e)**2*(7.189819*e-sZ)/2:((2*e-2)**2*(3.5949095*(e*2-2)+sZ)+2)/2,easeInElastic:e=>e===0?0:e===1?1:-(2**(10*e-10))*Math.sin((e*10-10.75)*lZ),easeOutElastic:e=>e===0?0:e===1?1:2**(-10*e)*Math.sin((e*10-.75)*lZ)+1,easeInOutElastic:e=>e===0?0:e===1?1:e<.5?-(2**(20*e-10)*Math.sin((20*e-11.125)*uZ))/2:2**(-20*e+10)*Math.sin((20*e-11.125)*uZ)/2+1,easeInBounce:e=>1-dZ(1-e),easeOutBounce:dZ,easeInOutBounce:e=>e<.5?(1-dZ(1-2*e))/2:(1+dZ(2*e-1))/2,steps:aZ},pZ=Symbol.for(`FluidValue.get`),mZ=Symbol.for(`FluidValue.observers`),hZ=e=>!!(e&&e[pZ]),gZ=e=>e&&e[pZ]?e[pZ]():e,_Z=e=>e[mZ]||null;function vZ(e,t){e.eventObserved?e.eventObserved(t):e(t)}function yZ(e,t){let n=e[mZ];n&&n.forEach(e=>{vZ(e,t)})}var bZ=class{constructor(e){if(!e&&!(e=this.get))throw Error(`Unknown getter`);xZ(this,e)}},xZ=(e,t)=>wZ(e,pZ,t);function SZ(e,t){if(e[pZ]){let n=e[mZ];n||wZ(e,mZ,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function CZ(e,t){let n=e[mZ];if(n&&n.has(t)){let r=n.size-1;r?n.delete(t):e[mZ]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var wZ=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),TZ=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,EZ=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,DZ=RegExp(`(${TZ.source})(%|[a-z]+)`,`i`),OZ=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,kZ=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,AZ=e=>{let[t,n]=jZ(e);if(!t||_X())return e;let r=window.getComputedStyle(document.documentElement).getPropertyValue(t);return r?r.trim():n&&n.startsWith(`--`)?window.getComputedStyle(document.documentElement).getPropertyValue(n)||e:n&&kZ.test(n)?AZ(n):n||e},jZ=e=>{let t=kZ.exec(e);if(!t)return[,];let[,n,r]=t;return[n,r]},MZ,NZ=(e,t,n,r,i)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${i})`,PZ=e=>e.match(TZ)??[],FZ=e=>{MZ||=xX?RegExp(`(${Object.keys(xX).join(`|`)})(?!\\w)`,`g`):/^\b$/;let t=e.output.map(e=>gZ(e).replace(kZ,AZ).replace(EZ,tZ).replace(MZ,tZ)),n=t.map(e=>PZ(e).map(Number)),r=n[0].map((e,t)=>n.map(e=>{if(!(t in e))throw Error(`The arity of each "output" value must be equal`);return e[t]})).map(t=>nZ({...e,output:t})),i=e.range||[0,1],a=t.map(e=>PZ(e)),o=a[0].map((e,t)=>{let n=a.map(e=>{let n=e[t],r=n.indexOf(`.`);return r===-1?0:n.length-r-1});return n.every(e=>e===n[0])&&n[0]>0?n[0]:null});return e=>{let n=i.indexOf(e);if(n!==-1)return t[n];let a=!DZ.test(t[0])&&t.find(e=>DZ.test(e))?.replace(TZ,``),s=0;return t[0].replace(TZ,()=>{let t=s++,n=r[t](e),i=o[t];return`${i==null?n:n.toFixed(i)}${a||``}`}).replace(OZ,NZ)}},IZ=`react-spring: `,LZ=e=>{let t=e,n=!1;if(typeof t!=`function`)throw TypeError(`${IZ}once requires a function parameter`);return(...e)=>{n||=(t(...e),!0)}},RZ=LZ(console.warn);function zZ(){RZ(`${IZ}The "interpolate" function is deprecated in v9 (use "to" instead)`)}var BZ=LZ(console.warn);function VZ(){BZ(`${IZ}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`)}function HZ(e){return $.str(e)&&(e[0]==`#`||/\d/.test(e)||!_X()&&kZ.test(e)||e in(xX||{}))}var UZ=_X()?z.useEffect:z.useLayoutEffect,WZ=()=>{let e=(0,z.useRef)(!1);return UZ(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function GZ(){let e=(0,z.useState)()[1],t=WZ();return()=>{t.current&&e(Math.random())}}var KZ=e=>(0,z.useEffect)(e,qZ),qZ=[];function JZ(e){let t=(0,z.useRef)(void 0);return(0,z.useEffect)(()=>{t.current=e}),t.current}var YZ=Symbol.for(`Animated:node`),XZ=e=>!!e&&e[YZ]===e,ZZ=e=>e&&e[YZ],QZ=(e,t)=>uX(e,YZ,t),$Z=e=>e&&e[YZ]&&e[YZ].getPayload(),eQ=class{constructor(){QZ(this,this)}getPayload(){return this.payload||[]}},tQ=class e extends eQ{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,$.num(this._value)&&(this.lastPosition=this._value)}static create(t){return new e(t)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return $.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,$.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},nQ=class e extends tQ{constructor(e){super(0),this._string=null,this._toString=nZ({output:[e,e]})}static create(t){return new e(t)}getValue(){return this._string??=this._toString(this._value)}setValue(e){if($.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else if(super.setValue(e))this._string=null;else return!1;return!0}reset(e){e&&(this._toString=nZ({output:[this.getValue(),e]})),this._value=0,super.reset()}},rQ={dependencies:null},iQ=class extends eQ{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return pX(this.source,(n,r)=>{XZ(n)?t[r]=n.getValue(e):hZ(n)?t[r]=gZ(n):e||(t[r]=n)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&fX(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return pX(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){rQ.dependencies&&hZ(e)&&rQ.dependencies.add(e);let t=$Z(e);t&&fX(t,e=>this.add(e))}},aQ=class e extends iQ{constructor(e){super(e)}static create(t){return new e(t)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,n)=>t.setValue(e[n])).some(Boolean):(super.setValue(e.map(oQ)),!0)}};function oQ(e){return(HZ(e)?nQ:tQ).create(e)}function sQ(e){let t=ZZ(e);return t?t.constructor:$.arr(e)?aQ:HZ(e)?nQ:tQ}var cQ=(e,t)=>{let n=!$.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,z.forwardRef)((r,i)=>{let a=(0,z.useRef)(null),o=n&&(0,z.useCallback)(e=>{a.current=dQ(i,e)},[i]),[s,c]=uQ(r,t),l=GZ(),u=()=>{let e=a.current;(!n||e)&&(e?t.applyAnimatedValues(e,s.getValue(!0)):!1)===!1&&l()},d=new lQ(u,c),f=(0,z.useRef)(void 0);UZ(()=>(f.current=d,fX(c,e=>SZ(e,d)),()=>{f.current&&(fX(f.current.deps,e=>CZ(e,f.current)),GY.cancel(f.current.update))})),(0,z.useEffect)(u,[]),KZ(()=>()=>{let e=f.current;fX(e.deps,t=>CZ(t,e))});let p=t.getComponentProps(s.getValue());return z.createElement(e,{...p,ref:o})})},lQ=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){e.type==`change`&&GY.write(this.update)}};function uQ(e,t){let n=new Set;return rQ.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}),e=new iQ(e),rQ.dependencies=null,[e,n]}function dQ(e,t){return e&&($.fun(e)?e(t):e.current=t),t}var fQ=Symbol.for(`AnimatedComponent`),pQ=new WeakMap,mQ=(e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:n=e=>new iQ(e),getComponentProps:r=e=>e}={})=>{let i={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},a=e=>{let t=hQ(e)||`Anonymous`;if($.str(e))e=a[e]||(a[e]=cQ(e,i));else{let t=e[fQ]??pQ.get(e);if(!t){t=cQ(e,i);try{e[fQ]=t}catch{}pQ.set(e,t)}e=t}return e.displayName=`Animated(${t})`,e};return pX(e,(t,n)=>{$.arr(e)&&(n=hQ(t)),a[n]=a(t)}),{animated:a}},hQ=e=>$.str(e)?e:e&&$.str(e.displayName)?e.displayName:$.fun(e)&&e.name||null;function gQ(e,...t){return $.fun(e)?e(...t):e}var _Q=(e,t)=>e===!0||!!(t&&e&&($.fun(e)?e(t):mX(e).includes(t))),vQ=(e,t)=>$.obj(e)?t&&e[t]:e,yQ=(e,t)=>e.default===!0?e[t]:e.default?e.default[t]:void 0,bQ=e=>e,xQ=(e,t=bQ)=>{let n=SQ;e.default&&e.default!==!0&&(e=e.default,n=Object.keys(e));let r={};for(let i of n){let n=t(e[i],i);$.und(n)||(r[i]=n)}return r},SQ=[`config`,`onProps`,`onStart`,`onChange`,`onPause`,`onResume`,`onRest`],CQ={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function wQ(e){let t={},n=0;if(pX(e,(e,r)=>{CQ[r]||(t[r]=e,n++)}),n)return t}function TQ(e){let t=wQ(e);if(t){let n={to:t};return pX(e,(e,r)=>r in t||(n[r]=e)),n}return{...e}}function EQ(e){let t=gZ(e);return $.arr(t)?t.map(EQ):HZ(t)?vX.createStringInterpolator({range:[0,1],output:[t,t]})(1):t}function DQ(e){for(let t in e)return!0;return!1}function OQ(e){return $.fun(e)||$.arr(e)&&$.obj(e[0])}function kQ(e,t){e.ref?.delete(e),t?.delete(e)}function AQ(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var jQ={...{default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}}.default,mass:1,damping:1,easing:fZ.linear,clamp:!1},MQ=class{constructor(){this.velocity=0,Object.assign(this,jQ)}};function NQ(e,t,n){n&&(n={...n},PQ(n,t),t={...n,...t}),PQ(e,t),Object.assign(e,t);for(let t in jQ)e[t]??(e[t]=jQ[t]);let{frequency:r,damping:i}=e,{mass:a}=e;return $.und(r)||(r<.01&&(r=.01),i<0&&(i=0),e.tension=(2*Math.PI/r)**2*a,e.friction=4*Math.PI*i*a/r),e}function PQ(e,t){if(!$.und(t.decay))e.duration=void 0;else{let n=!$.und(t.tension)||!$.und(t.friction);!n&&$.und(t.frequency)&&$.und(t.damping)&&$.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}}var FQ=[],IQ=class{constructor(){this.changed=!1,this.values=FQ,this.toValues=null,this.fromValues=FQ,this.config=new MQ,this.immediate=!1}};function LQ(e,{key:t,props:n,defaultProps:r,state:i,actions:a}){return new Promise((o,s)=>{let c,l,u=_Q(n.cancel??r?.cancel,t);if(u)p();else{$.und(n.pause)||(i.paused=_Q(n.pause,t));let e=r?.pause;e!==!0&&(e=i.paused||_Q(e,t)),c=gQ(n.delay||0,t),e?(i.resumeQueue.add(f),a.pause()):(a.resume(),f())}function d(){i.resumeQueue.add(f),i.timeouts.delete(l),l.cancel(),c=l.time-GY.now()}function f(){c>0&&!vX.skipAnimation?(i.delayed=!0,l=GY.setTimeout(p,c),i.pauseQueue.add(d),i.timeouts.add(l)):p()}function p(){i.delayed&&=!1,i.pauseQueue.delete(d),i.timeouts.delete(l),e<=(i.cancelId||0)&&(u=!0);try{a.start({...n,callId:e,cancel:u},o)}catch(e){s(e)}}})}var RQ=(e,t)=>t.length==1?t[0]:t.some(e=>e.cancelled)?VQ(e.get()):t.every(e=>e.noop)?zQ(e.get()):BQ(e.get(),t.every(e=>e.finished)),zQ=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),BQ=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),VQ=e=>({value:e,cancelled:!0,finished:!1});function HQ(e,t,n,r){let{callId:i,parentId:a,onRest:o}=t,{asyncTo:s,promise:c}=n;return!a&&e===s&&!t.reset?c:n.promise=(async()=>{n.asyncId=i,n.asyncTo=e;let l=xQ(t,(e,t)=>t===`onRest`?void 0:e),u,d,f=new Promise((e,t)=>(u=e,d=t)),p=e=>{let t=i<=(n.cancelId||0)&&VQ(r)||i!==n.asyncId&&BQ(r,!1);if(t)throw e.result=t,d(e),e},m=0,h=(e,t)=>{let a=new WQ,o=new GQ;return(async()=>{p(a);let s=$.obj(e)?{...e}:{...t,to:e};if(s.parentId=i,pX(l,(e,t)=>{$.und(s[t])&&(s[t]=e)}),vX.skipAnimation){if(++m>1024)throw UQ(n),o.result=BQ(r,!1),d(o),o;return s.immediate=!0,await r.start(s)}let c=await r.start(s);return p(a),n.paused&&await new Promise(e=>{n.resumeQueue.add(e)}),c})()},g;try{let t;t=$.arr(e)?(async e=>{for(let t of e)await h(t)})(e):Promise.resolve(e(h,r.stop.bind(r))),await Promise.all([t.then(u),f]),g=BQ(r.get(),!0,!1)}catch(e){if(e instanceof WQ)g=e.result;else if(e instanceof GQ)g=e.result;else throw e}finally{i==n.asyncId&&(n.asyncId=a,n.asyncTo=a?s:void 0,n.promise=a?c:void 0)}return $.fun(o)&&GY.batchedUpdates(()=>{o(g,r,r.item)}),g})()}function UQ(e,t){hX(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var WQ=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},GQ=class extends Error{constructor(){super(`SkipAnimationSignal`)}},KQ=e=>e instanceof JQ,qQ=1,JQ=class extends bZ{constructor(...e){super(...e),this.id=qQ++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=ZZ(this);return e&&e.getValue()}to(...e){return vX.to(this,e)}interpolate(...e){return zZ(),vX.to(this,e)}toJSON(){return this.get()}observerAdded(e){e==1&&this._attach()}observerRemoved(e){e==0&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){yZ(this,{type:`change`,parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||kX.sort(this),yZ(this,{type:`priority`,parent:this,priority:e})}},YQ=Symbol.for(`SpringPhase`),XQ=1,ZQ=2,QQ=4,$Q=e=>(e[YQ]&XQ)>0,e$=e=>(e[YQ]&ZQ)>0,t$=e=>(e[YQ]&QQ)>0,n$=(e,t)=>t?e[YQ]|=3:e[YQ]&=-3,r$=(e,t)=>t?e[YQ]|=QQ:e[YQ]&=-5,i$=class extends JQ{constructor(e,t){if(super(),this.animation=new IQ,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!$.und(e)||!$.und(t)){let n=$.obj(e)?{...e}:{...t,from:e};$.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(e$(this)||this._state.asyncTo)||t$(this)}get goal(){return gZ(this.animation.to)}get velocity(){let e=ZZ(this);return e instanceof tQ?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return $Q(this)}get isAnimating(){return e$(this)}get isPaused(){return t$(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1,r=this.animation,{toValues:i}=r,{config:a}=r,o=$Z(r.to);!o&&hZ(r.to)&&(i=mX(gZ(r.to))),r.values.forEach((s,c)=>{if(s.done)return;let l=s.constructor==nQ?1:o?o[c].lastPosition:i[c],u=r.immediate,d=l;if(!u){if(d=s.lastPosition,a.tension<=0){s.done=!0;return}let t=s.elapsedTime+=e,n=r.fromValues[c],i=s.v0==null?s.v0=$.arr(a.velocity)?a.velocity[c]:a.velocity:s.v0,o,f=a.precision||(n==l?.005:Math.max(Math.max(Math.abs(l),Math.abs(n),1)*2**-52,Math.min(1,Math.abs(l-n)*.001)));if(!$.und(a.duration)){let r=1;a.duration>0&&(this._memoizedDuration!==a.duration&&(this._memoizedDuration=a.duration,s.durationProgress>0&&(s.elapsedTime=a.duration*s.durationProgress,t=s.elapsedTime+=e)),r=(a.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,s.durationProgress=r),d=n+a.easing(r)*(l-n),o=(d-s.lastPosition)/e,u=r==1}else if(a.decay){let e=a.decay===!0?.998:a.decay,r=Math.exp(-(1-e)*t);d=n+i/(1-e)*(1-r),u=Math.abs(s.lastPosition-d)<=f,o=i*r}else{o=s.lastVelocity==null?i:s.lastVelocity;let t=a.restVelocity||f/10,r=a.clamp?0:a.bounce,c=!$.und(r),p=n==l?s.v0>0:n<l,m,h=!1,g=Math.ceil(e/1);for(let e=0;e<g&&(m=Math.abs(o)>t,!(!m&&(u=Math.abs(l-d)<=f,u)));++e){c&&(h=d==l||d>l==p,h&&(o=-o*r,d=l));let e=(-a.tension*1e-6*(d-l)+-a.friction*.001*o)/a.mass;o+=e*1,d+=o*1}}s.lastVelocity=o,Number.isNaN(d)&&(console.warn(`Got NaN while animating:`,this),u=!0)}o&&!o[c].done&&(u=!1),u?s.done=!0:t=!1,s.setValue(d,a.round)&&(n=!0)});let s=ZZ(this),c=s.getValue();if(t){let e=gZ(r.to);(c!==e||n)&&!a.decay?(s.setValue(e),this._onChange(e)):n&&a.decay&&this._onChange(c),this._stop()}else n&&this._onChange(c)}set(e){return GY.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(e$(this)){let{to:e,config:t}=this.animation;GY.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||=[]).push(e),this}start(e,t){let n;return $.und(e)?(n=this.queue||[],this.queue=[]):n=[$.obj(e)?e:{...t,to:e}],Promise.all(n.map(e=>this._update(e))).then(e=>RQ(this,e))}stop(e){let{to:t}=this.animation;return $.und(t)||this._focus(this.get()),UQ(this._state,e&&this._lastCallId),GY.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){e.type==`change`?this._start():e.type==`priority`&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||``,{to:n,from:r}=e;n=$.obj(n)?n[t]:n,(n==null||OQ(n))&&(n=void 0),r=$.obj(r)?r[t]:r,r??=void 0;let i={to:n,from:r};return $Q(this)||(e.reverse&&([n,r]=[r,n]),r=gZ(r),$.und(r)?ZZ(this)||this._set(n):this._set(r)),i}_update({...e},t){let{key:n,defaultProps:r}=this;e.default&&Object.assign(r,xQ(e,(e,t)=>/^on/.test(t)?vQ(e,n):e)),d$(this,e,`onProps`),f$(this,`onProps`,e,this);let i=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let a=this._state;return LQ(++this._lastCallId,{key:n,props:e,defaultProps:r,state:a,actions:{pause:()=>{t$(this)||(r$(this,!0),gX(a.pauseQueue),f$(this,`onPause`,BQ(this,a$(this,this.animation.to)),this))},resume:()=>{t$(this)&&(r$(this,!1),e$(this)&&this._resume(),gX(a.resumeQueue),f$(this,`onResume`,BQ(this,a$(this,this.animation.to)),this))},start:this._merge.bind(this,i)}}).then(n=>{if(e.loop&&n.finished&&!(t&&n.noop)){let t=o$(e);if(t)return this._update(t,!0)}return n})}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(VQ(this));let r=!$.und(e.to),i=!$.und(e.from);if(r||i){if(t.callId>this._lastToId)this._lastToId=t.callId;else return n(VQ(this))}let{key:a,defaultProps:o,animation:s}=this,{to:c,from:l}=s,{to:u=c,from:d=l}=e;i&&!r&&(!t.default||$.und(u))&&(u=d),t.reverse&&([u,d]=[d,u]);let f=!dX(d,l);f&&(s.from=d),d=gZ(d);let p=!dX(u,c);p&&this._focus(u);let m=OQ(t.to),{config:h}=s,{decay:g,velocity:_}=h;(r||i)&&!h.decay&&(h.velocity=0),t.config&&!m&&NQ(h,gQ(t.config,a),t.config===o.config?void 0:gQ(o.config,a));let v=ZZ(this);if(!v||$.und(u))return n(BQ(this,!0));let y=$.und(t.reset)?i&&!t.default:!$.und(d)&&_Q(t.reset,a),b=y?d:this.get(),x=EQ(u),S=$.num(x)||$.arr(x)||HZ(x),C=!m&&(!S||_Q(o.immediate||t.immediate,a));if(p){let e=sQ(u);if(e!==v.constructor){if(C)v=this._set(x);else throw Error(`Cannot animate between ${v.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let w=v.constructor,T=hZ(u),E=!1;if(!T){let e=y||!$Q(this)&&f;(p||e)&&(E=dX(EQ(b),x),T=!E),(dX(s.immediate,C)||C)&&dX(h.decay,g)&&dX(h.velocity,_)||(T=!0)}if(E&&e$(this)&&(s.changed&&!y?T=!0:T||this._stop(c)),!m&&((T||hZ(c))&&(s.values=v.getPayload(),s.toValues=hZ(u)?null:w==nQ?[1]:mX(x)),s.immediate!=C&&(s.immediate=C,!C&&!y&&this._set(c)),T)){let{onRest:e}=s;fX(u$,e=>d$(this,t,e));let r=BQ(this,a$(this,c));gX(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&GY.batchedUpdates(()=>{s.changed=!y,e?.(r,this),y?gQ(o.onRest,r):s.onStart?.(r,this)})}y&&this._set(b),m?n(HQ(t.to,t,this._state,this)):T?this._start():e$(this)&&!p?this._pendingCalls.add(n):n(zQ(b))}_focus(e){let t=this.animation;e!==t.to&&(_Z(this)&&this._detach(),t.to=e,_Z(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;hZ(t)&&(SZ(t,this),KQ(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;hZ(e)&&CZ(e,this)}_set(e,t=!0){let n=gZ(e);if(!$.und(n)){let e=ZZ(this);if(!e||!dX(n,e.getValue())){let r=sQ(n);!e||e.constructor!=r?QZ(this,r.create(n)):e.setValue(n),e&&GY.batchedUpdates(()=>{this._onChange(n,t)})}}return ZZ(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,f$(this,`onStart`,BQ(this,a$(this,e.to)),this))}_onChange(e,t){let n=BQ(e,!1);t||(this._onStart(),gQ(this.animation.onChange,n,this)),gQ(this.defaultProps.onChange,n,this),super._onChange(e,t)}_start(){let e=this.animation;ZZ(this).reset(gZ(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),e$(this)||(n$(this,!0),t$(this)||this._resume())}_resume(){vX.skipAnimation?this.finish():kX.start(this)}_stop(e,t){if(e$(this)){n$(this,!1);let n=this.animation;fX(n.values,e=>{e.done=!0}),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),yZ(this,{type:`idle`,parent:this});let r=t?VQ(this.get()):BQ(this.get(),a$(this,e??n.to));gX(this._pendingCalls,r),n.changed=!1,f$(this,`onRest`,r,this)}}};function a$(e,t){let n=EQ(t);return dX(EQ(e.get()),n)}function o$(e,t=e.loop,n=e.to){let r=gQ(t);if(r){let i=r!==!0&&TQ(r),a=(i||e).reverse,o=!i||i.reset;return s$({...e,loop:t,default:!1,pause:void 0,to:!a||OQ(n)?n:void 0,from:o?e.from:void 0,reset:o,...i})}}function s$(e){let{to:t,from:n}=e=TQ(e),r=new Set;return $.obj(t)&&l$(t,r),$.obj(n)&&l$(n,r),e.keys=r.size?Array.from(r):null,e}function c$(e){let t=s$(e);return $.und(t.default)&&(t.default=xQ(t)),t}function l$(e,t){pX(e,(e,n)=>e!=null&&t.add(n))}var u$=[`onStart`,`onRest`,`onChange`,`onPause`,`onResume`];function d$(e,t,n){e.animation[n]=t[n]===yQ(t,n)?void 0:vQ(t[n],e.key)}function f$(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var p$=[`onStart`,`onChange`,`onRest`],m$=1,h$=class{constructor(e,t){this.id=m$++,this.springs={},this.queue=[],this._lastAsyncId=0,this._lastLoopId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,n)=>e[n]=t.get()),e}set(e){for(let t in e){let n=e[t];$.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(s$(e)),this}start(e){let{queue:t}=this;return e?t=mX(e).map(s$):this.queue=[],this._flush?this._flush(this,t):(S$(this,t),g$(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){let n=this.springs;fX(mX(t),t=>n[t].stop(!!e))}else UQ(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if($.und(e))this.start({pause:!0});else{let t=this.springs;fX(mX(e),e=>t[e].pause())}return this}resume(e){if($.und(e))this.start({pause:!1});else{let t=this.springs;fX(mX(e),e=>t[e].resume())}return this}each(e){pX(this.springs,e)}onLoopReset(e){let t=this._onLoopReset??=new Set;return t.add(e),()=>{t.delete(e)}}_onFrame(){let{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,i=this._changed.size>0;(r&&!this._started||i&&!this._started)&&(this._started=!0,hX(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let a=!r&&this._started,o=i||a&&n.size?this.get():null;i&&t.size&&hX(t,([e,t])=>{t.value=o,e(t,this,this._item)}),a&&(this._started=!1,hX(n,([e,t])=>{t.value=o,e(t,this,this._item)}))}eventObserved(e){if(e.type==`change`)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else if(e.type==`idle`)this._active.delete(e.parent);else return;GY.onFrame(this._onFrame)}};function g$(e,t){return Promise.all(t.map(t=>_$(e,t))).then(t=>RQ(e,t))}async function _$(e,t,n){let{keys:r,to:i,from:a,loop:o,onRest:s,onResolve:c}=t,l=$.obj(t.default)&&t.default;o&&(t.loop=!1);let u=t,d=!n&&!u.parentId&&`loop`in t?++e._lastLoopId:n?u.loopId:e._lastLoopId;i===!1&&(t.to=null),a===!1&&(t.from=null);let f=$.arr(i)||$.fun(i)?i:void 0;f?(t.to=void 0,t.onRest=void 0,l&&(l.onRest=void 0)):fX(p$,n=>{let r=t[n];if($.fun(r)){let i=e._events[n];t[n]=(({finished:e,cancelled:t})=>{let n=i.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):i.set(r,{value:null,finished:e||!1,cancelled:t||!1})}),l&&(l[n]=t[n])}});let p=e._state;t.pause===!p.paused?(p.paused=t.pause,gX(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);let m=(r||Object.keys(e.springs)).map(n=>e.springs[n].start(t)),h=t.cancel===!0||yQ(t,`cancel`)===!0;(f||h&&p.asyncId)&&m.push(LQ(++e._lastAsyncId,{props:t,state:p,actions:{pause:lX,resume:lX,start(t,n){h?(UQ(p,e._lastAsyncId),n(VQ(e))):(t.onRest=s,n(HQ(f,t,p,e)))}}})),p.paused&&await new Promise(e=>{p.resumeQueue.add(e)});let g=RQ(e,await Promise.all(m));if(o&&g.finished&&!(n&&g.noop)&&d===e._lastLoopId){let n=o$(t,o,i);if(n)return n.loopId=d,e._onLoopReset?.forEach(e=>e()),S$(e,[n]),_$(e,n,!0)}return c&&GY.batchedUpdates(()=>c(g,e,e.item)),g}function v$(e,t){let n={...e.springs};return t&&fX(mX(t),e=>{$.und(e.keys)&&(e=s$(e)),$.obj(e.to)||(e={...e,to:void 0}),x$(n,e,e=>b$(e))}),y$(e,n),n}function y$(e,t){pX(t,(t,n)=>{e.springs[n]||(e.springs[n]=t,SZ(t,e))})}function b$(e,t){let n=new i$;return n.key=e,t&&SZ(n,t),n}function x$(e,t,n){t.keys&&fX(t.keys,r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)})}function S$(e,t){fX(t,t=>{x$(e.springs,t,t=>b$(t,e))})}var C$=z.createContext({pause:!1,immediate:!1}),w$=()=>{let e=[],t=function(t){VZ();let r=[];return fX(e,(e,i)=>{if($.und(t))r.push(e.start());else{let a=n(t,e,i);a&&r.push(e.start(a))}}),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return fX(e,e=>e.pause(...arguments)),this},t.resume=function(){return fX(e,e=>e.resume(...arguments)),this},t.set=function(t){fX(e,(e,n)=>{let r=$.fun(t)?t(n,e):t;r&&e.set(r)})},t.start=function(t){let n=[];return fX(e,(e,r)=>{if($.und(t))n.push(e.start());else{let i=this._getProps(t,e,r);i&&n.push(e.start(i))}}),n},t.stop=function(){return fX(e,e=>e.stop(...arguments)),this},t.update=function(t){return fX(e,(e,n)=>e.update(this._getProps(t,e,n))),this};let n=function(e,t,n){return $.fun(e)?e(n,t):e};return t._getProps=n,t};function T$(e,t,n){let r=$.fun(t)&&t;r&&!n&&(n=[]);let i=(0,z.useMemo)(()=>r||arguments.length==3?w$():void 0,[]),a=(0,z.useRef)(0),o=GZ(),s=(0,z.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let n=v$(e,t);return a.current>0&&!s.queue.length&&!Object.keys(n).some(t=>!e.springs[t])?g$(e,t):new Promise(r=>{y$(e,n),s.queue.push(()=>{r(g$(e,t))}),o()})}}),[]),c=(0,z.useRef)([...s.ctrls]),l=(0,z.useRef)([]),u=(0,z.useRef)([]);u.current=[];let d=JZ(e)||0;(0,z.useMemo)(()=>{fX(c.current.slice(e,d),e=>{kQ(e,i),e.stop(!0)}),c.current.length=e,f(d,e)},[e]),(0,z.useMemo)(()=>{f(0,Math.min(d,e))},n);function f(e,n){for(let i=e;i<n;i++){let e=c.current[i]||(c.current[i]=new h$(null,s.flush)),n=r?r(i,e):t[i];n&&(l.current[i]=c$(n))}}let p=c.current.map((e,t)=>v$(e,l.current[t])),m=(0,z.useContext)(C$),h=m!==JZ(m)&&DQ(m);UZ(()=>{a.current++,s.ctrls=c.current;let{queue:e}=s;e.length&&(s.queue=[],fX(e,e=>e()));let t=l.current.length>0?l.current:u.current;fX(c.current,(e,n)=>{i?.add(e),h&&e.start({default:m});let r=t[n];r&&(AQ(e,r.ref),e.ref?e.queue.push({...r,default:$.obj(r.default)?{...r.default}:r.default}):e.start(r))}),l.current.length>0&&(u.current=l.current),l.current=[]}),KZ(()=>()=>{fX(s.ctrls,e=>e.stop(!0))});let g=p.map(e=>({...e}));return i?[g,i]:g}function E$(e,t){let n=$.fun(e),[[r],i]=T$(1,n?e:[e],n?t||[]:t);return n||arguments.length==2?[r,i]:r}var D$=class extends JQ{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=nZ(...t);let n=this._get(),r=sQ(n);QZ(this,r.create(n))}advance(e){let t=this._get();dX(t,this.get())||(ZZ(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&k$(this._active)&&A$(this)}_get(){let e=$.arr(this.source)?this.source.map(gZ):mX(gZ(this.source));return this.calc(...e)}_start(){this.idle&&!k$(this._active)&&(this.idle=!1,fX($Z(this),e=>{e.done=!1}),vX.skipAnimation?(GY.batchedUpdates(()=>this.advance()),A$(this)):kX.start(this))}_attach(){let e=1;fX(mX(this.source),t=>{hZ(t)&&SZ(t,this),KQ(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){fX(mX(this.source),e=>{hZ(e)&&CZ(e,this)}),this._active.clear(),A$(this)}eventObserved(e){e.type==`change`?e.idle?this.advance():(this._active.add(e.parent),this._start()):e.type==`idle`?this._active.delete(e.parent):e.type==`priority`&&(this.priority=mX(this.source).reduce((e,t)=>Math.max(e,(KQ(t)?t.priority:0)+1),0))}};function O$(e){return e.idle!==!1}function k$(e){return!e.size||Array.from(e).every(O$)}function A$(e){e.idle||(e.idle=!0,fX($Z(e),e=>{e.done=!0}),yZ(e,{type:`idle`,parent:e}))}vX.assign({createStringInterpolator:FZ,to:(e,t)=>new D$(e,t)}),kX.advance;var j$=/^--/;function M$(e,t){return t==null||typeof t==`boolean`||t===``?``:typeof t==`number`&&t!==0&&!j$.test(e)&&!(F$.hasOwnProperty(e)&&F$[e])?t+`px`:(``+t).trim()}var N$={};function P$(e,t){if(!e.nodeType||!e.setAttribute||!e.removeAttribute)return!1;let n=e.nodeName===`filter`||e.parentNode&&e.parentNode.nodeName===`filter`,{className:r,style:i,children:a,scrollTop:o,scrollLeft:s,viewBox:c,...l}=t,u=Object.values(l),d=Object.keys(l).map(t=>n||e.hasAttribute(t)?t:N$[t]||(N$[t]=t.replace(/([A-Z])/g,e=>`-`+e.toLowerCase())));t.hasOwnProperty(`children`)&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){let n=M$(t,i[t]);j$.test(t)?e.style.setProperty(t,n):e.style[t]=n}d.forEach((t,n)=>{let r=u[n];r===void 0?e.removeAttribute(t):e.setAttribute(t,r)}),t.hasOwnProperty(`className`)&&(r===void 0?e.removeAttribute(`class`):e.className=r),o!==void 0&&(e.scrollTop=o),s!==void 0&&(e.scrollLeft=s),t.hasOwnProperty(`viewBox`)&&(c===void 0?e.removeAttribute(`viewBox`):e.setAttribute(`viewBox`,c))}var F$={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},I$=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),L$=[`Webkit`,`Ms`,`Moz`,`O`];F$=Object.keys(F$).reduce((e,t)=>(L$.forEach(n=>e[I$(n,t)]=e[t]),e),F$);var R$=/^(matrix3d|matrix|translate3d|translate[XYZ]?|scale3d|scale[XYZ]?|rotate3d|rotate[XYZ]?|skew[XY]?)$/,z$=/^(translate)/,B$=/^(rotate|skew)/,V$=(e,t)=>$.num(e)&&e!==0?e+t:e,H$=(e,t)=>$.arr(e)?e.every(e=>H$(e,t)):$.num(e)?e===t:parseFloat(e)===t,U$=class extends iQ{constructor({x:e,y:t,z:n,...r}){let i=[],a=[];(e||t||n)&&(i.push([e||0,t||0,n||0]),a.push(e=>[`translate3d(${e.map(e=>V$(e,`px`)).join(`,`)})`,H$(e,0)])),pX(r,(e,t)=>{if(t===`transform`)i.push([e||``]),a.push(e=>[e,e===``]);else if(R$.test(t)){if(delete r[t],$.und(e))return;let n=z$.test(t)?`px`:B$.test(t)?`deg`:``;i.push(mX(e)),a.push(t===`rotate3d`?([e,t,r,i])=>[`rotate3d(${e},${t},${r},${V$(i,n)})`,H$(i,0)]:e=>[`${t}(${e.map(e=>V$(e,n)).join(`,`)})`,H$(e,+!!t.startsWith(`scale`))])}}),i.length&&(r.transform=new W$(i,a)),super(r)}},W$=class extends bZ{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||=this._get()}_get(){let e=``,t=!0;return fX(this.inputs,(n,r)=>{let i=gZ(n[0]),[a,o]=this.transforms[r]($.arr(i)?i:n.map(gZ));e+=` `+a,t&&=o}),t?`none`:e}observerAdded(e){e==1&&fX(this.inputs,e=>fX(e,e=>hZ(e)&&SZ(e,this)))}observerRemoved(e){e==0&&fX(this.inputs,e=>fX(e,e=>hZ(e)&&CZ(e,this)))}eventObserved(e){e.type==`change`&&(this._value=null),yZ(this,e)}},G$=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.big.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.keygen.label.legend.li.link.main.map.mark.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rp.rt.ruby.s.samp.script.section.select.small.source.span.strong.style.sub.summary.sup.table.tbody.td.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr.circle.clipPath.defs.ellipse.foreignObject.g.image.line.linearGradient.mask.path.pattern.polygon.polyline.radialGradient.rect.stop.svg.text.tspan`.split(`.`);vX.assign({batchedUpdates:Pl.unstable_batchedUpdates,createStringInterpolator:FZ,colors:IX});var K$=mQ(G$,{applyAnimatedValues:P$,createAnimatedStyle:e=>new U$(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}).animated,q$=Math.PI,J$=2*q$,Y$=1e-6,X$=J$-Y$;function Z$(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Q$(e){let t=Math.floor(e);if(!(t>=0))throw Error(`invalid digits: ${e}`);if(t>15)return Z$;let n=10**t;return function(e){this._+=e[0];for(let t=1,r=e.length;t<r;++t)this._+=Math.round(arguments[t]*n)/n+e[t]}}function $$(e,t,n,r){return e===n&&t===r}function e1(e){let t=Math.floor(e);if(!(t<=15))return $$;let n=10**t,r=function(e){return Math.round(e*n)};return function(e,t,n,i){return r(e)===r(n)&&r(t)===r(i)}}var t1=class{constructor(e){this._x0=this._y0=this._x1=this._y1=null,this._=``,this._append=e==null?Z$:Q$(e),this._equal=e==null?$$:e1(e)}moveTo(e,t){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(e,t){this._append`L${this._x1=+e},${this._y1=+t}`}quadraticCurveTo(e,t,n,r){this._append`Q${+e},${+t},${this._x1=+n},${this._y1=+r}`}bezierCurveTo(e,t,n,r,i,a){this._append`C${+e},${+t},${+n},${+r},${this._x1=+i},${this._y1=+a}`}arcTo(e,t,n,r,i){if(e=+e,t=+t,n=+n,r=+r,i=+i,i<0)throw Error(`negative radius: ${i}`);let a=this._x1,o=this._y1,s=n-e,c=r-t,l=a-e,u=o-t,d=l*l+u*u;if(this._x1===null)this._append`M${this._x1=e},${this._y1=t}`;else if(d>Y$){if(!(Math.abs(u*s-c*l)>Y$)||!i)this._append`L${this._x1=e},${this._y1=t}`;else{let f=n-a,p=r-o,m=s*s+c*c,h=f*f+p*p,g=Math.sqrt(m),_=Math.sqrt(d),v=i*Math.tan((q$-Math.acos((m+d-h)/(2*g*_)))/2),y=v/_,b=v/g;Math.abs(y-1)>Y$&&this._append`L${e+y*l},${t+y*u}`,this._append`A${i},${i},0,0,${+(u*f>l*p)},${this._x1=e+b*s},${this._y1=t+b*c}`}}}arc(e,t,n,r,i,a){if(e=+e,t=+t,n=+n,a=!!a,n<0)throw Error(`negative radius: ${n}`);let o=n*Math.cos(r),s=n*Math.sin(r),c=e+o,l=t+s,u=1^a,d=a?r-i:i-r;if(this._x1===null?this._append`M${c},${l}`:(Math.abs(this._x1-c)>Y$||Math.abs(this._y1-l)>Y$)&&this._append`L${c},${l}`,n){if(d<0&&(d=d%J$+J$),d>X$)this._append`A${n},${n},0,1,${u},${e-o},${t-s}A${n},${n},0,1,${u},${this._x1=c},${this._y1=l}`;else if(d>Y$){let a=e+n*Math.cos(i),o=t+n*Math.sin(i);if(d>=q$&&this._equal(c,l,a,o)){d/=2;let i=r+d;this._append`A${n},${n},0,${+(d>=q$)},${u},${e+n*Math.cos(i)},${t+n*Math.sin(i)}`}this._append`A${n},${n},0,${+(d>=q$)},${u},${this._x1=a},${this._y1=o}`}}}rect(e,t,n,r){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+t}h${n=+n}v${+r}h${-n}Z`}toString(){return this._}};t1.prototype;function n1(e){return function(){return e}}var r1=Math.cos,i1=Math.sin,a1=Math.sqrt,o1=1e-12,s1=Math.PI;s1/2;var c1=2*s1;function l1(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{let e=Math.floor(n);if(!(e>=0))throw RangeError(`invalid digits: ${n}`);t=e}return e},()=>new t1(t)}Array.prototype.slice;function u1(e){return typeof e==`object`&&`length`in e?e:Array.from(e)}function d1(e){this._context=e}d1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t)}}};function f1(e){return new d1(e)}function p1(e){return e[0]}function m1(e){return e[1]}function h1(e,t){var n=n1(!0),r=null,i=f1,a=null,o=l1(s);e=typeof e==`function`?e:e===void 0?p1:n1(e),t=typeof t==`function`?t:t===void 0?m1:n1(t);function s(s){var c,l=(s=u1(s)).length,u,d=!1,f;for(r??(a=i(f=o())),c=0;c<=l;++c)!(c<l&&n(u=s[c],c,s))===d&&((d=!d)?a.lineStart():a.lineEnd()),d&&a.point(+e(u,c,s),+t(u,c,s));if(f)return a=null,f+``||null}return s.x=function(t){return arguments.length?(e=typeof t==`function`?t:n1(+t),s):e},s.y=function(e){return arguments.length?(t=typeof e==`function`?e:n1(+e),s):t},s.defined=function(e){return arguments.length?(n=typeof e==`function`?e:n1(!!e),s):n},s.curve=function(e){return arguments.length?(i=e,r!=null&&(a=i(r)),s):i},s.context=function(e){return arguments.length?(e==null?r=a=null:a=i(r=e),s):r},s}_1(f1);function g1(e){this._curve=e}g1.prototype={areaStart:function(){this._curve.areaStart()},areaEnd:function(){this._curve.areaEnd()},lineStart:function(){this._curve.lineStart()},lineEnd:function(){this._curve.lineEnd()},point:function(e,t){this._curve.point(t*Math.sin(e),t*-Math.cos(e))}};function _1(e){function t(t){return new g1(e(t))}return t._curve=e,t}a1(3),a1(1/3)*2;var v1=i1(s1/10)/i1(7*s1/10);i1(c1/10)*v1,-r1(c1/10)*v1,a1(3),a1(3),a1(3)/2,(1/a1(12)/2+1)*3;function y1(){}function b1(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function x1(e){this._context=e}x1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:b1(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:b1(this,e,t)}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function S1(e,t){this._basis=new x1(e),this._beta=t}S1.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var e=this._x,t=this._y,n=e.length-1;if(n>0)for(var r=e[0],i=t[0],a=e[n]-r,o=t[n]-i,s=-1,c;++s<=n;)c=s/n,this._basis.point(this._beta*e[s]+(1-this._beta)*(r+c*a),this._beta*t[s]+(1-this._beta)*(i+c*o));this._x=this._y=null,this._basis.lineEnd()},point:function(e,t){this._x.push(+e),this._y.push(+t)}},(function e(t){function n(e){return t===1?new x1(e):new S1(e,t)}return n.beta=function(t){return e(+t)},n})(.85);function C1(e,t,n){e._context.bezierCurveTo(e._x1+e._k*(e._x2-e._x0),e._y1+e._k*(e._y2-e._y0),e._x2+e._k*(e._x1-t),e._y2+e._k*(e._y1-n),e._x2,e._y2)}function w1(e,t){this._context=e,this._k=(1-t)/6}w1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:C1(this,this._x1,this._y1)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2,this._x1=e,this._y1=t;break;case 2:this._point=3;default:C1(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new w1(e,t)}return n.tension=function(t){return e(+t)},n})(0);function T1(e,t){this._context=e,this._k=(1-t)/6}T1.prototype={areaStart:y1,areaEnd:y1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:C1(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new T1(e,t)}return n.tension=function(t){return e(+t)},n})(0);function E1(e,t){this._context=e,this._k=(1-t)/6}E1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:C1(this,e,t)}this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return new E1(e,t)}return n.tension=function(t){return e(+t)},n})(0);function D1(e,t,n){var r=e._x1,i=e._y1,a=e._x2,o=e._y2;if(e._l01_a>o1){var s=2*e._l01_2a+3*e._l01_a*e._l12_a+e._l12_2a,c=3*e._l01_a*(e._l01_a+e._l12_a);r=(r*s-e._x0*e._l12_2a+e._x2*e._l01_2a)/c,i=(i*s-e._y0*e._l12_2a+e._y2*e._l01_2a)/c}if(e._l23_a>o1){var l=2*e._l23_2a+3*e._l23_a*e._l12_a+e._l12_2a,u=3*e._l23_a*(e._l23_a+e._l12_a);a=(a*l+e._x1*e._l23_2a-t*e._l12_2a)/u,o=(o*l+e._y1*e._l23_2a-n*e._l12_2a)/u}e._context.bezierCurveTo(r,i,a,o,e._x2,e._y2)}function O1(e,t){this._context=e,this._alpha=t}O1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2)}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3;default:D1(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}};var k1=(function e(t){function n(e){return t?new O1(e,t):new w1(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function A1(e,t){this._context=e,this._alpha=t}A1.prototype={areaStart:y1,areaEnd:y1,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:this._context.moveTo(this._x3,this._y3),this._context.closePath();break;case 2:this._context.lineTo(this._x3,this._y3),this._context.closePath();break;case 3:this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5)}},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1,this._x3=e,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=e,this._y4=t);break;case 2:this._point=3,this._x5=e,this._y5=t;break;default:D1(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new A1(e,t):new T1(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function j1(e,t){this._context=e,this._alpha=t}j1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){if(e=+e,t=+t,this._point){var n=this._x2-e,r=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=(n*n+r*r)**+this._alpha)}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:D1(this,e,t)}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=e,this._y0=this._y1,this._y1=this._y2,this._y2=t}},(function e(t){function n(e){return t?new j1(e,t):new E1(e,0)}return n.alpha=function(t){return e(+t)},n})(.5);function M1(e){return e<0?-1:1}function N1(e,t,n){var r=e._x1-e._x0,i=t-e._x1,a=(e._y1-e._y0)/(r||i<0&&-0),o=(n-e._y1)/(i||r<0&&-0),s=(a*i+o*r)/(r+i);return(M1(a)+M1(o))*Math.min(Math.abs(a),Math.abs(o),.5*Math.abs(s))||0}function P1(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function F1(e,t,n){var r=e._x0,i=e._y0,a=e._x1,o=e._y1,s=(a-r)/3;e._context.bezierCurveTo(r+s,i+s*t,a-s,o-s*n,a,o)}function I1(e){this._context=e}I1.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:F1(this,this._t0,P1(this,this._t0))}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,e!==this._x1||t!==this._y1){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,F1(this,P1(this,n=N1(this,e,t)),n);break;default:F1(this,this._t0,n=N1(this,e,t))}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}},Object.create(I1.prototype).point=function(e,t){I1.prototype.point.call(this,t,e)};function L1(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function R1(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?L1(Object(n),!0).forEach(function(t){B1(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L1(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function z1(e){"@babel/helpers - typeof";return z1=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},z1(e)}function B1(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V1(){return V1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},V1.apply(this,arguments)}function H1(e,t){if(e){if(typeof e==`string`)return U1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return U1(e,t)}}function U1(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 W1(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=H1(e))||t&&e&&typeof e.length==`number`){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
275
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a=!0,o=!1,s;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){o=!0,s=e},f:function(){try{!a&&n.return!=null&&n.return()}finally{if(o)throw s}}}}function G1(e,t){var n=[],r=[];function i(e,t){if(e.length===1)n.push(e[0]),r.push(e[0]);else{for(var a=Array(e.length-1),o=0;o<a.length;o++)o===0&&n.push(e[0]),o===a.length-1&&r.push(e[o+1]),a[o]=[(1-t)*e[o][0]+t*e[o+1][0],(1-t)*e[o][1]+t*e[o+1][1]];i(a,t)}}return e.length&&i(e,t),{left:n,right:r.reverse()}}function K1(e){var t={};return e.length===4&&(t.x2=e[2][0],t.y2=e[2][1]),e.length>=3&&(t.x1=e[1][0],t.y1=e[1][1]),t.x=e[e.length-1][0],t.y=e[e.length-1][1],t.type=e.length===4?`C`:e.length===3?`Q`:`L`,t}function q1(e,t){t||=2;for(var n=[],r=e,i=1/t,a=0;a<t-1;a++){var o=i/(1-i*a),s=G1(r,o);n.push(s.left),r=s.right}return n.push(r),n}function J1(e,t,n){var r=[[e.x,e.y]];return t.x1!=null&&r.push([t.x1,t.y1]),t.x2!=null&&r.push([t.x2,t.y2]),r.push([t.x,t.y]),q1(r,n).map(K1)}var Y1=/[MLCSTQAHVZmlcstqahv]|-?[\d.e+-]+/g,X1={M:[`x`,`y`],L:[`x`,`y`],H:[`x`],V:[`y`],C:[`x1`,`y1`,`x2`,`y2`,`x`,`y`],S:[`x2`,`y2`,`x`,`y`],Q:[`x1`,`y1`,`x`,`y`],T:[`x`,`y`],A:[`rx`,`ry`,`xAxisRotation`,`largeArcFlag`,`sweepFlag`,`x`,`y`],Z:[]};Object.keys(X1).forEach(function(e){X1[e.toLowerCase()]=X1[e]});function Z1(e,t){for(var n=Array(e),r=0;r<e;r++)n[r]=t;return n}function Q1(e){return`${e.type}${X1[e.type].map(function(t){return e[t]}).join(`,`)}`}function $1(e,t){var n={x1:`x`,y1:`y`,x2:`x`,y2:`y`},r=[`xAxisRotation`,`largeArcFlag`,`sweepFlag`];if(e.type!==t.type&&t.type.toUpperCase()!==`M`){var i={};Object.keys(t).forEach(function(a){var o=t[a],s=e[a];s===void 0&&(r.includes(a)?s=o:(s===void 0&&n[a]&&(s=e[n[a]]),s===void 0&&(s=0))),i[a]=s}),i.type=t.type,e=i}return e}function e0(e,t,n){var r=[];if(t.type===`L`||t.type===`Q`||t.type===`C`)r=r.concat(J1(e,t,n));else{var i=V1({},e);i.type===`M`&&(i.type=`L`),r=r.concat(Z1(n-1).map(function(){return i})),r.push(t)}return r}function t0(e,t,n){var r=e.length-1,i=t.length-1,a=r/i,o=Z1(i).reduce(function(t,r,i){var o=Math.floor(a*i);if(n&&o<e.length-1&&n(e[o],e[o+1])){var s=a*i%1<.5;t[o]&&(s?o>0?--o:o<e.length-1&&(o+=1):o<e.length-1?o+=1:o>0&&--o)}return t[o]=(t[o]||0)+1,t},[]).reduce(function(t,n,r){if(r===e.length-1){var i=Z1(n,V1({},e[e.length-1]));return i[0].type===`M`&&i.forEach(function(e){e.type=`L`}),t.concat(i)}return t.concat(e0(e[r],e[r+1],n))},[]);return o.unshift(e[0]),o}function n0(e){for(var t=(e||``).match(Y1)||[],n=[],r,i,a=0;a<t.length;++a)if(r=X1[t[a]],r){i={type:t[a]};for(var o=0;o<r.length;++o)i[r[o]]=+t[a+o+1];a+=r.length,n.push(i)}return n}function r0(e,t,n){var r=e==null?[]:e.slice(),i=t==null?[]:t.slice(),a=z1(n)===`object`?n:{excludeSegment:n,snapEndsToInput:!0},o=a.excludeSegment,s=a.snapEndsToInput;if(!r.length&&!i.length)return function(){return[]};var c=(r.length===0||r[r.length-1].type===`Z`)&&(i.length===0||i[i.length-1].type===`Z`);r.length>0&&r[r.length-1].type===`Z`&&r.pop(),i.length>0&&i[i.length-1].type===`Z`&&i.pop(),r.length?i.length||i.push(r[0]):r.push(i[0]),Math.abs(i.length-r.length)!==0&&(i.length>r.length?r=t0(r,i,o):i.length<r.length&&(i=t0(i,r,o))),r=r.map(function(e,t){return $1(e,i[t])});var l=r.map(function(e){return R1({},e)});return c&&(l.push({type:`Z`}),r.push({type:`Z`})),function(e){if(e===1&&s)return t??[];if(e===0)return r;for(var n=0;n<l.length;++n){var a=r[n],o=i[n],c=l[n],u=W1(X1[c.type]),d;try{for(u.s();!(d=u.n()).done;){var f=d.value;c[f]=(1-e)*a[f]+e*o[f],(f===`largeArcFlag`||f===`sweepFlag`)&&(c[f]=Math.round(c[f]))}}catch(e){u.e(e)}finally{u.f()}}return l}}function i0(e,t,n){var r=n0(e),i=n0(t),a=z1(n)===`object`?n:{excludeSegment:n,snapEndsToInput:!0},o=a.excludeSegment,s=a.snapEndsToInput;if(!r.length&&!i.length)return function(){return``};var c=r0(r,i,{excludeSegment:o,snapEndsToInput:s});return function(e){if(e===1&&s)return t??``;var n=c(e),r=``,i=W1(n),a;try{for(i.s();!(a=i.n()).done;){var o=a.value;r+=Q1(o)}}catch(e){i.e(e)}finally{i.f()}return r}}export{SO as $,Yb as $n,pe as $r,sD as $t,YR as A,JT as An,op as Ar,AD as At,AA as B,xw as Bn,eu as Br,bD as Bt,Xz as C,LE as Cn,kg as Cr,LD as Ct,rz as D,EE as Dn,Vp as Dr,ND as Dt,az as E,PE as En,qp as Er,PD as Et,xI as F,yT as Fn,sf as Fr,TD as Ft,vA as G,ZS as Gn,Kt as Gr,hD as Gt,wA as H,pw as Hn,ri as Hr,vD as Ht,EI as I,fT as In,yd as Ir,wD as It,Lk as J,hS as Jn,Rt as Jr,fD as Jt,gA as K,JS as Kn,Wt as Kr,mD as Kt,cj as L,oT as Ln,fd as Lr,CD as Lt,cR as M,IT as Mn,Cf as Mr,OD as Mt,ZL as N,AT as Nn,yf as Nr,DD as Nt,uz as O,xE as On,kp as Or,MD as Ot,sI as P,wT as Pn,df as Pr,ED as Pt,CO as Q,$b as Qn,me as Qr,cD as Qt,ej as R,tT as Rn,Fu as Rr,SD as Rt,vV as S,RE as Sn,e_ as Sr,RD as St,tB as T,FE as Tn,Zp as Tr,FD as Tt,CA as U,tw as Un,Kr as Ur,_D as Ut,EA as V,mw as Vn,jl as Vr,yD as Vt,SA as W,wC as Wn,qt as Wr,gD as Wt,TO as X,lx as Xn,ge as Xr,uD as Xt,YO as Y,mx as Yn,Mt as Yr,dD as Yt,wO as Z,ix as Zn,he as Zr,lD as Zt,DV as _,UE as _n,U_ as _r,UD as _t,E$ as a,tD as an,Xy as ar,pO as at,kV as b,BE as bn,T_ as br,BD as bt,WK as c,QE as cn,Cy as cr,lO as ct,dK as d,YE as dn,ly as dr,tO as dt,se as ei,oD as en,Wb as er,xO as et,dG as f,JE as fn,ry as fr,eO as ft,TV as g,WE as gn,q_ as gr,WD as gt,NV as h,GE as hn,sv as hr,GD as ht,K$ as i,i as ii,nD as in,ob as ir,mO as it,XR as j,BT as jn,ep as jr,kD as jt,cz as k,tE as kn,Cp as kr,jD as kt,EK as l,ZE as ln,vy as lr,oO as lt,ZV as m,KE as mn,hv as mr,KD as mt,k1 as n,R as ni,iD as nn,Mb as nr,gO as nt,T$ as o,eD as on,Ly as or,fO as ot,XW as p,qE as pn,$v as pr,qD as pt,pA as q,yS as qn,Bt as qr,pD as qt,h1 as r,F as ri,rD as rn,pb as rr,hO as rt,VY as s,$E as sn,Ny as sr,dO as st,i0 as t,oe as ti,aD as tn,zb as tr,bO as tt,hK as u,XE as un,fy as ur,rO as ut,GV as v,HE as vn,z_ as vr,HD as vt,mB as w,IE as wn,nm as wr,ID as wt,QB as x,zE as xn,c_ as xr,zD as xt,VV as y,VE as yn,D_ as yr,VD as yt,IA as z,Rw as zn,q as zr,xD as zt};
|