0);return t}function ex(){const e=av(+new Date);return e!==sv?(iv=0,sv=e):e+"."+av(iv++)}for(;ga{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};n_(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,t_(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=ex()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new xn(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(o,i)=>{this.onError("xhr post error",o,i)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class xn extends je{constructor(t,n){super(),Tu(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=JS(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new nx(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let o in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(o)&&r.setRequestHeader(o,this.opts.extraHeaders[o])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var o;r.readyState===3&&((o=this.opts.cookieJar)===null||o===void 0||o.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(o){this.setTimeoutFn(()=>{this.onError(o)},0);return}typeof document<"u"&&(this.index=xn.requestsCount++,xn.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=y_,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete xn.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}xn.requestsCount=0;xn.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",lv);else if(typeof addEventListener=="function"){const e="onpagehide"in jt?"pagehide":"unload";addEventListener(e,lv,!1)}}function lv(){for(let e in xn.requests)xn.requests.hasOwnProperty(e)&&xn.requests[e].abort()}const Nh=typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0),wa=jt.WebSocket||jt.MozWebSocket,uv=!0,w_="arraybuffer",cv=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class S_ extends Rh{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=cv?{}:JS(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=uv&&!cv?n?new wa(t,n):new wa(t):new wa(t,n,r)}catch(o){return this.emitReserved("error",o)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{uv&&this.ws.send(i)}catch{}o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=ex()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!wa}}class x_ extends Rh{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=o_(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),o=r_();o.readable.pipeTo(t.writable),this.writer=o.writable.getWriter();const i=()=>{r.read().then(({done:a,value:l})=>{a||(this.onPacket(l),i())}).catch(a=>{})};i();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{o&&Nh(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const E_={websocket:S_,webtransport:x_,polling:g_},k_=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,b_=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Rd(e){if(e.length>2e3)throw"URI too long";const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let o=k_.exec(e||""),i={},s=14;for(;s--;)i[b_[s]]=o[s]||"";return n!=-1&&r!=-1&&(i.source=t,i.host=i.host.substring(1,i.host.length-1).replace(/;/g,":"),i.authority=i.authority.replace("[","").replace("]","").replace(/;/g,":"),i.ipv6uri=!0),i.pathNames=C_(i,i.path),i.queryKey=O_(i,i.query),i}function C_(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function O_(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,o,i){o&&(n[o]=i)}),n}let rx=class vo extends je{constructor(t,n={}){super(),this.binaryType=w_,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Rd(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Rd(n.host).host),Tu(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=d_(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=XS,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new E_[t](r)}open(){let t;if(this.opts.rememberUpgrade&&vo.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;vo.priorWebsocketSuccess=!1;const o=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",d=>{if(!r)if(d.type==="pong"&&d.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;vo.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(c(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const f=new Error("probe error");f.transport=n.name,this.emitReserved("upgradeError",f)}}))};function i(){r||(r=!0,c(),n.close(),n=null)}const s=d=>{const f=new Error("probe error: "+d);f.transport=n.name,i(),this.emitReserved("upgradeError",f)};function a(){s("transport closed")}function l(){s("socket closed")}function u(d){n&&d.name!==n.name&&i()}const c=()=>{n.removeListener("open",o),n.removeListener("error",s),n.removeListener("close",a),this.off("close",l),this.off("upgrading",u)};n.once("open",o),n.once("error",s),n.once("close",a),this.once("close",l),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",vo.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,o){if(typeof n=="function"&&(o=n,n=void 0),typeof r=="function"&&(o=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const i={type:t,data:n,options:r};this.emitReserved("packetCreate",i),this.writeBuffer.push(i),o&&this.once("flush",o),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){vo.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const o=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,ox=Object.prototype.toString,R_=typeof Blob=="function"||typeof Blob<"u"&&ox.call(Blob)==="[object BlobConstructor]",N_=typeof File=="function"||typeof File<"u"&&ox.call(File)==="[object FileConstructor]";function Ah(e){return __&&(e instanceof ArrayBuffer||T_(e))||R_&&e instanceof Blob||N_&&e instanceof File}function Ka(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let a=0;a{this.io.clearTimeoutFn(i),n.apply(this,a)};s.withError=!0,this.acks[t]=s}emitWithAck(t,...n){return new Promise((r,o)=>{const i=(s,a)=>s?o(s):r(a);i.withError=!0,n.push(i),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((o,...i)=>r!==this._queue[0]?void 0:(o!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(o)):(this._queue.shift(),n&&n(null,...i)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:J.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n),this._clearAcks()}_clearAcks(){Object.keys(this.acks).forEach(t=>{if(!this.sendBuffer.some(r=>String(r.id)===t)){const r=this.acks[t];delete this.acks[t],r.withError&&r.call(this,new Error("socket has been disconnected"))}})}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case J.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case J.EVENT:case J.BINARY_EVENT:this.onevent(t);break;case J.ACK:case J.BINARY_ACK:this.onack(t);break;case J.DISCONNECT:this.ondisconnect();break;case J.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...o){r||(r=!0,n.packet({type:J.ACK,id:t,data:o}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(delete this.acks[t.id],n.withError&&t.data.unshift(null),n.apply(this,t.data))}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:J.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}fi.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};fi.prototype.reset=function(){this.attempts=0};fi.prototype.setMin=function(e){this.ms=e};fi.prototype.setMax=function(e){this.max=e};fi.prototype.setJitter=function(e){this.jitter=e};class Pd extends je{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,Tu(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new fi({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const o=n.parser||B_;this.encoder=new o.Encoder,this.decoder=new o.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new rx(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const o=Zt(n,"open",function(){r.onopen(),t&&t()}),i=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=Zt(n,"error",i);if(this._timeout!==!1){const a=this._timeout,l=this.setTimeoutFn(()=>{o(),i(new Error("timeout")),n.close()},a);this.opts.autoUnref&&l.unref(),this.subs.push(()=>{this.clearTimeoutFn(l)})}return this.subs.push(o),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(Zt(t,"ping",this.onping.bind(this)),Zt(t,"data",this.ondata.bind(this)),Zt(t,"error",this.onerror.bind(this)),Zt(t,"close",this.onclose.bind(this)),Zt(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){Nh(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new ix(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(o=>{o?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",o)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Ti={};function Ga(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=$_(e,t.path||"/socket.io"),r=n.source,o=n.id,i=n.path,s=Ti[o]&&i in Ti[o].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let l;return a?l=new Pd(r,t):(Ti[o]||(Ti[o]=new Pd(r,t)),l=Ti[o]),n.query&&!t.query&&(t.query=n.queryKey),l.socket(n.path,t)}Object.assign(Ga,{Manager:Pd,Socket:ix,io:Ga,connect:Ga});const sx=(e,t)=>{if(typeof e=="number")return{full_access_path:t,doc:null,readonly:!1,type:Number.isInteger(e)?"int":"float",value:e};if(typeof e=="boolean")return{full_access_path:t,doc:null,readonly:!1,type:"bool",value:e};if(typeof e=="string")return{full_access_path:t,doc:null,readonly:!1,type:"str",value:e};if(e===null)return{full_access_path:t,doc:null,readonly:!1,type:"None",value:null};throw new Error("Unsupported type for serialization")},F_=(e,t="")=>{const r=e.map((o,i)=>{(typeof o=="number"||typeof o=="boolean"||typeof o=="string"||o===null)&&sx(o,`${t}[${i}]`)});return{full_access_path:t,type:"list",value:r,readonly:!1,doc:null}},z_=(e,t="")=>{const r=Object.entries(e).reduce((o,[i,s])=>{const a=`${t}["${i}"]`;return(typeof s=="number"||typeof s=="boolean"||typeof s=="string"||s===null)&&(o[i]=sx(s,a)),o},{});return{full_access_path:t,type:"dict",value:r,readonly:!1,doc:null}},ax=window.location.hostname,lx=window.location.port,ux=window.__FORWARDED_PREFIX__||"",Ui=window.__FORWARDED_PROTO__||"http",Sa=`${ax}:${lx}${ux}`,U_=Ui==="http"?"ws":"wss",W_=`${U_}://${ax}:${lx}/`,Ln=Ga(W_,{path:`${ux}/ws/socket.io`,transports:["websocket"]}),H_=(e,t)=>{t?Ln.emit("update_value",{access_path:e.full_access_path,value:e},t):Ln.emit("update_value",{access_path:e.full_access_path,value:e})},cx=(e,t=[],n={},r)=>{const o=F_(t),i=z_(n);Ln.emit("trigger_method",{access_path:e,args:o,kwargs:i})},fx=ne.memo(e=>{const{showNotification:t,notifications:n,removeNotificationById:r}=e;return w.jsx(Oh,{className:"navbarOffset toastContainer",position:"top-end",children:n.map(o=>o.levelname==="ERROR"||o.levelname==="CRITICAL"||t&&["WARNING","INFO","DEBUG"].includes(o.levelname)?w.jsxs(ts,{className:o.levelname.toLowerCase()+"Toast",onClose:()=>r(o.id),onClick:()=>r(o.id),onMouseLeave:()=>{o.levelname!=="ERROR"&&r(o.id)},show:!0,autohide:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG",delay:o.levelname==="WARNING"||o.levelname==="INFO"||o.levelname==="DEBUG"?2e3:void 0,children:[w.jsxs(ts.Header,{closeButton:!1,className:o.levelname.toLowerCase()+"Toast text-right",children:[w.jsx("strong",{className:"me-auto",children:o.levelname}),w.jsx("small",{children:o.timeStamp})]}),w.jsx(ts.Body,{children:o.message})]},o.id):null)})});fx.displayName="Notifications";const jd=ne.memo(({connectionStatus:e})=>{const[t,n]=h.useState(!0);h.useEffect(()=>{n(!0)},[e]);const r=()=>n(!1),o=()=>{switch(e){case"connecting":return{message:"Connecting...",bg:"info",delay:void 0};case"connected":return{message:"Connected",bg:"success",delay:1e3};case"disconnected":return{message:"Disconnected",bg:"danger",delay:void 0};case"reconnecting":return{message:"Reconnecting...",bg:"info",delay:void 0};default:return{message:"",bg:"info",delay:void 0}}},{message:i,bg:s,delay:a}=o();return w.jsx(Oh,{position:"bottom-center",className:"toastContainer",children:w.jsx(ts,{show:t,onClose:r,delay:a,autohide:a!==void 0,bg:s,children:w.jsxs(ts.Body,{className:"d-flex justify-content-between",children:[i,w.jsx(Fs,{variant:"close",size:"sm",onClick:r})]})})})});jd.displayName="ConnectionToast";function dx(e){const t=/\w+|\[\d+\.\d+\]|\[\d+\]|\["[^"]*"\]|\['[^']*'\]/g;return e.match(t)??[]}function V_(e){if(e.startsWith("[")&&e.endsWith("]")&&(e=e.slice(1,-1)),e.startsWith("'")&&e.endsWith("'")||e.startsWith('"')&&e.endsWith('"'))return e.slice(1,-1);const t=parseFloat(e);return isNaN(t)?e:t}function K_(e,t,n){if(t in e)return e[t];if(Array.isArray(e)){if(n&&t===e.length)return e.push(pv()),e[t];throw new Error(`Index out of bounds: ${t}`)}else{if(n)return e[t]=pv(),e[t];throw new Error(`Key not found: ${t}`)}}function dv(e,t,n=!1){const r=V_(t);try{return K_(e,r,n)}catch(o){throw o instanceof RangeError?new Error(`Index '${r}': ${o.message}`):o instanceof Error?new Error(`Key '${r}': ${o.message}`):o}}function G_(e,t,n){const r=dx(t),o=JSON.parse(JSON.stringify(e));let i=o;try{for(let l=0;l{const{docString:t}=e;if(!t)return null;const n=w.jsx(BS,{id:"tooltip",children:t});return w.jsx(G$,{placement:"bottom",overlay:n,children:w.jsx(Lw,{pill:!0,className:"tooltip-trigger",bg:"light",text:"dark",children:"?"})})});ln.displayName="DocStringComponent";function Cn(){const e=h.useRef(0);return h.useEffect(()=>{e.current+=1}),e.current}const px=ne.memo(e=>{const{value:t,fullAccessPath:n,readOnly:r,docString:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn(),h.useEffect(()=>{i(`${n} changed to ${t}.`)},[e.value]);const u=c=>{s({type:"bool",value:c,full_access_path:n,readonly:r,doc:o})};return w.jsxs("div",{className:"component buttonComponent",id:l,children:[!1,w.jsxs($h,{id:`toggle-check-${l}`,type:"checkbox",variant:t?"success":"secondary",checked:t,value:a,disabled:r,onChange:c=>u(c.currentTarget.checked),children:[a,w.jsx(ln,{docString:o})]})]})});px.displayName="ButtonComponent";const q_=(e,t,n)=>{const r=t.split("."),o=r[0].length,i=r[1]?r[1].length:0,s=n>o;let a=0;s?a=Math.pow(10,o+1-n):a=Math.pow(10,o-n);const u=(parseFloat(t)+(e==="ArrowUp"?a:-a)).toFixed(i),c=u.split(".")[0].length;return c>o?n+=1:cn>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t>0?{value:e.slice(0,t-1)+e.slice(t),selectionStart:t-1}:{value:e,selectionStart:t},Y_=(e,t,n)=>n>t?{value:e.slice(0,t)+e.slice(n),selectionStart:t}:t{let o=t;return e==="."&&t.includes(".")?{value:t,selectionStart:n}:e==="-"?(n===0&&r>n?(o="-"+t.slice(r),n=1):n===0&&!t.startsWith("-")?(o="-"+t,n=1):(n===0||n===1)&&t.startsWith("-")&&(o=t.slice(1),n=0),{value:o,selectionStart:n}):(r>n?o=t.slice(0,n)+e+t.slice(r):o=t.slice(0,n)+e+t.slice(n),{value:o,selectionStart:n+1})},zl=ne.memo(e=>{const{fullAccessPath:t,value:n,readOnly:r,type:o,docString:i,isInstantUpdate:s,unit:a,addNotification:l,changeCallback:u=()=>{},displayName:c,id:d}=e,[f,v]=h.useState(null),[g,S]=h.useState(n.toString());Cn();const k=p=>{const{key:y,target:E}=p,C=E;if(y==="F1"||y==="F5"||y==="F12"||y==="Tab"||y==="ArrowRight"||y==="ArrowLeft")return;p.preventDefault();const{value:x}=C,b=C.selectionEnd??0;let O=C.selectionStart??0,T=x;if(p.ctrlKey&&y==="a"){C.setSelectionRange(0,x.length);return}else if(y>="0"&&y<="9"||y==="-")({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="."&&(o==="float"||o==="Quantity"))({value:T,selectionStart:O}=hv(y,x,O,b));else if(y==="ArrowUp"||y==="ArrowDown")({value:T,selectionStart:O}=q_(y,x,O));else if(y==="Backspace")({value:T,selectionStart:O}=Q_(x,O,b));else if(y==="Delete")({value:T,selectionStart:O}=Y_(x,O,b));else if(y==="Enter"&&!s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($);return}else return;if(s){let $;o==="Quantity"?$={type:"Quantity",value:{magnitude:Number(T),unit:a},full_access_path:t,readonly:r,doc:i}:$={type:o,value:Number(T),full_access_path:t,readonly:r,doc:i},u($)}S(T),v(O)},m=()=>{if(!s){let p;o==="Quantity"?p={type:"Quantity",value:{magnitude:Number(g),unit:a},full_access_path:t,readonly:r,doc:i}:p={type:o,value:Number(g),full_access_path:t,readonly:r,doc:i},u(p)}};return h.useEffect(()=>{const p=o==="int"?parseInt(g):parseFloat(g);n!==p&&S(n.toString());let y=`${t} changed to ${e.value}`;a===void 0?y+=".":y+=` ${a}.`,l(y)},[n]),h.useEffect(()=>{const p=document.getElementsByName(d)[0];p&&f!==null&&p.setSelectionRange(f,f)}),w.jsxs("div",{className:"component numberComponent",id:d,children:[!1,w.jsxs(Un,{children:[c&&w.jsxs(Un.Text,{children:[c,w.jsx(ln,{docString:i})]}),w.jsx(ot.Control,{type:"text",value:g,disabled:r,onChange:()=>{},name:d,onKeyDown:k,onBlur:m,className:s&&!r?"instantUpdate":""}),a&&w.jsx(Un.Text,{children:a})]})]})});zl.displayName="NumberComponent";const _s={black:"#000",white:"#fff"},lo={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"},uo={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"},co={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"},fo={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"},po={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"},Ri={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"},X_={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function Ts(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?Ve(di,--yt):0,ti--,Ae===10&&(ti=1,Nu--),Ae}function Et(){return Ae=yt2||Ns(Ae)>3?"":" "}function mT(e,t){for(;--t&&Et()&&!(Ae<48||Ae>102||Ae>57&&Ae<65||Ae>70&&Ae<97););return Hs(e,qa()+(t<6&&En()==32&&Et()==32))}function Id(e){for(;Et();)switch(Ae){case e:return yt;case 34:case 39:e!==34&&e!==39&&Id(Ae);break;case 40:e===41&&Id(e);break;case 92:Et();break}return yt}function yT(e,t){for(;Et()&&e+Ae!==57;)if(e+Ae===84&&En()===47)break;return"/*"+Hs(t,yt-1)+"*"+Ru(e===47?e:Et())}function vT(e){for(;!Ns(En());)Et();return Hs(e,yt)}function gT(e){return Sx(Ya("",null,null,null,[""],e=wx(e),0,[0],e))}function Ya(e,t,n,r,o,i,s,a,l){for(var u=0,c=0,d=s,f=0,v=0,g=0,S=1,k=1,m=1,p=0,y="",E=o,C=i,x=r,b=y;k;)switch(g=p,p=Et()){case 40:if(g!=108&&Ve(b,d-1)==58){Ld(b+=ae(Qa(p),"&","&\f"),"&\f")!=-1&&(m=-1);break}case 34:case 39:case 91:b+=Qa(p);break;case 9:case 10:case 13:case 32:b+=hT(g);break;case 92:b+=mT(qa()-1,7);continue;case 47:switch(En()){case 42:case 47:xa(wT(yT(Et(),qa()),t,n),l);break;default:b+="/"}break;case 123*S:a[u++]=pn(b)*m;case 125*S:case 59:case 0:switch(p){case 0:case 125:k=0;case 59+c:m==-1&&(b=ae(b,/\f/g,"")),v>0&&pn(b)-d&&xa(v>32?yv(b+";",r,n,d-1):yv(ae(b," ","")+";",r,n,d-2),l);break;case 59:b+=";";default:if(xa(x=mv(b,t,n,u,c,o,a,y,E=[],C=[],d),i),p===123)if(c===0)Ya(b,t,x,x,E,i,d,a,C);else switch(f===99&&Ve(b,3)===110?100:f){case 100:case 108:case 109:case 115:Ya(e,x,x,r&&xa(mv(e,x,x,0,0,o,a,y,o,E=[],d),C),o,C,d,a,r?E:C);break;default:Ya(b,x,x,x,[""],C,0,a,C)}}u=c=v=0,S=m=1,y=b="",d=s;break;case 58:d=1+pn(b),v=g;default:if(S<1){if(p==123)--S;else if(p==125&&S++==0&&pT()==125)continue}switch(b+=Ru(p),p*S){case 38:m=c>0?1:(b+="\f",-1);break;case 44:a[u++]=(pn(b)-1)*m,m=1;break;case 64:En()===45&&(b+=Qa(Et())),f=En(),c=d=pn(y=b+=vT(qa())),p++;break;case 45:g===45&&pn(b)==2&&(S=0)}}return i}function mv(e,t,n,r,o,i,s,a,l,u,c){for(var d=o-1,f=o===0?i:[""],v=Mh(f),g=0,S=0,k=0;g0?f[m]+" "+p:ae(p,/&\f/g,f[m])))&&(l[k++]=y);return Au(e,t,n,o===0?Lh:a,l,u,c)}function wT(e,t,n){return Au(e,t,n,mx,Ru(dT()),Rs(e,2,-2),0)}function yv(e,t,n,r){return Au(e,t,n,Ih,Rs(e,0,r),Rs(e,r+1,-1),r)}function Fo(e,t){for(var n="",r=Mh(e),o=0;o6)switch(Ve(e,t+1)){case 109:if(Ve(e,t+4)!==45)break;case 102:return ae(e,/(.+:)(.+)-([^]+)/,"$1"+se+"$2-$3$1"+Ul+(Ve(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Ld(e,"stretch")?xx(ae(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Ve(e,t+1)!==115)break;case 6444:switch(Ve(e,pn(e)-3-(~Ld(e,"!important")&&10))){case 107:return ae(e,":",":"+se)+e;case 101:return ae(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+se+(Ve(e,14)===45?"inline-":"")+"box$3$1"+se+"$2$3$1"+Je+"$2box$3")+e}break;case 5936:switch(Ve(e,t+11)){case 114:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return se+e+Je+ae(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return se+e+Je+e+e}return e}var _T=function(t,n,r,o){if(t.length>-1&&!t.return)switch(t.type){case Ih:t.return=xx(t.value,t.length);break;case yx:return Fo([Ni(t,{value:ae(t.value,"@","@"+se)})],o);case Lh:if(t.length)return fT(t.props,function(i){switch(cT(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Fo([Ni(t,{props:[ae(i,/:(read-\w+)/,":"+Ul+"$1")]})],o);case"::placeholder":return Fo([Ni(t,{props:[ae(i,/:(plac\w+)/,":"+se+"input-$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,":"+Ul+"$1")]}),Ni(t,{props:[ae(i,/:(plac\w+)/,Je+"input-$1")]})],o)}return""})}},TT=[_T],Ex=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var k=S.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var o=t.stylisPlugins||TT,i={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var k=S.getAttribute("data-emotion").split(" "),m=1;m=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var DT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},FT=/[A-Z]|^ms/g,zT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,_x=function(t){return t.charCodeAt(1)===45},vv=function(t){return t!=null&&typeof t!="boolean"},Zc=px(function(e){return _x(e)?e:e.replace(FT,"-$&").toLowerCase()}),gv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(zT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return DT[t]!==1&&!_x(t)&&typeof n=="number"&&n!==0?n+"px":n};function Ns(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return UT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,Ns(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function UT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?qT:QT},kv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},YT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return Ox(n,r,o),HT(function(){return $x(n,r,o)}),null},XT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=kv(t,n,r),l=a||Ev(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(eR(o)?n:o):t;return w.jsx(KT,{styles:r})}function nR(e,t){return Id(e,t)}const rR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},oR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:tR,StyledEngineProvider:ZT,ThemeContext:zh,css:Px,default:nR,internal_processStyles:rR,keyframes:GT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function jx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=jx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?jx(t[o]):t[o]:r[o]=t[o]}),r}const iR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),sR=["values","unit","step"],aR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Lx(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,sR),i=aR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Uh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||bv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||bv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Uh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function uR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function cR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(_s(7));return e.charAt(0).toUpperCase()+e.slice(1)}const fR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Uu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Ul(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Uu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Uu(l,r)||{};return Qn(s,a,d=>{let f=Ul(u,o,d);return d===f&&typeof d=="string"&&(f=Ul(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function dR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const pR={m:"margin",p:"padding"},hR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Cv={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mR=dR(e=>{if(e.length>2)if(Cv[e])e=Cv[e];else return[e];const[t,n]=e.split(""),r=pR[t],o=hR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Wh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Hh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Wh,...Hh];function Hs(e,t,n,r){var o;const i=(o=Uu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Ix(e){return Hs(e,"spacing",8)}function Vs(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function yR(e,t){return n=>e.reduce((r,o)=>(r[o]=Vs(t,n),r),{})}function vR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=mR(n),i=yR(o,r),s=e[n];return Qn(e,s,i)}function Mx(e,t){const n=Ix(e.theme);return Object.keys(e).map(r=>vR(e,t,r,n)).reduce(ts,{})}function Ce(e){return Mx(e,Wh)}Ce.propTypes={};Ce.filterProps=Wh;function Oe(e){return Mx(e,Hh)}Oe.propTypes={};Oe.filterProps=Hh;function gR(e=8){if(e.mui)return e;const t=Ix({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Wu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ts(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const wR=Ht("border",Lt),SR=Ht("borderTop",Lt),xR=Ht("borderRight",Lt),ER=Ht("borderBottom",Lt),kR=Ht("borderLeft",Lt),bR=Ht("borderColor"),CR=Ht("borderTopColor"),OR=Ht("borderRightColor"),$R=Ht("borderBottomColor"),_R=Ht("borderLeftColor"),TR=Ht("outline",Lt),RR=Ht("outlineColor"),Hu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Hs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Vs(t,r)});return Qn(e,e.borderRadius,n)}return null};Hu.propTypes={};Hu.filterProps=["borderRadius"];Wu(wR,SR,xR,ER,kR,bR,CR,OR,$R,_R,Hu,TR,RR);const Vu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Hs(e.theme,"spacing",8),n=r=>({gap:Vs(t,r)});return Qn(e,e.gap,n)}return null};Vu.propTypes={};Vu.filterProps=["gap"];const Ku=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Hs(e.theme,"spacing",8),n=r=>({columnGap:Vs(t,r)});return Qn(e,e.columnGap,n)}return null};Ku.propTypes={};Ku.filterProps=["columnGap"];const Gu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Hs(e.theme,"spacing",8),n=r=>({rowGap:Vs(t,r)});return Qn(e,e.rowGap,n)}return null};Gu.propTypes={};Gu.filterProps=["rowGap"];const NR=Te({prop:"gridColumn"}),AR=Te({prop:"gridRow"}),PR=Te({prop:"gridAutoFlow"}),jR=Te({prop:"gridAutoColumns"}),LR=Te({prop:"gridAutoRows"}),IR=Te({prop:"gridTemplateColumns"}),MR=Te({prop:"gridTemplateRows"}),BR=Te({prop:"gridTemplateAreas"}),DR=Te({prop:"gridArea"});Wu(Vu,Ku,Gu,NR,AR,PR,jR,LR,IR,MR,BR,DR);function zo(e,t){return t==="grey"?t:e}const FR=Te({prop:"color",themeKey:"palette",transform:zo}),zR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),UR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Wu(FR,zR,UR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const WR=Te({prop:"width",transform:wt}),Vh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Uh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Vh.filterProps=["maxWidth"];const HR=Te({prop:"minWidth",transform:wt}),VR=Te({prop:"height",transform:wt}),KR=Te({prop:"maxHeight",transform:wt}),GR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const qR=Te({prop:"boxSizing"});Wu(WR,Vh,HR,VR,KR,GR,qR);const QR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Vu},rowGap:{style:Gu},columnGap:{style:Ku},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Vh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Ks=QR;function YR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function XR(e,t){return typeof e=="function"?e(t):e}function Bx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Uu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Ul(f,c,g);return g===S&&typeof g=="string"&&(S=Ul(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Ks;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=uR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=XR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=ts(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));YR(S,g)?f[v]=t({sx:g,theme:i}):f=ts(f,S)}else f=ts(f,e(v,g,i,s))}),cR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Dx=Bx();Dx.filterProps=["sx"];const Kh=Dx;function Fx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const JR=["breakpoints","palette","spacing","shape"];function zx(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,JR),a=Lx(n),l=gR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},lR,i)},s);return u.applyStyles=Fx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Ks,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Kh({sx:d,theme:this})},u}const ZR=Object.freeze(Object.defineProperty({__proto__:null,default:zx,private_createBreakpoints:Lx,unstable_applyStyles:Fx},Symbol.toStringTag,{value:"Module"})),eN=["sx"],tN=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Ks;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function nN(e){const{sx:t}=e,n=an(e,eN),{systemProps:r,otherProps:o}=tN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const rN=Object.freeze(Object.defineProperty({__proto__:null,default:Kh,extendSxProp:nN,unstable_createStyleFunctionSx:Bx,unstable_defaultSxConfig:Ks},Symbol.toStringTag,{value:"Module"})),Ov=e=>e,oN=()=>{let e=Ov;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Ov}}},iN=oN();function Ux(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Wx(e,o,n)}),r}var Hx={exports:{}},fe={};/**
+ */var ze=typeof Symbol=="function"&&Symbol.for,Bh=ze?Symbol.for("react.element"):60103,Dh=ze?Symbol.for("react.portal"):60106,Pu=ze?Symbol.for("react.fragment"):60107,ju=ze?Symbol.for("react.strict_mode"):60108,Lu=ze?Symbol.for("react.profiler"):60114,Iu=ze?Symbol.for("react.provider"):60109,Mu=ze?Symbol.for("react.context"):60110,Fh=ze?Symbol.for("react.async_mode"):60111,Bu=ze?Symbol.for("react.concurrent_mode"):60111,Du=ze?Symbol.for("react.forward_ref"):60112,Fu=ze?Symbol.for("react.suspense"):60113,RT=ze?Symbol.for("react.suspense_list"):60120,zu=ze?Symbol.for("react.memo"):60115,Uu=ze?Symbol.for("react.lazy"):60116,NT=ze?Symbol.for("react.block"):60121,AT=ze?Symbol.for("react.fundamental"):60117,PT=ze?Symbol.for("react.responder"):60118,jT=ze?Symbol.for("react.scope"):60119;function $t(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bh:switch(e=e.type,e){case Fh:case Bu:case Pu:case Lu:case ju:case Fu:return e;default:switch(e=e&&e.$$typeof,e){case Mu:case Du:case Uu:case zu:case Iu:return e;default:return t}}case Dh:return t}}}function bx(e){return $t(e)===Bu}ce.AsyncMode=Fh;ce.ConcurrentMode=Bu;ce.ContextConsumer=Mu;ce.ContextProvider=Iu;ce.Element=Bh;ce.ForwardRef=Du;ce.Fragment=Pu;ce.Lazy=Uu;ce.Memo=zu;ce.Portal=Dh;ce.Profiler=Lu;ce.StrictMode=ju;ce.Suspense=Fu;ce.isAsyncMode=function(e){return bx(e)||$t(e)===Fh};ce.isConcurrentMode=bx;ce.isContextConsumer=function(e){return $t(e)===Mu};ce.isContextProvider=function(e){return $t(e)===Iu};ce.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bh};ce.isForwardRef=function(e){return $t(e)===Du};ce.isFragment=function(e){return $t(e)===Pu};ce.isLazy=function(e){return $t(e)===Uu};ce.isMemo=function(e){return $t(e)===zu};ce.isPortal=function(e){return $t(e)===Dh};ce.isProfiler=function(e){return $t(e)===Lu};ce.isStrictMode=function(e){return $t(e)===ju};ce.isSuspense=function(e){return $t(e)===Fu};ce.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Pu||e===Bu||e===Lu||e===ju||e===Fu||e===RT||typeof e=="object"&&e!==null&&(e.$$typeof===Uu||e.$$typeof===zu||e.$$typeof===Iu||e.$$typeof===Mu||e.$$typeof===Du||e.$$typeof===AT||e.$$typeof===PT||e.$$typeof===jT||e.$$typeof===NT)};ce.typeOf=$t;kx.exports=ce;var LT=kx.exports,Cx=LT,IT={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},MT={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},Ox={};Ox[Cx.ForwardRef]=IT;Ox[Cx.Memo]=MT;var BT=!0;function DT(e,t,n){var r="";return n.split(" ").forEach(function(o){e[o]!==void 0?t.push(e[o]+";"):r+=o+" "}),r}var $x=function(t,n,r){var o=t.key+"-"+n.name;(r===!1||BT===!1)&&t.registered[o]===void 0&&(t.registered[o]=n.styles)},_x=function(t,n,r){$x(t,n,r);var o=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var i=n;do t.insert(n===i?"."+o:"",i,t.sheet,!0),i=i.next;while(i!==void 0)}};function FT(e){for(var t=0,n,r=0,o=e.length;o>=4;++r,o-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(o){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var zT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},UT=/[A-Z]|^ms/g,WT=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Tx=function(t){return t.charCodeAt(1)===45},gv=function(t){return t!=null&&typeof t!="boolean"},ef=hx(function(e){return Tx(e)?e:e.replace(UT,"-$&").toLowerCase()}),wv=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(WT,function(r,o,i){return hn={name:o,styles:i,next:hn},o})}return zT[t]!==1&&!Tx(t)&&typeof n=="number"&&n!==0?n+"px":n};function As(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return hn={name:n.name,styles:n.styles,next:hn},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)hn={name:r.name,styles:r.styles,next:hn},r=r.next;var o=n.styles+";";return o}return HT(e,t,n)}case"function":{if(e!==void 0){var i=hn,s=n(e);return hn=i,As(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function HT(e,t,n){var r="";if(Array.isArray(n))for(var o=0;o96?YT:XT},bv=function(t,n,r){var o;if(n){var i=n.shouldForwardProp;o=t.__emotion_forwardProp&&i?function(s){return t.__emotion_forwardProp(s)&&i(s)}:i}return typeof o!="function"&&r&&(o=t.__emotion_forwardProp),o},JT=function(t){var n=t.cache,r=t.serialized,o=t.isStringTag;return $x(n,r,o),KT(function(){return _x(n,r,o)}),null},ZT=function e(t,n){var r=t.__emotion_real===t,o=r&&t.__emotion_base||t,i,s;n!==void 0&&(i=n.label,s=n.target);var a=bv(t,n,r),l=a||kv(o),u=!l("as");return function(){var c=arguments,d=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(i!==void 0&&d.push("label:"+i+";"),c[0]==null||c[0].raw===void 0)d.push.apply(d,c);else{d.push(c[0][0]);for(var f=c.length,v=1;vt(nR(o)?n:o):t;return w.jsx(qT,{styles:r})}function oR(e,t){return Md(e,t)}const iR=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},sR=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:rR,StyledEngineProvider:tR,ThemeContext:Uh,css:jx,default:oR,internal_processStyles:iR,keyframes:QT},Symbol.toStringTag,{value:"Module"}));function lr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Lx(e){if(!lr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Lx(e[n])}),t}function kn(e,t,n={clone:!0}){const r=n.clone?j({},e):e;return lr(e)&&lr(t)&&Object.keys(t).forEach(o=>{lr(t[o])&&Object.prototype.hasOwnProperty.call(e,o)&&lr(e[o])?r[o]=kn(e[o],t[o],n):n.clone?r[o]=lr(t[o])?Lx(t[o]):t[o]:r[o]=t[o]}),r}const aR=Object.freeze(Object.defineProperty({__proto__:null,default:kn,isPlainObject:lr},Symbol.toStringTag,{value:"Module"})),lR=["values","unit","step"],uR=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>j({},n,{[r.key]:r.val}),{})};function Ix(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,o=an(e,lR),i=uR(t),s=Object.keys(i);function a(f){return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n})`}function l(f){return`@media (max-width:${(typeof t[f]=="number"?t[f]:f)-r/100}${n})`}function u(f,v){const g=s.indexOf(v);return`@media (min-width:${typeof t[f]=="number"?t[f]:f}${n}) and (max-width:${(g!==-1&&typeof t[s[g]]=="number"?t[s[g]]:v)-r/100}${n})`}function c(f){return s.indexOf(f)+1`@media (min-width:${Wh[e]}px)`};function Qn(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const i=r.breakpoints||Cv;return t.reduce((s,a,l)=>(s[i.up(i.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const i=r.breakpoints||Cv;return Object.keys(t).reduce((s,a)=>{if(Object.keys(i.values||Wh).indexOf(a)!==-1){const l=i.up(a);s[l]=n(t[a],a)}else{const l=a;s[l]=t[l]}return s},{})}return n(t)}function fR(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,o)=>{const i=e.up(o);return r[i]={},r},{}))||{}}function dR(e,t){return e.reduce((n,r)=>{const o=n[r];return(!o||Object.keys(o).length===0)&&delete n[r],n},t)}function tn(e){if(typeof e!="string")throw new Error(Ts(7));return e.charAt(0).toUpperCase()+e.slice(1)}const pR=Object.freeze(Object.defineProperty({__proto__:null,default:tn},Symbol.toStringTag,{value:"Module"}));function Wu(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((o,i)=>o&&o[i]?o[i]:null,e);if(r!=null)return r}return t.split(".").reduce((r,o)=>r&&r[o]!=null?r[o]:null,e)}function Wl(e,t,n,r=n){let o;return typeof e=="function"?o=e(n):Array.isArray(e)?o=e[n]||r:o=Wu(e,n)||r,t&&(o=t(o,r,e)),o}function Te(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:o}=e,i=s=>{if(s[t]==null)return null;const a=s[t],l=s.theme,u=Wu(l,r)||{};return Qn(s,a,d=>{let f=Wl(u,o,d);return d===f&&typeof d=="string"&&(f=Wl(u,o,`${t}${d==="default"?"":tn(d)}`,d)),n===!1?f:{[n]:f}})};return i.propTypes={},i.filterProps=[t],i}function hR(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const mR={m:"margin",p:"padding"},yR={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Ov={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},vR=hR(e=>{if(e.length>2)if(Ov[e])e=Ov[e];else return[e];const[t,n]=e.split(""),r=mR[t],o=yR[n]||"";return Array.isArray(o)?o.map(i=>r+i):[r+o]}),Hh=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vh=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Hh,...Vh];function Vs(e,t,n,r){var o;const i=(o=Wu(e,t,!1))!=null?o:n;return typeof i=="number"?s=>typeof s=="string"?s:i*s:Array.isArray(i)?s=>typeof s=="string"?s:i[s]:typeof i=="function"?i:()=>{}}function Mx(e){return Vs(e,"spacing",8)}function Ks(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gR(e,t){return n=>e.reduce((r,o)=>(r[o]=Ks(t,n),r),{})}function wR(e,t,n,r){if(t.indexOf(n)===-1)return null;const o=vR(n),i=gR(o,r),s=e[n];return Qn(e,s,i)}function Bx(e,t){const n=Mx(e.theme);return Object.keys(e).map(r=>wR(e,t,r,n)).reduce(ns,{})}function Ce(e){return Bx(e,Hh)}Ce.propTypes={};Ce.filterProps=Hh;function Oe(e){return Bx(e,Vh)}Oe.propTypes={};Oe.filterProps=Vh;function SR(e=8){if(e.mui)return e;const t=Mx({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(i=>{const s=t(i);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function Hu(...e){const t=e.reduce((r,o)=>(o.filterProps.forEach(i=>{r[i]=o}),r),{}),n=r=>Object.keys(r).reduce((o,i)=>t[i]?ns(o,t[i](r)):o,{});return n.propTypes={},n.filterProps=e.reduce((r,o)=>r.concat(o.filterProps),[]),n}function Lt(e){return typeof e!="number"?e:`${e}px solid`}function Ht(e,t){return Te({prop:e,themeKey:"borders",transform:t})}const xR=Ht("border",Lt),ER=Ht("borderTop",Lt),kR=Ht("borderRight",Lt),bR=Ht("borderBottom",Lt),CR=Ht("borderLeft",Lt),OR=Ht("borderColor"),$R=Ht("borderTopColor"),_R=Ht("borderRightColor"),TR=Ht("borderBottomColor"),RR=Ht("borderLeftColor"),NR=Ht("outline",Lt),AR=Ht("outlineColor"),Vu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Vs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ks(t,r)});return Qn(e,e.borderRadius,n)}return null};Vu.propTypes={};Vu.filterProps=["borderRadius"];Hu(xR,ER,kR,bR,CR,OR,$R,_R,TR,RR,Vu,NR,AR);const Ku=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({gap:Ks(t,r)});return Qn(e,e.gap,n)}return null};Ku.propTypes={};Ku.filterProps=["gap"];const Gu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({columnGap:Ks(t,r)});return Qn(e,e.columnGap,n)}return null};Gu.propTypes={};Gu.filterProps=["columnGap"];const qu=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Vs(e.theme,"spacing",8),n=r=>({rowGap:Ks(t,r)});return Qn(e,e.rowGap,n)}return null};qu.propTypes={};qu.filterProps=["rowGap"];const PR=Te({prop:"gridColumn"}),jR=Te({prop:"gridRow"}),LR=Te({prop:"gridAutoFlow"}),IR=Te({prop:"gridAutoColumns"}),MR=Te({prop:"gridAutoRows"}),BR=Te({prop:"gridTemplateColumns"}),DR=Te({prop:"gridTemplateRows"}),FR=Te({prop:"gridTemplateAreas"}),zR=Te({prop:"gridArea"});Hu(Ku,Gu,qu,PR,jR,LR,IR,MR,BR,DR,FR,zR);function zo(e,t){return t==="grey"?t:e}const UR=Te({prop:"color",themeKey:"palette",transform:zo}),WR=Te({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:zo}),HR=Te({prop:"backgroundColor",themeKey:"palette",transform:zo});Hu(UR,WR,HR);function wt(e){return e<=1&&e!==0?`${e*100}%`:e}const VR=Te({prop:"width",transform:wt}),Kh=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,o;const i=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Wh[n];return i?((o=e.theme)==null||(o=o.breakpoints)==null?void 0:o.unit)!=="px"?{maxWidth:`${i}${e.theme.breakpoints.unit}`}:{maxWidth:i}:{maxWidth:wt(n)}};return Qn(e,e.maxWidth,t)}return null};Kh.filterProps=["maxWidth"];const KR=Te({prop:"minWidth",transform:wt}),GR=Te({prop:"height",transform:wt}),qR=Te({prop:"maxHeight",transform:wt}),QR=Te({prop:"minHeight",transform:wt});Te({prop:"size",cssProperty:"width",transform:wt});Te({prop:"size",cssProperty:"height",transform:wt});const YR=Te({prop:"boxSizing"});Hu(VR,Kh,KR,GR,qR,QR,YR);const XR={border:{themeKey:"borders",transform:Lt},borderTop:{themeKey:"borders",transform:Lt},borderRight:{themeKey:"borders",transform:Lt},borderBottom:{themeKey:"borders",transform:Lt},borderLeft:{themeKey:"borders",transform:Lt},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Lt},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Vu},color:{themeKey:"palette",transform:zo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:zo},backgroundColor:{themeKey:"palette",transform:zo},p:{style:Oe},pt:{style:Oe},pr:{style:Oe},pb:{style:Oe},pl:{style:Oe},px:{style:Oe},py:{style:Oe},padding:{style:Oe},paddingTop:{style:Oe},paddingRight:{style:Oe},paddingBottom:{style:Oe},paddingLeft:{style:Oe},paddingX:{style:Oe},paddingY:{style:Oe},paddingInline:{style:Oe},paddingInlineStart:{style:Oe},paddingInlineEnd:{style:Oe},paddingBlock:{style:Oe},paddingBlockStart:{style:Oe},paddingBlockEnd:{style:Oe},m:{style:Ce},mt:{style:Ce},mr:{style:Ce},mb:{style:Ce},ml:{style:Ce},mx:{style:Ce},my:{style:Ce},margin:{style:Ce},marginTop:{style:Ce},marginRight:{style:Ce},marginBottom:{style:Ce},marginLeft:{style:Ce},marginX:{style:Ce},marginY:{style:Ce},marginInline:{style:Ce},marginInlineStart:{style:Ce},marginInlineEnd:{style:Ce},marginBlock:{style:Ce},marginBlockStart:{style:Ce},marginBlockEnd:{style:Ce},displayPrint:{cssProperty:!1,transform:e=>({"@media print":{display:e}})},display:{},overflow:{},textOverflow:{},visibility:{},whiteSpace:{},flexBasis:{},flexDirection:{},flexWrap:{},justifyContent:{},alignItems:{},alignContent:{},order:{},flex:{},flexGrow:{},flexShrink:{},alignSelf:{},justifyItems:{},justifySelf:{},gap:{style:Ku},rowGap:{style:qu},columnGap:{style:Gu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:wt},maxWidth:{style:Kh},minWidth:{transform:wt},height:{transform:wt},maxHeight:{transform:wt},minHeight:{transform:wt},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},Gs=XR;function JR(...e){const t=e.reduce((r,o)=>r.concat(Object.keys(o)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ZR(e,t){return typeof e=="function"?e(t):e}function Dx(){function e(n,r,o,i){const s={[n]:r,theme:o},a=i[n];if(!a)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const f=Wu(o,u)||{};return d?d(s):Qn(s,r,g=>{let S=Wl(f,c,g);return g===S&&typeof g=="string"&&(S=Wl(f,c,`${n}${g==="default"?"":tn(g)}`,g)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:o,theme:i={}}=n||{};if(!o)return null;const s=(r=i.unstable_sxConfig)!=null?r:Gs;function a(l){let u=l;if(typeof l=="function")u=l(i);else if(typeof l!="object")return l;if(!u)return null;const c=fR(i.breakpoints),d=Object.keys(c);let f=c;return Object.keys(u).forEach(v=>{const g=ZR(u[v],i);if(g!=null)if(typeof g=="object")if(s[v])f=ns(f,e(v,g,i,s));else{const S=Qn({theme:i},g,k=>({[v]:k}));JR(S,g)?f[v]=t({sx:g,theme:i}):f=ns(f,S)}else f=ns(f,e(v,g,i,s))}),dR(d,f)}return Array.isArray(o)?o.map(a):a(o)}return t}const Fx=Dx();Fx.filterProps=["sx"];const Gh=Fx;function zx(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const eN=["breakpoints","palette","spacing","shape"];function Ux(e={},...t){const{breakpoints:n={},palette:r={},spacing:o,shape:i={}}=e,s=an(e,eN),a=Ix(n),l=SR(o);let u=kn({breakpoints:a,direction:"ltr",components:{},palette:j({mode:"light"},r),spacing:l,shape:j({},cR,i)},s);return u.applyStyles=zx,u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Gs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const tN=Object.freeze(Object.defineProperty({__proto__:null,default:Ux,private_createBreakpoints:Ix,unstable_applyStyles:zx},Symbol.toStringTag,{value:"Module"})),nN=["sx"],rN=e=>{var t,n;const r={systemProps:{},otherProps:{}},o=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:Gs;return Object.keys(e).forEach(i=>{o[i]?r.systemProps[i]=e[i]:r.otherProps[i]=e[i]}),r};function oN(e){const{sx:t}=e,n=an(e,nN),{systemProps:r,otherProps:o}=rN(n);let i;return Array.isArray(t)?i=[r,...t]:typeof t=="function"?i=(...s)=>{const a=t(...s);return lr(a)?j({},r,a):r}:i=j({},r,t),j({},o,{sx:i})}const iN=Object.freeze(Object.defineProperty({__proto__:null,default:Gh,extendSxProp:oN,unstable_createStyleFunctionSx:Dx,unstable_defaultSxConfig:Gs},Symbol.toStringTag,{value:"Module"})),$v=e=>e,sN=()=>{let e=$v;return{configure(t){e=t},generate(t){return e(t)},reset(){e=$v}}},aN=sN();function Wx(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t{r[o]=Hx(e,o,n)}),r}var Vx={exports:{}},fe={};/**
* @license React
* react-is.production.min.js
*
@@ -56,7 +56,7 @@ Error generating stack: `+i.message+`
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
- */var Gh=Symbol.for("react.element"),qh=Symbol.for("react.portal"),qu=Symbol.for("react.fragment"),Qu=Symbol.for("react.strict_mode"),Yu=Symbol.for("react.profiler"),Xu=Symbol.for("react.provider"),Ju=Symbol.for("react.context"),lN=Symbol.for("react.server_context"),Zu=Symbol.for("react.forward_ref"),ec=Symbol.for("react.suspense"),tc=Symbol.for("react.suspense_list"),nc=Symbol.for("react.memo"),rc=Symbol.for("react.lazy"),uN=Symbol.for("react.offscreen"),Vx;Vx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Gh:switch(e=e.type,e){case qu:case Yu:case Qu:case ec:case tc:return e;default:switch(e=e&&e.$$typeof,e){case lN:case Ju:case Zu:case rc:case nc:case Xu:return e;default:return t}}case qh:return t}}}fe.ContextConsumer=Ju;fe.ContextProvider=Xu;fe.Element=Gh;fe.ForwardRef=Zu;fe.Fragment=qu;fe.Lazy=rc;fe.Memo=nc;fe.Portal=qh;fe.Profiler=Yu;fe.StrictMode=Qu;fe.Suspense=ec;fe.SuspenseList=tc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Ju};fe.isContextProvider=function(e){return Vt(e)===Xu};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Gh};fe.isForwardRef=function(e){return Vt(e)===Zu};fe.isFragment=function(e){return Vt(e)===qu};fe.isLazy=function(e){return Vt(e)===rc};fe.isMemo=function(e){return Vt(e)===nc};fe.isPortal=function(e){return Vt(e)===qh};fe.isProfiler=function(e){return Vt(e)===Yu};fe.isStrictMode=function(e){return Vt(e)===Qu};fe.isSuspense=function(e){return Vt(e)===ec};fe.isSuspenseList=function(e){return Vt(e)===tc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===qu||e===Yu||e===Qu||e===ec||e===tc||e===uN||typeof e=="object"&&e!==null&&(e.$$typeof===rc||e.$$typeof===nc||e.$$typeof===Xu||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===Vx||e.getModuleId!==void 0)};fe.typeOf=Vt;Hx.exports=fe;var $v=Hx.exports;const cN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Kx(e){const t=`${e}`.match(cN);return t&&t[1]||""}function Gx(e,t=""){return e.displayName||e.name||Kx(e)||t}function _v(e,t,n){const r=Gx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function fN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return Gx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case $v.ForwardRef:return _v(e,e.render,"ForwardRef");case $v.Memo:return _v(e,e.type,"memo");default:return}}}const dN=Object.freeze(Object.defineProperty({__proto__:null,default:fN,getFunctionName:Kx},Symbol.toStringTag,{value:"Module"}));function Bd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Bd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const qx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const pN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Ya(e){return e&&e.ownerDocument||document}function hN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function mN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function tf(e){const t=h.useRef(e);return qx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Dd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{hN(n,t)})},e)}class Qh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Qh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let oc=!0,Fd=!1;const yN=new Qh,vN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function gN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&vN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function wN(e){e.metaKey||e.altKey||e.ctrlKey||(oc=!0)}function nf(){oc=!1}function SN(){this.visibilityState==="hidden"&&Fd&&(oc=!0)}function xN(e){e.addEventListener("keydown",wN,!0),e.addEventListener("mousedown",nf,!0),e.addEventListener("pointerdown",nf,!0),e.addEventListener("touchstart",nf,!0),e.addEventListener("visibilitychange",SN,!0)}function EN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return oc||gN(t)}function kN(){const e=h.useCallback(o=>{o!=null&&xN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(Fd=!0,yN.start(100,()=>{Fd=!1}),t.current=!1,!0):!1}function r(o){return EN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const bN={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function CN(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const ON=h.createContext(),$N=()=>{const e=h.useContext(ON);return e??!1},_N=h.createContext(void 0);function TN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Bd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Bd(o,r):r}function RN({props:e,name:t}){const n=h.useContext(_N);return TN({props:e,name:t,theme:{components:n}})}function NN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Qx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Qx);var Yx=Qx.exports;const AN=Yn(Y_),PN=Yn(pN);var Xx=Yx;Object.defineProperty(Re,"__esModule",{value:!0});var Tv=Re.alpha=tE;Re.blend=HN;Re.colorChannel=void 0;var zd=Re.darken=Xh;Re.decomposeColor=Wt;Re.emphasize=nE;var jN=Re.getContrastRatio=DN;Re.getLuminance=Wl;Re.hexToRgb=Jx;Re.hslToRgb=eE;var Ud=Re.lighten=Jh;Re.private_safeAlpha=FN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=zN;Re.private_safeEmphasize=WN;Re.private_safeLighten=UN;Re.recomposeColor=pi;Re.rgbToHex=BN;var Rv=Xx(AN),LN=Xx(PN);function Yh(e,t=0,n=1){return(0,LN.default)(e,t,n)}function Jx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function IN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Jx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Rv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Rv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const Zx=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=Zx;const MN=(e,t)=>{try{return Zx(e)}catch{return e}};Re.private_safeColorChannel=MN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function BN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>IN(r===3?Math.round(255*n):n)).join("")}`}function eE(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Wl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(eE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function DN(e,t){const n=Wl(e),r=Wl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function tE(e,t){return e=Wt(e),t=Yh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function FN(e,t,n){try{return tE(e,t)}catch{return e}}function Xh(e,t){if(e=Wt(e),t=Yh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function zN(e,t,n){try{return Xh(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Yh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function UN(e,t,n){try{return Jh(e,t)}catch{return e}}function nE(e,t=.15){return Wl(e)>.5?Xh(e,t):Jh(e,t)}function WN(e,t,n){try{return nE(e,t)}catch{return e}}function HN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const VN=["mode","contrastThreshold","tonalOffset"],Nv={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:$s.white,default:$s.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}},rf={text:{primary:$s.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:$s.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 Av(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Ud(e.main,o):t==="dark"&&(e.dark=zd(e.main,i)))}function KN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function GN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function qN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function QN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function YN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function XN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function JN(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,VN),i=e.primary||KN(t),s=e.secondary||GN(t),a=e.error||qN(t),l=e.info||QN(t),u=e.success||YN(t),c=e.warning||XN(t);function d(S){return jN(S,rf.text.primary)>=n?rf.text.primary:Nv.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(_s(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(_s(12,k?` (${k})`:"",JSON.stringify(S.main)));return Av(S,"light",p,r),Av(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:rf,light:Nv};return kn(j({common:j({},$s),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:Q_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const ZN=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function eA(e){return Math.round(e*1e5)/1e5}const Pv={textTransform:"uppercase"},jv='"Roboto", "Helvetica", "Arial", sans-serif';function tA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=jv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,ZN),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===jv?{letterSpacing:`${eA(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,Pv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,Pv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const nA=.2,rA=.14,oA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${nA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${rA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${oA})`].join(",")}const iA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],sA=["duration","easing","delay"],aA={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)"},lA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Lv(e){return`${Math.round(e)}ms`}function uA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function cA(e){const t=j({},aA,e.easing),n=j({},lA,e.duration);return j({getAutoHeightDuration:uA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,sA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Lv(s)} ${a} ${typeof l=="string"?l:Lv(l)}`).join(",")}},e,{easing:t,duration:n})}const fA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},dA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function pA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,dA);if(e.vars)throw new Error(_s(18));const a=JN(r),l=zx(e);let u=kn(l,{mixins:NN(l.breakpoints,n),palette:a,shadows:iA.slice(),typography:tA(a,i),transitions:cA(o),zIndex:j({},fA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Ks,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Kh({sx:d,theme:this})},u}const hA=pA();var Gs={},of={exports:{}},Iv;function mA(){return Iv||(Iv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(of)),of.exports}const yA=Yn(oR),vA=Yn(iR),gA=Yn(fR),wA=Yn(dN),SA=Yn(ZR),xA=Yn(rN);var hi=Yx;Object.defineProperty(Gs,"__esModule",{value:!0});var EA=Gs.default=LA;Gs.shouldForwardProp=Xa;Gs.systemDefaultTheme=void 0;var Rt=hi(Ax()),Wd=hi(mA()),Mv=TA(yA),kA=vA;hi(gA);hi(wA);var bA=hi(SA),CA=hi(xA);const OA=["ownerState"],$A=["variants"],_A=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function rE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(rE=function(r){return r?n:t})(e)}function TA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=rE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function RA(e){return Object.keys(e).length===0}function NA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Xa(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const AA=Gs.systemDefaultTheme=(0,bA.default)(),PA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function xa({defaultTheme:e,theme:t,themeId:n}){return RA(t)?e:t[n]||t}function jA(e){return e?(t,n)=>n[e]:null}function Ja(e,t){let{ownerState:n}=t,r=(0,Wd.default)(t,OA);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Ja(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Wd.default)(o,$A);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function LA(e={}){const{themeId:t,defaultTheme:n=AA,rootShouldForwardProp:r=Xa,slotShouldForwardProp:o=Xa}=e,i=s=>(0,CA.default)((0,Rt.default)({},s,{theme:xa((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Mv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=jA(PA(u))}=a,v=(0,Wd.default)(a,_A),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Xa;u==="Root"||u==="root"?m=r:u?m=o:NA(s)&&(m=void 0);const p=(0,Mv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,kA.isPlainObject)(C)?x=>Ja(C,(0,Rt.default)({},x,{theme:xa({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=xa((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Ja(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=xa((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Ja({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function Zh(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const IA=e=>Zh(e)&&e!=="classes",Xr=EA({themeId:X_,defaultTheme:hA,rootShouldForwardProp:IA});function MA(e){return RN(e)}function ns(e){return typeof e=="string"}function BA(e,t,n){return e===void 0||ns(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function DA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function Za(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function FA(e,t,n){return typeof e=="function"?e(t,n):e}function Bv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function zA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=Za(j({},o,r)),a=Bv(r),l=Bv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const UA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,UA),a=i?{}:FA(r,o),{props:l,internalRef:u}=zA(j({},s,{externalSlotProps:a})),c=Dd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return BA(n,j({},l,{ref:c}),o)}const WA=2;function oE(e,t){return e-t}function Dv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},qA=e=>e;let Ca;function zv(){return Ca===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Ca=CSS.supports("touch-action","none"):Ca=!0),Ca}function QA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=qA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=mN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(oE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=kN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Dd(Y,X),ge=Dd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};qx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=HA(un,l,a),S)le=KA(le,S,l);else{const ro=Dv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Dv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=Fv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=tf(N=>{const P=Ea(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ka({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>WA&&T(!0),B&&!ba(D,A)&&B(N,D,oe)}),Ue=tf(N=>{const P=Ea(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=tf(N=>{if(r)return;zv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=Ea(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ka({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!ba(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Ya(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Ya(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:zv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=Ea(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ka({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!ba(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Ya(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Hl(K?W[0]:l,l,a),Gt=Hl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=Za(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:GA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=Za(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},bN,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=Za(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const YA=e=>!e||!ns(e);function XA(e){return Wx("MuiSlider",e)}const Mt=aN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),JA=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function ZA(e){const{children:t,className:n,value:r}=e,o=JA(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const eP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Uv(e){return e}const tP=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),nP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),rP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Ud(e.palette[n].main,.62),borderColor:Ud(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:zd(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:zd(e.palette[n].main,.5)})))}))]}}),oP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Tv(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Tv(e.palette[n].main,.16)}`})}}))]}}),iP=Xr(ZA,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),sP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>Zh(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),aP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>Zh(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),lP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return CN(u,XA,s)},uP=({children:e})=>e,cP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=MA({props:t,name:"MuiSlider"}),U=$N(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Uv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Uv}=A,vi=an(A,eP),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=QA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=lP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:tP,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:nP,Sm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:rP,xm=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:oP,Em=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:iP,uc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:sP,cc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:aP,km=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",fc=(y=de==null?void 0:de.root)!=null?y:_.root,dk=(E=de==null?void 0:de.rail)!=null?E:_.rail,dc=(C=de==null?void 0:de.track)!=null?C:_.track,pc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,hc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,pk=(O=de==null?void 0:de.mark)!=null?O:_.mark,hk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,mk=($=de==null?void 0:de.input)!=null?$:_.input,yk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:fc,externalForwardedProps:vi,additionalProps:j({},YA(Tt)&&{as:G}),ownerState:j({},we,fc==null?void 0:fc.ownerState),className:[le.root,Y]}),vk=tr({elementType:ro,externalSlotProps:dk,ownerState:we,className:le.rail}),gk=tr({elementType:Sm,externalSlotProps:dc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,dc==null?void 0:dc.ownerState),className:le.track}),mc=tr({elementType:xm,getSlotProps:Rr,externalSlotProps:pc,ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.thumb}),wk=tr({elementType:Em,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.valueLabel}),yc=tr({elementType:uc,externalSlotProps:pk,ownerState:we,className:le.mark}),vc=tr({elementType:cc,externalSlotProps:hk,ownerState:we,className:le.markLabel}),Sk=tr({elementType:km,getSlotProps:to,externalSlotProps:mk,ownerState:we});return w.jsxs(Tt,j({},yk,{children:[w.jsx(ro,j({},vk)),w.jsx(Sm,j({},gk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const gc=Hl(Ne.value,qe,Me),Qs=Gt[Zn].offset(gc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(uc,j({"data-index":We},yc,!ns(uc)&&{markActive:Nn},{style:j({},Qs,yc.style),className:Sr(yc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(cc,j({"aria-hidden":!0,"data-index":We},vc,!ns(cc)&&{markLabelActive:Nn},{style:j({},Qs,vc.style),className:Sr(le.markLabel,vc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const gc=Hl(Ne,qe,Me),Qs=Gt[Zn].offset(gc),Nn=nt==="off"?uP:Em;return w.jsx(Nn,j({},!ns(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},wk,{children:w.jsx(xm,j({"data-index":We},mc,{className:Sr(le.thumb,mc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Qs,un(We),mc.style),children:w.jsx(km,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},Sk))}))}),We)})]}))});var Wv=Object.prototype.toString,iE=function(t){var n=Wv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Wv.call(t.callee)==="[object Function]"),r},sf,Hv;function fP(){if(Hv)return sf;Hv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=iE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":PP,"%eval%":eval,"%EvalError%":jP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":lE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":LP,"%ReferenceError%":IP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":BP,"%TypedArray%":FP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":MP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var zP=Be(Be(e));zr["%Error.prototype%"]=zP}var UP=function e(t){var n;if(t==="%AsyncFunction%")n=lf("async function () {}");else if(t==="%GeneratorFunction%")n=lf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=lf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Qv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},qs=nm,Vl=aE,WP=qs.call(Function.call,Array.prototype.concat),HP=qs.call(Function.apply,Array.prototype.splice),Yv=qs.call(Function.call,String.prototype.replace),Kl=qs.call(Function.call,String.prototype.slice),VP=qs.call(Function.call,RegExp.prototype.exec),KP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,GP=/\\(\\)?/g,qP=function(t){var n=Kl(t,0,1),r=Kl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Yv(t,KP,function(i,s,a,l){o[o.length]=a?Yv(l,GP,"$1"):s||i}),o},QP=function(t,n){var r=t,o;if(Vl(Qv,r)&&(o=Qv[r],r="%"+o[0]+"%"),Vl(zr,r)){var i=zr[r];if(i===wo&&(i=UP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(VP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=qP(t),o=r.length>0?r[0]:"",i=QP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],HP(r,WP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Vl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},YP=On,tl=YP("%Object.defineProperty%",!0)||!1;if(tl)try{tl({},"a",{value:1})}catch{tl=!1}var rm=tl,XP=On,nl=XP("%Object.getOwnPropertyDescriptor%",!0);if(nl)try{nl([],"length")}catch{nl=null}var om=nl,Xv=rm,JP=sE,mo=_r,Jv=om,im=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Jv&&Jv(t,n);if(Xv)Xv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new JP("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Hd=rm,uE=function(){return!!Hd};uE.hasArrayLengthDefineBug=function(){if(!Hd)return null;try{return Hd([],"length",{value:1}).length!==1}catch{return!0}};var sm=uE,ZP=em,e3=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",t3=Object.prototype.toString,n3=Array.prototype.concat,Zv=im,r3=function(e){return typeof e=="function"&&t3.call(e)==="[object Function]"},cE=sm(),o3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!r3(r)||!r())return}cE?Zv(e,t,n,!0):Zv(e,t,n)},fE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=ZP(t);e3&&(r=n3.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||a3(n)!==n)throw new ng("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&tg){var s=tg(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(s3?eg(t,"length",n,!0,!0):eg(t,"length",n)),t};(function(e){var t=nm,n=On,r=l3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=rm,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(dE);var mi=dE.exports,pE=On,hE=mi,u3=hE(pE("String.prototype.indexOf")),Kt=function(t,n){var r=pE(t,!!n);return typeof r=="function"&&u3(t,".prototype.")>-1?hE(r):r},c3=em,mE=ic(),yE=Kt,rg=Object,f3=yE("Array.prototype.push"),og=yE("Object.prototype.propertyIsEnumerable"),d3=mE?Object.getOwnPropertySymbols:null,vE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=rg(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||$3)&&(O3?ig(t,"name",n,!0,!0):ig(t,"name",n)),t},R3=T3,N3=_r,A3=Object,xE=R3(function(){if(this==null||this!==A3(this))throw new N3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),P3=xE,j3=Jr.supportsDescriptors,L3=Object.getOwnPropertyDescriptor,EE=function(){if(j3&&/a/mig.flags==="gim"){var t=L3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return P3},I3=Jr.supportsDescriptors,M3=EE,B3=Object.getOwnPropertyDescriptor,D3=Object.defineProperty,F3=TypeError,sg=Object.getPrototypeOf,z3=/a/,U3=function(){if(!I3||!sg)throw new F3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=M3(),n=sg(z3),r=B3(n,"flags");return(!r||r.get!==t)&&D3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},W3=Jr,H3=mi,V3=xE,kE=EE,K3=U3,bE=H3(kE());W3(bE,{getPolyfill:kE,implementation:V3,shim:K3});var G3=bE,rl={exports:{}},q3=ic,Zr=function(){return q3()&&!!Symbol.toStringTag},Q3=Zr(),Y3=Kt,Vd=Y3("Object.prototype.toString"),sc=function(t){return Q3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Vd(t)==="[object Arguments]"},CE=function(t){return sc(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Vd(t)!=="[object Array]"&&Vd(t.callee)==="[object Function]"},X3=function(){return sc(arguments)}();sc.isLegacyArguments=CE;var OE=X3?sc:CE;const J3={},Z3=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),ej=Yn(Z3);var am=typeof Map=="function"&&Map.prototype,ff=Object.getOwnPropertyDescriptor&&am?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Gl=am&&ff&&typeof ff.get=="function"?ff.get:null,ag=am&&Map.prototype.forEach,lm=typeof Set=="function"&&Set.prototype,df=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ql=lm&&df&&typeof df.get=="function"?df.get:null,lg=lm&&Set.prototype.forEach,tj=typeof WeakMap=="function"&&WeakMap.prototype,os=tj?WeakMap.prototype.has:null,nj=typeof WeakSet=="function"&&WeakSet.prototype,is=nj?WeakSet.prototype.has:null,rj=typeof WeakRef=="function"&&WeakRef.prototype,ug=rj?WeakRef.prototype.deref:null,oj=Boolean.prototype.valueOf,ij=Object.prototype.toString,sj=Function.prototype.toString,aj=String.prototype.match,um=String.prototype.slice,fr=String.prototype.replace,lj=String.prototype.toUpperCase,cg=String.prototype.toLowerCase,$E=RegExp.prototype.test,fg=Array.prototype.concat,mn=Array.prototype.join,uj=Array.prototype.slice,dg=Math.floor,Kd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,pf=Object.getOwnPropertySymbols,Gd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,_E=Object.prototype.propertyIsEnumerable,pg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function hg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||$E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-dg(-e):dg(e);if(r!==e){var o=String(r),i=um.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var qd=ej,mg=qd.custom,yg=RE(mg)?mg:null,cj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return AE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?hg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?hg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Qd(t)?"[Array]":"[Object]";var d=_j(i,r);if(typeof o>"u")o=[];else if(NE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=uj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!vg(t)){var v=wj(t),g=Oa(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(RE(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Gd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if(Cj(t)){for(var k="<"+cg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",t.childNodes&&t.childNodes.length&&(k+="..."),k+=""+cg.call(String(t.nodeName))+">",k}if(Qd(t)){if(t.length===0)return"[]";var y=Oa(t,f);return d&&!$j(y)?"["+Yd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(pj(t)){var E=Oa(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!_E.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(fg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(yg&&typeof t[yg]=="function"&&qd)return qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Sj(t)){var C=[];return ag&&ag.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),gg("Map",Gl.call(t),C,d)}if(kj(t)){var x=[];return lg&&lg.call(t,function(B){x.push(f(B,t))}),gg("Set",ql.call(t),x,d)}if(xj(t))return hf("WeakMap");if(bj(t))return hf("WeakSet");if(Ej(t))return hf("WeakRef");if(mj(t))return Ai(f(Number(t)));if(vj(t))return Ai(f(Kd.call(t)));if(yj(t))return Ai(oj.call(t));if(hj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof ul<"u"&&t===ul)return"{ [object globalThis] }";if(!dj(t)&&!vg(t)){var b=Oa(t,f),O=pg?pg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?um.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(fg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Yd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function TE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function fj(e){return fr.call(String(e),/"/g,""")}function Qd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function dj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function vg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function pj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function hj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function mj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function yj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function RE(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}function vj(e){if(!e||typeof e!="object"||!Kd)return!1;try{return Kd.call(e),!0}catch{}return!1}var gj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return gj.call(e,t)}function Tr(e){return ij.call(e)}function wj(e){if(e.name)return e.name;var t=aj.call(sj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function NE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return AE(um.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Oj);return TE(o,"single",t)}function Oj(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+lj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function hf(e){return e+" { ? }"}function gg(e,t,n,r){var o=r?Yd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function $j(e){for(var t=0;t=0)return!1;return!0}function _j(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Yd(e,t){if(e.length===0)return"";var n=`
+ */var qh=Symbol.for("react.element"),Qh=Symbol.for("react.portal"),Qu=Symbol.for("react.fragment"),Yu=Symbol.for("react.strict_mode"),Xu=Symbol.for("react.profiler"),Ju=Symbol.for("react.provider"),Zu=Symbol.for("react.context"),cN=Symbol.for("react.server_context"),ec=Symbol.for("react.forward_ref"),tc=Symbol.for("react.suspense"),nc=Symbol.for("react.suspense_list"),rc=Symbol.for("react.memo"),oc=Symbol.for("react.lazy"),fN=Symbol.for("react.offscreen"),Kx;Kx=Symbol.for("react.module.reference");function Vt(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case qh:switch(e=e.type,e){case Qu:case Xu:case Yu:case tc:case nc:return e;default:switch(e=e&&e.$$typeof,e){case cN:case Zu:case ec:case oc:case rc:case Ju:return e;default:return t}}case Qh:return t}}}fe.ContextConsumer=Zu;fe.ContextProvider=Ju;fe.Element=qh;fe.ForwardRef=ec;fe.Fragment=Qu;fe.Lazy=oc;fe.Memo=rc;fe.Portal=Qh;fe.Profiler=Xu;fe.StrictMode=Yu;fe.Suspense=tc;fe.SuspenseList=nc;fe.isAsyncMode=function(){return!1};fe.isConcurrentMode=function(){return!1};fe.isContextConsumer=function(e){return Vt(e)===Zu};fe.isContextProvider=function(e){return Vt(e)===Ju};fe.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===qh};fe.isForwardRef=function(e){return Vt(e)===ec};fe.isFragment=function(e){return Vt(e)===Qu};fe.isLazy=function(e){return Vt(e)===oc};fe.isMemo=function(e){return Vt(e)===rc};fe.isPortal=function(e){return Vt(e)===Qh};fe.isProfiler=function(e){return Vt(e)===Xu};fe.isStrictMode=function(e){return Vt(e)===Yu};fe.isSuspense=function(e){return Vt(e)===tc};fe.isSuspenseList=function(e){return Vt(e)===nc};fe.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Qu||e===Xu||e===Yu||e===tc||e===nc||e===fN||typeof e=="object"&&e!==null&&(e.$$typeof===oc||e.$$typeof===rc||e.$$typeof===Ju||e.$$typeof===Zu||e.$$typeof===ec||e.$$typeof===Kx||e.getModuleId!==void 0)};fe.typeOf=Vt;Vx.exports=fe;var _v=Vx.exports;const dN=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function Gx(e){const t=`${e}`.match(dN);return t&&t[1]||""}function qx(e,t=""){return e.displayName||e.name||Gx(e)||t}function Tv(e,t,n){const r=qx(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function pN(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return qx(e,"Component");if(typeof e=="object")switch(e.$$typeof){case _v.ForwardRef:return Tv(e,e.render,"ForwardRef");case _v.Memo:return Tv(e,e.type,"memo");default:return}}}const hN=Object.freeze(Object.defineProperty({__proto__:null,default:pN,getFunctionName:Gx},Symbol.toStringTag,{value:"Module"}));function Dd(e,t){const n=j({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=j({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const o=e[r]||{},i=t[r];n[r]={},!i||!Object.keys(i)?n[r]=o:!o||!Object.keys(o)?n[r]=i:(n[r]=j({},i),Object.keys(o).forEach(s=>{n[r][s]=Dd(o[s],i[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}const Qx=typeof window<"u"?h.useLayoutEffect:h.useEffect;function go(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const mN=Object.freeze(Object.defineProperty({__proto__:null,default:go},Symbol.toStringTag,{value:"Module"}));function Xa(e){return e&&e.ownerDocument||document}function yN(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function vN({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=h.useRef(e!==void 0),[i,s]=h.useState(t),a=o?e:i,l=h.useCallback(u=>{o||s(u)},[]);return[a,l]}function nf(e){const t=h.useRef(e);return Qx(()=>{t.current=e}),h.useRef((...n)=>(0,t.current)(...n)).current}function Fd(...e){return h.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{yN(n,t)})},e)}class Yh{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Yh}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}let ic=!0,zd=!1;const gN=new Yh,wN={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function SN(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wN[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function xN(e){e.metaKey||e.altKey||e.ctrlKey||(ic=!0)}function rf(){ic=!1}function EN(){this.visibilityState==="hidden"&&zd&&(ic=!0)}function kN(e){e.addEventListener("keydown",xN,!0),e.addEventListener("mousedown",rf,!0),e.addEventListener("pointerdown",rf,!0),e.addEventListener("touchstart",rf,!0),e.addEventListener("visibilitychange",EN,!0)}function bN(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return ic||SN(t)}function CN(){const e=h.useCallback(o=>{o!=null&&kN(o.ownerDocument)},[]),t=h.useRef(!1);function n(){return t.current?(zd=!0,gN.start(100,()=>{zd=!1}),t.current=!1,!0):!1}function r(o){return bN(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}const ON={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function $N(e,t,n=void 0){const r={};return Object.keys(e).forEach(o=>{r[o]=e[o].reduce((i,s)=>{if(s){const a=t(s);a!==""&&i.push(a),n&&n[s]&&i.push(n[s])}return i},[]).join(" ")}),r}const _N=h.createContext(),TN=()=>{const e=h.useContext(_N);return e??!1},RN=h.createContext(void 0);function NN(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const o=t.components[n];return o.defaultProps?Dd(o.defaultProps,r):!o.styleOverrides&&!o.variants?Dd(o,r):r}function AN({props:e,name:t}){const n=h.useContext(RN);return NN({props:e,name:t,theme:{components:n}})}function PN(e,t){return j({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var Re={},Yx={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Yx);var Xx=Yx.exports;const jN=Yn(J_),LN=Yn(mN);var Jx=Xx;Object.defineProperty(Re,"__esModule",{value:!0});var Rv=Re.alpha=nE;Re.blend=KN;Re.colorChannel=void 0;var Ud=Re.darken=Jh;Re.decomposeColor=Wt;Re.emphasize=rE;var IN=Re.getContrastRatio=zN;Re.getLuminance=Hl;Re.hexToRgb=Zx;Re.hslToRgb=tE;var Wd=Re.lighten=Zh;Re.private_safeAlpha=UN;Re.private_safeColorChannel=void 0;Re.private_safeDarken=WN;Re.private_safeEmphasize=VN;Re.private_safeLighten=HN;Re.recomposeColor=pi;Re.rgbToHex=FN;var Nv=Jx(jN),MN=Jx(LN);function Xh(e,t=0,n=1){return(0,MN.default)(e,t,n)}function Zx(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,o)=>o<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function BN(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function Wt(e){if(e.type)return e;if(e.charAt(0)==="#")return Wt(Zx(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,Nv.default)(9,e));let r=e.substring(t+1,e.length-1),o;if(n==="color"){if(r=r.split(" "),o=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o)===-1)throw new Error((0,Nv.default)(10,o))}else r=r.split(",");return r=r.map(i=>parseFloat(i)),{type:n,values:r,colorSpace:o}}const eE=e=>{const t=Wt(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};Re.colorChannel=eE;const DN=(e,t)=>{try{return eE(e)}catch{return e}};Re.private_safeColorChannel=DN;function pi(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((o,i)=>i<3?parseInt(o,10):o):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function FN(e){if(e.indexOf("#")===0)return e;const{values:t}=Wt(e);return`#${t.map((n,r)=>BN(r===3?Math.round(255*n):n)).join("")}`}function tE(e){e=Wt(e);const{values:t}=e,n=t[0],r=t[1]/100,o=t[2]/100,i=r*Math.min(o,1-o),s=(u,c=(u+n/30)%12)=>o-i*Math.max(Math.min(c-3,9-c,1),-1);let a="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",l.push(t[3])),pi({type:a,values:l})}function Hl(e){e=Wt(e);let t=e.type==="hsl"||e.type==="hsla"?Wt(tE(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function zN(e,t){const n=Hl(e),r=Hl(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function nE(e,t){return e=Wt(e),t=Xh(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,pi(e)}function UN(e,t,n){try{return nE(e,t)}catch{return e}}function Jh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return pi(e)}function WN(e,t,n){try{return Jh(e,t)}catch{return e}}function Zh(e,t){if(e=Wt(e),t=Xh(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return pi(e)}function HN(e,t,n){try{return Zh(e,t)}catch{return e}}function rE(e,t=.15){return Hl(e)>.5?Jh(e,t):Zh(e,t)}function VN(e,t,n){try{return rE(e,t)}catch{return e}}function KN(e,t,n,r=1){const o=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),i=Wt(e),s=Wt(t),a=[o(i.values[0],s.values[0]),o(i.values[1],s.values[1]),o(i.values[2],s.values[2])];return pi({type:"rgb",values:a})}const GN=["mode","contrastThreshold","tonalOffset"],Av={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:_s.white,default:_s.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}},of={text:{primary:_s.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:_s.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 Pv(e,t,n,r){const o=r.light||r,i=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=Wd(e.main,o):t==="dark"&&(e.dark=Ud(e.main,i)))}function qN(e="light"){return e==="dark"?{main:co[200],light:co[50],dark:co[400]}:{main:co[700],light:co[400],dark:co[800]}}function QN(e="light"){return e==="dark"?{main:uo[200],light:uo[50],dark:uo[400]}:{main:uo[500],light:uo[300],dark:uo[700]}}function YN(e="light"){return e==="dark"?{main:lo[500],light:lo[300],dark:lo[700]}:{main:lo[700],light:lo[400],dark:lo[800]}}function XN(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[700],light:fo[500],dark:fo[900]}}function JN(e="light"){return e==="dark"?{main:po[400],light:po[300],dark:po[700]}:{main:po[800],light:po[500],dark:po[900]}}function ZN(e="light"){return e==="dark"?{main:Ri[400],light:Ri[300],dark:Ri[700]}:{main:"#ed6c02",light:Ri[500],dark:Ri[900]}}function eA(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,o=an(e,GN),i=e.primary||qN(t),s=e.secondary||QN(t),a=e.error||YN(t),l=e.info||XN(t),u=e.success||JN(t),c=e.warning||ZN(t);function d(S){return IN(S,of.text.primary)>=n?of.text.primary:Av.text.primary}const f=({color:S,name:k,mainShade:m=500,lightShade:p=300,darkShade:y=700})=>{if(S=j({},S),!S.main&&S[m]&&(S.main=S[m]),!S.hasOwnProperty("main"))throw new Error(Ts(11,k?` (${k})`:"",m));if(typeof S.main!="string")throw new Error(Ts(12,k?` (${k})`:"",JSON.stringify(S.main)));return Pv(S,"light",p,r),Pv(S,"dark",y,r),S.contrastText||(S.contrastText=d(S.main)),S},v={dark:of,light:Av};return kn(j({common:j({},_s),mode:t,primary:f({color:i,name:"primary"}),secondary:f({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:a,name:"error"}),warning:f({color:c,name:"warning"}),info:f({color:l,name:"info"}),success:f({color:u,name:"success"}),grey:X_,contrastThreshold:n,getContrastText:d,augmentColor:f,tonalOffset:r},v[t]),o)}const tA=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function nA(e){return Math.round(e*1e5)/1e5}const jv={textTransform:"uppercase"},Lv='"Roboto", "Helvetica", "Arial", sans-serif';function rA(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=Lv,fontSize:o=14,fontWeightLight:i=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:d}=n,f=an(n,tA),v=o/14,g=d||(m=>`${m/u*v}rem`),S=(m,p,y,E,C)=>j({fontFamily:r,fontWeight:m,fontSize:g(p),lineHeight:y},r===Lv?{letterSpacing:`${nA(E/p)}em`}:{},C,c),k={h1:S(i,96,1.167,-1.5),h2:S(i,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(a,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(a,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(a,14,1.75,.4,jv),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,jv),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return kn(j({htmlFontSize:u,pxToRem:g,fontFamily:r,fontSize:o,fontWeightLight:i,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:l},k),f,{clone:!1})}const oA=.2,iA=.14,sA=.12;function Se(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${oA})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${iA})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${sA})`].join(",")}const aA=["none",Se(0,2,1,-1,0,1,1,0,0,1,3,0),Se(0,3,1,-2,0,2,2,0,0,1,5,0),Se(0,3,3,-2,0,3,4,0,0,1,8,0),Se(0,2,4,-1,0,4,5,0,0,1,10,0),Se(0,3,5,-1,0,5,8,0,0,1,14,0),Se(0,3,5,-1,0,6,10,0,0,1,18,0),Se(0,4,5,-2,0,7,10,1,0,2,16,1),Se(0,5,5,-3,0,8,10,1,0,3,14,2),Se(0,5,6,-3,0,9,12,1,0,3,16,2),Se(0,6,6,-3,0,10,14,1,0,4,18,3),Se(0,6,7,-4,0,11,15,1,0,4,20,3),Se(0,7,8,-4,0,12,17,2,0,5,22,4),Se(0,7,8,-4,0,13,19,2,0,5,24,4),Se(0,7,9,-4,0,14,21,2,0,5,26,4),Se(0,8,9,-5,0,15,22,2,0,6,28,5),Se(0,8,10,-5,0,16,24,2,0,6,30,5),Se(0,8,11,-5,0,17,26,2,0,6,32,5),Se(0,9,11,-5,0,18,28,2,0,7,34,6),Se(0,9,12,-6,0,19,29,2,0,7,36,6),Se(0,10,13,-6,0,20,31,3,0,8,38,7),Se(0,10,13,-6,0,21,33,3,0,8,40,7),Se(0,10,14,-6,0,22,35,3,0,8,42,7),Se(0,11,14,-7,0,23,36,3,0,9,44,8),Se(0,11,15,-7,0,24,38,3,0,9,46,8)],lA=["duration","easing","delay"],uA={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)"},cA={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Iv(e){return`${Math.round(e)}ms`}function fA(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function dA(e){const t=j({},uA,e.easing),n=j({},cA,e.duration);return j({getAutoHeightDuration:fA,create:(o=["all"],i={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:l=0}=i;return an(i,lA),(Array.isArray(o)?o:[o]).map(u=>`${u} ${typeof s=="string"?s:Iv(s)} ${a} ${typeof l=="string"?l:Iv(l)}`).join(",")}},e,{easing:t,duration:n})}const pA={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},hA=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function mA(e={},...t){const{mixins:n={},palette:r={},transitions:o={},typography:i={}}=e,s=an(e,hA);if(e.vars)throw new Error(Ts(18));const a=eA(r),l=Ux(e);let u=kn(l,{mixins:PN(l.breakpoints,n),palette:a,shadows:aA.slice(),typography:rA(a,i),transitions:dA(o),zIndex:j({},pA)});return u=kn(u,s),u=t.reduce((c,d)=>kn(c,d),u),u.unstable_sxConfig=j({},Gs,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(d){return Gh({sx:d,theme:this})},u}const yA=mA();var qs={},sf={exports:{}},Mv;function vA(){return Mv||(Mv=1,function(e){function t(n,r){if(n==null)return{};var o={};for(var i in n)if({}.hasOwnProperty.call(n,i)){if(r.indexOf(i)>=0)continue;o[i]=n[i]}return o}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(sf)),sf.exports}const gA=Yn(sR),wA=Yn(aR),SA=Yn(pR),xA=Yn(hN),EA=Yn(tN),kA=Yn(iN);var hi=Xx;Object.defineProperty(qs,"__esModule",{value:!0});var bA=qs.default=MA;qs.shouldForwardProp=Ja;qs.systemDefaultTheme=void 0;var Rt=hi(Px()),Hd=hi(vA()),Bv=NA(gA),CA=wA;hi(SA);hi(xA);var OA=hi(EA),$A=hi(kA);const _A=["ownerState"],TA=["variants"],RA=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function oE(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oE=function(r){return r?n:t})(e)}function NA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oE(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if(i!=="default"&&Object.prototype.hasOwnProperty.call(e,i)){var s=o?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r}function AA(e){return Object.keys(e).length===0}function PA(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ja(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const jA=qs.systemDefaultTheme=(0,OA.default)(),LA=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function Ea({defaultTheme:e,theme:t,themeId:n}){return AA(t)?e:t[n]||t}function IA(e){return e?(t,n)=>n[e]:null}function Za(e,t){let{ownerState:n}=t,r=(0,Hd.default)(t,_A);const o=typeof e=="function"?e((0,Rt.default)({ownerState:n},r)):e;if(Array.isArray(o))return o.flatMap(i=>Za(i,(0,Rt.default)({ownerState:n},r)));if(o&&typeof o=="object"&&Array.isArray(o.variants)){const{variants:i=[]}=o;let a=(0,Hd.default)(o,TA);return i.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,Rt.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(c=>{(n==null?void 0:n[c])!==l.props[c]&&r[c]!==l.props[c]&&(u=!1)}),u&&(Array.isArray(a)||(a=[a]),a.push(typeof l.style=="function"?l.style((0,Rt.default)({ownerState:n},r,n)):l.style))}),a}return o}function MA(e={}){const{themeId:t,defaultTheme:n=jA,rootShouldForwardProp:r=Ja,slotShouldForwardProp:o=Ja}=e,i=s=>(0,$A.default)((0,Rt.default)({},s,{theme:Ea((0,Rt.default)({},s,{defaultTheme:n,themeId:t}))}));return i.__mui_systemSx=!0,(s,a={})=>{(0,Bv.internal_processStyles)(s,C=>C.filter(x=>!(x!=null&&x.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:d,overridesResolver:f=IA(LA(u))}=a,v=(0,Hd.default)(a,RA),g=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=d||!1;let k,m=Ja;u==="Root"||u==="root"?m=r:u?m=o:PA(s)&&(m=void 0);const p=(0,Bv.default)(s,(0,Rt.default)({shouldForwardProp:m,label:k},v)),y=C=>typeof C=="function"&&C.__emotion_real!==C||(0,CA.isPlainObject)(C)?x=>Za(C,(0,Rt.default)({},x,{theme:Ea({theme:x.theme,defaultTheme:n,themeId:t})})):C,E=(C,...x)=>{let b=y(C);const O=x?x.map(y):[];l&&f&&O.push(A=>{const U=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t}));if(!U.components||!U.components[l]||!U.components[l].styleOverrides)return null;const B=U.components[l].styleOverrides,K={};return Object.entries(B).forEach(([W,G])=>{K[W]=Za(G,(0,Rt.default)({},A,{theme:U}))}),f(A,K)}),l&&!g&&O.push(A=>{var U;const B=Ea((0,Rt.default)({},A,{defaultTheme:n,themeId:t})),K=B==null||(U=B.components)==null||(U=U[l])==null?void 0:U.variants;return Za({variants:K},(0,Rt.default)({},A,{theme:B}))}),S||O.push(i);const T=O.length-x.length;if(Array.isArray(C)&&T>0){const A=new Array(T).fill("");b=[...C,...A],b.raw=[...C.raw,...A]}const $=p(b,...O);return s.muiName&&($.muiName=s.muiName),$};return p.withConfig&&(E.withConfig=p.withConfig),E}}function em(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const BA=e=>em(e)&&e!=="classes",Xr=bA({themeId:Z_,defaultTheme:yA,rootShouldForwardProp:BA});function DA(e){return AN(e)}function rs(e){return typeof e=="string"}function FA(e,t,n){return e===void 0||rs(e)?t:j({},t,{ownerState:j({},t.ownerState,n)})}function zA(e,t,n=(r,o)=>r===o){return e.length===t.length&&e.every((r,o)=>n(r,t[o]))}function el(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function UA(e,t,n){return typeof e=="function"?e(t,n):e}function Dv(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function WA(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:o,className:i}=e;if(!t){const v=Sr(n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),g=j({},n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),S=j({},n,o,r);return v.length>0&&(S.className=v),Object.keys(g).length>0&&(S.style=g),{props:S,internalRef:void 0}}const s=el(j({},o,r)),a=Dv(r),l=Dv(o),u=t(s),c=Sr(u==null?void 0:u.className,n==null?void 0:n.className,i,o==null?void 0:o.className,r==null?void 0:r.className),d=j({},u==null?void 0:u.style,n==null?void 0:n.style,o==null?void 0:o.style,r==null?void 0:r.style),f=j({},u,n,l,a);return c.length>0&&(f.className=c),Object.keys(d).length>0&&(f.style=d),{props:f,internalRef:u.ref}}const HA=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function tr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:o,skipResolvingSlotProps:i=!1}=e,s=an(e,HA),a=i?{}:UA(r,o),{props:l,internalRef:u}=WA(j({},s,{externalSlotProps:a})),c=Fd(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return FA(n,j({},l,{ref:c}),o)}const VA=2;function iE(e,t){return e-t}function Fv(e,t){var n;const{index:r}=(n=e.reduce((o,i,s)=>{const a=Math.abs(t-i);return o===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},YA=e=>e;let Oa;function Uv(){return Oa===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?Oa=CSS.supports("touch-action","none"):Oa=!0),Oa}function XA(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:o=!1,isRtl:i=!1,marks:s=!1,max:a=100,min:l=0,name:u,onChange:c,onChangeCommitted:d,orientation:f="horizontal",rootRef:v,scale:g=YA,step:S=1,shiftStep:k=10,tabIndex:m,value:p}=e,y=h.useRef(),[E,C]=h.useState(-1),[x,b]=h.useState(-1),[O,T]=h.useState(!1),$=h.useRef(0),[A,U]=vN({controlled:p,default:n??l,name:"Slider"}),B=c&&((N,P,D)=>{const oe=N.nativeEvent||N,ie=new oe.constructor(oe.type,oe);Object.defineProperty(ie,"target",{writable:!0,value:{value:P,name:u}}),c(ie,P,D)}),K=Array.isArray(A);let W=K?A.slice().sort(iE):[A];W=W.map(N=>N==null?l:go(N,l,a));const G=s===!0&&S!==null?[...Array(Math.floor((a-l)/S)+1)].map((N,P)=>({value:l+S*P})):s||[],V=G.map(N=>N.value),{isFocusVisibleRef:_,onBlur:I,onFocus:F,ref:Y}=CN(),[Z,ve]=h.useState(-1),X=h.useRef(),re=Fd(Y,X),ge=Fd(v,re),Me=N=>P=>{var D;const oe=Number(P.currentTarget.getAttribute("data-index"));F(P),_.current===!0&&ve(oe),b(oe),N==null||(D=N.onFocus)==null||D.call(N,P)},qe=N=>P=>{var D;I(P),_.current===!1&&ve(-1),b(-1),N==null||(D=N.onBlur)==null||D.call(N,P)},_t=(N,P)=>{const D=Number(N.currentTarget.getAttribute("data-index")),oe=W[D],ie=V.indexOf(oe);let ee=P;if(G&&S==null){const qt=V[V.length-1];ee>qt?ee=qt:eeP=>{var D;if(S!==null){const oe=Number(P.currentTarget.getAttribute("data-index")),ie=W[oe];let ee=null;(P.key==="ArrowLeft"||P.key==="ArrowDown")&&P.shiftKey||P.key==="PageDown"?ee=Math.max(ie-k,l):((P.key==="ArrowRight"||P.key==="ArrowUp")&&P.shiftKey||P.key==="PageUp")&&(ee=Math.min(ie+k,a)),ee!==null&&(_t(P,ee),P.preventDefault())}N==null||(D=N.onKeyDown)==null||D.call(N,P)};Qx(()=>{if(r&&X.current.contains(document.activeElement)){var N;(N=document.activeElement)==null||N.blur()}},[r]),r&&E!==-1&&C(-1),r&&Z!==-1&&ve(-1);const Tn=N=>P=>{var D;(D=N.onChange)==null||D.call(N,P),_t(P,P.target.valueAsNumber)},Rn=h.useRef();let Qe=f;i&&f==="horizontal"&&(Qe+="-reverse");const de=({finger:N,move:P=!1})=>{const{current:D}=X,{width:oe,height:ie,bottom:ee,left:qt}=D.getBoundingClientRect();let un;Qe.indexOf("vertical")===0?un=(ee-N.y)/ie:un=(N.x-qt)/oe,Qe.indexOf("-reverse")!==-1&&(un=1-un);let le;if(le=KA(un,l,a),S)le=qA(le,S,l);else{const ro=Fv(V,le);le=V[ro]}le=go(le,l,a);let Tt=0;if(K){P?Tt=Rn.current:Tt=Fv(W,le),o&&(le=go(le,W[Tt-1]||-1/0,W[Tt+1]||1/0));const ro=le;le=zv({values:W,newValue:le,index:Tt}),o&&P||(Tt=le.indexOf(ro),Rn.current=Tt)}return{newValue:le,activeIndex:Tt}},H=nf(N=>{const P=ka(N,y);if(!P)return;if($.current+=1,N.type==="mousemove"&&N.buttons===0){Ue(N);return}const{newValue:D,activeIndex:oe}=de({finger:P,move:!0});ba({sliderRef:X,activeIndex:oe,setActive:C}),U(D),!O&&$.current>VA&&T(!0),B&&!Ca(D,A)&&B(N,D,oe)}),Ue=nf(N=>{const P=ka(N,y);if(T(!1),!P)return;const{newValue:D}=de({finger:P,move:!0});C(-1),N.type==="touchend"&&b(-1),d&&d(N,D),y.current=void 0,vt()}),nt=nf(N=>{if(r)return;Uv()||N.preventDefault();const P=N.changedTouches[0];P!=null&&(y.current=P.identifier);const D=ka(N,y);if(D!==!1){const{newValue:ie,activeIndex:ee}=de({finger:D});ba({sliderRef:X,activeIndex:ee,setActive:C}),U(ie),B&&!Ca(ie,A)&&B(N,ie,ee)}$.current=0;const oe=Xa(X.current);oe.addEventListener("touchmove",H,{passive:!0}),oe.addEventListener("touchend",Ue,{passive:!0})}),vt=h.useCallback(()=>{const N=Xa(X.current);N.removeEventListener("mousemove",H),N.removeEventListener("mouseup",Ue),N.removeEventListener("touchmove",H),N.removeEventListener("touchend",Ue)},[Ue,H]);h.useEffect(()=>{const{current:N}=X;return N.addEventListener("touchstart",nt,{passive:Uv()}),()=>{N.removeEventListener("touchstart",nt),vt()}},[vt,nt]),h.useEffect(()=>{r&&vt()},[r,vt]);const vi=N=>P=>{var D;if((D=N.onMouseDown)==null||D.call(N,P),r||P.defaultPrevented||P.button!==0)return;P.preventDefault();const oe=ka(P,y);if(oe!==!1){const{newValue:ee,activeIndex:qt}=de({finger:oe});ba({sliderRef:X,activeIndex:qt,setActive:C}),U(ee),B&&!Ca(ee,A)&&B(P,ee,qt)}$.current=0;const ie=Xa(X.current);ie.addEventListener("mousemove",H,{passive:!0}),ie.addEventListener("mouseup",Ue)},we=Vl(K?W[0]:l,l,a),Gt=Vl(W[W.length-1],l,a)-we,eo=(N={})=>{const P=el(N),D={onMouseDown:vi(P||{})},oe=j({},P,D);return j({},N,{ref:ge},oe)},to=N=>P=>{var D;(D=N.onMouseOver)==null||D.call(N,P);const oe=Number(P.currentTarget.getAttribute("data-index"));b(oe)},Rr=N=>P=>{var D;(D=N.onMouseLeave)==null||D.call(N,P),b(-1)};return{active:E,axis:Qe,axisProps:QA,dragging:O,focusedThumbIndex:Z,getHiddenInputProps:(N={})=>{var P;const D=el(N),oe={onChange:Tn(D||{}),onFocus:Me(D||{}),onBlur:qe(D||{}),onKeyDown:_n(D||{})},ie=j({},D,oe);return j({tabIndex:m,"aria-labelledby":t,"aria-orientation":f,"aria-valuemax":g(a),"aria-valuemin":g(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(P=e.step)!=null?P:void 0,disabled:r},N,ie,{style:j({},ON,{direction:i?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:eo,getThumbProps:(N={})=>{const P=el(N),D={onMouseOver:to(P||{}),onMouseLeave:Rr(P||{})};return j({},N,P,D)},marks:G,open:x,range:K,rootRef:ge,trackLeap:Gt,trackOffset:we,values:W,getThumbStyle:N=>({pointerEvents:E!==-1&&E!==N?"none":void 0})}}const JA=e=>!e||!rs(e);function ZA(e){return Hx("MuiSlider",e)}const Mt=uN("MuiSlider",["root","active","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","thumbColorError","thumbColorSuccess","thumbColorInfo","thumbColorWarning","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),eP=e=>{const{open:t}=e;return{offset:Sr(t&&Mt.valueLabelOpen),circle:Mt.valueLabelCircle,label:Mt.valueLabelLabel}};function tP(e){const{children:t,className:n,value:r}=e,o=eP(e);return t?h.cloneElement(t,{className:Sr(t.props.className)},w.jsxs(h.Fragment,{children:[t.props.children,w.jsx("span",{className:Sr(o.offset,n),"aria-hidden":!0,children:w.jsx("span",{className:o.circle,children:w.jsx("span",{className:o.label,children:r})})})]})):null}const nP=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function Wv(e){return e}const rP=Xr("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${tn(n.color)}`],n.size!=="medium"&&t[`size${tn(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${Mt.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${Mt.dragging}`]:{[`& .${Mt.thumb}, & .${Mt.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),oP=Xr("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),iP=Xr("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:j({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:j({backgroundColor:Wd(e.palette[n].main,.62),borderColor:Wd(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:Ud(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:Ud(e.palette[n].main,.5)})))}))]}}),sP=Xr("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${tn(n.color)}`],n.size!=="medium"&&t[`thumbSize${tn(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${Mt.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${Mt.focusVisible}`]:j({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Rv(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${Mt.active}`]:j({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Rv(e.palette[n].main,.16)}`})}}))]}}),aP=Xr(tP,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>j({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${Mt.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),lP=Xr("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>em(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),uP=Xr("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>em(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>j({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),cP=e=>{const{disabled:t,dragging:n,marked:r,orientation:o,track:i,classes:s,color:a,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",o==="vertical"&&"vertical",i==="inverted"&&"trackInverted",i===!1&&"trackFalse",a&&`color${tn(a)}`,l&&`size${tn(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${tn(l)}`,a&&`thumbColor${tn(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return $N(u,ZA,s)},fP=({children:e})=>e,dP=h.forwardRef(function(t,n){var r,o,i,s,a,l,u,c,d,f,v,g,S,k,m,p,y,E,C,x,b,O,T,$;const A=DA({props:t,name:"MuiSlider"}),U=TN(),{"aria-label":B,"aria-valuetext":K,"aria-labelledby":W,component:G="span",components:V={},componentsProps:_={},color:I="primary",classes:F,className:Y,disableSwap:Z=!1,disabled:ve=!1,getAriaLabel:X,getAriaValueText:re,marks:ge=!1,max:Me=100,min:qe=0,orientation:_t="horizontal",shiftStep:_n=10,size:Tn="medium",step:Rn=1,scale:Qe=Wv,slotProps:de,slots:H,track:Ue="normal",valueLabelDisplay:nt="off",valueLabelFormat:vt=Wv}=A,vi=an(A,nP),we=j({},A,{isRtl:U,max:Me,min:qe,classes:F,disabled:ve,disableSwap:Z,orientation:_t,marks:ge,color:I,size:Tn,step:Rn,shiftStep:_n,scale:Qe,track:Ue,valueLabelDisplay:nt,valueLabelFormat:vt}),{axisProps:Gt,getRootProps:eo,getHiddenInputProps:to,getThumbProps:Rr,open:gi,active:no,axis:Zn,focusedThumbIndex:N,range:P,dragging:D,marks:oe,values:ie,trackOffset:ee,trackLeap:qt,getThumbStyle:un}=XA(j({},we,{rootRef:n}));we.marked=oe.length>0&&oe.some(Ne=>Ne.label),we.dragging=D,we.focusedThumbIndex=N;const le=cP(we),Tt=(r=(o=H==null?void 0:H.root)!=null?o:V.Root)!=null?r:rP,ro=(i=(s=H==null?void 0:H.rail)!=null?s:V.Rail)!=null?i:oP,xm=(a=(l=H==null?void 0:H.track)!=null?l:V.Track)!=null?a:iP,Em=(u=(c=H==null?void 0:H.thumb)!=null?c:V.Thumb)!=null?u:sP,km=(d=(f=H==null?void 0:H.valueLabel)!=null?f:V.ValueLabel)!=null?d:aP,cc=(v=(g=H==null?void 0:H.mark)!=null?g:V.Mark)!=null?v:lP,fc=(S=(k=H==null?void 0:H.markLabel)!=null?k:V.MarkLabel)!=null?S:uP,bm=(m=(p=H==null?void 0:H.input)!=null?p:V.Input)!=null?m:"input",dc=(y=de==null?void 0:de.root)!=null?y:_.root,pk=(E=de==null?void 0:de.rail)!=null?E:_.rail,pc=(C=de==null?void 0:de.track)!=null?C:_.track,hc=(x=de==null?void 0:de.thumb)!=null?x:_.thumb,mc=(b=de==null?void 0:de.valueLabel)!=null?b:_.valueLabel,hk=(O=de==null?void 0:de.mark)!=null?O:_.mark,mk=(T=de==null?void 0:de.markLabel)!=null?T:_.markLabel,yk=($=de==null?void 0:de.input)!=null?$:_.input,vk=tr({elementType:Tt,getSlotProps:eo,externalSlotProps:dc,externalForwardedProps:vi,additionalProps:j({},JA(Tt)&&{as:G}),ownerState:j({},we,dc==null?void 0:dc.ownerState),className:[le.root,Y]}),gk=tr({elementType:ro,externalSlotProps:pk,ownerState:we,className:le.rail}),wk=tr({elementType:xm,externalSlotProps:pc,additionalProps:{style:j({},Gt[Zn].offset(ee),Gt[Zn].leap(qt))},ownerState:j({},we,pc==null?void 0:pc.ownerState),className:le.track}),yc=tr({elementType:Em,getSlotProps:Rr,externalSlotProps:hc,ownerState:j({},we,hc==null?void 0:hc.ownerState),className:le.thumb}),Sk=tr({elementType:km,externalSlotProps:mc,ownerState:j({},we,mc==null?void 0:mc.ownerState),className:le.valueLabel}),vc=tr({elementType:cc,externalSlotProps:hk,ownerState:we,className:le.mark}),gc=tr({elementType:fc,externalSlotProps:mk,ownerState:we,className:le.markLabel}),xk=tr({elementType:bm,getSlotProps:to,externalSlotProps:yk,ownerState:we});return w.jsxs(Tt,j({},vk,{children:[w.jsx(ro,j({},gk)),w.jsx(xm,j({},wk)),oe.filter(Ne=>Ne.value>=qe&&Ne.value<=Me).map((Ne,We)=>{const wc=Vl(Ne.value,qe,Me),Ys=Gt[Zn].offset(wc);let Nn;return Ue===!1?Nn=ie.indexOf(Ne.value)!==-1:Nn=Ue==="normal"&&(P?Ne.value>=ie[0]&&Ne.value<=ie[ie.length-1]:Ne.value<=ie[0])||Ue==="inverted"&&(P?Ne.value<=ie[0]||Ne.value>=ie[ie.length-1]:Ne.value>=ie[0]),w.jsxs(h.Fragment,{children:[w.jsx(cc,j({"data-index":We},vc,!rs(cc)&&{markActive:Nn},{style:j({},Ys,vc.style),className:Sr(vc.className,Nn&&le.markActive)})),Ne.label!=null?w.jsx(fc,j({"aria-hidden":!0,"data-index":We},gc,!rs(fc)&&{markLabelActive:Nn},{style:j({},Ys,gc.style),className:Sr(le.markLabel,gc.className,Nn&&le.markLabelActive),children:Ne.label})):null]},We)}),ie.map((Ne,We)=>{const wc=Vl(Ne,qe,Me),Ys=Gt[Zn].offset(wc),Nn=nt==="off"?fP:km;return w.jsx(Nn,j({},!rs(Nn)&&{valueLabelFormat:vt,valueLabelDisplay:nt,value:typeof vt=="function"?vt(Qe(Ne),We):vt,index:We,open:gi===We||no===We||nt==="on",disabled:ve},Sk,{children:w.jsx(Em,j({"data-index":We},yc,{className:Sr(le.thumb,yc.className,no===We&&le.active,N===We&&le.focusVisible),style:j({},Ys,un(We),yc.style),children:w.jsx(bm,j({"data-index":We,"aria-label":X?X(We):B,"aria-valuenow":Qe(Ne),"aria-labelledby":W,"aria-valuetext":re?re(Qe(Ne),We):K,value:ie[We]},xk))}))}),We)})]}))});var Hv=Object.prototype.toString,sE=function(t){var n=Hv.call(t),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Hv.call(t.callee)==="[object Function]"),r},af,Vv;function pP(){if(Vv)return af;Vv=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=sE,o=Object.prototype.propertyIsEnumerable,i=!o.call({toString:null},"toString"),s=o.call(function(){},"prototype"),a=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(f){var v=f.constructor;return v&&v.prototype===f},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=function(){if(typeof window>"u")return!1;for(var f in window)try{if(!u["$"+f]&&t.call(window,f)&&window[f]!==null&&typeof window[f]=="object")try{l(window[f])}catch{return!0}}catch{return!0}return!1}(),d=function(f){if(typeof window>"u"||!c)return l(f);try{return l(f)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",S=n.call(v)==="[object Function]",k=r(v),m=g&&n.call(v)==="[object String]",p=[];if(!g&&!S&&!k)throw new TypeError("Object.keys called on a non-object");var y=s&&S;if(m&&v.length>0&&!t.call(v,0))for(var E=0;E0)for(var C=0;C"u"||!Be?Q:Be(Uint8Array),zr={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Q:ArrayBuffer,"%ArrayIteratorPrototype%":ho&&Be?Be([][Symbol.iterator]()):Q,"%AsyncFromSyncIteratorPrototype%":Q,"%AsyncFunction%":wo,"%AsyncGenerator%":wo,"%AsyncGeneratorFunction%":wo,"%AsyncIteratorPrototype%":wo,"%Atomics%":typeof Atomics>"u"?Q:Atomics,"%BigInt%":typeof BigInt>"u"?Q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":LP,"%eval%":eval,"%EvalError%":IP,"%Float32Array%":typeof Float32Array>"u"?Q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Q:FinalizationRegistry,"%Function%":uE,"%GeneratorFunction%":wo,"%Int8Array%":typeof Int8Array>"u"?Q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?Q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ho&&Be?Be(Be([][Symbol.iterator]())):Q,"%JSON%":typeof JSON=="object"?JSON:Q,"%Map%":typeof Map>"u"?Q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ho||!Be?Q:Be(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Q:Promise,"%Proxy%":typeof Proxy>"u"?Q:Proxy,"%RangeError%":MP,"%ReferenceError%":BP,"%Reflect%":typeof Reflect>"u"?Q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ho||!Be?Q:Be(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ho&&Be?Be(""[Symbol.iterator]()):Q,"%Symbol%":ho?Symbol:Q,"%SyntaxError%":ni,"%ThrowTypeError%":FP,"%TypedArray%":UP,"%TypeError%":Uo,"%Uint8Array%":typeof Uint8Array>"u"?Q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Q:Uint32Array,"%URIError%":DP,"%WeakMap%":typeof WeakMap>"u"?Q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Q:WeakSet};if(Be)try{null.error}catch(e){var WP=Be(Be(e));zr["%Error.prototype%"]=WP}var HP=function e(t){var n;if(t==="%AsyncFunction%")n=uf("async function () {}");else if(t==="%GeneratorFunction%")n=uf("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=uf("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Be&&(n=Be(o.prototype))}return zr[t]=n,n},Yv={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Qs=rm,Kl=lE,VP=Qs.call(Function.call,Array.prototype.concat),KP=Qs.call(Function.apply,Array.prototype.splice),Xv=Qs.call(Function.call,String.prototype.replace),Gl=Qs.call(Function.call,String.prototype.slice),GP=Qs.call(Function.call,RegExp.prototype.exec),qP=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,QP=/\\(\\)?/g,YP=function(t){var n=Gl(t,0,1),r=Gl(t,-1);if(n==="%"&&r!=="%")throw new ni("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new ni("invalid intrinsic syntax, expected opening `%`");var o=[];return Xv(t,qP,function(i,s,a,l){o[o.length]=a?Xv(l,QP,"$1"):s||i}),o},XP=function(t,n){var r=t,o;if(Kl(Yv,r)&&(o=Yv[r],r="%"+o[0]+"%"),Kl(zr,r)){var i=zr[r];if(i===wo&&(i=HP(r)),typeof i>"u"&&!n)throw new Uo("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:r,value:i}}throw new ni("intrinsic "+t+" does not exist!")},On=function(t,n){if(typeof t!="string"||t.length===0)throw new Uo("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Uo('"allowMissing" argument must be a boolean');if(GP(/^%?[^%]*%?$/,t)===null)throw new ni("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=YP(t),o=r.length>0?r[0]:"",i=XP("%"+o+"%",n),s=i.name,a=i.value,l=!1,u=i.alias;u&&(o=u[0],KP(r,VP([0,1],u)));for(var c=1,d=!0;c=r.length){var S=Fr(a,f);d=!!S,d&&"get"in S&&!("originalValue"in S.get)?a=S.get:a=a[f]}else d=Kl(a,f),a=a[f];d&&!l&&(zr[s]=a)}}return a},JP=On,nl=JP("%Object.defineProperty%",!0)||!1;if(nl)try{nl({},"a",{value:1})}catch{nl=!1}var om=nl,ZP=On,rl=ZP("%Object.getOwnPropertyDescriptor%",!0);if(rl)try{rl([],"length")}catch{rl=null}var im=rl,Jv=om,e3=aE,mo=_r,Zv=im,sm=function(t,n,r){if(!t||typeof t!="object"&&typeof t!="function")throw new mo("`obj` must be an object or a function`");if(typeof n!="string"&&typeof n!="symbol")throw new mo("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new mo("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new mo("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new mo("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new mo("`loose`, if provided, must be a boolean");var o=arguments.length>3?arguments[3]:null,i=arguments.length>4?arguments[4]:null,s=arguments.length>5?arguments[5]:null,a=arguments.length>6?arguments[6]:!1,l=!!Zv&&Zv(t,n);if(Jv)Jv(t,n,{configurable:s===null&&l?l.configurable:!s,enumerable:o===null&&l?l.enumerable:!o,value:r,writable:i===null&&l?l.writable:!i});else if(a||!o&&!i&&!s)t[n]=r;else throw new e3("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")},Vd=om,cE=function(){return!!Vd};cE.hasArrayLengthDefineBug=function(){if(!Vd)return null;try{return Vd([],"length",{value:1}).length!==1}catch{return!0}};var am=cE,t3=tm,n3=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r3=Object.prototype.toString,o3=Array.prototype.concat,eg=sm,i3=function(e){return typeof e=="function"&&r3.call(e)==="[object Function]"},fE=am(),s3=function(e,t,n,r){if(t in e){if(r===!0){if(e[t]===n)return}else if(!i3(r)||!r())return}fE?eg(e,t,n,!0):eg(e,t,n)},dE=function(e,t){var n=arguments.length>2?arguments[2]:{},r=t3(t);n3&&(r=o3.call(r,Object.getOwnPropertySymbols(t)));for(var o=0;o4294967295||u3(n)!==n)throw new rg("`length` must be a positive 32-bit integer");var r=arguments.length>2&&!!arguments[2],o=!0,i=!0;if("length"in t&&ng){var s=ng(t,"length");s&&!s.configurable&&(o=!1),s&&!s.writable&&(i=!1)}return(o||i||!r)&&(l3?tg(t,"length",n,!0,!0):tg(t,"length",n)),t};(function(e){var t=rm,n=On,r=c3,o=_r,i=n("%Function.prototype.apply%"),s=n("%Function.prototype.call%"),a=n("%Reflect.apply%",!0)||t.call(s,i),l=om,u=n("%Math.max%");e.exports=function(f){if(typeof f!="function")throw new o("a function is required");var v=a(t,s,arguments);return r(v,1+u(0,f.length-(arguments.length-1)),!0)};var c=function(){return a(t,i,arguments)};l?l(e.exports,"apply",{value:c}):e.exports.apply=c})(pE);var mi=pE.exports,hE=On,mE=mi,f3=mE(hE("String.prototype.indexOf")),Kt=function(t,n){var r=hE(t,!!n);return typeof r=="function"&&f3(t,".prototype.")>-1?mE(r):r},d3=tm,yE=sc(),vE=Kt,og=Object,p3=vE("Array.prototype.push"),ig=vE("Object.prototype.propertyIsEnumerable"),h3=yE?Object.getOwnPropertySymbols:null,gE=function(t,n){if(t==null)throw new TypeError("target must be an object");var r=og(t);if(arguments.length===1)return r;for(var o=1;o2&&!!arguments[2];return(!r||T3)&&(_3?sg(t,"name",n,!0,!0):sg(t,"name",n)),t},A3=N3,P3=_r,j3=Object,EE=A3(function(){if(this==null||this!==j3(this))throw new P3("RegExp.prototype.flags getter called on non-object");var t="";return this.hasIndices&&(t+="d"),this.global&&(t+="g"),this.ignoreCase&&(t+="i"),this.multiline&&(t+="m"),this.dotAll&&(t+="s"),this.unicode&&(t+="u"),this.unicodeSets&&(t+="v"),this.sticky&&(t+="y"),t},"get flags",!0),L3=EE,I3=Jr.supportsDescriptors,M3=Object.getOwnPropertyDescriptor,kE=function(){if(I3&&/a/mig.flags==="gim"){var t=M3(RegExp.prototype,"flags");if(t&&typeof t.get=="function"&&typeof RegExp.prototype.dotAll=="boolean"&&typeof RegExp.prototype.hasIndices=="boolean"){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),n==="dy")return t.get}}return L3},B3=Jr.supportsDescriptors,D3=kE,F3=Object.getOwnPropertyDescriptor,z3=Object.defineProperty,U3=TypeError,ag=Object.getPrototypeOf,W3=/a/,H3=function(){if(!B3||!ag)throw new U3("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var t=D3(),n=ag(W3),r=F3(n,"flags");return(!r||r.get!==t)&&z3(n,"flags",{configurable:!0,enumerable:!1,get:t}),t},V3=Jr,K3=mi,G3=EE,bE=kE,q3=H3,CE=K3(bE());V3(CE,{getPolyfill:bE,implementation:G3,shim:q3});var Q3=CE,ol={exports:{}},Y3=sc,Zr=function(){return Y3()&&!!Symbol.toStringTag},X3=Zr(),J3=Kt,Kd=J3("Object.prototype.toString"),ac=function(t){return X3&&t&&typeof t=="object"&&Symbol.toStringTag in t?!1:Kd(t)==="[object Arguments]"},OE=function(t){return ac(t)?!0:t!==null&&typeof t=="object"&&typeof t.length=="number"&&t.length>=0&&Kd(t)!=="[object Array]"&&Kd(t.callee)==="[object Function]"},Z3=function(){return ac(arguments)}();ac.isLegacyArguments=OE;var $E=Z3?ac:OE;const ej={},tj=Object.freeze(Object.defineProperty({__proto__:null,default:ej},Symbol.toStringTag,{value:"Module"})),nj=Yn(tj);var lm=typeof Map=="function"&&Map.prototype,df=Object.getOwnPropertyDescriptor&&lm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ql=lm&&df&&typeof df.get=="function"?df.get:null,lg=lm&&Map.prototype.forEach,um=typeof Set=="function"&&Set.prototype,pf=Object.getOwnPropertyDescriptor&&um?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,Ql=um&&pf&&typeof pf.get=="function"?pf.get:null,ug=um&&Set.prototype.forEach,rj=typeof WeakMap=="function"&&WeakMap.prototype,is=rj?WeakMap.prototype.has:null,oj=typeof WeakSet=="function"&&WeakSet.prototype,ss=oj?WeakSet.prototype.has:null,ij=typeof WeakRef=="function"&&WeakRef.prototype,cg=ij?WeakRef.prototype.deref:null,sj=Boolean.prototype.valueOf,aj=Object.prototype.toString,lj=Function.prototype.toString,uj=String.prototype.match,cm=String.prototype.slice,fr=String.prototype.replace,cj=String.prototype.toUpperCase,fg=String.prototype.toLowerCase,_E=RegExp.prototype.test,dg=Array.prototype.concat,mn=Array.prototype.join,fj=Array.prototype.slice,pg=Math.floor,Gd=typeof BigInt=="function"?BigInt.prototype.valueOf:null,hf=Object.getOwnPropertySymbols,qd=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ri=typeof Symbol=="function"&&typeof Symbol.iterator=="object",tt=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ri||!0)?Symbol.toStringTag:null,TE=Object.prototype.propertyIsEnumerable,hg=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function mg(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||_E.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-pg(-e):pg(e);if(r!==e){var o=String(r),i=cm.call(t,o.length+1);return fr.call(o,n,"$&_")+"."+fr.call(fr.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return fr.call(t,n,"$&_")}var Qd=nj,yg=Qd.custom,vg=NE(yg)?yg:null,dj=function e(t,n,r,o){var i=n||{};if(ir(i,"quoteStyle")&&i.quoteStyle!=="single"&&i.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ir(i,"maxStringLength")&&(typeof i.maxStringLength=="number"?i.maxStringLength<0&&i.maxStringLength!==1/0:i.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=ir(i,"customInspect")?i.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ir(i,"indent")&&i.indent!==null&&i.indent!==" "&&!(parseInt(i.indent,10)===i.indent&&i.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ir(i,"numericSeparator")&&typeof i.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=i.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return PE(t,i);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var l=String(t);return a?mg(t,l):l}if(typeof t=="bigint"){var u=String(t)+"n";return a?mg(t,u):u}var c=typeof i.depth>"u"?5:i.depth;if(typeof r>"u"&&(r=0),r>=c&&c>0&&typeof t=="object")return Yd(t)?"[Array]":"[Object]";var d=Rj(i,r);if(typeof o>"u")o=[];else if(AE(o,t)>=0)return"[Circular]";function f(B,K,W){if(K&&(o=fj.call(o),o.push(K)),W){var G={depth:i.depth};return ir(i,"quoteStyle")&&(G.quoteStyle=i.quoteStyle),e(B,G,r+1,o)}return e(B,i,r+1,o)}if(typeof t=="function"&&!gg(t)){var v=xj(t),g=$a(t,f);return"[Function"+(v?": "+v:" (anonymous)")+"]"+(g.length>0?" { "+mn.call(g,", ")+" }":"")}if(NE(t)){var S=ri?fr.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):qd.call(t);return typeof t=="object"&&!ri?Ai(S):S}if($j(t)){for(var k="<"+fg.call(String(t.nodeName)),m=t.attributes||[],p=0;p",t.childNodes&&t.childNodes.length&&(k+="..."),k+=""+fg.call(String(t.nodeName))+">",k}if(Yd(t)){if(t.length===0)return"[]";var y=$a(t,f);return d&&!Tj(y)?"["+Xd(y,d)+"]":"[ "+mn.call(y,", ")+" ]"}if(mj(t)){var E=$a(t,f);return!("cause"in Error.prototype)&&"cause"in t&&!TE.call(t,"cause")?"{ ["+String(t)+"] "+mn.call(dg.call("[cause]: "+f(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+mn.call(E,", ")+" }"}if(typeof t=="object"&&s){if(vg&&typeof t[vg]=="function"&&Qd)return Qd(t,{depth:c-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Ej(t)){var C=[];return lg&&lg.call(t,function(B,K){C.push(f(K,t,!0)+" => "+f(B,t))}),wg("Map",ql.call(t),C,d)}if(Cj(t)){var x=[];return ug&&ug.call(t,function(B){x.push(f(B,t))}),wg("Set",Ql.call(t),x,d)}if(kj(t))return mf("WeakMap");if(Oj(t))return mf("WeakSet");if(bj(t))return mf("WeakRef");if(vj(t))return Ai(f(Number(t)));if(wj(t))return Ai(f(Gd.call(t)));if(gj(t))return Ai(sj.call(t));if(yj(t))return Ai(f(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof cl<"u"&&t===cl)return"{ [object globalThis] }";if(!hj(t)&&!gg(t)){var b=$a(t,f),O=hg?hg(t)===Object.prototype:t instanceof Object||t.constructor===Object,T=t instanceof Object?"":"null prototype",$=!O&&tt&&Object(t)===t&&tt in t?cm.call(Tr(t),8,-1):T?"Object":"",A=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",U=A+($||T?"["+mn.call(dg.call([],$||[],T||[]),": ")+"] ":"");return b.length===0?U+"{}":d?U+"{"+Xd(b,d)+"}":U+"{ "+mn.call(b,", ")+" }"}return String(t)};function RE(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function pj(e){return fr.call(String(e),/"/g,""")}function Yd(e){return Tr(e)==="[object Array]"&&(!tt||!(typeof e=="object"&&tt in e))}function hj(e){return Tr(e)==="[object Date]"&&(!tt||!(typeof e=="object"&&tt in e))}function gg(e){return Tr(e)==="[object RegExp]"&&(!tt||!(typeof e=="object"&&tt in e))}function mj(e){return Tr(e)==="[object Error]"&&(!tt||!(typeof e=="object"&&tt in e))}function yj(e){return Tr(e)==="[object String]"&&(!tt||!(typeof e=="object"&&tt in e))}function vj(e){return Tr(e)==="[object Number]"&&(!tt||!(typeof e=="object"&&tt in e))}function gj(e){return Tr(e)==="[object Boolean]"&&(!tt||!(typeof e=="object"&&tt in e))}function NE(e){if(ri)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!qd)return!1;try{return qd.call(e),!0}catch{}return!1}function wj(e){if(!e||typeof e!="object"||!Gd)return!1;try{return Gd.call(e),!0}catch{}return!1}var Sj=Object.prototype.hasOwnProperty||function(e){return e in this};function ir(e,t){return Sj.call(e,t)}function Tr(e){return aj.call(e)}function xj(e){if(e.name)return e.name;var t=uj.call(lj.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function AE(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return PE(cm.call(e,0,t.maxStringLength),t)+r}var o=fr.call(fr.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,_j);return RE(o,"single",t)}function _j(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+cj.call(t.toString(16))}function Ai(e){return"Object("+e+")"}function mf(e){return e+" { ? }"}function wg(e,t,n,r){var o=r?Xd(n,r):mn.call(n,", ");return e+" ("+t+") {"+o+"}"}function Tj(e){for(var t=0;t=0)return!1;return!0}function Rj(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=mn.call(Array(e.indent+1)," ");else return null;return{base:n,prev:mn.call(Array(t+1),n)}}function Xd(e,t){if(e.length===0)return"";var n=`
`+t.prev+t.base;return n+mn.call(e,","+n)+`
-`+t.prev}function Oa(e,t){var n=Qd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=Og(t,n);if(o<55296||o>56319)return n+1;var i=Og(t,n+1);return i<56320||i>57343?n+1:n+2},yf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},$g=function(t,n){if(Jj(t)||Eg(t))return yf(t);if(Zj(t)){var r=0;return{next:function(){var i=r4(t,r),s=n4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!e4&&!t4)rl.exports=function(t){if(t!=null)return $g(t,!0)};else{var o4=BE,i4=FE,_g=Yt("Map.prototype.forEach",!0),Tg=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Rg=Yt("Map.prototype.iterator",!0),Ng=Yt("Set.prototype.iterator",!0);var Ag=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),Pg=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),s4=function(t){if(o4(t)){if(Rg)return kg(Rg(t));if(Ag)return Ag(t);if(_g){var n=[];return _g(t,function(o,i){Cg(n,[i,o])}),yf(n)}}if(i4(t)){if(Ng)return kg(Ng(t));if(Pg)return Pg(t);if(Tg){var r=[];return Tg(t,function(o){Cg(r,o)}),yf(r)}}};rl.exports=function(t){return s4(t)||$g(t)}}}var a4=rl.exports,jg=function(e){return e!==e},zE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||jg(t)&&jg(n))},l4=zE,UE=function(){return typeof Object.is=="function"?Object.is:l4},u4=UE,c4=Jr,f4=function(){var t=u4();return c4(Object,{is:t},{is:function(){return Object.is!==t}}),t},d4=Jr,p4=mi,h4=zE,WE=UE,m4=f4,HE=p4(WE(),Object);d4(HE,{getPolyfill:WE,implementation:h4,shim:m4});var y4=HE,v4=mi,VE=Kt,g4=On,Xd=g4("%ArrayBuffer%",!0),ol=VE("ArrayBuffer.prototype.byteLength",!0),w4=VE("Object.prototype.toString"),Lg=!!Xd&&!ol&&new Xd(0).slice,Ig=!!Lg&&v4(Lg),KE=ol||Ig?function(t){if(!t||typeof t!="object")return!1;try{return ol?ol(t):Ig(t,0),!0}catch{return!1}}:Xd?function(t){return w4(t)==="[object ArrayBuffer]"}:function(t){return!1},S4=Date.prototype.getDay,x4=function(t){try{return S4.call(t),!0}catch{return!1}},E4=Object.prototype.toString,k4="[object Date]",b4=Zr(),C4=function(t){return typeof t!="object"||t===null?!1:b4?x4(t):E4.call(t)===k4},Jd=Kt,GE=Zr(),qE,QE,Zd,ep;if(GE){qE=Jd("Object.prototype.hasOwnProperty"),QE=Jd("RegExp.prototype.exec"),Zd={};var vf=function(){throw Zd};ep={toString:vf,valueOf:vf},typeof Symbol.toPrimitive=="symbol"&&(ep[Symbol.toPrimitive]=vf)}var O4=Jd("Object.prototype.toString"),$4=Object.getOwnPropertyDescriptor,_4="[object RegExp]",T4=GE?function(t){if(!t||typeof t!="object")return!1;var n=$4(t,"lastIndex"),r=n&&qE(n,"value");if(!r)return!1;try{QE(t,ep)}catch(o){return o===Zd}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:O4(t)===_4},R4=Kt,Mg=R4("SharedArrayBuffer.prototype.byteLength",!0),N4=Mg?function(t){if(!t||typeof t!="object")return!1;try{return Mg(t),!0}catch{return!1}}:function(t){return!1},A4=Number.prototype.toString,P4=function(t){try{return A4.call(t),!0}catch{return!1}},j4=Object.prototype.toString,L4="[object Number]",I4=Zr(),M4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:I4?P4(t):j4.call(t)===L4},YE=Kt,B4=YE("Boolean.prototype.toString"),D4=YE("Object.prototype.toString"),F4=function(t){try{return B4(t),!0}catch{return!1}},z4="[object Boolean]",U4=Zr(),W4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:U4&&Symbol.toStringTag in t?F4(t):D4(t)===z4},tp={exports:{}},H4=Object.prototype.toString,V4=tm();if(V4){var K4=Symbol.prototype.toString,G4=/^Symbol\(.*\)$/,q4=function(t){return typeof t.valueOf()!="symbol"?!1:G4.test(K4.call(t))};tp.exports=function(t){if(typeof t=="symbol")return!0;if(H4.call(t)!=="[object Symbol]")return!1;try{return q4(t)}catch{return!1}}}else tp.exports=function(t){return!1};var Q4=tp.exports,np={exports:{}},Bg=typeof BigInt<"u"&&BigInt,Y4=function(){return typeof Bg=="function"&&typeof BigInt=="function"&&typeof Bg(42)=="bigint"&&typeof BigInt(42)=="bigint"},X4=Y4();if(X4){var J4=BigInt.prototype.valueOf,Z4=function(t){try{return J4.call(t),!0}catch{}return!1};np.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:Z4(t)}}else np.exports=function(t){return!1};var e5=np.exports,t5=IE,n5=M4,r5=W4,o5=Q4,i5=e5,s5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(t5(t))return"String";if(n5(t))return"Number";if(r5(t))return"Boolean";if(o5(t))return"Symbol";if(i5(t))return"BigInt"},Xl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Dg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Jl;Xl||(Jl=function(t){return!1});var rp=Xl?Xl.prototype.has:null,gf=Dg?Dg.prototype.has:null;!Jl&&!rp&&(Jl=function(t){return!1});var a5=Jl||function(t){if(!t||typeof t!="object")return!1;try{if(rp.call(t,rp),gf)try{gf.call(t,gf)}catch{return!0}return t instanceof Xl}catch{}return!1},op={exports:{}},l5=On,XE=Kt,u5=l5("%WeakSet%",!0),wf=XE("WeakSet.prototype.has",!0);if(wf){var Sf=XE("WeakMap.prototype.has",!0);op.exports=function(t){if(!t||typeof t!="object")return!1;try{if(wf(t,wf),Sf)try{Sf(t,Sf)}catch{return!0}return t instanceof u5}catch{}return!1}}else op.exports=function(t){return!1};var c5=op.exports,f5=BE,d5=FE,p5=a5,h5=c5,m5=function(t){if(t&&typeof t=="object"){if(f5(t))return"Map";if(d5(t))return"Set";if(p5(t))return"WeakMap";if(h5(t))return"WeakSet"}return!1},JE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,ip,il;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{ip=Object.defineProperty({},"length",{get:function(){throw il}}),il={},Ao(function(){throw 42},null,ip)}catch(e){e!==il&&(Ao=null)}else Ao=null;var y5=/^\s*class\b/,sp=function(t){try{var n=JE.call(t);return y5.test(n)}catch{return!1}},xf=function(t){try{return sp(t)?!1:(JE.call(t),!0)}catch{return!1}},sl=Object.prototype.toString,v5="[object Object]",g5="[object Function]",w5="[object GeneratorFunction]",S5="[object HTMLAllCollection]",x5="[object HTML document.all class]",E5="[object HTMLCollection]",k5=typeof Symbol=="function"&&!!Symbol.toStringTag,b5=!(0 in[,]),ap=function(){return!1};if(typeof document=="object"){var C5=document.all;sl.call(C5)===sl.call(document.all)&&(ap=function(t){if((b5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=sl.call(t);return(n===S5||n===x5||n===E5||n===v5)&&t("")==null}catch{}return!1})}var O5=Ao?function(t){if(ap(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,ip)}catch(n){if(n!==il)return!1}return!sp(t)&&xf(t)}:function(t){if(ap(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(k5)return xf(t);if(sp(t))return!1;var n=sl.call(t);return n!==g5&&n!==w5&&!/^\[object HTML/.test(n)?!1:xf(t)},$5=O5,_5=Object.prototype.toString,ZE=Object.prototype.hasOwnProperty,T5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),_5.call(t)==="[object Array]"?T5(t,n,o):typeof t=="string"?R5(t,n,o):N5(t,n,o)},P5=A5,j5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],Ef=j5,L5=typeof globalThis>"u"?ul:globalThis,I5=function(){for(var t=[],n=0;n"u"?ul:globalThis,lp=M5(),mm=hm("String.prototype.slice"),kf=Object.getPrototypeOf,D5=hm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:z5(t)}return al?F5(t):null},W5=Kt,Ug=W5("ArrayBuffer.prototype.byteLength",!0),H5=KE,V5=function(t){return H5(t)?Ug?Ug(t):t.byteLength:NaN},tk=k3,$n=Kt,Wg=G3,K5=On,oi=a4,G5=jE,Hg=y4,Vg=OE,Kg=LE,Gg=KE,qg=C4,Qg=T4,Yg=N4,Xg=em,Jg=s5,Zg=m5,e0=U5,t0=V5,n0=$n("SharedArrayBuffer.prototype.byteLength",!0),r0=$n("Date.prototype.getTime"),bf=Object.getPrototypeOf,o0=$n("Object.prototype.toString"),tu=K5("%Set%",!0),up=$n("Map.prototype.has",!0),nu=$n("Map.prototype.get",!0),i0=$n("Map.prototype.size",!0),ru=$n("Set.prototype.add",!0),nk=$n("Set.prototype.delete",!0),ou=$n("Set.prototype.has",!0),ll=$n("Set.prototype.size",!0);function s0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return nk(e,i.value),!0;return!1}function rk(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function q5(e,t,n,r,o,i){var s=rk(n);if(s!=null)return s;var a=nu(t,s),l=tk({},o,{strict:!1});return typeof a>"u"&&!up(t,s)||!on(r,a,l,i)?!1:!up(e,s)&&on(r,a,l,i)}function Q5(e,t,n){var r=rk(n);return r??(ou(t,r)&&!ou(e,r))}function a0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,nu(t,l),o,i))return nk(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Hg(e,t):e===t)return!0;var i=Jg(e),s=Jg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Hg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),J5(e,t,o,r)}function l0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function Y5(e,t,n,r){if(ll(e)!==ll(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new tu),ru(l,s.value);else if(!ou(t,s.value)){if(n.strict||!Q5(e,t,s.value))return!1;l||(l=new tu),ru(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!s0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!ou(e,a.value)&&!s0(l,a.value,n.strict,r))return!1;return ll(l)===0}return!0}function X5(e,t,n,r){if(i0(e)!==i0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new tu),ru(l,u);else if(d=nu(t,u),typeof d>"u"&&!up(t,u)||!on(c,d,n,r)){if(n.strict||!q5(e,t,u,c,n,r))return!1;l||(l=new tu),ru(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!a0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(nu(e,u),d,n,r))&&!a0(l,e,u,d,tk({},n,{strict:!1}),r))return!1;return ll(l)===0}return!0}function J5(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||o0(e)!==o0(t)||Vg(e)!==Vg(t))return!1;var s=Kg(e),a=Kg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Qg(e),d=Qg(t);if(c!==d||(c||d)&&(e.source!==t.source||Wg(e)!==Wg(t)))return!1;var f=qg(e),v=qg(t);if(f!==v||(f||v)&&r0(e)!==r0(t)||n.strict&&bf&&bf(e)!==bf(t))return!1;var g=e0(e),S=e0(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=Zg(e),T=Zg(t);return O!==T?!1:O==="Set"||T==="Set"?Y5(e,t,n,r):O==="Map"?X5(e,t,n,r):!0}var Z5=function(t,n,r){return on(t,n,r,G5())};const eL=si(Z5),ym=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!eL(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ta=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},ok=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ta(o),[y,E]=Ta(i),[C,x]=Ta(s),[b,O]=Ta(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Dl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(cP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(Fl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx(Oh,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(ku,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Dl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},ym);ok.displayName="SliderComponent";const ik=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Dl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},ym);ik.displayName="EnumComponent";const vm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),ux(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(Ds,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},ym);vm.displayName="MethodComponent";const sk=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});sk.displayName="StringComponent";function gm(e){const t=h.useContext(Ph),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const ak=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=gm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});ak.displayName="ListComponent";var tL=["color","size","title","className"];function cp(){return cp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function rL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var ac=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=nL(e,tL);return ne.createElement("svg",cp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});ac.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};ac.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var oL=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function sL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=iL(e,oL);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function dp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const wm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=dp(`dataServiceComponent-${o}-open`,!0),a=gm(e);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(ac,{}):w.jsx(lc,{})]}),w.jsx(ku,{in:i,children:w.jsx(Do.Body,{children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});wm.displayName="DataServiceComponent";const lk=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(vm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(wm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});lk.displayName="DeviceConnectionComponent";const uk=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(ac,{}):w.jsx(lc,{})]}),w.jsx(ku,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(sS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});uk.displayName="ImageComponent";function aL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const ck=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=gm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});ck.displayName="DictComponent";const fk=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;Cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",v=[t,f].filter(g=>g).join(".");u(!0),ux(v)};return w.jsxs("div",{className:"component taskComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:c,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(Ds,{id:`button-${s}`,type:"submit",children:l?w.jsx(DS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});fk.displayName="TaskComponent";const lL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},uL=e=>{const t=[],n=fx(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return lL(t)};function yo(e,t=()=>{}){U_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=aL(r),i=h.useContext(Ph);let s=uL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(dx,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(Fl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(Fl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(ok,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(ik,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?w.jsx(vm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(sk,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?w.jsx(fk,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?w.jsx(wm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(lk,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(ak,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(ck,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(uk,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const cL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:V_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},fL=()=>{const[e,t]=h.useReducer(cL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=dp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=dp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`http://${wa}/custom.css`,{credentials:"include"}).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`http://${wa}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`http://${wa}/service-properties`,{credentials:"include"}).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`http://${wa}/web-settings`,{credentials:"include"}).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Yc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(qw,{fluid:!0,children:[w.jsx(Yc.Brand,{children:n}),w.jsx(Yc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(cx,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(Ph.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(Pd,{connectionStatus:g})]}):w.jsx(Pd,{connectionStatus:g})};var pp={},u0=Rw;pp.createRoot=u0.createRoot,pp.hydrateRoot=u0.hydrateRoot;pp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(fL,{})}));
+`+t.prev}function $a(e,t){var n=Yd(e),r=[];if(n){r.length=e.length;for(var o=0;o=r)return n+1;var o=$g(t,n);if(o<55296||o>56319)return n+1;var i=$g(t,n+1);return i<56320||i>57343?n+1:n+2},vf=function(t){var n=0;return{next:function(){var o=n>=t.length,i;return o||(i=t[n],n+=1),{done:o,value:i}}}},_g=function(t,n){if(e4(t)||kg(t))return vf(t);if(t4(t)){var r=0;return{next:function(){var i=i4(t,r),s=o4(t,r,i);return r=i,{done:i>t.length,value:s}}}}if(n&&typeof t["_es6-shim iterator_"]<"u")return t["_es6-shim iterator_"]()};if(!n4&&!r4)ol.exports=function(t){if(t!=null)return _g(t,!0)};else{var s4=DE,a4=zE,Tg=Yt("Map.prototype.forEach",!0),Rg=Yt("Set.prototype.forEach",!0);if(typeof process>"u"||!process.versions||!process.versions.node)var Ng=Yt("Map.prototype.iterator",!0),Ag=Yt("Set.prototype.iterator",!0);var Pg=Yt("Map.prototype.@@iterator",!0)||Yt("Map.prototype._es6-shim iterator_",!0),jg=Yt("Set.prototype.@@iterator",!0)||Yt("Set.prototype._es6-shim iterator_",!0),l4=function(t){if(s4(t)){if(Ng)return bg(Ng(t));if(Pg)return Pg(t);if(Tg){var n=[];return Tg(t,function(o,i){Og(n,[i,o])}),vf(n)}}if(a4(t)){if(Ag)return bg(Ag(t));if(jg)return jg(t);if(Rg){var r=[];return Rg(t,function(o){Og(r,o)}),vf(r)}}};ol.exports=function(t){return l4(t)||_g(t)}}}var u4=ol.exports,Lg=function(e){return e!==e},UE=function(t,n){return t===0&&n===0?1/t===1/n:!!(t===n||Lg(t)&&Lg(n))},c4=UE,WE=function(){return typeof Object.is=="function"?Object.is:c4},f4=WE,d4=Jr,p4=function(){var t=f4();return d4(Object,{is:t},{is:function(){return Object.is!==t}}),t},h4=Jr,m4=mi,y4=UE,HE=WE,v4=p4,VE=m4(HE(),Object);h4(VE,{getPolyfill:HE,implementation:y4,shim:v4});var g4=VE,w4=mi,KE=Kt,S4=On,Jd=S4("%ArrayBuffer%",!0),il=KE("ArrayBuffer.prototype.byteLength",!0),x4=KE("Object.prototype.toString"),Ig=!!Jd&&!il&&new Jd(0).slice,Mg=!!Ig&&w4(Ig),GE=il||Mg?function(t){if(!t||typeof t!="object")return!1;try{return il?il(t):Mg(t,0),!0}catch{return!1}}:Jd?function(t){return x4(t)==="[object ArrayBuffer]"}:function(t){return!1},E4=Date.prototype.getDay,k4=function(t){try{return E4.call(t),!0}catch{return!1}},b4=Object.prototype.toString,C4="[object Date]",O4=Zr(),$4=function(t){return typeof t!="object"||t===null?!1:O4?k4(t):b4.call(t)===C4},Zd=Kt,qE=Zr(),QE,YE,ep,tp;if(qE){QE=Zd("Object.prototype.hasOwnProperty"),YE=Zd("RegExp.prototype.exec"),ep={};var gf=function(){throw ep};tp={toString:gf,valueOf:gf},typeof Symbol.toPrimitive=="symbol"&&(tp[Symbol.toPrimitive]=gf)}var _4=Zd("Object.prototype.toString"),T4=Object.getOwnPropertyDescriptor,R4="[object RegExp]",N4=qE?function(t){if(!t||typeof t!="object")return!1;var n=T4(t,"lastIndex"),r=n&&QE(n,"value");if(!r)return!1;try{YE(t,tp)}catch(o){return o===ep}}:function(t){return!t||typeof t!="object"&&typeof t!="function"?!1:_4(t)===R4},A4=Kt,Bg=A4("SharedArrayBuffer.prototype.byteLength",!0),P4=Bg?function(t){if(!t||typeof t!="object")return!1;try{return Bg(t),!0}catch{return!1}}:function(t){return!1},j4=Number.prototype.toString,L4=function(t){try{return j4.call(t),!0}catch{return!1}},I4=Object.prototype.toString,M4="[object Number]",B4=Zr(),D4=function(t){return typeof t=="number"?!0:typeof t!="object"?!1:B4?L4(t):I4.call(t)===M4},XE=Kt,F4=XE("Boolean.prototype.toString"),z4=XE("Object.prototype.toString"),U4=function(t){try{return F4(t),!0}catch{return!1}},W4="[object Boolean]",H4=Zr(),V4=function(t){return typeof t=="boolean"?!0:t===null||typeof t!="object"?!1:H4&&Symbol.toStringTag in t?U4(t):z4(t)===W4},np={exports:{}},K4=Object.prototype.toString,G4=nm();if(G4){var q4=Symbol.prototype.toString,Q4=/^Symbol\(.*\)$/,Y4=function(t){return typeof t.valueOf()!="symbol"?!1:Q4.test(q4.call(t))};np.exports=function(t){if(typeof t=="symbol")return!0;if(K4.call(t)!=="[object Symbol]")return!1;try{return Y4(t)}catch{return!1}}}else np.exports=function(t){return!1};var X4=np.exports,rp={exports:{}},Dg=typeof BigInt<"u"&&BigInt,J4=function(){return typeof Dg=="function"&&typeof BigInt=="function"&&typeof Dg(42)=="bigint"&&typeof BigInt(42)=="bigint"},Z4=J4();if(Z4){var e5=BigInt.prototype.valueOf,t5=function(t){try{return e5.call(t),!0}catch{}return!1};rp.exports=function(t){return t===null||typeof t>"u"||typeof t=="boolean"||typeof t=="string"||typeof t=="number"||typeof t=="symbol"||typeof t=="function"?!1:typeof t=="bigint"?!0:t5(t)}}else rp.exports=function(t){return!1};var n5=rp.exports,r5=ME,o5=D4,i5=V4,s5=X4,a5=n5,l5=function(t){if(t==null||typeof t!="object"&&typeof t!="function")return null;if(r5(t))return"String";if(o5(t))return"Number";if(i5(t))return"Boolean";if(s5(t))return"Symbol";if(a5(t))return"BigInt"},Jl=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,Fg=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,Zl;Jl||(Zl=function(t){return!1});var op=Jl?Jl.prototype.has:null,wf=Fg?Fg.prototype.has:null;!Zl&&!op&&(Zl=function(t){return!1});var u5=Zl||function(t){if(!t||typeof t!="object")return!1;try{if(op.call(t,op),wf)try{wf.call(t,wf)}catch{return!0}return t instanceof Jl}catch{}return!1},ip={exports:{}},c5=On,JE=Kt,f5=c5("%WeakSet%",!0),Sf=JE("WeakSet.prototype.has",!0);if(Sf){var xf=JE("WeakMap.prototype.has",!0);ip.exports=function(t){if(!t||typeof t!="object")return!1;try{if(Sf(t,Sf),xf)try{xf(t,xf)}catch{return!0}return t instanceof f5}catch{}return!1}}else ip.exports=function(t){return!1};var d5=ip.exports,p5=DE,h5=zE,m5=u5,y5=d5,v5=function(t){if(t&&typeof t=="object"){if(p5(t))return"Map";if(h5(t))return"Set";if(m5(t))return"WeakMap";if(y5(t))return"WeakSet"}return!1},ZE=Function.prototype.toString,Ao=typeof Reflect=="object"&&Reflect!==null&&Reflect.apply,sp,sl;if(typeof Ao=="function"&&typeof Object.defineProperty=="function")try{sp=Object.defineProperty({},"length",{get:function(){throw sl}}),sl={},Ao(function(){throw 42},null,sp)}catch(e){e!==sl&&(Ao=null)}else Ao=null;var g5=/^\s*class\b/,ap=function(t){try{var n=ZE.call(t);return g5.test(n)}catch{return!1}},Ef=function(t){try{return ap(t)?!1:(ZE.call(t),!0)}catch{return!1}},al=Object.prototype.toString,w5="[object Object]",S5="[object Function]",x5="[object GeneratorFunction]",E5="[object HTMLAllCollection]",k5="[object HTML document.all class]",b5="[object HTMLCollection]",C5=typeof Symbol=="function"&&!!Symbol.toStringTag,O5=!(0 in[,]),lp=function(){return!1};if(typeof document=="object"){var $5=document.all;al.call($5)===al.call(document.all)&&(lp=function(t){if((O5||!t)&&(typeof t>"u"||typeof t=="object"))try{var n=al.call(t);return(n===E5||n===k5||n===b5||n===w5)&&t("")==null}catch{}return!1})}var _5=Ao?function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;try{Ao(t,null,sp)}catch(n){if(n!==sl)return!1}return!ap(t)&&Ef(t)}:function(t){if(lp(t))return!0;if(!t||typeof t!="function"&&typeof t!="object")return!1;if(C5)return Ef(t);if(ap(t))return!1;var n=al.call(t);return n!==S5&&n!==x5&&!/^\[object HTML/.test(n)?!1:Ef(t)},T5=_5,R5=Object.prototype.toString,ek=Object.prototype.hasOwnProperty,N5=function(t,n,r){for(var o=0,i=t.length;o=3&&(o=r),R5.call(t)==="[object Array]"?N5(t,n,o):typeof t=="string"?A5(t,n,o):P5(t,n,o)},L5=j5,I5=["Float32Array","Float64Array","Int8Array","Int16Array","Int32Array","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","BigInt64Array","BigUint64Array"],kf=I5,M5=typeof globalThis>"u"?cl:globalThis,B5=function(){for(var t=[],n=0;n"u"?cl:globalThis,up=D5(),ym=mm("String.prototype.slice"),bf=Object.getPrototypeOf,z5=mm("Array.prototype.indexOf",!0)||function(t,n){for(var r=0;r-1?n:n!=="Object"?!1:W5(t)}return ll?U5(t):null},V5=Kt,Wg=V5("ArrayBuffer.prototype.byteLength",!0),K5=GE,G5=function(t){return K5(t)?Wg?Wg(t):t.byteLength:NaN},nk=C3,$n=Kt,Hg=Q3,q5=On,oi=u4,Q5=LE,Vg=g4,Kg=$E,Gg=IE,qg=GE,Qg=$4,Yg=N4,Xg=P4,Jg=tm,Zg=l5,e0=v5,t0=H5,n0=G5,r0=$n("SharedArrayBuffer.prototype.byteLength",!0),o0=$n("Date.prototype.getTime"),Cf=Object.getPrototypeOf,i0=$n("Object.prototype.toString"),nu=q5("%Set%",!0),cp=$n("Map.prototype.has",!0),ru=$n("Map.prototype.get",!0),s0=$n("Map.prototype.size",!0),ou=$n("Set.prototype.add",!0),rk=$n("Set.prototype.delete",!0),iu=$n("Set.prototype.has",!0),ul=$n("Set.prototype.size",!0);function a0(e,t,n,r){for(var o=oi(e),i;(i=o.next())&&!i.done;)if(on(t,i.value,n,r))return rk(e,i.value),!0;return!1}function ok(e){if(typeof e>"u")return null;if(typeof e!="object")return typeof e=="symbol"?!1:typeof e=="string"||typeof e=="number"?+e==+e:!0}function Y5(e,t,n,r,o,i){var s=ok(n);if(s!=null)return s;var a=ru(t,s),l=nk({},o,{strict:!1});return typeof a>"u"&&!cp(t,s)||!on(r,a,l,i)?!1:!cp(e,s)&&on(r,a,l,i)}function X5(e,t,n){var r=ok(n);return r??(iu(t,r)&&!iu(e,r))}function l0(e,t,n,r,o,i){for(var s=oi(e),a,l;(a=s.next())&&!a.done;)if(l=a.value,on(n,l,o,i)&&on(r,ru(t,l),o,i))return rk(e,l),!0;return!1}function on(e,t,n,r){var o=n||{};if(o.strict?Vg(e,t):e===t)return!0;var i=Zg(e),s=Zg(t);if(i!==s)return!1;if(!e||!t||typeof e!="object"&&typeof t!="object")return o.strict?Vg(e,t):e==t;var a=r.has(e),l=r.has(t),u;if(a&&l){if(r.get(e)===r.get(t))return!0}else u={};return a||r.set(e,u),l||r.set(t,u),eL(e,t,o,r)}function u0(e){return!e||typeof e!="object"||typeof e.length!="number"||typeof e.copy!="function"||typeof e.slice!="function"||e.length>0&&typeof e[0]!="number"?!1:!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))}function J5(e,t,n,r){if(ul(e)!==ul(t))return!1;for(var o=oi(e),i=oi(t),s,a,l;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object")l||(l=new nu),ou(l,s.value);else if(!iu(t,s.value)){if(n.strict||!X5(e,t,s.value))return!1;l||(l=new nu),ou(l,s.value)}if(l){for(;(a=i.next())&&!a.done;)if(a.value&&typeof a.value=="object"){if(!a0(l,a.value,n.strict,r))return!1}else if(!n.strict&&!iu(e,a.value)&&!a0(l,a.value,n.strict,r))return!1;return ul(l)===0}return!0}function Z5(e,t,n,r){if(s0(e)!==s0(t))return!1;for(var o=oi(e),i=oi(t),s,a,l,u,c,d;(s=o.next())&&!s.done;)if(u=s.value[0],c=s.value[1],u&&typeof u=="object")l||(l=new nu),ou(l,u);else if(d=ru(t,u),typeof d>"u"&&!cp(t,u)||!on(c,d,n,r)){if(n.strict||!Y5(e,t,u,c,n,r))return!1;l||(l=new nu),ou(l,u)}if(l){for(;(a=i.next())&&!a.done;)if(u=a.value[0],d=a.value[1],u&&typeof u=="object"){if(!l0(l,e,u,d,n,r))return!1}else if(!n.strict&&(!e.has(u)||!on(ru(e,u),d,n,r))&&!l0(l,e,u,d,nk({},n,{strict:!1}),r))return!1;return ul(l)===0}return!0}function eL(e,t,n,r){var o,i;if(typeof e!=typeof t||e==null||t==null||i0(e)!==i0(t)||Kg(e)!==Kg(t))return!1;var s=Gg(e),a=Gg(t);if(s!==a)return!1;var l=e instanceof Error,u=t instanceof Error;if(l!==u||(l||u)&&(e.name!==t.name||e.message!==t.message))return!1;var c=Yg(e),d=Yg(t);if(c!==d||(c||d)&&(e.source!==t.source||Hg(e)!==Hg(t)))return!1;var f=Qg(e),v=Qg(t);if(f!==v||(f||v)&&o0(e)!==o0(t)||n.strict&&Cf&&Cf(e)!==Cf(t))return!1;var g=t0(e),S=t0(t);if(g!==S)return!1;if(g||S){if(e.length!==t.length)return!1;for(o=0;o=0;o--)if(x[o]!=b[o])return!1;for(o=x.length-1;o>=0;o--)if(i=x[o],!on(e[i],t[i],n,r))return!1;var O=e0(e),T=e0(t);return O!==T?!1:O==="Set"||T==="Set"?J5(e,t,n,r):O==="Map"?Z5(e,t,n,r):!0}var tL=function(t,n,r){return on(t,n,r,Q5())};const nL=si(tL),vm=(e,t)=>{for(const n in t)if(typeof t[n]=="object"){if(!nL(e[n],t[n]))return!1}else if(!Object.is(e[n],t[n]))return!1;return!0},Ra=e=>{let t=0,n;const r=e.readonly;return e.type==="int"||e.type==="float"?t=e.value:e.type==="Quantity"&&(t=e.value.magnitude,n=e.value.unit),[t,r,n]},ik=ne.memo(e=>{Cn();const[t,n]=h.useState(!1),{fullAccessPath:r,value:o,min:i,max:s,stepSize:a,docString:l,isInstantUpdate:u,addNotification:c,changeCallback:d=()=>{},displayName:f,id:v}=e;h.useEffect(()=>{c(`${r} changed to ${o.value}.`)},[e.value.value]),h.useEffect(()=>{c(`${r}.min changed to ${i.value}.`)},[e.min.value,e.min.type]),h.useEffect(()=>{c(`${r}.max changed to ${s.value}.`)},[e.max.value,e.max.type]),h.useEffect(()=>{c(`${r}.stepSize changed to ${a.value}.`)},[e.stepSize.value,e.stepSize.type]);const g=(T,$)=>{Array.isArray($)&&($=$[0]);let A;o.type==="Quantity"?A={type:"Quantity",value:{magnitude:$,unit:o.value.unit},full_access_path:`${r}.value`,readonly:o.readonly,doc:l}:A={type:o.type,value:$,full_access_path:`${r}.value`,readonly:o.readonly,doc:l},d(A)},S=(T,$,A)=>{let U;A.type==="Quantity"?U={type:A.type,value:{magnitude:T,unit:A.value.unit},full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null}:U={type:A.type,value:T,full_access_path:`${r}.${$}`,readonly:A.readonly,doc:null},d(U)},[k,m,p]=Ra(o),[y,E]=Ra(i),[C,x]=Ra(s),[b,O]=Ra(a);return w.jsxs("div",{className:"component sliderComponent",id:v,children:[!1,w.jsxs(Fl,{children:[w.jsx(dn,{xs:"auto",xl:"auto",children:w.jsxs(Un.Text,{children:[f,w.jsx(ln,{docString:l})]})}),w.jsx(dn,{xs:"5",xl:!0,children:w.jsx(dP,{style:{margin:"0px 0px 10px 0px"},"aria-label":"Always visible",disabled:m,value:k,onChange:(T,$)=>g(T,$),min:y,max:C,step:b,marks:[{value:y,label:`${y}`},{value:C,label:`${C}`}]})}),w.jsx(dn,{xs:"3",xl:!0,children:w.jsx(zl,{isInstantUpdate:u,fullAccessPath:`${r}.value`,docString:l,readOnly:m,type:o.type,value:k,unit:p,addNotification:()=>{},changeCallback:d,id:v+"-value"})}),w.jsx(dn,{xs:"auto",children:w.jsx($h,{id:`button-${v}`,onClick:()=>n(!t),type:"checkbox",checked:t,value:"",className:"btn",variant:"light","aria-controls":"slider-settings","aria-expanded":t,children:w.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",className:"bi bi-gear",viewBox:"0 0 16 16",children:[w.jsx("path",{d:"M8 4.754a3.246 3.246 0 1 0 0 6.492 3.246 3.246 0 0 0 0-6.492zM5.754 8a2.246 2.246 0 1 1 4.492 0 2.246 2.246 0 0 1-4.492 0z"}),w.jsx("path",{d:"M9.796 1.343c-.527-1.79-3.065-1.79-3.592 0l-.094.319a.873.873 0 0 1-1.255.52l-.292-.16c-1.64-.892-3.433.902-2.54 2.541l.159.292a.873.873 0 0 1-.52 1.255l-.319.094c-1.79.527-1.79 3.065 0 3.592l.319.094a.873.873 0 0 1 .52 1.255l-.16.292c-.892 1.64.901 3.434 2.541 2.54l.292-.159a.873.873 0 0 1 1.255.52l.094.319c.527 1.79 3.065 1.79 3.592 0l.094-.319a.873.873 0 0 1 1.255-.52l.292.16c1.64.893 3.434-.902 2.54-2.541l-.159-.292a.873.873 0 0 1 .52-1.255l.319-.094c1.79-.527 1.79-3.065 0-3.592l-.319-.094a.873.873 0 0 1-.52-1.255l.16-.292c.893-1.64-.902-3.433-2.541-2.54l-.292.159a.873.873 0 0 1-1.255-.52l-.094-.319zm-2.633.283c.246-.835 1.428-.835 1.674 0l.094.319a1.873 1.873 0 0 0 2.693 1.115l.291-.16c.764-.415 1.6.42 1.184 1.185l-.159.292a1.873 1.873 0 0 0 1.116 2.692l.318.094c.835.246.835 1.428 0 1.674l-.319.094a1.873 1.873 0 0 0-1.115 2.693l.16.291c.415.764-.42 1.6-1.185 1.184l-.291-.159a1.873 1.873 0 0 0-2.693 1.116l-.094.318c-.246.835-1.428.835-1.674 0l-.094-.319a1.873 1.873 0 0 0-2.692-1.115l-.292.16c-.764.415-1.6-.42-1.184-1.185l.159-.291A1.873 1.873 0 0 0 1.945 8.93l-.319-.094c-.835-.246-.835-1.428 0-1.674l.319-.094A1.873 1.873 0 0 0 3.06 4.377l-.16-.292c-.415-.764.42-1.6 1.185-1.184l.292.159a1.873 1.873 0 0 0 2.692-1.115l.094-.319z"})]})})})]}),w.jsx(bu,{in:t,children:w.jsx(ot.Group,{children:w.jsxs(Fl,{className:"justify-content-center",style:{paddingTop:"20px",margin:"10px"},children:[w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Min Value"}),w.jsx(ot.Control,{type:"number",value:y,disabled:E,onChange:T=>S(Number(T.target.value),"min",i)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Max Value"}),w.jsx(ot.Control,{type:"number",value:C,disabled:x,onChange:T=>S(Number(T.target.value),"max",s)})]}),w.jsxs(dn,{xs:"auto",children:[w.jsx(ot.Label,{children:"Step Size"}),w.jsx(ot.Control,{type:"number",value:b,disabled:O,onChange:T=>S(Number(T.target.value),"step_size",a)})]})]})})})]})},vm);ik.displayName="SliderComponent";const sk=ne.memo(e=>{const{addNotification:t,displayName:n,id:r,value:o,full_access_path:i,enum:s,doc:a,readonly:l,changeCallback:u}=e;return Cn(),h.useEffect(()=>{t(`${i} changed to ${o}.`)},[o]),w.jsxs("div",{className:"component enumComponent",id:r,children:[!1,w.jsx(Fl,{children:w.jsxs(dn,{className:"d-flex align-items-center",children:[w.jsxs(Un.Text,{children:[n,w.jsx(ln,{docString:a})]}),l?w.jsx(ot.Control,{style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},value:e.type=="ColouredEnum"?o:s[o],name:i,disabled:!0}):w.jsx(ot.Select,{"aria-label":"example-select",value:o,name:i,style:e.type=="ColouredEnum"?{backgroundColor:s[o]}:{},onChange:c=>u({type:e.type,name:e.name,enum:s,value:c.target.value,full_access_path:i,readonly:e.readonly,doc:e.doc}),children:Object.entries(s).map(([c,d])=>w.jsx("option",{value:c,children:e.type=="ColouredEnum"?c:d},c))})]})})]})},vm);sk.displayName="EnumComponent";const gm=ne.memo(e=>{const{fullAccessPath:t,docString:n,addNotification:r,displayName:o,id:i}=e;if(!e.render)return null;Cn();const s=h.useRef(null),a=()=>{const u=`Method ${t} was triggered.`;r(u)},l=async u=>{u.preventDefault(),cx(t),a()};return w.jsxs("div",{className:"component methodComponent",id:i,children:[!1,w.jsx(ot,{onSubmit:l,ref:s,children:w.jsxs(Fs,{className:"component",variant:"primary",type:"submit",children:[`${o} `,w.jsx(ln,{docString:n})]})})]})},vm);gm.displayName="MethodComponent";const ak=ne.memo(e=>{const{fullAccessPath:t,readOnly:n,docString:r,isInstantUpdate:o,addNotification:i,changeCallback:s=()=>{},displayName:a,id:l}=e;Cn();const[u,c]=h.useState(e.value);h.useEffect(()=>{e.value!==u&&c(e.value),i(`${t} changed to ${e.value}.`)},[e.value]);const d=g=>{c(g.target.value),o&&s({type:"str",value:g.target.value,full_access_path:t,readonly:n,doc:r})},f=g=>{g.key==="Enter"&&!o&&(s({type:"str",value:u,full_access_path:t,readonly:n,doc:r}),g.preventDefault())},v=()=>{o||s({type:"str",value:u,full_access_path:t,readonly:n,doc:r})};return w.jsxs("div",{className:"component stringComponent",id:l,children:[!1,w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[a,w.jsx(ln,{docString:r})]}),w.jsx(ot.Control,{type:"text",name:l,value:u,disabled:n,onChange:d,onKeyDown:f,onBlur:v,className:o&&!n?"instantUpdate":""})]})]})});ak.displayName="StringComponent";function wm(e){const t=h.useContext(jh),n=o=>{var i;return((i=t[o])==null?void 0:i.displayOrder)??Number.MAX_SAFE_INTEGER};let r;return Array.isArray(e)?r=[...e].sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)):r=Object.values(e).sort((o,i)=>n(o.full_access_path)-n(i.full_access_path)),r}const lk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});lk.displayName="ListComponent";var rL=["color","size","title","className"];function fp(){return fp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function iL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var lc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=oL(e,rL);return ne.createElement("svg",fp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-down",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708"}))});lc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};lc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};var sL=["color","size","title","className"];function dp(){return dp=Object.assign||function(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function lL(e,t){if(e==null)return{};var n={},r=Object.keys(e),o,i;for(i=0;i=0)&&(n[o]=e[o]);return n}var uc=h.forwardRef(function(e,t){var n=e.color,r=e.size,o=e.title,i=e.className,s=aL(e,sL);return ne.createElement("svg",dp({ref:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 16 16",width:r,height:r,fill:n,className:["bi","bi-chevron-right",i].filter(Boolean).join(" ")},s),o?ne.createElement("title",null,o):null,ne.createElement("path",{fillRule:"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708"}))});uc.propTypes={color:pe.string,size:pe.oneOfType([pe.string,pe.number]),title:pe.string,className:pe.string};uc.defaultProps={color:"currentColor",size:"1em",title:null,className:""};function pp(e,t){const[n,r]=h.useState(()=>{const o=localStorage.getItem(e);return o?JSON.parse(o):t});return h.useEffect(()=>{n!==void 0&&localStorage.setItem(e,JSON.stringify(n))},[n,e]),[n,r]}const Sm=ne.memo(({props:e,isInstantUpdate:t,addNotification:n,displayName:r,id:o})=>{const[i,s]=pp(`dataServiceComponent-${o}-open`,!0),a=wm(e);return r!==""?w.jsx("div",{className:"component dataServiceComponent",id:o,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>s(!i),style:{cursor:"pointer"},children:[r," ",i?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:i,children:w.jsx(Do.Body,{children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})})]})}):w.jsx("div",{className:"component dataServiceComponent",id:o,children:a.map(l=>w.jsx(ii,{attribute:l,isInstantUpdate:t,addNotification:n},l.full_access_path))})});Sm.displayName="DataServiceComponent";const uk=ne.memo(({fullAccessPath:e,props:t,isInstantUpdate:n,addNotification:r,displayName:o,id:i})=>{const{connected:s,connect:a,...l}=t,u=s.value;return w.jsxs("div",{className:"deviceConnectionComponent",id:i,children:[!u&&w.jsxs("div",{className:"overlayContent",children:[w.jsxs("div",{children:[o!=""?o:"Device"," is currently not available!"]}),w.jsx(gm,{fullAccessPath:`${e}.connect`,docString:a.doc,addNotification:r,displayName:"reconnect",id:i+"-connect",render:!0})]}),w.jsx(Sm,{props:l,isInstantUpdate:n,addNotification:r,displayName:o,id:i})]})});uk.displayName="DeviceConnectionComponent";const ck=ne.memo(e=>{const{fullAccessPath:t,value:n,docString:r,format:o,addNotification:i,displayName:s,id:a}=e;Cn();const[l,u]=h.useState(!0);return h.useEffect(()=>{i(`${t} changed.`)},[e.value]),w.jsx("div",{className:"component imageComponent",id:a,children:w.jsxs(Do,{children:[w.jsxs(Do.Header,{onClick:()=>u(!l),style:{cursor:"pointer"},children:[s,w.jsx(ln,{docString:r}),l?w.jsx(lc,{}):w.jsx(uc,{})]}),w.jsx(bu,{in:l,children:w.jsxs(Do.Body,{children:[!1,o===""&&n===""?w.jsx("p",{children:"No image set in the backend."}):w.jsx(aS,{src:`data:image/${o.toLowerCase()};base64,${n}`})]})})]})})});ck.displayName="ImageComponent";function uL(e){if(e){let t=e.replace(/\]\./g,"-");return t=t.replace(/[^\w_]+/g,"-"),t=t.replace(/-+$/,""),t}else return"main"}const fk=ne.memo(e=>{const{docString:t,isInstantUpdate:n,addNotification:r,id:o}=e,i=wm(e.value);return Cn(),w.jsxs("div",{className:"listComponent",id:o,children:[!1,w.jsx(ln,{docString:t}),i.map(s=>w.jsx(ii,{attribute:s,isInstantUpdate:n,addNotification:r},s.full_access_path))]})});fk.displayName="DictComponent";const dk=ne.memo(e=>{const{fullAccessPath:t,docString:n,status:r,addNotification:o,displayName:i,id:s}=e;Cn();const a=h.useRef(null),[l,u]=h.useState(!1);h.useEffect(()=>{let d;r==="RUNNING"?d=`${t} was started.`:d=`${t} was stopped.`,o(d),u(!1)},[r]);const c=async d=>{d.preventDefault();const f=r=="RUNNING"?"stop":"start",v=[t,f].filter(g=>g).join(".");u(!0),cx(v)};return w.jsxs("div",{className:"component taskComponent",id:s,children:[!1,w.jsx(ot,{onSubmit:c,ref:a,children:w.jsxs(Un,{children:[w.jsxs(Un.Text,{children:[i,w.jsx(ln,{docString:n})]}),w.jsx(Fs,{id:`button-${s}`,type:"submit",children:l?w.jsx(FS,{size:"sm",role:"status","aria-hidden":"true"}):r==="RUNNING"?"Stop ":"Start "})]})})]})});dk.displayName="TaskComponent";const cL=e=>{let t="";for(const n of e)!n.startsWith("[")&&t!==""&&(t+="."),t+=n;return t},fL=e=>{const t=[],n=dx(e);for(let r=n.length-1;r>=0;r--){const o=n[r];if(t.unshift(o),!o.startsWith("["))break}return cL(t)};function yo(e,t=()=>{}){H_(e,t)}const ii=ne.memo(({attribute:e,isInstantUpdate:t,addNotification:n})=>{const{full_access_path:r}=e,o=uL(r),i=h.useContext(jh);let s=fL(r);if(i[r]){if(i[r].display===!1)return null;i[r].displayName&&(s=i[r].displayName)}return e.type==="bool"?w.jsx(px,{fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:!!e.value,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="float"||e.type==="int"?w.jsx(zl,{type:e.type,fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value),isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Quantity"?w.jsx(zl,{type:"Quantity",fullAccessPath:r,docString:e.doc,readOnly:e.readonly,value:Number(e.value.magnitude),unit:e.value.unit,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="NumberSlider"?w.jsx(ik,{fullAccessPath:r,docString:e.value.value.doc,readOnly:e.readonly,value:e.value.value,min:e.value.min,max:e.value.max,stepSize:e.value.step_size,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="Enum"||e.type==="ColouredEnum"?w.jsx(sk,{...e,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type==="method"?w.jsx(gm,{fullAccessPath:r,docString:e.doc,addNotification:n,displayName:s,id:o,render:e.frontend_render}):e.type==="str"?w.jsx(ak,{fullAccessPath:r,value:e.value,readOnly:e.readonly,docString:e.doc,isInstantUpdate:t,addNotification:n,changeCallback:yo,displayName:s,id:o}):e.type=="Task"?w.jsx(dk,{fullAccessPath:r,docString:e.doc,status:e.value.status.value,addNotification:n,displayName:s,id:o}):e.type==="DataService"?w.jsx(Sm,{props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="DeviceConnection"?w.jsx(uk,{fullAccessPath:r,props:e.value,isInstantUpdate:t,addNotification:n,displayName:s,id:o}):e.type==="list"?w.jsx(lk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="dict"?w.jsx(fk,{value:e.value,docString:e.doc,isInstantUpdate:t,addNotification:n,id:o}):e.type==="Image"?w.jsx(ck,{fullAccessPath:r,docString:e.value.value.doc,displayName:s,id:o,addNotification:n,value:e.value.value.value,format:e.value.format.value}):w.jsx("div",{children:r},r)});ii.displayName="GenericComponent";const dL=(e,t)=>{switch(t.type){case"SET_DATA":return t.data;case"UPDATE_ATTRIBUTE":return e===null?null:{...e,value:G_(e.value,t.fullAccessPath,t.newValue)};default:throw new Error}},pL=()=>{const[e,t]=h.useReducer(dL,null),[n,r]=h.useState(null),[o,i]=h.useState({}),[s,a]=pp("isInstantUpdate",!1),[l,u]=h.useState(!1),[c,d]=pp("showNotification",!1),[f,v]=h.useState([]),[g,S]=h.useState("connecting");h.useEffect(()=>(fetch(`${Ui}://${Sa}/custom.css`,{credentials:"include"}).then(x=>{if(x.ok){const b=document.createElement("link");b.href=`${Ui}://${Sa}/custom.css`,b.type="text/css",b.rel="stylesheet",document.head.appendChild(b)}}).catch(console.error),Ln.on("connect",()=>{fetch(`${Ui}://${Sa}/service-properties`,{credentials:"include"}).then(x=>x.json()).then(x=>{t({type:"SET_DATA",data:x}),r(x.name),document.title=x.name}),fetch(`${Ui}://${Sa}/web-settings`,{credentials:"include"}).then(x=>x.json()).then(x=>i(x)),S("connected")}),Ln.on("disconnect",()=>{S("disconnected"),setTimeout(()=>{S(x=>x==="disconnected"?"reconnecting":x)},2e3)}),Ln.on("notify",E),Ln.on("log",C),()=>{Ln.off("notify",E),Ln.off("log",C)}),[]);const k=h.useCallback((x,b="DEBUG")=>{const O=new Date().toISOString().substring(11,19),T=Math.random();v($=>[{levelname:b,id:T,message:x,timeStamp:O},...$])},[]),m=x=>{v(b=>b.filter(O=>O.id!==x))},p=()=>u(!1),y=()=>u(!0);function E(x){const{full_access_path:b,value:O}=x.data;t({type:"UPDATE_ATTRIBUTE",fullAccessPath:b,newValue:O})}function C(x){k(x.message,x.levelname)}return e?w.jsxs(w.Fragment,{children:[w.jsx(Xc,{expand:!1,bg:"primary",variant:"dark",fixed:"top",children:w.jsxs(Qw,{fluid:!0,children:[w.jsx(Xc.Brand,{children:n}),w.jsx(Xc.Toggle,{"aria-controls":"offcanvasNavbar",onClick:y})]})}),w.jsx(fx,{showNotification:c,notifications:f,removeNotificationById:m}),w.jsxs(Fi,{show:l,onHide:p,placement:"end",style:{zIndex:9999},children:[w.jsx(Fi.Header,{closeButton:!0,children:w.jsx(Fi.Title,{children:"Settings"})}),w.jsxs(Fi.Body,{children:[w.jsx(ot.Check,{checked:s,onChange:x=>a(x.target.checked),type:"switch",label:"Enable Instant Update"}),w.jsx(ot.Check,{checked:c,onChange:x=>d(x.target.checked),type:"switch",label:"Show Notifications"})]})]}),w.jsx("div",{className:"App navbarOffset",children:w.jsx(jh.Provider,{value:o,children:w.jsx(ii,{attribute:e,isInstantUpdate:s,addNotification:k})})}),w.jsx(jd,{connectionStatus:g})]}):w.jsx(jd,{connectionStatus:g})};var hp={},c0=Nw;hp.createRoot=c0.createRoot,hp.hydrateRoot=c0.hydrateRoot;hp.createRoot(document.getElementById("root")).render(w.jsx(ne.StrictMode,{children:w.jsx(pL,{})}));
diff --git a/src/pydase/frontend/index.html b/src/pydase/frontend/index.html
index 1390959..a8dcc2b 100644
--- a/src/pydase/frontend/index.html
+++ b/src/pydase/frontend/index.html
@@ -6,13 +6,14 @@
-
+
`
diff --git a/src/pydase/server/web_server/web_server.py b/src/pydase/server/web_server/web_server.py
index 3e3b75b..b886f1c 100644
--- a/src/pydase/server/web_server/web_server.py
+++ b/src/pydase/server/web_server/web_server.py
@@ -104,6 +104,21 @@ class WebServer:
async def index(
request: aiohttp.web.Request,
) -> aiohttp.web.Response | aiohttp.web.FileResponse:
+ forwarded_proto = request.headers["X-Forwarded-Proto"]
+ escaped_proto = html.escape(forwarded_proto)
+
+ # Read the index.html file
+ index_file_path = self.frontend_src / "index.html"
+
+ async with await anyio.open_file(index_file_path) as f:
+ html_content = await f.read()
+
+ # Inject the escaped forwarded protocol into the HTML
+ modified_html = html_content.replace(
+ 'window.__FORWARDED_PROTO__ = "";',
+ f'window.__FORWARDED_PROTO__ = "{escaped_proto}";',
+ )
+
# Read the X-Forwarded-Prefix header from the request
forwarded_prefix = request.headers.get("X-Forwarded-Prefix", "")
@@ -111,14 +126,8 @@ class WebServer:
# Escape the forwarded prefix to prevent XSS
escaped_prefix = html.escape(forwarded_prefix)
- # Read the index.html file
- index_file_path = self.frontend_src / "index.html"
-
- async with await anyio.open_file(index_file_path) as f:
- html_content = await f.read()
-
# Inject the escaped forwarded prefix into the HTML
- modified_html = html_content.replace(
+ modified_html = modified_html.replace(
'window.__FORWARDED_PREFIX__ = "";',
f'window.__FORWARDED_PREFIX__ = "{escaped_prefix}";',
)
|