UNPKG

itk-viewer-material-ui

Version:

[![npm version](https://badge.fury.io/js/itk-viewer-material-ui.svg)](https://badge.fury.io/js/itk-viewer-material-ui)

1,390 lines 999 kB
(function(){"use strict";try{if(typeof document!="undefined"){var e=document.createElement("style");e.appendChild(document.createTextNode('.blendMenu{min-width:auto!important}.blendModeButton{margin-right:5px}.blendSelector{display:flex;align-items:center;margin-left:10px}.categoricalMenu{margin:0 5px!important}.categoricalRoot{height:250px}.cmapMenu{display:flex;flex-direction:row;flex-wrap:wrap;width:312px!important}code.uiContainer{font-family:source-code-pro,Menlo,Monaco,Consolas,Courier New,monospace}.colorMapIcon{height:inherit;width:100%;margin:0 3px}.componentCheckbox{padding:0!important}.distanceEntry{align-items:center}.distanceLabelCommon{font-size:1.2em;margin-right:10px}.distanceLabelBrightBG{color:#000}.distanceLabelDarkBG{color:#fff}.distanceInput{background:transparent;color:#fff;font-size:1em;width:80px}.gradientOpacityScale{z-index:1100;position:relative}.gradientOpacityInput{position:absolute!important;bottom:40px;left:-35px;height:150px!important;-webkit-appearance:slider-vertical}.hidden{visibility:hidden!important;height:0px!important;margin:0!important}.iconWithSlider{width:100%;display:flex;align-self:normal;align-items:center}.interpolationButton{width:10mm}.invertibleButtonDarkBG{filter:invert(100%);-webkit-filter:invert(100%)}.layerEntryCommon{display:flex;justify-content:space-between;align-items:center;border-width:2px!important;border-color:#ffffff4d!important;border:solid}.layerEntryBrightBG{border-color:#666}.layerEntryDarkBG{border-color:#aaa}.layerIcon{padding:2px 6px 2px 8px;height:fit-content!important}.layerLabelCommon{border:none;background:transparent;font-size:1.2em;margin-right:10px;z-index:1000}.layerLabelBrightBG{color:#000}.layerLabelDarkBG{color:#fff}.layersUIGroup{background-color:#80808080;margin-left:10px;max-width:400px}.layersUIRow{max-width:420px;background-color:#80808080}.ItkVtkViewer-module-fpsMonitor_25TvW{position:absolute;top:25px;right:15px;border-radius:5px;background:rgba(255,255,255,.6);cursor:pointer;z-index:2001}.ItkVtkViewer-module-logo_3Lu7I{position:absolute;top:10px;right:5px;height:2em;width:2em;cursor:pointer;z-index:2000}.mainUIRow{justify-content:space-evenly;max-width:420px;display:flex;flex-direction:row;flex:1;flex-wrap:wrap;align-items:center;padding:5px}.Mui-selected{background-color:#00000014!important}.MuiIconButton-root{padding:6px 12px!important}.MuiIcon-root{font-size:1.3rem!important}.MuiIcon-root img{width:inherit;height:inherit}.MuiMenuItem-root{width:100px!important;padding:6px 0!important}.MuiSelect-select{padding:10px 30px 10px 10px!important}.MuiSelect-selectMenu{text-overflow:inherit!important}.numberInput{min-width:98px}.piecewiseWidget{width:100%;height:150px}.planeSliders{display:flex;align-items:center;padding-right:2px}.selectedLayer{border:solid;border-color:#ffffff4d;border-width:3px!important}.selector{display:flex;direction:row;font-size:1.2em;z-index:1000}.shadowButton{width:8mm;padding:4px 4px 4px 0;cursor:pointer;z-index:1000}.slider{flex:1;min-height:1rem;width:5px;align-self:center;margin-right:5px}.sliderEntry{flex:1;display:flex;flex-direction:row;align-items:center}.sliderIcons{margin:5px!important;padding:0!important}.toggleButton{line-height:inherit!important;border:none!important;margin:1px!important}.toggledOffIcon{opacity:.45}.tooltipButtonDarkBG:before{filter:invert(100%);-webkit-filter:invert(100%)}.uiContainer{display:flex;align-items:stretch;flex-direction:column;justify-content:space-between;position:absolute;top:5px;left:5px;padding:2px;border:0px;box-sizing:border-box;z-index:1000;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.uiGroup{background:rgba(128,128,128,.5);border-radius:4px;margin:2px}.uiImages{padding:10px;max-width:420px}.uiRow{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}.uiSlidersGroup{background:rgba(128,128,128,.5);position:fixed;bottom:0;left:85px;width:calc(100% - 90px);margin:10px 0}.uiSlidersGroupCondensed{background:rgba(128,128,128,.5);position:fixed;bottom:0;left:420px;width:calc(100% - 425px);margin:10px 0}.viewContainer{position:absolute;top:0;left:0;bottom:0;right:0;display:flex;flex-direction:column;background:rgba(128,128,128,.8)}.viewModeButton{flex:1;width:8mm;padding:2px 6px;cursor:pointer;z-index:1000}.viewModeButton img{width:1.3em;height:1.3em}.viewModeButtons{display:flex;width:80%;justify-content:space-evenly}.visibleIcon{display:inline-block}.root{display:flex}.appBar{position:fixed}.hide{display:"none"}.drawer{width:15%;flex-shrink:0;z-index:10}.MuiDrawer-paper{width:fit-content;position:fixed;top:60px!important;background:none!important;border:none!important}.content{flex-grow:1;margin-left:-240px}.contentShift{margin-left:0}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})(); var __defProp = Object.defineProperty; var __getOwnPropSymbols = Object.getOwnPropertySymbols; var __hasOwnProp = Object.prototype.hasOwnProperty; var __propIsEnum = Object.prototype.propertyIsEnumerable; var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value; var __spreadValues = (a, b2) => { for (var prop in b2 || (b2 = {})) if (__hasOwnProp.call(b2, prop)) __defNormalProp(a, prop, b2[prop]); if (__getOwnPropSymbols) for (var prop of __getOwnPropSymbols(b2)) { if (__propIsEnum.call(b2, prop)) __defNormalProp(a, prop, b2[prop]); } return a; }; var react = { exports: {} }; var react_production_min = {}; /* object-assign (c) Sindre Sorhus @license MIT */ var getOwnPropertySymbols = Object.getOwnPropertySymbols; var hasOwnProperty = Object.prototype.hasOwnProperty; var propIsEnumerable = Object.prototype.propertyIsEnumerable; function toObject(val) { if (val === null || val === void 0) { throw new TypeError("Object.assign cannot be called with null or undefined"); } return Object(val); } function shouldUseNative() { try { if (!Object.assign) { return false; } var test1 = new String("abc"); test1[5] = "de"; if (Object.getOwnPropertyNames(test1)[0] === "5") { return false; } var test2 = {}; for (var i = 0; i < 10; i++) { test2["_" + String.fromCharCode(i)] = i; } var order2 = Object.getOwnPropertyNames(test2).map(function(n2) { return test2[n2]; }); if (order2.join("") !== "0123456789") { return false; } var test3 = {}; "abcdefghijklmnopqrst".split("").forEach(function(letter) { test3[letter] = letter; }); if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") { return false; } return true; } catch (err) { return false; } } var objectAssign = shouldUseNative() ? Object.assign : function(target, source) { var from2; var to = toObject(target); var symbols; for (var s = 1; s < arguments.length; s++) { from2 = Object(arguments[s]); for (var key in from2) { if (hasOwnProperty.call(from2, key)) { to[key] = from2[key]; } } if (getOwnPropertySymbols) { symbols = getOwnPropertySymbols(from2); for (var i = 0; i < symbols.length; i++) { if (propIsEnumerable.call(from2, symbols[i])) { to[symbols[i]] = from2[symbols[i]]; } } } } return to; }; /** @license React v17.0.2 * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var l$2 = objectAssign, n$3 = 60103, p$3 = 60106; react_production_min.Fragment = 60107; react_production_min.StrictMode = 60108; react_production_min.Profiler = 60114; var q$3 = 60109, r$3 = 60110, t$1 = 60112; react_production_min.Suspense = 60113; var u$1 = 60115, v$2 = 60116; if (typeof Symbol === "function" && Symbol.for) { var w$2 = Symbol.for; n$3 = w$2("react.element"); p$3 = w$2("react.portal"); react_production_min.Fragment = w$2("react.fragment"); react_production_min.StrictMode = w$2("react.strict_mode"); react_production_min.Profiler = w$2("react.profiler"); q$3 = w$2("react.provider"); r$3 = w$2("react.context"); t$1 = w$2("react.forward_ref"); react_production_min.Suspense = w$2("react.suspense"); u$1 = w$2("react.memo"); v$2 = w$2("react.lazy"); } var x$2 = typeof Symbol === "function" && Symbol.iterator; function y$3(a) { if (a === null || typeof a !== "object") return null; a = x$2 && a[x$2] || a["@@iterator"]; return typeof a === "function" ? a : null; } function z$2(a) { for (var b2 = "https://reactjs.org/docs/error-decoder.html?invariant=" + a, c2 = 1; c2 < arguments.length; c2++) b2 += "&args[]=" + encodeURIComponent(arguments[c2]); return "Minified React error #" + a + "; visit " + b2 + " for the full message or use the non-minified dev environment for full errors and additional helpful warnings."; } var A$2 = { isMounted: function() { return false; }, enqueueForceUpdate: function() { }, enqueueReplaceState: function() { }, enqueueSetState: function() { } }, B$2 = {}; function C$1(a, b2, c2) { this.props = a; this.context = b2; this.refs = B$2; this.updater = c2 || A$2; } C$1.prototype.isReactComponent = {}; C$1.prototype.setState = function(a, b2) { if (typeof a !== "object" && typeof a !== "function" && a != null) throw Error(z$2(85)); this.updater.enqueueSetState(this, a, b2, "setState"); }; C$1.prototype.forceUpdate = function(a) { this.updater.enqueueForceUpdate(this, a, "forceUpdate"); }; function D$2() { } D$2.prototype = C$1.prototype; function E$2(a, b2, c2) { this.props = a; this.context = b2; this.refs = B$2; this.updater = c2 || A$2; } var F$2 = E$2.prototype = new D$2(); F$2.constructor = E$2; l$2(F$2, C$1.prototype); F$2.isPureReactComponent = true; var G$2 = { current: null }, H$2 = Object.prototype.hasOwnProperty, I$2 = { key: true, ref: true, __self: true, __source: true }; function J(a, b2, c2) { var e2, d2 = {}, k2 = null, h2 = null; if (b2 != null) for (e2 in b2.ref !== void 0 && (h2 = b2.ref), b2.key !== void 0 && (k2 = "" + b2.key), b2) H$2.call(b2, e2) && !I$2.hasOwnProperty(e2) && (d2[e2] = b2[e2]); var g2 = arguments.length - 2; if (g2 === 1) d2.children = c2; else if (1 < g2) { for (var f2 = Array(g2), m2 = 0; m2 < g2; m2++) f2[m2] = arguments[m2 + 2]; d2.children = f2; } if (a && a.defaultProps) for (e2 in g2 = a.defaultProps, g2) d2[e2] === void 0 && (d2[e2] = g2[e2]); return { $$typeof: n$3, type: a, key: k2, ref: h2, props: d2, _owner: G$2.current }; } function K(a, b2) { return { $$typeof: n$3, type: a.type, key: b2, ref: a.ref, props: a.props, _owner: a._owner }; } function L(a) { return typeof a === "object" && a !== null && a.$$typeof === n$3; } function escape(a) { var b2 = { "=": "=0", ":": "=2" }; return "$" + a.replace(/[=:]/g, function(a2) { return b2[a2]; }); } var M$1 = /\/+/g; function N$1(a, b2) { return typeof a === "object" && a !== null && a.key != null ? escape("" + a.key) : b2.toString(36); } function O$1(a, b2, c2, e2, d2) { var k2 = typeof a; if (k2 === "undefined" || k2 === "boolean") a = null; var h2 = false; if (a === null) h2 = true; else switch (k2) { case "string": case "number": h2 = true; break; case "object": switch (a.$$typeof) { case n$3: case p$3: h2 = true; } } if (h2) return h2 = a, d2 = d2(h2), a = e2 === "" ? "." + N$1(h2, 0) : e2, Array.isArray(d2) ? (c2 = "", a != null && (c2 = a.replace(M$1, "$&/") + "/"), O$1(d2, b2, c2, "", function(a2) { return a2; })) : d2 != null && (L(d2) && (d2 = K(d2, c2 + (!d2.key || h2 && h2.key === d2.key ? "" : ("" + d2.key).replace(M$1, "$&/") + "/") + a)), b2.push(d2)), 1; h2 = 0; e2 = e2 === "" ? "." : e2 + ":"; if (Array.isArray(a)) for (var g2 = 0; g2 < a.length; g2++) { k2 = a[g2]; var f2 = e2 + N$1(k2, g2); h2 += O$1(k2, b2, c2, f2, d2); } else if (f2 = y$3(a), typeof f2 === "function") for (a = f2.call(a), g2 = 0; !(k2 = a.next()).done; ) k2 = k2.value, f2 = e2 + N$1(k2, g2++), h2 += O$1(k2, b2, c2, f2, d2); else if (k2 === "object") throw b2 = "" + a, Error(z$2(31, b2 === "[object Object]" ? "object with keys {" + Object.keys(a).join(", ") + "}" : b2)); return h2; } function P$1(a, b2, c2) { if (a == null) return a; var e2 = [], d2 = 0; O$1(a, e2, "", "", function(a2) { return b2.call(c2, a2, d2++); }); return e2; } function Q(a) { if (a._status === -1) { var b2 = a._result; b2 = b2(); a._status = 0; a._result = b2; b2.then(function(b3) { a._status === 0 && (b3 = b3.default, a._status = 1, a._result = b3); }, function(b3) { a._status === 0 && (a._status = 2, a._result = b3); }); } if (a._status === 1) return a._result; throw a._result; } var R$1 = { current: null }; function S$1() { var a = R$1.current; if (a === null) throw Error(z$2(321)); return a; } var T$1 = { ReactCurrentDispatcher: R$1, ReactCurrentBatchConfig: { transition: 0 }, ReactCurrentOwner: G$2, IsSomeRendererActing: { current: false }, assign: l$2 }; react_production_min.Children = { map: P$1, forEach: function(a, b2, c2) { P$1(a, function() { b2.apply(this, arguments); }, c2); }, count: function(a) { var b2 = 0; P$1(a, function() { b2++; }); return b2; }, toArray: function(a) { return P$1(a, function(a2) { return a2; }) || []; }, only: function(a) { if (!L(a)) throw Error(z$2(143)); return a; } }; react_production_min.Component = C$1; react_production_min.PureComponent = E$2; react_production_min.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = T$1; react_production_min.cloneElement = function(a, b2, c2) { if (a === null || a === void 0) throw Error(z$2(267, a)); var e2 = l$2({}, a.props), d2 = a.key, k2 = a.ref, h2 = a._owner; if (b2 != null) { b2.ref !== void 0 && (k2 = b2.ref, h2 = G$2.current); b2.key !== void 0 && (d2 = "" + b2.key); if (a.type && a.type.defaultProps) var g2 = a.type.defaultProps; for (f2 in b2) H$2.call(b2, f2) && !I$2.hasOwnProperty(f2) && (e2[f2] = b2[f2] === void 0 && g2 !== void 0 ? g2[f2] : b2[f2]); } var f2 = arguments.length - 2; if (f2 === 1) e2.children = c2; else if (1 < f2) { g2 = Array(f2); for (var m2 = 0; m2 < f2; m2++) g2[m2] = arguments[m2 + 2]; e2.children = g2; } return { $$typeof: n$3, type: a.type, key: d2, ref: k2, props: e2, _owner: h2 }; }; react_production_min.createContext = function(a, b2) { b2 === void 0 && (b2 = null); a = { $$typeof: r$3, _calculateChangedBits: b2, _currentValue: a, _currentValue2: a, _threadCount: 0, Provider: null, Consumer: null }; a.Provider = { $$typeof: q$3, _context: a }; return a.Consumer = a; }; react_production_min.createElement = J; react_production_min.createFactory = function(a) { var b2 = J.bind(null, a); b2.type = a; return b2; }; react_production_min.createRef = function() { return { current: null }; }; react_production_min.forwardRef = function(a) { return { $$typeof: t$1, render: a }; }; react_production_min.isValidElement = L; react_production_min.lazy = function(a) { return { $$typeof: v$2, _payload: { _status: -1, _result: a }, _init: Q }; }; react_production_min.memo = function(a, b2) { return { $$typeof: u$1, type: a, compare: b2 === void 0 ? null : b2 }; }; react_production_min.useCallback = function(a, b2) { return S$1().useCallback(a, b2); }; react_production_min.useContext = function(a, b2) { return S$1().useContext(a, b2); }; react_production_min.useDebugValue = function() { }; react_production_min.useEffect = function(a, b2) { return S$1().useEffect(a, b2); }; react_production_min.useImperativeHandle = function(a, b2, c2) { return S$1().useImperativeHandle(a, b2, c2); }; react_production_min.useLayoutEffect = function(a, b2) { return S$1().useLayoutEffect(a, b2); }; react_production_min.useMemo = function(a, b2) { return S$1().useMemo(a, b2); }; react_production_min.useReducer = function(a, b2, c2) { return S$1().useReducer(a, b2, c2); }; react_production_min.useRef = function(a) { return S$1().useRef(a); }; react_production_min.useState = function(a) { return S$1().useState(a); }; react_production_min.version = "17.0.2"; { react.exports = react_production_min; } var React = react.exports; var index = react.exports.useLayoutEffect; function useConstant(fn2) { var ref = react.exports.useRef(); if (!ref.current) { ref.current = { v: fn2() }; } return ref.current.v; } var __read = globalThis && globalThis.__read || function(o, n2) { var m2 = typeof Symbol === "function" && o[Symbol.iterator]; if (!m2) return o; var i = m2.call(o), r2, ar = [], e2; try { while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value); } catch (error) { e2 = { error }; } finally { try { if (r2 && !r2.done && (m2 = i["return"])) m2.call(i); } finally { if (e2) throw e2.error; } } return ar; }; function isActorWithState(actorRef) { return "state" in actorRef; } function isDeferredActor(actorRef) { return "deferred" in actorRef; } var noop$1 = function() { }; function defaultGetSnapshot$1(actorRef) { return "getSnapshot" in actorRef ? actorRef.getSnapshot() : isActorWithState(actorRef) ? actorRef.state : void 0; } function useActor(actorRef, getSnapshot) { if (getSnapshot === void 0) { getSnapshot = defaultGetSnapshot$1; } var actorRefRef = react.exports.useRef(actorRef); var deferredEventsRef = react.exports.useRef([]); var _a = __read(react.exports.useState(function() { return getSnapshot(actorRef); }), 2), current = _a[0], setCurrent = _a[1]; var send = useConstant(function() { return function() { var args = []; for (var _i = 0; _i < arguments.length; _i++) { args[_i] = arguments[_i]; } var event = args[0]; var currentActorRef = actorRefRef.current; if (isDeferredActor(currentActorRef) && currentActorRef.deferred) { deferredEventsRef.current.push(event); } else { currentActorRef.send(event); } }; }); index(function() { actorRefRef.current = actorRef; setCurrent(getSnapshot(actorRef)); var subscription = actorRef.subscribe({ next: function(emitted) { return setCurrent(emitted); }, error: noop$1, complete: noop$1 }); while (deferredEventsRef.current.length > 0) { var deferredEvent = deferredEventsRef.current.shift(); actorRef.send(deferredEvent); } return function() { subscription.unsubscribe(); }; }, [actorRef]); return [current, send]; } globalThis && globalThis.__read || function(o, n2) { var m2 = typeof Symbol === "function" && o[Symbol.iterator]; if (!m2) return o; var i = m2.call(o), r2, ar = [], e2; try { while ((n2 === void 0 || n2-- > 0) && !(r2 = i.next()).done) ar.push(r2.value); } catch (error) { e2 = { error }; } finally { try { if (r2 && !r2.done && (m2 = i["return"])) m2.call(i); } finally { if (e2) throw e2.error; } } return ar; }; function getServiceSnapshot(service) { return ("status" in service ? service.status : service._status) !== 0 ? service.state : service.machine.initialState; } var useSubscription = { exports: {} }; var useSubscription_production_min = {}; /** @license React vundefined * use-subscription.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */ var e$2 = objectAssign, g$3 = react.exports; useSubscription_production_min.useSubscription = function(a) { var c2 = a.getCurrentValue, d2 = a.subscribe, b2 = g$3.useState(function() { return { getCurrentValue: c2, subscribe: d2, value: c2() }; }); a = b2[0]; var f2 = b2[1]; b2 = a.value; if (a.getCurrentValue !== c2 || a.subscribe !== d2) b2 = c2(), f2({ getCurrentValue: c2, subscribe: d2, value: b2 }); g$3.useDebugValue(b2); g$3.useEffect(function() { function b3() { if (!a2) { var b4 = c2(); f2(function(a3) { return a3.getCurrentValue !== c2 || a3.subscribe !== d2 || a3.value === b4 ? a3 : e$2({}, a3, { value: b4 }); }); } } var a2 = false, h2 = d2(b3); b3(); return function() { a2 = true; h2(); }; }, [c2, d2]); return b2; }; { useSubscription.exports = useSubscription_production_min; } function isService(actor) { return "state" in actor && "machine" in actor; } var defaultCompare = function(a, b2) { return a === b2; }; var defaultGetSnapshot = function(a) { return isService(a) ? getServiceSnapshot(a) : isActorWithState(a) ? a.state : void 0; }; function useSelector(actor, selector, compare, getSnapshot) { if (compare === void 0) { compare = defaultCompare; } if (getSnapshot === void 0) { getSnapshot = defaultGetSnapshot; } var latestSelectorRef = react.exports.useRef(selector); var subscription = react.exports.useMemo(function() { var snapshot = getSnapshot(actor); var current = selector(snapshot); var notifySubscriber; return { getSnapshot: function() { return snapshot; }, getCurrentValue: function() { return current; }, setCurrentValue: function(newCurrent) { current = newCurrent; notifySubscriber === null || notifySubscriber === void 0 ? void 0 : notifySubscriber(); }, subscribe: function(callback) { notifySubscriber = callback; var sub = actor.subscribe(function(emitted) { snapshot = emitted; var next2 = latestSelectorRef.current(emitted); if (!compare(current, next2)) { current = next2; callback(); } }); return function() { sub.unsubscribe(); }; } }; }, [actor]); var currentSelected = useSubscription.exports.useSubscription(subscription); var currentChanged = false; if (latestSelectorRef.current !== selector) { var selected = selector(subscription.getSnapshot()); if (!compare(currentSelected, selected)) { currentChanged = true; currentSelected = selected; } } index(function() { latestSelectorRef.current = selector; if (currentChanged) { subscription.setCurrentValue(currentSelected); } }); return currentSelected; } const common = { black: "#000", white: "#fff" }; var common$1 = common; const red = { 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" }; var red$1 = red; const purple = { 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" }; var purple$1 = purple; const blue = { 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" }; var blue$1 = blue; const lightBlue = { 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" }; var lightBlue$1 = lightBlue; const green = { 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" }; var green$1 = green; const orange = { 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" }; var orange$1 = orange; const grey = { 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" }; var grey$1 = grey; function _extends() { _extends = Object.assign || function(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } function memoize$1(fn2) { var cache = Object.create(null); return function(arg) { if (cache[arg] === void 0) cache[arg] = fn2(arg); return cache[arg]; }; } var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; var isPropValid = /* @__PURE__ */ memoize$1(function(prop) { return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111 && prop.charCodeAt(1) === 110 && prop.charCodeAt(2) < 91; }); function sheetForTag(tag) { if (tag.sheet) { return tag.sheet; } for (var i = 0; i < document.styleSheets.length; i++) { if (document.styleSheets[i].ownerNode === tag) { return document.styleSheets[i]; } } } function createStyleElement(options) { var tag = document.createElement("style"); tag.setAttribute("data-emotion", options.key); if (options.nonce !== void 0) { tag.setAttribute("nonce", options.nonce); } tag.appendChild(document.createTextNode("")); tag.setAttribute("data-s", ""); return tag; } var StyleSheet = /* @__PURE__ */ function() { function StyleSheet2(options) { var _this = this; this._insertTag = function(tag) { var before; if (_this.tags.length === 0) { if (_this.insertionPoint) { before = _this.insertionPoint.nextSibling; } else if (_this.prepend) { before = _this.container.firstChild; } else { before = _this.before; } } else { before = _this.tags[_this.tags.length - 1].nextSibling; } _this.container.insertBefore(tag, before); _this.tags.push(tag); }; this.isSpeedy = options.speedy === void 0 ? true : options.speedy; this.tags = []; this.ctr = 0; this.nonce = options.nonce; this.key = options.key; this.container = options.container; this.prepend = options.prepend; this.insertionPoint = options.insertionPoint; this.before = null; } var _proto = StyleSheet2.prototype; _proto.hydrate = function hydrate(nodes) { nodes.forEach(this._insertTag); }; _proto.insert = function insert(rule) { if (this.ctr % (this.isSpeedy ? 65e3 : 1) === 0) { this._insertTag(createStyleElement(this)); } var tag = this.tags[this.tags.length - 1]; if (this.isSpeedy) { var sheet = sheetForTag(tag); try { sheet.insertRule(rule, sheet.cssRules.length); } catch (e2) { } } else { tag.appendChild(document.createTextNode(rule)); } this.ctr++; }; _proto.flush = function flush() { this.tags.forEach(function(tag) { return tag.parentNode && tag.parentNode.removeChild(tag); }); this.tags = []; this.ctr = 0; }; return StyleSheet2; }(); var MS = "-ms-"; var MOZ = "-moz-"; var WEBKIT = "-webkit-"; var COMMENT = "comm"; var RULESET = "rule"; var DECLARATION = "decl"; var IMPORT = "@import"; var KEYFRAMES = "@keyframes"; var abs = Math.abs; var from = String.fromCharCode; var assign = Object.assign; function hash$2(value, length2) { return (((length2 << 2 ^ charat(value, 0)) << 2 ^ charat(value, 1)) << 2 ^ charat(value, 2)) << 2 ^ charat(value, 3); } function trim(value) { return value.trim(); } function match(value, pattern) { return (value = pattern.exec(value)) ? value[0] : value; } function replace(value, pattern, replacement) { return value.replace(pattern, replacement); } function indexof(value, search) { return value.indexOf(search); } function charat(value, index2) { return value.charCodeAt(index2) | 0; } function substr(value, begin, end2) { return value.slice(begin, end2); } function strlen(value) { return value.length; } function sizeof(value) { return value.length; } function append(value, array) { return array.push(value), value; } function combine(array, callback) { return array.map(callback).join(""); } var line = 1; var column = 1; var length = 0; var position$1 = 0; var character = 0; var characters = ""; function node(value, root, parent, type, props, children, length2) { return { value, root, parent, type, props, children, line, column, length: length2, return: "" }; } function copy(root, props) { return assign(node("", null, null, "", null, null, 0), root, { length: -root.length }, props); } function char() { return character; } function prev() { character = position$1 > 0 ? charat(characters, --position$1) : 0; if (column--, character === 10) column = 1, line--; return character; } function next() { character = position$1 < length ? charat(characters, position$1++) : 0; if (column++, character === 10) column = 1, line++; return character; } function peek() { return charat(characters, position$1); } function caret() { return position$1; } function slice(begin, end2) { return substr(characters, begin, end2); } function token(type) { switch (type) { case 0: case 9: case 10: case 13: case 32: return 5; case 33: case 43: case 44: case 47: case 62: case 64: case 126: case 59: case 123: case 125: return 4; case 58: return 3; case 34: case 39: case 40: case 91: return 2; case 41: case 93: return 1; } return 0; } function alloc(value) { return line = column = 1, length = strlen(characters = value), position$1 = 0, []; } function dealloc(value) { return characters = "", value; } function delimit(type) { return trim(slice(position$1 - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type))); } function whitespace(type) { while (character = peek()) if (character < 33) next(); else break; return token(type) > 2 || token(character) > 3 ? "" : " "; } function escaping(index2, count) { while (--count && next()) if (character < 48 || character > 102 || character > 57 && character < 65 || character > 70 && character < 97) break; return slice(index2, caret() + (count < 6 && peek() == 32 && next() == 32)); } function delimiter(type) { while (next()) switch (character) { case type: return position$1; case 34: case 39: if (type !== 34 && type !== 39) delimiter(character); break; case 40: if (type === 41) delimiter(type); break; case 92: next(); break; } return position$1; } function commenter(type, index2) { while (next()) if (type + character === 47 + 10) break; else if (type + character === 42 + 42 && peek() === 47) break; return "/*" + slice(index2, position$1 - 1) + "*" + from(type === 47 ? type : next()); } function identifier(index2) { while (!token(peek())) next(); return slice(index2, position$1); } function compile(value) { return dealloc(parse("", null, null, null, [""], value = alloc(value), 0, [0], value)); } function parse(value, root, parent, rule, rules, rulesets, pseudo, points, declarations) { var index2 = 0; var offset2 = 0; var length2 = pseudo; var atrule = 0; var property = 0; var previous = 0; var variable = 1; var scanning = 1; var ampersand = 1; var character2 = 0; var type = ""; var props = rules; var children = rulesets; var reference2 = rule; var characters2 = type; while (scanning) switch (previous = character2, character2 = next()) { case 40: if (previous != 108 && characters2.charCodeAt(length2 - 1) == 58) { if (indexof(characters2 += replace(delimit(character2), "&", "&\f"), "&\f") != -1) ampersand = -1; break; } case 34: case 39: case 91: characters2 += delimit(character2); break; case 9: case 10: case 13: case 32: characters2 += whitespace(previous); break; case 92: characters2 += escaping(caret() - 1, 7); continue; case 47: switch (peek()) { case 42: case 47: append(comment(commenter(next(), caret()), root, parent), declarations); break; default: characters2 += "/"; } break; case 123 * variable: points[index2++] = strlen(characters2) * ampersand; case 125 * variable: case 59: case 0: switch (character2) { case 0: case 125: scanning = 0; case 59 + offset2: if (property > 0 && strlen(characters2) - length2) append(property > 32 ? declaration(characters2 + ";", rule, parent, length2 - 1) : declaration(replace(characters2, " ", "") + ";", rule, parent, length2 - 2), declarations); break; case 59: characters2 += ";"; default: append(reference2 = ruleset(characters2, root, parent, index2, offset2, rules, points, type, props = [], children = [], length2), rulesets); if (character2 === 123) if (offset2 === 0) parse(characters2, root, reference2, reference2, props, rulesets, length2, points, children); else switch (atrule) { case 100: case 109: case 115: parse(value, reference2, reference2, rule && append(ruleset(value, reference2, reference2, 0, 0, rules, points, type, rules, props = [], length2), children), rules, children, length2, points, rule ? props : children); break; default: parse(characters2, reference2, reference2, reference2, [""], children, 0, points, children); } } index2 = offset2 = property = 0, variable = ampersand = 1, type = characters2 = "", length2 = pseudo; break; case 58: length2 = 1 + strlen(characters2), property = previous; default: if (variable < 1) { if (character2 == 123) --variable; else if (character2 == 125 && variable++ == 0 && prev() == 125) continue; } switch (characters2 += from(character2), character2 * variable) { case 38: ampersand = offset2 > 0 ? 1 : (characters2 += "\f", -1); break; case 44: points[index2++] = (strlen(characters2) - 1) * ampersand, ampersand = 1; break; case 64: if (peek() === 45) characters2 += delimit(next()); atrule = peek(), offset2 = length2 = strlen(type = characters2 += identifier(caret())), character2++; break; case 45: if (previous === 45 && strlen(characters2) == 2) variable = 0; } } return rulesets; } function ruleset(value, root, parent, index2, offset2, rules, points, type, props, children, length2) { var post = offset2 - 1; var rule = offset2 === 0 ? rules : [""]; var size = sizeof(rule); for (var i = 0, j = 0, k2 = 0; i < index2; ++i) for (var x = 0, y2 = substr(value, post + 1, post = abs(j = points[i])), z2 = value; x < size; ++x) if (z2 = trim(j > 0 ? rule[x] + " " + y2 : replace(y2, /&\f/g, rule[x]))) props[k2++] = z2; return node(value, root, parent, offset2 === 0 ? RULESET : type, props, children, length2); } function comment(value, root, parent) { return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0); } function declaration(value, root, parent, length2) { return node(value, root, parent, DECLARATION, substr(value, 0, length2), substr(value, length2 + 1, -1), length2); } function prefix(value, length2) { switch (hash$2(value, length2)) { case 5103: return WEBKIT + "print-" + value + value; case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921: case 5572: case 6356: case 5844: case 3191: case 6645: case 3005: case 6391: case 5879: case 5623: case 6135: case 4599: case 4855: case 4215: case 6389: case 5109: case 5365: case 5621: case 3829: return WEBKIT + value + value; case 5349: case 4246: case 4810: case 6968: case 2756: return WEBKIT + value + MOZ + value + MS + value + value; case 6828: case 4268: return WEBKIT + value + MS + value + value; case 6165: return WEBKIT + value + MS + "flex-" + value + value; case 5187: return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + "box-$1$2" + MS + "flex-$1$2") + value; case 5443: return WEBKIT + value + MS + "flex-item-" + replace(value, /flex-|-self/, "") + value; case 4675: return WEBKIT + value + MS + "flex-line-pack" + replace(value, /align-content|flex-|-self/, "") + value; case 5548: return WEBKIT + value + MS + replace(value, "shrink", "negative") + value; case 5292: return WEBKIT + value + MS + replace(value, "basis", "preferred-size") + value; case 6060: return WEBKIT + "box-" + replace(value, "-grow", "") + WEBKIT + value + MS + replace(value, "grow", "positive") + value; case 4554: return WEBKIT + replace(value, /([^-])(transform)/g, "$1" + WEBKIT + "$2") + value; case 6187: return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + "$1"), /(image-set)/, WEBKIT + "$1"), value, "") + value; case 5495: case 3959: return replace(value, /(image-set\([^]*)/, WEBKIT + "$1$`$1"); case 4968: return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + "box-pack:$3" + MS + "flex-pack:$3"), /s.+-b[^;]+/, "justify") + WEBKIT + value + value; case 4095: case 3583: case 4068: case 2532: return replace(value, /(.+)-inline(.+)/, WEBKIT + "$1$2") + value; case 8116: case 7059: case 5753: case 5535: case 5445: case 5701: case 4933: case 4677: case 5533: case 5789: case 5021: case 4765: if (strlen(value) - 1 - length2 > 6) switch (charat(value, length2 + 1)) { case 109: if (charat(value, length2 + 4) !== 45) break; case 102: return replace(value, /(.+:)(.+)-([^]+)/, "$1" + WEBKIT + "$2-$3$1" + MOZ + (charat(value, length2 + 3) == 108 ? "$3" : "$2-$3")) + value; case 115: return ~indexof(value, "stretch") ? prefix(replace(value, "stretch", "fill-available"), length2) + value : value; } break; case 4949: if (charat(value, length2 + 1) !== 115) break; case 6444: switch (charat(value, strlen(value) - 3 - (~indexof(value, "!important") && 10))) { case 107: return replace(value, ":", ":" + WEBKIT) + value; case 101: return replace(value, /(.+:)([^;!]+)(;|!.+)?/, "$1" + WEBKIT + (charat(value, 14) === 45 ? "inline-" : "") + "box$3$1" + WEBKIT + "$2$3$1" + MS + "$2box$3") + value; } break; case 5936: switch (charat(value, length2 + 11)) { case 114: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb") + value; case 108: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "tb-rl") + value; case 45: return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, "lr") + value; } return WEBKIT + value + MS + value + value; } return value; } function serialize(children, callback) { var output = ""; var length2 = sizeof(children); for (var i = 0; i < length2; i++) output += callback(children[i], i, children, callback) || ""; return output; } function stringify(element, index2, children, callback) { switch (element.type) { case IMPORT: case DECLARATION: return element.return = element.return || element.value; case COMMENT: return ""; case KEYFRAMES: return element.return = element.value + "{" + serialize(element.children, callback) + "}"; case RULESET: element.value = element.props.join(","); } return strlen(children = serialize(element.children, callback)) ? element.return = element.value + "{" + children + "}" : ""; } function middleware(collection) { var length2 = sizeof(collection); return function(element, index2, children, callback) { var output = ""; for (var i = 0; i < length2; i++) output += collection[i](element, index2, children, callback) || ""; return output; }; } function rulesheet(callback) { return function(element) { if (!element.root) { if (element = element.return) callback(element); } }; } function prefixer(element, index2, children, callback) { if (element.length > -1) { if (!element.return) switch (element.type) { case DECLARATION: element.return = prefix(element.value, element.length); break; case KEYFRAMES: return serialize([copy(element, { value: replace(element.value, "@", "@" + WEBKIT) })], callback); case RULESET: if (element.length) return combine(element.props, function(value) { switch (match(value, /(::plac\w+|:read-\w+)/)) { case ":read-only": case ":read-write": return serialize([copy(element, { props: [replace(value, /:(read-\w+)/, ":" + MOZ + "$1")] })], callback); case "::placeholder": return serialize([ copy(element, { props: [replace(value, /:(plac\w+)/, ":" + WEBKIT + "input-$1")] }), copy(element, { props: [replace(value, /:(plac\w+)/, ":" + MOZ + "$1")] }), copy(element, { props: [replace(value, /:(plac\w+)/, MS + "input-$1")] }) ], callback); } return ""; }); } } } var identifierWithPointTracking = function identifierWithPointTracking2(begin, points, index2) { var previous = 0; var character2 = 0; while (true) { previous = character2; character2 = peek(); if (previous === 38 && character2 === 12) { points[index2] = 1; } if (token(character2)) { break; } next(); } return slice(begin, position$1); }; var toRules = function toRules2(parsed, points) { var index2 = -1; var character2 = 44; do { switch (token(character2)) { case 0: if (character2 === 38 && peek() === 12) { points[index2] = 1; } parsed[index2] += identifierWithPointTracking(position$1 - 1, points, index2); break; case 2: parsed[index2] += delimit(character2); break; case 4: if (character2 === 44) { parsed[++index2] = peek() === 58 ? "&\f" : ""; points[index2] = parsed[index2].length; break; } default: parsed[index2] += from(character2); } } while (character2 = next()); return parsed; }; var getRules = function getRules2(value, points) { return dealloc(toRules(alloc(value), points)); }; var fixedElements = /* @__PURE__ */ new WeakMap(); var compat = function compat2(element) { if (element.type !== "rule" || !element.parent || element.length < 1) { return; } var value = element.value, parent = element.parent; var isImplicitRule = element.column === parent.column && element.line === parent.line; while (parent.type !== "rule") { parent = parent.parent; if (!parent) return; } if (element.props.length === 1 && value.charCodeAt(0) !== 58 && !fixedElements.get(parent)) { return; } if (isImplicitRule) { return; } fixedElements.set(element, true); var points = []; var rules = getRules(value, points); var parentRules = parent.props; for (var i = 0, k2 = 0; i < rules.length; i++) { for (var j = 0; j < parentRules.length; j++, k2++) { element.props[k2] = points[i] ? rules[i].replace(/&\f/g, parentRules[j]) : parentRules[j] + " " + rules[i]; } } }; var removeLabel = function removeLabel2(element) { if (element.type === "decl") { var value = element.value; if (value.charCodeAt(0) === 1