@spaceandtimelabs/makeinfinite-ui 0.20.2 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/makeinfinite-ui.es.js +12018 -12978
- package/dist/makeinfinite-ui.umd.js +258 -155
- package/package.json +20 -6
|
@@ -1,37 +1,46 @@
|
|
|
1
|
-
(function(Ot,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("isomorphic-git"),require("react"),require("react-ace"),require("react-dom"),require("@babel/standalone")):typeof define=="function"&&define.amd?define(["exports","isomorphic-git","react","react-ace","react-dom","@babel/standalone"],_t):(Ot=typeof globalThis<"u"?globalThis:Ot||self,_t(Ot.MakeInfinite={},Ot.git,Ot.React,Ot.AceEditor,Ot.ReactDOM,Ot.Babel))})(this,function(Ot,_t,
|
|
1
|
+
(function(Ot,_t){typeof exports=="object"&&typeof module<"u"?_t(exports,require("isomorphic-git"),require("react"),require("react-ace"),require("react-dom"),require("@babel/standalone")):typeof define=="function"&&define.amd?define(["exports","isomorphic-git","react","react-ace","react-dom","@babel/standalone"],_t):(Ot=typeof globalThis<"u"?globalThis:Ot||self,_t(Ot.MakeInfinite={},Ot.git,Ot.React,Ot.AceEditor,Ot.ReactDOM,Ot.Babel))})(this,function(Ot,_t,X,Db,mo,Bb){"use strict";var Kj=Object.defineProperty;var Jj=(Ot,_t,X)=>_t in Ot?Kj(Ot,_t,{enumerable:!0,configurable:!0,writable:!0,value:X}):Ot[_t]=X;var Ar=(Ot,_t,X)=>Jj(Ot,typeof _t!="symbol"?_t+"":_t,X);function jc(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const j=jc(X),Lb=jc(mo),kp=jc(Bb);var Mr=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Tp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Vs(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function o(){return this instanceof o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(o){var s=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:function(){return e[o]}})}),n}var jb=Nb;function Nb(e){var t,n;if(typeof e!="function")throw new Error("expected a function but got "+e);return function(){return t||(t=!0,n=e.apply(this,arguments)),n}}(function(e){function t(C,O){var k;return C instanceof Buffer?k=C:k=Buffer.from(C.buffer,C.byteOffset,C.byteLength),k.toString(O)}var n=function(C){return Buffer.from(C)};function o(C){for(var O=0,k=Math.min(256*256,C.length+1),R=new Uint16Array(k),$=[],B=0;;){var M=O<C.length;if(!M||B>=k-1){var z=R.subarray(0,B),V=z;if($.push(String.fromCharCode.apply(null,V)),!M)return $.join("");C=C.subarray(O),O=0,B=0}var _=C[O++];if(!(_&128))R[B++]=_;else if((_&224)===192){var G=C[O++]&63;R[B++]=(_&31)<<6|G}else if((_&240)===224){var G=C[O++]&63,re=C[O++]&63;R[B++]=(_&31)<<12|G<<6|re}else if((_&248)===240){var G=C[O++]&63,re=C[O++]&63,H=C[O++]&63,Q=(_&7)<<18|G<<12|re<<6|H;Q>65535&&(Q-=65536,R[B++]=Q>>>10&1023|55296,Q=56320|Q&1023),R[B++]=Q}}}function s(C){for(var O=0,k=C.length,R=0,$=Math.max(32,k+(k>>>1)+7),B=new Uint8Array($>>>3<<3);O<k;){var M=C.charCodeAt(O++);if(M>=55296&&M<=56319){if(O<k){var z=C.charCodeAt(O);(z&64512)===56320&&(++O,M=((M&1023)<<10)+(z&1023)+65536)}if(M>=55296&&M<=56319)continue}if(R+4>B.length){$+=8,$*=1+O/C.length*2,$=$>>>3<<3;var V=new Uint8Array($);V.set(B),B=V}if(M&4294967168)if(!(M&4294965248))B[R++]=M>>>6&31|192;else if(!(M&4294901760))B[R++]=M>>>12&15|224,B[R++]=M>>>6&63|128;else if(!(M&4292870144))B[R++]=M>>>18&7|240,B[R++]=M>>>12&63|128,B[R++]=M>>>6&63|128;else continue;else{B[R++]=M;continue}B[R++]=M&63|128}return B.slice?B.slice(0,R):B.subarray(0,R)}var a="Failed to ",l=function(C,O,k){if(C)throw new Error("".concat(a).concat(O,": the '").concat(k,"' option is unsupported."))},u=typeof Buffer=="function"&&Buffer.from,d=u?n:s;function h(){this.encoding="utf-8"}h.prototype.encode=function(C,O){return l(O&&O.stream,"encode","stream"),d(C)};function y(C){var O;try{var k=new Blob([C],{type:"text/plain;charset=UTF-8"});O=URL.createObjectURL(k);var R=new XMLHttpRequest;return R.open("GET",O,!1),R.send(),R.responseText}finally{O&&URL.revokeObjectURL(O)}}var m=!u&&typeof Blob=="function"&&typeof URL=="function"&&typeof URL.createObjectURL=="function",b=["utf-8","utf8","unicode-1-1-utf-8"],w=o;u?w=t:m&&(w=function(C){try{return y(C)}catch{return o(C)}});var S="construct 'TextDecoder'",E="".concat(a," ").concat(S,": the ");function P(C,O){l(O&&O.fatal,S,"fatal"),C=C||"utf-8";var k;if(u?k=Buffer.isEncoding(C):k=b.indexOf(C.toLowerCase())!==-1,!k)throw new RangeError("".concat(E," encoding label provided ('").concat(C,"') is invalid."));this.encoding=C,this.fatal=!1,this.ignoreBOM=!1}P.prototype.decode=function(C,O){l(O&&O.stream,"decode","stream");var k;return C instanceof Uint8Array?k=C:C.buffer instanceof ArrayBuffer?k=new Uint8Array(C.buffer):k=new Uint8Array(C),w(k,this.encoding)},e.TextEncoder=e.TextEncoder||h,e.TextDecoder=e.TextDecoder||P})(typeof window<"u"?window:Mr);var Fb={encode:e=>new TextEncoder().encode(e),decode:e=>new TextDecoder().decode(e)},zb=Wb;function Wb(e,t,n){var o;return function(){if(!t)return e.apply(this,arguments);var s=this,a=arguments,l=n&&!o;if(clearTimeout(o),o=setTimeout(function(){if(o=null,!l)return e.apply(s,a)},t),l)return e.apply(this,arguments)}}function Pp(e){if(e.length===0)return".";let t=Op(e);return t=t.reduce(qb,[]),Nc(...t)}function Ub(...e){let t="";for(let n of e)n.startsWith("/")?t=n:t=Pp(Nc(t,n));return t}function Nc(...e){if(e.length===0)return"";let t=e.join("/");return t=t.replace(/\/{2,}/g,"/"),t}function Op(e){if(e.length===0)return[];if(e==="/")return["/"];let t=e.split("/");return t[t.length-1]===""&&t.pop(),e[0]==="/"?t[0]="/":t[0]!=="."&&t.unshift("."),t}function Hb(e){const t=e.lastIndexOf("/");if(t===-1)throw new Error(`Cannot get dirname of "${e}"`);return t===0?"/":e.slice(0,t)}function Gb(e){if(e==="/")throw new Error(`Cannot get basename of "${e}"`);const t=e.lastIndexOf("/");return t===-1?e:e.slice(t+1)}function qb(e,t){if(e.length===0)return e.push(t),e;if(t===".")return e;if(t===".."){if(e.length===1){if(e[0]==="/")throw new Error("Unable to normalize path - traverses above root directory");if(e[0]===".")return e.push(t),e}return e[e.length-1]===".."?(e.push(".."),e):(e.pop(),e)}return e.push(t),e}var Fc={join:Nc,normalize:Pp,split:Op,basename:Gb,dirname:Hb,resolve:Ub};function Ni(e){return class extends Error{constructor(...t){super(...t),this.code=e,this.message?this.message=e+": "+this.message:this.message=e}}}const Vb=Ni("EEXIST"),Yb=Ni("ENOENT"),Xb=Ni("ENOTDIR"),Kb=Ni("ENOTEMPTY"),Jb=Ni("ETIMEDOUT");var Ap={EEXIST:Vb,ENOENT:Yb,ENOTDIR:Xb,ENOTEMPTY:Kb,ETIMEDOUT:Jb};const fn=Fc,{EEXIST:Mp,ENOENT:Zb,ENOTDIR:$p,ENOTEMPTY:Qb}=Ap,rn=0;var ex=class{constructor(){}_makeRoot(t=new Map){return t.set(rn,{mode:511,type:"dir",size:0,ino:0,mtimeMs:Date.now()}),t}activate(t=null){t===null?this._root=new Map([["/",this._makeRoot()]]):typeof t=="string"?this._root=new Map([["/",this._makeRoot(this.parse(t))]]):this._root=t}get activated(){return!!this._root}deactivate(){this._root=void 0}size(){return this._countInodes(this._root.get("/"))-1}_countInodes(t){let n=1;for(let[o,s]of t)o!==rn&&(n+=this._countInodes(s));return n}autoinc(){return this._maxInode(this._root.get("/"))+1}_maxInode(t){let n=t.get(rn).ino;for(let[o,s]of t)o!==rn&&(n=Math.max(n,this._maxInode(s)));return n}print(t=this._root.get("/")){let n="";const o=(s,a)=>{for(let[l,u]of s){if(l===0)continue;let d=u.get(rn),h=d.mode.toString(8);n+=`${" ".repeat(a)}${l} ${h}`,d.type==="file"?n+=` ${d.size} ${d.mtimeMs}
|
|
2
2
|
`:(n+=`
|
|
3
|
-
`,
|
|
4
|
-
`),a=this._makeRoot(),l=[{indent:-1,node:a},{indent:0,node:null}];for(let c of i){let f=c.match(/^\t*/)[0].length;c=c.slice(f);let[y,...m]=c.split(" "),v=r(m);if(f<=l[l.length-1].indent)for(;f<=l[l.length-1].indent;)l.pop();l.push({indent:f,node:v}),l[l.length-2].node.set(y,v)}return a}_lookup(t,n=!0){let r=this._root,i="/",a=gn.split(t);for(let l=0;l<a.length;++l){let c=a[l];if(r=r.get(c),!r)throw new Ax(t);if(n||l<a.length-1){const d=r.get(an);if(d.type==="symlink"){let f=gn.resolve(i,d.target);r=this._lookup(f)}i?i=gn.join(i,c):i=c}}return r}mkdir(t,{mode:n}){if(t==="/")throw new rh;let r=this._lookup(gn.dirname(t)),i=gn.basename(t);if(r.has(i))throw new rh;let a=new Map,l={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};a.set(an,l),r.set(i,a)}rmdir(t){let n=this._lookup(t);if(n.get(an).type!=="dir")throw new oh;if(n.size>1)throw new $x;let r=this._lookup(gn.dirname(t)),i=gn.basename(t);r.delete(i)}readdir(t){let n=this._lookup(t);if(n.get(an).type!=="dir")throw new oh;return[...n.keys()].filter(r=>typeof r=="string")}writeStat(t,n,{mode:r}){let i;try{let f=this.stat(t);r==null&&(r=f.mode),i=f.ino}catch{}r==null&&(r=438),i==null&&(i=this.autoinc());let a=this._lookup(gn.dirname(t)),l=gn.basename(t),c={mode:r,type:"file",size:n,mtimeMs:Date.now(),ino:i},d=new Map;return d.set(an,c),a.set(l,d),c}unlink(t){let n=this._lookup(gn.dirname(t)),r=gn.basename(t);n.delete(r)}rename(t,n){let r=gn.basename(n),i=this._lookup(t);this._lookup(gn.dirname(n)).set(r,i),this.unlink(t)}stat(t){return this._lookup(t).get(an)}lstat(t){return this._lookup(t,!1).get(an)}readlink(t){return this._lookup(t,!1).get(an).target}symlink(t,n){let r,i;try{let f=this.stat(n);i===null&&(i=f.mode),r=f.ino}catch{}i==null&&(i=40960),r==null&&(r=this.autoinc());let a=this._lookup(gn.dirname(n)),l=gn.basename(n),c={mode:i,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:r},d=new Map;return d.set(an,c),a.set(l,d),c}_du(t){let n=0;for(const[r,i]of t.entries())r===an?n+=i.size:n+=this._du(i);return n}du(t){let n=this._lookup(t);return this._du(n)}};class ih{constructor(t="keyval-store",n="keyval"){this.storeName=n,this._dbName=t,this._storeName=n,this._init()}_init(){this._dbp||(this._dbp=new Promise((t,n)=>{const r=indexedDB.open(this._dbName);r.onerror=()=>n(r.error),r.onsuccess=()=>t(r.result),r.onupgradeneeded=()=>{r.result.createObjectStore(this._storeName)}}))}_withIDBStore(t,n){return this._init(),this._dbp.then(r=>new Promise((i,a)=>{const l=r.transaction(this.storeName,t);l.oncomplete=()=>i(),l.onabort=l.onerror=()=>a(l.error),n(l.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let fu;function So(){return fu||(fu=new ih),fu}function Bx(e,t=So()){let n;return t._withIDBStore("readwrite",r=>{n=r.get(e)}).then(()=>n.result)}function Dx(e,t,n=So()){return n._withIDBStore("readwrite",r=>{r.put(t,e)})}function jx(e,t,n=So()){return n._withIDBStore("readwrite",r=>{const i=r.get(e);i.onsuccess=()=>{r.put(t(i.result),e)}})}function Lx(e,t=So()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}function Fx(e=So()){return e._withIDBStore("readwrite",t=>{t.clear()})}function Nx(e=So()){const t=[];return e._withIDBStore("readwrite",n=>{(n.openKeyCursor||n.openCursor).call(n).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)}function zx(e=So()){return e._close()}const sh=ia(Object.freeze(Object.defineProperty({__proto__:null,Store:ih,clear:Fx,close:zx,del:Lx,get:Bx,keys:Nx,set:Dx,update:jx},Symbol.toStringTag,{value:"Module"}))),to=sh;var Wx=class{constructor(t,n){this._database=t,this._storename=n,this._store=new to.Store(this._database,this._storename)}saveSuperblock(t){return to.set("!root",t,this._store)}loadSuperblock(){return to.get("!root",this._store)}readFile(t){return to.get(t,this._store)}writeFile(t,n){return to.set(t,n,this._store)}unlink(t){return to.del(t,this._store)}wipe(){return to.clear(this._store)}close(){return to.close(this._store)}},Ux=class{constructor(t){this._url=t}loadSuperblock(){return fetch(this._url+"/.superblock.txt").then(t=>t.ok?t.text():null)}async readFile(t){const n=await fetch(this._url+t);if(n.status===200)return n.arrayBuffer();throw new Error("ENOENT")}async sizeFile(t){const n=await fetch(this._url+t,{method:"HEAD"});if(n.status===200)return n.headers.get("content-length");throw new Error("ENOENT")}};const Vi=sh,Hx=e=>new Promise(t=>setTimeout(t,e));var Gx=class{constructor(t,n){this._id=Math.random(),this._database=t,this._storename=n,this._store=new Vi.Store(this._database,this._storename),this._lock=null}async has({margin:t=2e3}={}){if(this._lock&&this._lock.holder===this._id){const n=Date.now();return this._lock.expires>n+t?!0:await this.renew()}else return!1}async renew({ttl:t=5e3}={}){let n;return await Vi.update("lock",r=>{const a=Date.now()+t;return n=r&&r.holder===this._id,this._lock=n?{holder:this._id,expires:a}:r,this._lock},this._store),n}async acquire({ttl:t=5e3}={}){let n,r,i;if(await Vi.update("lock",a=>{const l=Date.now(),c=l+t;return r=a&&a.expires<l,n=a===void 0||r,i=a&&a.holder===this._id,this._lock=n?{holder:this._id,expires:c}:a,this._lock},this._store),i)throw new Error("Mutex double-locked");return n}async wait({interval:t=100,limit:n=6e3,ttl:r}={}){for(;n--;){if(await this.acquire({ttl:r}))return!0;await Hx(t)}throw new Error("Mutex timeout")}async release({force:t=!1}={}){let n,r,i;if(await Vi.update("lock",a=>(n=t||a&&a.holder===this._id,r=a===void 0,i=a&&a.holder!==this._id,this._lock=n?void 0:a,this._lock),this._store),await Vi.close(this._store),!n&&!t){if(r)throw new Error("Mutex double-freed");if(i)throw new Error("Mutex lost ownership")}return n}},qx=class{constructor(t){this._id=Math.random(),this._database=t,this._has=!1,this._release=null}async has(){return this._has}async acquire(){return new Promise(t=>{navigator.locks.request(this._database+"_lock",{ifAvailable:!0},n=>(this._has=!!n,t(!!n),new Promise(r=>{this._release=r})))})}async wait({timeout:t=6e5}={}){return new Promise((n,r)=>{const i=new AbortController;setTimeout(()=>{i.abort(),r(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:i.signal},a=>(this._has=!!a,n(!!a),new Promise(l=>{this._release=l})))})}async release({force:t=!1}={}){this._has=!1,this._release?this._release():t&&navigator.locks.request(this._database+"_lock",{steal:!0},n=>!0)}};const{encode:Vx,decode:ah}=xx,Kx=wx,Yx=Mx,{ENOENT:Xx,ENOTEMPTY:Jx,ETIMEDOUT:Zx}=nh,Qx=Wx,ew=Ux,tw=Gx,nw=qx,Ki=du;var rw=class{constructor(){this.saveSuperblock=Kx(()=>{this.flush()},500)}async init(t,{wipe:n,url:r,urlauto:i,fileDbName:a=t,db:l=null,fileStoreName:c=t+"_files",lockDbName:d=t+"_lock",lockStoreName:f=t+"_lock"}={}){this._name=t,this._idb=l||new Qx(a,c),this._mutex=navigator.locks?new nw(t):new tw(d,f),this._cache=new Yx(t),this._opts={wipe:n,url:r},this._needsWipe=!!n,r&&(this._http=new ew(r),this._urlauto=!!i)}async activate(){if(this._cache.activated)return;this._needsWipe&&(this._needsWipe=!1,await this._idb.wipe(),await this._mutex.release({force:!0})),await this._mutex.has()||await this._mutex.wait();const t=await this._idb.loadSuperblock();if(t)this._cache.activate(t);else if(this._http){const n=await this._http.loadSuperblock();this._cache.activate(n),await this._saveSuperblock()}else this._cache.activate();if(!await this._mutex.has())throw new Zx}async deactivate(){await this._mutex.has()&&await this._saveSuperblock(),this._cache.deactivate();try{await this._mutex.release()}catch(t){console.log(t)}await this._idb.close()}async _saveSuperblock(){this._cache.activated&&(this._lastSavedAt=Date.now(),await this._idb.saveSuperblock(this._cache._root))}_writeStat(t,n,r){let i=Ki.split(Ki.dirname(t)),a=i.shift();for(let l of i){a=Ki.join(a,l);try{this._cache.mkdir(a,{mode:511})}catch{}}return this._cache.writeStat(t,n,r)}async readFile(t,n){const{encoding:r}=n;if(r&&r!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let i=null,a=null;try{a=this._cache.stat(t),i=await this._idb.readFile(a.ino)}catch(l){if(!this._urlauto)throw l}if(!i&&this._http){let l=this._cache.lstat(t);for(;l.type==="symlink";)t=Ki.resolve(Ki.dirname(t),l.target),l=this._cache.lstat(t);i=await this._http.readFile(t)}if(i&&((!a||a.size!=i.byteLength)&&(a=await this._writeStat(t,i.byteLength,{mode:a?a.mode:438}),this.saveSuperblock()),r==="utf8"?i=ah(i):i.toString=()=>ah(i)),!a)throw new Xx(t);return i}async writeFile(t,n,r){const{mode:i,encoding:a="utf8"}=r;if(typeof n=="string"){if(a!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');n=Vx(n)}const l=await this._cache.writeStat(t,n.byteLength,{mode:i});await this._idb.writeFile(l.ino,n)}async unlink(t,n){const r=this._cache.lstat(t);this._cache.unlink(t),r.type!=="symlink"&&await this._idb.unlink(r.ino)}readdir(t,n){return this._cache.readdir(t)}mkdir(t,n){const{mode:r=511}=n;this._cache.mkdir(t,{mode:r})}rmdir(t,n){if(t==="/")throw new Jx;this._cache.rmdir(t)}rename(t,n){this._cache.rename(t,n)}stat(t,n){return this._cache.stat(t)}lstat(t,n){return this._cache.lstat(t)}readlink(t,n){return this._cache.readlink(t)}symlink(t,n){this._cache.symlink(t,n)}async backFile(t,n){let r=await this._http.sizeFile(t);await this._writeStat(t,r,n)}du(t){return this._cache.du(t)}flush(){return this._saveSuperblock()}},ow=class{constructor(t){this.type=t.type,this.mode=t.mode,this.size=t.size,this.ino=t.ino,this.mtimeMs=t.mtimeMs,this.ctimeMs=t.ctimeMs||t.mtimeMs,this.uid=1,this.gid=1,this.dev=1}isFile(){return this.type==="file"}isDirectory(){return this.type==="dir"}isSymbolicLink(){return this.type==="symlink"}};const iw=rw,lh=ow,sa=du;function vr(e,t,...n){return e=sa.normalize(e),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[e,t,...n]}function sw(e,t,n,...r){return e=sa.normalize(e),(typeof n>"u"||typeof n=="function")&&(n={}),typeof n=="string"&&(n={encoding:n}),[e,t,n,...r]}function ch(e,t,...n){return[sa.normalize(e),sa.normalize(t),...n]}var aw=class{constructor(t,n={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,vr,!1),this.writeFile=this._wrap(this.writeFile,sw,!0),this.unlink=this._wrap(this.unlink,vr,!0),this.readdir=this._wrap(this.readdir,vr,!1),this.mkdir=this._wrap(this.mkdir,vr,!0),this.rmdir=this._wrap(this.rmdir,vr,!0),this.rename=this._wrap(this.rename,ch,!0),this.stat=this._wrap(this.stat,vr,!1),this.lstat=this._wrap(this.lstat,vr,!1),this.readlink=this._wrap(this.readlink,vr,!1),this.symlink=this._wrap(this.symlink,ch,!0),this.backFile=this._wrap(this.backFile,vr,!0),this.du=this._wrap(this.du,vr,!1),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,t&&this.init(t,n)}async init(...t){return this._initPromiseResolve&&await this._initPromise,this._initPromise=this._init(...t),this._initPromise}async _init(t,n={}){await this._gracefulShutdown(),this._activationPromise&&await this._deactivate(),this._backend&&this._backend.destroy&&await this._backend.destroy(),this._backend=n.backend||new iw,this._backend.init&&await this._backend.init(t,n),this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),n.defer||this.stat("/")}async _gracefulShutdown(){this._operations.size>0&&(this._isShuttingDown=!0,await new Promise(t=>this._gracefulShutdownResolve=t),this._isShuttingDown=!1,this._gracefulShutdownResolve=null)}_wrap(t,n,r){return async(...i)=>{i=n(...i);let a={name:t.name,args:i};this._operations.add(a);try{return await this._activate(),await t.apply(this,i)}finally{this._operations.delete(a),r&&this._backend.saveSuperblock(),this._operations.size===0&&(this._deactivationTimeout||clearTimeout(this._deactivationTimeout),this._deactivationTimeout=setTimeout(this._deactivate.bind(this),500))}}}async _activate(){this._initPromise||console.warn(new Error(`Attempted to use LightningFS ${this._name} before it was initialized.`)),await this._initPromise,this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),this._deactivationPromise&&await this._deactivationPromise,this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this._backend.activate?this._backend.activate():Promise.resolve()),await this._activationPromise}async _deactivate(){return this._activationPromise&&await this._activationPromise,this._deactivationPromise||(this._deactivationPromise=this._backend.deactivate?this._backend.deactivate():Promise.resolve()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),this._deactivationPromise}async readFile(t,n){return this._backend.readFile(t,n)}async writeFile(t,n,r){return await this._backend.writeFile(t,n,r),null}async unlink(t,n){return await this._backend.unlink(t,n),null}async readdir(t,n){return this._backend.readdir(t,n)}async mkdir(t,n){return await this._backend.mkdir(t,n),null}async rmdir(t,n){return await this._backend.rmdir(t,n),null}async rename(t,n){return await this._backend.rename(t,n),null}async stat(t,n){const r=await this._backend.stat(t,n);return new lh(r)}async lstat(t,n){const r=await this._backend.lstat(t,n);return new lh(r)}async readlink(t,n){return this._backend.readlink(t,n)}async symlink(t,n){return await this._backend.symlink(t,n),null}async backFile(t,n){return await this._backend.backFile(t,n),null}async du(t){return this._backend.du(t)}async flush(){return this._backend.flush()}};const lw=vx,cw=aw;function wn(e,t){return typeof e=="function"&&(t=e),t=lw(t),[(...r)=>t(null,...r),t]}var uw=class{constructor(...t){this.promises=new cw(...t),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this),this.flush=this.flush.bind(this)}init(t,n){return this.promises.init(t,n)}readFile(t,n,r){const[i,a]=wn(n,r);this.promises.readFile(t,n).then(i).catch(a)}writeFile(t,n,r,i){const[a,l]=wn(r,i);this.promises.writeFile(t,n,r).then(a).catch(l)}unlink(t,n,r){const[i,a]=wn(n,r);this.promises.unlink(t,n).then(i).catch(a)}readdir(t,n,r){const[i,a]=wn(n,r);this.promises.readdir(t,n).then(i).catch(a)}mkdir(t,n,r){const[i,a]=wn(n,r);this.promises.mkdir(t,n).then(i).catch(a)}rmdir(t,n,r){const[i,a]=wn(n,r);this.promises.rmdir(t,n).then(i).catch(a)}rename(t,n,r){const[i,a]=wn(r);this.promises.rename(t,n).then(i).catch(a)}stat(t,n,r){const[i,a]=wn(n,r);this.promises.stat(t).then(i).catch(a)}lstat(t,n,r){const[i,a]=wn(n,r);this.promises.lstat(t).then(i).catch(a)}readlink(t,n,r){const[i,a]=wn(n,r);this.promises.readlink(t).then(i).catch(a)}symlink(t,n,r){const[i,a]=wn(r);this.promises.symlink(t,n).then(i).catch(a)}backFile(t,n,r){const[i,a]=wn(n,r);this.promises.backFile(t,n).then(i).catch(a)}du(t,n){const[r,i]=wn(n);this.promises.du(t).then(r).catch(i)}flush(t){const[n,r]=wn(t);this.promises.flush().then(n).catch(r)}};const dw=Qp(uw);var uh={},aa={};aa.byteLength=hw,aa.toByteArray=mw,aa.fromByteArray=bw;for(var br=[],Gn=[],fw=typeof Uint8Array<"u"?Uint8Array:Array,pu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Yo=0,pw=pu.length;Yo<pw;++Yo)br[Yo]=pu[Yo],Gn[pu.charCodeAt(Yo)]=Yo;Gn[45]=62,Gn[95]=63;function dh(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var r=n===t?0:4-n%4;return[n,r]}function hw(e){var t=dh(e),n=t[0],r=t[1];return(n+r)*3/4-r}function gw(e,t,n){return(t+n)*3/4-n}function mw(e){var t,n=dh(e),r=n[0],i=n[1],a=new fw(gw(e,r,i)),l=0,c=i>0?r-4:r,d;for(d=0;d<c;d+=4)t=Gn[e.charCodeAt(d)]<<18|Gn[e.charCodeAt(d+1)]<<12|Gn[e.charCodeAt(d+2)]<<6|Gn[e.charCodeAt(d+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=t&255;return i===2&&(t=Gn[e.charCodeAt(d)]<<2|Gn[e.charCodeAt(d+1)]>>4,a[l++]=t&255),i===1&&(t=Gn[e.charCodeAt(d)]<<10|Gn[e.charCodeAt(d+1)]<<4|Gn[e.charCodeAt(d+2)]>>2,a[l++]=t>>8&255,a[l++]=t&255),a}function yw(e){return br[e>>18&63]+br[e>>12&63]+br[e>>6&63]+br[e&63]}function vw(e,t,n){for(var r,i=[],a=t;a<n;a+=3)r=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),i.push(yw(r));return i.join("")}function bw(e){for(var t,n=e.length,r=n%3,i=[],a=16383,l=0,c=n-r;l<c;l+=a)i.push(vw(e,l,l+a>c?c:l+a));return r===1?(t=e[n-1],i.push(br[t>>2]+br[t<<4&63]+"==")):r===2&&(t=(e[n-2]<<8)+e[n-1],i.push(br[t>>10]+br[t>>4&63]+br[t<<2&63]+"=")),i.join("")}var hu={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */hu.read=function(e,t,n,r,i){var a,l,c=i*8-r-1,d=(1<<c)-1,f=d>>1,y=-7,m=n?i-1:0,v=n?-1:1,w=e[t+m];for(m+=v,a=w&(1<<-y)-1,w>>=-y,y+=c;y>0;a=a*256+e[t+m],m+=v,y-=8);for(l=a&(1<<-y)-1,a>>=-y,y+=r;y>0;l=l*256+e[t+m],m+=v,y-=8);if(a===0)a=1-f;else{if(a===d)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,r),a=a-f}return(w?-1:1)*l*Math.pow(2,a-r)},hu.write=function(e,t,n,r,i,a){var l,c,d,f=a*8-i-1,y=(1<<f)-1,m=y>>1,v=i===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=r?0:a-1,x=r?1:-1,_=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(c=isNaN(t)?1:0,l=y):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+m>=1?t+=v/d:t+=v*Math.pow(2,1-m),t*d>=2&&(l++,d/=2),l+m>=y?(c=0,l=y):l+m>=1?(c=(t*d-1)*Math.pow(2,i),l=l+m):(c=t*Math.pow(2,m-1)*Math.pow(2,i),l=0));i>=8;e[n+w]=c&255,w+=x,c/=256,i-=8);for(l=l<<i|c,f+=i;f>0;e[n+w]=l&255,w+=x,l/=256,f-=8);e[n+w-x]|=_*128};/*!
|
|
3
|
+
`,o(u,a+1))}};return o(t,0),n}parse(t){let n=0;function o(u){const d=++n,h=u.length===1?"dir":"file";let[y,m,b]=u;return y=parseInt(y,8),m=m?parseInt(m):0,b=b?parseInt(b):Date.now(),new Map([[rn,{mode:y,type:h,size:m,mtimeMs:b,ino:d}]])}let s=t.trim().split(`
|
|
4
|
+
`),a=this._makeRoot(),l=[{indent:-1,node:a},{indent:0,node:null}];for(let u of s){let h=u.match(/^\t*/)[0].length;u=u.slice(h);let[y,...m]=u.split(" "),b=o(m);if(h<=l[l.length-1].indent)for(;h<=l[l.length-1].indent;)l.pop();l.push({indent:h,node:b}),l[l.length-2].node.set(y,b)}return a}_lookup(t,n=!0){let o=this._root,s="/",a=fn.split(t);for(let l=0;l<a.length;++l){let u=a[l];if(o=o.get(u),!o)throw new Zb(t);if(n||l<a.length-1){const d=o.get(rn);if(d.type==="symlink"){let h=fn.resolve(s,d.target);o=this._lookup(h)}s?s=fn.join(s,u):s=u}}return o}mkdir(t,{mode:n}){if(t==="/")throw new Mp;let o=this._lookup(fn.dirname(t)),s=fn.basename(t);if(o.has(s))throw new Mp;let a=new Map,l={mode:n,type:"dir",size:0,mtimeMs:Date.now(),ino:this.autoinc()};a.set(rn,l),o.set(s,a)}rmdir(t){let n=this._lookup(t);if(n.get(rn).type!=="dir")throw new $p;if(n.size>1)throw new Qb;let o=this._lookup(fn.dirname(t)),s=fn.basename(t);o.delete(s)}readdir(t){let n=this._lookup(t);if(n.get(rn).type!=="dir")throw new $p;return[...n.keys()].filter(o=>typeof o=="string")}writeStat(t,n,{mode:o}){let s;try{let h=this.stat(t);o==null&&(o=h.mode),s=h.ino}catch{}o==null&&(o=438),s==null&&(s=this.autoinc());let a=this._lookup(fn.dirname(t)),l=fn.basename(t),u={mode:o,type:"file",size:n,mtimeMs:Date.now(),ino:s},d=new Map;return d.set(rn,u),a.set(l,d),u}unlink(t){let n=this._lookup(fn.dirname(t)),o=fn.basename(t);n.delete(o)}rename(t,n){let o=fn.basename(n),s=this._lookup(t);this._lookup(fn.dirname(n)).set(o,s),this.unlink(t)}stat(t){return this._lookup(t).get(rn)}lstat(t){return this._lookup(t,!1).get(rn)}readlink(t){return this._lookup(t,!1).get(rn).target}symlink(t,n){let o,s;try{let h=this.stat(n);s===null&&(s=h.mode),o=h.ino}catch{}s==null&&(s=40960),o==null&&(o=this.autoinc());let a=this._lookup(fn.dirname(n)),l=fn.basename(n),u={mode:s,type:"symlink",target:t,size:0,mtimeMs:Date.now(),ino:o},d=new Map;return d.set(rn,u),a.set(l,d),u}_du(t){let n=0;for(const[o,s]of t.entries())o===rn?n+=s.size:n+=this._du(s);return n}du(t){let n=this._lookup(t);return this._du(n)}};class Dp{constructor(t="keyval-store",n="keyval"){this.storeName=n,this._dbName=t,this._storeName=n,this._init()}_init(){this._dbp||(this._dbp=new Promise((t,n)=>{const o=indexedDB.open(this._dbName);o.onerror=()=>n(o.error),o.onsuccess=()=>t(o.result),o.onupgradeneeded=()=>{o.result.createObjectStore(this._storeName)}}))}_withIDBStore(t,n){return this._init(),this._dbp.then(o=>new Promise((s,a)=>{const l=o.transaction(this.storeName,t);l.oncomplete=()=>s(),l.onabort=l.onerror=()=>a(l.error),n(l.objectStore(this.storeName))}))}_close(){return this._init(),this._dbp.then(t=>{t.close(),this._dbp=void 0})}}let zc;function yo(){return zc||(zc=new Dp),zc}function tx(e,t=yo()){let n;return t._withIDBStore("readwrite",o=>{n=o.get(e)}).then(()=>n.result)}function nx(e,t,n=yo()){return n._withIDBStore("readwrite",o=>{o.put(t,e)})}function rx(e,t,n=yo()){return n._withIDBStore("readwrite",o=>{const s=o.get(e);s.onsuccess=()=>{o.put(t(s.result),e)}})}function ox(e,t=yo()){return t._withIDBStore("readwrite",n=>{n.delete(e)})}function ix(e=yo()){return e._withIDBStore("readwrite",t=>{t.clear()})}function sx(e=yo()){const t=[];return e._withIDBStore("readwrite",n=>{(n.openKeyCursor||n.openCursor).call(n).onsuccess=function(){this.result&&(t.push(this.result.key),this.result.continue())}}).then(()=>t)}function ax(e=yo()){return e._close()}const Bp=Vs(Object.freeze(Object.defineProperty({__proto__:null,Store:Dp,clear:ix,close:ax,del:ox,get:tx,keys:sx,set:nx,update:rx},Symbol.toStringTag,{value:"Module"}))),Jr=Bp;var lx=class{constructor(t,n){this._database=t,this._storename=n,this._store=new Jr.Store(this._database,this._storename)}saveSuperblock(t){return Jr.set("!root",t,this._store)}loadSuperblock(){return Jr.get("!root",this._store)}readFile(t){return Jr.get(t,this._store)}writeFile(t,n){return Jr.set(t,n,this._store)}unlink(t){return Jr.del(t,this._store)}wipe(){return Jr.clear(this._store)}close(){return Jr.close(this._store)}},cx=class{constructor(t){this._url=t}loadSuperblock(){return fetch(this._url+"/.superblock.txt").then(t=>t.ok?t.text():null)}async readFile(t){const n=await fetch(this._url+t);if(n.status===200)return n.arrayBuffer();throw new Error("ENOENT")}async sizeFile(t){const n=await fetch(this._url+t,{method:"HEAD"});if(n.status===200)return n.headers.get("content-length");throw new Error("ENOENT")}};const Fi=Bp,ux=e=>new Promise(t=>setTimeout(t,e));var dx=class{constructor(t,n){this._id=Math.random(),this._database=t,this._storename=n,this._store=new Fi.Store(this._database,this._storename),this._lock=null}async has({margin:t=2e3}={}){if(this._lock&&this._lock.holder===this._id){const n=Date.now();return this._lock.expires>n+t?!0:await this.renew()}else return!1}async renew({ttl:t=5e3}={}){let n;return await Fi.update("lock",o=>{const a=Date.now()+t;return n=o&&o.holder===this._id,this._lock=n?{holder:this._id,expires:a}:o,this._lock},this._store),n}async acquire({ttl:t=5e3}={}){let n,o,s;if(await Fi.update("lock",a=>{const l=Date.now(),u=l+t;return o=a&&a.expires<l,n=a===void 0||o,s=a&&a.holder===this._id,this._lock=n?{holder:this._id,expires:u}:a,this._lock},this._store),s)throw new Error("Mutex double-locked");return n}async wait({interval:t=100,limit:n=6e3,ttl:o}={}){for(;n--;){if(await this.acquire({ttl:o}))return!0;await ux(t)}throw new Error("Mutex timeout")}async release({force:t=!1}={}){let n,o,s;if(await Fi.update("lock",a=>(n=t||a&&a.holder===this._id,o=a===void 0,s=a&&a.holder!==this._id,this._lock=n?void 0:a,this._lock),this._store),await Fi.close(this._store),!n&&!t){if(o)throw new Error("Mutex double-freed");if(s)throw new Error("Mutex lost ownership")}return n}},fx=class{constructor(t){this._id=Math.random(),this._database=t,this._has=!1,this._release=null}async has(){return this._has}async acquire(){return new Promise(t=>{navigator.locks.request(this._database+"_lock",{ifAvailable:!0},n=>(this._has=!!n,t(!!n),new Promise(o=>{this._release=o})))})}async wait({timeout:t=6e5}={}){return new Promise((n,o)=>{const s=new AbortController;setTimeout(()=>{s.abort(),o(new Error("Mutex timeout"))},t),navigator.locks.request(this._database+"_lock",{signal:s.signal},a=>(this._has=!!a,n(!!a),new Promise(l=>{this._release=l})))})}async release({force:t=!1}={}){this._has=!1,this._release?this._release():t&&navigator.locks.request(this._database+"_lock",{steal:!0},n=>!0)}};const{encode:px,decode:Lp}=Fb,hx=zb,gx=ex,{ENOENT:mx,ENOTEMPTY:yx,ETIMEDOUT:vx}=Ap,bx=lx,xx=cx,wx=dx,Sx=fx,zi=Fc;var Cx=class{constructor(){this.saveSuperblock=hx(()=>{this.flush()},500)}async init(t,{wipe:n,url:o,urlauto:s,fileDbName:a=t,db:l=null,fileStoreName:u=t+"_files",lockDbName:d=t+"_lock",lockStoreName:h=t+"_lock"}={}){this._name=t,this._idb=l||new bx(a,u),this._mutex=navigator.locks?new Sx(t):new wx(d,h),this._cache=new gx(t),this._opts={wipe:n,url:o},this._needsWipe=!!n,o&&(this._http=new xx(o),this._urlauto=!!s)}async activate(){if(this._cache.activated)return;this._needsWipe&&(this._needsWipe=!1,await this._idb.wipe(),await this._mutex.release({force:!0})),await this._mutex.has()||await this._mutex.wait();const t=await this._idb.loadSuperblock();if(t)this._cache.activate(t);else if(this._http){const n=await this._http.loadSuperblock();this._cache.activate(n),await this._saveSuperblock()}else this._cache.activate();if(!await this._mutex.has())throw new vx}async deactivate(){await this._mutex.has()&&await this._saveSuperblock(),this._cache.deactivate();try{await this._mutex.release()}catch(t){console.log(t)}await this._idb.close()}async _saveSuperblock(){this._cache.activated&&(this._lastSavedAt=Date.now(),await this._idb.saveSuperblock(this._cache._root))}_writeStat(t,n,o){let s=zi.split(zi.dirname(t)),a=s.shift();for(let l of s){a=zi.join(a,l);try{this._cache.mkdir(a,{mode:511})}catch{}}return this._cache.writeStat(t,n,o)}async readFile(t,n){const{encoding:o}=n;if(o&&o!=="utf8")throw new Error('Only "utf8" encoding is supported in readFile');let s=null,a=null;try{a=this._cache.stat(t),s=await this._idb.readFile(a.ino)}catch(l){if(!this._urlauto)throw l}if(!s&&this._http){let l=this._cache.lstat(t);for(;l.type==="symlink";)t=zi.resolve(zi.dirname(t),l.target),l=this._cache.lstat(t);s=await this._http.readFile(t)}if(s&&((!a||a.size!=s.byteLength)&&(a=await this._writeStat(t,s.byteLength,{mode:a?a.mode:438}),this.saveSuperblock()),o==="utf8"?s=Lp(s):s.toString=()=>Lp(s)),!a)throw new mx(t);return s}async writeFile(t,n,o){const{mode:s,encoding:a="utf8"}=o;if(typeof n=="string"){if(a!=="utf8")throw new Error('Only "utf8" encoding is supported in writeFile');n=px(n)}const l=await this._cache.writeStat(t,n.byteLength,{mode:s});await this._idb.writeFile(l.ino,n)}async unlink(t,n){const o=this._cache.lstat(t);this._cache.unlink(t),o.type!=="symlink"&&await this._idb.unlink(o.ino)}readdir(t,n){return this._cache.readdir(t)}mkdir(t,n){const{mode:o=511}=n;this._cache.mkdir(t,{mode:o})}rmdir(t,n){if(t==="/")throw new yx;this._cache.rmdir(t)}rename(t,n){this._cache.rename(t,n)}stat(t,n){return this._cache.stat(t)}lstat(t,n){return this._cache.lstat(t)}readlink(t,n){return this._cache.readlink(t)}symlink(t,n){this._cache.symlink(t,n)}async backFile(t,n){let o=await this._http.sizeFile(t);await this._writeStat(t,o,n)}du(t){return this._cache.du(t)}flush(){return this._saveSuperblock()}},_x=class{constructor(t){this.type=t.type,this.mode=t.mode,this.size=t.size,this.ino=t.ino,this.mtimeMs=t.mtimeMs,this.ctimeMs=t.ctimeMs||t.mtimeMs,this.uid=1,this.gid=1,this.dev=1}isFile(){return this.type==="file"}isDirectory(){return this.type==="dir"}isSymbolicLink(){return this.type==="symlink"}};const Ex=Cx,jp=_x,Ys=Fc;function pr(e,t,...n){return e=Ys.normalize(e),(typeof t>"u"||typeof t=="function")&&(t={}),typeof t=="string"&&(t={encoding:t}),[e,t,...n]}function Rx(e,t,n,...o){return e=Ys.normalize(e),(typeof n>"u"||typeof n=="function")&&(n={}),typeof n=="string"&&(n={encoding:n}),[e,t,n,...o]}function Np(e,t,...n){return[Ys.normalize(e),Ys.normalize(t),...n]}var Ix=class{constructor(t,n={}){this.init=this.init.bind(this),this.readFile=this._wrap(this.readFile,pr,!1),this.writeFile=this._wrap(this.writeFile,Rx,!0),this.unlink=this._wrap(this.unlink,pr,!0),this.readdir=this._wrap(this.readdir,pr,!1),this.mkdir=this._wrap(this.mkdir,pr,!0),this.rmdir=this._wrap(this.rmdir,pr,!0),this.rename=this._wrap(this.rename,Np,!0),this.stat=this._wrap(this.stat,pr,!1),this.lstat=this._wrap(this.lstat,pr,!1),this.readlink=this._wrap(this.readlink,pr,!1),this.symlink=this._wrap(this.symlink,Np,!0),this.backFile=this._wrap(this.backFile,pr,!0),this.du=this._wrap(this.du,pr,!1),this._deactivationPromise=null,this._deactivationTimeout=null,this._activationPromise=null,this._operations=new Set,t&&this.init(t,n)}async init(...t){return this._initPromiseResolve&&await this._initPromise,this._initPromise=this._init(...t),this._initPromise}async _init(t,n={}){await this._gracefulShutdown(),this._activationPromise&&await this._deactivate(),this._backend&&this._backend.destroy&&await this._backend.destroy(),this._backend=n.backend||new Ex,this._backend.init&&await this._backend.init(t,n),this._initPromiseResolve&&(this._initPromiseResolve(),this._initPromiseResolve=null),n.defer||this.stat("/")}async _gracefulShutdown(){this._operations.size>0&&(this._isShuttingDown=!0,await new Promise(t=>this._gracefulShutdownResolve=t),this._isShuttingDown=!1,this._gracefulShutdownResolve=null)}_wrap(t,n,o){return async(...s)=>{s=n(...s);let a={name:t.name,args:s};this._operations.add(a);try{return await this._activate(),await t.apply(this,s)}finally{this._operations.delete(a),o&&this._backend.saveSuperblock(),this._operations.size===0&&(this._deactivationTimeout||clearTimeout(this._deactivationTimeout),this._deactivationTimeout=setTimeout(this._deactivate.bind(this),500))}}}async _activate(){this._initPromise||console.warn(new Error(`Attempted to use LightningFS ${this._name} before it was initialized.`)),await this._initPromise,this._deactivationTimeout&&(clearTimeout(this._deactivationTimeout),this._deactivationTimeout=null),this._deactivationPromise&&await this._deactivationPromise,this._deactivationPromise=null,this._activationPromise||(this._activationPromise=this._backend.activate?this._backend.activate():Promise.resolve()),await this._activationPromise}async _deactivate(){return this._activationPromise&&await this._activationPromise,this._deactivationPromise||(this._deactivationPromise=this._backend.deactivate?this._backend.deactivate():Promise.resolve()),this._activationPromise=null,this._gracefulShutdownResolve&&this._gracefulShutdownResolve(),this._deactivationPromise}async readFile(t,n){return this._backend.readFile(t,n)}async writeFile(t,n,o){return await this._backend.writeFile(t,n,o),null}async unlink(t,n){return await this._backend.unlink(t,n),null}async readdir(t,n){return this._backend.readdir(t,n)}async mkdir(t,n){return await this._backend.mkdir(t,n),null}async rmdir(t,n){return await this._backend.rmdir(t,n),null}async rename(t,n){return await this._backend.rename(t,n),null}async stat(t,n){const o=await this._backend.stat(t,n);return new jp(o)}async lstat(t,n){const o=await this._backend.lstat(t,n);return new jp(o)}async readlink(t,n){return this._backend.readlink(t,n)}async symlink(t,n){return await this._backend.symlink(t,n),null}async backFile(t,n){return await this._backend.backFile(t,n),null}async du(t){return this._backend.du(t)}async flush(){return this._backend.flush()}};const kx=jb,Tx=Ix;function yn(e,t){return typeof e=="function"&&(t=e),t=kx(t),[(...o)=>t(null,...o),t]}var Px=class{constructor(...t){this.promises=new Tx(...t),this.init=this.init.bind(this),this.readFile=this.readFile.bind(this),this.writeFile=this.writeFile.bind(this),this.unlink=this.unlink.bind(this),this.readdir=this.readdir.bind(this),this.mkdir=this.mkdir.bind(this),this.rmdir=this.rmdir.bind(this),this.rename=this.rename.bind(this),this.stat=this.stat.bind(this),this.lstat=this.lstat.bind(this),this.readlink=this.readlink.bind(this),this.symlink=this.symlink.bind(this),this.backFile=this.backFile.bind(this),this.du=this.du.bind(this),this.flush=this.flush.bind(this)}init(t,n){return this.promises.init(t,n)}readFile(t,n,o){const[s,a]=yn(n,o);this.promises.readFile(t,n).then(s).catch(a)}writeFile(t,n,o,s){const[a,l]=yn(o,s);this.promises.writeFile(t,n,o).then(a).catch(l)}unlink(t,n,o){const[s,a]=yn(n,o);this.promises.unlink(t,n).then(s).catch(a)}readdir(t,n,o){const[s,a]=yn(n,o);this.promises.readdir(t,n).then(s).catch(a)}mkdir(t,n,o){const[s,a]=yn(n,o);this.promises.mkdir(t,n).then(s).catch(a)}rmdir(t,n,o){const[s,a]=yn(n,o);this.promises.rmdir(t,n).then(s).catch(a)}rename(t,n,o){const[s,a]=yn(o);this.promises.rename(t,n).then(s).catch(a)}stat(t,n,o){const[s,a]=yn(n,o);this.promises.stat(t).then(s).catch(a)}lstat(t,n,o){const[s,a]=yn(n,o);this.promises.lstat(t).then(s).catch(a)}readlink(t,n,o){const[s,a]=yn(n,o);this.promises.readlink(t).then(s).catch(a)}symlink(t,n,o){const[s,a]=yn(o);this.promises.symlink(t,n).then(s).catch(a)}backFile(t,n,o){const[s,a]=yn(n,o);this.promises.backFile(t,n).then(s).catch(a)}du(t,n){const[o,s]=yn(n);this.promises.du(t).then(o).catch(s)}flush(t){const[n,o]=yn(t);this.promises.flush().then(n).catch(o)}};const Ox=Tp(Px);var Fp={},Xs={};Xs.byteLength=$x,Xs.toByteArray=Bx,Xs.fromByteArray=Nx;for(var hr=[],Fn=[],Ax=typeof Uint8Array<"u"?Uint8Array:Array,Wc="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Uo=0,Mx=Wc.length;Uo<Mx;++Uo)hr[Uo]=Wc[Uo],Fn[Wc.charCodeAt(Uo)]=Uo;Fn[45]=62,Fn[95]=63;function zp(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");n===-1&&(n=t);var o=n===t?0:4-n%4;return[n,o]}function $x(e){var t=zp(e),n=t[0],o=t[1];return(n+o)*3/4-o}function Dx(e,t,n){return(t+n)*3/4-n}function Bx(e){var t,n=zp(e),o=n[0],s=n[1],a=new Ax(Dx(e,o,s)),l=0,u=s>0?o-4:o,d;for(d=0;d<u;d+=4)t=Fn[e.charCodeAt(d)]<<18|Fn[e.charCodeAt(d+1)]<<12|Fn[e.charCodeAt(d+2)]<<6|Fn[e.charCodeAt(d+3)],a[l++]=t>>16&255,a[l++]=t>>8&255,a[l++]=t&255;return s===2&&(t=Fn[e.charCodeAt(d)]<<2|Fn[e.charCodeAt(d+1)]>>4,a[l++]=t&255),s===1&&(t=Fn[e.charCodeAt(d)]<<10|Fn[e.charCodeAt(d+1)]<<4|Fn[e.charCodeAt(d+2)]>>2,a[l++]=t>>8&255,a[l++]=t&255),a}function Lx(e){return hr[e>>18&63]+hr[e>>12&63]+hr[e>>6&63]+hr[e&63]}function jx(e,t,n){for(var o,s=[],a=t;a<n;a+=3)o=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(e[a+2]&255),s.push(Lx(o));return s.join("")}function Nx(e){for(var t,n=e.length,o=n%3,s=[],a=16383,l=0,u=n-o;l<u;l+=a)s.push(jx(e,l,l+a>u?u:l+a));return o===1?(t=e[n-1],s.push(hr[t>>2]+hr[t<<4&63]+"==")):o===2&&(t=(e[n-2]<<8)+e[n-1],s.push(hr[t>>10]+hr[t>>4&63]+hr[t<<2&63]+"=")),s.join("")}var Uc={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */Uc.read=function(e,t,n,o,s){var a,l,u=s*8-o-1,d=(1<<u)-1,h=d>>1,y=-7,m=n?s-1:0,b=n?-1:1,w=e[t+m];for(m+=b,a=w&(1<<-y)-1,w>>=-y,y+=u;y>0;a=a*256+e[t+m],m+=b,y-=8);for(l=a&(1<<-y)-1,a>>=-y,y+=o;y>0;l=l*256+e[t+m],m+=b,y-=8);if(a===0)a=1-h;else{if(a===d)return l?NaN:(w?-1:1)*(1/0);l=l+Math.pow(2,o),a=a-h}return(w?-1:1)*l*Math.pow(2,a-o)},Uc.write=function(e,t,n,o,s,a){var l,u,d,h=a*8-s-1,y=(1<<h)-1,m=y>>1,b=s===23?Math.pow(2,-24)-Math.pow(2,-77):0,w=o?0:a-1,S=o?1:-1,E=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,l=y):(l=Math.floor(Math.log(t)/Math.LN2),t*(d=Math.pow(2,-l))<1&&(l--,d*=2),l+m>=1?t+=b/d:t+=b*Math.pow(2,1-m),t*d>=2&&(l++,d/=2),l+m>=y?(u=0,l=y):l+m>=1?(u=(t*d-1)*Math.pow(2,s),l=l+m):(u=t*Math.pow(2,m-1)*Math.pow(2,s),l=0));s>=8;e[n+w]=u&255,w+=S,u/=256,s-=8);for(l=l<<s|u,h+=s;h>0;e[n+w]=l&255,w+=S,l/=256,h-=8);e[n+w-S]|=E*128};/*!
|
|
5
5
|
* The buffer module from node.js, for the browser.
|
|
6
6
|
*
|
|
7
7
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
8
8
|
* @license MIT
|
|
9
|
-
*/(function(e){const t=aa,n=hu,r=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=c,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const i=2147483647;e.kMaxLength=i,c.TYPED_ARRAY_SUPPORT=a(),!c.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const T=new Uint8Array(1),h={foo:function(){return 42}};return Object.setPrototypeOf(h,Uint8Array.prototype),Object.setPrototypeOf(T,h),T.foo()===42}catch{return!1}}Object.defineProperty(c.prototype,"parent",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,"offset",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}});function l(T){if(T>i)throw new RangeError('The value "'+T+'" is invalid for option "size"');const h=new Uint8Array(T);return Object.setPrototypeOf(h,c.prototype),h}function c(T,h,g){if(typeof T=="number"){if(typeof h=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(T)}return d(T,h,g)}c.poolSize=8192;function d(T,h,g){if(typeof T=="string")return v(T,h);if(ArrayBuffer.isView(T))return x(T);if(T==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T);if(st(T,ArrayBuffer)||T&&st(T.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(st(T,SharedArrayBuffer)||T&&st(T.buffer,SharedArrayBuffer)))return _(T,h,g);if(typeof T=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const B=T.valueOf&&T.valueOf();if(B!=null&&B!==T)return c.from(B,h,g);const F=k(T);if(F)return F;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof T[Symbol.toPrimitive]=="function")return c.from(T[Symbol.toPrimitive]("string"),h,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof T)}c.from=function(T,h,g){return d(T,h,g)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array);function f(T){if(typeof T!="number")throw new TypeError('"size" argument must be of type number');if(T<0)throw new RangeError('The value "'+T+'" is invalid for option "size"')}function y(T,h,g){return f(T),T<=0?l(T):h!==void 0?typeof g=="string"?l(T).fill(h,g):l(T).fill(h):l(T)}c.alloc=function(T,h,g){return y(T,h,g)};function m(T){return f(T),l(T<0?0:C(T)|0)}c.allocUnsafe=function(T){return m(T)},c.allocUnsafeSlow=function(T){return m(T)};function v(T,h){if((typeof h!="string"||h==="")&&(h="utf8"),!c.isEncoding(h))throw new TypeError("Unknown encoding: "+h);const g=P(T,h)|0;let B=l(g);const F=B.write(T,h);return F!==g&&(B=B.slice(0,F)),B}function w(T){const h=T.length<0?0:C(T.length)|0,g=l(h);for(let B=0;B<h;B+=1)g[B]=T[B]&255;return g}function x(T){if(st(T,Uint8Array)){const h=new Uint8Array(T);return _(h.buffer,h.byteOffset,h.byteLength)}return w(T)}function _(T,h,g){if(h<0||T.byteLength<h)throw new RangeError('"offset" is outside of buffer bounds');if(T.byteLength<h+(g||0))throw new RangeError('"length" is outside of buffer bounds');let B;return h===void 0&&g===void 0?B=new Uint8Array(T):g===void 0?B=new Uint8Array(T,h):B=new Uint8Array(T,h,g),Object.setPrototypeOf(B,c.prototype),B}function k(T){if(c.isBuffer(T)){const h=C(T.length)|0,g=l(h);return g.length===0||T.copy(g,0,0,h),g}if(T.length!==void 0)return typeof T.length!="number"||ye(T.length)?l(0):w(T);if(T.type==="Buffer"&&Array.isArray(T.data))return w(T.data)}function C(T){if(T>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return T|0}function O(T){return+T!=T&&(T=0),c.alloc(+T)}c.isBuffer=function(h){return h!=null&&h._isBuffer===!0&&h!==c.prototype},c.compare=function(h,g){if(st(h,Uint8Array)&&(h=c.from(h,h.offset,h.byteLength)),st(g,Uint8Array)&&(g=c.from(g,g.offset,g.byteLength)),!c.isBuffer(h)||!c.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(h===g)return 0;let B=h.length,F=g.length;for(let q=0,Z=Math.min(B,F);q<Z;++q)if(h[q]!==g[q]){B=h[q],F=g[q];break}return B<F?-1:F<B?1:0},c.isEncoding=function(h){switch(String(h).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},c.concat=function(h,g){if(!Array.isArray(h))throw new TypeError('"list" argument must be an Array of Buffers');if(h.length===0)return c.alloc(0);let B;if(g===void 0)for(g=0,B=0;B<h.length;++B)g+=h[B].length;const F=c.allocUnsafe(g);let q=0;for(B=0;B<h.length;++B){let Z=h[B];if(st(Z,Uint8Array))q+Z.length>F.length?(c.isBuffer(Z)||(Z=c.from(Z)),Z.copy(F,q)):Uint8Array.prototype.set.call(F,Z,q);else if(c.isBuffer(Z))Z.copy(F,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=Z.length}return F};function P(T,h){if(c.isBuffer(T))return T.length;if(ArrayBuffer.isView(T)||st(T,ArrayBuffer))return T.byteLength;if(typeof T!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof T);const g=T.length,B=arguments.length>2&&arguments[2]===!0;if(!B&&g===0)return 0;let F=!1;for(;;)switch(h){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return De(T).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return tt(T).length;default:if(F)return B?-1:De(T).length;h=(""+h).toLowerCase(),F=!0}}c.byteLength=P;function R(T,h,g){let B=!1;if((h===void 0||h<0)&&(h=0),h>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,h>>>=0,g<=h))return"";for(T||(T="utf8");;)switch(T){case"hex":return _e(this,h,g);case"utf8":case"utf-8":return X(this,h,g);case"ascii":return fe(this,h,g);case"latin1":case"binary":return pe(this,h,g);case"base64":return H(this,h,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return We(this,h,g);default:if(B)throw new TypeError("Unknown encoding: "+T);T=(T+"").toLowerCase(),B=!0}}c.prototype._isBuffer=!0;function M(T,h,g){const B=T[h];T[h]=T[g],T[g]=B}c.prototype.swap16=function(){const h=this.length;if(h%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<h;g+=2)M(this,g,g+1);return this},c.prototype.swap32=function(){const h=this.length;if(h%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<h;g+=4)M(this,g,g+3),M(this,g+1,g+2);return this},c.prototype.swap64=function(){const h=this.length;if(h%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<h;g+=8)M(this,g,g+7),M(this,g+1,g+6),M(this,g+2,g+5),M(this,g+3,g+4);return this},c.prototype.toString=function(){const h=this.length;return h===0?"":arguments.length===0?X(this,0,h):R.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(h){if(!c.isBuffer(h))throw new TypeError("Argument must be a Buffer");return this===h?!0:c.compare(this,h)===0},c.prototype.inspect=function(){let h="";const g=e.INSPECT_MAX_BYTES;return h=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(h+=" ... "),"<Buffer "+h+">"},r&&(c.prototype[r]=c.prototype.inspect),c.prototype.compare=function(h,g,B,F,q){if(st(h,Uint8Array)&&(h=c.from(h,h.offset,h.byteLength)),!c.isBuffer(h))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof h);if(g===void 0&&(g=0),B===void 0&&(B=h?h.length:0),F===void 0&&(F=0),q===void 0&&(q=this.length),g<0||B>h.length||F<0||q>this.length)throw new RangeError("out of range index");if(F>=q&&g>=B)return 0;if(F>=q)return-1;if(g>=B)return 1;if(g>>>=0,B>>>=0,F>>>=0,q>>>=0,this===h)return 0;let Z=q-F,ce=B-g;const oe=Math.min(Z,ce),se=this.slice(F,q),Se=h.slice(g,B);for(let we=0;we<oe;++we)if(se[we]!==Se[we]){Z=se[we],ce=Se[we];break}return Z<ce?-1:ce<Z?1:0};function D(T,h,g,B,F){if(T.length===0)return-1;if(typeof g=="string"?(B=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ye(g)&&(g=F?0:T.length-1),g<0&&(g=T.length+g),g>=T.length){if(F)return-1;g=T.length-1}else if(g<0)if(F)g=0;else return-1;if(typeof h=="string"&&(h=c.from(h,B)),c.isBuffer(h))return h.length===0?-1:$(T,h,g,B,F);if(typeof h=="number")return h=h&255,typeof Uint8Array.prototype.indexOf=="function"?F?Uint8Array.prototype.indexOf.call(T,h,g):Uint8Array.prototype.lastIndexOf.call(T,h,g):$(T,[h],g,B,F);throw new TypeError("val must be string, number or Buffer")}function $(T,h,g,B,F){let q=1,Z=T.length,ce=h.length;if(B!==void 0&&(B=String(B).toLowerCase(),B==="ucs2"||B==="ucs-2"||B==="utf16le"||B==="utf-16le")){if(T.length<2||h.length<2)return-1;q=2,Z/=2,ce/=2,g/=2}function oe(Se,we){return q===1?Se[we]:Se.readUInt16BE(we*q)}let se;if(F){let Se=-1;for(se=g;se<Z;se++)if(oe(T,se)===oe(h,Se===-1?0:se-Se)){if(Se===-1&&(Se=se),se-Se+1===ce)return Se*q}else Se!==-1&&(se-=se-Se),Se=-1}else for(g+ce>Z&&(g=Z-ce),se=g;se>=0;se--){let Se=!0;for(let we=0;we<ce;we++)if(oe(T,se+we)!==oe(h,we)){Se=!1;break}if(Se)return se}return-1}c.prototype.includes=function(h,g,B){return this.indexOf(h,g,B)!==-1},c.prototype.indexOf=function(h,g,B){return D(this,h,g,B,!0)},c.prototype.lastIndexOf=function(h,g,B){return D(this,h,g,B,!1)};function z(T,h,g,B){g=Number(g)||0;const F=T.length-g;B?(B=Number(B),B>F&&(B=F)):B=F;const q=h.length;B>q/2&&(B=q/2);let Z;for(Z=0;Z<B;++Z){const ce=parseInt(h.substr(Z*2,2),16);if(ye(ce))return Z;T[g+Z]=ce}return Z}function V(T,h,g,B){return $e(De(h,T.length-g),T,g,B)}function E(T,h,g,B){return $e(Re(h),T,g,B)}function G(T,h,g,B){return $e(tt(h),T,g,B)}function te(T,h,g,B){return $e(Fe(h,T.length-g),T,g,B)}c.prototype.write=function(h,g,B,F){if(g===void 0)F="utf8",B=this.length,g=0;else if(B===void 0&&typeof g=="string")F=g,B=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(B)?(B=B>>>0,F===void 0&&(F="utf8")):(F=B,B=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-g;if((B===void 0||B>q)&&(B=q),h.length>0&&(B<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");F||(F="utf8");let Z=!1;for(;;)switch(F){case"hex":return z(this,h,g,B);case"utf8":case"utf-8":return V(this,h,g,B);case"ascii":case"latin1":case"binary":return E(this,h,g,B);case"base64":return G(this,h,g,B);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return te(this,h,g,B);default:if(Z)throw new TypeError("Unknown encoding: "+F);F=(""+F).toLowerCase(),Z=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(T,h,g){return h===0&&g===T.length?t.fromByteArray(T):t.fromByteArray(T.slice(h,g))}function X(T,h,g){g=Math.min(T.length,g);const B=[];let F=h;for(;F<g;){const q=T[F];let Z=null,ce=q>239?4:q>223?3:q>191?2:1;if(F+ce<=g){let oe,se,Se,we;switch(ce){case 1:q<128&&(Z=q);break;case 2:oe=T[F+1],(oe&192)===128&&(we=(q&31)<<6|oe&63,we>127&&(Z=we));break;case 3:oe=T[F+1],se=T[F+2],(oe&192)===128&&(se&192)===128&&(we=(q&15)<<12|(oe&63)<<6|se&63,we>2047&&(we<55296||we>57343)&&(Z=we));break;case 4:oe=T[F+1],se=T[F+2],Se=T[F+3],(oe&192)===128&&(se&192)===128&&(Se&192)===128&&(we=(q&15)<<18|(oe&63)<<12|(se&63)<<6|Se&63,we>65535&&we<1114112&&(Z=we))}}Z===null?(Z=65533,ce=1):Z>65535&&(Z-=65536,B.push(Z>>>10&1023|55296),Z=56320|Z&1023),B.push(Z),F+=ce}return ae(B)}const ee=4096;function ae(T){const h=T.length;if(h<=ee)return String.fromCharCode.apply(String,T);let g="",B=0;for(;B<h;)g+=String.fromCharCode.apply(String,T.slice(B,B+=ee));return g}function fe(T,h,g){let B="";g=Math.min(T.length,g);for(let F=h;F<g;++F)B+=String.fromCharCode(T[F]&127);return B}function pe(T,h,g){let B="";g=Math.min(T.length,g);for(let F=h;F<g;++F)B+=String.fromCharCode(T[F]);return B}function _e(T,h,g){const B=T.length;(!h||h<0)&&(h=0),(!g||g<0||g>B)&&(g=B);let F="";for(let q=h;q<g;++q)F+=At[T[q]];return F}function We(T,h,g){const B=T.slice(h,g);let F="";for(let q=0;q<B.length-1;q+=2)F+=String.fromCharCode(B[q]+B[q+1]*256);return F}c.prototype.slice=function(h,g){const B=this.length;h=~~h,g=g===void 0?B:~~g,h<0?(h+=B,h<0&&(h=0)):h>B&&(h=B),g<0?(g+=B,g<0&&(g=0)):g>B&&(g=B),g<h&&(g=h);const F=this.subarray(h,g);return Object.setPrototypeOf(F,c.prototype),F};function be(T,h,g){if(T%1!==0||T<0)throw new RangeError("offset is not uint");if(T+h>g)throw new RangeError("Trying to access beyond buffer length")}c.prototype.readUintLE=c.prototype.readUIntLE=function(h,g,B){h=h>>>0,g=g>>>0,B||be(h,g,this.length);let F=this[h],q=1,Z=0;for(;++Z<g&&(q*=256);)F+=this[h+Z]*q;return F},c.prototype.readUintBE=c.prototype.readUIntBE=function(h,g,B){h=h>>>0,g=g>>>0,B||be(h,g,this.length);let F=this[h+--g],q=1;for(;g>0&&(q*=256);)F+=this[h+--g]*q;return F},c.prototype.readUint8=c.prototype.readUInt8=function(h,g){return h=h>>>0,g||be(h,1,this.length),this[h]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(h,g){return h=h>>>0,g||be(h,2,this.length),this[h]|this[h+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(h,g){return h=h>>>0,g||be(h,2,this.length),this[h]<<8|this[h+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(h,g){return h=h>>>0,g||be(h,4,this.length),(this[h]|this[h+1]<<8|this[h+2]<<16)+this[h+3]*16777216},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(h,g){return h=h>>>0,g||be(h,4,this.length),this[h]*16777216+(this[h+1]<<16|this[h+2]<<8|this[h+3])},c.prototype.readBigUInt64LE=Nt(function(h){h=h>>>0,Te(h,"offset");const g=this[h],B=this[h+7];(g===void 0||B===void 0)&&ve(h,this.length-8);const F=g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24,q=this[++h]+this[++h]*2**8+this[++h]*2**16+B*2**24;return BigInt(F)+(BigInt(q)<<BigInt(32))}),c.prototype.readBigUInt64BE=Nt(function(h){h=h>>>0,Te(h,"offset");const g=this[h],B=this[h+7];(g===void 0||B===void 0)&&ve(h,this.length-8);const F=g*2**24+this[++h]*2**16+this[++h]*2**8+this[++h],q=this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+B;return(BigInt(F)<<BigInt(32))+BigInt(q)}),c.prototype.readIntLE=function(h,g,B){h=h>>>0,g=g>>>0,B||be(h,g,this.length);let F=this[h],q=1,Z=0;for(;++Z<g&&(q*=256);)F+=this[h+Z]*q;return q*=128,F>=q&&(F-=Math.pow(2,8*g)),F},c.prototype.readIntBE=function(h,g,B){h=h>>>0,g=g>>>0,B||be(h,g,this.length);let F=g,q=1,Z=this[h+--F];for(;F>0&&(q*=256);)Z+=this[h+--F]*q;return q*=128,Z>=q&&(Z-=Math.pow(2,8*g)),Z},c.prototype.readInt8=function(h,g){return h=h>>>0,g||be(h,1,this.length),this[h]&128?(255-this[h]+1)*-1:this[h]},c.prototype.readInt16LE=function(h,g){h=h>>>0,g||be(h,2,this.length);const B=this[h]|this[h+1]<<8;return B&32768?B|4294901760:B},c.prototype.readInt16BE=function(h,g){h=h>>>0,g||be(h,2,this.length);const B=this[h+1]|this[h]<<8;return B&32768?B|4294901760:B},c.prototype.readInt32LE=function(h,g){return h=h>>>0,g||be(h,4,this.length),this[h]|this[h+1]<<8|this[h+2]<<16|this[h+3]<<24},c.prototype.readInt32BE=function(h,g){return h=h>>>0,g||be(h,4,this.length),this[h]<<24|this[h+1]<<16|this[h+2]<<8|this[h+3]},c.prototype.readBigInt64LE=Nt(function(h){h=h>>>0,Te(h,"offset");const g=this[h],B=this[h+7];(g===void 0||B===void 0)&&ve(h,this.length-8);const F=this[h+4]+this[h+5]*2**8+this[h+6]*2**16+(B<<24);return(BigInt(F)<<BigInt(32))+BigInt(g+this[++h]*2**8+this[++h]*2**16+this[++h]*2**24)}),c.prototype.readBigInt64BE=Nt(function(h){h=h>>>0,Te(h,"offset");const g=this[h],B=this[h+7];(g===void 0||B===void 0)&&ve(h,this.length-8);const F=(g<<24)+this[++h]*2**16+this[++h]*2**8+this[++h];return(BigInt(F)<<BigInt(32))+BigInt(this[++h]*2**24+this[++h]*2**16+this[++h]*2**8+B)}),c.prototype.readFloatLE=function(h,g){return h=h>>>0,g||be(h,4,this.length),n.read(this,h,!0,23,4)},c.prototype.readFloatBE=function(h,g){return h=h>>>0,g||be(h,4,this.length),n.read(this,h,!1,23,4)},c.prototype.readDoubleLE=function(h,g){return h=h>>>0,g||be(h,8,this.length),n.read(this,h,!0,52,8)},c.prototype.readDoubleBE=function(h,g){return h=h>>>0,g||be(h,8,this.length),n.read(this,h,!1,52,8)};function Be(T,h,g,B,F,q){if(!c.isBuffer(T))throw new TypeError('"buffer" argument must be a Buffer instance');if(h>F||h<q)throw new RangeError('"value" argument is out of bounds');if(g+B>T.length)throw new RangeError("Index out of range")}c.prototype.writeUintLE=c.prototype.writeUIntLE=function(h,g,B,F){if(h=+h,g=g>>>0,B=B>>>0,!F){const ce=Math.pow(2,8*B)-1;Be(this,h,g,B,ce,0)}let q=1,Z=0;for(this[g]=h&255;++Z<B&&(q*=256);)this[g+Z]=h/q&255;return g+B},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(h,g,B,F){if(h=+h,g=g>>>0,B=B>>>0,!F){const ce=Math.pow(2,8*B)-1;Be(this,h,g,B,ce,0)}let q=B-1,Z=1;for(this[g+q]=h&255;--q>=0&&(Z*=256);)this[g+q]=h/Z&255;return g+B},c.prototype.writeUint8=c.prototype.writeUInt8=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,1,255,0),this[g]=h&255,g+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,2,65535,0),this[g]=h&255,this[g+1]=h>>>8,g+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,2,65535,0),this[g]=h>>>8,this[g+1]=h&255,g+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,4,4294967295,0),this[g+3]=h>>>24,this[g+2]=h>>>16,this[g+1]=h>>>8,this[g]=h&255,g+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,4,4294967295,0),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4};function Ne(T,h,g,B,F){de(h,B,F,T,g,7);let q=Number(h&BigInt(4294967295));T[g++]=q,q=q>>8,T[g++]=q,q=q>>8,T[g++]=q,q=q>>8,T[g++]=q;let Z=Number(h>>BigInt(32)&BigInt(4294967295));return T[g++]=Z,Z=Z>>8,T[g++]=Z,Z=Z>>8,T[g++]=Z,Z=Z>>8,T[g++]=Z,g}function Me(T,h,g,B,F){de(h,B,F,T,g,7);let q=Number(h&BigInt(4294967295));T[g+7]=q,q=q>>8,T[g+6]=q,q=q>>8,T[g+5]=q,q=q>>8,T[g+4]=q;let Z=Number(h>>BigInt(32)&BigInt(4294967295));return T[g+3]=Z,Z=Z>>8,T[g+2]=Z,Z=Z>>8,T[g+1]=Z,Z=Z>>8,T[g]=Z,g+8}c.prototype.writeBigUInt64LE=Nt(function(h,g=0){return Ne(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeBigUInt64BE=Nt(function(h,g=0){return Me(this,h,g,BigInt(0),BigInt("0xffffffffffffffff"))}),c.prototype.writeIntLE=function(h,g,B,F){if(h=+h,g=g>>>0,!F){const oe=Math.pow(2,8*B-1);Be(this,h,g,B,oe-1,-oe)}let q=0,Z=1,ce=0;for(this[g]=h&255;++q<B&&(Z*=256);)h<0&&ce===0&&this[g+q-1]!==0&&(ce=1),this[g+q]=(h/Z>>0)-ce&255;return g+B},c.prototype.writeIntBE=function(h,g,B,F){if(h=+h,g=g>>>0,!F){const oe=Math.pow(2,8*B-1);Be(this,h,g,B,oe-1,-oe)}let q=B-1,Z=1,ce=0;for(this[g+q]=h&255;--q>=0&&(Z*=256);)h<0&&ce===0&&this[g+q+1]!==0&&(ce=1),this[g+q]=(h/Z>>0)-ce&255;return g+B},c.prototype.writeInt8=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,1,127,-128),h<0&&(h=255+h+1),this[g]=h&255,g+1},c.prototype.writeInt16LE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,2,32767,-32768),this[g]=h&255,this[g+1]=h>>>8,g+2},c.prototype.writeInt16BE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,2,32767,-32768),this[g]=h>>>8,this[g+1]=h&255,g+2},c.prototype.writeInt32LE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,4,2147483647,-2147483648),this[g]=h&255,this[g+1]=h>>>8,this[g+2]=h>>>16,this[g+3]=h>>>24,g+4},c.prototype.writeInt32BE=function(h,g,B){return h=+h,g=g>>>0,B||Be(this,h,g,4,2147483647,-2147483648),h<0&&(h=4294967295+h+1),this[g]=h>>>24,this[g+1]=h>>>16,this[g+2]=h>>>8,this[g+3]=h&255,g+4},c.prototype.writeBigInt64LE=Nt(function(h,g=0){return Ne(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),c.prototype.writeBigInt64BE=Nt(function(h,g=0){return Me(this,h,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Xe(T,h,g,B,F,q){if(g+B>T.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function Ge(T,h,g,B,F){return h=+h,g=g>>>0,F||Xe(T,h,g,4),n.write(T,h,g,B,23,4),g+4}c.prototype.writeFloatLE=function(h,g,B){return Ge(this,h,g,!0,B)},c.prototype.writeFloatBE=function(h,g,B){return Ge(this,h,g,!1,B)};function ht(T,h,g,B,F){return h=+h,g=g>>>0,F||Xe(T,h,g,8),n.write(T,h,g,B,52,8),g+8}c.prototype.writeDoubleLE=function(h,g,B){return ht(this,h,g,!0,B)},c.prototype.writeDoubleBE=function(h,g,B){return ht(this,h,g,!1,B)},c.prototype.copy=function(h,g,B,F){if(!c.isBuffer(h))throw new TypeError("argument should be a Buffer");if(B||(B=0),!F&&F!==0&&(F=this.length),g>=h.length&&(g=h.length),g||(g=0),F>0&&F<B&&(F=B),F===B||h.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(B<0||B>=this.length)throw new RangeError("Index out of range");if(F<0)throw new RangeError("sourceEnd out of bounds");F>this.length&&(F=this.length),h.length-g<F-B&&(F=h.length-g+B);const q=F-B;return this===h&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,B,F):Uint8Array.prototype.set.call(h,this.subarray(B,F),g),q},c.prototype.fill=function(h,g,B,F){if(typeof h=="string"){if(typeof g=="string"?(F=g,g=0,B=this.length):typeof B=="string"&&(F=B,B=this.length),F!==void 0&&typeof F!="string")throw new TypeError("encoding must be a string");if(typeof F=="string"&&!c.isEncoding(F))throw new TypeError("Unknown encoding: "+F);if(h.length===1){const Z=h.charCodeAt(0);(F==="utf8"&&Z<128||F==="latin1")&&(h=Z)}}else typeof h=="number"?h=h&255:typeof h=="boolean"&&(h=Number(h));if(g<0||this.length<g||this.length<B)throw new RangeError("Out of range index");if(B<=g)return this;g=g>>>0,B=B===void 0?this.length:B>>>0,h||(h=0);let q;if(typeof h=="number")for(q=g;q<B;++q)this[q]=h;else{const Z=c.isBuffer(h)?h:c.from(h,F),ce=Z.length;if(ce===0)throw new TypeError('The value "'+h+'" is invalid for argument "value"');for(q=0;q<B-g;++q)this[q+g]=Z[q%ce]}return this};const le={};function ue(T,h,g){le[T]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:h.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${T}]`,this.stack,delete this.name}get code(){return T}set code(F){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:F,writable:!0})}toString(){return`${this.name} [${T}]: ${this.message}`}}}ue("ERR_BUFFER_OUT_OF_BOUNDS",function(T){return T?`${T} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),ue("ERR_INVALID_ARG_TYPE",function(T,h){return`The "${T}" argument must be of type number. Received type ${typeof h}`},TypeError),ue("ERR_OUT_OF_RANGE",function(T,h,g){let B=`The value of "${T}" is out of range.`,F=g;return Number.isInteger(g)&&Math.abs(g)>2**32?F=he(String(g)):typeof g=="bigint"&&(F=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(F=he(F)),F+="n"),B+=` It must be ${h}. Received ${F}`,B},RangeError);function he(T){let h="",g=T.length;const B=T[0]==="-"?1:0;for(;g>=B+4;g-=3)h=`_${T.slice(g-3,g)}${h}`;return`${T.slice(0,g)}${h}`}function ge(T,h,g){Te(h,"offset"),(T[h]===void 0||T[h+g]===void 0)&&ve(h,T.length-(g+1))}function de(T,h,g,B,F,q){if(T>g||T<h){const Z=typeof h=="bigint"?"n":"";let ce;throw h===0||h===BigInt(0)?ce=`>= 0${Z} and < 2${Z} ** ${(q+1)*8}${Z}`:ce=`>= -(2${Z} ** ${(q+1)*8-1}${Z}) and < 2 ** ${(q+1)*8-1}${Z}`,new le.ERR_OUT_OF_RANGE("value",ce,T)}ge(B,F,q)}function Te(T,h){if(typeof T!="number")throw new le.ERR_INVALID_ARG_TYPE(h,"number",T)}function ve(T,h,g){throw Math.floor(T)!==T?(Te(T,g),new le.ERR_OUT_OF_RANGE("offset","an integer",T)):h<0?new le.ERR_BUFFER_OUT_OF_BOUNDS:new le.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${h}`,T)}const ke=/[^+/0-9A-Za-z-_]/g;function qe(T){if(T=T.split("=")[0],T=T.trim().replace(ke,""),T.length<2)return"";for(;T.length%4!==0;)T=T+"=";return T}function De(T,h){h=h||1/0;let g;const B=T.length;let F=null;const q=[];for(let Z=0;Z<B;++Z){if(g=T.charCodeAt(Z),g>55295&&g<57344){if(!F){if(g>56319){(h-=3)>-1&&q.push(239,191,189);continue}else if(Z+1===B){(h-=3)>-1&&q.push(239,191,189);continue}F=g;continue}if(g<56320){(h-=3)>-1&&q.push(239,191,189),F=g;continue}g=(F-55296<<10|g-56320)+65536}else F&&(h-=3)>-1&&q.push(239,191,189);if(F=null,g<128){if((h-=1)<0)break;q.push(g)}else if(g<2048){if((h-=2)<0)break;q.push(g>>6|192,g&63|128)}else if(g<65536){if((h-=3)<0)break;q.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((h-=4)<0)break;q.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return q}function Re(T){const h=[];for(let g=0;g<T.length;++g)h.push(T.charCodeAt(g)&255);return h}function Fe(T,h){let g,B,F;const q=[];for(let Z=0;Z<T.length&&!((h-=2)<0);++Z)g=T.charCodeAt(Z),B=g>>8,F=g%256,q.push(F),q.push(B);return q}function tt(T){return t.toByteArray(qe(T))}function $e(T,h,g,B){let F;for(F=0;F<B&&!(F+g>=h.length||F>=T.length);++F)h[F+g]=T[F];return F}function st(T,h){return T instanceof h||T!=null&&T.constructor!=null&&T.constructor.name!=null&&T.constructor.name===h.name}function ye(T){return T!==T}const At=function(){const T="0123456789abcdef",h=new Array(256);for(let g=0;g<16;++g){const B=g*16;for(let F=0;F<16;++F)h[B+F]=T[g]+T[F]}return h}();function Nt(T){return typeof BigInt>"u"?yn:T}function yn(){throw new Error("BigInt not supported")}})(uh);function xw(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function ww(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:xw(e)}async function Sw(e,t){const n=ww(e);for(;;){const{value:r,done:i}=await n.next();if(r&&await t(r),i)break}n.return&&n.return()}async function Cw(e){let t=0;const n=[];await Sw(e,a=>{n.push(a),t+=a.byteLength});const r=new Uint8Array(t);let i=0;for(const a of n)r.set(a,i),i+=a.byteLength;return r}function _w(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}async function Ew({onProgress:e,url:t,method:n="GET",headers:r={},body:i}){i&&(i=await Cw(i));const a=await fetch(t,{method:n,headers:r,body:i}),l=a.body&&a.body.getReader?_w(a.body):[new Uint8Array(await a.arrayBuffer())];r={};for(const[c,d]of a.headers.entries())r[c]=d;return{url:a.url,method:a.method,statusCode:a.status,statusMessage:a.statusText,body:l,headers:r}}var gu={request:Ew};const Rw=async e=>{try{return await(await window.pfs.stat(e)).isDirectory()}catch(t){if(t.code==="ENOENT")return!1;throw t}},fh=async e=>await window.pfs.readdir(e),ph=async e=>{let t=window.pfs,n;try{n=await t.stat(e)}catch(r){console.debug("recursiveRm: Path does not exist",r);return}if(n.type==="file")await t.unlink(e),console.debug(`recursiveRm: Deleted file: ${e}`);else if(n.type==="dir"){const r=await t.readdir(e);for(const i of r)await ph(`${e}/${i}`);await t.rmdir(e),console.debug(`recursiveRm: Deleted directory: ${e}`)}},Pw=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,r="makeinfinite_client",i="makeinfinite_client@spaceandtime.io";await _t.setConfig({fs:t,dir:n,path:"user.name",value:r}),await _t.setConfig({fs:t,dir:n,path:"user.email",value:i})},Tw=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.clone({fs:r,http:gu,dir:i,corsProxy:n,url:t,ref:"main"}),await Pw(e)},Iw=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.pull({fs:r,http:gu,dir:i,corsProxy:n,url:t,ref:"main"})},kw=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,r=await _t.resolveRef({fs:t,dir:n,ref:"refs/tags/published"});await _t.checkout({fs:t,dir:n,ref:r})},Ow=async(e,t,n)=>{const r=window.pfs,i=`${window.miDir}/${e}`;await _t.fetch({fs:r,http:gu,dir:i,corsProxy:n,url:t,ref:"main",tags:!0,pruneTags:!0})};class Aw{constructor(t,n,r){this.targetRef=t,this.sourceRef=n,this.opType=r}}const mu=e=>{var l,c;const t=e.commit.message.trim().split(`
|
|
10
|
-
`),n=t.find(d=>d.startsWith("Git Ref: ")),
|
|
9
|
+
*/(function(e){const t=Xs,n=Uc,o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;e.Buffer=u,e.SlowBuffer=O,e.INSPECT_MAX_BYTES=50;const s=2147483647;e.kMaxLength=s,u.TYPED_ARRAY_SUPPORT=a(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function a(){try{const I=new Uint8Array(1),p={foo:function(){return 42}};return Object.setPrototypeOf(p,Uint8Array.prototype),Object.setPrototypeOf(I,p),I.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function l(I){if(I>s)throw new RangeError('The value "'+I+'" is invalid for option "size"');const p=new Uint8Array(I);return Object.setPrototypeOf(p,u.prototype),p}function u(I,p,g){if(typeof I=="number"){if(typeof p=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return m(I)}return d(I,p,g)}u.poolSize=8192;function d(I,p,g){if(typeof I=="string")return b(I,p);if(ArrayBuffer.isView(I))return S(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(xe(I,ArrayBuffer)||I&&xe(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(xe(I,SharedArrayBuffer)||I&&xe(I.buffer,SharedArrayBuffer)))return E(I,p,g);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const D=I.valueOf&&I.valueOf();if(D!=null&&D!==I)return u.from(D,p,g);const N=P(I);if(N)return N;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return u.from(I[Symbol.toPrimitive]("string"),p,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}u.from=function(I,p,g){return d(I,p,g)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function h(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function y(I,p,g){return h(I),I<=0?l(I):p!==void 0?typeof g=="string"?l(I).fill(p,g):l(I).fill(p):l(I)}u.alloc=function(I,p,g){return y(I,p,g)};function m(I){return h(I),l(I<0?0:C(I)|0)}u.allocUnsafe=function(I){return m(I)},u.allocUnsafeSlow=function(I){return m(I)};function b(I,p){if((typeof p!="string"||p==="")&&(p="utf8"),!u.isEncoding(p))throw new TypeError("Unknown encoding: "+p);const g=k(I,p)|0;let D=l(g);const N=D.write(I,p);return N!==g&&(D=D.slice(0,N)),D}function w(I){const p=I.length<0?0:C(I.length)|0,g=l(p);for(let D=0;D<p;D+=1)g[D]=I[D]&255;return g}function S(I){if(xe(I,Uint8Array)){const p=new Uint8Array(I);return E(p.buffer,p.byteOffset,p.byteLength)}return w(I)}function E(I,p,g){if(p<0||I.byteLength<p)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<p+(g||0))throw new RangeError('"length" is outside of buffer bounds');let D;return p===void 0&&g===void 0?D=new Uint8Array(I):g===void 0?D=new Uint8Array(I,p):D=new Uint8Array(I,p,g),Object.setPrototypeOf(D,u.prototype),D}function P(I){if(u.isBuffer(I)){const p=C(I.length)|0,g=l(p);return g.length===0||I.copy(g,0,0,p),g}if(I.length!==void 0)return typeof I.length!="number"||ut(I.length)?l(0):w(I);if(I.type==="Buffer"&&Array.isArray(I.data))return w(I.data)}function C(I){if(I>=s)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s.toString(16)+" bytes");return I|0}function O(I){return+I!=I&&(I=0),u.alloc(+I)}u.isBuffer=function(p){return p!=null&&p._isBuffer===!0&&p!==u.prototype},u.compare=function(p,g){if(xe(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),xe(g,Uint8Array)&&(g=u.from(g,g.offset,g.byteLength)),!u.isBuffer(p)||!u.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(p===g)return 0;let D=p.length,N=g.length;for(let q=0,J=Math.min(D,N);q<J;++q)if(p[q]!==g[q]){D=p[q],N=g[q];break}return D<N?-1:N<D?1:0},u.isEncoding=function(p){switch(String(p).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(p,g){if(!Array.isArray(p))throw new TypeError('"list" argument must be an Array of Buffers');if(p.length===0)return u.alloc(0);let D;if(g===void 0)for(g=0,D=0;D<p.length;++D)g+=p[D].length;const N=u.allocUnsafe(g);let q=0;for(D=0;D<p.length;++D){let J=p[D];if(xe(J,Uint8Array))q+J.length>N.length?(u.isBuffer(J)||(J=u.from(J)),J.copy(N,q)):Uint8Array.prototype.set.call(N,J,q);else if(u.isBuffer(J))J.copy(N,q);else throw new TypeError('"list" argument must be an Array of Buffers');q+=J.length}return N};function k(I,p){if(u.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||xe(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);const g=I.length,D=arguments.length>2&&arguments[2]===!0;if(!D&&g===0)return 0;let N=!1;for(;;)switch(p){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return Ae(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return et(I).length;default:if(N)return D?-1:Ae(I).length;p=(""+p).toLowerCase(),N=!0}}u.byteLength=k;function R(I,p,g){let D=!1;if((p===void 0||p<0)&&(p=0),p>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,p>>>=0,g<=p))return"";for(I||(I="utf8");;)switch(I){case"hex":return be(this,p,g);case"utf8":case"utf-8":return Q(this,p,g);case"ascii":return pe(this,p,g);case"latin1":case"binary":return he(this,p,g);case"base64":return H(this,p,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return we(this,p,g);default:if(D)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),D=!0}}u.prototype._isBuffer=!0;function $(I,p,g){const D=I[p];I[p]=I[g],I[g]=D}u.prototype.swap16=function(){const p=this.length;if(p%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<p;g+=2)$(this,g,g+1);return this},u.prototype.swap32=function(){const p=this.length;if(p%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<p;g+=4)$(this,g,g+3),$(this,g+1,g+2);return this},u.prototype.swap64=function(){const p=this.length;if(p%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<p;g+=8)$(this,g,g+7),$(this,g+1,g+6),$(this,g+2,g+5),$(this,g+3,g+4);return this},u.prototype.toString=function(){const p=this.length;return p===0?"":arguments.length===0?Q(this,0,p):R.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(p){if(!u.isBuffer(p))throw new TypeError("Argument must be a Buffer");return this===p?!0:u.compare(this,p)===0},u.prototype.inspect=function(){let p="";const g=e.INSPECT_MAX_BYTES;return p=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(p+=" ... "),"<Buffer "+p+">"},o&&(u.prototype[o]=u.prototype.inspect),u.prototype.compare=function(p,g,D,N,q){if(xe(p,Uint8Array)&&(p=u.from(p,p.offset,p.byteLength)),!u.isBuffer(p))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof p);if(g===void 0&&(g=0),D===void 0&&(D=p?p.length:0),N===void 0&&(N=0),q===void 0&&(q=this.length),g<0||D>p.length||N<0||q>this.length)throw new RangeError("out of range index");if(N>=q&&g>=D)return 0;if(N>=q)return-1;if(g>=D)return 1;if(g>>>=0,D>>>=0,N>>>=0,q>>>=0,this===p)return 0;let J=q-N,ce=D-g;const oe=Math.min(J,ce),se=this.slice(N,q),Ee=p.slice(g,D);for(let _e=0;_e<oe;++_e)if(se[_e]!==Ee[_e]){J=se[_e],ce=Ee[_e];break}return J<ce?-1:ce<J?1:0};function B(I,p,g,D,N){if(I.length===0)return-1;if(typeof g=="string"?(D=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,ut(g)&&(g=N?0:I.length-1),g<0&&(g=I.length+g),g>=I.length){if(N)return-1;g=I.length-1}else if(g<0)if(N)g=0;else return-1;if(typeof p=="string"&&(p=u.from(p,D)),u.isBuffer(p))return p.length===0?-1:M(I,p,g,D,N);if(typeof p=="number")return p=p&255,typeof Uint8Array.prototype.indexOf=="function"?N?Uint8Array.prototype.indexOf.call(I,p,g):Uint8Array.prototype.lastIndexOf.call(I,p,g):M(I,[p],g,D,N);throw new TypeError("val must be string, number or Buffer")}function M(I,p,g,D,N){let q=1,J=I.length,ce=p.length;if(D!==void 0&&(D=String(D).toLowerCase(),D==="ucs2"||D==="ucs-2"||D==="utf16le"||D==="utf-16le")){if(I.length<2||p.length<2)return-1;q=2,J/=2,ce/=2,g/=2}function oe(Ee,_e){return q===1?Ee[_e]:Ee.readUInt16BE(_e*q)}let se;if(N){let Ee=-1;for(se=g;se<J;se++)if(oe(I,se)===oe(p,Ee===-1?0:se-Ee)){if(Ee===-1&&(Ee=se),se-Ee+1===ce)return Ee*q}else Ee!==-1&&(se-=se-Ee),Ee=-1}else for(g+ce>J&&(g=J-ce),se=g;se>=0;se--){let Ee=!0;for(let _e=0;_e<ce;_e++)if(oe(I,se+_e)!==oe(p,_e)){Ee=!1;break}if(Ee)return se}return-1}u.prototype.includes=function(p,g,D){return this.indexOf(p,g,D)!==-1},u.prototype.indexOf=function(p,g,D){return B(this,p,g,D,!0)},u.prototype.lastIndexOf=function(p,g,D){return B(this,p,g,D,!1)};function z(I,p,g,D){g=Number(g)||0;const N=I.length-g;D?(D=Number(D),D>N&&(D=N)):D=N;const q=p.length;D>q/2&&(D=q/2);let J;for(J=0;J<D;++J){const ce=parseInt(p.substr(J*2,2),16);if(ut(ce))return J;I[g+J]=ce}return J}function V(I,p,g,D){return Le(Ae(p,I.length-g),I,g,D)}function _(I,p,g,D){return Le(ke(p),I,g,D)}function G(I,p,g,D){return Le(et(p),I,g,D)}function re(I,p,g,D){return Le(We(p,I.length-g),I,g,D)}u.prototype.write=function(p,g,D,N){if(g===void 0)N="utf8",D=this.length,g=0;else if(D===void 0&&typeof g=="string")N=g,D=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(D)?(D=D>>>0,N===void 0&&(N="utf8")):(N=D,D=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const q=this.length-g;if((D===void 0||D>q)&&(D=q),p.length>0&&(D<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");N||(N="utf8");let J=!1;for(;;)switch(N){case"hex":return z(this,p,g,D);case"utf8":case"utf-8":return V(this,p,g,D);case"ascii":case"latin1":case"binary":return _(this,p,g,D);case"base64":return G(this,p,g,D);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return re(this,p,g,D);default:if(J)throw new TypeError("Unknown encoding: "+N);N=(""+N).toLowerCase(),J=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function H(I,p,g){return p===0&&g===I.length?t.fromByteArray(I):t.fromByteArray(I.slice(p,g))}function Q(I,p,g){g=Math.min(I.length,g);const D=[];let N=p;for(;N<g;){const q=I[N];let J=null,ce=q>239?4:q>223?3:q>191?2:1;if(N+ce<=g){let oe,se,Ee,_e;switch(ce){case 1:q<128&&(J=q);break;case 2:oe=I[N+1],(oe&192)===128&&(_e=(q&31)<<6|oe&63,_e>127&&(J=_e));break;case 3:oe=I[N+1],se=I[N+2],(oe&192)===128&&(se&192)===128&&(_e=(q&15)<<12|(oe&63)<<6|se&63,_e>2047&&(_e<55296||_e>57343)&&(J=_e));break;case 4:oe=I[N+1],se=I[N+2],Ee=I[N+3],(oe&192)===128&&(se&192)===128&&(Ee&192)===128&&(_e=(q&15)<<18|(oe&63)<<12|(se&63)<<6|Ee&63,_e>65535&&_e<1114112&&(J=_e))}}J===null?(J=65533,ce=1):J>65535&&(J-=65536,D.push(J>>>10&1023|55296),J=56320|J&1023),D.push(J),N+=ce}return le(D)}const ee=4096;function le(I){const p=I.length;if(p<=ee)return String.fromCharCode.apply(String,I);let g="",D=0;for(;D<p;)g+=String.fromCharCode.apply(String,I.slice(D,D+=ee));return g}function pe(I,p,g){let D="";g=Math.min(I.length,g);for(let N=p;N<g;++N)D+=String.fromCharCode(I[N]&127);return D}function he(I,p,g){let D="";g=Math.min(I.length,g);for(let N=p;N<g;++N)D+=String.fromCharCode(I[N]);return D}function be(I,p,g){const D=I.length;(!p||p<0)&&(p=0),(!g||g<0||g>D)&&(g=D);let N="";for(let q=p;q<g;++q)N+=Ut[I[q]];return N}function we(I,p,g){const D=I.slice(p,g);let N="";for(let q=0;q<D.length-1;q+=2)N+=String.fromCharCode(D[q]+D[q+1]*256);return N}u.prototype.slice=function(p,g){const D=this.length;p=~~p,g=g===void 0?D:~~g,p<0?(p+=D,p<0&&(p=0)):p>D&&(p=D),g<0?(g+=D,g<0&&(g=0)):g>D&&(g=D),g<p&&(g=p);const N=this.subarray(p,g);return Object.setPrototypeOf(N,u.prototype),N};function ue(I,p,g){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+p>g)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=this[p],q=1,J=0;for(;++J<g&&(q*=256);)N+=this[p+J]*q;return N},u.prototype.readUintBE=u.prototype.readUIntBE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=this[p+--g],q=1;for(;g>0&&(q*=256);)N+=this[p+--g]*q;return N},u.prototype.readUint8=u.prototype.readUInt8=function(p,g){return p=p>>>0,g||ue(p,1,this.length),this[p]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(p,g){return p=p>>>0,g||ue(p,2,this.length),this[p]|this[p+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(p,g){return p=p>>>0,g||ue(p,2,this.length),this[p]<<8|this[p+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),(this[p]|this[p+1]<<8|this[p+2]<<16)+this[p+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]*16777216+(this[p+1]<<16|this[p+2]<<8|this[p+3])},u.prototype.readBigUInt64LE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24,q=this[++p]+this[++p]*2**8+this[++p]*2**16+D*2**24;return BigInt(N)+(BigInt(q)<<BigInt(32))}),u.prototype.readBigUInt64BE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=g*2**24+this[++p]*2**16+this[++p]*2**8+this[++p],q=this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+D;return(BigInt(N)<<BigInt(32))+BigInt(q)}),u.prototype.readIntLE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=this[p],q=1,J=0;for(;++J<g&&(q*=256);)N+=this[p+J]*q;return q*=128,N>=q&&(N-=Math.pow(2,8*g)),N},u.prototype.readIntBE=function(p,g,D){p=p>>>0,g=g>>>0,D||ue(p,g,this.length);let N=g,q=1,J=this[p+--N];for(;N>0&&(q*=256);)J+=this[p+--N]*q;return q*=128,J>=q&&(J-=Math.pow(2,8*g)),J},u.prototype.readInt8=function(p,g){return p=p>>>0,g||ue(p,1,this.length),this[p]&128?(255-this[p]+1)*-1:this[p]},u.prototype.readInt16LE=function(p,g){p=p>>>0,g||ue(p,2,this.length);const D=this[p]|this[p+1]<<8;return D&32768?D|4294901760:D},u.prototype.readInt16BE=function(p,g){p=p>>>0,g||ue(p,2,this.length);const D=this[p+1]|this[p]<<8;return D&32768?D|4294901760:D},u.prototype.readInt32LE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]|this[p+1]<<8|this[p+2]<<16|this[p+3]<<24},u.prototype.readInt32BE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),this[p]<<24|this[p+1]<<16|this[p+2]<<8|this[p+3]},u.prototype.readBigInt64LE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=this[p+4]+this[p+5]*2**8+this[p+6]*2**16+(D<<24);return(BigInt(N)<<BigInt(32))+BigInt(g+this[++p]*2**8+this[++p]*2**16+this[++p]*2**24)}),u.prototype.readBigInt64BE=Ht(function(p){p=p>>>0,Pe(p,"offset");const g=this[p],D=this[p+7];(g===void 0||D===void 0)&&ve(p,this.length-8);const N=(g<<24)+this[++p]*2**16+this[++p]*2**8+this[++p];return(BigInt(N)<<BigInt(32))+BigInt(this[++p]*2**24+this[++p]*2**16+this[++p]*2**8+D)}),u.prototype.readFloatLE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),n.read(this,p,!0,23,4)},u.prototype.readFloatBE=function(p,g){return p=p>>>0,g||ue(p,4,this.length),n.read(this,p,!1,23,4)},u.prototype.readDoubleLE=function(p,g){return p=p>>>0,g||ue(p,8,this.length),n.read(this,p,!0,52,8)},u.prototype.readDoubleBE=function(p,g){return p=p>>>0,g||ue(p,8,this.length),n.read(this,p,!1,52,8)};function Ce(I,p,g,D,N,q){if(!u.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(p>N||p<q)throw new RangeError('"value" argument is out of bounds');if(g+D>I.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(p,g,D,N){if(p=+p,g=g>>>0,D=D>>>0,!N){const ce=Math.pow(2,8*D)-1;Ce(this,p,g,D,ce,0)}let q=1,J=0;for(this[g]=p&255;++J<D&&(q*=256);)this[g+J]=p/q&255;return g+D},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(p,g,D,N){if(p=+p,g=g>>>0,D=D>>>0,!N){const ce=Math.pow(2,8*D)-1;Ce(this,p,g,D,ce,0)}let q=D-1,J=1;for(this[g+q]=p&255;--q>=0&&(J*=256);)this[g+q]=p/J&255;return g+D},u.prototype.writeUint8=u.prototype.writeUInt8=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,1,255,0),this[g]=p&255,g+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,65535,0),this[g]=p&255,this[g+1]=p>>>8,g+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,65535,0),this[g]=p>>>8,this[g+1]=p&255,g+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,4294967295,0),this[g+3]=p>>>24,this[g+2]=p>>>16,this[g+1]=p>>>8,this[g]=p&255,g+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,4294967295,0),this[g]=p>>>24,this[g+1]=p>>>16,this[g+2]=p>>>8,this[g+3]=p&255,g+4};function De(I,p,g,D,N){fe(p,D,N,I,g,7);let q=Number(p&BigInt(4294967295));I[g++]=q,q=q>>8,I[g++]=q,q=q>>8,I[g++]=q,q=q>>8,I[g++]=q;let J=Number(p>>BigInt(32)&BigInt(4294967295));return I[g++]=J,J=J>>8,I[g++]=J,J=J>>8,I[g++]=J,J=J>>8,I[g++]=J,g}function Xe(I,p,g,D,N){fe(p,D,N,I,g,7);let q=Number(p&BigInt(4294967295));I[g+7]=q,q=q>>8,I[g+6]=q,q=q>>8,I[g+5]=q,q=q>>8,I[g+4]=q;let J=Number(p>>BigInt(32)&BigInt(4294967295));return I[g+3]=J,J=J>>8,I[g+2]=J,J=J>>8,I[g+1]=J,J=J>>8,I[g]=J,g+8}u.prototype.writeBigUInt64LE=Ht(function(p,g=0){return De(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=Ht(function(p,g=0){return Xe(this,p,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(p,g,D,N){if(p=+p,g=g>>>0,!N){const oe=Math.pow(2,8*D-1);Ce(this,p,g,D,oe-1,-oe)}let q=0,J=1,ce=0;for(this[g]=p&255;++q<D&&(J*=256);)p<0&&ce===0&&this[g+q-1]!==0&&(ce=1),this[g+q]=(p/J>>0)-ce&255;return g+D},u.prototype.writeIntBE=function(p,g,D,N){if(p=+p,g=g>>>0,!N){const oe=Math.pow(2,8*D-1);Ce(this,p,g,D,oe-1,-oe)}let q=D-1,J=1,ce=0;for(this[g+q]=p&255;--q>=0&&(J*=256);)p<0&&ce===0&&this[g+q+1]!==0&&(ce=1),this[g+q]=(p/J>>0)-ce&255;return g+D},u.prototype.writeInt8=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,1,127,-128),p<0&&(p=255+p+1),this[g]=p&255,g+1},u.prototype.writeInt16LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,32767,-32768),this[g]=p&255,this[g+1]=p>>>8,g+2},u.prototype.writeInt16BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,2,32767,-32768),this[g]=p>>>8,this[g+1]=p&255,g+2},u.prototype.writeInt32LE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,2147483647,-2147483648),this[g]=p&255,this[g+1]=p>>>8,this[g+2]=p>>>16,this[g+3]=p>>>24,g+4},u.prototype.writeInt32BE=function(p,g,D){return p=+p,g=g>>>0,D||Ce(this,p,g,4,2147483647,-2147483648),p<0&&(p=4294967295+p+1),this[g]=p>>>24,this[g+1]=p>>>16,this[g+2]=p>>>8,this[g+3]=p&255,g+4},u.prototype.writeBigInt64LE=Ht(function(p,g=0){return De(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=Ht(function(p,g=0){return Xe(this,p,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ke(I,p,g,D,N,q){if(g+D>I.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function He(I,p,g,D,N){return p=+p,g=g>>>0,N||Ke(I,p,g,4),n.write(I,p,g,D,23,4),g+4}u.prototype.writeFloatLE=function(p,g,D){return He(this,p,g,!0,D)},u.prototype.writeFloatBE=function(p,g,D){return He(this,p,g,!1,D)};function gt(I,p,g,D,N){return p=+p,g=g>>>0,N||Ke(I,p,g,8),n.write(I,p,g,D,52,8),g+8}u.prototype.writeDoubleLE=function(p,g,D){return gt(this,p,g,!0,D)},u.prototype.writeDoubleBE=function(p,g,D){return gt(this,p,g,!1,D)},u.prototype.copy=function(p,g,D,N){if(!u.isBuffer(p))throw new TypeError("argument should be a Buffer");if(D||(D=0),!N&&N!==0&&(N=this.length),g>=p.length&&(g=p.length),g||(g=0),N>0&&N<D&&(N=D),N===D||p.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(D<0||D>=this.length)throw new RangeError("Index out of range");if(N<0)throw new RangeError("sourceEnd out of bounds");N>this.length&&(N=this.length),p.length-g<N-D&&(N=p.length-g+D);const q=N-D;return this===p&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,D,N):Uint8Array.prototype.set.call(p,this.subarray(D,N),g),q},u.prototype.fill=function(p,g,D,N){if(typeof p=="string"){if(typeof g=="string"?(N=g,g=0,D=this.length):typeof D=="string"&&(N=D,D=this.length),N!==void 0&&typeof N!="string")throw new TypeError("encoding must be a string");if(typeof N=="string"&&!u.isEncoding(N))throw new TypeError("Unknown encoding: "+N);if(p.length===1){const J=p.charCodeAt(0);(N==="utf8"&&J<128||N==="latin1")&&(p=J)}}else typeof p=="number"?p=p&255:typeof p=="boolean"&&(p=Number(p));if(g<0||this.length<g||this.length<D)throw new RangeError("Out of range index");if(D<=g)return this;g=g>>>0,D=D===void 0?this.length:D>>>0,p||(p=0);let q;if(typeof p=="number")for(q=g;q<D;++q)this[q]=p;else{const J=u.isBuffer(p)?p:u.from(p,N),ce=J.length;if(ce===0)throw new TypeError('The value "'+p+'" is invalid for argument "value"');for(q=0;q<D-g;++q)this[q+g]=J[q%ce]}return this};const ae={};function de(I,p,g){ae[I]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:p.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${I}]`,this.stack,delete this.name}get code(){return I}set code(N){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:N,writable:!0})}toString(){return`${this.name} [${I}]: ${this.message}`}}}de("ERR_BUFFER_OUT_OF_BOUNDS",function(I){return I?`${I} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),de("ERR_INVALID_ARG_TYPE",function(I,p){return`The "${I}" argument must be of type number. Received type ${typeof p}`},TypeError),de("ERR_OUT_OF_RANGE",function(I,p,g){let D=`The value of "${I}" is out of range.`,N=g;return Number.isInteger(g)&&Math.abs(g)>2**32?N=ge(String(g)):typeof g=="bigint"&&(N=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(N=ge(N)),N+="n"),D+=` It must be ${p}. Received ${N}`,D},RangeError);function ge(I){let p="",g=I.length;const D=I[0]==="-"?1:0;for(;g>=D+4;g-=3)p=`_${I.slice(g-3,g)}${p}`;return`${I.slice(0,g)}${p}`}function me(I,p,g){Pe(p,"offset"),(I[p]===void 0||I[p+g]===void 0)&&ve(p,I.length-(g+1))}function fe(I,p,g,D,N,q){if(I>g||I<p){const J=typeof p=="bigint"?"n":"";let ce;throw p===0||p===BigInt(0)?ce=`>= 0${J} and < 2${J} ** ${(q+1)*8}${J}`:ce=`>= -(2${J} ** ${(q+1)*8-1}${J}) and < 2 ** ${(q+1)*8-1}${J}`,new ae.ERR_OUT_OF_RANGE("value",ce,I)}me(D,N,q)}function Pe(I,p){if(typeof I!="number")throw new ae.ERR_INVALID_ARG_TYPE(p,"number",I)}function ve(I,p,g){throw Math.floor(I)!==I?(Pe(I,g),new ae.ERR_OUT_OF_RANGE("offset","an integer",I)):p<0?new ae.ERR_BUFFER_OUT_OF_BOUNDS:new ae.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${p}`,I)}const Be=/[^+/0-9A-Za-z-_]/g;function Ge(I){if(I=I.split("=")[0],I=I.trim().replace(Be,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Ae(I,p){p=p||1/0;let g;const D=I.length;let N=null;const q=[];for(let J=0;J<D;++J){if(g=I.charCodeAt(J),g>55295&&g<57344){if(!N){if(g>56319){(p-=3)>-1&&q.push(239,191,189);continue}else if(J+1===D){(p-=3)>-1&&q.push(239,191,189);continue}N=g;continue}if(g<56320){(p-=3)>-1&&q.push(239,191,189),N=g;continue}g=(N-55296<<10|g-56320)+65536}else N&&(p-=3)>-1&&q.push(239,191,189);if(N=null,g<128){if((p-=1)<0)break;q.push(g)}else if(g<2048){if((p-=2)<0)break;q.push(g>>6|192,g&63|128)}else if(g<65536){if((p-=3)<0)break;q.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((p-=4)<0)break;q.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return q}function ke(I){const p=[];for(let g=0;g<I.length;++g)p.push(I.charCodeAt(g)&255);return p}function We(I,p){let g,D,N;const q=[];for(let J=0;J<I.length&&!((p-=2)<0);++J)g=I.charCodeAt(J),D=g>>8,N=g%256,q.push(N),q.push(D);return q}function et(I){return t.toByteArray(Ge(I))}function Le(I,p,g,D){let N;for(N=0;N<D&&!(N+g>=p.length||N>=I.length);++N)p[N+g]=I[N];return N}function xe(I,p){return I instanceof p||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===p.name}function ut(I){return I!==I}const Ut=function(){const I="0123456789abcdef",p=new Array(256);for(let g=0;g<16;++g){const D=g*16;for(let N=0;N<16;++N)p[D+N]=I[g]+I[N]}return p}();function Ht(I){return typeof BigInt>"u"?Yn:I}function Yn(){throw new Error("BigInt not supported")}})(Fp);function Fx(e){let t=[e];return{next(){return Promise.resolve({done:t.length===0,value:t.pop()})},return(){return t=[],{}},[Symbol.asyncIterator](){return this}}}function zx(e){return e[Symbol.asyncIterator]?e[Symbol.asyncIterator]():e[Symbol.iterator]?e[Symbol.iterator]():e.next?e:Fx(e)}async function Wx(e,t){const n=zx(e);for(;;){const{value:o,done:s}=await n.next();if(o&&await t(o),s)break}n.return&&n.return()}async function Ux(e){let t=0;const n=[];await Wx(e,a=>{n.push(a),t+=a.byteLength});const o=new Uint8Array(t);let s=0;for(const a of n)o.set(a,s),s+=a.byteLength;return o}function Hx(e){if(e[Symbol.asyncIterator])return e;const t=e.getReader();return{next(){return t.read()},return(){return t.releaseLock(),{}},[Symbol.asyncIterator](){return this}}}async function Gx({onProgress:e,url:t,method:n="GET",headers:o={},body:s}){s&&(s=await Ux(s));const a=await fetch(t,{method:n,headers:o,body:s}),l=a.body&&a.body.getReader?Hx(a.body):[new Uint8Array(await a.arrayBuffer())];o={};for(const[u,d]of a.headers.entries())o[u]=d;return{url:a.url,method:a.method,statusCode:a.status,statusMessage:a.statusText,body:l,headers:o}}var Hc={request:Gx};const qx=async e=>{try{return await(await window.pfs.stat(e)).isDirectory()}catch(t){if(t.code==="ENOENT")return!1;throw t}},Wp=async e=>await window.pfs.readdir(e),Up=async e=>{let t=window.pfs,n;try{n=await t.stat(e)}catch(o){console.debug("recursiveRm: Path does not exist",o);return}if(n.type==="file")await t.unlink(e),console.debug(`recursiveRm: Deleted file: ${e}`);else if(n.type==="dir"){const o=await t.readdir(e);for(const s of o)await Up(`${e}/${s}`);await t.rmdir(e),console.debug(`recursiveRm: Deleted directory: ${e}`)}},Vx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,o="makeinfinite_client",s="makeinfinite_client@spaceandtime.io";await _t.setConfig({fs:t,dir:n,path:"user.name",value:o}),await _t.setConfig({fs:t,dir:n,path:"user.email",value:s})},Yx=async(e,t,n)=>{const o=window.pfs,s=`${window.miDir}/${e}`;await _t.clone({fs:o,http:Hc,dir:s,corsProxy:n,url:t,ref:"main"}),await Vx(e)},Xx=async(e,t,n)=>{const o=window.pfs,s=`${window.miDir}/${e}`;await _t.pull({fs:o,http:Hc,dir:s,corsProxy:n,url:t,ref:"main"})},Kx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`,o=await _t.resolveRef({fs:t,dir:n,ref:"refs/tags/published"});await _t.checkout({fs:t,dir:n,ref:o})},Jx=async(e,t,n)=>{const o=window.pfs,s=`${window.miDir}/${e}`;await _t.fetch({fs:o,http:Hc,dir:s,corsProxy:n,url:t,ref:"main",tags:!0,pruneTags:!0})};class Zx{constructor(t,n,o){this.targetRef=t,this.sourceRef=n,this.opType=o}}const Gc=e=>{var l,u;const t=e.commit.message.trim().split(`
|
|
10
|
+
`),n=t.find(d=>d.startsWith("Git Ref: ")),o=t.find(d=>d.startsWith("Extra Metadata: "));if(!n||!o)return null;const s=(l=n.split("Git Ref: ")[1])==null?void 0:l.trim(),a=JSON.parse(((u=o.split("Extra Metadata: ")[1])==null?void 0:u.trim())||"{}");return!s||!a?null:new Zx(s,a.sourceRef,a.opType)},Qx=async e=>{const t=window.pfs,n=`${window.miDir}/${e}`;return await _t.resolveRef({fs:t,dir:n,ref:"HEAD"})},Hp=async(e,t)=>{const n=window.pfs,o=`${window.miDir}/${e}`,s={fs:n,dir:o,ref:"HEAD",depth:1,filepath:t},a=(await _t.log(s))[0];if(!a)throw new Error("No commit found");return a.oid},Ks=async(e,t,n,o,s=new Set,a=1e3)=>{if(a<=0)throw new Error(`Maximum recursion depth reached while resolving commit: ${n}`);const l=window.pfs,u=`${window.miDir}/${e}`,d={fs:l,dir:u,ref:n,depth:1,filepath:t},h=(await _t.log(d))[0];if(!h)throw new Error("No commit found");if(s.has(h.oid))throw new Error(`Circular reference detected: ${h.oid} has already been seen`);s.add(h.oid);const y=Gc(h);if(y&&y.opType==o)return Ks(e,t,y.targetRef,o,s,a-1);if(h.commit.parent.length>1){const m=h.commit.parent[0];if(!m)throw new Error("No parent found");return Ks(e,t,m,o,s,a-1)}return h},ew=async(e,t)=>{const n=window.pfs,o=`${window.miDir}/${e}`,s=await Hp(e,t),a=await Ks(e,t,s,"UNDO"),l=Gc(a);if(l)return[s,l.sourceRef];{let u=a.oid;const d={fs:n,dir:o,ref:u,depth:2,filepath:t},h=await _t.log(d);if(!h[1])throw new Error("No previous commit found");const y=h[1].oid;return[s,y]}},tw=async(e,t)=>{const n=await Hp(e,t),o=await Ks(e,t,n,"REDO"),s=Gc(o);if(!s)throw new Error("No undos to redo");return[n,s.sourceRef]},nw=async(e,t,n)=>{await qx(`${window.miDir}/${e}`)||await Yx(e,t,n);try{await Xx(e,t,n)}catch(s){throw await Up(`${window.miDir}/${e}`).catch(a=>console.log(`recursiveRm error: ${a}`)),s}},Js=async(e,t,n)=>{let o=0;const s=5;for(;o<=s;)try{await nw(e||"",t||"",n||"");break}catch(a){if(o++,console.log(`Retrying syncGitSource (Attempt ${o})`),o>s)throw console.error(`syncGitSource failed after ${o} attempts:`,a),a}},qc=async(e,t,n)=>{const o=window.pfs,s=`${window.miDir}/${e}`;await Jx(e,t,n);const a=await _t.listTags({fs:o,dir:s});return await Promise.all(a.map(async u=>{const d=await _t.resolveRef({fs:o,dir:s,ref:`refs/tags/${u}`}),{commit:h}=await _t.readCommit({fs:o,dir:s,oid:d});return{tag:u,timestamp:h.committer.timestamp,ref:`refs/tags/${u}`}}))};var Gp={exports:{}},Wi={};/*
|
|
11
11
|
object-assign
|
|
12
12
|
(c) Sindre Sorhus
|
|
13
13
|
@license MIT
|
|
14
|
-
*/var
|
|
14
|
+
*/var qp=Object.getOwnPropertySymbols,rw=Object.prototype.hasOwnProperty,ow=Object.prototype.propertyIsEnumerable;function iw(e){if(e==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function sw(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de",Object.getOwnPropertyNames(e)[0]==="5")return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;var o=Object.getOwnPropertyNames(t).map(function(a){return t[a]});if(o.join("")!=="0123456789")return!1;var s={};return"abcdefghijklmnopqrst".split("").forEach(function(a){s[a]=a}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return!1}}sw();/** @license React v17.0.2
|
|
15
15
|
* react-jsx-runtime.production.min.js
|
|
16
16
|
*
|
|
17
17
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
18
18
|
*
|
|
19
19
|
* This source code is licensed under the MIT license found in the
|
|
20
20
|
* LICENSE file in the root directory of this source tree.
|
|
21
|
-
*/var zw=Y,yh=60103;if(Yi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var vh=Symbol.for;yh=vh("react.element"),Yi.Fragment=vh("react.fragment")}var Ww=zw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Uw=Object.prototype.hasOwnProperty,Hw={key:!0,ref:!0,__self:!0,__source:!0};function bh(e,t,n){var r,i={},a=null,l=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(l=t.ref);for(r in t)Uw.call(t,r)&&!Hw.hasOwnProperty(r)&&(i[r]=t[r]);if(e&&e.defaultProps)for(r in t=e.defaultProps,t)i[r]===void 0&&(i[r]=t[r]);return{$$typeof:yh,type:e,key:a,ref:l,props:i,_owner:Ww.current}}Yi.jsx=bh,Yi.jsxs=bh,gh.exports=Yi;var b=gh.exports;function Lr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function ua(){return ua=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ua.apply(null,arguments)}function vu(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Gw=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,qw=vu(function(e){return Gw.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),Vw=!1;function Kw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function Yw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var Xw=function(){function e(n){var r=this;this._insertTag=function(i){var a;r.tags.length===0?r.insertionPoint?a=r.insertionPoint.nextSibling:r.prepend?a=r.container.firstChild:a=r.before:a=r.tags[r.tags.length-1].nextSibling,r.container.insertBefore(i,a),r.tags.push(i)},this.isSpeedy=n.speedy===void 0?!Vw:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(r){r.forEach(this._insertTag)},t.insert=function(r){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(Yw(this));var i=this.tags[this.tags.length-1];if(this.isSpeedy){var a=Kw(i);try{a.insertRule(r,a.cssRules.length)}catch{}}else i.appendChild(document.createTextNode(r));this.ctr++},t.flush=function(){this.tags.forEach(function(r){var i;return(i=r.parentNode)==null?void 0:i.removeChild(r)}),this.tags=[],this.ctr=0},e}(),ln="-ms-",da="-moz-",at="-webkit-",xh="comm",bu="rule",xu="decl",Jw="@import",wh="@keyframes",Zw="@layer",Qw=Math.abs,fa=String.fromCharCode,e1=Object.assign;function t1(e,t){return tn(e,0)^45?(((t<<2^tn(e,0))<<2^tn(e,1))<<2^tn(e,2))<<2^tn(e,3):0}function Sh(e){return e.trim()}function n1(e,t){return(e=t.exec(e))?e[0]:e}function lt(e,t,n){return e.replace(t,n)}function wu(e,t){return e.indexOf(t)}function tn(e,t){return e.charCodeAt(t)|0}function Xi(e,t,n){return e.slice(t,n)}function xr(e){return e.length}function Su(e){return e.length}function pa(e,t){return t.push(e),e}function r1(e,t){return e.map(t).join("")}var ha=1,Xo=1,Ch=0,Sn=0,qt=0,Jo="";function ga(e,t,n,r,i,a,l){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:ha,column:Xo,length:l,return:""}}function Ji(e,t){return e1(ga("",null,null,"",null,null,0),e,{length:-e.length},t)}function o1(){return qt}function i1(){return qt=Sn>0?tn(Jo,--Sn):0,Xo--,qt===10&&(Xo=1,ha--),qt}function On(){return qt=Sn<Ch?tn(Jo,Sn++):0,Xo++,qt===10&&(Xo=1,ha++),qt}function wr(){return tn(Jo,Sn)}function ma(){return Sn}function Zi(e,t){return Xi(Jo,e,t)}function Qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function _h(e){return ha=Xo=1,Ch=xr(Jo=e),Sn=0,[]}function Eh(e){return Jo="",e}function ya(e){return Sh(Zi(Sn-1,Cu(e===91?e+2:e===40?e+1:e)))}function s1(e){for(;(qt=wr())&&qt<33;)On();return Qi(e)>2||Qi(qt)>3?"":" "}function a1(e,t){for(;--t&&On()&&!(qt<48||qt>102||qt>57&&qt<65||qt>70&&qt<97););return Zi(e,ma()+(t<6&&wr()==32&&On()==32))}function Cu(e){for(;On();)switch(qt){case e:return Sn;case 34:case 39:e!==34&&e!==39&&Cu(qt);break;case 40:e===41&&Cu(e);break;case 92:On();break}return Sn}function l1(e,t){for(;On()&&e+qt!==57;)if(e+qt===84&&wr()===47)break;return"/*"+Zi(t,Sn-1)+"*"+fa(e===47?e:On())}function c1(e){for(;!Qi(wr());)On();return Zi(e,Sn)}function u1(e){return Eh(va("",null,null,null,[""],e=_h(e),0,[0],e))}function va(e,t,n,r,i,a,l,c,d){for(var f=0,y=0,m=l,v=0,w=0,x=0,_=1,k=1,C=1,O=0,P="",R=i,M=a,D=r,$=P;k;)switch(x=O,O=On()){case 40:if(x!=108&&tn($,m-1)==58){wu($+=lt(ya(O),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:$+=ya(O);break;case 9:case 10:case 13:case 32:$+=s1(x);break;case 92:$+=a1(ma()-1,7);continue;case 47:switch(wr()){case 42:case 47:pa(d1(l1(On(),ma()),t,n),d);break;default:$+="/"}break;case 123*_:c[f++]=xr($)*C;case 125*_:case 59:case 0:switch(O){case 0:case 125:k=0;case 59+y:C==-1&&($=lt($,/\f/g,"")),w>0&&xr($)-m&&pa(w>32?Ph($+";",r,n,m-1):Ph(lt($," ","")+";",r,n,m-2),d);break;case 59:$+=";";default:if(pa(D=Rh($,t,n,f,y,i,c,P,R=[],M=[],m),a),O===123)if(y===0)va($,t,D,D,R,a,m,c,M);else switch(v===99&&tn($,3)===110?100:v){case 100:case 108:case 109:case 115:va(e,D,D,r&&pa(Rh(e,D,D,0,0,i,c,P,i,R=[],m),M),i,M,m,c,r?R:M);break;default:va($,D,D,D,[""],M,0,c,M)}}f=y=w=0,_=C=1,P=$="",m=l;break;case 58:m=1+xr($),w=x;default:if(_<1){if(O==123)--_;else if(O==125&&_++==0&&i1()==125)continue}switch($+=fa(O),O*_){case 38:C=y>0?1:($+="\f",-1);break;case 44:c[f++]=(xr($)-1)*C,C=1;break;case 64:wr()===45&&($+=ya(On())),v=wr(),y=m=xr(P=$+=c1(ma())),O++;break;case 45:x===45&&xr($)==2&&(_=0)}}return a}function Rh(e,t,n,r,i,a,l,c,d,f,y){for(var m=i-1,v=i===0?a:[""],w=Su(v),x=0,_=0,k=0;x<r;++x)for(var C=0,O=Xi(e,m+1,m=Qw(_=l[x])),P=e;C<w;++C)(P=Sh(_>0?v[C]+" "+O:lt(O,/&\f/g,v[C])))&&(d[k++]=P);return ga(e,t,n,i===0?bu:c,d,f,y)}function d1(e,t,n){return ga(e,t,n,xh,fa(o1()),Xi(e,2,-2),0)}function Ph(e,t,n,r){return ga(e,t,n,xu,Xi(e,0,r),Xi(e,r+1,-1),r)}function Zo(e,t){for(var n="",r=Su(e),i=0;i<r;i++)n+=t(e[i],i,e,t)||"";return n}function f1(e,t,n,r){switch(e.type){case Zw:if(e.children.length)break;case Jw:case xu:return e.return=e.return||e.value;case xh:return"";case wh:return e.return=e.value+"{"+Zo(e.children,r)+"}";case bu:e.value=e.props.join(",")}return xr(n=Zo(e.children,r))?e.return=e.value+"{"+n+"}":""}function p1(e){var t=Su(e);return function(n,r,i,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,a)||"";return l}}function h1(e){return function(t){t.root||(t=t.return)&&e(t)}}var g1=function(t,n,r){for(var i=0,a=0;i=a,a=wr(),i===38&&a===12&&(n[r]=1),!Qi(a);)On();return Zi(t,Sn)},m1=function(t,n){var r=-1,i=44;do switch(Qi(i)){case 0:i===38&&wr()===12&&(n[r]=1),t[r]+=g1(Sn-1,n,r);break;case 2:t[r]+=ya(i);break;case 4:if(i===44){t[++r]=wr()===58?"&\f":"",n[r]=t[r].length;break}default:t[r]+=fa(i)}while(i=On());return t},y1=function(t,n){return Eh(m1(_h(t),n))},Th=new WeakMap,v1=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,r=t.parent,i=t.column===r.column&&t.line===r.line;r.type!=="rule";)if(r=r.parent,!r)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!Th.get(r))&&!i){Th.set(t,!0);for(var a=[],l=y1(n,a),c=r.props,d=0,f=0;d<l.length;d++)for(var y=0;y<c.length;y++,f++)t.props[f]=a[d]?l[d].replace(/&\f/g,c[y]):c[y]+" "+l[d]}}},b1=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function Ih(e,t){switch(t1(e,t)){case 5103:return at+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return at+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return at+e+da+e+ln+e+e;case 6828:case 4268:return at+e+ln+e+e;case 6165:return at+e+ln+"flex-"+e+e;case 5187:return at+e+lt(e,/(\w+).+(:[^]+)/,at+"box-$1$2"+ln+"flex-$1$2")+e;case 5443:return at+e+ln+"flex-item-"+lt(e,/flex-|-self/,"")+e;case 4675:return at+e+ln+"flex-line-pack"+lt(e,/align-content|flex-|-self/,"")+e;case 5548:return at+e+ln+lt(e,"shrink","negative")+e;case 5292:return at+e+ln+lt(e,"basis","preferred-size")+e;case 6060:return at+"box-"+lt(e,"-grow","")+at+e+ln+lt(e,"grow","positive")+e;case 4554:return at+lt(e,/([^-])(transform)/g,"$1"+at+"$2")+e;case 6187:return lt(lt(lt(e,/(zoom-|grab)/,at+"$1"),/(image-set)/,at+"$1"),e,"")+e;case 5495:case 3959:return lt(e,/(image-set\([^]*)/,at+"$1$`$1");case 4968:return lt(lt(e,/(.+:)(flex-)?(.*)/,at+"box-pack:$3"+ln+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+at+e+e;case 4095:case 3583:case 4068:case 2532:return lt(e,/(.+)-inline(.+)/,at+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(xr(e)-1-t>6)switch(tn(e,t+1)){case 109:if(tn(e,t+4)!==45)break;case 102:return lt(e,/(.+:)(.+)-([^]+)/,"$1"+at+"$2-$3$1"+da+(tn(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~wu(e,"stretch")?Ih(lt(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(tn(e,t+1)!==115)break;case 6444:switch(tn(e,xr(e)-3-(~wu(e,"!important")&&10))){case 107:return lt(e,":",":"+at)+e;case 101:return lt(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+at+(tn(e,14)===45?"inline-":"")+"box$3$1"+at+"$2$3$1"+ln+"$2box$3")+e}break;case 5936:switch(tn(e,t+11)){case 114:return at+e+ln+lt(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return at+e+ln+lt(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return at+e+ln+lt(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return at+e+ln+e+e}return e}var x1=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case xu:t.return=Ih(t.value,t.length);break;case wh:return Zo([Ji(t,{value:lt(t.value,"@","@"+at)})],i);case bu:if(t.length)return r1(t.props,function(a){switch(n1(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Zo([Ji(t,{props:[lt(a,/:(read-\w+)/,":"+da+"$1")]})],i);case"::placeholder":return Zo([Ji(t,{props:[lt(a,/:(plac\w+)/,":"+at+"input-$1")]}),Ji(t,{props:[lt(a,/:(plac\w+)/,":"+da+"$1")]}),Ji(t,{props:[lt(a,/:(plac\w+)/,ln+"input-$1")]})],i)}return""})}},w1=[x1],S1=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(_){var k=_.getAttribute("data-emotion");k.indexOf(" ")!==-1&&(document.head.appendChild(_),_.setAttribute("data-s",""))})}var i=t.stylisPlugins||w1,a={},l,c=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(_){for(var k=_.getAttribute("data-emotion").split(" "),C=1;C<k.length;C++)a[k[C]]=!0;c.push(_)});var d,f=[v1,b1];{var y,m=[f1,h1(function(_){y.insert(_)})],v=p1(f.concat(i,m)),w=function(k){return Zo(u1(k),v)};d=function(k,C,O,P){y=O,w(k?k+"{"+C.styles+"}":C.styles),P&&(x.inserted[C.name]=!0)}}var x={key:n,sheet:new Xw({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return x.sheet.hydrate(c),x},kh={exports:{}},mt={};/** @license React v16.13.1
|
|
21
|
+
*/var aw=X,Vp=60103;if(Wi.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var Yp=Symbol.for;Vp=Yp("react.element"),Wi.Fragment=Yp("react.fragment")}var lw=aw.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,cw=Object.prototype.hasOwnProperty,uw={key:!0,ref:!0,__self:!0,__source:!0};function Xp(e,t,n){var o,s={},a=null,l=null;n!==void 0&&(a=""+n),t.key!==void 0&&(a=""+t.key),t.ref!==void 0&&(l=t.ref);for(o in t)cw.call(t,o)&&!uw.hasOwnProperty(o)&&(s[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps,t)s[o]===void 0&&(s[o]=t[o]);return{$$typeof:Vp,type:e,key:a,ref:l,props:s,_owner:lw.current}}Wi.jsx=Xp,Wi.jsxs=Xp,Gp.exports=Wi;var v=Gp.exports;function $r(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(o=>n.searchParams.append("args[]",o)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Zs(){return Zs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Zs.apply(null,arguments)}var dw=!1;function fw(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}function pw(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key),e.nonce!==void 0&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),t.setAttribute("data-s",""),t}var hw=function(){function e(n){var o=this;this._insertTag=function(s){var a;o.tags.length===0?o.insertionPoint?a=o.insertionPoint.nextSibling:o.prepend?a=o.container.firstChild:a=o.before:a=o.tags[o.tags.length-1].nextSibling,o.container.insertBefore(s,a),o.tags.push(s)},this.isSpeedy=n.speedy===void 0?!dw:n.speedy,this.tags=[],this.ctr=0,this.nonce=n.nonce,this.key=n.key,this.container=n.container,this.prepend=n.prepend,this.insertionPoint=n.insertionPoint,this.before=null}var t=e.prototype;return t.hydrate=function(o){o.forEach(this._insertTag)},t.insert=function(o){this.ctr%(this.isSpeedy?65e3:1)===0&&this._insertTag(pw(this));var s=this.tags[this.tags.length-1];if(this.isSpeedy){var a=fw(s);try{a.insertRule(o,a.cssRules.length)}catch{}}else s.appendChild(document.createTextNode(o));this.ctr++},t.flush=function(){this.tags.forEach(function(o){var s;return(s=o.parentNode)==null?void 0:s.removeChild(o)}),this.tags=[],this.ctr=0},e}(),on="-ms-",Qs="-moz-",st="-webkit-",Kp="comm",Vc="rule",Yc="decl",gw="@import",Jp="@keyframes",mw="@layer",yw=Math.abs,ea=String.fromCharCode,vw=Object.assign;function bw(e,t){return Zt(e,0)^45?(((t<<2^Zt(e,0))<<2^Zt(e,1))<<2^Zt(e,2))<<2^Zt(e,3):0}function Zp(e){return e.trim()}function xw(e,t){return(e=t.exec(e))?e[0]:e}function at(e,t,n){return e.replace(t,n)}function Xc(e,t){return e.indexOf(t)}function Zt(e,t){return e.charCodeAt(t)|0}function Ui(e,t,n){return e.slice(t,n)}function gr(e){return e.length}function Kc(e){return e.length}function ta(e,t){return t.push(e),e}function ww(e,t){return e.map(t).join("")}var na=1,Ho=1,Qp=0,vn=0,zt=0,Go="";function ra(e,t,n,o,s,a,l){return{value:e,root:t,parent:n,type:o,props:s,children:a,line:na,column:Ho,length:l,return:""}}function Hi(e,t){return vw(ra("",null,null,"",null,null,0),e,{length:-e.length},t)}function Sw(){return zt}function Cw(){return zt=vn>0?Zt(Go,--vn):0,Ho--,zt===10&&(Ho=1,na--),zt}function In(){return zt=vn<Qp?Zt(Go,vn++):0,Ho++,zt===10&&(Ho=1,na++),zt}function mr(){return Zt(Go,vn)}function oa(){return vn}function Gi(e,t){return Ui(Go,e,t)}function qi(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function eh(e){return na=Ho=1,Qp=gr(Go=e),vn=0,[]}function th(e){return Go="",e}function ia(e){return Zp(Gi(vn-1,Jc(e===91?e+2:e===40?e+1:e)))}function _w(e){for(;(zt=mr())&&zt<33;)In();return qi(e)>2||qi(zt)>3?"":" "}function Ew(e,t){for(;--t&&In()&&!(zt<48||zt>102||zt>57&&zt<65||zt>70&&zt<97););return Gi(e,oa()+(t<6&&mr()==32&&In()==32))}function Jc(e){for(;In();)switch(zt){case e:return vn;case 34:case 39:e!==34&&e!==39&&Jc(zt);break;case 40:e===41&&Jc(e);break;case 92:In();break}return vn}function Rw(e,t){for(;In()&&e+zt!==57;)if(e+zt===84&&mr()===47)break;return"/*"+Gi(t,vn-1)+"*"+ea(e===47?e:In())}function Iw(e){for(;!qi(mr());)In();return Gi(e,vn)}function kw(e){return th(sa("",null,null,null,[""],e=eh(e),0,[0],e))}function sa(e,t,n,o,s,a,l,u,d){for(var h=0,y=0,m=l,b=0,w=0,S=0,E=1,P=1,C=1,O=0,k="",R=s,$=a,B=o,M=k;P;)switch(S=O,O=In()){case 40:if(S!=108&&Zt(M,m-1)==58){Xc(M+=at(ia(O),"&","&\f"),"&\f")!=-1&&(C=-1);break}case 34:case 39:case 91:M+=ia(O);break;case 9:case 10:case 13:case 32:M+=_w(S);break;case 92:M+=Ew(oa()-1,7);continue;case 47:switch(mr()){case 42:case 47:ta(Tw(Rw(In(),oa()),t,n),d);break;default:M+="/"}break;case 123*E:u[h++]=gr(M)*C;case 125*E:case 59:case 0:switch(O){case 0:case 125:P=0;case 59+y:C==-1&&(M=at(M,/\f/g,"")),w>0&&gr(M)-m&&ta(w>32?rh(M+";",o,n,m-1):rh(at(M," ","")+";",o,n,m-2),d);break;case 59:M+=";";default:if(ta(B=nh(M,t,n,h,y,s,u,k,R=[],$=[],m),a),O===123)if(y===0)sa(M,t,B,B,R,a,m,u,$);else switch(b===99&&Zt(M,3)===110?100:b){case 100:case 108:case 109:case 115:sa(e,B,B,o&&ta(nh(e,B,B,0,0,s,u,k,s,R=[],m),$),s,$,m,u,o?R:$);break;default:sa(M,B,B,B,[""],$,0,u,$)}}h=y=w=0,E=C=1,k=M="",m=l;break;case 58:m=1+gr(M),w=S;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&Cw()==125)continue}switch(M+=ea(O),O*E){case 38:C=y>0?1:(M+="\f",-1);break;case 44:u[h++]=(gr(M)-1)*C,C=1;break;case 64:mr()===45&&(M+=ia(In())),b=mr(),y=m=gr(k=M+=Iw(oa())),O++;break;case 45:S===45&&gr(M)==2&&(E=0)}}return a}function nh(e,t,n,o,s,a,l,u,d,h,y){for(var m=s-1,b=s===0?a:[""],w=Kc(b),S=0,E=0,P=0;S<o;++S)for(var C=0,O=Ui(e,m+1,m=yw(E=l[S])),k=e;C<w;++C)(k=Zp(E>0?b[C]+" "+O:at(O,/&\f/g,b[C])))&&(d[P++]=k);return ra(e,t,n,s===0?Vc:u,d,h,y)}function Tw(e,t,n){return ra(e,t,n,Kp,ea(Sw()),Ui(e,2,-2),0)}function rh(e,t,n,o){return ra(e,t,n,Yc,Ui(e,0,o),Ui(e,o+1,-1),o)}function qo(e,t){for(var n="",o=Kc(e),s=0;s<o;s++)n+=t(e[s],s,e,t)||"";return n}function Pw(e,t,n,o){switch(e.type){case mw:if(e.children.length)break;case gw:case Yc:return e.return=e.return||e.value;case Kp:return"";case Jp:return e.return=e.value+"{"+qo(e.children,o)+"}";case Vc:e.value=e.props.join(",")}return gr(n=qo(e.children,o))?e.return=e.value+"{"+n+"}":""}function Ow(e){var t=Kc(e);return function(n,o,s,a){for(var l="",u=0;u<t;u++)l+=e[u](n,o,s,a)||"";return l}}function Aw(e){return function(t){t.root||(t=t.return)&&e(t)}}function oh(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Mw=function(t,n,o){for(var s=0,a=0;s=a,a=mr(),s===38&&a===12&&(n[o]=1),!qi(a);)In();return Gi(t,vn)},$w=function(t,n){var o=-1,s=44;do switch(qi(s)){case 0:s===38&&mr()===12&&(n[o]=1),t[o]+=Mw(vn-1,n,o);break;case 2:t[o]+=ia(s);break;case 4:if(s===44){t[++o]=mr()===58?"&\f":"",n[o]=t[o].length;break}default:t[o]+=ea(s)}while(s=In());return t},Dw=function(t,n){return th($w(eh(t),n))},ih=new WeakMap,Bw=function(t){if(!(t.type!=="rule"||!t.parent||t.length<1)){for(var n=t.value,o=t.parent,s=t.column===o.column&&t.line===o.line;o.type!=="rule";)if(o=o.parent,!o)return;if(!(t.props.length===1&&n.charCodeAt(0)!==58&&!ih.get(o))&&!s){ih.set(t,!0);for(var a=[],l=Dw(n,a),u=o.props,d=0,h=0;d<l.length;d++)for(var y=0;y<u.length;y++,h++)t.props[h]=a[d]?l[d].replace(/&\f/g,u[y]):u[y]+" "+l[d]}}},Lw=function(t){if(t.type==="decl"){var n=t.value;n.charCodeAt(0)===108&&n.charCodeAt(2)===98&&(t.return="",t.value="")}};function sh(e,t){switch(bw(e,t)){case 5103:return st+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return st+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return st+e+Qs+e+on+e+e;case 6828:case 4268:return st+e+on+e+e;case 6165:return st+e+on+"flex-"+e+e;case 5187:return st+e+at(e,/(\w+).+(:[^]+)/,st+"box-$1$2"+on+"flex-$1$2")+e;case 5443:return st+e+on+"flex-item-"+at(e,/flex-|-self/,"")+e;case 4675:return st+e+on+"flex-line-pack"+at(e,/align-content|flex-|-self/,"")+e;case 5548:return st+e+on+at(e,"shrink","negative")+e;case 5292:return st+e+on+at(e,"basis","preferred-size")+e;case 6060:return st+"box-"+at(e,"-grow","")+st+e+on+at(e,"grow","positive")+e;case 4554:return st+at(e,/([^-])(transform)/g,"$1"+st+"$2")+e;case 6187:return at(at(at(e,/(zoom-|grab)/,st+"$1"),/(image-set)/,st+"$1"),e,"")+e;case 5495:case 3959:return at(e,/(image-set\([^]*)/,st+"$1$`$1");case 4968:return at(at(e,/(.+:)(flex-)?(.*)/,st+"box-pack:$3"+on+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+st+e+e;case 4095:case 3583:case 4068:case 2532:return at(e,/(.+)-inline(.+)/,st+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(gr(e)-1-t>6)switch(Zt(e,t+1)){case 109:if(Zt(e,t+4)!==45)break;case 102:return at(e,/(.+:)(.+)-([^]+)/,"$1"+st+"$2-$3$1"+Qs+(Zt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Xc(e,"stretch")?sh(at(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Zt(e,t+1)!==115)break;case 6444:switch(Zt(e,gr(e)-3-(~Xc(e,"!important")&&10))){case 107:return at(e,":",":"+st)+e;case 101:return at(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+st+(Zt(e,14)===45?"inline-":"")+"box$3$1"+st+"$2$3$1"+on+"$2box$3")+e}break;case 5936:switch(Zt(e,t+11)){case 114:return st+e+on+at(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return st+e+on+at(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return st+e+on+at(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return st+e+on+e+e}return e}var jw=function(t,n,o,s){if(t.length>-1&&!t.return)switch(t.type){case Yc:t.return=sh(t.value,t.length);break;case Jp:return qo([Hi(t,{value:at(t.value,"@","@"+st)})],s);case Vc:if(t.length)return ww(t.props,function(a){switch(xw(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return qo([Hi(t,{props:[at(a,/:(read-\w+)/,":"+Qs+"$1")]})],s);case"::placeholder":return qo([Hi(t,{props:[at(a,/:(plac\w+)/,":"+st+"input-$1")]}),Hi(t,{props:[at(a,/:(plac\w+)/,":"+Qs+"$1")]}),Hi(t,{props:[at(a,/:(plac\w+)/,on+"input-$1")]})],s)}return""})}},Nw=[jw],Fw=function(t){var n=t.key;if(n==="css"){var o=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(o,function(E){var P=E.getAttribute("data-emotion");P.indexOf(" ")!==-1&&(document.head.appendChild(E),E.setAttribute("data-s",""))})}var s=t.stylisPlugins||Nw,a={},l,u=[];l=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(E){for(var P=E.getAttribute("data-emotion").split(" "),C=1;C<P.length;C++)a[P[C]]=!0;u.push(E)});var d,h=[Bw,Lw];{var y,m=[Pw,Aw(function(E){y.insert(E)})],b=Ow(h.concat(s,m)),w=function(P){return qo(kw(P),b)};d=function(P,C,O,k){y=O,w(P?P+"{"+C.styles+"}":C.styles),k&&(S.inserted[C.name]=!0)}}var S={key:n,sheet:new hw({key:n,container:l,nonce:t.nonce,speedy:t.speedy,prepend:t.prepend,insertionPoint:t.insertionPoint}),nonce:t.nonce,inserted:a,registered:{},insert:d};return S.sheet.hydrate(u),S},ah={exports:{}},yt={};/** @license React v16.13.1
|
|
22
22
|
* react-is.production.min.js
|
|
23
23
|
*
|
|
24
24
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
25
25
|
*
|
|
26
26
|
* This source code is licensed under the MIT license found in the
|
|
27
27
|
* LICENSE file in the root directory of this source tree.
|
|
28
|
-
*/var Jt=typeof Symbol=="function"&&Symbol.for,_u=Jt?Symbol.for("react.element"):60103,Eu=Jt?Symbol.for("react.portal"):60106,ba=Jt?Symbol.for("react.fragment"):60107,xa=Jt?Symbol.for("react.strict_mode"):60108,wa=Jt?Symbol.for("react.profiler"):60114,Sa=Jt?Symbol.for("react.provider"):60109,Ca=Jt?Symbol.for("react.context"):60110,Ru=Jt?Symbol.for("react.async_mode"):60111,_a=Jt?Symbol.for("react.concurrent_mode"):60111,Ea=Jt?Symbol.for("react.forward_ref"):60112,Ra=Jt?Symbol.for("react.suspense"):60113,C1=Jt?Symbol.for("react.suspense_list"):60120,Pa=Jt?Symbol.for("react.memo"):60115,Ta=Jt?Symbol.for("react.lazy"):60116,_1=Jt?Symbol.for("react.block"):60121,E1=Jt?Symbol.for("react.fundamental"):60117,R1=Jt?Symbol.for("react.responder"):60118,P1=Jt?Symbol.for("react.scope"):60119;function An(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case _u:switch(e=e.type,e){case Ru:case _a:case ba:case wa:case xa:case Ra:return e;default:switch(e=e&&e.$$typeof,e){case Ca:case Ea:case Ta:case Pa:case Sa:return e;default:return t}}case Eu:return t}}}function Oh(e){return An(e)===_a}mt.AsyncMode=Ru,mt.ConcurrentMode=_a,mt.ContextConsumer=Ca,mt.ContextProvider=Sa,mt.Element=_u,mt.ForwardRef=Ea,mt.Fragment=ba,mt.Lazy=Ta,mt.Memo=Pa,mt.Portal=Eu,mt.Profiler=wa,mt.StrictMode=xa,mt.Suspense=Ra,mt.isAsyncMode=function(e){return Oh(e)||An(e)===Ru},mt.isConcurrentMode=Oh,mt.isContextConsumer=function(e){return An(e)===Ca},mt.isContextProvider=function(e){return An(e)===Sa},mt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===_u},mt.isForwardRef=function(e){return An(e)===Ea},mt.isFragment=function(e){return An(e)===ba},mt.isLazy=function(e){return An(e)===Ta},mt.isMemo=function(e){return An(e)===Pa},mt.isPortal=function(e){return An(e)===Eu},mt.isProfiler=function(e){return An(e)===wa},mt.isStrictMode=function(e){return An(e)===xa},mt.isSuspense=function(e){return An(e)===Ra},mt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ba||e===_a||e===wa||e===xa||e===Ra||e===C1||typeof e=="object"&&e!==null&&(e.$$typeof===Ta||e.$$typeof===Pa||e.$$typeof===Sa||e.$$typeof===Ca||e.$$typeof===Ea||e.$$typeof===E1||e.$$typeof===R1||e.$$typeof===P1||e.$$typeof===_1)},mt.typeOf=An,kh.exports=mt;var T1=kh.exports,Ah=T1,I1={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},k1={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},$h={};$h[Ah.ForwardRef]=I1,$h[Ah.Memo]=k1;var O1=!0;function A1(e,t,n){var r="";return n.split(" ").forEach(function(i){e[i]!==void 0?t.push(e[i]+";"):i&&(r+=i+" ")}),r}var Mh=function(t,n,r){var i=t.key+"-"+n.name;(r===!1||O1===!1)&&t.registered[i]===void 0&&(t.registered[i]=n.styles)},Bh=function(t,n,r){Mh(t,n,r);var i=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+i:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Dh(e){for(var t=0,n,r=0,i=e.length;i>=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var jh={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},$1=!1,M1=/[A-Z]|^ms/g,B1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Lh=function(t){return t.charCodeAt(1)===45},Fh=function(t){return t!=null&&typeof t!="boolean"},Pu=vu(function(e){return Lh(e)?e:e.replace(M1,"-$&").toLowerCase()}),Nh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(B1,function(r,i,a){return Sr={name:i,styles:a,next:Sr},i})}return jh[t]!==1&&!Lh(t)&&typeof n=="number"&&n!==0?n+"px":n},D1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function es(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return Sr={name:i.name,styles:i.styles,next:Sr},i.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)Sr={name:l.name,styles:l.styles,next:Sr},l=l.next;var c=a.styles+";";return c}return j1(e,t,n)}case"function":{if(e!==void 0){var d=Sr,f=n(e);return Sr=d,es(e,t,f)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function j1(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i<n.length;i++)r+=es(e,t,n[i])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var c=l;t!=null&&t[c]!==void 0?r+=a+"{"+t[c]+"}":Fh(c)&&(r+=Pu(a)+":"+Nh(a,c)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&$1)throw new Error(D1);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)Fh(l[d])&&(r+=Pu(a)+":"+Nh(a,l[d])+";");else{var f=es(e,t,l);switch(a){case"animation":case"animationName":{r+=Pu(a)+":"+f+";";break}default:r+=a+"{"+f+"}"}}}}return r}var zh=/label:\s*([^\s;{]+)\s*(;|$)/g,Sr;function Ia(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,i="";Sr=void 0;var a=e[0];if(a==null||a.raw===void 0)r=!1,i+=es(n,t,a);else{var l=a;i+=l[0]}for(var c=1;c<e.length;c++)if(i+=es(n,t,e[c]),r){var d=a;i+=d[c]}zh.lastIndex=0;for(var f="",y;(y=zh.exec(i))!==null;)f+="-"+y[1];var m=Dh(i)+f;return{name:m,styles:i,next:Sr}}var L1=function(t){return t()},Wh=L.useInsertionEffect?L.useInsertionEffect:!1,F1=Wh||L1,Uh=Wh||L.useLayoutEffect,Hh=L.createContext(typeof HTMLElement<"u"?S1({key:"css"}):null);Hh.Provider;var Gh=function(t){return Y.forwardRef(function(n,r){var i=Y.useContext(Hh);return t(n,i,r)})},Tu=L.createContext({}),N1=Gh(function(e,t){var n=e.styles,r=Ia([n],void 0,L.useContext(Tu)),i=L.useRef();return Uh(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),c=!1,d=document.querySelector('style[data-emotion="'+a+" "+r.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(c=!0,d.setAttribute("data-emotion",a),l.hydrate([d])),i.current=[l,c],function(){l.flush()}},[t]),Uh(function(){var a=i.current,l=a[0],c=a[1];if(c){a[1]=!1;return}if(r.next!==void 0&&Bh(t,r.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",r,l,!1)},[t,r.name]),null});function Iu(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Ia(t)}var ts=function(){var t=Iu.apply(void 0,arguments),n="animation-"+t.name;return{name:n,styles:"@keyframes "+n+"{"+t.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}},z1=qw,W1=function(t){return t!=="theme"},qh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?z1:W1},Vh=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},U1=!1,H1=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return Mh(n,r,i),F1(function(){return Bh(n,r,i)}),null},G1=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var c=Vh(t,n,r),d=c||qh(i),f=!d("as");return function(){var y=arguments,m=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{m.push(y[0][0]);for(var v=y.length,w=1;w<v;w++)m.push(y[w],y[0][w])}var x=Gh(function(_,k,C){var O=f&&_.as||i,P="",R=[],M=_;if(_.theme==null){M={};for(var D in _)M[D]=_[D];M.theme=L.useContext(Tu)}typeof _.className=="string"?P=A1(k.registered,R,_.className):_.className!=null&&(P=_.className+" ");var $=Ia(m.concat(R),k.registered,M);P+=k.key+"-"+$.name,l!==void 0&&(P+=" "+l);var z=f&&c===void 0?qh(O):d,V={};for(var E in _)f&&E==="as"||z(E)&&(V[E]=_[E]);return V.className=P,C&&(V.ref=C),L.createElement(L.Fragment,null,L.createElement(H1,{cache:k,serialized:$,isStringTag:typeof O=="string"}),L.createElement(O,V))});return x.displayName=a!==void 0?a:"Styled("+(typeof i=="string"?i:i.displayName||i.name||"Component")+")",x.defaultProps=t.defaultProps,x.__emotion_real=x,x.__emotion_base=i,x.__emotion_styles=m,x.__emotion_forwardProp=c,Object.defineProperty(x,"toString",{value:function(){return l===void 0&&U1?"NO_COMPONENT_SELECTOR":"."+l}}),x.withComponent=function(_,k){return e(_,ua({},n,k,{shouldForwardProp:Vh(x,k,!0)})).apply(void 0,m)},x}},q1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],ka=G1.bind();q1.forEach(function(e){ka[e]=ka(e)});var Kh={exports:{}},V1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",K1=V1,Y1=K1;function Yh(){}function Xh(){}Xh.resetWarningCache=Yh;var X1=function(){function e(r,i,a,l,c,d){if(d!==Y1){var f=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw f.name="Invariant Violation",f}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Xh,resetWarningCache:Yh};return n.PropTypes=n,n};Kh.exports=X1();var no=Kh.exports;function J1(e){return e==null||Object.keys(e).length===0}function Z1(e){const{styles:t,defaultTheme:n={}}=e,r=typeof t=="function"?i=>t(J1(i)?n:i):t;return b.jsx(N1,{styles:r})}/**
|
|
29
|
-
* @mui/styled-engine v6.1.
|
|
28
|
+
*/var Yt=typeof Symbol=="function"&&Symbol.for,Zc=Yt?Symbol.for("react.element"):60103,Qc=Yt?Symbol.for("react.portal"):60106,aa=Yt?Symbol.for("react.fragment"):60107,la=Yt?Symbol.for("react.strict_mode"):60108,ca=Yt?Symbol.for("react.profiler"):60114,ua=Yt?Symbol.for("react.provider"):60109,da=Yt?Symbol.for("react.context"):60110,eu=Yt?Symbol.for("react.async_mode"):60111,fa=Yt?Symbol.for("react.concurrent_mode"):60111,pa=Yt?Symbol.for("react.forward_ref"):60112,ha=Yt?Symbol.for("react.suspense"):60113,zw=Yt?Symbol.for("react.suspense_list"):60120,ga=Yt?Symbol.for("react.memo"):60115,ma=Yt?Symbol.for("react.lazy"):60116,Ww=Yt?Symbol.for("react.block"):60121,Uw=Yt?Symbol.for("react.fundamental"):60117,Hw=Yt?Symbol.for("react.responder"):60118,Gw=Yt?Symbol.for("react.scope"):60119;function kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Zc:switch(e=e.type,e){case eu:case fa:case aa:case ca:case la:case ha:return e;default:switch(e=e&&e.$$typeof,e){case da:case pa:case ma:case ga:case ua:return e;default:return t}}case Qc:return t}}}function lh(e){return kn(e)===fa}yt.AsyncMode=eu,yt.ConcurrentMode=fa,yt.ContextConsumer=da,yt.ContextProvider=ua,yt.Element=Zc,yt.ForwardRef=pa,yt.Fragment=aa,yt.Lazy=ma,yt.Memo=ga,yt.Portal=Qc,yt.Profiler=ca,yt.StrictMode=la,yt.Suspense=ha,yt.isAsyncMode=function(e){return lh(e)||kn(e)===eu},yt.isConcurrentMode=lh,yt.isContextConsumer=function(e){return kn(e)===da},yt.isContextProvider=function(e){return kn(e)===ua},yt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Zc},yt.isForwardRef=function(e){return kn(e)===pa},yt.isFragment=function(e){return kn(e)===aa},yt.isLazy=function(e){return kn(e)===ma},yt.isMemo=function(e){return kn(e)===ga},yt.isPortal=function(e){return kn(e)===Qc},yt.isProfiler=function(e){return kn(e)===ca},yt.isStrictMode=function(e){return kn(e)===la},yt.isSuspense=function(e){return kn(e)===ha},yt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===aa||e===fa||e===ca||e===la||e===ha||e===zw||typeof e=="object"&&e!==null&&(e.$$typeof===ma||e.$$typeof===ga||e.$$typeof===ua||e.$$typeof===da||e.$$typeof===pa||e.$$typeof===Uw||e.$$typeof===Hw||e.$$typeof===Gw||e.$$typeof===Ww)},yt.typeOf=kn,ah.exports=yt;var qw=ah.exports,ch=qw,Vw={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Yw={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},uh={};uh[ch.ForwardRef]=Vw,uh[ch.Memo]=Yw;var Xw=!0;function dh(e,t,n){var o="";return n.split(" ").forEach(function(s){e[s]!==void 0?t.push(e[s]+";"):s&&(o+=s+" ")}),o}var tu=function(t,n,o){var s=t.key+"-"+n.name;(o===!1||Xw===!1)&&t.registered[s]===void 0&&(t.registered[s]=n.styles)},nu=function(t,n,o){tu(t,n,o);var s=t.key+"-"+n.name;if(t.inserted[n.name]===void 0){var a=n;do t.insert(n===a?"."+s:"",a,t.sheet,!0),a=a.next;while(a!==void 0)}};function Kw(e){for(var t=0,n,o=0,s=e.length;s>=4;++o,s-=4)n=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(s){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var Jw={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},Zw=!1,Qw=/[A-Z]|^ms/g,e1=/_EMO_([^_]+?)_([^]*?)_EMO_/g,fh=function(t){return t.charCodeAt(1)===45},ph=function(t){return t!=null&&typeof t!="boolean"},ru=oh(function(e){return fh(e)?e:e.replace(Qw,"-$&").toLowerCase()}),hh=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(e1,function(o,s,a){return yr={name:s,styles:a,next:yr},s})}return Jw[t]!==1&&!fh(t)&&typeof n=="number"&&n!==0?n+"px":n},t1="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function Vi(e,t,n){if(n==null)return"";var o=n;if(o.__emotion_styles!==void 0)return o;switch(typeof n){case"boolean":return"";case"object":{var s=n;if(s.anim===1)return yr={name:s.name,styles:s.styles,next:yr},s.name;var a=n;if(a.styles!==void 0){var l=a.next;if(l!==void 0)for(;l!==void 0;)yr={name:l.name,styles:l.styles,next:yr},l=l.next;var u=a.styles+";";return u}return n1(e,t,n)}case"function":{if(e!==void 0){var d=yr,h=n(e);return yr=d,Vi(e,t,h)}break}}var y=n;if(t==null)return y;var m=t[y];return m!==void 0?m:y}function n1(e,t,n){var o="";if(Array.isArray(n))for(var s=0;s<n.length;s++)o+=Vi(e,t,n[s])+";";else for(var a in n){var l=n[a];if(typeof l!="object"){var u=l;t!=null&&t[u]!==void 0?o+=a+"{"+t[u]+"}":ph(u)&&(o+=ru(a)+":"+hh(a,u)+";")}else{if(a==="NO_COMPONENT_SELECTOR"&&Zw)throw new Error(t1);if(Array.isArray(l)&&typeof l[0]=="string"&&(t==null||t[l[0]]===void 0))for(var d=0;d<l.length;d++)ph(l[d])&&(o+=ru(a)+":"+hh(a,l[d])+";");else{var h=Vi(e,t,l);switch(a){case"animation":case"animationName":{o+=ru(a)+":"+h+";";break}default:o+=a+"{"+h+"}"}}}}return o}var gh=/label:\s*([^\s;{]+)\s*(;|$)/g,yr;function Yi(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var o=!0,s="";yr=void 0;var a=e[0];if(a==null||a.raw===void 0)o=!1,s+=Vi(n,t,a);else{var l=a;s+=l[0]}for(var u=1;u<e.length;u++)if(s+=Vi(n,t,e[u]),o){var d=a;s+=d[u]}gh.lastIndex=0;for(var h="",y;(y=gh.exec(s))!==null;)h+="-"+y[1];var m=Kw(s)+h;return{name:m,styles:s,next:yr}}var r1=function(t){return t()},mh=j.useInsertionEffect?j.useInsertionEffect:!1,yh=mh||r1,vh=mh||j.useLayoutEffect,o1=!1,bh=j.createContext(typeof HTMLElement<"u"?Fw({key:"css"}):null);bh.Provider;var ou=function(t){return X.forwardRef(function(n,o){var s=X.useContext(bh);return t(n,s,o)})},ya=j.createContext({}),iu={}.hasOwnProperty,su="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",i1=function(t,n){var o={};for(var s in n)iu.call(n,s)&&(o[s]=n[s]);return o[su]=t,o},s1=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return tu(n,o,s),yh(function(){return nu(n,o,s)}),null},a1=ou(function(e,t,n){var o=e.css;typeof o=="string"&&t.registered[o]!==void 0&&(o=t.registered[o]);var s=e[su],a=[o],l="";typeof e.className=="string"?l=dh(t.registered,a,e.className):e.className!=null&&(l=e.className+" ");var u=Yi(a,void 0,j.useContext(ya));l+=t.key+"-"+u.name;var d={};for(var h in e)iu.call(e,h)&&h!=="css"&&h!==su&&!o1&&(d[h]=e[h]);return d.className=l,n&&(d.ref=n),j.createElement(j.Fragment,null,j.createElement(s1,{cache:t,serialized:u,isStringTag:typeof s=="string"}),j.createElement(s,d))}),l1=a1,xh=function(t,n){var o=arguments;if(n==null||!iu.call(n,"css"))return j.createElement.apply(void 0,o);var s=o.length,a=new Array(s);a[0]=l1,a[1]=i1(t,n);for(var l=2;l<s;l++)a[l]=o[l];return j.createElement.apply(null,a)};(function(e){var t;t||(t=e.JSX||(e.JSX={}))})(xh||(xh={}));var c1=ou(function(e,t){var n=e.styles,o=Yi([n],void 0,j.useContext(ya)),s=j.useRef();return vh(function(){var a=t.key+"-global",l=new t.sheet.constructor({key:a,nonce:t.sheet.nonce,container:t.sheet.container,speedy:t.sheet.isSpeedy}),u=!1,d=document.querySelector('style[data-emotion="'+a+" "+o.name+'"]');return t.sheet.tags.length&&(l.before=t.sheet.tags[0]),d!==null&&(u=!0,d.setAttribute("data-emotion",a),l.hydrate([d])),s.current=[l,u],function(){l.flush()}},[t]),vh(function(){var a=s.current,l=a[0],u=a[1];if(u){a[1]=!1;return}if(o.next!==void 0&&nu(t,o.next,!0),l.tags.length){var d=l.tags[l.tags.length-1].nextElementSibling;l.before=d,l.flush()}t.insert("",o,l,!1)},[t,o.name]),null});function au(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Yi(t)}function Xi(){var e=au.apply(void 0,arguments),t="animation-"+e.name;return{name:t,styles:"@keyframes "+t+"{"+e.styles+"}",anim:1,toString:function(){return"_EMO_"+this.name+"_"+this.styles+"_EMO_"}}}var u1=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,d1=oh(function(e){return u1.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91}),f1=!1,p1=d1,h1=function(t){return t!=="theme"},wh=function(t){return typeof t=="string"&&t.charCodeAt(0)>96?p1:h1},Sh=function(t,n,o){var s;if(n){var a=n.shouldForwardProp;s=t.__emotion_forwardProp&&a?function(l){return t.__emotion_forwardProp(l)&&a(l)}:a}return typeof s!="function"&&o&&(s=t.__emotion_forwardProp),s},g1=function(t){var n=t.cache,o=t.serialized,s=t.isStringTag;return tu(n,o,s),yh(function(){return nu(n,o,s)}),null},m1=function e(t,n){var o=t.__emotion_real===t,s=o&&t.__emotion_base||t,a,l;n!==void 0&&(a=n.label,l=n.target);var u=Sh(t,n,o),d=u||wh(s),h=!d("as");return function(){var y=arguments,m=o&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&m.push("label:"+a+";"),y[0]==null||y[0].raw===void 0)m.push.apply(m,y);else{var b=y[0];m.push(b[0]);for(var w=y.length,S=1;S<w;S++)m.push(y[S],b[S])}var E=ou(function(P,C,O){var k=h&&P.as||s,R="",$=[],B=P;if(P.theme==null){B={};for(var M in P)B[M]=P[M];B.theme=j.useContext(ya)}typeof P.className=="string"?R=dh(C.registered,$,P.className):P.className!=null&&(R=P.className+" ");var z=Yi(m.concat($),C.registered,B);R+=C.key+"-"+z.name,l!==void 0&&(R+=" "+l);var V=h&&u===void 0?wh(k):d,_={};for(var G in P)h&&G==="as"||V(G)&&(_[G]=P[G]);return _.className=R,O&&(_.ref=O),j.createElement(j.Fragment,null,j.createElement(g1,{cache:C,serialized:z,isStringTag:typeof k=="string"}),j.createElement(k,_))});return E.displayName=a!==void 0?a:"Styled("+(typeof s=="string"?s:s.displayName||s.name||"Component")+")",E.defaultProps=t.defaultProps,E.__emotion_real=E,E.__emotion_base=s,E.__emotion_styles=m,E.__emotion_forwardProp=u,Object.defineProperty(E,"toString",{value:function(){return l===void 0&&f1?"NO_COMPONENT_SELECTOR":"."+l}}),E.withComponent=function(P,C){var O=e(P,Zs({},n,C,{shouldForwardProp:Sh(E,C,!0)}));return O.apply(void 0,m)},E}},y1=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],lu=m1.bind(null);y1.forEach(function(e){lu[e]=lu(e)});var Ch={exports:{}},v1="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",b1=v1,x1=b1;function _h(){}function Eh(){}Eh.resetWarningCache=_h;var w1=function(){function e(o,s,a,l,u,d){if(d!==x1){var h=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw h.name="Invariant Violation",h}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Eh,resetWarningCache:_h};return n.PropTypes=n,n};Ch.exports=w1();var Zr=Ch.exports;function S1(e){return e==null||Object.keys(e).length===0}function C1(e){const{styles:t,defaultTheme:n={}}=e,o=typeof t=="function"?s=>t(S1(s)?n:s):t;return v.jsx(c1,{styles:o})}/**
|
|
29
|
+
* @mui/styled-engine v6.1.10
|
|
30
30
|
*
|
|
31
31
|
* @license MIT
|
|
32
32
|
* This source code is licensed under the MIT license found in the
|
|
33
33
|
* LICENSE file in the root directory of this source tree.
|
|
34
|
-
*/function Jh(e,t){return ka(e,t)}function Q1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Zh=[];function Qh(e){return Zh[0]=e,Ia(Zh)}function Cr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function eg(e){if(!Cr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=eg(e[n])}),t}function cn(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Cr(e)&&Cr(t)&&Object.keys(t).forEach(i=>{Cr(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Cr(e[i])?r[i]=cn(e[i],t[i],n):n.clone?r[i]=Cr(t[i])?eg(t[i]):t[i]:r[i]=t[i]}),r}const eS=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function tS(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=eS(t),l=Object.keys(a);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function f(v,w){const x=l.indexOf(w);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:w)-r/100}${n})`}function y(v){return l.indexOf(v)+1<l.length?f(v,l[l.indexOf(v)+1]):c(v)}function m(v){const w=l.indexOf(v);return w===0?c(l[1]):w===l.length-1?d(l[w]):f(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:d,between:f,only:y,not:m,unit:n,...i}}function nS(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((c=i.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function rS(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function oS(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function iS(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...c)=>t(e.breakpoints.up(...c),l),a.down=(...c)=>t(e.breakpoints.down(...c),l),a.between=(...c)=>t(e.breakpoints.between(...c),l),a.only=(...c)=>t(e.breakpoints.only(...c),l),a.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const sS={borderRadius:4};function ns(e,t){return t?cn(e,t,{clone:!1}):e}const Oa={xs:0,sm:600,md:900,lg:1200,xl:1536},tg={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Oa[e]}px)`},aS={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Oa[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Fr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||tg;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||tg;return Object.keys(t).reduce((l,c)=>{if(rS(a.keys,c)){const d=oS(r.containerQueries?r:aS,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(a.values||Oa).includes(c)){const d=a.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function lS(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function cS(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function je(e){if(typeof e!="string")throw new Error(Lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Aa(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function $a(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=Aa(e,n)||r,t&&(i=t(i,r,e)),i}function Wt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=Aa(d,r)||{};return Fr(l,c,m=>{let v=$a(f,i,m);return m===v&&typeof m=="string"&&(v=$a(f,i,`${t}${m==="default"?"":je(m)}`,m)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[t],a}function uS(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const dS={m:"margin",p:"padding"},fS={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},ng={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pS=uS(e=>{if(e.length>2)if(ng[e])e=ng[e];else return[e];const[t,n]=e.split(""),r=dS[t],i=fS[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),ku=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Ou=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...ku,...Ou];function rs(e,t,n,r){const i=Aa(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=i[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof i=="function"?i:()=>{}}function Au(e){return rs(e,"spacing",8)}function os(e,t){return typeof t=="string"||t==null?t:e(t)}function hS(e,t){return n=>e.reduce((r,i)=>(r[i]=os(t,n),r),{})}function gS(e,t,n,r){if(!t.includes(n))return null;const i=pS(n),a=hS(i,r),l=e[n];return Fr(e,l,a)}function rg(e,t){const n=Au(e.theme);return Object.keys(e).map(r=>gS(e,t,r,n)).reduce(ns,{})}function Mt(e){return rg(e,ku)}Mt.propTypes={},Mt.filterProps=ku;function Bt(e){return rg(e,Ou)}Bt.propTypes={},Bt.filterProps=Ou;function og(e=8,t=Au({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Ma(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?ns(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function qn(e){return typeof e!="number"?e:`${e}px solid`}function Vn(e,t){return Wt({prop:e,themeKey:"borders",transform:t})}const mS=Vn("border",qn),yS=Vn("borderTop",qn),vS=Vn("borderRight",qn),bS=Vn("borderBottom",qn),xS=Vn("borderLeft",qn),wS=Vn("borderColor"),SS=Vn("borderTopColor"),CS=Vn("borderRightColor"),_S=Vn("borderBottomColor"),ES=Vn("borderLeftColor"),RS=Vn("outline",qn),PS=Vn("outlineColor"),Ba=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=rs(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:os(t,r)});return Fr(e,e.borderRadius,n)}return null};Ba.propTypes={},Ba.filterProps=["borderRadius"],Ma(mS,yS,vS,bS,xS,wS,SS,CS,_S,ES,Ba,RS,PS);const Da=e=>{if(e.gap!==void 0&&e.gap!==null){const t=rs(e.theme,"spacing",8),n=r=>({gap:os(t,r)});return Fr(e,e.gap,n)}return null};Da.propTypes={},Da.filterProps=["gap"];const ja=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=rs(e.theme,"spacing",8),n=r=>({columnGap:os(t,r)});return Fr(e,e.columnGap,n)}return null};ja.propTypes={},ja.filterProps=["columnGap"];const La=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=rs(e.theme,"spacing",8),n=r=>({rowGap:os(t,r)});return Fr(e,e.rowGap,n)}return null};La.propTypes={},La.filterProps=["rowGap"];const TS=Wt({prop:"gridColumn"}),IS=Wt({prop:"gridRow"}),kS=Wt({prop:"gridAutoFlow"}),OS=Wt({prop:"gridAutoColumns"}),AS=Wt({prop:"gridAutoRows"}),$S=Wt({prop:"gridTemplateColumns"}),MS=Wt({prop:"gridTemplateRows"}),BS=Wt({prop:"gridTemplateAreas"}),DS=Wt({prop:"gridArea"});Ma(Da,ja,La,TS,IS,kS,OS,AS,$S,MS,BS,DS);function Qo(e,t){return t==="grey"?t:e}const jS=Wt({prop:"color",themeKey:"palette",transform:Qo}),LS=Wt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Qo}),FS=Wt({prop:"backgroundColor",themeKey:"palette",transform:Qo});Ma(jS,LS,FS);function $n(e){return e<=1&&e!==0?`${e*100}%`:e}const NS=Wt({prop:"width",transform:$n}),$u=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,l,c,d;const r=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||Oa[n];return r?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:$n(n)}};return Fr(e,e.maxWidth,t)}return null};$u.filterProps=["maxWidth"];const zS=Wt({prop:"minWidth",transform:$n}),WS=Wt({prop:"height",transform:$n}),US=Wt({prop:"maxHeight",transform:$n}),HS=Wt({prop:"minHeight",transform:$n});Wt({prop:"size",cssProperty:"width",transform:$n}),Wt({prop:"size",cssProperty:"height",transform:$n});const GS=Wt({prop:"boxSizing"});Ma(NS,$u,zS,WS,US,HS,GS);const is={border:{themeKey:"borders",transform:qn},borderTop:{themeKey:"borders",transform:qn},borderRight:{themeKey:"borders",transform:qn},borderBottom:{themeKey:"borders",transform:qn},borderLeft:{themeKey:"borders",transform:qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Ba},color:{themeKey:"palette",transform:Qo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Qo},backgroundColor:{themeKey:"palette",transform:Qo},p:{style:Bt},pt:{style:Bt},pr:{style:Bt},pb:{style:Bt},pl:{style:Bt},px:{style:Bt},py:{style:Bt},padding:{style:Bt},paddingTop:{style:Bt},paddingRight:{style:Bt},paddingBottom:{style:Bt},paddingLeft:{style:Bt},paddingX:{style:Bt},paddingY:{style:Bt},paddingInline:{style:Bt},paddingInlineStart:{style:Bt},paddingInlineEnd:{style:Bt},paddingBlock:{style:Bt},paddingBlockStart:{style:Bt},paddingBlockEnd:{style:Bt},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Da},rowGap:{style:La},columnGap:{style:ja},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:$n},maxWidth:{style:$u},minWidth:{transform:$n},height:{transform:$n},maxHeight:{transform:$n},minHeight:{transform:$n},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 qS(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function VS(e,t){return typeof e=="function"?e(t):e}function KS(){function e(n,r,i,a){const l={[n]:r,theme:i},c=a[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:y,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const v=Aa(i,f)||{};return m?m(l):Fr(l,r,x=>{let _=$a(v,y,x);return x===_&&typeof x=="string"&&(_=$a(v,y,`${n}${x==="default"?"":je(x)}`,x)),d===!1?_:{[d]:_}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=i.unstable_sxConfig??is;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const f=lS(i.breakpoints),y=Object.keys(f);let m=f;return Object.keys(d).forEach(v=>{const w=VS(d[v],i);if(w!=null)if(typeof w=="object")if(a[v])m=ns(m,e(v,w,i,a));else{const x=Fr({theme:i},w,_=>({[v]:_}));qS(x,w)?m[v]=t({sx:w,theme:i}):m=ns(m,x)}else m=ns(m,e(v,w,i,a))}),nS(i,cS(y,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const Co=KS();Co.filterProps=["sx"];function YS(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function Mu(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=e,c=tS(n),d=og(i);let f=cn({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...sS,...a}},l);return f=iS(f),f.applyStyles=YS,f=t.reduce((y,m)=>cn(y,m),f),f.unstable_sxConfig={...is,...l==null?void 0:l.unstable_sxConfig},f.unstable_sx=function(m){return Co({sx:m,theme:this})},f}function XS(e){return Object.keys(e).length===0}function JS(e=null){const t=L.useContext(Tu);return!t||XS(t)?e:t}const ZS=Mu();function Fa(e=ZS){return JS(e)}function QS({styles:e,themeId:t,defaultTheme:n={}}){const r=Fa(n),i=typeof e=="function"?e(t&&r[t]||r):e;return b.jsx(Z1,{styles:i})}const eC=e=>{var r;const t={systemProps:{},otherProps:{}},n=((r=e==null?void 0:e.theme)==null?void 0:r.unstable_sxConfig)??is;return Object.keys(e).forEach(i=>{n[i]?t.systemProps[i]=e[i]:t.otherProps[i]=e[i]}),t};function ig(e){const{sx:t,...n}=e,{systemProps:r,otherProps:i}=eC(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...l)=>{const c=t(...l);return Cr(c)?{...r,...c}:r}:a={...r,...t},{...i,sx:a}}const sg=e=>e,ag=(()=>{let e=sg;return{configure(t){e=t},generate(t){return e(t)},reset(){e=sg}}})();function lg(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=lg(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Pe(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=lg(e))&&(r&&(r+=" "),r+=t);return r}const tC=Object.freeze(Object.defineProperty({__proto__:null,clsx:Pe,default:Pe},Symbol.toStringTag,{value:"Module"}));function nC(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:i}=e,a=Jh("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(Co);return L.forwardRef(function(d,f){const y=Fa(n),{className:m,component:v="div",...w}=ig(d);return b.jsx(a,{as:v,ref:f,className:Pe(m,i?i(r):r),theme:t&&y[t]||y,...w})})}const rC={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 ct(e,t,n="Mui"){const r=rC[t];return r?`${n}-${r}`:`${ag.generate(e)}-${t}`}function ot(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=ct(e,i,n)}),r}var xt={};/**
|
|
34
|
+
*/function Rh(e,t){return lu(e,t)}function _1(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ih=[];function kh(e){return Ih[0]=e,Yi(Ih)}function vr(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function Th(e){if(j.isValidElement(e)||!vr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Th(e[n])}),t}function sn(e,t,n={clone:!0}){const o=n.clone?{...e}:e;return vr(e)&&vr(t)&&Object.keys(t).forEach(s=>{j.isValidElement(t[s])?o[s]=t[s]:vr(t[s])&&Object.prototype.hasOwnProperty.call(e,s)&&vr(e[s])?o[s]=sn(e[s],t[s],n):n.clone?o[s]=vr(t[s])?Th(t[s]):t[s]:o[s]=t[s]}),o}const E1=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,o)=>n.val-o.val),t.reduce((n,o)=>({...n,[o.key]:o.val}),{})};function R1(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:o=5,...s}=e,a=E1(t),l=Object.keys(a);function u(b){return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n})`}function d(b){return`@media (max-width:${(typeof t[b]=="number"?t[b]:b)-o/100}${n})`}function h(b,w){const S=l.indexOf(w);return`@media (min-width:${typeof t[b]=="number"?t[b]:b}${n}) and (max-width:${(S!==-1&&typeof t[l[S]]=="number"?t[l[S]]:w)-o/100}${n})`}function y(b){return l.indexOf(b)+1<l.length?h(b,l[l.indexOf(b)+1]):u(b)}function m(b){const w=l.indexOf(b);return w===0?u(l[1]):w===l.length-1?d(l[w]):h(b,l[l.indexOf(b)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:u,down:d,between:h,only:y,not:m,unit:n,...s}}function I1(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(o=>o.startsWith("@container")).sort((o,s)=>{var l,u;const a=/min-width:\s*([0-9.]+)/;return+(((l=o.match(a))==null?void 0:l[1])||0)-+(((u=s.match(a))==null?void 0:u[1])||0)});return n.length?n.reduce((o,s)=>{const a=t[s];return delete o[s],o[s]=a,o},{...t}):t}function k1(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function T1(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,o,s]=n,a=Number.isNaN(+o)?o||0:+o;return e.containerQueries(s).up(a)}function P1(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...u)=>t(e.breakpoints.up(...u),l),a.down=(...u)=>t(e.breakpoints.down(...u),l),a.between=(...u)=>t(e.breakpoints.between(...u),l),a.only=(...u)=>t(e.breakpoints.only(...u),l),a.not=(...u)=>{const d=t(e.breakpoints.not(...u),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const o={},s=a=>(n(o,a),o);return n(s),{...e,containerQueries:s}}const O1={borderRadius:4};function Ki(e,t){return t?sn(e,t,{clone:!1}):e}const va={xs:0,sm:600,md:900,lg:1200,xl:1536},Ph={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${va[e]}px)`},A1={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:va[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Dr(e,t,n){const o=e.theme||{};if(Array.isArray(t)){const a=o.breakpoints||Ph;return t.reduce((l,u,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=o.breakpoints||Ph;return Object.keys(t).reduce((l,u)=>{if(k1(a.keys,u)){const d=T1(o.containerQueries?o:A1,u);d&&(l[d]=n(t[u],u))}else if(Object.keys(a.values||va).includes(u)){const d=a.up(u);l[d]=n(t[u],u)}else{const d=u;l[d]=t[d]}return l},{})}return n(t)}function M1(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((o,s)=>{const a=e.up(s);return o[a]={},o},{}))||{}}function $1(e,t){return e.reduce((n,o)=>{const s=n[o];return(!s||Object.keys(s).length===0)&&delete n[o],n},t)}function je(e){if(typeof e!="string")throw new Error($r(7));return e.charAt(0).toUpperCase()+e.slice(1)}function ba(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const o=`vars.${t}`.split(".").reduce((s,a)=>s&&s[a]?s[a]:null,e);if(o!=null)return o}return t.split(".").reduce((o,s)=>o&&o[s]!=null?o[s]:null,e)}function xa(e,t,n,o=n){let s;return typeof e=="function"?s=e(n):Array.isArray(e)?s=e[n]||o:s=ba(e,n)||o,t&&(s=t(s,o,e)),s}function jt(e){const{prop:t,cssProperty:n=e.prop,themeKey:o,transform:s}=e,a=l=>{if(l[t]==null)return null;const u=l[t],d=l.theme,h=ba(d,o)||{};return Dr(l,u,m=>{let b=xa(h,s,m);return m===b&&typeof m=="string"&&(b=xa(h,s,`${t}${m==="default"?"":je(m)}`,m)),n===!1?b:{[n]:b}})};return a.propTypes={},a.filterProps=[t],a}function D1(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const B1={m:"margin",p:"padding"},L1={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Oh={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},j1=D1(e=>{if(e.length>2)if(Oh[e])e=Oh[e];else return[e];const[t,n]=e.split(""),o=B1[t],s=L1[n]||"";return Array.isArray(s)?s.map(a=>o+a):[o+s]}),cu=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],uu=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...cu,...uu];function Ji(e,t,n,o){const s=ba(e,t,!0)??n;return typeof s=="number"||typeof s=="string"?a=>typeof a=="string"?a:typeof s=="string"?`calc(${a} * ${s})`:s*a:Array.isArray(s)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),u=s[l];return a>=0?u:typeof u=="number"?-u:`-${u}`}:typeof s=="function"?s:()=>{}}function du(e){return Ji(e,"spacing",8)}function Zi(e,t){return typeof t=="string"||t==null?t:e(t)}function N1(e,t){return n=>e.reduce((o,s)=>(o[s]=Zi(t,n),o),{})}function F1(e,t,n,o){if(!t.includes(n))return null;const s=j1(n),a=N1(s,o),l=e[n];return Dr(e,l,a)}function Ah(e,t){const n=du(e.theme);return Object.keys(e).map(o=>F1(e,t,o,n)).reduce(Ki,{})}function Mt(e){return Ah(e,cu)}Mt.propTypes={},Mt.filterProps=cu;function $t(e){return Ah(e,uu)}$t.propTypes={},$t.filterProps=uu;function Mh(e=8,t=du({spacing:e})){if(e.mui)return e;const n=(...o)=>(o.length===0?[1]:o).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function wa(...e){const t=e.reduce((o,s)=>(s.filterProps.forEach(a=>{o[a]=s}),o),{}),n=o=>Object.keys(o).reduce((s,a)=>t[a]?Ki(s,t[a](o)):s,{});return n.propTypes={},n.filterProps=e.reduce((o,s)=>o.concat(s.filterProps),[]),n}function zn(e){return typeof e!="number"?e:`${e}px solid`}function Wn(e,t){return jt({prop:e,themeKey:"borders",transform:t})}const z1=Wn("border",zn),W1=Wn("borderTop",zn),U1=Wn("borderRight",zn),H1=Wn("borderBottom",zn),G1=Wn("borderLeft",zn),q1=Wn("borderColor"),V1=Wn("borderTopColor"),Y1=Wn("borderRightColor"),X1=Wn("borderBottomColor"),K1=Wn("borderLeftColor"),J1=Wn("outline",zn),Z1=Wn("outlineColor"),Sa=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=Ji(e.theme,"shape.borderRadius",4),n=o=>({borderRadius:Zi(t,o)});return Dr(e,e.borderRadius,n)}return null};Sa.propTypes={},Sa.filterProps=["borderRadius"],wa(z1,W1,U1,H1,G1,q1,V1,Y1,X1,K1,Sa,J1,Z1);const Ca=e=>{if(e.gap!==void 0&&e.gap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({gap:Zi(t,o)});return Dr(e,e.gap,n)}return null};Ca.propTypes={},Ca.filterProps=["gap"];const _a=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({columnGap:Zi(t,o)});return Dr(e,e.columnGap,n)}return null};_a.propTypes={},_a.filterProps=["columnGap"];const Ea=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=Ji(e.theme,"spacing",8),n=o=>({rowGap:Zi(t,o)});return Dr(e,e.rowGap,n)}return null};Ea.propTypes={},Ea.filterProps=["rowGap"];const Q1=jt({prop:"gridColumn"}),eS=jt({prop:"gridRow"}),tS=jt({prop:"gridAutoFlow"}),nS=jt({prop:"gridAutoColumns"}),rS=jt({prop:"gridAutoRows"}),oS=jt({prop:"gridTemplateColumns"}),iS=jt({prop:"gridTemplateRows"}),sS=jt({prop:"gridTemplateAreas"}),aS=jt({prop:"gridArea"});wa(Ca,_a,Ea,Q1,eS,tS,nS,rS,oS,iS,sS,aS);function Vo(e,t){return t==="grey"?t:e}const lS=jt({prop:"color",themeKey:"palette",transform:Vo}),cS=jt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Vo}),uS=jt({prop:"backgroundColor",themeKey:"palette",transform:Vo});wa(lS,cS,uS);function Tn(e){return e<=1&&e!==0?`${e*100}%`:e}const dS=jt({prop:"width",transform:Tn}),fu=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var s,a,l,u,d;const o=((l=(a=(s=e.theme)==null?void 0:s.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||va[n];return o?((d=(u=e.theme)==null?void 0:u.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Tn(n)}};return Dr(e,e.maxWidth,t)}return null};fu.filterProps=["maxWidth"];const fS=jt({prop:"minWidth",transform:Tn}),pS=jt({prop:"height",transform:Tn}),hS=jt({prop:"maxHeight",transform:Tn}),gS=jt({prop:"minHeight",transform:Tn});jt({prop:"size",cssProperty:"width",transform:Tn}),jt({prop:"size",cssProperty:"height",transform:Tn});const mS=jt({prop:"boxSizing"});wa(dS,fu,fS,pS,hS,gS,mS);const Qi={border:{themeKey:"borders",transform:zn},borderTop:{themeKey:"borders",transform:zn},borderRight:{themeKey:"borders",transform:zn},borderBottom:{themeKey:"borders",transform:zn},borderLeft:{themeKey:"borders",transform:zn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:zn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Sa},color:{themeKey:"palette",transform:Vo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Vo},backgroundColor:{themeKey:"palette",transform:Vo},p:{style:$t},pt:{style:$t},pr:{style:$t},pb:{style:$t},pl:{style:$t},px:{style:$t},py:{style:$t},padding:{style:$t},paddingTop:{style:$t},paddingRight:{style:$t},paddingBottom:{style:$t},paddingLeft:{style:$t},paddingX:{style:$t},paddingY:{style:$t},paddingInline:{style:$t},paddingInlineStart:{style:$t},paddingInlineEnd:{style:$t},paddingBlock:{style:$t},paddingBlockStart:{style:$t},paddingBlockEnd:{style:$t},m:{style:Mt},mt:{style:Mt},mr:{style:Mt},mb:{style:Mt},ml:{style:Mt},mx:{style:Mt},my:{style:Mt},margin:{style:Mt},marginTop:{style:Mt},marginRight:{style:Mt},marginBottom:{style:Mt},marginLeft:{style:Mt},marginX:{style:Mt},marginY:{style:Mt},marginInline:{style:Mt},marginInlineStart:{style:Mt},marginInlineEnd:{style:Mt},marginBlock:{style:Mt},marginBlockStart:{style:Mt},marginBlockEnd:{style:Mt},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:Ca},rowGap:{style:Ea},columnGap:{style:_a},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Tn},maxWidth:{style:fu},minWidth:{transform:Tn},height:{transform:Tn},maxHeight:{transform:Tn},minHeight:{transform:Tn},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 yS(...e){const t=e.reduce((o,s)=>o.concat(Object.keys(s)),[]),n=new Set(t);return e.every(o=>n.size===Object.keys(o).length)}function vS(e,t){return typeof e=="function"?e(t):e}function bS(){function e(n,o,s,a){const l={[n]:o,theme:s},u=a[n];if(!u)return{[n]:o};const{cssProperty:d=n,themeKey:h,transform:y,style:m}=u;if(o==null)return null;if(h==="typography"&&o==="inherit")return{[n]:o};const b=ba(s,h)||{};return m?m(l):Dr(l,o,S=>{let E=xa(b,y,S);return S===E&&typeof S=="string"&&(E=xa(b,y,`${n}${S==="default"?"":je(S)}`,S)),d===!1?E:{[d]:E}})}function t(n){const{sx:o,theme:s={}}=n||{};if(!o)return null;const a=s.unstable_sxConfig??Qi;function l(u){let d=u;if(typeof u=="function")d=u(s);else if(typeof u!="object")return u;if(!d)return null;const h=M1(s.breakpoints),y=Object.keys(h);let m=h;return Object.keys(d).forEach(b=>{const w=vS(d[b],s);if(w!=null)if(typeof w=="object")if(a[b])m=Ki(m,e(b,w,s,a));else{const S=Dr({theme:s},w,E=>({[b]:E}));yS(S,w)?m[b]=t({sx:w,theme:s}):m=Ki(m,S)}else m=Ki(m,e(b,w,s,a))}),I1(s,$1(y,m))}return Array.isArray(o)?o.map(l):l(o)}return t}const vo=bS();vo.filterProps=["sx"];function xS(e,t){var o;const n=this;if(n.vars){if(!((o=n.colorSchemes)!=null&&o[e])||typeof n.getColorSchemeSelector!="function")return{};let s=n.getColorSchemeSelector(e);return s==="&"?t:((s.includes("data-")||s.includes("."))&&(s=`*:where(${s.replace(/\s*&$/,"")}) &`),{[s]:t})}return n.palette.mode===e?t:{}}function pu(e={},...t){const{breakpoints:n={},palette:o={},spacing:s,shape:a={},...l}=e,u=R1(n),d=Mh(s);let h=sn({breakpoints:u,direction:"ltr",components:{},palette:{mode:"light",...o},spacing:d,shape:{...O1,...a}},l);return h=P1(h),h.applyStyles=xS,h=t.reduce((y,m)=>sn(y,m),h),h.unstable_sxConfig={...Qi,...l==null?void 0:l.unstable_sxConfig},h.unstable_sx=function(m){return vo({sx:m,theme:this})},h}function wS(e){return Object.keys(e).length===0}function SS(e=null){const t=j.useContext(ya);return!t||wS(t)?e:t}const CS=pu();function hu(e=CS){return SS(e)}function _S({styles:e,themeId:t,defaultTheme:n={}}){const o=hu(n),s=typeof e=="function"?e(t&&o[t]||o):e;return v.jsx(C1,{styles:s})}const ES=e=>{var o;const t={systemProps:{},otherProps:{}},n=((o=e==null?void 0:e.theme)==null?void 0:o.unstable_sxConfig)??Qi;return Object.keys(e).forEach(s=>{n[s]?t.systemProps[s]=e[s]:t.otherProps[s]=e[s]}),t};function $h(e){const{sx:t,...n}=e,{systemProps:o,otherProps:s}=ES(n);let a;return Array.isArray(t)?a=[o,...t]:typeof t=="function"?a=(...l)=>{const u=t(...l);return vr(u)?{...o,...u}:o}:a={...o,...t},{...s,sx:a}}const Dh=e=>e,Bh=(()=>{let e=Dh;return{configure(t){e=t},generate(t){return e(t)},reset(){e=Dh}}})();function Lh(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(n=Lh(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Te(){for(var e,t,n=0,o="",s=arguments.length;n<s;n++)(e=arguments[n])&&(t=Lh(e))&&(o&&(o+=" "),o+=t);return o}const RS=Object.freeze(Object.defineProperty({__proto__:null,clsx:Te,default:Te},Symbol.toStringTag,{value:"Module"}));function IS(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:s}=e,a=Rh("div",{shouldForwardProp:u=>u!=="theme"&&u!=="sx"&&u!=="as"})(vo);return j.forwardRef(function(d,h){const y=hu(n),{className:m,component:b="div",...w}=$h(d);return v.jsx(a,{as:b,ref:h,className:Te(m,s?s(o):o),theme:t&&y[t]||y,...w})})}const kS={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 lt(e,t,n="Mui"){const o=kS[t];return o?`${n}-${o}`:`${Bh.generate(e)}-${t}`}function it(e,t,n="Mui"){const o={};return t.forEach(s=>{o[s]=lt(e,s,n)}),o}function jh(e){const{variants:t,...n}=e,o={variants:t,style:kh(n),isProcessed:!0};return o.style===n||t&&t.forEach(s=>{typeof s.style!="function"&&(s.style=kh(s.style))}),o}const TS=pu();function gu(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function PS(e){return e?(t,n)=>n[e]:null}function OS(e,t,n){e.theme=MS(e.theme)?n:e.theme[t]||e.theme}function Ra(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(o=>Ra(e,o));if(Array.isArray(n==null?void 0:n.variants)){let o;if(n.isProcessed)o=n.style;else{const{variants:s,...a}=n;o=a}return Nh(e,n.variants,[o])}return n!=null&&n.isProcessed?n.style:n}function Nh(e,t,n=[]){var s;let o;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(o))continue}else for(const u in l.props)if(e[u]!==l.props[u]&&((s=e.ownerState)==null?void 0:s[u])!==l.props[u])continue e;typeof l.style=="function"?(o??(o={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(o))):n.push(l.style)}return n}function Fh(e={}){const{themeId:t,defaultTheme:n=TS,rootShouldForwardProp:o=gu,slotShouldForwardProp:s=gu}=e;function a(u){OS(u,t,n)}return(u,d={})=>{_1(u,$=>$.filter(B=>B!==vo));const{name:h,slot:y,skipVariantsResolver:m,skipSx:b,overridesResolver:w=PS(DS(y)),...S}=d,E=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,P=b||!1;let C=gu;y==="Root"||y==="root"?C=o:y?C=s:$S(u)&&(C=void 0);const O=Rh(u,{shouldForwardProp:C,label:AS(),...S}),k=$=>{if(typeof $=="function"&&$.__emotion_real!==$)return function(M){return Ra(M,$)};if(vr($)){const B=jh($);return B.variants?function(z){return Ra(z,B)}:B.style}return $},R=(...$)=>{const B=[],M=$.map(k),z=[];if(B.push(a),h&&w&&z.push(function(re){var le,pe;const Q=(pe=(le=re.theme.components)==null?void 0:le[h])==null?void 0:pe.styleOverrides;if(!Q)return null;const ee={};for(const he in Q)ee[he]=Ra(re,Q[he]);return w(re,ee)}),h&&!E&&z.push(function(re){var ee,le;const H=re.theme,Q=(le=(ee=H==null?void 0:H.components)==null?void 0:ee[h])==null?void 0:le.variants;return Q?Nh(re,Q):null}),P||z.push(vo),Array.isArray(M[0])){const G=M.shift(),re=new Array(B.length).fill(""),H=new Array(z.length).fill("");let Q;Q=[...re,...G,...H],Q.raw=[...re,...G.raw,...H],B.unshift(Q)}const V=[...B,...M,...z],_=O(...V);return u.muiName&&(_.muiName=u.muiName),_};return O.withConfig&&(R.withConfig=O.withConfig),R}}function AS(e,t){return void 0}function MS(e){for(const t in e)return!1;return!0}function $S(e){return typeof e=="string"&&e.charCodeAt(0)>96}function DS(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const BS=Fh();function Ia(e,t){const n={...t};for(const o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const s=o;if(s==="components"||s==="slots")n[s]={...e[s],...n[s]};else if(s==="componentsProps"||s==="slotProps"){const a=e[s],l=t[s];if(!l)n[s]=a||{};else if(!a)n[s]=l;else{n[s]={...l};for(const u in a)if(Object.prototype.hasOwnProperty.call(a,u)){const d=u;n[s][d]=Ia(a[d],l[d])}}}else n[s]===void 0&&(n[s]=e[s])}return n}const br=typeof window<"u"?j.useLayoutEffect:j.useEffect;function LS(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function mu(e,t=0,n=1){return LS(e,t,n)}function jS(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(o=>o+o)),n?`rgb${n.length===4?"a":""}(${n.map((o,s)=>s<3?parseInt(o,16):Math.round(parseInt(o,16)/255*1e3)/1e3).join(", ")})`:""}function Qr(e){if(e.type)return e;if(e.charAt(0)==="#")return Qr(jS(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error($r(9,e));let o=e.substring(t+1,e.length-1),s;if(n==="color"){if(o=o.split(" "),s=o.shift(),o.length===4&&o[3].charAt(0)==="/"&&(o[3]=o[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(s))throw new Error($r(10,s))}else o=o.split(",");return o=o.map(a=>parseFloat(a)),{type:n,values:o,colorSpace:s}}const NS=e=>{const t=Qr(e);return t.values.slice(0,3).map((n,o)=>t.type.includes("hsl")&&o!==0?`${n}%`:n).join(" ")},es=(e,t)=>{try{return NS(e)}catch{return e}};function ka(e){const{type:t,colorSpace:n}=e;let{values:o}=e;return t.includes("rgb")?o=o.map((s,a)=>a<3?parseInt(s,10):s):t.includes("hsl")&&(o[1]=`${o[1]}%`,o[2]=`${o[2]}%`),t.includes("color")?o=`${n} ${o.join(" ")}`:o=`${o.join(", ")}`,`${t}(${o})`}function zh(e){e=Qr(e);const{values:t}=e,n=t[0],o=t[1]/100,s=t[2]/100,a=o*Math.min(s,1-s),l=(h,y=(h+n/30)%12)=>s-a*Math.max(Math.min(y-3,9-y,1),-1);let u="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(u+="a",d.push(t[3])),ka({type:u,values:d})}function yu(e){e=Qr(e);let t=e.type==="hsl"||e.type==="hsla"?Qr(zh(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function FS(e,t){const n=yu(e),o=yu(t);return(Math.max(n,o)+.05)/(Math.min(n,o)+.05)}function Gt(e,t){return e=Qr(e),t=mu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ka(e)}function Ta(e,t,n){try{return Gt(e,t)}catch{return e}}function vu(e,t){if(e=Qr(e),t=mu(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ka(e)}function wt(e,t,n){try{return vu(e,t)}catch{return e}}function bu(e,t){if(e=Qr(e),t=mu(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ka(e)}function St(e,t,n){try{return bu(e,t)}catch{return e}}function zS(e,t=.15){return yu(e)>.5?vu(e,t):bu(e,t)}function Pa(e,t,n){try{return zS(e,t)}catch{return e}}function Wh(...e){return e.reduce((t,n)=>n==null?t:function(...s){t.apply(this,s),n.apply(this,s)},()=>{})}function Oa(e,t=166){let n;function o(...s){const a=()=>{e.apply(this,s)};clearTimeout(n),n=setTimeout(a,t)}return o.clear=()=>{clearTimeout(n)},o}function xu(e,t){var n,o,s;return j.isValidElement(e)&&t.indexOf(e.type.muiName??((s=(o=(n=e.type)==null?void 0:n._payload)==null?void 0:o.value)==null?void 0:s.muiName))!==-1}function Un(e){return e&&e.ownerDocument||document}function or(e){return Un(e).defaultView||window}function wu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let Uh=0;function WS(e){const[t,n]=j.useState(e),o=e||t;return j.useEffect(()=>{t==null&&(Uh+=1,n(`mui-${Uh}`))},[t]),o}const Hh={...j}.useId;function Gh(e){if(Hh!==void 0){const t=Hh();return e??t}return WS(e)}function qh({controlled:e,default:t,name:n,state:o="value"}){const{current:s}=j.useRef(e!==void 0),[a,l]=j.useState(t),u=s?e:a,d=j.useCallback(h=>{s||l(h)},[]);return[u,d]}function Br(e){const t=j.useRef(e);return br(()=>{t.current=e}),j.useRef((...n)=>(0,t.current)(...n)).current}function Xt(...e){return j.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{wu(n,t)})},e)}const Vh={};function Yh(e,t){const n=j.useRef(Vh);return n.current===Vh&&(n.current=e(t)),n}const US=[];function HS(e){j.useEffect(e,US)}class Su{constructor(){Ar(this,"currentId",null);Ar(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});Ar(this,"disposeEffect",()=>this.clear)}static create(){return new Su}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Xh(){const e=Yh(Su.create).current;return HS(e.disposeEffect),e}function Kh(e){try{return e.matches(":focus-visible")}catch{}return!1}function Jh(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ft(e,t,n=void 0){const o={};for(const s in e){const a=e[s];let l="",u=!0;for(let d=0;d<a.length;d+=1){const h=a[d];h&&(l+=(u===!0?"":" ")+t(h),u=!1,n&&n[h]&&(l+=" "+n[h]))}o[s]=l}return o}function GS(e){return typeof e=="string"}function Zh(e,t,n){return e===void 0||GS(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function Qh(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(o=>o.match(/^on[A-Z]/)&&typeof e[o]=="function"&&!t.includes(o)).forEach(o=>{n[o]=e[o]}),n}function eg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function tg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:o,externalForwardedProps:s,className:a}=e;if(!t){const w=Te(n==null?void 0:n.className,a,s==null?void 0:s.className,o==null?void 0:o.className),S={...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},E={...n,...s,...o};return w.length>0&&(E.className=w),Object.keys(S).length>0&&(E.style=S),{props:E,internalRef:void 0}}const l=Qh({...s,...o}),u=eg(o),d=eg(s),h=t(l),y=Te(h==null?void 0:h.className,n==null?void 0:n.className,a,s==null?void 0:s.className,o==null?void 0:o.className),m={...h==null?void 0:h.style,...n==null?void 0:n.style,...s==null?void 0:s.style,...o==null?void 0:o.style},b={...h,...n,...d,...u};return y.length>0&&(b.className=y),Object.keys(m).length>0&&(b.style=m),{props:b,internalRef:h.ref}}function ng(e,t,n){return typeof e=="function"?e(t,n):e}function Yo(e){var m;const{elementType:t,externalSlotProps:n,ownerState:o,skipResolvingSlotProps:s=!1,...a}=e,l=s?{}:ng(n,o),{props:u,internalRef:d}=tg({...a,externalSlotProps:l}),h=Xt(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return Zh(t,{...u,ref:h},o)}function ts(e){var t;return parseInt(j.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const qS=j.createContext(),Cu=()=>j.useContext(qS)??!1,VS=j.createContext(void 0);function YS(e){const{theme:t,name:n,props:o}=e;if(!t||!t.components||!t.components[n])return o;const s=t.components[n];return s.defaultProps?Ia(s.defaultProps,o):!s.styleOverrides&&!s.variants?Ia(s,o):o}function XS({props:e,name:t}){const n=j.useContext(VS);return YS({props:e,name:t,theme:{components:n}})}const rg={theme:void 0};function KS(e){let t,n;return function(s){let a=t;return(a===void 0||s.theme!==n)&&(rg.theme=s.theme,a=jh(e(rg)),t=a,n=s.theme),a}}function JS(e=""){function t(...o){if(!o.length)return"";const s=o[0];return typeof s=="string"&&!s.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}-`:""}${s}${t(...o.slice(1))})`:`, ${s}`}return(o,...s)=>`var(--${e?`${e}-`:""}${o}${t(...s)})`}const og=(e,t,n,o=[])=>{let s=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(s)?s[Number(a)]=n:s&&typeof s=="object"&&(s[a]=n):s&&typeof s=="object"&&(s[a]||(s[a]=o.includes(a)?[]:{}),s=s[a])})},ZS=(e,t,n)=>{function o(s,a=[],l=[]){Object.entries(s).forEach(([u,d])=>{(!n||n&&!n([...a,u]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?o(d,[...a,u],Array.isArray(d)?[...l,u]:l):t([...a,u],d,l))})}o(e)},QS=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(o=>e.includes(o))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function _u(e,t){const{prefix:n,shouldSkipGeneratingVar:o}=t||{},s={},a={},l={};return ZS(e,(u,d,h)=>{if((typeof d=="string"||typeof d=="number")&&(!o||!o(u,d))){const y=`--${n?`${n}-`:""}${u.join("-")}`,m=QS(u,d);Object.assign(s,{[y]:m}),og(a,u,`var(${y})`,h),og(l,u,`var(${y}, ${m})`,h)}},u=>u[0]==="vars"),{css:s,vars:a,varsWithDefaults:l}}function eC(e,t={}){const{getSelector:n=P,disableCssColorScheme:o,colorSchemeSelector:s}=t,{colorSchemes:a={},components:l,defaultColorScheme:u="light",...d}=e,{vars:h,css:y,varsWithDefaults:m}=_u(d,t);let b=m;const w={},{[u]:S,...E}=a;if(Object.entries(E||{}).forEach(([k,R])=>{const{vars:$,css:B,varsWithDefaults:M}=_u(R,t);b=sn(b,M),w[k]={css:B,vars:$}}),S){const{css:k,vars:R,varsWithDefaults:$}=_u(S,t);b=sn(b,$),w[u]={css:k,vars:R}}function P(k,R){var B,M;let $=s;if(s==="class"&&($=".%s"),s==="data"&&($="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&($=`[${s}="%s"]`),k){if($==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${((M=(B=a[k])==null?void 0:B.palette)==null?void 0:M.mode)||k})`]:{":root":R}};if($)return e.defaultColorScheme===k?`:root, ${$.replace("%s",String(k))}`:$.replace("%s",String(k))}return":root"}return{vars:b,generateThemeVars:()=>{let k={...h};return Object.entries(w).forEach(([,{vars:R}])=>{k=sn(k,R)}),k},generateStyleSheets:()=>{var z,V;const k=[],R=e.defaultColorScheme||"light";function $(_,G){Object.keys(G).length&&k.push(typeof _=="string"?{[_]:{...G}}:_)}$(n(void 0,{...y}),y);const{[R]:B,...M}=w;if(B){const{css:_}=B,G=(V=(z=a[R])==null?void 0:z.palette)==null?void 0:V.mode,re=!o&&G?{colorScheme:G,..._}:{..._};$(n(R,{...re}),re)}return Object.entries(M).forEach(([_,{css:G}])=>{var Q,ee;const re=(ee=(Q=a[_])==null?void 0:Q.palette)==null?void 0:ee.mode,H=!o&&re?{colorScheme:re,...G}:{...G};$(n(_,{...H}),H)}),k}}}function tC(e){return function(n){return e==="media"?`@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)} &`:"&"}}const Aa="$$material",ns={black:"#000",white:"#fff"},nC={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"},Xo={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},Ko={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},rs={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},Jo={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},Zo={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},Qo={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"};function ig(){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:ns.white,default:ns.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 rC=ig();function sg(){return{text:{primary:ns.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:ns.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 ag=sg();function lg(e,t,n,o){const s=o.light||o,a=o.dark||o*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bu(e.main,s):t==="dark"&&(e.dark=vu(e.main,a)))}function oC(e="light"){return e==="dark"?{main:Jo[200],light:Jo[50],dark:Jo[400]}:{main:Jo[700],light:Jo[400],dark:Jo[800]}}function iC(e="light"){return e==="dark"?{main:Xo[200],light:Xo[50],dark:Xo[400]}:{main:Xo[500],light:Xo[300],dark:Xo[700]}}function sC(e="light"){return e==="dark"?{main:Ko[500],light:Ko[300],dark:Ko[700]}:{main:Ko[700],light:Ko[400],dark:Ko[800]}}function aC(e="light"){return e==="dark"?{main:Zo[400],light:Zo[300],dark:Zo[700]}:{main:Zo[700],light:Zo[500],dark:Zo[900]}}function lC(e="light"){return e==="dark"?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:Qo[800],light:Qo[500],dark:Qo[900]}}function cC(e="light"){return e==="dark"?{main:rs[400],light:rs[300],dark:rs[700]}:{main:"#ed6c02",light:rs[500],dark:rs[900]}}function Eu(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:o=.2,...s}=e,a=e.primary||oC(t),l=e.secondary||iC(t),u=e.error||sC(t),d=e.info||aC(t),h=e.success||lC(t),y=e.warning||cC(t);function m(E){return FS(E,ag.text.primary)>=n?ag.text.primary:rC.text.primary}const b=({color:E,name:P,mainShade:C=500,lightShade:O=300,darkShade:k=700})=>{if(E={...E},!E.main&&E[C]&&(E.main=E[C]),!E.hasOwnProperty("main"))throw new Error($r(11,P?` (${P})`:"",C));if(typeof E.main!="string")throw new Error($r(12,P?` (${P})`:"",JSON.stringify(E.main)));return lg(E,"light",O,o),lg(E,"dark",k,o),E.contrastText||(E.contrastText=m(E.main)),E};let w;return t==="light"?w=ig():t==="dark"&&(w=sg()),sn({common:{...ns},mode:t,primary:b({color:a,name:"primary"}),secondary:b({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:b({color:u,name:"error"}),warning:b({color:y,name:"warning"}),info:b({color:d,name:"info"}),success:b({color:h,name:"success"}),grey:nC,contrastThreshold:n,getContrastText:m,augmentColor:b,tonalOffset:o,...w},s)}function uC(e){const t={};return Object.entries(e).forEach(o=>{const[s,a]=o;typeof a=="object"&&(t[s]=`${a.fontStyle?`${a.fontStyle} `:""}${a.fontVariant?`${a.fontVariant} `:""}${a.fontWeight?`${a.fontWeight} `:""}${a.fontStretch?`${a.fontStretch} `:""}${a.fontSize||""}${a.lineHeight?`/${a.lineHeight} `:""}${a.fontFamily||""}`)}),t}function dC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function fC(e){return Math.round(e*1e5)/1e5}const cg={textTransform:"uppercase"},ug='"Roboto", "Helvetica", "Arial", sans-serif';function pC(e,t){const{fontFamily:n=ug,fontSize:o=14,fontWeightLight:s=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:u=700,htmlFontSize:d=16,allVariants:h,pxToRem:y,...m}=typeof t=="function"?t(e):t,b=o/14,w=y||(P=>`${P/d*b}rem`),S=(P,C,O,k,R)=>({fontFamily:n,fontWeight:P,fontSize:w(C),lineHeight:O,...n===ug?{letterSpacing:`${fC(k/C)}em`}:{},...R,...h}),E={h1:S(s,96,1.167,-1.5),h2:S(s,60,1.2,-.5),h3:S(a,48,1.167,0),h4:S(a,34,1.235,.25),h5:S(a,24,1.334,0),h6:S(l,20,1.6,.15),subtitle1:S(a,16,1.75,.15),subtitle2:S(l,14,1.57,.1),body1:S(a,16,1.5,.15),body2:S(a,14,1.43,.15),button:S(l,14,1.75,.4,cg),caption:S(a,12,1.66,.4),overline:S(a,12,2.66,1,cg),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return sn({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:o,fontWeightLight:s,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:u,...E},m,{clone:!1})}const hC=.2,gC=.14,mC=.12;function kt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${hC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${gC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${mC})`].join(",")}const yC=["none",kt(0,2,1,-1,0,1,1,0,0,1,3,0),kt(0,3,1,-2,0,2,2,0,0,1,5,0),kt(0,3,3,-2,0,3,4,0,0,1,8,0),kt(0,2,4,-1,0,4,5,0,0,1,10,0),kt(0,3,5,-1,0,5,8,0,0,1,14,0),kt(0,3,5,-1,0,6,10,0,0,1,18,0),kt(0,4,5,-2,0,7,10,1,0,2,16,1),kt(0,5,5,-3,0,8,10,1,0,3,14,2),kt(0,5,6,-3,0,9,12,1,0,3,16,2),kt(0,6,6,-3,0,10,14,1,0,4,18,3),kt(0,6,7,-4,0,11,15,1,0,4,20,3),kt(0,7,8,-4,0,12,17,2,0,5,22,4),kt(0,7,8,-4,0,13,19,2,0,5,24,4),kt(0,7,9,-4,0,14,21,2,0,5,26,4),kt(0,8,9,-5,0,15,22,2,0,6,28,5),kt(0,8,10,-5,0,16,24,2,0,6,30,5),kt(0,8,11,-5,0,17,26,2,0,6,32,5),kt(0,9,11,-5,0,18,28,2,0,7,34,6),kt(0,9,12,-6,0,19,29,2,0,7,36,6),kt(0,10,13,-6,0,20,31,3,0,8,38,7),kt(0,10,13,-6,0,21,33,3,0,8,40,7),kt(0,10,14,-6,0,22,35,3,0,8,42,7),kt(0,11,14,-7,0,23,36,3,0,9,44,8),kt(0,11,15,-7,0,24,38,3,0,9,46,8)],vC={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)"},bC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function dg(e){return`${Math.round(e)}ms`}function xC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function wC(e){const t={...vC,...e.easing},n={...bC,...e.duration};return{getAutoHeightDuration:xC,create:(s=["all"],a={})=>{const{duration:l=n.standard,easing:u=t.easeInOut,delay:d=0,...h}=a;return(Array.isArray(s)?s:[s]).map(y=>`${y} ${typeof l=="string"?l:dg(l)} ${u} ${typeof d=="string"?d:dg(d)}`).join(",")},...e,easing:t,duration:n}}const SC={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function CC(e){return vr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function fg(e={}){const t={...e};function n(o){const s=Object.entries(o);for(let a=0;a<s.length;a++){const[l,u]=s[a];!CC(u)||l.startsWith("unstable_")?delete o[l]:vr(u)&&(o[l]={...u},n(o[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
35
|
+
|
|
36
|
+
const theme = ${JSON.stringify(t,null,2)};
|
|
37
|
+
|
|
38
|
+
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
39
|
+
theme.transitions = createTransitions(theme.transitions || {});
|
|
40
|
+
|
|
41
|
+
export default theme;`}function Ru(e={},...t){const{breakpoints:n,mixins:o={},spacing:s,palette:a={},transitions:l={},typography:u={},shape:d,...h}=e;if(e.vars)throw new Error($r(20));const y=Eu(a),m=pu(e);let b=sn(m,{mixins:dC(m.breakpoints,o),palette:y,shadows:yC.slice(),typography:pC(y,u),transitions:wC(l),zIndex:{...SC}});return b=sn(b,h),b=t.reduce((w,S)=>sn(w,S),b),b.unstable_sxConfig={...Qi,...h==null?void 0:h.unstable_sxConfig},b.unstable_sx=function(S){return vo({sx:S,theme:this})},b.toRuntimeSource=fg,b}function Iu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const _C=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Iu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function pg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function hg(e){return e==="dark"?_C:[]}function EC(e){const{palette:t={mode:"light"},opacity:n,overlays:o,...s}=e,a=Eu(t);return{palette:a,opacity:{...pg(a.mode),...n},overlays:o||hg(a.mode),...s}}function RC(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const IC=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],kC=e=>(t,n)=>{const o=e.rootSelector||":root",s=e.colorSchemeSelector;let a=s;if(s==="class"&&(a=".%s"),s==="data"&&(a="[data-%s]"),s!=null&&s.startsWith("data-")&&!s.includes("%s")&&(a=`[${s}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return IC(e.cssVarPrefix).forEach(u=>{l[u]=n[u],delete n[u]}),a==="media"?{[o]:n,"@media (prefers-color-scheme: dark)":{[o]:l}}:a?{[a.replace("%s",t)]:l,[`${o}, ${a.replace("%s",t)}`]:n}:{[o]:{...n,...l}}}if(a&&a!=="media")return`${o}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[o]:n}};if(a)return a.replace("%s",String(t))}return o};function TC(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function K(e,t,n){!e[t]&&n&&(e[t]=n)}function os(e){return typeof e!="string"||!e.startsWith("hsl")?e:zh(e)}function Lr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=es(os(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
42
|
+
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function PC(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const xr=e=>{try{return e()}catch{}},OC=(e="mui")=>JS(e);function ku(e,t,n,o){if(!t)return;t=t===!0?{}:t;const s=o==="dark"?"dark":"light";if(!n){e[o]=EC({...t,palette:{mode:s,...t==null?void 0:t.palette}});return}const{palette:a,...l}=Ru({...n,palette:{mode:s,...t==null?void 0:t.palette}});return e[o]={...t,palette:a,opacity:{...pg(s),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||hg(s)},l}function AC(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:o,disableCssColorScheme:s=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=RC,colorSchemeSelector:u=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...h}=e,y=Object.keys(n)[0],m=o||(n.light&&y!=="light"?"light":y),b=OC(a),{[m]:w,light:S,dark:E,...P}=n,C={...P};let O=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(O=!0),!O)throw new Error($r(21,m));const k=ku(C,O,h,m);S&&!C.light&&ku(C,S,void 0,"light"),E&&!C.dark&&ku(C,E,void 0,"dark");let R={defaultColorScheme:m,...k,cssVarPrefix:a,colorSchemeSelector:u,rootSelector:d,getCssVar:b,colorSchemes:C,font:{...uC(k.typography),...k.font},spacing:PC(h.spacing)};Object.keys(R.colorSchemes).forEach(V=>{const _=R.colorSchemes[V].palette,G=re=>{const H=re.split("-"),Q=H[1],ee=H[2];return b(re,_[Q][ee])};if(_.mode==="light"&&(K(_.common,"background","#fff"),K(_.common,"onBackground","#000")),_.mode==="dark"&&(K(_.common,"background","#000"),K(_.common,"onBackground","#fff")),TC(_,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),_.mode==="light"){K(_.Alert,"errorColor",wt(_.error.light,.6)),K(_.Alert,"infoColor",wt(_.info.light,.6)),K(_.Alert,"successColor",wt(_.success.light,.6)),K(_.Alert,"warningColor",wt(_.warning.light,.6)),K(_.Alert,"errorFilledBg",G("palette-error-main")),K(_.Alert,"infoFilledBg",G("palette-info-main")),K(_.Alert,"successFilledBg",G("palette-success-main")),K(_.Alert,"warningFilledBg",G("palette-warning-main")),K(_.Alert,"errorFilledColor",xr(()=>_.getContrastText(_.error.main))),K(_.Alert,"infoFilledColor",xr(()=>_.getContrastText(_.info.main))),K(_.Alert,"successFilledColor",xr(()=>_.getContrastText(_.success.main))),K(_.Alert,"warningFilledColor",xr(()=>_.getContrastText(_.warning.main))),K(_.Alert,"errorStandardBg",St(_.error.light,.9)),K(_.Alert,"infoStandardBg",St(_.info.light,.9)),K(_.Alert,"successStandardBg",St(_.success.light,.9)),K(_.Alert,"warningStandardBg",St(_.warning.light,.9)),K(_.Alert,"errorIconColor",G("palette-error-main")),K(_.Alert,"infoIconColor",G("palette-info-main")),K(_.Alert,"successIconColor",G("palette-success-main")),K(_.Alert,"warningIconColor",G("palette-warning-main")),K(_.AppBar,"defaultBg",G("palette-grey-100")),K(_.Avatar,"defaultBg",G("palette-grey-400")),K(_.Button,"inheritContainedBg",G("palette-grey-300")),K(_.Button,"inheritContainedHoverBg",G("palette-grey-A100")),K(_.Chip,"defaultBorder",G("palette-grey-400")),K(_.Chip,"defaultAvatarColor",G("palette-grey-700")),K(_.Chip,"defaultIconColor",G("palette-grey-700")),K(_.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),K(_.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),K(_.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),K(_.LinearProgress,"primaryBg",St(_.primary.main,.62)),K(_.LinearProgress,"secondaryBg",St(_.secondary.main,.62)),K(_.LinearProgress,"errorBg",St(_.error.main,.62)),K(_.LinearProgress,"infoBg",St(_.info.main,.62)),K(_.LinearProgress,"successBg",St(_.success.main,.62)),K(_.LinearProgress,"warningBg",St(_.warning.main,.62)),K(_.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),K(_.Slider,"primaryTrack",St(_.primary.main,.62)),K(_.Slider,"secondaryTrack",St(_.secondary.main,.62)),K(_.Slider,"errorTrack",St(_.error.main,.62)),K(_.Slider,"infoTrack",St(_.info.main,.62)),K(_.Slider,"successTrack",St(_.success.main,.62)),K(_.Slider,"warningTrack",St(_.warning.main,.62));const re=Pa(_.background.default,.8);K(_.SnackbarContent,"bg",re),K(_.SnackbarContent,"color",xr(()=>_.getContrastText(re))),K(_.SpeedDialAction,"fabHoverBg",Pa(_.background.paper,.15)),K(_.StepConnector,"border",G("palette-grey-400")),K(_.StepContent,"border",G("palette-grey-400")),K(_.Switch,"defaultColor",G("palette-common-white")),K(_.Switch,"defaultDisabledColor",G("palette-grey-100")),K(_.Switch,"primaryDisabledColor",St(_.primary.main,.62)),K(_.Switch,"secondaryDisabledColor",St(_.secondary.main,.62)),K(_.Switch,"errorDisabledColor",St(_.error.main,.62)),K(_.Switch,"infoDisabledColor",St(_.info.main,.62)),K(_.Switch,"successDisabledColor",St(_.success.main,.62)),K(_.Switch,"warningDisabledColor",St(_.warning.main,.62)),K(_.TableCell,"border",St(Ta(_.divider,1),.88)),K(_.Tooltip,"bg",Ta(_.grey[700],.92))}if(_.mode==="dark"){K(_.Alert,"errorColor",St(_.error.light,.6)),K(_.Alert,"infoColor",St(_.info.light,.6)),K(_.Alert,"successColor",St(_.success.light,.6)),K(_.Alert,"warningColor",St(_.warning.light,.6)),K(_.Alert,"errorFilledBg",G("palette-error-dark")),K(_.Alert,"infoFilledBg",G("palette-info-dark")),K(_.Alert,"successFilledBg",G("palette-success-dark")),K(_.Alert,"warningFilledBg",G("palette-warning-dark")),K(_.Alert,"errorFilledColor",xr(()=>_.getContrastText(_.error.dark))),K(_.Alert,"infoFilledColor",xr(()=>_.getContrastText(_.info.dark))),K(_.Alert,"successFilledColor",xr(()=>_.getContrastText(_.success.dark))),K(_.Alert,"warningFilledColor",xr(()=>_.getContrastText(_.warning.dark))),K(_.Alert,"errorStandardBg",wt(_.error.light,.9)),K(_.Alert,"infoStandardBg",wt(_.info.light,.9)),K(_.Alert,"successStandardBg",wt(_.success.light,.9)),K(_.Alert,"warningStandardBg",wt(_.warning.light,.9)),K(_.Alert,"errorIconColor",G("palette-error-main")),K(_.Alert,"infoIconColor",G("palette-info-main")),K(_.Alert,"successIconColor",G("palette-success-main")),K(_.Alert,"warningIconColor",G("palette-warning-main")),K(_.AppBar,"defaultBg",G("palette-grey-900")),K(_.AppBar,"darkBg",G("palette-background-paper")),K(_.AppBar,"darkColor",G("palette-text-primary")),K(_.Avatar,"defaultBg",G("palette-grey-600")),K(_.Button,"inheritContainedBg",G("palette-grey-800")),K(_.Button,"inheritContainedHoverBg",G("palette-grey-700")),K(_.Chip,"defaultBorder",G("palette-grey-700")),K(_.Chip,"defaultAvatarColor",G("palette-grey-300")),K(_.Chip,"defaultIconColor",G("palette-grey-300")),K(_.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),K(_.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),K(_.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),K(_.LinearProgress,"primaryBg",wt(_.primary.main,.5)),K(_.LinearProgress,"secondaryBg",wt(_.secondary.main,.5)),K(_.LinearProgress,"errorBg",wt(_.error.main,.5)),K(_.LinearProgress,"infoBg",wt(_.info.main,.5)),K(_.LinearProgress,"successBg",wt(_.success.main,.5)),K(_.LinearProgress,"warningBg",wt(_.warning.main,.5)),K(_.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),K(_.Slider,"primaryTrack",wt(_.primary.main,.5)),K(_.Slider,"secondaryTrack",wt(_.secondary.main,.5)),K(_.Slider,"errorTrack",wt(_.error.main,.5)),K(_.Slider,"infoTrack",wt(_.info.main,.5)),K(_.Slider,"successTrack",wt(_.success.main,.5)),K(_.Slider,"warningTrack",wt(_.warning.main,.5));const re=Pa(_.background.default,.98);K(_.SnackbarContent,"bg",re),K(_.SnackbarContent,"color",xr(()=>_.getContrastText(re))),K(_.SpeedDialAction,"fabHoverBg",Pa(_.background.paper,.15)),K(_.StepConnector,"border",G("palette-grey-600")),K(_.StepContent,"border",G("palette-grey-600")),K(_.Switch,"defaultColor",G("palette-grey-300")),K(_.Switch,"defaultDisabledColor",G("palette-grey-600")),K(_.Switch,"primaryDisabledColor",wt(_.primary.main,.55)),K(_.Switch,"secondaryDisabledColor",wt(_.secondary.main,.55)),K(_.Switch,"errorDisabledColor",wt(_.error.main,.55)),K(_.Switch,"infoDisabledColor",wt(_.info.main,.55)),K(_.Switch,"successDisabledColor",wt(_.success.main,.55)),K(_.Switch,"warningDisabledColor",wt(_.warning.main,.55)),K(_.TableCell,"border",wt(Ta(_.divider,1),.68)),K(_.Tooltip,"bg",Ta(_.grey[700],.92))}Lr(_.background,"default"),Lr(_.background,"paper"),Lr(_.common,"background"),Lr(_.common,"onBackground"),Lr(_,"divider"),Object.keys(_).forEach(re=>{const H=_[re];re!=="tonalOffset"&&H&&typeof H=="object"&&(H.main&&K(_[re],"mainChannel",es(os(H.main))),H.light&&K(_[re],"lightChannel",es(os(H.light))),H.dark&&K(_[re],"darkChannel",es(os(H.dark))),H.contrastText&&K(_[re],"contrastTextChannel",es(os(H.contrastText))),re==="text"&&(Lr(_[re],"primary"),Lr(_[re],"secondary")),re==="action"&&(H.active&&Lr(_[re],"active"),H.selected&&Lr(_[re],"selected")))})}),R=t.reduce((V,_)=>sn(V,_),R);const $={prefix:a,disableCssColorScheme:s,shouldSkipGeneratingVar:l,getSelector:kC(R)},{vars:B,generateThemeVars:M,generateStyleSheets:z}=eC(R,$);return R.vars=B,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([V,_])=>{R[V]=_}),R.generateThemeVars=M,R.generateStyleSheets=z,R.generateSpacing=function(){return Mh(h.spacing,du(this))},R.getColorSchemeSelector=tC(u),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...Qi,...h==null?void 0:h.unstable_sxConfig},R.unstable_sx=function(_){return vo({sx:_,theme:this})},R.toRuntimeSource=fg,R}function gg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Eu({...n===!0?{}:n.palette,mode:t})})}function mg(e={},...t){const{palette:n,cssVariables:o=!1,colorSchemes:s=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,u=a||"light",d=s==null?void 0:s[u],h={...s,...n?{[u]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(o===!1){if(!("colorSchemes"in e))return Ru(e,...t);let y=n;"palette"in e||h[u]&&(h[u]!==!0?y=h[u].palette:u==="dark"&&(y={mode:"dark"}));const m=Ru({...e,palette:y},...t);return m.defaultColorScheme=u,m.colorSchemes=h,m.palette.mode==="light"&&(m.colorSchemes.light={...h.light!==!0&&h.light,palette:m.palette},gg(m,"dark",h.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...h.dark!==!0&&h.dark,palette:m.palette},gg(m,"light",h.light)),m}return!n&&!("light"in h)&&u==="light"&&(h.light=!0),AC({...l,colorSchemes:h,defaultColorScheme:u,...typeof o!="boolean"&&o},...t)}const Tu=mg();function Ma(){const e=hu(Tu);return e[Aa]||e}function yg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Pn=e=>yg(e)&&e!=="classes",Re=Fh({themeId:Aa,defaultTheme:Tu,rootShouldForwardProp:Pn}),MC=it("MuiBox",["root"]),$C=mg(),Dt=IS({themeId:Aa,defaultTheme:$C,defaultClassName:MC.root,generateClassName:Bh.generate});function DC(e){return v.jsx(_S,{...e,defaultTheme:Tu,themeId:Aa})}function BC(e){return function(n){return v.jsx(DC,{styles:typeof e=="function"?o=>e({theme:o,...n}):e})}}function LC(){return $h}function pt(e){return XS(e)}function $a(e){return parseInt(e,10)||0}const jC={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function NC(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const FC=j.forwardRef(function(t,n){const{onChange:o,maxRows:s,minRows:a=1,style:l,value:u,...d}=t,{current:h}=j.useRef(u!=null),y=j.useRef(null),m=Xt(n,y),b=j.useRef(null),w=j.useRef(null),S=j.useCallback(()=>{const C=y.current,k=or(C).getComputedStyle(C);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const R=w.current;R.style.width=k.width,R.value=C.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
43
|
+
`&&(R.value+=" ");const $=k.boxSizing,B=$a(k.paddingBottom)+$a(k.paddingTop),M=$a(k.borderBottomWidth)+$a(k.borderTopWidth),z=R.scrollHeight;R.value="x";const V=R.scrollHeight;let _=z;a&&(_=Math.max(Number(a)*V,_)),s&&(_=Math.min(Number(s)*V,_)),_=Math.max(_,V);const G=_+($==="border-box"?B+M:0),re=Math.abs(_-z)<=1;return{outerHeightStyle:G,overflowing:re}},[s,a,t.placeholder]),E=j.useCallback(()=>{const C=S();if(NC(C))return;const O=C.outerHeightStyle,k=y.current;b.current!==O&&(b.current=O,k.style.height=`${O}px`),k.style.overflow=C.overflowing?"hidden":""},[S]);br(()=>{const C=()=>{E()};let O;const k=Oa(C),R=y.current,$=or(R);$.addEventListener("resize",k);let B;return typeof ResizeObserver<"u"&&(B=new ResizeObserver(C),B.observe(R)),()=>{k.clear(),cancelAnimationFrame(O),$.removeEventListener("resize",k),B&&B.disconnect()}},[S,E]),br(()=>{E()});const P=C=>{h||E(),o&&o(C)};return v.jsxs(j.Fragment,{children:[v.jsx("textarea",{value:u,onChange:P,ref:m,rows:a,style:l,...d}),v.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...jC.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function Pu(e){return typeof e=="string"}function ei({props:e,states:t,muiFormControl:n}){return t.reduce((o,s)=>(o[s]=e[s],n&&typeof e[s]>"u"&&(o[s]=n[s]),o),{})}const Ou=j.createContext(void 0);function ti(){return j.useContext(Ou)}const vt=KS;function vg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Da(e,t=!1){return e&&(vg(e.value)&&e.value!==""||t&&vg(e.defaultValue)&&e.defaultValue!=="")}function zC(e){return e.startAdornment}function WC(e){return lt("MuiInputBase",e)}const ni=it("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var bg;const Ba=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},La=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},UC=e=>{const{classes:t,color:n,disabled:o,error:s,endAdornment:a,focused:l,formControl:u,fullWidth:d,hiddenLabel:h,multiline:y,readOnly:m,size:b,startAdornment:w,type:S}=e,E={root:["root",`color${je(n)}`,o&&"disabled",s&&"error",d&&"fullWidth",l&&"focused",u&&"formControl",b&&b!=="medium"&&`size${je(b)}`,y&&"multiline",w&&"adornedStart",a&&"adornedEnd",h&&"hiddenLabel",m&&"readOnly"],input:["input",o&&"disabled",S==="search"&&"inputTypeSearch",y&&"inputMultiline",b==="small"&&"inputSizeSmall",h&&"inputHiddenLabel",w&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return ft(E,WC,t)},ja=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Ba})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ni.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Na=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:La})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},o={opacity:"0 !important"},s=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ni.formControl} &`]:{"&::-webkit-input-placeholder":o,"&::-moz-placeholder":o,"&::-ms-input-placeholder":o,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus::-ms-input-placeholder":s},[`&.${ni.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),xg=BC({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Au=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiInputBase"}),{"aria-describedby":s,autoComplete:a,autoFocus:l,className:u,color:d,components:h={},componentsProps:y={},defaultValue:m,disabled:b,disableInjectingGlobalStyles:w,endAdornment:S,error:E,fullWidth:P=!1,id:C,inputComponent:O="input",inputProps:k={},inputRef:R,margin:$,maxRows:B,minRows:M,multiline:z=!1,name:V,onBlur:_,onChange:G,onClick:re,onFocus:H,onKeyDown:Q,onKeyUp:ee,placeholder:le,readOnly:pe,renderSuffix:he,rows:be,size:we,slotProps:ue={},slots:Ce={},startAdornment:De,type:Xe="text",value:Ke,...He}=o,gt=k.value!=null?k.value:Ke,{current:ae}=j.useRef(gt!=null),de=j.useRef(),ge=j.useCallback(N=>{},[]),me=Xt(de,R,k.ref,ge),[fe,Pe]=j.useState(!1),ve=ti(),Be=ei({props:o,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Be.focused=ve?ve.focused:fe,j.useEffect(()=>{!ve&&b&&fe&&(Pe(!1),_&&_())},[ve,b,fe,_]);const Ge=ve&&ve.onFilled,Ae=ve&&ve.onEmpty,ke=j.useCallback(N=>{Da(N)?Ge&&Ge():Ae&&Ae()},[Ge,Ae]);br(()=>{ae&&ke({value:gt})},[gt,ke,ae]);const We=N=>{H&&H(N),k.onFocus&&k.onFocus(N),ve&&ve.onFocus?ve.onFocus(N):Pe(!0)},et=N=>{_&&_(N),k.onBlur&&k.onBlur(N),ve&&ve.onBlur?ve.onBlur(N):Pe(!1)},Le=(N,...q)=>{if(!ae){const J=N.target||de.current;if(J==null)throw new Error($r(1));ke({value:J.value})}k.onChange&&k.onChange(N,...q),G&&G(N,...q)};j.useEffect(()=>{ke(de.current)},[]);const xe=N=>{de.current&&N.currentTarget===N.target&&de.current.focus(),re&&re(N)};let ut=O,Ut=k;z&&ut==="input"&&(be?Ut={type:void 0,minRows:be,maxRows:be,...Ut}:Ut={type:void 0,maxRows:B,minRows:M,...Ut},ut=FC);const Ht=N=>{ke(N.animationName==="mui-auto-fill-cancel"?de.current:{value:"x"})};j.useEffect(()=>{ve&&ve.setAdornedStart(!!De)},[ve,De]);const Yn={...o,color:Be.color||"primary",disabled:Be.disabled,endAdornment:S,error:Be.error,focused:Be.focused,formControl:ve,fullWidth:P,hiddenLabel:Be.hiddenLabel,multiline:z,size:Be.size,startAdornment:De,type:Xe},I=UC(Yn),p=Ce.root||h.Root||ja,g=ue.root||y.root||{},D=Ce.input||h.Input||Na;return Ut={...Ut,...ue.input??y.input},v.jsxs(j.Fragment,{children:[!w&&typeof xg=="function"&&(bg||(bg=v.jsx(xg,{}))),v.jsxs(p,{...g,ref:n,onClick:xe,...He,...!Pu(p)&&{ownerState:{...Yn,...g.ownerState}},className:Te(I.root,g.className,u,pe&&"MuiInputBase-readOnly"),children:[De,v.jsx(Ou.Provider,{value:null,children:v.jsx(D,{"aria-invalid":Be.error,"aria-describedby":s,autoComplete:a,autoFocus:l,defaultValue:m,disabled:Be.disabled,id:C,onAnimationStart:Ht,name:V,placeholder:le,readOnly:pe,required:Be.required,rows:be,value:gt,onKeyDown:Q,onKeyUp:ee,type:Xe,...Ut,...!Pu(D)&&{as:ut,ownerState:{...Yn,...Ut.ownerState}},ref:me,className:Te(I.input,Ut.className,pe&&"MuiInputBase-readOnly"),onBlur:et,onChange:Le,onFocus:We})}),S,he?he({...Be,startAdornment:De}):null]})]})});function HC(e){return typeof e.main=="string"}function GC(e,t=[]){if(!HC(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function jr(e=[]){return([,t])=>t&&GC(t,e)}function qC(e){return lt("MuiInput",e)}const is={...ni,...it("MuiInput",["root","underline","input"])},VC=e=>{const{classes:t,disableUnderline:n}=e,s=ft({root:["root",!n&&"underline"],input:["input"]},qC,t);return{...t,...s}},YC=Re(ja,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ba(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:o})=>o.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:o})=>!o.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${is.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${is.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${is.disabled}, .${is.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${is.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([o])=>({props:{color:o,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[o].main}`}}}))]}})),XC=Re(Na,{name:"MuiInput",slot:"Input",overridesResolver:La})({}),Fa=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:u=!1,inputComponent:d="input",multiline:h=!1,slotProps:y,slots:m={},type:b="text",...w}=o,S=VC(o),P={root:{ownerState:{disableUnderline:s}}},C=y??l?sn(y??l,P):P,O=m.root??a.Root??YC,k=m.input??a.Input??XC;return v.jsx(Au,{slots:{root:O,input:k},slotProps:C,fullWidth:u,inputComponent:d,multiline:h,ref:n,type:b,...w,classes:S})});Fa&&(Fa.muiName="Input");function KC(e){return lt("MuiFilledInput",e)}const bo={...ni,...it("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function JC(e){return lt("MuiSvgIcon",e)}it("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const ZC=e=>{const{color:t,fontSize:n,classes:o}=e,s={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return ft(s,JC,o)},QC=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(vt(({theme:e})=>{var t,n,o,s,a,l,u,d,h,y,m,b,w,S;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(s=(t=e.transitions)==null?void 0:t.create)==null?void 0:s.call(t,"fill",{duration:(o=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:o.shorter}),variants:[{props:E=>!E.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(u=e.typography)==null?void 0:u.pxToRem)==null?void 0:d.call(u,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(h=e.typography)==null?void 0:h.pxToRem)==null?void 0:y.call(h,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,E])=>E&&E.main).map(([E])=>{var P,C;return{props:{color:E},style:{color:(C=(P=(e.vars??e).palette)==null?void 0:P[E])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(b=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:b.active}},{props:{color:"disabled"},style:{color:(S=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:S.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),za=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiSvgIcon"}),{children:s,className:a,color:l="inherit",component:u="svg",fontSize:d="medium",htmlColor:h,inheritViewBox:y=!1,titleAccess:m,viewBox:b="0 0 24 24",...w}=o,S=j.isValidElement(s)&&s.type==="svg",E={...o,color:l,component:u,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:b,hasSvgAsChild:S},P={};y||(P.viewBox=b);const C=ZC(E);return v.jsxs(QC,{as:u,className:Te(C.root,a),focusable:"false",color:h,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...P,...w,...S&&s.props,ownerState:E,children:[S?s.props.children:s,m?v.jsx("title",{children:m}):null]})});za&&(za.muiName="SvgIcon");function bn(e,t){function n(o,s){return v.jsx(za,{"data-testid":`${t}Icon`,ref:s,...o,children:e})}return n.muiName=za.muiName,j.memo(j.forwardRef(n))}const e_=e=>{const{classes:t,disableUnderline:n,startAdornment:o,endAdornment:s,size:a,hiddenLabel:l,multiline:u}=e,d={root:["root",!n&&"underline",o&&"adornedStart",s&&"adornedEnd",a==="small"&&`size${je(a)}`,l&&"hiddenLabel",u&&"multiline"],input:["input"]},h=ft(d,KC,t);return{...t,...h}},t_=Re(ja,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Ba(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o}},[`&.${bo.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${bo.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${bo.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${bo.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${bo.disabled}, .${bo.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${bo.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(jr()).map(([l])=>{var u;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(u=(e.vars||e).palette[l])==null?void 0:u.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:u})=>l.multiline&&u==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),n_=Re(Na,{name:"MuiFilledInput",slot:"Input",overridesResolver:La})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Wa=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFilledInput"}),{disableUnderline:s=!1,components:a={},componentsProps:l,fullWidth:u=!1,hiddenLabel:d,inputComponent:h="input",multiline:y=!1,slotProps:m,slots:b={},type:w="text",...S}=o,E={...o,disableUnderline:s,fullWidth:u,inputComponent:h,multiline:y,type:w},P=e_(o),C={root:{ownerState:E},input:{ownerState:E}},O=m??l?sn(C,m??l):C,k=b.root??a.Root??t_,R=b.input??a.Input??n_;return v.jsx(Au,{slots:{root:k,input:R},slotProps:O,fullWidth:u,inputComponent:h,multiline:y,ref:n,type:w,...S,classes:P})});Wa&&(Wa.muiName="Input");var wg;const r_=Re("fieldset",{shouldForwardProp:Pn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),o_=Re("legend",{shouldForwardProp:Pn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function i_(e){const{children:t,classes:n,className:o,label:s,notched:a,...l}=e,u=s!=null&&s!=="",d={...e,notched:a,withLabel:u};return v.jsx(r_,{"aria-hidden":!0,className:o,ownerState:d,...l,children:v.jsx(o_,{ownerState:d,children:u?v.jsx("span",{children:s}):wg||(wg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""}))})})}function s_(e){return lt("MuiOutlinedInput",e)}const wr={...ni,...it("MuiOutlinedInput",["root","notchedOutline","input"])},a_=e=>{const{classes:t}=e,o=ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},s_,t);return{...t,...o}},l_=Re(ja,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Ba})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${wr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${wr.focused} .${wr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{[`&.${wr.focused} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${wr.error} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${wr.disabled} .${wr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:o})=>n.multiline&&o==="small",style:{padding:"8.5px 14px"}}]}})),c_=Re(i_,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),u_=Re(Na,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:La})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Ua=j.forwardRef(function(t,n){var o;const s=pt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:u="input",label:d,multiline:h=!1,notched:y,slots:m={},type:b="text",...w}=s,S=a_(s),E=ti(),P=ei({props:s,muiFormControl:E,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...s,color:P.color||"primary",disabled:P.disabled,error:P.error,focused:P.focused,formControl:E,fullWidth:l,hiddenLabel:P.hiddenLabel,multiline:h,size:P.size,type:b},O=m.root??a.Root??l_,k=m.input??a.Input??u_;return v.jsx(Au,{slots:{root:O,input:k},renderSuffix:R=>v.jsx(c_,{ownerState:C,className:S.notchedOutline,label:d!=null&&d!==""&&P.required?o||(o=v.jsxs(j.Fragment,{children:[d," ","*"]})):d,notched:typeof y<"u"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:l,inputComponent:u,multiline:h,ref:n,type:b,...w,classes:{...S,notchedOutline:null}})});Ua&&(Ua.muiName="Input");function d_(e){return lt("MuiFormLabel",e)}const ss=it("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),f_=e=>{const{classes:t,color:n,focused:o,disabled:s,error:a,filled:l,required:u}=e,d={root:["root",`color${je(n)}`,s&&"disabled",a&&"error",l&&"filled",o&&"focused",u&&"required"],asterisk:["asterisk",a&&"error"]};return ft(d,d_,t)},p_=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{[`&.${ss.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${ss.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${ss.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),h_=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vt(({theme:e})=>({[`&.${ss.error}`]:{color:(e.vars||e).palette.error.main}}))),g_=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormLabel"}),{children:s,className:a,color:l,component:u="label",disabled:d,error:h,filled:y,focused:m,required:b,...w}=o,S=ti(),E=ei({props:o,muiFormControl:S,states:["color","required","focused","disabled","error","filled"]}),P={...o,color:E.color||"primary",component:u,disabled:E.disabled,error:E.error,filled:E.filled,focused:E.focused,required:E.required},C=f_(P);return v.jsxs(p_,{as:u,ownerState:P,className:Te(C.root,a),ref:n,...w,children:[s,E.required&&v.jsxs(h_,{ownerState:P,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function m_(e){return lt("MuiInputLabel",e)}it("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const y_=e=>{const{classes:t,formControl:n,size:o,shrink:s,disableAnimation:a,variant:l,required:u}=e,d={root:["root",n&&"formControl",!a&&"animated",s&&"shrink",o&&o!=="normal"&&`size${je(o)}`,l],asterisk:[u&&"asterisk"]},h=ft(d,m_,t);return{...t,...h}},v_=Re(g_,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ss.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:o})=>t==="filled"&&n.shrink&&o==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Mu=j.forwardRef(function(t,n){const o=pt({name:"MuiInputLabel",props:t}),{disableAnimation:s=!1,margin:a,shrink:l,variant:u,className:d,...h}=o,y=ti();let m=l;typeof m>"u"&&y&&(m=y.filled||y.focused||y.adornedStart);const b=ei({props:o,muiFormControl:y,states:["size","variant","required","focused"]}),w={...o,disableAnimation:s,formControl:y,shrink:m,size:b.size,variant:b.variant,required:b.required,focused:b.focused},S=y_(w);return v.jsx(v_,{"data-shrink":m,ref:n,className:Te(S.root,d),...h,ownerState:w,classes:S})});function b_(e){return lt("MuiFormControl",e)}it("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const x_=e=>{const{classes:t,margin:n,fullWidth:o}=e,s={root:["root",n!=="none"&&`margin${je(n)}`,o&&"fullWidth"]};return ft(s,b_,t)},w_=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${je(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),$u=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormControl"}),{children:s,className:a,color:l="primary",component:u="div",disabled:d=!1,error:h=!1,focused:y,fullWidth:m=!1,hiddenLabel:b=!1,margin:w="none",required:S=!1,size:E="medium",variant:P="outlined",...C}=o,O={...o,color:l,component:u,disabled:d,error:h,fullWidth:m,hiddenLabel:b,margin:w,required:S,size:E,variant:P},k=x_(O),[R,$]=j.useState(()=>{let H=!1;return s&&j.Children.forEach(s,Q=>{if(!xu(Q,["Input","Select"]))return;const ee=xu(Q,["Select"])?Q.props.input:Q;ee&&zC(ee.props)&&(H=!0)}),H}),[B,M]=j.useState(()=>{let H=!1;return s&&j.Children.forEach(s,Q=>{xu(Q,["Input","Select"])&&(Da(Q.props,!0)||Da(Q.props.inputProps,!0))&&(H=!0)}),H}),[z,V]=j.useState(!1);d&&z&&V(!1);const _=y!==void 0&&!d?y:z;let G;j.useRef(!1);const re=j.useMemo(()=>({adornedStart:R,setAdornedStart:$,color:l,disabled:d,error:h,filled:B,focused:_,fullWidth:m,hiddenLabel:b,size:E,onBlur:()=>{V(!1)},onEmpty:()=>{M(!1)},onFilled:()=>{M(!0)},onFocus:()=>{V(!0)},registerEffect:G,required:S,variant:P}),[R,l,d,h,B,_,m,b,G,S,E,P]);return v.jsx(Ou.Provider,{value:re,children:v.jsx(w_,{as:u,ownerState:O,className:Te(k.root,a),ref:n,...C,children:s})})});function S_(e){return lt("MuiFormHelperText",e)}const Sg=it("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Cg;const C_=e=>{const{classes:t,contained:n,size:o,disabled:s,error:a,filled:l,focused:u,required:d}=e,h={root:["root",s&&"disabled",a&&"error",o&&`size${je(o)}`,n&&"contained",u&&"focused",l&&"filled",d&&"required"]};return ft(h,S_,t)},__=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Sg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Sg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),E_=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiFormHelperText"}),{children:s,className:a,component:l="p",disabled:u,error:d,filled:h,focused:y,margin:m,required:b,variant:w,...S}=o,E=ti(),P=ei({props:o,muiFormControl:E,states:["variant","size","disabled","error","filled","focused","required"]}),C={...o,component:l,contained:P.variant==="filled"||P.variant==="outlined",variant:P.variant,size:P.size,disabled:P.disabled,error:P.error,filled:P.filled,focused:P.focused,required:P.required};delete C.ownerState;const O=C_(C);return v.jsx(__,{as:l,className:Te(O.root,a),ref:n,...S,ownerState:C,children:s===" "?Cg||(Cg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):s})});var xt={};/**
|
|
35
44
|
* @license React
|
|
36
45
|
* react-is.production.min.js
|
|
37
46
|
*
|
|
@@ -39,16 +48,7 @@ object-assign
|
|
|
39
48
|
*
|
|
40
49
|
* This source code is licensed under the MIT license found in the
|
|
41
50
|
* LICENSE file in the root directory of this source tree.
|
|
42
|
-
*/var Bu=Symbol.for("react.element"),Du=Symbol.for("react.portal"),Na=Symbol.for("react.fragment"),za=Symbol.for("react.strict_mode"),Wa=Symbol.for("react.profiler"),Ua=Symbol.for("react.provider"),Ha=Symbol.for("react.context"),oC=Symbol.for("react.server_context"),Ga=Symbol.for("react.forward_ref"),qa=Symbol.for("react.suspense"),Va=Symbol.for("react.suspense_list"),Ka=Symbol.for("react.memo"),Ya=Symbol.for("react.lazy"),iC=Symbol.for("react.offscreen"),cg;cg=Symbol.for("react.module.reference");function Kn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Bu:switch(e=e.type,e){case Na:case Wa:case za:case qa:case Va:return e;default:switch(e=e&&e.$$typeof,e){case oC:case Ha:case Ga:case Ya:case Ka:case Ua:return e;default:return t}}case Du:return t}}}xt.ContextConsumer=Ha,xt.ContextProvider=Ua,xt.Element=Bu,xt.ForwardRef=Ga,xt.Fragment=Na,xt.Lazy=Ya,xt.Memo=Ka,xt.Portal=Du,xt.Profiler=Wa,xt.StrictMode=za,xt.Suspense=qa,xt.SuspenseList=Va,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(e){return Kn(e)===Ha},xt.isContextProvider=function(e){return Kn(e)===Ua},xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Bu},xt.isForwardRef=function(e){return Kn(e)===Ga},xt.isFragment=function(e){return Kn(e)===Na},xt.isLazy=function(e){return Kn(e)===Ya},xt.isMemo=function(e){return Kn(e)===Ka},xt.isPortal=function(e){return Kn(e)===Du},xt.isProfiler=function(e){return Kn(e)===Wa},xt.isStrictMode=function(e){return Kn(e)===za},xt.isSuspense=function(e){return Kn(e)===qa},xt.isSuspenseList=function(e){return Kn(e)===Va},xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Na||e===Wa||e===za||e===qa||e===Va||e===iC||typeof e=="object"&&e!==null&&(e.$$typeof===Ya||e.$$typeof===Ka||e.$$typeof===Ua||e.$$typeof===Ha||e.$$typeof===Ga||e.$$typeof===cg||e.getModuleId!==void 0)},xt.typeOf=Kn;function ug(e){const{variants:t,...n}=e,r={variants:t,style:Qh(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Qh(i.style))}),r}const sC=Mu();function ju(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function aC(e){return e?(t,n)=>n[e]:null}function lC(e,t,n){e.theme=dC(e.theme)?n:e.theme[t]||e.theme}function Xa(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Xa(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return dg(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function dg(e,t,n=[]){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function cC(e={}){const{themeId:t,defaultTheme:n=sC,rootShouldForwardProp:r=ju,slotShouldForwardProp:i=ju}=e;function a(c){lC(c,t,n)}return(c,d={})=>{Q1(c,M=>M.filter(D=>D!==Co));const{name:f,slot:y,skipVariantsResolver:m,skipSx:v,overridesResolver:w=aC(pC(y)),...x}=d,_=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,k=v||!1;let C=ju;y==="Root"||y==="root"?C=r:y?C=i:fC(c)&&(C=void 0);const O=Jh(c,{shouldForwardProp:C,label:uC(),...x}),P=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function($){return Xa($,M)};if(Cr(M)){const D=ug(M);return D.variants?function(z){return Xa(z,D)}:D.style}return M},R=(...M)=>{const D=[],$=M.map(P),z=[];if(D.push(a),f&&w&&z.push(function(te){var ae,fe;const X=(fe=(ae=te.theme.components)==null?void 0:ae[f])==null?void 0:fe.styleOverrides;if(!X)return null;const ee={};for(const pe in X)ee[pe]=Xa(te,X[pe]);return w(te,ee)}),f&&!_&&z.push(function(te){var ee,ae;const H=te.theme,X=(ae=(ee=H==null?void 0:H.components)==null?void 0:ee[f])==null?void 0:ae.variants;return X?dg(te,X):null}),k||z.push(Co),Array.isArray($[0])){const G=$.shift(),te=new Array(D.length).fill(""),H=new Array(z.length).fill("");let X;X=[...te,...G,...H],X.raw=[...te,...G.raw,...H],D.unshift(X)}const V=[...D,...$,...z],E=O(...V);return c.muiName&&(E.muiName=c.muiName),E};return O.withConfig&&(R.withConfig=O.withConfig),R}}function uC(e,t){return void 0}function dC(e){for(const t in e)return!1;return!0}function fC(e){return typeof e=="string"&&e.charCodeAt(0)>96}function pC(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function ss(e,t){const n={...t};for(const r in e)if(Object.prototype.hasOwnProperty.call(e,r)){const i=r;if(i==="components"||i==="slots")n[i]={...e[i],...n[i]};else if(i==="componentsProps"||i==="slotProps"){const a=e[i],l=t[i];if(!l)n[i]=a||{};else if(!a)n[i]=l;else{n[i]={...l};for(const c in a)if(Object.prototype.hasOwnProperty.call(a,c)){const d=c;n[i][d]=ss(a[d],l[d])}}}else n[i]===void 0&&(n[i]=e[i])}return n}function hC(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:ss(t.components[n].defaultProps,r)}function gC({props:e,name:t,defaultTheme:n,themeId:r}){let i=Fa(n);return r&&(i=i[r]||i),hC({theme:i,name:t,props:e})}const _r=typeof window<"u"?L.useLayoutEffect:L.useEffect;function mC(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function Lu(e,t=0,n=1){return mC(e,t,n)}function yC(e){e=e.slice(1);const t=new RegExp(`.{1,${e.length>=6?2:1}}`,"g");let n=e.match(t);return n&&n[0].length===1&&(n=n.map(r=>r+r)),n?`rgb${n.length===4?"a":""}(${n.map((r,i)=>i<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ro(e){if(e.type)return e;if(e.charAt(0)==="#")return ro(yC(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Lr(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(i))throw new Error(Lr(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const vC=e=>{const t=ro(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},as=(e,t)=>{try{return vC(e)}catch{return e}};function Ja(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function fg(e){e=ro(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),l=(f,y=(f+n/30)%12)=>i-a*Math.max(Math.min(y-3,9-y,1),-1);let c="rgb";const d=[Math.round(l(0)*255),Math.round(l(8)*255),Math.round(l(4)*255)];return e.type==="hsla"&&(c+="a",d.push(t[3])),Ja({type:c,values:d})}function Fu(e){e=ro(e);let t=e.type==="hsl"||e.type==="hsla"?ro(fg(e)).values:e.values;return t=t.map(n=>(e.type!=="color"&&(n/=255),n<=.03928?n/12.92:((n+.055)/1.055)**2.4)),Number((.2126*t[0]+.7152*t[1]+.0722*t[2]).toFixed(3))}function bC(e,t){const n=Fu(e),r=Fu(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Kt(e,t){return e=ro(e),t=Lu(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,Ja(e)}function Za(e,t,n){try{return Kt(e,t)}catch{return e}}function Nu(e,t){if(e=ro(e),t=Lu(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return Ja(e)}function wt(e,t,n){try{return Nu(e,t)}catch{return e}}function zu(e,t){if(e=ro(e),t=Lu(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return Ja(e)}function St(e,t,n){try{return zu(e,t)}catch{return e}}function xC(e,t=.15){return Fu(e)>.5?Nu(e,t):zu(e,t)}function Qa(e,t,n){try{return xC(e,t)}catch{return e}}function pg(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function el(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Wu(e,t){var n,r,i;return L.isValidElement(e)&&t.indexOf(e.type.muiName??((i=(r=(n=e.type)==null?void 0:n._payload)==null?void 0:r.value)==null?void 0:i.muiName))!==-1}function Yn(e){return e&&e.ownerDocument||document}function ur(e){return Yn(e).defaultView||window}function Uu(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let hg=0;function wC(e){const[t,n]=L.useState(e),r=e||t;return L.useEffect(()=>{t==null&&(hg+=1,n(`mui-${hg}`))},[t]),r}const gg={...L}.useId;function mg(e){if(gg!==void 0){const t=gg();return e??t}return wC(e)}function yg({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=L.useRef(e!==void 0),[a,l]=L.useState(t),c=i?e:a,d=L.useCallback(f=>{i||l(f)},[]);return[c,d]}function Nr(e){const t=L.useRef(e);return _r(()=>{t.current=e}),L.useRef((...n)=>(0,t.current)(...n)).current}function Zt(...e){return L.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Uu(n,t)})},e)}const vg={};function bg(e,t){const n=L.useRef(vg);return n.current===vg&&(n.current=e(t)),n}const SC=[];function CC(e){L.useEffect(e,SC)}class Hu{constructor(){oa(this,"currentId",null);oa(this,"clear",()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)});oa(this,"disposeEffect",()=>this.clear)}static create(){return new Hu}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function xg(){const e=bg(Hu.create).current;return CC(e.disposeEffect),e}function wg(e){try{return e.matches(":focus-visible")}catch{}return!1}function Sg(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function ft(e,t,n=void 0){const r={};for(const i in e){const a=e[i];let l="",c=!0;for(let d=0;d<a.length;d+=1){const f=a[d];f&&(l+=(c===!0?"":" ")+t(f),c=!1,n&&n[f]&&(l+=" "+n[f]))}r[i]=l}return r}function _C(e){return typeof e=="string"}function Cg(e,t,n){return e===void 0||_C(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function _g(e,t=[]){if(e===void 0)return{};const n={};return Object.keys(e).filter(r=>r.match(/^on[A-Z]/)&&typeof e[r]=="function"&&!t.includes(r)).forEach(r=>{n[r]=e[r]}),n}function Eg(e){if(e===void 0)return{};const t={};return Object.keys(e).filter(n=>!(n.match(/^on[A-Z]/)&&typeof e[n]=="function")).forEach(n=>{t[n]=e[n]}),t}function Rg(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const w=Pe(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),x={...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},_={...n,...i,...r};return w.length>0&&(_.className=w),Object.keys(x).length>0&&(_.style=x),{props:_,internalRef:void 0}}const l=_g({...i,...r}),c=Eg(r),d=Eg(i),f=t(l),y=Pe(f==null?void 0:f.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),m={...f==null?void 0:f.style,...n==null?void 0:n.style,...i==null?void 0:i.style,...r==null?void 0:r.style},v={...f,...n,...d,...c};return y.length>0&&(v.className=y),Object.keys(m).length>0&&(v.style=m),{props:v,internalRef:f.ref}}function Pg(e,t,n){return typeof e=="function"?e(t,n):e}function ei(e){var m;const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:i=!1,...a}=e,l=i?{}:Pg(n,r),{props:c,internalRef:d}=Rg({...a,externalSlotProps:l}),f=Zt(d,l==null?void 0:l.ref,(m=e.additionalProps)==null?void 0:m.ref);return Cg(t,{...c,ref:f},r)}function ls(e){var t;return parseInt(L.version,10)>=19?((t=e==null?void 0:e.props)==null?void 0:t.ref)||null:(e==null?void 0:e.ref)||null}const EC=L.createContext(),Gu=()=>L.useContext(EC)??!1,RC=L.createContext(void 0);function PC(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?ss(i.defaultProps,r):!i.styleOverrides&&!i.variants?ss(i,r):r}function TC({props:e,name:t}){const n=L.useContext(RC);return PC({props:e,name:t,theme:{components:n}})}const Tg={theme:void 0};function IC(e){let t,n;return function(i){let a=t;return(a===void 0||i.theme!==n)&&(Tg.theme=i.theme,a=ug(e(Tg)),t=a,n=i.theme),a}}function kC(e=""){function t(...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}${t(...r.slice(1))})`:`, ${i}`}return(r,...i)=>`var(--${e?`${e}-`:""}${r}${t(...i)})`}const Ig=(e,t,n,r=[])=>{let i=e;t.forEach((a,l)=>{l===t.length-1?Array.isArray(i)?i[Number(a)]=n:i&&typeof i=="object"&&(i[a]=n):i&&typeof i=="object"&&(i[a]||(i[a]=r.includes(a)?[]:{}),i=i[a])})},OC=(e,t,n)=>{function r(i,a=[],l=[]){Object.entries(i).forEach(([c,d])=>{(!n||n&&!n([...a,c]))&&d!=null&&(typeof d=="object"&&Object.keys(d).length>0?r(d,[...a,c],Array.isArray(d)?[...l,c]:l):t([...a,c],d,l))})}r(e)},AC=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function qu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},i={},a={},l={};return OC(e,(c,d,f)=>{if((typeof d=="string"||typeof d=="number")&&(!r||!r(c,d))){const y=`--${n?`${n}-`:""}${c.join("-")}`,m=AC(c,d);Object.assign(i,{[y]:m}),Ig(a,c,`var(${y})`,f),Ig(l,c,`var(${y}, ${m})`,f)}},c=>c[0]==="vars"),{css:i,vars:a,varsWithDefaults:l}}function $C(e,t={}){const{getSelector:n=k,disableCssColorScheme:r,colorSchemeSelector:i}=t,{colorSchemes:a={},components:l,defaultColorScheme:c="light",...d}=e,{vars:f,css:y,varsWithDefaults:m}=qu(d,t);let v=m;const w={},{[c]:x,..._}=a;if(Object.entries(_||{}).forEach(([P,R])=>{const{vars:M,css:D,varsWithDefaults:$}=qu(R,t);v=cn(v,$),w[P]={css:D,vars:M}}),x){const{css:P,vars:R,varsWithDefaults:M}=qu(x,t);v=cn(v,M),w[c]={css:P,vars:R}}function k(P,R){var D,$;let M=i;if(i==="class"&&(M=".%s"),i==="data"&&(M="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(M=`[${i}="%s"]`),P){if(M==="media")return e.defaultColorScheme===P?":root":{[`@media (prefers-color-scheme: ${(($=(D=a[P])==null?void 0:D.palette)==null?void 0:$.mode)||P})`]:{":root":R}};if(M)return e.defaultColorScheme===P?`:root, ${M.replace("%s",String(P))}`:M.replace("%s",String(P))}return":root"}return{vars:v,generateThemeVars:()=>{let P={...f};return Object.entries(w).forEach(([,{vars:R}])=>{P=cn(P,R)}),P},generateStyleSheets:()=>{var z,V;const P=[],R=e.defaultColorScheme||"light";function M(E,G){Object.keys(G).length&&P.push(typeof E=="string"?{[E]:{...G}}:E)}M(n(void 0,{...y}),y);const{[R]:D,...$}=w;if(D){const{css:E}=D,G=(V=(z=a[R])==null?void 0:z.palette)==null?void 0:V.mode,te=!r&&G?{colorScheme:G,...E}:{...E};M(n(R,{...te}),te)}return Object.entries($).forEach(([E,{css:G}])=>{var X,ee;const te=(ee=(X=a[E])==null?void 0:X.palette)==null?void 0:ee.mode,H=!r&&te?{colorScheme:te,...G}:{...G};M(n(E,{...H}),H)}),P}}}function MC(e){return function(n){return e==="media"?`@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)} &`:"&"}}const cs="$$material",us={black:"#000",white:"#fff"},BC={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"},ti={50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff"},ni={50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000"},ds={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"},ri={50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff"},oi={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},ii={50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853"},kg={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:us.white,default:us.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}},Vu={text:{primary:us.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:us.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function Og(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=zu(e.main,i):t==="dark"&&(e.dark=Nu(e.main,a)))}function DC(e="light"){return e==="dark"?{main:ri[200],light:ri[50],dark:ri[400]}:{main:ri[700],light:ri[400],dark:ri[800]}}function jC(e="light"){return e==="dark"?{main:ti[200],light:ti[50],dark:ti[400]}:{main:ti[500],light:ti[300],dark:ti[700]}}function LC(e="light"){return e==="dark"?{main:ni[500],light:ni[300],dark:ni[700]}:{main:ni[700],light:ni[400],dark:ni[800]}}function FC(e="light"){return e==="dark"?{main:oi[400],light:oi[300],dark:oi[700]}:{main:oi[700],light:oi[500],dark:oi[900]}}function NC(e="light"){return e==="dark"?{main:ii[400],light:ii[300],dark:ii[700]}:{main:ii[800],light:ii[500],dark:ii[900]}}function zC(e="light"){return e==="dark"?{main:ds[400],light:ds[300],dark:ds[700]}:{main:"#ed6c02",light:ds[500],dark:ds[900]}}function Ku(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,...i}=e,a=e.primary||DC(t),l=e.secondary||jC(t),c=e.error||LC(t),d=e.info||FC(t),f=e.success||NC(t),y=e.warning||zC(t);function m(_){return bC(_,Vu.text.primary)>=n?Vu.text.primary:kg.text.primary}const v=({color:_,name:k,mainShade:C=500,lightShade:O=300,darkShade:P=700})=>{if(_={..._},!_.main&&_[C]&&(_.main=_[C]),!_.hasOwnProperty("main"))throw new Error(Lr(11,k?` (${k})`:"",C));if(typeof _.main!="string")throw new Error(Lr(12,k?` (${k})`:"",JSON.stringify(_.main)));return Og(_,"light",O,r),Og(_,"dark",P,r),_.contrastText||(_.contrastText=m(_.main)),_},w={dark:Vu,light:kg};return cn({common:{...us},mode:t,primary:v({color:a,name:"primary"}),secondary:v({color:l,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:v({color:c,name:"error"}),warning:v({color:y,name:"warning"}),info:v({color:d,name:"info"}),success:v({color:f,name:"success"}),grey:BC,contrastThreshold:n,getContrastText:m,augmentColor:v,tonalOffset:r,...w[t]},i)}function WC(e){const t={};return Object.entries(e).forEach(r=>{const[i,a]=r;typeof a=="object"&&(t[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||""}`)}),t}function UC(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function HC(e){return Math.round(e*1e5)/1e5}const Ag={textTransform:"uppercase"},$g='"Roboto", "Helvetica", "Arial", sans-serif';function GC(e,t){const{fontFamily:n=$g,fontSize:r=14,fontWeightLight:i=300,fontWeightRegular:a=400,fontWeightMedium:l=500,fontWeightBold:c=700,htmlFontSize:d=16,allVariants:f,pxToRem:y,...m}=typeof t=="function"?t(e):t,v=r/14,w=y||(k=>`${k/d*v}rem`),x=(k,C,O,P,R)=>({fontFamily:n,fontWeight:k,fontSize:w(C),lineHeight:O,...n===$g?{letterSpacing:`${HC(P/C)}em`}:{},...R,...f}),_={h1:x(i,96,1.167,-1.5),h2:x(i,60,1.2,-.5),h3:x(a,48,1.167,0),h4:x(a,34,1.235,.25),h5:x(a,24,1.334,0),h6:x(l,20,1.6,.15),subtitle1:x(a,16,1.75,.15),subtitle2:x(l,14,1.57,.1),body1:x(a,16,1.5,.15),body2:x(a,14,1.43,.15),button:x(l,14,1.75,.4,Ag),caption:x(a,12,1.66,.4),overline:x(a,12,2.66,1,Ag),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return cn({htmlFontSize:d,pxToRem:w,fontFamily:n,fontSize:r,fontWeightLight:i,fontWeightRegular:a,fontWeightMedium:l,fontWeightBold:c,..._},m,{clone:!1})}const qC=.2,VC=.14,KC=.12;function Tt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qC})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${VC})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${KC})`].join(",")}const YC=["none",Tt(0,2,1,-1,0,1,1,0,0,1,3,0),Tt(0,3,1,-2,0,2,2,0,0,1,5,0),Tt(0,3,3,-2,0,3,4,0,0,1,8,0),Tt(0,2,4,-1,0,4,5,0,0,1,10,0),Tt(0,3,5,-1,0,5,8,0,0,1,14,0),Tt(0,3,5,-1,0,6,10,0,0,1,18,0),Tt(0,4,5,-2,0,7,10,1,0,2,16,1),Tt(0,5,5,-3,0,8,10,1,0,3,14,2),Tt(0,5,6,-3,0,9,12,1,0,3,16,2),Tt(0,6,6,-3,0,10,14,1,0,4,18,3),Tt(0,6,7,-4,0,11,15,1,0,4,20,3),Tt(0,7,8,-4,0,12,17,2,0,5,22,4),Tt(0,7,8,-4,0,13,19,2,0,5,24,4),Tt(0,7,9,-4,0,14,21,2,0,5,26,4),Tt(0,8,9,-5,0,15,22,2,0,6,28,5),Tt(0,8,10,-5,0,16,24,2,0,6,30,5),Tt(0,8,11,-5,0,17,26,2,0,6,32,5),Tt(0,9,11,-5,0,18,28,2,0,7,34,6),Tt(0,9,12,-6,0,19,29,2,0,7,36,6),Tt(0,10,13,-6,0,20,31,3,0,8,38,7),Tt(0,10,13,-6,0,21,33,3,0,8,40,7),Tt(0,10,14,-6,0,22,35,3,0,8,42,7),Tt(0,11,14,-7,0,23,36,3,0,9,44,8),Tt(0,11,15,-7,0,24,38,3,0,9,46,8)],XC={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)"},JC={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Mg(e){return`${Math.round(e)}ms`}function ZC(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function QC(e){const t={...XC,...e.easing},n={...JC,...e.duration};return{getAutoHeightDuration:ZC,create:(i=["all"],a={})=>{const{duration:l=n.standard,easing:c=t.easeInOut,delay:d=0,...f}=a;return(Array.isArray(i)?i:[i]).map(y=>`${y} ${typeof l=="string"?l:Mg(l)} ${c} ${typeof d=="string"?d:Mg(d)}`).join(",")},...e,easing:t,duration:n}}const e_={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function Yu(e={},...t){const{breakpoints:n,mixins:r={},spacing:i,palette:a={},transitions:l={},typography:c={},shape:d,...f}=e;if(e.vars)throw new Error(Lr(20));const y=Ku(a),m=Mu(e);let v=cn(m,{mixins:UC(m.breakpoints,r),palette:y,shadows:YC.slice(),typography:GC(y,c),transitions:QC(l),zIndex:{...e_}});return v=cn(v,f),v=t.reduce((w,x)=>cn(w,x),v),v.unstable_sxConfig={...is,...f==null?void 0:f.unstable_sxConfig},v.unstable_sx=function(x){return Co({sx:x,theme:this})},v}function Xu(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const t_=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Xu(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Bg(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function Dg(e){return e==="dark"?t_:[]}function n_(e){const{palette:t={mode:"light"},opacity:n,overlays:r,...i}=e,a=Ku(t);return{palette:a,opacity:{...Bg(a.mode),...n},overlays:r||Dg(a.mode),...i}}function r_(e){var t;return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!((t=e[1])!=null&&t.match(/(mode|contrastThreshold|tonalOffset)/))}const o_=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],i_=e=>(t,n)=>{const r=e.rootSelector||":root",i=e.colorSchemeSelector;let a=i;if(i==="class"&&(a=".%s"),i==="data"&&(a="[data-%s]"),i!=null&&i.startsWith("data-")&&!i.includes("%s")&&(a=`[${i}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const l={};return o_(e.cssVarPrefix).forEach(c=>{l[c]=n[c],delete n[c]}),a==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:l}}:a?{[a.replace("%s",t)]:l,[`${r}, ${a.replace("%s",t)}`]:n}:{[r]:{...n,...l}}}if(a&&a!=="media")return`${r}, ${a.replace("%s",String(t))}`}else if(t){if(a==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(a)return a.replace("%s",String(t))}return r};function s_(e){return Cr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function a_(e={}){const t={...e};function n(r){const i=Object.entries(r);for(let a=0;a<i.length;a++){const[l,c]=i[a];!s_(c)||l.startsWith("unstable_")?delete r[l]:Cr(c)&&(r[l]={...c},n(r[l]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
|
|
43
|
-
|
|
44
|
-
const theme = ${JSON.stringify(t,null,2)};
|
|
45
|
-
|
|
46
|
-
theme.breakpoints = createBreakpoints(theme.breakpoints || {});
|
|
47
|
-
theme.transitions = createTransitions(theme.transitions || {});
|
|
48
|
-
|
|
49
|
-
export default theme;`}function l_(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function J(e,t,n){!e[t]&&n&&(e[t]=n)}function fs(e){return!e||!e.startsWith("hsl")?e:fg(e)}function zr(e,t){`${t}Channel`in e||(e[`${t}Channel`]=as(fs(e[t]),`MUI: Can't create \`palette.${t}Channel\` because \`palette.${t}\` is not one of these formats: #nnn, #nnnnnn, rgb(), rgba(), hsl(), hsla(), color().
|
|
50
|
-
To suppress this warning, you need to explicitly provide the \`palette.${t}Channel\` as a string (in rgb format, for example "12 12 12") or undefined if you want to remove the channel token.`))}function c_(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const Er=e=>{try{return e()}catch{}},u_=(e="mui")=>kC(e);function Ju(e,t,n,r){if(!t)return;t=t===!0?{}:t;const i=r==="dark"?"dark":"light";if(!n){e[r]=n_({...t,palette:{mode:i,...t==null?void 0:t.palette}});return}const{palette:a,...l}=Yu({...n,palette:{mode:i,...t==null?void 0:t.palette}});return e[r]={...t,palette:a,opacity:{...Bg(i),...t==null?void 0:t.opacity},overlays:(t==null?void 0:t.overlays)||Dg(i)},l}function d_(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:i=!1,cssVarPrefix:a="mui",shouldSkipGeneratingVar:l=r_,colorSchemeSelector:c=n.light&&n.dark?"media":void 0,rootSelector:d=":root",...f}=e,y=Object.keys(n)[0],m=r||(n.light&&y!=="light"?"light":y),v=u_(a),{[m]:w,light:x,dark:_,...k}=n,C={...k};let O=w;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(O=!0),!O)throw new Error(Lr(21,m));const P=Ju(C,O,f,m);x&&!C.light&&Ju(C,x,void 0,"light"),_&&!C.dark&&Ju(C,_,void 0,"dark");let R={defaultColorScheme:m,...P,cssVarPrefix:a,colorSchemeSelector:c,rootSelector:d,getCssVar:v,colorSchemes:C,font:{...WC(P.typography),...P.font},spacing:c_(f.spacing)};Object.keys(R.colorSchemes).forEach(V=>{const E=R.colorSchemes[V].palette,G=te=>{const H=te.split("-"),X=H[1],ee=H[2];return v(te,E[X][ee])};if(E.mode==="light"&&(J(E.common,"background","#fff"),J(E.common,"onBackground","#000")),E.mode==="dark"&&(J(E.common,"background","#000"),J(E.common,"onBackground","#fff")),l_(E,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),E.mode==="light"){J(E.Alert,"errorColor",wt(E.error.light,.6)),J(E.Alert,"infoColor",wt(E.info.light,.6)),J(E.Alert,"successColor",wt(E.success.light,.6)),J(E.Alert,"warningColor",wt(E.warning.light,.6)),J(E.Alert,"errorFilledBg",G("palette-error-main")),J(E.Alert,"infoFilledBg",G("palette-info-main")),J(E.Alert,"successFilledBg",G("palette-success-main")),J(E.Alert,"warningFilledBg",G("palette-warning-main")),J(E.Alert,"errorFilledColor",Er(()=>E.getContrastText(E.error.main))),J(E.Alert,"infoFilledColor",Er(()=>E.getContrastText(E.info.main))),J(E.Alert,"successFilledColor",Er(()=>E.getContrastText(E.success.main))),J(E.Alert,"warningFilledColor",Er(()=>E.getContrastText(E.warning.main))),J(E.Alert,"errorStandardBg",St(E.error.light,.9)),J(E.Alert,"infoStandardBg",St(E.info.light,.9)),J(E.Alert,"successStandardBg",St(E.success.light,.9)),J(E.Alert,"warningStandardBg",St(E.warning.light,.9)),J(E.Alert,"errorIconColor",G("palette-error-main")),J(E.Alert,"infoIconColor",G("palette-info-main")),J(E.Alert,"successIconColor",G("palette-success-main")),J(E.Alert,"warningIconColor",G("palette-warning-main")),J(E.AppBar,"defaultBg",G("palette-grey-100")),J(E.Avatar,"defaultBg",G("palette-grey-400")),J(E.Button,"inheritContainedBg",G("palette-grey-300")),J(E.Button,"inheritContainedHoverBg",G("palette-grey-A100")),J(E.Chip,"defaultBorder",G("palette-grey-400")),J(E.Chip,"defaultAvatarColor",G("palette-grey-700")),J(E.Chip,"defaultIconColor",G("palette-grey-700")),J(E.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),J(E.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),J(E.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),J(E.LinearProgress,"primaryBg",St(E.primary.main,.62)),J(E.LinearProgress,"secondaryBg",St(E.secondary.main,.62)),J(E.LinearProgress,"errorBg",St(E.error.main,.62)),J(E.LinearProgress,"infoBg",St(E.info.main,.62)),J(E.LinearProgress,"successBg",St(E.success.main,.62)),J(E.LinearProgress,"warningBg",St(E.warning.main,.62)),J(E.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.11)`),J(E.Slider,"primaryTrack",St(E.primary.main,.62)),J(E.Slider,"secondaryTrack",St(E.secondary.main,.62)),J(E.Slider,"errorTrack",St(E.error.main,.62)),J(E.Slider,"infoTrack",St(E.info.main,.62)),J(E.Slider,"successTrack",St(E.success.main,.62)),J(E.Slider,"warningTrack",St(E.warning.main,.62));const te=Qa(E.background.default,.8);J(E.SnackbarContent,"bg",te),J(E.SnackbarContent,"color",Er(()=>E.getContrastText(te))),J(E.SpeedDialAction,"fabHoverBg",Qa(E.background.paper,.15)),J(E.StepConnector,"border",G("palette-grey-400")),J(E.StepContent,"border",G("palette-grey-400")),J(E.Switch,"defaultColor",G("palette-common-white")),J(E.Switch,"defaultDisabledColor",G("palette-grey-100")),J(E.Switch,"primaryDisabledColor",St(E.primary.main,.62)),J(E.Switch,"secondaryDisabledColor",St(E.secondary.main,.62)),J(E.Switch,"errorDisabledColor",St(E.error.main,.62)),J(E.Switch,"infoDisabledColor",St(E.info.main,.62)),J(E.Switch,"successDisabledColor",St(E.success.main,.62)),J(E.Switch,"warningDisabledColor",St(E.warning.main,.62)),J(E.TableCell,"border",St(Za(E.divider,1),.88)),J(E.Tooltip,"bg",Za(E.grey[700],.92))}if(E.mode==="dark"){J(E.Alert,"errorColor",St(E.error.light,.6)),J(E.Alert,"infoColor",St(E.info.light,.6)),J(E.Alert,"successColor",St(E.success.light,.6)),J(E.Alert,"warningColor",St(E.warning.light,.6)),J(E.Alert,"errorFilledBg",G("palette-error-dark")),J(E.Alert,"infoFilledBg",G("palette-info-dark")),J(E.Alert,"successFilledBg",G("palette-success-dark")),J(E.Alert,"warningFilledBg",G("palette-warning-dark")),J(E.Alert,"errorFilledColor",Er(()=>E.getContrastText(E.error.dark))),J(E.Alert,"infoFilledColor",Er(()=>E.getContrastText(E.info.dark))),J(E.Alert,"successFilledColor",Er(()=>E.getContrastText(E.success.dark))),J(E.Alert,"warningFilledColor",Er(()=>E.getContrastText(E.warning.dark))),J(E.Alert,"errorStandardBg",wt(E.error.light,.9)),J(E.Alert,"infoStandardBg",wt(E.info.light,.9)),J(E.Alert,"successStandardBg",wt(E.success.light,.9)),J(E.Alert,"warningStandardBg",wt(E.warning.light,.9)),J(E.Alert,"errorIconColor",G("palette-error-main")),J(E.Alert,"infoIconColor",G("palette-info-main")),J(E.Alert,"successIconColor",G("palette-success-main")),J(E.Alert,"warningIconColor",G("palette-warning-main")),J(E.AppBar,"defaultBg",G("palette-grey-900")),J(E.AppBar,"darkBg",G("palette-background-paper")),J(E.AppBar,"darkColor",G("palette-text-primary")),J(E.Avatar,"defaultBg",G("palette-grey-600")),J(E.Button,"inheritContainedBg",G("palette-grey-800")),J(E.Button,"inheritContainedHoverBg",G("palette-grey-700")),J(E.Chip,"defaultBorder",G("palette-grey-700")),J(E.Chip,"defaultAvatarColor",G("palette-grey-300")),J(E.Chip,"defaultIconColor",G("palette-grey-300")),J(E.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),J(E.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),J(E.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),J(E.LinearProgress,"primaryBg",wt(E.primary.main,.5)),J(E.LinearProgress,"secondaryBg",wt(E.secondary.main,.5)),J(E.LinearProgress,"errorBg",wt(E.error.main,.5)),J(E.LinearProgress,"infoBg",wt(E.info.main,.5)),J(E.LinearProgress,"successBg",wt(E.success.main,.5)),J(E.LinearProgress,"warningBg",wt(E.warning.main,.5)),J(E.Skeleton,"bg",`rgba(${G("palette-text-primaryChannel")} / 0.13)`),J(E.Slider,"primaryTrack",wt(E.primary.main,.5)),J(E.Slider,"secondaryTrack",wt(E.secondary.main,.5)),J(E.Slider,"errorTrack",wt(E.error.main,.5)),J(E.Slider,"infoTrack",wt(E.info.main,.5)),J(E.Slider,"successTrack",wt(E.success.main,.5)),J(E.Slider,"warningTrack",wt(E.warning.main,.5));const te=Qa(E.background.default,.98);J(E.SnackbarContent,"bg",te),J(E.SnackbarContent,"color",Er(()=>E.getContrastText(te))),J(E.SpeedDialAction,"fabHoverBg",Qa(E.background.paper,.15)),J(E.StepConnector,"border",G("palette-grey-600")),J(E.StepContent,"border",G("palette-grey-600")),J(E.Switch,"defaultColor",G("palette-grey-300")),J(E.Switch,"defaultDisabledColor",G("palette-grey-600")),J(E.Switch,"primaryDisabledColor",wt(E.primary.main,.55)),J(E.Switch,"secondaryDisabledColor",wt(E.secondary.main,.55)),J(E.Switch,"errorDisabledColor",wt(E.error.main,.55)),J(E.Switch,"infoDisabledColor",wt(E.info.main,.55)),J(E.Switch,"successDisabledColor",wt(E.success.main,.55)),J(E.Switch,"warningDisabledColor",wt(E.warning.main,.55)),J(E.TableCell,"border",wt(Za(E.divider,1),.68)),J(E.Tooltip,"bg",Za(E.grey[700],.92))}zr(E.background,"default"),zr(E.background,"paper"),zr(E.common,"background"),zr(E.common,"onBackground"),zr(E,"divider"),Object.keys(E).forEach(te=>{const H=E[te];H&&typeof H=="object"&&(H.main&&J(E[te],"mainChannel",as(fs(H.main))),H.light&&J(E[te],"lightChannel",as(fs(H.light))),H.dark&&J(E[te],"darkChannel",as(fs(H.dark))),H.contrastText&&J(E[te],"contrastTextChannel",as(fs(H.contrastText))),te==="text"&&(zr(E[te],"primary"),zr(E[te],"secondary")),te==="action"&&(H.active&&zr(E[te],"active"),H.selected&&zr(E[te],"selected")))})}),R=t.reduce((V,E)=>cn(V,E),R);const M={prefix:a,disableCssColorScheme:i,shouldSkipGeneratingVar:l,getSelector:i_(R)},{vars:D,generateThemeVars:$,generateStyleSheets:z}=$C(R,M);return R.vars=D,Object.entries(R.colorSchemes[R.defaultColorScheme]).forEach(([V,E])=>{R[V]=E}),R.generateThemeVars=$,R.generateStyleSheets=z,R.generateSpacing=function(){return og(f.spacing,Au(this))},R.getColorSchemeSelector=MC(c),R.spacing=R.generateSpacing(),R.shouldSkipGeneratingVar=l,R.unstable_sxConfig={...is,...f==null?void 0:f.unstable_sxConfig},R.unstable_sx=function(E){return Co({sx:E,theme:this})},R.toRuntimeSource=a_,R}function jg(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Ku({...n===!0?{}:n.palette,mode:t})})}function Lg(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:i=n?void 0:{light:!0},defaultColorScheme:a=n==null?void 0:n.mode,...l}=e,c=a||"light",d=i==null?void 0:i[c],f={...i,...n?{[c]:{...typeof d!="boolean"&&d,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return Yu(e,...t);let y=n;"palette"in e||f[c]&&(f[c]!==!0?y=f[c].palette:c==="dark"&&(y={mode:"dark"}));const m=Yu({...e,palette:y},...t);return m.defaultColorScheme=c,m.colorSchemes=f,m.palette.mode==="light"&&(m.colorSchemes.light={...f.light!==!0&&f.light,palette:m.palette},jg(m,"dark",f.dark)),m.palette.mode==="dark"&&(m.colorSchemes.dark={...f.dark!==!0&&f.dark,palette:m.palette},jg(m,"light",f.light)),m}return!n&&!("light"in f)&&c==="light"&&(f.light=!0),d_({...l,colorSchemes:f,defaultColorScheme:c,...typeof r!="boolean"&&r},...t)}const tl=Lg();function nl(){const e=Fa(tl);return e[cs]||e}function f_({props:e,name:t}){return gC({props:e,name:t,defaultTheme:tl,themeId:cs})}function Fg(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Mn=e=>Fg(e)&&e!=="classes",Ce=cC({themeId:cs,defaultTheme:tl,rootShouldForwardProp:Mn}),p_=ot("MuiBox",["root"]),h_=Lg(),Dt=nC({themeId:cs,defaultTheme:h_,defaultClassName:p_.root,generateClassName:ag.generate});function g_(e){return b.jsx(QS,{...e,defaultTheme:tl,themeId:cs})}function m_(e){return function(n){return b.jsx(g_,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function y_(){return ig}function yt(e){return TC(e)}function rl(e){return parseInt(e,10)||0}const v_={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function b_(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const x_=L.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:l,value:c,...d}=t,{current:f}=L.useRef(c!=null),y=L.useRef(null),m=Zt(n,y),v=L.useRef(null),w=L.useRef(null),x=L.useCallback(()=>{const C=y.current,P=ur(C).getComputedStyle(C);if(P.width==="0px")return{outerHeightStyle:0,overflowing:!1};const R=w.current;R.style.width=P.width,R.value=C.value||t.placeholder||"x",R.value.slice(-1)===`
|
|
51
|
-
`&&(R.value+=" ");const M=P.boxSizing,D=rl(P.paddingBottom)+rl(P.paddingTop),$=rl(P.borderBottomWidth)+rl(P.borderTopWidth),z=R.scrollHeight;R.value="x";const V=R.scrollHeight;let E=z;a&&(E=Math.max(Number(a)*V,E)),i&&(E=Math.min(Number(i)*V,E)),E=Math.max(E,V);const G=E+(M==="border-box"?D+$:0),te=Math.abs(E-z)<=1;return{outerHeightStyle:G,overflowing:te}},[i,a,t.placeholder]),_=L.useCallback(()=>{const C=x();if(b_(C))return;const O=C.outerHeightStyle,P=y.current;v.current!==O&&(v.current=O,P.style.height=`${O}px`),P.style.overflow=C.overflowing?"hidden":""},[x]);_r(()=>{const C=()=>{_()};let O;const P=el(C),R=y.current,M=ur(R);M.addEventListener("resize",P);let D;return typeof ResizeObserver<"u"&&(D=new ResizeObserver(C),D.observe(R)),()=>{P.clear(),cancelAnimationFrame(O),M.removeEventListener("resize",P),D&&D.disconnect()}},[x,_]),_r(()=>{_()});const k=C=>{f||_(),r&&r(C)};return b.jsxs(L.Fragment,{children:[b.jsx("textarea",{value:c,onChange:k,ref:m,rows:a,style:l,...d}),b.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:w,tabIndex:-1,style:{...v_.shadow,...l,paddingTop:0,paddingBottom:0}})]})});function Zu(e){return typeof e=="string"}function si({props:e,states:t,muiFormControl:n}){return t.reduce((r,i)=>(r[i]=e[i],n&&typeof e[i]>"u"&&(r[i]=n[i]),r),{})}const Qu=L.createContext(void 0);function ai(){return L.useContext(Qu)}const vt=IC;function Ng(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function ol(e,t=!1){return e&&(Ng(e.value)&&e.value!==""||t&&Ng(e.defaultValue)&&e.defaultValue!=="")}function w_(e){return e.startAdornment}function S_(e){return ct("MuiInputBase",e)}const li=ot("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var zg;const il=(e,t)=>{const{ownerState:n}=e;return[t.root,n.formControl&&t.formControl,n.startAdornment&&t.adornedStart,n.endAdornment&&t.adornedEnd,n.error&&t.error,n.size==="small"&&t.sizeSmall,n.multiline&&t.multiline,n.color&&t[`color${je(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},sl=(e,t)=>{const{ownerState:n}=e;return[t.input,n.size==="small"&&t.inputSizeSmall,n.multiline&&t.inputMultiline,n.type==="search"&&t.inputTypeSearch,n.startAdornment&&t.inputAdornedStart,n.endAdornment&&t.inputAdornedEnd,n.hiddenLabel&&t.inputHiddenLabel]},C_=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:l,formControl:c,fullWidth:d,hiddenLabel:f,multiline:y,readOnly:m,size:v,startAdornment:w,type:x}=e,_={root:["root",`color${je(n)}`,r&&"disabled",i&&"error",d&&"fullWidth",l&&"focused",c&&"formControl",v&&v!=="medium"&&`size${je(v)}`,y&&"multiline",w&&"adornedStart",a&&"adornedEnd",f&&"hiddenLabel",m&&"readOnly"],input:["input",r&&"disabled",x==="search"&&"inputTypeSearch",y&&"inputMultiline",v==="small"&&"inputSizeSmall",f&&"inputHiddenLabel",w&&"inputAdornedStart",a&&"inputAdornedEnd",m&&"readOnly"]};return ft(_,S_,t)},al=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:il})(vt(({theme:e})=>({...e.typography.body1,color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${li.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),ll=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:sl})(vt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},i=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${li.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":i,"&:focus::-moz-placeholder":i,"&:focus::-ms-input-placeholder":i},[`&.${li.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:a})=>!a.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:a})=>a.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),Wg=m_({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),ed=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiInputBase"}),{"aria-describedby":i,autoComplete:a,autoFocus:l,className:c,color:d,components:f={},componentsProps:y={},defaultValue:m,disabled:v,disableInjectingGlobalStyles:w,endAdornment:x,error:_,fullWidth:k=!1,id:C,inputComponent:O="input",inputProps:P={},inputRef:R,margin:M,maxRows:D,minRows:$,multiline:z=!1,name:V,onBlur:E,onChange:G,onClick:te,onFocus:H,onKeyDown:X,onKeyUp:ee,placeholder:ae,readOnly:fe,renderSuffix:pe,rows:_e,size:We,slotProps:be={},slots:Be={},startAdornment:Ne,type:Me="text",value:Xe,...Ge}=r,ht=P.value!=null?P.value:Xe,{current:le}=L.useRef(ht!=null),ue=L.useRef(),he=L.useCallback(F=>{},[]),ge=Zt(ue,R,P.ref,he),[de,Te]=L.useState(!1),ve=ai(),ke=si({props:r,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ke.focused=ve?ve.focused:de,L.useEffect(()=>{!ve&&v&&de&&(Te(!1),E&&E())},[ve,v,de,E]);const qe=ve&&ve.onFilled,De=ve&&ve.onEmpty,Re=L.useCallback(F=>{ol(F)?qe&&qe():De&&De()},[qe,De]);_r(()=>{le&&Re({value:ht})},[ht,Re,le]);const Fe=F=>{H&&H(F),P.onFocus&&P.onFocus(F),ve&&ve.onFocus?ve.onFocus(F):Te(!0)},tt=F=>{E&&E(F),P.onBlur&&P.onBlur(F),ve&&ve.onBlur?ve.onBlur(F):Te(!1)},$e=(F,...q)=>{if(!le){const Z=F.target||ue.current;if(Z==null)throw new Error(Lr(1));Re({value:Z.value})}P.onChange&&P.onChange(F,...q),G&&G(F,...q)};L.useEffect(()=>{Re(ue.current)},[]);const st=F=>{ue.current&&F.currentTarget===F.target&&ue.current.focus(),te&&te(F)};let ye=O,At=P;z&&ye==="input"&&(_e?At={type:void 0,minRows:_e,maxRows:_e,...At}:At={type:void 0,maxRows:D,minRows:$,...At},ye=x_);const Nt=F=>{Re(F.animationName==="mui-auto-fill-cancel"?ue.current:{value:"x"})};L.useEffect(()=>{ve&&ve.setAdornedStart(!!Ne)},[ve,Ne]);const yn={...r,color:ke.color||"primary",disabled:ke.disabled,endAdornment:x,error:ke.error,focused:ke.focused,formControl:ve,fullWidth:k,hiddenLabel:ke.hiddenLabel,multiline:z,size:ke.size,startAdornment:Ne,type:Me},T=C_(yn),h=Be.root||f.Root||al,g=be.root||y.root||{},B=Be.input||f.Input||ll;return At={...At,...be.input??y.input},b.jsxs(L.Fragment,{children:[!w&&typeof Wg=="function"&&(zg||(zg=b.jsx(Wg,{}))),b.jsxs(h,{...g,ref:n,onClick:st,...Ge,...!Zu(h)&&{ownerState:{...yn,...g.ownerState}},className:Pe(T.root,g.className,c,fe&&"MuiInputBase-readOnly"),children:[Ne,b.jsx(Qu.Provider,{value:null,children:b.jsx(B,{"aria-invalid":ke.error,"aria-describedby":i,autoComplete:a,autoFocus:l,defaultValue:m,disabled:ke.disabled,id:C,onAnimationStart:Nt,name:V,placeholder:ae,readOnly:fe,required:ke.required,rows:_e,value:ht,onKeyDown:X,onKeyUp:ee,type:Me,...At,...!Zu(B)&&{as:ye,ownerState:{...yn,...At.ownerState}},ref:ge,className:Pe(T.input,At.className,fe&&"MuiInputBase-readOnly"),onBlur:tt,onChange:$e,onFocus:Fe})}),x,pe?pe({...ke,startAdornment:Ne}):null]})]})});function __(e){return typeof e.main=="string"}function E_(e,t=[]){if(!__(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function Wr(e=[]){return([,t])=>t&&E_(t,e)}function R_(e){return ct("MuiInput",e)}const ps={...li,...ot("MuiInput",["root","underline","input"])},P_=e=>{const{classes:t,disableUnderline:n}=e,i=ft({root:["root",!n&&"underline"],input:["input"]},R_,t);return{...t,...i}},T_=Ce(al,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...il(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${ps.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ps.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${ps.disabled}, .${ps.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${ps.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wr()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),I_=Ce(ll,{name:"MuiInput",slot:"Input",overridesResolver:sl})({}),cl=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:c=!1,inputComponent:d="input",multiline:f=!1,slotProps:y,slots:m={},type:v="text",...w}=r,x=P_(r),k={root:{ownerState:{disableUnderline:i}}},C=y??l?cn(y??l,k):k,O=m.root??a.Root??T_,P=m.input??a.Input??I_;return b.jsx(ed,{slots:{root:O,input:P},slotProps:C,fullWidth:c,inputComponent:d,multiline:f,ref:n,type:v,...w,classes:x})});cl&&(cl.muiName="Input");function k_(e){return ct("MuiFilledInput",e)}const _o={...li,...ot("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])};function O_(e){return ct("MuiSvgIcon",e)}ot("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const A_=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${je(t)}`,`fontSize${je(n)}`]};return ft(i,O_,r)},$_=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${je(n.color)}`],t[`fontSize${je(n.fontSize)}`]]}})(vt(({theme:e})=>{var t,n,r,i,a,l,c,d,f,y,m,v,w,x;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:(i=(t=e.transitions)==null?void 0:t.create)==null?void 0:i.call(t,"fill",{duration:(r=(n=(e.vars??e).transitions)==null?void 0:n.duration)==null?void 0:r.shorter}),variants:[{props:_=>!_.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:((l=(a=e.typography)==null?void 0:a.pxToRem)==null?void 0:l.call(a,20))||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:((d=(c=e.typography)==null?void 0:c.pxToRem)==null?void 0:d.call(c,24))||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:((y=(f=e.typography)==null?void 0:f.pxToRem)==null?void 0:y.call(f,35))||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,_])=>_&&_.main).map(([_])=>{var k,C;return{props:{color:_},style:{color:(C=(k=(e.vars??e).palette)==null?void 0:k[_])==null?void 0:C.main}}}),{props:{color:"action"},style:{color:(v=(m=(e.vars??e).palette)==null?void 0:m.action)==null?void 0:v.active}},{props:{color:"disabled"},style:{color:(x=(w=(e.vars??e).palette)==null?void 0:w.action)==null?void 0:x.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}})),ul=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:l="inherit",component:c="svg",fontSize:d="medium",htmlColor:f,inheritViewBox:y=!1,titleAccess:m,viewBox:v="0 0 24 24",...w}=r,x=L.isValidElement(i)&&i.type==="svg",_={...r,color:l,component:c,fontSize:d,instanceFontSize:t.fontSize,inheritViewBox:y,viewBox:v,hasSvgAsChild:x},k={};y||(k.viewBox=v);const C=A_(_);return b.jsxs($_,{as:c,className:Pe(C.root,a),focusable:"false",color:f,"aria-hidden":m?void 0:!0,role:m?"img":void 0,ref:n,...k,...w,...x&&i.props,ownerState:_,children:[x?i.props.children:i,m?b.jsx("title",{children:m}):null]})});ul&&(ul.muiName="SvgIcon");function Cn(e,t){function n(r,i){return b.jsx(ul,{"data-testid":`${t}Icon`,ref:i,...r,children:e})}return n.muiName=ul.muiName,L.memo(L.forwardRef(n))}const M_=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:i,size:a,hiddenLabel:l,multiline:c}=e,d={root:["root",!n&&"underline",r&&"adornedStart",i&&"adornedEnd",a==="small"&&`size${je(a)}`,l&&"hiddenLabel",c&&"multiline"],input:["input"]},f=ft(d,k_,t);return{...t,...f}},B_=Ce(al,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...il(e,t),!n.disableUnderline&&t.underline]}})(vt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",i=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:i,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${_o.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${_o.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a},variants:[{props:({ownerState:l})=>!l.disableUnderline,style:{"&::after":{left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${_o.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_o.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`:n}`,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:e.transitions.create("border-bottom-color",{duration:e.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${_o.disabled}, .${_o.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_o.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(Wr()).map(([l])=>{var c;return{props:{disableUnderline:!1,color:l},style:{"&::after":{borderBottom:`2px solid ${(c=(e.vars||e).palette[l])==null?void 0:c.main}`}}}}),{props:({ownerState:l})=>l.startAdornment,style:{paddingLeft:12}},{props:({ownerState:l})=>l.endAdornment,style:{paddingRight:12}},{props:({ownerState:l})=>l.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:l,size:c})=>l.multiline&&c==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:l})=>l.multiline&&l.hiddenLabel&&l.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),D_=Ce(ll,{name:"MuiFilledInput",slot:"Input",overridesResolver:sl})(vt(({theme:e})=>({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),dl=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiFilledInput"}),{disableUnderline:i=!1,components:a={},componentsProps:l,fullWidth:c=!1,hiddenLabel:d,inputComponent:f="input",multiline:y=!1,slotProps:m,slots:v={},type:w="text",...x}=r,_={...r,disableUnderline:i,fullWidth:c,inputComponent:f,multiline:y,type:w},k=M_(r),C={root:{ownerState:_},input:{ownerState:_}},O=m??l?cn(C,m??l):C,P=v.root??a.Root??B_,R=v.input??a.Input??D_;return b.jsx(ed,{slots:{root:P,input:R},componentsProps:O,fullWidth:c,inputComponent:f,multiline:y,ref:n,type:w,...x,classes:k})});dl&&(dl.muiName="Input");var Ug;const j_=Ce("fieldset",{shouldForwardProp:Mn})({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),L_=Ce("legend",{shouldForwardProp:Mn})(vt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function F_(e){const{children:t,classes:n,className:r,label:i,notched:a,...l}=e,c=i!=null&&i!=="",d={...e,notched:a,withLabel:c};return b.jsx(j_,{"aria-hidden":!0,className:r,ownerState:d,...l,children:b.jsx(L_,{ownerState:d,children:c?b.jsx("span",{children:i}):Ug||(Ug=b.jsx("span",{className:"notranslate",children:""}))})})}function N_(e){return ct("MuiOutlinedInput",e)}const Rr={...li,...ot("MuiOutlinedInput",["root","notchedOutline","input"])},z_=e=>{const{classes:t}=e,r=ft({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},N_,t);return{...t,...r}},W_=Ce(al,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:il})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${Rr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${Rr.focused} .${Rr.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(Wr()).map(([n])=>({props:{color:n},style:{[`&.${Rr.focused} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${Rr.error} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${Rr.disabled} .${Rr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),U_=Ce(F_,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(vt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}})),H_=Ce(ll,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:sl})(vt(({theme:e})=>({padding:"16.5px 14px",...!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},...e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),fl=L.forwardRef(function(t,n){var r;const i=yt({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:l=!1,inputComponent:c="input",label:d,multiline:f=!1,notched:y,slots:m={},type:v="text",...w}=i,x=z_(i),_=ai(),k=si({props:i,muiFormControl:_,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),C={...i,color:k.color||"primary",disabled:k.disabled,error:k.error,focused:k.focused,formControl:_,fullWidth:l,hiddenLabel:k.hiddenLabel,multiline:f,size:k.size,type:v},O=m.root??a.Root??W_,P=m.input??a.Input??H_;return b.jsx(ed,{slots:{root:O,input:P},renderSuffix:R=>b.jsx(U_,{ownerState:C,className:x.notchedOutline,label:d!=null&&d!==""&&k.required?r||(r=b.jsxs(L.Fragment,{children:[d," ","*"]})):d,notched:typeof y<"u"?y:!!(R.startAdornment||R.filled||R.focused)}),fullWidth:l,inputComponent:c,multiline:f,ref:n,type:v,...w,classes:{...x,notchedOutline:null}})});fl&&(fl.muiName="Input");function G_(e){return ct("MuiFormLabel",e)}const hs=ot("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),q_=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:l,required:c}=e,d={root:["root",`color${je(n)}`,i&&"disabled",a&&"error",l&&"filled",r&&"focused",c&&"required"],asterisk:["asterisk",a&&"error"]};return ft(d,G_,t)},V_=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...e.color==="secondary"&&t.colorSecondary,...e.filled&&t.filled})})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{[`&.${hs.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${hs.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hs.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),K_=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(vt(({theme:e})=>({[`&.${hs.error}`]:{color:(e.vars||e).palette.error.main}}))),Y_=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiFormLabel"}),{children:i,className:a,color:l,component:c="label",disabled:d,error:f,filled:y,focused:m,required:v,...w}=r,x=ai(),_=si({props:r,muiFormControl:x,states:["color","required","focused","disabled","error","filled"]}),k={...r,color:_.color||"primary",component:c,disabled:_.disabled,error:_.error,filled:_.filled,focused:_.focused,required:_.required},C=q_(k);return b.jsxs(V_,{as:c,ownerState:k,className:Pe(C.root,a),ref:n,...w,children:[i,_.required&&b.jsxs(K_,{ownerState:k,"aria-hidden":!0,className:C.asterisk,children:[" ","*"]})]})});function X_(e){return ct("MuiInputLabel",e)}ot("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const J_=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:l,required:c}=e,d={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${je(r)}`,l],asterisk:[c&&"asterisk"]},f=ft(d,X_,t);return{...t,...f}},Z_=Ce(Y_,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${hs.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(vt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),td=L.forwardRef(function(t,n){const r=yt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,margin:a,shrink:l,variant:c,className:d,...f}=r,y=ai();let m=l;typeof m>"u"&&y&&(m=y.filled||y.focused||y.adornedStart);const v=si({props:r,muiFormControl:y,states:["size","variant","required","focused"]}),w={...r,disableAnimation:i,formControl:y,shrink:m,size:v.size,variant:v.variant,required:v.required,focused:v.focused},x=J_(w);return b.jsx(Z_,{"data-shrink":m,ref:n,className:Pe(x.root,d),...f,ownerState:w,classes:x})});function Q_(e){return ct("MuiFormControl",e)}ot("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const eE=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${je(n)}`,r&&"fullWidth"]};return ft(i,Q_,t)},tE=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>({...t.root,...t[`margin${je(e.margin)}`],...e.fullWidth&&t.fullWidth})})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),nd=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiFormControl"}),{children:i,className:a,color:l="primary",component:c="div",disabled:d=!1,error:f=!1,focused:y,fullWidth:m=!1,hiddenLabel:v=!1,margin:w="none",required:x=!1,size:_="medium",variant:k="outlined",...C}=r,O={...r,color:l,component:c,disabled:d,error:f,fullWidth:m,hiddenLabel:v,margin:w,required:x,size:_,variant:k},P=eE(O),[R,M]=L.useState(()=>{let H=!1;return i&&L.Children.forEach(i,X=>{if(!Wu(X,["Input","Select"]))return;const ee=Wu(X,["Select"])?X.props.input:X;ee&&w_(ee.props)&&(H=!0)}),H}),[D,$]=L.useState(()=>{let H=!1;return i&&L.Children.forEach(i,X=>{Wu(X,["Input","Select"])&&(ol(X.props,!0)||ol(X.props.inputProps,!0))&&(H=!0)}),H}),[z,V]=L.useState(!1);d&&z&&V(!1);const E=y!==void 0&&!d?y:z;let G;L.useRef(!1);const te=L.useMemo(()=>({adornedStart:R,setAdornedStart:M,color:l,disabled:d,error:f,filled:D,focused:E,fullWidth:m,hiddenLabel:v,size:_,onBlur:()=>{V(!1)},onEmpty:()=>{$(!1)},onFilled:()=>{$(!0)},onFocus:()=>{V(!0)},registerEffect:G,required:x,variant:k}),[R,l,d,f,D,E,m,v,G,x,_,k]);return b.jsx(Qu.Provider,{value:te,children:b.jsx(tE,{as:c,ownerState:O,className:Pe(P.root,a),ref:n,...C,children:i})})});function nE(e){return ct("MuiFormHelperText",e)}const Hg=ot("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Gg;const rE=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:l,focused:c,required:d}=e,f={root:["root",i&&"disabled",a&&"error",r&&`size${je(r)}`,n&&"contained",c&&"focused",l&&"filled",d&&"required"]};return ft(f,nE,t)},oE=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${je(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(vt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Hg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Hg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),iE=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:l="p",disabled:c,error:d,filled:f,focused:y,margin:m,required:v,variant:w,...x}=r,_=ai(),k=si({props:r,muiFormControl:_,states:["variant","size","disabled","error","filled","focused","required"]}),C={...r,component:l,contained:k.variant==="filled"||k.variant==="outlined",variant:k.variant,size:k.size,disabled:k.disabled,error:k.error,filled:k.filled,focused:k.focused,required:k.required};delete C.ownerState;const O=rE(C);return b.jsx(oE,{as:l,className:Pe(O.root,a),ref:n,...x,ownerState:C,children:i===" "?Gg||(Gg=b.jsx("span",{className:"notranslate",children:""})):i})}),ci=L.createContext({});function sE(e){return ct("MuiList",e)}ot("MuiList",["root","padding","dense","subheader"]);const aE=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return ft({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},sE,t)},lE=Ce("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),rd=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiList"}),{children:i,className:a,component:l="ul",dense:c=!1,disablePadding:d=!1,subheader:f,...y}=r,m=L.useMemo(()=>({dense:c}),[c]),v={...r,component:l,dense:c,disablePadding:d},w=aE(v);return b.jsx(ci.Provider,{value:m,children:b.jsxs(lE,{as:l,className:Pe(w.root,a),ref:n,ownerState:v,...y,children:[f,i]})})});function od(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function qg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Vg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function gs(e,t,n,r,i,a){let l=!1,c=i(e,t,t?n:!1);for(;c;){if(c===e.firstChild){if(l)return!1;l=!0}const d=r?!1:c.disabled||c.getAttribute("aria-disabled")==="true";if(!c.hasAttribute("tabindex")||!Vg(c,a)||d)c=i(e,c,n);else return c.focus(),!0}return!1}const cE=L.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:l,className:c,disabledItemsFocusable:d=!1,disableListWrap:f=!1,onKeyDown:y,variant:m="selectedMenu",...v}=t,w=L.useRef(null),x=L.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});_r(()=>{i&&w.current.focus()},[i]),L.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(P,{direction:R})=>{const M=!w.current.style.width;if(P.clientHeight<w.current.clientHeight&&M){const D=`${Sg(ur(P))}px`;w.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=D,w.current.style.width=`calc(100% + ${D})`}return w.current}}),[]);const _=P=>{const R=w.current,M=P.key;if(P.ctrlKey||P.metaKey||P.altKey){y&&y(P);return}const $=Yn(R).activeElement;if(M==="ArrowDown")P.preventDefault(),gs(R,$,f,d,od);else if(M==="ArrowUp")P.preventDefault(),gs(R,$,f,d,qg);else if(M==="Home")P.preventDefault(),gs(R,null,f,d,od);else if(M==="End")P.preventDefault(),gs(R,null,f,d,qg);else if(M.length===1){const z=x.current,V=M.toLowerCase(),E=performance.now();z.keys.length>0&&(E-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=E,z.keys.push(V);const G=$&&!z.repeating&&Vg($,z);z.previousKeyMatched&&(G||gs(R,$,!1,d,od,z))?P.preventDefault():z.previousKeyMatched=!1}y&&y(P)},k=Zt(w,n);let C=-1;L.Children.forEach(l,(P,R)=>{if(!L.isValidElement(P)){C===R&&(C+=1,C>=l.length&&(C=-1));return}P.props.disabled||(m==="selectedMenu"&&P.props.selected||C===-1)&&(C=R),C===R&&(P.props.disabled||P.props.muiSkipListHighlight||P.type.muiSkipListHighlight)&&(C+=1,C>=l.length&&(C=-1))});const O=L.Children.map(l,(P,R)=>{if(R===C){const M={};return a&&(M.autoFocus=!0),P.props.tabIndex===void 0&&m==="selectedMenu"&&(M.tabIndex=0),L.cloneElement(P,M)}return P});return b.jsx(rd,{role:"menu",ref:k,className:c,onKeyDown:_,tabIndex:i?0:-1,...v,children:O})});function Kg(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.includes(r))continue;n[r]=e[r]}return n}function id(e,t){return id=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},id(e,t)}function Yg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,id(e,t)}const Xg={disabled:!1},pl=Y.createContext(null);var uE=function(t){return t.scrollTop},ms="unmounted",Eo="exited",Ro="entering",ui="entered",sd="exiting",Pr=function(e){Yg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=i,c=l&&!l.isMounting?r.enter:r.appear,d;return a.appearStatus=null,r.in?c?(d=Eo,a.appearStatus=Ro):d=ui:r.unmountOnExit||r.mountOnEnter?d=ms:d=Eo,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var l=i.in;return l&&a.status===ms?{status:Eo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var l=this.state.status;this.props.in?l!==Ro&&l!==ui&&(a=Ro):(l===Ro||l===ui)&&(a=sd)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,l,c;return a=l=c=i,i!=null&&typeof i!="number"&&(a=i.exit,l=i.enter,c=i.appear!==void 0?i.appear:l),{exit:a,enter:l,appear:c}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===Ro){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this);l&&uE(l)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eo&&this.setState({status:ms})},n.performEnter=function(i){var a=this,l=this.props.enter,c=this.context?this.context.isMounting:i,d=this.props.nodeRef?[c]:[wo.findDOMNode(this),c],f=d[0],y=d[1],m=this.getTimeouts(),v=c?m.appear:m.enter;if(!i&&!l||Xg.disabled){this.safeSetState({status:ui},function(){a.props.onEntered(f)});return}this.props.onEnter(f,y),this.safeSetState({status:Ro},function(){a.props.onEntering(f,y),a.onTransitionEnd(v,function(){a.safeSetState({status:ui},function(){a.props.onEntered(f,y)})})})},n.performExit=function(){var i=this,a=this.props.exit,l=this.getTimeouts(),c=this.props.nodeRef?void 0:wo.findDOMNode(this);if(!a||Xg.disabled){this.safeSetState({status:Eo},function(){i.props.onExited(c)});return}this.props.onExit(c),this.safeSetState({status:sd},function(){i.props.onExiting(c),i.onTransitionEnd(l.exit,function(){i.safeSetState({status:Eo},function(){i.props.onExited(c)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,l=!0;return this.nextCallback=function(c){l&&(l=!1,a.nextCallback=null,i(c))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:wo.findDOMNode(this),c=i==null&&!this.props.addEndListener;if(!l||c){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],f=d[0],y=d[1];this.props.addEndListener(f,y)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ms)return null;var a=this.props,l=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 c=Kg(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return Y.createElement(pl.Provider,{value:null},typeof l=="function"?l(i,c):Y.cloneElement(Y.Children.only(l),c))},t}(Y.Component);Pr.contextType=pl,Pr.propTypes={};function di(){}Pr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:di,onEntering:di,onEntered:di,onExit:di,onExiting:di,onExited:di},Pr.UNMOUNTED=ms,Pr.EXITED=Eo,Pr.ENTERING=Ro,Pr.ENTERED=ui,Pr.EXITING=sd;function dE(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ad(e,t){var n=function(a){return t&&Y.isValidElement(a)?t(a):a},r=Object.create(null);return e&&Y.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function fE(e,t){e=e||{},t=t||{};function n(y){return y in t?t[y]:e[y]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var l,c={};for(var d in t){if(r[d])for(l=0;l<r[d].length;l++){var f=r[d][l];c[r[d][l]]=n(f)}c[d]=n(d)}for(l=0;l<i.length;l++)c[i[l]]=n(i[l]);return c}function Po(e,t,n){return n[t]!=null?n[t]:e.props[t]}function pE(e,t){return ad(e.children,function(n){return Y.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:Po(n,"appear",e),enter:Po(n,"enter",e),exit:Po(n,"exit",e)})})}function hE(e,t,n){var r=ad(e.children),i=fE(t,r);return Object.keys(i).forEach(function(a){var l=i[a];if(Y.isValidElement(l)){var c=a in t,d=a in r,f=t[a],y=Y.isValidElement(f)&&!f.props.in;d&&(!c||y)?i[a]=Y.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:Po(l,"exit",e),enter:Po(l,"enter",e)}):!d&&c&&!y?i[a]=Y.cloneElement(l,{in:!1}):d&&c&&Y.isValidElement(f)&&(i[a]=Y.cloneElement(l,{onExited:n.bind(null,l),in:f.props.in,exit:Po(l,"exit",e),enter:Po(l,"enter",e)}))}}),i}var gE=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},mE={component:"div",childFactory:function(t){return t}},ld=function(e){Yg(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var l=a.handleExited.bind(dE(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(i,a){var l=a.children,c=a.handleExited,d=a.firstRender;return{children:d?pE(i,c):hE(i,l,c),firstRender:!1}},n.handleExited=function(i,a){var l=ad(this.props.children);i.key in l||(i.props.onExited&&i.props.onExited(a),this.mounted&&this.setState(function(c){var d=ua({},c.children);return delete d[i.key],{children:d}}))},n.render=function(){var i=this.props,a=i.component,l=i.childFactory,c=Kg(i,["component","childFactory"]),d=this.state.contextValue,f=gE(this.state.children).map(l);return delete c.appear,delete c.enter,delete c.exit,a===null?Y.createElement(pl.Provider,{value:d},f):Y.createElement(pl.Provider,{value:d},Y.createElement(a,c,f))},t}(Y.Component);ld.propTypes={},ld.defaultProps=mE;const Jg=e=>e.scrollTop;function hl(e,t){const{timeout:n,easing:r,style:i={}}=e;return{duration:i.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:i.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:i.transitionDelay}}function cd(e){return`scale(${e}, ${e**2})`}const yE={entering:{opacity:1,transform:cd(1)},entered:{opacity:1,transform:"none"}},ud=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),dd=L.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:l,in:c,onEnter:d,onEntered:f,onEntering:y,onExit:m,onExited:v,onExiting:w,style:x,timeout:_="auto",TransitionComponent:k=Pr,...C}=t,O=xg(),P=L.useRef(),R=nl(),M=L.useRef(null),D=Zt(M,ls(a),n),$=ee=>ae=>{if(ee){const fe=M.current;ae===void 0?ee(fe):ee(fe,ae)}},z=$(y),V=$((ee,ae)=>{Jg(ee);const{duration:fe,delay:pe,easing:_e}=hl({style:x,timeout:_,easing:l},{mode:"enter"});let We;_==="auto"?(We=R.transitions.getAutoHeightDuration(ee.clientHeight),P.current=We):We=fe,ee.style.transition=[R.transitions.create("opacity",{duration:We,delay:pe}),R.transitions.create("transform",{duration:ud?We:We*.666,delay:pe,easing:_e})].join(","),d&&d(ee,ae)}),E=$(f),G=$(w),te=$(ee=>{const{duration:ae,delay:fe,easing:pe}=hl({style:x,timeout:_,easing:l},{mode:"exit"});let _e;_==="auto"?(_e=R.transitions.getAutoHeightDuration(ee.clientHeight),P.current=_e):_e=ae,ee.style.transition=[R.transitions.create("opacity",{duration:_e,delay:fe}),R.transitions.create("transform",{duration:ud?_e:_e*.666,delay:ud?fe:fe||_e*.333,easing:pe})].join(","),ee.style.opacity=0,ee.style.transform=cd(.75),m&&m(ee)}),H=$(v),X=ee=>{_==="auto"&&O.start(P.current||0,ee),r&&r(M.current,ee)};return b.jsx(k,{appear:i,in:c,nodeRef:M,onEnter:V,onEntered:E,onEntering:z,onExit:te,onExited:H,onExiting:G,addEndListener:X,timeout:_==="auto"?null:_,...C,children:(ee,ae)=>L.cloneElement(a,{style:{opacity:0,transform:cd(.75),visibility:ee==="exited"&&!c?"hidden":void 0,...yE[ee],...x,...a.props.style},ref:D,...ae})})});dd&&(dd.muiSupportAuto=!0);function vE(e){const t=Yn(e);return t.body===e?ur(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function ys(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Zg(e){return parseInt(ur(e).getComputedStyle(e).paddingRight,10)||0}function bE(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Qg(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,l=>{const c=!a.includes(l),d=!bE(l);c&&d&&ys(l,i)})}function fd(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function xE(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(vE(r)){const l=Sg(ur(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${Zg(r)+l}px`;const c=Yn(r).querySelectorAll(".mui-fixed");[].forEach.call(c,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Zg(d)+l}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Yn(r).body;else{const l=r.parentElement,c=ur(r);a=(l==null?void 0:l.nodeName)==="HTML"&&c.getComputedStyle(l).overflowY==="scroll"?l:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:l,property:c})=>{a?l.style.setProperty(c,a):l.style.removeProperty(c)})}}function wE(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class SE{constructor(){this.modals=[],this.containers=[]}add(t,n){let r=this.modals.indexOf(t);if(r!==-1)return r;r=this.modals.length,this.modals.push(t),t.modalRef&&ys(t.modalRef,!1);const i=wE(n);Qg(n,t.mount,t.modalRef,i,!0);const a=fd(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=fd(this.containers,a=>a.modals.includes(t)),i=this.containers[r];i.restore||(i.restore=xE(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=fd(this.containers,l=>l.modals.includes(t)),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&ys(t.modalRef,n),Qg(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&ys(l.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const CE=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function _E(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function EE(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=r=>e.ownerDocument.querySelector(`input[type="radio"]${r}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function RE(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||EE(e))}function PE(e){const t=[],n=[];return Array.from(e.querySelectorAll(CE)).forEach((r,i)=>{const a=_E(r);a===-1||!RE(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function TE(){return!0}function IE(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=PE,isEnabled:l=TE,open:c}=e,d=L.useRef(!1),f=L.useRef(null),y=L.useRef(null),m=L.useRef(null),v=L.useRef(null),w=L.useRef(!1),x=L.useRef(null),_=Zt(ls(t),x),k=L.useRef(null);L.useEffect(()=>{!c||!x.current||(w.current=!n)},[n,c]),L.useEffect(()=>{if(!c||!x.current)return;const P=Yn(x.current);return x.current.contains(P.activeElement)||(x.current.hasAttribute("tabIndex")||x.current.setAttribute("tabIndex","-1"),w.current&&x.current.focus()),()=>{i||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[c]),L.useEffect(()=>{if(!c||!x.current)return;const P=Yn(x.current),R=$=>{k.current=$,!(r||!l()||$.key!=="Tab")&&P.activeElement===x.current&&$.shiftKey&&(d.current=!0,y.current&&y.current.focus())},M=()=>{var V,E;const $=x.current;if($===null)return;if(!P.hasFocus()||!l()||d.current){d.current=!1;return}if($.contains(P.activeElement)||r&&P.activeElement!==f.current&&P.activeElement!==y.current)return;if(P.activeElement!==v.current)v.current=null;else if(v.current!==null)return;if(!w.current)return;let z=[];if((P.activeElement===f.current||P.activeElement===y.current)&&(z=a(x.current)),z.length>0){const G=!!((V=k.current)!=null&&V.shiftKey&&((E=k.current)==null?void 0:E.key)==="Tab"),te=z[0],H=z[z.length-1];typeof te!="string"&&typeof H!="string"&&(G?H.focus():te.focus())}else $.focus()};P.addEventListener("focusin",M),P.addEventListener("keydown",R,!0);const D=setInterval(()=>{P.activeElement&&P.activeElement.tagName==="BODY"&&M()},50);return()=>{clearInterval(D),P.removeEventListener("focusin",M),P.removeEventListener("keydown",R,!0)}},[n,r,i,l,c,a]);const C=P=>{m.current===null&&(m.current=P.relatedTarget),w.current=!0,v.current=P.target;const R=t.props.onFocus;R&&R(P)},O=P=>{m.current===null&&(m.current=P.relatedTarget),w.current=!0};return b.jsxs(L.Fragment,{children:[b.jsx("div",{tabIndex:c?0:-1,onFocus:O,ref:f,"data-testid":"sentinelStart"}),L.cloneElement(t,{ref:_,onFocus:C}),b.jsx("div",{tabIndex:c?0:-1,onFocus:O,ref:y,"data-testid":"sentinelEnd"})]})}function kE(e){return typeof e=="function"?e():e}const OE=L.forwardRef(function(t,n){const{children:r,container:i,disablePortal:a=!1}=t,[l,c]=L.useState(null),d=Zt(L.isValidElement(r)?ls(r):null,n);if(_r(()=>{a||c(kE(i)||document.body)},[i,a]),_r(()=>{if(l&&!a)return Uu(n,l),()=>{Uu(n,null)}},[n,l,a]),a){if(L.isValidElement(r)){const f={ref:d};return L.cloneElement(r,f)}return b.jsx(L.Fragment,{children:r})}return b.jsx(L.Fragment,{children:l&&yx.createPortal(r,l)})});function dr(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:l,internalForwardedProps:c,...d}=t,{component:f,slots:y={[e]:void 0},slotProps:m={[e]:void 0},...v}=a,w=y[e]||r,x=Pg(m[e],i),{props:{component:_,...k},internalRef:C}=Rg({className:n,...d,externalForwardedProps:e==="root"?v:void 0,externalSlotProps:x}),O=Zt(C,x==null?void 0:x.ref,t.ref),P=l?l(k):{},R={...i,...P},M=e==="root"?_||f:_,D=Cg(w,{...e==="root"&&!f&&!y[e]&&c,...e!=="root"&&!y[e]&&c,...k,...M&&{as:M},ref:O},R);return Object.keys(P).forEach($=>{delete D[$]}),[w,D]}const AE={entering:{opacity:1},entered:{opacity:1}},$E=L.forwardRef(function(t,n){const r=nl(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:c,easing:d,in:f,onEnter:y,onEntered:m,onEntering:v,onExit:w,onExited:x,onExiting:_,style:k,timeout:C=i,TransitionComponent:O=Pr,...P}=t,R=L.useRef(null),M=Zt(R,ls(c),n),D=X=>ee=>{if(X){const ae=R.current;ee===void 0?X(ae):X(ae,ee)}},$=D(v),z=D((X,ee)=>{Jg(X);const ae=hl({style:k,timeout:C,easing:d},{mode:"enter"});X.style.webkitTransition=r.transitions.create("opacity",ae),X.style.transition=r.transitions.create("opacity",ae),y&&y(X,ee)}),V=D(m),E=D(_),G=D(X=>{const ee=hl({style:k,timeout:C,easing:d},{mode:"exit"});X.style.webkitTransition=r.transitions.create("opacity",ee),X.style.transition=r.transitions.create("opacity",ee),w&&w(X)}),te=D(x),H=X=>{a&&a(R.current,X)};return b.jsx(O,{appear:l,in:f,nodeRef:R,onEnter:z,onEntered:V,onEntering:$,onExit:G,onExited:te,onExiting:E,addEndListener:H,timeout:C,...P,children:(X,ee)=>L.cloneElement(c,{style:{opacity:0,visibility:X==="exited"&&!f?"hidden":void 0,...AE[X],...k,...c.props.style},ref:M,...ee})})});function ME(e){return ct("MuiBackdrop",e)}ot("MuiBackdrop",["root","invisible"]);const BE=e=>{const{ownerState:t,...n}=e;return n},DE=e=>{const{classes:t,invisible:n}=e;return ft({root:["root",n&&"invisible"]},ME,t)},jE=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),LE=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiBackdrop"}),{children:i,className:a,component:l="div",invisible:c=!1,open:d,components:f={},componentsProps:y={},slotProps:m={},slots:v={},TransitionComponent:w,transitionDuration:x,..._}=r,k={...r,component:l,invisible:c},C=DE(k),O={transition:w,root:f.Root,...v},P={...y,...m},R={slots:O,slotProps:P},[M,D]=dr("root",{elementType:jE,externalForwardedProps:R,className:Pe(C.root,a),ownerState:k}),[$,z]=dr("transition",{elementType:$E,externalForwardedProps:R,ownerState:k}),V=BE(z);return b.jsx($,{in:d,timeout:x,..._,...V,children:b.jsx(M,{"aria-hidden":!0,...D,classes:C,ref:n,children:i})})});function FE(e){return typeof e=="function"?e():e}function NE(e){return e?e.props.hasOwnProperty("in"):!1}const gl=new SE;function zE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:i=!1,onTransitionEnter:a,onTransitionExited:l,children:c,onClose:d,open:f,rootRef:y}=e,m=L.useRef({}),v=L.useRef(null),w=L.useRef(null),x=Zt(w,y),[_,k]=L.useState(!f),C=NE(c);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const P=()=>Yn(v.current),R=()=>(m.current.modalRef=w.current,m.current.mount=v.current,m.current),M=()=>{gl.mount(R(),{disableScrollLock:r}),w.current&&(w.current.scrollTop=0)},D=Nr(()=>{const ee=FE(t)||P().body;gl.add(R(),ee),w.current&&M()}),$=()=>gl.isTopModal(R()),z=Nr(ee=>{v.current=ee,ee&&(f&&$()?M():w.current&&ys(w.current,O))}),V=L.useCallback(()=>{gl.remove(R(),O)},[O]);L.useEffect(()=>()=>{V()},[V]),L.useEffect(()=>{f?D():(!C||!i)&&V()},[f,V,C,i,D]);const E=ee=>ae=>{var fe;(fe=ee.onKeyDown)==null||fe.call(ee,ae),!(ae.key!=="Escape"||ae.which===229||!$())&&(n||(ae.stopPropagation(),d&&d(ae,"escapeKeyDown")))},G=ee=>ae=>{var fe;(fe=ee.onClick)==null||fe.call(ee,ae),ae.target===ae.currentTarget&&d&&d(ae,"backdropClick")};return{getRootProps:(ee={})=>{const ae=_g(e);delete ae.onTransitionEnter,delete ae.onTransitionExited;const fe={...ae,...ee};return{role:"presentation",...fe,onKeyDown:E(fe),ref:x}},getBackdropProps:(ee={})=>{const ae=ee;return{"aria-hidden":!0,...ae,onClick:G(ae),open:f}},getTransitionProps:()=>{const ee=()=>{k(!1),a&&a()},ae=()=>{k(!0),l&&l(),i&&V()};return{onEnter:pg(ee,c==null?void 0:c.props.onEnter),onExited:pg(ae,c==null?void 0:c.props.onExited)}},rootRef:x,portalRef:z,isTopModal:$,exited:_,hasTransition:C}}function WE(e){return ct("MuiModal",e)}ot("MuiModal",["root","hidden","backdrop"]);const UE=e=>{const{open:t,exited:n,classes:r}=e;return ft({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},WE,r)},HE=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),GE=Ce(LE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),qE=L.forwardRef(function(t,n){const r=yt({name:"MuiModal",props:t}),{BackdropComponent:i=GE,BackdropProps:a,classes:l,className:c,closeAfterTransition:d=!1,children:f,container:y,component:m,components:v={},componentsProps:w={},disableAutoFocus:x=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:k=!1,disablePortal:C=!1,disableRestoreFocus:O=!1,disableScrollLock:P=!1,hideBackdrop:R=!1,keepMounted:M=!1,onBackdropClick:D,onClose:$,onTransitionEnter:z,onTransitionExited:V,open:E,slotProps:G={},slots:te={},theme:H,...X}=r,ee={...r,closeAfterTransition:d,disableAutoFocus:x,disableEnforceFocus:_,disableEscapeKeyDown:k,disablePortal:C,disableRestoreFocus:O,disableScrollLock:P,hideBackdrop:R,keepMounted:M},{getRootProps:ae,getBackdropProps:fe,getTransitionProps:pe,portalRef:_e,isTopModal:We,exited:be,hasTransition:Be}=zE({...ee,rootRef:n}),Ne={...ee,exited:be},Me=UE(Ne),Xe={};if(f.props.tabIndex===void 0&&(Xe.tabIndex="-1"),Be){const{onEnter:de,onExited:Te}=pe();Xe.onEnter=de,Xe.onExited=Te}const Ge={...X,slots:{root:v.Root,backdrop:v.Backdrop,...te},slotProps:{...w,...G}},[ht,le]=dr("root",{elementType:HE,externalForwardedProps:Ge,getSlotProps:ae,additionalProps:{ref:n,as:m},ownerState:Ne,className:Pe(c,Me==null?void 0:Me.root,!Ne.open&&Ne.exited&&(Me==null?void 0:Me.hidden))}),[ue,he]=dr("backdrop",{elementType:i,externalForwardedProps:Ge,additionalProps:a,getSlotProps:de=>fe({...de,onClick:Te=>{D&&D(Te),de!=null&&de.onClick&&de.onClick(Te)}}),className:Pe(a==null?void 0:a.className,Me==null?void 0:Me.backdrop),ownerState:Ne}),ge=Zt(a==null?void 0:a.ref,he.ref);return!M&&!E&&(!Be||be)?null:b.jsx(OE,{ref:_e,container:y,disablePortal:C,children:b.jsxs(ht,{...le,children:[!R&&i?b.jsx(ue,{...he,ref:ge}):null,b.jsx(IE,{disableEnforceFocus:_,disableAutoFocus:x,disableRestoreFocus:O,isEnabled:We,open:E,children:L.cloneElement(f,Xe)})]})})});function VE(e){return ct("MuiPaper",e)}ot("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const KE=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return ft(a,VE,i)},YE=Ce("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(vt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),XE=L.forwardRef(function(t,n){var w;const r=yt({props:t,name:"MuiPaper"}),i=nl(),{className:a,component:l="div",elevation:c=1,square:d=!1,variant:f="elevation",...y}=r,m={...r,component:l,elevation:c,square:d,variant:f},v=KE(m);return b.jsx(YE,{as:l,ownerState:m,className:Pe(v.root,a),ref:n,...y,style:{...f==="elevation"&&{"--Paper-shadow":(i.vars||i).shadows[c],...i.vars&&{"--Paper-overlay":(w=i.vars.overlays)==null?void 0:w[c]},...!i.vars&&i.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Kt("#fff",Xu(c))}, ${Kt("#fff",Xu(c))})`}},...y.style}})});function JE(e){return ct("MuiPopover",e)}ot("MuiPopover",["root","paper"]);function em(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function tm(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function nm(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function pd(e){return typeof e=="function"?e():e}const ZE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"]},JE,t)},QE=Ce(qE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),rm=Ce(XE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),eR=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiPopover"}),{action:i,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:d="anchorEl",children:f,className:y,container:m,elevation:v=8,marginThreshold:w=16,open:x,PaperProps:_={},slots:k={},slotProps:C={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:P=dd,transitionDuration:R="auto",TransitionProps:{onEntering:M,...D}={},disableScrollLock:$=!1,...z}=r,V=(C==null?void 0:C.paper)??_,E=L.useRef(),G={...r,anchorOrigin:l,anchorReference:d,elevation:v,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:O,TransitionComponent:P,transitionDuration:R,TransitionProps:D},te=ZE(G),H=L.useCallback(()=>{if(d==="anchorPosition")return c;const he=pd(a),de=(he&&he.nodeType===1?he:Yn(E.current).body).getBoundingClientRect();return{top:de.top+em(de,l.vertical),left:de.left+tm(de,l.horizontal)}},[a,l.horizontal,l.vertical,c,d]),X=L.useCallback(he=>({vertical:em(he,O.vertical),horizontal:tm(he,O.horizontal)}),[O.horizontal,O.vertical]),ee=L.useCallback(he=>{const ge={width:he.offsetWidth,height:he.offsetHeight},de=X(ge);if(d==="none")return{top:null,left:null,transformOrigin:nm(de)};const Te=H();let ve=Te.top-de.vertical,ke=Te.left-de.horizontal;const qe=ve+ge.height,De=ke+ge.width,Re=ur(pd(a)),Fe=Re.innerHeight-w,tt=Re.innerWidth-w;if(w!==null&&ve<w){const $e=ve-w;ve-=$e,de.vertical+=$e}else if(w!==null&&qe>Fe){const $e=qe-Fe;ve-=$e,de.vertical+=$e}if(w!==null&&ke<w){const $e=ke-w;ke-=$e,de.horizontal+=$e}else if(De>tt){const $e=De-tt;ke-=$e,de.horizontal+=$e}return{top:`${Math.round(ve)}px`,left:`${Math.round(ke)}px`,transformOrigin:nm(de)}},[a,d,H,X,w]),[ae,fe]=L.useState(x),pe=L.useCallback(()=>{const he=E.current;if(!he)return;const ge=ee(he);ge.top!==null&&he.style.setProperty("top",ge.top),ge.left!==null&&(he.style.left=ge.left),he.style.transformOrigin=ge.transformOrigin,fe(!0)},[ee]);L.useEffect(()=>($&&window.addEventListener("scroll",pe),()=>window.removeEventListener("scroll",pe)),[a,$,pe]);const _e=(he,ge)=>{M&&M(he,ge),pe()},We=()=>{fe(!1)};L.useEffect(()=>{x&&pe()}),L.useImperativeHandle(i,()=>x?{updatePosition:()=>{pe()}}:null,[x,pe]),L.useEffect(()=>{if(!x)return;const he=el(()=>{pe()}),ge=ur(a);return ge.addEventListener("resize",he),()=>{he.clear(),ge.removeEventListener("resize",he)}},[a,x,pe]);let be=R;R==="auto"&&!P.muiSupportAuto&&(be=void 0);const Be=m||(a?Yn(pd(a)).body:void 0),Ne={slots:k,slotProps:{...C,paper:V}},[Me,Xe]=dr("paper",{elementType:rm,externalForwardedProps:Ne,additionalProps:{elevation:v,className:Pe(te.paper,V==null?void 0:V.className),style:ae?V.style:{...V.style,opacity:0}},ownerState:G}),[Ge,{slotProps:ht,...le}]=dr("root",{elementType:QE,externalForwardedProps:Ne,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Be,open:x},ownerState:G,className:Pe(te.root,y)}),ue=Zt(E,Xe.ref);return b.jsx(Ge,{...le,...!Zu(Ge)&&{slotProps:ht,disableScrollLock:$},...z,ref:n,children:b.jsx(P,{appear:!0,in:x,onEntering:_e,onExited:We,timeout:be,...D,children:b.jsx(Me,{...Xe,ref:ue,children:f})})})});function tR(e){return ct("MuiMenu",e)}ot("MuiMenu",["root","paper","list"]);const nR={vertical:"top",horizontal:"right"},rR={vertical:"top",horizontal:"left"},oR=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"],list:["list"]},tR,t)},iR=Ce(eR,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),sR=Ce(rm,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),aR=Ce(cE,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),lR=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiMenu"}),{autoFocus:i=!0,children:a,className:l,disableAutoFocusItem:c=!1,MenuListProps:d={},onClose:f,open:y,PaperProps:m={},PopoverClasses:v,transitionDuration:w="auto",TransitionProps:{onEntering:x,..._}={},variant:k="selectedMenu",slots:C={},slotProps:O={},...P}=r,R=Gu(),M={...r,autoFocus:i,disableAutoFocusItem:c,MenuListProps:d,onEntering:x,PaperProps:m,transitionDuration:w,TransitionProps:_,variant:k},D=oR(M),$=i&&!c&&y,z=L.useRef(null),V=(ae,fe)=>{z.current&&z.current.adjustStyleForScrollbar(ae,{direction:R?"rtl":"ltr"}),x&&x(ae,fe)},E=ae=>{ae.key==="Tab"&&(ae.preventDefault(),f&&f(ae,"tabKeyDown"))};let G=-1;L.Children.map(a,(ae,fe)=>{L.isValidElement(ae)&&(ae.props.disabled||(k==="selectedMenu"&&ae.props.selected||G===-1)&&(G=fe))});const te=C.paper??sR,H=O.paper??m,X=ei({elementType:C.root,externalSlotProps:O.root,ownerState:M,className:[D.root,l]}),ee=ei({elementType:te,externalSlotProps:H,ownerState:M,className:D.paper});return b.jsx(iR,{onClose:f,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?nR:rR,slots:{paper:te,root:C.root},slotProps:{root:X,paper:ee},open:y,ref:n,transitionDuration:w,TransitionProps:{onEntering:V,..._},ownerState:M,...P,classes:v,children:b.jsx(aR,{onKeyDown:E,actions:z,autoFocus:i&&(G===-1||c),autoFocusItem:$,variant:k,...d,className:Pe(D.list,d.className),children:a})})});function cR(e){return ct("MuiNativeSelect",e)}const hd=ot("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),uR=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"]};return ft(c,cR,t)},om=Ce("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${hd.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),dR=Ce(om,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Mn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${hd.multiple}`]:t.multiple}]}})({}),im=Ce("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${hd.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),fR=Ce(im,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),pR=L.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:l,inputRef:c,variant:d="standard",...f}=t,y={...t,disabled:i,variant:d,error:a},m=uR(y);return b.jsxs(L.Fragment,{children:[b.jsx(dR,{ownerState:y,className:Pe(m.select,r),disabled:i,ref:c||n,...f}),t.multiple?null:b.jsx(fR,{as:l,ownerState:y,className:m.icon})]})});function hR(e){return ct("MuiSelect",e)}const vs=ot("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var sm;const gR=Ce(om,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${vs.select}`]:t.select},{[`&.${vs.select}`]:t[n.variant]},{[`&.${vs.error}`]:t.error},{[`&.${vs.multiple}`]:t.multiple}]}})({[`&.${vs.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),mR=Ce(im,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),yR=Ce("input",{shouldForwardProp:e=>Fg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function am(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function vR(e){return e==null||typeof e=="string"&&!e.trim()}const bR=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:l}=e,c={select:["select",n,r&&"disabled",i&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return ft(c,hR,t)},xR=L.forwardRef(function(t,n){var Z;const{"aria-describedby":r,"aria-label":i,autoFocus:a,autoWidth:l,children:c,className:d,defaultOpen:f,defaultValue:y,disabled:m,displayEmpty:v,error:w=!1,IconComponent:x,inputRef:_,labelId:k,MenuProps:C={},multiple:O,name:P,onBlur:R,onChange:M,onClose:D,onFocus:$,onOpen:z,open:V,readOnly:E,renderValue:G,SelectDisplayProps:te={},tabIndex:H,type:X,value:ee,variant:ae="standard",...fe}=t,[pe,_e]=yg({controlled:ee,default:y,name:"Select"}),[We,be]=yg({controlled:V,default:f,name:"Select"}),Be=L.useRef(null),Ne=L.useRef(null),[Me,Xe]=L.useState(null),{current:Ge}=L.useRef(V!=null),[ht,le]=L.useState(),ue=Zt(n,_),he=L.useCallback(ce=>{Ne.current=ce,ce&&Xe(ce)},[]),ge=Me==null?void 0:Me.parentNode;L.useImperativeHandle(ue,()=>({focus:()=>{Ne.current.focus()},node:Be.current,value:pe}),[pe]),L.useEffect(()=>{f&&We&&Me&&!Ge&&(le(l?null:ge.clientWidth),Ne.current.focus())},[Me,l]),L.useEffect(()=>{a&&Ne.current.focus()},[a]),L.useEffect(()=>{if(!k)return;const ce=Yn(Ne.current).getElementById(k);if(ce){const oe=()=>{getSelection().isCollapsed&&Ne.current.focus()};return ce.addEventListener("click",oe),()=>{ce.removeEventListener("click",oe)}}},[k]);const de=(ce,oe)=>{ce?z&&z(oe):D&&D(oe),Ge||(le(l?null:ge.clientWidth),be(ce))},Te=ce=>{ce.button===0&&(ce.preventDefault(),Ne.current.focus(),de(!0,ce))},ve=ce=>{de(!1,ce)},ke=L.Children.toArray(c),qe=ce=>{const oe=ke.find(se=>se.props.value===ce.target.value);oe!==void 0&&(_e(oe.props.value),M&&M(ce,oe))},De=ce=>oe=>{let se;if(oe.currentTarget.hasAttribute("tabindex")){if(O){se=Array.isArray(pe)?pe.slice():[];const Se=pe.indexOf(ce.props.value);Se===-1?se.push(ce.props.value):se.splice(Se,1)}else se=ce.props.value;if(ce.props.onClick&&ce.props.onClick(oe),pe!==se&&(_e(se),M)){const Se=oe.nativeEvent||oe,we=new Se.constructor(Se.type,Se);Object.defineProperty(we,"target",{writable:!0,value:{value:se,name:P}}),M(we,ce)}O||de(!1,oe)}},Re=ce=>{E||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),de(!0,ce))},Fe=Me!==null&&We,tt=ce=>{!Fe&&R&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:pe,name:P}}),R(ce))};delete fe["aria-invalid"];let $e,st;const ye=[];let At=!1;(ol({value:pe})||v)&&(G?$e=G(pe):At=!0);const Nt=ke.map(ce=>{if(!L.isValidElement(ce))return null;let oe;if(O){if(!Array.isArray(pe))throw new Error(Lr(2));oe=pe.some(se=>am(se,ce.props.value)),oe&&At&&ye.push(ce.props.children)}else oe=am(pe,ce.props.value),oe&&At&&(st=ce.props.children);return L.cloneElement(ce,{"aria-selected":oe?"true":"false",onClick:De(ce),onKeyUp:se=>{se.key===" "&&se.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(se)},role:"option",selected:oe,value:void 0,"data-value":ce.props.value})});At&&(O?ye.length===0?$e=null:$e=ye.reduce((ce,oe,se)=>(ce.push(oe),se<ye.length-1&&ce.push(", "),ce),[]):$e=st);let yn=ht;!l&&Ge&&Me&&(yn=ge.clientWidth);let T;typeof H<"u"?T=H:T=m?null:0;const h=te.id||(P?`mui-component-select-${P}`:void 0),g={...t,variant:ae,value:pe,open:Fe,error:w},B=bR(g),F={...C.PaperProps,...(Z=C.slotProps)==null?void 0:Z.paper},q=mg();return b.jsxs(L.Fragment,{children:[b.jsx(gR,{as:"div",ref:he,tabIndex:T,role:"combobox","aria-controls":q,"aria-disabled":m?"true":void 0,"aria-expanded":Fe?"true":"false","aria-haspopup":"listbox","aria-label":i,"aria-labelledby":[k,h].filter(Boolean).join(" ")||void 0,"aria-describedby":r,onKeyDown:Re,onMouseDown:m||E?null:Te,onBlur:tt,onFocus:$,...te,ownerState:g,className:Pe(te.className,B.select,d),id:h,children:vR($e)?sm||(sm=b.jsx("span",{className:"notranslate",children:""})):$e}),b.jsx(yR,{"aria-invalid":w,value:Array.isArray(pe)?pe.join(","):pe,name:P,ref:Be,"aria-hidden":!0,onChange:qe,tabIndex:-1,disabled:m,className:B.nativeInput,autoFocus:a,...fe,ownerState:g}),b.jsx(mR,{as:x,className:B.icon,ownerState:g}),b.jsx(lR,{id:`menu-${P||""}`,anchorEl:ge,open:Fe,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,MenuListProps:{"aria-labelledby":k,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:q,...C.MenuListProps},slotProps:{...C.slotProps,paper:{...F,style:{minWidth:yn,...F!=null?F.style:null}}},children:Nt})]})}),wR=Cn(b.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),SR=e=>{const{classes:t}=e;return t},gd={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Mn(e)&&e!=="variant",slot:"Root"},CR=Ce(cl,gd)(""),_R=Ce(fl,gd)(""),ER=Ce(dl,gd)(""),ml=L.forwardRef(function(t,n){const r=f_({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:l={},className:c,defaultOpen:d=!1,displayEmpty:f=!1,IconComponent:y=wR,id:m,input:v,inputProps:w,label:x,labelId:_,MenuProps:k,multiple:C=!1,native:O=!1,onClose:P,onOpen:R,open:M,renderValue:D,SelectDisplayProps:$,variant:z="outlined",...V}=r,E=O?pR:xR,G=ai(),te=si({props:r,muiFormControl:G,states:["variant","error"]}),H=te.variant||z,X={...r,variant:H,classes:l},ee=SR(X),{root:ae,...fe}=ee,pe=v||{standard:b.jsx(CR,{ownerState:X}),outlined:b.jsx(_R,{label:x,ownerState:X}),filled:b.jsx(ER,{ownerState:X})}[H],_e=Zt(n,ls(pe));return b.jsx(L.Fragment,{children:L.cloneElement(pe,{inputComponent:E,inputProps:{children:a,error:te.error,IconComponent:y,variant:H,type:void 0,multiple:C,...O?{id:m}:{autoWidth:i,defaultOpen:d,displayEmpty:f,labelId:_,MenuProps:k,onClose:P,onOpen:R,open:M,renderValue:D,SelectDisplayProps:{id:m,...$}},...w,classes:w?cn(fe,w.classes):fe,...v?v.props.inputProps:{}},...(C&&O||f)&&H==="outlined"?{notched:!0}:{},ref:_e,className:Pe(pe.props.className,c,ee.root),...!v&&{variant:H},...V})})});ml.muiName="Select";function RR(e){return ct("MuiTextField",e)}ot("MuiTextField",["root"]);const PR={standard:cl,filled:dl,outlined:fl},TR=e=>{const{classes:t}=e;return ft({root:["root"]},RR,t)},IR=Ce(nd,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yl=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:l,className:c,color:d="primary",defaultValue:f,disabled:y=!1,error:m=!1,FormHelperTextProps:v,fullWidth:w=!1,helperText:x,id:_,InputLabelProps:k,inputProps:C,InputProps:O,inputRef:P,label:R,maxRows:M,minRows:D,multiline:$=!1,name:z,onBlur:V,onChange:E,onFocus:G,placeholder:te,required:H=!1,rows:X,select:ee=!1,SelectProps:ae,slots:fe={},slotProps:pe={},type:_e,value:We,variant:be="outlined",...Be}=r,Ne={...r,autoFocus:a,color:d,disabled:y,error:m,fullWidth:w,multiline:$,required:H,select:ee,variant:be},Me=TR(Ne),Xe=mg(_),Ge=x&&Xe?`${Xe}-helper-text`:void 0,ht=R&&Xe?`${Xe}-label`:void 0,le=PR[be],ue={slots:fe,slotProps:{input:O,inputLabel:k,htmlInput:C,formHelperText:v,select:ae,...pe}},he={},ge=ue.slotProps.inputLabel;be==="outlined"&&(ge&&typeof ge.shrink<"u"&&(he.notched=ge.shrink),he.label=R),ee&&((!ae||!ae.native)&&(he.id=void 0),he["aria-describedby"]=void 0);const[de,Te]=dr("input",{elementType:le,externalForwardedProps:ue,additionalProps:he,ownerState:Ne}),[ve,ke]=dr("inputLabel",{elementType:td,externalForwardedProps:ue,ownerState:Ne}),[qe,De]=dr("htmlInput",{elementType:"input",externalForwardedProps:ue,ownerState:Ne}),[Re,Fe]=dr("formHelperText",{elementType:iE,externalForwardedProps:ue,ownerState:Ne}),[tt,$e]=dr("select",{elementType:ml,externalForwardedProps:ue,ownerState:Ne}),st=b.jsx(de,{"aria-describedby":Ge,autoComplete:i,autoFocus:a,defaultValue:f,fullWidth:w,multiline:$,name:z,rows:X,maxRows:M,minRows:D,type:_e,value:We,id:Xe,inputRef:P,onBlur:V,onChange:E,onFocus:G,placeholder:te,inputProps:De,slots:{input:fe.htmlInput?qe:void 0},...Te});return b.jsxs(IR,{className:Pe(Me.root,c),disabled:y,error:m,fullWidth:w,ref:n,required:H,color:d,variant:be,ownerState:Ne,...Be,children:[R!=null&&R!==""&&b.jsx(ve,{htmlFor:Xe,id:ht,...ke,children:R}),ee?b.jsx(tt,{"aria-describedby":Ge,id:Xe,labelId:ht,value:We,input:st,...$e,children:l}):st,x&&b.jsx(Re,{id:Ge,...Fe,children:x})]})});class vl{constructor(){oa(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 vl}static use(){const t=bg(vl.create).current,[n,r]=L.useState(!1);return t.shouldMount=n,t.setShouldMount=r,L.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=OR(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function kR(){return vl.use()}function OR(){let e,t;const n=new Promise((r,i)=>{e=r,t=i});return n.resolve=e,n.reject=t,n}function AR(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:l,in:c,onExited:d,timeout:f}=e,[y,m]=L.useState(!1),v=Pe(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),w={width:l,height:l,top:-(l/2)+a,left:-(l/2)+i},x=Pe(n.child,y&&n.childLeaving,r&&n.childPulsate);return!c&&!y&&m(!0),L.useEffect(()=>{if(!c&&d!=null){const _=setTimeout(d,f);return()=>{clearTimeout(_)}}},[d,c,f]),b.jsx("span",{className:v,style:w,children:b.jsx("span",{className:x})})}const Xn=ot("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),md=550,$R=80,MR=ts`
|
|
51
|
+
*/var Du=Symbol.for("react.element"),Bu=Symbol.for("react.portal"),Ha=Symbol.for("react.fragment"),Ga=Symbol.for("react.strict_mode"),qa=Symbol.for("react.profiler"),Va=Symbol.for("react.provider"),Ya=Symbol.for("react.context"),R_=Symbol.for("react.server_context"),Xa=Symbol.for("react.forward_ref"),Ka=Symbol.for("react.suspense"),Ja=Symbol.for("react.suspense_list"),Za=Symbol.for("react.memo"),Qa=Symbol.for("react.lazy"),I_=Symbol.for("react.offscreen"),_g;_g=Symbol.for("react.module.reference");function Hn(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Du:switch(e=e.type,e){case Ha:case qa:case Ga:case Ka:case Ja:return e;default:switch(e=e&&e.$$typeof,e){case R_:case Ya:case Xa:case Qa:case Za:case Va:return e;default:return t}}case Bu:return t}}}xt.ContextConsumer=Ya,xt.ContextProvider=Va,xt.Element=Du,xt.ForwardRef=Xa,xt.Fragment=Ha,xt.Lazy=Qa,xt.Memo=Za,xt.Portal=Bu,xt.Profiler=qa,xt.StrictMode=Ga,xt.Suspense=Ka,xt.SuspenseList=Ja,xt.isAsyncMode=function(){return!1},xt.isConcurrentMode=function(){return!1},xt.isContextConsumer=function(e){return Hn(e)===Ya},xt.isContextProvider=function(e){return Hn(e)===Va},xt.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Du},xt.isForwardRef=function(e){return Hn(e)===Xa},xt.isFragment=function(e){return Hn(e)===Ha},xt.isLazy=function(e){return Hn(e)===Qa},xt.isMemo=function(e){return Hn(e)===Za},xt.isPortal=function(e){return Hn(e)===Bu},xt.isProfiler=function(e){return Hn(e)===qa},xt.isStrictMode=function(e){return Hn(e)===Ga},xt.isSuspense=function(e){return Hn(e)===Ka},xt.isSuspenseList=function(e){return Hn(e)===Ja},xt.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Ha||e===qa||e===Ga||e===Ka||e===Ja||e===I_||typeof e=="object"&&e!==null&&(e.$$typeof===Qa||e.$$typeof===Za||e.$$typeof===Va||e.$$typeof===Ya||e.$$typeof===Xa||e.$$typeof===_g||e.getModuleId!==void 0)},xt.typeOf=Hn;const ri=j.createContext({});function k_(e){return lt("MuiList",e)}it("MuiList",["root","padding","dense","subheader"]);const T_=e=>{const{classes:t,disablePadding:n,dense:o,subheader:s}=e;return ft({root:["root",!n&&"padding",o&&"dense",s&&"subheader"]},k_,t)},P_=Re("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),Lu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiList"}),{children:s,className:a,component:l="ul",dense:u=!1,disablePadding:d=!1,subheader:h,...y}=o,m=j.useMemo(()=>({dense:u}),[u]),b={...o,component:l,dense:u,disablePadding:d},w=T_(b);return v.jsx(ri.Provider,{value:m,children:v.jsxs(P_,{as:l,className:Te(w.root,a),ref:n,ownerState:b,...y,children:[h,s]})})});function ju(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Eg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function Rg(e,t){if(t===void 0)return!0;let n=e.innerText;return n===void 0&&(n=e.textContent),n=n.trim().toLowerCase(),n.length===0?!1:t.repeating?n[0]===t.keys[0]:n.startsWith(t.keys.join(""))}function as(e,t,n,o,s,a){let l=!1,u=s(e,t,t?n:!1);for(;u;){if(u===e.firstChild){if(l)return!1;l=!0}const d=o?!1:u.disabled||u.getAttribute("aria-disabled")==="true";if(!u.hasAttribute("tabindex")||!Rg(u,a)||d)u=s(e,u,n);else return u.focus(),!0}return!1}const O_=j.forwardRef(function(t,n){const{actions:o,autoFocus:s=!1,autoFocusItem:a=!1,children:l,className:u,disabledItemsFocusable:d=!1,disableListWrap:h=!1,onKeyDown:y,variant:m="selectedMenu",...b}=t,w=j.useRef(null),S=j.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});br(()=>{s&&w.current.focus()},[s]),j.useImperativeHandle(o,()=>({adjustStyleForScrollbar:(k,{direction:R})=>{const $=!w.current.style.width;if(k.clientHeight<w.current.clientHeight&&$){const B=`${Jh(or(k))}px`;w.current.style[R==="rtl"?"paddingLeft":"paddingRight"]=B,w.current.style.width=`calc(100% + ${B})`}return w.current}}),[]);const E=k=>{const R=w.current,$=k.key;if(k.ctrlKey||k.metaKey||k.altKey){y&&y(k);return}const M=Un(R).activeElement;if($==="ArrowDown")k.preventDefault(),as(R,M,h,d,ju);else if($==="ArrowUp")k.preventDefault(),as(R,M,h,d,Eg);else if($==="Home")k.preventDefault(),as(R,null,h,d,ju);else if($==="End")k.preventDefault(),as(R,null,h,d,Eg);else if($.length===1){const z=S.current,V=$.toLowerCase(),_=performance.now();z.keys.length>0&&(_-z.lastTime>500?(z.keys=[],z.repeating=!0,z.previousKeyMatched=!0):z.repeating&&V!==z.keys[0]&&(z.repeating=!1)),z.lastTime=_,z.keys.push(V);const G=M&&!z.repeating&&Rg(M,z);z.previousKeyMatched&&(G||as(R,M,!1,d,ju,z))?k.preventDefault():z.previousKeyMatched=!1}y&&y(k)},P=Xt(w,n);let C=-1;j.Children.forEach(l,(k,R)=>{if(!j.isValidElement(k)){C===R&&(C+=1,C>=l.length&&(C=-1));return}k.props.disabled||(m==="selectedMenu"&&k.props.selected||C===-1)&&(C=R),C===R&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(C+=1,C>=l.length&&(C=-1))});const O=j.Children.map(l,(k,R)=>{if(R===C){const $={};return a&&($.autoFocus=!0),k.props.tabIndex===void 0&&m==="selectedMenu"&&($.tabIndex=0),j.cloneElement(k,$)}return k});return v.jsx(Lu,{role:"menu",ref:P,className:u,onKeyDown:E,tabIndex:s?0:-1,...b,children:O})});function Ig(e,t){if(e==null)return{};var n={};for(var o in e)if({}.hasOwnProperty.call(e,o)){if(t.includes(o))continue;n[o]=e[o]}return n}function Nu(e,t){return Nu=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Nu(e,t)}function kg(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Nu(e,t)}const Tg={disabled:!1},el=X.createContext(null);var A_=function(t){return t.scrollTop},ls="unmounted",xo="exited",wo="entering",oi="entered",Fu="exiting",Sr=function(e){kg(t,e);function t(o,s){var a;a=e.call(this,o,s)||this;var l=s,u=l&&!l.isMounting?o.enter:o.appear,d;return a.appearStatus=null,o.in?u?(d=xo,a.appearStatus=wo):d=oi:o.unmountOnExit||o.mountOnEnter?d=ls:d=xo,a.state={status:d},a.nextCallback=null,a}t.getDerivedStateFromProps=function(s,a){var l=s.in;return l&&a.status===ls?{status:xo}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(s){var a=null;if(s!==this.props){var l=this.state.status;this.props.in?l!==wo&&l!==oi&&(a=wo):(l===wo||l===oi)&&(a=Fu)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var s=this.props.timeout,a,l,u;return a=l=u=s,s!=null&&typeof s!="number"&&(a=s.exit,l=s.enter,u=s.appear!==void 0?s.appear:l),{exit:a,enter:l,appear:u}},n.updateStatus=function(s,a){if(s===void 0&&(s=!1),a!==null)if(this.cancelNextCallback(),a===wo){if(this.props.unmountOnExit||this.props.mountOnEnter){var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this);l&&A_(l)}this.performEnter(s)}else this.performExit();else this.props.unmountOnExit&&this.state.status===xo&&this.setState({status:ls})},n.performEnter=function(s){var a=this,l=this.props.enter,u=this.context?this.context.isMounting:s,d=this.props.nodeRef?[u]:[mo.findDOMNode(this),u],h=d[0],y=d[1],m=this.getTimeouts(),b=u?m.appear:m.enter;if(!s&&!l||Tg.disabled){this.safeSetState({status:oi},function(){a.props.onEntered(h)});return}this.props.onEnter(h,y),this.safeSetState({status:wo},function(){a.props.onEntering(h,y),a.onTransitionEnd(b,function(){a.safeSetState({status:oi},function(){a.props.onEntered(h,y)})})})},n.performExit=function(){var s=this,a=this.props.exit,l=this.getTimeouts(),u=this.props.nodeRef?void 0:mo.findDOMNode(this);if(!a||Tg.disabled){this.safeSetState({status:xo},function(){s.props.onExited(u)});return}this.props.onExit(u),this.safeSetState({status:Fu},function(){s.props.onExiting(u),s.onTransitionEnd(l.exit,function(){s.safeSetState({status:xo},function(){s.props.onExited(u)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(s,a){a=this.setNextCallback(a),this.setState(s,a)},n.setNextCallback=function(s){var a=this,l=!0;return this.nextCallback=function(u){l&&(l=!1,a.nextCallback=null,s(u))},this.nextCallback.cancel=function(){l=!1},this.nextCallback},n.onTransitionEnd=function(s,a){this.setNextCallback(a);var l=this.props.nodeRef?this.props.nodeRef.current:mo.findDOMNode(this),u=s==null&&!this.props.addEndListener;if(!l||u){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var d=this.props.nodeRef?[this.nextCallback]:[l,this.nextCallback],h=d[0],y=d[1];this.props.addEndListener(h,y)}s!=null&&setTimeout(this.nextCallback,s)},n.render=function(){var s=this.state.status;if(s===ls)return null;var a=this.props,l=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 u=Ig(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return X.createElement(el.Provider,{value:null},typeof l=="function"?l(s,u):X.cloneElement(X.Children.only(l),u))},t}(X.Component);Sr.contextType=el,Sr.propTypes={};function ii(){}Sr.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:ii,onEntering:ii,onEntered:ii,onExit:ii,onExiting:ii,onExited:ii},Sr.UNMOUNTED=ls,Sr.EXITED=xo,Sr.ENTERING=wo,Sr.ENTERED=oi,Sr.EXITING=Fu;function M_(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function zu(e,t){var n=function(a){return t&&X.isValidElement(a)?t(a):a},o=Object.create(null);return e&&X.Children.map(e,function(s){return s}).forEach(function(s){o[s.key]=n(s)}),o}function $_(e,t){e=e||{},t=t||{};function n(y){return y in t?t[y]:e[y]}var o=Object.create(null),s=[];for(var a in e)a in t?s.length&&(o[a]=s,s=[]):s.push(a);var l,u={};for(var d in t){if(o[d])for(l=0;l<o[d].length;l++){var h=o[d][l];u[o[d][l]]=n(h)}u[d]=n(d)}for(l=0;l<s.length;l++)u[s[l]]=n(s[l]);return u}function So(e,t,n){return n[t]!=null?n[t]:e.props[t]}function D_(e,t){return zu(e.children,function(n){return X.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:So(n,"appear",e),enter:So(n,"enter",e),exit:So(n,"exit",e)})})}function B_(e,t,n){var o=zu(e.children),s=$_(t,o);return Object.keys(s).forEach(function(a){var l=s[a];if(X.isValidElement(l)){var u=a in t,d=a in o,h=t[a],y=X.isValidElement(h)&&!h.props.in;d&&(!u||y)?s[a]=X.cloneElement(l,{onExited:n.bind(null,l),in:!0,exit:So(l,"exit",e),enter:So(l,"enter",e)}):!d&&u&&!y?s[a]=X.cloneElement(l,{in:!1}):d&&u&&X.isValidElement(h)&&(s[a]=X.cloneElement(l,{onExited:n.bind(null,l),in:h.props.in,exit:So(l,"exit",e),enter:So(l,"enter",e)}))}}),s}var L_=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},j_={component:"div",childFactory:function(t){return t}},Wu=function(e){kg(t,e);function t(o,s){var a;a=e.call(this,o,s)||this;var l=a.handleExited.bind(M_(a));return a.state={contextValue:{isMounting:!0},handleExited:l,firstRender:!0},a}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(s,a){var l=a.children,u=a.handleExited,d=a.firstRender;return{children:d?D_(s,u):B_(s,l,u),firstRender:!1}},n.handleExited=function(s,a){var l=zu(this.props.children);s.key in l||(s.props.onExited&&s.props.onExited(a),this.mounted&&this.setState(function(u){var d=Zs({},u.children);return delete d[s.key],{children:d}}))},n.render=function(){var s=this.props,a=s.component,l=s.childFactory,u=Ig(s,["component","childFactory"]),d=this.state.contextValue,h=L_(this.state.children).map(l);return delete u.appear,delete u.enter,delete u.exit,a===null?X.createElement(el.Provider,{value:d},h):X.createElement(el.Provider,{value:d},X.createElement(a,u,h))},t}(X.Component);Wu.propTypes={},Wu.defaultProps=j_;const Pg=e=>e.scrollTop;function tl(e,t){const{timeout:n,easing:o,style:s={}}=e;return{duration:s.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:s.transitionTimingFunction??(typeof o=="object"?o[t.mode]:o),delay:s.transitionDelay}}function Uu(e){return`scale(${e}, ${e**2})`}const N_={entering:{opacity:1,transform:Uu(1)},entered:{opacity:1,transform:"none"}},Hu=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Gu=j.forwardRef(function(t,n){const{addEndListener:o,appear:s=!0,children:a,easing:l,in:u,onEnter:d,onEntered:h,onEntering:y,onExit:m,onExited:b,onExiting:w,style:S,timeout:E="auto",TransitionComponent:P=Sr,...C}=t,O=Xh(),k=j.useRef(),R=Ma(),$=j.useRef(null),B=Xt($,ts(a),n),M=ee=>le=>{if(ee){const pe=$.current;le===void 0?ee(pe):ee(pe,le)}},z=M(y),V=M((ee,le)=>{Pg(ee);const{duration:pe,delay:he,easing:be}=tl({style:S,timeout:E,easing:l},{mode:"enter"});let we;E==="auto"?(we=R.transitions.getAutoHeightDuration(ee.clientHeight),k.current=we):we=pe,ee.style.transition=[R.transitions.create("opacity",{duration:we,delay:he}),R.transitions.create("transform",{duration:Hu?we:we*.666,delay:he,easing:be})].join(","),d&&d(ee,le)}),_=M(h),G=M(w),re=M(ee=>{const{duration:le,delay:pe,easing:he}=tl({style:S,timeout:E,easing:l},{mode:"exit"});let be;E==="auto"?(be=R.transitions.getAutoHeightDuration(ee.clientHeight),k.current=be):be=le,ee.style.transition=[R.transitions.create("opacity",{duration:be,delay:pe}),R.transitions.create("transform",{duration:Hu?be:be*.666,delay:Hu?pe:pe||be*.333,easing:he})].join(","),ee.style.opacity=0,ee.style.transform=Uu(.75),m&&m(ee)}),H=M(b),Q=ee=>{E==="auto"&&O.start(k.current||0,ee),o&&o($.current,ee)};return v.jsx(P,{appear:s,in:u,nodeRef:$,onEnter:V,onEntered:_,onEntering:z,onExit:re,onExited:H,onExiting:G,addEndListener:Q,timeout:E==="auto"?null:E,...C,children:(ee,le)=>j.cloneElement(a,{style:{opacity:0,transform:Uu(.75),visibility:ee==="exited"&&!u?"hidden":void 0,...N_[ee],...S,...a.props.style},ref:B,...le})})});Gu&&(Gu.muiSupportAuto=!0);function F_(e){const t=Un(e);return t.body===e?or(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function cs(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function Og(e){return parseInt(or(e).getComputedStyle(e).paddingRight,10)||0}function z_(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),o=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||o}function Ag(e,t,n,o,s){const a=[t,n,...o];[].forEach.call(e.children,l=>{const u=!a.includes(l),d=!z_(l);u&&d&&cs(l,s)})}function qu(e,t){let n=-1;return e.some((o,s)=>t(o)?(n=s,!0):!1),n}function W_(e,t){const n=[],o=e.container;if(!t.disableScrollLock){if(F_(o)){const l=Jh(or(o));n.push({value:o.style.paddingRight,property:"padding-right",el:o}),o.style.paddingRight=`${Og(o)+l}px`;const u=Un(o).querySelectorAll(".mui-fixed");[].forEach.call(u,d=>{n.push({value:d.style.paddingRight,property:"padding-right",el:d}),d.style.paddingRight=`${Og(d)+l}px`})}let a;if(o.parentNode instanceof DocumentFragment)a=Un(o).body;else{const l=o.parentElement,u=or(o);a=(l==null?void 0:l.nodeName)==="HTML"&&u.getComputedStyle(l).overflowY==="scroll"?l:o}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:l,property:u})=>{a?l.style.setProperty(u,a):l.style.removeProperty(u)})}}function U_(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class H_{constructor(){this.modals=[],this.containers=[]}add(t,n){let o=this.modals.indexOf(t);if(o!==-1)return o;o=this.modals.length,this.modals.push(t),t.modalRef&&cs(t.modalRef,!1);const s=U_(n);Ag(n,t.mount,t.modalRef,s,!0);const a=qu(this.containers,l=>l.container===n);return a!==-1?(this.containers[a].modals.push(t),o):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:s}),o)}mount(t,n){const o=qu(this.containers,a=>a.modals.includes(t)),s=this.containers[o];s.restore||(s.restore=W_(s,n))}remove(t,n=!0){const o=this.modals.indexOf(t);if(o===-1)return o;const s=qu(this.containers,l=>l.modals.includes(t)),a=this.containers[s];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(o,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&cs(t.modalRef,n),Ag(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(s,1);else{const l=a.modals[a.modals.length-1];l.modalRef&&cs(l.modalRef,!1)}return o}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const G_=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function q_(e){const t=parseInt(e.getAttribute("tabindex")||"",10);return Number.isNaN(t)?e.contentEditable==="true"||(e.nodeName==="AUDIO"||e.nodeName==="VIDEO"||e.nodeName==="DETAILS")&&e.getAttribute("tabindex")===null?0:e.tabIndex:t}function V_(e){if(e.tagName!=="INPUT"||e.type!=="radio"||!e.name)return!1;const t=o=>e.ownerDocument.querySelector(`input[type="radio"]${o}`);let n=t(`[name="${e.name}"]:checked`);return n||(n=t(`[name="${e.name}"]`)),n!==e}function Y_(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||V_(e))}function X_(e){const t=[],n=[];return Array.from(e.querySelectorAll(G_)).forEach((o,s)=>{const a=q_(o);a===-1||!Y_(o)||(a===0?t.push(o):n.push({documentOrder:s,tabIndex:a,node:o}))}),n.sort((o,s)=>o.tabIndex===s.tabIndex?o.documentOrder-s.documentOrder:o.tabIndex-s.tabIndex).map(o=>o.node).concat(t)}function K_(){return!0}function J_(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:o=!1,disableRestoreFocus:s=!1,getTabbable:a=X_,isEnabled:l=K_,open:u}=e,d=j.useRef(!1),h=j.useRef(null),y=j.useRef(null),m=j.useRef(null),b=j.useRef(null),w=j.useRef(!1),S=j.useRef(null),E=Xt(ts(t),S),P=j.useRef(null);j.useEffect(()=>{!u||!S.current||(w.current=!n)},[n,u]),j.useEffect(()=>{if(!u||!S.current)return;const k=Un(S.current);return S.current.contains(k.activeElement)||(S.current.hasAttribute("tabIndex")||S.current.setAttribute("tabIndex","-1"),w.current&&S.current.focus()),()=>{s||(m.current&&m.current.focus&&(d.current=!0,m.current.focus()),m.current=null)}},[u]),j.useEffect(()=>{if(!u||!S.current)return;const k=Un(S.current),R=M=>{P.current=M,!(o||!l()||M.key!=="Tab")&&k.activeElement===S.current&&M.shiftKey&&(d.current=!0,y.current&&y.current.focus())},$=()=>{var V,_;const M=S.current;if(M===null)return;if(!k.hasFocus()||!l()||d.current){d.current=!1;return}if(M.contains(k.activeElement)||o&&k.activeElement!==h.current&&k.activeElement!==y.current)return;if(k.activeElement!==b.current)b.current=null;else if(b.current!==null)return;if(!w.current)return;let z=[];if((k.activeElement===h.current||k.activeElement===y.current)&&(z=a(S.current)),z.length>0){const G=!!((V=P.current)!=null&&V.shiftKey&&((_=P.current)==null?void 0:_.key)==="Tab"),re=z[0],H=z[z.length-1];typeof re!="string"&&typeof H!="string"&&(G?H.focus():re.focus())}else M.focus()};k.addEventListener("focusin",$),k.addEventListener("keydown",R,!0);const B=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&$()},50);return()=>{clearInterval(B),k.removeEventListener("focusin",$),k.removeEventListener("keydown",R,!0)}},[n,o,s,l,u,a]);const C=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0,b.current=k.target;const R=t.props.onFocus;R&&R(k)},O=k=>{m.current===null&&(m.current=k.relatedTarget),w.current=!0};return v.jsxs(j.Fragment,{children:[v.jsx("div",{tabIndex:u?0:-1,onFocus:O,ref:h,"data-testid":"sentinelStart"}),j.cloneElement(t,{ref:E,onFocus:C}),v.jsx("div",{tabIndex:u?0:-1,onFocus:O,ref:y,"data-testid":"sentinelEnd"})]})}function Z_(e){return typeof e=="function"?e():e}const Q_=j.forwardRef(function(t,n){const{children:o,container:s,disablePortal:a=!1}=t,[l,u]=j.useState(null),d=Xt(j.isValidElement(o)?ts(o):null,n);if(br(()=>{a||u(Z_(s)||document.body)},[s,a]),br(()=>{if(l&&!a)return wu(n,l),()=>{wu(n,null)}},[n,l,a]),a){if(j.isValidElement(o)){const h={ref:d};return j.cloneElement(o,h)}return o}return l&&Lb.createPortal(o,l)});function ir(e,t){const{className:n,elementType:o,ownerState:s,externalForwardedProps:a,internalForwardedProps:l,...u}=t,{component:d,slots:h={[e]:void 0},slotProps:y={[e]:void 0},...m}=a,b=h[e]||o,w=ng(y[e],s),{props:{component:S,...E},internalRef:P}=tg({className:n,...u,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:w}),C=Xt(P,w==null?void 0:w.ref,t.ref),O=e==="root"?S||d:S,k=Zh(b,{...e==="root"&&!d&&!h[e]&&l,...e!=="root"&&!h[e]&&l,...E,...O&&{as:O},ref:C},s);return[b,k]}const eE={entering:{opacity:1},entered:{opacity:1}},tE=j.forwardRef(function(t,n){const o=Ma(),s={enter:o.transitions.duration.enteringScreen,exit:o.transitions.duration.leavingScreen},{addEndListener:a,appear:l=!0,children:u,easing:d,in:h,onEnter:y,onEntered:m,onEntering:b,onExit:w,onExited:S,onExiting:E,style:P,timeout:C=s,TransitionComponent:O=Sr,...k}=t,R=j.useRef(null),$=Xt(R,ts(u),n),B=Q=>ee=>{if(Q){const le=R.current;ee===void 0?Q(le):Q(le,ee)}},M=B(b),z=B((Q,ee)=>{Pg(Q);const le=tl({style:P,timeout:C,easing:d},{mode:"enter"});Q.style.webkitTransition=o.transitions.create("opacity",le),Q.style.transition=o.transitions.create("opacity",le),y&&y(Q,ee)}),V=B(m),_=B(E),G=B(Q=>{const ee=tl({style:P,timeout:C,easing:d},{mode:"exit"});Q.style.webkitTransition=o.transitions.create("opacity",ee),Q.style.transition=o.transitions.create("opacity",ee),w&&w(Q)}),re=B(S),H=Q=>{a&&a(R.current,Q)};return v.jsx(O,{appear:l,in:h,nodeRef:R,onEnter:z,onEntered:V,onEntering:M,onExit:G,onExited:re,onExiting:_,addEndListener:H,timeout:C,...k,children:(Q,ee)=>j.cloneElement(u,{style:{opacity:0,visibility:Q==="exited"&&!h?"hidden":void 0,...eE[Q],...P,...u.props.style},ref:$,...ee})})});function nE(e){return lt("MuiBackdrop",e)}it("MuiBackdrop",["root","invisible"]);const rE=e=>{const{ownerState:t,...n}=e;return n},oE=e=>{const{classes:t,invisible:n}=e;return ft({root:["root",n&&"invisible"]},nE,t)},iE=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),sE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiBackdrop"}),{children:s,className:a,component:l="div",invisible:u=!1,open:d,components:h={},componentsProps:y={},slotProps:m={},slots:b={},TransitionComponent:w,transitionDuration:S,...E}=o,P={...o,component:l,invisible:u},C=oE(P),O={transition:w,root:h.Root,...b},k={...y,...m},R={slots:O,slotProps:k},[$,B]=ir("root",{elementType:iE,externalForwardedProps:R,className:Te(C.root,a),ownerState:P}),[M,z]=ir("transition",{elementType:tE,externalForwardedProps:R,ownerState:P}),V=rE(z);return v.jsx(M,{in:d,timeout:S,...E,...V,children:v.jsx($,{"aria-hidden":!0,...B,classes:C,ref:n,children:s})})});function aE(e){return typeof e=="function"?e():e}function lE(e){return e?e.props.hasOwnProperty("in"):!1}const Mg=()=>{},nl=new H_;function cE(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:o=!1,closeAfterTransition:s=!1,onTransitionEnter:a,onTransitionExited:l,children:u,onClose:d,open:h,rootRef:y}=e,m=j.useRef({}),b=j.useRef(null),w=j.useRef(null),S=Xt(w,y),[E,P]=j.useState(!h),C=lE(u);let O=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(O=!1);const k=()=>Un(b.current),R=()=>(m.current.modalRef=w.current,m.current.mount=b.current,m.current),$=()=>{nl.mount(R(),{disableScrollLock:o}),w.current&&(w.current.scrollTop=0)},B=Br(()=>{const ee=aE(t)||k().body;nl.add(R(),ee),w.current&&$()}),M=()=>nl.isTopModal(R()),z=Br(ee=>{b.current=ee,ee&&(h&&M()?$():w.current&&cs(w.current,O))}),V=j.useCallback(()=>{nl.remove(R(),O)},[O]);j.useEffect(()=>()=>{V()},[V]),j.useEffect(()=>{h?B():(!C||!s)&&V()},[h,V,C,s,B]);const _=ee=>le=>{var pe;(pe=ee.onKeyDown)==null||pe.call(ee,le),!(le.key!=="Escape"||le.which===229||!M())&&(n||(le.stopPropagation(),d&&d(le,"escapeKeyDown")))},G=ee=>le=>{var pe;(pe=ee.onClick)==null||pe.call(ee,le),le.target===le.currentTarget&&d&&d(le,"backdropClick")};return{getRootProps:(ee={})=>{const le=Qh(e);delete le.onTransitionEnter,delete le.onTransitionExited;const pe={...le,...ee};return{role:"presentation",...pe,onKeyDown:_(pe),ref:S}},getBackdropProps:(ee={})=>{const le=ee;return{"aria-hidden":!0,...le,onClick:G(le),open:h}},getTransitionProps:()=>{const ee=()=>{P(!1),a&&a()},le=()=>{P(!0),l&&l(),s&&V()};return{onEnter:Wh(ee,(u==null?void 0:u.props.onEnter)??Mg),onExited:Wh(le,(u==null?void 0:u.props.onExited)??Mg)}},rootRef:S,portalRef:z,isTopModal:M,exited:E,hasTransition:C}}function uE(e){return lt("MuiModal",e)}it("MuiModal",["root","hidden","backdrop"]);const dE=e=>{const{open:t,exited:n,classes:o}=e;return ft({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},uE,o)},fE=Re("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(vt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),pE=Re(sE,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),hE=j.forwardRef(function(t,n){const o=pt({name:"MuiModal",props:t}),{BackdropComponent:s=pE,BackdropProps:a,classes:l,className:u,closeAfterTransition:d=!1,children:h,container:y,component:m,components:b={},componentsProps:w={},disableAutoFocus:S=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:P=!1,disablePortal:C=!1,disableRestoreFocus:O=!1,disableScrollLock:k=!1,hideBackdrop:R=!1,keepMounted:$=!1,onBackdropClick:B,onClose:M,onTransitionEnter:z,onTransitionExited:V,open:_,slotProps:G={},slots:re={},theme:H,...Q}=o,ee={...o,closeAfterTransition:d,disableAutoFocus:S,disableEnforceFocus:E,disableEscapeKeyDown:P,disablePortal:C,disableRestoreFocus:O,disableScrollLock:k,hideBackdrop:R,keepMounted:$},{getRootProps:le,getBackdropProps:pe,getTransitionProps:he,portalRef:be,isTopModal:we,exited:ue,hasTransition:Ce}=cE({...ee,rootRef:n}),De={...ee,exited:ue},Xe=dE(De),Ke={};if(h.props.tabIndex===void 0&&(Ke.tabIndex="-1"),Ce){const{onEnter:fe,onExited:Pe}=he();Ke.onEnter=fe,Ke.onExited=Pe}const He={...Q,slots:{root:b.Root,backdrop:b.Backdrop,...re},slotProps:{...w,...G}},[gt,ae]=ir("root",{elementType:fE,externalForwardedProps:He,getSlotProps:le,additionalProps:{ref:n,as:m},ownerState:De,className:Te(u,Xe==null?void 0:Xe.root,!De.open&&De.exited&&(Xe==null?void 0:Xe.hidden))}),[de,ge]=ir("backdrop",{elementType:s,externalForwardedProps:He,additionalProps:a,getSlotProps:fe=>pe({...fe,onClick:Pe=>{B&&B(Pe),fe!=null&&fe.onClick&&fe.onClick(Pe)}}),className:Te(a==null?void 0:a.className,Xe==null?void 0:Xe.backdrop),ownerState:De}),me=Xt(a==null?void 0:a.ref,ge.ref);return!$&&!_&&(!Ce||ue)?null:v.jsx(Q_,{ref:be,container:y,disablePortal:C,children:v.jsxs(gt,{...ae,children:[!R&&s?v.jsx(de,{...ge,ref:me}):null,v.jsx(J_,{disableEnforceFocus:E,disableAutoFocus:S,disableRestoreFocus:O,isEnabled:we,open:_,children:j.cloneElement(h,Ke)})]})})});function gE(e){return lt("MuiPaper",e)}it("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);const mE=e=>{const{square:t,elevation:n,variant:o,classes:s}=e,a={root:["root",o,!t&&"rounded",o==="elevation"&&`elevation${n}`]};return ft(a,gE,s)},yE=Re("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(vt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),vE=j.forwardRef(function(t,n){var w;const o=pt({props:t,name:"MuiPaper"}),s=Ma(),{className:a,component:l="div",elevation:u=1,square:d=!1,variant:h="elevation",...y}=o,m={...o,component:l,elevation:u,square:d,variant:h},b=mE(m);return v.jsx(yE,{as:l,ownerState:m,className:Te(b.root,a),ref:n,...y,style:{...h==="elevation"&&{"--Paper-shadow":(s.vars||s).shadows[u],...s.vars&&{"--Paper-overlay":(w=s.vars.overlays)==null?void 0:w[u]},...!s.vars&&s.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${Gt("#fff",Iu(u))}, ${Gt("#fff",Iu(u))})`}},...y.style}})});function bE(e){return lt("MuiPopover",e)}it("MuiPopover",["root","paper"]);function $g(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Dg(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Bg(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function Vu(e){return typeof e=="function"?e():e}const xE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"]},bE,t)},wE=Re(hE,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Lg=Re(vE,{name:"MuiPopover",slot:"Paper",overridesResolver:(e,t)=>t.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),SE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiPopover"}),{action:s,anchorEl:a,anchorOrigin:l={vertical:"top",horizontal:"left"},anchorPosition:u,anchorReference:d="anchorEl",children:h,className:y,container:m,elevation:b=8,marginThreshold:w=16,open:S,PaperProps:E={},slots:P={},slotProps:C={},transformOrigin:O={vertical:"top",horizontal:"left"},TransitionComponent:k=Gu,transitionDuration:R="auto",TransitionProps:{onEntering:$,...B}={},disableScrollLock:M=!1,...z}=o,V=(C==null?void 0:C.paper)??E,_=j.useRef(),G={...o,anchorOrigin:l,anchorReference:d,elevation:b,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:O,TransitionComponent:k,transitionDuration:R,TransitionProps:B},re=xE(G),H=j.useCallback(()=>{if(d==="anchorPosition")return u;const ge=Vu(a),fe=(ge&&ge.nodeType===1?ge:Un(_.current).body).getBoundingClientRect();return{top:fe.top+$g(fe,l.vertical),left:fe.left+Dg(fe,l.horizontal)}},[a,l.horizontal,l.vertical,u,d]),Q=j.useCallback(ge=>({vertical:$g(ge,O.vertical),horizontal:Dg(ge,O.horizontal)}),[O.horizontal,O.vertical]),ee=j.useCallback(ge=>{const me={width:ge.offsetWidth,height:ge.offsetHeight},fe=Q(me);if(d==="none")return{top:null,left:null,transformOrigin:Bg(fe)};const Pe=H();let ve=Pe.top-fe.vertical,Be=Pe.left-fe.horizontal;const Ge=ve+me.height,Ae=Be+me.width,ke=or(Vu(a)),We=ke.innerHeight-w,et=ke.innerWidth-w;if(w!==null&&ve<w){const Le=ve-w;ve-=Le,fe.vertical+=Le}else if(w!==null&&Ge>We){const Le=Ge-We;ve-=Le,fe.vertical+=Le}if(w!==null&&Be<w){const Le=Be-w;Be-=Le,fe.horizontal+=Le}else if(Ae>et){const Le=Ae-et;Be-=Le,fe.horizontal+=Le}return{top:`${Math.round(ve)}px`,left:`${Math.round(Be)}px`,transformOrigin:Bg(fe)}},[a,d,H,Q,w]),[le,pe]=j.useState(S),he=j.useCallback(()=>{const ge=_.current;if(!ge)return;const me=ee(ge);me.top!==null&&ge.style.setProperty("top",me.top),me.left!==null&&(ge.style.left=me.left),ge.style.transformOrigin=me.transformOrigin,pe(!0)},[ee]);j.useEffect(()=>(M&&window.addEventListener("scroll",he),()=>window.removeEventListener("scroll",he)),[a,M,he]);const be=(ge,me)=>{$&&$(ge,me),he()},we=()=>{pe(!1)};j.useEffect(()=>{S&&he()}),j.useImperativeHandle(s,()=>S?{updatePosition:()=>{he()}}:null,[S,he]),j.useEffect(()=>{if(!S)return;const ge=Oa(()=>{he()}),me=or(a);return me.addEventListener("resize",ge),()=>{ge.clear(),me.removeEventListener("resize",ge)}},[a,S,he]);let ue=R;R==="auto"&&!k.muiSupportAuto&&(ue=void 0);const Ce=m||(a?Un(Vu(a)).body:void 0),De={slots:P,slotProps:{...C,paper:V}},[Xe,Ke]=ir("paper",{elementType:Lg,externalForwardedProps:De,additionalProps:{elevation:b,className:Te(re.paper,V==null?void 0:V.className),style:le?V.style:{...V.style,opacity:0}},ownerState:G}),[He,{slotProps:gt,...ae}]=ir("root",{elementType:wE,externalForwardedProps:De,additionalProps:{slotProps:{backdrop:{invisible:!0}},container:Ce,open:S},ownerState:G,className:Te(re.root,y)}),de=Xt(_,Ke.ref);return v.jsx(He,{...ae,...!Pu(He)&&{slotProps:gt,disableScrollLock:M},...z,ref:n,children:v.jsx(k,{appear:!0,in:S,onEntering:be,onExited:we,timeout:ue,...B,children:v.jsx(Xe,{...Ke,ref:de,children:h})})})});function CE(e){return lt("MuiMenu",e)}it("MuiMenu",["root","paper","list"]);const _E={vertical:"top",horizontal:"right"},EE={vertical:"top",horizontal:"left"},RE=e=>{const{classes:t}=e;return ft({root:["root"],paper:["paper"],list:["list"]},CE,t)},IE=Re(SE,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),kE=Re(Lg,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),TE=Re(O_,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),PE=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:h,open:y,PaperProps:m={},PopoverClasses:b,transitionDuration:w="auto",TransitionProps:{onEntering:S,...E}={},variant:P="selectedMenu",slots:C={},slotProps:O={},...k}=o,R=Cu(),$={...o,autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:S,PaperProps:m,transitionDuration:w,TransitionProps:E,variant:P},B=RE($),M=s&&!u&&y,z=j.useRef(null),V=(le,pe)=>{z.current&&z.current.adjustStyleForScrollbar(le,{direction:R?"rtl":"ltr"}),S&&S(le,pe)},_=le=>{le.key==="Tab"&&(le.preventDefault(),h&&h(le,"tabKeyDown"))};let G=-1;j.Children.map(a,(le,pe)=>{j.isValidElement(le)&&(le.props.disabled||(P==="selectedMenu"&&le.props.selected||G===-1)&&(G=pe))});const re=C.paper??kE,H=O.paper??m,Q=Yo({elementType:C.root,externalSlotProps:O.root,ownerState:$,className:[B.root,l]}),ee=Yo({elementType:re,externalSlotProps:H,ownerState:$,className:B.paper});return v.jsx(IE,{onClose:h,anchorOrigin:{vertical:"bottom",horizontal:R?"right":"left"},transformOrigin:R?_E:EE,slots:{paper:re,root:C.root},slotProps:{root:Q,paper:ee},open:y,ref:n,transitionDuration:w,TransitionProps:{onEntering:V,...E},ownerState:$,...k,classes:b,children:v.jsx(TE,{onKeyDown:_,actions:z,autoFocus:s&&(G===-1||u),autoFocusItem:M,variant:P,...d,className:Te(B.list,d.className),children:a})})});function OE(e){return lt("MuiNativeSelect",e)}const Yu=it("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),AE=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:a,error:l}=e,u={select:["select",n,o&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",o&&"disabled"]};return ft(u,OE,t)},jg=Re("select")(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Yu.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),ME=Re(jg,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Pn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Yu.multiple}`]:t.multiple}]}})({}),Ng=Re("svg")(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Yu.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),$E=Re(Ng,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),DE=j.forwardRef(function(t,n){const{className:o,disabled:s,error:a,IconComponent:l,inputRef:u,variant:d="standard",...h}=t,y={...t,disabled:s,variant:d,error:a},m=AE(y);return v.jsxs(j.Fragment,{children:[v.jsx(ME,{ownerState:y,className:Te(m.select,o),disabled:s,ref:u||n,...h}),t.multiple?null:v.jsx($E,{as:l,ownerState:y,className:m.icon})]})});function BE(e){return lt("MuiSelect",e)}const us=it("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Fg;const LE=Re(jg,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${us.select}`]:t.select},{[`&.${us.select}`]:t[n.variant]},{[`&.${us.error}`]:t.error},{[`&.${us.multiple}`]:t.multiple}]}})({[`&.${us.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),jE=Re(Ng,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${je(n.variant)}`],n.open&&t.iconOpen]}})({}),NE=Re("input",{shouldForwardProp:e=>yg(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput",overridesResolver:(e,t)=>t.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function zg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function FE(e){return e==null||typeof e=="string"&&!e.trim()}const zE=e=>{const{classes:t,variant:n,disabled:o,multiple:s,open:a,error:l}=e,u={select:["select",n,o&&"disabled",s&&"multiple",l&&"error"],icon:["icon",`icon${je(n)}`,a&&"iconOpen",o&&"disabled"],nativeInput:["nativeInput"]};return ft(u,BE,t)},WE=j.forwardRef(function(t,n){var J;const{"aria-describedby":o,"aria-label":s,autoFocus:a,autoWidth:l,children:u,className:d,defaultOpen:h,defaultValue:y,disabled:m,displayEmpty:b,error:w=!1,IconComponent:S,inputRef:E,labelId:P,MenuProps:C={},multiple:O,name:k,onBlur:R,onChange:$,onClose:B,onFocus:M,onOpen:z,open:V,readOnly:_,renderValue:G,SelectDisplayProps:re={},tabIndex:H,type:Q,value:ee,variant:le="standard",...pe}=t,[he,be]=qh({controlled:ee,default:y,name:"Select"}),[we,ue]=qh({controlled:V,default:h,name:"Select"}),Ce=j.useRef(null),De=j.useRef(null),[Xe,Ke]=j.useState(null),{current:He}=j.useRef(V!=null),[gt,ae]=j.useState(),de=Xt(n,E),ge=j.useCallback(ce=>{De.current=ce,ce&&Ke(ce)},[]),me=Xe==null?void 0:Xe.parentNode;j.useImperativeHandle(de,()=>({focus:()=>{De.current.focus()},node:Ce.current,value:he}),[he]),j.useEffect(()=>{h&&we&&Xe&&!He&&(ae(l?null:me.clientWidth),De.current.focus())},[Xe,l]),j.useEffect(()=>{a&&De.current.focus()},[a]),j.useEffect(()=>{if(!P)return;const ce=Un(De.current).getElementById(P);if(ce){const oe=()=>{getSelection().isCollapsed&&De.current.focus()};return ce.addEventListener("click",oe),()=>{ce.removeEventListener("click",oe)}}},[P]);const fe=(ce,oe)=>{ce?z&&z(oe):B&&B(oe),He||(ae(l?null:me.clientWidth),ue(ce))},Pe=ce=>{ce.button===0&&(ce.preventDefault(),De.current.focus(),fe(!0,ce))},ve=ce=>{fe(!1,ce)},Be=j.Children.toArray(u),Ge=ce=>{const oe=Be.find(se=>se.props.value===ce.target.value);oe!==void 0&&(be(oe.props.value),$&&$(ce,oe))},Ae=ce=>oe=>{let se;if(oe.currentTarget.hasAttribute("tabindex")){if(O){se=Array.isArray(he)?he.slice():[];const Ee=he.indexOf(ce.props.value);Ee===-1?se.push(ce.props.value):se.splice(Ee,1)}else se=ce.props.value;if(ce.props.onClick&&ce.props.onClick(oe),he!==se&&(be(se),$)){const Ee=oe.nativeEvent||oe,_e=new Ee.constructor(Ee.type,Ee);Object.defineProperty(_e,"target",{writable:!0,value:{value:se,name:k}}),$(_e,ce)}O||fe(!1,oe)}},ke=ce=>{_||[" ","ArrowUp","ArrowDown","Enter"].includes(ce.key)&&(ce.preventDefault(),fe(!0,ce))},We=Xe!==null&&we,et=ce=>{!We&&R&&(Object.defineProperty(ce,"target",{writable:!0,value:{value:he,name:k}}),R(ce))};delete pe["aria-invalid"];let Le,xe;const ut=[];let Ut=!1;(Da({value:he})||b)&&(G?Le=G(he):Ut=!0);const Ht=Be.map(ce=>{if(!j.isValidElement(ce))return null;let oe;if(O){if(!Array.isArray(he))throw new Error($r(2));oe=he.some(se=>zg(se,ce.props.value)),oe&&Ut&&ut.push(ce.props.children)}else oe=zg(he,ce.props.value),oe&&Ut&&(xe=ce.props.children);return j.cloneElement(ce,{"aria-selected":oe?"true":"false",onClick:Ae(ce),onKeyUp:se=>{se.key===" "&&se.preventDefault(),ce.props.onKeyUp&&ce.props.onKeyUp(se)},role:"option",selected:oe,value:void 0,"data-value":ce.props.value})});Ut&&(O?ut.length===0?Le=null:Le=ut.reduce((ce,oe,se)=>(ce.push(oe),se<ut.length-1&&ce.push(", "),ce),[]):Le=xe);let Yn=gt;!l&&He&&Xe&&(Yn=me.clientWidth);let I;typeof H<"u"?I=H:I=m?null:0;const p=re.id||(k?`mui-component-select-${k}`:void 0),g={...t,variant:le,value:he,open:We,error:w},D=zE(g),N={...C.PaperProps,...(J=C.slotProps)==null?void 0:J.paper},q=Gh();return v.jsxs(j.Fragment,{children:[v.jsx(LE,{as:"div",ref:ge,tabIndex:I,role:"combobox","aria-controls":q,"aria-disabled":m?"true":void 0,"aria-expanded":We?"true":"false","aria-haspopup":"listbox","aria-label":s,"aria-labelledby":[P,p].filter(Boolean).join(" ")||void 0,"aria-describedby":o,onKeyDown:ke,onMouseDown:m||_?null:Pe,onBlur:et,onFocus:M,...re,ownerState:g,className:Te(re.className,D.select,d),id:p,children:FE(Le)?Fg||(Fg=v.jsx("span",{className:"notranslate","aria-hidden":!0,children:""})):Le}),v.jsx(NE,{"aria-invalid":w,value:Array.isArray(he)?he.join(","):he,name:k,ref:Ce,"aria-hidden":!0,onChange:Ge,tabIndex:-1,disabled:m,className:D.nativeInput,autoFocus:a,...pe,ownerState:g}),v.jsx(jE,{as:S,className:D.icon,ownerState:g}),v.jsx(PE,{id:`menu-${k||""}`,anchorEl:me,open:We,onClose:ve,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...C,MenuListProps:{"aria-labelledby":P,role:"listbox","aria-multiselectable":O?"true":void 0,disableListWrap:!0,id:q,...C.MenuListProps},slotProps:{...C.slotProps,paper:{...N,style:{minWidth:Yn,...N!=null?N.style:null}}},children:Ht})]})}),UE=bn(v.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),HE=e=>{const{classes:t}=e;return t},Xu={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Pn(e)&&e!=="variant",slot:"Root"},GE=Re(Fa,Xu)(""),qE=Re(Ua,Xu)(""),VE=Re(Wa,Xu)(""),rl=j.forwardRef(function(t,n){const o=pt({name:"MuiSelect",props:t}),{autoWidth:s=!1,children:a,classes:l={},className:u,defaultOpen:d=!1,displayEmpty:h=!1,IconComponent:y=UE,id:m,input:b,inputProps:w,label:S,labelId:E,MenuProps:P,multiple:C=!1,native:O=!1,onClose:k,onOpen:R,open:$,renderValue:B,SelectDisplayProps:M,variant:z="outlined",...V}=o,_=O?DE:WE,G=ti(),re=ei({props:o,muiFormControl:G,states:["variant","error"]}),H=re.variant||z,Q={...o,variant:H,classes:l},ee=HE(Q),{root:le,...pe}=ee,he=b||{standard:v.jsx(GE,{ownerState:Q}),outlined:v.jsx(qE,{label:S,ownerState:Q}),filled:v.jsx(VE,{ownerState:Q})}[H],be=Xt(n,ts(he));return v.jsx(j.Fragment,{children:j.cloneElement(he,{inputComponent:_,inputProps:{children:a,error:re.error,IconComponent:y,variant:H,type:void 0,multiple:C,...O?{id:m}:{autoWidth:s,defaultOpen:d,displayEmpty:h,labelId:E,MenuProps:P,onClose:k,onOpen:R,open:$,renderValue:B,SelectDisplayProps:{id:m,...M}},...w,classes:w?sn(pe,w.classes):pe,...b?b.props.inputProps:{}},...(C&&O||h)&&H==="outlined"?{notched:!0}:{},ref:be,className:Te(he.props.className,u,ee.root),...!b&&{variant:H},...V})})});rl.muiName="Select";function YE(e){return lt("MuiTextField",e)}it("MuiTextField",["root"]);const XE={standard:Fa,filled:Wa,outlined:Ua},KE=e=>{const{classes:t}=e;return ft({root:["root"]},YE,t)},JE=Re($u,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ol=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTextField"}),{autoComplete:s,autoFocus:a=!1,children:l,className:u,color:d="primary",defaultValue:h,disabled:y=!1,error:m=!1,FormHelperTextProps:b,fullWidth:w=!1,helperText:S,id:E,InputLabelProps:P,inputProps:C,InputProps:O,inputRef:k,label:R,maxRows:$,minRows:B,multiline:M=!1,name:z,onBlur:V,onChange:_,onFocus:G,placeholder:re,required:H=!1,rows:Q,select:ee=!1,SelectProps:le,slots:pe={},slotProps:he={},type:be,value:we,variant:ue="outlined",...Ce}=o,De={...o,autoFocus:a,color:d,disabled:y,error:m,fullWidth:w,multiline:M,required:H,select:ee,variant:ue},Xe=KE(De),Ke=Gh(E),He=S&&Ke?`${Ke}-helper-text`:void 0,gt=R&&Ke?`${Ke}-label`:void 0,ae=XE[ue],de={slots:pe,slotProps:{input:O,inputLabel:P,htmlInput:C,formHelperText:b,select:le,...he}},ge={},me=de.slotProps.inputLabel;ue==="outlined"&&(me&&typeof me.shrink<"u"&&(ge.notched=me.shrink),ge.label=R),ee&&((!le||!le.native)&&(ge.id=void 0),ge["aria-describedby"]=void 0);const[fe,Pe]=ir("input",{elementType:ae,externalForwardedProps:de,additionalProps:ge,ownerState:De}),[ve,Be]=ir("inputLabel",{elementType:Mu,externalForwardedProps:de,ownerState:De}),[Ge,Ae]=ir("htmlInput",{elementType:"input",externalForwardedProps:de,ownerState:De}),[ke,We]=ir("formHelperText",{elementType:E_,externalForwardedProps:de,ownerState:De}),[et,Le]=ir("select",{elementType:rl,externalForwardedProps:de,ownerState:De}),xe=v.jsx(fe,{"aria-describedby":He,autoComplete:s,autoFocus:a,defaultValue:h,fullWidth:w,multiline:M,name:z,rows:Q,maxRows:$,minRows:B,type:be,value:we,id:Ke,inputRef:k,onBlur:V,onChange:_,onFocus:G,placeholder:re,inputProps:Ae,slots:{input:pe.htmlInput?Ge:void 0},...Pe});return v.jsxs(JE,{className:Te(Xe.root,u),disabled:y,error:m,fullWidth:w,ref:n,required:H,color:d,variant:ue,ownerState:De,...Ce,children:[R!=null&&R!==""&&v.jsx(ve,{htmlFor:Ke,id:gt,...Be,children:R}),ee?v.jsx(et,{"aria-describedby":He,id:Ke,labelId:gt,value:we,input:xe,...Le,children:l}):xe,S&&v.jsx(ke,{id:He,...We,children:S})]})});class il{constructor(){Ar(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 il}static use(){const t=Yh(il.create).current,[n,o]=j.useState(!1);return t.shouldMount=n,t.setShouldMount=o,j.useEffect(t.mountEffect,[n]),t}mount(){return this.mounted||(this.mounted=QE(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}start(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.start(...t)})}stop(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.stop(...t)})}pulsate(...t){this.mount().then(()=>{var n;return(n=this.ref.current)==null?void 0:n.pulsate(...t)})}}function ZE(){return il.use()}function QE(){let e,t;const n=new Promise((o,s)=>{e=o,t=s});return n.resolve=e,n.reject=t,n}function eR(e){const{className:t,classes:n,pulsate:o=!1,rippleX:s,rippleY:a,rippleSize:l,in:u,onExited:d,timeout:h}=e,[y,m]=j.useState(!1),b=Te(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),w={width:l,height:l,top:-(l/2)+a,left:-(l/2)+s},S=Te(n.child,y&&n.childLeaving,o&&n.childPulsate);return!u&&!y&&m(!0),j.useEffect(()=>{if(!u&&d!=null){const E=setTimeout(d,h);return()=>{clearTimeout(E)}}},[d,u,h]),v.jsx("span",{className:b,style:w,children:v.jsx("span",{className:S})})}const Gn=it("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Ku=550,tR=80,nR=Xi`
|
|
52
52
|
0% {
|
|
53
53
|
transform: scale(0);
|
|
54
54
|
opacity: 0.1;
|
|
@@ -58,7 +58,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
58
58
|
transform: scale(1);
|
|
59
59
|
opacity: 0.3;
|
|
60
60
|
}
|
|
61
|
-
`,
|
|
61
|
+
`,rR=Xi`
|
|
62
62
|
0% {
|
|
63
63
|
opacity: 1;
|
|
64
64
|
}
|
|
@@ -66,7 +66,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
66
66
|
100% {
|
|
67
67
|
opacity: 0;
|
|
68
68
|
}
|
|
69
|
-
`,
|
|
69
|
+
`,oR=Xi`
|
|
70
70
|
0% {
|
|
71
71
|
transform: scale(1);
|
|
72
72
|
}
|
|
@@ -78,23 +78,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
78
78
|
100% {
|
|
79
79
|
transform: scale(1);
|
|
80
80
|
}
|
|
81
|
-
`,
|
|
81
|
+
`,iR=Re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),sR=Re(eR,{name:"MuiTouchRipple",slot:"Ripple"})`
|
|
82
82
|
opacity: 0;
|
|
83
83
|
position: absolute;
|
|
84
84
|
|
|
85
|
-
&.${
|
|
85
|
+
&.${Gn.rippleVisible} {
|
|
86
86
|
opacity: 0.3;
|
|
87
87
|
transform: scale(1);
|
|
88
|
-
animation-name: ${
|
|
89
|
-
animation-duration: ${
|
|
88
|
+
animation-name: ${nR};
|
|
89
|
+
animation-duration: ${Ku}ms;
|
|
90
90
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
91
91
|
}
|
|
92
92
|
|
|
93
|
-
&.${
|
|
93
|
+
&.${Gn.ripplePulsate} {
|
|
94
94
|
animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
|
-
& .${
|
|
97
|
+
& .${Gn.child} {
|
|
98
98
|
opacity: 1;
|
|
99
99
|
display: block;
|
|
100
100
|
width: 100%;
|
|
@@ -103,25 +103,25 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
103
103
|
background-color: currentColor;
|
|
104
104
|
}
|
|
105
105
|
|
|
106
|
-
& .${
|
|
106
|
+
& .${Gn.childLeaving} {
|
|
107
107
|
opacity: 0;
|
|
108
|
-
animation-name: ${
|
|
109
|
-
animation-duration: ${
|
|
108
|
+
animation-name: ${rR};
|
|
109
|
+
animation-duration: ${Ku}ms;
|
|
110
110
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
& .${
|
|
113
|
+
& .${Gn.childPulsate} {
|
|
114
114
|
position: absolute;
|
|
115
115
|
/* @noflip */
|
|
116
116
|
left: 0px;
|
|
117
117
|
top: 0;
|
|
118
|
-
animation-name: ${
|
|
118
|
+
animation-name: ${oR};
|
|
119
119
|
animation-duration: 2500ms;
|
|
120
120
|
animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
|
|
121
121
|
animation-iteration-count: infinite;
|
|
122
122
|
animation-delay: 200ms;
|
|
123
123
|
}
|
|
124
|
-
`,FR=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:l,...c}=r,[d,f]=L.useState([]),y=L.useRef(0),m=L.useRef(null);L.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const v=L.useRef(!1),w=xg(),x=L.useRef(null),_=L.useRef(null),k=L.useCallback(R=>{const{pulsate:M,rippleX:D,rippleY:$,rippleSize:z,cb:V}=R;f(E=>[...E,b.jsx(LR,{classes:{ripple:Pe(a.ripple,Xn.ripple),rippleVisible:Pe(a.rippleVisible,Xn.rippleVisible),ripplePulsate:Pe(a.ripplePulsate,Xn.ripplePulsate),child:Pe(a.child,Xn.child),childLeaving:Pe(a.childLeaving,Xn.childLeaving),childPulsate:Pe(a.childPulsate,Xn.childPulsate)},timeout:md,pulsate:M,rippleX:D,rippleY:$,rippleSize:z},y.current)]),y.current+=1,m.current=V},[a]),C=L.useCallback((R={},M={},D=()=>{})=>{const{pulsate:$=!1,center:z=i||M.pulsate,fakeElement:V=!1}=M;if((R==null?void 0:R.type)==="mousedown"&&v.current){v.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(v.current=!0);const E=V?null:_.current,G=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let te,H,X;if(z||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)te=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:ee,clientY:ae}=R.touches&&R.touches.length>0?R.touches[0]:R;te=Math.round(ee-G.left),H=Math.round(ae-G.top)}if(z)X=Math.sqrt((2*G.width**2+G.height**2)/3),X%2===0&&(X+=1);else{const ee=Math.max(Math.abs((E?E.clientWidth:0)-te),te)*2+2,ae=Math.max(Math.abs((E?E.clientHeight:0)-H),H)*2+2;X=Math.sqrt(ee**2+ae**2)}R!=null&&R.touches?x.current===null&&(x.current=()=>{k({pulsate:$,rippleX:te,rippleY:H,rippleSize:X,cb:D})},w.start($R,()=>{x.current&&(x.current(),x.current=null)})):k({pulsate:$,rippleX:te,rippleY:H,rippleSize:X,cb:D})},[i,k,w]),O=L.useCallback(()=>{C({},{pulsate:!0})},[C]),P=L.useCallback((R,M)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&x.current){x.current(),x.current=null,w.start(0,()=>{P(R,M)});return}x.current=null,f(D=>D.length>0?D.slice(1):D),m.current=M},[w]);return L.useImperativeHandle(n,()=>({pulsate:O,start:C,stop:P}),[O,C,P]),b.jsx(jR,{className:Pe(Xn.root,a.root,l),ref:_,...c,children:b.jsx(ld,{component:null,exit:!0,children:d})})});function NR(e){return ct("MuiButtonBase",e)}const zR=ot("MuiButtonBase",["root","disabled","focusVisible"]),WR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,l=ft({root:["root",t&&"disabled",n&&"focusVisible"]},NR,i);return n&&r&&(l.root+=` ${r}`),l},UR=Ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${zR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fi=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:l,className:c,component:d="button",disabled:f=!1,disableRipple:y=!1,disableTouchRipple:m=!1,focusRipple:v=!1,focusVisibleClassName:w,LinkComponent:x="a",onBlur:_,onClick:k,onContextMenu:C,onDragLeave:O,onFocus:P,onFocusVisible:R,onKeyDown:M,onKeyUp:D,onMouseDown:$,onMouseLeave:z,onMouseUp:V,onTouchEnd:E,onTouchMove:G,onTouchStart:te,tabIndex:H=0,TouchRippleProps:X,touchRippleRef:ee,type:ae,...fe}=r,pe=L.useRef(null),_e=kR(),We=Zt(_e.ref,ee),[be,Be]=L.useState(!1);f&&be&&Be(!1),L.useImperativeHandle(i,()=>({focusVisible:()=>{Be(!0),pe.current.focus()}}),[]);const Ne=_e.shouldMount&&!y&&!f;L.useEffect(()=>{be&&v&&!y&&_e.pulsate()},[y,v,be,_e]);function Me(ye,At,Nt=m){return Nr(yn=>(At&&At(yn),Nt||_e[ye](yn),!0))}const Xe=Me("start",$),Ge=Me("stop",C),ht=Me("stop",O),le=Me("stop",V),ue=Me("stop",ye=>{be&&ye.preventDefault(),z&&z(ye)}),he=Me("start",te),ge=Me("stop",E),de=Me("stop",G),Te=Me("stop",ye=>{wg(ye.target)||Be(!1),_&&_(ye)},!1),ve=Nr(ye=>{pe.current||(pe.current=ye.currentTarget),wg(ye.target)&&(Be(!0),R&&R(ye)),P&&P(ye)}),ke=()=>{const ye=pe.current;return d&&d!=="button"&&!(ye.tagName==="A"&&ye.href)},qe=Nr(ye=>{v&&!ye.repeat&&be&&ye.key===" "&&_e.stop(ye,()=>{_e.start(ye)}),ye.target===ye.currentTarget&&ke()&&ye.key===" "&&ye.preventDefault(),M&&M(ye),ye.target===ye.currentTarget&&ke()&&ye.key==="Enter"&&!f&&(ye.preventDefault(),k&&k(ye))}),De=Nr(ye=>{v&&ye.key===" "&&be&&!ye.defaultPrevented&&_e.stop(ye,()=>{_e.pulsate(ye)}),D&&D(ye),k&&ye.target===ye.currentTarget&&ke()&&ye.key===" "&&!ye.defaultPrevented&&k(ye)});let Re=d;Re==="button"&&(fe.href||fe.to)&&(Re=x);const Fe={};Re==="button"?(Fe.type=ae===void 0?"button":ae,Fe.disabled=f):(!fe.href&&!fe.to&&(Fe.role="button"),f&&(Fe["aria-disabled"]=f));const tt=Zt(n,pe),$e={...r,centerRipple:a,component:d,disabled:f,disableRipple:y,disableTouchRipple:m,focusRipple:v,tabIndex:H,focusVisible:be},st=WR($e);return b.jsxs(UR,{as:Re,className:Pe(st.root,c),ownerState:$e,onBlur:Te,onClick:k,onContextMenu:Ge,onFocus:ve,onKeyDown:qe,onKeyUp:De,onMouseDown:Xe,onMouseLeave:ue,onMouseUp:le,onDragLeave:ht,onTouchEnd:ge,onTouchMove:de,onTouchStart:he,ref:tt,tabIndex:f?-1:H,type:ae,...Fe,...fe,children:[l,Ne?b.jsx(FR,{ref:We,center:a,...X}):null]})});function HR(e){return ct("MuiButton",e)}const pi=ot("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),GR=L.createContext({}),qR=L.createContext(void 0),VR=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:l}=e,c={root:["root",a,`${a}${je(t)}`,`size${je(i)}`,`${a}Size${je(i)}`,`color${je(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${je(i)}`],endIcon:["icon","endIcon",`iconSize${je(i)}`]},d=ft(c,HR,l);return{...l,...d}},lm=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],KR=Ce(fi,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(vt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${pi.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${pi.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${pi.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${pi.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(Wr()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[r].mainChannel} / 0.5)`:Kt(e.palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[r].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[r].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette[r].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${pi.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${pi.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),YR=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...lm]}),XR=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...lm]}),hi=L.forwardRef(function(t,n){const r=L.useContext(GR),i=L.useContext(qR),a=ss(r,t),l=yt({props:a,name:"MuiButton"}),{children:c,color:d="primary",component:f="button",className:y,disabled:m=!1,disableElevation:v=!1,disableFocusRipple:w=!1,endIcon:x,focusVisibleClassName:_,fullWidth:k=!1,size:C="medium",startIcon:O,type:P,variant:R="text",...M}=l,D={...l,color:d,component:f,disabled:m,disableElevation:v,disableFocusRipple:w,fullWidth:k,size:C,type:P,variant:R},$=VR(D),z=O&&b.jsx(YR,{className:$.startIcon,ownerState:D,children:O}),V=x&&b.jsx(XR,{className:$.endIcon,ownerState:D,children:x}),E=i||"";return b.jsxs(KR,{ownerState:D,className:Pe(r.className,$.root,y,E),component:f,disabled:m,focusRipple:!w,focusVisibleClassName:Pe($.focusVisible,_),ref:n,type:P,...M,classes:$,children:[z,c,V]})});function JR(e){return ct("MuiDivider",e)}const cm=ot("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),ZR=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:l,textAlign:c,variant:d}=e;return ft({root:["root",t&&"absolute",d,a&&"light",l==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",c==="right"&&l!=="vertical"&&"textAlignRight",c==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},JR,r)},QR=Ce("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(vt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Kt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),eP=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(vt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),bs=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:l,orientation:c="horizontal",component:d=a||c==="vertical"?"div":"hr",flexItem:f=!1,light:y=!1,role:m=d!=="hr"?"separator":void 0,textAlign:v="center",variant:w="fullWidth",...x}=r,_={...r,absolute:i,component:d,flexItem:f,light:y,orientation:c,role:m,textAlign:v,variant:w},k=ZR(_);return b.jsx(QR,{as:d,className:Pe(k.root,l),role:m,ref:n,ownerState:_,"aria-orientation":m==="separator"&&(d!=="hr"||c==="vertical")?c:void 0,...x,children:a?b.jsx(eP,{className:k.wrapper,ownerState:_,children:a}):null})});bs&&(bs.muiSkipListHighlight=!0);function tP(e){return ct("MuiListItemButton",e)}const xs=ot("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),nP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},rP=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:l,selected:c}=e,f=ft({root:["root",r&&"dense",!a&&"gutters",l&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",c&&"selected"]},tP,n);return{...n,...f}},oP=Ce(fi,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:nP})(vt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${xs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${xs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${xs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${xs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${xs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),um=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:l="div",children:c,dense:d=!1,disableGutters:f=!1,divider:y=!1,focusVisibleClassName:m,selected:v=!1,className:w,...x}=r,_=L.useContext(ci),k=L.useMemo(()=>({dense:d||_.dense||!1,alignItems:i,disableGutters:f}),[i,_.dense,d,f]),C=L.useRef(null);_r(()=>{a&&C.current&&C.current.focus()},[a]);const O={...r,alignItems:i,dense:k.dense,disableGutters:f,divider:y,selected:v},P=rP(O),R=Zt(C,n);return b.jsx(ci.Provider,{value:k,children:b.jsx(oP,{ref:R,href:x.href||x.to,component:(x.href||x.to)&&l==="div"?"button":l,focusVisibleClassName:Pe(P.focusVisible,m),ownerState:O,className:Pe(P.root,w),...x,classes:P,children:c})})});function iP(e){return ct("MuiIconButton",e)}const sP=ot("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),aP=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,l={root:["root",n&&"disabled",r!=="default"&&`color${je(r)}`,i&&`edge${je(i)}`,`size${je(a)}`]};return ft(l,iP,t)},lP=Ce(fi,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(vt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:{disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Kt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${sP.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),un=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:l,color:c="default",disabled:d=!1,disableFocusRipple:f=!1,disableRipple:y=!1,size:m="medium",...v}=r,w={...r,edge:i,color:c,disabled:d,disableFocusRipple:f,disableRipple:y,size:m},x=aP(w);return b.jsx(lP,{className:Pe(x.root,l),centerRipple:!0,focusRipple:!f,disabled:d,disableRipple:y,ref:n,...v,ownerState:w,children:a})});function cP(e){return ct("MuiTypography",e)}const dm=ot("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),uP={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dP=y_(),fP=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:l}=e,c={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return ft(c,cP,l)},pP=Ce("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(vt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,r])=>n!=="inherit"&&r&&typeof r=="object").map(([n,r])=>({props:{variant:n},style:r})),...Object.entries(e.palette).filter(Wr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${je(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),fm={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},bl=L.forwardRef(function(t,n){const{color:r,...i}=yt({props:t,name:"MuiTypography"}),a=!uP[r],l=dP({...i,...a&&{color:r}}),{align:c="inherit",className:d,component:f,gutterBottom:y=!1,noWrap:m=!1,paragraph:v=!1,variant:w="body1",variantMapping:x=fm,..._}=l,k={...l,align:c,color:r,className:d,component:f,gutterBottom:y,noWrap:m,paragraph:v,variant:w,variantMapping:x},C=f||(v?"p":x[w]||fm[w])||"span",O=fP(k);return b.jsx(pP,{as:C,ref:n,className:Pe(O.root,d),..._,ownerState:k,style:{...c!=="inherit"&&{"--Typography-textAlign":c},..._.style}})});function hP(e){return ct("MuiCircularProgress",e)}ot("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const oo=44,yd=ts`
|
|
124
|
+
`,aR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTouchRipple"}),{center:s=!1,classes:a={},className:l,...u}=o,[d,h]=j.useState([]),y=j.useRef(0),m=j.useRef(null);j.useEffect(()=>{m.current&&(m.current(),m.current=null)},[d]);const b=j.useRef(!1),w=Xh(),S=j.useRef(null),E=j.useRef(null),P=j.useCallback(R=>{const{pulsate:$,rippleX:B,rippleY:M,rippleSize:z,cb:V}=R;h(_=>[..._,v.jsx(sR,{classes:{ripple:Te(a.ripple,Gn.ripple),rippleVisible:Te(a.rippleVisible,Gn.rippleVisible),ripplePulsate:Te(a.ripplePulsate,Gn.ripplePulsate),child:Te(a.child,Gn.child),childLeaving:Te(a.childLeaving,Gn.childLeaving),childPulsate:Te(a.childPulsate,Gn.childPulsate)},timeout:Ku,pulsate:$,rippleX:B,rippleY:M,rippleSize:z},y.current)]),y.current+=1,m.current=V},[a]),C=j.useCallback((R={},$={},B=()=>{})=>{const{pulsate:M=!1,center:z=s||$.pulsate,fakeElement:V=!1}=$;if((R==null?void 0:R.type)==="mousedown"&&b.current){b.current=!1;return}(R==null?void 0:R.type)==="touchstart"&&(b.current=!0);const _=V?null:E.current,G=_?_.getBoundingClientRect():{width:0,height:0,left:0,top:0};let re,H,Q;if(z||R===void 0||R.clientX===0&&R.clientY===0||!R.clientX&&!R.touches)re=Math.round(G.width/2),H=Math.round(G.height/2);else{const{clientX:ee,clientY:le}=R.touches&&R.touches.length>0?R.touches[0]:R;re=Math.round(ee-G.left),H=Math.round(le-G.top)}if(z)Q=Math.sqrt((2*G.width**2+G.height**2)/3),Q%2===0&&(Q+=1);else{const ee=Math.max(Math.abs((_?_.clientWidth:0)-re),re)*2+2,le=Math.max(Math.abs((_?_.clientHeight:0)-H),H)*2+2;Q=Math.sqrt(ee**2+le**2)}R!=null&&R.touches?S.current===null&&(S.current=()=>{P({pulsate:M,rippleX:re,rippleY:H,rippleSize:Q,cb:B})},w.start(tR,()=>{S.current&&(S.current(),S.current=null)})):P({pulsate:M,rippleX:re,rippleY:H,rippleSize:Q,cb:B})},[s,P,w]),O=j.useCallback(()=>{C({},{pulsate:!0})},[C]),k=j.useCallback((R,$)=>{if(w.clear(),(R==null?void 0:R.type)==="touchend"&&S.current){S.current(),S.current=null,w.start(0,()=>{k(R,$)});return}S.current=null,h(B=>B.length>0?B.slice(1):B),m.current=$},[w]);return j.useImperativeHandle(n,()=>({pulsate:O,start:C,stop:k}),[O,C,k]),v.jsx(iR,{className:Te(Gn.root,a.root,l),ref:E,...u,children:v.jsx(Wu,{component:null,exit:!0,children:d})})});function lR(e){return lt("MuiButtonBase",e)}const cR=it("MuiButtonBase",["root","disabled","focusVisible"]),uR=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:o,classes:s}=e,l=ft({root:["root",t&&"disabled",n&&"focusVisible"]},lR,s);return n&&o&&(l.root+=` ${o}`),l},dR=Re("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.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"},[`&.${cR.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),si=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiButtonBase"}),{action:s,centerRipple:a=!1,children:l,className:u,component:d="button",disabled:h=!1,disableRipple:y=!1,disableTouchRipple:m=!1,focusRipple:b=!1,focusVisibleClassName:w,LinkComponent:S="a",onBlur:E,onClick:P,onContextMenu:C,onDragLeave:O,onFocus:k,onFocusVisible:R,onKeyDown:$,onKeyUp:B,onMouseDown:M,onMouseLeave:z,onMouseUp:V,onTouchEnd:_,onTouchMove:G,onTouchStart:re,tabIndex:H=0,TouchRippleProps:Q,touchRippleRef:ee,type:le,...pe}=o,he=j.useRef(null),be=ZE(),we=Xt(be.ref,ee),[ue,Ce]=j.useState(!1);h&&ue&&Ce(!1),j.useImperativeHandle(s,()=>({focusVisible:()=>{Ce(!0),he.current.focus()}}),[]);const De=be.shouldMount&&!y&&!h;j.useEffect(()=>{ue&&b&&!y&&be.pulsate()},[y,b,ue,be]);const Xe=Nr(be,"start",M,m),Ke=Nr(be,"stop",C,m),He=Nr(be,"stop",O,m),gt=Nr(be,"stop",V,m),ae=Nr(be,"stop",xe=>{ue&&xe.preventDefault(),z&&z(xe)},m),de=Nr(be,"start",re,m),ge=Nr(be,"stop",_,m),me=Nr(be,"stop",G,m),fe=Nr(be,"stop",xe=>{Kh(xe.target)||Ce(!1),E&&E(xe)},!1),Pe=Br(xe=>{he.current||(he.current=xe.currentTarget),Kh(xe.target)&&(Ce(!0),R&&R(xe)),k&&k(xe)}),ve=()=>{const xe=he.current;return d&&d!=="button"&&!(xe.tagName==="A"&&xe.href)},Be=Br(xe=>{b&&!xe.repeat&&ue&&xe.key===" "&&be.stop(xe,()=>{be.start(xe)}),xe.target===xe.currentTarget&&ve()&&xe.key===" "&&xe.preventDefault(),$&&$(xe),xe.target===xe.currentTarget&&ve()&&xe.key==="Enter"&&!h&&(xe.preventDefault(),P&&P(xe))}),Ge=Br(xe=>{b&&xe.key===" "&&ue&&!xe.defaultPrevented&&be.stop(xe,()=>{be.pulsate(xe)}),B&&B(xe),P&&xe.target===xe.currentTarget&&ve()&&xe.key===" "&&!xe.defaultPrevented&&P(xe)});let Ae=d;Ae==="button"&&(pe.href||pe.to)&&(Ae=S);const ke={};Ae==="button"?(ke.type=le===void 0?"button":le,ke.disabled=h):(!pe.href&&!pe.to&&(ke.role="button"),h&&(ke["aria-disabled"]=h));const We=Xt(n,he),et={...o,centerRipple:a,component:d,disabled:h,disableRipple:y,disableTouchRipple:m,focusRipple:b,tabIndex:H,focusVisible:ue},Le=uR(et);return v.jsxs(dR,{as:Ae,className:Te(Le.root,u),ownerState:et,onBlur:fe,onClick:P,onContextMenu:Ke,onFocus:Pe,onKeyDown:Be,onKeyUp:Ge,onMouseDown:Xe,onMouseLeave:ae,onMouseUp:gt,onDragLeave:He,onTouchEnd:ge,onTouchMove:me,onTouchStart:de,ref:We,tabIndex:h?-1:H,type:le,...ke,...pe,children:[l,De?v.jsx(aR,{ref:we,center:a,...Q}):null]})});function Nr(e,t,n,o=!1){return Br(s=>(n&&n(s),o||e[t](s),!0))}function fR(e){return lt("MuiButton",e)}const ai=it("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),pR=j.createContext({}),hR=j.createContext(void 0),gR=e=>{const{color:t,disableElevation:n,fullWidth:o,size:s,variant:a,classes:l}=e,u={root:["root",a,`${a}${je(t)}`,`size${je(s)}`,`${a}Size${je(s)}`,`color${je(t)}`,n&&"disableElevation",o&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${je(s)}`],endIcon:["icon","endIcon",`iconSize${je(s)}`]},d=ft(u,fR,l);return{...l,...d}},Wg=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],mR=Re(si,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${je(n.color)}`],t[`size${je(n.size)}`],t[`${n.variant}Size${je(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(vt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ai.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ai.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ai.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ai.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(jr()).map(([o])=>({props:{color:o},style:{"--variant-textColor":(e.vars||e).palette[o].main,"--variant-outlinedColor":(e.vars||e).palette[o].main,"--variant-outlinedBorder":e.vars?`rgba(${e.vars.palette[o].mainChannel} / 0.5)`:Gt(e.palette[o].main,.5),"--variant-containedColor":(e.vars||e).palette[o].contrastText,"--variant-containedBg":(e.vars||e).palette[o].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[o].dark,"--variant-textBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[o].main,e.palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[o].main,"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette[o].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette[o].main,e.palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity),"--variant-outlinedBg":e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.text.primary,e.palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ai.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ai.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}}]}})),yR=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},...Wg]}),vR=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${je(n.size)}`]]}})({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},...Wg]}),li=j.forwardRef(function(t,n){const o=j.useContext(pR),s=j.useContext(hR),a=Ia(o,t),l=pt({props:a,name:"MuiButton"}),{children:u,color:d="primary",component:h="button",className:y,disabled:m=!1,disableElevation:b=!1,disableFocusRipple:w=!1,endIcon:S,focusVisibleClassName:E,fullWidth:P=!1,size:C="medium",startIcon:O,type:k,variant:R="text",...$}=l,B={...l,color:d,component:h,disabled:m,disableElevation:b,disableFocusRipple:w,fullWidth:P,size:C,type:k,variant:R},M=gR(B),z=O&&v.jsx(yR,{className:M.startIcon,ownerState:B,children:O}),V=S&&v.jsx(vR,{className:M.endIcon,ownerState:B,children:S}),_=s||"";return v.jsxs(mR,{ownerState:B,className:Te(o.className,M.root,y,_),component:h,disabled:m,focusRipple:!w,focusVisibleClassName:Te(M.focusVisible,E),ref:n,type:k,...$,classes:M,children:[z,u,V]})});function bR(e){return lt("MuiDivider",e)}const Ug=it("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),xR=e=>{const{absolute:t,children:n,classes:o,flexItem:s,light:a,orientation:l,textAlign:u,variant:d}=e;return ft({root:["root",t&&"absolute",d,a&&"light",l==="vertical"&&"vertical",s&&"flexItem",n&&"withChildren",n&&l==="vertical"&&"withChildrenVertical",u==="right"&&l!=="vertical"&&"textAlignRight",u==="left"&&l!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",l==="vertical"&&"wrapperVertical"]},bR,o)},wR=Re("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(vt(({theme:e})=>({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin",variants:[{props:{absolute:!0},style:{position:"absolute",bottom:0,left:0,width:"100%"}},{props:{light:!0},style:{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Gt(e.palette.divider,.08)}},{props:{variant:"inset"},style:{marginLeft:72}},{props:{variant:"middle",orientation:"horizontal"},style:{marginLeft:e.spacing(2),marginRight:e.spacing(2)}},{props:{variant:"middle",orientation:"vertical"},style:{marginTop:e.spacing(1),marginBottom:e.spacing(1)}},{props:{orientation:"vertical"},style:{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"}},{props:{flexItem:!0},style:{alignSelf:"stretch",height:"auto"}},{props:({ownerState:t})=>!!t.children,style:{display:"flex",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}},{props:({ownerState:t})=>t.children&&t.orientation!=="vertical",style:{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}},{props:({ownerState:t})=>t.orientation==="vertical"&&t.children,style:{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}},{props:({ownerState:t})=>t.textAlign==="right"&&t.orientation!=="vertical",style:{"&::before":{width:"90%"},"&::after":{width:"10%"}}},{props:({ownerState:t})=>t.textAlign==="left"&&t.orientation!=="vertical",style:{"&::before":{width:"10%"},"&::after":{width:"90%"}}}]}))),SR=Re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(vt(({theme:e})=>({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`,whiteSpace:"nowrap",variants:[{props:{orientation:"vertical"},style:{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`}}]}))),ds=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiDivider"}),{absolute:s=!1,children:a,className:l,orientation:u="horizontal",component:d=a||u==="vertical"?"div":"hr",flexItem:h=!1,light:y=!1,role:m=d!=="hr"?"separator":void 0,textAlign:b="center",variant:w="fullWidth",...S}=o,E={...o,absolute:s,component:d,flexItem:h,light:y,orientation:u,role:m,textAlign:b,variant:w},P=xR(E);return v.jsx(wR,{as:d,className:Te(P.root,l),role:m,ref:n,ownerState:E,"aria-orientation":m==="separator"&&(d!=="hr"||u==="vertical")?u:void 0,...S,children:a?v.jsx(SR,{className:P.wrapper,ownerState:E,children:a}):null})});ds&&(ds.muiSkipListHighlight=!0);function CR(e){return lt("MuiListItemButton",e)}const fs=it("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),_R=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.alignItems==="flex-start"&&t.alignItemsFlexStart,n.divider&&t.divider,!n.disableGutters&&t.gutters]},ER=e=>{const{alignItems:t,classes:n,dense:o,disabled:s,disableGutters:a,divider:l,selected:u}=e,h=ft({root:["root",o&&"dense",!a&&"gutters",l&&"divider",s&&"disabled",t==="flex-start"&&"alignItemsFlexStart",u&&"selected"]},CR,n);return{...n,...h}},RR=Re(si,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:_R})(vt(({theme:e})=>({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${fs.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${fs.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${fs.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${fs.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${fs.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},variants:[{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.dense,style:{paddingTop:4,paddingBottom:4}}]}))),Hg=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiListItemButton"}),{alignItems:s="center",autoFocus:a=!1,component:l="div",children:u,dense:d=!1,disableGutters:h=!1,divider:y=!1,focusVisibleClassName:m,selected:b=!1,className:w,...S}=o,E=j.useContext(ri),P=j.useMemo(()=>({dense:d||E.dense||!1,alignItems:s,disableGutters:h}),[s,E.dense,d,h]),C=j.useRef(null);br(()=>{a&&C.current&&C.current.focus()},[a]);const O={...o,alignItems:s,dense:P.dense,disableGutters:h,divider:y,selected:b},k=ER(O),R=Xt(C,n);return v.jsx(ri.Provider,{value:P,children:v.jsx(RR,{ref:R,href:S.href||S.to,component:(S.href||S.to)&&l==="div"?"button":l,focusVisibleClassName:Te(k.focusVisible,m),ownerState:O,className:Te(k.root,w),...S,classes:k,children:u})})});function IR(e){return lt("MuiIconButton",e)}const kR=it("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),TR=e=>{const{classes:t,disabled:n,color:o,edge:s,size:a}=e,l={root:["root",n&&"disabled",o!=="default"&&`color${je(o)}`,s&&`edge${je(s)}`,`size${je(a)}`]};return ft(l,IR,t)},PR=Re(si,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${je(n.color)}`],n.edge&&t[`edge${je(n.edge)}`],t[`size${je(n.size)}`]]}})(vt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt(e.palette.action.active,e.palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),vt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.vars?`rgba(${(e.vars||e).palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Gt((e.vars||e).palette[t].main,e.palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${kR.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}}))),an=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiIconButton"}),{edge:s=!1,children:a,className:l,color:u="default",disabled:d=!1,disableFocusRipple:h=!1,size:y="medium",...m}=o,b={...o,edge:s,color:u,disabled:d,disableFocusRipple:h,size:y},w=TR(b);return v.jsx(PR,{className:Te(w.root,l),centerRipple:!0,focusRipple:!h,disabled:d,ref:n,...m,ownerState:b,children:a})});function OR(e){return lt("MuiTypography",e)}const Gg=it("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]),AR={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},MR=LC(),$R=e=>{const{align:t,gutterBottom:n,noWrap:o,paragraph:s,variant:a,classes:l}=e,u={root:["root",a,e.align!=="inherit"&&`align${je(t)}`,n&&"gutterBottom",o&&"noWrap",s&&"paragraph"]};return ft(u,OR,l)},DR=Re("span",{name:"MuiTypography",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.variant&&t[n.variant],n.align!=="inherit"&&t[`align${je(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(vt(({theme:e})=>{var t;return{margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([n,o])=>n!=="inherit"&&o&&typeof o=="object").map(([n,o])=>({props:{variant:n},style:o})),...Object.entries(e.palette).filter(jr()).map(([n])=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),...Object.entries(((t=e.palette)==null?void 0:t.text)||{}).filter(([,n])=>typeof n=="string").map(([n])=>({props:{color:`text${je(n)}`},style:{color:(e.vars||e).palette.text[n]}})),{props:({ownerState:n})=>n.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:n})=>n.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:n})=>n.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:n})=>n.paragraph,style:{marginBottom:16}}]}})),qg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},sl=j.forwardRef(function(t,n){const{color:o,...s}=pt({props:t,name:"MuiTypography"}),a=!AR[o],l=MR({...s,...a&&{color:o}}),{align:u="inherit",className:d,component:h,gutterBottom:y=!1,noWrap:m=!1,paragraph:b=!1,variant:w="body1",variantMapping:S=qg,...E}=l,P={...l,align:u,color:o,className:d,component:h,gutterBottom:y,noWrap:m,paragraph:b,variant:w,variantMapping:S},C=h||(b?"p":S[w]||qg[w])||"span",O=$R(P);return v.jsx(DR,{as:C,ref:n,className:Te(O.root,d),...E,ownerState:P,style:{...u!=="inherit"&&{"--Typography-textAlign":u},...E.style}})});function BR(e){return lt("MuiCircularProgress",e)}it("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const eo=44,Ju=Xi`
|
|
125
125
|
0% {
|
|
126
126
|
transform: rotate(0deg);
|
|
127
127
|
}
|
|
@@ -129,7 +129,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
129
129
|
100% {
|
|
130
130
|
transform: rotate(360deg);
|
|
131
131
|
}
|
|
132
|
-
`,
|
|
132
|
+
`,Zu=Xi`
|
|
133
133
|
0% {
|
|
134
134
|
stroke-dasharray: 1px, 200px;
|
|
135
135
|
stroke-dashoffset: 0;
|
|
@@ -144,12 +144,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
144
144
|
stroke-dasharray: 100px, 200px;
|
|
145
145
|
stroke-dashoffset: -125px;
|
|
146
146
|
}
|
|
147
|
-
`,
|
|
148
|
-
animation: ${
|
|
149
|
-
`:null,
|
|
150
|
-
animation: ${
|
|
151
|
-
`:null,yP=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${je(r)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,i&&"circleDisableShrink"]};return ft(a,hP,t)},vP=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(vt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:gP||{animation:`${yd} 1.4s linear infinite`}},...Object.entries(e.palette).filter(Wr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),bP=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),xP=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:mP||{animation:`${vd} 1.4s ease-in-out infinite`}}]}))),wP=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:l=!1,size:c=40,style:d,thickness:f=3.6,value:y=0,variant:m="indeterminate",...v}=r,w={...r,color:a,disableShrink:l,size:c,thickness:f,value:y,variant:m},x=yP(w),_={},k={},C={};if(m==="determinate"){const O=2*Math.PI*((oo-f)/2);_.strokeDasharray=O.toFixed(3),C["aria-valuenow"]=Math.round(y),_.strokeDashoffset=`${((100-y)/100*O).toFixed(3)}px`,k.transform="rotate(-90deg)"}return b.jsx(vP,{className:Pe(x.root,i),style:{width:c,height:c,...k,...d},ownerState:w,ref:n,role:"progressbar",...C,...v,children:b.jsx(bP,{className:x.svg,ownerState:w,viewBox:`${oo/2} ${oo/2} ${oo} ${oo}`,children:b.jsx(xP,{className:x.circle,style:_,ownerState:w,cx:oo,cy:oo,r:(oo-f)/2,fill:"none",strokeWidth:f})})})}),pm=ot("MuiListItemIcon",["root","alignItemsFlexStart"]);function SP(e){return ct("MuiListItemText",e)}const gi=ot("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),CP=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return ft({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},SP,t)},_P=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${gi.primary}`]:t.primary},{[`& .${gi.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${dm.root}:where(& .${gi.primary})`]:{display:"block"},[`.${dm.root}:where(& .${gi.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),hm=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:l=!1,inset:c=!1,primary:d,primaryTypographyProps:f,secondary:y,secondaryTypographyProps:m,...v}=r,{dense:w}=L.useContext(ci);let x=d??i,_=y;const k={...r,disableTypography:l,inset:c,primary:!!x,secondary:!!_,dense:w},C=CP(k);return x!=null&&x.type!==bl&&!l&&(x=b.jsx(bl,{variant:w?"body2":"body1",className:C.primary,component:f!=null&&f.variant?void 0:"span",...f,children:x})),_!=null&&_.type!==bl&&!l&&(_=b.jsx(bl,{variant:"body2",className:C.secondary,color:"textSecondary",...m,children:_})),b.jsxs(_P,{className:Pe(C.root,a),ownerState:k,ref:n,...v,children:[x,_]})});function EP(e){return ct("MuiMenuItem",e)}const ws=ot("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),RP=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},PP=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:l}=e,d=ft({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},EP,l);return{...l,...d}},TP=Ce(fi,{shouldForwardProp:e=>Mn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:RP})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ws.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ws.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ws.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Kt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ws.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ws.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${cm.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${cm.inset}`]:{marginLeft:52},[`& .${gi.root}`]:{marginTop:0,marginBottom:0},[`& .${gi.inset}`]:{paddingLeft:36},[`& .${pm.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${pm.root} svg`]:{fontSize:"1.25rem"}}}]}))),bd=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:l=!1,divider:c=!1,disableGutters:d=!1,focusVisibleClassName:f,role:y="menuitem",tabIndex:m,className:v,...w}=r,x=L.useContext(ci),_=L.useMemo(()=>({dense:l||x.dense||!1,disableGutters:d}),[x.dense,l,d]),k=L.useRef(null);_r(()=>{i&&k.current&&k.current.focus()},[i]);const C={...r,dense:_.dense,divider:c,disableGutters:d},O=PP(r),P=Zt(k,n);let R;return r.disabled||(R=m!==void 0?m:-1),b.jsx(ci.Provider,{value:_,children:b.jsx(TP,{ref:P,role:y,tabIndex:R,component:a,focusVisibleClassName:Pe(O.focusVisible,f),className:Pe(O.root,v),...w,ownerState:C,classes:O})})});function IP(e){return ct("MuiTab",e)}const Jn=ot("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),kP=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:l,selected:c,disabled:d}=e,f={root:["root",a&&l&&"labelIcon",`textColor${je(n)}`,r&&"fullWidth",i&&"wrapped",c&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return ft(f,IP,t)},OP=Ce(fi,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${Jn.iconWrapper}`]:t.iconWrapper},{[`& .${Jn.icon}`]:t.icon}]}})(vt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${Jn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${Jn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${Jn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${Jn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${Jn.selected}`]:{opacity:1},[`&.${Jn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Jn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${Jn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Jn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),AP=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:c,icon:d,iconPosition:f="top",indicator:y,label:m,onChange:v,onClick:w,onFocus:x,selected:_,selectionFollowsFocus:k,textColor:C="inherit",value:O,wrapped:P=!1,...R}=r,M={...r,disabled:a,disableFocusRipple:l,selected:_,icon:!!d,iconPosition:f,label:!!m,fullWidth:c,textColor:C,wrapped:P},D=kP(M),$=d&&m&&L.isValidElement(d)?L.cloneElement(d,{className:Pe(D.icon,d.props.className)}):d,z=E=>{!_&&v&&v(E,O),w&&w(E)},V=E=>{k&&!_&&v&&v(E,O),x&&x(E)};return b.jsxs(OP,{focusRipple:!l,className:Pe(D.root,i),ref:n,role:"tab","aria-selected":_,disabled:a,onClick:z,onFocus:V,ownerState:M,tabIndex:_?0:-1,...R,children:[f==="top"||f==="start"?b.jsxs(L.Fragment,{children:[$,m]}):b.jsxs(L.Fragment,{children:[m,$]}),y]})}),$P=Cn(b.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),MP=Cn(b.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function BP(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function DP(e,t,n,r={},i=()=>{}){const{ease:a=BP,duration:l=300}=r;let c=null;const d=t[e];let f=!1;const y=()=>{f=!0},m=v=>{if(f){i(new Error("Animation cancelled"));return}c===null&&(c=v);const w=Math.min(1,(v-c)/l);if(t[e]=a(w)*(n-d)+d,w>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(m)};return d===n?(i(new Error("Element already at target position")),y):(requestAnimationFrame(m),y)}const jP={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function LP(e){const{onChange:t,...n}=e,r=L.useRef(),i=L.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return _r(()=>{const l=el(()=>{const d=r.current;a(),d!==r.current&&t(r.current)}),c=ur(i.current);return c.addEventListener("resize",l),()=>{l.clear(),c.removeEventListener("resize",l)}},[t]),L.useEffect(()=>{a(),t(r.current)},[t]),b.jsx("div",{style:jP,ref:i,...n})}function FP(e){return ct("MuiTabScrollButton",e)}const NP=ot("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),zP=e=>{const{classes:t,orientation:n,disabled:r}=e;return ft({root:["root",n,r&&"disabled"]},FP,t)},WP=Ce(fi,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${NP.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),UP=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTabScrollButton"}),{className:i,slots:a={},slotProps:l={},direction:c,orientation:d,disabled:f,...y}=r,m=Gu(),v={isRtl:m,...r},w=zP(v),x=a.StartScrollButtonIcon??$P,_=a.EndScrollButtonIcon??MP,k=ei({elementType:x,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v}),C=ei({elementType:_,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:v});return b.jsx(WP,{component:"div",className:Pe(w.root,i),ref:n,role:null,ownerState:v,tabIndex:null,...y,style:{...y.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:c==="left"?b.jsx(x,{...k}):b.jsx(_,{...C})})});function HP(e){return ct("MuiTabs",e)}const xd=ot("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),gm=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,mm=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,xl=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},GP=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:l,scrollButtonsHideMobile:c,classes:d}=e;return ft({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},HP,d)},qP=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xd.scrollButtons}`]:t.scrollButtons},{[`& .${xd.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(vt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${xd.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),VP=Ce("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),KP=Ce("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),YP=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(vt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),XP=Ce(LP)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),ym={},JP=L.forwardRef(function(t,n){const r=yt({props:t,name:"MuiTabs"}),i=nl(),a=Gu(),{"aria-label":l,"aria-labelledby":c,action:d,centered:f=!1,children:y,className:m,component:v="div",allowScrollButtonsMobile:w=!1,indicatorColor:x="primary",onChange:_,orientation:k="horizontal",ScrollButtonComponent:C=UP,scrollButtons:O="auto",selectionFollowsFocus:P,slots:R={},slotProps:M={},TabIndicatorProps:D={},TabScrollButtonProps:$={},textColor:z="primary",value:V,variant:E="standard",visibleScrollbar:G=!1,...te}=r,H=E==="scrollable",X=k==="vertical",ee=X?"scrollTop":"scrollLeft",ae=X?"top":"left",fe=X?"bottom":"right",pe=X?"clientHeight":"clientWidth",_e=X?"height":"width",We={...r,component:v,allowScrollButtonsMobile:w,indicatorColor:x,orientation:k,vertical:X,scrollButtons:O,textColor:z,variant:E,visibleScrollbar:G,fixed:!H,hideScrollbar:H&&!G,scrollableX:H&&!X,scrollableY:H&&X,centered:f&&!H,scrollButtonsHideMobile:!w},be=GP(We),Be=ei({elementType:R.StartScrollButtonIcon,externalSlotProps:M.startScrollButtonIcon,ownerState:We}),Ne=ei({elementType:R.EndScrollButtonIcon,externalSlotProps:M.endScrollButtonIcon,ownerState:We}),[Me,Xe]=L.useState(!1),[Ge,ht]=L.useState(ym),[le,ue]=L.useState(!1),[he,ge]=L.useState(!1),[de,Te]=L.useState(!1),[ve,ke]=L.useState({overflow:"hidden",scrollbarWidth:0}),qe=new Map,De=L.useRef(null),Re=L.useRef(null),Fe=()=>{const oe=De.current;let se;if(oe){const we=oe.getBoundingClientRect();se={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:we.top,bottom:we.bottom,left:we.left,right:we.right}}let Se;if(oe&&V!==!1){const we=Re.current.children;if(we.length>0){const It=we[qe.get(V)];Se=It?It.getBoundingClientRect():null}}return{tabsMeta:se,tabMeta:Se}},tt=Nr(()=>{const{tabsMeta:oe,tabMeta:se}=Fe();let Se=0,we;X?(we="top",se&&oe&&(Se=se.top-oe.top+oe.scrollTop)):(we=a?"right":"left",se&&oe&&(Se=(a?-1:1)*(se[we]-oe[we]+oe.scrollLeft)));const It={[we]:Se,[_e]:se?se[_e]:0};if(typeof Ge[we]!="number"||typeof Ge[_e]!="number")ht(It);else{const tr=Math.abs(Ge[we]-It[we]),$r=Math.abs(Ge[_e]-It[_e]);(tr>=1||$r>=1)&&ht(It)}}),$e=(oe,{animation:se=!0}={})=>{se?DP(ee,De.current,oe,{duration:i.transitions.duration.standard}):De.current[ee]=oe},st=oe=>{let se=De.current[ee];X?se+=oe:se+=oe*(a?-1:1),$e(se)},ye=()=>{const oe=De.current[pe];let se=0;const Se=Array.from(Re.current.children);for(let we=0;we<Se.length;we+=1){const It=Se[we];if(se+It[pe]>oe){we===0&&(se=oe);break}se+=It[pe]}return se},At=()=>{st(-1*ye())},Nt=()=>{st(ye())},yn=L.useCallback(oe=>{ke({overflow:null,scrollbarWidth:oe})},[]),T=()=>{const oe={};oe.scrollbarSizeListener=H?b.jsx(XP,{onChange:yn,className:Pe(be.scrollableX,be.hideScrollbar)}):null;const Se=H&&(O==="auto"&&(le||he)||O===!0);return oe.scrollButtonStart=Se?b.jsx(C,{slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Be},orientation:k,direction:a?"right":"left",onClick:At,disabled:!le,...$,className:Pe(be.scrollButtons,$.className)}):null,oe.scrollButtonEnd=Se?b.jsx(C,{slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:Ne},orientation:k,direction:a?"left":"right",onClick:Nt,disabled:!he,...$,className:Pe(be.scrollButtons,$.className)}):null,oe},h=Nr(oe=>{const{tabsMeta:se,tabMeta:Se}=Fe();if(!(!Se||!se)){if(Se[ae]<se[ae]){const we=se[ee]+(Se[ae]-se[ae]);$e(we,{animation:oe})}else if(Se[fe]>se[fe]){const we=se[ee]+(Se[fe]-se[fe]);$e(we,{animation:oe})}}}),g=Nr(()=>{H&&O!==!1&&Te(!de)});L.useEffect(()=>{const oe=el(()=>{De.current&&tt()});let se;const Se=tr=>{tr.forEach($r=>{$r.removedNodes.forEach(uo=>{se==null||se.unobserve(uo)}),$r.addedNodes.forEach(uo=>{se==null||se.observe(uo)})}),oe(),g()},we=ur(De.current);we.addEventListener("resize",oe);let It;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(oe),Array.from(Re.current.children).forEach(tr=>{se.observe(tr)})),typeof MutationObserver<"u"&&(It=new MutationObserver(Se),It.observe(Re.current,{childList:!0})),()=>{oe.clear(),we.removeEventListener("resize",oe),It==null||It.disconnect(),se==null||se.disconnect()}},[tt,g]),L.useEffect(()=>{const oe=Array.from(Re.current.children),se=oe.length;if(typeof IntersectionObserver<"u"&&se>0&&H&&O!==!1){const Se=oe[0],we=oe[se-1],It={root:De.current,threshold:.99},tr=Ws=>{ue(!Ws[0].isIntersecting)},$r=new IntersectionObserver(tr,It);$r.observe(Se);const uo=Ws=>{ge(!Ws[0].isIntersecting)},xc=new IntersectionObserver(uo,It);return xc.observe(we),()=>{$r.disconnect(),xc.disconnect()}}},[H,O,de,y==null?void 0:y.length]),L.useEffect(()=>{Xe(!0)},[]),L.useEffect(()=>{tt()}),L.useEffect(()=>{h(ym!==Ge)},[h,Ge]),L.useImperativeHandle(d,()=>({updateIndicator:tt,updateScrollButtons:g}),[tt,g]);const B=b.jsx(YP,{...D,className:Pe(be.indicator,D.className),ownerState:We,style:{...Ge,...D.style}});let F=0;const q=L.Children.map(y,oe=>{if(!L.isValidElement(oe))return null;const se=oe.props.value===void 0?F:oe.props.value;qe.set(se,F);const Se=se===V;return F+=1,L.cloneElement(oe,{fullWidth:E==="fullWidth",indicator:Se&&!Me&&B,selected:Se,selectionFollowsFocus:P,onChange:_,textColor:z,value:se,...F===1&&V===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),Z=oe=>{const se=Re.current,Se=Yn(se).activeElement;if(Se.getAttribute("role")!=="tab")return;let It=k==="horizontal"?"ArrowLeft":"ArrowUp",tr=k==="horizontal"?"ArrowRight":"ArrowDown";switch(k==="horizontal"&&a&&(It="ArrowRight",tr="ArrowLeft"),oe.key){case It:oe.preventDefault(),xl(se,Se,mm);break;case tr:oe.preventDefault(),xl(se,Se,gm);break;case"Home":oe.preventDefault(),xl(se,null,gm);break;case"End":oe.preventDefault(),xl(se,null,mm);break}},ce=T();return b.jsxs(qP,{className:Pe(be.root,m),ownerState:We,ref:n,as:v,...te,children:[ce.scrollButtonStart,ce.scrollbarSizeListener,b.jsxs(VP,{className:be.scroller,ownerState:We,style:{overflow:ve.overflow,[X?`margin${a?"Left":"Right"}`:"marginBottom"]:G?void 0:-ve.scrollbarWidth},ref:De,children:[b.jsx(KP,{"aria-label":l,"aria-labelledby":c,"aria-orientation":k==="vertical"?"vertical":null,className:be.flexContainer,ownerState:We,onKeyDown:Z,ref:Re,role:"tablist",children:q}),Me&&B]}),ce.scrollButtonEnd]})});var _n=function(){return _n=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},_n.apply(this,arguments)};function Ss(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||(a=Array.prototype.slice.call(t,0,r)),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rt="-ms-",Cs="-moz-",pt="-webkit-",vm="comm",wl="rule",wd="decl",ZP="@import",bm="@keyframes",QP="@layer",xm=Math.abs,Sd=String.fromCharCode,Cd=Object.assign;function eT(e,t){return Qt(e,0)^45?(((t<<2^Qt(e,0))<<2^Qt(e,1))<<2^Qt(e,2))<<2^Qt(e,3):0}function wm(e){return e.trim()}function Ur(e,t){return(e=t.exec(e))?e[0]:e}function Ke(e,t,n){return e.replace(t,n)}function Sl(e,t,n){return e.indexOf(t,n)}function Qt(e,t){return e.charCodeAt(t)|0}function mi(e,t,n){return e.slice(t,n)}function Tr(e){return e.length}function Sm(e){return e.length}function _s(e,t){return t.push(e),e}function tT(e,t){return e.map(t).join("")}function Cm(e,t){return e.filter(function(n){return!Ur(n,t)})}var Cl=1,yi=1,_m=0,Zn=0,Vt=0,vi="";function _l(e,t,n,r,i,a,l,c){return{value:e,root:t,parent:n,type:r,props:i,children:a,line:Cl,column:yi,length:l,return:"",siblings:c}}function io(e,t){return Cd(_l("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function bi(e){for(;e.root;)e=io(e.root,{children:[e]});_s(e,e.siblings)}function nT(){return Vt}function rT(){return Vt=Zn>0?Qt(vi,--Zn):0,yi--,Vt===10&&(yi=1,Cl--),Vt}function fr(){return Vt=Zn<_m?Qt(vi,Zn++):0,yi++,Vt===10&&(yi=1,Cl++),Vt}function To(){return Qt(vi,Zn)}function El(){return Zn}function Rl(e,t){return mi(vi,e,t)}function _d(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function oT(e){return Cl=yi=1,_m=Tr(vi=e),Zn=0,[]}function iT(e){return vi="",e}function Ed(e){return wm(Rl(Zn-1,Rd(e===91?e+2:e===40?e+1:e)))}function sT(e){for(;(Vt=To())&&Vt<33;)fr();return _d(e)>2||_d(Vt)>3?"":" "}function aT(e,t){for(;--t&&fr()&&!(Vt<48||Vt>102||Vt>57&&Vt<65||Vt>70&&Vt<97););return Rl(e,El()+(t<6&&To()==32&&fr()==32))}function Rd(e){for(;fr();)switch(Vt){case e:return Zn;case 34:case 39:e!==34&&e!==39&&Rd(Vt);break;case 40:e===41&&Rd(e);break;case 92:fr();break}return Zn}function lT(e,t){for(;fr()&&e+Vt!==57;)if(e+Vt===84&&To()===47)break;return"/*"+Rl(t,Zn-1)+"*"+Sd(e===47?e:fr())}function cT(e){for(;!_d(To());)fr();return Rl(e,Zn)}function uT(e){return iT(Pl("",null,null,null,[""],e=oT(e),0,[0],e))}function Pl(e,t,n,r,i,a,l,c,d){for(var f=0,y=0,m=l,v=0,w=0,x=0,_=1,k=1,C=1,O=0,P="",R=i,M=a,D=r,$=P;k;)switch(x=O,O=fr()){case 40:if(x!=108&&Qt($,m-1)==58){Sl($+=Ke(Ed(O),"&","&\f"),"&\f",xm(f?c[f-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:$+=Ed(O);break;case 9:case 10:case 13:case 32:$+=sT(x);break;case 92:$+=aT(El()-1,7);continue;case 47:switch(To()){case 42:case 47:_s(dT(lT(fr(),El()),t,n,d),d);break;default:$+="/"}break;case 123*_:c[f++]=Tr($)*C;case 125*_:case 59:case 0:switch(O){case 0:case 125:k=0;case 59+y:C==-1&&($=Ke($,/\f/g,"")),w>0&&Tr($)-m&&_s(w>32?Rm($+";",r,n,m-1,d):Rm(Ke($," ","")+";",r,n,m-2,d),d);break;case 59:$+=";";default:if(_s(D=Em($,t,n,f,y,i,c,P,R=[],M=[],m,a),a),O===123)if(y===0)Pl($,t,D,D,R,a,m,c,M);else switch(v===99&&Qt($,3)===110?100:v){case 100:case 108:case 109:case 115:Pl(e,D,D,r&&_s(Em(e,D,D,0,0,i,c,P,i,R=[],m,M),M),i,M,m,c,r?R:M);break;default:Pl($,D,D,D,[""],M,0,c,M)}}f=y=w=0,_=C=1,P=$="",m=l;break;case 58:m=1+Tr($),w=x;default:if(_<1){if(O==123)--_;else if(O==125&&_++==0&&rT()==125)continue}switch($+=Sd(O),O*_){case 38:C=y>0?1:($+="\f",-1);break;case 44:c[f++]=(Tr($)-1)*C,C=1;break;case 64:To()===45&&($+=Ed(fr())),v=To(),y=m=Tr(P=$+=cT(El())),O++;break;case 45:x===45&&Tr($)==2&&(_=0)}}return a}function Em(e,t,n,r,i,a,l,c,d,f,y,m){for(var v=i-1,w=i===0?a:[""],x=Sm(w),_=0,k=0,C=0;_<r;++_)for(var O=0,P=mi(e,v+1,v=xm(k=l[_])),R=e;O<x;++O)(R=wm(k>0?w[O]+" "+P:Ke(P,/&\f/g,w[O])))&&(d[C++]=R);return _l(e,t,n,i===0?wl:c,d,f,y,m)}function dT(e,t,n,r){return _l(e,t,n,vm,Sd(nT()),mi(e,2,-2),0,r)}function Rm(e,t,n,r,i){return _l(e,t,n,wd,mi(e,0,r),mi(e,r+1,-1),r,i)}function Pm(e,t,n){switch(eT(e,t)){case 5103:return pt+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return pt+e+e;case 4789:return Cs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return pt+e+Cs+e+Rt+e+e;case 5936:switch(Qt(e,t+11)){case 114:return pt+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return pt+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return pt+e+Rt+Ke(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return pt+e+Rt+e+e;case 6165:return pt+e+Rt+"flex-"+e+e;case 5187:return pt+e+Ke(e,/(\w+).+(:[^]+)/,pt+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return pt+e+Rt+"flex-item-"+Ke(e,/flex-|-self/g,"")+(Ur(e,/flex-|baseline/)?"":Rt+"grid-row-"+Ke(e,/flex-|-self/g,""))+e;case 4675:return pt+e+Rt+"flex-line-pack"+Ke(e,/align-content|flex-|-self/g,"")+e;case 5548:return pt+e+Rt+Ke(e,"shrink","negative")+e;case 5292:return pt+e+Rt+Ke(e,"basis","preferred-size")+e;case 6060:return pt+"box-"+Ke(e,"-grow","")+pt+e+Rt+Ke(e,"grow","positive")+e;case 4554:return pt+Ke(e,/([^-])(transform)/g,"$1"+pt+"$2")+e;case 6187:return Ke(Ke(Ke(e,/(zoom-|grab)/,pt+"$1"),/(image-set)/,pt+"$1"),e,"")+e;case 5495:case 3959:return Ke(e,/(image-set\([^]*)/,pt+"$1$`$1");case 4968:return Ke(Ke(e,/(.+:)(flex-)?(.*)/,pt+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+pt+e+e;case 4200:if(!Ur(e,/flex-|baseline/))return Rt+"grid-column-align"+mi(e,t)+e;break;case 2592:case 3360:return Rt+Ke(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(r,i){return t=i,Ur(r.props,/grid-\w+-end/)})?~Sl(e+(n=n[t].value),"span",0)?e:Rt+Ke(e,"-start","")+e+Rt+"grid-row-span:"+(~Sl(n,"span",0)?Ur(n,/\d+/):+Ur(n,/\d+/)-+Ur(e,/\d+/))+";":Rt+Ke(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(r){return Ur(r.props,/grid-\w+-start/)})?e:Rt+Ke(Ke(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ke(e,/(.+)-inline(.+)/,pt+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Tr(e)-1-t>6)switch(Qt(e,t+1)){case 109:if(Qt(e,t+4)!==45)break;case 102:return Ke(e,/(.+:)(.+)-([^]+)/,"$1"+pt+"$2-$3$1"+Cs+(Qt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Sl(e,"stretch",0)?Pm(Ke(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ke(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,i,a,l,c,d,f){return Rt+i+":"+a+f+(l?Rt+i+"-span:"+(c?d:+d-+a)+f:"")+e});case 4949:if(Qt(e,t+6)===121)return Ke(e,":",":"+pt)+e;break;case 6444:switch(Qt(e,Qt(e,14)===45?18:11)){case 120:return Ke(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+pt+(Qt(e,14)===45?"inline-":"")+"box$3$1"+pt+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Ke(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ke(e,"scroll-","scroll-snap-")+e}return e}function Tl(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function fT(e,t,n,r){switch(e.type){case QP:if(e.children.length)break;case ZP:case wd:return e.return=e.return||e.value;case vm:return"";case bm:return e.return=e.value+"{"+Tl(e.children,r)+"}";case wl:if(!Tr(e.value=e.props.join(",")))return""}return Tr(n=Tl(e.children,r))?e.return=e.value+"{"+n+"}":""}function pT(e){var t=Sm(e);return function(n,r,i,a){for(var l="",c=0;c<t;c++)l+=e[c](n,r,i,a)||"";return l}}function hT(e){return function(t){t.root||(t=t.return)&&e(t)}}function gT(e,t,n,r){if(e.length>-1&&!e.return)switch(e.type){case wd:e.return=Pm(e.value,e.length,n);return;case bm:return Tl([io(e,{value:Ke(e.value,"@","@"+pt)})],r);case wl:if(e.length)return tT(n=e.props,function(i){switch(Ur(i,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":bi(io(e,{props:[Ke(i,/:(read-\w+)/,":"+Cs+"$1")]})),bi(io(e,{props:[i]})),Cd(e,{props:Cm(n,r)});break;case"::placeholder":bi(io(e,{props:[Ke(i,/:(plac\w+)/,":"+pt+"input-$1")]})),bi(io(e,{props:[Ke(i,/:(plac\w+)/,":"+Cs+"$1")]})),bi(io(e,{props:[Ke(i,/:(plac\w+)/,Rt+"input-$1")]})),bi(io(e,{props:[i]})),Cd(e,{props:Cm(n,r)});break}return""})}}var mT={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},xi=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",Tm="active",Im="data-styled-version",Il="6.1.13",Pd=`/*!sc*/
|
|
152
|
-
`,kl=typeof window<"u"&&"HTMLElement"in window,yT=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),Ol=Object.freeze([]),wi=Object.freeze({});function vT(e,t,n){return n===void 0&&(n=wi),e.theme!==n.theme&&e.theme||t||n.theme}var km=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),bT=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,xT=/(^-|-$)/g;function Om(e){return e.replace(bT,"-").replace(xT,"")}var wT=/(a)(d)/gi,Al=52,Am=function(e){return String.fromCharCode(e+(e>25?39:97))};function Td(e){var t,n="";for(t=Math.abs(e);t>Al;t=t/Al|0)n=Am(t%Al)+n;return(Am(t%Al)+n).replace(wT,"$1-$2")}var Id,$m=5381,Si=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},Mm=function(e){return Si($m,e)};function Bm(e){return Td(Mm(e)>>>0)}function ST(e){return e.displayName||e.name||"Component"}function kd(e){return typeof e=="string"&&!0}var Dm=typeof Symbol=="function"&&Symbol.for,jm=Dm?Symbol.for("react.memo"):60115,CT=Dm?Symbol.for("react.forward_ref"):60112,_T={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ET={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},Lm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},RT=((Id={})[CT]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Id[jm]=Lm,Id);function Fm(e){return("type"in(t=e)&&t.type.$$typeof)===jm?Lm:"$$typeof"in e?RT[e.$$typeof]:_T;var t}var PT=Object.defineProperty,TT=Object.getOwnPropertyNames,Nm=Object.getOwnPropertySymbols,IT=Object.getOwnPropertyDescriptor,kT=Object.getPrototypeOf,zm=Object.prototype;function Wm(e,t,n){if(typeof t!="string"){if(zm){var r=kT(t);r&&r!==zm&&Wm(e,r,n)}var i=TT(t);Nm&&(i=i.concat(Nm(t)));for(var a=Fm(e),l=Fm(t),c=0;c<i.length;++c){var d=i[c];if(!(d in ET||n&&n[d]||l&&d in l||a&&d in a)){var f=IT(t,d);try{PT(e,d,f)}catch{}}}}return e}function Ci(e){return typeof e=="function"}function Od(e){return typeof e=="object"&&"styledComponentId"in e}function Io(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function Ad(e,t){if(e.length===0)return"";for(var n=e[0],r=1;r<e.length;r++)n+=e[r];return n}function Es(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function $d(e,t,n){if(n===void 0&&(n=!1),!n&&!Es(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var r=0;r<t.length;r++)e[r]=$d(e[r],t[r]);else if(Es(t))for(var r in t)e[r]=$d(e[r],t[r]);return e}function Md(e,t){Object.defineProperty(e,"toString",{value:t})}function Rs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var OT=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,r=0;r<t;r++)n+=this.groupSizes[r];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var r=this.groupSizes,i=r.length,a=i;t>=a;)if((a<<=1)<0)throw Rs(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(r),this.length=a;for(var l=i;l<a;l++)this.groupSizes[l]=0}for(var c=this.indexOfGroup(t+1),d=(l=0,n.length);l<d;l++)this.tag.insertRule(c,n[l])&&(this.groupSizes[t]++,c++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],r=this.indexOfGroup(t),i=r+n;this.groupSizes[t]=0;for(var a=r;a<i;a++)this.tag.deleteRule(r)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var r=this.groupSizes[t],i=this.indexOfGroup(t),a=i+r,l=i;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(Pd);return n},e}(),$l=new Map,Ml=new Map,Bl=1,Dl=function(e){if($l.has(e))return $l.get(e);for(;Ml.has(Bl);)Bl++;var t=Bl++;return $l.set(e,t),Ml.set(t,e),t},AT=function(e,t){Bl=t+1,$l.set(e,t),Ml.set(t,e)},$T="style[".concat(xi,"][").concat(Im,'="').concat(Il,'"]'),MT=new RegExp("^".concat(xi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),BT=function(e,t,n){for(var r,i=n.split(","),a=0,l=i.length;a<l;a++)(r=i[a])&&e.registerName(t,r)},DT=function(e,t){for(var n,r=((n=t.textContent)!==null&&n!==void 0?n:"").split(Pd),i=[],a=0,l=r.length;a<l;a++){var c=r[a].trim();if(c){var d=c.match(MT);if(d){var f=0|parseInt(d[1],10),y=d[2];f!==0&&(AT(y,f),BT(e,y,d[3]),e.getTag().insertRules(f,i)),i.length=0}else i.push(c)}}},Um=function(e){for(var t=document.querySelectorAll($T),n=0,r=t.length;n<r;n++){var i=t[n];i&&i.getAttribute(xi)!==Tm&&(DT(e,i),i.parentNode&&i.parentNode.removeChild(i))}};function jT(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var Hm=function(e){var t=document.head,n=e||t,r=document.createElement("style"),i=function(c){var d=Array.from(c.querySelectorAll("style[".concat(xi,"]")));return d[d.length-1]}(n),a=i!==void 0?i.nextSibling:null;r.setAttribute(xi,Tm),r.setAttribute(Im,Il);var l=jT();return l&&r.setAttribute("nonce",l),n.insertBefore(r,a),r},LT=function(){function e(t){this.element=Hm(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var r=document.styleSheets,i=0,a=r.length;i<a;i++){var l=r[i];if(l.ownerNode===n)return l}throw Rs(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),FT=function(){function e(t){this.element=Hm(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var r=document.createTextNode(n);return this.element.insertBefore(r,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),NT=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Gm=kl,zT={isServer:!kl,useCSSOMInjection:!yT},qm=function(){function e(t,n,r){t===void 0&&(t=wi),n===void 0&&(n={});var i=this;this.options=_n(_n({},zT),t),this.gs=n,this.names=new Map(r),this.server=!!t.isServer,!this.server&&kl&&Gm&&(Gm=!1,Um(this)),Md(this,function(){return function(a){for(var l=a.getTag(),c=l.length,d="",f=function(m){var v=function(C){return Ml.get(C)}(m);if(v===void 0)return"continue";var w=a.names.get(v),x=l.getGroup(m);if(w===void 0||!w.size||x.length===0)return"continue";var _="".concat(xi,".g").concat(m,'[id="').concat(v,'"]'),k="";w!==void 0&&w.forEach(function(C){C.length>0&&(k+="".concat(C,","))}),d+="".concat(x).concat(_,'{content:"').concat(k,'"}').concat(Pd)},y=0;y<c;y++)f(y);return d}(i)})}return e.registerId=function(t){return Dl(t)},e.prototype.rehydrate=function(){!this.server&&kl&&Um(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(_n(_n({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var r=n.useCSSOMInjection,i=n.target;return n.isServer?new NT(i):r?new LT(i):new FT(i)}(this.options),new OT(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Dl(t),this.names.has(t))this.names.get(t).add(n);else{var r=new Set;r.add(n),this.names.set(t,r)}},e.prototype.insertRules=function(t,n,r){this.registerName(t,n),this.getTag().insertRules(Dl(t),r)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Dl(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),WT=/&/g,UT=/^\s*\/\/.*$/gm;function Vm(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(r){return"".concat(t," ").concat(r)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Vm(n.children,t)),n})}function HT(e){var t,n,r,i=wi,a=i.options,l=a===void 0?wi:a,c=i.plugins,d=c===void 0?Ol:c,f=function(v,w,x){return x.startsWith(n)&&x.endsWith(n)&&x.replaceAll(n,"").length>0?".".concat(t):v},y=d.slice();y.push(function(v){v.type===wl&&v.value.includes("&")&&(v.props[0]=v.props[0].replace(WT,n).replace(r,f))}),l.prefix&&y.push(gT),y.push(fT);var m=function(v,w,x,_){w===void 0&&(w=""),x===void 0&&(x=""),_===void 0&&(_="&"),t=_,n=w,r=new RegExp("\\".concat(n,"\\b"),"g");var k=v.replace(UT,""),C=uT(x||w?"".concat(x," ").concat(w," { ").concat(k," }"):k);l.namespace&&(C=Vm(C,l.namespace));var O=[];return Tl(C,pT(y.concat(hT(function(P){return O.push(P)})))),O};return m.hash=d.length?d.reduce(function(v,w){return w.name||Rs(15),Si(v,w.name)},$m).toString():"",m}var GT=new qm,Bd=HT(),Km=Y.createContext({shouldForwardProp:void 0,styleSheet:GT,stylis:Bd});Km.Consumer,Y.createContext(void 0);function Ym(){return Y.useContext(Km)}var Xm=function(){function e(t,n){var r=this;this.inject=function(i,a){a===void 0&&(a=Bd);var l=r.name+a.hash;i.hasNameForId(r.id,l)||i.insertRules(r.id,l,a(r.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,Md(this,function(){throw Rs(12,String(r.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=Bd),this.name+t.hash},e}(),qT=function(e){return e>="A"&&e<="Z"};function Jm(e){for(var t="",n=0;n<e.length;n++){var r=e[n];if(n===1&&r==="-"&&e[0]==="-")return e;qT(r)?t+="-"+r.toLowerCase():t+=r}return t.startsWith("ms-")?"-"+t:t}var Zm=function(e){return e==null||e===!1||e===""},Qm=function(e){var t,n,r=[];for(var i in e){var a=e[i];e.hasOwnProperty(i)&&!Zm(a)&&(Array.isArray(a)&&a.isCss||Ci(a)?r.push("".concat(Jm(i),":"),a,";"):Es(a)?r.push.apply(r,Ss(Ss(["".concat(i," {")],Qm(a),!1),["}"],!1)):r.push("".concat(Jm(i),": ").concat((t=i,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in mT||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return r};function ko(e,t,n,r){if(Zm(e))return[];if(Od(e))return[".".concat(e.styledComponentId)];if(Ci(e)){if(!Ci(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var i=e(t);return ko(i,t,n,r)}var a;return e instanceof Xm?n?(e.inject(n,r),[e.getName(r)]):[e]:Es(e)?Qm(e):Array.isArray(e)?Array.prototype.concat.apply(Ol,e.map(function(l){return ko(l,t,n,r)})):[e.toString()]}function VT(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Ci(n)&&!Od(n))return!1}return!0}var KT=Mm(Il),YT=function(){function e(t,n,r){this.rules=t,this.staticRulesId="",this.isStatic=(r===void 0||r.isStatic)&&VT(t),this.componentId=n,this.baseHash=Si(KT,n),this.baseStyle=r,qm.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,r){var i=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))i=Io(i,this.staticRulesId);else{var a=Ad(ko(this.rules,t,n,r)),l=Td(Si(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var c=r(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,c)}i=Io(i,l),this.staticRulesId=l}else{for(var d=Si(this.baseHash,r.hash),f="",y=0;y<this.rules.length;y++){var m=this.rules[y];if(typeof m=="string")f+=m;else if(m){var v=Ad(ko(m,t,n,r));d=Si(d,v+y),f+=v}}if(f){var w=Td(d>>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,r(f,".".concat(w),void 0,this.componentId)),i=Io(i,w)}}return i},e}(),ey=Y.createContext(void 0);ey.Consumer;var Dd={};function XT(e,t,n){var r=Od(e),i=e,a=!kd(e),l=t.attrs,c=l===void 0?Ol:l,d=t.componentId,f=d===void 0?function(R,M){var D=typeof R!="string"?"sc":Om(R);Dd[D]=(Dd[D]||0)+1;var $="".concat(D,"-").concat(Bm(Il+D+Dd[D]));return M?"".concat(M,"-").concat($):$}(t.displayName,t.parentComponentId):d,y=t.displayName,m=y===void 0?function(R){return kd(R)?"styled.".concat(R):"Styled(".concat(ST(R),")")}(e):y,v=t.displayName&&t.componentId?"".concat(Om(t.displayName),"-").concat(t.componentId):t.componentId||f,w=r&&i.attrs?i.attrs.concat(c).filter(Boolean):c,x=t.shouldForwardProp;if(r&&i.shouldForwardProp){var _=i.shouldForwardProp;if(t.shouldForwardProp){var k=t.shouldForwardProp;x=function(R,M){return _(R,M)&&k(R,M)}}else x=_}var C=new YT(n,v,r?i.componentStyle:void 0);function O(R,M){return function(D,$,z){var V=D.attrs,E=D.componentStyle,G=D.defaultProps,te=D.foldedComponentIds,H=D.styledComponentId,X=D.target,ee=Y.useContext(ey),ae=Ym(),fe=D.shouldForwardProp||ae.shouldForwardProp,pe=vT($,ee,G)||wi,_e=function(Xe,Ge,ht){for(var le,ue=_n(_n({},Ge),{className:void 0,theme:ht}),he=0;he<Xe.length;he+=1){var ge=Ci(le=Xe[he])?le(ue):le;for(var de in ge)ue[de]=de==="className"?Io(ue[de],ge[de]):de==="style"?_n(_n({},ue[de]),ge[de]):ge[de]}return Ge.className&&(ue.className=Io(ue.className,Ge.className)),ue}(V,$,pe),We=_e.as||X,be={};for(var Be in _e)_e[Be]===void 0||Be[0]==="$"||Be==="as"||Be==="theme"&&_e.theme===pe||(Be==="forwardedAs"?be.as=_e.forwardedAs:fe&&!fe(Be,We)||(be[Be]=_e[Be]));var Ne=function(Xe,Ge){var ht=Ym(),le=Xe.generateAndInjectStyles(Ge,ht.styleSheet,ht.stylis);return le}(E,_e),Me=Io(te,H);return Ne&&(Me+=" "+Ne),_e.className&&(Me+=" "+_e.className),be[kd(We)&&!km.has(We)?"class":"className"]=Me,be.ref=z,Y.createElement(We,be)}(P,R,M)}O.displayName=m;var P=Y.forwardRef(O);return P.attrs=w,P.componentStyle=C,P.displayName=m,P.shouldForwardProp=x,P.foldedComponentIds=r?Io(i.foldedComponentIds,i.styledComponentId):"",P.styledComponentId=v,P.target=r?i.target:e,Object.defineProperty(P,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=r?function(M){for(var D=[],$=1;$<arguments.length;$++)D[$-1]=arguments[$];for(var z=0,V=D;z<V.length;z++)$d(M,V[z],!0);return M}({},i.defaultProps,R):R}}),Md(P,function(){return".".concat(P.styledComponentId)}),a&&Wm(P,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),P}function ty(e,t){for(var n=[e[0]],r=0,i=t.length;r<i;r+=1)n.push(t[r],e[r+1]);return n}var ny=function(e){return Object.assign(e,{isCss:!0})};function ry(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(Ci(e)||Es(e))return ny(ko(ty(Ol,Ss([e],t,!0))));var r=e;return t.length===0&&r.length===1&&typeof r[0]=="string"?ko(r):ny(ko(ty(r,t)))}function jd(e,t,n){if(n===void 0&&(n=wi),!t)throw Rs(1,t);var r=function(i){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,n,ry.apply(void 0,Ss([i],a,!1)))};return r.attrs=function(i){return jd(e,t,_n(_n({},n),{attrs:Array.prototype.concat(n.attrs,i).filter(Boolean)}))},r.withConfig=function(i){return jd(e,t,_n(_n({},n),i))},r}var oy=function(e){return jd(XT,e)},it=oy;km.forEach(function(e){it[e]=oy(e)});function JT(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=Ad(ry.apply(void 0,Ss([e],t,!1))),i=Bm(r);return new Xm(i,r)}const ZT=it.div`
|
|
147
|
+
`,LR=typeof Ju!="string"?au`
|
|
148
|
+
animation: ${Ju} 1.4s linear infinite;
|
|
149
|
+
`:null,jR=typeof Zu!="string"?au`
|
|
150
|
+
animation: ${Zu} 1.4s ease-in-out infinite;
|
|
151
|
+
`:null,NR=e=>{const{classes:t,variant:n,color:o,disableShrink:s}=e,a={root:["root",n,`color${je(o)}`],svg:["svg"],circle:["circle",`circle${je(n)}`,s&&"circleDisableShrink"]};return ft(a,BR,t)},FR=Re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${je(n.color)}`]]}})(vt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:LR||{animation:`${Ju} 1.4s linear infinite`}},...Object.entries(e.palette).filter(jr()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),zR=Re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),WR=Re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${je(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(vt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:jR||{animation:`${Zu} 1.4s ease-in-out infinite`}}]}))),UR=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiCircularProgress"}),{className:s,color:a="primary",disableShrink:l=!1,size:u=40,style:d,thickness:h=3.6,value:y=0,variant:m="indeterminate",...b}=o,w={...o,color:a,disableShrink:l,size:u,thickness:h,value:y,variant:m},S=NR(w),E={},P={},C={};if(m==="determinate"){const O=2*Math.PI*((eo-h)/2);E.strokeDasharray=O.toFixed(3),C["aria-valuenow"]=Math.round(y),E.strokeDashoffset=`${((100-y)/100*O).toFixed(3)}px`,P.transform="rotate(-90deg)"}return v.jsx(FR,{className:Te(S.root,s),style:{width:u,height:u,...P,...d},ownerState:w,ref:n,role:"progressbar",...C,...b,children:v.jsx(zR,{className:S.svg,ownerState:w,viewBox:`${eo/2} ${eo/2} ${eo} ${eo}`,children:v.jsx(WR,{className:S.circle,style:E,ownerState:w,cx:eo,cy:eo,r:(eo-h)/2,fill:"none",strokeWidth:h})})})}),Vg=it("MuiListItemIcon",["root","alignItemsFlexStart"]);function HR(e){return lt("MuiListItemText",e)}const ci=it("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),GR=e=>{const{classes:t,inset:n,primary:o,secondary:s,dense:a}=e;return ft({root:["root",n&&"inset",a&&"dense",o&&s&&"multiline"],primary:["primary"],secondary:["secondary"]},HR,t)},qR=Re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ci.primary}`]:t.primary},{[`& .${ci.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4,[`.${Gg.root}:where(& .${ci.primary})`]:{display:"block"},[`.${Gg.root}:where(& .${ci.secondary})`]:{display:"block"},variants:[{props:({ownerState:e})=>e.primary&&e.secondary,style:{marginTop:6,marginBottom:6}},{props:({ownerState:e})=>e.inset,style:{paddingLeft:56}}]}),Yg=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiListItemText"}),{children:s,className:a,disableTypography:l=!1,inset:u=!1,primary:d,primaryTypographyProps:h,secondary:y,secondaryTypographyProps:m,...b}=o,{dense:w}=j.useContext(ri);let S=d??s,E=y;const P={...o,disableTypography:l,inset:u,primary:!!S,secondary:!!E,dense:w},C=GR(P);return S!=null&&S.type!==sl&&!l&&(S=v.jsx(sl,{variant:w?"body2":"body1",className:C.primary,component:h!=null&&h.variant?void 0:"span",...h,children:S})),E!=null&&E.type!==sl&&!l&&(E=v.jsx(sl,{variant:"body2",className:C.secondary,color:"textSecondary",...m,children:E})),v.jsxs(qR,{className:Te(C.root,a),ownerState:P,ref:n,...b,children:[S,E]})});function VR(e){return lt("MuiMenuItem",e)}const ps=it("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),YR=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},XR=e=>{const{disabled:t,dense:n,divider:o,disableGutters:s,selected:a,classes:l}=e,d=ft({root:["root",n&&"dense",t&&"disabled",!s&&"gutters",o&&"divider",a&&"selected"]},VR,l);return{...l,...d}},KR=Re(si,{shouldForwardProp:e=>Pn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:YR})(vt(({theme:e})=>({...e.typography.body1,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${ps.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ps.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${ps.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Gt(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${ps.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${ps.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${Ug.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${Ug.inset}`]:{marginLeft:52},[`& .${ci.root}`]:{marginTop:0,marginBottom:0},[`& .${ci.inset}`]:{paddingLeft:36},[`& .${Vg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Vg.root} svg`]:{fontSize:"1.25rem"}}}]}))),Qu=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiMenuItem"}),{autoFocus:s=!1,component:a="li",dense:l=!1,divider:u=!1,disableGutters:d=!1,focusVisibleClassName:h,role:y="menuitem",tabIndex:m,className:b,...w}=o,S=j.useContext(ri),E=j.useMemo(()=>({dense:l||S.dense||!1,disableGutters:d}),[S.dense,l,d]),P=j.useRef(null);br(()=>{s&&P.current&&P.current.focus()},[s]);const C={...o,dense:E.dense,divider:u,disableGutters:d},O=XR(o),k=Xt(P,n);let R;return o.disabled||(R=m!==void 0?m:-1),v.jsx(ri.Provider,{value:E,children:v.jsx(KR,{ref:k,role:y,tabIndex:R,component:a,focusVisibleClassName:Te(O.focusVisible,h),className:Te(O.root,b),...w,ownerState:C,classes:O})})});function JR(e){return lt("MuiTab",e)}const qn=it("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper","icon"]),ZR=e=>{const{classes:t,textColor:n,fullWidth:o,wrapped:s,icon:a,label:l,selected:u,disabled:d}=e,h={root:["root",a&&l&&"labelIcon",`textColor${je(n)}`,o&&"fullWidth",s&&"wrapped",u&&"selected",d&&"disabled"],icon:["iconWrapper","icon"]};return ft(h,JR,t)},QR=Re(si,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${je(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped,{[`& .${qn.iconWrapper}`]:t.iconWrapper},{[`& .${qn.icon}`]:t.icon}]}})(vt(({theme:e})=>({...e.typography.button,maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center",lineHeight:1.25,variants:[{props:({ownerState:t})=>t.label&&(t.iconPosition==="top"||t.iconPosition==="bottom"),style:{flexDirection:"column"}},{props:({ownerState:t})=>t.label&&t.iconPosition!=="top"&&t.iconPosition!=="bottom",style:{flexDirection:"row"}},{props:({ownerState:t})=>t.icon&&t.label,style:{minHeight:72,paddingTop:9,paddingBottom:9}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="top",style:{[`& > .${qn.icon}`]:{marginBottom:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="bottom",style:{[`& > .${qn.icon}`]:{marginTop:6}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="start",style:{[`& > .${qn.icon}`]:{marginRight:e.spacing(1)}}},{props:({ownerState:t,iconPosition:n})=>t.icon&&t.label&&n==="end",style:{[`& > .${qn.icon}`]:{marginLeft:e.spacing(1)}}},{props:{textColor:"inherit"},style:{color:"inherit",opacity:.6,[`&.${qn.selected}`]:{opacity:1},[`&.${qn.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}}},{props:{textColor:"primary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${qn.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:{textColor:"secondary"},style:{color:(e.vars||e).palette.text.secondary,[`&.${qn.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${qn.disabled}`]:{color:(e.vars||e).palette.text.disabled}}},{props:({ownerState:t})=>t.fullWidth,style:{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"}},{props:({ownerState:t})=>t.wrapped,style:{fontSize:e.typography.pxToRem(12)}}]}))),eI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTab"}),{className:s,disabled:a=!1,disableFocusRipple:l=!1,fullWidth:u,icon:d,iconPosition:h="top",indicator:y,label:m,onChange:b,onClick:w,onFocus:S,selected:E,selectionFollowsFocus:P,textColor:C="inherit",value:O,wrapped:k=!1,...R}=o,$={...o,disabled:a,disableFocusRipple:l,selected:E,icon:!!d,iconPosition:h,label:!!m,fullWidth:u,textColor:C,wrapped:k},B=ZR($),M=d&&m&&j.isValidElement(d)?j.cloneElement(d,{className:Te(B.icon,d.props.className)}):d,z=_=>{!E&&b&&b(_,O),w&&w(_)},V=_=>{P&&!E&&b&&b(_,O),S&&S(_)};return v.jsxs(QR,{focusRipple:!l,className:Te(B.root,s),ref:n,role:"tab","aria-selected":E,disabled:a,onClick:z,onFocus:V,ownerState:$,tabIndex:E?0:-1,...R,children:[h==="top"||h==="start"?v.jsxs(j.Fragment,{children:[M,m]}):v.jsxs(j.Fragment,{children:[m,M]}),y]})}),tI=bn(v.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),nI=bn(v.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function rI(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function oI(e,t,n,o={},s=()=>{}){const{ease:a=rI,duration:l=300}=o;let u=null;const d=t[e];let h=!1;const y=()=>{h=!0},m=b=>{if(h){s(new Error("Animation cancelled"));return}u===null&&(u=b);const w=Math.min(1,(b-u)/l);if(t[e]=a(w)*(n-d)+d,w>=1){requestAnimationFrame(()=>{s(null)});return}requestAnimationFrame(m)};return d===n?(s(new Error("Element already at target position")),y):(requestAnimationFrame(m),y)}const iI={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function sI(e){const{onChange:t,...n}=e,o=j.useRef(),s=j.useRef(null),a=()=>{o.current=s.current.offsetHeight-s.current.clientHeight};return br(()=>{const l=Oa(()=>{const d=o.current;a(),d!==o.current&&t(o.current)}),u=or(s.current);return u.addEventListener("resize",l),()=>{l.clear(),u.removeEventListener("resize",l)}},[t]),j.useEffect(()=>{a(),t(o.current)},[t]),v.jsx("div",{style:iI,...n,ref:s})}function aI(e){return lt("MuiTabScrollButton",e)}const lI=it("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),cI=e=>{const{classes:t,orientation:n,disabled:o}=e;return ft({root:["root",n,o&&"disabled"]},aI,t)},uI=Re(si,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})({width:40,flexShrink:0,opacity:.8,[`&.${lI.disabled}`]:{opacity:0},variants:[{props:{orientation:"vertical"},style:{width:"100%",height:40,"& svg":{transform:"var(--TabScrollButton-svgRotate)"}}}]}),dI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:l={},direction:u,orientation:d,disabled:h,...y}=o,m=Cu(),b={isRtl:m,...o},w=cI(b),S=a.StartScrollButtonIcon??tI,E=a.EndScrollButtonIcon??nI,P=Yo({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b}),C=Yo({elementType:E,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:b});return v.jsx(uI,{component:"div",className:Te(w.root,s),ref:n,role:null,ownerState:b,tabIndex:null,...y,style:{...y.style,...d==="vertical"&&{"--TabScrollButton-svgRotate":`rotate(${m?-90:90}deg)`}},children:u==="left"?v.jsx(S,{...P}):v.jsx(E,{...C})})});function fI(e){return lt("MuiTabs",e)}const ed=it("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),Xg=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,Kg=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,al=(e,t,n)=>{let o=!1,s=n(e,t);for(;s;){if(s===e.firstChild){if(o)return;o=!0}const a=s.disabled||s.getAttribute("aria-disabled")==="true";if(!s.hasAttribute("tabindex")||a)s=n(e,s);else{s.focus();return}}},pI=e=>{const{vertical:t,fixed:n,hideScrollbar:o,scrollableX:s,scrollableY:a,centered:l,scrollButtonsHideMobile:u,classes:d}=e;return ft({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",o&&"hideScrollbar",s&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",l&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",u&&"scrollButtonsHideMobile"],scrollableX:[s&&"scrollableX"],hideScrollbar:[o&&"hideScrollbar"]},fI,d)},hI=Re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ed.scrollButtons}`]:t.scrollButtons},{[`& .${ed.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(vt(({theme:e})=>({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex",variants:[{props:({ownerState:t})=>t.vertical,style:{flexDirection:"column"}},{props:({ownerState:t})=>t.scrollButtonsHideMobile,style:{[`& .${ed.scrollButtons}`]:{[e.breakpoints.down("sm")]:{display:"none"}}}}]}))),gI=Re("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.scroller,n.fixed&&t.fixed,n.hideScrollbar&&t.hideScrollbar,n.scrollableX&&t.scrollableX,n.scrollableY&&t.scrollableY]}})({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap",variants:[{props:({ownerState:e})=>e.fixed,style:{overflowX:"hidden",width:"100%"}},{props:({ownerState:e})=>e.hideScrollbar,style:{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}},{props:({ownerState:e})=>e.scrollableX,style:{overflowX:"auto",overflowY:"hidden"}},{props:({ownerState:e})=>e.scrollableY,style:{overflowY:"auto",overflowX:"hidden"}}]}),mI=Re("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})({display:"flex",variants:[{props:({ownerState:e})=>e.vertical,style:{flexDirection:"column"}},{props:({ownerState:e})=>e.centered,style:{justifyContent:"center"}}]}),yI=Re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(vt(({theme:e})=>({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create(),variants:[{props:{indicatorColor:"primary"},style:{backgroundColor:(e.vars||e).palette.primary.main}},{props:{indicatorColor:"secondary"},style:{backgroundColor:(e.vars||e).palette.secondary.main}},{props:({ownerState:t})=>t.vertical,style:{height:"100%",width:2,right:0}}]}))),vI=Re(sI)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),Jg={},bI=j.forwardRef(function(t,n){const o=pt({props:t,name:"MuiTabs"}),s=Ma(),a=Cu(),{"aria-label":l,"aria-labelledby":u,action:d,centered:h=!1,children:y,className:m,component:b="div",allowScrollButtonsMobile:w=!1,indicatorColor:S="primary",onChange:E,orientation:P="horizontal",ScrollButtonComponent:C=dI,scrollButtons:O="auto",selectionFollowsFocus:k,slots:R={},slotProps:$={},TabIndicatorProps:B={},TabScrollButtonProps:M={},textColor:z="primary",value:V,variant:_="standard",visibleScrollbar:G=!1,...re}=o,H=_==="scrollable",Q=P==="vertical",ee=Q?"scrollTop":"scrollLeft",le=Q?"top":"left",pe=Q?"bottom":"right",he=Q?"clientHeight":"clientWidth",be=Q?"height":"width",we={...o,component:b,allowScrollButtonsMobile:w,indicatorColor:S,orientation:P,vertical:Q,scrollButtons:O,textColor:z,variant:_,visibleScrollbar:G,fixed:!H,hideScrollbar:H&&!G,scrollableX:H&&!Q,scrollableY:H&&Q,centered:h&&!H,scrollButtonsHideMobile:!w},ue=pI(we),Ce=Yo({elementType:R.StartScrollButtonIcon,externalSlotProps:$.startScrollButtonIcon,ownerState:we}),De=Yo({elementType:R.EndScrollButtonIcon,externalSlotProps:$.endScrollButtonIcon,ownerState:we}),[Xe,Ke]=j.useState(!1),[He,gt]=j.useState(Jg),[ae,de]=j.useState(!1),[ge,me]=j.useState(!1),[fe,Pe]=j.useState(!1),[ve,Be]=j.useState({overflow:"hidden",scrollbarWidth:0}),Ge=new Map,Ae=j.useRef(null),ke=j.useRef(null),We=()=>{const oe=Ae.current;let se;if(oe){const _e=oe.getBoundingClientRect();se={clientWidth:oe.clientWidth,scrollLeft:oe.scrollLeft,scrollTop:oe.scrollTop,scrollWidth:oe.scrollWidth,top:_e.top,bottom:_e.bottom,left:_e.left,right:_e.right}}let Ee;if(oe&&V!==!1){const _e=ke.current.children;if(_e.length>0){const Tt=_e[Ge.get(V)];Ee=Tt?Tt.getBoundingClientRect():null}}return{tabsMeta:se,tabMeta:Ee}},et=Br(()=>{const{tabsMeta:oe,tabMeta:se}=We();let Ee=0,_e;Q?(_e="top",se&&oe&&(Ee=se.top-oe.top+oe.scrollTop)):(_e=a?"right":"left",se&&oe&&(Ee=(a?-1:1)*(se[_e]-oe[_e]+oe.scrollLeft)));const Tt={[_e]:Ee,[be]:se?se[be]:0};if(typeof He[_e]!="number"||typeof He[be]!="number")gt(Tt);else{const Xn=Math.abs(He[_e]-Tt[_e]),kr=Math.abs(He[be]-Tt[be]);(Xn>=1||kr>=1)&>(Tt)}}),Le=(oe,{animation:se=!0}={})=>{se?oI(ee,Ae.current,oe,{duration:s.transitions.duration.standard}):Ae.current[ee]=oe},xe=oe=>{let se=Ae.current[ee];Q?se+=oe:se+=oe*(a?-1:1),Le(se)},ut=()=>{const oe=Ae.current[he];let se=0;const Ee=Array.from(ke.current.children);for(let _e=0;_e<Ee.length;_e+=1){const Tt=Ee[_e];if(se+Tt[he]>oe){_e===0&&(se=oe);break}se+=Tt[he]}return se},Ut=()=>{xe(-1*ut())},Ht=()=>{xe(ut())},Yn=j.useCallback(oe=>{Be({overflow:null,scrollbarWidth:oe})},[]),I=()=>{const oe={};oe.scrollbarSizeListener=H?v.jsx(vI,{onChange:Yn,className:Te(ue.scrollableX,ue.hideScrollbar)}):null;const Ee=H&&(O==="auto"&&(ae||ge)||O===!0);return oe.scrollButtonStart=Ee?v.jsx(C,{slots:{StartScrollButtonIcon:R.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:Ce},orientation:P,direction:a?"right":"left",onClick:Ut,disabled:!ae,...M,className:Te(ue.scrollButtons,M.className)}):null,oe.scrollButtonEnd=Ee?v.jsx(C,{slots:{EndScrollButtonIcon:R.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:De},orientation:P,direction:a?"left":"right",onClick:Ht,disabled:!ge,...M,className:Te(ue.scrollButtons,M.className)}):null,oe},p=Br(oe=>{const{tabsMeta:se,tabMeta:Ee}=We();if(!(!Ee||!se)){if(Ee[le]<se[le]){const _e=se[ee]+(Ee[le]-se[le]);Le(_e,{animation:oe})}else if(Ee[pe]>se[pe]){const _e=se[ee]+(Ee[pe]-se[pe]);Le(_e,{animation:oe})}}}),g=Br(()=>{H&&O!==!1&&Pe(!fe)});j.useEffect(()=>{const oe=Oa(()=>{Ae.current&&et()});let se;const Ee=Xn=>{Xn.forEach(kr=>{kr.removedNodes.forEach(io=>{se==null||se.unobserve(io)}),kr.addedNodes.forEach(io=>{se==null||se.observe(io)})}),oe(),g()},_e=or(Ae.current);_e.addEventListener("resize",oe);let Tt;return typeof ResizeObserver<"u"&&(se=new ResizeObserver(oe),Array.from(ke.current.children).forEach(Xn=>{se.observe(Xn)})),typeof MutationObserver<"u"&&(Tt=new MutationObserver(Ee),Tt.observe(ke.current,{childList:!0})),()=>{oe.clear(),_e.removeEventListener("resize",oe),Tt==null||Tt.disconnect(),se==null||se.disconnect()}},[et,g]),j.useEffect(()=>{const oe=Array.from(ke.current.children),se=oe.length;if(typeof IntersectionObserver<"u"&&se>0&&H&&O!==!1){const Ee=oe[0],_e=oe[se-1],Tt={root:Ae.current,threshold:.99},Xn=Os=>{de(!Os[0].isIntersecting)},kr=new IntersectionObserver(Xn,Tt);kr.observe(Ee);const io=Os=>{me(!Os[0].isIntersecting)},Xl=new IntersectionObserver(io,Tt);return Xl.observe(_e),()=>{kr.disconnect(),Xl.disconnect()}}},[H,O,fe,y==null?void 0:y.length]),j.useEffect(()=>{Ke(!0)},[]),j.useEffect(()=>{et()}),j.useEffect(()=>{p(Jg!==He)},[p,He]),j.useImperativeHandle(d,()=>({updateIndicator:et,updateScrollButtons:g}),[et,g]);const D=v.jsx(yI,{...B,className:Te(ue.indicator,B.className),ownerState:we,style:{...He,...B.style}});let N=0;const q=j.Children.map(y,oe=>{if(!j.isValidElement(oe))return null;const se=oe.props.value===void 0?N:oe.props.value;Ge.set(se,N);const Ee=se===V;return N+=1,j.cloneElement(oe,{fullWidth:_==="fullWidth",indicator:Ee&&!Xe&&D,selected:Ee,selectionFollowsFocus:k,onChange:E,textColor:z,value:se,...N===1&&V===!1&&!oe.props.tabIndex?{tabIndex:0}:{}})}),J=oe=>{const se=ke.current,Ee=Un(se).activeElement;if(Ee.getAttribute("role")!=="tab")return;let Tt=P==="horizontal"?"ArrowLeft":"ArrowUp",Xn=P==="horizontal"?"ArrowRight":"ArrowDown";switch(P==="horizontal"&&a&&(Tt="ArrowRight",Xn="ArrowLeft"),oe.key){case Tt:oe.preventDefault(),al(se,Ee,Kg);break;case Xn:oe.preventDefault(),al(se,Ee,Xg);break;case"Home":oe.preventDefault(),al(se,null,Xg);break;case"End":oe.preventDefault(),al(se,null,Kg);break}},ce=I();return v.jsxs(hI,{className:Te(ue.root,m),ownerState:we,ref:n,as:b,...re,children:[ce.scrollButtonStart,ce.scrollbarSizeListener,v.jsxs(gI,{className:ue.scroller,ownerState:we,style:{overflow:ve.overflow,[Q?`margin${a?"Left":"Right"}`:"marginBottom"]:G?void 0:-ve.scrollbarWidth},ref:Ae,children:[v.jsx(mI,{"aria-label":l,"aria-labelledby":u,"aria-orientation":P==="vertical"?"vertical":null,className:ue.flexContainer,ownerState:we,onKeyDown:J,ref:ke,role:"tablist",children:q}),Xe&&D]}),ce.scrollButtonEnd]})});var xn=function(){return xn=Object.assign||function(t){for(var n,o=1,s=arguments.length;o<s;o++){n=arguments[o];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])}return t},xn.apply(this,arguments)};function hs(e,t,n){if(n||arguments.length===2)for(var o=0,s=t.length,a;o<s;o++)(a||!(o in t))&&(a||(a=Array.prototype.slice.call(t,0,o)),a[o]=t[o]);return e.concat(a||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Rt="-ms-",gs="-moz-",ht="-webkit-",Zg="comm",ll="rule",td="decl",xI="@import",Qg="@keyframes",wI="@layer",em=Math.abs,nd=String.fromCharCode,rd=Object.assign;function SI(e,t){return Kt(e,0)^45?(((t<<2^Kt(e,0))<<2^Kt(e,1))<<2^Kt(e,2))<<2^Kt(e,3):0}function tm(e){return e.trim()}function Fr(e,t){return(e=t.exec(e))?e[0]:e}function Ve(e,t,n){return e.replace(t,n)}function cl(e,t,n){return e.indexOf(t,n)}function Kt(e,t){return e.charCodeAt(t)|0}function ui(e,t,n){return e.slice(t,n)}function Cr(e){return e.length}function nm(e){return e.length}function ms(e,t){return t.push(e),e}function CI(e,t){return e.map(t).join("")}function rm(e,t){return e.filter(function(n){return!Fr(n,t)})}var ul=1,di=1,om=0,Vn=0,Wt=0,fi="";function dl(e,t,n,o,s,a,l,u){return{value:e,root:t,parent:n,type:o,props:s,children:a,line:ul,column:di,length:l,return:"",siblings:u}}function to(e,t){return rd(dl("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function pi(e){for(;e.root;)e=to(e.root,{children:[e]});ms(e,e.siblings)}function _I(){return Wt}function EI(){return Wt=Vn>0?Kt(fi,--Vn):0,di--,Wt===10&&(di=1,ul--),Wt}function sr(){return Wt=Vn<om?Kt(fi,Vn++):0,di++,Wt===10&&(di=1,ul++),Wt}function Co(){return Kt(fi,Vn)}function fl(){return Vn}function pl(e,t){return ui(fi,e,t)}function od(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function RI(e){return ul=di=1,om=Cr(fi=e),Vn=0,[]}function II(e){return fi="",e}function id(e){return tm(pl(Vn-1,sd(e===91?e+2:e===40?e+1:e)))}function kI(e){for(;(Wt=Co())&&Wt<33;)sr();return od(e)>2||od(Wt)>3?"":" "}function TI(e,t){for(;--t&&sr()&&!(Wt<48||Wt>102||Wt>57&&Wt<65||Wt>70&&Wt<97););return pl(e,fl()+(t<6&&Co()==32&&sr()==32))}function sd(e){for(;sr();)switch(Wt){case e:return Vn;case 34:case 39:e!==34&&e!==39&&sd(Wt);break;case 40:e===41&&sd(e);break;case 92:sr();break}return Vn}function PI(e,t){for(;sr()&&e+Wt!==57;)if(e+Wt===84&&Co()===47)break;return"/*"+pl(t,Vn-1)+"*"+nd(e===47?e:sr())}function OI(e){for(;!od(Co());)sr();return pl(e,Vn)}function AI(e){return II(hl("",null,null,null,[""],e=RI(e),0,[0],e))}function hl(e,t,n,o,s,a,l,u,d){for(var h=0,y=0,m=l,b=0,w=0,S=0,E=1,P=1,C=1,O=0,k="",R=s,$=a,B=o,M=k;P;)switch(S=O,O=sr()){case 40:if(S!=108&&Kt(M,m-1)==58){cl(M+=Ve(id(O),"&","&\f"),"&\f",em(h?u[h-1]:0))!=-1&&(C=-1);break}case 34:case 39:case 91:M+=id(O);break;case 9:case 10:case 13:case 32:M+=kI(S);break;case 92:M+=TI(fl()-1,7);continue;case 47:switch(Co()){case 42:case 47:ms(MI(PI(sr(),fl()),t,n,d),d);break;default:M+="/"}break;case 123*E:u[h++]=Cr(M)*C;case 125*E:case 59:case 0:switch(O){case 0:case 125:P=0;case 59+y:C==-1&&(M=Ve(M,/\f/g,"")),w>0&&Cr(M)-m&&ms(w>32?sm(M+";",o,n,m-1,d):sm(Ve(M," ","")+";",o,n,m-2,d),d);break;case 59:M+=";";default:if(ms(B=im(M,t,n,h,y,s,u,k,R=[],$=[],m,a),a),O===123)if(y===0)hl(M,t,B,B,R,a,m,u,$);else switch(b===99&&Kt(M,3)===110?100:b){case 100:case 108:case 109:case 115:hl(e,B,B,o&&ms(im(e,B,B,0,0,s,u,k,s,R=[],m,$),$),s,$,m,u,o?R:$);break;default:hl(M,B,B,B,[""],$,0,u,$)}}h=y=w=0,E=C=1,k=M="",m=l;break;case 58:m=1+Cr(M),w=S;default:if(E<1){if(O==123)--E;else if(O==125&&E++==0&&EI()==125)continue}switch(M+=nd(O),O*E){case 38:C=y>0?1:(M+="\f",-1);break;case 44:u[h++]=(Cr(M)-1)*C,C=1;break;case 64:Co()===45&&(M+=id(sr())),b=Co(),y=m=Cr(k=M+=OI(fl())),O++;break;case 45:S===45&&Cr(M)==2&&(E=0)}}return a}function im(e,t,n,o,s,a,l,u,d,h,y,m){for(var b=s-1,w=s===0?a:[""],S=nm(w),E=0,P=0,C=0;E<o;++E)for(var O=0,k=ui(e,b+1,b=em(P=l[E])),R=e;O<S;++O)(R=tm(P>0?w[O]+" "+k:Ve(k,/&\f/g,w[O])))&&(d[C++]=R);return dl(e,t,n,s===0?ll:u,d,h,y,m)}function MI(e,t,n,o){return dl(e,t,n,Zg,nd(_I()),ui(e,2,-2),0,o)}function sm(e,t,n,o,s){return dl(e,t,n,td,ui(e,0,o),ui(e,o+1,-1),o,s)}function am(e,t,n){switch(SI(e,t)){case 5103:return ht+"print-"+e+e;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return ht+e+e;case 4789:return gs+e+e;case 5349:case 4246:case 4810:case 6968:case 2756:return ht+e+gs+e+Rt+e+e;case 5936:switch(Kt(e,t+11)){case 114:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ht+e+Rt+Ve(e,/[svh]\w+-[tblr]{2}/,"lr")+e}case 6828:case 4268:case 2903:return ht+e+Rt+e+e;case 6165:return ht+e+Rt+"flex-"+e+e;case 5187:return ht+e+Ve(e,/(\w+).+(:[^]+)/,ht+"box-$1$2"+Rt+"flex-$1$2")+e;case 5443:return ht+e+Rt+"flex-item-"+Ve(e,/flex-|-self/g,"")+(Fr(e,/flex-|baseline/)?"":Rt+"grid-row-"+Ve(e,/flex-|-self/g,""))+e;case 4675:return ht+e+Rt+"flex-line-pack"+Ve(e,/align-content|flex-|-self/g,"")+e;case 5548:return ht+e+Rt+Ve(e,"shrink","negative")+e;case 5292:return ht+e+Rt+Ve(e,"basis","preferred-size")+e;case 6060:return ht+"box-"+Ve(e,"-grow","")+ht+e+Rt+Ve(e,"grow","positive")+e;case 4554:return ht+Ve(e,/([^-])(transform)/g,"$1"+ht+"$2")+e;case 6187:return Ve(Ve(Ve(e,/(zoom-|grab)/,ht+"$1"),/(image-set)/,ht+"$1"),e,"")+e;case 5495:case 3959:return Ve(e,/(image-set\([^]*)/,ht+"$1$`$1");case 4968:return Ve(Ve(e,/(.+:)(flex-)?(.*)/,ht+"box-pack:$3"+Rt+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+ht+e+e;case 4200:if(!Fr(e,/flex-|baseline/))return Rt+"grid-column-align"+ui(e,t)+e;break;case 2592:case 3360:return Rt+Ve(e,"template-","")+e;case 4384:case 3616:return n&&n.some(function(o,s){return t=s,Fr(o.props,/grid-\w+-end/)})?~cl(e+(n=n[t].value),"span",0)?e:Rt+Ve(e,"-start","")+e+Rt+"grid-row-span:"+(~cl(n,"span",0)?Fr(n,/\d+/):+Fr(n,/\d+/)-+Fr(e,/\d+/))+";":Rt+Ve(e,"-start","")+e;case 4896:case 4128:return n&&n.some(function(o){return Fr(o.props,/grid-\w+-start/)})?e:Rt+Ve(Ve(e,"-end","-span"),"span ","")+e;case 4095:case 3583:case 4068:case 2532:return Ve(e,/(.+)-inline(.+)/,ht+"$1$2")+e;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Cr(e)-1-t>6)switch(Kt(e,t+1)){case 109:if(Kt(e,t+4)!==45)break;case 102:return Ve(e,/(.+:)(.+)-([^]+)/,"$1"+ht+"$2-$3$1"+gs+(Kt(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~cl(e,"stretch",0)?am(Ve(e,"stretch","fill-available"),t,n)+e:e}break;case 5152:case 5920:return Ve(e,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(o,s,a,l,u,d,h){return Rt+s+":"+a+h+(l?Rt+s+"-span:"+(u?d:+d-+a)+h:"")+e});case 4949:if(Kt(e,t+6)===121)return Ve(e,":",":"+ht)+e;break;case 6444:switch(Kt(e,Kt(e,14)===45?18:11)){case 120:return Ve(e,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+ht+(Kt(e,14)===45?"inline-":"")+"box$3$1"+ht+"$2$3$1"+Rt+"$2box$3")+e;case 100:return Ve(e,":",":"+Rt)+e}break;case 5719:case 2647:case 2135:case 3927:case 2391:return Ve(e,"scroll-","scroll-snap-")+e}return e}function gl(e,t){for(var n="",o=0;o<e.length;o++)n+=t(e[o],o,e,t)||"";return n}function $I(e,t,n,o){switch(e.type){case wI:if(e.children.length)break;case xI:case td:return e.return=e.return||e.value;case Zg:return"";case Qg:return e.return=e.value+"{"+gl(e.children,o)+"}";case ll:if(!Cr(e.value=e.props.join(",")))return""}return Cr(n=gl(e.children,o))?e.return=e.value+"{"+n+"}":""}function DI(e){var t=nm(e);return function(n,o,s,a){for(var l="",u=0;u<t;u++)l+=e[u](n,o,s,a)||"";return l}}function BI(e){return function(t){t.root||(t=t.return)&&e(t)}}function LI(e,t,n,o){if(e.length>-1&&!e.return)switch(e.type){case td:e.return=am(e.value,e.length,n);return;case Qg:return gl([to(e,{value:Ve(e.value,"@","@"+ht)})],o);case ll:if(e.length)return CI(n=e.props,function(s){switch(Fr(s,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":pi(to(e,{props:[Ve(s,/:(read-\w+)/,":"+gs+"$1")]})),pi(to(e,{props:[s]})),rd(e,{props:rm(n,o)});break;case"::placeholder":pi(to(e,{props:[Ve(s,/:(plac\w+)/,":"+ht+"input-$1")]})),pi(to(e,{props:[Ve(s,/:(plac\w+)/,":"+gs+"$1")]})),pi(to(e,{props:[Ve(s,/:(plac\w+)/,Rt+"input-$1")]})),pi(to(e,{props:[s]})),rd(e,{props:rm(n,o)});break}return""})}}var jI={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},hi=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",lm="active",cm="data-styled-version",ml="6.1.13",ad=`/*!sc*/
|
|
152
|
+
`,yl=typeof window<"u"&&"HTMLElement"in window,NI=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""&&process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY),vl=Object.freeze([]),gi=Object.freeze({});function FI(e,t,n){return n===void 0&&(n=gi),e.theme!==n.theme&&e.theme||t||n.theme}var um=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),zI=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,WI=/(^-|-$)/g;function dm(e){return e.replace(zI,"-").replace(WI,"")}var UI=/(a)(d)/gi,bl=52,fm=function(e){return String.fromCharCode(e+(e>25?39:97))};function ld(e){var t,n="";for(t=Math.abs(e);t>bl;t=t/bl|0)n=fm(t%bl)+n;return(fm(t%bl)+n).replace(UI,"$1-$2")}var cd,pm=5381,mi=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},hm=function(e){return mi(pm,e)};function gm(e){return ld(hm(e)>>>0)}function HI(e){return e.displayName||e.name||"Component"}function ud(e){return typeof e=="string"&&!0}var mm=typeof Symbol=="function"&&Symbol.for,ym=mm?Symbol.for("react.memo"):60115,GI=mm?Symbol.for("react.forward_ref"):60112,qI={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},VI={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},vm={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},YI=((cd={})[GI]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},cd[ym]=vm,cd);function bm(e){return("type"in(t=e)&&t.type.$$typeof)===ym?vm:"$$typeof"in e?YI[e.$$typeof]:qI;var t}var XI=Object.defineProperty,KI=Object.getOwnPropertyNames,xm=Object.getOwnPropertySymbols,JI=Object.getOwnPropertyDescriptor,ZI=Object.getPrototypeOf,wm=Object.prototype;function Sm(e,t,n){if(typeof t!="string"){if(wm){var o=ZI(t);o&&o!==wm&&Sm(e,o,n)}var s=KI(t);xm&&(s=s.concat(xm(t)));for(var a=bm(e),l=bm(t),u=0;u<s.length;++u){var d=s[u];if(!(d in VI||n&&n[d]||l&&d in l||a&&d in a)){var h=JI(t,d);try{XI(e,d,h)}catch{}}}}return e}function yi(e){return typeof e=="function"}function dd(e){return typeof e=="object"&&"styledComponentId"in e}function _o(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function fd(e,t){if(e.length===0)return"";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function ys(e){return e!==null&&typeof e=="object"&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function pd(e,t,n){if(n===void 0&&(n=!1),!n&&!ys(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=pd(e[o],t[o]);else if(ys(t))for(var o in t)e[o]=pd(e[o],t[o]);return e}function hd(e,t){Object.defineProperty(e,"toString",{value:t})}function vs(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var QI=function(){function e(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}return e.prototype.indexOfGroup=function(t){for(var n=0,o=0;o<t;o++)n+=this.groupSizes[o];return n},e.prototype.insertRules=function(t,n){if(t>=this.groupSizes.length){for(var o=this.groupSizes,s=o.length,a=s;t>=a;)if((a<<=1)<0)throw vs(16,"".concat(t));this.groupSizes=new Uint32Array(a),this.groupSizes.set(o),this.length=a;for(var l=s;l<a;l++)this.groupSizes[l]=0}for(var u=this.indexOfGroup(t+1),d=(l=0,n.length);l<d;l++)this.tag.insertRule(u,n[l])&&(this.groupSizes[t]++,u++)},e.prototype.clearGroup=function(t){if(t<this.length){var n=this.groupSizes[t],o=this.indexOfGroup(t),s=o+n;this.groupSizes[t]=0;for(var a=o;a<s;a++)this.tag.deleteRule(o)}},e.prototype.getGroup=function(t){var n="";if(t>=this.length||this.groupSizes[t]===0)return n;for(var o=this.groupSizes[t],s=this.indexOfGroup(t),a=s+o,l=s;l<a;l++)n+="".concat(this.tag.getRule(l)).concat(ad);return n},e}(),xl=new Map,wl=new Map,Sl=1,Cl=function(e){if(xl.has(e))return xl.get(e);for(;wl.has(Sl);)Sl++;var t=Sl++;return xl.set(e,t),wl.set(t,e),t},ek=function(e,t){Sl=t+1,xl.set(e,t),wl.set(t,e)},tk="style[".concat(hi,"][").concat(cm,'="').concat(ml,'"]'),nk=new RegExp("^".concat(hi,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),rk=function(e,t,n){for(var o,s=n.split(","),a=0,l=s.length;a<l;a++)(o=s[a])&&e.registerName(t,o)},ok=function(e,t){for(var n,o=((n=t.textContent)!==null&&n!==void 0?n:"").split(ad),s=[],a=0,l=o.length;a<l;a++){var u=o[a].trim();if(u){var d=u.match(nk);if(d){var h=0|parseInt(d[1],10),y=d[2];h!==0&&(ek(y,h),rk(e,y,d[3]),e.getTag().insertRules(h,s)),s.length=0}else s.push(u)}}},Cm=function(e){for(var t=document.querySelectorAll(tk),n=0,o=t.length;n<o;n++){var s=t[n];s&&s.getAttribute(hi)!==lm&&(ok(e,s),s.parentNode&&s.parentNode.removeChild(s))}};function ik(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var _m=function(e){var t=document.head,n=e||t,o=document.createElement("style"),s=function(u){var d=Array.from(u.querySelectorAll("style[".concat(hi,"]")));return d[d.length-1]}(n),a=s!==void 0?s.nextSibling:null;o.setAttribute(hi,lm),o.setAttribute(cm,ml);var l=ik();return l&&o.setAttribute("nonce",l),n.insertBefore(o,a),o},sk=function(){function e(t){this.element=_m(t),this.element.appendChild(document.createTextNode("")),this.sheet=function(n){if(n.sheet)return n.sheet;for(var o=document.styleSheets,s=0,a=o.length;s<a;s++){var l=o[s];if(l.ownerNode===n)return l}throw vs(17)}(this.element),this.length=0}return e.prototype.insertRule=function(t,n){try{return this.sheet.insertRule(n,t),this.length++,!0}catch{return!1}},e.prototype.deleteRule=function(t){this.sheet.deleteRule(t),this.length--},e.prototype.getRule=function(t){var n=this.sheet.cssRules[t];return n&&n.cssText?n.cssText:""},e}(),ak=function(){function e(t){this.element=_m(t),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(t,n){if(t<=this.length&&t>=0){var o=document.createTextNode(n);return this.element.insertBefore(o,this.nodes[t]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.prototype.getRule=function(t){return t<this.length?this.nodes[t].textContent:""},e}(),lk=function(){function e(t){this.rules=[],this.length=0}return e.prototype.insertRule=function(t,n){return t<=this.length&&(this.rules.splice(t,0,n),this.length++,!0)},e.prototype.deleteRule=function(t){this.rules.splice(t,1),this.length--},e.prototype.getRule=function(t){return t<this.length?this.rules[t]:""},e}(),Em=yl,ck={isServer:!yl,useCSSOMInjection:!NI},Rm=function(){function e(t,n,o){t===void 0&&(t=gi),n===void 0&&(n={});var s=this;this.options=xn(xn({},ck),t),this.gs=n,this.names=new Map(o),this.server=!!t.isServer,!this.server&&yl&&Em&&(Em=!1,Cm(this)),hd(this,function(){return function(a){for(var l=a.getTag(),u=l.length,d="",h=function(m){var b=function(C){return wl.get(C)}(m);if(b===void 0)return"continue";var w=a.names.get(b),S=l.getGroup(m);if(w===void 0||!w.size||S.length===0)return"continue";var E="".concat(hi,".g").concat(m,'[id="').concat(b,'"]'),P="";w!==void 0&&w.forEach(function(C){C.length>0&&(P+="".concat(C,","))}),d+="".concat(S).concat(E,'{content:"').concat(P,'"}').concat(ad)},y=0;y<u;y++)h(y);return d}(s)})}return e.registerId=function(t){return Cl(t)},e.prototype.rehydrate=function(){!this.server&&yl&&Cm(this)},e.prototype.reconstructWithOptions=function(t,n){return n===void 0&&(n=!0),new e(xn(xn({},this.options),t),this.gs,n&&this.names||void 0)},e.prototype.allocateGSInstance=function(t){return this.gs[t]=(this.gs[t]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(t=function(n){var o=n.useCSSOMInjection,s=n.target;return n.isServer?new lk(s):o?new sk(s):new ak(s)}(this.options),new QI(t)));var t},e.prototype.hasNameForId=function(t,n){return this.names.has(t)&&this.names.get(t).has(n)},e.prototype.registerName=function(t,n){if(Cl(t),this.names.has(t))this.names.get(t).add(n);else{var o=new Set;o.add(n),this.names.set(t,o)}},e.prototype.insertRules=function(t,n,o){this.registerName(t,n),this.getTag().insertRules(Cl(t),o)},e.prototype.clearNames=function(t){this.names.has(t)&&this.names.get(t).clear()},e.prototype.clearRules=function(t){this.getTag().clearGroup(Cl(t)),this.clearNames(t)},e.prototype.clearTag=function(){this.tag=void 0},e}(),uk=/&/g,dk=/^\s*\/\/.*$/gm;function Im(e,t){return e.map(function(n){return n.type==="rule"&&(n.value="".concat(t," ").concat(n.value),n.value=n.value.replaceAll(",",",".concat(t," ")),n.props=n.props.map(function(o){return"".concat(t," ").concat(o)})),Array.isArray(n.children)&&n.type!=="@keyframes"&&(n.children=Im(n.children,t)),n})}function fk(e){var t,n,o,s=gi,a=s.options,l=a===void 0?gi:a,u=s.plugins,d=u===void 0?vl:u,h=function(b,w,S){return S.startsWith(n)&&S.endsWith(n)&&S.replaceAll(n,"").length>0?".".concat(t):b},y=d.slice();y.push(function(b){b.type===ll&&b.value.includes("&")&&(b.props[0]=b.props[0].replace(uk,n).replace(o,h))}),l.prefix&&y.push(LI),y.push($I);var m=function(b,w,S,E){w===void 0&&(w=""),S===void 0&&(S=""),E===void 0&&(E="&"),t=E,n=w,o=new RegExp("\\".concat(n,"\\b"),"g");var P=b.replace(dk,""),C=AI(S||w?"".concat(S," ").concat(w," { ").concat(P," }"):P);l.namespace&&(C=Im(C,l.namespace));var O=[];return gl(C,DI(y.concat(BI(function(k){return O.push(k)})))),O};return m.hash=d.length?d.reduce(function(b,w){return w.name||vs(15),mi(b,w.name)},pm).toString():"",m}var pk=new Rm,gd=fk(),km=X.createContext({shouldForwardProp:void 0,styleSheet:pk,stylis:gd});km.Consumer,X.createContext(void 0);function Tm(){return X.useContext(km)}var Pm=function(){function e(t,n){var o=this;this.inject=function(s,a){a===void 0&&(a=gd);var l=o.name+a.hash;s.hasNameForId(o.id,l)||s.insertRules(o.id,l,a(o.rules,l,"@keyframes"))},this.name=t,this.id="sc-keyframes-".concat(t),this.rules=n,hd(this,function(){throw vs(12,String(o.name))})}return e.prototype.getName=function(t){return t===void 0&&(t=gd),this.name+t.hash},e}(),hk=function(e){return e>="A"&&e<="Z"};function Om(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(n===1&&o==="-"&&e[0]==="-")return e;hk(o)?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var Am=function(e){return e==null||e===!1||e===""},Mm=function(e){var t,n,o=[];for(var s in e){var a=e[s];e.hasOwnProperty(s)&&!Am(a)&&(Array.isArray(a)&&a.isCss||yi(a)?o.push("".concat(Om(s),":"),a,";"):ys(a)?o.push.apply(o,hs(hs(["".concat(s," {")],Mm(a),!1),["}"],!1)):o.push("".concat(Om(s),": ").concat((t=s,(n=a)==null||typeof n=="boolean"||n===""?"":typeof n!="number"||n===0||t in jI||t.startsWith("--")?String(n).trim():"".concat(n,"px")),";")))}return o};function Eo(e,t,n,o){if(Am(e))return[];if(dd(e))return[".".concat(e.styledComponentId)];if(yi(e)){if(!yi(a=e)||a.prototype&&a.prototype.isReactComponent||!t)return[e];var s=e(t);return Eo(s,t,n,o)}var a;return e instanceof Pm?n?(e.inject(n,o),[e.getName(o)]):[e]:ys(e)?Mm(e):Array.isArray(e)?Array.prototype.concat.apply(vl,e.map(function(l){return Eo(l,t,n,o)})):[e.toString()]}function gk(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(yi(n)&&!dd(n))return!1}return!0}var mk=hm(ml),yk=function(){function e(t,n,o){this.rules=t,this.staticRulesId="",this.isStatic=(o===void 0||o.isStatic)&&gk(t),this.componentId=n,this.baseHash=mi(mk,n),this.baseStyle=o,Rm.registerId(n)}return e.prototype.generateAndInjectStyles=function(t,n,o){var s=this.baseStyle?this.baseStyle.generateAndInjectStyles(t,n,o):"";if(this.isStatic&&!o.hash)if(this.staticRulesId&&n.hasNameForId(this.componentId,this.staticRulesId))s=_o(s,this.staticRulesId);else{var a=fd(Eo(this.rules,t,n,o)),l=ld(mi(this.baseHash,a)>>>0);if(!n.hasNameForId(this.componentId,l)){var u=o(a,".".concat(l),void 0,this.componentId);n.insertRules(this.componentId,l,u)}s=_o(s,l),this.staticRulesId=l}else{for(var d=mi(this.baseHash,o.hash),h="",y=0;y<this.rules.length;y++){var m=this.rules[y];if(typeof m=="string")h+=m;else if(m){var b=fd(Eo(m,t,n,o));d=mi(d,b+y),h+=b}}if(h){var w=ld(d>>>0);n.hasNameForId(this.componentId,w)||n.insertRules(this.componentId,w,o(h,".".concat(w),void 0,this.componentId)),s=_o(s,w)}}return s},e}(),$m=X.createContext(void 0);$m.Consumer;var md={};function vk(e,t,n){var o=dd(e),s=e,a=!ud(e),l=t.attrs,u=l===void 0?vl:l,d=t.componentId,h=d===void 0?function(R,$){var B=typeof R!="string"?"sc":dm(R);md[B]=(md[B]||0)+1;var M="".concat(B,"-").concat(gm(ml+B+md[B]));return $?"".concat($,"-").concat(M):M}(t.displayName,t.parentComponentId):d,y=t.displayName,m=y===void 0?function(R){return ud(R)?"styled.".concat(R):"Styled(".concat(HI(R),")")}(e):y,b=t.displayName&&t.componentId?"".concat(dm(t.displayName),"-").concat(t.componentId):t.componentId||h,w=o&&s.attrs?s.attrs.concat(u).filter(Boolean):u,S=t.shouldForwardProp;if(o&&s.shouldForwardProp){var E=s.shouldForwardProp;if(t.shouldForwardProp){var P=t.shouldForwardProp;S=function(R,$){return E(R,$)&&P(R,$)}}else S=E}var C=new yk(n,b,o?s.componentStyle:void 0);function O(R,$){return function(B,M,z){var V=B.attrs,_=B.componentStyle,G=B.defaultProps,re=B.foldedComponentIds,H=B.styledComponentId,Q=B.target,ee=X.useContext($m),le=Tm(),pe=B.shouldForwardProp||le.shouldForwardProp,he=FI(M,ee,G)||gi,be=function(Ke,He,gt){for(var ae,de=xn(xn({},He),{className:void 0,theme:gt}),ge=0;ge<Ke.length;ge+=1){var me=yi(ae=Ke[ge])?ae(de):ae;for(var fe in me)de[fe]=fe==="className"?_o(de[fe],me[fe]):fe==="style"?xn(xn({},de[fe]),me[fe]):me[fe]}return He.className&&(de.className=_o(de.className,He.className)),de}(V,M,he),we=be.as||Q,ue={};for(var Ce in be)be[Ce]===void 0||Ce[0]==="$"||Ce==="as"||Ce==="theme"&&be.theme===he||(Ce==="forwardedAs"?ue.as=be.forwardedAs:pe&&!pe(Ce,we)||(ue[Ce]=be[Ce]));var De=function(Ke,He){var gt=Tm(),ae=Ke.generateAndInjectStyles(He,gt.styleSheet,gt.stylis);return ae}(_,be),Xe=_o(re,H);return De&&(Xe+=" "+De),be.className&&(Xe+=" "+be.className),ue[ud(we)&&!um.has(we)?"class":"className"]=Xe,ue.ref=z,X.createElement(we,ue)}(k,R,$)}O.displayName=m;var k=X.forwardRef(O);return k.attrs=w,k.componentStyle=C,k.displayName=m,k.shouldForwardProp=S,k.foldedComponentIds=o?_o(s.foldedComponentIds,s.styledComponentId):"",k.styledComponentId=b,k.target=o?s.target:e,Object.defineProperty(k,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(R){this._foldedDefaultProps=o?function($){for(var B=[],M=1;M<arguments.length;M++)B[M-1]=arguments[M];for(var z=0,V=B;z<V.length;z++)pd($,V[z],!0);return $}({},s.defaultProps,R):R}}),hd(k,function(){return".".concat(k.styledComponentId)}),a&&Sm(k,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),k}function Dm(e,t){for(var n=[e[0]],o=0,s=t.length;o<s;o+=1)n.push(t[o],e[o+1]);return n}var Bm=function(e){return Object.assign(e,{isCss:!0})};function Lm(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(yi(e)||ys(e))return Bm(Eo(Dm(vl,hs([e],t,!0))));var o=e;return t.length===0&&o.length===1&&typeof o[0]=="string"?Eo(o):Bm(Eo(Dm(o,t)))}function yd(e,t,n){if(n===void 0&&(n=gi),!t)throw vs(1,t);var o=function(s){for(var a=[],l=1;l<arguments.length;l++)a[l-1]=arguments[l];return e(t,n,Lm.apply(void 0,hs([s],a,!1)))};return o.attrs=function(s){return yd(e,t,xn(xn({},n),{attrs:Array.prototype.concat(n.attrs,s).filter(Boolean)}))},o.withConfig=function(s){return yd(e,t,xn(xn({},n),s))},o}var jm=function(e){return yd(vk,e)},rt=jm;um.forEach(function(e){rt[e]=jm(e)});function bk(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var o=fd(Lm.apply(void 0,hs([e],t,!1))),s=gm(o);return new Pm(s,o)}const xk=rt.div`
|
|
153
153
|
position: fixed;
|
|
154
154
|
top: 0;
|
|
155
155
|
left: 0;
|
|
@@ -160,7 +160,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
160
160
|
justify-content: center;
|
|
161
161
|
align-items: center;
|
|
162
162
|
z-index: 10000; /* Increased z-index to be higher than all other components (others use 9999) */
|
|
163
|
-
`,
|
|
163
|
+
`,wk=rt.div`
|
|
164
164
|
border: 4px solid rgba(255, 255, 255, 0.3);
|
|
165
165
|
border-top: 4px solid white;
|
|
166
166
|
border-radius: 50%;
|
|
@@ -176,7 +176,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
176
176
|
transform: rotate(360deg);
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
|
-
`,Ps=({isVisible:e})=>e?b.jsx(ZT,{children:b.jsx(QT,{})}):null,iy=Y.createContext(null),sy=()=>{const e=Y.useContext(iy);if(!e)throw new Error("useAPI must be used within an APIProvider");return e},eI=({children:e})=>{const[t,n]=Y.useState(0),r=Y.useCallback(async a=>{n(l=>l+1);try{return await a}finally{n(l=>Math.max(0,l-1))}},[]),i=Y.useCallback(async(a,l)=>(n(c=>c+1),new Promise((c,d)=>{const f=a(),y=()=>{n(m=>Math.max(0,m-1))};f.addEventListener("load",()=>{if(y(),f.status>=200&&f.status<300)try{const m=l(f);c(m)}catch(m){d(m)}else d(new Error(`Request failed with status ${f.status}`))}),f.addEventListener("error",()=>{y(),d(new Error("Network error occurred"))}),f.addEventListener("abort",()=>{y(),d(new Error("Request cancelled"))})})),[]);return b.jsxs(iy.Provider,{value:{isLoading:t>0,wrapAPICall:r,wrapXHRCall:i},children:[b.jsx(Ps,{isVisible:t>0}),e]})},ay=e=>{const t=e;return{createProject:async(R,M)=>{const D={description:R,component_namespace:M};return await fetch(`${t}/create_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},getProjects:async()=>await fetch(`${t}/fetch_projects`,{method:"GET",headers:{"Content-Type":"application/json"}}),getSubdomains:async R=>await fetch(`${t}/subdomains?project_name=${R}`,{method:"GET",headers:{"Content-Type":"application/json"}}),allocateSubdomain:async(R,M)=>{const D={project_name:R,subdomain:M};return await fetch(`${t}/allocate_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},releaseSubdomain:async(R,M)=>{const D={project_name:R,subdomain:M};return await fetch(`${t}/release_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},publishProject:async(R,M)=>{const D={project_name:R,git_ref:M};return await fetch(`${t}/publish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},unpublishProject:async R=>{const M={project_name:R};return await fetch(`${t}/unpublish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},tagCommit:async(R,M,D)=>{const $={project_name:R,commit_hash:M,tag_name:D};return await fetch(`${t}/tag_project_commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},getComponentLibrary:async()=>await fetch(`${t}/library_components?namespaces=common,example`,{method:"GET",headers:{"Content-Type":"application/json"}}),addProjectComponent:async(R,M,D,$)=>{const z={project_name:R,component_namespace:M,component_name:D,layout_metadata:$};return await fetch(`${t}/add_project_component`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)})},addProjectChart:async(R,M,D)=>{const $={project_name:R,visual_id:M,layout_metadata:D};return await fetch(`${t}/add_project_chart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},updateProjectComponentLayoutMetadata:async(R,M,D)=>{const $={project_name:R,component_id:M,layout_metadata:D};return await fetch(`${t}/update_project_component_layout_metadata`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},updateProjectComponentSourceCode:async(R,M,D)=>{const $={project_name:R,component_id:M,source_code:D};return await fetch(`${t}/update_project_component_source_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},deleteProjectFile:async(R,M)=>{const D={project_name:R,file_path:M};return await fetch(`${t}/delete_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(D)})},resetProjectFile:async(R,M,D,$,z)=>{let V={project_name:R,file_path:M,git_ref:D};return $&&(V.prune=$),z&&(V.extra_metadata=z),await fetch(`${t}/reset_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)})},deleteProject:async R=>{const M={projects:[R]};return await fetch(`${t}/delete_projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},requestErrorCorrection:async(R,M,D)=>{const $={project_name:R,component_id:M,error_message:D};return await fetch(`${t}/error_correction`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},addImage:async R=>await fetch(`${t}/add_image`,{method:"POST",body:R})}},ly=e=>{const t=e;return{getQueryContent:async i=>await fetch(`${t}/v1/public/sql/content-queries`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({queryId:i,biscuits:[]})}),getVisuals:async(i,a,l,c,d,f,y,m)=>{const v=new URLSearchParams({pageNo:i.toString(),pageSize:a.toString(),scope:l,searchPattern:c,sortBy:d,sortOrder:f,visibility:y,visualType:m}).toString();return await fetch(`${t}/v2/content/visuals?${v}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}};for(var nn=[],Ld=0;Ld<256;++Ld)nn.push((Ld+256).toString(16).slice(1));function tI(e,t=0){return(nn[e[t+0]]+nn[e[t+1]]+nn[e[t+2]]+nn[e[t+3]]+"-"+nn[e[t+4]]+nn[e[t+5]]+"-"+nn[e[t+6]]+nn[e[t+7]]+"-"+nn[e[t+8]]+nn[e[t+9]]+"-"+nn[e[t+10]]+nn[e[t+11]]+nn[e[t+12]]+nn[e[t+13]]+nn[e[t+14]]+nn[e[t+15]]).toLowerCase()}var jl,nI=new Uint8Array(16);function rI(){if(!jl&&(jl=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!jl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return jl(nI)}var oI=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const cy={randomUUID:oI};function Ts(e,t,n){if(cy.randomUUID&&!t&&!e)return cy.randomUUID();e=e||{};var r=e.random||(e.rng||rI)();return r[6]=r[6]&15|64,r[8]=r[8]&63|128,tI(r)}function iI(e){return typeof e=="function"}const sI=e=>{const{wrapAPICall:t}=sy(),n=ay(e);return new Proxy(n,{get:(i,a)=>{const l=i[a];return iI(l)?(...c)=>t(l.apply(i,c)):l}})},Fd=Y.createContext(null);Fd.Consumer;const aI=e=>{const[t,n]=Y.useState({projectName:null,projectURL:null}),[r,i]=Y.useState({API_BASE_URL:null,WS_BASE_URL:null,GW_BASE_URL:null,CORS_PROXY:null}),[a,l]=Y.useState(()=>ly(e.config.GW_BASE_URL)),[c,d]=Y.useState(""),[f,y]=Y.useState(Ts()),m=sI(e.config.API_BASE_URL),v=ay(e.config.API_BASE_URL),w=m||v,x=()=>{y(Ts())};return Y.useEffect(()=>{i(e.config),l(ly(e.config.GW_BASE_URL)),e.metadata&&n(e.metadata)},[e.config]),b.jsx(Fd.Provider,{value:{config:r,projectMetadata:t,setProjectMetadata:n,syncToken:f,setSyncToken:x,selectedComponentId:c,setSelectedComponentId:d,APIHandler:w,gwAPIHandler:a},children:e.children})},lI=e=>b.jsx(eI,{children:b.jsx(aI,{...e})}),Bn=()=>{const e=Y.useContext(Fd);if(e===null)throw new Error("Invalid project context.");return{...e}},cI=()=>{const{APIHandler:e,projectMetadata:t}=Bn(),n=Y.useRef(""),[r,i]=Y.useState(""),a=Y.useMemo(()=>!t.projectName,[t.projectName]),l=Y.useMemo(()=>n.current===r,[r]),c=async()=>{if((await e.allocateSubdomain(t.projectName,r)).status!==200)throw new Error("Failed to allocate subdomain");if(!n.current)return;if((await e.releaseSubdomain(t.projectName,n.current)).status!==200)throw new Error("Failed to release subdomain")};return Y.useEffect(()=>{e.getSubdomains(t.projectName).then(d=>{if(d.status!==200)throw Error("Failed to retrieve subdomains");return d}).then(d=>d.json()).then(d=>{const f=d&&d.pop();if(f){let y=f.subdomain.split(".")[0];n.current=y,i(y)}})},[t.projectName]),b.jsx(b.Fragment,{children:b.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:b.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[b.jsx(Dt,{sx:{flex:3},children:b.jsx(yl,{label:"Subdomain",variant:"outlined",fullWidth:!0,value:r,disabled:a,onChange:d=>i(d.target.value),size:"small"})}),b.jsx(hi,{variant:"outlined",fullWidth:!0,disabled:l,onClick:c,sx:{flex:1},children:"Update"})]})})})},uI=e=>{const t=r=>r.filter(i=>i.tag!=="published"),n=r=>r.toSorted((i,a)=>i.timestamp-a.timestamp);return b.jsx(b.Fragment,{children:b.jsx(Dt,{children:b.jsx(rd,{dense:!0,sx:{width:"100%"},children:e.tags&&n(t(e.tags)).map(r=>b.jsx(um,{onClick:e.onSelect(r),children:b.jsx(hm,{primary:r.tag})},r.tag))})})})},dI=()=>{const{projectMetadata:e,APIHandler:t,config:n}=Bn(),[r,i]=Y.useState([]),[a,l]=Y.useState(""),c=Y.useRef({}),[d,f]=Y.useState({}),[y,m]=Y.useState(""),v=Y.useMemo(()=>!e.projectName,[e.projectName]),w=Y.useMemo(()=>d.tag===c.current.tag,[d]),x=async()=>{const R=await yu(e.projectName,e.projectURL,n.CORS_PROXY);i(R)},_=async()=>{const R=await $w(e.projectName);if((await t.tagCommit(e.projectName,R,a)).status!==200)throw new Error("Error tagging commit.");await x()},k=async()=>{if((await t.publishProject(e.projectName,d.ref)).status!==200)throw new Error("Error releasing project.")},C=async()=>{if((await t.unpublishProject(e.projectName)).status!==200)throw new Error("Error unpublishing project.")},O=R=>()=>{f(R),m(R.tag)},P=async()=>{if((await t.deleteProject(e.projectName)).status!==200)throw new Error("Error deleting project.");location.reload()};return Y.useEffect(()=>{x()},[e.projectName]),b.jsx(b.Fragment,{children:b.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},overflow:"hidden",children:[b.jsx(Dt,{sx:{width:"100%"},children:b.jsx(hi,{variant:"outlined",color:"error",fullWidth:!0,onClick:C,children:"unpublish"})}),b.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[b.jsx(Dt,{sx:{flex:3},children:b.jsx(yl,{label:"Release to Publish",variant:"outlined",fullWidth:!0,value:y||"",disabled:!0,size:"small"})}),b.jsx(hi,{variant:"outlined",fullWidth:!0,disabled:w,onClick:k,sx:{flex:1},children:"Publish"})]}),b.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[b.jsx(Dt,{sx:{flex:3},children:b.jsx(yl,{label:"New Release Name",variant:"outlined",fullWidth:!0,value:a,disabled:v,onChange:R=>l(R.target.value),size:"small"})}),b.jsx(hi,{variant:"outlined",fullWidth:!0,disabled:!a,onClick:_,sx:{flex:1},children:"Create"})]}),b.jsx(Dt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{maxHeight:"300px",padding:"5px",width:"100%",overflow:"auto",background:"DarkGrey",borderRadius:"10px"},children:b.jsx(uI,{tags:r,onSelect:O})}),b.jsx(Dt,{sx:{padding:"50px 0px 0px 0px",width:"100%"},children:b.jsx(hi,{variant:"outlined",color:"error",fullWidth:!0,onClick:()=>P(),disabled:v,children:"Delete Project"})})]})})},fI=()=>b.jsxs(b.Fragment,{children:[b.jsx(cI,{}),b.jsx(bs,{sx:{borderBottomWidth:5}}),b.jsx(dI,{})]}),uy=Cn(b.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),dy=Cn(b.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"),pI=it.div``,hI=it.div`
|
|
179
|
+
`,bs=({isVisible:e})=>e?v.jsx(xk,{children:v.jsx(wk,{})}):null,Nm=X.createContext(null),Fm=()=>{const e=X.useContext(Nm);if(!e)throw new Error("useAPI must be used within an APIProvider");return e},Sk=({children:e})=>{const[t,n]=X.useState(0),o=X.useCallback(async a=>{n(l=>l+1);try{return await a}finally{n(l=>Math.max(0,l-1))}},[]),s=X.useCallback(async(a,l)=>(n(u=>u+1),new Promise((u,d)=>{const h=a(),y=()=>{n(m=>Math.max(0,m-1))};h.addEventListener("load",()=>{if(y(),h.status>=200&&h.status<300)try{const m=l(h);u(m)}catch(m){d(m)}else d(new Error(`Request failed with status ${h.status}`))}),h.addEventListener("error",()=>{y(),d(new Error("Network error occurred"))}),h.addEventListener("abort",()=>{y(),d(new Error("Request cancelled"))})})),[]);return v.jsxs(Nm.Provider,{value:{isLoading:t>0,wrapAPICall:o,wrapXHRCall:s},children:[v.jsx(bs,{isVisible:t>0}),e]})},zm=e=>{const t=e;return{createProject:async(R,$)=>{const B={description:R,component_namespace:$};return await fetch(`${t}/create_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},getProjects:async()=>await fetch(`${t}/fetch_projects`,{method:"GET",headers:{"Content-Type":"application/json"}}),getSubdomains:async R=>await fetch(`${t}/subdomains?project_name=${R}`,{method:"GET",headers:{"Content-Type":"application/json"}}),allocateSubdomain:async(R,$)=>{const B={project_name:R,subdomain:$};return await fetch(`${t}/allocate_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},releaseSubdomain:async(R,$)=>{const B={project_name:R,subdomain:$};return await fetch(`${t}/release_subdomain`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},publishProject:async(R,$)=>{const B={project_name:R,git_ref:$};return await fetch(`${t}/publish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},unpublishProject:async R=>{const $={project_name:R};return await fetch(`${t}/unpublish_project`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},tagCommit:async(R,$,B)=>{const M={project_name:R,commit_hash:$,tag_name:B};return await fetch(`${t}/tag_project_commit`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},getComponentLibrary:async()=>await fetch(`${t}/library_components?namespaces=common,example`,{method:"GET",headers:{"Content-Type":"application/json"}}),addProjectComponent:async(R,$,B,M)=>{const z={project_name:R,component_namespace:$,component_name:B,layout_metadata:M};return await fetch(`${t}/add_project_component`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(z)})},addProjectChart:async(R,$,B)=>{const M={project_name:R,visual_id:$,layout_metadata:B};return await fetch(`${t}/add_project_chart`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},updateProjectComponentLayoutMetadata:async(R,$,B)=>{const M={project_name:R,component_id:$,layout_metadata:B};return await fetch(`${t}/update_project_component_layout_metadata`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},updateProjectComponentSourceCode:async(R,$,B)=>{const M={project_name:R,component_id:$,source_code:B};return await fetch(`${t}/update_project_component_source_code`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},deleteProjectFile:async(R,$)=>{const B={project_name:R,file_path:$};return await fetch(`${t}/delete_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(B)})},resetProjectFile:async(R,$,B,M,z)=>{let V={project_name:R,file_path:$,git_ref:B};return M&&(V.prune=M),z&&(V.extra_metadata=z),await fetch(`${t}/reset_project_file`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(V)})},deleteProject:async R=>{const $={projects:[R]};return await fetch(`${t}/delete_projects`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify($)})},requestErrorCorrection:async(R,$,B)=>{const M={project_name:R,component_id:$,error_message:B};return await fetch(`${t}/error_correction`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(M)})},addImage:async R=>await fetch(`${t}/add_image`,{method:"POST",body:R})}},Wm=e=>{const t=e;return{getQueryContent:async s=>await fetch(`${t}/v1/public/sql/content-queries`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({queryId:s,biscuits:[]})}),getVisuals:async(s,a,l,u,d,h,y,m)=>{const b=new URLSearchParams({pageNo:s.toString(),pageSize:a.toString(),scope:l,searchPattern:u,sortBy:d,sortOrder:h,visibility:y,visualType:m}).toString();return await fetch(`${t}/v2/content/visuals?${b}`,{method:"GET",headers:{"Content-Type":"application/json"}})}}};for(var Qt=[],vd=0;vd<256;++vd)Qt.push((vd+256).toString(16).slice(1));function Ck(e,t=0){return(Qt[e[t+0]]+Qt[e[t+1]]+Qt[e[t+2]]+Qt[e[t+3]]+"-"+Qt[e[t+4]]+Qt[e[t+5]]+"-"+Qt[e[t+6]]+Qt[e[t+7]]+"-"+Qt[e[t+8]]+Qt[e[t+9]]+"-"+Qt[e[t+10]]+Qt[e[t+11]]+Qt[e[t+12]]+Qt[e[t+13]]+Qt[e[t+14]]+Qt[e[t+15]]).toLowerCase()}var _l,_k=new Uint8Array(16);function Ek(){if(!_l&&(_l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!_l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return _l(_k)}var Rk=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto);const Um={randomUUID:Rk};function xs(e,t,n){if(Um.randomUUID&&!t&&!e)return Um.randomUUID();e=e||{};var o=e.random||(e.rng||Ek)();return o[6]=o[6]&15|64,o[8]=o[8]&63|128,Ck(o)}function Ik(e){return typeof e=="function"}const kk=e=>{const{wrapAPICall:t}=Fm(),n=zm(e);return new Proxy(n,{get:(s,a)=>{const l=s[a];return Ik(l)?(...u)=>t(l.apply(s,u)):l}})},bd=X.createContext(null);bd.Consumer;const Tk=e=>{const[t,n]=X.useState({projectName:null,projectURL:null}),[o,s]=X.useState({API_BASE_URL:null,WS_BASE_URL:null,GW_BASE_URL:null,CORS_PROXY:null}),[a,l]=X.useState(()=>Wm(e.config.GW_BASE_URL)),[u,d]=X.useState(""),[h,y]=X.useState(xs()),m=kk(e.config.API_BASE_URL),b=zm(e.config.API_BASE_URL),w=m||b,[S,E]=X.useState(),[P,C]=X.useState(!1),O=()=>{y(xs())},k=(R,$)=>{if(!R)return;S&&S.close();const B=localStorage.getItem("accessToken")||"",M=`${o.WS_BASE_URL}/ws/chat/${R}?token=${B}`,z=new WebSocket(M);z.onopen=()=>{C(!0),$.onopen()},z.onclose=V=>{C(!1),$.onclose(V)},z.onerror=V=>{$.onerror(V)},z.onmessage=V=>{$.onmessage(V)},E(z)};return X.useEffect(()=>(s(e.config),l(Wm(e.config.GW_BASE_URL)),e.metadata&&n(e.metadata),()=>{S&&S.close()}),[e.config]),v.jsx(bd.Provider,{value:{config:o,projectMetadata:t,setProjectMetadata:n,syncToken:h,setSyncToken:O,selectedComponentId:u,setSelectedComponentId:d,APIHandler:w,gwAPIHandler:a,startChatbot:k,chatbotWebsocket:S,chatbotWebsocketConnected:P},children:e.children})},Pk=e=>v.jsx(Sk,{children:v.jsx(Tk,{...e})}),On=()=>{const e=X.useContext(bd);if(e===null)throw new Error("Invalid project context.");return{...e}},Ok=()=>{const{APIHandler:e,projectMetadata:t}=On(),n=X.useRef(""),[o,s]=X.useState(""),a=X.useMemo(()=>!t.projectName,[t.projectName]),l=X.useMemo(()=>n.current===o,[o]),u=async()=>{if((await e.allocateSubdomain(t.projectName,o)).status!==200)throw new Error("Failed to allocate subdomain");if(!n.current)return;if((await e.releaseSubdomain(t.projectName,n.current)).status!==200)throw new Error("Failed to release subdomain")};return X.useEffect(()=>{e.getSubdomains(t.projectName).then(d=>{if(d.status!==200)throw Error("Failed to retrieve subdomains");return d}).then(d=>d.json()).then(d=>{const h=d&&d.pop();if(h){let y=h.subdomain.split(".")[0];n.current=y,s(y)}})},[t.projectName]),v.jsx(v.Fragment,{children:v.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"Subdomain",variant:"outlined",fullWidth:!0,value:o,disabled:a,onChange:d=>s(d.target.value),size:"small"})}),v.jsx(li,{variant:"outlined",fullWidth:!0,disabled:l,onClick:u,sx:{flex:1},children:"Update"})]})})})},Ak=e=>{const t=o=>o.filter(s=>s.tag!=="published"),n=o=>o.toSorted((s,a)=>s.timestamp-a.timestamp);return v.jsx(v.Fragment,{children:v.jsx(Dt,{children:v.jsx(Lu,{dense:!0,sx:{width:"100%"},children:e.tags&&n(t(e.tags)).map(o=>v.jsx(Hg,{onClick:e.onSelect(o),children:v.jsx(Yg,{primary:o.tag})},o.tag))})})})},Mk=()=>{const{projectMetadata:e,APIHandler:t,config:n}=On(),[o,s]=X.useState([]),[a,l]=X.useState(""),u=X.useRef({}),[d,h]=X.useState({}),[y,m]=X.useState(""),b=X.useMemo(()=>!e.projectName,[e.projectName]),w=X.useMemo(()=>d.tag===u.current.tag,[d]),S=async()=>{const R=await qc(e.projectName,e.projectURL,n.CORS_PROXY);s(R)},E=async()=>{const R=await Qx(e.projectName);if((await t.tagCommit(e.projectName,R,a)).status!==200)throw new Error("Error tagging commit.");await S()},P=async()=>{if((await t.publishProject(e.projectName,d.ref)).status!==200)throw new Error("Error releasing project.")},C=async()=>{if((await t.unpublishProject(e.projectName)).status!==200)throw new Error("Error unpublishing project.")},O=R=>()=>{h(R),m(R.tag)},k=async()=>{if((await t.deleteProject(e.projectName)).status!==200)throw new Error("Error deleting project.");location.reload()};return X.useEffect(()=>{S()},[e.projectName]),v.jsx(v.Fragment,{children:v.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},overflow:"hidden",children:[v.jsx(Dt,{sx:{width:"100%"},children:v.jsx(li,{variant:"outlined",color:"error",fullWidth:!0,onClick:C,children:"unpublish"})}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"Release to Publish",variant:"outlined",fullWidth:!0,value:y||"",disabled:!0,size:"small"})}),v.jsx(li,{variant:"outlined",fullWidth:!0,disabled:w,onClick:P,sx:{flex:1},children:"Publish"})]}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{padding:"2px",width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3},children:v.jsx(ol,{label:"New Release Name",variant:"outlined",fullWidth:!0,value:a,disabled:b,onChange:R=>l(R.target.value),size:"small"})}),v.jsx(li,{variant:"outlined",fullWidth:!0,disabled:!a,onClick:E,sx:{flex:1},children:"Create"})]}),v.jsx(Dt,{display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{maxHeight:"300px",padding:"5px",width:"100%",overflow:"auto",background:"DarkGrey",borderRadius:"10px"},children:v.jsx(Ak,{tags:o,onSelect:O})}),v.jsx(Dt,{sx:{padding:"50px 0px 0px 0px",width:"100%"},children:v.jsx(li,{variant:"outlined",color:"error",fullWidth:!0,onClick:()=>k(),disabled:b,children:"Delete Project"})})]})})},$k=()=>v.jsxs(v.Fragment,{children:[v.jsx(Ok,{}),v.jsx(ds,{sx:{borderBottomWidth:5}}),v.jsx(Mk,{})]}),Hm=bn(v.jsx("path",{d:"M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3m3-10H5V5h10z"}),"Save"),Gm=bn(v.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"),Dk=rt.div``,Bk=rt.div`
|
|
180
180
|
.controls {
|
|
181
181
|
position: absolute;
|
|
182
182
|
right: 5px;
|
|
@@ -197,11 +197,11 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
|
-
`,fy={color:"primary.main","&:hover":{color:"secondary.main"}},gI=e=>b.jsxs(b.Fragment,{children:[b.jsx(hI,{children:b.jsxs("div",{className:"controls cancel-drag",children:[b.jsx(un,{size:"large",onClick:e.onSave,children:b.jsx(uy,{fontSize:"medium",sx:fy})}),b.jsx(un,{size:"large",onClick:e.onClose,children:b.jsx(dy,{fontSize:"large",sx:fy})})]})}),b.jsx(pI,{children:b.jsx("p",{children:"Inline Editor!"})})]});var mI={exports:{}};(function(e,t){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,r,i){var a=n("../lib/oop"),l=n("./text_highlight_rules").TextHighlightRules,c=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},c.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};a.inherits(c,l),c.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},c.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},c.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},r.JsDocCommentHighlightRules=c}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,r,i){var a=n("../lib/oop"),l=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,c=n("./text_highlight_rules").TextHighlightRules,d="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",f=function(v){var w={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},x=this.createKeywordMapper(w,"identifier"),_="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",k="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",C="(function)(\\s*)(\\*?)",O={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(w).join("|")+"\\b)"+d+")(\\s*)(\\()"};this.$rules={no_regex:[l.getStartRule("doc-start"),m("no_regex"),O,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(=)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+d+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(:)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+_+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:x,regex:d},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:C+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:d},{regex:"",token:"empty",next:"no_regex"}],start:[l.getStartRule("doc-start"),m("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[m("function_arguments"),{token:"variable.parameter",regex:d},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:k},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!v||!v.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(P,R,M){if(this.next=P=="{"?this.nextState:"",P=="{"&&M.length)M.unshift("start",R);else if(P=="}"&&M.length&&(M.shift(),this.next=M.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return P=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:k},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+d+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!v||v.jsx!=!1)&&y.call(this)),this.embedRules(l,"doc-",[l.getEndRule("no_regex")]),this.normalizeRules()};a.inherits(f,c);function y(){var v=d.replace("\\d","\\d\\-"),w={onMatch:function(_,k,C){var O=_.charAt(1)=="/"?2:1;return O==1?(k!=this.nextState?C.unshift(this.next,this.nextState,0):C.unshift(this.next),C[2]++):O==2&&k==this.nextState&&(C[1]--,(!C[1]||C[1]<0)&&(C.shift(),C.shift())),[{type:"meta.tag.punctuation."+(O==1?"":"end-")+"tag-open.xml",value:_.slice(0,O)},{type:"meta.tag.tag-name.xml",value:_.substr(O)}]},regex:"</?(?:"+v+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(w);var x={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[x,w,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(_,k,C){return k==C[0]&&C.shift(),_.length==2&&(C[0]==this.nextState&&C[1]--,(!C[1]||C[1]<0)&&C.splice(0,2)),this.next=C[0]||"start",[{type:this.token,value:_}]},nextState:"jsx"},x,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:v},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},w],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function m(v){return[{token:"comment",regex:/\/\*/,next:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:v||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[l.getTagRule(),{token:"comment",regex:"$|^",next:v||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}r.JavaScriptHighlightRules=f}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,r,i){var a=n("../range").Range,l=function(){};(function(){this.checkOutdent=function(c,d){return/^\s+$/.test(c)?/^\s*\}/.test(d):!1},this.autoOutdent=function(c,d){var f=c.getLine(d),y=f.match(/^(\s*\})/);if(!y)return 0;var m=y[1].length,v=c.findMatchingBracket({row:d,column:m});if(!v||v.row==d)return 0;var w=this.$getIndent(c.getLine(v.row));c.replace(new a(d,0,d,m-1),w)},this.$getIndent=function(c){return c.match(/^\s*/)[0]}}).call(l.prototype),r.MatchingBraceOutdent=l}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,r,i){var a=n("../../lib/oop"),l=n("../behaviour").Behaviour,c=n("../../token_iterator").TokenIterator;function d(y,m){return y&&y.type.lastIndexOf(m+".xml")>-1}var f=function(){this.add("string_dquotes","insertion",function(y,m,v,w,x){if(x=='"'||x=="'"){var _=x,k=w.doc.getTextRange(v.getSelectionRange());if(k!==""&&k!=="'"&&k!='"'&&v.getWrapBehavioursEnabled())return{text:_+k+_,selection:!1};var C=v.getCursorPosition(),O=w.doc.getLine(C.row),P=O.substring(C.column,C.column+1),R=new c(w,C.row,C.column),M=R.getCurrentToken();if(P==_&&(d(M,"attribute-value")||d(M,"string")))return{text:"",selection:[1,1]};if(M||(M=R.stepBackward()),!M)return;for(;d(M,"tag-whitespace")||d(M,"whitespace");)M=R.stepBackward();var D=!P||P.match(/\s/);if(d(M,"attribute-equals")&&(D||P==">")||d(M,"decl-attribute-equals")&&(D||P=="?"))return{text:_+_,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(y,m,v,w,x){var _=w.doc.getTextRange(x);if(!x.isMultiLine()&&(_=='"'||_=="'")){var k=w.doc.getLine(x.start.row),C=k.substring(x.start.column+1,x.start.column+2);if(C==_)return x.end.column++,x}}),this.add("autoclosing","insertion",function(y,m,v,w,x){if(x==">"){var _=v.getSelectionRange().start,k=new c(w,_.row,_.column),C=k.getCurrentToken()||k.stepBackward();if(!C||!(d(C,"tag-name")||d(C,"tag-whitespace")||d(C,"attribute-name")||d(C,"attribute-equals")||d(C,"attribute-value"))||d(C,"reference.attribute-value"))return;if(d(C,"attribute-value")){var O=k.getCurrentTokenColumn()+C.value.length;if(_.column<O)return;if(_.column==O){var P=k.stepForward();if(P&&d(P,"attribute-value"))return;k.stepBackward()}}if(/^\s*>/.test(w.getLine(_.row).slice(_.column)))return;for(;!d(C,"tag-name");)if(C=k.stepBackward(),C.value=="<"){C=k.stepForward();break}var R=k.getCurrentTokenRow(),M=k.getCurrentTokenColumn();if(d(k.stepBackward(),"end-tag-open"))return;var D=C.value;return R==_.row&&(D=D.substring(0,_.column-M)),this.voidElements&&this.voidElements.hasOwnProperty(D.toLowerCase())?void 0:{text:"></"+D+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(y,m,v,w,x){if(x==`
|
|
201
|
-
`){var
|
|
202
|
-
|
|
203
|
-
`+
|
|
204
|
-
|
|
200
|
+
`,qm={color:"primary.main","&:hover":{color:"secondary.main"}},Lk=e=>v.jsxs(v.Fragment,{children:[v.jsx(Bk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(an,{size:"large",onClick:e.onSave,children:v.jsx(Hm,{fontSize:"medium",sx:qm})}),v.jsx(an,{size:"large",onClick:e.onClose,children:v.jsx(Gm,{fontSize:"large",sx:qm})})]})}),v.jsx(Dk,{children:v.jsx("p",{children:"Inline Editor!"})})]});var jk={exports:{}};(function(e,t){ace.define("ace/mode/jsdoc_comment_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/text_highlight_rules"],function(n,o,s){var a=n("../lib/oop"),l=n("./text_highlight_rules").TextHighlightRules,u=function(){this.$rules={start:[{token:["comment.doc.tag","comment.doc.text","lparen.doc"],regex:"(@(?:param|member|typedef|property|namespace|var|const|callback))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:["rparen.doc","text.doc","variable.parameter.doc","lparen.doc","variable.parameter.doc","rparen.doc"],regex:/(})(\s*)(?:([\w=:\/\.]+)|(?:(\[)([\w=:\/\.\-\'\" ]+)(\])))/,next:"pop"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","lparen.doc"],regex:"(@(?:returns?|yields|type|this|suppress|public|protected|private|package|modifies|implements|external|exception|throws|enum|define|extends))(\\s*)({)",push:[{token:"lparen.doc",regex:"{",push:[{include:"doc-syntax"},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"}]},{token:"rparen.doc",regex:"}|(?=$)",next:"pop"},{include:"doc-syntax"},{defaultToken:"text.doc"}]},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:'(@(?:alias|memberof|instance|module|name|lends|namespace|external|this|template|requires|param|implements|function|extends|typedef|mixes|constructor|var|memberof\\!|event|listens|exports|class|constructs|interface|emits|fires|throws|const|callback|borrows|augments))(\\s+)(\\w[\\w#.:/~"\\-]*)?'},{token:["comment.doc.tag","text.doc","variable.parameter.doc"],regex:"(@method)(\\s+)(\\w[\\w.\\(\\)]*)"},{token:"comment.doc.tag",regex:"@access\\s+(?:private|public|protected)"},{token:"comment.doc.tag",regex:"@kind\\s+(?:class|constant|event|external|file|function|member|mixin|module|namespace|typedef)"},{token:"comment.doc.tag",regex:"@\\w+(?=\\s|$)"},u.getTagRule(),{defaultToken:"comment.doc.body",caseInsensitive:!0}],"doc-syntax":[{token:"operator.doc",regex:/[|:]/},{token:"paren.doc",regex:/[\[\]]/}]},this.normalizeRules()};a.inherits(u,l),u.getTagRule=function(d){return{token:"comment.doc.tag.storage.type",regex:"\\b(?:TODO|FIXME|XXX|HACK)\\b"}},u.getStartRule=function(d){return{token:"comment.doc",regex:/\/\*\*(?!\/)/,next:d}},u.getEndRule=function(d){return{token:"comment.doc",regex:"\\*\\/",next:d}},o.JsDocCommentHighlightRules=u}),ace.define("ace/mode/javascript_highlight_rules",["require","exports","module","ace/lib/oop","ace/mode/jsdoc_comment_highlight_rules","ace/mode/text_highlight_rules"],function(n,o,s){var a=n("../lib/oop"),l=n("./jsdoc_comment_highlight_rules").JsDocCommentHighlightRules,u=n("./text_highlight_rules").TextHighlightRules,d="[a-zA-Z\\$_¡-][a-zA-Z\\d\\$_¡-]*",h=function(b){var w={"variable.language":"Array|Boolean|Date|Function|Iterator|Number|Object|RegExp|String|Proxy|Symbol|Namespace|QName|XML|XMLList|ArrayBuffer|Float32Array|Float64Array|Int16Array|Int32Array|Int8Array|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray|Error|EvalError|InternalError|RangeError|ReferenceError|StopIteration|SyntaxError|TypeError|URIError|decodeURI|decodeURIComponent|encodeURI|encodeURIComponent|eval|isFinite|isNaN|parseFloat|parseInt|JSON|Math|this|arguments|prototype|window|document",keyword:"const|yield|import|get|set|async|await|break|case|catch|continue|default|delete|do|else|finally|for|if|in|of|instanceof|new|return|switch|throw|try|typeof|let|var|while|with|debugger|__parent__|__count__|escape|unescape|with|__proto__|class|enum|extends|super|export|implements|private|public|interface|package|protected|static|constructor","storage.type":"const|let|var|function","constant.language":"null|Infinity|NaN|undefined","support.function":"alert","constant.language.boolean":"true|false"},S=this.createKeywordMapper(w,"identifier"),E="case|do|else|finally|in|instanceof|return|throw|try|typeof|yield|void",P="\\\\(?:x[0-9a-fA-F]{2}|u[0-9a-fA-F]{4}|u{[0-9a-fA-F]{1,6}}|[0-2][0-7]{0,2}|3[0-7][0-7]?|[4-7][0-7]?|.)",C="(function)(\\s*)(\\*?)",O={token:["identifier","text","paren.lparen"],regex:"(\\b(?!"+Object.values(w).join("|")+"\\b)"+d+")(\\s*)(\\()"};this.$rules={no_regex:[l.getStartRule("doc-start"),m("no_regex"),O,{token:"string",regex:"'(?=.)",next:"qstring"},{token:"string",regex:'"(?=.)',next:"qqstring"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:["entity.name.function","text","keyword.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(=)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))("+d+")(\\s*)(\\()",next:"function_arguments"},{token:["entity.name.function","text","punctuation.operator","text","storage.type","text","storage.type","text","paren.lparen"],regex:"("+d+")(\\s*)(:)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:["text","text","storage.type","text","storage.type","text","paren.lparen"],regex:"(:)(\\s*)"+C+"(\\s*)(\\()",next:"function_arguments"},{token:"keyword",regex:`from(?=\\s*('|"))`},{token:"keyword",regex:"(?:"+E+")\\b",next:"start"},{token:"support.constant",regex:/that\b/},{token:["storage.type","punctuation.operator","support.function.firebug"],regex:/(console)(\.)(warn|info|log|error|debug|time|trace|timeEnd|assert)\b/},{token:S,regex:d},{token:"punctuation.operator",regex:/[.](?![.])/,next:"property"},{token:"storage.type",regex:/=>/,next:"start"},{token:"keyword.operator",regex:/--|\+\+|\.{3}|===|==|=|!=|!==|<+=?|>+=?|!|&&|\|\||\?:|[!$%&*+\-~\/^]=?/,next:"start"},{token:"punctuation.operator",regex:/[?:,;.]/,next:"start"},{token:"paren.lparen",regex:/[\[({]/,next:"start"},{token:"paren.rparen",regex:/[\])}]/},{token:"comment",regex:/^#!.*$/}],property:[{token:"text",regex:"\\s+"},{token:"keyword.operator",regex:/=/},{token:["storage.type","text","storage.type","text","paren.lparen"],regex:C+"(\\s*)(\\()",next:"function_arguments"},{token:["storage.type","text","storage.type","text","text","entity.name.function","text","paren.lparen"],regex:"(function)(?:(?:(\\s*)(\\*)(\\s*))|(\\s+))(\\w+)(\\s*)(\\()",next:"function_arguments"},{token:"punctuation.operator",regex:/[.](?![.])/},{token:"support.function",regex:"prototype"},{token:"support.function",regex:/(s(?:h(?:ift|ow(?:Mod(?:elessDialog|alDialog)|Help))|croll(?:X|By(?:Pages|Lines)?|Y|To)?|t(?:op|rike)|i(?:n|zeToContent|debar|gnText)|ort|u(?:p|b(?:str(?:ing)?)?)|pli(?:ce|t)|e(?:nd|t(?:Re(?:sizable|questHeader)|M(?:i(?:nutes|lliseconds)|onth)|Seconds|Ho(?:tKeys|urs)|Year|Cursor|Time(?:out)?|Interval|ZOptions|Date|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Date|FullYear)|FullYear|Active)|arch)|qrt|lice|avePreferences|mall)|h(?:ome|andleEvent)|navigate|c(?:har(?:CodeAt|At)|o(?:s|n(?:cat|textual|firm)|mpile)|eil|lear(?:Timeout|Interval)?|a(?:ptureEvents|ll)|reate(?:StyleSheet|Popup|EventObject))|t(?:o(?:GMTString|S(?:tring|ource)|U(?:TCString|pperCase)|Lo(?:caleString|werCase))|est|a(?:n|int(?:Enabled)?))|i(?:s(?:NaN|Finite)|ndexOf|talics)|d(?:isableExternalCapture|ump|etachEvent)|u(?:n(?:shift|taint|escape|watch)|pdateCommands)|j(?:oin|avaEnabled)|p(?:o(?:p|w)|ush|lugins.refresh|a(?:ddings|rse(?:Int|Float)?)|r(?:int|ompt|eference))|e(?:scape|nableExternalCapture|val|lementFromPoint|x(?:p|ec(?:Script|Command)?))|valueOf|UTC|queryCommand(?:State|Indeterm|Enabled|Value)|f(?:i(?:nd|lter|le(?:ModifiedDate|Size|CreatedDate|UpdatedDate)|xed)|o(?:nt(?:size|color)|rward|rEach)|loor|romCharCode)|watch|l(?:ink|o(?:ad|g)|astIndexOf)|a(?:sin|nchor|cos|t(?:tachEvent|ob|an(?:2)?)|pply|lert|b(?:s|ort))|r(?:ou(?:nd|teEvents)|e(?:size(?:By|To)|calc|turnValue|place|verse|l(?:oad|ease(?:Capture|Events)))|andom)|g(?:o|et(?:ResponseHeader|M(?:i(?:nutes|lliseconds)|onth)|Se(?:conds|lection)|Hours|Year|Time(?:zoneOffset)?|Da(?:y|te)|UTC(?:M(?:i(?:nutes|lliseconds)|onth)|Seconds|Hours|Da(?:y|te)|FullYear)|FullYear|A(?:ttention|llResponseHeaders)))|m(?:in|ove(?:B(?:y|elow)|To(?:Absolute)?|Above)|ergeAttributes|a(?:tch|rgins|x))|b(?:toa|ig|o(?:ld|rderWidths)|link|ack))\b(?=\()/},{token:"support.function.dom",regex:/(s(?:ub(?:stringData|mit)|plitText|e(?:t(?:NamedItem|Attribute(?:Node)?)|lect))|has(?:ChildNodes|Feature)|namedItem|c(?:l(?:ick|o(?:se|neNode))|reate(?:C(?:omment|DATASection|aption)|T(?:Head|extNode|Foot)|DocumentFragment|ProcessingInstruction|E(?:ntityReference|lement)|Attribute))|tabIndex|i(?:nsert(?:Row|Before|Cell|Data)|tem)|open|delete(?:Row|C(?:ell|aption)|T(?:Head|Foot)|Data)|focus|write(?:ln)?|a(?:dd|ppend(?:Child|Data))|re(?:set|place(?:Child|Data)|move(?:NamedItem|Child|Attribute(?:Node)?)?)|get(?:NamedItem|Element(?:sBy(?:Name|TagName|ClassName)|ById)|Attribute(?:Node)?)|blur)\b(?=\()/},{token:"support.constant",regex:/(s(?:ystemLanguage|cr(?:ipts|ollbars|een(?:X|Y|Top|Left))|t(?:yle(?:Sheets)?|atus(?:Text|bar)?)|ibling(?:Below|Above)|ource|uffixes|e(?:curity(?:Policy)?|l(?:ection|f)))|h(?:istory|ost(?:name)?|as(?:h|Focus))|y|X(?:MLDocument|SLDocument)|n(?:ext|ame(?:space(?:s|URI)|Prop))|M(?:IN_VALUE|AX_VALUE)|c(?:haracterSet|o(?:n(?:structor|trollers)|okieEnabled|lorDepth|mp(?:onents|lete))|urrent|puClass|l(?:i(?:p(?:boardData)?|entInformation)|osed|asses)|alle(?:e|r)|rypto)|t(?:o(?:olbar|p)|ext(?:Transform|Indent|Decoration|Align)|ags)|SQRT(?:1_2|2)|i(?:n(?:ner(?:Height|Width)|put)|ds|gnoreCase)|zIndex|o(?:scpu|n(?:readystatechange|Line)|uter(?:Height|Width)|p(?:sProfile|ener)|ffscreenBuffering)|NEGATIVE_INFINITY|d(?:i(?:splay|alog(?:Height|Top|Width|Left|Arguments)|rectories)|e(?:scription|fault(?:Status|Ch(?:ecked|arset)|View)))|u(?:ser(?:Profile|Language|Agent)|n(?:iqueID|defined)|pdateInterval)|_content|p(?:ixelDepth|ort|ersonalbar|kcs11|l(?:ugins|atform)|a(?:thname|dding(?:Right|Bottom|Top|Left)|rent(?:Window|Layer)?|ge(?:X(?:Offset)?|Y(?:Offset)?))|r(?:o(?:to(?:col|type)|duct(?:Sub)?|mpter)|e(?:vious|fix)))|e(?:n(?:coding|abledPlugin)|x(?:ternal|pando)|mbeds)|v(?:isibility|endor(?:Sub)?|Linkcolor)|URLUnencoded|P(?:I|OSITIVE_INFINITY)|f(?:ilename|o(?:nt(?:Size|Family|Weight)|rmName)|rame(?:s|Element)|gColor)|E|whiteSpace|l(?:i(?:stStyleType|n(?:eHeight|kColor))|o(?:ca(?:tion(?:bar)?|lName)|wsrc)|e(?:ngth|ft(?:Context)?)|a(?:st(?:M(?:odified|atch)|Index|Paren)|yer(?:s|X)|nguage))|a(?:pp(?:MinorVersion|Name|Co(?:deName|re)|Version)|vail(?:Height|Top|Width|Left)|ll|r(?:ity|guments)|Linkcolor|bove)|r(?:ight(?:Context)?|e(?:sponse(?:XML|Text)|adyState))|global|x|m(?:imeTypes|ultiline|enubar|argin(?:Right|Bottom|Top|Left))|L(?:N(?:10|2)|OG(?:10E|2E))|b(?:o(?:ttom|rder(?:Width|RightWidth|BottomWidth|Style|Color|TopWidth|LeftWidth))|ufferDepth|elow|ackground(?:Color|Image)))\b/},{token:"identifier",regex:d},{regex:"",token:"empty",next:"no_regex"}],start:[l.getStartRule("doc-start"),m("start"),{token:"string.regexp",regex:"\\/",next:"regex"},{token:"text",regex:"\\s+|^$",next:"start"},{token:"empty",regex:"",next:"no_regex"}],regex:[{token:"regexp.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"string.regexp",regex:"/[sxngimy]*",next:"no_regex"},{token:"invalid",regex:/\{\d+\b,?\d*\}[+*]|[+*$^?][+*]|[$^][?]|\?{3,}/},{token:"constant.language.escape",regex:/\(\?[:=!]|\)|\{\d+\b,?\d*\}|[+*]\?|[()$^+*?.]/},{token:"constant.language.delimiter",regex:/\|/},{token:"constant.language.escape",regex:/\[\^?/,next:"regex_character_class"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp"}],regex_character_class:[{token:"regexp.charclass.keyword.operator",regex:"\\\\(?:u[\\da-fA-F]{4}|x[\\da-fA-F]{2}|.)"},{token:"constant.language.escape",regex:"]",next:"regex"},{token:"constant.language.escape",regex:"-"},{token:"empty",regex:"$",next:"no_regex"},{defaultToken:"string.regexp.charachterclass"}],default_parameter:[{token:"string",regex:"'(?=.)",push:[{token:"string",regex:"'|$",next:"pop"},{include:"qstring"}]},{token:"string",regex:'"(?=.)',push:[{token:"string",regex:'"|$',next:"pop"},{include:"qqstring"}]},{token:"constant.language",regex:"null|Infinity|NaN|undefined"},{token:"constant.numeric",regex:/0(?:[xX][0-9a-fA-F]+|[oO][0-7]+|[bB][01]+)\b/},{token:"constant.numeric",regex:/(?:\d\d*(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+\b)?/},{token:"punctuation.operator",regex:",",next:"function_arguments"},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],function_arguments:[m("function_arguments"),{token:"variable.parameter",regex:d},{token:"punctuation.operator",regex:","},{token:"text",regex:"\\s+"},{token:"punctuation.operator",regex:"$"},{token:"empty",regex:"",next:"no_regex"}],qqstring:[{token:"constant.language.escape",regex:P},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:'"|$',next:"no_regex"},{defaultToken:"string"}],qstring:[{token:"constant.language.escape",regex:P},{token:"string",regex:"\\\\$",consumeLineEnd:!0},{token:"string",regex:"'|$",next:"no_regex"},{defaultToken:"string"}]},(!b||!b.noES6)&&(this.$rules.no_regex.unshift({regex:"[{}]",onMatch:function(k,R,$){if(this.next=k=="{"?this.nextState:"",k=="{"&&$.length)$.unshift("start",R);else if(k=="}"&&$.length&&($.shift(),this.next=$.shift(),this.next.indexOf("string")!=-1||this.next.indexOf("jsx")!=-1))return"paren.quasi.end";return k=="{"?"paren.lparen":"paren.rparen"},nextState:"start"},{token:"string.quasi.start",regex:/`/,push:[{token:"constant.language.escape",regex:P},{token:"paren.quasi.start",regex:/\${/,push:"start"},{token:"string.quasi.end",regex:/`/,next:"pop"},{defaultToken:"string.quasi"}]},{token:["variable.parameter","text"],regex:"("+d+")(\\s*)(?=\\=>)"},{token:"paren.lparen",regex:"(\\()(?=[^\\(]+\\s*=>)",next:"function_arguments"},{token:"variable.language",regex:"(?:(?:(?:Weak)?(?:Set|Map))|Promise)\\b"}),this.$rules.function_arguments.unshift({token:"keyword.operator",regex:"=",next:"default_parameter"},{token:"keyword.operator",regex:"\\.{3}"}),this.$rules.property.unshift({token:"support.function",regex:"(findIndex|repeat|startsWith|endsWith|includes|isSafeInteger|trunc|cbrt|log2|log10|sign|then|catch|finally|resolve|reject|race|any|all|allSettled|keys|entries|isInteger)\\b(?=\\()"},{token:"constant.language",regex:"(?:MAX_SAFE_INTEGER|MIN_SAFE_INTEGER|EPSILON)\\b"}),(!b||b.jsx!=!1)&&y.call(this)),this.embedRules(l,"doc-",[l.getEndRule("no_regex")]),this.normalizeRules()};a.inherits(h,u);function y(){var b=d.replace("\\d","\\d\\-"),w={onMatch:function(E,P,C){var O=E.charAt(1)=="/"?2:1;return O==1?(P!=this.nextState?C.unshift(this.next,this.nextState,0):C.unshift(this.next),C[2]++):O==2&&P==this.nextState&&(C[1]--,(!C[1]||C[1]<0)&&(C.shift(),C.shift())),[{type:"meta.tag.punctuation."+(O==1?"":"end-")+"tag-open.xml",value:E.slice(0,O)},{type:"meta.tag.tag-name.xml",value:E.substr(O)}]},regex:"</?(?:"+b+"|(?=>))",next:"jsxAttributes",nextState:"jsx"};this.$rules.start.unshift(w);var S={regex:"{",token:"paren.quasi.start",push:"start"};this.$rules.jsx=[S,w,{include:"reference"},{defaultToken:"string.xml"}],this.$rules.jsxAttributes=[{token:"meta.tag.punctuation.tag-close.xml",regex:"/?>",onMatch:function(E,P,C){return P==C[0]&&C.shift(),E.length==2&&(C[0]==this.nextState&&C[1]--,(!C[1]||C[1]<0)&&C.splice(0,2)),this.next=C[0]||"start",[{type:this.token,value:E}]},nextState:"jsx"},S,m("jsxAttributes"),{token:"entity.other.attribute-name.xml",regex:b},{token:"keyword.operator.attribute-equals.xml",regex:"="},{token:"text.tag-whitespace.xml",regex:"\\s+"},{token:"string.attribute-value.xml",regex:"'",stateName:"jsx_attr_q",push:[{token:"string.attribute-value.xml",regex:"'",next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},{token:"string.attribute-value.xml",regex:'"',stateName:"jsx_attr_qq",push:[{token:"string.attribute-value.xml",regex:'"',next:"pop"},{include:"reference"},{defaultToken:"string.attribute-value.xml"}]},w],this.$rules.reference=[{token:"constant.language.escape.reference.xml",regex:"(?:&#[0-9]+;)|(?:&#x[0-9a-fA-F]+;)|(?:&[a-zA-Z0-9_:\\.-]+;)"}]}function m(b){return[{token:"comment",regex:/\/\*/,next:[l.getTagRule(),{token:"comment",regex:"\\*\\/",next:b||"pop"},{defaultToken:"comment",caseInsensitive:!0}]},{token:"comment",regex:"\\/\\/",next:[l.getTagRule(),{token:"comment",regex:"$|^",next:b||"pop"},{defaultToken:"comment",caseInsensitive:!0}]}]}o.JavaScriptHighlightRules=h}),ace.define("ace/mode/matching_brace_outdent",["require","exports","module","ace/range"],function(n,o,s){var a=n("../range").Range,l=function(){};(function(){this.checkOutdent=function(u,d){return/^\s+$/.test(u)?/^\s*\}/.test(d):!1},this.autoOutdent=function(u,d){var h=u.getLine(d),y=h.match(/^(\s*\})/);if(!y)return 0;var m=y[1].length,b=u.findMatchingBracket({row:d,column:m});if(!b||b.row==d)return 0;var w=this.$getIndent(u.getLine(b.row));u.replace(new a(d,0,d,m-1),w)},this.$getIndent=function(u){return u.match(/^\s*/)[0]}}).call(l.prototype),o.MatchingBraceOutdent=l}),ace.define("ace/mode/behaviour/xml",["require","exports","module","ace/lib/oop","ace/mode/behaviour","ace/token_iterator"],function(n,o,s){var a=n("../../lib/oop"),l=n("../behaviour").Behaviour,u=n("../../token_iterator").TokenIterator;function d(y,m){return y&&y.type.lastIndexOf(m+".xml")>-1}var h=function(){this.add("string_dquotes","insertion",function(y,m,b,w,S){if(S=='"'||S=="'"){var E=S,P=w.doc.getTextRange(b.getSelectionRange());if(P!==""&&P!=="'"&&P!='"'&&b.getWrapBehavioursEnabled())return{text:E+P+E,selection:!1};var C=b.getCursorPosition(),O=w.doc.getLine(C.row),k=O.substring(C.column,C.column+1),R=new u(w,C.row,C.column),$=R.getCurrentToken();if(k==E&&(d($,"attribute-value")||d($,"string")))return{text:"",selection:[1,1]};if($||($=R.stepBackward()),!$)return;for(;d($,"tag-whitespace")||d($,"whitespace");)$=R.stepBackward();var B=!k||k.match(/\s/);if(d($,"attribute-equals")&&(B||k==">")||d($,"decl-attribute-equals")&&(B||k=="?"))return{text:E+E,selection:[1,1]}}}),this.add("string_dquotes","deletion",function(y,m,b,w,S){var E=w.doc.getTextRange(S);if(!S.isMultiLine()&&(E=='"'||E=="'")){var P=w.doc.getLine(S.start.row),C=P.substring(S.start.column+1,S.start.column+2);if(C==E)return S.end.column++,S}}),this.add("autoclosing","insertion",function(y,m,b,w,S){if(S==">"){var E=b.getSelectionRange().start,P=new u(w,E.row,E.column),C=P.getCurrentToken()||P.stepBackward();if(!C||!(d(C,"tag-name")||d(C,"tag-whitespace")||d(C,"attribute-name")||d(C,"attribute-equals")||d(C,"attribute-value"))||d(C,"reference.attribute-value"))return;if(d(C,"attribute-value")){var O=P.getCurrentTokenColumn()+C.value.length;if(E.column<O)return;if(E.column==O){var k=P.stepForward();if(k&&d(k,"attribute-value"))return;P.stepBackward()}}if(/^\s*>/.test(w.getLine(E.row).slice(E.column)))return;for(;!d(C,"tag-name");)if(C=P.stepBackward(),C.value=="<"){C=P.stepForward();break}var R=P.getCurrentTokenRow(),$=P.getCurrentTokenColumn();if(d(P.stepBackward(),"end-tag-open"))return;var B=C.value;return R==E.row&&(B=B.substring(0,E.column-$)),this.voidElements&&this.voidElements.hasOwnProperty(B.toLowerCase())?void 0:{text:"></"+B+">",selection:[1,1]}}}),this.add("autoindent","insertion",function(y,m,b,w,S){if(S==`
|
|
201
|
+
`){var E=b.getCursorPosition(),P=w.getLine(E.row),C=new u(w,E.row,E.column),O=C.getCurrentToken();if(d(O,"")&&O.type.indexOf("tag-close")!==-1){if(O.value=="/>")return;for(;O&&O.type.indexOf("tag-name")===-1;)O=C.stepBackward();if(!O)return;var k=O.value,R=C.getCurrentTokenRow();if(O=C.stepBackward(),!O||O.type.indexOf("end-tag")!==-1)return;if(this.voidElements&&!this.voidElements[k]||!this.voidElements){var $=w.getTokenAt(E.row,E.column+1),P=w.getLine(R),B=this.$getIndent(P),M=B+w.getTabString();return $&&$.value==="</"?{text:`
|
|
202
|
+
`+M+`
|
|
203
|
+
`+B,selection:[1,M.length,1,M.length]}:{text:`
|
|
204
|
+
`+M}}}}})};a.inherits(h,l),o.XmlBehaviour=h}),ace.define("ace/mode/behaviour/javascript",["require","exports","module","ace/lib/oop","ace/token_iterator","ace/mode/behaviour/cstyle","ace/mode/behaviour/xml"],function(n,o,s){var a=n("../../lib/oop"),l=n("../../token_iterator").TokenIterator,u=n("../behaviour/cstyle").CstyleBehaviour,d=n("../behaviour/xml").XmlBehaviour,h=function(){var y=new d({closeCurlyBraces:!0}).getBehaviours();this.addBehaviours(y),this.inherit(u),this.add("autoclosing-fragment","insertion",function(m,b,w,S,E){if(E==">"){var P=w.getSelectionRange().start,C=new l(S,P.row,P.column),O=C.getCurrentToken()||C.stepBackward();if(!O)return;if(O.value=="<")return{text:"></>",selection:[1,1]}}})};a.inherits(h,u),o.JavaScriptBehaviour=h}),ace.define("ace/mode/folding/xml",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,o,s){var a=n("../../lib/oop"),l=n("../../range").Range,u=n("./fold_mode").FoldMode,d=o.FoldMode=function(m,b){u.call(this),this.voidElements=m||{},this.optionalEndTags=a.mixin({},this.voidElements),b&&a.mixin(this.optionalEndTags,b)};a.inherits(d,u);var h=function(){this.tagName="",this.closing=!1,this.selfClosing=!1,this.start={row:0,column:0},this.end={row:0,column:0}};function y(m,b){return m.type.lastIndexOf(b+".xml")>-1}(function(){this.getFoldWidget=function(m,b,w){var S=this._getFirstTagInLine(m,w);return S?S.closing||!S.tagName&&S.selfClosing?b==="markbeginend"?"end":"":!S.tagName||S.selfClosing||this.voidElements.hasOwnProperty(S.tagName.toLowerCase())||this._findEndTagInLine(m,w,S.tagName,S.end.column)?"":"start":this.getCommentFoldWidget(m,w)},this.getCommentFoldWidget=function(m,b){return/comment/.test(m.getState(b))&&/<!-/.test(m.getLine(b))?"start":""},this._getFirstTagInLine=function(m,b){for(var w=m.getTokens(b),S=new h,E=0;E<w.length;E++){var P=w[E];if(y(P,"tag-open")){if(S.end.column=S.start.column+P.value.length,S.closing=y(P,"end-tag-open"),P=w[++E],!P)return null;if(S.tagName=P.value,P.value===""){if(P=w[++E],!P)return null;S.tagName=P.value}for(S.end.column+=P.value.length,E++;E<w.length;E++)if(P=w[E],S.end.column+=P.value.length,y(P,"tag-close")){S.selfClosing=P.value=="/>";break}return S}else if(y(P,"tag-close"))return S.selfClosing=P.value=="/>",S;S.start.column+=P.value.length}return null},this._findEndTagInLine=function(m,b,w,S){for(var E=m.getTokens(b),P=0,C=0;C<E.length;C++){var O=E[C];if(P+=O.value.length,!(P<S-1)&&y(O,"end-tag-open")&&(O=E[C+1],y(O,"tag-name")&&O.value===""&&(O=E[C+2]),O&&O.value==w))return!0}return!1},this.getFoldWidgetRange=function(m,b,w){var S=this._getFirstTagInLine(m,w);if(!S)return this.getCommentFoldWidget(m,w)&&m.getCommentFoldRange(w,m.getLine(w).length);var E=m.getMatchingTags({row:w,column:0});if(E)return new l(E.openTag.end.row,E.openTag.end.column,E.closeTag.start.row,E.closeTag.start.column)}}).call(d.prototype)}),ace.define("ace/mode/folding/cstyle",["require","exports","module","ace/lib/oop","ace/range","ace/mode/folding/fold_mode"],function(n,o,s){var a=n("../../lib/oop"),l=n("../../range").Range,u=n("./fold_mode").FoldMode,d=o.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end)))};a.inherits(d,u),(function(){this.foldingStartMarker=/([\{\[\(])[^\}\]\)]*$|^\s*(\/\*)/,this.foldingStopMarker=/^[^\[\{\(]*([\}\]\)])|^[\s\*]*(\*\/)/,this.singleLineBlockCommentRe=/^\s*(\/\*).*\*\/\s*$/,this.tripleStarBlockCommentRe=/^\s*(\/\*\*\*).*\*\/\s*$/,this.startRegionRe=/^\s*(\/\*|\/\/)#?region\b/,this._getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,y,m){var b=h.getLine(m);if(this.singleLineBlockCommentRe.test(b)&&!this.startRegionRe.test(b)&&!this.tripleStarBlockCommentRe.test(b))return"";var w=this._getFoldWidgetBase(h,y,m);return!w&&this.startRegionRe.test(b)?"start":w},this.getFoldWidgetRange=function(h,y,m,b){var w=h.getLine(m);if(this.startRegionRe.test(w))return this.getCommentRegionBlock(h,w,m);var P=w.match(this.foldingStartMarker);if(P){var S=P.index;if(P[1])return this.openingBracketBlock(h,P[1],m,S);var E=h.getCommentFoldRange(m,S+P[0].length,1);return E&&!E.isMultiLine()&&(b?E=this.getSectionRange(h,m):y!="all"&&(E=null)),E}if(y!=="markbegin"){var P=w.match(this.foldingStopMarker);if(P){var S=P.index+P[0].length;return P[1]?this.closingBracketBlock(h,P[1],m,S):h.getCommentFoldRange(m,S,-1)}}},this.getSectionRange=function(h,y){var m=h.getLine(y),b=m.search(/\S/),w=y,S=m.length;y=y+1;for(var E=y,P=h.getLength();++y<P;){m=h.getLine(y);var C=m.search(/\S/);if(C!==-1){if(b>C)break;var O=this.getFoldWidgetRange(h,"all",y);if(O){if(O.start.row<=w)break;if(O.isMultiLine())y=O.end.row;else if(b==C)break}E=y}}return new l(w,S,E,h.getLine(E).length)},this.getCommentRegionBlock=function(h,y,m){for(var b=y.search(/\s*$/),w=h.getLength(),S=m,E=/^\s*(?:\/\*|\/\/|--)#?(end)?region\b/,P=1;++m<w;){y=h.getLine(m);var C=E.exec(y);if(C&&(C[1]?P--:P++,!P))break}var O=m;if(O>S)return new l(S,b,O,y.length)}}).call(d.prototype)}),ace.define("ace/mode/folding/javascript",["require","exports","module","ace/lib/oop","ace/mode/folding/xml","ace/mode/folding/cstyle"],function(n,o,s){var a=n("../../lib/oop"),l=n("./xml").FoldMode,u=n("./cstyle").FoldMode,d=o.FoldMode=function(h){h&&(this.foldingStartMarker=new RegExp(this.foldingStartMarker.source.replace(/\|[^|]*?$/,"|"+h.start)),this.foldingStopMarker=new RegExp(this.foldingStopMarker.source.replace(/\|[^|]*?$/,"|"+h.end))),this.xmlFoldMode=new l};a.inherits(d,u),(function(){this.getFoldWidgetRangeBase=this.getFoldWidgetRange,this.getFoldWidgetBase=this.getFoldWidget,this.getFoldWidget=function(h,y,m){var b=this.getFoldWidgetBase(h,y,m);return b||this.xmlFoldMode.getFoldWidget(h,y,m)},this.getFoldWidgetRange=function(h,y,m,b){var w=this.getFoldWidgetRangeBase(h,y,m,b);return w||this.xmlFoldMode.getFoldWidgetRange(h,y,m)}}).call(d.prototype)}),ace.define("ace/mode/javascript",["require","exports","module","ace/lib/oop","ace/mode/text","ace/mode/javascript_highlight_rules","ace/mode/matching_brace_outdent","ace/worker/worker_client","ace/mode/behaviour/javascript","ace/mode/folding/javascript"],function(n,o,s){var a=n("../lib/oop"),l=n("./text").Mode,u=n("./javascript_highlight_rules").JavaScriptHighlightRules,d=n("./matching_brace_outdent").MatchingBraceOutdent,h=n("../worker/worker_client").WorkerClient,y=n("./behaviour/javascript").JavaScriptBehaviour,m=n("./folding/javascript").FoldMode,b=function(){this.HighlightRules=u,this.$outdent=new d,this.$behaviour=new y,this.foldingRules=new m};a.inherits(b,l),(function(){this.lineCommentStart="//",this.blockComment={start:"/*",end:"*/"},this.$quotes={'"':'"',"'":"'","`":"`"},this.$pairQuotesAfter={"`":/\w/},this.getNextLineIndent=function(w,S,E){var P=this.$getIndent(S),C=this.getTokenizer().getLineTokens(S,w),O=C.tokens,k=C.state;if(O.length&&O[O.length-1].type=="comment")return P;if(w=="start"||w=="no_regex"){var R=S.match(/^.*(?:\bcase\b.*:|[\{\(\[])\s*$/);R&&(P+=E)}else if(w=="doc-start"&&(k=="start"||k=="no_regex"))return"";return P},this.checkOutdent=function(w,S,E){return this.$outdent.checkOutdent(S,E)},this.autoOutdent=function(w,S,E){this.$outdent.autoOutdent(S,E)},this.createWorker=function(w){var S=new h(["ace"],"ace/mode/javascript_worker","JavaScriptWorker");return S.attachToDocument(w.getDocument()),S.on("annotate",function(E){w.setAnnotations(E.data)}),S.on("terminate",function(){w.clearAnnotations()}),S},this.$id="ace/mode/javascript",this.snippetFileId="ace/snippets/javascript"}).call(b.prototype),o.Mode=b}),function(){ace.require(["ace/mode/javascript"],function(n){e&&(e.exports=n)})}()})(jk);var Nk={exports:{}};(function(e,t){ace.define("ace/theme/monokai-css",["require","exports","module"],function(n,o,s){s.exports=`.ace-monokai .ace_gutter {
|
|
205
205
|
background: #2F3129;
|
|
206
206
|
color: #8F908A
|
|
207
207
|
}
|
|
@@ -326,12 +326,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
326
326
|
.ace-monokai .ace_indent-guide-active {
|
|
327
327
|
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAACCAYAAACZgbYnAAAAEklEQVQIW2PQ1dX9zzBz5sz/ABCcBFFentLlAAAAAElFTkSuQmCC) right repeat-y;
|
|
328
328
|
}
|
|
329
|
-
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,
|
|
329
|
+
`}),ace.define("ace/theme/monokai",["require","exports","module","ace/theme/monokai-css","ace/lib/dom"],function(n,o,s){o.isDark=!0,o.cssClass="ace-monokai",o.cssText=n("./monokai-css");var a=n("../lib/dom");a.importCssString(o.cssText,o.cssClass,!1)}),function(){ace.require(["ace/theme/monokai"],function(n){e&&(e.exports=n)})}()})(Nk);const Fk=rt.div`
|
|
330
330
|
display: flex;
|
|
331
331
|
flex-direction: row;
|
|
332
332
|
height: 100%;
|
|
333
333
|
width: 100%;
|
|
334
|
-
`,
|
|
334
|
+
`,zk=rt.div`
|
|
335
335
|
.controls {
|
|
336
336
|
position: absolute;
|
|
337
337
|
right: 5px;
|
|
@@ -352,7 +352,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
352
352
|
}
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
`,
|
|
355
|
+
`,Vm={color:"primary.main","&:hover":{color:"secondary.main"}},Ym=e=>{const[t,n]=X.useState(e.source);return v.jsxs(v.Fragment,{children:[v.jsx(zk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(an,{size:"large",onClick:()=>e.onSave(t),children:v.jsx(Hm,{fontSize:"medium",sx:Vm})}),v.jsx(an,{size:"large",onClick:e.onClose,children:v.jsx(Gm,{fontSize:"large",sx:Vm})})]})}),v.jsx(Fk,{children:v.jsx(Db,{mode:"javascript",theme:"monokai",name:"codeEditor",value:t,onChange:o=>n(o),fontSize:14,showPrintMargin:!0,showGutter:!0,highlightActiveLine:!0,height:"100%",width:"100%",setOptions:{enableBasicAutocompletion:!0,enableLiveAutocompletion:!0,enableSnippets:!0,showLineNumbers:!0,tabSize:2,showPrintMargin:!1}})})]})},Xm=bn(v.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"}),"CodeOutlined"),Km=bn(v.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM8 9h8v10H8zm7.5-5-1-1h-5l-1 1H5v2h14V4z"}),"DeleteOutline"),Wk=bn(v.jsx("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy"),Uk=bn(v.jsx("path",{d:"m13.7826 15.1719 2.1213-2.1213 5.9963 5.9962-2.1213 2.1213zM17.5 10c1.93 0 3.5-1.57 3.5-3.5 0-.58-.16-1.12-.41-1.6l-2.7 2.7-1.49-1.49 2.7-2.7c-.48-.25-1.02-.41-1.6-.41C15.57 3 14 4.57 14 6.5c0 .41.08.8.21 1.16l-1.85 1.85-1.78-1.78.71-.71-1.41-1.41L12 3.49c-1.17-1.17-3.07-1.17-4.24 0L4.22 7.03l1.41 1.41H2.81l-.71.71 3.54 3.54.71-.71V9.15l1.41 1.41.71-.71 1.78 1.78-7.41 7.41 2.12 2.12L16.34 9.79c.36.13.75.21 1.16.21"}),"Construction"),Jm=bn(v.jsx("path",{d:"M12.5 8c-2.65 0-5.05.99-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8"}),"UndoOutlined"),Zm=bn(v.jsx("path",{d:"M18.4 10.6C16.55 8.99 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16c1.05-3.19 4.05-5.5 7.6-5.5 1.95 0 3.73.72 5.12 1.88L13 16h9V7z"}),"RedoOutlined"),Hk=rt.div`
|
|
356
356
|
.controls {
|
|
357
357
|
position: absolute;
|
|
358
358
|
right: 5px;
|
|
@@ -373,7 +373,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
373
373
|
}
|
|
374
374
|
}
|
|
375
375
|
}
|
|
376
|
-
`,
|
|
376
|
+
`,ws={color:"primary.main","&:hover":{color:"secondary.main"}},Gk={color:"#FFD700",backgroundColor:"black","&:hover":{color:"#FFB700"}},qk=async e=>{await navigator.clipboard.writeText(e)},xd=e=>{const{projectMetadata:t,APIHandler:n,setSyncToken:o}=On(),s=async()=>{if((await n.requestErrorCorrection(t.projectName,e.componentId,e.message)).status!==200)throw new Error("Error requesting error correction.");o()};return v.jsxs(v.Fragment,{children:[v.jsx(Hk,{children:v.jsxs("div",{className:"controls cancel-drag",children:[v.jsx(an,{size:"large",onClick:()=>s(),children:v.jsx(Uk,{fontSize:"medium",sx:Gk})}),v.jsx(an,{size:"large",onClick:e.onUndo,children:v.jsx(Jm,{fontSize:"medium",sx:ws})}),v.jsx(an,{size:"large",onClick:e.onRedo,children:v.jsx(Zm,{fontSize:"medium",sx:ws})}),v.jsx(an,{size:"large",onClick:()=>qk(e.message),children:v.jsx(Wk,{fontSize:"medium",sx:ws})}),v.jsx(an,{size:"large",onClick:e.onCodeEdit,children:v.jsx(Xm,{fontSize:"medium",sx:ws})}),v.jsx(an,{onClick:e.onDelete,size:"large",children:v.jsx(Km,{fontSize:"medium",sx:ws})})]})}),v.jsxs("div",{style:{color:"red",backgroundColor:"#ffecec",padding:"10px",borderRadius:"5px",border:"1px solid #ffb3b3",fontSize:"14px",fontFamily:"Arial, sans-serif",marginBottom:"10px",width:"100%",height:"100%",display:"flex",flexDirection:"column",overflow:"hidden"},children:[v.jsx("strong",{style:{marginBottom:"10px"},children:"Error:"}),v.jsx("div",{style:{flex:1,overflowY:"auto",whiteSpace:"pre-wrap"},children:e.message})]})]})},Vk=rt.div`
|
|
377
377
|
position: fixed;
|
|
378
378
|
top: 0;
|
|
379
379
|
left: 0;
|
|
@@ -384,7 +384,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
384
384
|
justify-content: center;
|
|
385
385
|
align-items: center;
|
|
386
386
|
z-index: 1000;
|
|
387
|
-
`,
|
|
387
|
+
`,Yk=rt.dialog`
|
|
388
388
|
background-color: white;
|
|
389
389
|
padding: 20px;
|
|
390
390
|
border-radius: 8px;
|
|
@@ -416,12 +416,12 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
416
416
|
margin: 0;
|
|
417
417
|
line-height: 1.4;
|
|
418
418
|
}
|
|
419
|
-
`,
|
|
419
|
+
`,Xk=rt.div`
|
|
420
420
|
display: flex;
|
|
421
421
|
gap: 10px;
|
|
422
422
|
justify-content: center;
|
|
423
423
|
margin-top: 10px;
|
|
424
|
-
`,
|
|
424
|
+
`,Qm=rt.button`
|
|
425
425
|
padding: 8px 16px;
|
|
426
426
|
border: none;
|
|
427
427
|
border-radius: 4px;
|
|
@@ -448,7 +448,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
448
448
|
${e=>e.variant==="primary"?"#cc0aac":"#5000bf"};
|
|
449
449
|
outline-offset: 2px;
|
|
450
450
|
}
|
|
451
|
-
`;class
|
|
451
|
+
`;class Kk extends X.Component{constructor(n){super(n);Ar(this,"dialogRef");Ar(this,"retryButtonRef");Ar(this,"lastFocusedElement");Ar(this,"handleRetry",()=>{this.setState({hasError:!1,error:null})});Ar(this,"handleKeyDown",n=>{n.key==="Escape"&&this.props.onClose()});this.state={hasError:!1,error:null},this.dialogRef=X.createRef(),this.retryButtonRef=X.createRef(),this.lastFocusedElement=null}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,o){console.error("ImageGallery Error:",n),console.error("Error Info:",o)}componentDidUpdate(n,o){var s,a;!o.hasError&&this.state.hasError?(this.lastFocusedElement=document.activeElement,(s=this.retryButtonRef.current)==null||s.focus()):o.hasError&&!this.state.hasError&&((a=this.lastFocusedElement)==null||a.focus())}componentWillUnmount(){var n;this.state.hasError&&((n=this.lastFocusedElement)==null||n.focus())}render(){var n;return this.state.hasError?v.jsx(Vk,{role:"presentation",children:v.jsxs(Yk,{ref:this.dialogRef,role:"dialog","aria-labelledby":"error-title","aria-describedby":"error-description",onKeyDown:this.handleKeyDown,"aria-modal":"true",children:[v.jsx("h2",{id:"error-title",children:"Something went wrong"}),v.jsxs("div",{id:"error-description",children:[v.jsx("p",{children:((n=this.state.error)==null?void 0:n.message)||"An error occurred while displaying the image gallery."}),v.jsx("p",{children:"You can try again or close the gallery."})]}),v.jsxs(Xk,{children:[v.jsx(Qm,{ref:this.retryButtonRef,variant:"primary",onClick:this.handleRetry,"aria-label":"Try loading the gallery again",children:"Try Again"}),v.jsx(Qm,{onClick:this.props.onClose,"aria-label":"Close gallery and return to chat",children:"Close Gallery"})]})]})}):v.jsx(v.Fragment,{children:this.props.children})}}const Ss=["jpg","jpeg","png","gif","webp"],wd={jpg:"image/jpeg",jpeg:"image/jpeg",png:"image/png",gif:"image/gif",webp:"image/webp"},e0=5*1024*1024,Sd=async(e,t,n)=>{if(e)try{n({status:"loading"});const o=`${window.miDir}/${t}/src/assets/images`;let s;try{s=await Wp(o)}catch{n({status:"empty"});return}const a=s.filter(d=>{var y;const h=((y=d.split(".").pop())==null?void 0:y.toLowerCase())||"";return Ss.includes(h)}),u=(await Promise.all(a.map(async d=>{var y;const h=`${o}/${d}`;try{const m=await window.pfs.readFile(h),b=Buffer.from(m).toString("base64"),w=((y=d.split(".").pop())==null?void 0:y.toLowerCase())||"",S=wd[w]||"image/jpeg";return{name:d,path:`./src/assets/images/${d}`,base64:`data:${S};base64,${b}`}}catch(m){return console.error(`Error loading image ${d}:`,m),null}}))).filter(d=>d!==null);u.length===0?n({status:"empty"}):n({status:"loaded",images:u})}catch(o){console.error("Error loading images:",o),n({status:"error",message:"Failed to load images. Please try again."})}},t0=e=>{var n;return((n=(e instanceof File?e.name:e).split(".").pop())==null?void 0:n.toLowerCase())||""},n0=e=>Ss.includes(e),Jk=e=>{const t=t0(e);if(!n0(t))return!1;const n=wd[t];return e.type===n},Zk=e=>{const n=["Bytes","KB","MB","GB"],o=Math.floor(Math.log(e)/Math.log(1024));return`${parseFloat((e/Math.pow(1024,o)).toFixed(2))} ${n[o]}`},Qk=e=>{if(!e)return{isValid:!1,error:"No file selected"};if(e.size===0)return{isValid:!1,error:"File is empty"};if(e.size>e0)return{isValid:!1,error:`File size exceeds the ${Zk(e0)} limit`};const t=t0(e);return n0(t)?Jk(e)?{isValid:!0}:{isValid:!1,error:"Invalid file type. File extension does not match its content"}:{isValid:!1,error:`Unsupported file type. Supported types: ${Ss.join(", ").toUpperCase()}`}},eT=(e,t)=>{const n=new FormData;return n.append("project_name",e),n.append("upload_file",t),n},tT=()=>{const{wrapXHRCall:e}=Fm();return X.useCallback((t,n,o)=>e(()=>{const s=new XMLHttpRequest;s.upload.addEventListener("progress",l=>{if(l.lengthComputable){const u=Math.round(l.loaded*100/l.total);o({percentage:u,status:`Uploading... ${u}%`})}}),s.open("POST",`${t}/add_image`);const a=localStorage.getItem("accessToken");return a?s.setRequestHeader("Authorization",`Bearer ${a}`):console.warn("No access token found in localStorage."),s.send(n),s},s=>{try{return JSON.parse(s.responseText)}catch{throw new Error("Invalid response format")}}),[e])},nT=rt.div`
|
|
452
452
|
position: fixed;
|
|
453
453
|
top: 0;
|
|
454
454
|
left: 0;
|
|
@@ -460,7 +460,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
460
460
|
align-items: center;
|
|
461
461
|
z-index: 1000;
|
|
462
462
|
backdrop-filter: blur(2px);
|
|
463
|
-
`,
|
|
463
|
+
`,rT=rt.dialog`
|
|
464
464
|
background-color: white;
|
|
465
465
|
padding: 20px;
|
|
466
466
|
border-radius: 8px;
|
|
@@ -484,7 +484,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
484
484
|
outline: 2px solid #5000bf;
|
|
485
485
|
outline-offset: 2px;
|
|
486
486
|
}
|
|
487
|
-
`,
|
|
487
|
+
`,oT=rt.button`
|
|
488
488
|
position: absolute;
|
|
489
489
|
top: 10px;
|
|
490
490
|
right: 10px;
|
|
@@ -503,7 +503,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
503
503
|
outline: 2px solid #5000bf;
|
|
504
504
|
outline-offset: 2px;
|
|
505
505
|
}
|
|
506
|
-
`,
|
|
506
|
+
`,Cd=rt.div`
|
|
507
507
|
display: grid;
|
|
508
508
|
grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
|
|
509
509
|
gap: 20px;
|
|
@@ -516,7 +516,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
516
516
|
display: flex;
|
|
517
517
|
justify-content: center;
|
|
518
518
|
}
|
|
519
|
-
`,
|
|
519
|
+
`,_d=rt.button`
|
|
520
520
|
border: 1px solid #ccc;
|
|
521
521
|
border-radius: 4px;
|
|
522
522
|
padding: 10px;
|
|
@@ -567,7 +567,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
567
567
|
white-space: nowrap;
|
|
568
568
|
border: 0;
|
|
569
569
|
}
|
|
570
|
-
`,
|
|
570
|
+
`,Cs=rt.div`
|
|
571
571
|
text-align: center;
|
|
572
572
|
padding: 20px;
|
|
573
573
|
color: #666;
|
|
@@ -582,7 +582,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
582
582
|
max-width: 400px;
|
|
583
583
|
line-height: 1.4;
|
|
584
584
|
}
|
|
585
|
-
`;
|
|
585
|
+
`;rt.button`
|
|
586
586
|
background: #5000bf;
|
|
587
587
|
color: white;
|
|
588
588
|
border: none;
|
|
@@ -599,7 +599,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
599
599
|
outline: 2px solid #cc0aac;
|
|
600
600
|
outline-offset: 2px;
|
|
601
601
|
}
|
|
602
|
-
`;const
|
|
602
|
+
`;const iT=rt.div`
|
|
603
603
|
border: 2px dashed
|
|
604
604
|
${e=>e.isError?"#ff4444":e.isDragActive?"#5000bf":"#ccc"};
|
|
605
605
|
border-radius: 8px;
|
|
@@ -618,23 +618,23 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
618
618
|
input[type="file"] {
|
|
619
619
|
display: none;
|
|
620
620
|
}
|
|
621
|
-
`,
|
|
621
|
+
`,sT=bk`
|
|
622
622
|
0% { transform: rotate(0deg); }
|
|
623
623
|
100% { transform: rotate(360deg); }
|
|
624
|
-
`,
|
|
624
|
+
`,aT=rt.div`
|
|
625
625
|
display: inline-block;
|
|
626
626
|
width: 20px;
|
|
627
627
|
height: 20px;
|
|
628
628
|
border: 2px solid rgba(255, 255, 255, 0.3);
|
|
629
629
|
border-radius: 50%;
|
|
630
630
|
border-top-color: #fff;
|
|
631
|
-
animation: ${
|
|
631
|
+
animation: ${sT} 1s ease-in-out infinite;
|
|
632
632
|
margin-right: 8px;
|
|
633
|
-
`,
|
|
633
|
+
`,lT=rt.p`
|
|
634
634
|
color: ${e=>e.isError?"#ff4444":"#666"};
|
|
635
635
|
margin: 5px 0;
|
|
636
636
|
font-size: 0.9em;
|
|
637
|
-
`,
|
|
637
|
+
`,cT=rt.div`
|
|
638
638
|
font-size: 0.9em;
|
|
639
639
|
color: #666;
|
|
640
640
|
margin: 10px 0;
|
|
@@ -648,10 +648,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
648
648
|
li {
|
|
649
649
|
margin: 3px 0;
|
|
650
650
|
}
|
|
651
|
-
`,
|
|
651
|
+
`,uT=rt.div`
|
|
652
652
|
width: 100%;
|
|
653
653
|
margin: 10px 0;
|
|
654
|
-
`,
|
|
654
|
+
`,dT=rt.div`
|
|
655
655
|
width: 100%;
|
|
656
656
|
height: 4px;
|
|
657
657
|
background-color: #eee;
|
|
@@ -666,13 +666,134 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
666
666
|
background-color: #5000bf;
|
|
667
667
|
transition: width 0.3s ease;
|
|
668
668
|
}
|
|
669
|
-
`,
|
|
670
|
-
* @
|
|
671
|
-
*
|
|
672
|
-
*
|
|
673
|
-
*
|
|
674
|
-
*
|
|
675
|
-
*/function ZI(e,t){return ka(e,t)}function QI(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Ty=[];function Iy(e){return Ty[0]=e,JI(Ty)}function Oo(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}function ky(e){if(L.isValidElement(e)||!Oo(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=ky(e[n])}),t}function Fl(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return Oo(e)&&Oo(t)&&Object.keys(t).forEach(i=>{L.isValidElement(t[i])?r[i]=t[i]:Oo(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Oo(e[i])?r[i]=Fl(e[i],t[i],n):n.clone?r[i]=Oo(t[i])?ky(t[i]):t[i]:r[i]=t[i]}),r}const ek=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>({...n,[r.key]:r.val}),{})};function tk(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...i}=e,a=ek(t),l=Object.keys(a);function c(v){return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n})`}function d(v){return`@media (max-width:${(typeof t[v]=="number"?t[v]:v)-r/100}${n})`}function f(v,w){const x=l.indexOf(w);return`@media (min-width:${typeof t[v]=="number"?t[v]:v}${n}) and (max-width:${(x!==-1&&typeof t[l[x]]=="number"?t[l[x]]:w)-r/100}${n})`}function y(v){return l.indexOf(v)+1<l.length?f(v,l[l.indexOf(v)+1]):c(v)}function m(v){const w=l.indexOf(v);return w===0?c(l[1]):w===l.length-1?d(l[w]):f(v,l[l.indexOf(v)+1]).replace("@media","@media not all and")}return{keys:l,values:a,up:c,down:d,between:f,only:y,not:m,unit:n,...i}}function nk(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,i)=>{var l,c;const a=/min-width:\s*([0-9.]+)/;return+(((l=r.match(a))==null?void 0:l[1])||0)-+(((c=i.match(a))==null?void 0:c[1])||0)});return n.length?n.reduce((r,i)=>{const a=t[i];return delete r[i],r[i]=a,r},{...t}):t}function rk(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function ok(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,i]=n,a=Number.isNaN(+r)?r||0:+r;return e.containerQueries(i).up(a)}function ik(e){const t=(a,l)=>a.replace("@media",l?`@container ${l}`:"@container");function n(a,l){a.up=(...c)=>t(e.breakpoints.up(...c),l),a.down=(...c)=>t(e.breakpoints.down(...c),l),a.between=(...c)=>t(e.breakpoints.between(...c),l),a.only=(...c)=>t(e.breakpoints.only(...c),l),a.not=(...c)=>{const d=t(e.breakpoints.not(...c),l);return d.includes("not all and")?d.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):d}}const r={},i=a=>(n(r,a),r);return n(i),{...e,containerQueries:i}}const sk={borderRadius:4};function As(e,t){return t?Fl(e,t,{clone:!1}):e}const Nl={xs:0,sm:600,md:900,lg:1200,xl:1536},Oy={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Nl[e]}px)`},ak={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Nl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Hr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||Oy;return t.reduce((l,c,d)=>(l[a.up(a.keys[d])]=n(t[d]),l),{})}if(typeof t=="object"){const a=r.breakpoints||Oy;return Object.keys(t).reduce((l,c)=>{if(rk(a.keys,c)){const d=ok(r.containerQueries?r:ak,c);d&&(l[d]=n(t[c],c))}else if(Object.keys(a.values||Nl).includes(c)){const d=a.up(c);l[d]=n(t[c],c)}else{const d=c;l[d]=t[d]}return l},{})}return n(t)}function lk(e={}){var n;return((n=e.keys)==null?void 0:n.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function ck(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Ay(e){if(typeof e!="string")throw new Error(GI(7));return e.charAt(0).toUpperCase()+e.slice(1)}function zl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function Wl(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=zl(e,n)||r,t&&(i=t(i,r,e)),i}function Ut(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=l=>{if(l[t]==null)return null;const c=l[t],d=l.theme,f=zl(d,r)||{};return Hr(l,c,m=>{let v=Wl(f,i,m);return m===v&&typeof m=="string"&&(v=Wl(f,i,`${t}${m==="default"?"":Ay(m)}`,m)),n===!1?v:{[n]:v}})};return a.propTypes={},a.filterProps=[t],a}function uk(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const dk={m:"margin",p:"padding"},fk={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},$y={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},pk=uk(e=>{if(e.length>2)if($y[e])e=$y[e];else return[e];const[t,n]=e.split(""),r=dk[t],i=fk[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),qd=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],Vd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...qd,...Vd];function $s(e,t,n,r){const i=zl(e,t,!0)??n;return typeof i=="number"||typeof i=="string"?a=>typeof a=="string"?a:typeof i=="string"?`calc(${a} * ${i})`:i*a:Array.isArray(i)?a=>{if(typeof a=="string")return a;const l=Math.abs(a),c=i[l];return a>=0?c:typeof c=="number"?-c:`-${c}`}:typeof i=="function"?i:()=>{}}function My(e){return $s(e,"spacing",8)}function Ms(e,t){return typeof t=="string"||t==null?t:e(t)}function hk(e,t){return n=>e.reduce((r,i)=>(r[i]=Ms(t,n),r),{})}function gk(e,t,n,r){if(!t.includes(n))return null;const i=pk(n),a=hk(i,r),l=e[n];return Hr(e,l,a)}function By(e,t){const n=My(e.theme);return Object.keys(e).map(r=>gk(e,t,r,n)).reduce(As,{})}function jt(e){return By(e,qd)}jt.propTypes={},jt.filterProps=qd;function Lt(e){return By(e,Vd)}Lt.propTypes={},Lt.filterProps=Vd;function mk(e=8,t=My({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(a=>{const l=t(a);return typeof l=="number"?`${l}px`:l}).join(" ");return n.mui=!0,n}function Ul(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?As(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Qn(e){return typeof e!="number"?e:`${e}px solid`}function er(e,t){return Ut({prop:e,themeKey:"borders",transform:t})}const yk=er("border",Qn),vk=er("borderTop",Qn),bk=er("borderRight",Qn),xk=er("borderBottom",Qn),wk=er("borderLeft",Qn),Sk=er("borderColor"),Ck=er("borderTopColor"),_k=er("borderRightColor"),Ek=er("borderBottomColor"),Rk=er("borderLeftColor"),Pk=er("outline",Qn),Tk=er("outlineColor"),Hl=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=$s(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Ms(t,r)});return Hr(e,e.borderRadius,n)}return null};Hl.propTypes={},Hl.filterProps=["borderRadius"],Ul(yk,vk,bk,xk,wk,Sk,Ck,_k,Ek,Rk,Hl,Pk,Tk);const Gl=e=>{if(e.gap!==void 0&&e.gap!==null){const t=$s(e.theme,"spacing",8),n=r=>({gap:Ms(t,r)});return Hr(e,e.gap,n)}return null};Gl.propTypes={},Gl.filterProps=["gap"];const ql=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=$s(e.theme,"spacing",8),n=r=>({columnGap:Ms(t,r)});return Hr(e,e.columnGap,n)}return null};ql.propTypes={},ql.filterProps=["columnGap"];const Vl=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=$s(e.theme,"spacing",8),n=r=>({rowGap:Ms(t,r)});return Hr(e,e.rowGap,n)}return null};Vl.propTypes={},Vl.filterProps=["rowGap"];const Ik=Ut({prop:"gridColumn"}),kk=Ut({prop:"gridRow"}),Ok=Ut({prop:"gridAutoFlow"}),Ak=Ut({prop:"gridAutoColumns"}),$k=Ut({prop:"gridAutoRows"}),Mk=Ut({prop:"gridTemplateColumns"}),Bk=Ut({prop:"gridTemplateRows"}),Dk=Ut({prop:"gridTemplateAreas"}),jk=Ut({prop:"gridArea"});Ul(Gl,ql,Vl,Ik,kk,Ok,Ak,$k,Mk,Bk,Dk,jk);function _i(e,t){return t==="grey"?t:e}const Lk=Ut({prop:"color",themeKey:"palette",transform:_i}),Fk=Ut({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:_i}),Nk=Ut({prop:"backgroundColor",themeKey:"palette",transform:_i});Ul(Lk,Fk,Nk);function Dn(e){return e<=1&&e!==0?`${e*100}%`:e}const zk=Ut({prop:"width",transform:Dn}),Kd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var i,a,l,c,d;const r=((l=(a=(i=e.theme)==null?void 0:i.breakpoints)==null?void 0:a.values)==null?void 0:l[n])||Nl[n];return r?((d=(c=e.theme)==null?void 0:c.breakpoints)==null?void 0:d.unit)!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:Dn(n)}};return Hr(e,e.maxWidth,t)}return null};Kd.filterProps=["maxWidth"];const Wk=Ut({prop:"minWidth",transform:Dn}),Uk=Ut({prop:"height",transform:Dn}),Hk=Ut({prop:"maxHeight",transform:Dn}),Gk=Ut({prop:"minHeight",transform:Dn});Ut({prop:"size",cssProperty:"width",transform:Dn}),Ut({prop:"size",cssProperty:"height",transform:Dn});const qk=Ut({prop:"boxSizing"});Ul(zk,Kd,Wk,Uk,Hk,Gk,qk);const Dy={border:{themeKey:"borders",transform:Qn},borderTop:{themeKey:"borders",transform:Qn},borderRight:{themeKey:"borders",transform:Qn},borderBottom:{themeKey:"borders",transform:Qn},borderLeft:{themeKey:"borders",transform:Qn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:Qn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:Hl},color:{themeKey:"palette",transform:_i},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:_i},backgroundColor:{themeKey:"palette",transform:_i},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:jt},mt:{style:jt},mr:{style:jt},mb:{style:jt},ml:{style:jt},mx:{style:jt},my:{style:jt},margin:{style:jt},marginTop:{style:jt},marginRight:{style:jt},marginBottom:{style:jt},marginLeft:{style:jt},marginX:{style:jt},marginY:{style:jt},marginInline:{style:jt},marginInlineStart:{style:jt},marginInlineEnd:{style:jt},marginBlock:{style:jt},marginBlockStart:{style:jt},marginBlockEnd:{style:jt},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:Gl},rowGap:{style:Vl},columnGap:{style:ql},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Dn},maxWidth:{style:Kd},minWidth:{transform:Dn},height:{transform:Dn},maxHeight:{transform:Dn},minHeight:{transform:Dn},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 Vk(...e){const t=e.reduce((r,i)=>r.concat(Object.keys(i)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function Kk(e,t){return typeof e=="function"?e(t):e}function Yk(){function e(n,r,i,a){const l={[n]:r,theme:i},c=a[n];if(!c)return{[n]:r};const{cssProperty:d=n,themeKey:f,transform:y,style:m}=c;if(r==null)return null;if(f==="typography"&&r==="inherit")return{[n]:r};const v=zl(i,f)||{};return m?m(l):Hr(l,r,x=>{let _=Wl(v,y,x);return x===_&&typeof x=="string"&&(_=Wl(v,y,`${n}${x==="default"?"":Ay(x)}`,x)),d===!1?_:{[d]:_}})}function t(n){const{sx:r,theme:i={}}=n||{};if(!r)return null;const a=i.unstable_sxConfig??Dy;function l(c){let d=c;if(typeof c=="function")d=c(i);else if(typeof c!="object")return c;if(!d)return null;const f=lk(i.breakpoints),y=Object.keys(f);let m=f;return Object.keys(d).forEach(v=>{const w=Kk(d[v],i);if(w!=null)if(typeof w=="object")if(a[v])m=As(m,e(v,w,i,a));else{const x=Hr({theme:i},w,_=>({[v]:_}));Vk(x,w)?m[v]=t({sx:w,theme:i}):m=As(m,x)}else m=As(m,e(v,w,i,a))}),nk(i,ck(y,m))}return Array.isArray(r)?r.map(l):l(r)}return t}const Kl=Yk();Kl.filterProps=["sx"];function Xk(e,t){var r;const n=this;if(n.vars){if(!((r=n.colorSchemes)!=null&&r[e])||typeof n.getColorSchemeSelector!="function")return{};let i=n.getColorSchemeSelector(e);return i==="&"?t:((i.includes("data-")||i.includes("."))&&(i=`*:where(${i.replace(/\s*&$/,"")}) &`),{[i]:t})}return n.palette.mode===e?t:{}}function Jk(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={},...l}=e,c=tk(n),d=mk(i);let f=Fl({breakpoints:c,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:d,shape:{...sk,...a}},l);return f=ik(f),f.applyStyles=Xk,f=t.reduce((y,m)=>Fl(y,m),f),f.unstable_sxConfig={...Dy,...l==null?void 0:l.unstable_sxConfig},f.unstable_sx=function(m){return Kl({sx:m,theme:this})},f}function Zk(e){const{variants:t,...n}=e,r={variants:t,style:Iy(n),isProcessed:!0};return r.style===n||t&&t.forEach(i=>{typeof i.style!="function"&&(i.style=Iy(i.style))}),r}const Qk=Jk();function Yd(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function e2(e){return e?(t,n)=>n[e]:null}function t2(e,t,n){e.theme=o2(e.theme)?n:e.theme[t]||e.theme}function Yl(e,t){const n=typeof t=="function"?t(e):t;if(Array.isArray(n))return n.flatMap(r=>Yl(e,r));if(Array.isArray(n==null?void 0:n.variants)){let r;if(n.isProcessed)r=n.style;else{const{variants:i,...a}=n;r=a}return jy(e,n.variants,[r])}return n!=null&&n.isProcessed?n.style:n}function jy(e,t,n=[]){var i;let r;e:for(let a=0;a<t.length;a+=1){const l=t[a];if(typeof l.props=="function"){if(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),!l.props(r))continue}else for(const c in l.props)if(e[c]!==l.props[c]&&((i=e.ownerState)==null?void 0:i[c])!==l.props[c])continue e;typeof l.style=="function"?(r??(r={...e,...e.ownerState,ownerState:e.ownerState}),n.push(l.style(r))):n.push(l.style)}return n}function n2(e={}){const{themeId:t,defaultTheme:n=Qk,rootShouldForwardProp:r=Yd,slotShouldForwardProp:i=Yd}=e;function a(c){t2(c,t,n)}return(c,d={})=>{QI(c,M=>M.filter(D=>D!==Kl));const{name:f,slot:y,skipVariantsResolver:m,skipSx:v,overridesResolver:w=e2(s2(y)),...x}=d,_=m!==void 0?m:y&&y!=="Root"&&y!=="root"||!1,k=v||!1;let C=Yd;y==="Root"||y==="root"?C=r:y?C=i:i2(c)&&(C=void 0);const O=ZI(c,{shouldForwardProp:C,label:r2(),...x}),P=M=>{if(typeof M=="function"&&M.__emotion_real!==M)return function($){return Yl($,M)};if(Oo(M)){const D=Zk(M);return D.variants?function(z){return Yl(z,D)}:D.style}return M},R=(...M)=>{const D=[],$=M.map(P),z=[];if(D.push(a),f&&w&&z.push(function(te){var ae,fe;const X=(fe=(ae=te.theme.components)==null?void 0:ae[f])==null?void 0:fe.styleOverrides;if(!X)return null;const ee={};for(const pe in X)ee[pe]=Yl(te,X[pe]);return w(te,ee)}),f&&!_&&z.push(function(te){var ee,ae;const H=te.theme,X=(ae=(ee=H==null?void 0:H.components)==null?void 0:ee[f])==null?void 0:ae.variants;return X?jy(te,X):null}),k||z.push(Kl),Array.isArray($[0])){const G=$.shift(),te=new Array(D.length).fill(""),H=new Array(z.length).fill("");let X;X=[...te,...G,...H],X.raw=[...te,...G.raw,...H],D.unshift(X)}const V=[...D,...$,...z],E=O(...V);return c.muiName&&(E.muiName=c.muiName),E};return O.withConfig&&(R.withConfig=O.withConfig),R}}function r2(e,t){return void 0}function o2(e){for(const t in e)return!1;return!0}function i2(e){return typeof e=="string"&&e.charCodeAt(0)>96}function s2(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}const a2=n2(),l2=e=>{const[t,n]=Y.useState([]),r=i=>i.toSorted((a,l)=>{let c=Number(a.project_name.split("_").pop());return Number(l.project_name.split("_").pop())-c});return Y.useEffect(()=>{n(e.projects)},[e.projects]),b.jsx(b.Fragment,{children:b.jsx(Dt,{children:b.jsx(rd,{dense:!0,children:t&&r(t).map(i=>b.jsx(um,{onClick:e.onSelect(i.project_name,i.clone_url),children:b.jsx(hm,{primary:i.project_name})},i.project_name))})})})},c2=e=>{const[t,n]=Y.useState(""),[r,i]=Y.useState("");return b.jsx(b.Fragment,{children:b.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:[b.jsx(yl,{label:"Project Description",variant:"outlined",fullWidth:!0,value:t,onChange:a=>n(a.target.value),size:"small",sx:{padding:"2px"}}),b.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[b.jsx(Dt,{sx:{flex:3,padding:"2px"},children:b.jsxs(nd,{fullWidth:!0,children:[b.jsx(td,{id:"template-select-label",children:"Template"}),b.jsx(ml,{labelId:"template-select-label",id:"template-select",label:"Template",value:r,onChange:a=>i(a.target.value),fullWidth:!0,size:"small",children:b.jsx(bd,{value:"example",children:"example"})})]})}),b.jsx(hi,{variant:"outlined",onClick:()=>e.onCreate(t,r),fullWidth:!0,sx:{flex:1},size:"small",children:"Create"})]})]})})},u2=()=>{const[e,t]=Y.useState([]),{setProjectMetadata:n,APIHandler:r}=Bn(),i=()=>{r.getProjects().then(c=>{if(c.status!==200)throw new Error("Error fetching projects.");return c}).then(c=>c.json()).then(c=>{t(c.projects)})},a=(c,d)=>()=>{n({projectName:c,projectURL:d})},l=(c,d)=>{r.createProject(c,d).then(f=>{if(f.status!==200)throw new Error("Unable to create project");i()})};return Y.useEffect(()=>{i()},[]),b.jsxs(b.Fragment,{children:[b.jsx(c2,{onCreate:l}),b.jsx(bs,{}),b.jsx(l2,{projects:e,onSelect:a})]})},d2=it.div`
|
|
669
|
+
`,fT=({isOpen:e,onClose:t,onImageSelect:n,projectName:o})=>{const{config:s,projectMetadata:a,setSyncToken:l}=On(),u=tT(),[d,h]=X.useState({status:"loading"}),[y,m]=X.useState({isDragging:!1,hasError:!1}),[b,w]=X.useState(!1),S=X.useRef(null),E=X.useRef(null),P=X.useRef(null),C=X.useRef(null);if(X.useEffect(()=>{var H;e?(C.current=document.activeElement,(H=E.current)==null||H.focus()):C.current&&C.current.focus()},[e]),X.useEffect(()=>{const H=Q=>{Q.key==="Escape"&&t()};return e?(document.addEventListener("keydown",H),()=>document.removeEventListener("keydown",H)):()=>{}},[e,t]),X.useEffect(()=>(Sd(e,o,h),()=>{}),[e,o]),!e)return null;const O=H=>{n(H),t()},k=H=>{const Q=d.status==="loaded"?d.images:[];h({status:"uploading",currentImages:Q,uploadProgress:H})},R=async H=>{if(H.length===0)return;const Q=H[0];if(!Q)return;const ee=Qk(Q);if(!ee.isValid){m({isDragging:!1,hasError:!0,errorMessage:ee.error});return}const le=d.status==="loaded"?d.images:[];try{h({status:"uploading",currentImages:le,uploadProgress:{percentage:0,status:"Starting upload..."}});const pe=eT(o,Q);await u(s.API_BASE_URL,pe,k),l(),a.projectName&&a.projectURL&&(w(!0),await Js(a.projectName,a.projectURL,s.CORS_PROXY),w(!1),await Sd(e,o,h)),m({isDragging:!1,hasError:!1})}catch(pe){h({status:"upload_error",currentImages:le,error:pe instanceof Error?pe.message:"Failed to upload image"})}},$=H=>{const Q=H.target.files;Q&&R(Array.from(Q)),H.target.value=""},B=()=>{var H;(H=P.current)==null||H.click()},M=H=>{H.preventDefault(),H.stopPropagation(),m({isDragging:!0,hasError:!1})},z=H=>{H.preventDefault(),H.stopPropagation(),m({isDragging:!1,hasError:!1})},V=H=>{H.preventDefault(),H.stopPropagation()},_=H=>{H.preventDefault(),H.stopPropagation();const Q=Array.from(H.dataTransfer.files);R(Q)},G=()=>v.jsxs(iT,{onDragEnter:M,onDragLeave:z,onDragOver:V,onDrop:_,onClick:B,isDragActive:y.isDragging,isError:y.hasError,role:"button","aria-label":"Upload image",tabIndex:0,children:[v.jsx("input",{ref:P,type:"file",accept:Object.values(wd).join(","),onChange:$,"aria-label":"File input"}),v.jsxs(cT,{children:[v.jsx("div",{children:y.isDragging?"Drop image here":"Drag and drop an image here, or click to select"}),v.jsxs("div",{children:["Supported formats: ",Ss.join(", ").toUpperCase()]})]}),y.hasError&&v.jsx(lT,{isError:!0,children:y.errorMessage})]}),re=()=>{switch(d.status){case"loading":return v.jsx(Cs,{role:"status","aria-live":"polite",children:"Loading images..."});case"error":return v.jsxs(Cs,{role:"alert",children:[v.jsx("div",{children:d.message}),v.jsx("button",{onClick:()=>Sd(e,o,h),"aria-label":"Try loading images again",className:"retry-button",children:"Try Again"})]});case"empty":return v.jsxs(v.Fragment,{children:[G(),v.jsxs(Cs,{role:"status",children:[v.jsx("div",{children:"No images available"}),v.jsxs("div",{className:"help-text",children:["Upload an image using the area above, or:",v.jsxs("ol",{children:[v.jsx("li",{children:"Create an 'images' directory in your project's src/assets folder"}),v.jsx("li",{children:"Add your images to the directory"}),v.jsx("li",{children:"Commit and push your changes"}),v.jsx("li",{children:"Pull the changes to this workspace"})]}),"Supported formats:"," ",Ss.join(", ").toUpperCase()]})]})]});case"uploading":return v.jsxs(v.Fragment,{children:[v.jsxs(Cs,{role:"status","aria-live":"polite",children:[v.jsx(aT,{}),v.jsx("div",{children:"Uploading image..."}),v.jsx(uT,{children:v.jsx(dT,{progress:d.uploadProgress.percentage,"aria-valuenow":d.uploadProgress.percentage,"aria-valuemin":0,"aria-valuemax":100})}),v.jsx("div",{children:d.uploadProgress.status})]}),d.currentImages.length>0&&v.jsx(Cd,{role:"grid","aria-label":"Project images",children:d.currentImages.map(H=>v.jsx("div",{role:"gridcell",children:v.jsxs(_d,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[v.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),v.jsx("p",{children:H.name})]})},H.path))})]});case"upload_error":return v.jsxs(v.Fragment,{children:[G(),v.jsx(Cs,{role:"alert",children:v.jsxs("div",{children:["Upload failed: ",d.error]})}),d.currentImages.length>0&&v.jsx(Cd,{role:"grid","aria-label":"Project images",children:d.currentImages.map(H=>v.jsx("div",{role:"gridcell",children:v.jsxs(_d,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[v.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),v.jsx("p",{children:H.name})]})},H.path))})]});case"loaded":return v.jsxs(v.Fragment,{children:[G(),v.jsx(Cd,{role:"grid","aria-label":"Project images",children:d.images.map(H=>v.jsx("div",{role:"gridcell",children:v.jsxs(_d,{onClick:()=>O(H.path),"aria-label":`Select image ${H.name}`,children:[v.jsx("img",{src:H.base64,alt:`Preview of ${H.name}`}),v.jsx("p",{children:H.name}),v.jsx("span",{className:"sr-only",children:"Press enter or space to select this image"})]})},H.path))})]})}};return v.jsxs(nT,{role:"presentation",onClick:H=>{H.target===H.currentTarget&&t()},children:[v.jsx(bs,{isVisible:b}),v.jsxs(rT,{ref:S,role:"dialog","aria-label":"Image gallery","aria-modal":"true",children:[v.jsx(oT,{ref:E,onClick:t,"aria-label":"Close gallery",children:"Close"}),re()]})]})},r0=e=>e.isOpen?v.jsx(Kk,{onClose:e.onClose,children:v.jsx(fT,{...e})}):null,pT=e=>{const[t,n]=X.useState([]),o=s=>s.toSorted((a,l)=>{let u=Number(a.project_name.split("_").pop());return Number(l.project_name.split("_").pop())-u});return X.useEffect(()=>{n(e.projects)},[e.projects]),v.jsx(v.Fragment,{children:v.jsx(Dt,{children:v.jsx(Lu,{dense:!0,children:t&&o(t).map(s=>v.jsx(Hg,{onClick:e.onSelect(s.project_name,s.clone_url),children:v.jsx(Yg,{primary:s.project_name})},s.project_name))})})})},hT=e=>{const[t,n]=X.useState(""),[o,s]=X.useState("");return v.jsx(v.Fragment,{children:v.jsxs(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:[v.jsx(ol,{label:"Project Description",variant:"outlined",fullWidth:!0,value:t,onChange:a=>n(a.target.value),size:"small",sx:{padding:"2px"}}),v.jsxs(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:[v.jsx(Dt,{sx:{flex:3,padding:"2px"},children:v.jsxs($u,{fullWidth:!0,children:[v.jsx(Mu,{id:"template-select-label",children:"Template"}),v.jsx(rl,{labelId:"template-select-label",id:"template-select",label:"Template",value:o,onChange:a=>s(a.target.value),fullWidth:!0,size:"small",children:v.jsx(Qu,{value:"example",children:"example"})})]})}),v.jsx(li,{variant:"outlined",onClick:()=>e.onCreate(t,o),fullWidth:!0,sx:{flex:1},size:"small",children:"Create"})]})]})})},gT=()=>{const[e,t]=X.useState([]),{setProjectMetadata:n,APIHandler:o}=On(),s=()=>{o.getProjects().then(u=>{if(u.status!==200)throw new Error("Error fetching projects.");return u}).then(u=>u.json()).then(u=>{t(u.projects)})},a=(u,d)=>()=>{n({projectName:u,projectURL:d})},l=(u,d)=>{o.createProject(u,d).then(h=>{if(h.status!==200)throw new Error("Unable to create project");s()})};return X.useEffect(()=>{s()},[]),v.jsxs(v.Fragment,{children:[v.jsx(hT,{onCreate:l}),v.jsx(ds,{}),v.jsx(pT,{projects:e,onSelect:a})]})},o0=e=>v.jsx(v.Fragment,{children:v.jsx("div",{className:"droppable-element",draggable:!0,unselectable:"on",onDragStart:t=>{t.dataTransfer.setData("text/plain",""),t.dataTransfer.setData("application/reactgridlayout",JSON.stringify({id:e.id,type:e.type,initialSize:e.initialSize,metadata:e.metadata}))},children:e.node})});var El={exports:{}};/**
|
|
670
|
+
* @license
|
|
671
|
+
* Lodash <https://lodash.com/>
|
|
672
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
673
|
+
* Released under MIT license <https://lodash.com/license>
|
|
674
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
675
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
676
|
+
*/El.exports,function(e,t){(function(){var n,o="4.17.21",s=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",u="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",h=500,y="__lodash_placeholder__",m=1,b=2,w=4,S=1,E=2,P=1,C=2,O=4,k=8,R=16,$=32,B=64,M=128,z=256,V=512,_=30,G="...",re=800,H=16,Q=1,ee=2,le=3,pe=1/0,he=9007199254740991,be=17976931348623157e292,we=NaN,ue=4294967295,Ce=ue-1,De=ue>>>1,Xe=[["ary",M],["bind",P],["bindKey",C],["curry",k],["curryRight",R],["flip",V],["partial",$],["partialRight",B],["rearg",z]],Ke="[object Arguments]",He="[object Array]",gt="[object AsyncFunction]",ae="[object Boolean]",de="[object Date]",ge="[object DOMException]",me="[object Error]",fe="[object Function]",Pe="[object GeneratorFunction]",ve="[object Map]",Be="[object Number]",Ge="[object Null]",Ae="[object Object]",ke="[object Promise]",We="[object Proxy]",et="[object RegExp]",Le="[object Set]",xe="[object String]",ut="[object Symbol]",Ut="[object Undefined]",Ht="[object WeakMap]",Yn="[object WeakSet]",I="[object ArrayBuffer]",p="[object DataView]",g="[object Float32Array]",D="[object Float64Array]",N="[object Int8Array]",q="[object Int16Array]",J="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",se="[object Uint16Array]",Ee="[object Uint32Array]",_e=/\b__p \+= '';/g,Tt=/\b(__p \+=) '' \+/g,Xn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,kr=/&(?:amp|lt|gt|quot|#39);/g,io=/[&<>"']/g,Xl=RegExp(kr.source),Os=RegExp(io.source),SO=/<%-([\s\S]+?)%>/g,CO=/<%([\s\S]+?)%>/g,ly=/<%=([\s\S]+?)%>/g,_O=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,EO=/^\w*$/,RO=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,mf=/[\\^$.*+?()[\]{}|]/g,IO=RegExp(mf.source),yf=/^\s+/,kO=/\s/,TO=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,PO=/\{\n\/\* \[wrapped with (.+)\] \*/,OO=/,? & /,AO=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,MO=/[()=,{}\[\]\/\s]/,$O=/\\(\\)?/g,DO=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,cy=/\w*$/,BO=/^[-+]0x[0-9a-f]+$/i,LO=/^0b[01]+$/i,jO=/^\[object .+?Constructor\]$/,NO=/^0o[0-7]+$/i,FO=/^(?:0|[1-9]\d*)$/,zO=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Kl=/($^)/,WO=/['\n\r\u2028\u2029\\]/g,Jl="\\ud800-\\udfff",UO="\\u0300-\\u036f",HO="\\ufe20-\\ufe2f",GO="\\u20d0-\\u20ff",uy=UO+HO+GO,dy="\\u2700-\\u27bf",fy="a-z\\xdf-\\xf6\\xf8-\\xff",qO="\\xac\\xb1\\xd7\\xf7",VO="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",YO="\\u2000-\\u206f",XO=" \\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",py="A-Z\\xc0-\\xd6\\xd8-\\xde",hy="\\ufe0e\\ufe0f",gy=qO+VO+YO+XO,vf="['’]",KO="["+Jl+"]",my="["+gy+"]",Zl="["+uy+"]",yy="\\d+",JO="["+dy+"]",vy="["+fy+"]",by="[^"+Jl+gy+yy+dy+fy+py+"]",bf="\\ud83c[\\udffb-\\udfff]",ZO="(?:"+Zl+"|"+bf+")",xy="[^"+Jl+"]",xf="(?:\\ud83c[\\udde6-\\uddff]){2}",wf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ei="["+py+"]",wy="\\u200d",Sy="(?:"+vy+"|"+by+")",QO="(?:"+Ei+"|"+by+")",Cy="(?:"+vf+"(?:d|ll|m|re|s|t|ve))?",_y="(?:"+vf+"(?:D|LL|M|RE|S|T|VE))?",Ey=ZO+"?",Ry="["+hy+"]?",eA="(?:"+wy+"(?:"+[xy,xf,wf].join("|")+")"+Ry+Ey+")*",tA="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",nA="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Iy=Ry+Ey+eA,rA="(?:"+[JO,xf,wf].join("|")+")"+Iy,oA="(?:"+[xy+Zl+"?",Zl,xf,wf,KO].join("|")+")",iA=RegExp(vf,"g"),sA=RegExp(Zl,"g"),Sf=RegExp(bf+"(?="+bf+")|"+oA+Iy,"g"),aA=RegExp([Ei+"?"+vy+"+"+Cy+"(?="+[my,Ei,"$"].join("|")+")",QO+"+"+_y+"(?="+[my,Ei+Sy,"$"].join("|")+")",Ei+"?"+Sy+"+"+Cy,Ei+"+"+_y,nA,tA,yy,rA].join("|"),"g"),lA=RegExp("["+wy+Jl+uy+hy+"]"),cA=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,uA=["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"],dA=-1,It={};It[g]=It[D]=It[N]=It[q]=It[J]=It[ce]=It[oe]=It[se]=It[Ee]=!0,It[Ke]=It[He]=It[I]=It[ae]=It[p]=It[de]=It[me]=It[fe]=It[ve]=It[Be]=It[Ae]=It[et]=It[Le]=It[xe]=It[Ht]=!1;var Et={};Et[Ke]=Et[He]=Et[I]=Et[p]=Et[ae]=Et[de]=Et[g]=Et[D]=Et[N]=Et[q]=Et[J]=Et[ve]=Et[Be]=Et[Ae]=Et[et]=Et[Le]=Et[xe]=Et[ut]=Et[ce]=Et[oe]=Et[se]=Et[Ee]=!0,Et[me]=Et[fe]=Et[Ht]=!1;var fA={À:"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"},pA={"&":"&","<":"<",">":">",'"':""","'":"'"},hA={"&":"&","<":"<",">":">",""":'"',"'":"'"},gA={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},mA=parseFloat,yA=parseInt,ky=typeof Mr=="object"&&Mr&&Mr.Object===Object&&Mr,vA=typeof self=="object"&&self&&self.Object===Object&&self,tn=ky||vA||Function("return this")(),Cf=t&&!t.nodeType&&t,$o=Cf&&!0&&e&&!e.nodeType&&e,Ty=$o&&$o.exports===Cf,_f=Ty&&ky.process,Kn=function(){try{var W=$o&&$o.require&&$o.require("util").types;return W||_f&&_f.binding&&_f.binding("util")}catch{}}(),Py=Kn&&Kn.isArrayBuffer,Oy=Kn&&Kn.isDate,Ay=Kn&&Kn.isMap,My=Kn&&Kn.isRegExp,$y=Kn&&Kn.isSet,Dy=Kn&&Kn.isTypedArray;function $n(W,Z,Y){switch(Y.length){case 0:return W.call(Z);case 1:return W.call(Z,Y[0]);case 2:return W.call(Z,Y[0],Y[1]);case 3:return W.call(Z,Y[0],Y[1],Y[2])}return W.apply(Z,Y)}function bA(W,Z,Y,Se){for(var Fe=-1,dt=W==null?0:W.length;++Fe<dt;){var qt=W[Fe];Z(Se,qt,Y(qt),W)}return Se}function Jn(W,Z){for(var Y=-1,Se=W==null?0:W.length;++Y<Se&&Z(W[Y],Y,W)!==!1;);return W}function xA(W,Z){for(var Y=W==null?0:W.length;Y--&&Z(W[Y],Y,W)!==!1;);return W}function By(W,Z){for(var Y=-1,Se=W==null?0:W.length;++Y<Se;)if(!Z(W[Y],Y,W))return!1;return!0}function so(W,Z){for(var Y=-1,Se=W==null?0:W.length,Fe=0,dt=[];++Y<Se;){var qt=W[Y];Z(qt,Y,W)&&(dt[Fe++]=qt)}return dt}function Ql(W,Z){var Y=W==null?0:W.length;return!!Y&&Ri(W,Z,0)>-1}function Ef(W,Z,Y){for(var Se=-1,Fe=W==null?0:W.length;++Se<Fe;)if(Y(Z,W[Se]))return!0;return!1}function Pt(W,Z){for(var Y=-1,Se=W==null?0:W.length,Fe=Array(Se);++Y<Se;)Fe[Y]=Z(W[Y],Y,W);return Fe}function ao(W,Z){for(var Y=-1,Se=Z.length,Fe=W.length;++Y<Se;)W[Fe+Y]=Z[Y];return W}function Rf(W,Z,Y,Se){var Fe=-1,dt=W==null?0:W.length;for(Se&&dt&&(Y=W[++Fe]);++Fe<dt;)Y=Z(Y,W[Fe],Fe,W);return Y}function wA(W,Z,Y,Se){var Fe=W==null?0:W.length;for(Se&&Fe&&(Y=W[--Fe]);Fe--;)Y=Z(Y,W[Fe],Fe,W);return Y}function If(W,Z){for(var Y=-1,Se=W==null?0:W.length;++Y<Se;)if(Z(W[Y],Y,W))return!0;return!1}var SA=kf("length");function CA(W){return W.split("")}function _A(W){return W.match(AO)||[]}function Ly(W,Z,Y){var Se;return Y(W,function(Fe,dt,qt){if(Z(Fe,dt,qt))return Se=dt,!1}),Se}function ec(W,Z,Y,Se){for(var Fe=W.length,dt=Y+(Se?1:-1);Se?dt--:++dt<Fe;)if(Z(W[dt],dt,W))return dt;return-1}function Ri(W,Z,Y){return Z===Z?BA(W,Z,Y):ec(W,jy,Y)}function EA(W,Z,Y,Se){for(var Fe=Y-1,dt=W.length;++Fe<dt;)if(Se(W[Fe],Z))return Fe;return-1}function jy(W){return W!==W}function Ny(W,Z){var Y=W==null?0:W.length;return Y?Pf(W,Z)/Y:we}function kf(W){return function(Z){return Z==null?n:Z[W]}}function Tf(W){return function(Z){return W==null?n:W[Z]}}function Fy(W,Z,Y,Se,Fe){return Fe(W,function(dt,qt,Ct){Y=Se?(Se=!1,dt):Z(Y,dt,qt,Ct)}),Y}function RA(W,Z){var Y=W.length;for(W.sort(Z);Y--;)W[Y]=W[Y].value;return W}function Pf(W,Z){for(var Y,Se=-1,Fe=W.length;++Se<Fe;){var dt=Z(W[Se]);dt!==n&&(Y=Y===n?dt:Y+dt)}return Y}function Of(W,Z){for(var Y=-1,Se=Array(W);++Y<W;)Se[Y]=Z(Y);return Se}function IA(W,Z){return Pt(Z,function(Y){return[Y,W[Y]]})}function zy(W){return W&&W.slice(0,Gy(W)+1).replace(yf,"")}function Dn(W){return function(Z){return W(Z)}}function Af(W,Z){return Pt(Z,function(Y){return W[Y]})}function As(W,Z){return W.has(Z)}function Wy(W,Z){for(var Y=-1,Se=W.length;++Y<Se&&Ri(Z,W[Y],0)>-1;);return Y}function Uy(W,Z){for(var Y=W.length;Y--&&Ri(Z,W[Y],0)>-1;);return Y}function kA(W,Z){for(var Y=W.length,Se=0;Y--;)W[Y]===Z&&++Se;return Se}var TA=Tf(fA),PA=Tf(pA);function OA(W){return"\\"+gA[W]}function AA(W,Z){return W==null?n:W[Z]}function Ii(W){return lA.test(W)}function MA(W){return cA.test(W)}function $A(W){for(var Z,Y=[];!(Z=W.next()).done;)Y.push(Z.value);return Y}function Mf(W){var Z=-1,Y=Array(W.size);return W.forEach(function(Se,Fe){Y[++Z]=[Fe,Se]}),Y}function Hy(W,Z){return function(Y){return W(Z(Y))}}function lo(W,Z){for(var Y=-1,Se=W.length,Fe=0,dt=[];++Y<Se;){var qt=W[Y];(qt===Z||qt===y)&&(W[Y]=y,dt[Fe++]=Y)}return dt}function tc(W){var Z=-1,Y=Array(W.size);return W.forEach(function(Se){Y[++Z]=Se}),Y}function DA(W){var Z=-1,Y=Array(W.size);return W.forEach(function(Se){Y[++Z]=[Se,Se]}),Y}function BA(W,Z,Y){for(var Se=Y-1,Fe=W.length;++Se<Fe;)if(W[Se]===Z)return Se;return-1}function LA(W,Z,Y){for(var Se=Y+1;Se--;)if(W[Se]===Z)return Se;return Se}function ki(W){return Ii(W)?NA(W):SA(W)}function cr(W){return Ii(W)?FA(W):CA(W)}function Gy(W){for(var Z=W.length;Z--&&kO.test(W.charAt(Z)););return Z}var jA=Tf(hA);function NA(W){for(var Z=Sf.lastIndex=0;Sf.test(W);)++Z;return Z}function FA(W){return W.match(Sf)||[]}function zA(W){return W.match(aA)||[]}var WA=function W(Z){Z=Z==null?tn:Ti.defaults(tn.Object(),Z,Ti.pick(tn,uA));var Y=Z.Array,Se=Z.Date,Fe=Z.Error,dt=Z.Function,qt=Z.Math,Ct=Z.Object,$f=Z.RegExp,UA=Z.String,Zn=Z.TypeError,nc=Y.prototype,HA=dt.prototype,Pi=Ct.prototype,rc=Z["__core-js_shared__"],oc=HA.toString,bt=Pi.hasOwnProperty,GA=0,qy=function(){var r=/[^.]+$/.exec(rc&&rc.keys&&rc.keys.IE_PROTO||"");return r?"Symbol(src)_1."+r:""}(),ic=Pi.toString,qA=oc.call(Ct),VA=tn._,YA=$f("^"+oc.call(bt).replace(mf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),sc=Ty?Z.Buffer:n,co=Z.Symbol,ac=Z.Uint8Array,Vy=sc?sc.allocUnsafe:n,lc=Hy(Ct.getPrototypeOf,Ct),Yy=Ct.create,Xy=Pi.propertyIsEnumerable,cc=nc.splice,Ky=co?co.isConcatSpreadable:n,Ms=co?co.iterator:n,Do=co?co.toStringTag:n,uc=function(){try{var r=Fo(Ct,"defineProperty");return r({},"",{}),r}catch{}}(),XA=Z.clearTimeout!==tn.clearTimeout&&Z.clearTimeout,KA=Se&&Se.now!==tn.Date.now&&Se.now,JA=Z.setTimeout!==tn.setTimeout&&Z.setTimeout,dc=qt.ceil,fc=qt.floor,Df=Ct.getOwnPropertySymbols,ZA=sc?sc.isBuffer:n,Jy=Z.isFinite,QA=nc.join,eM=Hy(Ct.keys,Ct),Vt=qt.max,un=qt.min,tM=Se.now,nM=Z.parseInt,Zy=qt.random,rM=nc.reverse,Bf=Fo(Z,"DataView"),$s=Fo(Z,"Map"),Lf=Fo(Z,"Promise"),Oi=Fo(Z,"Set"),Ds=Fo(Z,"WeakMap"),Bs=Fo(Ct,"create"),pc=Ds&&new Ds,Ai={},oM=zo(Bf),iM=zo($s),sM=zo(Lf),aM=zo(Oi),lM=zo(Ds),hc=co?co.prototype:n,Ls=hc?hc.valueOf:n,Qy=hc?hc.toString:n;function T(r){if(Lt(r)&&!ze(r)&&!(r instanceof nt)){if(r instanceof Qn)return r;if(bt.call(r,"__wrapped__"))return eb(r)}return new Qn(r)}var Mi=function(){function r(){}return function(i){if(!At(i))return{};if(Yy)return Yy(i);r.prototype=i;var c=new r;return r.prototype=n,c}}();function gc(){}function Qn(r,i){this.__wrapped__=r,this.__actions__=[],this.__chain__=!!i,this.__index__=0,this.__values__=n}T.templateSettings={escape:SO,evaluate:CO,interpolate:ly,variable:"",imports:{_:T}},T.prototype=gc.prototype,T.prototype.constructor=T,Qn.prototype=Mi(gc.prototype),Qn.prototype.constructor=Qn;function nt(r){this.__wrapped__=r,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ue,this.__views__=[]}function cM(){var r=new nt(this.__wrapped__);return r.__actions__=Cn(this.__actions__),r.__dir__=this.__dir__,r.__filtered__=this.__filtered__,r.__iteratees__=Cn(this.__iteratees__),r.__takeCount__=this.__takeCount__,r.__views__=Cn(this.__views__),r}function uM(){if(this.__filtered__){var r=new nt(this);r.__dir__=-1,r.__filtered__=!0}else r=this.clone(),r.__dir__*=-1;return r}function dM(){var r=this.__wrapped__.value(),i=this.__dir__,c=ze(r),f=i<0,x=c?r.length:0,A=C$(0,x,this.__views__),L=A.start,F=A.end,U=F-L,te=f?F:L-1,ne=this.__iteratees__,ie=ne.length,ye=0,Ie=un(U,this.__takeCount__);if(!c||!f&&x==U&&Ie==U)return Cv(r,this.__actions__);var Me=[];e:for(;U--&&ye<Ie;){te+=i;for(var Je=-1,$e=r[te];++Je<ie;){var tt=ne[Je],ot=tt.iteratee,jn=tt.type,mn=ot($e);if(jn==ee)$e=mn;else if(!mn){if(jn==Q)continue e;break e}}Me[ye++]=$e}return Me}nt.prototype=Mi(gc.prototype),nt.prototype.constructor=nt;function Bo(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function fM(){this.__data__=Bs?Bs(null):{},this.size=0}function pM(r){var i=this.has(r)&&delete this.__data__[r];return this.size-=i?1:0,i}function hM(r){var i=this.__data__;if(Bs){var c=i[r];return c===d?n:c}return bt.call(i,r)?i[r]:n}function gM(r){var i=this.__data__;return Bs?i[r]!==n:bt.call(i,r)}function mM(r,i){var c=this.__data__;return this.size+=this.has(r)?0:1,c[r]=Bs&&i===n?d:i,this}Bo.prototype.clear=fM,Bo.prototype.delete=pM,Bo.prototype.get=hM,Bo.prototype.has=gM,Bo.prototype.set=mM;function Wr(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function yM(){this.__data__=[],this.size=0}function vM(r){var i=this.__data__,c=mc(i,r);if(c<0)return!1;var f=i.length-1;return c==f?i.pop():cc.call(i,c,1),--this.size,!0}function bM(r){var i=this.__data__,c=mc(i,r);return c<0?n:i[c][1]}function xM(r){return mc(this.__data__,r)>-1}function wM(r,i){var c=this.__data__,f=mc(c,r);return f<0?(++this.size,c.push([r,i])):c[f][1]=i,this}Wr.prototype.clear=yM,Wr.prototype.delete=vM,Wr.prototype.get=bM,Wr.prototype.has=xM,Wr.prototype.set=wM;function Ur(r){var i=-1,c=r==null?0:r.length;for(this.clear();++i<c;){var f=r[i];this.set(f[0],f[1])}}function SM(){this.size=0,this.__data__={hash:new Bo,map:new($s||Wr),string:new Bo}}function CM(r){var i=kc(this,r).delete(r);return this.size-=i?1:0,i}function _M(r){return kc(this,r).get(r)}function EM(r){return kc(this,r).has(r)}function RM(r,i){var c=kc(this,r),f=c.size;return c.set(r,i),this.size+=c.size==f?0:1,this}Ur.prototype.clear=SM,Ur.prototype.delete=CM,Ur.prototype.get=_M,Ur.prototype.has=EM,Ur.prototype.set=RM;function Lo(r){var i=-1,c=r==null?0:r.length;for(this.__data__=new Ur;++i<c;)this.add(r[i])}function IM(r){return this.__data__.set(r,d),this}function kM(r){return this.__data__.has(r)}Lo.prototype.add=Lo.prototype.push=IM,Lo.prototype.has=kM;function ur(r){var i=this.__data__=new Wr(r);this.size=i.size}function TM(){this.__data__=new Wr,this.size=0}function PM(r){var i=this.__data__,c=i.delete(r);return this.size=i.size,c}function OM(r){return this.__data__.get(r)}function AM(r){return this.__data__.has(r)}function MM(r,i){var c=this.__data__;if(c instanceof Wr){var f=c.__data__;if(!$s||f.length<s-1)return f.push([r,i]),this.size=++c.size,this;c=this.__data__=new Ur(f)}return c.set(r,i),this.size=c.size,this}ur.prototype.clear=TM,ur.prototype.delete=PM,ur.prototype.get=OM,ur.prototype.has=AM,ur.prototype.set=MM;function ev(r,i){var c=ze(r),f=!c&&Wo(r),x=!c&&!f&&go(r),A=!c&&!f&&!x&&Li(r),L=c||f||x||A,F=L?Of(r.length,UA):[],U=F.length;for(var te in r)(i||bt.call(r,te))&&!(L&&(te=="length"||x&&(te=="offset"||te=="parent")||A&&(te=="buffer"||te=="byteLength"||te=="byteOffset")||Vr(te,U)))&&F.push(te);return F}function tv(r){var i=r.length;return i?r[Yf(0,i-1)]:n}function $M(r,i){return Tc(Cn(r),jo(i,0,r.length))}function DM(r){return Tc(Cn(r))}function jf(r,i,c){(c!==n&&!dr(r[i],c)||c===n&&!(i in r))&&Hr(r,i,c)}function js(r,i,c){var f=r[i];(!(bt.call(r,i)&&dr(f,c))||c===n&&!(i in r))&&Hr(r,i,c)}function mc(r,i){for(var c=r.length;c--;)if(dr(r[c][0],i))return c;return-1}function BM(r,i,c,f){return uo(r,function(x,A,L){i(f,x,c(x),L)}),f}function nv(r,i){return r&&Pr(i,Jt(i),r)}function LM(r,i){return r&&Pr(i,En(i),r)}function Hr(r,i,c){i=="__proto__"&&uc?uc(r,i,{configurable:!0,enumerable:!0,value:c,writable:!0}):r[i]=c}function Nf(r,i){for(var c=-1,f=i.length,x=Y(f),A=r==null;++c<f;)x[c]=A?n:bp(r,i[c]);return x}function jo(r,i,c){return r===r&&(c!==n&&(r=r<=c?r:c),i!==n&&(r=r>=i?r:i)),r}function er(r,i,c,f,x,A){var L,F=i&m,U=i&b,te=i&w;if(c&&(L=x?c(r,f,x,A):c(r)),L!==n)return L;if(!At(r))return r;var ne=ze(r);if(ne){if(L=E$(r),!F)return Cn(r,L)}else{var ie=dn(r),ye=ie==fe||ie==Pe;if(go(r))return Rv(r,F);if(ie==Ae||ie==Ke||ye&&!x){if(L=U||ye?{}:Gv(r),!F)return U?h$(r,LM(L,r)):p$(r,nv(L,r))}else{if(!Et[ie])return x?r:{};L=R$(r,ie,F)}}A||(A=new ur);var Ie=A.get(r);if(Ie)return Ie;A.set(r,L),xb(r)?r.forEach(function($e){L.add(er($e,i,c,$e,r,A))}):vb(r)&&r.forEach(function($e,tt){L.set(tt,er($e,i,c,tt,r,A))});var Me=te?U?ip:op:U?En:Jt,Je=ne?n:Me(r);return Jn(Je||r,function($e,tt){Je&&(tt=$e,$e=r[tt]),js(L,tt,er($e,i,c,tt,r,A))}),L}function jM(r){var i=Jt(r);return function(c){return rv(c,r,i)}}function rv(r,i,c){var f=c.length;if(r==null)return!f;for(r=Ct(r);f--;){var x=c[f],A=i[x],L=r[x];if(L===n&&!(x in r)||!A(L))return!1}return!0}function ov(r,i,c){if(typeof r!="function")throw new Zn(l);return Gs(function(){r.apply(n,c)},i)}function Ns(r,i,c,f){var x=-1,A=Ql,L=!0,F=r.length,U=[],te=i.length;if(!F)return U;c&&(i=Pt(i,Dn(c))),f?(A=Ef,L=!1):i.length>=s&&(A=As,L=!1,i=new Lo(i));e:for(;++x<F;){var ne=r[x],ie=c==null?ne:c(ne);if(ne=f||ne!==0?ne:0,L&&ie===ie){for(var ye=te;ye--;)if(i[ye]===ie)continue e;U.push(ne)}else A(i,ie,f)||U.push(ne)}return U}var uo=Ov(Tr),iv=Ov(zf,!0);function NM(r,i){var c=!0;return uo(r,function(f,x,A){return c=!!i(f,x,A),c}),c}function yc(r,i,c){for(var f=-1,x=r.length;++f<x;){var A=r[f],L=i(A);if(L!=null&&(F===n?L===L&&!Ln(L):c(L,F)))var F=L,U=A}return U}function FM(r,i,c,f){var x=r.length;for(c=qe(c),c<0&&(c=-c>x?0:x+c),f=f===n||f>x?x:qe(f),f<0&&(f+=x),f=c>f?0:Sb(f);c<f;)r[c++]=i;return r}function sv(r,i){var c=[];return uo(r,function(f,x,A){i(f,x,A)&&c.push(f)}),c}function nn(r,i,c,f,x){var A=-1,L=r.length;for(c||(c=k$),x||(x=[]);++A<L;){var F=r[A];i>0&&c(F)?i>1?nn(F,i-1,c,f,x):ao(x,F):f||(x[x.length]=F)}return x}var Ff=Av(),av=Av(!0);function Tr(r,i){return r&&Ff(r,i,Jt)}function zf(r,i){return r&&av(r,i,Jt)}function vc(r,i){return so(i,function(c){return Yr(r[c])})}function No(r,i){i=po(i,r);for(var c=0,f=i.length;r!=null&&c<f;)r=r[Or(i[c++])];return c&&c==f?r:n}function lv(r,i,c){var f=i(r);return ze(r)?f:ao(f,c(r))}function hn(r){return r==null?r===n?Ut:Ge:Do&&Do in Ct(r)?S$(r):D$(r)}function Wf(r,i){return r>i}function zM(r,i){return r!=null&&bt.call(r,i)}function WM(r,i){return r!=null&&i in Ct(r)}function UM(r,i,c){return r>=un(i,c)&&r<Vt(i,c)}function Uf(r,i,c){for(var f=c?Ef:Ql,x=r[0].length,A=r.length,L=A,F=Y(A),U=1/0,te=[];L--;){var ne=r[L];L&&i&&(ne=Pt(ne,Dn(i))),U=un(ne.length,U),F[L]=!c&&(i||x>=120&&ne.length>=120)?new Lo(L&&ne):n}ne=r[0];var ie=-1,ye=F[0];e:for(;++ie<x&&te.length<U;){var Ie=ne[ie],Me=i?i(Ie):Ie;if(Ie=c||Ie!==0?Ie:0,!(ye?As(ye,Me):f(te,Me,c))){for(L=A;--L;){var Je=F[L];if(!(Je?As(Je,Me):f(r[L],Me,c)))continue e}ye&&ye.push(Me),te.push(Ie)}}return te}function HM(r,i,c,f){return Tr(r,function(x,A,L){i(f,c(x),A,L)}),f}function Fs(r,i,c){i=po(i,r),r=Xv(r,i);var f=r==null?r:r[Or(nr(i))];return f==null?n:$n(f,r,c)}function cv(r){return Lt(r)&&hn(r)==Ke}function GM(r){return Lt(r)&&hn(r)==I}function qM(r){return Lt(r)&&hn(r)==de}function zs(r,i,c,f,x){return r===i?!0:r==null||i==null||!Lt(r)&&!Lt(i)?r!==r&&i!==i:VM(r,i,c,f,zs,x)}function VM(r,i,c,f,x,A){var L=ze(r),F=ze(i),U=L?He:dn(r),te=F?He:dn(i);U=U==Ke?Ae:U,te=te==Ke?Ae:te;var ne=U==Ae,ie=te==Ae,ye=U==te;if(ye&&go(r)){if(!go(i))return!1;L=!0,ne=!1}if(ye&&!ne)return A||(A=new ur),L||Li(r)?Wv(r,i,c,f,x,A):x$(r,i,U,c,f,x,A);if(!(c&S)){var Ie=ne&&bt.call(r,"__wrapped__"),Me=ie&&bt.call(i,"__wrapped__");if(Ie||Me){var Je=Ie?r.value():r,$e=Me?i.value():i;return A||(A=new ur),x(Je,$e,c,f,A)}}return ye?(A||(A=new ur),w$(r,i,c,f,x,A)):!1}function YM(r){return Lt(r)&&dn(r)==ve}function Hf(r,i,c,f){var x=c.length,A=x,L=!f;if(r==null)return!A;for(r=Ct(r);x--;){var F=c[x];if(L&&F[2]?F[1]!==r[F[0]]:!(F[0]in r))return!1}for(;++x<A;){F=c[x];var U=F[0],te=r[U],ne=F[1];if(L&&F[2]){if(te===n&&!(U in r))return!1}else{var ie=new ur;if(f)var ye=f(te,ne,U,r,i,ie);if(!(ye===n?zs(ne,te,S|E,f,ie):ye))return!1}}return!0}function uv(r){if(!At(r)||P$(r))return!1;var i=Yr(r)?YA:jO;return i.test(zo(r))}function XM(r){return Lt(r)&&hn(r)==et}function KM(r){return Lt(r)&&dn(r)==Le}function JM(r){return Lt(r)&&Dc(r.length)&&!!It[hn(r)]}function dv(r){return typeof r=="function"?r:r==null?Rn:typeof r=="object"?ze(r)?hv(r[0],r[1]):pv(r):Mb(r)}function Gf(r){if(!Hs(r))return eM(r);var i=[];for(var c in Ct(r))bt.call(r,c)&&c!="constructor"&&i.push(c);return i}function ZM(r){if(!At(r))return $$(r);var i=Hs(r),c=[];for(var f in r)f=="constructor"&&(i||!bt.call(r,f))||c.push(f);return c}function qf(r,i){return r<i}function fv(r,i){var c=-1,f=_n(r)?Y(r.length):[];return uo(r,function(x,A,L){f[++c]=i(x,A,L)}),f}function pv(r){var i=ap(r);return i.length==1&&i[0][2]?Vv(i[0][0],i[0][1]):function(c){return c===r||Hf(c,r,i)}}function hv(r,i){return cp(r)&&qv(i)?Vv(Or(r),i):function(c){var f=bp(c,r);return f===n&&f===i?xp(c,r):zs(i,f,S|E)}}function bc(r,i,c,f,x){r!==i&&Ff(i,function(A,L){if(x||(x=new ur),At(A))QM(r,i,L,c,bc,f,x);else{var F=f?f(dp(r,L),A,L+"",r,i,x):n;F===n&&(F=A),jf(r,L,F)}},En)}function QM(r,i,c,f,x,A,L){var F=dp(r,c),U=dp(i,c),te=L.get(U);if(te){jf(r,c,te);return}var ne=A?A(F,U,c+"",r,i,L):n,ie=ne===n;if(ie){var ye=ze(U),Ie=!ye&&go(U),Me=!ye&&!Ie&&Li(U);ne=U,ye||Ie||Me?ze(F)?ne=F:Nt(F)?ne=Cn(F):Ie?(ie=!1,ne=Rv(U,!0)):Me?(ie=!1,ne=Iv(U,!0)):ne=[]:qs(U)||Wo(U)?(ne=F,Wo(F)?ne=Cb(F):(!At(F)||Yr(F))&&(ne=Gv(U))):ie=!1}ie&&(L.set(U,ne),x(ne,U,f,A,L),L.delete(U)),jf(r,c,ne)}function gv(r,i){var c=r.length;if(c)return i+=i<0?c:0,Vr(i,c)?r[i]:n}function mv(r,i,c){i.length?i=Pt(i,function(A){return ze(A)?function(L){return No(L,A.length===1?A[0]:A)}:A}):i=[Rn];var f=-1;i=Pt(i,Dn(Oe()));var x=fv(r,function(A,L,F){var U=Pt(i,function(te){return te(A)});return{criteria:U,index:++f,value:A}});return RA(x,function(A,L){return f$(A,L,c)})}function e$(r,i){return yv(r,i,function(c,f){return xp(r,f)})}function yv(r,i,c){for(var f=-1,x=i.length,A={};++f<x;){var L=i[f],F=No(r,L);c(F,L)&&Ws(A,po(L,r),F)}return A}function t$(r){return function(i){return No(i,r)}}function Vf(r,i,c,f){var x=f?EA:Ri,A=-1,L=i.length,F=r;for(r===i&&(i=Cn(i)),c&&(F=Pt(r,Dn(c)));++A<L;)for(var U=0,te=i[A],ne=c?c(te):te;(U=x(F,ne,U,f))>-1;)F!==r&&cc.call(F,U,1),cc.call(r,U,1);return r}function vv(r,i){for(var c=r?i.length:0,f=c-1;c--;){var x=i[c];if(c==f||x!==A){var A=x;Vr(x)?cc.call(r,x,1):Jf(r,x)}}return r}function Yf(r,i){return r+fc(Zy()*(i-r+1))}function n$(r,i,c,f){for(var x=-1,A=Vt(dc((i-r)/(c||1)),0),L=Y(A);A--;)L[f?A:++x]=r,r+=c;return L}function Xf(r,i){var c="";if(!r||i<1||i>he)return c;do i%2&&(c+=r),i=fc(i/2),i&&(r+=r);while(i);return c}function Ze(r,i){return fp(Yv(r,i,Rn),r+"")}function r$(r){return tv(ji(r))}function o$(r,i){var c=ji(r);return Tc(c,jo(i,0,c.length))}function Ws(r,i,c,f){if(!At(r))return r;i=po(i,r);for(var x=-1,A=i.length,L=A-1,F=r;F!=null&&++x<A;){var U=Or(i[x]),te=c;if(U==="__proto__"||U==="constructor"||U==="prototype")return r;if(x!=L){var ne=F[U];te=f?f(ne,U,F):n,te===n&&(te=At(ne)?ne:Vr(i[x+1])?[]:{})}js(F,U,te),F=F[U]}return r}var bv=pc?function(r,i){return pc.set(r,i),r}:Rn,i$=uc?function(r,i){return uc(r,"toString",{configurable:!0,enumerable:!1,value:Sp(i),writable:!0})}:Rn;function s$(r){return Tc(ji(r))}function tr(r,i,c){var f=-1,x=r.length;i<0&&(i=-i>x?0:x+i),c=c>x?x:c,c<0&&(c+=x),x=i>c?0:c-i>>>0,i>>>=0;for(var A=Y(x);++f<x;)A[f]=r[f+i];return A}function a$(r,i){var c;return uo(r,function(f,x,A){return c=i(f,x,A),!c}),!!c}function xc(r,i,c){var f=0,x=r==null?f:r.length;if(typeof i=="number"&&i===i&&x<=De){for(;f<x;){var A=f+x>>>1,L=r[A];L!==null&&!Ln(L)&&(c?L<=i:L<i)?f=A+1:x=A}return x}return Kf(r,i,Rn,c)}function Kf(r,i,c,f){var x=0,A=r==null?0:r.length;if(A===0)return 0;i=c(i);for(var L=i!==i,F=i===null,U=Ln(i),te=i===n;x<A;){var ne=fc((x+A)/2),ie=c(r[ne]),ye=ie!==n,Ie=ie===null,Me=ie===ie,Je=Ln(ie);if(L)var $e=f||Me;else te?$e=Me&&(f||ye):F?$e=Me&&ye&&(f||!Ie):U?$e=Me&&ye&&!Ie&&(f||!Je):Ie||Je?$e=!1:$e=f?ie<=i:ie<i;$e?x=ne+1:A=ne}return un(A,Ce)}function xv(r,i){for(var c=-1,f=r.length,x=0,A=[];++c<f;){var L=r[c],F=i?i(L):L;if(!c||!dr(F,U)){var U=F;A[x++]=L===0?0:L}}return A}function wv(r){return typeof r=="number"?r:Ln(r)?we:+r}function Bn(r){if(typeof r=="string")return r;if(ze(r))return Pt(r,Bn)+"";if(Ln(r))return Qy?Qy.call(r):"";var i=r+"";return i=="0"&&1/r==-pe?"-0":i}function fo(r,i,c){var f=-1,x=Ql,A=r.length,L=!0,F=[],U=F;if(c)L=!1,x=Ef;else if(A>=s){var te=i?null:v$(r);if(te)return tc(te);L=!1,x=As,U=new Lo}else U=i?[]:F;e:for(;++f<A;){var ne=r[f],ie=i?i(ne):ne;if(ne=c||ne!==0?ne:0,L&&ie===ie){for(var ye=U.length;ye--;)if(U[ye]===ie)continue e;i&&U.push(ie),F.push(ne)}else x(U,ie,c)||(U!==F&&U.push(ie),F.push(ne))}return F}function Jf(r,i){return i=po(i,r),r=Xv(r,i),r==null||delete r[Or(nr(i))]}function Sv(r,i,c,f){return Ws(r,i,c(No(r,i)),f)}function wc(r,i,c,f){for(var x=r.length,A=f?x:-1;(f?A--:++A<x)&&i(r[A],A,r););return c?tr(r,f?0:A,f?A+1:x):tr(r,f?A+1:0,f?x:A)}function Cv(r,i){var c=r;return c instanceof nt&&(c=c.value()),Rf(i,function(f,x){return x.func.apply(x.thisArg,ao([f],x.args))},c)}function Zf(r,i,c){var f=r.length;if(f<2)return f?fo(r[0]):[];for(var x=-1,A=Y(f);++x<f;)for(var L=r[x],F=-1;++F<f;)F!=x&&(A[x]=Ns(A[x]||L,r[F],i,c));return fo(nn(A,1),i,c)}function _v(r,i,c){for(var f=-1,x=r.length,A=i.length,L={};++f<x;){var F=f<A?i[f]:n;c(L,r[f],F)}return L}function Qf(r){return Nt(r)?r:[]}function ep(r){return typeof r=="function"?r:Rn}function po(r,i){return ze(r)?r:cp(r,i)?[r]:Qv(mt(r))}var l$=Ze;function ho(r,i,c){var f=r.length;return c=c===n?f:c,!i&&c>=f?r:tr(r,i,c)}var Ev=XA||function(r){return tn.clearTimeout(r)};function Rv(r,i){if(i)return r.slice();var c=r.length,f=Vy?Vy(c):new r.constructor(c);return r.copy(f),f}function tp(r){var i=new r.constructor(r.byteLength);return new ac(i).set(new ac(r)),i}function c$(r,i){var c=i?tp(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.byteLength)}function u$(r){var i=new r.constructor(r.source,cy.exec(r));return i.lastIndex=r.lastIndex,i}function d$(r){return Ls?Ct(Ls.call(r)):{}}function Iv(r,i){var c=i?tp(r.buffer):r.buffer;return new r.constructor(c,r.byteOffset,r.length)}function kv(r,i){if(r!==i){var c=r!==n,f=r===null,x=r===r,A=Ln(r),L=i!==n,F=i===null,U=i===i,te=Ln(i);if(!F&&!te&&!A&&r>i||A&&L&&U&&!F&&!te||f&&L&&U||!c&&U||!x)return 1;if(!f&&!A&&!te&&r<i||te&&c&&x&&!f&&!A||F&&c&&x||!L&&x||!U)return-1}return 0}function f$(r,i,c){for(var f=-1,x=r.criteria,A=i.criteria,L=x.length,F=c.length;++f<L;){var U=kv(x[f],A[f]);if(U){if(f>=F)return U;var te=c[f];return U*(te=="desc"?-1:1)}}return r.index-i.index}function Tv(r,i,c,f){for(var x=-1,A=r.length,L=c.length,F=-1,U=i.length,te=Vt(A-L,0),ne=Y(U+te),ie=!f;++F<U;)ne[F]=i[F];for(;++x<L;)(ie||x<A)&&(ne[c[x]]=r[x]);for(;te--;)ne[F++]=r[x++];return ne}function Pv(r,i,c,f){for(var x=-1,A=r.length,L=-1,F=c.length,U=-1,te=i.length,ne=Vt(A-F,0),ie=Y(ne+te),ye=!f;++x<ne;)ie[x]=r[x];for(var Ie=x;++U<te;)ie[Ie+U]=i[U];for(;++L<F;)(ye||x<A)&&(ie[Ie+c[L]]=r[x++]);return ie}function Cn(r,i){var c=-1,f=r.length;for(i||(i=Y(f));++c<f;)i[c]=r[c];return i}function Pr(r,i,c,f){var x=!c;c||(c={});for(var A=-1,L=i.length;++A<L;){var F=i[A],U=f?f(c[F],r[F],F,c,r):n;U===n&&(U=r[F]),x?Hr(c,F,U):js(c,F,U)}return c}function p$(r,i){return Pr(r,lp(r),i)}function h$(r,i){return Pr(r,Uv(r),i)}function Sc(r,i){return function(c,f){var x=ze(c)?bA:BM,A=i?i():{};return x(c,r,Oe(f,2),A)}}function $i(r){return Ze(function(i,c){var f=-1,x=c.length,A=x>1?c[x-1]:n,L=x>2?c[2]:n;for(A=r.length>3&&typeof A=="function"?(x--,A):n,L&&gn(c[0],c[1],L)&&(A=x<3?n:A,x=1),i=Ct(i);++f<x;){var F=c[f];F&&r(i,F,f,A)}return i})}function Ov(r,i){return function(c,f){if(c==null)return c;if(!_n(c))return r(c,f);for(var x=c.length,A=i?x:-1,L=Ct(c);(i?A--:++A<x)&&f(L[A],A,L)!==!1;);return c}}function Av(r){return function(i,c,f){for(var x=-1,A=Ct(i),L=f(i),F=L.length;F--;){var U=L[r?F:++x];if(c(A[U],U,A)===!1)break}return i}}function g$(r,i,c){var f=i&P,x=Us(r);function A(){var L=this&&this!==tn&&this instanceof A?x:r;return L.apply(f?c:this,arguments)}return A}function Mv(r){return function(i){i=mt(i);var c=Ii(i)?cr(i):n,f=c?c[0]:i.charAt(0),x=c?ho(c,1).join(""):i.slice(1);return f[r]()+x}}function Di(r){return function(i){return Rf(Ob(Pb(i).replace(iA,"")),r,"")}}function Us(r){return function(){var i=arguments;switch(i.length){case 0:return new r;case 1:return new r(i[0]);case 2:return new r(i[0],i[1]);case 3:return new r(i[0],i[1],i[2]);case 4:return new r(i[0],i[1],i[2],i[3]);case 5:return new r(i[0],i[1],i[2],i[3],i[4]);case 6:return new r(i[0],i[1],i[2],i[3],i[4],i[5]);case 7:return new r(i[0],i[1],i[2],i[3],i[4],i[5],i[6])}var c=Mi(r.prototype),f=r.apply(c,i);return At(f)?f:c}}function m$(r,i,c){var f=Us(r);function x(){for(var A=arguments.length,L=Y(A),F=A,U=Bi(x);F--;)L[F]=arguments[F];var te=A<3&&L[0]!==U&&L[A-1]!==U?[]:lo(L,U);if(A-=te.length,A<c)return jv(r,i,Cc,x.placeholder,n,L,te,n,n,c-A);var ne=this&&this!==tn&&this instanceof x?f:r;return $n(ne,this,L)}return x}function $v(r){return function(i,c,f){var x=Ct(i);if(!_n(i)){var A=Oe(c,3);i=Jt(i),c=function(F){return A(x[F],F,x)}}var L=r(i,c,f);return L>-1?x[A?i[L]:L]:n}}function Dv(r){return qr(function(i){var c=i.length,f=c,x=Qn.prototype.thru;for(r&&i.reverse();f--;){var A=i[f];if(typeof A!="function")throw new Zn(l);if(x&&!L&&Ic(A)=="wrapper")var L=new Qn([],!0)}for(f=L?f:c;++f<c;){A=i[f];var F=Ic(A),U=F=="wrapper"?sp(A):n;U&&up(U[0])&&U[1]==(M|k|$|z)&&!U[4].length&&U[9]==1?L=L[Ic(U[0])].apply(L,U[3]):L=A.length==1&&up(A)?L[F]():L.thru(A)}return function(){var te=arguments,ne=te[0];if(L&&te.length==1&&ze(ne))return L.plant(ne).value();for(var ie=0,ye=c?i[ie].apply(this,te):ne;++ie<c;)ye=i[ie].call(this,ye);return ye}})}function Cc(r,i,c,f,x,A,L,F,U,te){var ne=i&M,ie=i&P,ye=i&C,Ie=i&(k|R),Me=i&V,Je=ye?n:Us(r);function $e(){for(var tt=arguments.length,ot=Y(tt),jn=tt;jn--;)ot[jn]=arguments[jn];if(Ie)var mn=Bi($e),Nn=kA(ot,mn);if(f&&(ot=Tv(ot,f,x,Ie)),A&&(ot=Pv(ot,A,L,Ie)),tt-=Nn,Ie&&tt<te){var Ft=lo(ot,mn);return jv(r,i,Cc,$e.placeholder,c,ot,Ft,F,U,te-tt)}var fr=ie?c:this,Kr=ye?fr[r]:r;return tt=ot.length,F?ot=B$(ot,F):Me&&tt>1&&ot.reverse(),ne&&U<tt&&(ot.length=U),this&&this!==tn&&this instanceof $e&&(Kr=Je||Us(Kr)),Kr.apply(fr,ot)}return $e}function Bv(r,i){return function(c,f){return HM(c,r,i(f),{})}}function _c(r,i){return function(c,f){var x;if(c===n&&f===n)return i;if(c!==n&&(x=c),f!==n){if(x===n)return f;typeof c=="string"||typeof f=="string"?(c=Bn(c),f=Bn(f)):(c=wv(c),f=wv(f)),x=r(c,f)}return x}}function np(r){return qr(function(i){return i=Pt(i,Dn(Oe())),Ze(function(c){var f=this;return r(i,function(x){return $n(x,f,c)})})})}function Ec(r,i){i=i===n?" ":Bn(i);var c=i.length;if(c<2)return c?Xf(i,r):i;var f=Xf(i,dc(r/ki(i)));return Ii(i)?ho(cr(f),0,r).join(""):f.slice(0,r)}function y$(r,i,c,f){var x=i&P,A=Us(r);function L(){for(var F=-1,U=arguments.length,te=-1,ne=f.length,ie=Y(ne+U),ye=this&&this!==tn&&this instanceof L?A:r;++te<ne;)ie[te]=f[te];for(;U--;)ie[te++]=arguments[++F];return $n(ye,x?c:this,ie)}return L}function Lv(r){return function(i,c,f){return f&&typeof f!="number"&&gn(i,c,f)&&(c=f=n),i=Xr(i),c===n?(c=i,i=0):c=Xr(c),f=f===n?i<c?1:-1:Xr(f),n$(i,c,f,r)}}function Rc(r){return function(i,c){return typeof i=="string"&&typeof c=="string"||(i=rr(i),c=rr(c)),r(i,c)}}function jv(r,i,c,f,x,A,L,F,U,te){var ne=i&k,ie=ne?L:n,ye=ne?n:L,Ie=ne?A:n,Me=ne?n:A;i|=ne?$:B,i&=~(ne?B:$),i&O||(i&=~(P|C));var Je=[r,i,x,Ie,ie,Me,ye,F,U,te],$e=c.apply(n,Je);return up(r)&&Kv($e,Je),$e.placeholder=f,Jv($e,r,i)}function rp(r){var i=qt[r];return function(c,f){if(c=rr(c),f=f==null?0:un(qe(f),292),f&&Jy(c)){var x=(mt(c)+"e").split("e"),A=i(x[0]+"e"+(+x[1]+f));return x=(mt(A)+"e").split("e"),+(x[0]+"e"+(+x[1]-f))}return i(c)}}var v$=Oi&&1/tc(new Oi([,-0]))[1]==pe?function(r){return new Oi(r)}:Ep;function Nv(r){return function(i){var c=dn(i);return c==ve?Mf(i):c==Le?DA(i):IA(i,r(i))}}function Gr(r,i,c,f,x,A,L,F){var U=i&C;if(!U&&typeof r!="function")throw new Zn(l);var te=f?f.length:0;if(te||(i&=~($|B),f=x=n),L=L===n?L:Vt(qe(L),0),F=F===n?F:qe(F),te-=x?x.length:0,i&B){var ne=f,ie=x;f=x=n}var ye=U?n:sp(r),Ie=[r,i,c,f,x,ne,ie,A,L,F];if(ye&&M$(Ie,ye),r=Ie[0],i=Ie[1],c=Ie[2],f=Ie[3],x=Ie[4],F=Ie[9]=Ie[9]===n?U?0:r.length:Vt(Ie[9]-te,0),!F&&i&(k|R)&&(i&=~(k|R)),!i||i==P)var Me=g$(r,i,c);else i==k||i==R?Me=m$(r,i,F):(i==$||i==(P|$))&&!x.length?Me=y$(r,i,c,f):Me=Cc.apply(n,Ie);var Je=ye?bv:Kv;return Jv(Je(Me,Ie),r,i)}function Fv(r,i,c,f){return r===n||dr(r,Pi[c])&&!bt.call(f,c)?i:r}function zv(r,i,c,f,x,A){return At(r)&&At(i)&&(A.set(i,r),bc(r,i,n,zv,A),A.delete(i)),r}function b$(r){return qs(r)?n:r}function Wv(r,i,c,f,x,A){var L=c&S,F=r.length,U=i.length;if(F!=U&&!(L&&U>F))return!1;var te=A.get(r),ne=A.get(i);if(te&&ne)return te==i&&ne==r;var ie=-1,ye=!0,Ie=c&E?new Lo:n;for(A.set(r,i),A.set(i,r);++ie<F;){var Me=r[ie],Je=i[ie];if(f)var $e=L?f(Je,Me,ie,i,r,A):f(Me,Je,ie,r,i,A);if($e!==n){if($e)continue;ye=!1;break}if(Ie){if(!If(i,function(tt,ot){if(!As(Ie,ot)&&(Me===tt||x(Me,tt,c,f,A)))return Ie.push(ot)})){ye=!1;break}}else if(!(Me===Je||x(Me,Je,c,f,A))){ye=!1;break}}return A.delete(r),A.delete(i),ye}function x$(r,i,c,f,x,A,L){switch(c){case p:if(r.byteLength!=i.byteLength||r.byteOffset!=i.byteOffset)return!1;r=r.buffer,i=i.buffer;case I:return!(r.byteLength!=i.byteLength||!A(new ac(r),new ac(i)));case ae:case de:case Be:return dr(+r,+i);case me:return r.name==i.name&&r.message==i.message;case et:case xe:return r==i+"";case ve:var F=Mf;case Le:var U=f&S;if(F||(F=tc),r.size!=i.size&&!U)return!1;var te=L.get(r);if(te)return te==i;f|=E,L.set(r,i);var ne=Wv(F(r),F(i),f,x,A,L);return L.delete(r),ne;case ut:if(Ls)return Ls.call(r)==Ls.call(i)}return!1}function w$(r,i,c,f,x,A){var L=c&S,F=op(r),U=F.length,te=op(i),ne=te.length;if(U!=ne&&!L)return!1;for(var ie=U;ie--;){var ye=F[ie];if(!(L?ye in i:bt.call(i,ye)))return!1}var Ie=A.get(r),Me=A.get(i);if(Ie&&Me)return Ie==i&&Me==r;var Je=!0;A.set(r,i),A.set(i,r);for(var $e=L;++ie<U;){ye=F[ie];var tt=r[ye],ot=i[ye];if(f)var jn=L?f(ot,tt,ye,i,r,A):f(tt,ot,ye,r,i,A);if(!(jn===n?tt===ot||x(tt,ot,c,f,A):jn)){Je=!1;break}$e||($e=ye=="constructor")}if(Je&&!$e){var mn=r.constructor,Nn=i.constructor;mn!=Nn&&"constructor"in r&&"constructor"in i&&!(typeof mn=="function"&&mn instanceof mn&&typeof Nn=="function"&&Nn instanceof Nn)&&(Je=!1)}return A.delete(r),A.delete(i),Je}function qr(r){return fp(Yv(r,n,rb),r+"")}function op(r){return lv(r,Jt,lp)}function ip(r){return lv(r,En,Uv)}var sp=pc?function(r){return pc.get(r)}:Ep;function Ic(r){for(var i=r.name+"",c=Ai[i],f=bt.call(Ai,i)?c.length:0;f--;){var x=c[f],A=x.func;if(A==null||A==r)return x.name}return i}function Bi(r){var i=bt.call(T,"placeholder")?T:r;return i.placeholder}function Oe(){var r=T.iteratee||Cp;return r=r===Cp?dv:r,arguments.length?r(arguments[0],arguments[1]):r}function kc(r,i){var c=r.__data__;return T$(i)?c[typeof i=="string"?"string":"hash"]:c.map}function ap(r){for(var i=Jt(r),c=i.length;c--;){var f=i[c],x=r[f];i[c]=[f,x,qv(x)]}return i}function Fo(r,i){var c=AA(r,i);return uv(c)?c:n}function S$(r){var i=bt.call(r,Do),c=r[Do];try{r[Do]=n;var f=!0}catch{}var x=ic.call(r);return f&&(i?r[Do]=c:delete r[Do]),x}var lp=Df?function(r){return r==null?[]:(r=Ct(r),so(Df(r),function(i){return Xy.call(r,i)}))}:Rp,Uv=Df?function(r){for(var i=[];r;)ao(i,lp(r)),r=lc(r);return i}:Rp,dn=hn;(Bf&&dn(new Bf(new ArrayBuffer(1)))!=p||$s&&dn(new $s)!=ve||Lf&&dn(Lf.resolve())!=ke||Oi&&dn(new Oi)!=Le||Ds&&dn(new Ds)!=Ht)&&(dn=function(r){var i=hn(r),c=i==Ae?r.constructor:n,f=c?zo(c):"";if(f)switch(f){case oM:return p;case iM:return ve;case sM:return ke;case aM:return Le;case lM:return Ht}return i});function C$(r,i,c){for(var f=-1,x=c.length;++f<x;){var A=c[f],L=A.size;switch(A.type){case"drop":r+=L;break;case"dropRight":i-=L;break;case"take":i=un(i,r+L);break;case"takeRight":r=Vt(r,i-L);break}}return{start:r,end:i}}function _$(r){var i=r.match(PO);return i?i[1].split(OO):[]}function Hv(r,i,c){i=po(i,r);for(var f=-1,x=i.length,A=!1;++f<x;){var L=Or(i[f]);if(!(A=r!=null&&c(r,L)))break;r=r[L]}return A||++f!=x?A:(x=r==null?0:r.length,!!x&&Dc(x)&&Vr(L,x)&&(ze(r)||Wo(r)))}function E$(r){var i=r.length,c=new r.constructor(i);return i&&typeof r[0]=="string"&&bt.call(r,"index")&&(c.index=r.index,c.input=r.input),c}function Gv(r){return typeof r.constructor=="function"&&!Hs(r)?Mi(lc(r)):{}}function R$(r,i,c){var f=r.constructor;switch(i){case I:return tp(r);case ae:case de:return new f(+r);case p:return c$(r,c);case g:case D:case N:case q:case J:case ce:case oe:case se:case Ee:return Iv(r,c);case ve:return new f;case Be:case xe:return new f(r);case et:return u$(r);case Le:return new f;case ut:return d$(r)}}function I$(r,i){var c=i.length;if(!c)return r;var f=c-1;return i[f]=(c>1?"& ":"")+i[f],i=i.join(c>2?", ":" "),r.replace(TO,`{
|
|
677
|
+
/* [wrapped with `+i+`] */
|
|
678
|
+
`)}function k$(r){return ze(r)||Wo(r)||!!(Ky&&r&&r[Ky])}function Vr(r,i){var c=typeof r;return i=i??he,!!i&&(c=="number"||c!="symbol"&&FO.test(r))&&r>-1&&r%1==0&&r<i}function gn(r,i,c){if(!At(c))return!1;var f=typeof i;return(f=="number"?_n(c)&&Vr(i,c.length):f=="string"&&i in c)?dr(c[i],r):!1}function cp(r,i){if(ze(r))return!1;var c=typeof r;return c=="number"||c=="symbol"||c=="boolean"||r==null||Ln(r)?!0:EO.test(r)||!_O.test(r)||i!=null&&r in Ct(i)}function T$(r){var i=typeof r;return i=="string"||i=="number"||i=="symbol"||i=="boolean"?r!=="__proto__":r===null}function up(r){var i=Ic(r),c=T[i];if(typeof c!="function"||!(i in nt.prototype))return!1;if(r===c)return!0;var f=sp(c);return!!f&&r===f[0]}function P$(r){return!!qy&&qy in r}var O$=rc?Yr:Ip;function Hs(r){var i=r&&r.constructor,c=typeof i=="function"&&i.prototype||Pi;return r===c}function qv(r){return r===r&&!At(r)}function Vv(r,i){return function(c){return c==null?!1:c[r]===i&&(i!==n||r in Ct(c))}}function A$(r){var i=Mc(r,function(f){return c.size===h&&c.clear(),f}),c=i.cache;return i}function M$(r,i){var c=r[1],f=i[1],x=c|f,A=x<(P|C|M),L=f==M&&c==k||f==M&&c==z&&r[7].length<=i[8]||f==(M|z)&&i[7].length<=i[8]&&c==k;if(!(A||L))return r;f&P&&(r[2]=i[2],x|=c&P?0:O);var F=i[3];if(F){var U=r[3];r[3]=U?Tv(U,F,i[4]):F,r[4]=U?lo(r[3],y):i[4]}return F=i[5],F&&(U=r[5],r[5]=U?Pv(U,F,i[6]):F,r[6]=U?lo(r[5],y):i[6]),F=i[7],F&&(r[7]=F),f&M&&(r[8]=r[8]==null?i[8]:un(r[8],i[8])),r[9]==null&&(r[9]=i[9]),r[0]=i[0],r[1]=x,r}function $$(r){var i=[];if(r!=null)for(var c in Ct(r))i.push(c);return i}function D$(r){return ic.call(r)}function Yv(r,i,c){return i=Vt(i===n?r.length-1:i,0),function(){for(var f=arguments,x=-1,A=Vt(f.length-i,0),L=Y(A);++x<A;)L[x]=f[i+x];x=-1;for(var F=Y(i+1);++x<i;)F[x]=f[x];return F[i]=c(L),$n(r,this,F)}}function Xv(r,i){return i.length<2?r:No(r,tr(i,0,-1))}function B$(r,i){for(var c=r.length,f=un(i.length,c),x=Cn(r);f--;){var A=i[f];r[f]=Vr(A,c)?x[A]:n}return r}function dp(r,i){if(!(i==="constructor"&&typeof r[i]=="function")&&i!="__proto__")return r[i]}var Kv=Zv(bv),Gs=JA||function(r,i){return tn.setTimeout(r,i)},fp=Zv(i$);function Jv(r,i,c){var f=i+"";return fp(r,I$(f,L$(_$(f),c)))}function Zv(r){var i=0,c=0;return function(){var f=tM(),x=H-(f-c);if(c=f,x>0){if(++i>=re)return arguments[0]}else i=0;return r.apply(n,arguments)}}function Tc(r,i){var c=-1,f=r.length,x=f-1;for(i=i===n?f:i;++c<i;){var A=Yf(c,x),L=r[A];r[A]=r[c],r[c]=L}return r.length=i,r}var Qv=A$(function(r){var i=[];return r.charCodeAt(0)===46&&i.push(""),r.replace(RO,function(c,f,x,A){i.push(x?A.replace($O,"$1"):f||c)}),i});function Or(r){if(typeof r=="string"||Ln(r))return r;var i=r+"";return i=="0"&&1/r==-pe?"-0":i}function zo(r){if(r!=null){try{return oc.call(r)}catch{}try{return r+""}catch{}}return""}function L$(r,i){return Jn(Xe,function(c){var f="_."+c[0];i&c[1]&&!Ql(r,f)&&r.push(f)}),r.sort()}function eb(r){if(r instanceof nt)return r.clone();var i=new Qn(r.__wrapped__,r.__chain__);return i.__actions__=Cn(r.__actions__),i.__index__=r.__index__,i.__values__=r.__values__,i}function j$(r,i,c){(c?gn(r,i,c):i===n)?i=1:i=Vt(qe(i),0);var f=r==null?0:r.length;if(!f||i<1)return[];for(var x=0,A=0,L=Y(dc(f/i));x<f;)L[A++]=tr(r,x,x+=i);return L}function N$(r){for(var i=-1,c=r==null?0:r.length,f=0,x=[];++i<c;){var A=r[i];A&&(x[f++]=A)}return x}function F$(){var r=arguments.length;if(!r)return[];for(var i=Y(r-1),c=arguments[0],f=r;f--;)i[f-1]=arguments[f];return ao(ze(c)?Cn(c):[c],nn(i,1))}var z$=Ze(function(r,i){return Nt(r)?Ns(r,nn(i,1,Nt,!0)):[]}),W$=Ze(function(r,i){var c=nr(i);return Nt(c)&&(c=n),Nt(r)?Ns(r,nn(i,1,Nt,!0),Oe(c,2)):[]}),U$=Ze(function(r,i){var c=nr(i);return Nt(c)&&(c=n),Nt(r)?Ns(r,nn(i,1,Nt,!0),n,c):[]});function H$(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),tr(r,i<0?0:i,f)):[]}function G$(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),i=f-i,tr(r,0,i<0?0:i)):[]}function q$(r,i){return r&&r.length?wc(r,Oe(i,3),!0,!0):[]}function V$(r,i){return r&&r.length?wc(r,Oe(i,3),!0):[]}function Y$(r,i,c,f){var x=r==null?0:r.length;return x?(c&&typeof c!="number"&&gn(r,i,c)&&(c=0,f=x),FM(r,i,c,f)):[]}function tb(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=c==null?0:qe(c);return x<0&&(x=Vt(f+x,0)),ec(r,Oe(i,3),x)}function nb(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=f-1;return c!==n&&(x=qe(c),x=c<0?Vt(f+x,0):un(x,f-1)),ec(r,Oe(i,3),x,!0)}function rb(r){var i=r==null?0:r.length;return i?nn(r,1):[]}function X$(r){var i=r==null?0:r.length;return i?nn(r,pe):[]}function K$(r,i){var c=r==null?0:r.length;return c?(i=i===n?1:qe(i),nn(r,i)):[]}function J$(r){for(var i=-1,c=r==null?0:r.length,f={};++i<c;){var x=r[i];f[x[0]]=x[1]}return f}function ob(r){return r&&r.length?r[0]:n}function Z$(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=c==null?0:qe(c);return x<0&&(x=Vt(f+x,0)),Ri(r,i,x)}function Q$(r){var i=r==null?0:r.length;return i?tr(r,0,-1):[]}var eD=Ze(function(r){var i=Pt(r,Qf);return i.length&&i[0]===r[0]?Uf(i):[]}),tD=Ze(function(r){var i=nr(r),c=Pt(r,Qf);return i===nr(c)?i=n:c.pop(),c.length&&c[0]===r[0]?Uf(c,Oe(i,2)):[]}),nD=Ze(function(r){var i=nr(r),c=Pt(r,Qf);return i=typeof i=="function"?i:n,i&&c.pop(),c.length&&c[0]===r[0]?Uf(c,n,i):[]});function rD(r,i){return r==null?"":QA.call(r,i)}function nr(r){var i=r==null?0:r.length;return i?r[i-1]:n}function oD(r,i,c){var f=r==null?0:r.length;if(!f)return-1;var x=f;return c!==n&&(x=qe(c),x=x<0?Vt(f+x,0):un(x,f-1)),i===i?LA(r,i,x):ec(r,jy,x,!0)}function iD(r,i){return r&&r.length?gv(r,qe(i)):n}var sD=Ze(ib);function ib(r,i){return r&&r.length&&i&&i.length?Vf(r,i):r}function aD(r,i,c){return r&&r.length&&i&&i.length?Vf(r,i,Oe(c,2)):r}function lD(r,i,c){return r&&r.length&&i&&i.length?Vf(r,i,n,c):r}var cD=qr(function(r,i){var c=r==null?0:r.length,f=Nf(r,i);return vv(r,Pt(i,function(x){return Vr(x,c)?+x:x}).sort(kv)),f});function uD(r,i){var c=[];if(!(r&&r.length))return c;var f=-1,x=[],A=r.length;for(i=Oe(i,3);++f<A;){var L=r[f];i(L,f,r)&&(c.push(L),x.push(f))}return vv(r,x),c}function pp(r){return r==null?r:rM.call(r)}function dD(r,i,c){var f=r==null?0:r.length;return f?(c&&typeof c!="number"&&gn(r,i,c)?(i=0,c=f):(i=i==null?0:qe(i),c=c===n?f:qe(c)),tr(r,i,c)):[]}function fD(r,i){return xc(r,i)}function pD(r,i,c){return Kf(r,i,Oe(c,2))}function hD(r,i){var c=r==null?0:r.length;if(c){var f=xc(r,i);if(f<c&&dr(r[f],i))return f}return-1}function gD(r,i){return xc(r,i,!0)}function mD(r,i,c){return Kf(r,i,Oe(c,2),!0)}function yD(r,i){var c=r==null?0:r.length;if(c){var f=xc(r,i,!0)-1;if(dr(r[f],i))return f}return-1}function vD(r){return r&&r.length?xv(r):[]}function bD(r,i){return r&&r.length?xv(r,Oe(i,2)):[]}function xD(r){var i=r==null?0:r.length;return i?tr(r,1,i):[]}function wD(r,i,c){return r&&r.length?(i=c||i===n?1:qe(i),tr(r,0,i<0?0:i)):[]}function SD(r,i,c){var f=r==null?0:r.length;return f?(i=c||i===n?1:qe(i),i=f-i,tr(r,i<0?0:i,f)):[]}function CD(r,i){return r&&r.length?wc(r,Oe(i,3),!1,!0):[]}function _D(r,i){return r&&r.length?wc(r,Oe(i,3)):[]}var ED=Ze(function(r){return fo(nn(r,1,Nt,!0))}),RD=Ze(function(r){var i=nr(r);return Nt(i)&&(i=n),fo(nn(r,1,Nt,!0),Oe(i,2))}),ID=Ze(function(r){var i=nr(r);return i=typeof i=="function"?i:n,fo(nn(r,1,Nt,!0),n,i)});function kD(r){return r&&r.length?fo(r):[]}function TD(r,i){return r&&r.length?fo(r,Oe(i,2)):[]}function PD(r,i){return i=typeof i=="function"?i:n,r&&r.length?fo(r,n,i):[]}function hp(r){if(!(r&&r.length))return[];var i=0;return r=so(r,function(c){if(Nt(c))return i=Vt(c.length,i),!0}),Of(i,function(c){return Pt(r,kf(c))})}function sb(r,i){if(!(r&&r.length))return[];var c=hp(r);return i==null?c:Pt(c,function(f){return $n(i,n,f)})}var OD=Ze(function(r,i){return Nt(r)?Ns(r,i):[]}),AD=Ze(function(r){return Zf(so(r,Nt))}),MD=Ze(function(r){var i=nr(r);return Nt(i)&&(i=n),Zf(so(r,Nt),Oe(i,2))}),$D=Ze(function(r){var i=nr(r);return i=typeof i=="function"?i:n,Zf(so(r,Nt),n,i)}),DD=Ze(hp);function BD(r,i){return _v(r||[],i||[],js)}function LD(r,i){return _v(r||[],i||[],Ws)}var jD=Ze(function(r){var i=r.length,c=i>1?r[i-1]:n;return c=typeof c=="function"?(r.pop(),c):n,sb(r,c)});function ab(r){var i=T(r);return i.__chain__=!0,i}function ND(r,i){return i(r),r}function Pc(r,i){return i(r)}var FD=qr(function(r){var i=r.length,c=i?r[0]:0,f=this.__wrapped__,x=function(A){return Nf(A,r)};return i>1||this.__actions__.length||!(f instanceof nt)||!Vr(c)?this.thru(x):(f=f.slice(c,+c+(i?1:0)),f.__actions__.push({func:Pc,args:[x],thisArg:n}),new Qn(f,this.__chain__).thru(function(A){return i&&!A.length&&A.push(n),A}))});function zD(){return ab(this)}function WD(){return new Qn(this.value(),this.__chain__)}function UD(){this.__values__===n&&(this.__values__=wb(this.value()));var r=this.__index__>=this.__values__.length,i=r?n:this.__values__[this.__index__++];return{done:r,value:i}}function HD(){return this}function GD(r){for(var i,c=this;c instanceof gc;){var f=eb(c);f.__index__=0,f.__values__=n,i?x.__wrapped__=f:i=f;var x=f;c=c.__wrapped__}return x.__wrapped__=r,i}function qD(){var r=this.__wrapped__;if(r instanceof nt){var i=r;return this.__actions__.length&&(i=new nt(this)),i=i.reverse(),i.__actions__.push({func:Pc,args:[pp],thisArg:n}),new Qn(i,this.__chain__)}return this.thru(pp)}function VD(){return Cv(this.__wrapped__,this.__actions__)}var YD=Sc(function(r,i,c){bt.call(r,c)?++r[c]:Hr(r,c,1)});function XD(r,i,c){var f=ze(r)?By:NM;return c&&gn(r,i,c)&&(i=n),f(r,Oe(i,3))}function KD(r,i){var c=ze(r)?so:sv;return c(r,Oe(i,3))}var JD=$v(tb),ZD=$v(nb);function QD(r,i){return nn(Oc(r,i),1)}function eB(r,i){return nn(Oc(r,i),pe)}function tB(r,i,c){return c=c===n?1:qe(c),nn(Oc(r,i),c)}function lb(r,i){var c=ze(r)?Jn:uo;return c(r,Oe(i,3))}function cb(r,i){var c=ze(r)?xA:iv;return c(r,Oe(i,3))}var nB=Sc(function(r,i,c){bt.call(r,c)?r[c].push(i):Hr(r,c,[i])});function rB(r,i,c,f){r=_n(r)?r:ji(r),c=c&&!f?qe(c):0;var x=r.length;return c<0&&(c=Vt(x+c,0)),Bc(r)?c<=x&&r.indexOf(i,c)>-1:!!x&&Ri(r,i,c)>-1}var oB=Ze(function(r,i,c){var f=-1,x=typeof i=="function",A=_n(r)?Y(r.length):[];return uo(r,function(L){A[++f]=x?$n(i,L,c):Fs(L,i,c)}),A}),iB=Sc(function(r,i,c){Hr(r,c,i)});function Oc(r,i){var c=ze(r)?Pt:fv;return c(r,Oe(i,3))}function sB(r,i,c,f){return r==null?[]:(ze(i)||(i=i==null?[]:[i]),c=f?n:c,ze(c)||(c=c==null?[]:[c]),mv(r,i,c))}var aB=Sc(function(r,i,c){r[c?0:1].push(i)},function(){return[[],[]]});function lB(r,i,c){var f=ze(r)?Rf:Fy,x=arguments.length<3;return f(r,Oe(i,4),c,x,uo)}function cB(r,i,c){var f=ze(r)?wA:Fy,x=arguments.length<3;return f(r,Oe(i,4),c,x,iv)}function uB(r,i){var c=ze(r)?so:sv;return c(r,$c(Oe(i,3)))}function dB(r){var i=ze(r)?tv:r$;return i(r)}function fB(r,i,c){(c?gn(r,i,c):i===n)?i=1:i=qe(i);var f=ze(r)?$M:o$;return f(r,i)}function pB(r){var i=ze(r)?DM:s$;return i(r)}function hB(r){if(r==null)return 0;if(_n(r))return Bc(r)?ki(r):r.length;var i=dn(r);return i==ve||i==Le?r.size:Gf(r).length}function gB(r,i,c){var f=ze(r)?If:a$;return c&&gn(r,i,c)&&(i=n),f(r,Oe(i,3))}var mB=Ze(function(r,i){if(r==null)return[];var c=i.length;return c>1&&gn(r,i[0],i[1])?i=[]:c>2&&gn(i[0],i[1],i[2])&&(i=[i[0]]),mv(r,nn(i,1),[])}),Ac=KA||function(){return tn.Date.now()};function yB(r,i){if(typeof i!="function")throw new Zn(l);return r=qe(r),function(){if(--r<1)return i.apply(this,arguments)}}function ub(r,i,c){return i=c?n:i,i=r&&i==null?r.length:i,Gr(r,M,n,n,n,n,i)}function db(r,i){var c;if(typeof i!="function")throw new Zn(l);return r=qe(r),function(){return--r>0&&(c=i.apply(this,arguments)),r<=1&&(i=n),c}}var gp=Ze(function(r,i,c){var f=P;if(c.length){var x=lo(c,Bi(gp));f|=$}return Gr(r,f,i,c,x)}),fb=Ze(function(r,i,c){var f=P|C;if(c.length){var x=lo(c,Bi(fb));f|=$}return Gr(i,f,r,c,x)});function pb(r,i,c){i=c?n:i;var f=Gr(r,k,n,n,n,n,n,i);return f.placeholder=pb.placeholder,f}function hb(r,i,c){i=c?n:i;var f=Gr(r,R,n,n,n,n,n,i);return f.placeholder=hb.placeholder,f}function gb(r,i,c){var f,x,A,L,F,U,te=0,ne=!1,ie=!1,ye=!0;if(typeof r!="function")throw new Zn(l);i=rr(i)||0,At(c)&&(ne=!!c.leading,ie="maxWait"in c,A=ie?Vt(rr(c.maxWait)||0,i):A,ye="trailing"in c?!!c.trailing:ye);function Ie(Ft){var fr=f,Kr=x;return f=x=n,te=Ft,L=r.apply(Kr,fr),L}function Me(Ft){return te=Ft,F=Gs(tt,i),ne?Ie(Ft):L}function Je(Ft){var fr=Ft-U,Kr=Ft-te,$b=i-fr;return ie?un($b,A-Kr):$b}function $e(Ft){var fr=Ft-U,Kr=Ft-te;return U===n||fr>=i||fr<0||ie&&Kr>=A}function tt(){var Ft=Ac();if($e(Ft))return ot(Ft);F=Gs(tt,Je(Ft))}function ot(Ft){return F=n,ye&&f?Ie(Ft):(f=x=n,L)}function jn(){F!==n&&Ev(F),te=0,f=U=x=F=n}function mn(){return F===n?L:ot(Ac())}function Nn(){var Ft=Ac(),fr=$e(Ft);if(f=arguments,x=this,U=Ft,fr){if(F===n)return Me(U);if(ie)return Ev(F),F=Gs(tt,i),Ie(U)}return F===n&&(F=Gs(tt,i)),L}return Nn.cancel=jn,Nn.flush=mn,Nn}var vB=Ze(function(r,i){return ov(r,1,i)}),bB=Ze(function(r,i,c){return ov(r,rr(i)||0,c)});function xB(r){return Gr(r,V)}function Mc(r,i){if(typeof r!="function"||i!=null&&typeof i!="function")throw new Zn(l);var c=function(){var f=arguments,x=i?i.apply(this,f):f[0],A=c.cache;if(A.has(x))return A.get(x);var L=r.apply(this,f);return c.cache=A.set(x,L)||A,L};return c.cache=new(Mc.Cache||Ur),c}Mc.Cache=Ur;function $c(r){if(typeof r!="function")throw new Zn(l);return function(){var i=arguments;switch(i.length){case 0:return!r.call(this);case 1:return!r.call(this,i[0]);case 2:return!r.call(this,i[0],i[1]);case 3:return!r.call(this,i[0],i[1],i[2])}return!r.apply(this,i)}}function wB(r){return db(2,r)}var SB=l$(function(r,i){i=i.length==1&&ze(i[0])?Pt(i[0],Dn(Oe())):Pt(nn(i,1),Dn(Oe()));var c=i.length;return Ze(function(f){for(var x=-1,A=un(f.length,c);++x<A;)f[x]=i[x].call(this,f[x]);return $n(r,this,f)})}),mp=Ze(function(r,i){var c=lo(i,Bi(mp));return Gr(r,$,n,i,c)}),mb=Ze(function(r,i){var c=lo(i,Bi(mb));return Gr(r,B,n,i,c)}),CB=qr(function(r,i){return Gr(r,z,n,n,n,i)});function _B(r,i){if(typeof r!="function")throw new Zn(l);return i=i===n?i:qe(i),Ze(r,i)}function EB(r,i){if(typeof r!="function")throw new Zn(l);return i=i==null?0:Vt(qe(i),0),Ze(function(c){var f=c[i],x=ho(c,0,i);return f&&ao(x,f),$n(r,this,x)})}function RB(r,i,c){var f=!0,x=!0;if(typeof r!="function")throw new Zn(l);return At(c)&&(f="leading"in c?!!c.leading:f,x="trailing"in c?!!c.trailing:x),gb(r,i,{leading:f,maxWait:i,trailing:x})}function IB(r){return ub(r,1)}function kB(r,i){return mp(ep(i),r)}function TB(){if(!arguments.length)return[];var r=arguments[0];return ze(r)?r:[r]}function PB(r){return er(r,w)}function OB(r,i){return i=typeof i=="function"?i:n,er(r,w,i)}function AB(r){return er(r,m|w)}function MB(r,i){return i=typeof i=="function"?i:n,er(r,m|w,i)}function $B(r,i){return i==null||rv(r,i,Jt(i))}function dr(r,i){return r===i||r!==r&&i!==i}var DB=Rc(Wf),BB=Rc(function(r,i){return r>=i}),Wo=cv(function(){return arguments}())?cv:function(r){return Lt(r)&&bt.call(r,"callee")&&!Xy.call(r,"callee")},ze=Y.isArray,LB=Py?Dn(Py):GM;function _n(r){return r!=null&&Dc(r.length)&&!Yr(r)}function Nt(r){return Lt(r)&&_n(r)}function jB(r){return r===!0||r===!1||Lt(r)&&hn(r)==ae}var go=ZA||Ip,NB=Oy?Dn(Oy):qM;function FB(r){return Lt(r)&&r.nodeType===1&&!qs(r)}function zB(r){if(r==null)return!0;if(_n(r)&&(ze(r)||typeof r=="string"||typeof r.splice=="function"||go(r)||Li(r)||Wo(r)))return!r.length;var i=dn(r);if(i==ve||i==Le)return!r.size;if(Hs(r))return!Gf(r).length;for(var c in r)if(bt.call(r,c))return!1;return!0}function WB(r,i){return zs(r,i)}function UB(r,i,c){c=typeof c=="function"?c:n;var f=c?c(r,i):n;return f===n?zs(r,i,n,c):!!f}function yp(r){if(!Lt(r))return!1;var i=hn(r);return i==me||i==ge||typeof r.message=="string"&&typeof r.name=="string"&&!qs(r)}function HB(r){return typeof r=="number"&&Jy(r)}function Yr(r){if(!At(r))return!1;var i=hn(r);return i==fe||i==Pe||i==gt||i==We}function yb(r){return typeof r=="number"&&r==qe(r)}function Dc(r){return typeof r=="number"&&r>-1&&r%1==0&&r<=he}function At(r){var i=typeof r;return r!=null&&(i=="object"||i=="function")}function Lt(r){return r!=null&&typeof r=="object"}var vb=Ay?Dn(Ay):YM;function GB(r,i){return r===i||Hf(r,i,ap(i))}function qB(r,i,c){return c=typeof c=="function"?c:n,Hf(r,i,ap(i),c)}function VB(r){return bb(r)&&r!=+r}function YB(r){if(O$(r))throw new Fe(a);return uv(r)}function XB(r){return r===null}function KB(r){return r==null}function bb(r){return typeof r=="number"||Lt(r)&&hn(r)==Be}function qs(r){if(!Lt(r)||hn(r)!=Ae)return!1;var i=lc(r);if(i===null)return!0;var c=bt.call(i,"constructor")&&i.constructor;return typeof c=="function"&&c instanceof c&&oc.call(c)==qA}var vp=My?Dn(My):XM;function JB(r){return yb(r)&&r>=-he&&r<=he}var xb=$y?Dn($y):KM;function Bc(r){return typeof r=="string"||!ze(r)&&Lt(r)&&hn(r)==xe}function Ln(r){return typeof r=="symbol"||Lt(r)&&hn(r)==ut}var Li=Dy?Dn(Dy):JM;function ZB(r){return r===n}function QB(r){return Lt(r)&&dn(r)==Ht}function eL(r){return Lt(r)&&hn(r)==Yn}var tL=Rc(qf),nL=Rc(function(r,i){return r<=i});function wb(r){if(!r)return[];if(_n(r))return Bc(r)?cr(r):Cn(r);if(Ms&&r[Ms])return $A(r[Ms]());var i=dn(r),c=i==ve?Mf:i==Le?tc:ji;return c(r)}function Xr(r){if(!r)return r===0?r:0;if(r=rr(r),r===pe||r===-pe){var i=r<0?-1:1;return i*be}return r===r?r:0}function qe(r){var i=Xr(r),c=i%1;return i===i?c?i-c:i:0}function Sb(r){return r?jo(qe(r),0,ue):0}function rr(r){if(typeof r=="number")return r;if(Ln(r))return we;if(At(r)){var i=typeof r.valueOf=="function"?r.valueOf():r;r=At(i)?i+"":i}if(typeof r!="string")return r===0?r:+r;r=zy(r);var c=LO.test(r);return c||NO.test(r)?yA(r.slice(2),c?2:8):BO.test(r)?we:+r}function Cb(r){return Pr(r,En(r))}function rL(r){return r?jo(qe(r),-he,he):r===0?r:0}function mt(r){return r==null?"":Bn(r)}var oL=$i(function(r,i){if(Hs(i)||_n(i)){Pr(i,Jt(i),r);return}for(var c in i)bt.call(i,c)&&js(r,c,i[c])}),_b=$i(function(r,i){Pr(i,En(i),r)}),Lc=$i(function(r,i,c,f){Pr(i,En(i),r,f)}),iL=$i(function(r,i,c,f){Pr(i,Jt(i),r,f)}),sL=qr(Nf);function aL(r,i){var c=Mi(r);return i==null?c:nv(c,i)}var lL=Ze(function(r,i){r=Ct(r);var c=-1,f=i.length,x=f>2?i[2]:n;for(x&&gn(i[0],i[1],x)&&(f=1);++c<f;)for(var A=i[c],L=En(A),F=-1,U=L.length;++F<U;){var te=L[F],ne=r[te];(ne===n||dr(ne,Pi[te])&&!bt.call(r,te))&&(r[te]=A[te])}return r}),cL=Ze(function(r){return r.push(n,zv),$n(Eb,n,r)});function uL(r,i){return Ly(r,Oe(i,3),Tr)}function dL(r,i){return Ly(r,Oe(i,3),zf)}function fL(r,i){return r==null?r:Ff(r,Oe(i,3),En)}function pL(r,i){return r==null?r:av(r,Oe(i,3),En)}function hL(r,i){return r&&Tr(r,Oe(i,3))}function gL(r,i){return r&&zf(r,Oe(i,3))}function mL(r){return r==null?[]:vc(r,Jt(r))}function yL(r){return r==null?[]:vc(r,En(r))}function bp(r,i,c){var f=r==null?n:No(r,i);return f===n?c:f}function vL(r,i){return r!=null&&Hv(r,i,zM)}function xp(r,i){return r!=null&&Hv(r,i,WM)}var bL=Bv(function(r,i,c){i!=null&&typeof i.toString!="function"&&(i=ic.call(i)),r[i]=c},Sp(Rn)),xL=Bv(function(r,i,c){i!=null&&typeof i.toString!="function"&&(i=ic.call(i)),bt.call(r,i)?r[i].push(c):r[i]=[c]},Oe),wL=Ze(Fs);function Jt(r){return _n(r)?ev(r):Gf(r)}function En(r){return _n(r)?ev(r,!0):ZM(r)}function SL(r,i){var c={};return i=Oe(i,3),Tr(r,function(f,x,A){Hr(c,i(f,x,A),f)}),c}function CL(r,i){var c={};return i=Oe(i,3),Tr(r,function(f,x,A){Hr(c,x,i(f,x,A))}),c}var _L=$i(function(r,i,c){bc(r,i,c)}),Eb=$i(function(r,i,c,f){bc(r,i,c,f)}),EL=qr(function(r,i){var c={};if(r==null)return c;var f=!1;i=Pt(i,function(A){return A=po(A,r),f||(f=A.length>1),A}),Pr(r,ip(r),c),f&&(c=er(c,m|b|w,b$));for(var x=i.length;x--;)Jf(c,i[x]);return c});function RL(r,i){return Rb(r,$c(Oe(i)))}var IL=qr(function(r,i){return r==null?{}:e$(r,i)});function Rb(r,i){if(r==null)return{};var c=Pt(ip(r),function(f){return[f]});return i=Oe(i),yv(r,c,function(f,x){return i(f,x[0])})}function kL(r,i,c){i=po(i,r);var f=-1,x=i.length;for(x||(x=1,r=n);++f<x;){var A=r==null?n:r[Or(i[f])];A===n&&(f=x,A=c),r=Yr(A)?A.call(r):A}return r}function TL(r,i,c){return r==null?r:Ws(r,i,c)}function PL(r,i,c,f){return f=typeof f=="function"?f:n,r==null?r:Ws(r,i,c,f)}var Ib=Nv(Jt),kb=Nv(En);function OL(r,i,c){var f=ze(r),x=f||go(r)||Li(r);if(i=Oe(i,4),c==null){var A=r&&r.constructor;x?c=f?new A:[]:At(r)?c=Yr(A)?Mi(lc(r)):{}:c={}}return(x?Jn:Tr)(r,function(L,F,U){return i(c,L,F,U)}),c}function AL(r,i){return r==null?!0:Jf(r,i)}function ML(r,i,c){return r==null?r:Sv(r,i,ep(c))}function $L(r,i,c,f){return f=typeof f=="function"?f:n,r==null?r:Sv(r,i,ep(c),f)}function ji(r){return r==null?[]:Af(r,Jt(r))}function DL(r){return r==null?[]:Af(r,En(r))}function BL(r,i,c){return c===n&&(c=i,i=n),c!==n&&(c=rr(c),c=c===c?c:0),i!==n&&(i=rr(i),i=i===i?i:0),jo(rr(r),i,c)}function LL(r,i,c){return i=Xr(i),c===n?(c=i,i=0):c=Xr(c),r=rr(r),UM(r,i,c)}function jL(r,i,c){if(c&&typeof c!="boolean"&&gn(r,i,c)&&(i=c=n),c===n&&(typeof i=="boolean"?(c=i,i=n):typeof r=="boolean"&&(c=r,r=n)),r===n&&i===n?(r=0,i=1):(r=Xr(r),i===n?(i=r,r=0):i=Xr(i)),r>i){var f=r;r=i,i=f}if(c||r%1||i%1){var x=Zy();return un(r+x*(i-r+mA("1e-"+((x+"").length-1))),i)}return Yf(r,i)}var NL=Di(function(r,i,c){return i=i.toLowerCase(),r+(c?Tb(i):i)});function Tb(r){return wp(mt(r).toLowerCase())}function Pb(r){return r=mt(r),r&&r.replace(zO,TA).replace(sA,"")}function FL(r,i,c){r=mt(r),i=Bn(i);var f=r.length;c=c===n?f:jo(qe(c),0,f);var x=c;return c-=i.length,c>=0&&r.slice(c,x)==i}function zL(r){return r=mt(r),r&&Os.test(r)?r.replace(io,PA):r}function WL(r){return r=mt(r),r&&IO.test(r)?r.replace(mf,"\\$&"):r}var UL=Di(function(r,i,c){return r+(c?"-":"")+i.toLowerCase()}),HL=Di(function(r,i,c){return r+(c?" ":"")+i.toLowerCase()}),GL=Mv("toLowerCase");function qL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;if(!i||f>=i)return r;var x=(i-f)/2;return Ec(fc(x),c)+r+Ec(dc(x),c)}function VL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;return i&&f<i?r+Ec(i-f,c):r}function YL(r,i,c){r=mt(r),i=qe(i);var f=i?ki(r):0;return i&&f<i?Ec(i-f,c)+r:r}function XL(r,i,c){return c||i==null?i=0:i&&(i=+i),nM(mt(r).replace(yf,""),i||0)}function KL(r,i,c){return(c?gn(r,i,c):i===n)?i=1:i=qe(i),Xf(mt(r),i)}function JL(){var r=arguments,i=mt(r[0]);return r.length<3?i:i.replace(r[1],r[2])}var ZL=Di(function(r,i,c){return r+(c?"_":"")+i.toLowerCase()});function QL(r,i,c){return c&&typeof c!="number"&&gn(r,i,c)&&(i=c=n),c=c===n?ue:c>>>0,c?(r=mt(r),r&&(typeof i=="string"||i!=null&&!vp(i))&&(i=Bn(i),!i&&Ii(r))?ho(cr(r),0,c):r.split(i,c)):[]}var ej=Di(function(r,i,c){return r+(c?" ":"")+wp(i)});function tj(r,i,c){return r=mt(r),c=c==null?0:jo(qe(c),0,r.length),i=Bn(i),r.slice(c,c+i.length)==i}function nj(r,i,c){var f=T.templateSettings;c&&gn(r,i,c)&&(i=n),r=mt(r),i=Lc({},i,f,Fv);var x=Lc({},i.imports,f.imports,Fv),A=Jt(x),L=Af(x,A),F,U,te=0,ne=i.interpolate||Kl,ie="__p += '",ye=$f((i.escape||Kl).source+"|"+ne.source+"|"+(ne===ly?DO:Kl).source+"|"+(i.evaluate||Kl).source+"|$","g"),Ie="//# sourceURL="+(bt.call(i,"sourceURL")?(i.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dA+"]")+`
|
|
679
|
+
`;r.replace(ye,function($e,tt,ot,jn,mn,Nn){return ot||(ot=jn),ie+=r.slice(te,Nn).replace(WO,OA),tt&&(F=!0,ie+=`' +
|
|
680
|
+
__e(`+tt+`) +
|
|
681
|
+
'`),mn&&(U=!0,ie+=`';
|
|
682
|
+
`+mn+`;
|
|
683
|
+
__p += '`),ot&&(ie+=`' +
|
|
684
|
+
((__t = (`+ot+`)) == null ? '' : __t) +
|
|
685
|
+
'`),te=Nn+$e.length,$e}),ie+=`';
|
|
686
|
+
`;var Me=bt.call(i,"variable")&&i.variable;if(!Me)ie=`with (obj) {
|
|
687
|
+
`+ie+`
|
|
688
|
+
}
|
|
689
|
+
`;else if(MO.test(Me))throw new Fe(u);ie=(U?ie.replace(_e,""):ie).replace(Tt,"$1").replace(Xn,"$1;"),ie="function("+(Me||"obj")+`) {
|
|
690
|
+
`+(Me?"":`obj || (obj = {});
|
|
691
|
+
`)+"var __t, __p = ''"+(F?", __e = _.escape":"")+(U?`, __j = Array.prototype.join;
|
|
692
|
+
function print() { __p += __j.call(arguments, '') }
|
|
693
|
+
`:`;
|
|
694
|
+
`)+ie+`return __p
|
|
695
|
+
}`;var Je=Ab(function(){return dt(A,Ie+"return "+ie).apply(n,L)});if(Je.source=ie,yp(Je))throw Je;return Je}function rj(r){return mt(r).toLowerCase()}function oj(r){return mt(r).toUpperCase()}function ij(r,i,c){if(r=mt(r),r&&(c||i===n))return zy(r);if(!r||!(i=Bn(i)))return r;var f=cr(r),x=cr(i),A=Wy(f,x),L=Uy(f,x)+1;return ho(f,A,L).join("")}function sj(r,i,c){if(r=mt(r),r&&(c||i===n))return r.slice(0,Gy(r)+1);if(!r||!(i=Bn(i)))return r;var f=cr(r),x=Uy(f,cr(i))+1;return ho(f,0,x).join("")}function aj(r,i,c){if(r=mt(r),r&&(c||i===n))return r.replace(yf,"");if(!r||!(i=Bn(i)))return r;var f=cr(r),x=Wy(f,cr(i));return ho(f,x).join("")}function lj(r,i){var c=_,f=G;if(At(i)){var x="separator"in i?i.separator:x;c="length"in i?qe(i.length):c,f="omission"in i?Bn(i.omission):f}r=mt(r);var A=r.length;if(Ii(r)){var L=cr(r);A=L.length}if(c>=A)return r;var F=c-ki(f);if(F<1)return f;var U=L?ho(L,0,F).join(""):r.slice(0,F);if(x===n)return U+f;if(L&&(F+=U.length-F),vp(x)){if(r.slice(F).search(x)){var te,ne=U;for(x.global||(x=$f(x.source,mt(cy.exec(x))+"g")),x.lastIndex=0;te=x.exec(ne);)var ie=te.index;U=U.slice(0,ie===n?F:ie)}}else if(r.indexOf(Bn(x),F)!=F){var ye=U.lastIndexOf(x);ye>-1&&(U=U.slice(0,ye))}return U+f}function cj(r){return r=mt(r),r&&Xl.test(r)?r.replace(kr,jA):r}var uj=Di(function(r,i,c){return r+(c?" ":"")+i.toUpperCase()}),wp=Mv("toUpperCase");function Ob(r,i,c){return r=mt(r),i=c?n:i,i===n?MA(r)?zA(r):_A(r):r.match(i)||[]}var Ab=Ze(function(r,i){try{return $n(r,n,i)}catch(c){return yp(c)?c:new Fe(c)}}),dj=qr(function(r,i){return Jn(i,function(c){c=Or(c),Hr(r,c,gp(r[c],r))}),r});function fj(r){var i=r==null?0:r.length,c=Oe();return r=i?Pt(r,function(f){if(typeof f[1]!="function")throw new Zn(l);return[c(f[0]),f[1]]}):[],Ze(function(f){for(var x=-1;++x<i;){var A=r[x];if($n(A[0],this,f))return $n(A[1],this,f)}})}function pj(r){return jM(er(r,m))}function Sp(r){return function(){return r}}function hj(r,i){return r==null||r!==r?i:r}var gj=Dv(),mj=Dv(!0);function Rn(r){return r}function Cp(r){return dv(typeof r=="function"?r:er(r,m))}function yj(r){return pv(er(r,m))}function vj(r,i){return hv(r,er(i,m))}var bj=Ze(function(r,i){return function(c){return Fs(c,r,i)}}),xj=Ze(function(r,i){return function(c){return Fs(r,c,i)}});function _p(r,i,c){var f=Jt(i),x=vc(i,f);c==null&&!(At(i)&&(x.length||!f.length))&&(c=i,i=r,r=this,x=vc(i,Jt(i)));var A=!(At(c)&&"chain"in c)||!!c.chain,L=Yr(r);return Jn(x,function(F){var U=i[F];r[F]=U,L&&(r.prototype[F]=function(){var te=this.__chain__;if(A||te){var ne=r(this.__wrapped__),ie=ne.__actions__=Cn(this.__actions__);return ie.push({func:U,args:arguments,thisArg:r}),ne.__chain__=te,ne}return U.apply(r,ao([this.value()],arguments))})}),r}function wj(){return tn._===this&&(tn._=VA),this}function Ep(){}function Sj(r){return r=qe(r),Ze(function(i){return gv(i,r)})}var Cj=np(Pt),_j=np(By),Ej=np(If);function Mb(r){return cp(r)?kf(Or(r)):t$(r)}function Rj(r){return function(i){return r==null?n:No(r,i)}}var Ij=Lv(),kj=Lv(!0);function Rp(){return[]}function Ip(){return!1}function Tj(){return{}}function Pj(){return""}function Oj(){return!0}function Aj(r,i){if(r=qe(r),r<1||r>he)return[];var c=ue,f=un(r,ue);i=Oe(i),r-=ue;for(var x=Of(f,i);++c<r;)i(c);return x}function Mj(r){return ze(r)?Pt(r,Or):Ln(r)?[r]:Cn(Qv(mt(r)))}function $j(r){var i=++GA;return mt(r)+i}var Dj=_c(function(r,i){return r+i},0),Bj=rp("ceil"),Lj=_c(function(r,i){return r/i},1),jj=rp("floor");function Nj(r){return r&&r.length?yc(r,Rn,Wf):n}function Fj(r,i){return r&&r.length?yc(r,Oe(i,2),Wf):n}function zj(r){return Ny(r,Rn)}function Wj(r,i){return Ny(r,Oe(i,2))}function Uj(r){return r&&r.length?yc(r,Rn,qf):n}function Hj(r,i){return r&&r.length?yc(r,Oe(i,2),qf):n}var Gj=_c(function(r,i){return r*i},1),qj=rp("round"),Vj=_c(function(r,i){return r-i},0);function Yj(r){return r&&r.length?Pf(r,Rn):0}function Xj(r,i){return r&&r.length?Pf(r,Oe(i,2)):0}return T.after=yB,T.ary=ub,T.assign=oL,T.assignIn=_b,T.assignInWith=Lc,T.assignWith=iL,T.at=sL,T.before=db,T.bind=gp,T.bindAll=dj,T.bindKey=fb,T.castArray=TB,T.chain=ab,T.chunk=j$,T.compact=N$,T.concat=F$,T.cond=fj,T.conforms=pj,T.constant=Sp,T.countBy=YD,T.create=aL,T.curry=pb,T.curryRight=hb,T.debounce=gb,T.defaults=lL,T.defaultsDeep=cL,T.defer=vB,T.delay=bB,T.difference=z$,T.differenceBy=W$,T.differenceWith=U$,T.drop=H$,T.dropRight=G$,T.dropRightWhile=q$,T.dropWhile=V$,T.fill=Y$,T.filter=KD,T.flatMap=QD,T.flatMapDeep=eB,T.flatMapDepth=tB,T.flatten=rb,T.flattenDeep=X$,T.flattenDepth=K$,T.flip=xB,T.flow=gj,T.flowRight=mj,T.fromPairs=J$,T.functions=mL,T.functionsIn=yL,T.groupBy=nB,T.initial=Q$,T.intersection=eD,T.intersectionBy=tD,T.intersectionWith=nD,T.invert=bL,T.invertBy=xL,T.invokeMap=oB,T.iteratee=Cp,T.keyBy=iB,T.keys=Jt,T.keysIn=En,T.map=Oc,T.mapKeys=SL,T.mapValues=CL,T.matches=yj,T.matchesProperty=vj,T.memoize=Mc,T.merge=_L,T.mergeWith=Eb,T.method=bj,T.methodOf=xj,T.mixin=_p,T.negate=$c,T.nthArg=Sj,T.omit=EL,T.omitBy=RL,T.once=wB,T.orderBy=sB,T.over=Cj,T.overArgs=SB,T.overEvery=_j,T.overSome=Ej,T.partial=mp,T.partialRight=mb,T.partition=aB,T.pick=IL,T.pickBy=Rb,T.property=Mb,T.propertyOf=Rj,T.pull=sD,T.pullAll=ib,T.pullAllBy=aD,T.pullAllWith=lD,T.pullAt=cD,T.range=Ij,T.rangeRight=kj,T.rearg=CB,T.reject=uB,T.remove=uD,T.rest=_B,T.reverse=pp,T.sampleSize=fB,T.set=TL,T.setWith=PL,T.shuffle=pB,T.slice=dD,T.sortBy=mB,T.sortedUniq=vD,T.sortedUniqBy=bD,T.split=QL,T.spread=EB,T.tail=xD,T.take=wD,T.takeRight=SD,T.takeRightWhile=CD,T.takeWhile=_D,T.tap=ND,T.throttle=RB,T.thru=Pc,T.toArray=wb,T.toPairs=Ib,T.toPairsIn=kb,T.toPath=Mj,T.toPlainObject=Cb,T.transform=OL,T.unary=IB,T.union=ED,T.unionBy=RD,T.unionWith=ID,T.uniq=kD,T.uniqBy=TD,T.uniqWith=PD,T.unset=AL,T.unzip=hp,T.unzipWith=sb,T.update=ML,T.updateWith=$L,T.values=ji,T.valuesIn=DL,T.without=OD,T.words=Ob,T.wrap=kB,T.xor=AD,T.xorBy=MD,T.xorWith=$D,T.zip=DD,T.zipObject=BD,T.zipObjectDeep=LD,T.zipWith=jD,T.entries=Ib,T.entriesIn=kb,T.extend=_b,T.extendWith=Lc,_p(T,T),T.add=Dj,T.attempt=Ab,T.camelCase=NL,T.capitalize=Tb,T.ceil=Bj,T.clamp=BL,T.clone=PB,T.cloneDeep=AB,T.cloneDeepWith=MB,T.cloneWith=OB,T.conformsTo=$B,T.deburr=Pb,T.defaultTo=hj,T.divide=Lj,T.endsWith=FL,T.eq=dr,T.escape=zL,T.escapeRegExp=WL,T.every=XD,T.find=JD,T.findIndex=tb,T.findKey=uL,T.findLast=ZD,T.findLastIndex=nb,T.findLastKey=dL,T.floor=jj,T.forEach=lb,T.forEachRight=cb,T.forIn=fL,T.forInRight=pL,T.forOwn=hL,T.forOwnRight=gL,T.get=bp,T.gt=DB,T.gte=BB,T.has=vL,T.hasIn=xp,T.head=ob,T.identity=Rn,T.includes=rB,T.indexOf=Z$,T.inRange=LL,T.invoke=wL,T.isArguments=Wo,T.isArray=ze,T.isArrayBuffer=LB,T.isArrayLike=_n,T.isArrayLikeObject=Nt,T.isBoolean=jB,T.isBuffer=go,T.isDate=NB,T.isElement=FB,T.isEmpty=zB,T.isEqual=WB,T.isEqualWith=UB,T.isError=yp,T.isFinite=HB,T.isFunction=Yr,T.isInteger=yb,T.isLength=Dc,T.isMap=vb,T.isMatch=GB,T.isMatchWith=qB,T.isNaN=VB,T.isNative=YB,T.isNil=KB,T.isNull=XB,T.isNumber=bb,T.isObject=At,T.isObjectLike=Lt,T.isPlainObject=qs,T.isRegExp=vp,T.isSafeInteger=JB,T.isSet=xb,T.isString=Bc,T.isSymbol=Ln,T.isTypedArray=Li,T.isUndefined=ZB,T.isWeakMap=QB,T.isWeakSet=eL,T.join=rD,T.kebabCase=UL,T.last=nr,T.lastIndexOf=oD,T.lowerCase=HL,T.lowerFirst=GL,T.lt=tL,T.lte=nL,T.max=Nj,T.maxBy=Fj,T.mean=zj,T.meanBy=Wj,T.min=Uj,T.minBy=Hj,T.stubArray=Rp,T.stubFalse=Ip,T.stubObject=Tj,T.stubString=Pj,T.stubTrue=Oj,T.multiply=Gj,T.nth=iD,T.noConflict=wj,T.noop=Ep,T.now=Ac,T.pad=qL,T.padEnd=VL,T.padStart=YL,T.parseInt=XL,T.random=jL,T.reduce=lB,T.reduceRight=cB,T.repeat=KL,T.replace=JL,T.result=kL,T.round=qj,T.runInContext=W,T.sample=dB,T.size=hB,T.snakeCase=ZL,T.some=gB,T.sortedIndex=fD,T.sortedIndexBy=pD,T.sortedIndexOf=hD,T.sortedLastIndex=gD,T.sortedLastIndexBy=mD,T.sortedLastIndexOf=yD,T.startCase=ej,T.startsWith=tj,T.subtract=Vj,T.sum=Yj,T.sumBy=Xj,T.template=nj,T.times=Aj,T.toFinite=Xr,T.toInteger=qe,T.toLength=Sb,T.toLower=rj,T.toNumber=rr,T.toSafeInteger=rL,T.toString=mt,T.toUpper=oj,T.trim=ij,T.trimEnd=sj,T.trimStart=aj,T.truncate=lj,T.unescape=cj,T.uniqueId=$j,T.upperCase=uj,T.upperFirst=wp,T.each=lb,T.eachRight=cb,T.first=ob,_p(T,function(){var r={};return Tr(T,function(i,c){bt.call(T.prototype,c)||(r[c]=i)}),r}(),{chain:!1}),T.VERSION=o,Jn(["bind","bindKey","curry","curryRight","partial","partialRight"],function(r){T[r].placeholder=T}),Jn(["drop","take"],function(r,i){nt.prototype[r]=function(c){c=c===n?1:Vt(qe(c),0);var f=this.__filtered__&&!i?new nt(this):this.clone();return f.__filtered__?f.__takeCount__=un(c,f.__takeCount__):f.__views__.push({size:un(c,ue),type:r+(f.__dir__<0?"Right":"")}),f},nt.prototype[r+"Right"]=function(c){return this.reverse()[r](c).reverse()}}),Jn(["filter","map","takeWhile"],function(r,i){var c=i+1,f=c==Q||c==le;nt.prototype[r]=function(x){var A=this.clone();return A.__iteratees__.push({iteratee:Oe(x,3),type:c}),A.__filtered__=A.__filtered__||f,A}}),Jn(["head","last"],function(r,i){var c="take"+(i?"Right":"");nt.prototype[r]=function(){return this[c](1).value()[0]}}),Jn(["initial","tail"],function(r,i){var c="drop"+(i?"":"Right");nt.prototype[r]=function(){return this.__filtered__?new nt(this):this[c](1)}}),nt.prototype.compact=function(){return this.filter(Rn)},nt.prototype.find=function(r){return this.filter(r).head()},nt.prototype.findLast=function(r){return this.reverse().find(r)},nt.prototype.invokeMap=Ze(function(r,i){return typeof r=="function"?new nt(this):this.map(function(c){return Fs(c,r,i)})}),nt.prototype.reject=function(r){return this.filter($c(Oe(r)))},nt.prototype.slice=function(r,i){r=qe(r);var c=this;return c.__filtered__&&(r>0||i<0)?new nt(c):(r<0?c=c.takeRight(-r):r&&(c=c.drop(r)),i!==n&&(i=qe(i),c=i<0?c.dropRight(-i):c.take(i-r)),c)},nt.prototype.takeRightWhile=function(r){return this.reverse().takeWhile(r).reverse()},nt.prototype.toArray=function(){return this.take(ue)},Tr(nt.prototype,function(r,i){var c=/^(?:filter|find|map|reject)|While$/.test(i),f=/^(?:head|last)$/.test(i),x=T[f?"take"+(i=="last"?"Right":""):i],A=f||/^find/.test(i);x&&(T.prototype[i]=function(){var L=this.__wrapped__,F=f?[1]:arguments,U=L instanceof nt,te=F[0],ne=U||ze(L),ie=function(tt){var ot=x.apply(T,ao([tt],F));return f&&ye?ot[0]:ot};ne&&c&&typeof te=="function"&&te.length!=1&&(U=ne=!1);var ye=this.__chain__,Ie=!!this.__actions__.length,Me=A&&!ye,Je=U&&!Ie;if(!A&&ne){L=Je?L:new nt(this);var $e=r.apply(L,F);return $e.__actions__.push({func:Pc,args:[ie],thisArg:n}),new Qn($e,ye)}return Me&&Je?r.apply(this,F):($e=this.thru(ie),Me?f?$e.value()[0]:$e.value():$e)})}),Jn(["pop","push","shift","sort","splice","unshift"],function(r){var i=nc[r],c=/^(?:push|sort|unshift)$/.test(r)?"tap":"thru",f=/^(?:pop|shift)$/.test(r);T.prototype[r]=function(){var x=arguments;if(f&&!this.__chain__){var A=this.value();return i.apply(ze(A)?A:[],x)}return this[c](function(L){return i.apply(ze(L)?L:[],x)})}}),Tr(nt.prototype,function(r,i){var c=T[i];if(c){var f=c.name+"";bt.call(Ai,f)||(Ai[f]=[]),Ai[f].push({name:i,func:c})}}),Ai[Cc(n,C).name]=[{name:"wrapper",func:n}],nt.prototype.clone=cM,nt.prototype.reverse=uM,nt.prototype.value=dM,T.prototype.at=FD,T.prototype.chain=zD,T.prototype.commit=WD,T.prototype.next=UD,T.prototype.plant=GD,T.prototype.reverse=qD,T.prototype.toJSON=T.prototype.valueOf=T.prototype.value=VD,T.prototype.first=T.prototype.head,Ms&&(T.prototype[Ms]=HD),T},Ti=WA();$o?(($o.exports=Ti)._=Ti,Cf._=Ti):tn._=Ti}).call(Mr)}(El,El.exports);var vi=El.exports;const mT=rt.div`
|
|
696
|
+
.component-library .list-item {
|
|
697
|
+
display: flex;
|
|
698
|
+
justify-content: center;
|
|
699
|
+
align-items: center;
|
|
700
|
+
|
|
701
|
+
background-color: gray;
|
|
702
|
+
margin: 3px;
|
|
703
|
+
}
|
|
704
|
+
`,i0=e=>e?e.map(t=>v.jsx("div",{className:"list-item",children:v.jsx(o0,{id:`${t.class}-${xs()}`,type:"ProjectComponent",initialSize:vi.pick(t.layout,["w","h"]),metadata:{name:t.class},node:v.jsx("div",{children:t.class})})},t.class)):[],yT=e=>{const[t,n]=X.useState(i0(e.componentLibrary));return X.useEffect(()=>{n(i0(e.componentLibrary))},[e.componentLibrary]),v.jsx(mT,{children:v.jsx("div",{className:"component-library",children:v.jsx("ul",{children:t})})})},vT=rt.div`
|
|
705
|
+
.visuals .list-item {
|
|
706
|
+
display: flex;
|
|
707
|
+
justify-content: center;
|
|
708
|
+
align-items: center;
|
|
709
|
+
|
|
710
|
+
background-color: lavender;
|
|
711
|
+
margin: 3px;
|
|
712
|
+
}
|
|
713
|
+
`,s0=e=>e?e.map(t=>v.jsx("div",{className:"list-item",children:v.jsx(o0,{id:t.id,type:"ProjectChart",initialSize:{w:2,h:2},metadata:t,node:v.jsx("div",{children:t.name})})},t.id)):[],bT=e=>{const[t,n]=X.useState(s0(e.visualLibrary));return X.useEffect(()=>{n(s0(e.visualLibrary))},[e.visualLibrary]),v.jsx(vT,{children:v.jsx("div",{className:"visuals",children:v.jsx("ul",{children:t})})})},xT=e=>{const[t,n]=X.useState("lib"),{gwAPIHandler:o}=On(),[s,a]=X.useState(e.componentLibrary),[l,u]=X.useState([]);return X.useEffect(()=>{a(e.componentLibrary)},[e.componentLibrary]),X.useEffect(()=>{(async()=>{const h=await o.getVisuals(1,100,"private","","modified","DESC","","GRAPH");if(h.status!==200)throw new Error("Failed to load visuals.");return(await h.json()).content})().then(h=>{u(h)})},[]),v.jsxs(v.Fragment,{children:[v.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:v.jsx(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:v.jsx(Dt,{sx:{flex:3,padding:"2px"},children:v.jsxs($u,{fullWidth:!0,children:[v.jsx(Mu,{id:"template-select-label",children:"Type"}),v.jsxs(rl,{labelId:"template-select-label",id:"template-select",label:"Template",value:t,onChange:d=>n(d.target.value),fullWidth:!0,size:"small",children:[v.jsx(Qu,{value:"lib",children:"library"}),v.jsx(Qu,{value:"vis",children:"visual"})]})]})})})}),v.jsx(ds,{}),t==="lib"&&v.jsx(yT,{componentLibrary:s}),t==="vis"&&v.jsx(bT,{visualLibrary:l})]})};var a0=(e=>(e.USER="user",e.ASSISTANT="assistant",e))(a0||{}),ar=(e=>(e.READY_TO_RECEIVE="ready_to_receive",e.GENERATION_STARTED="generation_started",e.GENERATION_ENDED="generation_ended",e.GENERATION_CANCELED="generation_cancelled",e.GENERATION_FAILED="generation_failed",e))(ar||{});const wT=e=>Object.values(a0).includes(e),ST=rt.div`
|
|
714
|
+
display: flex;
|
|
715
|
+
flex-direction: column;
|
|
716
|
+
.message {
|
|
717
|
+
margin-bottom: 10px;
|
|
718
|
+
padding: 5px 10px;
|
|
719
|
+
border-radius: 5px;
|
|
720
|
+
max-width: 70%;
|
|
721
|
+
word-wrap: break-word;
|
|
722
|
+
}
|
|
723
|
+
.user-message {
|
|
724
|
+
align-self: flex-end;
|
|
725
|
+
background-color: #cc0aac;
|
|
726
|
+
color: white;
|
|
727
|
+
}
|
|
728
|
+
|
|
729
|
+
.assistant-message {
|
|
730
|
+
align-self: flex-start;
|
|
731
|
+
background-color: #5000bf;
|
|
732
|
+
color: white;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
.tool_result-message {
|
|
736
|
+
align-self: flex-start;
|
|
737
|
+
background-color: gray;
|
|
738
|
+
color: white;
|
|
739
|
+
}
|
|
740
|
+
`,CT=({message:e})=>{let t=null;if(wT(e.role)&&(t=e.role),t===null)return null;const n=`message ${t}-message`;return v.jsx(ST,{children:v.jsx("div",{className:n,children:e.content},e.id)})},_T=rt.div`
|
|
741
|
+
margin-bottom: 10px;
|
|
742
|
+
padding: 5px 10px;
|
|
743
|
+
border-radius: 5px;
|
|
744
|
+
max-width: 70%;
|
|
745
|
+
word-wrap: break-word;
|
|
746
|
+
display: flex; // Added to align items
|
|
747
|
+
align-items: center; // Added to center items vertically
|
|
748
|
+
|
|
749
|
+
&::after {
|
|
750
|
+
content: ""; // Empty content for the first dot
|
|
751
|
+
display: inline-block;
|
|
752
|
+
width: 8px; // Width for each dot
|
|
753
|
+
height: 8px;
|
|
754
|
+
border-radius: 50%;
|
|
755
|
+
background: currentColor; // Use current text color
|
|
756
|
+
animation: dot 1s infinite 0.4s; // Animation for the first dot with delay
|
|
757
|
+
margin-left: 5px; // Space between text and dots
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
&::before {
|
|
761
|
+
content: ""; // Empty content for the second dot
|
|
762
|
+
display: inline-block;
|
|
763
|
+
width: 8px; // Width for each dot
|
|
764
|
+
height: 8px;
|
|
765
|
+
border-radius: 50%;
|
|
766
|
+
background: currentColor; // Use current text color
|
|
767
|
+
animation: dot 1s infinite 0.2s; // Animation for the second dot with delay
|
|
768
|
+
margin-left: 5px; // Space between text and dots
|
|
769
|
+
}
|
|
770
|
+
|
|
771
|
+
&::nth-of-type(3) {
|
|
772
|
+
content: ""; // Empty content for the third dot
|
|
773
|
+
display: inline-block;
|
|
774
|
+
width: 8px; // Width for each dot
|
|
775
|
+
height: 8px;
|
|
776
|
+
border-radius: 50%;
|
|
777
|
+
background: currentColor; // Use current text color
|
|
778
|
+
animation: dot 1s infinite; // Animation for the third dot with no delay
|
|
779
|
+
margin-left: 5px; // Space between text and dots
|
|
780
|
+
}
|
|
781
|
+
|
|
782
|
+
@keyframes dot {
|
|
783
|
+
0%,
|
|
784
|
+
20% {
|
|
785
|
+
opacity: 0;
|
|
786
|
+
}
|
|
787
|
+
20%,
|
|
788
|
+
40% {
|
|
789
|
+
opacity: 1;
|
|
790
|
+
}
|
|
791
|
+
40%,
|
|
792
|
+
60% {
|
|
793
|
+
opacity: 0;
|
|
794
|
+
}
|
|
795
|
+
}
|
|
796
|
+
`,ET=()=>v.jsx(_T,{}),RT=rt.div`
|
|
676
797
|
.chat-container {
|
|
677
798
|
display: flex;
|
|
678
799
|
flex-direction: column;
|
|
@@ -680,7 +801,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
680
801
|
width: 100%;
|
|
681
802
|
height: 600px;
|
|
682
803
|
}
|
|
804
|
+
|
|
683
805
|
.chat-messages {
|
|
806
|
+
position: relative;
|
|
684
807
|
display: flex;
|
|
685
808
|
flex-direction: column-reverse;
|
|
686
809
|
flex-grow: 1;
|
|
@@ -694,6 +817,51 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
694
817
|
border-radius: 5px;
|
|
695
818
|
}
|
|
696
819
|
|
|
820
|
+
.chat-error-toast {
|
|
821
|
+
position: absolute;
|
|
822
|
+
top: 0px;
|
|
823
|
+
left: 50%;
|
|
824
|
+
transform: translateX(-50%);
|
|
825
|
+
z-index: 10;
|
|
826
|
+
padding: 5px 10px;
|
|
827
|
+
border-radius: 0 0 5px 5px;
|
|
828
|
+
background-color: #ff6b6b;
|
|
829
|
+
color: white;
|
|
830
|
+
animation: fadeIn 0.2s ease-out;
|
|
831
|
+
white-space: nowrap;
|
|
832
|
+
overflow: hidden;
|
|
833
|
+
text-overflow: ellipsis;
|
|
834
|
+
max-width: 90%;
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
.chat-connecting-toast {
|
|
838
|
+
position: absolute;
|
|
839
|
+
top: 0px;
|
|
840
|
+
left: 50%;
|
|
841
|
+
transform: translateX(-50%);
|
|
842
|
+
z-index: 10;
|
|
843
|
+
padding: 5px 10px;
|
|
844
|
+
border-radius: 0 0 5px 5px;
|
|
845
|
+
background-color: grey;
|
|
846
|
+
color: white;
|
|
847
|
+
animation: fadeIn 0.2s ease-out;
|
|
848
|
+
white-space: nowrap;
|
|
849
|
+
overflow: hidden;
|
|
850
|
+
text-overflow: ellipsis;
|
|
851
|
+
max-width: 90%;
|
|
852
|
+
}
|
|
853
|
+
|
|
854
|
+
@keyframes fadeIn {
|
|
855
|
+
from {
|
|
856
|
+
opacity: 0;
|
|
857
|
+
transform: translateX(-50%) translateY(-100%);
|
|
858
|
+
}
|
|
859
|
+
to {
|
|
860
|
+
opacity: 1;
|
|
861
|
+
transform: translateX(-50%) translateY(0);
|
|
862
|
+
}
|
|
863
|
+
}
|
|
864
|
+
|
|
697
865
|
input:disabled,
|
|
698
866
|
button:disabled {
|
|
699
867
|
background-color: #e0e0e0;
|
|
@@ -727,89 +895,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
727
895
|
border: 1px solid #ccc;
|
|
728
896
|
border-radius: 3px;
|
|
729
897
|
cursor: pointer;
|
|
730
|
-
background-color: white;
|
|
731
898
|
transition: background-color 0.2s;
|
|
732
|
-
|
|
899
|
+
background-color: #5000bf;
|
|
900
|
+
color: white;
|
|
733
901
|
&:hover:not(:disabled) {
|
|
734
|
-
background-color: #
|
|
902
|
+
background-color: #4000a0;
|
|
735
903
|
}
|
|
736
904
|
}
|
|
737
905
|
|
|
738
906
|
.gallery-button {
|
|
739
|
-
background-color:
|
|
740
|
-
color:
|
|
741
|
-
|
|
907
|
+
background-color: white !important;
|
|
908
|
+
color: black !important;
|
|
742
909
|
&:hover:not(:disabled) {
|
|
743
|
-
background-color: #
|
|
910
|
+
background-color: #f0f0f0 !important;
|
|
744
911
|
}
|
|
745
912
|
}
|
|
746
|
-
|
|
747
|
-
.message {
|
|
748
|
-
margin-bottom: 10px;
|
|
749
|
-
padding: 5px 10px;
|
|
750
|
-
border-radius: 5px;
|
|
751
|
-
max-width: 70%;
|
|
752
|
-
word-wrap: break-word;
|
|
753
|
-
}
|
|
754
|
-
|
|
755
|
-
.user-message {
|
|
756
|
-
align-self: flex-end;
|
|
757
|
-
background-color: #cc0aac;
|
|
758
|
-
color: white;
|
|
759
|
-
}
|
|
760
|
-
|
|
761
|
-
.assistant-message {
|
|
762
|
-
align-self: flex-start;
|
|
763
|
-
background-color: #5000bf;
|
|
764
|
-
color: white;
|
|
765
|
-
}
|
|
766
|
-
`,f2=e=>{let t=null;switch(e.role){case"assistant":t="assistant";break;case"user":t="user";break;default:t=null;break}if(t===null)return;const n=`message ${t}-message`;return b.jsx("div",{className:n,children:e.content},e.id)},Ly=e=>e.map(t=>f2(t)).filter(Boolean).reverse(),p2=()=>{const[e,t]=Y.useState([]),[n,r]=Y.useState(""),[i,a]=Y.useState(!1),[l,c]=Y.useState(!1),d=Y.useRef(null),{projectMetadata:f,config:y,setSyncToken:m,selectedComponentId:v}=Bn(),w=Y.useMemo(()=>!f.projectName,[f.projectName]),x=async P=>{const R=await Ly(P);t(R)},_=async P=>{const R=await Ly(P);t(M=>[...R,...M])},k=async()=>{const P=v;if(!P){alert("Please select a component");return}const R={type:"chat",content:{role:"user",source:"web_client",content:n.trim(),context:null,metadata:{component_id:P}}};d.current.send(JSON.stringify(R)),await _([{role:"user",content:n,id:Ts()}]),r("")},C=P=>{r(R=>{const M=R.trim();return M?`${M} ${P}`:P})},O=P=>{P.key==="Enter"&&!P.shiftKey&&(P.preventDefault(),k())};return Y.useEffect(()=>{if(!(f.projectName&&f.projectURL))return;const P=new AbortController,R=P.signal,M=async()=>{c(!0),await ca(f.projectName,f.projectURL,y.CORS_PROXY),c(!1);const $=`${window.miDir}/${f.projectName}/chat.json`,z=await window.pfs.readFile($,"utf8"),V=JSON.parse(z);R.aborted||await x(V)},D=async()=>{d.current&&await d.current.close();const $=localStorage.getItem("accessToken")||"";d.current=new WebSocket(`${y.WS_BASE_URL}/ws/chat/${f.projectName}?token=${$}`),d.current.onmessage=function(z){const V=JSON.parse(z.data);if(V.type)switch(V.type){case"chat":_([V.content]);break;case"signal":V.content.type==="generation_ended"&&m();break}}};return M().then(D),()=>{P.abort()}},[f.projectName]),b.jsxs(b.Fragment,{children:[b.jsx(Ps,{isVisible:l}),b.jsx(d2,{children:b.jsxs("div",{className:"chat-container",children:[b.jsx("div",{className:"chat-messages",children:e}),b.jsxs("div",{className:"chat-input",children:[b.jsx("input",{type:"text",placeholder:"Type your message...",value:n,onChange:P=>r(P.target.value),onKeyPress:O,disabled:w}),b.jsx("button",{className:"gallery-button",onClick:()=>a(!0),disabled:w,children:"Images"}),b.jsx("button",{onClick:k,disabled:w,children:"Send"})]})]})}),f.projectName&&b.jsx(Cy,{isOpen:i,onClose:()=>a(!1),onImageSelect:C,projectName:f.projectName})]})},Fy=e=>b.jsx(b.Fragment,{children:b.jsx("div",{className:"droppable-element",draggable:!0,unselectable:"on",onDragStart:t=>{t.dataTransfer.setData("text/plain",""),t.dataTransfer.setData("application/reactgridlayout",JSON.stringify({id:e.id,type:e.type,initialSize:e.initialSize,metadata:e.metadata}))},children:e.node})});var Xl={exports:{}};/**
|
|
767
|
-
* @license
|
|
768
|
-
* Lodash <https://lodash.com/>
|
|
769
|
-
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
770
|
-
* Released under MIT license <https://lodash.com/license>
|
|
771
|
-
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
772
|
-
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
773
|
-
*/Xl.exports,function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",l="Expected a function",c="Invalid `variable` option passed into `_.template`",d="__lodash_hash_undefined__",f=500,y="__lodash_placeholder__",m=1,v=2,w=4,x=1,_=2,k=1,C=2,O=4,P=8,R=16,M=32,D=64,$=128,z=256,V=512,E=30,G="...",te=800,H=16,X=1,ee=2,ae=3,fe=1/0,pe=9007199254740991,_e=17976931348623157e292,We=NaN,be=4294967295,Be=be-1,Ne=be>>>1,Me=[["ary",$],["bind",k],["bindKey",C],["curry",P],["curryRight",R],["flip",V],["partial",M],["partialRight",D],["rearg",z]],Xe="[object Arguments]",Ge="[object Array]",ht="[object AsyncFunction]",le="[object Boolean]",ue="[object Date]",he="[object DOMException]",ge="[object Error]",de="[object Function]",Te="[object GeneratorFunction]",ve="[object Map]",ke="[object Number]",qe="[object Null]",De="[object Object]",Re="[object Promise]",Fe="[object Proxy]",tt="[object RegExp]",$e="[object Set]",st="[object String]",ye="[object Symbol]",At="[object Undefined]",Nt="[object WeakMap]",yn="[object WeakSet]",T="[object ArrayBuffer]",h="[object DataView]",g="[object Float32Array]",B="[object Float64Array]",F="[object Int8Array]",q="[object Int16Array]",Z="[object Int32Array]",ce="[object Uint8Array]",oe="[object Uint8ClampedArray]",se="[object Uint16Array]",Se="[object Uint32Array]",we=/\b__p \+= '';/g,It=/\b(__p \+=) '' \+/g,tr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,$r=/&(?:amp|lt|gt|quot|#39);/g,uo=/[&<>"']/g,xc=RegExp($r.source),Ws=RegExp(uo.source),f$=/<%-([\s\S]+?)%>/g,p$=/<%([\s\S]+?)%>/g,W0=/<%=([\s\S]+?)%>/g,h$=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,g$=/^\w*$/,m$=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Nf=/[\\^$.*+?()[\]{}|]/g,y$=RegExp(Nf.source),zf=/^\s+/,v$=/\s/,b$=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,x$=/\{\n\/\* \[wrapped with (.+)\] \*/,w$=/,? & /,S$=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,C$=/[()=,{}\[\]\/\s]/,_$=/\\(\\)?/g,E$=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,U0=/\w*$/,R$=/^[-+]0x[0-9a-f]+$/i,P$=/^0b[01]+$/i,T$=/^\[object .+?Constructor\]$/,I$=/^0o[0-7]+$/i,k$=/^(?:0|[1-9]\d*)$/,O$=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,wc=/($^)/,A$=/['\n\r\u2028\u2029\\]/g,Sc="\\ud800-\\udfff",$$="\\u0300-\\u036f",M$="\\ufe20-\\ufe2f",B$="\\u20d0-\\u20ff",H0=$$+M$+B$,G0="\\u2700-\\u27bf",q0="a-z\\xdf-\\xf6\\xf8-\\xff",D$="\\xac\\xb1\\xd7\\xf7",j$="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",L$="\\u2000-\\u206f",F$=" \\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",V0="A-Z\\xc0-\\xd6\\xd8-\\xde",K0="\\ufe0e\\ufe0f",Y0=D$+j$+L$+F$,Wf="['’]",N$="["+Sc+"]",X0="["+Y0+"]",Cc="["+H0+"]",J0="\\d+",z$="["+G0+"]",Z0="["+q0+"]",Q0="[^"+Sc+Y0+J0+G0+q0+V0+"]",Uf="\\ud83c[\\udffb-\\udfff]",W$="(?:"+Cc+"|"+Uf+")",ev="[^"+Sc+"]",Hf="(?:\\ud83c[\\udde6-\\uddff]){2}",Gf="[\\ud800-\\udbff][\\udc00-\\udfff]",Ai="["+V0+"]",tv="\\u200d",nv="(?:"+Z0+"|"+Q0+")",U$="(?:"+Ai+"|"+Q0+")",rv="(?:"+Wf+"(?:d|ll|m|re|s|t|ve))?",ov="(?:"+Wf+"(?:D|LL|M|RE|S|T|VE))?",iv=W$+"?",sv="["+K0+"]?",H$="(?:"+tv+"(?:"+[ev,Hf,Gf].join("|")+")"+sv+iv+")*",G$="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",q$="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",av=sv+iv+H$,V$="(?:"+[z$,Hf,Gf].join("|")+")"+av,K$="(?:"+[ev+Cc+"?",Cc,Hf,Gf,N$].join("|")+")",Y$=RegExp(Wf,"g"),X$=RegExp(Cc,"g"),qf=RegExp(Uf+"(?="+Uf+")|"+K$+av,"g"),J$=RegExp([Ai+"?"+Z0+"+"+rv+"(?="+[X0,Ai,"$"].join("|")+")",U$+"+"+ov+"(?="+[X0,Ai+nv,"$"].join("|")+")",Ai+"?"+nv+"+"+rv,Ai+"+"+ov,q$,G$,J0,V$].join("|"),"g"),Z$=RegExp("["+tv+Sc+H0+K0+"]"),Q$=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,eM=["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"],tM=-1,Pt={};Pt[g]=Pt[B]=Pt[F]=Pt[q]=Pt[Z]=Pt[ce]=Pt[oe]=Pt[se]=Pt[Se]=!0,Pt[Xe]=Pt[Ge]=Pt[T]=Pt[le]=Pt[h]=Pt[ue]=Pt[ge]=Pt[de]=Pt[ve]=Pt[ke]=Pt[De]=Pt[tt]=Pt[$e]=Pt[st]=Pt[Nt]=!1;var Et={};Et[Xe]=Et[Ge]=Et[T]=Et[h]=Et[le]=Et[ue]=Et[g]=Et[B]=Et[F]=Et[q]=Et[Z]=Et[ve]=Et[ke]=Et[De]=Et[tt]=Et[$e]=Et[st]=Et[ye]=Et[ce]=Et[oe]=Et[se]=Et[Se]=!0,Et[ge]=Et[de]=Et[Nt]=!1;var nM={À:"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"},rM={"&":"&","<":"<",">":">",'"':""","'":"'"},oM={"&":"&","<":"<",">":">",""":'"',"'":"'"},iM={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},sM=parseFloat,aM=parseInt,lv=typeof jr=="object"&&jr&&jr.Object===Object&&jr,lM=typeof self=="object"&&self&&self.Object===Object&&self,on=lv||lM||Function("return this")(),Vf=t&&!t.nodeType&&t,No=Vf&&!0&&e&&!e.nodeType&&e,cv=No&&No.exports===Vf,Kf=cv&&lv.process,nr=function(){try{var W=No&&No.require&&No.require("util").types;return W||Kf&&Kf.binding&&Kf.binding("util")}catch{}}(),uv=nr&&nr.isArrayBuffer,dv=nr&&nr.isDate,fv=nr&&nr.isMap,pv=nr&&nr.isRegExp,hv=nr&&nr.isSet,gv=nr&&nr.isTypedArray;function Fn(W,Q,K){switch(K.length){case 0:return W.call(Q);case 1:return W.call(Q,K[0]);case 2:return W.call(Q,K[0],K[1]);case 3:return W.call(Q,K[0],K[1],K[2])}return W.apply(Q,K)}function cM(W,Q,K,xe){for(var ze=-1,dt=W==null?0:W.length;++ze<dt;){var Yt=W[ze];Q(xe,Yt,K(Yt),W)}return xe}function rr(W,Q){for(var K=-1,xe=W==null?0:W.length;++K<xe&&Q(W[K],K,W)!==!1;);return W}function uM(W,Q){for(var K=W==null?0:W.length;K--&&Q(W[K],K,W)!==!1;);return W}function mv(W,Q){for(var K=-1,xe=W==null?0:W.length;++K<xe;)if(!Q(W[K],K,W))return!1;return!0}function fo(W,Q){for(var K=-1,xe=W==null?0:W.length,ze=0,dt=[];++K<xe;){var Yt=W[K];Q(Yt,K,W)&&(dt[ze++]=Yt)}return dt}function _c(W,Q){var K=W==null?0:W.length;return!!K&&$i(W,Q,0)>-1}function Yf(W,Q,K){for(var xe=-1,ze=W==null?0:W.length;++xe<ze;)if(K(Q,W[xe]))return!0;return!1}function kt(W,Q){for(var K=-1,xe=W==null?0:W.length,ze=Array(xe);++K<xe;)ze[K]=Q(W[K],K,W);return ze}function po(W,Q){for(var K=-1,xe=Q.length,ze=W.length;++K<xe;)W[ze+K]=Q[K];return W}function Xf(W,Q,K,xe){var ze=-1,dt=W==null?0:W.length;for(xe&&dt&&(K=W[++ze]);++ze<dt;)K=Q(K,W[ze],ze,W);return K}function dM(W,Q,K,xe){var ze=W==null?0:W.length;for(xe&&ze&&(K=W[--ze]);ze--;)K=Q(K,W[ze],ze,W);return K}function Jf(W,Q){for(var K=-1,xe=W==null?0:W.length;++K<xe;)if(Q(W[K],K,W))return!0;return!1}var fM=Zf("length");function pM(W){return W.split("")}function hM(W){return W.match(S$)||[]}function yv(W,Q,K){var xe;return K(W,function(ze,dt,Yt){if(Q(ze,dt,Yt))return xe=dt,!1}),xe}function Ec(W,Q,K,xe){for(var ze=W.length,dt=K+(xe?1:-1);xe?dt--:++dt<ze;)if(Q(W[dt],dt,W))return dt;return-1}function $i(W,Q,K){return Q===Q?RM(W,Q,K):Ec(W,vv,K)}function gM(W,Q,K,xe){for(var ze=K-1,dt=W.length;++ze<dt;)if(xe(W[ze],Q))return ze;return-1}function vv(W){return W!==W}function bv(W,Q){var K=W==null?0:W.length;return K?ep(W,Q)/K:We}function Zf(W){return function(Q){return Q==null?n:Q[W]}}function Qf(W){return function(Q){return W==null?n:W[Q]}}function xv(W,Q,K,xe,ze){return ze(W,function(dt,Yt,Ct){K=xe?(xe=!1,dt):Q(K,dt,Yt,Ct)}),K}function mM(W,Q){var K=W.length;for(W.sort(Q);K--;)W[K]=W[K].value;return W}function ep(W,Q){for(var K,xe=-1,ze=W.length;++xe<ze;){var dt=Q(W[xe]);dt!==n&&(K=K===n?dt:K+dt)}return K}function tp(W,Q){for(var K=-1,xe=Array(W);++K<W;)xe[K]=Q(K);return xe}function yM(W,Q){return kt(Q,function(K){return[K,W[K]]})}function wv(W){return W&&W.slice(0,Ev(W)+1).replace(zf,"")}function Nn(W){return function(Q){return W(Q)}}function np(W,Q){return kt(Q,function(K){return W[K]})}function Us(W,Q){return W.has(Q)}function Sv(W,Q){for(var K=-1,xe=W.length;++K<xe&&$i(Q,W[K],0)>-1;);return K}function Cv(W,Q){for(var K=W.length;K--&&$i(Q,W[K],0)>-1;);return K}function vM(W,Q){for(var K=W.length,xe=0;K--;)W[K]===Q&&++xe;return xe}var bM=Qf(nM),xM=Qf(rM);function wM(W){return"\\"+iM[W]}function SM(W,Q){return W==null?n:W[Q]}function Mi(W){return Z$.test(W)}function CM(W){return Q$.test(W)}function _M(W){for(var Q,K=[];!(Q=W.next()).done;)K.push(Q.value);return K}function rp(W){var Q=-1,K=Array(W.size);return W.forEach(function(xe,ze){K[++Q]=[ze,xe]}),K}function _v(W,Q){return function(K){return W(Q(K))}}function ho(W,Q){for(var K=-1,xe=W.length,ze=0,dt=[];++K<xe;){var Yt=W[K];(Yt===Q||Yt===y)&&(W[K]=y,dt[ze++]=K)}return dt}function Rc(W){var Q=-1,K=Array(W.size);return W.forEach(function(xe){K[++Q]=xe}),K}function EM(W){var Q=-1,K=Array(W.size);return W.forEach(function(xe){K[++Q]=[xe,xe]}),K}function RM(W,Q,K){for(var xe=K-1,ze=W.length;++xe<ze;)if(W[xe]===Q)return xe;return-1}function PM(W,Q,K){for(var xe=K+1;xe--;)if(W[xe]===Q)return xe;return xe}function Bi(W){return Mi(W)?IM(W):fM(W)}function hr(W){return Mi(W)?kM(W):pM(W)}function Ev(W){for(var Q=W.length;Q--&&v$.test(W.charAt(Q)););return Q}var TM=Qf(oM);function IM(W){for(var Q=qf.lastIndex=0;qf.test(W);)++Q;return Q}function kM(W){return W.match(qf)||[]}function OM(W){return W.match(J$)||[]}var AM=function W(Q){Q=Q==null?on:Di.defaults(on.Object(),Q,Di.pick(on,eM));var K=Q.Array,xe=Q.Date,ze=Q.Error,dt=Q.Function,Yt=Q.Math,Ct=Q.Object,op=Q.RegExp,$M=Q.String,or=Q.TypeError,Pc=K.prototype,MM=dt.prototype,ji=Ct.prototype,Tc=Q["__core-js_shared__"],Ic=MM.toString,bt=ji.hasOwnProperty,BM=0,Rv=function(){var o=/[^.]+$/.exec(Tc&&Tc.keys&&Tc.keys.IE_PROTO||"");return o?"Symbol(src)_1."+o:""}(),kc=ji.toString,DM=Ic.call(Ct),jM=on._,LM=op("^"+Ic.call(bt).replace(Nf,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Oc=cv?Q.Buffer:n,go=Q.Symbol,Ac=Q.Uint8Array,Pv=Oc?Oc.allocUnsafe:n,$c=_v(Ct.getPrototypeOf,Ct),Tv=Ct.create,Iv=ji.propertyIsEnumerable,Mc=Pc.splice,kv=go?go.isConcatSpreadable:n,Hs=go?go.iterator:n,zo=go?go.toStringTag:n,Bc=function(){try{var o=qo(Ct,"defineProperty");return o({},"",{}),o}catch{}}(),FM=Q.clearTimeout!==on.clearTimeout&&Q.clearTimeout,NM=xe&&xe.now!==on.Date.now&&xe.now,zM=Q.setTimeout!==on.setTimeout&&Q.setTimeout,Dc=Yt.ceil,jc=Yt.floor,ip=Ct.getOwnPropertySymbols,WM=Oc?Oc.isBuffer:n,Ov=Q.isFinite,UM=Pc.join,HM=_v(Ct.keys,Ct),Xt=Yt.max,pn=Yt.min,GM=xe.now,qM=Q.parseInt,Av=Yt.random,VM=Pc.reverse,sp=qo(Q,"DataView"),Gs=qo(Q,"Map"),ap=qo(Q,"Promise"),Li=qo(Q,"Set"),qs=qo(Q,"WeakMap"),Vs=qo(Ct,"create"),Lc=qs&&new qs,Fi={},KM=Vo(sp),YM=Vo(Gs),XM=Vo(ap),JM=Vo(Li),ZM=Vo(qs),Fc=go?go.prototype:n,Ks=Fc?Fc.valueOf:n,$v=Fc?Fc.toString:n;function I(o){if(zt(o)&&!Ue(o)&&!(o instanceof nt)){if(o instanceof ir)return o;if(bt.call(o,"__wrapped__"))return Mb(o)}return new ir(o)}var Ni=function(){function o(){}return function(s){if(!$t(s))return{};if(Tv)return Tv(s);o.prototype=s;var u=new o;return o.prototype=n,u}}();function Nc(){}function ir(o,s){this.__wrapped__=o,this.__actions__=[],this.__chain__=!!s,this.__index__=0,this.__values__=n}I.templateSettings={escape:f$,evaluate:p$,interpolate:W0,variable:"",imports:{_:I}},I.prototype=Nc.prototype,I.prototype.constructor=I,ir.prototype=Ni(Nc.prototype),ir.prototype.constructor=ir;function nt(o){this.__wrapped__=o,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=be,this.__views__=[]}function QM(){var o=new nt(this.__wrapped__);return o.__actions__=Pn(this.__actions__),o.__dir__=this.__dir__,o.__filtered__=this.__filtered__,o.__iteratees__=Pn(this.__iteratees__),o.__takeCount__=this.__takeCount__,o.__views__=Pn(this.__views__),o}function eB(){if(this.__filtered__){var o=new nt(this);o.__dir__=-1,o.__filtered__=!0}else o=this.clone(),o.__dir__*=-1;return o}function tB(){var o=this.__wrapped__.value(),s=this.__dir__,u=Ue(o),p=s<0,S=u?o.length:0,A=pD(0,S,this.__views__),j=A.start,N=A.end,U=N-j,ne=p?N:j-1,re=this.__iteratees__,ie=re.length,me=0,Ee=pn(U,this.__takeCount__);if(!u||!p&&S==U&&Ee==U)return rb(o,this.__actions__);var Oe=[];e:for(;U--&&me<Ee;){ne+=s;for(var Je=-1,Ae=o[ne];++Je<ie;){var et=re[Je],rt=et.iteratee,Un=et.type,xn=rt(Ae);if(Un==ee)Ae=xn;else if(!xn){if(Un==X)continue e;break e}}Oe[me++]=Ae}return Oe}nt.prototype=Ni(Nc.prototype),nt.prototype.constructor=nt;function Wo(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var p=o[s];this.set(p[0],p[1])}}function nB(){this.__data__=Vs?Vs(null):{},this.size=0}function rB(o){var s=this.has(o)&&delete this.__data__[o];return this.size-=s?1:0,s}function oB(o){var s=this.__data__;if(Vs){var u=s[o];return u===d?n:u}return bt.call(s,o)?s[o]:n}function iB(o){var s=this.__data__;return Vs?s[o]!==n:bt.call(s,o)}function sB(o,s){var u=this.__data__;return this.size+=this.has(o)?0:1,u[o]=Vs&&s===n?d:s,this}Wo.prototype.clear=nB,Wo.prototype.delete=rB,Wo.prototype.get=oB,Wo.prototype.has=iB,Wo.prototype.set=sB;function qr(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var p=o[s];this.set(p[0],p[1])}}function aB(){this.__data__=[],this.size=0}function lB(o){var s=this.__data__,u=zc(s,o);if(u<0)return!1;var p=s.length-1;return u==p?s.pop():Mc.call(s,u,1),--this.size,!0}function cB(o){var s=this.__data__,u=zc(s,o);return u<0?n:s[u][1]}function uB(o){return zc(this.__data__,o)>-1}function dB(o,s){var u=this.__data__,p=zc(u,o);return p<0?(++this.size,u.push([o,s])):u[p][1]=s,this}qr.prototype.clear=aB,qr.prototype.delete=lB,qr.prototype.get=cB,qr.prototype.has=uB,qr.prototype.set=dB;function Vr(o){var s=-1,u=o==null?0:o.length;for(this.clear();++s<u;){var p=o[s];this.set(p[0],p[1])}}function fB(){this.size=0,this.__data__={hash:new Wo,map:new(Gs||qr),string:new Wo}}function pB(o){var s=Qc(this,o).delete(o);return this.size-=s?1:0,s}function hB(o){return Qc(this,o).get(o)}function gB(o){return Qc(this,o).has(o)}function mB(o,s){var u=Qc(this,o),p=u.size;return u.set(o,s),this.size+=u.size==p?0:1,this}Vr.prototype.clear=fB,Vr.prototype.delete=pB,Vr.prototype.get=hB,Vr.prototype.has=gB,Vr.prototype.set=mB;function Uo(o){var s=-1,u=o==null?0:o.length;for(this.__data__=new Vr;++s<u;)this.add(o[s])}function yB(o){return this.__data__.set(o,d),this}function vB(o){return this.__data__.has(o)}Uo.prototype.add=Uo.prototype.push=yB,Uo.prototype.has=vB;function gr(o){var s=this.__data__=new qr(o);this.size=s.size}function bB(){this.__data__=new qr,this.size=0}function xB(o){var s=this.__data__,u=s.delete(o);return this.size=s.size,u}function wB(o){return this.__data__.get(o)}function SB(o){return this.__data__.has(o)}function CB(o,s){var u=this.__data__;if(u instanceof qr){var p=u.__data__;if(!Gs||p.length<i-1)return p.push([o,s]),this.size=++u.size,this;u=this.__data__=new Vr(p)}return u.set(o,s),this.size=u.size,this}gr.prototype.clear=bB,gr.prototype.delete=xB,gr.prototype.get=wB,gr.prototype.has=SB,gr.prototype.set=CB;function Mv(o,s){var u=Ue(o),p=!u&&Ko(o),S=!u&&!p&&xo(o),A=!u&&!p&&!S&&Hi(o),j=u||p||S||A,N=j?tp(o.length,$M):[],U=N.length;for(var ne in o)(s||bt.call(o,ne))&&!(j&&(ne=="length"||S&&(ne=="offset"||ne=="parent")||A&&(ne=="buffer"||ne=="byteLength"||ne=="byteOffset")||Jr(ne,U)))&&N.push(ne);return N}function Bv(o){var s=o.length;return s?o[vp(0,s-1)]:n}function _B(o,s){return eu(Pn(o),Ho(s,0,o.length))}function EB(o){return eu(Pn(o))}function lp(o,s,u){(u!==n&&!mr(o[s],u)||u===n&&!(s in o))&&Kr(o,s,u)}function Ys(o,s,u){var p=o[s];(!(bt.call(o,s)&&mr(p,u))||u===n&&!(s in o))&&Kr(o,s,u)}function zc(o,s){for(var u=o.length;u--;)if(mr(o[u][0],s))return u;return-1}function RB(o,s,u,p){return mo(o,function(S,A,j){s(p,S,u(S),j)}),p}function Dv(o,s){return o&&Br(s,en(s),o)}function PB(o,s){return o&&Br(s,In(s),o)}function Kr(o,s,u){s=="__proto__"&&Bc?Bc(o,s,{configurable:!0,enumerable:!0,value:u,writable:!0}):o[s]=u}function cp(o,s){for(var u=-1,p=s.length,S=K(p),A=o==null;++u<p;)S[u]=A?n:Up(o,s[u]);return S}function Ho(o,s,u){return o===o&&(u!==n&&(o=o<=u?o:u),s!==n&&(o=o>=s?o:s)),o}function sr(o,s,u,p,S,A){var j,N=s&m,U=s&v,ne=s&w;if(u&&(j=S?u(o,p,S,A):u(o)),j!==n)return j;if(!$t(o))return o;var re=Ue(o);if(re){if(j=gD(o),!N)return Pn(o,j)}else{var ie=hn(o),me=ie==de||ie==Te;if(xo(o))return sb(o,N);if(ie==De||ie==Xe||me&&!S){if(j=U||me?{}:Eb(o),!N)return U?oD(o,PB(j,o)):rD(o,Dv(j,o))}else{if(!Et[ie])return S?o:{};j=mD(o,ie,N)}}A||(A=new gr);var Ee=A.get(o);if(Ee)return Ee;A.set(o,j),ex(o)?o.forEach(function(Ae){j.add(sr(Ae,s,u,Ae,o,A))}):Zb(o)&&o.forEach(function(Ae,et){j.set(et,sr(Ae,s,u,et,o,A))});var Oe=ne?U?Ip:Tp:U?In:en,Je=re?n:Oe(o);return rr(Je||o,function(Ae,et){Je&&(et=Ae,Ae=o[et]),Ys(j,et,sr(Ae,s,u,et,o,A))}),j}function TB(o){var s=en(o);return function(u){return jv(u,o,s)}}function jv(o,s,u){var p=u.length;if(o==null)return!p;for(o=Ct(o);p--;){var S=u[p],A=s[S],j=o[S];if(j===n&&!(S in o)||!A(j))return!1}return!0}function Lv(o,s,u){if(typeof o!="function")throw new or(l);return na(function(){o.apply(n,u)},s)}function Xs(o,s,u,p){var S=-1,A=_c,j=!0,N=o.length,U=[],ne=s.length;if(!N)return U;u&&(s=kt(s,Nn(u))),p?(A=Yf,j=!1):s.length>=i&&(A=Us,j=!1,s=new Uo(s));e:for(;++S<N;){var re=o[S],ie=u==null?re:u(re);if(re=p||re!==0?re:0,j&&ie===ie){for(var me=ne;me--;)if(s[me]===ie)continue e;U.push(re)}else A(s,ie,p)||U.push(re)}return U}var mo=db(Mr),Fv=db(dp,!0);function IB(o,s){var u=!0;return mo(o,function(p,S,A){return u=!!s(p,S,A),u}),u}function Wc(o,s,u){for(var p=-1,S=o.length;++p<S;){var A=o[p],j=s(A);if(j!=null&&(N===n?j===j&&!Wn(j):u(j,N)))var N=j,U=A}return U}function kB(o,s,u,p){var S=o.length;for(u=Ve(u),u<0&&(u=-u>S?0:S+u),p=p===n||p>S?S:Ve(p),p<0&&(p+=S),p=u>p?0:nx(p);u<p;)o[u++]=s;return o}function Nv(o,s){var u=[];return mo(o,function(p,S,A){s(p,S,A)&&u.push(p)}),u}function sn(o,s,u,p,S){var A=-1,j=o.length;for(u||(u=vD),S||(S=[]);++A<j;){var N=o[A];s>0&&u(N)?s>1?sn(N,s-1,u,p,S):po(S,N):p||(S[S.length]=N)}return S}var up=fb(),zv=fb(!0);function Mr(o,s){return o&&up(o,s,en)}function dp(o,s){return o&&zv(o,s,en)}function Uc(o,s){return fo(s,function(u){return Zr(o[u])})}function Go(o,s){s=vo(s,o);for(var u=0,p=s.length;o!=null&&u<p;)o=o[Dr(s[u++])];return u&&u==p?o:n}function Wv(o,s,u){var p=s(o);return Ue(o)?p:po(p,u(o))}function vn(o){return o==null?o===n?At:qe:zo&&zo in Ct(o)?fD(o):ED(o)}function fp(o,s){return o>s}function OB(o,s){return o!=null&&bt.call(o,s)}function AB(o,s){return o!=null&&s in Ct(o)}function $B(o,s,u){return o>=pn(s,u)&&o<Xt(s,u)}function pp(o,s,u){for(var p=u?Yf:_c,S=o[0].length,A=o.length,j=A,N=K(A),U=1/0,ne=[];j--;){var re=o[j];j&&s&&(re=kt(re,Nn(s))),U=pn(re.length,U),N[j]=!u&&(s||S>=120&&re.length>=120)?new Uo(j&&re):n}re=o[0];var ie=-1,me=N[0];e:for(;++ie<S&&ne.length<U;){var Ee=re[ie],Oe=s?s(Ee):Ee;if(Ee=u||Ee!==0?Ee:0,!(me?Us(me,Oe):p(ne,Oe,u))){for(j=A;--j;){var Je=N[j];if(!(Je?Us(Je,Oe):p(o[j],Oe,u)))continue e}me&&me.push(Oe),ne.push(Ee)}}return ne}function MB(o,s,u,p){return Mr(o,function(S,A,j){s(p,u(S),A,j)}),p}function Js(o,s,u){s=vo(s,o),o=Ib(o,s);var p=o==null?o:o[Dr(lr(s))];return p==null?n:Fn(p,o,u)}function Uv(o){return zt(o)&&vn(o)==Xe}function BB(o){return zt(o)&&vn(o)==T}function DB(o){return zt(o)&&vn(o)==ue}function Zs(o,s,u,p,S){return o===s?!0:o==null||s==null||!zt(o)&&!zt(s)?o!==o&&s!==s:jB(o,s,u,p,Zs,S)}function jB(o,s,u,p,S,A){var j=Ue(o),N=Ue(s),U=j?Ge:hn(o),ne=N?Ge:hn(s);U=U==Xe?De:U,ne=ne==Xe?De:ne;var re=U==De,ie=ne==De,me=U==ne;if(me&&xo(o)){if(!xo(s))return!1;j=!0,re=!1}if(me&&!re)return A||(A=new gr),j||Hi(o)?Sb(o,s,u,p,S,A):uD(o,s,U,u,p,S,A);if(!(u&x)){var Ee=re&&bt.call(o,"__wrapped__"),Oe=ie&&bt.call(s,"__wrapped__");if(Ee||Oe){var Je=Ee?o.value():o,Ae=Oe?s.value():s;return A||(A=new gr),S(Je,Ae,u,p,A)}}return me?(A||(A=new gr),dD(o,s,u,p,S,A)):!1}function LB(o){return zt(o)&&hn(o)==ve}function hp(o,s,u,p){var S=u.length,A=S,j=!p;if(o==null)return!A;for(o=Ct(o);S--;){var N=u[S];if(j&&N[2]?N[1]!==o[N[0]]:!(N[0]in o))return!1}for(;++S<A;){N=u[S];var U=N[0],ne=o[U],re=N[1];if(j&&N[2]){if(ne===n&&!(U in o))return!1}else{var ie=new gr;if(p)var me=p(ne,re,U,o,s,ie);if(!(me===n?Zs(re,ne,x|_,p,ie):me))return!1}}return!0}function Hv(o){if(!$t(o)||xD(o))return!1;var s=Zr(o)?LM:T$;return s.test(Vo(o))}function FB(o){return zt(o)&&vn(o)==tt}function NB(o){return zt(o)&&hn(o)==$e}function zB(o){return zt(o)&&su(o.length)&&!!Pt[vn(o)]}function Gv(o){return typeof o=="function"?o:o==null?kn:typeof o=="object"?Ue(o)?Kv(o[0],o[1]):Vv(o):px(o)}function gp(o){if(!ta(o))return HM(o);var s=[];for(var u in Ct(o))bt.call(o,u)&&u!="constructor"&&s.push(u);return s}function WB(o){if(!$t(o))return _D(o);var s=ta(o),u=[];for(var p in o)p=="constructor"&&(s||!bt.call(o,p))||u.push(p);return u}function mp(o,s){return o<s}function qv(o,s){var u=-1,p=Tn(o)?K(o.length):[];return mo(o,function(S,A,j){p[++u]=s(S,A,j)}),p}function Vv(o){var s=Op(o);return s.length==1&&s[0][2]?Pb(s[0][0],s[0][1]):function(u){return u===o||hp(u,o,s)}}function Kv(o,s){return $p(o)&&Rb(s)?Pb(Dr(o),s):function(u){var p=Up(u,o);return p===n&&p===s?Hp(u,o):Zs(s,p,x|_)}}function Hc(o,s,u,p,S){o!==s&&up(s,function(A,j){if(S||(S=new gr),$t(A))UB(o,s,j,u,Hc,p,S);else{var N=p?p(Bp(o,j),A,j+"",o,s,S):n;N===n&&(N=A),lp(o,j,N)}},In)}function UB(o,s,u,p,S,A,j){var N=Bp(o,u),U=Bp(s,u),ne=j.get(U);if(ne){lp(o,u,ne);return}var re=A?A(N,U,u+"",o,s,j):n,ie=re===n;if(ie){var me=Ue(U),Ee=!me&&xo(U),Oe=!me&&!Ee&&Hi(U);re=U,me||Ee||Oe?Ue(N)?re=N:Ht(N)?re=Pn(N):Ee?(ie=!1,re=sb(U,!0)):Oe?(ie=!1,re=ab(U,!0)):re=[]:ra(U)||Ko(U)?(re=N,Ko(N)?re=rx(N):(!$t(N)||Zr(N))&&(re=Eb(U))):ie=!1}ie&&(j.set(U,re),S(re,U,p,A,j),j.delete(U)),lp(o,u,re)}function Yv(o,s){var u=o.length;if(u)return s+=s<0?u:0,Jr(s,u)?o[s]:n}function Xv(o,s,u){s.length?s=kt(s,function(A){return Ue(A)?function(j){return Go(j,A.length===1?A[0]:A)}:A}):s=[kn];var p=-1;s=kt(s,Nn(Ie()));var S=qv(o,function(A,j,N){var U=kt(s,function(ne){return ne(A)});return{criteria:U,index:++p,value:A}});return mM(S,function(A,j){return nD(A,j,u)})}function HB(o,s){return Jv(o,s,function(u,p){return Hp(o,p)})}function Jv(o,s,u){for(var p=-1,S=s.length,A={};++p<S;){var j=s[p],N=Go(o,j);u(N,j)&&Qs(A,vo(j,o),N)}return A}function GB(o){return function(s){return Go(s,o)}}function yp(o,s,u,p){var S=p?gM:$i,A=-1,j=s.length,N=o;for(o===s&&(s=Pn(s)),u&&(N=kt(o,Nn(u)));++A<j;)for(var U=0,ne=s[A],re=u?u(ne):ne;(U=S(N,re,U,p))>-1;)N!==o&&Mc.call(N,U,1),Mc.call(o,U,1);return o}function Zv(o,s){for(var u=o?s.length:0,p=u-1;u--;){var S=s[u];if(u==p||S!==A){var A=S;Jr(S)?Mc.call(o,S,1):wp(o,S)}}return o}function vp(o,s){return o+jc(Av()*(s-o+1))}function qB(o,s,u,p){for(var S=-1,A=Xt(Dc((s-o)/(u||1)),0),j=K(A);A--;)j[p?A:++S]=o,o+=u;return j}function bp(o,s){var u="";if(!o||s<1||s>pe)return u;do s%2&&(u+=o),s=jc(s/2),s&&(o+=o);while(s);return u}function Ze(o,s){return Dp(Tb(o,s,kn),o+"")}function VB(o){return Bv(Gi(o))}function KB(o,s){var u=Gi(o);return eu(u,Ho(s,0,u.length))}function Qs(o,s,u,p){if(!$t(o))return o;s=vo(s,o);for(var S=-1,A=s.length,j=A-1,N=o;N!=null&&++S<A;){var U=Dr(s[S]),ne=u;if(U==="__proto__"||U==="constructor"||U==="prototype")return o;if(S!=j){var re=N[U];ne=p?p(re,U,N):n,ne===n&&(ne=$t(re)?re:Jr(s[S+1])?[]:{})}Ys(N,U,ne),N=N[U]}return o}var Qv=Lc?function(o,s){return Lc.set(o,s),o}:kn,YB=Bc?function(o,s){return Bc(o,"toString",{configurable:!0,enumerable:!1,value:qp(s),writable:!0})}:kn;function XB(o){return eu(Gi(o))}function ar(o,s,u){var p=-1,S=o.length;s<0&&(s=-s>S?0:S+s),u=u>S?S:u,u<0&&(u+=S),S=s>u?0:u-s>>>0,s>>>=0;for(var A=K(S);++p<S;)A[p]=o[p+s];return A}function JB(o,s){var u;return mo(o,function(p,S,A){return u=s(p,S,A),!u}),!!u}function Gc(o,s,u){var p=0,S=o==null?p:o.length;if(typeof s=="number"&&s===s&&S<=Ne){for(;p<S;){var A=p+S>>>1,j=o[A];j!==null&&!Wn(j)&&(u?j<=s:j<s)?p=A+1:S=A}return S}return xp(o,s,kn,u)}function xp(o,s,u,p){var S=0,A=o==null?0:o.length;if(A===0)return 0;s=u(s);for(var j=s!==s,N=s===null,U=Wn(s),ne=s===n;S<A;){var re=jc((S+A)/2),ie=u(o[re]),me=ie!==n,Ee=ie===null,Oe=ie===ie,Je=Wn(ie);if(j)var Ae=p||Oe;else ne?Ae=Oe&&(p||me):N?Ae=Oe&&me&&(p||!Ee):U?Ae=Oe&&me&&!Ee&&(p||!Je):Ee||Je?Ae=!1:Ae=p?ie<=s:ie<s;Ae?S=re+1:A=re}return pn(A,Be)}function eb(o,s){for(var u=-1,p=o.length,S=0,A=[];++u<p;){var j=o[u],N=s?s(j):j;if(!u||!mr(N,U)){var U=N;A[S++]=j===0?0:j}}return A}function tb(o){return typeof o=="number"?o:Wn(o)?We:+o}function zn(o){if(typeof o=="string")return o;if(Ue(o))return kt(o,zn)+"";if(Wn(o))return $v?$v.call(o):"";var s=o+"";return s=="0"&&1/o==-fe?"-0":s}function yo(o,s,u){var p=-1,S=_c,A=o.length,j=!0,N=[],U=N;if(u)j=!1,S=Yf;else if(A>=i){var ne=s?null:lD(o);if(ne)return Rc(ne);j=!1,S=Us,U=new Uo}else U=s?[]:N;e:for(;++p<A;){var re=o[p],ie=s?s(re):re;if(re=u||re!==0?re:0,j&&ie===ie){for(var me=U.length;me--;)if(U[me]===ie)continue e;s&&U.push(ie),N.push(re)}else S(U,ie,u)||(U!==N&&U.push(ie),N.push(re))}return N}function wp(o,s){return s=vo(s,o),o=Ib(o,s),o==null||delete o[Dr(lr(s))]}function nb(o,s,u,p){return Qs(o,s,u(Go(o,s)),p)}function qc(o,s,u,p){for(var S=o.length,A=p?S:-1;(p?A--:++A<S)&&s(o[A],A,o););return u?ar(o,p?0:A,p?A+1:S):ar(o,p?A+1:0,p?S:A)}function rb(o,s){var u=o;return u instanceof nt&&(u=u.value()),Xf(s,function(p,S){return S.func.apply(S.thisArg,po([p],S.args))},u)}function Sp(o,s,u){var p=o.length;if(p<2)return p?yo(o[0]):[];for(var S=-1,A=K(p);++S<p;)for(var j=o[S],N=-1;++N<p;)N!=S&&(A[S]=Xs(A[S]||j,o[N],s,u));return yo(sn(A,1),s,u)}function ob(o,s,u){for(var p=-1,S=o.length,A=s.length,j={};++p<S;){var N=p<A?s[p]:n;u(j,o[p],N)}return j}function Cp(o){return Ht(o)?o:[]}function _p(o){return typeof o=="function"?o:kn}function vo(o,s){return Ue(o)?o:$p(o,s)?[o]:$b(gt(o))}var ZB=Ze;function bo(o,s,u){var p=o.length;return u=u===n?p:u,!s&&u>=p?o:ar(o,s,u)}var ib=FM||function(o){return on.clearTimeout(o)};function sb(o,s){if(s)return o.slice();var u=o.length,p=Pv?Pv(u):new o.constructor(u);return o.copy(p),p}function Ep(o){var s=new o.constructor(o.byteLength);return new Ac(s).set(new Ac(o)),s}function QB(o,s){var u=s?Ep(o.buffer):o.buffer;return new o.constructor(u,o.byteOffset,o.byteLength)}function eD(o){var s=new o.constructor(o.source,U0.exec(o));return s.lastIndex=o.lastIndex,s}function tD(o){return Ks?Ct(Ks.call(o)):{}}function ab(o,s){var u=s?Ep(o.buffer):o.buffer;return new o.constructor(u,o.byteOffset,o.length)}function lb(o,s){if(o!==s){var u=o!==n,p=o===null,S=o===o,A=Wn(o),j=s!==n,N=s===null,U=s===s,ne=Wn(s);if(!N&&!ne&&!A&&o>s||A&&j&&U&&!N&&!ne||p&&j&&U||!u&&U||!S)return 1;if(!p&&!A&&!ne&&o<s||ne&&u&&S&&!p&&!A||N&&u&&S||!j&&S||!U)return-1}return 0}function nD(o,s,u){for(var p=-1,S=o.criteria,A=s.criteria,j=S.length,N=u.length;++p<j;){var U=lb(S[p],A[p]);if(U){if(p>=N)return U;var ne=u[p];return U*(ne=="desc"?-1:1)}}return o.index-s.index}function cb(o,s,u,p){for(var S=-1,A=o.length,j=u.length,N=-1,U=s.length,ne=Xt(A-j,0),re=K(U+ne),ie=!p;++N<U;)re[N]=s[N];for(;++S<j;)(ie||S<A)&&(re[u[S]]=o[S]);for(;ne--;)re[N++]=o[S++];return re}function ub(o,s,u,p){for(var S=-1,A=o.length,j=-1,N=u.length,U=-1,ne=s.length,re=Xt(A-N,0),ie=K(re+ne),me=!p;++S<re;)ie[S]=o[S];for(var Ee=S;++U<ne;)ie[Ee+U]=s[U];for(;++j<N;)(me||S<A)&&(ie[Ee+u[j]]=o[S++]);return ie}function Pn(o,s){var u=-1,p=o.length;for(s||(s=K(p));++u<p;)s[u]=o[u];return s}function Br(o,s,u,p){var S=!u;u||(u={});for(var A=-1,j=s.length;++A<j;){var N=s[A],U=p?p(u[N],o[N],N,u,o):n;U===n&&(U=o[N]),S?Kr(u,N,U):Ys(u,N,U)}return u}function rD(o,s){return Br(o,Ap(o),s)}function oD(o,s){return Br(o,Cb(o),s)}function Vc(o,s){return function(u,p){var S=Ue(u)?cM:RB,A=s?s():{};return S(u,o,Ie(p,2),A)}}function zi(o){return Ze(function(s,u){var p=-1,S=u.length,A=S>1?u[S-1]:n,j=S>2?u[2]:n;for(A=o.length>3&&typeof A=="function"?(S--,A):n,j&&bn(u[0],u[1],j)&&(A=S<3?n:A,S=1),s=Ct(s);++p<S;){var N=u[p];N&&o(s,N,p,A)}return s})}function db(o,s){return function(u,p){if(u==null)return u;if(!Tn(u))return o(u,p);for(var S=u.length,A=s?S:-1,j=Ct(u);(s?A--:++A<S)&&p(j[A],A,j)!==!1;);return u}}function fb(o){return function(s,u,p){for(var S=-1,A=Ct(s),j=p(s),N=j.length;N--;){var U=j[o?N:++S];if(u(A[U],U,A)===!1)break}return s}}function iD(o,s,u){var p=s&k,S=ea(o);function A(){var j=this&&this!==on&&this instanceof A?S:o;return j.apply(p?u:this,arguments)}return A}function pb(o){return function(s){s=gt(s);var u=Mi(s)?hr(s):n,p=u?u[0]:s.charAt(0),S=u?bo(u,1).join(""):s.slice(1);return p[o]()+S}}function Wi(o){return function(s){return Xf(dx(ux(s).replace(Y$,"")),o,"")}}function ea(o){return function(){var s=arguments;switch(s.length){case 0:return new o;case 1:return new o(s[0]);case 2:return new o(s[0],s[1]);case 3:return new o(s[0],s[1],s[2]);case 4:return new o(s[0],s[1],s[2],s[3]);case 5:return new o(s[0],s[1],s[2],s[3],s[4]);case 6:return new o(s[0],s[1],s[2],s[3],s[4],s[5]);case 7:return new o(s[0],s[1],s[2],s[3],s[4],s[5],s[6])}var u=Ni(o.prototype),p=o.apply(u,s);return $t(p)?p:u}}function sD(o,s,u){var p=ea(o);function S(){for(var A=arguments.length,j=K(A),N=A,U=Ui(S);N--;)j[N]=arguments[N];var ne=A<3&&j[0]!==U&&j[A-1]!==U?[]:ho(j,U);if(A-=ne.length,A<u)return vb(o,s,Kc,S.placeholder,n,j,ne,n,n,u-A);var re=this&&this!==on&&this instanceof S?p:o;return Fn(re,this,j)}return S}function hb(o){return function(s,u,p){var S=Ct(s);if(!Tn(s)){var A=Ie(u,3);s=en(s),u=function(N){return A(S[N],N,S)}}var j=o(s,u,p);return j>-1?S[A?s[j]:j]:n}}function gb(o){return Xr(function(s){var u=s.length,p=u,S=ir.prototype.thru;for(o&&s.reverse();p--;){var A=s[p];if(typeof A!="function")throw new or(l);if(S&&!j&&Zc(A)=="wrapper")var j=new ir([],!0)}for(p=j?p:u;++p<u;){A=s[p];var N=Zc(A),U=N=="wrapper"?kp(A):n;U&&Mp(U[0])&&U[1]==($|P|M|z)&&!U[4].length&&U[9]==1?j=j[Zc(U[0])].apply(j,U[3]):j=A.length==1&&Mp(A)?j[N]():j.thru(A)}return function(){var ne=arguments,re=ne[0];if(j&&ne.length==1&&Ue(re))return j.plant(re).value();for(var ie=0,me=u?s[ie].apply(this,ne):re;++ie<u;)me=s[ie].call(this,me);return me}})}function Kc(o,s,u,p,S,A,j,N,U,ne){var re=s&$,ie=s&k,me=s&C,Ee=s&(P|R),Oe=s&V,Je=me?n:ea(o);function Ae(){for(var et=arguments.length,rt=K(et),Un=et;Un--;)rt[Un]=arguments[Un];if(Ee)var xn=Ui(Ae),Hn=vM(rt,xn);if(p&&(rt=cb(rt,p,S,Ee)),A&&(rt=ub(rt,A,j,Ee)),et-=Hn,Ee&&et<ne){var Gt=ho(rt,xn);return vb(o,s,Kc,Ae.placeholder,u,rt,Gt,N,U,ne-et)}var yr=ie?u:this,eo=me?yr[o]:o;return et=rt.length,N?rt=RD(rt,N):Oe&&et>1&&rt.reverse(),re&&U<et&&(rt.length=U),this&&this!==on&&this instanceof Ae&&(eo=Je||ea(eo)),eo.apply(yr,rt)}return Ae}function mb(o,s){return function(u,p){return MB(u,o,s(p),{})}}function Yc(o,s){return function(u,p){var S;if(u===n&&p===n)return s;if(u!==n&&(S=u),p!==n){if(S===n)return p;typeof u=="string"||typeof p=="string"?(u=zn(u),p=zn(p)):(u=tb(u),p=tb(p)),S=o(u,p)}return S}}function Rp(o){return Xr(function(s){return s=kt(s,Nn(Ie())),Ze(function(u){var p=this;return o(s,function(S){return Fn(S,p,u)})})})}function Xc(o,s){s=s===n?" ":zn(s);var u=s.length;if(u<2)return u?bp(s,o):s;var p=bp(s,Dc(o/Bi(s)));return Mi(s)?bo(hr(p),0,o).join(""):p.slice(0,o)}function aD(o,s,u,p){var S=s&k,A=ea(o);function j(){for(var N=-1,U=arguments.length,ne=-1,re=p.length,ie=K(re+U),me=this&&this!==on&&this instanceof j?A:o;++ne<re;)ie[ne]=p[ne];for(;U--;)ie[ne++]=arguments[++N];return Fn(me,S?u:this,ie)}return j}function yb(o){return function(s,u,p){return p&&typeof p!="number"&&bn(s,u,p)&&(u=p=n),s=Qr(s),u===n?(u=s,s=0):u=Qr(u),p=p===n?s<u?1:-1:Qr(p),qB(s,u,p,o)}}function Jc(o){return function(s,u){return typeof s=="string"&&typeof u=="string"||(s=cr(s),u=cr(u)),o(s,u)}}function vb(o,s,u,p,S,A,j,N,U,ne){var re=s&P,ie=re?j:n,me=re?n:j,Ee=re?A:n,Oe=re?n:A;s|=re?M:D,s&=~(re?D:M),s&O||(s&=~(k|C));var Je=[o,s,S,Ee,ie,Oe,me,N,U,ne],Ae=u.apply(n,Je);return Mp(o)&&kb(Ae,Je),Ae.placeholder=p,Ob(Ae,o,s)}function Pp(o){var s=Yt[o];return function(u,p){if(u=cr(u),p=p==null?0:pn(Ve(p),292),p&&Ov(u)){var S=(gt(u)+"e").split("e"),A=s(S[0]+"e"+(+S[1]+p));return S=(gt(A)+"e").split("e"),+(S[0]+"e"+(+S[1]-p))}return s(u)}}var lD=Li&&1/Rc(new Li([,-0]))[1]==fe?function(o){return new Li(o)}:Yp;function bb(o){return function(s){var u=hn(s);return u==ve?rp(s):u==$e?EM(s):yM(s,o(s))}}function Yr(o,s,u,p,S,A,j,N){var U=s&C;if(!U&&typeof o!="function")throw new or(l);var ne=p?p.length:0;if(ne||(s&=~(M|D),p=S=n),j=j===n?j:Xt(Ve(j),0),N=N===n?N:Ve(N),ne-=S?S.length:0,s&D){var re=p,ie=S;p=S=n}var me=U?n:kp(o),Ee=[o,s,u,p,S,re,ie,A,j,N];if(me&&CD(Ee,me),o=Ee[0],s=Ee[1],u=Ee[2],p=Ee[3],S=Ee[4],N=Ee[9]=Ee[9]===n?U?0:o.length:Xt(Ee[9]-ne,0),!N&&s&(P|R)&&(s&=~(P|R)),!s||s==k)var Oe=iD(o,s,u);else s==P||s==R?Oe=sD(o,s,N):(s==M||s==(k|M))&&!S.length?Oe=aD(o,s,u,p):Oe=Kc.apply(n,Ee);var Je=me?Qv:kb;return Ob(Je(Oe,Ee),o,s)}function xb(o,s,u,p){return o===n||mr(o,ji[u])&&!bt.call(p,u)?s:o}function wb(o,s,u,p,S,A){return $t(o)&&$t(s)&&(A.set(s,o),Hc(o,s,n,wb,A),A.delete(s)),o}function cD(o){return ra(o)?n:o}function Sb(o,s,u,p,S,A){var j=u&x,N=o.length,U=s.length;if(N!=U&&!(j&&U>N))return!1;var ne=A.get(o),re=A.get(s);if(ne&&re)return ne==s&&re==o;var ie=-1,me=!0,Ee=u&_?new Uo:n;for(A.set(o,s),A.set(s,o);++ie<N;){var Oe=o[ie],Je=s[ie];if(p)var Ae=j?p(Je,Oe,ie,s,o,A):p(Oe,Je,ie,o,s,A);if(Ae!==n){if(Ae)continue;me=!1;break}if(Ee){if(!Jf(s,function(et,rt){if(!Us(Ee,rt)&&(Oe===et||S(Oe,et,u,p,A)))return Ee.push(rt)})){me=!1;break}}else if(!(Oe===Je||S(Oe,Je,u,p,A))){me=!1;break}}return A.delete(o),A.delete(s),me}function uD(o,s,u,p,S,A,j){switch(u){case h:if(o.byteLength!=s.byteLength||o.byteOffset!=s.byteOffset)return!1;o=o.buffer,s=s.buffer;case T:return!(o.byteLength!=s.byteLength||!A(new Ac(o),new Ac(s)));case le:case ue:case ke:return mr(+o,+s);case ge:return o.name==s.name&&o.message==s.message;case tt:case st:return o==s+"";case ve:var N=rp;case $e:var U=p&x;if(N||(N=Rc),o.size!=s.size&&!U)return!1;var ne=j.get(o);if(ne)return ne==s;p|=_,j.set(o,s);var re=Sb(N(o),N(s),p,S,A,j);return j.delete(o),re;case ye:if(Ks)return Ks.call(o)==Ks.call(s)}return!1}function dD(o,s,u,p,S,A){var j=u&x,N=Tp(o),U=N.length,ne=Tp(s),re=ne.length;if(U!=re&&!j)return!1;for(var ie=U;ie--;){var me=N[ie];if(!(j?me in s:bt.call(s,me)))return!1}var Ee=A.get(o),Oe=A.get(s);if(Ee&&Oe)return Ee==s&&Oe==o;var Je=!0;A.set(o,s),A.set(s,o);for(var Ae=j;++ie<U;){me=N[ie];var et=o[me],rt=s[me];if(p)var Un=j?p(rt,et,me,s,o,A):p(et,rt,me,o,s,A);if(!(Un===n?et===rt||S(et,rt,u,p,A):Un)){Je=!1;break}Ae||(Ae=me=="constructor")}if(Je&&!Ae){var xn=o.constructor,Hn=s.constructor;xn!=Hn&&"constructor"in o&&"constructor"in s&&!(typeof xn=="function"&&xn instanceof xn&&typeof Hn=="function"&&Hn instanceof Hn)&&(Je=!1)}return A.delete(o),A.delete(s),Je}function Xr(o){return Dp(Tb(o,n,jb),o+"")}function Tp(o){return Wv(o,en,Ap)}function Ip(o){return Wv(o,In,Cb)}var kp=Lc?function(o){return Lc.get(o)}:Yp;function Zc(o){for(var s=o.name+"",u=Fi[s],p=bt.call(Fi,s)?u.length:0;p--;){var S=u[p],A=S.func;if(A==null||A==o)return S.name}return s}function Ui(o){var s=bt.call(I,"placeholder")?I:o;return s.placeholder}function Ie(){var o=I.iteratee||Vp;return o=o===Vp?Gv:o,arguments.length?o(arguments[0],arguments[1]):o}function Qc(o,s){var u=o.__data__;return bD(s)?u[typeof s=="string"?"string":"hash"]:u.map}function Op(o){for(var s=en(o),u=s.length;u--;){var p=s[u],S=o[p];s[u]=[p,S,Rb(S)]}return s}function qo(o,s){var u=SM(o,s);return Hv(u)?u:n}function fD(o){var s=bt.call(o,zo),u=o[zo];try{o[zo]=n;var p=!0}catch{}var S=kc.call(o);return p&&(s?o[zo]=u:delete o[zo]),S}var Ap=ip?function(o){return o==null?[]:(o=Ct(o),fo(ip(o),function(s){return Iv.call(o,s)}))}:Xp,Cb=ip?function(o){for(var s=[];o;)po(s,Ap(o)),o=$c(o);return s}:Xp,hn=vn;(sp&&hn(new sp(new ArrayBuffer(1)))!=h||Gs&&hn(new Gs)!=ve||ap&&hn(ap.resolve())!=Re||Li&&hn(new Li)!=$e||qs&&hn(new qs)!=Nt)&&(hn=function(o){var s=vn(o),u=s==De?o.constructor:n,p=u?Vo(u):"";if(p)switch(p){case KM:return h;case YM:return ve;case XM:return Re;case JM:return $e;case ZM:return Nt}return s});function pD(o,s,u){for(var p=-1,S=u.length;++p<S;){var A=u[p],j=A.size;switch(A.type){case"drop":o+=j;break;case"dropRight":s-=j;break;case"take":s=pn(s,o+j);break;case"takeRight":o=Xt(o,s-j);break}}return{start:o,end:s}}function hD(o){var s=o.match(x$);return s?s[1].split(w$):[]}function _b(o,s,u){s=vo(s,o);for(var p=-1,S=s.length,A=!1;++p<S;){var j=Dr(s[p]);if(!(A=o!=null&&u(o,j)))break;o=o[j]}return A||++p!=S?A:(S=o==null?0:o.length,!!S&&su(S)&&Jr(j,S)&&(Ue(o)||Ko(o)))}function gD(o){var s=o.length,u=new o.constructor(s);return s&&typeof o[0]=="string"&&bt.call(o,"index")&&(u.index=o.index,u.input=o.input),u}function Eb(o){return typeof o.constructor=="function"&&!ta(o)?Ni($c(o)):{}}function mD(o,s,u){var p=o.constructor;switch(s){case T:return Ep(o);case le:case ue:return new p(+o);case h:return QB(o,u);case g:case B:case F:case q:case Z:case ce:case oe:case se:case Se:return ab(o,u);case ve:return new p;case ke:case st:return new p(o);case tt:return eD(o);case $e:return new p;case ye:return tD(o)}}function yD(o,s){var u=s.length;if(!u)return o;var p=u-1;return s[p]=(u>1?"& ":"")+s[p],s=s.join(u>2?", ":" "),o.replace(b$,`{
|
|
774
|
-
/* [wrapped with `+s+`] */
|
|
775
|
-
`)}function vD(o){return Ue(o)||Ko(o)||!!(kv&&o&&o[kv])}function Jr(o,s){var u=typeof o;return s=s??pe,!!s&&(u=="number"||u!="symbol"&&k$.test(o))&&o>-1&&o%1==0&&o<s}function bn(o,s,u){if(!$t(u))return!1;var p=typeof s;return(p=="number"?Tn(u)&&Jr(s,u.length):p=="string"&&s in u)?mr(u[s],o):!1}function $p(o,s){if(Ue(o))return!1;var u=typeof o;return u=="number"||u=="symbol"||u=="boolean"||o==null||Wn(o)?!0:g$.test(o)||!h$.test(o)||s!=null&&o in Ct(s)}function bD(o){var s=typeof o;return s=="string"||s=="number"||s=="symbol"||s=="boolean"?o!=="__proto__":o===null}function Mp(o){var s=Zc(o),u=I[s];if(typeof u!="function"||!(s in nt.prototype))return!1;if(o===u)return!0;var p=kp(u);return!!p&&o===p[0]}function xD(o){return!!Rv&&Rv in o}var wD=Tc?Zr:Jp;function ta(o){var s=o&&o.constructor,u=typeof s=="function"&&s.prototype||ji;return o===u}function Rb(o){return o===o&&!$t(o)}function Pb(o,s){return function(u){return u==null?!1:u[o]===s&&(s!==n||o in Ct(u))}}function SD(o){var s=ou(o,function(p){return u.size===f&&u.clear(),p}),u=s.cache;return s}function CD(o,s){var u=o[1],p=s[1],S=u|p,A=S<(k|C|$),j=p==$&&u==P||p==$&&u==z&&o[7].length<=s[8]||p==($|z)&&s[7].length<=s[8]&&u==P;if(!(A||j))return o;p&k&&(o[2]=s[2],S|=u&k?0:O);var N=s[3];if(N){var U=o[3];o[3]=U?cb(U,N,s[4]):N,o[4]=U?ho(o[3],y):s[4]}return N=s[5],N&&(U=o[5],o[5]=U?ub(U,N,s[6]):N,o[6]=U?ho(o[5],y):s[6]),N=s[7],N&&(o[7]=N),p&$&&(o[8]=o[8]==null?s[8]:pn(o[8],s[8])),o[9]==null&&(o[9]=s[9]),o[0]=s[0],o[1]=S,o}function _D(o){var s=[];if(o!=null)for(var u in Ct(o))s.push(u);return s}function ED(o){return kc.call(o)}function Tb(o,s,u){return s=Xt(s===n?o.length-1:s,0),function(){for(var p=arguments,S=-1,A=Xt(p.length-s,0),j=K(A);++S<A;)j[S]=p[s+S];S=-1;for(var N=K(s+1);++S<s;)N[S]=p[S];return N[s]=u(j),Fn(o,this,N)}}function Ib(o,s){return s.length<2?o:Go(o,ar(s,0,-1))}function RD(o,s){for(var u=o.length,p=pn(s.length,u),S=Pn(o);p--;){var A=s[p];o[p]=Jr(A,u)?S[A]:n}return o}function Bp(o,s){if(!(s==="constructor"&&typeof o[s]=="function")&&s!="__proto__")return o[s]}var kb=Ab(Qv),na=zM||function(o,s){return on.setTimeout(o,s)},Dp=Ab(YB);function Ob(o,s,u){var p=s+"";return Dp(o,yD(p,PD(hD(p),u)))}function Ab(o){var s=0,u=0;return function(){var p=GM(),S=H-(p-u);if(u=p,S>0){if(++s>=te)return arguments[0]}else s=0;return o.apply(n,arguments)}}function eu(o,s){var u=-1,p=o.length,S=p-1;for(s=s===n?p:s;++u<s;){var A=vp(u,S),j=o[A];o[A]=o[u],o[u]=j}return o.length=s,o}var $b=SD(function(o){var s=[];return o.charCodeAt(0)===46&&s.push(""),o.replace(m$,function(u,p,S,A){s.push(S?A.replace(_$,"$1"):p||u)}),s});function Dr(o){if(typeof o=="string"||Wn(o))return o;var s=o+"";return s=="0"&&1/o==-fe?"-0":s}function Vo(o){if(o!=null){try{return Ic.call(o)}catch{}try{return o+""}catch{}}return""}function PD(o,s){return rr(Me,function(u){var p="_."+u[0];s&u[1]&&!_c(o,p)&&o.push(p)}),o.sort()}function Mb(o){if(o instanceof nt)return o.clone();var s=new ir(o.__wrapped__,o.__chain__);return s.__actions__=Pn(o.__actions__),s.__index__=o.__index__,s.__values__=o.__values__,s}function TD(o,s,u){(u?bn(o,s,u):s===n)?s=1:s=Xt(Ve(s),0);var p=o==null?0:o.length;if(!p||s<1)return[];for(var S=0,A=0,j=K(Dc(p/s));S<p;)j[A++]=ar(o,S,S+=s);return j}function ID(o){for(var s=-1,u=o==null?0:o.length,p=0,S=[];++s<u;){var A=o[s];A&&(S[p++]=A)}return S}function kD(){var o=arguments.length;if(!o)return[];for(var s=K(o-1),u=arguments[0],p=o;p--;)s[p-1]=arguments[p];return po(Ue(u)?Pn(u):[u],sn(s,1))}var OD=Ze(function(o,s){return Ht(o)?Xs(o,sn(s,1,Ht,!0)):[]}),AD=Ze(function(o,s){var u=lr(s);return Ht(u)&&(u=n),Ht(o)?Xs(o,sn(s,1,Ht,!0),Ie(u,2)):[]}),$D=Ze(function(o,s){var u=lr(s);return Ht(u)&&(u=n),Ht(o)?Xs(o,sn(s,1,Ht,!0),n,u):[]});function MD(o,s,u){var p=o==null?0:o.length;return p?(s=u||s===n?1:Ve(s),ar(o,s<0?0:s,p)):[]}function BD(o,s,u){var p=o==null?0:o.length;return p?(s=u||s===n?1:Ve(s),s=p-s,ar(o,0,s<0?0:s)):[]}function DD(o,s){return o&&o.length?qc(o,Ie(s,3),!0,!0):[]}function jD(o,s){return o&&o.length?qc(o,Ie(s,3),!0):[]}function LD(o,s,u,p){var S=o==null?0:o.length;return S?(u&&typeof u!="number"&&bn(o,s,u)&&(u=0,p=S),kB(o,s,u,p)):[]}function Bb(o,s,u){var p=o==null?0:o.length;if(!p)return-1;var S=u==null?0:Ve(u);return S<0&&(S=Xt(p+S,0)),Ec(o,Ie(s,3),S)}function Db(o,s,u){var p=o==null?0:o.length;if(!p)return-1;var S=p-1;return u!==n&&(S=Ve(u),S=u<0?Xt(p+S,0):pn(S,p-1)),Ec(o,Ie(s,3),S,!0)}function jb(o){var s=o==null?0:o.length;return s?sn(o,1):[]}function FD(o){var s=o==null?0:o.length;return s?sn(o,fe):[]}function ND(o,s){var u=o==null?0:o.length;return u?(s=s===n?1:Ve(s),sn(o,s)):[]}function zD(o){for(var s=-1,u=o==null?0:o.length,p={};++s<u;){var S=o[s];p[S[0]]=S[1]}return p}function Lb(o){return o&&o.length?o[0]:n}function WD(o,s,u){var p=o==null?0:o.length;if(!p)return-1;var S=u==null?0:Ve(u);return S<0&&(S=Xt(p+S,0)),$i(o,s,S)}function UD(o){var s=o==null?0:o.length;return s?ar(o,0,-1):[]}var HD=Ze(function(o){var s=kt(o,Cp);return s.length&&s[0]===o[0]?pp(s):[]}),GD=Ze(function(o){var s=lr(o),u=kt(o,Cp);return s===lr(u)?s=n:u.pop(),u.length&&u[0]===o[0]?pp(u,Ie(s,2)):[]}),qD=Ze(function(o){var s=lr(o),u=kt(o,Cp);return s=typeof s=="function"?s:n,s&&u.pop(),u.length&&u[0]===o[0]?pp(u,n,s):[]});function VD(o,s){return o==null?"":UM.call(o,s)}function lr(o){var s=o==null?0:o.length;return s?o[s-1]:n}function KD(o,s,u){var p=o==null?0:o.length;if(!p)return-1;var S=p;return u!==n&&(S=Ve(u),S=S<0?Xt(p+S,0):pn(S,p-1)),s===s?PM(o,s,S):Ec(o,vv,S,!0)}function YD(o,s){return o&&o.length?Yv(o,Ve(s)):n}var XD=Ze(Fb);function Fb(o,s){return o&&o.length&&s&&s.length?yp(o,s):o}function JD(o,s,u){return o&&o.length&&s&&s.length?yp(o,s,Ie(u,2)):o}function ZD(o,s,u){return o&&o.length&&s&&s.length?yp(o,s,n,u):o}var QD=Xr(function(o,s){var u=o==null?0:o.length,p=cp(o,s);return Zv(o,kt(s,function(S){return Jr(S,u)?+S:S}).sort(lb)),p});function ej(o,s){var u=[];if(!(o&&o.length))return u;var p=-1,S=[],A=o.length;for(s=Ie(s,3);++p<A;){var j=o[p];s(j,p,o)&&(u.push(j),S.push(p))}return Zv(o,S),u}function jp(o){return o==null?o:VM.call(o)}function tj(o,s,u){var p=o==null?0:o.length;return p?(u&&typeof u!="number"&&bn(o,s,u)?(s=0,u=p):(s=s==null?0:Ve(s),u=u===n?p:Ve(u)),ar(o,s,u)):[]}function nj(o,s){return Gc(o,s)}function rj(o,s,u){return xp(o,s,Ie(u,2))}function oj(o,s){var u=o==null?0:o.length;if(u){var p=Gc(o,s);if(p<u&&mr(o[p],s))return p}return-1}function ij(o,s){return Gc(o,s,!0)}function sj(o,s,u){return xp(o,s,Ie(u,2),!0)}function aj(o,s){var u=o==null?0:o.length;if(u){var p=Gc(o,s,!0)-1;if(mr(o[p],s))return p}return-1}function lj(o){return o&&o.length?eb(o):[]}function cj(o,s){return o&&o.length?eb(o,Ie(s,2)):[]}function uj(o){var s=o==null?0:o.length;return s?ar(o,1,s):[]}function dj(o,s,u){return o&&o.length?(s=u||s===n?1:Ve(s),ar(o,0,s<0?0:s)):[]}function fj(o,s,u){var p=o==null?0:o.length;return p?(s=u||s===n?1:Ve(s),s=p-s,ar(o,s<0?0:s,p)):[]}function pj(o,s){return o&&o.length?qc(o,Ie(s,3),!1,!0):[]}function hj(o,s){return o&&o.length?qc(o,Ie(s,3)):[]}var gj=Ze(function(o){return yo(sn(o,1,Ht,!0))}),mj=Ze(function(o){var s=lr(o);return Ht(s)&&(s=n),yo(sn(o,1,Ht,!0),Ie(s,2))}),yj=Ze(function(o){var s=lr(o);return s=typeof s=="function"?s:n,yo(sn(o,1,Ht,!0),n,s)});function vj(o){return o&&o.length?yo(o):[]}function bj(o,s){return o&&o.length?yo(o,Ie(s,2)):[]}function xj(o,s){return s=typeof s=="function"?s:n,o&&o.length?yo(o,n,s):[]}function Lp(o){if(!(o&&o.length))return[];var s=0;return o=fo(o,function(u){if(Ht(u))return s=Xt(u.length,s),!0}),tp(s,function(u){return kt(o,Zf(u))})}function Nb(o,s){if(!(o&&o.length))return[];var u=Lp(o);return s==null?u:kt(u,function(p){return Fn(s,n,p)})}var wj=Ze(function(o,s){return Ht(o)?Xs(o,s):[]}),Sj=Ze(function(o){return Sp(fo(o,Ht))}),Cj=Ze(function(o){var s=lr(o);return Ht(s)&&(s=n),Sp(fo(o,Ht),Ie(s,2))}),_j=Ze(function(o){var s=lr(o);return s=typeof s=="function"?s:n,Sp(fo(o,Ht),n,s)}),Ej=Ze(Lp);function Rj(o,s){return ob(o||[],s||[],Ys)}function Pj(o,s){return ob(o||[],s||[],Qs)}var Tj=Ze(function(o){var s=o.length,u=s>1?o[s-1]:n;return u=typeof u=="function"?(o.pop(),u):n,Nb(o,u)});function zb(o){var s=I(o);return s.__chain__=!0,s}function Ij(o,s){return s(o),o}function tu(o,s){return s(o)}var kj=Xr(function(o){var s=o.length,u=s?o[0]:0,p=this.__wrapped__,S=function(A){return cp(A,o)};return s>1||this.__actions__.length||!(p instanceof nt)||!Jr(u)?this.thru(S):(p=p.slice(u,+u+(s?1:0)),p.__actions__.push({func:tu,args:[S],thisArg:n}),new ir(p,this.__chain__).thru(function(A){return s&&!A.length&&A.push(n),A}))});function Oj(){return zb(this)}function Aj(){return new ir(this.value(),this.__chain__)}function $j(){this.__values__===n&&(this.__values__=tx(this.value()));var o=this.__index__>=this.__values__.length,s=o?n:this.__values__[this.__index__++];return{done:o,value:s}}function Mj(){return this}function Bj(o){for(var s,u=this;u instanceof Nc;){var p=Mb(u);p.__index__=0,p.__values__=n,s?S.__wrapped__=p:s=p;var S=p;u=u.__wrapped__}return S.__wrapped__=o,s}function Dj(){var o=this.__wrapped__;if(o instanceof nt){var s=o;return this.__actions__.length&&(s=new nt(this)),s=s.reverse(),s.__actions__.push({func:tu,args:[jp],thisArg:n}),new ir(s,this.__chain__)}return this.thru(jp)}function jj(){return rb(this.__wrapped__,this.__actions__)}var Lj=Vc(function(o,s,u){bt.call(o,u)?++o[u]:Kr(o,u,1)});function Fj(o,s,u){var p=Ue(o)?mv:IB;return u&&bn(o,s,u)&&(s=n),p(o,Ie(s,3))}function Nj(o,s){var u=Ue(o)?fo:Nv;return u(o,Ie(s,3))}var zj=hb(Bb),Wj=hb(Db);function Uj(o,s){return sn(nu(o,s),1)}function Hj(o,s){return sn(nu(o,s),fe)}function Gj(o,s,u){return u=u===n?1:Ve(u),sn(nu(o,s),u)}function Wb(o,s){var u=Ue(o)?rr:mo;return u(o,Ie(s,3))}function Ub(o,s){var u=Ue(o)?uM:Fv;return u(o,Ie(s,3))}var qj=Vc(function(o,s,u){bt.call(o,u)?o[u].push(s):Kr(o,u,[s])});function Vj(o,s,u,p){o=Tn(o)?o:Gi(o),u=u&&!p?Ve(u):0;var S=o.length;return u<0&&(u=Xt(S+u,0)),au(o)?u<=S&&o.indexOf(s,u)>-1:!!S&&$i(o,s,u)>-1}var Kj=Ze(function(o,s,u){var p=-1,S=typeof s=="function",A=Tn(o)?K(o.length):[];return mo(o,function(j){A[++p]=S?Fn(s,j,u):Js(j,s,u)}),A}),Yj=Vc(function(o,s,u){Kr(o,u,s)});function nu(o,s){var u=Ue(o)?kt:qv;return u(o,Ie(s,3))}function Xj(o,s,u,p){return o==null?[]:(Ue(s)||(s=s==null?[]:[s]),u=p?n:u,Ue(u)||(u=u==null?[]:[u]),Xv(o,s,u))}var Jj=Vc(function(o,s,u){o[u?0:1].push(s)},function(){return[[],[]]});function Zj(o,s,u){var p=Ue(o)?Xf:xv,S=arguments.length<3;return p(o,Ie(s,4),u,S,mo)}function Qj(o,s,u){var p=Ue(o)?dM:xv,S=arguments.length<3;return p(o,Ie(s,4),u,S,Fv)}function eL(o,s){var u=Ue(o)?fo:Nv;return u(o,iu(Ie(s,3)))}function tL(o){var s=Ue(o)?Bv:VB;return s(o)}function nL(o,s,u){(u?bn(o,s,u):s===n)?s=1:s=Ve(s);var p=Ue(o)?_B:KB;return p(o,s)}function rL(o){var s=Ue(o)?EB:XB;return s(o)}function oL(o){if(o==null)return 0;if(Tn(o))return au(o)?Bi(o):o.length;var s=hn(o);return s==ve||s==$e?o.size:gp(o).length}function iL(o,s,u){var p=Ue(o)?Jf:JB;return u&&bn(o,s,u)&&(s=n),p(o,Ie(s,3))}var sL=Ze(function(o,s){if(o==null)return[];var u=s.length;return u>1&&bn(o,s[0],s[1])?s=[]:u>2&&bn(s[0],s[1],s[2])&&(s=[s[0]]),Xv(o,sn(s,1),[])}),ru=NM||function(){return on.Date.now()};function aL(o,s){if(typeof s!="function")throw new or(l);return o=Ve(o),function(){if(--o<1)return s.apply(this,arguments)}}function Hb(o,s,u){return s=u?n:s,s=o&&s==null?o.length:s,Yr(o,$,n,n,n,n,s)}function Gb(o,s){var u;if(typeof s!="function")throw new or(l);return o=Ve(o),function(){return--o>0&&(u=s.apply(this,arguments)),o<=1&&(s=n),u}}var Fp=Ze(function(o,s,u){var p=k;if(u.length){var S=ho(u,Ui(Fp));p|=M}return Yr(o,p,s,u,S)}),qb=Ze(function(o,s,u){var p=k|C;if(u.length){var S=ho(u,Ui(qb));p|=M}return Yr(s,p,o,u,S)});function Vb(o,s,u){s=u?n:s;var p=Yr(o,P,n,n,n,n,n,s);return p.placeholder=Vb.placeholder,p}function Kb(o,s,u){s=u?n:s;var p=Yr(o,R,n,n,n,n,n,s);return p.placeholder=Kb.placeholder,p}function Yb(o,s,u){var p,S,A,j,N,U,ne=0,re=!1,ie=!1,me=!0;if(typeof o!="function")throw new or(l);s=cr(s)||0,$t(u)&&(re=!!u.leading,ie="maxWait"in u,A=ie?Xt(cr(u.maxWait)||0,s):A,me="trailing"in u?!!u.trailing:me);function Ee(Gt){var yr=p,eo=S;return p=S=n,ne=Gt,j=o.apply(eo,yr),j}function Oe(Gt){return ne=Gt,N=na(et,s),re?Ee(Gt):j}function Je(Gt){var yr=Gt-U,eo=Gt-ne,hx=s-yr;return ie?pn(hx,A-eo):hx}function Ae(Gt){var yr=Gt-U,eo=Gt-ne;return U===n||yr>=s||yr<0||ie&&eo>=A}function et(){var Gt=ru();if(Ae(Gt))return rt(Gt);N=na(et,Je(Gt))}function rt(Gt){return N=n,me&&p?Ee(Gt):(p=S=n,j)}function Un(){N!==n&&ib(N),ne=0,p=U=S=N=n}function xn(){return N===n?j:rt(ru())}function Hn(){var Gt=ru(),yr=Ae(Gt);if(p=arguments,S=this,U=Gt,yr){if(N===n)return Oe(U);if(ie)return ib(N),N=na(et,s),Ee(U)}return N===n&&(N=na(et,s)),j}return Hn.cancel=Un,Hn.flush=xn,Hn}var lL=Ze(function(o,s){return Lv(o,1,s)}),cL=Ze(function(o,s,u){return Lv(o,cr(s)||0,u)});function uL(o){return Yr(o,V)}function ou(o,s){if(typeof o!="function"||s!=null&&typeof s!="function")throw new or(l);var u=function(){var p=arguments,S=s?s.apply(this,p):p[0],A=u.cache;if(A.has(S))return A.get(S);var j=o.apply(this,p);return u.cache=A.set(S,j)||A,j};return u.cache=new(ou.Cache||Vr),u}ou.Cache=Vr;function iu(o){if(typeof o!="function")throw new or(l);return function(){var s=arguments;switch(s.length){case 0:return!o.call(this);case 1:return!o.call(this,s[0]);case 2:return!o.call(this,s[0],s[1]);case 3:return!o.call(this,s[0],s[1],s[2])}return!o.apply(this,s)}}function dL(o){return Gb(2,o)}var fL=ZB(function(o,s){s=s.length==1&&Ue(s[0])?kt(s[0],Nn(Ie())):kt(sn(s,1),Nn(Ie()));var u=s.length;return Ze(function(p){for(var S=-1,A=pn(p.length,u);++S<A;)p[S]=s[S].call(this,p[S]);return Fn(o,this,p)})}),Np=Ze(function(o,s){var u=ho(s,Ui(Np));return Yr(o,M,n,s,u)}),Xb=Ze(function(o,s){var u=ho(s,Ui(Xb));return Yr(o,D,n,s,u)}),pL=Xr(function(o,s){return Yr(o,z,n,n,n,s)});function hL(o,s){if(typeof o!="function")throw new or(l);return s=s===n?s:Ve(s),Ze(o,s)}function gL(o,s){if(typeof o!="function")throw new or(l);return s=s==null?0:Xt(Ve(s),0),Ze(function(u){var p=u[s],S=bo(u,0,s);return p&&po(S,p),Fn(o,this,S)})}function mL(o,s,u){var p=!0,S=!0;if(typeof o!="function")throw new or(l);return $t(u)&&(p="leading"in u?!!u.leading:p,S="trailing"in u?!!u.trailing:S),Yb(o,s,{leading:p,maxWait:s,trailing:S})}function yL(o){return Hb(o,1)}function vL(o,s){return Np(_p(s),o)}function bL(){if(!arguments.length)return[];var o=arguments[0];return Ue(o)?o:[o]}function xL(o){return sr(o,w)}function wL(o,s){return s=typeof s=="function"?s:n,sr(o,w,s)}function SL(o){return sr(o,m|w)}function CL(o,s){return s=typeof s=="function"?s:n,sr(o,m|w,s)}function _L(o,s){return s==null||jv(o,s,en(s))}function mr(o,s){return o===s||o!==o&&s!==s}var EL=Jc(fp),RL=Jc(function(o,s){return o>=s}),Ko=Uv(function(){return arguments}())?Uv:function(o){return zt(o)&&bt.call(o,"callee")&&!Iv.call(o,"callee")},Ue=K.isArray,PL=uv?Nn(uv):BB;function Tn(o){return o!=null&&su(o.length)&&!Zr(o)}function Ht(o){return zt(o)&&Tn(o)}function TL(o){return o===!0||o===!1||zt(o)&&vn(o)==le}var xo=WM||Jp,IL=dv?Nn(dv):DB;function kL(o){return zt(o)&&o.nodeType===1&&!ra(o)}function OL(o){if(o==null)return!0;if(Tn(o)&&(Ue(o)||typeof o=="string"||typeof o.splice=="function"||xo(o)||Hi(o)||Ko(o)))return!o.length;var s=hn(o);if(s==ve||s==$e)return!o.size;if(ta(o))return!gp(o).length;for(var u in o)if(bt.call(o,u))return!1;return!0}function AL(o,s){return Zs(o,s)}function $L(o,s,u){u=typeof u=="function"?u:n;var p=u?u(o,s):n;return p===n?Zs(o,s,n,u):!!p}function zp(o){if(!zt(o))return!1;var s=vn(o);return s==ge||s==he||typeof o.message=="string"&&typeof o.name=="string"&&!ra(o)}function ML(o){return typeof o=="number"&&Ov(o)}function Zr(o){if(!$t(o))return!1;var s=vn(o);return s==de||s==Te||s==ht||s==Fe}function Jb(o){return typeof o=="number"&&o==Ve(o)}function su(o){return typeof o=="number"&&o>-1&&o%1==0&&o<=pe}function $t(o){var s=typeof o;return o!=null&&(s=="object"||s=="function")}function zt(o){return o!=null&&typeof o=="object"}var Zb=fv?Nn(fv):LB;function BL(o,s){return o===s||hp(o,s,Op(s))}function DL(o,s,u){return u=typeof u=="function"?u:n,hp(o,s,Op(s),u)}function jL(o){return Qb(o)&&o!=+o}function LL(o){if(wD(o))throw new ze(a);return Hv(o)}function FL(o){return o===null}function NL(o){return o==null}function Qb(o){return typeof o=="number"||zt(o)&&vn(o)==ke}function ra(o){if(!zt(o)||vn(o)!=De)return!1;var s=$c(o);if(s===null)return!0;var u=bt.call(s,"constructor")&&s.constructor;return typeof u=="function"&&u instanceof u&&Ic.call(u)==DM}var Wp=pv?Nn(pv):FB;function zL(o){return Jb(o)&&o>=-pe&&o<=pe}var ex=hv?Nn(hv):NB;function au(o){return typeof o=="string"||!Ue(o)&&zt(o)&&vn(o)==st}function Wn(o){return typeof o=="symbol"||zt(o)&&vn(o)==ye}var Hi=gv?Nn(gv):zB;function WL(o){return o===n}function UL(o){return zt(o)&&hn(o)==Nt}function HL(o){return zt(o)&&vn(o)==yn}var GL=Jc(mp),qL=Jc(function(o,s){return o<=s});function tx(o){if(!o)return[];if(Tn(o))return au(o)?hr(o):Pn(o);if(Hs&&o[Hs])return _M(o[Hs]());var s=hn(o),u=s==ve?rp:s==$e?Rc:Gi;return u(o)}function Qr(o){if(!o)return o===0?o:0;if(o=cr(o),o===fe||o===-fe){var s=o<0?-1:1;return s*_e}return o===o?o:0}function Ve(o){var s=Qr(o),u=s%1;return s===s?u?s-u:s:0}function nx(o){return o?Ho(Ve(o),0,be):0}function cr(o){if(typeof o=="number")return o;if(Wn(o))return We;if($t(o)){var s=typeof o.valueOf=="function"?o.valueOf():o;o=$t(s)?s+"":s}if(typeof o!="string")return o===0?o:+o;o=wv(o);var u=P$.test(o);return u||I$.test(o)?aM(o.slice(2),u?2:8):R$.test(o)?We:+o}function rx(o){return Br(o,In(o))}function VL(o){return o?Ho(Ve(o),-pe,pe):o===0?o:0}function gt(o){return o==null?"":zn(o)}var KL=zi(function(o,s){if(ta(s)||Tn(s)){Br(s,en(s),o);return}for(var u in s)bt.call(s,u)&&Ys(o,u,s[u])}),ox=zi(function(o,s){Br(s,In(s),o)}),lu=zi(function(o,s,u,p){Br(s,In(s),o,p)}),YL=zi(function(o,s,u,p){Br(s,en(s),o,p)}),XL=Xr(cp);function JL(o,s){var u=Ni(o);return s==null?u:Dv(u,s)}var ZL=Ze(function(o,s){o=Ct(o);var u=-1,p=s.length,S=p>2?s[2]:n;for(S&&bn(s[0],s[1],S)&&(p=1);++u<p;)for(var A=s[u],j=In(A),N=-1,U=j.length;++N<U;){var ne=j[N],re=o[ne];(re===n||mr(re,ji[ne])&&!bt.call(o,ne))&&(o[ne]=A[ne])}return o}),QL=Ze(function(o){return o.push(n,wb),Fn(ix,n,o)});function eF(o,s){return yv(o,Ie(s,3),Mr)}function tF(o,s){return yv(o,Ie(s,3),dp)}function nF(o,s){return o==null?o:up(o,Ie(s,3),In)}function rF(o,s){return o==null?o:zv(o,Ie(s,3),In)}function oF(o,s){return o&&Mr(o,Ie(s,3))}function iF(o,s){return o&&dp(o,Ie(s,3))}function sF(o){return o==null?[]:Uc(o,en(o))}function aF(o){return o==null?[]:Uc(o,In(o))}function Up(o,s,u){var p=o==null?n:Go(o,s);return p===n?u:p}function lF(o,s){return o!=null&&_b(o,s,OB)}function Hp(o,s){return o!=null&&_b(o,s,AB)}var cF=mb(function(o,s,u){s!=null&&typeof s.toString!="function"&&(s=kc.call(s)),o[s]=u},qp(kn)),uF=mb(function(o,s,u){s!=null&&typeof s.toString!="function"&&(s=kc.call(s)),bt.call(o,s)?o[s].push(u):o[s]=[u]},Ie),dF=Ze(Js);function en(o){return Tn(o)?Mv(o):gp(o)}function In(o){return Tn(o)?Mv(o,!0):WB(o)}function fF(o,s){var u={};return s=Ie(s,3),Mr(o,function(p,S,A){Kr(u,s(p,S,A),p)}),u}function pF(o,s){var u={};return s=Ie(s,3),Mr(o,function(p,S,A){Kr(u,S,s(p,S,A))}),u}var hF=zi(function(o,s,u){Hc(o,s,u)}),ix=zi(function(o,s,u,p){Hc(o,s,u,p)}),gF=Xr(function(o,s){var u={};if(o==null)return u;var p=!1;s=kt(s,function(A){return A=vo(A,o),p||(p=A.length>1),A}),Br(o,Ip(o),u),p&&(u=sr(u,m|v|w,cD));for(var S=s.length;S--;)wp(u,s[S]);return u});function mF(o,s){return sx(o,iu(Ie(s)))}var yF=Xr(function(o,s){return o==null?{}:HB(o,s)});function sx(o,s){if(o==null)return{};var u=kt(Ip(o),function(p){return[p]});return s=Ie(s),Jv(o,u,function(p,S){return s(p,S[0])})}function vF(o,s,u){s=vo(s,o);var p=-1,S=s.length;for(S||(S=1,o=n);++p<S;){var A=o==null?n:o[Dr(s[p])];A===n&&(p=S,A=u),o=Zr(A)?A.call(o):A}return o}function bF(o,s,u){return o==null?o:Qs(o,s,u)}function xF(o,s,u,p){return p=typeof p=="function"?p:n,o==null?o:Qs(o,s,u,p)}var ax=bb(en),lx=bb(In);function wF(o,s,u){var p=Ue(o),S=p||xo(o)||Hi(o);if(s=Ie(s,4),u==null){var A=o&&o.constructor;S?u=p?new A:[]:$t(o)?u=Zr(A)?Ni($c(o)):{}:u={}}return(S?rr:Mr)(o,function(j,N,U){return s(u,j,N,U)}),u}function SF(o,s){return o==null?!0:wp(o,s)}function CF(o,s,u){return o==null?o:nb(o,s,_p(u))}function _F(o,s,u,p){return p=typeof p=="function"?p:n,o==null?o:nb(o,s,_p(u),p)}function Gi(o){return o==null?[]:np(o,en(o))}function EF(o){return o==null?[]:np(o,In(o))}function RF(o,s,u){return u===n&&(u=s,s=n),u!==n&&(u=cr(u),u=u===u?u:0),s!==n&&(s=cr(s),s=s===s?s:0),Ho(cr(o),s,u)}function PF(o,s,u){return s=Qr(s),u===n?(u=s,s=0):u=Qr(u),o=cr(o),$B(o,s,u)}function TF(o,s,u){if(u&&typeof u!="boolean"&&bn(o,s,u)&&(s=u=n),u===n&&(typeof s=="boolean"?(u=s,s=n):typeof o=="boolean"&&(u=o,o=n)),o===n&&s===n?(o=0,s=1):(o=Qr(o),s===n?(s=o,o=0):s=Qr(s)),o>s){var p=o;o=s,s=p}if(u||o%1||s%1){var S=Av();return pn(o+S*(s-o+sM("1e-"+((S+"").length-1))),s)}return vp(o,s)}var IF=Wi(function(o,s,u){return s=s.toLowerCase(),o+(u?cx(s):s)});function cx(o){return Gp(gt(o).toLowerCase())}function ux(o){return o=gt(o),o&&o.replace(O$,bM).replace(X$,"")}function kF(o,s,u){o=gt(o),s=zn(s);var p=o.length;u=u===n?p:Ho(Ve(u),0,p);var S=u;return u-=s.length,u>=0&&o.slice(u,S)==s}function OF(o){return o=gt(o),o&&Ws.test(o)?o.replace(uo,xM):o}function AF(o){return o=gt(o),o&&y$.test(o)?o.replace(Nf,"\\$&"):o}var $F=Wi(function(o,s,u){return o+(u?"-":"")+s.toLowerCase()}),MF=Wi(function(o,s,u){return o+(u?" ":"")+s.toLowerCase()}),BF=pb("toLowerCase");function DF(o,s,u){o=gt(o),s=Ve(s);var p=s?Bi(o):0;if(!s||p>=s)return o;var S=(s-p)/2;return Xc(jc(S),u)+o+Xc(Dc(S),u)}function jF(o,s,u){o=gt(o),s=Ve(s);var p=s?Bi(o):0;return s&&p<s?o+Xc(s-p,u):o}function LF(o,s,u){o=gt(o),s=Ve(s);var p=s?Bi(o):0;return s&&p<s?Xc(s-p,u)+o:o}function FF(o,s,u){return u||s==null?s=0:s&&(s=+s),qM(gt(o).replace(zf,""),s||0)}function NF(o,s,u){return(u?bn(o,s,u):s===n)?s=1:s=Ve(s),bp(gt(o),s)}function zF(){var o=arguments,s=gt(o[0]);return o.length<3?s:s.replace(o[1],o[2])}var WF=Wi(function(o,s,u){return o+(u?"_":"")+s.toLowerCase()});function UF(o,s,u){return u&&typeof u!="number"&&bn(o,s,u)&&(s=u=n),u=u===n?be:u>>>0,u?(o=gt(o),o&&(typeof s=="string"||s!=null&&!Wp(s))&&(s=zn(s),!s&&Mi(o))?bo(hr(o),0,u):o.split(s,u)):[]}var HF=Wi(function(o,s,u){return o+(u?" ":"")+Gp(s)});function GF(o,s,u){return o=gt(o),u=u==null?0:Ho(Ve(u),0,o.length),s=zn(s),o.slice(u,u+s.length)==s}function qF(o,s,u){var p=I.templateSettings;u&&bn(o,s,u)&&(s=n),o=gt(o),s=lu({},s,p,xb);var S=lu({},s.imports,p.imports,xb),A=en(S),j=np(S,A),N,U,ne=0,re=s.interpolate||wc,ie="__p += '",me=op((s.escape||wc).source+"|"+re.source+"|"+(re===W0?E$:wc).source+"|"+(s.evaluate||wc).source+"|$","g"),Ee="//# sourceURL="+(bt.call(s,"sourceURL")?(s.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++tM+"]")+`
|
|
776
|
-
`;o.replace(me,function(Ae,et,rt,Un,xn,Hn){return rt||(rt=Un),ie+=o.slice(ne,Hn).replace(A$,wM),et&&(N=!0,ie+=`' +
|
|
777
|
-
__e(`+et+`) +
|
|
778
|
-
'`),xn&&(U=!0,ie+=`';
|
|
779
|
-
`+xn+`;
|
|
780
|
-
__p += '`),rt&&(ie+=`' +
|
|
781
|
-
((__t = (`+rt+`)) == null ? '' : __t) +
|
|
782
|
-
'`),ne=Hn+Ae.length,Ae}),ie+=`';
|
|
783
|
-
`;var Oe=bt.call(s,"variable")&&s.variable;if(!Oe)ie=`with (obj) {
|
|
784
|
-
`+ie+`
|
|
785
|
-
}
|
|
786
|
-
`;else if(C$.test(Oe))throw new ze(c);ie=(U?ie.replace(we,""):ie).replace(It,"$1").replace(tr,"$1;"),ie="function("+(Oe||"obj")+`) {
|
|
787
|
-
`+(Oe?"":`obj || (obj = {});
|
|
788
|
-
`)+"var __t, __p = ''"+(N?", __e = _.escape":"")+(U?`, __j = Array.prototype.join;
|
|
789
|
-
function print() { __p += __j.call(arguments, '') }
|
|
790
|
-
`:`;
|
|
791
|
-
`)+ie+`return __p
|
|
792
|
-
}`;var Je=fx(function(){return dt(A,Ee+"return "+ie).apply(n,j)});if(Je.source=ie,zp(Je))throw Je;return Je}function VF(o){return gt(o).toLowerCase()}function KF(o){return gt(o).toUpperCase()}function YF(o,s,u){if(o=gt(o),o&&(u||s===n))return wv(o);if(!o||!(s=zn(s)))return o;var p=hr(o),S=hr(s),A=Sv(p,S),j=Cv(p,S)+1;return bo(p,A,j).join("")}function XF(o,s,u){if(o=gt(o),o&&(u||s===n))return o.slice(0,Ev(o)+1);if(!o||!(s=zn(s)))return o;var p=hr(o),S=Cv(p,hr(s))+1;return bo(p,0,S).join("")}function JF(o,s,u){if(o=gt(o),o&&(u||s===n))return o.replace(zf,"");if(!o||!(s=zn(s)))return o;var p=hr(o),S=Sv(p,hr(s));return bo(p,S).join("")}function ZF(o,s){var u=E,p=G;if($t(s)){var S="separator"in s?s.separator:S;u="length"in s?Ve(s.length):u,p="omission"in s?zn(s.omission):p}o=gt(o);var A=o.length;if(Mi(o)){var j=hr(o);A=j.length}if(u>=A)return o;var N=u-Bi(p);if(N<1)return p;var U=j?bo(j,0,N).join(""):o.slice(0,N);if(S===n)return U+p;if(j&&(N+=U.length-N),Wp(S)){if(o.slice(N).search(S)){var ne,re=U;for(S.global||(S=op(S.source,gt(U0.exec(S))+"g")),S.lastIndex=0;ne=S.exec(re);)var ie=ne.index;U=U.slice(0,ie===n?N:ie)}}else if(o.indexOf(zn(S),N)!=N){var me=U.lastIndexOf(S);me>-1&&(U=U.slice(0,me))}return U+p}function QF(o){return o=gt(o),o&&xc.test(o)?o.replace($r,TM):o}var e5=Wi(function(o,s,u){return o+(u?" ":"")+s.toUpperCase()}),Gp=pb("toUpperCase");function dx(o,s,u){return o=gt(o),s=u?n:s,s===n?CM(o)?OM(o):hM(o):o.match(s)||[]}var fx=Ze(function(o,s){try{return Fn(o,n,s)}catch(u){return zp(u)?u:new ze(u)}}),t5=Xr(function(o,s){return rr(s,function(u){u=Dr(u),Kr(o,u,Fp(o[u],o))}),o});function n5(o){var s=o==null?0:o.length,u=Ie();return o=s?kt(o,function(p){if(typeof p[1]!="function")throw new or(l);return[u(p[0]),p[1]]}):[],Ze(function(p){for(var S=-1;++S<s;){var A=o[S];if(Fn(A[0],this,p))return Fn(A[1],this,p)}})}function r5(o){return TB(sr(o,m))}function qp(o){return function(){return o}}function o5(o,s){return o==null||o!==o?s:o}var i5=gb(),s5=gb(!0);function kn(o){return o}function Vp(o){return Gv(typeof o=="function"?o:sr(o,m))}function a5(o){return Vv(sr(o,m))}function l5(o,s){return Kv(o,sr(s,m))}var c5=Ze(function(o,s){return function(u){return Js(u,o,s)}}),u5=Ze(function(o,s){return function(u){return Js(o,u,s)}});function Kp(o,s,u){var p=en(s),S=Uc(s,p);u==null&&!($t(s)&&(S.length||!p.length))&&(u=s,s=o,o=this,S=Uc(s,en(s)));var A=!($t(u)&&"chain"in u)||!!u.chain,j=Zr(o);return rr(S,function(N){var U=s[N];o[N]=U,j&&(o.prototype[N]=function(){var ne=this.__chain__;if(A||ne){var re=o(this.__wrapped__),ie=re.__actions__=Pn(this.__actions__);return ie.push({func:U,args:arguments,thisArg:o}),re.__chain__=ne,re}return U.apply(o,po([this.value()],arguments))})}),o}function d5(){return on._===this&&(on._=jM),this}function Yp(){}function f5(o){return o=Ve(o),Ze(function(s){return Yv(s,o)})}var p5=Rp(kt),h5=Rp(mv),g5=Rp(Jf);function px(o){return $p(o)?Zf(Dr(o)):GB(o)}function m5(o){return function(s){return o==null?n:Go(o,s)}}var y5=yb(),v5=yb(!0);function Xp(){return[]}function Jp(){return!1}function b5(){return{}}function x5(){return""}function w5(){return!0}function S5(o,s){if(o=Ve(o),o<1||o>pe)return[];var u=be,p=pn(o,be);s=Ie(s),o-=be;for(var S=tp(p,s);++u<o;)s(u);return S}function C5(o){return Ue(o)?kt(o,Dr):Wn(o)?[o]:Pn($b(gt(o)))}function _5(o){var s=++BM;return gt(o)+s}var E5=Yc(function(o,s){return o+s},0),R5=Pp("ceil"),P5=Yc(function(o,s){return o/s},1),T5=Pp("floor");function I5(o){return o&&o.length?Wc(o,kn,fp):n}function k5(o,s){return o&&o.length?Wc(o,Ie(s,2),fp):n}function O5(o){return bv(o,kn)}function A5(o,s){return bv(o,Ie(s,2))}function $5(o){return o&&o.length?Wc(o,kn,mp):n}function M5(o,s){return o&&o.length?Wc(o,Ie(s,2),mp):n}var B5=Yc(function(o,s){return o*s},1),D5=Pp("round"),j5=Yc(function(o,s){return o-s},0);function L5(o){return o&&o.length?ep(o,kn):0}function F5(o,s){return o&&o.length?ep(o,Ie(s,2)):0}return I.after=aL,I.ary=Hb,I.assign=KL,I.assignIn=ox,I.assignInWith=lu,I.assignWith=YL,I.at=XL,I.before=Gb,I.bind=Fp,I.bindAll=t5,I.bindKey=qb,I.castArray=bL,I.chain=zb,I.chunk=TD,I.compact=ID,I.concat=kD,I.cond=n5,I.conforms=r5,I.constant=qp,I.countBy=Lj,I.create=JL,I.curry=Vb,I.curryRight=Kb,I.debounce=Yb,I.defaults=ZL,I.defaultsDeep=QL,I.defer=lL,I.delay=cL,I.difference=OD,I.differenceBy=AD,I.differenceWith=$D,I.drop=MD,I.dropRight=BD,I.dropRightWhile=DD,I.dropWhile=jD,I.fill=LD,I.filter=Nj,I.flatMap=Uj,I.flatMapDeep=Hj,I.flatMapDepth=Gj,I.flatten=jb,I.flattenDeep=FD,I.flattenDepth=ND,I.flip=uL,I.flow=i5,I.flowRight=s5,I.fromPairs=zD,I.functions=sF,I.functionsIn=aF,I.groupBy=qj,I.initial=UD,I.intersection=HD,I.intersectionBy=GD,I.intersectionWith=qD,I.invert=cF,I.invertBy=uF,I.invokeMap=Kj,I.iteratee=Vp,I.keyBy=Yj,I.keys=en,I.keysIn=In,I.map=nu,I.mapKeys=fF,I.mapValues=pF,I.matches=a5,I.matchesProperty=l5,I.memoize=ou,I.merge=hF,I.mergeWith=ix,I.method=c5,I.methodOf=u5,I.mixin=Kp,I.negate=iu,I.nthArg=f5,I.omit=gF,I.omitBy=mF,I.once=dL,I.orderBy=Xj,I.over=p5,I.overArgs=fL,I.overEvery=h5,I.overSome=g5,I.partial=Np,I.partialRight=Xb,I.partition=Jj,I.pick=yF,I.pickBy=sx,I.property=px,I.propertyOf=m5,I.pull=XD,I.pullAll=Fb,I.pullAllBy=JD,I.pullAllWith=ZD,I.pullAt=QD,I.range=y5,I.rangeRight=v5,I.rearg=pL,I.reject=eL,I.remove=ej,I.rest=hL,I.reverse=jp,I.sampleSize=nL,I.set=bF,I.setWith=xF,I.shuffle=rL,I.slice=tj,I.sortBy=sL,I.sortedUniq=lj,I.sortedUniqBy=cj,I.split=UF,I.spread=gL,I.tail=uj,I.take=dj,I.takeRight=fj,I.takeRightWhile=pj,I.takeWhile=hj,I.tap=Ij,I.throttle=mL,I.thru=tu,I.toArray=tx,I.toPairs=ax,I.toPairsIn=lx,I.toPath=C5,I.toPlainObject=rx,I.transform=wF,I.unary=yL,I.union=gj,I.unionBy=mj,I.unionWith=yj,I.uniq=vj,I.uniqBy=bj,I.uniqWith=xj,I.unset=SF,I.unzip=Lp,I.unzipWith=Nb,I.update=CF,I.updateWith=_F,I.values=Gi,I.valuesIn=EF,I.without=wj,I.words=dx,I.wrap=vL,I.xor=Sj,I.xorBy=Cj,I.xorWith=_j,I.zip=Ej,I.zipObject=Rj,I.zipObjectDeep=Pj,I.zipWith=Tj,I.entries=ax,I.entriesIn=lx,I.extend=ox,I.extendWith=lu,Kp(I,I),I.add=E5,I.attempt=fx,I.camelCase=IF,I.capitalize=cx,I.ceil=R5,I.clamp=RF,I.clone=xL,I.cloneDeep=SL,I.cloneDeepWith=CL,I.cloneWith=wL,I.conformsTo=_L,I.deburr=ux,I.defaultTo=o5,I.divide=P5,I.endsWith=kF,I.eq=mr,I.escape=OF,I.escapeRegExp=AF,I.every=Fj,I.find=zj,I.findIndex=Bb,I.findKey=eF,I.findLast=Wj,I.findLastIndex=Db,I.findLastKey=tF,I.floor=T5,I.forEach=Wb,I.forEachRight=Ub,I.forIn=nF,I.forInRight=rF,I.forOwn=oF,I.forOwnRight=iF,I.get=Up,I.gt=EL,I.gte=RL,I.has=lF,I.hasIn=Hp,I.head=Lb,I.identity=kn,I.includes=Vj,I.indexOf=WD,I.inRange=PF,I.invoke=dF,I.isArguments=Ko,I.isArray=Ue,I.isArrayBuffer=PL,I.isArrayLike=Tn,I.isArrayLikeObject=Ht,I.isBoolean=TL,I.isBuffer=xo,I.isDate=IL,I.isElement=kL,I.isEmpty=OL,I.isEqual=AL,I.isEqualWith=$L,I.isError=zp,I.isFinite=ML,I.isFunction=Zr,I.isInteger=Jb,I.isLength=su,I.isMap=Zb,I.isMatch=BL,I.isMatchWith=DL,I.isNaN=jL,I.isNative=LL,I.isNil=NL,I.isNull=FL,I.isNumber=Qb,I.isObject=$t,I.isObjectLike=zt,I.isPlainObject=ra,I.isRegExp=Wp,I.isSafeInteger=zL,I.isSet=ex,I.isString=au,I.isSymbol=Wn,I.isTypedArray=Hi,I.isUndefined=WL,I.isWeakMap=UL,I.isWeakSet=HL,I.join=VD,I.kebabCase=$F,I.last=lr,I.lastIndexOf=KD,I.lowerCase=MF,I.lowerFirst=BF,I.lt=GL,I.lte=qL,I.max=I5,I.maxBy=k5,I.mean=O5,I.meanBy=A5,I.min=$5,I.minBy=M5,I.stubArray=Xp,I.stubFalse=Jp,I.stubObject=b5,I.stubString=x5,I.stubTrue=w5,I.multiply=B5,I.nth=YD,I.noConflict=d5,I.noop=Yp,I.now=ru,I.pad=DF,I.padEnd=jF,I.padStart=LF,I.parseInt=FF,I.random=TF,I.reduce=Zj,I.reduceRight=Qj,I.repeat=NF,I.replace=zF,I.result=vF,I.round=D5,I.runInContext=W,I.sample=tL,I.size=oL,I.snakeCase=WF,I.some=iL,I.sortedIndex=nj,I.sortedIndexBy=rj,I.sortedIndexOf=oj,I.sortedLastIndex=ij,I.sortedLastIndexBy=sj,I.sortedLastIndexOf=aj,I.startCase=HF,I.startsWith=GF,I.subtract=j5,I.sum=L5,I.sumBy=F5,I.template=qF,I.times=S5,I.toFinite=Qr,I.toInteger=Ve,I.toLength=nx,I.toLower=VF,I.toNumber=cr,I.toSafeInteger=VL,I.toString=gt,I.toUpper=KF,I.trim=YF,I.trimEnd=XF,I.trimStart=JF,I.truncate=ZF,I.unescape=QF,I.uniqueId=_5,I.upperCase=e5,I.upperFirst=Gp,I.each=Wb,I.eachRight=Ub,I.first=Lb,Kp(I,function(){var o={};return Mr(I,function(s,u){bt.call(I.prototype,u)||(o[u]=s)}),o}(),{chain:!1}),I.VERSION=r,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(o){I[o].placeholder=I}),rr(["drop","take"],function(o,s){nt.prototype[o]=function(u){u=u===n?1:Xt(Ve(u),0);var p=this.__filtered__&&!s?new nt(this):this.clone();return p.__filtered__?p.__takeCount__=pn(u,p.__takeCount__):p.__views__.push({size:pn(u,be),type:o+(p.__dir__<0?"Right":"")}),p},nt.prototype[o+"Right"]=function(u){return this.reverse()[o](u).reverse()}}),rr(["filter","map","takeWhile"],function(o,s){var u=s+1,p=u==X||u==ae;nt.prototype[o]=function(S){var A=this.clone();return A.__iteratees__.push({iteratee:Ie(S,3),type:u}),A.__filtered__=A.__filtered__||p,A}}),rr(["head","last"],function(o,s){var u="take"+(s?"Right":"");nt.prototype[o]=function(){return this[u](1).value()[0]}}),rr(["initial","tail"],function(o,s){var u="drop"+(s?"":"Right");nt.prototype[o]=function(){return this.__filtered__?new nt(this):this[u](1)}}),nt.prototype.compact=function(){return this.filter(kn)},nt.prototype.find=function(o){return this.filter(o).head()},nt.prototype.findLast=function(o){return this.reverse().find(o)},nt.prototype.invokeMap=Ze(function(o,s){return typeof o=="function"?new nt(this):this.map(function(u){return Js(u,o,s)})}),nt.prototype.reject=function(o){return this.filter(iu(Ie(o)))},nt.prototype.slice=function(o,s){o=Ve(o);var u=this;return u.__filtered__&&(o>0||s<0)?new nt(u):(o<0?u=u.takeRight(-o):o&&(u=u.drop(o)),s!==n&&(s=Ve(s),u=s<0?u.dropRight(-s):u.take(s-o)),u)},nt.prototype.takeRightWhile=function(o){return this.reverse().takeWhile(o).reverse()},nt.prototype.toArray=function(){return this.take(be)},Mr(nt.prototype,function(o,s){var u=/^(?:filter|find|map|reject)|While$/.test(s),p=/^(?:head|last)$/.test(s),S=I[p?"take"+(s=="last"?"Right":""):s],A=p||/^find/.test(s);S&&(I.prototype[s]=function(){var j=this.__wrapped__,N=p?[1]:arguments,U=j instanceof nt,ne=N[0],re=U||Ue(j),ie=function(et){var rt=S.apply(I,po([et],N));return p&&me?rt[0]:rt};re&&u&&typeof ne=="function"&&ne.length!=1&&(U=re=!1);var me=this.__chain__,Ee=!!this.__actions__.length,Oe=A&&!me,Je=U&&!Ee;if(!A&&re){j=Je?j:new nt(this);var Ae=o.apply(j,N);return Ae.__actions__.push({func:tu,args:[ie],thisArg:n}),new ir(Ae,me)}return Oe&&Je?o.apply(this,N):(Ae=this.thru(ie),Oe?p?Ae.value()[0]:Ae.value():Ae)})}),rr(["pop","push","shift","sort","splice","unshift"],function(o){var s=Pc[o],u=/^(?:push|sort|unshift)$/.test(o)?"tap":"thru",p=/^(?:pop|shift)$/.test(o);I.prototype[o]=function(){var S=arguments;if(p&&!this.__chain__){var A=this.value();return s.apply(Ue(A)?A:[],S)}return this[u](function(j){return s.apply(Ue(j)?j:[],S)})}}),Mr(nt.prototype,function(o,s){var u=I[s];if(u){var p=u.name+"";bt.call(Fi,p)||(Fi[p]=[]),Fi[p].push({name:s,func:u})}}),Fi[Kc(n,C).name]=[{name:"wrapper",func:n}],nt.prototype.clone=QM,nt.prototype.reverse=eB,nt.prototype.value=tB,I.prototype.at=kj,I.prototype.chain=Oj,I.prototype.commit=Aj,I.prototype.next=$j,I.prototype.plant=Bj,I.prototype.reverse=Dj,I.prototype.toJSON=I.prototype.valueOf=I.prototype.value=jj,I.prototype.first=I.prototype.head,Hs&&(I.prototype[Hs]=Mj),I},Di=AM();No?((No.exports=Di)._=Di,Vf._=Di):on._=Di}).call(jr)}(Xl,Xl.exports);var Ei=Xl.exports;const h2=it.div`
|
|
793
|
-
.component-library .list-item {
|
|
794
|
-
display: flex;
|
|
795
|
-
justify-content: center;
|
|
796
|
-
align-items: center;
|
|
797
|
-
|
|
798
|
-
background-color: gray;
|
|
799
|
-
margin: 3px;
|
|
800
|
-
}
|
|
801
|
-
`,Ny=e=>e?e.map(t=>b.jsx("div",{className:"list-item",children:b.jsx(Fy,{id:`${t.class}-${Ts()}`,type:"ProjectComponent",initialSize:Ei.pick(t.layout,["w","h"]),metadata:{name:t.class},node:b.jsx("div",{children:t.class})})},t.class)):[],g2=e=>{const[t,n]=Y.useState(Ny(e.componentLibrary));return Y.useEffect(()=>{n(Ny(e.componentLibrary))},[e.componentLibrary]),b.jsx(h2,{children:b.jsx("div",{className:"component-library",children:b.jsx("ul",{children:t})})})},m2=it.div`
|
|
802
|
-
.visuals .list-item {
|
|
803
|
-
display: flex;
|
|
804
|
-
justify-content: center;
|
|
805
|
-
align-items: center;
|
|
806
|
-
|
|
807
|
-
background-color: lavender;
|
|
808
|
-
margin: 3px;
|
|
809
|
-
}
|
|
810
|
-
`,zy=e=>e?e.map(t=>b.jsx("div",{className:"list-item",children:b.jsx(Fy,{id:t.id,type:"ProjectChart",initialSize:{w:2,h:2},metadata:t,node:b.jsx("div",{children:t.name})})},t.id)):[],y2=e=>{const[t,n]=Y.useState(zy(e.visualLibrary));return Y.useEffect(()=>{n(zy(e.visualLibrary))},[e.visualLibrary]),b.jsx(m2,{children:b.jsx("div",{className:"visuals",children:b.jsx("ul",{children:t})})})},v2=e=>{const[t,n]=Y.useState("lib"),{gwAPIHandler:r}=Bn(),[i,a]=Y.useState(e.componentLibrary),[l,c]=Y.useState([]);return Y.useEffect(()=>{a(e.componentLibrary)},[e.componentLibrary]),Y.useEffect(()=>{(async()=>{const f=await r.getVisuals(1,100,"private","","modified","DESC","","GRAPH");if(f.status!==200)throw new Error("Failed to load visuals.");return(await f.json()).content})().then(f=>{c(f)})},[]),b.jsxs(b.Fragment,{children:[b.jsx(Dt,{component:"form",autoComplete:"off",noValidate:!0,display:"flex",flexDirection:"column",alignItems:"center",gap:1,sx:{padding:"15px 10px 20px 10px"},children:b.jsx(Dt,{display:"flex",alignItems:"center",sx:{width:"100%"},gap:1,children:b.jsx(Dt,{sx:{flex:3,padding:"2px"},children:b.jsxs(nd,{fullWidth:!0,children:[b.jsx(td,{id:"template-select-label",children:"Type"}),b.jsxs(ml,{labelId:"template-select-label",id:"template-select",label:"Template",value:t,onChange:d=>n(d.target.value),fullWidth:!0,size:"small",children:[b.jsx(bd,{value:"lib",children:"library"}),b.jsx(bd,{value:"vis",children:"visual"})]})]})})})}),b.jsx(bs,{}),t==="lib"&&b.jsx(g2,{componentLibrary:i}),t==="vis"&&b.jsx(y2,{visualLibrary:l})]})},Jl=a2(AP)({fontSize:"12px",padding:"2px"}),Zl=e=>b.jsx(b.Fragment,{children:b.jsx("div",{role:"tabpanel",hidden:e.activeIndex!=e.panelIndex,children:e.children})}),b2=e=>{const[t,n]=Y.useState(0),r=(i,a)=>{n(a)};return b.jsxs(b.Fragment,{children:[b.jsx(Dt,{sx:{width:"100%",position:"sticky",top:0,zIndex:1e3,backgroundColor:"LightGray"},children:b.jsx(Dt,{sx:{borderBottom:3,borderColor:"divider"},children:b.jsxs(JP,{value:t,onChange:r,children:[b.jsx(Jl,{label:"Components"}),b.jsx(Jl,{label:"Chatbot"}),b.jsx(Jl,{label:"Projects"}),b.jsx(Jl,{label:"Manage"})]})})}),b.jsx(Zl,{panelIndex:0,activeIndex:t,children:b.jsx(v2,{componentLibrary:e.componentLibrary})}),b.jsx(Zl,{panelIndex:1,activeIndex:t,children:b.jsx(p2,{})}),b.jsx(Zl,{panelIndex:2,activeIndex:t,children:b.jsx(u2,{})}),b.jsx(Zl,{panelIndex:3,activeIndex:t,children:b.jsx(fI,{})})]})},x2=e=>b.jsx(b.Fragment,{children:b.jsx(b2,{componentLibrary:e.componentLibrary})}),w2=Cn(b.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),S2=Cn(b.jsx("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2m0 8h2v-2H3zm4 8h2v-2H7zM3 9h2V7H3zm10-6h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zM9 3H7v2h2zm2 18h2v-2h-2zm8-8h2v-2h-2zm0 8c1.1 0 2-.9 2-2h-2zm0-12h2V7h-2zm0 8h2v-2h-2zm-4 4h2v-2h-2zm0-16h2V3h-2zM7 17h10V7H7zm2-8h6v6H9z"}),"SelectAll"),C2=Cn(b.jsx("path",{d:"M3 13h2v-2H3zm4 8h2v-2H7zm6-18h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zm8 4h2v-2h-2zm8-8h2v-2h-2zm0-4h2V7h-2zm-4-4h2V3h-2zM7.83 5 7 4.17V3h2v2zm12 12-.83-.83V15h2v2zm1.36 4.19L2.81 2.81 1.39 4.22 4.17 7H3v2h2V7.83l2 2V17h7.17l2 2H15v2h2v-1.17l2.78 2.78zM9 15v-3.17L12.17 15zm6-2.83V9h-3.17l-2-2H17v7.17z"}),"Deselect");var Wy={exports:{}},Bs={},Xd={exports:{}};(function(e,t){(function(n,r){r(t)})(jr,function(n){function r(le){return function(he,ge,de,Te,ve,ke,qe){return le(he,ge,qe)}}function i(le){return function(he,ge,de,Te){if(!he||!ge||typeof he!="object"||typeof ge!="object")return le(he,ge,de,Te);var ve=Te.get(he),ke=Te.get(ge);if(ve&&ke)return ve===ge&&ke===he;Te.set(he,ge),Te.set(ge,he);var qe=le(he,ge,de,Te);return Te.delete(he),Te.delete(ge),qe}}function a(le,ue){var he={};for(var ge in le)he[ge]=le[ge];for(var ge in ue)he[ge]=ue[ge];return he}function l(le){return le.constructor===Object||le.constructor==null}function c(le){return typeof le.then=="function"}function d(le,ue){return le===ue||le!==le&&ue!==ue}var f="[object Arguments]",y="[object Boolean]",m="[object Date]",v="[object RegExp]",w="[object Map]",x="[object Number]",_="[object Object]",k="[object Set]",C="[object String]",O=Object.prototype.toString;function P(le){var ue=le.areArraysEqual,he=le.areDatesEqual,ge=le.areMapsEqual,de=le.areObjectsEqual,Te=le.areRegExpsEqual,ve=le.areSetsEqual,ke=le.createIsNestedEqual,qe=ke(De);function De(Re,Fe,tt){if(Re===Fe)return!0;if(!Re||!Fe||typeof Re!="object"||typeof Fe!="object")return Re!==Re&&Fe!==Fe;if(l(Re)&&l(Fe))return de(Re,Fe,qe,tt);var $e=Array.isArray(Re),st=Array.isArray(Fe);if($e||st)return $e===st&&ue(Re,Fe,qe,tt);var ye=O.call(Re);return ye!==O.call(Fe)?!1:ye===m?he(Re,Fe,qe,tt):ye===v?Te(Re,Fe,qe,tt):ye===w?ge(Re,Fe,qe,tt):ye===k?ve(Re,Fe,qe,tt):ye===_||ye===f?c(Re)||c(Fe)?!1:de(Re,Fe,qe,tt):ye===y||ye===x||ye===C?d(Re.valueOf(),Fe.valueOf()):!1}return De}function R(le,ue,he,ge){var de=le.length;if(ue.length!==de)return!1;for(;de-- >0;)if(!he(le[de],ue[de],de,de,le,ue,ge))return!1;return!0}var M=i(R);function D(le,ue){return d(le.valueOf(),ue.valueOf())}function $(le,ue,he,ge){var de=le.size===ue.size;if(!de)return!1;if(!le.size)return!0;var Te={},ve=0;return le.forEach(function(ke,qe){if(de){var De=!1,Re=0;ue.forEach(function(Fe,tt){!De&&!Te[Re]&&(De=he(qe,tt,ve,Re,le,ue,ge)&&he(ke,Fe,qe,tt,le,ue,ge))&&(Te[Re]=!0),Re++}),ve++,de=De}}),de}var z=i($),V="_owner",E=Object.prototype.hasOwnProperty;function G(le,ue,he,ge){var de=Object.keys(le),Te=de.length;if(Object.keys(ue).length!==Te)return!1;for(var ve;Te-- >0;){if(ve=de[Te],ve===V){var ke=!!le.$$typeof,qe=!!ue.$$typeof;if((ke||qe)&&ke!==qe)return!1}if(!E.call(ue,ve)||!he(le[ve],ue[ve],ve,ve,le,ue,ge))return!1}return!0}var te=i(G);function H(le,ue){return le.source===ue.source&&le.flags===ue.flags}function X(le,ue,he,ge){var de=le.size===ue.size;if(!de)return!1;if(!le.size)return!0;var Te={};return le.forEach(function(ve,ke){if(de){var qe=!1,De=0;ue.forEach(function(Re,Fe){!qe&&!Te[De]&&(qe=he(ve,Re,ke,Fe,le,ue,ge))&&(Te[De]=!0),De++}),de=qe}}),de}var ee=i(X),ae=Object.freeze({areArraysEqual:R,areDatesEqual:D,areMapsEqual:$,areObjectsEqual:G,areRegExpsEqual:H,areSetsEqual:X,createIsNestedEqual:r}),fe=Object.freeze({areArraysEqual:M,areDatesEqual:D,areMapsEqual:z,areObjectsEqual:te,areRegExpsEqual:H,areSetsEqual:ee,createIsNestedEqual:r}),pe=P(ae);function _e(le,ue){return pe(le,ue,void 0)}var We=P(a(ae,{createIsNestedEqual:function(){return d}}));function be(le,ue){return We(le,ue,void 0)}var Be=P(fe);function Ne(le,ue){return Be(le,ue,new WeakMap)}var Me=P(a(fe,{createIsNestedEqual:function(){return d}}));function Xe(le,ue){return Me(le,ue,new WeakMap)}function Ge(le){return P(a(ae,le(ae)))}function ht(le){var ue=P(a(fe,le(fe)));return function(he,ge,de){return de===void 0&&(de=new WeakMap),ue(he,ge,de)}}n.circularDeepEqual=Ne,n.circularShallowEqual=Xe,n.createCustomCircularEqual=ht,n.createCustomEqual=Ge,n.deepEqual=_e,n.sameValueZeroEqual=d,n.shallowEqual=be,Object.defineProperty(n,"__esModule",{value:!0})})})(Xd,Xd.exports);var Jd=Xd.exports;const Zd=ia(tC);var Qe={},_2=function(t,n,r){return t===n?!0:t.className===n.className&&r(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&r(t.verticalCompact,n.verticalCompact)&&r(t.compactType,n.compactType)&&r(t.layout,n.layout)&&r(t.margin,n.margin)&&r(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&r(t.resizeHandles,n.resizeHandles)&&r(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&r(t.droppingItem,n.droppingItem)&&r(t.innerRef,n.innerRef)};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.bottom=Qd,Qe.childrenEqual=P2,Qe.cloneLayout=Hy,Qe.cloneLayoutItem=Ao,Qe.collides=Ql,Qe.compact=qy,Qe.compactItem=Vy,Qe.compactType=j2,Qe.correctBounds=Ky,Qe.fastPositionEqual=T2,Qe.fastRGLPropsEqual=void 0,Qe.getAllCollisions=Yy,Qe.getFirstCollision=$o,Qe.getLayoutItem=tf,Qe.getStatics=nf,Qe.modifyLayout=Gy,Qe.moveElement=js,Qe.moveElementAwayFromCollision=rf,Qe.noop=void 0,Qe.perc=k2,Qe.resizeItemInDirection=A2,Qe.setTopLeft=M2,Qe.setTransform=$2,Qe.sortLayoutItems=uf,Qe.sortLayoutItemsByColRow=e0,Qe.sortLayoutItemsByRowCol=Qy,Qe.synchronizeLayoutWithChildren=B2,Qe.validateLayout=D2,Qe.withLayoutItem=R2;var Uy=Jd,Ds=E2(Y);function E2(e){return e&&e.__esModule?e:{default:e}}function Qd(e){let t=0,n;for(let r=0,i=e.length;r<i;r++)n=e[r].y+e[r].h,n>t&&(t=n);return t}function Hy(e){const t=Array(e.length);for(let n=0,r=e.length;n<r;n++)t[n]=Ao(e[n]);return t}function Gy(e,t){const n=Array(e.length);for(let r=0,i=e.length;r<i;r++)t.i===e[r].i?n[r]=t:n[r]=e[r];return n}function R2(e,t,n){let r=tf(e,t);return r?(r=n(Ao(r)),e=Gy(e,r),[e,r]):[e,null]}function Ao(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function P2(e,t){return(0,Uy.deepEqual)(Ds.default.Children.map(e,n=>n==null?void 0:n.key),Ds.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,Uy.deepEqual)(Ds.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),Ds.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}Qe.fastRGLPropsEqual=_2;function T2(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function Ql(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function qy(e,t,n,r){const i=nf(e),a=uf(e,t),l=Array(e.length);for(let c=0,d=a.length;c<d;c++){let f=Ao(a[c]);f.static||(f=Vy(i,f,t,n,a,r),i.push(f)),l[e.indexOf(a[c])]=f,f.moved=!1}return l}const I2={x:"w",y:"h"};function ef(e,t,n,r){const i=I2[r];t[r]+=1;const a=e.map(l=>l.i).indexOf(t.i);for(let l=a+1;l<e.length;l++){const c=e[l];if(!c.static){if(c.y>t.y+t.h)break;Ql(t,c)&&ef(e,c,n+t[i],r)}}t[r]=n}function Vy(e,t,n,r,i,a){const l=n==="vertical",c=n==="horizontal";if(l)for(t.y=Math.min(Qd(e),t.y);t.y>0&&!$o(e,t);)t.y--;else if(c)for(;t.x>0&&!$o(e,t);)t.x--;let d;for(;(d=$o(e,t))&&!(n===null&&a);)if(c?ef(i,t,d.x+d.w,"x"):ef(i,t,d.y+d.h,"y"),c&&t.x+t.w>r)for(t.x=r-t.w,t.y++;t.x>0&&!$o(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function Ky(e,t){const n=nf(e);for(let r=0,i=e.length;r<i;r++){const a=e[r];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)n.push(a);else for(;$o(n,a);)a.y++}return e}function tf(e,t){for(let n=0,r=e.length;n<r;n++)if(e[n].i===t)return e[n]}function $o(e,t){for(let n=0,r=e.length;n<r;n++)if(Ql(e[n],t))return e[n]}function Yy(e,t){return e.filter(n=>Ql(n,t))}function nf(e){return e.filter(t=>t.static)}function js(e,t,n,r,i,a,l,c,d){if(t.static&&t.isDraggable!==!0||t.y===r&&t.x===n)return e;`${t.i}${String(n)}${String(r)}${t.x}${t.y}`;const f=t.x,y=t.y;typeof n=="number"&&(t.x=n),typeof r=="number"&&(t.y=r),t.moved=!0;let m=uf(e,l);(l==="vertical"&&typeof r=="number"?y>=r:l==="horizontal"&&typeof n=="number"?f>=n:!1)&&(m=m.reverse());const w=Yy(m,t),x=w.length>0;if(x&&d)return Hy(e);if(x&&a)return`${t.i}`,t.x=f,t.y=y,t.moved=!1,e;for(let _=0,k=w.length;_<k;_++){const C=w[_];`${t.i}${t.x}${t.y}${C.i}${C.x}${C.y}`,!C.moved&&(C.static?e=rf(e,C,t,i,l):e=rf(e,t,C,i,l))}return e}function rf(e,t,n,r,i,a){const l=i==="horizontal",c=i==="vertical",d=t.static;if(r){r=!1;const m={x:l?Math.max(t.x-n.w,0):n.x,y:c?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},v=$o(e,m),w=v&&v.y+v.h>t.y,x=v&&t.x+t.w>v.x;if(v){if(w&&c)return js(e,n,void 0,t.y+1,r,d,i);if(w&&i==null)return t.y=n.y,n.y=n.y+n.h,e;if(x&&l)return js(e,t,n.x,void 0,r,d,i)}else return`${n.i}${m.x}${m.y}`,js(e,n,l?m.x:void 0,c?m.y:void 0,r,d,i)}const f=l?n.x+1:void 0,y=c?n.y+1:void 0;return f==null&&y==null?e:js(e,n,l?n.x+1:void 0,c?n.y+1:void 0,r,d,i)}function k2(e){return e*100+"%"}const Xy=(e,t,n,r)=>e+n>r?t:n,Jy=(e,t,n)=>e<0?t:n,Zy=e=>Math.max(0,e),of=e=>Math.max(0,e),sf=(e,t,n)=>{let{left:r,height:i,width:a}=t;const l=e.top-(i-e.height);return{left:r,width:a,height:Jy(l,e.height,i),top:of(l)}},af=(e,t,n)=>{let{top:r,left:i,height:a,width:l}=t;return{top:r,height:a,width:Xy(e.left,e.width,l,n),left:Zy(i)}},lf=(e,t,n)=>{let{top:r,height:i,width:a}=t;const l=e.left-(a-e.width);return{height:i,width:l<0?e.width:Xy(e.left,e.width,a,n),top:of(r),left:Zy(l)}},cf=(e,t,n)=>{let{top:r,left:i,height:a,width:l}=t;return{width:l,left:i,height:Jy(r,e.height,a),top:of(r)}},O2={n:sf,ne:function(){return sf(arguments.length<=0?void 0:arguments[0],af(...arguments))},e:af,se:function(){return cf(arguments.length<=0?void 0:arguments[0],af(...arguments))},s:cf,sw:function(){return cf(arguments.length<=0?void 0:arguments[0],lf(...arguments))},w:lf,nw:function(){return sf(arguments.length<=0?void 0:arguments[0],lf(...arguments))}};function A2(e,t,n,r){const i=O2[e];return i?i(t,{...t,...n},r):n}function $2(e){let{top:t,left:n,width:r,height:i}=e;const a=`translate(${n}px,${t}px)`;return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:`${r}px`,height:`${i}px`,position:"absolute"}}function M2(e){let{top:t,left:n,width:r,height:i}=e;return{top:`${t}px`,left:`${n}px`,width:`${r}px`,height:`${i}px`,position:"absolute"}}function uf(e,t){return t==="horizontal"?e0(e):t==="vertical"?Qy(e):e}function Qy(e){return e.slice(0).sort(function(t,n){return t.y>n.y||t.y===n.y&&t.x>n.x?1:t.y===n.y&&t.x===n.x?0:-1})}function e0(e){return e.slice(0).sort(function(t,n){return t.x>n.x||t.x===n.x&&t.y>n.y?1:-1})}function B2(e,t,n,r,i){e=e||[];const a=[];Ds.default.Children.forEach(t,c=>{if((c==null?void 0:c.key)==null)return;const d=tf(e,String(c.key)),f=c.props["data-grid"];d&&f==null?a.push(Ao(d)):f?a.push(Ao({...f,i:c.key})):a.push(Ao({w:1,h:1,x:0,y:Qd(a),i:String(c.key)}))});const l=Ky(a,{cols:n});return i?l:qy(l,r,n)}function D2(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let r=0,i=e.length;r<i;r++){const a=e[r];for(let l=0;l<n.length;l++){const c=n[l],d=a[c];if(typeof d!="number"||Number.isNaN(d))throw new Error(`ReactGridLayout: ${t}[${r}].${c} must be a number! Received: ${d} (${typeof d})`)}if(typeof a.i<"u"&&typeof a.i!="string")throw new Error(`ReactGridLayout: ${t}[${r}].i must be a string! Received: ${a.i} (${typeof a.i})`)}}function j2(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}function Y5(){}const L2=()=>{};Qe.noop=L2;var Ir={};Object.defineProperty(Ir,"__esModule",{value:!0}),Ir.calcGridColWidth=ec,Ir.calcGridItemPosition=F2,Ir.calcGridItemWHPx=df,Ir.calcWH=z2,Ir.calcXY=N2,Ir.clamp=Mo;function ec(e){const{margin:t,containerPadding:n,containerWidth:r,cols:i}=e;return(r-t[0]*(i-1)-n[0]*2)/i}function df(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function F2(e,t,n,r,i,a){const{margin:l,containerPadding:c,rowHeight:d}=e,f=ec(e),y={};return a&&a.resizing?(y.width=Math.round(a.resizing.width),y.height=Math.round(a.resizing.height)):(y.width=df(r,f,l[0]),y.height=df(i,d,l[1])),a&&a.dragging?(y.top=Math.round(a.dragging.top),y.left=Math.round(a.dragging.left)):a&&a.resizing&&typeof a.resizing.top=="number"&&typeof a.resizing.left=="number"?(y.top=Math.round(a.resizing.top),y.left=Math.round(a.resizing.left)):(y.top=Math.round((d+l[1])*n+c[1]),y.left=Math.round((f+l[0])*t+c[0])),y}function N2(e,t,n,r,i){const{margin:a,containerPadding:l,cols:c,rowHeight:d,maxRows:f}=e,y=ec(e);let m=Math.round((n-l[0])/(y+a[0])),v=Math.round((t-l[1])/(d+a[1]));return m=Mo(m,0,c-r),v=Mo(v,0,f-i),{x:m,y:v}}function z2(e,t,n,r,i,a){const{margin:l,maxRows:c,cols:d,rowHeight:f}=e,y=ec(e);let m=Math.round((t+l[0])/(y+l[0])),v=Math.round((n+l[1])/(f+l[1])),w=Mo(m,0,d-r),x=Mo(v,0,c-i);return["sw","w","nw"].indexOf(a)!==-1&&(w=Mo(m,0,d)),["nw","n","ne"].indexOf(a)!==-1&&(x=Mo(v,0,c)),{w,h:x}}function Mo(e,t,n){return Math.max(Math.min(e,n),t)}var tc={},nc={exports:{}},t0={};function n0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=n0(e[t]))&&(r&&(r+=" "),r+=n);else for(t in e)e[t]&&(r&&(r+=" "),r+=t);return r}function r0(){for(var e,t,n=0,r="";n<arguments.length;)(e=arguments[n++])&&(t=n0(e))&&(r&&(r+=" "),r+=t);return r}const W2=ia(Object.freeze(Object.defineProperty({__proto__:null,clsx:r0,default:r0},Symbol.toStringTag,{value:"Module"})));var Ft={},kr={};Object.defineProperty(kr,"__esModule",{value:!0}),kr.dontSetMe=V2,kr.findInArray=U2,kr.int=q2,kr.isFunction=H2,kr.isNum=G2;function U2(e,t){for(let n=0,r=e.length;n<r;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function H2(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function G2(e){return typeof e=="number"&&!isNaN(e)}function q2(e){return parseInt(e,10)}function V2(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var Bo={};Object.defineProperty(Bo,"__esModule",{value:!0}),Bo.browserPrefixToKey=i0,Bo.browserPrefixToStyle=K2,Bo.default=void 0,Bo.getPrefix=o0;const ff=["Moz","Webkit","O","ms"];function o0(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let r=0;r<ff.length;r++)if(i0(t,ff[r])in n)return ff[r];return""}function i0(e,t){return t?"".concat(t).concat(Y2(e)):e}function K2(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function Y2(e){let t="",n=!0;for(let r=0;r<e.length;r++)n?(t+=e[r].toUpperCase(),n=!1):e[r]==="-"?n=!0:t+=e[r];return t}Bo.default=o0(),Object.defineProperty(Ft,"__esModule",{value:!0}),Ft.addClassName=c0,Ft.addEvent=Z2,Ft.addUserSelectStyles=cO,Ft.createCSSTransform=iO,Ft.createSVGTransform=sO,Ft.getTouch=aO,Ft.getTouchIdentifier=lO,Ft.getTranslation=pf,Ft.innerHeight=nO,Ft.innerWidth=rO,Ft.matchesSelector=l0,Ft.matchesSelectorAndParentsTo=J2,Ft.offsetXYFromParent=oO,Ft.outerHeight=eO,Ft.outerWidth=tO,Ft.removeClassName=u0,Ft.removeEvent=Q2,Ft.removeUserSelectStyles=uO;var jn=kr,s0=X2(Bo);function a0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(a0=function(r){return r?n:t})(e)}function X2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=a0(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}let rc="";function l0(e,t){return rc||(rc=(0,jn.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,jn.isFunction)(e[n])})),(0,jn.isFunction)(e[rc])?e[rc](t):!1}function J2(e,t,n){let r=e;do{if(l0(r,t))return!0;if(r===n)return!1;r=r.parentNode}while(r);return!1}function Z2(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.addEventListener?e.addEventListener(t,n,i):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function Q2(e,t,n,r){if(!e)return;const i={capture:!0,...r};e.removeEventListener?e.removeEventListener(t,n,i):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function eO(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,jn.int)(n.borderTopWidth),t+=(0,jn.int)(n.borderBottomWidth),t}function tO(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,jn.int)(n.borderLeftWidth),t+=(0,jn.int)(n.borderRightWidth),t}function nO(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,jn.int)(n.paddingTop),t-=(0,jn.int)(n.paddingBottom),t}function rO(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,jn.int)(n.paddingLeft),t-=(0,jn.int)(n.paddingRight),t}function oO(e,t,n){const i=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-i.left)/n,l=(e.clientY+t.scrollTop-i.top)/n;return{x:a,y:l}}function iO(e,t){const n=pf(e,t,"px");return{[(0,s0.browserPrefixToKey)("transform",s0.default)]:n}}function sO(e,t){return pf(e,t,"")}function pf(e,t,n){let{x:r,y:i}=e,a="translate(".concat(r).concat(n,",").concat(i).concat(n,")");if(t){const l="".concat(typeof t.x=="string"?t.x:t.x+n),c="".concat(typeof t.y=="string"?t.y:t.y+n);a="translate(".concat(l,", ").concat(c,")")+a}return a}function aO(e,t){return e.targetTouches&&(0,jn.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,jn.findInArray)(e.changedTouches,n=>t===n.identifier)}function lO(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function cO(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
913
|
+
`,IT=e=>e.map(t=>t.type==="LOADING_SIGNAL"?v.jsx(ET,{},t.type):v.jsx(CT,{message:t},t.id)).filter(Boolean).reverse(),Ed=5,kT=()=>{const[e,t]=X.useState(0),[n,o]=X.useState([]),[s,a]=X.useState(!1),[l,u]=X.useState(!1),[d,h]=X.useState(""),y=X.useRef(""),[m,b]=X.useState(),w=X.useRef(),{config:S,setSyncToken:E,startChatbot:P,projectMetadata:C,chatbotWebsocket:O,selectedComponentId:k,chatbotWebsocketConnected:R}=On(),$=X.useMemo(()=>!C.projectName,[C.projectName]),B=()=>({type:"LOADING_SIGNAL"}),M=we=>we.filter(ue=>ue.type!=="LOADING_SIGNAL"),z=async()=>{w.current&&w.current.abort(),w.current=new AbortController;const we=w.current.signal;try{u(!0),await Js(C.projectName,C.projectURL,S.CORS_PROXY),u(!1);const ue=`${window.miDir}/${C.projectName}/chat.json`,Ce=await window.pfs.readFile(ue,"utf8"),De=JSON.parse(Ce);we.aborted||o(De)}catch(ue){console.log("error when fetching chat history",ue)}},V=()=>{e>Ed||(console.log("Attempting to connect to a new WebSocket..."),P(C.projectName,{onopen:Q,onclose:ee,onerror:le,onmessage:pe}))},_=()=>{O&&R===!0&&O.close()},G=async()=>{if(m===ar.GENERATION_FAILED||m===ar.GENERATION_STARTED)return;const we=k;if(!we){alert("Please select a component");return}const ue={type:"chat",content:{role:"user",source:"web_client",content:d.trim(),context:null,metadata:{component_id:we}}};O.send(JSON.stringify(ue)),o(Ce=>[...Ce,{role:"user",content:d,id:xs()},B()]),y.current=d,h("")},re=we=>{h(ue=>{const Ce=ue.trim();return Ce?`${Ce} ${we}`:we})},H=we=>{he===!1&&we.key==="Enter"&&!we.shiftKey&&(we.preventDefault(),G())},Q=()=>{console.log("websocket connection is initiated")},ee=we=>{[1001,1002,1003,1006,1007,1008,1009,1010,1011,1012,1013,1014,1015].indexOf(we.code)>-1&&(console.log(`WebSocket closed: ${we.code} - ${we.reason}`),t(Ce=>(Ce+1<=Ed&&alert(`websocket was closed. Attempting to reconnecting: ${Ce+1}/${Ed}`),Ce+1)),V())},le=we=>{console.log("there was an error with the websocket",we)},pe=we=>{const ue=JSON.parse(we.data);if(ue.type)switch(ue.type){case"chat":{o(Ce=>[...M(Ce),ue.content]);break}case"signal":switch(ue.content&&ue.content.type?b(ue.content.type):console.warn("Signal type is undefined",ue.content),ue.content.type){case ar.READY_TO_RECEIVE:break;case ar.GENERATION_STARTED:o(Ce=>[...M(Ce),B()]);break;case ar.GENERATION_ENDED:{o(Ce=>[...M(Ce)]),E();break}case ar.GENERATION_CANCELED:break;case ar.GENERATION_FAILED:{_(),setTimeout(()=>{o([]),setTimeout(()=>{z().then(()=>{V(),h(y.current),y.current=""})},1e3)},2e3);break}}break;case"error":console.log("error came from websocket");break}};X.useEffect(()=>{if(C.projectName&&C.projectURL)return _(),z().then(()=>V()),()=>{w.current&&w.current.abort(),_()}},[C.projectName]);const he=!O||m===ar.GENERATION_STARTED||m===ar.GENERATION_FAILED,be=m===ar.GENERATION_FAILED;return v.jsxs(v.Fragment,{children:[v.jsx(bs,{isVisible:l}),v.jsx(RT,{children:v.jsxs("div",{className:"chat-container",children:[v.jsxs("div",{className:"chat-messages",children:[!O&&v.jsx("div",{className:"chat-connecting-toast",children:"Establishing Connection"}),be&&v.jsx("div",{className:"chat-error-toast",children:"Restoring Chat as Generation Failed"}),IT(n)]}),v.jsxs("div",{className:"chat-input",children:[v.jsx("input",{type:"text",placeholder:"Type your message...",value:d,onChange:we=>h(we.target.value),onKeyDown:H,disabled:he}),v.jsx("button",{className:"gallery-button",onClick:()=>a(!0),disabled:$,children:"Images"}),v.jsx("button",{onClick:G,disabled:he,children:"Send"})]})]})}),C.projectName&&v.jsx(r0,{isOpen:s,onClose:()=>a(!1),onImageSelect:re,projectName:C.projectName})]})},Rl=BS(eI)({fontSize:"12px",padding:"2px"}),Il=e=>v.jsx(v.Fragment,{children:v.jsx("div",{role:"tabpanel",hidden:e.activeIndex!=e.panelIndex,children:e.children})}),TT=e=>{const[t,n]=X.useState(0),o=(s,a)=>{n(a)};return v.jsxs(v.Fragment,{children:[v.jsx(Dt,{sx:{width:"100%",position:"sticky",top:0,zIndex:1e3,backgroundColor:"LightGray"},children:v.jsx(Dt,{sx:{borderBottom:3,borderColor:"divider"},children:v.jsxs(bI,{value:t,onChange:o,children:[v.jsx(Rl,{label:"Components"}),v.jsx(Rl,{label:"Chatbot"}),v.jsx(Rl,{label:"Projects"}),v.jsx(Rl,{label:"Manage"})]})})}),v.jsx(Il,{panelIndex:0,activeIndex:t,children:v.jsx(xT,{componentLibrary:e.componentLibrary})}),v.jsx(Il,{panelIndex:1,activeIndex:t,children:v.jsx(kT,{})}),v.jsx(Il,{panelIndex:2,activeIndex:t,children:v.jsx(gT,{})}),v.jsx(Il,{panelIndex:3,activeIndex:t,children:v.jsx($k,{})})]})},PT=e=>v.jsx(v.Fragment,{children:v.jsx(TT,{componentLibrary:e.componentLibrary})}),OT=bn(v.jsx("path",{d:"M20 9H4v2h16zM4 15h16v-2H4z"}),"DragHandle"),AT=bn(v.jsx("path",{d:"M3 5h2V3c-1.1 0-2 .9-2 2m0 8h2v-2H3zm4 8h2v-2H7zM3 9h2V7H3zm10-6h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zM9 3H7v2h2zm2 18h2v-2h-2zm8-8h2v-2h-2zm0 8c1.1 0 2-.9 2-2h-2zm0-12h2V7h-2zm0 8h2v-2h-2zm-4 4h2v-2h-2zm0-16h2V3h-2zM7 17h10V7H7zm2-8h6v6H9z"}),"SelectAll"),MT=bn(v.jsx("path",{d:"M3 13h2v-2H3zm4 8h2v-2H7zm6-18h-2v2h2zm6 0v2h2c0-1.1-.9-2-2-2M5 21v-2H3c0 1.1.9 2 2 2m-2-4h2v-2H3zm8 4h2v-2h-2zm8-8h2v-2h-2zm0-4h2V7h-2zm-4-4h2V3h-2zM7.83 5 7 4.17V3h2v2zm12 12-.83-.83V15h2v2zm1.36 4.19L2.81 2.81 1.39 4.22 4.17 7H3v2h2V7.83l2 2V17h7.17l2 2H15v2h2v-1.17l2.78 2.78zM9 15v-3.17L12.17 15zm6-2.83V9h-3.17l-2-2H17v7.17z"}),"Deselect");var l0={exports:{}},_s={},Rd={exports:{}};(function(e,t){(function(n,o){o(t)})(Mr,function(n){function o(ae){return function(ge,me,fe,Pe,ve,Be,Ge){return ae(ge,me,Ge)}}function s(ae){return function(ge,me,fe,Pe){if(!ge||!me||typeof ge!="object"||typeof me!="object")return ae(ge,me,fe,Pe);var ve=Pe.get(ge),Be=Pe.get(me);if(ve&&Be)return ve===me&&Be===ge;Pe.set(ge,me),Pe.set(me,ge);var Ge=ae(ge,me,fe,Pe);return Pe.delete(ge),Pe.delete(me),Ge}}function a(ae,de){var ge={};for(var me in ae)ge[me]=ae[me];for(var me in de)ge[me]=de[me];return ge}function l(ae){return ae.constructor===Object||ae.constructor==null}function u(ae){return typeof ae.then=="function"}function d(ae,de){return ae===de||ae!==ae&&de!==de}var h="[object Arguments]",y="[object Boolean]",m="[object Date]",b="[object RegExp]",w="[object Map]",S="[object Number]",E="[object Object]",P="[object Set]",C="[object String]",O=Object.prototype.toString;function k(ae){var de=ae.areArraysEqual,ge=ae.areDatesEqual,me=ae.areMapsEqual,fe=ae.areObjectsEqual,Pe=ae.areRegExpsEqual,ve=ae.areSetsEqual,Be=ae.createIsNestedEqual,Ge=Be(Ae);function Ae(ke,We,et){if(ke===We)return!0;if(!ke||!We||typeof ke!="object"||typeof We!="object")return ke!==ke&&We!==We;if(l(ke)&&l(We))return fe(ke,We,Ge,et);var Le=Array.isArray(ke),xe=Array.isArray(We);if(Le||xe)return Le===xe&&de(ke,We,Ge,et);var ut=O.call(ke);return ut!==O.call(We)?!1:ut===m?ge(ke,We,Ge,et):ut===b?Pe(ke,We,Ge,et):ut===w?me(ke,We,Ge,et):ut===P?ve(ke,We,Ge,et):ut===E||ut===h?u(ke)||u(We)?!1:fe(ke,We,Ge,et):ut===y||ut===S||ut===C?d(ke.valueOf(),We.valueOf()):!1}return Ae}function R(ae,de,ge,me){var fe=ae.length;if(de.length!==fe)return!1;for(;fe-- >0;)if(!ge(ae[fe],de[fe],fe,fe,ae,de,me))return!1;return!0}var $=s(R);function B(ae,de){return d(ae.valueOf(),de.valueOf())}function M(ae,de,ge,me){var fe=ae.size===de.size;if(!fe)return!1;if(!ae.size)return!0;var Pe={},ve=0;return ae.forEach(function(Be,Ge){if(fe){var Ae=!1,ke=0;de.forEach(function(We,et){!Ae&&!Pe[ke]&&(Ae=ge(Ge,et,ve,ke,ae,de,me)&&ge(Be,We,Ge,et,ae,de,me))&&(Pe[ke]=!0),ke++}),ve++,fe=Ae}}),fe}var z=s(M),V="_owner",_=Object.prototype.hasOwnProperty;function G(ae,de,ge,me){var fe=Object.keys(ae),Pe=fe.length;if(Object.keys(de).length!==Pe)return!1;for(var ve;Pe-- >0;){if(ve=fe[Pe],ve===V){var Be=!!ae.$$typeof,Ge=!!de.$$typeof;if((Be||Ge)&&Be!==Ge)return!1}if(!_.call(de,ve)||!ge(ae[ve],de[ve],ve,ve,ae,de,me))return!1}return!0}var re=s(G);function H(ae,de){return ae.source===de.source&&ae.flags===de.flags}function Q(ae,de,ge,me){var fe=ae.size===de.size;if(!fe)return!1;if(!ae.size)return!0;var Pe={};return ae.forEach(function(ve,Be){if(fe){var Ge=!1,Ae=0;de.forEach(function(ke,We){!Ge&&!Pe[Ae]&&(Ge=ge(ve,ke,Be,We,ae,de,me))&&(Pe[Ae]=!0),Ae++}),fe=Ge}}),fe}var ee=s(Q),le=Object.freeze({areArraysEqual:R,areDatesEqual:B,areMapsEqual:M,areObjectsEqual:G,areRegExpsEqual:H,areSetsEqual:Q,createIsNestedEqual:o}),pe=Object.freeze({areArraysEqual:$,areDatesEqual:B,areMapsEqual:z,areObjectsEqual:re,areRegExpsEqual:H,areSetsEqual:ee,createIsNestedEqual:o}),he=k(le);function be(ae,de){return he(ae,de,void 0)}var we=k(a(le,{createIsNestedEqual:function(){return d}}));function ue(ae,de){return we(ae,de,void 0)}var Ce=k(pe);function De(ae,de){return Ce(ae,de,new WeakMap)}var Xe=k(a(pe,{createIsNestedEqual:function(){return d}}));function Ke(ae,de){return Xe(ae,de,new WeakMap)}function He(ae){return k(a(le,ae(le)))}function gt(ae){var de=k(a(pe,ae(pe)));return function(ge,me,fe){return fe===void 0&&(fe=new WeakMap),de(ge,me,fe)}}n.circularDeepEqual=De,n.circularShallowEqual=Ke,n.createCustomCircularEqual=gt,n.createCustomEqual=He,n.deepEqual=be,n.sameValueZeroEqual=d,n.shallowEqual=ue,Object.defineProperty(n,"__esModule",{value:!0})})})(Rd,Rd.exports);var Id=Rd.exports;const kd=Vs(RS);var Qe={},$T=function(t,n,o){return t===n?!0:t.className===n.className&&o(t.style,n.style)&&t.width===n.width&&t.autoSize===n.autoSize&&t.cols===n.cols&&t.draggableCancel===n.draggableCancel&&t.draggableHandle===n.draggableHandle&&o(t.verticalCompact,n.verticalCompact)&&o(t.compactType,n.compactType)&&o(t.layout,n.layout)&&o(t.margin,n.margin)&&o(t.containerPadding,n.containerPadding)&&t.rowHeight===n.rowHeight&&t.maxRows===n.maxRows&&t.isBounded===n.isBounded&&t.isDraggable===n.isDraggable&&t.isResizable===n.isResizable&&t.allowOverlap===n.allowOverlap&&t.preventCollision===n.preventCollision&&t.useCSSTransforms===n.useCSSTransforms&&t.transformScale===n.transformScale&&t.isDroppable===n.isDroppable&&o(t.resizeHandles,n.resizeHandles)&&o(t.resizeHandle,n.resizeHandle)&&t.onLayoutChange===n.onLayoutChange&&t.onDragStart===n.onDragStart&&t.onDrag===n.onDrag&&t.onDragStop===n.onDragStop&&t.onResizeStart===n.onResizeStart&&t.onResize===n.onResize&&t.onResizeStop===n.onResizeStop&&t.onDrop===n.onDrop&&o(t.droppingItem,n.droppingItem)&&o(t.innerRef,n.innerRef)};Object.defineProperty(Qe,"__esModule",{value:!0}),Qe.bottom=Td,Qe.childrenEqual=LT,Qe.cloneLayout=u0,Qe.cloneLayoutItem=Ro,Qe.collides=kl,Qe.compact=f0,Qe.compactItem=p0,Qe.compactType=VT,Qe.correctBounds=h0,Qe.fastPositionEqual=jT,Qe.fastRGLPropsEqual=void 0,Qe.getAllCollisions=g0,Qe.getFirstCollision=Io,Qe.getLayoutItem=Od,Qe.getStatics=Ad,Qe.modifyLayout=d0,Qe.moveElement=Rs,Qe.moveElementAwayFromCollision=Md,Qe.noop=void 0,Qe.perc=FT,Qe.resizeItemInDirection=WT,Qe.setTopLeft=HT,Qe.setTransform=UT,Qe.sortLayoutItems=Nd,Qe.sortLayoutItemsByColRow=x0,Qe.sortLayoutItemsByRowCol=b0,Qe.synchronizeLayoutWithChildren=GT,Qe.validateLayout=qT,Qe.withLayoutItem=BT;var c0=Id,Es=DT(X);function DT(e){return e&&e.__esModule?e:{default:e}}function Td(e){let t=0,n;for(let o=0,s=e.length;o<s;o++)n=e[o].y+e[o].h,n>t&&(t=n);return t}function u0(e){const t=Array(e.length);for(let n=0,o=e.length;n<o;n++)t[n]=Ro(e[n]);return t}function d0(e,t){const n=Array(e.length);for(let o=0,s=e.length;o<s;o++)t.i===e[o].i?n[o]=t:n[o]=e[o];return n}function BT(e,t,n){let o=Od(e,t);return o?(o=n(Ro(o)),e=d0(e,o),[e,o]):[e,null]}function Ro(e){return{w:e.w,h:e.h,x:e.x,y:e.y,i:e.i,minW:e.minW,maxW:e.maxW,minH:e.minH,maxH:e.maxH,moved:!!e.moved,static:!!e.static,isDraggable:e.isDraggable,isResizable:e.isResizable,resizeHandles:e.resizeHandles,isBounded:e.isBounded}}function LT(e,t){return(0,c0.deepEqual)(Es.default.Children.map(e,n=>n==null?void 0:n.key),Es.default.Children.map(t,n=>n==null?void 0:n.key))&&(0,c0.deepEqual)(Es.default.Children.map(e,n=>n==null?void 0:n.props["data-grid"]),Es.default.Children.map(t,n=>n==null?void 0:n.props["data-grid"]))}Qe.fastRGLPropsEqual=$T;function jT(e,t){return e.left===t.left&&e.top===t.top&&e.width===t.width&&e.height===t.height}function kl(e,t){return!(e.i===t.i||e.x+e.w<=t.x||e.x>=t.x+t.w||e.y+e.h<=t.y||e.y>=t.y+t.h)}function f0(e,t,n,o){const s=Ad(e),a=Nd(e,t),l=Array(e.length);for(let u=0,d=a.length;u<d;u++){let h=Ro(a[u]);h.static||(h=p0(s,h,t,n,a,o),s.push(h)),l[e.indexOf(a[u])]=h,h.moved=!1}return l}const NT={x:"w",y:"h"};function Pd(e,t,n,o){const s=NT[o];t[o]+=1;const a=e.map(l=>l.i).indexOf(t.i);for(let l=a+1;l<e.length;l++){const u=e[l];if(!u.static){if(u.y>t.y+t.h)break;kl(t,u)&&Pd(e,u,n+t[s],o)}}t[o]=n}function p0(e,t,n,o,s,a){const l=n==="vertical",u=n==="horizontal";if(l)for(t.y=Math.min(Td(e),t.y);t.y>0&&!Io(e,t);)t.y--;else if(u)for(;t.x>0&&!Io(e,t);)t.x--;let d;for(;(d=Io(e,t))&&!(n===null&&a);)if(u?Pd(s,t,d.x+d.w,"x"):Pd(s,t,d.y+d.h,"y"),u&&t.x+t.w>o)for(t.x=o-t.w,t.y++;t.x>0&&!Io(e,t);)t.x--;return t.y=Math.max(t.y,0),t.x=Math.max(t.x,0),t}function h0(e,t){const n=Ad(e);for(let o=0,s=e.length;o<s;o++){const a=e[o];if(a.x+a.w>t.cols&&(a.x=t.cols-a.w),a.x<0&&(a.x=0,a.w=t.cols),!a.static)n.push(a);else for(;Io(n,a);)a.y++}return e}function Od(e,t){for(let n=0,o=e.length;n<o;n++)if(e[n].i===t)return e[n]}function Io(e,t){for(let n=0,o=e.length;n<o;n++)if(kl(e[n],t))return e[n]}function g0(e,t){return e.filter(n=>kl(n,t))}function Ad(e){return e.filter(t=>t.static)}function Rs(e,t,n,o,s,a,l,u,d){if(t.static&&t.isDraggable!==!0||t.y===o&&t.x===n)return e;`${t.i}${String(n)}${String(o)}${t.x}${t.y}`;const h=t.x,y=t.y;typeof n=="number"&&(t.x=n),typeof o=="number"&&(t.y=o),t.moved=!0;let m=Nd(e,l);(l==="vertical"&&typeof o=="number"?y>=o:l==="horizontal"&&typeof n=="number"?h>=n:!1)&&(m=m.reverse());const w=g0(m,t),S=w.length>0;if(S&&d)return u0(e);if(S&&a)return`${t.i}`,t.x=h,t.y=y,t.moved=!1,e;for(let E=0,P=w.length;E<P;E++){const C=w[E];`${t.i}${t.x}${t.y}${C.i}${C.x}${C.y}`,!C.moved&&(C.static?e=Md(e,C,t,s,l):e=Md(e,t,C,s,l))}return e}function Md(e,t,n,o,s,a){const l=s==="horizontal",u=s==="vertical",d=t.static;if(o){o=!1;const m={x:l?Math.max(t.x-n.w,0):n.x,y:u?Math.max(t.y-n.h,0):n.y,w:n.w,h:n.h,i:"-1"},b=Io(e,m),w=b&&b.y+b.h>t.y,S=b&&t.x+t.w>b.x;if(b){if(w&&u)return Rs(e,n,void 0,t.y+1,o,d,s);if(w&&s==null)return t.y=n.y,n.y=n.y+n.h,e;if(S&&l)return Rs(e,t,n.x,void 0,o,d,s)}else return`${n.i}${m.x}${m.y}`,Rs(e,n,l?m.x:void 0,u?m.y:void 0,o,d,s)}const h=l?n.x+1:void 0,y=u?n.y+1:void 0;return h==null&&y==null?e:Rs(e,n,l?n.x+1:void 0,u?n.y+1:void 0,o,d,s)}function FT(e){return e*100+"%"}const m0=(e,t,n,o)=>e+n>o?t:n,y0=(e,t,n)=>e<0?t:n,v0=e=>Math.max(0,e),$d=e=>Math.max(0,e),Dd=(e,t,n)=>{let{left:o,height:s,width:a}=t;const l=e.top-(s-e.height);return{left:o,width:a,height:y0(l,e.height,s),top:$d(l)}},Bd=(e,t,n)=>{let{top:o,left:s,height:a,width:l}=t;return{top:o,height:a,width:m0(e.left,e.width,l,n),left:v0(s)}},Ld=(e,t,n)=>{let{top:o,height:s,width:a}=t;const l=e.left-(a-e.width);return{height:s,width:l<0?e.width:m0(e.left,e.width,a,n),top:$d(o),left:v0(l)}},jd=(e,t,n)=>{let{top:o,left:s,height:a,width:l}=t;return{width:l,left:s,height:y0(o,e.height,a),top:$d(o)}},zT={n:Dd,ne:function(){return Dd(arguments.length<=0?void 0:arguments[0],Bd(...arguments))},e:Bd,se:function(){return jd(arguments.length<=0?void 0:arguments[0],Bd(...arguments))},s:jd,sw:function(){return jd(arguments.length<=0?void 0:arguments[0],Ld(...arguments))},w:Ld,nw:function(){return Dd(arguments.length<=0?void 0:arguments[0],Ld(...arguments))}};function WT(e,t,n,o){const s=zT[e];return s?s(t,{...t,...n},o):n}function UT(e){let{top:t,left:n,width:o,height:s}=e;const a=`translate(${n}px,${t}px)`;return{transform:a,WebkitTransform:a,MozTransform:a,msTransform:a,OTransform:a,width:`${o}px`,height:`${s}px`,position:"absolute"}}function HT(e){let{top:t,left:n,width:o,height:s}=e;return{top:`${t}px`,left:`${n}px`,width:`${o}px`,height:`${s}px`,position:"absolute"}}function Nd(e,t){return t==="horizontal"?x0(e):t==="vertical"?b0(e):e}function b0(e){return e.slice(0).sort(function(t,n){return t.y>n.y||t.y===n.y&&t.x>n.x?1:t.y===n.y&&t.x===n.x?0:-1})}function x0(e){return e.slice(0).sort(function(t,n){return t.x>n.x||t.x===n.x&&t.y>n.y?1:-1})}function GT(e,t,n,o,s){e=e||[];const a=[];Es.default.Children.forEach(t,u=>{if((u==null?void 0:u.key)==null)return;const d=Od(e,String(u.key)),h=u.props["data-grid"];d&&h==null?a.push(Ro(d)):h?a.push(Ro({...h,i:u.key})):a.push(Ro({w:1,h:1,x:0,y:Td(a),i:String(u.key)}))});const l=h0(a,{cols:n});return s?l:f0(l,o,n)}function qT(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Layout";const n=["x","y","w","h"];if(!Array.isArray(e))throw new Error(t+" must be an array!");for(let o=0,s=e.length;o<s;o++){const a=e[o];for(let l=0;l<n.length;l++){const u=n[l],d=a[u];if(typeof d!="number"||Number.isNaN(d))throw new Error(`ReactGridLayout: ${t}[${o}].${u} must be a number! Received: ${d} (${typeof d})`)}if(typeof a.i<"u"&&typeof a.i!="string")throw new Error(`ReactGridLayout: ${t}[${o}].i must be a string! Received: ${a.i} (${typeof a.i})`)}}function VT(e){const{verticalCompact:t,compactType:n}=e||{};return t===!1?null:n}function iN(){}const YT=()=>{};Qe.noop=YT;var _r={};Object.defineProperty(_r,"__esModule",{value:!0}),_r.calcGridColWidth=Tl,_r.calcGridItemPosition=XT,_r.calcGridItemWHPx=Fd,_r.calcWH=JT,_r.calcXY=KT,_r.clamp=ko;function Tl(e){const{margin:t,containerPadding:n,containerWidth:o,cols:s}=e;return(o-t[0]*(s-1)-n[0]*2)/s}function Fd(e,t,n){return Number.isFinite(e)?Math.round(t*e+Math.max(0,e-1)*n):e}function XT(e,t,n,o,s,a){const{margin:l,containerPadding:u,rowHeight:d}=e,h=Tl(e),y={};return a&&a.resizing?(y.width=Math.round(a.resizing.width),y.height=Math.round(a.resizing.height)):(y.width=Fd(o,h,l[0]),y.height=Fd(s,d,l[1])),a&&a.dragging?(y.top=Math.round(a.dragging.top),y.left=Math.round(a.dragging.left)):a&&a.resizing&&typeof a.resizing.top=="number"&&typeof a.resizing.left=="number"?(y.top=Math.round(a.resizing.top),y.left=Math.round(a.resizing.left)):(y.top=Math.round((d+l[1])*n+u[1]),y.left=Math.round((h+l[0])*t+u[0])),y}function KT(e,t,n,o,s){const{margin:a,containerPadding:l,cols:u,rowHeight:d,maxRows:h}=e,y=Tl(e);let m=Math.round((n-l[0])/(y+a[0])),b=Math.round((t-l[1])/(d+a[1]));return m=ko(m,0,u-o),b=ko(b,0,h-s),{x:m,y:b}}function JT(e,t,n,o,s,a){const{margin:l,maxRows:u,cols:d,rowHeight:h}=e,y=Tl(e);let m=Math.round((t+l[0])/(y+l[0])),b=Math.round((n+l[1])/(h+l[1])),w=ko(m,0,d-o),S=ko(b,0,u-s);return["sw","w","nw"].indexOf(a)!==-1&&(w=ko(m,0,d)),["nw","n","ne"].indexOf(a)!==-1&&(S=ko(b,0,u)),{w,h:S}}function ko(e,t,n){return Math.max(Math.min(e,n),t)}var Pl={},Ol={exports:{}},w0={};function S0(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=S0(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function C0(){for(var e,t,n=0,o="";n<arguments.length;)(e=arguments[n++])&&(t=S0(e))&&(o&&(o+=" "),o+=t);return o}const ZT=Vs(Object.freeze(Object.defineProperty({__proto__:null,clsx:C0,default:C0},Symbol.toStringTag,{value:"Module"})));var Bt={},Er={};Object.defineProperty(Er,"__esModule",{value:!0}),Er.dontSetMe=rP,Er.findInArray=QT,Er.int=nP,Er.isFunction=eP,Er.isNum=tP;function QT(e,t){for(let n=0,o=e.length;n<o;n++)if(t.apply(t,[e[n],n,e]))return e[n]}function eP(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Function]"}function tP(e){return typeof e=="number"&&!isNaN(e)}function nP(e){return parseInt(e,10)}function rP(e,t,n){if(e[t])return new Error("Invalid prop ".concat(t," passed to ").concat(n," - do not set this, set it on the child."))}var To={};Object.defineProperty(To,"__esModule",{value:!0}),To.browserPrefixToKey=E0,To.browserPrefixToStyle=oP,To.default=void 0,To.getPrefix=_0;const zd=["Moz","Webkit","O","ms"];function _0(){var e;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window>"u")return"";const n=(e=window.document)===null||e===void 0||(e=e.documentElement)===null||e===void 0?void 0:e.style;if(!n||t in n)return"";for(let o=0;o<zd.length;o++)if(E0(t,zd[o])in n)return zd[o];return""}function E0(e,t){return t?"".concat(t).concat(iP(e)):e}function oP(e,t){return t?"-".concat(t.toLowerCase(),"-").concat(e):e}function iP(e){let t="",n=!0;for(let o=0;o<e.length;o++)n?(t+=e[o].toUpperCase(),n=!1):e[o]==="-"?n=!0:t+=e[o];return t}To.default=_0(),Object.defineProperty(Bt,"__esModule",{value:!0}),Bt.addClassName=T0,Bt.addEvent=lP,Bt.addUserSelectStyles=bP,Bt.createCSSTransform=gP,Bt.createSVGTransform=mP,Bt.getTouch=yP,Bt.getTouchIdentifier=vP,Bt.getTranslation=Wd,Bt.innerHeight=fP,Bt.innerWidth=pP,Bt.matchesSelector=k0,Bt.matchesSelectorAndParentsTo=aP,Bt.offsetXYFromParent=hP,Bt.outerHeight=uP,Bt.outerWidth=dP,Bt.removeClassName=P0,Bt.removeEvent=cP,Bt.removeUserSelectStyles=xP;var An=Er,R0=sP(To);function I0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(I0=function(o){return o?n:t})(e)}function sP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=I0(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}let Al="";function k0(e,t){return Al||(Al=(0,An.findInArray)(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(n){return(0,An.isFunction)(e[n])})),(0,An.isFunction)(e[Al])?e[Al](t):!1}function aP(e,t,n){let o=e;do{if(k0(o,t))return!0;if(o===n)return!1;o=o.parentNode}while(o);return!1}function lP(e,t,n,o){if(!e)return;const s={capture:!0,...o};e.addEventListener?e.addEventListener(t,n,s):e.attachEvent?e.attachEvent("on"+t,n):e["on"+t]=n}function cP(e,t,n,o){if(!e)return;const s={capture:!0,...o};e.removeEventListener?e.removeEventListener(t,n,s):e.detachEvent?e.detachEvent("on"+t,n):e["on"+t]=null}function uP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,An.int)(n.borderTopWidth),t+=(0,An.int)(n.borderBottomWidth),t}function dP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t+=(0,An.int)(n.borderLeftWidth),t+=(0,An.int)(n.borderRightWidth),t}function fP(e){let t=e.clientHeight;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,An.int)(n.paddingTop),t-=(0,An.int)(n.paddingBottom),t}function pP(e){let t=e.clientWidth;const n=e.ownerDocument.defaultView.getComputedStyle(e);return t-=(0,An.int)(n.paddingLeft),t-=(0,An.int)(n.paddingRight),t}function hP(e,t,n){const s=t===t.ownerDocument.body?{left:0,top:0}:t.getBoundingClientRect(),a=(e.clientX+t.scrollLeft-s.left)/n,l=(e.clientY+t.scrollTop-s.top)/n;return{x:a,y:l}}function gP(e,t){const n=Wd(e,t,"px");return{[(0,R0.browserPrefixToKey)("transform",R0.default)]:n}}function mP(e,t){return Wd(e,t,"")}function Wd(e,t,n){let{x:o,y:s}=e,a="translate(".concat(o).concat(n,",").concat(s).concat(n,")");if(t){const l="".concat(typeof t.x=="string"?t.x:t.x+n),u="".concat(typeof t.y=="string"?t.y:t.y+n);a="translate(".concat(l,", ").concat(u,")")+a}return a}function yP(e,t){return e.targetTouches&&(0,An.findInArray)(e.targetTouches,n=>t===n.identifier)||e.changedTouches&&(0,An.findInArray)(e.changedTouches,n=>t===n.identifier)}function vP(e){if(e.targetTouches&&e.targetTouches[0])return e.targetTouches[0].identifier;if(e.changedTouches&&e.changedTouches[0])return e.changedTouches[0].identifier}function bP(e){if(!e)return;let t=e.getElementById("react-draggable-style-el");t||(t=e.createElement("style"),t.type="text/css",t.id="react-draggable-style-el",t.innerHTML=`.react-draggable-transparent-selection *::-moz-selection {all: inherit;}
|
|
811
914
|
`,t.innerHTML+=`.react-draggable-transparent-selection *::selection {all: inherit;}
|
|
812
|
-
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&c0(e.body,"react-draggable-transparent-selection")}function uO(e){if(e)try{if(e.body&&u0(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function c0(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function u0(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Or={};Object.defineProperty(Or,"__esModule",{value:!0}),Or.canDragX=pO,Or.canDragY=hO,Or.createCoreData=mO,Or.createDraggableData=yO,Or.getBoundPosition=dO,Or.getControlPosition=gO,Or.snapToGrid=fO;var Ln=kr,Ri=Ft;function dO(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:r}=e.props;r=typeof r=="string"?r:vO(r);const i=hf(e);if(typeof r=="string"){const{ownerDocument:a}=i,l=a.defaultView;let c;if(r==="parent"?c=i.parentNode:c=a.querySelector(r),!(c instanceof l.HTMLElement))throw new Error('Bounds selector "'+r+'" could not find an element.');const d=c,f=l.getComputedStyle(i),y=l.getComputedStyle(d);r={left:-i.offsetLeft+(0,Ln.int)(y.paddingLeft)+(0,Ln.int)(f.marginLeft),top:-i.offsetTop+(0,Ln.int)(y.paddingTop)+(0,Ln.int)(f.marginTop),right:(0,Ri.innerWidth)(d)-(0,Ri.outerWidth)(i)-i.offsetLeft+(0,Ln.int)(y.paddingRight)-(0,Ln.int)(f.marginRight),bottom:(0,Ri.innerHeight)(d)-(0,Ri.outerHeight)(i)-i.offsetTop+(0,Ln.int)(y.paddingBottom)-(0,Ln.int)(f.marginBottom)}}return(0,Ln.isNum)(r.right)&&(t=Math.min(t,r.right)),(0,Ln.isNum)(r.bottom)&&(n=Math.min(n,r.bottom)),(0,Ln.isNum)(r.left)&&(t=Math.max(t,r.left)),(0,Ln.isNum)(r.top)&&(n=Math.max(n,r.top)),[t,n]}function fO(e,t,n){const r=Math.round(t/e[0])*e[0],i=Math.round(n/e[1])*e[1];return[r,i]}function pO(e){return e.props.axis==="both"||e.props.axis==="x"}function hO(e){return e.props.axis==="both"||e.props.axis==="y"}function gO(e,t,n){const r=typeof t=="number"?(0,Ri.getTouch)(e,t):null;if(typeof t=="number"&&!r)return null;const i=hf(n),a=n.props.offsetParent||i.offsetParent||i.ownerDocument.body;return(0,Ri.offsetXYFromParent)(r||e,a,n.props.scale)}function mO(e,t,n){const r=!(0,Ln.isNum)(e.lastX),i=hf(e);return r?{node:i,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:i,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function yO(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function vO(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function hf(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var oc={},ic={};Object.defineProperty(ic,"__esModule",{value:!0}),ic.default=bO;function bO(){}Object.defineProperty(oc,"__esModule",{value:!0}),oc.default=void 0;var gf=wO(Y),En=yf(no),xO=yf(wo),dn=Ft,ao=Or,mf=kr,Ls=yf(ic);function yf(e){return e&&e.__esModule?e:{default:e}}function d0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(d0=function(r){return r?n:t})(e)}function wO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=d0(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function mn(e,t,n){return t=SO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SO(e){var t=CO(e,"string");return typeof t=="symbol"?t:String(t)}function CO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const pr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let lo=pr.mouse,sc=class extends gf.Component{constructor(){super(...arguments),mn(this,"dragging",!1),mn(this,"lastX",NaN),mn(this,"lastY",NaN),mn(this,"touchIdentifier",null),mn(this,"mounted",!1),mn(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:r}=n;if(this.props.disabled||!(t.target instanceof r.defaultView.Node)||this.props.handle&&!(0,dn.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,dn.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const i=(0,dn.getTouchIdentifier)(t);this.touchIdentifier=i;const a=(0,ao.getControlPosition)(t,i,this);if(a==null)return;const{x:l,y:c}=a,d=(0,ao.createCoreData)(this,l,c);(0,Ls.default)("DraggableCore: handleDragStart: %j",d),(0,Ls.default)("calling",this.props.onStart),!(this.props.onStart(t,d)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,dn.addUserSelectStyles)(r),this.dragging=!0,this.lastX=l,this.lastY=c,(0,dn.addEvent)(r,lo.move,this.handleDrag),(0,dn.addEvent)(r,lo.stop,this.handleDragStop))}),mn(this,"handleDrag",t=>{const n=(0,ao.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let c=r-this.lastX,d=i-this.lastY;if([c,d]=(0,ao.snapToGrid)(this.props.grid,c,d),!c&&!d)return;r=this.lastX+c,i=this.lastY+d}const a=(0,ao.createCoreData)(this,r,i);if((0,Ls.default)("DraggableCore: handleDrag: %j",a),this.props.onDrag(t,a)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(d)}return}this.lastX=r,this.lastY=i}),mn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,ao.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:r,y:i}=n;if(Array.isArray(this.props.grid)){let d=r-this.lastX||0,f=i-this.lastY||0;[d,f]=(0,ao.snapToGrid)(this.props.grid,d,f),r=this.lastX+d,i=this.lastY+f}const a=(0,ao.createCoreData)(this,r,i);if(this.props.onStop(t,a)===!1||this.mounted===!1)return!1;const c=this.findDOMNode();c&&this.props.enableUserSelectHack&&(0,dn.removeUserSelectStyles)(c.ownerDocument),(0,Ls.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,c&&((0,Ls.default)("DraggableCore: Removing handlers"),(0,dn.removeEvent)(c.ownerDocument,lo.move,this.handleDrag),(0,dn.removeEvent)(c.ownerDocument,lo.stop,this.handleDragStop))}),mn(this,"onMouseDown",t=>(lo=pr.mouse,this.handleDragStart(t))),mn(this,"onMouseUp",t=>(lo=pr.mouse,this.handleDragStop(t))),mn(this,"onTouchStart",t=>(lo=pr.touch,this.handleDragStart(t))),mn(this,"onTouchEnd",t=>(lo=pr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,dn.addEvent)(t,pr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,dn.removeEvent)(n,pr.mouse.move,this.handleDrag),(0,dn.removeEvent)(n,pr.touch.move,this.handleDrag),(0,dn.removeEvent)(n,pr.mouse.stop,this.handleDragStop),(0,dn.removeEvent)(n,pr.touch.stop,this.handleDragStop),(0,dn.removeEvent)(t,pr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,dn.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:xO.default.findDOMNode(this)}render(){return gf.cloneElement(gf.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};oc.default=sc,mn(sc,"displayName","DraggableCore"),mn(sc,"propTypes",{allowAnyClick:En.default.bool,children:En.default.node.isRequired,disabled:En.default.bool,enableUserSelectHack:En.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:En.default.arrayOf(En.default.number),handle:En.default.string,cancel:En.default.string,nodeRef:En.default.object,onStart:En.default.func,onDrag:En.default.func,onStop:En.default.func,onMouseDown:En.default.func,scale:En.default.number,className:mf.dontSetMe,style:mf.dontSetMe,transform:mf.dontSetMe}),mn(sc,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=v(Y),n=y(no),r=y(wo),i=y(W2),a=Ft,l=Or,c=kr,d=y(oc),f=y(ic);function y(O){return O&&O.__esModule?O:{default:O}}function m(O){if(typeof WeakMap!="function")return null;var P=new WeakMap,R=new WeakMap;return(m=function(M){return M?R:P})(O)}function v(O,P){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var R=m(P);if(R&&R.has(O))return R.get(O);var M={},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var $ in O)if($!=="default"&&Object.prototype.hasOwnProperty.call(O,$)){var z=D?Object.getOwnPropertyDescriptor(O,$):null;z&&(z.get||z.set)?Object.defineProperty(M,$,z):M[$]=O[$]}return M.default=O,R&&R.set(O,M),M}function w(){return w=Object.assign?Object.assign.bind():function(O){for(var P=1;P<arguments.length;P++){var R=arguments[P];for(var M in R)Object.prototype.hasOwnProperty.call(R,M)&&(O[M]=R[M])}return O},w.apply(this,arguments)}function x(O,P,R){return P=_(P),P in O?Object.defineProperty(O,P,{value:R,enumerable:!0,configurable:!0,writable:!0}):O[P]=R,O}function _(O){var P=k(O,"string");return typeof P=="symbol"?P:String(P)}function k(O,P){if(typeof O!="object"||O===null)return O;var R=O[Symbol.toPrimitive];if(R!==void 0){var M=R.call(O,P||"default");if(typeof M!="object")return M;throw new TypeError("@@toPrimitive must return a primitive value.")}return(P==="string"?String:Number)(O)}class C extends t.Component{static getDerivedStateFromProps(P,R){let{position:M}=P,{prevPropsPosition:D}=R;return M&&(!D||M.x!==D.x||M.y!==D.y)?((0,f.default)("Draggable: getDerivedStateFromProps %j",{position:M,prevPropsPosition:D}),{x:M.x,y:M.y,prevPropsPosition:{...M}}):null}constructor(P){super(P),x(this,"onDragStart",(R,M)=>{if((0,f.default)("Draggable: onDragStart: %j",M),this.props.onStart(R,(0,l.createDraggableData)(this,M))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),x(this,"onDrag",(R,M)=>{if(!this.state.dragging)return!1;(0,f.default)("Draggable: onDrag: %j",M);const D=(0,l.createDraggableData)(this,M),$={x:D.x,y:D.y,slackX:0,slackY:0};if(this.props.bounds){const{x:V,y:E}=$;$.x+=this.state.slackX,$.y+=this.state.slackY;const[G,te]=(0,l.getBoundPosition)(this,$.x,$.y);$.x=G,$.y=te,$.slackX=this.state.slackX+(V-$.x),$.slackY=this.state.slackY+(E-$.y),D.x=$.x,D.y=$.y,D.deltaX=$.x-this.state.x,D.deltaY=$.y-this.state.y}if(this.props.onDrag(R,D)===!1)return!1;this.setState($)}),x(this,"onDragStop",(R,M)=>{if(!this.state.dragging||this.props.onStop(R,(0,l.createDraggableData)(this,M))===!1)return!1;(0,f.default)("Draggable: onDragStop: %j",M);const $={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:V,y:E}=this.props.position;$.x=V,$.y=E}this.setState($)}),this.state={dragging:!1,dragged:!1,x:P.position?P.position.x:P.defaultPosition.x,y:P.position?P.position.y:P.defaultPosition.y,prevPropsPosition:{...P.position},slackX:0,slackY:0,isElementSVG:!1},P.position&&!(P.onDrag||P.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 P,R;return(P=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&P!==void 0?P:r.default.findDOMNode(this)}render(){const{axis:P,bounds:R,children:M,defaultPosition:D,defaultClassName:$,defaultClassNameDragging:z,defaultClassNameDragged:V,position:E,positionOffset:G,scale:te,...H}=this.props;let X={},ee=null;const fe=!!!E||this.state.dragging,pe=E||D,_e={x:(0,l.canDragX)(this)&&fe?this.state.x:pe.x,y:(0,l.canDragY)(this)&&fe?this.state.y:pe.y};this.state.isElementSVG?ee=(0,a.createSVGTransform)(_e,G):X=(0,a.createCSSTransform)(_e,G);const We=(0,i.default)(M.props.className||"",$,{[z]:this.state.dragging,[V]:this.state.dragged});return t.createElement(d.default,w({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only(M),{className:We,style:{...M.props.style,...X},transform:ee}))}}e.default=C,x(C,"displayName","Draggable"),x(C,"propTypes",{...d.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:c.dontSetMe,style:c.dontSetMe,transform:c.dontSetMe}),x(C,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(t0);const{default:f0,DraggableCore:_O}=t0;nc.exports=f0,nc.exports.default=f0,nc.exports.DraggableCore=_O;var p0=nc.exports,ac={exports:{}},Fs={},vf={};vf.__esModule=!0,vf.cloneElement=kO;var EO=RO(Y);function RO(e){return e&&e.__esModule?e:{default:e}}function h0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function g0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?h0(Object(n),!0).forEach(function(r){PO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function PO(e,t,n){return t=TO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function TO(e){var t=IO(e,"string");return typeof t=="symbol"?t:String(t)}function IO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kO(e,t){return t.style&&e.props.style&&(t.style=g0(g0({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),EO.default.cloneElement(e,t)}var Ns={};Ns.__esModule=!0,Ns.resizableProps=void 0;var He=OO(no);function OO(e){return e&&e.__esModule?e:{default:e}}var AO={axis:He.default.oneOf(["both","x","y","none"]),className:He.default.string,children:He.default.element.isRequired,draggableOpts:He.default.shape({allowAnyClick:He.default.bool,cancel:He.default.string,children:He.default.node,disabled:He.default.bool,enableUserSelectHack:He.default.bool,offsetParent:He.default.node,grid:He.default.arrayOf(He.default.number),handle:He.default.string,nodeRef:He.default.object,onStart:He.default.func,onDrag:He.default.func,onStop:He.default.func,onMouseDown:He.default.func,scale:He.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="y"){var a;return(a=He.default.number).isRequired.apply(a,n)}return He.default.number.apply(He.default,n)},handle:He.default.oneOfType([He.default.node,He.default.func]),handleSize:He.default.arrayOf(He.default.number),lockAspectRatio:He.default.bool,maxConstraints:He.default.arrayOf(He.default.number),minConstraints:He.default.arrayOf(He.default.number),onResizeStop:He.default.func,onResizeStart:He.default.func,onResize:He.default.func,resizeHandles:He.default.arrayOf(He.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:He.default.number,width:function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];if(i.axis==="both"||i.axis==="x"){var a;return(a=He.default.number).isRequired.apply(a,n)}return He.default.number.apply(He.default,n)}};Ns.resizableProps=AO,Fs.__esModule=!0,Fs.default=void 0;var zs=jO(Y),$O=p0,MO=vf,BO=Ns,DO=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function m0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(m0=function(i){return i?n:t})(e)}function jO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=m0(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function bf(){return bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bf.apply(this,arguments)}function LO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function y0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function xf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y0(Object(n),!0).forEach(function(r){FO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function FO(e,t,n){return t=NO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NO(e){var t=zO(e,"string");return typeof t=="symbol"?t:String(t)}function zO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function WO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,wf(e,t)}function wf(e,t){return wf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},wf(e,t)}var Sf=function(e){WO(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=e.call.apply(e,[this].concat(a))||this,r.handleRefs={},r.lastHandleRect=null,r.slack=null,r}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(i,a){var l=this.props,c=l.minConstraints,d=l.maxConstraints,f=l.lockAspectRatio;if(!c&&!d&&!f)return[i,a];if(f){var y=this.props.width/this.props.height,m=i-this.props.width,v=a-this.props.height;Math.abs(m)>Math.abs(v*y)?a=i/y:i=a*y}var w=i,x=a,_=this.slack||[0,0],k=_[0],C=_[1];return i+=k,a+=C,c&&(i=Math.max(c[0],i),a=Math.max(c[1],a)),d&&(i=Math.min(d[0],i),a=Math.min(d[1],a)),this.slack=[k+(w-i),C+(x-a)],[i,a]},n.resizeHandler=function(i,a){var l=this;return function(c,d){var f=d.node,y=d.deltaX,m=d.deltaY;i==="onResizeStart"&&l.resetData();var v=(l.props.axis==="both"||l.props.axis==="x")&&a!=="n"&&a!=="s",w=(l.props.axis==="both"||l.props.axis==="y")&&a!=="e"&&a!=="w";if(!(!v&&!w)){var x=a[0],_=a[a.length-1],k=f.getBoundingClientRect();if(l.lastHandleRect!=null){if(_==="w"){var C=k.left-l.lastHandleRect.left;y+=C}if(x==="n"){var O=k.top-l.lastHandleRect.top;m+=O}}l.lastHandleRect=k,_==="w"&&(y=-y),x==="n"&&(m=-m);var P=l.props.width+(v?y/l.props.transformScale:0),R=l.props.height+(w?m/l.props.transformScale:0),M=l.runConstraints(P,R);P=M[0],R=M[1];var D=P!==l.props.width||R!==l.props.height,$=typeof l.props[i]=="function"?l.props[i]:null,z=i==="onResize"&&!D;$&&!z&&(c.persist==null||c.persist(),$(c,{node:f,size:{width:P,height:R},handle:a})),i==="onResizeStop"&&l.resetData()}}},n.renderResizeHandle=function(i,a){var l=this.props.handle;if(!l)return zs.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+i,ref:a});if(typeof l=="function")return l(i,a);var c=typeof l.type=="string",d=xf({ref:a},c?{}:{handleAxis:i});return zs.cloneElement(l,d)},n.render=function(){var i=this,a=this.props,l=a.children,c=a.className,d=a.draggableOpts;a.width,a.height,a.handle,a.handleSize,a.lockAspectRatio,a.axis,a.minConstraints,a.maxConstraints,a.onResize,a.onResizeStop,a.onResizeStart;var f=a.resizeHandles;a.transformScale;var y=LO(a,DO);return(0,MO.cloneElement)(l,xf(xf({},y),{},{className:(c?c+" ":"")+"react-resizable",children:[].concat(l.props.children,f.map(function(m){var v,w=(v=i.handleRefs[m])!=null?v:i.handleRefs[m]=zs.createRef();return zs.createElement($O.DraggableCore,bf({},d,{nodeRef:w,key:"resizableHandle-"+m,onStop:i.resizeHandler("onResizeStop",m),onStart:i.resizeHandler("onResizeStart",m),onDrag:i.resizeHandler("onResize",m)}),i.renderResizeHandle(m,w))}))}))},t}(zs.Component);Fs.default=Sf,Sf.propTypes=BO.resizableProps,Sf.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var lc={};lc.__esModule=!0,lc.default=void 0;var Cf=VO(Y),UO=v0(no),HO=v0(Fs),GO=Ns,qO=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function v0(e){return e&&e.__esModule?e:{default:e}}function b0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(b0=function(i){return i?n:t})(e)}function VO(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=b0(t);if(n&&n.has(e))return n.get(e);var r={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function _f(){return _f=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_f.apply(this,arguments)}function x0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function cc(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?x0(Object(n),!0).forEach(function(r){KO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x0(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function KO(e,t,n){return t=YO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YO(e){var t=XO(e,"string");return typeof t=="symbol"?t:String(t)}function XO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JO(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function ZO(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Ef(e,t)}function Ef(e,t){return Ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},Ef(e,t)}var w0=function(e){ZO(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),l=0;l<i;l++)a[l]=arguments[l];return r=e.call.apply(e,[this].concat(a))||this,r.state={width:r.props.width,height:r.props.height,propsWidth:r.props.width,propsHeight:r.props.height},r.onResize=function(c,d){var f=d.size;r.props.onResize?(c.persist==null||c.persist(),r.setState(f,function(){return r.props.onResize&&r.props.onResize(c,d)})):r.setState(f)},r}t.getDerivedStateFromProps=function(i,a){return a.propsWidth!==i.width||a.propsHeight!==i.height?{width:i.width,height:i.height,propsWidth:i.width,propsHeight:i.height}:null};var n=t.prototype;return n.render=function(){var i=this.props,a=i.handle,l=i.handleSize;i.onResize;var c=i.onResizeStart,d=i.onResizeStop,f=i.draggableOpts,y=i.minConstraints,m=i.maxConstraints,v=i.lockAspectRatio,w=i.axis;i.width,i.height;var x=i.resizeHandles,_=i.style,k=i.transformScale,C=JO(i,qO);return Cf.createElement(HO.default,{axis:w,draggableOpts:f,handle:a,handleSize:l,height:this.state.height,lockAspectRatio:v,maxConstraints:m,minConstraints:y,onResizeStart:c,onResize:this.onResize,onResizeStop:d,resizeHandles:x,transformScale:k,width:this.state.width},Cf.createElement("div",_f({},C,{style:cc(cc({},_),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Cf.Component);lc.default=w0,w0.propTypes=cc(cc({},GO.resizableProps),{},{children:UO.default.element}),ac.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},ac.exports.Resizable=Fs.default,ac.exports.ResizableBox=lc.default;var QO=ac.exports,Gr={};Object.defineProperty(Gr,"__esModule",{value:!0}),Gr.resizeHandleType=Gr.resizeHandleAxesType=Gr.default=void 0;var Ye=S0(no),eA=S0(Y);function S0(e){return e&&e.__esModule?e:{default:e}}const tA=Gr.resizeHandleAxesType=Ye.default.arrayOf(Ye.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),nA=Gr.resizeHandleType=Ye.default.oneOfType([Ye.default.node,Ye.default.func]);Gr.default={className:Ye.default.string,style:Ye.default.object,width:Ye.default.number,autoSize:Ye.default.bool,cols:Ye.default.number,draggableCancel:Ye.default.string,draggableHandle:Ye.default.string,verticalCompact:function(e){e.verticalCompact},compactType:Ye.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;t!==void 0&&Qe.validateLayout(t,"layout")},margin:Ye.default.arrayOf(Ye.default.number),containerPadding:Ye.default.arrayOf(Ye.default.number),rowHeight:Ye.default.number,maxRows:Ye.default.number,isBounded:Ye.default.bool,isDraggable:Ye.default.bool,isResizable:Ye.default.bool,allowOverlap:Ye.default.bool,preventCollision:Ye.default.bool,useCSSTransforms:Ye.default.bool,transformScale:Ye.default.number,isDroppable:Ye.default.bool,resizeHandles:tA,resizeHandle:nA,onLayoutChange:Ye.default.func,onDragStart:Ye.default.func,onDrag:Ye.default.func,onDragStop:Ye.default.func,onResizeStart:Ye.default.func,onResize:Ye.default.func,onResizeStop:Ye.default.func,onDrop:Ye.default.func,droppingItem:Ye.default.shape({i:Ye.default.string.isRequired,w:Ye.default.number.isRequired,h:Ye.default.number.isRequired}),children:function(e,t){const n=e[t],r={};eA.default.Children.forEach(n,function(i){if((i==null?void 0:i.key)!=null){if(r[i.key])throw new Error('Duplicate child key "'+i.key+'" found! This will cause problems in ReactGridLayout.');r[i.key]=!0}})},innerRef:Ye.default.any},Object.defineProperty(tc,"__esModule",{value:!0}),tc.default=void 0;var Pi=Rf(Y),ut=Rf(no),rA=p0,oA=QO,Ti=Qe,rn=Ir,C0=Gr,iA=Rf(Zd);function Rf(e){return e&&e.__esModule?e:{default:e}}function Ar(e,t,n){return t=sA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sA(e){var t=aA(e,"string");return typeof t=="symbol"?t:String(t)}function aA(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class Pf extends Pi.default.Component{constructor(){super(...arguments),Ar(this,"state",{resizing:null,dragging:null,className:""}),Ar(this,"elementRef",Pi.default.createRef()),Ar(this,"onDragStart",(t,n)=>{let{node:r}=n;const{onDragStart:i,transformScale:a}=this.props;if(!i)return;const l={top:0,left:0},{offsetParent:c}=r;if(!c)return;const d=c.getBoundingClientRect(),f=r.getBoundingClientRect(),y=f.left/a,m=d.left/a,v=f.top/a,w=d.top/a;l.left=y-m+c.scrollLeft,l.top=v-w+c.scrollTop,this.setState({dragging:l});const{x,y:_}=(0,rn.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return i.call(this,this.props.i,x,_,{e:t,node:r,newPosition:l})}),Ar(this,"onDrag",(t,n)=>{let{node:r,deltaX:i,deltaY:a}=n;const{onDrag:l}=this.props;if(!l)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let c=this.state.dragging.top+a,d=this.state.dragging.left+i;const{isBounded:f,i:y,w:m,h:v,containerWidth:w}=this.props,x=this.getPositionParams();if(f){const{offsetParent:O}=r;if(O){const{margin:P,rowHeight:R,containerPadding:M}=this.props,D=O.clientHeight-(0,rn.calcGridItemWHPx)(v,R,P[1]);c=(0,rn.clamp)(c-M[1],0,D);const $=(0,rn.calcGridColWidth)(x),z=w-(0,rn.calcGridItemWHPx)(m,$,P[0]);d=(0,rn.clamp)(d-M[0],0,z)}}const _={top:c,left:d};this.setState({dragging:_});const{x:k,y:C}=(0,rn.calcXY)(x,c,d,m,v);return l.call(this,y,k,C,{e:t,node:r,newPosition:_})}),Ar(this,"onDragStop",(t,n)=>{let{node:r}=n;const{onDragStop:i}=this.props;if(!i)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:a,h:l,i:c}=this.props,{left:d,top:f}=this.state.dragging,y={top:f,left:d};this.setState({dragging:null});const{x:m,y:v}=(0,rn.calcXY)(this.getPositionParams(),f,d,a,l);return i.call(this,c,m,v,{e:t,node:r,newPosition:y})}),Ar(this,"onResizeStop",(t,n,r)=>this.onResizeHandler(t,n,r,"onResizeStop")),Ar(this,"onResizeStart",(t,n,r)=>this.onResizeHandler(t,n,r,"onResizeStart")),Ar(this,"onResize",(t,n,r)=>this.onResizeHandler(t,n,r,"onResize"))}shouldComponentUpdate(t,n){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;const r=(0,rn.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),i=(0,rn.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,n);return!(0,Ti.fastPositionEqual)(r,i)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:n}=this.props;if(!n)return;const r=this.elementRef.current;if(!r)return;const i=t.droppingPosition||{left:0,top:0},{dragging:a}=this.state,l=a&&n.left!==i.left||n.top!==i.top;if(!a)this.onDragStart(n.e,{node:r,deltaX:n.left,deltaY:n.top});else if(l){const c=n.left-a.left,d=n.top-a.top;this.onDrag(n.e,{node:r,deltaX:c,deltaY:d})}}getPositionParams(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}createStyle(t){const{usePercentages:n,containerWidth:r,useCSSTransforms:i}=this.props;let a;return i?a=(0,Ti.setTransform)(t):(a=(0,Ti.setTopLeft)(t),n&&(a.left=(0,Ti.perc)(t.left/r),a.width=(0,Ti.perc)(t.width/r))),a}mixinDraggable(t,n){return Pi.default.createElement(rA.DraggableCore,{disabled:!n,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},t)}curryResizeHandler(t,n){return(r,i)=>n(r,i,t)}mixinResizable(t,n,r){const{cols:i,minW:a,minH:l,maxW:c,maxH:d,transformScale:f,resizeHandles:y,resizeHandle:m}=this.props,v=this.getPositionParams(),w=(0,rn.calcGridItemPosition)(v,0,0,i,0).width,x=(0,rn.calcGridItemPosition)(v,0,0,a,l),_=(0,rn.calcGridItemPosition)(v,0,0,c,d),k=[x.width,x.height],C=[Math.min(_.width,w),Math.min(_.height,1/0)];return Pi.default.createElement(oA.Resizable,{draggableOpts:{disabled:!r},className:r?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:k,maxConstraints:C,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:f,resizeHandles:y,handle:m},t)}onResizeHandler(t,n,r,i){let{node:a,size:l,handle:c}=n;const d=this.props[i];if(!d)return;const{x:f,y,i:m,maxH:v,minH:w,containerWidth:x}=this.props,{minW:_,maxW:k}=this.props;let C=l;a&&(C=(0,Ti.resizeItemInDirection)(c,r,l,x),this.setState({resizing:i==="onResizeStop"?null:C}));let{w:O,h:P}=(0,rn.calcWH)(this.getPositionParams(),C.width,C.height,f,y,c);O=(0,rn.clamp)(O,Math.max(_,1),k),P=(0,rn.clamp)(P,w,v),d.call(this,m,O,P,{e:t,node:a,size:C,handle:c})}render(){const{x:t,y:n,w:r,h:i,isDraggable:a,isResizable:l,droppingPosition:c,useCSSTransforms:d}=this.props,f=(0,rn.calcGridItemPosition)(this.getPositionParams(),t,n,r,i,this.state),y=Pi.default.Children.only(this.props.children);let m=Pi.default.cloneElement(y,{ref:this.elementRef,className:(0,iA.default)("react-grid-item",y.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!c,cssTransforms:d}),style:{...this.props.style,...y.props.style,...this.createStyle(f)}});return m=this.mixinResizable(m,f,l),m=this.mixinDraggable(m,a),m}}tc.default=Pf,Ar(Pf,"propTypes",{children:ut.default.element,cols:ut.default.number.isRequired,containerWidth:ut.default.number.isRequired,rowHeight:ut.default.number.isRequired,margin:ut.default.array.isRequired,maxRows:ut.default.number.isRequired,containerPadding:ut.default.array.isRequired,x:ut.default.number.isRequired,y:ut.default.number.isRequired,w:ut.default.number.isRequired,h:ut.default.number.isRequired,minW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minWidth not Number");if(n>e.w||n>e.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxWidth not Number");if(n<e.w||n<e.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minHeight not Number");if(n>e.h||n>e.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxHeight not Number");if(n<e.h||n<e.minH)return new Error("maxHeight smaller than item height/minHeight")},i:ut.default.string.isRequired,resizeHandles:C0.resizeHandleAxesType,resizeHandle:C0.resizeHandleType,onDragStop:ut.default.func,onDragStart:ut.default.func,onDrag:ut.default.func,onResizeStop:ut.default.func,onResizeStart:ut.default.func,onResize:ut.default.func,isDraggable:ut.default.bool.isRequired,isResizable:ut.default.bool.isRequired,isBounded:ut.default.bool.isRequired,static:ut.default.bool,useCSSTransforms:ut.default.bool.isRequired,transformScale:ut.default.number,className:ut.default.string,handle:ut.default.string,cancel:ut.default.string,droppingPosition:ut.default.shape({e:ut.default.object.isRequired,left:ut.default.number.isRequired,top:ut.default.number.isRequired})}),Ar(Pf,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Object.defineProperty(Bs,"__esModule",{value:!0}),Bs.default=void 0;var Do=dA(Y),Tf=Jd,lA=If(Zd),Le=Qe,cA=Ir,_0=If(tc),uA=If(Gr);function If(e){return e&&e.__esModule?e:{default:e}}function E0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(E0=function(r){return r?n:t})(e)}function dA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=E0(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function fn(e,t,n){return t=fA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fA(e){var t=pA(e,"string");return typeof t=="symbol"?t:String(t)}function pA(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const R0="react-grid-layout";let P0=!1;try{P0=/firefox/i.test(navigator.userAgent)}catch{}class uc extends Do.Component{constructor(){super(...arguments),fn(this,"state",{activeDrag:null,layout:(0,Le.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,Le.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),fn(this,"dragEnterCounter",0),fn(this,"onDragStart",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c}=this.state,d=(0,Le.getLayoutItem)(c,t);if(!d)return;const f={w:d.w,h:d.h,x:d.x,y:d.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,Le.cloneLayoutItem)(d),oldLayout:c,activeDrag:f}),this.props.onDragStart(c,d,d,null,a,l)}),fn(this,"onDrag",(t,n,r,i)=>{let{e:a,node:l}=i;const{oldDragItem:c}=this.state;let{layout:d}=this.state;const{cols:f,allowOverlap:y,preventCollision:m}=this.props,v=(0,Le.getLayoutItem)(d,t);if(!v)return;const w={w:v.w,h:v.h,x:v.x,y:v.y,placeholder:!0,i:t};d=(0,Le.moveElement)(d,v,n,r,!0,m,(0,Le.compactType)(this.props),f,y),this.props.onDrag(d,c,v,w,a,l),this.setState({layout:y?d:(0,Le.compact)(d,(0,Le.compactType)(this.props),f),activeDrag:w})}),fn(this,"onDragStop",(t,n,r,i)=>{let{e:a,node:l}=i;if(!this.state.activeDrag)return;const{oldDragItem:c}=this.state;let{layout:d}=this.state;const{cols:f,preventCollision:y,allowOverlap:m}=this.props,v=(0,Le.getLayoutItem)(d,t);if(!v)return;d=(0,Le.moveElement)(d,v,n,r,!0,y,(0,Le.compactType)(this.props),f,m);const x=m?d:(0,Le.compact)(d,(0,Le.compactType)(this.props),f);this.props.onDragStop(x,c,v,null,a,l);const{oldLayout:_}=this.state;this.setState({activeDrag:null,layout:x,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(x,_)}),fn(this,"onResizeStart",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c}=this.state,d=(0,Le.getLayoutItem)(c,t);d&&(this.setState({oldResizeItem:(0,Le.cloneLayoutItem)(d),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(c,d,d,null,a,l))}),fn(this,"onResize",(t,n,r,i)=>{let{e:a,node:l,size:c,handle:d}=i;const{oldResizeItem:f}=this.state,{layout:y}=this.state,{cols:m,preventCollision:v,allowOverlap:w}=this.props;let x=!1,_,k,C;const[O,P]=(0,Le.withLayoutItem)(y,t,M=>{let D;return k=M.x,C=M.y,["sw","w","nw","n","ne"].indexOf(d)!==-1&&(["sw","nw","w"].indexOf(d)!==-1&&(k=M.x+(M.w-n),n=M.x!==k&&k<0?M.w:n,k=k<0?0:k),["ne","n","nw"].indexOf(d)!==-1&&(C=M.y+(M.h-r),r=M.y!==C&&C<0?M.h:r,C=C<0?0:C),x=!0),v&&!w&&(D=(0,Le.getAllCollisions)(y,{...M,w:n,h:r,x:k,y:C}).filter(z=>z.i!==M.i).length>0,D&&(C=M.y,r=M.h,k=M.x,n=M.w,x=!1)),M.w=n,M.h=r,M});if(!P)return;_=O,x&&(_=(0,Le.moveElement)(O,P,k,C,!0,this.props.preventCollision,(0,Le.compactType)(this.props),m,w));const R={w:P.w,h:P.h,x:P.x,y:P.y,static:!0,i:t};this.props.onResize(_,f,P,R,a,l),this.setState({layout:w?_:(0,Le.compact)(_,(0,Le.compactType)(this.props),m),activeDrag:R})}),fn(this,"onResizeStop",(t,n,r,i)=>{let{e:a,node:l}=i;const{layout:c,oldResizeItem:d}=this.state,{cols:f,allowOverlap:y}=this.props,m=(0,Le.getLayoutItem)(c,t),v=y?c:(0,Le.compact)(c,(0,Le.compactType)(this.props),f);this.props.onResizeStop(v,d,m,null,a,l);const{oldLayout:w}=this.state;this.setState({activeDrag:null,layout:v,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(v,w)}),fn(this,"onDragOver",t=>{var O;if(t.preventDefault(),t.stopPropagation(),P0&&!((O=t.nativeEvent.target)!=null&&O.classList.contains(R0)))return!1;const{droppingItem:n,onDropDragOver:r,margin:i,cols:a,rowHeight:l,maxRows:c,width:d,containerPadding:f,transformScale:y}=this.props,m=r==null?void 0:r(t);if(m===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const v={...n,...m},{layout:w}=this.state,x=t.currentTarget.getBoundingClientRect(),_=t.clientX-x.left,k=t.clientY-x.top,C={left:_/y,top:k/y,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:P,top:R}=this.state.droppingPosition;(P!=_||R!=k)&&this.setState({droppingPosition:C})}}else{const P={cols:a,margin:i,maxRows:c,rowHeight:l,containerWidth:d,containerPadding:f||i},R=(0,cA.calcXY)(P,k,_,v.w,v.h);this.setState({droppingDOMNode:Do.createElement("div",{key:v.i}),droppingPosition:C,layout:[...w,{...v,x:R.x,y:R.y,static:!1,isDraggable:!0}]})}}),fn(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:n}=this.props,{layout:r}=this.state,i=(0,Le.compact)(r.filter(a=>a.i!==t.i),(0,Le.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:i,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),fn(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),fn(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),fn(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:n}=this.props,{layout:r}=this.state,i=r.find(a=>a.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(r,i,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let r;return n.activeDrag?null:(!(0,Tf.deepEqual)(t.layout,n.propsLayout)||t.compactType!==n.compactType?r=t.layout:(0,Le.childrenEqual)(t.children,n.children)||(r=n.layout),r?{layout:(0,Le.synchronizeLayoutWithChildren)(r,t.children,t.cols,(0,Le.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,Le.fastRGLPropsEqual)(this.props,t,Tf.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,n){if(!this.state.activeDrag){const r=this.state.layout,i=n.layout;this.onLayoutMaybeChanged(r,i)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,Le.bottom)(this.state.layout),n=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+n*2+"px"}onLayoutMaybeChanged(t,n){n||(n=this.state.layout),(0,Tf.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:n,cols:r,margin:i,containerPadding:a,rowHeight:l,maxRows:c,useCSSTransforms:d,transformScale:f}=this.props;return Do.createElement(_0.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:n,cols:r,margin:i,containerPadding:a||i,maxRows:c,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:d,transformScale:f},Do.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;const r=(0,Le.getLayoutItem)(this.state.layout,String(t.key));if(!r)return null;const{width:i,cols:a,margin:l,containerPadding:c,rowHeight:d,maxRows:f,isDraggable:y,isResizable:m,isBounded:v,useCSSTransforms:w,transformScale:x,draggableCancel:_,draggableHandle:k,resizeHandles:C,resizeHandle:O}=this.props,{mounted:P,droppingPosition:R}=this.state,M=typeof r.isDraggable=="boolean"?r.isDraggable:!r.static&&y,D=typeof r.isResizable=="boolean"?r.isResizable:!r.static&&m,$=r.resizeHandles||C,z=M&&v&&r.isBounded!==!1;return Do.createElement(_0.default,{containerWidth:i,cols:a,margin:l,containerPadding:c||l,maxRows:f,rowHeight:d,cancel:_,handle:k,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:M,isResizable:D,isBounded:z,useCSSTransforms:w&&P,usePercentages:!P,transformScale:x,w:r.w,h:r.h,x:r.x,y:r.y,i:r.i,minH:r.minH,minW:r.minW,maxH:r.maxH,maxW:r.maxW,static:r.static,droppingPosition:n?R:void 0,resizeHandles:$,resizeHandle:O},t)}render(){const{className:t,style:n,isDroppable:r,innerRef:i}=this.props,a=(0,lA.default)(R0,t),l={height:this.containerHeight(),...n};return Do.createElement("div",{ref:i,className:a,style:l,onDrop:r?this.onDrop:Le.noop,onDragLeave:r?this.onDragLeave:Le.noop,onDragEnter:r?this.onDragEnter:Le.noop,onDragOver:r?this.onDragOver:Le.noop},Do.Children.map(this.props.children,c=>this.processGridItem(c)),r&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}Bs.default=uc,fn(uc,"displayName","ReactGridLayout"),fn(uc,"propTypes",uA.default),fn(uc,"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:Le.noop,onDragStart:Le.noop,onDrag:Le.noop,onDragStop:Le.noop,onResizeStart:Le.noop,onResize:Le.noop,onResizeStop:Le.noop,onDrop:Le.noop,onDropDragOver:Le.noop});var dc={},jo={};Object.defineProperty(jo,"__esModule",{value:!0}),jo.findOrGenerateResponsiveLayout=mA,jo.getBreakpointFromWidth=hA,jo.getColsFromBreakpoint=gA,jo.sortBreakpoints=kf;var fc=Qe;function hA(e,t){const n=kf(e);let r=n[0];for(let i=1,a=n.length;i<a;i++){const l=n[i];t>e[l]&&(r=l)}return r}function gA(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function mA(e,t,n,r,i,a){if(e[n])return(0,fc.cloneLayout)(e[n]);let l=e[r];const c=kf(t),d=c.slice(c.indexOf(n));for(let f=0,y=d.length;f<y;f++){const m=d[f];if(e[m]){l=e[m];break}}return l=(0,fc.cloneLayout)(l||[]),(0,fc.compact)((0,fc.correctBounds)(l,{cols:i}),a,i)}function kf(e){return Object.keys(e).sort(function(n,r){return e[n]-e[r]})}Object.defineProperty(dc,"__esModule",{value:!0}),dc.default=void 0;var T0=vA(Y),Rn=I0(no),Of=Jd,Ii=Qe,Lo=jo,yA=I0(Bs);function I0(e){return e&&e.__esModule?e:{default:e}}function k0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(k0=function(r){return r?n:t})(e)}function vA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=k0(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function Af(){return Af=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Af.apply(this,arguments)}function pc(e,t,n){return t=bA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bA(e){var t=xA(e,"string");return typeof t=="symbol"?t:String(t)}function xA(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const O0=e=>Object.prototype.toString.call(e);function hc(e,t){return e==null?null:Array.isArray(e)?e:e[t]}class $f extends T0.Component{constructor(){super(...arguments),pc(this,"state",this.generateInitialState()),pc(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){const{width:t,breakpoints:n,layouts:r,cols:i}=this.props,a=(0,Lo.getBreakpointFromWidth)(n,t),l=(0,Lo.getColsFromBreakpoint)(a,i),c=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,Lo.findOrGenerateResponsiveLayout)(r,n,a,a,l,c),breakpoint:a,cols:l}}static getDerivedStateFromProps(t,n){if(!(0,Of.deepEqual)(t.layouts,n.layouts)){const{breakpoint:r,cols:i}=n;return{layout:(0,Lo.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,r,r,i,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,Of.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,Of.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:n,cols:r,layouts:i,compactType:a}=this.props,l=this.props.breakpoint||(0,Lo.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),c=this.state.breakpoint,d=(0,Lo.getColsFromBreakpoint)(l,r),f={...i};if(c!==l||t.breakpoints!==n||t.cols!==r){c in f||(f[c]=(0,Ii.cloneLayout)(this.state.layout));let v=(0,Lo.findOrGenerateResponsiveLayout)(f,n,l,c,d,a);v=(0,Ii.synchronizeLayoutWithChildren)(v,this.props.children,d,a,this.props.allowOverlap),f[l]=v,this.props.onBreakpointChange(l,d),this.props.onLayoutChange(v,f),this.setState({breakpoint:l,layout:v,cols:d})}const y=hc(this.props.margin,l),m=hc(this.props.containerPadding,l);this.props.onWidthChange(this.props.width,y,d,m)}render(){const{breakpoint:t,breakpoints:n,cols:r,layouts:i,margin:a,containerPadding:l,onBreakpointChange:c,onLayoutChange:d,onWidthChange:f,...y}=this.props;return T0.createElement(yA.default,Af({},y,{margin:hc(a,this.state.breakpoint),containerPadding:hc(l,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}dc.default=$f,pc($f,"propTypes",{breakpoint:Rn.default.string,breakpoints:Rn.default.object,allowOverlap:Rn.default.bool,cols:Rn.default.object,margin:Rn.default.oneOfType([Rn.default.array,Rn.default.object]),containerPadding:Rn.default.oneOfType([Rn.default.array,Rn.default.object]),layouts(e,t){if(O0(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+O0(e[t]));Object.keys(e[t]).forEach(n=>{if(!(n in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,Ii.validateLayout)(e.layouts[n],"layouts."+n)})},width:Rn.default.number.isRequired,onBreakpointChange:Rn.default.func,onLayoutChange:Rn.default.func,onWidthChange:Rn.default.func}),pc($f,"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:Ii.noop,onLayoutChange:Ii.noop,onWidthChange:Ii.noop});var Mf={},A0=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(i,a){return i[0]===n?(r=a,!0):!1}),r}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),i=this.__entries__[r];return i&&i[1]},t.prototype.set=function(n,r){var i=e(this.__entries__,n);~i?this.__entries__[i][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,i=e(r,n);~i&&r.splice(i,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var i=0,a=this.__entries__;i<a.length;i++){var l=a[i];n.call(r,l[1],l[0])}},t}()}(),Bf=typeof window<"u"&&typeof document<"u"&&window.document===document,gc=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")()}(),wA=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(gc):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),SA=2;function CA(e,t){var n=!1,r=!1,i=0;function a(){n&&(n=!1,e()),r&&c()}function l(){wA(a)}function c(){var d=Date.now();if(n){if(d-i<SA)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=d}return c}var _A=20,EA=["top","right","bottom","left","width","height","size","weight"],RA=typeof MutationObserver<"u",PA=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=CA(this.refresh.bind(this),_A)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,r=n.indexOf(t);~r&&n.splice(r,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!Bf||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),RA?(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(){!Bf||!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(t){var n=t.propertyName,r=n===void 0?"":n,i=EA.some(function(a){return!!~r.indexOf(a)});i&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),$0=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},ki=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||gc},M0=yc(0,0,0,0);function mc(e){return parseFloat(e)||0}function B0(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,i){var a=e["border-"+i+"-width"];return r+mc(a)},0)}function TA(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],l=e["padding-"+a];n[a]=mc(l)}return n}function IA(e){var t=e.getBBox();return yc(0,0,t.width,t.height)}function kA(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return M0;var r=ki(e).getComputedStyle(e),i=TA(r),a=i.left+i.right,l=i.top+i.bottom,c=mc(r.width),d=mc(r.height);if(r.boxSizing==="border-box"&&(Math.round(c+a)!==t&&(c-=B0(r,"left","right")+a),Math.round(d+l)!==n&&(d-=B0(r,"top","bottom")+l)),!AA(e)){var f=Math.round(c+a)-t,y=Math.round(d+l)-n;Math.abs(f)!==1&&(c-=f),Math.abs(y)!==1&&(d-=y)}return yc(i.left,i.top,c,d)}var OA=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof ki(e).SVGGraphicsElement}:function(e){return e instanceof ki(e).SVGElement&&typeof e.getBBox=="function"}}();function AA(e){return e===ki(e).document.documentElement}function $A(e){return Bf?OA(e)?IA(e):kA(e):M0}function MA(e){var t=e.x,n=e.y,r=e.width,i=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return $0(l,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),l}function yc(e,t,n,r){return{x:e,y:t,width:n,height:r}}var BA=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yc(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=$A(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),DA=function(){function e(t,n){var r=MA(n);$0(this,{target:t,contentRect:r})}return e}(),jA=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new A0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=r}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ki(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new BA(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof ki(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new DA(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),D0=typeof WeakMap<"u"?new WeakMap:new A0,j0=function(){function e(t){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 n=PA.getInstance(),r=new jA(t,n,this);D0.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){j0.prototype[e]=function(){var t;return(t=D0.get(this))[e].apply(t,arguments)}});var LA=function(){return typeof gc.ResizeObserver<"u"?gc.ResizeObserver:j0}();const FA=ia(Object.freeze(Object.defineProperty({__proto__:null,default:LA},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.default=VA;var vc=UA(Y),NA=Df(no),zA=Df(FA),WA=Df(Zd);function Df(e){return e&&e.__esModule?e:{default:e}}function L0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(L0=function(r){return r?n:t})(e)}function UA(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=L0(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=i?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(r,a,l):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function jf(){return jf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jf.apply(this,arguments)}function Oi(e,t,n){return t=HA(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HA(e){var t=GA(e,"string");return typeof t=="symbol"?t:String(t)}function GA(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const qA="react-grid-layout";function VA(e){var t;return t=class extends vc.Component{constructor(){super(...arguments),Oi(this,"state",{width:1280}),Oi(this,"elementRef",vc.createRef()),Oi(this,"mounted",!1),Oi(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new zA.default(i=>{if(this.elementRef.current instanceof HTMLElement){const l=i[0].contentRect.width;this.setState({width:l})}});const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.observe(r)}componentWillUnmount(){this.mounted=!1;const r=this.elementRef.current;r instanceof HTMLElement&&this.resizeObserver.unobserve(r),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:r,...i}=this.props;return r&&!this.mounted?vc.createElement("div",{className:(0,WA.default)(this.props.className,qA),style:this.props.style,ref:this.elementRef}):vc.createElement(e,jf({innerRef:this.elementRef},i,this.state))}},Oi(t,"defaultProps",{measureBeforeMount:!1}),Oi(t,"propTypes",{measureBeforeMount:NA.default.bool}),t}(function(e){e.exports=Bs.default,e.exports.utils=Qe,e.exports.calculateUtils=Ir,e.exports.Responsive=dc.default,e.exports.Responsive.utils=jo,e.exports.WidthProvider=Mf.default})(Wy);var F0=Wy.exports;const KA=Qp(F0);class YA extends Y.Component{constructor(t){super(t),this.state={hasError:!1,message:null}}static getDerivedStateFromError(t){return{hasError:!0,message:t.stack}}render(){if(this.state.hasError&&this.props.fallbackConfig){const t=b.jsx(Nd,{componentId:this.props.componentId,message:this.state.message||"",onUndo:this.props.fallbackConfig.onUndo(this.props.componentId),onRedo:this.props.fallbackConfig.onRedo(this.props.componentId),onDelete:this.props.fallbackConfig.onDelete(this.props.componentId),onCodeEdit:this.props.fallbackConfig.onCodeEdit(this.props.componentId,this.state.message)});return this.resetState(),t}return this.props.children}resetState(){this.state={hasError:!1,message:null}}}const XA=Y.forwardRef(({style:e,className:t,onMouseDown:n,onMouseUp:r,onTouchEnd:i,children:a,component:l,componentId:c,fallbackConfig:d,controls:f},y)=>{const{selectedComponentId:m}=Bn(),[v,w]=Y.useState(!1),x=Y.useMemo(()=>m===c,[m]);return b.jsxs("div",{style:{...e},className:t+(x?" selected":""),ref:y,onMouseDown:n,onMouseUp:r,onTouchEnd:i,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[b.jsx("div",{className:"grid-item "+(x?"selected":""),children:b.jsxs(YA,{componentId:c,fallbackConfig:d,children:[v&&f,l]})}),a]})}),Lf=F0.WidthProvider(KA);var bc=(e=>(e[e.EditMode=0]="EditMode",e[e.PreviewMode=1]="PreviewMode",e))(bc||{});const JA=it.div`
|
|
915
|
+
`,e.getElementsByTagName("head")[0].appendChild(t)),e.body&&T0(e.body,"react-draggable-transparent-selection")}function xP(e){if(e)try{if(e.body&&P0(e.body,"react-draggable-transparent-selection"),e.selection)e.selection.empty();else{const t=(e.defaultView||window).getSelection();t&&t.type!=="Caret"&&t.removeAllRanges()}}catch{}}function T0(e,t){e.classList?e.classList.add(t):e.className.match(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)")))||(e.className+=" ".concat(t))}function P0(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(?:^|\\s)".concat(t,"(?!\\S)"),"g"),"")}var Rr={};Object.defineProperty(Rr,"__esModule",{value:!0}),Rr.canDragX=CP,Rr.canDragY=_P,Rr.createCoreData=RP,Rr.createDraggableData=IP,Rr.getBoundPosition=wP,Rr.getControlPosition=EP,Rr.snapToGrid=SP;var Mn=Er,bi=Bt;function wP(e,t,n){if(!e.props.bounds)return[t,n];let{bounds:o}=e.props;o=typeof o=="string"?o:kP(o);const s=Ud(e);if(typeof o=="string"){const{ownerDocument:a}=s,l=a.defaultView;let u;if(o==="parent"?u=s.parentNode:u=a.querySelector(o),!(u instanceof l.HTMLElement))throw new Error('Bounds selector "'+o+'" could not find an element.');const d=u,h=l.getComputedStyle(s),y=l.getComputedStyle(d);o={left:-s.offsetLeft+(0,Mn.int)(y.paddingLeft)+(0,Mn.int)(h.marginLeft),top:-s.offsetTop+(0,Mn.int)(y.paddingTop)+(0,Mn.int)(h.marginTop),right:(0,bi.innerWidth)(d)-(0,bi.outerWidth)(s)-s.offsetLeft+(0,Mn.int)(y.paddingRight)-(0,Mn.int)(h.marginRight),bottom:(0,bi.innerHeight)(d)-(0,bi.outerHeight)(s)-s.offsetTop+(0,Mn.int)(y.paddingBottom)-(0,Mn.int)(h.marginBottom)}}return(0,Mn.isNum)(o.right)&&(t=Math.min(t,o.right)),(0,Mn.isNum)(o.bottom)&&(n=Math.min(n,o.bottom)),(0,Mn.isNum)(o.left)&&(t=Math.max(t,o.left)),(0,Mn.isNum)(o.top)&&(n=Math.max(n,o.top)),[t,n]}function SP(e,t,n){const o=Math.round(t/e[0])*e[0],s=Math.round(n/e[1])*e[1];return[o,s]}function CP(e){return e.props.axis==="both"||e.props.axis==="x"}function _P(e){return e.props.axis==="both"||e.props.axis==="y"}function EP(e,t,n){const o=typeof t=="number"?(0,bi.getTouch)(e,t):null;if(typeof t=="number"&&!o)return null;const s=Ud(n),a=n.props.offsetParent||s.offsetParent||s.ownerDocument.body;return(0,bi.offsetXYFromParent)(o||e,a,n.props.scale)}function RP(e,t,n){const o=!(0,Mn.isNum)(e.lastX),s=Ud(e);return o?{node:s,deltaX:0,deltaY:0,lastX:t,lastY:n,x:t,y:n}:{node:s,deltaX:t-e.lastX,deltaY:n-e.lastY,lastX:e.lastX,lastY:e.lastY,x:t,y:n}}function IP(e,t){const n=e.props.scale;return{node:t.node,x:e.state.x+t.deltaX/n,y:e.state.y+t.deltaY/n,deltaX:t.deltaX/n,deltaY:t.deltaY/n,lastX:e.state.x,lastY:e.state.y}}function kP(e){return{left:e.left,top:e.top,right:e.right,bottom:e.bottom}}function Ud(e){const t=e.findDOMNode();if(!t)throw new Error("<DraggableCore>: Unmounted during event!");return t}var Ml={},$l={};Object.defineProperty($l,"__esModule",{value:!0}),$l.default=TP;function TP(){}Object.defineProperty(Ml,"__esModule",{value:!0}),Ml.default=void 0;var Hd=OP(X),wn=qd(Zr),PP=qd(mo),ln=Bt,no=Rr,Gd=Er,Is=qd($l);function qd(e){return e&&e.__esModule?e:{default:e}}function O0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(O0=function(o){return o?n:t})(e)}function OP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=O0(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function pn(e,t,n){return t=AP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AP(e){var t=MP(e,"string");return typeof t=="symbol"?t:String(t)}function MP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const lr={touch:{start:"touchstart",move:"touchmove",stop:"touchend"},mouse:{start:"mousedown",move:"mousemove",stop:"mouseup"}};let ro=lr.mouse,Dl=class extends Hd.Component{constructor(){super(...arguments),pn(this,"dragging",!1),pn(this,"lastX",NaN),pn(this,"lastY",NaN),pn(this,"touchIdentifier",null),pn(this,"mounted",!1),pn(this,"handleDragStart",t=>{if(this.props.onMouseDown(t),!this.props.allowAnyClick&&typeof t.button=="number"&&t.button!==0)return!1;const n=this.findDOMNode();if(!n||!n.ownerDocument||!n.ownerDocument.body)throw new Error("<DraggableCore> not mounted on DragStart!");const{ownerDocument:o}=n;if(this.props.disabled||!(t.target instanceof o.defaultView.Node)||this.props.handle&&!(0,ln.matchesSelectorAndParentsTo)(t.target,this.props.handle,n)||this.props.cancel&&(0,ln.matchesSelectorAndParentsTo)(t.target,this.props.cancel,n))return;t.type==="touchstart"&&t.preventDefault();const s=(0,ln.getTouchIdentifier)(t);this.touchIdentifier=s;const a=(0,no.getControlPosition)(t,s,this);if(a==null)return;const{x:l,y:u}=a,d=(0,no.createCoreData)(this,l,u);(0,Is.default)("DraggableCore: handleDragStart: %j",d),(0,Is.default)("calling",this.props.onStart),!(this.props.onStart(t,d)===!1||this.mounted===!1)&&(this.props.enableUserSelectHack&&(0,ln.addUserSelectStyles)(o),this.dragging=!0,this.lastX=l,this.lastY=u,(0,ln.addEvent)(o,ro.move,this.handleDrag),(0,ln.addEvent)(o,ro.stop,this.handleDragStop))}),pn(this,"handleDrag",t=>{const n=(0,no.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:o,y:s}=n;if(Array.isArray(this.props.grid)){let u=o-this.lastX,d=s-this.lastY;if([u,d]=(0,no.snapToGrid)(this.props.grid,u,d),!u&&!d)return;o=this.lastX+u,s=this.lastY+d}const a=(0,no.createCoreData)(this,o,s);if((0,Is.default)("DraggableCore: handleDrag: %j",a),this.props.onDrag(t,a)===!1||this.mounted===!1){try{this.handleDragStop(new MouseEvent("mouseup"))}catch{const d=document.createEvent("MouseEvents");d.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),this.handleDragStop(d)}return}this.lastX=o,this.lastY=s}),pn(this,"handleDragStop",t=>{if(!this.dragging)return;const n=(0,no.getControlPosition)(t,this.touchIdentifier,this);if(n==null)return;let{x:o,y:s}=n;if(Array.isArray(this.props.grid)){let d=o-this.lastX||0,h=s-this.lastY||0;[d,h]=(0,no.snapToGrid)(this.props.grid,d,h),o=this.lastX+d,s=this.lastY+h}const a=(0,no.createCoreData)(this,o,s);if(this.props.onStop(t,a)===!1||this.mounted===!1)return!1;const u=this.findDOMNode();u&&this.props.enableUserSelectHack&&(0,ln.removeUserSelectStyles)(u.ownerDocument),(0,Is.default)("DraggableCore: handleDragStop: %j",a),this.dragging=!1,this.lastX=NaN,this.lastY=NaN,u&&((0,Is.default)("DraggableCore: Removing handlers"),(0,ln.removeEvent)(u.ownerDocument,ro.move,this.handleDrag),(0,ln.removeEvent)(u.ownerDocument,ro.stop,this.handleDragStop))}),pn(this,"onMouseDown",t=>(ro=lr.mouse,this.handleDragStart(t))),pn(this,"onMouseUp",t=>(ro=lr.mouse,this.handleDragStop(t))),pn(this,"onTouchStart",t=>(ro=lr.touch,this.handleDragStart(t))),pn(this,"onTouchEnd",t=>(ro=lr.touch,this.handleDragStop(t)))}componentDidMount(){this.mounted=!0;const t=this.findDOMNode();t&&(0,ln.addEvent)(t,lr.touch.start,this.onTouchStart,{passive:!1})}componentWillUnmount(){this.mounted=!1;const t=this.findDOMNode();if(t){const{ownerDocument:n}=t;(0,ln.removeEvent)(n,lr.mouse.move,this.handleDrag),(0,ln.removeEvent)(n,lr.touch.move,this.handleDrag),(0,ln.removeEvent)(n,lr.mouse.stop,this.handleDragStop),(0,ln.removeEvent)(n,lr.touch.stop,this.handleDragStop),(0,ln.removeEvent)(t,lr.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,ln.removeUserSelectStyles)(n)}}findDOMNode(){var t,n;return(t=this.props)!==null&&t!==void 0&&t.nodeRef?(n=this.props)===null||n===void 0||(n=n.nodeRef)===null||n===void 0?void 0:n.current:PP.default.findDOMNode(this)}render(){return Hd.cloneElement(Hd.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}};Ml.default=Dl,pn(Dl,"displayName","DraggableCore"),pn(Dl,"propTypes",{allowAnyClick:wn.default.bool,children:wn.default.node.isRequired,disabled:wn.default.bool,enableUserSelectHack:wn.default.bool,offsetParent:function(e,t){if(e[t]&&e[t].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:wn.default.arrayOf(wn.default.number),handle:wn.default.string,cancel:wn.default.string,nodeRef:wn.default.object,onStart:wn.default.func,onDrag:wn.default.func,onStop:wn.default.func,onMouseDown:wn.default.func,scale:wn.default.number,className:Gd.dontSetMe,style:Gd.dontSetMe,transform:Gd.dontSetMe}),pn(Dl,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1}),function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return d.default}}),e.default=void 0;var t=b(X),n=y(Zr),o=y(mo),s=y(ZT),a=Bt,l=Rr,u=Er,d=y(Ml),h=y($l);function y(O){return O&&O.__esModule?O:{default:O}}function m(O){if(typeof WeakMap!="function")return null;var k=new WeakMap,R=new WeakMap;return(m=function($){return $?R:k})(O)}function b(O,k){if(O&&O.__esModule)return O;if(O===null||typeof O!="object"&&typeof O!="function")return{default:O};var R=m(k);if(R&&R.has(O))return R.get(O);var $={},B=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in O)if(M!=="default"&&Object.prototype.hasOwnProperty.call(O,M)){var z=B?Object.getOwnPropertyDescriptor(O,M):null;z&&(z.get||z.set)?Object.defineProperty($,M,z):$[M]=O[M]}return $.default=O,R&&R.set(O,$),$}function w(){return w=Object.assign?Object.assign.bind():function(O){for(var k=1;k<arguments.length;k++){var R=arguments[k];for(var $ in R)Object.prototype.hasOwnProperty.call(R,$)&&(O[$]=R[$])}return O},w.apply(this,arguments)}function S(O,k,R){return k=E(k),k in O?Object.defineProperty(O,k,{value:R,enumerable:!0,configurable:!0,writable:!0}):O[k]=R,O}function E(O){var k=P(O,"string");return typeof k=="symbol"?k:String(k)}function P(O,k){if(typeof O!="object"||O===null)return O;var R=O[Symbol.toPrimitive];if(R!==void 0){var $=R.call(O,k||"default");if(typeof $!="object")return $;throw new TypeError("@@toPrimitive must return a primitive value.")}return(k==="string"?String:Number)(O)}class C extends t.Component{static getDerivedStateFromProps(k,R){let{position:$}=k,{prevPropsPosition:B}=R;return $&&(!B||$.x!==B.x||$.y!==B.y)?((0,h.default)("Draggable: getDerivedStateFromProps %j",{position:$,prevPropsPosition:B}),{x:$.x,y:$.y,prevPropsPosition:{...$}}):null}constructor(k){super(k),S(this,"onDragStart",(R,$)=>{if((0,h.default)("Draggable: onDragStart: %j",$),this.props.onStart(R,(0,l.createDraggableData)(this,$))===!1)return!1;this.setState({dragging:!0,dragged:!0})}),S(this,"onDrag",(R,$)=>{if(!this.state.dragging)return!1;(0,h.default)("Draggable: onDrag: %j",$);const B=(0,l.createDraggableData)(this,$),M={x:B.x,y:B.y,slackX:0,slackY:0};if(this.props.bounds){const{x:V,y:_}=M;M.x+=this.state.slackX,M.y+=this.state.slackY;const[G,re]=(0,l.getBoundPosition)(this,M.x,M.y);M.x=G,M.y=re,M.slackX=this.state.slackX+(V-M.x),M.slackY=this.state.slackY+(_-M.y),B.x=M.x,B.y=M.y,B.deltaX=M.x-this.state.x,B.deltaY=M.y-this.state.y}if(this.props.onDrag(R,B)===!1)return!1;this.setState(M)}),S(this,"onDragStop",(R,$)=>{if(!this.state.dragging||this.props.onStop(R,(0,l.createDraggableData)(this,$))===!1)return!1;(0,h.default)("Draggable: onDragStop: %j",$);const M={dragging:!1,slackX:0,slackY:0};if(!!this.props.position){const{x:V,y:_}=this.props.position;M.x=V,M.y=_}this.setState(M)}),this.state={dragging:!1,dragged:!1,x:k.position?k.position.x:k.defaultPosition.x,y:k.position?k.position.y:k.defaultPosition.y,prevPropsPosition:{...k.position},slackX:0,slackY:0,isElementSVG:!1},k.position&&!(k.onDrag||k.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 k,R;return(k=(R=this.props)===null||R===void 0||(R=R.nodeRef)===null||R===void 0?void 0:R.current)!==null&&k!==void 0?k:o.default.findDOMNode(this)}render(){const{axis:k,bounds:R,children:$,defaultPosition:B,defaultClassName:M,defaultClassNameDragging:z,defaultClassNameDragged:V,position:_,positionOffset:G,scale:re,...H}=this.props;let Q={},ee=null;const pe=!!!_||this.state.dragging,he=_||B,be={x:(0,l.canDragX)(this)&&pe?this.state.x:he.x,y:(0,l.canDragY)(this)&&pe?this.state.y:he.y};this.state.isElementSVG?ee=(0,a.createSVGTransform)(be,G):Q=(0,a.createCSSTransform)(be,G);const we=(0,s.default)($.props.className||"",M,{[z]:this.state.dragging,[V]:this.state.dragged});return t.createElement(d.default,w({},H,{onStart:this.onDragStart,onDrag:this.onDrag,onStop:this.onDragStop}),t.cloneElement(t.Children.only($),{className:we,style:{...$.props.style,...Q},transform:ee}))}}e.default=C,S(C,"displayName","Draggable"),S(C,"propTypes",{...d.default.propTypes,axis:n.default.oneOf(["both","x","y","none"]),bounds:n.default.oneOfType([n.default.shape({left:n.default.number,right:n.default.number,top:n.default.number,bottom:n.default.number}),n.default.string,n.default.oneOf([!1])]),defaultClassName:n.default.string,defaultClassNameDragging:n.default.string,defaultClassNameDragged:n.default.string,defaultPosition:n.default.shape({x:n.default.number,y:n.default.number}),positionOffset:n.default.shape({x:n.default.oneOfType([n.default.number,n.default.string]),y:n.default.oneOfType([n.default.number,n.default.string])}),position:n.default.shape({x:n.default.number,y:n.default.number}),className:u.dontSetMe,style:u.dontSetMe,transform:u.dontSetMe}),S(C,"defaultProps",{...d.default.defaultProps,axis:"both",bounds:!1,defaultClassName:"react-draggable",defaultClassNameDragging:"react-draggable-dragging",defaultClassNameDragged:"react-draggable-dragged",defaultPosition:{x:0,y:0},scale:1})}(w0);const{default:A0,DraggableCore:$P}=w0;Ol.exports=A0,Ol.exports.default=A0,Ol.exports.DraggableCore=$P;var M0=Ol.exports,Bl={exports:{}},ks={},Vd={};Vd.__esModule=!0,Vd.cloneElement=FP;var DP=BP(X);function BP(e){return e&&e.__esModule?e:{default:e}}function $0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function D0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$0(Object(n),!0).forEach(function(o){LP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function LP(e,t,n){return t=jP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function jP(e){var t=NP(e,"string");return typeof t=="symbol"?t:String(t)}function NP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FP(e,t){return t.style&&e.props.style&&(t.style=D0(D0({},e.props.style),t.style)),t.className&&e.props.className&&(t.className=e.props.className+" "+t.className),DP.default.cloneElement(e,t)}var Ts={};Ts.__esModule=!0,Ts.resizableProps=void 0;var Ue=zP(Zr);function zP(e){return e&&e.__esModule?e:{default:e}}var WP={axis:Ue.default.oneOf(["both","x","y","none"]),className:Ue.default.string,children:Ue.default.element.isRequired,draggableOpts:Ue.default.shape({allowAnyClick:Ue.default.bool,cancel:Ue.default.string,children:Ue.default.node,disabled:Ue.default.bool,enableUserSelectHack:Ue.default.bool,offsetParent:Ue.default.node,grid:Ue.default.arrayOf(Ue.default.number),handle:Ue.default.string,nodeRef:Ue.default.object,onStart:Ue.default.func,onDrag:Ue.default.func,onStop:Ue.default.func,onMouseDown:Ue.default.func,scale:Ue.default.number}),height:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var s=n[0];if(s.axis==="both"||s.axis==="y"){var a;return(a=Ue.default.number).isRequired.apply(a,n)}return Ue.default.number.apply(Ue.default,n)},handle:Ue.default.oneOfType([Ue.default.node,Ue.default.func]),handleSize:Ue.default.arrayOf(Ue.default.number),lockAspectRatio:Ue.default.bool,maxConstraints:Ue.default.arrayOf(Ue.default.number),minConstraints:Ue.default.arrayOf(Ue.default.number),onResizeStop:Ue.default.func,onResizeStart:Ue.default.func,onResize:Ue.default.func,resizeHandles:Ue.default.arrayOf(Ue.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),transformScale:Ue.default.number,width:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];var s=n[0];if(s.axis==="both"||s.axis==="x"){var a;return(a=Ue.default.number).isRequired.apply(a,n)}return Ue.default.number.apply(Ue.default,n)}};Ts.resizableProps=WP,ks.__esModule=!0,ks.default=void 0;var Ps=VP(X),UP=M0,HP=Vd,GP=Ts,qP=["children","className","draggableOpts","width","height","handle","handleSize","lockAspectRatio","axis","minConstraints","maxConstraints","onResize","onResizeStop","onResizeStart","resizeHandles","transformScale"];function B0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(B0=function(s){return s?n:t})(e)}function VP(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=B0(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function Yd(){return Yd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Yd.apply(this,arguments)}function YP(e,t){if(e==null)return{};var n={},o=Object.keys(e),s,a;for(a=0;a<o.length;a++)s=o[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function L0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function Xd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?L0(Object(n),!0).forEach(function(o){XP(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function XP(e,t,n){return t=KP(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function KP(e){var t=JP(e,"string");return typeof t=="symbol"?t:String(t)}function JP(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ZP(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Kd(e,t)}function Kd(e,t){return Kd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},Kd(e,t)}var Jd=function(e){ZP(t,e);function t(){for(var o,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return o=e.call.apply(e,[this].concat(a))||this,o.handleRefs={},o.lastHandleRect=null,o.slack=null,o}var n=t.prototype;return n.componentWillUnmount=function(){this.resetData()},n.resetData=function(){this.lastHandleRect=this.slack=null},n.runConstraints=function(s,a){var l=this.props,u=l.minConstraints,d=l.maxConstraints,h=l.lockAspectRatio;if(!u&&!d&&!h)return[s,a];if(h){var y=this.props.width/this.props.height,m=s-this.props.width,b=a-this.props.height;Math.abs(m)>Math.abs(b*y)?a=s/y:s=a*y}var w=s,S=a,E=this.slack||[0,0],P=E[0],C=E[1];return s+=P,a+=C,u&&(s=Math.max(u[0],s),a=Math.max(u[1],a)),d&&(s=Math.min(d[0],s),a=Math.min(d[1],a)),this.slack=[P+(w-s),C+(S-a)],[s,a]},n.resizeHandler=function(s,a){var l=this;return function(u,d){var h=d.node,y=d.deltaX,m=d.deltaY;s==="onResizeStart"&&l.resetData();var b=(l.props.axis==="both"||l.props.axis==="x")&&a!=="n"&&a!=="s",w=(l.props.axis==="both"||l.props.axis==="y")&&a!=="e"&&a!=="w";if(!(!b&&!w)){var S=a[0],E=a[a.length-1],P=h.getBoundingClientRect();if(l.lastHandleRect!=null){if(E==="w"){var C=P.left-l.lastHandleRect.left;y+=C}if(S==="n"){var O=P.top-l.lastHandleRect.top;m+=O}}l.lastHandleRect=P,E==="w"&&(y=-y),S==="n"&&(m=-m);var k=l.props.width+(b?y/l.props.transformScale:0),R=l.props.height+(w?m/l.props.transformScale:0),$=l.runConstraints(k,R);k=$[0],R=$[1];var B=k!==l.props.width||R!==l.props.height,M=typeof l.props[s]=="function"?l.props[s]:null,z=s==="onResize"&&!B;M&&!z&&(u.persist==null||u.persist(),M(u,{node:h,size:{width:k,height:R},handle:a})),s==="onResizeStop"&&l.resetData()}}},n.renderResizeHandle=function(s,a){var l=this.props.handle;if(!l)return Ps.createElement("span",{className:"react-resizable-handle react-resizable-handle-"+s,ref:a});if(typeof l=="function")return l(s,a);var u=typeof l.type=="string",d=Xd({ref:a},u?{}:{handleAxis:s});return Ps.cloneElement(l,d)},n.render=function(){var s=this,a=this.props,l=a.children,u=a.className,d=a.draggableOpts;a.width,a.height,a.handle,a.handleSize,a.lockAspectRatio,a.axis,a.minConstraints,a.maxConstraints,a.onResize,a.onResizeStop,a.onResizeStart;var h=a.resizeHandles;a.transformScale;var y=YP(a,qP);return(0,HP.cloneElement)(l,Xd(Xd({},y),{},{className:(u?u+" ":"")+"react-resizable",children:[].concat(l.props.children,h.map(function(m){var b,w=(b=s.handleRefs[m])!=null?b:s.handleRefs[m]=Ps.createRef();return Ps.createElement(UP.DraggableCore,Yd({},d,{nodeRef:w,key:"resizableHandle-"+m,onStop:s.resizeHandler("onResizeStop",m),onStart:s.resizeHandler("onResizeStart",m),onDrag:s.resizeHandler("onResize",m)}),s.renderResizeHandle(m,w))}))}))},t}(Ps.Component);ks.default=Jd,Jd.propTypes=GP.resizableProps,Jd.defaultProps={axis:"both",handleSize:[20,20],lockAspectRatio:!1,minConstraints:[20,20],maxConstraints:[1/0,1/0],resizeHandles:["se"],transformScale:1};var Ll={};Ll.__esModule=!0,Ll.default=void 0;var Zd=r2(X),QP=j0(Zr),e2=j0(ks),t2=Ts,n2=["handle","handleSize","onResize","onResizeStart","onResizeStop","draggableOpts","minConstraints","maxConstraints","lockAspectRatio","axis","width","height","resizeHandles","style","transformScale"];function j0(e){return e&&e.__esModule?e:{default:e}}function N0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(N0=function(s){return s?n:t})(e)}function r2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=N0(t);if(n&&n.has(e))return n.get(e);var o={},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function Qd(){return Qd=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Qd.apply(this,arguments)}function F0(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,o)}return n}function jl(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?F0(Object(n),!0).forEach(function(o){o2(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F0(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function o2(e,t,n){return t=i2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i2(e){var t=s2(e,"string");return typeof t=="symbol"?t:String(t)}function s2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function a2(e,t){if(e==null)return{};var n={},o=Object.keys(e),s,a;for(a=0;a<o.length;a++)s=o[a],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function l2(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,ef(e,t)}function ef(e,t){return ef=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(o,s){return o.__proto__=s,o},ef(e,t)}var z0=function(e){l2(t,e);function t(){for(var o,s=arguments.length,a=new Array(s),l=0;l<s;l++)a[l]=arguments[l];return o=e.call.apply(e,[this].concat(a))||this,o.state={width:o.props.width,height:o.props.height,propsWidth:o.props.width,propsHeight:o.props.height},o.onResize=function(u,d){var h=d.size;o.props.onResize?(u.persist==null||u.persist(),o.setState(h,function(){return o.props.onResize&&o.props.onResize(u,d)})):o.setState(h)},o}t.getDerivedStateFromProps=function(s,a){return a.propsWidth!==s.width||a.propsHeight!==s.height?{width:s.width,height:s.height,propsWidth:s.width,propsHeight:s.height}:null};var n=t.prototype;return n.render=function(){var s=this.props,a=s.handle,l=s.handleSize;s.onResize;var u=s.onResizeStart,d=s.onResizeStop,h=s.draggableOpts,y=s.minConstraints,m=s.maxConstraints,b=s.lockAspectRatio,w=s.axis;s.width,s.height;var S=s.resizeHandles,E=s.style,P=s.transformScale,C=a2(s,n2);return Zd.createElement(e2.default,{axis:w,draggableOpts:h,handle:a,handleSize:l,height:this.state.height,lockAspectRatio:b,maxConstraints:m,minConstraints:y,onResizeStart:u,onResize:this.onResize,onResizeStop:d,resizeHandles:S,transformScale:P,width:this.state.width},Zd.createElement("div",Qd({},C,{style:jl(jl({},E),{},{width:this.state.width+"px",height:this.state.height+"px"})})))},t}(Zd.Component);Ll.default=z0,z0.propTypes=jl(jl({},t2.resizableProps),{},{children:QP.default.element}),Bl.exports=function(){throw new Error("Don't instantiate Resizable directly! Use require('react-resizable').Resizable")},Bl.exports.Resizable=ks.default,Bl.exports.ResizableBox=Ll.default;var c2=Bl.exports,zr={};Object.defineProperty(zr,"__esModule",{value:!0}),zr.resizeHandleType=zr.resizeHandleAxesType=zr.default=void 0;var Ye=W0(Zr),u2=W0(X);function W0(e){return e&&e.__esModule?e:{default:e}}const d2=zr.resizeHandleAxesType=Ye.default.arrayOf(Ye.default.oneOf(["s","w","e","n","sw","nw","se","ne"])),f2=zr.resizeHandleType=Ye.default.oneOfType([Ye.default.node,Ye.default.func]);zr.default={className:Ye.default.string,style:Ye.default.object,width:Ye.default.number,autoSize:Ye.default.bool,cols:Ye.default.number,draggableCancel:Ye.default.string,draggableHandle:Ye.default.string,verticalCompact:function(e){e.verticalCompact},compactType:Ye.default.oneOf(["vertical","horizontal"]),layout:function(e){var t=e.layout;t!==void 0&&Qe.validateLayout(t,"layout")},margin:Ye.default.arrayOf(Ye.default.number),containerPadding:Ye.default.arrayOf(Ye.default.number),rowHeight:Ye.default.number,maxRows:Ye.default.number,isBounded:Ye.default.bool,isDraggable:Ye.default.bool,isResizable:Ye.default.bool,allowOverlap:Ye.default.bool,preventCollision:Ye.default.bool,useCSSTransforms:Ye.default.bool,transformScale:Ye.default.number,isDroppable:Ye.default.bool,resizeHandles:d2,resizeHandle:f2,onLayoutChange:Ye.default.func,onDragStart:Ye.default.func,onDrag:Ye.default.func,onDragStop:Ye.default.func,onResizeStart:Ye.default.func,onResize:Ye.default.func,onResizeStop:Ye.default.func,onDrop:Ye.default.func,droppingItem:Ye.default.shape({i:Ye.default.string.isRequired,w:Ye.default.number.isRequired,h:Ye.default.number.isRequired}),children:function(e,t){const n=e[t],o={};u2.default.Children.forEach(n,function(s){if((s==null?void 0:s.key)!=null){if(o[s.key])throw new Error('Duplicate child key "'+s.key+'" found! This will cause problems in ReactGridLayout.');o[s.key]=!0}})},innerRef:Ye.default.any},Object.defineProperty(Pl,"__esModule",{value:!0}),Pl.default=void 0;var xi=tf(X),ct=tf(Zr),p2=M0,h2=c2,wi=Qe,en=_r,U0=zr,g2=tf(kd);function tf(e){return e&&e.__esModule?e:{default:e}}function Ir(e,t,n){return t=m2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m2(e){var t=y2(e,"string");return typeof t=="symbol"?t:String(t)}function y2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class nf extends xi.default.Component{constructor(){super(...arguments),Ir(this,"state",{resizing:null,dragging:null,className:""}),Ir(this,"elementRef",xi.default.createRef()),Ir(this,"onDragStart",(t,n)=>{let{node:o}=n;const{onDragStart:s,transformScale:a}=this.props;if(!s)return;const l={top:0,left:0},{offsetParent:u}=o;if(!u)return;const d=u.getBoundingClientRect(),h=o.getBoundingClientRect(),y=h.left/a,m=d.left/a,b=h.top/a,w=d.top/a;l.left=y-m+u.scrollLeft,l.top=b-w+u.scrollTop,this.setState({dragging:l});const{x:S,y:E}=(0,en.calcXY)(this.getPositionParams(),l.top,l.left,this.props.w,this.props.h);return s.call(this,this.props.i,S,E,{e:t,node:o,newPosition:l})}),Ir(this,"onDrag",(t,n)=>{let{node:o,deltaX:s,deltaY:a}=n;const{onDrag:l}=this.props;if(!l)return;if(!this.state.dragging)throw new Error("onDrag called before onDragStart.");let u=this.state.dragging.top+a,d=this.state.dragging.left+s;const{isBounded:h,i:y,w:m,h:b,containerWidth:w}=this.props,S=this.getPositionParams();if(h){const{offsetParent:O}=o;if(O){const{margin:k,rowHeight:R,containerPadding:$}=this.props,B=O.clientHeight-(0,en.calcGridItemWHPx)(b,R,k[1]);u=(0,en.clamp)(u-$[1],0,B);const M=(0,en.calcGridColWidth)(S),z=w-(0,en.calcGridItemWHPx)(m,M,k[0]);d=(0,en.clamp)(d-$[0],0,z)}}const E={top:u,left:d};this.setState({dragging:E});const{x:P,y:C}=(0,en.calcXY)(S,u,d,m,b);return l.call(this,y,P,C,{e:t,node:o,newPosition:E})}),Ir(this,"onDragStop",(t,n)=>{let{node:o}=n;const{onDragStop:s}=this.props;if(!s)return;if(!this.state.dragging)throw new Error("onDragEnd called before onDragStart.");const{w:a,h:l,i:u}=this.props,{left:d,top:h}=this.state.dragging,y={top:h,left:d};this.setState({dragging:null});const{x:m,y:b}=(0,en.calcXY)(this.getPositionParams(),h,d,a,l);return s.call(this,u,m,b,{e:t,node:o,newPosition:y})}),Ir(this,"onResizeStop",(t,n,o)=>this.onResizeHandler(t,n,o,"onResizeStop")),Ir(this,"onResizeStart",(t,n,o)=>this.onResizeHandler(t,n,o,"onResizeStart")),Ir(this,"onResize",(t,n,o)=>this.onResizeHandler(t,n,o,"onResize"))}shouldComponentUpdate(t,n){if(this.props.children!==t.children||this.props.droppingPosition!==t.droppingPosition)return!0;const o=(0,en.calcGridItemPosition)(this.getPositionParams(this.props),this.props.x,this.props.y,this.props.w,this.props.h,this.state),s=(0,en.calcGridItemPosition)(this.getPositionParams(t),t.x,t.y,t.w,t.h,n);return!(0,wi.fastPositionEqual)(o,s)||this.props.useCSSTransforms!==t.useCSSTransforms}componentDidMount(){this.moveDroppingItem({})}componentDidUpdate(t){this.moveDroppingItem(t)}moveDroppingItem(t){const{droppingPosition:n}=this.props;if(!n)return;const o=this.elementRef.current;if(!o)return;const s=t.droppingPosition||{left:0,top:0},{dragging:a}=this.state,l=a&&n.left!==s.left||n.top!==s.top;if(!a)this.onDragStart(n.e,{node:o,deltaX:n.left,deltaY:n.top});else if(l){const u=n.left-a.left,d=n.top-a.top;this.onDrag(n.e,{node:o,deltaX:u,deltaY:d})}}getPositionParams(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props;return{cols:t.cols,containerPadding:t.containerPadding,containerWidth:t.containerWidth,margin:t.margin,maxRows:t.maxRows,rowHeight:t.rowHeight}}createStyle(t){const{usePercentages:n,containerWidth:o,useCSSTransforms:s}=this.props;let a;return s?a=(0,wi.setTransform)(t):(a=(0,wi.setTopLeft)(t),n&&(a.left=(0,wi.perc)(t.left/o),a.width=(0,wi.perc)(t.width/o))),a}mixinDraggable(t,n){return xi.default.createElement(p2.DraggableCore,{disabled:!n,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},t)}curryResizeHandler(t,n){return(o,s)=>n(o,s,t)}mixinResizable(t,n,o){const{cols:s,minW:a,minH:l,maxW:u,maxH:d,transformScale:h,resizeHandles:y,resizeHandle:m}=this.props,b=this.getPositionParams(),w=(0,en.calcGridItemPosition)(b,0,0,s,0).width,S=(0,en.calcGridItemPosition)(b,0,0,a,l),E=(0,en.calcGridItemPosition)(b,0,0,u,d),P=[S.width,S.height],C=[Math.min(E.width,w),Math.min(E.height,1/0)];return xi.default.createElement(h2.Resizable,{draggableOpts:{disabled:!o},className:o?void 0:"react-resizable-hide",width:n.width,height:n.height,minConstraints:P,maxConstraints:C,onResizeStop:this.curryResizeHandler(n,this.onResizeStop),onResizeStart:this.curryResizeHandler(n,this.onResizeStart),onResize:this.curryResizeHandler(n,this.onResize),transformScale:h,resizeHandles:y,handle:m},t)}onResizeHandler(t,n,o,s){let{node:a,size:l,handle:u}=n;const d=this.props[s];if(!d)return;const{x:h,y,i:m,maxH:b,minH:w,containerWidth:S}=this.props,{minW:E,maxW:P}=this.props;let C=l;a&&(C=(0,wi.resizeItemInDirection)(u,o,l,S),this.setState({resizing:s==="onResizeStop"?null:C}));let{w:O,h:k}=(0,en.calcWH)(this.getPositionParams(),C.width,C.height,h,y,u);O=(0,en.clamp)(O,Math.max(E,1),P),k=(0,en.clamp)(k,w,b),d.call(this,m,O,k,{e:t,node:a,size:C,handle:u})}render(){const{x:t,y:n,w:o,h:s,isDraggable:a,isResizable:l,droppingPosition:u,useCSSTransforms:d}=this.props,h=(0,en.calcGridItemPosition)(this.getPositionParams(),t,n,o,s,this.state),y=xi.default.Children.only(this.props.children);let m=xi.default.cloneElement(y,{ref:this.elementRef,className:(0,g2.default)("react-grid-item",y.props.className,this.props.className,{static:this.props.static,resizing:!!this.state.resizing,"react-draggable":a,"react-draggable-dragging":!!this.state.dragging,dropping:!!u,cssTransforms:d}),style:{...this.props.style,...y.props.style,...this.createStyle(h)}});return m=this.mixinResizable(m,h,l),m=this.mixinDraggable(m,a),m}}Pl.default=nf,Ir(nf,"propTypes",{children:ct.default.element,cols:ct.default.number.isRequired,containerWidth:ct.default.number.isRequired,rowHeight:ct.default.number.isRequired,margin:ct.default.array.isRequired,maxRows:ct.default.number.isRequired,containerPadding:ct.default.array.isRequired,x:ct.default.number.isRequired,y:ct.default.number.isRequired,w:ct.default.number.isRequired,h:ct.default.number.isRequired,minW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minWidth not Number");if(n>e.w||n>e.maxW)return new Error("minWidth larger than item width/maxWidth")},maxW:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxWidth not Number");if(n<e.w||n<e.minW)return new Error("maxWidth smaller than item width/minWidth")},minH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("minHeight not Number");if(n>e.h||n>e.maxH)return new Error("minHeight larger than item height/maxHeight")},maxH:function(e,t){const n=e[t];if(typeof n!="number")return new Error("maxHeight not Number");if(n<e.h||n<e.minH)return new Error("maxHeight smaller than item height/minHeight")},i:ct.default.string.isRequired,resizeHandles:U0.resizeHandleAxesType,resizeHandle:U0.resizeHandleType,onDragStop:ct.default.func,onDragStart:ct.default.func,onDrag:ct.default.func,onResizeStop:ct.default.func,onResizeStart:ct.default.func,onResize:ct.default.func,isDraggable:ct.default.bool.isRequired,isResizable:ct.default.bool.isRequired,isBounded:ct.default.bool.isRequired,static:ct.default.bool,useCSSTransforms:ct.default.bool.isRequired,transformScale:ct.default.number,className:ct.default.string,handle:ct.default.string,cancel:ct.default.string,droppingPosition:ct.default.shape({e:ct.default.object.isRequired,left:ct.default.number.isRequired,top:ct.default.number.isRequired})}),Ir(nf,"defaultProps",{className:"",cancel:"",handle:"",minH:1,minW:1,maxH:1/0,maxW:1/0,transformScale:1}),Object.defineProperty(_s,"__esModule",{value:!0}),_s.default=void 0;var Po=w2(X),rf=Id,v2=of(kd),Ne=Qe,b2=_r,H0=of(Pl),x2=of(zr);function of(e){return e&&e.__esModule?e:{default:e}}function G0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(G0=function(o){return o?n:t})(e)}function w2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=G0(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function cn(e,t,n){return t=S2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S2(e){var t=C2(e,"string");return typeof t=="symbol"?t:String(t)}function C2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const q0="react-grid-layout";let V0=!1;try{V0=/firefox/i.test(navigator.userAgent)}catch{}class Nl extends Po.Component{constructor(){super(...arguments),cn(this,"state",{activeDrag:null,layout:(0,Ne.synchronizeLayoutWithChildren)(this.props.layout,this.props.children,this.props.cols,(0,Ne.compactType)(this.props),this.props.allowOverlap),mounted:!1,oldDragItem:null,oldLayout:null,oldResizeItem:null,resizing:!1,droppingDOMNode:null,children:[]}),cn(this,"dragEnterCounter",0),cn(this,"onDragStart",(t,n,o,s)=>{let{e:a,node:l}=s;const{layout:u}=this.state,d=(0,Ne.getLayoutItem)(u,t);if(!d)return;const h={w:d.w,h:d.h,x:d.x,y:d.y,placeholder:!0,i:t};return this.setState({oldDragItem:(0,Ne.cloneLayoutItem)(d),oldLayout:u,activeDrag:h}),this.props.onDragStart(u,d,d,null,a,l)}),cn(this,"onDrag",(t,n,o,s)=>{let{e:a,node:l}=s;const{oldDragItem:u}=this.state;let{layout:d}=this.state;const{cols:h,allowOverlap:y,preventCollision:m}=this.props,b=(0,Ne.getLayoutItem)(d,t);if(!b)return;const w={w:b.w,h:b.h,x:b.x,y:b.y,placeholder:!0,i:t};d=(0,Ne.moveElement)(d,b,n,o,!0,m,(0,Ne.compactType)(this.props),h,y),this.props.onDrag(d,u,b,w,a,l),this.setState({layout:y?d:(0,Ne.compact)(d,(0,Ne.compactType)(this.props),h),activeDrag:w})}),cn(this,"onDragStop",(t,n,o,s)=>{let{e:a,node:l}=s;if(!this.state.activeDrag)return;const{oldDragItem:u}=this.state;let{layout:d}=this.state;const{cols:h,preventCollision:y,allowOverlap:m}=this.props,b=(0,Ne.getLayoutItem)(d,t);if(!b)return;d=(0,Ne.moveElement)(d,b,n,o,!0,y,(0,Ne.compactType)(this.props),h,m);const S=m?d:(0,Ne.compact)(d,(0,Ne.compactType)(this.props),h);this.props.onDragStop(S,u,b,null,a,l);const{oldLayout:E}=this.state;this.setState({activeDrag:null,layout:S,oldDragItem:null,oldLayout:null}),this.onLayoutMaybeChanged(S,E)}),cn(this,"onResizeStart",(t,n,o,s)=>{let{e:a,node:l}=s;const{layout:u}=this.state,d=(0,Ne.getLayoutItem)(u,t);d&&(this.setState({oldResizeItem:(0,Ne.cloneLayoutItem)(d),oldLayout:this.state.layout,resizing:!0}),this.props.onResizeStart(u,d,d,null,a,l))}),cn(this,"onResize",(t,n,o,s)=>{let{e:a,node:l,size:u,handle:d}=s;const{oldResizeItem:h}=this.state,{layout:y}=this.state,{cols:m,preventCollision:b,allowOverlap:w}=this.props;let S=!1,E,P,C;const[O,k]=(0,Ne.withLayoutItem)(y,t,$=>{let B;return P=$.x,C=$.y,["sw","w","nw","n","ne"].indexOf(d)!==-1&&(["sw","nw","w"].indexOf(d)!==-1&&(P=$.x+($.w-n),n=$.x!==P&&P<0?$.w:n,P=P<0?0:P),["ne","n","nw"].indexOf(d)!==-1&&(C=$.y+($.h-o),o=$.y!==C&&C<0?$.h:o,C=C<0?0:C),S=!0),b&&!w&&(B=(0,Ne.getAllCollisions)(y,{...$,w:n,h:o,x:P,y:C}).filter(z=>z.i!==$.i).length>0,B&&(C=$.y,o=$.h,P=$.x,n=$.w,S=!1)),$.w=n,$.h=o,$});if(!k)return;E=O,S&&(E=(0,Ne.moveElement)(O,k,P,C,!0,this.props.preventCollision,(0,Ne.compactType)(this.props),m,w));const R={w:k.w,h:k.h,x:k.x,y:k.y,static:!0,i:t};this.props.onResize(E,h,k,R,a,l),this.setState({layout:w?E:(0,Ne.compact)(E,(0,Ne.compactType)(this.props),m),activeDrag:R})}),cn(this,"onResizeStop",(t,n,o,s)=>{let{e:a,node:l}=s;const{layout:u,oldResizeItem:d}=this.state,{cols:h,allowOverlap:y}=this.props,m=(0,Ne.getLayoutItem)(u,t),b=y?u:(0,Ne.compact)(u,(0,Ne.compactType)(this.props),h);this.props.onResizeStop(b,d,m,null,a,l);const{oldLayout:w}=this.state;this.setState({activeDrag:null,layout:b,oldResizeItem:null,oldLayout:null,resizing:!1}),this.onLayoutMaybeChanged(b,w)}),cn(this,"onDragOver",t=>{var O;if(t.preventDefault(),t.stopPropagation(),V0&&!((O=t.nativeEvent.target)!=null&&O.classList.contains(q0)))return!1;const{droppingItem:n,onDropDragOver:o,margin:s,cols:a,rowHeight:l,maxRows:u,width:d,containerPadding:h,transformScale:y}=this.props,m=o==null?void 0:o(t);if(m===!1)return this.state.droppingDOMNode&&this.removeDroppingPlaceholder(),!1;const b={...n,...m},{layout:w}=this.state,S=t.currentTarget.getBoundingClientRect(),E=t.clientX-S.left,P=t.clientY-S.top,C={left:E/y,top:P/y,e:t};if(this.state.droppingDOMNode){if(this.state.droppingPosition){const{left:k,top:R}=this.state.droppingPosition;(k!=E||R!=P)&&this.setState({droppingPosition:C})}}else{const k={cols:a,margin:s,maxRows:u,rowHeight:l,containerWidth:d,containerPadding:h||s},R=(0,b2.calcXY)(k,P,E,b.w,b.h);this.setState({droppingDOMNode:Po.createElement("div",{key:b.i}),droppingPosition:C,layout:[...w,{...b,x:R.x,y:R.y,static:!1,isDraggable:!0}]})}}),cn(this,"removeDroppingPlaceholder",()=>{const{droppingItem:t,cols:n}=this.props,{layout:o}=this.state,s=(0,Ne.compact)(o.filter(a=>a.i!==t.i),(0,Ne.compactType)(this.props),n,this.props.allowOverlap);this.setState({layout:s,droppingDOMNode:null,activeDrag:null,droppingPosition:void 0})}),cn(this,"onDragLeave",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter--,this.dragEnterCounter===0&&this.removeDroppingPlaceholder()}),cn(this,"onDragEnter",t=>{t.preventDefault(),t.stopPropagation(),this.dragEnterCounter++}),cn(this,"onDrop",t=>{t.preventDefault(),t.stopPropagation();const{droppingItem:n}=this.props,{layout:o}=this.state,s=o.find(a=>a.i===n.i);this.dragEnterCounter=0,this.removeDroppingPlaceholder(),this.props.onDrop(o,s,t)})}componentDidMount(){this.setState({mounted:!0}),this.onLayoutMaybeChanged(this.state.layout,this.props.layout)}static getDerivedStateFromProps(t,n){let o;return n.activeDrag?null:(!(0,rf.deepEqual)(t.layout,n.propsLayout)||t.compactType!==n.compactType?o=t.layout:(0,Ne.childrenEqual)(t.children,n.children)||(o=n.layout),o?{layout:(0,Ne.synchronizeLayoutWithChildren)(o,t.children,t.cols,(0,Ne.compactType)(t),t.allowOverlap),compactType:t.compactType,children:t.children,propsLayout:t.layout}:null)}shouldComponentUpdate(t,n){return this.props.children!==t.children||!(0,Ne.fastRGLPropsEqual)(this.props,t,rf.deepEqual)||this.state.activeDrag!==n.activeDrag||this.state.mounted!==n.mounted||this.state.droppingPosition!==n.droppingPosition}componentDidUpdate(t,n){if(!this.state.activeDrag){const o=this.state.layout,s=n.layout;this.onLayoutMaybeChanged(o,s)}}containerHeight(){if(!this.props.autoSize)return;const t=(0,Ne.bottom)(this.state.layout),n=this.props.containerPadding?this.props.containerPadding[1]:this.props.margin[1];return t*this.props.rowHeight+(t-1)*this.props.margin[1]+n*2+"px"}onLayoutMaybeChanged(t,n){n||(n=this.state.layout),(0,rf.deepEqual)(n,t)||this.props.onLayoutChange(t)}placeholder(){const{activeDrag:t}=this.state;if(!t)return null;const{width:n,cols:o,margin:s,containerPadding:a,rowHeight:l,maxRows:u,useCSSTransforms:d,transformScale:h}=this.props;return Po.createElement(H0.default,{w:t.w,h:t.h,x:t.x,y:t.y,i:t.i,className:`react-grid-placeholder ${this.state.resizing?"placeholder-resizing":""}`,containerWidth:n,cols:o,margin:s,containerPadding:a||s,maxRows:u,rowHeight:l,isDraggable:!1,isResizable:!1,isBounded:!1,useCSSTransforms:d,transformScale:h},Po.createElement("div",null))}processGridItem(t,n){if(!t||!t.key)return;const o=(0,Ne.getLayoutItem)(this.state.layout,String(t.key));if(!o)return null;const{width:s,cols:a,margin:l,containerPadding:u,rowHeight:d,maxRows:h,isDraggable:y,isResizable:m,isBounded:b,useCSSTransforms:w,transformScale:S,draggableCancel:E,draggableHandle:P,resizeHandles:C,resizeHandle:O}=this.props,{mounted:k,droppingPosition:R}=this.state,$=typeof o.isDraggable=="boolean"?o.isDraggable:!o.static&&y,B=typeof o.isResizable=="boolean"?o.isResizable:!o.static&&m,M=o.resizeHandles||C,z=$&&b&&o.isBounded!==!1;return Po.createElement(H0.default,{containerWidth:s,cols:a,margin:l,containerPadding:u||l,maxRows:h,rowHeight:d,cancel:E,handle:P,onDragStop:this.onDragStop,onDragStart:this.onDragStart,onDrag:this.onDrag,onResizeStart:this.onResizeStart,onResize:this.onResize,onResizeStop:this.onResizeStop,isDraggable:$,isResizable:B,isBounded:z,useCSSTransforms:w&&k,usePercentages:!k,transformScale:S,w:o.w,h:o.h,x:o.x,y:o.y,i:o.i,minH:o.minH,minW:o.minW,maxH:o.maxH,maxW:o.maxW,static:o.static,droppingPosition:n?R:void 0,resizeHandles:M,resizeHandle:O},t)}render(){const{className:t,style:n,isDroppable:o,innerRef:s}=this.props,a=(0,v2.default)(q0,t),l={height:this.containerHeight(),...n};return Po.createElement("div",{ref:s,className:a,style:l,onDrop:o?this.onDrop:Ne.noop,onDragLeave:o?this.onDragLeave:Ne.noop,onDragEnter:o?this.onDragEnter:Ne.noop,onDragOver:o?this.onDragOver:Ne.noop},Po.Children.map(this.props.children,u=>this.processGridItem(u)),o&&this.state.droppingDOMNode&&this.processGridItem(this.state.droppingDOMNode,!0),this.placeholder())}}_s.default=Nl,cn(Nl,"displayName","ReactGridLayout"),cn(Nl,"propTypes",x2.default),cn(Nl,"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:Ne.noop,onDragStart:Ne.noop,onDrag:Ne.noop,onDragStop:Ne.noop,onResizeStart:Ne.noop,onResize:Ne.noop,onResizeStop:Ne.noop,onDrop:Ne.noop,onDropDragOver:Ne.noop});var Fl={},Oo={};Object.defineProperty(Oo,"__esModule",{value:!0}),Oo.findOrGenerateResponsiveLayout=R2,Oo.getBreakpointFromWidth=_2,Oo.getColsFromBreakpoint=E2,Oo.sortBreakpoints=sf;var zl=Qe;function _2(e,t){const n=sf(e);let o=n[0];for(let s=1,a=n.length;s<a;s++){const l=n[s];t>e[l]&&(o=l)}return o}function E2(e,t){if(!t[e])throw new Error("ResponsiveReactGridLayout: `cols` entry for breakpoint "+e+" is missing!");return t[e]}function R2(e,t,n,o,s,a){if(e[n])return(0,zl.cloneLayout)(e[n]);let l=e[o];const u=sf(t),d=u.slice(u.indexOf(n));for(let h=0,y=d.length;h<y;h++){const m=d[h];if(e[m]){l=e[m];break}}return l=(0,zl.cloneLayout)(l||[]),(0,zl.compact)((0,zl.correctBounds)(l,{cols:s}),a,s)}function sf(e){return Object.keys(e).sort(function(n,o){return e[n]-e[o]})}Object.defineProperty(Fl,"__esModule",{value:!0}),Fl.default=void 0;var Y0=k2(X),Sn=X0(Zr),af=Id,Si=Qe,Ao=Oo,I2=X0(_s);function X0(e){return e&&e.__esModule?e:{default:e}}function K0(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(K0=function(o){return o?n:t})(e)}function k2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=K0(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function lf(){return lf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},lf.apply(this,arguments)}function Wl(e,t,n){return t=T2(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T2(e){var t=P2(e,"string");return typeof t=="symbol"?t:String(t)}function P2(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const J0=e=>Object.prototype.toString.call(e);function Ul(e,t){return e==null?null:Array.isArray(e)?e:e[t]}class cf extends Y0.Component{constructor(){super(...arguments),Wl(this,"state",this.generateInitialState()),Wl(this,"onLayoutChange",t=>{this.props.onLayoutChange(t,{...this.props.layouts,[this.state.breakpoint]:t})})}generateInitialState(){const{width:t,breakpoints:n,layouts:o,cols:s}=this.props,a=(0,Ao.getBreakpointFromWidth)(n,t),l=(0,Ao.getColsFromBreakpoint)(a,s),u=this.props.verticalCompact===!1?null:this.props.compactType;return{layout:(0,Ao.findOrGenerateResponsiveLayout)(o,n,a,a,l,u),breakpoint:a,cols:l}}static getDerivedStateFromProps(t,n){if(!(0,af.deepEqual)(t.layouts,n.layouts)){const{breakpoint:o,cols:s}=n;return{layout:(0,Ao.findOrGenerateResponsiveLayout)(t.layouts,t.breakpoints,o,o,s,t.compactType),layouts:t.layouts}}return null}componentDidUpdate(t){(this.props.width!=t.width||this.props.breakpoint!==t.breakpoint||!(0,af.deepEqual)(this.props.breakpoints,t.breakpoints)||!(0,af.deepEqual)(this.props.cols,t.cols))&&this.onWidthChange(t)}onWidthChange(t){const{breakpoints:n,cols:o,layouts:s,compactType:a}=this.props,l=this.props.breakpoint||(0,Ao.getBreakpointFromWidth)(this.props.breakpoints,this.props.width),u=this.state.breakpoint,d=(0,Ao.getColsFromBreakpoint)(l,o),h={...s};if(u!==l||t.breakpoints!==n||t.cols!==o){u in h||(h[u]=(0,Si.cloneLayout)(this.state.layout));let b=(0,Ao.findOrGenerateResponsiveLayout)(h,n,l,u,d,a);b=(0,Si.synchronizeLayoutWithChildren)(b,this.props.children,d,a,this.props.allowOverlap),h[l]=b,this.props.onBreakpointChange(l,d),this.props.onLayoutChange(b,h),this.setState({breakpoint:l,layout:b,cols:d})}const y=Ul(this.props.margin,l),m=Ul(this.props.containerPadding,l);this.props.onWidthChange(this.props.width,y,d,m)}render(){const{breakpoint:t,breakpoints:n,cols:o,layouts:s,margin:a,containerPadding:l,onBreakpointChange:u,onLayoutChange:d,onWidthChange:h,...y}=this.props;return Y0.createElement(I2.default,lf({},y,{margin:Ul(a,this.state.breakpoint),containerPadding:Ul(l,this.state.breakpoint),onLayoutChange:this.onLayoutChange,layout:this.state.layout,cols:this.state.cols}))}}Fl.default=cf,Wl(cf,"propTypes",{breakpoint:Sn.default.string,breakpoints:Sn.default.object,allowOverlap:Sn.default.bool,cols:Sn.default.object,margin:Sn.default.oneOfType([Sn.default.array,Sn.default.object]),containerPadding:Sn.default.oneOfType([Sn.default.array,Sn.default.object]),layouts(e,t){if(J0(e[t])!=="[object Object]")throw new Error("Layout property must be an object. Received: "+J0(e[t]));Object.keys(e[t]).forEach(n=>{if(!(n in e.breakpoints))throw new Error("Each key in layouts must align with a key in breakpoints.");(0,Si.validateLayout)(e.layouts[n],"layouts."+n)})},width:Sn.default.number.isRequired,onBreakpointChange:Sn.default.func,onLayoutChange:Sn.default.func,onWidthChange:Sn.default.func}),Wl(cf,"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:Si.noop,onLayoutChange:Si.noop,onWidthChange:Si.noop});var uf={},Z0=function(){if(typeof Map<"u")return Map;function e(t,n){var o=-1;return t.some(function(s,a){return s[0]===n?(o=a,!0):!1}),o}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var o=e(this.__entries__,n),s=this.__entries__[o];return s&&s[1]},t.prototype.set=function(n,o){var s=e(this.__entries__,n);~s?this.__entries__[s][1]=o:this.__entries__.push([n,o])},t.prototype.delete=function(n){var o=this.__entries__,s=e(o,n);~s&&o.splice(s,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,o){o===void 0&&(o=null);for(var s=0,a=this.__entries__;s<a.length;s++){var l=a[s];n.call(o,l[1],l[0])}},t}()}(),df=typeof window<"u"&&typeof document<"u"&&window.document===document,Hl=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")()}(),O2=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hl):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),A2=2;function M2(e,t){var n=!1,o=!1,s=0;function a(){n&&(n=!1,e()),o&&u()}function l(){O2(a)}function u(){var d=Date.now();if(n){if(d-s<A2)return;o=!0}else n=!0,o=!1,setTimeout(l,t);s=d}return u}var $2=20,D2=["top","right","bottom","left","width","height","size","weight"],B2=typeof MutationObserver<"u",L2=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=M2(this.refresh.bind(this),$2)}return e.prototype.addObserver=function(t){~this.observers_.indexOf(t)||this.observers_.push(t),this.connected_||this.connect_()},e.prototype.removeObserver=function(t){var n=this.observers_,o=n.indexOf(t);~o&&n.splice(o,1),!n.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var t=this.updateObservers_();t&&this.refresh()},e.prototype.updateObservers_=function(){var t=this.observers_.filter(function(n){return n.gatherActive(),n.hasActive()});return t.forEach(function(n){return n.broadcastActive()}),t.length>0},e.prototype.connect_=function(){!df||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B2?(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(){!df||!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(t){var n=t.propertyName,o=n===void 0?"":n,s=D2.some(function(a){return!!~o.indexOf(a)});s&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),Q0=function(e,t){for(var n=0,o=Object.keys(t);n<o.length;n++){var s=o[n];Object.defineProperty(e,s,{value:t[s],enumerable:!1,writable:!1,configurable:!0})}return e},Ci=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Hl},ey=ql(0,0,0,0);function Gl(e){return parseFloat(e)||0}function ty(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(o,s){var a=e["border-"+s+"-width"];return o+Gl(a)},0)}function j2(e){for(var t=["top","right","bottom","left"],n={},o=0,s=t;o<s.length;o++){var a=s[o],l=e["padding-"+a];n[a]=Gl(l)}return n}function N2(e){var t=e.getBBox();return ql(0,0,t.width,t.height)}function F2(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return ey;var o=Ci(e).getComputedStyle(e),s=j2(o),a=s.left+s.right,l=s.top+s.bottom,u=Gl(o.width),d=Gl(o.height);if(o.boxSizing==="border-box"&&(Math.round(u+a)!==t&&(u-=ty(o,"left","right")+a),Math.round(d+l)!==n&&(d-=ty(o,"top","bottom")+l)),!W2(e)){var h=Math.round(u+a)-t,y=Math.round(d+l)-n;Math.abs(h)!==1&&(u-=h),Math.abs(y)!==1&&(d-=y)}return ql(s.left,s.top,u,d)}var z2=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Ci(e).SVGGraphicsElement}:function(e){return e instanceof Ci(e).SVGElement&&typeof e.getBBox=="function"}}();function W2(e){return e===Ci(e).document.documentElement}function U2(e){return df?z2(e)?N2(e):F2(e):ey}function H2(e){var t=e.x,n=e.y,o=e.width,s=e.height,a=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,l=Object.create(a.prototype);return Q0(l,{x:t,y:n,width:o,height:s,top:n,right:t+o,bottom:s+n,left:t}),l}function ql(e,t,n,o){return{x:e,y:t,width:n,height:o}}var G2=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=ql(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=U2(this.target);return this.contentRect_=t,t.width!==this.broadcastWidth||t.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var t=this.contentRect_;return this.broadcastWidth=t.width,this.broadcastHeight=t.height,t},e}(),q2=function(){function e(t,n){var o=H2(n);Q0(this,{target:t,contentRect:o})}return e}(),V2=function(){function e(t,n,o){if(this.activeObservations_=[],this.observations_=new Z0,typeof t!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=t,this.controller_=n,this.callbackCtx_=o}return e.prototype.observe=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ci(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new G2(t)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(t){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(t instanceof Ci(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var t=this;this.clearActive(),this.observations_.forEach(function(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(o){return new q2(o.target,o.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),ny=typeof WeakMap<"u"?new WeakMap:new Z0,ry=function(){function e(t){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 n=L2.getInstance(),o=new V2(t,n,this);ny.set(this,o)}return e}();["observe","unobserve","disconnect"].forEach(function(e){ry.prototype[e]=function(){var t;return(t=ny.get(this))[e].apply(t,arguments)}});var Y2=function(){return typeof Hl.ResizeObserver<"u"?Hl.ResizeObserver:ry}();const X2=Vs(Object.freeze(Object.defineProperty({__proto__:null,default:Y2},Symbol.toStringTag,{value:"Module"})));Object.defineProperty(uf,"__esModule",{value:!0}),uf.default=rO;var Vl=Q2(X),K2=ff(Zr),J2=ff(X2),Z2=ff(kd);function ff(e){return e&&e.__esModule?e:{default:e}}function oy(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(oy=function(o){return o?n:t})(e)}function Q2(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=oy(t);if(n&&n.has(e))return n.get(e);var o={__proto__:null},s=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var l=s?Object.getOwnPropertyDescriptor(e,a):null;l&&(l.get||l.set)?Object.defineProperty(o,a,l):o[a]=e[a]}return o.default=e,n&&n.set(e,o),o}function pf(){return pf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},pf.apply(this,arguments)}function _i(e,t,n){return t=eO(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eO(e){var t=tO(e,"string");return typeof t=="symbol"?t:String(t)}function tO(e,t){if(typeof e!="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var o=n.call(e,t||"default");if(typeof o!="object")return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}const nO="react-grid-layout";function rO(e){var t;return t=class extends Vl.Component{constructor(){super(...arguments),_i(this,"state",{width:1280}),_i(this,"elementRef",Vl.createRef()),_i(this,"mounted",!1),_i(this,"resizeObserver",void 0)}componentDidMount(){this.mounted=!0,this.resizeObserver=new J2.default(s=>{if(this.elementRef.current instanceof HTMLElement){const l=s[0].contentRect.width;this.setState({width:l})}});const o=this.elementRef.current;o instanceof HTMLElement&&this.resizeObserver.observe(o)}componentWillUnmount(){this.mounted=!1;const o=this.elementRef.current;o instanceof HTMLElement&&this.resizeObserver.unobserve(o),this.resizeObserver.disconnect()}render(){const{measureBeforeMount:o,...s}=this.props;return o&&!this.mounted?Vl.createElement("div",{className:(0,Z2.default)(this.props.className,nO),style:this.props.style,ref:this.elementRef}):Vl.createElement(e,pf({innerRef:this.elementRef},s,this.state))}},_i(t,"defaultProps",{measureBeforeMount:!1}),_i(t,"propTypes",{measureBeforeMount:K2.default.bool}),t}(function(e){e.exports=_s.default,e.exports.utils=Qe,e.exports.calculateUtils=_r,e.exports.Responsive=Fl.default,e.exports.Responsive.utils=Oo,e.exports.WidthProvider=uf.default})(l0);var iy=l0.exports;const oO=Tp(iy);class iO extends X.Component{constructor(t){super(t),this.state={hasError:!1,message:null}}static getDerivedStateFromError(t){return{hasError:!0,message:t.stack}}render(){if(this.state.hasError&&this.props.fallbackConfig){const t=v.jsx(xd,{componentId:this.props.componentId,message:this.state.message||"",onUndo:this.props.fallbackConfig.onUndo(this.props.componentId),onRedo:this.props.fallbackConfig.onRedo(this.props.componentId),onDelete:this.props.fallbackConfig.onDelete(this.props.componentId),onCodeEdit:this.props.fallbackConfig.onCodeEdit(this.props.componentId,this.state.message)});return this.resetState(),t}return this.props.children}resetState(){this.state={hasError:!1,message:null}}}const sO=X.forwardRef(({style:e,className:t,onMouseDown:n,onMouseUp:o,onTouchEnd:s,children:a,component:l,componentId:u,fallbackConfig:d,controls:h},y)=>{const{selectedComponentId:m}=On(),[b,w]=X.useState(!1),S=X.useMemo(()=>m===u,[m]);return v.jsxs("div",{style:{...e},className:t+(S?" selected":""),ref:y,onMouseDown:n,onMouseUp:o,onTouchEnd:s,onMouseEnter:()=>w(!0),onMouseLeave:()=>w(!1),children:[v.jsx("div",{className:"grid-item "+(S?"selected":""),children:v.jsxs(iO,{componentId:u,fallbackConfig:d,children:[b&&h,l]})}),a]})}),hf=iy.WidthProvider(oO);var Yl=(e=>(e[e.EditMode=0]="EditMode",e[e.PreviewMode=1]="PreviewMode",e))(Yl||{});const aO=rt.div`
|
|
813
916
|
.react-grid-layout {
|
|
814
917
|
position: relative;
|
|
815
918
|
// transition: height 200ms ease;
|
|
@@ -857,7 +960,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
857
960
|
box-sizing: border-box;
|
|
858
961
|
cursor: se-resize;
|
|
859
962
|
}
|
|
860
|
-
`,
|
|
963
|
+
`,sy=rt.div`
|
|
861
964
|
.grid-container {
|
|
862
965
|
display: flex;
|
|
863
966
|
|
|
@@ -889,7 +992,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
889
992
|
.react-grid-drag-handle {
|
|
890
993
|
cursor: move;
|
|
891
994
|
}
|
|
892
|
-
`,
|
|
995
|
+
`,lO=e=>v.jsx(v.Fragment,{children:v.jsx(hf,{className:"layout",rowHeight:50,cols:12,compactType:null,isResizable:!1,isDraggable:!1,preventCollision:!0,layout:e.layout,children:e.components})}),cO=e=>v.jsx(v.Fragment,{children:v.jsx(hf,{className:"layout",rowHeight:50,cols:12,onLayoutChange:e.onLayoutChange,onResizeStop:e.onResize,onDrop:e.onDrop,compactType:null,preventCollision:!0,draggableCancel:".cancel-drag",layout:e.layout,isDroppable:!0,draggableHandle:".react-grid-drag-handle",onDragStop:e.onDrag,children:e.components})}),uO=rt.div`
|
|
893
996
|
display: flex;
|
|
894
997
|
flex-direction: row;
|
|
895
998
|
align-items: center;
|
|
@@ -945,7 +1048,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
945
1048
|
height: 24px;
|
|
946
1049
|
width: 24px;
|
|
947
1050
|
}
|
|
948
|
-
`,
|
|
1051
|
+
`,Mo={color:"primary.main","&:hover":{color:"secondary.main"}},gf=e=>{const{selectedComponentId:t,setSelectedComponentId:n}=On(),o=X.useMemo(()=>e.componentId===t,[t]),s=X.useCallback(()=>{n(o?"":e.componentId)},[o]);return v.jsx(v.Fragment,{children:v.jsxs(uO,{children:[v.jsx("div",{className:"control-section select-button-container",children:v.jsx(an,{size:"large",onClick:s,children:o?v.jsx(MT,{fontSize:"medium",sx:Mo}):v.jsx(AT,{fontSize:"medium",sx:Mo})})}),v.jsx("div",{className:"control-section drag-button-container",children:v.jsx(an,{size:"large",className:"react-grid-drag-handle",children:v.jsx(OT,{fontSize:"large",sx:Mo})})}),v.jsxs("div",{className:"control-section edit-button-container",children:[v.jsx(an,{size:"large",onClick:e.onCodeEdit,children:v.jsx(Xm,{fontSize:"medium",sx:Mo})}),v.jsx(an,{size:"large",onClick:e.onUndo,children:v.jsx(Jm,{fontSize:"medium",sx:Mo})}),v.jsx(an,{size:"large",onClick:()=>e.onRedo(),children:v.jsx(Zm,{fontSize:"medium",sx:Mo})}),v.jsx(an,{onClick:e.onDelete,size:"large",children:v.jsx(Km,{fontSize:"medium",sx:Mo})})]})]})})},oo=(e,t,n)=>v.jsx(sO,{component:e.component,componentId:e.id,controls:t,fallbackConfig:n},e.id),dO=()=>v.jsx(Dt,{sx:{display:"flex"},children:v.jsx(UR,{})}),fO=e=>{const{projectMetadata:t,setSyncToken:n,APIHandler:o}=On(),s=M=>()=>{let z=e.components.find(V=>V.id===M);R(V=>[...V.filter(_=>_.props.componentId!==M),oo(z,v.jsx(gf,{componentId:M,onInlineEdit:a(M),onCodeEdit:l(M),onUndo:E(M),onRedo:P(M),onDelete:S(M)}),{onDelete:S,onCodeEdit:d})])},a=M=>()=>{let z={id:M,component:v.jsx(Lk,{onClose:s(M),onSave:()=>console.log("saving")})};R(V=>[...V.filter(_=>_.props.componentId!==M),oo(z)])},l=M=>()=>{const z=`${t.projectName}/src/ProjectComponents/`,V=`${M}/component.tsx`,_=`${window.miDir}/${z}/${V}`;window.pfs.readFile(_,"utf8").then(G=>{let re=G,H={id:M,component:v.jsx(Ym,{source:re,onClose:s(M),onSave:h(t.projectName,M)})};R(Q=>[...Q.filter(ee=>ee.props.componentId!==M),oo(H)])})},u=(M,z)=>()=>{let V={id:M,component:v.jsx(xd,{componentId:M,message:z,onUndo:E(M),onRedo:P(M),onDelete:S(M),onCodeEdit:d(M,z)})};R(_=>[..._.filter(G=>G.props.componentId!==M),oo(V)])},d=(M,z)=>()=>{const V=`${t.projectName}/src/ProjectComponents/`,_=`${M}/component.tsx`,G=`${window.miDir}/${V}/${_}`;window.pfs.readFile(G,"utf8").then(re=>{let H=re,Q={id:M,component:v.jsx(Ym,{source:H,onClose:u(M,z),onSave:h(t.projectName,M)})};R(ee=>[...ee.filter(le=>le.props.componentId!==M),oo(Q)])})},h=(M,z)=>V=>{let _=M,G=z;o.updateProjectComponentSourceCode(_,G,V).then(re=>{re.status===200&&(n(),s(G)())})},y=M=>{O(M)},m=(...M)=>{const z=M[2];o.updateProjectComponentLayoutMetadata(t.projectName,z.i,vi.pick(z,["w","h","x","y"])).then(V=>{V.status===200&&n()})},b=(...M)=>{const z=M[2];o.updateProjectComponentLayoutMetadata(t.projectName,z.i,vi.pick(z,["w","h","x","y"])).then(V=>{V.status===200&&n()})},w=(M,z,V)=>{let _=JSON.parse(V.dataTransfer.getData("application/reactgridlayout")),G={id:xs(),component:v.jsx(dO,{})},re={...vi.pick(z,["x","y"]),..._.initialSize,i:G.id};switch(O(H=>[...H,re]),R(H=>[...H,oo(G,v.jsx(gf,{componentId:G.id,onInlineEdit:a(G.id),onCodeEdit:l(G.id),onUndo:E(G.id),onRedo:P(G.id),onDelete:S(G.id)}),{onDelete:S,onCodeEdit:d})]),_.type){case"ProjectComponent":o.addProjectComponent(t.projectName,"example",_.metadata.name,vi.pick(re,["x","y","w","h"])).then(H=>{H.status===200&&n()});break;case"ProjectChart":o.addProjectChart(t.projectName,_.metadata.id,vi.pick(re,["x","y","w","h"])).then(H=>{H.status===200&&n()});break;default:throw new Error(`Error: Attempt to add unknown component type '${_.type}'`)}},S=M=>()=>{R(V=>V.filter(_=>_.props.componentId!==M)),O(V=>V.filter(_=>_.id!==M));const z=`src/ProjectComponents/${M}`;o.deleteProjectFile(t.projectName,z).then(V=>{V.status===200&&n()})},E=M=>async()=>{const z=`src/ProjectComponents/${M}/component.tsx`,[V,_]=await ew(t.projectName,z);if((await o.resetProjectFile(t.projectName,z,_,!1,JSON.stringify({sourceRef:V,opType:"UNDO"}))).status!==200)throw new Error("Failed to reset project file (undo)");n()},P=M=>async()=>{const z=`src/ProjectComponents/${M}/component.tsx`,[V,_]=await tw(t.projectName,z);if((await o.resetProjectFile(t.projectName,z,_,!1,JSON.stringify({sourceRef:V,opType:"REDO"}))).status!==200)throw new Error("Failed to reset project file (redo)");n()},[C,O]=X.useState([]),[k,R]=X.useState([]),[$,B]=X.useState([]);return X.useEffect(()=>{O(e.layout)},[e.layout]),X.useEffect(()=>{let M=[];e.components.forEach(z=>{var V;if((V=z==null?void 0:z.overrides)!=null&&V.compileError){z.component=v.jsx(xd,{componentId:z.id,message:z.overrides.compileError.message,onDelete:S(z.id),onUndo:E(z.id),onRedo:P(z.id),onCodeEdit:d(z.id,z.overrides.compileError.message)}),M.push(oo(z));return}M.push(oo(z,v.jsx(gf,{componentId:z.id,onInlineEdit:a(z.id),onCodeEdit:l(z.id),onUndo:E(z.id),onRedo:P(z.id),onDelete:S(z.id)}),{onDelete:S,onCodeEdit:d}))}),R(M)},[e.components]),X.useEffect(()=>{B(e.componentLibrary)},[e.componentLibrary]),v.jsx(v.Fragment,{children:v.jsx(aO,{children:v.jsxs(sy,{children:[e.renderMode===0&&v.jsx(cO,{layout:C,components:k,onLayoutChange:y,onResize:m,onDrop:w,onDrag:b}),e.renderMode===1&&v.jsx(lO,{layout:C,components:k})]})})})},pO=e=>v.jsx(v.Fragment,{children:v.jsx(sy,{children:v.jsx(hf,{className:"layout",rowHeight:50,cols:12,compactType:null,isResizable:!1,isDraggable:!1,preventCollision:!0,layout:e.layout,children:e.components.map(t=>v.jsx("div",{className:"grid-item",children:t.component},t.id))})})}),hO=e=>{const[t,n]=X.useState(Yl.EditMode),o=s=>{n(Number(s.target.value))};return v.jsxs(v.Fragment,{children:[v.jsxs("select",{value:t,onChange:o,children:[v.jsx("option",{value:Yl.EditMode,children:"Edit Mode"}),v.jsx("option",{value:Yl.PreviewMode,children:"Preview Mode"})]}),v.jsx(fO,{renderMode:t,components:e.components,componentLibrary:e.componentLibrary,layout:e.layout})]})},gO=async e=>{let t=null,n=null;try{const o=e.replace(/import.*?;\n/g,""),s=kp.transform(o,{presets:["react","typescript"],filename:"file.tsx"}).code,a=new Blob([s],{type:"text/javascript"});t=(await import(URL.createObjectURL(a))).component}catch(o){t=null,n=o.stack}return{compileError:n,compiledComponent:t}},mO=async e=>{let t=[];const n=await e.getComponentLibrary();if(n.status!==200)throw new Error("Could not load library components");let o=(await n.json()).components;for(const s in o)if(s==="example")for(const a of o[s]){let l=a.content["component.tsx"];l=l.replace(/import.*?;\n/g,"");let u=a.content["layout.json"];const d=kp.transform(l,{presets:["react","typescript"],filename:"file.tsx"}).code,h=new Blob([d],{type:"text/javascript"}),b=(await import(URL.createObjectURL(h))).component;t.push({class:a.name,layout:JSON.parse(u),component:v.jsx(b,{})})}return t},ay=async e=>{let t=[],n=[];const o=`${window.miDir}/${e}`,s="src/ProjectComponents";let a=await Wp(`${o}/${s}`);a=a.filter(l=>!(l.includes(".gitkeep")||l.includes("index.ts")));for(const l of a){let u=`${l.replace(s,"")}`,d=`${u}/component.tsx`,h=await window.pfs.readFile(`${o}/${s}/${d}`,"utf8");const{compileError:y,compiledComponent:m}=await gO(h);let b=`${u}/layout.json`;const w=await window.pfs.readFile(`${o}/${s}/${b}`,"utf8");let S={id:l,component:null};if(y){S={...S,overrides:{compileError:{message:y}}},t.push(S),n.push({...JSON.parse(w),i:l});continue}if(u.includes("Chart")){let E=`${u}/chart_config.json`;const P=await window.pfs.readFile(`${o}/${s}/${E}`,"utf8"),C=JSON.parse(P),O=m;S.component=v.jsx(O,{chartConfig:C})}else{const E=m;S.component=v.jsx(E,{})}t.push(S),n.push({...JSON.parse(w),i:l})}return{components:t,layout:n}},yO=rt.div`
|
|
949
1052
|
display: flex;
|
|
950
1053
|
flex-direction: row;
|
|
951
1054
|
|
|
@@ -970,7 +1073,7 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
970
1073
|
overflow: auto;
|
|
971
1074
|
min-width: 350px;
|
|
972
1075
|
}
|
|
973
|
-
`,
|
|
1076
|
+
`,vO=()=>{const[e,t]=X.useState([]),[n,o]=X.useState([]),[s,a]=X.useState([]),[l,u]=X.useState(!1),{projectMetadata:d,config:h,syncToken:y,APIHandler:m}=On();return X.useEffect(()=>{mO(m).then(b=>{t(b)})},[]),X.useEffect(()=>{d.projectName&&d.projectURL&&(u(!0),Js(d.projectName,d.projectURL,h.CORS_PROXY).then(()=>{u(!1),ay(d.projectName).then(b=>{o(b.components),a(b.layout)})}))},[d,y]),v.jsx(v.Fragment,{children:v.jsxs(yO,{children:[v.jsx(bs,{isVisible:l}),v.jsxs("div",{className:"mi-container",children:[v.jsx("div",{className:"mi-workspace",style:{backgroundColor:"#6f4d80"},children:v.jsx(hO,{componentLibrary:e,components:n,layout:s})}),v.jsx("div",{className:"mi-toolspace",style:{backgroundColor:"lightgray"},children:v.jsx(PT,{componentLibrary:e})})]})]})})},bO=rt.div`
|
|
974
1077
|
.mi-container {
|
|
975
1078
|
display: flex;
|
|
976
1079
|
flex-direction: row;
|
|
@@ -989,4 +1092,4 @@ function print() { __p += __j.call(arguments, '') }
|
|
|
989
1092
|
flex-grow: 1;
|
|
990
1093
|
overflow: auto;
|
|
991
1094
|
}
|
|
992
|
-
`,
|
|
1095
|
+
`,xO=()=>{const[e,t]=X.useState([]),[n,o]=X.useState([]),[s,a]=X.useState(!1),{projectMetadata:l,config:u}=On(),d=async()=>{a(!0),await Js(l.projectName,l.projectURL,u.CORS_PROXY),a(!1),await qc(l.projectName,l.projectURL,u.CORS_PROXY),await Kx(l.projectName);const h=await ay(l.projectName);t(h.components),o(h.layout)};return X.useEffect(()=>{!l.projectName&&!l.projectURL||d()},[l.projectName,l.projectURL]),v.jsx(v.Fragment,{children:v.jsxs(bO,{children:[v.jsx(bs,{isVisible:s}),v.jsx("div",{className:"mi-container",children:v.jsx("div",{className:"mi-workspace",style:{backgroundColor:"#6f4d80"},children:v.jsx(pO,{components:e,layout:n})})})]})})},wO=()=>{typeof window<"u"&&(window.Buffer=Fp.Buffer,window.fs=new Ox("fs"),window.pfs=window.fs.promises,window.miDir="/mi")};Ot.ImageGallery=r0,Ot.MakeInfinite=vO,Ot.MiniApp=xO,Ot.ProjectProvider=Pk,Ot.getTags=qc,Ot.initializeMakeInfinite=wO,Ot.useProject=On,Object.defineProperty(Ot,Symbol.toStringTag,{value:"Module"})});
|