From 6d94af55de3f9ca68a2bf140149621abf66558fb Mon Sep 17 00:00:00 2001 From: astanley Date: Wed, 23 Sep 2026 12:03:09 -0300 Subject: [PATCH] added View All Annotations tab --- README.md | 70 +++--- build/src/index.js | 26 ++- build/vite.config.js | 9 +- dist/main.js | 234 ++++++++++---------- islandora_mirador_annotations.install | 61 +++++ islandora_mirador_annotations.libraries.yml | 9 +- islandora_mirador_annotations.module | 12 + islandora_mirador_annotations.routing.yml | 8 + src/Controller/AnnotationController.php | 105 +++++++++ 9 files changed, 374 insertions(+), 160 deletions(-) diff --git a/README.md b/README.md index 60092634..b9bd9f48 100644 --- a/README.md +++ b/README.md @@ -2,34 +2,32 @@ Standalone Drupal add-on for `islandora_mirador` that adds persistent Mirador 4 annotations using Mirador Annotation Editor (MAE). +## Features + +- Leaves the base `islandora_mirador` module untouched. +- Drupal-backed persistent Web Annotations. +- Existing MAE per-canvas annotation editor/sidebar. +- **All annotations** sidebar for multi-page manifests. +- All-annotations results are grouped by canvas/page label and searchable. +- Clicking an annotation in the all-annotations panel jumps Mirador to that canvas. +- A single Drupal query loads annotations for the complete manifest; it does not make one Drupal request per page. + ## Architecture -The base `islandora_mirador` module is not patched. This module: +This module alters the base viewer library dependency so the viewer loads this module's annotated Mirador bundle. The bundle contains Mirador, the normal Islandora image-tools/text-overlay/download plugins, MAE, a Drupal persistence adapter, and the All Annotations companion-window plugin. -1. Alters the base viewer library dependency so the viewer loads this module's annotated Mirador bundle. -2. Builds that bundle from the same Mirador 4 plugins used by Islandora plus MAE. -3. Excludes MAE's currently incompatible `annotationSagaPlugin` and replaces only its annotation-loading behavior. -4. Adds a Drupal-backed MAE adapter. -5. Stores each Web Annotation as JSON in `islandora_mirador_annotation`. -6. Exposes an IIIF `AnnotationPage` at `/islandora-mirador/annotations?canvas=...`. -7. Protects POST/PATCH/DELETE with Drupal permissions and `X-CSRF-Token`. +MAE's incompatible `annotationSagaPlugin` is excluded and its canvas-loading behavior is replaced locally. ## Install -Place this directory next to `islandora_mirador`, then enable it: - ```bash drush en islandora_mirador_annotations -y drush cr ``` -Grant permissions as appropriate. For example, to let anonymous and authenticated users see annotations, grant `view mirador annotations` to those roles. Grant `manage mirador annotations` only to roles that may create/edit/delete annotations. - -The module automatically sets MAE to read-only when the current user does not have `manage mirador annotations`. +Grant `view mirador annotations` to roles that may see annotations and `manage mirador annotations` to roles that may create/edit/delete them. -## Build `dist/main.js` - -The build project is retained under `build/`. +## Build assets ```bash cd build @@ -37,30 +35,38 @@ npm install npm run build ``` -Vite writes the bundle to `../dist/main.js`. - -The bundle intentionally contains Mirador itself, the Islandora image-tools/text-overlay/download plugins, and MAE in one dependency graph. This avoids loading a second React/MUI runtime beside the base Mirador bundle. +Vite writes: -## Base module +```text +dist/main.js +dist/main.css +``` -No changes to `islandora_mirador` are required. When this module is disabled, the base viewer returns to its normal `islandora_mirador/mirador` dependency after a cache rebuild. +Both compiled files should be committed to the module repository so Composer users do not need Node/npm/Vite. -## Endpoint +## Endpoints -GET: +Current-canvas AnnotationPage: ```text -/islandora-mirador/annotations?canvas= +GET /islandora-mirador/annotations?canvas= ``` -returns: +Manifest-wide read endpoint used by the All Annotations panel: + +```text +POST /islandora-mirador/annotations/manifest +Content-Type: application/json -```json -{ - "id": "...", - "type": "AnnotationPage", - "items": [] -} +{"canvasIds":["https://.../canvas/1","https://.../canvas/2"]} ``` -MAE writes through the same endpoint using POST, PATCH, and DELETE. +Annotation writes use POST/PATCH/DELETE on `/islandora-mirador/annotations` and are protected by Drupal permissions and `X-CSRF-Token`. + + +## All annotations click-to-focus + +Selecting an entry in the **All annotations** panel switches to its canvas, selects the Mirador annotation so its target is highlighted, and, when the annotation contains an `xywh` FragmentSelector, zooms OpenSeadragon to that region with a small amount of padding. Both pixel and percent `xywh` selectors are supported. + +### 0.2.5 annotation targeting +The All Annotations panel uses the Web Annotation `target.source` as the authoritative canvas when it differs from the persistence row's canvas id. It also zooms to MAE `SvgSelector` geometry when an `xywh` FragmentSelector is not available. diff --git a/build/src/index.js b/build/src/index.js index 8e01091a..8516d8a2 100644 --- a/build/src/index.js +++ b/build/src/index.js @@ -6,6 +6,26 @@ import miradorDownloadPlugins from 'mirador-dl-plugin'; import textOverlayPlugin from 'mirador-textoverlay'; import annotationPlugins from 'mirador-annotation-editor'; import 'mirador-annotation-editor/dist/index.css'; +import { allAnnotationsPanelPlugin, allAnnotationsButtonPlugin } from './AllAnnotationsPanel.jsx'; + + +function annotationTargetCanvasId(annotation) { + const target = annotation?.target; + + if (typeof target === 'string') { + return target.split('#')[0] || null; + } + + const source = target?.source; + if (typeof source === 'string') return source.split('#')[0] || null; + if (source?.id) return String(source.id).split('#')[0] || null; + if (source?.['@id']) return String(source['@id']).split('#')[0] || null; + + if (target?.id) return String(target.id).split('#')[0] || null; + if (target?.['@id']) return String(target['@id']).split('#')[0] || null; + + return null; +} /** * Drupal-backed implementation of the MAE persistence adapter contract. @@ -83,14 +103,14 @@ class DrupalAnnotationAdapter { async create(annotation) { return this.request('POST', { - canvasId: this.canvasId, + canvasId: annotationTargetCanvasId(annotation) || this.canvasId, annotation, }); } async update(annotation) { return this.request('PATCH', { - canvasId: this.canvasId, + canvasId: annotationTargetCanvasId(annotation) || this.canvasId, annotation, }); } @@ -114,6 +134,8 @@ const plugins = [ ...miradorImageToolsPlugin, ...textOverlayPlugin, ...annotationUiPlugins, + allAnnotationsPanelPlugin, + allAnnotationsButtonPlugin, ...miradorDownloadPlugins, ]; diff --git a/build/vite.config.js b/build/vite.config.js index 64455167..42c195f6 100644 --- a/build/vite.config.js +++ b/build/vite.config.js @@ -3,10 +3,15 @@ import react from '@vitejs/plugin-react'; export default defineConfig({ plugins: [react()], + define: { + global: 'globalThis', + }, + resolve: { + dedupe: ['@emotion/react', '@emotion/styled', 'react', 'react-dom'], + }, build: { outDir: '../dist', emptyOutDir: true, - lib: { entry: 'src/index.js', name: 'IslandoraMiradorAnnotations', @@ -14,9 +19,7 @@ export default defineConfig({ fileName: () => 'main.js', cssFileName: 'main', }, - cssCodeSplit: false, - rollupOptions: { output: { inlineDynamicImports: true, diff --git a/dist/main.js b/dist/main.js index 4ad498a3..0ae5a909 100644 --- a/dist/main.js +++ b/dist/main.js @@ -19,7 +19,7 @@ React keys must be passed directly to JSX without using spread: The error may be correlated with this previous error: ${w.current.stack} -`),e}gt(()=>{w.current=void 0,x.current=void 0,v.current=D});let O=Le.useMemo(()=>Le.createElement(e,{...D,ref:i}),[i,e,D]);return Le.useMemo(()=>m?Le.createElement(o.Provider,{value:_},O):O,[o,O,_])}let h=Le.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=Le.forwardRef(function(e,t){return Le.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,te(t,e)}return te(h,e)}}function se(e){let{children:t,context:n,serverState:r,store:i}=e,a=Le.useMemo(()=>{let e=ee(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=Le.useMemo(()=>i.getState(),[i]);gt(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||At;return Le.createElement(s.Provider,{value:a},t)}function ce(e=At){return function(){return Le.useContext(e)}}function le(e=At){let t=e===At?Pt:ce(e),n=(e,n={})=>{let{equalityFn:r=Ft}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();Le.useRef(!0);let s=Le.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,Ze.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return Le.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}function ue(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function de(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function L(e,t,n){if(typeof e!=`function`)throw Error(ue(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ue(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ue(1));return n(L)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ue(3));return i}function d(e){if(typeof e!=`function`)throw Error(ue(4));if(c)throw Error(ue(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ue(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!de(e))throw Error(ue(7));if(e.type===void 0)throw Error(ue(8));if(typeof e.type!=`string`)throw Error(ue(17));if(c)throw Error(ue(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ue(10));r=e,f({type:dn.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ue(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ln](){return this}}}return f({type:dn.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ln]:m}}function fe(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:dn.INIT})===void 0)throw Error(ue(12));if(n(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ue(13))})}function pe(e){let t=Object.keys(e),n={};for(let r=0;re:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ge(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ue(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=R(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function _e(e,t){function n(n,r){let i=(0,Re.useContext)(Bt),a={...n,...r?{ref:r}:{}},o=(i||{})[e];return(0,kr.default)(o)||(0,kr.default)(o.wrap)?(0,ze.jsx)(t,{...a}):o.wrap.slice().reverse().reduce((e,n)=>{let r=n.component;return(0,ze.jsx)(r,{targetProps:a,...a,TargetComponent:t,children:e})},(0,ze.jsx)(t,{...a}))}let r=(0,Re.forwardRef)(n);return r.displayName=`WithPlugins(${e})`,r}function ve(e,t=0){return(jr[e[t+0]]+jr[e[t+1]]+jr[e[t+2]]+jr[e[t+3]]+`-`+jr[e[t+4]]+jr[e[t+5]]+`-`+jr[e[t+6]]+jr[e[t+7]]+`-`+jr[e[t+8]]+jr[e[t+9]]+`-`+jr[e[t+10]]+jr[e[t+11]]+jr[e[t+12]]+jr[e[t+13]]+jr[e[t+14]]+jr[e[t+15]]).toLowerCase()}function ye(){if(!Mr){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);Mr=crypto.getRandomValues.bind(crypto)}return Mr(Nr)}function be(e,t,n){if(Pr.randomUUID&&!t&&!e)return Pr.randomUUID();e||={};let r=e.random??e.rng?.()??ye();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return ve(r)}function xe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Se(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}function Ce(e){let t=Array.isArray(e[0])?e[0]:e;return Se(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function we(e,t){let n=[],{length:r}=e;for(let i=0;i{n=Te(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Oe(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),xe(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=De,argsMemoizeOptions:u=[]}={...n,...a},d=Fr(c),f=Fr(u),p=Ce(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=we(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}function ke(e){return Vr.state.slice?e[Vr.state.slice]:e}function Ae(e){return Object.values(ke(e).windows).map(e=>e.manifestId)}function je(e){return ke(e).windows||Ur}function Me(e,{windowId:t}){return je(e)[t]}function Ne(e){return ke(e).workspace}function Pe(e){return ke(e).manifests||Ur}function Fe(e,{manifestId:t,windowId:n}){let r=Pe(e);return r&&r[t||n&&(Me(e,{windowId:n})||Ur).manifestId]}function Ie(e){return ke(e).catalog||Ur}var Le,Re,ze,Be,Ve,He,Ue,We,Ge,z,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr=o((()=>{Le=u(p(),1),Re=u(p(),1),ze=g(),Be=Object.create,Ve=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,We=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,z=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Ke=(e,t)=>{let n={};for(var r in e)Ve(n,r,{get:e[r],enumerable:!0});return t||Ve(n,Symbol.toStringTag,{value:`Module`}),n},qe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Ue(t),a=0,o=i.length,s;at[e]).bind(null,s),enumerable:!(r=He(t,s))||r.enumerable});return e},Je=(e,t,n)=>(n=e==null?{}:Be(We(e)),qe(t||!e||!e.__esModule||!Ge.call(e,`default`)?Ve(n,`default`,{value:e,enumerable:!0}):n,e)),Ye=z(((e,t)=>{t.exports={...Le}})),Xe=z((e=>{var t=Ye();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),Ze=z(((e,t)=>{t.exports=Xe()}))(),Qe=!0,$e=Symbol.for(Qe?`react.transitional.element`:`react.element`),et=Symbol.for(`react.portal`),tt=Symbol.for(`react.fragment`),nt=Symbol.for(`react.strict_mode`),rt=Symbol.for(`react.profiler`),it=Symbol.for(`react.consumer`),at=Symbol.for(`react.context`),ot=Symbol.for(`react.forward_ref`),st=Symbol.for(`react.suspense`),ct=Symbol.for(`react.suspense_list`),lt=Symbol.for(`react.memo`),ut=Symbol.for(`react.lazy`),dt=ot,ft=lt,pt={notify(){},get:()=>[]},mt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,ht=typeof navigator<`u`&&navigator.product===`ReactNative`,gt=mt||ht?Le.useLayoutEffect:Le.useEffect,_t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xt={[dt]:yt,[ft]:bt},St=Object.defineProperty,Ct=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,Tt=Object.getOwnPropertyDescriptor,Et=Object.getPrototypeOf,Dt=Object.prototype,Ot=Symbol.for(`react-redux-context`),kt=typeof globalThis<`u`?globalThis:{},At=I(),jt=[null,null],Mt=oe,Nt=se,Pt=ce(),Ft=(e,t)=>e===t,It=le(),Lt=z(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Rt=z(((e,t)=>{var n=Lt();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),zt=z(((e,t)=>{t.exports=Rt()()})),Bt=(0,Re.createContext)(),Vt=z(((e,t)=>{t.exports=Array.isArray})),Ht=z(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),Ut=z(((e,t)=>{var n=Ht(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Wt=z(((e,t)=>{t.exports=Ut().Symbol})),Gt=z(((e,t)=>{var n=Wt(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Kt=z(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),qt=z(((e,t)=>{var n=Wt(),r=Gt(),i=Kt(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Jt=z(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Yt=z(((e,t)=>{var n=qt(),r=Jt(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Xt=z(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Zt=z(((e,t)=>{var n=qt(),r=Xt(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Qt=z(((e,t)=>{t.exports=Ut()[`__core-js_shared__`]})),$t=z(((e,t)=>{var n=Qt(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),en=z(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),tn=z(((e,t)=>{var n=Zt(),r=$t(),i=Xt(),a=en(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),nn=z(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),rn=z(((e,t)=>{var n=tn(),r=nn();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),an=z(((e,t)=>{t.exports=rn()(Ut(),`Map`)})),on=z(((e,t)=>{var n=rn();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),sn=z(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e{function n(e){return e}t.exports=n})),ln=typeof Symbol==`function`&&Symbol.observable||`@@observable`,un=()=>Math.random().toString(36).substring(7).split(``).join(`.`),dn={INIT:`@@redux/INIT${un()}`,REPLACE:`@@redux/REPLACE${un()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${un()}`},fn=z(((e,t)=>{t.exports=rn()(Ut(),`WeakMap`)})),pn=z(((e,t)=>{var n=fn();t.exports=n&&new n})),mn=z(((e,t)=>{var n=cn(),r=pn();t.exports=r?function(e,t){return r.set(e,t),e}:n})),hn=z(((e,t)=>{var n=Xt(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),gn=z(((e,t)=>{var n=hn(),r=Xt();function i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=n(e.prototype),a=e.apply(i,t);return r(a)?a:i}}t.exports=i})),_n=z(((e,t)=>{var n=gn(),r=Ut(),i=1;function a(e,t,a){var o=t&i,s=n(e);function c(){return(this&&this!==r&&this instanceof c?s:e).apply(o?a:this,arguments)}return c}t.exports=a})),vn=z(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),yn=z(((e,t)=>{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=r.length,c=-1,l=t.length,u=n(o-s,0),d=Array(l+u),f=!i;++c{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=-1,c=r.length,l=-1,u=t.length,d=n(o-c,0),f=Array(d+u),p=!i;++a{function n(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}t.exports=n})),Sn=z(((e,t)=>{function n(){}t.exports=n})),Cn=z(((e,t)=>{var n=hn(),r=Sn(),i=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}a.prototype=n(r.prototype),a.prototype.constructor=a,t.exports=a})),wn=z(((e,t)=>{function n(){}t.exports=n})),Tn=z(((e,t)=>{var n=pn(),r=wn();t.exports=n?function(e){return n.get(e)}:r})),En=z(((e,t)=>{t.exports={}})),Dn=z(((e,t)=>{var n=En(),r=Object.prototype.hasOwnProperty;function i(e){for(var t=e.name+``,i=n[t],a=r.call(n,t)?i.length:0;a--;){var o=i[a],s=o.func;if(s==null||s==e)return o.name}return t}t.exports=i})),On=z(((e,t)=>{var n=hn(),r=Sn();function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(r.prototype),i.prototype.constructor=i,t.exports=i})),kn=z(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{var n=Cn(),r=On(),i=kn();function a(e){if(e instanceof n)return e.clone();var t=new r(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}t.exports=a})),jn=z(((e,t)=>{var n=Cn(),r=On(),i=Sn(),a=Vt(),o=Jt(),s=An(),c=Object.prototype.hasOwnProperty;function l(e){if(o(e)&&!a(e)&&!(e instanceof n)){if(e instanceof r)return e;if(c.call(e,`__wrapped__`))return s(e)}return new r(e)}l.prototype=i.prototype,l.prototype.constructor=l,t.exports=l})),Mn=z(((e,t)=>{var n=Cn(),r=Tn(),i=Dn(),a=jn();function o(e){var t=i(e),o=a[t];if(typeof o!=`function`||!(t in n.prototype))return!1;if(e===o)return!0;var s=r(o);return!!s&&e===s[0]}t.exports=o})),Nn=z(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),Pn=z(((e,t)=>{var n=mn();t.exports=Nn()(n)})),Fn=z(((e,t)=>{var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;function i(e){var t=e.match(n);return t?t[1].split(r):[]}t.exports=i})),In=z(((e,t)=>{var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function r(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?`& `:``)+t[i],t=t.join(r>2?`, `:` `),e.replace(n,`{ +`),e}gt(()=>{w.current=void 0,x.current=void 0,v.current=D});let O=Le.useMemo(()=>Le.createElement(e,{...D,ref:i}),[i,e,D]);return Le.useMemo(()=>m?Le.createElement(o.Provider,{value:_},O):O,[o,O,_])}let h=Le.memo(l);if(h.WrappedComponent=e,h.displayName=l.displayName=n,c){let t=Le.forwardRef(function(e,t){return Le.createElement(h,{...e,reactReduxForwardedRef:t})});return t.displayName=n,t.WrappedComponent=e,te(t,e)}return te(h,e)}}function se(e){let{children:t,context:n,serverState:r,store:i}=e,a=Le.useMemo(()=>{let e=ee(i);return{store:i,subscription:e,getServerState:r?()=>r:void 0}},[i,r]),o=Le.useMemo(()=>i.getState(),[i]);gt(()=>{let{subscription:e}=a;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),o!==i.getState()&&e.notifyNestedSubs(),()=>{e.tryUnsubscribe(),e.onStateChange=void 0}},[a,o]);let s=n||At;return Le.createElement(s.Provider,{value:a},t)}function ce(e=At){return function(){return Le.useContext(e)}}function le(e=At){let t=e===At?Pt:ce(e),n=(e,n={})=>{let{equalityFn:r=Ft}=typeof n==`function`?{equalityFn:n}:n,{store:i,subscription:a,getServerState:o}=t();Le.useRef(!0);let s=Le.useCallback({[e.name](t){return e(t)}}[e.name],[e]),c=(0,Ze.useSyncExternalStoreWithSelector)(a.addNestedSub,i.getState,o||i.getState,s,r);return Le.useDebugValue(c),c};return Object.assign(n,{withTypes:()=>n}),n}function ue(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}function de(e){if(typeof e!=`object`||!e)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function L(e,t,n){if(typeof e!=`function`)throw Error(ue(2));if(typeof t==`function`&&typeof n==`function`||typeof n==`function`&&typeof arguments[3]==`function`)throw Error(ue(0));if(typeof t==`function`&&n===void 0&&(n=t,t=void 0),n!==void 0){if(typeof n!=`function`)throw Error(ue(1));return n(L)(e,t)}let r=e,i=t,a=new Map,o=a,s=0,c=!1;function l(){o===a&&(o=new Map,a.forEach((e,t)=>{o.set(t,e)}))}function u(){if(c)throw Error(ue(3));return i}function d(e){if(typeof e!=`function`)throw Error(ue(4));if(c)throw Error(ue(5));let t=!0;l();let n=s++;return o.set(n,e),function(){if(t){if(c)throw Error(ue(6));t=!1,l(),o.delete(n),a=null}}}function f(e){if(!de(e))throw Error(ue(7));if(e.type===void 0)throw Error(ue(8));if(typeof e.type!=`string`)throw Error(ue(17));if(c)throw Error(ue(9));try{c=!0,i=r(i,e)}finally{c=!1}return(a=o).forEach(e=>{e()}),e}function p(e){if(typeof e!=`function`)throw Error(ue(10));r=e,f({type:dn.REPLACE})}function m(){let e=d;return{subscribe(t){if(typeof t!=`object`||!t)throw Error(ue(11));function n(){let e=t;e.next&&e.next(u())}return n(),{unsubscribe:e(n)}},[ln](){return this}}}return f({type:dn.INIT}),{dispatch:f,subscribe:d,getState:u,replaceReducer:p,[ln]:m}}function fe(e){Object.keys(e).forEach(t=>{let n=e[t];if(n(void 0,{type:dn.INIT})===void 0)throw Error(ue(12));if(n(void 0,{type:dn.PROBE_UNKNOWN_ACTION()})===void 0)throw Error(ue(13))})}function pe(e){let t=Object.keys(e),n={};for(let r=0;re:e.length===1?e[0]:e.reduce((e,t)=>(...n)=>e(t(...n)))}function ge(...e){return t=>(n,r)=>{let i=t(n,r),a=()=>{throw Error(ue(15))},o={getState:i.getState,dispatch:(e,...t)=>a(e,...t)};return a=R(...e.map(e=>e(o)))(i.dispatch),{...i,dispatch:a}}}function _e(e,t){function n(n,r){let i=(0,Re.useContext)(Bt),a={...n,...r?{ref:r}:{}},o=(i||{})[e];return(0,kr.default)(o)||(0,kr.default)(o.wrap)?(0,ze.jsx)(t,{...a}):o.wrap.slice().reverse().reduce((e,n)=>{let r=n.component;return(0,ze.jsx)(r,{targetProps:a,...a,TargetComponent:t,children:e})},(0,ze.jsx)(t,{...a}))}let r=(0,Re.forwardRef)(n);return r.displayName=`WithPlugins(${e})`,r}function ve(e,t=0){return(jr[e[t+0]]+jr[e[t+1]]+jr[e[t+2]]+jr[e[t+3]]+`-`+jr[e[t+4]]+jr[e[t+5]]+`-`+jr[e[t+6]]+jr[e[t+7]]+`-`+jr[e[t+8]]+jr[e[t+9]]+`-`+jr[e[t+10]]+jr[e[t+11]]+jr[e[t+12]]+jr[e[t+13]]+jr[e[t+14]]+jr[e[t+15]]).toLowerCase()}function ye(){if(!Mr){if(typeof crypto>`u`||!crypto.getRandomValues)throw Error(`crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported`);Mr=crypto.getRandomValues.bind(crypto)}return Mr(Nr)}function be(e,t,n){if(Pr.randomUUID&&!t&&!e)return Pr.randomUUID();e||={};let r=e.random??e.rng?.()??ye();if(r.length<16)throw Error(`Random bytes length must be >= 16`);if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){if(n||=0,n<0||n+16>t.length)throw RangeError(`UUID byte range ${n}:${n+15} is out of buffer bounds`);for(let e=0;e<16;++e)t[n+e]=r[e];return t}return ve(r)}function xe(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!=`function`)throw TypeError(t)}function Se(e,t=`expected all items to be functions, instead received the following types: `){if(!e.every(e=>typeof e==`function`)){let n=e.map(e=>typeof e==`function`?`function ${e.name||`unnamed`}()`:typeof e).join(`, `);throw TypeError(`${t}[${n}]`)}}function Ce(e){let t=Array.isArray(e[0])?e[0]:e;return Se(t,`createSelector expects all input-selectors to be functions, but received the following types: `),t}function we(e,t){let n=[],{length:r}=e;for(let i=0;i{n=Te(),o.resetResultsCount()},o.resultsCount=()=>a,o.resetResultsCount=()=>{a=0},o}function Oe(e,...t){let n=typeof e==`function`?{memoize:e,memoizeOptions:t}:e,r=(...e)=>{let t=0,r=0,i,a={},o=e.pop();typeof o==`object`&&(a=o,o=e.pop()),xe(o,`createSelector expects an output function after the inputs, but received: [${typeof o}]`);let{memoize:s,memoizeOptions:c=[],argsMemoize:l=De,argsMemoizeOptions:u=[]}={...n,...a},d=Fr(c),f=Fr(u),p=Ce(e),m=s(function(){return t++,o.apply(null,arguments)},...d),h=l(function(){r++;let e=we(p,arguments);return i=m.apply(null,e),i},...f);return Object.assign(h,{resultFunc:o,memoizedResultFunc:m,dependencies:p,dependencyRecomputations:()=>r,resetDependencyRecomputations:()=>{r=0},lastResult:()=>i,recomputations:()=>t,resetRecomputations:()=>{t=0},memoize:s,argsMemoize:l})};return Object.assign(r,{withTypes:()=>r}),r}function ke(e){return Vr.state.slice?e[Vr.state.slice]:e}function Ae(e){return Object.values(ke(e).windows).map(e=>e.manifestId)}function je(e){return ke(e).windows||Ur}function Me(e,{windowId:t}){return je(e)[t]}function Ne(e){return ke(e).workspace}function Pe(e){return ke(e).manifests||Ur}function Fe(e,{manifestId:t,windowId:n}){let r=Pe(e);return r&&r[t||n&&(Me(e,{windowId:n})||Ur).manifestId]}function Ie(e){return ke(e).catalog||Ur}var Le,Re,ze,Be,Ve,He,Ue,We,Ge,z,Ke,qe,Je,Ye,Xe,Ze,Qe,$e,et,tt,nt,rt,it,at,ot,st,ct,lt,ut,dt,ft,pt,mt,ht,gt,_t,vt,yt,bt,xt,St,Ct,wt,Tt,Et,Dt,Ot,kt,At,jt,Mt,Nt,Pt,Ft,It,Lt,Rt,zt,Bt,Vt,Ht,Ut,Wt,Gt,Kt,qt,Jt,Yt,Xt,Zt,Qt,$t,en,tn,nn,rn,an,on,sn,cn,ln,un,dn,fn,pn,mn,hn,gn,_n,vn,yn,bn,xn,Sn,Cn,wn,Tn,En,Dn,On,kn,An,jn,Mn,Nn,Pn,Fn,In,Ln,Rn,zn,Bn,Vn,Hn,Un,Wn,Gn,Kn,qn,Jn,Yn,Xn,Zn,Qn,$n,er,tr,nr,rr,ir,ar,or,sr,cr,lr,ur,dr,fr,pr,mr,hr,gr,_r,vr,yr,br,xr,Sr,Cr,wr,Tr,Er,Dr,Or,kr,Ar,jr,Mr,Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr=o((()=>{Le=u(p(),1),Re=u(p(),1),ze=g(),Be=Object.create,Ve=Object.defineProperty,He=Object.getOwnPropertyDescriptor,Ue=Object.getOwnPropertyNames,We=Object.getPrototypeOf,Ge=Object.prototype.hasOwnProperty,z=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),Ke=(e,t)=>{let n={};for(var r in e)Ve(n,r,{get:e[r],enumerable:!0});return t||Ve(n,Symbol.toStringTag,{value:`Module`}),n},qe=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var i=Ue(t),a=0,o=i.length,s;at[e]).bind(null,s),enumerable:!(r=He(t,s))||r.enumerable});return e},Je=(e,t,n)=>(n=e==null?{}:Be(We(e)),qe(t||!e||!e.__esModule||!Ge.call(e,`default`)?Ve(n,`default`,{value:e,enumerable:!0}):n,e)),Ye=z(((e,t)=>{t.exports={...Le}})),Xe=z((e=>{var t=Ye();function n(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var r=typeof Object.is==`function`?Object.is:n,i=t.useSyncExternalStore,a=t.useRef,o=t.useEffect,s=t.useMemo,c=t.useDebugValue;e.useSyncExternalStoreWithSelector=function(e,t,n,l,u){var d=a(null);if(d.current===null){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=s(function(){function e(e){if(!i){if(i=!0,a=e,e=l(e),u!==void 0&&f.hasValue){var t=f.value;if(u(t,e))return o=t}return o=e}if(t=o,r(a,e))return t;var n=l(e);return u!==void 0&&u(t,n)?(a=e,t):(a=e,o=n)}var i=!1,a,o,s=n===void 0?null:n;return[function(){return e(t())},s===null?void 0:function(){return e(s())}]},[t,n,l,u]);var p=i(e,d[0],d[1]);return o(function(){f.hasValue=!0,f.value=p},[p]),c(p),p}})),Ze=z(((e,t)=>{t.exports=Xe()}))(),Qe=!0,$e=Symbol.for(Qe?`react.transitional.element`:`react.element`),et=Symbol.for(`react.portal`),tt=Symbol.for(`react.fragment`),nt=Symbol.for(`react.strict_mode`),rt=Symbol.for(`react.profiler`),it=Symbol.for(`react.consumer`),at=Symbol.for(`react.context`),ot=Symbol.for(`react.forward_ref`),st=Symbol.for(`react.suspense`),ct=Symbol.for(`react.suspense_list`),lt=Symbol.for(`react.memo`),ut=Symbol.for(`react.lazy`),dt=ot,ft=lt,pt={notify(){},get:()=>[]},mt=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,ht=typeof navigator<`u`&&navigator.product===`ReactNative`,gt=mt||ht?Le.useLayoutEffect:Le.useEffect,_t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},vt={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},yt={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},bt={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},xt={[dt]:yt,[ft]:bt},St=Object.defineProperty,Ct=Object.getOwnPropertyNames,wt=Object.getOwnPropertySymbols,Tt=Object.getOwnPropertyDescriptor,Et=Object.getPrototypeOf,Dt=Object.prototype,Ot=Symbol.for(`react-redux-context`),kt=typeof globalThis<`u`?globalThis:{},At=I(),jt=[null,null],Mt=oe,Nt=se,Pt=ce(),Ft=(e,t)=>e===t,It=le(),Lt=z(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),Rt=z(((e,t)=>{var n=Lt();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),zt=z(((e,t)=>{t.exports=Rt()()})),Bt=(0,Re.createContext)(),Vt=z(((e,t)=>{t.exports=Array.isArray})),Ht=z(((e,t)=>{t.exports=typeof globalThis==`object`&&globalThis&&globalThis.Object===Object&&globalThis})),Ut=z(((e,t)=>{var n=Ht(),r=typeof self==`object`&&self&&self.Object===Object&&self;t.exports=n||r||Function(`return this`)()})),Wt=z(((e,t)=>{t.exports=Ut().Symbol})),Gt=z(((e,t)=>{var n=Wt(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),Kt=z(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),qt=z(((e,t)=>{var n=Wt(),r=Gt(),i=Kt(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),Jt=z(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),Yt=z(((e,t)=>{var n=qt(),r=Jt(),i=`[object Symbol]`;function a(e){return typeof e==`symbol`||r(e)&&n(e)==i}t.exports=a})),Xt=z(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),Zt=z(((e,t)=>{var n=qt(),r=Xt(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),Qt=z(((e,t)=>{t.exports=Ut()[`__core-js_shared__`]})),$t=z(((e,t)=>{var n=Qt(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),en=z(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),tn=z(((e,t)=>{var n=Zt(),r=$t(),i=Xt(),a=en(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),nn=z(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),rn=z(((e,t)=>{var n=tn(),r=nn();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),an=z(((e,t)=>{t.exports=rn()(Ut(),`Map`)})),on=z(((e,t)=>{var n=rn();t.exports=function(){try{var e=n(Object,`defineProperty`);return e({},``,{}),e}catch{}}()})),sn=z(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e{function n(e){return e}t.exports=n})),ln=typeof Symbol==`function`&&Symbol.observable||`@@observable`,un=()=>Math.random().toString(36).substring(7).split(``).join(`.`),dn={INIT:`@@redux/INIT${un()}`,REPLACE:`@@redux/REPLACE${un()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${un()}`},fn=z(((e,t)=>{t.exports=rn()(Ut(),`WeakMap`)})),pn=z(((e,t)=>{var n=fn();t.exports=n&&new n})),mn=z(((e,t)=>{var n=cn(),r=pn();t.exports=r?function(e,t){return r.set(e,t),e}:n})),hn=z(((e,t)=>{var n=Xt(),r=Object.create;t.exports=function(){function e(){}return function(t){if(!n(t))return{};if(r)return r(t);e.prototype=t;var i=new e;return e.prototype=void 0,i}}()})),gn=z(((e,t)=>{var n=hn(),r=Xt();function i(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var i=n(e.prototype),a=e.apply(i,t);return r(a)?a:i}}t.exports=i})),_n=z(((e,t)=>{var n=gn(),r=Ut(),i=1;function a(e,t,a){var o=t&i,s=n(e);function c(){return(this&&this!==r&&this instanceof c?s:e).apply(o?a:this,arguments)}return c}t.exports=a})),vn=z(((e,t)=>{function n(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}t.exports=n})),yn=z(((e,t)=>{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=r.length,c=-1,l=t.length,u=n(o-s,0),d=Array(l+u),f=!i;++c{var n=Math.max;function r(e,t,r,i){for(var a=-1,o=e.length,s=-1,c=r.length,l=-1,u=t.length,d=n(o-c,0),f=Array(d+u),p=!i;++a{function n(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}t.exports=n})),Sn=z(((e,t)=>{function n(){}t.exports=n})),Cn=z(((e,t)=>{var n=hn(),r=Sn(),i=4294967295;function a(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=i,this.__views__=[]}a.prototype=n(r.prototype),a.prototype.constructor=a,t.exports=a})),wn=z(((e,t)=>{function n(){}t.exports=n})),Tn=z(((e,t)=>{var n=pn(),r=wn();t.exports=n?function(e){return n.get(e)}:r})),En=z(((e,t)=>{t.exports={}})),Dn=z(((e,t)=>{var n=En(),r=Object.prototype.hasOwnProperty;function i(e){for(var t=e.name+``,i=n[t],a=r.call(n,t)?i.length:0;a--;){var o=i[a],s=o.func;if(s==null||s==e)return o.name}return t}t.exports=i})),On=z(((e,t)=>{var n=hn(),r=Sn();function i(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=void 0}i.prototype=n(r.prototype),i.prototype.constructor=i,t.exports=i})),kn=z(((e,t)=>{function n(e,t){var n=-1,r=e.length;for(t||=Array(r);++n{var n=Cn(),r=On(),i=kn();function a(e){if(e instanceof n)return e.clone();var t=new r(e.__wrapped__,e.__chain__);return t.__actions__=i(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}t.exports=a})),jn=z(((e,t)=>{var n=Cn(),r=On(),i=Sn(),a=Vt(),o=Jt(),s=An(),c=Object.prototype.hasOwnProperty;function l(e){if(o(e)&&!a(e)&&!(e instanceof n)){if(e instanceof r)return e;if(c.call(e,`__wrapped__`))return s(e)}return new r(e)}l.prototype=i.prototype,l.prototype.constructor=l,t.exports=l})),Mn=z(((e,t)=>{var n=Cn(),r=Tn(),i=Dn(),a=jn();function o(e){var t=i(e),o=a[t];if(typeof o!=`function`||!(t in n.prototype))return!1;if(e===o)return!0;var s=r(o);return!!s&&e===s[0]}t.exports=o})),Nn=z(((e,t)=>{var n=Date.now;function r(e){var t=0,r=0;return function(){var i=n(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}t.exports=r})),Pn=z(((e,t)=>{var n=mn();t.exports=Nn()(n)})),Fn=z(((e,t)=>{var n=/\{\n\/\* \[wrapped with (.+)\] \*/,r=/,? & /;function i(e){var t=e.match(n);return t?t[1].split(r):[]}t.exports=i})),In=z(((e,t)=>{var n=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/;function r(e,t){var r=t.length;if(!r)return e;var i=r-1;return t[i]=(r>1?`& `:``)+t[i],t=t.join(r>2?`, `:` `),e.replace(n,`{ /* [wrapped with `+t+`] */ `)}t.exports=r})),Ln=z(((e,t)=>{function n(e){return function(){return e}}t.exports=n})),Rn=z(((e,t)=>{var n=Ln(),r=on(),i=cn();t.exports=r?function(e,t){return r(e,`toString`,{configurable:!0,enumerable:!1,value:n(t),writable:!0})}:i})),zn=z(((e,t)=>{var n=Rn();t.exports=Nn()(n)})),Bn=z(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n{function n(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a{function n(e){return e!==e}t.exports=n})),Un=z(((e,t)=>{function n(e,t,n){for(var r=n-1,i=e.length;++r{var n=Vn(),r=Hn(),i=Un();function a(e,t,a){return t===t?i(e,t,a):n(e,r,a)}t.exports=a})),Gn=z(((e,t)=>{var n=Wn();function r(e,t){return!!(e!=null&&e.length)&&n(e,t,0)>-1}t.exports=r})),Kn=z(((e,t)=>{var n=Bn(),r=Gn(),i=[[`ary`,128],[`bind`,1],[`bindKey`,2],[`curry`,8],[`curryRight`,16],[`flip`,512],[`partial`,32],[`partialRight`,64],[`rearg`,256]];function a(e,t){return n(i,function(n){var i=`_.`+n[0];t&n[1]&&!r(e,i)&&e.push(i)}),e.sort()}t.exports=a})),qn=z(((e,t)=>{var n=Fn(),r=In(),i=zn(),a=Kn();function o(e,t,o){var s=t+``;return i(e,r(s,a(n(s),o)))}t.exports=o})),Jn=z(((e,t)=>{var n=Mn(),r=Pn(),i=qn(),a=1,o=2,s=4,c=8,l=32,u=64;function d(e,t,d,f,p,m,h,g,_,v){var y=t&c,b=y?h:void 0,x=y?void 0:h,S=y?m:void 0,C=y?void 0:m;t|=y?l:u,t&=~(y?u:l),t&s||(t&=~(a|o));var w=[e,t,p,S,b,C,x,g,_,v],T=d.apply(void 0,w);return n(e)&&r(T,w),T.placeholder=f,i(T,e,t)}t.exports=d})),Yn=z(((e,t)=>{function n(e){return e.placeholder}t.exports=n})),Xn=z(((e,t)=>{var n=kn(),r=sn(),i=Math.min;function a(e,t){for(var a=e.length,o=i(t.length,a),s=n(e);o--;){var c=t[o];e[o]=r(c,a)?s[c]:void 0}return e}t.exports=a})),Zn=z(((e,t)=>{var n=`__lodash_placeholder__`;function r(e,t){for(var r=-1,i=e.length,a=0,o=[];++r{var n=yn(),r=bn(),i=xn(),a=gn(),o=Jn(),s=Yn(),c=Xn(),l=Zn(),u=Ut(),d=1,f=2,p=8,m=16,h=128,g=512;function _(e,t,v,y,b,x,S,C,w,T){var E=t&h,D=t&d,O=t&f,k=t&(p|m),A=t&g,j=O?void 0:a(e);function M(){for(var d=arguments.length,f=Array(d),p=d;p--;)f[p]=arguments[p];if(k)var m=s(M),h=i(f,m);if(y&&(f=n(f,y,b,k)),x&&(f=r(f,x,S,k)),d-=h,k&&d1&&f.reverse(),E&&w{var n=vn(),r=gn(),i=Qn(),a=Jn(),o=Yn(),s=Zn(),c=Ut();function l(e,t,l){var u=r(e);function d(){for(var r=arguments.length,f=Array(r),p=r,m=o(d);p--;)f[p]=arguments[p];var h=r<3&&f[0]!==m&&f[r-1]!==m?[]:s(f,m);return r-=h.length,r{var n=vn(),r=gn(),i=Ut(),a=1;function o(e,t,o,s){var c=t&a,l=r(e);function u(){for(var t=-1,r=arguments.length,a=-1,d=s.length,f=Array(d+r),p=this&&this!==i&&this instanceof u?l:e;++a{var n=yn(),r=bn(),i=Zn(),a=`__lodash_placeholder__`,o=1,s=2,c=4,l=8,u=128,d=256,f=Math.min;function p(e,t){var p=e[1],m=t[1],h=p|m,g=h<(o|s|u),_=m==u&&p==l||m==u&&p==d&&e[7].length<=t[8]||m==(u|d)&&t[7].length<=t[8]&&p==l;if(!(g||_))return e;m&o&&(e[2]=t[2],h|=p&o?0:c);var v=t[3];if(v){var y=e[3];e[3]=y?n(y,v,t[4]):v,e[4]=y?i(e[3],a):t[4]}return v=t[5],v&&(y=e[5],e[5]=y?r(y,v,t[6]):v,e[6]=y?i(e[5],a):t[6]),v=t[7],v&&(e[7]=v),m&u&&(e[8]=e[8]==null?t[8]:f(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=h,e}t.exports=p})),nr=z(((e,t)=>{var n=/\s/;function r(e){for(var t=e.length;t--&&n.test(e.charAt(t)););return t}t.exports=r})),rr=z(((e,t)=>{var n=nr(),r=/^\s+/;function i(e){return e&&e.slice(0,n(e)+1).replace(r,``)}t.exports=i})),ir=z(((e,t)=>{var n=rr(),r=Xt(),i=Yt(),a=NaN,o=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;function u(e){if(typeof e==`number`)return e;if(i(e))return a;if(r(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=r(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=n(e);var u=s.test(e);return u||c.test(e)?l(e.slice(2),u?2:8):o.test(e)?a:+e}t.exports=u})),ar=z(((e,t)=>{var n=ir(),r=1/0,i=17976931348623157e292;function a(e){return e?(e=n(e),e===r||e===-r?(e<0?-1:1)*i:e===e?e:0):e===0?e:0}t.exports=a})),or=z(((e,t)=>{var n=ar();function r(e){var t=n(e),r=t%1;return t===t?r?t-r:t:0}t.exports=r})),sr=z(((e,t)=>{var n=mn(),r=_n(),i=$n(),a=Qn(),o=er(),s=Tn(),c=tr(),l=Pn(),u=qn(),d=or(),f=`Expected a function`,p=1,m=2,h=8,g=16,_=32,v=64,y=Math.max;function b(e,t,b,x,S,C,w,T){var E=t&m;if(!E&&typeof e!=`function`)throw TypeError(f);var D=x?x.length:0;if(D||(t&=~(_|v),x=S=void 0),w=w===void 0?w:y(d(w),0),T=T===void 0?T:d(T),D-=S?S.length:0,t&v){var O=x,k=S;x=S=void 0}var A=E?void 0:s(e),j=[e,t,b,x,S,O,k,C,w,T];if(A&&c(j,A),e=j[0],t=j[1],b=j[2],x=j[3],S=j[4],T=j[9]=j[9]===void 0?E?0:e.length:y(j[9]-D,0),!T&&t&(h|g)&&(t&=~(h|g)),!t||t==p)var M=r(e,t,b);else M=t==h||t==g?i(e,t,T):(t==_||t==(p|_))&&!S.length?o(e,t,b,x):a.apply(void 0,j);return u((A?n:l)(M,j),e,t)}t.exports=b})),cr=z(((e,t)=>{var n=sr(),r=8;function i(e,t,a){t=a?void 0:t;var o=n(e,r,void 0,void 0,void 0,void 0,void 0,t);return o.placeholder=i.placeholder,o}i.placeholder={},t.exports=i})),lr=z(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),ur=z(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),dr=z(((e,t)=>{t.exports=ur()(Object.keys,Object)})),fr=z(((e,t)=>{var n=lr(),r=dr(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),pr=z(((e,t)=>{t.exports=rn()(Ut(),`DataView`)})),mr=z(((e,t)=>{t.exports=rn()(Ut(),`Promise`)})),hr=z(((e,t)=>{t.exports=rn()(Ut(),`Set`)})),gr=z(((e,t)=>{var n=pr(),r=an(),i=mr(),a=hr(),o=fn(),s=qt(),c=en(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),_r=z(((e,t)=>{var n=qt(),r=Jt(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),vr=z(((e,t)=>{var n=_r(),r=Jt(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),yr=z(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),br=z(((e,t)=>{var n=Zt(),r=yr();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),xr=z(((e,t)=>{function n(){return!1}t.exports=n})),Sr=z(((e,t)=>{var n=Ut(),r=xr(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),Cr=z(((e,t)=>{var n=qt(),r=yr(),i=Jt(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k={};k[b]=k[x]=k[S]=k[C]=k[w]=k[T]=k[E]=k[D]=k[O]=!0,k[a]=k[o]=k[v]=k[s]=k[y]=k[c]=k[l]=k[u]=k[d]=k[f]=k[p]=k[m]=k[h]=k[g]=k[_]=!1;function A(e){return i(e)&&r(e.length)&&!!k[n(e)]}t.exports=A})),wr=z(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),Tr=z(((e,t)=>{var n=Ht(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),Er=z(((e,t)=>{var n=Cr(),r=wr(),i=Tr(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),Dr=z(((e,t)=>{var n=fr(),r=gr(),i=vr(),a=Vt(),o=br(),s=Sr(),c=lr(),l=Er(),u=`[object Map]`,d=`[object Set]`,f=Object.prototype.hasOwnProperty;function p(e){if(e==null)return!0;if(o(e)&&(a(e)||typeof e==`string`||typeof e.splice==`function`||s(e)||l(e)||i(e)))return!e.length;var t=r(e);if(t==u||t==d)return!e.size;if(c(e))return!n(e).length;for(var p in e)if(f.call(e,p))return!1;return!0}t.exports=p})),Or=Je(cr(),1),kr=Je(Dr(),1),Ar=(0,Or.default)(_e),jr=[];for(let e=0;e<256;++e)jr.push((e+256).toString(16).slice(1));Nr=new Uint8Array(16),Pr={randomUUID:typeof crypto<`u`&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)},Fr=e=>Array.isArray(e)?e:[e],Ir=class{constructor(e){this.value=e}deref(){return this.value}},Lr=typeof WeakRef>`u`?Ir:WeakRef,Rr=0,zr=1,Br=Oe(De),Vr={state:{},canvasNavigation:{height:50,width:50},selectedTheme:`light`,themes:{dark:{palette:{mode:`dark`,primary:{main:`#4db6ac`},secondary:{main:`#4db6ac`},shades:{dark:`#000000`,main:`#424242`,light:`#616161`}}},light:{palette:{mode:`light`}}},theme:{palette:{mode:`light`,primary:{main:`#1967d2`},secondary:{main:`#1967d2`},shades:{dark:`#eeeeee`,main:`#ffffff`,light:`#f5f5f5`},error:{main:`#b00020`},notification:{main:`#ffa224`,contrastText:`#ffa224`},hitCounter:{default:`#bdbdbd`},highlights:{primary:`#ffff00`,secondary:`#00BFFF`},section_divider:`rgba(0, 0, 0, 0.25)`,annotations:{chipBackground:`#e0e0e0`,hidden:{globalAlpha:0},default:{strokeStyle:`#00BFFF`,globalAlpha:1},hovered:{strokeStyle:`#BF00FF`,globalAlpha:1},selected:{strokeStyle:`#ffff00`,globalAlpha:1}},search:{default:{fillStyle:`#00BFFF`,globalAlpha:.3},hovered:{fillStyle:`#00FFFF`,globalAlpha:.3},selected:{fillStyle:`#ffff00`,globalAlpha:.3}}},typography:{body1:{fontSize:`1rem`,letterSpacing:`0em`,lineHeight:`1.6em`},body2:{fontSize:`0.878rem`,letterSpacing:`0.015em`,lineHeight:`1.6em`},button:{fontSize:`0.878rem`,letterSpacing:`0.09em`,lineHeight:`2.25rem`,textTransform:`uppercase`},caption:{fontSize:`0.772rem`,letterSpacing:`0.033em`,lineHeight:`1.6rem`},body1Next:{fontSize:`1rem`,letterSpacing:`0em`,lineHeight:`1.6em`},body2Next:{fontSize:`0.878rem`,letterSpacing:`0.015em`,lineHeight:`1.6em`},buttonNext:{fontSize:`0.878rem`,letterSpacing:`0.09em`,lineHeight:`2.25rem`},captionNext:{fontSize:`0.772rem`,letterSpacing:`0.33em`,lineHeight:`1.6rem`},overline:{fontSize:`0.678rem`,fontWeight:500,letterSpacing:`0.166em`,lineHeight:`2em`,textTransform:`uppercase`},h1:{fontSize:`2.822rem`,letterSpacing:`-0.015em`,lineHeight:`1.2em`},h2:{fontSize:`1.575rem`,letterSpacing:`0em`,lineHeight:`1.33em`},h3:{fontSize:`1.383rem`,fontWeight:300,letterSpacing:`0em`,lineHeight:`1.33em`},h4:{fontSize:`1.215rem`,letterSpacing:`0.007em`,lineHeight:`1.45em`},h5:{fontSize:`1.138rem`,letterSpacing:`0.005em`,lineHeight:`1.55em`},h6:{fontSize:`1.067rem`,fontWeight:400,letterSpacing:`0.01em`,lineHeight:`1.6em`},subtitle1:{fontSize:`0.937rem`,letterSpacing:`0.015em`,lineHeight:`1.6em`,fontWeight:300},subtitle2:{fontSize:`0.878rem`,fontWeight:500,letterSpacing:`0.02em`,lineHeight:`1.75em`},useNextVariants:!0},components:{MuiMenuItem:{variants:[{props:{variant:`multiline`},style:{whiteSpace:`normal`}}]},CompanionWindow:{styleOverrides:{closeButton:{order:4},contents:{overflowY:`auto`,wordBreak:`break-word`},controls:({ownerState:e})=>({alignItems:`center`,display:`flex`,flexFlow:`row wrap`,flexGrow:1,justifyContent:e?.position===`bottom`||e?.position===`far-bottom`?`flex-end`:`flex-start`,minHeight:48,order:3}),positionButton:{marginLeft:-16,order:-100,width:24},resize:({ownerState:e})=>({display:`flex`,flexDirection:`column`,minHeight:50,minWidth:e?.position===`left`?235:100,position:`relative`}),root:({ownerState:e})=>({boxShadow:`none`,boxSizing:`border-box`,display:`flex`,flexDirection:`column`,minHeight:0,...e?.position===`right`&&{borderLeft:`0.5px solid rgba(0, 0, 0, 0.125)`},...e?.position===`left`&&{borderRight:`0.5px solid rgba(0, 0, 0, 0.125)`},...e?.position===`bottom`&&{borderTop:`0.5px solid rgba(0, 0, 0, 0.125)`}}),title:({theme:e})=>({...e.typography.subtitle1,alignSelf:`center`,flexGrow:1,width:160}),toolbar:({theme:e})=>({alignItems:`flex-start`,backgroundColor:e.palette.shades.light,flexWrap:`wrap`,justifyContent:`space-between`,minHeight:`max-content`,paddingInlineStart:`1rem`})}},CompanionWindowSection:{styleOverrides:{root:{borderBlockEnd:`.5px solid rgba(0, 0, 0, 0.25)`}}},IIIFHtmlContent:{styleOverrides:{root:({theme:e})=>({"& a":{color:e.palette.primary.main,textDecoration:`underline`}})}},IIIFThumbnail:{styleOverrides:{root:({ownerState:e})=>({...e?.variant===`inside`&&{display:`inline-block`,height:`inherit`,position:`relative`}}),label:({ownerState:e})=>({overflow:`hidden`,textOverflow:`ellipsis`,lineHeight:`1.5em`,wordBreak:`break-word`,...e?.variant===`inside`&&{color:`#ffffff`,WebkitLineClamp:1,whiteSpace:`nowrap`},...e?.variant===`outside`&&{display:`-webkit-box`,maxHeight:`3em`,MozBoxOrient:`vertical`,WebkitLineClamp:2},...e?.variant===`inside`&&{background:`linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.3) 70%, rgba(0,0,0,0) 100%)`,bottom:`0px`,boxSizing:`border-box`,left:`0px`,padding:`4px`,position:`absolute`,width:`100%`}}),image:({ownerState:e})=>({...e?.border&&{border:`1px solid rgba(0, 0, 0, 0.125)`}})}},ThemeIcon:{styleOverrides:{icon:({ownerState:e})=>({color:e?.value===`dark`?`#000000`:void 0})}},MuiAccordion:{variants:[{props:{variant:`compact`},style:{"& .MuiAccordionSummary-root":{minHeight:`unset`,padding:0},"& .MuiAccordionSummary-content":{margin:0},"& .MuiAccordionDetails-root":{padding:0}}}]},MuiButton:{styleOverrides:{inlineText:{lineHeight:`1.5em`,padding:0,textAlign:`inherit`,textTransform:`none`},inlineTextSecondary:({theme:e})=>({color:e.palette.secondary.main})}},MuiButtonBase:{defaultProps:{disableTouchRipple:!0}},MuiDialog:{variants:[{props:{variant:`contained`},style:{position:`absolute`,"& .MuiBackdrop-root":{position:`absolute`}}}]},MuiFab:{styleOverrides:{root:{transition:`none`}}},MuiLink:{defaultProps:{underline:`always`}},MuiListSubheader:{styleOverrides:{root:{'&[role="presentation"]:focus':{outline:0}}}},MuiTooltip:{styleOverrides:{tooltipPlacementLeft:{"@media (min-width:600px)":{margin:`0 !important`}},tooltipPlacementRight:{"@media (min-width:600px)":{margin:`0 !important`}},tooltipPlacementTop:{"@media (min-width:600px)":{margin:`0 !important`}},tooltipPlacementBottom:{"@media (min-width:600px)":{margin:`0 !important`}}}},MuiTouchRipple:{styleOverrides:{childPulsate:{animation:`none`},rippleVisible:{animation:`none`}}}}},language:`en`,availableLanguages:{ar:`العربية`,de:`Deutsch`,en:`English`,et:`Eesti`,fa:`فارسی`,fr:`Français`,hr:`Hrvatski`,ja:`日本語`,kr:`한국어`,lt:`Lietuvių`,hu:`Magyar`,nl:`Nederlands`,"nb-NO":`Norwegian Bokmål`,pl:`Polski`,"pt-BR":`Português do Brasil`,vi:`Tiếng Việt`,"zh-CN":`中文(简体)`,"zh-TW":`中文(繁體)`,it:`Italiano`,sr:`Српски`,sv:`Svenska`,bg:`Български`},annotations:{htmlSanitizationRuleSet:`iiif`,filteredMotivations:[]},createGenerateClassNameOptions:{productionPrefix:`mirador`},requests:{preprocessors:[],postprocessors:[]},translations:{},window:{allowClose:!0,allowFullscreen:!1,allowMaximize:!0,allowTopMenuButton:!0,allowWindowSideBar:!0,authNewWindowCenter:`parent`,sideBarPanel:`info`,defaultSidebarPanelHeight:201,defaultSidebarPanelWidth:235,defaultView:`single`,forceDrawAnnotations:!1,hideWindowTitle:!1,highlightAllAnnotations:!1,showLocalePicker:!1,sideBarOpen:!1,switchCanvasOnSearch:!0,panels:{info:!0,attribution:!0,canvas:!0,annotations:!0,search:!0,layers:!0},views:[{key:`single`,behaviors:[`individuals`]},{key:`book`,behaviors:[`paged`]},{key:`scroll`,behaviors:[`continuous`]},{key:`gallery`}],elastic:{height:400,width:480}},windows:[],thumbnails:{preferredFormats:[`jpg`,`png`,`webp`,`tif`]},thumbnailNavigation:{defaultPosition:`off`,displaySettings:!0,height:130,showThumbnailLabels:!0,width:100},workspace:{allowNewWindows:!0,draggingEnabled:!0,height:5e3,id:be(),isWorkspaceAddVisible:!1,showZoomControls:!0,type:`mosaic`,viewportPosition:{x:0,y:0},width:5e3},workspaceControlPanel:{enabled:!0},galleryView:{height:120,width:null},osdConfig:{alwaysBlend:!1,blendTime:.1,preserveImageSizeOnResize:!0,preserveViewport:!1,showNavigationControl:!1,zoomPerClick:1,zoomPerDoubleClick:2},export:{catalog:!0,companionWindows:!0,config:!0,elasticLayout:!0,layers:!0,manifests:{filter:([e,t])=>!e.startsWith(`http`)},viewers:!0,windows:!0,workspace:!0},audioOptions:{controls:!0,crossOrigin:`anonymous`},videoOptions:{controls:!0,crossOrigin:`anonymous`},auth:{serviceProfiles:[{profile:`http://iiif.io/api/auth/1/external`,external:!0},{profile:`http://iiif.io/api/auth/1/kiosk`,kiosk:!0},{profile:`http://iiif.io/api/auth/1/clickthrough`},{profile:`http://iiif.io/api/auth/1/login`},{profile:`http://iiif.io/api/auth/0/external`,external:!0},{profile:`http://iiif.io/api/auth/0/kiosk`,kiosk:!0},{profile:`http://iiif.io/api/auth/0/clickthrough`},{profile:`http://iiif.io/api/auth/0/login`}]},labelValueJoiner:`, `},Hr=Object.freeze([]),Ur=Object.freeze({}),Wr=Br([e=>ke(e).viewers,(e,{windowId:t})=>t],(e,t)=>e[t]),Gr=Br([Ne],({windowIds:e})=>e||Hr)}));function qr(e){return e.getServices().find(e=>e.getProfile&&Ga.Utils.isImageProfile(e.getProfile()||``)||Ga.Utils.isImageServiceType(e.getIIIFResourceType()||``))}function Jr(e){return e===void 0?[]:Array.isArray(e)?e:[e]}function Yr(e){return ke(e).companionWindows||Ur}function Xr(e){return ke(e||{}).config||Ur}function Zr(e){let t=Xr(e).export;return Object.entries(t).reduce((t,[n,r])=>(r===!0?t[n]=e[n]:r.filter&&(t[n]=Object.entries(e[n]).filter(r.filter).reduce((e,[t,n])=>(e[t]=n,e),{})),t),{})}function Qr(e){let t=e.getProfile();return t.endsWith(`#level1`)||t.endsWith(`#level2`)?!1:t===`level0`||Ga.Utils.isLevel0ImageProfile(t)}function $r(e){let t=e.getProfile();return t.endsWith(`#level0`)||t.endsWith(`#level1`)?!1:t===`level2`||Ga.Utils.isLevel2ImageProfile(t)}function ei(e){return Jr(e.getProperty(`type`)||[]).some(e=>e.startsWith(`ImageService`))}function ti(e){let t=e&&e.getServices().find(e=>ei(e)||Ga.Utils.isImageProfile(e.getProfile()));if(t)return t}function ni(e,t={}){return new wo(t,{getMiradorCanvas:e=>new qa(e),getMiradorManifest:e=>new Ja(e)}).get(e)}function ri(e,t){if(!e)return;let n=Ga.Utils.parseManifest(structuredClone(e),t?{locale:t}:void 0);if(n)return typeof n.getSequences!=`function`&&(n.getSequences=()=>[]),n}function ii(e){return Br([Mo],t=>t&&t.getProperty(e))}function ai(e,t){let n=Mo(e,t),r=Eo(e,80,120);if(!n)return;let i=r.get(n);return i&&i.url}function oi(e,t=void 0){return e&&e.getMetadata().map(e=>({label:e.getLabel(t),values:e.getValues(t)}))}function si(e){let t=new Set([]),n=e=>{if(e&&typeof e==`object`){if(e[`@language`]&&e[`@value`]){t.add(e[`@language`]);return}Object.keys(e).forEach(e=>{t.add(e)})}};return Array.isArray(e)?e.forEach(e=>n(e)):n(e),[...t]}function ci(e){if(!e)return[];let t=e.getProperty(`metadata`)||[],n={};for(let e=0;e{n[e]=!0}),si(r.value).forEach(e=>{n[e]=!0})}return Object.keys(n)}function li(e){return ke(e).elasticLayout}function ui(e){let[t]=ke(e).errors.items;return ke(e).errors[t]}function di(e){let t={};return Object.keys(je(e)).forEach(n=>{t[n]=Go(e,{windowId:n})}),t}var fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua,Wa,Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So,Co,wo,To,Eo,Do,Oo,ko,Ao,jo,Mo,No,Po,Fo,Io,Lo,Ro,zo,Bo,Vo,Ho,Uo,Wo,Go,Ko,qo,Jo,Yo,Xo,Zo,Qo,$o,es,ts,ns,rs,is,as,os,ss,cs,ls,us,ds,fs,ps,ms,hs,gs,_s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,Ns,Ps=o((()=>{Kr(),fi=z(((e,t)=>{var n=Vt(),r=Yt(),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;function o(e,t){if(n(e))return!1;var o=typeof e;return o==`number`||o==`symbol`||o==`boolean`||e==null||r(e)?!0:a.test(e)||!i.test(e)||t!=null&&e in Object(t)}t.exports=o})),pi=z(((e,t)=>{t.exports=rn()(Object,`create`)})),mi=z(((e,t)=>{var n=pi();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),hi=z(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),gi=z(((e,t)=>{var n=pi(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),_i=z(((e,t)=>{var n=pi(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),vi=z(((e,t)=>{var n=pi(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),yi=z(((e,t)=>{var n=mi(),r=hi(),i=gi(),a=_i(),o=vi();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{function n(){this.__data__=[],this.size=0}t.exports=n})),xi=z(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),Si=z(((e,t)=>{var n=xi();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),Ci=z(((e,t)=>{var n=Si(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),wi=z(((e,t)=>{var n=Si();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),Ti=z(((e,t)=>{var n=Si();function r(e){return n(this.__data__,e)>-1}t.exports=r})),Ei=z(((e,t)=>{var n=Si();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),Di=z(((e,t)=>{var n=bi(),r=Ci(),i=wi(),a=Ti(),o=Ei();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=yi(),r=Di(),i=an();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),ki=z(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),Ai=z(((e,t)=>{var n=ki();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),ji=z(((e,t)=>{var n=Ai();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),Mi=z(((e,t)=>{var n=Ai();function r(e){return n(this,e).get(e)}t.exports=r})),Ni=z(((e,t)=>{var n=Ai();function r(e){return n(this,e).has(e)}t.exports=r})),Pi=z(((e,t)=>{var n=Ai();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),Fi=z(((e,t)=>{var n=Oi(),r=ji(),i=Mi(),a=Ni(),o=Pi();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t{var n=Fi(),r=`Expected a function`;function i(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw TypeError(r);var a=function(){var n=arguments,r=t?t.apply(this,n):n[0],i=a.cache;if(i.has(r))return i.get(r);var o=e.apply(this,n);return a.cache=i.set(r,o)||i,o};return a.cache=new(i.Cache||n),a}i.Cache=n,t.exports=i})),Li=z(((e,t)=>{var n=Ii(),r=500;function i(e){var t=n(e,function(e){return i.size===r&&i.clear(),e}),i=t.cache;return t}t.exports=i})),Ri=z(((e,t)=>{var n=Li(),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,i=/\\(\\)?/g;t.exports=n(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(r,function(e,n,r,a){t.push(r?a.replace(i,`$1`):n||e)}),t})})),zi=z(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n{var n=Wt(),r=zi(),i=Vt(),a=Yt(),o=1/0,s=n?n.prototype:void 0,c=s?s.toString:void 0;function l(e){if(typeof e==`string`)return e;if(i(e))return r(e,l)+``;if(a(e))return c?c.call(e):``;var t=e+``;return t==`0`&&1/e==-o?`-0`:t}t.exports=l})),Vi=z(((e,t)=>{var n=Bi();function r(e){return e==null?``:n(e)}t.exports=r})),Hi=z(((e,t)=>{var n=Vt(),r=fi(),i=Ri(),a=Vi();function o(e,t){return n(e)?e:r(e,t)?[e]:i(a(e))}t.exports=o})),Ui=z(((e,t)=>{var n=Yt(),r=1/0;function i(e){if(typeof e==`string`||n(e))return e;var t=e+``;return t==`0`&&1/e==-r?`-0`:t}t.exports=i})),Wi=z(((e,t)=>{var n=Hi(),r=Ui();function i(e,t){t=n(t,e);for(var i=0,a=t.length;e!=null&&i{var n=on();function r(e,t,r){t==`__proto__`&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}t.exports=r})),Ki=z(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n{function n(e){return function(t,n,r){for(var i=-1,a=Object(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}t.exports=n})),Ji=z(((e,t)=>{t.exports=qi()()})),Yi=z(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n{var n=Yi(),r=vr(),i=Vt(),a=Sr(),o=sn(),s=Er(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),Zi=z(((e,t)=>{var n=Xi(),r=fr(),i=br();function a(e){return i(e)?n(e):r(e)}t.exports=a})),Qi=z(((e,t)=>{var n=Ji(),r=Zi();function i(e,t){return e&&n(e,t,r)}t.exports=i})),$i=z(((e,t)=>{var n=br();function r(e,t){return function(r,i){if(r==null)return r;if(!n(r))return e(r,i);for(var a=r.length,o=t?a:-1,s=Object(r);(t?o--:++o{var n=Qi();t.exports=$i()(n)})),ta=z(((e,t)=>{var n=Di();function r(){this.__data__=new n,this.size=0}t.exports=r})),na=z(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),ra=z(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),ia=z(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),aa=z(((e,t)=>{var n=Di(),r=an(),i=Fi(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length{var n=Di(),r=ta(),i=na(),a=ra(),o=ia(),s=aa();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),sa=z(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),ca=z(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),la=z(((e,t)=>{var n=Fi(),r=sa(),i=ca();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n{function n(e,t){return e.has(t)}t.exports=n})),fa=z(((e,t)=>{var n=la(),r=ua(),i=da(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g{t.exports=Ut().Uint8Array})),ma=z(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),ha=z(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),ga=z(((e,t)=>{var n=Wt(),r=pa(),i=xi(),a=fa(),o=ma(),s=ha(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var D=x&c;if(E||=s,e.size!=t.size&&!D)return!1;var O=T.get(e);if(O)return O==t;x|=l,T.set(e,t);var k=a(E(e),E(t),x,C,w,T);return T.delete(e),k;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),_a=z(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n{var n=_a(),r=Vt();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),ya=z(((e,t)=>{function n(){return[]}t.exports=n})),ba=z(((e,t)=>{var n=Ki(),r=ya(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),xa=z(((e,t)=>{var n=va(),r=ba(),i=Zi();function a(e){return n(e,i,r)}t.exports=a})),Sa=z(((e,t)=>{var n=xa(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f{var n=oa(),r=fa(),i=ga(),a=Sa(),o=gr(),s=Vt(),c=Sr(),l=Er(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),D=w&&m.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return v||=new n,_(O,k,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),wa=z(((e,t)=>{var n=Ca(),r=Jt();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),Ta=z(((e,t)=>{var n=oa(),r=wa(),i=1,a=2;function o(e,t,o,s){var c=o.length,l=c,u=!s;if(e==null)return!l;for(e=Object(e);c--;){var d=o[c];if(u&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++c{var n=Xt();function r(e){return e===e&&!n(e)}t.exports=r})),Da=z(((e,t)=>{var n=Ea(),r=Zi();function i(e){for(var t=r(e),i=t.length;i--;){var a=t[i],o=e[a];t[i]=[a,o,n(o)]}return t}t.exports=i})),Oa=z(((e,t)=>{function n(e,t){return function(n){return n!=null&&n[e]===t&&(t!==void 0||e in Object(n))}}t.exports=n})),ka=z(((e,t)=>{var n=Ta(),r=Da(),i=Oa();function a(e){var t=r(e);return t.length==1&&t[0][2]?i(t[0][0],t[0][1]):function(r){return r===e||n(r,e,t)}}t.exports=a})),Aa=z(((e,t)=>{var n=Wi();function r(e,t,r){var i=e==null?void 0:n(e,t);return i===void 0?r:i}t.exports=r})),ja=z(((e,t)=>{function n(e,t){return e!=null&&t in Object(e)}t.exports=n})),Ma=z(((e,t)=>{var n=Hi(),r=vr(),i=Vt(),a=sn(),o=yr(),s=Ui();function c(e,t,c){t=n(t,e);for(var l=-1,u=t.length,d=!1;++l{var n=ja(),r=Ma();function i(e,t){return e!=null&&r(e,t,n)}t.exports=i})),Pa=z(((e,t)=>{var n=wa(),r=Aa(),i=Na(),a=fi(),o=Ea(),s=Oa(),c=Ui(),l=1,u=2;function d(e,t){return a(e)&&o(t)?s(c(e),t):function(a){var o=r(a,e);return o===void 0&&o===t?i(a,e):n(t,o,l|u)}}t.exports=d})),Fa=z(((e,t)=>{function n(e){return function(t){return t?.[e]}}t.exports=n})),Ia=z(((e,t)=>{var n=Wi();function r(e){return function(t){return n(t,e)}}t.exports=r})),La=z(((e,t)=>{var n=Fa(),r=Ia(),i=fi(),a=Ui();function o(e){return i(e)?n(a(e)):r(e)}t.exports=o})),Ra=z(((e,t)=>{var n=ka(),r=Pa(),i=cn(),a=Vt(),o=La();function s(e){return typeof e==`function`?e:e==null?i:typeof e==`object`?a(e)?r(e[0],e[1]):n(e):o(e)}t.exports=s})),za=z(((e,t)=>{var n=Wt(),r=vr(),i=Vt(),a=n?n.isConcatSpreadable:void 0;function o(e){return i(e)||r(e)||!!(a&&e&&e[a])}t.exports=o})),Ba=z(((e,t)=>{var n=_a(),r=za();function i(e,t,a,o,s){var c=-1,l=e.length;for(a||=r,s||=[];++c0&&a(u)?t>1?i(u,t-1,a,o,s):n(s,u):o||(s[s.length]=u)}return s}t.exports=i})),Va=z(((e,t)=>{var n=Ba();function r(e){return e!=null&&e.length?n(e,1):[]}t.exports=r})),Ha=Je(Va(),1),Ua=class{constructor(e,t=`single`){this.canvases=e,this.viewType=t,this._groupings=null}getCanvases(e){switch(this.viewType){case`book`:return this.groupings()[Math.ceil(e/2)];default:return this.groupings()[e]}}groupings(){if(this._groupings)return this._groupings;if(this.viewType===`scroll`)return[this.canvases];if(this.viewType!==`book`)return this.canvases.map(e=>[e]);let e=[];return this.canvases.forEach((t,n)=>{if(n===0){e.push([t]);return}n%2==0?e[Math.ceil(n/2)].push(t):e.push([t])}),this._groupings=e,e}},Wa=z(((e,t)=>{(function(n,r){typeof e==`object`&&typeof t==`object`?t.exports=r():typeof define==`function`&&define.amd?define(`manifesto`,[],r):typeof e==`object`?e.manifesto=r():n.manifesto=r()})(Object(typeof self<`u`?self:e),()=>(()=>{var e={7019(e,t){Object.defineProperty(t,"__esModule",{value:!0}),t.CONTINUE=100,t.SWITCHING_PROTOCOLS=101,t.PROCESSING=102,t.OK=200,t.CREATED=201,t.ACCEPTED=202,t.NON_AUTHORITATIVE_INFORMATION=203,t.NO_CONTENT=204,t.RESET_CONTENT=205,t.PARTIAL_CONTENT=206,t.MULTI_STATUS=207,t.MULTIPLE_CHOICES=300,t.MOVED_PERMANENTLY=301,t.MOVED_TEMPORARILY=302,t.SEE_OTHER=303,t.NOT_MODIFIED=304,t.USE_PROXY=305,t.TEMPORARY_REDIRECT=307,t.BAD_REQUEST=400,t.UNAUTHORIZED=401,t.PAYMENT_REQUIRED=402,t.FORBIDDEN=403,t.NOT_FOUND=404,t.METHOD_NOT_ALLOWED=405,t.NOT_ACCEPTABLE=406,t.PROXY_AUTHENTICATION_REQUIRED=407,t.REQUEST_TIME_OUT=408,t.CONFLICT=409,t.GONE=410,t.LENGTH_REQUIRED=411,t.PRECONDITION_FAILED=412,t.REQUEST_ENTITY_TOO_LARGE=413,t.REQUEST_URI_TOO_LARGE=414,t.UNSUPPORTED_MEDIA_TYPE=415,t.REQUESTED_RANGE_NOT_SATISFIABLE=416,t.EXPECTATION_FAILED=417,t.IM_A_TEAPOT=418,t.UNPROCESSABLE_ENTITY=422,t.LOCKED=423,t.FAILED_DEPENDENCY=424,t.UNORDERED_COLLECTION=425,t.UPGRADE_REQUIRED=426,t.PRECONDITION_REQUIRED=428,t.TOO_MANY_REQUESTS=429,t.REQUEST_HEADER_FIELDS_TOO_LARGE=431,t.INTERNAL_SERVER_ERROR=500,t.NOT_IMPLEMENTED=501,t.BAD_GATEWAY=502,t.SERVICE_UNAVAILABLE=503,t.GATEWAY_TIME_OUT=504,t.HTTP_VERSION_NOT_SUPPORTED=505,t.VARIANT_ALSO_NEGOTIATES=506,t.INSUFFICIENT_STORAGE=507,t.BANDWIDTH_LIMIT_EXCEEDED=509,t.NOT_EXTENDED=510,t.NETWORK_AUTHENTICATION_REQUIRED=511},3957(e,t){var n,r,i,a,o,s,c,l,u,d;Object.defineProperty(t,"__esModule",{value:!0}),t.ViewingHint=t.ViewingDirection=t.ServiceType=t.ServiceProfile=t.RenderingFormat=t.MediaType=t.IIIFResourceType=t.ExternalResourceType=t.Behavior=t.AnnotationMotivation=void 0,function(e){e.BOOKMARKING=`oa:bookmarking`,e.CLASSIFYING=`oa:classifying`,e.COMMENTING=`oa:commenting`,e.DESCRIBING=`oa:describing`,e.EDITING=`oa:editing`,e.HIGHLIGHTING=`oa:highlighting`,e.IDENTIFYING=`oa:identifying`,e.LINKING=`oa:linking`,e.MODERATING=`oa:moderating`,e.PAINTING=`sc:painting`,e.QUESTIONING=`oa:questioning`,e.REPLYING=`oa:replying`,e.TAGGING=`oa:tagging`,e.TRANSCRIBING=`oad:transcribing`}(n||(t.AnnotationMotivation=n={})),function(e){e.AUTO_ADVANCE=`auto-advance`,e.CONTINUOUS=`continuous`,e.FACING_PAGES=`facing-pages`,e.HIDDEN=`hidden`,e.INDIVIDUALS=`individuals`,e.MULTI_PART=`multi-part`,e.NO_NAV=`no-nav`,e.NON_PAGED=`non-paged`,e.PAGED=`paged`,e.REPEAT=`repeat`,e.SEQUENCE=`sequence`,e.THUMBNAIL_NAV=`thumbnail-nav`,e.TOGETHER=`together`,e.UNORDERED=`unordered`}(r||(t.Behavior=r={})),function(e){e.CANVAS=`canvas`,e.CHOICE=`choice`,e.OA_CHOICE=`oa:choice`,e.CONTENT_AS_TEXT=`contentastext`,e.DATASET=`dataset`,e.DOCUMENT=`document`,e.IMAGE=`image`,e.MODEL=`model`,e.MOVING_IMAGE=`movingimage`,e.PDF=`pdf`,e.PHYSICAL_OBJECT=`physicalobject`,e.SOUND=`sound`,e.TEXT=`text`,e.TEXTUALBODY=`textualbody`,e.VIDEO=`video`}(i||(t.ExternalResourceType=i={})),function(e){e.ANNOTATION=`annotation`,e.CANVAS=`canvas`,e.COLLECTION=`collection`,e.MANIFEST=`manifest`,e.RANGE=`range`,e.SEQUENCE=`sequence`}(a||(t.IIIFResourceType=a={})),function(e){e.AUDIO_MP4=`audio/mp4`,e.CORTO=`application/corto`,e.DICOM=`application/dicom`,e.DRACO=`application/draco`,e.EPUB=`application/epub+zip`,e.GIRDER=`image/vnd.kitware.girder`,e.GLB=`model/gltf-binary`,e.GLTF=`model/gltf+json`,e.IIIF_PRESENTATION_2=`application/ld+json;profile="http://iiif.io/api/presentation/2/context.json"`,e.IIIF_PRESENTATION_3=`application/ld+json;profile="http://iiif.io/api/presentation/3/context.json"`,e.JPG=`image/jpeg`,e.M3U8=`application/vnd.apple.mpegurl`,e.MP3=`audio/mp3`,e.MPEG=`audio/mpeg`,e.MPEG_DASH=`application/dash+xml`,e.OBJ=`model/obj`,e.OPF=`application/oebps-package+xml`,e.PDF=`application/pdf`,e.PLY=`application/ply`,e.THREEJS=`application/vnd.threejs+json`,e.USDZ=`model/vnd.usd+zip`,e.VIDEO_MP4=`video/mp4`,e.WAV=`audio/wav`,e.WEBM=`video/webm`}(o||(t.MediaType=o={})),function(e){e.DOC=`application/msword`,e.DOCX=`application/vnd.openxmlformats-officedocument.wordprocessingml.document`,e.ODT=`application/vnd.oasis.opendocument.text`,e.PDF=`application/pdf`}(s||(t.RenderingFormat=s={})),function(e){e.IMAGE_0_COMPLIANCE_LEVEL_0=`http://library.stanford.edu/iiif/image-api/compliance.html#level0`,e.IMAGE_0_COMPLIANCE_LEVEL_1=`http://library.stanford.edu/iiif/image-api/compliance.html#level1`,e.IMAGE_0_COMPLIANCE_LEVEL_2=`http://library.stanford.edu/iiif/image-api/compliance.html#level2`,e.IMAGE_0_CONFORMANCE_LEVEL_0=`http://library.stanford.edu/iiif/image-api/conformance.html#level0`,e.IMAGE_0_CONFORMANCE_LEVEL_1=`http://library.stanford.edu/iiif/image-api/conformance.html#level1`,e.IMAGE_0_CONFORMANCE_LEVEL_2=`http://library.stanford.edu/iiif/image-api/conformance.html#level2`,e.IMAGE_1_COMPLIANCE_LEVEL_0=`http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level0`,e.IMAGE_1_COMPLIANCE_LEVEL_1=`http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level1`,e.IMAGE_1_COMPLIANCE_LEVEL_2=`http://library.stanford.edu/iiif/image-api/1.1/compliance.html#level2`,e.IMAGE_1_CONFORMANCE_LEVEL_0=`http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level0`,e.IMAGE_1_CONFORMANCE_LEVEL_1=`http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level1`,e.IMAGE_1_CONFORMANCE_LEVEL_2=`http://library.stanford.edu/iiif/image-api/1.1/conformance.html#level2`,e.IMAGE_1_LEVEL_0=`http://iiif.io/api/image/1/level0.json`,e.IMAGE_1_PROFILE_LEVEL_0=`http://iiif.io/api/image/1/profiles/level0.json`,e.IMAGE_1_LEVEL_1=`http://iiif.io/api/image/1/level1.json`,e.IMAGE_1_PROFILE_LEVEL_1=`http://iiif.io/api/image/1/profiles/level1.json`,e.IMAGE_1_LEVEL_2=`http://iiif.io/api/image/1/level2.json`,e.IMAGE_1_PROFILE_LEVEL_2=`http://iiif.io/api/image/1/profiles/level2.json`,e.IMAGE_2_LEVEL_0=`http://iiif.io/api/image/2/level0.json`,e.IMAGE_2_PROFILE_LEVEL_0=`http://iiif.io/api/image/2/profiles/level0.json`,e.IMAGE_2_LEVEL_1=`http://iiif.io/api/image/2/level1.json`,e.IMAGE_2_PROFILE_LEVEL_1=`http://iiif.io/api/image/2/profiles/level1.json`,e.IMAGE_2_LEVEL_2=`http://iiif.io/api/image/2/level2.json`,e.IMAGE_2_PROFILE_LEVEL_2=`http://iiif.io/api/image/2/profiles/level2.json`,e.AUTH_0_CLICK_THROUGH=`http://iiif.io/api/auth/0/login/clickthrough`,e.AUTH_0_LOGIN=`http://iiif.io/api/auth/0/login`,e.AUTH_0_LOGOUT=`http://iiif.io/api/auth/0/logout`,e.AUTH_0_RESTRICTED=`http://iiif.io/api/auth/0/login/restricted`,e.AUTH_0_TOKEN=`http://iiif.io/api/auth/0/token`,e.AUTH_1_CLICK_THROUGH=`http://iiif.io/api/auth/1/clickthrough`,e.AUTH_1_EXTERNAL=`http://iiif.io/api/auth/1/external`,e.AUTH_1_KIOSK=`http://iiif.io/api/auth/1/kiosk`,e.AUTH_1_LOGIN=`http://iiif.io/api/auth/1/login`,e.AUTH_1_LOGOUT=`http://iiif.io/api/auth/1/logout`,e.AUTH_1_PROBE=`http://iiif.io/api/auth/1/probe`,e.AUTH_1_TOKEN=`http://iiif.io/api/auth/1/token`,e.SEARCH_0=`http://iiif.io/api/search/0/search`,e.SEARCH_0_AUTO_COMPLETE=`http://iiif.io/api/search/0/autocomplete`,e.SEARCH_1=`http://iiif.io/api/search/1/search`,e.SEARCH_1_AUTO_COMPLETE=`http://iiif.io/api/search/1/autocomplete`,e.TRACKING_EXTENSIONS=`http://universalviewer.io/tracking-extensions-profile`,e.UI_EXTENSIONS=`http://universalviewer.io/ui-extensions-profile`,e.PRINT_EXTENSIONS=`http://universalviewer.io/print-extensions-profile`,e.SHARE_EXTENSIONS=`http://universalviewer.io/share-extensions-profile`,e.DOWNLOAD_EXTENSIONS=`http://universalviewer.io/download-extensions-profile`,e.OTHER_MANIFESTATIONS=`http://iiif.io/api/otherManifestations.json`,e.IXIF=`http://wellcomelibrary.org/ld/ixif/0/alpha.json`}(c||(t.ServiceProfile=c={})),function(e){e.IMAGE_SERVICE_2=`ImageService2`,e.IMAGE_SERVICE_3=`ImageService3`}(l||(t.ServiceType=l={})),function(e){e.BOTTOM_TO_TOP=`bottom-to-top`,e.LEFT_TO_RIGHT=`left-to-right`,e.RIGHT_TO_LEFT=`right-to-left`,e.TOP_TO_BOTTOM=`top-to-bottom`}(u||(t.ViewingDirection=u={})),function(e){e.CONTINUOUS=`continuous`,e.INDIVIDUALS=`individuals`,e.NON_PAGED=`non-paged`,e.PAGED=`paged`,e.TOP=`top`}(d||(t.ViewingHint=d={}))},916(e,t,n){e.exports=self.fetch||(self.fetch=n(6782).default||n(6782))},1873(e,t,n){e.exports=n(9325).Symbol},4528(e){e.exports=function(e,t){for(var n=-1,r=t.length,i=e.length;++n0&&a(u)?n>1?e(u,n-1,a,o,s):r(s,u):o||(s[s.length]=u)}return s}},2552(e,t,n){var r=n(1873),i=n(659),a=n(9350),o=r?r.toStringTag:void 0;e.exports=function(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:o&&o in Object(e)?i(e):a(e)}},7534(e,t,n){var r=n(2552),i=n(346);e.exports=function(e){return i(e)&&r(e)==`[object Arguments]`}},4840(e,t,n){e.exports=typeof n.g==`object`&&n.g&&n.g.Object===Object&&n.g},659(e,t,n){var r=n(1873),i=Object.prototype,a=i.hasOwnProperty,o=i.toString,s=r?r.toStringTag:void 0;e.exports=function(e){var t=a.call(e,s),n=e[s];try{e[s]=void 0;var r=!0}catch{}var i=o.call(e);return r&&(t?e[s]=n:delete e[s]),i}},5891(e,t,n){var r=n(1873),i=n(2428),a=n(6449),o=r?r.isConcatSpreadable:void 0;e.exports=function(e){return a(e)||i(e)||!!(o&&e&&e[o])}},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9325(e,t,n){var r=n(4840),i=typeof self==`object`&&self&&self.Object===Object&&self;e.exports=r||i||Function(`return this`)()},5970(e,t,n){var r=n(3120);e.exports=function(e){return e!=null&&e.length?r(e,1):[]}},3176(e,t,n){var r=n(3120),i=1/0;e.exports=function(e){return e!=null&&e.length?r(e,i):[]}},2428(e,t,n){var r=n(7534),i=n(346),a=Object.prototype,o=a.hasOwnProperty,s=a.propertyIsEnumerable;e.exports=r(function(){return arguments}())?r:function(e){return i(e)&&o.call(e,`callee`)&&!s.call(e,`callee`)}},6449(e){e.exports=Array.isArray},346(e){e.exports=function(e){return typeof e==`object`&&!!e}},3039(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Annotation=void 0;var a=n(4799);t.Annotation=function(e){function t(t,n){return e.call(this,t,n)||this}return i(t,e),t.prototype.getBody=function(){var e=[],t=this.getProperty(`body`);if(t){if(Array.isArray(t))for(var n=0;n-1||this.externalResource.data[`@context`].indexOf(`/1.1/context.json`)>-1||this.externalResource.data[`@context`].indexOf(`/1/context.json`)>-1)&&(n=`native`);else{var a=void 0;if((a=this.getImages())&&a.length){var o=a[0].getResource(),c=o.getServices();if(r||=o.getWidth(),l=c?c.find(function(e){return s.Utils.isImageProfile(e.getProfile())||s.Utils.isImageServiceType(e.getIIIFResourceType())}):null)t=l.id,n=s.Utils.getImageQuality(l.getProfile());else if(r===o.getWidth())return o.id}if((a=this.getContent())&&a.length){var l,u=a[0].getBody()[0];if(c=u.getServices(),r||=u.getWidth(),l=c?c.find(function(e){return s.Utils.isImageServiceType(e.getIIIFResourceType())}):null)t=l.id,n=s.Utils.getImageQuality(l.getProfile());else if(r===u.getWidth())return u.id}if(!t){var d=this.getProperty(`thumbnail`);if(d){if(typeof d==`string`)return d;if(d[`@id`])return d[`@id`];if(d.length)return d[0].id}}}return t&&t.endsWith(`/`)&&(t=t.substr(0,t.length-1)),[t,`full`,i,0,n+`.jpg`].join(`/`)},t.prototype.getMaxDimensions=function(){var e,t=null;return this.externalResource&&this.externalResource.data&&this.externalResource.data.profile&&(e=this.externalResource.data.profile,Array.isArray(e)&&(e=e.filter(function(e){return e.maxWidth??e.maxwidth})[0])&&(t=new s.Size(e.maxWidth,e.maxHeight?e.maxHeight:e.maxWidth))),this.externalResource&&this.externalResource.data&&this.externalResource.data.maxWidth&&(t=new s.Size(this.externalResource.data.maxWidth,this.externalResource.data.maxHeight?this.externalResource.data.maxHeight:this.externalResource.data.maxWidth)),t},t.prototype.getContent=function(){var e=[],t=this.__jsonld.items||this.__jsonld.content;if(!t)return e;var n=null;if(t.length&&(n=new s.AnnotationPage(t[0],this.options)),!n)return e;for(var r=n.getAnnotations(),i=0;i`),this.value===null?null:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValue(e||this.defaultLocale,t))},e.prototype.getValues=function(e){return this.value===null?[]:(Array.isArray(e)&&!e.length&&(e=void 0),this.value.getValues(e||this.defaultLocale))},e.prototype.setValue=function(e){this.value===null&&(this.value=new r.PropertyValue([])),this.value.setValue(e,this.defaultLocale)},e}()},72(e,t){Object.defineProperty(t,"__esModule",{value:!0})},212(e,t){var n,r=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},n(e,t)},function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function r(){this.constructor=e}n(e,t),e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageMap=void 0,t.LanguageMap=function(e){function t(){return e!==null&&e.apply(this,arguments)||this}return r(t,e),t.getValue=function(e,t){return e.getValue(t,`
`)},t.getValues=function(e,t){return e.getValues(t)},t}(Array)},4531(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.Manifest=void 0;var a=n(3957),o=n(4799);t.Manifest=function(e){function t(t,n){var r=e.call(this,t,n)||this;if(r.index=0,r._allRanges=null,r.items=[],r._topRanges=[],r.__jsonld.structures&&r.__jsonld.structures.length)for(var i=r._getTopRanges(),a=0;a1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();if(e)return e===a.ViewingHint.PAGED;var t=this.getBehavior();return!!t&&t===a.Behavior.PAGED},t.prototype.getViewingDirection=function(){return this.getProperty(`viewingDirection`)},t.prototype.getViewingHint=function(){var e=this.getProperty(`viewingHint`);return Array.isArray(e)&&(e=e[0]),e||null},t}(o.IIIFResource)},2315(e,t,n){var r,i=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Class extends value `+String(t)+` is not a constructor or null`);function n(){this.constructor=e}r(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ManifestResource=void 0;var a=n(4799),o=n(3957);t.ManifestResource=function(e){function t(t,n){var r=e.call(this,t)||this;return r.options=n,r}return i(t,e),t.prototype.getIIIFResourceType=function(){return a.Utils.normaliseType(this.getProperty(`type`))},t.prototype.getLabel=function(){var e=this.getProperty(`label`);return e?a.PropertyValue.parse(e,this.options.locale):new a.PropertyValue([],this.options.locale)},t.prototype.getDefaultLabel=function(){return this.getLabel().getValue(this.options.locale)},t.prototype.getMetadata=function(){var e=this.getProperty(`metadata`),t=[];if(!e)return t;for(var n=0;n`):this._value},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"locale",{get:function(){return this._locale===void 0?this._defaultLocale:this._locale},enumerable:!1,configurable:!0}),e.prototype.addValue=function(e){Array.isArray(this._value)||(this._value=[this._value]),Array.isArray(e)?this._value=this._value.concat(e):this._value.push(e)},e}();t.LocalizedValue=o,t.PropertyValue=function(e){function t(n,r){n===void 0&&(n=[]);var i=e.apply(this,n)||this;return i.__proto__=t.prototype,i._defaultLocale=r,i}return i(t,e),t.parse=function(e,n){if(!e)return new t([],n);if(Array.isArray(e)){var r=(i=e.map(function(e){return o.parseV2Value(e,n)}).filter(function(e){return e!==null})).reduce(function(e,t){var n=t._locale;return n||=`none`,e[n]?e[n].addValue(t._value):e[n]=t,e},{});return new t(Object.values(r),n)}return typeof e==`string`?new t([new o(e,void 0,n)],n):e[`@language`]||e[`@value`]?new t((i=o.parseV2Value(e))===null?[]:[i],n):new t(Object.keys(e).map(function(t){var r=e[t];if(!Array.isArray(r))throw Error(`A IIIF v3 localized property value must have an array as the value for a given language.`);return new o(r,t,n)}),n);var i},t.prototype.getSuitableLocale=function(e){for(var t=Array.from(this.values()).map(function(e){return e._locale}).filter(function(e){return e!==void 0}),n=function(e){var n=t.find(function(t){return t===e});if(n)return{value:n}},r=0,i=e;r1&&(p===0&&(d=Number(h[0])),p===this.canvases.length-1&&(f=Number(h[1])))}else{var g=this.getRanges();for(p=0;p=t.start&&e<=t.end)},t.prototype._parseTreeNode=function(e,t){e.label=t.getLabel().getValue(this.options.locale),e.data=t,e.data.type=a.Utils.normaliseType(a.TreeNodeType.RANGE),t.treeNode=e;var n=t.getRanges();if(n&&n.length)for(var r=0;r=0;t--){var n=this.getCanvasByIndex(t).getLabel().getValue(this.options.locale);if(e){if(/^[a-zA-Z0-9]*$/.test(n))return n}else if(n)return n}return this.options.defaultLabel},t.prototype.getLastPageIndex=function(){return this.getTotalCanvases()-1},t.prototype.getNextPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),i=this.getViewingDirection();n=i&&i===a.ViewingDirection.RIGHT_TO_LEFT?r[0]+1:r[r.length-1]+1}else n=e+1;return n>this.getLastPageIndex()?-1:n},t.prototype.getPagedIndices=function(e,t){var n=[];if(t){n=this.isFirstCanvas(e)||this.isLastCanvas(e)?[e]:e%2?[e,e+1]:[e-1,e];var r=this.getViewingDirection();r&&r===a.ViewingDirection.RIGHT_TO_LEFT&&(n=n.reverse())}else n.push(e);return n},t.prototype.getPrevPageIndex=function(e,t){var n;if(t){var r=this.getPagedIndices(e),i=this.getViewingDirection();n=i&&i===a.ViewingDirection.RIGHT_TO_LEFT?r[r.length-1]-1:r[0]-1}else n=e-1;return n},t.prototype.getStartCanvasIndex=function(){var e=this.getStartCanvas();if(e){for(var t=0;tthis.getTotalCanvases()-1},t.prototype.isFirstCanvas=function(e){return e===0},t.prototype.isLastCanvas=function(e){return e===this.getTotalCanvases()-1},t.prototype.isMultiCanvas=function(){return this.getTotalCanvases()>1},t.prototype.isPagingEnabled=function(){var e=this.getViewingHint();return!!e&&e===a.ViewingHint.PAGED},t.prototype.isTotalCanvasesEven=function(){return this.getTotalCanvases()%2==0},t}(o.ManifestResource)},4029(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.Deserialiser=void 0;var r=n(4799);t.Deserialiser=function(){function e(){}return e.parse=function(e,t){return typeof e==`string`&&(e=JSON.parse(e)),this.parseJson(e,t)},e.parseJson=function(e,t){var n;if(t&&t.navDate&&!isNaN(t.navDate.getTime())&&(e.navDate=t.navDate.toString()),e[`@type`])switch(e[`@type`]){case`sc:Collection`:n=this.parseCollection(e,t);break;case`sc:Manifest`:n=this.parseManifest(e,t);break;default:return null}else switch(e.type){case`Collection`:n=this.parseCollection(e,t);break;case`Manifest`:n=this.parseManifest(e,t);break;default:return null}return n.isLoaded=!0,n},e.parseCollection=function(e,t){var n=new r.Collection(e,t);return t?(n.index=t.index||0,t.resource&&(n.parentCollection=t.resource.parentCollection)):n.index=0,this.parseCollections(n,t),this.parseManifests(n,t),this.parseItems(n,t),n},e.parseCollections=function(e,t){var n;if(e.__jsonld.collections?n=e.__jsonld.collections:e.__jsonld.items&&(n=e.__jsonld.items.filter(function(e){return e.type.toLowerCase()===`collection`})),n)for(var r=0;r0&&i[i.length-1])||s[0]!==6&&s[0]!==2)){a=0;continue}if(s[0]===3&&(!i||s[1]>i[0]&&s[1]r})}},t={};function n(r){var i=t[r];if(i!==void 0)return i.exports;var a=t[r]={exports:{}};return e[r].call(a.exports,a,a.exports,n),a.exports}return n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if(typeof globalThis==`object`)return globalThis;try{return this||Function(`return this`)()}catch{if(typeof window==`object`)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,"__esModule",{value:!0})},n(8156)})())})),Ga=Wa(),Ka=Je(z(((e,t)=>{var n=Ba(),r=1/0;function i(e){return e!=null&&e.length?n(e,r):[]}t.exports=i}))(),1),qa=class{constructor(e){this.canvas=e}get id(){return this.canvas.id}getWidth(){return this.canvas.getWidth()}getHeight(){return this.canvas.getHeight()}get aspectRatio(){return this.canvas.getWidth()/this.canvas.getHeight()}get annotationListUris(){return(0,Ha.default)(Array(this.canvas.__jsonld.otherContent)).filter(e=>e&&(typeof e==`string`||e[`@type`]===`sc:AnnotationList`)).map(e=>typeof e==`string`?e:e[`@id`])}get canvasAnnotationPages(){return(0,Ha.default)(Array(this.canvas.__jsonld.annotations)).filter(e=>e&&e.type===`AnnotationPage`)}get imageResource(){return this.imageResources[0]}get imageResources(){let e=(0,Ka.default)([this.canvas.getImages().map(e=>e.getResource()),this.canvas.getContent().map(e=>e.__jsonld.body.type===`Choice`?e.__jsonld.body:e.getBody())]);return(0,Ha.default)(e.map(e=>{switch(e.type||e.getProperty(`type`)){case`Choice`:return new Ga.Canvas({images:e.items.map(e=>({resource:e}))},this.canvas.options).getImages().map((e,t)=>{let n=e.getResource();return n&&(n.preferred=!t),n});case`oa:Choice`:return new Ga.Canvas({images:(0,Ka.default)([e.getProperty(`default`),e.getProperty(`item`)]).map(e=>({resource:e}))},this.canvas.options).getImages().map((e,t)=>{let n=e.getResource();return n&&(n.preferred=!t),n});default:{let t=e;return t.preferred=!0,t}}}))}get textResources(){let e=(0,Ka.default)([this.canvas.getContent().map(e=>e.getBody())]);return(0,Ha.default)(e.filter(e=>e.getProperty(`type`)===`Text`))}get videoResources(){let e=(0,Ka.default)([this.canvas.getContent().map(e=>e.getBody())]);return(0,Ha.default)(e.filter(e=>e.getProperty(`type`)===`Video`))}get audioResources(){let e=(0,Ka.default)([this.canvas.getContent().map(e=>e.getBody())]);return(0,Ha.default)(e.filter(e=>e.getProperty(`type`)===`Sound`))}get v2VttContent(){let e=(0,Ka.default)([this.canvas.getContent().map(e=>e.getBody())]);return(0,Ha.default)(e.filter(e=>e.getProperty(`format`)===`text/vtt`))}get v3VttContent(){let e=(0,Ka.default)(this.canvasAnnotationPages.map(e=>new Ga.AnnotationPage(e,this.canvas.options).getItems().map(e=>new Ga.Annotation(e,this.canvas.options).getBody())));return(0,Ha.default)(e.filter(e=>e.getProperty(`format`)===`text/vtt`))}get resourceAnnotations(){return(0,Ka.default)([this.canvas.getImages(),this.canvas.getContent()])}resourceAnnotation(e){return this.resourceAnnotations.find(t=>t.getResource().id===e||(0,Ha.default)(Array(t.getBody())).some(t=>t.id===e))}onFragment(e){let t=this.resourceAnnotation(e);if(!t)return;let n=t.getProperty(`on`),r=t.getProperty(`target`),i=(n||r).match(/xywh=(.*)$/);if(i)return i[1].split(`,`).map(e=>parseInt(e,10))}get iiifImageResources(){return this.imageResources.filter(e=>e&&qr(e)?.id)}get imageServiceIds(){return this.iiifImageResources.map(e=>e&&qr(e)?.id)}get service(){return this.canvas.__jsonld.service}getLabel(e=void 0){return this.canvas.getLabel().length>0?this.canvas.getLabel().getValue(e):String(this.canvas.index+1)}},Ja=class{constructor(e){this.manifest=e}get startCanvas(){let e,t=this.manifest.getSequences()[0];if(t){if(e=t.getProperty(`startCanvas`),!e){let n=this.manifest.getProperty(`start`)||t.getProperty(`start`);e=n&&(n.id||n.source)}return e&&t.getCanvasById(e)||void 0}}canvasAt(e){let t=this.manifest.getSequences()[0],n=t&&t.getCanvases();return n&&n[e]}},Ya=Br([],(e,t)=>e=>e&&new qa(e)),Xa=Br([],e=>e=>e&&new Ja(e)),Za=z(((e,t)=>{function n(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i{var n=ea();function r(e,t,r,i){return n(e,function(e,n,a){t(i,e,r(e),a)}),i}t.exports=r})),$a=z(((e,t)=>{var n=Za(),r=Qa(),i=Ra(),a=Vt();function o(e,t){return function(o,s){var c=a(o)?n:r,l=t?t():{};return c(o,e,i(s,2),l)}}t.exports=o})),eo=Je(z(((e,t)=>{var n=Gi(),r=$a(),i=Object.prototype.hasOwnProperty;t.exports=r(function(e,t,r){i.call(e,r)?e[r].push(t):n(e,r,[t])})}))(),1),to=Br([Yr,(e,{companionWindowId:t})=>t],(e,t)=>t&&e[t]),no=Br([to],e=>e&&e.locale),ro=Br([Me,Yr],(e,t)=>e&&t[e.thumbnailNavigationId]&&t[e.thumbnailNavigationId].position),io=Br([je,Yr],(e,t)=>(Object.keys(e)||[]).reduce((n,r)=>({...n,[r]:(0,eo.default)(e[r].companionWindowIds,e=>t[e]&&t[e].position)}),{})),ao=Br([je,Yr],(e,t)=>(Object.keys(e)||[]).reduce((n,r)=>({...n,[r]:(0,eo.default)(e[r].companionWindowIds.map(e=>t[e]),e=>e.position)}),{})),oo=Br([(e,{windowId:t})=>t,ao],(e,t)=>t[e]||Ur),so=Br([(e,{windowId:t})=>t,io],(e,t)=>t[e]||Ur),co=Br([oo,(e,{position:t})=>t],(e,t)=>e[t]||Hr),lo=Br([oo,(e,{content:t})=>t],(e,t)=>[].concat(...Object.values(e)).filter(e=>e.content===t)),uo=Br([so,(e,{position:t})=>t],(e,t)=>e[t]||Hr),fo=Br([(e,{position:t})=>t,Me],(e,t)=>{if(!t)return!1;let{companionAreaOpen:n,sideBarOpen:r}=t;return e!==`left`||!!(n&&r)}),po=Br([oo],e=>{let t=0,n=0;return[].concat(...Object.values(e)).forEach(e=>{e.position.match(/right/)&&(t+=235),e.position.match(/bottom/)&&(n+=201)}),{height:n,width:t}}),mo=z(((e,t)=>{var n=function(e){return r(e)&&!i(e)};function r(e){return!!e&&typeof e==`object`}function i(e){var t=Object.prototype.toString.call(e);return t===`[object RegExp]`||t===`[object Date]`||o(e)}var a=typeof Symbol==`function`&&Symbol.for?Symbol.for(`react.element`):60103;function o(e){return e.$$typeof===a}function s(e){return Array.isArray(e)?[]:{}}function c(e,t){return t.clone!==!1&&t.isMergeableObject(e)?g(s(e),e,t):e}function l(e,t,n){return e.concat(t).map(function(e){return c(e,n)})}function u(e,t){if(!t.customMerge)return g;var n=t.customMerge(e);return typeof n==`function`?n:g}function d(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function f(e){return Object.keys(e).concat(d(e))}function p(e,t){try{return t in e}catch{return!1}}function m(e,t){return p(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function h(e,t,n){var r={};return n.isMergeableObject(e)&&f(e).forEach(function(t){r[t]=c(e[t],n)}),f(t).forEach(function(i){m(e,i)||(r[i]=p(e,i)&&n.isMergeableObject(t[i])?u(i,n)(e[i],t[i],n):c(t[i],n))}),r}function g(e,t,r){r||={},r.arrayMerge=r.arrayMerge||l,r.isMergeableObject=r.isMergeableObject||n,r.cloneUnlessOtherwiseSpecified=c;var i=Array.isArray(t);return i===Array.isArray(e)?i?r.arrayMerge(e,t,r):h(e,t,r):c(t,r)}g.all=function(e,t){if(!Array.isArray(e))throw Error(`first argument should be an array`);return e.reduce(function(e,n){return g(e,n,t)},{})},t.exports=g})),ho=Je(mo(),1),go=Br([Xr],({availableLanguages:e,language:t})=>Object.keys(e).map(n=>({current:n===t,label:e[n],locale:n}))),_o=Br([Ne,Xr],(e,t)=>e.showZoomControls===void 0?t.workspace.showZoomControls:e.showZoomControls),vo=Br([Xr],({theme:e,themes:t,selectedTheme:n})=>(0,ho.default)(e,t[n]||{})),yo=Br([Xr],({themes:e})=>Object.keys(e)),bo=Br([Xr],({id:e})=>e),xo=Br([Xr],({theme:e})=>e.direction||`ltr`),So=Br([Xr],({requests:e})=>e||Ur),Co=Br([Xr],({thumbnails:e})=>e||Ur),wo=class e{constructor(e={},{getMiradorCanvas:t,getMiradorManifest:n}){this.iiifOpts=e,this.getMiradorCanvas=t,this.getMiradorManifest=n}static staticImageUrl(e){return{height:e.getProperty(`height`),url:e.id,width:e.getProperty(`width`)}}static getPreferredImage(e){return e.iiifImageResources[0]||e.imageResource}static selectBestImageSize(e,t){let n=Jr(e.getProperty(`sizes`)),r={default:!0,height:e.getProperty(`height`)||2**53-1,width:e.getProperty(`width`)||2**53-1},i=e=>e.width*e.height-t;if(r=n.reduce((e,t)=>{let n=i(t);return n<0?e:Math.abs(n)t*6&&(r=n.reduce((e,t)=>Math.abs(i(t))1&&(i=Math.round(o/u)),u&&u<1&&(r=Math.round(a*u))):o/at.includes(e));return r[0]?r[0]:!n.includes(`jpg`)&&t.includes(`jpg`)?`jpg`:n[0]?n[0]:`jpg`}getSourceContentResource(t){let n=t.getThumbnail();if(n)return typeof n.__jsonld==`string`?n.__jsonld:!t.isCollection()&&!t.isManifest()&&!t.isCanvas()&&t.getType()===`image`&&ti(t)&&!ti(n)?t:n;if(t.isCollection()){let e=t.getManifests()[0];return e?this.getSourceContentResource(e):void 0}if(t.isManifest()){let e=this.getMiradorManifest(t),n=e.startCanvas||e.canvasAt(0);return n?this.getSourceContentResource(n):void 0}if(t.isCanvas()){let n=e.getPreferredImage(this.getMiradorCanvas(t));return n?this.getSourceContentResource(n):void 0}if(t.getType()===`image`)return t}get(e){if(!e)return;let t=this.getSourceContentResource(e);if(t)return typeof t==`string`?{url:t}:this.iiifThumbnailUrl(t)}},To=Br([Co,(e,t,n)=>t,(e,t,n)=>n],(e,t,n)=>({maxHeight:t,maxWidth:n,preferredFormats:e.preferredFormats})),Eo=Br([To,Ya,Xa],(e,t,n)=>new wo(e,{getMiradorCanvas:t,getMiradorManifest:n})),Do=Br([no,Xr,(e,{locale:t})=>t],(e,t={},n)=>n||e||t.language||t.fallbackLanguages),Oo=Object.freeze({missing:!0}),ko=Br([Fe],e=>e||Oo),Ao=Br([Fe],e=>e&&e.error),jo=Br(Fe,e=>e&&ri(e.json)),Mo=Br(jo,(e,{json:t})=>t,(e,t)=>t&&ri(t)||e),No=Br([Mo,Do],(e,t)=>t??(e&&e.options&&e.options.locale&&e.options.locale.replace(/-.*$/,``))),Po=Br([ii(`provider`),No],(e,t)=>e&&e[0].label&&Ga.PropertyValue.parse(e[0].label).getValue(t)),Fo=Object.freeze({}),Io=Br([ii(`provider`),e=>Eo(e,Fo)],(e,t)=>{let n=e&&e[0]&&e[0].logo&&e[0].logo[0];return n?t.get(new Ga.Resource(n))?.url:null}),Lo=Br([Mo,Io],(e,t)=>t||e&&e.getLogo()),Ro=Br([ii(`homepage`),No],(e,t)=>e&&Jr(e).map(e=>({label:Ga.PropertyValue.parse(e.label).getValue(t),value:e.id||e[`@id`]}))),zo=Br([Mo,No],(e,t)=>e&&e.getRenderings().map(e=>({label:e.getLabel().getValue(t),value:e.id}))),Bo=Br([ii(`seeAlso`),No],(e,t)=>e&&Jr(e).map(e=>({format:e.format,label:Ga.PropertyValue.parse(e.label).getValue(t),value:e.id||e[`@id`]}))),Vo=Bo,Ho=Br([ii(`related`),No],(e,t)=>e&&Jr(e).map(e=>typeof e==`string`?{value:e}:{format:e.format,label:Ga.PropertyValue.parse(e.label).getValue(t),value:e.id||e[`@id`]})),Uo=Br([Mo],e=>e&&Jr(e.getRequiredStatement()).flatMap(e=>{let t=e?.getValues()??[];if(!t.length)return[];let n=e?.getLabels()??[];return Array.from({length:Math.max(n.length,t.length)},(e,t)=>t).filter(e=>t[e]).map(e=>({label:n[e]??null,values:[t[e]]}))})),Wo=Br([ii(`rights`),ii(`license`),No],(e,t,n)=>{let r=e||t;return Jr(Ga.PropertyValue.parse(r).getValues(n))}),Go=Br([Mo,No],(e,t)=>e&&e.getLabel().getValue(t)),Ko=Br([Do,Mo],(e,t)=>t&&t.getDescription().getValue(e)),qo=Br([ii(`summary`),No],(e,t)=>e&&Ga.PropertyValue.parse(e).getValue(t)),Jo=Br([Mo],e=>e&&e.id),Yo=Br([Mo,No],(e,t)=>e&&oi(e,t)),Xo=Br([Mo],e=>ci(e)),Zo=Br([Mo],e=>e&&(e.getService(`http://iiif.io/api/search/0/search`)||e.getService(`http://iiif.io/api/search/1/search`))||null),Qo=Br([Zo],e=>{let t=e&&(e.getService(`http://iiif.io/api/search/0/autocomplete`)||e.getService(`http://iiif.io/api/search/1/autocomplete`));return t&&t}),$o=Br([Mo],e=>{if(!e||!e.getTopRanges)return null;let t=e.getTopRanges(),n=t.filter(e=>e.getProperty(`viewingHint`)===`top`),r=[];return n.length===0&&t.length===1&&(r=t[0].getRanges().filter(e=>e.getBehavior()===`sequence`)),[].concat(e.getSequences(),r)}),es=Br([$o,Me,(e,{sequenceId:t})=>t],(e,t,n)=>{if(!e)return null;if(n||t&&t.sequenceId){let r=e.find(e=>e.id===(n||t.sequenceId));if(r)return r}return e[0]}),ts=Br([Me,es],(e,t)=>(t&&e&&e.canvasId&&t.getCanvasById(e.canvasId)||{}).index||0),ns=Br([es,Mo],(e,t)=>t&&(e&&e.getViewingHint()||t.getViewingHint())||null),rs=Br([Me,es,Mo],(e,t,n)=>e&&e.viewingDirection||t&&t.getViewingDirection()||n&&n.getViewingDirection()||null),is=Br([es,Mo],(e,t)=>{if(!t||!e)return[];let n=e&&e.getProperty(`behavior`);if(n)return Array.isArray(n)?n:[n];let r=t.getProperty(`behavior`);return r?Array.isArray(r)?r:[r]:[]}),as=Br([es,Mo],(e,t)=>e&&e.getProperty(`type`)&&e.isRange()?e.getTree(new Ga.TreeNode(`root`)):t&&t.getDefaultTree()),os=Br([Ne],e=>e.isFullscreenEnabled),ss=Br([Ne],({type:e})=>e),cs=Br([Ne],({focusedWindowId:e})=>e),ls=(e,{windowId:t})=>cs(e)===t,us=Br([Xr,Me],({window:e},t={})=>({...e,...t})),ds=Br([je],e=>Object.values(e).filter(e=>e.maximized===!0).map(e=>e.id)),fs=Br([Me,us,ns,is],(e,{views:t=[],defaultView:n},r,i)=>{if(e&&e.view)return e.view;let a=(t||[]).find(e=>e.behaviors&&e.behaviors.some(e=>r===e||i.includes(e)));return a&&a.key||n}),ps=Br([ns,is,us],(e,t,{views:n=[],defaultView:r})=>(n||[]).reduce((n,i)=>((i.key===r||!i.behaviors||i.behaviors.some(n=>e===n||t.includes(n)))&&n.push(i.key),n),[])),ms=Br([ss,Me,e=>Gr(e).length>1],(e,t,n)=>e===`elastic`||n&&t&&t.maximized===!1),hs=e=>ke(e).infoResponses,gs=Br([es],e=>e&&e.getCanvases()||Hr),_s=Br([es,(e,{canvasId:t})=>t],(e,t)=>{if(!(!e||!t))return e.getCanvasById(t)}),vs=Br([es,Me],(e,t)=>{if(!(!e||!t))return t.canvasId?e.getCanvasById(t.canvasId):e.getCanvasByIndex(0)}),ys=Br([Me],e=>e&&(e.visibleCanvases||e.canvasId&&[e.canvasId])||Hr),bs=Br([ys,gs],(e,t)=>(t||[]).filter(t=>e.includes(t.id))),xs=Br([gs,fs],(e,t)=>e&&new Ua(e,t).groupings()),Ss=Br([xs,(e,{canvasId:t})=>t],(e,t)=>e&&e.find(e=>e.some(e=>e.id===t))||Hr),Cs=Br([xs,vs],(e,t,n)=>{if(!e||!t)return;let r=e.findIndex(e=>e.some(e=>e.id===t.id));if(!(r<0||r+1>=e.length))return e[r+1]}),ws=Br([xs,vs],(e,t,n)=>{if(!e||!t)return;let r=e.findIndex(e=>e.some(e=>e.id===t.id));if(!(r<1))return e[r-1]}),Ts=Br([_s,No],(e,t)=>e&&(e.getLabel().length>0?e.getLabel().getValue(t):String(e.index+1))),Es=Br([_s,No],(e,t)=>e&&oi(e,t)),Ds=Br([_s],e=>e&&e.getProperty(`description`)),Os=Br([bs,Ya],(e,t)=>(0,Ha.default)(e.map(e=>t(e).imageResources)).filter(e=>!qr(e))),ks=Br([bs,Ya],(e,t)=>(0,Ha.default)(e.map(e=>t(e).textResources))),As=Br([bs,Ya],(e,t)=>(0,Ha.default)(e.map(e=>t(e).videoResources))),js=Br([bs,Ya],(e,t)=>(0,Ha.default)(e.map(e=>{let n=t(e);return n.v3VttContent.length?n.v3VttContent:n.v2VttContent}))),Ms=Br([bs,Ya],(e,t)=>(0,Ha.default)(e.map(e=>t(e).audioResources))),Ns=Br([(e,{infoId:t})=>t,_s,Ya,hs],(e,t,n,r)=>{let i=e;if(!e){if(!t)return;let e=n(t).iiifImageResources[0];i=e&&qr(e)?.id}return i&&r[i]&&!r[i].isFetching&&r[i]})})),B,Fs=o((()=>{B={ADD_COMPANION_WINDOW:`mirador/ADD_COMPANION_WINDOW`,UPDATE_COMPANION_WINDOW:`mirador/UPDATE_COMPANION_WINDOW`,REMOVE_COMPANION_WINDOW:`mirador/REMOVE_COMPANION_WINDOW`,TOGGLE_TOC_NODE:`mirador/TOGGLE_TOC_NODE`,UPDATE_WINDOW:`mirador/UPDATE_WINDOW`,REQUEST_CANVAS_ANNOTATIONS:`mirador/REQUEST_CANVAS_ANNOTATIONS`,HOVER_ANNOTATION:`mirador/HOVER_ANNOTATION`,REQUEST_ANNOTATION:`mirador/REQUEST_ANNOTATION`,RECEIVE_ANNOTATION:`mirador/RECEIVE_ANNOTATION`,RECEIVE_ANNOTATION_FAILURE:`mirador/RECEIVE_ANNOTATION_FAILURE`,DESELECT_ANNOTATION:`mirador/DESELECT_ANNOTATION`,SELECT_ANNOTATION:`mirador/SELECT_ANNOTATION`,TOGGLE_ANNOTATION_DISPLAY:`mirador/TOGGLE_ANNOTATION_DISPLAY`,FOCUS_WINDOW:`mirador/FOCUS_WINDOW`,SET_WORKSPACE_FULLSCREEN:`mirador/SET_WORKSPACE_FULLSCREEN`,SET_WORKSPACE_VIEWPORT_POSITION:`mirador/SET_WORKSPACE_VIEWPORT_POSITION`,ADD_MANIFEST:`mirador/ADD_MANIFEST`,ADD_WINDOW:`mirador/ADD_WINDOW`,ADD_ERROR:`mirador/ADD_ERROR`,IMPORT_CONFIG:`mirador/IMPORT_CONFIG`,IMPORT_MIRADOR_STATE:`mirador/IMPORT_MIRADOR_STATE`,SET_CANVAS:`mirador/SET_CANVAS`,MAXIMIZE_WINDOW:`mirador/MAXIMIZE_WINDOW`,MINIMIZE_WINDOW:`mirador/MINIMIZE_WINDOW`,UPDATE_WINDOW_POSITION:`mirador/UPDATE_WINDOW_POSITION`,SET_WINDOW_SIZE:`mirador/SET_WINDOW_SIZE`,REMOVE_WINDOW:`mirador/REMOVE_WINDOW`,PICK_WINDOWING_SYSTEM:`mirador/PICK_WINDOWING_SYSTEM`,REQUEST_MANIFEST:`mirador/REQUEST_MANIFEST`,RECEIVE_MANIFEST:`mirador/RECEIVE_MANIFEST`,RECEIVE_MANIFEST_FAILURE:`mirador/RECEIVE_MANIFEST_FAILURE`,REMOVE_ERROR:`mirador/REMOVE_ERROR`,SET_CONFIG:`mirador/SET_CONFIG`,UPDATE_WORKSPACE:`mirador/UPDATE_WORKSPACE`,SET_WINDOW_THUMBNAIL_POSITION:`mirador/SET_WINDOW_THUMBNAIL_POSITION`,SET_WINDOW_VIEW_TYPE:`mirador/SET_WINDOW_VIEW_TYPE`,SET_WORKSPACE_ADD_VISIBILITY:`mirador/SET_WORKSPACE_ADD_VISIBILITY`,TOGGLE_WINDOW_SIDE_BAR:`mirador/TOGGLE_WINDOW_SIDE_BAR`,TOGGLE_DRAGGING:`mirador/TOGGLE_DRAGGING`,TOGGLE_ZOOM_CONTROLS:`mirador/TOGGLE_ZOOM_CONTROLS`,UPDATE_CONFIG:`mirador/UPDATE_CONFIG`,REMOVE_MANIFEST:`mirador/REMOVE_MANIFEST`,REQUEST_INFO_RESPONSE:`mirador/REQUEST_INFO_RESPONSE`,RECEIVE_INFO_RESPONSE:`mirador/RECEIVE_INFO_RESPONSE`,RECEIVE_DEGRADED_INFO_RESPONSE:`mirador/RECEIVE_DEGRADED_INFO_RESPONSE`,RECEIVE_INFO_RESPONSE_FAILURE:`mirador/RECEIVE_INFO_RESPONSE_FAILURE`,REMOVE_INFO_RESPONSE:`mirador/REMOVE_INFO_RESPONSE`,UPDATE_WORKSPACE_MOSAIC_LAYOUT:`mirador/UPDATE_WORKSPACE_MOSAIC_LAYOUT`,UPDATE_VIEWPORT:`mirador/UPDATE_VIEWPORT`,UPDATE_ELASTIC_WINDOW_LAYOUT:`mirador/UPDATE_ELASTIC_WINDOW_LAYOUT`,ADD_AUTHENTICATION_REQUEST:`mirador/ADD_AUTHENTICATION_REQUEST`,RESOLVE_AUTHENTICATION_REQUEST:`mirador/RESOLVE_AUTHENTICATION_REQUEST`,REQUEST_ACCESS_TOKEN:`mirador/REQUEST_ACCESS_TOKEN`,RECEIVE_ACCESS_TOKEN:`mirador/RECEIVE_ACCESS_TOKEN`,RECEIVE_ACCESS_TOKEN_FAILURE:`mirador/RECEIVE_ACCESS_TOKEN_FAILURE`,RESET_AUTHENTICATION_STATE:`mirador/RESET_AUTHENTICATION_STATE`,CLEAR_ACCESS_TOKEN_QUEUE:`mirador/CLEAR_ACCESS_TOKEN_QUEUE`,REQUEST_SEARCH:`mirador/REQUEST_SEARCH`,RECEIVE_SEARCH:`mirador/RECEIVE_SEARCH`,RECEIVE_SEARCH_FAILURE:`mirador/RECEIVE_SEARCH_FAILURE`,REMOVE_SEARCH:`mirador/REMOVE_SEARCH`,SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS:`mirador/SET_CONTENT_SEARCH_CURRENT_ANNOTATIONS`,UPDATE_LAYERS:`mirador/UPDATE_LAYERS`,ADD_RESOURCE:`mirador/ADD_RESOURCE`,REMOVE_RESOURCE:`mirador/REMOVE_RESOURCE`,SHOW_COLLECTION_DIALOG:`mirador/SHOW_COLLECTION_DIALOG`,HIDE_COLLECTION_DIALOG:`mirador/HIDE_COLLECTION_DIALOG`}}));function Is(e,t){if(!e||!e.resources||e.length===0||!t||t.length===0)return Hr;let n=t.map(e=>e.id);return[].concat(e.resources).sort((e,t)=>n.indexOf(e.targetId)-n.indexOf(t.targetId))}function Ls(e,t){return{canvasId:t,type:B.REQUEST_CANVAS_ANNOTATIONS,windowId:e}}function Rs(e,t){return{annotationId:t,targetId:e,type:B.REQUEST_ANNOTATION}}function zs(e,t,n){return{annotationId:t,annotationJson:n,targetId:e,type:B.RECEIVE_ANNOTATION}}function Bs(e,t,n){return{annotationId:t,error:n,targetId:e,type:B.RECEIVE_ANNOTATION_FAILURE}}function Vs(e,t){return{annotationId:t,type:B.SELECT_ANNOTATION,windowId:e}}function Hs(e,t){return{annotationId:t,type:B.DESELECT_ANNOTATION,windowId:e}}function Us(e){return{type:B.TOGGLE_ANNOTATION_DISPLAY,windowId:e}}function Ws(e,t){return{annotationIds:t,type:B.HOVER_ANNOTATION,windowId:e}}var Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc=o((()=>{Kr(),Ps(),Fs(),Gs=u(p(),1),Ks=z(((e,t)=>{var n=ea();function r(e,t){var r=[];return n(e,function(e,n,i){t(e,n,i)&&r.push(e)}),r}t.exports=r})),qs=z(((e,t)=>{var n=Ki(),r=Ks(),i=Ra(),a=Vt();function o(e,t){return(a(e)?n:r)(e,i(t,3))}t.exports=o})),Js=z(((e,t)=>{function n(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++te.chars):this.resources.filter(e=>e[`@type`]===`oa:Tag`).map(e=>e.chars)}get chars(){return this.resources.filter(e=>e[`@type`]!==`oa:Tag`).map(e=>e.chars).join(` `)}get selector(){let e=this.on[0];switch(typeof e){case`string`:return e;case`object`:return e.selector[`@type`]===`oa:Choice`?e.selector.default:e.selector;default:return null}}get svgSelector(){let e=this.on[0];switch(typeof e){case`string`:return null;case`object`:return e.selector&&e.selector.item&&e.selector.item[`@type`]===`oa:SvgSelector`?e.selector.item:null;default:return null}}get fragmentSelector(){let{selector:e}=this,t;switch(typeof e){case`string`:t=e.match(/xywh=(.*)$/);break;case`object`:t=e.value.match(/xywh=(.*)$/);break;default:return null}return t&&t[1].split(`,`).map(e=>parseInt(e,10))}},$s=class{constructor(e,t){this.json=e,this.target=t}get id(){return this.json[`@id`]}present(){return this.resources&&this.resources.length>0}get resources(){return this._resources=this._resources||(!this.json||!this.json.resources?[]:(0,Zs.default)([this.json.resources]).map(e=>new Qs(e))),this._resources}},ec=class{constructor(e={}){this.resource=e}isOnlyTag(){return this.motivations.length===1&&this.motivations[0]===`tagging`}get id(){return this._id=this._id||this.resource.id||be(),this._id}get targetId(){let e=this.target[0];switch(typeof e){case`string`:return e.replace(/#?xywh=(.*)$/,``);case`object`:return e.source&&e.source.id||e.source||e.id;default:return null}}get motivations(){return(0,Zs.default)((0,Xs.default)(Array(this.resource.motivation)))}get body(){return(0,Zs.default)((0,Xs.default)(Array(this.resource.body)))}get resources(){return this.body}get tags(){return this.isOnlyTag()?this.body.map(e=>e.value):this.body.filter(e=>e.purpose===`tagging`).map(e=>e.value)}get target(){return(0,Zs.default)((0,Xs.default)(Array(this.resource.target)))}get chars(){return this.isOnlyTag()?null:this.body.filter(e=>e.purpose!==`tagging`).map(e=>e.value).join(` `)}get selector(){let e=this.target[0];switch(typeof e){case`string`:return e;case`object`:return(0,Zs.default)((0,Xs.default)(Array(e.selector)));default:return null}}get svgSelector(){let{selector:e}=this;switch(typeof e){case`string`:return null;case`object`:return e.find(e=>e.type&&e.type===`SvgSelector`);default:return null}}get fragmentSelector(){let{selector:e}=this,t,n;switch(typeof e){case`string`:t=e.match(/xywh=(.*)$/);break;case`object`:n=e.find(e=>e.type&&e.type===`FragmentSelector`),t=n&&n.value.match(/xywh=(.*)$/);break;default:return null}return t&&t[1].split(`,`).map(e=>parseInt(e,10))}},tc=class{constructor(e,t){this.json=e,this.target=t}get id(){return this.json.id}present(){return this.items&&this.items.length>0}get items(){return this._items=this._items||(!this.json||!this.json.items?[]:(0,Zs.default)([this.json.items]).map(e=>new ec(e))),this._items}get resources(){return this.items}},nc=class{static determineAnnotation(e,t){return e?e.type===`AnnotationPage`?new tc(e,t):new $s(e,t):null}},rc=e=>ke(e).annotations,ic=Br([Xr,(e,{motivations:t})=>t],(e,t)=>t||e.annotations.filteredMotivations),ac=Br([_s,rc],(e,t)=>!t||!e||!t[e.id]?[]:(0,Zs.default)(Object.values(t[e.id]))),oc=Br([ac],e=>(0,Ys.default)(Object.values(e).map(e=>e&&nc.determineAnnotation(e.json)),e=>e&&e.present())),sc=Br([(e,{canvasId:t,...n})=>t?[t]:ys(e,n),rc],(e,t)=>!t||e.length===0?[]:(0,Zs.default)(e.map(e=>t[e]&&Object.values(t[e])))),cc=Br([sc],e=>(0,Ys.default)(Object.values(e).map(e=>e&&nc.determineAnnotation(e.json)),e=>e&&e.present())),lc=Br([oc,ic],(e,t)=>{let n=(0,Zs.default)(e.map(e=>e.resources));return!t||t.length===0?n:n.filter(e=>e.motivations.some(e=>t.includes(e)))}),uc=Br([lc],e=>e.map(e=>({content:e.chars,id:e.id,tags:e.tags,targetId:e.targetId}))),dc=Br([cc,ic],(e,t)=>{let n=(0,Zs.default)(e.map(e=>e.resources));return!t||t.length===0?n:n.filter(e=>e.motivations.some(e=>t.includes(e)))}),fc=Br([Me],({selectedAnnotationId:e})=>e),pc=Br([cc,fc],(e,t)=>e.map(e=>({id:e[`@id`]||e.id,resources:e.resources.filter(e=>t===e.id)})).filter(e=>e.resources.length>0)),mc=Wa(),hc=Br([(e,{windowId:t})=>t,e=>ke(e).searches],(e,t)=>!e||!t?Ur:t[e]),gc=Br([hc,(e,{companionWindowId:t})=>t],(e,t)=>{if(!(!e||!t))return e[t]}),_c=Br([gc],e=>e?Object.values(e.data):Hr),vc=Br([gc],e=>e&&e.query),yc=Br([_c],e=>e.some(e=>e.isFetching)),bc=Br([gc],e=>{if(!(!e||!e.data))return Object.values(e.data).find(e=>!e.isFetching&&e.json&&e.json.within)?.json?.within?.total}),xc=Br([gc],e=>{if(!e||!e.data)return;let t=Object.values(e.data).find(t=>!t.isFetching&&t.json&&t.json.next&&!e.data[t.json.next]);return t&&t.json&&t.json.next}),Sc=Br([_c],e=>(0,Zs.default)(e.map(e=>!e||!e.json||e.isFetching||!e.json.hits?Hr:e.json.hits))),Cc=Br([_c],e=>e&&Tc(e)),wc=Br([Sc,gs,Cc],(e,t,n)=>{if(!t||t.length===0||!e||e.length===0)return Hr;let r=t.map(e=>e.id);return[].concat(e).sort((e,t)=>{let i=n.resources.find(t=>t.id===e.annotations[0]),a=n.resources.find(e=>e.id===t.annotations[0]);return r.indexOf(i.targetId)-r.indexOf(a.targetId)})}),Tc=e=>{let t=e.map(e=>{if(!e||!e.json||e.isFetching||!e.json.resources)return;let t=new $s(e.json);return{id:t.id,resources:t.resources}}).filter(Boolean);return{id:(t.find(e=>e.id)||{}).id,resources:(0,Zs.default)(t.map(e=>e.resources))}},Ec=Br([Cc,gs],(e,t)=>Is(e,t)),Dc=Br([hc],e=>e?Object.values(e).map(e=>Object.values(e.data)).map(e=>Tc(e)).filter(e=>e.resources.length>0):Hr),Oc=Br([Me,gc],(e,t)=>t&&t.selectedContentSearchAnnotationIds||[]),kc=Br([Cc,(e,{annotationUri:t})=>t],(e,t)=>e.resources.find(e=>e.id===t)),Ac=Br([kc,No],(e,t)=>e&&e.resource&&e.resource.label?mc.PropertyValue.parse(e.resource.label).getValues(t):Hr),jc=Br([Dc,(e,{annotationId:t})=>t],(e,t)=>(0,Zs.default)(e.map(e=>e.resources)).find(e=>e.id===t)),Mc=Br([jc,(e,{windowId:t})=>n=>_s(e,{canvasId:n,windowId:t})],(e,t)=>{let n=e&&e.targetId;return n&&t(n)}),Nc=(0,Gs.createContext)({fallbackImage:``,hasFailed:!1,notifyFailure:()=>{}})}));function Fc(e,t){if(t={defaultProtocol:`http`,normalizeProtocol:!0,forceHttp:!1,forceHttps:!1,stripAuthentication:!0,stripHash:!1,stripTextFragment:!0,stripWWW:!0,removeQueryParameters:[/^utm_\w+/i],removeTrailingSlash:!0,removeSingleSlash:!0,removeDirectoryIndex:!1,removeExplicitPort:!1,sortQueryParameters:!0,removePath:!1,transformPath:!1,emptyQueryValue:`preserve`,...t},typeof t.defaultProtocol==`string`&&!t.defaultProtocol.endsWith(`:`)&&(t.defaultProtocol=`${t.defaultProtocol}:`),e=e.trim(),/^data:/i.test(e))return fl(e,t);let n=Array.isArray(t.customProtocols)?t.customProtocols:[],r=new Set(n.map(e=>il(e)).filter(Boolean)),i=al(e);if(i&&!r.has(i))return e;let a=e.startsWith(`//`);!(!a&&/^\.*\//.test(e))&&!i&&(e=e.replace(/^(?!(?:\w+:)?\/\/)|^\/\//,t.defaultProtocol));let o=new URL(e);if(t.forceHttp&&t.forceHttps)throw Error("The `forceHttp` and `forceHttps` options cannot be used together");if(t.forceHttp&&o.protocol===`https:`&&(o.protocol=`http:`),t.forceHttps&&o.protocol===`http:`&&(o.protocol=`https:`),t.stripAuthentication&&(o.username=``,o.password=``),t.stripHash?o.hash=``:t.stripTextFragment&&(o.hash=o.hash.replace(/#?:~:text.*?$/i,``)),o.pathname){let e=/\b[a-z][a-z\d+\-.]{1,50}:\/\//g,t=0,n=``;for(;;){let r=e.exec(o.pathname);if(!r)break;let i=r[0],a=r.index,s=o.pathname.slice(t,a);n+=s.replaceAll(/\/{2,}/g,`/`),n+=i,t=a+i.length}let r=o.pathname.slice(t);n+=r.replaceAll(/\/{2,}/g,`/`),o.pathname=n}if(o.pathname)try{o.pathname=decodeURI(o.pathname).replaceAll(`\\`,`%5C`)}catch{}if(t.removeDirectoryIndex===!0&&(t.removeDirectoryIndex=[/^index\.[a-z]+$/]),Array.isArray(t.removeDirectoryIndex)&&t.removeDirectoryIndex.length>0){let e=o.pathname.split(`/`).filter(Boolean),n=e.at(-1);n&&nl(n,t.removeDirectoryIndex)&&(e.pop(),o.pathname=e.length>0?`/${e.join(`/`)}/`:`/`)}if(t.removePath&&(o.pathname=`/`),t.transformPath&&typeof t.transformPath==`function`){let e=o.pathname.split(`/`).filter(Boolean),n=t.transformPath(e);o.pathname=n?.length>0?`/${n.join(`/`)}`:`/`}o.hostname&&(o.hostname=o.hostname.replace(/\.$/,``),t.stripWWW&&/^www\.(?!www\.)[a-z\-\d]{1,63}\.[a-z.\-\d]{2,63}$/.test(o.hostname)&&(o.hostname=o.hostname.replace(/^www\./,``)));let s=o.search,c;if(t.sortQueryParameters&&el.test(s)){let e=cl(s);o.search=s.replaceAll(tl,t=>`${e}${t.slice(1).toUpperCase()}`),c=RegExp(`${e}([0-9A-F]{2})`,`g`)}let l=Array.isArray(t.keepQueryParameters),{searchParams:u}=o;if(!l&&Array.isArray(t.removeQueryParameters)&&t.removeQueryParameters.length>0)for(let e of[...u.keys()])nl(ul(e,c),t.removeQueryParameters)&&u.delete(e);if(!l&&t.removeQueryParameters===!0&&(o.search=``),l&&t.keepQueryParameters.length>0)for(let e of[...u.keys()])nl(ul(e,c),t.keepQueryParameters)||u.delete(e);else l&&(o.search=``);t.sortQueryParameters&&(o.search=ll(o.searchParams,c),o.search=decodeURIComponent(o.search.replaceAll(/%(?:26|23|3f|25|2b)/gi,e=>`%25${e.slice(1)}`)),c&&(o.search=o.search.replace(c,`%$1`))),o.search=dl(o.search,t.emptyQueryValue,s),t.removeTrailingSlash&&(o.pathname=o.pathname.replace(/\/$/,``)),t.removeExplicitPort&&o.port&&(o.port=``);let d=e;return e=o.toString(),!t.removeSingleSlash&&o.pathname===`/`&&!d.endsWith(`/`)&&o.hash===``&&(e=e.replace(/\/$/,``)),(t.removeTrailingSlash||o.pathname===`/`)&&o.hash===``&&t.removeSingleSlash&&(e=e.replace(/\/$/,``)),a&&!t.normalizeProtocol&&(e=e.replace(/^http:\/\//,`//`)),t.stripProtocol&&(e=e.replace(/^(?:https?:)?\/\//,``)),e}function Ic(e,t,n,r){var i=this,a=(0,Lc.useRef)(null),o=(0,Lc.useRef)(0),s=(0,Lc.useRef)(0),c=(0,Lc.useRef)(null),l=(0,Lc.useRef)([]),u=(0,Lc.useRef)(),d=(0,Lc.useRef)(),f=(0,Lc.useRef)(e),p=(0,Lc.useRef)(!0),m=(0,Lc.useRef)(),h=(0,Lc.useRef)();f.current=e;var g=typeof window<`u`,_=!t&&t!==0&&g;if(typeof e!=`function`)throw TypeError(`Expected a function`);t=+t||0;var v=!!(n||={}).leading,y=!(`trailing`in n)||!!n.trailing,b=!!n.flushOnExit&&y,x=`maxWait`in n,S=`debounceOnServer`in n&&!!n.debounceOnServer,C=x?Math.max(+n.maxWait||0,t):null,w=(0,Lc.useMemo)(function(){var e=function(e){var t=l.current,n=u.current;return l.current=u.current=null,o.current=e,s.current=s.current||e,d.current=f.current.apply(n,t)},n=function(e,t){_&&cancelAnimationFrame(c.current),c.current=_?requestAnimationFrame(e):setTimeout(e,t)},w=function(e){if(!p.current)return!1;var n=e-a.current;return!a.current||n>=t||n<0||x&&e-o.current>=C},T=function(t){return c.current=null,y&&l.current?e(t):(l.current=u.current=null,d.current)},E=function e(){var r=Date.now();if(v&&s.current===o.current&&D(),w(r))return T(r);if(p.current){var i=t-(r-a.current);n(e,x?Math.min(i,C-(r-o.current)):i)}},D=function(){r&&r({})},O=function(){if(g||S){var r,s=Date.now(),f=w(s);if(l.current=[].slice.call(arguments),u.current=i,a.current=s,b&&!m.current&&(m.current=function(){globalThis.document?.visibilityState===`hidden`&&h.current.flush()},(r=globalThis.document)==null||r.addEventListener==null||r.addEventListener(`visibilitychange`,m.current)),f){if(!c.current&&p.current)return o.current=a.current,n(E,t),v?e(a.current):d.current;if(x)return n(E,t),e(a.current)}return c.current||n(E,t),d.current}};return O.cancel=function(){var e=c.current;e&&(_?cancelAnimationFrame(c.current):clearTimeout(c.current)),o.current=0,l.current=a.current=u.current=c.current=null,e&&r&&r({})},O.isPending=function(){return!!c.current},O.flush=function(){return c.current?T(Date.now()):d.current},O},[v,x,t,C,y,b,_,g,S,r]);return h.current=w,(0,Lc.useEffect)(function(){return p.current=!0,function(){var e;b&&h.current.flush(),m.current&&=((e=globalThis.document)==null||e.removeEventListener==null||e.removeEventListener(`visibilitychange`,m.current),null),p.current=!1}},[b]),w}var Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc,Kc,qc,V,Jc,Yc,Xc,Zc,Qc,$c,el,tl,nl,rl,il,al,ol,sl,cl,ll,ul,dl,fl,pl,ml=o((()=>{Kr(),Ps(),Lc=u(p(),1),Rc=z(((e,t)=>{var n=vn(),r=Math.max;function i(e,t,i){return t=r(t===void 0?e.length-1:t,0),function(){for(var a=arguments,o=-1,s=r(a.length-t,0),c=Array(s);++o{var n=cn(),r=Rc(),i=zn();function a(e,t){return i(r(e,t,n),e+``)}t.exports=a})),Bc=z(((e,t)=>{function n(e,t,n){for(var r=-1,i=e==null?0:e.length;++r{var n=hr(),r=wn(),i=ha();t.exports=n&&1/i(new n([,-0]))[1]==1/0?function(e){return new n(e)}:r})),Hc=z(((e,t)=>{var n=la(),r=Gn(),i=Bc(),a=da(),o=Vc(),s=ha(),c=200;function l(e,t,l){var u=-1,d=r,f=e.length,p=!0,m=[],h=m;if(l)p=!1,d=i;else if(f>=c){var g=t?null:o(e);if(g)return s(g);p=!1,d=a,h=new n}else h=t?[]:m;outer:for(;++u{var n=br(),r=Jt();function i(e){return r(e)&&n(e)}t.exports=i})),Wc=z(((e,t)=>{var n=la(),r=Gn(),i=Bc(),a=zi(),o=wr(),s=da(),c=200;function l(e,t,l,u){var d=-1,f=r,p=!0,m=e.length,h=[],g=t.length;if(!m)return h;l&&(t=a(t,o(l))),u?(f=i,p=!1):t.length>=c&&(f=s,p=!1,t=new n(t));outer:for(;++de?t(e).imageResources:[]),Kc=Br([e=>ke(e).layers,(e,{windowId:t})=>t],(e,t)=>e&&e[t]||Hr),qc=Br([Kc,(e,{canvasId:t})=>t],(e,t)=>e[t]),V=Br([Gc,qc],(e,t)=>t?e.sort((e,n)=>t[e.id]&&t[e.id].index!==void 0&&t[n.id]&&t[n.id].index!==void 0?t[e.id].index-t[n.id].index:t[e.id]&&t[e.id].index!==void 0?-1:t[n.id]&&t[n.id].index!==void 0?1:0):e),Jc=Br([ys,Kc],(e,t)=>e.reduce((e,n)=>(e[n]=t[n],e),{})),Yc=`text/plain`,Xc=`us-ascii`,Zc=`%(?:3A|2F|3F|23|5B|5D|40|21|24|26|27|28|29|2A|2B|2C|3B|3D)`,Qc=`__normalize_url_encoded_reserved__`,$c=/__normalize_url_encoded_reserved__(\d+)__/g,el=new RegExp(Zc,`i`),tl=new RegExp(Zc,`gi`),nl=(e,t)=>Array.isArray(t)&&t.some(t=>t instanceof RegExp?t.flags.includes(`g`)||t.flags.includes(`y`)?new RegExp(t.source,t.flags.replaceAll(/[gy]/g,``)).test(e):t.test(e):t===e),rl=new Set([`https:`,`http:`,`file:`]),il=e=>{if(typeof e!=`string`)return;let t=e.trim().toLowerCase().replace(/:$/,``);return t===``?void 0:`${t}:`},al=e=>{try{let{protocol:t}=new URL(e),n=e.slice(0,t.length+2).toLowerCase()===`${t}//`;if(t===`localhost:`&&!n&&/^\d{1,5}([/?#]|$)/.test(e.slice(t.length)))return;if(t.endsWith(`:`)&&(!t.includes(`.`)||n)&&!rl.has(t))return t}catch{}},ol=e=>{try{return decodeURIComponent(e.replaceAll(`+`,`%20`))}catch{return new URLSearchParams(`${e}=`).keys().next().value}},sl=e=>{let t=new Set;if(!e)return t;for(let n of e.slice(1).split(`&`))n&&!n.includes(`=`)&&t.add(ol(n));return t},cl=e=>{let t=e;try{t=decodeURIComponent(e)}catch{t=new URLSearchParams(e).toString()}let n=e=>{let t=new Set;for(let n of e.matchAll($c))t.add(Number.parseInt(n[1],10));return t},r=n(e);for(let e of n(t))r.add(e);let i=0;for(;r.has(i);)i++;return`${Qc}${i}__`},ll=(e,t)=>{if(!t)return e.sort(),e.toString();let n=e=>e.replace(t,(e,t)=>String.fromCodePoint(Number.parseInt(t,16))),r=[...e.entries()];return r.sort(([e],[t])=>{let r=n(e),i=n(t);return ri)}),new URLSearchParams(r).toString()},ul=(e,t)=>t?e.replace(t,(e,t)=>String.fromCodePoint(Number.parseInt(t,16))):e,dl=(e,t,n)=>{let r=t===`always`,i=t===`never`,a=r||i?void 0:sl(n),o=e=>e.replaceAll(`+`,`%20`),s=e=>r?`${e}=`:i||a.has(ol(e))?e:`${e}=`,c=e=>{let t=e.indexOf(`=`);if(t===-1)return s(o(e));let n=e.slice(0,t),r=e.slice(t+1);return r===``?n===``?`=`:s(o(n)):`${o(n)}=${r}`},l=e.slice(1).split(`&`).filter(Boolean);return l.length===0?``:`?${l.map(e=>c(e)).join(`&`)}`},fl=(e,{stripHash:t})=>{let n=/^data:(?[^,]*?),(?[^#]*?)(?:#(?.*))?$/.exec(e);if(!n)throw Error(`Invalid URL: ${e}`);let{type:r,data:i,hash:a}=n.groups,o=r.split(`;`),s=o.at(-1)===`base64`;s&&o.pop();let c=o.shift().toLowerCase(),l=[...o.map(e=>{let[t,n=``]=e.split(`=`).map(e=>e.trim());return t===`charset`&&(n=n.toLowerCase(),n===Xc)?``:`${t}${n?`=${n}`:``}`}).filter(Boolean)];s&&l.push(`base64`),(l.length>0||c&&c!==Yc)&&l.unshift(c);let u=t||!a?``:`#${a}`;return`data:${l.join(`;`)},${s?i.trim():i}${u}`},pl=class{constructor(e,t,n=`left-to-right`){this.canvases=e,this.layers=t,this.viewingDirection=n,this._canvasDimensions=null}get canvasIds(){return this.canvases.map(e=>e.id)}get canvasDimensions(){if(this._canvasDimensions)return this._canvasDimensions;let[e,t]=this.canvasDirection,n=Math.min(...t===0?this.canvases.map(e=>e.getHeight()):this.canvases.map(e=>e.getWidth())),r=0,i=0,a=this.canvases.reduce((a,o)=>{let s=0,c=0;return Number.isNaN(o.aspectRatio)||(t===0?(s=n,c=Math.floor(n*o.aspectRatio)):(c=n,s=Math.floor(n*(1/o.aspectRatio)))),a.push({canvas:o,height:s,width:c,x:r,y:i}),r+=e*c,i+=t*s,a},[]),o=t===0?n:Math.abs(i),s=e===0?n:Math.abs(r);return this._canvasDimensions=a.reduce((n,r)=>(n.push({...r,x:e===-1?r.x+s-r.width:r.x,y:t===-1?r.y+o-r.height:r.y}),n),[]),this._canvasDimensions}contentResourceToWorldCoordinates(e){let t=this.canvases.findIndex(t=>t.imageResources.find(t=>t.id===e.id)),n=this.canvases[t];if(!n)return[];let[r,i,a,o]=this.canvasToWorldCoordinates(n.id),s=n.onFragment(e.id);return s?[r+s[0],i+s[1],s[2],s[3]]:[r,i,a,o]}canvasToWorldCoordinates(e){let t=this.canvasDimensions.find(t=>t.canvas.id===e);return[t.x,t.y,t.width,t.height]}get canvasDirection(){switch(this.viewingDirection){case`left-to-right`:return[1,0];case`right-to-left`:return[-1,0];case`top-to-bottom`:return[0,1];case`bottom-to-top`:return[0,-1];default:return[1,0]}}contentResource(e){let t=this.canvases.find(t=>t.imageServiceIds.some(t=>t&&e&&Fc(t,{stripAuthentication:!1})===Fc(e,{stripAuthentication:!1})));if(t)return t.imageResources.find(t=>Fc(qr(t).id,{stripAuthentication:!1})===Fc(e,{stripAuthentication:!1}))}getLayerMetadata(e){let t=this.canvases.find(t=>t.imageResources.find(t=>t.id===e.id));if(!t)return;let n=t.imageResources.findIndex(t=>t.id===e.id),r=t.imageResources.find(t=>t.id===e.id),i=this.layers&&this.layers[t.canvas.id],a=i&&i[e.id]||{};return{index:n,opacity:1,total:t.imageResources.length,visibility:!!r.preferred,...a}}layerOpacityOfImageResource(e){let t=this.getLayerMetadata(e);return t?t.visibility?t.opacity:0:1}layerIndexOfImageResource(e){let t=this.getLayerMetadata(e);if(t)return t.index}offsetByCanvas(e){let t=this.canvasToWorldCoordinates(e);return{x:t[0],y:t[1]}}hasDimensions(){return this.canvasDimensions.length>0}worldBounds(){return[0,0,Math.max(0,...this.canvasDimensions.map(e=>e.x+e.width)),Math.max(0,...this.canvasDimensions.map(e=>e.y+e.height))]}canvasAtPoint(e){let t=this.canvasDimensions.find(t=>t.x<=e.x&&e.x<=t.x+t.width&&t.y<=e.y&&e.y<=t.y+t.height);return t&&t.canvas}}}));function hl(e,t=!1){return{pan:t,type:B.FOCUS_WINDOW,windowId:e}}function gl({companionWindows:e,manifest:t,...n}){return(r,i)=>{let{config:a,workspace:{windowIds:o=[]}}=ke(i()),s=o.length,c=n.id||`window-${be()}`,l=`cw-${be()}`,u=[{content:`thumbnailNavigation`,default:!0,id:l,position:n.thumbnailNavigationPosition||a.thumbnailNavigation.defaultPosition,windowId:c},...(e||[]).map((e,t)=>({...e,id:`cw-${be()}`}))];(n.sideBarPanel||a.window.defaultSideBarPanel||a.window.sideBarPanel)&&u.unshift({content:n.sideBarPanel||n.defaultSearchQuery&&`search`||a.window.defaultSideBarPanel||a.window.sideBarPanel,default:!0,id:`cw-${be()}`,position:`left`,windowId:c});let d={canvasId:void 0,collectionIndex:0,companionAreaOpen:!0,companionWindowIds:u.map(e=>e.id),draggingEnabled:!0,highlightAllAnnotations:a.window.highlightAllAnnotations||!1,id:c,manifestId:null,maximized:!1,rangeId:null,rotation:null,selectedAnnotations:{},sideBarOpen:a.window.sideBarOpenByDefault===void 0?a.window.sideBarOpen||!!n.defaultSearchQuery:a.window.sideBarOpenByDefault||!!n.defaultSearchQuery,sideBarPanel:n.sideBarPanel||a.window.defaultSideBarPanel||a.window.sideBarPanel,thumbnailNavigationId:l};r({companionWindows:u,elasticLayout:{...a.window.elastic||{height:400,width:480},x:200+(Math.floor(s/10)*50+s*30%300),y:200+s*50%300},manifest:t,type:B.ADD_WINDOW,window:{...d,...n}})}}function _l(e,t){return{id:e,payload:t,type:B.UPDATE_WINDOW}}function vl(e){return{type:B.MAXIMIZE_WINDOW,windowId:e}}function yl(e){return{type:B.MINIMIZE_WINDOW,windowId:e}}function bl(e,t){return{id:e,payload:{companionAreaOpen:t},type:B.UPDATE_WINDOW}}function xl(e){return{type:B.REMOVE_WINDOW,windowId:e}}function Sl(e){return{type:B.TOGGLE_WINDOW_SIDE_BAR,windowId:e}}function Cl(e,t){return(n,r)=>{let{windows:i}=r(),{thumbnailNavigationId:a}=i[e];n({id:a,payload:{position:t},type:B.UPDATE_COMPANION_WINDOW})}}function wl(e,t){return{type:B.SET_WINDOW_VIEW_TYPE,viewType:t,windowId:e}}function Tl(e,t=[],n){return{dialogCollectionPath:t,manifestId:e,type:B.SHOW_COLLECTION_DIALOG,windowId:n}}function El(e){return{type:B.HIDE_COLLECTION_DIALOG,windowId:e}}var Dl=o((()=>{Kr(),Fs()}));function Ol(e,t,n=void 0,r={}){return(i,a)=>{let o=a(),{preserveViewport:s}=Xr(o).osdConfig,c=n;c||=(Ss(o,{canvasId:t,windowId:e})||[]).map(e=>e.id),i({canvasId:t,preserveViewport:r?.preserveViewport??s,type:B.SET_CANVAS,visibleCanvases:c,windowId:e})}}function kl(e){return(t,n)=>{let r=n(),i=Cs(r,{windowId:e}),a=(i||[]).map(e=>e.id);i&&t(Ol(e,a[0],a))}}function Al(e){return(t,n)=>{let r=n(),i=ws(r,{windowId:e}),a=(i||[]).map(e=>e.id);i&&t(Ol(e,a[0],a))}}function jl(e,t){return{payload:t,type:B.UPDATE_VIEWPORT,windowId:e}}var Ml=o((()=>{Ps(),Fs()}));function Nl(e){return{PluginComponents:(((0,Pl.useContext)(Bt)||{})[e]?.add||[]).map(e=>e.component)}}var Pl,Fl,Il,Ll,Rl,zl,Bl=o((()=>{Kr(),Ps(),Pl=u(p(),1),Fl=z(((e,t)=>{(function(){var e={}.hasOwnProperty;function n(){for(var e=``,t=0;t(0,Il.default)([e]).map(e=>[Vr.createGenerateClassNameOptions.productionPrefix,e].join(`-`)).join(` `),Rl=Je(zt(),1),zl=(0,Pl.forwardRef)(({classes:e={},targetName:t,...n},r)=>{let{PluginComponents:i}=Nl(t);return i?i.map((e,t)=>(0,Pl.isValidElement)(e)?(0,Pl.cloneElement)(e,{...n,ref:r}):(0,Pl.createElement)(e,{ref:r,...n,key:t})):null}),zl.displayName=`PluginHook`,zl.propTypes={classes:Rl.default.object,targetName:Rl.default.string.isRequired}})),Vl,Hl,Ul,Wl=o((()=>{Vl=e=>e,Hl=()=>{let e=Vl;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Vl}}},Ul=Hl()})),Gl=o((()=>{Wl()}));function Kl(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 ql=o((()=>{})),Jl=o((()=>{ql()}));function Yl(e){if(typeof e!=`string`)throw Error(process.env.NODE_ENV===`production`?Kl(7):"MUI: `capitalize(string)` expects a string argument.");return e.charAt(0).toUpperCase()+e.slice(1)}var Xl=o((()=>{Jl()})),Zl=o((()=>{Xl()})),H,Ql=o((()=>{Zl(),H=Yl}));function $l(...e){return e.reduce((e,t)=>t==null?e:function(...n){e.apply(this,n),t.apply(this,n)},()=>{})}var eu=o((()=>{})),tu=o((()=>{eu()})),nu=s((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})),ru=s((e=>{process.env.NODE_ENV!==`production`&&(function(){"use strict";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){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)}function x(e){if(typeof e==`object`&&e){var t=e.$$typeof;switch(t){case n:var p=e.type;switch(p){case l:case u:case i:case o:case a:case f:return p;default:var g=p&&p.$$typeof;switch(g){case c:case d:case h:case m:case s:return g;default:return t}}case r:return t}}}var S=l,C=u,w=c,T=s,E=n,D=d,O=i,k=h,A=m,j=r,M=o,ee=a,N=f,P=!1;function F(e){return P||(P=!0,console.warn(`The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.`)),te(e)||x(e)===l}function te(e){return x(e)===u}function I(e){return x(e)===c}function ne(e){return x(e)===s}function re(e){return typeof e==`object`&&!!e&&e.$$typeof===n}function ie(e){return x(e)===d}function ae(e){return x(e)===i}function oe(e){return x(e)===h}function se(e){return x(e)===m}function ce(e){return x(e)===r}function le(e){return x(e)===o}function ue(e){return x(e)===a}function de(e){return x(e)===f}e.AsyncMode=S,e.ConcurrentMode=C,e.ContextConsumer=w,e.ContextProvider=T,e.Element=E,e.ForwardRef=D,e.Fragment=O,e.Lazy=k,e.Memo=A,e.Portal=j,e.Profiler=M,e.StrictMode=ee,e.Suspense=N,e.isAsyncMode=F,e.isConcurrentMode=te,e.isContextConsumer=I,e.isContextProvider=ne,e.isElement=re,e.isForwardRef=ie,e.isFragment=ae,e.isLazy=oe,e.isMemo=se,e.isPortal=ce,e.isProfiler=le,e.isStrictMode=ue,e.isSuspense=de,e.isValidElementType=b,e.typeOf=x})()})),iu=s(((e,t)=>{t.exports=process.env.NODE_ENV===`production`?nu():ru()})),au=s(((e,t)=>{var n=Object.getOwnPropertySymbols,r=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable;function a(e){if(e==null)throw TypeError(`Object.assign cannot be called with null or undefined`);return Object(e)}function o(){try{if(!Object.assign)return!1;var e=new String(`abc`);if(e[5]=`de`,Object.getOwnPropertyNames(e)[0]===`5`)return!1;for(var t={},n=0;n<10;n++)t[`_`+String.fromCharCode(n)]=n;if(Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(``)!==`0123456789`)return!1;var r={};return`abcdefghijklmnopqrst`.split(``).forEach(function(e){r[e]=e}),Object.keys(Object.assign({},r)).join(``)===`abcdefghijklmnopqrst`}catch{return!1}}t.exports=o()?Object.assign:function(e,t){for(var o,s=a(e),c,l=1;l{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),su=s(((e,t)=>{t.exports=Function.call.bind(Object.prototype.hasOwnProperty)})),cu=s(((e,t)=>{var n=function(){};if(process.env.NODE_ENV!==`production`){var r=ou(),i={},a=su();n=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}}}function o(e,t,o,s,c){if(process.env.NODE_ENV!==`production`){for(var l in e)if(a(e,l)){var u;try{if(typeof e[l]!=`function`){var d=Error((s||`React class`)+`: `+o+" type `"+l+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof e[l]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw d.name=`Invariant Violation`,d}u=e[l](t,l,s,o,null,r)}catch(e){u=e}if(u&&!(u instanceof Error)&&n((s||`React class`)+`: type specification of `+o+" `"+l+"` is invalid; the type checker function must return `null` or an `Error` but returned a "+typeof u+`. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).`),u instanceof Error&&!(u.message in i)){i[u.message]=!0;var f=c?c():``;n(`Failed `+o+` type: `+u.message+(f??``))}}}}o.resetWarningCache=function(){process.env.NODE_ENV!==`production`&&(i={})},t.exports=o})),lu=s(((e,t)=>{var n=iu(),r=au(),i=ou(),a=su(),o=cu(),s=function(){};process.env.NODE_ENV!==`production`&&(s=function(e){var t=`Warning: `+e;typeof console<`u`&&console.error(t);try{throw Error(t)}catch{}});function c(){return null}t.exports=function(e,t){var l=typeof Symbol==`function`&&Symbol.iterator,u=`@@iterator`;function d(e){var t=e&&(l&&e[l]||e[u]);if(typeof t==`function`)return t}var f=`<>`,p={array:_(`array`),bigint:_(`bigint`),bool:_(`boolean`),func:_(`function`),number:_(`number`),object:_(`object`),string:_(`string`),symbol:_(`symbol`),any:v(),arrayOf:y,element:b(),elementType:x(),instanceOf:S,node:E(),objectOf:w,oneOf:C,oneOfType:T,shape:O,exact:k};function m(e,t){return e===t?e!==0||1/e==1/t:e!==e&&t!==t}function h(e,t){this.message=e,this.data=t&&typeof t==`object`?t:{},this.stack=``}h.prototype=Error.prototype;function g(e){if(process.env.NODE_ENV!==`production`)var n={},r=0;function a(a,o,c,l,u,d,p){if(l||=f,d||=c,p!==i){if(t){var m=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types");throw m.name=`Invariant Violation`,m}if(process.env.NODE_ENV!==`production`&&typeof console<`u`){var g=l+`:`+c;!n[g]&&r<3&&(s("You are manually calling a React.PropTypes validation function for the `"+d+"` prop on `"+l+"`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."),n[g]=!0,r++)}}return o[c]==null?a?o[c]===null?new h(`The `+u+" `"+d+"` is marked as required "+("in `"+l+"`, but its value is `null`.")):new h(`The `+u+" `"+d+"` is marked as required in "+("`"+l+"`, but its value is `undefined`.")):null:e(o,c,l,u,d)}var o=a.bind(null,!1);return o.isRequired=a.bind(null,!0),o}function _(e){function t(t,n,r,i,a,o){var s=t[n];if(M(s)!==e){var c=ee(s);return new h(`Invalid `+i+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("`"+e+"`."),{expectedType:e})}return null}return g(t)}function v(){return g(c)}function y(e){function t(t,n,r,a,o){if(typeof e!=`function`)return new h("Property `"+o+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var c=M(s);return new h(`Invalid `+a+" `"+o+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var l=0;l1?s(`Invalid arguments supplied to oneOf, expected an array, got `+arguments.length+` arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z]).`):s(`Invalid argument supplied to oneOf, expected an array.`)),c;function t(t,n,r,i,a){for(var o=t[n],s=0;s0?`, expected one of type [`+c.join(`, `)+`]`:``;return new h(`Invalid `+o+" `"+s+"` supplied to "+("`"+r+"`"+f+`.`))}return g(r)}function E(){function e(e,t,n,r,i){return A(e[t])?null:new h(`Invalid `+r+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return g(e)}function D(e,t,n,r,i){return new h((e||`React class`)+`: `+t+" type `"+n+`.`+r+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+i+"`.")}function O(e){function t(t,n,r,a,o){var s=t[n],c=M(s);if(c!==`object`)return new h(`Invalid `+a+" `"+o+"` of type `"+c+"` "+("supplied to `"+r+"`, expected `object`."));for(var l in e){var u=e[l];if(typeof u!=`function`)return D(r,a,o,l,ee(u));var d=u(s,l,r,a,o+`.`+l,i);if(d)return d}return null}return g(t)}function k(e){function t(t,n,o,s,c){var l=t[n],u=M(l);if(u!==`object`)return new h(`Invalid `+s+" `"+c+"` of type `"+u+"` "+("supplied to `"+o+"`, expected `object`."));for(var d in r({},t[n],e)){var f=e[d];if(a(e,d)&&typeof f!=`function`)return D(o,s,c,d,ee(f));if(!f)return new h(`Invalid `+s+" `"+c+"` key `"+d+"` supplied to `"+o+`\`. Bad object: `+JSON.stringify(t[n],null,` `)+` @@ -61,7 +61,7 @@ try { } } catch(e){}})();`}},`mui-color-scheme-init`)}var Wv,Gv,Kv,qv,Jv=o((()=>{Wv=g(),Gv=`mode`,Kv=`color-scheme`,qv=`data-color-scheme`}));function Yv(){}var Xv,Zv=o((()=>{Xv=({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 Yv;let r=t=>{let r=t.newValue;t.key===e&&n(r)};return t.addEventListener(`storage`,r),()=>{t.removeEventListener(`storage`,r)}}})}));function Qv(){}function $v(e){if(typeof window<`u`&&typeof window.matchMedia==`function`&&e===`system`)return window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`}function ey(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 ty(e){return ey(e,t=>{if(t===`light`)return e.lightColorScheme;if(t===`dark`)return e.darkColorScheme})}function ny(e){let{defaultMode:t=`light`,defaultLightColorScheme:n,defaultDarkColorScheme:r,supportedColorSchemes:i=[],modeStorageKey:a=Gv,colorSchemeStorageKey:o=Kv,storageWindow:s=typeof window>`u`?void 0:window,storageManager:c=Xv,noSsr:l=!1}=e,u=i.join(`,`),d=i.length>1,f=ry.useMemo(()=>c?.({key:a,storageWindow:s}),[c,a,s]),p=ry.useMemo(()=>c?.({key:`${o}-light`,storageWindow:s}),[c,o,s]),m=ry.useMemo(()=>c?.({key:`${o}-dark`,storageWindow:s}),[c,o,s]),[h,g]=ry.useState(()=>{let e=f?.get(t)||t,i=p?.get(n)||n,a=m?.get(r)||r;return{mode:e,systemMode:$v(e),lightColorScheme:i,darkColorScheme:a}}),[_,v]=ry.useState(l||!d);ry.useEffect(()=>{v(!0)},[]);let y=ty(h),b=ry.useCallback(e=>{g(n=>{if(e===n.mode)return n;let r=e??t;return f?.set(r),{...n,mode:r,systemMode:$v(r)}})},[f,t]),x=ry.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 ey(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=ry.useCallback(e=>{h.mode===`system`&&g(t=>{let n=e?.matches?`dark`:`light`;return t.systemMode===n?t:{...t,systemMode:n}})},[h.mode]),C=ry.useRef(S);return C.current=S,ry.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]),ry.useEffect(()=>{if(d){let e=f?.subscribe(e=>{(!e||[`light`,`dark`,`system`].includes(e))&&b(e||t)})||Qv,n=p?.subscribe(e=>{(!e||u.match(e))&&x({light:e})})||Qv,r=m?.subscribe(e=>{(!e||u.match(e))&&x({dark:e})})||Qv;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 ry,iy=o((()=>{ry=u(p()),Jv(),Zv()}));function ay(e){let{themeId:t,theme:n={},modeStorageKey:r=Gv,colorSchemeStorageKey:i=Kv,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=oy.createContext(void 0);process.env.NODE_ENV!==`production`&&(l.displayName=`ColorSchemeContext`);let u=()=>oy.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=oy.useRef(!1),E=q_(),D=oy.useContext(l),O=!!D&&!b,k=oy.useMemo(()=>u||(typeof n==`function`?n():n),[u]),A=k[t],j=A||k,{colorSchemes:M=d,components:ee=f,cssVarPrefix:N}=j,P=Object.keys(M).filter(e=>!!M[e]).join(`,`),F=oy.useMemo(()=>P.split(`,`),[P]),te=typeof o==`string`?o:o.light,I=typeof o==`string`?o:o.dark,{mode:ne,setMode:re,systemMode:ie,lightColorScheme:ae,darkColorScheme:oe,colorScheme:se,setColorScheme:ce}=ny({supportedColorSchemes:F,defaultLightColorScheme:te,defaultDarkColorScheme:I,modeStorageKey:p,colorSchemeStorageKey:m,defaultMode:M[te]&&M[I]?S:M[j.defaultColorScheme]?.palette?.mode||j.palette?.mode,storageManager:g,storageWindow:_,noSsr:w}),le=ne,ue=se;O&&(le=D.mode,ue=D.colorScheme),process.env.NODE_ENV!==`production`&&C&&!j.vars&&console.warn(["MUI: The `forceThemeRerender` prop should only be used with CSS theme variables.",`Note that it will slow down the app when changing between modes, so only do this when you cannot find a better solution.`].join(` `));let de=ue||j.defaultColorScheme;j.vars&&!C&&(de=j.defaultColorScheme);let L=oy.useMemo(()=>{let e=j.generateThemeVars?.()||j.vars,t={...j,components:ee,colorSchemes:M,cssVarPrefix:N,vars:e};if(typeof t.generateSpacing==`function`&&(t.spacing=t.generateSpacing()),de){let e=M[de];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},[j,de,ee,M,N]),fe=j.colorSchemeSelector;c_(()=>{if(ue&&y&&fe&&fe!==`media`){let e=fe,t=fe;if(e===`class`&&(t=`.%s`),e===`data`&&(t=`[data-%s]`),e?.startsWith(`data-`)&&!e.includes(`%s`)&&(t=`[${e}="%s"]`),t.startsWith(`.`))y.classList.remove(...F.map(e=>t.substring(1).replace(`%s`,e))),y.classList.add(t.substring(1).replace(`%s`,ue));else{let e=t.replace(`%s`,ue).match(/\[([^\]]+)\]/);if(e){let[t,n]=e[1].split(`=`);n||F.forEach(e=>{y.removeAttribute(t.replace(ue,e))}),y.setAttribute(t,n?n.replace(/"|'/g,``):``)}else y.setAttribute(t,ue)}}},[ue,fe,y,F]),oy.useEffect(()=>{let e;if(h&&T.current&&v){let t=v.createElement(`style`);t.appendChild(v.createTextNode(ly)),v.head.appendChild(t),window.getComputedStyle(v.body),e=setTimeout(()=>{v.head.removeChild(t)},1)}return()=>{clearTimeout(e)}},[ue,h,v]),oy.useEffect(()=>(T.current=!0,()=>{T.current=!1}),[]);let pe=oy.useMemo(()=>({allColorSchemes:F,colorScheme:ue,darkColorScheme:oe,lightColorScheme:ae,mode:le,setColorScheme:ce,setMode:process.env.NODE_ENV===`production`?re:e=>{L.colorSchemeSelector===`media`&&console.error(["MUI: The `setMode` function has no effect if `colorSchemeSelector` is `media` (`media` is the default value).","To toggle the mode manually, please configure `colorSchemeSelector` to use a class or data attribute.",`To learn more, visit https://v7.mui.com/material-ui/customization/css-theme-variables/configuration/#toggling-dark-mode-manually`].join(` -`)),re(e)},systemMode:ie}),[F,ue,oe,ae,le,ce,re,ie,L.colorSchemeSelector]),me=!0;(x||j.cssVariables===!1||O&&E?.cssVarPrefix===N)&&(me=!1);let he=(0,cy.jsxs)(oy.Fragment,{children:[(0,cy.jsx)(Nv,{themeId:A?t:void 0,theme:L,children:c}),me&&(0,cy.jsx)(Th,{styles:L.generateStyleSheets?.()||[]})]});return O?he:(0,cy.jsx)(l.Provider,{value:pe,children:he})}process.env.NODE_ENV!==`production`&&(p.propTypes={children:sy.default.node,colorSchemeNode:sy.default.any,colorSchemeStorageKey:sy.default.string,defaultMode:sy.default.string,disableNestedContext:sy.default.bool,disableStyleSheetGeneration:sy.default.bool,disableTransitionOnChange:sy.default.bool,documentNode:sy.default.any,forceThemeRerender:sy.default.bool,modeStorageKey:sy.default.string,noSsr:sy.default.bool,storageManager:sy.default.func,storageWindow:sy.default.any,theme:sy.default.object});let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Uv({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}var oy,sy,cy,ly,uy=o((()=>{oy=u(p()),sy=u(du()),Nh(),sv(),u_(),zv(),Jv(),iy(),cy=g(),ly=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`}));function dy(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 fy=o((()=>{}));function py(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return hy(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=gy(e,t);Object.assign(i,{[r]:c}),my(a,e,`var(${r})`,s),my(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}var my,hy,gy,_y=o((()=>{my=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},hy=(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)},gy=(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 vy(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}=py(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=py(n,t);p=Cu(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=py(h,t);p=Cu(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=Cu(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}}}var yy=o((()=>{Du(),_y()}));function by(e){return function(t){return e===`media`?(process.env.NODE_ENV!==`production`&&t!==`light`&&t!==`dark`&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@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)} &`:`&`}}var xy=o((()=>{})),Sy=o((()=>{})),Cy=o((()=>{mu(),xg(),_u(),Zl(),o_(),Qg(),Gh(),Sy(),Sy()}));function wy(e,t){return Ty.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var Ty,Ey=o((()=>{Ty=u(p())})),Dy=o((()=>{Ey()})),Oy,ky,Ay=o((()=>{Oy=(e,t)=>e.filter(e=>t.includes(e)),ky=(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:Oy(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 jy(e){return`--Grid-${e}Spacing`}function My(e){return`--Grid-parent-${e}Spacing`}var Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy,Gy=o((()=>{Ay(),Ny=`--Grid-columns`,Py=`--Grid-parent-columns`,Fy=({theme:e,ownerState:t})=>{let n={};return ky(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(${Py}) - (var(${Py}) - ${t}) * (var(${My(`column`)}) / var(${Py})))`}),e(n,r)}),n},Iy=({theme:e,ownerState:t})=>{let n={};return ky(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(${Py}) + var(${My(`column`)}) * ${t} / var(${Py}))`}),e(n,r)}),n},Ly=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[Ny]:12};return ky(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[Ny]:r,"> *":{[Py]:r}})}),n},Ry=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return ky(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[jy(`row`)]:i,"> *":{[My(`row`)]:i}})}),n},zy=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return ky(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[jy(`column`)]:i,"> *":{[My(`column`)]:i}})}),n},By=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return ky(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},Vy=({ownerState:e})=>({minWidth:0,boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,...e.wrap&&e.wrap!==`wrap`&&{flexWrap:e.wrap},gap:`var(${jy(`row`)}) var(${jy(`column`)})`}}),Hy=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},Uy=(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[]},Wy=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`]}));function Ky(e,t){let n=[];e.item!==void 0&&(delete e.item,n.push(`item`)),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push(`zeroMinWidth`)),t.keys.forEach(t=>{e[t]!==void 0&&(n.push(t),delete e[t])}),process.env.NODE_ENV!==`production`&&n.forEach(e=>{Jy.includes(e)||(Jy.push(e),console.warn(`MUI Grid: ${qy(e)}\n`))})}var qy,Jy,Yy=o((()=>{qy=e=>[`item`,`zeroMinWidth`].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://v7.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,Jy=[]}));function Xy(e){return i_({props:e,name:`MuiGrid`,defaultTheme:tb})}function Zy(e={}){let{createStyledComponent:t=nb,useThemeProps:n=Xy,useTheme:r=Zh,componentName:i=`MuiGrid`}=e,a=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:o,size:s}=e;return hu({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...Wy(r),...Hy(s),...n?Uy(a,t.breakpoints.keys[0]):[]]},e=>vg(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(Ly,zy,Ry,Fy,By,Vy,Iy),c=Qy.forwardRef(function(e,t){let i=r(),c=Df(n(e));Ky(c,i.breakpoints);let{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},A=a(k,i);return(0,eb.jsx)(s,{ref:t,as:p,ownerState:k,className:pu(A.root,l),...S,children:Qy.Children.map(u,e=>Qy.isValidElement(e)&&wy(e,[`Grid`])&&f&&e.props.container?Qy.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return process.env.NODE_ENV!==`production`&&(c.propTypes={children:$y.default.node,className:$y.default.string,columns:$y.default.oneOfType([$y.default.arrayOf($y.default.number),$y.default.number,$y.default.object]),columnSpacing:$y.default.oneOfType([$y.default.arrayOf($y.default.oneOfType([$y.default.number,$y.default.string])),$y.default.number,$y.default.object,$y.default.string]),component:$y.default.elementType,container:$y.default.bool,direction:$y.default.oneOfType([$y.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`]),$y.default.arrayOf($y.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`])),$y.default.object]),offset:$y.default.oneOfType([$y.default.string,$y.default.number,$y.default.arrayOf($y.default.oneOfType([$y.default.string,$y.default.number])),$y.default.object]),rowSpacing:$y.default.oneOfType([$y.default.arrayOf($y.default.oneOfType([$y.default.number,$y.default.string])),$y.default.number,$y.default.object,$y.default.string]),size:$y.default.oneOfType([$y.default.string,$y.default.bool,$y.default.number,$y.default.arrayOf($y.default.oneOfType([$y.default.string,$y.default.bool,$y.default.number])),$y.default.object]),spacing:$y.default.oneOfType([$y.default.arrayOf($y.default.oneOfType([$y.default.number,$y.default.string])),$y.default.number,$y.default.object,$y.default.string]),sx:$y.default.oneOfType([$y.default.arrayOf($y.default.oneOfType([$y.default.func,$y.default.object,$y.default.bool])),$y.default.func,$y.default.object]),wrap:$y.default.oneOf([`nowrap`,`wrap-reverse`,`wrap`])}),c.muiName=`Grid`,c}var Qy,$y,eb,tb,nb,rb=o((()=>{Qy=u(p()),$y=u(du()),mu(),Dy(),xg(),_u(),Qg(),o_(),eg(),Af(),Gh(),Gy(),Yy(),eb=g(),tb=Uh(),nb=Xg(`div`,{name:`MuiGrid`,slot:`Root`})})),ib=o((()=>{})),ab=o((()=>{})),ob=o((()=>{rb(),ib(),ab(),ab(),Ay(),Gy()}));function sb(e){return i_({props:e,name:`MuiStack`,defaultTheme:pb})}function cb(e,t){let n=ub.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),ihu({root:[`root`]},e=>vg(r,e),{}),a=t(gb),o=ub.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=Df(n(e)),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,fb.jsx)(a,{as:r,ownerState:p,ref:t,className:pu(m.root,u),...f,children:c?cb(l,c):l})});return process.env.NODE_ENV!==`production`&&(o.propTypes={children:db.default.node,direction:db.default.oneOfType([db.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`]),db.default.arrayOf(db.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`])),db.default.object]),divider:db.default.node,spacing:db.default.oneOfType([db.default.arrayOf(db.default.oneOfType([db.default.number,db.default.string])),db.default.number,db.default.object,db.default.string]),sx:db.default.oneOfType([db.default.arrayOf(db.default.oneOfType([db.default.func,db.default.object,db.default.bool])),db.default.func,db.default.object])}),o}var ub,db,fb,pb,mb,hb,gb,_b=o((()=>{ub=u(p()),db=u(du()),mu(),Du(),xg(),_u(),Qg(),o_(),Af(),Gh(),Zu(),Sd(),fb=g(),pb=Uh(),mb=Xg(`div`,{name:`MuiStack`,slot:`Root`}),hb=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],gb=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...Vu({theme:t},Ku({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=sd(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=Ku({values:e.direction,base:i}),o=Ku({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=Cu(n,Vu({theme:t},o,(t,n)=>e.useFlexGap?{gap:cd(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${hb(n?a[n]:e.direction)}`]:cd(r,t)}}))}return n=Wu(t.breakpoints,n),n}})),vb=o((()=>{})),yb=o((()=>{})),bb=o((()=>{_b(),vb(),yb(),yb()})),xb=o((()=>{Nh(),og(),Hd(),Hd(),Zu(),Bu(),Td(),nd(),cg(),cg(),nf(),nf(),lf(),lf(),ug(),ug(),yf(),yf(),Sd(),Sd(),fg(),fg(),Af(),Eg(),Eg(),_g(),Yg(),Yg(),Qg(),Gh(),Ih(),Bh(),Rh(),o_(),eg(),Xh(),__(),z_(),zv(),Hv(),uy(),fy(),_y(),yy(),Jv(),Pu(),mv(),mv(),xy(),mu(),xg(),_u(),Zl(),Cy(),Cy(),rb(),ob(),_b(),bb()})),Sb,Cb=o((()=>{Sb={black:`#000`,white:`#fff`}})),wb,Tb=o((()=>{wb={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`}})),Eb,Db=o((()=>{Eb={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`}})),Ob,kb=o((()=>{Ob={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`}})),Ab,ree=o((()=>{Ab={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`}})),jb,iee=o((()=>{jb={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`}})),Mb,Nb=o((()=>{Mb={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`}})),Pb,Fb=o((()=>{Pb={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`}}));function Ib(){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:Sb.white,default:Sb.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}}}function Lb(){return{text:{primary:Sb.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:Sb.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}}}function Rb(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=M_(e.main,i):t===`dark`&&(e.dark=A_(e.main,a)))}function zb(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 Bb(e=`light`){return e===`dark`?{main:jb[200],light:jb[50],dark:jb[400]}:{main:jb[700],light:jb[400],dark:jb[800]}}function Vb(e=`light`){return e===`dark`?{main:Eb[200],light:Eb[50],dark:Eb[400]}:{main:Eb[500],light:Eb[300],dark:Eb[700]}}function Hb(e=`light`){return e===`dark`?{main:Ob[500],light:Ob[300],dark:Ob[700]}:{main:Ob[700],light:Ob[400],dark:Ob[800]}}function Ub(e=`light`){return e===`dark`?{main:Mb[400],light:Mb[300],dark:Mb[700]}:{main:Mb[700],light:Mb[500],dark:Mb[900]}}function Wb(e=`light`){return e===`dark`?{main:Pb[400],light:Pb[300],dark:Pb[700]}:{main:Pb[800],light:Pb[500],dark:Pb[900]}}function Gb(e=`light`){return e===`dark`?{main:Ab[400],light:Ab[300],dark:Ab[700]}:{main:`#ed6c02`,light:Ab[500],dark:Ab[900]}}function Kb(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function qb(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||Bb(t),s=e.secondary||Vb(t),c=e.error||Hb(t),l=e.info||Ub(t),u=e.success||Wb(t),d=e.warning||Gb(t);function f(e){if(i)return Kb(e);let t=D_(e,Yb.text.primary)>=n?Yb.text.primary:Jb.text.primary;if(process.env.NODE_ENV!==`production`){let n=D_(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,`falls below the WCAG recommended absolute minimum contrast ratio of 3:1.`,`https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast`].join(` +`)),re(e)},systemMode:ie}),[F,ue,oe,ae,le,ce,re,ie,L.colorSchemeSelector]),me=!0;(x||j.cssVariables===!1||O&&E?.cssVarPrefix===N)&&(me=!1);let he=(0,cy.jsxs)(oy.Fragment,{children:[(0,cy.jsx)(Nv,{themeId:A?t:void 0,theme:L,children:c}),me&&(0,cy.jsx)(Th,{styles:L.generateStyleSheets?.()||[]})]});return O?he:(0,cy.jsx)(l.Provider,{value:pe,children:he})}process.env.NODE_ENV!==`production`&&(p.propTypes={children:sy.default.node,colorSchemeNode:sy.default.any,colorSchemeStorageKey:sy.default.string,defaultMode:sy.default.string,disableNestedContext:sy.default.bool,disableStyleSheetGeneration:sy.default.bool,disableTransitionOnChange:sy.default.bool,documentNode:sy.default.any,forceThemeRerender:sy.default.bool,modeStorageKey:sy.default.string,noSsr:sy.default.bool,storageManager:sy.default.func,storageWindow:sy.default.any,theme:sy.default.object});let m=typeof o==`string`?o:o.light,h=typeof o==`string`?o:o.dark;return{CssVarsProvider:p,useColorScheme:u,getInitColorSchemeScript:e=>Uv({colorSchemeStorageKey:i,defaultLightColorScheme:m,defaultDarkColorScheme:h,modeStorageKey:r,...e})}}var oy,sy,cy,ly,uy=o((()=>{oy=u(p()),sy=u(du()),Nh(),sv(),u_(),zv(),Jv(),iy(),cy=g(),ly=`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`}));function dy(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 fy=o((()=>{}));function py(e,t){let{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},o={};return hy(e,(e,t,s)=>{if((typeof t==`string`||typeof t==`number`)&&(!r||!r(e,t))){let r=`--${n?`${n}-`:``}${e.join(`-`)}`,c=gy(e,t);Object.assign(i,{[r]:c}),my(a,e,`var(${r})`,s),my(o,e,`var(${r}, ${c})`,s)}},e=>e[0]===`vars`),{css:i,vars:a,varsWithDefaults:o}}var my,hy,gy,_y=o((()=>{my=(e,t,n,r=[])=>{let i=e;t.forEach((e,a)=>{a===t.length-1?Array.isArray(i)?i[Number(e)]=n:i&&typeof i==`object`&&(i[e]=n):i&&typeof i==`object`&&(i[e]||(i[e]=r.includes(e)?[]:{}),i=i[e])})},hy=(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)},gy=(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 vy(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}=py(l,t),p=f,m={},{[c]:h,...g}=o;if(Object.entries(g||{}).forEach(([e,n])=>{let{vars:r,css:i,varsWithDefaults:a}=py(n,t);p=Cu(p,a),m[e]={css:i,vars:r}}),h){let{css:e,vars:n,varsWithDefaults:r}=py(h,t);p=Cu(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=Cu(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}}}var yy=o((()=>{Du(),_y()}));function ree(e){return function(t){return e===`media`?(process.env.NODE_ENV!==`production`&&t!==`light`&&t!==`dark`&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${t}'.`),`@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)} &`:`&`}}var by=o((()=>{})),xy=o((()=>{})),Sy=o((()=>{mu(),xg(),_u(),Zl(),o_(),Qg(),Gh(),xy(),xy()}));function Cy(e,t){return wy.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}var wy,Ty=o((()=>{wy=u(p())})),Ey=o((()=>{Ty()})),Dy,Oy,ky=o((()=>{Dy=(e,t)=>e.filter(e=>t.includes(e)),Oy=(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:Dy(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 Ay(e){return`--Grid-${e}Spacing`}function jy(e){return`--Grid-parent-${e}Spacing`}var My,Ny,Py,Fy,Iy,Ly,Ry,zy,By,Vy,Hy,Uy,Wy=o((()=>{ky(),My=`--Grid-columns`,Ny=`--Grid-parent-columns`,Py=({theme:e,ownerState:t})=>{let n={};return Oy(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(${Ny}) - (var(${Ny}) - ${t}) * (var(${jy(`column`)}) / var(${Ny})))`}),e(n,r)}),n},Fy=({theme:e,ownerState:t})=>{let n={};return Oy(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(${Ny}) + var(${jy(`column`)}) * ${t} / var(${Ny}))`}),e(n,r)}),n},Iy=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={[My]:12};return Oy(e.breakpoints,t.columns,(e,t)=>{let r=t??12;e(n,{[My]:r,"> *":{[Ny]:r}})}),n},Ly=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Oy(e.breakpoints,t.rowSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Ay(`row`)]:i,"> *":{[jy(`row`)]:i}})}),n},Ry=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Oy(e.breakpoints,t.columnSpacing,(t,r)=>{let i=typeof r==`string`?r:e.spacing?.(r);t(n,{[Ay(`column`)]:i,"> *":{[jy(`column`)]:i}})}),n},zy=({theme:e,ownerState:t})=>{if(!t.container)return{};let n={};return Oy(e.breakpoints,t.direction,(e,t)=>{e(n,{flexDirection:t})}),n},By=({ownerState:e})=>({minWidth:0,boxSizing:`border-box`,...e.container&&{display:`flex`,flexWrap:`wrap`,...e.wrap&&e.wrap!==`wrap`&&{flexWrap:e.wrap},gap:`var(${Ay(`row`)}) var(${Ay(`column`)})`}}),Vy=e=>{let t=[];return Object.entries(e).forEach(([e,n])=>{n!==!1&&n!==void 0&&t.push(`grid-${e}-${String(n)}`)}),t},Hy=(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[]},Uy=e=>e===void 0?[]:typeof e==`object`?Object.entries(e).map(([e,t])=>`direction-${e}-${t}`):[`direction-xs-${String(e)}`]}));function Gy(e,t){let n=[];e.item!==void 0&&(delete e.item,n.push(`item`)),e.zeroMinWidth!==void 0&&(delete e.zeroMinWidth,n.push(`zeroMinWidth`)),t.keys.forEach(t=>{e[t]!==void 0&&(n.push(t),delete e[t])}),process.env.NODE_ENV!==`production`&&n.forEach(e=>{qy.includes(e)||(qy.push(e),console.warn(`MUI Grid: ${Ky(e)}\n`))})}var Ky,qy,Jy=o((()=>{Ky=e=>[`item`,`zeroMinWidth`].includes(e)?`The \`${e}\` prop has been removed and is no longer necessary. You can safely remove it.`:`The \`${e}\` prop has been removed. See https://v7.mui.com/material-ui/migration/upgrade-to-grid-v2/ for migration instructions.`,qy=[]}));function Yy(e){return i_({props:e,name:`MuiGrid`,defaultTheme:eb})}function Xy(e={}){let{createStyledComponent:t=tb,useThemeProps:n=Yy,useTheme:r=Zh,componentName:i=`MuiGrid`}=e,a=(e,t)=>{let{container:n,direction:r,spacing:a,wrap:o,size:s}=e;return hu({root:[`root`,n&&`container`,o!==`wrap`&&`wrap-xs-${String(o)}`,...Uy(r),...Vy(s),...n?Hy(a,t.breakpoints.keys[0]):[]]},e=>vg(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(Iy,Ry,Ly,Py,zy,By,Fy),c=Zy.forwardRef(function(e,t){let i=r(),c=Df(n(e));Gy(c,i.breakpoints);let{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},A=a(k,i);return(0,$y.jsx)(s,{ref:t,as:p,ownerState:k,className:pu(A.root,l),...S,children:Zy.Children.map(u,e=>Zy.isValidElement(e)&&Cy(e,[`Grid`])&&f&&e.props.container?Zy.cloneElement(e,{unstable_level:e.props?.unstable_level??x+1}):e)})});return process.env.NODE_ENV!==`production`&&(c.propTypes={children:Qy.default.node,className:Qy.default.string,columns:Qy.default.oneOfType([Qy.default.arrayOf(Qy.default.number),Qy.default.number,Qy.default.object]),columnSpacing:Qy.default.oneOfType([Qy.default.arrayOf(Qy.default.oneOfType([Qy.default.number,Qy.default.string])),Qy.default.number,Qy.default.object,Qy.default.string]),component:Qy.default.elementType,container:Qy.default.bool,direction:Qy.default.oneOfType([Qy.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`]),Qy.default.arrayOf(Qy.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`])),Qy.default.object]),offset:Qy.default.oneOfType([Qy.default.string,Qy.default.number,Qy.default.arrayOf(Qy.default.oneOfType([Qy.default.string,Qy.default.number])),Qy.default.object]),rowSpacing:Qy.default.oneOfType([Qy.default.arrayOf(Qy.default.oneOfType([Qy.default.number,Qy.default.string])),Qy.default.number,Qy.default.object,Qy.default.string]),size:Qy.default.oneOfType([Qy.default.string,Qy.default.bool,Qy.default.number,Qy.default.arrayOf(Qy.default.oneOfType([Qy.default.string,Qy.default.bool,Qy.default.number])),Qy.default.object]),spacing:Qy.default.oneOfType([Qy.default.arrayOf(Qy.default.oneOfType([Qy.default.number,Qy.default.string])),Qy.default.number,Qy.default.object,Qy.default.string]),sx:Qy.default.oneOfType([Qy.default.arrayOf(Qy.default.oneOfType([Qy.default.func,Qy.default.object,Qy.default.bool])),Qy.default.func,Qy.default.object]),wrap:Qy.default.oneOf([`nowrap`,`wrap-reverse`,`wrap`])}),c.muiName=`Grid`,c}var Zy,Qy,$y,eb,tb,nb=o((()=>{Zy=u(p()),Qy=u(du()),mu(),Ey(),xg(),_u(),Qg(),o_(),eg(),Af(),Gh(),Wy(),Jy(),$y=g(),eb=Uh(),tb=Xg(`div`,{name:`MuiGrid`,slot:`Root`})})),rb=o((()=>{})),ib=o((()=>{})),ab=o((()=>{nb(),rb(),ib(),ib(),ky(),Wy()}));function ob(e){return i_({props:e,name:`MuiStack`,defaultTheme:fb})}function sb(e,t){let n=lb.Children.toArray(e).filter(Boolean);return n.reduce((e,r,i)=>(e.push(r),ihu({root:[`root`]},e=>vg(r,e),{}),a=t(hb),o=lb.forwardRef(function(e,t){let{component:r=`div`,direction:o=`column`,spacing:s=0,divider:c,children:l,className:u,useFlexGap:d=!1,...f}=Df(n(e)),p={direction:o,spacing:s,useFlexGap:d},m=i();return(0,db.jsx)(a,{as:r,ownerState:p,ref:t,className:pu(m.root,u),...f,children:c?sb(l,c):l})});return process.env.NODE_ENV!==`production`&&(o.propTypes={children:ub.default.node,direction:ub.default.oneOfType([ub.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`]),ub.default.arrayOf(ub.default.oneOf([`column-reverse`,`column`,`row-reverse`,`row`])),ub.default.object]),divider:ub.default.node,spacing:ub.default.oneOfType([ub.default.arrayOf(ub.default.oneOfType([ub.default.number,ub.default.string])),ub.default.number,ub.default.object,ub.default.string]),sx:ub.default.oneOfType([ub.default.arrayOf(ub.default.oneOfType([ub.default.func,ub.default.object,ub.default.bool])),ub.default.func,ub.default.object])}),o}var lb,ub,db,fb,pb,mb,hb,gb=o((()=>{lb=u(p()),ub=u(du()),mu(),Du(),xg(),_u(),Qg(),o_(),Af(),Gh(),Zu(),Sd(),db=g(),fb=Uh(),pb=Xg(`div`,{name:`MuiStack`,slot:`Root`}),mb=e=>({row:`Left`,"row-reverse":`Right`,column:`Top`,"column-reverse":`Bottom`})[e],hb=({ownerState:e,theme:t})=>{let n={display:`flex`,flexDirection:`column`,...Vu({theme:t},Ku({values:e.direction,breakpoints:t.breakpoints.values}),e=>({flexDirection:e}))};if(e.spacing){let r=sd(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=Ku({values:e.direction,base:i}),o=Ku({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=Cu(n,Vu({theme:t},o,(t,n)=>e.useFlexGap?{gap:cd(r,t)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${mb(n?a[n]:e.direction)}`]:cd(r,t)}}))}return n=Wu(t.breakpoints,n),n}})),_b=o((()=>{})),vb=o((()=>{})),yb=o((()=>{gb(),_b(),vb(),vb()})),bb=o((()=>{Nh(),og(),Hd(),Hd(),Zu(),Bu(),Td(),nd(),cg(),cg(),nf(),nf(),lf(),lf(),ug(),ug(),yf(),yf(),Sd(),Sd(),fg(),fg(),Af(),Eg(),Eg(),_g(),Yg(),Yg(),Qg(),Gh(),Ih(),Bh(),Rh(),o_(),eg(),Xh(),__(),z_(),zv(),Hv(),uy(),fy(),_y(),yy(),Jv(),Pu(),mv(),mv(),by(),mu(),xg(),_u(),Zl(),Sy(),Sy(),nb(),ab(),gb(),yb()})),xb,Sb=o((()=>{xb={black:`#000`,white:`#fff`}})),Cb,wb=o((()=>{Cb={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`}})),Tb,Eb=o((()=>{Tb={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`}})),Db,Ob=o((()=>{Db={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`}})),kb,iee=o((()=>{kb={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`}})),Ab,aee=o((()=>{Ab={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`}})),jb,Mb=o((()=>{jb={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`}})),Nb,Pb=o((()=>{Nb={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`}}));function Fb(){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:xb.white,default:xb.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}}}function Ib(){return{text:{primary:xb.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:xb.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}}}function Lb(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=M_(e.main,i):t===`dark`&&(e.dark=A_(e.main,a)))}function Rb(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 zb(e=`light`){return e===`dark`?{main:Ab[200],light:Ab[50],dark:Ab[400]}:{main:Ab[700],light:Ab[400],dark:Ab[800]}}function Bb(e=`light`){return e===`dark`?{main:Tb[200],light:Tb[50],dark:Tb[400]}:{main:Tb[500],light:Tb[300],dark:Tb[700]}}function Vb(e=`light`){return e===`dark`?{main:Db[500],light:Db[300],dark:Db[700]}:{main:Db[700],light:Db[400],dark:Db[800]}}function Hb(e=`light`){return e===`dark`?{main:jb[400],light:jb[300],dark:jb[700]}:{main:jb[700],light:jb[500],dark:jb[900]}}function Ub(e=`light`){return e===`dark`?{main:Nb[400],light:Nb[300],dark:Nb[700]}:{main:Nb[800],light:Nb[500],dark:Nb[900]}}function Wb(e=`light`){return e===`dark`?{main:kb[400],light:kb[300],dark:kb[700]}:{main:`#ed6c02`,light:kb[500],dark:kb[900]}}function Gb(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Kb(e){let{mode:t=`light`,contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:i,...a}=e,o=e.primary||zb(t),s=e.secondary||Bb(t),c=e.error||Vb(t),l=e.info||Hb(t),u=e.success||Ub(t),d=e.warning||Wb(t);function f(e){if(i)return Gb(e);let t=D_(e,Jb.text.primary)>=n?Jb.text.primary:qb.text.primary;if(process.env.NODE_ENV!==`production`){let n=D_(e,t);n<3&&console.error([`MUI: The contrast ratio of ${n}:1 for ${t} on ${e}`,`falls below the WCAG recommended absolute minimum contrast ratio of 3:1.`,`https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast`].join(` `))}return t}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(process.env.NODE_ENV===`production`?Kl(11,t?` (${t})`:``,n):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\nThe color object needs to have a \`main\` property or a \`${n}\` property.`);if(typeof e.main!=`string`)throw Error(process.env.NODE_ENV===`production`?Kl(12,t?` (${t})`:``,JSON.stringify(e.main)):`MUI: The color${t?` (${t})`:``} provided to augmentColor(color) is invalid.\n\`color.main\` should be a string, but \`${JSON.stringify(e.main)}\` was provided instead.\n Did you intend to use one of the following approaches? @@ -73,24 +73,24 @@ const theme1 = createTheme({ palette: { const theme2 = createTheme({ palette: { primary: { main: green[500] }, -} });`);return i?(zb(i,e,`light`,a,r),zb(i,e,`dark`,o,r)):(Rb(e,`light`,a,r),Rb(e,`dark`,o,r)),e.contrastText||(e.contrastText=f(e.main)),e},m;return t===`light`?m=Ib():t===`dark`&&(m=Lb()),process.env.NODE_ENV!==`production`&&(m||console.error(`MUI: The palette mode \`${t}\` is not supported.`)),Cu({common:{...Sb},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:wb,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r,...m},a)}var Jb,Yb,Xb=o((()=>{Jl(),Du(),z_(),Cb(),Tb(),Db(),kb(),ree(),iee(),Nb(),Fb(),Jb=Ib(),Yb=Lb()}));function Zb(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}var Qb=o((()=>{})),$b=o((()=>{uy(),yy(),Qb(),Jv()}));function ex(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}var tx=o((()=>{}));function nx(e){return Math.round(e*1e5)/1e5}function rx(e,t){let{fontFamily:n=ax,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;process.env.NODE_ENV!==`production`&&(typeof r!=`number`&&console.error("MUI: `fontSize` is required to be a number."),typeof c!=`number`&&console.error("MUI: `htmlFontSize` is required to be a number."));let 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===ax?{letterSpacing:`${nx(i/t)}em`}:{},...a,...l});return Cu({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,ix),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,ix),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var ix,ax,ox=o((()=>{Du(),ix={textTransform:`uppercase`},ax=`"Roboto", "Helvetica", "Arial", sans-serif`}));function sx(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${cx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${lx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${ux})`].join(`,`)}var cx,lx,ux,dx,fx=o((()=>{cx=.2,lx=.14,ux=.12,dx=[`none`,sx(0,2,1,-1,0,1,1,0,0,1,3,0),sx(0,3,1,-2,0,2,2,0,0,1,5,0),sx(0,3,3,-2,0,3,4,0,0,1,8,0),sx(0,2,4,-1,0,4,5,0,0,1,10,0),sx(0,3,5,-1,0,5,8,0,0,1,14,0),sx(0,3,5,-1,0,6,10,0,0,1,18,0),sx(0,4,5,-2,0,7,10,1,0,2,16,1),sx(0,5,5,-3,0,8,10,1,0,3,14,2),sx(0,5,6,-3,0,9,12,1,0,3,16,2),sx(0,6,6,-3,0,10,14,1,0,4,18,3),sx(0,6,7,-4,0,11,15,1,0,4,20,3),sx(0,7,8,-4,0,12,17,2,0,5,22,4),sx(0,7,8,-4,0,13,19,2,0,5,24,4),sx(0,7,9,-4,0,14,21,2,0,5,26,4),sx(0,8,9,-5,0,15,22,2,0,6,28,5),sx(0,8,10,-5,0,16,24,2,0,6,30,5),sx(0,8,11,-5,0,17,26,2,0,6,32,5),sx(0,9,11,-5,0,18,28,2,0,7,34,6),sx(0,9,12,-6,0,19,29,2,0,7,36,6),sx(0,10,13,-6,0,20,31,3,0,8,38,7),sx(0,10,13,-6,0,21,33,3,0,8,40,7),sx(0,10,14,-6,0,22,35,3,0,8,42,7),sx(0,11,14,-7,0,23,36,3,0,9,44,8),sx(0,11,15,-7,0,24,38,3,0,9,46,8)]}));function px(e){return`${Math.round(e)}ms`}function mx(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function hx(e){let t={...gx,...e.easing},n={..._x,...e.duration};return{getAutoHeightDuration:mx,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;if(process.env.NODE_ENV!==`production`){let t=e=>typeof e==`string`,n=e=>!Number.isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error(`MUI: Argument "props" must be a string or Array.`),!n(i)&&!t(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),t(a)||console.error(`MUI: Argument "easing" must be a string.`),!n(o)&&!t(o)&&console.error(`MUI: Argument "delay" must be a number or a string.`),typeof r!=`object`&&console.error([`MUI: Secong argument of transition.create must be an object.`,"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` -`)),Object.keys(s).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(`,`)}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:px(i)} ${a} ${typeof o==`string`?o:px(o)}`).join(`,`)},...e,easing:t,duration:n}}var gx,_x,vx=o((()=>{gx={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)`},_x={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}})),yx,bx=o((()=>{yx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}));function xx(e){return xu(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function Sx(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r{Jl(),Du(),z_(),Sb(),wb(),Eb(),Ob(),iee(),aee(),Mb(),Pb(),qb=Fb(),Jb=Ib()}));function Xb(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}var Zb=o((()=>{})),Qb=o((()=>{uy(),yy(),Zb(),Jv()}));function $b(e,t){return{toolbar:{minHeight:56,[e.up(`xs`)]:{"@media (orientation: landscape)":{minHeight:48}},[e.up(`sm`)]:{minHeight:64}},...t}}var ex=o((()=>{}));function tx(e){return Math.round(e*1e5)/1e5}function nx(e,t){let{fontFamily:n=ix,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;process.env.NODE_ENV!==`production`&&(typeof r!=`number`&&console.error("MUI: `fontSize` is required to be a number."),typeof c!=`number`&&console.error("MUI: `htmlFontSize` is required to be a number."));let 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===ix?{letterSpacing:`${tx(i/t)}em`}:{},...a,...l});return Cu({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,rx),caption:m(a,12,1.66,.4),overline:m(a,12,2.66,1,rx),inherit:{fontFamily:`inherit`,fontWeight:`inherit`,fontSize:`inherit`,lineHeight:`inherit`,letterSpacing:`inherit`}},d,{clone:!1})}var rx,ix,ax=o((()=>{Du(),rx={textTransform:`uppercase`},ix=`"Roboto", "Helvetica", "Arial", sans-serif`}));function ox(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${sx})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${cx})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${lx})`].join(`,`)}var sx,cx,lx,ux,dx=o((()=>{sx=.2,cx=.14,lx=.12,ux=[`none`,ox(0,2,1,-1,0,1,1,0,0,1,3,0),ox(0,3,1,-2,0,2,2,0,0,1,5,0),ox(0,3,3,-2,0,3,4,0,0,1,8,0),ox(0,2,4,-1,0,4,5,0,0,1,10,0),ox(0,3,5,-1,0,5,8,0,0,1,14,0),ox(0,3,5,-1,0,6,10,0,0,1,18,0),ox(0,4,5,-2,0,7,10,1,0,2,16,1),ox(0,5,5,-3,0,8,10,1,0,3,14,2),ox(0,5,6,-3,0,9,12,1,0,3,16,2),ox(0,6,6,-3,0,10,14,1,0,4,18,3),ox(0,6,7,-4,0,11,15,1,0,4,20,3),ox(0,7,8,-4,0,12,17,2,0,5,22,4),ox(0,7,8,-4,0,13,19,2,0,5,24,4),ox(0,7,9,-4,0,14,21,2,0,5,26,4),ox(0,8,9,-5,0,15,22,2,0,6,28,5),ox(0,8,10,-5,0,16,24,2,0,6,30,5),ox(0,8,11,-5,0,17,26,2,0,6,32,5),ox(0,9,11,-5,0,18,28,2,0,7,34,6),ox(0,9,12,-6,0,19,29,2,0,7,36,6),ox(0,10,13,-6,0,20,31,3,0,8,38,7),ox(0,10,13,-6,0,21,33,3,0,8,40,7),ox(0,10,14,-6,0,22,35,3,0,8,42,7),ox(0,11,14,-7,0,23,36,3,0,9,44,8),ox(0,11,15,-7,0,24,38,3,0,9,46,8)]}));function fx(e){return`${Math.round(e)}ms`}function px(e){if(!e)return 0;let t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function mx(e){let t={...hx,...e.easing},n={...gx,...e.duration};return{getAutoHeightDuration:px,create:(e=[`all`],r={})=>{let{duration:i=n.standard,easing:a=t.easeInOut,delay:o=0,...s}=r;if(process.env.NODE_ENV!==`production`){let t=e=>typeof e==`string`,n=e=>!Number.isNaN(parseFloat(e));!t(e)&&!Array.isArray(e)&&console.error(`MUI: Argument "props" must be a string or Array.`),!n(i)&&!t(i)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${i}.`),t(a)||console.error(`MUI: Argument "easing" must be a string.`),!n(o)&&!t(o)&&console.error(`MUI: Argument "delay" must be a number or a string.`),typeof r!=`object`&&console.error([`MUI: Secong argument of transition.create must be an object.`,"Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(` +`)),Object.keys(s).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(s).join(`,`)}].`)}return(Array.isArray(e)?e:[e]).map(e=>`${e} ${typeof i==`string`?i:fx(i)} ${a} ${typeof o==`string`?o:fx(o)}`).join(`,`)},...e,easing:t,duration:n}}var hx,gx,_x=o((()=>{hx={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)`},gx={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195}})),vx,yx=o((()=>{vx={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500}}));function bx(e){return xu(e)||e===void 0||typeof e==`string`||typeof e==`boolean`||typeof e==`number`||Array.isArray(e)}function xx(e={}){let t={...e};function n(e){let t=Object.entries(e);for(let r=0;r{Du()}));function wx(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}function Tx(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:O_(t,Dx(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${wx(n)})`:M_(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${wx(n)})`:A_(t,n)}})}function Ex(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(process.env.NODE_ENV===`production`?Kl(20):"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.");let d=qb({...a,colorSpace:l}),f=Uh(e),p=Cu(f,{mixins:ex(f.breakpoints,r),palette:d,shadows:dx.slice(),typography:rx(d,s),transitions:hx(o),zIndex:{...yx}});if(p=Cu(p,u),p=t.reduce((e,t)=>Cu(e,t),p),process.env.NODE_ENV!==`production`){let e=[`active`,`checked`,`completed`,`disabled`,`error`,`expanded`,`focused`,`focusVisible`,`required`,`selected`],t=(t,n)=>{let r;for(r in t){let i=t[r];if(e.includes(r)&&Object.keys(i).length>0){if(process.env.NODE_ENV!==`production`){let e=vg(``,r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,`You can not override it like this: `,JSON.stringify(t,null,2),``,`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),``,`https://mui.com/r/state-classes-guide`].join(` -`))}t[r]={}}}};Object.keys(p.components).forEach(e=>{let n=p.components[e].styleOverrides;n&&e.startsWith(`Mui`)&&t(n,e)})}return p.unstable_sxConfig={...bf,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Tf({sx:e,theme:this})},p.toRuntimeSource=Sx,Tx(p),p}var Dx,Ox=o((()=>{Jl(),Du(),Af(),Gh(),z_(),xg(),tx(),Xb(),ox(),fx(),vx(),bx(),Cx(),Dx=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{}));function jx(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function Mx(e){return e===`dark`?Px:[]}function Nx(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=qb({...t,colorSpace:i});return{palette:o,opacity:{...jx(o.mode),...n},overlays:r||Mx(o.mode),...a}}var Px,Fx=o((()=>{Xb(),Ax(),Px=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=kx(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`})}));function Ix(e){return!!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 Lx=o((()=>{})),Rx,zx=o((()=>{Rx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`]})),Bx,Vx=o((()=>{zx(),Bx=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 Rx(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 Hx(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Ux(e,t,n){!e[t]&&n&&(e[t]=n)}function Wx(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:T_(e)}function Gx(e,t){`${t}Channel`in e||(e[`${t}Channel`]=L_(Wx(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(). -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 Kx(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}function qx(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Nx({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Ex({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...jx(a),...n?.opacity},overlays:n?.overlays||Mx(a)},s}function Jx(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Ix,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=Xx(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(process.env.NODE_ENV===`production`?Kl(21,f):`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`);let b;o&&(b=`oklch`);let x=qx(b,v,y,u,f);h&&!v.light&&qx(b,v,h,void 0,`light`),g&&!v.dark&&qx(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Zb(x.typography),...x.font},spacing:Kx(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`&&(Ux(t.common,`background`,`#fff`),Ux(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Ux(t.common,`background`,`#000`),Ux(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===k_&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===j_&&(r=`#000 ${(n*100).toFixed(0)}%`),e===N_&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Hx(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Ux(t.Alert,`errorColor`,r(j_,o?p(`palette-error-light`):t.error.light,.6)),Ux(t.Alert,`infoColor`,r(j_,o?p(`palette-info-light`):t.info.light,.6)),Ux(t.Alert,`successColor`,r(j_,o?p(`palette-success-light`):t.success.light,.6)),Ux(t.Alert,`warningColor`,r(j_,o?p(`palette-warning-light`):t.warning.light,.6)),Ux(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Ux(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Ux(t.Alert,`successFilledBg`,n(`palette-success-main`)),Ux(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Ux(t.Alert,`errorFilledColor`,Yx(()=>t.getContrastText(t.error.main))),Ux(t.Alert,`infoFilledColor`,Yx(()=>t.getContrastText(t.info.main))),Ux(t.Alert,`successFilledColor`,Yx(()=>t.getContrastText(t.success.main))),Ux(t.Alert,`warningFilledColor`,Yx(()=>t.getContrastText(t.warning.main))),Ux(t.Alert,`errorStandardBg`,r(N_,o?p(`palette-error-light`):t.error.light,.9)),Ux(t.Alert,`infoStandardBg`,r(N_,o?p(`palette-info-light`):t.info.light,.9)),Ux(t.Alert,`successStandardBg`,r(N_,o?p(`palette-success-light`):t.success.light,.9)),Ux(t.Alert,`warningStandardBg`,r(N_,o?p(`palette-warning-light`):t.warning.light,.9)),Ux(t.Alert,`errorIconColor`,n(`palette-error-main`)),Ux(t.Alert,`infoIconColor`,n(`palette-info-main`)),Ux(t.Alert,`successIconColor`,n(`palette-success-main`)),Ux(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Ux(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Ux(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Ux(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Ux(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Ux(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Ux(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Ux(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Ux(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Ux(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Ux(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Ux(t.LinearProgress,`primaryBg`,r(N_,o?p(`palette-primary-main`):t.primary.main,.62)),Ux(t.LinearProgress,`secondaryBg`,r(N_,o?p(`palette-secondary-main`):t.secondary.main,.62)),Ux(t.LinearProgress,`errorBg`,r(N_,o?p(`palette-error-main`):t.error.main,.62)),Ux(t.LinearProgress,`infoBg`,r(N_,o?p(`palette-info-main`):t.info.main,.62)),Ux(t.LinearProgress,`successBg`,r(N_,o?p(`palette-success-main`):t.success.main,.62)),Ux(t.LinearProgress,`warningBg`,r(N_,o?p(`palette-warning-light`):t.warning.main,.62)),Ux(t.Skeleton,`bg`,b?r(k_,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Ux(t.Slider,`primaryTrack`,r(N_,o?p(`palette-primary-main`):t.primary.main,.62)),Ux(t.Slider,`secondaryTrack`,r(N_,o?p(`palette-secondary-main`):t.secondary.main,.62)),Ux(t.Slider,`errorTrack`,r(N_,o?p(`palette-error-main`):t.error.main,.62)),Ux(t.Slider,`infoTrack`,r(N_,o?p(`palette-info-main`):t.info.main,.62)),Ux(t.Slider,`successTrack`,r(N_,o?p(`palette-success-main`):t.success.main,.62)),Ux(t.Slider,`warningTrack`,r(N_,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(j_,o?p(`palette-background-default`):t.background.default,.6825):F_(t.background.default,.8);Ux(t.SnackbarContent,`bg`,e),Ux(t.SnackbarContent,`color`,Yx(()=>b?Yb.text.primary:t.getContrastText(e))),Ux(t.SpeedDialAction,`fabHoverBg`,F_(t.background.paper,.15)),Ux(t.StepConnector,`border`,n(`palette-grey-400`)),Ux(t.StepContent,`border`,n(`palette-grey-400`)),Ux(t.Switch,`defaultColor`,n(`palette-common-white`)),Ux(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Ux(t.Switch,`primaryDisabledColor`,r(N_,o?p(`palette-primary-main`):t.primary.main,.62)),Ux(t.Switch,`secondaryDisabledColor`,r(N_,o?p(`palette-secondary-main`):t.secondary.main,.62)),Ux(t.Switch,`errorDisabledColor`,r(N_,o?p(`palette-error-main`):t.error.main,.62)),Ux(t.Switch,`infoDisabledColor`,r(N_,o?p(`palette-info-main`):t.info.main,.62)),Ux(t.Switch,`successDisabledColor`,r(N_,o?p(`palette-success-main`):t.success.main,.62)),Ux(t.Switch,`warningDisabledColor`,r(N_,o?p(`palette-warning-main`):t.warning.main,.62)),Ux(t.TableCell,`border`,r(N_,k_(o?p(`palette-divider`):t.divider,1),.88)),Ux(t.Tooltip,`bg`,r(k_,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Ux(t.Alert,`errorColor`,r(N_,o?p(`palette-error-light`):t.error.light,.6)),Ux(t.Alert,`infoColor`,r(N_,o?p(`palette-info-light`):t.info.light,.6)),Ux(t.Alert,`successColor`,r(N_,o?p(`palette-success-light`):t.success.light,.6)),Ux(t.Alert,`warningColor`,r(N_,o?p(`palette-warning-light`):t.warning.light,.6)),Ux(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Ux(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Ux(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Ux(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Ux(t.Alert,`errorFilledColor`,Yx(()=>t.getContrastText(t.error.dark))),Ux(t.Alert,`infoFilledColor`,Yx(()=>t.getContrastText(t.info.dark))),Ux(t.Alert,`successFilledColor`,Yx(()=>t.getContrastText(t.success.dark))),Ux(t.Alert,`warningFilledColor`,Yx(()=>t.getContrastText(t.warning.dark))),Ux(t.Alert,`errorStandardBg`,r(j_,o?p(`palette-error-light`):t.error.light,.9)),Ux(t.Alert,`infoStandardBg`,r(j_,o?p(`palette-info-light`):t.info.light,.9)),Ux(t.Alert,`successStandardBg`,r(j_,o?p(`palette-success-light`):t.success.light,.9)),Ux(t.Alert,`warningStandardBg`,r(j_,o?p(`palette-warning-light`):t.warning.light,.9)),Ux(t.Alert,`errorIconColor`,n(`palette-error-main`)),Ux(t.Alert,`infoIconColor`,n(`palette-info-main`)),Ux(t.Alert,`successIconColor`,n(`palette-success-main`)),Ux(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Ux(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Ux(t.AppBar,`darkBg`,n(`palette-background-paper`)),Ux(t.AppBar,`darkColor`,n(`palette-text-primary`)),Ux(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Ux(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Ux(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Ux(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Ux(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Ux(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Ux(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Ux(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Ux(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Ux(t.LinearProgress,`primaryBg`,r(j_,o?p(`palette-primary-main`):t.primary.main,.5)),Ux(t.LinearProgress,`secondaryBg`,r(j_,o?p(`palette-secondary-main`):t.secondary.main,.5)),Ux(t.LinearProgress,`errorBg`,r(j_,o?p(`palette-error-main`):t.error.main,.5)),Ux(t.LinearProgress,`infoBg`,r(j_,o?p(`palette-info-main`):t.info.main,.5)),Ux(t.LinearProgress,`successBg`,r(j_,o?p(`palette-success-main`):t.success.main,.5)),Ux(t.LinearProgress,`warningBg`,r(j_,o?p(`palette-warning-main`):t.warning.main,.5)),Ux(t.Skeleton,`bg`,b?r(k_,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Ux(t.Slider,`primaryTrack`,r(j_,o?p(`palette-primary-main`):t.primary.main,.5)),Ux(t.Slider,`secondaryTrack`,r(j_,o?p(`palette-secondary-main`):t.secondary.main,.5)),Ux(t.Slider,`errorTrack`,r(j_,o?p(`palette-error-main`):t.error.main,.5)),Ux(t.Slider,`infoTrack`,r(j_,o?p(`palette-info-main`):t.info.main,.5)),Ux(t.Slider,`successTrack`,r(j_,o?p(`palette-success-main`):t.success.main,.5)),Ux(t.Slider,`warningTrack`,r(j_,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(N_,o?p(`palette-background-default`):t.background.default,.985):F_(t.background.default,.98);Ux(t.SnackbarContent,`bg`,e),Ux(t.SnackbarContent,`color`,Yx(()=>b?Jb.text.primary:t.getContrastText(e))),Ux(t.SpeedDialAction,`fabHoverBg`,F_(t.background.paper,.15)),Ux(t.StepConnector,`border`,n(`palette-grey-600`)),Ux(t.StepContent,`border`,n(`palette-grey-600`)),Ux(t.Switch,`defaultColor`,n(`palette-grey-300`)),Ux(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Ux(t.Switch,`primaryDisabledColor`,r(j_,o?p(`palette-primary-main`):t.primary.main,.55)),Ux(t.Switch,`secondaryDisabledColor`,r(j_,o?p(`palette-secondary-main`):t.secondary.main,.55)),Ux(t.Switch,`errorDisabledColor`,r(j_,o?p(`palette-error-main`):t.error.main,.55)),Ux(t.Switch,`infoDisabledColor`,r(j_,o?p(`palette-info-main`):t.info.main,.55)),Ux(t.Switch,`successDisabledColor`,r(j_,o?p(`palette-success-main`):t.success.main,.55)),Ux(t.Switch,`warningDisabledColor`,r(j_,o?p(`palette-warning-light`):t.warning.main,.55)),Ux(t.TableCell,`border`,r(j_,k_(o?p(`palette-divider`):t.divider,1),.68)),Ux(t.Tooltip,`bg`,r(k_,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Gx(t.background,`default`),Gx(t.background,`paper`),Gx(t.common,`background`),Gx(t.common,`onBackground`),Gx(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Ux(t[e],`mainChannel`,L_(Wx(n.main))),n.light&&Ux(t[e],`lightChannel`,L_(Wx(n.light))),n.dark&&Ux(t[e],`darkChannel`,L_(Wx(n.dark))),n.contrastText&&Ux(t[e],`contrastTextChannel`,L_(Wx(n.contrastText))),e===`text`&&(Gx(t[e],`primary`),Gx(t[e],`secondary`)),e===`action`&&(n.active&&Gx(t[e],`active`),n.selected&&Gx(t[e],`selected`)))})}),S=t.reduce((e,t)=>Cu(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:Bx(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=vy(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return zh(u.spacing,sd(this))},S.getColorSchemeSelector=by(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...bf,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Tf({sx:e,theme:this})},S.toRuntimeSource=Sx,S}var Yx,Xx,Zx=o((()=>{Jl(),Du(),xb(),Sd(),$b(),Af(),z_(),Ox(),Fx(),Lx(),Vx(),Cx(),Xb(),Yx=e=>{try{return e()}catch{}},Xx=(e=`mui`)=>dy(e)}));function Qx(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:qb({...n===!0?{}:n.palette,mode:t})})}function $x(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 Ex(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Ex({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Qx(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Qx(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),Jx({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var eS=o((()=>{Xb(),Zx(),Ox()})),tS,nS=o((()=>{eS(),tS=$x()})),rS,iS=o((()=>{rS=`$$material`}));function aS(){let e=Zh(tS);return process.env.NODE_ENV!==`production`&&oS.useDebugValue(e),e.$$material||e}var oS,sS=o((()=>{oS=u(p()),xb(),nS(),iS()}));function cS(e){return(0,uS.jsx)(ng,{...e,defaultTheme:tS,themeId:rS})}var lS,uS,dS=o((()=>{lS=u(du()),xb(),nS(),iS(),uS=g(),process.env.NODE_ENV!==`production`&&(cS.propTypes={styles:lS.default.oneOfType([lS.default.array,lS.default.func,lS.default.number,lS.default.object,lS.default.string,lS.default.bool])})})),fS=o((()=>{dS()}));function pS(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var mS=o((()=>{})),hS,gS=o((()=>{mS(),hS=e=>pS(e)&&e!==`classes`})),G,_S=o((()=>{Yg(),nS(),iS(),gS(),mS(),G=Vg({themeId:rS,defaultTheme:tS,rootShouldForwardProp:hS})}));function vS(e){return function(t){return(0,bS.jsx)(cS,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function yS(){return Df}var bS,xS=o((()=>{Af(),sS(),fS(),bS=g(),xb(),_S()})),SS,CS=o((()=>{xb(),SS=Bv}));function wS(e){return _v(e)}var TS,ES=o((()=>{p(),TS=u(du()),Cv(),g(),process.env.NODE_ENV!==`production`&&(TS.default.node,TS.default.object.isRequired)})),DS=o((()=>{ES()}));function aee(e){return vg(`MuiSvgIcon`,e)}var OS=o((()=>{wg(),xg(),Sg(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`])})),kS,AS,jS,MS,NS,PS,FS=o((()=>{kS=u(p()),AS=u(du()),mu(),_u(),Ql(),xS(),CS(),DS(),OS(),jS=g(),MS=e=>{let{color:t,fontSize:n,classes:r}=e;return hu({root:[`root`,t!==`inherit`&&`color${H(t)}`,`fontSize${H(n)}`]},aee,r)},NS=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${H(n.color)}`],t[`fontSize${H(n.fontSize)}`]]}})(SS(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`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}}]}))),PS=kS.forwardRef(function(e,t){let n=wS({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=kS.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=MS(m);return(0,jS.jsxs)(NS,{as:o,className:pu(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,jS.jsx)(`title`,{children:u}):null]})}),process.env.NODE_ENV!==`production`&&(PS.propTypes={children:AS.default.node,classes:AS.default.object,className:AS.default.string,color:AS.default.oneOfType([AS.default.oneOf([`inherit`,`action`,`disabled`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),AS.default.string]),component:AS.default.elementType,fontSize:AS.default.oneOfType([AS.default.oneOf([`inherit`,`large`,`medium`,`small`]),AS.default.string]),htmlColor:AS.default.string,inheritViewBox:AS.default.bool,shapeRendering:AS.default.string,sx:AS.default.oneOfType([AS.default.arrayOf(AS.default.oneOfType([AS.default.func,AS.default.object,AS.default.bool])),AS.default.func,AS.default.object]),titleAccess:AS.default.string,viewBox:AS.default.string}),PS.muiName=`SvgIcon`})),IS=o((()=>{FS(),OS(),OS()}));function LS(e,t){function n(n,r){return(0,zS.jsx)(PS,{"data-testid":process.env.NODE_ENV===`production`?void 0:`${t}Icon`,ref:r,...n,children:e})}return process.env.NODE_ENV!==`production`&&(n.displayName=`${t}Icon`),n.muiName=PS.muiName,RS.memo(RS.forwardRef(n))}var RS,zS,BS=o((()=>{RS=u(p()),IS(),zS=g()}));function VS(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var HS=o((()=>{})),US=o((()=>{HS(),HS()})),WS,GS=o((()=>{US(),WS=VS})),KS,qS=o((()=>{Dy(),KS=wy}));function JS(e){return e&&e.ownerDocument||document}var YS=o((()=>{})),XS=o((()=>{YS()})),ZS,QS=o((()=>{XS(),ZS=JS}));function $S(e){return JS(e).defaultView||window}var eC=o((()=>{XS()})),tC=o((()=>{eC()})),nC,rC=o((()=>{tC(),nC=$S}));function iC(e,t){if(process.env.NODE_ENV===`production`)return()=>()=>null;let n=t?{...t.propTypes}:null;return t=>(r,i,a,o,s,...c)=>{let l=s||i,u=n?.[l];if(u){let e=u(r,i,a,o,s,...c);if(e)return e}return r[i]!==void 0&&!r[t]?Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`):null}}var aC=o((()=>{})),oC=o((()=>{aC()})),sC,cC=o((()=>{oC(),sC=iC}));function lC(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var uC=o((()=>{})),dC=o((()=>{uC()})),fC,pC=o((()=>{u_(),fC=c_})),mC,hC=o((()=>{kv(),mC=Tv}));function gC(e,t,n,r,i){if(process.env.NODE_ENV===`production`)return null;let a=i||t;return e[t]===void 0?null:Error(`The prop \`${a}\` is not supported. Please remove it.`)}var _C=o((()=>{})),vC=o((()=>{_C()})),yC,bC=o((()=>{vC(),yC=gC}));function xC(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=SC.useRef(t!==void 0),[o,s]=SC.useState(n),c=a?t:o;if(process.env.NODE_ENV!==`production`){SC.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?``:`un`}controlled ${i} state of ${r} to be ${a?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",`More info: https://fb.me/react-controlled-components`].join(` -`))},[i,r,t]);let{current:e}=SC.useRef(n);SC.useEffect(()=>{!a&&JSON.stringify(n)!==JSON.stringify(e)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(` -`))},[JSON.stringify(n)])}return[c,SC.useCallback(e=>{a||s(e)},[])]}var SC,CC=o((()=>{SC=u(p())})),wC=o((()=>{CC(),CC()})),TC,EC=o((()=>{wC(),TC=xC}));function DC(e){let t=OC.useRef(e);return c_(()=>{t.current=e}),OC.useRef((...e)=>(0,t.current)(...e)).current}var OC,oee=o((()=>{OC=u(p()),u_()})),kC=o((()=>{oee()})),AC,jC=o((()=>{kC(),AC=DC}));function MC(...e){let t=NC.useRef(void 0),n=NC.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 NC.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var NC,PC=o((()=>{NC=u(p())})),FC=o((()=>{PC()})),IC,LC=o((()=>{FC(),IC=MC}));function RC(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function zC(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{RC(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=pu(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=pu(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var BC=o((()=>{mu()})),VC=o((()=>{Ql(),tu(),BS(),GS(),qS(),CS(),QS(),rC(),cC(),dC(),pC(),hC(),bC(),EC(),jC(),LC(),BC()})),HC=o((()=>{VC()}));function UC(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function WC(e){return parseFloat(e)}var see=o((()=>{}));function GC({props:e,name:t}){return i_({props:e,name:t,defaultTheme:tS,themeId:rS})}var cee=o((()=>{o_(),nS(),iS()}));function lee({theme:e,...t}){let n=`$$material`in e?e[rS]:void 0;return(0,uee.jsx)(Nv,{...t,themeId:n?rS:void 0,theme:n||e})}var uee,dee=o((()=>{p(),xb(),iS(),uee=g()})),fee=o((()=>{Jv()})),KC,qC,pee=o((()=>{KC=u(du()),fee(),g(),qC={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},process.env.NODE_ENV!==`production`&&(KC.default.string,KC.default.string,KC.default.string,KC.default.string,KC.default.string,KC.default.oneOf([`dark`,`light`,`system`]),KC.default.string,KC.default.string)})),mee,hee,gee,_ee,vee=o((()=>{Af(),xb(),eS(),ox(),iS(),pee(),g(),{CssVarsProvider:mee,useColorScheme:hee,getInitColorSchemeScript:gee}=ay({themeId:rS,theme:()=>$x({cssVariables:!0}),colorSchemeStorageKey:qC.colorSchemeStorageKey,modeStorageKey:qC.modeStorageKey,defaultColorScheme:{light:qC.defaultLightColorScheme,dark:qC.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:rx(e.palette,e.typography)};return t.unstable_sx=function(e){return Tf({sx:e,theme:this})},t}}),_ee=mee}));function yee({theme:e,...t}){let n=bee.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[rS]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,JC.jsx)(lee,{theme:n,...t}):(0,JC.jsx)(_ee,{theme:e,...t})}var bee,JC,xee=o((()=>{bee=u(p()),dee(),vee(),iS(),JC=g()})),YC=o((()=>{iS(),xb(),Ih(),eS(),Du(),see(),Jl(),vx(),Fx(),sS(),cee(),_S(),xee(),vee(),Zx(),Ax(),Lx(),ox(),tx(),zx()}));function See(e,t){return It(n=>Eo(n,e,t),[e,t])}function Cee(e){return e?iw.has(e)?iw.get(e):(aw+=1,iw.set(e,aw.toString()),iw.get(e)):`0`}function wee(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t===`root`?Cee(e.root):e[t]}`).toString()}function Tee(e){let t=wee(e),n=rw.get(t);if(!n){let r=new Map,i,a=new IntersectionObserver(t=>{t.forEach(t=>{let n=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&t.isVisible===void 0&&(t.isVisible=n),[...r.get(t.target)??[]].forEach(e=>{e(n,t)})})},e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},rw.set(t,n)}return n}function Eee(e,t,n={},r=jee){if(window.IntersectionObserver===void 0&&r!==void 0){let i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold==`number`?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:a,elements:o}=Tee(n),s=o.get(e)||[];return o.has(e)||o.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(o.delete(e),a.unobserve(e)),o.size===0&&(a.disconnect(),rw.delete(i))}}function Dee(e){return typeof e.children!=`function`}function Oee({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:a,skip:o,initialInView:s,fallbackInView:c,onChange:l}={}){let[u,d]=QC.useState(null),f=QC.useRef(l),p=QC.useRef(s),[m,h]=QC.useState({inView:!!s,entry:void 0});f.current=l,QC.useEffect(()=>{if(p.current===void 0&&(p.current=s),o||!u)return;let l;return l=Eee(u,(e,t)=>{let n=p.current;p.current=e,!(n===void 0&&!e)&&(h({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&a&&l&&(l(),l=void 0))},{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{l&&l()}},[Array.isArray(e)?e.toString():e,u,i,r,a,o,n,c,t]);let g=m.entry?.target,_=QC.useRef(void 0);!u&&g&&!a&&!o&&_.current!==g&&(_.current=g,h({inView:!!s,entry:void 0}),p.current=s);let v=[d,m.inView,m.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}function XC({fallback:e,resource:t}){let n=(0,$C.useContext)(ow),r=It(e=>Do(e,{}));if(!t)return e;let i=t.getLabel();return i?i.getValue(n||r||``)??(e||t.id):e}function ZC({border:e=!1,children:t=null,imagePlaceholder:n=Iee,label:r=void 0,labelled:i=!1,maxHeight:a=null,maxWidth:o=null,resource:s,style:c={},thumbnail:l=null}){let u=arguments[0];return(0,ew.jsxs)(Nee,{ownerState:u,children:[(0,ew.jsx)(sw,{placeholder:n,thumbnail:l,resource:s,maxHeight:a,maxWidth:o,style:c,border:e}),i&&(0,ew.jsx)(Pee,{ownerState:u,children:r||(0,ew.jsx)(XC,{resource:s})}),t]})}var QC,$C,ew,tw,kee,Aee,nw,rw,iw,aw,jee,Mee,ow,Nee,Pee,Fee,sw,Iee,cw,lw,uw,dw=o((()=>{Kr(),Ps(),Pc(),HC(),QC=u(p(),1),$C=u(p(),1),ew=g(),YC(),tw=Je(zt(),1),kee=Object.defineProperty,Aee=(e,t,n)=>t in e?kee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,nw=(e,t,n)=>Aee(e,typeof t==`symbol`?t:t+``,n),rw=new Map,iw=new WeakMap,aw=0,Mee=class extends QC.Component{constructor(e){super(e),nw(this,`node`,null),nw(this,`_unobserveCb`,null),nw(this,`lastInView`),nw(this,`handleNode`,e=>{this.node&&(this.unobserve(),!e&&!this.props.triggerOnce&&!this.props.skip&&(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=e||null,this.observeNode()}),nw(this,`handleChange`,(e,t)=>{let n=this.lastInView;this.lastInView=e,!(n===void 0&&!e)&&(e&&this.props.triggerOnce&&this.unobserve(),Dee(this.props)||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t))}),this.state={inView:!!e.initialInView,entry:void 0},this.lastInView=e.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:i,fallbackInView:a}=this.props;this.lastInView===void 0&&(this.lastInView=this.props.initialInView),this._unobserveCb=Eee(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:i},a)}unobserve(){this._unobserveCb&&=(this._unobserveCb(),null)}render(){let{children:e}=this.props;if(typeof e==`function`){let{inView:t,entry:n}=this.state;return e({inView:t,entry:n,ref:this.handleNode})}let{as:t,triggerOnce:n,threshold:r,root:i,rootMargin:a,onChange:o,skip:s,trackVisibility:c,delay:l,initialInView:u,fallbackInView:d,...f}=this.props;return QC.createElement(t||`div`,{ref:this.handleNode,...f},e)}},(`useInsertionEffect`in QC?QC.useInsertionEffect:void 0)??QC.useLayoutEffect??QC.useEffect,ow=(0,$C.createContext)(),XC.propTypes={fallback:tw.default.string,resource:tw.default.object.isRequired},Nee=G(`div`,{name:`IIIFThumbnail`,slot:`root`})({}),Pee=G(`span`,{name:`IIIFThumbnail`,slot:`label`})(({theme:e})=>({...e.typography.caption})),Fee=G(`img`,{name:`IIIFThumbnail`,slot:`image`})(()=>({height:`auto`,width:`auto`})),sw=({border:e=!1,placeholder:t,style:n={},thumbnail:r=null,resource:i,maxHeight:a=null,maxWidth:o=null,...s})=>{let{ref:c,inView:l}=Oee(),[u,d]=(0,$C.useState)(!1),[f,p]=(0,$C.useState)(!1),m=See(a,o),{notifyFailure:h,fallbackImage:g}=(0,$C.useContext)(Nc);(0,$C.useEffect)(()=>{u||!l||d(!0)},[l,u]);let _=(0,$C.useMemo)(()=>{if(r)return r;let e=m.get(i);if(e&&e.url)return e},[i,r,m]),v=(0,$C.useMemo)(()=>{let e={height:void 0,maxHeight:void 0,maxWidth:void 0,width:void 0};if(f&&g)return{...e,...n,maxWidth:o,maxHeight:a,objectFit:`contain`};if(!_)return{...n,height:a,width:o};let{height:t,width:r}=_;if(t&&r){if(a&&t>a||o&&r>o){let n=r/t;a&&o?o/a{p(!0),b&&h(b)},...s})},sw.propTypes={border:tw.default.bool,maxHeight:tw.default.number,maxWidth:tw.default.number,placeholder:tw.default.string.isRequired,resource:tw.default.object.isRequired,style:tw.default.object,thumbnail:tw.default.shape({height:tw.default.number,url:tw.default.string.isRequired,width:tw.default.number})},Iee=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mMMDQmtBwADgwF/Op8FmAAAAABJRU5ErkJggg==`,ZC.propTypes={border:tw.default.bool,children:tw.default.node,imagePlaceholder:tw.default.string,label:tw.default.string,labelled:tw.default.bool,maxHeight:tw.default.number,maxWidth:tw.default.number,resource:tw.default.object.isRequired,style:tw.default.object,thumbnail:tw.default.shape({height:tw.default.number,url:tw.default.string.isRequired,width:tw.default.number}),variant:tw.default.oneOf([`inside`,`outside`])},cw=R(Mt(e=>({thumbnailsConfig:Xr(e).thumbnails})),Ar(`IIIFThumbnail`))(ZC),lw=LS((0,ew.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`}),`SearchSharp`),uw=LS((0,ew.jsx)(`path`,{d:`M21.99 2H2v16h16l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z`}),`CommentSharp`)}));function fw(e){let t=pw.useRef({});return pw.useEffect(()=>{t.current=e}),t.current}var pw,Lee=o((()=>{pw=u(p())})),mw=o((()=>{Lee()}));function Ree(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=fw({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}}var zee=o((()=>{mw()}));function Bee(e){return typeof e.main==`string`}function Vee(e,t=[]){if(!Bee(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function hw(e=[]){return([,t])=>t&&Vee(t,e)}var gw=o((()=>{}));function Hee(e){return vg(`MuiBadge`,e)}var Uee,_w=o((()=>{wg(),xg(),Uee=Sg(`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`])}));function vw(e){return typeof e==`string`}var Wee=o((()=>{})),yw=o((()=>{Wee()}));function Gee(e,t,n){return e===void 0||vw(e)?t:{...t,ownerState:{...t.ownerState,...n}}}var Kee=o((()=>{yw()})),qee=o((()=>{Kee()}));function Jee(e,t,n){return typeof e==`function`?e(t,n):e}var Yee=o((()=>{})),Xee=o((()=>{Yee()}));function bw(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}var Zee=o((()=>{})),xw=o((()=>{Zee()}));function Qee(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}var $ee=o((()=>{})),ete=o((()=>{$ee()}));function tte(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=pu(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=bw({...i,...r}),s=Qee(r),c=Qee(i),l=t(o),u=pu(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}var nte=o((()=>{mu(),xw(),ete()})),rte=o((()=>{nte()}));function Sw(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=Jee(d[e],i),{props:{component:h,...g},internalRef:_}=tte({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=MC(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,Gee(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var Cw=o((()=>{FC(),qee(),Xee(),rte()}));function ite(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var ate,ww,Tw,ote,ste,cte,lte,ute,Ew,dte=o((()=>{ate=u(p()),ww=u(du()),mu(),mw(),_u(),zee(),xS(),CS(),gw(),DS(),Ql(),_w(),Cw(),Tw=g(),ote=10,ste=4,cte=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return hu({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${H(n.vertical)}${H(n.horizontal)}`,`anchorOrigin${H(n.vertical)}${H(n.horizontal)}${H(i)}`,`overlap${H(i)}`,t!=="default"&&`color${H(t)}`]},Hee,o)},lte=G(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),ute=G(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${H(n.anchorOrigin.vertical)}${H(n.anchorOrigin.horizontal)}${H(n.overlap)}`],n.color!=="default"&&t[`color${H(n.color)}`],n.invisible&&t.invisible]}})(SS(({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:ote,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(hw([`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:ste,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{let{vertical:t,horizontal:n}=e.anchorOrigin,r=e.overlap===`circular`?`14%`:0;return{"--Badge-translateX":n===`right`?`50%`:`-50%`,"--Badge-translateY":t===`top`?`-50%`:`50%`,top:t===`top`?r:`initial`,bottom:t===`bottom`?r:`initial`,right:n===`right`?r:`initial`,left:n===`left`?r:`initial`,transform:`scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))`,transformOrigin:`${n===`right`?`100%`:`0%`} ${t===`top`?`0%`:`100%`}`,[`&.${Uee.invisible}`]:{transform:`scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))`}}}}]}))),Ew=ate.forwardRef(function(e,t){let n=wS({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,components:s={},componentsProps:c={},children:l,overlap:u=`rectangular`,color:d=`default`,invisible:f=!1,max:p=99,badgeContent:m,slots:h,slotProps:g,showZero:_=!1,variant:v=`standard`,...y}=n,{badgeContent:b,invisible:x,max:S,displayValue:C}=Ree({max:p,invisible:f,badgeContent:m,showZero:_}),w=fw({anchorOrigin:ite(r),color:d,overlap:u,variant:v,badgeContent:m}),T=x||b==null&&v!==`dot`,{color:E=d,overlap:D=u,anchorOrigin:O,variant:k=v}=T?w:n,A=ite(O),j=k===`dot`?void 0:C,M={...n,badgeContent:b,invisible:T,max:S,displayValue:j,showZero:_,anchorOrigin:A,color:E,overlap:D,variant:k},ee=cte(M),N={slots:{root:h?.root??s.Root,badge:h?.badge??s.Badge},slotProps:{root:g?.root??c.root,badge:g?.badge??c.badge}},[P,F]=Sw(`root`,{elementType:lte,externalForwardedProps:{...N,...y},ownerState:M,className:pu(ee.root,i),ref:t,additionalProps:{as:o}}),[te,I]=Sw(`badge`,{elementType:ute,externalForwardedProps:N,ownerState:M,className:ee.badge});return(0,Tw.jsxs)(P,{...F,children:[l,(0,Tw.jsx)(te,{...I,children:j})]})}),process.env.NODE_ENV!==`production`&&(Ew.propTypes={anchorOrigin:ww.default.shape({horizontal:ww.default.oneOf([`left`,`right`]),vertical:ww.default.oneOf([`bottom`,`top`])}),badgeContent:ww.default.node,children:ww.default.node,classes:ww.default.object,className:ww.default.string,color:ww.default.oneOfType([ww.default.oneOf([`default`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),ww.default.string]),component:ww.default.elementType,components:ww.default.shape({Badge:ww.default.elementType,Root:ww.default.elementType}),componentsProps:ww.default.shape({badge:ww.default.oneOfType([ww.default.func,ww.default.object]),root:ww.default.oneOfType([ww.default.func,ww.default.object])}),invisible:ww.default.bool,max:ww.default.number,overlap:ww.default.oneOf([`circular`,`rectangular`]),showZero:ww.default.bool,slotProps:ww.default.shape({badge:ww.default.oneOfType([ww.default.func,ww.default.object]),root:ww.default.oneOfType([ww.default.func,ww.default.object])}),slots:ww.default.shape({badge:ww.default.elementType,root:ww.default.elementType}),sx:ww.default.oneOfType([ww.default.arrayOf(ww.default.oneOfType([ww.default.func,ww.default.object,ww.default.bool])),ww.default.func,ww.default.object]),variant:ww.default.oneOfType([ww.default.oneOf([`dot`,`standard`]),ww.default.string])})})),Dw=o((()=>{dte(),_w(),_w()}));function Ow(e,t){return process.env.NODE_ENV===`production`?()=>null:function(...n){return e(...n)||t(...n)}}var fte=o((()=>{})),kw=o((()=>{fte()})),Aw,jw,pte=o((()=>{Aw=u(du()),jw=Aw.default.oneOfType([Aw.default.func,Aw.default.object])})),Mw=o((()=>{pte()}));function mte(e){let{prototype:t={}}=e;return!!t.isReactComponent}function hte(e,t,n,r,i){let a=e[t],o=i||t;if(a==null||typeof window>`u`)return null;let s;return typeof a==`function`&&!mte(a)&&(s=`Did you accidentally provide a plain function component instead?`),a===_te.Fragment&&(s=`Did you accidentally provide a React.Fragment instead?`),s===void 0?null:Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://v7.mui.com/r/caveat-with-refs-guide`)}var gte,_te,Nw,vte=o((()=>{gte=u(du()),_te=u(p()),kw(),Nw=Ow(gte.default.elementType,hte)})),Pw=o((()=>{vte()}));function Fw(e){try{return e.matches(`:focus-visible`)}catch{process.env.NODE_ENV!==`production`&&!window.navigator.userAgent.includes(`jsdom`)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.",`Some components rely on this feature to work properly.`].join(` -`))}return!1}var yte=o((()=>{})),Iw=o((()=>{yte()}));function bte(e,t){let n=xte.useRef(Lw);return n.current===Lw&&(n.current=e(t)),n}var xte,Lw,Ste=o((()=>{xte=u(p()),Lw={}})),Cte=o((()=>{Ste()}));function wte(){return Ete.use()}function Tte(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var Rw,Ete,Dte=o((()=>{Rw=u(p()),Cte(),Ete=class e{static create(){return new e}static use(){let t=bte(e.create).current,[n,r]=Rw.useState(!1);return t.shouldMount=n,t.setShouldMount=r,Rw.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Tte(),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))}}})),Ote=o((()=>{Dte()}));function kte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Ate=o((()=>{}));function zw(e,t){return zw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},zw(e,t)}var jte=o((()=>{}));function Mte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,zw(e,t)}var Bw=o((()=>{jte()})),Nte=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1{process.env.NODE_ENV!==`production`&&(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3{Du()}));function Cx(e){return typeof e==`number`?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}function wx(e){Object.assign(e,{alpha(t,n){let r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n==`string`?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,`var(--$1Channel)`)} / ${typeof n==`string`?`calc(${n})`:n})`:O_(t,Ex(n))},lighten(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Cx(n)})`:M_(t,n)},darken(t,n){let r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Cx(n)})`:A_(t,n)}})}function Tx(e={},...t){let{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:o={},typography:s={},shape:c,colorSpace:l,...u}=e;if(e.vars&&e.generateThemeVars===void 0)throw Error(process.env.NODE_ENV===`production`?Kl(20):"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://v7.mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.");let d=Kb({...a,colorSpace:l}),f=Uh(e),p=Cu(f,{mixins:$b(f.breakpoints,r),palette:d,shadows:ux.slice(),typography:nx(d,s),transitions:mx(o),zIndex:{...vx}});if(p=Cu(p,u),p=t.reduce((e,t)=>Cu(e,t),p),process.env.NODE_ENV!==`production`){let e=[`active`,`checked`,`completed`,`disabled`,`error`,`expanded`,`focused`,`focusVisible`,`required`,`selected`],t=(t,n)=>{let r;for(r in t){let i=t[r];if(e.includes(r)&&Object.keys(i).length>0){if(process.env.NODE_ENV!==`production`){let e=vg(``,r);console.error([`MUI: The \`${n}\` component increases the CSS specificity of the \`${r}\` internal state.`,`You can not override it like this: `,JSON.stringify(t,null,2),``,`Instead, you need to use the '&.${e}' syntax:`,JSON.stringify({root:{[`&.${e}`]:i}},null,2),``,`https://mui.com/r/state-classes-guide`].join(` +`))}t[r]={}}}};Object.keys(p.components).forEach(e=>{let n=p.components[e].styleOverrides;n&&e.startsWith(`Mui`)&&t(n,e)})}return p.unstable_sxConfig={...bf,...u?.unstable_sxConfig},p.unstable_sx=function(e){return Tf({sx:e,theme:this})},p.toRuntimeSource=xx,wx(p),p}var Ex,Dx=o((()=>{Jl(),Du(),Af(),Gh(),z_(),xg(),ex(),Yb(),ax(),dx(),_x(),yx(),Sx(),Ex=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{}));function Ax(e){return{inputPlaceholder:e===`dark`?.5:.42,inputUnderline:e===`dark`?.7:.42,switchTrackDisabled:e===`dark`?.2:.12,switchTrack:e===`dark`?.3:.38}}function jx(e){return e===`dark`?Nx:[]}function Mx(e){let{palette:t={mode:`light`},opacity:n,overlays:r,colorSpace:i,...a}=e,o=Kb({...t,colorSpace:i});return{palette:o,opacity:{...Ax(o.mode),...n},overlays:r||jx(o.mode),...a}}var Nx,Px=o((()=>{Yb(),kx(),Nx=[...Array(25)].map((e,t)=>{if(t===0)return`none`;let n=Ox(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`})}));function Fx(e){return!!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 Ix=o((()=>{})),Lx,Rx=o((()=>{Lx=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:``}overlays-${n}`),`--${e?`${e}-`:``}palette-AppBar-darkBg`,`--${e?`${e}-`:``}palette-AppBar-darkColor`]})),zx,Bx=o((()=>{Rx(),zx=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 Lx(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 Vx(e,t){t.forEach(t=>{e[t]||(e[t]={})})}function Hx(e,t,n){!e[t]&&n&&(e[t]=n)}function Ux(e){return typeof e!=`string`||!e.startsWith(`hsl`)?e:T_(e)}function Wx(e,t){`${t}Channel`in e||(e[`${t}Channel`]=L_(Ux(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(). +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 Gx(e){return typeof e==`number`?`${e}px`:typeof e==`string`||typeof e==`function`||Array.isArray(e)?e:`8px`}function Kx(e,t,n,r,i){if(!n)return;n=n===!0?{}:n;let a=i===`dark`?`dark`:`light`;if(!r){t[i]=Mx({...n,palette:{mode:a,...n?.palette},colorSpace:e});return}let{palette:o,...s}=Tx({...r,palette:{mode:a,...n?.palette},colorSpace:e});return t[i]={...n,palette:o,opacity:{...Ax(a),...n?.opacity},overlays:n?.overlays||jx(a)},s}function qx(e={},...t){let{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a=`mui`,nativeColor:o=!1,shouldSkipGeneratingVar:s=Fx,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=Yx(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(process.env.NODE_ENV===`production`?Kl(21,f):`MUI: The \`colorSchemes.${f}\` option is either missing or invalid.`);let b;o&&(b=`oklch`);let x=Kx(b,v,y,u,f);h&&!v.light&&Kx(b,v,h,void 0,`light`),g&&!v.dark&&Kx(b,v,g,void 0,`dark`);let S={defaultColorScheme:f,...x,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:l,getCssVar:p,colorSchemes:v,font:{...Xb(x.typography),...x.font},spacing:Gx(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`&&(Hx(t.common,`background`,`#fff`),Hx(t.common,`onBackground`,`#000`)),t.mode===`dark`&&(Hx(t.common,`background`,`#000`),Hx(t.common,`onBackground`,`#fff`));function r(e,t,n){if(b){let r;return e===k_&&(r=`transparent ${((1-n)*100).toFixed(0)}%`),e===j_&&(r=`#000 ${(n*100).toFixed(0)}%`),e===N_&&(r=`#fff ${(n*100).toFixed(0)}%`),`color-mix(in ${b}, ${t}, ${r})`}return e(t,n)}if(Vx(t,[`Alert`,`AppBar`,`Avatar`,`Button`,`Chip`,`FilledInput`,`LinearProgress`,`Skeleton`,`Slider`,`SnackbarContent`,`SpeedDialAction`,`StepConnector`,`StepContent`,`Switch`,`TableCell`,`Tooltip`]),t.mode===`light`){Hx(t.Alert,`errorColor`,r(j_,o?p(`palette-error-light`):t.error.light,.6)),Hx(t.Alert,`infoColor`,r(j_,o?p(`palette-info-light`):t.info.light,.6)),Hx(t.Alert,`successColor`,r(j_,o?p(`palette-success-light`):t.success.light,.6)),Hx(t.Alert,`warningColor`,r(j_,o?p(`palette-warning-light`):t.warning.light,.6)),Hx(t.Alert,`errorFilledBg`,n(`palette-error-main`)),Hx(t.Alert,`infoFilledBg`,n(`palette-info-main`)),Hx(t.Alert,`successFilledBg`,n(`palette-success-main`)),Hx(t.Alert,`warningFilledBg`,n(`palette-warning-main`)),Hx(t.Alert,`errorFilledColor`,Jx(()=>t.getContrastText(t.error.main))),Hx(t.Alert,`infoFilledColor`,Jx(()=>t.getContrastText(t.info.main))),Hx(t.Alert,`successFilledColor`,Jx(()=>t.getContrastText(t.success.main))),Hx(t.Alert,`warningFilledColor`,Jx(()=>t.getContrastText(t.warning.main))),Hx(t.Alert,`errorStandardBg`,r(N_,o?p(`palette-error-light`):t.error.light,.9)),Hx(t.Alert,`infoStandardBg`,r(N_,o?p(`palette-info-light`):t.info.light,.9)),Hx(t.Alert,`successStandardBg`,r(N_,o?p(`palette-success-light`):t.success.light,.9)),Hx(t.Alert,`warningStandardBg`,r(N_,o?p(`palette-warning-light`):t.warning.light,.9)),Hx(t.Alert,`errorIconColor`,n(`palette-error-main`)),Hx(t.Alert,`infoIconColor`,n(`palette-info-main`)),Hx(t.Alert,`successIconColor`,n(`palette-success-main`)),Hx(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Hx(t.AppBar,`defaultBg`,n(`palette-grey-100`)),Hx(t.Avatar,`defaultBg`,n(`palette-grey-400`)),Hx(t.Button,`inheritContainedBg`,n(`palette-grey-300`)),Hx(t.Button,`inheritContainedHoverBg`,n(`palette-grey-A100`)),Hx(t.Chip,`defaultBorder`,n(`palette-grey-400`)),Hx(t.Chip,`defaultAvatarColor`,n(`palette-grey-700`)),Hx(t.Chip,`defaultIconColor`,n(`palette-grey-700`)),Hx(t.FilledInput,`bg`,`rgba(0, 0, 0, 0.06)`),Hx(t.FilledInput,`hoverBg`,`rgba(0, 0, 0, 0.09)`),Hx(t.FilledInput,`disabledBg`,`rgba(0, 0, 0, 0.12)`),Hx(t.LinearProgress,`primaryBg`,r(N_,o?p(`palette-primary-main`):t.primary.main,.62)),Hx(t.LinearProgress,`secondaryBg`,r(N_,o?p(`palette-secondary-main`):t.secondary.main,.62)),Hx(t.LinearProgress,`errorBg`,r(N_,o?p(`palette-error-main`):t.error.main,.62)),Hx(t.LinearProgress,`infoBg`,r(N_,o?p(`palette-info-main`):t.info.main,.62)),Hx(t.LinearProgress,`successBg`,r(N_,o?p(`palette-success-main`):t.success.main,.62)),Hx(t.LinearProgress,`warningBg`,r(N_,o?p(`palette-warning-light`):t.warning.main,.62)),Hx(t.Skeleton,`bg`,b?r(k_,o?p(`palette-text-primary`):t.text.primary,.11):`rgba(${n(`palette-text-primaryChannel`)} / 0.11)`),Hx(t.Slider,`primaryTrack`,r(N_,o?p(`palette-primary-main`):t.primary.main,.62)),Hx(t.Slider,`secondaryTrack`,r(N_,o?p(`palette-secondary-main`):t.secondary.main,.62)),Hx(t.Slider,`errorTrack`,r(N_,o?p(`palette-error-main`):t.error.main,.62)),Hx(t.Slider,`infoTrack`,r(N_,o?p(`palette-info-main`):t.info.main,.62)),Hx(t.Slider,`successTrack`,r(N_,o?p(`palette-success-main`):t.success.main,.62)),Hx(t.Slider,`warningTrack`,r(N_,o?p(`palette-warning-main`):t.warning.main,.62));let e=b?r(j_,o?p(`palette-background-default`):t.background.default,.6825):F_(t.background.default,.8);Hx(t.SnackbarContent,`bg`,e),Hx(t.SnackbarContent,`color`,Jx(()=>b?Jb.text.primary:t.getContrastText(e))),Hx(t.SpeedDialAction,`fabHoverBg`,F_(t.background.paper,.15)),Hx(t.StepConnector,`border`,n(`palette-grey-400`)),Hx(t.StepContent,`border`,n(`palette-grey-400`)),Hx(t.Switch,`defaultColor`,n(`palette-common-white`)),Hx(t.Switch,`defaultDisabledColor`,n(`palette-grey-100`)),Hx(t.Switch,`primaryDisabledColor`,r(N_,o?p(`palette-primary-main`):t.primary.main,.62)),Hx(t.Switch,`secondaryDisabledColor`,r(N_,o?p(`palette-secondary-main`):t.secondary.main,.62)),Hx(t.Switch,`errorDisabledColor`,r(N_,o?p(`palette-error-main`):t.error.main,.62)),Hx(t.Switch,`infoDisabledColor`,r(N_,o?p(`palette-info-main`):t.info.main,.62)),Hx(t.Switch,`successDisabledColor`,r(N_,o?p(`palette-success-main`):t.success.main,.62)),Hx(t.Switch,`warningDisabledColor`,r(N_,o?p(`palette-warning-main`):t.warning.main,.62)),Hx(t.TableCell,`border`,r(N_,k_(o?p(`palette-divider`):t.divider,1),.88)),Hx(t.Tooltip,`bg`,r(k_,o?p(`palette-grey-700`):t.grey[700],.92))}if(t.mode===`dark`){Hx(t.Alert,`errorColor`,r(N_,o?p(`palette-error-light`):t.error.light,.6)),Hx(t.Alert,`infoColor`,r(N_,o?p(`palette-info-light`):t.info.light,.6)),Hx(t.Alert,`successColor`,r(N_,o?p(`palette-success-light`):t.success.light,.6)),Hx(t.Alert,`warningColor`,r(N_,o?p(`palette-warning-light`):t.warning.light,.6)),Hx(t.Alert,`errorFilledBg`,n(`palette-error-dark`)),Hx(t.Alert,`infoFilledBg`,n(`palette-info-dark`)),Hx(t.Alert,`successFilledBg`,n(`palette-success-dark`)),Hx(t.Alert,`warningFilledBg`,n(`palette-warning-dark`)),Hx(t.Alert,`errorFilledColor`,Jx(()=>t.getContrastText(t.error.dark))),Hx(t.Alert,`infoFilledColor`,Jx(()=>t.getContrastText(t.info.dark))),Hx(t.Alert,`successFilledColor`,Jx(()=>t.getContrastText(t.success.dark))),Hx(t.Alert,`warningFilledColor`,Jx(()=>t.getContrastText(t.warning.dark))),Hx(t.Alert,`errorStandardBg`,r(j_,o?p(`palette-error-light`):t.error.light,.9)),Hx(t.Alert,`infoStandardBg`,r(j_,o?p(`palette-info-light`):t.info.light,.9)),Hx(t.Alert,`successStandardBg`,r(j_,o?p(`palette-success-light`):t.success.light,.9)),Hx(t.Alert,`warningStandardBg`,r(j_,o?p(`palette-warning-light`):t.warning.light,.9)),Hx(t.Alert,`errorIconColor`,n(`palette-error-main`)),Hx(t.Alert,`infoIconColor`,n(`palette-info-main`)),Hx(t.Alert,`successIconColor`,n(`palette-success-main`)),Hx(t.Alert,`warningIconColor`,n(`palette-warning-main`)),Hx(t.AppBar,`defaultBg`,n(`palette-grey-900`)),Hx(t.AppBar,`darkBg`,n(`palette-background-paper`)),Hx(t.AppBar,`darkColor`,n(`palette-text-primary`)),Hx(t.Avatar,`defaultBg`,n(`palette-grey-600`)),Hx(t.Button,`inheritContainedBg`,n(`palette-grey-800`)),Hx(t.Button,`inheritContainedHoverBg`,n(`palette-grey-700`)),Hx(t.Chip,`defaultBorder`,n(`palette-grey-700`)),Hx(t.Chip,`defaultAvatarColor`,n(`palette-grey-300`)),Hx(t.Chip,`defaultIconColor`,n(`palette-grey-300`)),Hx(t.FilledInput,`bg`,`rgba(255, 255, 255, 0.09)`),Hx(t.FilledInput,`hoverBg`,`rgba(255, 255, 255, 0.13)`),Hx(t.FilledInput,`disabledBg`,`rgba(255, 255, 255, 0.12)`),Hx(t.LinearProgress,`primaryBg`,r(j_,o?p(`palette-primary-main`):t.primary.main,.5)),Hx(t.LinearProgress,`secondaryBg`,r(j_,o?p(`palette-secondary-main`):t.secondary.main,.5)),Hx(t.LinearProgress,`errorBg`,r(j_,o?p(`palette-error-main`):t.error.main,.5)),Hx(t.LinearProgress,`infoBg`,r(j_,o?p(`palette-info-main`):t.info.main,.5)),Hx(t.LinearProgress,`successBg`,r(j_,o?p(`palette-success-main`):t.success.main,.5)),Hx(t.LinearProgress,`warningBg`,r(j_,o?p(`palette-warning-main`):t.warning.main,.5)),Hx(t.Skeleton,`bg`,b?r(k_,o?p(`palette-text-primary`):t.text.primary,.13):`rgba(${n(`palette-text-primaryChannel`)} / 0.13)`),Hx(t.Slider,`primaryTrack`,r(j_,o?p(`palette-primary-main`):t.primary.main,.5)),Hx(t.Slider,`secondaryTrack`,r(j_,o?p(`palette-secondary-main`):t.secondary.main,.5)),Hx(t.Slider,`errorTrack`,r(j_,o?p(`palette-error-main`):t.error.main,.5)),Hx(t.Slider,`infoTrack`,r(j_,o?p(`palette-info-main`):t.info.main,.5)),Hx(t.Slider,`successTrack`,r(j_,o?p(`palette-success-main`):t.success.main,.5)),Hx(t.Slider,`warningTrack`,r(j_,o?p(`palette-warning-light`):t.warning.main,.5));let e=b?r(N_,o?p(`palette-background-default`):t.background.default,.985):F_(t.background.default,.98);Hx(t.SnackbarContent,`bg`,e),Hx(t.SnackbarContent,`color`,Jx(()=>b?qb.text.primary:t.getContrastText(e))),Hx(t.SpeedDialAction,`fabHoverBg`,F_(t.background.paper,.15)),Hx(t.StepConnector,`border`,n(`palette-grey-600`)),Hx(t.StepContent,`border`,n(`palette-grey-600`)),Hx(t.Switch,`defaultColor`,n(`palette-grey-300`)),Hx(t.Switch,`defaultDisabledColor`,n(`palette-grey-600`)),Hx(t.Switch,`primaryDisabledColor`,r(j_,o?p(`palette-primary-main`):t.primary.main,.55)),Hx(t.Switch,`secondaryDisabledColor`,r(j_,o?p(`palette-secondary-main`):t.secondary.main,.55)),Hx(t.Switch,`errorDisabledColor`,r(j_,o?p(`palette-error-main`):t.error.main,.55)),Hx(t.Switch,`infoDisabledColor`,r(j_,o?p(`palette-info-main`):t.info.main,.55)),Hx(t.Switch,`successDisabledColor`,r(j_,o?p(`palette-success-main`):t.success.main,.55)),Hx(t.Switch,`warningDisabledColor`,r(j_,o?p(`palette-warning-light`):t.warning.main,.55)),Hx(t.TableCell,`border`,r(j_,k_(o?p(`palette-divider`):t.divider,1),.68)),Hx(t.Tooltip,`bg`,r(k_,o?p(`palette-grey-700`):t.grey[700],.92))}o||(Wx(t.background,`default`),Wx(t.background,`paper`),Wx(t.common,`background`),Wx(t.common,`onBackground`),Wx(t,`divider`)),Object.keys(t).forEach(e=>{let n=t[e];e!==`tonalOffset`&&!o&&n&&typeof n==`object`&&(n.main&&Hx(t[e],`mainChannel`,L_(Ux(n.main))),n.light&&Hx(t[e],`lightChannel`,L_(Ux(n.light))),n.dark&&Hx(t[e],`darkChannel`,L_(Ux(n.dark))),n.contrastText&&Hx(t[e],`contrastTextChannel`,L_(Ux(n.contrastText))),e===`text`&&(Wx(t[e],`primary`),Wx(t[e],`secondary`)),e===`action`&&(n.active&&Wx(t[e],`active`),n.selected&&Wx(t[e],`selected`)))})}),S=t.reduce((e,t)=>Cu(e,t),S);let C={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:s,getSelector:zx(S),enableContrastVars:o},{vars:w,generateThemeVars:T,generateStyleSheets:E}=vy(S,C);return S.vars=w,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([e,t])=>{S[e]=t}),S.generateThemeVars=T,S.generateStyleSheets=E,S.generateSpacing=function(){return zh(u.spacing,sd(this))},S.getColorSchemeSelector=ree(c),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=s,S.unstable_sxConfig={...bf,...u?.unstable_sxConfig},S.unstable_sx=function(e){return Tf({sx:e,theme:this})},S.toRuntimeSource=xx,S}var Jx,Yx,Xx=o((()=>{Jl(),Du(),bb(),Sd(),Qb(),Af(),z_(),Dx(),Px(),Ix(),Bx(),Sx(),Yb(),Jx=e=>{try{return e()}catch{}},Yx=(e=`mui`)=>dy(e)}));function Zx(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Kb({...n===!0?{}:n.palette,mode:t})})}function Qx(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 Tx(e,...t);let r=n;`palette`in e||l[s]&&(l[s]===!0?s===`dark`&&(r={mode:`dark`}):r=l[s].palette);let i=Tx({...e,palette:r},...t);return i.defaultColorScheme=s,i.colorSchemes=l,i.palette.mode===`light`&&(i.colorSchemes.light={...l.light!==!0&&l.light,palette:i.palette},Zx(i,`dark`,l.dark)),i.palette.mode===`dark`&&(i.colorSchemes.dark={...l.dark!==!0&&l.dark,palette:i.palette},Zx(i,`light`,l.light)),i}return!n&&!(`light`in l)&&s===`light`&&(l.light=!0),qx({...o,colorSchemes:l,defaultColorScheme:s,...typeof r!=`boolean`&&r},...t)}var $x=o((()=>{Yb(),Xx(),Dx()})),eS,tS=o((()=>{$x(),eS=Qx()})),nS,rS=o((()=>{nS=`$$material`}));function iS(){let e=Zh(eS);return process.env.NODE_ENV!==`production`&&aS.useDebugValue(e),e.$$material||e}var aS,oS=o((()=>{aS=u(p()),bb(),tS(),rS()}));function sS(e){return(0,lS.jsx)(ng,{...e,defaultTheme:eS,themeId:nS})}var cS,lS,uS=o((()=>{cS=u(du()),bb(),tS(),rS(),lS=g(),process.env.NODE_ENV!==`production`&&(sS.propTypes={styles:cS.default.oneOfType([cS.default.array,cS.default.func,cS.default.number,cS.default.object,cS.default.string,cS.default.bool])})})),dS=o((()=>{uS()}));function fS(e){return e!==`ownerState`&&e!==`theme`&&e!==`sx`&&e!==`as`}var pS=o((()=>{})),mS,hS=o((()=>{pS(),mS=e=>fS(e)&&e!==`classes`})),G,gS=o((()=>{Yg(),tS(),rS(),hS(),pS(),G=Vg({themeId:nS,defaultTheme:eS,rootShouldForwardProp:mS})}));function _S(e){return function(t){return(0,yS.jsx)(sS,{styles:typeof e==`function`?n=>e({theme:n,...t}):e})}}function vS(){return Df}var yS,bS=o((()=>{Af(),oS(),dS(),yS=g(),bb(),gS()})),xS,SS=o((()=>{bb(),xS=Bv}));function CS(e){return _v(e)}var wS,TS=o((()=>{p(),wS=u(du()),Cv(),g(),process.env.NODE_ENV!==`production`&&(wS.default.node,wS.default.object.isRequired)})),ES=o((()=>{TS()}));function oee(e){return vg(`MuiSvgIcon`,e)}var DS=o((()=>{wg(),xg(),Sg(`MuiSvgIcon`,[`root`,`colorPrimary`,`colorSecondary`,`colorAction`,`colorError`,`colorDisabled`,`fontSizeInherit`,`fontSizeSmall`,`fontSizeMedium`,`fontSizeLarge`])})),OS,kS,AS,jS,MS,NS,PS=o((()=>{OS=u(p()),kS=u(du()),mu(),_u(),Ql(),bS(),SS(),ES(),DS(),AS=g(),jS=e=>{let{color:t,fontSize:n,classes:r}=e;return hu({root:[`root`,t!==`inherit`&&`color${H(t)}`,`fontSize${H(n)}`]},oee,r)},MS=G(`svg`,{name:`MuiSvgIcon`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.color!==`inherit`&&t[`color${H(n.color)}`],t[`fontSize${H(n.fontSize)}`]]}})(xS(({theme:e})=>({userSelect:`none`,width:`1em`,height:`1em`,display:`inline-block`,flexShrink:0,transition:e.transitions?.create?.(`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}}]}))),NS=OS.forwardRef(function(e,t){let n=CS({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=OS.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=jS(m);return(0,AS.jsxs)(MS,{as:o,className:pu(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,AS.jsx)(`title`,{children:u}):null]})}),process.env.NODE_ENV!==`production`&&(NS.propTypes={children:kS.default.node,classes:kS.default.object,className:kS.default.string,color:kS.default.oneOfType([kS.default.oneOf([`inherit`,`action`,`disabled`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),kS.default.string]),component:kS.default.elementType,fontSize:kS.default.oneOfType([kS.default.oneOf([`inherit`,`large`,`medium`,`small`]),kS.default.string]),htmlColor:kS.default.string,inheritViewBox:kS.default.bool,shapeRendering:kS.default.string,sx:kS.default.oneOfType([kS.default.arrayOf(kS.default.oneOfType([kS.default.func,kS.default.object,kS.default.bool])),kS.default.func,kS.default.object]),titleAccess:kS.default.string,viewBox:kS.default.string}),NS.muiName=`SvgIcon`})),FS=o((()=>{PS(),DS(),DS()}));function IS(e,t){function n(n,r){return(0,RS.jsx)(NS,{"data-testid":process.env.NODE_ENV===`production`?void 0:`${t}Icon`,ref:r,...n,children:e})}return process.env.NODE_ENV!==`production`&&(n.displayName=`${t}Icon`),n.muiName=NS.muiName,LS.memo(LS.forwardRef(n))}var LS,RS,zS=o((()=>{LS=u(p()),FS(),RS=g()}));function BS(e,t=166){let n;function r(...r){clearTimeout(n),n=setTimeout(()=>{e.apply(this,r)},t)}return r.clear=()=>{clearTimeout(n)},r}var VS=o((()=>{})),HS=o((()=>{VS(),VS()})),US,WS=o((()=>{HS(),US=BS})),GS,KS=o((()=>{Ey(),GS=Cy}));function qS(e){return e&&e.ownerDocument||document}var JS=o((()=>{})),YS=o((()=>{JS()})),XS,ZS=o((()=>{YS(),XS=qS}));function QS(e){return qS(e).defaultView||window}var $S=o((()=>{YS()})),eC=o((()=>{$S()})),tC,nC=o((()=>{eC(),tC=QS}));function rC(e,t){if(process.env.NODE_ENV===`production`)return()=>()=>null;let n=t?{...t.propTypes}:null;return t=>(r,i,a,o,s,...c)=>{let l=s||i,u=n?.[l];if(u){let e=u(r,i,a,o,s,...c);if(e)return e}return r[i]!==void 0&&!r[t]?Error(`The prop \`${l}\` of \`${e}\` can only be used together with the \`${t}\` prop.`):null}}var iC=o((()=>{})),aC=o((()=>{iC()})),oC,sC=o((()=>{aC(),oC=rC}));function cC(e,t){typeof e==`function`?e(t):e&&(e.current=t)}var lC=o((()=>{})),uC=o((()=>{lC()})),dC,fC=o((()=>{u_(),dC=c_})),pC,mC=o((()=>{kv(),pC=Tv}));function hC(e,t,n,r,i){if(process.env.NODE_ENV===`production`)return null;let a=i||t;return e[t]===void 0?null:Error(`The prop \`${a}\` is not supported. Please remove it.`)}var gC=o((()=>{})),_C=o((()=>{gC()})),vC,yC=o((()=>{_C(),vC=hC}));function bC(e){let{controlled:t,default:n,name:r,state:i=`value`}=e,{current:a}=xC.useRef(t!==void 0),[o,s]=xC.useState(n),c=a?t:o;if(process.env.NODE_ENV!==`production`){xC.useEffect(()=>{a!==(t!==void 0)&&console.error([`MUI: A component is changing the ${a?``:`un`}controlled ${i} state of ${r} to be ${a?`un`:``}controlled.`,`Elements should not switch from uncontrolled to controlled (or vice versa).`,`Decide between using a controlled or uncontrolled ${r} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.",`More info: https://fb.me/react-controlled-components`].join(` +`))},[i,r,t]);let{current:e}=xC.useRef(n);xC.useEffect(()=>{!a&&JSON.stringify(n)!==JSON.stringify(e)&&console.error([`MUI: A component is changing the default ${i} state of an uncontrolled ${r} after being initialized. To suppress this warning opt to use a controlled ${r}.`].join(` +`))},[JSON.stringify(n)])}return[c,xC.useCallback(e=>{a||s(e)},[])]}var xC,SC=o((()=>{xC=u(p())})),CC=o((()=>{SC(),SC()})),wC,TC=o((()=>{CC(),wC=bC}));function EC(e){let t=DC.useRef(e);return c_(()=>{t.current=e}),DC.useRef((...e)=>(0,t.current)(...e)).current}var DC,see=o((()=>{DC=u(p()),u_()})),OC=o((()=>{see()})),kC,AC=o((()=>{OC(),kC=EC}));function jC(...e){let t=MC.useRef(void 0),n=MC.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 MC.useMemo(()=>e.every(e=>e==null)?null:e=>{t.current&&=(t.current(),void 0),e!=null&&(t.current=n(e))},e)}var MC,NC=o((()=>{MC=u(p())})),PC=o((()=>{NC()})),FC,IC=o((()=>{PC(),FC=jC}));function LC(e,t){let n=e.charCodeAt(2);return e[0]===`o`&&e[1]===`n`&&n>=65&&n<=90&&typeof t==`function`}function RC(e,t){if(!e)return t;function n(e,t){let n={};return Object.keys(t).forEach(r=>{LC(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=pu(r?.className,i?.className,a?.className),s=n(a,i);return{...i,...a,...s,...!!o&&{className:o},...i?.style&&a?.style&&{style:{...i.style,...a.style}},...i?.sx&&a?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(a.sx)?a.sx:[a.sx]]}}};let r=t,i=n(e,r),a=pu(r?.className,e?.className);return{...t,...e,...i,...!!a&&{className:a},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}var zC=o((()=>{mu()})),BC=o((()=>{Ql(),tu(),zS(),WS(),KS(),SS(),ZS(),nC(),sC(),uC(),fC(),mC(),yC(),TC(),AC(),IC(),zC()})),VC=o((()=>{BC()}));function HC(e){return String(e).match(/[\d.\-+]*\s*(.*)/)[1]||``}function UC(e){return parseFloat(e)}var cee=o((()=>{}));function WC({props:e,name:t}){return i_({props:e,name:t,defaultTheme:eS,themeId:nS})}var GC=o((()=>{o_(),tS(),rS()}));function lee({theme:e,...t}){let n=`$$material`in e?e[nS]:void 0;return(0,uee.jsx)(Nv,{...t,themeId:n?nS:void 0,theme:n||e})}var uee,dee=o((()=>{p(),bb(),rS(),uee=g()})),fee=o((()=>{Jv()})),KC,qC,pee=o((()=>{KC=u(du()),fee(),g(),qC={attribute:`data-mui-color-scheme`,colorSchemeStorageKey:`mui-color-scheme`,defaultLightColorScheme:`light`,defaultDarkColorScheme:`dark`,modeStorageKey:`mui-mode`},process.env.NODE_ENV!==`production`&&(KC.default.string,KC.default.string,KC.default.string,KC.default.string,KC.default.string,KC.default.oneOf([`dark`,`light`,`system`]),KC.default.string,KC.default.string)})),mee,hee,gee,_ee,vee=o((()=>{Af(),bb(),$x(),ax(),rS(),pee(),g(),{CssVarsProvider:mee,useColorScheme:hee,getInitColorSchemeScript:gee}=ay({themeId:nS,theme:()=>Qx({cssVariables:!0}),colorSchemeStorageKey:qC.colorSchemeStorageKey,modeStorageKey:qC.modeStorageKey,defaultColorScheme:{light:qC.defaultLightColorScheme,dark:qC.defaultDarkColorScheme},resolveTheme:e=>{let t={...e,typography:nx(e.palette,e.typography)};return t.unstable_sx=function(e){return Tf({sx:e,theme:this})},t}}),_ee=mee}));function yee({theme:e,...t}){let n=bee.useMemo(()=>{if(typeof e==`function`)return e;let t=`$$material`in e?e[nS]:e;return`colorSchemes`in t?null:`vars`in t?e:{...e,vars:null}},[e]);return n?(0,xee.jsx)(lee,{theme:n,...t}):(0,xee.jsx)(_ee,{theme:e,...t})}var bee,xee,See=o((()=>{bee=u(p()),dee(),vee(),rS(),xee=g()})),JC=o((()=>{rS(),bb(),Ih(),$x(),Du(),cee(),Jl(),_x(),Px(),oS(),GC(),gS(),See(),vee(),Xx(),kx(),Ix(),ax(),ex(),Rx()}));function Cee(e,t){return It(n=>Eo(n,e,t),[e,t])}function wee(e){return e?rw.has(e)?rw.get(e):(iw+=1,rw.set(e,iw.toString()),rw.get(e)):`0`}function Tee(e){return Object.keys(e).sort().filter(t=>e[t]!==void 0).map(t=>`${t}_${t===`root`?wee(e.root):e[t]}`).toString()}function Eee(e){let t=Tee(e),n=nw.get(t);if(!n){let r=new Map,i,a=new IntersectionObserver(t=>{t.forEach(t=>{let n=t.isIntersecting&&i.some(e=>t.intersectionRatio>=e);e.trackVisibility&&t.isVisible===void 0&&(t.isVisible=n),[...r.get(t.target)??[]].forEach(e=>{e(n,t)})})},e);i=a.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:a,elements:r},nw.set(t,n)}return n}function Dee(e,t,n={},r=Mee){if(window.IntersectionObserver===void 0&&r!==void 0){let i=e.getBoundingClientRect();return t(r,{isIntersecting:r,target:e,intersectionRatio:typeof n.threshold==`number`?n.threshold:0,time:0,boundingClientRect:i,intersectionRect:i,rootBounds:i}),()=>{}}let{id:i,observer:a,elements:o}=Eee(n),s=o.get(e)||[];return o.has(e)||o.set(e,s),s.push(t),a.observe(e),function(){s.splice(s.indexOf(t),1),s.length===0&&(o.delete(e),a.unobserve(e)),o.size===0&&(a.disconnect(),nw.delete(i))}}function Oee(e){return typeof e.children!=`function`}function kee({threshold:e,delay:t,trackVisibility:n,rootMargin:r,root:i,triggerOnce:a,skip:o,initialInView:s,fallbackInView:c,onChange:l}={}){let[u,d]=ZC.useState(null),f=ZC.useRef(l),p=ZC.useRef(s),[m,h]=ZC.useState({inView:!!s,entry:void 0});f.current=l,ZC.useEffect(()=>{if(p.current===void 0&&(p.current=s),o||!u)return;let l;return l=Dee(u,(e,t)=>{let n=p.current;p.current=e,!(n===void 0&&!e)&&(h({inView:e,entry:t}),f.current&&f.current(e,t),t.isIntersecting&&a&&l&&(l(),l=void 0))},{root:i,rootMargin:r,threshold:e,trackVisibility:n,delay:t},c),()=>{l&&l()}},[Array.isArray(e)?e.toString():e,u,i,r,a,o,n,c,t]);let g=m.entry?.target,_=ZC.useRef(void 0);!u&&g&&!a&&!o&&_.current!==g&&(_.current=g,h({inView:!!s,entry:void 0}),p.current=s);let v=[d,m.inView,m.entry];return v.ref=v[0],v.inView=v[1],v.entry=v[2],v}function YC({fallback:e,resource:t}){let n=(0,QC.useContext)(aw),r=It(e=>Do(e,{}));if(!t)return e;let i=t.getLabel();return i?i.getValue(n||r||``)??(e||t.id):e}function XC({border:e=!1,children:t=null,imagePlaceholder:n=Ree,label:r=void 0,labelled:i=!1,maxHeight:a=null,maxWidth:o=null,resource:s,style:c={},thumbnail:l=null}){let u=arguments[0];return(0,$C.jsxs)(Pee,{ownerState:u,children:[(0,$C.jsx)(Lee,{placeholder:n,thumbnail:l,resource:s,maxHeight:a,maxWidth:o,style:c,border:e}),i&&(0,$C.jsx)(Fee,{ownerState:u,children:r||(0,$C.jsx)(YC,{resource:s})}),t]})}var ZC,QC,$C,ew,Aee,jee,tw,nw,rw,iw,Mee,Nee,aw,Pee,Fee,Iee,Lee,Ree,ow,sw,cw,lw=o((()=>{Kr(),Ps(),Pc(),VC(),ZC=u(p(),1),QC=u(p(),1),$C=g(),JC(),ew=Je(zt(),1),Aee=Object.defineProperty,jee=(e,t,n)=>t in e?Aee(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,tw=(e,t,n)=>jee(e,typeof t==`symbol`?t:t+``,n),nw=new Map,rw=new WeakMap,iw=0,Nee=class extends ZC.Component{constructor(e){super(e),tw(this,`node`,null),tw(this,`_unobserveCb`,null),tw(this,`lastInView`),tw(this,`handleNode`,e=>{this.node&&(this.unobserve(),!e&&!this.props.triggerOnce&&!this.props.skip&&(this.setState({inView:!!this.props.initialInView,entry:void 0}),this.lastInView=this.props.initialInView)),this.node=e||null,this.observeNode()}),tw(this,`handleChange`,(e,t)=>{let n=this.lastInView;this.lastInView=e,!(n===void 0&&!e)&&(e&&this.props.triggerOnce&&this.unobserve(),Oee(this.props)||this.setState({inView:e,entry:t}),this.props.onChange&&this.props.onChange(e,t))}),this.state={inView:!!e.initialInView,entry:void 0},this.lastInView=e.initialInView}componentDidMount(){this.unobserve(),this.observeNode()}componentDidUpdate(e){(e.rootMargin!==this.props.rootMargin||e.root!==this.props.root||e.threshold!==this.props.threshold||e.skip!==this.props.skip||e.trackVisibility!==this.props.trackVisibility||e.delay!==this.props.delay)&&(this.unobserve(),this.observeNode())}componentWillUnmount(){this.unobserve()}observeNode(){if(!this.node||this.props.skip)return;let{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:i,fallbackInView:a}=this.props;this.lastInView===void 0&&(this.lastInView=this.props.initialInView),this._unobserveCb=Dee(this.node,this.handleChange,{threshold:e,root:t,rootMargin:n,trackVisibility:r,delay:i},a)}unobserve(){this._unobserveCb&&=(this._unobserveCb(),null)}render(){let{children:e}=this.props;if(typeof e==`function`){let{inView:t,entry:n}=this.state;return e({inView:t,entry:n,ref:this.handleNode})}let{as:t,triggerOnce:n,threshold:r,root:i,rootMargin:a,onChange:o,skip:s,trackVisibility:c,delay:l,initialInView:u,fallbackInView:d,...f}=this.props;return ZC.createElement(t||`div`,{ref:this.handleNode,...f},e)}},(`useInsertionEffect`in ZC?ZC.useInsertionEffect:void 0)??ZC.useLayoutEffect??ZC.useEffect,aw=(0,QC.createContext)(),YC.propTypes={fallback:ew.default.string,resource:ew.default.object.isRequired},Pee=G(`div`,{name:`IIIFThumbnail`,slot:`root`})({}),Fee=G(`span`,{name:`IIIFThumbnail`,slot:`label`})(({theme:e})=>({...e.typography.caption})),Iee=G(`img`,{name:`IIIFThumbnail`,slot:`image`})(()=>({height:`auto`,width:`auto`})),Lee=({border:e=!1,placeholder:t,style:n={},thumbnail:r=null,resource:i,maxHeight:a=null,maxWidth:o=null,...s})=>{let{ref:c,inView:l}=kee(),[u,d]=(0,QC.useState)(!1),[f,p]=(0,QC.useState)(!1),m=Cee(a,o),{notifyFailure:h,fallbackImage:g}=(0,QC.useContext)(Nc);(0,QC.useEffect)(()=>{u||!l||d(!0)},[l,u]);let _=(0,QC.useMemo)(()=>{if(r)return r;let e=m.get(i);if(e&&e.url)return e},[i,r,m]),v=(0,QC.useMemo)(()=>{let e={height:void 0,maxHeight:void 0,maxWidth:void 0,width:void 0};if(f&&g)return{...e,...n,maxWidth:o,maxHeight:a,objectFit:`contain`};if(!_)return{...n,height:a,width:o};let{height:t,width:r}=_;if(t&&r){if(a&&t>a||o&&r>o){let n=r/t;a&&o?o/a{p(!0),b&&h(b)},...s})},Lee.propTypes={border:ew.default.bool,maxHeight:ew.default.number,maxWidth:ew.default.number,placeholder:ew.default.string.isRequired,resource:ew.default.object.isRequired,style:ew.default.object,thumbnail:ew.default.shape({height:ew.default.number,url:ew.default.string.isRequired,width:ew.default.number})},Ree=`data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAAADUlEQVR42mMMDQmtBwADgwF/Op8FmAAAAABJRU5ErkJggg==`,XC.propTypes={border:ew.default.bool,children:ew.default.node,imagePlaceholder:ew.default.string,label:ew.default.string,labelled:ew.default.bool,maxHeight:ew.default.number,maxWidth:ew.default.number,resource:ew.default.object.isRequired,style:ew.default.object,thumbnail:ew.default.shape({height:ew.default.number,url:ew.default.string.isRequired,width:ew.default.number}),variant:ew.default.oneOf([`inside`,`outside`])},ow=R(Mt(e=>({thumbnailsConfig:Xr(e).thumbnails})),Ar(`IIIFThumbnail`))(XC),sw=IS((0,$C.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`}),`SearchSharp`),cw=IS((0,$C.jsx)(`path`,{d:`M21.99 2H2v16h16l4 4zM18 14H6v-2h12zm0-3H6V9h12zm0-3H6V6h12z`}),`CommentSharp`)}));function uw(e){let t=dw.useRef({});return dw.useEffect(()=>{t.current=e}),t.current}var dw,zee=o((()=>{dw=u(p())})),fw=o((()=>{zee()}));function Bee(e){let{badgeContent:t,invisible:n=!1,max:r=99,showZero:i=!1}=e,a=uw({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}}var Vee=o((()=>{fw()}));function Hee(e){return typeof e.main==`string`}function Uee(e,t=[]){if(!Hee(e))return!1;for(let n of t)if(!e.hasOwnProperty(n)||typeof e[n]!=`string`)return!1;return!0}function pw(e=[]){return([,t])=>t&&Uee(t,e)}var mw=o((()=>{}));function Wee(e){return vg(`MuiBadge`,e)}var Gee,hw=o((()=>{wg(),xg(),Gee=Sg(`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`])}));function gw(e){return typeof e==`string`}var Kee=o((()=>{})),_w=o((()=>{Kee()}));function qee(e,t,n){return e===void 0||gw(e)?t:{...t,ownerState:{...t.ownerState,...n}}}var Jee=o((()=>{_w()})),Yee=o((()=>{Jee()}));function Xee(e,t,n){return typeof e==`function`?e(t,n):e}var Zee=o((()=>{})),Qee=o((()=>{Zee()}));function vw(e,t=[]){if(e===void 0)return{};let n={};return Object.keys(e).filter(n=>n.match(/^on[A-Z]/)&&typeof e[n]==`function`&&!t.includes(n)).forEach(t=>{n[t]=e[t]}),n}var $ee=o((()=>{})),yw=o((()=>{$ee()}));function ete(e){if(e===void 0)return{};let t={};return Object.keys(e).filter(t=>!(t.match(/^on[A-Z]/)&&typeof e[t]==`function`)).forEach(n=>{t[n]=e[n]}),t}var tte=o((()=>{})),nte=o((()=>{tte()}));function rte(e){let{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){let e=pu(n?.className,a,i?.className,r?.className),t={...n?.style,...i?.style,...r?.style},o={...n,...i,...r};return e.length>0&&(o.className=e),Object.keys(t).length>0&&(o.style=t),{props:o,internalRef:void 0}}let o=vw({...i,...r}),s=ete(r),c=ete(i),l=t(o),u=pu(l?.className,n?.className,a,i?.className,r?.className),d={...l?.style,...n?.style,...i?.style,...r?.style},f={...l,...n,...c,...s};return u.length>0&&(f.className=u),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:l.ref}}var ite=o((()=>{mu(),yw(),nte()})),ate=o((()=>{ite()}));function bw(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=Xee(d[e],i),{props:{component:h,...g},internalRef:_}=rte({className:n,...c,externalForwardedProps:e===`root`?f:void 0,externalSlotProps:m}),v=jC(_,m?.ref,t.ref),y=e===`root`?h||l:h;return[p,qee(p,{...e===`root`&&!l&&!u[e]&&o,...e!==`root`&&!u[e]&&o,...g,...y&&!s&&{as:y},...y&&s&&{component:y},ref:v},i)]}var xw=o((()=>{PC(),Yee(),Qee(),ate()}));function ote(e){return{vertical:e?.vertical??`top`,horizontal:e?.horizontal??`right`}}var ste,Sw,Cw,cte,lte,ute,dte,fte,ww,pte=o((()=>{ste=u(p()),Sw=u(du()),mu(),fw(),_u(),Vee(),bS(),SS(),mw(),ES(),Ql(),hw(),xw(),Cw=g(),cte=10,lte=4,ute=e=>{let{color:t,anchorOrigin:n,invisible:r,overlap:i,variant:a,classes:o={}}=e;return hu({root:[`root`],badge:[`badge`,a,r&&`invisible`,`anchorOrigin${H(n.vertical)}${H(n.horizontal)}`,`anchorOrigin${H(n.vertical)}${H(n.horizontal)}${H(i)}`,`overlap${H(i)}`,t!=="default"&&`color${H(t)}`]},Wee,o)},dte=G(`span`,{name:`MuiBadge`,slot:`Root`})({position:`relative`,display:`inline-flex`,verticalAlign:`middle`,flexShrink:0}),fte=G(`span`,{name:`MuiBadge`,slot:`Badge`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.badge,t[n.variant],t[`anchorOrigin${H(n.anchorOrigin.vertical)}${H(n.anchorOrigin.horizontal)}${H(n.overlap)}`],n.color!=="default"&&t[`color${H(n.color)}`],n.invisible&&t.invisible]}})(xS(({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:cte,zIndex:1,transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.enteringScreen}),variants:[...Object.entries(e.palette).filter(pw([`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:lte,height:8,minWidth:8,padding:0}},{props:{invisible:!0},style:{transition:e.transitions.create(`transform`,{easing:e.transitions.easing.easeInOut,duration:e.transitions.duration.leavingScreen})}},{style:({ownerState:e})=>{let{vertical:t,horizontal:n}=e.anchorOrigin,r=e.overlap===`circular`?`14%`:0;return{"--Badge-translateX":n===`right`?`50%`:`-50%`,"--Badge-translateY":t===`top`?`-50%`:`50%`,top:t===`top`?r:`initial`,bottom:t===`bottom`?r:`initial`,right:n===`right`?r:`initial`,left:n===`left`?r:`initial`,transform:`scale(1) translate(var(--Badge-translateX), var(--Badge-translateY))`,transformOrigin:`${n===`right`?`100%`:`0%`} ${t===`top`?`0%`:`100%`}`,[`&.${Gee.invisible}`]:{transform:`scale(0) translate(var(--Badge-translateX), var(--Badge-translateY))`}}}}]}))),ww=ste.forwardRef(function(e,t){let n=CS({props:e,name:`MuiBadge`}),{anchorOrigin:r,className:i,classes:a,component:o,components:s={},componentsProps:c={},children:l,overlap:u=`rectangular`,color:d=`default`,invisible:f=!1,max:p=99,badgeContent:m,slots:h,slotProps:g,showZero:_=!1,variant:v=`standard`,...y}=n,{badgeContent:b,invisible:x,max:S,displayValue:C}=Bee({max:p,invisible:f,badgeContent:m,showZero:_}),w=uw({anchorOrigin:ote(r),color:d,overlap:u,variant:v,badgeContent:m}),T=x||b==null&&v!==`dot`,{color:E=d,overlap:D=u,anchorOrigin:O,variant:k=v}=T?w:n,A=ote(O),j=k===`dot`?void 0:C,M={...n,badgeContent:b,invisible:T,max:S,displayValue:j,showZero:_,anchorOrigin:A,color:E,overlap:D,variant:k},ee=ute(M),N={slots:{root:h?.root??s.Root,badge:h?.badge??s.Badge},slotProps:{root:g?.root??c.root,badge:g?.badge??c.badge}},[P,F]=bw(`root`,{elementType:dte,externalForwardedProps:{...N,...y},ownerState:M,className:pu(ee.root,i),ref:t,additionalProps:{as:o}}),[te,I]=bw(`badge`,{elementType:fte,externalForwardedProps:N,ownerState:M,className:ee.badge});return(0,Cw.jsxs)(P,{...F,children:[l,(0,Cw.jsx)(te,{...I,children:j})]})}),process.env.NODE_ENV!==`production`&&(ww.propTypes={anchorOrigin:Sw.default.shape({horizontal:Sw.default.oneOf([`left`,`right`]),vertical:Sw.default.oneOf([`bottom`,`top`])}),badgeContent:Sw.default.node,children:Sw.default.node,classes:Sw.default.object,className:Sw.default.string,color:Sw.default.oneOfType([Sw.default.oneOf([`default`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),Sw.default.string]),component:Sw.default.elementType,components:Sw.default.shape({Badge:Sw.default.elementType,Root:Sw.default.elementType}),componentsProps:Sw.default.shape({badge:Sw.default.oneOfType([Sw.default.func,Sw.default.object]),root:Sw.default.oneOfType([Sw.default.func,Sw.default.object])}),invisible:Sw.default.bool,max:Sw.default.number,overlap:Sw.default.oneOf([`circular`,`rectangular`]),showZero:Sw.default.bool,slotProps:Sw.default.shape({badge:Sw.default.oneOfType([Sw.default.func,Sw.default.object]),root:Sw.default.oneOfType([Sw.default.func,Sw.default.object])}),slots:Sw.default.shape({badge:Sw.default.elementType,root:Sw.default.elementType}),sx:Sw.default.oneOfType([Sw.default.arrayOf(Sw.default.oneOfType([Sw.default.func,Sw.default.object,Sw.default.bool])),Sw.default.func,Sw.default.object]),variant:Sw.default.oneOfType([Sw.default.oneOf([`dot`,`standard`]),Sw.default.string])})})),Tw=o((()=>{pte(),hw(),hw()}));function Ew(e,t){return process.env.NODE_ENV===`production`?()=>null:function(...n){return e(...n)||t(...n)}}var mte=o((()=>{})),Dw=o((()=>{mte()})),Ow,kw,hte=o((()=>{Ow=u(du()),kw=Ow.default.oneOfType([Ow.default.func,Ow.default.object])})),Aw=o((()=>{hte()}));function gte(e){let{prototype:t={}}=e;return!!t.isReactComponent}function _te(e,t,n,r,i){let a=e[t],o=i||t;if(a==null||typeof window>`u`)return null;let s;return typeof a==`function`&&!gte(a)&&(s=`Did you accidentally provide a plain function component instead?`),a===yte.Fragment&&(s=`Did you accidentally provide a React.Fragment instead?`),s===void 0?null:Error(`Invalid ${r} \`${o}\` supplied to \`${n}\`. Expected an element type that can hold a ref. ${s} For more information see https://v7.mui.com/r/caveat-with-refs-guide`)}var vte,yte,jw,bte=o((()=>{vte=u(du()),yte=u(p()),Dw(),jw=Ew(vte.default.elementType,_te)})),Mw=o((()=>{bte()}));function Nw(e){try{return e.matches(`:focus-visible`)}catch{process.env.NODE_ENV!==`production`&&!window.navigator.userAgent.includes(`jsdom`)&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.",`Some components rely on this feature to work properly.`].join(` +`))}return!1}var xte=o((()=>{})),Pw=o((()=>{xte()}));function Ste(e,t){let n=Cte.useRef(Fw);return n.current===Fw&&(n.current=e(t)),n}var Cte,Fw,wte=o((()=>{Cte=u(p()),Fw={}})),Tte=o((()=>{wte()}));function Ete(){return Ote.use()}function Dte(){let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n}var Iw,Ote,kte=o((()=>{Iw=u(p()),Tte(),Ote=class e{static create(){return new e}static use(){let t=Ste(e.create).current,[n,r]=Iw.useState(!1);return t.shouldMount=n,t.setShouldMount=r,Iw.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=Dte(),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))}}})),Ate=o((()=>{kte()}));function jte(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}var Mte=o((()=>{}));function Lw(e,t){return Lw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Lw(e,t)}var Nte=o((()=>{}));function Pte(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Lw(e,t)}var Rw=o((()=>{Nte()})),Fte=s((e=>{var t=p();function n(e){var t=`https://react.dev/errors/`+e;if(1{process.env.NODE_ENV!==`production`&&(function(){function t(){}function n(e){return``+e}function r(e,t,r){var i=3` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),Vw=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`)){if(process.env.NODE_ENV!==`production`)throw Error(`^_^`);try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}}process.env.NODE_ENV===`production`?(n(),t.exports=Nte()):t.exports=Pte()})),Hw,Fte=o((()=>{Hw={disabled:!1}})),Uw,Ite,Lte=o((()=>{Uw=u(du()),Ite=process.env.NODE_ENV===`production`?null:Uw.default.oneOfType([Uw.default.number,Uw.default.shape({enter:Uw.default.number,exit:Uw.default.number,appear:Uw.default.number}).isRequired]),process.env.NODE_ENV===`production`||Uw.default.oneOfType([Uw.default.string,Uw.default.shape({enter:Uw.default.string,exit:Uw.default.string,active:Uw.default.string}),Uw.default.shape({enter:Uw.default.string,enterDone:Uw.default.string,enterActive:Uw.default.string,exit:Uw.default.string,exitDone:Uw.default.string,exitActive:Uw.default.string})])})),Rte,Ww,Gw=o((()=>{Rte=u(p()),Ww=Rte.createContext(null)})),zte,Bte=o((()=>{zte=function(e){return e.scrollTop}}));function Kw(){}var qw,Jw,Yw,Xw,Zw,Qw,$w,eT,tT,Vte=o((()=>{Ate(),Bw(),qw=u(du()),Jw=u(p()),Yw=u(Vw()),Fte(),Lte(),Gw(),Bte(),Xw=`unmounted`,Zw=`exited`,Qw=`entering`,$w=`entered`,eT=`exiting`,tT=function(e){Mte(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Zw,r.appearStatus=Qw):o=$w:o=t.unmountOnExit||t.mountOnEnter?Xw:Zw,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Zw}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Qw):(n===`entering`||n===`entered`)&&(t=eT)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:Yw.default.findDOMNode(this);n&&zte(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Xw})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[Yw.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Hw.disabled){this.safeSetState({status:$w},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Qw},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:$w},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:Yw.default.findDOMNode(this);if(!t||Hw.disabled){this.safeSetState({status:Zw},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:eT},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Zw},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:Yw.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=kte(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return Jw.createElement(Ww.Provider,{value:null},typeof n==`function`?n(e,r):Jw.cloneElement(Jw.Children.only(n),r))},t}(Jw.Component),tT.contextType=Ww,tT.propTypes=process.env.NODE_ENV===`production`?{}:{nodeRef:qw.default.shape({current:typeof Element>`u`?qw.default.any:function(e,t,n,r,i,a){var o=e[t];return qw.default.instanceOf(o&&`ownerDocument`in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:qw.default.oneOfType([qw.default.func.isRequired,qw.default.element.isRequired]).isRequired,in:qw.default.bool,mountOnEnter:qw.default.bool,unmountOnExit:qw.default.bool,appear:qw.default.bool,enter:qw.default.bool,exit:qw.default.bool,timeout:function(e){var t=Ite;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{}));function nT(e,t){var n=function(e){return t&&(0,iT.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&iT.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Wte(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o{iT=u(p())})),aT,oT,Jte,Yte,sT,Xte=o((()=>{Ate(),Mf(),Ute(),Bw(),aT=u(du()),oT=u(p()),Gw(),qte(),Jte=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Yte={component:`div`,childFactory:function(e){return e}},sT=function(e){Mte(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Hte(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?Gte(e,r):Kte(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=nT(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=jf({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=kte(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Jte(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?oT.createElement(Ww.Provider,{value:i},a):oT.createElement(Ww.Provider,{value:i},oT.createElement(t,r,a))},t}(oT.Component),sT.propTypes=process.env.NODE_ENV===`production`?{}:{component:aT.default.any,children:aT.default.node,appear:aT.default.bool,enter:aT.default.bool,exit:aT.default.bool,childFactory:aT.default.func},sT.defaultProps=Yte})),cT=o((()=>{Bw(),Vte(),Lte(),Bte(),Xte(),Gw(),Fte()}));function Zte(e){Qte.useEffect(e,$te)}var Qte,$te,ene=o((()=>{Qte=u(p()),$te=[]}));function lT(){let e=bte(uT.create).current;return Zte(e.disposeEffect),e}var uT,tne=o((()=>{Ste(),ene(),uT=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}})),dT=o((()=>{tne()}));function nne(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=fT.useState(!1),f=pu(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=pu(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),fT.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,mT.jsx)(`span`,{className:f,style:p,children:(0,mT.jsx)(`span`,{className:m})})}var fT,pT,mT,rne=o((()=>{fT=u(p()),pT=u(du()),mu(),mT=g(),process.env.NODE_ENV!==`production`&&(nne.propTypes={classes:pT.default.object.isRequired,className:pT.default.string,in:pT.default.bool,onExited:pT.default.func,pulsate:pT.default.bool,rippleSize:pT.default.number,rippleX:pT.default.number,rippleY:pT.default.number,timeout:pT.default.number.isRequired})})),hT,ine=o((()=>{wg(),hT=Sg(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`])})),gT,_T,vT,yT,ane,one,sne,cne,lne,une,dne=o((()=>{gT=u(p()),_T=u(du()),cT(),mu(),dT(),xS(),DS(),rne(),ine(),vT=g(),yT=550,ane=qm` +See https://react.dev/link/invalid-hook-call for tips about how to debug and fix this problem.`),e}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var c=p(),l={d:{f:t,r:function(){throw Error(`Invalid form element. requestFormReset must be passed a form that was rendered by React.`)},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},u=Symbol.for(`react.portal`),d=c.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;typeof Map==`function`&&Map.prototype!=null&&typeof Map.prototype.forEach==`function`&&typeof Set==`function`&&Set.prototype!=null&&typeof Set.prototype.clear==`function`&&typeof Set.prototype.forEach==`function`||console.error(`React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills`),e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,e.createPortal=function(e,t){var n=2` tag.%s',n),typeof e==`string`&&typeof t==`object`&&t&&typeof t.as==`string`){n=t.as;var r=i(n,t.crossOrigin);l.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity==`string`?t.integrity:void 0,nonce:typeof t.nonce==`string`?t.nonce:void 0,type:typeof t.type==`string`?t.type:void 0,fetchPriority:typeof t.fetchPriority==`string`?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy==`string`?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet==`string`?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes==`string`?t.imageSizes:void 0,media:typeof t.media==`string`?t.media:void 0})}},e.preloadModule=function(e,t){var n=``;typeof e==`string`&&e||(n+=" The `href` argument encountered was "+a(e)+`.`),t!==void 0&&typeof t!=`object`?n+=" The `options` argument encountered was "+a(t)+`.`:t&&`as`in t&&typeof t.as!=`string`&&(n+=" The `as` option encountered was "+a(t.as)+`.`),n&&console.error('ReactDOM.preloadModule(): Expected two arguments, a non-empty `href` string and, optionally, an `options` object with an `as` property valid for a `` tag.%s',n),typeof e==`string`&&(t?(n=i(t.as,t.crossOrigin),l.d.m(e,{as:typeof t.as==`string`&&t.as!==`script`?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity==`string`?t.integrity:void 0})):l.d.m(e))},e.requestFormReset=function(e){l.d.r(e)},e.unstable_batchedUpdates=function(e,t){return e(t)},e.useFormState=function(e,t,n){return s().useFormState(e,t,n)},e.useFormStatus=function(){return s().useHostTransitionStatus()},e.version=`19.2.8`,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop==`function`&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())})()})),zw=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`)){if(process.env.NODE_ENV!==`production`)throw Error(`^_^`);try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}}process.env.NODE_ENV===`production`?(n(),t.exports=Fte()):t.exports=Ite()})),Bw,Lte=o((()=>{Bw={disabled:!1}})),Vw,Rte,zte=o((()=>{Vw=u(du()),Rte=process.env.NODE_ENV===`production`?null:Vw.default.oneOfType([Vw.default.number,Vw.default.shape({enter:Vw.default.number,exit:Vw.default.number,appear:Vw.default.number}).isRequired]),process.env.NODE_ENV===`production`||Vw.default.oneOfType([Vw.default.string,Vw.default.shape({enter:Vw.default.string,exit:Vw.default.string,active:Vw.default.string}),Vw.default.shape({enter:Vw.default.string,enterDone:Vw.default.string,enterActive:Vw.default.string,exit:Vw.default.string,exitDone:Vw.default.string,exitActive:Vw.default.string})])})),Bte,Hw,Uw=o((()=>{Bte=u(p()),Hw=Bte.createContext(null)})),Vte,Hte=o((()=>{Vte=function(e){return e.scrollTop}}));function Ww(){}var Gw,Kw,qw,Jw,Yw,Xw,Zw,Qw,$w,Ute=o((()=>{Mte(),Rw(),Gw=u(du()),Kw=u(p()),qw=u(zw()),Lte(),zte(),Uw(),Hte(),Jw=`unmounted`,Yw=`exited`,Xw=`entering`,Zw=`entered`,Qw=`exiting`,$w=function(e){Pte(t,e);function t(t,n){var r=e.call(this,t,n)||this,i=n,a=i&&!i.isMounting?t.enter:t.appear,o;return r.appearStatus=null,t.in?a?(o=Yw,r.appearStatus=Xw):o=Zw:o=t.unmountOnExit||t.mountOnEnter?Jw:Yw,r.state={status:o},r.nextCallback=null,r}t.getDerivedStateFromProps=function(e,t){return e.in&&t.status===`unmounted`?{status:Yw}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==`entering`&&n!==`entered`&&(t=Xw):(n===`entering`||n===`entered`)&&(t=Qw)}this.updateStatus(!1,t)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var e=this.props.timeout,t=n=r=e,n,r;return e!=null&&typeof e!=`number`&&(t=e.exit,n=e.enter,r=e.appear===void 0?n:e.appear),{exit:t,enter:n,appear:r}},n.updateStatus=function(e,t){if(e===void 0&&(e=!1),t!==null){if(this.cancelNextCallback(),t===`entering`){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:qw.default.findDOMNode(this);n&&Vte(n)}this.performEnter(e)}else this.performExit()}else this.props.unmountOnExit&&this.state.status===`exited`&&this.setState({status:Jw})},n.performEnter=function(e){var t=this,n=this.props.enter,r=this.context?this.context.isMounting:e,i=this.props.nodeRef?[r]:[qw.default.findDOMNode(this),r],a=i[0],o=i[1],s=this.getTimeouts(),c=r?s.appear:s.enter;if(!e&&!n||Bw.disabled){this.safeSetState({status:Zw},function(){t.props.onEntered(a)});return}this.props.onEnter(a,o),this.safeSetState({status:Xw},function(){t.props.onEntering(a,o),t.onTransitionEnd(c,function(){t.safeSetState({status:Zw},function(){t.props.onEntered(a,o)})})})},n.performExit=function(){var e=this,t=this.props.exit,n=this.getTimeouts(),r=this.props.nodeRef?void 0:qw.default.findDOMNode(this);if(!t||Bw.disabled){this.safeSetState({status:Yw},function(){e.props.onExited(r)});return}this.props.onExit(r),this.safeSetState({status:Qw},function(){e.props.onExiting(r),e.onTransitionEnd(n.exit,function(){e.safeSetState({status:Yw},function(){e.props.onExited(r)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},n.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(r){n&&(n=!1,t.nextCallback=null,e(r))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(e,t){this.setNextCallback(t);var n=this.props.nodeRef?this.props.nodeRef.current:qw.default.findDOMNode(this),r=e==null&&!this.props.addEndListener;if(!n||r){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var i=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],a=i[0],o=i[1];this.props.addEndListener(a,o)}e!=null&&setTimeout(this.nextCallback,e)},n.render=function(){var e=this.state.status;if(e===`unmounted`)return null;var t=this.props,n=t.children;t.in,t.mountOnEnter,t.unmountOnExit,t.appear,t.enter,t.exit,t.timeout,t.addEndListener,t.onEnter,t.onEntering,t.onEntered,t.onExit,t.onExiting,t.onExited,t.nodeRef;var r=jte(t,[`children`,`in`,`mountOnEnter`,`unmountOnExit`,`appear`,`enter`,`exit`,`timeout`,`addEndListener`,`onEnter`,`onEntering`,`onEntered`,`onExit`,`onExiting`,`onExited`,`nodeRef`]);return Kw.createElement(Hw.Provider,{value:null},typeof n==`function`?n(e,r):Kw.cloneElement(Kw.Children.only(n),r))},t}(Kw.Component),$w.contextType=Hw,$w.propTypes=process.env.NODE_ENV===`production`?{}:{nodeRef:Gw.default.shape({current:typeof Element>`u`?Gw.default.any:function(e,t,n,r,i,a){var o=e[t];return Gw.default.instanceOf(o&&`ownerDocument`in o?o.ownerDocument.defaultView.Element:Element)(e,t,n,r,i,a)}}),children:Gw.default.oneOfType([Gw.default.func.isRequired,Gw.default.element.isRequired]).isRequired,in:Gw.default.bool,mountOnEnter:Gw.default.bool,unmountOnExit:Gw.default.bool,appear:Gw.default.bool,enter:Gw.default.bool,exit:Gw.default.bool,timeout:function(e){var t=Rte;e.addEndListener||(t=t.isRequired);for(var n=arguments.length,r=Array(n>1?n-1:0),i=1;i{}));function eT(e,t){var n=function(e){return t&&(0,nT.isValidElement)(e)?t(e):e},r=Object.create(null);return e&&nT.Children.map(e,function(e){return e}).forEach(function(e){r[e.key]=n(e)}),r}function Kte(e,t){e||={},t||={};function n(n){return n in t?t[n]:e[n]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var o,s={};for(var c in t){if(r[c])for(o=0;o{nT=u(p())})),rT,iT,Xte,Zte,aT,Qte=o((()=>{Mte(),Mf(),Gte(),Rw(),rT=u(du()),iT=u(p()),Uw(),Yte(),Xte=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Zte={component:`div`,childFactory:function(e){return e}},aT=function(e){Pte(t,e);function t(t,n){var r=e.call(this,t,n)||this;return r.state={contextValue:{isMounting:!0},handleExited:r.handleExited.bind(Wte(r)),firstRender:!0},r}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(e,t){var n=t.children,r=t.handleExited;return{children:t.firstRender?qte(e,r):Jte(e,n,r),firstRender:!1}},n.handleExited=function(e,t){var n=eT(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState(function(t){var n=jf({},t.children);return delete n[e.key],{children:n}}))},n.render=function(){var e=this.props,t=e.component,n=e.childFactory,r=jte(e,[`component`,`childFactory`]),i=this.state.contextValue,a=Xte(this.state.children).map(n);return delete r.appear,delete r.enter,delete r.exit,t===null?iT.createElement(Hw.Provider,{value:i},a):iT.createElement(Hw.Provider,{value:i},iT.createElement(t,r,a))},t}(iT.Component),aT.propTypes=process.env.NODE_ENV===`production`?{}:{component:rT.default.any,children:rT.default.node,appear:rT.default.bool,enter:rT.default.bool,exit:rT.default.bool,childFactory:rT.default.func},aT.defaultProps=Zte})),oT=o((()=>{Rw(),Ute(),zte(),Hte(),Qte(),Uw(),Lte()}));function $te(e){ene.useEffect(e,tne)}var ene,tne,nne=o((()=>{ene=u(p()),tne=[]}));function sT(){let e=Ste(cT.create).current;return $te(e.disposeEffect),e}var cT,rne=o((()=>{wte(),nne(),cT=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}})),lT=o((()=>{rne()}));function ine(e){let{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:o,in:s,onExited:c,timeout:l}=e,[u,d]=uT.useState(!1),f=pu(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),p={width:o,height:o,top:-(o/2)+a,left:-(o/2)+i},m=pu(n.child,u&&n.childLeaving,r&&n.childPulsate);return!s&&!u&&d(!0),uT.useEffect(()=>{if(!s&&c!=null){let e=setTimeout(c,l);return()=>{clearTimeout(e)}}},[c,s,l]),(0,fT.jsx)(`span`,{className:f,style:p,children:(0,fT.jsx)(`span`,{className:m})})}var uT,dT,fT,ane=o((()=>{uT=u(p()),dT=u(du()),mu(),fT=g(),process.env.NODE_ENV!==`production`&&(ine.propTypes={classes:dT.default.object.isRequired,className:dT.default.string,in:dT.default.bool,onExited:dT.default.func,pulsate:dT.default.bool,rippleSize:dT.default.number,rippleX:dT.default.number,rippleY:dT.default.number,timeout:dT.default.number.isRequired})})),pT,mT=o((()=>{wg(),pT=Sg(`MuiTouchRipple`,[`root`,`ripple`,`rippleVisible`,`ripplePulsate`,`child`,`childLeaving`,`childPulsate`])})),hT,gT,_T,vT,one,sne,cne,lne,une,dne,fne=o((()=>{hT=u(p()),gT=u(du()),oT(),mu(),lT(),bS(),ES(),ane(),mT(),_T=g(),vT=550,one=qm` 0% { transform: scale(0); opacity: 0.1; @@ -100,7 +100,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix transform: scale(1); opacity: 0.3; } -`,one=qm` +`,sne=qm` 0% { opacity: 1; } @@ -108,7 +108,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix 100% { opacity: 0; } -`,sne=qm` +`,cne=qm` 0% { transform: scale(1); } @@ -120,23 +120,23 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix 100% { transform: scale(1); } -`,cne=G(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),lne=G(nne,{name:`MuiTouchRipple`,slot:`Ripple`})` +`,lne=G(`span`,{name:`MuiTouchRipple`,slot:`Root`})({overflow:`hidden`,pointerEvents:`none`,position:`absolute`,zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:`inherit`}),une=G(ine,{name:`MuiTouchRipple`,slot:`Ripple`})` opacity: 0; position: absolute; - &.${hT.rippleVisible} { + &.${pT.rippleVisible} { opacity: 0.3; transform: scale(1); - animation-name: ${ane}; - animation-duration: ${yT}ms; + animation-name: ${one}; + animation-duration: ${vT}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } - &.${hT.ripplePulsate} { + &.${pT.ripplePulsate} { animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms; } - & .${hT.child} { + & .${pT.child} { opacity: 1; display: block; width: 100%; @@ -145,25 +145,25 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix background-color: currentColor; } - & .${hT.childLeaving} { + & .${pT.childLeaving} { opacity: 0; - animation-name: ${one}; - animation-duration: ${yT}ms; + animation-name: ${sne}; + animation-duration: ${vT}ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; } - & .${hT.childPulsate} { + & .${pT.childPulsate} { position: absolute; /* @noflip */ left: 0px; top: 0; - animation-name: ${sne}; + animation-name: ${cne}; animation-duration: 2500ms; animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut}; animation-iteration-count: infinite; animation-delay: 200ms; } -`,une=gT.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=wS({props:e,name:`MuiTouchRipple`}),[o,s]=gT.useState([]),c=gT.useRef(0),l=gT.useRef(null);gT.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=gT.useRef(!1),d=lT(),f=gT.useRef(null),p=gT.useRef(null),m=gT.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,vT.jsx)(lne,{classes:{ripple:pu(r.ripple,hT.ripple),rippleVisible:pu(r.rippleVisible,hT.rippleVisible),ripplePulsate:pu(r.ripplePulsate,hT.ripplePulsate),child:pu(r.child,hT.child),childLeaving:pu(r.childLeaving,hT.childLeaving),childPulsate:pu(r.childPulsate,hT.childPulsate)},timeout:yT,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=gT.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=gT.useCallback(()=>{h({},{pulsate:!0})},[h]),_=gT.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return gT.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,vT.jsx)(cne,{className:pu(hT.root,r.root,i),ref:p,...a,children:(0,vT.jsx)(sT,{component:null,exit:!0,children:o})})}),process.env.NODE_ENV!==`production`&&(une.propTypes={center:_T.default.bool,classes:_T.default.object,className:_T.default.string})}));function fne(e){return vg(`MuiButtonBase`,e)}var pne,bT=o((()=>{wg(),xg(),pne=Sg(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`])}));function xT(e,t,n,r=!1){return AC(i=>(n&&n(i),r||e[t](i),!0))}var ST,CT,wT,mne,hne,TT,gne=o((()=>{ST=u(p()),CT=u(du()),mu(),Mw(),Pw(),_u(),Iw(),xS(),DS(),LC(),jC(),Ote(),dne(),bT(),wT=g(),mne=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=hu({root:[`root`,t&&`disabled`,n&&`focusVisible`]},fne,i);return n&&r&&(a.root+=` ${r}`),a},hne=G(`button`,{name:`MuiButtonBase`,slot:`Root`})({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`},[`&.${pne.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),TT=ST.forwardRef(function(e,t){let n=wS({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,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:A,type:j,...M}=n,ee=ST.useRef(null),N=wte(),P=IC(N.ref,A),[F,te]=ST.useState(!1);c&&F&&te(!1),ST.useImperativeHandle(r,()=>({focusVisible:()=>{te(!0),ee.current.focus()}}),[]);let I=N.shouldMount&&!l&&!c;ST.useEffect(()=>{F&&d&&!l&&N.pulsate()},[l,d,F,N]);let ne=xT(N,`start`,S,u),re=xT(N,`stop`,g,u),ie=xT(N,`stop`,_,u),ae=xT(N,`stop`,w,u),oe=xT(N,`stop`,e=>{F&&e.preventDefault(),C&&C(e)},u),se=xT(N,`start`,D,u),ce=xT(N,`stop`,T,u),le=xT(N,`stop`,E,u),ue=xT(N,`stop`,e=>{Fw(e.target)||te(!1),m&&m(e)},!1),de=AC(e=>{ee.current||=e.currentTarget,Fw(e.target)&&(te(!0),y&&y(e)),v&&v(e)}),L=()=>{let e=ee.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},fe=AC(e=>{d&&!e.repeat&&F&&e.key===` `&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&L()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&L()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),pe=AC(e=>{d&&e.key===` `&&F&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&L()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),me=s;me===`button`&&(M.href||M.to)&&(me=p);let he={};if(me===`button`){let e=!!M.formAction;he.type=j===void 0&&!e?`button`:j,he.disabled=c}else!M.href&&!M.to&&(he.role=`button`),c&&(he[`aria-disabled`]=c);let R=IC(t,ee),ge={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F},_e=mne(ge);return(0,wT.jsxs)(hne,{as:me,className:pu(_e.root,o),ownerState:ge,onBlur:ue,onClick:h,onContextMenu:re,onFocus:de,onKeyDown:fe,onKeyUp:pe,onMouseDown:ne,onMouseLeave:oe,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:R,tabIndex:c?-1:O,type:j,...he,...M,children:[a,I?(0,wT.jsx)(une,{ref:P,center:i,...k}):null]})}),process.env.NODE_ENV!==`production`&&(TT.propTypes={action:jw,centerRipple:CT.default.bool,children:CT.default.node,classes:CT.default.object,className:CT.default.string,component:Nw,disabled:CT.default.bool,disableRipple:CT.default.bool,disableTouchRipple:CT.default.bool,focusRipple:CT.default.bool,focusVisibleClassName:CT.default.string,formAction:CT.default.oneOfType([CT.default.func,CT.default.string]),href:CT.default.any,LinkComponent:CT.default.elementType,onBlur:CT.default.func,onClick:CT.default.func,onContextMenu:CT.default.func,onDragLeave:CT.default.func,onFocus:CT.default.func,onFocusVisible:CT.default.func,onKeyDown:CT.default.func,onKeyUp:CT.default.func,onMouseDown:CT.default.func,onMouseLeave:CT.default.func,onMouseUp:CT.default.func,onTouchEnd:CT.default.func,onTouchMove:CT.default.func,onTouchStart:CT.default.func,sx:CT.default.oneOfType([CT.default.arrayOf(CT.default.oneOfType([CT.default.func,CT.default.object,CT.default.bool])),CT.default.func,CT.default.object]),tabIndex:CT.default.number,TouchRippleProps:CT.default.object,touchRippleRef:CT.default.oneOfType([CT.default.func,CT.default.shape({current:CT.default.shape({pulsate:CT.default.func.isRequired,start:CT.default.func.isRequired,stop:CT.default.func.isRequired})})]),type:CT.default.oneOfType([CT.default.oneOf([`button`,`reset`,`submit`]),CT.default.string])})})),ET=o((()=>{gne(),bT(),bT(),ine(),ine()}));function _ne(e){return vg(`MuiCircularProgress`,e)}var DT=o((()=>{wg(),xg(),Sg(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`])})),vne,OT,kT,AT,jT,MT,yne,bne,xne,Sne,Cne,wne,Tne,NT,Ene=o((()=>{vne=u(p()),OT=u(du()),mu(),kw(),_u(),xS(),CS(),DS(),Ql(),gw(),DT(),kT=g(),AT=44,jT=qm` +`,dne=hT.forwardRef(function(e,t){let{center:n=!1,classes:r={},className:i,...a}=CS({props:e,name:`MuiTouchRipple`}),[o,s]=hT.useState([]),c=hT.useRef(0),l=hT.useRef(null);hT.useEffect(()=>{l.current&&=(l.current(),null)},[o]);let u=hT.useRef(!1),d=sT(),f=hT.useRef(null),p=hT.useRef(null),m=hT.useCallback(e=>{let{pulsate:t,rippleX:n,rippleY:i,rippleSize:a,cb:o}=e;s(e=>[...e,(0,_T.jsx)(une,{classes:{ripple:pu(r.ripple,pT.ripple),rippleVisible:pu(r.rippleVisible,pT.rippleVisible),ripplePulsate:pu(r.ripplePulsate,pT.ripplePulsate),child:pu(r.child,pT.child),childLeaving:pu(r.childLeaving,pT.childLeaving),childPulsate:pu(r.childPulsate,pT.childPulsate)},timeout:vT,pulsate:t,rippleX:n,rippleY:i,rippleSize:a},c.current)]),c.current+=1,l.current=o},[r]),h=hT.useCallback((e={},t={},r=()=>{})=>{let{pulsate:i=!1,center:a=n||t.pulsate,fakeElement:o=!1}=t;if(e?.type===`mousedown`&&u.current){u.current=!1;return}e?.type===`touchstart`&&(u.current=!0);let s=o?null:p.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0},l,h,g;if(a||e===void 0||e.clientX===0&&e.clientY===0||!e.clientX&&!e.touches)l=Math.round(c.width/2),h=Math.round(c.height/2);else{let{clientX:t,clientY:n}=e.touches&&e.touches.length>0?e.touches[0]:e;l=Math.round(t-c.left),h=Math.round(n-c.top)}if(a)g=Math.sqrt((2*c.width**2+c.height**2)/3),g%2==0&&(g+=1);else{let e=Math.max(Math.abs((s?s.clientWidth:0)-l),l)*2+2,t=Math.max(Math.abs((s?s.clientHeight:0)-h),h)*2+2;g=Math.sqrt(e**2+t**2)}e?.touches?f.current===null&&(f.current=()=>{m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},d.start(80,()=>{f.current&&=(f.current(),null)})):m({pulsate:i,rippleX:l,rippleY:h,rippleSize:g,cb:r})},[n,m,d]),g=hT.useCallback(()=>{h({},{pulsate:!0})},[h]),_=hT.useCallback((e,t)=>{if(d.clear(),e?.type===`touchend`&&f.current){f.current(),f.current=null,d.start(0,()=>{_(e,t)});return}f.current=null,s(e=>e.length>0?e.slice(1):e),l.current=t},[d]);return hT.useImperativeHandle(t,()=>({pulsate:g,start:h,stop:_}),[g,h,_]),(0,_T.jsx)(lne,{className:pu(pT.root,r.root,i),ref:p,...a,children:(0,_T.jsx)(aT,{component:null,exit:!0,children:o})})}),process.env.NODE_ENV!==`production`&&(dne.propTypes={center:gT.default.bool,classes:gT.default.object,className:gT.default.string})}));function pne(e){return vg(`MuiButtonBase`,e)}var mne,hne=o((()=>{wg(),xg(),mne=Sg(`MuiButtonBase`,[`root`,`disabled`,`focusVisible`])}));function yT(e,t,n,r=!1){return kC(i=>(n&&n(i),r||e[t](i),!0))}var bT,xT,ST,gne,_ne,CT,vne=o((()=>{bT=u(p()),xT=u(du()),mu(),Aw(),Mw(),_u(),Pw(),bS(),ES(),IC(),AC(),Ate(),fne(),hne(),ST=g(),gne=e=>{let{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,a=hu({root:[`root`,t&&`disabled`,n&&`focusVisible`]},pne,i);return n&&r&&(a.root+=` ${r}`),a},_ne=G(`button`,{name:`MuiButtonBase`,slot:`Root`})({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`},[`&.${mne.disabled}`]:{pointerEvents:`none`,cursor:`default`},"@media print":{colorAdjust:`exact`}}),CT=bT.forwardRef(function(e,t){let n=CS({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,LinkComponent:p=`a`,onBlur:m,onClick:h,onContextMenu:g,onDragLeave:_,onFocus:v,onFocusVisible:y,onKeyDown:b,onKeyUp:x,onMouseDown:S,onMouseLeave:C,onMouseUp:w,onTouchEnd:T,onTouchMove:E,onTouchStart:D,tabIndex:O=0,TouchRippleProps:k,touchRippleRef:A,type:j,...M}=n,ee=bT.useRef(null),N=Ete(),P=FC(N.ref,A),[F,te]=bT.useState(!1);c&&F&&te(!1),bT.useImperativeHandle(r,()=>({focusVisible:()=>{te(!0),ee.current.focus()}}),[]);let I=N.shouldMount&&!l&&!c;bT.useEffect(()=>{F&&d&&!l&&N.pulsate()},[l,d,F,N]);let ne=yT(N,`start`,S,u),re=yT(N,`stop`,g,u),ie=yT(N,`stop`,_,u),ae=yT(N,`stop`,w,u),oe=yT(N,`stop`,e=>{F&&e.preventDefault(),C&&C(e)},u),se=yT(N,`start`,D,u),ce=yT(N,`stop`,T,u),le=yT(N,`stop`,E,u),ue=yT(N,`stop`,e=>{Nw(e.target)||te(!1),m&&m(e)},!1),de=kC(e=>{ee.current||=e.currentTarget,Nw(e.target)&&(te(!0),y&&y(e)),v&&v(e)}),L=()=>{let e=ee.current;return e?e.tagName!==`BUTTON`&&!(e.tagName===`A`&&e.href):s&&s!==`button`},fe=kC(e=>{d&&!e.repeat&&F&&e.key===` `&&N.stop(e,()=>{N.start(e)}),e.target===e.currentTarget&&L()&&e.key===` `&&e.preventDefault(),b&&b(e),e.target===e.currentTarget&&L()&&e.key===`Enter`&&!c&&(e.preventDefault(),h&&h(e))}),pe=kC(e=>{d&&e.key===` `&&F&&!e.defaultPrevented&&N.stop(e,()=>{N.pulsate(e)}),x&&x(e),h&&e.target===e.currentTarget&&L()&&e.key===` `&&!e.defaultPrevented&&!c&&h(e)}),me=s;me===`button`&&(M.href||M.to)&&(me=p);let he={};if(me===`button`){let e=!!M.formAction;he.type=j===void 0&&!e?`button`:j,he.disabled=c}else!M.href&&!M.to&&(he.role=`button`),c&&(he[`aria-disabled`]=c);let R=FC(t,ee),ge={...n,centerRipple:i,component:s,disabled:c,disableRipple:l,disableTouchRipple:u,focusRipple:d,tabIndex:O,focusVisible:F},_e=gne(ge);return(0,ST.jsxs)(_ne,{as:me,className:pu(_e.root,o),ownerState:ge,onBlur:ue,onClick:h,onContextMenu:re,onFocus:de,onKeyDown:fe,onKeyUp:pe,onMouseDown:ne,onMouseLeave:oe,onMouseUp:ae,onDragLeave:ie,onTouchEnd:ce,onTouchMove:le,onTouchStart:se,ref:R,tabIndex:c?-1:O,type:j,...he,...M,children:[a,I?(0,ST.jsx)(dne,{ref:P,center:i,...k}):null]})}),process.env.NODE_ENV!==`production`&&(CT.propTypes={action:kw,centerRipple:xT.default.bool,children:xT.default.node,classes:xT.default.object,className:xT.default.string,component:jw,disabled:xT.default.bool,disableRipple:xT.default.bool,disableTouchRipple:xT.default.bool,focusRipple:xT.default.bool,focusVisibleClassName:xT.default.string,formAction:xT.default.oneOfType([xT.default.func,xT.default.string]),href:xT.default.any,LinkComponent:xT.default.elementType,onBlur:xT.default.func,onClick:xT.default.func,onContextMenu:xT.default.func,onDragLeave:xT.default.func,onFocus:xT.default.func,onFocusVisible:xT.default.func,onKeyDown:xT.default.func,onKeyUp:xT.default.func,onMouseDown:xT.default.func,onMouseLeave:xT.default.func,onMouseUp:xT.default.func,onTouchEnd:xT.default.func,onTouchMove:xT.default.func,onTouchStart:xT.default.func,sx:xT.default.oneOfType([xT.default.arrayOf(xT.default.oneOfType([xT.default.func,xT.default.object,xT.default.bool])),xT.default.func,xT.default.object]),tabIndex:xT.default.number,TouchRippleProps:xT.default.object,touchRippleRef:xT.default.oneOfType([xT.default.func,xT.default.shape({current:xT.default.shape({pulsate:xT.default.func.isRequired,start:xT.default.func.isRequired,stop:xT.default.func.isRequired})})]),type:xT.default.oneOfType([xT.default.oneOf([`button`,`reset`,`submit`]),xT.default.string])})})),wT=o((()=>{vne(),hne(),hne(),mT(),mT()}));function yne(e){return vg(`MuiCircularProgress`,e)}var TT=o((()=>{wg(),xg(),Sg(`MuiCircularProgress`,[`root`,`determinate`,`indeterminate`,`colorPrimary`,`colorSecondary`,`svg`,`track`,`circle`,`circleDeterminate`,`circleIndeterminate`,`circleDisableShrink`])})),bne,ET,DT,OT,kT,AT,xne,Sne,Cne,wne,Tne,Ene,Dne,jT,One=o((()=>{bne=u(p()),ET=u(du()),mu(),Dw(),_u(),bS(),SS(),ES(),Ql(),mw(),TT(),DT=g(),OT=44,kT=qm` 0% { transform: rotate(0deg); } @@ -171,7 +171,7 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix 100% { transform: rotate(360deg); } -`,MT=qm` +`,AT=qm` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -186,35 +186,35 @@ See https://react.dev/link/invalid-hook-call for tips about how to debug and fix stroke-dasharray: 1px, 200px; stroke-dashoffset: -126px; } -`,yne=typeof jT==`string`?null:Km` - animation: ${jT} 1.4s linear infinite; - `,bne=typeof MT==`string`?null:Km` - animation: ${MT} 1.4s ease-in-out infinite; - `,xne=e=>{let{classes:t,variant:n,color:r,disableShrink:i}=e;return hu({root:[`root`,n,`color${H(r)}`],svg:[`svg`],track:[`track`],circle:[`circle`,`circle${H(n)}`,i&&`circleDisableShrink`]},_ne,t)},Sne=G(`span`,{name:`MuiCircularProgress`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,t[n.variant],t[`color${H(n.color)}`]]}})(SS(({theme:e})=>({display:`inline-block`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`transform`)}},{props:{variant:`indeterminate`},style:yne||{animation:`${jT} 1.4s linear infinite`}},...Object.entries(e.palette).filter(hw()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),Cne=G(`svg`,{name:`MuiCircularProgress`,slot:`Svg`})({display:`block`}),wne=G(`circle`,{name:`MuiCircularProgress`,slot:`Circle`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.circle,t[`circle${H(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(SS(({theme:e})=>({stroke:`currentColor`,variants:[{props:{variant:`determinate`},style:{transition:e.transitions.create(`stroke-dashoffset`)}},{props:{variant:`indeterminate`},style:{strokeDasharray:`80px, 200px`,strokeDashoffset:0}},{props:({ownerState:e})=>e.variant===`indeterminate`&&!e.disableShrink,style:bne||{animation:`${MT} 1.4s ease-in-out infinite`}}]}))),Tne=G(`circle`,{name:`MuiCircularProgress`,slot:`Track`})(SS(({theme:e})=>({stroke:`currentColor`,opacity:(e.vars||e).palette.action.activatedOpacity}))),NT=vne.forwardRef(function(e,t){let n=wS({props:e,name:`MuiCircularProgress`}),{className:r,color:i=`primary`,disableShrink:a=!1,enableTrackSlot:o=!1,size:s=40,style:c,thickness:l=3.6,value:u=0,variant:d=`indeterminate`,...f}=n,p={...n,color:i,disableShrink:a,size:s,thickness:l,value:u,variant:d,enableTrackSlot:o},m=xne(p),h={},g={},_={};if(d===`determinate`){let e=2*Math.PI*((AT-l)/2);h.strokeDasharray=e.toFixed(3),_[`aria-valuenow`]=Math.round(u),h.strokeDashoffset=`${((100-u)/100*e).toFixed(3)}px`,g.transform=`rotate(-90deg)`}return(0,kT.jsx)(Sne,{className:pu(m.root,r),style:{width:s,height:s,...g,...c},ownerState:p,ref:t,role:`progressbar`,..._,...f,children:(0,kT.jsxs)(Cne,{className:m.svg,ownerState:p,viewBox:`${AT/2} ${AT/2} ${AT} ${AT}`,children:[o?(0,kT.jsx)(Tne,{className:m.track,ownerState:p,cx:AT,cy:AT,r:(AT-l)/2,fill:`none`,strokeWidth:l,"aria-hidden":`true`}):null,(0,kT.jsx)(wne,{className:m.circle,style:h,ownerState:p,cx:AT,cy:AT,r:(AT-l)/2,fill:`none`,strokeWidth:l})]})})}),process.env.NODE_ENV!==`production`&&(NT.propTypes={classes:OT.default.object,className:OT.default.string,color:OT.default.oneOfType([OT.default.oneOf([`inherit`,`primary`,`secondary`,`error`,`info`,`success`,`warning`]),OT.default.string]),disableShrink:Ow(OT.default.bool,e=>e.disableShrink&&e.variant&&e.variant!==`indeterminate`?Error("MUI: You have provided the `disableShrink` prop with a variant other than `indeterminate`. This will have no effect."):null),enableTrackSlot:OT.default.bool,size:OT.default.oneOfType([OT.default.number,OT.default.string]),style:OT.default.object,sx:OT.default.oneOfType([OT.default.arrayOf(OT.default.oneOfType([OT.default.func,OT.default.object,OT.default.bool])),OT.default.func,OT.default.object]),thickness:OT.default.number,value:OT.default.number,variant:OT.default.oneOf([`determinate`,`indeterminate`])})})),PT=o((()=>{Ene(),DT(),DT()}));function Dne(e){return vg(`MuiIconButton`,e)}var FT,IT=o((()=>{wg(),xg(),FT=Sg(`MuiIconButton`,[`root`,`disabled`,`colorInherit`,`colorPrimary`,`colorSecondary`,`colorError`,`colorInfo`,`colorSuccess`,`colorWarning`,`edgeStart`,`edgeEnd`,`sizeSmall`,`sizeMedium`,`sizeLarge`,`loading`,`loadingIndicator`,`loadingWrapper`])})),LT,RT,zT,One,kne,Ane,BT,jne=o((()=>{LT=u(p()),RT=u(du()),mu(),kw(),_u(),VC(),xS(),CS(),gw(),DS(),ET(),PT(),Ql(),IT(),zT=g(),One=e=>{let{classes:t,disabled:n,color:r,edge:i,size:a,loading:o}=e;return hu({root:[`root`,o&&`loading`,n&&`disabled`,r!=="default"&&`color${H(r)}`,i&&`edge${H(i)}`,`size${H(a)}`],loadingIndicator:[`loadingIndicator`],loadingWrapper:[`loadingWrapper`]},Dne,t)},kne=G(TT,{name:`MuiIconButton`,slot:`Root`,overridesResolver:(e,t)=>{let{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${H(n.color)}`],n.edge&&t[`edge${H(n.edge)}`],t[`size${H(n.size)}`]]}})(SS(({theme:e})=>({textAlign:`center`,flex:`0 0 auto`,fontSize:e.typography.pxToRem(24),padding:8,borderRadius:`50%`,color:(e.vars||e).palette.action.active,transition:e.transitions.create(`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}}]})),SS(({theme:e})=>({variants:[{props:{color:`inherit`},style:{color:`inherit`}},...Object.entries(e.palette).filter(hw()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(hw()).map(([t])=>({props:{color:t},style:{"--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)}}],[`&.${FT.disabled}`]:{backgroundColor:`transparent`,color:(e.vars||e).palette.action.disabled},[`&.${FT.loading}`]:{color:`transparent`}}))),Ane=G(`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`}}]})),BT=LT.forwardRef(function(e,t){let n=wS({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=mC(u),h=f??(0,zT.jsx)(NT,{"aria-labelledby":m,color:`inherit`,size:16}),g={...n,edge:r,color:o,disabled:s,disableFocusRipple:c,loading:d,loadingIndicator:h,size:l},_=One(g);return(0,zT.jsxs)(kne,{id:d?m:u,className:pu(_.root,a),centerRipple:!0,focusRipple:!c,disabled:s||d,ref:t,...p,ownerState:g,children:[typeof d==`boolean`&&(0,zT.jsx)(`span`,{className:_.loadingWrapper,style:{display:`contents`},children:(0,zT.jsx)(Ane,{className:_.loadingIndicator,ownerState:g,children:d&&h})}),i]})}),process.env.NODE_ENV!==`production`&&(BT.propTypes={children:Ow(RT.default.node,e=>LT.Children.toArray(e.children).some(e=>LT.isValidElement(e)&&e.props.onClick)?Error([`MUI: You are providing an onClick event listener to a child of a button element.`,`Prefer applying it to the IconButton directly.`,`This guarantees that the whole