@mui-toolpad-extended-tuni/users 3.1.0 → 3.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -30,7 +30,7 @@
30
30
  *
31
31
  * This source code is licensed under the MIT license found in the
32
32
  * LICENSE file in the root directory of this source tree.
33
- */var Bp;function Xx(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){function e(b,_){return b===_&&(b!==0||1/b===1/_)||b!==b&&_!==_}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=_e,r=Lh(),i=typeof Object.is=="function"?Object.is:e,a=r.useSyncExternalStore,u=n.useRef,l=n.useEffect,f=n.useMemo,p=n.useDebugValue;tl.useSyncExternalStoreWithSelector=function(b,_,T,M,S){var O=u(null);if(O.current===null){var d={hasValue:!1,value:null};O.current=d}else d=O.current;O=f(function(){function w(k){if(!h){if(h=!0,y=k,k=M(k),S!==void 0&&d.hasValue){var j=d.value;if(S(j,k))return C=j}return C=k}if(j=C,i(y,k))return j;var z=M(k);return S!==void 0&&S(j,z)?(y=k,j):(y=k,C=z)}var h=!1,y,C,v=T===void 0?null:T;return[function(){return w(_())},v===null?void 0:function(){return w(v())}]},[_,T,M,S]);var m=a(b,O[0],O[1]);return l(function(){d.hasValue=!0,d.value=m},[m]),p(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),tl}var Vp;function Gx(){return Vp||(Vp=1,process.env.NODE_ENV==="production"?_a.exports=Yx():_a.exports=Xx()),_a.exports}var Jx=Gx();const Kx=Hx(Jx),Zx={},Fp=e=>{let n;const r=new Set,i=(_,T)=>{const M=typeof _=="function"?_(n):_;if(!Object.is(M,n)){const S=n;n=T??(typeof M!="object"||M===null)?M:Object.assign({},n,M),r.forEach(O=>O(n,S))}},a=()=>n,p={setState:i,getState:a,getInitialState:()=>b,subscribe:_=>(r.add(_),()=>r.delete(_)),destroy:()=>{(Zx?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},b=n=e(i,a,p);return p},Qx=e=>e?Fp(e):Fp,{useDebugValue:e1}=_e,{useSyncExternalStoreWithSelector:t1}=Kx,n1=e=>e;function r1(e,n=n1,r){const i=t1(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,r);return e1(i),i}const Hp=(e,n)=>{const r=Qx(e),i=(a,u=n)=>r1(r,a,u);return Object.assign(i,r),i},o1=(e,n)=>e?Hp(e,n):Hp;var i1=Object.defineProperty,a1=(e,n,r)=>n in e?i1(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,on=(e,n,r)=>a1(e,typeof n!="symbol"?n+"":n,r);const Uh=class li{constructor(){on(this,"subscribers",new Set),on(this,"events",new Map)}static getInstance(){return li.instance||(li.instance=new li),li.instance}subscribe(n){return this.subscribers.add(n),n(Array.from(this.events.values())),()=>{this.subscribers.delete(n)}}publish(n,r){Array.from(this.events.keys()).filter(a=>a.startsWith(`${n}:`)).forEach(a=>this.events.delete(a)),r.forEach(a=>{this.events.set(`${n}:${a.id}`,a)});const i=Array.from(this.events.values());this.subscribers.forEach(a=>a(i))}removeSource(n){Array.from(this.events.keys()).filter(i=>i.startsWith(`${n}:`)).forEach(i=>this.events.delete(i));const r=Array.from(this.events.values());this.subscribers.forEach(i=>i(r))}getAllEvents(){return Array.from(this.events.values())}clear(){this.events.clear(),this.subscribers.forEach(n=>n([]))}};on(Uh,"instance");let s1=Uh;s1.getInstance();const Bh=class ci{constructor(){on(this,"subscribers",new Set),on(this,"currentUser",null),on(this,"lastEvent",null),on(this,"storeConfig",null)}configureStore(n){this.storeConfig=n}getStoreConfig(){if(!this.storeConfig)throw new Error("UserBus store not configured. Call configureStore() first.");return this.storeConfig}static getInstance(){return ci.instance||(ci.instance=new ci),ci.instance}subscribe(n){return this.subscribers.add(n),this.lastEvent&&n(this.lastEvent),()=>{this.subscribers.delete(n)}}publish(n){this.lastEvent=n,n.user?this.currentUser=n.user:n.type==="user:loggedOut"&&(this.currentUser=null),this.subscribers.forEach(r=>r(n))}getCurrentUser(){return this.currentUser}getCurrentUserSync(){return this.currentUser}subscribeToUser(n){return n(this.currentUser),this.subscribe(r=>{n(r.user)})}getLastEvent(){return this.lastEvent}clear(){this.currentUser=null,this.lastEvent=null,this.subscribers.forEach(n=>n({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()}))}initializeFromStore(){const n=this.getStoreConfig().getState();n.user&&!this.currentUser&&(this.currentUser=n.user,this.publish({type:"user:loggedIn",user:n.user,timestamp:new Date().toISOString()}))}async getUser(){await this.getStoreConfig().getUser()}async updateUser(n){const r=this.getStoreConfig(),i=r.getState().user,a=await r.updateUser(n);return this.publish({type:"user:updated",user:a,timestamp:new Date().toISOString(),metadata:{previousUser:i}}),a}setUserToUpdate(n){this.getStoreConfig().setUserToUpdate(n)}async fetchCourseUsers(n){await this.getStoreConfig().fetchCourseUsers(n)}getCourseUsers(){return this.getStoreConfig().getState().courseUsers}async logout(){await this.getStoreConfig().logout(),this.publish({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()})}};on(Bh,"instance");let u1=Bh;u1.getInstance();var Ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var nl={exports:{}},Xo={};/**
33
+ */var Bp;function Xx(){return Bp||(Bp=1,process.env.NODE_ENV!=="production"&&function(){function e(b,_){return b===_&&(b!==0||1/b===1/_)||b!==b&&_!==_}typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());var n=_e,r=Lh(),i=typeof Object.is=="function"?Object.is:e,a=r.useSyncExternalStore,u=n.useRef,l=n.useEffect,f=n.useMemo,p=n.useDebugValue;tl.useSyncExternalStoreWithSelector=function(b,_,T,M,S){var O=u(null);if(O.current===null){var d={hasValue:!1,value:null};O.current=d}else d=O.current;O=f(function(){function w(k){if(!h){if(h=!0,y=k,k=M(k),S!==void 0&&d.hasValue){var j=d.value;if(S(j,k))return C=j}return C=k}if(j=C,i(y,k))return j;var z=M(k);return S!==void 0&&S(j,z)?(y=k,j):(y=k,C=z)}var h=!1,y,C,v=T===void 0?null:T;return[function(){return w(_())},v===null?void 0:function(){return w(v())}]},[_,T,M,S]);var m=a(b,O[0],O[1]);return l(function(){d.hasValue=!0,d.value=m},[m]),p(m),m},typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error())}()),tl}var Vp;function Gx(){return Vp||(Vp=1,process.env.NODE_ENV==="production"?_a.exports=Yx():_a.exports=Xx()),_a.exports}var Jx=Gx();const Kx=Hx(Jx),Zx={},Fp=e=>{let n;const r=new Set,i=(_,T)=>{const M=typeof _=="function"?_(n):_;if(!Object.is(M,n)){const S=n;n=T??(typeof M!="object"||M===null)?M:Object.assign({},n,M),r.forEach(O=>O(n,S))}},a=()=>n,p={setState:i,getState:a,getInitialState:()=>b,subscribe:_=>(r.add(_),()=>r.delete(_)),destroy:()=>{(Zx?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),r.clear()}},b=n=e(i,a,p);return p},Qx=e=>e?Fp(e):Fp,{useDebugValue:e1}=_e,{useSyncExternalStoreWithSelector:t1}=Kx,n1=e=>e;function r1(e,n=n1,r){const i=t1(e.subscribe,e.getState,e.getServerState||e.getInitialState,n,r);return e1(i),i}const Hp=(e,n)=>{const r=Qx(e),i=(a,u=n)=>r1(r,a,u);return Object.assign(i,r),i},o1=(e,n)=>e?Hp(e,n):Hp;var i1=Object.defineProperty,a1=(e,n,r)=>n in e?i1(e,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[n]=r,on=(e,n,r)=>a1(e,typeof n!="symbol"?n+"":n,r);const Uh=class fi{constructor(){on(this,"subscribers",new Set),on(this,"events",new Map)}static getInstance(){return fi.instance||(fi.instance=new fi),fi.instance}subscribe(n){return this.subscribers.add(n),n(Array.from(this.events.values())),()=>{this.subscribers.delete(n)}}publish(n,r){Array.from(this.events.keys()).filter(a=>a.startsWith(`${n}:`)).forEach(a=>this.events.delete(a)),r.forEach(a=>{this.events.set(`${n}:${a.id}`,a)});const i=Array.from(this.events.values());this.subscribers.forEach(a=>a(i))}removeSource(n){Array.from(this.events.keys()).filter(i=>i.startsWith(`${n}:`)).forEach(i=>this.events.delete(i));const r=Array.from(this.events.values());this.subscribers.forEach(i=>i(r))}getAllEvents(){return Array.from(this.events.values())}clear(){this.events.clear(),this.subscribers.forEach(n=>n([]))}};on(Uh,"instance");let s1=Uh;s1.getInstance();const Bh=class pi{constructor(){on(this,"subscribers",new Set),on(this,"currentUser",null),on(this,"lastEvent",null),on(this,"storeConfig",null)}configureStore(n){this.storeConfig=n}getStoreConfig(){if(!this.storeConfig)throw new Error("UserBus store not configured. Call configureStore() first.");return this.storeConfig}static getInstance(){return pi.instance||(pi.instance=new pi),pi.instance}subscribe(n){return this.subscribers.add(n),this.lastEvent&&n(this.lastEvent),()=>{this.subscribers.delete(n)}}publish(n){this.lastEvent=n,n.user?this.currentUser=n.user:n.type==="user:loggedOut"&&(this.currentUser=null),this.subscribers.forEach(r=>r(n))}getCurrentUser(){return this.currentUser}getCurrentUserSync(){return this.currentUser}subscribeToUser(n){return n(this.currentUser),this.subscribe(r=>{n(r.user)})}getLastEvent(){return this.lastEvent}clear(){this.currentUser=null,this.lastEvent=null,this.subscribers.forEach(n=>n({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()}))}initializeFromStore(){const n=this.getStoreConfig().getState();n.user&&!this.currentUser&&(this.currentUser=n.user,this.publish({type:"user:loggedIn",user:n.user,timestamp:new Date().toISOString()}))}async getUser(){await this.getStoreConfig().getUser()}async updateUser(n){const r=this.getStoreConfig(),i=r.getState().user,a=await r.updateUser(n);return this.publish({type:"user:updated",user:a,timestamp:new Date().toISOString(),metadata:{previousUser:i}}),a}setUserToUpdate(n){this.getStoreConfig().setUserToUpdate(n)}async fetchCourseUsers(n){await this.getStoreConfig().fetchCourseUsers(n)}getCourseUsers(){return this.getStoreConfig().getState().courseUsers}async logout(){await this.getStoreConfig().logout(),this.publish({type:"user:loggedOut",user:null,timestamp:new Date().toISOString()})}};on(Bh,"instance");let u1=Bh;u1.getInstance();var Ea=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function l1(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vh(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var n=e.default;if(typeof n=="function"){var r=function i(){return this instanceof i?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};r.prototype=n.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(i){var a=Object.getOwnPropertyDescriptor(e,i);Object.defineProperty(r,i,a.get?a:{enumerable:!0,get:function(){return e[i]}})}),r}var nl={exports:{}},Jo={};/**
34
34
  * @license React
35
35
  * react-jsx-runtime.production.js
36
36
  *
@@ -38,7 +38,7 @@
38
38
  *
39
39
  * This source code is licensed under the MIT license found in the
40
40
  * LICENSE file in the root directory of this source tree.
41
- */var Wp;function c1(){if(Wp)return Xo;Wp=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,a,u){var l=null;if(u!==void 0&&(l=""+u),a.key!==void 0&&(l=""+a.key),"key"in a){u={};for(var f in a)f!=="key"&&(u[f]=a[f])}else u=a;return a=u.ref,{$$typeof:e,type:i,key:l,ref:a!==void 0?a:null,props:u}}return Xo.Fragment=n,Xo.jsx=r,Xo.jsxs=r,Xo}var Ca={};/**
41
+ */var Wp;function c1(){if(Wp)return Jo;Wp=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,a,u){var l=null;if(u!==void 0&&(l=""+u),a.key!==void 0&&(l=""+a.key),"key"in a){u={};for(var f in a)f!=="key"&&(u[f]=a[f])}else u=a;return a=u.ref,{$$typeof:e,type:i,key:l,ref:a!==void 0?a:null,props:u}}return Jo.Fragment=n,Jo.jsx=r,Jo.jsxs=r,Jo}var Ca={};/**
42
42
  * @license React
43
43
  * react-jsx-runtime.development.js
44
44
  *
@@ -58,9 +58,9 @@ React keys must be passed directly to JSX without using spread:
58
58
  * Released under MIT license <https://lodash.com/license>
59
59
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
60
60
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
61
- */var w1=Fa.exports,Zp;function S1(){return Zp||(Zp=1,function(e,n){(function(){var r,i="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",b=500,_="__lodash_placeholder__",T=1,M=2,S=4,O=1,d=2,m=1,w=2,h=4,y=8,C=16,v=32,k=64,j=128,z=256,F=512,X=30,Y="...",E=800,V=16,U=1,Q=2,Z=3,ue=1/0,ce=9007199254740991,de=17976931348623157e292,G=NaN,P=4294967295,K=P-1,se=P>>>1,ie=[["ary",j],["bind",m],["bindKey",w],["curry",y],["curryRight",C],["flip",F],["partial",v],["partialRight",k],["rearg",z]],ve="[object Arguments]",be="[object Array]",N="[object AsyncFunction]",A="[object Boolean]",I="[object Date]",q="[object DOMException]",ae="[object Error]",W="[object Function]",pe="[object GeneratorFunction]",he="[object Map]",Oe="[object Number]",Ee="[object Null]",fe="[object Object]",ge="[object Promise]",Se="[object Proxy]",je="[object RegExp]",ye="[object Set]",yt="[object String]",Fe="[object Symbol]",jn="[object Undefined]",qt="[object WeakMap]",Jn="[object WeakSet]",yn="[object ArrayBuffer]",Et="[object DataView]",br="[object Float32Array]",St="[object Float64Array]",kn="[object Int8Array]",fn="[object Int16Array]",Yt="[object Int32Array]",jo="[object Uint8Array]",wr="[object Uint8ClampedArray]",ko="[object Uint16Array]",Kn="[object Uint32Array]",As=/\b__p \+= '';/g,Ns=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,Ai=/[&<>"']/g,$s=RegExp(Mi.source),Is=RegExp(Ai.source),Ls=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Dt=/<%=([\s\S]+?)%>/g,Sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yg=/^\w*$/,vg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Us=/[\\^$.*+?()[\]{}|]/g,bg=RegExp(Us.source),Bs=/^\s+/,wg=/\s/,Sg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xg=/\{\n\/\* \[wrapped with (.+)\] \*/,_g=/,? & /,Og=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Eg=/[()=,{}\[\]\/\s]/,Cg=/\\(\\)?/g,Rg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cc=/\w*$/,Tg=/^[-+]0x[0-9a-f]+$/i,Pg=/^0b[01]+$/i,Dg=/^\[object .+?Constructor\]$/,jg=/^0o[0-7]+$/i,kg=/^(?:0|[1-9]\d*)$/,Mg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ni=/($^)/,Ag=/['\n\r\u2028\u2029\\]/g,zi="\\ud800-\\udfff",Ng="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",$g="\\u20d0-\\u20ff",fc=Ng+zg+$g,pc="\\u2700-\\u27bf",dc="a-z\\xdf-\\xf6\\xf8-\\xff",Ig="\\xac\\xb1\\xd7\\xf7",Lg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ug="\\u2000-\\u206f",Bg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hc="A-Z\\xc0-\\xd6\\xd8-\\xde",mc="\\ufe0e\\ufe0f",gc=Ig+Lg+Ug+Bg,Vs="['’]",Vg="["+zi+"]",yc="["+gc+"]",$i="["+fc+"]",vc="\\d+",Fg="["+pc+"]",bc="["+dc+"]",wc="[^"+zi+gc+vc+pc+dc+hc+"]",Fs="\\ud83c[\\udffb-\\udfff]",Hg="(?:"+$i+"|"+Fs+")",Sc="[^"+zi+"]",Hs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ws="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="["+hc+"]",xc="\\u200d",_c="(?:"+bc+"|"+wc+")",Wg="(?:"+qr+"|"+wc+")",Oc="(?:"+Vs+"(?:d|ll|m|re|s|t|ve))?",Ec="(?:"+Vs+"(?:D|LL|M|RE|S|T|VE))?",Cc=Hg+"?",Rc="["+mc+"]?",qg="(?:"+xc+"(?:"+[Sc,Hs,Ws].join("|")+")"+Rc+Cc+")*",Yg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tc=Rc+Cc+qg,Gg="(?:"+[Fg,Hs,Ws].join("|")+")"+Tc,Jg="(?:"+[Sc+$i+"?",$i,Hs,Ws,Vg].join("|")+")",Kg=RegExp(Vs,"g"),Zg=RegExp($i,"g"),qs=RegExp(Fs+"(?="+Fs+")|"+Jg+Tc,"g"),Qg=RegExp([qr+"?"+bc+"+"+Oc+"(?="+[yc,qr,"$"].join("|")+")",Wg+"+"+Ec+"(?="+[yc,qr+_c,"$"].join("|")+")",qr+"?"+_c+"+"+Oc,qr+"+"+Ec,Xg,Yg,vc,Gg].join("|"),"g"),ey=RegExp("["+xc+zi+fc+mc+"]"),ty=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ny=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ry=-1,nt={};nt[br]=nt[St]=nt[kn]=nt[fn]=nt[Yt]=nt[jo]=nt[wr]=nt[ko]=nt[Kn]=!0,nt[ve]=nt[be]=nt[yn]=nt[A]=nt[Et]=nt[I]=nt[ae]=nt[W]=nt[he]=nt[Oe]=nt[fe]=nt[je]=nt[ye]=nt[yt]=nt[qt]=!1;var Qe={};Qe[ve]=Qe[be]=Qe[yn]=Qe[Et]=Qe[A]=Qe[I]=Qe[br]=Qe[St]=Qe[kn]=Qe[fn]=Qe[Yt]=Qe[he]=Qe[Oe]=Qe[fe]=Qe[je]=Qe[ye]=Qe[yt]=Qe[Fe]=Qe[jo]=Qe[wr]=Qe[ko]=Qe[Kn]=!0,Qe[ae]=Qe[W]=Qe[qt]=!1;var oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ay={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},sy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uy=parseFloat,ly=parseInt,Pc=typeof Ea=="object"&&Ea&&Ea.Object===Object&&Ea,cy=typeof self=="object"&&self&&self.Object===Object&&self,bt=Pc||cy||Function("return this")(),Ys=n&&!n.nodeType&&n,xr=Ys&&!0&&e&&!e.nodeType&&e,Dc=xr&&xr.exports===Ys,Xs=Dc&&Pc.process,Xt=function(){try{var B=xr&&xr.require&&xr.require("util").types;return B||Xs&&Xs.binding&&Xs.binding("util")}catch{}}(),jc=Xt&&Xt.isArrayBuffer,kc=Xt&&Xt.isDate,Mc=Xt&&Xt.isMap,Ac=Xt&&Xt.isRegExp,Nc=Xt&&Xt.isSet,zc=Xt&&Xt.isTypedArray;function $t(B,te,J){switch(J.length){case 0:return B.call(te);case 1:return B.call(te,J[0]);case 2:return B.call(te,J[0],J[1]);case 3:return B.call(te,J[0],J[1],J[2])}return B.apply(te,J)}function fy(B,te,J,we){for(var De=-1,Ve=B==null?0:B.length;++De<Ve;){var mt=B[De];te(we,mt,J(mt),B)}return we}function Gt(B,te){for(var J=-1,we=B==null?0:B.length;++J<we&&te(B[J],J,B)!==!1;);return B}function py(B,te){for(var J=B==null?0:B.length;J--&&te(B[J],J,B)!==!1;);return B}function $c(B,te){for(var J=-1,we=B==null?0:B.length;++J<we;)if(!te(B[J],J,B))return!1;return!0}function Zn(B,te){for(var J=-1,we=B==null?0:B.length,De=0,Ve=[];++J<we;){var mt=B[J];te(mt,J,B)&&(Ve[De++]=mt)}return Ve}function Ii(B,te){var J=B==null?0:B.length;return!!J&&Yr(B,te,0)>-1}function Gs(B,te,J){for(var we=-1,De=B==null?0:B.length;++we<De;)if(J(te,B[we]))return!0;return!1}function rt(B,te){for(var J=-1,we=B==null?0:B.length,De=Array(we);++J<we;)De[J]=te(B[J],J,B);return De}function Qn(B,te){for(var J=-1,we=te.length,De=B.length;++J<we;)B[De+J]=te[J];return B}function Js(B,te,J,we){var De=-1,Ve=B==null?0:B.length;for(we&&Ve&&(J=B[++De]);++De<Ve;)J=te(J,B[De],De,B);return J}function dy(B,te,J,we){var De=B==null?0:B.length;for(we&&De&&(J=B[--De]);De--;)J=te(J,B[De],De,B);return J}function Ks(B,te){for(var J=-1,we=B==null?0:B.length;++J<we;)if(te(B[J],J,B))return!0;return!1}var hy=Zs("length");function my(B){return B.split("")}function gy(B){return B.match(Og)||[]}function Ic(B,te,J){var we;return J(B,function(De,Ve,mt){if(te(De,Ve,mt))return we=Ve,!1}),we}function Li(B,te,J,we){for(var De=B.length,Ve=J+(we?1:-1);we?Ve--:++Ve<De;)if(te(B[Ve],Ve,B))return Ve;return-1}function Yr(B,te,J){return te===te?Ty(B,te,J):Li(B,Lc,J)}function yy(B,te,J,we){for(var De=J-1,Ve=B.length;++De<Ve;)if(we(B[De],te))return De;return-1}function Lc(B){return B!==B}function Uc(B,te){var J=B==null?0:B.length;return J?eu(B,te)/J:G}function Zs(B){return function(te){return te==null?r:te[B]}}function Qs(B){return function(te){return B==null?r:B[te]}}function Bc(B,te,J,we,De){return De(B,function(Ve,mt,Ke){J=we?(we=!1,Ve):te(J,Ve,mt,Ke)}),J}function vy(B,te){var J=B.length;for(B.sort(te);J--;)B[J]=B[J].value;return B}function eu(B,te){for(var J,we=-1,De=B.length;++we<De;){var Ve=te(B[we]);Ve!==r&&(J=J===r?Ve:J+Ve)}return J}function tu(B,te){for(var J=-1,we=Array(B);++J<B;)we[J]=te(J);return we}function by(B,te){return rt(te,function(J){return[J,B[J]]})}function Vc(B){return B&&B.slice(0,qc(B)+1).replace(Bs,"")}function It(B){return function(te){return B(te)}}function nu(B,te){return rt(te,function(J){return B[J]})}function Mo(B,te){return B.has(te)}function Fc(B,te){for(var J=-1,we=B.length;++J<we&&Yr(te,B[J],0)>-1;);return J}function Hc(B,te){for(var J=B.length;J--&&Yr(te,B[J],0)>-1;);return J}function wy(B,te){for(var J=B.length,we=0;J--;)B[J]===te&&++we;return we}var Sy=Qs(oy),xy=Qs(iy);function _y(B){return"\\"+sy[B]}function Oy(B,te){return B==null?r:B[te]}function Xr(B){return ey.test(B)}function Ey(B){return ty.test(B)}function Cy(B){for(var te,J=[];!(te=B.next()).done;)J.push(te.value);return J}function ru(B){var te=-1,J=Array(B.size);return B.forEach(function(we,De){J[++te]=[De,we]}),J}function Wc(B,te){return function(J){return B(te(J))}}function er(B,te){for(var J=-1,we=B.length,De=0,Ve=[];++J<we;){var mt=B[J];(mt===te||mt===_)&&(B[J]=_,Ve[De++]=J)}return Ve}function Ui(B){var te=-1,J=Array(B.size);return B.forEach(function(we){J[++te]=we}),J}function Ry(B){var te=-1,J=Array(B.size);return B.forEach(function(we){J[++te]=[we,we]}),J}function Ty(B,te,J){for(var we=J-1,De=B.length;++we<De;)if(B[we]===te)return we;return-1}function Py(B,te,J){for(var we=J+1;we--;)if(B[we]===te)return we;return we}function Gr(B){return Xr(B)?jy(B):hy(B)}function pn(B){return Xr(B)?ky(B):my(B)}function qc(B){for(var te=B.length;te--&&wg.test(B.charAt(te)););return te}var Dy=Qs(ay);function jy(B){for(var te=qs.lastIndex=0;qs.test(B);)++te;return te}function ky(B){return B.match(qs)||[]}function My(B){return B.match(Qg)||[]}var Ay=function B(te){te=te==null?bt:Jr.defaults(bt.Object(),te,Jr.pick(bt,ny));var J=te.Array,we=te.Date,De=te.Error,Ve=te.Function,mt=te.Math,Ke=te.Object,ou=te.RegExp,Ny=te.String,Jt=te.TypeError,Bi=J.prototype,zy=Ve.prototype,Kr=Ke.prototype,Vi=te["__core-js_shared__"],Fi=zy.toString,qe=Kr.hasOwnProperty,$y=0,Yc=function(){var t=/[^.]+$/.exec(Vi&&Vi.keys&&Vi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Hi=Kr.toString,Iy=Fi.call(Ke),Ly=bt._,Uy=ou("^"+Fi.call(qe).replace(Us,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wi=Dc?te.Buffer:r,tr=te.Symbol,qi=te.Uint8Array,Xc=Wi?Wi.allocUnsafe:r,Yi=Wc(Ke.getPrototypeOf,Ke),Gc=Ke.create,Jc=Kr.propertyIsEnumerable,Xi=Bi.splice,Kc=tr?tr.isConcatSpreadable:r,Ao=tr?tr.iterator:r,_r=tr?tr.toStringTag:r,Gi=function(){try{var t=Tr(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),By=te.clearTimeout!==bt.clearTimeout&&te.clearTimeout,Vy=we&&we.now!==bt.Date.now&&we.now,Fy=te.setTimeout!==bt.setTimeout&&te.setTimeout,Ji=mt.ceil,Ki=mt.floor,iu=Ke.getOwnPropertySymbols,Hy=Wi?Wi.isBuffer:r,Zc=te.isFinite,Wy=Bi.join,qy=Wc(Ke.keys,Ke),gt=mt.max,xt=mt.min,Yy=we.now,Xy=te.parseInt,Qc=mt.random,Gy=Bi.reverse,au=Tr(te,"DataView"),No=Tr(te,"Map"),su=Tr(te,"Promise"),Zr=Tr(te,"Set"),zo=Tr(te,"WeakMap"),$o=Tr(Ke,"create"),Zi=zo&&new zo,Qr={},Jy=Pr(au),Ky=Pr(No),Zy=Pr(su),Qy=Pr(Zr),ev=Pr(zo),Qi=tr?tr.prototype:r,Io=Qi?Qi.valueOf:r,ef=Qi?Qi.toString:r;function R(t){if(st(t)&&!ke(t)&&!(t instanceof Ie)){if(t instanceof Kt)return t;if(qe.call(t,"__wrapped__"))return np(t)}return new Kt(t)}var eo=function(){function t(){}return function(o){if(!it(o))return{};if(Gc)return Gc(o);t.prototype=o;var s=new t;return t.prototype=r,s}}();function ea(){}function Kt(t,o){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}R.templateSettings={escape:Ls,evaluate:Me,interpolate:Dt,variable:"",imports:{_:R}},R.prototype=ea.prototype,R.prototype.constructor=R,Kt.prototype=eo(ea.prototype),Kt.prototype.constructor=Kt;function Ie(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=P,this.__views__=[]}function tv(){var t=new Ie(this.__wrapped__);return t.__actions__=jt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=jt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=jt(this.__views__),t}function nv(){if(this.__filtered__){var t=new Ie(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function rv(){var t=this.__wrapped__.value(),o=this.__dir__,s=ke(t),c=o<0,x=s?t.length:0,D=mb(0,x,this.__views__),$=D.start,L=D.end,H=L-$,ne=c?L:$-1,oe=this.__iteratees__,le=oe.length,me=0,xe=xt(H,this.__takeCount__);if(!s||!c&&x==H&&xe==H)return Ef(t,this.__actions__);var Re=[];e:for(;H--&&me<xe;){ne+=o;for(var Ne=-1,Te=t[ne];++Ne<le;){var $e=oe[Ne],Le=$e.iteratee,Bt=$e.type,Tt=Le(Te);if(Bt==Q)Te=Tt;else if(!Tt){if(Bt==U)continue e;break e}}Re[me++]=Te}return Re}Ie.prototype=eo(ea.prototype),Ie.prototype.constructor=Ie;function Or(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o<s;){var c=t[o];this.set(c[0],c[1])}}function ov(){this.__data__=$o?$o(null):{},this.size=0}function iv(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}function av(t){var o=this.__data__;if($o){var s=o[t];return s===p?r:s}return qe.call(o,t)?o[t]:r}function sv(t){var o=this.__data__;return $o?o[t]!==r:qe.call(o,t)}function uv(t,o){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=$o&&o===r?p:o,this}Or.prototype.clear=ov,Or.prototype.delete=iv,Or.prototype.get=av,Or.prototype.has=sv,Or.prototype.set=uv;function Mn(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o<s;){var c=t[o];this.set(c[0],c[1])}}function lv(){this.__data__=[],this.size=0}function cv(t){var o=this.__data__,s=ta(o,t);if(s<0)return!1;var c=o.length-1;return s==c?o.pop():Xi.call(o,s,1),--this.size,!0}function fv(t){var o=this.__data__,s=ta(o,t);return s<0?r:o[s][1]}function pv(t){return ta(this.__data__,t)>-1}function dv(t,o){var s=this.__data__,c=ta(s,t);return c<0?(++this.size,s.push([t,o])):s[c][1]=o,this}Mn.prototype.clear=lv,Mn.prototype.delete=cv,Mn.prototype.get=fv,Mn.prototype.has=pv,Mn.prototype.set=dv;function An(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o<s;){var c=t[o];this.set(c[0],c[1])}}function hv(){this.size=0,this.__data__={hash:new Or,map:new(No||Mn),string:new Or}}function mv(t){var o=da(this,t).delete(t);return this.size-=o?1:0,o}function gv(t){return da(this,t).get(t)}function yv(t){return da(this,t).has(t)}function vv(t,o){var s=da(this,t),c=s.size;return s.set(t,o),this.size+=s.size==c?0:1,this}An.prototype.clear=hv,An.prototype.delete=mv,An.prototype.get=gv,An.prototype.has=yv,An.prototype.set=vv;function Er(t){var o=-1,s=t==null?0:t.length;for(this.__data__=new An;++o<s;)this.add(t[o])}function bv(t){return this.__data__.set(t,p),this}function wv(t){return this.__data__.has(t)}Er.prototype.add=Er.prototype.push=bv,Er.prototype.has=wv;function dn(t){var o=this.__data__=new Mn(t);this.size=o.size}function Sv(){this.__data__=new Mn,this.size=0}function xv(t){var o=this.__data__,s=o.delete(t);return this.size=o.size,s}function _v(t){return this.__data__.get(t)}function Ov(t){return this.__data__.has(t)}function Ev(t,o){var s=this.__data__;if(s instanceof Mn){var c=s.__data__;if(!No||c.length<a-1)return c.push([t,o]),this.size=++s.size,this;s=this.__data__=new An(c)}return s.set(t,o),this.size=s.size,this}dn.prototype.clear=Sv,dn.prototype.delete=xv,dn.prototype.get=_v,dn.prototype.has=Ov,dn.prototype.set=Ev;function tf(t,o){var s=ke(t),c=!s&&Dr(t),x=!s&&!c&&ar(t),D=!s&&!c&&!x&&oo(t),$=s||c||x||D,L=$?tu(t.length,Ny):[],H=L.length;for(var ne in t)(o||qe.call(t,ne))&&!($&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||D&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||In(ne,H)))&&L.push(ne);return L}function nf(t){var o=t.length;return o?t[vu(0,o-1)]:r}function Cv(t,o){return ha(jt(t),Cr(o,0,t.length))}function Rv(t){return ha(jt(t))}function uu(t,o,s){(s!==r&&!hn(t[o],s)||s===r&&!(o in t))&&Nn(t,o,s)}function Lo(t,o,s){var c=t[o];(!(qe.call(t,o)&&hn(c,s))||s===r&&!(o in t))&&Nn(t,o,s)}function ta(t,o){for(var s=t.length;s--;)if(hn(t[s][0],o))return s;return-1}function Tv(t,o,s,c){return nr(t,function(x,D,$){o(c,x,s(x),$)}),c}function rf(t,o){return t&&bn(o,vt(o),t)}function Pv(t,o){return t&&bn(o,Mt(o),t)}function Nn(t,o,s){o=="__proto__"&&Gi?Gi(t,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[o]=s}function lu(t,o){for(var s=-1,c=o.length,x=J(c),D=t==null;++s<c;)x[s]=D?r:Fu(t,o[s]);return x}function Cr(t,o,s){return t===t&&(s!==r&&(t=t<=s?t:s),o!==r&&(t=t>=o?t:o)),t}function Zt(t,o,s,c,x,D){var $,L=o&T,H=o&M,ne=o&S;if(s&&($=x?s(t,c,x,D):s(t)),$!==r)return $;if(!it(t))return t;var oe=ke(t);if(oe){if($=yb(t),!L)return jt(t,$)}else{var le=_t(t),me=le==W||le==pe;if(ar(t))return Tf(t,L);if(le==fe||le==ve||me&&!x){if($=H||me?{}:Yf(t),!L)return H?ab(t,Pv($,t)):ib(t,rf($,t))}else{if(!Qe[le])return x?t:{};$=vb(t,le,L)}}D||(D=new dn);var xe=D.get(t);if(xe)return xe;D.set(t,$),xp(t)?t.forEach(function(Te){$.add(Zt(Te,o,s,Te,t,D))}):wp(t)&&t.forEach(function(Te,$e){$.set($e,Zt(Te,o,s,$e,t,D))});var Re=ne?H?Pu:Tu:H?Mt:vt,Ne=oe?r:Re(t);return Gt(Ne||t,function(Te,$e){Ne&&($e=Te,Te=t[$e]),Lo($,$e,Zt(Te,o,s,$e,t,D))}),$}function Dv(t){var o=vt(t);return function(s){return of(s,t,o)}}function of(t,o,s){var c=s.length;if(t==null)return!c;for(t=Ke(t);c--;){var x=s[c],D=o[x],$=t[x];if($===r&&!(x in t)||!D($))return!1}return!0}function af(t,o,s){if(typeof t!="function")throw new Jt(l);return qo(function(){t.apply(r,s)},o)}function Uo(t,o,s,c){var x=-1,D=Ii,$=!0,L=t.length,H=[],ne=o.length;if(!L)return H;s&&(o=rt(o,It(s))),c?(D=Gs,$=!1):o.length>=a&&(D=Mo,$=!1,o=new Er(o));e:for(;++x<L;){var oe=t[x],le=s==null?oe:s(oe);if(oe=c||oe!==0?oe:0,$&&le===le){for(var me=ne;me--;)if(o[me]===le)continue e;H.push(oe)}else D(o,le,c)||H.push(oe)}return H}var nr=Mf(vn),sf=Mf(fu,!0);function jv(t,o){var s=!0;return nr(t,function(c,x,D){return s=!!o(c,x,D),s}),s}function na(t,o,s){for(var c=-1,x=t.length;++c<x;){var D=t[c],$=o(D);if($!=null&&(L===r?$===$&&!Ut($):s($,L)))var L=$,H=D}return H}function kv(t,o,s,c){var x=t.length;for(s=Ae(s),s<0&&(s=-s>x?0:x+s),c=c===r||c>x?x:Ae(c),c<0&&(c+=x),c=s>c?0:Op(c);s<c;)t[s++]=o;return t}function uf(t,o){var s=[];return nr(t,function(c,x,D){o(c,x,D)&&s.push(c)}),s}function wt(t,o,s,c,x){var D=-1,$=t.length;for(s||(s=wb),x||(x=[]);++D<$;){var L=t[D];o>0&&s(L)?o>1?wt(L,o-1,s,c,x):Qn(x,L):c||(x[x.length]=L)}return x}var cu=Af(),lf=Af(!0);function vn(t,o){return t&&cu(t,o,vt)}function fu(t,o){return t&&lf(t,o,vt)}function ra(t,o){return Zn(o,function(s){return Ln(t[s])})}function Rr(t,o){o=or(o,t);for(var s=0,c=o.length;t!=null&&s<c;)t=t[wn(o[s++])];return s&&s==c?t:r}function cf(t,o,s){var c=o(t);return ke(t)?c:Qn(c,s(t))}function Ct(t){return t==null?t===r?jn:Ee:_r&&_r in Ke(t)?hb(t):Rb(t)}function pu(t,o){return t>o}function Mv(t,o){return t!=null&&qe.call(t,o)}function Av(t,o){return t!=null&&o in Ke(t)}function Nv(t,o,s){return t>=xt(o,s)&&t<gt(o,s)}function du(t,o,s){for(var c=s?Gs:Ii,x=t[0].length,D=t.length,$=D,L=J(D),H=1/0,ne=[];$--;){var oe=t[$];$&&o&&(oe=rt(oe,It(o))),H=xt(oe.length,H),L[$]=!s&&(o||x>=120&&oe.length>=120)?new Er($&&oe):r}oe=t[0];var le=-1,me=L[0];e:for(;++le<x&&ne.length<H;){var xe=oe[le],Re=o?o(xe):xe;if(xe=s||xe!==0?xe:0,!(me?Mo(me,Re):c(ne,Re,s))){for($=D;--$;){var Ne=L[$];if(!(Ne?Mo(Ne,Re):c(t[$],Re,s)))continue e}me&&me.push(Re),ne.push(xe)}}return ne}function zv(t,o,s,c){return vn(t,function(x,D,$){o(c,s(x),D,$)}),c}function Bo(t,o,s){o=or(o,t),t=Kf(t,o);var c=t==null?t:t[wn(en(o))];return c==null?r:$t(c,t,s)}function ff(t){return st(t)&&Ct(t)==ve}function $v(t){return st(t)&&Ct(t)==yn}function Iv(t){return st(t)&&Ct(t)==I}function Vo(t,o,s,c,x){return t===o?!0:t==null||o==null||!st(t)&&!st(o)?t!==t&&o!==o:Lv(t,o,s,c,Vo,x)}function Lv(t,o,s,c,x,D){var $=ke(t),L=ke(o),H=$?be:_t(t),ne=L?be:_t(o);H=H==ve?fe:H,ne=ne==ve?fe:ne;var oe=H==fe,le=ne==fe,me=H==ne;if(me&&ar(t)){if(!ar(o))return!1;$=!0,oe=!1}if(me&&!oe)return D||(D=new dn),$||oo(t)?Hf(t,o,s,c,x,D):pb(t,o,H,s,c,x,D);if(!(s&O)){var xe=oe&&qe.call(t,"__wrapped__"),Re=le&&qe.call(o,"__wrapped__");if(xe||Re){var Ne=xe?t.value():t,Te=Re?o.value():o;return D||(D=new dn),x(Ne,Te,s,c,D)}}return me?(D||(D=new dn),db(t,o,s,c,x,D)):!1}function Uv(t){return st(t)&&_t(t)==he}function hu(t,o,s,c){var x=s.length,D=x,$=!c;if(t==null)return!D;for(t=Ke(t);x--;){var L=s[x];if($&&L[2]?L[1]!==t[L[0]]:!(L[0]in t))return!1}for(;++x<D;){L=s[x];var H=L[0],ne=t[H],oe=L[1];if($&&L[2]){if(ne===r&&!(H in t))return!1}else{var le=new dn;if(c)var me=c(ne,oe,H,t,o,le);if(!(me===r?Vo(oe,ne,O|d,c,le):me))return!1}}return!0}function pf(t){if(!it(t)||xb(t))return!1;var o=Ln(t)?Uy:Dg;return o.test(Pr(t))}function Bv(t){return st(t)&&Ct(t)==je}function Vv(t){return st(t)&&_t(t)==ye}function Fv(t){return st(t)&&wa(t.length)&&!!nt[Ct(t)]}function df(t){return typeof t=="function"?t:t==null?At:typeof t=="object"?ke(t)?gf(t[0],t[1]):mf(t):Np(t)}function mu(t){if(!Wo(t))return qy(t);var o=[];for(var s in Ke(t))qe.call(t,s)&&s!="constructor"&&o.push(s);return o}function Hv(t){if(!it(t))return Cb(t);var o=Wo(t),s=[];for(var c in t)c=="constructor"&&(o||!qe.call(t,c))||s.push(c);return s}function gu(t,o){return t<o}function hf(t,o){var s=-1,c=kt(t)?J(t.length):[];return nr(t,function(x,D,$){c[++s]=o(x,D,$)}),c}function mf(t){var o=ju(t);return o.length==1&&o[0][2]?Gf(o[0][0],o[0][1]):function(s){return s===t||hu(s,t,o)}}function gf(t,o){return Mu(t)&&Xf(o)?Gf(wn(t),o):function(s){var c=Fu(s,t);return c===r&&c===o?Hu(s,t):Vo(o,c,O|d)}}function oa(t,o,s,c,x){t!==o&&cu(o,function(D,$){if(x||(x=new dn),it(D))Wv(t,o,$,s,oa,c,x);else{var L=c?c(Nu(t,$),D,$+"",t,o,x):r;L===r&&(L=D),uu(t,$,L)}},Mt)}function Wv(t,o,s,c,x,D,$){var L=Nu(t,s),H=Nu(o,s),ne=$.get(H);if(ne){uu(t,s,ne);return}var oe=D?D(L,H,s+"",t,o,$):r,le=oe===r;if(le){var me=ke(H),xe=!me&&ar(H),Re=!me&&!xe&&oo(H);oe=H,me||xe||Re?ke(L)?oe=L:ft(L)?oe=jt(L):xe?(le=!1,oe=Tf(H,!0)):Re?(le=!1,oe=Pf(H,!0)):oe=[]:Yo(H)||Dr(H)?(oe=L,Dr(L)?oe=Ep(L):(!it(L)||Ln(L))&&(oe=Yf(H))):le=!1}le&&($.set(H,oe),x(oe,H,c,D,$),$.delete(H)),uu(t,s,oe)}function yf(t,o){var s=t.length;if(s)return o+=o<0?s:0,In(o,s)?t[o]:r}function vf(t,o,s){o.length?o=rt(o,function(D){return ke(D)?function($){return Rr($,D.length===1?D[0]:D)}:D}):o=[At];var c=-1;o=rt(o,It(Ce()));var x=hf(t,function(D,$,L){var H=rt(o,function(ne){return ne(D)});return{criteria:H,index:++c,value:D}});return vy(x,function(D,$){return ob(D,$,s)})}function qv(t,o){return bf(t,o,function(s,c){return Hu(t,c)})}function bf(t,o,s){for(var c=-1,x=o.length,D={};++c<x;){var $=o[c],L=Rr(t,$);s(L,$)&&Fo(D,or($,t),L)}return D}function Yv(t){return function(o){return Rr(o,t)}}function yu(t,o,s,c){var x=c?yy:Yr,D=-1,$=o.length,L=t;for(t===o&&(o=jt(o)),s&&(L=rt(t,It(s)));++D<$;)for(var H=0,ne=o[D],oe=s?s(ne):ne;(H=x(L,oe,H,c))>-1;)L!==t&&Xi.call(L,H,1),Xi.call(t,H,1);return t}function wf(t,o){for(var s=t?o.length:0,c=s-1;s--;){var x=o[s];if(s==c||x!==D){var D=x;In(x)?Xi.call(t,x,1):Su(t,x)}}return t}function vu(t,o){return t+Ki(Qc()*(o-t+1))}function Xv(t,o,s,c){for(var x=-1,D=gt(Ji((o-t)/(s||1)),0),$=J(D);D--;)$[c?D:++x]=t,t+=s;return $}function bu(t,o){var s="";if(!t||o<1||o>ce)return s;do o%2&&(s+=t),o=Ki(o/2),o&&(t+=t);while(o);return s}function ze(t,o){return zu(Jf(t,o,At),t+"")}function Gv(t){return nf(io(t))}function Jv(t,o){var s=io(t);return ha(s,Cr(o,0,s.length))}function Fo(t,o,s,c){if(!it(t))return t;o=or(o,t);for(var x=-1,D=o.length,$=D-1,L=t;L!=null&&++x<D;){var H=wn(o[x]),ne=s;if(H==="__proto__"||H==="constructor"||H==="prototype")return t;if(x!=$){var oe=L[H];ne=c?c(oe,H,L):r,ne===r&&(ne=it(oe)?oe:In(o[x+1])?[]:{})}Lo(L,H,ne),L=L[H]}return t}var Sf=Zi?function(t,o){return Zi.set(t,o),t}:At,Kv=Gi?function(t,o){return Gi(t,"toString",{configurable:!0,enumerable:!1,value:qu(o),writable:!0})}:At;function Zv(t){return ha(io(t))}function Qt(t,o,s){var c=-1,x=t.length;o<0&&(o=-o>x?0:x+o),s=s>x?x:s,s<0&&(s+=x),x=o>s?0:s-o>>>0,o>>>=0;for(var D=J(x);++c<x;)D[c]=t[c+o];return D}function Qv(t,o){var s;return nr(t,function(c,x,D){return s=o(c,x,D),!s}),!!s}function ia(t,o,s){var c=0,x=t==null?c:t.length;if(typeof o=="number"&&o===o&&x<=se){for(;c<x;){var D=c+x>>>1,$=t[D];$!==null&&!Ut($)&&(s?$<=o:$<o)?c=D+1:x=D}return x}return wu(t,o,At,s)}function wu(t,o,s,c){var x=0,D=t==null?0:t.length;if(D===0)return 0;o=s(o);for(var $=o!==o,L=o===null,H=Ut(o),ne=o===r;x<D;){var oe=Ki((x+D)/2),le=s(t[oe]),me=le!==r,xe=le===null,Re=le===le,Ne=Ut(le);if($)var Te=c||Re;else ne?Te=Re&&(c||me):L?Te=Re&&me&&(c||!xe):H?Te=Re&&me&&!xe&&(c||!Ne):xe||Ne?Te=!1:Te=c?le<=o:le<o;Te?x=oe+1:D=oe}return xt(D,K)}function xf(t,o){for(var s=-1,c=t.length,x=0,D=[];++s<c;){var $=t[s],L=o?o($):$;if(!s||!hn(L,H)){var H=L;D[x++]=$===0?0:$}}return D}function _f(t){return typeof t=="number"?t:Ut(t)?G:+t}function Lt(t){if(typeof t=="string")return t;if(ke(t))return rt(t,Lt)+"";if(Ut(t))return ef?ef.call(t):"";var o=t+"";return o=="0"&&1/t==-1/0?"-0":o}function rr(t,o,s){var c=-1,x=Ii,D=t.length,$=!0,L=[],H=L;if(s)$=!1,x=Gs;else if(D>=a){var ne=o?null:cb(t);if(ne)return Ui(ne);$=!1,x=Mo,H=new Er}else H=o?[]:L;e:for(;++c<D;){var oe=t[c],le=o?o(oe):oe;if(oe=s||oe!==0?oe:0,$&&le===le){for(var me=H.length;me--;)if(H[me]===le)continue e;o&&H.push(le),L.push(oe)}else x(H,le,s)||(H!==L&&H.push(le),L.push(oe))}return L}function Su(t,o){return o=or(o,t),t=Kf(t,o),t==null||delete t[wn(en(o))]}function Of(t,o,s,c){return Fo(t,o,s(Rr(t,o)),c)}function aa(t,o,s,c){for(var x=t.length,D=c?x:-1;(c?D--:++D<x)&&o(t[D],D,t););return s?Qt(t,c?0:D,c?D+1:x):Qt(t,c?D+1:0,c?x:D)}function Ef(t,o){var s=t;return s instanceof Ie&&(s=s.value()),Js(o,function(c,x){return x.func.apply(x.thisArg,Qn([c],x.args))},s)}function xu(t,o,s){var c=t.length;if(c<2)return c?rr(t[0]):[];for(var x=-1,D=J(c);++x<c;)for(var $=t[x],L=-1;++L<c;)L!=x&&(D[x]=Uo(D[x]||$,t[L],o,s));return rr(wt(D,1),o,s)}function Cf(t,o,s){for(var c=-1,x=t.length,D=o.length,$={};++c<x;){var L=c<D?o[c]:r;s($,t[c],L)}return $}function _u(t){return ft(t)?t:[]}function Ou(t){return typeof t=="function"?t:At}function or(t,o){return ke(t)?t:Mu(t,o)?[t]:tp(He(t))}var eb=ze;function ir(t,o,s){var c=t.length;return s=s===r?c:s,!o&&s>=c?t:Qt(t,o,s)}var Rf=By||function(t){return bt.clearTimeout(t)};function Tf(t,o){if(o)return t.slice();var s=t.length,c=Xc?Xc(s):new t.constructor(s);return t.copy(c),c}function Eu(t){var o=new t.constructor(t.byteLength);return new qi(o).set(new qi(t)),o}function tb(t,o){var s=o?Eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function nb(t){var o=new t.constructor(t.source,cc.exec(t));return o.lastIndex=t.lastIndex,o}function rb(t){return Io?Ke(Io.call(t)):{}}function Pf(t,o){var s=o?Eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Df(t,o){if(t!==o){var s=t!==r,c=t===null,x=t===t,D=Ut(t),$=o!==r,L=o===null,H=o===o,ne=Ut(o);if(!L&&!ne&&!D&&t>o||D&&$&&H&&!L&&!ne||c&&$&&H||!s&&H||!x)return 1;if(!c&&!D&&!ne&&t<o||ne&&s&&x&&!c&&!D||L&&s&&x||!$&&x||!H)return-1}return 0}function ob(t,o,s){for(var c=-1,x=t.criteria,D=o.criteria,$=x.length,L=s.length;++c<$;){var H=Df(x[c],D[c]);if(H){if(c>=L)return H;var ne=s[c];return H*(ne=="desc"?-1:1)}}return t.index-o.index}function jf(t,o,s,c){for(var x=-1,D=t.length,$=s.length,L=-1,H=o.length,ne=gt(D-$,0),oe=J(H+ne),le=!c;++L<H;)oe[L]=o[L];for(;++x<$;)(le||x<D)&&(oe[s[x]]=t[x]);for(;ne--;)oe[L++]=t[x++];return oe}function kf(t,o,s,c){for(var x=-1,D=t.length,$=-1,L=s.length,H=-1,ne=o.length,oe=gt(D-L,0),le=J(oe+ne),me=!c;++x<oe;)le[x]=t[x];for(var xe=x;++H<ne;)le[xe+H]=o[H];for(;++$<L;)(me||x<D)&&(le[xe+s[$]]=t[x++]);return le}function jt(t,o){var s=-1,c=t.length;for(o||(o=J(c));++s<c;)o[s]=t[s];return o}function bn(t,o,s,c){var x=!s;s||(s={});for(var D=-1,$=o.length;++D<$;){var L=o[D],H=c?c(s[L],t[L],L,s,t):r;H===r&&(H=t[L]),x?Nn(s,L,H):Lo(s,L,H)}return s}function ib(t,o){return bn(t,ku(t),o)}function ab(t,o){return bn(t,Wf(t),o)}function sa(t,o){return function(s,c){var x=ke(s)?fy:Tv,D=o?o():{};return x(s,t,Ce(c,2),D)}}function to(t){return ze(function(o,s){var c=-1,x=s.length,D=x>1?s[x-1]:r,$=x>2?s[2]:r;for(D=t.length>3&&typeof D=="function"?(x--,D):r,$&&Rt(s[0],s[1],$)&&(D=x<3?r:D,x=1),o=Ke(o);++c<x;){var L=s[c];L&&t(o,L,c,D)}return o})}function Mf(t,o){return function(s,c){if(s==null)return s;if(!kt(s))return t(s,c);for(var x=s.length,D=o?x:-1,$=Ke(s);(o?D--:++D<x)&&c($[D],D,$)!==!1;);return s}}function Af(t){return function(o,s,c){for(var x=-1,D=Ke(o),$=c(o),L=$.length;L--;){var H=$[t?L:++x];if(s(D[H],H,D)===!1)break}return o}}function sb(t,o,s){var c=o&m,x=Ho(t);function D(){var $=this&&this!==bt&&this instanceof D?x:t;return $.apply(c?s:this,arguments)}return D}function Nf(t){return function(o){o=He(o);var s=Xr(o)?pn(o):r,c=s?s[0]:o.charAt(0),x=s?ir(s,1).join(""):o.slice(1);return c[t]()+x}}function no(t){return function(o){return Js(Mp(kp(o).replace(Kg,"")),t,"")}}function Ho(t){return function(){var o=arguments;switch(o.length){case 0:return new t;case 1:return new t(o[0]);case 2:return new t(o[0],o[1]);case 3:return new t(o[0],o[1],o[2]);case 4:return new t(o[0],o[1],o[2],o[3]);case 5:return new t(o[0],o[1],o[2],o[3],o[4]);case 6:return new t(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new t(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var s=eo(t.prototype),c=t.apply(s,o);return it(c)?c:s}}function ub(t,o,s){var c=Ho(t);function x(){for(var D=arguments.length,$=J(D),L=D,H=ro(x);L--;)$[L]=arguments[L];var ne=D<3&&$[0]!==H&&$[D-1]!==H?[]:er($,H);if(D-=ne.length,D<s)return Uf(t,o,ua,x.placeholder,r,$,ne,r,r,s-D);var oe=this&&this!==bt&&this instanceof x?c:t;return $t(oe,this,$)}return x}function zf(t){return function(o,s,c){var x=Ke(o);if(!kt(o)){var D=Ce(s,3);o=vt(o),s=function(L){return D(x[L],L,x)}}var $=t(o,s,c);return $>-1?x[D?o[$]:$]:r}}function $f(t){return $n(function(o){var s=o.length,c=s,x=Kt.prototype.thru;for(t&&o.reverse();c--;){var D=o[c];if(typeof D!="function")throw new Jt(l);if(x&&!$&&pa(D)=="wrapper")var $=new Kt([],!0)}for(c=$?c:s;++c<s;){D=o[c];var L=pa(D),H=L=="wrapper"?Du(D):r;H&&Au(H[0])&&H[1]==(j|y|v|z)&&!H[4].length&&H[9]==1?$=$[pa(H[0])].apply($,H[3]):$=D.length==1&&Au(D)?$[L]():$.thru(D)}return function(){var ne=arguments,oe=ne[0];if($&&ne.length==1&&ke(oe))return $.plant(oe).value();for(var le=0,me=s?o[le].apply(this,ne):oe;++le<s;)me=o[le].call(this,me);return me}})}function ua(t,o,s,c,x,D,$,L,H,ne){var oe=o&j,le=o&m,me=o&w,xe=o&(y|C),Re=o&F,Ne=me?r:Ho(t);function Te(){for(var $e=arguments.length,Le=J($e),Bt=$e;Bt--;)Le[Bt]=arguments[Bt];if(xe)var Tt=ro(Te),Vt=wy(Le,Tt);if(c&&(Le=jf(Le,c,x,xe)),D&&(Le=kf(Le,D,$,xe)),$e-=Vt,xe&&$e<ne){var pt=er(Le,Tt);return Uf(t,o,ua,Te.placeholder,s,Le,pt,L,H,ne-$e)}var mn=le?s:this,Bn=me?mn[t]:t;return $e=Le.length,L?Le=Tb(Le,L):Re&&$e>1&&Le.reverse(),oe&&H<$e&&(Le.length=H),this&&this!==bt&&this instanceof Te&&(Bn=Ne||Ho(Bn)),Bn.apply(mn,Le)}return Te}function If(t,o){return function(s,c){return zv(s,t,o(c),{})}}function la(t,o){return function(s,c){var x;if(s===r&&c===r)return o;if(s!==r&&(x=s),c!==r){if(x===r)return c;typeof s=="string"||typeof c=="string"?(s=Lt(s),c=Lt(c)):(s=_f(s),c=_f(c)),x=t(s,c)}return x}}function Cu(t){return $n(function(o){return o=rt(o,It(Ce())),ze(function(s){var c=this;return t(o,function(x){return $t(x,c,s)})})})}function ca(t,o){o=o===r?" ":Lt(o);var s=o.length;if(s<2)return s?bu(o,t):o;var c=bu(o,Ji(t/Gr(o)));return Xr(o)?ir(pn(c),0,t).join(""):c.slice(0,t)}function lb(t,o,s,c){var x=o&m,D=Ho(t);function $(){for(var L=-1,H=arguments.length,ne=-1,oe=c.length,le=J(oe+H),me=this&&this!==bt&&this instanceof $?D:t;++ne<oe;)le[ne]=c[ne];for(;H--;)le[ne++]=arguments[++L];return $t(me,x?s:this,le)}return $}function Lf(t){return function(o,s,c){return c&&typeof c!="number"&&Rt(o,s,c)&&(s=c=r),o=Un(o),s===r?(s=o,o=0):s=Un(s),c=c===r?o<s?1:-1:Un(c),Xv(o,s,c,t)}}function fa(t){return function(o,s){return typeof o=="string"&&typeof s=="string"||(o=tn(o),s=tn(s)),t(o,s)}}function Uf(t,o,s,c,x,D,$,L,H,ne){var oe=o&y,le=oe?$:r,me=oe?r:$,xe=oe?D:r,Re=oe?r:D;o|=oe?v:k,o&=~(oe?k:v),o&h||(o&=-4);var Ne=[t,o,x,xe,le,Re,me,L,H,ne],Te=s.apply(r,Ne);return Au(t)&&Zf(Te,Ne),Te.placeholder=c,Qf(Te,t,o)}function Ru(t){var o=mt[t];return function(s,c){if(s=tn(s),c=c==null?0:xt(Ae(c),292),c&&Zc(s)){var x=(He(s)+"e").split("e"),D=o(x[0]+"e"+(+x[1]+c));return x=(He(D)+"e").split("e"),+(x[0]+"e"+(+x[1]-c))}return o(s)}}var cb=Zr&&1/Ui(new Zr([,-0]))[1]==ue?function(t){return new Zr(t)}:Gu;function Bf(t){return function(o){var s=_t(o);return s==he?ru(o):s==ye?Ry(o):by(o,t(o))}}function zn(t,o,s,c,x,D,$,L){var H=o&w;if(!H&&typeof t!="function")throw new Jt(l);var ne=c?c.length:0;if(ne||(o&=-97,c=x=r),$=$===r?$:gt(Ae($),0),L=L===r?L:Ae(L),ne-=x?x.length:0,o&k){var oe=c,le=x;c=x=r}var me=H?r:Du(t),xe=[t,o,s,c,x,oe,le,D,$,L];if(me&&Eb(xe,me),t=xe[0],o=xe[1],s=xe[2],c=xe[3],x=xe[4],L=xe[9]=xe[9]===r?H?0:t.length:gt(xe[9]-ne,0),!L&&o&(y|C)&&(o&=-25),!o||o==m)var Re=sb(t,o,s);else o==y||o==C?Re=ub(t,o,L):(o==v||o==(m|v))&&!x.length?Re=lb(t,o,s,c):Re=ua.apply(r,xe);var Ne=me?Sf:Zf;return Qf(Ne(Re,xe),t,o)}function Vf(t,o,s,c){return t===r||hn(t,Kr[s])&&!qe.call(c,s)?o:t}function Ff(t,o,s,c,x,D){return it(t)&&it(o)&&(D.set(o,t),oa(t,o,r,Ff,D),D.delete(o)),t}function fb(t){return Yo(t)?r:t}function Hf(t,o,s,c,x,D){var $=s&O,L=t.length,H=o.length;if(L!=H&&!($&&H>L))return!1;var ne=D.get(t),oe=D.get(o);if(ne&&oe)return ne==o&&oe==t;var le=-1,me=!0,xe=s&d?new Er:r;for(D.set(t,o),D.set(o,t);++le<L;){var Re=t[le],Ne=o[le];if(c)var Te=$?c(Ne,Re,le,o,t,D):c(Re,Ne,le,t,o,D);if(Te!==r){if(Te)continue;me=!1;break}if(xe){if(!Ks(o,function($e,Le){if(!Mo(xe,Le)&&(Re===$e||x(Re,$e,s,c,D)))return xe.push(Le)})){me=!1;break}}else if(!(Re===Ne||x(Re,Ne,s,c,D))){me=!1;break}}return D.delete(t),D.delete(o),me}function pb(t,o,s,c,x,D,$){switch(s){case Et:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case yn:return!(t.byteLength!=o.byteLength||!D(new qi(t),new qi(o)));case A:case I:case Oe:return hn(+t,+o);case ae:return t.name==o.name&&t.message==o.message;case je:case yt:return t==o+"";case he:var L=ru;case ye:var H=c&O;if(L||(L=Ui),t.size!=o.size&&!H)return!1;var ne=$.get(t);if(ne)return ne==o;c|=d,$.set(t,o);var oe=Hf(L(t),L(o),c,x,D,$);return $.delete(t),oe;case Fe:if(Io)return Io.call(t)==Io.call(o)}return!1}function db(t,o,s,c,x,D){var $=s&O,L=Tu(t),H=L.length,ne=Tu(o),oe=ne.length;if(H!=oe&&!$)return!1;for(var le=H;le--;){var me=L[le];if(!($?me in o:qe.call(o,me)))return!1}var xe=D.get(t),Re=D.get(o);if(xe&&Re)return xe==o&&Re==t;var Ne=!0;D.set(t,o),D.set(o,t);for(var Te=$;++le<H;){me=L[le];var $e=t[me],Le=o[me];if(c)var Bt=$?c(Le,$e,me,o,t,D):c($e,Le,me,t,o,D);if(!(Bt===r?$e===Le||x($e,Le,s,c,D):Bt)){Ne=!1;break}Te||(Te=me=="constructor")}if(Ne&&!Te){var Tt=t.constructor,Vt=o.constructor;Tt!=Vt&&"constructor"in t&&"constructor"in o&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Vt=="function"&&Vt instanceof Vt)&&(Ne=!1)}return D.delete(t),D.delete(o),Ne}function $n(t){return zu(Jf(t,r,ip),t+"")}function Tu(t){return cf(t,vt,ku)}function Pu(t){return cf(t,Mt,Wf)}var Du=Zi?function(t){return Zi.get(t)}:Gu;function pa(t){for(var o=t.name+"",s=Qr[o],c=qe.call(Qr,o)?s.length:0;c--;){var x=s[c],D=x.func;if(D==null||D==t)return x.name}return o}function ro(t){var o=qe.call(R,"placeholder")?R:t;return o.placeholder}function Ce(){var t=R.iteratee||Yu;return t=t===Yu?df:t,arguments.length?t(arguments[0],arguments[1]):t}function da(t,o){var s=t.__data__;return Sb(o)?s[typeof o=="string"?"string":"hash"]:s.map}function ju(t){for(var o=vt(t),s=o.length;s--;){var c=o[s],x=t[c];o[s]=[c,x,Xf(x)]}return o}function Tr(t,o){var s=Oy(t,o);return pf(s)?s:r}function hb(t){var o=qe.call(t,_r),s=t[_r];try{t[_r]=r;var c=!0}catch{}var x=Hi.call(t);return c&&(o?t[_r]=s:delete t[_r]),x}var ku=iu?function(t){return t==null?[]:(t=Ke(t),Zn(iu(t),function(o){return Jc.call(t,o)}))}:Ju,Wf=iu?function(t){for(var o=[];t;)Qn(o,ku(t)),t=Yi(t);return o}:Ju,_t=Ct;(au&&_t(new au(new ArrayBuffer(1)))!=Et||No&&_t(new No)!=he||su&&_t(su.resolve())!=ge||Zr&&_t(new Zr)!=ye||zo&&_t(new zo)!=qt)&&(_t=function(t){var o=Ct(t),s=o==fe?t.constructor:r,c=s?Pr(s):"";if(c)switch(c){case Jy:return Et;case Ky:return he;case Zy:return ge;case Qy:return ye;case ev:return qt}return o});function mb(t,o,s){for(var c=-1,x=s.length;++c<x;){var D=s[c],$=D.size;switch(D.type){case"drop":t+=$;break;case"dropRight":o-=$;break;case"take":o=xt(o,t+$);break;case"takeRight":t=gt(t,o-$);break}}return{start:t,end:o}}function gb(t){var o=t.match(xg);return o?o[1].split(_g):[]}function qf(t,o,s){o=or(o,t);for(var c=-1,x=o.length,D=!1;++c<x;){var $=wn(o[c]);if(!(D=t!=null&&s(t,$)))break;t=t[$]}return D||++c!=x?D:(x=t==null?0:t.length,!!x&&wa(x)&&In($,x)&&(ke(t)||Dr(t)))}function yb(t){var o=t.length,s=new t.constructor(o);return o&&typeof t[0]=="string"&&qe.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Yf(t){return typeof t.constructor=="function"&&!Wo(t)?eo(Yi(t)):{}}function vb(t,o,s){var c=t.constructor;switch(o){case yn:return Eu(t);case A:case I:return new c(+t);case Et:return tb(t,s);case br:case St:case kn:case fn:case Yt:case jo:case wr:case ko:case Kn:return Pf(t,s);case he:return new c;case Oe:case yt:return new c(t);case je:return nb(t);case ye:return new c;case Fe:return rb(t)}}function bb(t,o){var s=o.length;if(!s)return t;var c=s-1;return o[c]=(s>1?"& ":"")+o[c],o=o.join(s>2?", ":" "),t.replace(Sg,`{
61
+ */var w1=Fa.exports,Zp;function S1(){return Zp||(Zp=1,function(e,n){(function(){var r,i="4.17.21",a=200,u="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",f="Invalid `variable` option passed into `_.template`",p="__lodash_hash_undefined__",b=500,_="__lodash_placeholder__",T=1,M=2,S=4,O=1,d=2,m=1,w=2,h=4,y=8,C=16,v=32,k=64,j=128,z=256,F=512,X=30,Y="...",E=800,V=16,U=1,Q=2,Z=3,ue=1/0,ce=9007199254740991,de=17976931348623157e292,G=NaN,P=4294967295,K=P-1,se=P>>>1,ie=[["ary",j],["bind",m],["bindKey",w],["curry",y],["curryRight",C],["flip",F],["partial",v],["partialRight",k],["rearg",z]],ve="[object Arguments]",be="[object Array]",N="[object AsyncFunction]",A="[object Boolean]",I="[object Date]",q="[object DOMException]",ae="[object Error]",W="[object Function]",pe="[object GeneratorFunction]",he="[object Map]",Oe="[object Number]",Ee="[object Null]",fe="[object Object]",ge="[object Promise]",Se="[object Proxy]",je="[object RegExp]",ye="[object Set]",yt="[object String]",Fe="[object Symbol]",jn="[object Undefined]",qt="[object WeakMap]",Jn="[object WeakSet]",yn="[object ArrayBuffer]",Et="[object DataView]",br="[object Float32Array]",St="[object Float64Array]",kn="[object Int8Array]",fn="[object Int16Array]",Yt="[object Int32Array]",Mo="[object Uint8Array]",wr="[object Uint8ClampedArray]",Ao="[object Uint16Array]",Kn="[object Uint32Array]",As=/\b__p \+= '';/g,Ns=/\b(__p \+=) '' \+/g,zs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Mi=/&(?:amp|lt|gt|quot|#39);/g,Ai=/[&<>"']/g,$s=RegExp(Mi.source),Is=RegExp(Ai.source),Ls=/<%-([\s\S]+?)%>/g,Me=/<%([\s\S]+?)%>/g,Dt=/<%=([\s\S]+?)%>/g,Sr=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yg=/^\w*$/,vg=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Us=/[\\^$.*+?()[\]{}|]/g,bg=RegExp(Us.source),Bs=/^\s+/,wg=/\s/,Sg=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,xg=/\{\n\/\* \[wrapped with (.+)\] \*/,_g=/,? & /,Og=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Eg=/[()=,{}\[\]\/\s]/,Cg=/\\(\\)?/g,Rg=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cc=/\w*$/,Tg=/^[-+]0x[0-9a-f]+$/i,Pg=/^0b[01]+$/i,Dg=/^\[object .+?Constructor\]$/,jg=/^0o[0-7]+$/i,kg=/^(?:0|[1-9]\d*)$/,Mg=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ni=/($^)/,Ag=/['\n\r\u2028\u2029\\]/g,zi="\\ud800-\\udfff",Ng="\\u0300-\\u036f",zg="\\ufe20-\\ufe2f",$g="\\u20d0-\\u20ff",fc=Ng+zg+$g,pc="\\u2700-\\u27bf",dc="a-z\\xdf-\\xf6\\xf8-\\xff",Ig="\\xac\\xb1\\xd7\\xf7",Lg="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Ug="\\u2000-\\u206f",Bg=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",hc="A-Z\\xc0-\\xd6\\xd8-\\xde",mc="\\ufe0e\\ufe0f",gc=Ig+Lg+Ug+Bg,Vs="['’]",Vg="["+zi+"]",yc="["+gc+"]",$i="["+fc+"]",vc="\\d+",Fg="["+pc+"]",bc="["+dc+"]",wc="[^"+zi+gc+vc+pc+dc+hc+"]",Fs="\\ud83c[\\udffb-\\udfff]",Hg="(?:"+$i+"|"+Fs+")",Sc="[^"+zi+"]",Hs="(?:\\ud83c[\\udde6-\\uddff]){2}",Ws="[\\ud800-\\udbff][\\udc00-\\udfff]",qr="["+hc+"]",xc="\\u200d",_c="(?:"+bc+"|"+wc+")",Wg="(?:"+qr+"|"+wc+")",Oc="(?:"+Vs+"(?:d|ll|m|re|s|t|ve))?",Ec="(?:"+Vs+"(?:D|LL|M|RE|S|T|VE))?",Cc=Hg+"?",Rc="["+mc+"]?",qg="(?:"+xc+"(?:"+[Sc,Hs,Ws].join("|")+")"+Rc+Cc+")*",Yg="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Xg="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Tc=Rc+Cc+qg,Gg="(?:"+[Fg,Hs,Ws].join("|")+")"+Tc,Jg="(?:"+[Sc+$i+"?",$i,Hs,Ws,Vg].join("|")+")",Kg=RegExp(Vs,"g"),Zg=RegExp($i,"g"),qs=RegExp(Fs+"(?="+Fs+")|"+Jg+Tc,"g"),Qg=RegExp([qr+"?"+bc+"+"+Oc+"(?="+[yc,qr,"$"].join("|")+")",Wg+"+"+Ec+"(?="+[yc,qr+_c,"$"].join("|")+")",qr+"?"+_c+"+"+Oc,qr+"+"+Ec,Xg,Yg,vc,Gg].join("|"),"g"),ey=RegExp("["+xc+zi+fc+mc+"]"),ty=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ny=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ry=-1,nt={};nt[br]=nt[St]=nt[kn]=nt[fn]=nt[Yt]=nt[Mo]=nt[wr]=nt[Ao]=nt[Kn]=!0,nt[ve]=nt[be]=nt[yn]=nt[A]=nt[Et]=nt[I]=nt[ae]=nt[W]=nt[he]=nt[Oe]=nt[fe]=nt[je]=nt[ye]=nt[yt]=nt[qt]=!1;var Qe={};Qe[ve]=Qe[be]=Qe[yn]=Qe[Et]=Qe[A]=Qe[I]=Qe[br]=Qe[St]=Qe[kn]=Qe[fn]=Qe[Yt]=Qe[he]=Qe[Oe]=Qe[fe]=Qe[je]=Qe[ye]=Qe[yt]=Qe[Fe]=Qe[Mo]=Qe[wr]=Qe[Ao]=Qe[Kn]=!0,Qe[ae]=Qe[W]=Qe[qt]=!1;var oy={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},iy={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},ay={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},sy={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},uy=parseFloat,ly=parseInt,Pc=typeof Ea=="object"&&Ea&&Ea.Object===Object&&Ea,cy=typeof self=="object"&&self&&self.Object===Object&&self,bt=Pc||cy||Function("return this")(),Ys=n&&!n.nodeType&&n,xr=Ys&&!0&&e&&!e.nodeType&&e,Dc=xr&&xr.exports===Ys,Xs=Dc&&Pc.process,Xt=function(){try{var B=xr&&xr.require&&xr.require("util").types;return B||Xs&&Xs.binding&&Xs.binding("util")}catch{}}(),jc=Xt&&Xt.isArrayBuffer,kc=Xt&&Xt.isDate,Mc=Xt&&Xt.isMap,Ac=Xt&&Xt.isRegExp,Nc=Xt&&Xt.isSet,zc=Xt&&Xt.isTypedArray;function $t(B,te,J){switch(J.length){case 0:return B.call(te);case 1:return B.call(te,J[0]);case 2:return B.call(te,J[0],J[1]);case 3:return B.call(te,J[0],J[1],J[2])}return B.apply(te,J)}function fy(B,te,J,we){for(var De=-1,Ve=B==null?0:B.length;++De<Ve;){var mt=B[De];te(we,mt,J(mt),B)}return we}function Gt(B,te){for(var J=-1,we=B==null?0:B.length;++J<we&&te(B[J],J,B)!==!1;);return B}function py(B,te){for(var J=B==null?0:B.length;J--&&te(B[J],J,B)!==!1;);return B}function $c(B,te){for(var J=-1,we=B==null?0:B.length;++J<we;)if(!te(B[J],J,B))return!1;return!0}function Zn(B,te){for(var J=-1,we=B==null?0:B.length,De=0,Ve=[];++J<we;){var mt=B[J];te(mt,J,B)&&(Ve[De++]=mt)}return Ve}function Ii(B,te){var J=B==null?0:B.length;return!!J&&Yr(B,te,0)>-1}function Gs(B,te,J){for(var we=-1,De=B==null?0:B.length;++we<De;)if(J(te,B[we]))return!0;return!1}function rt(B,te){for(var J=-1,we=B==null?0:B.length,De=Array(we);++J<we;)De[J]=te(B[J],J,B);return De}function Qn(B,te){for(var J=-1,we=te.length,De=B.length;++J<we;)B[De+J]=te[J];return B}function Js(B,te,J,we){var De=-1,Ve=B==null?0:B.length;for(we&&Ve&&(J=B[++De]);++De<Ve;)J=te(J,B[De],De,B);return J}function dy(B,te,J,we){var De=B==null?0:B.length;for(we&&De&&(J=B[--De]);De--;)J=te(J,B[De],De,B);return J}function Ks(B,te){for(var J=-1,we=B==null?0:B.length;++J<we;)if(te(B[J],J,B))return!0;return!1}var hy=Zs("length");function my(B){return B.split("")}function gy(B){return B.match(Og)||[]}function Ic(B,te,J){var we;return J(B,function(De,Ve,mt){if(te(De,Ve,mt))return we=Ve,!1}),we}function Li(B,te,J,we){for(var De=B.length,Ve=J+(we?1:-1);we?Ve--:++Ve<De;)if(te(B[Ve],Ve,B))return Ve;return-1}function Yr(B,te,J){return te===te?Ty(B,te,J):Li(B,Lc,J)}function yy(B,te,J,we){for(var De=J-1,Ve=B.length;++De<Ve;)if(we(B[De],te))return De;return-1}function Lc(B){return B!==B}function Uc(B,te){var J=B==null?0:B.length;return J?eu(B,te)/J:G}function Zs(B){return function(te){return te==null?r:te[B]}}function Qs(B){return function(te){return B==null?r:B[te]}}function Bc(B,te,J,we,De){return De(B,function(Ve,mt,Ke){J=we?(we=!1,Ve):te(J,Ve,mt,Ke)}),J}function vy(B,te){var J=B.length;for(B.sort(te);J--;)B[J]=B[J].value;return B}function eu(B,te){for(var J,we=-1,De=B.length;++we<De;){var Ve=te(B[we]);Ve!==r&&(J=J===r?Ve:J+Ve)}return J}function tu(B,te){for(var J=-1,we=Array(B);++J<B;)we[J]=te(J);return we}function by(B,te){return rt(te,function(J){return[J,B[J]]})}function Vc(B){return B&&B.slice(0,qc(B)+1).replace(Bs,"")}function It(B){return function(te){return B(te)}}function nu(B,te){return rt(te,function(J){return B[J]})}function No(B,te){return B.has(te)}function Fc(B,te){for(var J=-1,we=B.length;++J<we&&Yr(te,B[J],0)>-1;);return J}function Hc(B,te){for(var J=B.length;J--&&Yr(te,B[J],0)>-1;);return J}function wy(B,te){for(var J=B.length,we=0;J--;)B[J]===te&&++we;return we}var Sy=Qs(oy),xy=Qs(iy);function _y(B){return"\\"+sy[B]}function Oy(B,te){return B==null?r:B[te]}function Xr(B){return ey.test(B)}function Ey(B){return ty.test(B)}function Cy(B){for(var te,J=[];!(te=B.next()).done;)J.push(te.value);return J}function ru(B){var te=-1,J=Array(B.size);return B.forEach(function(we,De){J[++te]=[De,we]}),J}function Wc(B,te){return function(J){return B(te(J))}}function er(B,te){for(var J=-1,we=B.length,De=0,Ve=[];++J<we;){var mt=B[J];(mt===te||mt===_)&&(B[J]=_,Ve[De++]=J)}return Ve}function Ui(B){var te=-1,J=Array(B.size);return B.forEach(function(we){J[++te]=we}),J}function Ry(B){var te=-1,J=Array(B.size);return B.forEach(function(we){J[++te]=[we,we]}),J}function Ty(B,te,J){for(var we=J-1,De=B.length;++we<De;)if(B[we]===te)return we;return-1}function Py(B,te,J){for(var we=J+1;we--;)if(B[we]===te)return we;return we}function Gr(B){return Xr(B)?jy(B):hy(B)}function pn(B){return Xr(B)?ky(B):my(B)}function qc(B){for(var te=B.length;te--&&wg.test(B.charAt(te)););return te}var Dy=Qs(ay);function jy(B){for(var te=qs.lastIndex=0;qs.test(B);)++te;return te}function ky(B){return B.match(qs)||[]}function My(B){return B.match(Qg)||[]}var Ay=function B(te){te=te==null?bt:Jr.defaults(bt.Object(),te,Jr.pick(bt,ny));var J=te.Array,we=te.Date,De=te.Error,Ve=te.Function,mt=te.Math,Ke=te.Object,ou=te.RegExp,Ny=te.String,Jt=te.TypeError,Bi=J.prototype,zy=Ve.prototype,Kr=Ke.prototype,Vi=te["__core-js_shared__"],Fi=zy.toString,qe=Kr.hasOwnProperty,$y=0,Yc=function(){var t=/[^.]+$/.exec(Vi&&Vi.keys&&Vi.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),Hi=Kr.toString,Iy=Fi.call(Ke),Ly=bt._,Uy=ou("^"+Fi.call(qe).replace(Us,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Wi=Dc?te.Buffer:r,tr=te.Symbol,qi=te.Uint8Array,Xc=Wi?Wi.allocUnsafe:r,Yi=Wc(Ke.getPrototypeOf,Ke),Gc=Ke.create,Jc=Kr.propertyIsEnumerable,Xi=Bi.splice,Kc=tr?tr.isConcatSpreadable:r,zo=tr?tr.iterator:r,_r=tr?tr.toStringTag:r,Gi=function(){try{var t=Tr(Ke,"defineProperty");return t({},"",{}),t}catch{}}(),By=te.clearTimeout!==bt.clearTimeout&&te.clearTimeout,Vy=we&&we.now!==bt.Date.now&&we.now,Fy=te.setTimeout!==bt.setTimeout&&te.setTimeout,Ji=mt.ceil,Ki=mt.floor,iu=Ke.getOwnPropertySymbols,Hy=Wi?Wi.isBuffer:r,Zc=te.isFinite,Wy=Bi.join,qy=Wc(Ke.keys,Ke),gt=mt.max,xt=mt.min,Yy=we.now,Xy=te.parseInt,Qc=mt.random,Gy=Bi.reverse,au=Tr(te,"DataView"),$o=Tr(te,"Map"),su=Tr(te,"Promise"),Zr=Tr(te,"Set"),Io=Tr(te,"WeakMap"),Lo=Tr(Ke,"create"),Zi=Io&&new Io,Qr={},Jy=Pr(au),Ky=Pr($o),Zy=Pr(su),Qy=Pr(Zr),ev=Pr(Io),Qi=tr?tr.prototype:r,Uo=Qi?Qi.valueOf:r,ef=Qi?Qi.toString:r;function R(t){if(st(t)&&!ke(t)&&!(t instanceof Ie)){if(t instanceof Kt)return t;if(qe.call(t,"__wrapped__"))return np(t)}return new Kt(t)}var eo=function(){function t(){}return function(o){if(!it(o))return{};if(Gc)return Gc(o);t.prototype=o;var s=new t;return t.prototype=r,s}}();function ea(){}function Kt(t,o){this.__wrapped__=t,this.__actions__=[],this.__chain__=!!o,this.__index__=0,this.__values__=r}R.templateSettings={escape:Ls,evaluate:Me,interpolate:Dt,variable:"",imports:{_:R}},R.prototype=ea.prototype,R.prototype.constructor=R,Kt.prototype=eo(ea.prototype),Kt.prototype.constructor=Kt;function Ie(t){this.__wrapped__=t,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=P,this.__views__=[]}function tv(){var t=new Ie(this.__wrapped__);return t.__actions__=jt(this.__actions__),t.__dir__=this.__dir__,t.__filtered__=this.__filtered__,t.__iteratees__=jt(this.__iteratees__),t.__takeCount__=this.__takeCount__,t.__views__=jt(this.__views__),t}function nv(){if(this.__filtered__){var t=new Ie(this);t.__dir__=-1,t.__filtered__=!0}else t=this.clone(),t.__dir__*=-1;return t}function rv(){var t=this.__wrapped__.value(),o=this.__dir__,s=ke(t),c=o<0,x=s?t.length:0,D=mb(0,x,this.__views__),$=D.start,L=D.end,H=L-$,ne=c?L:$-1,oe=this.__iteratees__,le=oe.length,me=0,xe=xt(H,this.__takeCount__);if(!s||!c&&x==H&&xe==H)return Ef(t,this.__actions__);var Re=[];e:for(;H--&&me<xe;){ne+=o;for(var Ne=-1,Te=t[ne];++Ne<le;){var $e=oe[Ne],Le=$e.iteratee,Bt=$e.type,Tt=Le(Te);if(Bt==Q)Te=Tt;else if(!Tt){if(Bt==U)continue e;break e}}Re[me++]=Te}return Re}Ie.prototype=eo(ea.prototype),Ie.prototype.constructor=Ie;function Or(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o<s;){var c=t[o];this.set(c[0],c[1])}}function ov(){this.__data__=Lo?Lo(null):{},this.size=0}function iv(t){var o=this.has(t)&&delete this.__data__[t];return this.size-=o?1:0,o}function av(t){var o=this.__data__;if(Lo){var s=o[t];return s===p?r:s}return qe.call(o,t)?o[t]:r}function sv(t){var o=this.__data__;return Lo?o[t]!==r:qe.call(o,t)}function uv(t,o){var s=this.__data__;return this.size+=this.has(t)?0:1,s[t]=Lo&&o===r?p:o,this}Or.prototype.clear=ov,Or.prototype.delete=iv,Or.prototype.get=av,Or.prototype.has=sv,Or.prototype.set=uv;function Mn(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o<s;){var c=t[o];this.set(c[0],c[1])}}function lv(){this.__data__=[],this.size=0}function cv(t){var o=this.__data__,s=ta(o,t);if(s<0)return!1;var c=o.length-1;return s==c?o.pop():Xi.call(o,s,1),--this.size,!0}function fv(t){var o=this.__data__,s=ta(o,t);return s<0?r:o[s][1]}function pv(t){return ta(this.__data__,t)>-1}function dv(t,o){var s=this.__data__,c=ta(s,t);return c<0?(++this.size,s.push([t,o])):s[c][1]=o,this}Mn.prototype.clear=lv,Mn.prototype.delete=cv,Mn.prototype.get=fv,Mn.prototype.has=pv,Mn.prototype.set=dv;function An(t){var o=-1,s=t==null?0:t.length;for(this.clear();++o<s;){var c=t[o];this.set(c[0],c[1])}}function hv(){this.size=0,this.__data__={hash:new Or,map:new($o||Mn),string:new Or}}function mv(t){var o=da(this,t).delete(t);return this.size-=o?1:0,o}function gv(t){return da(this,t).get(t)}function yv(t){return da(this,t).has(t)}function vv(t,o){var s=da(this,t),c=s.size;return s.set(t,o),this.size+=s.size==c?0:1,this}An.prototype.clear=hv,An.prototype.delete=mv,An.prototype.get=gv,An.prototype.has=yv,An.prototype.set=vv;function Er(t){var o=-1,s=t==null?0:t.length;for(this.__data__=new An;++o<s;)this.add(t[o])}function bv(t){return this.__data__.set(t,p),this}function wv(t){return this.__data__.has(t)}Er.prototype.add=Er.prototype.push=bv,Er.prototype.has=wv;function dn(t){var o=this.__data__=new Mn(t);this.size=o.size}function Sv(){this.__data__=new Mn,this.size=0}function xv(t){var o=this.__data__,s=o.delete(t);return this.size=o.size,s}function _v(t){return this.__data__.get(t)}function Ov(t){return this.__data__.has(t)}function Ev(t,o){var s=this.__data__;if(s instanceof Mn){var c=s.__data__;if(!$o||c.length<a-1)return c.push([t,o]),this.size=++s.size,this;s=this.__data__=new An(c)}return s.set(t,o),this.size=s.size,this}dn.prototype.clear=Sv,dn.prototype.delete=xv,dn.prototype.get=_v,dn.prototype.has=Ov,dn.prototype.set=Ev;function tf(t,o){var s=ke(t),c=!s&&Dr(t),x=!s&&!c&&ar(t),D=!s&&!c&&!x&&oo(t),$=s||c||x||D,L=$?tu(t.length,Ny):[],H=L.length;for(var ne in t)(o||qe.call(t,ne))&&!($&&(ne=="length"||x&&(ne=="offset"||ne=="parent")||D&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||In(ne,H)))&&L.push(ne);return L}function nf(t){var o=t.length;return o?t[vu(0,o-1)]:r}function Cv(t,o){return ha(jt(t),Cr(o,0,t.length))}function Rv(t){return ha(jt(t))}function uu(t,o,s){(s!==r&&!hn(t[o],s)||s===r&&!(o in t))&&Nn(t,o,s)}function Bo(t,o,s){var c=t[o];(!(qe.call(t,o)&&hn(c,s))||s===r&&!(o in t))&&Nn(t,o,s)}function ta(t,o){for(var s=t.length;s--;)if(hn(t[s][0],o))return s;return-1}function Tv(t,o,s,c){return nr(t,function(x,D,$){o(c,x,s(x),$)}),c}function rf(t,o){return t&&bn(o,vt(o),t)}function Pv(t,o){return t&&bn(o,Mt(o),t)}function Nn(t,o,s){o=="__proto__"&&Gi?Gi(t,o,{configurable:!0,enumerable:!0,value:s,writable:!0}):t[o]=s}function lu(t,o){for(var s=-1,c=o.length,x=J(c),D=t==null;++s<c;)x[s]=D?r:Fu(t,o[s]);return x}function Cr(t,o,s){return t===t&&(s!==r&&(t=t<=s?t:s),o!==r&&(t=t>=o?t:o)),t}function Zt(t,o,s,c,x,D){var $,L=o&T,H=o&M,ne=o&S;if(s&&($=x?s(t,c,x,D):s(t)),$!==r)return $;if(!it(t))return t;var oe=ke(t);if(oe){if($=yb(t),!L)return jt(t,$)}else{var le=_t(t),me=le==W||le==pe;if(ar(t))return Tf(t,L);if(le==fe||le==ve||me&&!x){if($=H||me?{}:Yf(t),!L)return H?ab(t,Pv($,t)):ib(t,rf($,t))}else{if(!Qe[le])return x?t:{};$=vb(t,le,L)}}D||(D=new dn);var xe=D.get(t);if(xe)return xe;D.set(t,$),xp(t)?t.forEach(function(Te){$.add(Zt(Te,o,s,Te,t,D))}):wp(t)&&t.forEach(function(Te,$e){$.set($e,Zt(Te,o,s,$e,t,D))});var Re=ne?H?Pu:Tu:H?Mt:vt,Ne=oe?r:Re(t);return Gt(Ne||t,function(Te,$e){Ne&&($e=Te,Te=t[$e]),Bo($,$e,Zt(Te,o,s,$e,t,D))}),$}function Dv(t){var o=vt(t);return function(s){return of(s,t,o)}}function of(t,o,s){var c=s.length;if(t==null)return!c;for(t=Ke(t);c--;){var x=s[c],D=o[x],$=t[x];if($===r&&!(x in t)||!D($))return!1}return!0}function af(t,o,s){if(typeof t!="function")throw new Jt(l);return Xo(function(){t.apply(r,s)},o)}function Vo(t,o,s,c){var x=-1,D=Ii,$=!0,L=t.length,H=[],ne=o.length;if(!L)return H;s&&(o=rt(o,It(s))),c?(D=Gs,$=!1):o.length>=a&&(D=No,$=!1,o=new Er(o));e:for(;++x<L;){var oe=t[x],le=s==null?oe:s(oe);if(oe=c||oe!==0?oe:0,$&&le===le){for(var me=ne;me--;)if(o[me]===le)continue e;H.push(oe)}else D(o,le,c)||H.push(oe)}return H}var nr=Mf(vn),sf=Mf(fu,!0);function jv(t,o){var s=!0;return nr(t,function(c,x,D){return s=!!o(c,x,D),s}),s}function na(t,o,s){for(var c=-1,x=t.length;++c<x;){var D=t[c],$=o(D);if($!=null&&(L===r?$===$&&!Ut($):s($,L)))var L=$,H=D}return H}function kv(t,o,s,c){var x=t.length;for(s=Ae(s),s<0&&(s=-s>x?0:x+s),c=c===r||c>x?x:Ae(c),c<0&&(c+=x),c=s>c?0:Op(c);s<c;)t[s++]=o;return t}function uf(t,o){var s=[];return nr(t,function(c,x,D){o(c,x,D)&&s.push(c)}),s}function wt(t,o,s,c,x){var D=-1,$=t.length;for(s||(s=wb),x||(x=[]);++D<$;){var L=t[D];o>0&&s(L)?o>1?wt(L,o-1,s,c,x):Qn(x,L):c||(x[x.length]=L)}return x}var cu=Af(),lf=Af(!0);function vn(t,o){return t&&cu(t,o,vt)}function fu(t,o){return t&&lf(t,o,vt)}function ra(t,o){return Zn(o,function(s){return Ln(t[s])})}function Rr(t,o){o=or(o,t);for(var s=0,c=o.length;t!=null&&s<c;)t=t[wn(o[s++])];return s&&s==c?t:r}function cf(t,o,s){var c=o(t);return ke(t)?c:Qn(c,s(t))}function Ct(t){return t==null?t===r?jn:Ee:_r&&_r in Ke(t)?hb(t):Rb(t)}function pu(t,o){return t>o}function Mv(t,o){return t!=null&&qe.call(t,o)}function Av(t,o){return t!=null&&o in Ke(t)}function Nv(t,o,s){return t>=xt(o,s)&&t<gt(o,s)}function du(t,o,s){for(var c=s?Gs:Ii,x=t[0].length,D=t.length,$=D,L=J(D),H=1/0,ne=[];$--;){var oe=t[$];$&&o&&(oe=rt(oe,It(o))),H=xt(oe.length,H),L[$]=!s&&(o||x>=120&&oe.length>=120)?new Er($&&oe):r}oe=t[0];var le=-1,me=L[0];e:for(;++le<x&&ne.length<H;){var xe=oe[le],Re=o?o(xe):xe;if(xe=s||xe!==0?xe:0,!(me?No(me,Re):c(ne,Re,s))){for($=D;--$;){var Ne=L[$];if(!(Ne?No(Ne,Re):c(t[$],Re,s)))continue e}me&&me.push(Re),ne.push(xe)}}return ne}function zv(t,o,s,c){return vn(t,function(x,D,$){o(c,s(x),D,$)}),c}function Fo(t,o,s){o=or(o,t),t=Kf(t,o);var c=t==null?t:t[wn(en(o))];return c==null?r:$t(c,t,s)}function ff(t){return st(t)&&Ct(t)==ve}function $v(t){return st(t)&&Ct(t)==yn}function Iv(t){return st(t)&&Ct(t)==I}function Ho(t,o,s,c,x){return t===o?!0:t==null||o==null||!st(t)&&!st(o)?t!==t&&o!==o:Lv(t,o,s,c,Ho,x)}function Lv(t,o,s,c,x,D){var $=ke(t),L=ke(o),H=$?be:_t(t),ne=L?be:_t(o);H=H==ve?fe:H,ne=ne==ve?fe:ne;var oe=H==fe,le=ne==fe,me=H==ne;if(me&&ar(t)){if(!ar(o))return!1;$=!0,oe=!1}if(me&&!oe)return D||(D=new dn),$||oo(t)?Hf(t,o,s,c,x,D):pb(t,o,H,s,c,x,D);if(!(s&O)){var xe=oe&&qe.call(t,"__wrapped__"),Re=le&&qe.call(o,"__wrapped__");if(xe||Re){var Ne=xe?t.value():t,Te=Re?o.value():o;return D||(D=new dn),x(Ne,Te,s,c,D)}}return me?(D||(D=new dn),db(t,o,s,c,x,D)):!1}function Uv(t){return st(t)&&_t(t)==he}function hu(t,o,s,c){var x=s.length,D=x,$=!c;if(t==null)return!D;for(t=Ke(t);x--;){var L=s[x];if($&&L[2]?L[1]!==t[L[0]]:!(L[0]in t))return!1}for(;++x<D;){L=s[x];var H=L[0],ne=t[H],oe=L[1];if($&&L[2]){if(ne===r&&!(H in t))return!1}else{var le=new dn;if(c)var me=c(ne,oe,H,t,o,le);if(!(me===r?Ho(oe,ne,O|d,c,le):me))return!1}}return!0}function pf(t){if(!it(t)||xb(t))return!1;var o=Ln(t)?Uy:Dg;return o.test(Pr(t))}function Bv(t){return st(t)&&Ct(t)==je}function Vv(t){return st(t)&&_t(t)==ye}function Fv(t){return st(t)&&wa(t.length)&&!!nt[Ct(t)]}function df(t){return typeof t=="function"?t:t==null?At:typeof t=="object"?ke(t)?gf(t[0],t[1]):mf(t):Np(t)}function mu(t){if(!Yo(t))return qy(t);var o=[];for(var s in Ke(t))qe.call(t,s)&&s!="constructor"&&o.push(s);return o}function Hv(t){if(!it(t))return Cb(t);var o=Yo(t),s=[];for(var c in t)c=="constructor"&&(o||!qe.call(t,c))||s.push(c);return s}function gu(t,o){return t<o}function hf(t,o){var s=-1,c=kt(t)?J(t.length):[];return nr(t,function(x,D,$){c[++s]=o(x,D,$)}),c}function mf(t){var o=ju(t);return o.length==1&&o[0][2]?Gf(o[0][0],o[0][1]):function(s){return s===t||hu(s,t,o)}}function gf(t,o){return Mu(t)&&Xf(o)?Gf(wn(t),o):function(s){var c=Fu(s,t);return c===r&&c===o?Hu(s,t):Ho(o,c,O|d)}}function oa(t,o,s,c,x){t!==o&&cu(o,function(D,$){if(x||(x=new dn),it(D))Wv(t,o,$,s,oa,c,x);else{var L=c?c(Nu(t,$),D,$+"",t,o,x):r;L===r&&(L=D),uu(t,$,L)}},Mt)}function Wv(t,o,s,c,x,D,$){var L=Nu(t,s),H=Nu(o,s),ne=$.get(H);if(ne){uu(t,s,ne);return}var oe=D?D(L,H,s+"",t,o,$):r,le=oe===r;if(le){var me=ke(H),xe=!me&&ar(H),Re=!me&&!xe&&oo(H);oe=H,me||xe||Re?ke(L)?oe=L:ft(L)?oe=jt(L):xe?(le=!1,oe=Tf(H,!0)):Re?(le=!1,oe=Pf(H,!0)):oe=[]:Go(H)||Dr(H)?(oe=L,Dr(L)?oe=Ep(L):(!it(L)||Ln(L))&&(oe=Yf(H))):le=!1}le&&($.set(H,oe),x(oe,H,c,D,$),$.delete(H)),uu(t,s,oe)}function yf(t,o){var s=t.length;if(s)return o+=o<0?s:0,In(o,s)?t[o]:r}function vf(t,o,s){o.length?o=rt(o,function(D){return ke(D)?function($){return Rr($,D.length===1?D[0]:D)}:D}):o=[At];var c=-1;o=rt(o,It(Ce()));var x=hf(t,function(D,$,L){var H=rt(o,function(ne){return ne(D)});return{criteria:H,index:++c,value:D}});return vy(x,function(D,$){return ob(D,$,s)})}function qv(t,o){return bf(t,o,function(s,c){return Hu(t,c)})}function bf(t,o,s){for(var c=-1,x=o.length,D={};++c<x;){var $=o[c],L=Rr(t,$);s(L,$)&&Wo(D,or($,t),L)}return D}function Yv(t){return function(o){return Rr(o,t)}}function yu(t,o,s,c){var x=c?yy:Yr,D=-1,$=o.length,L=t;for(t===o&&(o=jt(o)),s&&(L=rt(t,It(s)));++D<$;)for(var H=0,ne=o[D],oe=s?s(ne):ne;(H=x(L,oe,H,c))>-1;)L!==t&&Xi.call(L,H,1),Xi.call(t,H,1);return t}function wf(t,o){for(var s=t?o.length:0,c=s-1;s--;){var x=o[s];if(s==c||x!==D){var D=x;In(x)?Xi.call(t,x,1):Su(t,x)}}return t}function vu(t,o){return t+Ki(Qc()*(o-t+1))}function Xv(t,o,s,c){for(var x=-1,D=gt(Ji((o-t)/(s||1)),0),$=J(D);D--;)$[c?D:++x]=t,t+=s;return $}function bu(t,o){var s="";if(!t||o<1||o>ce)return s;do o%2&&(s+=t),o=Ki(o/2),o&&(t+=t);while(o);return s}function ze(t,o){return zu(Jf(t,o,At),t+"")}function Gv(t){return nf(io(t))}function Jv(t,o){var s=io(t);return ha(s,Cr(o,0,s.length))}function Wo(t,o,s,c){if(!it(t))return t;o=or(o,t);for(var x=-1,D=o.length,$=D-1,L=t;L!=null&&++x<D;){var H=wn(o[x]),ne=s;if(H==="__proto__"||H==="constructor"||H==="prototype")return t;if(x!=$){var oe=L[H];ne=c?c(oe,H,L):r,ne===r&&(ne=it(oe)?oe:In(o[x+1])?[]:{})}Bo(L,H,ne),L=L[H]}return t}var Sf=Zi?function(t,o){return Zi.set(t,o),t}:At,Kv=Gi?function(t,o){return Gi(t,"toString",{configurable:!0,enumerable:!1,value:qu(o),writable:!0})}:At;function Zv(t){return ha(io(t))}function Qt(t,o,s){var c=-1,x=t.length;o<0&&(o=-o>x?0:x+o),s=s>x?x:s,s<0&&(s+=x),x=o>s?0:s-o>>>0,o>>>=0;for(var D=J(x);++c<x;)D[c]=t[c+o];return D}function Qv(t,o){var s;return nr(t,function(c,x,D){return s=o(c,x,D),!s}),!!s}function ia(t,o,s){var c=0,x=t==null?c:t.length;if(typeof o=="number"&&o===o&&x<=se){for(;c<x;){var D=c+x>>>1,$=t[D];$!==null&&!Ut($)&&(s?$<=o:$<o)?c=D+1:x=D}return x}return wu(t,o,At,s)}function wu(t,o,s,c){var x=0,D=t==null?0:t.length;if(D===0)return 0;o=s(o);for(var $=o!==o,L=o===null,H=Ut(o),ne=o===r;x<D;){var oe=Ki((x+D)/2),le=s(t[oe]),me=le!==r,xe=le===null,Re=le===le,Ne=Ut(le);if($)var Te=c||Re;else ne?Te=Re&&(c||me):L?Te=Re&&me&&(c||!xe):H?Te=Re&&me&&!xe&&(c||!Ne):xe||Ne?Te=!1:Te=c?le<=o:le<o;Te?x=oe+1:D=oe}return xt(D,K)}function xf(t,o){for(var s=-1,c=t.length,x=0,D=[];++s<c;){var $=t[s],L=o?o($):$;if(!s||!hn(L,H)){var H=L;D[x++]=$===0?0:$}}return D}function _f(t){return typeof t=="number"?t:Ut(t)?G:+t}function Lt(t){if(typeof t=="string")return t;if(ke(t))return rt(t,Lt)+"";if(Ut(t))return ef?ef.call(t):"";var o=t+"";return o=="0"&&1/t==-1/0?"-0":o}function rr(t,o,s){var c=-1,x=Ii,D=t.length,$=!0,L=[],H=L;if(s)$=!1,x=Gs;else if(D>=a){var ne=o?null:cb(t);if(ne)return Ui(ne);$=!1,x=No,H=new Er}else H=o?[]:L;e:for(;++c<D;){var oe=t[c],le=o?o(oe):oe;if(oe=s||oe!==0?oe:0,$&&le===le){for(var me=H.length;me--;)if(H[me]===le)continue e;o&&H.push(le),L.push(oe)}else x(H,le,s)||(H!==L&&H.push(le),L.push(oe))}return L}function Su(t,o){return o=or(o,t),t=Kf(t,o),t==null||delete t[wn(en(o))]}function Of(t,o,s,c){return Wo(t,o,s(Rr(t,o)),c)}function aa(t,o,s,c){for(var x=t.length,D=c?x:-1;(c?D--:++D<x)&&o(t[D],D,t););return s?Qt(t,c?0:D,c?D+1:x):Qt(t,c?D+1:0,c?x:D)}function Ef(t,o){var s=t;return s instanceof Ie&&(s=s.value()),Js(o,function(c,x){return x.func.apply(x.thisArg,Qn([c],x.args))},s)}function xu(t,o,s){var c=t.length;if(c<2)return c?rr(t[0]):[];for(var x=-1,D=J(c);++x<c;)for(var $=t[x],L=-1;++L<c;)L!=x&&(D[x]=Vo(D[x]||$,t[L],o,s));return rr(wt(D,1),o,s)}function Cf(t,o,s){for(var c=-1,x=t.length,D=o.length,$={};++c<x;){var L=c<D?o[c]:r;s($,t[c],L)}return $}function _u(t){return ft(t)?t:[]}function Ou(t){return typeof t=="function"?t:At}function or(t,o){return ke(t)?t:Mu(t,o)?[t]:tp(He(t))}var eb=ze;function ir(t,o,s){var c=t.length;return s=s===r?c:s,!o&&s>=c?t:Qt(t,o,s)}var Rf=By||function(t){return bt.clearTimeout(t)};function Tf(t,o){if(o)return t.slice();var s=t.length,c=Xc?Xc(s):new t.constructor(s);return t.copy(c),c}function Eu(t){var o=new t.constructor(t.byteLength);return new qi(o).set(new qi(t)),o}function tb(t,o){var s=o?Eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.byteLength)}function nb(t){var o=new t.constructor(t.source,cc.exec(t));return o.lastIndex=t.lastIndex,o}function rb(t){return Uo?Ke(Uo.call(t)):{}}function Pf(t,o){var s=o?Eu(t.buffer):t.buffer;return new t.constructor(s,t.byteOffset,t.length)}function Df(t,o){if(t!==o){var s=t!==r,c=t===null,x=t===t,D=Ut(t),$=o!==r,L=o===null,H=o===o,ne=Ut(o);if(!L&&!ne&&!D&&t>o||D&&$&&H&&!L&&!ne||c&&$&&H||!s&&H||!x)return 1;if(!c&&!D&&!ne&&t<o||ne&&s&&x&&!c&&!D||L&&s&&x||!$&&x||!H)return-1}return 0}function ob(t,o,s){for(var c=-1,x=t.criteria,D=o.criteria,$=x.length,L=s.length;++c<$;){var H=Df(x[c],D[c]);if(H){if(c>=L)return H;var ne=s[c];return H*(ne=="desc"?-1:1)}}return t.index-o.index}function jf(t,o,s,c){for(var x=-1,D=t.length,$=s.length,L=-1,H=o.length,ne=gt(D-$,0),oe=J(H+ne),le=!c;++L<H;)oe[L]=o[L];for(;++x<$;)(le||x<D)&&(oe[s[x]]=t[x]);for(;ne--;)oe[L++]=t[x++];return oe}function kf(t,o,s,c){for(var x=-1,D=t.length,$=-1,L=s.length,H=-1,ne=o.length,oe=gt(D-L,0),le=J(oe+ne),me=!c;++x<oe;)le[x]=t[x];for(var xe=x;++H<ne;)le[xe+H]=o[H];for(;++$<L;)(me||x<D)&&(le[xe+s[$]]=t[x++]);return le}function jt(t,o){var s=-1,c=t.length;for(o||(o=J(c));++s<c;)o[s]=t[s];return o}function bn(t,o,s,c){var x=!s;s||(s={});for(var D=-1,$=o.length;++D<$;){var L=o[D],H=c?c(s[L],t[L],L,s,t):r;H===r&&(H=t[L]),x?Nn(s,L,H):Bo(s,L,H)}return s}function ib(t,o){return bn(t,ku(t),o)}function ab(t,o){return bn(t,Wf(t),o)}function sa(t,o){return function(s,c){var x=ke(s)?fy:Tv,D=o?o():{};return x(s,t,Ce(c,2),D)}}function to(t){return ze(function(o,s){var c=-1,x=s.length,D=x>1?s[x-1]:r,$=x>2?s[2]:r;for(D=t.length>3&&typeof D=="function"?(x--,D):r,$&&Rt(s[0],s[1],$)&&(D=x<3?r:D,x=1),o=Ke(o);++c<x;){var L=s[c];L&&t(o,L,c,D)}return o})}function Mf(t,o){return function(s,c){if(s==null)return s;if(!kt(s))return t(s,c);for(var x=s.length,D=o?x:-1,$=Ke(s);(o?D--:++D<x)&&c($[D],D,$)!==!1;);return s}}function Af(t){return function(o,s,c){for(var x=-1,D=Ke(o),$=c(o),L=$.length;L--;){var H=$[t?L:++x];if(s(D[H],H,D)===!1)break}return o}}function sb(t,o,s){var c=o&m,x=qo(t);function D(){var $=this&&this!==bt&&this instanceof D?x:t;return $.apply(c?s:this,arguments)}return D}function Nf(t){return function(o){o=He(o);var s=Xr(o)?pn(o):r,c=s?s[0]:o.charAt(0),x=s?ir(s,1).join(""):o.slice(1);return c[t]()+x}}function no(t){return function(o){return Js(Mp(kp(o).replace(Kg,"")),t,"")}}function qo(t){return function(){var o=arguments;switch(o.length){case 0:return new t;case 1:return new t(o[0]);case 2:return new t(o[0],o[1]);case 3:return new t(o[0],o[1],o[2]);case 4:return new t(o[0],o[1],o[2],o[3]);case 5:return new t(o[0],o[1],o[2],o[3],o[4]);case 6:return new t(o[0],o[1],o[2],o[3],o[4],o[5]);case 7:return new t(o[0],o[1],o[2],o[3],o[4],o[5],o[6])}var s=eo(t.prototype),c=t.apply(s,o);return it(c)?c:s}}function ub(t,o,s){var c=qo(t);function x(){for(var D=arguments.length,$=J(D),L=D,H=ro(x);L--;)$[L]=arguments[L];var ne=D<3&&$[0]!==H&&$[D-1]!==H?[]:er($,H);if(D-=ne.length,D<s)return Uf(t,o,ua,x.placeholder,r,$,ne,r,r,s-D);var oe=this&&this!==bt&&this instanceof x?c:t;return $t(oe,this,$)}return x}function zf(t){return function(o,s,c){var x=Ke(o);if(!kt(o)){var D=Ce(s,3);o=vt(o),s=function(L){return D(x[L],L,x)}}var $=t(o,s,c);return $>-1?x[D?o[$]:$]:r}}function $f(t){return $n(function(o){var s=o.length,c=s,x=Kt.prototype.thru;for(t&&o.reverse();c--;){var D=o[c];if(typeof D!="function")throw new Jt(l);if(x&&!$&&pa(D)=="wrapper")var $=new Kt([],!0)}for(c=$?c:s;++c<s;){D=o[c];var L=pa(D),H=L=="wrapper"?Du(D):r;H&&Au(H[0])&&H[1]==(j|y|v|z)&&!H[4].length&&H[9]==1?$=$[pa(H[0])].apply($,H[3]):$=D.length==1&&Au(D)?$[L]():$.thru(D)}return function(){var ne=arguments,oe=ne[0];if($&&ne.length==1&&ke(oe))return $.plant(oe).value();for(var le=0,me=s?o[le].apply(this,ne):oe;++le<s;)me=o[le].call(this,me);return me}})}function ua(t,o,s,c,x,D,$,L,H,ne){var oe=o&j,le=o&m,me=o&w,xe=o&(y|C),Re=o&F,Ne=me?r:qo(t);function Te(){for(var $e=arguments.length,Le=J($e),Bt=$e;Bt--;)Le[Bt]=arguments[Bt];if(xe)var Tt=ro(Te),Vt=wy(Le,Tt);if(c&&(Le=jf(Le,c,x,xe)),D&&(Le=kf(Le,D,$,xe)),$e-=Vt,xe&&$e<ne){var pt=er(Le,Tt);return Uf(t,o,ua,Te.placeholder,s,Le,pt,L,H,ne-$e)}var mn=le?s:this,Bn=me?mn[t]:t;return $e=Le.length,L?Le=Tb(Le,L):Re&&$e>1&&Le.reverse(),oe&&H<$e&&(Le.length=H),this&&this!==bt&&this instanceof Te&&(Bn=Ne||qo(Bn)),Bn.apply(mn,Le)}return Te}function If(t,o){return function(s,c){return zv(s,t,o(c),{})}}function la(t,o){return function(s,c){var x;if(s===r&&c===r)return o;if(s!==r&&(x=s),c!==r){if(x===r)return c;typeof s=="string"||typeof c=="string"?(s=Lt(s),c=Lt(c)):(s=_f(s),c=_f(c)),x=t(s,c)}return x}}function Cu(t){return $n(function(o){return o=rt(o,It(Ce())),ze(function(s){var c=this;return t(o,function(x){return $t(x,c,s)})})})}function ca(t,o){o=o===r?" ":Lt(o);var s=o.length;if(s<2)return s?bu(o,t):o;var c=bu(o,Ji(t/Gr(o)));return Xr(o)?ir(pn(c),0,t).join(""):c.slice(0,t)}function lb(t,o,s,c){var x=o&m,D=qo(t);function $(){for(var L=-1,H=arguments.length,ne=-1,oe=c.length,le=J(oe+H),me=this&&this!==bt&&this instanceof $?D:t;++ne<oe;)le[ne]=c[ne];for(;H--;)le[ne++]=arguments[++L];return $t(me,x?s:this,le)}return $}function Lf(t){return function(o,s,c){return c&&typeof c!="number"&&Rt(o,s,c)&&(s=c=r),o=Un(o),s===r?(s=o,o=0):s=Un(s),c=c===r?o<s?1:-1:Un(c),Xv(o,s,c,t)}}function fa(t){return function(o,s){return typeof o=="string"&&typeof s=="string"||(o=tn(o),s=tn(s)),t(o,s)}}function Uf(t,o,s,c,x,D,$,L,H,ne){var oe=o&y,le=oe?$:r,me=oe?r:$,xe=oe?D:r,Re=oe?r:D;o|=oe?v:k,o&=~(oe?k:v),o&h||(o&=-4);var Ne=[t,o,x,xe,le,Re,me,L,H,ne],Te=s.apply(r,Ne);return Au(t)&&Zf(Te,Ne),Te.placeholder=c,Qf(Te,t,o)}function Ru(t){var o=mt[t];return function(s,c){if(s=tn(s),c=c==null?0:xt(Ae(c),292),c&&Zc(s)){var x=(He(s)+"e").split("e"),D=o(x[0]+"e"+(+x[1]+c));return x=(He(D)+"e").split("e"),+(x[0]+"e"+(+x[1]-c))}return o(s)}}var cb=Zr&&1/Ui(new Zr([,-0]))[1]==ue?function(t){return new Zr(t)}:Gu;function Bf(t){return function(o){var s=_t(o);return s==he?ru(o):s==ye?Ry(o):by(o,t(o))}}function zn(t,o,s,c,x,D,$,L){var H=o&w;if(!H&&typeof t!="function")throw new Jt(l);var ne=c?c.length:0;if(ne||(o&=-97,c=x=r),$=$===r?$:gt(Ae($),0),L=L===r?L:Ae(L),ne-=x?x.length:0,o&k){var oe=c,le=x;c=x=r}var me=H?r:Du(t),xe=[t,o,s,c,x,oe,le,D,$,L];if(me&&Eb(xe,me),t=xe[0],o=xe[1],s=xe[2],c=xe[3],x=xe[4],L=xe[9]=xe[9]===r?H?0:t.length:gt(xe[9]-ne,0),!L&&o&(y|C)&&(o&=-25),!o||o==m)var Re=sb(t,o,s);else o==y||o==C?Re=ub(t,o,L):(o==v||o==(m|v))&&!x.length?Re=lb(t,o,s,c):Re=ua.apply(r,xe);var Ne=me?Sf:Zf;return Qf(Ne(Re,xe),t,o)}function Vf(t,o,s,c){return t===r||hn(t,Kr[s])&&!qe.call(c,s)?o:t}function Ff(t,o,s,c,x,D){return it(t)&&it(o)&&(D.set(o,t),oa(t,o,r,Ff,D),D.delete(o)),t}function fb(t){return Go(t)?r:t}function Hf(t,o,s,c,x,D){var $=s&O,L=t.length,H=o.length;if(L!=H&&!($&&H>L))return!1;var ne=D.get(t),oe=D.get(o);if(ne&&oe)return ne==o&&oe==t;var le=-1,me=!0,xe=s&d?new Er:r;for(D.set(t,o),D.set(o,t);++le<L;){var Re=t[le],Ne=o[le];if(c)var Te=$?c(Ne,Re,le,o,t,D):c(Re,Ne,le,t,o,D);if(Te!==r){if(Te)continue;me=!1;break}if(xe){if(!Ks(o,function($e,Le){if(!No(xe,Le)&&(Re===$e||x(Re,$e,s,c,D)))return xe.push(Le)})){me=!1;break}}else if(!(Re===Ne||x(Re,Ne,s,c,D))){me=!1;break}}return D.delete(t),D.delete(o),me}function pb(t,o,s,c,x,D,$){switch(s){case Et:if(t.byteLength!=o.byteLength||t.byteOffset!=o.byteOffset)return!1;t=t.buffer,o=o.buffer;case yn:return!(t.byteLength!=o.byteLength||!D(new qi(t),new qi(o)));case A:case I:case Oe:return hn(+t,+o);case ae:return t.name==o.name&&t.message==o.message;case je:case yt:return t==o+"";case he:var L=ru;case ye:var H=c&O;if(L||(L=Ui),t.size!=o.size&&!H)return!1;var ne=$.get(t);if(ne)return ne==o;c|=d,$.set(t,o);var oe=Hf(L(t),L(o),c,x,D,$);return $.delete(t),oe;case Fe:if(Uo)return Uo.call(t)==Uo.call(o)}return!1}function db(t,o,s,c,x,D){var $=s&O,L=Tu(t),H=L.length,ne=Tu(o),oe=ne.length;if(H!=oe&&!$)return!1;for(var le=H;le--;){var me=L[le];if(!($?me in o:qe.call(o,me)))return!1}var xe=D.get(t),Re=D.get(o);if(xe&&Re)return xe==o&&Re==t;var Ne=!0;D.set(t,o),D.set(o,t);for(var Te=$;++le<H;){me=L[le];var $e=t[me],Le=o[me];if(c)var Bt=$?c(Le,$e,me,o,t,D):c($e,Le,me,t,o,D);if(!(Bt===r?$e===Le||x($e,Le,s,c,D):Bt)){Ne=!1;break}Te||(Te=me=="constructor")}if(Ne&&!Te){var Tt=t.constructor,Vt=o.constructor;Tt!=Vt&&"constructor"in t&&"constructor"in o&&!(typeof Tt=="function"&&Tt instanceof Tt&&typeof Vt=="function"&&Vt instanceof Vt)&&(Ne=!1)}return D.delete(t),D.delete(o),Ne}function $n(t){return zu(Jf(t,r,ip),t+"")}function Tu(t){return cf(t,vt,ku)}function Pu(t){return cf(t,Mt,Wf)}var Du=Zi?function(t){return Zi.get(t)}:Gu;function pa(t){for(var o=t.name+"",s=Qr[o],c=qe.call(Qr,o)?s.length:0;c--;){var x=s[c],D=x.func;if(D==null||D==t)return x.name}return o}function ro(t){var o=qe.call(R,"placeholder")?R:t;return o.placeholder}function Ce(){var t=R.iteratee||Yu;return t=t===Yu?df:t,arguments.length?t(arguments[0],arguments[1]):t}function da(t,o){var s=t.__data__;return Sb(o)?s[typeof o=="string"?"string":"hash"]:s.map}function ju(t){for(var o=vt(t),s=o.length;s--;){var c=o[s],x=t[c];o[s]=[c,x,Xf(x)]}return o}function Tr(t,o){var s=Oy(t,o);return pf(s)?s:r}function hb(t){var o=qe.call(t,_r),s=t[_r];try{t[_r]=r;var c=!0}catch{}var x=Hi.call(t);return c&&(o?t[_r]=s:delete t[_r]),x}var ku=iu?function(t){return t==null?[]:(t=Ke(t),Zn(iu(t),function(o){return Jc.call(t,o)}))}:Ju,Wf=iu?function(t){for(var o=[];t;)Qn(o,ku(t)),t=Yi(t);return o}:Ju,_t=Ct;(au&&_t(new au(new ArrayBuffer(1)))!=Et||$o&&_t(new $o)!=he||su&&_t(su.resolve())!=ge||Zr&&_t(new Zr)!=ye||Io&&_t(new Io)!=qt)&&(_t=function(t){var o=Ct(t),s=o==fe?t.constructor:r,c=s?Pr(s):"";if(c)switch(c){case Jy:return Et;case Ky:return he;case Zy:return ge;case Qy:return ye;case ev:return qt}return o});function mb(t,o,s){for(var c=-1,x=s.length;++c<x;){var D=s[c],$=D.size;switch(D.type){case"drop":t+=$;break;case"dropRight":o-=$;break;case"take":o=xt(o,t+$);break;case"takeRight":t=gt(t,o-$);break}}return{start:t,end:o}}function gb(t){var o=t.match(xg);return o?o[1].split(_g):[]}function qf(t,o,s){o=or(o,t);for(var c=-1,x=o.length,D=!1;++c<x;){var $=wn(o[c]);if(!(D=t!=null&&s(t,$)))break;t=t[$]}return D||++c!=x?D:(x=t==null?0:t.length,!!x&&wa(x)&&In($,x)&&(ke(t)||Dr(t)))}function yb(t){var o=t.length,s=new t.constructor(o);return o&&typeof t[0]=="string"&&qe.call(t,"index")&&(s.index=t.index,s.input=t.input),s}function Yf(t){return typeof t.constructor=="function"&&!Yo(t)?eo(Yi(t)):{}}function vb(t,o,s){var c=t.constructor;switch(o){case yn:return Eu(t);case A:case I:return new c(+t);case Et:return tb(t,s);case br:case St:case kn:case fn:case Yt:case Mo:case wr:case Ao:case Kn:return Pf(t,s);case he:return new c;case Oe:case yt:return new c(t);case je:return nb(t);case ye:return new c;case Fe:return rb(t)}}function bb(t,o){var s=o.length;if(!s)return t;var c=s-1;return o[c]=(s>1?"& ":"")+o[c],o=o.join(s>2?", ":" "),t.replace(Sg,`{
62
62
  /* [wrapped with `+o+`] */
63
- `)}function wb(t){return ke(t)||Dr(t)||!!(Kc&&t&&t[Kc])}function In(t,o){var s=typeof t;return o=o??ce,!!o&&(s=="number"||s!="symbol"&&kg.test(t))&&t>-1&&t%1==0&&t<o}function Rt(t,o,s){if(!it(s))return!1;var c=typeof o;return(c=="number"?kt(s)&&In(o,s.length):c=="string"&&o in s)?hn(s[o],t):!1}function Mu(t,o){if(ke(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Ut(t)?!0:yg.test(t)||!Sr.test(t)||o!=null&&t in Ke(o)}function Sb(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}function Au(t){var o=pa(t),s=R[o];if(typeof s!="function"||!(o in Ie.prototype))return!1;if(t===s)return!0;var c=Du(s);return!!c&&t===c[0]}function xb(t){return!!Yc&&Yc in t}var _b=Vi?Ln:Ku;function Wo(t){var o=t&&t.constructor,s=typeof o=="function"&&o.prototype||Kr;return t===s}function Xf(t){return t===t&&!it(t)}function Gf(t,o){return function(s){return s==null?!1:s[t]===o&&(o!==r||t in Ke(s))}}function Ob(t){var o=va(t,function(c){return s.size===b&&s.clear(),c}),s=o.cache;return o}function Eb(t,o){var s=t[1],c=o[1],x=s|c,D=x<(m|w|j),$=c==j&&s==y||c==j&&s==z&&t[7].length<=o[8]||c==(j|z)&&o[7].length<=o[8]&&s==y;if(!(D||$))return t;c&m&&(t[2]=o[2],x|=s&m?0:h);var L=o[3];if(L){var H=t[3];t[3]=H?jf(H,L,o[4]):L,t[4]=H?er(t[3],_):o[4]}return L=o[5],L&&(H=t[5],t[5]=H?kf(H,L,o[6]):L,t[6]=H?er(t[5],_):o[6]),L=o[7],L&&(t[7]=L),c&j&&(t[8]=t[8]==null?o[8]:xt(t[8],o[8])),t[9]==null&&(t[9]=o[9]),t[0]=o[0],t[1]=x,t}function Cb(t){var o=[];if(t!=null)for(var s in Ke(t))o.push(s);return o}function Rb(t){return Hi.call(t)}function Jf(t,o,s){return o=gt(o===r?t.length-1:o,0),function(){for(var c=arguments,x=-1,D=gt(c.length-o,0),$=J(D);++x<D;)$[x]=c[o+x];x=-1;for(var L=J(o+1);++x<o;)L[x]=c[x];return L[o]=s($),$t(t,this,L)}}function Kf(t,o){return o.length<2?t:Rr(t,Qt(o,0,-1))}function Tb(t,o){for(var s=t.length,c=xt(o.length,s),x=jt(t);c--;){var D=o[c];t[c]=In(D,s)?x[D]:r}return t}function Nu(t,o){if(!(o==="constructor"&&typeof t[o]=="function")&&o!="__proto__")return t[o]}var Zf=ep(Sf),qo=Fy||function(t,o){return bt.setTimeout(t,o)},zu=ep(Kv);function Qf(t,o,s){var c=o+"";return zu(t,bb(c,Pb(gb(c),s)))}function ep(t){var o=0,s=0;return function(){var c=Yy(),x=V-(c-s);if(s=c,x>0){if(++o>=E)return arguments[0]}else o=0;return t.apply(r,arguments)}}function ha(t,o){var s=-1,c=t.length,x=c-1;for(o=o===r?c:o;++s<o;){var D=vu(s,x),$=t[D];t[D]=t[s],t[s]=$}return t.length=o,t}var tp=Ob(function(t){var o=[];return t.charCodeAt(0)===46&&o.push(""),t.replace(vg,function(s,c,x,D){o.push(x?D.replace(Cg,"$1"):c||s)}),o});function wn(t){if(typeof t=="string"||Ut(t))return t;var o=t+"";return o=="0"&&1/t==-1/0?"-0":o}function Pr(t){if(t!=null){try{return Fi.call(t)}catch{}try{return t+""}catch{}}return""}function Pb(t,o){return Gt(ie,function(s){var c="_."+s[0];o&s[1]&&!Ii(t,c)&&t.push(c)}),t.sort()}function np(t){if(t instanceof Ie)return t.clone();var o=new Kt(t.__wrapped__,t.__chain__);return o.__actions__=jt(t.__actions__),o.__index__=t.__index__,o.__values__=t.__values__,o}function Db(t,o,s){(s?Rt(t,o,s):o===r)?o=1:o=gt(Ae(o),0);var c=t==null?0:t.length;if(!c||o<1)return[];for(var x=0,D=0,$=J(Ji(c/o));x<c;)$[D++]=Qt(t,x,x+=o);return $}function jb(t){for(var o=-1,s=t==null?0:t.length,c=0,x=[];++o<s;){var D=t[o];D&&(x[c++]=D)}return x}function kb(){var t=arguments.length;if(!t)return[];for(var o=J(t-1),s=arguments[0],c=t;c--;)o[c-1]=arguments[c];return Qn(ke(s)?jt(s):[s],wt(o,1))}var Mb=ze(function(t,o){return ft(t)?Uo(t,wt(o,1,ft,!0)):[]}),Ab=ze(function(t,o){var s=en(o);return ft(s)&&(s=r),ft(t)?Uo(t,wt(o,1,ft,!0),Ce(s,2)):[]}),Nb=ze(function(t,o){var s=en(o);return ft(s)&&(s=r),ft(t)?Uo(t,wt(o,1,ft,!0),r,s):[]});function zb(t,o,s){var c=t==null?0:t.length;return c?(o=s||o===r?1:Ae(o),Qt(t,o<0?0:o,c)):[]}function $b(t,o,s){var c=t==null?0:t.length;return c?(o=s||o===r?1:Ae(o),o=c-o,Qt(t,0,o<0?0:o)):[]}function Ib(t,o){return t&&t.length?aa(t,Ce(o,3),!0,!0):[]}function Lb(t,o){return t&&t.length?aa(t,Ce(o,3),!0):[]}function Ub(t,o,s,c){var x=t==null?0:t.length;return x?(s&&typeof s!="number"&&Rt(t,o,s)&&(s=0,c=x),kv(t,o,s,c)):[]}function rp(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=s==null?0:Ae(s);return x<0&&(x=gt(c+x,0)),Li(t,Ce(o,3),x)}function op(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=c-1;return s!==r&&(x=Ae(s),x=s<0?gt(c+x,0):xt(x,c-1)),Li(t,Ce(o,3),x,!0)}function ip(t){var o=t==null?0:t.length;return o?wt(t,1):[]}function Bb(t){var o=t==null?0:t.length;return o?wt(t,ue):[]}function Vb(t,o){var s=t==null?0:t.length;return s?(o=o===r?1:Ae(o),wt(t,o)):[]}function Fb(t){for(var o=-1,s=t==null?0:t.length,c={};++o<s;){var x=t[o];c[x[0]]=x[1]}return c}function ap(t){return t&&t.length?t[0]:r}function Hb(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=s==null?0:Ae(s);return x<0&&(x=gt(c+x,0)),Yr(t,o,x)}function Wb(t){var o=t==null?0:t.length;return o?Qt(t,0,-1):[]}var qb=ze(function(t){var o=rt(t,_u);return o.length&&o[0]===t[0]?du(o):[]}),Yb=ze(function(t){var o=en(t),s=rt(t,_u);return o===en(s)?o=r:s.pop(),s.length&&s[0]===t[0]?du(s,Ce(o,2)):[]}),Xb=ze(function(t){var o=en(t),s=rt(t,_u);return o=typeof o=="function"?o:r,o&&s.pop(),s.length&&s[0]===t[0]?du(s,r,o):[]});function Gb(t,o){return t==null?"":Wy.call(t,o)}function en(t){var o=t==null?0:t.length;return o?t[o-1]:r}function Jb(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=c;return s!==r&&(x=Ae(s),x=x<0?gt(c+x,0):xt(x,c-1)),o===o?Py(t,o,x):Li(t,Lc,x,!0)}function Kb(t,o){return t&&t.length?yf(t,Ae(o)):r}var Zb=ze(sp);function sp(t,o){return t&&t.length&&o&&o.length?yu(t,o):t}function Qb(t,o,s){return t&&t.length&&o&&o.length?yu(t,o,Ce(s,2)):t}function e0(t,o,s){return t&&t.length&&o&&o.length?yu(t,o,r,s):t}var t0=$n(function(t,o){var s=t==null?0:t.length,c=lu(t,o);return wf(t,rt(o,function(x){return In(x,s)?+x:x}).sort(Df)),c});function n0(t,o){var s=[];if(!(t&&t.length))return s;var c=-1,x=[],D=t.length;for(o=Ce(o,3);++c<D;){var $=t[c];o($,c,t)&&(s.push($),x.push(c))}return wf(t,x),s}function $u(t){return t==null?t:Gy.call(t)}function r0(t,o,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&Rt(t,o,s)?(o=0,s=c):(o=o==null?0:Ae(o),s=s===r?c:Ae(s)),Qt(t,o,s)):[]}function o0(t,o){return ia(t,o)}function i0(t,o,s){return wu(t,o,Ce(s,2))}function a0(t,o){var s=t==null?0:t.length;if(s){var c=ia(t,o);if(c<s&&hn(t[c],o))return c}return-1}function s0(t,o){return ia(t,o,!0)}function u0(t,o,s){return wu(t,o,Ce(s,2),!0)}function l0(t,o){var s=t==null?0:t.length;if(s){var c=ia(t,o,!0)-1;if(hn(t[c],o))return c}return-1}function c0(t){return t&&t.length?xf(t):[]}function f0(t,o){return t&&t.length?xf(t,Ce(o,2)):[]}function p0(t){var o=t==null?0:t.length;return o?Qt(t,1,o):[]}function d0(t,o,s){return t&&t.length?(o=s||o===r?1:Ae(o),Qt(t,0,o<0?0:o)):[]}function h0(t,o,s){var c=t==null?0:t.length;return c?(o=s||o===r?1:Ae(o),o=c-o,Qt(t,o<0?0:o,c)):[]}function m0(t,o){return t&&t.length?aa(t,Ce(o,3),!1,!0):[]}function g0(t,o){return t&&t.length?aa(t,Ce(o,3)):[]}var y0=ze(function(t){return rr(wt(t,1,ft,!0))}),v0=ze(function(t){var o=en(t);return ft(o)&&(o=r),rr(wt(t,1,ft,!0),Ce(o,2))}),b0=ze(function(t){var o=en(t);return o=typeof o=="function"?o:r,rr(wt(t,1,ft,!0),r,o)});function w0(t){return t&&t.length?rr(t):[]}function S0(t,o){return t&&t.length?rr(t,Ce(o,2)):[]}function x0(t,o){return o=typeof o=="function"?o:r,t&&t.length?rr(t,r,o):[]}function Iu(t){if(!(t&&t.length))return[];var o=0;return t=Zn(t,function(s){if(ft(s))return o=gt(s.length,o),!0}),tu(o,function(s){return rt(t,Zs(s))})}function up(t,o){if(!(t&&t.length))return[];var s=Iu(t);return o==null?s:rt(s,function(c){return $t(o,r,c)})}var _0=ze(function(t,o){return ft(t)?Uo(t,o):[]}),O0=ze(function(t){return xu(Zn(t,ft))}),E0=ze(function(t){var o=en(t);return ft(o)&&(o=r),xu(Zn(t,ft),Ce(o,2))}),C0=ze(function(t){var o=en(t);return o=typeof o=="function"?o:r,xu(Zn(t,ft),r,o)}),R0=ze(Iu);function T0(t,o){return Cf(t||[],o||[],Lo)}function P0(t,o){return Cf(t||[],o||[],Fo)}var D0=ze(function(t){var o=t.length,s=o>1?t[o-1]:r;return s=typeof s=="function"?(t.pop(),s):r,up(t,s)});function lp(t){var o=R(t);return o.__chain__=!0,o}function j0(t,o){return o(t),t}function ma(t,o){return o(t)}var k0=$n(function(t){var o=t.length,s=o?t[0]:0,c=this.__wrapped__,x=function(D){return lu(D,t)};return o>1||this.__actions__.length||!(c instanceof Ie)||!In(s)?this.thru(x):(c=c.slice(s,+s+(o?1:0)),c.__actions__.push({func:ma,args:[x],thisArg:r}),new Kt(c,this.__chain__).thru(function(D){return o&&!D.length&&D.push(r),D}))});function M0(){return lp(this)}function A0(){return new Kt(this.value(),this.__chain__)}function N0(){this.__values__===r&&(this.__values__=_p(this.value()));var t=this.__index__>=this.__values__.length,o=t?r:this.__values__[this.__index__++];return{done:t,value:o}}function z0(){return this}function $0(t){for(var o,s=this;s instanceof ea;){var c=np(s);c.__index__=0,c.__values__=r,o?x.__wrapped__=c:o=c;var x=c;s=s.__wrapped__}return x.__wrapped__=t,o}function I0(){var t=this.__wrapped__;if(t instanceof Ie){var o=t;return this.__actions__.length&&(o=new Ie(this)),o=o.reverse(),o.__actions__.push({func:ma,args:[$u],thisArg:r}),new Kt(o,this.__chain__)}return this.thru($u)}function L0(){return Ef(this.__wrapped__,this.__actions__)}var U0=sa(function(t,o,s){qe.call(t,s)?++t[s]:Nn(t,s,1)});function B0(t,o,s){var c=ke(t)?$c:jv;return s&&Rt(t,o,s)&&(o=r),c(t,Ce(o,3))}function V0(t,o){var s=ke(t)?Zn:uf;return s(t,Ce(o,3))}var F0=zf(rp),H0=zf(op);function W0(t,o){return wt(ga(t,o),1)}function q0(t,o){return wt(ga(t,o),ue)}function Y0(t,o,s){return s=s===r?1:Ae(s),wt(ga(t,o),s)}function cp(t,o){var s=ke(t)?Gt:nr;return s(t,Ce(o,3))}function fp(t,o){var s=ke(t)?py:sf;return s(t,Ce(o,3))}var X0=sa(function(t,o,s){qe.call(t,s)?t[s].push(o):Nn(t,s,[o])});function G0(t,o,s,c){t=kt(t)?t:io(t),s=s&&!c?Ae(s):0;var x=t.length;return s<0&&(s=gt(x+s,0)),Sa(t)?s<=x&&t.indexOf(o,s)>-1:!!x&&Yr(t,o,s)>-1}var J0=ze(function(t,o,s){var c=-1,x=typeof o=="function",D=kt(t)?J(t.length):[];return nr(t,function($){D[++c]=x?$t(o,$,s):Bo($,o,s)}),D}),K0=sa(function(t,o,s){Nn(t,s,o)});function ga(t,o){var s=ke(t)?rt:hf;return s(t,Ce(o,3))}function Z0(t,o,s,c){return t==null?[]:(ke(o)||(o=o==null?[]:[o]),s=c?r:s,ke(s)||(s=s==null?[]:[s]),vf(t,o,s))}var Q0=sa(function(t,o,s){t[s?0:1].push(o)},function(){return[[],[]]});function ew(t,o,s){var c=ke(t)?Js:Bc,x=arguments.length<3;return c(t,Ce(o,4),s,x,nr)}function tw(t,o,s){var c=ke(t)?dy:Bc,x=arguments.length<3;return c(t,Ce(o,4),s,x,sf)}function nw(t,o){var s=ke(t)?Zn:uf;return s(t,ba(Ce(o,3)))}function rw(t){var o=ke(t)?nf:Gv;return o(t)}function ow(t,o,s){(s?Rt(t,o,s):o===r)?o=1:o=Ae(o);var c=ke(t)?Cv:Jv;return c(t,o)}function iw(t){var o=ke(t)?Rv:Zv;return o(t)}function aw(t){if(t==null)return 0;if(kt(t))return Sa(t)?Gr(t):t.length;var o=_t(t);return o==he||o==ye?t.size:mu(t).length}function sw(t,o,s){var c=ke(t)?Ks:Qv;return s&&Rt(t,o,s)&&(o=r),c(t,Ce(o,3))}var uw=ze(function(t,o){if(t==null)return[];var s=o.length;return s>1&&Rt(t,o[0],o[1])?o=[]:s>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),vf(t,wt(o,1),[])}),ya=Vy||function(){return bt.Date.now()};function lw(t,o){if(typeof o!="function")throw new Jt(l);return t=Ae(t),function(){if(--t<1)return o.apply(this,arguments)}}function pp(t,o,s){return o=s?r:o,o=t&&o==null?t.length:o,zn(t,j,r,r,r,r,o)}function dp(t,o){var s;if(typeof o!="function")throw new Jt(l);return t=Ae(t),function(){return--t>0&&(s=o.apply(this,arguments)),t<=1&&(o=r),s}}var Lu=ze(function(t,o,s){var c=m;if(s.length){var x=er(s,ro(Lu));c|=v}return zn(t,c,o,s,x)}),hp=ze(function(t,o,s){var c=m|w;if(s.length){var x=er(s,ro(hp));c|=v}return zn(o,c,t,s,x)});function mp(t,o,s){o=s?r:o;var c=zn(t,y,r,r,r,r,r,o);return c.placeholder=mp.placeholder,c}function gp(t,o,s){o=s?r:o;var c=zn(t,C,r,r,r,r,r,o);return c.placeholder=gp.placeholder,c}function yp(t,o,s){var c,x,D,$,L,H,ne=0,oe=!1,le=!1,me=!0;if(typeof t!="function")throw new Jt(l);o=tn(o)||0,it(s)&&(oe=!!s.leading,le="maxWait"in s,D=le?gt(tn(s.maxWait)||0,o):D,me="trailing"in s?!!s.trailing:me);function xe(pt){var mn=c,Bn=x;return c=x=r,ne=pt,$=t.apply(Bn,mn),$}function Re(pt){return ne=pt,L=qo($e,o),oe?xe(pt):$}function Ne(pt){var mn=pt-H,Bn=pt-ne,zp=o-mn;return le?xt(zp,D-Bn):zp}function Te(pt){var mn=pt-H,Bn=pt-ne;return H===r||mn>=o||mn<0||le&&Bn>=D}function $e(){var pt=ya();if(Te(pt))return Le(pt);L=qo($e,Ne(pt))}function Le(pt){return L=r,me&&c?xe(pt):(c=x=r,$)}function Bt(){L!==r&&Rf(L),ne=0,c=H=x=L=r}function Tt(){return L===r?$:Le(ya())}function Vt(){var pt=ya(),mn=Te(pt);if(c=arguments,x=this,H=pt,mn){if(L===r)return Re(H);if(le)return Rf(L),L=qo($e,o),xe(H)}return L===r&&(L=qo($e,o)),$}return Vt.cancel=Bt,Vt.flush=Tt,Vt}var cw=ze(function(t,o){return af(t,1,o)}),fw=ze(function(t,o,s){return af(t,tn(o)||0,s)});function pw(t){return zn(t,F)}function va(t,o){if(typeof t!="function"||o!=null&&typeof o!="function")throw new Jt(l);var s=function(){var c=arguments,x=o?o.apply(this,c):c[0],D=s.cache;if(D.has(x))return D.get(x);var $=t.apply(this,c);return s.cache=D.set(x,$)||D,$};return s.cache=new(va.Cache||An),s}va.Cache=An;function ba(t){if(typeof t!="function")throw new Jt(l);return function(){var o=arguments;switch(o.length){case 0:return!t.call(this);case 1:return!t.call(this,o[0]);case 2:return!t.call(this,o[0],o[1]);case 3:return!t.call(this,o[0],o[1],o[2])}return!t.apply(this,o)}}function dw(t){return dp(2,t)}var hw=eb(function(t,o){o=o.length==1&&ke(o[0])?rt(o[0],It(Ce())):rt(wt(o,1),It(Ce()));var s=o.length;return ze(function(c){for(var x=-1,D=xt(c.length,s);++x<D;)c[x]=o[x].call(this,c[x]);return $t(t,this,c)})}),Uu=ze(function(t,o){var s=er(o,ro(Uu));return zn(t,v,r,o,s)}),vp=ze(function(t,o){var s=er(o,ro(vp));return zn(t,k,r,o,s)}),mw=$n(function(t,o){return zn(t,z,r,r,r,o)});function gw(t,o){if(typeof t!="function")throw new Jt(l);return o=o===r?o:Ae(o),ze(t,o)}function yw(t,o){if(typeof t!="function")throw new Jt(l);return o=o==null?0:gt(Ae(o),0),ze(function(s){var c=s[o],x=ir(s,0,o);return c&&Qn(x,c),$t(t,this,x)})}function vw(t,o,s){var c=!0,x=!0;if(typeof t!="function")throw new Jt(l);return it(s)&&(c="leading"in s?!!s.leading:c,x="trailing"in s?!!s.trailing:x),yp(t,o,{leading:c,maxWait:o,trailing:x})}function bw(t){return pp(t,1)}function ww(t,o){return Uu(Ou(o),t)}function Sw(){if(!arguments.length)return[];var t=arguments[0];return ke(t)?t:[t]}function xw(t){return Zt(t,S)}function _w(t,o){return o=typeof o=="function"?o:r,Zt(t,S,o)}function Ow(t){return Zt(t,T|S)}function Ew(t,o){return o=typeof o=="function"?o:r,Zt(t,T|S,o)}function Cw(t,o){return o==null||of(t,o,vt(o))}function hn(t,o){return t===o||t!==t&&o!==o}var Rw=fa(pu),Tw=fa(function(t,o){return t>=o}),Dr=ff(function(){return arguments}())?ff:function(t){return st(t)&&qe.call(t,"callee")&&!Jc.call(t,"callee")},ke=J.isArray,Pw=jc?It(jc):$v;function kt(t){return t!=null&&wa(t.length)&&!Ln(t)}function ft(t){return st(t)&&kt(t)}function Dw(t){return t===!0||t===!1||st(t)&&Ct(t)==A}var ar=Hy||Ku,jw=kc?It(kc):Iv;function kw(t){return st(t)&&t.nodeType===1&&!Yo(t)}function Mw(t){if(t==null)return!0;if(kt(t)&&(ke(t)||typeof t=="string"||typeof t.splice=="function"||ar(t)||oo(t)||Dr(t)))return!t.length;var o=_t(t);if(o==he||o==ye)return!t.size;if(Wo(t))return!mu(t).length;for(var s in t)if(qe.call(t,s))return!1;return!0}function Aw(t,o){return Vo(t,o)}function Nw(t,o,s){s=typeof s=="function"?s:r;var c=s?s(t,o):r;return c===r?Vo(t,o,r,s):!!c}function Bu(t){if(!st(t))return!1;var o=Ct(t);return o==ae||o==q||typeof t.message=="string"&&typeof t.name=="string"&&!Yo(t)}function zw(t){return typeof t=="number"&&Zc(t)}function Ln(t){if(!it(t))return!1;var o=Ct(t);return o==W||o==pe||o==N||o==Se}function bp(t){return typeof t=="number"&&t==Ae(t)}function wa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ce}function it(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function st(t){return t!=null&&typeof t=="object"}var wp=Mc?It(Mc):Uv;function $w(t,o){return t===o||hu(t,o,ju(o))}function Iw(t,o,s){return s=typeof s=="function"?s:r,hu(t,o,ju(o),s)}function Lw(t){return Sp(t)&&t!=+t}function Uw(t){if(_b(t))throw new De(u);return pf(t)}function Bw(t){return t===null}function Vw(t){return t==null}function Sp(t){return typeof t=="number"||st(t)&&Ct(t)==Oe}function Yo(t){if(!st(t)||Ct(t)!=fe)return!1;var o=Yi(t);if(o===null)return!0;var s=qe.call(o,"constructor")&&o.constructor;return typeof s=="function"&&s instanceof s&&Fi.call(s)==Iy}var Vu=Ac?It(Ac):Bv;function Fw(t){return bp(t)&&t>=-9007199254740991&&t<=ce}var xp=Nc?It(Nc):Vv;function Sa(t){return typeof t=="string"||!ke(t)&&st(t)&&Ct(t)==yt}function Ut(t){return typeof t=="symbol"||st(t)&&Ct(t)==Fe}var oo=zc?It(zc):Fv;function Hw(t){return t===r}function Ww(t){return st(t)&&_t(t)==qt}function qw(t){return st(t)&&Ct(t)==Jn}var Yw=fa(gu),Xw=fa(function(t,o){return t<=o});function _p(t){if(!t)return[];if(kt(t))return Sa(t)?pn(t):jt(t);if(Ao&&t[Ao])return Cy(t[Ao]());var o=_t(t),s=o==he?ru:o==ye?Ui:io;return s(t)}function Un(t){if(!t)return t===0?t:0;if(t=tn(t),t===ue||t===-1/0){var o=t<0?-1:1;return o*de}return t===t?t:0}function Ae(t){var o=Un(t),s=o%1;return o===o?s?o-s:o:0}function Op(t){return t?Cr(Ae(t),0,P):0}function tn(t){if(typeof t=="number")return t;if(Ut(t))return G;if(it(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=it(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=Vc(t);var s=Pg.test(t);return s||jg.test(t)?ly(t.slice(2),s?2:8):Tg.test(t)?G:+t}function Ep(t){return bn(t,Mt(t))}function Gw(t){return t?Cr(Ae(t),-9007199254740991,ce):t===0?t:0}function He(t){return t==null?"":Lt(t)}var Jw=to(function(t,o){if(Wo(o)||kt(o)){bn(o,vt(o),t);return}for(var s in o)qe.call(o,s)&&Lo(t,s,o[s])}),Cp=to(function(t,o){bn(o,Mt(o),t)}),xa=to(function(t,o,s,c){bn(o,Mt(o),t,c)}),Kw=to(function(t,o,s,c){bn(o,vt(o),t,c)}),Zw=$n(lu);function Qw(t,o){var s=eo(t);return o==null?s:rf(s,o)}var eS=ze(function(t,o){t=Ke(t);var s=-1,c=o.length,x=c>2?o[2]:r;for(x&&Rt(o[0],o[1],x)&&(c=1);++s<c;)for(var D=o[s],$=Mt(D),L=-1,H=$.length;++L<H;){var ne=$[L],oe=t[ne];(oe===r||hn(oe,Kr[ne])&&!qe.call(t,ne))&&(t[ne]=D[ne])}return t}),tS=ze(function(t){return t.push(r,Ff),$t(Rp,r,t)});function nS(t,o){return Ic(t,Ce(o,3),vn)}function rS(t,o){return Ic(t,Ce(o,3),fu)}function oS(t,o){return t==null?t:cu(t,Ce(o,3),Mt)}function iS(t,o){return t==null?t:lf(t,Ce(o,3),Mt)}function aS(t,o){return t&&vn(t,Ce(o,3))}function sS(t,o){return t&&fu(t,Ce(o,3))}function uS(t){return t==null?[]:ra(t,vt(t))}function lS(t){return t==null?[]:ra(t,Mt(t))}function Fu(t,o,s){var c=t==null?r:Rr(t,o);return c===r?s:c}function cS(t,o){return t!=null&&qf(t,o,Mv)}function Hu(t,o){return t!=null&&qf(t,o,Av)}var fS=If(function(t,o,s){o!=null&&typeof o.toString!="function"&&(o=Hi.call(o)),t[o]=s},qu(At)),pS=If(function(t,o,s){o!=null&&typeof o.toString!="function"&&(o=Hi.call(o)),qe.call(t,o)?t[o].push(s):t[o]=[s]},Ce),dS=ze(Bo);function vt(t){return kt(t)?tf(t):mu(t)}function Mt(t){return kt(t)?tf(t,!0):Hv(t)}function hS(t,o){var s={};return o=Ce(o,3),vn(t,function(c,x,D){Nn(s,o(c,x,D),c)}),s}function mS(t,o){var s={};return o=Ce(o,3),vn(t,function(c,x,D){Nn(s,x,o(c,x,D))}),s}var gS=to(function(t,o,s){oa(t,o,s)}),Rp=to(function(t,o,s,c){oa(t,o,s,c)}),yS=$n(function(t,o){var s={};if(t==null)return s;var c=!1;o=rt(o,function(D){return D=or(D,t),c||(c=D.length>1),D}),bn(t,Pu(t),s),c&&(s=Zt(s,T|M|S,fb));for(var x=o.length;x--;)Su(s,o[x]);return s});function vS(t,o){return Tp(t,ba(Ce(o)))}var bS=$n(function(t,o){return t==null?{}:qv(t,o)});function Tp(t,o){if(t==null)return{};var s=rt(Pu(t),function(c){return[c]});return o=Ce(o),bf(t,s,function(c,x){return o(c,x[0])})}function wS(t,o,s){o=or(o,t);var c=-1,x=o.length;for(x||(x=1,t=r);++c<x;){var D=t==null?r:t[wn(o[c])];D===r&&(c=x,D=s),t=Ln(D)?D.call(t):D}return t}function SS(t,o,s){return t==null?t:Fo(t,o,s)}function xS(t,o,s,c){return c=typeof c=="function"?c:r,t==null?t:Fo(t,o,s,c)}var Pp=Bf(vt),Dp=Bf(Mt);function _S(t,o,s){var c=ke(t),x=c||ar(t)||oo(t);if(o=Ce(o,4),s==null){var D=t&&t.constructor;x?s=c?new D:[]:it(t)?s=Ln(D)?eo(Yi(t)):{}:s={}}return(x?Gt:vn)(t,function($,L,H){return o(s,$,L,H)}),s}function OS(t,o){return t==null?!0:Su(t,o)}function ES(t,o,s){return t==null?t:Of(t,o,Ou(s))}function CS(t,o,s,c){return c=typeof c=="function"?c:r,t==null?t:Of(t,o,Ou(s),c)}function io(t){return t==null?[]:nu(t,vt(t))}function RS(t){return t==null?[]:nu(t,Mt(t))}function TS(t,o,s){return s===r&&(s=o,o=r),s!==r&&(s=tn(s),s=s===s?s:0),o!==r&&(o=tn(o),o=o===o?o:0),Cr(tn(t),o,s)}function PS(t,o,s){return o=Un(o),s===r?(s=o,o=0):s=Un(s),t=tn(t),Nv(t,o,s)}function DS(t,o,s){if(s&&typeof s!="boolean"&&Rt(t,o,s)&&(o=s=r),s===r&&(typeof o=="boolean"?(s=o,o=r):typeof t=="boolean"&&(s=t,t=r)),t===r&&o===r?(t=0,o=1):(t=Un(t),o===r?(o=t,t=0):o=Un(o)),t>o){var c=t;t=o,o=c}if(s||t%1||o%1){var x=Qc();return xt(t+x*(o-t+uy("1e-"+((x+"").length-1))),o)}return vu(t,o)}var jS=no(function(t,o,s){return o=o.toLowerCase(),t+(s?jp(o):o)});function jp(t){return Wu(He(t).toLowerCase())}function kp(t){return t=He(t),t&&t.replace(Mg,Sy).replace(Zg,"")}function kS(t,o,s){t=He(t),o=Lt(o);var c=t.length;s=s===r?c:Cr(Ae(s),0,c);var x=s;return s-=o.length,s>=0&&t.slice(s,x)==o}function MS(t){return t=He(t),t&&Is.test(t)?t.replace(Ai,xy):t}function AS(t){return t=He(t),t&&bg.test(t)?t.replace(Us,"\\$&"):t}var NS=no(function(t,o,s){return t+(s?"-":"")+o.toLowerCase()}),zS=no(function(t,o,s){return t+(s?" ":"")+o.toLowerCase()}),$S=Nf("toLowerCase");function IS(t,o,s){t=He(t),o=Ae(o);var c=o?Gr(t):0;if(!o||c>=o)return t;var x=(o-c)/2;return ca(Ki(x),s)+t+ca(Ji(x),s)}function LS(t,o,s){t=He(t),o=Ae(o);var c=o?Gr(t):0;return o&&c<o?t+ca(o-c,s):t}function US(t,o,s){t=He(t),o=Ae(o);var c=o?Gr(t):0;return o&&c<o?ca(o-c,s)+t:t}function BS(t,o,s){return s||o==null?o=0:o&&(o=+o),Xy(He(t).replace(Bs,""),o||0)}function VS(t,o,s){return(s?Rt(t,o,s):o===r)?o=1:o=Ae(o),bu(He(t),o)}function FS(){var t=arguments,o=He(t[0]);return t.length<3?o:o.replace(t[1],t[2])}var HS=no(function(t,o,s){return t+(s?"_":"")+o.toLowerCase()});function WS(t,o,s){return s&&typeof s!="number"&&Rt(t,o,s)&&(o=s=r),s=s===r?P:s>>>0,s?(t=He(t),t&&(typeof o=="string"||o!=null&&!Vu(o))&&(o=Lt(o),!o&&Xr(t))?ir(pn(t),0,s):t.split(o,s)):[]}var qS=no(function(t,o,s){return t+(s?" ":"")+Wu(o)});function YS(t,o,s){return t=He(t),s=s==null?0:Cr(Ae(s),0,t.length),o=Lt(o),t.slice(s,s+o.length)==o}function XS(t,o,s){var c=R.templateSettings;s&&Rt(t,o,s)&&(o=r),t=He(t),o=xa({},o,c,Vf);var x=xa({},o.imports,c.imports,Vf),D=vt(x),$=nu(x,D),L,H,ne=0,oe=o.interpolate||Ni,le="__p += '",me=ou((o.escape||Ni).source+"|"+oe.source+"|"+(oe===Dt?Rg:Ni).source+"|"+(o.evaluate||Ni).source+"|$","g"),xe="//# sourceURL="+(qe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
63
+ `)}function wb(t){return ke(t)||Dr(t)||!!(Kc&&t&&t[Kc])}function In(t,o){var s=typeof t;return o=o??ce,!!o&&(s=="number"||s!="symbol"&&kg.test(t))&&t>-1&&t%1==0&&t<o}function Rt(t,o,s){if(!it(s))return!1;var c=typeof o;return(c=="number"?kt(s)&&In(o,s.length):c=="string"&&o in s)?hn(s[o],t):!1}function Mu(t,o){if(ke(t))return!1;var s=typeof t;return s=="number"||s=="symbol"||s=="boolean"||t==null||Ut(t)?!0:yg.test(t)||!Sr.test(t)||o!=null&&t in Ke(o)}function Sb(t){var o=typeof t;return o=="string"||o=="number"||o=="symbol"||o=="boolean"?t!=="__proto__":t===null}function Au(t){var o=pa(t),s=R[o];if(typeof s!="function"||!(o in Ie.prototype))return!1;if(t===s)return!0;var c=Du(s);return!!c&&t===c[0]}function xb(t){return!!Yc&&Yc in t}var _b=Vi?Ln:Ku;function Yo(t){var o=t&&t.constructor,s=typeof o=="function"&&o.prototype||Kr;return t===s}function Xf(t){return t===t&&!it(t)}function Gf(t,o){return function(s){return s==null?!1:s[t]===o&&(o!==r||t in Ke(s))}}function Ob(t){var o=va(t,function(c){return s.size===b&&s.clear(),c}),s=o.cache;return o}function Eb(t,o){var s=t[1],c=o[1],x=s|c,D=x<(m|w|j),$=c==j&&s==y||c==j&&s==z&&t[7].length<=o[8]||c==(j|z)&&o[7].length<=o[8]&&s==y;if(!(D||$))return t;c&m&&(t[2]=o[2],x|=s&m?0:h);var L=o[3];if(L){var H=t[3];t[3]=H?jf(H,L,o[4]):L,t[4]=H?er(t[3],_):o[4]}return L=o[5],L&&(H=t[5],t[5]=H?kf(H,L,o[6]):L,t[6]=H?er(t[5],_):o[6]),L=o[7],L&&(t[7]=L),c&j&&(t[8]=t[8]==null?o[8]:xt(t[8],o[8])),t[9]==null&&(t[9]=o[9]),t[0]=o[0],t[1]=x,t}function Cb(t){var o=[];if(t!=null)for(var s in Ke(t))o.push(s);return o}function Rb(t){return Hi.call(t)}function Jf(t,o,s){return o=gt(o===r?t.length-1:o,0),function(){for(var c=arguments,x=-1,D=gt(c.length-o,0),$=J(D);++x<D;)$[x]=c[o+x];x=-1;for(var L=J(o+1);++x<o;)L[x]=c[x];return L[o]=s($),$t(t,this,L)}}function Kf(t,o){return o.length<2?t:Rr(t,Qt(o,0,-1))}function Tb(t,o){for(var s=t.length,c=xt(o.length,s),x=jt(t);c--;){var D=o[c];t[c]=In(D,s)?x[D]:r}return t}function Nu(t,o){if(!(o==="constructor"&&typeof t[o]=="function")&&o!="__proto__")return t[o]}var Zf=ep(Sf),Xo=Fy||function(t,o){return bt.setTimeout(t,o)},zu=ep(Kv);function Qf(t,o,s){var c=o+"";return zu(t,bb(c,Pb(gb(c),s)))}function ep(t){var o=0,s=0;return function(){var c=Yy(),x=V-(c-s);if(s=c,x>0){if(++o>=E)return arguments[0]}else o=0;return t.apply(r,arguments)}}function ha(t,o){var s=-1,c=t.length,x=c-1;for(o=o===r?c:o;++s<o;){var D=vu(s,x),$=t[D];t[D]=t[s],t[s]=$}return t.length=o,t}var tp=Ob(function(t){var o=[];return t.charCodeAt(0)===46&&o.push(""),t.replace(vg,function(s,c,x,D){o.push(x?D.replace(Cg,"$1"):c||s)}),o});function wn(t){if(typeof t=="string"||Ut(t))return t;var o=t+"";return o=="0"&&1/t==-1/0?"-0":o}function Pr(t){if(t!=null){try{return Fi.call(t)}catch{}try{return t+""}catch{}}return""}function Pb(t,o){return Gt(ie,function(s){var c="_."+s[0];o&s[1]&&!Ii(t,c)&&t.push(c)}),t.sort()}function np(t){if(t instanceof Ie)return t.clone();var o=new Kt(t.__wrapped__,t.__chain__);return o.__actions__=jt(t.__actions__),o.__index__=t.__index__,o.__values__=t.__values__,o}function Db(t,o,s){(s?Rt(t,o,s):o===r)?o=1:o=gt(Ae(o),0);var c=t==null?0:t.length;if(!c||o<1)return[];for(var x=0,D=0,$=J(Ji(c/o));x<c;)$[D++]=Qt(t,x,x+=o);return $}function jb(t){for(var o=-1,s=t==null?0:t.length,c=0,x=[];++o<s;){var D=t[o];D&&(x[c++]=D)}return x}function kb(){var t=arguments.length;if(!t)return[];for(var o=J(t-1),s=arguments[0],c=t;c--;)o[c-1]=arguments[c];return Qn(ke(s)?jt(s):[s],wt(o,1))}var Mb=ze(function(t,o){return ft(t)?Vo(t,wt(o,1,ft,!0)):[]}),Ab=ze(function(t,o){var s=en(o);return ft(s)&&(s=r),ft(t)?Vo(t,wt(o,1,ft,!0),Ce(s,2)):[]}),Nb=ze(function(t,o){var s=en(o);return ft(s)&&(s=r),ft(t)?Vo(t,wt(o,1,ft,!0),r,s):[]});function zb(t,o,s){var c=t==null?0:t.length;return c?(o=s||o===r?1:Ae(o),Qt(t,o<0?0:o,c)):[]}function $b(t,o,s){var c=t==null?0:t.length;return c?(o=s||o===r?1:Ae(o),o=c-o,Qt(t,0,o<0?0:o)):[]}function Ib(t,o){return t&&t.length?aa(t,Ce(o,3),!0,!0):[]}function Lb(t,o){return t&&t.length?aa(t,Ce(o,3),!0):[]}function Ub(t,o,s,c){var x=t==null?0:t.length;return x?(s&&typeof s!="number"&&Rt(t,o,s)&&(s=0,c=x),kv(t,o,s,c)):[]}function rp(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=s==null?0:Ae(s);return x<0&&(x=gt(c+x,0)),Li(t,Ce(o,3),x)}function op(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=c-1;return s!==r&&(x=Ae(s),x=s<0?gt(c+x,0):xt(x,c-1)),Li(t,Ce(o,3),x,!0)}function ip(t){var o=t==null?0:t.length;return o?wt(t,1):[]}function Bb(t){var o=t==null?0:t.length;return o?wt(t,ue):[]}function Vb(t,o){var s=t==null?0:t.length;return s?(o=o===r?1:Ae(o),wt(t,o)):[]}function Fb(t){for(var o=-1,s=t==null?0:t.length,c={};++o<s;){var x=t[o];c[x[0]]=x[1]}return c}function ap(t){return t&&t.length?t[0]:r}function Hb(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=s==null?0:Ae(s);return x<0&&(x=gt(c+x,0)),Yr(t,o,x)}function Wb(t){var o=t==null?0:t.length;return o?Qt(t,0,-1):[]}var qb=ze(function(t){var o=rt(t,_u);return o.length&&o[0]===t[0]?du(o):[]}),Yb=ze(function(t){var o=en(t),s=rt(t,_u);return o===en(s)?o=r:s.pop(),s.length&&s[0]===t[0]?du(s,Ce(o,2)):[]}),Xb=ze(function(t){var o=en(t),s=rt(t,_u);return o=typeof o=="function"?o:r,o&&s.pop(),s.length&&s[0]===t[0]?du(s,r,o):[]});function Gb(t,o){return t==null?"":Wy.call(t,o)}function en(t){var o=t==null?0:t.length;return o?t[o-1]:r}function Jb(t,o,s){var c=t==null?0:t.length;if(!c)return-1;var x=c;return s!==r&&(x=Ae(s),x=x<0?gt(c+x,0):xt(x,c-1)),o===o?Py(t,o,x):Li(t,Lc,x,!0)}function Kb(t,o){return t&&t.length?yf(t,Ae(o)):r}var Zb=ze(sp);function sp(t,o){return t&&t.length&&o&&o.length?yu(t,o):t}function Qb(t,o,s){return t&&t.length&&o&&o.length?yu(t,o,Ce(s,2)):t}function e0(t,o,s){return t&&t.length&&o&&o.length?yu(t,o,r,s):t}var t0=$n(function(t,o){var s=t==null?0:t.length,c=lu(t,o);return wf(t,rt(o,function(x){return In(x,s)?+x:x}).sort(Df)),c});function n0(t,o){var s=[];if(!(t&&t.length))return s;var c=-1,x=[],D=t.length;for(o=Ce(o,3);++c<D;){var $=t[c];o($,c,t)&&(s.push($),x.push(c))}return wf(t,x),s}function $u(t){return t==null?t:Gy.call(t)}function r0(t,o,s){var c=t==null?0:t.length;return c?(s&&typeof s!="number"&&Rt(t,o,s)?(o=0,s=c):(o=o==null?0:Ae(o),s=s===r?c:Ae(s)),Qt(t,o,s)):[]}function o0(t,o){return ia(t,o)}function i0(t,o,s){return wu(t,o,Ce(s,2))}function a0(t,o){var s=t==null?0:t.length;if(s){var c=ia(t,o);if(c<s&&hn(t[c],o))return c}return-1}function s0(t,o){return ia(t,o,!0)}function u0(t,o,s){return wu(t,o,Ce(s,2),!0)}function l0(t,o){var s=t==null?0:t.length;if(s){var c=ia(t,o,!0)-1;if(hn(t[c],o))return c}return-1}function c0(t){return t&&t.length?xf(t):[]}function f0(t,o){return t&&t.length?xf(t,Ce(o,2)):[]}function p0(t){var o=t==null?0:t.length;return o?Qt(t,1,o):[]}function d0(t,o,s){return t&&t.length?(o=s||o===r?1:Ae(o),Qt(t,0,o<0?0:o)):[]}function h0(t,o,s){var c=t==null?0:t.length;return c?(o=s||o===r?1:Ae(o),o=c-o,Qt(t,o<0?0:o,c)):[]}function m0(t,o){return t&&t.length?aa(t,Ce(o,3),!1,!0):[]}function g0(t,o){return t&&t.length?aa(t,Ce(o,3)):[]}var y0=ze(function(t){return rr(wt(t,1,ft,!0))}),v0=ze(function(t){var o=en(t);return ft(o)&&(o=r),rr(wt(t,1,ft,!0),Ce(o,2))}),b0=ze(function(t){var o=en(t);return o=typeof o=="function"?o:r,rr(wt(t,1,ft,!0),r,o)});function w0(t){return t&&t.length?rr(t):[]}function S0(t,o){return t&&t.length?rr(t,Ce(o,2)):[]}function x0(t,o){return o=typeof o=="function"?o:r,t&&t.length?rr(t,r,o):[]}function Iu(t){if(!(t&&t.length))return[];var o=0;return t=Zn(t,function(s){if(ft(s))return o=gt(s.length,o),!0}),tu(o,function(s){return rt(t,Zs(s))})}function up(t,o){if(!(t&&t.length))return[];var s=Iu(t);return o==null?s:rt(s,function(c){return $t(o,r,c)})}var _0=ze(function(t,o){return ft(t)?Vo(t,o):[]}),O0=ze(function(t){return xu(Zn(t,ft))}),E0=ze(function(t){var o=en(t);return ft(o)&&(o=r),xu(Zn(t,ft),Ce(o,2))}),C0=ze(function(t){var o=en(t);return o=typeof o=="function"?o:r,xu(Zn(t,ft),r,o)}),R0=ze(Iu);function T0(t,o){return Cf(t||[],o||[],Bo)}function P0(t,o){return Cf(t||[],o||[],Wo)}var D0=ze(function(t){var o=t.length,s=o>1?t[o-1]:r;return s=typeof s=="function"?(t.pop(),s):r,up(t,s)});function lp(t){var o=R(t);return o.__chain__=!0,o}function j0(t,o){return o(t),t}function ma(t,o){return o(t)}var k0=$n(function(t){var o=t.length,s=o?t[0]:0,c=this.__wrapped__,x=function(D){return lu(D,t)};return o>1||this.__actions__.length||!(c instanceof Ie)||!In(s)?this.thru(x):(c=c.slice(s,+s+(o?1:0)),c.__actions__.push({func:ma,args:[x],thisArg:r}),new Kt(c,this.__chain__).thru(function(D){return o&&!D.length&&D.push(r),D}))});function M0(){return lp(this)}function A0(){return new Kt(this.value(),this.__chain__)}function N0(){this.__values__===r&&(this.__values__=_p(this.value()));var t=this.__index__>=this.__values__.length,o=t?r:this.__values__[this.__index__++];return{done:t,value:o}}function z0(){return this}function $0(t){for(var o,s=this;s instanceof ea;){var c=np(s);c.__index__=0,c.__values__=r,o?x.__wrapped__=c:o=c;var x=c;s=s.__wrapped__}return x.__wrapped__=t,o}function I0(){var t=this.__wrapped__;if(t instanceof Ie){var o=t;return this.__actions__.length&&(o=new Ie(this)),o=o.reverse(),o.__actions__.push({func:ma,args:[$u],thisArg:r}),new Kt(o,this.__chain__)}return this.thru($u)}function L0(){return Ef(this.__wrapped__,this.__actions__)}var U0=sa(function(t,o,s){qe.call(t,s)?++t[s]:Nn(t,s,1)});function B0(t,o,s){var c=ke(t)?$c:jv;return s&&Rt(t,o,s)&&(o=r),c(t,Ce(o,3))}function V0(t,o){var s=ke(t)?Zn:uf;return s(t,Ce(o,3))}var F0=zf(rp),H0=zf(op);function W0(t,o){return wt(ga(t,o),1)}function q0(t,o){return wt(ga(t,o),ue)}function Y0(t,o,s){return s=s===r?1:Ae(s),wt(ga(t,o),s)}function cp(t,o){var s=ke(t)?Gt:nr;return s(t,Ce(o,3))}function fp(t,o){var s=ke(t)?py:sf;return s(t,Ce(o,3))}var X0=sa(function(t,o,s){qe.call(t,s)?t[s].push(o):Nn(t,s,[o])});function G0(t,o,s,c){t=kt(t)?t:io(t),s=s&&!c?Ae(s):0;var x=t.length;return s<0&&(s=gt(x+s,0)),Sa(t)?s<=x&&t.indexOf(o,s)>-1:!!x&&Yr(t,o,s)>-1}var J0=ze(function(t,o,s){var c=-1,x=typeof o=="function",D=kt(t)?J(t.length):[];return nr(t,function($){D[++c]=x?$t(o,$,s):Fo($,o,s)}),D}),K0=sa(function(t,o,s){Nn(t,s,o)});function ga(t,o){var s=ke(t)?rt:hf;return s(t,Ce(o,3))}function Z0(t,o,s,c){return t==null?[]:(ke(o)||(o=o==null?[]:[o]),s=c?r:s,ke(s)||(s=s==null?[]:[s]),vf(t,o,s))}var Q0=sa(function(t,o,s){t[s?0:1].push(o)},function(){return[[],[]]});function ew(t,o,s){var c=ke(t)?Js:Bc,x=arguments.length<3;return c(t,Ce(o,4),s,x,nr)}function tw(t,o,s){var c=ke(t)?dy:Bc,x=arguments.length<3;return c(t,Ce(o,4),s,x,sf)}function nw(t,o){var s=ke(t)?Zn:uf;return s(t,ba(Ce(o,3)))}function rw(t){var o=ke(t)?nf:Gv;return o(t)}function ow(t,o,s){(s?Rt(t,o,s):o===r)?o=1:o=Ae(o);var c=ke(t)?Cv:Jv;return c(t,o)}function iw(t){var o=ke(t)?Rv:Zv;return o(t)}function aw(t){if(t==null)return 0;if(kt(t))return Sa(t)?Gr(t):t.length;var o=_t(t);return o==he||o==ye?t.size:mu(t).length}function sw(t,o,s){var c=ke(t)?Ks:Qv;return s&&Rt(t,o,s)&&(o=r),c(t,Ce(o,3))}var uw=ze(function(t,o){if(t==null)return[];var s=o.length;return s>1&&Rt(t,o[0],o[1])?o=[]:s>2&&Rt(o[0],o[1],o[2])&&(o=[o[0]]),vf(t,wt(o,1),[])}),ya=Vy||function(){return bt.Date.now()};function lw(t,o){if(typeof o!="function")throw new Jt(l);return t=Ae(t),function(){if(--t<1)return o.apply(this,arguments)}}function pp(t,o,s){return o=s?r:o,o=t&&o==null?t.length:o,zn(t,j,r,r,r,r,o)}function dp(t,o){var s;if(typeof o!="function")throw new Jt(l);return t=Ae(t),function(){return--t>0&&(s=o.apply(this,arguments)),t<=1&&(o=r),s}}var Lu=ze(function(t,o,s){var c=m;if(s.length){var x=er(s,ro(Lu));c|=v}return zn(t,c,o,s,x)}),hp=ze(function(t,o,s){var c=m|w;if(s.length){var x=er(s,ro(hp));c|=v}return zn(o,c,t,s,x)});function mp(t,o,s){o=s?r:o;var c=zn(t,y,r,r,r,r,r,o);return c.placeholder=mp.placeholder,c}function gp(t,o,s){o=s?r:o;var c=zn(t,C,r,r,r,r,r,o);return c.placeholder=gp.placeholder,c}function yp(t,o,s){var c,x,D,$,L,H,ne=0,oe=!1,le=!1,me=!0;if(typeof t!="function")throw new Jt(l);o=tn(o)||0,it(s)&&(oe=!!s.leading,le="maxWait"in s,D=le?gt(tn(s.maxWait)||0,o):D,me="trailing"in s?!!s.trailing:me);function xe(pt){var mn=c,Bn=x;return c=x=r,ne=pt,$=t.apply(Bn,mn),$}function Re(pt){return ne=pt,L=Xo($e,o),oe?xe(pt):$}function Ne(pt){var mn=pt-H,Bn=pt-ne,zp=o-mn;return le?xt(zp,D-Bn):zp}function Te(pt){var mn=pt-H,Bn=pt-ne;return H===r||mn>=o||mn<0||le&&Bn>=D}function $e(){var pt=ya();if(Te(pt))return Le(pt);L=Xo($e,Ne(pt))}function Le(pt){return L=r,me&&c?xe(pt):(c=x=r,$)}function Bt(){L!==r&&Rf(L),ne=0,c=H=x=L=r}function Tt(){return L===r?$:Le(ya())}function Vt(){var pt=ya(),mn=Te(pt);if(c=arguments,x=this,H=pt,mn){if(L===r)return Re(H);if(le)return Rf(L),L=Xo($e,o),xe(H)}return L===r&&(L=Xo($e,o)),$}return Vt.cancel=Bt,Vt.flush=Tt,Vt}var cw=ze(function(t,o){return af(t,1,o)}),fw=ze(function(t,o,s){return af(t,tn(o)||0,s)});function pw(t){return zn(t,F)}function va(t,o){if(typeof t!="function"||o!=null&&typeof o!="function")throw new Jt(l);var s=function(){var c=arguments,x=o?o.apply(this,c):c[0],D=s.cache;if(D.has(x))return D.get(x);var $=t.apply(this,c);return s.cache=D.set(x,$)||D,$};return s.cache=new(va.Cache||An),s}va.Cache=An;function ba(t){if(typeof t!="function")throw new Jt(l);return function(){var o=arguments;switch(o.length){case 0:return!t.call(this);case 1:return!t.call(this,o[0]);case 2:return!t.call(this,o[0],o[1]);case 3:return!t.call(this,o[0],o[1],o[2])}return!t.apply(this,o)}}function dw(t){return dp(2,t)}var hw=eb(function(t,o){o=o.length==1&&ke(o[0])?rt(o[0],It(Ce())):rt(wt(o,1),It(Ce()));var s=o.length;return ze(function(c){for(var x=-1,D=xt(c.length,s);++x<D;)c[x]=o[x].call(this,c[x]);return $t(t,this,c)})}),Uu=ze(function(t,o){var s=er(o,ro(Uu));return zn(t,v,r,o,s)}),vp=ze(function(t,o){var s=er(o,ro(vp));return zn(t,k,r,o,s)}),mw=$n(function(t,o){return zn(t,z,r,r,r,o)});function gw(t,o){if(typeof t!="function")throw new Jt(l);return o=o===r?o:Ae(o),ze(t,o)}function yw(t,o){if(typeof t!="function")throw new Jt(l);return o=o==null?0:gt(Ae(o),0),ze(function(s){var c=s[o],x=ir(s,0,o);return c&&Qn(x,c),$t(t,this,x)})}function vw(t,o,s){var c=!0,x=!0;if(typeof t!="function")throw new Jt(l);return it(s)&&(c="leading"in s?!!s.leading:c,x="trailing"in s?!!s.trailing:x),yp(t,o,{leading:c,maxWait:o,trailing:x})}function bw(t){return pp(t,1)}function ww(t,o){return Uu(Ou(o),t)}function Sw(){if(!arguments.length)return[];var t=arguments[0];return ke(t)?t:[t]}function xw(t){return Zt(t,S)}function _w(t,o){return o=typeof o=="function"?o:r,Zt(t,S,o)}function Ow(t){return Zt(t,T|S)}function Ew(t,o){return o=typeof o=="function"?o:r,Zt(t,T|S,o)}function Cw(t,o){return o==null||of(t,o,vt(o))}function hn(t,o){return t===o||t!==t&&o!==o}var Rw=fa(pu),Tw=fa(function(t,o){return t>=o}),Dr=ff(function(){return arguments}())?ff:function(t){return st(t)&&qe.call(t,"callee")&&!Jc.call(t,"callee")},ke=J.isArray,Pw=jc?It(jc):$v;function kt(t){return t!=null&&wa(t.length)&&!Ln(t)}function ft(t){return st(t)&&kt(t)}function Dw(t){return t===!0||t===!1||st(t)&&Ct(t)==A}var ar=Hy||Ku,jw=kc?It(kc):Iv;function kw(t){return st(t)&&t.nodeType===1&&!Go(t)}function Mw(t){if(t==null)return!0;if(kt(t)&&(ke(t)||typeof t=="string"||typeof t.splice=="function"||ar(t)||oo(t)||Dr(t)))return!t.length;var o=_t(t);if(o==he||o==ye)return!t.size;if(Yo(t))return!mu(t).length;for(var s in t)if(qe.call(t,s))return!1;return!0}function Aw(t,o){return Ho(t,o)}function Nw(t,o,s){s=typeof s=="function"?s:r;var c=s?s(t,o):r;return c===r?Ho(t,o,r,s):!!c}function Bu(t){if(!st(t))return!1;var o=Ct(t);return o==ae||o==q||typeof t.message=="string"&&typeof t.name=="string"&&!Go(t)}function zw(t){return typeof t=="number"&&Zc(t)}function Ln(t){if(!it(t))return!1;var o=Ct(t);return o==W||o==pe||o==N||o==Se}function bp(t){return typeof t=="number"&&t==Ae(t)}function wa(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=ce}function it(t){var o=typeof t;return t!=null&&(o=="object"||o=="function")}function st(t){return t!=null&&typeof t=="object"}var wp=Mc?It(Mc):Uv;function $w(t,o){return t===o||hu(t,o,ju(o))}function Iw(t,o,s){return s=typeof s=="function"?s:r,hu(t,o,ju(o),s)}function Lw(t){return Sp(t)&&t!=+t}function Uw(t){if(_b(t))throw new De(u);return pf(t)}function Bw(t){return t===null}function Vw(t){return t==null}function Sp(t){return typeof t=="number"||st(t)&&Ct(t)==Oe}function Go(t){if(!st(t)||Ct(t)!=fe)return!1;var o=Yi(t);if(o===null)return!0;var s=qe.call(o,"constructor")&&o.constructor;return typeof s=="function"&&s instanceof s&&Fi.call(s)==Iy}var Vu=Ac?It(Ac):Bv;function Fw(t){return bp(t)&&t>=-9007199254740991&&t<=ce}var xp=Nc?It(Nc):Vv;function Sa(t){return typeof t=="string"||!ke(t)&&st(t)&&Ct(t)==yt}function Ut(t){return typeof t=="symbol"||st(t)&&Ct(t)==Fe}var oo=zc?It(zc):Fv;function Hw(t){return t===r}function Ww(t){return st(t)&&_t(t)==qt}function qw(t){return st(t)&&Ct(t)==Jn}var Yw=fa(gu),Xw=fa(function(t,o){return t<=o});function _p(t){if(!t)return[];if(kt(t))return Sa(t)?pn(t):jt(t);if(zo&&t[zo])return Cy(t[zo]());var o=_t(t),s=o==he?ru:o==ye?Ui:io;return s(t)}function Un(t){if(!t)return t===0?t:0;if(t=tn(t),t===ue||t===-1/0){var o=t<0?-1:1;return o*de}return t===t?t:0}function Ae(t){var o=Un(t),s=o%1;return o===o?s?o-s:o:0}function Op(t){return t?Cr(Ae(t),0,P):0}function tn(t){if(typeof t=="number")return t;if(Ut(t))return G;if(it(t)){var o=typeof t.valueOf=="function"?t.valueOf():t;t=it(o)?o+"":o}if(typeof t!="string")return t===0?t:+t;t=Vc(t);var s=Pg.test(t);return s||jg.test(t)?ly(t.slice(2),s?2:8):Tg.test(t)?G:+t}function Ep(t){return bn(t,Mt(t))}function Gw(t){return t?Cr(Ae(t),-9007199254740991,ce):t===0?t:0}function He(t){return t==null?"":Lt(t)}var Jw=to(function(t,o){if(Yo(o)||kt(o)){bn(o,vt(o),t);return}for(var s in o)qe.call(o,s)&&Bo(t,s,o[s])}),Cp=to(function(t,o){bn(o,Mt(o),t)}),xa=to(function(t,o,s,c){bn(o,Mt(o),t,c)}),Kw=to(function(t,o,s,c){bn(o,vt(o),t,c)}),Zw=$n(lu);function Qw(t,o){var s=eo(t);return o==null?s:rf(s,o)}var eS=ze(function(t,o){t=Ke(t);var s=-1,c=o.length,x=c>2?o[2]:r;for(x&&Rt(o[0],o[1],x)&&(c=1);++s<c;)for(var D=o[s],$=Mt(D),L=-1,H=$.length;++L<H;){var ne=$[L],oe=t[ne];(oe===r||hn(oe,Kr[ne])&&!qe.call(t,ne))&&(t[ne]=D[ne])}return t}),tS=ze(function(t){return t.push(r,Ff),$t(Rp,r,t)});function nS(t,o){return Ic(t,Ce(o,3),vn)}function rS(t,o){return Ic(t,Ce(o,3),fu)}function oS(t,o){return t==null?t:cu(t,Ce(o,3),Mt)}function iS(t,o){return t==null?t:lf(t,Ce(o,3),Mt)}function aS(t,o){return t&&vn(t,Ce(o,3))}function sS(t,o){return t&&fu(t,Ce(o,3))}function uS(t){return t==null?[]:ra(t,vt(t))}function lS(t){return t==null?[]:ra(t,Mt(t))}function Fu(t,o,s){var c=t==null?r:Rr(t,o);return c===r?s:c}function cS(t,o){return t!=null&&qf(t,o,Mv)}function Hu(t,o){return t!=null&&qf(t,o,Av)}var fS=If(function(t,o,s){o!=null&&typeof o.toString!="function"&&(o=Hi.call(o)),t[o]=s},qu(At)),pS=If(function(t,o,s){o!=null&&typeof o.toString!="function"&&(o=Hi.call(o)),qe.call(t,o)?t[o].push(s):t[o]=[s]},Ce),dS=ze(Fo);function vt(t){return kt(t)?tf(t):mu(t)}function Mt(t){return kt(t)?tf(t,!0):Hv(t)}function hS(t,o){var s={};return o=Ce(o,3),vn(t,function(c,x,D){Nn(s,o(c,x,D),c)}),s}function mS(t,o){var s={};return o=Ce(o,3),vn(t,function(c,x,D){Nn(s,x,o(c,x,D))}),s}var gS=to(function(t,o,s){oa(t,o,s)}),Rp=to(function(t,o,s,c){oa(t,o,s,c)}),yS=$n(function(t,o){var s={};if(t==null)return s;var c=!1;o=rt(o,function(D){return D=or(D,t),c||(c=D.length>1),D}),bn(t,Pu(t),s),c&&(s=Zt(s,T|M|S,fb));for(var x=o.length;x--;)Su(s,o[x]);return s});function vS(t,o){return Tp(t,ba(Ce(o)))}var bS=$n(function(t,o){return t==null?{}:qv(t,o)});function Tp(t,o){if(t==null)return{};var s=rt(Pu(t),function(c){return[c]});return o=Ce(o),bf(t,s,function(c,x){return o(c,x[0])})}function wS(t,o,s){o=or(o,t);var c=-1,x=o.length;for(x||(x=1,t=r);++c<x;){var D=t==null?r:t[wn(o[c])];D===r&&(c=x,D=s),t=Ln(D)?D.call(t):D}return t}function SS(t,o,s){return t==null?t:Wo(t,o,s)}function xS(t,o,s,c){return c=typeof c=="function"?c:r,t==null?t:Wo(t,o,s,c)}var Pp=Bf(vt),Dp=Bf(Mt);function _S(t,o,s){var c=ke(t),x=c||ar(t)||oo(t);if(o=Ce(o,4),s==null){var D=t&&t.constructor;x?s=c?new D:[]:it(t)?s=Ln(D)?eo(Yi(t)):{}:s={}}return(x?Gt:vn)(t,function($,L,H){return o(s,$,L,H)}),s}function OS(t,o){return t==null?!0:Su(t,o)}function ES(t,o,s){return t==null?t:Of(t,o,Ou(s))}function CS(t,o,s,c){return c=typeof c=="function"?c:r,t==null?t:Of(t,o,Ou(s),c)}function io(t){return t==null?[]:nu(t,vt(t))}function RS(t){return t==null?[]:nu(t,Mt(t))}function TS(t,o,s){return s===r&&(s=o,o=r),s!==r&&(s=tn(s),s=s===s?s:0),o!==r&&(o=tn(o),o=o===o?o:0),Cr(tn(t),o,s)}function PS(t,o,s){return o=Un(o),s===r?(s=o,o=0):s=Un(s),t=tn(t),Nv(t,o,s)}function DS(t,o,s){if(s&&typeof s!="boolean"&&Rt(t,o,s)&&(o=s=r),s===r&&(typeof o=="boolean"?(s=o,o=r):typeof t=="boolean"&&(s=t,t=r)),t===r&&o===r?(t=0,o=1):(t=Un(t),o===r?(o=t,t=0):o=Un(o)),t>o){var c=t;t=o,o=c}if(s||t%1||o%1){var x=Qc();return xt(t+x*(o-t+uy("1e-"+((x+"").length-1))),o)}return vu(t,o)}var jS=no(function(t,o,s){return o=o.toLowerCase(),t+(s?jp(o):o)});function jp(t){return Wu(He(t).toLowerCase())}function kp(t){return t=He(t),t&&t.replace(Mg,Sy).replace(Zg,"")}function kS(t,o,s){t=He(t),o=Lt(o);var c=t.length;s=s===r?c:Cr(Ae(s),0,c);var x=s;return s-=o.length,s>=0&&t.slice(s,x)==o}function MS(t){return t=He(t),t&&Is.test(t)?t.replace(Ai,xy):t}function AS(t){return t=He(t),t&&bg.test(t)?t.replace(Us,"\\$&"):t}var NS=no(function(t,o,s){return t+(s?"-":"")+o.toLowerCase()}),zS=no(function(t,o,s){return t+(s?" ":"")+o.toLowerCase()}),$S=Nf("toLowerCase");function IS(t,o,s){t=He(t),o=Ae(o);var c=o?Gr(t):0;if(!o||c>=o)return t;var x=(o-c)/2;return ca(Ki(x),s)+t+ca(Ji(x),s)}function LS(t,o,s){t=He(t),o=Ae(o);var c=o?Gr(t):0;return o&&c<o?t+ca(o-c,s):t}function US(t,o,s){t=He(t),o=Ae(o);var c=o?Gr(t):0;return o&&c<o?ca(o-c,s)+t:t}function BS(t,o,s){return s||o==null?o=0:o&&(o=+o),Xy(He(t).replace(Bs,""),o||0)}function VS(t,o,s){return(s?Rt(t,o,s):o===r)?o=1:o=Ae(o),bu(He(t),o)}function FS(){var t=arguments,o=He(t[0]);return t.length<3?o:o.replace(t[1],t[2])}var HS=no(function(t,o,s){return t+(s?"_":"")+o.toLowerCase()});function WS(t,o,s){return s&&typeof s!="number"&&Rt(t,o,s)&&(o=s=r),s=s===r?P:s>>>0,s?(t=He(t),t&&(typeof o=="string"||o!=null&&!Vu(o))&&(o=Lt(o),!o&&Xr(t))?ir(pn(t),0,s):t.split(o,s)):[]}var qS=no(function(t,o,s){return t+(s?" ":"")+Wu(o)});function YS(t,o,s){return t=He(t),s=s==null?0:Cr(Ae(s),0,t.length),o=Lt(o),t.slice(s,s+o.length)==o}function XS(t,o,s){var c=R.templateSettings;s&&Rt(t,o,s)&&(o=r),t=He(t),o=xa({},o,c,Vf);var x=xa({},o.imports,c.imports,Vf),D=vt(x),$=nu(x,D),L,H,ne=0,oe=o.interpolate||Ni,le="__p += '",me=ou((o.escape||Ni).source+"|"+oe.source+"|"+(oe===Dt?Rg:Ni).source+"|"+(o.evaluate||Ni).source+"|$","g"),xe="//# sourceURL="+(qe.call(o,"sourceURL")?(o.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ry+"]")+`
64
64
  `;t.replace(me,function(Te,$e,Le,Bt,Tt,Vt){return Le||(Le=Bt),le+=t.slice(ne,Vt).replace(Ag,_y),$e&&(L=!0,le+=`' +
65
65
  __e(`+$e+`) +
66
66
  '`),Tt&&(H=!0,le+=`';
@@ -77,7 +77,7 @@ __p += '`),Le&&(le+=`' +
77
77
  function print() { __p += __j.call(arguments, '') }
78
78
  `:`;
79
79
  `)+le+`return __p
80
- }`;var Ne=Ap(function(){return Ve(D,xe+"return "+le).apply(r,$)});if(Ne.source=le,Bu(Ne))throw Ne;return Ne}function GS(t){return He(t).toLowerCase()}function JS(t){return He(t).toUpperCase()}function KS(t,o,s){if(t=He(t),t&&(s||o===r))return Vc(t);if(!t||!(o=Lt(o)))return t;var c=pn(t),x=pn(o),D=Fc(c,x),$=Hc(c,x)+1;return ir(c,D,$).join("")}function ZS(t,o,s){if(t=He(t),t&&(s||o===r))return t.slice(0,qc(t)+1);if(!t||!(o=Lt(o)))return t;var c=pn(t),x=Hc(c,pn(o))+1;return ir(c,0,x).join("")}function QS(t,o,s){if(t=He(t),t&&(s||o===r))return t.replace(Bs,"");if(!t||!(o=Lt(o)))return t;var c=pn(t),x=Fc(c,pn(o));return ir(c,x).join("")}function ex(t,o){var s=X,c=Y;if(it(o)){var x="separator"in o?o.separator:x;s="length"in o?Ae(o.length):s,c="omission"in o?Lt(o.omission):c}t=He(t);var D=t.length;if(Xr(t)){var $=pn(t);D=$.length}if(s>=D)return t;var L=s-Gr(c);if(L<1)return c;var H=$?ir($,0,L).join(""):t.slice(0,L);if(x===r)return H+c;if($&&(L+=H.length-L),Vu(x)){if(t.slice(L).search(x)){var ne,oe=H;for(x.global||(x=ou(x.source,He(cc.exec(x))+"g")),x.lastIndex=0;ne=x.exec(oe);)var le=ne.index;H=H.slice(0,le===r?L:le)}}else if(t.indexOf(Lt(x),L)!=L){var me=H.lastIndexOf(x);me>-1&&(H=H.slice(0,me))}return H+c}function tx(t){return t=He(t),t&&$s.test(t)?t.replace(Mi,Dy):t}var nx=no(function(t,o,s){return t+(s?" ":"")+o.toUpperCase()}),Wu=Nf("toUpperCase");function Mp(t,o,s){return t=He(t),o=s?r:o,o===r?Ey(t)?My(t):gy(t):t.match(o)||[]}var Ap=ze(function(t,o){try{return $t(t,r,o)}catch(s){return Bu(s)?s:new De(s)}}),rx=$n(function(t,o){return Gt(o,function(s){s=wn(s),Nn(t,s,Lu(t[s],t))}),t});function ox(t){var o=t==null?0:t.length,s=Ce();return t=o?rt(t,function(c){if(typeof c[1]!="function")throw new Jt(l);return[s(c[0]),c[1]]}):[],ze(function(c){for(var x=-1;++x<o;){var D=t[x];if($t(D[0],this,c))return $t(D[1],this,c)}})}function ix(t){return Dv(Zt(t,T))}function qu(t){return function(){return t}}function ax(t,o){return t==null||t!==t?o:t}var sx=$f(),ux=$f(!0);function At(t){return t}function Yu(t){return df(typeof t=="function"?t:Zt(t,T))}function lx(t){return mf(Zt(t,T))}function cx(t,o){return gf(t,Zt(o,T))}var fx=ze(function(t,o){return function(s){return Bo(s,t,o)}}),px=ze(function(t,o){return function(s){return Bo(t,s,o)}});function Xu(t,o,s){var c=vt(o),x=ra(o,c);s==null&&!(it(o)&&(x.length||!c.length))&&(s=o,o=t,t=this,x=ra(o,vt(o)));var D=!(it(s)&&"chain"in s)||!!s.chain,$=Ln(t);return Gt(x,function(L){var H=o[L];t[L]=H,$&&(t.prototype[L]=function(){var ne=this.__chain__;if(D||ne){var oe=t(this.__wrapped__),le=oe.__actions__=jt(this.__actions__);return le.push({func:H,args:arguments,thisArg:t}),oe.__chain__=ne,oe}return H.apply(t,Qn([this.value()],arguments))})}),t}function dx(){return bt._===this&&(bt._=Ly),this}function Gu(){}function hx(t){return t=Ae(t),ze(function(o){return yf(o,t)})}var mx=Cu(rt),gx=Cu($c),yx=Cu(Ks);function Np(t){return Mu(t)?Zs(wn(t)):Yv(t)}function vx(t){return function(o){return t==null?r:Rr(t,o)}}var bx=Lf(),wx=Lf(!0);function Ju(){return[]}function Ku(){return!1}function Sx(){return{}}function xx(){return""}function _x(){return!0}function Ox(t,o){if(t=Ae(t),t<1||t>ce)return[];var s=P,c=xt(t,P);o=Ce(o),t-=P;for(var x=tu(c,o);++s<t;)o(s);return x}function Ex(t){return ke(t)?rt(t,wn):Ut(t)?[t]:jt(tp(He(t)))}function Cx(t){var o=++$y;return He(t)+o}var Rx=la(function(t,o){return t+o},0),Tx=Ru("ceil"),Px=la(function(t,o){return t/o},1),Dx=Ru("floor");function jx(t){return t&&t.length?na(t,At,pu):r}function kx(t,o){return t&&t.length?na(t,Ce(o,2),pu):r}function Mx(t){return Uc(t,At)}function Ax(t,o){return Uc(t,Ce(o,2))}function Nx(t){return t&&t.length?na(t,At,gu):r}function zx(t,o){return t&&t.length?na(t,Ce(o,2),gu):r}var $x=la(function(t,o){return t*o},1),Ix=Ru("round"),Lx=la(function(t,o){return t-o},0);function Ux(t){return t&&t.length?eu(t,At):0}function Bx(t,o){return t&&t.length?eu(t,Ce(o,2)):0}return R.after=lw,R.ary=pp,R.assign=Jw,R.assignIn=Cp,R.assignInWith=xa,R.assignWith=Kw,R.at=Zw,R.before=dp,R.bind=Lu,R.bindAll=rx,R.bindKey=hp,R.castArray=Sw,R.chain=lp,R.chunk=Db,R.compact=jb,R.concat=kb,R.cond=ox,R.conforms=ix,R.constant=qu,R.countBy=U0,R.create=Qw,R.curry=mp,R.curryRight=gp,R.debounce=yp,R.defaults=eS,R.defaultsDeep=tS,R.defer=cw,R.delay=fw,R.difference=Mb,R.differenceBy=Ab,R.differenceWith=Nb,R.drop=zb,R.dropRight=$b,R.dropRightWhile=Ib,R.dropWhile=Lb,R.fill=Ub,R.filter=V0,R.flatMap=W0,R.flatMapDeep=q0,R.flatMapDepth=Y0,R.flatten=ip,R.flattenDeep=Bb,R.flattenDepth=Vb,R.flip=pw,R.flow=sx,R.flowRight=ux,R.fromPairs=Fb,R.functions=uS,R.functionsIn=lS,R.groupBy=X0,R.initial=Wb,R.intersection=qb,R.intersectionBy=Yb,R.intersectionWith=Xb,R.invert=fS,R.invertBy=pS,R.invokeMap=J0,R.iteratee=Yu,R.keyBy=K0,R.keys=vt,R.keysIn=Mt,R.map=ga,R.mapKeys=hS,R.mapValues=mS,R.matches=lx,R.matchesProperty=cx,R.memoize=va,R.merge=gS,R.mergeWith=Rp,R.method=fx,R.methodOf=px,R.mixin=Xu,R.negate=ba,R.nthArg=hx,R.omit=yS,R.omitBy=vS,R.once=dw,R.orderBy=Z0,R.over=mx,R.overArgs=hw,R.overEvery=gx,R.overSome=yx,R.partial=Uu,R.partialRight=vp,R.partition=Q0,R.pick=bS,R.pickBy=Tp,R.property=Np,R.propertyOf=vx,R.pull=Zb,R.pullAll=sp,R.pullAllBy=Qb,R.pullAllWith=e0,R.pullAt=t0,R.range=bx,R.rangeRight=wx,R.rearg=mw,R.reject=nw,R.remove=n0,R.rest=gw,R.reverse=$u,R.sampleSize=ow,R.set=SS,R.setWith=xS,R.shuffle=iw,R.slice=r0,R.sortBy=uw,R.sortedUniq=c0,R.sortedUniqBy=f0,R.split=WS,R.spread=yw,R.tail=p0,R.take=d0,R.takeRight=h0,R.takeRightWhile=m0,R.takeWhile=g0,R.tap=j0,R.throttle=vw,R.thru=ma,R.toArray=_p,R.toPairs=Pp,R.toPairsIn=Dp,R.toPath=Ex,R.toPlainObject=Ep,R.transform=_S,R.unary=bw,R.union=y0,R.unionBy=v0,R.unionWith=b0,R.uniq=w0,R.uniqBy=S0,R.uniqWith=x0,R.unset=OS,R.unzip=Iu,R.unzipWith=up,R.update=ES,R.updateWith=CS,R.values=io,R.valuesIn=RS,R.without=_0,R.words=Mp,R.wrap=ww,R.xor=O0,R.xorBy=E0,R.xorWith=C0,R.zip=R0,R.zipObject=T0,R.zipObjectDeep=P0,R.zipWith=D0,R.entries=Pp,R.entriesIn=Dp,R.extend=Cp,R.extendWith=xa,Xu(R,R),R.add=Rx,R.attempt=Ap,R.camelCase=jS,R.capitalize=jp,R.ceil=Tx,R.clamp=TS,R.clone=xw,R.cloneDeep=Ow,R.cloneDeepWith=Ew,R.cloneWith=_w,R.conformsTo=Cw,R.deburr=kp,R.defaultTo=ax,R.divide=Px,R.endsWith=kS,R.eq=hn,R.escape=MS,R.escapeRegExp=AS,R.every=B0,R.find=F0,R.findIndex=rp,R.findKey=nS,R.findLast=H0,R.findLastIndex=op,R.findLastKey=rS,R.floor=Dx,R.forEach=cp,R.forEachRight=fp,R.forIn=oS,R.forInRight=iS,R.forOwn=aS,R.forOwnRight=sS,R.get=Fu,R.gt=Rw,R.gte=Tw,R.has=cS,R.hasIn=Hu,R.head=ap,R.identity=At,R.includes=G0,R.indexOf=Hb,R.inRange=PS,R.invoke=dS,R.isArguments=Dr,R.isArray=ke,R.isArrayBuffer=Pw,R.isArrayLike=kt,R.isArrayLikeObject=ft,R.isBoolean=Dw,R.isBuffer=ar,R.isDate=jw,R.isElement=kw,R.isEmpty=Mw,R.isEqual=Aw,R.isEqualWith=Nw,R.isError=Bu,R.isFinite=zw,R.isFunction=Ln,R.isInteger=bp,R.isLength=wa,R.isMap=wp,R.isMatch=$w,R.isMatchWith=Iw,R.isNaN=Lw,R.isNative=Uw,R.isNil=Vw,R.isNull=Bw,R.isNumber=Sp,R.isObject=it,R.isObjectLike=st,R.isPlainObject=Yo,R.isRegExp=Vu,R.isSafeInteger=Fw,R.isSet=xp,R.isString=Sa,R.isSymbol=Ut,R.isTypedArray=oo,R.isUndefined=Hw,R.isWeakMap=Ww,R.isWeakSet=qw,R.join=Gb,R.kebabCase=NS,R.last=en,R.lastIndexOf=Jb,R.lowerCase=zS,R.lowerFirst=$S,R.lt=Yw,R.lte=Xw,R.max=jx,R.maxBy=kx,R.mean=Mx,R.meanBy=Ax,R.min=Nx,R.minBy=zx,R.stubArray=Ju,R.stubFalse=Ku,R.stubObject=Sx,R.stubString=xx,R.stubTrue=_x,R.multiply=$x,R.nth=Kb,R.noConflict=dx,R.noop=Gu,R.now=ya,R.pad=IS,R.padEnd=LS,R.padStart=US,R.parseInt=BS,R.random=DS,R.reduce=ew,R.reduceRight=tw,R.repeat=VS,R.replace=FS,R.result=wS,R.round=Ix,R.runInContext=B,R.sample=rw,R.size=aw,R.snakeCase=HS,R.some=sw,R.sortedIndex=o0,R.sortedIndexBy=i0,R.sortedIndexOf=a0,R.sortedLastIndex=s0,R.sortedLastIndexBy=u0,R.sortedLastIndexOf=l0,R.startCase=qS,R.startsWith=YS,R.subtract=Lx,R.sum=Ux,R.sumBy=Bx,R.template=XS,R.times=Ox,R.toFinite=Un,R.toInteger=Ae,R.toLength=Op,R.toLower=GS,R.toNumber=tn,R.toSafeInteger=Gw,R.toString=He,R.toUpper=JS,R.trim=KS,R.trimEnd=ZS,R.trimStart=QS,R.truncate=ex,R.unescape=tx,R.uniqueId=Cx,R.upperCase=nx,R.upperFirst=Wu,R.each=cp,R.eachRight=fp,R.first=ap,Xu(R,function(){var t={};return vn(R,function(o,s){qe.call(R.prototype,s)||(t[s]=o)}),t}(),{chain:!1}),R.VERSION=i,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){R[t].placeholder=R}),Gt(["drop","take"],function(t,o){Ie.prototype[t]=function(s){s=s===r?1:gt(Ae(s),0);var c=this.__filtered__&&!o?new Ie(this):this.clone();return c.__filtered__?c.__takeCount__=xt(s,c.__takeCount__):c.__views__.push({size:xt(s,P),type:t+(c.__dir__<0?"Right":"")}),c},Ie.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),Gt(["filter","map","takeWhile"],function(t,o){var s=o+1,c=s==U||s==Z;Ie.prototype[t]=function(x){var D=this.clone();return D.__iteratees__.push({iteratee:Ce(x,3),type:s}),D.__filtered__=D.__filtered__||c,D}}),Gt(["head","last"],function(t,o){var s="take"+(o?"Right":"");Ie.prototype[t]=function(){return this[s](1).value()[0]}}),Gt(["initial","tail"],function(t,o){var s="drop"+(o?"":"Right");Ie.prototype[t]=function(){return this.__filtered__?new Ie(this):this[s](1)}}),Ie.prototype.compact=function(){return this.filter(At)},Ie.prototype.find=function(t){return this.filter(t).head()},Ie.prototype.findLast=function(t){return this.reverse().find(t)},Ie.prototype.invokeMap=ze(function(t,o){return typeof t=="function"?new Ie(this):this.map(function(s){return Bo(s,t,o)})}),Ie.prototype.reject=function(t){return this.filter(ba(Ce(t)))},Ie.prototype.slice=function(t,o){t=Ae(t);var s=this;return s.__filtered__&&(t>0||o<0)?new Ie(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),o!==r&&(o=Ae(o),s=o<0?s.dropRight(-o):s.take(o-t)),s)},Ie.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ie.prototype.toArray=function(){return this.take(P)},vn(Ie.prototype,function(t,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),x=R[c?"take"+(o=="last"?"Right":""):o],D=c||/^find/.test(o);x&&(R.prototype[o]=function(){var $=this.__wrapped__,L=c?[1]:arguments,H=$ instanceof Ie,ne=L[0],oe=H||ke($),le=function($e){var Le=x.apply(R,Qn([$e],L));return c&&me?Le[0]:Le};oe&&s&&typeof ne=="function"&&ne.length!=1&&(H=oe=!1);var me=this.__chain__,xe=!!this.__actions__.length,Re=D&&!me,Ne=H&&!xe;if(!D&&oe){$=Ne?$:new Ie(this);var Te=t.apply($,L);return Te.__actions__.push({func:ma,args:[le],thisArg:r}),new Kt(Te,me)}return Re&&Ne?t.apply(this,L):(Te=this.thru(le),Re?c?Te.value()[0]:Te.value():Te)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(t){var o=Bi[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);R.prototype[t]=function(){var x=arguments;if(c&&!this.__chain__){var D=this.value();return o.apply(ke(D)?D:[],x)}return this[s](function($){return o.apply(ke($)?$:[],x)})}}),vn(Ie.prototype,function(t,o){var s=R[o];if(s){var c=s.name+"";qe.call(Qr,c)||(Qr[c]=[]),Qr[c].push({name:o,func:s})}}),Qr[ua(r,w).name]=[{name:"wrapper",func:r}],Ie.prototype.clone=tv,Ie.prototype.reverse=nv,Ie.prototype.value=rv,R.prototype.at=k0,R.prototype.chain=M0,R.prototype.commit=A0,R.prototype.next=N0,R.prototype.plant=$0,R.prototype.reverse=I0,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=L0,R.prototype.first=R.prototype.head,Ao&&(R.prototype[Ao]=z0),R},Jr=Ay();xr?((xr.exports=Jr)._=Jr,Ys._=Jr):bt._=Jr}).call(w1)}(Fa,Fa.exports)),Fa.exports}S1();const Qp=e=>e,x1=()=>{let e=Qp;return{configure(n){e=n},generate(n){return e(n)},reset(){e=Qp}}},qh=x1();function yi(e,...n){const r=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Ht(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":yi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ra={exports:{}},rl={exports:{}},We={};/** @license React v16.13.1
80
+ }`;var Ne=Ap(function(){return Ve(D,xe+"return "+le).apply(r,$)});if(Ne.source=le,Bu(Ne))throw Ne;return Ne}function GS(t){return He(t).toLowerCase()}function JS(t){return He(t).toUpperCase()}function KS(t,o,s){if(t=He(t),t&&(s||o===r))return Vc(t);if(!t||!(o=Lt(o)))return t;var c=pn(t),x=pn(o),D=Fc(c,x),$=Hc(c,x)+1;return ir(c,D,$).join("")}function ZS(t,o,s){if(t=He(t),t&&(s||o===r))return t.slice(0,qc(t)+1);if(!t||!(o=Lt(o)))return t;var c=pn(t),x=Hc(c,pn(o))+1;return ir(c,0,x).join("")}function QS(t,o,s){if(t=He(t),t&&(s||o===r))return t.replace(Bs,"");if(!t||!(o=Lt(o)))return t;var c=pn(t),x=Fc(c,pn(o));return ir(c,x).join("")}function ex(t,o){var s=X,c=Y;if(it(o)){var x="separator"in o?o.separator:x;s="length"in o?Ae(o.length):s,c="omission"in o?Lt(o.omission):c}t=He(t);var D=t.length;if(Xr(t)){var $=pn(t);D=$.length}if(s>=D)return t;var L=s-Gr(c);if(L<1)return c;var H=$?ir($,0,L).join(""):t.slice(0,L);if(x===r)return H+c;if($&&(L+=H.length-L),Vu(x)){if(t.slice(L).search(x)){var ne,oe=H;for(x.global||(x=ou(x.source,He(cc.exec(x))+"g")),x.lastIndex=0;ne=x.exec(oe);)var le=ne.index;H=H.slice(0,le===r?L:le)}}else if(t.indexOf(Lt(x),L)!=L){var me=H.lastIndexOf(x);me>-1&&(H=H.slice(0,me))}return H+c}function tx(t){return t=He(t),t&&$s.test(t)?t.replace(Mi,Dy):t}var nx=no(function(t,o,s){return t+(s?" ":"")+o.toUpperCase()}),Wu=Nf("toUpperCase");function Mp(t,o,s){return t=He(t),o=s?r:o,o===r?Ey(t)?My(t):gy(t):t.match(o)||[]}var Ap=ze(function(t,o){try{return $t(t,r,o)}catch(s){return Bu(s)?s:new De(s)}}),rx=$n(function(t,o){return Gt(o,function(s){s=wn(s),Nn(t,s,Lu(t[s],t))}),t});function ox(t){var o=t==null?0:t.length,s=Ce();return t=o?rt(t,function(c){if(typeof c[1]!="function")throw new Jt(l);return[s(c[0]),c[1]]}):[],ze(function(c){for(var x=-1;++x<o;){var D=t[x];if($t(D[0],this,c))return $t(D[1],this,c)}})}function ix(t){return Dv(Zt(t,T))}function qu(t){return function(){return t}}function ax(t,o){return t==null||t!==t?o:t}var sx=$f(),ux=$f(!0);function At(t){return t}function Yu(t){return df(typeof t=="function"?t:Zt(t,T))}function lx(t){return mf(Zt(t,T))}function cx(t,o){return gf(t,Zt(o,T))}var fx=ze(function(t,o){return function(s){return Fo(s,t,o)}}),px=ze(function(t,o){return function(s){return Fo(t,s,o)}});function Xu(t,o,s){var c=vt(o),x=ra(o,c);s==null&&!(it(o)&&(x.length||!c.length))&&(s=o,o=t,t=this,x=ra(o,vt(o)));var D=!(it(s)&&"chain"in s)||!!s.chain,$=Ln(t);return Gt(x,function(L){var H=o[L];t[L]=H,$&&(t.prototype[L]=function(){var ne=this.__chain__;if(D||ne){var oe=t(this.__wrapped__),le=oe.__actions__=jt(this.__actions__);return le.push({func:H,args:arguments,thisArg:t}),oe.__chain__=ne,oe}return H.apply(t,Qn([this.value()],arguments))})}),t}function dx(){return bt._===this&&(bt._=Ly),this}function Gu(){}function hx(t){return t=Ae(t),ze(function(o){return yf(o,t)})}var mx=Cu(rt),gx=Cu($c),yx=Cu(Ks);function Np(t){return Mu(t)?Zs(wn(t)):Yv(t)}function vx(t){return function(o){return t==null?r:Rr(t,o)}}var bx=Lf(),wx=Lf(!0);function Ju(){return[]}function Ku(){return!1}function Sx(){return{}}function xx(){return""}function _x(){return!0}function Ox(t,o){if(t=Ae(t),t<1||t>ce)return[];var s=P,c=xt(t,P);o=Ce(o),t-=P;for(var x=tu(c,o);++s<t;)o(s);return x}function Ex(t){return ke(t)?rt(t,wn):Ut(t)?[t]:jt(tp(He(t)))}function Cx(t){var o=++$y;return He(t)+o}var Rx=la(function(t,o){return t+o},0),Tx=Ru("ceil"),Px=la(function(t,o){return t/o},1),Dx=Ru("floor");function jx(t){return t&&t.length?na(t,At,pu):r}function kx(t,o){return t&&t.length?na(t,Ce(o,2),pu):r}function Mx(t){return Uc(t,At)}function Ax(t,o){return Uc(t,Ce(o,2))}function Nx(t){return t&&t.length?na(t,At,gu):r}function zx(t,o){return t&&t.length?na(t,Ce(o,2),gu):r}var $x=la(function(t,o){return t*o},1),Ix=Ru("round"),Lx=la(function(t,o){return t-o},0);function Ux(t){return t&&t.length?eu(t,At):0}function Bx(t,o){return t&&t.length?eu(t,Ce(o,2)):0}return R.after=lw,R.ary=pp,R.assign=Jw,R.assignIn=Cp,R.assignInWith=xa,R.assignWith=Kw,R.at=Zw,R.before=dp,R.bind=Lu,R.bindAll=rx,R.bindKey=hp,R.castArray=Sw,R.chain=lp,R.chunk=Db,R.compact=jb,R.concat=kb,R.cond=ox,R.conforms=ix,R.constant=qu,R.countBy=U0,R.create=Qw,R.curry=mp,R.curryRight=gp,R.debounce=yp,R.defaults=eS,R.defaultsDeep=tS,R.defer=cw,R.delay=fw,R.difference=Mb,R.differenceBy=Ab,R.differenceWith=Nb,R.drop=zb,R.dropRight=$b,R.dropRightWhile=Ib,R.dropWhile=Lb,R.fill=Ub,R.filter=V0,R.flatMap=W0,R.flatMapDeep=q0,R.flatMapDepth=Y0,R.flatten=ip,R.flattenDeep=Bb,R.flattenDepth=Vb,R.flip=pw,R.flow=sx,R.flowRight=ux,R.fromPairs=Fb,R.functions=uS,R.functionsIn=lS,R.groupBy=X0,R.initial=Wb,R.intersection=qb,R.intersectionBy=Yb,R.intersectionWith=Xb,R.invert=fS,R.invertBy=pS,R.invokeMap=J0,R.iteratee=Yu,R.keyBy=K0,R.keys=vt,R.keysIn=Mt,R.map=ga,R.mapKeys=hS,R.mapValues=mS,R.matches=lx,R.matchesProperty=cx,R.memoize=va,R.merge=gS,R.mergeWith=Rp,R.method=fx,R.methodOf=px,R.mixin=Xu,R.negate=ba,R.nthArg=hx,R.omit=yS,R.omitBy=vS,R.once=dw,R.orderBy=Z0,R.over=mx,R.overArgs=hw,R.overEvery=gx,R.overSome=yx,R.partial=Uu,R.partialRight=vp,R.partition=Q0,R.pick=bS,R.pickBy=Tp,R.property=Np,R.propertyOf=vx,R.pull=Zb,R.pullAll=sp,R.pullAllBy=Qb,R.pullAllWith=e0,R.pullAt=t0,R.range=bx,R.rangeRight=wx,R.rearg=mw,R.reject=nw,R.remove=n0,R.rest=gw,R.reverse=$u,R.sampleSize=ow,R.set=SS,R.setWith=xS,R.shuffle=iw,R.slice=r0,R.sortBy=uw,R.sortedUniq=c0,R.sortedUniqBy=f0,R.split=WS,R.spread=yw,R.tail=p0,R.take=d0,R.takeRight=h0,R.takeRightWhile=m0,R.takeWhile=g0,R.tap=j0,R.throttle=vw,R.thru=ma,R.toArray=_p,R.toPairs=Pp,R.toPairsIn=Dp,R.toPath=Ex,R.toPlainObject=Ep,R.transform=_S,R.unary=bw,R.union=y0,R.unionBy=v0,R.unionWith=b0,R.uniq=w0,R.uniqBy=S0,R.uniqWith=x0,R.unset=OS,R.unzip=Iu,R.unzipWith=up,R.update=ES,R.updateWith=CS,R.values=io,R.valuesIn=RS,R.without=_0,R.words=Mp,R.wrap=ww,R.xor=O0,R.xorBy=E0,R.xorWith=C0,R.zip=R0,R.zipObject=T0,R.zipObjectDeep=P0,R.zipWith=D0,R.entries=Pp,R.entriesIn=Dp,R.extend=Cp,R.extendWith=xa,Xu(R,R),R.add=Rx,R.attempt=Ap,R.camelCase=jS,R.capitalize=jp,R.ceil=Tx,R.clamp=TS,R.clone=xw,R.cloneDeep=Ow,R.cloneDeepWith=Ew,R.cloneWith=_w,R.conformsTo=Cw,R.deburr=kp,R.defaultTo=ax,R.divide=Px,R.endsWith=kS,R.eq=hn,R.escape=MS,R.escapeRegExp=AS,R.every=B0,R.find=F0,R.findIndex=rp,R.findKey=nS,R.findLast=H0,R.findLastIndex=op,R.findLastKey=rS,R.floor=Dx,R.forEach=cp,R.forEachRight=fp,R.forIn=oS,R.forInRight=iS,R.forOwn=aS,R.forOwnRight=sS,R.get=Fu,R.gt=Rw,R.gte=Tw,R.has=cS,R.hasIn=Hu,R.head=ap,R.identity=At,R.includes=G0,R.indexOf=Hb,R.inRange=PS,R.invoke=dS,R.isArguments=Dr,R.isArray=ke,R.isArrayBuffer=Pw,R.isArrayLike=kt,R.isArrayLikeObject=ft,R.isBoolean=Dw,R.isBuffer=ar,R.isDate=jw,R.isElement=kw,R.isEmpty=Mw,R.isEqual=Aw,R.isEqualWith=Nw,R.isError=Bu,R.isFinite=zw,R.isFunction=Ln,R.isInteger=bp,R.isLength=wa,R.isMap=wp,R.isMatch=$w,R.isMatchWith=Iw,R.isNaN=Lw,R.isNative=Uw,R.isNil=Vw,R.isNull=Bw,R.isNumber=Sp,R.isObject=it,R.isObjectLike=st,R.isPlainObject=Go,R.isRegExp=Vu,R.isSafeInteger=Fw,R.isSet=xp,R.isString=Sa,R.isSymbol=Ut,R.isTypedArray=oo,R.isUndefined=Hw,R.isWeakMap=Ww,R.isWeakSet=qw,R.join=Gb,R.kebabCase=NS,R.last=en,R.lastIndexOf=Jb,R.lowerCase=zS,R.lowerFirst=$S,R.lt=Yw,R.lte=Xw,R.max=jx,R.maxBy=kx,R.mean=Mx,R.meanBy=Ax,R.min=Nx,R.minBy=zx,R.stubArray=Ju,R.stubFalse=Ku,R.stubObject=Sx,R.stubString=xx,R.stubTrue=_x,R.multiply=$x,R.nth=Kb,R.noConflict=dx,R.noop=Gu,R.now=ya,R.pad=IS,R.padEnd=LS,R.padStart=US,R.parseInt=BS,R.random=DS,R.reduce=ew,R.reduceRight=tw,R.repeat=VS,R.replace=FS,R.result=wS,R.round=Ix,R.runInContext=B,R.sample=rw,R.size=aw,R.snakeCase=HS,R.some=sw,R.sortedIndex=o0,R.sortedIndexBy=i0,R.sortedIndexOf=a0,R.sortedLastIndex=s0,R.sortedLastIndexBy=u0,R.sortedLastIndexOf=l0,R.startCase=qS,R.startsWith=YS,R.subtract=Lx,R.sum=Ux,R.sumBy=Bx,R.template=XS,R.times=Ox,R.toFinite=Un,R.toInteger=Ae,R.toLength=Op,R.toLower=GS,R.toNumber=tn,R.toSafeInteger=Gw,R.toString=He,R.toUpper=JS,R.trim=KS,R.trimEnd=ZS,R.trimStart=QS,R.truncate=ex,R.unescape=tx,R.uniqueId=Cx,R.upperCase=nx,R.upperFirst=Wu,R.each=cp,R.eachRight=fp,R.first=ap,Xu(R,function(){var t={};return vn(R,function(o,s){qe.call(R.prototype,s)||(t[s]=o)}),t}(),{chain:!1}),R.VERSION=i,Gt(["bind","bindKey","curry","curryRight","partial","partialRight"],function(t){R[t].placeholder=R}),Gt(["drop","take"],function(t,o){Ie.prototype[t]=function(s){s=s===r?1:gt(Ae(s),0);var c=this.__filtered__&&!o?new Ie(this):this.clone();return c.__filtered__?c.__takeCount__=xt(s,c.__takeCount__):c.__views__.push({size:xt(s,P),type:t+(c.__dir__<0?"Right":"")}),c},Ie.prototype[t+"Right"]=function(s){return this.reverse()[t](s).reverse()}}),Gt(["filter","map","takeWhile"],function(t,o){var s=o+1,c=s==U||s==Z;Ie.prototype[t]=function(x){var D=this.clone();return D.__iteratees__.push({iteratee:Ce(x,3),type:s}),D.__filtered__=D.__filtered__||c,D}}),Gt(["head","last"],function(t,o){var s="take"+(o?"Right":"");Ie.prototype[t]=function(){return this[s](1).value()[0]}}),Gt(["initial","tail"],function(t,o){var s="drop"+(o?"":"Right");Ie.prototype[t]=function(){return this.__filtered__?new Ie(this):this[s](1)}}),Ie.prototype.compact=function(){return this.filter(At)},Ie.prototype.find=function(t){return this.filter(t).head()},Ie.prototype.findLast=function(t){return this.reverse().find(t)},Ie.prototype.invokeMap=ze(function(t,o){return typeof t=="function"?new Ie(this):this.map(function(s){return Fo(s,t,o)})}),Ie.prototype.reject=function(t){return this.filter(ba(Ce(t)))},Ie.prototype.slice=function(t,o){t=Ae(t);var s=this;return s.__filtered__&&(t>0||o<0)?new Ie(s):(t<0?s=s.takeRight(-t):t&&(s=s.drop(t)),o!==r&&(o=Ae(o),s=o<0?s.dropRight(-o):s.take(o-t)),s)},Ie.prototype.takeRightWhile=function(t){return this.reverse().takeWhile(t).reverse()},Ie.prototype.toArray=function(){return this.take(P)},vn(Ie.prototype,function(t,o){var s=/^(?:filter|find|map|reject)|While$/.test(o),c=/^(?:head|last)$/.test(o),x=R[c?"take"+(o=="last"?"Right":""):o],D=c||/^find/.test(o);x&&(R.prototype[o]=function(){var $=this.__wrapped__,L=c?[1]:arguments,H=$ instanceof Ie,ne=L[0],oe=H||ke($),le=function($e){var Le=x.apply(R,Qn([$e],L));return c&&me?Le[0]:Le};oe&&s&&typeof ne=="function"&&ne.length!=1&&(H=oe=!1);var me=this.__chain__,xe=!!this.__actions__.length,Re=D&&!me,Ne=H&&!xe;if(!D&&oe){$=Ne?$:new Ie(this);var Te=t.apply($,L);return Te.__actions__.push({func:ma,args:[le],thisArg:r}),new Kt(Te,me)}return Re&&Ne?t.apply(this,L):(Te=this.thru(le),Re?c?Te.value()[0]:Te.value():Te)})}),Gt(["pop","push","shift","sort","splice","unshift"],function(t){var o=Bi[t],s=/^(?:push|sort|unshift)$/.test(t)?"tap":"thru",c=/^(?:pop|shift)$/.test(t);R.prototype[t]=function(){var x=arguments;if(c&&!this.__chain__){var D=this.value();return o.apply(ke(D)?D:[],x)}return this[s](function($){return o.apply(ke($)?$:[],x)})}}),vn(Ie.prototype,function(t,o){var s=R[o];if(s){var c=s.name+"";qe.call(Qr,c)||(Qr[c]=[]),Qr[c].push({name:o,func:s})}}),Qr[ua(r,w).name]=[{name:"wrapper",func:r}],Ie.prototype.clone=tv,Ie.prototype.reverse=nv,Ie.prototype.value=rv,R.prototype.at=k0,R.prototype.chain=M0,R.prototype.commit=A0,R.prototype.next=N0,R.prototype.plant=$0,R.prototype.reverse=I0,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=L0,R.prototype.first=R.prototype.head,zo&&(R.prototype[zo]=z0),R},Jr=Ay();xr?((xr.exports=Jr)._=Jr,Ys._=Jr):bt._=Jr}).call(w1)}(Fa,Fa.exports)),Fa.exports}S1();const Qp=e=>e,x1=()=>{let e=Qp;return{configure(n){e=n},generate(n){return e(n)},reset(){e=Qp}}},qh=x1();function bi(e,...n){const r=new URL(`https://mui.com/production-error/?code=${e}`);return n.forEach(i=>r.searchParams.append("args[]",i)),`Minified MUI error #${e}; visit ${r} for the full message.`}function Ht(e){if(typeof e!="string")throw new Error(process.env.NODE_ENV!=="production"?"MUI: `capitalize(string)` expects a string argument.":bi(7));return e.charAt(0).toUpperCase()+e.slice(1)}var Ra={exports:{}},rl={exports:{}},We={};/** @license React v16.13.1
81
81
  * react-is.production.min.js
82
82
  *
83
83
  * Copyright (c) Facebook, Inc. and its affiliates.
@@ -112,22 +112,22 @@ Valid keys: `+JSON.stringify(Object.keys(G),null," "));var W=ae(N,q,ie,ve,be+".
112
112
  *
113
113
  * This source code is licensed under the MIT license found in the
114
114
  * LICENSE file in the root directory of this source tree.
115
- */var pd;function j1(){return pd||(pd=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var m=d.$$typeof;switch(m){case n:switch(d=d.type,d){case i:case u:case a:case b:case _:case S:return d;default:switch(d=d&&d.$$typeof,d){case f:case p:case M:case T:return d;case l:return d;default:return m}}case r:return m}}}var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),O=Symbol.for("react.client.reference");Ze.ContextConsumer=l,Ze.ContextProvider=f,Ze.Element=n,Ze.ForwardRef=p,Ze.Fragment=i,Ze.Lazy=M,Ze.Memo=T,Ze.Portal=r,Ze.Profiler=u,Ze.StrictMode=a,Ze.Suspense=b,Ze.SuspenseList=_,Ze.isContextConsumer=function(d){return e(d)===l},Ze.isContextProvider=function(d){return e(d)===f},Ze.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===n},Ze.isForwardRef=function(d){return e(d)===p},Ze.isFragment=function(d){return e(d)===i},Ze.isLazy=function(d){return e(d)===M},Ze.isMemo=function(d){return e(d)===T},Ze.isPortal=function(d){return e(d)===r},Ze.isProfiler=function(d){return e(d)===u},Ze.isStrictMode=function(d){return e(d)===a},Ze.isSuspense=function(d){return e(d)===b},Ze.isSuspenseList=function(d){return e(d)===_},Ze.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===i||d===u||d===a||d===b||d===_||typeof d=="object"&&d!==null&&(d.$$typeof===M||d.$$typeof===T||d.$$typeof===f||d.$$typeof===l||d.$$typeof===p||d.$$typeof===O||d.getModuleId!==void 0)},Ze.typeOf=e}()),Ze}var dd;function k1(){return dd||(dd=1,process.env.NODE_ENV==="production"?ll.exports=D1():ll.exports=j1()),ll.exports}var Fr=k1();function pr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jh(e){if(re.isValidElement(e)||Fr.isValidElementType(e)||!pr(e))return e;const n={};return Object.keys(e).forEach(r=>{n[r]=Jh(e[r])}),n}function Lr(e,n,r={clone:!0}){const i=r.clone?{...e}:e;return pr(e)&&pr(n)&&Object.keys(n).forEach(a=>{re.isValidElement(n[a])||Fr.isValidElementType(n[a])?i[a]=n[a]:pr(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&pr(e[a])?i[a]=Lr(e[a],n[a],r):r.clone?i[a]=pr(n[a])?Jh(n[a]):n[a]:i[a]=n[a]}),i}function hi(e,n){return n?Lr(e,n,{clone:!1}):e}const yr=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.string,g.object,g.array]):{};function hd(e,n){if(!e.containerQueries)return n;const r=Object.keys(n).filter(i=>i.startsWith("@container")).sort((i,a)=>{var u,l;const f=/min-width:\s*([0-9.]+)/;return+(((u=i.match(f))==null?void 0:u[1])||0)-+(((l=a.match(f))==null?void 0:l[1])||0)});return r.length?r.reduce((i,a)=>{const u=n[a];return delete i[a],i[a]=u,i},{...n}):n}function M1(e,n){return n==="@"||n.startsWith("@")&&(e.some(r=>n.startsWith(`@${r}`))||!!n.match(/^@\d/))}function A1(e,n){const r=n.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${n})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
116
- For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Xa(18,`(${n})`));return null}const[,i,a]=r,u=Number.isNaN(+i)?i||0:+i;return e.containerQueries(a).up(u)}function N1(e){const n=(u,l)=>u.replace("@media",l?`@container ${l}`:"@container");function r(u,l){u.up=(...f)=>n(e.breakpoints.up(...f),l),u.down=(...f)=>n(e.breakpoints.down(...f),l),u.between=(...f)=>n(e.breakpoints.between(...f),l),u.only=(...f)=>n(e.breakpoints.only(...f),l),u.not=(...f)=>{const p=n(e.breakpoints.not(...f),l);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const i={},a=u=>(r(i,u),i);return r(a),{...e,containerQueries:a}}const fs={xs:0,sm:600,md:900,lg:1200,xl:1536},md={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fs[e]}px)`},z1={containerQueries:e=>({up:n=>{let r=typeof n=="number"?n:fs[n]||n;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function qn(e,n,r){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||md;return n.reduce((u,l,f)=>(u[a.up(a.keys[f])]=r(n[f]),u),{})}if(typeof n=="object"){const a=i.breakpoints||md;return Object.keys(n).reduce((u,l)=>{if(M1(a.keys,l)){const f=A1(i.containerQueries?i:z1,l);f&&(u[f]=r(n[l],l))}else if(Object.keys(a.values||fs).includes(l)){const f=a.up(l);u[f]=r(n[l],l)}else{const f=l;u[f]=n[f]}return u},{})}return r(n)}function $1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function gd(e,n){return e.reduce((r,i)=>{const a=r[i];return(!a||Object.keys(a).length===0)&&delete r[i],r},n)}function ps(e,n,r=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&r){const i=`vars.${n}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,e);if(i!=null)return i}return n.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function Ga(e,n,r,i=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||i:a=ps(e,r)||i,n&&(a=n(a,i,e)),a}function ht(e){const{prop:n,cssProperty:r=e.prop,themeKey:i,transform:a}=e,u=l=>{if(l[n]==null)return null;const f=l[n],p=l.theme,b=ps(p,i)||{};return qn(l,f,_=>{let T=Ga(b,a,_);return _===T&&typeof _=="string"&&(T=Ga(b,a,`${n}${_==="default"?"":Ll(_)}`,_)),r===!1?T:{[r]:T}})};return u.propTypes=process.env.NODE_ENV!=="production"?{[n]:yr}:{},u.filterProps=[n],u}function I1(e){const n={};return r=>(n[r]===void 0&&(n[r]=e(r)),n[r])}const L1={m:"margin",p:"padding"},U1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B1=I1(e=>{if(e.length>2)if(yd[e])e=yd[e];else return[e];const[n,r]=e.split(""),i=L1[n],a=U1[r]||"";return Array.isArray(a)?a.map(u=>i+u):[i+a]}),ds=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],V1=[...ds,...hs];function Oi(e,n,r,i){const a=ps(e,n,!0)??r;return typeof a=="number"||typeof a=="string"?u=>typeof u=="string"?u:(process.env.NODE_ENV!=="production"&&typeof u!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${u}.`),typeof a=="string"?a.startsWith("var(")&&u===0?0:a.startsWith("var(")&&u===1?a:`calc(${u} * ${a})`:a*u):Array.isArray(a)?u=>{if(typeof u=="string")return u;const l=Math.abs(u);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>a.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${l} > ${a.length-1}, you need to add the missing values.`].join(`
115
+ */var pd;function j1(){return pd||(pd=1,process.env.NODE_ENV!=="production"&&function(){function e(d){if(typeof d=="object"&&d!==null){var m=d.$$typeof;switch(m){case n:switch(d=d.type,d){case i:case u:case a:case b:case _:case S:return d;default:switch(d=d&&d.$$typeof,d){case f:case p:case M:case T:return d;case l:return d;default:return m}}case r:return m}}}var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),u=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),b=Symbol.for("react.suspense"),_=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),M=Symbol.for("react.lazy"),S=Symbol.for("react.view_transition"),O=Symbol.for("react.client.reference");Ze.ContextConsumer=l,Ze.ContextProvider=f,Ze.Element=n,Ze.ForwardRef=p,Ze.Fragment=i,Ze.Lazy=M,Ze.Memo=T,Ze.Portal=r,Ze.Profiler=u,Ze.StrictMode=a,Ze.Suspense=b,Ze.SuspenseList=_,Ze.isContextConsumer=function(d){return e(d)===l},Ze.isContextProvider=function(d){return e(d)===f},Ze.isElement=function(d){return typeof d=="object"&&d!==null&&d.$$typeof===n},Ze.isForwardRef=function(d){return e(d)===p},Ze.isFragment=function(d){return e(d)===i},Ze.isLazy=function(d){return e(d)===M},Ze.isMemo=function(d){return e(d)===T},Ze.isPortal=function(d){return e(d)===r},Ze.isProfiler=function(d){return e(d)===u},Ze.isStrictMode=function(d){return e(d)===a},Ze.isSuspense=function(d){return e(d)===b},Ze.isSuspenseList=function(d){return e(d)===_},Ze.isValidElementType=function(d){return typeof d=="string"||typeof d=="function"||d===i||d===u||d===a||d===b||d===_||typeof d=="object"&&d!==null&&(d.$$typeof===M||d.$$typeof===T||d.$$typeof===f||d.$$typeof===l||d.$$typeof===p||d.$$typeof===O||d.getModuleId!==void 0)},Ze.typeOf=e}()),Ze}var dd;function k1(){return dd||(dd=1,process.env.NODE_ENV==="production"?ll.exports=D1():ll.exports=j1()),ll.exports}var Fr=k1();function pr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Jh(e){if(re.isValidElement(e)||Fr.isValidElementType(e)||!pr(e))return e;const n={};return Object.keys(e).forEach(r=>{n[r]=Jh(e[r])}),n}function Lr(e,n,r={clone:!0}){const i=r.clone?{...e}:e;return pr(e)&&pr(n)&&Object.keys(n).forEach(a=>{re.isValidElement(n[a])||Fr.isValidElementType(n[a])?i[a]=n[a]:pr(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&pr(e[a])?i[a]=Lr(e[a],n[a],r):r.clone?i[a]=pr(n[a])?Jh(n[a]):n[a]:i[a]=n[a]}),i}function gi(e,n){return n?Lr(e,n,{clone:!1}):e}const yr=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.string,g.object,g.array]):{};function hd(e,n){if(!e.containerQueries)return n;const r=Object.keys(n).filter(i=>i.startsWith("@container")).sort((i,a)=>{var u,l;const f=/min-width:\s*([0-9.]+)/;return+(((u=i.match(f))==null?void 0:u[1])||0)-+(((l=a.match(f))==null?void 0:l[1])||0)});return r.length?r.reduce((i,a)=>{const u=n[a];return delete i[a],i[a]=u,i},{...n}):n}function M1(e,n){return n==="@"||n.startsWith("@")&&(e.some(r=>n.startsWith(`@${r}`))||!!n.match(/^@\d/))}function A1(e,n){const r=n.match(/^@([^/]+)?\/?(.+)?$/);if(!r){if(process.env.NODE_ENV!=="production")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The provided shorthand ${`(${n})`} is invalid. The format should be \`@<breakpoint | number>\` or \`@<breakpoint | number>/<container>\`.
116
+ For example, \`@sm\` or \`@600\` or \`@40rem/sidebar\`.`:Xa(18,`(${n})`));return null}const[,i,a]=r,u=Number.isNaN(+i)?i||0:+i;return e.containerQueries(a).up(u)}function N1(e){const n=(u,l)=>u.replace("@media",l?`@container ${l}`:"@container");function r(u,l){u.up=(...f)=>n(e.breakpoints.up(...f),l),u.down=(...f)=>n(e.breakpoints.down(...f),l),u.between=(...f)=>n(e.breakpoints.between(...f),l),u.only=(...f)=>n(e.breakpoints.only(...f),l),u.not=(...f)=>{const p=n(e.breakpoints.not(...f),l);return p.includes("not all and")?p.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):p}}const i={},a=u=>(r(i,u),i);return r(a),{...e,containerQueries:a}}const fs={xs:0,sm:600,md:900,lg:1200,xl:1536},md={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${fs[e]}px)`},z1={containerQueries:e=>({up:n=>{let r=typeof n=="number"?n:fs[n]||n;return typeof r=="number"&&(r=`${r}px`),e?`@container ${e} (min-width:${r})`:`@container (min-width:${r})`}})};function qn(e,n,r){const i=e.theme||{};if(Array.isArray(n)){const a=i.breakpoints||md;return n.reduce((u,l,f)=>(u[a.up(a.keys[f])]=r(n[f]),u),{})}if(typeof n=="object"){const a=i.breakpoints||md;return Object.keys(n).reduce((u,l)=>{if(M1(a.keys,l)){const f=A1(i.containerQueries?i:z1,l);f&&(u[f]=r(n[l],l))}else if(Object.keys(a.values||fs).includes(l)){const f=a.up(l);u[f]=r(n[l],l)}else{const f=l;u[f]=n[f]}return u},{})}return r(n)}function $1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function gd(e,n){return e.reduce((r,i)=>{const a=r[i];return(!a||Object.keys(a).length===0)&&delete r[i],r},n)}function ps(e,n,r=!0){if(!n||typeof n!="string")return null;if(e&&e.vars&&r){const i=`vars.${n}`.split(".").reduce((a,u)=>a&&a[u]?a[u]:null,e);if(i!=null)return i}return n.split(".").reduce((i,a)=>i&&i[a]!=null?i[a]:null,e)}function Ga(e,n,r,i=r){let a;return typeof e=="function"?a=e(r):Array.isArray(e)?a=e[r]||i:a=ps(e,r)||i,n&&(a=n(a,i,e)),a}function ht(e){const{prop:n,cssProperty:r=e.prop,themeKey:i,transform:a}=e,u=l=>{if(l[n]==null)return null;const f=l[n],p=l.theme,b=ps(p,i)||{};return qn(l,f,_=>{let T=Ga(b,a,_);return _===T&&typeof _=="string"&&(T=Ga(b,a,`${n}${_==="default"?"":Ll(_)}`,_)),r===!1?T:{[r]:T}})};return u.propTypes=process.env.NODE_ENV!=="production"?{[n]:yr}:{},u.filterProps=[n],u}function I1(e){const n={};return r=>(n[r]===void 0&&(n[r]=e(r)),n[r])}const L1={m:"margin",p:"padding"},U1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},yd={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},B1=I1(e=>{if(e.length>2)if(yd[e])e=yd[e];else return[e];const[n,r]=e.split(""),i=L1[n],a=U1[r]||"";return Array.isArray(a)?a.map(u=>i+u):[i+a]}),ds=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],hs=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],V1=[...ds,...hs];function Ci(e,n,r,i){const a=ps(e,n,!0)??r;return typeof a=="number"||typeof a=="string"?u=>typeof u=="string"?u:(process.env.NODE_ENV!=="production"&&typeof u!="number"&&console.error(`MUI: Expected ${i} argument to be a number or a string, got ${u}.`),typeof a=="string"?a.startsWith("var(")&&u===0?0:a.startsWith("var(")&&u===1?a:`calc(${u} * ${a})`:a*u):Array.isArray(a)?u=>{if(typeof u=="string")return u;const l=Math.abs(u);process.env.NODE_ENV!=="production"&&(Number.isInteger(l)?l>a.length-1&&console.error([`MUI: The value provided (${l}) overflows.`,`The supported values are: ${JSON.stringify(a)}.`,`${l} > ${a.length-1}, you need to add the missing values.`].join(`
117
117
  `)):console.error([`MUI: The \`theme.${n}\` array type cannot be combined with non integer values.You should either use an integer value that can be used as index, or define the \`theme.${n}\` as a number.`].join(`
118
118
  `)));const f=a[l];return u>=0?f:typeof f=="number"?-f:typeof f=="string"&&f.startsWith("var(")?`calc(-1 * ${f})`:`-${f}`}:typeof a=="function"?a:(process.env.NODE_ENV!=="production"&&console.error([`MUI: The \`theme.${n}\` value (${a}) is invalid.`,"It should be a number, an array or a function."].join(`
119
- `)),()=>{})}function Ul(e){return Oi(e,"spacing",8,"spacing")}function Ei(e,n){return typeof n=="string"||n==null?n:e(n)}function F1(e,n){return r=>e.reduce((i,a)=>(i[a]=Ei(n,r),i),{})}function H1(e,n,r,i){if(!n.includes(r))return null;const a=B1(r),u=F1(a,i),l=e[r];return qn(e,l,u)}function Kh(e,n){const r=Ul(e.theme);return Object.keys(e).map(i=>H1(e,n,i,r)).reduce(hi,{})}function ut(e){return Kh(e,ds)}ut.propTypes=process.env.NODE_ENV!=="production"?ds.reduce((e,n)=>(e[n]=yr,e),{}):{};ut.filterProps=ds;function lt(e){return Kh(e,hs)}lt.propTypes=process.env.NODE_ENV!=="production"?hs.reduce((e,n)=>(e[n]=yr,e),{}):{};lt.filterProps=hs;process.env.NODE_ENV!=="production"&&V1.reduce((e,n)=>(e[n]=yr,e),{});function ms(...e){const n=e.reduce((i,a)=>(a.filterProps.forEach(u=>{i[u]=a}),i),{}),r=i=>Object.keys(i).reduce((a,u)=>n[u]?hi(a,n[u](i)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,a)=>Object.assign(i,a.propTypes),{}):{},r.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),r}function rn(e){return typeof e!="number"?e:`${e}px solid`}function cn(e,n){return ht({prop:e,themeKey:"borders",transform:n})}const W1=cn("border",rn),q1=cn("borderTop",rn),Y1=cn("borderRight",rn),X1=cn("borderBottom",rn),G1=cn("borderLeft",rn),J1=cn("borderColor"),K1=cn("borderTopColor"),Z1=cn("borderRightColor"),Q1=cn("borderBottomColor"),e_=cn("borderLeftColor"),t_=cn("outline",rn),n_=cn("outlineColor"),gs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=Oi(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Ei(n,i)});return qn(e,e.borderRadius,r)}return null};gs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:yr}:{};gs.filterProps=["borderRadius"];ms(W1,q1,Y1,X1,G1,J1,K1,Z1,Q1,e_,gs,t_,n_);const ys=e=>{if(e.gap!==void 0&&e.gap!==null){const n=Oi(e.theme,"spacing",8,"gap"),r=i=>({gap:Ei(n,i)});return qn(e,e.gap,r)}return null};ys.propTypes=process.env.NODE_ENV!=="production"?{gap:yr}:{};ys.filterProps=["gap"];const vs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=Oi(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Ei(n,i)});return qn(e,e.columnGap,r)}return null};vs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:yr}:{};vs.filterProps=["columnGap"];const bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=Oi(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Ei(n,i)});return qn(e,e.rowGap,r)}return null};bs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:yr}:{};bs.filterProps=["rowGap"];const r_=ht({prop:"gridColumn"}),o_=ht({prop:"gridRow"}),i_=ht({prop:"gridAutoFlow"}),a_=ht({prop:"gridAutoColumns"}),s_=ht({prop:"gridAutoRows"}),u_=ht({prop:"gridTemplateColumns"}),l_=ht({prop:"gridTemplateRows"}),c_=ht({prop:"gridTemplateAreas"}),f_=ht({prop:"gridArea"});ms(ys,vs,bs,r_,o_,i_,a_,s_,u_,l_,c_,f_);function yo(e,n){return n==="grey"?n:e}const p_=ht({prop:"color",themeKey:"palette",transform:yo}),d_=ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yo}),h_=ht({prop:"backgroundColor",themeKey:"palette",transform:yo});ms(p_,d_,h_);function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const m_=ht({prop:"width",transform:Ft}),Bl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=r=>{var i,a,u,l,f;const p=((u=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:u[r])||fs[r];return p?((f=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${p}${e.theme.breakpoints.unit}`}:{maxWidth:p}:{maxWidth:Ft(r)}};return qn(e,e.maxWidth,n)}return null};Bl.filterProps=["maxWidth"];const g_=ht({prop:"minWidth",transform:Ft}),y_=ht({prop:"height",transform:Ft}),v_=ht({prop:"maxHeight",transform:Ft}),b_=ht({prop:"minHeight",transform:Ft});ht({prop:"size",cssProperty:"width",transform:Ft});ht({prop:"size",cssProperty:"height",transform:Ft});const w_=ht({prop:"boxSizing"});ms(m_,Bl,g_,y_,v_,b_,w_);const Ci={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gs},color:{themeKey:"palette",transform:yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yo},backgroundColor:{themeKey:"palette",transform:yo},p:{style:lt},pt:{style:lt},pr:{style:lt},pb:{style:lt},pl:{style:lt},px:{style:lt},py:{style:lt},padding:{style:lt},paddingTop:{style:lt},paddingRight:{style:lt},paddingBottom:{style:lt},paddingLeft:{style:lt},paddingX:{style:lt},paddingY:{style:lt},paddingInline:{style:lt},paddingInlineStart:{style:lt},paddingInlineEnd:{style:lt},paddingBlock:{style:lt},paddingBlockStart:{style:lt},paddingBlockEnd:{style:lt},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:ys},rowGap:{style:bs},columnGap:{style:vs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ft},maxWidth:{style:Bl},minWidth:{transform:Ft},height:{transform:Ft},maxHeight:{transform:Ft},minHeight:{transform:Ft},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S_(...e){const n=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),r=new Set(n);return e.every(i=>r.size===Object.keys(i).length)}function x_(e,n){return typeof e=="function"?e(n):e}function __(){function e(r,i,a,u){const l={[r]:i,theme:a},f=u[r];if(!f)return{[r]:i};const{cssProperty:p=r,themeKey:b,transform:_,style:T}=f;if(i==null)return null;if(b==="typography"&&i==="inherit")return{[r]:i};const M=ps(a,b)||{};return T?T(l):qn(l,i,S=>{let O=Ga(M,_,S);return S===O&&typeof S=="string"&&(O=Ga(M,_,`${r}${S==="default"?"":Ll(S)}`,S)),p===!1?O:{[p]:O}})}function n(r){const{sx:i,theme:a={},nested:u}=r||{};if(!i)return null;const l=a.unstable_sxConfig??Ci;function f(p){let b=p;if(typeof p=="function")b=p(a);else if(typeof p!="object")return p;if(!b)return null;const _=$1(a.breakpoints),T=Object.keys(_);let M=_;return Object.keys(b).forEach(S=>{const O=x_(b[S],a);if(O!=null)if(typeof O=="object")if(l[S])M=hi(M,e(S,O,a,l));else{const d=qn({theme:a},O,m=>({[S]:m}));S_(d,O)?M[S]=n({sx:O,theme:a,nested:!0}):M=hi(M,d)}else M=hi(M,e(S,O,a,l))}),!u&&a.modularCssLayers?{"@layer sx":hd(a,gd(T,M))}:hd(a,gd(T,M))}return Array.isArray(i)?i.map(f):f(i)}return n}const Hr=__();Hr.filterProps=["sx"];const O_=e=>{var n;const r={systemProps:{},otherProps:{}},i=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Ci;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function E_(e){const{sx:n,...r}=e,{systemProps:i,otherProps:a}=O_(r);let u;return Array.isArray(n)?u=[i,...n]:typeof n=="function"?u=(...l)=>{const f=n(...l);return pr(f)?{...i,...f}:i}:u={...i,...n},{...a,sx:u}}function C_(e){for(var n=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var R_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function T_(e){var n=Object.create(null);return function(r){return n[r]===void 0&&(n[r]=e(r)),n[r]}}var P_=/[A-Z]|^ms/g,D_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zh=function(e){return e.charCodeAt(1)===45},vd=function(e){return e!=null&&typeof e!="boolean"},cl=T_(function(e){return Zh(e)?e:e.replace(P_,"-$&").toLowerCase()}),bd=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(D_,function(r,i,a){return hr={name:i,styles:a,next:hr},i})}return R_[e]!==1&&!Zh(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ja(e,n,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return hr={name:a.name,styles:a.styles,next:hr},a.name;var u=r;if(u.styles!==void 0){var l=u.next;if(l!==void 0)for(;l!==void 0;)hr={name:l.name,styles:l.styles,next:hr},l=l.next;var f=u.styles+";";return f}return j_(e,n,r)}}var p=r;return p}function j_(e,n,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=Ja(e,n,r[a])+";";else for(var u in r){var l=r[u];if(typeof l!="object"){var f=l;vd(f)&&(i+=cl(u)+":"+bd(u,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&n==null)for(var p=0;p<l.length;p++)vd(l[p])&&(i+=cl(u)+":"+bd(u,l[p])+";");else{var b=Ja(e,n,l);switch(u){case"animation":case"animationName":{i+=cl(u)+":"+b+";";break}default:i+=u+"{"+b+"}"}}}return i}var wd=/label:\s*([^\s;{]+)\s*(;|$)/g,hr;function k_(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";hr=void 0;var u=e[0];if(u==null||u.raw===void 0)i=!1,a+=Ja(r,n,u);else{var l=u;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=Ja(r,n,e[f]),i){var p=u;a+=p[f]}wd.lastIndex=0;for(var b="",_;(_=wd.exec(a))!==null;)b+="-"+_[1];var T=C_(a)+b;return{name:T,styles:a,next:hr}}/**
119
+ `)),()=>{})}function Ul(e){return Ci(e,"spacing",8,"spacing")}function Ri(e,n){return typeof n=="string"||n==null?n:e(n)}function F1(e,n){return r=>e.reduce((i,a)=>(i[a]=Ri(n,r),i),{})}function H1(e,n,r,i){if(!n.includes(r))return null;const a=B1(r),u=F1(a,i),l=e[r];return qn(e,l,u)}function Kh(e,n){const r=Ul(e.theme);return Object.keys(e).map(i=>H1(e,n,i,r)).reduce(gi,{})}function ut(e){return Kh(e,ds)}ut.propTypes=process.env.NODE_ENV!=="production"?ds.reduce((e,n)=>(e[n]=yr,e),{}):{};ut.filterProps=ds;function lt(e){return Kh(e,hs)}lt.propTypes=process.env.NODE_ENV!=="production"?hs.reduce((e,n)=>(e[n]=yr,e),{}):{};lt.filterProps=hs;process.env.NODE_ENV!=="production"&&V1.reduce((e,n)=>(e[n]=yr,e),{});function ms(...e){const n=e.reduce((i,a)=>(a.filterProps.forEach(u=>{i[u]=a}),i),{}),r=i=>Object.keys(i).reduce((a,u)=>n[u]?gi(a,n[u](i)):a,{});return r.propTypes=process.env.NODE_ENV!=="production"?e.reduce((i,a)=>Object.assign(i,a.propTypes),{}):{},r.filterProps=e.reduce((i,a)=>i.concat(a.filterProps),[]),r}function rn(e){return typeof e!="number"?e:`${e}px solid`}function cn(e,n){return ht({prop:e,themeKey:"borders",transform:n})}const W1=cn("border",rn),q1=cn("borderTop",rn),Y1=cn("borderRight",rn),X1=cn("borderBottom",rn),G1=cn("borderLeft",rn),J1=cn("borderColor"),K1=cn("borderTopColor"),Z1=cn("borderRightColor"),Q1=cn("borderBottomColor"),e_=cn("borderLeftColor"),t_=cn("outline",rn),n_=cn("outlineColor"),gs=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const n=Ci(e.theme,"shape.borderRadius",4,"borderRadius"),r=i=>({borderRadius:Ri(n,i)});return qn(e,e.borderRadius,r)}return null};gs.propTypes=process.env.NODE_ENV!=="production"?{borderRadius:yr}:{};gs.filterProps=["borderRadius"];ms(W1,q1,Y1,X1,G1,J1,K1,Z1,Q1,e_,gs,t_,n_);const ys=e=>{if(e.gap!==void 0&&e.gap!==null){const n=Ci(e.theme,"spacing",8,"gap"),r=i=>({gap:Ri(n,i)});return qn(e,e.gap,r)}return null};ys.propTypes=process.env.NODE_ENV!=="production"?{gap:yr}:{};ys.filterProps=["gap"];const vs=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const n=Ci(e.theme,"spacing",8,"columnGap"),r=i=>({columnGap:Ri(n,i)});return qn(e,e.columnGap,r)}return null};vs.propTypes=process.env.NODE_ENV!=="production"?{columnGap:yr}:{};vs.filterProps=["columnGap"];const bs=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const n=Ci(e.theme,"spacing",8,"rowGap"),r=i=>({rowGap:Ri(n,i)});return qn(e,e.rowGap,r)}return null};bs.propTypes=process.env.NODE_ENV!=="production"?{rowGap:yr}:{};bs.filterProps=["rowGap"];const r_=ht({prop:"gridColumn"}),o_=ht({prop:"gridRow"}),i_=ht({prop:"gridAutoFlow"}),a_=ht({prop:"gridAutoColumns"}),s_=ht({prop:"gridAutoRows"}),u_=ht({prop:"gridTemplateColumns"}),l_=ht({prop:"gridTemplateRows"}),c_=ht({prop:"gridTemplateAreas"}),f_=ht({prop:"gridArea"});ms(ys,vs,bs,r_,o_,i_,a_,s_,u_,l_,c_,f_);function yo(e,n){return n==="grey"?n:e}const p_=ht({prop:"color",themeKey:"palette",transform:yo}),d_=ht({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:yo}),h_=ht({prop:"backgroundColor",themeKey:"palette",transform:yo});ms(p_,d_,h_);function Ft(e){return e<=1&&e!==0?`${e*100}%`:e}const m_=ht({prop:"width",transform:Ft}),Bl=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const n=r=>{var i,a,u,l,f;const p=((u=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:u[r])||fs[r];return p?((f=(l=e.theme)==null?void 0:l.breakpoints)==null?void 0:f.unit)!=="px"?{maxWidth:`${p}${e.theme.breakpoints.unit}`}:{maxWidth:p}:{maxWidth:Ft(r)}};return qn(e,e.maxWidth,n)}return null};Bl.filterProps=["maxWidth"];const g_=ht({prop:"minWidth",transform:Ft}),y_=ht({prop:"height",transform:Ft}),v_=ht({prop:"maxHeight",transform:Ft}),b_=ht({prop:"minHeight",transform:Ft});ht({prop:"size",cssProperty:"width",transform:Ft});ht({prop:"size",cssProperty:"height",transform:Ft});const w_=ht({prop:"boxSizing"});ms(m_,Bl,g_,y_,v_,b_,w_);const Ti={border:{themeKey:"borders",transform:rn},borderTop:{themeKey:"borders",transform:rn},borderRight:{themeKey:"borders",transform:rn},borderBottom:{themeKey:"borders",transform:rn},borderLeft:{themeKey:"borders",transform:rn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:rn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:gs},color:{themeKey:"palette",transform:yo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:yo},backgroundColor:{themeKey:"palette",transform:yo},p:{style:lt},pt:{style:lt},pr:{style:lt},pb:{style:lt},pl:{style:lt},px:{style:lt},py:{style:lt},padding:{style:lt},paddingTop:{style:lt},paddingRight:{style:lt},paddingBottom:{style:lt},paddingLeft:{style:lt},paddingX:{style:lt},paddingY:{style:lt},paddingInline:{style:lt},paddingInlineStart:{style:lt},paddingInlineEnd:{style:lt},paddingBlock:{style:lt},paddingBlockStart:{style:lt},paddingBlockEnd:{style:lt},m:{style:ut},mt:{style:ut},mr:{style:ut},mb:{style:ut},ml:{style:ut},mx:{style:ut},my:{style:ut},margin:{style:ut},marginTop:{style:ut},marginRight:{style:ut},marginBottom:{style:ut},marginLeft:{style:ut},marginX:{style:ut},marginY:{style:ut},marginInline:{style:ut},marginInlineStart:{style:ut},marginInlineEnd:{style:ut},marginBlock:{style:ut},marginBlockStart:{style:ut},marginBlockEnd:{style:ut},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:ys},rowGap:{style:bs},columnGap:{style:vs},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Ft},maxWidth:{style:Bl},minWidth:{transform:Ft},height:{transform:Ft},maxHeight:{transform:Ft},minHeight:{transform:Ft},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function S_(...e){const n=e.reduce((i,a)=>i.concat(Object.keys(a)),[]),r=new Set(n);return e.every(i=>r.size===Object.keys(i).length)}function x_(e,n){return typeof e=="function"?e(n):e}function __(){function e(r,i,a,u){const l={[r]:i,theme:a},f=u[r];if(!f)return{[r]:i};const{cssProperty:p=r,themeKey:b,transform:_,style:T}=f;if(i==null)return null;if(b==="typography"&&i==="inherit")return{[r]:i};const M=ps(a,b)||{};return T?T(l):qn(l,i,S=>{let O=Ga(M,_,S);return S===O&&typeof S=="string"&&(O=Ga(M,_,`${r}${S==="default"?"":Ll(S)}`,S)),p===!1?O:{[p]:O}})}function n(r){const{sx:i,theme:a={},nested:u}=r||{};if(!i)return null;const l=a.unstable_sxConfig??Ti;function f(p){let b=p;if(typeof p=="function")b=p(a);else if(typeof p!="object")return p;if(!b)return null;const _=$1(a.breakpoints),T=Object.keys(_);let M=_;return Object.keys(b).forEach(S=>{const O=x_(b[S],a);if(O!=null)if(typeof O=="object")if(l[S])M=gi(M,e(S,O,a,l));else{const d=qn({theme:a},O,m=>({[S]:m}));S_(d,O)?M[S]=n({sx:O,theme:a,nested:!0}):M=gi(M,d)}else M=gi(M,e(S,O,a,l))}),!u&&a.modularCssLayers?{"@layer sx":hd(a,gd(T,M))}:hd(a,gd(T,M))}return Array.isArray(i)?i.map(f):f(i)}return n}const Hr=__();Hr.filterProps=["sx"];const O_=e=>{var n;const r={systemProps:{},otherProps:{}},i=((n=e==null?void 0:e.theme)==null?void 0:n.unstable_sxConfig)??Ti;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function E_(e){const{sx:n,...r}=e,{systemProps:i,otherProps:a}=O_(r);let u;return Array.isArray(n)?u=[i,...n]:typeof n=="function"?u=(...l)=>{const f=n(...l);return pr(f)?{...i,...f}:i}:u={...i,...n},{...a,sx:u}}function C_(e){for(var n=0,r,i=0,a=e.length;a>=4;++i,a-=4)r=e.charCodeAt(i)&255|(e.charCodeAt(++i)&255)<<8|(e.charCodeAt(++i)&255)<<16|(e.charCodeAt(++i)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,n=(r&65535)*1540483477+((r>>>16)*59797<<16)^(n&65535)*1540483477+((n>>>16)*59797<<16);switch(a){case 3:n^=(e.charCodeAt(i+2)&255)<<16;case 2:n^=(e.charCodeAt(i+1)&255)<<8;case 1:n^=e.charCodeAt(i)&255,n=(n&65535)*1540483477+((n>>>16)*59797<<16)}return n^=n>>>13,n=(n&65535)*1540483477+((n>>>16)*59797<<16),((n^n>>>15)>>>0).toString(36)}var R_={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function T_(e){var n=Object.create(null);return function(r){return n[r]===void 0&&(n[r]=e(r)),n[r]}}var P_=/[A-Z]|^ms/g,D_=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Zh=function(e){return e.charCodeAt(1)===45},vd=function(e){return e!=null&&typeof e!="boolean"},cl=T_(function(e){return Zh(e)?e:e.replace(P_,"-$&").toLowerCase()}),bd=function(e,n){switch(e){case"animation":case"animationName":if(typeof n=="string")return n.replace(D_,function(r,i,a){return hr={name:i,styles:a,next:hr},i})}return R_[e]!==1&&!Zh(e)&&typeof n=="number"&&n!==0?n+"px":n};function Ja(e,n,r){if(r==null)return"";var i=r;if(i.__emotion_styles!==void 0)return i;switch(typeof r){case"boolean":return"";case"object":{var a=r;if(a.anim===1)return hr={name:a.name,styles:a.styles,next:hr},a.name;var u=r;if(u.styles!==void 0){var l=u.next;if(l!==void 0)for(;l!==void 0;)hr={name:l.name,styles:l.styles,next:hr},l=l.next;var f=u.styles+";";return f}return j_(e,n,r)}}var p=r;return p}function j_(e,n,r){var i="";if(Array.isArray(r))for(var a=0;a<r.length;a++)i+=Ja(e,n,r[a])+";";else for(var u in r){var l=r[u];if(typeof l!="object"){var f=l;vd(f)&&(i+=cl(u)+":"+bd(u,f)+";")}else if(Array.isArray(l)&&typeof l[0]=="string"&&n==null)for(var p=0;p<l.length;p++)vd(l[p])&&(i+=cl(u)+":"+bd(u,l[p])+";");else{var b=Ja(e,n,l);switch(u){case"animation":case"animationName":{i+=cl(u)+":"+b+";";break}default:i+=u+"{"+b+"}"}}}return i}var wd=/label:\s*([^\s;{]+)\s*(;|$)/g,hr;function k_(e,n,r){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var i=!0,a="";hr=void 0;var u=e[0];if(u==null||u.raw===void 0)i=!1,a+=Ja(r,n,u);else{var l=u;a+=l[0]}for(var f=1;f<e.length;f++)if(a+=Ja(r,n,e[f]),i){var p=u;a+=p[f]}wd.lastIndex=0;for(var b="",_;(_=wd.exec(a))!==null;)b+="-"+_[1];var T=C_(a)+b;return{name:T,styles:a,next:hr}}/**
120
120
  * @mui/styled-engine v7.3.3
121
121
  *
122
122
  * @license MIT
123
123
  * This source code is licensed under the MIT license found in the
124
124
  * LICENSE file in the root directory of this source tree.
125
125
  */function Qh(e,n){const r=Vx(e,n);return process.env.NODE_ENV!=="production"?(...i)=>{const a=typeof e=="string"?`"${e}"`:"component";return i.length===0?console.error([`MUI: Seems like you called \`styled(${a})()\` without a \`style\` argument.`,'You must provide a `styles` argument: `styled("div")(styleYouForgotToPass)`.'].join(`
126
- `)):i.some(u=>u===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...i)}:r}function M_(e,n){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))}const Sd=[];function Ur(e){return Sd[0]=e,k_(Sd)}const A_=e=>{const n=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return n.sort((r,i)=>r.val-i.val),n.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function N_(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...a}=e,u=A_(n),l=Object.keys(u);function f(M){return`@media (min-width:${typeof n[M]=="number"?n[M]:M}${r})`}function p(M){return`@media (max-width:${(typeof n[M]=="number"?n[M]:M)-i/100}${r})`}function b(M,S){const O=l.indexOf(S);return`@media (min-width:${typeof n[M]=="number"?n[M]:M}${r}) and (max-width:${(O!==-1&&typeof n[l[O]]=="number"?n[l[O]]:S)-i/100}${r})`}function _(M){return l.indexOf(M)+1<l.length?b(M,l[l.indexOf(M)+1]):f(M)}function T(M){const S=l.indexOf(M);return S===0?f(l[1]):S===l.length-1?p(l[S]):b(M,l[l.indexOf(M)+1]).replace("@media","@media not all and")}return{keys:l,values:u,up:f,down:p,between:b,only:_,not:T,unit:r,...a}}const z_={borderRadius:4};function em(e=8,n=Ul({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(a=>{const u=n(a);return typeof u=="number"?`${u}px`:u}).join(" "));return r.mui=!0,r}function $_(e,n){var r;const i=this;if(i.vars){if(!((r=i.colorSchemes)!=null&&r[e])||typeof i.getColorSchemeSelector!="function")return{};let a=i.getColorSchemeSelector(e);return a==="&"?n:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:n})}return i.palette.mode===e?n:{}}function Vl(e={},...n){const{breakpoints:r={},palette:i={},spacing:a,shape:u={},...l}=e,f=N_(r),p=em(a);let b=Lr({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:p,shape:{...z_,...u}},l);return b=N1(b),b.applyStyles=$_,b=n.reduce((_,T)=>Lr(_,T),b),b.unstable_sxConfig={...Ci,...l==null?void 0:l.unstable_sxConfig},b.unstable_sx=function(_){return Hr({sx:_,theme:this})},b}function I_(e){return Object.keys(e).length===0}function L_(e=null){const n=re.useContext(cs.ThemeContext);return!n||I_(n)?e:n}const U_=Vl();function tm(e=U_){return L_(e)}function B_(e={}){const{themeId:n,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:a}=e,u=Qh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Hr);return re.forwardRef(function(l,f){const p=tm(r),{className:b,component:_="div",...T}=E_(l);return Pe.jsx(u,{as:_,ref:f,className:tt(b,a?a(i):i),theme:n&&p[n]||p,...T})})}function nm(e,n=""){return e.displayName||e.name||n}function xd(e,n,r){const i=nm(n);return e.displayName||(i!==""?`${r}(${i})`:r)}function V_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Fr.ForwardRef:return xd(e,e.render,"ForwardRef");case Fr.Memo:return xd(e,e.type,"memo");default:return}}}function rm(e){const{variants:n,...r}=e,i={variants:n,style:Ur(r),isProcessed:!0};return i.style===r||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=Ur(a.style))}),i}const F_=Vl();function fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function zr(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function H_(e){return e?(n,r)=>r[e]:null}function W_(e,n,r){e.theme=G_(e.theme)?r:e.theme[n]||e.theme}function Ha(e,n,r){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>Ha(e,a,r));if(Array.isArray(i==null?void 0:i.variants)){let a;if(i.isProcessed)a=r?zr(i.style,r):i.style;else{const{variants:u,...l}=i;a=r?zr(Ur(l),r):l}return om(e,i.variants,[a],r)}return i!=null&&i.isProcessed?r?zr(Ur(i.style),r):i.style:r?zr(Ur(i),r):i}function om(e,n,r=[],i=void 0){var a;let u;e:for(let l=0;l<n.length;l+=1){const f=n[l];if(typeof f.props=="function"){if(u??(u={...e,...e.ownerState,ownerState:e.ownerState}),!f.props(u))continue}else for(const p in f.props)if(e[p]!==f.props[p]&&((a=e.ownerState)==null?void 0:a[p])!==f.props[p])continue e;typeof f.style=="function"?(u??(u={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i?zr(Ur(f.style(u)),i):f.style(u))):r.push(i?zr(Ur(f.style),i):f.style)}return r}function q_(e={}){const{themeId:n,defaultTheme:r=F_,rootShouldForwardProp:i=fl,slotShouldForwardProp:a=fl}=e;function u(l){W_(l,n,r)}return(l,f={})=>{M_(l,v=>v.filter(k=>k!==Hr));const{name:p,slot:b,skipVariantsResolver:_,skipSx:T,overridesResolver:M=H_(im(b)),...S}=f,O=p&&p.startsWith("Mui")||b?"components":"custom",d=_!==void 0?_:b&&b!=="Root"&&b!=="root"||!1,m=T||!1;let w=fl;b==="Root"||b==="root"?w=i:b?w=a:J_(l)&&(w=void 0);const h=Qh(l,{shouldForwardProp:w,label:X_(p,b),...S}),y=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(k){return Ha(k,v,k.theme.modularCssLayers?O:void 0)};if(pr(v)){const k=rm(v);return function(j){return k.variants?Ha(j,k,j.theme.modularCssLayers?O:void 0):j.theme.modularCssLayers?zr(k.style,O):k.style}}return v},C=(...v)=>{const k=[],j=v.map(y),z=[];if(k.push(u),p&&M&&z.push(function(Y){var E,V;const U=(V=(E=Y.theme.components)==null?void 0:E[p])==null?void 0:V.styleOverrides;if(!U)return null;const Q={};for(const Z in U)Q[Z]=Ha(Y,U[Z],Y.theme.modularCssLayers?"theme":void 0);return M(Y,Q)}),p&&!d&&z.push(function(Y){var E,V;const U=Y.theme,Q=(V=(E=U==null?void 0:U.components)==null?void 0:E[p])==null?void 0:V.variants;return Q?om(Y,Q,[],Y.theme.modularCssLayers?"theme":void 0):null}),m||z.push(Hr),Array.isArray(j[0])){const Y=j.shift(),E=new Array(k.length).fill(""),V=new Array(z.length).fill("");let U;U=[...E,...Y,...V],U.raw=[...E,...Y.raw,...V],k.unshift(U)}const F=[...k,...j,...z],X=h(...F);return l.muiName&&(X.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(X.displayName=Y_(p,b,l)),X};return h.withConfig&&(C.withConfig=h.withConfig),C}}function Y_(e,n,r){return e?`${e}${Ll(n||"")}`:`Styled(${V_(r)})`}function X_(e,n){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${im(n||"Root")}`),r}function G_(e){for(const n in e)return!1;return!0}function J_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function im(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function xl(e,n,r=!1){const i={...n};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const u=a;if(u==="components"||u==="slots")i[u]={...e[u],...i[u]};else if(u==="componentsProps"||u==="slotProps"){const l=e[u],f=n[u];if(!f)i[u]=l||{};else if(!l)i[u]=f;else{i[u]={...f};for(const p in l)if(Object.prototype.hasOwnProperty.call(l,p)){const b=p;i[u][b]=xl(l[b],f[b],r)}}}else u==="className"&&r&&n.className?i.className=tt(e==null?void 0:e.className,n==null?void 0:n.className):u==="style"&&r&&n.style?i.style={...e==null?void 0:e.style,...n==null?void 0:n.style}:i[u]===void 0&&(i[u]=e[u])}return i}function K_(e,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,r))}function Fl(e,n=0,r=1){return process.env.NODE_ENV!=="production"&&(e<n||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${n}, ${r}].`),K_(e,n,r)}function Z_(e){e=e.slice(1);const n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(n);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function mr(e){if(e.type)return e;if(e.charAt(0)==="#")return mr(Z_(e));const n=e.indexOf("("),r=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
126
+ `)):i.some(u=>u===void 0)&&console.error(`MUI: the styled(${a})(...args) API requires all its args to be defined.`),r(...i)}:r}function M_(e,n){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=n(e.__emotion_styles))}const Sd=[];function Ur(e){return Sd[0]=e,k_(Sd)}const A_=e=>{const n=Object.keys(e).map(r=>({key:r,val:e[r]}))||[];return n.sort((r,i)=>r.val-i.val),n.reduce((r,i)=>({...r,[i.key]:i.val}),{})};function N_(e){const{values:n={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:r="px",step:i=5,...a}=e,u=A_(n),l=Object.keys(u);function f(M){return`@media (min-width:${typeof n[M]=="number"?n[M]:M}${r})`}function p(M){return`@media (max-width:${(typeof n[M]=="number"?n[M]:M)-i/100}${r})`}function b(M,S){const O=l.indexOf(S);return`@media (min-width:${typeof n[M]=="number"?n[M]:M}${r}) and (max-width:${(O!==-1&&typeof n[l[O]]=="number"?n[l[O]]:S)-i/100}${r})`}function _(M){return l.indexOf(M)+1<l.length?b(M,l[l.indexOf(M)+1]):f(M)}function T(M){const S=l.indexOf(M);return S===0?f(l[1]):S===l.length-1?p(l[S]):b(M,l[l.indexOf(M)+1]).replace("@media","@media not all and")}return{keys:l,values:u,up:f,down:p,between:b,only:_,not:T,unit:r,...a}}const z_={borderRadius:4};function em(e=8,n=Ul({spacing:e})){if(e.mui)return e;const r=(...i)=>(process.env.NODE_ENV!=="production"&&(i.length<=4||console.error(`MUI: Too many arguments provided, expected between 0 and 4, got ${i.length}`)),(i.length===0?[1]:i).map(a=>{const u=n(a);return typeof u=="number"?`${u}px`:u}).join(" "));return r.mui=!0,r}function $_(e,n){var r;const i=this;if(i.vars){if(!((r=i.colorSchemes)!=null&&r[e])||typeof i.getColorSchemeSelector!="function")return{};let a=i.getColorSchemeSelector(e);return a==="&"?n:((a.includes("data-")||a.includes("."))&&(a=`*:where(${a.replace(/\s*&$/,"")}) &`),{[a]:n})}return i.palette.mode===e?n:{}}function Vl(e={},...n){const{breakpoints:r={},palette:i={},spacing:a,shape:u={},...l}=e,f=N_(r),p=em(a);let b=Lr({breakpoints:f,direction:"ltr",components:{},palette:{mode:"light",...i},spacing:p,shape:{...z_,...u}},l);return b=N1(b),b.applyStyles=$_,b=n.reduce((_,T)=>Lr(_,T),b),b.unstable_sxConfig={...Ti,...l==null?void 0:l.unstable_sxConfig},b.unstable_sx=function(_){return Hr({sx:_,theme:this})},b}function I_(e){return Object.keys(e).length===0}function L_(e=null){const n=re.useContext(cs.ThemeContext);return!n||I_(n)?e:n}const U_=Vl();function tm(e=U_){return L_(e)}function B_(e={}){const{themeId:n,defaultTheme:r,defaultClassName:i="MuiBox-root",generateClassName:a}=e,u=Qh("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(Hr);return re.forwardRef(function(l,f){const p=tm(r),{className:b,component:_="div",...T}=E_(l);return Pe.jsx(u,{as:_,ref:f,className:tt(b,a?a(i):i),theme:n&&p[n]||p,...T})})}function nm(e,n=""){return e.displayName||e.name||n}function xd(e,n,r){const i=nm(n);return e.displayName||(i!==""?`${r}(${i})`:r)}function V_(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return nm(e,"Component");if(typeof e=="object")switch(e.$$typeof){case Fr.ForwardRef:return xd(e,e.render,"ForwardRef");case Fr.Memo:return xd(e,e.type,"memo");default:return}}}function rm(e){const{variants:n,...r}=e,i={variants:n,style:Ur(r),isProcessed:!0};return i.style===r||n&&n.forEach(a=>{typeof a.style!="function"&&(a.style=Ur(a.style))}),i}const F_=Vl();function fl(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function zr(e,n){return n&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${n}{${String(e.styles)}}`),e}function H_(e){return e?(n,r)=>r[e]:null}function W_(e,n,r){e.theme=G_(e.theme)?r:e.theme[n]||e.theme}function Ha(e,n,r){const i=typeof n=="function"?n(e):n;if(Array.isArray(i))return i.flatMap(a=>Ha(e,a,r));if(Array.isArray(i==null?void 0:i.variants)){let a;if(i.isProcessed)a=r?zr(i.style,r):i.style;else{const{variants:u,...l}=i;a=r?zr(Ur(l),r):l}return om(e,i.variants,[a],r)}return i!=null&&i.isProcessed?r?zr(Ur(i.style),r):i.style:r?zr(Ur(i),r):i}function om(e,n,r=[],i=void 0){var a;let u;e:for(let l=0;l<n.length;l+=1){const f=n[l];if(typeof f.props=="function"){if(u??(u={...e,...e.ownerState,ownerState:e.ownerState}),!f.props(u))continue}else for(const p in f.props)if(e[p]!==f.props[p]&&((a=e.ownerState)==null?void 0:a[p])!==f.props[p])continue e;typeof f.style=="function"?(u??(u={...e,...e.ownerState,ownerState:e.ownerState}),r.push(i?zr(Ur(f.style(u)),i):f.style(u))):r.push(i?zr(Ur(f.style),i):f.style)}return r}function q_(e={}){const{themeId:n,defaultTheme:r=F_,rootShouldForwardProp:i=fl,slotShouldForwardProp:a=fl}=e;function u(l){W_(l,n,r)}return(l,f={})=>{M_(l,v=>v.filter(k=>k!==Hr));const{name:p,slot:b,skipVariantsResolver:_,skipSx:T,overridesResolver:M=H_(im(b)),...S}=f,O=p&&p.startsWith("Mui")||b?"components":"custom",d=_!==void 0?_:b&&b!=="Root"&&b!=="root"||!1,m=T||!1;let w=fl;b==="Root"||b==="root"?w=i:b?w=a:J_(l)&&(w=void 0);const h=Qh(l,{shouldForwardProp:w,label:X_(p,b),...S}),y=v=>{if(v.__emotion_real===v)return v;if(typeof v=="function")return function(k){return Ha(k,v,k.theme.modularCssLayers?O:void 0)};if(pr(v)){const k=rm(v);return function(j){return k.variants?Ha(j,k,j.theme.modularCssLayers?O:void 0):j.theme.modularCssLayers?zr(k.style,O):k.style}}return v},C=(...v)=>{const k=[],j=v.map(y),z=[];if(k.push(u),p&&M&&z.push(function(Y){var E,V;const U=(V=(E=Y.theme.components)==null?void 0:E[p])==null?void 0:V.styleOverrides;if(!U)return null;const Q={};for(const Z in U)Q[Z]=Ha(Y,U[Z],Y.theme.modularCssLayers?"theme":void 0);return M(Y,Q)}),p&&!d&&z.push(function(Y){var E,V;const U=Y.theme,Q=(V=(E=U==null?void 0:U.components)==null?void 0:E[p])==null?void 0:V.variants;return Q?om(Y,Q,[],Y.theme.modularCssLayers?"theme":void 0):null}),m||z.push(Hr),Array.isArray(j[0])){const Y=j.shift(),E=new Array(k.length).fill(""),V=new Array(z.length).fill("");let U;U=[...E,...Y,...V],U.raw=[...E,...Y.raw,...V],k.unshift(U)}const F=[...k,...j,...z],X=h(...F);return l.muiName&&(X.muiName=l.muiName),process.env.NODE_ENV!=="production"&&(X.displayName=Y_(p,b,l)),X};return h.withConfig&&(C.withConfig=h.withConfig),C}}function Y_(e,n,r){return e?`${e}${Ll(n||"")}`:`Styled(${V_(r)})`}function X_(e,n){let r;return process.env.NODE_ENV!=="production"&&e&&(r=`${e}-${im(n||"Root")}`),r}function G_(e){for(const n in e)return!1;return!0}function J_(e){return typeof e=="string"&&e.charCodeAt(0)>96}function im(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function xl(e,n,r=!1){const i={...n};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const u=a;if(u==="components"||u==="slots")i[u]={...e[u],...i[u]};else if(u==="componentsProps"||u==="slotProps"){const l=e[u],f=n[u];if(!f)i[u]=l||{};else if(!l)i[u]=f;else{i[u]={...f};for(const p in l)if(Object.prototype.hasOwnProperty.call(l,p)){const b=p;i[u][b]=xl(l[b],f[b],r)}}}else u==="className"&&r&&n.className?i.className=tt(e==null?void 0:e.className,n==null?void 0:n.className):u==="style"&&r&&n.style?i.style={...e==null?void 0:e.style,...n==null?void 0:n.style}:i[u]===void 0&&(i[u]=e[u])}return i}function K_(e,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,r))}function Fl(e,n=0,r=1){return process.env.NODE_ENV!=="production"&&(e<n||e>r)&&console.error(`MUI: The value provided ${e} is out of range [${n}, ${r}].`),K_(e,n,r)}function Z_(e){e=e.slice(1);const n=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let r=e.match(n);return r&&r[0].length===1&&(r=r.map(i=>i+i)),process.env.NODE_ENV!=="production"&&e.length!==e.trim().length&&console.error(`MUI: The color: "${e}" is invalid. Make sure the color input doesn't contain leading/trailing space.`),r?`rgb${r.length===4?"a":""}(${r.map((i,a)=>a<3?parseInt(i,16):Math.round(parseInt(i,16)/255*1e3)/1e3).join(", ")})`:""}function mr(e){if(e.type)return e;if(e.charAt(0)==="#")return mr(Z_(e));const n=e.indexOf("("),r=e.substring(0,n);if(!["rgb","rgba","hsl","hsla","color"].includes(r))throw new Error(process.env.NODE_ENV!=="production"?`MUI: Unsupported \`${e}\` color.
127
127
  The following formats are supported: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().`:Xa(9,e));let i=e.substring(n+1,e.length-1),a;if(r==="color"){if(i=i.split(" "),a=i.shift(),i.length===4&&i[3].charAt(0)==="/"&&(i[3]=i[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(process.env.NODE_ENV!=="production"?`MUI: unsupported \`${a}\` color space.
128
- The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Xa(10,a))}else i=i.split(",");return i=i.map(u=>parseFloat(u)),{type:r,values:i,colorSpace:a}}const Q_=e=>{const n=mr(e);return n.values.slice(0,3).map((r,i)=>n.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},fi=(e,n)=>{try{return Q_(e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}};function ws(e){const{type:n,colorSpace:r}=e;let{values:i}=e;return n.includes("rgb")?i=i.map((a,u)=>u<3?parseInt(a,10):a):n.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),n.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${n}(${i})`}function am(e){e=mr(e);const{values:n}=e,r=n[0],i=n[1]/100,a=n[2]/100,u=i*Math.min(a,1-a),l=(b,_=(b+r/30)%12)=>a-u*Math.max(Math.min(_-3,9-_,1),-1);let f="rgb";const p=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(f+="a",p.push(n[3])),ws({type:f,values:p})}function _l(e){e=mr(e);let n=e.type==="hsl"||e.type==="hsla"?mr(am(e)).values:e.values;return n=n.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function _d(e,n){const r=_l(e),i=_l(n);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function sm(e,n){return e=mr(e),n=Fl(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,ws(e)}function jr(e,n,r){try{return sm(e,n)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ss(e,n){if(e=mr(e),n=Fl(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-n;return ws(e)}function Xe(e,n,r){try{return Ss(e,n)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function xs(e,n){if(e=mr(e),n=Fl(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*n;return ws(e)}function Ge(e,n,r){try{return xs(e,n)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function um(e,n=.15){return _l(e)>.5?Ss(e,n):xs(e,n)}function Ta(e,n,r){try{return um(e,n)}catch{return e}}const eO=re.createContext();process.env.NODE_ENV!=="production"&&(g.node,g.bool);const lm=()=>re.useContext(eO)??!1,tO=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(g.node,g.object);function nO(e){const{theme:n,name:r,props:i}=e;if(!n||!n.components||!n.components[r])return i;const a=n.components[r];return a.defaultProps?xl(a.defaultProps,i,n.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?xl(a,i,n.components.mergeClassNameAndStyle):i}function rO({props:e,name:n}){const r=re.useContext(tO);return nO({props:e,name:n,theme:{components:r}})}const Od={theme:void 0};function oO(e){let n,r;return function(i){let a=n;return(a===void 0||i.theme!==r)&&(Od.theme=i.theme,a=rm(e(Od)),n=a,r=i.theme),a}}function iO(e=""){function n(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${n(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${n(...i)})`}const Ed=(e,n,r,i=[])=>{let a=e;n.forEach((u,l)=>{l===n.length-1?Array.isArray(a)?a[Number(u)]=r:a&&typeof a=="object"&&(a[u]=r):a&&typeof a=="object"&&(a[u]||(a[u]=i.includes(u)?[]:{}),a=a[u])})},aO=(e,n,r)=>{function i(a,u=[],l=[]){Object.entries(a).forEach(([f,p])=>{(!r||r&&!r([...u,f]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?i(p,[...u,f],Array.isArray(p)?[...l,f]:l):n([...u,f],p,l))})}i(e)},sO=(e,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function pl(e,n){const{prefix:r,shouldSkipGeneratingVar:i}=n||{},a={},u={},l={};return aO(e,(f,p,b)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(f,p))){const _=`--${r?`${r}-`:""}${f.join("-")}`,T=sO(f,p);Object.assign(a,{[_]:T}),Ed(u,f,`var(${_})`,b),Ed(l,f,`var(${_}, ${T})`,b)}},f=>f[0]==="vars"),{css:a,vars:u,varsWithDefaults:l}}function uO(e,n={}){const{getSelector:r=w,disableCssColorScheme:i,colorSchemeSelector:a,enableContrastVars:u}=n,{colorSchemes:l={},components:f,defaultColorScheme:p="light",...b}=e,{vars:_,css:T,varsWithDefaults:M}=pl(b,n);let S=M;const O={},{[p]:d,...m}=l;if(Object.entries(m||{}).forEach(([h,y])=>{const{vars:C,css:v,varsWithDefaults:k}=pl(y,n);S=Lr(S,k),O[h]={css:v,vars:C}}),d){const{css:h,vars:y,varsWithDefaults:C}=pl(d,n);S=Lr(S,C),O[p]={css:h,vars:y}}function w(h,y){var C,v;let k=a;if(a==="class"&&(k=".%s"),a==="data"&&(k="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(k=`[${a}="%s"]`),h){if(k==="media")return e.defaultColorScheme===h?":root":{[`@media (prefers-color-scheme: ${((v=(C=l[h])==null?void 0:C.palette)==null?void 0:v.mode)||h})`]:{":root":y}};if(k)return e.defaultColorScheme===h?`:root, ${k.replace("%s",String(h))}`:k.replace("%s",String(h))}return":root"}return{vars:S,generateThemeVars:()=>{let h={..._};return Object.entries(O).forEach(([,{vars:y}])=>{h=Lr(h,y)}),h},generateStyleSheets:()=>{var h,y;const C=[],v=e.defaultColorScheme||"light";function k(F,X){Object.keys(X).length&&C.push(typeof F=="string"?{[F]:{...X}}:F)}k(r(void 0,{...T}),T);const{[v]:j,...z}=O;if(j){const{css:F}=j,X=(y=(h=l[v])==null?void 0:h.palette)==null?void 0:y.mode,Y=!i&&X?{colorScheme:X,...F}:{...F};k(r(v,{...Y}),Y)}return Object.entries(z).forEach(([F,{css:X}])=>{var Y,E;const V=(E=(Y=l[F])==null?void 0:Y.palette)==null?void 0:E.mode,U=!i&&V?{colorScheme:V,...X}:{...X};k(r(F,{...U}),U)}),u&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function lO(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function dr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function cm(e){if(re.isValidElement(e)||Fr.isValidElementType(e)||!dr(e))return e;const n={};return Object.keys(e).forEach(r=>{n[r]=cm(e[r])}),n}function Br(e,n,r={clone:!0}){const i=r.clone?{...e}:e;return dr(e)&&dr(n)&&Object.keys(n).forEach(a=>{re.isValidElement(n[a])||Fr.isValidElementType(n[a])?i[a]=n[a]:dr(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&dr(e[a])?i[a]=Br(e[a],n[a],r):r.clone?i[a]=dr(n[a])?cm(n[a]):n[a]:i[a]=n[a]}),i}const vi={black:"#000",white:"#fff"},cO={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"},so={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},uo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Go={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},lo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},co={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},fo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function fm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:vi.white,default:vi.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}}}const pm=fm();function dm(){return{text:{primary:vi.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:vi.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}}}const Ol=dm();function Cd(e,n,r,i){const a=i.light||i,u=i.dark||i*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=xs(e.main,a):n==="dark"&&(e.dark=Ss(e.main,u)))}function Rd(e,n,r,i,a){const u=a.light||a,l=a.dark||a*1.5;n[r]||(n.hasOwnProperty(i)?n[r]=n[i]:r==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(u*100).toFixed(0)}%)`:r==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(l*100).toFixed(0)}%)`))}function fO(e="light"){return e==="dark"?{main:lo[200],light:lo[50],dark:lo[400]}:{main:lo[700],light:lo[400],dark:lo[800]}}function pO(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function dO(e="light"){return e==="dark"?{main:uo[500],light:uo[300],dark:uo[700]}:{main:uo[700],light:uo[400],dark:uo[800]}}function hO(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}function mO(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[800],light:fo[500],dark:fo[900]}}function gO(e="light"){return e==="dark"?{main:Go[400],light:Go[300],dark:Go[700]}:{main:"#ed6c02",light:Go[500],dark:Go[900]}}function yO(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Hl(e){const{mode:n="light",contrastThreshold:r=3,tonalOffset:i=.2,colorSpace:a,...u}=e,l=e.primary||fO(n),f=e.secondary||pO(n),p=e.error||dO(n),b=e.info||hO(n),_=e.success||mO(n),T=e.warning||gO(n);function M(d){if(a)return yO(d);const m=_d(d,Ol.text.primary)>=r?Ol.text.primary:pm.text.primary;if(process.env.NODE_ENV!=="production"){const w=_d(d,m);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${m} on ${d}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
128
+ The following color spaces are supported: srgb, display-p3, a98-rgb, prophoto-rgb, rec-2020.`:Xa(10,a))}else i=i.split(",");return i=i.map(u=>parseFloat(u)),{type:r,values:i,colorSpace:a}}const Q_=e=>{const n=mr(e);return n.values.slice(0,3).map((r,i)=>n.type.includes("hsl")&&i!==0?`${r}%`:r).join(" ")},di=(e,n)=>{try{return Q_(e)}catch{return n&&process.env.NODE_ENV!=="production"&&console.warn(n),e}};function ws(e){const{type:n,colorSpace:r}=e;let{values:i}=e;return n.includes("rgb")?i=i.map((a,u)=>u<3?parseInt(a,10):a):n.includes("hsl")&&(i[1]=`${i[1]}%`,i[2]=`${i[2]}%`),n.includes("color")?i=`${r} ${i.join(" ")}`:i=`${i.join(", ")}`,`${n}(${i})`}function am(e){e=mr(e);const{values:n}=e,r=n[0],i=n[1]/100,a=n[2]/100,u=i*Math.min(a,1-a),l=(b,_=(b+r/30)%12)=>a-u*Math.max(Math.min(_-3,9-_,1),-1);let f="rgb";const p=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(f+="a",p.push(n[3])),ws({type:f,values:p})}function _l(e){e=mr(e);let n=e.type==="hsl"||e.type==="hsla"?mr(am(e)).values:e.values;return n=n.map(r=>(e.type!=="color"&&(r/=255),r<=.03928?r/12.92:((r+.055)/1.055)**2.4)),Number((.2126*n[0]+.7152*n[1]+.0722*n[2]).toFixed(3))}function _d(e,n){const r=_l(e),i=_l(n);return(Math.max(r,i)+.05)/(Math.min(r,i)+.05)}function sm(e,n){return e=mr(e),n=Fl(n),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${n}`:e.values[3]=n,ws(e)}function jr(e,n,r){try{return sm(e,n)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function Ss(e,n){if(e=mr(e),n=Fl(n),e.type.includes("hsl"))e.values[2]*=1-n;else if(e.type.includes("rgb")||e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]*=1-n;return ws(e)}function Xe(e,n,r){try{return Ss(e,n)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function xs(e,n){if(e=mr(e),n=Fl(n),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*n;else if(e.type.includes("rgb"))for(let r=0;r<3;r+=1)e.values[r]+=(255-e.values[r])*n;else if(e.type.includes("color"))for(let r=0;r<3;r+=1)e.values[r]+=(1-e.values[r])*n;return ws(e)}function Ge(e,n,r){try{return xs(e,n)}catch{return r&&process.env.NODE_ENV!=="production"&&console.warn(r),e}}function um(e,n=.15){return _l(e)>.5?Ss(e,n):xs(e,n)}function Ta(e,n,r){try{return um(e,n)}catch{return e}}const eO=re.createContext();process.env.NODE_ENV!=="production"&&(g.node,g.bool);const lm=()=>re.useContext(eO)??!1,tO=re.createContext(void 0);process.env.NODE_ENV!=="production"&&(g.node,g.object);function nO(e){const{theme:n,name:r,props:i}=e;if(!n||!n.components||!n.components[r])return i;const a=n.components[r];return a.defaultProps?xl(a.defaultProps,i,n.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?xl(a,i,n.components.mergeClassNameAndStyle):i}function rO({props:e,name:n}){const r=re.useContext(tO);return nO({props:e,name:n,theme:{components:r}})}const Od={theme:void 0};function oO(e){let n,r;return function(i){let a=n;return(a===void 0||i.theme!==r)&&(Od.theme=i.theme,a=rm(e(Od)),n=a,r=i.theme),a}}function iO(e=""){function n(...r){if(!r.length)return"";const i=r[0];return typeof i=="string"&&!i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))|^(-?(\d*\.)?\d+)$|(\d+ \d+ \d+)/)?`, var(--${e?`${e}-`:""}${i}${n(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${n(...i)})`}const Ed=(e,n,r,i=[])=>{let a=e;n.forEach((u,l)=>{l===n.length-1?Array.isArray(a)?a[Number(u)]=r:a&&typeof a=="object"&&(a[u]=r):a&&typeof a=="object"&&(a[u]||(a[u]=i.includes(u)?[]:{}),a=a[u])})},aO=(e,n,r)=>{function i(a,u=[],l=[]){Object.entries(a).forEach(([f,p])=>{(!r||r&&!r([...u,f]))&&p!=null&&(typeof p=="object"&&Object.keys(p).length>0?i(p,[...u,f],Array.isArray(p)?[...l,f]:l):n([...u,f],p,l))})}i(e)},sO=(e,n)=>typeof n=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?n:`${n}px`:n;function pl(e,n){const{prefix:r,shouldSkipGeneratingVar:i}=n||{},a={},u={},l={};return aO(e,(f,p,b)=>{if((typeof p=="string"||typeof p=="number")&&(!i||!i(f,p))){const _=`--${r?`${r}-`:""}${f.join("-")}`,T=sO(f,p);Object.assign(a,{[_]:T}),Ed(u,f,`var(${_})`,b),Ed(l,f,`var(${_}, ${T})`,b)}},f=>f[0]==="vars"),{css:a,vars:u,varsWithDefaults:l}}function uO(e,n={}){const{getSelector:r=w,disableCssColorScheme:i,colorSchemeSelector:a,enableContrastVars:u}=n,{colorSchemes:l={},components:f,defaultColorScheme:p="light",...b}=e,{vars:_,css:T,varsWithDefaults:M}=pl(b,n);let S=M;const O={},{[p]:d,...m}=l;if(Object.entries(m||{}).forEach(([h,y])=>{const{vars:C,css:v,varsWithDefaults:k}=pl(y,n);S=Lr(S,k),O[h]={css:v,vars:C}}),d){const{css:h,vars:y,varsWithDefaults:C}=pl(d,n);S=Lr(S,C),O[p]={css:h,vars:y}}function w(h,y){var C,v;let k=a;if(a==="class"&&(k=".%s"),a==="data"&&(k="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(k=`[${a}="%s"]`),h){if(k==="media")return e.defaultColorScheme===h?":root":{[`@media (prefers-color-scheme: ${((v=(C=l[h])==null?void 0:C.palette)==null?void 0:v.mode)||h})`]:{":root":y}};if(k)return e.defaultColorScheme===h?`:root, ${k.replace("%s",String(h))}`:k.replace("%s",String(h))}return":root"}return{vars:S,generateThemeVars:()=>{let h={..._};return Object.entries(O).forEach(([,{vars:y}])=>{h=Lr(h,y)}),h},generateStyleSheets:()=>{var h,y;const C=[],v=e.defaultColorScheme||"light";function k(F,X){Object.keys(X).length&&C.push(typeof F=="string"?{[F]:{...X}}:F)}k(r(void 0,{...T}),T);const{[v]:j,...z}=O;if(j){const{css:F}=j,X=(y=(h=l[v])==null?void 0:h.palette)==null?void 0:y.mode,Y=!i&&X?{colorScheme:X,...F}:{...F};k(r(v,{...Y}),Y)}return Object.entries(z).forEach(([F,{css:X}])=>{var Y,E;const V=(E=(Y=l[F])==null?void 0:Y.palette)==null?void 0:E.mode,U=!i&&V?{colorScheme:V,...X}:{...X};k(r(F,{...U}),U)}),u&&C.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),C}}}function lO(e){return function(n){return e==="media"?(process.env.NODE_ENV!=="production"&&n!=="light"&&n!=="dark"&&console.error(`MUI: @media (prefers-color-scheme) supports only 'light' or 'dark', but receive '${n}'.`),`@media (prefers-color-scheme: ${n})`):e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}function dr(e){if(typeof e!="object"||e===null)return!1;const n=Object.getPrototypeOf(e);return(n===null||n===Object.prototype||Object.getPrototypeOf(n)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function cm(e){if(re.isValidElement(e)||Fr.isValidElementType(e)||!dr(e))return e;const n={};return Object.keys(e).forEach(r=>{n[r]=cm(e[r])}),n}function Br(e,n,r={clone:!0}){const i=r.clone?{...e}:e;return dr(e)&&dr(n)&&Object.keys(n).forEach(a=>{re.isValidElement(n[a])||Fr.isValidElementType(n[a])?i[a]=n[a]:dr(n[a])&&Object.prototype.hasOwnProperty.call(e,a)&&dr(e[a])?i[a]=Br(e[a],n[a],r):r.clone?i[a]=dr(n[a])?cm(n[a]):n[a]:i[a]=n[a]}),i}const wi={black:"#000",white:"#fff"},cO={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"},so={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},uo={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Ko={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},lo={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},co={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},fo={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function fm(){return{text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:wi.white,default:wi.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}}}const pm=fm();function dm(){return{text:{primary:wi.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:wi.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}}}const Ol=dm();function Cd(e,n,r,i){const a=i.light||i,u=i.dark||i*1.5;e[n]||(e.hasOwnProperty(r)?e[n]=e[r]:n==="light"?e.light=xs(e.main,a):n==="dark"&&(e.dark=Ss(e.main,u)))}function Rd(e,n,r,i,a){const u=a.light||a,l=a.dark||a*1.5;n[r]||(n.hasOwnProperty(i)?n[r]=n[i]:r==="light"?n.light=`color-mix(in ${e}, ${n.main}, #fff ${(u*100).toFixed(0)}%)`:r==="dark"&&(n.dark=`color-mix(in ${e}, ${n.main}, #000 ${(l*100).toFixed(0)}%)`))}function fO(e="light"){return e==="dark"?{main:lo[200],light:lo[50],dark:lo[400]}:{main:lo[700],light:lo[400],dark:lo[800]}}function pO(e="light"){return e==="dark"?{main:so[200],light:so[50],dark:so[400]}:{main:so[500],light:so[300],dark:so[700]}}function dO(e="light"){return e==="dark"?{main:uo[500],light:uo[300],dark:uo[700]}:{main:uo[700],light:uo[400],dark:uo[800]}}function hO(e="light"){return e==="dark"?{main:co[400],light:co[300],dark:co[700]}:{main:co[700],light:co[500],dark:co[900]}}function mO(e="light"){return e==="dark"?{main:fo[400],light:fo[300],dark:fo[700]}:{main:fo[800],light:fo[500],dark:fo[900]}}function gO(e="light"){return e==="dark"?{main:Ko[400],light:Ko[300],dark:Ko[700]}:{main:"#ed6c02",light:Ko[500],dark:Ko[900]}}function yO(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Hl(e){const{mode:n="light",contrastThreshold:r=3,tonalOffset:i=.2,colorSpace:a,...u}=e,l=e.primary||fO(n),f=e.secondary||pO(n),p=e.error||dO(n),b=e.info||hO(n),_=e.success||mO(n),T=e.warning||gO(n);function M(d){if(a)return yO(d);const m=_d(d,Ol.text.primary)>=r?Ol.text.primary:pm.text.primary;if(process.env.NODE_ENV!=="production"){const w=_d(d,m);w<3&&console.error([`MUI: The contrast ratio of ${w}:1 for ${m} on ${d}`,"falls below the WCAG recommended absolute minimum contrast ratio of 3:1.","https://www.w3.org/TR/2008/REC-WCAG20-20081211/#visual-audio-contrast-contrast"].join(`
129
129
  `))}return m}const S=({color:d,name:m,mainShade:w=500,lightShade:h=300,darkShade:y=700})=>{if(d={...d},!d.main&&d[w]&&(d.main=d[w]),!d.hasOwnProperty("main"))throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
130
- The color object needs to have a \`main\` property or a \`${w}\` property.`:yi(11,m?` (${m})`:"",w));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
130
+ The color object needs to have a \`main\` property or a \`${w}\` property.`:bi(11,m?` (${m})`:"",w));if(typeof d.main!="string")throw new Error(process.env.NODE_ENV!=="production"?`MUI: The color${m?` (${m})`:""} provided to augmentColor(color) is invalid.
131
131
  \`color.main\` should be a string, but \`${JSON.stringify(d.main)}\` was provided instead.
132
132
 
133
133
  Did you intend to use one of the following approaches?
@@ -140,7 +140,7 @@ const theme1 = createTheme({ palette: {
140
140
 
141
141
  const theme2 = createTheme({ palette: {
142
142
  primary: { main: green[500] },
143
- } });`:yi(12,m?` (${m})`:"",JSON.stringify(d.main)));return a?(Rd(a,d,"light",h,i),Rd(a,d,"dark",y,i)):(Cd(d,"light",h,i),Cd(d,"dark",y,i)),d.contrastText||(d.contrastText=M(d.main)),d};let O;return n==="light"?O=fm():n==="dark"&&(O=dm()),process.env.NODE_ENV!=="production"&&(O||console.error(`MUI: The palette mode \`${n}\` is not supported.`)),Br({common:{...vi},mode:n,primary:S({color:l,name:"primary"}),secondary:S({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:p,name:"error"}),warning:S({color:T,name:"warning"}),info:S({color:b,name:"info"}),success:S({color:_,name:"success"}),grey:cO,contrastThreshold:r,getContrastText:M,augmentColor:S,tonalOffset:i,...O},u)}function vO(e){const n={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(n[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}const bO={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Tn(e,n,r="Mui"){const i=bO[n];return i?`${r}-${i}`:`${qh.generate(e)}-${n}`}function wO(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function SO(e){return Math.round(e*1e5)/1e5}const Td={textTransform:"uppercase"},Pd='"Roboto", "Helvetica", "Arial", sans-serif';function xO(e,n){const{fontFamily:r=Pd,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:l=500,fontWeightBold:f=700,htmlFontSize:p=16,allVariants:b,pxToRem:_,...T}=typeof n=="function"?n(e):n;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof p!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const M=i/14,S=_||(m=>`${m/p*M}rem`),O=(m,w,h,y,C)=>({fontFamily:r,fontWeight:m,fontSize:S(w),lineHeight:h,...r===Pd?{letterSpacing:`${SO(y/w)}em`}:{},...C,...b}),d={h1:O(a,96,1.167,-1.5),h2:O(a,60,1.2,-.5),h3:O(u,48,1.167,0),h4:O(u,34,1.235,.25),h5:O(u,24,1.334,0),h6:O(l,20,1.6,.15),subtitle1:O(u,16,1.75,.15),subtitle2:O(l,14,1.57,.1),body1:O(u,16,1.5,.15),body2:O(u,14,1.43,.15),button:O(l,14,1.75,.4,Td),caption:O(u,12,1.66,.4),overline:O(u,12,2.66,1,Td),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Br({htmlFontSize:p,pxToRem:S,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:l,fontWeightBold:f,...d},T,{clone:!1})}const _O=.2,OO=.14,EO=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${OO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${EO})`].join(",")}const CO=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],RO={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)"},TO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Dd(e){return`${Math.round(e)}ms`}function PO(e){if(!e)return 0;const n=e/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function DO(e){const n={...RO,...e.easing},r={...TO,...e.duration};return{getAutoHeightDuration:PO,create:(i=["all"],a={})=>{const{duration:u=r.standard,easing:l=n.easeInOut,delay:f=0,...p}=a;if(process.env.NODE_ENV!=="production"){const b=T=>typeof T=="string",_=T=>!Number.isNaN(parseFloat(T));!b(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!_(u)&&!b(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),b(l)||console.error('MUI: Argument "easing" must be a string.'),!_(f)&&!b(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
143
+ } });`:bi(12,m?` (${m})`:"",JSON.stringify(d.main)));return a?(Rd(a,d,"light",h,i),Rd(a,d,"dark",y,i)):(Cd(d,"light",h,i),Cd(d,"dark",y,i)),d.contrastText||(d.contrastText=M(d.main)),d};let O;return n==="light"?O=fm():n==="dark"&&(O=dm()),process.env.NODE_ENV!=="production"&&(O||console.error(`MUI: The palette mode \`${n}\` is not supported.`)),Br({common:{...wi},mode:n,primary:S({color:l,name:"primary"}),secondary:S({color:f,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:S({color:p,name:"error"}),warning:S({color:T,name:"warning"}),info:S({color:b,name:"info"}),success:S({color:_,name:"success"}),grey:cO,contrastThreshold:r,getContrastText:M,augmentColor:S,tonalOffset:i,...O},u)}function vO(e){const n={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(n[i]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),n}const bO={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",open:"open",readOnly:"readOnly",required:"required",selected:"selected"};function Tn(e,n,r="Mui"){const i=bO[n];return i?`${r}-${i}`:`${qh.generate(e)}-${n}`}function wO(e,n){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...n}}function SO(e){return Math.round(e*1e5)/1e5}const Td={textTransform:"uppercase"},Pd='"Roboto", "Helvetica", "Arial", sans-serif';function xO(e,n){const{fontFamily:r=Pd,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:u=400,fontWeightMedium:l=500,fontWeightBold:f=700,htmlFontSize:p=16,allVariants:b,pxToRem:_,...T}=typeof n=="function"?n(e):n;process.env.NODE_ENV!=="production"&&(typeof i!="number"&&console.error("MUI: `fontSize` is required to be a number."),typeof p!="number"&&console.error("MUI: `htmlFontSize` is required to be a number."));const M=i/14,S=_||(m=>`${m/p*M}rem`),O=(m,w,h,y,C)=>({fontFamily:r,fontWeight:m,fontSize:S(w),lineHeight:h,...r===Pd?{letterSpacing:`${SO(y/w)}em`}:{},...C,...b}),d={h1:O(a,96,1.167,-1.5),h2:O(a,60,1.2,-.5),h3:O(u,48,1.167,0),h4:O(u,34,1.235,.25),h5:O(u,24,1.334,0),h6:O(l,20,1.6,.15),subtitle1:O(u,16,1.75,.15),subtitle2:O(l,14,1.57,.1),body1:O(u,16,1.5,.15),body2:O(u,14,1.43,.15),button:O(l,14,1.75,.4,Td),caption:O(u,12,1.66,.4),overline:O(u,12,2.66,1,Td),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Br({htmlFontSize:p,pxToRem:S,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:u,fontWeightMedium:l,fontWeightBold:f,...d},T,{clone:!1})}const _O=.2,OO=.14,EO=.12;function ot(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${_O})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${OO})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${EO})`].join(",")}const CO=["none",ot(0,2,1,-1,0,1,1,0,0,1,3,0),ot(0,3,1,-2,0,2,2,0,0,1,5,0),ot(0,3,3,-2,0,3,4,0,0,1,8,0),ot(0,2,4,-1,0,4,5,0,0,1,10,0),ot(0,3,5,-1,0,5,8,0,0,1,14,0),ot(0,3,5,-1,0,6,10,0,0,1,18,0),ot(0,4,5,-2,0,7,10,1,0,2,16,1),ot(0,5,5,-3,0,8,10,1,0,3,14,2),ot(0,5,6,-3,0,9,12,1,0,3,16,2),ot(0,6,6,-3,0,10,14,1,0,4,18,3),ot(0,6,7,-4,0,11,15,1,0,4,20,3),ot(0,7,8,-4,0,12,17,2,0,5,22,4),ot(0,7,8,-4,0,13,19,2,0,5,24,4),ot(0,7,9,-4,0,14,21,2,0,5,26,4),ot(0,8,9,-5,0,15,22,2,0,6,28,5),ot(0,8,10,-5,0,16,24,2,0,6,30,5),ot(0,8,11,-5,0,17,26,2,0,6,32,5),ot(0,9,11,-5,0,18,28,2,0,7,34,6),ot(0,9,12,-6,0,19,29,2,0,7,36,6),ot(0,10,13,-6,0,20,31,3,0,8,38,7),ot(0,10,13,-6,0,21,33,3,0,8,40,7),ot(0,10,14,-6,0,22,35,3,0,8,42,7),ot(0,11,14,-7,0,23,36,3,0,9,44,8),ot(0,11,15,-7,0,24,38,3,0,9,46,8)],RO={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)"},TO={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Dd(e){return`${Math.round(e)}ms`}function PO(e){if(!e)return 0;const n=e/36;return Math.min(Math.round((4+15*n**.25+n/5)*10),3e3)}function DO(e){const n={...RO,...e.easing},r={...TO,...e.duration};return{getAutoHeightDuration:PO,create:(i=["all"],a={})=>{const{duration:u=r.standard,easing:l=n.easeInOut,delay:f=0,...p}=a;if(process.env.NODE_ENV!=="production"){const b=T=>typeof T=="string",_=T=>!Number.isNaN(parseFloat(T));!b(i)&&!Array.isArray(i)&&console.error('MUI: Argument "props" must be a string or Array.'),!_(u)&&!b(u)&&console.error(`MUI: Argument "duration" must be a number or a string but found ${u}.`),b(l)||console.error('MUI: Argument "easing" must be a string.'),!_(f)&&!b(f)&&console.error('MUI: Argument "delay" must be a number or a string.'),typeof a!="object"&&console.error(["MUI: Secong argument of transition.create must be an object.","Arguments should be either `create('prop1', options)` or `create(['prop1', 'prop2'], options)`"].join(`
144
144
  `)),Object.keys(p).length!==0&&console.error(`MUI: Unrecognized argument(s) [${Object.keys(p).join(",")}].`)}return(Array.isArray(i)?i:[i]).map(b=>`${b} ${typeof u=="string"?u:Dd(u)} ${l} ${typeof f=="string"?f:Dd(f)}`).join(",")},...e,easing:n,duration:r}}const jO={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function kO(e){return dr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function hm(e={}){const n={...e};function r(i){const a=Object.entries(i);for(let u=0;u<a.length;u++){const[l,f]=a[u];!kO(f)||l.startsWith("unstable_")?delete i[l]:dr(f)&&(i[l]={...f},r(i[l]))}}return r(n),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
145
145
 
146
146
  const theme = ${JSON.stringify(n,null,2)};
@@ -148,11 +148,11 @@ const theme = ${JSON.stringify(n,null,2)};
148
148
  theme.breakpoints = createBreakpoints(theme.breakpoints || {});
149
149
  theme.transitions = createTransitions(theme.transitions || {});
150
150
 
151
- export default theme;`}function jd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const MO=e=>{if(!Number.isNaN(+e))return+e;const n=e.match(/\d*\.?\d+/g);if(!n)return 0;let r=0;for(let i=0;i<n.length;i+=1)r+=+n[i];return r};function AO(e){Object.assign(e,{alpha(n,r){const i=this||e;return i.colorSpace?`oklch(from ${n} l c h / ${typeof r=="string"?`calc(${r})`:r})`:i.vars?`rgba(${n.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:sm(n,MO(r))},lighten(n,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${n}, #fff ${jd(r)})`:xs(n,r)},darken(n,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${n}, #000 ${jd(r)})`:Ss(n,r)}})}function El(e={},...n){const{breakpoints:r,mixins:i={},spacing:a,palette:u={},transitions:l={},typography:f={},shape:p,colorSpace:b,..._}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":yi(20));const T=Hl({...u,colorSpace:b}),M=Vl(e);let S=Br(M,{mixins:wO(M.breakpoints,i),palette:T,shadows:CO.slice(),typography:xO(T,f),transitions:DO(l),zIndex:{...jO}});if(S=Br(S,_),S=n.reduce((O,d)=>Br(O,d),S),process.env.NODE_ENV!=="production"){const O=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(m,w)=>{let h;for(h in m){const y=m[h];if(O.includes(h)&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const C=Tn("",h);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${h}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
152
- `))}m[h]={}}}};Object.keys(S.components).forEach(m=>{const w=S.components[m].styleOverrides;w&&m.startsWith("Mui")&&d(w,m)})}return S.unstable_sxConfig={...Ci,..._==null?void 0:_.unstable_sxConfig},S.unstable_sx=function(O){return Hr({sx:O,theme:this})},S.toRuntimeSource=hm,AO(S),S}function NO(e){let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,Math.round(n*10)/1e3}const zO=[...Array(25)].map((e,n)=>{if(n===0)return"none";const r=NO(n);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function mm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function gm(e){return e==="dark"?zO:[]}function $O(e){const{palette:n={mode:"light"},opacity:r,overlays:i,colorSpace:a,...u}=e,l=Hl({...n,colorSpace:a});return{palette:l,opacity:{...mm(l.mode),...r},overlays:i||gm(l.mode),...u}}function IO(e){var n;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((n=e[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const LO=e=>[...[...Array(25)].map((n,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],UO=e=>(n,r)=>{const i=e.rootSelector||":root",a=e.colorSchemeSelector;let u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(u=`[${a}="%s"]`),e.defaultColorScheme===n){if(n==="dark"){const l={};return LO(e.cssVarPrefix).forEach(f=>{l[f]=r[f],delete r[f]}),u==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:l}}:u?{[u.replace("%s",n)]:l,[`${i}, ${u.replace("%s",n)}`]:r}:{[i]:{...r,...l}}}if(u&&u!=="media")return`${i}, ${u.replace("%s",String(n))}`}else if(n){if(u==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[i]:r}};if(u)return u.replace("%s",String(n))}return i};function BO(e,n){n.forEach(r=>{e[r]||(e[r]={})})}function ee(e,n,r){!e[n]&&r&&(e[n]=r)}function pi(e){return typeof e!="string"||!e.startsWith("hsl")?e:am(e)}function Vn(e,n){`${n}Channel`in e||(e[`${n}Channel`]=fi(pi(e[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
153
- To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function VO(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Sn=e=>{try{return e()}catch{}},FO=(e="mui")=>iO(e);function dl(e,n,r,i,a){if(!r)return;r=r===!0?{}:r;const u=a==="dark"?"dark":"light";if(!i){n[a]=$O({...r,palette:{mode:u,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:l,...f}=El({...i,palette:{mode:u,...r==null?void 0:r.palette},colorSpace:e});return n[a]={...r,palette:l,opacity:{...mm(u),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||gm(u)},f}function HO(e={},...n){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:a=!1,cssVarPrefix:u="mui",nativeColor:l=!1,shouldSkipGeneratingVar:f=IO,colorSchemeSelector:p=r.light&&r.dark?"media":void 0,rootSelector:b=":root",..._}=e,T=Object.keys(r)[0],M=i||(r.light&&T!=="light"?"light":T),S=FO(u),{[M]:O,light:d,dark:m,...w}=r,h={...w};let y=O;if((M==="dark"&&!("dark"in r)||M==="light"&&!("light"in r))&&(y=!0),!y)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${M}\` option is either missing or invalid.`:yi(21,M));let C;l&&(C="oklch");const v=dl(C,h,y,_,M);d&&!h.light&&dl(C,h,d,void 0,"light"),m&&!h.dark&&dl(C,h,m,void 0,"dark");let k={defaultColorScheme:M,...v,cssVarPrefix:u,colorSchemeSelector:p,rootSelector:b,getCssVar:S,colorSchemes:h,font:{...vO(v.typography),...v.font},spacing:VO(_.spacing)};Object.keys(k.colorSchemes).forEach(Y=>{const E=k.colorSchemes[Y].palette,V=Q=>{const Z=Q.split("-"),ue=Z[1],ce=Z[2];return S(Q,E[ue][ce])};E.mode==="light"&&(ee(E.common,"background","#fff"),ee(E.common,"onBackground","#000")),E.mode==="dark"&&(ee(E.common,"background","#000"),ee(E.common,"onBackground","#fff"));function U(Q,Z,ue){if(C){let ce;return Q===jr&&(ce=`transparent ${((1-ue)*100).toFixed(0)}%`),Q===Xe&&(ce=`#000 ${(ue*100).toFixed(0)}%`),Q===Ge&&(ce=`#fff ${(ue*100).toFixed(0)}%`),`color-mix(in ${C}, ${Z}, ${ce})`}return Q(Z,ue)}if(BO(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){ee(E.Alert,"errorColor",U(Xe,E.error.light,.6)),ee(E.Alert,"infoColor",U(Xe,E.info.light,.6)),ee(E.Alert,"successColor",U(Xe,E.success.light,.6)),ee(E.Alert,"warningColor",U(Xe,E.warning.light,.6)),ee(E.Alert,"errorFilledBg",V("palette-error-main")),ee(E.Alert,"infoFilledBg",V("palette-info-main")),ee(E.Alert,"successFilledBg",V("palette-success-main")),ee(E.Alert,"warningFilledBg",V("palette-warning-main")),ee(E.Alert,"errorFilledColor",Sn(()=>E.getContrastText(E.error.main))),ee(E.Alert,"infoFilledColor",Sn(()=>E.getContrastText(E.info.main))),ee(E.Alert,"successFilledColor",Sn(()=>E.getContrastText(E.success.main))),ee(E.Alert,"warningFilledColor",Sn(()=>E.getContrastText(E.warning.main))),ee(E.Alert,"errorStandardBg",U(Ge,E.error.light,.9)),ee(E.Alert,"infoStandardBg",U(Ge,E.info.light,.9)),ee(E.Alert,"successStandardBg",U(Ge,E.success.light,.9)),ee(E.Alert,"warningStandardBg",U(Ge,E.warning.light,.9)),ee(E.Alert,"errorIconColor",V("palette-error-main")),ee(E.Alert,"infoIconColor",V("palette-info-main")),ee(E.Alert,"successIconColor",V("palette-success-main")),ee(E.Alert,"warningIconColor",V("palette-warning-main")),ee(E.AppBar,"defaultBg",V("palette-grey-100")),ee(E.Avatar,"defaultBg",V("palette-grey-400")),ee(E.Button,"inheritContainedBg",V("palette-grey-300")),ee(E.Button,"inheritContainedHoverBg",V("palette-grey-A100")),ee(E.Chip,"defaultBorder",V("palette-grey-400")),ee(E.Chip,"defaultAvatarColor",V("palette-grey-700")),ee(E.Chip,"defaultIconColor",V("palette-grey-700")),ee(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(E.LinearProgress,"primaryBg",U(Ge,E.primary.main,.62)),ee(E.LinearProgress,"secondaryBg",U(Ge,E.secondary.main,.62)),ee(E.LinearProgress,"errorBg",U(Ge,E.error.main,.62)),ee(E.LinearProgress,"infoBg",U(Ge,E.info.main,.62)),ee(E.LinearProgress,"successBg",U(Ge,E.success.main,.62)),ee(E.LinearProgress,"warningBg",U(Ge,E.warning.main,.62)),ee(E.Skeleton,"bg",C?U(jr,E.text.primary,.11):`rgba(${V("palette-text-primaryChannel")} / 0.11)`),ee(E.Slider,"primaryTrack",U(Ge,E.primary.main,.62)),ee(E.Slider,"secondaryTrack",U(Ge,E.secondary.main,.62)),ee(E.Slider,"errorTrack",U(Ge,E.error.main,.62)),ee(E.Slider,"infoTrack",U(Ge,E.info.main,.62)),ee(E.Slider,"successTrack",U(Ge,E.success.main,.62)),ee(E.Slider,"warningTrack",U(Ge,E.warning.main,.62));const Q=C?U(Xe,E.background.default,.6825):Ta(E.background.default,.8);ee(E.SnackbarContent,"bg",Q),ee(E.SnackbarContent,"color",Sn(()=>C?Ol.text.primary:E.getContrastText(Q))),ee(E.SpeedDialAction,"fabHoverBg",Ta(E.background.paper,.15)),ee(E.StepConnector,"border",V("palette-grey-400")),ee(E.StepContent,"border",V("palette-grey-400")),ee(E.Switch,"defaultColor",V("palette-common-white")),ee(E.Switch,"defaultDisabledColor",V("palette-grey-100")),ee(E.Switch,"primaryDisabledColor",U(Ge,E.primary.main,.62)),ee(E.Switch,"secondaryDisabledColor",U(Ge,E.secondary.main,.62)),ee(E.Switch,"errorDisabledColor",U(Ge,E.error.main,.62)),ee(E.Switch,"infoDisabledColor",U(Ge,E.info.main,.62)),ee(E.Switch,"successDisabledColor",U(Ge,E.success.main,.62)),ee(E.Switch,"warningDisabledColor",U(Ge,E.warning.main,.62)),ee(E.TableCell,"border",U(Ge,U(jr,E.divider,1),.88)),ee(E.Tooltip,"bg",U(jr,E.grey[700],.92))}if(E.mode==="dark"){ee(E.Alert,"errorColor",U(Ge,E.error.light,.6)),ee(E.Alert,"infoColor",U(Ge,E.info.light,.6)),ee(E.Alert,"successColor",U(Ge,E.success.light,.6)),ee(E.Alert,"warningColor",U(Ge,E.warning.light,.6)),ee(E.Alert,"errorFilledBg",V("palette-error-dark")),ee(E.Alert,"infoFilledBg",V("palette-info-dark")),ee(E.Alert,"successFilledBg",V("palette-success-dark")),ee(E.Alert,"warningFilledBg",V("palette-warning-dark")),ee(E.Alert,"errorFilledColor",Sn(()=>E.getContrastText(E.error.dark))),ee(E.Alert,"infoFilledColor",Sn(()=>E.getContrastText(E.info.dark))),ee(E.Alert,"successFilledColor",Sn(()=>E.getContrastText(E.success.dark))),ee(E.Alert,"warningFilledColor",Sn(()=>E.getContrastText(E.warning.dark))),ee(E.Alert,"errorStandardBg",U(Xe,E.error.light,.9)),ee(E.Alert,"infoStandardBg",U(Xe,E.info.light,.9)),ee(E.Alert,"successStandardBg",U(Xe,E.success.light,.9)),ee(E.Alert,"warningStandardBg",U(Xe,E.warning.light,.9)),ee(E.Alert,"errorIconColor",V("palette-error-main")),ee(E.Alert,"infoIconColor",V("palette-info-main")),ee(E.Alert,"successIconColor",V("palette-success-main")),ee(E.Alert,"warningIconColor",V("palette-warning-main")),ee(E.AppBar,"defaultBg",V("palette-grey-900")),ee(E.AppBar,"darkBg",V("palette-background-paper")),ee(E.AppBar,"darkColor",V("palette-text-primary")),ee(E.Avatar,"defaultBg",V("palette-grey-600")),ee(E.Button,"inheritContainedBg",V("palette-grey-800")),ee(E.Button,"inheritContainedHoverBg",V("palette-grey-700")),ee(E.Chip,"defaultBorder",V("palette-grey-700")),ee(E.Chip,"defaultAvatarColor",V("palette-grey-300")),ee(E.Chip,"defaultIconColor",V("palette-grey-300")),ee(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(E.LinearProgress,"primaryBg",U(Xe,E.primary.main,.5)),ee(E.LinearProgress,"secondaryBg",U(Xe,E.secondary.main,.5)),ee(E.LinearProgress,"errorBg",U(Xe,E.error.main,.5)),ee(E.LinearProgress,"infoBg",U(Xe,E.info.main,.5)),ee(E.LinearProgress,"successBg",U(Xe,E.success.main,.5)),ee(E.LinearProgress,"warningBg",U(Xe,E.warning.main,.5)),ee(E.Skeleton,"bg",C?U(jr,E.text.primary,.13):`rgba(${V("palette-text-primaryChannel")} / 0.13)`),ee(E.Slider,"primaryTrack",U(Xe,E.primary.main,.5)),ee(E.Slider,"secondaryTrack",U(Xe,E.secondary.main,.5)),ee(E.Slider,"errorTrack",U(Xe,E.error.main,.5)),ee(E.Slider,"infoTrack",U(Xe,E.info.main,.5)),ee(E.Slider,"successTrack",U(Xe,E.success.main,.5)),ee(E.Slider,"warningTrack",U(Xe,E.warning.main,.5));const Q=C?U(Ge,E.background.default,.985):Ta(E.background.default,.98);ee(E.SnackbarContent,"bg",Q),ee(E.SnackbarContent,"color",Sn(()=>C?pm.text.primary:E.getContrastText(Q))),ee(E.SpeedDialAction,"fabHoverBg",Ta(E.background.paper,.15)),ee(E.StepConnector,"border",V("palette-grey-600")),ee(E.StepContent,"border",V("palette-grey-600")),ee(E.Switch,"defaultColor",V("palette-grey-300")),ee(E.Switch,"defaultDisabledColor",V("palette-grey-600")),ee(E.Switch,"primaryDisabledColor",U(Xe,E.primary.main,.55)),ee(E.Switch,"secondaryDisabledColor",U(Xe,E.secondary.main,.55)),ee(E.Switch,"errorDisabledColor",U(Xe,E.error.main,.55)),ee(E.Switch,"infoDisabledColor",U(Xe,E.info.main,.55)),ee(E.Switch,"successDisabledColor",U(Xe,E.success.main,.55)),ee(E.Switch,"warningDisabledColor",U(Xe,E.warning.main,.55)),ee(E.TableCell,"border",U(Xe,U(jr,E.divider,1),.68)),ee(E.Tooltip,"bg",U(jr,E.grey[700],.92))}Vn(E.background,"default"),Vn(E.background,"paper"),Vn(E.common,"background"),Vn(E.common,"onBackground"),Vn(E,"divider"),Object.keys(E).forEach(Q=>{const Z=E[Q];Q!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&ee(E[Q],"mainChannel",fi(pi(Z.main))),Z.light&&ee(E[Q],"lightChannel",fi(pi(Z.light))),Z.dark&&ee(E[Q],"darkChannel",fi(pi(Z.dark))),Z.contrastText&&ee(E[Q],"contrastTextChannel",fi(pi(Z.contrastText))),Q==="text"&&(Vn(E[Q],"primary"),Vn(E[Q],"secondary")),Q==="action"&&(Z.active&&Vn(E[Q],"active"),Z.selected&&Vn(E[Q],"selected")))})}),k=n.reduce((Y,E)=>Br(Y,E),k);const j={prefix:u,disableCssColorScheme:a,shouldSkipGeneratingVar:f,getSelector:UO(k),enableContrastVars:l},{vars:z,generateThemeVars:F,generateStyleSheets:X}=uO(k,j);return k.vars=z,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([Y,E])=>{k[Y]=E}),k.generateThemeVars=F,k.generateStyleSheets=X,k.generateSpacing=function(){return em(_.spacing,Ul(this))},k.getColorSchemeSelector=lO(p),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=f,k.unstable_sxConfig={...Ci,..._==null?void 0:_.unstable_sxConfig},k.unstable_sx=function(Y){return Hr({sx:Y,theme:this})},k.toRuntimeSource=hm,k}function kd(e,n,r){e.colorSchemes&&r&&(e.colorSchemes[n]={...r!==!0&&r,palette:Hl({...r===!0?{}:r.palette,mode:n})})}function ym(e={},...n){const{palette:r,cssVariables:i=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:u=r==null?void 0:r.mode,...l}=e,f=u||"light",p=a==null?void 0:a[f],b={...a,...r?{[f]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return El(e,...n);let _=r;"palette"in e||b[f]&&(b[f]!==!0?_=b[f].palette:f==="dark"&&(_={mode:"dark"}));const T=El({...e,palette:_},...n);return T.defaultColorScheme=f,T.colorSchemes=b,T.palette.mode==="light"&&(T.colorSchemes.light={...b.light!==!0&&b.light,palette:T.palette},kd(T,"dark",b.dark)),T.palette.mode==="dark"&&(T.colorSchemes.dark={...b.dark!==!0&&b.dark,palette:T.palette},kd(T,"light",b.light)),T}return!r&&!("light"in b)&&f==="light"&&(b.light=!0),HO({...l,colorSchemes:b,defaultColorScheme:f,...typeof i!="boolean"&&i},...n)}const vm=ym(),Wl="$$material";function _s(){const e=tm(vm);return process.env.NODE_ENV!=="production"&&re.useDebugValue(e),e[Wl]||e}function WO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bm=e=>WO(e)&&e!=="classes",Ot=q_({themeId:Wl,defaultTheme:vm,rootShouldForwardProp:bm}),an=oO;process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function Gn(e){return rO(e)}function Pn(e,n,r="Mui"){const i={};return n.forEach(a=>{i[a]=Tn(e,a,r)}),i}function qO(e){return Tn("MuiSvgIcon",e)}Pn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YO=e=>{const{color:n,fontSize:r,classes:i}=e,a={root:["root",n!=="inherit"&&`color${Ht(n)}`,`fontSize${Ht(r)}`]};return gr(a,qO,i)},XO=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,r.color!=="inherit"&&n[`color${Ht(r.color)}`],n[`fontSize${Ht(r.fontSize)}`]]}})(an(({theme:e})=>{var n,r,i,a,u,l,f,p,b,_,T,M,S,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(n=e.transitions)==null?void 0:n.create)==null?void 0:a.call(n,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:d=>!d.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:l.call(u,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:p.call(f,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((_=(b=e.typography)==null?void 0:b.pxToRem)==null?void 0:_.call(b,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,d])=>d&&d.main).map(([d])=>{var m,w;return{props:{color:d},style:{color:(w=(m=(e.vars??e).palette)==null?void 0:m[d])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(M=(T=(e.vars??e).palette)==null?void 0:T.action)==null?void 0:M.active}},{props:{color:"disabled"},style:{color:(O=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ka=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiSvgIcon"}),{children:i,className:a,color:u="inherit",component:l="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:b=!1,titleAccess:_,viewBox:T="0 0 24 24",...M}=r,S=re.isValidElement(i)&&i.type==="svg",O={...r,color:u,component:l,fontSize:f,instanceFontSize:e.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:S},d={};b||(d.viewBox=T);const m=YO(O);return Pe.jsxs(XO,{as:l,className:tt(m.root,a),focusable:"false",color:p,"aria-hidden":_?void 0:!0,role:_?"img":void 0,ref:n,...d,...M,...S&&i.props,ownerState:O,children:[S?i.props.children:i,_?Pe.jsx("title",{children:_}):null]})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),g.string]),component:g.elementType,fontSize:g.oneOfType([g.oneOf(["inherit","large","medium","small"]),g.string]),htmlColor:g.string,inheritViewBox:g.bool,shapeRendering:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),titleAccess:g.string,viewBox:g.string});Ka.muiName="SvgIcon";function Pt(e,n){function r(i,a){return Pe.jsx(Ka,{"data-testid":process.env.NODE_ENV!=="production"?`${n}Icon`:void 0,ref:a,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${n}Icon`),r.muiName=Ka.muiName,re.memo(re.forwardRef(r))}function GO(e,n){var r,i,a;return re.isValidElement(e)&&n.indexOf(e.type.muiName??((a=(i=(r=e.type)==null?void 0:r._payload)==null?void 0:i.value)==null?void 0:a.muiName))!==-1}function Md(e){return e&&e.ownerDocument||document}function Ad(e,n){typeof e=="function"?e(n):e&&(e.current=n)}const bi=typeof window<"u"?re.useLayoutEffect:re.useEffect;let Nd=0;function JO(e){const[n,r]=re.useState(e),i=e||n;return re.useEffect(()=>{n==null&&(Nd+=1,r(`mui-${Nd}`))},[n]),i}const KO={...re},zd=KO.useId;function ZO(e){if(zd!==void 0){const n=zd();return e??n}return JO(e)}function wm(e){const{controlled:n,default:r,name:i,state:a="value"}=e,{current:u}=re.useRef(n!==void 0),[l,f]=re.useState(r),p=u?n:l;if(process.env.NODE_ENV!=="production"){re.useEffect(()=>{u!==(n!==void 0)&&console.error([`MUI: A component is changing the ${u?"":"un"}controlled ${a} state of ${i} to be ${u?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
151
+ export default theme;`}function jd(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const MO=e=>{if(!Number.isNaN(+e))return+e;const n=e.match(/\d*\.?\d+/g);if(!n)return 0;let r=0;for(let i=0;i<n.length;i+=1)r+=+n[i];return r};function AO(e){Object.assign(e,{alpha(n,r){const i=this||e;return i.colorSpace?`oklch(from ${n} l c h / ${typeof r=="string"?`calc(${r})`:r})`:i.vars?`rgba(${n.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof r=="string"?`calc(${r})`:r})`:sm(n,MO(r))},lighten(n,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${n}, #fff ${jd(r)})`:xs(n,r)},darken(n,r){const i=this||e;return i.colorSpace?`color-mix(in ${i.colorSpace}, ${n}, #000 ${jd(r)})`:Ss(n,r)}})}function El(e={},...n){const{breakpoints:r,mixins:i={},spacing:a,palette:u={},transitions:l={},typography:f={},shape:p,colorSpace:b,..._}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(process.env.NODE_ENV!=="production"?"MUI: `vars` is a private field used for CSS variables support.\nPlease use another name or follow the [docs](https://mui.com/material-ui/customization/css-theme-variables/usage/) to enable the feature.":bi(20));const T=Hl({...u,colorSpace:b}),M=Vl(e);let S=Br(M,{mixins:wO(M.breakpoints,i),palette:T,shadows:CO.slice(),typography:xO(T,f),transitions:DO(l),zIndex:{...jO}});if(S=Br(S,_),S=n.reduce((O,d)=>Br(O,d),S),process.env.NODE_ENV!=="production"){const O=["active","checked","completed","disabled","error","expanded","focused","focusVisible","required","selected"],d=(m,w)=>{let h;for(h in m){const y=m[h];if(O.includes(h)&&Object.keys(y).length>0){if(process.env.NODE_ENV!=="production"){const C=Tn("",h);console.error([`MUI: The \`${w}\` component increases the CSS specificity of the \`${h}\` internal state.`,"You can not override it like this: ",JSON.stringify(m,null,2),"",`Instead, you need to use the '&.${C}' syntax:`,JSON.stringify({root:{[`&.${C}`]:y}},null,2),"","https://mui.com/r/state-classes-guide"].join(`
152
+ `))}m[h]={}}}};Object.keys(S.components).forEach(m=>{const w=S.components[m].styleOverrides;w&&m.startsWith("Mui")&&d(w,m)})}return S.unstable_sxConfig={...Ti,..._==null?void 0:_.unstable_sxConfig},S.unstable_sx=function(O){return Hr({sx:O,theme:this})},S.toRuntimeSource=hm,AO(S),S}function NO(e){let n;return e<1?n=5.11916*e**2:n=4.5*Math.log(e+1)+2,Math.round(n*10)/1e3}const zO=[...Array(25)].map((e,n)=>{if(n===0)return"none";const r=NO(n);return`linear-gradient(rgba(255 255 255 / ${r}), rgba(255 255 255 / ${r}))`});function mm(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function gm(e){return e==="dark"?zO:[]}function $O(e){const{palette:n={mode:"light"},opacity:r,overlays:i,colorSpace:a,...u}=e,l=Hl({...n,colorSpace:a});return{palette:l,opacity:{...mm(l.mode),...r},overlays:i||gm(l.mode),...u}}function IO(e){var n;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((n=e[1])!=null&&n.match(/(mode|contrastThreshold|tonalOffset)/))}const LO=e=>[...[...Array(25)].map((n,r)=>`--${e?`${e}-`:""}overlays-${r}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],UO=e=>(n,r)=>{const i=e.rootSelector||":root",a=e.colorSchemeSelector;let u=a;if(a==="class"&&(u=".%s"),a==="data"&&(u="[data-%s]"),a!=null&&a.startsWith("data-")&&!a.includes("%s")&&(u=`[${a}="%s"]`),e.defaultColorScheme===n){if(n==="dark"){const l={};return LO(e.cssVarPrefix).forEach(f=>{l[f]=r[f],delete r[f]}),u==="media"?{[i]:r,"@media (prefers-color-scheme: dark)":{[i]:l}}:u?{[u.replace("%s",n)]:l,[`${i}, ${u.replace("%s",n)}`]:r}:{[i]:{...r,...l}}}if(u&&u!=="media")return`${i}, ${u.replace("%s",String(n))}`}else if(n){if(u==="media")return{[`@media (prefers-color-scheme: ${String(n)})`]:{[i]:r}};if(u)return u.replace("%s",String(n))}return i};function BO(e,n){n.forEach(r=>{e[r]||(e[r]={})})}function ee(e,n,r){!e[n]&&r&&(e[n]=r)}function hi(e){return typeof e!="string"||!e.startsWith("hsl")?e:am(e)}function Vn(e,n){`${n}Channel`in e||(e[`${n}Channel`]=di(hi(e[n]),`MUI: Can't create \`palette.${n}Channel\` because \`palette.${n}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
153
+ To suppress this warning, you need to explicitly provide the \`palette.${n}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function VO(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Sn=e=>{try{return e()}catch{}},FO=(e="mui")=>iO(e);function dl(e,n,r,i,a){if(!r)return;r=r===!0?{}:r;const u=a==="dark"?"dark":"light";if(!i){n[a]=$O({...r,palette:{mode:u,...r==null?void 0:r.palette},colorSpace:e});return}const{palette:l,...f}=El({...i,palette:{mode:u,...r==null?void 0:r.palette},colorSpace:e});return n[a]={...r,palette:l,opacity:{...mm(u),...r==null?void 0:r.opacity},overlays:(r==null?void 0:r.overlays)||gm(u)},f}function HO(e={},...n){const{colorSchemes:r={light:!0},defaultColorScheme:i,disableCssColorScheme:a=!1,cssVarPrefix:u="mui",nativeColor:l=!1,shouldSkipGeneratingVar:f=IO,colorSchemeSelector:p=r.light&&r.dark?"media":void 0,rootSelector:b=":root",..._}=e,T=Object.keys(r)[0],M=i||(r.light&&T!=="light"?"light":T),S=FO(u),{[M]:O,light:d,dark:m,...w}=r,h={...w};let y=O;if((M==="dark"&&!("dark"in r)||M==="light"&&!("light"in r))&&(y=!0),!y)throw new Error(process.env.NODE_ENV!=="production"?`MUI: The \`colorSchemes.${M}\` option is either missing or invalid.`:bi(21,M));let C;l&&(C="oklch");const v=dl(C,h,y,_,M);d&&!h.light&&dl(C,h,d,void 0,"light"),m&&!h.dark&&dl(C,h,m,void 0,"dark");let k={defaultColorScheme:M,...v,cssVarPrefix:u,colorSchemeSelector:p,rootSelector:b,getCssVar:S,colorSchemes:h,font:{...vO(v.typography),...v.font},spacing:VO(_.spacing)};Object.keys(k.colorSchemes).forEach(Y=>{const E=k.colorSchemes[Y].palette,V=Q=>{const Z=Q.split("-"),ue=Z[1],ce=Z[2];return S(Q,E[ue][ce])};E.mode==="light"&&(ee(E.common,"background","#fff"),ee(E.common,"onBackground","#000")),E.mode==="dark"&&(ee(E.common,"background","#000"),ee(E.common,"onBackground","#fff"));function U(Q,Z,ue){if(C){let ce;return Q===jr&&(ce=`transparent ${((1-ue)*100).toFixed(0)}%`),Q===Xe&&(ce=`#000 ${(ue*100).toFixed(0)}%`),Q===Ge&&(ce=`#fff ${(ue*100).toFixed(0)}%`),`color-mix(in ${C}, ${Z}, ${ce})`}return Q(Z,ue)}if(BO(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){ee(E.Alert,"errorColor",U(Xe,E.error.light,.6)),ee(E.Alert,"infoColor",U(Xe,E.info.light,.6)),ee(E.Alert,"successColor",U(Xe,E.success.light,.6)),ee(E.Alert,"warningColor",U(Xe,E.warning.light,.6)),ee(E.Alert,"errorFilledBg",V("palette-error-main")),ee(E.Alert,"infoFilledBg",V("palette-info-main")),ee(E.Alert,"successFilledBg",V("palette-success-main")),ee(E.Alert,"warningFilledBg",V("palette-warning-main")),ee(E.Alert,"errorFilledColor",Sn(()=>E.getContrastText(E.error.main))),ee(E.Alert,"infoFilledColor",Sn(()=>E.getContrastText(E.info.main))),ee(E.Alert,"successFilledColor",Sn(()=>E.getContrastText(E.success.main))),ee(E.Alert,"warningFilledColor",Sn(()=>E.getContrastText(E.warning.main))),ee(E.Alert,"errorStandardBg",U(Ge,E.error.light,.9)),ee(E.Alert,"infoStandardBg",U(Ge,E.info.light,.9)),ee(E.Alert,"successStandardBg",U(Ge,E.success.light,.9)),ee(E.Alert,"warningStandardBg",U(Ge,E.warning.light,.9)),ee(E.Alert,"errorIconColor",V("palette-error-main")),ee(E.Alert,"infoIconColor",V("palette-info-main")),ee(E.Alert,"successIconColor",V("palette-success-main")),ee(E.Alert,"warningIconColor",V("palette-warning-main")),ee(E.AppBar,"defaultBg",V("palette-grey-100")),ee(E.Avatar,"defaultBg",V("palette-grey-400")),ee(E.Button,"inheritContainedBg",V("palette-grey-300")),ee(E.Button,"inheritContainedHoverBg",V("palette-grey-A100")),ee(E.Chip,"defaultBorder",V("palette-grey-400")),ee(E.Chip,"defaultAvatarColor",V("palette-grey-700")),ee(E.Chip,"defaultIconColor",V("palette-grey-700")),ee(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),ee(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),ee(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),ee(E.LinearProgress,"primaryBg",U(Ge,E.primary.main,.62)),ee(E.LinearProgress,"secondaryBg",U(Ge,E.secondary.main,.62)),ee(E.LinearProgress,"errorBg",U(Ge,E.error.main,.62)),ee(E.LinearProgress,"infoBg",U(Ge,E.info.main,.62)),ee(E.LinearProgress,"successBg",U(Ge,E.success.main,.62)),ee(E.LinearProgress,"warningBg",U(Ge,E.warning.main,.62)),ee(E.Skeleton,"bg",C?U(jr,E.text.primary,.11):`rgba(${V("palette-text-primaryChannel")} / 0.11)`),ee(E.Slider,"primaryTrack",U(Ge,E.primary.main,.62)),ee(E.Slider,"secondaryTrack",U(Ge,E.secondary.main,.62)),ee(E.Slider,"errorTrack",U(Ge,E.error.main,.62)),ee(E.Slider,"infoTrack",U(Ge,E.info.main,.62)),ee(E.Slider,"successTrack",U(Ge,E.success.main,.62)),ee(E.Slider,"warningTrack",U(Ge,E.warning.main,.62));const Q=C?U(Xe,E.background.default,.6825):Ta(E.background.default,.8);ee(E.SnackbarContent,"bg",Q),ee(E.SnackbarContent,"color",Sn(()=>C?Ol.text.primary:E.getContrastText(Q))),ee(E.SpeedDialAction,"fabHoverBg",Ta(E.background.paper,.15)),ee(E.StepConnector,"border",V("palette-grey-400")),ee(E.StepContent,"border",V("palette-grey-400")),ee(E.Switch,"defaultColor",V("palette-common-white")),ee(E.Switch,"defaultDisabledColor",V("palette-grey-100")),ee(E.Switch,"primaryDisabledColor",U(Ge,E.primary.main,.62)),ee(E.Switch,"secondaryDisabledColor",U(Ge,E.secondary.main,.62)),ee(E.Switch,"errorDisabledColor",U(Ge,E.error.main,.62)),ee(E.Switch,"infoDisabledColor",U(Ge,E.info.main,.62)),ee(E.Switch,"successDisabledColor",U(Ge,E.success.main,.62)),ee(E.Switch,"warningDisabledColor",U(Ge,E.warning.main,.62)),ee(E.TableCell,"border",U(Ge,U(jr,E.divider,1),.88)),ee(E.Tooltip,"bg",U(jr,E.grey[700],.92))}if(E.mode==="dark"){ee(E.Alert,"errorColor",U(Ge,E.error.light,.6)),ee(E.Alert,"infoColor",U(Ge,E.info.light,.6)),ee(E.Alert,"successColor",U(Ge,E.success.light,.6)),ee(E.Alert,"warningColor",U(Ge,E.warning.light,.6)),ee(E.Alert,"errorFilledBg",V("palette-error-dark")),ee(E.Alert,"infoFilledBg",V("palette-info-dark")),ee(E.Alert,"successFilledBg",V("palette-success-dark")),ee(E.Alert,"warningFilledBg",V("palette-warning-dark")),ee(E.Alert,"errorFilledColor",Sn(()=>E.getContrastText(E.error.dark))),ee(E.Alert,"infoFilledColor",Sn(()=>E.getContrastText(E.info.dark))),ee(E.Alert,"successFilledColor",Sn(()=>E.getContrastText(E.success.dark))),ee(E.Alert,"warningFilledColor",Sn(()=>E.getContrastText(E.warning.dark))),ee(E.Alert,"errorStandardBg",U(Xe,E.error.light,.9)),ee(E.Alert,"infoStandardBg",U(Xe,E.info.light,.9)),ee(E.Alert,"successStandardBg",U(Xe,E.success.light,.9)),ee(E.Alert,"warningStandardBg",U(Xe,E.warning.light,.9)),ee(E.Alert,"errorIconColor",V("palette-error-main")),ee(E.Alert,"infoIconColor",V("palette-info-main")),ee(E.Alert,"successIconColor",V("palette-success-main")),ee(E.Alert,"warningIconColor",V("palette-warning-main")),ee(E.AppBar,"defaultBg",V("palette-grey-900")),ee(E.AppBar,"darkBg",V("palette-background-paper")),ee(E.AppBar,"darkColor",V("palette-text-primary")),ee(E.Avatar,"defaultBg",V("palette-grey-600")),ee(E.Button,"inheritContainedBg",V("palette-grey-800")),ee(E.Button,"inheritContainedHoverBg",V("palette-grey-700")),ee(E.Chip,"defaultBorder",V("palette-grey-700")),ee(E.Chip,"defaultAvatarColor",V("palette-grey-300")),ee(E.Chip,"defaultIconColor",V("palette-grey-300")),ee(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),ee(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),ee(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),ee(E.LinearProgress,"primaryBg",U(Xe,E.primary.main,.5)),ee(E.LinearProgress,"secondaryBg",U(Xe,E.secondary.main,.5)),ee(E.LinearProgress,"errorBg",U(Xe,E.error.main,.5)),ee(E.LinearProgress,"infoBg",U(Xe,E.info.main,.5)),ee(E.LinearProgress,"successBg",U(Xe,E.success.main,.5)),ee(E.LinearProgress,"warningBg",U(Xe,E.warning.main,.5)),ee(E.Skeleton,"bg",C?U(jr,E.text.primary,.13):`rgba(${V("palette-text-primaryChannel")} / 0.13)`),ee(E.Slider,"primaryTrack",U(Xe,E.primary.main,.5)),ee(E.Slider,"secondaryTrack",U(Xe,E.secondary.main,.5)),ee(E.Slider,"errorTrack",U(Xe,E.error.main,.5)),ee(E.Slider,"infoTrack",U(Xe,E.info.main,.5)),ee(E.Slider,"successTrack",U(Xe,E.success.main,.5)),ee(E.Slider,"warningTrack",U(Xe,E.warning.main,.5));const Q=C?U(Ge,E.background.default,.985):Ta(E.background.default,.98);ee(E.SnackbarContent,"bg",Q),ee(E.SnackbarContent,"color",Sn(()=>C?pm.text.primary:E.getContrastText(Q))),ee(E.SpeedDialAction,"fabHoverBg",Ta(E.background.paper,.15)),ee(E.StepConnector,"border",V("palette-grey-600")),ee(E.StepContent,"border",V("palette-grey-600")),ee(E.Switch,"defaultColor",V("palette-grey-300")),ee(E.Switch,"defaultDisabledColor",V("palette-grey-600")),ee(E.Switch,"primaryDisabledColor",U(Xe,E.primary.main,.55)),ee(E.Switch,"secondaryDisabledColor",U(Xe,E.secondary.main,.55)),ee(E.Switch,"errorDisabledColor",U(Xe,E.error.main,.55)),ee(E.Switch,"infoDisabledColor",U(Xe,E.info.main,.55)),ee(E.Switch,"successDisabledColor",U(Xe,E.success.main,.55)),ee(E.Switch,"warningDisabledColor",U(Xe,E.warning.main,.55)),ee(E.TableCell,"border",U(Xe,U(jr,E.divider,1),.68)),ee(E.Tooltip,"bg",U(jr,E.grey[700],.92))}Vn(E.background,"default"),Vn(E.background,"paper"),Vn(E.common,"background"),Vn(E.common,"onBackground"),Vn(E,"divider"),Object.keys(E).forEach(Q=>{const Z=E[Q];Q!=="tonalOffset"&&Z&&typeof Z=="object"&&(Z.main&&ee(E[Q],"mainChannel",di(hi(Z.main))),Z.light&&ee(E[Q],"lightChannel",di(hi(Z.light))),Z.dark&&ee(E[Q],"darkChannel",di(hi(Z.dark))),Z.contrastText&&ee(E[Q],"contrastTextChannel",di(hi(Z.contrastText))),Q==="text"&&(Vn(E[Q],"primary"),Vn(E[Q],"secondary")),Q==="action"&&(Z.active&&Vn(E[Q],"active"),Z.selected&&Vn(E[Q],"selected")))})}),k=n.reduce((Y,E)=>Br(Y,E),k);const j={prefix:u,disableCssColorScheme:a,shouldSkipGeneratingVar:f,getSelector:UO(k),enableContrastVars:l},{vars:z,generateThemeVars:F,generateStyleSheets:X}=uO(k,j);return k.vars=z,Object.entries(k.colorSchemes[k.defaultColorScheme]).forEach(([Y,E])=>{k[Y]=E}),k.generateThemeVars=F,k.generateStyleSheets=X,k.generateSpacing=function(){return em(_.spacing,Ul(this))},k.getColorSchemeSelector=lO(p),k.spacing=k.generateSpacing(),k.shouldSkipGeneratingVar=f,k.unstable_sxConfig={...Ti,..._==null?void 0:_.unstable_sxConfig},k.unstable_sx=function(Y){return Hr({sx:Y,theme:this})},k.toRuntimeSource=hm,k}function kd(e,n,r){e.colorSchemes&&r&&(e.colorSchemes[n]={...r!==!0&&r,palette:Hl({...r===!0?{}:r.palette,mode:n})})}function ym(e={},...n){const{palette:r,cssVariables:i=!1,colorSchemes:a=r?void 0:{light:!0},defaultColorScheme:u=r==null?void 0:r.mode,...l}=e,f=u||"light",p=a==null?void 0:a[f],b={...a,...r?{[f]:{...typeof p!="boolean"&&p,palette:r}}:void 0};if(i===!1){if(!("colorSchemes"in e))return El(e,...n);let _=r;"palette"in e||b[f]&&(b[f]!==!0?_=b[f].palette:f==="dark"&&(_={mode:"dark"}));const T=El({...e,palette:_},...n);return T.defaultColorScheme=f,T.colorSchemes=b,T.palette.mode==="light"&&(T.colorSchemes.light={...b.light!==!0&&b.light,palette:T.palette},kd(T,"dark",b.dark)),T.palette.mode==="dark"&&(T.colorSchemes.dark={...b.dark!==!0&&b.dark,palette:T.palette},kd(T,"light",b.light)),T}return!r&&!("light"in b)&&f==="light"&&(b.light=!0),HO({...l,colorSchemes:b,defaultColorScheme:f,...typeof i!="boolean"&&i},...n)}const vm=ym(),Wl="$$material";function _s(){const e=tm(vm);return process.env.NODE_ENV!=="production"&&re.useDebugValue(e),e[Wl]||e}function WO(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const bm=e=>WO(e)&&e!=="classes",Ot=q_({themeId:Wl,defaultTheme:vm,rootShouldForwardProp:bm}),an=oO;process.env.NODE_ENV!=="production"&&(g.node,g.object.isRequired);function Gn(e){return rO(e)}function Pn(e,n,r="Mui"){const i={};return n.forEach(a=>{i[a]=Tn(e,a,r)}),i}function qO(e){return Tn("MuiSvgIcon",e)}Pn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const YO=e=>{const{color:n,fontSize:r,classes:i}=e,a={root:["root",n!=="inherit"&&`color${Ht(n)}`,`fontSize${Ht(r)}`]};return gr(a,qO,i)},XO=Ot("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,r.color!=="inherit"&&n[`color${Ht(r.color)}`],n[`fontSize${Ht(r.fontSize)}`]]}})(an(({theme:e})=>{var n,r,i,a,u,l,f,p,b,_,T,M,S,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(a=(n=e.transitions)==null?void 0:n.create)==null?void 0:a.call(n,"fill",{duration:(i=(r=(e.vars??e).transitions)==null?void 0:r.duration)==null?void 0:i.shorter}),variants:[{props:d=>!d.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:l.call(u,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((p=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:p.call(f,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((_=(b=e.typography)==null?void 0:b.pxToRem)==null?void 0:_.call(b,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,d])=>d&&d.main).map(([d])=>{var m,w;return{props:{color:d},style:{color:(w=(m=(e.vars??e).palette)==null?void 0:m[d])==null?void 0:w.main}}}),{props:{color:"action"},style:{color:(M=(T=(e.vars??e).palette)==null?void 0:T.action)==null?void 0:M.active}},{props:{color:"disabled"},style:{color:(O=(S=(e.vars??e).palette)==null?void 0:S.action)==null?void 0:O.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),Ka=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiSvgIcon"}),{children:i,className:a,color:u="inherit",component:l="svg",fontSize:f="medium",htmlColor:p,inheritViewBox:b=!1,titleAccess:_,viewBox:T="0 0 24 24",...M}=r,S=re.isValidElement(i)&&i.type==="svg",O={...r,color:u,component:l,fontSize:f,instanceFontSize:e.fontSize,inheritViewBox:b,viewBox:T,hasSvgAsChild:S},d={};b||(d.viewBox=T);const m=YO(O);return Pe.jsxs(XO,{as:l,className:tt(m.root,a),focusable:"false",color:p,"aria-hidden":_?void 0:!0,role:_?"img":void 0,ref:n,...d,...M,...S&&i.props,ownerState:O,children:[S?i.props.children:i,_?Pe.jsx("title",{children:_}):null]})});process.env.NODE_ENV!=="production"&&(Ka.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["inherit","action","disabled","primary","secondary","error","info","success","warning"]),g.string]),component:g.elementType,fontSize:g.oneOfType([g.oneOf(["inherit","large","medium","small"]),g.string]),htmlColor:g.string,inheritViewBox:g.bool,shapeRendering:g.string,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),titleAccess:g.string,viewBox:g.string});Ka.muiName="SvgIcon";function Pt(e,n){function r(i,a){return Pe.jsx(Ka,{"data-testid":process.env.NODE_ENV!=="production"?`${n}Icon`:void 0,ref:a,...i,children:e})}return process.env.NODE_ENV!=="production"&&(r.displayName=`${n}Icon`),r.muiName=Ka.muiName,re.memo(re.forwardRef(r))}function GO(e,n){var r,i,a;return re.isValidElement(e)&&n.indexOf(e.type.muiName??((a=(i=(r=e.type)==null?void 0:r._payload)==null?void 0:i.value)==null?void 0:a.muiName))!==-1}function Md(e){return e&&e.ownerDocument||document}function Ad(e,n){typeof e=="function"?e(n):e&&(e.current=n)}const Si=typeof window<"u"?re.useLayoutEffect:re.useEffect;let Nd=0;function JO(e){const[n,r]=re.useState(e),i=e||n;return re.useEffect(()=>{n==null&&(Nd+=1,r(`mui-${Nd}`))},[n]),i}const KO={...re},zd=KO.useId;function ZO(e){if(zd!==void 0){const n=zd();return e??n}return JO(e)}function wm(e){const{controlled:n,default:r,name:i,state:a="value"}=e,{current:u}=re.useRef(n!==void 0),[l,f]=re.useState(r),p=u?n:l;if(process.env.NODE_ENV!=="production"){re.useEffect(()=>{u!==(n!==void 0)&&console.error([`MUI: A component is changing the ${u?"":"un"}controlled ${a} state of ${i} to be ${u?"un":""}controlled.`,"Elements should not switch from uncontrolled to controlled (or vice versa).",`Decide between using a controlled or uncontrolled ${i} element for the lifetime of the component.`,"The nature of the state is determined during the first render. It's considered controlled if the value is not `undefined`.","More info: https://fb.me/react-controlled-components"].join(`
154
154
  `))},[a,i,n]);const{current:_}=re.useRef(r);re.useEffect(()=>{!u&&JSON.stringify(r)!==JSON.stringify(_)&&console.error([`MUI: A component is changing the default ${a} state of an uncontrolled ${i} after being initialized. To suppress this warning opt to use a controlled ${i}.`].join(`
155
- `))},[JSON.stringify(r)])}const b=re.useCallback(_=>{u||f(_)},[]);return[p,b]}function vo(e){const n=re.useRef(e);return bi(()=>{n.current=e}),re.useRef((...r)=>(0,n.current)(...r)).current}function gn(...e){const n=re.useRef(void 0),r=re.useCallback(i=>{const a=e.map(u=>{if(u==null)return null;if(typeof u=="function"){const l=u,f=l(i);return typeof f=="function"?f:()=>{l(null)}}return u.current=i,()=>{u.current=null}});return()=>{a.forEach(u=>u==null?void 0:u())}},e);return re.useMemo(()=>e.every(i=>i==null)?null:i=>{n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))},e)}function QO(e,n){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof n=="function"}function eE(e,n){if(!e)return n;function r(l,f){const p={};return Object.keys(f).forEach(b=>{QO(b,f[b])&&typeof l[b]=="function"&&(p[b]=(..._)=>{l[b](..._),f[b](..._)})}),p}if(typeof e=="function"||typeof n=="function")return l=>{const f=typeof n=="function"?n(l):n,p=typeof e=="function"?e({...l,...f}):e,b=tt(l==null?void 0:l.className,f==null?void 0:f.className,p==null?void 0:p.className),_=r(p,f);return{...f,...p,..._,...!!b&&{className:b},...(f==null?void 0:f.style)&&(p==null?void 0:p.style)&&{style:{...f.style,...p.style}},...(f==null?void 0:f.sx)&&(p==null?void 0:p.sx)&&{sx:[...Array.isArray(f.sx)?f.sx:[f.sx],...Array.isArray(p.sx)?p.sx:[p.sx]]}}};const i=n,a=r(e,i),u=tt(i==null?void 0:i.className,e==null?void 0:e.className);return{...n,...e,...a,...!!u&&{className:u},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Pt(Pe.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");Pt(Pe.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");Pt(Pe.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");Pt(Pe.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");Pt(Pe.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");_e.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}});at.keyframes`
155
+ `))},[JSON.stringify(r)])}const b=re.useCallback(_=>{u||f(_)},[]);return[p,b]}function vo(e){const n=re.useRef(e);return Si(()=>{n.current=e}),re.useRef((...r)=>(0,n.current)(...r)).current}function gn(...e){const n=re.useRef(void 0),r=re.useCallback(i=>{const a=e.map(u=>{if(u==null)return null;if(typeof u=="function"){const l=u,f=l(i);return typeof f=="function"?f:()=>{l(null)}}return u.current=i,()=>{u.current=null}});return()=>{a.forEach(u=>u==null?void 0:u())}},e);return re.useMemo(()=>e.every(i=>i==null)?null:i=>{n.current&&(n.current(),n.current=void 0),i!=null&&(n.current=r(i))},e)}function QO(e,n){const r=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&r>=65&&r<=90&&typeof n=="function"}function eE(e,n){if(!e)return n;function r(l,f){const p={};return Object.keys(f).forEach(b=>{QO(b,f[b])&&typeof l[b]=="function"&&(p[b]=(..._)=>{l[b](..._),f[b](..._)})}),p}if(typeof e=="function"||typeof n=="function")return l=>{const f=typeof n=="function"?n(l):n,p=typeof e=="function"?e({...l,...f}):e,b=tt(l==null?void 0:l.className,f==null?void 0:f.className,p==null?void 0:p.className),_=r(p,f);return{...f,...p,..._,...!!b&&{className:b},...(f==null?void 0:f.style)&&(p==null?void 0:p.style)&&{style:{...f.style,...p.style}},...(f==null?void 0:f.sx)&&(p==null?void 0:p.sx)&&{sx:[...Array.isArray(f.sx)?f.sx:[f.sx],...Array.isArray(p.sx)?p.sx:[p.sx]]}}};const i=n,a=r(e,i),u=tt(i==null?void 0:i.className,e==null?void 0:e.className);return{...n,...e,...a,...!!u&&{className:u},...(i==null?void 0:i.style)&&(e==null?void 0:e.style)&&{style:{...i.style,...e.style}},...(i==null?void 0:i.sx)&&(e==null?void 0:e.sx)&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}Pt(Pe.jsx("path",{d:"M10 18h4v-2h-4zM3 6v2h18V6zm3 7h12v-2H6z"}),"FilterList");Pt(Pe.jsx("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");Pt(Pe.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");Pt(Pe.jsx("path",{d:"M15.41 7.41 14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"ChevronLeft");Pt(Pe.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"ChevronRight");_e.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}});at.keyframes`
156
156
  0% { transform: scale(0.95); opacity: 0.5; }
157
157
  50% { transform: scale(1.05); opacity: 0.8; }
158
158
  100% { transform: scale(0.95); opacity: 0.5; }
@@ -165,7 +165,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${n}Chann
165
165
  `;at.keyframes`
166
166
  from { opacity: 0; }
167
167
  to { opacity: 1; }
168
- `;_e.createContext({id:"",panelRef:{current:null},panelContentRef:{current:null},defaultWidth:200,defaultHeight:200,minWidth:100,maxWidth:500,minHeight:100,maxHeight:500,extendedStyle:{},setExtendedStyle:()=>{},tools:[],setTools:()=>{},addTool:()=>{},removeTool:()=>{},dimensions:{width:200,height:200},setDimensions:()=>{},handleDimensionsChange:()=>{},dimensionsWereTemporary:!1,extendedContainerStyle:{position:"relative"},setExtendedContainerStyle:()=>{}});const tE={};function nE(e,n){let r;try{r=e()}catch{return}return{getItem:i=>{var a;const u=f=>f===null?null:JSON.parse(f,void 0),l=(a=r.getItem(i))!=null?a:null;return l instanceof Promise?l.then(u):u(l)},setItem:(i,a)=>r.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>r.removeItem(i)}}const wi=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(i){return wi(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return wi(i)(r)}}}},rE=(e,n)=>(r,i,a)=>{let u={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,w)=>({...w,...m}),...n},l=!1;const f=new Set,p=new Set;let b;try{b=u.getStorage()}catch{}if(!b)return e((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),r(...m)},i,a);const _=wi(u.serialize),T=()=>{const m=u.partialize({...i()});let w;const h=_({state:m,version:u.version}).then(y=>b.setItem(u.name,y)).catch(y=>{w=y});if(w)throw w;return h},M=a.setState;a.setState=(m,w)=>{M(m,w),T()};const S=e((...m)=>{r(...m),T()},i,a);let O;const d=()=>{var m;if(!b)return;l=!1,f.forEach(h=>h(i()));const w=((m=u.onRehydrateStorage)==null?void 0:m.call(u,i()))||void 0;return wi(b.getItem.bind(b))(u.name).then(h=>{if(h)return u.deserialize(h)}).then(h=>{if(h)if(typeof h.version=="number"&&h.version!==u.version){if(u.migrate)return u.migrate(h.state,h.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return h.state}).then(h=>{var y;return O=u.merge(h,(y=i())!=null?y:S),r(O,!0),T()}).then(()=>{w==null||w(O,void 0),l=!0,p.forEach(h=>h(O))}).catch(h=>{w==null||w(void 0,h)})};return a.persist={setOptions:m=>{u={...u,...m},m.getStorage&&(b=m.getStorage())},clearStorage:()=>{b==null||b.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>d(),hasHydrated:()=>l,onHydrate:m=>(f.add(m),()=>{f.delete(m)}),onFinishHydration:m=>(p.add(m),()=>{p.delete(m)})},d(),O||S},oE=(e,n)=>(r,i,a)=>{let u={storage:nE(()=>localStorage),partialize:d=>d,version:0,merge:(d,m)=>({...m,...d}),...n},l=!1;const f=new Set,p=new Set;let b=u.storage;if(!b)return e((...d)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),r(...d)},i,a);const _=()=>{const d=u.partialize({...i()});return b.setItem(u.name,{state:d,version:u.version})},T=a.setState;a.setState=(d,m)=>{T(d,m),_()};const M=e((...d)=>{r(...d),_()},i,a);a.getInitialState=()=>M;let S;const O=()=>{var d,m;if(!b)return;l=!1,f.forEach(h=>{var y;return h((y=i())!=null?y:M)});const w=((m=u.onRehydrateStorage)==null?void 0:m.call(u,(d=i())!=null?d:M))||void 0;return wi(b.getItem.bind(b))(u.name).then(h=>{if(h)if(typeof h.version=="number"&&h.version!==u.version){if(u.migrate)return[!0,u.migrate(h.state,h.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,h.state];return[!1,void 0]}).then(h=>{var y;const[C,v]=h;if(S=u.merge(v,(y=i())!=null?y:M),r(S,!0),C)return _()}).then(()=>{w==null||w(S,void 0),S=i(),l=!0,p.forEach(h=>h(S))}).catch(h=>{w==null||w(void 0,h)})};return a.persist={setOptions:d=>{u={...u,...d},d.storage&&(b=d.storage)},clearStorage:()=>{b==null||b.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>O(),hasHydrated:()=>l,onHydrate:d=>(f.add(d),()=>{f.delete(d)}),onFinishHydration:d=>(p.add(d),()=>{p.delete(d)})},u.skipHydration||O(),S||M},iE=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?((tE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rE(e,n)):oE(e,n),aE=iE;Co.create()(aE(e=>({editMode:!1,toggleEditMode:()=>e(n=>({editMode:!n.editMode})),resizeMode:!1,toggleResizeMode:()=>e(n=>({resizeMode:!n.resizeMode})),moveMode:!1,toggleMoveMode:()=>e(n=>({moveMode:!n.moveMode}))}),{name:"grid-layout-storage"}));_e.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}});Pt(Pe.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");Pt(Pe.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");Co.create(e=>({expandedPanelId:null,setExpandedPanelId:n=>e({expandedPanelId:n})}));_e.createContext(void 0);_e.createContext(void 0);_e.createContext(void 0);const $d={};function Sm(e,n){const r=re.useRef($d);return r.current===$d&&(r.current=e(n)),r}const sE=[];function uE(e){re.useEffect(e,sE)}class Os{constructor(){on(this,"currentId",null),on(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)}),on(this,"disposeEffect",()=>this.clear)}static create(){return new Os}start(n,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},n)}}function $r(){const e=Sm(Os.create).current;return uE(e.disposeEffect),e}function lE(e,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,r))}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Cl.apply(null,arguments)}function xm(e,n){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Rl(e,n){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rl(e,n)}function _m(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Rl(e,n)}const Id={disabled:!1};var cE=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.shape({enter:g.number,exit:g.number,appear:g.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&g.oneOfType([g.string,g.shape({enter:g.string,exit:g.string,active:g.string}),g.shape({enter:g.string,enterDone:g.string,enterActive:g.string,exit:g.string,exitDone:g.string,exitActive:g.string})]);const Za=_e.createContext(null);var fE=function(e){return e.scrollTop},di="unmounted",Mr="exited",Ar="entering",ho="entered",Tl="exiting",Dn=function(e){_m(n,e);function n(i,a){var u;u=e.call(this,i,a)||this;var l=a,f=l&&!l.isMounting?i.enter:i.appear,p;return u.appearStatus=null,i.in?f?(p=Mr,u.appearStatus=Ar):p=ho:i.unmountOnExit||i.mountOnEnter?p=di:p=Mr,u.state={status:p},u.nextCallback=null,u}n.getDerivedStateFromProps=function(i,a){var u=i.in;return u&&a.status===di?{status:Mr}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==Ar&&u!==ho&&(a=Ar):(u===Ar||u===ho)&&(a=Tl)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,u,l;return a=u=l=i,i!=null&&typeof i!="number"&&(a=i.exit,u=i.enter,l=i.appear!==void 0?i.appear:u),{exit:a,enter:u,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Nr.findDOMNode(this);u&&fE(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mr&&this.setState({status:di})},r.performEnter=function(i){var a=this,u=this.props.enter,l=this.context?this.context.isMounting:i,f=this.props.nodeRef?[l]:[Nr.findDOMNode(this),l],p=f[0],b=f[1],_=this.getTimeouts(),T=l?_.appear:_.enter;if(!i&&!u||Id.disabled){this.safeSetState({status:ho},function(){a.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:Ar},function(){a.props.onEntering(p,b),a.onTransitionEnd(T,function(){a.safeSetState({status:ho},function(){a.props.onEntered(p,b)})})})},r.performExit=function(){var i=this,a=this.props.exit,u=this.getTimeouts(),l=this.props.nodeRef?void 0:Nr.findDOMNode(this);if(!a||Id.disabled){this.safeSetState({status:Mr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Tl},function(){i.props.onExiting(l),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:Mr},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,u=!0;return this.nextCallback=function(l){u&&(u=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:Nr.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!u||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=f[0],b=f[1];this.props.addEndListener(p,b)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===di)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=xm(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _e.createElement(Za.Provider,{value:null},typeof u=="function"?u(i,l):_e.cloneElement(_e.Children.only(u),l))},n}(_e.Component);Dn.contextType=Za;Dn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:g.shape({current:typeof Element>"u"?g.any:function(e,n,r,i,a,u){var l=e[n];return g.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,n,r,i,a,u)}}),children:g.oneOfType([g.func.isRequired,g.element.isRequired]).isRequired,in:g.bool,mountOnEnter:g.bool,unmountOnExit:g.bool,appear:g.bool,enter:g.bool,exit:g.bool,timeout:function(e){var n=cE;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[e].concat(i))},addEndListener:g.func,onEnter:g.func,onEntering:g.func,onEntered:g.func,onExit:g.func,onExiting:g.func,onExited:g.func}:{};function po(){}Dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:po,onEntering:po,onEntered:po,onExit:po,onExiting:po,onExited:po};Dn.UNMOUNTED=di;Dn.EXITED=Mr;Dn.ENTERING=Ar;Dn.ENTERED=ho;Dn.EXITING=Tl;function pE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e,n){var r=function(a){return n&&_e.isValidElement(a)?n(a):a},i=Object.create(null);return e&&_e.Children.map(e,function(a){return a}).forEach(function(a){i[a.key]=r(a)}),i}function dE(e,n){e=e||{},n=n||{};function r(_){return _ in n?n[_]:e[_]}var i=Object.create(null),a=[];for(var u in e)u in n?a.length&&(i[u]=a,a=[]):a.push(u);var l,f={};for(var p in n){if(i[p])for(l=0;l<i[p].length;l++){var b=i[p][l];f[i[p][l]]=r(b)}f[p]=r(p)}for(l=0;l<a.length;l++)f[a[l]]=r(a[l]);return f}function Ir(e,n,r){return r[n]!=null?r[n]:e.props[n]}function hE(e,n){return ql(e.children,function(r){return _e.cloneElement(r,{onExited:n.bind(null,r),in:!0,appear:Ir(r,"appear",e),enter:Ir(r,"enter",e),exit:Ir(r,"exit",e)})})}function mE(e,n,r){var i=ql(e.children),a=dE(n,i);return Object.keys(a).forEach(function(u){var l=a[u];if(_e.isValidElement(l)){var f=u in n,p=u in i,b=n[u],_=_e.isValidElement(b)&&!b.props.in;p&&(!f||_)?a[u]=_e.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Ir(l,"exit",e),enter:Ir(l,"enter",e)}):!p&&f&&!_?a[u]=_e.cloneElement(l,{in:!1}):p&&f&&_e.isValidElement(b)&&(a[u]=_e.cloneElement(l,{onExited:r.bind(null,l),in:b.props.in,exit:Ir(l,"exit",e),enter:Ir(l,"enter",e)}))}}),a}var gE=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},yE={component:"div",childFactory:function(e){return e}},Yl=function(e){_m(n,e);function n(i,a){var u;u=e.call(this,i,a)||this;var l=u.handleExited.bind(pE(u));return u.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},u}var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(i,a){var u=a.children,l=a.handleExited,f=a.firstRender;return{children:f?hE(i,l):mE(i,u,l),firstRender:!1}},r.handleExited=function(i,a){var u=ql(this.props.children);i.key in u||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var f=Cl({},l.children);return delete f[i.key],{children:f}}))},r.render=function(){var i=this.props,a=i.component,u=i.childFactory,l=xm(i,["component","childFactory"]),f=this.state.contextValue,p=gE(this.state.children).map(u);return delete l.appear,delete l.enter,delete l.exit,a===null?_e.createElement(Za.Provider,{value:f},p):_e.createElement(Za.Provider,{value:f},_e.createElement(a,l,p))},n}(_e.Component);Yl.propTypes=process.env.NODE_ENV!=="production"?{component:g.any,children:g.node,appear:g.bool,enter:g.bool,exit:g.bool,childFactory:g.func}:{};Yl.defaultProps=yE;function Es(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||n(...r)}}function vE(e){const{prototype:n={}}=e;return!!n.isReactComponent}function Om(e,n,r,i,a){const u=e[n],l=a||n;if(u==null||typeof window>"u")return null;let f;const p=u.type;return typeof p=="function"&&!vE(p)&&(f="Did you accidentally use a plain function component for an element instead?"),f!==void 0?new Error(`Invalid ${i} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Cs=Es(g.element,Om);Cs.isRequired=Es(g.element.isRequired,Om);function Rs(e){var n;return parseInt(re.version,10)>=19?((n=e==null?void 0:e.props)==null?void 0:n.ref)||null:(e==null?void 0:e.ref)||null}const Em=e=>e.scrollTop;function Qa(e,n){const{timeout:r,easing:i,style:a={}}=e;return{duration:a.transitionDuration??(typeof r=="number"?r:r[n.mode]||0),easing:a.transitionTimingFunction??(typeof i=="object"?i[n.mode]:i),delay:a.transitionDelay}}const bE={entering:{transform:"none"},entered:{transform:"none"}},Cm=re.forwardRef(function(e,n){const r=_s(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:l,easing:f,in:p,onEnter:b,onEntered:_,onEntering:T,onExit:M,onExited:S,onExiting:O,style:d,timeout:m=i,TransitionComponent:w=Dn,...h}=e,y=re.useRef(null),C=gn(y,Rs(l),n),v=V=>U=>{if(V){const Q=y.current;U===void 0?V(Q):V(Q,U)}},k=v(T),j=v((V,U)=>{Em(V);const Q=Qa({style:d,timeout:m,easing:f},{mode:"enter"});V.style.webkitTransition=r.transitions.create("transform",Q),V.style.transition=r.transitions.create("transform",Q),b&&b(V,U)}),z=v(_),F=v(O),X=v(V=>{const U=Qa({style:d,timeout:m,easing:f},{mode:"exit"});V.style.webkitTransition=r.transitions.create("transform",U),V.style.transition=r.transitions.create("transform",U),M&&M(V)}),Y=v(S),E=V=>{a&&a(y.current,V)};return Pe.jsx(w,{appear:u,in:p,nodeRef:y,onEnter:j,onEntered:z,onEntering:k,onExit:X,onExited:Y,onExiting:F,addEndListener:E,timeout:m,...h,children:(V,{ownerState:U,...Q})=>re.cloneElement(l,{style:{transform:"scale(0)",visibility:V==="exited"&&!p?"hidden":void 0,...bE[V],...d,...l.props.style},ref:C,...Q})})});process.env.NODE_ENV!=="production"&&(Cm.propTypes={addEndListener:g.func,appear:g.bool,children:Cs.isRequired,easing:g.oneOfType([g.shape({enter:g.string,exit:g.string}),g.string]),in:g.bool,onEnter:g.func,onEntered:g.func,onEntering:g.func,onExit:g.func,onExited:g.func,onExiting:g.func,style:g.object,timeout:g.oneOfType([g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});const Xl=g.oneOfType([g.func,g.object]);function wE(e){const{prototype:n={}}=e;return!!n.isReactComponent}function SE(e,n,r,i,a){const u=e[n],l=a||n;if(u==null||typeof window>"u")return null;let f;return typeof u=="function"&&!wE(u)&&(f="Did you accidentally provide a plain function component instead?"),f!==void 0?new Error(`Invalid ${i} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xE=Es(g.elementType,SE);function es(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
168
+ `;_e.createContext({id:"",panelRef:{current:null},panelContentRef:{current:null},defaultWidth:200,defaultHeight:200,minWidth:100,maxWidth:500,minHeight:100,maxHeight:500,extendedStyle:{},setExtendedStyle:()=>{},tools:[],setTools:()=>{},addTool:()=>{},removeTool:()=>{},dimensions:{width:200,height:200},setDimensions:()=>{},handleDimensionsChange:()=>{},dimensionsWereTemporary:!1,extendedContainerStyle:{position:"relative"},setExtendedContainerStyle:()=>{}});const tE={};function nE(e,n){let r;try{r=e()}catch{return}return{getItem:i=>{var a;const u=f=>f===null?null:JSON.parse(f,void 0),l=(a=r.getItem(i))!=null?a:null;return l instanceof Promise?l.then(u):u(l)},setItem:(i,a)=>r.setItem(i,JSON.stringify(a,void 0)),removeItem:i=>r.removeItem(i)}}const xi=e=>n=>{try{const r=e(n);return r instanceof Promise?r:{then(i){return xi(i)(r)},catch(i){return this}}}catch(r){return{then(i){return this},catch(i){return xi(i)(r)}}}},rE=(e,n)=>(r,i,a)=>{let u={getStorage:()=>localStorage,serialize:JSON.stringify,deserialize:JSON.parse,partialize:m=>m,version:0,merge:(m,w)=>({...w,...m}),...n},l=!1;const f=new Set,p=new Set;let b;try{b=u.getStorage()}catch{}if(!b)return e((...m)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),r(...m)},i,a);const _=xi(u.serialize),T=()=>{const m=u.partialize({...i()});let w;const h=_({state:m,version:u.version}).then(y=>b.setItem(u.name,y)).catch(y=>{w=y});if(w)throw w;return h},M=a.setState;a.setState=(m,w)=>{M(m,w),T()};const S=e((...m)=>{r(...m),T()},i,a);let O;const d=()=>{var m;if(!b)return;l=!1,f.forEach(h=>h(i()));const w=((m=u.onRehydrateStorage)==null?void 0:m.call(u,i()))||void 0;return xi(b.getItem.bind(b))(u.name).then(h=>{if(h)return u.deserialize(h)}).then(h=>{if(h)if(typeof h.version=="number"&&h.version!==u.version){if(u.migrate)return u.migrate(h.state,h.version);console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return h.state}).then(h=>{var y;return O=u.merge(h,(y=i())!=null?y:S),r(O,!0),T()}).then(()=>{w==null||w(O,void 0),l=!0,p.forEach(h=>h(O))}).catch(h=>{w==null||w(void 0,h)})};return a.persist={setOptions:m=>{u={...u,...m},m.getStorage&&(b=m.getStorage())},clearStorage:()=>{b==null||b.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>d(),hasHydrated:()=>l,onHydrate:m=>(f.add(m),()=>{f.delete(m)}),onFinishHydration:m=>(p.add(m),()=>{p.delete(m)})},d(),O||S},oE=(e,n)=>(r,i,a)=>{let u={storage:nE(()=>localStorage),partialize:d=>d,version:0,merge:(d,m)=>({...m,...d}),...n},l=!1;const f=new Set,p=new Set;let b=u.storage;if(!b)return e((...d)=>{console.warn(`[zustand persist middleware] Unable to update item '${u.name}', the given storage is currently unavailable.`),r(...d)},i,a);const _=()=>{const d=u.partialize({...i()});return b.setItem(u.name,{state:d,version:u.version})},T=a.setState;a.setState=(d,m)=>{T(d,m),_()};const M=e((...d)=>{r(...d),_()},i,a);a.getInitialState=()=>M;let S;const O=()=>{var d,m;if(!b)return;l=!1,f.forEach(h=>{var y;return h((y=i())!=null?y:M)});const w=((m=u.onRehydrateStorage)==null?void 0:m.call(u,(d=i())!=null?d:M))||void 0;return xi(b.getItem.bind(b))(u.name).then(h=>{if(h)if(typeof h.version=="number"&&h.version!==u.version){if(u.migrate)return[!0,u.migrate(h.state,h.version)];console.error("State loaded from storage couldn't be migrated since no migrate function was provided")}else return[!1,h.state];return[!1,void 0]}).then(h=>{var y;const[C,v]=h;if(S=u.merge(v,(y=i())!=null?y:M),r(S,!0),C)return _()}).then(()=>{w==null||w(S,void 0),S=i(),l=!0,p.forEach(h=>h(S))}).catch(h=>{w==null||w(void 0,h)})};return a.persist={setOptions:d=>{u={...u,...d},d.storage&&(b=d.storage)},clearStorage:()=>{b==null||b.removeItem(u.name)},getOptions:()=>u,rehydrate:()=>O(),hasHydrated:()=>l,onHydrate:d=>(f.add(d),()=>{f.delete(d)}),onFinishHydration:d=>(p.add(d),()=>{p.delete(d)})},u.skipHydration||O(),S||M},iE=(e,n)=>"getStorage"in n||"serialize"in n||"deserialize"in n?((tE?"production":void 0)!=="production"&&console.warn("[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."),rE(e,n)):oE(e,n),aE=iE;Co.create()(aE(e=>({editMode:!1,toggleEditMode:()=>e(n=>({editMode:!n.editMode})),resizeMode:!1,toggleResizeMode:()=>e(n=>({resizeMode:!n.resizeMode})),moveMode:!1,toggleMoveMode:()=>e(n=>({moveMode:!n.moveMode}))}),{name:"grid-layout-storage"}));_e.createContext({itemCounts:{horizontal:1,vertical:1},setItemCounts:()=>{}});Pt(Pe.jsx("path",{d:"M22 3.41 16.71 8.7 20 12h-8V4l3.29 3.29L20.59 2zM3.41 22l5.29-5.29L12 20v-8H4l3.29 3.29L2 20.59z"}),"CloseFullscreen");Pt(Pe.jsx("path",{d:"M21 11V3h-8l3.29 3.29-10 10L3 13v8h8l-3.29-3.29 10-10z"}),"OpenInFull");Co.create(e=>({expandedPanelId:null,setExpandedPanelId:n=>e({expandedPanelId:n})}));_e.createContext(void 0);_e.createContext(void 0);_e.createContext(void 0);const $d={};function Sm(e,n){const r=re.useRef($d);return r.current===$d&&(r.current=e(n)),r}const sE=[];function uE(e){re.useEffect(e,sE)}class Os{constructor(){on(this,"currentId",null),on(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)}),on(this,"disposeEffect",()=>this.clear)}static create(){return new Os}start(n,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},n)}}function $r(){const e=Sm(Os.create).current;return uE(e.disposeEffect),e}function lE(e,n=Number.MIN_SAFE_INTEGER,r=Number.MAX_SAFE_INTEGER){return Math.max(n,Math.min(e,r))}function Cl(){return Cl=Object.assign?Object.assign.bind():function(e){for(var n=1;n<arguments.length;n++){var r=arguments[n];for(var i in r)({}).hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},Cl.apply(null,arguments)}function xm(e,n){if(e==null)return{};var r={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(n.indexOf(i)!==-1)continue;r[i]=e[i]}return r}function Rl(e,n){return Rl=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Rl(e,n)}function _m(e,n){e.prototype=Object.create(n.prototype),e.prototype.constructor=e,Rl(e,n)}const Id={disabled:!1};var cE=process.env.NODE_ENV!=="production"?g.oneOfType([g.number,g.shape({enter:g.number,exit:g.number,appear:g.number}).isRequired]):null;process.env.NODE_ENV!=="production"&&g.oneOfType([g.string,g.shape({enter:g.string,exit:g.string,active:g.string}),g.shape({enter:g.string,enterDone:g.string,enterActive:g.string,exit:g.string,exitDone:g.string,exitActive:g.string})]);const Za=_e.createContext(null);var fE=function(e){return e.scrollTop},mi="unmounted",Mr="exited",Ar="entering",ho="entered",Tl="exiting",Dn=function(e){_m(n,e);function n(i,a){var u;u=e.call(this,i,a)||this;var l=a,f=l&&!l.isMounting?i.enter:i.appear,p;return u.appearStatus=null,i.in?f?(p=Mr,u.appearStatus=Ar):p=ho:i.unmountOnExit||i.mountOnEnter?p=mi:p=Mr,u.state={status:p},u.nextCallback=null,u}n.getDerivedStateFromProps=function(i,a){var u=i.in;return u&&a.status===mi?{status:Mr}:null};var r=n.prototype;return r.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},r.componentDidUpdate=function(i){var a=null;if(i!==this.props){var u=this.state.status;this.props.in?u!==Ar&&u!==ho&&(a=Ar):(u===Ar||u===ho)&&(a=Tl)}this.updateStatus(!1,a)},r.componentWillUnmount=function(){this.cancelNextCallback()},r.getTimeouts=function(){var i=this.props.timeout,a,u,l;return a=u=l=i,i!=null&&typeof i!="number"&&(a=i.exit,u=i.enter,l=i.appear!==void 0?i.appear:u),{exit:a,enter:u,appear:l}},r.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ar){if(this.props.unmountOnExit||this.props.mountOnEnter){var u=this.props.nodeRef?this.props.nodeRef.current:Nr.findDOMNode(this);u&&fE(u)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Mr&&this.setState({status:mi})},r.performEnter=function(i){var a=this,u=this.props.enter,l=this.context?this.context.isMounting:i,f=this.props.nodeRef?[l]:[Nr.findDOMNode(this),l],p=f[0],b=f[1],_=this.getTimeouts(),T=l?_.appear:_.enter;if(!i&&!u||Id.disabled){this.safeSetState({status:ho},function(){a.props.onEntered(p)});return}this.props.onEnter(p,b),this.safeSetState({status:Ar},function(){a.props.onEntering(p,b),a.onTransitionEnd(T,function(){a.safeSetState({status:ho},function(){a.props.onEntered(p,b)})})})},r.performExit=function(){var i=this,a=this.props.exit,u=this.getTimeouts(),l=this.props.nodeRef?void 0:Nr.findDOMNode(this);if(!a||Id.disabled){this.safeSetState({status:Mr},function(){i.props.onExited(l)});return}this.props.onExit(l),this.safeSetState({status:Tl},function(){i.props.onExiting(l),i.onTransitionEnd(u.exit,function(){i.safeSetState({status:Mr},function(){i.props.onExited(l)})})})},r.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},r.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},r.setNextCallback=function(i){var a=this,u=!0;return this.nextCallback=function(l){u&&(u=!1,a.nextCallback=null,i(l))},this.nextCallback.cancel=function(){u=!1},this.nextCallback},r.onTransitionEnd=function(i,a){this.setNextCallback(a);var u=this.props.nodeRef?this.props.nodeRef.current:Nr.findDOMNode(this),l=i==null&&!this.props.addEndListener;if(!u||l){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var f=this.props.nodeRef?[this.nextCallback]:[u,this.nextCallback],p=f[0],b=f[1];this.props.addEndListener(p,b)}i!=null&&setTimeout(this.nextCallback,i)},r.render=function(){var i=this.state.status;if(i===mi)return null;var a=this.props,u=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var l=xm(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return _e.createElement(Za.Provider,{value:null},typeof u=="function"?u(i,l):_e.cloneElement(_e.Children.only(u),l))},n}(_e.Component);Dn.contextType=Za;Dn.propTypes=process.env.NODE_ENV!=="production"?{nodeRef:g.shape({current:typeof Element>"u"?g.any:function(e,n,r,i,a,u){var l=e[n];return g.instanceOf(l&&"ownerDocument"in l?l.ownerDocument.defaultView.Element:Element)(e,n,r,i,a,u)}}),children:g.oneOfType([g.func.isRequired,g.element.isRequired]).isRequired,in:g.bool,mountOnEnter:g.bool,unmountOnExit:g.bool,appear:g.bool,enter:g.bool,exit:g.bool,timeout:function(e){var n=cE;e.addEndListener||(n=n.isRequired);for(var r=arguments.length,i=new Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];return n.apply(void 0,[e].concat(i))},addEndListener:g.func,onEnter:g.func,onEntering:g.func,onEntered:g.func,onExit:g.func,onExiting:g.func,onExited:g.func}:{};function po(){}Dn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:po,onEntering:po,onEntered:po,onExit:po,onExiting:po,onExited:po};Dn.UNMOUNTED=mi;Dn.EXITED=Mr;Dn.ENTERING=Ar;Dn.ENTERED=ho;Dn.EXITING=Tl;function pE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ql(e,n){var r=function(a){return n&&_e.isValidElement(a)?n(a):a},i=Object.create(null);return e&&_e.Children.map(e,function(a){return a}).forEach(function(a){i[a.key]=r(a)}),i}function dE(e,n){e=e||{},n=n||{};function r(_){return _ in n?n[_]:e[_]}var i=Object.create(null),a=[];for(var u in e)u in n?a.length&&(i[u]=a,a=[]):a.push(u);var l,f={};for(var p in n){if(i[p])for(l=0;l<i[p].length;l++){var b=i[p][l];f[i[p][l]]=r(b)}f[p]=r(p)}for(l=0;l<a.length;l++)f[a[l]]=r(a[l]);return f}function Ir(e,n,r){return r[n]!=null?r[n]:e.props[n]}function hE(e,n){return ql(e.children,function(r){return _e.cloneElement(r,{onExited:n.bind(null,r),in:!0,appear:Ir(r,"appear",e),enter:Ir(r,"enter",e),exit:Ir(r,"exit",e)})})}function mE(e,n,r){var i=ql(e.children),a=dE(n,i);return Object.keys(a).forEach(function(u){var l=a[u];if(_e.isValidElement(l)){var f=u in n,p=u in i,b=n[u],_=_e.isValidElement(b)&&!b.props.in;p&&(!f||_)?a[u]=_e.cloneElement(l,{onExited:r.bind(null,l),in:!0,exit:Ir(l,"exit",e),enter:Ir(l,"enter",e)}):!p&&f&&!_?a[u]=_e.cloneElement(l,{in:!1}):p&&f&&_e.isValidElement(b)&&(a[u]=_e.cloneElement(l,{onExited:r.bind(null,l),in:b.props.in,exit:Ir(l,"exit",e),enter:Ir(l,"enter",e)}))}}),a}var gE=Object.values||function(e){return Object.keys(e).map(function(n){return e[n]})},yE={component:"div",childFactory:function(e){return e}},Yl=function(e){_m(n,e);function n(i,a){var u;u=e.call(this,i,a)||this;var l=u.handleExited.bind(pE(u));return u.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},u}var r=n.prototype;return r.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},r.componentWillUnmount=function(){this.mounted=!1},n.getDerivedStateFromProps=function(i,a){var u=a.children,l=a.handleExited,f=a.firstRender;return{children:f?hE(i,l):mE(i,u,l),firstRender:!1}},r.handleExited=function(i,a){var u=ql(this.props.children);i.key in u||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(l){var f=Cl({},l.children);return delete f[i.key],{children:f}}))},r.render=function(){var i=this.props,a=i.component,u=i.childFactory,l=xm(i,["component","childFactory"]),f=this.state.contextValue,p=gE(this.state.children).map(u);return delete l.appear,delete l.enter,delete l.exit,a===null?_e.createElement(Za.Provider,{value:f},p):_e.createElement(Za.Provider,{value:f},_e.createElement(a,l,p))},n}(_e.Component);Yl.propTypes=process.env.NODE_ENV!=="production"?{component:g.any,children:g.node,appear:g.bool,enter:g.bool,exit:g.bool,childFactory:g.func}:{};Yl.defaultProps=yE;function Es(e,n){return process.env.NODE_ENV==="production"?()=>null:function(...r){return e(...r)||n(...r)}}function vE(e){const{prototype:n={}}=e;return!!n.isReactComponent}function Om(e,n,r,i,a){const u=e[n],l=a||n;if(u==null||typeof window>"u")return null;let f;const p=u.type;return typeof p=="function"&&!vE(p)&&(f="Did you accidentally use a plain function component for an element instead?"),f!==void 0?new Error(`Invalid ${i} \`${l}\` supplied to \`${r}\`. Expected an element that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const Cs=Es(g.element,Om);Cs.isRequired=Es(g.element.isRequired,Om);function Rs(e){var n;return parseInt(re.version,10)>=19?((n=e==null?void 0:e.props)==null?void 0:n.ref)||null:(e==null?void 0:e.ref)||null}const Em=e=>e.scrollTop;function Qa(e,n){const{timeout:r,easing:i,style:a={}}=e;return{duration:a.transitionDuration??(typeof r=="number"?r:r[n.mode]||0),easing:a.transitionTimingFunction??(typeof i=="object"?i[n.mode]:i),delay:a.transitionDelay}}const bE={entering:{transform:"none"},entered:{transform:"none"}},Cm=re.forwardRef(function(e,n){const r=_s(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:u=!0,children:l,easing:f,in:p,onEnter:b,onEntered:_,onEntering:T,onExit:M,onExited:S,onExiting:O,style:d,timeout:m=i,TransitionComponent:w=Dn,...h}=e,y=re.useRef(null),C=gn(y,Rs(l),n),v=V=>U=>{if(V){const Q=y.current;U===void 0?V(Q):V(Q,U)}},k=v(T),j=v((V,U)=>{Em(V);const Q=Qa({style:d,timeout:m,easing:f},{mode:"enter"});V.style.webkitTransition=r.transitions.create("transform",Q),V.style.transition=r.transitions.create("transform",Q),b&&b(V,U)}),z=v(_),F=v(O),X=v(V=>{const U=Qa({style:d,timeout:m,easing:f},{mode:"exit"});V.style.webkitTransition=r.transitions.create("transform",U),V.style.transition=r.transitions.create("transform",U),M&&M(V)}),Y=v(S),E=V=>{a&&a(y.current,V)};return Pe.jsx(w,{appear:u,in:p,nodeRef:y,onEnter:j,onEntered:z,onEntering:k,onExit:X,onExited:Y,onExiting:F,addEndListener:E,timeout:m,...h,children:(V,{ownerState:U,...Q})=>re.cloneElement(l,{style:{transform:"scale(0)",visibility:V==="exited"&&!p?"hidden":void 0,...bE[V],...d,...l.props.style},ref:C,...Q})})});process.env.NODE_ENV!=="production"&&(Cm.propTypes={addEndListener:g.func,appear:g.bool,children:Cs.isRequired,easing:g.oneOfType([g.shape({enter:g.string,exit:g.string}),g.string]),in:g.bool,onEnter:g.func,onEntered:g.func,onEntering:g.func,onExit:g.func,onExited:g.func,onExiting:g.func,style:g.object,timeout:g.oneOfType([g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});const Xl=g.oneOfType([g.func,g.object]);function wE(e){const{prototype:n={}}=e;return!!n.isReactComponent}function SE(e,n,r,i,a){const u=e[n],l=a||n;if(u==null||typeof window>"u")return null;let f;return typeof u=="function"&&!wE(u)&&(f="Did you accidentally provide a plain function component instead?"),f!==void 0?new Error(`Invalid ${i} \`${l}\` supplied to \`${r}\`. Expected an element type that can hold a ref. ${f} For more information see https://mui.com/r/caveat-with-refs-guide`):null}const xE=Es(g.elementType,SE);function es(e){try{return e.matches(":focus-visible")}catch{process.env.NODE_ENV!=="production"&&!window.navigator.userAgent.includes("jsdom")&&console.warn(["MUI: The `:focus-visible` pseudo class is not supported in this browser.","Some components rely on this feature to work properly."].join(`
169
169
  `))}return!1}class ts{constructor(){on(this,"mountEffect",()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())}),this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}static create(){return new ts}static use(){const n=Sm(ts.create).current,[r,i]=re.useState(!1);return n.shouldMount=r,n.setShouldMount=i,re.useEffect(n.mountEffect,[r]),n}mount(){return this.mounted||(this.mounted=OE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...n){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.start(...n)})}stop(...n){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.stop(...n)})}pulsate(...n){this.mount().then(()=>{var r;return(r=this.ref.current)==null?void 0:r.pulsate(...n)})}}function _E(){return ts.use()}function OE(){let e,n;const r=new Promise((i,a)=>{e=i,n=a});return r.resolve=e,r.reject=n,r}function Rm(e){const{className:n,classes:r,pulsate:i=!1,rippleX:a,rippleY:u,rippleSize:l,in:f,onExited:p,timeout:b}=e,[_,T]=re.useState(!1),M=tt(n,r.ripple,r.rippleVisible,i&&r.ripplePulsate),S={width:l,height:l,top:-(l/2)+u,left:-(l/2)+a},O=tt(r.child,_&&r.childLeaving,i&&r.childPulsate);return!f&&!_&&T(!0),re.useEffect(()=>{if(!f&&p!=null){const d=setTimeout(p,b);return()=>{clearTimeout(d)}}},[p,f,b]),Pe.jsx("span",{className:M,style:S,children:Pe.jsx("span",{className:O})})}process.env.NODE_ENV!=="production"&&(Rm.propTypes={classes:g.object.isRequired,className:g.string,in:g.bool,onExited:g.func,pulsate:g.bool,rippleSize:g.number,rippleX:g.number,rippleY:g.number,timeout:g.number.isRequired});const nn=Pn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Pl=550,EE=80,CE=cs.keyframes`
170
170
  0% {
171
171
  transform: scale(0);
@@ -239,16 +239,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${n}Chann
239
239
  animation-iteration-count: infinite;
240
240
  animation-delay: 200ms;
241
241
  }
242
- `,Tm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:u,...l}=r,[f,p]=re.useState([]),b=re.useRef(0),_=re.useRef(null);re.useEffect(()=>{_.current&&(_.current(),_.current=null)},[f]);const T=re.useRef(!1),M=$r(),S=re.useRef(null),O=re.useRef(null),d=re.useCallback(y=>{const{pulsate:C,rippleX:v,rippleY:k,rippleSize:j,cb:z}=y;p(F=>[...F,Pe.jsx(DE,{classes:{ripple:tt(a.ripple,nn.ripple),rippleVisible:tt(a.rippleVisible,nn.rippleVisible),ripplePulsate:tt(a.ripplePulsate,nn.ripplePulsate),child:tt(a.child,nn.child),childLeaving:tt(a.childLeaving,nn.childLeaving),childPulsate:tt(a.childPulsate,nn.childPulsate)},timeout:Pl,pulsate:C,rippleX:v,rippleY:k,rippleSize:j},b.current)]),b.current+=1,_.current=z},[a]),m=re.useCallback((y={},C={},v=()=>{})=>{const{pulsate:k=!1,center:j=i||C.pulsate,fakeElement:z=!1}=C;if((y==null?void 0:y.type)==="mousedown"&&T.current){T.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(T.current=!0);const F=z?null:O.current,X=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,E,V;if(j||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)Y=Math.round(X.width/2),E=Math.round(X.height/2);else{const{clientX:U,clientY:Q}=y.touches&&y.touches.length>0?y.touches[0]:y;Y=Math.round(U-X.left),E=Math.round(Q-X.top)}if(j)V=Math.sqrt((2*X.width**2+X.height**2)/3),V%2===0&&(V+=1);else{const U=Math.max(Math.abs((F?F.clientWidth:0)-Y),Y)*2+2,Q=Math.max(Math.abs((F?F.clientHeight:0)-E),E)*2+2;V=Math.sqrt(U**2+Q**2)}y!=null&&y.touches?S.current===null&&(S.current=()=>{d({pulsate:k,rippleX:Y,rippleY:E,rippleSize:V,cb:v})},M.start(EE,()=>{S.current&&(S.current(),S.current=null)})):d({pulsate:k,rippleX:Y,rippleY:E,rippleSize:V,cb:v})},[i,d,M]),w=re.useCallback(()=>{m({},{pulsate:!0})},[m]),h=re.useCallback((y,C)=>{if(M.clear(),(y==null?void 0:y.type)==="touchend"&&S.current){S.current(),S.current=null,M.start(0,()=>{h(y,C)});return}S.current=null,p(v=>v.length>0?v.slice(1):v),_.current=C},[M]);return re.useImperativeHandle(n,()=>({pulsate:w,start:m,stop:h}),[w,m,h]),Pe.jsx(PE,{className:tt(nn.root,a.root,u),ref:O,...l,children:Pe.jsx(Yl,{component:null,exit:!0,children:f})})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={center:g.bool,classes:g.object,className:g.string});function jE(e){return Tn("MuiButtonBase",e)}const kE=Pn("MuiButtonBase",["root","disabled","focusVisible"]),ME=e=>{const{disabled:n,focusVisible:r,focusVisibleClassName:i,classes:a}=e,u=gr({root:["root",n&&"disabled",r&&"focusVisible"]},jE,a);return r&&i&&(u.root+=` ${i}`),u},AE=Ot("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:u,className:l,component:f="button",disabled:p=!1,disableRipple:b=!1,disableTouchRipple:_=!1,focusRipple:T=!1,focusVisibleClassName:M,LinkComponent:S="a",onBlur:O,onClick:d,onContextMenu:m,onDragLeave:w,onFocus:h,onFocusVisible:y,onKeyDown:C,onKeyUp:v,onMouseDown:k,onMouseLeave:j,onMouseUp:z,onTouchEnd:F,onTouchMove:X,onTouchStart:Y,tabIndex:E=0,TouchRippleProps:V,touchRippleRef:U,type:Q,...Z}=r,ue=re.useRef(null),ce=_E(),de=gn(ce.ref,U),[G,P]=re.useState(!1);p&&G&&P(!1),re.useImperativeHandle(i,()=>({focusVisible:()=>{P(!0),ue.current.focus()}}),[]);const K=ce.shouldMount&&!b&&!p;re.useEffect(()=>{G&&T&&!b&&ce.pulsate()},[b,T,G,ce]);const se=Fn(ce,"start",k,_),ie=Fn(ce,"stop",m,_),ve=Fn(ce,"stop",w,_),be=Fn(ce,"stop",z,_),N=Fn(ce,"stop",ye=>{G&&ye.preventDefault(),j&&j(ye)},_),A=Fn(ce,"start",Y,_),I=Fn(ce,"stop",F,_),q=Fn(ce,"stop",X,_),ae=Fn(ce,"stop",ye=>{es(ye.target)||P(!1),O&&O(ye)},!1),W=vo(ye=>{ue.current||(ue.current=ye.currentTarget),es(ye.target)&&(P(!0),y&&y(ye)),h&&h(ye)}),pe=()=>{const ye=ue.current;return f&&f!=="button"&&!(ye.tagName==="A"&&ye.href)},he=vo(ye=>{T&&!ye.repeat&&G&&ye.key===" "&&ce.stop(ye,()=>{ce.start(ye)}),ye.target===ye.currentTarget&&pe()&&ye.key===" "&&ye.preventDefault(),C&&C(ye),ye.target===ye.currentTarget&&pe()&&ye.key==="Enter"&&!p&&(ye.preventDefault(),d&&d(ye))}),Oe=vo(ye=>{T&&ye.key===" "&&G&&!ye.defaultPrevented&&ce.stop(ye,()=>{ce.pulsate(ye)}),v&&v(ye),d&&ye.target===ye.currentTarget&&pe()&&ye.key===" "&&!ye.defaultPrevented&&d(ye)});let Ee=f;Ee==="button"&&(Z.href||Z.to)&&(Ee=S);const fe={};Ee==="button"?(fe.type=Q===void 0?"button":Q,fe.disabled=p):(!Z.href&&!Z.to&&(fe.role="button"),p&&(fe["aria-disabled"]=p));const ge=gn(n,ue),Se={...r,centerRipple:a,component:f,disabled:p,disableRipple:b,disableTouchRipple:_,focusRipple:T,tabIndex:E,focusVisible:G},je=ME(Se);return Pe.jsxs(AE,{as:Ee,className:tt(je.root,l),ownerState:Se,onBlur:ae,onClick:d,onContextMenu:ie,onFocus:W,onKeyDown:he,onKeyUp:Oe,onMouseDown:se,onMouseLeave:N,onMouseUp:be,onDragLeave:ve,onTouchEnd:I,onTouchMove:q,onTouchStart:A,ref:ge,tabIndex:p?-1:E,type:Q,...fe,...Z,children:[u,K?Pe.jsx(Tm,{ref:de,center:a,...V}):null]})});function Fn(e,n,r,i=!1){return vo(a=>(r&&r(a),i||e[n](a),!0))}process.env.NODE_ENV!=="production"&&(Pm.propTypes={action:Xl,centerRipple:g.bool,children:g.node,classes:g.object,className:g.string,component:xE,disabled:g.bool,disableRipple:g.bool,disableTouchRipple:g.bool,focusRipple:g.bool,focusVisibleClassName:g.string,href:g.any,LinkComponent:g.elementType,onBlur:g.func,onClick:g.func,onContextMenu:g.func,onDragLeave:g.func,onFocus:g.func,onFocusVisible:g.func,onKeyDown:g.func,onKeyUp:g.func,onMouseDown:g.func,onMouseLeave:g.func,onMouseUp:g.func,onTouchEnd:g.func,onTouchMove:g.func,onTouchStart:g.func,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),tabIndex:g.number,TouchRippleProps:g.object,touchRippleRef:g.oneOfType([g.func,g.shape({current:g.shape({pulsate:g.func.isRequired,start:g.func.isRequired,stop:g.func.isRequired})})]),type:g.oneOfType([g.oneOf(["button","reset","submit"]),g.string])});function NE(e){return Tn("MuiFab",e)}const Ld=Pn("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function zE(e){return typeof e.main=="string"}function $E(e,n=[]){if(!zE(e))return!1;for(const r of n)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function IE(e=[]){return([,n])=>n&&$E(n,e)}const LE=e=>{const{color:n,variant:r,classes:i,size:a}=e,u={root:["root",r,`size${Ht(a)}`,n==="inherit"?"colorInherit":n]},l=gr(u,NE,i);return{...i,...l}},UE=Ot(Pm,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>bm(e)||e==="classes",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,n[r.variant],n[`size${Ht(r.size)}`],r.color==="inherit"&&n.colorInherit,n[Ht(r.size)],n[r.color]]}})(an(({theme:e})=>{var n,r;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Ld.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),an(({theme:e})=>({variants:[...Object.entries(e.palette).filter(IE(["dark","contrastText"])).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].contrastText,backgroundColor:(e.vars||e).palette[n].main,"&:hover":{backgroundColor:(e.vars||e).palette[n].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[n].main}}}}))]})),an(({theme:e})=>({[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Gl=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiFab"}),{children:i,className:a,color:u="default",component:l="button",disabled:f=!1,disableFocusRipple:p=!1,focusVisibleClassName:b,size:_="large",variant:T="circular",...M}=r,S={...r,color:u,component:l,disabled:f,disableFocusRipple:p,size:_,variant:T},O=LE(S);return Pe.jsx(UE,{className:tt(O.root,a),component:l,disabled:f,focusRipple:!p,focusVisibleClassName:tt(O.focusVisible,b),ownerState:S,ref:n,...M,classes:O,children:i})});process.env.NODE_ENV!=="production"&&(Gl.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["default","error","info","inherit","primary","secondary","success","warning"]),g.string]),component:g.elementType,disabled:g.bool,disableFocusRipple:g.bool,disableRipple:g.bool,focusVisibleClassName:g.string,href:g.string,size:g.oneOfType([g.oneOf(["small","medium","large"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["circular","extended"]),g.string])});function BE(e){return Tn("MuiSpeedDial",e)}const Pa=Pn("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function VE(e){return typeof e=="string"}function Dm(e,n,r){return e===void 0||VE(e)?n:{...n,ownerState:{...n.ownerState,...r}}}function jm(e,n,r){return typeof e=="function"?e(n,r):e}function FE(e,n=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!n.includes(i)).forEach(i=>{r[i]=e[i]}),r}function Ud(e){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{n[r]=e[r]}),n}function km(e){const{getSlotProps:n,additionalProps:r,externalSlotProps:i,externalForwardedProps:a,className:u}=e;if(!n){const S=tt(r==null?void 0:r.className,u,a==null?void 0:a.className,i==null?void 0:i.className),O={...r==null?void 0:r.style,...a==null?void 0:a.style,...i==null?void 0:i.style},d={...r,...a,...i};return S.length>0&&(d.className=S),Object.keys(O).length>0&&(d.style=O),{props:d,internalRef:void 0}}const l=FE({...a,...i}),f=Ud(i),p=Ud(a),b=n(l),_=tt(b==null?void 0:b.className,r==null?void 0:r.className,u,a==null?void 0:a.className,i==null?void 0:i.className),T={...b==null?void 0:b.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...i==null?void 0:i.style},M={...b,...r,...p,...f};return _.length>0&&(M.className=_),Object.keys(T).length>0&&(M.style=T),{props:M,internalRef:b.ref}}function En(e,n){const{className:r,elementType:i,ownerState:a,externalForwardedProps:u,internalForwardedProps:l,shouldForwardComponentProp:f=!1,...p}=n,{component:b,slots:_={[e]:void 0},slotProps:T={[e]:void 0},...M}=u,S=_[e]||i,O=jm(T[e],a),{props:{component:d,...m},internalRef:w}=km({className:r,...p,externalForwardedProps:e==="root"?M:void 0,externalSlotProps:O}),h=gn(w,O==null?void 0:O.ref,n.ref),y=e==="root"?d||b:d,C=Dm(S,{...e==="root"&&!b&&!_[e]&&l,...e!=="root"&&!_[e]&&l,...m,...y&&!f&&{as:y},...y&&f&&{component:y},ref:h},a);return[S,C]}const HE=e=>{const{classes:n,open:r,direction:i}=e,a={root:["root",`direction${Ht(i)}`],fab:["fab"],actions:["actions",!r&&"actionsClosed"]};return gr(a,BE,n)};function Jo(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Da=32,ja=16,WE=Ot("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,n[`direction${Ht(r.direction)}`]]}})(an(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${Pa.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:ja+Da}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${Pa.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:ja+Da}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${Pa.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:ja+Da}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${Pa.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:ja+Da}}}]}))),qE=Ot(Gl,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),YE=Ot("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.actions,!r.open&&n.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),XE=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiSpeedDial"}),i=_s(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{ariaLabel:u,FabProps:{ref:l,...f}={},children:p,className:b,direction:_="up",hidden:T=!1,icon:M,onBlur:S,onClose:O,onFocus:d,onKeyDown:m,onMouseEnter:w,onMouseLeave:h,onOpen:y,open:C,openIcon:v,slots:k={},slotProps:j={},TransitionComponent:z,TransitionProps:F,transitionDuration:X=a,...Y}=r,[E,V]=wm({controlled:C,default:!1,name:"SpeedDial",state:"open"}),U={...r,open:E,direction:_},Q=HE(U),Z=$r(),ue=re.useRef(0),ce=re.useRef(),de=re.useRef([]);de.current=[de.current[0]];const G=re.useCallback(fe=>{de.current[0]=fe},[]),P=gn(l,G),K=(fe,ge,Se)=>je=>{de.current[fe+1]=je,ge&&ge(je),Se&&Se(je)},se=fe=>{m&&m(fe);const ge=fe.key.replace("Arrow","").toLowerCase(),{current:Se=ge}=ce;if(fe.key==="Escape"){V(!1),de.current[0].focus(),O&&O(fe,"escapeKeyDown");return}if(Jo(ge)===Jo(Se)&&Jo(ge)!==void 0){fe.preventDefault();const je=ge===Se?1:-1,ye=lE(ue.current+je,0,de.current.length-1);de.current[ye].focus(),ue.current=ye,ce.current=Se}};re.useEffect(()=>{E||(ue.current=0,ce.current=void 0)},[E]);const ie=fe=>{fe.type==="mouseleave"&&h&&h(fe),fe.type==="blur"&&S&&S(fe),Z.clear(),fe.type==="blur"?Z.start(0,()=>{V(!1),O&&O(fe,"blur")}):(V(!1),O&&O(fe,"mouseLeave"))},ve=fe=>{f.onClick&&f.onClick(fe),Z.clear(),E?(V(!1),O&&O(fe,"toggle")):(V(!0),y&&y(fe,"toggle"))},be=fe=>{fe.type==="mouseenter"&&w&&w(fe),fe.type==="focus"&&d&&d(fe),Z.clear(),E||Z.start(0,()=>{V(!0),y&&y(fe,{focus:"focus",mouseenter:"mouseEnter"}[fe.type])})},N=u.replace(/^[^a-z]+|[^\w:.-]+/gi,""),A=re.Children.toArray(p).filter(fe=>(process.env.NODE_ENV!=="production"&&Fr.isFragment(fe)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
243
- `)),re.isValidElement(fe))),I=A.map((fe,ge)=>{const{FabProps:{ref:Se}={},slotProps:je={},tooltipPlacement:ye}=fe.props,{fab:{ref:yt,...Fe}={},...jn}=je,qt=ye||(Jo(_)==="vertical"?"left":"top");return re.cloneElement(fe,{slotProps:{fab:{...Fe,ref:K(ge,Se,yt)},...jn},delay:30*(E?ge:A.length-ge),open:E,tooltipPlacement:qt,id:`${N}-action-${ge}`})}),q={transition:z,...k},ae={transition:F,...j},W={slots:q,slotProps:ae},[pe,he]=En("root",{elementType:WE,externalForwardedProps:{...W,...Y},ownerState:U,ref:n,className:tt(Q.root,b),additionalProps:{role:"presentation"},getSlotProps:fe=>({...fe,onKeyDown:ge=>{var Se;(Se=fe.onKeyDown)==null||Se.call(fe,ge),se(ge)},onBlur:ge=>{var Se;(Se=fe.onBlur)==null||Se.call(fe,ge),ie(ge)},onFocus:ge=>{var Se;(Se=fe.onFocus)==null||Se.call(fe,ge),be(ge)},onMouseEnter:ge=>{var Se;(Se=fe.onMouseEnter)==null||Se.call(fe,ge),be(ge)},onMouseLeave:ge=>{var Se;(Se=fe.onMouseLeave)==null||Se.call(fe,ge),ie(ge)}})}),[Oe,Ee]=En("transition",{elementType:Cm,externalForwardedProps:W,ownerState:U});return Pe.jsxs(pe,{...he,children:[Pe.jsx(Oe,{in:!T,timeout:X,unmountOnExit:!0,...Ee,children:Pe.jsx(qE,{color:"primary","aria-label":u,"aria-haspopup":"true","aria-expanded":E,"aria-controls":`${N}-actions`,...f,onClick:ve,className:tt(Q.fab,f.className),ref:P,ownerState:U,children:re.isValidElement(M)&&GO(M,["SpeedDialIcon"])?re.cloneElement(M,{open:E}):M})}),Pe.jsx(YE,{id:`${N}-actions`,role:"menu","aria-orientation":Jo(_),className:tt(Q.actions,!E&&Q.actionsClosed),ownerState:U,children:I})]})});process.env.NODE_ENV!=="production"&&(XE.propTypes={ariaLabel:g.string.isRequired,children:g.node,classes:g.object,className:g.string,direction:g.oneOf(["down","left","right","up"]),FabProps:g.object,hidden:g.bool,icon:g.node,onBlur:g.func,onClose:g.func,onFocus:g.func,onKeyDown:g.func,onMouseEnter:g.func,onMouseLeave:g.func,onOpen:g.func,open:g.bool,openIcon:g.node,slotProps:g.shape({root:g.oneOfType([g.func,g.object]),transition:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType,transition:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),TransitionComponent:g.elementType,transitionDuration:g.oneOfType([g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})]),TransitionProps:g.object});const GE=Pt(Pe.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function JE(e){return Tn("MuiSpeedDialIcon",e)}const xn=Pn("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),KE=e=>{const{classes:n,open:r,openIcon:i}=e;return gr({root:["root"],icon:["icon",r&&"iconOpen",i&&r&&"iconWithOpenIconOpen"],openIcon:["openIcon",r&&"openIconOpen"]},JE,n)},ZE=Ot("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[{[`& .${xn.icon}`]:n.icon},{[`& .${xn.icon}`]:r.open&&n.iconOpen},{[`& .${xn.icon}`]:r.open&&r.openIcon&&n.iconWithOpenIconOpen},{[`& .${xn.openIcon}`]:n.openIcon},{[`& .${xn.openIcon}`]:r.open&&n.openIconOpen},n.root]}})(an(({theme:e})=>({height:24,[`& .${xn.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${xn.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:n})=>n.open,style:{[`& .${xn.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:n})=>n.open&&n.openIcon,style:{[`& .${xn.icon}`]:{opacity:0}}},{props:({ownerState:n})=>n.open,style:{[`& .${xn.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),Mm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiSpeedDialIcon"}),{className:i,icon:a,open:u,openIcon:l,...f}=r,p=r,b=KE(p);function _(T,M){return re.isValidElement(T)?re.cloneElement(T,{className:M}):T}return Pe.jsxs(ZE,{className:tt(b.root,i),ref:n,ownerState:p,...f,children:[l?_(l,b.openIcon):null,a?_(a,b.icon):Pe.jsx(GE,{className:b.icon})]})});process.env.NODE_ENV!=="production"&&(Mm.propTypes={classes:g.object,className:g.string,icon:g.node,open:g.bool,openIcon:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});Mm.muiName="SpeedDialIcon";function Dl(e){return`scale(${e}, ${e**2})`}const QE={entering:{opacity:1,transform:Dl(1)},entered:{opacity:1,transform:"none"}},hl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ns=re.forwardRef(function(e,n){const{addEndListener:r,appear:i=!0,children:a,easing:u,in:l,onEnter:f,onEntered:p,onEntering:b,onExit:_,onExited:T,onExiting:M,style:S,timeout:O="auto",TransitionComponent:d=Dn,...m}=e,w=$r(),h=re.useRef(),y=_s(),C=re.useRef(null),v=gn(C,Rs(a),n),k=U=>Q=>{if(U){const Z=C.current;Q===void 0?U(Z):U(Z,Q)}},j=k(b),z=k((U,Q)=>{Em(U);const{duration:Z,delay:ue,easing:ce}=Qa({style:S,timeout:O,easing:u},{mode:"enter"});let de;O==="auto"?(de=y.transitions.getAutoHeightDuration(U.clientHeight),h.current=de):de=Z,U.style.transition=[y.transitions.create("opacity",{duration:de,delay:ue}),y.transitions.create("transform",{duration:hl?de:de*.666,delay:ue,easing:ce})].join(","),f&&f(U,Q)}),F=k(p),X=k(M),Y=k(U=>{const{duration:Q,delay:Z,easing:ue}=Qa({style:S,timeout:O,easing:u},{mode:"exit"});let ce;O==="auto"?(ce=y.transitions.getAutoHeightDuration(U.clientHeight),h.current=ce):ce=Q,U.style.transition=[y.transitions.create("opacity",{duration:ce,delay:Z}),y.transitions.create("transform",{duration:hl?ce:ce*.666,delay:hl?Z:Z||ce*.333,easing:ue})].join(","),U.style.opacity=0,U.style.transform=Dl(.75),_&&_(U)}),E=k(T),V=U=>{O==="auto"&&w.start(h.current||0,U),r&&r(C.current,U)};return Pe.jsx(d,{appear:i,in:l,nodeRef:C,onEnter:z,onEntered:F,onEntering:j,onExit:Y,onExited:E,onExiting:X,addEndListener:V,timeout:O==="auto"?null:O,...m,children:(U,{ownerState:Q,...Z})=>re.cloneElement(a,{style:{opacity:0,transform:Dl(.75),visibility:U==="exited"&&!l?"hidden":void 0,...QE[U],...S,...a.props.style},ref:v,...Z})})});process.env.NODE_ENV!=="production"&&(ns.propTypes={addEndListener:g.func,appear:g.bool,children:Cs.isRequired,easing:g.oneOfType([g.shape({enter:g.string,exit:g.string}),g.string]),in:g.bool,onEnter:g.func,onEntered:g.func,onEntering:g.func,onExit:g.func,onExited:g.func,onExiting:g.func,style:g.object,timeout:g.oneOfType([g.oneOf(["auto"]),g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});ns&&(ns.muiSupportAuto=!0);function Si(e,n,r,i,a){if(process.env.NODE_ENV==="production")return null;const u=e[n],l=a||n;return u==null?null:u&&u.nodeType!==1?new Error(`Invalid ${i} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}var Nt="top",un="bottom",ln="right",zt="left",Jl="auto",Ri=[Nt,un,ln,zt],wo="start",xi="end",eC="clippingParents",Am="viewport",Ko="popper",tC="reference",Bd=Ri.reduce(function(e,n){return e.concat([n+"-"+wo,n+"-"+xi])},[]),Nm=[].concat(Ri,[Jl]).reduce(function(e,n){return e.concat([n,n+"-"+wo,n+"-"+xi])},[]),nC="beforeRead",rC="read",oC="afterRead",iC="beforeMain",aC="main",sC="afterMain",uC="beforeWrite",lC="write",cC="afterWrite",fC=[nC,rC,oC,iC,aC,sC,uC,lC,cC];function Rn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function Wr(e){var n=Wt(e).Element;return e instanceof n||e instanceof Element}function sn(e){var n=Wt(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function Kl(e){if(typeof ShadowRoot>"u")return!1;var n=Wt(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}function pC(e){var n=e.state;Object.keys(n.elements).forEach(function(r){var i=n.styles[r]||{},a=n.attributes[r]||{},u=n.elements[r];!sn(u)||!Rn(u)||(Object.assign(u.style,i),Object.keys(a).forEach(function(l){var f=a[l];f===!1?u.removeAttribute(l):u.setAttribute(l,f===!0?"":f)}))})}function dC(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(i){var a=n.elements[i],u=n.attributes[i]||{},l=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:r[i]),f=l.reduce(function(p,b){return p[b]="",p},{});!sn(a)||!Rn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(p){a.removeAttribute(p)}))})}}const hC={name:"applyStyles",enabled:!0,phase:"write",fn:pC,effect:dC,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var Vr=Math.max,rs=Math.min,So=Math.round;function jl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function zm(){return!/^((?!chrome|android).)*safari/i.test(jl())}function xo(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,u=1;n&&sn(e)&&(a=e.offsetWidth>0&&So(i.width)/e.offsetWidth||1,u=e.offsetHeight>0&&So(i.height)/e.offsetHeight||1);var l=Wr(e)?Wt(e):window,f=l.visualViewport,p=!zm()&&r,b=(i.left+(p&&f?f.offsetLeft:0))/a,_=(i.top+(p&&f?f.offsetTop:0))/u,T=i.width/a,M=i.height/u;return{width:T,height:M,top:_,right:b+T,bottom:_+M,left:b,x:b,y:_}}function Zl(e){var n=xo(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-r)<=1&&(r=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function $m(e,n){var r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&Kl(r)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yn(e){return Wt(e).getComputedStyle(e)}function mC(e){return["table","td","th"].indexOf(Rn(e))>=0}function vr(e){return((Wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ts(e){return Rn(e)==="html"?e:e.assignedSlot||e.parentNode||(Kl(e)?e.host:null)||vr(e)}function Vd(e){return!sn(e)||Yn(e).position==="fixed"?null:e.offsetParent}function gC(e){var n=/firefox/i.test(jl()),r=/Trident/i.test(jl());if(r&&sn(e)){var i=Yn(e);if(i.position==="fixed")return null}var a=Ts(e);for(Kl(a)&&(a=a.host);sn(a)&&["html","body"].indexOf(Rn(a))<0;){var u=Yn(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function Ti(e){for(var n=Wt(e),r=Vd(e);r&&mC(r)&&Yn(r).position==="static";)r=Vd(r);return r&&(Rn(r)==="html"||Rn(r)==="body"&&Yn(r).position==="static")?n:r||gC(e)||n}function Ql(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function mi(e,n,r){return Vr(e,rs(n,r))}function yC(e,n,r){var i=mi(e,n,r);return i>r?r:i}function Im(){return{top:0,right:0,bottom:0,left:0}}function Lm(e){return Object.assign({},Im(),e)}function Um(e,n){return n.reduce(function(r,i){return r[i]=e,r},{})}var vC=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Lm(typeof e!="number"?e:Um(e,Ri))};function bC(e){var n,r=e.state,i=e.name,a=e.options,u=r.elements.arrow,l=r.modifiersData.popperOffsets,f=Cn(r.placement),p=Ql(f),b=[zt,ln].indexOf(f)>=0,_=b?"height":"width";if(!(!u||!l)){var T=vC(a.padding,r),M=Zl(u),S=p==="y"?Nt:zt,O=p==="y"?un:ln,d=r.rects.reference[_]+r.rects.reference[p]-l[p]-r.rects.popper[_],m=l[p]-r.rects.reference[p],w=Ti(u),h=w?p==="y"?w.clientHeight||0:w.clientWidth||0:0,y=d/2-m/2,C=T[S],v=h-M[_]-T[O],k=h/2-M[_]/2+y,j=mi(C,k,v),z=p;r.modifiersData[i]=(n={},n[z]=j,n.centerOffset=j-k,n)}}function wC(e){var n=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=n.elements.popper.querySelector(a),!a)||$m(n.elements.popper,a)&&(n.elements.arrow=a))}const SC={name:"arrow",enabled:!0,phase:"main",fn:bC,effect:wC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _o(e){return e.split("-")[1]}var xC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _C(e,n){var r=e.x,i=e.y,a=n.devicePixelRatio||1;return{x:So(r*a)/a||0,y:So(i*a)/a||0}}function Fd(e){var n,r=e.popper,i=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,p=e.gpuAcceleration,b=e.adaptive,_=e.roundOffsets,T=e.isFixed,M=l.x,S=M===void 0?0:M,O=l.y,d=O===void 0?0:O,m=typeof _=="function"?_({x:S,y:d}):{x:S,y:d};S=m.x,d=m.y;var w=l.hasOwnProperty("x"),h=l.hasOwnProperty("y"),y=zt,C=Nt,v=window;if(b){var k=Ti(r),j="clientHeight",z="clientWidth";if(k===Wt(r)&&(k=vr(r),Yn(k).position!=="static"&&f==="absolute"&&(j="scrollHeight",z="scrollWidth")),k=k,a===Nt||(a===zt||a===ln)&&u===xi){C=un;var F=T&&k===v&&v.visualViewport?v.visualViewport.height:k[j];d-=F-i.height,d*=p?1:-1}if(a===zt||(a===Nt||a===un)&&u===xi){y=ln;var X=T&&k===v&&v.visualViewport?v.visualViewport.width:k[z];S-=X-i.width,S*=p?1:-1}}var Y=Object.assign({position:f},b&&xC),E=_===!0?_C({x:S,y:d},Wt(r)):{x:S,y:d};if(S=E.x,d=E.y,p){var V;return Object.assign({},Y,(V={},V[C]=h?"0":"",V[y]=w?"0":"",V.transform=(v.devicePixelRatio||1)<=1?"translate("+S+"px, "+d+"px)":"translate3d("+S+"px, "+d+"px, 0)",V))}return Object.assign({},Y,(n={},n[C]=h?d+"px":"",n[y]=w?S+"px":"",n.transform="",n))}function OC(e){var n=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,u=r.adaptive,l=u===void 0?!0:u,f=r.roundOffsets,p=f===void 0?!0:f,b={placement:Cn(n.placement),variation:_o(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Fd(Object.assign({},b,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:l,roundOffsets:p})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Fd(Object.assign({},b,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const EC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:OC,data:{}};var ka={passive:!0};function CC(e){var n=e.state,r=e.instance,i=e.options,a=i.scroll,u=a===void 0?!0:a,l=i.resize,f=l===void 0?!0:l,p=Wt(n.elements.popper),b=[].concat(n.scrollParents.reference,n.scrollParents.popper);return u&&b.forEach(function(_){_.addEventListener("scroll",r.update,ka)}),f&&p.addEventListener("resize",r.update,ka),function(){u&&b.forEach(function(_){_.removeEventListener("scroll",r.update,ka)}),f&&p.removeEventListener("resize",r.update,ka)}}const RC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CC,data:{}};var TC={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(n){return TC[n]})}var PC={start:"end",end:"start"};function Hd(e){return e.replace(/start|end/g,function(n){return PC[n]})}function ec(e){var n=Wt(e),r=n.pageXOffset,i=n.pageYOffset;return{scrollLeft:r,scrollTop:i}}function tc(e){return xo(vr(e)).left+ec(e).scrollLeft}function DC(e,n){var r=Wt(e),i=vr(e),a=r.visualViewport,u=i.clientWidth,l=i.clientHeight,f=0,p=0;if(a){u=a.width,l=a.height;var b=zm();(b||!b&&n==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:u,height:l,x:f+tc(e),y:p}}function jC(e){var n,r=vr(e),i=ec(e),a=(n=e.ownerDocument)==null?void 0:n.body,u=Vr(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Vr(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-i.scrollLeft+tc(e),p=-i.scrollTop;return Yn(a||r).direction==="rtl"&&(f+=Vr(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:p}}function nc(e){var n=Yn(e),r=n.overflow,i=n.overflowX,a=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Bm(e){return["html","body","#document"].indexOf(Rn(e))>=0?e.ownerDocument.body:sn(e)&&nc(e)?e:Bm(Ts(e))}function gi(e,n){var r;n===void 0&&(n=[]);var i=Bm(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),u=Wt(i),l=a?[u].concat(u.visualViewport||[],nc(i)?i:[]):i,f=n.concat(l);return a?f:f.concat(gi(Ts(l)))}function kl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kC(e,n){var r=xo(e,!1,n==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Wd(e,n,r){return n===Am?kl(DC(e,r)):Wr(n)?kC(n,r):kl(jC(vr(e)))}function MC(e){var n=gi(Ts(e)),r=["absolute","fixed"].indexOf(Yn(e).position)>=0,i=r&&sn(e)?Ti(e):e;return Wr(i)?n.filter(function(a){return Wr(a)&&$m(a,i)&&Rn(a)!=="body"}):[]}function AC(e,n,r,i){var a=n==="clippingParents"?MC(e):[].concat(n),u=[].concat(a,[r]),l=u[0],f=u.reduce(function(p,b){var _=Wd(e,b,i);return p.top=Vr(_.top,p.top),p.right=rs(_.right,p.right),p.bottom=rs(_.bottom,p.bottom),p.left=Vr(_.left,p.left),p},Wd(e,l,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Vm(e){var n=e.reference,r=e.element,i=e.placement,a=i?Cn(i):null,u=i?_o(i):null,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,p;switch(a){case Nt:p={x:l,y:n.y-r.height};break;case un:p={x:l,y:n.y+n.height};break;case ln:p={x:n.x+n.width,y:f};break;case zt:p={x:n.x-r.width,y:f};break;default:p={x:n.x,y:n.y}}var b=a?Ql(a):null;if(b!=null){var _=b==="y"?"height":"width";switch(u){case wo:p[b]=p[b]-(n[_]/2-r[_]/2);break;case xi:p[b]=p[b]+(n[_]/2-r[_]/2);break}}return p}function _i(e,n){n===void 0&&(n={});var r=n,i=r.placement,a=i===void 0?e.placement:i,u=r.strategy,l=u===void 0?e.strategy:u,f=r.boundary,p=f===void 0?eC:f,b=r.rootBoundary,_=b===void 0?Am:b,T=r.elementContext,M=T===void 0?Ko:T,S=r.altBoundary,O=S===void 0?!1:S,d=r.padding,m=d===void 0?0:d,w=Lm(typeof m!="number"?m:Um(m,Ri)),h=M===Ko?tC:Ko,y=e.rects.popper,C=e.elements[O?h:M],v=AC(Wr(C)?C:C.contextElement||vr(e.elements.popper),p,_,l),k=xo(e.elements.reference),j=Vm({reference:k,element:y,placement:a}),z=kl(Object.assign({},y,j)),F=M===Ko?z:k,X={top:v.top-F.top+w.top,bottom:F.bottom-v.bottom+w.bottom,left:v.left-F.left+w.left,right:F.right-v.right+w.right},Y=e.modifiersData.offset;if(M===Ko&&Y){var E=Y[a];Object.keys(X).forEach(function(V){var U=[ln,un].indexOf(V)>=0?1:-1,Q=[Nt,un].indexOf(V)>=0?"y":"x";X[V]+=E[Q]*U})}return X}function NC(e,n){n===void 0&&(n={});var r=n,i=r.placement,a=r.boundary,u=r.rootBoundary,l=r.padding,f=r.flipVariations,p=r.allowedAutoPlacements,b=p===void 0?Nm:p,_=_o(i),T=_?f?Bd:Bd.filter(function(O){return _o(O)===_}):Ri,M=T.filter(function(O){return b.indexOf(O)>=0});M.length===0&&(M=T);var S=M.reduce(function(O,d){return O[d]=_i(e,{placement:d,boundary:a,rootBoundary:u,padding:l})[Cn(d)],O},{});return Object.keys(S).sort(function(O,d){return S[O]-S[d]})}function zC(e){if(Cn(e)===Jl)return[];var n=Wa(e);return[Hd(e),n,Hd(n)]}function $C(e){var n=e.state,r=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var a=r.mainAxis,u=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!0:l,p=r.fallbackPlacements,b=r.padding,_=r.boundary,T=r.rootBoundary,M=r.altBoundary,S=r.flipVariations,O=S===void 0?!0:S,d=r.allowedAutoPlacements,m=n.options.placement,w=Cn(m),h=w===m,y=p||(h||!O?[Wa(m)]:zC(m)),C=[m].concat(y).reduce(function(ie,ve){return ie.concat(Cn(ve)===Jl?NC(n,{placement:ve,boundary:_,rootBoundary:T,padding:b,flipVariations:O,allowedAutoPlacements:d}):ve)},[]),v=n.rects.reference,k=n.rects.popper,j=new Map,z=!0,F=C[0],X=0;X<C.length;X++){var Y=C[X],E=Cn(Y),V=_o(Y)===wo,U=[Nt,un].indexOf(E)>=0,Q=U?"width":"height",Z=_i(n,{placement:Y,boundary:_,rootBoundary:T,altBoundary:M,padding:b}),ue=U?V?ln:zt:V?un:Nt;v[Q]>k[Q]&&(ue=Wa(ue));var ce=Wa(ue),de=[];if(u&&de.push(Z[E]<=0),f&&de.push(Z[ue]<=0,Z[ce]<=0),de.every(function(ie){return ie})){F=Y,z=!1;break}j.set(Y,de)}if(z)for(var G=O?3:1,P=function(ie){var ve=C.find(function(be){var N=j.get(be);if(N)return N.slice(0,ie).every(function(A){return A})});if(ve)return F=ve,"break"},K=G;K>0;K--){var se=P(K);if(se==="break")break}n.placement!==F&&(n.modifiersData[i]._skip=!0,n.placement=F,n.reset=!0)}}const IC={name:"flip",enabled:!0,phase:"main",fn:$C,requiresIfExists:["offset"],data:{_skip:!1}};function qd(e,n,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-n.height-r.y,right:e.right-n.width+r.x,bottom:e.bottom-n.height+r.y,left:e.left-n.width-r.x}}function Yd(e){return[Nt,ln,un,zt].some(function(n){return e[n]>=0})}function LC(e){var n=e.state,r=e.name,i=n.rects.reference,a=n.rects.popper,u=n.modifiersData.preventOverflow,l=_i(n,{elementContext:"reference"}),f=_i(n,{altBoundary:!0}),p=qd(l,i),b=qd(f,a,u),_=Yd(p),T=Yd(b);n.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:b,isReferenceHidden:_,hasPopperEscaped:T},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":T})}const UC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LC};function BC(e,n,r){var i=Cn(e),a=[zt,Nt].indexOf(i)>=0?-1:1,u=typeof r=="function"?r(Object.assign({},n,{placement:e})):r,l=u[0],f=u[1];return l=l||0,f=(f||0)*a,[zt,ln].indexOf(i)>=0?{x:f,y:l}:{x:l,y:f}}function VC(e){var n=e.state,r=e.options,i=e.name,a=r.offset,u=a===void 0?[0,0]:a,l=Nm.reduce(function(_,T){return _[T]=BC(T,n.rects,u),_},{}),f=l[n.placement],p=f.x,b=f.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=p,n.modifiersData.popperOffsets.y+=b),n.modifiersData[i]=l}const FC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VC};function HC(e){var n=e.state,r=e.name;n.modifiersData[r]=Vm({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const WC={name:"popperOffsets",enabled:!0,phase:"read",fn:HC,data:{}};function qC(e){return e==="x"?"y":"x"}function YC(e){var n=e.state,r=e.options,i=e.name,a=r.mainAxis,u=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!1:l,p=r.boundary,b=r.rootBoundary,_=r.altBoundary,T=r.padding,M=r.tether,S=M===void 0?!0:M,O=r.tetherOffset,d=O===void 0?0:O,m=_i(n,{boundary:p,rootBoundary:b,padding:T,altBoundary:_}),w=Cn(n.placement),h=_o(n.placement),y=!h,C=Ql(w),v=qC(C),k=n.modifiersData.popperOffsets,j=n.rects.reference,z=n.rects.popper,F=typeof d=="function"?d(Object.assign({},n.rects,{placement:n.placement})):d,X=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),Y=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,E={x:0,y:0};if(k){if(u){var V,U=C==="y"?Nt:zt,Q=C==="y"?un:ln,Z=C==="y"?"height":"width",ue=k[C],ce=ue+m[U],de=ue-m[Q],G=S?-z[Z]/2:0,P=h===wo?j[Z]:z[Z],K=h===wo?-z[Z]:-j[Z],se=n.elements.arrow,ie=S&&se?Zl(se):{width:0,height:0},ve=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Im(),be=ve[U],N=ve[Q],A=mi(0,j[Z],ie[Z]),I=y?j[Z]/2-G-A-be-X.mainAxis:P-A-be-X.mainAxis,q=y?-j[Z]/2+G+A+N+X.mainAxis:K+A+N+X.mainAxis,ae=n.elements.arrow&&Ti(n.elements.arrow),W=ae?C==="y"?ae.clientTop||0:ae.clientLeft||0:0,pe=(V=Y==null?void 0:Y[C])!=null?V:0,he=ue+I-pe-W,Oe=ue+q-pe,Ee=mi(S?rs(ce,he):ce,ue,S?Vr(de,Oe):de);k[C]=Ee,E[C]=Ee-ue}if(f){var fe,ge=C==="x"?Nt:zt,Se=C==="x"?un:ln,je=k[v],ye=v==="y"?"height":"width",yt=je+m[ge],Fe=je-m[Se],jn=[Nt,zt].indexOf(w)!==-1,qt=(fe=Y==null?void 0:Y[v])!=null?fe:0,Jn=jn?yt:je-j[ye]-z[ye]-qt+X.altAxis,yn=jn?je+j[ye]+z[ye]-qt-X.altAxis:Fe,Et=S&&jn?yC(Jn,je,yn):mi(S?Jn:yt,je,S?yn:Fe);k[v]=Et,E[v]=Et-je}n.modifiersData[i]=E}}const XC={name:"preventOverflow",enabled:!0,phase:"main",fn:YC,requiresIfExists:["offset"]};function GC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JC(e){return e===Wt(e)||!sn(e)?ec(e):GC(e)}function KC(e){var n=e.getBoundingClientRect(),r=So(n.width)/e.offsetWidth||1,i=So(n.height)/e.offsetHeight||1;return r!==1||i!==1}function ZC(e,n,r){r===void 0&&(r=!1);var i=sn(n),a=sn(n)&&KC(n),u=vr(n),l=xo(e,a,r),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!r)&&((Rn(n)!=="body"||nc(u))&&(f=JC(n)),sn(n)?(p=xo(n,!0),p.x+=n.clientLeft,p.y+=n.clientTop):u&&(p.x=tc(u))),{x:l.left+f.scrollLeft-p.x,y:l.top+f.scrollTop-p.y,width:l.width,height:l.height}}function QC(e){var n=new Map,r=new Set,i=[];e.forEach(function(u){n.set(u.name,u)});function a(u){r.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(f){if(!r.has(f)){var p=n.get(f);p&&a(p)}}),i.push(u)}return e.forEach(function(u){r.has(u.name)||a(u)}),i}function eR(e){var n=QC(e);return fC.reduce(function(r,i){return r.concat(n.filter(function(a){return a.phase===i}))},[])}function tR(e){var n;return function(){return n||(n=new Promise(function(r){Promise.resolve().then(function(){n=void 0,r(e())})})),n}}function nR(e){var n=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(n).map(function(r){return n[r]})}var Xd={placement:"bottom",modifiers:[],strategy:"absolute"};function Gd(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return!n.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function rR(e){e===void 0&&(e={});var n=e,r=n.defaultModifiers,i=r===void 0?[]:r,a=n.defaultOptions,u=a===void 0?Xd:a;return function(l,f,p){p===void 0&&(p=u);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xd,u),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},_=[],T=!1,M={state:b,setOptions:function(d){var m=typeof d=="function"?d(b.options):d;O(),b.options=Object.assign({},u,b.options,m),b.scrollParents={reference:Wr(l)?gi(l):l.contextElement?gi(l.contextElement):[],popper:gi(f)};var w=eR(nR([].concat(i,b.options.modifiers)));return b.orderedModifiers=w.filter(function(h){return h.enabled}),S(),M.update()},forceUpdate:function(){if(!T){var d=b.elements,m=d.reference,w=d.popper;if(Gd(m,w)){b.rects={reference:ZC(m,Ti(w),b.options.strategy==="fixed"),popper:Zl(w)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(z){return b.modifiersData[z.name]=Object.assign({},z.data)});for(var h=0;h<b.orderedModifiers.length;h++){if(b.reset===!0){b.reset=!1,h=-1;continue}var y=b.orderedModifiers[h],C=y.fn,v=y.options,k=v===void 0?{}:v,j=y.name;typeof C=="function"&&(b=C({state:b,options:k,name:j,instance:M})||b)}}}},update:tR(function(){return new Promise(function(d){M.forceUpdate(),d(b)})}),destroy:function(){O(),T=!0}};if(!Gd(l,f))return M;M.setOptions(p).then(function(d){!T&&p.onFirstUpdate&&p.onFirstUpdate(d)});function S(){b.orderedModifiers.forEach(function(d){var m=d.name,w=d.options,h=w===void 0?{}:w,y=d.effect;if(typeof y=="function"){var C=y({state:b,name:m,instance:M,options:h}),v=function(){};_.push(C||v)}})}function O(){_.forEach(function(d){return d()}),_=[]}return M}}var oR=[RC,WC,EC,hC,FC,IC,XC,SC,UC],iR=rR({defaultModifiers:oR});function aR(e){var n;const{elementType:r,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:u=!1,...l}=e,f=u?{}:jm(i,a),{props:p,internalRef:b}=km({...l,externalSlotProps:f}),_=gn(b,f==null?void 0:f.ref,(n=e.additionalProps)==null?void 0:n.ref);return Dm(r,{...p,ref:_},a)}const sR="exact-prop: ​";function uR(e){return process.env.NODE_ENV==="production"?e:{...e,[sR]:n=>{const r=Object.keys(n).filter(i=>!e.hasOwnProperty(i));return r.length>0?new Error(`The following props are not supported: ${r.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}function lR(e){return typeof e=="function"?e():e}const os=re.forwardRef(function(e,n){const{children:r,container:i,disablePortal:a=!1}=e,[u,l]=re.useState(null),f=gn(re.isValidElement(r)?Rs(r):null,n);if(bi(()=>{a||l(lR(i)||document.body)},[i,a]),bi(()=>{if(u&&!a)return Ad(n,u),()=>{Ad(n,null)}},[n,u,a]),a){if(re.isValidElement(r)){const p={ref:f};return re.cloneElement(r,p)}return r}return u&&Fx.createPortal(r,u)});process.env.NODE_ENV!=="production"&&(os.propTypes={children:g.node,container:g.oneOfType([Si,g.func]),disablePortal:g.bool});process.env.NODE_ENV!=="production"&&(os.propTypes=uR(os.propTypes));function cR(e){return Tn("MuiPopper",e)}Pn("MuiPopper",["root"]);function fR(e,n){if(n==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function is(e){return typeof e=="function"?e():e}function Ps(e){return e.nodeType!==void 0}function pR(e){return!Ps(e)}const dR=e=>{const{classes:n}=e;return gr({root:["root"]},cR,n)},hR={},mR=re.forwardRef(function(e,n){const{anchorEl:r,children:i,direction:a,disablePortal:u,modifiers:l,open:f,placement:p,popperOptions:b,popperRef:_,slotProps:T={},slots:M={},TransitionProps:S,ownerState:O,...d}=e,m=re.useRef(null),w=gn(m,n),h=re.useRef(null),y=gn(h,_),C=re.useRef(y);bi(()=>{C.current=y},[y]),re.useImperativeHandle(_,()=>h.current,[]);const v=fR(p,a),[k,j]=re.useState(v),[z,F]=re.useState(is(r));re.useEffect(()=>{h.current&&h.current.forceUpdate()}),re.useEffect(()=>{r&&F(is(r))},[r]),bi(()=>{if(!z||!f)return;const U=ue=>{j(ue.placement)};if(process.env.NODE_ENV!=="production"&&z&&Ps(z)&&z.nodeType===1){const ue=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ue.top===0&&ue.left===0&&ue.right===0&&ue.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
244
- `))}let Q=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ue})=>{U(ue)}}];l!=null&&(Q=Q.concat(l)),b&&b.modifiers!=null&&(Q=Q.concat(b.modifiers));const Z=iR(z,m.current,{placement:v,...b,modifiers:Q});return C.current(Z),()=>{Z.destroy(),C.current(null)}},[z,u,l,f,b,v]);const X={placement:k};S!==null&&(X.TransitionProps=S);const Y=dR(e),E=M.root??"div",V=aR({elementType:E,externalSlotProps:T.root,externalForwardedProps:d,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:Y.root});return Pe.jsx(E,{...V,children:typeof i=="function"?i(X):i})}),Fm=re.forwardRef(function(e,n){const{anchorEl:r,children:i,container:a,direction:u="ltr",disablePortal:l=!1,keepMounted:f=!1,modifiers:p,open:b,placement:_="bottom",popperOptions:T=hR,popperRef:M,style:S,transition:O=!1,slotProps:d={},slots:m={},...w}=e,[h,y]=re.useState(!0),C=()=>{y(!1)},v=()=>{y(!0)};if(!f&&!b&&(!O||h))return null;let k;if(a)k=a;else if(r){const F=is(r);k=F&&Ps(F)?Md(F).body:Md(null).body}const j=!b&&f&&(!O||h)?"none":void 0,z=O?{in:b,onEnter:C,onExited:v}:void 0;return Pe.jsx(os,{disablePortal:l,container:k,children:Pe.jsx(mR,{anchorEl:r,direction:u,disablePortal:l,modifiers:p,ref:n,open:O?!h:b,placement:_,popperOptions:T,popperRef:M,slotProps:d,slots:m,...w,style:{position:"fixed",top:0,left:0,display:j,...S},TransitionProps:z,children:i})})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={anchorEl:Es(g.oneOfType([Si,g.object,g.func]),e=>{if(e.open){const n=is(e.anchorEl);if(n&&Ps(n)&&n.nodeType===1){const r=n.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
242
+ `,Tm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:u,...l}=r,[f,p]=re.useState([]),b=re.useRef(0),_=re.useRef(null);re.useEffect(()=>{_.current&&(_.current(),_.current=null)},[f]);const T=re.useRef(!1),M=$r(),S=re.useRef(null),O=re.useRef(null),d=re.useCallback(y=>{const{pulsate:C,rippleX:v,rippleY:k,rippleSize:j,cb:z}=y;p(F=>[...F,Pe.jsx(DE,{classes:{ripple:tt(a.ripple,nn.ripple),rippleVisible:tt(a.rippleVisible,nn.rippleVisible),ripplePulsate:tt(a.ripplePulsate,nn.ripplePulsate),child:tt(a.child,nn.child),childLeaving:tt(a.childLeaving,nn.childLeaving),childPulsate:tt(a.childPulsate,nn.childPulsate)},timeout:Pl,pulsate:C,rippleX:v,rippleY:k,rippleSize:j},b.current)]),b.current+=1,_.current=z},[a]),m=re.useCallback((y={},C={},v=()=>{})=>{const{pulsate:k=!1,center:j=i||C.pulsate,fakeElement:z=!1}=C;if((y==null?void 0:y.type)==="mousedown"&&T.current){T.current=!1;return}(y==null?void 0:y.type)==="touchstart"&&(T.current=!0);const F=z?null:O.current,X=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let Y,E,V;if(j||y===void 0||y.clientX===0&&y.clientY===0||!y.clientX&&!y.touches)Y=Math.round(X.width/2),E=Math.round(X.height/2);else{const{clientX:U,clientY:Q}=y.touches&&y.touches.length>0?y.touches[0]:y;Y=Math.round(U-X.left),E=Math.round(Q-X.top)}if(j)V=Math.sqrt((2*X.width**2+X.height**2)/3),V%2===0&&(V+=1);else{const U=Math.max(Math.abs((F?F.clientWidth:0)-Y),Y)*2+2,Q=Math.max(Math.abs((F?F.clientHeight:0)-E),E)*2+2;V=Math.sqrt(U**2+Q**2)}y!=null&&y.touches?S.current===null&&(S.current=()=>{d({pulsate:k,rippleX:Y,rippleY:E,rippleSize:V,cb:v})},M.start(EE,()=>{S.current&&(S.current(),S.current=null)})):d({pulsate:k,rippleX:Y,rippleY:E,rippleSize:V,cb:v})},[i,d,M]),w=re.useCallback(()=>{m({},{pulsate:!0})},[m]),h=re.useCallback((y,C)=>{if(M.clear(),(y==null?void 0:y.type)==="touchend"&&S.current){S.current(),S.current=null,M.start(0,()=>{h(y,C)});return}S.current=null,p(v=>v.length>0?v.slice(1):v),_.current=C},[M]);return re.useImperativeHandle(n,()=>({pulsate:w,start:m,stop:h}),[w,m,h]),Pe.jsx(PE,{className:tt(nn.root,a.root,u),ref:O,...l,children:Pe.jsx(Yl,{component:null,exit:!0,children:f})})});process.env.NODE_ENV!=="production"&&(Tm.propTypes={center:g.bool,classes:g.object,className:g.string});function jE(e){return Tn("MuiButtonBase",e)}const kE=Pn("MuiButtonBase",["root","disabled","focusVisible"]),ME=e=>{const{disabled:n,focusVisible:r,focusVisibleClassName:i,classes:a}=e,u=gr({root:["root",n&&"disabled",r&&"focusVisible"]},jE,a);return r&&i&&(u.root+=` ${i}`),u},AE=Ot("button",{name:"MuiButtonBase",slot:"Root"})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${kE.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Pm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:u,className:l,component:f="button",disabled:p=!1,disableRipple:b=!1,disableTouchRipple:_=!1,focusRipple:T=!1,focusVisibleClassName:M,LinkComponent:S="a",onBlur:O,onClick:d,onContextMenu:m,onDragLeave:w,onFocus:h,onFocusVisible:y,onKeyDown:C,onKeyUp:v,onMouseDown:k,onMouseLeave:j,onMouseUp:z,onTouchEnd:F,onTouchMove:X,onTouchStart:Y,tabIndex:E=0,TouchRippleProps:V,touchRippleRef:U,type:Q,...Z}=r,ue=re.useRef(null),ce=_E(),de=gn(ce.ref,U),[G,P]=re.useState(!1);p&&G&&P(!1),re.useImperativeHandle(i,()=>({focusVisible:()=>{P(!0),ue.current.focus()}}),[]);const K=ce.shouldMount&&!b&&!p;re.useEffect(()=>{G&&T&&!b&&ce.pulsate()},[b,T,G,ce]);const se=Fn(ce,"start",k,_),ie=Fn(ce,"stop",m,_),ve=Fn(ce,"stop",w,_),be=Fn(ce,"stop",z,_),N=Fn(ce,"stop",ye=>{G&&ye.preventDefault(),j&&j(ye)},_),A=Fn(ce,"start",Y,_),I=Fn(ce,"stop",F,_),q=Fn(ce,"stop",X,_),ae=Fn(ce,"stop",ye=>{es(ye.target)||P(!1),O&&O(ye)},!1),W=vo(ye=>{ue.current||(ue.current=ye.currentTarget),es(ye.target)&&(P(!0),y&&y(ye)),h&&h(ye)}),pe=()=>{const ye=ue.current;return f&&f!=="button"&&!(ye.tagName==="A"&&ye.href)},he=vo(ye=>{T&&!ye.repeat&&G&&ye.key===" "&&ce.stop(ye,()=>{ce.start(ye)}),ye.target===ye.currentTarget&&pe()&&ye.key===" "&&ye.preventDefault(),C&&C(ye),ye.target===ye.currentTarget&&pe()&&ye.key==="Enter"&&!p&&(ye.preventDefault(),d&&d(ye))}),Oe=vo(ye=>{T&&ye.key===" "&&G&&!ye.defaultPrevented&&ce.stop(ye,()=>{ce.pulsate(ye)}),v&&v(ye),d&&ye.target===ye.currentTarget&&pe()&&ye.key===" "&&!ye.defaultPrevented&&d(ye)});let Ee=f;Ee==="button"&&(Z.href||Z.to)&&(Ee=S);const fe={};Ee==="button"?(fe.type=Q===void 0?"button":Q,fe.disabled=p):(!Z.href&&!Z.to&&(fe.role="button"),p&&(fe["aria-disabled"]=p));const ge=gn(n,ue),Se={...r,centerRipple:a,component:f,disabled:p,disableRipple:b,disableTouchRipple:_,focusRipple:T,tabIndex:E,focusVisible:G},je=ME(Se);return Pe.jsxs(AE,{as:Ee,className:tt(je.root,l),ownerState:Se,onBlur:ae,onClick:d,onContextMenu:ie,onFocus:W,onKeyDown:he,onKeyUp:Oe,onMouseDown:se,onMouseLeave:N,onMouseUp:be,onDragLeave:ve,onTouchEnd:I,onTouchMove:q,onTouchStart:A,ref:ge,tabIndex:p?-1:E,type:Q,...fe,...Z,children:[u,K?Pe.jsx(Tm,{ref:de,center:a,...V}):null]})});function Fn(e,n,r,i=!1){return vo(a=>(r&&r(a),i||e[n](a),!0))}process.env.NODE_ENV!=="production"&&(Pm.propTypes={action:Xl,centerRipple:g.bool,children:g.node,classes:g.object,className:g.string,component:xE,disabled:g.bool,disableRipple:g.bool,disableTouchRipple:g.bool,focusRipple:g.bool,focusVisibleClassName:g.string,href:g.any,LinkComponent:g.elementType,onBlur:g.func,onClick:g.func,onContextMenu:g.func,onDragLeave:g.func,onFocus:g.func,onFocusVisible:g.func,onKeyDown:g.func,onKeyUp:g.func,onMouseDown:g.func,onMouseLeave:g.func,onMouseUp:g.func,onTouchEnd:g.func,onTouchMove:g.func,onTouchStart:g.func,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),tabIndex:g.number,TouchRippleProps:g.object,touchRippleRef:g.oneOfType([g.func,g.shape({current:g.shape({pulsate:g.func.isRequired,start:g.func.isRequired,stop:g.func.isRequired})})]),type:g.oneOfType([g.oneOf(["button","reset","submit"]),g.string])});function NE(e){return Tn("MuiFab",e)}const Ld=Pn("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);function zE(e){return typeof e.main=="string"}function $E(e,n=[]){if(!zE(e))return!1;for(const r of n)if(!e.hasOwnProperty(r)||typeof e[r]!="string")return!1;return!0}function IE(e=[]){return([,n])=>n&&$E(n,e)}const LE=e=>{const{color:n,variant:r,classes:i,size:a}=e,u={root:["root",r,`size${Ht(a)}`,n==="inherit"?"colorInherit":n]},l=gr(u,NE,i);return{...i,...l}},UE=Ot(Pm,{name:"MuiFab",slot:"Root",shouldForwardProp:e=>bm(e)||e==="classes",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,n[r.variant],n[`size${Ht(r.size)}`],r.color==="inherit"&&n.colorInherit,n[Ht(r.size)],n[r.color]]}})(an(({theme:e})=>{var n,r;return{...e.typography.button,minHeight:36,transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(e.vars||e).zIndex.fab,boxShadow:(e.vars||e).shadows[6],"&:active":{boxShadow:(e.vars||e).shadows[12]},color:e.vars?e.vars.palette.grey[900]:(r=(n=e.palette).getContrastText)==null?void 0:r.call(n,e.palette.grey[300]),backgroundColor:(e.vars||e).palette.grey[300],"&:hover":{backgroundColor:(e.vars||e).palette.grey.A100,"@media (hover: none)":{backgroundColor:(e.vars||e).palette.grey[300]},textDecoration:"none"},[`&.${Ld.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},variants:[{props:{size:"small"},style:{width:40,height:40}},{props:{size:"medium"},style:{width:48,height:48}},{props:{variant:"extended"},style:{borderRadius:48/2,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48}},{props:{variant:"extended",size:"small"},style:{width:"auto",padding:"0 8px",borderRadius:34/2,minWidth:34,height:34}},{props:{variant:"extended",size:"medium"},style:{width:"auto",padding:"0 16px",borderRadius:40/2,minWidth:40,height:40}},{props:{color:"inherit"},style:{color:"inherit"}}]}}),an(({theme:e})=>({variants:[...Object.entries(e.palette).filter(IE(["dark","contrastText"])).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].contrastText,backgroundColor:(e.vars||e).palette[n].main,"&:hover":{backgroundColor:(e.vars||e).palette[n].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[n].main}}}}))]})),an(({theme:e})=>({[`&.${Ld.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}))),Gl=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiFab"}),{children:i,className:a,color:u="default",component:l="button",disabled:f=!1,disableFocusRipple:p=!1,focusVisibleClassName:b,size:_="large",variant:T="circular",...M}=r,S={...r,color:u,component:l,disabled:f,disableFocusRipple:p,size:_,variant:T},O=LE(S);return Pe.jsx(UE,{className:tt(O.root,a),component:l,disabled:f,focusRipple:!p,focusVisibleClassName:tt(O.focusVisible,b),ownerState:S,ref:n,...M,classes:O,children:i})});process.env.NODE_ENV!=="production"&&(Gl.propTypes={children:g.node,classes:g.object,className:g.string,color:g.oneOfType([g.oneOf(["default","error","info","inherit","primary","secondary","success","warning"]),g.string]),component:g.elementType,disabled:g.bool,disableFocusRipple:g.bool,disableRipple:g.bool,focusVisibleClassName:g.string,href:g.string,size:g.oneOfType([g.oneOf(["small","medium","large"]),g.string]),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),variant:g.oneOfType([g.oneOf(["circular","extended"]),g.string])});function BE(e){return Tn("MuiSpeedDial",e)}const Pa=Pn("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);function VE(e){return typeof e=="string"}function Dm(e,n,r){return e===void 0||VE(e)?n:{...n,ownerState:{...n.ownerState,...r}}}function jm(e,n,r){return typeof e=="function"?e(n,r):e}function FE(e,n=[]){if(e===void 0)return{};const r={};return Object.keys(e).filter(i=>i.match(/^on[A-Z]/)&&typeof e[i]=="function"&&!n.includes(i)).forEach(i=>{r[i]=e[i]}),r}function Ud(e){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>!(r.match(/^on[A-Z]/)&&typeof e[r]=="function")).forEach(r=>{n[r]=e[r]}),n}function km(e){const{getSlotProps:n,additionalProps:r,externalSlotProps:i,externalForwardedProps:a,className:u}=e;if(!n){const S=tt(r==null?void 0:r.className,u,a==null?void 0:a.className,i==null?void 0:i.className),O={...r==null?void 0:r.style,...a==null?void 0:a.style,...i==null?void 0:i.style},d={...r,...a,...i};return S.length>0&&(d.className=S),Object.keys(O).length>0&&(d.style=O),{props:d,internalRef:void 0}}const l=FE({...a,...i}),f=Ud(i),p=Ud(a),b=n(l),_=tt(b==null?void 0:b.className,r==null?void 0:r.className,u,a==null?void 0:a.className,i==null?void 0:i.className),T={...b==null?void 0:b.style,...r==null?void 0:r.style,...a==null?void 0:a.style,...i==null?void 0:i.style},M={...b,...r,...p,...f};return _.length>0&&(M.className=_),Object.keys(T).length>0&&(M.style=T),{props:M,internalRef:b.ref}}function En(e,n){const{className:r,elementType:i,ownerState:a,externalForwardedProps:u,internalForwardedProps:l,shouldForwardComponentProp:f=!1,...p}=n,{component:b,slots:_={[e]:void 0},slotProps:T={[e]:void 0},...M}=u,S=_[e]||i,O=jm(T[e],a),{props:{component:d,...m},internalRef:w}=km({className:r,...p,externalForwardedProps:e==="root"?M:void 0,externalSlotProps:O}),h=gn(w,O==null?void 0:O.ref,n.ref),y=e==="root"?d||b:d,C=Dm(S,{...e==="root"&&!b&&!_[e]&&l,...e!=="root"&&!_[e]&&l,...m,...y&&!f&&{as:y},...y&&f&&{component:y},ref:h},a);return[S,C]}const HE=e=>{const{classes:n,open:r,direction:i}=e,a={root:["root",`direction${Ht(i)}`],fab:["fab"],actions:["actions",!r&&"actionsClosed"]};return gr(a,BE,n)};function Zo(e){if(e==="up"||e==="down")return"vertical";if(e==="right"||e==="left")return"horizontal"}const Da=32,ja=16,WE=Ot("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.root,n[`direction${Ht(r.direction)}`]]}})(an(({theme:e})=>({zIndex:(e.vars||e).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none",variants:[{props:{direction:"up"},style:{flexDirection:"column-reverse",[`& .${Pa.actions}`]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:ja+Da}}},{props:{direction:"down"},style:{flexDirection:"column",[`& .${Pa.actions}`]:{flexDirection:"column",marginTop:-32,paddingTop:ja+Da}}},{props:{direction:"left"},style:{flexDirection:"row-reverse",[`& .${Pa.actions}`]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:ja+Da}}},{props:{direction:"right"},style:{flexDirection:"row",[`& .${Pa.actions}`]:{flexDirection:"row",marginLeft:-32,paddingLeft:ja+Da}}}]}))),qE=Ot(Gl,{name:"MuiSpeedDial",slot:"Fab"})({pointerEvents:"auto"}),YE=Ot("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.actions,!r.open&&n.actionsClosed]}})({display:"flex",pointerEvents:"auto",variants:[{props:({ownerState:e})=>!e.open,style:{transition:"top 0s linear 0.2s",pointerEvents:"none"}}]}),XE=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiSpeedDial"}),i=_s(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{ariaLabel:u,FabProps:{ref:l,...f}={},children:p,className:b,direction:_="up",hidden:T=!1,icon:M,onBlur:S,onClose:O,onFocus:d,onKeyDown:m,onMouseEnter:w,onMouseLeave:h,onOpen:y,open:C,openIcon:v,slots:k={},slotProps:j={},TransitionComponent:z,TransitionProps:F,transitionDuration:X=a,...Y}=r,[E,V]=wm({controlled:C,default:!1,name:"SpeedDial",state:"open"}),U={...r,open:E,direction:_},Q=HE(U),Z=$r(),ue=re.useRef(0),ce=re.useRef(),de=re.useRef([]);de.current=[de.current[0]];const G=re.useCallback(fe=>{de.current[0]=fe},[]),P=gn(l,G),K=(fe,ge,Se)=>je=>{de.current[fe+1]=je,ge&&ge(je),Se&&Se(je)},se=fe=>{m&&m(fe);const ge=fe.key.replace("Arrow","").toLowerCase(),{current:Se=ge}=ce;if(fe.key==="Escape"){V(!1),de.current[0].focus(),O&&O(fe,"escapeKeyDown");return}if(Zo(ge)===Zo(Se)&&Zo(ge)!==void 0){fe.preventDefault();const je=ge===Se?1:-1,ye=lE(ue.current+je,0,de.current.length-1);de.current[ye].focus(),ue.current=ye,ce.current=Se}};re.useEffect(()=>{E||(ue.current=0,ce.current=void 0)},[E]);const ie=fe=>{fe.type==="mouseleave"&&h&&h(fe),fe.type==="blur"&&S&&S(fe),Z.clear(),fe.type==="blur"?Z.start(0,()=>{V(!1),O&&O(fe,"blur")}):(V(!1),O&&O(fe,"mouseLeave"))},ve=fe=>{f.onClick&&f.onClick(fe),Z.clear(),E?(V(!1),O&&O(fe,"toggle")):(V(!0),y&&y(fe,"toggle"))},be=fe=>{fe.type==="mouseenter"&&w&&w(fe),fe.type==="focus"&&d&&d(fe),Z.clear(),E||Z.start(0,()=>{V(!0),y&&y(fe,{focus:"focus",mouseenter:"mouseEnter"}[fe.type])})},N=u.replace(/^[^a-z]+|[^\w:.-]+/gi,""),A=re.Children.toArray(p).filter(fe=>(process.env.NODE_ENV!=="production"&&Fr.isFragment(fe)&&console.error(["MUI: The SpeedDial component doesn't accept a Fragment as a child.","Consider providing an array instead."].join(`
243
+ `)),re.isValidElement(fe))),I=A.map((fe,ge)=>{const{FabProps:{ref:Se}={},slotProps:je={},tooltipPlacement:ye}=fe.props,{fab:{ref:yt,...Fe}={},...jn}=je,qt=ye||(Zo(_)==="vertical"?"left":"top");return re.cloneElement(fe,{slotProps:{fab:{...Fe,ref:K(ge,Se,yt)},...jn},delay:30*(E?ge:A.length-ge),open:E,tooltipPlacement:qt,id:`${N}-action-${ge}`})}),q={transition:z,...k},ae={transition:F,...j},W={slots:q,slotProps:ae},[pe,he]=En("root",{elementType:WE,externalForwardedProps:{...W,...Y},ownerState:U,ref:n,className:tt(Q.root,b),additionalProps:{role:"presentation"},getSlotProps:fe=>({...fe,onKeyDown:ge=>{var Se;(Se=fe.onKeyDown)==null||Se.call(fe,ge),se(ge)},onBlur:ge=>{var Se;(Se=fe.onBlur)==null||Se.call(fe,ge),ie(ge)},onFocus:ge=>{var Se;(Se=fe.onFocus)==null||Se.call(fe,ge),be(ge)},onMouseEnter:ge=>{var Se;(Se=fe.onMouseEnter)==null||Se.call(fe,ge),be(ge)},onMouseLeave:ge=>{var Se;(Se=fe.onMouseLeave)==null||Se.call(fe,ge),ie(ge)}})}),[Oe,Ee]=En("transition",{elementType:Cm,externalForwardedProps:W,ownerState:U});return Pe.jsxs(pe,{...he,children:[Pe.jsx(Oe,{in:!T,timeout:X,unmountOnExit:!0,...Ee,children:Pe.jsx(qE,{color:"primary","aria-label":u,"aria-haspopup":"true","aria-expanded":E,"aria-controls":`${N}-actions`,...f,onClick:ve,className:tt(Q.fab,f.className),ref:P,ownerState:U,children:re.isValidElement(M)&&GO(M,["SpeedDialIcon"])?re.cloneElement(M,{open:E}):M})}),Pe.jsx(YE,{id:`${N}-actions`,role:"menu","aria-orientation":Zo(_),className:tt(Q.actions,!E&&Q.actionsClosed),ownerState:U,children:I})]})});process.env.NODE_ENV!=="production"&&(XE.propTypes={ariaLabel:g.string.isRequired,children:g.node,classes:g.object,className:g.string,direction:g.oneOf(["down","left","right","up"]),FabProps:g.object,hidden:g.bool,icon:g.node,onBlur:g.func,onClose:g.func,onFocus:g.func,onKeyDown:g.func,onMouseEnter:g.func,onMouseLeave:g.func,onOpen:g.func,open:g.bool,openIcon:g.node,slotProps:g.shape({root:g.oneOfType([g.func,g.object]),transition:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType,transition:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),TransitionComponent:g.elementType,transitionDuration:g.oneOfType([g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})]),TransitionProps:g.object});const GE=Pt(Pe.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function JE(e){return Tn("MuiSpeedDialIcon",e)}const xn=Pn("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]),KE=e=>{const{classes:n,open:r,openIcon:i}=e;return gr({root:["root"],icon:["icon",r&&"iconOpen",i&&r&&"iconWithOpenIconOpen"],openIcon:["openIcon",r&&"openIconOpen"]},JE,n)},ZE=Ot("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[{[`& .${xn.icon}`]:n.icon},{[`& .${xn.icon}`]:r.open&&n.iconOpen},{[`& .${xn.icon}`]:r.open&&r.openIcon&&n.iconWithOpenIconOpen},{[`& .${xn.openIcon}`]:n.openIcon},{[`& .${xn.openIcon}`]:r.open&&n.openIconOpen},n.root]}})(an(({theme:e})=>({height:24,[`& .${xn.icon}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short})},[`& .${xn.openIcon}`]:{position:"absolute",transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},variants:[{props:({ownerState:n})=>n.open,style:{[`& .${xn.icon}`]:{transform:"rotate(45deg)"}}},{props:({ownerState:n})=>n.open&&n.openIcon,style:{[`& .${xn.icon}`]:{opacity:0}}},{props:({ownerState:n})=>n.open,style:{[`& .${xn.openIcon}`]:{transform:"rotate(0deg)",opacity:1}}}]}))),Mm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiSpeedDialIcon"}),{className:i,icon:a,open:u,openIcon:l,...f}=r,p=r,b=KE(p);function _(T,M){return re.isValidElement(T)?re.cloneElement(T,{className:M}):T}return Pe.jsxs(ZE,{className:tt(b.root,i),ref:n,ownerState:p,...f,children:[l?_(l,b.openIcon):null,a?_(a,b.icon):Pe.jsx(GE,{className:b.icon})]})});process.env.NODE_ENV!=="production"&&(Mm.propTypes={classes:g.object,className:g.string,icon:g.node,open:g.bool,openIcon:g.node,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});Mm.muiName="SpeedDialIcon";function Dl(e){return`scale(${e}, ${e**2})`}const QE={entering:{opacity:1,transform:Dl(1)},entered:{opacity:1,transform:"none"}},hl=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),ns=re.forwardRef(function(e,n){const{addEndListener:r,appear:i=!0,children:a,easing:u,in:l,onEnter:f,onEntered:p,onEntering:b,onExit:_,onExited:T,onExiting:M,style:S,timeout:O="auto",TransitionComponent:d=Dn,...m}=e,w=$r(),h=re.useRef(),y=_s(),C=re.useRef(null),v=gn(C,Rs(a),n),k=U=>Q=>{if(U){const Z=C.current;Q===void 0?U(Z):U(Z,Q)}},j=k(b),z=k((U,Q)=>{Em(U);const{duration:Z,delay:ue,easing:ce}=Qa({style:S,timeout:O,easing:u},{mode:"enter"});let de;O==="auto"?(de=y.transitions.getAutoHeightDuration(U.clientHeight),h.current=de):de=Z,U.style.transition=[y.transitions.create("opacity",{duration:de,delay:ue}),y.transitions.create("transform",{duration:hl?de:de*.666,delay:ue,easing:ce})].join(","),f&&f(U,Q)}),F=k(p),X=k(M),Y=k(U=>{const{duration:Q,delay:Z,easing:ue}=Qa({style:S,timeout:O,easing:u},{mode:"exit"});let ce;O==="auto"?(ce=y.transitions.getAutoHeightDuration(U.clientHeight),h.current=ce):ce=Q,U.style.transition=[y.transitions.create("opacity",{duration:ce,delay:Z}),y.transitions.create("transform",{duration:hl?ce:ce*.666,delay:hl?Z:Z||ce*.333,easing:ue})].join(","),U.style.opacity=0,U.style.transform=Dl(.75),_&&_(U)}),E=k(T),V=U=>{O==="auto"&&w.start(h.current||0,U),r&&r(C.current,U)};return Pe.jsx(d,{appear:i,in:l,nodeRef:C,onEnter:z,onEntered:F,onEntering:j,onExit:Y,onExited:E,onExiting:X,addEndListener:V,timeout:O==="auto"?null:O,...m,children:(U,{ownerState:Q,...Z})=>re.cloneElement(a,{style:{opacity:0,transform:Dl(.75),visibility:U==="exited"&&!l?"hidden":void 0,...QE[U],...S,...a.props.style},ref:v,...Z})})});process.env.NODE_ENV!=="production"&&(ns.propTypes={addEndListener:g.func,appear:g.bool,children:Cs.isRequired,easing:g.oneOfType([g.shape({enter:g.string,exit:g.string}),g.string]),in:g.bool,onEnter:g.func,onEntered:g.func,onEntering:g.func,onExit:g.func,onExited:g.func,onExiting:g.func,style:g.object,timeout:g.oneOfType([g.oneOf(["auto"]),g.number,g.shape({appear:g.number,enter:g.number,exit:g.number})])});ns&&(ns.muiSupportAuto=!0);function _i(e,n,r,i,a){if(process.env.NODE_ENV==="production")return null;const u=e[n],l=a||n;return u==null?null:u&&u.nodeType!==1?new Error(`Invalid ${i} \`${l}\` supplied to \`${r}\`. Expected an HTMLElement.`):null}var Nt="top",un="bottom",ln="right",zt="left",Jl="auto",Pi=[Nt,un,ln,zt],wo="start",Oi="end",eC="clippingParents",Am="viewport",Qo="popper",tC="reference",Bd=Pi.reduce(function(e,n){return e.concat([n+"-"+wo,n+"-"+Oi])},[]),Nm=[].concat(Pi,[Jl]).reduce(function(e,n){return e.concat([n,n+"-"+wo,n+"-"+Oi])},[]),nC="beforeRead",rC="read",oC="afterRead",iC="beforeMain",aC="main",sC="afterMain",uC="beforeWrite",lC="write",cC="afterWrite",fC=[nC,rC,oC,iC,aC,sC,uC,lC,cC];function Rn(e){return e?(e.nodeName||"").toLowerCase():null}function Wt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var n=e.ownerDocument;return n&&n.defaultView||window}return e}function Wr(e){var n=Wt(e).Element;return e instanceof n||e instanceof Element}function sn(e){var n=Wt(e).HTMLElement;return e instanceof n||e instanceof HTMLElement}function Kl(e){if(typeof ShadowRoot>"u")return!1;var n=Wt(e).ShadowRoot;return e instanceof n||e instanceof ShadowRoot}function pC(e){var n=e.state;Object.keys(n.elements).forEach(function(r){var i=n.styles[r]||{},a=n.attributes[r]||{},u=n.elements[r];!sn(u)||!Rn(u)||(Object.assign(u.style,i),Object.keys(a).forEach(function(l){var f=a[l];f===!1?u.removeAttribute(l):u.setAttribute(l,f===!0?"":f)}))})}function dC(e){var n=e.state,r={popper:{position:n.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(n.elements.popper.style,r.popper),n.styles=r,n.elements.arrow&&Object.assign(n.elements.arrow.style,r.arrow),function(){Object.keys(n.elements).forEach(function(i){var a=n.elements[i],u=n.attributes[i]||{},l=Object.keys(n.styles.hasOwnProperty(i)?n.styles[i]:r[i]),f=l.reduce(function(p,b){return p[b]="",p},{});!sn(a)||!Rn(a)||(Object.assign(a.style,f),Object.keys(u).forEach(function(p){a.removeAttribute(p)}))})}}const hC={name:"applyStyles",enabled:!0,phase:"write",fn:pC,effect:dC,requires:["computeStyles"]};function Cn(e){return e.split("-")[0]}var Vr=Math.max,rs=Math.min,So=Math.round;function jl(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(n){return n.brand+"/"+n.version}).join(" "):navigator.userAgent}function zm(){return!/^((?!chrome|android).)*safari/i.test(jl())}function xo(e,n,r){n===void 0&&(n=!1),r===void 0&&(r=!1);var i=e.getBoundingClientRect(),a=1,u=1;n&&sn(e)&&(a=e.offsetWidth>0&&So(i.width)/e.offsetWidth||1,u=e.offsetHeight>0&&So(i.height)/e.offsetHeight||1);var l=Wr(e)?Wt(e):window,f=l.visualViewport,p=!zm()&&r,b=(i.left+(p&&f?f.offsetLeft:0))/a,_=(i.top+(p&&f?f.offsetTop:0))/u,T=i.width/a,M=i.height/u;return{width:T,height:M,top:_,right:b+T,bottom:_+M,left:b,x:b,y:_}}function Zl(e){var n=xo(e),r=e.offsetWidth,i=e.offsetHeight;return Math.abs(n.width-r)<=1&&(r=n.width),Math.abs(n.height-i)<=1&&(i=n.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:i}}function $m(e,n){var r=n.getRootNode&&n.getRootNode();if(e.contains(n))return!0;if(r&&Kl(r)){var i=n;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Yn(e){return Wt(e).getComputedStyle(e)}function mC(e){return["table","td","th"].indexOf(Rn(e))>=0}function vr(e){return((Wr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ts(e){return Rn(e)==="html"?e:e.assignedSlot||e.parentNode||(Kl(e)?e.host:null)||vr(e)}function Vd(e){return!sn(e)||Yn(e).position==="fixed"?null:e.offsetParent}function gC(e){var n=/firefox/i.test(jl()),r=/Trident/i.test(jl());if(r&&sn(e)){var i=Yn(e);if(i.position==="fixed")return null}var a=Ts(e);for(Kl(a)&&(a=a.host);sn(a)&&["html","body"].indexOf(Rn(a))<0;){var u=Yn(a);if(u.transform!=="none"||u.perspective!=="none"||u.contain==="paint"||["transform","perspective"].indexOf(u.willChange)!==-1||n&&u.willChange==="filter"||n&&u.filter&&u.filter!=="none")return a;a=a.parentNode}return null}function Di(e){for(var n=Wt(e),r=Vd(e);r&&mC(r)&&Yn(r).position==="static";)r=Vd(r);return r&&(Rn(r)==="html"||Rn(r)==="body"&&Yn(r).position==="static")?n:r||gC(e)||n}function Ql(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function yi(e,n,r){return Vr(e,rs(n,r))}function yC(e,n,r){var i=yi(e,n,r);return i>r?r:i}function Im(){return{top:0,right:0,bottom:0,left:0}}function Lm(e){return Object.assign({},Im(),e)}function Um(e,n){return n.reduce(function(r,i){return r[i]=e,r},{})}var vC=function(e,n){return e=typeof e=="function"?e(Object.assign({},n.rects,{placement:n.placement})):e,Lm(typeof e!="number"?e:Um(e,Pi))};function bC(e){var n,r=e.state,i=e.name,a=e.options,u=r.elements.arrow,l=r.modifiersData.popperOffsets,f=Cn(r.placement),p=Ql(f),b=[zt,ln].indexOf(f)>=0,_=b?"height":"width";if(!(!u||!l)){var T=vC(a.padding,r),M=Zl(u),S=p==="y"?Nt:zt,O=p==="y"?un:ln,d=r.rects.reference[_]+r.rects.reference[p]-l[p]-r.rects.popper[_],m=l[p]-r.rects.reference[p],w=Di(u),h=w?p==="y"?w.clientHeight||0:w.clientWidth||0:0,y=d/2-m/2,C=T[S],v=h-M[_]-T[O],k=h/2-M[_]/2+y,j=yi(C,k,v),z=p;r.modifiersData[i]=(n={},n[z]=j,n.centerOffset=j-k,n)}}function wC(e){var n=e.state,r=e.options,i=r.element,a=i===void 0?"[data-popper-arrow]":i;a!=null&&(typeof a=="string"&&(a=n.elements.popper.querySelector(a),!a)||$m(n.elements.popper,a)&&(n.elements.arrow=a))}const SC={name:"arrow",enabled:!0,phase:"main",fn:bC,effect:wC,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _o(e){return e.split("-")[1]}var xC={top:"auto",right:"auto",bottom:"auto",left:"auto"};function _C(e,n){var r=e.x,i=e.y,a=n.devicePixelRatio||1;return{x:So(r*a)/a||0,y:So(i*a)/a||0}}function Fd(e){var n,r=e.popper,i=e.popperRect,a=e.placement,u=e.variation,l=e.offsets,f=e.position,p=e.gpuAcceleration,b=e.adaptive,_=e.roundOffsets,T=e.isFixed,M=l.x,S=M===void 0?0:M,O=l.y,d=O===void 0?0:O,m=typeof _=="function"?_({x:S,y:d}):{x:S,y:d};S=m.x,d=m.y;var w=l.hasOwnProperty("x"),h=l.hasOwnProperty("y"),y=zt,C=Nt,v=window;if(b){var k=Di(r),j="clientHeight",z="clientWidth";if(k===Wt(r)&&(k=vr(r),Yn(k).position!=="static"&&f==="absolute"&&(j="scrollHeight",z="scrollWidth")),k=k,a===Nt||(a===zt||a===ln)&&u===Oi){C=un;var F=T&&k===v&&v.visualViewport?v.visualViewport.height:k[j];d-=F-i.height,d*=p?1:-1}if(a===zt||(a===Nt||a===un)&&u===Oi){y=ln;var X=T&&k===v&&v.visualViewport?v.visualViewport.width:k[z];S-=X-i.width,S*=p?1:-1}}var Y=Object.assign({position:f},b&&xC),E=_===!0?_C({x:S,y:d},Wt(r)):{x:S,y:d};if(S=E.x,d=E.y,p){var V;return Object.assign({},Y,(V={},V[C]=h?"0":"",V[y]=w?"0":"",V.transform=(v.devicePixelRatio||1)<=1?"translate("+S+"px, "+d+"px)":"translate3d("+S+"px, "+d+"px, 0)",V))}return Object.assign({},Y,(n={},n[C]=h?d+"px":"",n[y]=w?S+"px":"",n.transform="",n))}function OC(e){var n=e.state,r=e.options,i=r.gpuAcceleration,a=i===void 0?!0:i,u=r.adaptive,l=u===void 0?!0:u,f=r.roundOffsets,p=f===void 0?!0:f,b={placement:Cn(n.placement),variation:_o(n.placement),popper:n.elements.popper,popperRect:n.rects.popper,gpuAcceleration:a,isFixed:n.options.strategy==="fixed"};n.modifiersData.popperOffsets!=null&&(n.styles.popper=Object.assign({},n.styles.popper,Fd(Object.assign({},b,{offsets:n.modifiersData.popperOffsets,position:n.options.strategy,adaptive:l,roundOffsets:p})))),n.modifiersData.arrow!=null&&(n.styles.arrow=Object.assign({},n.styles.arrow,Fd(Object.assign({},b,{offsets:n.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:p})))),n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-placement":n.placement})}const EC={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:OC,data:{}};var ka={passive:!0};function CC(e){var n=e.state,r=e.instance,i=e.options,a=i.scroll,u=a===void 0?!0:a,l=i.resize,f=l===void 0?!0:l,p=Wt(n.elements.popper),b=[].concat(n.scrollParents.reference,n.scrollParents.popper);return u&&b.forEach(function(_){_.addEventListener("scroll",r.update,ka)}),f&&p.addEventListener("resize",r.update,ka),function(){u&&b.forEach(function(_){_.removeEventListener("scroll",r.update,ka)}),f&&p.removeEventListener("resize",r.update,ka)}}const RC={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:CC,data:{}};var TC={left:"right",right:"left",bottom:"top",top:"bottom"};function Wa(e){return e.replace(/left|right|bottom|top/g,function(n){return TC[n]})}var PC={start:"end",end:"start"};function Hd(e){return e.replace(/start|end/g,function(n){return PC[n]})}function ec(e){var n=Wt(e),r=n.pageXOffset,i=n.pageYOffset;return{scrollLeft:r,scrollTop:i}}function tc(e){return xo(vr(e)).left+ec(e).scrollLeft}function DC(e,n){var r=Wt(e),i=vr(e),a=r.visualViewport,u=i.clientWidth,l=i.clientHeight,f=0,p=0;if(a){u=a.width,l=a.height;var b=zm();(b||!b&&n==="fixed")&&(f=a.offsetLeft,p=a.offsetTop)}return{width:u,height:l,x:f+tc(e),y:p}}function jC(e){var n,r=vr(e),i=ec(e),a=(n=e.ownerDocument)==null?void 0:n.body,u=Vr(r.scrollWidth,r.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),l=Vr(r.scrollHeight,r.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),f=-i.scrollLeft+tc(e),p=-i.scrollTop;return Yn(a||r).direction==="rtl"&&(f+=Vr(r.clientWidth,a?a.clientWidth:0)-u),{width:u,height:l,x:f,y:p}}function nc(e){var n=Yn(e),r=n.overflow,i=n.overflowX,a=n.overflowY;return/auto|scroll|overlay|hidden/.test(r+a+i)}function Bm(e){return["html","body","#document"].indexOf(Rn(e))>=0?e.ownerDocument.body:sn(e)&&nc(e)?e:Bm(Ts(e))}function vi(e,n){var r;n===void 0&&(n=[]);var i=Bm(e),a=i===((r=e.ownerDocument)==null?void 0:r.body),u=Wt(i),l=a?[u].concat(u.visualViewport||[],nc(i)?i:[]):i,f=n.concat(l);return a?f:f.concat(vi(Ts(l)))}function kl(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function kC(e,n){var r=xo(e,!1,n==="fixed");return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}function Wd(e,n,r){return n===Am?kl(DC(e,r)):Wr(n)?kC(n,r):kl(jC(vr(e)))}function MC(e){var n=vi(Ts(e)),r=["absolute","fixed"].indexOf(Yn(e).position)>=0,i=r&&sn(e)?Di(e):e;return Wr(i)?n.filter(function(a){return Wr(a)&&$m(a,i)&&Rn(a)!=="body"}):[]}function AC(e,n,r,i){var a=n==="clippingParents"?MC(e):[].concat(n),u=[].concat(a,[r]),l=u[0],f=u.reduce(function(p,b){var _=Wd(e,b,i);return p.top=Vr(_.top,p.top),p.right=rs(_.right,p.right),p.bottom=rs(_.bottom,p.bottom),p.left=Vr(_.left,p.left),p},Wd(e,l,i));return f.width=f.right-f.left,f.height=f.bottom-f.top,f.x=f.left,f.y=f.top,f}function Vm(e){var n=e.reference,r=e.element,i=e.placement,a=i?Cn(i):null,u=i?_o(i):null,l=n.x+n.width/2-r.width/2,f=n.y+n.height/2-r.height/2,p;switch(a){case Nt:p={x:l,y:n.y-r.height};break;case un:p={x:l,y:n.y+n.height};break;case ln:p={x:n.x+n.width,y:f};break;case zt:p={x:n.x-r.width,y:f};break;default:p={x:n.x,y:n.y}}var b=a?Ql(a):null;if(b!=null){var _=b==="y"?"height":"width";switch(u){case wo:p[b]=p[b]-(n[_]/2-r[_]/2);break;case Oi:p[b]=p[b]+(n[_]/2-r[_]/2);break}}return p}function Ei(e,n){n===void 0&&(n={});var r=n,i=r.placement,a=i===void 0?e.placement:i,u=r.strategy,l=u===void 0?e.strategy:u,f=r.boundary,p=f===void 0?eC:f,b=r.rootBoundary,_=b===void 0?Am:b,T=r.elementContext,M=T===void 0?Qo:T,S=r.altBoundary,O=S===void 0?!1:S,d=r.padding,m=d===void 0?0:d,w=Lm(typeof m!="number"?m:Um(m,Pi)),h=M===Qo?tC:Qo,y=e.rects.popper,C=e.elements[O?h:M],v=AC(Wr(C)?C:C.contextElement||vr(e.elements.popper),p,_,l),k=xo(e.elements.reference),j=Vm({reference:k,element:y,placement:a}),z=kl(Object.assign({},y,j)),F=M===Qo?z:k,X={top:v.top-F.top+w.top,bottom:F.bottom-v.bottom+w.bottom,left:v.left-F.left+w.left,right:F.right-v.right+w.right},Y=e.modifiersData.offset;if(M===Qo&&Y){var E=Y[a];Object.keys(X).forEach(function(V){var U=[ln,un].indexOf(V)>=0?1:-1,Q=[Nt,un].indexOf(V)>=0?"y":"x";X[V]+=E[Q]*U})}return X}function NC(e,n){n===void 0&&(n={});var r=n,i=r.placement,a=r.boundary,u=r.rootBoundary,l=r.padding,f=r.flipVariations,p=r.allowedAutoPlacements,b=p===void 0?Nm:p,_=_o(i),T=_?f?Bd:Bd.filter(function(O){return _o(O)===_}):Pi,M=T.filter(function(O){return b.indexOf(O)>=0});M.length===0&&(M=T);var S=M.reduce(function(O,d){return O[d]=Ei(e,{placement:d,boundary:a,rootBoundary:u,padding:l})[Cn(d)],O},{});return Object.keys(S).sort(function(O,d){return S[O]-S[d]})}function zC(e){if(Cn(e)===Jl)return[];var n=Wa(e);return[Hd(e),n,Hd(n)]}function $C(e){var n=e.state,r=e.options,i=e.name;if(!n.modifiersData[i]._skip){for(var a=r.mainAxis,u=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!0:l,p=r.fallbackPlacements,b=r.padding,_=r.boundary,T=r.rootBoundary,M=r.altBoundary,S=r.flipVariations,O=S===void 0?!0:S,d=r.allowedAutoPlacements,m=n.options.placement,w=Cn(m),h=w===m,y=p||(h||!O?[Wa(m)]:zC(m)),C=[m].concat(y).reduce(function(ie,ve){return ie.concat(Cn(ve)===Jl?NC(n,{placement:ve,boundary:_,rootBoundary:T,padding:b,flipVariations:O,allowedAutoPlacements:d}):ve)},[]),v=n.rects.reference,k=n.rects.popper,j=new Map,z=!0,F=C[0],X=0;X<C.length;X++){var Y=C[X],E=Cn(Y),V=_o(Y)===wo,U=[Nt,un].indexOf(E)>=0,Q=U?"width":"height",Z=Ei(n,{placement:Y,boundary:_,rootBoundary:T,altBoundary:M,padding:b}),ue=U?V?ln:zt:V?un:Nt;v[Q]>k[Q]&&(ue=Wa(ue));var ce=Wa(ue),de=[];if(u&&de.push(Z[E]<=0),f&&de.push(Z[ue]<=0,Z[ce]<=0),de.every(function(ie){return ie})){F=Y,z=!1;break}j.set(Y,de)}if(z)for(var G=O?3:1,P=function(ie){var ve=C.find(function(be){var N=j.get(be);if(N)return N.slice(0,ie).every(function(A){return A})});if(ve)return F=ve,"break"},K=G;K>0;K--){var se=P(K);if(se==="break")break}n.placement!==F&&(n.modifiersData[i]._skip=!0,n.placement=F,n.reset=!0)}}const IC={name:"flip",enabled:!0,phase:"main",fn:$C,requiresIfExists:["offset"],data:{_skip:!1}};function qd(e,n,r){return r===void 0&&(r={x:0,y:0}),{top:e.top-n.height-r.y,right:e.right-n.width+r.x,bottom:e.bottom-n.height+r.y,left:e.left-n.width-r.x}}function Yd(e){return[Nt,ln,un,zt].some(function(n){return e[n]>=0})}function LC(e){var n=e.state,r=e.name,i=n.rects.reference,a=n.rects.popper,u=n.modifiersData.preventOverflow,l=Ei(n,{elementContext:"reference"}),f=Ei(n,{altBoundary:!0}),p=qd(l,i),b=qd(f,a,u),_=Yd(p),T=Yd(b);n.modifiersData[r]={referenceClippingOffsets:p,popperEscapeOffsets:b,isReferenceHidden:_,hasPopperEscaped:T},n.attributes.popper=Object.assign({},n.attributes.popper,{"data-popper-reference-hidden":_,"data-popper-escaped":T})}const UC={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:LC};function BC(e,n,r){var i=Cn(e),a=[zt,Nt].indexOf(i)>=0?-1:1,u=typeof r=="function"?r(Object.assign({},n,{placement:e})):r,l=u[0],f=u[1];return l=l||0,f=(f||0)*a,[zt,ln].indexOf(i)>=0?{x:f,y:l}:{x:l,y:f}}function VC(e){var n=e.state,r=e.options,i=e.name,a=r.offset,u=a===void 0?[0,0]:a,l=Nm.reduce(function(_,T){return _[T]=BC(T,n.rects,u),_},{}),f=l[n.placement],p=f.x,b=f.y;n.modifiersData.popperOffsets!=null&&(n.modifiersData.popperOffsets.x+=p,n.modifiersData.popperOffsets.y+=b),n.modifiersData[i]=l}const FC={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:VC};function HC(e){var n=e.state,r=e.name;n.modifiersData[r]=Vm({reference:n.rects.reference,element:n.rects.popper,placement:n.placement})}const WC={name:"popperOffsets",enabled:!0,phase:"read",fn:HC,data:{}};function qC(e){return e==="x"?"y":"x"}function YC(e){var n=e.state,r=e.options,i=e.name,a=r.mainAxis,u=a===void 0?!0:a,l=r.altAxis,f=l===void 0?!1:l,p=r.boundary,b=r.rootBoundary,_=r.altBoundary,T=r.padding,M=r.tether,S=M===void 0?!0:M,O=r.tetherOffset,d=O===void 0?0:O,m=Ei(n,{boundary:p,rootBoundary:b,padding:T,altBoundary:_}),w=Cn(n.placement),h=_o(n.placement),y=!h,C=Ql(w),v=qC(C),k=n.modifiersData.popperOffsets,j=n.rects.reference,z=n.rects.popper,F=typeof d=="function"?d(Object.assign({},n.rects,{placement:n.placement})):d,X=typeof F=="number"?{mainAxis:F,altAxis:F}:Object.assign({mainAxis:0,altAxis:0},F),Y=n.modifiersData.offset?n.modifiersData.offset[n.placement]:null,E={x:0,y:0};if(k){if(u){var V,U=C==="y"?Nt:zt,Q=C==="y"?un:ln,Z=C==="y"?"height":"width",ue=k[C],ce=ue+m[U],de=ue-m[Q],G=S?-z[Z]/2:0,P=h===wo?j[Z]:z[Z],K=h===wo?-z[Z]:-j[Z],se=n.elements.arrow,ie=S&&se?Zl(se):{width:0,height:0},ve=n.modifiersData["arrow#persistent"]?n.modifiersData["arrow#persistent"].padding:Im(),be=ve[U],N=ve[Q],A=yi(0,j[Z],ie[Z]),I=y?j[Z]/2-G-A-be-X.mainAxis:P-A-be-X.mainAxis,q=y?-j[Z]/2+G+A+N+X.mainAxis:K+A+N+X.mainAxis,ae=n.elements.arrow&&Di(n.elements.arrow),W=ae?C==="y"?ae.clientTop||0:ae.clientLeft||0:0,pe=(V=Y==null?void 0:Y[C])!=null?V:0,he=ue+I-pe-W,Oe=ue+q-pe,Ee=yi(S?rs(ce,he):ce,ue,S?Vr(de,Oe):de);k[C]=Ee,E[C]=Ee-ue}if(f){var fe,ge=C==="x"?Nt:zt,Se=C==="x"?un:ln,je=k[v],ye=v==="y"?"height":"width",yt=je+m[ge],Fe=je-m[Se],jn=[Nt,zt].indexOf(w)!==-1,qt=(fe=Y==null?void 0:Y[v])!=null?fe:0,Jn=jn?yt:je-j[ye]-z[ye]-qt+X.altAxis,yn=jn?je+j[ye]+z[ye]-qt-X.altAxis:Fe,Et=S&&jn?yC(Jn,je,yn):yi(S?Jn:yt,je,S?yn:Fe);k[v]=Et,E[v]=Et-je}n.modifiersData[i]=E}}const XC={name:"preventOverflow",enabled:!0,phase:"main",fn:YC,requiresIfExists:["offset"]};function GC(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function JC(e){return e===Wt(e)||!sn(e)?ec(e):GC(e)}function KC(e){var n=e.getBoundingClientRect(),r=So(n.width)/e.offsetWidth||1,i=So(n.height)/e.offsetHeight||1;return r!==1||i!==1}function ZC(e,n,r){r===void 0&&(r=!1);var i=sn(n),a=sn(n)&&KC(n),u=vr(n),l=xo(e,a,r),f={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(i||!i&&!r)&&((Rn(n)!=="body"||nc(u))&&(f=JC(n)),sn(n)?(p=xo(n,!0),p.x+=n.clientLeft,p.y+=n.clientTop):u&&(p.x=tc(u))),{x:l.left+f.scrollLeft-p.x,y:l.top+f.scrollTop-p.y,width:l.width,height:l.height}}function QC(e){var n=new Map,r=new Set,i=[];e.forEach(function(u){n.set(u.name,u)});function a(u){r.add(u.name);var l=[].concat(u.requires||[],u.requiresIfExists||[]);l.forEach(function(f){if(!r.has(f)){var p=n.get(f);p&&a(p)}}),i.push(u)}return e.forEach(function(u){r.has(u.name)||a(u)}),i}function eR(e){var n=QC(e);return fC.reduce(function(r,i){return r.concat(n.filter(function(a){return a.phase===i}))},[])}function tR(e){var n;return function(){return n||(n=new Promise(function(r){Promise.resolve().then(function(){n=void 0,r(e())})})),n}}function nR(e){var n=e.reduce(function(r,i){var a=r[i.name];return r[i.name]=a?Object.assign({},a,i,{options:Object.assign({},a.options,i.options),data:Object.assign({},a.data,i.data)}):i,r},{});return Object.keys(n).map(function(r){return n[r]})}var Xd={placement:"bottom",modifiers:[],strategy:"absolute"};function Gd(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return!n.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function rR(e){e===void 0&&(e={});var n=e,r=n.defaultModifiers,i=r===void 0?[]:r,a=n.defaultOptions,u=a===void 0?Xd:a;return function(l,f,p){p===void 0&&(p=u);var b={placement:"bottom",orderedModifiers:[],options:Object.assign({},Xd,u),modifiersData:{},elements:{reference:l,popper:f},attributes:{},styles:{}},_=[],T=!1,M={state:b,setOptions:function(d){var m=typeof d=="function"?d(b.options):d;O(),b.options=Object.assign({},u,b.options,m),b.scrollParents={reference:Wr(l)?vi(l):l.contextElement?vi(l.contextElement):[],popper:vi(f)};var w=eR(nR([].concat(i,b.options.modifiers)));return b.orderedModifiers=w.filter(function(h){return h.enabled}),S(),M.update()},forceUpdate:function(){if(!T){var d=b.elements,m=d.reference,w=d.popper;if(Gd(m,w)){b.rects={reference:ZC(m,Di(w),b.options.strategy==="fixed"),popper:Zl(w)},b.reset=!1,b.placement=b.options.placement,b.orderedModifiers.forEach(function(z){return b.modifiersData[z.name]=Object.assign({},z.data)});for(var h=0;h<b.orderedModifiers.length;h++){if(b.reset===!0){b.reset=!1,h=-1;continue}var y=b.orderedModifiers[h],C=y.fn,v=y.options,k=v===void 0?{}:v,j=y.name;typeof C=="function"&&(b=C({state:b,options:k,name:j,instance:M})||b)}}}},update:tR(function(){return new Promise(function(d){M.forceUpdate(),d(b)})}),destroy:function(){O(),T=!0}};if(!Gd(l,f))return M;M.setOptions(p).then(function(d){!T&&p.onFirstUpdate&&p.onFirstUpdate(d)});function S(){b.orderedModifiers.forEach(function(d){var m=d.name,w=d.options,h=w===void 0?{}:w,y=d.effect;if(typeof y=="function"){var C=y({state:b,name:m,instance:M,options:h}),v=function(){};_.push(C||v)}})}function O(){_.forEach(function(d){return d()}),_=[]}return M}}var oR=[RC,WC,EC,hC,FC,IC,XC,SC,UC],iR=rR({defaultModifiers:oR});function aR(e){var n;const{elementType:r,externalSlotProps:i,ownerState:a,skipResolvingSlotProps:u=!1,...l}=e,f=u?{}:jm(i,a),{props:p,internalRef:b}=km({...l,externalSlotProps:f}),_=gn(b,f==null?void 0:f.ref,(n=e.additionalProps)==null?void 0:n.ref);return Dm(r,{...p,ref:_},a)}const sR="exact-prop: ​";function uR(e){return process.env.NODE_ENV==="production"?e:{...e,[sR]:n=>{const r=Object.keys(n).filter(i=>!e.hasOwnProperty(i));return r.length>0?new Error(`The following props are not supported: ${r.map(i=>`\`${i}\``).join(", ")}. Please remove them.`):null}}}function lR(e){return typeof e=="function"?e():e}const os=re.forwardRef(function(e,n){const{children:r,container:i,disablePortal:a=!1}=e,[u,l]=re.useState(null),f=gn(re.isValidElement(r)?Rs(r):null,n);if(Si(()=>{a||l(lR(i)||document.body)},[i,a]),Si(()=>{if(u&&!a)return Ad(n,u),()=>{Ad(n,null)}},[n,u,a]),a){if(re.isValidElement(r)){const p={ref:f};return re.cloneElement(r,p)}return r}return u&&Fx.createPortal(r,u)});process.env.NODE_ENV!=="production"&&(os.propTypes={children:g.node,container:g.oneOfType([_i,g.func]),disablePortal:g.bool});process.env.NODE_ENV!=="production"&&(os.propTypes=uR(os.propTypes));function cR(e){return Tn("MuiPopper",e)}Pn("MuiPopper",["root"]);function fR(e,n){if(n==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function is(e){return typeof e=="function"?e():e}function Ps(e){return e.nodeType!==void 0}function pR(e){return!Ps(e)}const dR=e=>{const{classes:n}=e;return gr({root:["root"]},cR,n)},hR={},mR=re.forwardRef(function(e,n){const{anchorEl:r,children:i,direction:a,disablePortal:u,modifiers:l,open:f,placement:p,popperOptions:b,popperRef:_,slotProps:T={},slots:M={},TransitionProps:S,ownerState:O,...d}=e,m=re.useRef(null),w=gn(m,n),h=re.useRef(null),y=gn(h,_),C=re.useRef(y);Si(()=>{C.current=y},[y]),re.useImperativeHandle(_,()=>h.current,[]);const v=fR(p,a),[k,j]=re.useState(v),[z,F]=re.useState(is(r));re.useEffect(()=>{h.current&&h.current.forceUpdate()}),re.useEffect(()=>{r&&F(is(r))},[r]),Si(()=>{if(!z||!f)return;const U=ue=>{j(ue.placement)};if(process.env.NODE_ENV!=="production"&&z&&Ps(z)&&z.nodeType===1){const ue=z.getBoundingClientRect();process.env.NODE_ENV!=="test"&&ue.top===0&&ue.left===0&&ue.right===0&&ue.bottom===0&&console.warn(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
244
+ `))}let Q=[{name:"preventOverflow",options:{altBoundary:u}},{name:"flip",options:{altBoundary:u}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:ue})=>{U(ue)}}];l!=null&&(Q=Q.concat(l)),b&&b.modifiers!=null&&(Q=Q.concat(b.modifiers));const Z=iR(z,m.current,{placement:v,...b,modifiers:Q});return C.current(Z),()=>{Z.destroy(),C.current(null)}},[z,u,l,f,b,v]);const X={placement:k};S!==null&&(X.TransitionProps=S);const Y=dR(e),E=M.root??"div",V=aR({elementType:E,externalSlotProps:T.root,externalForwardedProps:d,additionalProps:{role:"tooltip",ref:w},ownerState:e,className:Y.root});return Pe.jsx(E,{...V,children:typeof i=="function"?i(X):i})}),Fm=re.forwardRef(function(e,n){const{anchorEl:r,children:i,container:a,direction:u="ltr",disablePortal:l=!1,keepMounted:f=!1,modifiers:p,open:b,placement:_="bottom",popperOptions:T=hR,popperRef:M,style:S,transition:O=!1,slotProps:d={},slots:m={},...w}=e,[h,y]=re.useState(!0),C=()=>{y(!1)},v=()=>{y(!0)};if(!f&&!b&&(!O||h))return null;let k;if(a)k=a;else if(r){const F=is(r);k=F&&Ps(F)?Md(F).body:Md(null).body}const j=!b&&f&&(!O||h)?"none":void 0,z=O?{in:b,onEnter:C,onExited:v}:void 0;return Pe.jsx(os,{disablePortal:l,container:k,children:Pe.jsx(mR,{anchorEl:r,direction:u,disablePortal:l,modifiers:p,ref:n,open:O?!h:b,placement:_,popperOptions:T,popperRef:M,slotProps:d,slots:m,...w,style:{position:"fixed",top:0,left:0,display:j,...S},TransitionProps:z,children:i})})});process.env.NODE_ENV!=="production"&&(Fm.propTypes={anchorEl:Es(g.oneOfType([_i,g.object,g.func]),e=>{if(e.open){const n=is(e.anchorEl);if(n&&Ps(n)&&n.nodeType===1){const r=n.getBoundingClientRect();if(process.env.NODE_ENV!=="test"&&r.top===0&&r.left===0&&r.right===0&&r.bottom===0)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","The anchor element should be part of the document layout.","Make sure the element is present in the document or that it's not display none."].join(`
245
245
  `))}else if(!n||typeof n.getBoundingClientRect!="function"||pR(n)&&n.contextElement!=null&&n.contextElement.nodeType!==1)return new Error(["MUI: The `anchorEl` prop provided to the component is invalid.","It should be an HTML element instance or a virtualElement ","(https://popper.js.org/docs/v2/virtual-elements/)."].join(`
246
- `))}return null}),children:g.oneOfType([g.node,g.func]),container:g.oneOfType([Si,g.func]),direction:g.oneOf(["ltr","rtl"]),disablePortal:g.bool,keepMounted:g.bool,modifiers:g.arrayOf(g.shape({data:g.object,effect:g.func,enabled:g.bool,fn:g.func,name:g.any,options:g.object,phase:g.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:g.arrayOf(g.string),requiresIfExists:g.arrayOf(g.string)})),open:g.bool.isRequired,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:g.shape({modifiers:g.array,onFirstUpdate:g.func,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:g.oneOf(["absolute","fixed"])}),popperRef:Xl,slotProps:g.shape({root:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType}),transition:g.bool});const gR=Ot(Fm,{name:"MuiPopper",slot:"Root"})({}),rc=re.forwardRef(function(e,n){const r=lm(),i=Gn({props:e,name:"MuiPopper"}),{anchorEl:a,component:u,components:l,componentsProps:f,container:p,disablePortal:b,keepMounted:_,modifiers:T,open:M,placement:S,popperOptions:O,popperRef:d,transition:m,slots:w,slotProps:h,...y}=i,C=(w==null?void 0:w.root)??(l==null?void 0:l.Root),v={anchorEl:a,container:p,disablePortal:b,keepMounted:_,modifiers:T,open:M,placement:S,popperOptions:O,popperRef:d,transition:m,...y};return Pe.jsx(gR,{as:u,direction:r?"rtl":"ltr",slots:{root:C},slotProps:h??f,...v,ref:n})});process.env.NODE_ENV!=="production"&&(rc.propTypes={anchorEl:g.oneOfType([Si,g.object,g.func]),children:g.oneOfType([g.node,g.func]),component:g.elementType,components:g.shape({Root:g.elementType}),componentsProps:g.shape({root:g.oneOfType([g.func,g.object])}),container:g.oneOfType([Si,g.func]),disablePortal:g.bool,keepMounted:g.bool,modifiers:g.arrayOf(g.shape({data:g.object,effect:g.func,enabled:g.bool,fn:g.func,name:g.any,options:g.object,phase:g.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:g.arrayOf(g.string),requiresIfExists:g.arrayOf(g.string)})),open:g.bool.isRequired,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:g.shape({modifiers:g.array,onFirstUpdate:g.func,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:g.oneOf(["absolute","fixed"])}),popperRef:Xl,slotProps:g.shape({root:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),transition:g.bool});function yR(e){return Tn("MuiTooltip",e)}const ct=Pn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function vR(e){return Math.round(e*1e5)/1e5}const bR=e=>{const{classes:n,disableInteractive:r,arrow:i,touch:a,placement:u}=e,l={popper:["popper",!r&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ht(u.split("-")[0])}`],arrow:["arrow"]};return gr(l,yR,n)},wR=Ot(rc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.popper,!r.disableInteractive&&n.popperInteractive,r.arrow&&n.popperArrow,!r.open&&n.popperClose]}})(an(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:n})=>!n.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:n})=>!n,style:{pointerEvents:"none"}},{props:({ownerState:n})=>n.arrow,style:{[`&[data-popper-placement*="bottom"] .${ct.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ct.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:n})=>n.arrow&&!n.isRtl,style:{[`&[data-popper-placement*="right"] .${ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:n})=>n.arrow&&!!n.isRtl,style:{[`&[data-popper-placement*="right"] .${ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:n})=>n.arrow&&!n.isRtl,style:{[`&[data-popper-placement*="left"] .${ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:n})=>n.arrow&&!!n.isRtl,style:{[`&[data-popper-placement*="left"] .${ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),SR=Ot("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.tooltip,r.touch&&n.touch,r.arrow&&n.tooltipArrow,n[`tooltipPlacement${Ht(r.placement.split("-")[0])}`]]}})(an(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${ct.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ct.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ct.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:n})=>n.arrow,style:{position:"relative",margin:0}},{props:({ownerState:n})=>n.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${vR(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:n})=>!n.isRtl,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:n})=>!n.isRtl&&n.touch,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:n})=>!!n.isRtl,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:n})=>!!n.isRtl&&n.touch,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${ct.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${ct.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),xR=Ot("span",{name:"MuiTooltip",slot:"Arrow"})(an(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ma=!1;const Jd=new Os;let Zo={x:0,y:0};function Aa(e,n){return(r,...i)=>{n&&n(r,...i),e(r,...i)}}const Hm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:u,components:l={},componentsProps:f={},describeChild:p=!1,disableFocusListener:b=!1,disableHoverListener:_=!1,disableInteractive:T=!1,disableTouchListener:M=!1,enterDelay:S=100,enterNextDelay:O=0,enterTouchDelay:d=700,followCursor:m=!1,id:w,leaveDelay:h=0,leaveTouchDelay:y=1500,onClose:C,onOpen:v,open:k,placement:j="bottom",PopperComponent:z,PopperProps:F={},slotProps:X={},slots:Y={},title:E,TransitionComponent:V,TransitionProps:U,...Q}=r,Z=re.isValidElement(a)?a:Pe.jsx("span",{children:a}),ue=_s(),ce=lm(),[de,G]=re.useState(),[P,K]=re.useState(null),se=re.useRef(!1),ie=T||m,ve=$r(),be=$r(),N=$r(),A=$r(),[I,q]=wm({controlled:k,default:!1,name:"Tooltip",state:"open"});let ae=I;if(process.env.NODE_ENV!=="production"){const{current:Me}=re.useRef(k!==void 0);re.useEffect(()=>{de&&de.disabled&&!Me&&E!==""&&de.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
247
- `))},[E,de,Me])}const W=ZO(w),pe=re.useRef(),he=vo(()=>{pe.current!==void 0&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),A.clear()});re.useEffect(()=>he,[he]);const Oe=Me=>{Jd.clear(),Ma=!0,q(!0),v&&!ae&&v(Me)},Ee=vo(Me=>{Jd.start(800+h,()=>{Ma=!1}),q(!1),C&&ae&&C(Me),ve.start(ue.transitions.duration.shortest,()=>{se.current=!1})}),fe=Me=>{se.current&&Me.type!=="touchstart"||(de&&de.removeAttribute("title"),be.clear(),N.clear(),S||Ma&&O?be.start(Ma?O:S,()=>{Oe(Me)}):Oe(Me))},ge=Me=>{be.clear(),N.start(h,()=>{Ee(Me)})},[,Se]=re.useState(!1),je=Me=>{es(Me.target)||(Se(!1),ge(Me))},ye=Me=>{de||G(Me.currentTarget),es(Me.target)&&(Se(!0),fe(Me))},yt=Me=>{se.current=!0;const Dt=Z.props;Dt.onTouchStart&&Dt.onTouchStart(Me)},Fe=Me=>{yt(Me),N.clear(),ve.clear(),he(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",A.start(d,()=>{document.body.style.WebkitUserSelect=pe.current,fe(Me)})},jn=Me=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(Me),he(),N.start(y,()=>{Ee(Me)})};re.useEffect(()=>{if(!ae)return;function Me(Dt){Dt.key==="Escape"&&Ee(Dt)}return document.addEventListener("keydown",Me),()=>{document.removeEventListener("keydown",Me)}},[Ee,ae]);const qt=gn(Rs(Z),G,n);!E&&E!==0&&(ae=!1);const Jn=re.useRef(),yn=Me=>{const Dt=Z.props;Dt.onMouseMove&&Dt.onMouseMove(Me),Zo={x:Me.clientX,y:Me.clientY},Jn.current&&Jn.current.update()},Et={},br=typeof E=="string";p?(Et.title=!ae&&br&&!_?E:null,Et["aria-describedby"]=ae?W:null):(Et["aria-label"]=br?E:null,Et["aria-labelledby"]=ae&&!br?W:null);const St={...Et,...Q,...Z.props,className:tt(Q.className,Z.props.className),onTouchStart:yt,ref:qt,...m?{onMouseMove:yn}:{}};process.env.NODE_ENV!=="production"&&(St["data-mui-internal-clone-element"]=!0,re.useEffect(()=>{de&&!de.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
246
+ `))}return null}),children:g.oneOfType([g.node,g.func]),container:g.oneOfType([_i,g.func]),direction:g.oneOf(["ltr","rtl"]),disablePortal:g.bool,keepMounted:g.bool,modifiers:g.arrayOf(g.shape({data:g.object,effect:g.func,enabled:g.bool,fn:g.func,name:g.any,options:g.object,phase:g.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:g.arrayOf(g.string),requiresIfExists:g.arrayOf(g.string)})),open:g.bool.isRequired,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:g.shape({modifiers:g.array,onFirstUpdate:g.func,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:g.oneOf(["absolute","fixed"])}),popperRef:Xl,slotProps:g.shape({root:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType}),transition:g.bool});const gR=Ot(Fm,{name:"MuiPopper",slot:"Root"})({}),rc=re.forwardRef(function(e,n){const r=lm(),i=Gn({props:e,name:"MuiPopper"}),{anchorEl:a,component:u,components:l,componentsProps:f,container:p,disablePortal:b,keepMounted:_,modifiers:T,open:M,placement:S,popperOptions:O,popperRef:d,transition:m,slots:w,slotProps:h,...y}=i,C=(w==null?void 0:w.root)??(l==null?void 0:l.Root),v={anchorEl:a,container:p,disablePortal:b,keepMounted:_,modifiers:T,open:M,placement:S,popperOptions:O,popperRef:d,transition:m,...y};return Pe.jsx(gR,{as:u,direction:r?"rtl":"ltr",slots:{root:C},slotProps:h??f,...v,ref:n})});process.env.NODE_ENV!=="production"&&(rc.propTypes={anchorEl:g.oneOfType([_i,g.object,g.func]),children:g.oneOfType([g.node,g.func]),component:g.elementType,components:g.shape({Root:g.elementType}),componentsProps:g.shape({root:g.oneOfType([g.func,g.object])}),container:g.oneOfType([_i,g.func]),disablePortal:g.bool,keepMounted:g.bool,modifiers:g.arrayOf(g.shape({data:g.object,effect:g.func,enabled:g.bool,fn:g.func,name:g.any,options:g.object,phase:g.oneOf(["afterMain","afterRead","afterWrite","beforeMain","beforeRead","beforeWrite","main","read","write"]),requires:g.arrayOf(g.string),requiresIfExists:g.arrayOf(g.string)})),open:g.bool.isRequired,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),popperOptions:g.shape({modifiers:g.array,onFirstUpdate:g.func,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),strategy:g.oneOf(["absolute","fixed"])}),popperRef:Xl,slotProps:g.shape({root:g.oneOfType([g.func,g.object])}),slots:g.shape({root:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),transition:g.bool});function yR(e){return Tn("MuiTooltip",e)}const ct=Pn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);function vR(e){return Math.round(e*1e5)/1e5}const bR=e=>{const{classes:n,disableInteractive:r,arrow:i,touch:a,placement:u}=e,l={popper:["popper",!r&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",a&&"touch",`tooltipPlacement${Ht(u.split("-")[0])}`],arrow:["arrow"]};return gr(l,yR,n)},wR=Ot(rc,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.popper,!r.disableInteractive&&n.popperInteractive,r.arrow&&n.popperArrow,!r.open&&n.popperClose]}})(an(({theme:e})=>({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none",variants:[{props:({ownerState:n})=>!n.disableInteractive,style:{pointerEvents:"auto"}},{props:({open:n})=>!n,style:{pointerEvents:"none"}},{props:({ownerState:n})=>n.arrow,style:{[`&[data-popper-placement*="bottom"] .${ct.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${ct.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}},[`&[data-popper-placement*="left"] .${ct.arrow}`]:{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}}}},{props:({ownerState:n})=>n.arrow&&!n.isRtl,style:{[`&[data-popper-placement*="right"] .${ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}},{props:({ownerState:n})=>n.arrow&&!!n.isRtl,style:{[`&[data-popper-placement*="right"] .${ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:n})=>n.arrow&&!n.isRtl,style:{[`&[data-popper-placement*="left"] .${ct.arrow}`]:{right:0,marginRight:"-0.71em"}}},{props:({ownerState:n})=>n.arrow&&!!n.isRtl,style:{[`&[data-popper-placement*="left"] .${ct.arrow}`]:{left:0,marginLeft:"-0.71em"}}}]}))),SR=Ot("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.tooltip,r.touch&&n.touch,r.arrow&&n.tooltipArrow,n[`tooltipPlacement${Ht(r.placement.split("-")[0])}`]]}})(an(({theme:e})=>({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium,[`.${ct.popper}[data-popper-placement*="left"] &`]:{transformOrigin:"right center"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{transformOrigin:"left center"},[`.${ct.popper}[data-popper-placement*="top"] &`]:{transformOrigin:"center bottom",marginBottom:"14px"},[`.${ct.popper}[data-popper-placement*="bottom"] &`]:{transformOrigin:"center top",marginTop:"14px"},variants:[{props:({ownerState:n})=>n.arrow,style:{position:"relative",margin:0}},{props:({ownerState:n})=>n.touch,style:{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${vR(16/14)}em`,fontWeight:e.typography.fontWeightRegular}},{props:({ownerState:n})=>!n.isRtl,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"14px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"14px"}}},{props:({ownerState:n})=>!n.isRtl&&n.touch,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginRight:"24px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginLeft:"24px"}}},{props:({ownerState:n})=>!!n.isRtl,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"14px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"14px"}}},{props:({ownerState:n})=>!!n.isRtl&&n.touch,style:{[`.${ct.popper}[data-popper-placement*="left"] &`]:{marginLeft:"24px"},[`.${ct.popper}[data-popper-placement*="right"] &`]:{marginRight:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${ct.popper}[data-popper-placement*="top"] &`]:{marginBottom:"24px"}}},{props:({ownerState:n})=>n.touch,style:{[`.${ct.popper}[data-popper-placement*="bottom"] &`]:{marginTop:"24px"}}}]}))),xR=Ot("span",{name:"MuiTooltip",slot:"Arrow"})(an(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:e.alpha(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}})));let Ma=!1;const Jd=new Os;let ei={x:0,y:0};function Aa(e,n){return(r,...i)=>{n&&n(r,...i),e(r,...i)}}const Hm=re.forwardRef(function(e,n){const r=Gn({props:e,name:"MuiTooltip"}),{arrow:i=!1,children:a,classes:u,components:l={},componentsProps:f={},describeChild:p=!1,disableFocusListener:b=!1,disableHoverListener:_=!1,disableInteractive:T=!1,disableTouchListener:M=!1,enterDelay:S=100,enterNextDelay:O=0,enterTouchDelay:d=700,followCursor:m=!1,id:w,leaveDelay:h=0,leaveTouchDelay:y=1500,onClose:C,onOpen:v,open:k,placement:j="bottom",PopperComponent:z,PopperProps:F={},slotProps:X={},slots:Y={},title:E,TransitionComponent:V,TransitionProps:U,...Q}=r,Z=re.isValidElement(a)?a:Pe.jsx("span",{children:a}),ue=_s(),ce=lm(),[de,G]=re.useState(),[P,K]=re.useState(null),se=re.useRef(!1),ie=T||m,ve=$r(),be=$r(),N=$r(),A=$r(),[I,q]=wm({controlled:k,default:!1,name:"Tooltip",state:"open"});let ae=I;if(process.env.NODE_ENV!=="production"){const{current:Me}=re.useRef(k!==void 0);re.useEffect(()=>{de&&de.disabled&&!Me&&E!==""&&de.tagName.toLowerCase()==="button"&&console.warn(["MUI: You are providing a disabled `button` child to the Tooltip component.","A disabled element does not fire events.","Tooltip needs to listen to the child element's events to display the title.","","Add a simple wrapper element, such as a `span`."].join(`
247
+ `))},[E,de,Me])}const W=ZO(w),pe=re.useRef(),he=vo(()=>{pe.current!==void 0&&(document.body.style.WebkitUserSelect=pe.current,pe.current=void 0),A.clear()});re.useEffect(()=>he,[he]);const Oe=Me=>{Jd.clear(),Ma=!0,q(!0),v&&!ae&&v(Me)},Ee=vo(Me=>{Jd.start(800+h,()=>{Ma=!1}),q(!1),C&&ae&&C(Me),ve.start(ue.transitions.duration.shortest,()=>{se.current=!1})}),fe=Me=>{se.current&&Me.type!=="touchstart"||(de&&de.removeAttribute("title"),be.clear(),N.clear(),S||Ma&&O?be.start(Ma?O:S,()=>{Oe(Me)}):Oe(Me))},ge=Me=>{be.clear(),N.start(h,()=>{Ee(Me)})},[,Se]=re.useState(!1),je=Me=>{es(Me.target)||(Se(!1),ge(Me))},ye=Me=>{de||G(Me.currentTarget),es(Me.target)&&(Se(!0),fe(Me))},yt=Me=>{se.current=!0;const Dt=Z.props;Dt.onTouchStart&&Dt.onTouchStart(Me)},Fe=Me=>{yt(Me),N.clear(),ve.clear(),he(),pe.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",A.start(d,()=>{document.body.style.WebkitUserSelect=pe.current,fe(Me)})},jn=Me=>{Z.props.onTouchEnd&&Z.props.onTouchEnd(Me),he(),N.start(y,()=>{Ee(Me)})};re.useEffect(()=>{if(!ae)return;function Me(Dt){Dt.key==="Escape"&&Ee(Dt)}return document.addEventListener("keydown",Me),()=>{document.removeEventListener("keydown",Me)}},[Ee,ae]);const qt=gn(Rs(Z),G,n);!E&&E!==0&&(ae=!1);const Jn=re.useRef(),yn=Me=>{const Dt=Z.props;Dt.onMouseMove&&Dt.onMouseMove(Me),ei={x:Me.clientX,y:Me.clientY},Jn.current&&Jn.current.update()},Et={},br=typeof E=="string";p?(Et.title=!ae&&br&&!_?E:null,Et["aria-describedby"]=ae?W:null):(Et["aria-label"]=br?E:null,Et["aria-labelledby"]=ae&&!br?W:null);const St={...Et,...Q,...Z.props,className:tt(Q.className,Z.props.className),onTouchStart:yt,ref:qt,...m?{onMouseMove:yn}:{}};process.env.NODE_ENV!=="production"&&(St["data-mui-internal-clone-element"]=!0,re.useEffect(()=>{de&&!de.getAttribute("data-mui-internal-clone-element")&&console.error(["MUI: The `children` component of the Tooltip is not forwarding its props correctly.","Please make sure that props are spread on the same element that the ref is applied to."].join(`
248
248
  `))},[de]));const kn={};M||(St.onTouchStart=Fe,St.onTouchEnd=jn),_||(St.onMouseOver=Aa(fe,St.onMouseOver),St.onMouseLeave=Aa(ge,St.onMouseLeave),ie||(kn.onMouseOver=fe,kn.onMouseLeave=ge)),b||(St.onFocus=Aa(ye,St.onFocus),St.onBlur=Aa(je,St.onBlur),ie||(kn.onFocus=ye,kn.onBlur=je)),process.env.NODE_ENV!=="production"&&Z.props.title&&console.error(["MUI: You have provided a `title` prop to the child of <Tooltip />.",`Remove this title prop \`${Z.props.title}\` or the Tooltip component.`].join(`
249
- `));const fn={...r,isRtl:ce,arrow:i,disableInteractive:ie,placement:j,PopperComponentProp:z,touch:se.current},Yt=typeof X.popper=="function"?X.popper(fn):X.popper,jo=re.useMemo(()=>{var Me,Dt;let Sr=[{name:"arrow",enabled:!!P,options:{element:P,padding:4}}];return(Me=F.popperOptions)!=null&&Me.modifiers&&(Sr=Sr.concat(F.popperOptions.modifiers)),(Dt=Yt==null?void 0:Yt.popperOptions)!=null&&Dt.modifiers&&(Sr=Sr.concat(Yt.popperOptions.modifiers)),{...F.popperOptions,...Yt==null?void 0:Yt.popperOptions,modifiers:Sr}},[P,F.popperOptions,Yt==null?void 0:Yt.popperOptions]),wr=bR(fn),ko=typeof X.transition=="function"?X.transition(fn):X.transition,Kn={slots:{popper:l.Popper,transition:l.Transition??V,tooltip:l.Tooltip,arrow:l.Arrow,...Y},slotProps:{arrow:X.arrow??f.arrow,popper:{...F,...Yt??f.popper},tooltip:X.tooltip??f.tooltip,transition:{...U,...ko??f.transition}}},[As,Ns]=En("popper",{elementType:wR,externalForwardedProps:Kn,ownerState:fn,className:tt(wr.popper,F==null?void 0:F.className)}),[zs,Mi]=En("transition",{elementType:ns,externalForwardedProps:Kn,ownerState:fn}),[Ai,$s]=En("tooltip",{elementType:SR,className:wr.tooltip,externalForwardedProps:Kn,ownerState:fn}),[Is,Ls]=En("arrow",{elementType:xR,className:wr.arrow,externalForwardedProps:Kn,ownerState:fn,ref:K});return Pe.jsxs(re.Fragment,{children:[re.cloneElement(Z,St),Pe.jsx(As,{as:z??rc,placement:j,anchorEl:m?{getBoundingClientRect:()=>({top:Zo.y,left:Zo.x,right:Zo.x,bottom:Zo.y,width:0,height:0})}:de,popperRef:Jn,open:de?ae:!1,id:W,transition:!0,...kn,...Ns,popperOptions:jo,children:({TransitionProps:Me})=>Pe.jsx(zs,{timeout:ue.transitions.duration.shorter,...Me,...Mi,children:Pe.jsxs(Ai,{...$s,children:[E,i?Pe.jsx(Is,{...Ls}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Hm.propTypes={arrow:g.bool,children:Cs.isRequired,classes:g.object,className:g.string,components:g.shape({Arrow:g.elementType,Popper:g.elementType,Tooltip:g.elementType,Transition:g.elementType}),componentsProps:g.shape({arrow:g.object,popper:g.object,tooltip:g.object,transition:g.object}),describeChild:g.bool,disableFocusListener:g.bool,disableHoverListener:g.bool,disableInteractive:g.bool,disableTouchListener:g.bool,enterDelay:g.number,enterNextDelay:g.number,enterTouchDelay:g.number,followCursor:g.bool,id:g.string,leaveDelay:g.number,leaveTouchDelay:g.number,onClose:g.func,onOpen:g.func,open:g.bool,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:g.elementType,PopperProps:g.object,slotProps:g.shape({arrow:g.oneOfType([g.func,g.object]),popper:g.oneOfType([g.func,g.object]),tooltip:g.oneOfType([g.func,g.object]),transition:g.oneOfType([g.func,g.object])}),slots:g.shape({arrow:g.elementType,popper:g.elementType,tooltip:g.elementType,transition:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),title:g.node,TransitionComponent:g.elementType,TransitionProps:g.object});function _R(e){return Tn("MuiSpeedDialAction",e)}const Na=Pn("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),OR=e=>{const{open:n,tooltipPlacement:r,classes:i}=e,a={fab:["fab",!n&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Ht(r)}`,!n&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return gr(a,_R,i)},ER=Ot(Gl,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.fab,!r.open&&n.fabClosed]}})(an(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:um(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:n})=>!n.open,style:{opacity:0,transform:"scale(0)"}}]}))),CR=Ot("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.staticTooltip,!r.open&&n.staticTooltipClosed,n[`tooltipPlacement${Ht(r.tooltipPlacement)}`]]}})(an(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Na.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:n})=>!n.open,style:{[`& .${Na.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Na.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Na.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),RR=Ot("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(an(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),TR=re.forwardRef(function(e,n){var r;const i=Gn({props:e,name:"MuiSpeedDialAction"}),{className:a,delay:u=0,FabProps:l={},icon:f,id:p,open:b,TooltipClasses:_,tooltipOpen:T=!1,tooltipPlacement:M="left",tooltipTitle:S,slots:O={},slotProps:d={},...m}=i,w={...i,tooltipPlacement:M},h=OR(w),y={slots:O,slotProps:{fab:l,...d,tooltip:eE(typeof d.tooltip=="function"?d.tooltip(w):d.tooltip,{title:S,open:T,placement:M,classes:_})}},[C,v]=re.useState((r=y.slotProps.tooltip)==null?void 0:r.open),k=()=>{v(!1)},j=()=>{v(!0)},z={transitionDelay:`${u}ms`},[F,X]=En("fab",{elementType:ER,externalForwardedProps:y,ownerState:w,shouldForwardComponentProp:!0,className:tt(h.fab,a),additionalProps:{style:z,tabIndex:-1,role:"menuitem",size:"small"}}),[Y,E]=En("tooltip",{elementType:Hm,externalForwardedProps:y,shouldForwardComponentProp:!0,ref:n,additionalProps:{id:p},ownerState:w,getSlotProps:ce=>({...ce,onClose:de=>{var G;(G=ce.onClose)==null||G.call(ce,de),k()},onOpen:de=>{var G;(G=ce.onOpen)==null||G.call(ce,de),j()}})}),[V,U]=En("staticTooltip",{elementType:CR,externalForwardedProps:y,ownerState:w,ref:n,className:h.staticTooltip,additionalProps:{id:p}}),[Q,Z]=En("staticTooltipLabel",{elementType:RR,externalForwardedProps:y,ownerState:w,className:h.staticTooltipLabel,additionalProps:{style:z,id:`${p}-label`}}),ue=Pe.jsx(F,{...X,children:f});return E.open?Pe.jsxs(V,{...U,...m,children:[Pe.jsx(Q,{...Z,children:E.title}),re.cloneElement(ue,{"aria-labelledby":`${p}-label`})]}):(!b&&C&&v(!1),Pe.jsx(Y,{...E,title:E.title,open:b&&C,placement:E.placement,classes:E.classes,...m,children:ue}))});process.env.NODE_ENV!=="production"&&(TR.propTypes={classes:g.object,className:g.string,delay:g.number,FabProps:g.object,icon:g.node,id:g.string,open:g.bool,slotProps:g.shape({fab:g.oneOfType([g.func,g.object]),staticTooltip:g.oneOfType([g.func,g.object]),staticTooltipLabel:g.oneOfType([g.func,g.object]),tooltip:g.oneOfType([g.func,g.object])}),slots:g.shape({fab:g.elementType,staticTooltip:g.elementType,staticTooltipLabel:g.elementType,tooltip:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),TooltipClasses:g.object,tooltipOpen:g.bool,tooltipPlacement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:g.node});const PR=Pn("MuiBox",["root"]),DR=ym(),jR=B_({themeId:Wl,defaultTheme:DR,defaultClassName:PR.root,generateClassName:qh.generate});process.env.NODE_ENV!=="production"&&(jR.propTypes={children:g.node,component:g.elementType,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});_e.createContext(void 0);var Kd={exports:{}},Qo={},qa={exports:{}},kR=qa.exports,Zd;function oc(){return Zd||(Zd=1,function(e,n){(function(r,i){i(n)})(kR,function(r){function i(A){return function(I,q,ae,W,pe,he,Oe){return A(I,q,Oe)}}function a(A){return function(I,q,ae,W){if(!I||!q||typeof I!="object"||typeof q!="object")return A(I,q,ae,W);var pe=W.get(I),he=W.get(q);if(pe&&he)return pe===q&&he===I;W.set(I,q),W.set(q,I);var Oe=A(I,q,ae,W);return W.delete(I),W.delete(q),Oe}}function u(A,I){var q={};for(var ae in A)q[ae]=A[ae];for(var ae in I)q[ae]=I[ae];return q}function l(A){return A.constructor===Object||A.constructor==null}function f(A){return typeof A.then=="function"}function p(A,I){return A===I||A!==A&&I!==I}var b="[object Arguments]",_="[object Boolean]",T="[object Date]",M="[object RegExp]",S="[object Map]",O="[object Number]",d="[object Object]",m="[object Set]",w="[object String]",h=Object.prototype.toString;function y(A){var I=A.areArraysEqual,q=A.areDatesEqual,ae=A.areMapsEqual,W=A.areObjectsEqual,pe=A.areRegExpsEqual,he=A.areSetsEqual,Oe=A.createIsNestedEqual,Ee=Oe(fe);function fe(ge,Se,je){if(ge===Se)return!0;if(!ge||!Se||typeof ge!="object"||typeof Se!="object")return ge!==ge&&Se!==Se;if(l(ge)&&l(Se))return W(ge,Se,Ee,je);var ye=Array.isArray(ge),yt=Array.isArray(Se);if(ye||yt)return ye===yt&&I(ge,Se,Ee,je);var Fe=h.call(ge);return Fe!==h.call(Se)?!1:Fe===T?q(ge,Se,Ee,je):Fe===M?pe(ge,Se,Ee,je):Fe===S?ae(ge,Se,Ee,je):Fe===m?he(ge,Se,Ee,je):Fe===d||Fe===b?f(ge)||f(Se)?!1:W(ge,Se,Ee,je):Fe===_||Fe===O||Fe===w?p(ge.valueOf(),Se.valueOf()):!1}return fe}function C(A,I,q,ae){var W=A.length;if(I.length!==W)return!1;for(;W-- >0;)if(!q(A[W],I[W],W,W,A,I,ae))return!1;return!0}var v=a(C);function k(A,I){return p(A.valueOf(),I.valueOf())}function j(A,I,q,ae){var W=A.size===I.size;if(!W)return!1;if(!A.size)return!0;var pe={},he=0;return A.forEach(function(Oe,Ee){if(W){var fe=!1,ge=0;I.forEach(function(Se,je){!fe&&!pe[ge]&&(fe=q(Ee,je,he,ge,A,I,ae)&&q(Oe,Se,Ee,je,A,I,ae))&&(pe[ge]=!0),ge++}),he++,W=fe}}),W}var z=a(j),F="_owner",X=Object.prototype.hasOwnProperty;function Y(A,I,q,ae){var W=Object.keys(A),pe=W.length;if(Object.keys(I).length!==pe)return!1;for(var he;pe-- >0;){if(he=W[pe],he===F){var Oe=!!A.$$typeof,Ee=!!I.$$typeof;if((Oe||Ee)&&Oe!==Ee)return!1}if(!X.call(I,he)||!q(A[he],I[he],he,he,A,I,ae))return!1}return!0}var E=a(Y);function V(A,I){return A.source===I.source&&A.flags===I.flags}function U(A,I,q,ae){var W=A.size===I.size;if(!W)return!1;if(!A.size)return!0;var pe={};return A.forEach(function(he,Oe){if(W){var Ee=!1,fe=0;I.forEach(function(ge,Se){!Ee&&!pe[fe]&&(Ee=q(he,ge,Oe,Se,A,I,ae))&&(pe[fe]=!0),fe++}),W=Ee}}),W}var Q=a(U),Z=Object.freeze({areArraysEqual:C,areDatesEqual:k,areMapsEqual:j,areObjectsEqual:Y,areRegExpsEqual:V,areSetsEqual:U,createIsNestedEqual:i}),ue=Object.freeze({areArraysEqual:v,areDatesEqual:k,areMapsEqual:z,areObjectsEqual:E,areRegExpsEqual:V,areSetsEqual:Q,createIsNestedEqual:i}),ce=y(Z);function de(A,I){return ce(A,I,void 0)}var G=y(u(Z,{createIsNestedEqual:function(){return p}}));function P(A,I){return G(A,I,void 0)}var K=y(ue);function se(A,I){return K(A,I,new WeakMap)}var ie=y(u(ue,{createIsNestedEqual:function(){return p}}));function ve(A,I){return ie(A,I,new WeakMap)}function be(A){return y(u(Z,A(Z)))}function N(A){var I=y(u(ue,A(ue)));return function(q,ae,W){return W===void 0&&(W=new WeakMap),I(q,ae,W)}}r.circularDeepEqual=se,r.circularShallowEqual=ve,r.createCustomCircularEqual=N,r.createCustomEqual=be,r.deepEqual=de,r.sameValueZeroEqual=p,r.shallowEqual=P,Object.defineProperty(r,"__esModule",{value:!0})})}(qa,qa.exports)),qa.exports}var za={exports:{}},Qd;function ic(){if(Qd)return za.exports;Qd=1;function e(r){var i,a,u="";if(typeof r=="string"||typeof r=="number")u+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(i=0;i<l;i++)r[i]&&(a=e(r[i]))&&(u&&(u+=" "),u+=a)}else for(a in r)r[a]&&(u&&(u+=" "),u+=a);return u}function n(){for(var r,i,a=0,u="",l=arguments.length;a<l;a++)(r=arguments[a])&&(i=e(r))&&(u&&(u+=" "),u+=i);return u}return za.exports=n,za.exports.clsx=n,za.exports}var Be={},eh,th;function MR(){return th||(th=1,eh=function(e,n,r){return e===n?!0:e.className===n.className&&r(e.style,n.style)&&e.width===n.width&&e.autoSize===n.autoSize&&e.cols===n.cols&&e.draggableCancel===n.draggableCancel&&e.draggableHandle===n.draggableHandle&&r(e.verticalCompact,n.verticalCompact)&&r(e.compactType,n.compactType)&&r(e.layout,n.layout)&&r(e.margin,n.margin)&&r(e.containerPadding,n.containerPadding)&&e.rowHeight===n.rowHeight&&e.maxRows===n.maxRows&&e.isBounded===n.isBounded&&e.isDraggable===n.isDraggable&&e.isResizable===n.isResizable&&e.allowOverlap===n.allowOverlap&&e.preventCollision===n.preventCollision&&e.useCSSTransforms===n.useCSSTransforms&&e.transformScale===n.transformScale&&e.isDroppable===n.isDroppable&&r(e.resizeHandles,n.resizeHandles)&&r(e.resizeHandle,n.resizeHandle)&&e.onLayoutChange===n.onLayoutChange&&e.onDragStart===n.onDragStart&&e.onDrag===n.onDrag&&e.onDragStop===n.onDragStop&&e.onResizeStart===n.onResizeStart&&e.onResize===n.onResize&&e.onResizeStop===n.onResizeStop&&e.onDrop===n.onDrop&&r(e.droppingItem,n.droppingItem)&&r(e.innerRef,n.innerRef)}),eh}var nh;function Ro(){if(nh)return Be;nh=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.bottom=a,Be.childrenEqual=b,Be.cloneLayout=u,Be.cloneLayoutItem=p,Be.collides=T,Be.compact=M,Be.compactItem=d,Be.compactType=ve,Be.correctBounds=m,Be.fastPositionEqual=_,Be.fastRGLPropsEqual=void 0,Be.getAllCollisions=y,Be.getFirstCollision=h,Be.getLayoutItem=w,Be.getStatics=C,Be.modifyLayout=l,Be.moveElement=v,Be.moveElementAwayFromCollision=k,Be.noop=void 0,Be.perc=j,Be.resizeItemInDirection=ue,Be.setTopLeft=de,Be.setTransform=ce,Be.sortLayoutItems=G,Be.sortLayoutItemsByColRow=K,Be.sortLayoutItemsByRowCol=P,Be.synchronizeLayoutWithChildren=se,Be.validateLayout=ie,Be.withLayoutItem=f;var e=oc(),n=r(_e);function r(N){return N&&N.__esModule?N:{default:N}}const i=process.env.NODE_ENV==="production";function a(N){let A=0,I;for(let q=0,ae=N.length;q<ae;q++)I=N[q].y+N[q].h,I>A&&(A=I);return A}function u(N){const A=Array(N.length);for(let I=0,q=N.length;I<q;I++)A[I]=p(N[I]);return A}function l(N,A){const I=Array(N.length);for(let q=0,ae=N.length;q<ae;q++)A.i===N[q].i?I[q]=A:I[q]=N[q];return I}function f(N,A,I){let q=w(N,A);return q?(q=I(p(q)),N=l(N,q),[N,q]):[N,null]}function p(N){return{w:N.w,h:N.h,x:N.x,y:N.y,i:N.i,minW:N.minW,maxW:N.maxW,minH:N.minH,maxH:N.maxH,moved:!!N.moved,static:!!N.static,isDraggable:N.isDraggable,isResizable:N.isResizable,resizeHandles:N.resizeHandles,isBounded:N.isBounded}}function b(N,A){return(0,e.deepEqual)(n.default.Children.map(N,I=>I==null?void 0:I.key),n.default.Children.map(A,I=>I==null?void 0:I.key))&&(0,e.deepEqual)(n.default.Children.map(N,I=>I==null?void 0:I.props["data-grid"]),n.default.Children.map(A,I=>I==null?void 0:I.props["data-grid"]))}Be.fastRGLPropsEqual=MR();function _(N,A){return N.left===A.left&&N.top===A.top&&N.width===A.width&&N.height===A.height}function T(N,A){return!(N.i===A.i||N.x+N.w<=A.x||N.x>=A.x+A.w||N.y+N.h<=A.y||N.y>=A.y+A.h)}function M(N,A,I,q){const ae=C(N),W=G(N,A),pe=Array(N.length);for(let he=0,Oe=W.length;he<Oe;he++){let Ee=p(W[he]);Ee.static||(Ee=d(ae,Ee,A,I,W,q),ae.push(Ee)),pe[N.indexOf(W[he])]=Ee,Ee.moved=!1}return pe}const S={x:"w",y:"h"};function O(N,A,I,q){const ae=S[q];A[q]+=1;const W=N.map(pe=>pe.i).indexOf(A.i);for(let pe=W+1;pe<N.length;pe++){const he=N[pe];if(!he.static){if(he.y>A.y+A.h)break;T(A,he)&&O(N,he,I+A[ae],q)}}A[q]=I}function d(N,A,I,q,ae,W){const pe=I==="vertical",he=I==="horizontal";if(pe)for(A.y=Math.min(a(N),A.y);A.y>0&&!h(N,A);)A.y--;else if(he)for(;A.x>0&&!h(N,A);)A.x--;let Oe;for(;(Oe=h(N,A))&&!(I===null&&W);)if(he?O(ae,A,Oe.x+Oe.w,"x"):O(ae,A,Oe.y+Oe.h,"y"),he&&A.x+A.w>q)for(A.x=q-A.w,A.y++;A.x>0&&!h(N,A);)A.x--;return A.y=Math.max(A.y,0),A.x=Math.max(A.x,0),A}function m(N,A){const I=C(N);for(let q=0,ae=N.length;q<ae;q++){const W=N[q];if(W.x+W.w>A.cols&&(W.x=A.cols-W.w),W.x<0&&(W.x=0,W.w=A.cols),!W.static)I.push(W);else for(;h(I,W);)W.y++}return N}function w(N,A){for(let I=0,q=N.length;I<q;I++)if(N[I].i===A)return N[I]}function h(N,A){for(let I=0,q=N.length;I<q;I++)if(T(N[I],A))return N[I]}function y(N,A){return N.filter(I=>T(I,A))}function C(N){return N.filter(A=>A.static)}function v(N,A,I,q,ae,W,pe,he,Oe){if(A.static&&A.isDraggable!==!0||A.y===q&&A.x===I)return N;`${A.i}${String(I)}${String(q)}${A.x}${A.y}`;const Ee=A.x,fe=A.y;typeof I=="number"&&(A.x=I),typeof q=="number"&&(A.y=q),A.moved=!0;let ge=G(N,pe);(pe==="vertical"&&typeof q=="number"?fe>=q:pe==="horizontal"&&typeof I=="number"&&Ee>=I)&&(ge=ge.reverse());const Se=y(ge,A),je=Se.length>0;if(je&&Oe)return u(N);if(je&&W)return`${A.i}`,A.x=Ee,A.y=fe,A.moved=!1,N;for(let ye=0,yt=Se.length;ye<yt;ye++){const Fe=Se[ye];`${A.i}${A.x}${A.y}${Fe.i}${Fe.x}${Fe.y}`,!Fe.moved&&(Fe.static?N=k(N,Fe,A,ae,pe):N=k(N,A,Fe,ae,pe))}return N}function k(N,A,I,q,ae,W){const pe=ae==="horizontal",he=ae==="vertical",Oe=A.static;if(q){q=!1;const ge={x:pe?Math.max(A.x-I.w,0):I.x,y:he?Math.max(A.y-I.h,0):I.y,w:I.w,h:I.h,i:"-1"},Se=h(N,ge),je=Se&&Se.y+Se.h>A.y,ye=Se&&A.x+A.w>Se.x;if(Se){if(je&&he)return v(N,I,void 0,A.y+1,q,Oe,ae);if(je&&ae==null)return A.y=I.y,I.y=I.y+I.h,N;if(ye&&pe)return v(N,A,I.x,void 0,q,Oe,ae)}else return`${I.i}${ge.x}${ge.y}`,v(N,I,pe?ge.x:void 0,he?ge.y:void 0,q,Oe,ae)}const Ee=pe?I.x+1:void 0,fe=he?I.y+1:void 0;return Ee==null&&fe==null?N:v(N,I,pe?I.x+1:void 0,he?I.y+1:void 0,q,Oe,ae)}function j(N){return N*100+"%"}const z=(N,A,I,q)=>N+I>q?A:I,F=(N,A,I)=>N<0?A:I,X=N=>Math.max(0,N),Y=N=>Math.max(0,N),E=(N,A,I)=>{let{left:q,height:ae,width:W}=A;const pe=N.top-(ae-N.height);return{left:q,width:W,height:F(pe,N.height,ae),top:Y(pe)}},V=(N,A,I)=>{let{top:q,left:ae,height:W,width:pe}=A;return{top:q,height:W,width:z(N.left,N.width,pe,I),left:X(ae)}},U=(N,A,I)=>{let{top:q,height:ae,width:W}=A;const pe=N.left-(W-N.width);return{height:ae,width:pe<0?N.width:z(N.left,N.width,W,I),top:Y(q),left:X(pe)}},Q=(N,A,I)=>{let{top:q,left:ae,height:W,width:pe}=A;return{width:pe,left:ae,height:F(q,N.height,W),top:Y(q)}},Z={n:E,ne:function(){return E(arguments.length<=0?void 0:arguments[0],V(...arguments))},e:V,se:function(){return Q(arguments.length<=0?void 0:arguments[0],V(...arguments))},s:Q,sw:function(){return Q(arguments.length<=0?void 0:arguments[0],U(...arguments))},w:U,nw:function(){return E(arguments.length<=0?void 0:arguments[0],U(...arguments))}};function ue(N,A,I,q){const ae=Z[N];return ae?ae(A,{...A,...I},q):I}function ce(N){let{top:A,left:I,width:q,height:ae}=N;const W=`translate(${I}px,${A}px)`;return{transform:W,WebkitTransform:W,MozTransform:W,msTransform:W,OTransform:W,width:`${q}px`,height:`${ae}px`,position:"absolute"}}function de(N){let{top:A,left:I,width:q,height:ae}=N;return{top:`${A}px`,left:`${I}px`,width:`${q}px`,height:`${ae}px`,position:"absolute"}}function G(N,A){return A==="horizontal"?K(N):A==="vertical"?P(N):N}function P(N){return N.slice(0).sort(function(A,I){return A.y>I.y||A.y===I.y&&A.x>I.x?1:A.y===I.y&&A.x===I.x?0:-1})}function K(N){return N.slice(0).sort(function(A,I){return A.x>I.x||A.x===I.x&&A.y>I.y?1:-1})}function se(N,A,I,q,ae){N=N||[];const W=[];n.default.Children.forEach(A,he=>{if((he==null?void 0:he.key)==null)return;const Oe=w(N,String(he.key)),Ee=he.props["data-grid"];Oe&&Ee==null?W.push(p(Oe)):Ee?(i||ie([Ee],"ReactGridLayout.children"),W.push(p({...Ee,i:he.key}))):W.push(p({w:1,h:1,x:0,y:a(W),i:String(he.key)}))});const pe=m(W,{cols:I});return ae?pe:M(pe,q,I)}function ie(N){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const I=["x","y","w","h"];if(!Array.isArray(N))throw new Error(A+" must be an array!");for(let q=0,ae=N.length;q<ae;q++){const W=N[q];for(let pe=0;pe<I.length;pe++){const he=I[pe],Oe=W[he];if(typeof Oe!="number"||Number.isNaN(Oe))throw new Error(`ReactGridLayout: ${A}[${q}].${he} must be a number! Received: ${Oe} (${typeof Oe})`)}if(typeof W.i<"u"&&typeof W.i!="string")throw new Error(`ReactGridLayout: ${A}[${q}].i must be a string! Received: ${W.i} (${typeof W.i})`)}}function ve(N){const{verticalCompact:A,compactType:I}=N||{};return A===!1?null:I}const be=()=>{};return Be.noop=be,Be}var Hn={},rh;function ac(){if(rh)return Hn;rh=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.calcGridColWidth=e,Hn.calcGridItemPosition=r,Hn.calcGridItemWHPx=n,Hn.calcWH=a,Hn.calcXY=i,Hn.clamp=u;function e(l){const{margin:f,containerPadding:p,containerWidth:b,cols:_}=l;return(b-f[0]*(_-1)-p[0]*2)/_}function n(l,f,p){return Number.isFinite(l)?Math.round(f*l+Math.max(0,l-1)*p):l}function r(l,f,p,b,_,T){const{margin:M,containerPadding:S,rowHeight:O}=l,d=e(l),m={};return T&&T.resizing?(m.width=Math.round(T.resizing.width),m.height=Math.round(T.resizing.height)):(m.width=n(b,d,M[0]),m.height=n(_,O,M[1])),T&&T.dragging?(m.top=Math.round(T.dragging.top),m.left=Math.round(T.dragging.left)):T&&T.resizing&&typeof T.resizing.top=="number"&&typeof T.resizing.left=="number"?(m.top=Math.round(T.resizing.top),m.left=Math.round(T.resizing.left)):(m.top=Math.round((O+M[1])*p+S[1]),m.left=Math.round((d+M[0])*f+S[0])),m}function i(l,f,p,b,_){const{margin:T,containerPadding:M,cols:S,rowHeight:O,maxRows:d}=l,m=e(l);let w=Math.round((p-M[0])/(m+T[0])),h=Math.round((f-M[1])/(O+T[1]));return w=u(w,0,S-b),h=u(h,0,d-_),{x:w,y:h}}function a(l,f,p,b,_,T){const{margin:M,maxRows:S,cols:O,rowHeight:d}=l,m=e(l);let w=Math.round((f+M[0])/(m+M[0])),h=Math.round((p+M[1])/(d+M[1])),y=u(w,0,O-b),C=u(h,0,S-_);return["sw","w","nw"].indexOf(T)!==-1&&(y=u(w,0,O)),["nw","n","ne"].indexOf(T)!==-1&&(C=u(h,0,S)),{w:y,h:C}}function u(l,f,p){return Math.max(Math.min(l,p),f)}return Hn}var ei={},ti={exports:{}},oh={};function Wm(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=Wm(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function ih(){for(var e,n,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(n=Wm(e))&&(i&&(i+=" "),i+=n);return i}const AR=Object.freeze(Object.defineProperty({__proto__:null,clsx:ih,default:ih},Symbol.toStringTag,{value:"Module"})),NR=Vh(AR);var dt={},sr={},ah;function Ds(){if(ah)return sr;ah=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.dontSetMe=a,sr.findInArray=e,sr.int=i,sr.isFunction=n,sr.isNum=r;function e(u,l){for(let f=0,p=u.length;f<p;f++)if(l.apply(l,[u[f],f,u]))return u[f]}function n(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Function]"}function r(u){return typeof u=="number"&&!isNaN(u)}function i(u){return parseInt(u,10)}function a(u,l,f){if(u[l])return new Error("Invalid prop ".concat(l," passed to ").concat(f," - do not set this, set it on the child."))}return sr}var ur={},sh;function zR(){if(sh)return ur;sh=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.browserPrefixToKey=r,ur.browserPrefixToStyle=i,ur.default=void 0,ur.getPrefix=n;const e=["Moz","Webkit","O","ms"];function n(){var u;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const f=(u=window.document)===null||u===void 0||(u=u.documentElement)===null||u===void 0?void 0:u.style;if(!f||l in f)return"";for(let p=0;p<e.length;p++)if(r(l,e[p])in f)return e[p];return""}function r(u,l){return l?"".concat(l).concat(a(u)):u}function i(u,l){return l?"-".concat(l.toLowerCase(),"-").concat(u):u}function a(u){let l="",f=!0;for(let p=0;p<u.length;p++)f?(l+=u[p].toUpperCase(),f=!1):u[p]==="-"?f=!0:l+=u[p];return l}return ur.default=n(),ur}var uh;function sc(){if(uh)return dt;uh=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.addClassName=v,dt.addEvent=f,dt.addUserSelectStyles=y,dt.createCSSTransform=O,dt.createSVGTransform=d,dt.getTouch=w,dt.getTouchIdentifier=h,dt.getTranslation=m,dt.innerHeight=T,dt.innerWidth=M,dt.matchesSelector=u,dt.matchesSelectorAndParentsTo=l,dt.offsetXYFromParent=S,dt.outerHeight=b,dt.outerWidth=_,dt.removeClassName=k,dt.removeEvent=p,dt.removeUserSelectStyles=C;var e=Ds(),n=i(zR());function r(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,F=new WeakMap;return(r=function(X){return X?F:z})(j)}function i(j,z){if(j&&j.__esModule)return j;if(j===null||typeof j!="object"&&typeof j!="function")return{default:j};var F=r(z);if(F&&F.has(j))return F.get(j);var X={},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in j)if(E!=="default"&&Object.prototype.hasOwnProperty.call(j,E)){var V=Y?Object.getOwnPropertyDescriptor(j,E):null;V&&(V.get||V.set)?Object.defineProperty(X,E,V):X[E]=j[E]}return X.default=j,F&&F.set(j,X),X}let a="";function u(j,z){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(F){return(0,e.isFunction)(j[F])})),(0,e.isFunction)(j[a])?j[a](z):!1}function l(j,z,F){let X=j;do{if(u(X,z))return!0;if(X===F)return!1;X=X.parentNode}while(X);return!1}function f(j,z,F,X){if(!j)return;const Y={capture:!0,...X};j.addEventListener?j.addEventListener(z,F,Y):j.attachEvent?j.attachEvent("on"+z,F):j["on"+z]=F}function p(j,z,F,X){if(!j)return;const Y={capture:!0,...X};j.removeEventListener?j.removeEventListener(z,F,Y):j.detachEvent?j.detachEvent("on"+z,F):j["on"+z]=null}function b(j){let z=j.clientHeight;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z+=(0,e.int)(F.borderTopWidth),z+=(0,e.int)(F.borderBottomWidth),z}function _(j){let z=j.clientWidth;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z+=(0,e.int)(F.borderLeftWidth),z+=(0,e.int)(F.borderRightWidth),z}function T(j){let z=j.clientHeight;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z-=(0,e.int)(F.paddingTop),z-=(0,e.int)(F.paddingBottom),z}function M(j){let z=j.clientWidth;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z-=(0,e.int)(F.paddingLeft),z-=(0,e.int)(F.paddingRight),z}function S(j,z,F){const X=z===z.ownerDocument.body?{left:0,top:0}:z.getBoundingClientRect(),Y=(j.clientX+z.scrollLeft-X.left)/F,E=(j.clientY+z.scrollTop-X.top)/F;return{x:Y,y:E}}function O(j,z){const F=m(j,z,"px");return{[(0,n.browserPrefixToKey)("transform",n.default)]:F}}function d(j,z){return m(j,z,"")}function m(j,z,F){let{x:X,y:Y}=j,E="translate(".concat(X).concat(F,",").concat(Y).concat(F,")");if(z){const V="".concat(typeof z.x=="string"?z.x:z.x+F),U="".concat(typeof z.y=="string"?z.y:z.y+F);E="translate(".concat(V,", ").concat(U,")")+E}return E}function w(j,z){return j.targetTouches&&(0,e.findInArray)(j.targetTouches,F=>z===F.identifier)||j.changedTouches&&(0,e.findInArray)(j.changedTouches,F=>z===F.identifier)}function h(j){if(j.targetTouches&&j.targetTouches[0])return j.targetTouches[0].identifier;if(j.changedTouches&&j.changedTouches[0])return j.changedTouches[0].identifier}function y(j){if(!j)return;let z=j.getElementById("react-draggable-style-el");z||(z=j.createElement("style"),z.type="text/css",z.id="react-draggable-style-el",z.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
249
+ `));const fn={...r,isRtl:ce,arrow:i,disableInteractive:ie,placement:j,PopperComponentProp:z,touch:se.current},Yt=typeof X.popper=="function"?X.popper(fn):X.popper,Mo=re.useMemo(()=>{var Me,Dt;let Sr=[{name:"arrow",enabled:!!P,options:{element:P,padding:4}}];return(Me=F.popperOptions)!=null&&Me.modifiers&&(Sr=Sr.concat(F.popperOptions.modifiers)),(Dt=Yt==null?void 0:Yt.popperOptions)!=null&&Dt.modifiers&&(Sr=Sr.concat(Yt.popperOptions.modifiers)),{...F.popperOptions,...Yt==null?void 0:Yt.popperOptions,modifiers:Sr}},[P,F.popperOptions,Yt==null?void 0:Yt.popperOptions]),wr=bR(fn),Ao=typeof X.transition=="function"?X.transition(fn):X.transition,Kn={slots:{popper:l.Popper,transition:l.Transition??V,tooltip:l.Tooltip,arrow:l.Arrow,...Y},slotProps:{arrow:X.arrow??f.arrow,popper:{...F,...Yt??f.popper},tooltip:X.tooltip??f.tooltip,transition:{...U,...Ao??f.transition}}},[As,Ns]=En("popper",{elementType:wR,externalForwardedProps:Kn,ownerState:fn,className:tt(wr.popper,F==null?void 0:F.className)}),[zs,Mi]=En("transition",{elementType:ns,externalForwardedProps:Kn,ownerState:fn}),[Ai,$s]=En("tooltip",{elementType:SR,className:wr.tooltip,externalForwardedProps:Kn,ownerState:fn}),[Is,Ls]=En("arrow",{elementType:xR,className:wr.arrow,externalForwardedProps:Kn,ownerState:fn,ref:K});return Pe.jsxs(re.Fragment,{children:[re.cloneElement(Z,St),Pe.jsx(As,{as:z??rc,placement:j,anchorEl:m?{getBoundingClientRect:()=>({top:ei.y,left:ei.x,right:ei.x,bottom:ei.y,width:0,height:0})}:de,popperRef:Jn,open:de?ae:!1,id:W,transition:!0,...kn,...Ns,popperOptions:Mo,children:({TransitionProps:Me})=>Pe.jsx(zs,{timeout:ue.transitions.duration.shorter,...Me,...Mi,children:Pe.jsxs(Ai,{...$s,children:[E,i?Pe.jsx(Is,{...Ls}):null]})})})]})});process.env.NODE_ENV!=="production"&&(Hm.propTypes={arrow:g.bool,children:Cs.isRequired,classes:g.object,className:g.string,components:g.shape({Arrow:g.elementType,Popper:g.elementType,Tooltip:g.elementType,Transition:g.elementType}),componentsProps:g.shape({arrow:g.object,popper:g.object,tooltip:g.object,transition:g.object}),describeChild:g.bool,disableFocusListener:g.bool,disableHoverListener:g.bool,disableInteractive:g.bool,disableTouchListener:g.bool,enterDelay:g.number,enterNextDelay:g.number,enterTouchDelay:g.number,followCursor:g.bool,id:g.string,leaveDelay:g.number,leaveTouchDelay:g.number,onClose:g.func,onOpen:g.func,open:g.bool,placement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),PopperComponent:g.elementType,PopperProps:g.object,slotProps:g.shape({arrow:g.oneOfType([g.func,g.object]),popper:g.oneOfType([g.func,g.object]),tooltip:g.oneOfType([g.func,g.object]),transition:g.oneOfType([g.func,g.object])}),slots:g.shape({arrow:g.elementType,popper:g.elementType,tooltip:g.elementType,transition:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),title:g.node,TransitionComponent:g.elementType,TransitionProps:g.object});function _R(e){return Tn("MuiSpeedDialAction",e)}const Na=Pn("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]),OR=e=>{const{open:n,tooltipPlacement:r,classes:i}=e,a={fab:["fab",!n&&"fabClosed"],staticTooltip:["staticTooltip",`tooltipPlacement${Ht(r)}`,!n&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return gr(a,_R,i)},ER=Ot(Gl,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.fab,!r.open&&n.fabClosed]}})(an(({theme:e})=>({margin:8,color:(e.vars||e).palette.text.secondary,backgroundColor:(e.vars||e).palette.background.paper,"&:hover":{backgroundColor:e.vars?e.vars.palette.SpeedDialAction.fabHoverBg:um(e.palette.background.paper,.15)},transition:`${e.transitions.create("transform",{duration:e.transitions.duration.shorter})}, opacity 0.8s`,opacity:1,variants:[{props:({ownerState:n})=>!n.open,style:{opacity:0,transform:"scale(0)"}}]}))),CR=Ot("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(e,n)=>{const{ownerState:r}=e;return[n.staticTooltip,!r.open&&n.staticTooltipClosed,n[`tooltipPlacement${Ht(r.tooltipPlacement)}`]]}})(an(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",[`& .${Na.staticTooltipLabel}`]:{transition:e.transitions.create(["transform","opacity"],{duration:e.transitions.duration.shorter}),opacity:1},variants:[{props:({ownerState:n})=>!n.open,style:{[`& .${Na.staticTooltipLabel}`]:{opacity:0,transform:"scale(0.5)"}}},{props:{tooltipPlacement:"left"},style:{[`& .${Na.staticTooltipLabel}`]:{transformOrigin:"100% 50%",right:"100%",marginRight:8}}},{props:{tooltipPlacement:"right"},style:{[`& .${Na.staticTooltipLabel}`]:{transformOrigin:"0% 50%",left:"100%",marginLeft:8}}}]}))),RR=Ot("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel"})(an(({theme:e})=>({position:"absolute",...e.typography.body1,backgroundColor:(e.vars||e).palette.background.paper,borderRadius:(e.vars||e).shape.borderRadius,boxShadow:(e.vars||e).shadows[1],color:(e.vars||e).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}))),TR=re.forwardRef(function(e,n){var r;const i=Gn({props:e,name:"MuiSpeedDialAction"}),{className:a,delay:u=0,FabProps:l={},icon:f,id:p,open:b,TooltipClasses:_,tooltipOpen:T=!1,tooltipPlacement:M="left",tooltipTitle:S,slots:O={},slotProps:d={},...m}=i,w={...i,tooltipPlacement:M},h=OR(w),y={slots:O,slotProps:{fab:l,...d,tooltip:eE(typeof d.tooltip=="function"?d.tooltip(w):d.tooltip,{title:S,open:T,placement:M,classes:_})}},[C,v]=re.useState((r=y.slotProps.tooltip)==null?void 0:r.open),k=()=>{v(!1)},j=()=>{v(!0)},z={transitionDelay:`${u}ms`},[F,X]=En("fab",{elementType:ER,externalForwardedProps:y,ownerState:w,shouldForwardComponentProp:!0,className:tt(h.fab,a),additionalProps:{style:z,tabIndex:-1,role:"menuitem",size:"small"}}),[Y,E]=En("tooltip",{elementType:Hm,externalForwardedProps:y,shouldForwardComponentProp:!0,ref:n,additionalProps:{id:p},ownerState:w,getSlotProps:ce=>({...ce,onClose:de=>{var G;(G=ce.onClose)==null||G.call(ce,de),k()},onOpen:de=>{var G;(G=ce.onOpen)==null||G.call(ce,de),j()}})}),[V,U]=En("staticTooltip",{elementType:CR,externalForwardedProps:y,ownerState:w,ref:n,className:h.staticTooltip,additionalProps:{id:p}}),[Q,Z]=En("staticTooltipLabel",{elementType:RR,externalForwardedProps:y,ownerState:w,className:h.staticTooltipLabel,additionalProps:{style:z,id:`${p}-label`}}),ue=Pe.jsx(F,{...X,children:f});return E.open?Pe.jsxs(V,{...U,...m,children:[Pe.jsx(Q,{...Z,children:E.title}),re.cloneElement(ue,{"aria-labelledby":`${p}-label`})]}):(!b&&C&&v(!1),Pe.jsx(Y,{...E,title:E.title,open:b&&C,placement:E.placement,classes:E.classes,...m,children:ue}))});process.env.NODE_ENV!=="production"&&(TR.propTypes={classes:g.object,className:g.string,delay:g.number,FabProps:g.object,icon:g.node,id:g.string,open:g.bool,slotProps:g.shape({fab:g.oneOfType([g.func,g.object]),staticTooltip:g.oneOfType([g.func,g.object]),staticTooltipLabel:g.oneOfType([g.func,g.object]),tooltip:g.oneOfType([g.func,g.object])}),slots:g.shape({fab:g.elementType,staticTooltip:g.elementType,staticTooltipLabel:g.elementType,tooltip:g.elementType}),sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object]),TooltipClasses:g.object,tooltipOpen:g.bool,tooltipPlacement:g.oneOf(["auto-end","auto-start","auto","bottom-end","bottom-start","bottom","left-end","left-start","left","right-end","right-start","right","top-end","top-start","top"]),tooltipTitle:g.node});const PR=Pn("MuiBox",["root"]),DR=ym(),jR=B_({themeId:Wl,defaultTheme:DR,defaultClassName:PR.root,generateClassName:qh.generate});process.env.NODE_ENV!=="production"&&(jR.propTypes={children:g.node,component:g.elementType,sx:g.oneOfType([g.arrayOf(g.oneOfType([g.func,g.object,g.bool])),g.func,g.object])});_e.createContext(void 0);var Kd={exports:{}},ti={},qa={exports:{}},kR=qa.exports,Zd;function oc(){return Zd||(Zd=1,function(e,n){(function(r,i){i(n)})(kR,function(r){function i(A){return function(I,q,ae,W,pe,he,Oe){return A(I,q,Oe)}}function a(A){return function(I,q,ae,W){if(!I||!q||typeof I!="object"||typeof q!="object")return A(I,q,ae,W);var pe=W.get(I),he=W.get(q);if(pe&&he)return pe===q&&he===I;W.set(I,q),W.set(q,I);var Oe=A(I,q,ae,W);return W.delete(I),W.delete(q),Oe}}function u(A,I){var q={};for(var ae in A)q[ae]=A[ae];for(var ae in I)q[ae]=I[ae];return q}function l(A){return A.constructor===Object||A.constructor==null}function f(A){return typeof A.then=="function"}function p(A,I){return A===I||A!==A&&I!==I}var b="[object Arguments]",_="[object Boolean]",T="[object Date]",M="[object RegExp]",S="[object Map]",O="[object Number]",d="[object Object]",m="[object Set]",w="[object String]",h=Object.prototype.toString;function y(A){var I=A.areArraysEqual,q=A.areDatesEqual,ae=A.areMapsEqual,W=A.areObjectsEqual,pe=A.areRegExpsEqual,he=A.areSetsEqual,Oe=A.createIsNestedEqual,Ee=Oe(fe);function fe(ge,Se,je){if(ge===Se)return!0;if(!ge||!Se||typeof ge!="object"||typeof Se!="object")return ge!==ge&&Se!==Se;if(l(ge)&&l(Se))return W(ge,Se,Ee,je);var ye=Array.isArray(ge),yt=Array.isArray(Se);if(ye||yt)return ye===yt&&I(ge,Se,Ee,je);var Fe=h.call(ge);return Fe!==h.call(Se)?!1:Fe===T?q(ge,Se,Ee,je):Fe===M?pe(ge,Se,Ee,je):Fe===S?ae(ge,Se,Ee,je):Fe===m?he(ge,Se,Ee,je):Fe===d||Fe===b?f(ge)||f(Se)?!1:W(ge,Se,Ee,je):Fe===_||Fe===O||Fe===w?p(ge.valueOf(),Se.valueOf()):!1}return fe}function C(A,I,q,ae){var W=A.length;if(I.length!==W)return!1;for(;W-- >0;)if(!q(A[W],I[W],W,W,A,I,ae))return!1;return!0}var v=a(C);function k(A,I){return p(A.valueOf(),I.valueOf())}function j(A,I,q,ae){var W=A.size===I.size;if(!W)return!1;if(!A.size)return!0;var pe={},he=0;return A.forEach(function(Oe,Ee){if(W){var fe=!1,ge=0;I.forEach(function(Se,je){!fe&&!pe[ge]&&(fe=q(Ee,je,he,ge,A,I,ae)&&q(Oe,Se,Ee,je,A,I,ae))&&(pe[ge]=!0),ge++}),he++,W=fe}}),W}var z=a(j),F="_owner",X=Object.prototype.hasOwnProperty;function Y(A,I,q,ae){var W=Object.keys(A),pe=W.length;if(Object.keys(I).length!==pe)return!1;for(var he;pe-- >0;){if(he=W[pe],he===F){var Oe=!!A.$$typeof,Ee=!!I.$$typeof;if((Oe||Ee)&&Oe!==Ee)return!1}if(!X.call(I,he)||!q(A[he],I[he],he,he,A,I,ae))return!1}return!0}var E=a(Y);function V(A,I){return A.source===I.source&&A.flags===I.flags}function U(A,I,q,ae){var W=A.size===I.size;if(!W)return!1;if(!A.size)return!0;var pe={};return A.forEach(function(he,Oe){if(W){var Ee=!1,fe=0;I.forEach(function(ge,Se){!Ee&&!pe[fe]&&(Ee=q(he,ge,Oe,Se,A,I,ae))&&(pe[fe]=!0),fe++}),W=Ee}}),W}var Q=a(U),Z=Object.freeze({areArraysEqual:C,areDatesEqual:k,areMapsEqual:j,areObjectsEqual:Y,areRegExpsEqual:V,areSetsEqual:U,createIsNestedEqual:i}),ue=Object.freeze({areArraysEqual:v,areDatesEqual:k,areMapsEqual:z,areObjectsEqual:E,areRegExpsEqual:V,areSetsEqual:Q,createIsNestedEqual:i}),ce=y(Z);function de(A,I){return ce(A,I,void 0)}var G=y(u(Z,{createIsNestedEqual:function(){return p}}));function P(A,I){return G(A,I,void 0)}var K=y(ue);function se(A,I){return K(A,I,new WeakMap)}var ie=y(u(ue,{createIsNestedEqual:function(){return p}}));function ve(A,I){return ie(A,I,new WeakMap)}function be(A){return y(u(Z,A(Z)))}function N(A){var I=y(u(ue,A(ue)));return function(q,ae,W){return W===void 0&&(W=new WeakMap),I(q,ae,W)}}r.circularDeepEqual=se,r.circularShallowEqual=ve,r.createCustomCircularEqual=N,r.createCustomEqual=be,r.deepEqual=de,r.sameValueZeroEqual=p,r.shallowEqual=P,Object.defineProperty(r,"__esModule",{value:!0})})}(qa,qa.exports)),qa.exports}var za={exports:{}},Qd;function ic(){if(Qd)return za.exports;Qd=1;function e(r){var i,a,u="";if(typeof r=="string"||typeof r=="number")u+=r;else if(typeof r=="object")if(Array.isArray(r)){var l=r.length;for(i=0;i<l;i++)r[i]&&(a=e(r[i]))&&(u&&(u+=" "),u+=a)}else for(a in r)r[a]&&(u&&(u+=" "),u+=a);return u}function n(){for(var r,i,a=0,u="",l=arguments.length;a<l;a++)(r=arguments[a])&&(i=e(r))&&(u&&(u+=" "),u+=i);return u}return za.exports=n,za.exports.clsx=n,za.exports}var Be={},eh,th;function MR(){return th||(th=1,eh=function(e,n,r){return e===n?!0:e.className===n.className&&r(e.style,n.style)&&e.width===n.width&&e.autoSize===n.autoSize&&e.cols===n.cols&&e.draggableCancel===n.draggableCancel&&e.draggableHandle===n.draggableHandle&&r(e.verticalCompact,n.verticalCompact)&&r(e.compactType,n.compactType)&&r(e.layout,n.layout)&&r(e.margin,n.margin)&&r(e.containerPadding,n.containerPadding)&&e.rowHeight===n.rowHeight&&e.maxRows===n.maxRows&&e.isBounded===n.isBounded&&e.isDraggable===n.isDraggable&&e.isResizable===n.isResizable&&e.allowOverlap===n.allowOverlap&&e.preventCollision===n.preventCollision&&e.useCSSTransforms===n.useCSSTransforms&&e.transformScale===n.transformScale&&e.isDroppable===n.isDroppable&&r(e.resizeHandles,n.resizeHandles)&&r(e.resizeHandle,n.resizeHandle)&&e.onLayoutChange===n.onLayoutChange&&e.onDragStart===n.onDragStart&&e.onDrag===n.onDrag&&e.onDragStop===n.onDragStop&&e.onResizeStart===n.onResizeStart&&e.onResize===n.onResize&&e.onResizeStop===n.onResizeStop&&e.onDrop===n.onDrop&&r(e.droppingItem,n.droppingItem)&&r(e.innerRef,n.innerRef)}),eh}var nh;function Ro(){if(nh)return Be;nh=1,Object.defineProperty(Be,"__esModule",{value:!0}),Be.bottom=a,Be.childrenEqual=b,Be.cloneLayout=u,Be.cloneLayoutItem=p,Be.collides=T,Be.compact=M,Be.compactItem=d,Be.compactType=ve,Be.correctBounds=m,Be.fastPositionEqual=_,Be.fastRGLPropsEqual=void 0,Be.getAllCollisions=y,Be.getFirstCollision=h,Be.getLayoutItem=w,Be.getStatics=C,Be.modifyLayout=l,Be.moveElement=v,Be.moveElementAwayFromCollision=k,Be.noop=void 0,Be.perc=j,Be.resizeItemInDirection=ue,Be.setTopLeft=de,Be.setTransform=ce,Be.sortLayoutItems=G,Be.sortLayoutItemsByColRow=K,Be.sortLayoutItemsByRowCol=P,Be.synchronizeLayoutWithChildren=se,Be.validateLayout=ie,Be.withLayoutItem=f;var e=oc(),n=r(_e);function r(N){return N&&N.__esModule?N:{default:N}}const i=process.env.NODE_ENV==="production";function a(N){let A=0,I;for(let q=0,ae=N.length;q<ae;q++)I=N[q].y+N[q].h,I>A&&(A=I);return A}function u(N){const A=Array(N.length);for(let I=0,q=N.length;I<q;I++)A[I]=p(N[I]);return A}function l(N,A){const I=Array(N.length);for(let q=0,ae=N.length;q<ae;q++)A.i===N[q].i?I[q]=A:I[q]=N[q];return I}function f(N,A,I){let q=w(N,A);return q?(q=I(p(q)),N=l(N,q),[N,q]):[N,null]}function p(N){return{w:N.w,h:N.h,x:N.x,y:N.y,i:N.i,minW:N.minW,maxW:N.maxW,minH:N.minH,maxH:N.maxH,moved:!!N.moved,static:!!N.static,isDraggable:N.isDraggable,isResizable:N.isResizable,resizeHandles:N.resizeHandles,isBounded:N.isBounded}}function b(N,A){return(0,e.deepEqual)(n.default.Children.map(N,I=>I==null?void 0:I.key),n.default.Children.map(A,I=>I==null?void 0:I.key))&&(0,e.deepEqual)(n.default.Children.map(N,I=>I==null?void 0:I.props["data-grid"]),n.default.Children.map(A,I=>I==null?void 0:I.props["data-grid"]))}Be.fastRGLPropsEqual=MR();function _(N,A){return N.left===A.left&&N.top===A.top&&N.width===A.width&&N.height===A.height}function T(N,A){return!(N.i===A.i||N.x+N.w<=A.x||N.x>=A.x+A.w||N.y+N.h<=A.y||N.y>=A.y+A.h)}function M(N,A,I,q){const ae=C(N),W=G(N,A),pe=Array(N.length);for(let he=0,Oe=W.length;he<Oe;he++){let Ee=p(W[he]);Ee.static||(Ee=d(ae,Ee,A,I,W,q),ae.push(Ee)),pe[N.indexOf(W[he])]=Ee,Ee.moved=!1}return pe}const S={x:"w",y:"h"};function O(N,A,I,q){const ae=S[q];A[q]+=1;const W=N.map(pe=>pe.i).indexOf(A.i);for(let pe=W+1;pe<N.length;pe++){const he=N[pe];if(!he.static){if(he.y>A.y+A.h)break;T(A,he)&&O(N,he,I+A[ae],q)}}A[q]=I}function d(N,A,I,q,ae,W){const pe=I==="vertical",he=I==="horizontal";if(pe)for(A.y=Math.min(a(N),A.y);A.y>0&&!h(N,A);)A.y--;else if(he)for(;A.x>0&&!h(N,A);)A.x--;let Oe;for(;(Oe=h(N,A))&&!(I===null&&W);)if(he?O(ae,A,Oe.x+Oe.w,"x"):O(ae,A,Oe.y+Oe.h,"y"),he&&A.x+A.w>q)for(A.x=q-A.w,A.y++;A.x>0&&!h(N,A);)A.x--;return A.y=Math.max(A.y,0),A.x=Math.max(A.x,0),A}function m(N,A){const I=C(N);for(let q=0,ae=N.length;q<ae;q++){const W=N[q];if(W.x+W.w>A.cols&&(W.x=A.cols-W.w),W.x<0&&(W.x=0,W.w=A.cols),!W.static)I.push(W);else for(;h(I,W);)W.y++}return N}function w(N,A){for(let I=0,q=N.length;I<q;I++)if(N[I].i===A)return N[I]}function h(N,A){for(let I=0,q=N.length;I<q;I++)if(T(N[I],A))return N[I]}function y(N,A){return N.filter(I=>T(I,A))}function C(N){return N.filter(A=>A.static)}function v(N,A,I,q,ae,W,pe,he,Oe){if(A.static&&A.isDraggable!==!0||A.y===q&&A.x===I)return N;`${A.i}${String(I)}${String(q)}${A.x}${A.y}`;const Ee=A.x,fe=A.y;typeof I=="number"&&(A.x=I),typeof q=="number"&&(A.y=q),A.moved=!0;let ge=G(N,pe);(pe==="vertical"&&typeof q=="number"?fe>=q:pe==="horizontal"&&typeof I=="number"&&Ee>=I)&&(ge=ge.reverse());const Se=y(ge,A),je=Se.length>0;if(je&&Oe)return u(N);if(je&&W)return`${A.i}`,A.x=Ee,A.y=fe,A.moved=!1,N;for(let ye=0,yt=Se.length;ye<yt;ye++){const Fe=Se[ye];`${A.i}${A.x}${A.y}${Fe.i}${Fe.x}${Fe.y}`,!Fe.moved&&(Fe.static?N=k(N,Fe,A,ae,pe):N=k(N,A,Fe,ae,pe))}return N}function k(N,A,I,q,ae,W){const pe=ae==="horizontal",he=ae==="vertical",Oe=A.static;if(q){q=!1;const ge={x:pe?Math.max(A.x-I.w,0):I.x,y:he?Math.max(A.y-I.h,0):I.y,w:I.w,h:I.h,i:"-1"},Se=h(N,ge),je=Se&&Se.y+Se.h>A.y,ye=Se&&A.x+A.w>Se.x;if(Se){if(je&&he)return v(N,I,void 0,A.y+1,q,Oe,ae);if(je&&ae==null)return A.y=I.y,I.y=I.y+I.h,N;if(ye&&pe)return v(N,A,I.x,void 0,q,Oe,ae)}else return`${I.i}${ge.x}${ge.y}`,v(N,I,pe?ge.x:void 0,he?ge.y:void 0,q,Oe,ae)}const Ee=pe?I.x+1:void 0,fe=he?I.y+1:void 0;return Ee==null&&fe==null?N:v(N,I,pe?I.x+1:void 0,he?I.y+1:void 0,q,Oe,ae)}function j(N){return N*100+"%"}const z=(N,A,I,q)=>N+I>q?A:I,F=(N,A,I)=>N<0?A:I,X=N=>Math.max(0,N),Y=N=>Math.max(0,N),E=(N,A,I)=>{let{left:q,height:ae,width:W}=A;const pe=N.top-(ae-N.height);return{left:q,width:W,height:F(pe,N.height,ae),top:Y(pe)}},V=(N,A,I)=>{let{top:q,left:ae,height:W,width:pe}=A;return{top:q,height:W,width:z(N.left,N.width,pe,I),left:X(ae)}},U=(N,A,I)=>{let{top:q,height:ae,width:W}=A;const pe=N.left-(W-N.width);return{height:ae,width:pe<0?N.width:z(N.left,N.width,W,I),top:Y(q),left:X(pe)}},Q=(N,A,I)=>{let{top:q,left:ae,height:W,width:pe}=A;return{width:pe,left:ae,height:F(q,N.height,W),top:Y(q)}},Z={n:E,ne:function(){return E(arguments.length<=0?void 0:arguments[0],V(...arguments))},e:V,se:function(){return Q(arguments.length<=0?void 0:arguments[0],V(...arguments))},s:Q,sw:function(){return Q(arguments.length<=0?void 0:arguments[0],U(...arguments))},w:U,nw:function(){return E(arguments.length<=0?void 0:arguments[0],U(...arguments))}};function ue(N,A,I,q){const ae=Z[N];return ae?ae(A,{...A,...I},q):I}function ce(N){let{top:A,left:I,width:q,height:ae}=N;const W=`translate(${I}px,${A}px)`;return{transform:W,WebkitTransform:W,MozTransform:W,msTransform:W,OTransform:W,width:`${q}px`,height:`${ae}px`,position:"absolute"}}function de(N){let{top:A,left:I,width:q,height:ae}=N;return{top:`${A}px`,left:`${I}px`,width:`${q}px`,height:`${ae}px`,position:"absolute"}}function G(N,A){return A==="horizontal"?K(N):A==="vertical"?P(N):N}function P(N){return N.slice(0).sort(function(A,I){return A.y>I.y||A.y===I.y&&A.x>I.x?1:A.y===I.y&&A.x===I.x?0:-1})}function K(N){return N.slice(0).sort(function(A,I){return A.x>I.x||A.x===I.x&&A.y>I.y?1:-1})}function se(N,A,I,q,ae){N=N||[];const W=[];n.default.Children.forEach(A,he=>{if((he==null?void 0:he.key)==null)return;const Oe=w(N,String(he.key)),Ee=he.props["data-grid"];Oe&&Ee==null?W.push(p(Oe)):Ee?(i||ie([Ee],"ReactGridLayout.children"),W.push(p({...Ee,i:he.key}))):W.push(p({w:1,h:1,x:0,y:a(W),i:String(he.key)}))});const pe=m(W,{cols:I});return ae?pe:M(pe,q,I)}function ie(N){let A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const I=["x","y","w","h"];if(!Array.isArray(N))throw new Error(A+" must be an array!");for(let q=0,ae=N.length;q<ae;q++){const W=N[q];for(let pe=0;pe<I.length;pe++){const he=I[pe],Oe=W[he];if(typeof Oe!="number"||Number.isNaN(Oe))throw new Error(`ReactGridLayout: ${A}[${q}].${he} must be a number! Received: ${Oe} (${typeof Oe})`)}if(typeof W.i<"u"&&typeof W.i!="string")throw new Error(`ReactGridLayout: ${A}[${q}].i must be a string! Received: ${W.i} (${typeof W.i})`)}}function ve(N){const{verticalCompact:A,compactType:I}=N||{};return A===!1?null:I}const be=()=>{};return Be.noop=be,Be}var Hn={},rh;function ac(){if(rh)return Hn;rh=1,Object.defineProperty(Hn,"__esModule",{value:!0}),Hn.calcGridColWidth=e,Hn.calcGridItemPosition=r,Hn.calcGridItemWHPx=n,Hn.calcWH=a,Hn.calcXY=i,Hn.clamp=u;function e(l){const{margin:f,containerPadding:p,containerWidth:b,cols:_}=l;return(b-f[0]*(_-1)-p[0]*2)/_}function n(l,f,p){return Number.isFinite(l)?Math.round(f*l+Math.max(0,l-1)*p):l}function r(l,f,p,b,_,T){const{margin:M,containerPadding:S,rowHeight:O}=l,d=e(l),m={};return T&&T.resizing?(m.width=Math.round(T.resizing.width),m.height=Math.round(T.resizing.height)):(m.width=n(b,d,M[0]),m.height=n(_,O,M[1])),T&&T.dragging?(m.top=Math.round(T.dragging.top),m.left=Math.round(T.dragging.left)):T&&T.resizing&&typeof T.resizing.top=="number"&&typeof T.resizing.left=="number"?(m.top=Math.round(T.resizing.top),m.left=Math.round(T.resizing.left)):(m.top=Math.round((O+M[1])*p+S[1]),m.left=Math.round((d+M[0])*f+S[0])),m}function i(l,f,p,b,_){const{margin:T,containerPadding:M,cols:S,rowHeight:O,maxRows:d}=l,m=e(l);let w=Math.round((p-M[0])/(m+T[0])),h=Math.round((f-M[1])/(O+T[1]));return w=u(w,0,S-b),h=u(h,0,d-_),{x:w,y:h}}function a(l,f,p,b,_,T){const{margin:M,maxRows:S,cols:O,rowHeight:d}=l,m=e(l);let w=Math.round((f+M[0])/(m+M[0])),h=Math.round((p+M[1])/(d+M[1])),y=u(w,0,O-b),C=u(h,0,S-_);return["sw","w","nw"].indexOf(T)!==-1&&(y=u(w,0,O)),["nw","n","ne"].indexOf(T)!==-1&&(C=u(h,0,S)),{w:y,h:C}}function u(l,f,p){return Math.max(Math.min(l,p),f)}return Hn}var ni={},ri={exports:{}},oh={};function Wm(e){var n,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e))for(n=0;n<e.length;n++)e[n]&&(r=Wm(e[n]))&&(i&&(i+=" "),i+=r);else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function ih(){for(var e,n,r=0,i="";r<arguments.length;)(e=arguments[r++])&&(n=Wm(e))&&(i&&(i+=" "),i+=n);return i}const AR=Object.freeze(Object.defineProperty({__proto__:null,clsx:ih,default:ih},Symbol.toStringTag,{value:"Module"})),NR=Vh(AR);var dt={},sr={},ah;function Ds(){if(ah)return sr;ah=1,Object.defineProperty(sr,"__esModule",{value:!0}),sr.dontSetMe=a,sr.findInArray=e,sr.int=i,sr.isFunction=n,sr.isNum=r;function e(u,l){for(let f=0,p=u.length;f<p;f++)if(l.apply(l,[u[f],f,u]))return u[f]}function n(u){return typeof u=="function"||Object.prototype.toString.call(u)==="[object Function]"}function r(u){return typeof u=="number"&&!isNaN(u)}function i(u){return parseInt(u,10)}function a(u,l,f){if(u[l])return new Error("Invalid prop ".concat(l," passed to ").concat(f," - do not set this, set it on the child."))}return sr}var ur={},sh;function zR(){if(sh)return ur;sh=1,Object.defineProperty(ur,"__esModule",{value:!0}),ur.browserPrefixToKey=r,ur.browserPrefixToStyle=i,ur.default=void 0,ur.getPrefix=n;const e=["Moz","Webkit","O","ms"];function n(){var u;let l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const f=(u=window.document)===null||u===void 0||(u=u.documentElement)===null||u===void 0?void 0:u.style;if(!f||l in f)return"";for(let p=0;p<e.length;p++)if(r(l,e[p])in f)return e[p];return""}function r(u,l){return l?"".concat(l).concat(a(u)):u}function i(u,l){return l?"-".concat(l.toLowerCase(),"-").concat(u):u}function a(u){let l="",f=!0;for(let p=0;p<u.length;p++)f?(l+=u[p].toUpperCase(),f=!1):u[p]==="-"?f=!0:l+=u[p];return l}return ur.default=n(),ur}var uh;function sc(){if(uh)return dt;uh=1,Object.defineProperty(dt,"__esModule",{value:!0}),dt.addClassName=v,dt.addEvent=f,dt.addUserSelectStyles=y,dt.createCSSTransform=O,dt.createSVGTransform=d,dt.getTouch=w,dt.getTouchIdentifier=h,dt.getTranslation=m,dt.innerHeight=T,dt.innerWidth=M,dt.matchesSelector=u,dt.matchesSelectorAndParentsTo=l,dt.offsetXYFromParent=S,dt.outerHeight=b,dt.outerWidth=_,dt.removeClassName=k,dt.removeEvent=p,dt.removeUserSelectStyles=C;var e=Ds(),n=i(zR());function r(j){if(typeof WeakMap!="function")return null;var z=new WeakMap,F=new WeakMap;return(r=function(X){return X?F:z})(j)}function i(j,z){if(j&&j.__esModule)return j;if(j===null||typeof j!="object"&&typeof j!="function")return{default:j};var F=r(z);if(F&&F.has(j))return F.get(j);var X={},Y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var E in j)if(E!=="default"&&Object.prototype.hasOwnProperty.call(j,E)){var V=Y?Object.getOwnPropertyDescriptor(j,E):null;V&&(V.get||V.set)?Object.defineProperty(X,E,V):X[E]=j[E]}return X.default=j,F&&F.set(j,X),X}let a="";function u(j,z){return a||(a=(0,e.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(F){return(0,e.isFunction)(j[F])})),(0,e.isFunction)(j[a])?j[a](z):!1}function l(j,z,F){let X=j;do{if(u(X,z))return!0;if(X===F)return!1;X=X.parentNode}while(X);return!1}function f(j,z,F,X){if(!j)return;const Y={capture:!0,...X};j.addEventListener?j.addEventListener(z,F,Y):j.attachEvent?j.attachEvent("on"+z,F):j["on"+z]=F}function p(j,z,F,X){if(!j)return;const Y={capture:!0,...X};j.removeEventListener?j.removeEventListener(z,F,Y):j.detachEvent?j.detachEvent("on"+z,F):j["on"+z]=null}function b(j){let z=j.clientHeight;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z+=(0,e.int)(F.borderTopWidth),z+=(0,e.int)(F.borderBottomWidth),z}function _(j){let z=j.clientWidth;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z+=(0,e.int)(F.borderLeftWidth),z+=(0,e.int)(F.borderRightWidth),z}function T(j){let z=j.clientHeight;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z-=(0,e.int)(F.paddingTop),z-=(0,e.int)(F.paddingBottom),z}function M(j){let z=j.clientWidth;const F=j.ownerDocument.defaultView.getComputedStyle(j);return z-=(0,e.int)(F.paddingLeft),z-=(0,e.int)(F.paddingRight),z}function S(j,z,F){const X=z===z.ownerDocument.body?{left:0,top:0}:z.getBoundingClientRect(),Y=(j.clientX+z.scrollLeft-X.left)/F,E=(j.clientY+z.scrollTop-X.top)/F;return{x:Y,y:E}}function O(j,z){const F=m(j,z,"px");return{[(0,n.browserPrefixToKey)("transform",n.default)]:F}}function d(j,z){return m(j,z,"")}function m(j,z,F){let{x:X,y:Y}=j,E="translate(".concat(X).concat(F,",").concat(Y).concat(F,")");if(z){const V="".concat(typeof z.x=="string"?z.x:z.x+F),U="".concat(typeof z.y=="string"?z.y:z.y+F);E="translate(".concat(V,", ").concat(U,")")+E}return E}function w(j,z){return j.targetTouches&&(0,e.findInArray)(j.targetTouches,F=>z===F.identifier)||j.changedTouches&&(0,e.findInArray)(j.changedTouches,F=>z===F.identifier)}function h(j){if(j.targetTouches&&j.targetTouches[0])return j.targetTouches[0].identifier;if(j.changedTouches&&j.changedTouches[0])return j.changedTouches[0].identifier}function y(j){if(!j)return;let z=j.getElementById("react-draggable-style-el");z||(z=j.createElement("style"),z.type="text/css",z.id="react-draggable-style-el",z.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
250
250
  `,z.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
251
- `,j.getElementsByTagName("head")[0].appendChild(z)),j.body&&v(j.body,"react-draggable-transparent-selection")}function C(j){if(j)try{if(j.body&&k(j.body,"react-draggable-transparent-selection"),j.selection)j.selection.empty();else{const z=(j.defaultView||window).getSelection();z&&z.type!=="Caret"&&z.removeAllRanges()}}catch{}}function v(j,z){j.classList?j.classList.add(z):j.className.match(new RegExp("(?:^|\\s)".concat(z,"(?!\\S)")))||(j.className+=" ".concat(z))}function k(j,z){j.classList?j.classList.remove(z):j.className=j.className.replace(new RegExp("(?:^|\\s)".concat(z,"(?!\\S)"),"g"),"")}return dt}var _n={},lh;function qm(){if(lh)return _n;lh=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.canDragX=a,_n.canDragY=u,_n.createCoreData=f,_n.createDraggableData=p,_n.getBoundPosition=r,_n.getControlPosition=l,_n.snapToGrid=i;var e=Ds(),n=sc();function r(T,M,S){if(!T.props.bounds)return[M,S];let{bounds:O}=T.props;O=typeof O=="string"?O:b(O);const d=_(T);if(typeof O=="string"){const{ownerDocument:m}=d,w=m.defaultView;let h;if(O==="parent"?h=d.parentNode:h=m.querySelector(O),!(h instanceof w.HTMLElement))throw new Error('Bounds selector "'+O+'" could not find an element.');const y=h,C=w.getComputedStyle(d),v=w.getComputedStyle(y);O={left:-d.offsetLeft+(0,e.int)(v.paddingLeft)+(0,e.int)(C.marginLeft),top:-d.offsetTop+(0,e.int)(v.paddingTop)+(0,e.int)(C.marginTop),right:(0,n.innerWidth)(y)-(0,n.outerWidth)(d)-d.offsetLeft+(0,e.int)(v.paddingRight)-(0,e.int)(C.marginRight),bottom:(0,n.innerHeight)(y)-(0,n.outerHeight)(d)-d.offsetTop+(0,e.int)(v.paddingBottom)-(0,e.int)(C.marginBottom)}}return(0,e.isNum)(O.right)&&(M=Math.min(M,O.right)),(0,e.isNum)(O.bottom)&&(S=Math.min(S,O.bottom)),(0,e.isNum)(O.left)&&(M=Math.max(M,O.left)),(0,e.isNum)(O.top)&&(S=Math.max(S,O.top)),[M,S]}function i(T,M,S){const O=Math.round(M/T[0])*T[0],d=Math.round(S/T[1])*T[1];return[O,d]}function a(T){return T.props.axis==="both"||T.props.axis==="x"}function u(T){return T.props.axis==="both"||T.props.axis==="y"}function l(T,M,S){const O=typeof M=="number"?(0,n.getTouch)(T,M):null;if(typeof M=="number"&&!O)return null;const d=_(S),m=S.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,n.offsetXYFromParent)(O||T,m,S.props.scale)}function f(T,M,S){const O=!(0,e.isNum)(T.lastX),d=_(T);return O?{node:d,deltaX:0,deltaY:0,lastX:M,lastY:S,x:M,y:S}:{node:d,deltaX:M-T.lastX,deltaY:S-T.lastY,lastX:T.lastX,lastY:T.lastY,x:M,y:S}}function p(T,M){const S=T.props.scale;return{node:M.node,x:T.state.x+M.deltaX/S,y:T.state.y+M.deltaY/S,deltaX:M.deltaX/S,deltaY:M.deltaY/S,lastX:T.state.x,lastY:T.state.y}}function b(T){return{left:T.left,top:T.top,right:T.right,bottom:T.bottom}}function _(T){const M=T.findDOMNode();if(!M)throw new Error("<DraggableCore>: Unmounted during event!");return M}return _n}var ni={},$a={},ch;function Ym(){if(ch)return $a;ch=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.default=e;function e(){}return $a}var fh;function $R(){if(fh)return ni;fh=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=void 0;var e=b(_e),n=f(Xn()),r=f(Nr),i=sc(),a=qm(),u=Ds(),l=f(Ym());function f(m){return m&&m.__esModule?m:{default:m}}function p(m){if(typeof WeakMap!="function")return null;var w=new WeakMap,h=new WeakMap;return(p=function(y){return y?h:w})(m)}function b(m,w){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=p(w);if(h&&h.has(m))return h.get(m);var y={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var k=C?Object.getOwnPropertyDescriptor(m,v):null;k&&(k.get||k.set)?Object.defineProperty(y,v,k):y[v]=m[v]}return y.default=m,h&&h.set(m,y),y}function _(m,w,h){return w=T(w),w in m?Object.defineProperty(m,w,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[w]=h,m}function T(m){var w=M(m,"string");return typeof w=="symbol"?w:String(w)}function M(m,w){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var y=h.call(m,w);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(m)}const S={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let O=S.mouse,d=class extends e.Component{constructor(){super(...arguments),_(this,"dragging",!1),_(this,"lastX",NaN),_(this,"lastY",NaN),_(this,"touchIdentifier",null),_(this,"mounted",!1),_(this,"handleDragStart",m=>{if(this.props.onMouseDown(m),!this.props.allowAnyClick&&typeof m.button=="number"&&m.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:h}=w;if(this.props.disabled||!(m.target instanceof h.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(m.target,this.props.handle,w)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(m.target,this.props.cancel,w))return;m.type==="touchstart"&&m.preventDefault();const y=(0,i.getTouchIdentifier)(m);this.touchIdentifier=y;const C=(0,a.getControlPosition)(m,y,this);if(C==null)return;const{x:v,y:k}=C,j=(0,a.createCoreData)(this,v,k);(0,l.default)("DraggableCore: handleDragStart: %j",j),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(m,j)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(h),this.dragging=!0,this.lastX=v,this.lastY=k,(0,i.addEvent)(h,O.move,this.handleDrag),(0,i.addEvent)(h,O.stop,this.handleDragStop))}),_(this,"handleDrag",m=>{const w=(0,a.getControlPosition)(m,this.touchIdentifier,this);if(w==null)return;let{x:h,y}=w;if(Array.isArray(this.props.grid)){let v=h-this.lastX,k=y-this.lastY;if([v,k]=(0,a.snapToGrid)(this.props.grid,v,k),!v&&!k)return;h=this.lastX+v,y=this.lastY+k}const C=(0,a.createCoreData)(this,h,y);if((0,l.default)("DraggableCore: handleDrag: %j",C),this.props.onDrag(m,C)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const v=document.createEvent("MouseEvents");v.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(v)}return}this.lastX=h,this.lastY=y}),_(this,"handleDragStop",m=>{if(!this.dragging)return;const w=(0,a.getControlPosition)(m,this.touchIdentifier,this);if(w==null)return;let{x:h,y}=w;if(Array.isArray(this.props.grid)){let k=h-this.lastX||0,j=y-this.lastY||0;[k,j]=(0,a.snapToGrid)(this.props.grid,k,j),h=this.lastX+k,y=this.lastY+j}const C=(0,a.createCoreData)(this,h,y);if(this.props.onStop(m,C)===!1||this.mounted===!1)return!1;const v=this.findDOMNode();v&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(v.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",C),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,v&&((0,l.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(v.ownerDocument,O.move,this.handleDrag),(0,i.removeEvent)(v.ownerDocument,O.stop,this.handleDragStop))}),_(this,"onMouseDown",m=>(O=S.mouse,this.handleDragStart(m))),_(this,"onMouseUp",m=>(O=S.mouse,this.handleDragStop(m))),_(this,"onTouchStart",m=>(O=S.touch,this.handleDragStart(m))),_(this,"onTouchEnd",m=>(O=S.touch,this.handleDragStop(m)))}componentDidMount(){this.mounted=!0;const m=this.findDOMNode();m&&(0,i.addEvent)(m,S.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const m=this.findDOMNode();if(m){const{ownerDocument:w}=m;(0,i.removeEvent)(w,S.mouse.move,this.handleDrag),(0,i.removeEvent)(w,S.touch.move,this.handleDrag),(0,i.removeEvent)(w,S.mouse.stop,this.handleDragStop),(0,i.removeEvent)(w,S.touch.stop,this.handleDragStop),(0,i.removeEvent)(m,S.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(w)}}findDOMNode(){var m,w;return(m=this.props)!==null&&m!==void 0&&m.nodeRef?(w=this.props)===null||w===void 0||(w=w.nodeRef)===null||w===void 0?void 0:w.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return ni.default=d,_(d,"displayName","DraggableCore"),_(d,"propTypes",{allowAnyClick:n.default.bool,children:n.default.node.isRequired,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:function(m,w){if(m[w]&&m[w].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:n.default.arrayOf(n.default.number),handle:n.default.string,cancel:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),_(d,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),ni}var ph;function IR(){return ph||(ph=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var n=M(_e),r=_(Xn()),i=_(Nr),a=_(NR),u=sc(),l=qm(),f=Ds(),p=_($R()),b=_(Ym());function _(h){return h&&h.__esModule?h:{default:h}}function T(h){if(typeof WeakMap!="function")return null;var y=new WeakMap,C=new WeakMap;return(T=function(v){return v?C:y})(h)}function M(h,y){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var C=T(y);if(C&&C.has(h))return C.get(h);var v={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in h)if(j!=="default"&&Object.prototype.hasOwnProperty.call(h,j)){var z=k?Object.getOwnPropertyDescriptor(h,j):null;z&&(z.get||z.set)?Object.defineProperty(v,j,z):v[j]=h[j]}return v.default=h,C&&C.set(h,v),v}function S(){return S=Object.assign?Object.assign.bind():function(h){for(var y=1;y<arguments.length;y++){var C=arguments[y];for(var v in C)Object.prototype.hasOwnProperty.call(C,v)&&(h[v]=C[v])}return h},S.apply(this,arguments)}function O(h,y,C){return y=d(y),y in h?Object.defineProperty(h,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):h[y]=C,h}function d(h){var y=m(h,"string");return typeof y=="symbol"?y:String(y)}function m(h,y){if(typeof h!="object"||h===null)return h;var C=h[Symbol.toPrimitive];if(C!==void 0){var v=C.call(h,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(h)}class w extends n.Component{static getDerivedStateFromProps(y,C){let{position:v}=y,{prevPropsPosition:k}=C;return v&&(!k||v.x!==k.x||v.y!==k.y)?((0,b.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:k}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(y){super(y),O(this,"onDragStart",(C,v)=>{if((0,b.default)("Draggable: onDragStart: %j",v),this.props.onStart(C,(0,l.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(C,v)=>{if(!this.state.dragging)return!1;(0,b.default)("Draggable: onDrag: %j",v);const k=(0,l.createDraggableData)(this,v),j={x:k.x,y:k.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:F}=j;j.x+=this.state.slackX,j.y+=this.state.slackY;const[X,Y]=(0,l.getBoundPosition)(this,j.x,j.y);j.x=X,j.y=Y,j.slackX=this.state.slackX+(z-j.x),j.slackY=this.state.slackY+(F-j.y),k.x=j.x,k.y=j.y,k.deltaX=j.x-this.state.x,k.deltaY=j.y-this.state.y}if(this.props.onDrag(C,k)===!1)return!1;this.setState(j)}),O(this,"onDragStop",(C,v)=>{if(!this.state.dragging||this.props.onStop(C,(0,l.createDraggableData)(this,v))===!1)return!1;(0,b.default)("Draggable: onDragStop: %j",v);const k={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:j,y:z}=this.props.position;k.x=j,k.y=z}this.setState(k)}),this.state={dragging:!1,dragged:!1,x:y.position?y.position.x:y.defaultPosition.x,y:y.position?y.position.y:y.defaultPosition.y,prevPropsPosition:{...y.position},slackX:0,slackY:0,isElementSVG:!1},y.position&&!(y.onDrag||y.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var y,C;return(y=(C=this.props)===null||C===void 0||(C=C.nodeRef)===null||C===void 0?void 0:C.current)!==null&&y!==void 0?y:i.default.findDOMNode(this)}render(){const{axis:y,bounds:C,children:v,defaultPosition:k,defaultClassName:j,defaultClassNameDragging:z,defaultClassNameDragged:F,position:X,positionOffset:Y,scale:E,...V}=this.props;let U={},Q=null;const Z=!X||this.state.dragging,ue=X||k,ce={x:(0,l.canDragX)(this)&&Z?this.state.x:ue.x,y:(0,l.canDragY)(this)&&Z?this.state.y:ue.y};this.state.isElementSVG?Q=(0,u.createSVGTransform)(ce,Y):U=(0,u.createCSSTransform)(ce,Y);const de=(0,a.default)(v.props.className||"",j,{[z]:this.state.dragging,[F]:this.state.dragged});return n.createElement(p.default,S({},V,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(v),{className:de,style:{...v.props.style,...U},transform:Q}))}}e.default=w,O(w,"displayName","Draggable"),O(w,"propTypes",{...p.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:f.dontSetMe,style:f.dontSetMe,transform:f.dontSetMe}),O(w,"defaultProps",{...p.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(oh)),oh}var dh;function uc(){if(dh)return ti.exports;dh=1;const{default:e,DraggableCore:n}=IR();return ti.exports=e,ti.exports.default=e,ti.exports.DraggableCore=n,ti.exports}var Ia={exports:{}},ri={},La={},hh;function LR(){if(hh)return La;hh=1,La.__esModule=!0,La.cloneElement=f;var e=n(_e);function n(p){return p&&p.__esModule?p:{default:p}}function r(p,b){var _=Object.keys(p);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(p);b&&(T=T.filter(function(M){return Object.getOwnPropertyDescriptor(p,M).enumerable})),_.push.apply(_,T)}return _}function i(p){for(var b=1;b<arguments.length;b++){var _=arguments[b]!=null?arguments[b]:{};b%2?r(Object(_),!0).forEach(function(T){a(p,T,_[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(_)):r(Object(_)).forEach(function(T){Object.defineProperty(p,T,Object.getOwnPropertyDescriptor(_,T))})}return p}function a(p,b,_){return b=u(b),b in p?Object.defineProperty(p,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[b]=_,p}function u(p){var b=l(p,"string");return typeof b=="symbol"?b:String(b)}function l(p,b){if(typeof p!="object"||p===null)return p;var _=p[Symbol.toPrimitive];if(_!==void 0){var T=_.call(p,b);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(p)}function f(p,b){return b.style&&p.props.style&&(b.style=i(i({},p.props.style),b.style)),b.className&&p.props.className&&(b.className=p.props.className+" "+b.className),e.default.cloneElement(p,b)}return La}var oi={},mh;function Xm(){if(mh)return oi;mh=1,oi.__esModule=!0,oi.resizableProps=void 0;var e=n(Xn());uc();function n(i){return i&&i.__esModule?i:{default:i}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=a[0];if(l.axis==="both"||l.axis==="y"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=a[0];if(l.axis==="both"||l.axis==="x"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)}};return oi.resizableProps=r,oi}var gh;function Gm(){if(gh)return ri;gh=1,ri.__esModule=!0,ri.default=void 0;var e=l(_e),n=uc(),r=LR(),i=Xm(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function u(w){if(typeof WeakMap!="function")return null;var h=new WeakMap,y=new WeakMap;return(u=function(C){return C?y:h})(w)}function l(w,h){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=u(h);if(y&&y.has(w))return y.get(w);var C={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in w)if(k!=="default"&&Object.prototype.hasOwnProperty.call(w,k)){var j=v?Object.getOwnPropertyDescriptor(w,k):null;j&&(j.get||j.set)?Object.defineProperty(C,k,j):C[k]=w[k]}return C.default=w,y&&y.set(w,C),C}function f(){return f=Object.assign?Object.assign.bind():function(w){for(var h=1;h<arguments.length;h++){var y=arguments[h];for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(w[C]=y[C])}return w},f.apply(this,arguments)}function p(w,h){if(w==null)return{};var y={},C=Object.keys(w),v,k;for(k=0;k<C.length;k++)v=C[k],!(h.indexOf(v)>=0)&&(y[v]=w[v]);return y}function b(w,h){var y=Object.keys(w);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(w);h&&(C=C.filter(function(v){return Object.getOwnPropertyDescriptor(w,v).enumerable})),y.push.apply(y,C)}return y}function _(w){for(var h=1;h<arguments.length;h++){var y=arguments[h]!=null?arguments[h]:{};h%2?b(Object(y),!0).forEach(function(C){T(w,C,y[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(y)):b(Object(y)).forEach(function(C){Object.defineProperty(w,C,Object.getOwnPropertyDescriptor(y,C))})}return w}function T(w,h,y){return h=M(h),h in w?Object.defineProperty(w,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[h]=y,w}function M(w){var h=S(w,"string");return typeof h=="symbol"?h:String(h)}function S(w,h){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var C=y.call(w,h);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(w)}function O(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,d(w,h)}function d(w,h){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,C){return y.__proto__=C,y},d(w,h)}var m=function(w){O(h,w);function h(){for(var C,v=arguments.length,k=new Array(v),j=0;j<v;j++)k[j]=arguments[j];return C=w.call.apply(w,[this].concat(k))||this,C.handleRefs={},C.lastHandleRect=null,C.slack=null,C}var y=h.prototype;return y.componentWillUnmount=function(){this.resetData()},y.resetData=function(){this.lastHandleRect=this.slack=null},y.runConstraints=function(C,v){var k=this.props,j=k.minConstraints,z=k.maxConstraints,F=k.lockAspectRatio;if(!j&&!z&&!F)return[C,v];if(F){var X=this.props.width/this.props.height,Y=C-this.props.width,E=v-this.props.height;Math.abs(Y)>Math.abs(E*X)?v=C/X:C=v*X}var V=C,U=v,Q=this.slack||[0,0],Z=Q[0],ue=Q[1];return C+=Z,v+=ue,j&&(C=Math.max(j[0],C),v=Math.max(j[1],v)),z&&(C=Math.min(z[0],C),v=Math.min(z[1],v)),this.slack=[Z+(V-C),ue+(U-v)],[C,v]},y.resizeHandler=function(C,v){var k=this;return function(j,z){var F=z.node,X=z.deltaX,Y=z.deltaY;C==="onResizeStart"&&k.resetData();var E=(k.props.axis==="both"||k.props.axis==="x")&&v!=="n"&&v!=="s",V=(k.props.axis==="both"||k.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!E&&!V)){var U=v[0],Q=v[v.length-1],Z=F.getBoundingClientRect();if(k.lastHandleRect!=null){if(Q==="w"){var ue=Z.left-k.lastHandleRect.left;X+=ue}if(U==="n"){var ce=Z.top-k.lastHandleRect.top;Y+=ce}}k.lastHandleRect=Z,Q==="w"&&(X=-X),U==="n"&&(Y=-Y);var de=k.props.width+(E?X/k.props.transformScale:0),G=k.props.height+(V?Y/k.props.transformScale:0),P=k.runConstraints(de,G);de=P[0],G=P[1];var K=de!==k.props.width||G!==k.props.height,se=typeof k.props[C]=="function"?k.props[C]:null,ie=C==="onResize"&&!K;se&&!ie&&(j.persist==null||j.persist(),se(j,{node:F,size:{width:de,height:G},handle:v})),C==="onResizeStop"&&k.resetData()}}},y.renderResizeHandle=function(C,v){var k=this.props.handle;if(!k)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+C,ref:v});if(typeof k=="function")return k(C,v);var j=typeof k.type=="string",z=_({ref:v},j?{}:{handleAxis:C});return e.cloneElement(k,z)},y.render=function(){var C=this,v=this.props,k=v.children,j=v.className,z=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var F=v.resizeHandles;v.transformScale;var X=p(v,a);return(0,r.cloneElement)(k,_(_({},X),{},{className:(j?j+" ":"")+"react-resizable",children:[].concat(k.props.children,F.map(function(Y){var E,V=(E=C.handleRefs[Y])!=null?E:C.handleRefs[Y]=e.createRef();return e.createElement(n.DraggableCore,f({},z,{nodeRef:V,key:"resizableHandle-"+Y,onStop:C.resizeHandler("onResizeStop",Y),onStart:C.resizeHandler("onResizeStart",Y),onDrag:C.resizeHandler("onResize",Y)}),C.renderResizeHandle(Y,V))}))}))},h}(e.Component);return ri.default=m,m.propTypes=i.resizableProps,m.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},ri}var ii={},yh;function UR(){if(yh)return ii;yh=1,ii.__esModule=!0,ii.default=void 0;var e=f(_e),n=u(Xn()),r=u(Gm()),i=Xm(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function u(h){return h&&h.__esModule?h:{default:h}}function l(h){if(typeof WeakMap!="function")return null;var y=new WeakMap,C=new WeakMap;return(l=function(v){return v?C:y})(h)}function f(h,y){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var C=l(y);if(C&&C.has(h))return C.get(h);var v={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in h)if(j!=="default"&&Object.prototype.hasOwnProperty.call(h,j)){var z=k?Object.getOwnPropertyDescriptor(h,j):null;z&&(z.get||z.set)?Object.defineProperty(v,j,z):v[j]=h[j]}return v.default=h,C&&C.set(h,v),v}function p(){return p=Object.assign?Object.assign.bind():function(h){for(var y=1;y<arguments.length;y++){var C=arguments[y];for(var v in C)Object.prototype.hasOwnProperty.call(C,v)&&(h[v]=C[v])}return h},p.apply(this,arguments)}function b(h,y){var C=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);y&&(v=v.filter(function(k){return Object.getOwnPropertyDescriptor(h,k).enumerable})),C.push.apply(C,v)}return C}function _(h){for(var y=1;y<arguments.length;y++){var C=arguments[y]!=null?arguments[y]:{};y%2?b(Object(C),!0).forEach(function(v){T(h,v,C[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(C)):b(Object(C)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(C,v))})}return h}function T(h,y,C){return y=M(y),y in h?Object.defineProperty(h,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):h[y]=C,h}function M(h){var y=S(h,"string");return typeof y=="symbol"?y:String(y)}function S(h,y){if(typeof h!="object"||h===null)return h;var C=h[Symbol.toPrimitive];if(C!==void 0){var v=C.call(h,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(h)}function O(h,y){if(h==null)return{};var C={},v=Object.keys(h),k,j;for(j=0;j<v.length;j++)k=v[j],!(y.indexOf(k)>=0)&&(C[k]=h[k]);return C}function d(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,m(h,y)}function m(h,y){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,v){return C.__proto__=v,C},m(h,y)}var w=function(h){d(y,h);function y(){for(var v,k=arguments.length,j=new Array(k),z=0;z<k;z++)j[z]=arguments[z];return v=h.call.apply(h,[this].concat(j))||this,v.state={width:v.props.width,height:v.props.height,propsWidth:v.props.width,propsHeight:v.props.height},v.onResize=function(F,X){var Y=X.size;v.props.onResize?(F.persist==null||F.persist(),v.setState(Y,function(){return v.props.onResize&&v.props.onResize(F,X)})):v.setState(Y)},v}y.getDerivedStateFromProps=function(v,k){return k.propsWidth!==v.width||k.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var C=y.prototype;return C.render=function(){var v=this.props,k=v.handle,j=v.handleSize;v.onResize;var z=v.onResizeStart,F=v.onResizeStop,X=v.draggableOpts,Y=v.minConstraints,E=v.maxConstraints,V=v.lockAspectRatio,U=v.axis;v.width,v.height;var Q=v.resizeHandles,Z=v.style,ue=v.transformScale,ce=O(v,a);return e.createElement(r.default,{axis:U,draggableOpts:X,handle:k,handleSize:j,height:this.state.height,lockAspectRatio:V,maxConstraints:E,minConstraints:Y,onResizeStart:z,onResize:this.onResize,onResizeStop:F,resizeHandles:Q,transformScale:ue,width:this.state.width},e.createElement("div",p({},ce,{style:_(_({},Z),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},y}(e.Component);return ii.default=w,w.propTypes=_(_({},i.resizableProps),{},{children:n.default.element}),ii}var vh;function BR(){return vh||(vh=1,Ia.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Ia.exports.Resizable=Gm().default,Ia.exports.ResizableBox=UR().default),Ia.exports}var Wn={},bh;function Jm(){if(bh)return Wn;bh=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.resizeHandleType=Wn.resizeHandleAxesType=Wn.default=void 0;var e=r(Xn()),n=r(_e);function r(u){return u&&u.__esModule?u:{default:u}}const i=Wn.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),a=Wn.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return Wn.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(u){u.verticalCompact===!1&&process.env.NODE_ENV!=="production"&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(u){var l=u.layout;l!==void 0&&Ro().validateLayout(l,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:i,resizeHandle:a,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(u,l){const f=u[l],p={};n.default.Children.forEach(f,function(b){if((b==null?void 0:b.key)!=null){if(p[b.key])throw new Error('Duplicate child key "'+b.key+'" found! This will cause problems in ReactGridLayout.');p[b.key]=!0}})},innerRef:e.default.any},Wn}var wh;function VR(){if(wh)return ei;wh=1,Object.defineProperty(ei,"__esModule",{value:!0}),ei.default=void 0;var e=p(_e),n=p(Xn()),r=uc(),i=BR(),a=Ro(),u=ac(),l=Jm(),f=p(ic());function p(S){return S&&S.__esModule?S:{default:S}}function b(S,O,d){return O=_(O),O in S?Object.defineProperty(S,O,{value:d,enumerable:!0,configurable:!0,writable:!0}):S[O]=d,S}function _(S){var O=T(S,"string");return typeof O=="symbol"?O:String(O)}function T(S,O){if(typeof S!="object"||S===null)return S;var d=S[Symbol.toPrimitive];if(d!==void 0){var m=d.call(S,O);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(S)}let M=class extends e.default.Component{constructor(){super(...arguments),b(this,"state",{resizing:null,dragging:null,className:""}),b(this,"elementRef",e.default.createRef()),b(this,"onDragStart",(S,O)=>{let{node:d}=O;const{onDragStart:m,transformScale:w}=this.props;if(!m)return;const h={top:0,left:0},{offsetParent:y}=d;if(!y)return;const C=y.getBoundingClientRect(),v=d.getBoundingClientRect(),k=v.left/w,j=C.left/w,z=v.top/w,F=C.top/w;h.left=k-j+y.scrollLeft,h.top=z-F+y.scrollTop,this.setState({dragging:h});const{x:X,y:Y}=(0,u.calcXY)(this.getPositionParams(),h.top,h.left,this.props.w,this.props.h);return m.call(this,this.props.i,X,Y,{e:S,node:d,newPosition:h})}),b(this,"onDrag",(S,O)=>{let{node:d,deltaX:m,deltaY:w}=O;const{onDrag:h}=this.props;if(!h)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let y=this.state.dragging.top+w,C=this.state.dragging.left+m;const{isBounded:v,i:k,w:j,h:z,containerWidth:F}=this.props,X=this.getPositionParams();if(v){const{offsetParent:U}=d;if(U){const{margin:Q,rowHeight:Z,containerPadding:ue}=this.props,ce=U.clientHeight-(0,u.calcGridItemWHPx)(z,Z,Q[1]);y=(0,u.clamp)(y-ue[1],0,ce);const de=(0,u.calcGridColWidth)(X),G=F-(0,u.calcGridItemWHPx)(j,de,Q[0]);C=(0,u.clamp)(C-ue[0],0,G)}}const Y={top:y,left:C};this.setState({dragging:Y});const{x:E,y:V}=(0,u.calcXY)(X,y,C,j,z);return h.call(this,k,E,V,{e:S,node:d,newPosition:Y})}),b(this,"onDragStop",(S,O)=>{let{node:d}=O;const{onDragStop:m}=this.props;if(!m)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w,h,i:y}=this.props,{left:C,top:v}=this.state.dragging,k={top:v,left:C};this.setState({dragging:null});const{x:j,y:z}=(0,u.calcXY)(this.getPositionParams(),v,C,w,h);return m.call(this,y,j,z,{e:S,node:d,newPosition:k})}),b(this,"onResizeStop",(S,O,d)=>this.onResizeHandler(S,O,d,"onResizeStop")),b(this,"onResizeStart",(S,O,d)=>this.onResizeHandler(S,O,d,"onResizeStart")),b(this,"onResize",(S,O,d)=>this.onResizeHandler(S,O,d,"onResize"))}shouldComponentUpdate(S,O){if(this.props.children!==S.children||this.props.droppingPosition!==S.droppingPosition)return!0;const d=(0,u.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),m=(0,u.calcGridItemPosition)(this.getPositionParams(S),S.x,S.y,S.w,S.h,O);return!(0,a.fastPositionEqual)(d,m)||this.props.useCSSTransforms!==S.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(S){this.moveDroppingItem(S)}moveDroppingItem(S){const{droppingPosition:O}=this.props;if(!O)return;const d=this.elementRef.current;if(!d)return;const m=S.droppingPosition||{left:0,top:0},{dragging:w}=this.state,h=w&&O.left!==m.left||O.top!==m.top;if(!w)this.onDragStart(O.e,{node:d,deltaX:O.left,deltaY:O.top});else if(h){const y=O.left-w.left,C=O.top-w.top;this.onDrag(O.e,{node:d,deltaX:y,deltaY:C})}}getPositionParams(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:S.cols,containerPadding:S.containerPadding,containerWidth:S.containerWidth,margin:S.margin,maxRows:S.maxRows,rowHeight:S.rowHeight}}createStyle(S){const{usePercentages:O,containerWidth:d,useCSSTransforms:m}=this.props;let w;return m?w=(0,a.setTransform)(S):(w=(0,a.setTopLeft)(S),O&&(w.left=(0,a.perc)(S.left/d),w.width=(0,a.perc)(S.width/d))),w}mixinDraggable(S,O){return e.default.createElement(r.DraggableCore,{disabled:!O,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},S)}curryResizeHandler(S,O){return(d,m)=>O(d,m,S)}mixinResizable(S,O,d){const{cols:m,minW:w,minH:h,maxW:y,maxH:C,transformScale:v,resizeHandles:k,resizeHandle:j}=this.props,z=this.getPositionParams(),F=(0,u.calcGridItemPosition)(z,0,0,m,0).width,X=(0,u.calcGridItemPosition)(z,0,0,w,h),Y=(0,u.calcGridItemPosition)(z,0,0,y,C),E=[X.width,X.height],V=[Math.min(Y.width,F),Math.min(Y.height,1/0)];return e.default.createElement(i.Resizable,{draggableOpts:{disabled:!d},className:d?void 0:"react-resizable-hide",width:O.width,height:O.height,minConstraints:E,maxConstraints:V,onResizeStop:this.curryResizeHandler(O,this.onResizeStop),onResizeStart:this.curryResizeHandler(O,this.onResizeStart),onResize:this.curryResizeHandler(O,this.onResize),transformScale:v,resizeHandles:k,handle:j},S)}onResizeHandler(S,O,d,m){let{node:w,size:h,handle:y}=O;const C=this.props[m];if(!C)return;const{x:v,y:k,i:j,maxH:z,minH:F,containerWidth:X}=this.props,{minW:Y,maxW:E}=this.props;let V=h;w&&(V=(0,a.resizeItemInDirection)(y,d,h,X),this.setState({resizing:m==="onResizeStop"?null:V}));let{w:U,h:Q}=(0,u.calcWH)(this.getPositionParams(),V.width,V.height,v,k,y);U=(0,u.clamp)(U,Math.max(Y,1),E),Q=(0,u.clamp)(Q,F,z),C.call(this,j,U,Q,{e:S,node:w,size:V,handle:y})}render(){const{x:S,y:O,w:d,h:m,isDraggable:w,isResizable:h,droppingPosition:y,useCSSTransforms:C}=this.props,v=(0,u.calcGridItemPosition)(this.getPositionParams(),S,O,d,m,this.state),k=e.default.Children.only(this.props.children);let j=e.default.cloneElement(k,{ref:this.elementRef,className:(0,f.default)("react-grid-item",k.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":w,"react-draggable-dragging":!!this.state.dragging,dropping:!!y,cssTransforms:C}),style:{...this.props.style,...k.props.style,...this.createStyle(v)}});return j=this.mixinResizable(j,v,h),j=this.mixinDraggable(j,w),j}};return ei.default=M,b(M,"propTypes",{children:n.default.element,cols:n.default.number.isRequired,containerWidth:n.default.number.isRequired,rowHeight:n.default.number.isRequired,margin:n.default.array.isRequired,maxRows:n.default.number.isRequired,containerPadding:n.default.array.isRequired,x:n.default.number.isRequired,y:n.default.number.isRequired,w:n.default.number.isRequired,h:n.default.number.isRequired,minW:function(S,O){const d=S[O];if(typeof d!="number")return new Error("minWidth not Number");if(d>S.w||d>S.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(S,O){const d=S[O];if(typeof d!="number")return new Error("maxWidth not Number");if(d<S.w||d<S.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(S,O){const d=S[O];if(typeof d!="number")return new Error("minHeight not Number");if(d>S.h||d>S.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(S,O){const d=S[O];if(typeof d!="number")return new Error("maxHeight not Number");if(d<S.h||d<S.minH)return new Error("maxHeight smaller than item height/minHeight")},i:n.default.string.isRequired,resizeHandles:l.resizeHandleAxesType,resizeHandle:l.resizeHandleType,onDragStop:n.default.func,onDragStart:n.default.func,onDrag:n.default.func,onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,isDraggable:n.default.bool.isRequired,isResizable:n.default.bool.isRequired,isBounded:n.default.bool.isRequired,static:n.default.bool,useCSSTransforms:n.default.bool.isRequired,transformScale:n.default.number,className:n.default.string,handle:n.default.string,cancel:n.default.string,droppingPosition:n.default.shape({e:n.default.object.isRequired,left:n.default.number.isRequired,top:n.default.number.isRequired})}),b(M,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),ei}var Sh;function Km(){if(Sh)return Qo;Sh=1,Object.defineProperty(Qo,"__esModule",{value:!0}),Qo.default=void 0;var e=b(_e),n=oc(),r=f(ic()),i=Ro(),a=ac(),u=f(VR()),l=f(Jm());function f(m){return m&&m.__esModule?m:{default:m}}function p(m){if(typeof WeakMap!="function")return null;var w=new WeakMap,h=new WeakMap;return(p=function(y){return y?h:w})(m)}function b(m,w){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=p(w);if(h&&h.has(m))return h.get(m);var y={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var k=C?Object.getOwnPropertyDescriptor(m,v):null;k&&(k.get||k.set)?Object.defineProperty(y,v,k):y[v]=m[v]}return y.default=m,h&&h.set(m,y),y}function _(m,w,h){return w=T(w),w in m?Object.defineProperty(m,w,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[w]=h,m}function T(m){var w=M(m,"string");return typeof w=="symbol"?w:String(w)}function M(m,w){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var y=h.call(m,w);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(m)}const S="react-grid-layout";let O=!1;try{O=/firefox/i.test(navigator.userAgent)}catch{}class d extends e.Component{constructor(){super(...arguments),_(this,"state",{activeDrag:null,layout:(0,i.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,i.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),_(this,"dragEnterCounter",0),_(this,"onDragStart",(w,h,y,C)=>{let{e:v,node:k}=C;const{layout:j}=this.state,z=(0,i.getLayoutItem)(j,w);if(!z)return;const F={w:z.w,h:z.h,x:z.x,y:z.y,placeholder:!0,i:w};return this.setState({oldDragItem:(0,i.cloneLayoutItem)(z),oldLayout:j,activeDrag:F}),this.props.onDragStart(j,z,z,null,v,k)}),_(this,"onDrag",(w,h,y,C)=>{let{e:v,node:k}=C;const{oldDragItem:j}=this.state;let{layout:z}=this.state;const{cols:F,allowOverlap:X,preventCollision:Y}=this.props,E=(0,i.getLayoutItem)(z,w);if(!E)return;const V={w:E.w,h:E.h,x:E.x,y:E.y,placeholder:!0,i:w};z=(0,i.moveElement)(z,E,h,y,!0,Y,(0,i.compactType)(this.props),F,X),this.props.onDrag(z,j,E,V,v,k),this.setState({layout:X?z:(0,i.compact)(z,(0,i.compactType)(this.props),F),activeDrag:V})}),_(this,"onDragStop",(w,h,y,C)=>{let{e:v,node:k}=C;if(!this.state.activeDrag)return;const{oldDragItem:j}=this.state;let{layout:z}=this.state;const{cols:F,preventCollision:X,allowOverlap:Y}=this.props,E=(0,i.getLayoutItem)(z,w);if(!E)return;z=(0,i.moveElement)(z,E,h,y,!0,X,(0,i.compactType)(this.props),F,Y);const V=Y?z:(0,i.compact)(z,(0,i.compactType)(this.props),F);this.props.onDragStop(V,j,E,null,v,k);const{oldLayout:U}=this.state;this.setState({activeDrag:null,layout:V,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(V,U)}),_(this,"onResizeStart",(w,h,y,C)=>{let{e:v,node:k}=C;const{layout:j}=this.state,z=(0,i.getLayoutItem)(j,w);z&&(this.setState({oldResizeItem:(0,i.cloneLayoutItem)(z),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(j,z,z,null,v,k))}),_(this,"onResize",(w,h,y,C)=>{let{e:v,node:k,size:j,handle:z}=C;const{oldResizeItem:F}=this.state,{layout:X}=this.state,{cols:Y,preventCollision:E,allowOverlap:V}=this.props;let U=!1,Q,Z,ue;const[ce,de]=(0,i.withLayoutItem)(X,w,P=>{let K;return Z=P.x,ue=P.y,["sw","w","nw","n","ne"].indexOf(z)!==-1&&(["sw","nw","w"].indexOf(z)!==-1&&(Z=P.x+(P.w-h),h=P.x!==Z&&Z<0?P.w:h,Z=Z<0?0:Z),["ne","n","nw"].indexOf(z)!==-1&&(ue=P.y+(P.h-y),y=P.y!==ue&&ue<0?P.h:y,ue=ue<0?0:ue),U=!0),E&&!V&&(K=(0,i.getAllCollisions)(X,{...P,w:h,h:y,x:Z,y:ue}).filter(se=>se.i!==P.i).length>0,K&&(ue=P.y,y=P.h,Z=P.x,h=P.w,U=!1)),P.w=h,P.h=y,P});if(!de)return;Q=ce,U&&(Q=(0,i.moveElement)(ce,de,Z,ue,!0,this.props.preventCollision,(0,i.compactType)(this.props),Y,V));const G={w:de.w,h:de.h,x:de.x,y:de.y,static:!0,i:w};this.props.onResize(Q,F,de,G,v,k),this.setState({layout:V?Q:(0,i.compact)(Q,(0,i.compactType)(this.props),Y),activeDrag:G})}),_(this,"onResizeStop",(w,h,y,C)=>{let{e:v,node:k}=C;const{layout:j,oldResizeItem:z}=this.state,{cols:F,allowOverlap:X}=this.props,Y=(0,i.getLayoutItem)(j,w),E=X?j:(0,i.compact)(j,(0,i.compactType)(this.props),F);this.props.onResizeStop(E,z,Y,null,v,k);const{oldLayout:V}=this.state;this.setState({activeDrag:null,layout:E,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(E,V)}),_(this,"onDragOver",w=>{var h;if(w.preventDefault(),w.stopPropagation(),O&&!((h=w.nativeEvent.target)!=null&&h.classList.contains(S)))return!1;const{droppingItem:y,onDropDragOver:C,margin:v,cols:k,rowHeight:j,maxRows:z,width:F,containerPadding:X,transformScale:Y}=this.props,E=C==null?void 0:C(w);if(E===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const V={...y,...E},{layout:U}=this.state,Q=w.currentTarget.getBoundingClientRect(),Z=w.clientX-Q.left,ue=w.clientY-Q.top,ce={left:Z/Y,top:ue/Y,e:w};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:de,top:G}=this.state.droppingPosition;(de!=Z||G!=ue)&&this.setState({droppingPosition:ce})}}else{const de={cols:k,margin:v,maxRows:z,rowHeight:j,containerWidth:F,containerPadding:X||v},G=(0,a.calcXY)(de,ue,Z,V.w,V.h);this.setState({droppingDOMNode:e.createElement("div",{key:V.i}),droppingPosition:ce,layout:[...U,{...V,x:G.x,y:G.y,static:!1,isDraggable:!0}]})}}),_(this,"removeDroppingPlaceholder",()=>{const{droppingItem:w,cols:h}=this.props,{layout:y}=this.state,C=(0,i.compact)(y.filter(v=>v.i!==w.i),(0,i.compactType)(this.props),h,this.props.allowOverlap);this.setState({layout:C,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),_(this,"onDragLeave",w=>{w.preventDefault(),w.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),_(this,"onDragEnter",w=>{w.preventDefault(),w.stopPropagation(),this.dragEnterCounter++}),_(this,"onDrop",w=>{w.preventDefault(),w.stopPropagation();const{droppingItem:h}=this.props,{layout:y}=this.state,C=y.find(v=>v.i===h.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(y,C,w)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(w,h){let y;return h.activeDrag?null:(!(0,n.deepEqual)(w.layout,h.propsLayout)||w.compactType!==h.compactType?y=w.layout:(0,i.childrenEqual)(w.children,h.children)||(y=h.layout),y?{layout:(0,i.synchronizeLayoutWithChildren)(y,w.children,w.cols,(0,i.compactType)(w),w.allowOverlap),compactType:w.compactType,children:w.children,propsLayout:w.layout}:null)}shouldComponentUpdate(w,h){return this.props.children!==w.children||!(0,i.fastRGLPropsEqual)(this.props,w,n.deepEqual)||this.state.activeDrag!==h.activeDrag||this.state.mounted!==h.mounted||this.state.droppingPosition!==h.droppingPosition}componentDidUpdate(w,h){if(!this.state.activeDrag){const y=this.state.layout,C=h.layout;this.onLayoutMaybeChanged(y,C)}}containerHeight(){if(!this.props.autoSize)return;const w=(0,i.bottom)(this.state.layout),h=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return w*this.props.rowHeight+(w-1)*this.props.margin[1]+h*2+"px"}onLayoutMaybeChanged(w,h){h||(h=this.state.layout),(0,n.deepEqual)(h,w)||this.props.onLayoutChange(w)}placeholder(){const{activeDrag:w}=this.state;if(!w)return null;const{width:h,cols:y,margin:C,containerPadding:v,rowHeight:k,maxRows:j,useCSSTransforms:z,transformScale:F}=this.props;return e.createElement(u.default,{w:w.w,h:w.h,x:w.x,y:w.y,i:w.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:h,cols:y,margin:C,containerPadding:v||C,maxRows:j,rowHeight:k,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:z,transformScale:F},e.createElement("div",null))}processGridItem(w,h){if(!w||!w.key)return;const y=(0,i.getLayoutItem)(this.state.layout,String(w.key));if(!y)return null;const{width:C,cols:v,margin:k,containerPadding:j,rowHeight:z,maxRows:F,isDraggable:X,isResizable:Y,isBounded:E,useCSSTransforms:V,transformScale:U,draggableCancel:Q,draggableHandle:Z,resizeHandles:ue,resizeHandle:ce}=this.props,{mounted:de,droppingPosition:G}=this.state,P=typeof y.isDraggable=="boolean"?y.isDraggable:!y.static&&X,K=typeof y.isResizable=="boolean"?y.isResizable:!y.static&&Y,se=y.resizeHandles||ue,ie=P&&E&&y.isBounded!==!1;return e.createElement(u.default,{containerWidth:C,cols:v,margin:k,containerPadding:j||k,maxRows:F,rowHeight:z,cancel:Q,handle:Z,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:P,isResizable:K,isBounded:ie,useCSSTransforms:V&&de,usePercentages:!de,transformScale:U,w:y.w,h:y.h,x:y.x,y:y.y,i:y.i,minH:y.minH,minW:y.minW,maxH:y.maxH,maxW:y.maxW,static:y.static,droppingPosition:h?G:void 0,resizeHandles:se,resizeHandle:ce},w)}render(){const{className:w,style:h,isDroppable:y,innerRef:C}=this.props,v=(0,r.default)(S,w),k={height:this.containerHeight(),...h};return e.createElement("div",{ref:C,className:v,style:k,onDrop:y?this.onDrop:i.noop,onDragLeave:y?this.onDragLeave:i.noop,onDragEnter:y?this.onDragEnter:i.noop,onDragOver:y?this.onDragOver:i.noop},e.Children.map(this.props.children,j=>this.processGridItem(j)),y&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return Qo.default=d,_(d,"displayName","ReactGridLayout"),_(d,"propTypes",l.default),_(d,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:i.noop,onDragStart:i.noop,onDrag:i.noop,onDragStop:i.noop,onResizeStart:i.noop,onResize:i.noop,onResizeStop:i.noop,onDrop:i.noop,onDropDragOver:i.noop}),Qo}var ai={},kr={},xh;function Zm(){if(xh)return kr;xh=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.findOrGenerateResponsiveLayout=i,kr.getBreakpointFromWidth=n,kr.getColsFromBreakpoint=r,kr.sortBreakpoints=a;var e=Ro();function n(u,l){const f=a(u);let p=f[0];for(let b=1,_=f.length;b<_;b++){const T=f[b];l>u[T]&&(p=T)}return p}function r(u,l){if(!l[u])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+u+" is missing!");return l[u]}function i(u,l,f,p,b,_){if(u[f])return(0,e.cloneLayout)(u[f]);let T=u[p];const M=a(l),S=M.slice(M.indexOf(f));for(let O=0,d=S.length;O<d;O++){const m=S[O];if(u[m]){T=u[m];break}}return T=(0,e.cloneLayout)(T||[]),(0,e.compact)((0,e.correctBounds)(T,{cols:b}),_,b)}function a(u){return Object.keys(u).sort(function(l,f){return u[l]-u[f]})}return kr}var _h;function FR(){if(_h)return ai;_h=1,Object.defineProperty(ai,"__esModule",{value:!0}),ai.default=void 0;var e=p(_e),n=l(Xn()),r=oc(),i=Ro(),a=Zm(),u=l(Km());function l(m){return m&&m.__esModule?m:{default:m}}function f(m){if(typeof WeakMap!="function")return null;var w=new WeakMap,h=new WeakMap;return(f=function(y){return y?h:w})(m)}function p(m,w){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=f(w);if(h&&h.has(m))return h.get(m);var y={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var k=C?Object.getOwnPropertyDescriptor(m,v):null;k&&(k.get||k.set)?Object.defineProperty(y,v,k):y[v]=m[v]}return y.default=m,h&&h.set(m,y),y}function b(){return b=Object.assign?Object.assign.bind():function(m){for(var w=1;w<arguments.length;w++){var h=arguments[w];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(m[y]=h[y])}return m},b.apply(this,arguments)}function _(m,w,h){return w=T(w),w in m?Object.defineProperty(m,w,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[w]=h,m}function T(m){var w=M(m,"string");return typeof w=="symbol"?w:String(w)}function M(m,w){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var y=h.call(m,w);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(m)}const S=m=>Object.prototype.toString.call(m);function O(m,w){return m==null?null:Array.isArray(m)?m:m[w]}let d=class extends e.Component{constructor(){super(...arguments),_(this,"state",this.generateInitialState()),_(this,"onLayoutChange",m=>{this.props.onLayoutChange(m,{...this.props.layouts,[this.state.breakpoint]:m})})}generateInitialState(){const{width:m,breakpoints:w,layouts:h,cols:y}=this.props,C=(0,a.getBreakpointFromWidth)(w,m),v=(0,a.getColsFromBreakpoint)(C,y),k=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,a.findOrGenerateResponsiveLayout)(h,w,C,C,v,k),breakpoint:C,cols:v}}static getDerivedStateFromProps(m,w){if(!(0,r.deepEqual)(m.layouts,w.layouts)){const{breakpoint:h,cols:y}=w;return{layout:(0,a.findOrGenerateResponsiveLayout)(m.layouts,m.breakpoints,h,h,y,m.compactType),layouts:m.layouts}}return null}componentDidUpdate(m){(this.props.width!=m.width||this.props.breakpoint!==m.breakpoint||!(0,r.deepEqual)(this.props.breakpoints,m.breakpoints)||!(0,r.deepEqual)(this.props.cols,m.cols))&&this.onWidthChange(m)}onWidthChange(m){const{breakpoints:w,cols:h,layouts:y,compactType:C}=this.props,v=this.props.breakpoint||(0,a.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),k=this.state.breakpoint,j=(0,a.getColsFromBreakpoint)(v,h),z={...y};if(k!==v||m.breakpoints!==w||m.cols!==h){k in z||(z[k]=(0,i.cloneLayout)(this.state.layout));let Y=(0,a.findOrGenerateResponsiveLayout)(z,w,v,k,j,C);Y=(0,i.synchronizeLayoutWithChildren)(Y,this.props.children,j,C,this.props.allowOverlap),z[v]=Y,this.props.onBreakpointChange(v,j),this.props.onLayoutChange(Y,z),this.setState({breakpoint:v,layout:Y,cols:j})}const F=O(this.props.margin,v),X=O(this.props.containerPadding,v);this.props.onWidthChange(this.props.width,F,j,X)}render(){const{breakpoint:m,breakpoints:w,cols:h,layouts:y,margin:C,containerPadding:v,onBreakpointChange:k,onLayoutChange:j,onWidthChange:z,...F}=this.props;return e.createElement(u.default,b({},F,{margin:O(C,this.state.breakpoint),containerPadding:O(v,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return ai.default=d,_(d,"propTypes",{breakpoint:n.default.string,breakpoints:n.default.object,allowOverlap:n.default.bool,cols:n.default.object,margin:n.default.oneOfType([n.default.array,n.default.object]),containerPadding:n.default.oneOfType([n.default.array,n.default.object]),layouts(m,w){if(S(m[w])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+S(m[w]));Object.keys(m[w]).forEach(h=>{if(!(h in m.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,i.validateLayout)(m.layouts[h],"layouts."+h)})},width:n.default.number.isRequired,onBreakpointChange:n.default.func,onLayoutChange:n.default.func,onWidthChange:n.default.func}),_(d,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:i.noop,onLayoutChange:i.noop,onWidthChange:i.noop}),ai}var Ua={},Qm=function(){if(typeof Map<"u")return Map;function e(n,r){var i=-1;return n.some(function(a,u){return a[0]===r?(i=u,!0):!1}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(r){var i=e(this.__entries__,r),a=this.__entries__[i];return a&&a[1]},n.prototype.set=function(r,i){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=i:this.__entries__.push([r,i])},n.prototype.delete=function(r){var i=this.__entries__,a=e(i,r);~a&&i.splice(a,1)},n.prototype.has=function(r){return!!~e(this.__entries__,r)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(r,i){i===void 0&&(i=null);for(var a=0,u=this.__entries__;a<u.length;a++){var l=u[a];r.call(i,l[1],l[0])}},n}()}(),Ml=typeof window<"u"&&typeof document<"u"&&window.document===document,as=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),HR=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(as):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),WR=2;function qR(e,n){var r=!1,i=!1,a=0;function u(){r&&(r=!1,e()),i&&f()}function l(){HR(u)}function f(){var p=Date.now();if(r){if(p-a<WR)return;i=!0}else r=!0,i=!1,setTimeout(l,n);a=p}return f}var YR=20,XR=["top","right","bottom","left","width","height","size","weight"],GR=typeof MutationObserver<"u",JR=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=qR(this.refresh.bind(this),YR)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var r=this.observers_,i=r.indexOf(n);~i&&r.splice(i,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return n.forEach(function(r){return r.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Ml||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),GR?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ml||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var r=n.propertyName,i=r===void 0?"":r,a=XR.some(function(u){return!!~i.indexOf(u)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),eg=function(e,n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];Object.defineProperty(e,a,{value:n[a],enumerable:!1,writable:!1,configurable:!0})}return e},Oo=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||as},tg=js(0,0,0,0);function ss(e){return parseFloat(e)||0}function Oh(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.reduce(function(i,a){var u=e["border-"+a+"-width"];return i+ss(u)},0)}function KR(e){for(var n=["top","right","bottom","left"],r={},i=0,a=n;i<a.length;i++){var u=a[i],l=e["padding-"+u];r[u]=ss(l)}return r}function ZR(e){var n=e.getBBox();return js(0,0,n.width,n.height)}function QR(e){var n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return tg;var i=Oo(e).getComputedStyle(e),a=KR(i),u=a.left+a.right,l=a.top+a.bottom,f=ss(i.width),p=ss(i.height);if(i.boxSizing==="border-box"&&(Math.round(f+u)!==n&&(f-=Oh(i,"left","right")+u),Math.round(p+l)!==r&&(p-=Oh(i,"top","bottom")+l)),!tT(e)){var b=Math.round(f+u)-n,_=Math.round(p+l)-r;Math.abs(b)!==1&&(f-=b),Math.abs(_)!==1&&(p-=_)}return js(a.left,a.top,f,p)}var eT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Oo(e).SVGGraphicsElement}:function(e){return e instanceof Oo(e).SVGElement&&typeof e.getBBox=="function"}}();function tT(e){return e===Oo(e).document.documentElement}function nT(e){return Ml?eT(e)?ZR(e):QR(e):tg}function rT(e){var n=e.x,r=e.y,i=e.width,a=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(u.prototype);return eg(l,{x:n,y:r,width:i,height:a,top:r,right:n+i,bottom:a+r,left:n}),l}function js(e,n,r,i){return{x:e,y:n,width:r,height:i}}var oT=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=js(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=nT(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),iT=function(){function e(n,r){var i=rT(r);eg(this,{target:n,contentRect:i})}return e}(),aT=function(){function e(n,r,i){if(this.activeObservations_=[],this.observations_=new Qm,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=r,this.callbackCtx_=i}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Oo(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)||(r.set(n,new oT(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Oo(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)&&(r.delete(n),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&n.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new iT(i.target,i.broadcastRect())});this.callback_.call(n,r,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ng=typeof WeakMap<"u"?new WeakMap:new Qm,rg=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=JR.getInstance(),i=new aT(n,r,this);ng.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){rg.prototype[e]=function(){var n;return(n=ng.get(this))[e].apply(n,arguments)}});var sT=function(){return typeof as.ResizeObserver<"u"?as.ResizeObserver:rg}();const uT=Object.freeze(Object.defineProperty({__proto__:null,default:sT},Symbol.toStringTag,{value:"Module"})),lT=Vh(uT);var Eh;function cT(){if(Eh)return Ua;Eh=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=M;var e=l(_e),n=a(Xn()),r=a(lT),i=a(ic());function a(S){return S&&S.__esModule?S:{default:S}}function u(S){if(typeof WeakMap!="function")return null;var O=new WeakMap,d=new WeakMap;return(u=function(m){return m?d:O})(S)}function l(S,O){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var d=u(O);if(d&&d.has(S))return d.get(S);var m={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in S)if(h!=="default"&&Object.prototype.hasOwnProperty.call(S,h)){var y=w?Object.getOwnPropertyDescriptor(S,h):null;y&&(y.get||y.set)?Object.defineProperty(m,h,y):m[h]=S[h]}return m.default=S,d&&d.set(S,m),m}function f(){return f=Object.assign?Object.assign.bind():function(S){for(var O=1;O<arguments.length;O++){var d=arguments[O];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(S[m]=d[m])}return S},f.apply(this,arguments)}function p(S,O,d){return O=b(O),O in S?Object.defineProperty(S,O,{value:d,enumerable:!0,configurable:!0,writable:!0}):S[O]=d,S}function b(S){var O=_(S,"string");return typeof O=="symbol"?O:String(O)}function _(S,O){if(typeof S!="object"||S===null)return S;var d=S[Symbol.toPrimitive];if(d!==void 0){var m=d.call(S,O);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(S)}const T="react-grid-layout";function M(S){var O;return O=class extends e.Component{constructor(){super(...arguments),p(this,"state",{width:1280}),p(this,"elementRef",e.createRef()),p(this,"mounted",!1),p(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new r.default(m=>{if(this.elementRef.current instanceof HTMLElement){const w=m[0].contentRect.width;this.setState({width:w})}});const d=this.elementRef.current;d instanceof HTMLElement&&this.resizeObserver.observe(d)}componentWillUnmount(){this.mounted=!1;const d=this.elementRef.current;d instanceof HTMLElement&&this.resizeObserver.unobserve(d),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:d,...m}=this.props;return d&&!this.mounted?e.createElement("div",{className:(0,i.default)(this.props.className,T),style:this.props.style,ref:this.elementRef}):e.createElement(S,f({innerRef:this.elementRef},m,this.state))}},p(O,"defaultProps",{measureBeforeMount:!1}),p(O,"propTypes",{measureBeforeMount:n.default.bool}),O}return Ua}var Ch;function fT(){return Ch||(Ch=1,function(e){e.exports=Km().default,e.exports.utils=Ro(),e.exports.calculateUtils=ac(),e.exports.Responsive=FR().default,e.exports.Responsive.utils=Zm(),e.exports.WidthProvider=cT().default}(Kd)),Kd.exports}var Rh=fT();Rh.WidthProvider(Rh.Responsive);Pt(Pe.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule");Pt(Pe.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows");Pt(Pe.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet");Pt(Pe.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone");var Th;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Th||(Th={}));const pT=Object.freeze({x:0,y:0});var mo;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mo||(mo={}));var Ph;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ph||(Ph={}));var fr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(fr||(fr={}));fr.Space,fr.Enter,fr.Esc,fr.Space,fr.Enter,fr.Tab;var Dh;(function(e){e[e.RightClick=2]="RightClick"})(Dh||(Dh={}));var jh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(jh||(jh={}));var kh;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(kh||(kh={}));mo.Backward+"",mo.Forward+"",mo.Backward+"",mo.Forward+"";var Al;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Al||(Al={}));var Nl;(function(e){e.Optimized="optimized"})(Nl||(Nl={}));Al.WhileDragging,Nl.Optimized;({...pT});var Mh;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Mh||(Mh={}));const dT=e=>{if(!e)return!0;const n=`notification_shown_${e}`;return localStorage.getItem(n)?!1:(localStorage.setItem(n,"true"),!0)};Co.create(e=>({notifications:[],addNotificationData:n=>{n.singular&&!dT(n.singularId)||e(r=>({notifications:[...r.notifications,{...n,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:n=>{e(r=>({notifications:r.notifications.filter(i=>i.id!==`${n}`)}))},clearNotificationsByType:n=>{e(r=>({notifications:r.notifications.filter(i=>i.type!==n)}))}}));Pt(Pe.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");Pt(Pe.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow");Pt(Pe.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const hT=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),mT=e=>e.toLowerCase().replace(/_([a-z])/g,(n,r)=>r.toUpperCase()),Eo=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(r=>Eo(r));if(typeof e!="object")return e;const n={};return Object.entries(e).forEach(([r,i])=>{const a=mT(r);n[a]=Eo(i)}),n},us=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(r=>us(r));if(typeof e!="object")return e;const n={};return Object.entries(e).forEach(([r,i])=>{const a=hT(r);n[a]=us(i)}),n};class gT extends Error{}class lr extends gT{constructor(){super("Zone is an abstract class")}}class og{get type(){throw new lr}get name(){throw new lr}get ianaName(){return this.name}get isUniversal(){throw new lr}offsetName(n,r){throw new lr}formatOffset(n,r){throw new lr}offset(n){throw new lr}equals(n){throw new lr}get isValid(){throw new lr}}const zl=new Map;function yT(e){let n=zl.get(e);return n===void 0&&(n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),zl.set(e,n)),n}const vT={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bT(e,n){const r=e.format(n).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,u,l,f,p,b,_]=i;return[l,a,u,f,p,b,_]}function wT(e,n){const r=e.formatToParts(n),i=[];for(let a=0;a<r.length;a++){const{type:u,value:l}=r[a],f=vT[u];u==="era"?i[f]=l:ks(f)||(i[f]=parseInt(l,10))}return i}const ml=new Map;class ls extends og{static create(n){let r=ml.get(n);return r===void 0&&ml.set(n,r=new ls(n)),r}static resetCache(){ml.clear(),zl.clear()}static isValidSpecifier(n){return this.isValidZone(n)}static isValidZone(n){if(!n)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch{return!1}}constructor(n){super(),this.zoneName=n,this.valid=ls.isValidZone(n)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return _T(n,r,i,this.name)}formatOffset(n,r){return Ya(this.offset(n),r)}offset(n){if(!this.valid)return NaN;const r=new Date(n);if(isNaN(r))return NaN;const i=yT(this.name);let[a,u,l,f,p,b,_]=i.formatToParts?wT(i,r):bT(i,r);f==="BC"&&(a=-Math.abs(a)+1);const T=xT({year:a,month:u,day:l,hour:p===24?0:p,minute:b,second:_,millisecond:0});let M=+r;const S=M%1e3;return M-=S>=0?S:1e3+S,(T-M)/(60*1e3)}equals(n){return n.type==="iana"&&n.name===this.name}get isValid(){return this.valid}}let gl=null;class go extends og{static get utcInstance(){return gl===null&&(gl=new go(0)),gl}static instance(n){return n===0?go.utcInstance:new go(n)}static parseSpecifier(n){if(n){const r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new go(ag(r[1],r[2]))}return null}constructor(n){super(),this.fixed=n}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ya(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ya(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(n,r){return Ya(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(n){return n.type==="fixed"&&n.fixed===this.fixed}get isValid(){return!0}}function ks(e){return typeof e>"u"}function Ba(e,n=2){const r=e<0;let i;return r?i="-"+(""+-e).padStart(n,"0"):i=(""+e).padStart(n,"0"),i}function ig(e){if(!(ks(e)||e===null||e===""))return parseInt(e,10)}function ST(e){if(!(ks(e)||e===null||e==="")){const n=parseFloat("0."+e)*1e3;return Math.floor(n)}}function xT(e){let n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(n=new Date(n),n.setUTCFullYear(e.year,e.month-1,e.day)),+n}function _T(e,n,r,i=null){const a=new Date(e),u={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(u.timeZone=i);const l={timeZoneName:n,...u},f=new Intl.DateTimeFormat(r,l).formatToParts(a).find(p=>p.type.toLowerCase()==="timezonename");return f?f.value:null}function ag(e,n){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const i=parseInt(n,10)||0,a=r<0||Object.is(r,-0)?-i:i;return r*60+a}function Ya(e,n){const r=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(n){case"short":return`${a}${Ba(r,2)}:${Ba(i,2)}`;case"narrow":return`${a}${r}${i>0?`:${i}`:""}`;case"techie":return`${a}${Ba(r,2)}${Ba(i,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}const sg=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function To(...e){const n=e.reduce((r,i)=>r+i.source,"");return RegExp(`^${n}$`)}function Po(...e){return n=>e.reduce(([r,i,a],u)=>{const[l,f,p]=u(n,a);return[{...r,...l},f||i,p]},[{},null,1]).slice(0,2)}function ug(...e){return(n,r)=>{const i={};let a;for(a=0;a<e.length;a++)i[e[a]]=ig(n[r+a]);return[i,null,r+a]}}const lg=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,OT=`(?:${lg.source}?(?:\\[(${sg.source})\\])?)?`,cg=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,fg=RegExp(`${cg.source}${OT}`),lc=RegExp(`(?:[Tt]${fg.source})?`),ET=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,CT=/(\d{4})-?W(\d\d)(?:-?(\d))?/,RT=/(\d{4})-?(\d{3})/,TT=ug("weekYear","weekNumber","weekDay"),PT=ug("year","ordinal"),DT=/(\d{4})-(\d\d)-(\d\d)/,pg=RegExp(`${cg.source} ?(?:${lg.source}|(${sg.source}))?`),jT=RegExp(`(?: ${pg.source})?`);function bo(e,n,r){const i=e[n];return ks(i)?r:ig(i)}function kT(e,n){return[{year:bo(e,n),month:bo(e,n+1,1),day:bo(e,n+2,1)},null,n+3]}function Do(e,n){return[{hours:bo(e,n,0),minutes:bo(e,n+1,0),seconds:bo(e,n+2,0),milliseconds:ST(e[n+3])},null,n+4]}function Pi(e,n){const r=!e[n]&&!e[n+1],i=ag(e[n+1],e[n+2]),a=r?null:go.instance(i);return[{},a,n+3]}function Di(e,n){const r=e[n]?ls.create(e[n]):null;return[{},r,n+1]}To(ET,lc);To(CT,lc);To(RT,lc);To(fg);Po(kT,Do,Pi,Di);Po(TT,Do,Pi,Di);Po(PT,Do,Pi,Di);Po(Do,Pi,Di);Po(Do);To(DT,jT);To(pg);Po(Do,Pi,Di);function ji(e,n,r){if(!n)return e;if(n.startsWith("http://")||n.startsWith("https://")){let l=n;return r&&Object.entries(r).forEach(([f,p])=>{l=l.replace(`:${f}`,String(p))}),l}let i=n;r&&Object.entries(r).forEach(([l,f])=>{i=i.replace(`:${l}`,String(f))});const a=e.endsWith("/")?e.slice(0,-1):e,u=i.startsWith("/")?i:`/${i}`;return`${a}${u}`}let MT=null;const ki=()=>MT;_e.createContext(void 0);const dg=async()=>{var e;try{const n=ki(),r=((e=n==null?void 0:n.users)==null?void 0:e.getCurrent)||"api/users/current/",i=ji((n==null?void 0:n.baseUrl)||"/",r),a=await et.axios.get(i);return Eo(a.data)}catch(n){throw console.error("Error getting current user",n),n}},$l=async e=>{var n;try{const r=ki(),i=((n=r==null?void 0:r.users)==null?void 0:n.get)||"api/users/";let a=ji((r==null?void 0:r.baseUrl)||"/",i);e&&(a+=`?course_id=${e}`);const u=await et.axios.get(a);if(!Array.isArray(u.data))throw new Error("Invalid response data");return u.data.map(l=>Eo(l))}catch(r){throw console.error("Error getting users",r),r}},AT=async e=>{var n;try{const r=ki(),i=((n=r==null?void 0:r.users)==null?void 0:n.post)||"api/users/",a=ji((r==null?void 0:r.baseUrl)||"/",i),u=us(e),l=await et.axios.post(a,u);return Eo(l.data)}catch(r){throw console.error("Error creating user:",r),r}},hg=async e=>{var n,r,i;try{if(!(e!=null&&e.id))throw new Error("Cannot update user: user.id is undefined");const a=ki(),u=((n=a==null?void 0:a.users)==null?void 0:n.put)||"api/users/:id/",l=ji((a==null?void 0:a.baseUrl)||"/",u,{id:e.id}),f=us(e),p=await et.axios.put(l,f);if(!p.data)throw new Error("No data received from server");const b=Eo(p.data);return(i=(r=e.image)==null?void 0:r.large)!=null&&i.startsWith("data:image")&&(b.image={...e.image,...b.image}),b}catch(a){throw console.error("Error updating user:",a),a}},NT=async e=>{try{await et.axios.delete(`api/users/${e}/`)}catch(n){throw console.error("Error deleting user:",n),n}},mg=async()=>{var e;try{const n=ki(),r=((e=n==null?void 0:n.users)==null?void 0:e.logout)||"/auth/lti_logout/",i=ji((n==null?void 0:n.baseUrl)||"/",r);await et.axios.post(i)}catch(n){throw console.error("Error logging out user",n),n}},yl="/static/images/student.png",vl="/static/images/teacher.png",bl="/static/images/guest.png",wl="/static/images/admin.png",Sl=[{id:"1",name:"Teacher User",email:"teacher@edu.com",image:{large:vl,medium:vl,thumbnail:vl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["creator","moderator"]},{id:"2",name:"Student User",email:"student@edu.com",image:{large:yl,medium:yl,thumbnail:yl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["user"]},{id:"3",name:"Guest User",email:"",image:{large:bl,medium:bl,thumbnail:bl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["user"]},{id:"4",name:"Admin User",email:"admin@edu.com",image:{large:wl,medium:wl,thumbnail:wl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["creator","moderator"]}],On=o1(e=>({fetchState:"idle",user:null,userToUpdate:null,testUsers:Sl,users:[],courseUsers:[],setUserToUpdate:n=>e({userToUpdate:n}),setTestUsers:n=>e({testUsers:n}),setUser:n=>e({user:n}),getUser:async()=>{try{e({fetchState:"loading"}),e({testUsers:Sl});const n=await dg();n&&e({user:{...n},fetchState:"idle",testUsers:Sl.filter(r=>r.id!==n.id)})}catch(n){console.error("Error getting user",n),e({fetchState:"error"})}},getUsers:async()=>{try{e({fetchState:"loading"});const n=await $l();e(n?{users:n,fetchState:"idle"}:{fetchState:"error"})}catch{e({fetchState:"error"})}},fetchCourseUsers:async n=>{try{e({fetchState:"loading"});const r=await $l(n);e({courseUsers:r,fetchState:"idle"})}catch{e({fetchState:"error"})}},clearUser:()=>e({user:null}),logout:async()=>{try{return await mg(),e({user:null}),Promise.resolve()}catch(n){return Promise.reject(n)}},updateUser:async n=>{try{e({fetchState:"loading"});const r=await hg(n);return e(i=>{var u;return{fetchState:"idle",userToUpdate:r,user:((u=i.user)==null?void 0:u.id)===r.id?r:i.user}}),Promise.resolve(r)}catch(r){return console.error("Failed to update user:",r),e({fetchState:"error"}),Promise.reject(r)}}}));let Ah=!1;function Ms(){if(Ah)return;const e={getUser:async()=>{await On.getState().getUser()},updateUser:async n=>await On.getState().updateUser(n),setUserToUpdate:n=>{On.getState().setUserToUpdate(n)},fetchCourseUsers:async n=>{await On.getState().fetchCourseUsers(n)},logout:async()=>{await On.getState().logout()},getState:()=>{const n=On.getState();return{user:n.user,courseUsers:n.courseUsers}}};et.userBus.configureStore(e),Ah=!0}var Va={exports:{}},si={};/**
251
+ `,j.getElementsByTagName("head")[0].appendChild(z)),j.body&&v(j.body,"react-draggable-transparent-selection")}function C(j){if(j)try{if(j.body&&k(j.body,"react-draggable-transparent-selection"),j.selection)j.selection.empty();else{const z=(j.defaultView||window).getSelection();z&&z.type!=="Caret"&&z.removeAllRanges()}}catch{}}function v(j,z){j.classList?j.classList.add(z):j.className.match(new RegExp("(?:^|\\s)".concat(z,"(?!\\S)")))||(j.className+=" ".concat(z))}function k(j,z){j.classList?j.classList.remove(z):j.className=j.className.replace(new RegExp("(?:^|\\s)".concat(z,"(?!\\S)"),"g"),"")}return dt}var _n={},lh;function qm(){if(lh)return _n;lh=1,Object.defineProperty(_n,"__esModule",{value:!0}),_n.canDragX=a,_n.canDragY=u,_n.createCoreData=f,_n.createDraggableData=p,_n.getBoundPosition=r,_n.getControlPosition=l,_n.snapToGrid=i;var e=Ds(),n=sc();function r(T,M,S){if(!T.props.bounds)return[M,S];let{bounds:O}=T.props;O=typeof O=="string"?O:b(O);const d=_(T);if(typeof O=="string"){const{ownerDocument:m}=d,w=m.defaultView;let h;if(O==="parent"?h=d.parentNode:h=m.querySelector(O),!(h instanceof w.HTMLElement))throw new Error('Bounds selector "'+O+'" could not find an element.');const y=h,C=w.getComputedStyle(d),v=w.getComputedStyle(y);O={left:-d.offsetLeft+(0,e.int)(v.paddingLeft)+(0,e.int)(C.marginLeft),top:-d.offsetTop+(0,e.int)(v.paddingTop)+(0,e.int)(C.marginTop),right:(0,n.innerWidth)(y)-(0,n.outerWidth)(d)-d.offsetLeft+(0,e.int)(v.paddingRight)-(0,e.int)(C.marginRight),bottom:(0,n.innerHeight)(y)-(0,n.outerHeight)(d)-d.offsetTop+(0,e.int)(v.paddingBottom)-(0,e.int)(C.marginBottom)}}return(0,e.isNum)(O.right)&&(M=Math.min(M,O.right)),(0,e.isNum)(O.bottom)&&(S=Math.min(S,O.bottom)),(0,e.isNum)(O.left)&&(M=Math.max(M,O.left)),(0,e.isNum)(O.top)&&(S=Math.max(S,O.top)),[M,S]}function i(T,M,S){const O=Math.round(M/T[0])*T[0],d=Math.round(S/T[1])*T[1];return[O,d]}function a(T){return T.props.axis==="both"||T.props.axis==="x"}function u(T){return T.props.axis==="both"||T.props.axis==="y"}function l(T,M,S){const O=typeof M=="number"?(0,n.getTouch)(T,M):null;if(typeof M=="number"&&!O)return null;const d=_(S),m=S.props.offsetParent||d.offsetParent||d.ownerDocument.body;return(0,n.offsetXYFromParent)(O||T,m,S.props.scale)}function f(T,M,S){const O=!(0,e.isNum)(T.lastX),d=_(T);return O?{node:d,deltaX:0,deltaY:0,lastX:M,lastY:S,x:M,y:S}:{node:d,deltaX:M-T.lastX,deltaY:S-T.lastY,lastX:T.lastX,lastY:T.lastY,x:M,y:S}}function p(T,M){const S=T.props.scale;return{node:M.node,x:T.state.x+M.deltaX/S,y:T.state.y+M.deltaY/S,deltaX:M.deltaX/S,deltaY:M.deltaY/S,lastX:T.state.x,lastY:T.state.y}}function b(T){return{left:T.left,top:T.top,right:T.right,bottom:T.bottom}}function _(T){const M=T.findDOMNode();if(!M)throw new Error("<DraggableCore>: Unmounted during event!");return M}return _n}var oi={},$a={},ch;function Ym(){if(ch)return $a;ch=1,Object.defineProperty($a,"__esModule",{value:!0}),$a.default=e;function e(){}return $a}var fh;function $R(){if(fh)return oi;fh=1,Object.defineProperty(oi,"__esModule",{value:!0}),oi.default=void 0;var e=b(_e),n=f(Xn()),r=f(Nr),i=sc(),a=qm(),u=Ds(),l=f(Ym());function f(m){return m&&m.__esModule?m:{default:m}}function p(m){if(typeof WeakMap!="function")return null;var w=new WeakMap,h=new WeakMap;return(p=function(y){return y?h:w})(m)}function b(m,w){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=p(w);if(h&&h.has(m))return h.get(m);var y={},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var k=C?Object.getOwnPropertyDescriptor(m,v):null;k&&(k.get||k.set)?Object.defineProperty(y,v,k):y[v]=m[v]}return y.default=m,h&&h.set(m,y),y}function _(m,w,h){return w=T(w),w in m?Object.defineProperty(m,w,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[w]=h,m}function T(m){var w=M(m,"string");return typeof w=="symbol"?w:String(w)}function M(m,w){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var y=h.call(m,w);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(m)}const S={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let O=S.mouse,d=class extends e.Component{constructor(){super(...arguments),_(this,"dragging",!1),_(this,"lastX",NaN),_(this,"lastY",NaN),_(this,"touchIdentifier",null),_(this,"mounted",!1),_(this,"handleDragStart",m=>{if(this.props.onMouseDown(m),!this.props.allowAnyClick&&typeof m.button=="number"&&m.button!==0)return!1;const w=this.findDOMNode();if(!w||!w.ownerDocument||!w.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:h}=w;if(this.props.disabled||!(m.target instanceof h.defaultView.Node)||this.props.handle&&!(0,i.matchesSelectorAndParentsTo)(m.target,this.props.handle,w)||this.props.cancel&&(0,i.matchesSelectorAndParentsTo)(m.target,this.props.cancel,w))return;m.type==="touchstart"&&m.preventDefault();const y=(0,i.getTouchIdentifier)(m);this.touchIdentifier=y;const C=(0,a.getControlPosition)(m,y,this);if(C==null)return;const{x:v,y:k}=C,j=(0,a.createCoreData)(this,v,k);(0,l.default)("DraggableCore: handleDragStart: %j",j),(0,l.default)("calling",this.props.onStart),!(this.props.onStart(m,j)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,i.addUserSelectStyles)(h),this.dragging=!0,this.lastX=v,this.lastY=k,(0,i.addEvent)(h,O.move,this.handleDrag),(0,i.addEvent)(h,O.stop,this.handleDragStop))}),_(this,"handleDrag",m=>{const w=(0,a.getControlPosition)(m,this.touchIdentifier,this);if(w==null)return;let{x:h,y}=w;if(Array.isArray(this.props.grid)){let v=h-this.lastX,k=y-this.lastY;if([v,k]=(0,a.snapToGrid)(this.props.grid,v,k),!v&&!k)return;h=this.lastX+v,y=this.lastY+k}const C=(0,a.createCoreData)(this,h,y);if((0,l.default)("DraggableCore: handleDrag: %j",C),this.props.onDrag(m,C)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const v=document.createEvent("MouseEvents");v.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(v)}return}this.lastX=h,this.lastY=y}),_(this,"handleDragStop",m=>{if(!this.dragging)return;const w=(0,a.getControlPosition)(m,this.touchIdentifier,this);if(w==null)return;let{x:h,y}=w;if(Array.isArray(this.props.grid)){let k=h-this.lastX||0,j=y-this.lastY||0;[k,j]=(0,a.snapToGrid)(this.props.grid,k,j),h=this.lastX+k,y=this.lastY+j}const C=(0,a.createCoreData)(this,h,y);if(this.props.onStop(m,C)===!1||this.mounted===!1)return!1;const v=this.findDOMNode();v&&this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(v.ownerDocument),(0,l.default)("DraggableCore: handleDragStop: %j",C),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,v&&((0,l.default)("DraggableCore: Removing handlers"),(0,i.removeEvent)(v.ownerDocument,O.move,this.handleDrag),(0,i.removeEvent)(v.ownerDocument,O.stop,this.handleDragStop))}),_(this,"onMouseDown",m=>(O=S.mouse,this.handleDragStart(m))),_(this,"onMouseUp",m=>(O=S.mouse,this.handleDragStop(m))),_(this,"onTouchStart",m=>(O=S.touch,this.handleDragStart(m))),_(this,"onTouchEnd",m=>(O=S.touch,this.handleDragStop(m)))}componentDidMount(){this.mounted=!0;const m=this.findDOMNode();m&&(0,i.addEvent)(m,S.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const m=this.findDOMNode();if(m){const{ownerDocument:w}=m;(0,i.removeEvent)(w,S.mouse.move,this.handleDrag),(0,i.removeEvent)(w,S.touch.move,this.handleDrag),(0,i.removeEvent)(w,S.mouse.stop,this.handleDragStop),(0,i.removeEvent)(w,S.touch.stop,this.handleDragStop),(0,i.removeEvent)(m,S.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,i.removeUserSelectStyles)(w)}}findDOMNode(){var m,w;return(m=this.props)!==null&&m!==void 0&&m.nodeRef?(w=this.props)===null||w===void 0||(w=w.nodeRef)===null||w===void 0?void 0:w.current:r.default.findDOMNode(this)}render(){return e.cloneElement(e.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};return oi.default=d,_(d,"displayName","DraggableCore"),_(d,"propTypes",{allowAnyClick:n.default.bool,children:n.default.node.isRequired,disabled:n.default.bool,enableUserSelectHack:n.default.bool,offsetParent:function(m,w){if(m[w]&&m[w].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:n.default.arrayOf(n.default.number),handle:n.default.string,cancel:n.default.string,nodeRef:n.default.object,onStart:n.default.func,onDrag:n.default.func,onStop:n.default.func,onMouseDown:n.default.func,scale:n.default.number,className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),_(d,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),oi}var ph;function IR(){return ph||(ph=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var n=M(_e),r=_(Xn()),i=_(Nr),a=_(NR),u=sc(),l=qm(),f=Ds(),p=_($R()),b=_(Ym());function _(h){return h&&h.__esModule?h:{default:h}}function T(h){if(typeof WeakMap!="function")return null;var y=new WeakMap,C=new WeakMap;return(T=function(v){return v?C:y})(h)}function M(h,y){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var C=T(y);if(C&&C.has(h))return C.get(h);var v={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in h)if(j!=="default"&&Object.prototype.hasOwnProperty.call(h,j)){var z=k?Object.getOwnPropertyDescriptor(h,j):null;z&&(z.get||z.set)?Object.defineProperty(v,j,z):v[j]=h[j]}return v.default=h,C&&C.set(h,v),v}function S(){return S=Object.assign?Object.assign.bind():function(h){for(var y=1;y<arguments.length;y++){var C=arguments[y];for(var v in C)Object.prototype.hasOwnProperty.call(C,v)&&(h[v]=C[v])}return h},S.apply(this,arguments)}function O(h,y,C){return y=d(y),y in h?Object.defineProperty(h,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):h[y]=C,h}function d(h){var y=m(h,"string");return typeof y=="symbol"?y:String(y)}function m(h,y){if(typeof h!="object"||h===null)return h;var C=h[Symbol.toPrimitive];if(C!==void 0){var v=C.call(h,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(h)}class w extends n.Component{static getDerivedStateFromProps(y,C){let{position:v}=y,{prevPropsPosition:k}=C;return v&&(!k||v.x!==k.x||v.y!==k.y)?((0,b.default)("Draggable: getDerivedStateFromProps %j",{position:v,prevPropsPosition:k}),{x:v.x,y:v.y,prevPropsPosition:{...v}}):null}constructor(y){super(y),O(this,"onDragStart",(C,v)=>{if((0,b.default)("Draggable: onDragStart: %j",v),this.props.onStart(C,(0,l.createDraggableData)(this,v))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),O(this,"onDrag",(C,v)=>{if(!this.state.dragging)return!1;(0,b.default)("Draggable: onDrag: %j",v);const k=(0,l.createDraggableData)(this,v),j={x:k.x,y:k.y,slackX:0,slackY:0};if(this.props.bounds){const{x:z,y:F}=j;j.x+=this.state.slackX,j.y+=this.state.slackY;const[X,Y]=(0,l.getBoundPosition)(this,j.x,j.y);j.x=X,j.y=Y,j.slackX=this.state.slackX+(z-j.x),j.slackY=this.state.slackY+(F-j.y),k.x=j.x,k.y=j.y,k.deltaX=j.x-this.state.x,k.deltaY=j.y-this.state.y}if(this.props.onDrag(C,k)===!1)return!1;this.setState(j)}),O(this,"onDragStop",(C,v)=>{if(!this.state.dragging||this.props.onStop(C,(0,l.createDraggableData)(this,v))===!1)return!1;(0,b.default)("Draggable: onDragStop: %j",v);const k={dragging:!1,slackX:0,slackY:0};if(this.props.position){const{x:j,y:z}=this.props.position;k.x=j,k.y=z}this.setState(k)}),this.state={dragging:!1,dragged:!1,x:y.position?y.position.x:y.defaultPosition.x,y:y.position?y.position.y:y.defaultPosition.y,prevPropsPosition:{...y.position},slackX:0,slackY:0,isElementSVG:!1},y.position&&!(y.onDrag||y.onStop)&&console.warn("A `position` was applied to this <Draggable>, without drag handlers. This will make this component effectively undraggable. Please attach `onDrag` or `onStop` handlers so you can adjust the `position` of this element.")}componentDidMount(){typeof window.SVGElement<"u"&&this.findDOMNode()instanceof window.SVGElement&&this.setState({isElementSVG:!0})}componentWillUnmount(){this.setState({dragging:!1})}findDOMNode(){var y,C;return(y=(C=this.props)===null||C===void 0||(C=C.nodeRef)===null||C===void 0?void 0:C.current)!==null&&y!==void 0?y:i.default.findDOMNode(this)}render(){const{axis:y,bounds:C,children:v,defaultPosition:k,defaultClassName:j,defaultClassNameDragging:z,defaultClassNameDragged:F,position:X,positionOffset:Y,scale:E,...V}=this.props;let U={},Q=null;const Z=!X||this.state.dragging,ue=X||k,ce={x:(0,l.canDragX)(this)&&Z?this.state.x:ue.x,y:(0,l.canDragY)(this)&&Z?this.state.y:ue.y};this.state.isElementSVG?Q=(0,u.createSVGTransform)(ce,Y):U=(0,u.createCSSTransform)(ce,Y);const de=(0,a.default)(v.props.className||"",j,{[z]:this.state.dragging,[F]:this.state.dragged});return n.createElement(p.default,S({},V,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),n.cloneElement(n.Children.only(v),{className:de,style:{...v.props.style,...U},transform:Q}))}}e.default=w,O(w,"displayName","Draggable"),O(w,"propTypes",{...p.default.propTypes,axis:r.default.oneOf(["both","x","y","none"]),bounds:r.default.oneOfType([r.default.shape({left:r.default.number,right:r.default.number,top:r.default.number,bottom:r.default.number}),r.default.string,r.default.oneOf([!1])]),defaultClassName:r.default.string,defaultClassNameDragging:r.default.string,defaultClassNameDragged:r.default.string,defaultPosition:r.default.shape({x:r.default.number,y:r.default.number}),positionOffset:r.default.shape({x:r.default.oneOfType([r.default.number,r.default.string]),y:r.default.oneOfType([r.default.number,r.default.string])}),position:r.default.shape({x:r.default.number,y:r.default.number}),className:f.dontSetMe,style:f.dontSetMe,transform:f.dontSetMe}),O(w,"defaultProps",{...p.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(oh)),oh}var dh;function uc(){if(dh)return ri.exports;dh=1;const{default:e,DraggableCore:n}=IR();return ri.exports=e,ri.exports.default=e,ri.exports.DraggableCore=n,ri.exports}var Ia={exports:{}},ii={},La={},hh;function LR(){if(hh)return La;hh=1,La.__esModule=!0,La.cloneElement=f;var e=n(_e);function n(p){return p&&p.__esModule?p:{default:p}}function r(p,b){var _=Object.keys(p);if(Object.getOwnPropertySymbols){var T=Object.getOwnPropertySymbols(p);b&&(T=T.filter(function(M){return Object.getOwnPropertyDescriptor(p,M).enumerable})),_.push.apply(_,T)}return _}function i(p){for(var b=1;b<arguments.length;b++){var _=arguments[b]!=null?arguments[b]:{};b%2?r(Object(_),!0).forEach(function(T){a(p,T,_[T])}):Object.getOwnPropertyDescriptors?Object.defineProperties(p,Object.getOwnPropertyDescriptors(_)):r(Object(_)).forEach(function(T){Object.defineProperty(p,T,Object.getOwnPropertyDescriptor(_,T))})}return p}function a(p,b,_){return b=u(b),b in p?Object.defineProperty(p,b,{value:_,enumerable:!0,configurable:!0,writable:!0}):p[b]=_,p}function u(p){var b=l(p,"string");return typeof b=="symbol"?b:String(b)}function l(p,b){if(typeof p!="object"||p===null)return p;var _=p[Symbol.toPrimitive];if(_!==void 0){var T=_.call(p,b);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(p)}function f(p,b){return b.style&&p.props.style&&(b.style=i(i({},p.props.style),b.style)),b.className&&p.props.className&&(b.className=p.props.className+" "+b.className),e.default.cloneElement(p,b)}return La}var ai={},mh;function Xm(){if(mh)return ai;mh=1,ai.__esModule=!0,ai.resizableProps=void 0;var e=n(Xn());uc();function n(i){return i&&i.__esModule?i:{default:i}}var r={axis:e.default.oneOf(["both","x","y","none"]),className:e.default.string,children:e.default.element.isRequired,draggableOpts:e.default.shape({allowAnyClick:e.default.bool,cancel:e.default.string,children:e.default.node,disabled:e.default.bool,enableUserSelectHack:e.default.bool,offsetParent:e.default.node,grid:e.default.arrayOf(e.default.number),handle:e.default.string,nodeRef:e.default.object,onStart:e.default.func,onDrag:e.default.func,onStop:e.default.func,onMouseDown:e.default.func,scale:e.default.number}),height:function(){for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=a[0];if(l.axis==="both"||l.axis==="y"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)},handle:e.default.oneOfType([e.default.node,e.default.func]),handleSize:e.default.arrayOf(e.default.number),lockAspectRatio:e.default.bool,maxConstraints:e.default.arrayOf(e.default.number),minConstraints:e.default.arrayOf(e.default.number),onResizeStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,resizeHandles:e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:e.default.number,width:function(){for(var i=arguments.length,a=new Array(i),u=0;u<i;u++)a[u]=arguments[u];var l=a[0];if(l.axis==="both"||l.axis==="x"){var f;return(f=e.default.number).isRequired.apply(f,a)}return e.default.number.apply(e.default,a)}};return ai.resizableProps=r,ai}var gh;function Gm(){if(gh)return ii;gh=1,ii.__esModule=!0,ii.default=void 0;var e=l(_e),n=uc(),r=LR(),i=Xm(),a=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function u(w){if(typeof WeakMap!="function")return null;var h=new WeakMap,y=new WeakMap;return(u=function(C){return C?y:h})(w)}function l(w,h){if(w&&w.__esModule)return w;if(w===null||typeof w!="object"&&typeof w!="function")return{default:w};var y=u(h);if(y&&y.has(w))return y.get(w);var C={},v=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var k in w)if(k!=="default"&&Object.prototype.hasOwnProperty.call(w,k)){var j=v?Object.getOwnPropertyDescriptor(w,k):null;j&&(j.get||j.set)?Object.defineProperty(C,k,j):C[k]=w[k]}return C.default=w,y&&y.set(w,C),C}function f(){return f=Object.assign?Object.assign.bind():function(w){for(var h=1;h<arguments.length;h++){var y=arguments[h];for(var C in y)Object.prototype.hasOwnProperty.call(y,C)&&(w[C]=y[C])}return w},f.apply(this,arguments)}function p(w,h){if(w==null)return{};var y={},C=Object.keys(w),v,k;for(k=0;k<C.length;k++)v=C[k],!(h.indexOf(v)>=0)&&(y[v]=w[v]);return y}function b(w,h){var y=Object.keys(w);if(Object.getOwnPropertySymbols){var C=Object.getOwnPropertySymbols(w);h&&(C=C.filter(function(v){return Object.getOwnPropertyDescriptor(w,v).enumerable})),y.push.apply(y,C)}return y}function _(w){for(var h=1;h<arguments.length;h++){var y=arguments[h]!=null?arguments[h]:{};h%2?b(Object(y),!0).forEach(function(C){T(w,C,y[C])}):Object.getOwnPropertyDescriptors?Object.defineProperties(w,Object.getOwnPropertyDescriptors(y)):b(Object(y)).forEach(function(C){Object.defineProperty(w,C,Object.getOwnPropertyDescriptor(y,C))})}return w}function T(w,h,y){return h=M(h),h in w?Object.defineProperty(w,h,{value:y,enumerable:!0,configurable:!0,writable:!0}):w[h]=y,w}function M(w){var h=S(w,"string");return typeof h=="symbol"?h:String(h)}function S(w,h){if(typeof w!="object"||w===null)return w;var y=w[Symbol.toPrimitive];if(y!==void 0){var C=y.call(w,h);if(typeof C!="object")return C;throw new TypeError("@@toPrimitive must return a primitive value.")}return(h==="string"?String:Number)(w)}function O(w,h){w.prototype=Object.create(h.prototype),w.prototype.constructor=w,d(w,h)}function d(w,h){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(y,C){return y.__proto__=C,y},d(w,h)}var m=function(w){O(h,w);function h(){for(var C,v=arguments.length,k=new Array(v),j=0;j<v;j++)k[j]=arguments[j];return C=w.call.apply(w,[this].concat(k))||this,C.handleRefs={},C.lastHandleRect=null,C.slack=null,C}var y=h.prototype;return y.componentWillUnmount=function(){this.resetData()},y.resetData=function(){this.lastHandleRect=this.slack=null},y.runConstraints=function(C,v){var k=this.props,j=k.minConstraints,z=k.maxConstraints,F=k.lockAspectRatio;if(!j&&!z&&!F)return[C,v];if(F){var X=this.props.width/this.props.height,Y=C-this.props.width,E=v-this.props.height;Math.abs(Y)>Math.abs(E*X)?v=C/X:C=v*X}var V=C,U=v,Q=this.slack||[0,0],Z=Q[0],ue=Q[1];return C+=Z,v+=ue,j&&(C=Math.max(j[0],C),v=Math.max(j[1],v)),z&&(C=Math.min(z[0],C),v=Math.min(z[1],v)),this.slack=[Z+(V-C),ue+(U-v)],[C,v]},y.resizeHandler=function(C,v){var k=this;return function(j,z){var F=z.node,X=z.deltaX,Y=z.deltaY;C==="onResizeStart"&&k.resetData();var E=(k.props.axis==="both"||k.props.axis==="x")&&v!=="n"&&v!=="s",V=(k.props.axis==="both"||k.props.axis==="y")&&v!=="e"&&v!=="w";if(!(!E&&!V)){var U=v[0],Q=v[v.length-1],Z=F.getBoundingClientRect();if(k.lastHandleRect!=null){if(Q==="w"){var ue=Z.left-k.lastHandleRect.left;X+=ue}if(U==="n"){var ce=Z.top-k.lastHandleRect.top;Y+=ce}}k.lastHandleRect=Z,Q==="w"&&(X=-X),U==="n"&&(Y=-Y);var de=k.props.width+(E?X/k.props.transformScale:0),G=k.props.height+(V?Y/k.props.transformScale:0),P=k.runConstraints(de,G);de=P[0],G=P[1];var K=de!==k.props.width||G!==k.props.height,se=typeof k.props[C]=="function"?k.props[C]:null,ie=C==="onResize"&&!K;se&&!ie&&(j.persist==null||j.persist(),se(j,{node:F,size:{width:de,height:G},handle:v})),C==="onResizeStop"&&k.resetData()}}},y.renderResizeHandle=function(C,v){var k=this.props.handle;if(!k)return e.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+C,ref:v});if(typeof k=="function")return k(C,v);var j=typeof k.type=="string",z=_({ref:v},j?{}:{handleAxis:C});return e.cloneElement(k,z)},y.render=function(){var C=this,v=this.props,k=v.children,j=v.className,z=v.draggableOpts;v.width,v.height,v.handle,v.handleSize,v.lockAspectRatio,v.axis,v.minConstraints,v.maxConstraints,v.onResize,v.onResizeStop,v.onResizeStart;var F=v.resizeHandles;v.transformScale;var X=p(v,a);return(0,r.cloneElement)(k,_(_({},X),{},{className:(j?j+" ":"")+"react-resizable",children:[].concat(k.props.children,F.map(function(Y){var E,V=(E=C.handleRefs[Y])!=null?E:C.handleRefs[Y]=e.createRef();return e.createElement(n.DraggableCore,f({},z,{nodeRef:V,key:"resizableHandle-"+Y,onStop:C.resizeHandler("onResizeStop",Y),onStart:C.resizeHandler("onResizeStart",Y),onDrag:C.resizeHandler("onResize",Y)}),C.renderResizeHandle(Y,V))}))}))},h}(e.Component);return ii.default=m,m.propTypes=i.resizableProps,m.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1},ii}var si={},yh;function UR(){if(yh)return si;yh=1,si.__esModule=!0,si.default=void 0;var e=f(_e),n=u(Xn()),r=u(Gm()),i=Xm(),a=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function u(h){return h&&h.__esModule?h:{default:h}}function l(h){if(typeof WeakMap!="function")return null;var y=new WeakMap,C=new WeakMap;return(l=function(v){return v?C:y})(h)}function f(h,y){if(h&&h.__esModule)return h;if(h===null||typeof h!="object"&&typeof h!="function")return{default:h};var C=l(y);if(C&&C.has(h))return C.get(h);var v={},k=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var j in h)if(j!=="default"&&Object.prototype.hasOwnProperty.call(h,j)){var z=k?Object.getOwnPropertyDescriptor(h,j):null;z&&(z.get||z.set)?Object.defineProperty(v,j,z):v[j]=h[j]}return v.default=h,C&&C.set(h,v),v}function p(){return p=Object.assign?Object.assign.bind():function(h){for(var y=1;y<arguments.length;y++){var C=arguments[y];for(var v in C)Object.prototype.hasOwnProperty.call(C,v)&&(h[v]=C[v])}return h},p.apply(this,arguments)}function b(h,y){var C=Object.keys(h);if(Object.getOwnPropertySymbols){var v=Object.getOwnPropertySymbols(h);y&&(v=v.filter(function(k){return Object.getOwnPropertyDescriptor(h,k).enumerable})),C.push.apply(C,v)}return C}function _(h){for(var y=1;y<arguments.length;y++){var C=arguments[y]!=null?arguments[y]:{};y%2?b(Object(C),!0).forEach(function(v){T(h,v,C[v])}):Object.getOwnPropertyDescriptors?Object.defineProperties(h,Object.getOwnPropertyDescriptors(C)):b(Object(C)).forEach(function(v){Object.defineProperty(h,v,Object.getOwnPropertyDescriptor(C,v))})}return h}function T(h,y,C){return y=M(y),y in h?Object.defineProperty(h,y,{value:C,enumerable:!0,configurable:!0,writable:!0}):h[y]=C,h}function M(h){var y=S(h,"string");return typeof y=="symbol"?y:String(y)}function S(h,y){if(typeof h!="object"||h===null)return h;var C=h[Symbol.toPrimitive];if(C!==void 0){var v=C.call(h,y);if(typeof v!="object")return v;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(h)}function O(h,y){if(h==null)return{};var C={},v=Object.keys(h),k,j;for(j=0;j<v.length;j++)k=v[j],!(y.indexOf(k)>=0)&&(C[k]=h[k]);return C}function d(h,y){h.prototype=Object.create(y.prototype),h.prototype.constructor=h,m(h,y)}function m(h,y){return m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(C,v){return C.__proto__=v,C},m(h,y)}var w=function(h){d(y,h);function y(){for(var v,k=arguments.length,j=new Array(k),z=0;z<k;z++)j[z]=arguments[z];return v=h.call.apply(h,[this].concat(j))||this,v.state={width:v.props.width,height:v.props.height,propsWidth:v.props.width,propsHeight:v.props.height},v.onResize=function(F,X){var Y=X.size;v.props.onResize?(F.persist==null||F.persist(),v.setState(Y,function(){return v.props.onResize&&v.props.onResize(F,X)})):v.setState(Y)},v}y.getDerivedStateFromProps=function(v,k){return k.propsWidth!==v.width||k.propsHeight!==v.height?{width:v.width,height:v.height,propsWidth:v.width,propsHeight:v.height}:null};var C=y.prototype;return C.render=function(){var v=this.props,k=v.handle,j=v.handleSize;v.onResize;var z=v.onResizeStart,F=v.onResizeStop,X=v.draggableOpts,Y=v.minConstraints,E=v.maxConstraints,V=v.lockAspectRatio,U=v.axis;v.width,v.height;var Q=v.resizeHandles,Z=v.style,ue=v.transformScale,ce=O(v,a);return e.createElement(r.default,{axis:U,draggableOpts:X,handle:k,handleSize:j,height:this.state.height,lockAspectRatio:V,maxConstraints:E,minConstraints:Y,onResizeStart:z,onResize:this.onResize,onResizeStop:F,resizeHandles:Q,transformScale:ue,width:this.state.width},e.createElement("div",p({},ce,{style:_(_({},Z),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},y}(e.Component);return si.default=w,w.propTypes=_(_({},i.resizableProps),{},{children:n.default.element}),si}var vh;function BR(){return vh||(vh=1,Ia.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Ia.exports.Resizable=Gm().default,Ia.exports.ResizableBox=UR().default),Ia.exports}var Wn={},bh;function Jm(){if(bh)return Wn;bh=1,Object.defineProperty(Wn,"__esModule",{value:!0}),Wn.resizeHandleType=Wn.resizeHandleAxesType=Wn.default=void 0;var e=r(Xn()),n=r(_e);function r(u){return u&&u.__esModule?u:{default:u}}const i=Wn.resizeHandleAxesType=e.default.arrayOf(e.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),a=Wn.resizeHandleType=e.default.oneOfType([e.default.node,e.default.func]);return Wn.default={className:e.default.string,style:e.default.object,width:e.default.number,autoSize:e.default.bool,cols:e.default.number,draggableCancel:e.default.string,draggableHandle:e.default.string,verticalCompact:function(u){u.verticalCompact===!1&&process.env.NODE_ENV!=="production"&&console.warn('`verticalCompact` on <ReactGridLayout> is deprecated and will be removed soon. Use `compactType`: "horizontal" | "vertical" | null.')},compactType:e.default.oneOf(["vertical","horizontal"]),layout:function(u){var l=u.layout;l!==void 0&&Ro().validateLayout(l,"layout")},margin:e.default.arrayOf(e.default.number),containerPadding:e.default.arrayOf(e.default.number),rowHeight:e.default.number,maxRows:e.default.number,isBounded:e.default.bool,isDraggable:e.default.bool,isResizable:e.default.bool,allowOverlap:e.default.bool,preventCollision:e.default.bool,useCSSTransforms:e.default.bool,transformScale:e.default.number,isDroppable:e.default.bool,resizeHandles:i,resizeHandle:a,onLayoutChange:e.default.func,onDragStart:e.default.func,onDrag:e.default.func,onDragStop:e.default.func,onResizeStart:e.default.func,onResize:e.default.func,onResizeStop:e.default.func,onDrop:e.default.func,droppingItem:e.default.shape({i:e.default.string.isRequired,w:e.default.number.isRequired,h:e.default.number.isRequired}),children:function(u,l){const f=u[l],p={};n.default.Children.forEach(f,function(b){if((b==null?void 0:b.key)!=null){if(p[b.key])throw new Error('Duplicate child key "'+b.key+'" found! This will cause problems in ReactGridLayout.');p[b.key]=!0}})},innerRef:e.default.any},Wn}var wh;function VR(){if(wh)return ni;wh=1,Object.defineProperty(ni,"__esModule",{value:!0}),ni.default=void 0;var e=p(_e),n=p(Xn()),r=uc(),i=BR(),a=Ro(),u=ac(),l=Jm(),f=p(ic());function p(S){return S&&S.__esModule?S:{default:S}}function b(S,O,d){return O=_(O),O in S?Object.defineProperty(S,O,{value:d,enumerable:!0,configurable:!0,writable:!0}):S[O]=d,S}function _(S){var O=T(S,"string");return typeof O=="symbol"?O:String(O)}function T(S,O){if(typeof S!="object"||S===null)return S;var d=S[Symbol.toPrimitive];if(d!==void 0){var m=d.call(S,O);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(S)}let M=class extends e.default.Component{constructor(){super(...arguments),b(this,"state",{resizing:null,dragging:null,className:""}),b(this,"elementRef",e.default.createRef()),b(this,"onDragStart",(S,O)=>{let{node:d}=O;const{onDragStart:m,transformScale:w}=this.props;if(!m)return;const h={top:0,left:0},{offsetParent:y}=d;if(!y)return;const C=y.getBoundingClientRect(),v=d.getBoundingClientRect(),k=v.left/w,j=C.left/w,z=v.top/w,F=C.top/w;h.left=k-j+y.scrollLeft,h.top=z-F+y.scrollTop,this.setState({dragging:h});const{x:X,y:Y}=(0,u.calcXY)(this.getPositionParams(),h.top,h.left,this.props.w,this.props.h);return m.call(this,this.props.i,X,Y,{e:S,node:d,newPosition:h})}),b(this,"onDrag",(S,O)=>{let{node:d,deltaX:m,deltaY:w}=O;const{onDrag:h}=this.props;if(!h)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let y=this.state.dragging.top+w,C=this.state.dragging.left+m;const{isBounded:v,i:k,w:j,h:z,containerWidth:F}=this.props,X=this.getPositionParams();if(v){const{offsetParent:U}=d;if(U){const{margin:Q,rowHeight:Z,containerPadding:ue}=this.props,ce=U.clientHeight-(0,u.calcGridItemWHPx)(z,Z,Q[1]);y=(0,u.clamp)(y-ue[1],0,ce);const de=(0,u.calcGridColWidth)(X),G=F-(0,u.calcGridItemWHPx)(j,de,Q[0]);C=(0,u.clamp)(C-ue[0],0,G)}}const Y={top:y,left:C};this.setState({dragging:Y});const{x:E,y:V}=(0,u.calcXY)(X,y,C,j,z);return h.call(this,k,E,V,{e:S,node:d,newPosition:Y})}),b(this,"onDragStop",(S,O)=>{let{node:d}=O;const{onDragStop:m}=this.props;if(!m)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w,h,i:y}=this.props,{left:C,top:v}=this.state.dragging,k={top:v,left:C};this.setState({dragging:null});const{x:j,y:z}=(0,u.calcXY)(this.getPositionParams(),v,C,w,h);return m.call(this,y,j,z,{e:S,node:d,newPosition:k})}),b(this,"onResizeStop",(S,O,d)=>this.onResizeHandler(S,O,d,"onResizeStop")),b(this,"onResizeStart",(S,O,d)=>this.onResizeHandler(S,O,d,"onResizeStart")),b(this,"onResize",(S,O,d)=>this.onResizeHandler(S,O,d,"onResize"))}shouldComponentUpdate(S,O){if(this.props.children!==S.children||this.props.droppingPosition!==S.droppingPosition)return!0;const d=(0,u.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),m=(0,u.calcGridItemPosition)(this.getPositionParams(S),S.x,S.y,S.w,S.h,O);return!(0,a.fastPositionEqual)(d,m)||this.props.useCSSTransforms!==S.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(S){this.moveDroppingItem(S)}moveDroppingItem(S){const{droppingPosition:O}=this.props;if(!O)return;const d=this.elementRef.current;if(!d)return;const m=S.droppingPosition||{left:0,top:0},{dragging:w}=this.state,h=w&&O.left!==m.left||O.top!==m.top;if(!w)this.onDragStart(O.e,{node:d,deltaX:O.left,deltaY:O.top});else if(h){const y=O.left-w.left,C=O.top-w.top;this.onDrag(O.e,{node:d,deltaX:y,deltaY:C})}}getPositionParams(){let S=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:S.cols,containerPadding:S.containerPadding,containerWidth:S.containerWidth,margin:S.margin,maxRows:S.maxRows,rowHeight:S.rowHeight}}createStyle(S){const{usePercentages:O,containerWidth:d,useCSSTransforms:m}=this.props;let w;return m?w=(0,a.setTransform)(S):(w=(0,a.setTopLeft)(S),O&&(w.left=(0,a.perc)(S.left/d),w.width=(0,a.perc)(S.width/d))),w}mixinDraggable(S,O){return e.default.createElement(r.DraggableCore,{disabled:!O,onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop,handle:this.props.handle,cancel:".react-resizable-handle"+(this.props.cancel?","+this.props.cancel:""),scale:this.props.transformScale,nodeRef:this.elementRef},S)}curryResizeHandler(S,O){return(d,m)=>O(d,m,S)}mixinResizable(S,O,d){const{cols:m,minW:w,minH:h,maxW:y,maxH:C,transformScale:v,resizeHandles:k,resizeHandle:j}=this.props,z=this.getPositionParams(),F=(0,u.calcGridItemPosition)(z,0,0,m,0).width,X=(0,u.calcGridItemPosition)(z,0,0,w,h),Y=(0,u.calcGridItemPosition)(z,0,0,y,C),E=[X.width,X.height],V=[Math.min(Y.width,F),Math.min(Y.height,1/0)];return e.default.createElement(i.Resizable,{draggableOpts:{disabled:!d},className:d?void 0:"react-resizable-hide",width:O.width,height:O.height,minConstraints:E,maxConstraints:V,onResizeStop:this.curryResizeHandler(O,this.onResizeStop),onResizeStart:this.curryResizeHandler(O,this.onResizeStart),onResize:this.curryResizeHandler(O,this.onResize),transformScale:v,resizeHandles:k,handle:j},S)}onResizeHandler(S,O,d,m){let{node:w,size:h,handle:y}=O;const C=this.props[m];if(!C)return;const{x:v,y:k,i:j,maxH:z,minH:F,containerWidth:X}=this.props,{minW:Y,maxW:E}=this.props;let V=h;w&&(V=(0,a.resizeItemInDirection)(y,d,h,X),this.setState({resizing:m==="onResizeStop"?null:V}));let{w:U,h:Q}=(0,u.calcWH)(this.getPositionParams(),V.width,V.height,v,k,y);U=(0,u.clamp)(U,Math.max(Y,1),E),Q=(0,u.clamp)(Q,F,z),C.call(this,j,U,Q,{e:S,node:w,size:V,handle:y})}render(){const{x:S,y:O,w:d,h:m,isDraggable:w,isResizable:h,droppingPosition:y,useCSSTransforms:C}=this.props,v=(0,u.calcGridItemPosition)(this.getPositionParams(),S,O,d,m,this.state),k=e.default.Children.only(this.props.children);let j=e.default.cloneElement(k,{ref:this.elementRef,className:(0,f.default)("react-grid-item",k.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":w,"react-draggable-dragging":!!this.state.dragging,dropping:!!y,cssTransforms:C}),style:{...this.props.style,...k.props.style,...this.createStyle(v)}});return j=this.mixinResizable(j,v,h),j=this.mixinDraggable(j,w),j}};return ni.default=M,b(M,"propTypes",{children:n.default.element,cols:n.default.number.isRequired,containerWidth:n.default.number.isRequired,rowHeight:n.default.number.isRequired,margin:n.default.array.isRequired,maxRows:n.default.number.isRequired,containerPadding:n.default.array.isRequired,x:n.default.number.isRequired,y:n.default.number.isRequired,w:n.default.number.isRequired,h:n.default.number.isRequired,minW:function(S,O){const d=S[O];if(typeof d!="number")return new Error("minWidth not Number");if(d>S.w||d>S.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(S,O){const d=S[O];if(typeof d!="number")return new Error("maxWidth not Number");if(d<S.w||d<S.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(S,O){const d=S[O];if(typeof d!="number")return new Error("minHeight not Number");if(d>S.h||d>S.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(S,O){const d=S[O];if(typeof d!="number")return new Error("maxHeight not Number");if(d<S.h||d<S.minH)return new Error("maxHeight smaller than item height/minHeight")},i:n.default.string.isRequired,resizeHandles:l.resizeHandleAxesType,resizeHandle:l.resizeHandleType,onDragStop:n.default.func,onDragStart:n.default.func,onDrag:n.default.func,onResizeStop:n.default.func,onResizeStart:n.default.func,onResize:n.default.func,isDraggable:n.default.bool.isRequired,isResizable:n.default.bool.isRequired,isBounded:n.default.bool.isRequired,static:n.default.bool,useCSSTransforms:n.default.bool.isRequired,transformScale:n.default.number,className:n.default.string,handle:n.default.string,cancel:n.default.string,droppingPosition:n.default.shape({e:n.default.object.isRequired,left:n.default.number.isRequired,top:n.default.number.isRequired})}),b(M,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),ni}var Sh;function Km(){if(Sh)return ti;Sh=1,Object.defineProperty(ti,"__esModule",{value:!0}),ti.default=void 0;var e=b(_e),n=oc(),r=f(ic()),i=Ro(),a=ac(),u=f(VR()),l=f(Jm());function f(m){return m&&m.__esModule?m:{default:m}}function p(m){if(typeof WeakMap!="function")return null;var w=new WeakMap,h=new WeakMap;return(p=function(y){return y?h:w})(m)}function b(m,w){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=p(w);if(h&&h.has(m))return h.get(m);var y={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var k=C?Object.getOwnPropertyDescriptor(m,v):null;k&&(k.get||k.set)?Object.defineProperty(y,v,k):y[v]=m[v]}return y.default=m,h&&h.set(m,y),y}function _(m,w,h){return w=T(w),w in m?Object.defineProperty(m,w,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[w]=h,m}function T(m){var w=M(m,"string");return typeof w=="symbol"?w:String(w)}function M(m,w){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var y=h.call(m,w);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(m)}const S="react-grid-layout";let O=!1;try{O=/firefox/i.test(navigator.userAgent)}catch{}class d extends e.Component{constructor(){super(...arguments),_(this,"state",{activeDrag:null,layout:(0,i.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,i.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),_(this,"dragEnterCounter",0),_(this,"onDragStart",(w,h,y,C)=>{let{e:v,node:k}=C;const{layout:j}=this.state,z=(0,i.getLayoutItem)(j,w);if(!z)return;const F={w:z.w,h:z.h,x:z.x,y:z.y,placeholder:!0,i:w};return this.setState({oldDragItem:(0,i.cloneLayoutItem)(z),oldLayout:j,activeDrag:F}),this.props.onDragStart(j,z,z,null,v,k)}),_(this,"onDrag",(w,h,y,C)=>{let{e:v,node:k}=C;const{oldDragItem:j}=this.state;let{layout:z}=this.state;const{cols:F,allowOverlap:X,preventCollision:Y}=this.props,E=(0,i.getLayoutItem)(z,w);if(!E)return;const V={w:E.w,h:E.h,x:E.x,y:E.y,placeholder:!0,i:w};z=(0,i.moveElement)(z,E,h,y,!0,Y,(0,i.compactType)(this.props),F,X),this.props.onDrag(z,j,E,V,v,k),this.setState({layout:X?z:(0,i.compact)(z,(0,i.compactType)(this.props),F),activeDrag:V})}),_(this,"onDragStop",(w,h,y,C)=>{let{e:v,node:k}=C;if(!this.state.activeDrag)return;const{oldDragItem:j}=this.state;let{layout:z}=this.state;const{cols:F,preventCollision:X,allowOverlap:Y}=this.props,E=(0,i.getLayoutItem)(z,w);if(!E)return;z=(0,i.moveElement)(z,E,h,y,!0,X,(0,i.compactType)(this.props),F,Y);const V=Y?z:(0,i.compact)(z,(0,i.compactType)(this.props),F);this.props.onDragStop(V,j,E,null,v,k);const{oldLayout:U}=this.state;this.setState({activeDrag:null,layout:V,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(V,U)}),_(this,"onResizeStart",(w,h,y,C)=>{let{e:v,node:k}=C;const{layout:j}=this.state,z=(0,i.getLayoutItem)(j,w);z&&(this.setState({oldResizeItem:(0,i.cloneLayoutItem)(z),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(j,z,z,null,v,k))}),_(this,"onResize",(w,h,y,C)=>{let{e:v,node:k,size:j,handle:z}=C;const{oldResizeItem:F}=this.state,{layout:X}=this.state,{cols:Y,preventCollision:E,allowOverlap:V}=this.props;let U=!1,Q,Z,ue;const[ce,de]=(0,i.withLayoutItem)(X,w,P=>{let K;return Z=P.x,ue=P.y,["sw","w","nw","n","ne"].indexOf(z)!==-1&&(["sw","nw","w"].indexOf(z)!==-1&&(Z=P.x+(P.w-h),h=P.x!==Z&&Z<0?P.w:h,Z=Z<0?0:Z),["ne","n","nw"].indexOf(z)!==-1&&(ue=P.y+(P.h-y),y=P.y!==ue&&ue<0?P.h:y,ue=ue<0?0:ue),U=!0),E&&!V&&(K=(0,i.getAllCollisions)(X,{...P,w:h,h:y,x:Z,y:ue}).filter(se=>se.i!==P.i).length>0,K&&(ue=P.y,y=P.h,Z=P.x,h=P.w,U=!1)),P.w=h,P.h=y,P});if(!de)return;Q=ce,U&&(Q=(0,i.moveElement)(ce,de,Z,ue,!0,this.props.preventCollision,(0,i.compactType)(this.props),Y,V));const G={w:de.w,h:de.h,x:de.x,y:de.y,static:!0,i:w};this.props.onResize(Q,F,de,G,v,k),this.setState({layout:V?Q:(0,i.compact)(Q,(0,i.compactType)(this.props),Y),activeDrag:G})}),_(this,"onResizeStop",(w,h,y,C)=>{let{e:v,node:k}=C;const{layout:j,oldResizeItem:z}=this.state,{cols:F,allowOverlap:X}=this.props,Y=(0,i.getLayoutItem)(j,w),E=X?j:(0,i.compact)(j,(0,i.compactType)(this.props),F);this.props.onResizeStop(E,z,Y,null,v,k);const{oldLayout:V}=this.state;this.setState({activeDrag:null,layout:E,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(E,V)}),_(this,"onDragOver",w=>{var h;if(w.preventDefault(),w.stopPropagation(),O&&!((h=w.nativeEvent.target)!=null&&h.classList.contains(S)))return!1;const{droppingItem:y,onDropDragOver:C,margin:v,cols:k,rowHeight:j,maxRows:z,width:F,containerPadding:X,transformScale:Y}=this.props,E=C==null?void 0:C(w);if(E===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const V={...y,...E},{layout:U}=this.state,Q=w.currentTarget.getBoundingClientRect(),Z=w.clientX-Q.left,ue=w.clientY-Q.top,ce={left:Z/Y,top:ue/Y,e:w};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:de,top:G}=this.state.droppingPosition;(de!=Z||G!=ue)&&this.setState({droppingPosition:ce})}}else{const de={cols:k,margin:v,maxRows:z,rowHeight:j,containerWidth:F,containerPadding:X||v},G=(0,a.calcXY)(de,ue,Z,V.w,V.h);this.setState({droppingDOMNode:e.createElement("div",{key:V.i}),droppingPosition:ce,layout:[...U,{...V,x:G.x,y:G.y,static:!1,isDraggable:!0}]})}}),_(this,"removeDroppingPlaceholder",()=>{const{droppingItem:w,cols:h}=this.props,{layout:y}=this.state,C=(0,i.compact)(y.filter(v=>v.i!==w.i),(0,i.compactType)(this.props),h,this.props.allowOverlap);this.setState({layout:C,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),_(this,"onDragLeave",w=>{w.preventDefault(),w.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),_(this,"onDragEnter",w=>{w.preventDefault(),w.stopPropagation(),this.dragEnterCounter++}),_(this,"onDrop",w=>{w.preventDefault(),w.stopPropagation();const{droppingItem:h}=this.props,{layout:y}=this.state,C=y.find(v=>v.i===h.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(y,C,w)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(w,h){let y;return h.activeDrag?null:(!(0,n.deepEqual)(w.layout,h.propsLayout)||w.compactType!==h.compactType?y=w.layout:(0,i.childrenEqual)(w.children,h.children)||(y=h.layout),y?{layout:(0,i.synchronizeLayoutWithChildren)(y,w.children,w.cols,(0,i.compactType)(w),w.allowOverlap),compactType:w.compactType,children:w.children,propsLayout:w.layout}:null)}shouldComponentUpdate(w,h){return this.props.children!==w.children||!(0,i.fastRGLPropsEqual)(this.props,w,n.deepEqual)||this.state.activeDrag!==h.activeDrag||this.state.mounted!==h.mounted||this.state.droppingPosition!==h.droppingPosition}componentDidUpdate(w,h){if(!this.state.activeDrag){const y=this.state.layout,C=h.layout;this.onLayoutMaybeChanged(y,C)}}containerHeight(){if(!this.props.autoSize)return;const w=(0,i.bottom)(this.state.layout),h=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return w*this.props.rowHeight+(w-1)*this.props.margin[1]+h*2+"px"}onLayoutMaybeChanged(w,h){h||(h=this.state.layout),(0,n.deepEqual)(h,w)||this.props.onLayoutChange(w)}placeholder(){const{activeDrag:w}=this.state;if(!w)return null;const{width:h,cols:y,margin:C,containerPadding:v,rowHeight:k,maxRows:j,useCSSTransforms:z,transformScale:F}=this.props;return e.createElement(u.default,{w:w.w,h:w.h,x:w.x,y:w.y,i:w.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:h,cols:y,margin:C,containerPadding:v||C,maxRows:j,rowHeight:k,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:z,transformScale:F},e.createElement("div",null))}processGridItem(w,h){if(!w||!w.key)return;const y=(0,i.getLayoutItem)(this.state.layout,String(w.key));if(!y)return null;const{width:C,cols:v,margin:k,containerPadding:j,rowHeight:z,maxRows:F,isDraggable:X,isResizable:Y,isBounded:E,useCSSTransforms:V,transformScale:U,draggableCancel:Q,draggableHandle:Z,resizeHandles:ue,resizeHandle:ce}=this.props,{mounted:de,droppingPosition:G}=this.state,P=typeof y.isDraggable=="boolean"?y.isDraggable:!y.static&&X,K=typeof y.isResizable=="boolean"?y.isResizable:!y.static&&Y,se=y.resizeHandles||ue,ie=P&&E&&y.isBounded!==!1;return e.createElement(u.default,{containerWidth:C,cols:v,margin:k,containerPadding:j||k,maxRows:F,rowHeight:z,cancel:Q,handle:Z,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:P,isResizable:K,isBounded:ie,useCSSTransforms:V&&de,usePercentages:!de,transformScale:U,w:y.w,h:y.h,x:y.x,y:y.y,i:y.i,minH:y.minH,minW:y.minW,maxH:y.maxH,maxW:y.maxW,static:y.static,droppingPosition:h?G:void 0,resizeHandles:se,resizeHandle:ce},w)}render(){const{className:w,style:h,isDroppable:y,innerRef:C}=this.props,v=(0,r.default)(S,w),k={height:this.containerHeight(),...h};return e.createElement("div",{ref:C,className:v,style:k,onDrop:y?this.onDrop:i.noop,onDragLeave:y?this.onDragLeave:i.noop,onDragEnter:y?this.onDragEnter:i.noop,onDragOver:y?this.onDragOver:i.noop},e.Children.map(this.props.children,j=>this.processGridItem(j)),y&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}return ti.default=d,_(d,"displayName","ReactGridLayout"),_(d,"propTypes",l.default),_(d,"defaultProps",{autoSize:!0,cols:12,className:"",style:{},draggableHandle:"",draggableCancel:"",containerPadding:null,rowHeight:150,maxRows:1/0,layout:[],margin:[10,10],isBounded:!1,isDraggable:!0,isResizable:!0,allowOverlap:!1,isDroppable:!1,useCSSTransforms:!0,transformScale:1,verticalCompact:!0,compactType:"vertical",preventCollision:!1,droppingItem:{i:"__dropping-elem__",h:1,w:1},resizeHandles:["se"],onLayoutChange:i.noop,onDragStart:i.noop,onDrag:i.noop,onDragStop:i.noop,onResizeStart:i.noop,onResize:i.noop,onResizeStop:i.noop,onDrop:i.noop,onDropDragOver:i.noop}),ti}var ui={},kr={},xh;function Zm(){if(xh)return kr;xh=1,Object.defineProperty(kr,"__esModule",{value:!0}),kr.findOrGenerateResponsiveLayout=i,kr.getBreakpointFromWidth=n,kr.getColsFromBreakpoint=r,kr.sortBreakpoints=a;var e=Ro();function n(u,l){const f=a(u);let p=f[0];for(let b=1,_=f.length;b<_;b++){const T=f[b];l>u[T]&&(p=T)}return p}function r(u,l){if(!l[u])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+u+" is missing!");return l[u]}function i(u,l,f,p,b,_){if(u[f])return(0,e.cloneLayout)(u[f]);let T=u[p];const M=a(l),S=M.slice(M.indexOf(f));for(let O=0,d=S.length;O<d;O++){const m=S[O];if(u[m]){T=u[m];break}}return T=(0,e.cloneLayout)(T||[]),(0,e.compact)((0,e.correctBounds)(T,{cols:b}),_,b)}function a(u){return Object.keys(u).sort(function(l,f){return u[l]-u[f]})}return kr}var _h;function FR(){if(_h)return ui;_h=1,Object.defineProperty(ui,"__esModule",{value:!0}),ui.default=void 0;var e=p(_e),n=l(Xn()),r=oc(),i=Ro(),a=Zm(),u=l(Km());function l(m){return m&&m.__esModule?m:{default:m}}function f(m){if(typeof WeakMap!="function")return null;var w=new WeakMap,h=new WeakMap;return(f=function(y){return y?h:w})(m)}function p(m,w){if(m&&m.__esModule)return m;if(m===null||typeof m!="object"&&typeof m!="function")return{default:m};var h=f(w);if(h&&h.has(m))return h.get(m);var y={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var v in m)if(v!=="default"&&Object.prototype.hasOwnProperty.call(m,v)){var k=C?Object.getOwnPropertyDescriptor(m,v):null;k&&(k.get||k.set)?Object.defineProperty(y,v,k):y[v]=m[v]}return y.default=m,h&&h.set(m,y),y}function b(){return b=Object.assign?Object.assign.bind():function(m){for(var w=1;w<arguments.length;w++){var h=arguments[w];for(var y in h)Object.prototype.hasOwnProperty.call(h,y)&&(m[y]=h[y])}return m},b.apply(this,arguments)}function _(m,w,h){return w=T(w),w in m?Object.defineProperty(m,w,{value:h,enumerable:!0,configurable:!0,writable:!0}):m[w]=h,m}function T(m){var w=M(m,"string");return typeof w=="symbol"?w:String(w)}function M(m,w){if(typeof m!="object"||m===null)return m;var h=m[Symbol.toPrimitive];if(h!==void 0){var y=h.call(m,w);if(typeof y!="object")return y;throw new TypeError("@@toPrimitive must return a primitive value.")}return(w==="string"?String:Number)(m)}const S=m=>Object.prototype.toString.call(m);function O(m,w){return m==null?null:Array.isArray(m)?m:m[w]}let d=class extends e.Component{constructor(){super(...arguments),_(this,"state",this.generateInitialState()),_(this,"onLayoutChange",m=>{this.props.onLayoutChange(m,{...this.props.layouts,[this.state.breakpoint]:m})})}generateInitialState(){const{width:m,breakpoints:w,layouts:h,cols:y}=this.props,C=(0,a.getBreakpointFromWidth)(w,m),v=(0,a.getColsFromBreakpoint)(C,y),k=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,a.findOrGenerateResponsiveLayout)(h,w,C,C,v,k),breakpoint:C,cols:v}}static getDerivedStateFromProps(m,w){if(!(0,r.deepEqual)(m.layouts,w.layouts)){const{breakpoint:h,cols:y}=w;return{layout:(0,a.findOrGenerateResponsiveLayout)(m.layouts,m.breakpoints,h,h,y,m.compactType),layouts:m.layouts}}return null}componentDidUpdate(m){(this.props.width!=m.width||this.props.breakpoint!==m.breakpoint||!(0,r.deepEqual)(this.props.breakpoints,m.breakpoints)||!(0,r.deepEqual)(this.props.cols,m.cols))&&this.onWidthChange(m)}onWidthChange(m){const{breakpoints:w,cols:h,layouts:y,compactType:C}=this.props,v=this.props.breakpoint||(0,a.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),k=this.state.breakpoint,j=(0,a.getColsFromBreakpoint)(v,h),z={...y};if(k!==v||m.breakpoints!==w||m.cols!==h){k in z||(z[k]=(0,i.cloneLayout)(this.state.layout));let Y=(0,a.findOrGenerateResponsiveLayout)(z,w,v,k,j,C);Y=(0,i.synchronizeLayoutWithChildren)(Y,this.props.children,j,C,this.props.allowOverlap),z[v]=Y,this.props.onBreakpointChange(v,j),this.props.onLayoutChange(Y,z),this.setState({breakpoint:v,layout:Y,cols:j})}const F=O(this.props.margin,v),X=O(this.props.containerPadding,v);this.props.onWidthChange(this.props.width,F,j,X)}render(){const{breakpoint:m,breakpoints:w,cols:h,layouts:y,margin:C,containerPadding:v,onBreakpointChange:k,onLayoutChange:j,onWidthChange:z,...F}=this.props;return e.createElement(u.default,b({},F,{margin:O(C,this.state.breakpoint),containerPadding:O(v,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}};return ui.default=d,_(d,"propTypes",{breakpoint:n.default.string,breakpoints:n.default.object,allowOverlap:n.default.bool,cols:n.default.object,margin:n.default.oneOfType([n.default.array,n.default.object]),containerPadding:n.default.oneOfType([n.default.array,n.default.object]),layouts(m,w){if(S(m[w])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+S(m[w]));Object.keys(m[w]).forEach(h=>{if(!(h in m.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,i.validateLayout)(m.layouts[h],"layouts."+h)})},width:n.default.number.isRequired,onBreakpointChange:n.default.func,onLayoutChange:n.default.func,onWidthChange:n.default.func}),_(d,"defaultProps",{breakpoints:{lg:1200,md:996,sm:768,xs:480,xxs:0},cols:{lg:12,md:10,sm:6,xs:4,xxs:2},containerPadding:{lg:null,md:null,sm:null,xs:null,xxs:null},layouts:{},margin:[10,10],allowOverlap:!1,onBreakpointChange:i.noop,onLayoutChange:i.noop,onWidthChange:i.noop}),ui}var Ua={},Qm=function(){if(typeof Map<"u")return Map;function e(n,r){var i=-1;return n.some(function(a,u){return a[0]===r?(i=u,!0):!1}),i}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(r){var i=e(this.__entries__,r),a=this.__entries__[i];return a&&a[1]},n.prototype.set=function(r,i){var a=e(this.__entries__,r);~a?this.__entries__[a][1]=i:this.__entries__.push([r,i])},n.prototype.delete=function(r){var i=this.__entries__,a=e(i,r);~a&&i.splice(a,1)},n.prototype.has=function(r){return!!~e(this.__entries__,r)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(r,i){i===void 0&&(i=null);for(var a=0,u=this.__entries__;a<u.length;a++){var l=u[a];r.call(i,l[1],l[0])}},n}()}(),Ml=typeof window<"u"&&typeof document<"u"&&window.document===document,as=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),HR=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(as):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),WR=2;function qR(e,n){var r=!1,i=!1,a=0;function u(){r&&(r=!1,e()),i&&f()}function l(){HR(u)}function f(){var p=Date.now();if(r){if(p-a<WR)return;i=!0}else r=!0,i=!1,setTimeout(l,n);a=p}return f}var YR=20,XR=["top","right","bottom","left","width","height","size","weight"],GR=typeof MutationObserver<"u",JR=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=qR(this.refresh.bind(this),YR)}return e.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},e.prototype.removeObserver=function(n){var r=this.observers_,i=r.indexOf(n);~i&&r.splice(i,1),!r.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},e.prototype.updateObservers_=function(){var n=this.observers_.filter(function(r){return r.gatherActive(),r.hasActive()});return n.forEach(function(r){return r.broadcastActive()}),n.length>0},e.prototype.connect_=function(){!Ml||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),GR?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){!Ml||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(n){var r=n.propertyName,i=r===void 0?"":r,a=XR.some(function(u){return!!~i.indexOf(u)});a&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),eg=function(e,n){for(var r=0,i=Object.keys(n);r<i.length;r++){var a=i[r];Object.defineProperty(e,a,{value:n[a],enumerable:!1,writable:!1,configurable:!0})}return e},Oo=function(e){var n=e&&e.ownerDocument&&e.ownerDocument.defaultView;return n||as},tg=js(0,0,0,0);function ss(e){return parseFloat(e)||0}function Oh(e){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];return n.reduce(function(i,a){var u=e["border-"+a+"-width"];return i+ss(u)},0)}function KR(e){for(var n=["top","right","bottom","left"],r={},i=0,a=n;i<a.length;i++){var u=a[i],l=e["padding-"+u];r[u]=ss(l)}return r}function ZR(e){var n=e.getBBox();return js(0,0,n.width,n.height)}function QR(e){var n=e.clientWidth,r=e.clientHeight;if(!n&&!r)return tg;var i=Oo(e).getComputedStyle(e),a=KR(i),u=a.left+a.right,l=a.top+a.bottom,f=ss(i.width),p=ss(i.height);if(i.boxSizing==="border-box"&&(Math.round(f+u)!==n&&(f-=Oh(i,"left","right")+u),Math.round(p+l)!==r&&(p-=Oh(i,"top","bottom")+l)),!tT(e)){var b=Math.round(f+u)-n,_=Math.round(p+l)-r;Math.abs(b)!==1&&(f-=b),Math.abs(_)!==1&&(p-=_)}return js(a.left,a.top,f,p)}var eT=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Oo(e).SVGGraphicsElement}:function(e){return e instanceof Oo(e).SVGElement&&typeof e.getBBox=="function"}}();function tT(e){return e===Oo(e).document.documentElement}function nT(e){return Ml?eT(e)?ZR(e):QR(e):tg}function rT(e){var n=e.x,r=e.y,i=e.width,a=e.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(u.prototype);return eg(l,{x:n,y:r,width:i,height:a,top:r,right:n+i,bottom:a+r,left:n}),l}function js(e,n,r,i){return{x:e,y:n,width:r,height:i}}var oT=function(){function e(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=js(0,0,0,0),this.target=n}return e.prototype.isActive=function(){var n=nT(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},e}(),iT=function(){function e(n,r){var i=rT(r);eg(this,{target:n,contentRect:i})}return e}(),aT=function(){function e(n,r,i){if(this.activeObservations_=[],this.observations_=new Qm,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=r,this.callbackCtx_=i}return e.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Oo(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)||(r.set(n,new oT(n)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Oo(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var r=this.observations_;r.has(n)&&(r.delete(n),r.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(r){r.isActive()&&n.activeObservations_.push(r)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,r=this.activeObservations_.map(function(i){return new iT(i.target,i.broadcastRect())});this.callback_.call(n,r,n),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ng=typeof WeakMap<"u"?new WeakMap:new Qm,rg=function(){function e(n){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var r=JR.getInstance(),i=new aT(n,r,this);ng.set(this,i)}return e}();["observe","unobserve","disconnect"].forEach(function(e){rg.prototype[e]=function(){var n;return(n=ng.get(this))[e].apply(n,arguments)}});var sT=function(){return typeof as.ResizeObserver<"u"?as.ResizeObserver:rg}();const uT=Object.freeze(Object.defineProperty({__proto__:null,default:sT},Symbol.toStringTag,{value:"Module"})),lT=Vh(uT);var Eh;function cT(){if(Eh)return Ua;Eh=1,Object.defineProperty(Ua,"__esModule",{value:!0}),Ua.default=M;var e=l(_e),n=a(Xn()),r=a(lT),i=a(ic());function a(S){return S&&S.__esModule?S:{default:S}}function u(S){if(typeof WeakMap!="function")return null;var O=new WeakMap,d=new WeakMap;return(u=function(m){return m?d:O})(S)}function l(S,O){if(S&&S.__esModule)return S;if(S===null||typeof S!="object"&&typeof S!="function")return{default:S};var d=u(O);if(d&&d.has(S))return d.get(S);var m={__proto__:null},w=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var h in S)if(h!=="default"&&Object.prototype.hasOwnProperty.call(S,h)){var y=w?Object.getOwnPropertyDescriptor(S,h):null;y&&(y.get||y.set)?Object.defineProperty(m,h,y):m[h]=S[h]}return m.default=S,d&&d.set(S,m),m}function f(){return f=Object.assign?Object.assign.bind():function(S){for(var O=1;O<arguments.length;O++){var d=arguments[O];for(var m in d)Object.prototype.hasOwnProperty.call(d,m)&&(S[m]=d[m])}return S},f.apply(this,arguments)}function p(S,O,d){return O=b(O),O in S?Object.defineProperty(S,O,{value:d,enumerable:!0,configurable:!0,writable:!0}):S[O]=d,S}function b(S){var O=_(S,"string");return typeof O=="symbol"?O:String(O)}function _(S,O){if(typeof S!="object"||S===null)return S;var d=S[Symbol.toPrimitive];if(d!==void 0){var m=d.call(S,O);if(typeof m!="object")return m;throw new TypeError("@@toPrimitive must return a primitive value.")}return(O==="string"?String:Number)(S)}const T="react-grid-layout";function M(S){var O;return O=class extends e.Component{constructor(){super(...arguments),p(this,"state",{width:1280}),p(this,"elementRef",e.createRef()),p(this,"mounted",!1),p(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new r.default(m=>{if(this.elementRef.current instanceof HTMLElement){const w=m[0].contentRect.width;this.setState({width:w})}});const d=this.elementRef.current;d instanceof HTMLElement&&this.resizeObserver.observe(d)}componentWillUnmount(){this.mounted=!1;const d=this.elementRef.current;d instanceof HTMLElement&&this.resizeObserver.unobserve(d),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:d,...m}=this.props;return d&&!this.mounted?e.createElement("div",{className:(0,i.default)(this.props.className,T),style:this.props.style,ref:this.elementRef}):e.createElement(S,f({innerRef:this.elementRef},m,this.state))}},p(O,"defaultProps",{measureBeforeMount:!1}),p(O,"propTypes",{measureBeforeMount:n.default.bool}),O}return Ua}var Ch;function fT(){return Ch||(Ch=1,function(e){e.exports=Km().default,e.exports.utils=Ro(),e.exports.calculateUtils=ac(),e.exports.Responsive=FR().default,e.exports.Responsive.utils=Zm(),e.exports.WidthProvider=cT().default}(Kd)),Kd.exports}var Rh=fT();Rh.WidthProvider(Rh.Responsive);Pt(Pe.jsx("path",{d:"M14.67 5v6.5H9.33V5zm1 6.5H21V5h-5.33zm-1 7.5v-6.5H9.33V19zm1-6.5V19H21v-6.5zm-7.34 0H3V19h5.33zm0-1V5H3v6.5z"}),"ViewModule");Pt(Pe.jsx("path",{d:"M20 3H4c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h6v2H8v2h8v-2h-2v-2h6c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2"}),"DesktopWindows");Pt(Pe.jsx("path",{d:"M21 4H3c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h18c1.1 0 1.99-.9 1.99-2L23 6c0-1.1-.9-2-2-2m-2 14H5V6h14z"}),"Tablet");Pt(Pe.jsx("path",{d:"M15.5 1h-8C6.12 1 5 2.12 5 3.5v17C5 21.88 6.12 23 7.5 23h8c1.38 0 2.5-1.12 2.5-2.5v-17C18 2.12 16.88 1 15.5 1m-4 21c-.83 0-1.5-.67-1.5-1.5s.67-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5m4.5-4H7V4h9z"}),"PhoneIphone");var Th;(function(e){e.DragStart="dragStart",e.DragMove="dragMove",e.DragEnd="dragEnd",e.DragCancel="dragCancel",e.DragOver="dragOver",e.RegisterDroppable="registerDroppable",e.SetDroppableDisabled="setDroppableDisabled",e.UnregisterDroppable="unregisterDroppable"})(Th||(Th={}));const pT=Object.freeze({x:0,y:0});var mo;(function(e){e[e.Forward=1]="Forward",e[e.Backward=-1]="Backward"})(mo||(mo={}));var Ph;(function(e){e.Click="click",e.DragStart="dragstart",e.Keydown="keydown",e.ContextMenu="contextmenu",e.Resize="resize",e.SelectionChange="selectionchange",e.VisibilityChange="visibilitychange"})(Ph||(Ph={}));var fr;(function(e){e.Space="Space",e.Down="ArrowDown",e.Right="ArrowRight",e.Left="ArrowLeft",e.Up="ArrowUp",e.Esc="Escape",e.Enter="Enter",e.Tab="Tab"})(fr||(fr={}));fr.Space,fr.Enter,fr.Esc,fr.Space,fr.Enter,fr.Tab;var Dh;(function(e){e[e.RightClick=2]="RightClick"})(Dh||(Dh={}));var jh;(function(e){e[e.Pointer=0]="Pointer",e[e.DraggableRect=1]="DraggableRect"})(jh||(jh={}));var kh;(function(e){e[e.TreeOrder=0]="TreeOrder",e[e.ReversedTreeOrder=1]="ReversedTreeOrder"})(kh||(kh={}));mo.Backward+"",mo.Forward+"",mo.Backward+"",mo.Forward+"";var Al;(function(e){e[e.Always=0]="Always",e[e.BeforeDragging=1]="BeforeDragging",e[e.WhileDragging=2]="WhileDragging"})(Al||(Al={}));var Nl;(function(e){e.Optimized="optimized"})(Nl||(Nl={}));Al.WhileDragging,Nl.Optimized;({...pT});var Mh;(function(e){e[e.Uninitialized=0]="Uninitialized",e[e.Initializing=1]="Initializing",e[e.Initialized=2]="Initialized"})(Mh||(Mh={}));const dT=e=>{if(!e)return!0;const n=`notification_shown_${e}`;return localStorage.getItem(n)?!1:(localStorage.setItem(n,"true"),!0)};Co.create(e=>({notifications:[],addNotificationData:n=>{n.singular&&!dT(n.singularId)||e(r=>({notifications:[...r.notifications,{...n,id:`${Date.now()*Math.random()}`}]}))},removeNotificationData:n=>{e(r=>({notifications:r.notifications.filter(i=>i.id!==`${n}`)}))},clearNotificationsByType:n=>{e(r=>({notifications:r.notifications.filter(i=>i.type!==n)}))}}));Pt(Pe.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");Pt(Pe.jsx("path",{d:"M8 5v14l11-7z"}),"PlayArrow");Pt(Pe.jsx("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause");const hT=e=>e.replace(/([A-Z])/g,"_$1").toLowerCase().replace(/^_/,""),mT=e=>e.toLowerCase().replace(/_([a-z])/g,(n,r)=>r.toUpperCase()),Eo=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(r=>Eo(r));if(typeof e!="object")return e;const n={};return Object.entries(e).forEach(([r,i])=>{const a=mT(r);n[a]=Eo(i)}),n},us=e=>{if(e==null)return e;if(Array.isArray(e))return e.map(r=>us(r));if(typeof e!="object")return e;const n={};return Object.entries(e).forEach(([r,i])=>{const a=hT(r);n[a]=us(i)}),n};class gT extends Error{}class lr extends gT{constructor(){super("Zone is an abstract class")}}class og{get type(){throw new lr}get name(){throw new lr}get ianaName(){return this.name}get isUniversal(){throw new lr}offsetName(n,r){throw new lr}formatOffset(n,r){throw new lr}offset(n){throw new lr}equals(n){throw new lr}get isValid(){throw new lr}}const zl=new Map;function yT(e){let n=zl.get(e);return n===void 0&&(n=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),zl.set(e,n)),n}const vT={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function bT(e,n){const r=e.format(n).replace(/\u200E/g,""),i=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,a,u,l,f,p,b,_]=i;return[l,a,u,f,p,b,_]}function wT(e,n){const r=e.formatToParts(n),i=[];for(let a=0;a<r.length;a++){const{type:u,value:l}=r[a],f=vT[u];u==="era"?i[f]=l:ks(f)||(i[f]=parseInt(l,10))}return i}const ml=new Map;class ls extends og{static create(n){let r=ml.get(n);return r===void 0&&ml.set(n,r=new ls(n)),r}static resetCache(){ml.clear(),zl.clear()}static isValidSpecifier(n){return this.isValidZone(n)}static isValidZone(n){if(!n)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:n}).format(),!0}catch{return!1}}constructor(n){super(),this.zoneName=n,this.valid=ls.isValidZone(n)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(n,{format:r,locale:i}){return _T(n,r,i,this.name)}formatOffset(n,r){return Ya(this.offset(n),r)}offset(n){if(!this.valid)return NaN;const r=new Date(n);if(isNaN(r))return NaN;const i=yT(this.name);let[a,u,l,f,p,b,_]=i.formatToParts?wT(i,r):bT(i,r);f==="BC"&&(a=-Math.abs(a)+1);const T=xT({year:a,month:u,day:l,hour:p===24?0:p,minute:b,second:_,millisecond:0});let M=+r;const S=M%1e3;return M-=S>=0?S:1e3+S,(T-M)/(60*1e3)}equals(n){return n.type==="iana"&&n.name===this.name}get isValid(){return this.valid}}let gl=null;class go extends og{static get utcInstance(){return gl===null&&(gl=new go(0)),gl}static instance(n){return n===0?go.utcInstance:new go(n)}static parseSpecifier(n){if(n){const r=n.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new go(ag(r[1],r[2]))}return null}constructor(n){super(),this.fixed=n}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ya(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ya(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(n,r){return Ya(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(n){return n.type==="fixed"&&n.fixed===this.fixed}get isValid(){return!0}}function ks(e){return typeof e>"u"}function Ba(e,n=2){const r=e<0;let i;return r?i="-"+(""+-e).padStart(n,"0"):i=(""+e).padStart(n,"0"),i}function ig(e){if(!(ks(e)||e===null||e===""))return parseInt(e,10)}function ST(e){if(!(ks(e)||e===null||e==="")){const n=parseFloat("0."+e)*1e3;return Math.floor(n)}}function xT(e){let n=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(n=new Date(n),n.setUTCFullYear(e.year,e.month-1,e.day)),+n}function _T(e,n,r,i=null){const a=new Date(e),u={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};i&&(u.timeZone=i);const l={timeZoneName:n,...u},f=new Intl.DateTimeFormat(r,l).formatToParts(a).find(p=>p.type.toLowerCase()==="timezonename");return f?f.value:null}function ag(e,n){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);const i=parseInt(n,10)||0,a=r<0||Object.is(r,-0)?-i:i;return r*60+a}function Ya(e,n){const r=Math.trunc(Math.abs(e/60)),i=Math.trunc(Math.abs(e%60)),a=e>=0?"+":"-";switch(n){case"short":return`${a}${Ba(r,2)}:${Ba(i,2)}`;case"narrow":return`${a}${r}${i>0?`:${i}`:""}`;case"techie":return`${a}${Ba(r,2)}${Ba(i,2)}`;default:throw new RangeError(`Value format ${n} is out of range for property format`)}}const sg=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;function To(...e){const n=e.reduce((r,i)=>r+i.source,"");return RegExp(`^${n}$`)}function Po(...e){return n=>e.reduce(([r,i,a],u)=>{const[l,f,p]=u(n,a);return[{...r,...l},f||i,p]},[{},null,1]).slice(0,2)}function ug(...e){return(n,r)=>{const i={};let a;for(a=0;a<e.length;a++)i[e[a]]=ig(n[r+a]);return[i,null,r+a]}}const lg=/(?:([Zz])|([+-]\d\d)(?::?(\d\d))?)/,OT=`(?:${lg.source}?(?:\\[(${sg.source})\\])?)?`,cg=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,fg=RegExp(`${cg.source}${OT}`),lc=RegExp(`(?:[Tt]${fg.source})?`),ET=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,CT=/(\d{4})-?W(\d\d)(?:-?(\d))?/,RT=/(\d{4})-?(\d{3})/,TT=ug("weekYear","weekNumber","weekDay"),PT=ug("year","ordinal"),DT=/(\d{4})-(\d\d)-(\d\d)/,pg=RegExp(`${cg.source} ?(?:${lg.source}|(${sg.source}))?`),jT=RegExp(`(?: ${pg.source})?`);function bo(e,n,r){const i=e[n];return ks(i)?r:ig(i)}function kT(e,n){return[{year:bo(e,n),month:bo(e,n+1,1),day:bo(e,n+2,1)},null,n+3]}function Do(e,n){return[{hours:bo(e,n,0),minutes:bo(e,n+1,0),seconds:bo(e,n+2,0),milliseconds:ST(e[n+3])},null,n+4]}function ji(e,n){const r=!e[n]&&!e[n+1],i=ag(e[n+1],e[n+2]),a=r?null:go.instance(i);return[{},a,n+3]}function ki(e,n){const r=e[n]?ls.create(e[n]):null;return[{},r,n+1]}To(ET,lc);To(CT,lc);To(RT,lc);To(fg);Po(kT,Do,ji,ki);Po(TT,Do,ji,ki);Po(PT,Do,ji,ki);Po(Do,ji,ki);Po(Do);To(DT,jT);To(pg);Po(Do,ji,ki);function jo(e,n,r){if(!n)return e;if(n.startsWith("http://")||n.startsWith("https://")){let l=n;return r&&Object.entries(r).forEach(([f,p])=>{l=l.replace(`:${f}`,encodeURIComponent(String(p)))}),l}let i=n;r&&Object.entries(r).forEach(([l,f])=>{const p=encodeURIComponent(String(f));i=i.replace(`:${l}`,p)});const a=e.endsWith("/")?e.slice(0,-1):e,u=i.startsWith("/")?i:`/${i}`;return`${a}${u}`}let MT=null;const ko=()=>MT,AT=_e.createContext(void 0),NT=(e,n)=>{console.warn(`ApiConfig not initialized. Cannot register endpoints for '${e}'. Make sure ApiConfigProvider is rendered.`)},zT=e=>{const n=_e.useContext(AT);if(n===void 0)throw new Error("useServiceApiConfig must be used within an ApiConfigProvider");return n.endpoints.get(e)};const dg=async()=>{try{const e=ko(),n=void 0,r=(n==null?void 0:n.getCurrent)||"api/users/current/",i=jo((e==null?void 0:e.baseUrl)||"/",r),a=await et.axios.get(i);return Eo(a.data)}catch(e){throw console.error("Error getting current user",e),e}},$l=async e=>{try{const n=ko(),r=void 0,i=(r==null?void 0:r.get)||"api/users/";let a=jo((n==null?void 0:n.baseUrl)||"/",i);e&&(a+=`?course_id=${e}`);const u=await et.axios.get(a);if(!Array.isArray(u.data))throw new Error("Invalid response data");return u.data.map(l=>Eo(l))}catch(n){throw console.error("Error getting users",n),n}},$T=async e=>{try{const n=ko(),r=void 0,i=(r==null?void 0:r.post)||"api/users/",a=jo((n==null?void 0:n.baseUrl)||"/",i),u=us(e),l=await et.axios.post(a,u);return Eo(l.data)}catch(n){throw console.error("Error creating user:",n),n}},hg=async e=>{var n,r;try{if(!(e!=null&&e.id))throw new Error("Cannot update user: user.id is undefined");const i=ko(),a=void 0,u=(a==null?void 0:a.put)||"api/users/:id/",l=jo((i==null?void 0:i.baseUrl)||"/",u,{id:e.id}),f=us(e),p=await et.axios.put(l,f);if(!p.data)throw new Error("No data received from server");const b=Eo(p.data);return(r=(n=e.image)==null?void 0:n.large)!=null&&r.startsWith("data:image")&&(b.image={...e.image,...b.image}),b}catch(i){throw console.error("Error updating user:",i),i}},IT=async e=>{try{const n=ko(),r=void 0,i=(r==null?void 0:r.delete)||"api/users/:id/",a=jo((n==null?void 0:n.baseUrl)||"/",i,{id:e});await et.axios.delete(a)}catch(n){throw console.error("Error deleting user:",n),n}},mg=async()=>{try{const e=ko(),n=void 0,r=(n==null?void 0:n.logout)||"/auth/lti_logout/",i=jo((e==null?void 0:e.baseUrl)||"/",r);await et.axios.post(i)}catch(e){throw console.error("Error logging out user",e),e}},yl="/static/images/student.png",vl="/static/images/teacher.png",bl="/static/images/guest.png",wl="/static/images/admin.png",Sl=[{id:"1",name:"Teacher User",email:"teacher@edu.com",image:{large:vl,medium:vl,thumbnail:vl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["creator","moderator"]},{id:"2",name:"Student User",email:"student@edu.com",image:{large:yl,medium:yl,thumbnail:yl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["user"]},{id:"3",name:"Guest User",email:"",image:{large:bl,medium:bl,thumbnail:bl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["user"]},{id:"4",name:"Admin User",email:"admin@edu.com",image:{large:wl,medium:wl,thumbnail:wl},privacySettings:{allowAnalytics:!1,allowPersonalization:!1,allowCommunications:!1,allowThirdPartySharing:!1},gdprConsent:{accepted:!0,acceptedDate:new Date().toISOString(),lastUpdated:new Date().toISOString()},dataRetention:{deleteAccountAfterInactivity:365,deleteDataAfterAccountDeletion:30},preferences:{navigationType:"direct",visibleCourseLists:{isStudent:!0,isStudentOld:!0,isTeacher:!0,isTeacherOld:!0,available:!0},lastVisitedCourses:[],visibleNavigation:["Courses"]},platformRoles:["creator","moderator"]}],On=o1(e=>({fetchState:"idle",user:null,userToUpdate:null,testUsers:Sl,users:[],courseUsers:[],setUserToUpdate:n=>e({userToUpdate:n}),setTestUsers:n=>e({testUsers:n}),setUser:n=>e({user:n}),getUser:async()=>{try{e({fetchState:"loading"}),e({testUsers:Sl});const n=await dg();n&&e({user:{...n},fetchState:"idle",testUsers:Sl.filter(r=>r.id!==n.id)})}catch(n){console.error("Error getting user",n),e({fetchState:"error"})}},getUsers:async()=>{try{e({fetchState:"loading"});const n=await $l();e(n?{users:n,fetchState:"idle"}:{fetchState:"error"})}catch{e({fetchState:"error"})}},fetchCourseUsers:async n=>{try{e({fetchState:"loading"});const r=await $l(n);e({courseUsers:r,fetchState:"idle"})}catch{e({fetchState:"error"})}},clearUser:()=>e({user:null}),logout:async()=>{try{return await mg(),e({user:null}),Promise.resolve()}catch(n){return Promise.reject(n)}},updateUser:async n=>{try{e({fetchState:"loading"});const r=await hg(n);return e(i=>{var u;return{fetchState:"idle",userToUpdate:r,user:((u=i.user)==null?void 0:u.id)===r.id?r:i.user}}),Promise.resolve(r)}catch(r){return console.error("Failed to update user:",r),e({fetchState:"error"}),Promise.reject(r)}}}));let Ah=!1;function Ms(){if(Ah)return;const e={getUser:async()=>{await On.getState().getUser()},updateUser:async n=>await On.getState().updateUser(n),setUserToUpdate:n=>{On.getState().setUserToUpdate(n)},fetchCourseUsers:async n=>{await On.getState().fetchCourseUsers(n)},logout:async()=>{await On.getState().logout()},getState:()=>{const n=On.getState();return{user:n.user,courseUsers:n.courseUsers}}};et.userBus.configureStore(e),Ah=!0}var Va={exports:{}},li={};/**
252
252
  * @license React
253
253
  * react-jsx-runtime.production.js
254
254
  *
@@ -256,7 +256,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${n}Chann
256
256
  *
257
257
  * This source code is licensed under the MIT license found in the
258
258
  * LICENSE file in the root directory of this source tree.
259
- */var Nh;function zT(){if(Nh)return si;Nh=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,a,u){var l=null;if(u!==void 0&&(l=""+u),a.key!==void 0&&(l=""+a.key),"key"in a){u={};for(var f in a)f!=="key"&&(u[f]=a[f])}else u=a;return a=u.ref,{$$typeof:e,type:i,key:l,ref:a!==void 0?a:null,props:u}}return si.Fragment=n,si.jsx=r,si.jsxs=r,si}var ui={};/**
259
+ */var Nh;function LT(){if(Nh)return li;Nh=1;var e=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function r(i,a,u){var l=null;if(u!==void 0&&(l=""+u),a.key!==void 0&&(l=""+a.key),"key"in a){u={};for(var f in a)f!=="key"&&(u[f]=a[f])}else u=a;return a=u.ref,{$$typeof:e,type:i,key:l,ref:a!==void 0?a:null,props:u}}return li.Fragment=n,li.jsx=r,li.jsxs=r,li}var ci={};/**
260
260
  * @license React
261
261
  * react-jsx-runtime.development.js
262
262
  *
@@ -264,9 +264,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${n}Chann
264
264
  *
265
265
  * This source code is licensed under the MIT license found in the
266
266
  * LICENSE file in the root directory of this source tree.
267
- */var zh;function $T(){return zh||(zh=1,process.env.NODE_ENV!=="production"&&function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===Y?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case m:return"Fragment";case h:return"Profiler";case w:return"StrictMode";case k:return"Suspense";case j:return"SuspenseList";case X:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case d:return"Portal";case C:return P.displayName||"Context";case y:return(P._context.displayName||"Context")+".Consumer";case v:var K=P.render;return P=P.displayName,P||(P=K.displayName||K.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case z:return K=P.displayName||null,K!==null?K:e(P.type)||"Memo";case F:K=P._payload,P=P._init;try{return e(P(K))}catch{}}return null}function n(P){return""+P}function r(P){try{n(P);var K=!1}catch{K=!0}if(K){K=console;var se=K.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return se.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),n(P)}}function i(P){if(P===m)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===F)return"<...>";try{var K=e(P);return K?"<"+K+">":"<...>"}catch{return"<...>"}}function a(){var P=E.A;return P===null?null:P.getOwner()}function u(){return Error("react-stack-top-frame")}function l(P){if(V.call(P,"key")){var K=Object.getOwnPropertyDescriptor(P,"key").get;if(K&&K.isReactWarning)return!1}return P.key!==void 0}function f(P,K){function se(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}se.isReactWarning=!0,Object.defineProperty(P,"key",{get:se,configurable:!0})}function p(){var P=e(this.type);return ue[P]||(ue[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function b(P,K,se,ie,ve,be){var N=se.ref;return P={$$typeof:O,type:P,key:K,props:se,_owner:ie},(N!==void 0?N:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:p}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function _(P,K,se,ie,ve,be){var N=K.children;if(N!==void 0)if(ie)if(U(N)){for(ie=0;ie<N.length;ie++)T(N[ie]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(N);if(V.call(K,"key")){N=e(P);var A=Object.keys(K).filter(function(q){return q!=="key"});ie=0<A.length?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}",G[N+ie]||(A=0<A.length?"{"+A.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
267
+ */var zh;function UT(){return zh||(zh=1,process.env.NODE_ENV!=="production"&&function(){function e(P){if(P==null)return null;if(typeof P=="function")return P.$$typeof===Y?null:P.displayName||P.name||null;if(typeof P=="string")return P;switch(P){case m:return"Fragment";case h:return"Profiler";case w:return"StrictMode";case k:return"Suspense";case j:return"SuspenseList";case X:return"Activity"}if(typeof P=="object")switch(typeof P.tag=="number"&&console.error("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),P.$$typeof){case d:return"Portal";case C:return P.displayName||"Context";case y:return(P._context.displayName||"Context")+".Consumer";case v:var K=P.render;return P=P.displayName,P||(P=K.displayName||K.name||"",P=P!==""?"ForwardRef("+P+")":"ForwardRef"),P;case z:return K=P.displayName||null,K!==null?K:e(P.type)||"Memo";case F:K=P._payload,P=P._init;try{return e(P(K))}catch{}}return null}function n(P){return""+P}function r(P){try{n(P);var K=!1}catch{K=!0}if(K){K=console;var se=K.error,ie=typeof Symbol=="function"&&Symbol.toStringTag&&P[Symbol.toStringTag]||P.constructor.name||"Object";return se.call(K,"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",ie),n(P)}}function i(P){if(P===m)return"<>";if(typeof P=="object"&&P!==null&&P.$$typeof===F)return"<...>";try{var K=e(P);return K?"<"+K+">":"<...>"}catch{return"<...>"}}function a(){var P=E.A;return P===null?null:P.getOwner()}function u(){return Error("react-stack-top-frame")}function l(P){if(V.call(P,"key")){var K=Object.getOwnPropertyDescriptor(P,"key").get;if(K&&K.isReactWarning)return!1}return P.key!==void 0}function f(P,K){function se(){Z||(Z=!0,console.error("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",K))}se.isReactWarning=!0,Object.defineProperty(P,"key",{get:se,configurable:!0})}function p(){var P=e(this.type);return ue[P]||(ue[P]=!0,console.error("Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release.")),P=this.props.ref,P!==void 0?P:null}function b(P,K,se,ie,ve,be){var N=se.ref;return P={$$typeof:O,type:P,key:K,props:se,_owner:ie},(N!==void 0?N:null)!==null?Object.defineProperty(P,"ref",{enumerable:!1,get:p}):Object.defineProperty(P,"ref",{enumerable:!1,value:null}),P._store={},Object.defineProperty(P._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:0}),Object.defineProperty(P,"_debugInfo",{configurable:!1,enumerable:!1,writable:!0,value:null}),Object.defineProperty(P,"_debugStack",{configurable:!1,enumerable:!1,writable:!0,value:ve}),Object.defineProperty(P,"_debugTask",{configurable:!1,enumerable:!1,writable:!0,value:be}),Object.freeze&&(Object.freeze(P.props),Object.freeze(P)),P}function _(P,K,se,ie,ve,be){var N=K.children;if(N!==void 0)if(ie)if(U(N)){for(ie=0;ie<N.length;ie++)T(N[ie]);Object.freeze&&Object.freeze(N)}else console.error("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else T(N);if(V.call(K,"key")){N=e(P);var A=Object.keys(K).filter(function(q){return q!=="key"});ie=0<A.length?"{key: someKey, "+A.join(": ..., ")+": ...}":"{key: someKey}",G[N+ie]||(A=0<A.length?"{"+A.join(": ..., ")+": ...}":"{}",console.error(`A props object containing a "key" prop is being spread into JSX:
268
268
  let props = %s;
269
269
  <%s {...props} />
270
270
  React keys must be passed directly to JSX without using spread:
271
271
  let props = %s;
272
- <%s key={someKey} {...props} />`,ie,N,A,N),G[N+ie]=!0)}if(N=null,se!==void 0&&(r(se),N=""+se),l(K)&&(r(K.key),N=""+K.key),"key"in K){se={};for(var I in K)I!=="key"&&(se[I]=K[I])}else se=K;return N&&f(se,typeof P=="function"?P.displayName||P.name||"Unknown":P),b(P,N,se,a(),ve,be)}function T(P){M(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===F&&(P._payload.status==="fulfilled"?M(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function M(P){return typeof P=="object"&&P!==null&&P.$$typeof===O}var S=_e,O=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),C=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),E=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,U=Array.isArray,Q=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(P){return P()}};var Z,ue={},ce=S.react_stack_bottom_frame.bind(S,u)(),de=Q(i(u)),G={};ui.Fragment=m,ui.jsx=function(P,K,se){var ie=1e4>E.recentlyCreatedOwnerStacks++;return _(P,K,se,!1,ie?Error("react-stack-top-frame"):ce,ie?Q(i(P)):de)},ui.jsxs=function(P,K,se){var ie=1e4>E.recentlyCreatedOwnerStacks++;return _(P,K,se,!0,ie?Error("react-stack-top-frame"):ce,ie?Q(i(P)):de)}}()),ui}var $h;function IT(){return $h||($h=1,process.env.NODE_ENV==="production"?Va.exports=zT():Va.exports=$T()),Va.exports}var Ue=IT();const gg=()=>{var b;const{closeDialog:e}=et.useDialogStore(),{userToUpdate:n,updateUser:r}=On(),{addNotificationData:i}=et.useNotificationStore(),[a,u]=_e.useState(null),[l,f]=_e.useState(!1);_e.useEffect(()=>{n&&u(n)},[n]),_e.useEffect(()=>{if(a&&n){const _=JSON.stringify(a)!==JSON.stringify(n);f(_)}},[a,n]);const p=async _=>{if(_.preventDefault(),!!a)try{const T=await r(a);if(T)i({message:"User settings saved successfully",type:"success"}),u(T),f(!1),e();else throw new Error("Failed to update user")}catch(T){console.error("Error updating user:",T),i({message:"Failed to save user settings",type:"error"})}};return a?Ue.jsx(et.FormDialog,{title:"User Settings",submitText:"Save Changes",onSubmit:p,maxWidth:"md",fullWidth:!0,isDirty:l,showUnsavedChangesWarning:!0,children:Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:"column"},children:[Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"}},children:[Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsxs(at.Paper,{elevation:0,sx:{p:2},children:[Ue.jsx(at.Typography,{variant:"h6",gutterBottom:!0,children:"Personal Information"}),Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:"row",gap:2,alignItems:"flex-start"},children:[Ue.jsx(et.EditableImage,{label:"Profile Image",value:((b=a.image)==null?void 0:b.large)||"",onChange:_=>u({...a,image:{large:_,medium:_,thumbnail:_}})}),Ue.jsxs(at.Box,{sx:{flex:1,display:"flex",flexDirection:"column"},children:[Ue.jsx(et.EditableText,{label:"Name",value:a.name,onChange:_=>u({...a,name:_})}),Ue.jsx(et.EditableText,{label:"Email",value:a.email,onChange:_=>u({...a,email:_})}),Ue.jsx(et.EditableText,{label:"Platform Roles",value:a.platformRoles.join(", "),onChange:_=>u({...a,platformRoles:_.split(",").map(T=>T.trim())}),disabled:!a.platformRoles.includes("admin")})]})]})]})}),Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsxs(at.Paper,{elevation:0,sx:{p:1},children:[Ue.jsx(at.Typography,{variant:"h6",gutterBottom:!0,children:"Privacy & Consent"}),Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:{xs:"row",sm:"row"},flexWrap:"wrap",flex:1},children:[Ue.jsx(et.EditableSwitch,{label:"Allow Analytics",value:a.privacySettings.allowAnalytics,onChange:_=>u({...a,privacySettings:{...a.privacySettings,allowAnalytics:_}})}),Ue.jsx(et.EditableSwitch,{label:"GDPR Consent",value:a.gdprConsent.accepted,onChange:_=>u({...a,gdprConsent:{...a.gdprConsent,accepted:_,acceptedDate:_?new Date().toISOString():void 0,lastUpdated:new Date().toISOString()}})})]})]})})]}),Ue.jsxs(at.Paper,{elevation:0,sx:{p:1},children:[Ue.jsx(at.Typography,{variant:"h6",gutterBottom:!0,children:"Data Retention"}),Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"}},children:[Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsx(et.EditableNumber,{label:"Delete Account After Inactivity (days)",value:a.dataRetention.deleteAccountAfterInactivity||0,onChange:_=>u({...a,dataRetention:{...a.dataRetention,deleteAccountAfterInactivity:_}}),min:0})}),Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsx(et.EditableNumber,{label:"Delete Data After Account Deletion (days)",value:a.dataRetention.deleteDataAfterAccountDeletion||0,onChange:_=>u({...a,dataRetention:{...a.dataRetention,deleteDataAfterAccountDeletion:_}}),min:0})})]})]})]})}):null},LT=()=>(et.useSyncNavigationFilters(),null),UT=()=>{const{user:e}=On(),n=_e.useRef(null);return _e.useEffect(()=>{Ms(),et.userBus.initializeFromStore()},[]),_e.useEffect(()=>{const r=e,i=n.current;if(r&&!i){const a={type:"user:loggedIn",user:r,timestamp:new Date().toISOString()};et.userBus.publish(a)}else if(!r&&i){const a={type:"user:loggedOut",user:null,timestamp:new Date().toISOString()};et.userBus.publish(a)}else if(r&&i&&r.id===i.id){const a=JSON.stringify(r.preferences)!==JSON.stringify(i.preferences);if(a){const l=[];r.preferences.navigationType!==i.preferences.navigationType&&l.push("navigationType"),JSON.stringify(r.preferences.visibleCourseLists)!==JSON.stringify(i.preferences.visibleCourseLists)&&l.push("visibleCourseLists"),JSON.stringify(r.preferences.visibleNavigation)!==JSON.stringify(i.preferences.visibleNavigation)&&l.push("visibleNavigation"),JSON.stringify(r.preferences.lastVisitedCourses)!==JSON.stringify(i.preferences.lastVisitedCourses)&&l.push("lastVisitedCourses");const f={type:"user:preferencesChanged",user:r,timestamp:new Date().toISOString(),metadata:{changedPreferences:l}};et.userBus.publish(f)}if((r.name!==i.name||r.email!==i.email||JSON.stringify(r.privacySettings)!==JSON.stringify(i.privacySettings)||JSON.stringify(r.gdprConsent)!==JSON.stringify(i.gdprConsent)||JSON.stringify(r.dataRetention)!==JSON.stringify(i.dataRetention)||JSON.stringify(r.platformRoles)!==JSON.stringify(i.platformRoles))&&!a){const l={type:"user:updated",user:r,timestamp:new Date().toISOString(),metadata:{previousUser:i}};et.userBus.publish(l)}}n.current=r},[e]),null},BT=({children:e})=>(_e.useEffect(()=>{Ms()},[]),Ue.jsxs(Ue.Fragment,{children:[Ue.jsx(LT,{}),Ue.jsx(UT,{}),e]})),VT=()=>{const{user:e,setUser:n,testUsers:r,setTestUsers:i}=On(),a=u=>{const l=r.filter(f=>f.id!==u.id);i([...l,e]),n(u)};return Ue.jsx(Ue.Fragment,{children:r.map(u=>{var l,f;return Ue.jsxs(at.MenuItem,{component:"button",onClick:()=>a(u),sx:{justifyContent:"flex-start",width:"100%",columnGap:2},children:[Ue.jsx(at.ListItemIcon,{children:Ue.jsx(at.Avatar,{sx:{width:32,height:32,fontSize:"0.95rem"},src:((l=u.image)==null?void 0:l.thumbnail)||((f=u.image)==null?void 0:f.large),alt:(u==null?void 0:u.name)??"",children:u.name[0]})}),Ue.jsx(at.ListItemText,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},primary:u.name,secondary:u.email,primaryTypographyProps:{variant:"body2"},secondaryTypographyProps:{variant:"caption"}})]},u.id)})})};Ms();et.registerDialog("UserSettings",gg);Object.defineProperty(exports,"userBus",{enumerable:!0,get:()=>et.userBus});exports.UserMicroservice=BT;exports.UserSettings=gg;exports.UserSwitcher=VT;exports.configureUserBus=Ms;exports.createUser=AT;exports.deleteUser=NT;exports.getCurrentUser=dg;exports.getUsers=$l;exports.logoutUser=mg;exports.updateUser=hg;exports.useUserStore=On;
272
+ <%s key={someKey} {...props} />`,ie,N,A,N),G[N+ie]=!0)}if(N=null,se!==void 0&&(r(se),N=""+se),l(K)&&(r(K.key),N=""+K.key),"key"in K){se={};for(var I in K)I!=="key"&&(se[I]=K[I])}else se=K;return N&&f(se,typeof P=="function"?P.displayName||P.name||"Unknown":P),b(P,N,se,a(),ve,be)}function T(P){M(P)?P._store&&(P._store.validated=1):typeof P=="object"&&P!==null&&P.$$typeof===F&&(P._payload.status==="fulfilled"?M(P._payload.value)&&P._payload.value._store&&(P._payload.value._store.validated=1):P._store&&(P._store.validated=1))}function M(P){return typeof P=="object"&&P!==null&&P.$$typeof===O}var S=_e,O=Symbol.for("react.transitional.element"),d=Symbol.for("react.portal"),m=Symbol.for("react.fragment"),w=Symbol.for("react.strict_mode"),h=Symbol.for("react.profiler"),y=Symbol.for("react.consumer"),C=Symbol.for("react.context"),v=Symbol.for("react.forward_ref"),k=Symbol.for("react.suspense"),j=Symbol.for("react.suspense_list"),z=Symbol.for("react.memo"),F=Symbol.for("react.lazy"),X=Symbol.for("react.activity"),Y=Symbol.for("react.client.reference"),E=S.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,V=Object.prototype.hasOwnProperty,U=Array.isArray,Q=console.createTask?console.createTask:function(){return null};S={react_stack_bottom_frame:function(P){return P()}};var Z,ue={},ce=S.react_stack_bottom_frame.bind(S,u)(),de=Q(i(u)),G={};ci.Fragment=m,ci.jsx=function(P,K,se){var ie=1e4>E.recentlyCreatedOwnerStacks++;return _(P,K,se,!1,ie?Error("react-stack-top-frame"):ce,ie?Q(i(P)):de)},ci.jsxs=function(P,K,se){var ie=1e4>E.recentlyCreatedOwnerStacks++;return _(P,K,se,!0,ie?Error("react-stack-top-frame"):ce,ie?Q(i(P)):de)}}()),ci}var $h;function BT(){return $h||($h=1,process.env.NODE_ENV==="production"?Va.exports=LT():Va.exports=UT()),Va.exports}var Ue=BT();const gg=()=>{var b;const{closeDialog:e}=et.useDialogStore(),{userToUpdate:n,updateUser:r}=On(),{addNotificationData:i}=et.useNotificationStore(),[a,u]=_e.useState(null),[l,f]=_e.useState(!1);_e.useEffect(()=>{n&&u(n)},[n]),_e.useEffect(()=>{if(a&&n){const _=JSON.stringify(a)!==JSON.stringify(n);f(_)}},[a,n]);const p=async _=>{if(_.preventDefault(),!!a)try{const T=await r(a);if(T)i({message:"User settings saved successfully",type:"success"}),u(T),f(!1),e();else throw new Error("Failed to update user")}catch(T){console.error("Error updating user:",T),i({message:"Failed to save user settings",type:"error"})}};return a?Ue.jsx(et.FormDialog,{title:"User Settings",submitText:"Save Changes",onSubmit:p,maxWidth:"md",fullWidth:!0,isDirty:l,showUnsavedChangesWarning:!0,children:Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:"column"},children:[Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:{xs:"column",md:"row"}},children:[Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsxs(at.Paper,{elevation:0,sx:{p:2},children:[Ue.jsx(at.Typography,{variant:"h6",gutterBottom:!0,children:"Personal Information"}),Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:"row",gap:2,alignItems:"flex-start"},children:[Ue.jsx(et.EditableImage,{label:"Profile Image",value:((b=a.image)==null?void 0:b.large)||"",onChange:_=>u({...a,image:{large:_,medium:_,thumbnail:_}})}),Ue.jsxs(at.Box,{sx:{flex:1,display:"flex",flexDirection:"column"},children:[Ue.jsx(et.EditableText,{label:"Name",value:a.name,onChange:_=>u({...a,name:_})}),Ue.jsx(et.EditableText,{label:"Email",value:a.email,onChange:_=>u({...a,email:_})}),Ue.jsx(et.EditableText,{label:"Platform Roles",value:a.platformRoles.join(", "),onChange:_=>u({...a,platformRoles:_.split(",").map(T=>T.trim())}),disabled:!a.platformRoles.includes("admin")})]})]})]})}),Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsxs(at.Paper,{elevation:0,sx:{p:1},children:[Ue.jsx(at.Typography,{variant:"h6",gutterBottom:!0,children:"Privacy & Consent"}),Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:{xs:"row",sm:"row"},flexWrap:"wrap",flex:1},children:[Ue.jsx(et.EditableSwitch,{label:"Allow Analytics",value:a.privacySettings.allowAnalytics,onChange:_=>u({...a,privacySettings:{...a.privacySettings,allowAnalytics:_}})}),Ue.jsx(et.EditableSwitch,{label:"GDPR Consent",value:a.gdprConsent.accepted,onChange:_=>u({...a,gdprConsent:{...a.gdprConsent,accepted:_,acceptedDate:_?new Date().toISOString():void 0,lastUpdated:new Date().toISOString()}})})]})]})})]}),Ue.jsxs(at.Paper,{elevation:0,sx:{p:1},children:[Ue.jsx(at.Typography,{variant:"h6",gutterBottom:!0,children:"Data Retention"}),Ue.jsxs(at.Box,{sx:{display:"flex",flexDirection:{xs:"column",sm:"row"}},children:[Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsx(et.EditableNumber,{label:"Delete Account After Inactivity (days)",value:a.dataRetention.deleteAccountAfterInactivity||0,onChange:_=>u({...a,dataRetention:{...a.dataRetention,deleteAccountAfterInactivity:_}}),min:0})}),Ue.jsx(at.Box,{sx:{flex:1},children:Ue.jsx(et.EditableNumber,{label:"Delete Data After Account Deletion (days)",value:a.dataRetention.deleteDataAfterAccountDeletion||0,onChange:_=>u({...a,dataRetention:{...a.dataRetention,deleteDataAfterAccountDeletion:_}}),min:0})})]})]})]})}):null},VT=()=>(et.useSyncNavigationFilters(),null),FT=()=>{const{user:e}=On(),n=_e.useRef(null);return _e.useEffect(()=>{Ms(),et.userBus.initializeFromStore()},[]),_e.useEffect(()=>{const r=e,i=n.current;if(r&&!i){const a={type:"user:loggedIn",user:r,timestamp:new Date().toISOString()};et.userBus.publish(a)}else if(!r&&i){const a={type:"user:loggedOut",user:null,timestamp:new Date().toISOString()};et.userBus.publish(a)}else if(r&&i&&r.id===i.id){const a=JSON.stringify(r.preferences)!==JSON.stringify(i.preferences);if(a){const l=[];r.preferences.navigationType!==i.preferences.navigationType&&l.push("navigationType"),JSON.stringify(r.preferences.visibleCourseLists)!==JSON.stringify(i.preferences.visibleCourseLists)&&l.push("visibleCourseLists"),JSON.stringify(r.preferences.visibleNavigation)!==JSON.stringify(i.preferences.visibleNavigation)&&l.push("visibleNavigation"),JSON.stringify(r.preferences.lastVisitedCourses)!==JSON.stringify(i.preferences.lastVisitedCourses)&&l.push("lastVisitedCourses");const f={type:"user:preferencesChanged",user:r,timestamp:new Date().toISOString(),metadata:{changedPreferences:l}};et.userBus.publish(f)}if((r.name!==i.name||r.email!==i.email||JSON.stringify(r.privacySettings)!==JSON.stringify(i.privacySettings)||JSON.stringify(r.gdprConsent)!==JSON.stringify(i.gdprConsent)||JSON.stringify(r.dataRetention)!==JSON.stringify(i.dataRetention)||JSON.stringify(r.platformRoles)!==JSON.stringify(i.platformRoles))&&!a){const l={type:"user:updated",user:r,timestamp:new Date().toISOString(),metadata:{previousUser:i}};et.userBus.publish(l)}}n.current=r},[e]),null},HT=({children:e,apiEndpoints:n})=>(_e.useEffect(()=>{Ms()},[]),_e.useEffect(()=>{NT("users")},[n]),Ue.jsxs(Ue.Fragment,{children:[Ue.jsx(VT,{}),Ue.jsx(FT,{}),e]})),WT=()=>{const{user:e,setUser:n,testUsers:r,setTestUsers:i}=On(),a=u=>{const l=r.filter(f=>f.id!==u.id);i([...l,e]),n(u)};return Ue.jsx(Ue.Fragment,{children:r.map(u=>{var l,f;return Ue.jsxs(at.MenuItem,{component:"button",onClick:()=>a(u),sx:{justifyContent:"flex-start",width:"100%",columnGap:2},children:[Ue.jsx(at.ListItemIcon,{children:Ue.jsx(at.Avatar,{sx:{width:32,height:32,fontSize:"0.95rem"},src:((l=u.image)==null?void 0:l.thumbnail)||((f=u.image)==null?void 0:f.large),alt:(u==null?void 0:u.name)??"",children:u.name[0]})}),Ue.jsx(at.ListItemText,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start",width:"100%"},primary:u.name,secondary:u.email,primaryTypographyProps:{variant:"body2"},secondaryTypographyProps:{variant:"caption"}})]},u.id)})})},qT=()=>zT("users");Ms();et.registerDialog("UserSettings",gg);Object.defineProperty(exports,"userBus",{enumerable:!0,get:()=>et.userBus});exports.UserMicroservice=HT;exports.UserSettings=gg;exports.UserSwitcher=WT;exports.configureUserBus=Ms;exports.createUser=$T;exports.deleteUser=IT;exports.getCurrentUser=dg;exports.getUsers=$l;exports.logoutUser=mg;exports.updateUser=hg;exports.useUserStore=On;exports.useUsersApiConfig=qT;