From dacc02665cc59169dacf74c5893878c396e36927 Mon Sep 17 00:00:00 2001 From: Spaaaacccee Date: Thu, 26 Oct 2023 12:38:57 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20path-vis?= =?UTF-8?q?ualiser/app@97e48f2d41a7fc277b98522a44dcee243dcb1f69=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...9e5cc.js => D2Renderer.worker-e26ba320.js} | 2 +- .../{index-b6b14973.js => index-4cfed331.js} | 396 +++++++++--------- index.html | 2 +- 3 files changed, 200 insertions(+), 200 deletions(-) rename assets/{D2Renderer.worker-5bd9e5cc.js => D2Renderer.worker-e26ba320.js} (99%) rename assets/{index-b6b14973.js => index-4cfed331.js} (62%) diff --git a/assets/D2Renderer.worker-5bd9e5cc.js b/assets/D2Renderer.worker-e26ba320.js similarity index 99% rename from assets/D2Renderer.worker-5bd9e5cc.js rename to assets/D2Renderer.worker-e26ba320.js index 4843938c..dd959827 100644 --- a/assets/D2Renderer.worker-5bd9e5cc.js +++ b/assets/D2Renderer.worker-e26ba320.js @@ -25,4 +25,4 @@ function print() { __p += __j.call(arguments, '') } `:`; `)+M+`return __p }`;var J=Hc(function(){return fn(h,N+"return "+M).apply(i,v)});if(J.source=M,cf(J))throw J;return J}function Ry(n){return an(n).toLowerCase()}function Oy(n){return an(n).toUpperCase()}function Iy(n,e,r){if(n=an(n),n&&(r||e===i))return Us(n);if(!n||!(e=Kn(e)))return n;var o=le(n),a=le(e),h=Ks(o,a),v=zs(o,a)+1;return Ve(o,h,v).join("")}function Fy(n,e,r){if(n=an(n),n&&(r||e===i))return n.slice(0,Vs(n)+1);if(!n||!(e=Kn(e)))return n;var o=le(n),a=zs(o,le(e))+1;return Ve(o,0,a).join("")}function Cy(n,e,r){if(n=an(n),n&&(r||e===i))return n.replace(so,"");if(!n||!(e=Kn(e)))return n;var o=le(n),a=Ks(o,le(e));return Ve(o,a).join("")}function By(n,e){var r=de,o=Ee;if(dn(e)){var a="separator"in e?e.separator:a;r="length"in e?Z(e.length):r,o="omission"in e?Kn(e.omission):o}n=an(n);var h=n.length;if(Ht(n)){var v=le(n);h=v.length}if(r>=h)return n;var _=r-Dt(o);if(_<1)return o;var x=v?Ve(v,0,_).join(""):n.slice(0,_);if(a===i)return x+o;if(v&&(_+=x.length-_),hf(a)){if(n.slice(_).search(a)){var O,I=x;for(a.global||(a=Oo(a.source,an(ps.exec(a))+"g")),a.lastIndex=0;O=a.exec(I);)var M=O.index;x=x.slice(0,M===i?_:M)}}else if(n.indexOf(Kn(a),_)!=_){var D=x.lastIndexOf(a);D>-1&&(x=x.slice(0,D))}return x+o}function Ty(n){return n=an(n),n&&Xg.test(n)?n.replace(ls,f0):n}var My=Wt(function(n,e,r){return n+(r?" ":"")+e.toUpperCase()}),df=Dl("toUpperCase");function Pc(n,e,r){return n=an(n),e=r?i:e,e===i?t0(n)?l0(n):zd(n):n.match(e)||[]}var Hc=Q(function(n,e){try{return Wn(n,i,e)}catch(r){return cf(r)?r:new k(r)}}),Ly=Be(function(n,e){return jn(e,function(r){r=be(r),Fe(n,r,sf(n[r],n))}),n});function Py(n){var e=n==null?0:n.length,r=X();return n=e?gn(n,function(o){if(typeof o[1]!="function")throw new ne(p);return[r(o[0]),o[1]]}):[],Q(function(o){for(var a=-1;++aGn)return[];var r=me,o=Tn(n,me);e=X(e),n-=me;for(var a=So(o,e);++r0||e<0)?new un(r):(n<0?r=r.takeRight(-n):n&&(r=r.drop(n)),e!==i&&(e=Z(e),r=e<0?r.dropRight(-e):r.take(e-n)),r)},un.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},un.prototype.toArray=function(){return this.take(me)},_e(un.prototype,function(n,e){var r=/^(?:filter|find|map|reject)|While$/.test(e),o=/^(?:head|last)$/.test(e),a=l[o?"take"+(e=="last"?"Right":""):e],h=o||/^find/.test(e);a&&(l.prototype[e]=function(){var v=this.__wrapped__,_=o?[1]:arguments,x=v instanceof un,O=_[0],I=x||V(v),M=function(rn){var on=a.apply(l,Xe([rn],_));return o&&D?on[0]:on};I&&r&&typeof O=="function"&&O.length!=1&&(x=I=!1);var D=this.__chain__,N=!!this.__actions__.length,W=h&&!D,J=x&&!N;if(!h&&I){v=J?v:new un(this);var U=n.apply(v,_);return U.__actions__.push({func:Di,args:[M],thisArg:i}),new ee(U,D)}return W&&J?n.apply(this,_):(U=this.thru(M),W?o?U.value()[0]:U.value():U)})}),jn(["pop","push","shift","sort","splice","unshift"],function(n){var e=si[n],r=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",o=/^(?:pop|shift)$/.test(n);l.prototype[n]=function(){var a=arguments;if(o&&!this.__chain__){var h=this.value();return e.apply(V(h)?h:[],a)}return this[r](function(v){return e.apply(V(v)?v:[],a)})}}),_e(un.prototype,function(n,e){var r=l[e];if(r){var o=r.name+"";sn.call($t,o)||($t[o]=[]),$t[o].push({name:e,func:r})}}),$t[Ci(i,B).name]=[{name:"wrapper",func:i}],un.prototype.clone=T0,un.prototype.reverse=M0,un.prototype.value=L0,l.prototype.at=sm,l.prototype.chain=lm,l.prototype.commit=cm,l.prototype.next=hm,l.prototype.plant=gm,l.prototype.reverse=dm,l.prototype.toJSON=l.prototype.valueOf=l.prototype.value=vm,l.prototype.first=l.prototype.head,_r&&(l.prototype[_r]=pm),l},qt=c0();lt?((lt.exports=qt)._=qt,vo._=qt):Fn._=qt}).call(cn)}(Mr,Mr.exports);var _n=Mr.exports,Wc=function(){},Uc=Wc(),Qe=function(t){return t!==Uc&&t!==null},Kc=Qe,zc=Array.prototype.forEach,kc=Object.create,Vc=function(t,u){var i;for(i in t)u[i]=t[i]},Af=function(t){var u=kc(null);return zc.call(arguments,function(i){Kc(i)&&Vc(Object(i),u)}),u},Zc=function(){var t=Math.sign;return typeof t!="function"?!1:t(10)===1&&t(-20)===-1},Ki,Sf;function Jc(){return Sf||(Sf=1,Ki=function(t){return t=Number(t),isNaN(t)||t===0?t:t>0?1:-1}),Ki}var Qc=Zc()?Math.sign:Jc(),jc=Qc,nh=Math.abs,eh=Math.floor,th=function(t){return isNaN(t)?0:(t=Number(t),t===0||!isFinite(t)?t:jc(t)*eh(nh(t)))},rh=th,ih=Math.max,je=function(t){return ih(0,rh(t))},uh=je,Ef=function(t,u,i){var f;return isNaN(t)?(f=u,f>=0?i&&f?f-1:f:1):t===!1?!1:uh(t)},He=function(t){if(typeof t!="function")throw new TypeError(t+" is not a function");return t},oh=Qe,yt=function(t){if(!oh(t))throw new TypeError("Cannot use null or undefined");return t},fh=He,ah=yt,sh=Function.prototype.bind,Rf=Function.prototype.call,lh=Object.keys,ch=Object.prototype.propertyIsEnumerable,hh=function(t,u){return function(i,f){var s,c=arguments[2],p=arguments[3];return i=Object(ah(i)),fh(f),s=lh(i),p&&s.sort(typeof p=="function"?sh.call(p,i):void 0),typeof t!="function"&&(t=s[t]),Rf.call(t,s,function(g,m){return ch.call(i,g)?Rf.call(f,c,i[g],g,i,m):u})}},Lr=hh("forEach"),nt={},Of={exports:{}},ph=function(){var t=Object.assign,u;return typeof t!="function"?!1:(u={foo:"raz"},t(u,{bar:"dwa"},{trzy:"trzy"}),u.foo+u.bar+u.trzy==="razdwatrzy")},zi,If;function gh(){return If||(If=1,zi=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),zi}var ki,Ff;function dh(){if(Ff)return ki;Ff=1;var t=Qe,u=Object.keys;return ki=function(i){return u(t(i)?Object(i):i)},ki}var Vi,Cf;function vh(){return Cf||(Cf=1,Vi=gh()()?Object.keys:dh()),Vi}var Zi,Bf;function mh(){if(Bf)return Zi;Bf=1;var t=vh(),u=yt,i=Math.max;return Zi=function(f,s){var c,p,g=i(arguments.length,2),m;for(f=Object(u(f)),m=function(d){try{f[d]=s[d]}catch(y){c||(c=y)}},p=1;p-1},eu}var Hh=Lh()?String.prototype.contains:Ph(),Pr=Yf,Wf=Mh,Uf=Tf,Kf=Af,kt=Hh,Dh=$f.exports=function(t,u){var i,f,s,c,p;return arguments.length<2||typeof t!="string"?(c=u,u=t,t=null):c=arguments[2],Pr(t)?(i=kt.call(t,"c"),f=kt.call(t,"e"),s=kt.call(t,"w")):(i=s=!0,f=!1),p={value:u,configurable:i,enumerable:f,writable:s},c?Uf(Kf(c),p):p};Dh.gs=function(t,u,i){var f,s,c,p;return typeof t!="string"?(c=i,i=u,u=t,t=null):c=arguments[3],Pr(u)?Wf(u)?Pr(i)?Wf(i)||(c=i,i=void 0):i=void 0:(c=u,u=i=void 0):u=void 0,Pr(t)?(f=kt.call(t,"c"),s=kt.call(t,"e")):(f=!0,s=!1),p={get:u,set:i,configurable:f,enumerable:s},c?Uf(Kf(c),p):p};var et=$f.exports,tu={exports:{}};(function(t,u){var i=et,f=He,s=Function.prototype.apply,c=Function.prototype.call,p=Object.create,g=Object.defineProperty,m=Object.defineProperties,d=Object.prototype.hasOwnProperty,y={configurable:!0,enumerable:!1,writable:!0},w,F,C,P,q,E,B;w=function(T,S){var L;return f(S),d.call(this,"__ee__")?L=this.__ee__:(L=y.value=p(null),g(this,"__ee__",y),y.value=null),L[T]?typeof L[T]=="object"?L[T].push(S):L[T]=[L[T],S]:L[T]=S,this},F=function(T,S){var L,H;return f(S),H=this,w.call(this,T,L=function(){C.call(H,T,L),s.call(S,this,arguments)}),L.__eeOnceListener__=S,this},C=function(T,S){var L,H,$,K;if(f(S),!d.call(this,"__ee__"))return this;if(L=this.__ee__,!L[T])return this;if(H=L[T],typeof H=="object")for(K=0;$=H[K];++K)($===S||$.__eeOnceListener__===S)&&(H.length===2?L[T]=H[K?0:1]:H.splice(K,1));else(H===S||H.__eeOnceListener__===S)&&delete L[T];return this},P=function(T){var S,L,H,$,K;if(d.call(this,"__ee__")&&($=this.__ee__[T],!!$))if(typeof $=="object"){for(L=arguments.length,K=new Array(L-1),S=1;S=55296&&L<=56319&&(nn+=F[++E])),nn=C?d.call(C,P,nn,B):nn,q?(y.value=nn,w(T,B,y)):T[B]=nn,++B;S=B}}if(S===void 0)for(S=f(F.length),q&&(T=new q(S)),E=0;E=0?y=p(y):y=u(this.length)-p(c(y)),m=y;m"}},Nu}var $u,Ha;function Tp(){if(Ha)return $u;Ha=1;var t=Bp(),u=/[\n\r\u2028\u2029]/g;return $u=function(i){var f=t(i);return f.length>100&&(f=f.slice(0,99)+"…"),f=f.replace(u,function(s){return JSON.stringify(s).slice(1,-1)}),f},$u}var Nr={exports:{}},Da;function qa(){if(Da)return Nr.exports;Da=1,Nr.exports=t,Nr.exports.default=t;function t(u){return!!u&&(typeof u=="object"||typeof u=="function")&&typeof u.then=="function"}return Nr.exports}var Ga;function Mp(){if(Ga)return Fa;Ga=1;var t=Ra(),u=Ip(),i=Cp(),f=Tp(),s=qa(),c=Pu(),p=Object.create,g=u("then","then:finally","done","done:finally");return nt.promise=function(m,d){var y=p(null),w=p(null),F=p(null);if(m===!0)m=null;else if(m=i(m),!g[m])throw new TypeError("'"+f(m)+"' is not valid promise mode");d.on("set",function(C,P,q){var E=!1;if(!s(q)){w[C]=q,d.emit("setasync",C,1);return}y[C]=1,F[C]=q;var B=function(H){var $=y[C];if(E)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);$&&(delete y[C],w[C]=H,d.emit("setasync",C,$))},T=function(){E=!0,y[C]&&(delete y[C],delete F[C],d.delete(C))},S=m;if(S||(S="then"),S==="then"){var L=function(){c(T)};q=q.then(function(H){c(B.bind(this,H))},L),typeof q.finally=="function"&&q.finally(L)}else if(S==="done"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");q.done(B,T)}else if(S==="done:finally"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof q.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");q.done(B),q.finally(T)}}),d.on("get",function(C,P,q){var E;if(y[C]){++y[C];return}E=F[C];var B=function(){d.emit("getasync",C,P,q)};s(E)?typeof E.done=="function"?E.done(B):E.then(function(){c(B)}):B()}),d.on("delete",function(C){if(delete F[C],y[C]){delete y[C];return}if(hasOwnProperty.call(w,C)){var P=w[C];delete w[C],d.emit("deleteasync",C,[P])}}),d.on("clear",function(){var C=w;w=p(null),y=p(null),F=p(null),d.emit("clearasync",t(C,function(P){return[P]}))})},Fa}var Na={},$a;function Lp(){if($a)return Na;$a=1;var t=He,u=Lr,i=nt,f=Function.prototype.apply;return i.dispose=function(s,c,p){var g;if(t(s),p.async&&i.async||p.promise&&i.promise){c.on("deleteasync",g=function(m,d){f.call(s,null,d)}),c.on("clearasync",function(m){u(m,function(d,y){g(y,d)})});return}c.on("delete",g=function(m,d){s(d)}),c.on("clear",function(m){u(m,function(d,y){g(y,d)})})},Na}var Ya={},Yu,Xa;function Pp(){return Xa||(Xa=1,Yu=2147483647),Yu}var Xu,Wa;function Hp(){if(Wa)return Xu;Wa=1;var t=je,u=Pp();return Xu=function(i){if(i=t(i),i>u)throw new TypeError(i+" exceeds maximum possible timeout");return i},Xu}var Ua;function Dp(){if(Ua)return Ya;Ua=1;var t=bu(),u=Lr,i=Pu(),f=qa(),s=Hp(),c=nt,p=Function.prototype,g=Math.max,m=Math.min,d=Object.create;return c.maxAge=function(y,w,F){var C,P,q,E;y=s(y),y&&(C=d(null),P=F.async&&c.async||F.promise&&c.promise?"async":"",w.on("set"+P,function(B){C[B]=setTimeout(function(){w.delete(B)},y),typeof C[B].unref=="function"&&C[B].unref(),E&&(E[B]&&E[B]!=="nextTick"&&clearTimeout(E[B]),E[B]=setTimeout(function(){delete E[B]},q),typeof E[B].unref=="function"&&E[B].unref())}),w.on("delete"+P,function(B){clearTimeout(C[B]),delete C[B],E&&(E[B]!=="nextTick"&&clearTimeout(E[B]),delete E[B])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?q=.333:q=g(m(Number(F.preFetch),1),0),q&&(E={},q=(1-q)*y,w.on("get"+P,function(B,T,S){E[B]||(E[B]="nextTick",i(function(){var L;E[B]==="nextTick"&&(delete E[B],w.delete(B),F.async&&(T=t(T),T.push(p)),L=w.memoized.apply(S,T),F.promise&&f(L)&&(typeof L.done=="function"?L.done(p,p):L.then(p,p)))}))}))),w.on("clear"+P,function(){u(C,function(B){clearTimeout(B)}),C={},E&&(u(E,function(B){B!=="nextTick"&&clearTimeout(B)}),E={})}))},Ya}var Ka={},Wu,za;function qp(){if(za)return Wu;za=1;var t=je,u=Object.create,i=Object.prototype.hasOwnProperty;return Wu=function(f){var s=0,c=1,p=u(null),g=u(null),m=0,d;return f=t(f),{hit:function(y){var w=g[y],F=++m;if(p[F]=y,g[y]=F,!w)return++s,s<=f?void 0:(y=p[c],d(y),y);if(delete p[w],c===w)for(;!i.call(p,++c););},delete:d=function(y){var w=g[y];if(w&&(delete p[w],delete g[y],--s,c===w)){if(!s){m=0,c=1;return}for(;!i.call(p,++c););}},clear:function(){s=0,c=1,p=u(null),g=u(null),m=0}}},Wu}var ka;function Gp(){if(ka)return Ka;ka=1;var t=je,u=qp(),i=nt;return i.max=function(f,s,c){var p,g,m;f=t(f),f&&(g=u(f),p=c.async&&i.async||c.promise&&i.promise?"async":"",s.on("set"+p,m=function(d){d=g.hit(d),d!==void 0&&s.delete(d)}),s.on("get"+p,m),s.on("delete"+p,g.delete),s.on("clear"+p,g.clear))},Ka}var Va={},Za;function Np(){if(Za)return Va;Za=1;var t=et,u=nt,i=Object.create,f=Object.defineProperties;return u.refCounter=function(s,c,p){var g,m;g=i(null),m=p.async&&u.async||p.promise&&u.promise?"async":"",c.on("set"+m,function(d,y){g[d]=y||1}),c.on("get"+m,function(d){++g[d]}),c.on("delete"+m,function(d){delete g[d]}),c.on("clear"+m,function(){g={}}),f(c.memoized,{deleteRef:t(function(){var d=c.get(arguments);return d===null||!g[d]?null:--g[d]?!1:(c.delete(d),!0)}),getRefCount:t(function(){var d=c.get(arguments);return d===null||!g[d]?0:g[d]})})},Va}var $p=Af,Yp=Ef,Xp=_p,Wp=function(t){var u=$p(arguments[1]),i;return u.normalizer||(i=u.length=Yp(u.length,t.length,u.async),i!==0&&(u.primitive?i===!1?u.normalizer=yp():i>1&&(u.normalizer=bp()(i)):i===!1?u.normalizer=Sp()():i===1?u.normalizer=Ep()():u.normalizer=Rp()(i))),u.async&&Op(),u.promise&&Mp(),u.dispose&&Lp(),u.maxAge&&Dp(),u.max&&Gp(),u.refCounter&&Np(),Xp(t,u)},Up=xn(Wp);function Kp(t,u,i,f,s){Ja(t,u,i||0,f||t.length-1,s||zp)}function Ja(t,u,i,f,s){for(;f>i;){if(f-i>600){var c=f-i+1,p=u-i+1,g=Math.log(c),m=.5*Math.exp(2*g/3),d=.5*Math.sqrt(g*m*(c-m)/c)*(p-c/2<0?-1:1),y=Math.max(i,Math.floor(u-p*m/c+d)),w=Math.min(f,Math.floor(u+(c-p)*m/c+d));Ja(t,u,y,w,s)}var F=t[u],C=i,P=f;for(Zt(t,i,u),s(t[f],F)>0&&Zt(t,i,f);C0;)P--}s(t[i],F)===0?Zt(t,i,P):(P++,Zt(t,P,f)),P<=u&&(i=P+1),u<=P&&(f=P-1)}}function Zt(t,u,i){var f=t[u];t[u]=t[i],t[i]=f}function zp(t,u){return tu?1:0}class kp{constructor(u=9){this._maxEntries=Math.max(4,u),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(u){let i=this.data;const f=[];if(!Yr(u,i))return f;const s=this.toBBox,c=[];for(;i;){for(let p=0;p=0&&c[i].children.length>this._maxEntries;)this._split(c,i),i--;this._adjustParentBBoxes(s,c,i)}_split(u,i){const f=u[i],s=f.children.length,c=this._minEntries;this._chooseSplitAxis(f,c,s);const p=this._chooseSplitIndex(f,c,s),g=xt(f.children.splice(p,f.children.length-p));g.height=f.height,g.leaf=f.leaf,bt(f,this.toBBox),bt(g,this.toBBox),i?u[i-1].children.push(g):this._splitRoot(f,g)}_splitRoot(u,i){this.data=xt([u,i]),this.data.height=u.height+1,this.data.leaf=!1,bt(this.data,this.toBBox)}_chooseSplitIndex(u,i,f){let s,c=1/0,p=1/0;for(let g=i;g<=f-i;g++){const m=Jt(u,0,g,this.toBBox),d=Jt(u,g,f,this.toBBox),y=jp(m,d),w=Uu(m)+Uu(d);y=i;d--){const y=u.children[d];Qt(g,u.leaf?c(y):y),m+=$r(g)}return m}_adjustParentBBoxes(u,i,f){for(let s=f;s>=0;s--)Qt(i[s],u)}_condense(u){for(let i=u.length-1,f;i>=0;i--)u[i].children.length===0?i>0?(f=u[i-1].children,f.splice(f.indexOf(u[i]),1)):this.clear():bt(u[i],this.toBBox)}}function Vp(t,u,i){if(!i)return u.indexOf(t);for(let f=0;f=t.minX&&u.maxY>=t.minY}function xt(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Qa(t,u,i,f,s){const c=[u,i];for(;c.length;){if(i=c.pop(),u=c.pop(),i-u<=f)continue;const p=u+Math.ceil((i-u)/f/2)*f;Kp(t,p,u,i,s),c.push(u,p,p,i)}}class ng extends kp{toBBox(u){return{minX:u.left,minY:u.top,maxX:u.right,maxY:u.bottom}}compareMinX(u,i){return u.left-i.left}compareMinY(u,i){return u.top-i.top}}const eg={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var ja={exports:{}};(function(t){var u=Object.prototype.hasOwnProperty,i="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(i=!1));function s(m,d,y){this.fn=m,this.context=d,this.once=y||!1}function c(m,d,y,w,F){if(typeof y!="function")throw new TypeError("The listener must be a function");var C=new s(y,w||m,F),P=i?i+d:d;return m._events[P]?m._events[P].fn?m._events[P]=[m._events[P],C]:m._events[P].push(C):(m._events[P]=C,m._eventsCount++),m}function p(m,d){--m._eventsCount===0?m._events=new f:delete m._events[d]}function g(){this._events=new f,this._eventsCount=0}g.prototype.eventNames=function(){var d=[],y,w;if(this._eventsCount===0)return d;for(w in y=this._events)u.call(y,w)&&d.push(i?w.slice(1):w);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(y)):d},g.prototype.listeners=function(d){var y=i?i+d:d,w=this._events[y];if(!w)return[];if(w.fn)return[w.fn];for(var F=0,C=w.length,P=new Array(C);F=6&&(i-=6),Y(i<1?255*((u-t)*i+t):i<3?255*u:i<4?255*((u-t)*(4-i)+t):255*t)},On=function(t,u,i){u/=100;var f=(i/=100)<=.5?i*(u+1):i+u-i*u,s=2*i-f;return{r:Zu(s,f,(t/=60)+2),g:Zu(s,f,t),b:Zu(s,f,t-2)}},Ju=function(t,u,i,f){return{r:Y(255*(1-t)*(f=1-f)),g:Y(255*(1-u)*f),b:Y(255*(1-i)*f)}},ts=function(t,u,i){t/=255,u/=255,i/=255;var f=1-Math.max(t,u,i),s=1-f,c=s&&(s-u)/s,p=s&&(s-i)/s;return{c:Y(100*(s&&(s-t)/s)),m:Y(100*c),y:Y(100*p),k:Y(100*f)}},At=function(t,u,i,f){f===void 0&&(f=1),t/=255,u/=255,i/=255,f=Math.min(f,1);var s=Math.max(t,u,i),c=Math.min(t,u,i),p=s-c,g=0,m=0,d=(s+c)/2;if(p!==0){switch(s){case t:g=(u-i)/p%6;break;case u:g=(i-t)/p+2;break;case i:g=(t-u)/p+4}(g=Y(60*g))<0&&(g+=360),m=p/(1-Math.abs(2*d-1))}return{h:g,s:Y(100*m),l:Y(100*d),a:f}},rs=function(t,u){if(t<0&&(t+=360),t>360&&(t-=360),t===360||t===0)return t;var i=[[0,120],[120,180],[180,240],[240,360]],f=[[0,60],[60,120],[120,240],[240,360]],s=u?f:i,c=0,p=0,g=0,m=0;return(u?i:f).find(function(d,y){return t>=d[0]&&t360||t<0)&&(t-=360*Math.floor(t/360)),t},Ln=function(t){return typeof t=="string"&&(t=wt.test(t)?Wr(t)/100:+t),isNaN(+t)||t>1?1:Y(t)},St=function(t,u,i){return u.reduce(function(f,s){return zu(zu([],f,!0),[en(en({},t),{h:i===qn.ADDITIVE?ir(t.h+s):ir(rs(rs(t.h,!1)+s,!0))})],!1)},[en({},t)])},lg=function(t,u){return St(t,[30,-30],u)},cg=function(t,u){return St(t,[180],u)},hg=function(t,u){return St(t,[150,-150],u)},pg=function(t,u){return St(t,[120,-120],u)},gg=function(t,u){return St(t,[60,-120,180],u)},dg=function(t,u){return St(t,[90,-90,180],u)},Zn=function(t){return typeof t=="string"?function(u){var i;if(Object.keys(z).some(function(f){if(rr[f].test(u))return i=f,!0}),!i&&~ns.indexOf(u)&&(i=z.HEX),!i)throw new Error(ag);return i}(t):function(u){var i,f=!1,s=es(Object.keys(u));if(ku[s]&&(i=ku[s]),i&&i===z.RGB){var c=Object.entries(u).some(function(g){return!Vu.test("".concat(g[1]))}),p=Object.entries(u).some(function(g){return!(wt.test("".concat(g[1]))||!Vu.test("".concat(g[1]))&&!isNaN(+g[1])&&+g[1]<=255)});c&&p&&(f=!0),c||(i=z.HEX)}if(!i||f)throw new Error(sg);return i}(t)},vg=((er={})[z.HEX]=function(t){var u=(~ns.indexOf(t)?Xr[t]:t).match(rr.HEX),i={r:Kr(u[1]||u[5]),g:Kr(u[2]||u[6]),b:Kr(u[3]||u[7])},f=u[4]||u[8];return f!==void 0&&(i.a=Kr(f)/255),i},er[z.RGB]=function(t){var u=t.match(rr.RGB),i=it(u[1]||u[5]),f=it(u[2]||u[6]),s=it(u[3]||u[7]),c=u[4]||u[8],p={r:Math.min(i,255),g:Math.min(f,255),b:Math.min(s,255)};return c!==void 0&&(p.a=Ln(c)),p},er[z.HSL]=function(t){var u=t.match(rr.HSL),i=ir(u[1]||u[5]),f=Ur(u[2]||u[6]),s=Ur(u[3]||u[7]),c=u[4]||u[8],p=On(i,f,s);return c!==void 0&&(p.a=Ln(c)),p},er[z.CMYK]=function(t){var u=t.match(rr.CMYK),i=De(u[1]||u[6]),f=De(u[2]||u[7]),s=De(u[3]||u[8]),c=De(u[4]||u[9]),p=u[5]||u[10],g=Ju(i,f,s,c);return p!==void 0&&(g.a=Ln(p)),g},er),mg=((tr={})[z.HEX]=function(t){var u={r:it("".concat(t.r)),g:it("".concat(t.g)),b:it("".concat(t.b))};return Bn(t,"a")&&(u.a=Math.min(it("".concat(t.a),!0),1)),u},tr[z.RGB]=function(t){return this.HEX(t)},tr[z.HSL]=function(t){var u=Ur("".concat(t.s)),i=Ur("".concat(t.l)),f=On(ir(t.h),u,i);return Bn(t,"a")&&(f.a=Ln(t.a)),f},tr[z.CMYK]=function(t){var u=De("".concat(t.c)),i=De("".concat(t.m)),f=De("".concat(t.y)),s=De("".concat(t.k)),c=Ju(u,i,f,s);return Bn(t,"a")&&(c.a=Ln(t.a)),c},tr),ut=function(t,u){return u===void 0&&(u=Zn(t)),typeof t=="string"?vg[u](t):mg[u](t)},tn=((Se={})[z.HEX]=function(t){return{r:zr(t.r),g:zr(t.g),b:zr(t.b)}},Se.HEXA=function(t){var u=tn.HEX(t);return u.a=Bn(t,"a")?zr(255*t.a):"0xFF",u},Se[z.RGB]=function(t,u){return Bn(t,"a")&&delete t.a,ot(t,u)},Se.RGBA=function(t,u){return t.a=Bn(t,"a")?Y(t.a):1,ot(t,u)},Se[z.HSL]=function(t,u){var i=At(t.r,t.g,t.b);return delete i.a,Ot(i,u)},Se.HSLA=function(t,u){var i=tn.HSL(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se[z.CMYK]=function(t,u){return _g(ts(t.r,t.g,t.b),u)},Se.CMYKA=function(t,u){var i=tn.CMYK(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se),is=function(t,u,i,f){var s=Zn(t),c=typeof t=="string",p=ut(t,s),g=typeof t=="string"&&Bn(p,"a")||typeof t!="string"&&Bn(t,"a"),m=At(p.r,p.g,p.b,p.a);g||delete m.a;var d=i?m.l/(u+1):(100-m.l)/(u+1),y=Array(u).fill(null).map(function(w,F){return en(en({},m),{l:m.l+d*(F+1)*(1-2*+i)})});switch(s){case z.HEX:default:return y.map(function(w){var F=On(w.h,w.s,w.l);return g&&(F.a=w.a),c?g?j.HEX(ot(en(en({},F),{a:Y(255*F.a)}),f)):j.HEX(ot(F,f)):g?tn.HEXA(F):tn.HEX(F)});case z.RGB:return y.map(function(w){var F=On(w.h,w.s,w.l);return g&&(F.a=w.a),c?j.RGB(ot(F,f)):g?tn.RGBA(F,f):tn.RGB(F,f)});case z.HSL:return y.map(function(w){return c?j.HSL(Ot(w,f)):g?tn.HSLA(en(en({},On(w.h,w.s,w.l)),{a:w.a}),f):tn.HSL(On(w.h,w.s,w.l),f)})}},Et=((tt={buildHarmony:function(t,u,i,f){var s=Zn(t),c=ut(t,s),p=At(c.r,c.g,c.b,c.a),g=typeof t=="string"&&Bn(c,"a")||typeof t!="string"&&Bn(t,"a"),m=typeof t=="string";switch(s){case z.HEX:default:return g?this.HEXA(Ot(p,0),u,i,m):this.HEX(Ot(p,0),u,i,m);case z.HSL:return g?this.HSLA(p,u,i,m,f):this.HSL(p,u,i,m,f);case z.RGB:return g?this.RGBA(p,u,i,m,f):this.RGB(p,u,i,m,f)}}})[z.HEX]=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(On(s.h,s.s,s.l)):tn.HEX(On(s.h,s.s,s.l))})},tt.HEXA=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(en(en({},On(s.h,s.s,s.l)),{a:255*Ln(s.a)})):tn.HEXA(en(en({},On(s.h,s.s,s.l)),{a:Ln(s.a)}))})},tt[z.RGB]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(On(c.h,c.s,c.l),s)):tn.RGB(On(c.h,c.s,c.l),s)})},tt.RGBA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)):tn.RGBA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt[z.HSL]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot({h:c.h,s:c.s,l:c.l},s)):tn.HSL(On(c.h,c.s,c.l),s)})},tt.HSLA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot(en(en({},c),{a:Ln(c.a)}),s)):tn.HSLA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt),Rt=((rt={mix:function(t,u){var i,f,s,c,p,g,m,d,y,w,F,C,P,q,E,B=t.map(function(H){var $=Zn(H);return ut(H,$)}),T=u===qn.SUBTRACTIVE?B.map(function(H){var $,K,nn,vn,de,Ee,ve,fr,at,ar,sr,fe,Gn,Bt,st=($=H.r,K=H.g,nn=H.b,vn=Math.min($,K,nn),de=Math.min(255-$,255-K,255-nn),Ee=$-vn,ve=K-vn,fr=nn-vn,at=Math.min(Ee,ve),ar=Ee-at,sr=(ve+at)/2,fe=(fr+ve-at)/2,Gn=Math.max(ar,sr,fe)/Math.max(Ee,ve,fr),Bt=isNaN(Gn)||Gn===1/0||Gn<=0?1:Gn,{r:ar/Bt+de,y:sr/Bt+de,b:fe/Bt+de});return Bn(H,"a")&&(st.a=H.a),st}):null;function S(H){var $=u===qn.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return H.reduce(function(K,nn){var vn=Bn(nn,"a")?nn.a:1,de={r:Math.min(K.r+nn.r*vn,255),b:Math.min(K.b+nn.b*vn,255),a:1-(1-vn)*(1-K.a)},Ee="g"in K?K.g:K.y,ve="g"in nn?nn.g:nn.y;return en(en({},de),u===qn.ADDITIVE?{g:Math.min(Ee+ve*vn,255)}:{y:Math.min(Ee+ve*vn,255)})},$)}if(u===qn.ADDITIVE)i=S(B);else{var L=S(T);f=L.r,s=L.y,c=L.b,p=Math.min(f,s,c),g=Math.min(255-f,255-s,255-c),m=f-p,d=s-p,y=c-p,w=Math.min(d,y),F=m+d-w,C=d+w,P=2*(y-w),q=Math.max(F,C,P)/Math.max(m,d,y),E=isNaN(q)||q===1/0||q<=0?1:q,(i={r:F/E+g,g:C/E+g,b:P/E+g}).a=L.a}return{r:Y(i.r),g:Y(i.g),b:Y(i.b),a:oe(i.a,0,1)}}})[z.HEX]=function(t,u,i){var f=this.mix(t,u);return delete f.a,i?j.HEX(f):tn.HEX(f)},rt.HEXA=function(t,u,i){var f=this.mix(t,u);return f.a=i?255*Ln(f.a):Ln(f.a),i?j.HEX(f):tn.HEXA(f)},rt[z.RGB]=function(t,u,i,f){var s=this.mix(t,u);return delete s.a,i?j.RGB(s):tn.RGB(s,f)},rt.RGBA=function(t,u,i,f){var s=this.mix(t,u);return i?j.RGB(s):tn.RGBA(s,f)},rt[z.HSL]=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b);return delete s.a,delete c.a,i?j.HSL(c):tn.HSL(s,f)},rt.HSLA=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b,s.a);return i?j.HSL(c):tn.HSLA(s,f)},rt),ot=function(t,u){return en({r:Y(t.r,u),g:Y(t.g,u),b:Y(t.b,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},Ot=function(t,u){return en({h:Y(t.h,u),s:Y(t.s,u),l:Y(t.l,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},_g=function(t,u){return{c:Y(t.c,u),m:Y(t.m,u),y:Y(t.y,u),k:Y(t.k,u)}},qe=function(t,u,i,f,s,c){var p=s(ut(t,u),f);return i?c(p):p},It=function(t,u,i,f,s,c,p){i<1&&(i=5);var g=function(m,d,y){var w=y-1,F=(d.r-m.r)/w,C=(d.g-m.g)/w,P=(d.b-m.b)/w,q=Ln(m.a),E=(Ln(d.a)-q)/w;return Array(y).fill(null).map(function(B,T){return T===0?m:T===w?d:{r:Y(m.r+F*T),g:Y(m.g+C*T),b:Y(m.b+P*T),a:Y(q+E*T)}})}(ut(t),ut(u),i);return g.map(function(m){var d=c(m,s);return f?p(d):d})},yg=function(){function t(u,i){i===void 0&&(i=6),this.rgb=ut(u),this._decimals=i,this.updateHSL(),this.updateCMYK()}return t.prototype.updateRGB=function(){this.rgb=en(en({},On(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},t.prototype.updateRGBFromCMYK=function(){this.rgb=en(en({},Ju(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},t.prototype.updateHSL=function(){this.hsl=At(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},t.prototype.updateCMYK=function(){this.cmyk=ts(this.rgb.r,this.rgb.g,this.rgb.b)},t.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},t.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},t.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},t.prototype.setDecimals=function(u){return this._decimals=u,this},t.prototype.setH=function(u){return this.hsl.h=ir(u),this.updateRGBAndCMYK()},t.prototype.setS=function(u){return this.hsl.s=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setL=function(u){return this.hsl.l=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setR=function(u){return this.rgb.r=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setG=function(u){return this.rgb.g=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setB=function(u){return this.rgb.b=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setA=function(u){return this.hsl.a=this.rgb.a=oe(u,0,1),this},t.prototype.setC=function(u){return this.cmyk.c=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setM=function(u){return this.cmyk.m=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setY=function(u){return this.cmyk.y=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setK=function(u){return this.cmyk.k=oe(u,0,100),this.updateRGBAndHSL()},Object.defineProperty(t.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"H",{get:function(){return Y(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"S",{get:function(){return Y(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"L",{get:function(){return Y(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"R",{get:function(){return Y(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"G",{get:function(){return Y(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"B",{get:function(){return Y(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"A",{get:function(){return Y(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"C",{get:function(){return Y(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"M",{get:function(){return Y(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Y",{get:function(){return Y(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"K",{get:function(){return Y(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXObject",{get:function(){return tn.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXAObject",{get:function(){return tn.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBAObject",{get:function(){return en(en({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLAObject",{get:function(){return en(en({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKAObject",{get:function(){return en(en({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEX",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXA",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGB",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBA",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSL",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLA",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYK",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKA",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),t.toHEX=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEX,j.HEX)},t.toHEXA=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEXA,j.HEX)},t.toRGB=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGB,j.RGB)},t.toRGBA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGBA,j.RGB)},t.toHSL=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSL,j.HSL)},t.toHSLA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSLA,j.HSL)},t.toCMYK=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYK,j.CMYK)},t.toCMYKA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYKA,j.CMYK)},t.getBlendHEX=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEX,j.HEX)},t.getBlendHEXA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEXA,j.HEX)},t.getBlendRGB=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGB,j.RGB)},t.getBlendRGBA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGBA,j.RGB)},t.getBlendHSL=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSL,j.HSL)},t.getBlendHSLA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSLA,j.HSL)},t.getMixHEX=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEX(u,i,f)},t.getMixHEXA=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEXA(u,i,f)},t.getMixRGB=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGB(u,i,f,s)},t.getMixRGBA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGBA(u,i,f,s)},t.getMixHSL=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSL(u,i,f,s)},t.getMixHSLA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSLA(u,i,f,s)},t.getShades=function(u,i,f){return f===void 0&&(f=6),is(u,i,!0,f)},t.getTints=function(u,i,f){return f===void 0&&(f=6),is(u,i,!1,f)},t.getHarmony=function(u,i,f,s){return i===void 0&&(i=Ae.COMPLEMENTARY),f===void 0&&(f=qn.ADDITIVE),s===void 0&&(s=6),function(c,p,g,m){var d;return(d={},d[Ae.ANALOGOUS]=Et.buildHarmony(p,lg,m,g),d[Ae.COMPLEMENTARY]=Et.buildHarmony(p,cg,m,g),d[Ae.SPLIT_COMPLEMENTARY]=Et.buildHarmony(p,hg,m,g),d[Ae.TRIADIC]=Et.buildHarmony(p,pg,m,g),d[Ae.TETRADIC]=Et.buildHarmony(p,gg,m,g),d[Ae.SQUARE]=Et.buildHarmony(p,dg,m,g),d)[c]}(i,u,s,f)},t}();const bg={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:In,PI:xg}=Math,ur=(t,u)=>new yg(t).setA(u??bg.alpha).RGBA,wg=(t,u)=>ur(t,u);function Ge(t,u){return{width:t.width*u.scale.x,height:t.height*u.scale.y,x:t.x*u.scale.x+u.x,y:t.y*u.scale.y+u.y}}const Qu={text:{draw(t,u,i){if(t.text){const f=Ge(t,{x:t.textX,y:t.textY,scale:{x:1,y:1}}),s=Ge(f,i);u.font=`${t.fontSize*i.scale.x}px Arial`,u.fillStyle=ur(t.fontColor,t.alpha),u.fillText(t.text,s.x,s.y)}},test(t){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},path:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.lineCap="round",u.lineJoin="round",u.strokeStyle=wg(t.fill,t.alpha);const{x:c,y:p,width:g}=Ge({...f,width:t.lineWidth,height:0},i);u.lineWidth=In(g),u.moveTo(In(c),In(p));for(const m of s){const{x:d,y}=Ge({...m,width:0,height:0},i);u.lineTo(In(d),In(y))}u.stroke()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0-t.lineWidth??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0+t.lineWidth??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0-t.lineWidth??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0+t.lineWidth??0}}},rect:{draw(t,u,i){const{x:f,y:s,width:c,height:p}=Ge(t,i);u.fillStyle=ur(t.fill,t.alpha),u.fillRect(In(f),In(s),In(c)||1,In(p)||1)},test(t){return{left:t.x,right:t.x+t.width,top:t.y,bottom:t.y+t.height}}},polygon:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.fillStyle=ur(t.fill,t.alpha);const{x:c,y:p}=Ge({...f,width:0,height:0},i);u.moveTo(In(c),In(p));for(const g of s){const{x:m,y:d}=Ge({...g,width:0,height:0},i);u.lineTo(In(m),In(d))}u.closePath(),u.fill()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0}}},circle:{draw(t,u,i){u.fillStyle=ur(t.fill,t.alpha),u.beginPath();const f=Ge({...t,width:t.radius,height:t.radius},i);u.ellipse(In(f.x),In(f.y),In(f.width),In(f.height),0,0,2*xg),u.fill()},test(t){return{left:t.x-t.radius,right:t.x+t.radius,top:t.y-t.radius,bottom:t.y+t.radius}}}},Ag=t=>new Error(`The component ${t.$} is not supported by this renderer.`);function us(t,u,i,f){if(t in Qu)Qu[t].draw(u,i,f);else throw Ag(u)}const Sg=(t,u,i)=>{us(t.$,t,u,i),t.text&&us("text",t,u,i)},Eg=({x:t,y:u})=>{const i=Math.abs(t),f=Math.abs(u),s=Math.max(i,f),c=2*s,p=Math.pow(c-1,2);return t==s&&u>-s?p+u-(-s+1):u==s?p+s-t+c-1:t==-s?p+s-u+2*c-1:u==-s?p+t+s+3*c-1:0},{log2:Rg,max:Og}=Math,os=t=>_n.floor(Rg(t+1));function Ig({right:t,left:u,bottom:i,top:f},s){const c=Og(os(t-u),os(i-f))-s,p=2**c,g={left:_n.floor(u/p),right:_n.ceil((t+1)/p),top:_n.floor(f/p),bottom:_n.ceil((i+1)/p)};return{zoom:c,order:p,tiles:_n.shuffle(Xc({x:_n.range(g.left,g.right+1),y:_n.range(g.top,g.bottom+1)}).map(m=>{const d=m.x*p,y=m.y*p;return{tile:m,bounds:{left:d-p/2,right:d+p/2,top:y-p/2,bottom:y+p/2}}}))}}const Fg=200;class Cg extends ig{constructor(){super(...arguments);ge(this,Zr);ge(this,ft);ge(this,Jr);ge(this,Qr);ge(this,Jn,void 0);ge(this,Ft,void 0);ge(this,Ne,void 0);ge(this,$e,void 0);ge(this,or,void 0);ge(this,Ct,void 0);xe(this,Jn,eg),xe(this,Ft,{bottom:256,top:0,left:0,right:256}),xe(this,Ne,new ng(16)),xe(this,$e,{}),xe(this,or,0),xe(this,Ct,_n.once(()=>_n.debounce(()=>this.render(),wn(this,Jn).refreshInterval,{leading:!1,trailing:!0}))),this.renderTile=Up((i,f)=>Je(this,Qr,Yc).call(this,i,f),{normalizer:JSON.stringify,max:Fg})}getView(){return{system:wn(this,Ne),world:wn(this,$e)}}setFrustum(i){xe(this,Ft,i),wn(this,Ct).call(this)()}setTileResolution(i){_n.isEqual(i,wn(this,Jn).tileResolution)||(Object.assign(wn(this,Jn),{tileResolution:i}),Je(this,ft,Tr).call(this))}add(i,f){const s=_n.map(i,c=>({...Qu[c.$].test(c),component:c,index:Je(this,Zr,Nc).call(this)}));wn(this,Ne).load(s),wn(this,$e)[f]=s,Je(this,ft,Tr).call(this)}remove(i){for(const f of wn(this,$e)[i])wn(this,Ne).remove(f);delete wn(this,$e)[i],Je(this,ft,Tr).call(this)}setup(i){xe(this,Jn,i),Je(this,ft,Tr).call(this)}async render(){for(const{tile:i,bounds:f}of Ig(wn(this,Ft),wn(this,Jn).tileSubdivision).tiles)if(Je(this,Jr,$c).call(this,i)){const s=this.renderTile(f,wn(this,Jn).tileResolution);this.emit("message",{action:"update",payload:{bounds:f,bitmap:s}},[])}}}Jn=new WeakMap,Ft=new WeakMap,Ne=new WeakMap,$e=new WeakMap,or=new WeakMap,Zr=new WeakSet,Nc=function(){return Gc(this,or)._++},ft=new WeakSet,Tr=function(){this.renderTile.clear(),wn(this,Ct).call(this)()},Ct=new WeakMap,Jr=new WeakSet,$c=function({x:i,y:f}){const{workerCount:s,workerIndex:c}=wn(this,Jn);return Eg({x:i,y:f})%s===c},Qr=new WeakSet,Yc=function(i,f){const{top:s,right:c,bottom:p,left:g}=i,m={x:f.width/(c-g),y:f.height/(p-s)},d=new OffscreenCanvas(f.width,f.height),y=d.getContext("2d",{alpha:!1});y.imageSmoothingEnabled=!1,y.fillStyle=wn(this,Jn).backgroundColor,y.fillRect(0,0,f.width,f.height);const w=16,F=1;y.fillStyle="rgba(127,127,127,0.25)",y.fillRect((f.width-w)/2,(f.height-F)/2,w,F),y.fillRect((f.width-F)/2,(f.height-w)/2,F,w);for(const{component:C}of _n.sortBy(wn(this,Ne).search({minX:g,maxX:c,maxY:p,minY:s}),"index"))Sg(C,y,{scale:m,x:-g*m.x,y:-s*m.y});return d.transferToImageBitmap()};const fs=new Cg;fs.on("message",(t,u)=>self.postMessage(t,u)),self.onmessage=t=>{const{action:u,payload:i}=t.data;fs[u](...i)}})(); +Consider to rely on 'then' or 'done' mode instead.`);$&&(delete y[C],w[C]=H,d.emit("setasync",C,$))},T=function(){E=!0,y[C]&&(delete y[C],delete F[C],d.delete(C))},S=m;if(S||(S="then"),S==="then"){var L=function(){c(T)};q=q.then(function(H){c(B.bind(this,H))},L),typeof q.finally=="function"&&q.finally(L)}else if(S==="done"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");q.done(B,T)}else if(S==="done:finally"){if(typeof q.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof q.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");q.done(B),q.finally(T)}}),d.on("get",function(C,P,q){var E;if(y[C]){++y[C];return}E=F[C];var B=function(){d.emit("getasync",C,P,q)};s(E)?typeof E.done=="function"?E.done(B):E.then(function(){c(B)}):B()}),d.on("delete",function(C){if(delete F[C],y[C]){delete y[C];return}if(hasOwnProperty.call(w,C)){var P=w[C];delete w[C],d.emit("deleteasync",C,[P])}}),d.on("clear",function(){var C=w;w=p(null),y=p(null),F=p(null),d.emit("clearasync",t(C,function(P){return[P]}))})},Fa}var Na={},$a;function Lp(){if($a)return Na;$a=1;var t=He,u=Lr,i=nt,f=Function.prototype.apply;return i.dispose=function(s,c,p){var g;if(t(s),p.async&&i.async||p.promise&&i.promise){c.on("deleteasync",g=function(m,d){f.call(s,null,d)}),c.on("clearasync",function(m){u(m,function(d,y){g(y,d)})});return}c.on("delete",g=function(m,d){s(d)}),c.on("clear",function(m){u(m,function(d,y){g(y,d)})})},Na}var Ya={},Yu,Xa;function Pp(){return Xa||(Xa=1,Yu=2147483647),Yu}var Xu,Wa;function Hp(){if(Wa)return Xu;Wa=1;var t=je,u=Pp();return Xu=function(i){if(i=t(i),i>u)throw new TypeError(i+" exceeds maximum possible timeout");return i},Xu}var Ua;function Dp(){if(Ua)return Ya;Ua=1;var t=bu(),u=Lr,i=Pu(),f=qa(),s=Hp(),c=nt,p=Function.prototype,g=Math.max,m=Math.min,d=Object.create;return c.maxAge=function(y,w,F){var C,P,q,E;y=s(y),y&&(C=d(null),P=F.async&&c.async||F.promise&&c.promise?"async":"",w.on("set"+P,function(B){C[B]=setTimeout(function(){w.delete(B)},y),typeof C[B].unref=="function"&&C[B].unref(),E&&(E[B]&&E[B]!=="nextTick"&&clearTimeout(E[B]),E[B]=setTimeout(function(){delete E[B]},q),typeof E[B].unref=="function"&&E[B].unref())}),w.on("delete"+P,function(B){clearTimeout(C[B]),delete C[B],E&&(E[B]!=="nextTick"&&clearTimeout(E[B]),delete E[B])}),F.preFetch&&(F.preFetch===!0||isNaN(F.preFetch)?q=.333:q=g(m(Number(F.preFetch),1),0),q&&(E={},q=(1-q)*y,w.on("get"+P,function(B,T,S){E[B]||(E[B]="nextTick",i(function(){var L;E[B]==="nextTick"&&(delete E[B],w.delete(B),F.async&&(T=t(T),T.push(p)),L=w.memoized.apply(S,T),F.promise&&f(L)&&(typeof L.done=="function"?L.done(p,p):L.then(p,p)))}))}))),w.on("clear"+P,function(){u(C,function(B){clearTimeout(B)}),C={},E&&(u(E,function(B){B!=="nextTick"&&clearTimeout(B)}),E={})}))},Ya}var Ka={},Wu,za;function qp(){if(za)return Wu;za=1;var t=je,u=Object.create,i=Object.prototype.hasOwnProperty;return Wu=function(f){var s=0,c=1,p=u(null),g=u(null),m=0,d;return f=t(f),{hit:function(y){var w=g[y],F=++m;if(p[F]=y,g[y]=F,!w)return++s,s<=f?void 0:(y=p[c],d(y),y);if(delete p[w],c===w)for(;!i.call(p,++c););},delete:d=function(y){var w=g[y];if(w&&(delete p[w],delete g[y],--s,c===w)){if(!s){m=0,c=1;return}for(;!i.call(p,++c););}},clear:function(){s=0,c=1,p=u(null),g=u(null),m=0}}},Wu}var ka;function Gp(){if(ka)return Ka;ka=1;var t=je,u=qp(),i=nt;return i.max=function(f,s,c){var p,g,m;f=t(f),f&&(g=u(f),p=c.async&&i.async||c.promise&&i.promise?"async":"",s.on("set"+p,m=function(d){d=g.hit(d),d!==void 0&&s.delete(d)}),s.on("get"+p,m),s.on("delete"+p,g.delete),s.on("clear"+p,g.clear))},Ka}var Va={},Za;function Np(){if(Za)return Va;Za=1;var t=et,u=nt,i=Object.create,f=Object.defineProperties;return u.refCounter=function(s,c,p){var g,m;g=i(null),m=p.async&&u.async||p.promise&&u.promise?"async":"",c.on("set"+m,function(d,y){g[d]=y||1}),c.on("get"+m,function(d){++g[d]}),c.on("delete"+m,function(d){delete g[d]}),c.on("clear"+m,function(){g={}}),f(c.memoized,{deleteRef:t(function(){var d=c.get(arguments);return d===null||!g[d]?null:--g[d]?!1:(c.delete(d),!0)}),getRefCount:t(function(){var d=c.get(arguments);return d===null||!g[d]?0:g[d]})})},Va}var $p=Af,Yp=Ef,Xp=_p,Wp=function(t){var u=$p(arguments[1]),i;return u.normalizer||(i=u.length=Yp(u.length,t.length,u.async),i!==0&&(u.primitive?i===!1?u.normalizer=yp():i>1&&(u.normalizer=bp()(i)):i===!1?u.normalizer=Sp()():i===1?u.normalizer=Ep()():u.normalizer=Rp()(i))),u.async&&Op(),u.promise&&Mp(),u.dispose&&Lp(),u.maxAge&&Dp(),u.max&&Gp(),u.refCounter&&Np(),Xp(t,u)},Up=xn(Wp);function Kp(t,u,i,f,s){Ja(t,u,i||0,f||t.length-1,s||zp)}function Ja(t,u,i,f,s){for(;f>i;){if(f-i>600){var c=f-i+1,p=u-i+1,g=Math.log(c),m=.5*Math.exp(2*g/3),d=.5*Math.sqrt(g*m*(c-m)/c)*(p-c/2<0?-1:1),y=Math.max(i,Math.floor(u-p*m/c+d)),w=Math.min(f,Math.floor(u+(c-p)*m/c+d));Ja(t,u,y,w,s)}var F=t[u],C=i,P=f;for(Zt(t,i,u),s(t[f],F)>0&&Zt(t,i,f);C0;)P--}s(t[i],F)===0?Zt(t,i,P):(P++,Zt(t,P,f)),P<=u&&(i=P+1),u<=P&&(f=P-1)}}function Zt(t,u,i){var f=t[u];t[u]=t[i],t[i]=f}function zp(t,u){return tu?1:0}class kp{constructor(u=9){this._maxEntries=Math.max(4,u),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(u){let i=this.data;const f=[];if(!Yr(u,i))return f;const s=this.toBBox,c=[];for(;i;){for(let p=0;p=0&&c[i].children.length>this._maxEntries;)this._split(c,i),i--;this._adjustParentBBoxes(s,c,i)}_split(u,i){const f=u[i],s=f.children.length,c=this._minEntries;this._chooseSplitAxis(f,c,s);const p=this._chooseSplitIndex(f,c,s),g=xt(f.children.splice(p,f.children.length-p));g.height=f.height,g.leaf=f.leaf,bt(f,this.toBBox),bt(g,this.toBBox),i?u[i-1].children.push(g):this._splitRoot(f,g)}_splitRoot(u,i){this.data=xt([u,i]),this.data.height=u.height+1,this.data.leaf=!1,bt(this.data,this.toBBox)}_chooseSplitIndex(u,i,f){let s,c=1/0,p=1/0;for(let g=i;g<=f-i;g++){const m=Jt(u,0,g,this.toBBox),d=Jt(u,g,f,this.toBBox),y=jp(m,d),w=Uu(m)+Uu(d);y=i;d--){const y=u.children[d];Qt(g,u.leaf?c(y):y),m+=$r(g)}return m}_adjustParentBBoxes(u,i,f){for(let s=f;s>=0;s--)Qt(i[s],u)}_condense(u){for(let i=u.length-1,f;i>=0;i--)u[i].children.length===0?i>0?(f=u[i-1].children,f.splice(f.indexOf(u[i]),1)):this.clear():bt(u[i],this.toBBox)}}function Vp(t,u,i){if(!i)return u.indexOf(t);for(let f=0;f=t.minX&&u.maxY>=t.minY}function xt(t){return{children:t,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function Qa(t,u,i,f,s){const c=[u,i];for(;c.length;){if(i=c.pop(),u=c.pop(),i-u<=f)continue;const p=u+Math.ceil((i-u)/f/2)*f;Kp(t,p,u,i,s),c.push(u,p,p,i)}}class ng extends kp{toBBox(u){return{minX:u.left,minY:u.top,maxX:u.right,maxY:u.bottom}}compareMinX(u,i){return u.left-i.left}compareMinY(u,i){return u.top-i.top}}const eg={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var ja={exports:{}};(function(t){var u=Object.prototype.hasOwnProperty,i="~";function f(){}Object.create&&(f.prototype=Object.create(null),new f().__proto__||(i=!1));function s(m,d,y){this.fn=m,this.context=d,this.once=y||!1}function c(m,d,y,w,F){if(typeof y!="function")throw new TypeError("The listener must be a function");var C=new s(y,w||m,F),P=i?i+d:d;return m._events[P]?m._events[P].fn?m._events[P]=[m._events[P],C]:m._events[P].push(C):(m._events[P]=C,m._eventsCount++),m}function p(m,d){--m._eventsCount===0?m._events=new f:delete m._events[d]}function g(){this._events=new f,this._eventsCount=0}g.prototype.eventNames=function(){var d=[],y,w;if(this._eventsCount===0)return d;for(w in y=this._events)u.call(y,w)&&d.push(i?w.slice(1):w);return Object.getOwnPropertySymbols?d.concat(Object.getOwnPropertySymbols(y)):d},g.prototype.listeners=function(d){var y=i?i+d:d,w=this._events[y];if(!w)return[];if(w.fn)return[w.fn];for(var F=0,C=w.length,P=new Array(C);F=6&&(i-=6),Y(i<1?255*((u-t)*i+t):i<3?255*u:i<4?255*((u-t)*(4-i)+t):255*t)},On=function(t,u,i){u/=100;var f=(i/=100)<=.5?i*(u+1):i+u-i*u,s=2*i-f;return{r:Zu(s,f,(t/=60)+2),g:Zu(s,f,t),b:Zu(s,f,t-2)}},Ju=function(t,u,i,f){return{r:Y(255*(1-t)*(f=1-f)),g:Y(255*(1-u)*f),b:Y(255*(1-i)*f)}},ts=function(t,u,i){t/=255,u/=255,i/=255;var f=1-Math.max(t,u,i),s=1-f,c=s&&(s-u)/s,p=s&&(s-i)/s;return{c:Y(100*(s&&(s-t)/s)),m:Y(100*c),y:Y(100*p),k:Y(100*f)}},At=function(t,u,i,f){f===void 0&&(f=1),t/=255,u/=255,i/=255,f=Math.min(f,1);var s=Math.max(t,u,i),c=Math.min(t,u,i),p=s-c,g=0,m=0,d=(s+c)/2;if(p!==0){switch(s){case t:g=(u-i)/p%6;break;case u:g=(i-t)/p+2;break;case i:g=(t-u)/p+4}(g=Y(60*g))<0&&(g+=360),m=p/(1-Math.abs(2*d-1))}return{h:g,s:Y(100*m),l:Y(100*d),a:f}},rs=function(t,u){if(t<0&&(t+=360),t>360&&(t-=360),t===360||t===0)return t;var i=[[0,120],[120,180],[180,240],[240,360]],f=[[0,60],[60,120],[120,240],[240,360]],s=u?f:i,c=0,p=0,g=0,m=0;return(u?i:f).find(function(d,y){return t>=d[0]&&t360||t<0)&&(t-=360*Math.floor(t/360)),t},Ln=function(t){return typeof t=="string"&&(t=wt.test(t)?Wr(t)/100:+t),isNaN(+t)||t>1?1:Y(t)},St=function(t,u,i){return u.reduce(function(f,s){return zu(zu([],f,!0),[en(en({},t),{h:i===qn.ADDITIVE?ir(t.h+s):ir(rs(rs(t.h,!1)+s,!0))})],!1)},[en({},t)])},lg=function(t,u){return St(t,[30,-30],u)},cg=function(t,u){return St(t,[180],u)},hg=function(t,u){return St(t,[150,-150],u)},pg=function(t,u){return St(t,[120,-120],u)},gg=function(t,u){return St(t,[60,-120,180],u)},dg=function(t,u){return St(t,[90,-90,180],u)},Zn=function(t){return typeof t=="string"?function(u){var i;if(Object.keys(z).some(function(f){if(rr[f].test(u))return i=f,!0}),!i&&~ns.indexOf(u)&&(i=z.HEX),!i)throw new Error(ag);return i}(t):function(u){var i,f=!1,s=es(Object.keys(u));if(ku[s]&&(i=ku[s]),i&&i===z.RGB){var c=Object.entries(u).some(function(g){return!Vu.test("".concat(g[1]))}),p=Object.entries(u).some(function(g){return!(wt.test("".concat(g[1]))||!Vu.test("".concat(g[1]))&&!isNaN(+g[1])&&+g[1]<=255)});c&&p&&(f=!0),c||(i=z.HEX)}if(!i||f)throw new Error(sg);return i}(t)},vg=((er={})[z.HEX]=function(t){var u=(~ns.indexOf(t)?Xr[t]:t).match(rr.HEX),i={r:Kr(u[1]||u[5]),g:Kr(u[2]||u[6]),b:Kr(u[3]||u[7])},f=u[4]||u[8];return f!==void 0&&(i.a=Kr(f)/255),i},er[z.RGB]=function(t){var u=t.match(rr.RGB),i=it(u[1]||u[5]),f=it(u[2]||u[6]),s=it(u[3]||u[7]),c=u[4]||u[8],p={r:Math.min(i,255),g:Math.min(f,255),b:Math.min(s,255)};return c!==void 0&&(p.a=Ln(c)),p},er[z.HSL]=function(t){var u=t.match(rr.HSL),i=ir(u[1]||u[5]),f=Ur(u[2]||u[6]),s=Ur(u[3]||u[7]),c=u[4]||u[8],p=On(i,f,s);return c!==void 0&&(p.a=Ln(c)),p},er[z.CMYK]=function(t){var u=t.match(rr.CMYK),i=De(u[1]||u[6]),f=De(u[2]||u[7]),s=De(u[3]||u[8]),c=De(u[4]||u[9]),p=u[5]||u[10],g=Ju(i,f,s,c);return p!==void 0&&(g.a=Ln(p)),g},er),mg=((tr={})[z.HEX]=function(t){var u={r:it("".concat(t.r)),g:it("".concat(t.g)),b:it("".concat(t.b))};return Bn(t,"a")&&(u.a=Math.min(it("".concat(t.a),!0),1)),u},tr[z.RGB]=function(t){return this.HEX(t)},tr[z.HSL]=function(t){var u=Ur("".concat(t.s)),i=Ur("".concat(t.l)),f=On(ir(t.h),u,i);return Bn(t,"a")&&(f.a=Ln(t.a)),f},tr[z.CMYK]=function(t){var u=De("".concat(t.c)),i=De("".concat(t.m)),f=De("".concat(t.y)),s=De("".concat(t.k)),c=Ju(u,i,f,s);return Bn(t,"a")&&(c.a=Ln(t.a)),c},tr),ut=function(t,u){return u===void 0&&(u=Zn(t)),typeof t=="string"?vg[u](t):mg[u](t)},tn=((Se={})[z.HEX]=function(t){return{r:zr(t.r),g:zr(t.g),b:zr(t.b)}},Se.HEXA=function(t){var u=tn.HEX(t);return u.a=Bn(t,"a")?zr(255*t.a):"0xFF",u},Se[z.RGB]=function(t,u){return Bn(t,"a")&&delete t.a,ot(t,u)},Se.RGBA=function(t,u){return t.a=Bn(t,"a")?Y(t.a):1,ot(t,u)},Se[z.HSL]=function(t,u){var i=At(t.r,t.g,t.b);return delete i.a,Ot(i,u)},Se.HSLA=function(t,u){var i=tn.HSL(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se[z.CMYK]=function(t,u){return _g(ts(t.r,t.g,t.b),u)},Se.CMYKA=function(t,u){var i=tn.CMYK(t,u);return i.a=Bn(t,"a")?Y(t.a,u):1,i},Se),is=function(t,u,i,f){var s=Zn(t),c=typeof t=="string",p=ut(t,s),g=typeof t=="string"&&Bn(p,"a")||typeof t!="string"&&Bn(t,"a"),m=At(p.r,p.g,p.b,p.a);g||delete m.a;var d=i?m.l/(u+1):(100-m.l)/(u+1),y=Array(u).fill(null).map(function(w,F){return en(en({},m),{l:m.l+d*(F+1)*(1-2*+i)})});switch(s){case z.HEX:default:return y.map(function(w){var F=On(w.h,w.s,w.l);return g&&(F.a=w.a),c?g?j.HEX(ot(en(en({},F),{a:Y(255*F.a)}),f)):j.HEX(ot(F,f)):g?tn.HEXA(F):tn.HEX(F)});case z.RGB:return y.map(function(w){var F=On(w.h,w.s,w.l);return g&&(F.a=w.a),c?j.RGB(ot(F,f)):g?tn.RGBA(F,f):tn.RGB(F,f)});case z.HSL:return y.map(function(w){return c?j.HSL(Ot(w,f)):g?tn.HSLA(en(en({},On(w.h,w.s,w.l)),{a:w.a}),f):tn.HSL(On(w.h,w.s,w.l),f)})}},Et=((tt={buildHarmony:function(t,u,i,f){var s=Zn(t),c=ut(t,s),p=At(c.r,c.g,c.b,c.a),g=typeof t=="string"&&Bn(c,"a")||typeof t!="string"&&Bn(t,"a"),m=typeof t=="string";switch(s){case z.HEX:default:return g?this.HEXA(Ot(p,0),u,i,m):this.HEX(Ot(p,0),u,i,m);case z.HSL:return g?this.HSLA(p,u,i,m,f):this.HSL(p,u,i,m,f);case z.RGB:return g?this.RGBA(p,u,i,m,f):this.RGB(p,u,i,m,f)}}})[z.HEX]=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(On(s.h,s.s,s.l)):tn.HEX(On(s.h,s.s,s.l))})},tt.HEXA=function(t,u,i,f){return u(t,i).map(function(s){return f?j.HEX(en(en({},On(s.h,s.s,s.l)),{a:255*Ln(s.a)})):tn.HEXA(en(en({},On(s.h,s.s,s.l)),{a:Ln(s.a)}))})},tt[z.RGB]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(On(c.h,c.s,c.l),s)):tn.RGB(On(c.h,c.s,c.l),s)})},tt.RGBA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.RGB(ot(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)):tn.RGBA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt[z.HSL]=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot({h:c.h,s:c.s,l:c.l},s)):tn.HSL(On(c.h,c.s,c.l),s)})},tt.HSLA=function(t,u,i,f,s){return u(t,i).map(function(c){return f?j.HSL(Ot(en(en({},c),{a:Ln(c.a)}),s)):tn.HSLA(en(en({},On(c.h,c.s,c.l)),{a:Ln(c.a)}),s)})},tt),Rt=((rt={mix:function(t,u){var i,f,s,c,p,g,m,d,y,w,F,C,P,q,E,B=t.map(function(H){var $=Zn(H);return ut(H,$)}),T=u===qn.SUBTRACTIVE?B.map(function(H){var $,K,nn,vn,de,Ee,ve,fr,at,ar,sr,fe,Gn,Bt,st=($=H.r,K=H.g,nn=H.b,vn=Math.min($,K,nn),de=Math.min(255-$,255-K,255-nn),Ee=$-vn,ve=K-vn,fr=nn-vn,at=Math.min(Ee,ve),ar=Ee-at,sr=(ve+at)/2,fe=(fr+ve-at)/2,Gn=Math.max(ar,sr,fe)/Math.max(Ee,ve,fr),Bt=isNaN(Gn)||Gn===1/0||Gn<=0?1:Gn,{r:ar/Bt+de,y:sr/Bt+de,b:fe/Bt+de});return Bn(H,"a")&&(st.a=H.a),st}):null;function S(H){var $=u===qn.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return H.reduce(function(K,nn){var vn=Bn(nn,"a")?nn.a:1,de={r:Math.min(K.r+nn.r*vn,255),b:Math.min(K.b+nn.b*vn,255),a:1-(1-vn)*(1-K.a)},Ee="g"in K?K.g:K.y,ve="g"in nn?nn.g:nn.y;return en(en({},de),u===qn.ADDITIVE?{g:Math.min(Ee+ve*vn,255)}:{y:Math.min(Ee+ve*vn,255)})},$)}if(u===qn.ADDITIVE)i=S(B);else{var L=S(T);f=L.r,s=L.y,c=L.b,p=Math.min(f,s,c),g=Math.min(255-f,255-s,255-c),m=f-p,d=s-p,y=c-p,w=Math.min(d,y),F=m+d-w,C=d+w,P=2*(y-w),q=Math.max(F,C,P)/Math.max(m,d,y),E=isNaN(q)||q===1/0||q<=0?1:q,(i={r:F/E+g,g:C/E+g,b:P/E+g}).a=L.a}return{r:Y(i.r),g:Y(i.g),b:Y(i.b),a:oe(i.a,0,1)}}})[z.HEX]=function(t,u,i){var f=this.mix(t,u);return delete f.a,i?j.HEX(f):tn.HEX(f)},rt.HEXA=function(t,u,i){var f=this.mix(t,u);return f.a=i?255*Ln(f.a):Ln(f.a),i?j.HEX(f):tn.HEXA(f)},rt[z.RGB]=function(t,u,i,f){var s=this.mix(t,u);return delete s.a,i?j.RGB(s):tn.RGB(s,f)},rt.RGBA=function(t,u,i,f){var s=this.mix(t,u);return i?j.RGB(s):tn.RGBA(s,f)},rt[z.HSL]=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b);return delete s.a,delete c.a,i?j.HSL(c):tn.HSL(s,f)},rt.HSLA=function(t,u,i,f){var s=this.mix(t,u),c=At(s.r,s.g,s.b,s.a);return i?j.HSL(c):tn.HSLA(s,f)},rt),ot=function(t,u){return en({r:Y(t.r,u),g:Y(t.g,u),b:Y(t.b,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},Ot=function(t,u){return en({h:Y(t.h,u),s:Y(t.s,u),l:Y(t.l,u)},Bn(t,"a")?{a:Y(t.a,u)}:{})},_g=function(t,u){return{c:Y(t.c,u),m:Y(t.m,u),y:Y(t.y,u),k:Y(t.k,u)}},qe=function(t,u,i,f,s,c){var p=s(ut(t,u),f);return i?c(p):p},It=function(t,u,i,f,s,c,p){i<1&&(i=5);var g=function(m,d,y){var w=y-1,F=(d.r-m.r)/w,C=(d.g-m.g)/w,P=(d.b-m.b)/w,q=Ln(m.a),E=(Ln(d.a)-q)/w;return Array(y).fill(null).map(function(B,T){return T===0?m:T===w?d:{r:Y(m.r+F*T),g:Y(m.g+C*T),b:Y(m.b+P*T),a:Y(q+E*T)}})}(ut(t),ut(u),i);return g.map(function(m){var d=c(m,s);return f?p(d):d})},yg=function(){function t(u,i){i===void 0&&(i=6),this.rgb=ut(u),this._decimals=i,this.updateHSL(),this.updateCMYK()}return t.prototype.updateRGB=function(){this.rgb=en(en({},On(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},t.prototype.updateRGBFromCMYK=function(){this.rgb=en(en({},Ju(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},t.prototype.updateHSL=function(){this.hsl=At(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},t.prototype.updateCMYK=function(){this.cmyk=ts(this.rgb.r,this.rgb.g,this.rgb.b)},t.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},t.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},t.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},t.prototype.setDecimals=function(u){return this._decimals=u,this},t.prototype.setH=function(u){return this.hsl.h=ir(u),this.updateRGBAndCMYK()},t.prototype.setS=function(u){return this.hsl.s=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setL=function(u){return this.hsl.l=oe(u,0,100),this.updateRGBAndCMYK()},t.prototype.setR=function(u){return this.rgb.r=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setG=function(u){return this.rgb.g=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setB=function(u){return this.rgb.b=oe(u,0,255),this.updateHSLAndCMYK()},t.prototype.setA=function(u){return this.hsl.a=this.rgb.a=oe(u,0,1),this},t.prototype.setC=function(u){return this.cmyk.c=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setM=function(u){return this.cmyk.m=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setY=function(u){return this.cmyk.y=oe(u,0,100),this.updateRGBAndHSL()},t.prototype.setK=function(u){return this.cmyk.k=oe(u,0,100),this.updateRGBAndHSL()},Object.defineProperty(t.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"H",{get:function(){return Y(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"S",{get:function(){return Y(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"L",{get:function(){return Y(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"R",{get:function(){return Y(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"G",{get:function(){return Y(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"B",{get:function(){return Y(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"A",{get:function(){return Y(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"C",{get:function(){return Y(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"M",{get:function(){return Y(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Y",{get:function(){return Y(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"K",{get:function(){return Y(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXObject",{get:function(){return tn.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXAObject",{get:function(){return tn.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBAObject",{get:function(){return en(en({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLAObject",{get:function(){return en(en({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKAObject",{get:function(){return en(en({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEX",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HEXA",{get:function(){return j.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGB",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RGBA",{get:function(){return j.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSL",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HSLA",{get:function(){return j.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYK",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMYKA",{get:function(){return j.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),t.toHEX=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEX,j.HEX)},t.toHEXA=function(u,i){i===void 0&&(i=!0);var f=Zn(u);return qe(u,f,i,0,tn.HEXA,j.HEX)},t.toRGB=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGB,j.RGB)},t.toRGBA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.RGBA,j.RGB)},t.toHSL=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSL,j.HSL)},t.toHSLA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.HSLA,j.HSL)},t.toCMYK=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYK,j.CMYK)},t.toCMYKA=function(u,i,f){i===void 0&&(i=!0),f===void 0&&(f=6);var s=Zn(u);return qe(u,s,i,f,tn.CMYKA,j.CMYK)},t.getBlendHEX=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEX,j.HEX)},t.getBlendHEXA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HEXA,j.HEX)},t.getBlendRGB=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGB,j.RGB)},t.getBlendRGBA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.RGBA,j.RGB)},t.getBlendHSL=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSL,j.HSL)},t.getBlendHSLA=function(u,i,f,s,c){return f===void 0&&(f=5),s===void 0&&(s=!0),c===void 0&&(c=6),It(u,i,f,s,c,tn.HSLA,j.HSL)},t.getMixHEX=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEX(u,i,f)},t.getMixHEXA=function(u,i,f){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),Rt.HEXA(u,i,f)},t.getMixRGB=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGB(u,i,f,s)},t.getMixRGBA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.RGBA(u,i,f,s)},t.getMixHSL=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSL(u,i,f,s)},t.getMixHSLA=function(u,i,f,s){return i===void 0&&(i=qn.ADDITIVE),f===void 0&&(f=!0),s===void 0&&(s=6),Rt.HSLA(u,i,f,s)},t.getShades=function(u,i,f){return f===void 0&&(f=6),is(u,i,!0,f)},t.getTints=function(u,i,f){return f===void 0&&(f=6),is(u,i,!1,f)},t.getHarmony=function(u,i,f,s){return i===void 0&&(i=Ae.COMPLEMENTARY),f===void 0&&(f=qn.ADDITIVE),s===void 0&&(s=6),function(c,p,g,m){var d;return(d={},d[Ae.ANALOGOUS]=Et.buildHarmony(p,lg,m,g),d[Ae.COMPLEMENTARY]=Et.buildHarmony(p,cg,m,g),d[Ae.SPLIT_COMPLEMENTARY]=Et.buildHarmony(p,hg,m,g),d[Ae.TRIADIC]=Et.buildHarmony(p,pg,m,g),d[Ae.TETRADIC]=Et.buildHarmony(p,gg,m,g),d[Ae.SQUARE]=Et.buildHarmony(p,dg,m,g),d)[c]}(i,u,s,f)},t}();const bg={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:In,PI:xg}=Math,ur=(t,u)=>new yg(t).setA(u??bg.alpha).RGBA,wg=(t,u)=>ur(t,u);function Ge(t,u){return{width:t.width*u.scale.x,height:t.height*u.scale.y,x:t.x*u.scale.x+u.x,y:t.y*u.scale.y+u.y}}const Qu={text:{draw(t,u,i){if(t.text){const f=Ge(t,{x:t.textX,y:t.textY,scale:{x:1,y:1}}),s=Ge(f,i);u.font=`${t.fontSize*i.scale.x}px Arial`,u.fillStyle=ur(t.fontColor,t.alpha),u.fillText(t.text,s.x,s.y)}},test(t){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},path:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.lineCap="round",u.lineJoin="round",u.strokeStyle=wg(t.fill,t.alpha);const{x:c,y:p,width:g}=Ge({...f,width:t.lineWidth,height:0},i);u.lineWidth=In(g),u.moveTo(In(c),In(p));for(const m of s){const{x:d,y}=Ge({...m,width:0,height:0},i);u.lineTo(In(d),In(y))}u.stroke()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0-t.lineWidth??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0+t.lineWidth??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0-t.lineWidth??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0+t.lineWidth??0}}},rect:{draw(t,u,i){const{x:f,y:s,width:c,height:p}=Ge(t,i);u.fillStyle=ur(t.fill,t.alpha),u.fillRect(In(f),In(s),In(c)||1,In(p)||1)},test(t){return{left:t.x,right:t.x+t.width,top:t.y,bottom:t.y+t.height}}},polygon:{draw(t,u,i){const[f,...s]=t.points;u.beginPath(),u.fillStyle=ur(t.fill,t.alpha);const{x:c,y:p}=Ge({...f,width:0,height:0},i);u.moveTo(In(c),In(p));for(const g of s){const{x:m,y:d}=Ge({...g,width:0,height:0},i);u.lineTo(In(m),In(d))}u.closePath(),u.fill()},test(t){var u,i,f,s;return{left:((u=_n.minBy(t.points,"x"))==null?void 0:u.x)??0,right:((i=_n.maxBy(t.points,"x"))==null?void 0:i.x)??0,top:((f=_n.minBy(t.points,"y"))==null?void 0:f.y)??0,bottom:((s=_n.maxBy(t.points,"y"))==null?void 0:s.y)??0}}},circle:{draw(t,u,i){u.fillStyle=ur(t.fill,t.alpha),u.beginPath();const f=Ge({...t,width:t.radius,height:t.radius},i);u.ellipse(In(f.x),In(f.y),In(f.width),In(f.height),0,0,2*xg),u.fill()},test(t){return{left:t.x-t.radius,right:t.x+t.radius,top:t.y-t.radius,bottom:t.y+t.radius}}}},Ag=t=>new Error(`The component ${t.$} is not supported by this renderer.`);function us(t,u,i,f){if(t in Qu)Qu[t].draw(u,i,f);else throw Ag(u)}const Sg=(t,u,i)=>{us(t.$,t,u,i),t.text&&us("text",t,u,i)},Eg=({x:t,y:u})=>{const i=Math.abs(t),f=Math.abs(u),s=Math.max(i,f),c=2*s,p=Math.pow(c-1,2);return t==s&&u>-s?p+u-(-s+1):u==s?p+s-t+c-1:t==-s?p+s-u+2*c-1:u==-s?p+t+s+3*c-1:0},{log2:Rg,max:Og}=Math,os=t=>_n.floor(Rg(t+1));function Ig({right:t,left:u,bottom:i,top:f},s){const c=Og(os(t-u),os(i-f))-s,p=2**c,g={left:_n.floor(u/p),right:_n.ceil((t+1)/p),top:_n.floor(f/p),bottom:_n.ceil((i+1)/p)};return{zoom:c,order:p,tiles:_n.shuffle(Xc({x:_n.range(g.left,g.right+1),y:_n.range(g.top,g.bottom+1)}).map(m=>{const d=m.x*p,y=m.y*p;return{tile:m,bounds:{left:d-p/2,right:d+p/2,top:y-p/2,bottom:y+p/2}}}))}}const Fg=200;class Cg extends ig{constructor(){super(...arguments);ge(this,Zr);ge(this,ft);ge(this,Jr);ge(this,Qr);ge(this,Jn,void 0);ge(this,Ft,void 0);ge(this,Ne,void 0);ge(this,$e,void 0);ge(this,or,void 0);ge(this,Ct,void 0);xe(this,Jn,eg),xe(this,Ft,{bottom:256,top:0,left:0,right:256}),xe(this,Ne,new ng(16)),xe(this,$e,{}),xe(this,or,0),xe(this,Ct,_n.once(()=>_n.debounce(()=>this.render(),wn(this,Jn).refreshInterval,{leading:!1,trailing:!0}))),this.renderTile=Up((i,f)=>Je(this,Qr,Yc).call(this,i,f),{normalizer:JSON.stringify,max:Fg})}getView(){return{system:wn(this,Ne),world:wn(this,$e)}}setFrustum(i){xe(this,Ft,i),wn(this,Ct).call(this)()}setTileResolution(i){_n.isEqual(i,wn(this,Jn).tileResolution)||(Object.assign(wn(this,Jn),{tileResolution:i}),Je(this,ft,Tr).call(this))}add(i,f){const s=_n.map(i,c=>({...Qu[c.$].test(c),component:c,index:Je(this,Zr,Nc).call(this)}));wn(this,Ne).load(s),wn(this,$e)[f]=s,Je(this,ft,Tr).call(this)}remove(i){for(const f of wn(this,$e)[i])wn(this,Ne).remove(f);delete wn(this,$e)[i],Je(this,ft,Tr).call(this)}setup(i){xe(this,Jn,i),Je(this,ft,Tr).call(this)}async render(){for(const{tile:i,bounds:f}of Ig(wn(this,Ft),wn(this,Jn).tileSubdivision).tiles)if(Je(this,Jr,$c).call(this,i)){const s=this.renderTile(f,wn(this,Jn).tileResolution);this.emit("message",{action:"update",payload:{bounds:f,bitmap:s}},[])}}}Jn=new WeakMap,Ft=new WeakMap,Ne=new WeakMap,$e=new WeakMap,or=new WeakMap,Zr=new WeakSet,Nc=function(){return Gc(this,or)._++},ft=new WeakSet,Tr=function(){this.renderTile.clear(),wn(this,Ct).call(this)()},Ct=new WeakMap,Jr=new WeakSet,$c=function({x:i,y:f}){const{workerCount:s,workerIndex:c}=wn(this,Jn);return Eg({x:i,y:f})%s===c},Qr=new WeakSet,Yc=function(i,f){const{top:s,right:c,bottom:p,left:g}=i,m={x:f.width/(c-g),y:f.height/(p-s)},d=new OffscreenCanvas(f.width,f.height),y=d.getContext("2d",{alpha:!1});y.imageSmoothingEnabled=!1,y.fillStyle=wn(this,Jn).backgroundColor,y.fillRect(0,0,f.width,f.height);const w=16,F=1;y.fillStyle="rgba(127,127,127,0.36)",y.fillRect((f.width-w)/2,(f.height-F)/2,w,F),y.fillRect((f.width-F)/2,(f.height-w)/2,F,w);for(const{component:C}of _n.sortBy(wn(this,Ne).search({minX:g,maxX:c,maxY:p,minY:s}),"index"))Sg(C,y,{scale:m,x:-g*m.x,y:-s*m.y});return d.transferToImageBitmap()};const fs=new Cg;fs.on("message",(t,u)=>self.postMessage(t,u)),self.onmessage=t=>{const{action:u,payload:i}=t.data;fs[u](...i)}})(); diff --git a/assets/index-b6b14973.js b/assets/index-4cfed331.js similarity index 62% rename from assets/index-b6b14973.js rename to assets/index-4cfed331.js index b568fcd8..22001b7f 100644 --- a/assets/index-b6b14973.js +++ b/assets/index-4cfed331.js @@ -1,4 +1,4 @@ -var Moe=Object.defineProperty;var Loe=(e,t,n)=>t in e?Moe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var gm=(e,t,n)=>(Loe(e,typeof t!="symbol"?t+"":t,n),n),sD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var rt=(e,t,n)=>(sD(e,t,"read from private field"),n?n.call(e):t.get(e)),yr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},du=(e,t,n,r)=>(sD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var ZU=(e,t,n,r)=>({set _(i){du(e,t,i,n)},get _(){return rt(e,t,r)}}),oo=(e,t,n)=>(sD(e,t,"access private method"),n);function Doe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var Xt=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function o4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var nX={exports:{}},RT={},rX={exports:{}},hn={};/** +var $oe=Object.defineProperty;var Foe=(e,t,n)=>t in e?$oe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var vm=(e,t,n)=>(Foe(e,typeof t!="symbol"?t+"":t,n),n),lL=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var rt=(e,t,n)=>(lL(e,t,"read from private field"),n?n.call(e):t.get(e)),yr=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},fu=(e,t,n,r)=>(lL(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var n6=(e,t,n,r)=>({set _(i){fu(e,t,i,n)},get _(){return rt(e,t,r)}}),oo=(e,t,n)=>(lL(e,t,"access private method"),n);function zoe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const o of i)if(o.type==="childList")for(const s of o.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const o={};return i.integrity&&(o.integrity=i.integrity),i.referrerPolicy&&(o.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?o.credentials="include":i.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(i){if(i.ep)return;i.ep=!0;const o=n(i);fetch(i.href,o)}})();var $t=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ds(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function l4(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?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(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var iX={exports:{}},PT={},oX={exports:{}},hn={};/** * @license React * react.production.min.js * @@ -6,7 +6,7 @@ var Moe=Object.defineProperty;var Loe=(e,t,n)=>t in e?Moe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var hw=Symbol.for("react.element"),Noe=Symbol.for("react.portal"),Boe=Symbol.for("react.fragment"),$oe=Symbol.for("react.strict_mode"),Foe=Symbol.for("react.profiler"),zoe=Symbol.for("react.provider"),joe=Symbol.for("react.context"),Uoe=Symbol.for("react.forward_ref"),Hoe=Symbol.for("react.suspense"),Woe=Symbol.for("react.memo"),Goe=Symbol.for("react.lazy"),e6=Symbol.iterator;function Voe(e){return e===null||typeof e!="object"?null:(e=e6&&e[e6]||e["@@iterator"],typeof e=="function"?e:null)}var iX={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},oX=Object.assign,sX={};function mv(e,t,n){this.props=e,this.context=t,this.refs=sX,this.updater=n||iX}mv.prototype.isReactComponent={};mv.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};mv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function aX(){}aX.prototype=mv.prototype;function s4(e,t,n){this.props=e,this.context=t,this.refs=sX,this.updater=n||iX}var a4=s4.prototype=new aX;a4.constructor=s4;oX(a4,mv.prototype);a4.isPureReactComponent=!0;var t6=Array.isArray,lX=Object.prototype.hasOwnProperty,l4={current:null},cX={key:!0,ref:!0,__self:!0,__source:!0};function uX(e,t,n){var r,i={},o=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(o=""+t.key),t)lX.call(t,r)&&!cX.hasOwnProperty(r)&&(i[r]=t[r]);var a=arguments.length-2;if(a===1)i.children=n;else if(1t in e?Moe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Qoe=R,Joe=Symbol.for("react.element"),Zoe=Symbol.for("react.fragment"),ese=Object.prototype.hasOwnProperty,tse=Qoe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,nse={key:!0,ref:!0,__self:!0,__source:!0};function dX(e,t,n){var r,i={},o=null,s=null;n!==void 0&&(o=""+n),t.key!==void 0&&(o=""+t.key),t.ref!==void 0&&(s=t.ref);for(r in t)ese.call(t,r)&&!nse.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:Joe,type:e,key:o,ref:s,props:i,_owner:tse.current}}RT.Fragment=Zoe;RT.jsx=dX;RT.jsxs=dX;nX.exports=RT;var C=nX.exports;const rse={black:"#000",white:"#fff"},Mg=rse,ise={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"},ud=ise,ose={50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162"},fX=ose,sse={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"},Xh=sse,ase={50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea"},hX=ase,lse={50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe"},cse=lse,use={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"},dd=use,dse={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"},Yh=dse,fse={50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4"},hse=fse,pse={50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5"},mse=pse,gse={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"},fd=gse,vse={50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17"},yse=vse,bse={50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00"},xse=bse,wse={50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600"},pX=wse,_se={50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00"},Sse=_se,Ese={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"},ap=Ese,Cse={50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00"},Tse=Cse,kse={50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037"},Ase=kse,Ise={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"},u4=Ise,Rse={50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64"},Pse=Rse,mX=Object.freeze(Object.defineProperty({__proto__:null,amber:Sse,blue:dd,blueGrey:Pse,brown:Ase,common:Mg,cyan:hse,deepOrange:Tse,deepPurple:hX,green:fd,grey:u4,indigo:cse,lightBlue:Yh,lightGreen:yse,lime:xse,orange:ap,pink:fX,purple:Xh,red:ud,teal:mse,yellow:pX},Symbol.toStringTag,{value:"Module"}));function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t{t[n]=gX(e[n])}),t}function ns(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return lp(e)&&lp(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(lp(t[i])&&i in e&&lp(e[i])?r[i]=ns(e[i],t[i],n):n.clone?r[i]=lp(t[i])?gX(t[i]):t[i]:r[i]=t[i])}),r}var vX={exports:{}},Ose="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Mse=Ose,Lse=Mse;function yX(){}function bX(){}bX.resetWarningCache=yX;var Dse=function(){function e(r,i,o,s,a,c){if(c!==Lse){var u=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 u.name="Invariant Violation",u}}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:bX,resetWarningCache:yX};return n.PropTypes=n,n};vX.exports=Dse();var pw=vX.exports;const pb=ds(pw);function Jd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function PT(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function KS(e,t){var n,r;return R.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Fr(e){return e&&e.ownerDocument||document}function Du(e){return Fr(e).defaultView||window}function X$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const Nse=typeof window<"u"?R.useLayoutEffect:R.useEffect,jo=Nse;let i6=0;function Bse(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(i6+=1,n(`mui-${i6}`))},[t]),r}const o6=zE["useId".toString()];function d4(e){if(o6!==void 0){const t=o6();return e??t}return Bse(e)}function r1({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=R.useRef(e!==void 0),[o,s]=R.useState(t),a=i?e:o,c=R.useCallback(u=>{i||s(u)},[]);return[a,c]}function mo(e){const t=R.useRef(e);return jo(()=>{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function Tr(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{X$(n,t)})},e)}let OT=!0,Y$=!1,s6;const $se={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Fse(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&$se[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function zse(e){e.metaKey||e.altKey||e.ctrlKey||(OT=!0)}function lD(){OT=!1}function jse(){this.visibilityState==="hidden"&&Y$&&(OT=!0)}function Use(e){e.addEventListener("keydown",zse,!0),e.addEventListener("mousedown",lD,!0),e.addEventListener("pointerdown",lD,!0),e.addEventListener("touchstart",lD,!0),e.addEventListener("visibilitychange",jse,!0)}function Hse(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return OT||Fse(t)}function f4(){const e=R.useCallback(i=>{i!=null&&Use(i.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(Y$=!0,window.clearTimeout(s6),s6=window.setTimeout(()=>{Y$=!1},100),t.current=!1,!0):!1}function r(i){return Hse(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function xX(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let vm;function wX(){if(vm)return vm;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),vm="reverse",e.scrollLeft>0?vm="default":(e.scrollLeft=1,e.scrollLeft===0&&(vm="negative")),document.body.removeChild(e),vm}function Wse(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(wX()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Gse={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Vse=Gse;function h4(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=h4(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function At(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const a6=e=>e,qse=()=>{let e=a6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=a6}}},Xse=qse(),_X=Xse,Yse={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=Yse[t];return r?`${n}-${r}`:`${_X.generate(e)}-${t}`}function It(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ct(e,i,n)}),r}const Pp="$$material";function Ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function SX(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var Kse=/^((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|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,Qse=SX(function(e){return Kse.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function Jse(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yi(gv,--cs):0,Lg--,ii===10&&(Lg=1,LT--),ii}function Hs(){return ii=cs2||o1(ii)>3?"":" "}function dae(e,t){for(;--t&&Hs()&&!(ii<48||ii>102||ii>57&&ii<65||ii>70&&ii<97););return mw(e,QS()+(t<6&&Jl()==32&&Hs()==32))}function Q$(e){for(;Hs();)switch(ii){case e:return cs;case 34:case 39:e!==34&&e!==39&&Q$(ii);break;case 40:e===41&&Q$(e);break;case 92:Hs();break}return cs}function fae(e,t){for(;Hs()&&e+ii!==47+10;)if(e+ii===42+42&&Jl()===47)break;return"/*"+mw(t,cs-1)+"*"+MT(e===47?e:Hs())}function hae(e){for(;!o1(Jl());)Hs();return mw(e,cs)}function pae(e){return IX(ZS("",null,null,null,[""],e=AX(e),0,[0],e))}function ZS(e,t,n,r,i,o,s,a,c){for(var u=0,f=0,h=s,p=0,g=0,v=0,y=1,S=1,w=1,b=0,x="",E=i,I=o,A=r,k=x;S;)switch(v=b,b=Hs()){case 40:if(v!=108&&Yi(k,h-1)==58){K$(k+=Mn(JS(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=JS(b);break;case 9:case 10:case 13:case 32:k+=uae(v);break;case 92:k+=dae(QS()-1,7);continue;case 47:switch(Jl()){case 42:case 47:a_(mae(fae(Hs(),QS()),t,n),c);break;default:k+="/"}break;case 123*y:a[u++]=Hl(k)*w;case 125*y:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+f:w==-1&&(k=Mn(k,/\f/g,"")),g>0&&Hl(k)-h&&a_(g>32?c6(k+";",r,n,h-1):c6(Mn(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(a_(A=l6(k,t,n,u,f,i,a,x,E=[],I=[],h),o),b===123)if(f===0)ZS(k,t,A,A,E,o,h,a,I);else switch(p===99&&Yi(k,3)===110?100:p){case 100:case 108:case 109:case 115:ZS(e,A,A,r&&a_(l6(e,A,A,0,0,i,a,x,i,E=[],h),I),i,I,h,a,r?E:I);break;default:ZS(k,A,A,A,[""],I,0,a,I)}}u=f=g=0,y=w=1,x=k="",h=s;break;case 58:h=1+Hl(k),g=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&cae()==125)continue}switch(k+=MT(b),b*y){case 38:w=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(Hl(k)-1)*w,w=1;break;case 64:Jl()===45&&(k+=JS(Hs())),p=Jl(),f=h=Hl(x=k+=hae(QS())),b++;break;case 45:v===45&&Hl(k)==2&&(y=0)}}return o}function l6(e,t,n,r,i,o,s,a,c,u,f){for(var h=i-1,p=i===0?o:[""],g=g4(p),v=0,y=0,S=0;v0?p[w]+" "+b:Mn(b,/&\f/g,p[w])))&&(c[S++]=x);return DT(e,t,n,i===0?p4:a,c,u,f)}function mae(e,t,n){return DT(e,t,n,EX,MT(lae()),i1(e,2,-2),0)}function c6(e,t,n,r){return DT(e,t,n,m4,i1(e,0,r),i1(e,r+1,-1),r)}function hg(e,t){for(var n="",r=g4(e),i=0;i6)switch(Yi(e,t+1)){case 109:if(Yi(e,t+4)!==45)break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+On+"$2-$3$1"+jE+(Yi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~K$(e,"stretch")?RX(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yi(e,t+1)!==115)break;case 6444:switch(Yi(e,Hl(e)-3-(~K$(e,"!important")&&10))){case 107:return Mn(e,":",":"+On)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+On+(Yi(e,14)===45?"inline-":"")+"box$3$1"+On+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Yi(e,t+11)){case 114:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return On+e+lo+e+e}return e}var Eae=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case m4:t.return=RX(t.value,t.length);break;case CX:return hg([mb(t,{value:Mn(t.value,"@","@"+On)})],i);case p4:if(t.length)return aae(t.props,function(o){switch(sae(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return hg([mb(t,{props:[Mn(o,/:(read-\w+)/,":"+jE+"$1")]})],i);case"::placeholder":return hg([mb(t,{props:[Mn(o,/:(plac\w+)/,":"+On+"input-$1")]}),mb(t,{props:[Mn(o,/:(plac\w+)/,":"+jE+"$1")]}),mb(t,{props:[Mn(o,/:(plac\w+)/,lo+"input-$1")]})],i)}return""})}},Cae=[Eae],Tae=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(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Cae,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),w=1;w{t[n]=yX(e[n])}),t}function ns(e,t,n={clone:!0}){const r=n.clone?$({},e):e;return up(e)&&up(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(up(t[i])&&i in e&&up(e[i])?r[i]=ns(e[i],t[i],n):n.clone?r[i]=up(t[i])?yX(t[i]):t[i]:r[i]=t[i])}),r}var bX={exports:{}},Bse="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",$se=Bse,Fse=$se;function xX(){}function wX(){}wX.resetWarningCache=xX;var zse=function(){function e(r,i,o,s,a,c){if(c!==Fse){var u=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 u.name="Invariant Violation",u}}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:wX,resetWarningCache:xX};return n.PropTypes=n,n};bX.exports=zse();var vv=bX.exports;const gb=ds(vv);function Zd(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;nn==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function OT(e,t=166){let n;function r(...i){const o=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function QS(e,t){var n,r;return R.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Fr(e){return e&&e.ownerDocument||document}function Nu(e){return Fr(e).defaultView||window}function Q$(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const jse=typeof window<"u"?R.useLayoutEffect:R.useEffect,jo=jse;let a6=0;function Use(e){const[t,n]=R.useState(e),r=e||t;return R.useEffect(()=>{t==null&&(a6+=1,n(`mui-${a6}`))},[t]),r}const l6=jE["useId".toString()];function p4(e){if(l6!==void 0){const t=l6();return e??t}return Use(e)}function o1({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=R.useRef(e!==void 0),[o,s]=R.useState(t),a=i?e:o,c=R.useCallback(u=>{i||s(u)},[]);return[a,c]}function mo(e){const t=R.useRef(e);return jo(()=>{t.current=e}),R.useCallback((...n)=>(0,t.current)(...n),[])}function Tr(...e){return R.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Q$(n,t)})},e)}let MT=!0,J$=!1,c6;const Hse={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Wse(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Hse[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Gse(e){e.metaKey||e.altKey||e.ctrlKey||(MT=!0)}function uL(){MT=!1}function Vse(){this.visibilityState==="hidden"&&J$&&(MT=!0)}function qse(e){e.addEventListener("keydown",Gse,!0),e.addEventListener("mousedown",uL,!0),e.addEventListener("pointerdown",uL,!0),e.addEventListener("touchstart",uL,!0),e.addEventListener("visibilitychange",Vse,!0)}function Xse(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return MT||Wse(t)}function m4(){const e=R.useCallback(i=>{i!=null&&qse(i.ownerDocument)},[]),t=R.useRef(!1);function n(){return t.current?(J$=!0,window.clearTimeout(c6),c6=window.setTimeout(()=>{J$=!1},100),t.current=!1,!0):!1}function r(i){return Xse(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function _X(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let ym;function SX(){if(ym)return ym;const e=document.createElement("div"),t=document.createElement("div");return t.style.width="10px",t.style.height="1px",e.appendChild(t),e.dir="rtl",e.style.fontSize="14px",e.style.width="4px",e.style.height="1px",e.style.position="absolute",e.style.top="-1000px",e.style.overflow="scroll",document.body.appendChild(e),ym="reverse",e.scrollLeft>0?ym="default":(e.scrollLeft=1,e.scrollLeft===0&&(ym="negative")),document.body.removeChild(e),ym}function Yse(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(SX()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const Kse={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},Qse=Kse;function g4(e,t){const n=$({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=$({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},o=t[r];n[r]={},!o||!Object.keys(o)?n[r]=i:!i||!Object.keys(i)?n[r]=o:(n[r]=$({},o),Object.keys(i).forEach(s=>{n[r][s]=g4(i[s],o[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function At(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((o,s)=>{if(s){const a=t(s);a!==""&&o.push(a),n&&n[s]&&o.push(n[s])}return o},[]).join(" ")}),r}const u6=e=>e,Jse=()=>{let e=u6;return{configure(t){e=t},generate(t){return e(t)},reset(){e=u6}}},Zse=Jse(),EX=Zse,eae={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=eae[t];return r?`${n}-${r}`:`${EX.generate(e)}-${t}`}function It(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=Ct(e,i,n)}),r}const Mp="$$material";function Ne(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o=0)&&(n[i]=e[i]);return n}function CX(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tae=/^((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|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,nae=CX(function(e){return tae.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function rae(e){if(e.sheet)return e.sheet;for(var t=0;t0?Yi(yv,--cs):0,Lg--,ii===10&&(Lg=1,LT--),ii}function Hs(){return ii=cs2||a1(ii)>3?"":" "}function gae(e,t){for(;--t&&Hs()&&!(ii<48||ii>102||ii>57&&ii<65||ii>70&&ii<97););return gw(e,JS()+(t<6&&ec()==32&&Hs()==32))}function eF(e){for(;Hs();)switch(ii){case e:return cs;case 34:case 39:e!==34&&e!==39&&eF(ii);break;case 40:e===41&&eF(e);break;case 92:Hs();break}return cs}function vae(e,t){for(;Hs()&&e+ii!==47+10;)if(e+ii===42+42&&ec()===47)break;return"/*"+gw(t,cs-1)+"*"+DT(e===47?e:Hs())}function yae(e){for(;!a1(ec());)Hs();return gw(e,cs)}function bae(e){return PX(eE("",null,null,null,[""],e=RX(e),0,[0],e))}function eE(e,t,n,r,i,o,s,a,c){for(var u=0,f=0,h=s,p=0,g=0,v=0,y=1,S=1,w=1,b=0,x="",E=i,I=o,A=r,k=x;S;)switch(v=b,b=Hs()){case 40:if(v!=108&&Yi(k,h-1)==58){Z$(k+=Mn(ZS(b),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:k+=ZS(b);break;case 9:case 10:case 13:case 32:k+=mae(v);break;case 92:k+=gae(JS()-1,7);continue;case 47:switch(ec()){case 42:case 47:l_(xae(vae(Hs(),JS()),t,n),c);break;default:k+="/"}break;case 123*y:a[u++]=Gl(k)*w;case 125*y:case 59:case 0:switch(b){case 0:case 125:S=0;case 59+f:w==-1&&(k=Mn(k,/\f/g,"")),g>0&&Gl(k)-h&&l_(g>32?f6(k+";",r,n,h-1):f6(Mn(k," ","")+";",r,n,h-2),c);break;case 59:k+=";";default:if(l_(A=d6(k,t,n,u,f,i,a,x,E=[],I=[],h),o),b===123)if(f===0)eE(k,t,A,A,E,o,h,a,I);else switch(p===99&&Yi(k,3)===110?100:p){case 100:case 108:case 109:case 115:eE(e,A,A,r&&l_(d6(e,A,A,0,0,i,a,x,i,E=[],h),I),i,I,h,a,r?E:I);break;default:eE(k,A,A,A,[""],I,0,a,I)}}u=f=g=0,y=w=1,x=k="",h=s;break;case 58:h=1+Gl(k),g=v;default:if(y<1){if(b==123)--y;else if(b==125&&y++==0&&pae()==125)continue}switch(k+=DT(b),b*y){case 38:w=f>0?1:(k+="\f",-1);break;case 44:a[u++]=(Gl(k)-1)*w,w=1;break;case 64:ec()===45&&(k+=ZS(Hs())),p=ec(),f=h=Gl(x=k+=yae(JS())),b++;break;case 45:v===45&&Gl(k)==2&&(y=0)}}return o}function d6(e,t,n,r,i,o,s,a,c,u,f){for(var h=i-1,p=i===0?o:[""],g=b4(p),v=0,y=0,S=0;v0?p[w]+" "+b:Mn(b,/&\f/g,p[w])))&&(c[S++]=x);return NT(e,t,n,i===0?v4:a,c,u,f)}function xae(e,t,n){return NT(e,t,n,TX,DT(hae()),s1(e,2,-2),0)}function f6(e,t,n,r){return NT(e,t,n,y4,s1(e,0,r),s1(e,r+1,-1),r)}function pg(e,t){for(var n="",r=b4(e),i=0;i6)switch(Yi(e,t+1)){case 109:if(Yi(e,t+4)!==45)break;case 102:return Mn(e,/(.+:)(.+)-([^]+)/,"$1"+On+"$2-$3$1"+UE+(Yi(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Z$(e,"stretch")?OX(Mn(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(Yi(e,t+1)!==115)break;case 6444:switch(Yi(e,Gl(e)-3-(~Z$(e,"!important")&&10))){case 107:return Mn(e,":",":"+On)+e;case 101:return Mn(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+On+(Yi(e,14)===45?"inline-":"")+"box$3$1"+On+"$2$3$1"+lo+"$2box$3")+e}break;case 5936:switch(Yi(e,t+11)){case 114:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return On+e+lo+Mn(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return On+e+lo+e+e}return e}var Iae=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case y4:t.return=OX(t.value,t.length);break;case kX:return pg([vb(t,{value:Mn(t.value,"@","@"+On)})],i);case v4:if(t.length)return fae(t.props,function(o){switch(dae(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return pg([vb(t,{props:[Mn(o,/:(read-\w+)/,":"+UE+"$1")]})],i);case"::placeholder":return pg([vb(t,{props:[Mn(o,/:(plac\w+)/,":"+On+"input-$1")]}),vb(t,{props:[Mn(o,/:(plac\w+)/,":"+UE+"$1")]}),vb(t,{props:[Mn(o,/:(plac\w+)/,lo+"input-$1")]})],i)}return""})}},Rae=[Iae],Pae=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(y){var S=y.getAttribute("data-emotion");S.indexOf(" ")!==-1&&(document.head.appendChild(y),y.setAttribute("data-s",""))})}var i=t.stylisPlugins||Rae,o={},s,a=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(y){for(var S=y.getAttribute("data-emotion").split(" "),w=1;w=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 Wae={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},Gae=/[A-Z]|^ms/g,Vae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,BX=function(t){return t.charCodeAt(1)===45},m6=function(t){return t!=null&&typeof t!="boolean"},cD=SX(function(e){return BX(e)?e:e.replace(Gae,"-$&").toLowerCase()}),g6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Vae,function(r,i,o){return Wl={name:i,styles:o,next:Wl},i})}return Wae[t]!==1&&!BX(t)&&typeof n=="number"&&n!==0?n+"px":n};function s1(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Wl={name:n.name,styles:n.styles,next:Wl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Wl={name:r.name,styles:r.styles,next:Wl},r=r.next;var i=n.styles+";";return i}return qae(e,t,n)}case"function":{if(e!==void 0){var o=Wl,s=n(e);return Wl=o,s1(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function qae(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?Qae:Jae},x6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},Zae=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return DX(n,r,i),Yae(function(){return NX(n,r,i)}),null},ele=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=x6(t,n,r),c=a||b6(i),u=!c("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,g=1;gt(nle(i)?n:i):t;return C.jsx(Kae,{styles:r})}/** + */var Di=typeof Symbol=="function"&&Symbol.for,x4=Di?Symbol.for("react.element"):60103,w4=Di?Symbol.for("react.portal"):60106,BT=Di?Symbol.for("react.fragment"):60107,$T=Di?Symbol.for("react.strict_mode"):60108,FT=Di?Symbol.for("react.profiler"):60114,zT=Di?Symbol.for("react.provider"):60109,jT=Di?Symbol.for("react.context"):60110,_4=Di?Symbol.for("react.async_mode"):60111,UT=Di?Symbol.for("react.concurrent_mode"):60111,HT=Di?Symbol.for("react.forward_ref"):60112,WT=Di?Symbol.for("react.suspense"):60113,Oae=Di?Symbol.for("react.suspense_list"):60120,GT=Di?Symbol.for("react.memo"):60115,VT=Di?Symbol.for("react.lazy"):60116,Mae=Di?Symbol.for("react.block"):60121,Dae=Di?Symbol.for("react.fundamental"):60117,Lae=Di?Symbol.for("react.responder"):60118,Nae=Di?Symbol.for("react.scope"):60119;function ra(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case x4:switch(e=e.type,e){case _4:case UT:case BT:case FT:case $T:case WT:return e;default:switch(e=e&&e.$$typeof,e){case jT:case HT:case VT:case GT:case zT:return e;default:return t}}case w4:return t}}}function DX(e){return ra(e)===UT}Hn.AsyncMode=_4;Hn.ConcurrentMode=UT;Hn.ContextConsumer=jT;Hn.ContextProvider=zT;Hn.Element=x4;Hn.ForwardRef=HT;Hn.Fragment=BT;Hn.Lazy=VT;Hn.Memo=GT;Hn.Portal=w4;Hn.Profiler=FT;Hn.StrictMode=$T;Hn.Suspense=WT;Hn.isAsyncMode=function(e){return DX(e)||ra(e)===_4};Hn.isConcurrentMode=DX;Hn.isContextConsumer=function(e){return ra(e)===jT};Hn.isContextProvider=function(e){return ra(e)===zT};Hn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===x4};Hn.isForwardRef=function(e){return ra(e)===HT};Hn.isFragment=function(e){return ra(e)===BT};Hn.isLazy=function(e){return ra(e)===VT};Hn.isMemo=function(e){return ra(e)===GT};Hn.isPortal=function(e){return ra(e)===w4};Hn.isProfiler=function(e){return ra(e)===FT};Hn.isStrictMode=function(e){return ra(e)===$T};Hn.isSuspense=function(e){return ra(e)===WT};Hn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===BT||e===UT||e===FT||e===$T||e===WT||e===Oae||typeof e=="object"&&e!==null&&(e.$$typeof===VT||e.$$typeof===GT||e.$$typeof===zT||e.$$typeof===jT||e.$$typeof===HT||e.$$typeof===Dae||e.$$typeof===Lae||e.$$typeof===Nae||e.$$typeof===Mae)};Hn.typeOf=ra;MX.exports=Hn;var Bae=MX.exports,S4=Bae,$ae={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},Fae={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},zae={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},LX={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},E4={};E4[S4.ForwardRef]=zae;E4[S4.Memo]=LX;function p6(e){return S4.isMemo(e)?LX:E4[e.$$typeof]||$ae}var jae=Object.defineProperty,Uae=Object.getOwnPropertyNames,m6=Object.getOwnPropertySymbols,Hae=Object.getOwnPropertyDescriptor,Wae=Object.getPrototypeOf,g6=Object.prototype;function NX(e,t,n){if(typeof t!="string"){if(g6){var r=Wae(t);r&&r!==g6&&NX(e,r,n)}var i=Uae(t);m6&&(i=i.concat(m6(t)));for(var o=p6(e),s=p6(t),a=0;a=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 Yae={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},Kae=/[A-Z]|^ms/g,Qae=/_EMO_([^_]+?)_([^]*?)_EMO_/g,FX=function(t){return t.charCodeAt(1)===45},y6=function(t){return t!=null&&typeof t!="boolean"},dL=CX(function(e){return FX(e)?e:e.replace(Kae,"-$&").toLowerCase()}),b6=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Qae,function(r,i,o){return Vl={name:i,styles:o,next:Vl},i})}return Yae[t]!==1&&!FX(t)&&typeof n=="number"&&n!==0?n+"px":n};function l1(e,t,n){if(n==null)return"";if(n.__emotion_styles!==void 0)return n;switch(typeof n){case"boolean":return"";case"object":{if(n.anim===1)return Vl={name:n.name,styles:n.styles,next:Vl},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)Vl={name:r.name,styles:r.styles,next:Vl},r=r.next;var i=n.styles+";";return i}return Jae(e,t,n)}case"function":{if(e!==void 0){var o=Vl,s=n(e);return Vl=o,l1(e,t,s)}break}}if(t==null)return n;var a=t[n];return a!==void 0?a:n}function Jae(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?nle:rle},S6=function(t,n,r){var i;if(n){var o=n.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(s){return t.__emotion_forwardProp(s)&&o(s)}:o}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},ile=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return BX(n,r,i),ele(function(){return $X(n,r,i)}),null},ole=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,o,s;n!==void 0&&(o=n.label,s=n.target);var a=S6(t,n,r),c=a||_6(i),u=!c("as");return function(){var f=arguments,h=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(o!==void 0&&h.push("label:"+o+";"),f[0]==null||f[0].raw===void 0)h.push.apply(h,f);else{h.push(f[0][0]);for(var p=f.length,g=1;gt(ale(i)?n:i):t;return C.jsx(tle,{styles:r})}/** * @mui/styled-engine v5.14.11 * * @license MIT * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */function jX(e,t){return J$(e,t)}const ile=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ole=["values","unit","step"],sle=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 ale(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ne(e,ole),o=sle(t),s=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const v=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:g)-r/100}${n})`}function f(p){return s.indexOf(p)+1`@media (min-width:${S4[e]}px)`};function kl(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||w6;return t.reduce((s,a,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=r.breakpoints||w6;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||S4).indexOf(a)!==-1){const c=o.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function UX(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function HX(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function ule(e,...t){const n=UX(e),r=[n,...t].reduce((i,o)=>ns(i,o),{});return HX(Object.keys(n),r)}function dle(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function uD({values:e,breakpoints:t,base:n}){const r=n||dle(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function qT(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function UE(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=qT(e,n)||r,t&&(i=t(i,r,e)),i}function Ln(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,u=qT(c,r)||{};return kl(s,a,h=>{let p=UE(u,i,h);return h===p&&typeof h=="string"&&(p=UE(u,i,`${t}${h==="default"?"":Le(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function fle(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const hle={m:"margin",p:"padding"},ple={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},_6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},mle=fle(e=>{if(e.length>2)if(_6[e])e=_6[e];else return[e];const[t,n]=e.split(""),r=hle[t],i=ple[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),E4=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],C4=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...E4,...C4];function gw(e,t,n,r){var i;const o=(i=qT(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function T4(e){return gw(e,"spacing",8)}function Op(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function gle(e,t){return n=>e.reduce((r,i)=>(r[i]=Op(t,n),r),{})}function vle(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=mle(n),o=gle(i,r),s=e[n];return kl(e,s,o)}function WX(e,t){const n=T4(e.theme);return Object.keys(e).map(r=>vle(e,t,r,n)).reduce(_x,{})}function Gr(e){return WX(e,E4)}Gr.propTypes={};Gr.filterProps=E4;function Vr(e){return WX(e,C4)}Vr.propTypes={};Vr.filterProps=C4;function yle(e=8){if(e.mui)return e;const t=T4({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function XT(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?_x(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function ql(e){return typeof e!="number"?e:`${e}px solid`}const ble=Ln({prop:"border",themeKey:"borders",transform:ql}),xle=Ln({prop:"borderTop",themeKey:"borders",transform:ql}),wle=Ln({prop:"borderRight",themeKey:"borders",transform:ql}),_le=Ln({prop:"borderBottom",themeKey:"borders",transform:ql}),Sle=Ln({prop:"borderLeft",themeKey:"borders",transform:ql}),Ele=Ln({prop:"borderColor",themeKey:"palette"}),Cle=Ln({prop:"borderTopColor",themeKey:"palette"}),Tle=Ln({prop:"borderRightColor",themeKey:"palette"}),kle=Ln({prop:"borderBottomColor",themeKey:"palette"}),Ale=Ln({prop:"borderLeftColor",themeKey:"palette"}),YT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=gw(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Op(t,r)});return kl(e,e.borderRadius,n)}return null};YT.propTypes={};YT.filterProps=["borderRadius"];XT(ble,xle,wle,_le,Sle,Ele,Cle,Tle,kle,Ale,YT);const KT=e=>{if(e.gap!==void 0&&e.gap!==null){const t=gw(e.theme,"spacing",8),n=r=>({gap:Op(t,r)});return kl(e,e.gap,n)}return null};KT.propTypes={};KT.filterProps=["gap"];const QT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=gw(e.theme,"spacing",8),n=r=>({columnGap:Op(t,r)});return kl(e,e.columnGap,n)}return null};QT.propTypes={};QT.filterProps=["columnGap"];const JT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=gw(e.theme,"spacing",8),n=r=>({rowGap:Op(t,r)});return kl(e,e.rowGap,n)}return null};JT.propTypes={};JT.filterProps=["rowGap"];const Ile=Ln({prop:"gridColumn"}),Rle=Ln({prop:"gridRow"}),Ple=Ln({prop:"gridAutoFlow"}),Ole=Ln({prop:"gridAutoColumns"}),Mle=Ln({prop:"gridAutoRows"}),Lle=Ln({prop:"gridTemplateColumns"}),Dle=Ln({prop:"gridTemplateRows"}),Nle=Ln({prop:"gridTemplateAreas"}),Ble=Ln({prop:"gridArea"});XT(KT,QT,JT,Ile,Rle,Ple,Ole,Mle,Lle,Dle,Nle,Ble);function pg(e,t){return t==="grey"?t:e}const $le=Ln({prop:"color",themeKey:"palette",transform:pg}),Fle=Ln({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:pg}),zle=Ln({prop:"backgroundColor",themeKey:"palette",transform:pg});XT($le,Fle,zle);function Bs(e){return e<=1&&e!==0?`${e*100}%`:e}const jle=Ln({prop:"width",transform:Bs}),k4=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||S4[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bs(n)}};return kl(e,e.maxWidth,t)}return null};k4.filterProps=["maxWidth"];const Ule=Ln({prop:"minWidth",transform:Bs}),Hle=Ln({prop:"height",transform:Bs}),Wle=Ln({prop:"maxHeight",transform:Bs}),Gle=Ln({prop:"minHeight",transform:Bs});Ln({prop:"size",cssProperty:"width",transform:Bs});Ln({prop:"size",cssProperty:"height",transform:Bs});const Vle=Ln({prop:"boxSizing"});XT(jle,k4,Ule,Hle,Wle,Gle,Vle);const qle={border:{themeKey:"borders",transform:ql},borderTop:{themeKey:"borders",transform:ql},borderRight:{themeKey:"borders",transform:ql},borderBottom:{themeKey:"borders",transform:ql},borderLeft:{themeKey:"borders",transform:ql},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:YT},color:{themeKey:"palette",transform:pg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:pg},backgroundColor:{themeKey:"palette",transform:pg},p:{style:Vr},pt:{style:Vr},pr:{style:Vr},pb:{style:Vr},pl:{style:Vr},px:{style:Vr},py:{style:Vr},padding:{style:Vr},paddingTop:{style:Vr},paddingRight:{style:Vr},paddingBottom:{style:Vr},paddingLeft:{style:Vr},paddingX:{style:Vr},paddingY:{style:Vr},paddingInline:{style:Vr},paddingInlineStart:{style:Vr},paddingInlineEnd:{style:Vr},paddingBlock:{style:Vr},paddingBlockStart:{style:Vr},paddingBlockEnd:{style:Vr},m:{style:Gr},mt:{style:Gr},mr:{style:Gr},mb:{style:Gr},ml:{style:Gr},mx:{style:Gr},my:{style:Gr},margin:{style:Gr},marginTop:{style:Gr},marginRight:{style:Gr},marginBottom:{style:Gr},marginLeft:{style:Gr},marginX:{style:Gr},marginY:{style:Gr},marginInline:{style:Gr},marginInlineStart:{style:Gr},marginInlineEnd:{style:Gr},marginBlock:{style:Gr},marginBlockStart:{style:Gr},marginBlockEnd:{style:Gr},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:KT},rowGap:{style:JT},columnGap:{style:QT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bs},maxWidth:{style:k4},minWidth:{transform:Bs},height:{transform:Bs},maxHeight:{transform:Bs},minHeight:{transform:Bs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ZT=qle;function Xle(...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 Yle(e,t){return typeof e=="function"?e(t):e}function Kle(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:f,style:h}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=qT(i,u)||{};return h?h(s):kl(s,r,v=>{let y=UE(p,f,v);return v===y&&typeof v=="string"&&(y=UE(p,f,`${n}${v==="default"?"":Le(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:ZT;function a(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const f=UX(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(u).forEach(g=>{const v=Yle(u[g],o);if(v!=null)if(typeof v=="object")if(s[g])p=_x(p,e(g,v,o,s));else{const y=kl({theme:o},v,S=>({[g]:S}));Xle(y,v)?p[g]=t({sx:v,theme:o}):p=_x(p,y)}else p=_x(p,e(g,v,o,s))}),HX(h,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const GX=Kle();GX.filterProps=["sx"];const ek=GX,Qle=["breakpoints","palette","spacing","shape"];function tk(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Ne(e,Qle),a=ale(n),c=yle(i);let u=ns({breakpoints:a,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:c,shape:$({},cle,o)},s);return u=t.reduce((f,h)=>ns(f,h),u),u.unstable_sxConfig=$({},ZT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return ek({sx:h,theme:this})},u}function Jle(e){return Object.keys(e).length===0}function nk(e=null){const t=R.useContext(VT);return!t||Jle(t)?e:t}const Zle=tk();function rk(e=Zle){return nk(e)}function ece({styles:e,themeId:t,defaultTheme:n={}}){const r=rk(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(rle,{styles:i})}const tce=["sx"],nce=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ZT;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function A4(e){const{sx:t}=e,n=Ne(e,tce),{systemProps:r,otherProps:i}=nce(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return lp(a)?$({},r,a):r}:o=$({},r,t),$({},i,{sx:o})}function VX(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(ek);return R.forwardRef(function(c,u){const f=rk(n),h=A4(c),{className:p,component:g="div"}=h,v=Ne(h,rce);return C.jsx(o,$({as:g,ref:u,className:Ue(p,i?i(r):r),theme:t&&f[t]||f},v))})}const oce=["variant"];function S6(e){return e.length===0}function qX(e){const{variant:t}=e,n=Ne(e,oce);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=S6(r)?e[i]:Le(e[i]):r+=`${S6(r)?i:Le(i)}${Le(e[i].toString())}`}),r}const sce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function ace(e){return Object.keys(e).length===0}function lce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const cce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,uce=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=qX(i.props);r[o]=i.style}),r},dce=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return a&&a.forEach(c=>{let u=!0;Object.keys(c.props).forEach(f=>{o[f]!==c.props[f]&&e[f]!==c.props[f]&&(u=!1)}),u&&s.push(t[qX(c.props)])}),s};function Sx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const fce=tk(),hce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function gb({defaultTheme:e,theme:t,themeId:n}){return ace(t)?e:t[n]||t}function pce(e){return e?(t,n)=>n[e]:null}function XX(e={}){const{themeId:t,defaultTheme:n=fce,rootShouldForwardProp:r=Sx,slotShouldForwardProp:i=Sx}=e,o=s=>ek($({},s,{theme:gb($({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{ile(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=pce(hce(u))}=a,g=Ne(a,sce),v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let S,w=Sx;u==="Root"||u==="root"?w=r:u?w=i:lce(s)&&(w=void 0);const b=jX(s,$({shouldForwardProp:w,label:S},g)),x=(E,...I)=>{const A=I?I.map(N=>typeof N=="function"&&N.__emotion_real!==N?H=>N($({},H,{theme:gb($({},H,{defaultTheme:n,themeId:t}))})):N):[];let k=E;c&&p&&A.push(N=>{const H=gb($({},N,{defaultTheme:n,themeId:t})),G=cce(c,H);if(G){const z={};return Object.entries(G).forEach(([L,F])=>{z[L]=typeof F=="function"?F($({},N,{theme:H})):F}),p(N,z)}return null}),c&&!v&&A.push(N=>{const H=gb($({},N,{defaultTheme:n,themeId:t}));return dce(N,uce(c,H),H,c)}),y||A.push(o);const O=A.length-I.length;if(Array.isArray(E)&&O>0){const N=new Array(O).fill("");k=[...E,...N],k.raw=[...E.raw,...N]}else typeof E=="function"&&E.__emotion_real!==E&&(k=N=>E($({},N,{theme:gb($({},N,{defaultTheme:n,themeId:t}))})));const D=b(k,...A);return s.muiName&&(D.muiName=s.muiName),D};return b.withConfig&&(x.withConfig=b.withConfig),x}}const mce=XX(),gce=mce;function YX(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:h4(t.components[n].defaultProps,r)}function KX({props:e,name:t,defaultTheme:n,themeId:r}){let i=rk(n);return r&&(i=i[r]||i),YX({theme:i,name:t,props:e})}function I4(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function vce(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 Mp(e){if(e.type)return e;if(e.charAt(0)==="#")return Mp(vce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Jd(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"].indexOf(i)===-1)throw new Error(Jd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function ik(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function yce(e){e=Mp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),ik({type:a,values:c})}function Z$(e){e=Mp(e);let t=e.type==="hsl"||e.type==="hsla"?Mp(yce(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 eF(e,t){const n=Z$(e),r=Z$(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function kn(e,t){return e=Mp(e),t=I4(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ik(e)}function yv(e,t){if(e=Mp(e),t=I4(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ik(e)}function bv(e,t){if(e=Mp(e),t=I4(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ik(e)}function bce(e,t=.15){return Z$(e)>.5?yv(e,t):bv(e,t)}const xce=R.createContext(null),QX=xce;function JX(){return R.useContext(QX)}const wce=typeof Symbol=="function"&&Symbol.for,_ce=wce?Symbol.for("mui.nested"):"__THEME_NESTED__";function Sce(e,t){return typeof t=="function"?t(e):$({},e,t)}function Ece(e){const{children:t,theme:n}=e,r=JX(),i=R.useMemo(()=>{const o=r===null?n:Sce(r,n);return o!=null&&(o[_ce]=r!==null),o},[n,r]);return C.jsx(QX.Provider,{value:i,children:t})}const E6={};function C6(e,t,n,r=!1){return R.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function Cce(e){const{children:t,theme:n,themeId:r}=e,i=nk(E6),o=JX()||E6,s=C6(r,i,n),a=C6(r,o,n,!0);return C.jsx(Ece,{theme:a,children:C.jsx(VT.Provider,{value:s,children:t})})}const Tce=["component","direction","spacing","divider","children","className","useFlexGap"],kce=tk(),Ace=gce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Ice(e){return KX({props:e,name:"MuiStack",defaultTheme:kce})}function Rce(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Oce=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},kl({theme:t},uD({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=T4(t),i=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),o=uD({values:e.direction,base:i}),s=uD({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,u,f)=>{if(!o[c]){const p=u>0?o[f[u-1]]:"column";o[c]=p}}),n=ns(n,kl({theme:t},s,(c,u)=>e.useFlexGap?{gap:Op(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Pce(u?o[u]:e.direction)}`]:Op(r,c)}}))}return n=ule(t.breakpoints,n),n};function Mce(e={}){const{createStyledComponent:t=Ace,useThemeProps:n=Ice,componentName:r="MuiStack"}=e,i=()=>At({root:["root"]},c=>Ct(r,c),{}),o=t(Oce);return R.forwardRef(function(c,u){const f=n(c),h=A4(f),{component:p="div",direction:g="column",spacing:v=0,divider:y,children:S,className:w,useFlexGap:b=!1}=h,x=Ne(h,Tce),E={direction:g,spacing:v,useFlexGap:b},I=i();return C.jsx(o,$({as:p,ownerState:E,ref:u,className:Ue(I.root,w)},x,{children:y?Rce(S,y):S}))})}function Lce(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const Dce=["mode","contrastThreshold","tonalOffset"],T6={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:Mg.white,default:Mg.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}},dD={text:{primary:Mg.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:Mg.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 k6(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=bv(e.main,i):t==="dark"&&(e.dark=yv(e.main,o)))}function Nce(e="light"){return e==="dark"?{main:dd[200],light:dd[50],dark:dd[400]}:{main:dd[700],light:dd[400],dark:dd[800]}}function Bce(e="light"){return e==="dark"?{main:Xh[200],light:Xh[50],dark:Xh[400]}:{main:Xh[500],light:Xh[300],dark:Xh[700]}}function $ce(e="light"){return e==="dark"?{main:ud[500],light:ud[300],dark:ud[700]}:{main:ud[700],light:ud[400],dark:ud[800]}}function Fce(e="light"){return e==="dark"?{main:Yh[400],light:Yh[300],dark:Yh[700]}:{main:Yh[700],light:Yh[500],dark:Yh[900]}}function zce(e="light"){return e==="dark"?{main:fd[400],light:fd[300],dark:fd[700]}:{main:fd[800],light:fd[500],dark:fd[900]}}function jce(e="light"){return e==="dark"?{main:ap[400],light:ap[300],dark:ap[700]}:{main:"#ed6c02",light:ap[500],dark:ap[900]}}function Uce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ne(e,Dce),o=e.primary||Nce(t),s=e.secondary||Bce(t),a=e.error||$ce(t),c=e.info||Fce(t),u=e.success||zce(t),f=e.warning||jce(t);function h(y){return eF(y,dD.text.primary)>=n?dD.text.primary:T6.text.primary}const p=({color:y,name:S,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(y=$({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Jd(11,S?` (${S})`:"",w));if(typeof y.main!="string")throw new Error(Jd(12,S?` (${S})`:"",JSON.stringify(y.main)));return k6(y,"light",b,r),k6(y,"dark",x,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:dD,light:T6};return ns($({common:$({},Mg),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:u4,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const Hce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Wce(e){return Math.round(e*1e5)/1e5}const A6={textTransform:"uppercase"},I6='"Roboto", "Helvetica", "Arial", sans-serif';function Gce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=I6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:h}=n,p=Ne(n,Hce),g=i/14,v=h||(w=>`${w/u*g}rem`),y=(w,b,x,E,I)=>$({fontFamily:r,fontWeight:w,fontSize:v(b),lineHeight:x},r===I6?{letterSpacing:`${Wce(E/b)}em`}:{},I,f),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,A6),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,A6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ns($({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),p,{clone:!1})}const Vce=.2,qce=.14,Xce=.12;function wr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Vce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${qce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Xce})`].join(",")}const Yce=["none",wr(0,2,1,-1,0,1,1,0,0,1,3,0),wr(0,3,1,-2,0,2,2,0,0,1,5,0),wr(0,3,3,-2,0,3,4,0,0,1,8,0),wr(0,2,4,-1,0,4,5,0,0,1,10,0),wr(0,3,5,-1,0,5,8,0,0,1,14,0),wr(0,3,5,-1,0,6,10,0,0,1,18,0),wr(0,4,5,-2,0,7,10,1,0,2,16,1),wr(0,5,5,-3,0,8,10,1,0,3,14,2),wr(0,5,6,-3,0,9,12,1,0,3,16,2),wr(0,6,6,-3,0,10,14,1,0,4,18,3),wr(0,6,7,-4,0,11,15,1,0,4,20,3),wr(0,7,8,-4,0,12,17,2,0,5,22,4),wr(0,7,8,-4,0,13,19,2,0,5,24,4),wr(0,7,9,-4,0,14,21,2,0,5,26,4),wr(0,8,9,-5,0,15,22,2,0,6,28,5),wr(0,8,10,-5,0,16,24,2,0,6,30,5),wr(0,8,11,-5,0,17,26,2,0,6,32,5),wr(0,9,11,-5,0,18,28,2,0,7,34,6),wr(0,9,12,-6,0,19,29,2,0,7,36,6),wr(0,10,13,-6,0,20,31,3,0,8,38,7),wr(0,10,13,-6,0,21,33,3,0,8,40,7),wr(0,10,14,-6,0,22,35,3,0,8,42,7),wr(0,11,14,-7,0,23,36,3,0,9,44,8),wr(0,11,15,-7,0,24,38,3,0,9,46,8)],Kce=Yce,Qce=["duration","easing","delay"],Jce={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)"},ZX={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function R6(e){return`${Math.round(e)}ms`}function Zce(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function eue(e){const t=$({},Jce,e.easing),n=$({},ZX,e.duration);return $({getAutoHeightDuration:Zce,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=o;return Ne(o,Qce),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:R6(s)} ${a} ${typeof c=="string"?c:R6(c)}`).join(",")}},e,{easing:t,duration:n})}const tue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},nue=tue,rue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function R4(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Ne(e,rue);if(e.vars)throw new Error(Jd(18));const a=Uce(r),c=tk(e);let u=ns(c,{mixins:Lce(c.breakpoints,n),palette:a,shadows:Kce.slice(),typography:Gce(a,o),transitions:eue(i),zIndex:$({},nue)});return u=ns(u,s),u=t.reduce((f,h)=>ns(f,h),u),u.unstable_sxConfig=$({},ZT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return ek({sx:h,theme:this})},u}const iue=R4(),ok=iue;function Dn(){const e=rk(ok);return e[Pp]||e}function Rt({props:e,name:t}){return KX({props:e,name:t,defaultTheme:ok,themeId:Pp})}const Ma=e=>Sx(e)&&e!=="classes",P4=Sx,oue=XX({themeId:Pp,defaultTheme:ok,rootShouldForwardProp:Ma}),Ce=oue,sue=["theme"];function aue(e){let{theme:t}=e,n=Ne(e,sue);const r=t[Pp];return C.jsx(Cce,$({},n,{themeId:r?Pp:void 0,theme:r||t}))}const lue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},P6=lue;function cue(e){return Ct("MuiSvgIcon",e)}It("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const uue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],due=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${Le(t)}`,`fontSize${Le(n)}`]};return At(i,cue,r)},fue=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Le(n.color)}`],t[`fontSize${Le(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,c,u,f,h,p,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),eY=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=Ne(r,uue),v=R.isValidElement(i)&&i.type==="svg",y=$({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:v}),S={};f||(S.viewBox=p);const w=due(y);return C.jsxs(fue,$({as:a,className:Ue(w.root,o),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},S,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,h?C.jsx("title",{children:h}):null]}))});eY.muiName="SvgIcon";const O6=eY;function zt(e,t){function n(r,i){return C.jsx(O6,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=O6.muiName,R.memo(R.forwardRef(n))}var Xn={};/** + */function HX(e,t){return tF(e,t)}const cle=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},ule=["values","unit","step"],dle=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 fle(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=Ne(e,ule),o=dle(t),s=Object.keys(o);function a(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function c(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const v=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(v!==-1&&typeof t[s[v]]=="number"?t[s[v]]:g)-r/100}${n})`}function f(p){return s.indexOf(p)+1`@media (min-width:${T4[e]}px)`};function Al(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||E6;return t.reduce((s,a,c)=>(s[o.up(o.keys[c])]=n(t[c]),s),{})}if(typeof t=="object"){const o=r.breakpoints||E6;return Object.keys(t).reduce((s,a)=>{if(Object.keys(o.values||T4).indexOf(a)!==-1){const c=o.up(a);s[c]=n(t[a],a)}else{const c=a;s[c]=t[c]}return s},{})}return n(t)}function WX(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const o=e.up(i);return r[o]={},r},{}))||{}}function GX(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function mle(e,...t){const n=WX(e),r=[n,...t].reduce((i,o)=>ns(i,o),{});return GX(Object.keys(n),r)}function gle(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,o)=>{o{e[i]!=null&&(n[i]=!0)}),n}function fL({values:e,breakpoints:t,base:n}){const r=n||gle(e,t),i=Object.keys(r);if(i.length===0)return e;let o;return i.reduce((s,a,c)=>(Array.isArray(e)?(s[a]=e[c]!=null?e[c]:e[o],o=c):typeof e=="object"?(s[a]=e[a]!=null?e[a]:e[o],o=a):s[a]=e,s),{})}function XT(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,o)=>i&&i[o]?i[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function HE(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=XT(e,n)||r,t&&(i=t(i,r,e)),i}function Dn(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,o=s=>{if(s[t]==null)return null;const a=s[t],c=s.theme,u=XT(c,r)||{};return Al(s,a,h=>{let p=HE(u,i,h);return h===p&&typeof h=="string"&&(p=HE(u,i,`${t}${h==="default"?"":De(h)}`,h)),n===!1?p:{[n]:p}})};return o.propTypes={},o.filterProps=[t],o}function vle(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const yle={m:"margin",p:"padding"},ble={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},C6={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},xle=vle(e=>{if(e.length>2)if(C6[e])e=C6[e];else return[e];const[t,n]=e.split(""),r=yle[t],i=ble[n]||"";return Array.isArray(i)?i.map(o=>r+o):[r+i]}),k4=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],A4=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...k4,...A4];function vw(e,t,n,r){var i;const o=(i=XT(e,t,!1))!=null?i:n;return typeof o=="number"?s=>typeof s=="string"?s:o*s:Array.isArray(o)?s=>typeof s=="string"?s:o[s]:typeof o=="function"?o:()=>{}}function I4(e){return vw(e,"spacing",8)}function Dp(e,t){if(typeof t=="string"||t==null)return t;const n=Math.abs(t),r=e(n);return t>=0?r:typeof r=="number"?-r:`-${r}`}function wle(e,t){return n=>e.reduce((r,i)=>(r[i]=Dp(t,n),r),{})}function _le(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=xle(n),o=wle(i,r),s=e[n];return Al(e,s,o)}function VX(e,t){const n=I4(e.theme);return Object.keys(e).map(r=>_le(e,t,r,n)).reduce(Ex,{})}function Gr(e){return VX(e,k4)}Gr.propTypes={};Gr.filterProps=k4;function Vr(e){return VX(e,A4)}Vr.propTypes={};Vr.filterProps=A4;function Sle(e=8){if(e.mui)return e;const t=I4({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function YT(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(o=>{r[o]=i}),r),{}),n=r=>Object.keys(r).reduce((i,o)=>t[o]?Ex(i,t[o](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function Yl(e){return typeof e!="number"?e:`${e}px solid`}const Ele=Dn({prop:"border",themeKey:"borders",transform:Yl}),Cle=Dn({prop:"borderTop",themeKey:"borders",transform:Yl}),Tle=Dn({prop:"borderRight",themeKey:"borders",transform:Yl}),kle=Dn({prop:"borderBottom",themeKey:"borders",transform:Yl}),Ale=Dn({prop:"borderLeft",themeKey:"borders",transform:Yl}),Ile=Dn({prop:"borderColor",themeKey:"palette"}),Rle=Dn({prop:"borderTopColor",themeKey:"palette"}),Ple=Dn({prop:"borderRightColor",themeKey:"palette"}),Ole=Dn({prop:"borderBottomColor",themeKey:"palette"}),Mle=Dn({prop:"borderLeftColor",themeKey:"palette"}),KT=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=vw(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:Dp(t,r)});return Al(e,e.borderRadius,n)}return null};KT.propTypes={};KT.filterProps=["borderRadius"];YT(Ele,Cle,Tle,kle,Ale,Ile,Rle,Ple,Ole,Mle,KT);const QT=e=>{if(e.gap!==void 0&&e.gap!==null){const t=vw(e.theme,"spacing",8),n=r=>({gap:Dp(t,r)});return Al(e,e.gap,n)}return null};QT.propTypes={};QT.filterProps=["gap"];const JT=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=vw(e.theme,"spacing",8),n=r=>({columnGap:Dp(t,r)});return Al(e,e.columnGap,n)}return null};JT.propTypes={};JT.filterProps=["columnGap"];const ZT=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=vw(e.theme,"spacing",8),n=r=>({rowGap:Dp(t,r)});return Al(e,e.rowGap,n)}return null};ZT.propTypes={};ZT.filterProps=["rowGap"];const Dle=Dn({prop:"gridColumn"}),Lle=Dn({prop:"gridRow"}),Nle=Dn({prop:"gridAutoFlow"}),Ble=Dn({prop:"gridAutoColumns"}),$le=Dn({prop:"gridAutoRows"}),Fle=Dn({prop:"gridTemplateColumns"}),zle=Dn({prop:"gridTemplateRows"}),jle=Dn({prop:"gridTemplateAreas"}),Ule=Dn({prop:"gridArea"});YT(QT,JT,ZT,Dle,Lle,Nle,Ble,$le,Fle,zle,jle,Ule);function mg(e,t){return t==="grey"?t:e}const Hle=Dn({prop:"color",themeKey:"palette",transform:mg}),Wle=Dn({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:mg}),Gle=Dn({prop:"backgroundColor",themeKey:"palette",transform:mg});YT(Hle,Wle,Gle);function Bs(e){return e<=1&&e!==0?`${e*100}%`:e}const Vle=Dn({prop:"width",transform:Bs}),R4=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const o=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||T4[n];return o?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${o}${e.theme.breakpoints.unit}`}:{maxWidth:o}:{maxWidth:Bs(n)}};return Al(e,e.maxWidth,t)}return null};R4.filterProps=["maxWidth"];const qle=Dn({prop:"minWidth",transform:Bs}),Xle=Dn({prop:"height",transform:Bs}),Yle=Dn({prop:"maxHeight",transform:Bs}),Kle=Dn({prop:"minHeight",transform:Bs});Dn({prop:"size",cssProperty:"width",transform:Bs});Dn({prop:"size",cssProperty:"height",transform:Bs});const Qle=Dn({prop:"boxSizing"});YT(Vle,R4,qle,Xle,Yle,Kle,Qle);const Jle={border:{themeKey:"borders",transform:Yl},borderTop:{themeKey:"borders",transform:Yl},borderRight:{themeKey:"borders",transform:Yl},borderBottom:{themeKey:"borders",transform:Yl},borderLeft:{themeKey:"borders",transform:Yl},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:KT},color:{themeKey:"palette",transform:mg},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:mg},backgroundColor:{themeKey:"palette",transform:mg},p:{style:Vr},pt:{style:Vr},pr:{style:Vr},pb:{style:Vr},pl:{style:Vr},px:{style:Vr},py:{style:Vr},padding:{style:Vr},paddingTop:{style:Vr},paddingRight:{style:Vr},paddingBottom:{style:Vr},paddingLeft:{style:Vr},paddingX:{style:Vr},paddingY:{style:Vr},paddingInline:{style:Vr},paddingInlineStart:{style:Vr},paddingInlineEnd:{style:Vr},paddingBlock:{style:Vr},paddingBlockStart:{style:Vr},paddingBlockEnd:{style:Vr},m:{style:Gr},mt:{style:Gr},mr:{style:Gr},mb:{style:Gr},ml:{style:Gr},mx:{style:Gr},my:{style:Gr},margin:{style:Gr},marginTop:{style:Gr},marginRight:{style:Gr},marginBottom:{style:Gr},marginLeft:{style:Gr},marginX:{style:Gr},marginY:{style:Gr},marginInline:{style:Gr},marginInlineStart:{style:Gr},marginInlineEnd:{style:Gr},marginBlock:{style:Gr},marginBlockStart:{style:Gr},marginBlockEnd:{style:Gr},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:QT},rowGap:{style:ZT},columnGap:{style:JT},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:Bs},maxWidth:{style:R4},minWidth:{transform:Bs},height:{transform:Bs},maxHeight:{transform:Bs},minHeight:{transform:Bs},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},ek=Jle;function Zle(...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 ece(e,t){return typeof e=="function"?e(t):e}function tce(){function e(n,r,i,o){const s={[n]:r,theme:i},a=o[n];if(!a)return{[n]:r};const{cssProperty:c=n,themeKey:u,transform:f,style:h}=a;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=XT(i,u)||{};return h?h(s):Al(s,r,v=>{let y=HE(p,f,v);return v===y&&typeof v=="string"&&(y=HE(p,f,`${n}${v==="default"?"":De(v)}`,v)),c===!1?y:{[c]:y}})}function t(n){var r;const{sx:i,theme:o={}}=n||{};if(!i)return null;const s=(r=o.unstable_sxConfig)!=null?r:ek;function a(c){let u=c;if(typeof c=="function")u=c(o);else if(typeof c!="object")return c;if(!u)return null;const f=WX(o.breakpoints),h=Object.keys(f);let p=f;return Object.keys(u).forEach(g=>{const v=ece(u[g],o);if(v!=null)if(typeof v=="object")if(s[g])p=Ex(p,e(g,v,o,s));else{const y=Al({theme:o},v,S=>({[g]:S}));Zle(y,v)?p[g]=t({sx:v,theme:o}):p=Ex(p,y)}else p=Ex(p,e(g,v,o,s))}),GX(h,p)}return Array.isArray(i)?i.map(a):a(i)}return t}const qX=tce();qX.filterProps=["sx"];const tk=qX,nce=["breakpoints","palette","spacing","shape"];function nk(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:o={}}=e,s=Ne(e,nce),a=fle(n),c=Sle(i);let u=ns({breakpoints:a,direction:"ltr",components:{},palette:$({mode:"light"},r),spacing:c,shape:$({},ple,o)},s);return u=t.reduce((f,h)=>ns(f,h),u),u.unstable_sxConfig=$({},ek,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return tk({sx:h,theme:this})},u}function rce(e){return Object.keys(e).length===0}function rk(e=null){const t=R.useContext(qT);return!t||rce(t)?e:t}const ice=nk();function ik(e=ice){return rk(e)}function oce({styles:e,themeId:t,defaultTheme:n={}}){const r=ik(n),i=typeof e=="function"?e(t&&r[t]||r):e;return C.jsx(lle,{styles:i})}const sce=["sx"],ace=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:ek;return Object.keys(e).forEach(o=>{i[o]?r.systemProps[o]=e[o]:r.otherProps[o]=e[o]}),r};function P4(e){const{sx:t}=e,n=Ne(e,sce),{systemProps:r,otherProps:i}=ace(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const a=t(...s);return up(a)?$({},r,a):r}:o=$({},r,t),$({},i,{sx:o})}function XX(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;ta!=="theme"&&a!=="sx"&&a!=="as"})(tk);return R.forwardRef(function(c,u){const f=ik(n),h=P4(c),{className:p,component:g="div"}=h,v=Ne(h,lce);return C.jsx(o,$({as:g,ref:u,className:Ue(p,i?i(r):r),theme:t&&f[t]||f},v))})}const uce=["variant"];function T6(e){return e.length===0}function YX(e){const{variant:t}=e,n=Ne(e,uce);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=T6(r)?e[i]:De(e[i]):r+=`${T6(r)?i:De(i)}${De(e[i].toString())}`}),r}const dce=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function fce(e){return Object.keys(e).length===0}function hce(e){return typeof e=="string"&&e.charCodeAt(0)>96}const pce=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,mce=(e,t)=>{let n=[];t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants);const r={};return n.forEach(i=>{const o=YX(i.props);r[o]=i.style}),r},gce=(e,t,n,r)=>{var i;const{ownerState:o={}}=e,s=[],a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return a&&a.forEach(c=>{let u=!0;Object.keys(c.props).forEach(f=>{o[f]!==c.props[f]&&e[f]!==c.props[f]&&(u=!1)}),u&&s.push(t[YX(c.props)])}),s};function Cx(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const vce=nk(),yce=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function yb({defaultTheme:e,theme:t,themeId:n}){return fce(t)?e:t[n]||t}function bce(e){return e?(t,n)=>n[e]:null}function KX(e={}){const{themeId:t,defaultTheme:n=vce,rootShouldForwardProp:r=Cx,slotShouldForwardProp:i=Cx}=e,o=s=>tk($({},s,{theme:yb($({},s,{defaultTheme:n,themeId:t}))}));return o.__mui_systemSx=!0,(s,a={})=>{cle(s,E=>E.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:c,slot:u,skipVariantsResolver:f,skipSx:h,overridesResolver:p=bce(yce(u))}=a,g=Ne(a,dce),v=f!==void 0?f:u&&u!=="Root"&&u!=="root"||!1,y=h||!1;let S,w=Cx;u==="Root"||u==="root"?w=r:u?w=i:hce(s)&&(w=void 0);const b=HX(s,$({shouldForwardProp:w,label:S},g)),x=(E,...I)=>{const A=I?I.map(N=>typeof N=="function"&&N.__emotion_real!==N?H=>N($({},H,{theme:yb($({},H,{defaultTheme:n,themeId:t}))})):N):[];let k=E;c&&p&&A.push(N=>{const H=yb($({},N,{defaultTheme:n,themeId:t})),G=pce(c,H);if(G){const z={};return Object.entries(G).forEach(([D,F])=>{z[D]=typeof F=="function"?F($({},N,{theme:H})):F}),p(N,z)}return null}),c&&!v&&A.push(N=>{const H=yb($({},N,{defaultTheme:n,themeId:t}));return gce(N,mce(c,H),H,c)}),y||A.push(o);const O=A.length-I.length;if(Array.isArray(E)&&O>0){const N=new Array(O).fill("");k=[...E,...N],k.raw=[...E.raw,...N]}else typeof E=="function"&&E.__emotion_real!==E&&(k=N=>E($({},N,{theme:yb($({},N,{defaultTheme:n,themeId:t}))})));const L=b(k,...A);return s.muiName&&(L.muiName=s.muiName),L};return b.withConfig&&(x.withConfig=b.withConfig),x}}const xce=KX(),wce=xce;function QX(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:g4(t.components[n].defaultProps,r)}function JX({props:e,name:t,defaultTheme:n,themeId:r}){let i=ik(n);return r&&(i=i[r]||i),QX({theme:i,name:t,props:e})}function O4(e,t=0,n=1){return Math.min(Math.max(t,e),n)}function _ce(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 Lp(e){if(e.type)return e;if(e.charAt(0)==="#")return Lp(_ce(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(Zd(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"].indexOf(i)===-1)throw new Error(Zd(10,i))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:i}}function ok(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,o)=>o<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Sce(e){e=Lp(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,o=r*Math.min(i,1-i),s=(u,f=(u+n/30)%12)=>i-o*Math.max(Math.min(f-3,9-f,1),-1);let a="rgb";const c=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(a+="a",c.push(t[3])),ok({type:a,values:c})}function nF(e){e=Lp(e);let t=e.type==="hsl"||e.type==="hsla"?Lp(Sce(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 rF(e,t){const n=nF(e),r=nF(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function kn(e,t){return e=Lp(e),t=O4(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,ok(e)}function xv(e,t){if(e=Lp(e),t=O4(t),e.type.indexOf("hsl")!==-1)e.values[2]*=1-t;else if(e.type.indexOf("rgb")!==-1||e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]*=1-t;return ok(e)}function wv(e,t){if(e=Lp(e),t=O4(t),e.type.indexOf("hsl")!==-1)e.values[2]+=(100-e.values[2])*t;else if(e.type.indexOf("rgb")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.indexOf("color")!==-1)for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return ok(e)}function Ece(e,t=.15){return nF(e)>.5?xv(e,t):wv(e,t)}const Cce=R.createContext(null),ZX=Cce;function eY(){return R.useContext(ZX)}const Tce=typeof Symbol=="function"&&Symbol.for,kce=Tce?Symbol.for("mui.nested"):"__THEME_NESTED__";function Ace(e,t){return typeof t=="function"?t(e):$({},e,t)}function Ice(e){const{children:t,theme:n}=e,r=eY(),i=R.useMemo(()=>{const o=r===null?n:Ace(r,n);return o!=null&&(o[kce]=r!==null),o},[n,r]);return C.jsx(ZX.Provider,{value:i,children:t})}const k6={};function A6(e,t,n,r=!1){return R.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const o=n(i),s=e?$({},t,{[e]:o}):o;return r?()=>s:s}return e?$({},t,{[e]:n}):$({},t,n)},[e,t,n,r])}function Rce(e){const{children:t,theme:n,themeId:r}=e,i=rk(k6),o=eY()||k6,s=A6(r,i,n),a=A6(r,o,n,!0);return C.jsx(Ice,{theme:a,children:C.jsx(qT.Provider,{value:s,children:t})})}const Pce=["component","direction","spacing","divider","children","className","useFlexGap"],Oce=nk(),Mce=wce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function Dce(e){return JX({props:e,name:"MuiStack",defaultTheme:Oce})}function Lce(e,t){const n=R.Children.toArray(e).filter(Boolean);return n.reduce((r,i,o)=>(r.push(i),o({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],Bce=({ownerState:e,theme:t})=>{let n=$({display:"flex",flexDirection:"column"},Al({theme:t},fL({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=I4(t),i=Object.keys(t.breakpoints.values).reduce((c,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(c[u]=!0),c),{}),o=fL({values:e.direction,base:i}),s=fL({values:e.spacing,base:i});typeof o=="object"&&Object.keys(o).forEach((c,u,f)=>{if(!o[c]){const p=u>0?o[f[u-1]]:"column";o[c]=p}}),n=ns(n,Al({theme:t},s,(c,u)=>e.useFlexGap?{gap:Dp(r,c)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${Nce(u?o[u]:e.direction)}`]:Dp(r,c)}}))}return n=mle(t.breakpoints,n),n};function $ce(e={}){const{createStyledComponent:t=Mce,useThemeProps:n=Dce,componentName:r="MuiStack"}=e,i=()=>At({root:["root"]},c=>Ct(r,c),{}),o=t(Bce);return R.forwardRef(function(c,u){const f=n(c),h=P4(f),{component:p="div",direction:g="column",spacing:v=0,divider:y,children:S,className:w,useFlexGap:b=!1}=h,x=Ne(h,Pce),E={direction:g,spacing:v,useFlexGap:b},I=i();return C.jsx(o,$({as:p,ownerState:E,ref:u,className:Ue(I.root,w)},x,{children:y?Lce(S,y):S}))})}function Fce(e,t){return $({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const zce=["mode","contrastThreshold","tonalOffset"],I6={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:Dg.white,default:Dg.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}},hL={text:{primary:Dg.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:Dg.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 R6(e,t,n,r){const i=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=wv(e.main,i):t==="dark"&&(e.dark=xv(e.main,o)))}function jce(e="light"){return e==="dark"?{main:fd[200],light:fd[50],dark:fd[400]}:{main:fd[700],light:fd[400],dark:fd[800]}}function Uce(e="light"){return e==="dark"?{main:Kh[200],light:Kh[50],dark:Kh[400]}:{main:Kh[500],light:Kh[300],dark:Kh[700]}}function Hce(e="light"){return e==="dark"?{main:dd[500],light:dd[300],dark:dd[700]}:{main:dd[700],light:dd[400],dark:dd[800]}}function Wce(e="light"){return e==="dark"?{main:Qh[400],light:Qh[300],dark:Qh[700]}:{main:Qh[700],light:Qh[500],dark:Qh[900]}}function Gce(e="light"){return e==="dark"?{main:hd[400],light:hd[300],dark:hd[700]}:{main:hd[800],light:hd[500],dark:hd[900]}}function Vce(e="light"){return e==="dark"?{main:cp[400],light:cp[300],dark:cp[700]}:{main:"#ed6c02",light:cp[500],dark:cp[900]}}function qce(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=Ne(e,zce),o=e.primary||jce(t),s=e.secondary||Uce(t),a=e.error||Hce(t),c=e.info||Wce(t),u=e.success||Gce(t),f=e.warning||Vce(t);function h(y){return rF(y,hL.text.primary)>=n?hL.text.primary:I6.text.primary}const p=({color:y,name:S,mainShade:w=500,lightShade:b=300,darkShade:x=700})=>{if(y=$({},y),!y.main&&y[w]&&(y.main=y[w]),!y.hasOwnProperty("main"))throw new Error(Zd(11,S?` (${S})`:"",w));if(typeof y.main!="string")throw new Error(Zd(12,S?` (${S})`:"",JSON.stringify(y.main)));return R6(y,"light",b,r),R6(y,"dark",x,r),y.contrastText||(y.contrastText=h(y.main)),y},g={dark:hL,light:I6};return ns($({common:$({},Dg),mode:t,primary:p({color:o,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:a,name:"error"}),warning:p({color:f,name:"warning"}),info:p({color:c,name:"info"}),success:p({color:u,name:"success"}),grey:h4,contrastThreshold:n,getContrastText:h,augmentColor:p,tonalOffset:r},g[t]),i)}const Xce=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function Yce(e){return Math.round(e*1e5)/1e5}const P6={textTransform:"uppercase"},O6='"Roboto", "Helvetica", "Arial", sans-serif';function Kce(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=O6,fontSize:i=14,fontWeightLight:o=300,fontWeightRegular:s=400,fontWeightMedium:a=500,fontWeightBold:c=700,htmlFontSize:u=16,allVariants:f,pxToRem:h}=n,p=Ne(n,Xce),g=i/14,v=h||(w=>`${w/u*g}rem`),y=(w,b,x,E,I)=>$({fontFamily:r,fontWeight:w,fontSize:v(b),lineHeight:x},r===O6?{letterSpacing:`${Yce(E/b)}em`}:{},I,f),S={h1:y(o,96,1.167,-1.5),h2:y(o,60,1.2,-.5),h3:y(s,48,1.167,0),h4:y(s,34,1.235,.25),h5:y(s,24,1.334,0),h6:y(a,20,1.6,.15),subtitle1:y(s,16,1.75,.15),subtitle2:y(a,14,1.57,.1),body1:y(s,16,1.5,.15),body2:y(s,14,1.43,.15),button:y(a,14,1.75,.4,P6),caption:y(s,12,1.66,.4),overline:y(s,12,2.66,1,P6),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ns($({htmlFontSize:u,pxToRem:v,fontFamily:r,fontSize:i,fontWeightLight:o,fontWeightRegular:s,fontWeightMedium:a,fontWeightBold:c},S),p,{clone:!1})}const Qce=.2,Jce=.14,Zce=.12;function wr(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${Qce})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${Jce})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${Zce})`].join(",")}const eue=["none",wr(0,2,1,-1,0,1,1,0,0,1,3,0),wr(0,3,1,-2,0,2,2,0,0,1,5,0),wr(0,3,3,-2,0,3,4,0,0,1,8,0),wr(0,2,4,-1,0,4,5,0,0,1,10,0),wr(0,3,5,-1,0,5,8,0,0,1,14,0),wr(0,3,5,-1,0,6,10,0,0,1,18,0),wr(0,4,5,-2,0,7,10,1,0,2,16,1),wr(0,5,5,-3,0,8,10,1,0,3,14,2),wr(0,5,6,-3,0,9,12,1,0,3,16,2),wr(0,6,6,-3,0,10,14,1,0,4,18,3),wr(0,6,7,-4,0,11,15,1,0,4,20,3),wr(0,7,8,-4,0,12,17,2,0,5,22,4),wr(0,7,8,-4,0,13,19,2,0,5,24,4),wr(0,7,9,-4,0,14,21,2,0,5,26,4),wr(0,8,9,-5,0,15,22,2,0,6,28,5),wr(0,8,10,-5,0,16,24,2,0,6,30,5),wr(0,8,11,-5,0,17,26,2,0,6,32,5),wr(0,9,11,-5,0,18,28,2,0,7,34,6),wr(0,9,12,-6,0,19,29,2,0,7,36,6),wr(0,10,13,-6,0,20,31,3,0,8,38,7),wr(0,10,13,-6,0,21,33,3,0,8,40,7),wr(0,10,14,-6,0,22,35,3,0,8,42,7),wr(0,11,14,-7,0,23,36,3,0,9,44,8),wr(0,11,15,-7,0,24,38,3,0,9,46,8)],tue=eue,nue=["duration","easing","delay"],rue={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)"},tY={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function M6(e){return`${Math.round(e)}ms`}function iue(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function oue(e){const t=$({},rue,e.easing),n=$({},tY,e.duration);return $({getAutoHeightDuration:iue,create:(i=["all"],o={})=>{const{duration:s=n.standard,easing:a=t.easeInOut,delay:c=0}=o;return Ne(o,nue),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:M6(s)} ${a} ${typeof c=="string"?c:M6(c)}`).join(",")}},e,{easing:t,duration:n})}const sue={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},aue=sue,lue=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function M4(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:o={}}=e,s=Ne(e,lue);if(e.vars)throw new Error(Zd(18));const a=qce(r),c=nk(e);let u=ns(c,{mixins:Fce(c.breakpoints,n),palette:a,shadows:tue.slice(),typography:Kce(a,o),transitions:oue(i),zIndex:$({},aue)});return u=ns(u,s),u=t.reduce((f,h)=>ns(f,h),u),u.unstable_sxConfig=$({},ek,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(h){return tk({sx:h,theme:this})},u}const cue=M4(),sk=cue;function Ln(){const e=ik(sk);return e[Mp]||e}function Rt({props:e,name:t}){return JX({props:e,name:t,defaultTheme:sk,themeId:Mp})}const Da=e=>Cx(e)&&e!=="classes",D4=Cx,uue=KX({themeId:Mp,defaultTheme:sk,rootShouldForwardProp:Da}),Ce=uue,due=["theme"];function fue(e){let{theme:t}=e,n=Ne(e,due);const r=t[Mp];return C.jsx(Rce,$({},n,{themeId:r?Mp:void 0,theme:r||t}))}const hue=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)},D6=hue;function pue(e){return Ct("MuiSvgIcon",e)}It("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const mue=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],gue=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${De(t)}`,`fontSize${De(n)}`]};return At(i,pue,r)},vue=Ce("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${De(n.color)}`],t[`fontSize${De(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,o,s,a,c,u,f,h,p,g,v;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((o=e.typography)==null||(s=o.pxToRem)==null?void 0:s.call(o,20))||"1.25rem",medium:((a=e.typography)==null||(c=a.pxToRem)==null?void 0:c.call(a,24))||"1.5rem",large:((u=e.typography)==null||(f=u.pxToRem)==null?void 0:f.call(u,35))||"2.1875rem"}[t.fontSize],color:(h=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?h:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(v=(e.vars||e).palette)==null||(v=v.action)==null?void 0:v.disabled,inherit:void 0}[t.color]}}),nY=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSvgIcon"}),{children:i,className:o,color:s="inherit",component:a="svg",fontSize:c="medium",htmlColor:u,inheritViewBox:f=!1,titleAccess:h,viewBox:p="0 0 24 24"}=r,g=Ne(r,mue),v=R.isValidElement(i)&&i.type==="svg",y=$({},r,{color:s,component:a,fontSize:c,instanceFontSize:t.fontSize,inheritViewBox:f,viewBox:p,hasSvgAsChild:v}),S={};f||(S.viewBox=p);const w=gue(y);return C.jsxs(vue,$({as:a,className:Ue(w.root,o),focusable:"false",color:u,"aria-hidden":h?void 0:!0,role:h?"img":void 0,ref:n},S,g,v&&i.props,{ownerState:y,children:[v?i.props.children:i,h?C.jsx("title",{children:h}):null]}))});nY.muiName="SvgIcon";const L6=nY;function Ft(e,t){function n(r,i){return C.jsx(L6,$({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=L6.muiName,R.memo(R.forwardRef(n))}var Xn={};/** * @license React * react-is.production.min.js * @@ -35,7 +35,7 @@ var Moe=Object.defineProperty;var Loe=(e,t,n)=>t in e?Moe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var O4=Symbol.for("react.element"),M4=Symbol.for("react.portal"),sk=Symbol.for("react.fragment"),ak=Symbol.for("react.strict_mode"),lk=Symbol.for("react.profiler"),ck=Symbol.for("react.provider"),uk=Symbol.for("react.context"),hue=Symbol.for("react.server_context"),dk=Symbol.for("react.forward_ref"),fk=Symbol.for("react.suspense"),hk=Symbol.for("react.suspense_list"),pk=Symbol.for("react.memo"),mk=Symbol.for("react.lazy"),pue=Symbol.for("react.offscreen"),tY;tY=Symbol.for("react.module.reference");function La(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case O4:switch(e=e.type,e){case sk:case lk:case ak:case fk:case hk:return e;default:switch(e=e&&e.$$typeof,e){case hue:case uk:case dk:case mk:case pk:case ck:return e;default:return t}}case M4:return t}}}Xn.ContextConsumer=uk;Xn.ContextProvider=ck;Xn.Element=O4;Xn.ForwardRef=dk;Xn.Fragment=sk;Xn.Lazy=mk;Xn.Memo=pk;Xn.Portal=M4;Xn.Profiler=lk;Xn.StrictMode=ak;Xn.Suspense=fk;Xn.SuspenseList=hk;Xn.isAsyncMode=function(){return!1};Xn.isConcurrentMode=function(){return!1};Xn.isContextConsumer=function(e){return La(e)===uk};Xn.isContextProvider=function(e){return La(e)===ck};Xn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===O4};Xn.isForwardRef=function(e){return La(e)===dk};Xn.isFragment=function(e){return La(e)===sk};Xn.isLazy=function(e){return La(e)===mk};Xn.isMemo=function(e){return La(e)===pk};Xn.isPortal=function(e){return La(e)===M4};Xn.isProfiler=function(e){return La(e)===lk};Xn.isStrictMode=function(e){return La(e)===ak};Xn.isSuspense=function(e){return La(e)===fk};Xn.isSuspenseList=function(e){return La(e)===hk};Xn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===sk||e===lk||e===ak||e===fk||e===hk||e===pue||typeof e=="object"&&e!==null&&(e.$$typeof===mk||e.$$typeof===pk||e.$$typeof===ck||e.$$typeof===uk||e.$$typeof===dk||e.$$typeof===tY||e.getModuleId!==void 0)};Xn.typeOf=La;function tF(e,t){return tF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},tF(e,t)}function gk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,tF(e,t)}var nY={exports:{}},ia={},rY={exports:{}},iY={};/** + */var L4=Symbol.for("react.element"),N4=Symbol.for("react.portal"),ak=Symbol.for("react.fragment"),lk=Symbol.for("react.strict_mode"),ck=Symbol.for("react.profiler"),uk=Symbol.for("react.provider"),dk=Symbol.for("react.context"),yue=Symbol.for("react.server_context"),fk=Symbol.for("react.forward_ref"),hk=Symbol.for("react.suspense"),pk=Symbol.for("react.suspense_list"),mk=Symbol.for("react.memo"),gk=Symbol.for("react.lazy"),bue=Symbol.for("react.offscreen"),rY;rY=Symbol.for("react.module.reference");function La(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case L4:switch(e=e.type,e){case ak:case ck:case lk:case hk:case pk:return e;default:switch(e=e&&e.$$typeof,e){case yue:case dk:case fk:case gk:case mk:case uk:return e;default:return t}}case N4:return t}}}Xn.ContextConsumer=dk;Xn.ContextProvider=uk;Xn.Element=L4;Xn.ForwardRef=fk;Xn.Fragment=ak;Xn.Lazy=gk;Xn.Memo=mk;Xn.Portal=N4;Xn.Profiler=ck;Xn.StrictMode=lk;Xn.Suspense=hk;Xn.SuspenseList=pk;Xn.isAsyncMode=function(){return!1};Xn.isConcurrentMode=function(){return!1};Xn.isContextConsumer=function(e){return La(e)===dk};Xn.isContextProvider=function(e){return La(e)===uk};Xn.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===L4};Xn.isForwardRef=function(e){return La(e)===fk};Xn.isFragment=function(e){return La(e)===ak};Xn.isLazy=function(e){return La(e)===gk};Xn.isMemo=function(e){return La(e)===mk};Xn.isPortal=function(e){return La(e)===N4};Xn.isProfiler=function(e){return La(e)===ck};Xn.isStrictMode=function(e){return La(e)===lk};Xn.isSuspense=function(e){return La(e)===hk};Xn.isSuspenseList=function(e){return La(e)===pk};Xn.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===ak||e===ck||e===lk||e===hk||e===pk||e===bue||typeof e=="object"&&e!==null&&(e.$$typeof===gk||e.$$typeof===mk||e.$$typeof===uk||e.$$typeof===dk||e.$$typeof===fk||e.$$typeof===rY||e.getModuleId!==void 0)};Xn.typeOf=La;function iF(e,t){return iF=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},iF(e,t)}function vk(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,iF(e,t)}var iY={exports:{}},ia={},oY={exports:{}},sY={};/** * @license React * scheduler.production.min.js * @@ -43,7 +43,7 @@ var Moe=Object.defineProperty;var Loe=(e,t,n)=>t in e?Moe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */(function(e){function t(W,K){var X=W.length;W.push(K);e:for(;0>>1,ie=W[Q];if(0>>1;Qi(se,X))Ji(ae,se)?(W[Q]=ae,W[J]=X,Q=J):(W[Q]=se,W[ue]=X,Q=ue);else if(Ji(ae,X))W[Q]=ae,W[J]=X,Q=J;else break e}}return K}function i(W,K){var X=W.sortIndex-K.sortIndex;return X!==0?X:W.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=W)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function E(W){if(y=!1,x(W),!v)if(n(c)!==null)v=!0,j(I);else{var K=n(u);K!==null&&V(E,K.startTime-W)}}function I(W,K){v=!1,y&&(y=!1,w(O),O=-1),g=!0;var X=p;try{for(x(K),h=n(c);h!==null&&(!(h.expirationTime>K)||W&&!H());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,p=h.priorityLevel;var ie=Q(h.expirationTime<=K);K=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(c)&&r(c),x(K)}else r(c);h=n(c)}if(h!==null)var ce=!0;else{var ue=n(u);ue!==null&&V(E,ue.startTime-K),ce=!1}return ce}finally{h=null,p=X,g=!1}}var A=!1,k=null,O=-1,D=5,N=-1;function H(){return!(e.unstable_now()-NW||125Q?(W.sortIndex=X,t(u,W),n(c)===null&&W===n(u)&&(y?(w(O),O=-1):y=!0,V(E,X-Q))):(W.sortIndex=ie,t(c,W),v||g||(v=!0,j(I))),W},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(W){var K=p;return function(){var X=p;p=K;try{return W.apply(this,arguments)}finally{p=X}}}})(iY);rY.exports=iY;var mue=rY.exports;/** + */(function(e){function t(W,K){var X=W.length;W.push(K);e:for(;0>>1,ie=W[Q];if(0>>1;Qi(se,X))Ji(ae,se)?(W[Q]=ae,W[J]=X,Q=J):(W[Q]=se,W[ue]=X,Q=ue);else if(Ji(ae,X))W[Q]=ae,W[J]=X,Q=J;else break e}}return K}function i(W,K){var X=W.sortIndex-K.sortIndex;return X!==0?X:W.id-K.id}if(typeof performance=="object"&&typeof performance.now=="function"){var o=performance;e.unstable_now=function(){return o.now()}}else{var s=Date,a=s.now();e.unstable_now=function(){return s.now()-a}}var c=[],u=[],f=1,h=null,p=3,g=!1,v=!1,y=!1,S=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,b=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function x(W){for(var K=n(u);K!==null;){if(K.callback===null)r(u);else if(K.startTime<=W)r(u),K.sortIndex=K.expirationTime,t(c,K);else break;K=n(u)}}function E(W){if(y=!1,x(W),!v)if(n(c)!==null)v=!0,j(I);else{var K=n(u);K!==null&&V(E,K.startTime-W)}}function I(W,K){v=!1,y&&(y=!1,w(O),O=-1),g=!0;var X=p;try{for(x(K),h=n(c);h!==null&&(!(h.expirationTime>K)||W&&!H());){var Q=h.callback;if(typeof Q=="function"){h.callback=null,p=h.priorityLevel;var ie=Q(h.expirationTime<=K);K=e.unstable_now(),typeof ie=="function"?h.callback=ie:h===n(c)&&r(c),x(K)}else r(c);h=n(c)}if(h!==null)var ce=!0;else{var ue=n(u);ue!==null&&V(E,ue.startTime-K),ce=!1}return ce}finally{h=null,p=X,g=!1}}var A=!1,k=null,O=-1,L=5,N=-1;function H(){return!(e.unstable_now()-NW||125Q?(W.sortIndex=X,t(u,W),n(c)===null&&W===n(u)&&(y?(w(O),O=-1):y=!0,V(E,X-Q))):(W.sortIndex=ie,t(c,W),v||g||(v=!0,j(I))),W},e.unstable_shouldYield=H,e.unstable_wrapCallback=function(W){var K=p;return function(){var X=p;p=K;try{return W.apply(this,arguments)}finally{p=X}}}})(sY);oY.exports=sY;var xue=oY.exports;/** * @license React * react-dom.production.min.js * @@ -51,14 +51,14 @@ var Moe=Object.defineProperty;var Loe=(e,t,n)=>t in e?Moe(e,t,{enumerable:!0,con * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var oY=R,Js=mue;function Me(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),nF=Object.prototype.hasOwnProperty,gue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,M6={},L6={};function vue(e){return nF.call(L6,e)?!0:nF.call(M6,e)?!1:gue.test(e)?L6[e]=!0:(M6[e]=!0,!1)}function yue(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function bue(e,t,n,r){if(t===null||typeof t>"u"||yue(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ho(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ro[e]=new Ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ro[t]=new Ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ro[e]=new Ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ro[e]=new Ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ro[e]=new Ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ro[e]=new Ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ro[e]=new Ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ro[e]=new Ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ro[e]=new Ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var L4=/[\-:]([a-z])/g;function D4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(L4,D4);ro[t]=new Ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(L4,D4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(L4,D4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!1,!1)});ro.xlinkHref=new Ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function N4(e,t,n,r){var i=ro.hasOwnProperty(t)?ro[t]:null;(i!==null?i.type!==0:r||!(2"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),oF=Object.prototype.hasOwnProperty,wue=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,N6={},B6={};function _ue(e){return oF.call(B6,e)?!0:oF.call(N6,e)?!1:wue.test(e)?B6[e]=!0:(N6[e]=!0,!1)}function Sue(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Eue(e,t,n,r){if(t===null||typeof t>"u"||Sue(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function Ho(e,t,n,r,i,o,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=o,this.removeEmptyString=s}var ro={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ro[e]=new Ho(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ro[t]=new Ho(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ro[e]=new Ho(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ro[e]=new Ho(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){ro[e]=new Ho(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ro[e]=new Ho(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ro[e]=new Ho(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ro[e]=new Ho(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ro[e]=new Ho(e,5,!1,e.toLowerCase(),null,!1,!1)});var B4=/[\-:]([a-z])/g;function $4(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(B4,$4);ro[t]=new Ho(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(B4,$4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(B4,$4);ro[t]=new Ho(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!1,!1)});ro.xlinkHref=new Ho("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ro[e]=new Ho(e,1,!1,e.toLowerCase(),null,!0,!0)});function F4(e,t,n,r){var i=ro.hasOwnProperty(t)?ro[t]:null;(i!==null?i.type!==0:r||!(2a||i[s]!==o[a]){var c=` -`+i[s].replace(" at new "," at ");return e.displayName&&c.includes("")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{hD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?ex(e):""}function xue(e){switch(e.tag){case 5:return ex(e.type);case 16:return ex("Lazy");case 13:return ex("Suspense");case 19:return ex("SuspenseList");case 0:case 2:case 15:return e=pD(e.type,!1),e;case 11:return e=pD(e.type.render,!1),e;case 1:return e=pD(e.type,!0),e;default:return""}}function sF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Wm:return"Fragment";case Hm:return"Portal";case rF:return"Profiler";case B4:return"StrictMode";case iF:return"Suspense";case oF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case lY:return(e.displayName||"Context")+".Consumer";case aY:return(e._context.displayName||"Context")+".Provider";case $4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case F4:return t=e.displayName||null,t!==null?t:sF(e.type)||"Memo";case hd:t=e._payload,e=e._init;try{return sF(e(t))}catch{}}return null}function wue(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return sF(t);case 8:return t===B4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Zd(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function uY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function _ue(e){var t=uY(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function c_(e){e._valueTracker||(e._valueTracker=_ue(e))}function dY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=uY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function HE(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function aF(e,t){var n=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function N6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Zd(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function fY(e,t){t=t.checked,t!=null&&N4(e,"checked",t,!1)}function lF(e,t){fY(e,t);var n=Zd(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?cF(e,t.type,n):t.hasOwnProperty("defaultValue")&&cF(e,t.type,Zd(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function B6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function cF(e,t,n){(t!=="number"||HE(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var tx=Array.isArray;function mg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=u_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function l1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Ex={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Sue=["Webkit","ms","Moz","O"];Object.keys(Ex).forEach(function(e){Sue.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Ex[t]=Ex[e]})});function gY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Ex.hasOwnProperty(e)&&Ex[e]?(""+t).trim():t+"px"}function vY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=gY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Eue=jr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function fF(e,t){if(t){if(Eue[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function hF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var pF=null;function z4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var mF=null,gg=null,vg=null;function z6(e){if(e=bw(e)){if(typeof mF!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=wk(t),mF(e.stateNode,e.type,t))}}function yY(e){gg?vg?vg.push(e):vg=[e]:gg=e}function bY(){if(gg){var e=gg,t=vg;if(vg=gg=null,z6(e),t)for(e=0;e>>=0,e===0?32:31-(Due(e)/Nue|0)|0}var d_=64,f_=4194304;function nx(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function qE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=nx(a):(o&=s,o!==0&&(r=nx(o)))}else s=n&~i,s!==0?r=nx(s):o!==0&&(r=nx(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function vw(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-bl(t),e[t]=n}function zue(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Tx),Y6=String.fromCharCode(32),K6=!1;function FY(e,t){switch(e){case"keyup":return pde.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function zY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Gm=!1;function gde(e,t){switch(e){case"compositionend":return zY(t);case"keypress":return t.which!==32?null:(K6=!0,Y6);case"textInput":return e=t.data,e===Y6&&K6?null:e;default:return null}}function vde(e,t){if(Gm)return e==="compositionend"||!X4&&FY(e,t)?(e=BY(),tE=G4=Td=null,Gm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=e8(n)}}function WY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?WY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function GY(){for(var e=window,t=HE();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=HE(e.document)}return t}function Y4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Tde(e){var t=GY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&WY(n.ownerDocument.documentElement,n)){if(r!==null&&Y4(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=t8(n,o);var s=t8(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Vm=null,wF=null,Ax=null,_F=!1;function n8(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;_F||Vm==null||Vm!==HE(r)||(r=Vm,"selectionStart"in r&&Y4(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ax&&p1(Ax,r)||(Ax=r,r=KE(wF,"onSelect"),0Ym||(e.current=AF[Ym],AF[Ym]=null,Ym--)}function cr(e,t){Ym++,AF[Ym]=e.current,e.current=t}var ef={},yo=hf(ef),rs=hf(!1),Lp=ef;function Ng(e,t){var n=e.type.contextTypes;if(!n)return ef;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function is(e){return e=e.childContextTypes,e!=null}function JE(){xr(rs),xr(yo)}function c8(e,t,n){if(yo.current!==ef)throw Error(Me(168));cr(yo,t),cr(rs,n)}function eK(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Me(108,wue(e)||"Unknown",i));return jr({},n,r)}function ZE(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||ef,Lp=yo.current,cr(yo,e),cr(rs,rs.current),!0}function u8(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=eK(e,t,Lp),r.__reactInternalMemoizedMergedChildContext=e,xr(rs),xr(yo),cr(yo,e)):xr(rs),cr(rs,n)}var xu=null,_k=!1,AD=!1;function tK(e){xu===null?xu=[e]:xu.push(e)}function $de(e){_k=!0,tK(e)}function pf(){if(!AD&&xu!==null){AD=!0;var e=0,t=jn;try{var n=xu;for(jn=1;e>=s,i-=s,Eu=1<<32-bl(t)+i|n<O?(D=k,k=null):D=k.sibling;var N=p(w,k,x[O],E);if(N===null){k===null&&(k=D);break}e&&k&&N.alternate===null&&t(w,k),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N,k=D}if(O===x.length)return n(w,k),_r&&Kh(w,O),I;if(k===null){for(;OO?(D=k,k=null):D=k.sibling;var H=p(w,k,N.value,E);if(H===null){k===null&&(k=D);break}e&&k&&H.alternate===null&&t(w,k),b=o(H,b,O),A===null?I=H:A.sibling=H,A=H,k=D}if(N.done)return n(w,k),_r&&Kh(w,O),I;if(k===null){for(;!N.done;O++,N=x.next())N=h(w,N.value,E),N!==null&&(b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return _r&&Kh(w,O),I}for(k=r(w,k);!N.done;O++,N=x.next())N=g(k,w,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return e&&k.forEach(function(G){return t(w,G)}),_r&&Kh(w,O),I}function S(w,b,x,E){if(typeof x=="object"&&x!==null&&x.type===Wm&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case l_:e:{for(var I=x.key,A=b;A!==null;){if(A.key===I){if(I=x.type,I===Wm){if(A.tag===7){n(w,A.sibling),b=i(A,x.props.children),b.return=w,w=b;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===hd&&v8(I)===A.type){n(w,A.sibling),b=i(A,x.props),b.ref=_b(w,A,x),b.return=w,w=b;break e}n(w,A);break}else t(w,A);A=A.sibling}x.type===Wm?(b=wp(x.props.children,w.mode,E,x.key),b.return=w,w=b):(E=cE(x.type,x.key,x.props,null,w.mode,E),E.ref=_b(w,b,x),E.return=w,w=E)}return s(w);case Hm:e:{for(A=x.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=i(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=ND(x,w.mode,E),b.return=w,w=b}return s(w);case hd:return A=x._init,S(w,b,A(x._payload),E)}if(tx(x))return v(w,b,x,E);if(vb(x))return y(w,b,x,E);b_(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=i(b,x),b.return=w,w=b):(n(w,b),b=DD(x,w.mode,E),b.return=w,w=b),s(w)):n(w,b)}return S}var $g=cK(!0),uK=cK(!1),xw={},ec=hf(xw),y1=hf(xw),b1=hf(xw);function fp(e){if(e===xw)throw Error(Me(174));return e}function iz(e,t){switch(cr(b1,t),cr(y1,e),cr(ec,xw),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:dF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=dF(t,e)}xr(ec),cr(ec,t)}function Fg(){xr(ec),xr(y1),xr(b1)}function dK(e){fp(b1.current);var t=fp(ec.current),n=dF(t,e.type);t!==n&&(cr(y1,e),cr(ec,n))}function oz(e){y1.current===e&&(xr(ec),xr(y1))}var Nr=hf(0);function oC(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var ID=[];function sz(){for(var e=0;en?n:4,e(!0);var r=RD.transition;RD.transition={};try{e(!1),t()}finally{jn=n,RD.transition=r}}function kK(){return Ra().memoizedState}function Ude(e,t,n){var r=Ud(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},AK(e))IK(t,n);else if(n=oK(e,t,n,r),n!==null){var i=zo();xl(n,e,r,i),RK(n,t,r)}}function Hde(e,t,n){var r=Ud(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(AK(e))IK(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Al(a,s)){var c=t.interleaved;c===null?(i.next=i,nz(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=oK(e,t,i,r),n!==null&&(i=zo(),xl(n,e,r,i),RK(n,t,r))}}function AK(e){var t=e.alternate;return e===zr||t!==null&&t===zr}function IK(e,t){Ix=sC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function RK(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,U4(e,n)}}var aC={readContext:Ia,useCallback:so,useContext:so,useEffect:so,useImperativeHandle:so,useInsertionEffect:so,useLayoutEffect:so,useMemo:so,useReducer:so,useRef:so,useState:so,useDebugValue:so,useDeferredValue:so,useTransition:so,useMutableSource:so,useSyncExternalStore:so,useId:so,unstable_isNewReconciler:!1},Wde={readContext:Ia,useCallback:function(e,t){return jl().memoizedState=[e,t===void 0?null:t],e},useContext:Ia,useEffect:b8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,oE(4194308,4,_K.bind(null,t,e),n)},useLayoutEffect:function(e,t){return oE(4194308,4,e,t)},useInsertionEffect:function(e,t){return oE(4,2,e,t)},useMemo:function(e,t){var n=jl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=jl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=Ude.bind(null,zr,e),[r.memoizedState,e]},useRef:function(e){var t=jl();return e={current:e},t.memoizedState=e},useState:y8,useDebugValue:dz,useDeferredValue:function(e){return jl().memoizedState=e},useTransition:function(){var e=y8(!1),t=e[0];return e=jde.bind(null,e[1]),jl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zr,i=jl();if(_r){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Pi===null)throw Error(Me(349));Np&30||pK(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,b8(gK.bind(null,r,o,e),[e]),r.flags|=2048,_1(9,mK.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=jl(),t=Pi.identifierPrefix;if(_r){var n=Cu,r=Eu;n=(r&~(1<<32-bl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=x1++,0")&&(c=c.replace("",e.displayName)),c}while(1<=s&&0<=a);break}}}finally{mL=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?nx(e):""}function Cue(e){switch(e.tag){case 5:return nx(e.type);case 16:return nx("Lazy");case 13:return nx("Suspense");case 19:return nx("SuspenseList");case 0:case 2:case 15:return e=gL(e.type,!1),e;case 11:return e=gL(e.type.render,!1),e;case 1:return e=gL(e.type,!0),e;default:return""}}function cF(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Gm:return"Fragment";case Wm:return"Portal";case sF:return"Profiler";case z4:return"StrictMode";case aF:return"Suspense";case lF:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case uY:return(e.displayName||"Context")+".Consumer";case cY:return(e._context.displayName||"Context")+".Provider";case j4:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case U4:return t=e.displayName||null,t!==null?t:cF(e.type)||"Memo";case pd:t=e._payload,e=e._init;try{return cF(e(t))}catch{}}return null}function Tue(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return cF(t);case 8:return t===z4?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function ef(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function fY(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function kue(e){var t=fY(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,o=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,o.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function u_(e){e._valueTracker||(e._valueTracker=kue(e))}function hY(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=fY(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function WE(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function uF(e,t){var n=t.checked;return jr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function F6(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=ef(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function pY(e,t){t=t.checked,t!=null&&F4(e,"checked",t,!1)}function dF(e,t){pY(e,t);var n=ef(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?fF(e,t.type,n):t.hasOwnProperty("defaultValue")&&fF(e,t.type,ef(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function z6(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function fF(e,t,n){(t!=="number"||WE(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var rx=Array.isArray;function gg(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=d_.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function u1(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tx={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Aue=["Webkit","ms","Moz","O"];Object.keys(Tx).forEach(function(e){Aue.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tx[t]=Tx[e]})});function yY(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tx.hasOwnProperty(e)&&Tx[e]?(""+t).trim():t+"px"}function bY(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=yY(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Iue=jr({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function mF(e,t){if(t){if(Iue[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Me(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Me(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Me(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Me(62))}}function gF(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var vF=null;function H4(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var yF=null,vg=null,yg=null;function H6(e){if(e=xw(e)){if(typeof yF!="function")throw Error(Me(280));var t=e.stateNode;t&&(t=_k(t),yF(e.stateNode,e.type,t))}}function xY(e){vg?yg?yg.push(e):yg=[e]:vg=e}function wY(){if(vg){var e=vg,t=yg;if(yg=vg=null,H6(e),t)for(e=0;e>>=0,e===0?32:31-(zue(e)/jue|0)|0}var f_=64,h_=4194304;function ix(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function XE(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,o=e.pingedLanes,s=n&268435455;if(s!==0){var a=s&~i;a!==0?r=ix(a):(o&=s,o!==0&&(r=ix(o)))}else s=n&~i,s!==0?r=ix(s):o!==0&&(r=ix(o));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,o=t&-t,i>=o||i===16&&(o&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function yw(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-xl(t),e[t]=n}function Gue(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Ax),J6=String.fromCharCode(32),Z6=!1;function jY(e,t){switch(e){case"keyup":return bde.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function UY(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Vm=!1;function wde(e,t){switch(e){case"compositionend":return UY(t);case"keypress":return t.which!==32?null:(Z6=!0,J6);case"textInput":return e=t.data,e===J6&&Z6?null:e;default:return null}}function _de(e,t){if(Vm)return e==="compositionend"||!Q4&&jY(e,t)?(e=FY(),nE=X4=kd=null,Vm=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=r8(n)}}function VY(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?VY(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function qY(){for(var e=window,t=WE();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=WE(e.document)}return t}function J4(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Pde(e){var t=qY(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&VY(n.ownerDocument.documentElement,n)){if(r!==null&&J4(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,o=Math.min(r.start,i);r=r.end===void 0?o:Math.min(r.end,i),!e.extend&&o>r&&(i=r,r=o,o=i),i=i8(n,o);var s=i8(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),o>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,qm=null,EF=null,Rx=null,CF=!1;function o8(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;CF||qm==null||qm!==WE(r)||(r=qm,"selectionStart"in r&&J4(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Rx&&g1(Rx,r)||(Rx=r,r=QE(EF,"onSelect"),0Km||(e.current=PF[Km],PF[Km]=null,Km--)}function cr(e,t){Km++,PF[Km]=e.current,e.current=t}var tf={},yo=mf(tf),rs=mf(!1),Np=tf;function Bg(e,t){var n=e.type.contextTypes;if(!n)return tf;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},o;for(o in n)i[o]=t[o];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function is(e){return e=e.childContextTypes,e!=null}function ZE(){xr(rs),xr(yo)}function f8(e,t,n){if(yo.current!==tf)throw Error(Me(168));cr(yo,t),cr(rs,n)}function nK(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Me(108,Tue(e)||"Unknown",i));return jr({},n,r)}function eC(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||tf,Np=yo.current,cr(yo,e),cr(rs,rs.current),!0}function h8(e,t,n){var r=e.stateNode;if(!r)throw Error(Me(169));n?(e=nK(e,t,Np),r.__reactInternalMemoizedMergedChildContext=e,xr(rs),xr(yo),cr(yo,e)):xr(rs),cr(rs,n)}var wu=null,Sk=!1,RL=!1;function rK(e){wu===null?wu=[e]:wu.push(e)}function Hde(e){Sk=!0,rK(e)}function gf(){if(!RL&&wu!==null){RL=!0;var e=0,t=jn;try{var n=wu;for(jn=1;e>=s,i-=s,Cu=1<<32-xl(t)+i|n<O?(L=k,k=null):L=k.sibling;var N=p(w,k,x[O],E);if(N===null){k===null&&(k=L);break}e&&k&&N.alternate===null&&t(w,k),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N,k=L}if(O===x.length)return n(w,k),_r&&Jh(w,O),I;if(k===null){for(;OO?(L=k,k=null):L=k.sibling;var H=p(w,k,N.value,E);if(H===null){k===null&&(k=L);break}e&&k&&H.alternate===null&&t(w,k),b=o(H,b,O),A===null?I=H:A.sibling=H,A=H,k=L}if(N.done)return n(w,k),_r&&Jh(w,O),I;if(k===null){for(;!N.done;O++,N=x.next())N=h(w,N.value,E),N!==null&&(b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return _r&&Jh(w,O),I}for(k=r(w,k);!N.done;O++,N=x.next())N=g(k,w,O,N.value,E),N!==null&&(e&&N.alternate!==null&&k.delete(N.key===null?O:N.key),b=o(N,b,O),A===null?I=N:A.sibling=N,A=N);return e&&k.forEach(function(G){return t(w,G)}),_r&&Jh(w,O),I}function S(w,b,x,E){if(typeof x=="object"&&x!==null&&x.type===Gm&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case c_:e:{for(var I=x.key,A=b;A!==null;){if(A.key===I){if(I=x.type,I===Gm){if(A.tag===7){n(w,A.sibling),b=i(A,x.props.children),b.return=w,w=b;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===pd&&x8(I)===A.type){n(w,A.sibling),b=i(A,x.props),b.ref=Eb(w,A,x),b.return=w,w=b;break e}n(w,A);break}else t(w,A);A=A.sibling}x.type===Gm?(b=Sp(x.props.children,w.mode,E,x.key),b.return=w,w=b):(E=uE(x.type,x.key,x.props,null,w.mode,E),E.ref=Eb(w,b,x),E.return=w,w=E)}return s(w);case Wm:e:{for(A=x.key;b!==null;){if(b.key===A)if(b.tag===4&&b.stateNode.containerInfo===x.containerInfo&&b.stateNode.implementation===x.implementation){n(w,b.sibling),b=i(b,x.children||[]),b.return=w,w=b;break e}else{n(w,b);break}else t(w,b);b=b.sibling}b=$L(x,w.mode,E),b.return=w,w=b}return s(w);case pd:return A=x._init,S(w,b,A(x._payload),E)}if(rx(x))return v(w,b,x,E);if(bb(x))return y(w,b,x,E);x_(w,x)}return typeof x=="string"&&x!==""||typeof x=="number"?(x=""+x,b!==null&&b.tag===6?(n(w,b.sibling),b=i(b,x),b.return=w,w=b):(n(w,b),b=BL(x,w.mode,E),b.return=w,w=b),s(w)):n(w,b)}return S}var Fg=dK(!0),fK=dK(!1),ww={},nc=mf(ww),x1=mf(ww),w1=mf(ww);function pp(e){if(e===ww)throw Error(Me(174));return e}function az(e,t){switch(cr(w1,t),cr(x1,e),cr(nc,ww),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:pF(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=pF(t,e)}xr(nc),cr(nc,t)}function zg(){xr(nc),xr(x1),xr(w1)}function hK(e){pp(w1.current);var t=pp(nc.current),n=pF(t,e.type);t!==n&&(cr(x1,e),cr(nc,n))}function lz(e){x1.current===e&&(xr(nc),xr(x1))}var Nr=mf(0);function sC(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var PL=[];function cz(){for(var e=0;en?n:4,e(!0);var r=OL.transition;OL.transition={};try{e(!1),t()}finally{jn=n,OL.transition=r}}function IK(){return Pa().memoizedState}function qde(e,t,n){var r=Hd(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},RK(e))PK(t,n);else if(n=aK(e,t,n,r),n!==null){var i=zo();wl(n,e,r,i),OK(n,t,r)}}function Xde(e,t,n){var r=Hd(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(RK(e))PK(t,i);else{var o=e.alternate;if(e.lanes===0&&(o===null||o.lanes===0)&&(o=t.lastRenderedReducer,o!==null))try{var s=t.lastRenderedState,a=o(s,n);if(i.hasEagerState=!0,i.eagerState=a,Il(a,s)){var c=t.interleaved;c===null?(i.next=i,oz(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}finally{}n=aK(e,t,i,r),n!==null&&(i=zo(),wl(n,e,r,i),OK(n,t,r))}}function RK(e){var t=e.alternate;return e===zr||t!==null&&t===zr}function PK(e,t){Px=aC=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function OK(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,G4(e,n)}}var lC={readContext:Ra,useCallback:so,useContext:so,useEffect:so,useImperativeHandle:so,useInsertionEffect:so,useLayoutEffect:so,useMemo:so,useReducer:so,useRef:so,useState:so,useDebugValue:so,useDeferredValue:so,useTransition:so,useMutableSource:so,useSyncExternalStore:so,useId:so,unstable_isNewReconciler:!1},Yde={readContext:Ra,useCallback:function(e,t){return Hl().memoizedState=[e,t===void 0?null:t],e},useContext:Ra,useEffect:_8,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,sE(4194308,4,EK.bind(null,t,e),n)},useLayoutEffect:function(e,t){return sE(4194308,4,e,t)},useInsertionEffect:function(e,t){return sE(4,2,e,t)},useMemo:function(e,t){var n=Hl();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Hl();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=qde.bind(null,zr,e),[r.memoizedState,e]},useRef:function(e){var t=Hl();return e={current:e},t.memoizedState=e},useState:w8,useDebugValue:pz,useDeferredValue:function(e){return Hl().memoizedState=e},useTransition:function(){var e=w8(!1),t=e[0];return e=Vde.bind(null,e[1]),Hl().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=zr,i=Hl();if(_r){if(n===void 0)throw Error(Me(407));n=n()}else{if(n=t(),Pi===null)throw Error(Me(349));$p&30||gK(r,t,n)}i.memoizedState=n;var o={value:n,getSnapshot:t};return i.queue=o,_8(yK.bind(null,r,o,e),[e]),r.flags|=2048,E1(9,vK.bind(null,r,o,n,t),void 0,null),n},useId:function(){var e=Hl(),t=Pi.identifierPrefix;if(_r){var n=Tu,r=Cu;n=(r&~(1<<32-xl(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=_1++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Xl]=t,e[v1]=r,FK(e,t,!1,!1),t.stateNode=e;e:{switch(s=hF(n,r),n){case"dialog":br("cancel",e),br("close",e),i=r;break;case"iframe":case"object":case"embed":br("load",e),i=r;break;case"video":case"audio":for(i=0;ijg&&(t.flags|=128,r=!0,Sb(o,!1),t.lanes=4194304)}else{if(!r)if(e=oC(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Sb(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!_r)return ao(t),null}else 2*ei()-o.renderingStartTime>jg&&n!==1073741824&&(t.flags|=128,r=!0,Sb(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ei(),t.sibling=null,n=Nr.current,cr(Nr,r?n&1|2:n&1),t):(ao(t),null);case 22:case 23:return vz(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ds&1073741824&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function Jde(e,t){switch(Q4(t),t.tag){case 1:return is(t.type)&&JE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Fg(),xr(rs),xr(yo),sz(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return oz(t),null;case 13:if(xr(Nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));Bg()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xr(Nr),null;case 4:return Fg(),null;case 10:return tz(t.type._context),null;case 22:case 23:return vz(),null;case 24:return null;default:return null}}var w_=!1,uo=!1,Zde=typeof WeakSet=="function"?WeakSet:Set,lt=null;function Zm(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xr(e,t,r)}else n.current=null}function zF(e,t,n){try{n()}catch(r){Xr(e,t,r)}}var A8=!1;function efe(e,t){if(SF=XE,e=GY(),Y4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++f===r&&(c=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(EF={focusedElem:e,selectionRange:n},XE=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?y:sl(t.type,y),S);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Xr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return v=A8,A8=!1,v}function Rx(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&zF(t,n,o)}i=i.next}while(i!==r)}}function Ck(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function jF(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function UK(e){var t=e.alternate;t!==null&&(e.alternate=null,UK(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Xl],delete t[v1],delete t[kF],delete t[Nde],delete t[Bde])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function HK(e){return e.tag===5||e.tag===3||e.tag===4}function I8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||HK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function UF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=QE));else if(r!==4&&(e=e.child,e!==null))for(UF(e,t,n),e=e.sibling;e!==null;)UF(e,t,n),e=e.sibling}function HF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(HF(e,t,n),e=e.sibling;e!==null;)HF(e,t,n),e=e.sibling}var qi=null,ll=!1;function nd(e,t,n){for(n=n.child;n!==null;)WK(e,t,n),n=n.sibling}function WK(e,t,n){if(Zl&&typeof Zl.onCommitFiberUnmount=="function")try{Zl.onCommitFiberUnmount(vk,n)}catch{}switch(n.tag){case 5:uo||Zm(n,t);case 6:var r=qi,i=ll;qi=null,nd(e,t,n),qi=r,ll=i,qi!==null&&(ll?(e=qi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qi.removeChild(n.stateNode));break;case 18:qi!==null&&(ll?(e=qi,n=n.stateNode,e.nodeType===8?kD(e.parentNode,n):e.nodeType===1&&kD(e,n),f1(e)):kD(qi,n.stateNode));break;case 4:r=qi,i=ll,qi=n.stateNode.containerInfo,ll=!0,nd(e,t,n),qi=r,ll=i;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&zF(n,t,s),i=i.next}while(i!==r)}nd(e,t,n);break;case 1:if(!uo&&(Zm(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Xr(n,t,a)}nd(e,t,n);break;case 21:nd(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,nd(e,t,n),uo=r):nd(e,t,n);break;default:nd(e,t,n)}}function R8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Zde),t.forEach(function(r){var i=cfe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ja(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ei()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*nfe(r/1960))-r,10e?16:e,kd===null)var r=!1;else{if(e=kd,kd=null,uC=0,Tn&6)throw Error(Me(331));var i=Tn;for(Tn|=4,lt=e.current;lt!==null;){var o=lt,s=o.child;if(lt.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cei()-mz?xp(e,0):pz|=n),os(e,t)}function JK(e,t){t===0&&(e.mode&1?(t=f_,f_<<=1,!(f_&130023424)&&(f_=4194304)):t=1);var n=zo();e=$u(e,t),e!==null&&(vw(e,t,n),os(e,n))}function lfe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),JK(e,n)}function cfe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),JK(e,n)}var ZK;ZK=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rs.current)es=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return es=!1,Kde(e,t,n);es=!!(e.flags&131072)}else es=!1,_r&&t.flags&1048576&&nK(t,tC,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;sE(e,t),e=t.pendingProps;var i=Ng(t,yo.current);bg(t,n),i=lz(null,t,r,e,i,n);var o=cz();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,is(r)?(o=!0,ZE(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,rz(t),i.updater=Sk,t.stateNode=i,i._reactInternals=t,MF(t,r,e,n),t=NF(null,t,r,!0,o,n)):(t.tag=0,_r&&o&&K4(t),Do(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(sE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=dfe(r),e=sl(r,e),i){case 0:t=DF(null,t,r,e,n);break e;case 1:t=C8(null,t,r,e,n);break e;case 11:t=S8(null,t,r,e,n);break e;case 14:t=E8(null,t,r,sl(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),DF(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),C8(e,t,r,i,n);case 3:e:{if(NK(t),e===null)throw Error(Me(387));r=t.pendingProps,o=t.memoizedState,i=o.element,sK(e,t),iC(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=zg(Error(Me(423)),t),t=T8(e,t,r,n,i);break e}else if(r!==i){i=zg(Error(Me(424)),t),t=T8(e,t,r,n,i);break e}else for(zs=Fd(t.stateNode.containerInfo.firstChild),Ws=t,_r=!0,ul=null,n=uK(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Bg(),r===i){t=Fu(e,t,n);break e}Do(e,t,r,n)}t=t.child}return t;case 5:return dK(t),e===null&&RF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,CF(r,i)?s=null:o!==null&&CF(r,o)&&(t.flags|=32),DK(e,t),Do(e,t,s,n),t.child;case 6:return e===null&&RF(t),null;case 13:return BK(e,t,n);case 4:return iz(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=$g(t,null,r,n):Do(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),S8(e,t,r,i,n);case 7:return Do(e,t,t.pendingProps,n),t.child;case 8:return Do(e,t,t.pendingProps.children,n),t.child;case 12:return Do(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,cr(nC,r._currentValue),r._currentValue=s,o!==null)if(Al(o.value,s)){if(o.children===i.children&&!rs.current){t=Fu(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Iu(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),PF(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),PF(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Do(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,bg(t,n),i=Ia(i),r=r(i),t.flags|=1,Do(e,t,r,n),t.child;case 14:return r=t.type,i=sl(r,t.pendingProps),i=sl(r.type,i),E8(e,t,r,i,n);case 15:return MK(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sl(r,i),sE(e,t),t.tag=1,is(r)?(e=!0,ZE(t)):e=!1,bg(t,n),lK(t,r,i),MF(t,r,i,n),NF(null,t,r,!0,e,n);case 19:return $K(e,t,n);case 22:return LK(e,t,n)}throw Error(Me(156,t.tag))};function eQ(e,t){return TY(e,t)}function ufe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function va(e,t,n,r){return new ufe(e,t,n,r)}function bz(e){return e=e.prototype,!(!e||!e.isReactComponent)}function dfe(e){if(typeof e=="function")return bz(e)?1:0;if(e!=null){if(e=e.$$typeof,e===$4)return 11;if(e===F4)return 14}return 2}function Hd(e,t){var n=e.alternate;return n===null?(n=va(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function cE(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")bz(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Wm:return wp(n.children,i,o,t);case B4:s=8,i|=8;break;case rF:return e=va(12,n,t,i|2),e.elementType=rF,e.lanes=o,e;case iF:return e=va(13,n,t,i),e.elementType=iF,e.lanes=o,e;case oF:return e=va(19,n,t,i),e.elementType=oF,e.lanes=o,e;case cY:return kk(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case aY:s=10;break e;case lY:s=9;break e;case $4:s=11;break e;case F4:s=14;break e;case hd:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=va(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function wp(e,t,n,r){return e=va(7,e,r,t),e.lanes=n,e}function kk(e,t,n,r){return e=va(22,e,r,t),e.elementType=cY,e.lanes=n,e.stateNode={isHidden:!1},e}function DD(e,t,n){return e=va(6,e,null,t),e.lanes=n,e}function ND(e,t,n){return t=va(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function ffe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=gD(0),this.expirationTimes=gD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=gD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function xz(e,t,n,r,i,o,s,a,c){return e=new ffe(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=va(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},rz(o),e}function hfe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(iQ)}catch(e){console.error(e)}}iQ(),nY.exports=ia;var _v=nY.exports;const tg=ds(_v),$8={disabled:!1},hC=de.createContext(null);var yfe=function(t){return t.scrollTop},ix="unmounted",Jh="exited",Zh="entering",Pm="entered",XF="exiting",Xu=function(e){gk(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?a?(c=Jh,o.appearStatus=Zh):c=Pm:r.unmountOnExit||r.mountOnEnter?c=ix:c=Jh,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===ix?{status:Jh}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==Zh&&s!==Pm&&(o=Zh):(s===Zh||s===Pm)&&(o=XF)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===Zh){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:tg.findDOMNode(this);s&&yfe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Jh&&this.setState({status:ix})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[tg.findDOMNode(this),a],u=c[0],f=c[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||$8.disabled){this.safeSetState({status:Pm},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:Zh},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Pm},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:tg.findDOMNode(this);if(!o||$8.disabled){this.safeSetState({status:Jh},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:XF},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Jh},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:tg.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ix)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Ne(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(hC.Provider,{value:null},typeof s=="function"?s(i,a):de.cloneElement(de.Children.only(s),a))},t}(de.Component);Xu.contextType=hC;Xu.propTypes={};function bm(){}Xu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:bm,onEntering:bm,onEntered:bm,onExit:bm,onExiting:bm,onExited:bm};Xu.UNMOUNTED=ix;Xu.EXITED=Jh;Xu.ENTERING=Zh;Xu.ENTERED=Pm;Xu.EXITING=XF;const Ez=Xu;function bfe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Cz(e,t){var n=function(o){return t&&R.isValidElement(o)?t(o):o},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function xfe(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var c in t){if(r[c])for(s=0;se.scrollTop;function Ug(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function Tfe(e){return Ct("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const kfe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Afe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return At(r,Tfe,n)},Ife=Ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Rfe=Ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Pfe=Ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),sQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:c,easing:u,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:S,orientation:w="vertical",style:b,timeout:x=ZX.standard,TransitionComponent:E=Ez}=r,I=Ne(r,kfe),A=$({},r,{orientation:w,collapsedSize:a}),k=Afe(A),O=Dn(),D=R.useRef(),N=R.useRef(null),H=R.useRef(),G=typeof a=="number"?`${a}px`:a,z=w==="horizontal",L=z?"width":"height";R.useEffect(()=>()=>{clearTimeout(D.current)},[]);const F=R.useRef(null),j=Tr(n,F),V=J=>ae=>{if(J){const le=F.current;ae===void 0?J(le):J(le,ae)}},W=()=>N.current?N.current[z?"clientWidth":"clientHeight"]:0,K=V((J,ae)=>{N.current&&z&&(N.current.style.position="absolute"),J.style[L]=G,h&&h(J,ae)}),X=V((J,ae)=>{const le=W();N.current&&z&&(N.current.style.position="");const{duration:he,easing:pe}=Ug({style:b,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const ve=O.transitions.getAutoHeightDuration(le);J.style.transitionDuration=`${ve}ms`,H.current=ve}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[L]=`${le}px`,J.style.transitionTimingFunction=pe,g&&g(J,ae)}),Q=V((J,ae)=>{J.style[L]="auto",p&&p(J,ae)}),ie=V(J=>{J.style[L]=`${W()}px`,v&&v(J)}),ce=V(y),ue=V(J=>{const ae=W(),{duration:le,easing:he}=Ug({style:b,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const pe=O.transitions.getAutoHeightDuration(ae);J.style.transitionDuration=`${pe}ms`,H.current=pe}else J.style.transitionDuration=typeof le=="string"?le:`${le}ms`;J.style[L]=G,J.style.transitionTimingFunction=he,S&&S(J)}),se=J=>{x==="auto"&&(D.current=setTimeout(J,H.current||0)),i&&i(F.current,J)};return C.jsx(E,$({in:f,onEnter:K,onEntered:Q,onEntering:X,onExit:ie,onExited:ce,onExiting:ue,addEndListener:se,nodeRef:F,timeout:x==="auto"?null:x},I,{children:(J,ae)=>C.jsx(Ife,$({as:c,className:Ue(k.root,s,{entered:k.entered,exited:!f&&G==="0px"&&k.hidden}[J]),style:$({[z?"minWidth":"minHeight"]:G},b),ownerState:$({},A,{state:J}),ref:j},ae,{children:C.jsx(Rfe,{ownerState:$({},A,{state:J}),className:k.wrapper,ref:N,children:C.jsx(Pfe,{ownerState:$({},A,{state:J}),className:k.wrapperInner,children:o})})}))}))});sQ.muiSupportAuto=!0;const BD=sQ;function Ofe(e){return Ct("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 Mfe=["className","component","elevation","square","variant"],Lfe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return At(o,Ofe,i)},Dfe=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}`]]}})(({theme:e,ownerState:t})=>{var n;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${kn("#fff",P6(t.elevation))}, ${kn("#fff",P6(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Nfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,u=Ne(r,Mfe),f=$({},r,{component:o,elevation:s,square:a,variant:c}),h=Lfe(f);return C.jsx(Dfe,$({as:o,ownerState:f,className:Ue(h.root,i),ref:n},u))}),Sv=Nfe;function Bfe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:c,timeout:u}=e,[f,h]=R.useState(!1),p=Ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},v=Ue(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&h(!0),R.useEffect(()=>{if(!a&&c!=null){const y=setTimeout(c,u);return()=>{clearTimeout(y)}}},[c,a,u]),C.jsx("span",{className:p,style:g,children:C.jsx("span",{className:v})})}const $fe=It("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),da=$fe,Ffe=["center","classes","className"];let Ok=e=>e,F8,z8,j8,U8;const YF=550,zfe=80,jfe=df(F8||(F8=Ok` +`+o.stack}return{value:e,source:t,stack:i,digest:null}}function LL(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function BF(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var Jde=typeof WeakMap=="function"?WeakMap:Map;function MK(e,t,n){n=Ru(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){uC||(uC=!0,qF=r),BF(e,t)},n}function DK(e,t,n){n=Ru(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r=="function"){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){BF(e,t)}}var o=e.stateNode;return o!==null&&typeof o.componentDidCatch=="function"&&(n.callback=function(){BF(e,t),typeof r!="function"&&(Ud===null?Ud=new Set([this]):Ud.add(this));var s=t.stack;this.componentDidCatch(t.value,{componentStack:s!==null?s:""})}),n}function S8(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Jde;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=ffe.bind(null,e,t,n),t.then(e,e))}function E8(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t!==null?t.dehydrated!==null:!0),t)return e;e=e.return}while(e!==null);return null}function C8(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=Ru(-1,1),t.tag=2,jd(n,t,1))),n.lanes|=1),e)}var Zde=Xu.ReactCurrentOwner,es=!1;function Lo(e,t,n,r){t.child=e===null?fK(t,null,n,r):Fg(t,e.child,n,r)}function T8(e,t,n,r,i){n=n.render;var o=t.ref;return xg(t,i),r=dz(e,t,n,r,o,i),n=fz(),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zu(e,t,i)):(_r&&n&&Z4(t),t.flags|=1,Lo(e,t,r,i),t.child)}function k8(e,t,n,r,i){if(e===null){var o=n.type;return typeof o=="function"&&!_z(o)&&o.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=o,LK(e,t,o,r,i)):(e=uE(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(o=e.child,!(e.lanes&i)){var s=o.memoizedProps;if(n=n.compare,n=n!==null?n:g1,n(s,r)&&e.ref===t.ref)return zu(e,t,i)}return t.flags|=1,e=Wd(o,r),e.ref=t.ref,e.return=t,t.child=e}function LK(e,t,n,r,i){if(e!==null){var o=e.memoizedProps;if(g1(o,r)&&e.ref===t.ref)if(es=!1,t.pendingProps=r=o,(e.lanes&i)!==0)e.flags&131072&&(es=!0);else return t.lanes=e.lanes,zu(e,t,i)}return $F(e,t,n,r,i)}function NK(e,t,n){var r=t.pendingProps,i=r.children,o=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},cr(tg,Ls),Ls|=n;else{if(!(n&1073741824))return e=o!==null?o.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,cr(tg,Ls),Ls|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=o!==null?o.baseLanes:n,cr(tg,Ls),Ls|=r}else o!==null?(r=o.baseLanes|n,t.memoizedState=null):r=n,cr(tg,Ls),Ls|=r;return Lo(e,t,i,n),t.child}function BK(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function $F(e,t,n,r,i){var o=is(n)?Np:yo.current;return o=Bg(t,o),xg(t,i),n=dz(e,t,n,r,o,i),r=fz(),e!==null&&!es?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,zu(e,t,i)):(_r&&r&&Z4(t),t.flags|=1,Lo(e,t,n,i),t.child)}function A8(e,t,n,r,i){if(is(n)){var o=!0;eC(t)}else o=!1;if(xg(t,i),t.stateNode===null)aE(e,t),uK(t,n,r),NF(t,n,r,i),r=!0;else if(e===null){var s=t.stateNode,a=t.memoizedProps;s.props=a;var c=s.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ra(u):(u=is(n)?Np:yo.current,u=Bg(t,u));var f=n.getDerivedStateFromProps,h=typeof f=="function"||typeof s.getSnapshotBeforeUpdate=="function";h||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==r||c!==u)&&b8(t,s,r,u),md=!1;var p=t.memoizedState;s.state=p,oC(t,r,s,i),c=t.memoizedState,a!==r||p!==c||rs.current||md?(typeof f=="function"&&(LF(t,n,f,r),c=t.memoizedState),(a=md||y8(t,n,a,r,p,c,u))?(h||typeof s.UNSAFE_componentWillMount!="function"&&typeof s.componentWillMount!="function"||(typeof s.componentWillMount=="function"&&s.componentWillMount(),typeof s.UNSAFE_componentWillMount=="function"&&s.UNSAFE_componentWillMount()),typeof s.componentDidMount=="function"&&(t.flags|=4194308)):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),s.props=r,s.state=c,s.context=u,r=a):(typeof s.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{s=t.stateNode,lK(e,t),a=t.memoizedProps,u=t.type===t.elementType?a:al(t.type,a),s.props=u,h=t.pendingProps,p=s.context,c=n.contextType,typeof c=="object"&&c!==null?c=Ra(c):(c=is(n)?Np:yo.current,c=Bg(t,c));var g=n.getDerivedStateFromProps;(f=typeof g=="function"||typeof s.getSnapshotBeforeUpdate=="function")||typeof s.UNSAFE_componentWillReceiveProps!="function"&&typeof s.componentWillReceiveProps!="function"||(a!==h||p!==c)&&b8(t,s,r,c),md=!1,p=t.memoizedState,s.state=p,oC(t,r,s,i);var v=t.memoizedState;a!==h||p!==v||rs.current||md?(typeof g=="function"&&(LF(t,n,g,r),v=t.memoizedState),(u=md||y8(t,n,u,r,p,v,c)||!1)?(f||typeof s.UNSAFE_componentWillUpdate!="function"&&typeof s.componentWillUpdate!="function"||(typeof s.componentWillUpdate=="function"&&s.componentWillUpdate(r,v,c),typeof s.UNSAFE_componentWillUpdate=="function"&&s.UNSAFE_componentWillUpdate(r,v,c)),typeof s.componentDidUpdate=="function"&&(t.flags|=4),typeof s.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=v),s.props=r,s.state=v,s.context=c,r=u):(typeof s.componentDidUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=4),typeof s.getSnapshotBeforeUpdate!="function"||a===e.memoizedProps&&p===e.memoizedState||(t.flags|=1024),r=!1)}return FF(e,t,n,r,o,i)}function FF(e,t,n,r,i,o){BK(e,t);var s=(t.flags&128)!==0;if(!r&&!s)return i&&h8(t,n,!1),zu(e,t,o);r=t.stateNode,Zde.current=t;var a=s&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&s?(t.child=Fg(t,e.child,null,o),t.child=Fg(t,null,a,o)):Lo(e,t,a,o),t.memoizedState=r.state,i&&h8(t,n,!0),t.child}function $K(e){var t=e.stateNode;t.pendingContext?f8(e,t.pendingContext,t.pendingContext!==t.context):t.context&&f8(e,t.context,!1),az(e,t.containerInfo)}function I8(e,t,n,r,i){return $g(),tz(i),t.flags|=256,Lo(e,t,n,r),t.child}var zF={dehydrated:null,treeContext:null,retryLane:0};function jF(e){return{baseLanes:e,cachePool:null,transitions:null}}function FK(e,t,n){var r=t.pendingProps,i=Nr.current,o=!1,s=(t.flags&128)!==0,a;if((a=s)||(a=e!==null&&e.memoizedState===null?!1:(i&2)!==0),a?(o=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),cr(Nr,i&1),e===null)return MF(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(s=r.children,e=r.fallback,o?(r=t.mode,o=t.child,s={mode:"hidden",children:s},!(r&1)&&o!==null?(o.childLanes=0,o.pendingProps=s):o=Ak(s,r,0,null),e=Sp(e,r,n,null),o.return=t,e.return=t,o.sibling=e,t.child=o,t.child.memoizedState=jF(n),t.memoizedState=zF,e):mz(t,s));if(i=e.memoizedState,i!==null&&(a=i.dehydrated,a!==null))return efe(e,t,s,r,a,i,n);if(o){o=r.fallback,s=t.mode,i=e.child,a=i.sibling;var c={mode:"hidden",children:r.children};return!(s&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=Wd(i,c),r.subtreeFlags=i.subtreeFlags&14680064),a!==null?o=Wd(a,o):(o=Sp(o,s,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,r=o,o=t.child,s=e.child.memoizedState,s=s===null?jF(n):{baseLanes:s.baseLanes|n,cachePool:null,transitions:s.transitions},o.memoizedState=s,o.childLanes=e.childLanes&~n,t.memoizedState=zF,r}return o=e.child,e=o.sibling,r=Wd(o,{mode:"visible",children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function mz(e,t){return t=Ak({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function w_(e,t,n,r){return r!==null&&tz(r),Fg(t,e.child,null,n),e=mz(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function efe(e,t,n,r,i,o,s){if(n)return t.flags&256?(t.flags&=-257,r=LL(Error(Me(422))),w_(e,t,s,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(o=r.fallback,i=t.mode,r=Ak({mode:"visible",children:r.children},i,0,null),o=Sp(o,i,s,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,t.mode&1&&Fg(t,e.child,null,s),t.child.memoizedState=jF(s),t.memoizedState=zF,o);if(!(t.mode&1))return w_(e,t,s,null);if(i.data==="$!"){if(r=i.nextSibling&&i.nextSibling.dataset,r)var a=r.dgst;return r=a,o=Error(Me(419)),r=LL(o,r,void 0),w_(e,t,s,r)}if(a=(s&e.childLanes)!==0,es||a){if(r=Pi,r!==null){switch(s&-s){case 4:i=2;break;case 16:i=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:i=32;break;case 536870912:i=268435456;break;default:i=0}i=i&(r.suspendedLanes|s)?0:i,i!==0&&i!==o.retryLane&&(o.retryLane=i,Fu(e,i),wl(r,e,i,-1))}return wz(),r=LL(Error(Me(421))),w_(e,t,s,r)}return i.data==="$?"?(t.flags|=128,t.child=e.child,t=hfe.bind(null,e),i._reactRetry=t,null):(e=o.treeContext,zs=zd(i.nextSibling),Ws=t,_r=!0,dl=null,e!==null&&(ha[pa++]=Cu,ha[pa++]=Tu,ha[pa++]=Bp,Cu=e.id,Tu=e.overflow,Bp=t),t=mz(t,r.children),t.flags|=4096,t)}function R8(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),DF(e.return,t,n)}function NL(e,t,n,r,i){var o=e.memoizedState;o===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i)}function zK(e,t,n){var r=t.pendingProps,i=r.revealOrder,o=r.tail;if(Lo(e,t,r.children,n),r=Nr.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&R8(e,n,t);else if(e.tag===19)R8(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(cr(Nr,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&sC(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),NL(t,!1,i,n,o);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&sC(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}NL(t,!0,n,null,o);break;case"together":NL(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function aE(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function zu(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Fp|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(Me(153));if(t.child!==null){for(e=t.child,n=Wd(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Wd(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function tfe(e,t,n){switch(t.tag){case 3:$K(t),$g();break;case 5:hK(t);break;case 1:is(t.type)&&eC(t);break;case 4:az(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;cr(rC,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(cr(Nr,Nr.current&1),t.flags|=128,null):n&t.child.childLanes?FK(e,t,n):(cr(Nr,Nr.current&1),e=zu(e,t,n),e!==null?e.sibling:null);cr(Nr,Nr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return zK(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),cr(Nr,Nr.current),r)break;return null;case 22:case 23:return t.lanes=0,NK(e,t,n)}return zu(e,t,n)}var jK,UF,UK,HK;jK=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}};UF=function(){};UK=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,pp(nc.current);var o=null;switch(n){case"input":i=uF(e,i),r=uF(e,r),o=[];break;case"select":i=jr({},i,{value:void 0}),r=jr({},r,{value:void 0}),o=[];break;case"textarea":i=hF(e,i),r=hF(e,r),o=[];break;default:typeof i.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=JE)}mF(n,r);var s;n=null;for(u in i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null)if(u==="style"){var a=i[u];for(s in a)a.hasOwnProperty(s)&&(n||(n={}),n[s]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(c1.hasOwnProperty(u)?o||(o=[]):(o=o||[]).push(u,null));for(u in r){var c=r[u];if(a=i!=null?i[u]:void 0,r.hasOwnProperty(u)&&c!==a&&(c!=null||a!=null))if(u==="style")if(a){for(s in a)!a.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(n||(n={}),n[s]="");for(s in c)c.hasOwnProperty(s)&&a[s]!==c[s]&&(n||(n={}),n[s]=c[s])}else n||(o||(o=[]),o.push(u,n)),n=c;else u==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,a=a?a.__html:void 0,c!=null&&a!==c&&(o=o||[]).push(u,c)):u==="children"?typeof c!="string"&&typeof c!="number"||(o=o||[]).push(u,""+c):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(c1.hasOwnProperty(u)?(c!=null&&u==="onScroll"&&br("scroll",e),o||a===c||(o=[])):(o=o||[]).push(u,c))}n&&(o=o||[]).push("style",n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}};HK=function(e,t,n,r){n!==r&&(t.flags|=4)};function Cb(e,t){if(!_r)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function ao(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function nfe(e,t,n){var r=t.pendingProps;switch(ez(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ao(t),null;case 1:return is(t.type)&&ZE(),ao(t),null;case 3:return r=t.stateNode,zg(),xr(rs),xr(yo),cz(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(b_(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,dl!==null&&(KF(dl),dl=null))),UF(e,t),ao(t),null;case 5:lz(t);var i=pp(w1.current);if(n=t.type,e!==null&&t.stateNode!=null)UK(e,t,n,r,i),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error(Me(166));return ao(t),null}if(e=pp(nc.current),b_(t)){r=t.stateNode,n=t.type;var o=t.memoizedProps;switch(r[Kl]=t,r[b1]=o,e=(t.mode&1)!==0,n){case"dialog":br("cancel",r),br("close",r);break;case"iframe":case"object":case"embed":br("load",r);break;case"video":case"audio":for(i=0;i<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Kl]=t,e[b1]=r,jK(e,t,!1,!1),t.stateNode=e;e:{switch(s=gF(n,r),n){case"dialog":br("cancel",e),br("close",e),i=r;break;case"iframe":case"object":case"embed":br("load",e),i=r;break;case"video":case"audio":for(i=0;iUg&&(t.flags|=128,r=!0,Cb(o,!1),t.lanes=4194304)}else{if(!r)if(e=sC(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Cb(o,!0),o.tail===null&&o.tailMode==="hidden"&&!s.alternate&&!_r)return ao(t),null}else 2*ei()-o.renderingStartTime>Ug&&n!==1073741824&&(t.flags|=128,r=!0,Cb(o,!1),t.lanes=4194304);o.isBackwards?(s.sibling=t.child,t.child=s):(n=o.last,n!==null?n.sibling=s:t.child=s,o.last=s)}return o.tail!==null?(t=o.tail,o.rendering=t,o.tail=t.sibling,o.renderingStartTime=ei(),t.sibling=null,n=Nr.current,cr(Nr,r?n&1|2:n&1),t):(ao(t),null);case 22:case 23:return xz(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?Ls&1073741824&&(ao(t),t.subtreeFlags&6&&(t.flags|=8192)):ao(t),null;case 24:return null;case 25:return null}throw Error(Me(156,t.tag))}function rfe(e,t){switch(ez(t),t.tag){case 1:return is(t.type)&&ZE(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return zg(),xr(rs),xr(yo),cz(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return lz(t),null;case 13:if(xr(Nr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Me(340));$g()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xr(Nr),null;case 4:return zg(),null;case 10:return iz(t.type._context),null;case 22:case 23:return xz(),null;case 24:return null;default:return null}}var __=!1,uo=!1,ife=typeof WeakSet=="function"?WeakSet:Set,lt=null;function eg(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Xr(e,t,r)}else n.current=null}function HF(e,t,n){try{n()}catch(r){Xr(e,t,r)}}var P8=!1;function ofe(e,t){if(TF=YE,e=qY(),J4(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,o=r.focusNode;r=r.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break e}var s=0,a=-1,c=-1,u=0,f=0,h=e,p=null;t:for(;;){for(var g;h!==n||i!==0&&h.nodeType!==3||(a=s+i),h!==o||r!==0&&h.nodeType!==3||(c=s+r),h.nodeType===3&&(s+=h.nodeValue.length),(g=h.firstChild)!==null;)p=h,h=g;for(;;){if(h===e)break t;if(p===n&&++u===i&&(a=s),p===o&&++f===r&&(c=s),(g=h.nextSibling)!==null)break;h=p,p=h.parentNode}h=g}n=a===-1||c===-1?null:{start:a,end:c}}else n=null}n=n||{start:0,end:0}}else n=null;for(kF={focusedElem:e,selectionRange:n},YE=!1,lt=t;lt!==null;)if(t=lt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,lt=e;else for(;lt!==null;){t=lt;try{var v=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,S=v.memoizedState,w=t.stateNode,b=w.getSnapshotBeforeUpdate(t.elementType===t.type?y:al(t.type,y),S);w.__reactInternalSnapshotBeforeUpdate=b}break;case 3:var x=t.stateNode.containerInfo;x.nodeType===1?x.textContent="":x.nodeType===9&&x.documentElement&&x.removeChild(x.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Me(163))}}catch(E){Xr(t,t.return,E)}if(e=t.sibling,e!==null){e.return=t.return,lt=e;break}lt=t.return}return v=P8,P8=!1,v}function Ox(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var o=i.destroy;i.destroy=void 0,o!==void 0&&HF(t,n,o)}i=i.next}while(i!==r)}}function Tk(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function WF(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function WK(e){var t=e.alternate;t!==null&&(e.alternate=null,WK(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Kl],delete t[b1],delete t[RF],delete t[jde],delete t[Ude])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function GK(e){return e.tag===5||e.tag===3||e.tag===4}function O8(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GK(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function GF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=JE));else if(r!==4&&(e=e.child,e!==null))for(GF(e,t,n),e=e.sibling;e!==null;)GF(e,t,n),e=e.sibling}function VF(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(VF(e,t,n),e=e.sibling;e!==null;)VF(e,t,n),e=e.sibling}var qi=null,cl=!1;function rd(e,t,n){for(n=n.child;n!==null;)VK(e,t,n),n=n.sibling}function VK(e,t,n){if(tc&&typeof tc.onCommitFiberUnmount=="function")try{tc.onCommitFiberUnmount(yk,n)}catch{}switch(n.tag){case 5:uo||eg(n,t);case 6:var r=qi,i=cl;qi=null,rd(e,t,n),qi=r,cl=i,qi!==null&&(cl?(e=qi,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):qi.removeChild(n.stateNode));break;case 18:qi!==null&&(cl?(e=qi,n=n.stateNode,e.nodeType===8?IL(e.parentNode,n):e.nodeType===1&&IL(e,n),p1(e)):IL(qi,n.stateNode));break;case 4:r=qi,i=cl,qi=n.stateNode.containerInfo,cl=!0,rd(e,t,n),qi=r,cl=i;break;case 0:case 11:case 14:case 15:if(!uo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var o=i,s=o.destroy;o=o.tag,s!==void 0&&(o&2||o&4)&&HF(n,t,s),i=i.next}while(i!==r)}rd(e,t,n);break;case 1:if(!uo&&(eg(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(a){Xr(n,t,a)}rd(e,t,n);break;case 21:rd(e,t,n);break;case 22:n.mode&1?(uo=(r=uo)||n.memoizedState!==null,rd(e,t,n),uo=r):rd(e,t,n);break;default:rd(e,t,n)}}function M8(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new ife),t.forEach(function(r){var i=pfe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Za(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~o}if(r=i,r=ei()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*afe(r/1960))-r,10e?16:e,Ad===null)var r=!1;else{if(e=Ad,Ad=null,dC=0,Tn&6)throw Error(Me(331));var i=Tn;for(Tn|=4,lt=e.current;lt!==null;){var o=lt,s=o.child;if(lt.flags&16){var a=o.deletions;if(a!==null){for(var c=0;cei()-yz?_p(e,0):vz|=n),os(e,t)}function eQ(e,t){t===0&&(e.mode&1?(t=h_,h_<<=1,!(h_&130023424)&&(h_=4194304)):t=1);var n=zo();e=Fu(e,t),e!==null&&(yw(e,t,n),os(e,n))}function hfe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),eQ(e,n)}function pfe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Me(314))}r!==null&&r.delete(t),eQ(e,n)}var tQ;tQ=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||rs.current)es=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return es=!1,tfe(e,t,n);es=!!(e.flags&131072)}else es=!1,_r&&t.flags&1048576&&iK(t,nC,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;aE(e,t),e=t.pendingProps;var i=Bg(t,yo.current);xg(t,n),i=dz(null,t,r,e,i,n);var o=fz();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,is(r)?(o=!0,eC(t)):o=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,sz(t),i.updater=Ek,t.stateNode=i,i._reactInternals=t,NF(t,r,e,n),t=FF(null,t,r,!0,o,n)):(t.tag=0,_r&&o&&Z4(t),Lo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(aE(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=gfe(r),e=al(r,e),i){case 0:t=$F(null,t,r,e,n);break e;case 1:t=A8(null,t,r,e,n);break e;case 11:t=T8(null,t,r,e,n);break e;case 14:t=k8(null,t,r,al(r.type,e),n);break e}throw Error(Me(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),$F(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),A8(e,t,r,i,n);case 3:e:{if($K(t),e===null)throw Error(Me(387));r=t.pendingProps,o=t.memoizedState,i=o.element,lK(e,t),oC(t,r,null,n);var s=t.memoizedState;if(r=s.element,o.isDehydrated)if(o={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){i=jg(Error(Me(423)),t),t=I8(e,t,r,n,i);break e}else if(r!==i){i=jg(Error(Me(424)),t),t=I8(e,t,r,n,i);break e}else for(zs=zd(t.stateNode.containerInfo.firstChild),Ws=t,_r=!0,dl=null,n=fK(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if($g(),r===i){t=zu(e,t,n);break e}Lo(e,t,r,n)}t=t.child}return t;case 5:return hK(t),e===null&&MF(t),r=t.type,i=t.pendingProps,o=e!==null?e.memoizedProps:null,s=i.children,AF(r,i)?s=null:o!==null&&AF(r,o)&&(t.flags|=32),BK(e,t),Lo(e,t,s,n),t.child;case 6:return e===null&&MF(t),null;case 13:return FK(e,t,n);case 4:return az(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Fg(t,null,r,n):Lo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),T8(e,t,r,i,n);case 7:return Lo(e,t,t.pendingProps,n),t.child;case 8:return Lo(e,t,t.pendingProps.children,n),t.child;case 12:return Lo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,o=t.memoizedProps,s=i.value,cr(rC,r._currentValue),r._currentValue=s,o!==null)if(Il(o.value,s)){if(o.children===i.children&&!rs.current){t=zu(e,t,n);break e}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var a=o.dependencies;if(a!==null){s=o.child;for(var c=a.firstContext;c!==null;){if(c.context===r){if(o.tag===1){c=Ru(-1,n&-n),c.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var f=u.pending;f===null?c.next=c:(c.next=f.next,f.next=c),u.pending=c}}o.lanes|=n,c=o.alternate,c!==null&&(c.lanes|=n),DF(o.return,n,t),a.lanes|=n;break}c=c.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(Me(341));s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),DF(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}Lo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,xg(t,n),i=Ra(i),r=r(i),t.flags|=1,Lo(e,t,r,n),t.child;case 14:return r=t.type,i=al(r,t.pendingProps),i=al(r.type,i),k8(e,t,r,i,n);case 15:return LK(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:al(r,i),aE(e,t),t.tag=1,is(r)?(e=!0,eC(t)):e=!1,xg(t,n),uK(t,r,i),NF(t,r,i,n),FF(null,t,r,!0,e,n);case 19:return zK(e,t,n);case 22:return NK(e,t,n)}throw Error(Me(156,t.tag))};function nQ(e,t){return AY(e,t)}function mfe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function ya(e,t,n,r){return new mfe(e,t,n,r)}function _z(e){return e=e.prototype,!(!e||!e.isReactComponent)}function gfe(e){if(typeof e=="function")return _z(e)?1:0;if(e!=null){if(e=e.$$typeof,e===j4)return 11;if(e===U4)return 14}return 2}function Wd(e,t){var n=e.alternate;return n===null?(n=ya(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function uE(e,t,n,r,i,o){var s=2;if(r=e,typeof e=="function")_z(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Gm:return Sp(n.children,i,o,t);case z4:s=8,i|=8;break;case sF:return e=ya(12,n,t,i|2),e.elementType=sF,e.lanes=o,e;case aF:return e=ya(13,n,t,i),e.elementType=aF,e.lanes=o,e;case lF:return e=ya(19,n,t,i),e.elementType=lF,e.lanes=o,e;case dY:return Ak(n,i,o,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case cY:s=10;break e;case uY:s=9;break e;case j4:s=11;break e;case U4:s=14;break e;case pd:s=16,r=null;break e}throw Error(Me(130,e==null?e:typeof e,""))}return t=ya(s,n,t,i),t.elementType=e,t.type=r,t.lanes=o,t}function Sp(e,t,n,r){return e=ya(7,e,r,t),e.lanes=n,e}function Ak(e,t,n,r){return e=ya(22,e,r,t),e.elementType=dY,e.lanes=n,e.stateNode={isHidden:!1},e}function BL(e,t,n){return e=ya(6,e,null,t),e.lanes=n,e}function $L(e,t,n){return t=ya(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function vfe(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=yL(0),this.expirationTimes=yL(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=yL(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function Sz(e,t,n,r,i,o,s,a,c){return e=new vfe(e,t,n,a,c),t===1?(t=1,o===!0&&(t|=8)):t=0,o=ya(3,null,null,t),e.current=o,o.stateNode=e,o.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},sz(o),e}function yfe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(sQ)}catch(e){console.error(e)}}sQ(),iY.exports=ia;var Ev=iY.exports;const ng=ds(Ev),j8={disabled:!1},pC=de.createContext(null);var Sfe=function(t){return t.scrollTop},sx="unmounted",ep="exited",tp="entering",Om="entered",QF="exiting",Yu=function(e){vk(t,e);function t(r,i){var o;o=e.call(this,r,i)||this;var s=i,a=s&&!s.isMounting?r.enter:r.appear,c;return o.appearStatus=null,r.in?a?(c=ep,o.appearStatus=tp):c=Om:r.unmountOnExit||r.mountOnEnter?c=sx:c=ep,o.state={status:c},o.nextCallback=null,o}t.getDerivedStateFromProps=function(i,o){var s=i.in;return s&&o.status===sx?{status:ep}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var o=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==tp&&s!==Om&&(o=tp):(s===tp||s===Om)&&(o=QF)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,o,s,a;return o=s=a=i,i!=null&&typeof i!="number"&&(o=i.exit,s=i.enter,a=i.appear!==void 0?i.appear:s),{exit:o,enter:s,appear:a}},n.updateStatus=function(i,o){if(i===void 0&&(i=!1),o!==null)if(this.cancelNextCallback(),o===tp){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ng.findDOMNode(this);s&&Sfe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ep&&this.setState({status:sx})},n.performEnter=function(i){var o=this,s=this.props.enter,a=this.context?this.context.isMounting:i,c=this.props.nodeRef?[a]:[ng.findDOMNode(this),a],u=c[0],f=c[1],h=this.getTimeouts(),p=a?h.appear:h.enter;if(!i&&!s||j8.disabled){this.safeSetState({status:Om},function(){o.props.onEntered(u)});return}this.props.onEnter(u,f),this.safeSetState({status:tp},function(){o.props.onEntering(u,f),o.onTransitionEnd(p,function(){o.safeSetState({status:Om},function(){o.props.onEntered(u,f)})})})},n.performExit=function(){var i=this,o=this.props.exit,s=this.getTimeouts(),a=this.props.nodeRef?void 0:ng.findDOMNode(this);if(!o||j8.disabled){this.safeSetState({status:ep},function(){i.props.onExited(a)});return}this.props.onExit(a),this.safeSetState({status:QF},function(){i.props.onExiting(a),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:ep},function(){i.props.onExited(a)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,o){o=this.setNextCallback(o),this.setState(i,o)},n.setNextCallback=function(i){var o=this,s=!0;return this.nextCallback=function(a){s&&(s=!1,o.nextCallback=null,i(a))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:ng.findDOMNode(this),a=i==null&&!this.props.addEndListener;if(!s||a){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var c=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=c[0],f=c[1];this.props.addEndListener(u,f)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===sx)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var a=Ne(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return de.createElement(pC.Provider,{value:null},typeof s=="function"?s(i,a):de.cloneElement(de.Children.only(s),a))},t}(de.Component);Yu.contextType=pC;Yu.propTypes={};function xm(){}Yu.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:xm,onEntering:xm,onEntered:xm,onExit:xm,onExiting:xm,onExited:xm};Yu.UNMOUNTED=sx;Yu.EXITED=ep;Yu.ENTERING=tp;Yu.ENTERED=Om;Yu.EXITING=QF;const kz=Yu;function Efe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Az(e,t){var n=function(o){return t&&R.isValidElement(o)?t(o):o},r=Object.create(null);return e&&R.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function Cfe(e,t){e=e||{},t=t||{};function n(f){return f in t?t[f]:e[f]}var r=Object.create(null),i=[];for(var o in e)o in t?i.length&&(r[o]=i,i=[]):i.push(o);var s,a={};for(var c in t){if(r[c])for(s=0;se.scrollTop;function Hg(e,t){var n,r;const{timeout:i,easing:o,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof o=="object"?o[t.mode]:o,delay:s.transitionDelay}}function Pfe(e){return Ct("MuiCollapse",e)}It("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Ofe=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Mfe=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return At(r,Pfe,n)},Dfe=Ce("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>$({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&$({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),Lfe=Ce("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>$({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Nfe=Ce("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>$({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),lQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:s,collapsedSize:a="0px",component:c,easing:u,in:f,onEnter:h,onEntered:p,onEntering:g,onExit:v,onExited:y,onExiting:S,orientation:w="vertical",style:b,timeout:x=tY.standard,TransitionComponent:E=kz}=r,I=Ne(r,Ofe),A=$({},r,{orientation:w,collapsedSize:a}),k=Mfe(A),O=Ln(),L=R.useRef(),N=R.useRef(null),H=R.useRef(),G=typeof a=="number"?`${a}px`:a,z=w==="horizontal",D=z?"width":"height";R.useEffect(()=>()=>{clearTimeout(L.current)},[]);const F=R.useRef(null),j=Tr(n,F),V=J=>ae=>{if(J){const le=F.current;ae===void 0?J(le):J(le,ae)}},W=()=>N.current?N.current[z?"clientWidth":"clientHeight"]:0,K=V((J,ae)=>{N.current&&z&&(N.current.style.position="absolute"),J.style[D]=G,h&&h(J,ae)}),X=V((J,ae)=>{const le=W();N.current&&z&&(N.current.style.position="");const{duration:he,easing:pe}=Hg({style:b,timeout:x,easing:u},{mode:"enter"});if(x==="auto"){const ve=O.transitions.getAutoHeightDuration(le);J.style.transitionDuration=`${ve}ms`,H.current=ve}else J.style.transitionDuration=typeof he=="string"?he:`${he}ms`;J.style[D]=`${le}px`,J.style.transitionTimingFunction=pe,g&&g(J,ae)}),Q=V((J,ae)=>{J.style[D]="auto",p&&p(J,ae)}),ie=V(J=>{J.style[D]=`${W()}px`,v&&v(J)}),ce=V(y),ue=V(J=>{const ae=W(),{duration:le,easing:he}=Hg({style:b,timeout:x,easing:u},{mode:"exit"});if(x==="auto"){const pe=O.transitions.getAutoHeightDuration(ae);J.style.transitionDuration=`${pe}ms`,H.current=pe}else J.style.transitionDuration=typeof le=="string"?le:`${le}ms`;J.style[D]=G,J.style.transitionTimingFunction=he,S&&S(J)}),se=J=>{x==="auto"&&(L.current=setTimeout(J,H.current||0)),i&&i(F.current,J)};return C.jsx(E,$({in:f,onEnter:K,onEntered:Q,onEntering:X,onExit:ie,onExited:ce,onExiting:ue,addEndListener:se,nodeRef:F,timeout:x==="auto"?null:x},I,{children:(J,ae)=>C.jsx(Dfe,$({as:c,className:Ue(k.root,s,{entered:k.entered,exited:!f&&G==="0px"&&k.hidden}[J]),style:$({[z?"minWidth":"minHeight"]:G},b),ownerState:$({},A,{state:J}),ref:j},ae,{children:C.jsx(Lfe,{ownerState:$({},A,{state:J}),className:k.wrapper,ref:N,children:C.jsx(Nfe,{ownerState:$({},A,{state:J}),className:k.wrapperInner,children:o})})}))}))});lQ.muiSupportAuto=!0;const FL=lQ;function Bfe(e){return Ct("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 $fe=["className","component","elevation","square","variant"],Ffe=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return At(o,Bfe,i)},zfe=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}`]]}})(({theme:e,ownerState:t})=>{var n;return $({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&$({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${kn("#fff",D6(t.elevation))}, ${kn("#fff",D6(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),jfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiPaper"}),{className:i,component:o="div",elevation:s=1,square:a=!1,variant:c="elevation"}=r,u=Ne(r,$fe),f=$({},r,{component:o,elevation:s,square:a,variant:c}),h=Ffe(f);return C.jsx(zfe,$({as:o,ownerState:f,className:Ue(h.root,i),ref:n},u))}),Cv=jfe;function Ufe(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:o,rippleSize:s,in:a,onExited:c,timeout:u}=e,[f,h]=R.useState(!1),p=Ue(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+o,left:-(s/2)+i},v=Ue(n.child,f&&n.childLeaving,r&&n.childPulsate);return!a&&!f&&h(!0),R.useEffect(()=>{if(!a&&c!=null){const y=setTimeout(c,u);return()=>{clearTimeout(y)}}},[c,a,u]),C.jsx("span",{className:p,style:g,children:C.jsx("span",{className:v})})}const Hfe=It("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),fa=Hfe,Wfe=["center","classes","className"];let Mk=e=>e,U8,H8,W8,G8;const JF=550,Gfe=80,Vfe=hf(U8||(U8=Mk` 0% { transform: scale(0); opacity: 0.1; @@ -68,7 +68,7 @@ Error generating stack: `+o.message+` transform: scale(1); opacity: 0.3; } -`)),Ufe=df(z8||(z8=Ok` +`)),qfe=hf(H8||(H8=Mk` 0% { opacity: 1; } @@ -76,7 +76,7 @@ Error generating stack: `+o.message+` 100% { opacity: 0; } -`)),Hfe=df(j8||(j8=Ok` +`)),Xfe=hf(W8||(W8=Mk` 0% { transform: scale(1); } @@ -88,7 +88,7 @@ Error generating stack: `+o.message+` 100% { transform: scale(1); } -`)),Wfe=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Gfe=Ce(Bfe,{name:"MuiTouchRipple",slot:"Ripple"})(U8||(U8=Ok` +`)),Yfe=Ce("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),Kfe=Ce(Ufe,{name:"MuiTouchRipple",slot:"Ripple"})(G8||(G8=Mk` opacity: 0; position: absolute; @@ -131,8 +131,8 @@ Error generating stack: `+o.message+` animation-iteration-count: infinite; animation-delay: 200ms; } -`),da.rippleVisible,jfe,YF,({theme:e})=>e.transitions.easing.easeInOut,da.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,da.child,da.childLeaving,Ufe,YF,({theme:e})=>e.transitions.easing.easeInOut,da.childPulsate,Hfe,({theme:e})=>e.transitions.easing.easeInOut),Vfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=Ne(r,Ffe),[c,u]=R.useState([]),f=R.useRef(0),h=R.useRef(null);R.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const p=R.useRef(!1),g=R.useRef(0),v=R.useRef(null),y=R.useRef(null);R.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const S=R.useCallback(E=>{const{pulsate:I,rippleX:A,rippleY:k,rippleSize:O,cb:D}=E;u(N=>[...N,C.jsx(Gfe,{classes:{ripple:Ue(o.ripple,da.ripple),rippleVisible:Ue(o.rippleVisible,da.rippleVisible),ripplePulsate:Ue(o.ripplePulsate,da.ripplePulsate),child:Ue(o.child,da.child),childLeaving:Ue(o.childLeaving,da.childLeaving),childPulsate:Ue(o.childPulsate,da.childPulsate)},timeout:YF,pulsate:I,rippleX:A,rippleY:k,rippleSize:O},f.current)]),f.current+=1,h.current=D},[o]),w=R.useCallback((E={},I={},A=()=>{})=>{const{pulsate:k=!1,center:O=i||I.pulsate,fakeElement:D=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const N=D?null:y.current,H=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,z,L;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)G=Math.round(H.width/2),z=Math.round(H.height/2);else{const{clientX:F,clientY:j}=E.touches&&E.touches.length>0?E.touches[0]:E;G=Math.round(F-H.left),z=Math.round(j-H.top)}if(O)L=Math.sqrt((2*H.width**2+H.height**2)/3),L%2===0&&(L+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-G),G)*2+2,j=Math.max(Math.abs((N?N.clientHeight:0)-z),z)*2+2;L=Math.sqrt(F**2+j**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:k,rippleX:G,rippleY:z,rippleSize:L,cb:A})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},zfe)):S({pulsate:k,rippleX:G,rippleY:z,rippleSize:L,cb:A})},[i,S]),b=R.useCallback(()=>{w({},{pulsate:!0})},[w]),x=R.useCallback((E,I)=>{if(clearTimeout(g.current),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{x(E,I)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),h.current=I},[]);return R.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:x}),[b,w,x]),C.jsx(Wfe,$({className:Ue(da.root,o.root,s),ref:y},a,{children:C.jsx(Cfe,{component:null,exit:!0,children:c})}))}),qfe=Vfe;function Xfe(e){return Ct("MuiButtonBase",e)}const Yfe=It("MuiButtonBase",["root","disabled","focusVisible"]),Kfe=Yfe,Qfe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],Jfe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=At({root:["root",t&&"disabled",n&&"focusVisible"]},Xfe,i);return n&&r&&(s.root+=` ${r}`),s},Zfe=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"},[`&.${Kfe.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ehe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:I,onMouseDown:A,onMouseLeave:k,onMouseUp:O,onTouchEnd:D,onTouchMove:N,onTouchStart:H,tabIndex:G=0,TouchRippleProps:z,touchRippleRef:L,type:F}=r,j=Ne(r,Qfe),V=R.useRef(null),W=R.useRef(null),K=Tr(W,L),{isFocusVisibleRef:X,onFocus:Q,onBlur:ie,ref:ce}=f4(),[ue,se]=R.useState(!1);u&&ue&&se(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[]);const[J,ae]=R.useState(!1);R.useEffect(()=>{ae(!0)},[]);const le=J&&!f&&!u;R.useEffect(()=>{ue&&p&&!f&&J&&W.current.pulsate()},[f,p,ue,J]);function he(Be,Pt,dt=h){return mo(Ie=>(Pt&&Pt(Ie),!dt&&W.current&&W.current[Be](Ie),!0))}const pe=he("start",A),ve=he("stop",S),ye=he("stop",w),xe=he("stop",O),me=he("stop",Be=>{ue&&Be.preventDefault(),k&&k(Be)}),be=he("start",H),Ze=he("stop",D),Xe=he("stop",N),ct=he("stop",Be=>{ie(Be),X.current===!1&&se(!1),v&&v(Be)},!1),Bt=mo(Be=>{V.current||(V.current=Be.currentTarget),Q(Be),X.current===!0&&(se(!0),x&&x(Be)),b&&b(Be)}),Pe=()=>{const Be=V.current;return c&&c!=="button"&&!(Be.tagName==="A"&&Be.href)},ze=R.useRef(!1),st=mo(Be=>{p&&!ze.current&&ue&&W.current&&Be.key===" "&&(ze.current=!0,W.current.stop(Be,()=>{W.current.start(Be)})),Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&Be.preventDefault(),E&&E(Be),Be.target===Be.currentTarget&&Pe()&&Be.key==="Enter"&&!u&&(Be.preventDefault(),y&&y(Be))}),gt=mo(Be=>{p&&Be.key===" "&&W.current&&ue&&!Be.defaultPrevented&&(ze.current=!1,W.current.stop(Be,()=>{W.current.pulsate(Be)})),I&&I(Be),y&&Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&!Be.defaultPrevented&&y(Be)});let vt=c;vt==="button"&&(j.href||j.to)&&(vt=g);const _e={};vt==="button"?(_e.type=F===void 0?"button":F,_e.disabled=u):(!j.href&&!j.to&&(_e.role="button"),u&&(_e["aria-disabled"]=u));const je=Tr(n,ce,V),Ke=$({},r,{centerRipple:o,component:c,disabled:u,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:G,focusVisible:ue}),Fe=Jfe(Ke);return C.jsxs(Zfe,$({as:vt,className:Ue(Fe.root,a),ownerState:Ke,onBlur:ct,onClick:y,onContextMenu:ve,onFocus:Bt,onKeyDown:st,onKeyUp:gt,onMouseDown:pe,onMouseLeave:me,onMouseUp:xe,onDragLeave:ye,onTouchEnd:Ze,onTouchMove:Xe,onTouchStart:be,ref:je,tabIndex:u?-1:G,type:F},_e,j,{children:[s,le?C.jsx(qfe,$({ref:K,center:o},z)):null]}))}),Yu=ehe;function the(e){return Ct("MuiIconButton",e)}const nhe=It("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),rhe=nhe,ihe=["edge","children","className","color","disabled","disableFocusRipple","size"],ohe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${Le(r)}`,i&&`edge${Le(i)}`,`size${Le(o)}`]};return At(s,the,t)},she=Ce(Yu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${rhe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ahe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium"}=r,h=Ne(r,ihe),p=$({},r,{edge:i,color:a,disabled:c,disableFocusRipple:u,size:f}),g=ohe(p);return C.jsx(she,$({className:Ue(g.root,s),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:p},h,{children:o}))}),Fp=ahe;function lhe(e){return Ct("MuiTypography",e)}It("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const che=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],uhe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${Le(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return At(a,lhe,s)},dhe=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${Le(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),H8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},fhe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},hhe=e=>fhe[e]||e,phe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTypography"}),i=hhe(r.color),o=A4($({},r,{color:i})),{align:s="inherit",className:a,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=H8}=o,v=Ne(o,che),y=$({},o,{align:s,color:i,className:a,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:p,variantMapping:g}),S=c||(h?"p":g[p]||H8[p])||"span",w=uhe(y);return C.jsx(dhe,$({as:S,ref:n,ownerState:y,className:Ue(w.root,a)},v))}),jt=phe;function mhe(e){return Ct("MuiAppBar",e)}It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const ghe=["className","color","enableColorOnDark","position"],vhe=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${Le(t)}`,`position${Le(n)}`]};return At(i,mhe,r)},E_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,yhe=Ce(Sv,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Le(n.position)}`],t[`color${Le(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:E_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:E_(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:E_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:E_(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),bhe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=Ne(r,ghe),u=$({},r,{color:o,position:a,enableColorOnDark:s}),f=vhe(u);return C.jsx(yhe,$({square:!0,component:"header",ownerState:u,elevation:4,className:Ue(f.root,i,a==="fixed"&&"mui-fixed"),ref:n},c))}),xhe=bhe;function tc(e){return typeof e=="string"}function ox(e,t,n){return e===void 0||tc(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function whe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const _he={disableDefaultClasses:!1},She=R.createContext(_he);function Ehe(e){const{disableDefaultClasses:t}=R.useContext(She);return n=>t?"":e(n)}function pC(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 Che(e,t,n){return typeof e=="function"?e(t,n):e}function W8(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 The(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Ue(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=$({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=pC($({},i,r)),a=W8(r),c=W8(i),u=t(s),f=Ue(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},u,n,c,a);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}const khe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ti(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Ne(e,khe),a=o?{}:Che(r,i),{props:c,internalRef:u}=The($({},s,{externalSlotProps:a})),f=Tr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ox(n,$({},c,{ref:f}),i)}function G8(e){return e.substring(2).toLowerCase()}function Ahe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Tr(t.ref,a),h=mo(v=>{const y=u.current;u.current=!1;const S=Fr(a.current);if(!c.current||!a.current||"clientX"in v&&Ahe(v,S))return;if(s.current){s.current=!1;return}let w;v.composedPath?w=v.composedPath().indexOf(a.current)>-1:w=!S.documentElement.contains(v.target)||a.current.contains(v.target),!w&&(n||!y)&&i(v)}),p=v=>y=>{u.current=!0;const S=t.props[v];S&&S(y)},g={ref:f};return o!==!1&&(g[o]=p(o)),R.useEffect(()=>{if(o!==!1){const v=G8(o),y=Fr(a.current),S=()=>{s.current=!0};return y.addEventListener(v,h),y.addEventListener("touchmove",S),()=>{y.removeEventListener(v,h),y.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(g[r]=p(r)),R.useEffect(()=>{if(r!==!1){const v=G8(r),y=Fr(a.current);return y.addEventListener(v,h),()=>{y.removeEventListener(v,h)}}},[h,r]),C.jsx(R.Fragment,{children:R.cloneElement(t,g)})}const Rhe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Phe(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 Ohe(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 Mhe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Ohe(e))}function Lhe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Rhe)).forEach((r,i)=>{const o=Phe(r);o===-1||!Mhe(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,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 Dhe(){return!0}function Nhe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Lhe,isEnabled:s=Dhe,open:a}=e,c=R.useRef(!1),u=R.useRef(null),f=R.useRef(null),h=R.useRef(null),p=R.useRef(null),g=R.useRef(!1),v=R.useRef(null),y=Tr(t.ref,v),S=R.useRef(null);R.useEffect(()=>{!a||!v.current||(g.current=!n)},[n,a]),R.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),R.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current),E=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},I=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(O=o(v.current)),O.length>0){var D,N;const H=!!((D=S.current)!=null&&D.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),G=O[0],z=O[O.length-1];typeof G!="string"&&typeof z!="string"&&(H?z.focus():G.focus())}else k.focus()};x.addEventListener("focusin",I),x.addEventListener("keydown",E,!0);const A=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(A),x.removeEventListener("focusin",I),x.removeEventListener("keydown",E,!0)}},[n,r,i,s,a,o]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,p.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return C.jsxs(R.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:y,onFocus:w}),C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var ss="top",Pa="bottom",Oa="right",as="left",kz="auto",ww=[ss,Pa,Oa,as],Hg="start",E1="end",Bhe="clippingParents",aQ="viewport",Cb="popper",$he="reference",V8=ww.reduce(function(e,t){return e.concat([t+"-"+Hg,t+"-"+E1])},[]),lQ=[].concat(ww,[kz]).reduce(function(e,t){return e.concat([t,t+"-"+Hg,t+"-"+E1])},[]),Fhe="beforeRead",zhe="read",jhe="afterRead",Uhe="beforeMain",Hhe="main",Whe="afterMain",Ghe="beforeWrite",Vhe="write",qhe="afterWrite",Xhe=[Fhe,zhe,jhe,Uhe,Hhe,Whe,Ghe,Vhe,qhe];function uc(e){return e?(e.nodeName||"").toLowerCase():null}function Zs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function zp(e){var t=Zs(e).Element;return e instanceof t||e instanceof Element}function Ea(e){var t=Zs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Az(e){if(typeof ShadowRoot>"u")return!1;var t=Zs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function Yhe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ea(o)||!uc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function Khe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!Ea(i)||!uc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const Qhe={name:"applyStyles",enabled:!0,phase:"write",fn:Yhe,effect:Khe,requires:["computeStyles"]};function nc(e){return e.split("-")[0]}var _p=Math.max,mC=Math.min,Wg=Math.round;function KF(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function cQ(){return!/^((?!chrome|android).)*safari/i.test(KF())}function Gg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ea(e)&&(i=e.offsetWidth>0&&Wg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Wg(r.height)/e.offsetHeight||1);var s=zp(e)?Zs(e):window,a=s.visualViewport,c=!cQ()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/i,f=(r.top+(c&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:u+h,bottom:f+p,left:u,x:u,y:f}}function Iz(e){var t=Gg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function uQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Az(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function zu(e){return Zs(e).getComputedStyle(e)}function Jhe(e){return["table","td","th"].indexOf(uc(e))>=0}function mf(e){return((zp(e)?e.ownerDocument:e.document)||window.document).documentElement}function Mk(e){return uc(e)==="html"?e:e.assignedSlot||e.parentNode||(Az(e)?e.host:null)||mf(e)}function q8(e){return!Ea(e)||zu(e).position==="fixed"?null:e.offsetParent}function Zhe(e){var t=/firefox/i.test(KF()),n=/Trident/i.test(KF());if(n&&Ea(e)){var r=zu(e);if(r.position==="fixed")return null}var i=Mk(e);for(Az(i)&&(i=i.host);Ea(i)&&["html","body"].indexOf(uc(i))<0;){var o=zu(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function _w(e){for(var t=Zs(e),n=q8(e);n&&Jhe(n)&&zu(n).position==="static";)n=q8(n);return n&&(uc(n)==="html"||uc(n)==="body"&&zu(n).position==="static")?t:n||Zhe(e)||t}function Rz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Mx(e,t,n){return _p(e,mC(t,n))}function epe(e,t,n){var r=Mx(e,t,n);return r>n?n:r}function dQ(){return{top:0,right:0,bottom:0,left:0}}function fQ(e){return Object.assign({},dQ(),e)}function hQ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var tpe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,fQ(typeof t!="number"?t:hQ(t,ww))};function npe(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=nc(n.placement),c=Rz(a),u=[as,Oa].indexOf(a)>=0,f=u?"height":"width";if(!(!o||!s)){var h=tpe(i.padding,n),p=Iz(o),g=c==="y"?ss:as,v=c==="y"?Pa:Oa,y=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],S=s[c]-n.rects.reference[c],w=_w(o),b=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=y/2-S/2,E=h[g],I=b-p[f]-h[v],A=b/2-p[f]/2+x,k=Mx(E,A,I),O=c;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-A,t)}}function rpe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||uQ(t.elements.popper,i)&&(t.elements.arrow=i))}const ipe={name:"arrow",enabled:!0,phase:"main",fn:npe,effect:rpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Vg(e){return e.split("-")[1]}var ope={top:"auto",right:"auto",bottom:"auto",left:"auto"};function spe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Wg(n*i)/i||0,y:Wg(r*i)/i||0}}function X8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,S=typeof f=="function"?f({x:g,y}):{x:g,y};g=S.x,y=S.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=as,E=ss,I=window;if(u){var A=_w(n),k="clientHeight",O="clientWidth";if(A===Zs(n)&&(A=mf(n),zu(A).position!=="static"&&a==="absolute"&&(k="scrollHeight",O="scrollWidth")),A=A,i===ss||(i===as||i===Oa)&&o===E1){E=Pa;var D=h&&A===I&&I.visualViewport?I.visualViewport.height:A[k];y-=D-r.height,y*=c?1:-1}if(i===as||(i===ss||i===Pa)&&o===E1){x=Oa;var N=h&&A===I&&I.visualViewport?I.visualViewport.width:A[O];g-=N-r.width,g*=c?1:-1}}var H=Object.assign({position:a},u&&ope),G=f===!0?spe({x:g,y},Zs(n)):{x:g,y};if(g=G.x,y=G.y,c){var z;return Object.assign({},H,(z={},z[E]=b?"0":"",z[x]=w?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",z))}return Object.assign({},H,(t={},t[E]=b?y+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function ape(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:nc(t.placement),variation:Vg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,X8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,X8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const lpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:ape,data:{}};var C_={passive:!0};function cpe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=Zs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,C_)}),a&&c.addEventListener("resize",n.update,C_),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,C_)}),a&&c.removeEventListener("resize",n.update,C_)}}const upe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:cpe,data:{}};var dpe={left:"right",right:"left",bottom:"top",top:"bottom"};function uE(e){return e.replace(/left|right|bottom|top/g,function(t){return dpe[t]})}var fpe={start:"end",end:"start"};function Y8(e){return e.replace(/start|end/g,function(t){return fpe[t]})}function Pz(e){var t=Zs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Oz(e){return Gg(mf(e)).left+Pz(e).scrollLeft}function hpe(e,t){var n=Zs(e),r=mf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var u=cQ();(u||!u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+Oz(e),y:c}}function ppe(e){var t,n=mf(e),r=Pz(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=_p(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=_p(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Oz(e),c=-r.scrollTop;return zu(i||n).direction==="rtl"&&(a+=_p(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function Mz(e){var t=zu(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function pQ(e){return["html","body","#document"].indexOf(uc(e))>=0?e.ownerDocument.body:Ea(e)&&Mz(e)?e:pQ(Mk(e))}function Lx(e,t){var n;t===void 0&&(t=[]);var r=pQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Zs(r),s=i?[o].concat(o.visualViewport||[],Mz(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Lx(Mk(s)))}function QF(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function mpe(e,t){var n=Gg(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function K8(e,t,n){return t===aQ?QF(hpe(e,n)):zp(t)?mpe(t,n):QF(ppe(mf(e)))}function gpe(e){var t=Lx(Mk(e)),n=["absolute","fixed"].indexOf(zu(e).position)>=0,r=n&&Ea(e)?_w(e):e;return zp(r)?t.filter(function(i){return zp(i)&&uQ(i,r)&&uc(i)!=="body"}):[]}function vpe(e,t,n,r){var i=t==="clippingParents"?gpe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(c,u){var f=K8(e,u,r);return c.top=_p(f.top,c.top),c.right=mC(f.right,c.right),c.bottom=mC(f.bottom,c.bottom),c.left=_p(f.left,c.left),c},K8(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function mQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?nc(r):null,o=r?Vg(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case ss:c={x:s,y:t.y-n.height};break;case Pa:c={x:s,y:t.y+t.height};break;case Oa:c={x:t.x+t.width,y:a};break;case as:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=i?Rz(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Hg:c[u]=c[u]-(t[f]/2-n[f]/2);break;case E1:c[u]=c[u]+(t[f]/2-n[f]/2);break}}return c}function C1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?Bhe:a,u=n.rootBoundary,f=u===void 0?aQ:u,h=n.elementContext,p=h===void 0?Cb:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,S=y===void 0?0:y,w=fQ(typeof S!="number"?S:hQ(S,ww)),b=p===Cb?$he:Cb,x=e.rects.popper,E=e.elements[v?b:p],I=vpe(zp(E)?E:E.contextElement||mf(e.elements.popper),c,f,s),A=Gg(e.elements.reference),k=mQ({reference:A,element:x,strategy:"absolute",placement:i}),O=QF(Object.assign({},x,k)),D=p===Cb?O:A,N={top:I.top-D.top+w.top,bottom:D.bottom-I.bottom+w.bottom,left:I.left-D.left+w.left,right:D.right-I.right+w.right},H=e.modifiersData.offset;if(p===Cb&&H){var G=H[i];Object.keys(N).forEach(function(z){var L=[Oa,Pa].indexOf(z)>=0?1:-1,F=[ss,Pa].indexOf(z)>=0?"y":"x";N[z]+=G[F]*L})}return N}function ype(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?lQ:c,f=Vg(r),h=f?a?V8:V8.filter(function(v){return Vg(v)===f}):ww,p=h.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=C1(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[nc(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function bpe(e){if(nc(e)===kz)return[];var t=uE(e);return[Y8(e),t,Y8(t)]}function xpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,S=t.options.placement,w=nc(S),b=w===S,x=c||(b||!v?[uE(S)]:bpe(S)),E=[S].concat(x).reduce(function(ue,se){return ue.concat(nc(se)===kz?ype(t,{placement:se,boundary:f,rootBoundary:h,padding:u,flipVariations:v,allowedAutoPlacements:y}):se)},[]),I=t.rects.reference,A=t.rects.popper,k=new Map,O=!0,D=E[0],N=0;N=0,F=L?"width":"height",j=C1(t,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:u}),V=L?z?Oa:as:z?Pa:ss;I[F]>A[F]&&(V=uE(V));var W=uE(V),K=[];if(o&&K.push(j[G]<=0),a&&K.push(j[V]<=0,j[W]<=0),K.every(function(ue){return ue})){D=H,O=!1;break}k.set(H,K)}if(O)for(var X=v?3:1,Q=function(se){var J=E.find(function(ae){var le=k.get(ae);if(le)return le.slice(0,se).every(function(he){return he})});if(J)return D=J,"break"},ie=X;ie>0;ie--){var ce=Q(ie);if(ce==="break")break}t.placement!==D&&(t.modifiersData[r]._skip=!0,t.placement=D,t.reset=!0)}}const wpe={name:"flip",enabled:!0,phase:"main",fn:xpe,requiresIfExists:["offset"],data:{_skip:!1}};function Q8(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function J8(e){return[ss,Oa,Pa,as].some(function(t){return e[t]>=0})}function _pe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=C1(t,{elementContext:"reference"}),a=C1(t,{altBoundary:!0}),c=Q8(s,r),u=Q8(a,i,o),f=J8(c),h=J8(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Spe={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:_pe};function Epe(e,t,n){var r=nc(e),i=[as,ss].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[as,Oa].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Cpe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=lQ.reduce(function(f,h){return f[h]=Epe(h,t.rects,o),f},{}),a=s[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const Tpe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Cpe};function kpe(e){var t=e.state,n=e.name;t.modifiersData[n]=mQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Ape={name:"popperOffsets",enabled:!0,phase:"read",fn:kpe,data:{}};function Ipe(e){return e==="x"?"y":"x"}function Rpe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,S=C1(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:f}),w=nc(t.placement),b=Vg(t.placement),x=!b,E=Rz(w),I=Ipe(E),A=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,D=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(A){if(o){var z,L=E==="y"?ss:as,F=E==="y"?Pa:Oa,j=E==="y"?"height":"width",V=A[E],W=V+S[L],K=V-S[F],X=g?-O[j]/2:0,Q=b===Hg?k[j]:O[j],ie=b===Hg?-O[j]:-k[j],ce=t.elements.arrow,ue=g&&ce?Iz(ce):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:dQ(),J=se[L],ae=se[F],le=Mx(0,k[j],ue[j]),he=x?k[j]/2-X-le-J-N.mainAxis:Q-le-J-N.mainAxis,pe=x?-k[j]/2+X+le+ae+N.mainAxis:ie+le+ae+N.mainAxis,ve=t.elements.arrow&&_w(t.elements.arrow),ye=ve?E==="y"?ve.clientTop||0:ve.clientLeft||0:0,xe=(z=H==null?void 0:H[E])!=null?z:0,me=V+he-xe-ye,be=V+pe-xe,Ze=Mx(g?mC(W,me):W,V,g?_p(K,be):K);A[E]=Ze,G[E]=Ze-V}if(a){var Xe,ct=E==="x"?ss:as,Bt=E==="x"?Pa:Oa,Pe=A[I],ze=I==="y"?"height":"width",st=Pe+S[ct],gt=Pe-S[Bt],vt=[ss,as].indexOf(w)!==-1,_e=(Xe=H==null?void 0:H[I])!=null?Xe:0,je=vt?st:Pe-k[ze]-O[ze]-_e+N.altAxis,Ke=vt?Pe+k[ze]+O[ze]-_e-N.altAxis:gt,Fe=g&&vt?epe(je,Pe,Ke):Mx(g?je:st,Pe,g?Ke:gt);A[I]=Fe,G[I]=Fe-Pe}t.modifiersData[r]=G}}const Ppe={name:"preventOverflow",enabled:!0,phase:"main",fn:Rpe,requiresIfExists:["offset"]};function Ope(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Mpe(e){return e===Zs(e)||!Ea(e)?Pz(e):Ope(e)}function Lpe(e){var t=e.getBoundingClientRect(),n=Wg(t.width)/e.offsetWidth||1,r=Wg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function Dpe(e,t,n){n===void 0&&(n=!1);var r=Ea(t),i=Ea(t)&&Lpe(t),o=mf(t),s=Gg(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((uc(t)!=="body"||Mz(o))&&(a=Mpe(t)),Ea(t)?(c=Gg(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Oz(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function Npe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Bpe(e){var t=Npe(e);return Xhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function $pe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Fpe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var Z8={placement:"bottom",modifiers:[],strategy:"absolute"};function eH(){for(var e=arguments.length,t=new Array(e),n=0;n{o||a(Hpe(i)||document.body)},[i,o]),jo(()=>{if(s&&!o)return X$(n,s),()=>{X$(n,null)}},[n,s,o]),o){if(R.isValidElement(r)){const u={ref:c};return R.cloneElement(r,u)}return C.jsx(R.Fragment,{children:r})}return C.jsx(R.Fragment,{children:s&&_v.createPortal(r,s)})});function Wpe(e){return Ct("MuiPopper",e)}It("MuiPopper",["root"]);const Gpe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Vpe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function qpe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function JF(e){return typeof e=="function"?e():e}function Xpe(e){return e.nodeType!==void 0}const Ype=()=>At({root:["root"]},Ehe(Wpe)),Kpe={},Qpe=R.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:f,popperOptions:h,popperRef:p,slotProps:g={},slots:v={},TransitionProps:y}=t,S=Ne(t,Gpe),w=R.useRef(null),b=Tr(w,n),x=R.useRef(null),E=Tr(x,p),I=R.useRef(E);jo(()=>{I.current=E},[E]),R.useImperativeHandle(p,()=>x.current,[]);const A=qpe(f,s),[k,O]=R.useState(A),[D,N]=R.useState(JF(i));R.useEffect(()=>{x.current&&x.current.forceUpdate()}),R.useEffect(()=>{i&&N(JF(i))},[i]),jo(()=>{if(!D||!u)return;const F=W=>{O(W.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{F(W)}}];c!=null&&(j=j.concat(c)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const V=Upe(D,w.current,$({placement:A},h,{modifiers:j}));return I.current(V),()=>{V.destroy(),I.current(null)}},[D,a,c,u,h,A]);const H={placement:k};y!==null&&(H.TransitionProps=y);const G=Ype(),z=(r=v.root)!=null?r:"div",L=ti({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:G.root});return C.jsx(z,$({},L,{children:typeof o=="function"?o(H):o}))}),Jpe=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:f,placement:h="bottom",popperOptions:p=Kpe,popperRef:g,style:v,transition:y=!1,slotProps:S={},slots:w={}}=t,b=Ne(t,Vpe),[x,E]=R.useState(!0),I=()=>{E(!1)},A=()=>{E(!0)};if(!c&&!f&&(!y||x))return null;let k;if(o)k=o;else if(r){const N=JF(r);k=N&&Xpe(N)?Fr(N).body:Fr(null).body}const O=!f&&c&&(!y||x)?"none":void 0,D=y?{in:f,onEnter:I,onExited:A}:void 0;return C.jsx(gQ,{disablePortal:a,container:k,children:C.jsx(Qpe,$({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!x:f,placement:h,popperOptions:p,popperRef:g,slotProps:S,slots:w},b,{style:$({position:"fixed",top:0,left:0,display:O},v),TransitionProps:D,children:i}))})});function Zpe(e){const t=Fr(e);return t.body===e?Du(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Dx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function tH(e){return parseInt(Du(e).getComputedStyle(e).paddingRight,10)||0}function eme(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function nH(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,c=!eme(s);a&&c&&Dx(s,i)})}function $D(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function tme(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(Zpe(r)){const s=xX(Fr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${tH(r)+s}px`;const a=Fr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${tH(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Fr(r).body;else{const s=r.parentElement,a=Du(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function nme(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class rme{constructor(){this.containers=void 0,this.modals=void 0,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&&Dx(t.modalRef,!1);const i=nme(n);nH(n,t.mount,t.modalRef,i,!0);const o=$D(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=$D(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=tme(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=$D(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Dx(t.modalRef,n),nH(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Dx(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function ime(e){return typeof e=="function"?e():e}function ome(e){return e?e.props.hasOwnProperty("in"):!1}const sme=new rme;function ame(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=sme,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:u,open:f,rootRef:h}=e,p=R.useRef({}),g=R.useRef(null),v=R.useRef(null),y=Tr(v,h),[S,w]=R.useState(!f),b=ome(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Fr(g.current),I=()=>(p.current.modalRef=v.current,p.current.mount=g.current,p.current),A=()=>{i.mount(I(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=mo(()=>{const j=ime(t)||E().body;i.add(I(),j),v.current&&A()}),O=R.useCallback(()=>i.isTopModal(I()),[i]),D=mo(j=>{g.current=j,j&&(f&&O()?A():v.current&&Dx(v.current,x))}),N=R.useCallback(()=>{i.remove(I(),x)},[x,i]);R.useEffect(()=>()=>{N()},[N]),R.useEffect(()=>{f?k():(!b||!o)&&N()},[f,N,b,o,k]);const H=j=>V=>{var W;(W=j.onKeyDown)==null||W.call(j,V),!(V.key!=="Escape"||!O())&&(n||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},G=j=>V=>{var W;(W=j.onClick)==null||W.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=pC(e);delete V.onTransitionEnter,delete V.onTransitionExited;const W=$({},V,j);return $({role:"presentation"},W,{onKeyDown:H(W),ref:y})},getBackdropProps:(j={})=>{const V=j;return $({"aria-hidden":!0},V,{onClick:G(V),open:f})},getTransitionProps:()=>{const j=()=>{w(!1),s&&s()},V=()=>{w(!0),a&&a(),o&&N()};return{onEnter:r6(j,c==null?void 0:c.props.onEnter),onExited:r6(V,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:D,isTopModal:O,exited:S,hasTransition:b}}const lme=2;function vQ(e,t){return e-t}function Tb(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function rH(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},hme=e=>e;let I_;function FD(){return I_===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?I_=CSS.supports("touch-action","none"):I_=!0),I_}function pme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:c=0,name:u,onChange:f,onChangeCommitted:h,orientation:p="horizontal",rootRef:g,scale:v=hme,step:y=1,tabIndex:S,value:w}=e,b=R.useRef(),[x,E]=R.useState(-1),[I,A]=R.useState(-1),[k,O]=R.useState(!1),D=R.useRef(0),[N,H]=r1({controlled:w,default:n??c,name:"Slider"}),G=f&&((_e,je,Ke)=>{const Fe=_e.nativeEvent||_e,Be=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Be,"target",{writable:!0,value:{value:je,name:u}}),f(Be,je,Ke)}),z=Array.isArray(N);let L=z?N.slice().sort(vQ):[N];L=L.map(_e=>Tb(_e,c,a));const F=s===!0&&y!==null?[...Array(Math.floor((a-c)/y)+1)].map((_e,je)=>({value:c+y*je})):s||[],j=F.map(_e=>_e.value),{isFocusVisibleRef:V,onBlur:W,onFocus:K,ref:X}=f4(),[Q,ie]=R.useState(-1),ce=R.useRef(),ue=Tr(X,ce),se=Tr(g,ue),J=_e=>je=>{var Ke;const Fe=Number(je.currentTarget.getAttribute("data-index"));K(je),V.current===!0&&ie(Fe),A(Fe),_e==null||(Ke=_e.onFocus)==null||Ke.call(_e,je)},ae=_e=>je=>{var Ke;W(je),V.current===!1&&ie(-1),A(-1),_e==null||(Ke=_e.onBlur)==null||Ke.call(_e,je)};jo(()=>{if(r&&ce.current.contains(document.activeElement)){var _e;(_e=document.activeElement)==null||_e.blur()}},[r]),r&&x!==-1&&E(-1),r&&Q!==-1&&ie(-1);const le=_e=>je=>{var Ke;(Ke=_e.onChange)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index")),Be=L[Fe],Pt=j.indexOf(Be);let dt=je.target.valueAsNumber;if(F&&y==null){const Ie=j[j.length-1];dt>Ie?dt=Ie:dt{const{current:Ke}=ce,{width:Fe,height:Be,bottom:Pt,left:dt}=Ke.getBoundingClientRect();let Ie;pe.indexOf("vertical")===0?Ie=(Pt-_e.y)/Be:Ie=(_e.x-dt)/Fe,pe.indexOf("-reverse")!==-1&&(Ie=1-Ie);let at;if(at=cme(Ie,c,a),y)at=dme(at,y,c);else{const Re=rH(j,at);at=j[Re]}at=Tb(at,c,a);let $t=0;if(z){je?$t=he.current:$t=rH(L,at),i&&(at=Tb(at,L[$t-1]||-1/0,L[$t+1]||1/0));const Re=at;at=iH({values:L,newValue:at,index:$t}),i&&je||($t=at.indexOf(Re),he.current=$t)}return{newValue:at,activeIndex:$t}},ye=mo(_e=>{const je=T_(_e,b);if(!je)return;if(D.current+=1,_e.type==="mousemove"&&_e.buttons===0){xe(_e);return}const{newValue:Ke,activeIndex:Fe}=ve({finger:je,move:!0});k_({sliderRef:ce,activeIndex:Fe,setActive:E}),H(Ke),!k&&D.current>lme&&O(!0),G&&!A_(Ke,N)&&G(_e,Ke,Fe)}),xe=mo(_e=>{const je=T_(_e,b);if(O(!1),!je)return;const{newValue:Ke}=ve({finger:je,move:!0});E(-1),_e.type==="touchend"&&A(-1),h&&h(_e,Ke),b.current=void 0,be()}),me=mo(_e=>{if(r)return;FD()||_e.preventDefault();const je=_e.changedTouches[0];je!=null&&(b.current=je.identifier);const Ke=T_(_e,b);if(Ke!==!1){const{newValue:Be,activeIndex:Pt}=ve({finger:Ke});k_({sliderRef:ce,activeIndex:Pt,setActive:E}),H(Be),G&&!A_(Be,N)&&G(_e,Be,Pt)}D.current=0;const Fe=Fr(ce.current);Fe.addEventListener("touchmove",ye),Fe.addEventListener("touchend",xe)}),be=R.useCallback(()=>{const _e=Fr(ce.current);_e.removeEventListener("mousemove",ye),_e.removeEventListener("mouseup",xe),_e.removeEventListener("touchmove",ye),_e.removeEventListener("touchend",xe)},[xe,ye]);R.useEffect(()=>{const{current:_e}=ce;return _e.addEventListener("touchstart",me,{passive:FD()}),()=>{_e.removeEventListener("touchstart",me,{passive:FD()}),be()}},[be,me]),R.useEffect(()=>{r&&be()},[r,be]);const Ze=_e=>je=>{var Ke;if((Ke=_e.onMouseDown)==null||Ke.call(_e,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Fe=T_(je,b);if(Fe!==!1){const{newValue:Pt,activeIndex:dt}=ve({finger:Fe});k_({sliderRef:ce,activeIndex:dt,setActive:E}),H(Pt),G&&!A_(Pt,N)&&G(je,Pt,dt)}D.current=0;const Be=Fr(ce.current);Be.addEventListener("mousemove",ye),Be.addEventListener("mouseup",xe)},Xe=gC(z?L[0]:c,c,a),ct=gC(L[L.length-1],c,a)-Xe,Bt=(_e={})=>{const je={onMouseDown:Ze(_e||{})},Ke=$({},_e,je);return $({ref:se},Ke)},Pe=_e=>je=>{var Ke;(Ke=_e.onMouseOver)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index"));A(Fe)},ze=_e=>je=>{var Ke;(Ke=_e.onMouseLeave)==null||Ke.call(_e,je),A(-1)};return{active:x,axis:pe,axisProps:fme,dragging:k,focusedThumbIndex:Q,getHiddenInputProps:(_e={})=>{var je;const Ke={onChange:le(_e||{}),onFocus:J(_e||{}),onBlur:ae(_e||{})},Fe=$({},_e,Ke);return $({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(a),"aria-valuemin":v(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Fe,{style:$({},Vse,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(_e={})=>{const je={onMouseOver:Pe(_e||{}),onMouseLeave:ze(_e||{})};return $({},_e,je)},marks:F,open:I,range:z,rootRef:se,trackLeap:ct,trackOffset:Xe,values:L,getThumbStyle:_e=>({pointerEvents:x!==-1&&x!==_e?"none":void 0})}}function mme(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=R.useRef();R.useEffect(()=>{if(!i)return;function w(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,r]);const a=mo((w,b)=>{r==null||r(w,b)}),c=mo(w=>{!r||w==null||(clearTimeout(s.current),s.current=setTimeout(()=>{a(null,"timeout")},w))});R.useEffect(()=>(i&&c(t),()=>{clearTimeout(s.current)}),[i,t,c]);const u=w=>{r==null||r(w,"clickaway")},f=()=>{clearTimeout(s.current)},h=R.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),p=w=>b=>{const x=w.onBlur;x==null||x(b),h()},g=w=>b=>{const x=w.onFocus;x==null||x(b),f()},v=w=>b=>{const x=w.onMouseEnter;x==null||x(b),f()},y=w=>b=>{const x=w.onMouseLeave;x==null||x(b),h()};return R.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[n,h,i]),{getRootProps:(w={})=>{const b=$({},pC(e),pC(w));return $({role:"presentation"},w,b,{onBlur:p(b),onFocus:g(b),onMouseEnter:v(b),onMouseLeave:y(b)})},onClickAway:u}}const gme=["onChange","maxRows","minRows","style","value"];function R_(e){return parseInt(e,10)||0}const vme={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function oH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const yme=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,c=Ne(t,gme),{current:u}=R.useRef(a!=null),f=R.useRef(null),h=Tr(n,f),p=R.useRef(null),g=R.useRef(0),[v,y]=R.useState({outerHeightStyle:0}),S=R.useCallback(()=>{const E=f.current,A=Du(E).getComputedStyle(E);if(A.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=A.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===` -`&&(k.value+=" ");const O=A.boxSizing,D=R_(A.paddingBottom)+R_(A.paddingTop),N=R_(A.borderBottomWidth)+R_(A.borderTopWidth),H=k.scrollHeight;k.value="x";const G=k.scrollHeight;let z=H;o&&(z=Math.max(Number(o)*G,z)),i&&(z=Math.min(Number(i)*G,z)),z=Math.max(z,G);const L=z+(O==="border-box"?D+N:0),F=Math.abs(z-H)<=1;return{outerHeightStyle:L,overflow:F}},[i,o,t.placeholder]),w=(E,I)=>{const{outerHeightStyle:A,overflow:k}=I;return g.current<20&&(A>0&&Math.abs((E.outerHeightStyle||0)-A)>1||E.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:A}):E},b=R.useCallback(()=>{const E=S();oH(E)||y(I=>w(I,E))},[S]);jo(()=>{const E=()=>{const H=S();oH(H)||_v.flushSync(()=>{y(G=>w(G,H))})},I=()=>{g.current=0,E()};let A;const k=PT(I),O=f.current,D=Du(O);D.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(O)),()=>{k.clear(),cancelAnimationFrame(A),D.removeEventListener("resize",k),N&&N.disconnect()}},[S]),jo(()=>{b()}),R.useEffect(()=>{g.current=0},[a]);const x=E=>{g.current=0,u||b(),r&&r(E)};return C.jsxs(R.Fragment,{children:[C.jsx("textarea",$({value:a,onChange:x,ref:h,rows:o,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},c)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},vme.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),bme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],xme=Ce(Jpe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),wme=R.forwardRef(function(t,n){var r;const i=nk(),o=Rt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b,slots:x,slotProps:E}=o,I=Ne(o,bme),A=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,k=$({anchorEl:s,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b},I);return C.jsx(xme,$({as:a,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:E??u},k,{ref:n}))}),yQ=wme;function _me(e){return Ct("MuiListSubheader",e)}It("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Sme=["className","color","component","disableGutters","disableSticky","inset"],Eme=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${Le(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return At(s,_me,t)},Cme=Ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Le(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),bQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1}=r,f=Ne(r,Sme),h=$({},r,{color:o,component:s,disableGutters:a,disableSticky:c,inset:u}),p=Eme(h);return C.jsx(Cme,$({as:s,className:Ue(p.root,i),ref:n,ownerState:h},f))});bQ.muiSkipListHighlight=!0;const Tme=bQ;function tm({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 kme=R.createContext(void 0),Lz=kme;function gf(){return R.useContext(Lz)}function xQ(e){return C.jsx(ece,$({},e,{defaultTheme:ok,themeId:Pp}))}function sH(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function vC(e,t=!1){return e&&(sH(e.value)&&e.value!==""||t&&sH(e.defaultValue)&&e.defaultValue!=="")}function Ame(e){return e.startAdornment}function Ime(e){return Ct("MuiInputBase",e)}const Rme=It("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),qg=Rme,Pme=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Lk=(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${Le(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Dk=(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]},Ome=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:h,size:p,startAdornment:g,type:v}=e,y={root:["root",`color${Le(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${Le(p)}`,f&&"multiline",g&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return At(y,Ime,t)},Nk=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Lk})(({theme:e,ownerState:t})=>$({},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",[`&.${qg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),Bk=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Dk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${qg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${qg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),Mme=C.jsx(xQ,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Lme=R.forwardRef(function(t,n){var r;const i=Rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:c,components:u={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:E,minRows:I,multiline:A=!1,name:k,onBlur:O,onChange:D,onClick:N,onFocus:H,onKeyDown:G,onKeyUp:z,placeholder:L,readOnly:F,renderSuffix:j,rows:V,slotProps:W={},slots:K={},startAdornment:X,type:Q="text",value:ie}=i,ce=Ne(i,Pme),ue=b.value!=null?b.value:ie,{current:se}=R.useRef(ue!=null),J=R.useRef(),ae=R.useCallback(Fe=>{},[]),le=Tr(J,x,b.ref,ae),[he,pe]=R.useState(!1),ve=gf(),ye=tm({props:i,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:he,R.useEffect(()=>{!ve&&p&&he&&(pe(!1),O&&O())},[ve,p,he,O]);const xe=ve&&ve.onFilled,me=ve&&ve.onEmpty,be=R.useCallback(Fe=>{vC(Fe)?xe&&xe():me&&me()},[xe,me]);jo(()=>{se&&be({value:ue})},[ue,be,se]);const Ze=Fe=>{if(ye.disabled){Fe.stopPropagation();return}H&&H(Fe),b.onFocus&&b.onFocus(Fe),ve&&ve.onFocus?ve.onFocus(Fe):pe(!0)},Xe=Fe=>{O&&O(Fe),b.onBlur&&b.onBlur(Fe),ve&&ve.onBlur?ve.onBlur(Fe):pe(!1)},ct=(Fe,...Be)=>{if(!se){const Pt=Fe.target||J.current;if(Pt==null)throw new Error(Jd(1));be({value:Pt.value})}b.onChange&&b.onChange(Fe,...Be),D&&D(Fe,...Be)};R.useEffect(()=>{be(J.current)},[]);const Bt=Fe=>{J.current&&Fe.currentTarget===Fe.target&&J.current.focus(),N&&N(Fe)};let Pe=w,ze=b;A&&Pe==="input"&&(V?ze=$({type:void 0,minRows:V,maxRows:V},ze):ze=$({type:void 0,maxRows:E,minRows:I},ze),Pe=yme);const st=Fe=>{be(Fe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};R.useEffect(()=>{ve&&ve.setAdornedStart(!!X)},[ve,X]);const gt=$({},i,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:v,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:A,size:ye.size,startAdornment:X,type:Q}),vt=Ome(gt),_e=K.root||u.Root||Nk,je=W.root||f.root||{},Ke=K.input||u.Input||Bk;return ze=$({},ze,(r=W.input)!=null?r:f.input),C.jsxs(R.Fragment,{children:[!g&&Mme,C.jsxs(_e,$({},je,!tc(_e)&&{ownerState:$({},gt,je.ownerState)},{ref:n,onClick:Bt},ce,{className:Ue(vt.root,je.className,c,F&&"MuiInputBase-readOnly"),children:[X,C.jsx(Lz.Provider,{value:null,children:C.jsx(Ke,$({ownerState:gt,"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ye.disabled,id:S,onAnimationStart:st,name:k,placeholder:L,readOnly:F,required:ye.required,rows:V,value:ue,onKeyDown:G,onKeyUp:z,type:Q},ze,!tc(Ke)&&{as:Pe,ownerState:$({},gt,ze.ownerState)},{ref:le,className:Ue(vt.input,ze.className,F&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:ct,onFocus:Ze}))}),v,j?j($({},ye,{startAdornment:X})):null]}))]})}),$k=Lme;function Dme(e){return Ct("MuiInput",e)}const Nme=$({},qg,It("MuiInput",["root","underline","input"])),kb=Nme;function Bme(e){return Ct("MuiOutlinedInput",e)}const $me=$({},qg,It("MuiOutlinedInput",["root","notchedOutline","input"])),rd=$me;function Fme(e){return Ct("MuiFilledInput",e)}const zme=$({},qg,It("MuiFilledInput",["root","underline","input"])),zh=zme,jme=zt(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),Ume=zt(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Hme(e){return Ct("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Wme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Gme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return At({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Hme,t)},Vme=Ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),qme=Ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Xme=Ce(Ume,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function Yme({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const Kme=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",imgProps:c,sizes:u,src:f,srcSet:h,variant:p="circular"}=r,g=Ne(r,Wme);let v=null;const y=Yme($({},c,{src:f,srcSet:h})),S=f||h,w=S&&y!=="error",b=$({},r,{colorDefault:!w,component:a,variant:p}),x=Gme(b);return w?v=C.jsx(qme,$({alt:i,srcSet:h,src:f,sizes:u,ownerState:b,className:x.img},c)):o!=null?v=o:S&&i?v=i[0]:v=C.jsx(Xme,{ownerState:b,className:x.fallback}),C.jsx(Vme,$({as:a,ownerState:b,className:Ue(x.root,s),ref:n},g,{children:v}))}),Qme=Kme,Jme=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],Zme={entering:{opacity:1},entered:{opacity:1}},ege=R.forwardRef(function(t,n){const r=Dn(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:c,in:u,onEnter:f,onEntered:h,onEntering:p,onExit:g,onExited:v,onExiting:y,style:S,timeout:w=i,TransitionComponent:b=Ez}=t,x=Ne(t,Jme),E=R.useRef(null),I=Tr(E,a.ref,n),A=L=>F=>{if(L){const j=E.current;F===void 0?L(j):L(j,F)}},k=A(p),O=A((L,F)=>{oQ(L);const j=Ug({style:S,timeout:w,easing:c},{mode:"enter"});L.style.webkitTransition=r.transitions.create("opacity",j),L.style.transition=r.transitions.create("opacity",j),f&&f(L,F)}),D=A(h),N=A(y),H=A(L=>{const F=Ug({style:S,timeout:w,easing:c},{mode:"exit"});L.style.webkitTransition=r.transitions.create("opacity",F),L.style.transition=r.transitions.create("opacity",F),g&&g(L)}),G=A(v),z=L=>{o&&o(E.current,L)};return C.jsx(b,$({appear:s,in:u,nodeRef:E,onEnter:O,onEntered:D,onEntering:k,onExit:H,onExited:G,onExiting:N,addEndListener:z,timeout:w},x,{children:(L,F)=>R.cloneElement(a,$({style:$({opacity:0,visibility:L==="exited"&&!u?"hidden":void 0},Zme[L],S,a.props.style),ref:I},F))}))}),jp=ege;function tge(e){return Ct("MuiBackdrop",e)}It("MuiBackdrop",["root","invisible"]);const nge=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],rge=e=>{const{classes:t,invisible:n}=e;return At({root:["root",n&&"invisible"]},tge,t)},ige=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({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"},e.invisible&&{backgroundColor:"transparent"})),oge=R.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:u="div",components:f={},componentsProps:h={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:S=jp,transitionDuration:w}=s,b=Ne(s,nge),x=$({},s,{component:u,invisible:p}),E=rge(x),I=(r=v.root)!=null?r:h.root;return C.jsx(S,$({in:g,timeout:w},b,{children:C.jsx(ige,$({"aria-hidden":!0},I,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:Ue(E.root,c,I==null?void 0:I.className),ownerState:$({},x,I==null?void 0:I.ownerState),classes:E,ref:n,children:a}))}))}),Dz=oge,sge=R4(),age=ice({themeId:Pp,defaultTheme:sge,defaultClassName:"MuiBox-root",generateClassName:_X.generate}),ht=age;function lge(e){return Ct("MuiButton",e)}const cge=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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),P_=cge,uge=R.createContext({}),dge=uge,fge=R.createContext(void 0),hge=fge,pge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],mge=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,`${o}${Le(t)}`,`size${Le(i)}`,`${o}Size${Le(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${Le(i)}`],endIcon:["endIcon",`iconSize${Le(i)}`]},c=At(a,lge,s);return $({},s,c)},wQ=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),gge=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Le(n.color)}`],t[`size${Le(n.size)}`],t[`${n.variant}Size${Le(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",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",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${P_.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${P_.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${kn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${P_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${P_.disabled}`]:{boxShadow:"none"}}),vge=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},wQ(e))),yge=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},wQ(e))),bge=R.forwardRef(function(t,n){const r=R.useContext(dge),i=R.useContext(hge),o=h4(r,t),s=Rt({props:o,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:f,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:S=!1,size:w="medium",startIcon:b,type:x,variant:E="text"}=s,I=Ne(s,pge),A=$({},s,{color:c,component:u,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:S,size:w,type:x,variant:E}),k=mge(A),O=b&&C.jsx(vge,{className:k.startIcon,ownerState:A,children:b}),D=v&&C.jsx(yge,{className:k.endIcon,ownerState:A,children:v}),N=i||"";return C.jsxs(gge,$({ownerState:A,className:Ue(r.className,k.root,f,N),component:u,disabled:h,focusRipple:!g,focusVisibleClassName:Ue(k.focusVisible,y),ref:n,type:x},I,{classes:k,children:[O,a,D]}))}),Nz=bge;function xge(e){return Ct("MuiCard",e)}It("MuiCard",["root"]);const wge=["className","raised"],_ge=e=>{const{classes:t}=e;return At({root:["root"]},xge,t)},Sge=Ce(Sv,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ege=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=Ne(r,wge),a=$({},r,{raised:o}),c=_ge(a);return C.jsx(Sge,$({className:Ue(c.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),Cge=Ege;function Tge(e){return Ct("PrivateSwitchBase",e)}It("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const kge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Age=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${Le(i)}`],input:["input"]};return At(o,Tge,t)},Ige=Ce(Yu)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Rge=Ce("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Pge=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:a,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:p,inputProps:g,inputRef:v,name:y,onBlur:S,onChange:w,onFocus:b,readOnly:x,required:E=!1,tabIndex:I,type:A,value:k}=t,O=Ne(t,kge),[D,N]=r1({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),H=gf(),G=K=>{b&&b(K),H&&H.onFocus&&H.onFocus(K)},z=K=>{S&&S(K),H&&H.onBlur&&H.onBlur(K)},L=K=>{if(K.nativeEvent.defaultPrevented)return;const X=K.target.checked;N(X),w&&w(K,X)};let F=c;H&&typeof F>"u"&&(F=H.disabled);const j=A==="checkbox"||A==="radio",V=$({},t,{checked:D,disabled:F,disableFocusRipple:u,edge:f}),W=Age(V);return C.jsxs(Ige,$({component:"span",className:Ue(W.root,s),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:G,onBlur:z,ownerState:V,ref:n},O,{children:[C.jsx(Rge,$({autoFocus:r,checked:i,defaultChecked:a,className:W.input,disabled:F,id:j?p:void 0,name:y,onChange:L,readOnly:x,ref:v,required:E,ownerState:V,tabIndex:I,type:A},A==="checkbox"&&k===void 0?{}:{value:k},g)),D?o:h]}))}),_Q=Pge,Oge=zt(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Mge=zt(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Lge=zt(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Dge(e){return Ct("MuiCheckbox",e)}const Nge=It("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),zD=Nge,Bge=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],$ge=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${Le(r)}`,`size${Le(i)}`]},s=At(o,Dge,t);return $({},t,s)},Fge=Ce(_Q,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${Le(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${zD.checked}, &.${zD.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${zD.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),zge=C.jsx(Mge,{}),jge=C.jsx(Oge,{}),Uge=C.jsx(Lge,{}),Hge=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=zge,color:a="primary",icon:c=jge,indeterminate:u=!1,indeterminateIcon:f=Uge,inputProps:h,size:p="medium",className:g}=o,v=Ne(o,Bge),y=u?f:c,S=u?f:s,w=$({},o,{color:a,indeterminate:u,size:p}),b=$ge(w);return C.jsx(Fge,$({type:"checkbox",inputProps:$({"data-indeterminate":u},h),icon:R.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:R.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:Ue(b.root,g)},v,{classes:b}))}),Wge=Hge;function Gge(e){return Ct("MuiCircularProgress",e)}It("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Vge=["className","color","disableShrink","size","style","thickness","value","variant"];let Fk=e=>e,aH,lH,cH,uH;const id=44,qge=df(aH||(aH=Fk` +`),fa.rippleVisible,Vfe,JF,({theme:e})=>e.transitions.easing.easeInOut,fa.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,fa.child,fa.childLeaving,qfe,JF,({theme:e})=>e.transitions.easing.easeInOut,fa.childPulsate,Xfe,({theme:e})=>e.transitions.easing.easeInOut),Qfe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:o={},className:s}=r,a=Ne(r,Wfe),[c,u]=R.useState([]),f=R.useRef(0),h=R.useRef(null);R.useEffect(()=>{h.current&&(h.current(),h.current=null)},[c]);const p=R.useRef(!1),g=R.useRef(0),v=R.useRef(null),y=R.useRef(null);R.useEffect(()=>()=>{g.current&&clearTimeout(g.current)},[]);const S=R.useCallback(E=>{const{pulsate:I,rippleX:A,rippleY:k,rippleSize:O,cb:L}=E;u(N=>[...N,C.jsx(Kfe,{classes:{ripple:Ue(o.ripple,fa.ripple),rippleVisible:Ue(o.rippleVisible,fa.rippleVisible),ripplePulsate:Ue(o.ripplePulsate,fa.ripplePulsate),child:Ue(o.child,fa.child),childLeaving:Ue(o.childLeaving,fa.childLeaving),childPulsate:Ue(o.childPulsate,fa.childPulsate)},timeout:JF,pulsate:I,rippleX:A,rippleY:k,rippleSize:O},f.current)]),f.current+=1,h.current=L},[o]),w=R.useCallback((E={},I={},A=()=>{})=>{const{pulsate:k=!1,center:O=i||I.pulsate,fakeElement:L=!1}=I;if((E==null?void 0:E.type)==="mousedown"&&p.current){p.current=!1;return}(E==null?void 0:E.type)==="touchstart"&&(p.current=!0);const N=L?null:y.current,H=N?N.getBoundingClientRect():{width:0,height:0,left:0,top:0};let G,z,D;if(O||E===void 0||E.clientX===0&&E.clientY===0||!E.clientX&&!E.touches)G=Math.round(H.width/2),z=Math.round(H.height/2);else{const{clientX:F,clientY:j}=E.touches&&E.touches.length>0?E.touches[0]:E;G=Math.round(F-H.left),z=Math.round(j-H.top)}if(O)D=Math.sqrt((2*H.width**2+H.height**2)/3),D%2===0&&(D+=1);else{const F=Math.max(Math.abs((N?N.clientWidth:0)-G),G)*2+2,j=Math.max(Math.abs((N?N.clientHeight:0)-z),z)*2+2;D=Math.sqrt(F**2+j**2)}E!=null&&E.touches?v.current===null&&(v.current=()=>{S({pulsate:k,rippleX:G,rippleY:z,rippleSize:D,cb:A})},g.current=setTimeout(()=>{v.current&&(v.current(),v.current=null)},Gfe)):S({pulsate:k,rippleX:G,rippleY:z,rippleSize:D,cb:A})},[i,S]),b=R.useCallback(()=>{w({},{pulsate:!0})},[w]),x=R.useCallback((E,I)=>{if(clearTimeout(g.current),(E==null?void 0:E.type)==="touchend"&&v.current){v.current(),v.current=null,g.current=setTimeout(()=>{x(E,I)});return}v.current=null,u(A=>A.length>0?A.slice(1):A),h.current=I},[]);return R.useImperativeHandle(n,()=>({pulsate:b,start:w,stop:x}),[b,w,x]),C.jsx(Yfe,$({className:Ue(fa.root,o.root,s),ref:y},a,{children:C.jsx(Rfe,{component:null,exit:!0,children:c})}))}),Jfe=Qfe;function Zfe(e){return Ct("MuiButtonBase",e)}const ehe=It("MuiButtonBase",["root","disabled","focusVisible"]),the=ehe,nhe=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],rhe=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=At({root:["root",t&&"disabled",n&&"focusVisible"]},Zfe,i);return n&&r&&(s.root+=` ${r}`),s},ihe=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"},[`&.${the.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),ohe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:o=!1,children:s,className:a,component:c="button",disabled:u=!1,disableRipple:f=!1,disableTouchRipple:h=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:v,onClick:y,onContextMenu:S,onDragLeave:w,onFocus:b,onFocusVisible:x,onKeyDown:E,onKeyUp:I,onMouseDown:A,onMouseLeave:k,onMouseUp:O,onTouchEnd:L,onTouchMove:N,onTouchStart:H,tabIndex:G=0,TouchRippleProps:z,touchRippleRef:D,type:F}=r,j=Ne(r,nhe),V=R.useRef(null),W=R.useRef(null),K=Tr(W,D),{isFocusVisibleRef:X,onFocus:Q,onBlur:ie,ref:ce}=m4(),[ue,se]=R.useState(!1);u&&ue&&se(!1),R.useImperativeHandle(i,()=>({focusVisible:()=>{se(!0),V.current.focus()}}),[]);const[J,ae]=R.useState(!1);R.useEffect(()=>{ae(!0)},[]);const le=J&&!f&&!u;R.useEffect(()=>{ue&&p&&!f&&J&&W.current.pulsate()},[f,p,ue,J]);function he(Be,Pt,dt=h){return mo(Ie=>(Pt&&Pt(Ie),!dt&&W.current&&W.current[Be](Ie),!0))}const pe=he("start",A),ve=he("stop",S),ye=he("stop",w),xe=he("stop",O),me=he("stop",Be=>{ue&&Be.preventDefault(),k&&k(Be)}),be=he("start",H),Ze=he("stop",L),Xe=he("stop",N),ct=he("stop",Be=>{ie(Be),X.current===!1&&se(!1),v&&v(Be)},!1),Bt=mo(Be=>{V.current||(V.current=Be.currentTarget),Q(Be),X.current===!0&&(se(!0),x&&x(Be)),b&&b(Be)}),Pe=()=>{const Be=V.current;return c&&c!=="button"&&!(Be.tagName==="A"&&Be.href)},ze=R.useRef(!1),st=mo(Be=>{p&&!ze.current&&ue&&W.current&&Be.key===" "&&(ze.current=!0,W.current.stop(Be,()=>{W.current.start(Be)})),Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&Be.preventDefault(),E&&E(Be),Be.target===Be.currentTarget&&Pe()&&Be.key==="Enter"&&!u&&(Be.preventDefault(),y&&y(Be))}),gt=mo(Be=>{p&&Be.key===" "&&W.current&&ue&&!Be.defaultPrevented&&(ze.current=!1,W.current.stop(Be,()=>{W.current.pulsate(Be)})),I&&I(Be),y&&Be.target===Be.currentTarget&&Pe()&&Be.key===" "&&!Be.defaultPrevented&&y(Be)});let vt=c;vt==="button"&&(j.href||j.to)&&(vt=g);const _e={};vt==="button"?(_e.type=F===void 0?"button":F,_e.disabled=u):(!j.href&&!j.to&&(_e.role="button"),u&&(_e["aria-disabled"]=u));const je=Tr(n,ce,V),Ke=$({},r,{centerRipple:o,component:c,disabled:u,disableRipple:f,disableTouchRipple:h,focusRipple:p,tabIndex:G,focusVisible:ue}),Fe=rhe(Ke);return C.jsxs(ihe,$({as:vt,className:Ue(Fe.root,a),ownerState:Ke,onBlur:ct,onClick:y,onContextMenu:ve,onFocus:Bt,onKeyDown:st,onKeyUp:gt,onMouseDown:pe,onMouseLeave:me,onMouseUp:xe,onDragLeave:ye,onTouchEnd:Ze,onTouchMove:Xe,onTouchStart:be,ref:je,tabIndex:u?-1:G,type:F},_e,j,{children:[s,le?C.jsx(Jfe,$({ref:K,center:o},z)):null]}))}),Ku=ohe;function she(e){return Ct("MuiIconButton",e)}const ahe=It("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),lhe=ahe,che=["edge","children","className","color","disabled","disableFocusRipple","size"],uhe=e=>{const{classes:t,disabled:n,color:r,edge:i,size:o}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${De(r)}`,i&&`edge${De(i)}`,`size${De(o)}`]};return At(s,she,t)},dhe=Ce(Ku,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${De(n.color)}`],n.edge&&t[`edge${De(n.edge)}`],t[`size${De(n.size)}`]]}})(({theme:e,ownerState:t})=>$({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return $({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&$({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":$({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${lhe.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),fhe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiIconButton"}),{edge:i=!1,children:o,className:s,color:a="default",disabled:c=!1,disableFocusRipple:u=!1,size:f="medium"}=r,h=Ne(r,che),p=$({},r,{edge:i,color:a,disabled:c,disableFocusRipple:u,size:f}),g=uhe(p);return C.jsx(dhe,$({className:Ue(g.root,s),centerRipple:!0,focusRipple:!u,disabled:c,ref:n,ownerState:p},h,{children:o}))}),jp=fhe;function hhe(e){return Ct("MuiTypography",e)}It("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const phe=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],mhe=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:o,classes:s}=e,a={root:["root",o,e.align!=="inherit"&&`align${De(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return At(a,hhe,s)},ghe=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${De(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>$({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),V8={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},vhe={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},yhe=e=>vhe[e]||e,bhe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTypography"}),i=yhe(r.color),o=P4($({},r,{color:i})),{align:s="inherit",className:a,component:c,gutterBottom:u=!1,noWrap:f=!1,paragraph:h=!1,variant:p="body1",variantMapping:g=V8}=o,v=Ne(o,phe),y=$({},o,{align:s,color:i,className:a,component:c,gutterBottom:u,noWrap:f,paragraph:h,variant:p,variantMapping:g}),S=c||(h?"p":g[p]||V8[p])||"span",w=mhe(y);return C.jsx(ghe,$({as:S,ref:n,ownerState:y,className:Ue(w.root,a)},v))}),Ut=bhe;function xhe(e){return Ct("MuiAppBar",e)}It("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);const whe=["className","color","enableColorOnDark","position"],_he=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${De(t)}`,`position${De(n)}`]};return At(i,xhe,r)},C_=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,She=Ce(Cv,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${De(n.position)}`],t[`color${De(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return $({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&$({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&$({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&$({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:C_(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:C_(e.vars.palette.AppBar.darkColor,e.vars.palette.text.primary)},t.color&&!t.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette[t.color].main:C_(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:C_(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Ehe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAppBar"}),{className:i,color:o="primary",enableColorOnDark:s=!1,position:a="fixed"}=r,c=Ne(r,whe),u=$({},r,{color:o,position:a,enableColorOnDark:s}),f=_he(u);return C.jsx(She,$({square:!0,component:"header",ownerState:u,elevation:4,className:Ue(f.root,i,a==="fixed"&&"mui-fixed"),ref:n},c))}),Che=Ehe;function rc(e){return typeof e=="string"}function ax(e,t,n){return e===void 0||rc(e)?t:$({},t,{ownerState:$({},t.ownerState,n)})}function The(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const khe={disableDefaultClasses:!1},Ahe=R.createContext(khe);function Ihe(e){const{disableDefaultClasses:t}=R.useContext(Ahe);return n=>t?"":e(n)}function mC(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 Rhe(e,t,n){return typeof e=="function"?e(t,n):e}function q8(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 Phe(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:o}=e;if(!t){const g=Ue(i==null?void 0:i.className,r==null?void 0:r.className,o,n==null?void 0:n.className),v=$({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),y=$({},n,i,r);return g.length>0&&(y.className=g),Object.keys(v).length>0&&(y.style=v),{props:y,internalRef:void 0}}const s=mC($({},i,r)),a=q8(r),c=q8(i),u=t(s),f=Ue(u==null?void 0:u.className,n==null?void 0:n.className,o,i==null?void 0:i.className,r==null?void 0:r.className),h=$({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=$({},u,n,c,a);return f.length>0&&(p.className=f),Object.keys(h).length>0&&(p.style=h),{props:p,internalRef:u.ref}}const Ohe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function ti(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:o=!1}=e,s=Ne(e,Ohe),a=o?{}:Rhe(r,i),{props:c,internalRef:u}=Phe($({},s,{externalSlotProps:a})),f=Tr(u,a==null?void 0:a.ref,(t=e.additionalProps)==null?void 0:t.ref);return ax(n,$({},c,{ref:f}),i)}function X8(e){return e.substring(2).toLowerCase()}function Mhe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{c.current=!0},0),()=>{c.current=!1}),[]);const f=Tr(t.ref,a),h=mo(v=>{const y=u.current;u.current=!1;const S=Fr(a.current);if(!c.current||!a.current||"clientX"in v&&Mhe(v,S))return;if(s.current){s.current=!1;return}let w;v.composedPath?w=v.composedPath().indexOf(a.current)>-1:w=!S.documentElement.contains(v.target)||a.current.contains(v.target),!w&&(n||!y)&&i(v)}),p=v=>y=>{u.current=!0;const S=t.props[v];S&&S(y)},g={ref:f};return o!==!1&&(g[o]=p(o)),R.useEffect(()=>{if(o!==!1){const v=X8(o),y=Fr(a.current),S=()=>{s.current=!0};return y.addEventListener(v,h),y.addEventListener("touchmove",S),()=>{y.removeEventListener(v,h),y.removeEventListener("touchmove",S)}}},[h,o]),r!==!1&&(g[r]=p(r)),R.useEffect(()=>{if(r!==!1){const v=X8(r),y=Fr(a.current);return y.addEventListener(v,h),()=>{y.removeEventListener(v,h)}}},[h,r]),C.jsx(R.Fragment,{children:R.cloneElement(t,g)})}const Lhe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function Nhe(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 Bhe(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 $he(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||Bhe(e))}function Fhe(e){const t=[],n=[];return Array.from(e.querySelectorAll(Lhe)).forEach((r,i)=>{const o=Nhe(r);o===-1||!$he(r)||(o===0?t.push(r):n.push({documentOrder:i,tabIndex:o,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 zhe(){return!0}function jhe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:o=Fhe,isEnabled:s=zhe,open:a}=e,c=R.useRef(!1),u=R.useRef(null),f=R.useRef(null),h=R.useRef(null),p=R.useRef(null),g=R.useRef(!1),v=R.useRef(null),y=Tr(t.ref,v),S=R.useRef(null);R.useEffect(()=>{!a||!v.current||(g.current=!n)},[n,a]),R.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current);return v.current.contains(x.activeElement)||(v.current.hasAttribute("tabIndex")||v.current.setAttribute("tabIndex","-1"),g.current&&v.current.focus()),()=>{i||(h.current&&h.current.focus&&(c.current=!0,h.current.focus()),h.current=null)}},[a]),R.useEffect(()=>{if(!a||!v.current)return;const x=Fr(v.current),E=k=>{S.current=k,!(r||!s()||k.key!=="Tab")&&x.activeElement===v.current&&k.shiftKey&&(c.current=!0,f.current&&f.current.focus())},I=()=>{const k=v.current;if(k===null)return;if(!x.hasFocus()||!s()||c.current){c.current=!1;return}if(k.contains(x.activeElement)||r&&x.activeElement!==u.current&&x.activeElement!==f.current)return;if(x.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let O=[];if((x.activeElement===u.current||x.activeElement===f.current)&&(O=o(v.current)),O.length>0){var L,N;const H=!!((L=S.current)!=null&&L.shiftKey&&((N=S.current)==null?void 0:N.key)==="Tab"),G=O[0],z=O[O.length-1];typeof G!="string"&&typeof z!="string"&&(H?z.focus():G.focus())}else k.focus()};x.addEventListener("focusin",I),x.addEventListener("keydown",E,!0);const A=setInterval(()=>{x.activeElement&&x.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(A),x.removeEventListener("focusin",I),x.removeEventListener("keydown",E,!0)}},[n,r,i,s,a,o]);const w=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0,p.current=x.target;const E=t.props.onFocus;E&&E(x)},b=x=>{h.current===null&&(h.current=x.relatedTarget),g.current=!0};return C.jsxs(R.Fragment,{children:[C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:u,"data-testid":"sentinelStart"}),R.cloneElement(t,{ref:y,onFocus:w}),C.jsx("div",{tabIndex:a?0:-1,onFocus:b,ref:f,"data-testid":"sentinelEnd"})]})}var ss="top",Oa="bottom",Ma="right",as="left",Rz="auto",_w=[ss,Oa,Ma,as],Wg="start",T1="end",Uhe="clippingParents",cQ="viewport",kb="popper",Hhe="reference",Y8=_w.reduce(function(e,t){return e.concat([t+"-"+Wg,t+"-"+T1])},[]),uQ=[].concat(_w,[Rz]).reduce(function(e,t){return e.concat([t,t+"-"+Wg,t+"-"+T1])},[]),Whe="beforeRead",Ghe="read",Vhe="afterRead",qhe="beforeMain",Xhe="main",Yhe="afterMain",Khe="beforeWrite",Qhe="write",Jhe="afterWrite",Zhe=[Whe,Ghe,Vhe,qhe,Xhe,Yhe,Khe,Qhe,Jhe];function fc(e){return e?(e.nodeName||"").toLowerCase():null}function Zs(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Up(e){var t=Zs(e).Element;return e instanceof t||e instanceof Element}function Ca(e){var t=Zs(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Pz(e){if(typeof ShadowRoot>"u")return!1;var t=Zs(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function epe(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},o=t.elements[n];!Ca(o)||!fc(o)||(Object.assign(o.style,r),Object.keys(i).forEach(function(s){var a=i[s];a===!1?o.removeAttribute(s):o.setAttribute(s,a===!0?"":a)}))})}function tpe(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),a=s.reduce(function(c,u){return c[u]="",c},{});!Ca(i)||!fc(i)||(Object.assign(i.style,a),Object.keys(o).forEach(function(c){i.removeAttribute(c)}))})}}const npe={name:"applyStyles",enabled:!0,phase:"write",fn:epe,effect:tpe,requires:["computeStyles"]};function ic(e){return e.split("-")[0]}var Ep=Math.max,gC=Math.min,Gg=Math.round;function ZF(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function dQ(){return!/^((?!chrome|android).)*safari/i.test(ZF())}function Vg(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,o=1;t&&Ca(e)&&(i=e.offsetWidth>0&&Gg(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Gg(r.height)/e.offsetHeight||1);var s=Up(e)?Zs(e):window,a=s.visualViewport,c=!dQ()&&n,u=(r.left+(c&&a?a.offsetLeft:0))/i,f=(r.top+(c&&a?a.offsetTop:0))/o,h=r.width/i,p=r.height/o;return{width:h,height:p,top:f,right:u+h,bottom:f+p,left:u,x:u,y:f}}function Oz(e){var t=Vg(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function fQ(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Pz(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ju(e){return Zs(e).getComputedStyle(e)}function rpe(e){return["table","td","th"].indexOf(fc(e))>=0}function vf(e){return((Up(e)?e.ownerDocument:e.document)||window.document).documentElement}function Dk(e){return fc(e)==="html"?e:e.assignedSlot||e.parentNode||(Pz(e)?e.host:null)||vf(e)}function K8(e){return!Ca(e)||ju(e).position==="fixed"?null:e.offsetParent}function ipe(e){var t=/firefox/i.test(ZF()),n=/Trident/i.test(ZF());if(n&&Ca(e)){var r=ju(e);if(r.position==="fixed")return null}var i=Dk(e);for(Pz(i)&&(i=i.host);Ca(i)&&["html","body"].indexOf(fc(i))<0;){var o=ju(i);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return i;i=i.parentNode}return null}function Sw(e){for(var t=Zs(e),n=K8(e);n&&rpe(n)&&ju(n).position==="static";)n=K8(n);return n&&(fc(n)==="html"||fc(n)==="body"&&ju(n).position==="static")?t:n||ipe(e)||t}function Mz(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Lx(e,t,n){return Ep(e,gC(t,n))}function ope(e,t,n){var r=Lx(e,t,n);return r>n?n:r}function hQ(){return{top:0,right:0,bottom:0,left:0}}function pQ(e){return Object.assign({},hQ(),e)}function mQ(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var spe=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,pQ(typeof t!="number"?t:mQ(t,_w))};function ape(e){var t,n=e.state,r=e.name,i=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,a=ic(n.placement),c=Mz(a),u=[as,Ma].indexOf(a)>=0,f=u?"height":"width";if(!(!o||!s)){var h=spe(i.padding,n),p=Oz(o),g=c==="y"?ss:as,v=c==="y"?Oa:Ma,y=n.rects.reference[f]+n.rects.reference[c]-s[c]-n.rects.popper[f],S=s[c]-n.rects.reference[c],w=Sw(o),b=w?c==="y"?w.clientHeight||0:w.clientWidth||0:0,x=y/2-S/2,E=h[g],I=b-p[f]-h[v],A=b/2-p[f]/2+x,k=Lx(E,A,I),O=c;n.modifiersData[r]=(t={},t[O]=k,t.centerOffset=k-A,t)}}function lpe(e){var t=e.state,n=e.options,r=n.element,i=r===void 0?"[data-popper-arrow]":r;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||fQ(t.elements.popper,i)&&(t.elements.arrow=i))}const cpe={name:"arrow",enabled:!0,phase:"main",fn:ape,effect:lpe,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function qg(e){return e.split("-")[1]}var upe={top:"auto",right:"auto",bottom:"auto",left:"auto"};function dpe(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Gg(n*i)/i||0,y:Gg(r*i)/i||0}}function Q8(e){var t,n=e.popper,r=e.popperRect,i=e.placement,o=e.variation,s=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,f=e.roundOffsets,h=e.isFixed,p=s.x,g=p===void 0?0:p,v=s.y,y=v===void 0?0:v,S=typeof f=="function"?f({x:g,y}):{x:g,y};g=S.x,y=S.y;var w=s.hasOwnProperty("x"),b=s.hasOwnProperty("y"),x=as,E=ss,I=window;if(u){var A=Sw(n),k="clientHeight",O="clientWidth";if(A===Zs(n)&&(A=vf(n),ju(A).position!=="static"&&a==="absolute"&&(k="scrollHeight",O="scrollWidth")),A=A,i===ss||(i===as||i===Ma)&&o===T1){E=Oa;var L=h&&A===I&&I.visualViewport?I.visualViewport.height:A[k];y-=L-r.height,y*=c?1:-1}if(i===as||(i===ss||i===Oa)&&o===T1){x=Ma;var N=h&&A===I&&I.visualViewport?I.visualViewport.width:A[O];g-=N-r.width,g*=c?1:-1}}var H=Object.assign({position:a},u&&upe),G=f===!0?dpe({x:g,y},Zs(n)):{x:g,y};if(g=G.x,y=G.y,c){var z;return Object.assign({},H,(z={},z[E]=b?"0":"",z[x]=w?"0":"",z.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",z))}return Object.assign({},H,(t={},t[E]=b?y+"px":"",t[x]=w?g+"px":"",t.transform="",t))}function fpe(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,a=n.roundOffsets,c=a===void 0?!0:a,u={placement:ic(t.placement),variation:qg(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Q8(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q8(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hpe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fpe,data:{}};var T_={passive:!0};function ppe(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,o=i===void 0?!0:i,s=r.resize,a=s===void 0?!0:s,c=Zs(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(f){f.addEventListener("scroll",n.update,T_)}),a&&c.addEventListener("resize",n.update,T_),function(){o&&u.forEach(function(f){f.removeEventListener("scroll",n.update,T_)}),a&&c.removeEventListener("resize",n.update,T_)}}const mpe={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ppe,data:{}};var gpe={left:"right",right:"left",bottom:"top",top:"bottom"};function dE(e){return e.replace(/left|right|bottom|top/g,function(t){return gpe[t]})}var vpe={start:"end",end:"start"};function J8(e){return e.replace(/start|end/g,function(t){return vpe[t]})}function Dz(e){var t=Zs(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Lz(e){return Vg(vf(e)).left+Dz(e).scrollLeft}function ype(e,t){var n=Zs(e),r=vf(e),i=n.visualViewport,o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;var u=dQ();(u||!u&&t==="fixed")&&(a=i.offsetLeft,c=i.offsetTop)}return{width:o,height:s,x:a+Lz(e),y:c}}function bpe(e){var t,n=vf(e),r=Dz(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=Ep(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=Ep(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-r.scrollLeft+Lz(e),c=-r.scrollTop;return ju(i||n).direction==="rtl"&&(a+=Ep(n.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:c}}function Nz(e){var t=ju(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function gQ(e){return["html","body","#document"].indexOf(fc(e))>=0?e.ownerDocument.body:Ca(e)&&Nz(e)?e:gQ(Dk(e))}function Nx(e,t){var n;t===void 0&&(t=[]);var r=gQ(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),o=Zs(r),s=i?[o].concat(o.visualViewport||[],Nz(r)?r:[]):r,a=t.concat(s);return i?a:a.concat(Nx(Dk(s)))}function e3(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xpe(e,t){var n=Vg(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Z8(e,t,n){return t===cQ?e3(ype(e,n)):Up(t)?xpe(t,n):e3(bpe(vf(e)))}function wpe(e){var t=Nx(Dk(e)),n=["absolute","fixed"].indexOf(ju(e).position)>=0,r=n&&Ca(e)?Sw(e):e;return Up(r)?t.filter(function(i){return Up(i)&&fQ(i,r)&&fc(i)!=="body"}):[]}function _pe(e,t,n,r){var i=t==="clippingParents"?wpe(e):[].concat(t),o=[].concat(i,[n]),s=o[0],a=o.reduce(function(c,u){var f=Z8(e,u,r);return c.top=Ep(f.top,c.top),c.right=gC(f.right,c.right),c.bottom=gC(f.bottom,c.bottom),c.left=Ep(f.left,c.left),c},Z8(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function vQ(e){var t=e.reference,n=e.element,r=e.placement,i=r?ic(r):null,o=r?qg(r):null,s=t.x+t.width/2-n.width/2,a=t.y+t.height/2-n.height/2,c;switch(i){case ss:c={x:s,y:t.y-n.height};break;case Oa:c={x:s,y:t.y+t.height};break;case Ma:c={x:t.x+t.width,y:a};break;case as:c={x:t.x-n.width,y:a};break;default:c={x:t.x,y:t.y}}var u=i?Mz(i):null;if(u!=null){var f=u==="y"?"height":"width";switch(o){case Wg:c[u]=c[u]-(t[f]/2-n[f]/2);break;case T1:c[u]=c[u]+(t[f]/2-n[f]/2);break}}return c}function k1(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,a=n.boundary,c=a===void 0?Uhe:a,u=n.rootBoundary,f=u===void 0?cQ:u,h=n.elementContext,p=h===void 0?kb:h,g=n.altBoundary,v=g===void 0?!1:g,y=n.padding,S=y===void 0?0:y,w=pQ(typeof S!="number"?S:mQ(S,_w)),b=p===kb?Hhe:kb,x=e.rects.popper,E=e.elements[v?b:p],I=_pe(Up(E)?E:E.contextElement||vf(e.elements.popper),c,f,s),A=Vg(e.elements.reference),k=vQ({reference:A,element:x,strategy:"absolute",placement:i}),O=e3(Object.assign({},x,k)),L=p===kb?O:A,N={top:I.top-L.top+w.top,bottom:L.bottom-I.bottom+w.bottom,left:I.left-L.left+w.left,right:L.right-I.right+w.right},H=e.modifiersData.offset;if(p===kb&&H){var G=H[i];Object.keys(N).forEach(function(z){var D=[Ma,Oa].indexOf(z)>=0?1:-1,F=[ss,Oa].indexOf(z)>=0?"y":"x";N[z]+=G[F]*D})}return N}function Spe(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,o=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,u=c===void 0?uQ:c,f=qg(r),h=f?a?Y8:Y8.filter(function(v){return qg(v)===f}):_w,p=h.filter(function(v){return u.indexOf(v)>=0});p.length===0&&(p=h);var g=p.reduce(function(v,y){return v[y]=k1(e,{placement:y,boundary:i,rootBoundary:o,padding:s})[ic(y)],v},{});return Object.keys(g).sort(function(v,y){return g[v]-g[y]})}function Epe(e){if(ic(e)===Rz)return[];var t=dE(e);return[J8(e),t,J8(t)]}function Cpe(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!0:s,c=n.fallbackPlacements,u=n.padding,f=n.boundary,h=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,v=g===void 0?!0:g,y=n.allowedAutoPlacements,S=t.options.placement,w=ic(S),b=w===S,x=c||(b||!v?[dE(S)]:Epe(S)),E=[S].concat(x).reduce(function(ue,se){return ue.concat(ic(se)===Rz?Spe(t,{placement:se,boundary:f,rootBoundary:h,padding:u,flipVariations:v,allowedAutoPlacements:y}):se)},[]),I=t.rects.reference,A=t.rects.popper,k=new Map,O=!0,L=E[0],N=0;N=0,F=D?"width":"height",j=k1(t,{placement:H,boundary:f,rootBoundary:h,altBoundary:p,padding:u}),V=D?z?Ma:as:z?Oa:ss;I[F]>A[F]&&(V=dE(V));var W=dE(V),K=[];if(o&&K.push(j[G]<=0),a&&K.push(j[V]<=0,j[W]<=0),K.every(function(ue){return ue})){L=H,O=!1;break}k.set(H,K)}if(O)for(var X=v?3:1,Q=function(se){var J=E.find(function(ae){var le=k.get(ae);if(le)return le.slice(0,se).every(function(he){return he})});if(J)return L=J,"break"},ie=X;ie>0;ie--){var ce=Q(ie);if(ce==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const Tpe={name:"flip",enabled:!0,phase:"main",fn:Cpe,requiresIfExists:["offset"],data:{_skip:!1}};function eH(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function tH(e){return[ss,Ma,Oa,as].some(function(t){return e[t]>=0})}function kpe(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,o=t.modifiersData.preventOverflow,s=k1(t,{elementContext:"reference"}),a=k1(t,{altBoundary:!0}),c=eH(s,r),u=eH(a,i,o),f=tH(c),h=tH(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":h})}const Ape={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:kpe};function Ipe(e,t,n){var r=ic(e),i=[as,ss].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],a=o[1];return s=s||0,a=(a||0)*i,[as,Ma].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}function Rpe(e){var t=e.state,n=e.options,r=e.name,i=n.offset,o=i===void 0?[0,0]:i,s=uQ.reduce(function(f,h){return f[h]=Ipe(h,t.rects,o),f},{}),a=s[t.placement],c=a.x,u=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const Ppe={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Rpe};function Ope(e){var t=e.state,n=e.name;t.modifiersData[n]=vQ({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const Mpe={name:"popperOffsets",enabled:!0,phase:"read",fn:Ope,data:{}};function Dpe(e){return e==="x"?"y":"x"}function Lpe(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,o=i===void 0?!0:i,s=n.altAxis,a=s===void 0?!1:s,c=n.boundary,u=n.rootBoundary,f=n.altBoundary,h=n.padding,p=n.tether,g=p===void 0?!0:p,v=n.tetherOffset,y=v===void 0?0:v,S=k1(t,{boundary:c,rootBoundary:u,padding:h,altBoundary:f}),w=ic(t.placement),b=qg(t.placement),x=!b,E=Mz(w),I=Dpe(E),A=t.modifiersData.popperOffsets,k=t.rects.reference,O=t.rects.popper,L=typeof y=="function"?y(Object.assign({},t.rects,{placement:t.placement})):y,N=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),H=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,G={x:0,y:0};if(A){if(o){var z,D=E==="y"?ss:as,F=E==="y"?Oa:Ma,j=E==="y"?"height":"width",V=A[E],W=V+S[D],K=V-S[F],X=g?-O[j]/2:0,Q=b===Wg?k[j]:O[j],ie=b===Wg?-O[j]:-k[j],ce=t.elements.arrow,ue=g&&ce?Oz(ce):{width:0,height:0},se=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:hQ(),J=se[D],ae=se[F],le=Lx(0,k[j],ue[j]),he=x?k[j]/2-X-le-J-N.mainAxis:Q-le-J-N.mainAxis,pe=x?-k[j]/2+X+le+ae+N.mainAxis:ie+le+ae+N.mainAxis,ve=t.elements.arrow&&Sw(t.elements.arrow),ye=ve?E==="y"?ve.clientTop||0:ve.clientLeft||0:0,xe=(z=H==null?void 0:H[E])!=null?z:0,me=V+he-xe-ye,be=V+pe-xe,Ze=Lx(g?gC(W,me):W,V,g?Ep(K,be):K);A[E]=Ze,G[E]=Ze-V}if(a){var Xe,ct=E==="x"?ss:as,Bt=E==="x"?Oa:Ma,Pe=A[I],ze=I==="y"?"height":"width",st=Pe+S[ct],gt=Pe-S[Bt],vt=[ss,as].indexOf(w)!==-1,_e=(Xe=H==null?void 0:H[I])!=null?Xe:0,je=vt?st:Pe-k[ze]-O[ze]-_e+N.altAxis,Ke=vt?Pe+k[ze]+O[ze]-_e-N.altAxis:gt,Fe=g&&vt?ope(je,Pe,Ke):Lx(g?je:st,Pe,g?Ke:gt);A[I]=Fe,G[I]=Fe-Pe}t.modifiersData[r]=G}}const Npe={name:"preventOverflow",enabled:!0,phase:"main",fn:Lpe,requiresIfExists:["offset"]};function Bpe(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $pe(e){return e===Zs(e)||!Ca(e)?Dz(e):Bpe(e)}function Fpe(e){var t=e.getBoundingClientRect(),n=Gg(t.width)/e.offsetWidth||1,r=Gg(t.height)/e.offsetHeight||1;return n!==1||r!==1}function zpe(e,t,n){n===void 0&&(n=!1);var r=Ca(t),i=Ca(t)&&Fpe(t),o=vf(t),s=Vg(e,i,n),a={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(r||!r&&!n)&&((fc(t)!=="body"||Nz(o))&&(a=$pe(t)),Ca(t)?(c=Vg(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Lz(o))),{x:s.left+a.scrollLeft-c.x,y:s.top+a.scrollTop-c.y,width:s.width,height:s.height}}function jpe(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function i(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(a){if(!n.has(a)){var c=t.get(a);c&&i(c)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||i(o)}),r}function Upe(e){var t=jpe(e);return Zhe.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function Hpe(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Wpe(e){var t=e.reduce(function(n,r){var i=n[r.name];return n[r.name]=i?Object.assign({},i,r,{options:Object.assign({},i.options,r.options),data:Object.assign({},i.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var nH={placement:"bottom",modifiers:[],strategy:"absolute"};function rH(){for(var e=arguments.length,t=new Array(e),n=0;n{o||a(Xpe(i)||document.body)},[i,o]),jo(()=>{if(s&&!o)return Q$(n,s),()=>{Q$(n,null)}},[n,s,o]),o){if(R.isValidElement(r)){const u={ref:c};return R.cloneElement(r,u)}return C.jsx(R.Fragment,{children:r})}return C.jsx(R.Fragment,{children:s&&Ev.createPortal(r,s)})});function Ype(e){return Ct("MuiPopper",e)}It("MuiPopper",["root"]);const Kpe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],Qpe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function Jpe(e,t){if(t==="ltr")return e;switch(e){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return e}}function t3(e){return typeof e=="function"?e():e}function Zpe(e){return e.nodeType!==void 0}const eme=()=>At({root:["root"]},Ihe(Ype)),tme={},nme=R.forwardRef(function(t,n){var r;const{anchorEl:i,children:o,direction:s,disablePortal:a,modifiers:c,open:u,placement:f,popperOptions:h,popperRef:p,slotProps:g={},slots:v={},TransitionProps:y}=t,S=Ne(t,Kpe),w=R.useRef(null),b=Tr(w,n),x=R.useRef(null),E=Tr(x,p),I=R.useRef(E);jo(()=>{I.current=E},[E]),R.useImperativeHandle(p,()=>x.current,[]);const A=Jpe(f,s),[k,O]=R.useState(A),[L,N]=R.useState(t3(i));R.useEffect(()=>{x.current&&x.current.forceUpdate()}),R.useEffect(()=>{i&&N(t3(i))},[i]),jo(()=>{if(!L||!u)return;const F=W=>{O(W.placement)};let j=[{name:"preventOverflow",options:{altBoundary:a}},{name:"flip",options:{altBoundary:a}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:W})=>{F(W)}}];c!=null&&(j=j.concat(c)),h&&h.modifiers!=null&&(j=j.concat(h.modifiers));const V=qpe(L,w.current,$({placement:A},h,{modifiers:j}));return I.current(V),()=>{V.destroy(),I.current(null)}},[L,a,c,u,h,A]);const H={placement:k};y!==null&&(H.TransitionProps=y);const G=eme(),z=(r=v.root)!=null?r:"div",D=ti({elementType:z,externalSlotProps:g.root,externalForwardedProps:S,additionalProps:{role:"tooltip",ref:b},ownerState:t,className:G.root});return C.jsx(z,$({},D,{children:typeof o=="function"?o(H):o}))}),rme=R.forwardRef(function(t,n){const{anchorEl:r,children:i,container:o,direction:s="ltr",disablePortal:a=!1,keepMounted:c=!1,modifiers:u,open:f,placement:h="bottom",popperOptions:p=tme,popperRef:g,style:v,transition:y=!1,slotProps:S={},slots:w={}}=t,b=Ne(t,Qpe),[x,E]=R.useState(!0),I=()=>{E(!1)},A=()=>{E(!0)};if(!c&&!f&&(!y||x))return null;let k;if(o)k=o;else if(r){const N=t3(r);k=N&&Zpe(N)?Fr(N).body:Fr(null).body}const O=!f&&c&&(!y||x)?"none":void 0,L=y?{in:f,onEnter:I,onExited:A}:void 0;return C.jsx(yQ,{disablePortal:a,container:k,children:C.jsx(nme,$({anchorEl:r,direction:s,disablePortal:a,modifiers:u,ref:n,open:y?!x:f,placement:h,popperOptions:p,popperRef:g,slotProps:S,slots:w},b,{style:$({position:"fixed",top:0,left:0,display:O},v),TransitionProps:L,children:i}))})});function ime(e){const t=Fr(e);return t.body===e?Nu(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Bx(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function iH(e){return parseInt(Nu(e).getComputedStyle(e).paddingRight,10)||0}function ome(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(e.tagName)!==-1,r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function oH(e,t,n,r,i){const o=[t,n,...r];[].forEach.call(e.children,s=>{const a=o.indexOf(s)===-1,c=!ome(s);a&&c&&Bx(s,i)})}function zL(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function sme(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(ime(r)){const s=_X(Fr(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${iH(r)+s}px`;const a=Fr(r).querySelectorAll(".mui-fixed");[].forEach.call(a,c=>{n.push({value:c.style.paddingRight,property:"padding-right",el:c}),c.style.paddingRight=`${iH(c)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Fr(r).body;else{const s=r.parentElement,a=Nu(r);o=(s==null?void 0:s.nodeName)==="HTML"&&a.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:a})=>{o?s.style.setProperty(a,o):s.style.removeProperty(a)})}}function ame(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class lme{constructor(){this.containers=void 0,this.modals=void 0,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&&Bx(t.modalRef,!1);const i=ame(n);oH(n,t.mount,t.modalRef,i,!0);const o=zL(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=zL(this.containers,o=>o.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=sme(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=zL(this.containers,s=>s.modals.indexOf(t)!==-1),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Bx(t.modalRef,n),oH(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Bx(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function cme(e){return typeof e=="function"?e():e}function ume(e){return e?e.props.hasOwnProperty("in"):!1}const dme=new lme;function fme(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=dme,closeAfterTransition:o=!1,onTransitionEnter:s,onTransitionExited:a,children:c,onClose:u,open:f,rootRef:h}=e,p=R.useRef({}),g=R.useRef(null),v=R.useRef(null),y=Tr(v,h),[S,w]=R.useState(!f),b=ume(c);let x=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(x=!1);const E=()=>Fr(g.current),I=()=>(p.current.modalRef=v.current,p.current.mount=g.current,p.current),A=()=>{i.mount(I(),{disableScrollLock:r}),v.current&&(v.current.scrollTop=0)},k=mo(()=>{const j=cme(t)||E().body;i.add(I(),j),v.current&&A()}),O=R.useCallback(()=>i.isTopModal(I()),[i]),L=mo(j=>{g.current=j,j&&(f&&O()?A():v.current&&Bx(v.current,x))}),N=R.useCallback(()=>{i.remove(I(),x)},[x,i]);R.useEffect(()=>()=>{N()},[N]),R.useEffect(()=>{f?k():(!b||!o)&&N()},[f,N,b,o,k]);const H=j=>V=>{var W;(W=j.onKeyDown)==null||W.call(j,V),!(V.key!=="Escape"||!O())&&(n||(V.stopPropagation(),u&&u(V,"escapeKeyDown")))},G=j=>V=>{var W;(W=j.onClick)==null||W.call(j,V),V.target===V.currentTarget&&u&&u(V,"backdropClick")};return{getRootProps:(j={})=>{const V=mC(e);delete V.onTransitionEnter,delete V.onTransitionExited;const W=$({},V,j);return $({role:"presentation"},W,{onKeyDown:H(W),ref:y})},getBackdropProps:(j={})=>{const V=j;return $({"aria-hidden":!0},V,{onClick:G(V),open:f})},getTransitionProps:()=>{const j=()=>{w(!1),s&&s()},V=()=>{w(!0),a&&a(),o&&N()};return{onEnter:s6(j,c==null?void 0:c.props.onEnter),onExited:s6(V,c==null?void 0:c.props.onExited)}},rootRef:y,portalRef:L,isTopModal:O,exited:S,hasTransition:b}}const hme=2;function bQ(e,t){return e-t}function Ab(e,t,n){return e==null?t:Math.min(Math.max(t,e),n)}function sH(e,t){var n;const{index:r}=(n=e.reduce((i,o,s)=>{const a=Math.abs(t-o);return i===null||a({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},yme=e=>e;let R_;function jL(){return R_===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?R_=CSS.supports("touch-action","none"):R_=!0),R_}function bme(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:o=!1,marks:s=!1,max:a=100,min:c=0,name:u,onChange:f,onChangeCommitted:h,orientation:p="horizontal",rootRef:g,scale:v=yme,step:y=1,tabIndex:S,value:w}=e,b=R.useRef(),[x,E]=R.useState(-1),[I,A]=R.useState(-1),[k,O]=R.useState(!1),L=R.useRef(0),[N,H]=o1({controlled:w,default:n??c,name:"Slider"}),G=f&&((_e,je,Ke)=>{const Fe=_e.nativeEvent||_e,Be=new Fe.constructor(Fe.type,Fe);Object.defineProperty(Be,"target",{writable:!0,value:{value:je,name:u}}),f(Be,je,Ke)}),z=Array.isArray(N);let D=z?N.slice().sort(bQ):[N];D=D.map(_e=>Ab(_e,c,a));const F=s===!0&&y!==null?[...Array(Math.floor((a-c)/y)+1)].map((_e,je)=>({value:c+y*je})):s||[],j=F.map(_e=>_e.value),{isFocusVisibleRef:V,onBlur:W,onFocus:K,ref:X}=m4(),[Q,ie]=R.useState(-1),ce=R.useRef(),ue=Tr(X,ce),se=Tr(g,ue),J=_e=>je=>{var Ke;const Fe=Number(je.currentTarget.getAttribute("data-index"));K(je),V.current===!0&&ie(Fe),A(Fe),_e==null||(Ke=_e.onFocus)==null||Ke.call(_e,je)},ae=_e=>je=>{var Ke;W(je),V.current===!1&&ie(-1),A(-1),_e==null||(Ke=_e.onBlur)==null||Ke.call(_e,je)};jo(()=>{if(r&&ce.current.contains(document.activeElement)){var _e;(_e=document.activeElement)==null||_e.blur()}},[r]),r&&x!==-1&&E(-1),r&&Q!==-1&&ie(-1);const le=_e=>je=>{var Ke;(Ke=_e.onChange)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index")),Be=D[Fe],Pt=j.indexOf(Be);let dt=je.target.valueAsNumber;if(F&&y==null){const Ie=j[j.length-1];dt>Ie?dt=Ie:dt{const{current:Ke}=ce,{width:Fe,height:Be,bottom:Pt,left:dt}=Ke.getBoundingClientRect();let Ie;pe.indexOf("vertical")===0?Ie=(Pt-_e.y)/Be:Ie=(_e.x-dt)/Fe,pe.indexOf("-reverse")!==-1&&(Ie=1-Ie);let at;if(at=pme(Ie,c,a),y)at=gme(at,y,c);else{const Re=sH(j,at);at=j[Re]}at=Ab(at,c,a);let zt=0;if(z){je?zt=he.current:zt=sH(D,at),i&&(at=Ab(at,D[zt-1]||-1/0,D[zt+1]||1/0));const Re=at;at=aH({values:D,newValue:at,index:zt}),i&&je||(zt=at.indexOf(Re),he.current=zt)}return{newValue:at,activeIndex:zt}},ye=mo(_e=>{const je=k_(_e,b);if(!je)return;if(L.current+=1,_e.type==="mousemove"&&_e.buttons===0){xe(_e);return}const{newValue:Ke,activeIndex:Fe}=ve({finger:je,move:!0});A_({sliderRef:ce,activeIndex:Fe,setActive:E}),H(Ke),!k&&L.current>hme&&O(!0),G&&!I_(Ke,N)&&G(_e,Ke,Fe)}),xe=mo(_e=>{const je=k_(_e,b);if(O(!1),!je)return;const{newValue:Ke}=ve({finger:je,move:!0});E(-1),_e.type==="touchend"&&A(-1),h&&h(_e,Ke),b.current=void 0,be()}),me=mo(_e=>{if(r)return;jL()||_e.preventDefault();const je=_e.changedTouches[0];je!=null&&(b.current=je.identifier);const Ke=k_(_e,b);if(Ke!==!1){const{newValue:Be,activeIndex:Pt}=ve({finger:Ke});A_({sliderRef:ce,activeIndex:Pt,setActive:E}),H(Be),G&&!I_(Be,N)&&G(_e,Be,Pt)}L.current=0;const Fe=Fr(ce.current);Fe.addEventListener("touchmove",ye),Fe.addEventListener("touchend",xe)}),be=R.useCallback(()=>{const _e=Fr(ce.current);_e.removeEventListener("mousemove",ye),_e.removeEventListener("mouseup",xe),_e.removeEventListener("touchmove",ye),_e.removeEventListener("touchend",xe)},[xe,ye]);R.useEffect(()=>{const{current:_e}=ce;return _e.addEventListener("touchstart",me,{passive:jL()}),()=>{_e.removeEventListener("touchstart",me,{passive:jL()}),be()}},[be,me]),R.useEffect(()=>{r&&be()},[r,be]);const Ze=_e=>je=>{var Ke;if((Ke=_e.onMouseDown)==null||Ke.call(_e,je),r||je.defaultPrevented||je.button!==0)return;je.preventDefault();const Fe=k_(je,b);if(Fe!==!1){const{newValue:Pt,activeIndex:dt}=ve({finger:Fe});A_({sliderRef:ce,activeIndex:dt,setActive:E}),H(Pt),G&&!I_(Pt,N)&&G(je,Pt,dt)}L.current=0;const Be=Fr(ce.current);Be.addEventListener("mousemove",ye),Be.addEventListener("mouseup",xe)},Xe=vC(z?D[0]:c,c,a),ct=vC(D[D.length-1],c,a)-Xe,Bt=(_e={})=>{const je={onMouseDown:Ze(_e||{})},Ke=$({},_e,je);return $({ref:se},Ke)},Pe=_e=>je=>{var Ke;(Ke=_e.onMouseOver)==null||Ke.call(_e,je);const Fe=Number(je.currentTarget.getAttribute("data-index"));A(Fe)},ze=_e=>je=>{var Ke;(Ke=_e.onMouseLeave)==null||Ke.call(_e,je),A(-1)};return{active:x,axis:pe,axisProps:vme,dragging:k,focusedThumbIndex:Q,getHiddenInputProps:(_e={})=>{var je;const Ke={onChange:le(_e||{}),onFocus:J(_e||{}),onBlur:ae(_e||{})},Fe=$({},_e,Ke);return $({tabIndex:S,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":v(a),"aria-valuemin":v(c),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(je=e.step)!=null?je:void 0,disabled:r},Fe,{style:$({},Qse,{direction:o?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:Bt,getThumbProps:(_e={})=>{const je={onMouseOver:Pe(_e||{}),onMouseLeave:ze(_e||{})};return $({},_e,je)},marks:F,open:I,range:z,rootRef:se,trackLeap:ct,trackOffset:Xe,values:D,getThumbStyle:_e=>({pointerEvents:x!==-1&&x!==_e?"none":void 0})}}function xme(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:i,resumeHideDuration:o}=e,s=R.useRef();R.useEffect(()=>{if(!i)return;function w(b){b.defaultPrevented||(b.key==="Escape"||b.key==="Esc")&&(r==null||r(b,"escapeKeyDown"))}return document.addEventListener("keydown",w),()=>{document.removeEventListener("keydown",w)}},[i,r]);const a=mo((w,b)=>{r==null||r(w,b)}),c=mo(w=>{!r||w==null||(clearTimeout(s.current),s.current=setTimeout(()=>{a(null,"timeout")},w))});R.useEffect(()=>(i&&c(t),()=>{clearTimeout(s.current)}),[i,t,c]);const u=w=>{r==null||r(w,"clickaway")},f=()=>{clearTimeout(s.current)},h=R.useCallback(()=>{t!=null&&c(o??t*.5)},[t,o,c]),p=w=>b=>{const x=w.onBlur;x==null||x(b),h()},g=w=>b=>{const x=w.onFocus;x==null||x(b),f()},v=w=>b=>{const x=w.onMouseEnter;x==null||x(b),f()},y=w=>b=>{const x=w.onMouseLeave;x==null||x(b),h()};return R.useEffect(()=>{if(!n&&i)return window.addEventListener("focus",h),window.addEventListener("blur",f),()=>{window.removeEventListener("focus",h),window.removeEventListener("blur",f)}},[n,h,i]),{getRootProps:(w={})=>{const b=$({},mC(e),mC(w));return $({role:"presentation"},w,b,{onBlur:p(b),onFocus:g(b),onMouseEnter:v(b),onMouseLeave:y(b)})},onClickAway:u}}const wme=["onChange","maxRows","minRows","style","value"];function P_(e){return parseInt(e,10)||0}const _me={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function lH(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Sme=R.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:o=1,style:s,value:a}=t,c=Ne(t,wme),{current:u}=R.useRef(a!=null),f=R.useRef(null),h=Tr(n,f),p=R.useRef(null),g=R.useRef(0),[v,y]=R.useState({outerHeightStyle:0}),S=R.useCallback(()=>{const E=f.current,A=Nu(E).getComputedStyle(E);if(A.width==="0px")return{outerHeightStyle:0};const k=p.current;k.style.width=A.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===` +`&&(k.value+=" ");const O=A.boxSizing,L=P_(A.paddingBottom)+P_(A.paddingTop),N=P_(A.borderBottomWidth)+P_(A.borderTopWidth),H=k.scrollHeight;k.value="x";const G=k.scrollHeight;let z=H;o&&(z=Math.max(Number(o)*G,z)),i&&(z=Math.min(Number(i)*G,z)),z=Math.max(z,G);const D=z+(O==="border-box"?L+N:0),F=Math.abs(z-H)<=1;return{outerHeightStyle:D,overflow:F}},[i,o,t.placeholder]),w=(E,I)=>{const{outerHeightStyle:A,overflow:k}=I;return g.current<20&&(A>0&&Math.abs((E.outerHeightStyle||0)-A)>1||E.overflow!==k)?(g.current+=1,{overflow:k,outerHeightStyle:A}):E},b=R.useCallback(()=>{const E=S();lH(E)||y(I=>w(I,E))},[S]);jo(()=>{const E=()=>{const H=S();lH(H)||Ev.flushSync(()=>{y(G=>w(G,H))})},I=()=>{g.current=0,E()};let A;const k=OT(I),O=f.current,L=Nu(O);L.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(I),N.observe(O)),()=>{k.clear(),cancelAnimationFrame(A),L.removeEventListener("resize",k),N&&N.disconnect()}},[S]),jo(()=>{b()}),R.useEffect(()=>{g.current=0},[a]);const x=E=>{g.current=0,u||b(),r&&r(E)};return C.jsxs(R.Fragment,{children:[C.jsx("textarea",$({value:a,onChange:x,ref:h,rows:o,style:$({height:v.outerHeightStyle,overflow:v.overflow?"hidden":void 0},s)},c)),C.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:p,tabIndex:-1,style:$({},_me.shadow,s,{paddingTop:0,paddingBottom:0})})]})}),Eme=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],Cme=Ce(rme,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Tme=R.forwardRef(function(t,n){var r;const i=rk(),o=Rt({props:t,name:"MuiPopper"}),{anchorEl:s,component:a,components:c,componentsProps:u,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b,slots:x,slotProps:E}=o,I=Ne(o,Eme),A=(r=x==null?void 0:x.root)!=null?r:c==null?void 0:c.Root,k=$({anchorEl:s,container:f,disablePortal:h,keepMounted:p,modifiers:g,open:v,placement:y,popperOptions:S,popperRef:w,transition:b},I);return C.jsx(Cme,$({as:a,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:E??u},k,{ref:n}))}),xQ=Tme;function kme(e){return Ct("MuiListSubheader",e)}It("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Ame=["className","color","component","disableGutters","disableSticky","inset"],Ime=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${De(n)}`,!r&&"gutters",i&&"inset",!o&&"sticky"]};return At(s,kme,t)},Rme=Ce("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${De(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>$({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),wQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:s="li",disableGutters:a=!1,disableSticky:c=!1,inset:u=!1}=r,f=Ne(r,Ame),h=$({},r,{color:o,component:s,disableGutters:a,disableSticky:c,inset:u}),p=Ime(h);return C.jsx(Rme,$({as:s,className:Ue(p.root,i),ref:n,ownerState:h},f))});wQ.muiSkipListHighlight=!0;const Pme=wQ;function nm({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 Ome=R.createContext(void 0),Bz=Ome;function yf(){return R.useContext(Bz)}function _Q(e){return C.jsx(oce,$({},e,{defaultTheme:sk,themeId:Mp}))}function cH(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function yC(e,t=!1){return e&&(cH(e.value)&&e.value!==""||t&&cH(e.defaultValue)&&e.defaultValue!=="")}function Mme(e){return e.startAdornment}function Dme(e){return Ct("MuiInputBase",e)}const Lme=It("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),Xg=Lme,Nme=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","slotProps","slots","startAdornment","type","value"],Lk=(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${De(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Nk=(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]},Bme=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:o,focused:s,formControl:a,fullWidth:c,hiddenLabel:u,multiline:f,readOnly:h,size:p,startAdornment:g,type:v}=e,y={root:["root",`color${De(n)}`,r&&"disabled",i&&"error",c&&"fullWidth",s&&"focused",a&&"formControl",p&&p!=="medium"&&`size${De(p)}`,f&&"multiline",g&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",h&&"readOnly"],input:["input",r&&"disabled",v==="search"&&"inputTypeSearch",f&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",o&&"inputAdornedEnd",h&&"readOnly"]};return At(y,Dme,t)},Bk=Ce("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Lk})(({theme:e,ownerState:t})=>$({},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",[`&.${Xg.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&$({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),$k=Ce("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Nk})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=$({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},o=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.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%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${Xg.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":o,"&:focus::-moz-placeholder":o,"&:focus:-ms-input-placeholder":o,"&:focus::-ms-input-placeholder":o},[`&.${Xg.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),$me=C.jsx(_Q,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),Fme=R.forwardRef(function(t,n){var r;const i=Rt({props:t,name:"MuiInputBase"}),{"aria-describedby":o,autoComplete:s,autoFocus:a,className:c,components:u={},componentsProps:f={},defaultValue:h,disabled:p,disableInjectingGlobalStyles:g,endAdornment:v,fullWidth:y=!1,id:S,inputComponent:w="input",inputProps:b={},inputRef:x,maxRows:E,minRows:I,multiline:A=!1,name:k,onBlur:O,onChange:L,onClick:N,onFocus:H,onKeyDown:G,onKeyUp:z,placeholder:D,readOnly:F,renderSuffix:j,rows:V,slotProps:W={},slots:K={},startAdornment:X,type:Q="text",value:ie}=i,ce=Ne(i,Nme),ue=b.value!=null?b.value:ie,{current:se}=R.useRef(ue!=null),J=R.useRef(),ae=R.useCallback(Fe=>{},[]),le=Tr(J,x,b.ref,ae),[he,pe]=R.useState(!1),ve=yf(),ye=nm({props:i,muiFormControl:ve,states:["color","disabled","error","hiddenLabel","size","required","filled"]});ye.focused=ve?ve.focused:he,R.useEffect(()=>{!ve&&p&&he&&(pe(!1),O&&O())},[ve,p,he,O]);const xe=ve&&ve.onFilled,me=ve&&ve.onEmpty,be=R.useCallback(Fe=>{yC(Fe)?xe&&xe():me&&me()},[xe,me]);jo(()=>{se&&be({value:ue})},[ue,be,se]);const Ze=Fe=>{if(ye.disabled){Fe.stopPropagation();return}H&&H(Fe),b.onFocus&&b.onFocus(Fe),ve&&ve.onFocus?ve.onFocus(Fe):pe(!0)},Xe=Fe=>{O&&O(Fe),b.onBlur&&b.onBlur(Fe),ve&&ve.onBlur?ve.onBlur(Fe):pe(!1)},ct=(Fe,...Be)=>{if(!se){const Pt=Fe.target||J.current;if(Pt==null)throw new Error(Zd(1));be({value:Pt.value})}b.onChange&&b.onChange(Fe,...Be),L&&L(Fe,...Be)};R.useEffect(()=>{be(J.current)},[]);const Bt=Fe=>{J.current&&Fe.currentTarget===Fe.target&&J.current.focus(),N&&N(Fe)};let Pe=w,ze=b;A&&Pe==="input"&&(V?ze=$({type:void 0,minRows:V,maxRows:V},ze):ze=$({type:void 0,maxRows:E,minRows:I},ze),Pe=Sme);const st=Fe=>{be(Fe.animationName==="mui-auto-fill-cancel"?J.current:{value:"x"})};R.useEffect(()=>{ve&&ve.setAdornedStart(!!X)},[ve,X]);const gt=$({},i,{color:ye.color||"primary",disabled:ye.disabled,endAdornment:v,error:ye.error,focused:ye.focused,formControl:ve,fullWidth:y,hiddenLabel:ye.hiddenLabel,multiline:A,size:ye.size,startAdornment:X,type:Q}),vt=Bme(gt),_e=K.root||u.Root||Bk,je=W.root||f.root||{},Ke=K.input||u.Input||$k;return ze=$({},ze,(r=W.input)!=null?r:f.input),C.jsxs(R.Fragment,{children:[!g&&$me,C.jsxs(_e,$({},je,!rc(_e)&&{ownerState:$({},gt,je.ownerState)},{ref:n,onClick:Bt},ce,{className:Ue(vt.root,je.className,c,F&&"MuiInputBase-readOnly"),children:[X,C.jsx(Bz.Provider,{value:null,children:C.jsx(Ke,$({ownerState:gt,"aria-invalid":ye.error,"aria-describedby":o,autoComplete:s,autoFocus:a,defaultValue:h,disabled:ye.disabled,id:S,onAnimationStart:st,name:k,placeholder:D,readOnly:F,required:ye.required,rows:V,value:ue,onKeyDown:G,onKeyUp:z,type:Q},ze,!rc(Ke)&&{as:Pe,ownerState:$({},gt,ze.ownerState)},{ref:le,className:Ue(vt.input,ze.className,F&&"MuiInputBase-readOnly"),onBlur:Xe,onChange:ct,onFocus:Ze}))}),v,j?j($({},ye,{startAdornment:X})):null]}))]})}),Fk=Fme;function zme(e){return Ct("MuiInput",e)}const jme=$({},Xg,It("MuiInput",["root","underline","input"])),Ib=jme;function Ume(e){return Ct("MuiOutlinedInput",e)}const Hme=$({},Xg,It("MuiOutlinedInput",["root","notchedOutline","input"])),id=Hme;function Wme(e){return Ct("MuiFilledInput",e)}const Gme=$({},Xg,It("MuiFilledInput",["root","underline","input"])),Uh=Gme,Vme=Ft(C.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),qme=Ft(C.jsx("path",{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"}),"Person");function Xme(e){return Ct("MuiAvatar",e)}It("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);const Yme=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],Kme=e=>{const{classes:t,variant:n,colorDefault:r}=e;return At({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},Xme,t)},Qme=Ce("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},t.variant==="rounded"&&{borderRadius:(e.vars||e).shape.borderRadius},t.variant==="square"&&{borderRadius:0},t.colorDefault&&$({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:{backgroundColor:e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[600]}))),Jme=Ce("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),Zme=Ce(qme,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function ege({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,o]=R.useState(!1);return R.useEffect(()=>{if(!n&&!r)return;o(!1);let s=!0;const a=new Image;return a.onload=()=>{s&&o("loaded")},a.onerror=()=>{s&&o("error")},a.crossOrigin=e,a.referrerPolicy=t,a.src=n,r&&(a.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const tge=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiAvatar"}),{alt:i,children:o,className:s,component:a="div",imgProps:c,sizes:u,src:f,srcSet:h,variant:p="circular"}=r,g=Ne(r,Yme);let v=null;const y=ege($({},c,{src:f,srcSet:h})),S=f||h,w=S&&y!=="error",b=$({},r,{colorDefault:!w,component:a,variant:p}),x=Kme(b);return w?v=C.jsx(Jme,$({alt:i,srcSet:h,src:f,sizes:u,ownerState:b,className:x.img},c)):o!=null?v=o:S&&i?v=i[0]:v=C.jsx(Zme,{ownerState:b,className:x.fallback}),C.jsx(Qme,$({as:a,ownerState:b,className:Ue(x.root,s),ref:n},g,{children:v}))}),nge=tge,rge=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],ige={entering:{opacity:1},entered:{opacity:1}},oge=R.forwardRef(function(t,n){const r=Ln(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:a,easing:c,in:u,onEnter:f,onEntered:h,onEntering:p,onExit:g,onExited:v,onExiting:y,style:S,timeout:w=i,TransitionComponent:b=kz}=t,x=Ne(t,rge),E=R.useRef(null),I=Tr(E,a.ref,n),A=D=>F=>{if(D){const j=E.current;F===void 0?D(j):D(j,F)}},k=A(p),O=A((D,F)=>{aQ(D);const j=Hg({style:S,timeout:w,easing:c},{mode:"enter"});D.style.webkitTransition=r.transitions.create("opacity",j),D.style.transition=r.transitions.create("opacity",j),f&&f(D,F)}),L=A(h),N=A(y),H=A(D=>{const F=Hg({style:S,timeout:w,easing:c},{mode:"exit"});D.style.webkitTransition=r.transitions.create("opacity",F),D.style.transition=r.transitions.create("opacity",F),g&&g(D)}),G=A(v),z=D=>{o&&o(E.current,D)};return C.jsx(b,$({appear:s,in:u,nodeRef:E,onEnter:O,onEntered:L,onEntering:k,onExit:H,onExited:G,onExiting:N,addEndListener:z,timeout:w},x,{children:(D,F)=>R.cloneElement(a,$({style:$({opacity:0,visibility:D==="exited"&&!u?"hidden":void 0},ige[D],S,a.props.style),ref:I},F))}))}),Hp=oge;function sge(e){return Ct("MuiBackdrop",e)}It("MuiBackdrop",["root","invisible"]);const age=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],lge=e=>{const{classes:t,invisible:n}=e;return At({root:["root",n&&"invisible"]},sge,t)},cge=Ce("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>$({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"},e.invisible&&{backgroundColor:"transparent"})),uge=R.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiBackdrop"}),{children:a,className:c,component:u="div",components:f={},componentsProps:h={},invisible:p=!1,open:g,slotProps:v={},slots:y={},TransitionComponent:S=Hp,transitionDuration:w}=s,b=Ne(s,age),x=$({},s,{component:u,invisible:p}),E=lge(x),I=(r=v.root)!=null?r:h.root;return C.jsx(S,$({in:g,timeout:w},b,{children:C.jsx(cge,$({"aria-hidden":!0},I,{as:(i=(o=y.root)!=null?o:f.Root)!=null?i:u,className:Ue(E.root,c,I==null?void 0:I.className),ownerState:$({},x,I==null?void 0:I.ownerState),classes:E,ref:n,children:a}))}))}),zk=uge,dge=M4(),fge=cce({themeId:Mp,defaultTheme:dge,defaultClassName:"MuiBox-root",generateClassName:EX.generate}),ht=fge;function hge(e){return Ct("MuiButton",e)}const pge=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","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),O_=pge,mge=R.createContext({}),gge=mge,vge=R.createContext(void 0),yge=vge,bge=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],xge=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:o,classes:s}=e,a={root:["root",o,`${o}${De(t)}`,`size${De(i)}`,`${o}Size${De(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${De(i)}`],endIcon:["endIcon",`iconSize${De(i)}`]},c=At(a,hge,s);return $({},s,c)},SQ=e=>$({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),wge=Ce(Ku,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${De(n.color)}`],t[`size${De(n.size)}`],t[`${n.variant}Size${De(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],o=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return $({},e.typography.button,{minWidth:64,padding:"6px 16px",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",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:o,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${O_.focusVisible}`]:$({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${O_.disabled}`]:$({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${kn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${O_.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${O_.disabled}`]:{boxShadow:"none"}}),_ge=Ce("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${De(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},SQ(e))),Sge=Ce("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${De(n.size)}`]]}})(({ownerState:e})=>$({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},SQ(e))),Ege=R.forwardRef(function(t,n){const r=R.useContext(gge),i=R.useContext(yge),o=g4(r,t),s=Rt({props:o,name:"MuiButton"}),{children:a,color:c="primary",component:u="button",className:f,disabled:h=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:v,focusVisibleClassName:y,fullWidth:S=!1,size:w="medium",startIcon:b,type:x,variant:E="text"}=s,I=Ne(s,bge),A=$({},s,{color:c,component:u,disabled:h,disableElevation:p,disableFocusRipple:g,fullWidth:S,size:w,type:x,variant:E}),k=xge(A),O=b&&C.jsx(_ge,{className:k.startIcon,ownerState:A,children:b}),L=v&&C.jsx(Sge,{className:k.endIcon,ownerState:A,children:v}),N=i||"";return C.jsxs(wge,$({ownerState:A,className:Ue(r.className,k.root,f,N),component:u,disabled:h,focusRipple:!g,focusVisibleClassName:Ue(k.focusVisible,y),ref:n,type:x},I,{classes:k,children:[O,a,L]}))}),$z=Ege;function Cge(e){return Ct("MuiCard",e)}It("MuiCard",["root"]);const Tge=["className","raised"],kge=e=>{const{classes:t}=e;return At({root:["root"]},Cge,t)},Age=Ce(Cv,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),Ige=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=r,s=Ne(r,Tge),a=$({},r,{raised:o}),c=kge(a);return C.jsx(Age,$({className:Ue(c.root,i),elevation:o?8:void 0,ref:n,ownerState:a},s))}),Rge=Ige;function Pge(e){return Ct("PrivateSwitchBase",e)}It("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Oge=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],Mge=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,o={root:["root",n&&"checked",r&&"disabled",i&&`edge${De(i)}`],input:["input"]};return At(o,Pge,t)},Dge=Ce(Ku)(({ownerState:e})=>$({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),Lge=Ce("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),Nge=R.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:o,className:s,defaultChecked:a,disabled:c,disableFocusRipple:u=!1,edge:f=!1,icon:h,id:p,inputProps:g,inputRef:v,name:y,onBlur:S,onChange:w,onFocus:b,readOnly:x,required:E=!1,tabIndex:I,type:A,value:k}=t,O=Ne(t,Oge),[L,N]=o1({controlled:i,default:!!a,name:"SwitchBase",state:"checked"}),H=yf(),G=K=>{b&&b(K),H&&H.onFocus&&H.onFocus(K)},z=K=>{S&&S(K),H&&H.onBlur&&H.onBlur(K)},D=K=>{if(K.nativeEvent.defaultPrevented)return;const X=K.target.checked;N(X),w&&w(K,X)};let F=c;H&&typeof F>"u"&&(F=H.disabled);const j=A==="checkbox"||A==="radio",V=$({},t,{checked:L,disabled:F,disableFocusRipple:u,edge:f}),W=Mge(V);return C.jsxs(Dge,$({component:"span",className:Ue(W.root,s),centerRipple:!0,focusRipple:!u,disabled:F,tabIndex:null,role:void 0,onFocus:G,onBlur:z,ownerState:V,ref:n},O,{children:[C.jsx(Lge,$({autoFocus:r,checked:i,defaultChecked:a,className:W.input,disabled:F,id:j?p:void 0,name:y,onChange:D,readOnly:x,ref:v,required:E,ownerState:V,tabIndex:I,type:A},A==="checkbox"&&k===void 0?{}:{value:k},g)),L?o:h]}))}),EQ=Nge,Bge=Ft(C.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),$ge=Ft(C.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Fge=Ft(C.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function zge(e){return Ct("MuiCheckbox",e)}const jge=It("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),UL=jge,Uge=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],Hge=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,o={root:["root",n&&"indeterminate",`color${De(r)}`,`size${De(i)}`]},s=At(o,zge,t);return $({},t,s)},Wge=Ce(EQ,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,n.color!=="default"&&t[`color${De(n.color)}`]]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${UL.checked}, &.${UL.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${UL.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),Gge=C.jsx($ge,{}),Vge=C.jsx(Bge,{}),qge=C.jsx(Fge,{}),Xge=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiCheckbox"}),{checkedIcon:s=Gge,color:a="primary",icon:c=Vge,indeterminate:u=!1,indeterminateIcon:f=qge,inputProps:h,size:p="medium",className:g}=o,v=Ne(o,Uge),y=u?f:c,S=u?f:s,w=$({},o,{color:a,indeterminate:u,size:p}),b=Hge(w);return C.jsx(Wge,$({type:"checkbox",inputProps:$({"data-indeterminate":u},h),icon:R.cloneElement(y,{fontSize:(r=y.props.fontSize)!=null?r:p}),checkedIcon:R.cloneElement(S,{fontSize:(i=S.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:Ue(b.root,g)},v,{classes:b}))}),Yge=Xge;function Kge(e){return Ct("MuiCircularProgress",e)}It("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qge=["className","color","disableShrink","size","style","thickness","value","variant"];let jk=e=>e,uH,dH,fH,hH;const od=44,Jge=hf(uH||(uH=jk` 0% { transform: rotate(0deg); } @@ -140,7 +140,7 @@ Error generating stack: `+o.message+` 100% { transform: rotate(360deg); } -`)),Xge=df(lH||(lH=Fk` +`)),Zge=hf(dH||(dH=jk` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; @@ -155,11 +155,11 @@ Error generating stack: `+o.message+` stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } -`)),Yge=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${Le(r)}`],svg:["svg"],circle:["circle",`circle${Le(n)}`,i&&"circleDisableShrink"]};return At(o,Gge,t)},Kge=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&vv(cH||(cH=Fk` +`)),eve=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,o={root:["root",n,`color${De(r)}`],svg:["svg"],circle:["circle",`circle${De(n)}`,i&&"circleDisableShrink"]};return At(o,Kge,t)},tve=Ce("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${De(n.color)}`]]}})(({ownerState:e,theme:t})=>$({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&bv(fH||(fH=jk` animation: ${0} 1.4s linear infinite; - `),qge)),Qge=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),Jge=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Le(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&vv(uH||(uH=Fk` + `),Jge)),nve=Ce("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),rve=Ce("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${De(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>$({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&bv(hH||(hH=jk` animation: ${0} 1.4s ease-in-out infinite; - `),Xge)),Zge=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate"}=r,p=Ne(r,Vge),g=$({},r,{color:o,disableShrink:s,size:a,thickness:u,value:f,variant:h}),v=Yge(g),y={},S={},w={};if(h==="determinate"){const b=2*Math.PI*((id-u)/2);y.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return C.jsx(Kge,$({className:Ue(v.root,i),style:$({width:a,height:a},S,c),ownerState:g,ref:n,role:"progressbar"},w,p,{children:C.jsx(Qge,{className:v.svg,ownerState:g,viewBox:`${id/2} ${id/2} ${id} ${id}`,children:C.jsx(Jge,{className:v.circle,style:y,ownerState:g,cx:id,cy:id,r:(id-u)/2,fill:"none",strokeWidth:u})})}))}),Sw=Zge,eve=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),tve=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),nve=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var c;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(c=a.palette)==null?void 0:c.mode}});let i=$({html:eve(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},tve(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function rve(e){const t=Rt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(R.Fragment,{children:[C.jsx(xQ,{styles:i=>nve(i,r)}),n]})}function ive(e){return Ct("MuiModal",e)}It("MuiModal",["root","hidden","backdrop"]);const ove=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],sve=e=>{const{open:t,exited:n,classes:r}=e;return At({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},ive,r)},ave=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),lve=Ce(Dz,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),cve=R.forwardRef(function(t,n){var r,i,o,s,a,c;const u=Rt({name:"MuiModal",props:t}),{BackdropComponent:f=lve,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:v,container:y,component:S,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:I=!1,disablePortal:A=!1,disableRestoreFocus:k=!1,disableScrollLock:O=!1,hideBackdrop:D=!1,keepMounted:N=!1,onBackdropClick:H,open:G,slotProps:z,slots:L}=u,F=Ne(u,ove),j=$({},u,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:I,disablePortal:A,disableRestoreFocus:k,disableScrollLock:O,hideBackdrop:D,keepMounted:N}),{getRootProps:V,getBackdropProps:W,getTransitionProps:K,portalRef:X,isTopModal:Q,exited:ie,hasTransition:ce}=ame($({},j,{rootRef:n})),ue=$({},j,{exited:ie}),se=sve(ue),J={};if(v.props.tabIndex===void 0&&(J.tabIndex="-1"),ce){const{onEnter:xe,onExited:me}=K();J.onEnter=xe,J.onExited=me}const ae=(r=(i=L==null?void 0:L.root)!=null?i:w.Root)!=null?r:ave,le=(o=(s=L==null?void 0:L.backdrop)!=null?s:w.Backdrop)!=null?o:f,he=(a=z==null?void 0:z.root)!=null?a:b.root,pe=(c=z==null?void 0:z.backdrop)!=null?c:b.backdrop,ve=ti({elementType:ae,externalSlotProps:he,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:ue,className:Ue(p,he==null?void 0:he.className,se==null?void 0:se.root,!ue.open&&ue.exited&&(se==null?void 0:se.hidden))}),ye=ti({elementType:le,externalSlotProps:pe,additionalProps:h,getSlotProps:xe=>W($({},xe,{onClick:me=>{H&&H(me),xe!=null&&xe.onClick&&xe.onClick(me)}})),className:Ue(pe==null?void 0:pe.className,h==null?void 0:h.className,se==null?void 0:se.backdrop),ownerState:ue});return!N&&!G&&(!ce||ie)?null:C.jsx(gQ,{ref:X,container:y,disablePortal:A,children:C.jsxs(ae,$({},ve,{children:[!D&&f?C.jsx(le,$({},ye)):null,C.jsx(Nhe,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:Q,open:G,children:R.cloneElement(v,J)})]}))})}),SQ=cve;function uve(e){return Ct("MuiDialog",e)}const dve=It("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),jD=dve,fve=R.createContext({}),hve=fve,pve=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],mve=Ce(Dz,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),gve=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Le(n)}`],paper:["paper",`paperScroll${Le(n)}`,`paperWidth${Le(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return At(s,uve,t)},vve=Ce(SQ,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),yve=Ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Le(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),bve=Ce(Sv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Le(n.scroll)}`],t[`paperWidth${Le(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${jD.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${jD.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${jD.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),xve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialog"}),i=Dn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:S,onClose:w,open:b,PaperComponent:x=Sv,PaperProps:E={},scroll:I="paper",TransitionComponent:A=jp,transitionDuration:k=o,TransitionProps:O}=r,D=Ne(r,pve),N=$({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:I}),H=gve(N),G=R.useRef(),z=V=>{G.current=V.target===V.currentTarget},L=V=>{G.current&&(G.current=null,S&&S(V),w&&w(V,"backdropClick"))},F=d4(a),j=R.useMemo(()=>({titleId:F}),[F]);return C.jsx(vve,$({className:Ue(H.root,h),closeAfterTransition:!0,components:{Backdrop:mve},componentsProps:{backdrop:$({transitionDuration:k,as:c},u)},disableEscapeKeyDown:p,onClose:w,open:b,ref:n,onClick:L,ownerState:N},D,{children:C.jsx(A,$({appear:!0,in:b,timeout:k,role:"presentation"},O,{children:C.jsx(yve,{className:Ue(H.container),onMouseDown:z,ownerState:N,children:C.jsx(bve,$({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:Ue(H.paper,E.className),ownerState:N,children:C.jsx(hve.Provider,{value:j,children:f})}))})}))}))}),wve=xve;function _ve(e){return Ct("MuiDivider",e)}const Sve=It("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dH=Sve,Eve=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Cve=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:c}=e;return At({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},_ve,r)},Tve=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]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:kn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),kve=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),EQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:c=!1,light:u=!1,orientation:f="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,v=Ne(r,Eve),y=$({},r,{absolute:i,component:a,flexItem:c,light:u,orientation:f,role:h,textAlign:p,variant:g}),S=Cve(y);return C.jsx(Tve,$({as:a,className:Ue(S.root,s),role:h,ref:n,ownerState:y},v,{children:o?C.jsx(kve,{className:S.wrapper,ownerState:y,children:o}):null}))});EQ.muiSkipListHighlight=!0;const Ku=EQ,Ave=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Ive=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},Fme,t);return $({},t,i)},Rve=Ce(Nk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"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}},[`&.${zh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${zh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${zh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${zh.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})`:i}`,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(.${zh.disabled}, .${zh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${zh.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Pve=Ce(Bk,{name:"MuiFilledInput",slot:"Input",overridesResolver:Dk})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),CQ=R.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=a,S=Ne(a,Ave),w=$({},a,{fullWidth:f,inputComponent:h,multiline:p,type:y}),b=Ive(a),x={root:{ownerState:w},input:{ownerState:w}},E=g??u?ns(g??u,x):x,I=(r=(i=v.root)!=null?i:c.Root)!=null?r:Rve,A=(o=(s=v.input)!=null?s:c.Input)!=null?o:Pve;return C.jsx($k,$({slots:{root:I,input:A},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:y},S,{classes:b}))});CQ.muiName="Input";const TQ=CQ;function Ove(e){return Ct("MuiFormControl",e)}It("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const Mve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Lve=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${Le(n)}`,r&&"fullWidth"]};return At(i,Ove,t)},Dve=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${Le(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Nve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:v=!1,size:y="medium",variant:S="outlined"}=r,w=Ne(r,Mve),b=$({},r,{color:s,component:a,disabled:c,error:u,fullWidth:h,hiddenLabel:p,margin:g,required:v,size:y,variant:S}),x=Lve(b),[E,I]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,L=>{if(!KS(L,["Input","Select"]))return;const F=KS(L,["Select"])?L.props.input:L;F&&Ame(F.props)&&(z=!0)}),z}),[A,k]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,L=>{KS(L,["Input","Select"])&&(vC(L.props,!0)||vC(L.props.inputProps,!0))&&(z=!0)}),z}),[O,D]=R.useState(!1);c&&O&&D(!1);const N=f!==void 0&&!c?f:O;let H;const G=R.useMemo(()=>({adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:u,filled:A,focused:N,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{D(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{D(!0)},registerEffect:H,required:v,variant:S}),[E,s,c,u,A,N,h,p,H,v,y,S]);return C.jsx(Lz.Provider,{value:G,children:C.jsx(Dve,$({as:a,ownerState:b,className:Ue(x.root,o),ref:n},w,{children:i}))})}),Bve=Nve,$ve=Mce({createStyledComponent:Ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Rt({props:e,name:"MuiStack"})}),Up=$ve;function Fve(e){return Ct("MuiFormControlLabel",e)}const zve=It("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),sx=zve,jve=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],Uve=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${Le(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return At(s,Fve,t)},Hve=Ce("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${sx.label}`]:t.label},t.root,t[`labelPlacement${Le(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${sx.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${sx.label}`]:{[`&.${sx.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Wve=Ce("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${sx.error}`]:{color:(e.vars||e).palette.error.main}})),Gve=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:u,disableTypography:f,label:h,labelPlacement:p="end",required:g,slotProps:v={}}=o,y=Ne(o,jve),S=gf(),w=(r=u??c.props.disabled)!=null?r:S==null?void 0:S.disabled,b=g??c.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(D=>{typeof c.props[D]>"u"&&typeof o[D]<"u"&&(x[D]=o[D])});const E=tm({props:o,muiFormControl:S,states:["error"]}),I=$({},o,{disabled:w,labelPlacement:p,required:b,error:E.error}),A=Uve(I),k=(i=v.typography)!=null?i:a.typography;let O=h;return O!=null&&O.type!==jt&&!f&&(O=C.jsx(jt,$({component:"span"},k,{className:Ue(A.label,k==null?void 0:k.className),children:O}))),C.jsxs(Hve,$({className:Ue(A.root,s),ownerState:I,ref:n},y,{children:[R.cloneElement(c,x),b?C.jsxs(Up,{direction:"row",alignItems:"center",children:[O,C.jsxs(Wve,{ownerState:I,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):O]}))}),Vve=Gve;function qve(e){return Ct("MuiFormHelperText",e)}const Xve=It("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),fH=Xve;var hH;const Yve=["children","className","component","disabled","error","filled","focused","margin","required","variant"],Kve=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${Le(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return At(u,qve,t)},Qve=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Le(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${fH.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${fH.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),Jve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,a=Ne(r,Yve),c=gf(),u=tm({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=$({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=Kve(f);return C.jsx(Qve,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:i===" "?hH||(hH=C.jsx("span",{className:"notranslate",children:"​"})):i}))}),Zve=Jve;function eye(e){return Ct("MuiFormLabel",e)}const tye=It("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),Nx=tye,nye=["children","className","color","component","disabled","error","filled","focused","required"],rye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,c={root:["root",`color${Le(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return At(c,eye,t)},iye=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${Nx.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${Nx.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Nx.error}`]:{color:(e.vars||e).palette.error.main}})),oye=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${Nx.error}`]:{color:(e.vars||e).palette.error.main}})),sye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,a=Ne(r,nye),c=gf(),u=tm({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=$({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=rye(f);return C.jsxs(iye,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:[i,u.required&&C.jsxs(oye,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),aye=sye,lye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function ZF(e){return`scale(${e}, ${e**2})`}const cye={entering:{opacity:1,transform:ZF(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),kQ=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:c,onEntered:u,onEntering:f,onExit:h,onExited:p,onExiting:g,style:v,timeout:y="auto",TransitionComponent:S=Ez}=t,w=Ne(t,lye),b=R.useRef(),x=R.useRef(),E=Dn(),I=R.useRef(null),A=Tr(I,o.ref,n),k=F=>j=>{if(F){const V=I.current;j===void 0?F(V):F(V,j)}},O=k(f),D=k((F,j)=>{oQ(F);const{duration:V,delay:W,easing:K}=Ug({style:v,timeout:y,easing:s},{mode:"enter"});let X;y==="auto"?(X=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=X):X=V,F.style.transition=[E.transitions.create("opacity",{duration:X,delay:W}),E.transitions.create("transform",{duration:UD?X:X*.666,delay:W,easing:K})].join(","),c&&c(F,j)}),N=k(u),H=k(g),G=k(F=>{const{duration:j,delay:V,easing:W}=Ug({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=K):K=j,F.style.transition=[E.transitions.create("opacity",{duration:K,delay:V}),E.transitions.create("transform",{duration:UD?K:K*.666,delay:UD?V:V||K*.333,easing:W})].join(","),F.style.opacity=0,F.style.transform=ZF(.75),h&&h(F)}),z=k(p),L=F=>{y==="auto"&&(b.current=setTimeout(F,x.current||0)),r&&r(I.current,F)};return R.useEffect(()=>()=>{clearTimeout(b.current)},[]),C.jsx(S,$({appear:i,in:a,nodeRef:I,onEnter:D,onEntered:N,onEntering:O,onExit:G,onExited:z,onExiting:H,addEndListener:L,timeout:y==="auto"?null:y},w,{children:(F,j)=>R.cloneElement(o,$({style:$({opacity:0,transform:ZF(.75),visibility:F==="exited"&&!a?"hidden":void 0},cye[F],v,o.props.style),ref:A},j))}))});kQ.muiSupportAuto=!0;const yC=kQ;function uye(e,t,n,r,i){const[o,s]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return jo(()=>{let a=!0;if(!n)return;const c=n(e),u=()=>{a&&s(c.matches)};return u(),c.addListener(u),()=>{a=!1,c.removeListener(u)}},[e,n]),o}const AQ=zE["useSyncExternalStore"];function dye(e,t,n,r,i){const o=R.useCallback(()=>t,[t]),s=R.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[a,c]=R.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return AQ(c,a,s)}function fye(e,t={}){const n=nk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=YX({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(AQ!==void 0?dye:uye)(c,i,o,s,a)}const hye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],pye=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},Dme,t);return $({},t,i)},mye=Ce(Nk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${kb.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${kb.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,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(.${kb.disabled}, .${kb.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${kb.disabled}:before`]:{borderBottomStyle:"dotted"}})}),gye=Ce(Bk,{name:"MuiInput",slot:"Input",overridesResolver:Dk})({}),IQ=R.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:S="text"}=a,w=Ne(a,hye),b=pye(a),E={root:{ownerState:{disableUnderline:c}}},I=v??f?ns(v??f,E):E,A=(r=(i=y.root)!=null?i:u.Root)!=null?r:mye,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:gye;return C.jsx($k,$({slots:{root:A,input:k},slotProps:I,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:S},w,{classes:b}))});IQ.muiName="Input";const RQ=IQ;function vye(e){return Ct("MuiInputLabel",e)}It("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const yye=["disableAnimation","margin","shrink","variant","className"],bye=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,c={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${Le(r)}`,s],asterisk:[a&&"asterisk"]},u=At(c,vye,t);return $({},t,u)},xye=Ce(aye,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Nx.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),wye=R.forwardRef(function(t,n){const r=Rt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,a=Ne(r,yye),c=gf();let u=o;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const f=tm({props:r,muiFormControl:c,states:["size","variant","required"]}),h=$({},r,{disableAnimation:i,formControl:c,shrink:u,size:f.size,variant:f.variant,required:f.required}),p=bye(h);return C.jsx(xye,$({"data-shrink":u,ownerState:h,ref:n,className:Ue(p.root,s)},a,{classes:p}))}),_ye=wye;function Sye(e){return Ct("MuiLinearProgress",e)}It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Eye=["className","color","value","valueBuffer","variant"];let Ev=e=>e,pH,mH,gH,vH,yH,bH;const e3=4,Cye=df(pH||(pH=Ev` + `),Zge)),ive=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiCircularProgress"}),{className:i,color:o="primary",disableShrink:s=!1,size:a=40,style:c,thickness:u=3.6,value:f=0,variant:h="indeterminate"}=r,p=Ne(r,Qge),g=$({},r,{color:o,disableShrink:s,size:a,thickness:u,value:f,variant:h}),v=eve(g),y={},S={},w={};if(h==="determinate"){const b=2*Math.PI*((od-u)/2);y.strokeDasharray=b.toFixed(3),w["aria-valuenow"]=Math.round(f),y.strokeDashoffset=`${((100-f)/100*b).toFixed(3)}px`,S.transform="rotate(-90deg)"}return C.jsx(tve,$({className:Ue(v.root,i),style:$({width:a,height:a},S,c),ownerState:g,ref:n,role:"progressbar"},w,p,{children:C.jsx(nve,{className:v.svg,ownerState:g,viewBox:`${od/2} ${od/2} ${od} ${od}`,children:C.jsx(rve,{className:v.circle,style:y,ownerState:g,cx:od,cy:od,r:(od-u)/2,fill:"none",strokeWidth:u})})}))}),Ew=ive,ove=(e,t)=>$({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),sve=e=>$({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),ave=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,a])=>{var c;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(c=a.palette)==null?void 0:c.mode}});let i=$({html:ove(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:$({margin:0},sve(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const o=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return o&&(i=[i,o]),i};function lve(e){const t=Rt({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return C.jsxs(R.Fragment,{children:[C.jsx(_Q,{styles:i=>ave(i,r)}),n]})}function cve(e){return Ct("MuiModal",e)}It("MuiModal",["root","hidden","backdrop"]);const uve=["BackdropComponent","BackdropProps","classes","className","closeAfterTransition","children","container","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","onBackdropClick","onClose","onTransitionEnter","onTransitionExited","open","slotProps","slots","theme"],dve=e=>{const{open:t,exited:n,classes:r}=e;return At({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},cve,r)},fve=Ce("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>$({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),hve=Ce(zk,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),pve=R.forwardRef(function(t,n){var r,i,o,s,a,c;const u=Rt({name:"MuiModal",props:t}),{BackdropComponent:f=hve,BackdropProps:h,className:p,closeAfterTransition:g=!1,children:v,container:y,component:S,components:w={},componentsProps:b={},disableAutoFocus:x=!1,disableEnforceFocus:E=!1,disableEscapeKeyDown:I=!1,disablePortal:A=!1,disableRestoreFocus:k=!1,disableScrollLock:O=!1,hideBackdrop:L=!1,keepMounted:N=!1,onBackdropClick:H,open:G,slotProps:z,slots:D}=u,F=Ne(u,uve),j=$({},u,{closeAfterTransition:g,disableAutoFocus:x,disableEnforceFocus:E,disableEscapeKeyDown:I,disablePortal:A,disableRestoreFocus:k,disableScrollLock:O,hideBackdrop:L,keepMounted:N}),{getRootProps:V,getBackdropProps:W,getTransitionProps:K,portalRef:X,isTopModal:Q,exited:ie,hasTransition:ce}=fme($({},j,{rootRef:n})),ue=$({},j,{exited:ie}),se=dve(ue),J={};if(v.props.tabIndex===void 0&&(J.tabIndex="-1"),ce){const{onEnter:xe,onExited:me}=K();J.onEnter=xe,J.onExited=me}const ae=(r=(i=D==null?void 0:D.root)!=null?i:w.Root)!=null?r:fve,le=(o=(s=D==null?void 0:D.backdrop)!=null?s:w.Backdrop)!=null?o:f,he=(a=z==null?void 0:z.root)!=null?a:b.root,pe=(c=z==null?void 0:z.backdrop)!=null?c:b.backdrop,ve=ti({elementType:ae,externalSlotProps:he,externalForwardedProps:F,getSlotProps:V,additionalProps:{ref:n,as:S},ownerState:ue,className:Ue(p,he==null?void 0:he.className,se==null?void 0:se.root,!ue.open&&ue.exited&&(se==null?void 0:se.hidden))}),ye=ti({elementType:le,externalSlotProps:pe,additionalProps:h,getSlotProps:xe=>W($({},xe,{onClick:me=>{H&&H(me),xe!=null&&xe.onClick&&xe.onClick(me)}})),className:Ue(pe==null?void 0:pe.className,h==null?void 0:h.className,se==null?void 0:se.backdrop),ownerState:ue});return!N&&!G&&(!ce||ie)?null:C.jsx(yQ,{ref:X,container:y,disablePortal:A,children:C.jsxs(ae,$({},ve,{children:[!L&&f?C.jsx(le,$({},ye)):null,C.jsx(jhe,{disableEnforceFocus:E,disableAutoFocus:x,disableRestoreFocus:k,isEnabled:Q,open:G,children:R.cloneElement(v,J)})]}))})}),CQ=pve;function mve(e){return Ct("MuiDialog",e)}const gve=It("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),HL=gve,vve=R.createContext({}),yve=vve,bve=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],xve=Ce(zk,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),wve=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${De(n)}`],paper:["paper",`paperScroll${De(n)}`,`paperWidth${De(String(r))}`,i&&"paperFullWidth",o&&"paperFullScreen"]};return At(s,mve,t)},_ve=Ce(CQ,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),Sve=Ce("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${De(n.scroll)}`]]}})(({ownerState:e})=>$({height:"100%","@media print":{height:"auto"},outline:0},e.scroll==="paper"&&{display:"flex",justifyContent:"center",alignItems:"center"},e.scroll==="body"&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),Eve=Ce(Cv,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${De(n.scroll)}`],t[`paperWidth${De(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>$({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},t.scroll==="paper"&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},t.scroll==="body"&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!t.maxWidth&&{maxWidth:"calc(100% - 64px)"},t.maxWidth==="xs"&&{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${HL.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.maxWidth&&t.maxWidth!=="xs"&&{maxWidth:`${e.breakpoints.values[t.maxWidth]}${e.breakpoints.unit}`,[`&.${HL.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t.maxWidth]+32*2)]:{maxWidth:"calc(100% - 64px)"}}},t.fullWidth&&{width:"calc(100% - 64px)"},t.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${HL.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Cve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDialog"}),i=Ln(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":a,BackdropComponent:c,BackdropProps:u,children:f,className:h,disableEscapeKeyDown:p=!1,fullScreen:g=!1,fullWidth:v=!1,maxWidth:y="sm",onBackdropClick:S,onClose:w,open:b,PaperComponent:x=Cv,PaperProps:E={},scroll:I="paper",TransitionComponent:A=Hp,transitionDuration:k=o,TransitionProps:O}=r,L=Ne(r,bve),N=$({},r,{disableEscapeKeyDown:p,fullScreen:g,fullWidth:v,maxWidth:y,scroll:I}),H=wve(N),G=R.useRef(),z=V=>{G.current=V.target===V.currentTarget},D=V=>{G.current&&(G.current=null,S&&S(V),w&&w(V,"backdropClick"))},F=p4(a),j=R.useMemo(()=>({titleId:F}),[F]);return C.jsx(_ve,$({className:Ue(H.root,h),closeAfterTransition:!0,components:{Backdrop:xve},componentsProps:{backdrop:$({transitionDuration:k,as:c},u)},disableEscapeKeyDown:p,onClose:w,open:b,ref:n,onClick:D,ownerState:N},L,{children:C.jsx(A,$({appear:!0,in:b,timeout:k,role:"presentation"},O,{children:C.jsx(Sve,{className:Ue(H.container),onMouseDown:z,ownerState:N,children:C.jsx(Eve,$({as:x,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":F},E,{className:Ue(H.paper,E.className),ownerState:N,children:C.jsx(yve.Provider,{value:j,children:f})}))})}))}))}),Tve=Cve;function kve(e){return Ct("MuiDivider",e)}const Ave=It("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),pH=Ave,Ive=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],Rve=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:o,orientation:s,textAlign:a,variant:c}=e;return At({root:["root",t&&"absolute",c,o&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",a==="right"&&s!=="vertical"&&"textAlignRight",a==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},kve,r)},Pve=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]}})(({theme:e,ownerState:t})=>$({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:kn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>$({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>$({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>$({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),Ove=Ce("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>$({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),TQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiDivider"}),{absolute:i=!1,children:o,className:s,component:a=o?"div":"hr",flexItem:c=!1,light:u=!1,orientation:f="horizontal",role:h=a!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,v=Ne(r,Ive),y=$({},r,{absolute:i,component:a,flexItem:c,light:u,orientation:f,role:h,textAlign:p,variant:g}),S=Rve(y);return C.jsx(Pve,$({as:a,className:Ue(S.root,s),role:h,ref:n,ownerState:y},v,{children:o?C.jsx(Ove,{className:S.wrapper,ownerState:y,children:o}):null}))});TQ.muiSkipListHighlight=!0;const Qu=TQ,Mve=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],Dve=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},Wme,t);return $({},t,i)},Lve=Ce(Bk,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",o=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",a=r?"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}},[`&.${Uh.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:o},[`&.${Uh.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:a}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,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"},[`&.${Uh.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Uh.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})`:i}`,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(.${Uh.disabled}, .${Uh.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${Uh.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&$({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),Nve=Ce($k,{name:"MuiFilledInput",slot:"Input",overridesResolver:Nk})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9})),kQ=R.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiFilledInput"}),{components:c={},componentsProps:u,fullWidth:f=!1,inputComponent:h="input",multiline:p=!1,slotProps:g,slots:v={},type:y="text"}=a,S=Ne(a,Mve),w=$({},a,{fullWidth:f,inputComponent:h,multiline:p,type:y}),b=Dve(a),x={root:{ownerState:w},input:{ownerState:w}},E=g??u?ns(g??u,x):x,I=(r=(i=v.root)!=null?i:c.Root)!=null?r:Lve,A=(o=(s=v.input)!=null?s:c.Input)!=null?o:Nve;return C.jsx(Fk,$({slots:{root:I,input:A},componentsProps:E,fullWidth:f,inputComponent:h,multiline:p,ref:n,type:y},S,{classes:b}))});kQ.muiName="Input";const AQ=kQ;function Bve(e){return Ct("MuiFormControl",e)}It("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $ve=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],Fve=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${De(n)}`,r&&"fullWidth"]};return At(i,Bve,t)},zve=Ce("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,t[`margin${De(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>$({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),jve=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormControl"}),{children:i,className:o,color:s="primary",component:a="div",disabled:c=!1,error:u=!1,focused:f,fullWidth:h=!1,hiddenLabel:p=!1,margin:g="none",required:v=!1,size:y="medium",variant:S="outlined"}=r,w=Ne(r,$ve),b=$({},r,{color:s,component:a,disabled:c,error:u,fullWidth:h,hiddenLabel:p,margin:g,required:v,size:y,variant:S}),x=Fve(b),[E,I]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,D=>{if(!QS(D,["Input","Select"]))return;const F=QS(D,["Select"])?D.props.input:D;F&&Mme(F.props)&&(z=!0)}),z}),[A,k]=R.useState(()=>{let z=!1;return i&&R.Children.forEach(i,D=>{QS(D,["Input","Select"])&&(yC(D.props,!0)||yC(D.props.inputProps,!0))&&(z=!0)}),z}),[O,L]=R.useState(!1);c&&O&&L(!1);const N=f!==void 0&&!c?f:O;let H;const G=R.useMemo(()=>({adornedStart:E,setAdornedStart:I,color:s,disabled:c,error:u,filled:A,focused:N,fullWidth:h,hiddenLabel:p,size:y,onBlur:()=>{L(!1)},onEmpty:()=>{k(!1)},onFilled:()=>{k(!0)},onFocus:()=>{L(!0)},registerEffect:H,required:v,variant:S}),[E,s,c,u,A,N,h,p,H,v,y,S]);return C.jsx(Bz.Provider,{value:G,children:C.jsx(zve,$({as:a,ownerState:b,className:Ue(x.root,o),ref:n},w,{children:i}))})}),Uve=jve,Hve=$ce({createStyledComponent:Ce("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>Rt({props:e,name:"MuiStack"})}),nf=Hve;function Wve(e){return Ct("MuiFormControlLabel",e)}const Gve=It("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),lx=Gve,Vve=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],qve=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:o}=e,s={root:["root",n&&"disabled",`labelPlacement${De(r)}`,i&&"error",o&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return At(s,Wve,t)},Xve=Ce("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${lx.label}`]:t.label},t.root,t[`labelPlacement${De(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>$({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${lx.disabled}`]:{cursor:"default"}},t.labelPlacement==="start"&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},t.labelPlacement==="top"&&{flexDirection:"column-reverse",marginLeft:16},t.labelPlacement==="bottom"&&{flexDirection:"column",marginLeft:16},{[`& .${lx.label}`]:{[`&.${lx.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),Yve=Ce("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${lx.error}`]:{color:(e.vars||e).palette.error.main}})),Kve=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:a={},control:c,disabled:u,disableTypography:f,label:h,labelPlacement:p="end",required:g,slotProps:v={}}=o,y=Ne(o,Vve),S=yf(),w=(r=u??c.props.disabled)!=null?r:S==null?void 0:S.disabled,b=g??c.props.required,x={disabled:w,required:b};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof c.props[L]>"u"&&typeof o[L]<"u"&&(x[L]=o[L])});const E=nm({props:o,muiFormControl:S,states:["error"]}),I=$({},o,{disabled:w,labelPlacement:p,required:b,error:E.error}),A=qve(I),k=(i=v.typography)!=null?i:a.typography;let O=h;return O!=null&&O.type!==Ut&&!f&&(O=C.jsx(Ut,$({component:"span"},k,{className:Ue(A.label,k==null?void 0:k.className),children:O}))),C.jsxs(Xve,$({className:Ue(A.root,s),ownerState:I,ref:n},y,{children:[R.cloneElement(c,x),b?C.jsxs(nf,{direction:"row",alignItems:"center",children:[O,C.jsxs(Yve,{ownerState:I,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):O]}))}),Qve=Kve;function Jve(e){return Ct("MuiFormHelperText",e)}const Zve=It("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),mH=Zve;var gH;const eye=["children","className","component","disabled","error","filled","focused","margin","required","variant"],tye=e=>{const{classes:t,contained:n,size:r,disabled:i,error:o,filled:s,focused:a,required:c}=e,u={root:["root",i&&"disabled",o&&"error",r&&`size${De(r)}`,n&&"contained",a&&"focused",s&&"filled",c&&"required"]};return At(u,Jve,t)},nye=Ce("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${De(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${mH.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${mH.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),rye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormHelperText"}),{children:i,className:o,component:s="p"}=r,a=Ne(r,eye),c=yf(),u=nm({props:r,muiFormControl:c,states:["variant","size","disabled","error","filled","focused","required"]}),f=$({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=tye(f);return C.jsx(nye,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:i===" "?gH||(gH=C.jsx("span",{className:"notranslate",children:"​"})):i}))}),iye=rye;function oye(e){return Ct("MuiFormLabel",e)}const sye=It("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),$x=sye,aye=["children","className","color","component","disabled","error","filled","focused","required"],lye=e=>{const{classes:t,color:n,focused:r,disabled:i,error:o,filled:s,required:a}=e,c={root:["root",`color${De(n)}`,i&&"disabled",o&&"error",s&&"filled",r&&"focused",a&&"required"],asterisk:["asterisk",o&&"error"]};return At(c,oye,t)},cye=Ce("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>$({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>$({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${$x.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${$x.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${$x.error}`]:{color:(e.vars||e).palette.error.main}})),uye=Ce("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$x.error}`]:{color:(e.vars||e).palette.error.main}})),dye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiFormLabel"}),{children:i,className:o,component:s="label"}=r,a=Ne(r,aye),c=yf(),u=nm({props:r,muiFormControl:c,states:["color","required","focused","disabled","error","filled"]}),f=$({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),h=lye(f);return C.jsxs(cye,$({as:s,ownerState:f,className:Ue(h.root,o),ref:n},a,{children:[i,u.required&&C.jsxs(uye,{ownerState:f,"aria-hidden":!0,className:h.asterisk,children:[" ","*"]})]}))}),fye=dye,hye=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function n3(e){return`scale(${e}, ${e**2})`}const pye={entering:{opacity:1,transform:n3(1)},entered:{opacity:1,transform:"none"}},WL=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),IQ=R.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:o,easing:s,in:a,onEnter:c,onEntered:u,onEntering:f,onExit:h,onExited:p,onExiting:g,style:v,timeout:y="auto",TransitionComponent:S=kz}=t,w=Ne(t,hye),b=R.useRef(),x=R.useRef(),E=Ln(),I=R.useRef(null),A=Tr(I,o.ref,n),k=F=>j=>{if(F){const V=I.current;j===void 0?F(V):F(V,j)}},O=k(f),L=k((F,j)=>{aQ(F);const{duration:V,delay:W,easing:K}=Hg({style:v,timeout:y,easing:s},{mode:"enter"});let X;y==="auto"?(X=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=X):X=V,F.style.transition=[E.transitions.create("opacity",{duration:X,delay:W}),E.transitions.create("transform",{duration:WL?X:X*.666,delay:W,easing:K})].join(","),c&&c(F,j)}),N=k(u),H=k(g),G=k(F=>{const{duration:j,delay:V,easing:W}=Hg({style:v,timeout:y,easing:s},{mode:"exit"});let K;y==="auto"?(K=E.transitions.getAutoHeightDuration(F.clientHeight),x.current=K):K=j,F.style.transition=[E.transitions.create("opacity",{duration:K,delay:V}),E.transitions.create("transform",{duration:WL?K:K*.666,delay:WL?V:V||K*.333,easing:W})].join(","),F.style.opacity=0,F.style.transform=n3(.75),h&&h(F)}),z=k(p),D=F=>{y==="auto"&&(b.current=setTimeout(F,x.current||0)),r&&r(I.current,F)};return R.useEffect(()=>()=>{clearTimeout(b.current)},[]),C.jsx(S,$({appear:i,in:a,nodeRef:I,onEnter:L,onEntered:N,onEntering:O,onExit:G,onExited:z,onExiting:H,addEndListener:D,timeout:y==="auto"?null:y},w,{children:(F,j)=>R.cloneElement(o,$({style:$({opacity:0,transform:n3(.75),visibility:F==="exited"&&!a?"hidden":void 0},pye[F],v,o.props.style),ref:A},j))}))});IQ.muiSupportAuto=!0;const bC=IQ;function mye(e,t,n,r,i){const[o,s]=R.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return jo(()=>{let a=!0;if(!n)return;const c=n(e),u=()=>{a&&s(c.matches)};return u(),c.addListener(u),()=>{a=!1,c.removeListener(u)}},[e,n]),o}const RQ=jE["useSyncExternalStore"];function gye(e,t,n,r,i){const o=R.useCallback(()=>t,[t]),s=R.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:f}=r(e);return()=>f}return o},[o,e,r,i,n]),[a,c]=R.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const f=n(e);return[()=>f.matches,h=>(f.addListener(h),()=>{f.removeListener(h)})]},[o,n,e]);return RQ(c,a,s)}function vye(e,t={}){const n=rk(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:o=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:a=!1}=QX({name:"MuiUseMediaQuery",props:t,theme:n});let c=typeof e=="function"?e(n):e;return c=c.replace(/^@media( ?)/m,""),(RQ!==void 0?gye:mye)(c,i,o,s,a)}const yye=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],bye=e=>{const{classes:t,disableUnderline:n}=e,i=At({root:["root",!n&&"underline"],input:["input"]},zme,t);return $({},t,i)},xye=Ce(Bk,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Lk(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),$({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&:after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,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"},[`&.${Ib.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Ib.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&:before":{borderBottom:`1px solid ${r}`,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(.${Ib.disabled}, .${Ib.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${Ib.disabled}:before`]:{borderBottomStyle:"dotted"}})}),wye=Ce($k,{name:"MuiInput",slot:"Input",overridesResolver:Nk})({}),PQ=R.forwardRef(function(t,n){var r,i,o,s;const a=Rt({props:t,name:"MuiInput"}),{disableUnderline:c,components:u={},componentsProps:f,fullWidth:h=!1,inputComponent:p="input",multiline:g=!1,slotProps:v,slots:y={},type:S="text"}=a,w=Ne(a,yye),b=bye(a),E={root:{ownerState:{disableUnderline:c}}},I=v??f?ns(v??f,E):E,A=(r=(i=y.root)!=null?i:u.Root)!=null?r:xye,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:wye;return C.jsx(Fk,$({slots:{root:A,input:k},slotProps:I,fullWidth:h,inputComponent:p,multiline:g,ref:n,type:S},w,{classes:b}))});PQ.muiName="Input";const OQ=PQ;function _ye(e){return Ct("MuiInputLabel",e)}It("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const Sye=["disableAnimation","margin","shrink","variant","className"],Eye=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:o,variant:s,required:a}=e,c={root:["root",n&&"formControl",!o&&"animated",i&&"shrink",r&&r!=="normal"&&`size${De(r)}`,s],asterisk:[a&&"asterisk"]},u=At(c,_ye,t);return $({},t,u)},Cye=Ce(fye,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$x.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,t[n.variant]]}})(({theme:e,ownerState:t})=>$({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&$({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&$({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&$({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),Tye=R.forwardRef(function(t,n){const r=Rt({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:o,className:s}=r,a=Ne(r,Sye),c=yf();let u=o;typeof u>"u"&&c&&(u=c.filled||c.focused||c.adornedStart);const f=nm({props:r,muiFormControl:c,states:["size","variant","required"]}),h=$({},r,{disableAnimation:i,formControl:c,shrink:u,size:f.size,variant:f.variant,required:f.required}),p=Eye(h);return C.jsx(Cye,$({"data-shrink":u,ownerState:h,ref:n,className:Ue(p.root,s)},a,{classes:p}))}),kye=Tye;function Aye(e){return Ct("MuiLinearProgress",e)}It("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);const Iye=["className","color","value","valueBuffer","variant"];let Tv=e=>e,vH,yH,bH,xH,wH,_H;const r3=4,Rye=hf(vH||(vH=Tv` 0% { left: -35%; right: 100%; @@ -174,7 +174,7 @@ Error generating stack: `+o.message+` left: 100%; right: -90%; } -`)),Tye=df(mH||(mH=Ev` +`)),Pye=hf(yH||(yH=Tv` 0% { left: -200%; right: 100%; @@ -189,7 +189,7 @@ Error generating stack: `+o.message+` left: 107%; right: -8%; } -`)),kye=df(gH||(gH=Ev` +`)),Oye=hf(bH||(bH=Tv` 0% { opacity: 1; background-position: 0 -23px; @@ -204,25 +204,25 @@ Error generating stack: `+o.message+` opacity: 1; background-position: -200px -23px; } -`)),Aye=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${Le(r)}`,n],dashed:["dashed",`dashedColor${Le(r)}`],bar1:["bar",`barColor${Le(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${Le(r)}`,n==="buffer"&&`color${Le(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return At(i,Sye,t)},Bz=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?bv(e.palette[t].main,.62):yv(e.palette[t].main,.5),Iye=Ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Le(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Bz(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Rye=Ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${Le(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=Bz(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},vv(vH||(vH=Ev` +`)),Mye=e=>{const{classes:t,variant:n,color:r}=e,i={root:["root",`color${De(r)}`,n],dashed:["dashed",`dashedColor${De(r)}`],bar1:["bar",`barColor${De(r)}`,(n==="indeterminate"||n==="query")&&"bar1Indeterminate",n==="determinate"&&"bar1Determinate",n==="buffer"&&"bar1Buffer"],bar2:["bar",n!=="buffer"&&`barColor${De(r)}`,n==="buffer"&&`color${De(r)}`,(n==="indeterminate"||n==="query")&&"bar2Indeterminate",n==="buffer"&&"bar2Buffer"]};return At(i,Aye,t)},Fz=(e,t)=>t==="inherit"?"currentColor":e.vars?e.vars.palette.LinearProgress[`${t}Bg`]:e.palette.mode==="light"?wv(e.palette[t].main,.62):xv(e.palette[t].main,.5),Dye=Ce("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${De(n.color)}`],t[n.variant]]}})(({ownerState:e,theme:t})=>$({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:Fz(t,e.color)},e.color==="inherit"&&e.variant!=="buffer"&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},e.variant==="buffer"&&{backgroundColor:"transparent"},e.variant==="query"&&{transform:"rotate(180deg)"})),Lye=Ce("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.dashed,t[`dashedColor${De(n.color)}`]]}})(({ownerState:e,theme:t})=>{const n=Fz(t,e.color);return $({position:"absolute",marginTop:0,height:"100%",width:"100%"},e.color==="inherit"&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},bv(xH||(xH=Tv` animation: ${0} 3s infinite linear; - `),kye)),Pye=Ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${e3}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${e3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&vv(yH||(yH=Ev` + `),Oye)),Nye=Ce("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${De(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar1Indeterminate,n.variant==="determinate"&&t.bar1Determinate,n.variant==="buffer"&&t.bar1Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.variant==="determinate"&&{transition:`transform .${r3}s linear`},e.variant==="buffer"&&{zIndex:1,transition:`transform .${r3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&bv(wH||(wH=Tv` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; - `),Cye)),Oye=Ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${Le(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:Bz(t,e.color),transition:`transform .${e3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&vv(bH||(bH=Ev` + `),Rye)),Bye=Ce("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.bar,t[`barColor${De(n.color)}`],(n.variant==="indeterminate"||n.variant==="query")&&t.bar2Indeterminate,n.variant==="buffer"&&t.bar2Buffer]}})(({ownerState:e,theme:t})=>$({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},e.variant!=="buffer"&&{backgroundColor:e.color==="inherit"?"currentColor":(t.vars||t).palette[e.color].main},e.color==="inherit"&&{opacity:.3},e.variant==="buffer"&&{backgroundColor:Fz(t,e.color),transition:`transform .${r3}s linear`}),({ownerState:e})=>(e.variant==="indeterminate"||e.variant==="query")&&bv(_H||(_H=Tv` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; - `),Tye)),Mye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,u=Ne(r,Eye),f=$({},r,{color:o,variant:c}),h=Aye(f),p=Dn(),g={},v={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=s-100;p.direction==="rtl"&&(y=-y),v.bar1.transform=`translateX(${y}%)`}if(c==="buffer"&&a!==void 0){let y=(a||0)-100;p.direction==="rtl"&&(y=-y),v.bar2.transform=`translateX(${y}%)`}return C.jsxs(Iye,$({className:Ue(h.root,i),ownerState:f,role:"progressbar"},g,{ref:n},u,{children:[c==="buffer"?C.jsx(Rye,{className:h.dashed,ownerState:f}):null,C.jsx(Pye,{className:h.bar1,ownerState:f,style:v.bar1}),c==="determinate"?null:C.jsx(Oye,{className:h.bar2,ownerState:f,style:v.bar2})]}))}),Lye=Mye,Dye=R.createContext({}),Ca=Dye;function Nye(e){return Ct("MuiList",e)}It("MuiList",["root","padding","dense","subheader"]);const Bye=["children","className","component","dense","disablePadding","subheader"],$ye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return At({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},Nye,t)},Fye=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]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),zye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:u}=r,f=Ne(r,Bye),h=R.useMemo(()=>({dense:a}),[a]),p=$({},r,{component:s,dense:a,disablePadding:c}),g=$ye(p);return C.jsx(Ca.Provider,{value:h,children:C.jsxs(Fye,$({as:s,className:Ue(g.root,o),ref:n,ownerState:p},f,{children:[u,i]}))})}),Xg=zye;function jye(e){return Ct("MuiListItem",e)}const Uye=It("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Om=Uye;function Hye(e){return Ct("MuiListItemButton",e)}const Wye=It("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Mm=Wye,Gye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Vye=(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]},qye=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,u=At({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Hye,n);return $({},n,u)},Xye=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Vye})(({theme:e,ownerState:t})=>$({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"}},[`&.${Mm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(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})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Mm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),Yye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:c=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:h,selected:p=!1,className:g}=r,v=Ne(r,Gye),y=R.useContext(Ca),S=R.useMemo(()=>({dense:c||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,c,u]),w=R.useRef(null);jo(()=>{o&&w.current&&w.current.focus()},[o]);const b=$({},r,{alignItems:i,dense:S.dense,disableGutters:u,divider:f,selected:p}),x=qye(b),E=Tr(w,n);return C.jsx(Ca.Provider,{value:S,children:C.jsx(Xye,$({ref:E,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:Ue(x.focusVisible,h),ownerState:b,className:Ue(x.root,g)},v,{classes:x,children:a}))})}),t3=Yye;function Kye(e){return Ct("MuiListItemSecondaryAction",e)}It("MuiListItemSecondaryAction",["root","disableGutters"]);const Qye=["className"],Jye=e=>{const{disableGutters:t,classes:n}=e;return At({root:["root",t&&"disableGutters"]},Kye,n)},Zye=Ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),PQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ne(r,Qye),s=R.useContext(Ca),a=$({},r,{disableGutters:s.disableGutters}),c=Jye(a);return C.jsx(Zye,$({className:Ue(c.root,i),ownerState:a,ref:n},o))});PQ.muiName="ListItemSecondaryAction";const e0e=PQ,t0e=["className"],n0e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],r0e=(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,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},i0e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:u,selected:f}=e;return At({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},jye,r)},o0e=Ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:r0e})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Mm.root}`]:{paddingRight:48}},{[`&.${Om.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Om.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Om.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Om.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${Om.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(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})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),s0e=Ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),a0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:a,className:c,component:u,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:v=!1,disabled:y=!1,disableGutters:S=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:I=!1,slotProps:A={},slots:k={}}=r,O=Ne(r.ContainerProps,t0e),D=Ne(r,n0e),N=R.useContext(Ca),H=R.useMemo(()=>({dense:v||N.dense||!1,alignItems:i,disableGutters:S}),[i,N.dense,v,S]),G=R.useRef(null);jo(()=>{o&&G.current&&G.current.focus()},[o]);const z=R.Children.toArray(a),L=z.length&&KS(z[z.length-1],["ListItemSecondaryAction"]),F=$({},r,{alignItems:i,autoFocus:o,button:s,dense:H.dense,disabled:y,disableGutters:S,disablePadding:w,divider:b,hasSecondaryAction:L,selected:I}),j=i0e(F),V=Tr(G,n),W=k.root||f.Root||o0e,K=A.root||h.root||{},X=$({className:Ue(j.root,K.className,c),disabled:y},D);let Q=u||"li";return s&&(X.component=u||"div",X.focusVisibleClassName=Ue(Om.focusVisible,x),Q=Yu),L?(Q=!X.component&&!u?"div":Q,p==="li"&&(Q==="li"?Q="div":X.component==="li"&&(X.component="div")),C.jsx(Ca.Provider,{value:H,children:C.jsxs(s0e,$({as:p,className:Ue(j.container,g),ref:V,ownerState:F},O,{children:[C.jsx(W,$({},K,!tc(W)&&{as:Q,ownerState:$({},F,K.ownerState)},X,{children:z})),z.pop()]}))})):C.jsx(Ca.Provider,{value:H,children:C.jsxs(W,$({},K,{as:Q,ref:V},!tc(W)&&{ownerState:$({},F,K.ownerState)},X,{children:[z,E&&C.jsx(e0e,{children:E})]}))})}),Bx=a0e;function l0e(e){return Ct("MuiListItemAvatar",e)}It("MuiListItemAvatar",["root","alignItemsFlexStart"]);const c0e=["className"],u0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},l0e,n)},d0e=Ce("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),f0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ne(r,c0e),s=R.useContext(Ca),a=$({},r,{alignItems:s.alignItems}),c=u0e(a);return C.jsx(d0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),h0e=f0e;function p0e(e){return Ct("MuiListItemIcon",e)}const m0e=It("MuiListItemIcon",["root","alignItemsFlexStart"]),xH=m0e,g0e=["className"],v0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},p0e,n)},y0e=Ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),b0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ne(r,g0e),s=R.useContext(Ca),a=$({},r,{alignItems:s.alignItems}),c=v0e(a);return C.jsx(y0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),Wd=b0e;function x0e(e){return Ct("MuiListItemText",e)}const w0e=It("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),bC=w0e,_0e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],S0e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return At({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},x0e,t)},E0e=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${bC.primary}`]:t.primary},{[`& .${bC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),C0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:h}=r,p=Ne(r,_0e),{dense:g}=R.useContext(Ca);let v=c??i,y=f;const S=$({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!y,dense:g}),w=S0e(S);return v!=null&&v.type!==jt&&!s&&(v=C.jsx(jt,$({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),y!=null&&y.type!==jt&&!s&&(y=C.jsx(jt,$({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:y}))),C.jsxs(E0e,$({className:Ue(w.root,o),ownerState:S,ref:n},p,{children:[v,y]}))}),rc=C0e,T0e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function HD(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function wH(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function OQ(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.indexOf(t.keys.join(""))===0}function Ab(e,t,n,r,i,o){let s=!1,a=i(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!OQ(a,o)||c)a=i(e,a,n);else return a.focus(),!0}return!1}const k0e=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=Ne(t,T0e),g=R.useRef(null),v=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jo(()=>{i&&g.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const I=!g.current.style.width;if(x.clientHeight{const E=g.current,I=x.key,A=Fr(E).activeElement;if(I==="ArrowDown")x.preventDefault(),Ab(E,A,u,c,HD);else if(I==="ArrowUp")x.preventDefault(),Ab(E,A,u,c,wH);else if(I==="Home")x.preventDefault(),Ab(E,null,u,c,HD);else if(I==="End")x.preventDefault(),Ab(E,null,u,c,wH);else if(I.length===1){const k=v.current,O=I.toLowerCase(),D=performance.now();k.keys.length>0&&(D-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&O!==k.keys[0]&&(k.repeating=!1)),k.lastTime=D,k.keys.push(O);const N=A&&!k.repeating&&OQ(A,k);k.previousKeyMatched&&(N||Ab(E,A,!1,c,HD,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},S=Tr(g,n);let w=-1;R.Children.forEach(s,(x,E)=>{if(!R.isValidElement(x)){w===E&&(w+=1,w>=s.length&&(w=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=E),w===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const b=R.Children.map(s,(x,E)=>{if(E===w){const I={};return o&&(I.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),R.cloneElement(x,I)}return x});return C.jsx(Xg,$({role:"menu",ref:S,className:a,onKeyDown:y,tabIndex:i?0:-1},p,{children:b}))}),zk=k0e;function A0e(e){return Ct("MuiPopover",e)}It("MuiPopover",["root","paper"]);const I0e=["onEntering"],R0e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],P0e=["slotProps"];function _H(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function SH(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function EH(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function WD(e){return typeof e=="function"?e():e}const O0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"]},A0e,t)},M0e=Ce(SQ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),MQ=Ce(Sv,{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}),L0e=R.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:v,elevation:y=8,marginThreshold:S=16,open:w,PaperProps:b={},slots:x,slotProps:E,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:A=yC,transitionDuration:k="auto",TransitionProps:{onEntering:O}={},disableScrollLock:D=!1}=s,N=Ne(s.TransitionProps,I0e),H=Ne(s,R0e),G=(r=E==null?void 0:E.paper)!=null?r:b,z=R.useRef(),L=Tr(z,G.ref),F=$({},s,{anchorOrigin:u,anchorReference:h,elevation:y,marginThreshold:S,externalPaperSlotProps:G,transformOrigin:I,TransitionComponent:A,transitionDuration:k,TransitionProps:N}),j=O0e(F),V=R.useCallback(()=>{if(h==="anchorPosition")return f;const xe=WD(c),be=(xe&&xe.nodeType===1?xe:Fr(z.current).body).getBoundingClientRect();return{top:be.top+_H(be,u.vertical),left:be.left+SH(be,u.horizontal)}},[c,u.horizontal,u.vertical,f,h]),W=R.useCallback(xe=>({vertical:_H(xe,I.vertical),horizontal:SH(xe,I.horizontal)}),[I.horizontal,I.vertical]),K=R.useCallback(xe=>{const me={width:xe.offsetWidth,height:xe.offsetHeight},be=W(me);if(h==="none")return{top:null,left:null,transformOrigin:EH(be)};const Ze=V();let Xe=Ze.top-be.vertical,ct=Ze.left-be.horizontal;const Bt=Xe+me.height,Pe=ct+me.width,ze=Du(WD(c)),st=ze.innerHeight-S,gt=ze.innerWidth-S;if(S!==null&&Xest){const vt=Bt-st;Xe-=vt,be.vertical+=vt}if(S!==null&&ctgt){const vt=Pe-gt;ct-=vt,be.horizontal+=vt}return{top:`${Math.round(Xe)}px`,left:`${Math.round(ct)}px`,transformOrigin:EH(be)}},[c,h,V,W,S]),[X,Q]=R.useState(w),ie=R.useCallback(()=>{const xe=z.current;if(!xe)return;const me=K(xe);me.top!==null&&(xe.style.top=me.top),me.left!==null&&(xe.style.left=me.left),xe.style.transformOrigin=me.transformOrigin,Q(!0)},[K]);R.useEffect(()=>(D&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,D,ie]);const ce=(xe,me)=>{O&&O(xe,me),ie()},ue=()=>{Q(!1)};R.useEffect(()=>{w&&ie()}),R.useImperativeHandle(a,()=>w?{updatePosition:()=>{ie()}}:null,[w,ie]),R.useEffect(()=>{if(!w)return;const xe=PT(()=>{ie()}),me=Du(c);return me.addEventListener("resize",xe),()=>{xe.clear(),me.removeEventListener("resize",xe)}},[c,w,ie]);let se=k;k==="auto"&&!A.muiSupportAuto&&(se=void 0);const J=v||(c?Fr(WD(c)).body:void 0),ae=(i=x==null?void 0:x.root)!=null?i:M0e,le=(o=x==null?void 0:x.paper)!=null?o:MQ,he=ti({elementType:le,externalSlotProps:$({},G,{style:X?G.style:$({},G.style,{opacity:0})}),additionalProps:{elevation:y,ref:L},ownerState:F,className:Ue(j.paper,G==null?void 0:G.className)}),pe=ti({elementType:ae,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:H,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:F,className:Ue(j.root,g)}),{slotProps:ve}=pe,ye=Ne(pe,P0e);return C.jsx(ae,$({},ye,!tc(ae)&&{slotProps:ve,disableScrollLock:D},{children:C.jsx(A,$({appear:!0,in:w,onEntering:ce,onExited:ue,timeout:se},N,{children:C.jsx(le,$({},he,{children:p}))}))}))}),D0e=L0e;function N0e(e){return Ct("MuiMenu",e)}It("MuiMenu",["root","paper","list"]);const B0e=["onEntering"],$0e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],F0e={vertical:"top",horizontal:"right"},z0e={vertical:"top",horizontal:"left"},j0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"],list:["list"]},N0e,t)},U0e=Ce(D0e,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),H0e=Ce(MQ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),W0e=Ce(zk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),G0e=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:c,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:h,open:p,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=o,E=Ne(o.TransitionProps,B0e),I=Ne(o,$0e),A=Dn(),k=A.direction==="rtl",O=$({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:f,onEntering:S,PaperProps:g,transitionDuration:y,TransitionProps:E,variant:w}),D=j0e(O),N=s&&!u&&p,H=R.useRef(null),G=(K,X)=>{H.current&&H.current.adjustStyleForScrollbar(K,A),S&&S(K,X)},z=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let L=-1;R.Children.map(a,(K,X)=>{R.isValidElement(K)&&(K.props.disabled||(w==="selectedMenu"&&K.props.selected||L===-1)&&(L=X))});const F=(r=b.paper)!=null?r:H0e,j=(i=x.paper)!=null?i:g,V=ti({elementType:b.root,externalSlotProps:x.root,ownerState:O,className:[D.root,c]}),W=ti({elementType:F,externalSlotProps:j,ownerState:O,className:D.paper});return C.jsx(U0e,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?F0e:z0e,slots:{paper:F,root:b.root},slotProps:{root:V,paper:W},open:p,ref:n,transitionDuration:y,TransitionProps:$({onEntering:G},E),ownerState:O},I,{classes:v,children:C.jsx(W0e,$({onKeyDown:z,actions:H,autoFocus:s&&(L===-1||u),autoFocusItem:N,variant:w},f,{className:Ue(D.list,f.className),children:a}))}))}),nm=G0e;function V0e(e){return Ct("MuiMenuItem",e)}const q0e=It("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Ib=q0e,X0e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],Y0e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},K0e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,c=At({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},V0e,s);return $({},s,c)},Q0e=Ce(Yu,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:Y0e})(({theme:e,ownerState:t})=>$({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Ib.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Ib.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Ib.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(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})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Ib.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Ib.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dH.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dH.inset}`]:{marginLeft:52},[`& .${bC.root}`]:{marginTop:0,marginBottom:0},[`& .${bC.inset}`]:{paddingLeft:36},[`& .${xH.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${xH.root} svg`]:{fontSize:"1.25rem"}}))),J0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:h,className:p}=r,g=Ne(r,X0e),v=R.useContext(Ca),y=R.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),S=R.useRef(null);jo(()=>{i&&S.current&&S.current.focus()},[i]);const w=$({},r,{dense:y.dense,divider:a,disableGutters:c}),b=K0e(r),x=Tr(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),C.jsx(Ca.Provider,{value:y,children:C.jsx(Q0e,$({ref:x,role:f,tabIndex:E,component:o,focusVisibleClassName:Ue(b.focusVisible,u),className:Ue(b.root,p)},g,{ownerState:w,classes:b}))})}),Ru=J0e;function Z0e(e){return Ct("MuiNativeSelect",e)}const ebe=It("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),$z=ebe,tbe=["className","disabled","error","IconComponent","inputRef","variant"],nbe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Le(n)}`,o&&"iconOpen",r&&"disabled"]};return At(a,Z0e,t)},LQ=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${$z.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),rbe=Ce("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Ma,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${$z.multiple}`]:t.multiple}]}})(LQ),DQ=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${$z.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),ibe=Ce("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})(DQ),obe=R.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:a,variant:c="standard"}=t,u=Ne(t,tbe),f=$({},t,{disabled:i,variant:c,error:o}),h=nbe(f);return C.jsxs(R.Fragment,{children:[C.jsx(rbe,$({ownerState:f,className:Ue(h.select,r),disabled:i,ref:a||n},u)),t.multiple?null:C.jsx(ibe,{as:s,ownerState:f,className:h.icon})]})}),sbe=obe;var CH;const abe=["children","classes","className","label","notched"],lbe=Ce("fieldset")({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%"}),cbe=Ce("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function ube(e){const{className:t,label:n,notched:r}=e,i=Ne(e,abe),o=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:o});return C.jsx(lbe,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:C.jsx(cbe,{ownerState:s,children:o?C.jsx("span",{children:n}):CH||(CH=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const dbe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],fbe=e=>{const{classes:t}=e,r=At({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Bme,t);return $({},t,r)},hbe=Ce(Nk,{shouldForwardProp:e=>Ma(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Lk})(({theme:e,ownerState:t})=>{const n=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 .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${rd.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${rd.focused} .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${rd.error} .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${rd.disabled} .${rd.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),pbe=Ce(ube,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),mbe=Ce(Bk,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Dk})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),NQ=R.forwardRef(function(t,n){var r,i,o,s,a;const c=Rt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:v,slots:y={},type:S="text"}=c,w=Ne(c,dbe),b=fbe(c),x=gf(),E=tm({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=$({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:g,size:E.size,type:S}),A=(r=(i=y.root)!=null?i:u.Root)!=null?r:hbe,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:mbe;return C.jsx($k,$({slots:{root:A,input:k},renderSuffix:O=>C.jsx(pbe,{ownerState:I,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?a||(a=C.jsxs(R.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:h,multiline:g,ref:n,type:S},w,{classes:$({},b,{notchedOutline:null})}))});NQ.muiName="Input";const BQ=NQ;function gbe(e){return Ct("MuiSelect",e)}const vbe=It("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Rb=vbe;var TH;const ybe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],bbe=Ce("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Rb.select}`]:t.select},{[`&.${Rb.select}`]:t[n.variant]},{[`&.${Rb.error}`]:t.error},{[`&.${Rb.multiple}`]:t.multiple}]}})(LQ,{[`&.${Rb.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),xbe=Ce("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Le(n.variant)}`],n.open&&t.iconOpen]}})(DQ),wbe=Ce("input",{shouldForwardProp:e=>P4(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 kH(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function _be(e){return e==null||typeof e=="string"&&!e.trim()}const Sbe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${Le(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return At(a,gbe,t)},Ebe=R.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:a,children:c,className:u,defaultOpen:f,defaultValue:h,disabled:p,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:S,labelId:w,MenuProps:b={},multiple:x,name:E,onBlur:I,onChange:A,onClose:k,onFocus:O,onOpen:D,open:N,readOnly:H,renderValue:G,SelectDisplayProps:z={},tabIndex:L,value:F,variant:j="standard"}=t,V=Ne(t,ybe),[W,K]=r1({controlled:F,default:h,name:"Select"}),[X,Q]=r1({controlled:N,default:f,name:"Select"}),ie=R.useRef(null),ce=R.useRef(null),[ue,se]=R.useState(null),{current:J}=R.useRef(N!=null),[ae,le]=R.useState(),he=Tr(n,S),pe=R.useCallback(Ie=>{ce.current=Ie,Ie&&se(Ie)},[]),ve=ue==null?void 0:ue.parentNode;R.useImperativeHandle(he,()=>({focus:()=>{ce.current.focus()},node:ie.current,value:W}),[W]),R.useEffect(()=>{f&&X&&ue&&!J&&(le(a?null:ve.clientWidth),ce.current.focus())},[ue,a]),R.useEffect(()=>{s&&ce.current.focus()},[s]),R.useEffect(()=>{if(!w)return;const Ie=Fr(ce.current).getElementById(w);if(Ie){const at=()=>{getSelection().isCollapsed&&ce.current.focus()};return Ie.addEventListener("click",at),()=>{Ie.removeEventListener("click",at)}}},[w]);const ye=(Ie,at)=>{Ie?D&&D(at):k&&k(at),J||(le(a?null:ve.clientWidth),Q(Ie))},xe=Ie=>{Ie.button===0&&(Ie.preventDefault(),ce.current.focus(),ye(!0,Ie))},me=Ie=>{ye(!1,Ie)},be=R.Children.toArray(c),Ze=Ie=>{const at=be.find($t=>$t.props.value===Ie.target.value);at!==void 0&&(K(at.props.value),A&&A(Ie,at))},Xe=Ie=>at=>{let $t;if(at.currentTarget.hasAttribute("tabindex")){if(x){$t=Array.isArray(W)?W.slice():[];const Re=W.indexOf(Ie.props.value);Re===-1?$t.push(Ie.props.value):$t.splice(Re,1)}else $t=Ie.props.value;if(Ie.props.onClick&&Ie.props.onClick(at),W!==$t&&(K($t),A)){const Re=at.nativeEvent||at,He=new Re.constructor(Re.type,Re);Object.defineProperty(He,"target",{writable:!0,value:{value:$t,name:E}}),A(He,Ie)}x||ye(!1,at)}},ct=Ie=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ie.key)!==-1&&(Ie.preventDefault(),ye(!0,Ie))},Bt=ue!==null&&X,Pe=Ie=>{!Bt&&I&&(Object.defineProperty(Ie,"target",{writable:!0,value:{value:W,name:E}}),I(Ie))};delete V["aria-invalid"];let ze,st;const gt=[];let vt=!1;(vC({value:W})||g)&&(G?ze=G(W):vt=!0);const _e=be.map(Ie=>{if(!R.isValidElement(Ie))return null;let at;if(x){if(!Array.isArray(W))throw new Error(Jd(2));at=W.some($t=>kH($t,Ie.props.value)),at&&vt&>.push(Ie.props.children)}else at=kH(W,Ie.props.value),at&&vt&&(st=Ie.props.children);return R.cloneElement(Ie,{"aria-selected":at?"true":"false",onClick:Xe(Ie),onKeyUp:$t=>{$t.key===" "&&$t.preventDefault(),Ie.props.onKeyUp&&Ie.props.onKeyUp($t)},role:"option",selected:at,value:void 0,"data-value":Ie.props.value})});vt&&(x?gt.length===0?ze=null:ze=gt.reduce((Ie,at,$t)=>(Ie.push(at),$t{const{classes:t}=e;return t},Fz={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Ma(e)&&e!=="variant",slot:"Root"},Ibe=Ce(RQ,Fz)(""),Rbe=Ce(BQ,Fz)(""),Pbe=Ce(TQ,Fz)(""),$Q=R.forwardRef(function(t,n){const r=Rt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=jme,id:h,input:p,inputProps:g,label:v,labelId:y,MenuProps:S,multiple:w=!1,native:b=!1,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:k,variant:O="outlined"}=r,D=Ne(r,Tbe),N=b?sbe:Cbe,H=gf(),G=tm({props:r,muiFormControl:H,states:["variant","error"]}),z=G.variant||O,L=$({},r,{variant:z,classes:s}),F=Abe(L),j=Ne(F,kbe),V=p||{standard:C.jsx(Ibe,{ownerState:L}),outlined:C.jsx(Rbe,{label:v,ownerState:L}),filled:C.jsx(Pbe,{ownerState:L})}[z],W=Tr(n,V.ref);return C.jsx(R.Fragment,{children:R.cloneElement(V,$({inputComponent:N,inputProps:$({children:o,error:G.error,IconComponent:f,variant:z,type:void 0,multiple:w},b?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:y,MenuProps:S,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:$({id:h},k)},g,{classes:g?ns(j,g.classes):j},p?p.props.inputProps:{})},w&&b&&z==="outlined"?{notched:!0}:{},{ref:W,className:Ue(V.props.className,a,F.root)},!p&&{variant:z},D))})});$Q.muiName="Select";const Obe=$Q,Mbe=e=>!e||!tc(e),Lbe=Mbe;function Dbe(e){return Ct("MuiSlider",e)}const Nbe=It("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),gl=Nbe,Bbe=e=>{const{open:t}=e;return{offset:Ue(t&&gl.valueLabelOpen),circle:gl.valueLabelCircle,label:gl.valueLabelLabel}};function $be(e){const{children:t,className:n,value:r}=e,i=Bbe(e);return t?R.cloneElement(t,{className:Ue(t.props.className)},C.jsxs(R.Fragment,{children:[t.props.children,C.jsx("span",{className:Ue(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const Fbe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function AH(e){return e}const zbe=Ce("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${Le(n.color)}`],n.size!=="medium"&&t[`size${Le(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&$({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&$({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${gl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${gl.dragging}`]:{[`& .${gl.thumb}, & .${gl.track}`]:{transition:"none"}}})),jbe=Ce("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),Ube=Ce("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?bv(e.palette[t.color].main,.62):yv(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Hbe=Ce("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${Le(n.color)}`],n.size!=="medium"&&t[`thumbSize${Le(n.size)}`]]}})(({theme:e,ownerState:t})=>$({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":$({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${gl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${gl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`},[`&.${gl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Wbe=Ce($be,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${gl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Gbe=Ce("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>P4(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Vbe=Ce("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>P4(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),qbe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${Le(a)}`,c&&`size${Le(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${Le(c)}`,a&&`thumbColor${Le(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return At(u,Dbe,s)},Xbe=({children:e})=>e,Ybe=R.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I,A,k,O,D,N;const H=Rt({props:t,name:"MuiSlider"}),z=Dn().direction==="rtl",{"aria-label":L,"aria-valuetext":F,"aria-labelledby":j,component:V="span",components:W={},componentsProps:K={},color:X="primary",classes:Q,className:ie,disableSwap:ce=!1,disabled:ue=!1,getAriaLabel:se,getAriaValueText:J,marks:ae=!1,max:le=100,min:he=0,orientation:pe="horizontal",size:ve="medium",step:ye=1,scale:xe=AH,slotProps:me,slots:be,track:Ze="normal",valueLabelDisplay:Xe="off",valueLabelFormat:ct=AH}=H,Bt=Ne(H,Fbe),Pe=$({},H,{isRtl:z,max:le,min:he,classes:Q,disabled:ue,disableSwap:ce,orientation:pe,marks:ae,color:X,size:ve,step:ye,scale:xe,track:Ze,valueLabelDisplay:Xe,valueLabelFormat:ct}),{axisProps:ze,getRootProps:st,getHiddenInputProps:gt,getThumbProps:vt,open:_e,active:je,axis:Ke,focusedThumbIndex:Fe,range:Be,dragging:Pt,marks:dt,values:Ie,trackOffset:at,trackLeap:$t,getThumbStyle:Re}=pme($({},Pe,{rootRef:n}));Pe.marked=dt.length>0&&dt.some(Kn=>Kn.label),Pe.dragging=Pt,Pe.focusedThumbIndex=Fe;const He=qbe(Pe),xt=(r=(i=be==null?void 0:be.root)!=null?i:W.Root)!=null?r:zbe,Gt=(o=(s=be==null?void 0:be.rail)!=null?s:W.Rail)!=null?o:jbe,yn=(a=(c=be==null?void 0:be.track)!=null?c:W.Track)!=null?a:Ube,Yr=(u=(f=be==null?void 0:be.thumb)!=null?f:W.Thumb)!=null?u:Hbe,Hr=(h=(p=be==null?void 0:be.valueLabel)!=null?p:W.ValueLabel)!=null?h:Wbe,Wr=(g=(v=be==null?void 0:be.mark)!=null?v:W.Mark)!=null?g:Gbe,Kr=(y=(S=be==null?void 0:be.markLabel)!=null?S:W.MarkLabel)!=null?y:Vbe,ci=(w=(b=be==null?void 0:be.input)!=null?b:W.Input)!=null?w:"input",ps=(x=me==null?void 0:me.root)!=null?x:K.root,ed=(E=me==null?void 0:me.rail)!=null?E:K.rail,sa=(I=me==null?void 0:me.track)!=null?I:K.track,wc=(A=me==null?void 0:me.thumb)!=null?A:K.thumb,_c=(k=me==null?void 0:me.valueLabel)!=null?k:K.valueLabel,kf=(O=me==null?void 0:me.mark)!=null?O:K.mark,ms=(D=me==null?void 0:me.markLabel)!=null?D:K.markLabel,Af=(N=me==null?void 0:me.input)!=null?N:K.input,xo=ti({elementType:xt,getSlotProps:st,externalSlotProps:ps,externalForwardedProps:Bt,additionalProps:$({},Lbe(xt)&&{as:V}),ownerState:$({},Pe,ps==null?void 0:ps.ownerState),className:[He.root,ie]}),Sc=ti({elementType:Gt,externalSlotProps:ed,ownerState:Pe,className:He.rail}),Di=ti({elementType:yn,externalSlotProps:sa,additionalProps:{style:$({},ze[Ke].offset(at),ze[Ke].leap($t))},ownerState:$({},Pe,sa==null?void 0:sa.ownerState),className:He.track}),gs=ti({elementType:Yr,getSlotProps:vt,externalSlotProps:wc,ownerState:$({},Pe,wc==null?void 0:wc.ownerState),className:He.thumb}),If=ti({elementType:Hr,externalSlotProps:_c,ownerState:$({},Pe,_c==null?void 0:_c.ownerState),className:He.valueLabel}),vs=ti({elementType:Wr,externalSlotProps:kf,ownerState:Pe,className:He.mark}),Na=ti({elementType:Kr,externalSlotProps:ms,ownerState:Pe,className:He.markLabel}),td=ti({elementType:ci,getSlotProps:gt,externalSlotProps:Af,ownerState:Pe});return C.jsxs(xt,$({},xo,{children:[C.jsx(Gt,$({},Sc)),C.jsx(yn,$({},Di)),dt.filter(Kn=>Kn.value>=he&&Kn.value<=le).map((Kn,lr)=>{const Ll=gC(Kn.value,he,le),Dl=ze[Ke].offset(Ll);let wo;return Ze===!1?wo=Ie.indexOf(Kn.value)!==-1:wo=Ze==="normal"&&(Be?Kn.value>=Ie[0]&&Kn.value<=Ie[Ie.length-1]:Kn.value<=Ie[0])||Ze==="inverted"&&(Be?Kn.value<=Ie[0]||Kn.value>=Ie[Ie.length-1]:Kn.value>=Ie[0]),C.jsxs(R.Fragment,{children:[C.jsx(Wr,$({"data-index":lr},vs,!tc(Wr)&&{markActive:wo},{style:$({},Dl,vs.style),className:Ue(vs.className,wo&&He.markActive)})),Kn.label!=null?C.jsx(Kr,$({"aria-hidden":!0,"data-index":lr},Na,!tc(Kr)&&{markLabelActive:wo},{style:$({},Dl,Na.style),className:Ue(He.markLabel,Na.className,wo&&He.markLabelActive),children:Kn.label})):null]},lr)}),Ie.map((Kn,lr)=>{const Ll=gC(Kn,he,le),Dl=ze[Ke].offset(Ll),wo=Xe==="off"?Xbe:Hr;return C.jsx(wo,$({},!tc(wo)&&{valueLabelFormat:ct,valueLabelDisplay:Xe,value:typeof ct=="function"?ct(xe(Kn),lr):ct,index:lr,open:_e===lr||je===lr||Xe==="on",disabled:ue},If,{children:C.jsx(Yr,$({"data-index":lr},gs,{className:Ue(He.thumb,gs.className,je===lr&&He.active,Fe===lr&&He.focusVisible),style:$({},Dl,Re(lr),gs.style),children:C.jsx(ci,$({"data-index":lr,"aria-label":se?se(lr):L,"aria-valuenow":xe(Kn),"aria-labelledby":j,"aria-valuetext":J?J(xe(Kn),lr):F,value:Ie[lr]},td))}))}),lr)})]}))}),Kbe=Ybe;function Qbe(e){return Ct("MuiSnackbarContent",e)}It("MuiSnackbarContent",["root","message","action"]);const Jbe=["action","className","message","role"],Zbe=e=>{const{classes:t}=e;return At({root:["root"],action:["action"],message:["message"]},Qbe,t)},exe=Ce(Sv,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=bce(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),txe=Ce("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),nxe=Ce("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),rxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert"}=r,c=Ne(r,Jbe),u=r,f=Zbe(u);return C.jsxs(exe,$({role:a,square:!0,elevation:6,className:Ue(f.root,o),ownerState:u,ref:n},c,{children:[C.jsx(txe,{className:f.message,ownerState:u,children:s}),i?C.jsx(nxe,{className:f.action,ownerState:u,children:i}):null]}))}),ixe=rxe;function oxe(e){return Ct("MuiSnackbar",e)}It("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const sxe=["onEnter","onExited"],axe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],lxe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Le(n.vertical)}${Le(n.horizontal)}`]};return At(r,oxe,t)},IH=Ce("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Le(n.anchorOrigin.vertical)}${Le(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),cxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbar"}),i=Dn(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:f,className:h,ClickAwayListenerProps:p,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:S,TransitionComponent:w=yC,transitionDuration:b=o,TransitionProps:{onEnter:x,onExited:E}={}}=r,I=Ne(r.TransitionProps,sxe),A=Ne(r,axe),k=$({},r,{anchorOrigin:{vertical:a,horizontal:c},autoHideDuration:u,disableWindowBlurListener:v,TransitionComponent:w,transitionDuration:b}),O=lxe(k),{getRootProps:D,onClickAway:N}=mme($({},k)),[H,G]=R.useState(!0),z=ti({elementType:IH,getSlotProps:D,externalForwardedProps:A,ownerState:k,additionalProps:{ref:n},className:[O.root,h]}),L=j=>{G(!0),E&&E(j)},F=(j,V)=>{G(!1),x&&x(j,V)};return!S&&H?null:C.jsx(Ihe,$({onClickAway:N},p,{children:C.jsx(IH,$({},z,{children:C.jsx(w,$({appear:!0,in:S,timeout:b,direction:a==="top"?"down":"up",onEnter:F,onExited:L},I,{children:f||C.jsx(ixe,$({message:y,action:s},g))}))}))}))}),uxe=cxe;function dxe(e){return Ct("MuiTooltip",e)}const fxe=It("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Ad=fxe,hxe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function pxe(e){return Math.round(e*1e5)/1e5}const mxe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${Le(o.split("-")[0])}`],arrow:["arrow"]};return At(s,dxe,t)},gxe=Ce(yQ,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Ad.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Ad.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Ad.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Ad.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),vxe=Ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${Le(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${pxe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Ad.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Ad.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Ad.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Ad.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),yxe=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let O_=!1,GD=null,Pb={x:0,y:0};function M_(e,t){return n=>{t&&t(n),e(n)}}const bxe=R.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I;const A=Rt({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:O,components:D={},componentsProps:N={},describeChild:H=!1,disableFocusListener:G=!1,disableHoverListener:z=!1,disableInteractive:L=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:V=0,enterTouchDelay:W=700,followCursor:K=!1,id:X,leaveDelay:Q=0,leaveTouchDelay:ie=1500,onClose:ce,onOpen:ue,open:se,placement:J="bottom",PopperComponent:ae,PopperProps:le={},slotProps:he={},slots:pe={},title:ve,TransitionComponent:ye=yC,TransitionProps:xe}=A,me=Ne(A,hxe),be=R.isValidElement(O)?O:C.jsx("span",{children:O}),Ze=Dn(),Xe=Ze.direction==="rtl",[ct,Bt]=R.useState(),[Pe,ze]=R.useState(null),st=R.useRef(!1),gt=L||K,vt=R.useRef(),_e=R.useRef(),je=R.useRef(),Ke=R.useRef(),[Fe,Be]=r1({controlled:se,default:!1,name:"Tooltip",state:"open"});let Pt=Fe;const dt=d4(X),Ie=R.useRef(),at=R.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(Ke.current)},[]);R.useEffect(()=>()=>{clearTimeout(vt.current),clearTimeout(_e.current),clearTimeout(je.current),at()},[at]);const $t=en=>{clearTimeout(GD),O_=!0,Be(!0),ue&&!Pt&&ue(en)},Re=mo(en=>{clearTimeout(GD),GD=setTimeout(()=>{O_=!1},800+Q),Be(!1),ce&&Pt&&ce(en),clearTimeout(vt.current),vt.current=setTimeout(()=>{st.current=!1},Ze.transitions.duration.shortest)}),He=en=>{st.current&&en.type!=="touchstart"||(ct&&ct.removeAttribute("title"),clearTimeout(_e.current),clearTimeout(je.current),j||O_&&V?_e.current=setTimeout(()=>{$t(en)},O_?V:j):$t(en))},xt=en=>{clearTimeout(_e.current),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},Q)},{isFocusVisibleRef:Gt,onBlur:yn,onFocus:Yr,ref:Hr}=f4(),[,Wr]=R.useState(!1),Kr=en=>{yn(en),Gt.current===!1&&(Wr(!1),xt(en))},ci=en=>{ct||Bt(en.currentTarget),Yr(en),Gt.current===!0&&(Wr(!0),He(en))},ps=en=>{st.current=!0;const Ar=be.props;Ar.onTouchStart&&Ar.onTouchStart(en)},ed=He,sa=xt,wc=en=>{ps(en),clearTimeout(je.current),clearTimeout(vt.current),at(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ke.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,He(en)},W)},_c=en=>{be.props.onTouchEnd&&be.props.onTouchEnd(en),at(),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},ie)};R.useEffect(()=>{if(!Pt)return;function en(Ar){(Ar.key==="Escape"||Ar.key==="Esc")&&Re(Ar)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[Re,Pt]);const kf=Tr(be.ref,Hr,Bt,n);!ve&&ve!==0&&(Pt=!1);const ms=R.useRef(),Af=en=>{const Ar=be.props;Ar.onMouseMove&&Ar.onMouseMove(en),Pb={x:en.clientX,y:en.clientY},ms.current&&ms.current.update()},xo={},Sc=typeof ve=="string";H?(xo.title=!Pt&&Sc&&!z?ve:null,xo["aria-describedby"]=Pt?dt:null):(xo["aria-label"]=Sc?ve:null,xo["aria-labelledby"]=Pt&&!Sc?dt:null);const Di=$({},xo,me,be.props,{className:Ue(me.className,be.props.className),onTouchStart:ps,ref:kf},K?{onMouseMove:Af}:{}),gs={};F||(Di.onTouchStart=wc,Di.onTouchEnd=_c),z||(Di.onMouseOver=M_(ed,Di.onMouseOver),Di.onMouseLeave=M_(sa,Di.onMouseLeave),gt||(gs.onMouseOver=ed,gs.onMouseLeave=sa)),G||(Di.onFocus=M_(ci,Di.onFocus),Di.onBlur=M_(Kr,Di.onBlur),gt||(gs.onFocus=ci,gs.onBlur=Kr));const If=R.useMemo(()=>{var en;let Ar=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(en=le.popperOptions)!=null&&en.modifiers&&(Ar=Ar.concat(le.popperOptions.modifiers)),$({},le.popperOptions,{modifiers:Ar})},[Pe,le]),vs=$({},A,{isRtl:Xe,arrow:k,disableInteractive:gt,placement:J,PopperComponentProp:ae,touch:st.current}),Na=mxe(vs),td=(r=(i=pe.popper)!=null?i:D.Popper)!=null?r:gxe,Kn=(o=(s=(a=pe.transition)!=null?a:D.Transition)!=null?s:ye)!=null?o:yC,lr=(c=(u=pe.tooltip)!=null?u:D.Tooltip)!=null?c:vxe,Ll=(f=(h=pe.arrow)!=null?h:D.Arrow)!=null?f:yxe,Dl=ox(td,$({},le,(p=he.popper)!=null?p:N.popper,{className:Ue(Na.popper,le==null?void 0:le.className,(g=(v=he.popper)!=null?v:N.popper)==null?void 0:g.className)}),vs),wo=ox(Kn,$({},xe,(y=he.transition)!=null?y:N.transition),vs),jv=ox(lr,$({},(S=he.tooltip)!=null?S:N.tooltip,{className:Ue(Na.tooltip,(w=(b=he.tooltip)!=null?b:N.tooltip)==null?void 0:w.className)}),vs),Uv=ox(Ll,$({},(x=he.arrow)!=null?x:N.arrow,{className:Ue(Na.arrow,(E=(I=he.arrow)!=null?I:N.arrow)==null?void 0:E.className)}),vs);return C.jsxs(R.Fragment,{children:[R.cloneElement(be,Di),C.jsx(td,$({as:ae??yQ,placement:J,anchorEl:K?{getBoundingClientRect:()=>({top:Pb.y,left:Pb.x,right:Pb.x,bottom:Pb.y,width:0,height:0})}:ct,popperRef:ms,open:ct?Pt:!1,id:dt,transition:!0},gs,Dl,{popperOptions:If,children:({TransitionProps:en})=>C.jsx(Kn,$({timeout:Ze.transitions.duration.shorter},en,wo,{children:C.jsxs(lr,$({},jv,{children:[ve,k?C.jsx(Ll,$({},Uv,{ref:ze})):null]}))}))}))]})}),vf=bxe;function xxe(e){return Ct("MuiSwitch",e)}const wxe=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Lo=wxe,_xe=["className","color","edge","size","sx"],Sxe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,a={root:["root",n&&`edge${Le(n)}`,`size${Le(r)}`],switchBase:["switchBase",`color${Le(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=At(a,xxe,t);return $({},t,c)},Exe=Ce("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${Le(n.edge)}`],t[`size${Le(n.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Lo.thumb}`]:{width:16,height:16},[`& .${Lo.switchBase}`]:{padding:4,[`&.${Lo.checked}`]:{transform:"translateX(16px)"}}})),Cxe=Ce(_Q,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Lo.input}`]:t.input},n.color!=="default"&&t[`color${Le(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Lo.checked}`]:{transform:"translateX(20px)"},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Lo.checked} + .${Lo.track}`]:{opacity:.5},[`&.${Lo.disabled} + .${Lo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Lo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Lo.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Lo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?bv(e.palette[t.color].main,.62):yv(e.palette[t.color].main,.55)}`}},[`&.${Lo.checked} + .${Lo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Txe=Ce("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),kxe=Ce("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Axe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:a="medium",sx:c}=r,u=Ne(r,_xe),f=$({},r,{color:o,edge:s,size:a}),h=Sxe(f),p=C.jsx(kxe,{className:h.thumb,ownerState:f});return C.jsxs(Exe,{className:Ue(h.root,i),sx:c,ownerState:f,children:[C.jsx(Cxe,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},u,{classes:$({},h,{root:h.switchBase})})),C.jsx(Txe,{className:h.track,ownerState:f})]})}),Yg=Axe;function Ixe(e){return Ct("MuiTab",e)}const Rxe=It("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),jh=Rxe,Pxe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Oxe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:c}=e,u={root:["root",o&&s&&"labelIcon",`textColor${Le(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return At(u,Ixe,t)},Mxe=Ce(Yu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${Le(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${jh.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${jh.selected}`]:{opacity:1},[`&.${jh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${jh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${jh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${jh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${jh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Lxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:u="top",indicator:f,label:h,onChange:p,onClick:g,onFocus:v,selected:y,selectionFollowsFocus:S,textColor:w="inherit",value:b,wrapped:x=!1}=r,E=Ne(r,Pxe),I=$({},r,{disabled:o,disableFocusRipple:s,selected:y,icon:!!c,iconPosition:u,label:!!h,fullWidth:a,textColor:w,wrapped:x}),A=Oxe(I),k=c&&h&&R.isValidElement(c)?R.cloneElement(c,{className:Ue(A.iconWrapper,c.props.className)}):c,O=N=>{!y&&p&&p(N,b),g&&g(N)},D=N=>{S&&!y&&p&&p(N,b),v&&v(N)};return C.jsxs(Mxe,$({focusRipple:!s,className:Ue(A.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:O,onFocus:D,ownerState:I,tabIndex:y?0:-1},E,{children:[u==="top"||u==="start"?C.jsxs(R.Fragment,{children:[k,h]}):C.jsxs(R.Fragment,{children:[h,k]}),f]}))}),ng=Lxe;function Dxe(e){return Ct("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const Nxe=["className","component","disableGutters","variant"],Bxe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return At({root:["root",!n&&"gutters",r]},Dxe,t)},$xe=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Fxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,c=Ne(r,Nxe),u=$({},r,{component:o,disableGutters:s,variant:a}),f=Bxe(u);return C.jsx($xe,$({as:o,className:Ue(f.root,i),ref:n,ownerState:u},c))}),zxe=Fxe,jxe=zt(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),Uxe=zt(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Hxe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Wxe(e,t,n,r={},i=()=>{}){const{ease:o=Hxe,duration:s=300}=r;let a=null;const c=t[e];let u=!1;const f=()=>{u=!0},h=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const g=Math.min(1,(p-a)/s);if(t[e]=o(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return c===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const Gxe=["onChange"],Vxe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qxe(e){const{onChange:t}=e,n=Ne(e,Gxe),r=R.useRef(),i=R.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return jo(()=>{const s=PT(()=>{const c=r.current;o(),c!==r.current&&t(r.current)}),a=Du(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),R.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",$({style:Vxe,ref:i},n))}function Xxe(e){return Ct("MuiTabScrollButton",e)}const Yxe=It("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),Kxe=Yxe,Qxe=["className","slots","slotProps","direction","orientation","disabled"],Jxe=e=>{const{classes:t,orientation:n,disabled:r}=e;return At({root:["root",n,r&&"disabled"]},Xxe,t)},Zxe=Ce(Yu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${Kxe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),e1e=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:u}=o,f=Ne(o,Qxe),p=Dn().direction==="rtl",g=$({isRtl:p},o),v=Jxe(g),y=(r=a.StartScrollButtonIcon)!=null?r:jxe,S=(i=a.EndScrollButtonIcon)!=null?i:Uxe,w=ti({elementType:y,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),b=ti({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return C.jsx(Zxe,$({component:"div",className:Ue(v.root,s),ref:n,role:null,ownerState:g,tabIndex:null},f,{children:u==="left"?C.jsx(y,$({},w)):C.jsx(S,$({},b))}))}),t1e=e1e;function n1e(e){return Ct("MuiTabs",e)}const r1e=It("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),VD=r1e,i1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],RH=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,PH=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,L_=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},o1e=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return At({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},n1e,c)},s1e=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${VD.scrollButtons}`]:t.scrollButtons},{[`& .${VD.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${VD.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),a1e=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]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),l1e=Ce("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),c1e=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),u1e=Ce(qxe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),OH={},d1e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabs"}),i=Dn(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:u=!1,children:f,className:h,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:w=t1e,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:I={},TabIndicatorProps:A={},TabScrollButtonProps:k={},textColor:O="primary",value:D,variant:N="standard",visibleScrollbar:H=!1}=r,G=Ne(r,i1e),z=N==="scrollable",L=S==="vertical",F=L?"scrollTop":"scrollLeft",j=L?"top":"left",V=L?"bottom":"right",W=L?"clientHeight":"clientWidth",K=L?"height":"width",X=$({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:S,vertical:L,scrollButtons:b,textColor:O,variant:N,visibleScrollbar:H,fixed:!z,hideScrollbar:z&&!H,scrollableX:z&&!L,scrollableY:z&&L,centered:u&&!z,scrollButtonsHideMobile:!g}),Q=o1e(X),ie=ti({elementType:E.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:X}),ce=ti({elementType:E.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:X}),[ue,se]=R.useState(!1),[J,ae]=R.useState(OH),[le,he]=R.useState(!1),[pe,ve]=R.useState(!1),[ye,xe]=R.useState(!1),[me,be]=R.useState({overflow:"hidden",scrollbarWidth:0}),Ze=new Map,Xe=R.useRef(null),ct=R.useRef(null),Bt=()=>{const Re=Xe.current;let He;if(Re){const Gt=Re.getBoundingClientRect();He={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:Wse(Re,i.direction),scrollWidth:Re.scrollWidth,top:Gt.top,bottom:Gt.bottom,left:Gt.left,right:Gt.right}}let xt;if(Re&&D!==!1){const Gt=ct.current.children;if(Gt.length>0){const yn=Gt[Ze.get(D)];xt=yn?yn.getBoundingClientRect():null}}return{tabsMeta:He,tabMeta:xt}},Pe=mo(()=>{const{tabsMeta:Re,tabMeta:He}=Bt();let xt=0,Gt;if(L)Gt="top",He&&Re&&(xt=He.top-Re.top+Re.scrollTop);else if(Gt=o?"right":"left",He&&Re){const Yr=o?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;xt=(o?-1:1)*(He[Gt]-Re[Gt]+Yr)}const yn={[Gt]:xt,[K]:He?He[K]:0};if(isNaN(J[Gt])||isNaN(J[K]))ae(yn);else{const Yr=Math.abs(J[Gt]-yn[Gt]),Hr=Math.abs(J[K]-yn[K]);(Yr>=1||Hr>=1)&&ae(yn)}}),ze=(Re,{animation:He=!0}={})=>{He?Wxe(F,Xe.current,Re,{duration:i.transitions.duration.standard}):Xe.current[F]=Re},st=Re=>{let He=Xe.current[F];L?He+=Re:(He+=Re*(o?-1:1),He*=o&&wX()==="reverse"?-1:1),ze(He)},gt=()=>{const Re=Xe.current[W];let He=0;const xt=Array.from(ct.current.children);for(let Gt=0;GtRe){Gt===0&&(He=Re);break}He+=yn[W]}return He},vt=()=>{st(-1*gt())},_e=()=>{st(gt())},je=R.useCallback(Re=>{be({overflow:null,scrollbarWidth:Re})},[]),Ke=()=>{const Re={};Re.scrollbarSizeListener=z?C.jsx(u1e,{onChange:je,className:Ue(Q.scrollableX,Q.hideScrollbar)}):null;const xt=z&&(b==="auto"&&(le||pe)||b===!0);return Re.scrollButtonStart=xt?C.jsx(w,$({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:S,direction:o?"right":"left",onClick:vt,disabled:!le},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re.scrollButtonEnd=xt?C.jsx(w,$({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:S,direction:o?"left":"right",onClick:_e,disabled:!pe},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re},Fe=mo(Re=>{const{tabsMeta:He,tabMeta:xt}=Bt();if(!(!xt||!He)){if(xt[j]He[V]){const Gt=He[F]+(xt[V]-He[V]);ze(Gt,{animation:Re})}}}),Be=mo(()=>{z&&b!==!1&&xe(!ye)});R.useEffect(()=>{const Re=PT(()=>{Xe.current&&Pe()}),He=Du(Xe.current);He.addEventListener("resize",Re);let xt;return typeof ResizeObserver<"u"&&(xt=new ResizeObserver(Re),Array.from(ct.current.children).forEach(Gt=>{xt.observe(Gt)})),()=>{Re.clear(),He.removeEventListener("resize",Re),xt&&xt.disconnect()}},[Pe]),R.useEffect(()=>{const Re=Array.from(ct.current.children),He=Re.length;if(typeof IntersectionObserver<"u"&&He>0&&z&&b!==!1){const xt=Re[0],Gt=Re[He-1],yn={root:Xe.current,threshold:.99},Yr=ci=>{he(!ci[0].isIntersecting)},Hr=new IntersectionObserver(Yr,yn);Hr.observe(xt);const Wr=ci=>{ve(!ci[0].isIntersecting)},Kr=new IntersectionObserver(Wr,yn);return Kr.observe(Gt),()=>{Hr.disconnect(),Kr.disconnect()}}},[z,b,ye,f==null?void 0:f.length]),R.useEffect(()=>{se(!0)},[]),R.useEffect(()=>{Pe()}),R.useEffect(()=>{Fe(OH!==J)},[Fe,J]),R.useImperativeHandle(c,()=>({updateIndicator:Pe,updateScrollButtons:Be}),[Pe,Be]);const Pt=C.jsx(c1e,$({},A,{className:Ue(Q.indicator,A.className),ownerState:X,style:$({},J,A.style)}));let dt=0;const Ie=R.Children.map(f,Re=>{if(!R.isValidElement(Re))return null;const He=Re.props.value===void 0?dt:Re.props.value;Ze.set(He,dt);const xt=He===D;return dt+=1,R.cloneElement(Re,$({fullWidth:N==="fullWidth",indicator:xt&&!ue&&Pt,selected:xt,selectionFollowsFocus:x,onChange:y,textColor:O,value:He},dt===1&&D===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),at=Re=>{const He=ct.current,xt=Fr(He).activeElement;if(xt.getAttribute("role")!=="tab")return;let yn=S==="horizontal"?"ArrowLeft":"ArrowUp",Yr=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(yn="ArrowRight",Yr="ArrowLeft"),Re.key){case yn:Re.preventDefault(),L_(He,xt,PH);break;case Yr:Re.preventDefault(),L_(He,xt,RH);break;case"Home":Re.preventDefault(),L_(He,null,RH);break;case"End":Re.preventDefault(),L_(He,null,PH);break}},$t=Ke();return C.jsxs(s1e,$({className:Ue(Q.root,h),ownerState:X,ref:n,as:p},G,{children:[$t.scrollButtonStart,$t.scrollbarSizeListener,C.jsxs(a1e,{className:Q.scroller,ownerState:X,style:{overflow:me.overflow,[L?`margin${o?"Left":"Right"}`:"marginBottom"]:H?void 0:-me.scrollbarWidth},ref:Xe,children:[C.jsx(l1e,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:Q.flexContainer,ownerState:X,onKeyDown:at,ref:ct,role:"tablist",children:Ie}),ue&&Pt]}),$t.scrollButtonEnd]}))}),f1e=d1e;function h1e(e){return Ct("MuiTextField",e)}It("MuiTextField",["root"]);const p1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],m1e={standard:RQ,filled:TQ,outlined:BQ},g1e=e=>{const{classes:t}=e;return At({root:["root"]},h1e,t)},v1e=Ce(Bve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),y1e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:a,color:c="primary",defaultValue:u,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:v,id:y,InputLabelProps:S,inputProps:w,InputProps:b,inputRef:x,label:E,maxRows:I,minRows:A,multiline:k=!1,name:O,onBlur:D,onChange:N,onFocus:H,placeholder:G,required:z=!1,rows:L,select:F=!1,SelectProps:j,type:V,value:W,variant:K="outlined"}=r,X=Ne(r,p1e),Q=$({},r,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:g,multiline:k,required:z,select:F,variant:K}),ie=g1e(Q),ce={};K==="outlined"&&(S&&typeof S.shrink<"u"&&(ce.notched=S.shrink),ce.label=E),F&&((!j||!j.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const ue=d4(y),se=v&&ue?`${ue}-helper-text`:void 0,J=E&&ue?`${ue}-label`:void 0,ae=m1e[K],le=C.jsx(ae,$({"aria-describedby":se,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:g,multiline:k,name:O,rows:L,maxRows:I,minRows:A,type:V,value:W,id:ue,inputRef:x,onBlur:D,onChange:N,onFocus:H,placeholder:G,inputProps:w},ce,b));return C.jsxs(v1e,$({className:Ue(ie.root,a),disabled:f,error:h,fullWidth:g,ref:n,required:z,color:c,variant:K,ownerState:Q},X,{children:[E!=null&&E!==""&&C.jsx(_ye,$({htmlFor:ue,id:J},S,{children:E})),F?C.jsx(Obe,$({"aria-describedby":se,id:ue,labelId:J,value:W,input:le},j,{children:s})):le,v&&C.jsx(Zve,$({id:se},p,{children:v}))]}))}),Ew=y1e;function En({vertical:e,...t}){return C.jsx(ht,{position:"relative",height:"100%",width:"100%",display:"flex",flexDirection:e?"column":"row",...t})}const FQ=zt(C.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),b1e=zt(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),x1e=zt(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),w1e=zt(C.jsx("path",{d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1z"}),"ArrowOutwardRounded"),_1e=zt(C.jsx("path",{d:"M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-3-3c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3-6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm3 6c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-4c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm2-3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}),"BlurCircularOutlined"),S1e=zt(C.jsx("path",{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"BlurOnOutlined"),E1e=zt(C.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65C8.03 15.48 8 15.23 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18c.31-.08.63-.12.94-.12.32 0 .63.04.95.12l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"}),"BugReportOutlined"),C1e=zt(C.jsx("path",{d:"M17 12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm-5 3c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm-7 0H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}),"CenterFocusStrongOutlined"),T1e=zt(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined"),k1e=zt(C.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 12 19 6.41z"}),"ClearOutlined"),zQ=zt(C.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 12 19 6.41z"}),"CloseOutlined"),A1e=zt(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"CodeOutlined"),I1e=zt(C.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"}),"CropFreeOutlined"),R1e=zt(C.jsx("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleOutlined"),jk=zt(C.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),P1e=zt(C.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),jQ=zt(C.jsx("path",{d:"M15 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v6h-2V9h-5V4H6v16h9v2zm4-.34v-2.24l2.95 2.95 1.41-1.41L20.41 18h2.24v-2H17v5.66h2z"}),"FileOpenOutlined"),O1e=zt(C.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),M1e=zt(C.jsx("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20zM7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12z"}),"HideSourceOutlined"),L1e=zt(C.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),D1e=zt(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),N1e=zt(C.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"}),"LabelOutlined"),Cw=zt(C.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}),"LayersOutlined"),UQ=zt(C.jsx("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListOutlined"),B1e=zt(C.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertOutlined"),$1e=zt(C.jsx("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),F1e=zt(C.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}),"PlaceOutlined"),z1e=zt(C.jsx("path",{d:"M10 8.64 15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z"}),"PlayArrowOutlined"),HQ=zt(C.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplayOutlined"),j1e=zt(C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined"),U1e=zt(C.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),H1e=zt(C.jsx("path",{d:"m6 18 8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z"}),"SkipNextOutlined"),W1e=zt(C.jsx("path",{d:"M6 6h2v12H6zm3.5 6 8.5 6V6l-8.5 6zm6.5 2.14L12.97 12 16 9.86v4.28z"}),"SkipPreviousOutlined"),dE=zt(C.jsx("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortOutlined"),G1e=zt(C.jsx("path",{d:"M16 8v8H8V8h8m2-2H6v12h12V6z"}),"StopOutlined"),V1e=zt(C.jsx("path",{d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"}),"TripOriginOutlined"),MH=zt(C.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zm0-16H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6H5V5h14v4z"}),"ViewAgendaOutlined"),WQ=zt(C.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2V4zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1zM20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3zm1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2v2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73zm-8 2.3-4-2.3v-4.63l4 2.33v4.6zm1-6.33L8.04 8.53 12 6.25l3.96 2.28L12 10.84zm5 4.03-4 2.3v-4.6l4-2.33v4.63z"}),"ViewInArOutlined"),q1e=zt(C.jsx("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),X1e=zt(C.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined");var xC={exports:{}};/** + `),Pye)),$ye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiLinearProgress"}),{className:i,color:o="primary",value:s,valueBuffer:a,variant:c="indeterminate"}=r,u=Ne(r,Iye),f=$({},r,{color:o,variant:c}),h=Mye(f),p=Ln(),g={},v={bar1:{},bar2:{}};if((c==="determinate"||c==="buffer")&&s!==void 0){g["aria-valuenow"]=Math.round(s),g["aria-valuemin"]=0,g["aria-valuemax"]=100;let y=s-100;p.direction==="rtl"&&(y=-y),v.bar1.transform=`translateX(${y}%)`}if(c==="buffer"&&a!==void 0){let y=(a||0)-100;p.direction==="rtl"&&(y=-y),v.bar2.transform=`translateX(${y}%)`}return C.jsxs(Dye,$({className:Ue(h.root,i),ownerState:f,role:"progressbar"},g,{ref:n},u,{children:[c==="buffer"?C.jsx(Lye,{className:h.dashed,ownerState:f}):null,C.jsx(Nye,{className:h.bar1,ownerState:f,style:v.bar1}),c==="determinate"?null:C.jsx(Bye,{className:h.bar2,ownerState:f,style:v.bar2})]}))}),Fye=$ye,zye=R.createContext({}),Ta=zye;function jye(e){return Ct("MuiList",e)}It("MuiList",["root","padding","dense","subheader"]);const Uye=["children","className","component","dense","disablePadding","subheader"],Hye=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return At({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},jye,t)},Wye=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]}})(({ownerState:e})=>$({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),Gye=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiList"}),{children:i,className:o,component:s="ul",dense:a=!1,disablePadding:c=!1,subheader:u}=r,f=Ne(r,Uye),h=R.useMemo(()=>({dense:a}),[a]),p=$({},r,{component:s,dense:a,disablePadding:c}),g=Hye(p);return C.jsx(Ta.Provider,{value:h,children:C.jsxs(Wye,$({as:s,className:Ue(g.root,o),ref:n,ownerState:p},f,{children:[u,i]}))})}),Yg=Gye;function Vye(e){return Ct("MuiListItem",e)}const qye=It("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),Mm=qye;function Xye(e){return Ct("MuiListItemButton",e)}const Yye=It("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),Dm=Yye,Kye=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],Qye=(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]},Jye=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:o,divider:s,selected:a}=e,u=At({root:["root",r&&"dense",!o&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",a&&"selected"]},Xye,n);return $({},n,u)},Zye=Ce(Ku,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:Qye})(({theme:e,ownerState:t})=>$({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"}},[`&.${Dm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Dm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Dm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(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})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Dm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Dm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.alignItems==="flex-start"&&{alignItems:"flex-start"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.dense&&{paddingTop:4,paddingBottom:4})),e0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:o=!1,component:s="div",children:a,dense:c=!1,disableGutters:u=!1,divider:f=!1,focusVisibleClassName:h,selected:p=!1,className:g}=r,v=Ne(r,Kye),y=R.useContext(Ta),S=R.useMemo(()=>({dense:c||y.dense||!1,alignItems:i,disableGutters:u}),[i,y.dense,c,u]),w=R.useRef(null);jo(()=>{o&&w.current&&w.current.focus()},[o]);const b=$({},r,{alignItems:i,dense:S.dense,disableGutters:u,divider:f,selected:p}),x=Jye(b),E=Tr(w,n);return C.jsx(Ta.Provider,{value:S,children:C.jsx(Zye,$({ref:E,href:v.href||v.to,component:(v.href||v.to)&&s==="div"?"button":s,focusVisibleClassName:Ue(x.focusVisible,h),ownerState:b,className:Ue(x.root,g)},v,{classes:x,children:a}))})}),i3=e0e;function t0e(e){return Ct("MuiListItemSecondaryAction",e)}It("MuiListItemSecondaryAction",["root","disableGutters"]);const n0e=["className"],r0e=e=>{const{disableGutters:t,classes:n}=e;return At({root:["root",t&&"disableGutters"]},t0e,n)},i0e=Ce("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>$({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),MQ=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,o=Ne(r,n0e),s=R.useContext(Ta),a=$({},r,{disableGutters:s.disableGutters}),c=r0e(a);return C.jsx(i0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))});MQ.muiName="ListItemSecondaryAction";const o0e=MQ,s0e=["className"],a0e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],l0e=(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,!n.disablePadding&&t.padding,n.button&&t.button,n.hasSecondaryAction&&t.secondaryAction]},c0e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:o,disableGutters:s,disablePadding:a,divider:c,hasSecondaryAction:u,selected:f}=e;return At({root:["root",i&&"dense",!s&&"gutters",!a&&"padding",c&&"divider",o&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",f&&"selected"],container:["container"]},Vye,r)},u0e=Ce("div",{name:"MuiListItem",slot:"Root",overridesResolver:l0e})(({theme:e,ownerState:t})=>$({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&$({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Dm.root}`]:{paddingRight:48}},{[`&.${Mm.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Mm.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Mm.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Mm.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.alignItems==="flex-start"&&{alignItems:"flex-start"},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},t.button&&{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"}},[`&.${Mm.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(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})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),d0e=Ce("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),f0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:o=!1,button:s=!1,children:a,className:c,component:u,components:f={},componentsProps:h={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:v=!1,disabled:y=!1,disableGutters:S=!1,disablePadding:w=!1,divider:b=!1,focusVisibleClassName:x,secondaryAction:E,selected:I=!1,slotProps:A={},slots:k={}}=r,O=Ne(r.ContainerProps,s0e),L=Ne(r,a0e),N=R.useContext(Ta),H=R.useMemo(()=>({dense:v||N.dense||!1,alignItems:i,disableGutters:S}),[i,N.dense,v,S]),G=R.useRef(null);jo(()=>{o&&G.current&&G.current.focus()},[o]);const z=R.Children.toArray(a),D=z.length&&QS(z[z.length-1],["ListItemSecondaryAction"]),F=$({},r,{alignItems:i,autoFocus:o,button:s,dense:H.dense,disabled:y,disableGutters:S,disablePadding:w,divider:b,hasSecondaryAction:D,selected:I}),j=c0e(F),V=Tr(G,n),W=k.root||f.Root||u0e,K=A.root||h.root||{},X=$({className:Ue(j.root,K.className,c),disabled:y},L);let Q=u||"li";return s&&(X.component=u||"div",X.focusVisibleClassName=Ue(Mm.focusVisible,x),Q=Ku),D?(Q=!X.component&&!u?"div":Q,p==="li"&&(Q==="li"?Q="div":X.component==="li"&&(X.component="div")),C.jsx(Ta.Provider,{value:H,children:C.jsxs(d0e,$({as:p,className:Ue(j.container,g),ref:V,ownerState:F},O,{children:[C.jsx(W,$({},K,!rc(W)&&{as:Q,ownerState:$({},F,K.ownerState)},X,{children:z})),z.pop()]}))})):C.jsx(Ta.Provider,{value:H,children:C.jsxs(W,$({},K,{as:Q,ref:V},!rc(W)&&{ownerState:$({},F,K.ownerState)},X,{children:[z,E&&C.jsx(o0e,{children:E})]}))})}),Fx=f0e;function h0e(e){return Ct("MuiListItemAvatar",e)}It("MuiListItemAvatar",["root","alignItemsFlexStart"]);const p0e=["className"],m0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},h0e,n)},g0e=Ce("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>$({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),v0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemAvatar"}),{className:i}=r,o=Ne(r,p0e),s=R.useContext(Ta),a=$({},r,{alignItems:s.alignItems}),c=m0e(a);return C.jsx(g0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),y0e=v0e;function b0e(e){return Ct("MuiListItemIcon",e)}const x0e=It("MuiListItemIcon",["root","alignItemsFlexStart"]),SH=x0e,w0e=["className"],_0e=e=>{const{alignItems:t,classes:n}=e;return At({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},b0e,n)},S0e=Ce("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>$({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),E0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemIcon"}),{className:i}=r,o=Ne(r,w0e),s=R.useContext(Ta),a=$({},r,{alignItems:s.alignItems}),c=_0e(a);return C.jsx(S0e,$({className:Ue(c.root,i),ownerState:a,ref:n},o))}),Gd=E0e;function C0e(e){return Ct("MuiListItemText",e)}const T0e=It("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),xC=T0e,k0e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],A0e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:o}=e;return At({root:["root",n&&"inset",o&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},C0e,t)},I0e=Ce("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${xC.primary}`]:t.primary},{[`& .${xC.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>$({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),R0e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiListItemText"}),{children:i,className:o,disableTypography:s=!1,inset:a=!1,primary:c,primaryTypographyProps:u,secondary:f,secondaryTypographyProps:h}=r,p=Ne(r,k0e),{dense:g}=R.useContext(Ta);let v=c??i,y=f;const S=$({},r,{disableTypography:s,inset:a,primary:!!v,secondary:!!y,dense:g}),w=A0e(S);return v!=null&&v.type!==Ut&&!s&&(v=C.jsx(Ut,$({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:v}))),y!=null&&y.type!==Ut&&!s&&(y=C.jsx(Ut,$({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},h,{children:y}))),C.jsxs(I0e,$({className:Ue(w.root,o),ownerState:S,ref:n},p,{children:[v,y]}))}),oc=R0e,P0e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function GL(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function EH(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function DQ(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.indexOf(t.keys.join(""))===0}function Rb(e,t,n,r,i,o){let s=!1,a=i(e,t,t?n:!1);for(;a;){if(a===e.firstChild){if(s)return!1;s=!0}const c=r?!1:a.disabled||a.getAttribute("aria-disabled")==="true";if(!a.hasAttribute("tabindex")||!DQ(a,o)||c)a=i(e,a,n);else return a.focus(),!0}return!1}const O0e=R.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:o=!1,children:s,className:a,disabledItemsFocusable:c=!1,disableListWrap:u=!1,onKeyDown:f,variant:h="selectedMenu"}=t,p=Ne(t,P0e),g=R.useRef(null),v=R.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});jo(()=>{i&&g.current.focus()},[i]),R.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(x,E)=>{const I=!g.current.style.width;if(x.clientHeight{const E=g.current,I=x.key,A=Fr(E).activeElement;if(I==="ArrowDown")x.preventDefault(),Rb(E,A,u,c,GL);else if(I==="ArrowUp")x.preventDefault(),Rb(E,A,u,c,EH);else if(I==="Home")x.preventDefault(),Rb(E,null,u,c,GL);else if(I==="End")x.preventDefault(),Rb(E,null,u,c,EH);else if(I.length===1){const k=v.current,O=I.toLowerCase(),L=performance.now();k.keys.length>0&&(L-k.lastTime>500?(k.keys=[],k.repeating=!0,k.previousKeyMatched=!0):k.repeating&&O!==k.keys[0]&&(k.repeating=!1)),k.lastTime=L,k.keys.push(O);const N=A&&!k.repeating&&DQ(A,k);k.previousKeyMatched&&(N||Rb(E,A,!1,c,GL,k))?x.preventDefault():k.previousKeyMatched=!1}f&&f(x)},S=Tr(g,n);let w=-1;R.Children.forEach(s,(x,E)=>{if(!R.isValidElement(x)){w===E&&(w+=1,w>=s.length&&(w=-1));return}x.props.disabled||(h==="selectedMenu"&&x.props.selected||w===-1)&&(w=E),w===E&&(x.props.disabled||x.props.muiSkipListHighlight||x.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const b=R.Children.map(s,(x,E)=>{if(E===w){const I={};return o&&(I.autoFocus=!0),x.props.tabIndex===void 0&&h==="selectedMenu"&&(I.tabIndex=0),R.cloneElement(x,I)}return x});return C.jsx(Yg,$({role:"menu",ref:S,className:a,onKeyDown:y,tabIndex:i?0:-1},p,{children:b}))}),Uk=O0e;function M0e(e){return Ct("MuiPopover",e)}It("MuiPopover",["root","paper"]);const D0e=["onEntering"],L0e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],N0e=["slotProps"];function CH(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function TH(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function kH(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function VL(e){return typeof e=="function"?e():e}const B0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"]},M0e,t)},$0e=Ce(CQ,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),LQ=Ce(Cv,{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}),F0e=R.forwardRef(function(t,n){var r,i,o;const s=Rt({props:t,name:"MuiPopover"}),{action:a,anchorEl:c,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:f,anchorReference:h="anchorEl",children:p,className:g,container:v,elevation:y=8,marginThreshold:S=16,open:w,PaperProps:b={},slots:x,slotProps:E,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:A=bC,transitionDuration:k="auto",TransitionProps:{onEntering:O}={},disableScrollLock:L=!1}=s,N=Ne(s.TransitionProps,D0e),H=Ne(s,L0e),G=(r=E==null?void 0:E.paper)!=null?r:b,z=R.useRef(),D=Tr(z,G.ref),F=$({},s,{anchorOrigin:u,anchorReference:h,elevation:y,marginThreshold:S,externalPaperSlotProps:G,transformOrigin:I,TransitionComponent:A,transitionDuration:k,TransitionProps:N}),j=B0e(F),V=R.useCallback(()=>{if(h==="anchorPosition")return f;const xe=VL(c),be=(xe&&xe.nodeType===1?xe:Fr(z.current).body).getBoundingClientRect();return{top:be.top+CH(be,u.vertical),left:be.left+TH(be,u.horizontal)}},[c,u.horizontal,u.vertical,f,h]),W=R.useCallback(xe=>({vertical:CH(xe,I.vertical),horizontal:TH(xe,I.horizontal)}),[I.horizontal,I.vertical]),K=R.useCallback(xe=>{const me={width:xe.offsetWidth,height:xe.offsetHeight},be=W(me);if(h==="none")return{top:null,left:null,transformOrigin:kH(be)};const Ze=V();let Xe=Ze.top-be.vertical,ct=Ze.left-be.horizontal;const Bt=Xe+me.height,Pe=ct+me.width,ze=Nu(VL(c)),st=ze.innerHeight-S,gt=ze.innerWidth-S;if(S!==null&&Xest){const vt=Bt-st;Xe-=vt,be.vertical+=vt}if(S!==null&&ctgt){const vt=Pe-gt;ct-=vt,be.horizontal+=vt}return{top:`${Math.round(Xe)}px`,left:`${Math.round(ct)}px`,transformOrigin:kH(be)}},[c,h,V,W,S]),[X,Q]=R.useState(w),ie=R.useCallback(()=>{const xe=z.current;if(!xe)return;const me=K(xe);me.top!==null&&(xe.style.top=me.top),me.left!==null&&(xe.style.left=me.left),xe.style.transformOrigin=me.transformOrigin,Q(!0)},[K]);R.useEffect(()=>(L&&window.addEventListener("scroll",ie),()=>window.removeEventListener("scroll",ie)),[c,L,ie]);const ce=(xe,me)=>{O&&O(xe,me),ie()},ue=()=>{Q(!1)};R.useEffect(()=>{w&&ie()}),R.useImperativeHandle(a,()=>w?{updatePosition:()=>{ie()}}:null,[w,ie]),R.useEffect(()=>{if(!w)return;const xe=OT(()=>{ie()}),me=Nu(c);return me.addEventListener("resize",xe),()=>{xe.clear(),me.removeEventListener("resize",xe)}},[c,w,ie]);let se=k;k==="auto"&&!A.muiSupportAuto&&(se=void 0);const J=v||(c?Fr(VL(c)).body:void 0),ae=(i=x==null?void 0:x.root)!=null?i:$0e,le=(o=x==null?void 0:x.paper)!=null?o:LQ,he=ti({elementType:le,externalSlotProps:$({},G,{style:X?G.style:$({},G.style,{opacity:0})}),additionalProps:{elevation:y,ref:D},ownerState:F,className:Ue(j.paper,G==null?void 0:G.className)}),pe=ti({elementType:ae,externalSlotProps:(E==null?void 0:E.root)||{},externalForwardedProps:H,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:J,open:w},ownerState:F,className:Ue(j.root,g)}),{slotProps:ve}=pe,ye=Ne(pe,N0e);return C.jsx(ae,$({},ye,!rc(ae)&&{slotProps:ve,disableScrollLock:L},{children:C.jsx(A,$({appear:!0,in:w,onEntering:ce,onExited:ue,timeout:se},N,{children:C.jsx(le,$({},he,{children:p}))}))}))}),z0e=F0e;function j0e(e){return Ct("MuiMenu",e)}It("MuiMenu",["root","paper","list"]);const U0e=["onEntering"],H0e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],W0e={vertical:"top",horizontal:"right"},G0e={vertical:"top",horizontal:"left"},V0e=e=>{const{classes:t}=e;return At({root:["root"],paper:["paper"],list:["list"]},j0e,t)},q0e=Ce(z0e,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),X0e=Ce(LQ,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),Y0e=Ce(Uk,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),K0e=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:a,className:c,disableAutoFocusItem:u=!1,MenuListProps:f={},onClose:h,open:p,PaperProps:g={},PopoverClasses:v,transitionDuration:y="auto",TransitionProps:{onEntering:S}={},variant:w="selectedMenu",slots:b={},slotProps:x={}}=o,E=Ne(o.TransitionProps,U0e),I=Ne(o,H0e),A=Ln(),k=A.direction==="rtl",O=$({},o,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:f,onEntering:S,PaperProps:g,transitionDuration:y,TransitionProps:E,variant:w}),L=V0e(O),N=s&&!u&&p,H=R.useRef(null),G=(K,X)=>{H.current&&H.current.adjustStyleForScrollbar(K,A),S&&S(K,X)},z=K=>{K.key==="Tab"&&(K.preventDefault(),h&&h(K,"tabKeyDown"))};let D=-1;R.Children.map(a,(K,X)=>{R.isValidElement(K)&&(K.props.disabled||(w==="selectedMenu"&&K.props.selected||D===-1)&&(D=X))});const F=(r=b.paper)!=null?r:X0e,j=(i=x.paper)!=null?i:g,V=ti({elementType:b.root,externalSlotProps:x.root,ownerState:O,className:[L.root,c]}),W=ti({elementType:F,externalSlotProps:j,ownerState:O,className:L.paper});return C.jsx(q0e,$({onClose:h,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?W0e:G0e,slots:{paper:F,root:b.root},slotProps:{root:V,paper:W},open:p,ref:n,transitionDuration:y,TransitionProps:$({onEntering:G},E),ownerState:O},I,{classes:v,children:C.jsx(Y0e,$({onKeyDown:z,actions:H,autoFocus:s&&(D===-1||u),autoFocusItem:N,variant:w},f,{className:Ue(L.list,f.className),children:a}))}))}),rm=K0e;function Q0e(e){return Ct("MuiMenuItem",e)}const J0e=It("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),Pb=J0e,Z0e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],ebe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},tbe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:o,classes:s}=e,c=At({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",o&&"selected"]},Q0e,s);return $({},s,c)},nbe=Ce(Ku,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:ebe})(({theme:e,ownerState:t})=>$({},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"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Pb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Pb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:kn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Pb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:kn(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})`:kn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Pb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Pb.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${pH.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${pH.inset}`]:{marginLeft:52},[`& .${xC.root}`]:{marginTop:0,marginBottom:0},[`& .${xC.inset}`]:{paddingLeft:36},[`& .${SH.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&$({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${SH.root} svg`]:{fontSize:"1.25rem"}}))),rbe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:o="li",dense:s=!1,divider:a=!1,disableGutters:c=!1,focusVisibleClassName:u,role:f="menuitem",tabIndex:h,className:p}=r,g=Ne(r,Z0e),v=R.useContext(Ta),y=R.useMemo(()=>({dense:s||v.dense||!1,disableGutters:c}),[v.dense,s,c]),S=R.useRef(null);jo(()=>{i&&S.current&&S.current.focus()},[i]);const w=$({},r,{dense:y.dense,divider:a,disableGutters:c}),b=tbe(r),x=Tr(S,n);let E;return r.disabled||(E=h!==void 0?h:-1),C.jsx(Ta.Provider,{value:y,children:C.jsx(nbe,$({ref:x,role:f,tabIndex:E,component:o,focusVisibleClassName:Ue(b.focusVisible,u),className:Ue(b.root,p)},g,{ownerState:w,classes:b}))})}),Pu=rbe;function ibe(e){return Ct("MuiNativeSelect",e)}const obe=It("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),zz=obe,sbe=["className","disabled","error","IconComponent","inputRef","variant"],abe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${De(n)}`,o&&"iconOpen",r&&"disabled"]};return At(a,ibe,t)},NQ=({ownerState:e,theme:t})=>$({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":$({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${zz.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(t.vars||t).palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},e.variant==="filled"&&{"&&&":{paddingRight:32}},e.variant==="outlined"&&{borderRadius:(t.vars||t).shape.borderRadius,"&:focus":{borderRadius:(t.vars||t).shape.borderRadius},"&&&":{paddingRight:32}}),lbe=Ce("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:Da,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${zz.multiple}`]:t.multiple}]}})(NQ),BQ=({ownerState:e,theme:t})=>$({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${zz.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),cbe=Ce("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${De(n.variant)}`],n.open&&t.iconOpen]}})(BQ),ube=R.forwardRef(function(t,n){const{className:r,disabled:i,error:o,IconComponent:s,inputRef:a,variant:c="standard"}=t,u=Ne(t,sbe),f=$({},t,{disabled:i,variant:c,error:o}),h=abe(f);return C.jsxs(R.Fragment,{children:[C.jsx(lbe,$({ownerState:f,className:Ue(h.select,r),disabled:i,ref:a||n},u)),t.multiple?null:C.jsx(cbe,{as:s,ownerState:f,className:h.icon})]})}),dbe=ube;var AH;const fbe=["children","classes","className","label","notched"],hbe=Ce("fieldset")({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%"}),pbe=Ce("legend")(({ownerState:e,theme:t})=>$({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&$({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function mbe(e){const{className:t,label:n,notched:r}=e,i=Ne(e,fbe),o=n!=null&&n!=="",s=$({},e,{notched:r,withLabel:o});return C.jsx(hbe,$({"aria-hidden":!0,className:t,ownerState:s},i,{children:C.jsx(pbe,{ownerState:s,children:o?C.jsx("span",{children:n}):AH||(AH=C.jsx("span",{className:"notranslate",children:"​"}))})}))}const gbe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],vbe=e=>{const{classes:t}=e,r=At({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},Ume,t);return $({},t,r)},ybe=Ce(Bk,{shouldForwardProp:e=>Da(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Lk})(({theme:e,ownerState:t})=>{const n=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 .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${id.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${id.focused} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${id.error} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${id.disabled} .${id.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&$({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),bbe=Ce(mbe,{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(e,t)=>t.notchedOutline})(({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}}),xbe=Ce($k,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Nk})(({theme:e,ownerState:t})=>$({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"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),$Q=R.forwardRef(function(t,n){var r,i,o,s,a;const c=Rt({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:f=!1,inputComponent:h="input",label:p,multiline:g=!1,notched:v,slots:y={},type:S="text"}=c,w=Ne(c,gbe),b=vbe(c),x=yf(),E=nm({props:c,muiFormControl:x,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=$({},c,{color:E.color||"primary",disabled:E.disabled,error:E.error,focused:E.focused,formControl:x,fullWidth:f,hiddenLabel:E.hiddenLabel,multiline:g,size:E.size,type:S}),A=(r=(i=y.root)!=null?i:u.Root)!=null?r:ybe,k=(o=(s=y.input)!=null?s:u.Input)!=null?o:xbe;return C.jsx(Fk,$({slots:{root:A,input:k},renderSuffix:O=>C.jsx(bbe,{ownerState:I,className:b.notchedOutline,label:p!=null&&p!==""&&E.required?a||(a=C.jsxs(R.Fragment,{children:[p," ","*"]})):p,notched:typeof v<"u"?v:!!(O.startAdornment||O.filled||O.focused)}),fullWidth:f,inputComponent:h,multiline:g,ref:n,type:S},w,{classes:$({},b,{notchedOutline:null})}))});$Q.muiName="Input";const FQ=$Q;function wbe(e){return Ct("MuiSelect",e)}const _be=It("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),Ob=_be;var IH;const Sbe=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","error","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],Ebe=Ce("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${Ob.select}`]:t.select},{[`&.${Ob.select}`]:t[n.variant]},{[`&.${Ob.error}`]:t.error},{[`&.${Ob.multiple}`]:t.multiple}]}})(NQ,{[`&.${Ob.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Cbe=Ce("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${De(n.variant)}`],n.open&&t.iconOpen]}})(BQ),Tbe=Ce("input",{shouldForwardProp:e=>D4(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 RH(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function kbe(e){return e==null||typeof e=="string"&&!e.trim()}const Abe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:o,error:s}=e,a={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${De(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return At(a,wbe,t)},Ibe=R.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":o,autoFocus:s,autoWidth:a,children:c,className:u,defaultOpen:f,defaultValue:h,disabled:p,displayEmpty:g,error:v=!1,IconComponent:y,inputRef:S,labelId:w,MenuProps:b={},multiple:x,name:E,onBlur:I,onChange:A,onClose:k,onFocus:O,onOpen:L,open:N,readOnly:H,renderValue:G,SelectDisplayProps:z={},tabIndex:D,value:F,variant:j="standard"}=t,V=Ne(t,Sbe),[W,K]=o1({controlled:F,default:h,name:"Select"}),[X,Q]=o1({controlled:N,default:f,name:"Select"}),ie=R.useRef(null),ce=R.useRef(null),[ue,se]=R.useState(null),{current:J}=R.useRef(N!=null),[ae,le]=R.useState(),he=Tr(n,S),pe=R.useCallback(Ie=>{ce.current=Ie,Ie&&se(Ie)},[]),ve=ue==null?void 0:ue.parentNode;R.useImperativeHandle(he,()=>({focus:()=>{ce.current.focus()},node:ie.current,value:W}),[W]),R.useEffect(()=>{f&&X&&ue&&!J&&(le(a?null:ve.clientWidth),ce.current.focus())},[ue,a]),R.useEffect(()=>{s&&ce.current.focus()},[s]),R.useEffect(()=>{if(!w)return;const Ie=Fr(ce.current).getElementById(w);if(Ie){const at=()=>{getSelection().isCollapsed&&ce.current.focus()};return Ie.addEventListener("click",at),()=>{Ie.removeEventListener("click",at)}}},[w]);const ye=(Ie,at)=>{Ie?L&&L(at):k&&k(at),J||(le(a?null:ve.clientWidth),Q(Ie))},xe=Ie=>{Ie.button===0&&(Ie.preventDefault(),ce.current.focus(),ye(!0,Ie))},me=Ie=>{ye(!1,Ie)},be=R.Children.toArray(c),Ze=Ie=>{const at=be.find(zt=>zt.props.value===Ie.target.value);at!==void 0&&(K(at.props.value),A&&A(Ie,at))},Xe=Ie=>at=>{let zt;if(at.currentTarget.hasAttribute("tabindex")){if(x){zt=Array.isArray(W)?W.slice():[];const Re=W.indexOf(Ie.props.value);Re===-1?zt.push(Ie.props.value):zt.splice(Re,1)}else zt=Ie.props.value;if(Ie.props.onClick&&Ie.props.onClick(at),W!==zt&&(K(zt),A)){const Re=at.nativeEvent||at,He=new Re.constructor(Re.type,Re);Object.defineProperty(He,"target",{writable:!0,value:{value:zt,name:E}}),A(He,Ie)}x||ye(!1,at)}},ct=Ie=>{H||[" ","ArrowUp","ArrowDown","Enter"].indexOf(Ie.key)!==-1&&(Ie.preventDefault(),ye(!0,Ie))},Bt=ue!==null&&X,Pe=Ie=>{!Bt&&I&&(Object.defineProperty(Ie,"target",{writable:!0,value:{value:W,name:E}}),I(Ie))};delete V["aria-invalid"];let ze,st;const gt=[];let vt=!1;(yC({value:W})||g)&&(G?ze=G(W):vt=!0);const _e=be.map(Ie=>{if(!R.isValidElement(Ie))return null;let at;if(x){if(!Array.isArray(W))throw new Error(Zd(2));at=W.some(zt=>RH(zt,Ie.props.value)),at&&vt&>.push(Ie.props.children)}else at=RH(W,Ie.props.value),at&&vt&&(st=Ie.props.children);return R.cloneElement(Ie,{"aria-selected":at?"true":"false",onClick:Xe(Ie),onKeyUp:zt=>{zt.key===" "&&zt.preventDefault(),Ie.props.onKeyUp&&Ie.props.onKeyUp(zt)},role:"option",selected:at,value:void 0,"data-value":Ie.props.value})});vt&&(x?gt.length===0?ze=null:ze=gt.reduce((Ie,at,zt)=>(Ie.push(at),zt{const{classes:t}=e;return t},jz={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>Da(e)&&e!=="variant",slot:"Root"},Dbe=Ce(OQ,jz)(""),Lbe=Ce(FQ,jz)(""),Nbe=Ce(AQ,jz)(""),zQ=R.forwardRef(function(t,n){const r=Rt({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:o,classes:s={},className:a,defaultOpen:c=!1,displayEmpty:u=!1,IconComponent:f=Vme,id:h,input:p,inputProps:g,label:v,labelId:y,MenuProps:S,multiple:w=!1,native:b=!1,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:k,variant:O="outlined"}=r,L=Ne(r,Pbe),N=b?dbe:Rbe,H=yf(),G=nm({props:r,muiFormControl:H,states:["variant","error"]}),z=G.variant||O,D=$({},r,{variant:z,classes:s}),F=Mbe(D),j=Ne(F,Obe),V=p||{standard:C.jsx(Dbe,{ownerState:D}),outlined:C.jsx(Lbe,{label:v,ownerState:D}),filled:C.jsx(Nbe,{ownerState:D})}[z],W=Tr(n,V.ref);return C.jsx(R.Fragment,{children:R.cloneElement(V,$({inputComponent:N,inputProps:$({children:o,error:G.error,IconComponent:f,variant:z,type:void 0,multiple:w},b?{id:h}:{autoWidth:i,defaultOpen:c,displayEmpty:u,labelId:y,MenuProps:S,onClose:x,onOpen:E,open:I,renderValue:A,SelectDisplayProps:$({id:h},k)},g,{classes:g?ns(j,g.classes):j},p?p.props.inputProps:{})},w&&b&&z==="outlined"?{notched:!0}:{},{ref:W,className:Ue(V.props.className,a,F.root)},!p&&{variant:z},L))})});zQ.muiName="Select";const Bbe=zQ,$be=e=>!e||!rc(e),Fbe=$be;function zbe(e){return Ct("MuiSlider",e)}const jbe=It("MuiSlider",["root","active","colorPrimary","colorSecondary","disabled","dragging","focusVisible","mark","markActive","marked","markLabel","markLabelActive","rail","sizeSmall","thumb","thumbColorPrimary","thumbColorSecondary","track","trackInverted","trackFalse","thumbSizeSmall","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel","vertical"]),vl=jbe,Ube=e=>{const{open:t}=e;return{offset:Ue(t&&vl.valueLabelOpen),circle:vl.valueLabelCircle,label:vl.valueLabelLabel}};function Hbe(e){const{children:t,className:n,value:r}=e,i=Ube(e);return t?R.cloneElement(t,{className:Ue(t.props.className)},C.jsxs(R.Fragment,{children:[t.props.children,C.jsx("span",{className:Ue(i.offset,n),"aria-hidden":!0,children:C.jsx("span",{className:i.circle,children:C.jsx("span",{className:i.label,children:r})})})]})):null}const Wbe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function PH(e){return e}const Gbe=Ce("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${De(n.color)}`],n.size!=="medium"&&t[`size${De(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e,ownerState:t})=>$({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(e.vars||e).palette[t.color].main,WebkitTapHighlightColor:"transparent"},t.orientation==="horizontal"&&$({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},t.size==="small"&&{height:2},t.marked&&{marginBottom:20}),t.orientation==="vertical"&&$({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},t.size==="small"&&{width:2},t.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},[`&.${vl.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${vl.dragging}`]:{[`& .${vl.thumb}, & .${vl.track}`]:{transition:"none"}}})),Vbe=Ce("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>$({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},e.orientation==="horizontal"&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},e.orientation==="vertical"&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},e.track==="inverted"&&{opacity:1})),qbe=Ce("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?wv(e.palette[t.color].main,.62):xv(e.palette[t.color].main,.5);return $({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{border:"none"},t.orientation==="horizontal"&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},t.orientation==="vertical"&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},t.track===!1&&{display:"none"},t.track==="inverted"&&{backgroundColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n,borderColor:e.vars?e.vars.palette.Slider[`${t.color}Track`]:n})}),Xbe=Ce("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${De(n.color)}`],n.size!=="medium"&&t[`thumbSize${De(n.size)}`]]}})(({theme:e,ownerState:t})=>$({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest})},t.size==="small"&&{width:12,height:12},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-50%, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":$({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},t.size==="small"&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&:hover, &.${vl.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${vl.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:kn(e.palette[t.color].main,.16)}`},[`&.${vl.disabled}`]:{"&:hover":{boxShadow:"none"}}})),Ybe=Ce(Hbe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>$({[`&.${vl.valueLabelOpen}`]:{transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(1)`},zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),transform:`${t.orientation==="vertical"?"translateY(-50%)":"translateY(-100%)"} scale(0)`,position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},t.orientation==="horizontal"&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},t.orientation==="vertical"&&{right:t.size==="small"?"20px":"30px",top:"50%",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"}},t.size==="small"&&{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),Kbe=Ce("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>D4(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>$({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},t.orientation==="horizontal"&&{top:"50%",transform:"translate(-1px, -50%)"},t.orientation==="vertical"&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8})),Qbe=Ce("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>D4(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>$({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},t.orientation==="horizontal"&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},t.orientation==="vertical"&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(e.vars||e).palette.text.primary})),Jbe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:o,classes:s,color:a,size:c}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",o==="inverted"&&"trackInverted",o===!1&&"trackFalse",a&&`color${De(a)}`,c&&`size${De(c)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",c&&`thumbSize${De(c)}`,a&&`thumbColor${De(a)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return At(u,zbe,s)},Zbe=({children:e})=>e,exe=R.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I,A,k,O,L,N;const H=Rt({props:t,name:"MuiSlider"}),z=Ln().direction==="rtl",{"aria-label":D,"aria-valuetext":F,"aria-labelledby":j,component:V="span",components:W={},componentsProps:K={},color:X="primary",classes:Q,className:ie,disableSwap:ce=!1,disabled:ue=!1,getAriaLabel:se,getAriaValueText:J,marks:ae=!1,max:le=100,min:he=0,orientation:pe="horizontal",size:ve="medium",step:ye=1,scale:xe=PH,slotProps:me,slots:be,track:Ze="normal",valueLabelDisplay:Xe="off",valueLabelFormat:ct=PH}=H,Bt=Ne(H,Wbe),Pe=$({},H,{isRtl:z,max:le,min:he,classes:Q,disabled:ue,disableSwap:ce,orientation:pe,marks:ae,color:X,size:ve,step:ye,scale:xe,track:Ze,valueLabelDisplay:Xe,valueLabelFormat:ct}),{axisProps:ze,getRootProps:st,getHiddenInputProps:gt,getThumbProps:vt,open:_e,active:je,axis:Ke,focusedThumbIndex:Fe,range:Be,dragging:Pt,marks:dt,values:Ie,trackOffset:at,trackLeap:zt,getThumbStyle:Re}=bme($({},Pe,{rootRef:n}));Pe.marked=dt.length>0&&dt.some(Kn=>Kn.label),Pe.dragging=Pt,Pe.focusedThumbIndex=Fe;const He=Jbe(Pe),xt=(r=(i=be==null?void 0:be.root)!=null?i:W.Root)!=null?r:Gbe,Vt=(o=(s=be==null?void 0:be.rail)!=null?s:W.Rail)!=null?o:Vbe,yn=(a=(c=be==null?void 0:be.track)!=null?c:W.Track)!=null?a:qbe,Yr=(u=(f=be==null?void 0:be.thumb)!=null?f:W.Thumb)!=null?u:Xbe,Hr=(h=(p=be==null?void 0:be.valueLabel)!=null?p:W.ValueLabel)!=null?h:Ybe,Wr=(g=(v=be==null?void 0:be.mark)!=null?v:W.Mark)!=null?g:Kbe,Kr=(y=(S=be==null?void 0:be.markLabel)!=null?S:W.MarkLabel)!=null?y:Qbe,ci=(w=(b=be==null?void 0:be.input)!=null?b:W.Input)!=null?w:"input",ps=(x=me==null?void 0:me.root)!=null?x:K.root,td=(E=me==null?void 0:me.rail)!=null?E:K.rail,sa=(I=me==null?void 0:me.track)!=null?I:K.track,_c=(A=me==null?void 0:me.thumb)!=null?A:K.thumb,Sc=(k=me==null?void 0:me.valueLabel)!=null?k:K.valueLabel,If=(O=me==null?void 0:me.mark)!=null?O:K.mark,ms=(L=me==null?void 0:me.markLabel)!=null?L:K.markLabel,Rf=(N=me==null?void 0:me.input)!=null?N:K.input,xo=ti({elementType:xt,getSlotProps:st,externalSlotProps:ps,externalForwardedProps:Bt,additionalProps:$({},Fbe(xt)&&{as:V}),ownerState:$({},Pe,ps==null?void 0:ps.ownerState),className:[He.root,ie]}),Ec=ti({elementType:Vt,externalSlotProps:td,ownerState:Pe,className:He.rail}),Li=ti({elementType:yn,externalSlotProps:sa,additionalProps:{style:$({},ze[Ke].offset(at),ze[Ke].leap(zt))},ownerState:$({},Pe,sa==null?void 0:sa.ownerState),className:He.track}),gs=ti({elementType:Yr,getSlotProps:vt,externalSlotProps:_c,ownerState:$({},Pe,_c==null?void 0:_c.ownerState),className:He.thumb}),Pf=ti({elementType:Hr,externalSlotProps:Sc,ownerState:$({},Pe,Sc==null?void 0:Sc.ownerState),className:He.valueLabel}),vs=ti({elementType:Wr,externalSlotProps:If,ownerState:Pe,className:He.mark}),Ba=ti({elementType:Kr,externalSlotProps:ms,ownerState:Pe,className:He.markLabel}),nd=ti({elementType:ci,getSlotProps:gt,externalSlotProps:Rf,ownerState:Pe});return C.jsxs(xt,$({},xo,{children:[C.jsx(Vt,$({},Ec)),C.jsx(yn,$({},Li)),dt.filter(Kn=>Kn.value>=he&&Kn.value<=le).map((Kn,lr)=>{const Nl=vC(Kn.value,he,le),Bl=ze[Ke].offset(Nl);let wo;return Ze===!1?wo=Ie.indexOf(Kn.value)!==-1:wo=Ze==="normal"&&(Be?Kn.value>=Ie[0]&&Kn.value<=Ie[Ie.length-1]:Kn.value<=Ie[0])||Ze==="inverted"&&(Be?Kn.value<=Ie[0]||Kn.value>=Ie[Ie.length-1]:Kn.value>=Ie[0]),C.jsxs(R.Fragment,{children:[C.jsx(Wr,$({"data-index":lr},vs,!rc(Wr)&&{markActive:wo},{style:$({},Bl,vs.style),className:Ue(vs.className,wo&&He.markActive)})),Kn.label!=null?C.jsx(Kr,$({"aria-hidden":!0,"data-index":lr},Ba,!rc(Kr)&&{markLabelActive:wo},{style:$({},Bl,Ba.style),className:Ue(He.markLabel,Ba.className,wo&&He.markLabelActive),children:Kn.label})):null]},lr)}),Ie.map((Kn,lr)=>{const Nl=vC(Kn,he,le),Bl=ze[Ke].offset(Nl),wo=Xe==="off"?Zbe:Hr;return C.jsx(wo,$({},!rc(wo)&&{valueLabelFormat:ct,valueLabelDisplay:Xe,value:typeof ct=="function"?ct(xe(Kn),lr):ct,index:lr,open:_e===lr||je===lr||Xe==="on",disabled:ue},Pf,{children:C.jsx(Yr,$({"data-index":lr},gs,{className:Ue(He.thumb,gs.className,je===lr&&He.active,Fe===lr&&He.focusVisible),style:$({},Bl,Re(lr),gs.style),children:C.jsx(ci,$({"data-index":lr,"aria-label":se?se(lr):D,"aria-valuenow":xe(Kn),"aria-labelledby":j,"aria-valuetext":J?J(xe(Kn),lr):F,value:Ie[lr]},nd))}))}),lr)})]}))}),txe=exe;function nxe(e){return Ct("MuiSnackbarContent",e)}It("MuiSnackbarContent",["root","message","action"]);const rxe=["action","className","message","role"],ixe=e=>{const{classes:t}=e;return At({root:["root"],action:["action"],message:["message"]},nxe,t)},oxe=Ce(Cv,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98,n=Ece(e.palette.background.default,t);return $({},e.typography.body2,{color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(n),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),sxe=Ce("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(e,t)=>t.message})({padding:"8px 0"}),axe=Ce("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(e,t)=>t.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),lxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbarContent"}),{action:i,className:o,message:s,role:a="alert"}=r,c=Ne(r,rxe),u=r,f=ixe(u);return C.jsxs(oxe,$({role:a,square:!0,elevation:6,className:Ue(f.root,o),ownerState:u,ref:n},c,{children:[C.jsx(sxe,{className:f.message,ownerState:u,children:s}),i?C.jsx(axe,{className:f.action,ownerState:u,children:i}):null]}))}),cxe=lxe;function uxe(e){return Ct("MuiSnackbar",e)}It("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const dxe=["onEnter","onExited"],fxe=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],hxe=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${De(n.vertical)}${De(n.horizontal)}`]};return At(r,uxe,t)},OH=Ce("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${De(n.anchorOrigin.vertical)}${De(n.anchorOrigin.horizontal)}`]]}})(({theme:e,ownerState:t})=>{const n={left:"50%",right:"auto",transform:"translateX(-50%)"};return $({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},t.anchorOrigin.vertical==="top"?{top:8}:{bottom:8},t.anchorOrigin.horizontal==="left"&&{justifyContent:"flex-start"},t.anchorOrigin.horizontal==="right"&&{justifyContent:"flex-end"},{[e.breakpoints.up("sm")]:$({},t.anchorOrigin.vertical==="top"?{top:24}:{bottom:24},t.anchorOrigin.horizontal==="center"&&n,t.anchorOrigin.horizontal==="left"&&{left:24,right:"auto"},t.anchorOrigin.horizontal==="right"&&{right:24,left:"auto"})})}),pxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSnackbar"}),i=Ln(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:a,horizontal:c}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:f,className:h,ClickAwayListenerProps:p,ContentProps:g,disableWindowBlurListener:v=!1,message:y,open:S,TransitionComponent:w=bC,transitionDuration:b=o,TransitionProps:{onEnter:x,onExited:E}={}}=r,I=Ne(r.TransitionProps,dxe),A=Ne(r,fxe),k=$({},r,{anchorOrigin:{vertical:a,horizontal:c},autoHideDuration:u,disableWindowBlurListener:v,TransitionComponent:w,transitionDuration:b}),O=hxe(k),{getRootProps:L,onClickAway:N}=xme($({},k)),[H,G]=R.useState(!0),z=ti({elementType:OH,getSlotProps:L,externalForwardedProps:A,ownerState:k,additionalProps:{ref:n},className:[O.root,h]}),D=j=>{G(!0),E&&E(j)},F=(j,V)=>{G(!1),x&&x(j,V)};return!S&&H?null:C.jsx(Dhe,$({onClickAway:N},p,{children:C.jsx(OH,$({},z,{children:C.jsx(w,$({appear:!0,in:S,timeout:b,direction:a==="top"?"down":"up",onEnter:F,onExited:D},I,{children:f||C.jsx(cxe,$({message:y,action:s},g))}))}))}))}),mxe=pxe;function gxe(e){return Ct("MuiTooltip",e)}const vxe=It("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),Id=vxe,yxe=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","slotProps","slots","title","TransitionComponent","TransitionProps"];function bxe(e){return Math.round(e*1e5)/1e5}const xxe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:o}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${De(o.split("-")[0])}`],arrow:["arrow"]};return At(s,gxe,t)},wxe=Ce(xQ,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>$({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${Id.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${Id.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${Id.arrow}`]:$({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${Id.arrow}`]:$({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),_xe=Ce("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.tooltip,n.touch&&t.touch,n.arrow&&t.tooltipArrow,t[`tooltipPlacement${De(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>$({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${bxe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${Id.popper}[data-popper-placement*="left"] &`]:$({transformOrigin:"right center"},t.isRtl?$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):$({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${Id.popper}[data-popper-placement*="right"] &`]:$({transformOrigin:"left center"},t.isRtl?$({marginRight:"14px"},t.touch&&{marginRight:"24px"}):$({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${Id.popper}[data-popper-placement*="top"] &`]:$({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${Id.popper}[data-popper-placement*="bottom"] &`]:$({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),Sxe=Ce("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:kn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let M_=!1,qL=null,Mb={x:0,y:0};function D_(e,t){return n=>{t&&t(n),e(n)}}const Exe=R.forwardRef(function(t,n){var r,i,o,s,a,c,u,f,h,p,g,v,y,S,w,b,x,E,I;const A=Rt({props:t,name:"MuiTooltip"}),{arrow:k=!1,children:O,components:L={},componentsProps:N={},describeChild:H=!1,disableFocusListener:G=!1,disableHoverListener:z=!1,disableInteractive:D=!1,disableTouchListener:F=!1,enterDelay:j=100,enterNextDelay:V=0,enterTouchDelay:W=700,followCursor:K=!1,id:X,leaveDelay:Q=0,leaveTouchDelay:ie=1500,onClose:ce,onOpen:ue,open:se,placement:J="bottom",PopperComponent:ae,PopperProps:le={},slotProps:he={},slots:pe={},title:ve,TransitionComponent:ye=bC,TransitionProps:xe}=A,me=Ne(A,yxe),be=R.isValidElement(O)?O:C.jsx("span",{children:O}),Ze=Ln(),Xe=Ze.direction==="rtl",[ct,Bt]=R.useState(),[Pe,ze]=R.useState(null),st=R.useRef(!1),gt=D||K,vt=R.useRef(),_e=R.useRef(),je=R.useRef(),Ke=R.useRef(),[Fe,Be]=o1({controlled:se,default:!1,name:"Tooltip",state:"open"});let Pt=Fe;const dt=p4(X),Ie=R.useRef(),at=R.useCallback(()=>{Ie.current!==void 0&&(document.body.style.WebkitUserSelect=Ie.current,Ie.current=void 0),clearTimeout(Ke.current)},[]);R.useEffect(()=>()=>{clearTimeout(vt.current),clearTimeout(_e.current),clearTimeout(je.current),at()},[at]);const zt=en=>{clearTimeout(qL),M_=!0,Be(!0),ue&&!Pt&&ue(en)},Re=mo(en=>{clearTimeout(qL),qL=setTimeout(()=>{M_=!1},800+Q),Be(!1),ce&&Pt&&ce(en),clearTimeout(vt.current),vt.current=setTimeout(()=>{st.current=!1},Ze.transitions.duration.shortest)}),He=en=>{st.current&&en.type!=="touchstart"||(ct&&ct.removeAttribute("title"),clearTimeout(_e.current),clearTimeout(je.current),j||M_&&V?_e.current=setTimeout(()=>{zt(en)},M_?V:j):zt(en))},xt=en=>{clearTimeout(_e.current),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},Q)},{isFocusVisibleRef:Vt,onBlur:yn,onFocus:Yr,ref:Hr}=m4(),[,Wr]=R.useState(!1),Kr=en=>{yn(en),Vt.current===!1&&(Wr(!1),xt(en))},ci=en=>{ct||Bt(en.currentTarget),Yr(en),Vt.current===!0&&(Wr(!0),He(en))},ps=en=>{st.current=!0;const Ar=be.props;Ar.onTouchStart&&Ar.onTouchStart(en)},td=He,sa=xt,_c=en=>{ps(en),clearTimeout(je.current),clearTimeout(vt.current),at(),Ie.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Ke.current=setTimeout(()=>{document.body.style.WebkitUserSelect=Ie.current,He(en)},W)},Sc=en=>{be.props.onTouchEnd&&be.props.onTouchEnd(en),at(),clearTimeout(je.current),je.current=setTimeout(()=>{Re(en)},ie)};R.useEffect(()=>{if(!Pt)return;function en(Ar){(Ar.key==="Escape"||Ar.key==="Esc")&&Re(Ar)}return document.addEventListener("keydown",en),()=>{document.removeEventListener("keydown",en)}},[Re,Pt]);const If=Tr(be.ref,Hr,Bt,n);!ve&&ve!==0&&(Pt=!1);const ms=R.useRef(),Rf=en=>{const Ar=be.props;Ar.onMouseMove&&Ar.onMouseMove(en),Mb={x:en.clientX,y:en.clientY},ms.current&&ms.current.update()},xo={},Ec=typeof ve=="string";H?(xo.title=!Pt&&Ec&&!z?ve:null,xo["aria-describedby"]=Pt?dt:null):(xo["aria-label"]=Ec?ve:null,xo["aria-labelledby"]=Pt&&!Ec?dt:null);const Li=$({},xo,me,be.props,{className:Ue(me.className,be.props.className),onTouchStart:ps,ref:If},K?{onMouseMove:Rf}:{}),gs={};F||(Li.onTouchStart=_c,Li.onTouchEnd=Sc),z||(Li.onMouseOver=D_(td,Li.onMouseOver),Li.onMouseLeave=D_(sa,Li.onMouseLeave),gt||(gs.onMouseOver=td,gs.onMouseLeave=sa)),G||(Li.onFocus=D_(ci,Li.onFocus),Li.onBlur=D_(Kr,Li.onBlur),gt||(gs.onFocus=ci,gs.onBlur=Kr));const Pf=R.useMemo(()=>{var en;let Ar=[{name:"arrow",enabled:!!Pe,options:{element:Pe,padding:4}}];return(en=le.popperOptions)!=null&&en.modifiers&&(Ar=Ar.concat(le.popperOptions.modifiers)),$({},le.popperOptions,{modifiers:Ar})},[Pe,le]),vs=$({},A,{isRtl:Xe,arrow:k,disableInteractive:gt,placement:J,PopperComponentProp:ae,touch:st.current}),Ba=xxe(vs),nd=(r=(i=pe.popper)!=null?i:L.Popper)!=null?r:wxe,Kn=(o=(s=(a=pe.transition)!=null?a:L.Transition)!=null?s:ye)!=null?o:bC,lr=(c=(u=pe.tooltip)!=null?u:L.Tooltip)!=null?c:_xe,Nl=(f=(h=pe.arrow)!=null?h:L.Arrow)!=null?f:Sxe,Bl=ax(nd,$({},le,(p=he.popper)!=null?p:N.popper,{className:Ue(Ba.popper,le==null?void 0:le.className,(g=(v=he.popper)!=null?v:N.popper)==null?void 0:g.className)}),vs),wo=ax(Kn,$({},xe,(y=he.transition)!=null?y:N.transition),vs),Hv=ax(lr,$({},(S=he.tooltip)!=null?S:N.tooltip,{className:Ue(Ba.tooltip,(w=(b=he.tooltip)!=null?b:N.tooltip)==null?void 0:w.className)}),vs),Wv=ax(Nl,$({},(x=he.arrow)!=null?x:N.arrow,{className:Ue(Ba.arrow,(E=(I=he.arrow)!=null?I:N.arrow)==null?void 0:E.className)}),vs);return C.jsxs(R.Fragment,{children:[R.cloneElement(be,Li),C.jsx(nd,$({as:ae??xQ,placement:J,anchorEl:K?{getBoundingClientRect:()=>({top:Mb.y,left:Mb.x,right:Mb.x,bottom:Mb.y,width:0,height:0})}:ct,popperRef:ms,open:ct?Pt:!1,id:dt,transition:!0},gs,Bl,{popperOptions:Pf,children:({TransitionProps:en})=>C.jsx(Kn,$({timeout:Ze.transitions.duration.shorter},en,wo,{children:C.jsxs(lr,$({},Hv,{children:[ve,k?C.jsx(Nl,$({},Wv,{ref:ze})):null]}))}))}))]})}),bf=Exe;function Cxe(e){return Ct("MuiSwitch",e)}const Txe=It("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Do=Txe,kxe=["className","color","edge","size","sx"],Axe=e=>{const{classes:t,edge:n,size:r,color:i,checked:o,disabled:s}=e,a={root:["root",n&&`edge${De(n)}`,`size${De(r)}`],switchBase:["switchBase",`color${De(i)}`,o&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},c=At(a,Cxe,t);return $({},t,c)},Ixe=Ce("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${De(n.edge)}`],t[`size${De(n.size)}`]]}})(({ownerState:e})=>$({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},e.edge==="start"&&{marginLeft:-8},e.edge==="end"&&{marginRight:-8},e.size==="small"&&{width:40,height:24,padding:7,[`& .${Do.thumb}`]:{width:16,height:16},[`& .${Do.switchBase}`]:{padding:4,[`&.${Do.checked}`]:{transform:"translateX(16px)"}}})),Rxe=Ce(EQ,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Do.input}`]:t.input},n.color!=="default"&&t[`color${De(n.color)}`]]}})(({theme:e})=>({position:"absolute",top:0,left:0,zIndex:1,color:e.vars?e.vars.palette.Switch.defaultColor:`${e.palette.mode==="light"?e.palette.common.white:e.palette.grey[300]}`,transition:e.transitions.create(["left","transform"],{duration:e.transitions.duration.shortest}),[`&.${Do.checked}`]:{transform:"translateX(20px)"},[`&.${Do.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Do.checked} + .${Do.track}`]:{opacity:.5},[`&.${Do.disabled} + .${Do.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Do.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>$({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Do.checked}`]:{color:(e.vars||e).palette[t.color].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:kn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Do.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?wv(e.palette[t.color].main,.62):xv(e.palette[t.color].main,.55)}`}},[`&.${Do.checked} + .${Do.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),Pxe=Ce("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>({height:"100%",width:"100%",borderRadius:14/2,zIndex:-1,transition:e.transitions.create(["opacity","background-color"],{duration:e.transitions.duration.shortest}),backgroundColor:e.vars?e.vars.palette.common.onBackground:`${e.palette.mode==="light"?e.palette.common.black:e.palette.common.white}`,opacity:e.vars?e.vars.opacity.switchTrack:`${e.palette.mode==="light"?.38:.3}`})),Oxe=Ce("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e})=>({boxShadow:(e.vars||e).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),Mxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiSwitch"}),{className:i,color:o="primary",edge:s=!1,size:a="medium",sx:c}=r,u=Ne(r,kxe),f=$({},r,{color:o,edge:s,size:a}),h=Axe(f),p=C.jsx(Oxe,{className:h.thumb,ownerState:f});return C.jsxs(Ixe,{className:Ue(h.root,i),sx:c,ownerState:f,children:[C.jsx(Rxe,$({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:f},u,{classes:$({},h,{root:h.switchBase})})),C.jsx(Pxe,{className:h.track,ownerState:f})]})}),Kg=Mxe;function Dxe(e){return Ct("MuiTab",e)}const Lxe=It("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),Hh=Lxe,Nxe=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Bxe=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:o,label:s,selected:a,disabled:c}=e,u={root:["root",o&&s&&"labelIcon",`textColor${De(n)}`,r&&"fullWidth",i&&"wrapped",a&&"selected",c&&"disabled"],iconWrapper:["iconWrapper"]};return At(u,Dxe,t)},$xe=Ce(Ku,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${De(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>$({},e.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},t.label&&{flexDirection:t.iconPosition==="top"||t.iconPosition==="bottom"?"column":"row"},{lineHeight:1.25},t.icon&&t.label&&{minHeight:72,paddingTop:9,paddingBottom:9,[`& > .${Hh.iconWrapper}`]:$({},t.iconPosition==="top"&&{marginBottom:6},t.iconPosition==="bottom"&&{marginTop:6},t.iconPosition==="start"&&{marginRight:e.spacing(1)},t.iconPosition==="end"&&{marginLeft:e.spacing(1)})},t.textColor==="inherit"&&{color:"inherit",opacity:.6,[`&.${Hh.selected}`]:{opacity:1},[`&.${Hh.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Hh.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${Hh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${Hh.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${Hh.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},t.wrapped&&{fontSize:e.typography.pxToRem(12)})),Fxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTab"}),{className:i,disabled:o=!1,disableFocusRipple:s=!1,fullWidth:a,icon:c,iconPosition:u="top",indicator:f,label:h,onChange:p,onClick:g,onFocus:v,selected:y,selectionFollowsFocus:S,textColor:w="inherit",value:b,wrapped:x=!1}=r,E=Ne(r,Nxe),I=$({},r,{disabled:o,disableFocusRipple:s,selected:y,icon:!!c,iconPosition:u,label:!!h,fullWidth:a,textColor:w,wrapped:x}),A=Bxe(I),k=c&&h&&R.isValidElement(c)?R.cloneElement(c,{className:Ue(A.iconWrapper,c.props.className)}):c,O=N=>{!y&&p&&p(N,b),g&&g(N)},L=N=>{S&&!y&&p&&p(N,b),v&&v(N)};return C.jsxs($xe,$({focusRipple:!s,className:Ue(A.root,i),ref:n,role:"tab","aria-selected":y,disabled:o,onClick:O,onFocus:L,ownerState:I,tabIndex:y?0:-1},E,{children:[u==="top"||u==="start"?C.jsxs(R.Fragment,{children:[k,h]}):C.jsxs(R.Fragment,{children:[h,k]}),f]}))}),rg=Fxe;function zxe(e){return Ct("MuiToolbar",e)}It("MuiToolbar",["root","gutters","regular","dense"]);const jxe=["className","component","disableGutters","variant"],Uxe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return At({root:["root",!n&&"gutters",r]},zxe,t)},Hxe=Ce("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>$({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),Wxe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiToolbar"}),{className:i,component:o="div",disableGutters:s=!1,variant:a="regular"}=r,c=Ne(r,jxe),u=$({},r,{component:o,disableGutters:s,variant:a}),f=Uxe(u);return C.jsx(Hxe,$({as:o,className:Ue(f.root,i),ref:n,ownerState:u},c))}),Gxe=Wxe,Vxe=Ft(C.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),qxe=Ft(C.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function Xxe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function Yxe(e,t,n,r={},i=()=>{}){const{ease:o=Xxe,duration:s=300}=r;let a=null;const c=t[e];let u=!1;const f=()=>{u=!0},h=p=>{if(u){i(new Error("Animation cancelled"));return}a===null&&(a=p);const g=Math.min(1,(p-a)/s);if(t[e]=o(g)*(n-c)+c,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(h)};return c===n?(i(new Error("Element already at target position")),f):(requestAnimationFrame(h),f)}const Kxe=["onChange"],Qxe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function Jxe(e){const{onChange:t}=e,n=Ne(e,Kxe),r=R.useRef(),i=R.useRef(null),o=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return jo(()=>{const s=OT(()=>{const c=r.current;o(),c!==r.current&&t(r.current)}),a=Nu(i.current);return a.addEventListener("resize",s),()=>{s.clear(),a.removeEventListener("resize",s)}},[t]),R.useEffect(()=>{o(),t(r.current)},[t]),C.jsx("div",$({style:Qxe,ref:i},n))}function Zxe(e){return Ct("MuiTabScrollButton",e)}const e1e=It("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),t1e=e1e,n1e=["className","slots","slotProps","direction","orientation","disabled"],r1e=e=>{const{classes:t,orientation:n,disabled:r}=e;return At({root:["root",n,r&&"disabled"]},Zxe,t)},i1e=Ce(Ku,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>$({width:40,flexShrink:0,opacity:.8,[`&.${t1e.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),o1e=R.forwardRef(function(t,n){var r,i;const o=Rt({props:t,name:"MuiTabScrollButton"}),{className:s,slots:a={},slotProps:c={},direction:u}=o,f=Ne(o,n1e),p=Ln().direction==="rtl",g=$({isRtl:p},o),v=r1e(g),y=(r=a.StartScrollButtonIcon)!=null?r:Vxe,S=(i=a.EndScrollButtonIcon)!=null?i:qxe,w=ti({elementType:y,externalSlotProps:c.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),b=ti({elementType:S,externalSlotProps:c.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return C.jsx(i1e,$({component:"div",className:Ue(v.root,s),ref:n,role:null,ownerState:g,tabIndex:null},f,{children:u==="left"?C.jsx(y,$({},w)):C.jsx(S,$({},b))}))}),s1e=o1e;function a1e(e){return Ct("MuiTabs",e)}const l1e=It("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),XL=l1e,c1e=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],MH=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,DH=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,L_=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const o=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||o)i=n(e,i);else{i.focus();return}}},u1e=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:o,centered:s,scrollButtonsHideMobile:a,classes:c}=e;return At({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",o&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",a&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},a1e,c)},d1e=Ce("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${XL.scrollButtons}`]:t.scrollButtons},{[`& .${XL.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>$({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${XL.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),f1e=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]}})(({ownerState:e})=>$({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},e.fixed&&{overflowX:"hidden",width:"100%"},e.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},e.scrollableX&&{overflowX:"auto",overflowY:"hidden"},e.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),h1e=Ce("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.flexContainer,n.vertical&&t.flexContainerVertical,n.centered&&t.centered]}})(({ownerState:e})=>$({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),p1e=Ce("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>$({position:"absolute",height:2,bottom:0,width:"100%",transition:t.transitions.create()},e.indicatorColor==="primary"&&{backgroundColor:(t.vars||t).palette.primary.main},e.indicatorColor==="secondary"&&{backgroundColor:(t.vars||t).palette.secondary.main},e.vertical&&{height:"100%",width:2,right:0})),m1e=Ce(Jxe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),LH={},g1e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabs"}),i=Ln(),o=i.direction==="rtl",{"aria-label":s,"aria-labelledby":a,action:c,centered:u=!1,children:f,className:h,component:p="div",allowScrollButtonsMobile:g=!1,indicatorColor:v="primary",onChange:y,orientation:S="horizontal",ScrollButtonComponent:w=s1e,scrollButtons:b="auto",selectionFollowsFocus:x,slots:E={},slotProps:I={},TabIndicatorProps:A={},TabScrollButtonProps:k={},textColor:O="primary",value:L,variant:N="standard",visibleScrollbar:H=!1}=r,G=Ne(r,c1e),z=N==="scrollable",D=S==="vertical",F=D?"scrollTop":"scrollLeft",j=D?"top":"left",V=D?"bottom":"right",W=D?"clientHeight":"clientWidth",K=D?"height":"width",X=$({},r,{component:p,allowScrollButtonsMobile:g,indicatorColor:v,orientation:S,vertical:D,scrollButtons:b,textColor:O,variant:N,visibleScrollbar:H,fixed:!z,hideScrollbar:z&&!H,scrollableX:z&&!D,scrollableY:z&&D,centered:u&&!z,scrollButtonsHideMobile:!g}),Q=u1e(X),ie=ti({elementType:E.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:X}),ce=ti({elementType:E.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:X}),[ue,se]=R.useState(!1),[J,ae]=R.useState(LH),[le,he]=R.useState(!1),[pe,ve]=R.useState(!1),[ye,xe]=R.useState(!1),[me,be]=R.useState({overflow:"hidden",scrollbarWidth:0}),Ze=new Map,Xe=R.useRef(null),ct=R.useRef(null),Bt=()=>{const Re=Xe.current;let He;if(Re){const Vt=Re.getBoundingClientRect();He={clientWidth:Re.clientWidth,scrollLeft:Re.scrollLeft,scrollTop:Re.scrollTop,scrollLeftNormalized:Yse(Re,i.direction),scrollWidth:Re.scrollWidth,top:Vt.top,bottom:Vt.bottom,left:Vt.left,right:Vt.right}}let xt;if(Re&&L!==!1){const Vt=ct.current.children;if(Vt.length>0){const yn=Vt[Ze.get(L)];xt=yn?yn.getBoundingClientRect():null}}return{tabsMeta:He,tabMeta:xt}},Pe=mo(()=>{const{tabsMeta:Re,tabMeta:He}=Bt();let xt=0,Vt;if(D)Vt="top",He&&Re&&(xt=He.top-Re.top+Re.scrollTop);else if(Vt=o?"right":"left",He&&Re){const Yr=o?Re.scrollLeftNormalized+Re.clientWidth-Re.scrollWidth:Re.scrollLeft;xt=(o?-1:1)*(He[Vt]-Re[Vt]+Yr)}const yn={[Vt]:xt,[K]:He?He[K]:0};if(isNaN(J[Vt])||isNaN(J[K]))ae(yn);else{const Yr=Math.abs(J[Vt]-yn[Vt]),Hr=Math.abs(J[K]-yn[K]);(Yr>=1||Hr>=1)&&ae(yn)}}),ze=(Re,{animation:He=!0}={})=>{He?Yxe(F,Xe.current,Re,{duration:i.transitions.duration.standard}):Xe.current[F]=Re},st=Re=>{let He=Xe.current[F];D?He+=Re:(He+=Re*(o?-1:1),He*=o&&SX()==="reverse"?-1:1),ze(He)},gt=()=>{const Re=Xe.current[W];let He=0;const xt=Array.from(ct.current.children);for(let Vt=0;VtRe){Vt===0&&(He=Re);break}He+=yn[W]}return He},vt=()=>{st(-1*gt())},_e=()=>{st(gt())},je=R.useCallback(Re=>{be({overflow:null,scrollbarWidth:Re})},[]),Ke=()=>{const Re={};Re.scrollbarSizeListener=z?C.jsx(m1e,{onChange:je,className:Ue(Q.scrollableX,Q.hideScrollbar)}):null;const xt=z&&(b==="auto"&&(le||pe)||b===!0);return Re.scrollButtonStart=xt?C.jsx(w,$({slots:{StartScrollButtonIcon:E.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:ie},orientation:S,direction:o?"right":"left",onClick:vt,disabled:!le},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re.scrollButtonEnd=xt?C.jsx(w,$({slots:{EndScrollButtonIcon:E.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ce},orientation:S,direction:o?"left":"right",onClick:_e,disabled:!pe},k,{className:Ue(Q.scrollButtons,k.className)})):null,Re},Fe=mo(Re=>{const{tabsMeta:He,tabMeta:xt}=Bt();if(!(!xt||!He)){if(xt[j]He[V]){const Vt=He[F]+(xt[V]-He[V]);ze(Vt,{animation:Re})}}}),Be=mo(()=>{z&&b!==!1&&xe(!ye)});R.useEffect(()=>{const Re=OT(()=>{Xe.current&&Pe()}),He=Nu(Xe.current);He.addEventListener("resize",Re);let xt;return typeof ResizeObserver<"u"&&(xt=new ResizeObserver(Re),Array.from(ct.current.children).forEach(Vt=>{xt.observe(Vt)})),()=>{Re.clear(),He.removeEventListener("resize",Re),xt&&xt.disconnect()}},[Pe]),R.useEffect(()=>{const Re=Array.from(ct.current.children),He=Re.length;if(typeof IntersectionObserver<"u"&&He>0&&z&&b!==!1){const xt=Re[0],Vt=Re[He-1],yn={root:Xe.current,threshold:.99},Yr=ci=>{he(!ci[0].isIntersecting)},Hr=new IntersectionObserver(Yr,yn);Hr.observe(xt);const Wr=ci=>{ve(!ci[0].isIntersecting)},Kr=new IntersectionObserver(Wr,yn);return Kr.observe(Vt),()=>{Hr.disconnect(),Kr.disconnect()}}},[z,b,ye,f==null?void 0:f.length]),R.useEffect(()=>{se(!0)},[]),R.useEffect(()=>{Pe()}),R.useEffect(()=>{Fe(LH!==J)},[Fe,J]),R.useImperativeHandle(c,()=>({updateIndicator:Pe,updateScrollButtons:Be}),[Pe,Be]);const Pt=C.jsx(p1e,$({},A,{className:Ue(Q.indicator,A.className),ownerState:X,style:$({},J,A.style)}));let dt=0;const Ie=R.Children.map(f,Re=>{if(!R.isValidElement(Re))return null;const He=Re.props.value===void 0?dt:Re.props.value;Ze.set(He,dt);const xt=He===L;return dt+=1,R.cloneElement(Re,$({fullWidth:N==="fullWidth",indicator:xt&&!ue&&Pt,selected:xt,selectionFollowsFocus:x,onChange:y,textColor:O,value:He},dt===1&&L===!1&&!Re.props.tabIndex?{tabIndex:0}:{}))}),at=Re=>{const He=ct.current,xt=Fr(He).activeElement;if(xt.getAttribute("role")!=="tab")return;let yn=S==="horizontal"?"ArrowLeft":"ArrowUp",Yr=S==="horizontal"?"ArrowRight":"ArrowDown";switch(S==="horizontal"&&o&&(yn="ArrowRight",Yr="ArrowLeft"),Re.key){case yn:Re.preventDefault(),L_(He,xt,DH);break;case Yr:Re.preventDefault(),L_(He,xt,MH);break;case"Home":Re.preventDefault(),L_(He,null,MH);break;case"End":Re.preventDefault(),L_(He,null,DH);break}},zt=Ke();return C.jsxs(d1e,$({className:Ue(Q.root,h),ownerState:X,ref:n,as:p},G,{children:[zt.scrollButtonStart,zt.scrollbarSizeListener,C.jsxs(f1e,{className:Q.scroller,ownerState:X,style:{overflow:me.overflow,[D?`margin${o?"Left":"Right"}`:"marginBottom"]:H?void 0:-me.scrollbarWidth},ref:Xe,children:[C.jsx(h1e,{"aria-label":s,"aria-labelledby":a,"aria-orientation":S==="vertical"?"vertical":null,className:Q.flexContainer,ownerState:X,onKeyDown:at,ref:ct,role:"tablist",children:Ie}),ue&&Pt]}),zt.scrollButtonEnd]}))}),v1e=g1e;function y1e(e){return Ct("MuiTextField",e)}It("MuiTextField",["root"]);const b1e=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],x1e={standard:OQ,filled:AQ,outlined:FQ},w1e=e=>{const{classes:t}=e;return At({root:["root"]},y1e,t)},_1e=Ce(Uve,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),S1e=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:o=!1,children:s,className:a,color:c="primary",defaultValue:u,disabled:f=!1,error:h=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:v,id:y,InputLabelProps:S,inputProps:w,InputProps:b,inputRef:x,label:E,maxRows:I,minRows:A,multiline:k=!1,name:O,onBlur:L,onChange:N,onFocus:H,placeholder:G,required:z=!1,rows:D,select:F=!1,SelectProps:j,type:V,value:W,variant:K="outlined"}=r,X=Ne(r,b1e),Q=$({},r,{autoFocus:o,color:c,disabled:f,error:h,fullWidth:g,multiline:k,required:z,select:F,variant:K}),ie=w1e(Q),ce={};K==="outlined"&&(S&&typeof S.shrink<"u"&&(ce.notched=S.shrink),ce.label=E),F&&((!j||!j.native)&&(ce.id=void 0),ce["aria-describedby"]=void 0);const ue=p4(y),se=v&&ue?`${ue}-helper-text`:void 0,J=E&&ue?`${ue}-label`:void 0,ae=x1e[K],le=C.jsx(ae,$({"aria-describedby":se,autoComplete:i,autoFocus:o,defaultValue:u,fullWidth:g,multiline:k,name:O,rows:D,maxRows:I,minRows:A,type:V,value:W,id:ue,inputRef:x,onBlur:L,onChange:N,onFocus:H,placeholder:G,inputProps:w},ce,b));return C.jsxs(_1e,$({className:Ue(ie.root,a),disabled:f,error:h,fullWidth:g,ref:n,required:z,color:c,variant:K,ownerState:Q},X,{children:[E!=null&&E!==""&&C.jsx(kye,$({htmlFor:ue,id:J},S,{children:E})),F?C.jsx(Bbe,$({"aria-describedby":se,id:ue,labelId:J,value:W,input:le},j,{children:s})):le,v&&C.jsx(iye,$({id:se},p,{children:v}))]}))}),Cw=S1e;function En({vertical:e,...t}){return C.jsx(ht,{position:"relative",height:"100%",width:"100%",display:"flex",flexDirection:e?"column":"row",...t})}const jQ=Ft(C.jsx("path",{d:"M22 11V3h-7v3H9V3H2v8h7V8h2v10h4v3h7v-8h-7v3h-2V8h2v3h7zM7 9H4V5h3v4zm10 6h3v4h-3v-4zm0-10h3v4h-3V5z"}),"AccountTreeOutlined"),E1e=Ft(C.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add"),C1e=Ft(C.jsx("path",{d:"M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z"}),"ArrowBack"),T1e=Ft(C.jsx("path",{d:"M6 7c0 .55.45 1 1 1h7.59l-8.88 8.88c-.39.39-.39 1.02 0 1.41.39.39 1.02.39 1.41 0L16 9.41V17c0 .55.45 1 1 1s1-.45 1-1V7c0-.55-.45-1-1-1H7c-.55 0-1 .45-1 1z"}),"ArrowOutwardRounded"),k1e=Ft(C.jsx("path",{d:"M10 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zM7 9.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-3-3c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm3-6c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 9c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-1.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm3 6c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-4c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8zm2-3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-3.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1z"}),"BlurCircularOutlined"),A1e=Ft(C.jsx("path",{d:"M6 13c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm-3 .5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM6 5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm15 5.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM14 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0-3.5c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zm-11 10c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm7 7c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm0-17c.28 0 .5-.22.5-.5s-.22-.5-.5-.5-.5.22-.5.5.22.5.5.5zM10 7c.55 0 1-.45 1-1s-.45-1-1-1-1 .45-1 1 .45 1 1 1zm0 5.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm8 .5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-8c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0-4c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm3 8.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zM14 17c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm0 3.5c-.28 0-.5.22-.5.5s.22.5.5.5.5-.22.5-.5-.22-.5-.5-.5zm-4-12c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0 8.5c-.55 0-1 .45-1 1s.45 1 1 1 1-.45 1-1-.45-1-1-1zm4-4.5c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5zm0-4c-.83 0-1.5.67-1.5 1.5s.67 1.5 1.5 1.5 1.5-.67 1.5-1.5-.67-1.5-1.5-1.5z"}),"BlurOnOutlined"),I1e=Ft(C.jsx("path",{d:"M20 8h-2.81c-.45-.78-1.07-1.45-1.82-1.96L17 4.41 15.59 3l-2.17 2.17C12.96 5.06 12.49 5 12 5s-.96.06-1.41.17L8.41 3 7 4.41l1.62 1.63C7.88 6.55 7.26 7.22 6.81 8H4v2h2.09c-.05.33-.09.66-.09 1v1H4v2h2v1c0 .34.04.67.09 1H4v2h2.81c1.04 1.79 2.97 3 5.19 3s4.15-1.21 5.19-3H20v-2h-2.09c.05-.33.09-.66.09-1v-1h2v-2h-2v-1c0-.34-.04-.67-.09-1H20V8zm-4 4v3c0 .22-.03.47-.07.7l-.1.65-.37.65c-.72 1.24-2.04 2-3.46 2s-2.74-.77-3.46-2l-.37-.64-.1-.65C8.03 15.48 8 15.23 8 15v-4c0-.23.03-.48.07-.7l.1-.65.37-.65c.3-.52.72-.97 1.21-1.31l.57-.39.74-.18c.31-.08.63-.12.94-.12.32 0 .63.04.95.12l.68.16.61.42c.5.34.91.78 1.21 1.31l.38.65.1.65c.04.22.07.47.07.69v1zm-6 2h4v2h-4zm0-4h4v2h-4z"}),"BugReportOutlined"),R1e=Ft(C.jsx("path",{d:"M17 12c0-2.76-2.24-5-5-5s-5 2.24-5 5 2.24 5 5 5 5-2.24 5-5zm-5 3c-1.65 0-3-1.35-3-3s1.35-3 3-3 3 1.35 3 3-1.35 3-3 3zm-7 0H3v4c0 1.1.9 2 2 2h4v-2H5v-4zM5 5h4V3H5c-1.1 0-2 .9-2 2v4h2V5zm14-2h-4v2h4v4h2V5c0-1.1-.9-2-2-2zm0 16h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4z"}),"CenterFocusStrongOutlined"),P1e=Ft(C.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z"}),"ChevronRightOutlined"),O1e=Ft(C.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 12 19 6.41z"}),"ClearOutlined"),UQ=Ft(C.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 12 19 6.41z"}),"CloseOutlined"),M1e=Ft(C.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}),"CodeOutlined"),D1e=Ft(C.jsx("path",{d:"M3 5v4h2V5h4V3H5c-1.1 0-2 .9-2 2zm2 10H3v4c0 1.1.9 2 2 2h4v-2H5v-4zm14 4h-4v2h4c1.1 0 2-.9 2-2v-4h-2v4zm0-16h-4v2h4v4h2V5c0-1.1-.9-2-2-2z"}),"CropFreeOutlined"),L1e=Ft(C.jsx("path",{d:"M20 9H4v2h16V9zM4 15h16v-2H4v2z"}),"DragHandleOutlined"),Hk=Ft(C.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92l9.06-9.06M17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29zm-3.6 3.19L3 17.25V21h3.75L17.81 9.94l-3.75-3.75z"}),"EditOutlined"),N1e=Ft(C.jsx("circle",{cx:"12",cy:"12",r:"8"}),"FiberManualRecord"),HQ=Ft(C.jsx("path",{d:"M15 22H6c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h8l6 6v6h-2V9h-5V4H6v16h9v2zm4-.34v-2.24l2.95 2.95 1.41-1.41L20.41 18h2.24v-2H17v5.66h2z"}),"FileOpenOutlined"),B1e=Ft(C.jsx("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub"),$1e=Ft(C.jsx("path",{d:"M2.81 2.81 1.39 4.22l2.27 2.27C2.61 8.07 2 9.96 2 12c0 5.52 4.48 10 10 10 2.04 0 3.93-.61 5.51-1.66l2.27 2.27 1.41-1.41L2.81 2.81zM12 20c-4.41 0-8-3.59-8-8 0-1.48.41-2.86 1.12-4.06l10.94 10.94C14.86 19.59 13.48 20 12 20zM7.94 5.12 6.49 3.66C8.07 2.61 9.96 2 12 2c5.52 0 10 4.48 10 10 0 2.04-.61 3.93-1.66 5.51l-1.46-1.46C19.59 14.86 20 13.48 20 12c0-4.41-3.59-8-8-8-1.48 0-2.86.41-4.06 1.12z"}),"HideSourceOutlined"),F1e=Ft(C.jsx("path",{d:"M11 7h2v2h-2zm0 4h2v6h-2zm1-9C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8z"}),"InfoOutlined"),z1e=Ft(C.jsx("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"}),"KeyboardArrowDownOutlined"),j1e=Ft(C.jsx("path",{d:"M17.63 5.84C17.27 5.33 16.67 5 16 5L5 5.01C3.9 5.01 3 5.9 3 7v10c0 1.1.9 1.99 2 1.99L16 19c.67 0 1.27-.33 1.63-.84L22 12l-4.37-6.16zM16 17H5V7h11l3.55 5L16 17z"}),"LabelOutlined"),Tw=Ft(C.jsx("path",{d:"m11.99 18.54-7.37-5.73L3 14.07l9 7 9-7-1.63-1.27zM12 16l7.36-5.73L21 9l-9-7-9 7 1.63 1.27L12 16zm0-11.47L17.74 9 12 13.47 6.26 9 12 4.53z"}),"LayersOutlined"),WQ=Ft(C.jsx("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7zm-4 6h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"}),"ListOutlined"),U1e=Ft(C.jsx("path",{d:"M12 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreVertOutlined"),H1e=Ft(C.jsx("path",{d:"M6 19h4V5H6v14zm8-14v14h4V5h-4z"}),"PauseOutlined"),W1e=Ft(C.jsx("path",{d:"M12 12c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm6-1.8C18 6.57 15.35 4 12 4s-6 2.57-6 6.2c0 2.34 1.95 5.44 6 9.14 4.05-3.7 6-6.8 6-9.14zM12 2c4.2 0 8 3.22 8 8.2 0 3.32-2.67 7.25-8 11.8-5.33-4.55-8-8.48-8-11.8C4 5.22 7.8 2 12 2z"}),"PlaceOutlined"),G1e=Ft(C.jsx("path",{d:"M10 8.64 15.27 12 10 15.36V8.64M8 5v14l11-7L8 5z"}),"PlayArrowOutlined"),GQ=Ft(C.jsx("path",{d:"M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"}),"ReplayOutlined"),V1e=Ft(C.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z"}),"SearchOutlined"),q1e=Ft(C.jsx("path",{d:"M19.43 12.98c.04-.32.07-.64.07-.98 0-.34-.03-.66-.07-.98l2.11-1.65c.19-.15.24-.42.12-.64l-2-3.46c-.09-.16-.26-.25-.44-.25-.06 0-.12.01-.17.03l-2.49 1c-.52-.4-1.08-.73-1.69-.98l-.38-2.65C14.46 2.18 14.25 2 14 2h-4c-.25 0-.46.18-.49.42l-.38 2.65c-.61.25-1.17.59-1.69.98l-2.49-1c-.06-.02-.12-.03-.18-.03-.17 0-.34.09-.43.25l-2 3.46c-.13.22-.07.49.12.64l2.11 1.65c-.04.32-.07.65-.07.98 0 .33.03.66.07.98l-2.11 1.65c-.19.15-.24.42-.12.64l2 3.46c.09.16.26.25.44.25.06 0 .12-.01.17-.03l2.49-1c.52.4 1.08.73 1.69.98l.38 2.65c.03.24.24.42.49.42h4c.25 0 .46-.18.49-.42l.38-2.65c.61-.25 1.17-.59 1.69-.98l2.49 1c.06.02.12.03.18.03.17 0 .34-.09.43-.25l2-3.46c.12-.22.07-.49-.12-.64l-2.11-1.65zm-1.98-1.71c.04.31.05.52.05.73 0 .21-.02.43-.05.73l-.14 1.13.89.7 1.08.84-.7 1.21-1.27-.51-1.04-.42-.9.68c-.43.32-.84.56-1.25.73l-1.06.43-.16 1.13-.2 1.35h-1.4l-.19-1.35-.16-1.13-1.06-.43c-.43-.18-.83-.41-1.23-.71l-.91-.7-1.06.43-1.27.51-.7-1.21 1.08-.84.89-.7-.14-1.13c-.03-.31-.05-.54-.05-.74s.02-.43.05-.73l.14-1.13-.89-.7-1.08-.84.7-1.21 1.27.51 1.04.42.9-.68c.43-.32.84-.56 1.25-.73l1.06-.43.16-1.13.2-1.35h1.39l.19 1.35.16 1.13 1.06.43c.43.18.83.41 1.23.71l.91.7 1.06-.43 1.27-.51.7 1.21-1.07.85-.89.7.14 1.13zM12 8c-2.21 0-4 1.79-4 4s1.79 4 4 4 4-1.79 4-4-1.79-4-4-4zm0 6c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z"}),"SettingsOutlined"),X1e=Ft(C.jsx("path",{d:"m6 18 8.5-6L6 6v12zm2-8.14L11.03 12 8 14.14V9.86zM16 6h2v12h-2z"}),"SkipNextOutlined"),Y1e=Ft(C.jsx("path",{d:"M6 6h2v12H6zm3.5 6 8.5 6V6l-8.5 6zm6.5 2.14L12.97 12 16 9.86v4.28z"}),"SkipPreviousOutlined"),fE=Ft(C.jsx("path",{d:"M3 18h6v-2H3v2zM3 6v2h18V6H3zm0 7h12v-2H3v2z"}),"SortOutlined"),K1e=Ft(C.jsx("path",{d:"M16 8v8H8V8h8m2-2H6v12h12V6z"}),"StopOutlined"),Q1e=Ft(C.jsx("path",{d:"M2 12C2 6.48 6.48 2 12 2s10 4.48 10 10-4.48 10-10 10S2 17.52 2 12zm10 6c3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6 2.69 6 6 6z"}),"TripOriginOutlined"),NH=Ft(C.jsx("path",{d:"M19 13H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-4c0-1.1-.9-2-2-2zm0 6H5v-4h14v4zm0-16H5c-1.1 0-2 .9-2 2v4c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 6H5V5h14v4z"}),"ViewAgendaOutlined"),VQ=Ft(C.jsx("path",{d:"M3 4c0-.55.45-1 1-1h2V1H4C2.34 1 1 2.34 1 4v2h2V4zm0 16v-2H1v2c0 1.66 1.34 3 3 3h2v-2H4c-.55 0-1-.45-1-1zM20 1h-2v2h2c.55 0 1 .45 1 1v2h2V4c0-1.66-1.34-3-3-3zm1 19c0 .55-.45 1-1 1h-2v2h2c1.66 0 3-1.34 3-3v-2h-2v2zm-2-5.13V9.13c0-.72-.38-1.38-1-1.73l-5-2.88c-.31-.18-.65-.27-1-.27s-.69.09-1 .27L6 7.39c-.62.36-1 1.02-1 1.74v5.74c0 .72.38 1.38 1 1.73l5 2.88c.31.18.65.27 1 .27s.69-.09 1-.27l5-2.88c.62-.35 1-1.01 1-1.73zm-8 2.3-4-2.3v-4.63l4 2.33v4.6zm1-6.33L8.04 8.53 12 6.25l3.96 2.28L12 10.84zm5 4.03-4 2.3v-4.6l4-2.33v4.63z"}),"ViewInArOutlined"),J1e=Ft(C.jsx("path",{d:"M12 6c3.79 0 7.17 2.13 8.82 5.5C19.17 14.87 15.79 17 12 17s-7.17-2.13-8.82-5.5C4.83 8.13 8.21 6 12 6m0-2C7 4 2.73 7.11 1 11.5 2.73 15.89 7 19 12 19s9.27-3.11 11-7.5C21.27 7.11 17 4 12 4zm0 5c1.38 0 2.5 1.12 2.5 2.5S13.38 14 12 14s-2.5-1.12-2.5-2.5S10.62 9 12 9m0-2c-2.48 0-4.5 2.02-4.5 4.5S9.52 16 12 16s4.5-2.02 4.5-4.5S14.48 7 12 7z"}),"VisibilityOutlined"),Z1e=Ft(C.jsx("path",{d:"m16.66 4.52 2.83 2.83-2.83 2.83-2.83-2.83 2.83-2.83M9 5v4H5V5h4m10 10v4h-4v-4h4M9 15v4H5v-4h4m7.66-13.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65zM11 3H3v8h8V3zm10 10h-8v8h8v-8zm-10 0H3v8h8v-8z"}),"WidgetsOutlined"),ewe=Ft(C.jsx("path",{d:"M6 15c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6-8c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2C9.8 3 8 4.8 8 7s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4zm6 12c1.1 0 2 .9 2 2s-.9 2-2 2-2-.9-2-2 .9-2 2-2m0-2c-2.2 0-4 1.8-4 4s1.8 4 4 4 4-1.8 4-4-1.8-4-4-4z"}),"WorkspacesOutlined");var wC={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */xC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,D=512,N=30,H="...",G=800,z=16,L=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,ie=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",$t="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Gt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),ps=/<%-([\s\S]+?)%>/g,ed=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,wc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_c=/^\w*$/,kf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,Af=RegExp(ms.source),xo=/^\s+/,Sc=/\s/,Di=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gs=/\{\n\/\* \[wrapped with (.+)\] \*/,If=/,? & /,vs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Na=/[()=,{}\[\]\/\s]/,td=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Dl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,JA=/['\n\r\u2028\u2029\\]/g,Ec="\\ud800-\\udfff",ZA="\\u0300-\\u036f",eI="\\ufe20-\\ufe2f",tI="\\u20d0-\\u20ff",Hv=ZA+eI+tI,Wv="\\u2700-\\u27bf",Gv="a-z\\xdf-\\xf6\\xf8-\\xff",nI="\\xac\\xb1\\xd7\\xf7",rI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iI="\\u2000-\\u206f",oI=" \\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",Vv="A-Z\\xc0-\\xd6\\xd8-\\xde",qv="\\ufe0e\\ufe0f",Xv=nI+rI+iI+oI,Rf="['’]",sI="["+Ec+"]",Yv="["+Xv+"]",Cc="["+Hv+"]",Kv="\\d+",aI="["+Wv+"]",Qv="["+Gv+"]",Jv="[^"+Ec+Xv+Kv+Wv+Gv+Vv+"]",Pf="\\ud83c[\\udffb-\\udfff]",lI="(?:"+Cc+"|"+Pf+")",Zv="[^"+Ec+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Mf="[\\ud800-\\udbff][\\udc00-\\udfff]",ys="["+Vv+"]",ey="\\u200d",ty="(?:"+Qv+"|"+Jv+")",cI="(?:"+ys+"|"+Jv+")",ny="(?:"+Rf+"(?:d|ll|m|re|s|t|ve))?",ry="(?:"+Rf+"(?:D|LL|M|RE|S|T|VE))?",iy=lI+"?",oy="["+qv+"]?",uI="(?:"+ey+"(?:"+[Zv,Of,Mf].join("|")+")"+oy+iy+")*",dI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sy=oy+iy+uI,hI="(?:"+[aI,Of,Mf].join("|")+")"+sy,pI="(?:"+[Zv+Cc+"?",Cc,Of,Mf,sI].join("|")+")",mI=RegExp(Rf,"g"),gI=RegExp(Cc,"g"),Lf=RegExp(Pf+"(?="+Pf+")|"+pI+sy,"g"),vI=RegExp([ys+"?"+Qv+"+"+ny+"(?="+[Yv,ys,"$"].join("|")+")",cI+"+"+ry+"(?="+[Yv,ys+ty,"$"].join("|")+")",ys+"?"+ty+"+"+ny,ys+"+"+ry,fI,dI,Kv,hI].join("|"),"g"),yI=RegExp("["+ey+Ec+Hv+qv+"]"),bI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xI=["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"],wI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[$t]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[$t]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var _I={À:"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"},SI={"&":"&","<":"<",">":">",'"':""","'":"'"},EI={"&":"&","<":"<",">":">",""":'"',"'":"'"},CI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TI=parseFloat,kI=parseInt,ay=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,AI=typeof self=="object"&&self&&self.Object===Object&&self,pn=ay||AI||Function("return this")(),Df=t&&!t.nodeType&&t,_o=Df&&!0&&e&&!e.nodeType&&e,ly=_o&&_o.exports===Df,Nf=ly&&ay.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||Nf&&Nf.binding&&Nf.binding("util")}catch{}}(),cy=ur&&ur.isArrayBuffer,uy=ur&&ur.isDate,dy=ur&&ur.isMap,fy=ur&&ur.isRegExp,hy=ur&&ur.isSet,py=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function II(q,ee,Z,ge){for(var De=-1,ft=q==null?0:q.length;++De-1}function Bf(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function _y(q,ee){for(var Z=q.length;Z--&&bs(ee,q[Z],0)>-1;);return Z}function $I(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var FI=jf(_I),zI=jf(SI);function jI(q){return"\\"+CI[q]}function UI(q,ee){return q==null?n:q[ee]}function xs(q){return yI.test(q)}function HI(q){return bI.test(q)}function WI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function Gf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Sy(q,ee){return function(Z){return q(ee(Z))}}function $i(q,ee){for(var Z=-1,ge=q.length,De=0,ft=[];++Z-1}function PR(l,d){var m=this.__data__,_=Hc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=kR,ui.prototype.delete=AR,ui.prototype.get=IR,ui.prototype.has=RR,ui.prototype.set=PR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,ne=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!Ft(l))return l;var re=$e(l);if(re){if(B=DP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Wi(l))return o0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:E0(l),!U)return Y?EP(l,qR(B,l)):SP(l,Dy(B,l))}else{if(!Tt[oe])return T?l:{};B=NP(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),Z0(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):Q0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=ne?Y?vh:gh:Y?$n:sn,qe=re?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Ha(B,Je,pr(Ae,d,m,Je,l,M))}),B}function XR(l){var d=sn(l);return function(m){return Ny(m,l,d)}}function Ny(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function By(l,d,m){if(typeof l!="function")throw new fr(s);return Ka(function(){l.apply(n,m)},d)}function Wa(l,d,m,_){var T=-1,M=Tc,B=!0,U=l.length,Y=[],ne=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Bf,B=!1):d.length>=i&&(M=Ba,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:tb(_);m<_;)l[m++]=d;return l}function Fy(l,d){var m=[];return zi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=$P),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Bi(T,U):_||(T[T.length]=U)}return T}var Jf=d0(),zy=d0(!0);function Qr(l,d){return l&&Jf(l,d,sn)}function Zf(l,d){return l&&zy(l,d,sn)}function Gc(l,d){return Ni(d,function(m){return gi(l[m])})}function ko(l,d){d=Ui(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function jy(l,d,m){var _=d(l);return $e(l)?_:Bi(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?OP(l):GP(l)}function eh(l,d){return l>d}function QR(l,d){return l!=null&&bt.call(l,d)}function JR(l,d){return l!=null&&d in St(l)}function ZR(l,d,m){return l>=wn(d,m)&&l=120&&re.length>=120)?new Co(B&&re):n}re=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Nc.call(U,Y,1),Nc.call(l,Y,1);return l}function Qy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Nc.call(l,T,1):ch(l,T)}}return l}function sh(l,d){return l+Fc(Py()*(d-l+1))}function fP(l,d,m,_){for(var T=-1,M=nn($c((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function ah(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=Fc(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Eh(k0(l,d,Fn),l+"")}function hP(l){return Ly(Ps(l))}function pP(l,d){var m=Ps(l);return nu(m,To(d,0,m.length))}function qa(l,d,m,_){if(!Ft(l))return l;d=Ui(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var ne=d?null:AP(l);if(ne)return Ac(ne);B=!1,T=Ba,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var i0=oR||function(l){return pn.clearTimeout(l)};function o0(l,d){if(d)return l.slice();var m=l.length,_=Ty?Ty(m):new l.constructor(m);return l.copy(_),_}function hh(l){var d=new l.constructor(l.byteLength);return new Lc(d).set(new Lc(l)),d}function bP(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function xP(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function wP(l){return Ua?St(Ua.call(l)):{}}function s0(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function a0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,ne=er(d);if(!U&&!ne&&!M&&l>d||M&&B&&Y&&!U&&!ne||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!ne&&l=U)return Y;var ne=m[_];return Y*(ne=="desc"?-1:1)}}return l.index-d.index}function l0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,ne=nn(M-B,0),re=Z(Y+ne),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function p0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&eu(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),re&&YU))return!1;var ne=M.get(l),re=M.get(d);if(ne&&re)return ne==d&&re==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Di,`{ + */wC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,L=512,N=30,H="...",G=800,z=16,D=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,ie=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",L],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",zt="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Vt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),ps=/<%-([\s\S]+?)%>/g,td=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,_c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sc=/^\w*$/,If=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,Rf=RegExp(ms.source),xo=/^\s+/,Ec=/\s/,Li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gs=/\{\n\/\* \[wrapped with (.+)\] \*/,Pf=/,? & /,vs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ba=/[()=,{}\[\]\/\s]/,nd=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,Bl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,Hv=/^0o[0-7]+$/i,Wv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,eI=/['\n\r\u2028\u2029\\]/g,Cc="\\ud800-\\udfff",tI="\\u0300-\\u036f",nI="\\ufe20-\\ufe2f",rI="\\u20d0-\\u20ff",Gv=tI+nI+rI,Vv="\\u2700-\\u27bf",qv="a-z\\xdf-\\xf6\\xf8-\\xff",iI="\\xac\\xb1\\xd7\\xf7",oI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sI="\\u2000-\\u206f",aI=" \\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",Xv="A-Z\\xc0-\\xd6\\xd8-\\xde",Yv="\\ufe0e\\ufe0f",Kv=iI+oI+sI+aI,Of="['’]",lI="["+Cc+"]",Qv="["+Kv+"]",Tc="["+Gv+"]",Jv="\\d+",cI="["+Vv+"]",Zv="["+qv+"]",ey="[^"+Cc+Kv+Jv+Vv+qv+Xv+"]",Mf="\\ud83c[\\udffb-\\udfff]",uI="(?:"+Tc+"|"+Mf+")",ty="[^"+Cc+"]",Df="(?:\\ud83c[\\udde6-\\uddff]){2}",Lf="[\\ud800-\\udbff][\\udc00-\\udfff]",ys="["+Xv+"]",ny="\\u200d",ry="(?:"+Zv+"|"+ey+")",dI="(?:"+ys+"|"+ey+")",iy="(?:"+Of+"(?:d|ll|m|re|s|t|ve))?",oy="(?:"+Of+"(?:D|LL|M|RE|S|T|VE))?",sy=uI+"?",ay="["+Yv+"]?",fI="(?:"+ny+"(?:"+[ty,Df,Lf].join("|")+")"+ay+sy+")*",hI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ly=ay+sy+fI,mI="(?:"+[cI,Df,Lf].join("|")+")"+ly,gI="(?:"+[ty+Tc+"?",Tc,Df,Lf,lI].join("|")+")",vI=RegExp(Of,"g"),yI=RegExp(Tc,"g"),Nf=RegExp(Mf+"(?="+Mf+")|"+gI+ly,"g"),bI=RegExp([ys+"?"+Zv+"+"+iy+"(?="+[Qv,ys,"$"].join("|")+")",dI+"+"+oy+"(?="+[Qv,ys+ry,"$"].join("|")+")",ys+"?"+ry+"+"+iy,ys+"+"+oy,pI,hI,Jv,mI].join("|"),"g"),xI=RegExp("["+ny+Cc+Gv+Yv+"]"),wI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_I=["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"],SI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[zt]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[zt]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var EI={À:"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"},CI={"&":"&","<":"<",">":">",'"':""","'":"'"},TI={"&":"&","<":"<",">":">",""":'"',"'":"'"},kI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AI=parseFloat,II=parseInt,cy=typeof $t=="object"&&$t&&$t.Object===Object&&$t,RI=typeof self=="object"&&self&&self.Object===Object&&self,pn=cy||RI||Function("return this")(),Bf=t&&!t.nodeType&&t,_o=Bf&&!0&&e&&!e.nodeType&&e,uy=_o&&_o.exports===Bf,$f=uy&&cy.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||$f&&$f.binding&&$f.binding("util")}catch{}}(),dy=ur&&ur.isArrayBuffer,fy=ur&&ur.isDate,hy=ur&&ur.isMap,py=ur&&ur.isRegExp,my=ur&&ur.isSet,gy=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function PI(q,ee,Z,ge){for(var Le=-1,ft=q==null?0:q.length;++Le-1}function Ff(q,ee,Z){for(var ge=-1,Le=q==null?0:q.length;++ge-1;);return Z}function Ey(q,ee){for(var Z=q.length;Z--&&bs(ee,q[Z],0)>-1;);return Z}function zI(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var jI=Hf(EI),UI=Hf(CI);function HI(q){return"\\"+kI[q]}function WI(q,ee){return q==null?n:q[ee]}function xs(q){return xI.test(q)}function GI(q){return wI.test(q)}function VI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function qf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,Le){Z[++ee]=[Le,ge]}),Z}function Cy(q,ee){return function(Z){return q(ee(Z))}}function $i(q,ee){for(var Z=-1,ge=q.length,Le=0,ft=[];++Z-1}function MR(l,d){var m=this.__data__,_=Wc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=IR,ui.prototype.delete=RR,ui.prototype.get=PR,ui.prototype.has=OR,ui.prototype.set=MR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,ne=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!jt(l))return l;var re=$e(l);if(re){if(B=BP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Wi(l))return a0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:T0(l),!U)return Y?TP(l,YR(B,l)):CP(l,By(B,l))}else{if(!Tt[oe])return T?l:{};B=$P(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),tb(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):Z0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=ne?Y?bh:yh:Y?$n:sn,qe=re?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Wa(B,Je,pr(Ae,d,m,Je,l,M))}),B}function KR(l){var d=sn(l);return function(m){return $y(m,l,d)}}function $y(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function Fy(l,d,m){if(typeof l!="function")throw new fr(s);return Qa(function(){l.apply(n,m)},d)}function Ga(l,d,m,_){var T=-1,M=kc,B=!0,U=l.length,Y=[],ne=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Ff,B=!1):d.length>=i&&(M=$a,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:rb(_);m<_;)l[m++]=d;return l}function jy(l,d){var m=[];return zi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=zP),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Bi(T,U):_||(T[T.length]=U)}return T}var eh=h0(),Uy=h0(!0);function Qr(l,d){return l&&eh(l,d,sn)}function th(l,d){return l&&Uy(l,d,sn)}function Vc(l,d){return Ni(d,function(m){return gi(l[m])})}function ko(l,d){d=Ui(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function Hy(l,d,m){var _=d(l);return $e(l)?_:Bi(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?DP(l):qP(l)}function nh(l,d){return l>d}function ZR(l,d){return l!=null&&bt.call(l,d)}function eP(l,d){return l!=null&&d in St(l)}function tP(l,d,m){return l>=wn(d,m)&&l=120&&re.length>=120)?new Co(B&&re):n}re=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Bc.call(U,Y,1),Bc.call(l,Y,1);return l}function Zy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Bc.call(l,T,1):dh(l,T)}}return l}function lh(l,d){return l+zc(My()*(d-l+1))}function pP(l,d,m,_){for(var T=-1,M=nn(Fc((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function ch(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=zc(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Th(I0(l,d,Fn),l+"")}function mP(l){return Ny(Ps(l))}function gP(l,d){var m=Ps(l);return ru(m,To(d,0,m.length))}function Xa(l,d,m,_){if(!jt(l))return l;d=Ui(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var ne=d?null:RP(l);if(ne)return Ic(ne);B=!1,T=$a,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var s0=aR||function(l){return pn.clearTimeout(l)};function a0(l,d){if(d)return l.slice();var m=l.length,_=Ay?Ay(m):new l.constructor(m);return l.copy(_),_}function mh(l){var d=new l.constructor(l.byteLength);return new Lc(d).set(new Lc(l)),d}function wP(l,d){var m=d?mh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function _P(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function SP(l){return Ha?St(Ha.call(l)):{}}function l0(l,d){var m=d?mh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function c0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,ne=er(d);if(!U&&!ne&&!M&&l>d||M&&B&&Y&&!U&&!ne||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!ne&&l=U)return Y;var ne=m[_];return Y*(ne=="desc"?-1:1)}}return l.index-d.index}function u0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,ne=nn(M-B,0),re=Z(Y+ne),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function g0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&tu(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),re&&YU))return!1;var ne=M.get(l),re=M.get(d);if(ne&&re)return ne==d&&re==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Li,`{ /* [wrapped with `+d+`] */ -`)}function $P(l){return $e(l)||Ro(l)||!!(Iy&&l&&l[Iy])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Uv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function nu(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,F0(l,m)});function z0(l){var d=P(l);return d.__chain__=!0,d}function Y2(l,d){return d(l),l}function ru(l,d){return d(l)}var K2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Qf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:ru,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function Q2(){return z0(this)}function J2(){return new hr(this.value(),this.__chain__)}function Z2(){this.__values__===n&&(this.__values__=eb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function eO(){return this}function tO(l){for(var d,m=this;m instanceof Uc;){var _=M0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function nO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:ru,args:[Ch],thisArg:n}),new hr(d,this.__chain__)}return this.thru(Ch)}function rO(){return n0(this.__wrapped__,this.__actions__)}var iO=Yc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function oO(l,d,m){var _=$e(l)?my:YR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function sO(l,d){var m=$e(l)?Ni:Fy;return m(l,Te(d,3))}var aO=h0(L0),lO=h0(D0);function cO(l,d){return mn(iu(l,d),1)}function uO(l,d){return mn(iu(l,d),V)}function dO(l,d,m){return m=m===n?1:Ge(m),mn(iu(l,d),m)}function j0(l,d){var m=$e(l)?dr:zi;return m(l,Te(d,3))}function U0(l,d){var m=$e(l)?RI:$y;return m(l,Te(d,3))}var fO=Yc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function hO(l,d,m,_){l=Bn(l)?l:Ps(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),cu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&bs(l,d,m)>-1}var pO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return zi(l,function(B){M[++_]=T?Qn(d,B,m):Ga(B,d,m)}),M}),mO=Yc(function(l,d,m){fi(l,m,d)});function iu(l,d){var m=$e(l)?Nt:Gy;return m(l,Te(d,3))}function gO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Yy(l,d,m))}var vO=Yc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function yO(l,d,m){var _=$e(l)?$f:by,T=arguments.length<3;return _(l,Te(d,4),m,T,zi)}function bO(l,d,m){var _=$e(l)?PI:by,T=arguments.length<3;return _(l,Te(d,4),m,T,$y)}function xO(l,d){var m=$e(l)?Ni:Fy;return m(l,au(Te(d,3)))}function wO(l){var d=$e(l)?Ly:hP;return d(l)}function _O(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?WR:pP;return _(l,d)}function SO(l){var d=$e(l)?GR:gP;return d(l)}function EO(l){if(l==null)return 0;if(Bn(l))return cu(l)?ws(l):l.length;var d=_n(l);return d==me||d==ze?l.size:rh(l).length}function CO(l,d,m){var _=$e(l)?Ff:vP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var TO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Yy(l,mn(d,1),[])}),ou=sR||function(){return pn.Date.now()};function kO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function H0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function W0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var kh=Ye(function(l,d,m){var _=S;if(m.length){var T=$i(m,Is(kh));_|=I}return hi(l,_,d,m,T)}),G0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=$i(m,Is(G0));_|=I}return hi(d,_,l,m,T)});function V0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=V0.placeholder,_}function q0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=q0.placeholder,_}function X0(l,d,m){var _,T,M,B,U,Y,ne=0,re=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,Ft(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,ne=Kt,B=l.apply(yi,Or),B}function ke(Kt){return ne=Kt,U=Ka(Je,d),re?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-ne,hb=d-Or;return oe?wn(hb,M-yi):hb}function Ae(Kt){var Or=Kt-Y,yi=Kt-ne;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=ou();if(Ae(Kt))return it(Kt);U=Ka(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&i0(U),ne=0,_=Y=T=U=n}function Pn(){return U===n?B:it(ou())}function nr(){var Kt=ou(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return i0(U),U=Ka(Je,d),we(Y)}return U===n&&(U=Ka(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var AO=Ye(function(l,d){return By(l,1,d)}),IO=Ye(function(l,d,m){return By(l,vr(d)||0,m)});function RO(l){return hi(l,D)}function su(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(su.Cache||di),m}su.Cache=di;function au(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function PO(l){return W0(2,l)}var OO=yP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Uy(function(){return arguments}())?Uy:function(l){return Ut(l)&&bt.call(l,"callee")&&!Ay.call(l,"callee")},$e=Z.isArray,qO=cy?Jn(cy):tP;function Bn(l){return l!=null&&lu(l.length)&&!gi(l)}function Yt(l){return Ut(l)&&Bn(l)}function XO(l){return l===!0||l===!1||Ut(l)&&In(l)==le}var Wi=lR||Fh,YO=uy?Jn(uy):nP;function KO(l){return Ut(l)&&l.nodeType===1&&!Qa(l)}function QO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Rs(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ya(l))return!rh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function JO(l,d){return Va(l,d)}function ZO(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?Va(l,d,n,m):!!_}function Ih(l){if(!Ut(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Qa(l)}function eM(l){return typeof l=="number"&&Ry(l)}function gi(l){if(!Ft(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function K0(l){return typeof l=="number"&&l==Ge(l)}function lu(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Ft(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ut(l){return l!=null&&typeof l=="object"}var Q0=dy?Jn(dy):iP;function tM(l,d){return l===d||nh(l,d,bh(d))}function nM(l,d,m){return m=typeof m=="function"?m:n,nh(l,d,bh(d),m)}function rM(l){return J0(l)&&l!=+l}function iM(l){if(jP(l))throw new De(o);return Hy(l)}function oM(l){return l===null}function sM(l){return l==null}function J0(l){return typeof l=="number"||Ut(l)&&In(l)==be}function Qa(l){if(!Ut(l)||In(l)!=Xe)return!1;var d=Dc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Pc.call(m)==nR}var Rh=fy?Jn(fy):oP;function aM(l){return K0(l)&&l>=-W&&l<=W}var Z0=hy?Jn(hy):sP;function cu(l){return typeof l=="string"||!$e(l)&&Ut(l)&&In(l)==st}function er(l){return typeof l=="symbol"||Ut(l)&&In(l)==gt}var Rs=py?Jn(py):aP;function lM(l){return l===n}function cM(l){return Ut(l)&&_n(l)==_e}function uM(l){return Ut(l)&&In(l)==je}var dM=Zc(ih),fM=Zc(function(l,d){return l<=d});function eb(l){if(!l)return[];if(Bn(l))return cu(l)?Ir(l):Nn(l);if($a&&l[$a])return WI(l[$a]());var d=_n(l),m=d==me?Gf:d==ze?Ac:Ps;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function tb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(Ft(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Ft(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=xy(l);var m=Dl.test(l);return m||jv.test(l)?kI(l.slice(2),m?2:8):Ll.test(l)?X:+l}function nb(l){return Jr(l,$n(l))}function hM(l){return l?To(Ge(l),-W,W):l===0?l:0}function pt(l){return l==null?"":Zn(l)}var pM=ks(function(l,d){if(Ya(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Ha(l,m,d[m])}),rb=ks(function(l,d){Jr(d,$n(d),l)}),uu=ks(function(l,d,m,_){Jr(d,$n(d),l,_)}),mM=ks(function(l,d,m,_){Jr(d,sn(d),l,_)}),gM=pi(Qf);function vM(l,d){var m=Ts(l);return d==null?m:Dy(m,d)}var yM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,vh(l),m),_&&(m=pr(m,h|p|g,IP));for(var T=d.length;T--;)ch(m,d[T]);return m});function NM(l,d){return ob(l,au(Te(d)))}var BM=pi(function(l,d){return l==null?{}:uP(l,d)});function ob(l,d){if(l==null)return{};var m=Nt(vh(l),function(_){return[_]});return d=Te(d),Ky(l,m,function(_,T){return d(_,T[0])})}function $M(l,d,m){d=Ui(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=Py();return wn(l+T*(d-l+TI("1e-"+((T+"").length-1))),d)}return sh(l,d)}var YM=As(function(l,d,m){return d=d.toLowerCase(),l+(m?lb(d):d)});function lb(l){return Mh(pt(l).toLowerCase())}function cb(l){return l=pt(l),l&&l.replace(en,FI).replace(gI,"")}function KM(l,d,m){l=pt(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function QM(l){return l=pt(l),l&&ci.test(l)?l.replace(Wr,zI):l}function JM(l){return l=pt(l),l&&Af.test(l)?l.replace(ms,"\\$&"):l}var ZM=As(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),eL=As(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),tL=f0("toLowerCase");function nL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Jc(Fc(T),m)+l+Jc($c(T),m)}function rL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;return d&&_>>0,m?(l=pt(l),l&&(typeof d=="string"||d!=null&&!Rh(d))&&(d=Zn(d),!d&&xs(l))?Hi(Ir(l),0,m):l.split(d,m)):[]}var uL=As(function(l,d,m){return l+(m?" ":"")+Mh(d)});function dL(l,d,m){return l=pt(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function fL(l,d,m){var _=P.templateSettings;m&&Rn(l,d,m)&&(d=n),l=pt(l),d=uu({},d,_,b0);var T=uu({},d.imports,_.imports,b0),M=sn(T),B=Wf(T,M),U,Y,ne=0,re=d.interpolate||Ar,oe="__p += '",fe=Vf((d.escape||Ar).source+"|"+re.source+"|"+(re===sa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wI+"]")+` -`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(ne,nr).replace(JA,jI),Je&&(U=!0,oe+=`' + +`)}function zP(l){return $e(l)||Ro(l)||!!(Py&&l&&l[Py])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Wv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function ru(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,j0(l,m)});function U0(l){var d=P(l);return d.__chain__=!0,d}function Q2(l,d){return d(l),l}function iu(l,d){return d(l)}var J2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Zf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:iu,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function Z2(){return U0(this)}function eO(){return new hr(this.value(),this.__chain__)}function tO(){this.__values__===n&&(this.__values__=nb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function nO(){return this}function rO(l){for(var d,m=this;m instanceof Hc;){var _=L0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function iO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:iu,args:[kh],thisArg:n}),new hr(d,this.__chain__)}return this.thru(kh)}function oO(){return i0(this.__wrapped__,this.__actions__)}var sO=Kc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function aO(l,d,m){var _=$e(l)?vy:QR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function lO(l,d){var m=$e(l)?Ni:jy;return m(l,Te(d,3))}var cO=m0(N0),uO=m0(B0);function dO(l,d){return mn(ou(l,d),1)}function fO(l,d){return mn(ou(l,d),V)}function hO(l,d,m){return m=m===n?1:Ge(m),mn(ou(l,d),m)}function H0(l,d){var m=$e(l)?dr:zi;return m(l,Te(d,3))}function W0(l,d){var m=$e(l)?OI:zy;return m(l,Te(d,3))}var pO=Kc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function mO(l,d,m,_){l=Bn(l)?l:Ps(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),uu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&bs(l,d,m)>-1}var gO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return zi(l,function(B){M[++_]=T?Qn(d,B,m):Va(B,d,m)}),M}),vO=Kc(function(l,d,m){fi(l,m,d)});function ou(l,d){var m=$e(l)?Nt:qy;return m(l,Te(d,3))}function yO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Qy(l,d,m))}var bO=Kc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function xO(l,d,m){var _=$e(l)?zf:wy,T=arguments.length<3;return _(l,Te(d,4),m,T,zi)}function wO(l,d,m){var _=$e(l)?MI:wy,T=arguments.length<3;return _(l,Te(d,4),m,T,zy)}function _O(l,d){var m=$e(l)?Ni:jy;return m(l,lu(Te(d,3)))}function SO(l){var d=$e(l)?Ny:mP;return d(l)}function EO(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?VR:gP;return _(l,d)}function CO(l){var d=$e(l)?qR:yP;return d(l)}function TO(l){if(l==null)return 0;if(Bn(l))return uu(l)?ws(l):l.length;var d=_n(l);return d==me||d==ze?l.size:oh(l).length}function kO(l,d,m){var _=$e(l)?jf:bP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var AO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Qy(l,mn(d,1),[])}),su=lR||function(){return pn.Date.now()};function IO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function G0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function V0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var Ih=Ye(function(l,d,m){var _=S;if(m.length){var T=$i(m,Is(Ih));_|=I}return hi(l,_,d,m,T)}),q0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=$i(m,Is(q0));_|=I}return hi(d,_,l,m,T)});function X0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=X0.placeholder,_}function Y0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=Y0.placeholder,_}function K0(l,d,m){var _,T,M,B,U,Y,ne=0,re=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,jt(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,ne=Kt,B=l.apply(yi,Or),B}function ke(Kt){return ne=Kt,U=Qa(Je,d),re?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-ne,mb=d-Or;return oe?wn(mb,M-yi):mb}function Ae(Kt){var Or=Kt-Y,yi=Kt-ne;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=su();if(Ae(Kt))return it(Kt);U=Qa(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&s0(U),ne=0,_=Y=T=U=n}function Pn(){return U===n?B:it(su())}function nr(){var Kt=su(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return s0(U),U=Qa(Je,d),we(Y)}return U===n&&(U=Qa(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var RO=Ye(function(l,d){return Fy(l,1,d)}),PO=Ye(function(l,d,m){return Fy(l,vr(d)||0,m)});function OO(l){return hi(l,L)}function au(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(au.Cache||di),m}au.Cache=di;function lu(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function MO(l){return V0(2,l)}var DO=xP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Wy(function(){return arguments}())?Wy:function(l){return Ht(l)&&bt.call(l,"callee")&&!Ry.call(l,"callee")},$e=Z.isArray,YO=dy?Jn(dy):rP;function Bn(l){return l!=null&&cu(l.length)&&!gi(l)}function Yt(l){return Ht(l)&&Bn(l)}function KO(l){return l===!0||l===!1||Ht(l)&&In(l)==le}var Wi=uR||jh,QO=fy?Jn(fy):iP;function JO(l){return Ht(l)&&l.nodeType===1&&!Ja(l)}function ZO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Rs(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ka(l))return!oh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function eM(l,d){return qa(l,d)}function tM(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?qa(l,d,n,m):!!_}function Ph(l){if(!Ht(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Ja(l)}function nM(l){return typeof l=="number"&&Oy(l)}function gi(l){if(!jt(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function J0(l){return typeof l=="number"&&l==Ge(l)}function cu(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function jt(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ht(l){return l!=null&&typeof l=="object"}var Z0=hy?Jn(hy):sP;function rM(l,d){return l===d||ih(l,d,wh(d))}function iM(l,d,m){return m=typeof m=="function"?m:n,ih(l,d,wh(d),m)}function oM(l){return eb(l)&&l!=+l}function sM(l){if(HP(l))throw new Le(o);return Gy(l)}function aM(l){return l===null}function lM(l){return l==null}function eb(l){return typeof l=="number"||Ht(l)&&In(l)==be}function Ja(l){if(!Ht(l)||In(l)!=Xe)return!1;var d=Nc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Oc.call(m)==iR}var Oh=py?Jn(py):aP;function cM(l){return J0(l)&&l>=-W&&l<=W}var tb=my?Jn(my):lP;function uu(l){return typeof l=="string"||!$e(l)&&Ht(l)&&In(l)==st}function er(l){return typeof l=="symbol"||Ht(l)&&In(l)==gt}var Rs=gy?Jn(gy):cP;function uM(l){return l===n}function dM(l){return Ht(l)&&_n(l)==_e}function fM(l){return Ht(l)&&In(l)==je}var hM=eu(sh),pM=eu(function(l,d){return l<=d});function nb(l){if(!l)return[];if(Bn(l))return uu(l)?Ir(l):Nn(l);if(Fa&&l[Fa])return VI(l[Fa]());var d=_n(l),m=d==me?qf:d==ze?Ic:Ps;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function rb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(jt(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=jt(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_y(l);var m=Bl.test(l);return m||Hv.test(l)?II(l.slice(2),m?2:8):Nl.test(l)?X:+l}function ib(l){return Jr(l,$n(l))}function mM(l){return l?To(Ge(l),-W,W):l===0?l:0}function pt(l){return l==null?"":Zn(l)}var gM=ks(function(l,d){if(Ka(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Wa(l,m,d[m])}),ob=ks(function(l,d){Jr(d,$n(d),l)}),du=ks(function(l,d,m,_){Jr(d,$n(d),l,_)}),vM=ks(function(l,d,m,_){Jr(d,sn(d),l,_)}),yM=pi(Zf);function bM(l,d){var m=Ts(l);return d==null?m:By(m,d)}var xM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,bh(l),m),_&&(m=pr(m,h|p|g,PP));for(var T=d.length;T--;)dh(m,d[T]);return m});function $M(l,d){return ab(l,lu(Te(d)))}var FM=pi(function(l,d){return l==null?{}:fP(l,d)});function ab(l,d){if(l==null)return{};var m=Nt(bh(l),function(_){return[_]});return d=Te(d),Jy(l,m,function(_,T){return d(_,T[0])})}function zM(l,d,m){d=Ui(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=My();return wn(l+T*(d-l+AI("1e-"+((T+"").length-1))),d)}return lh(l,d)}var QM=As(function(l,d,m){return d=d.toLowerCase(),l+(m?ub(d):d)});function ub(l){return Lh(pt(l).toLowerCase())}function db(l){return l=pt(l),l&&l.replace(en,jI).replace(yI,"")}function JM(l,d,m){l=pt(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function ZM(l){return l=pt(l),l&&ci.test(l)?l.replace(Wr,UI):l}function eD(l){return l=pt(l),l&&Rf.test(l)?l.replace(ms,"\\$&"):l}var tD=As(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),nD=As(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),rD=p0("toLowerCase");function iD(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Zc(zc(T),m)+l+Zc(Fc(T),m)}function oD(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;return d&&_>>0,m?(l=pt(l),l&&(typeof d=="string"||d!=null&&!Oh(d))&&(d=Zn(d),!d&&xs(l))?Hi(Ir(l),0,m):l.split(d,m)):[]}var fD=As(function(l,d,m){return l+(m?" ":"")+Lh(d)});function hD(l,d,m){return l=pt(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function pD(l,d,m){var _=P.templateSettings;m&&Rn(l,d,m)&&(d=n),l=pt(l),d=du({},d,_,w0);var T=du({},d.imports,_.imports,w0),M=sn(T),B=Vf(T,M),U,Y,ne=0,re=d.interpolate||Ar,oe="__p += '",fe=Xf((d.escape||Ar).source+"|"+re.source+"|"+(re===sa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SI+"]")+` +`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(ne,nr).replace(eI,HI),Je&&(U=!0,oe+=`' + __e(`+Je+`) + '`),Pn&&(Y=!0,oe+=`'; `+Pn+`; @@ -232,13 +232,13 @@ __p += '`),it&&(oe+=`' + `;var ke=bt.call(d,"variable")&&d.variable;if(!ke)oe=`with (obj) { `+oe+` } -`;else if(Na.test(ke))throw new De(a);oe=(Y?oe.replace(Gt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { +`;else if(Ba.test(ke))throw new Le(a);oe=(Y?oe.replace(Vt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { `+(ke?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(Y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p -}`;var qe=db(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ih(qe))throw qe;return qe}function hL(l){return pt(l).toLowerCase()}function pL(l){return pt(l).toUpperCase()}function mL(l,d,m){if(l=pt(l),l&&(m||d===n))return xy(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=wy(_,T),B=_y(_,T)+1;return Hi(_,M,B).join("")}function gL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.slice(0,Ey(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=_y(_,Ir(d))+1;return Hi(_,0,T).join("")}function vL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=wy(_,Ir(d));return Hi(_,T).join("")}function yL(l,d){var m=N,_=H;if(Ft(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=pt(l);var M=l.length;if(xs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-ws(_);if(U<1)return _;var Y=B?Hi(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Rh(T)){if(l.slice(U).search(T)){var ne,re=Y;for(T.global||(T=Vf(T.source,pt(lr.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function bL(l){return l=pt(l),l&&Kr.test(l)?l.replace(Hr,XI):l}var xL=As(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Mh=f0("toUpperCase");function ub(l,d,m){return l=pt(l),d=m?n:d,d===n?HI(l)?QI(l):LI(l):l.match(d)||[]}var db=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ih(m)?m:new De(m)}}),wL=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,kh(l[m],l))}),l});function _L(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Hf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=P[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(P.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,ne=U[0],re=Y||$e(B),oe=function(Je){var it=T.apply(P,Bi([Je],U));return _&&fe?it[0]:it};re&&m&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&re){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:ru,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ic[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=P[d];if(m){var _=m.name+"";bt.call(Cs,_)||(Cs[_]=[]),Cs[_].push({name:d,func:m})}}),Cs[Kc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=bR,et.prototype.reverse=xR,et.prototype.value=wR,P.prototype.at=K2,P.prototype.chain=Q2,P.prototype.commit=J2,P.prototype.next=Z2,P.prototype.plant=tO,P.prototype.reverse=nO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=rO,P.prototype.first=P.prototype.head,$a&&(P.prototype[$a]=eO),P},_s=JI();_o?((_o.exports=_s)._=_s,Df._=_s):pn._=_s}).call(Xt)})(xC,xC.exports);var te=xC.exports;function ai(e){return C.jsx(ht,{px:.5,display:"inline-block",...e})}function zz({primary:e,secondary:t}){return C.jsxs(En,{children:[C.jsx(ht,{children:e}),C.jsx(ai,{}),C.jsx(ht,{sx:{opacity:.56},children:t})]})}/*! ***************************************************************************** +}`;var qe=hb(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ph(qe))throw qe;return qe}function mD(l){return pt(l).toLowerCase()}function gD(l){return pt(l).toUpperCase()}function vD(l,d,m){if(l=pt(l),l&&(m||d===n))return _y(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=Sy(_,T),B=Ey(_,T)+1;return Hi(_,M,B).join("")}function yD(l,d,m){if(l=pt(l),l&&(m||d===n))return l.slice(0,Ty(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ey(_,Ir(d))+1;return Hi(_,0,T).join("")}function bD(l,d,m){if(l=pt(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Sy(_,Ir(d));return Hi(_,T).join("")}function xD(l,d){var m=N,_=H;if(jt(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=pt(l);var M=l.length;if(xs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-ws(_);if(U<1)return _;var Y=B?Hi(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Oh(T)){if(l.slice(U).search(T)){var ne,re=Y;for(T.global||(T=Xf(T.source,pt(lr.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function wD(l){return l=pt(l),l&&Kr.test(l)?l.replace(Hr,KI):l}var _D=As(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Lh=p0("toUpperCase");function fb(l,d,m){return l=pt(l),d=m?n:d,d===n?GI(l)?ZI(l):NI(l):l.match(d)||[]}var hb=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ph(m)?m:new Le(m)}}),SD=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,Ih(l[m],l))}),l});function ED(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Gf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=P[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(P.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,ne=U[0],re=Y||$e(B),oe=function(Je){var it=T.apply(P,Bi([Je],U));return _&&fe?it[0]:it};re&&m&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&re){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:iu,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Rc[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=P[d];if(m){var _=m.name+"";bt.call(Cs,_)||(Cs[_]=[]),Cs[_].push({name:d,func:m})}}),Cs[Qc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=wR,et.prototype.reverse=_R,et.prototype.value=SR,P.prototype.at=J2,P.prototype.chain=Z2,P.prototype.commit=eO,P.prototype.next=tO,P.prototype.plant=rO,P.prototype.reverse=iO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=oO,P.prototype.first=P.prototype.head,Fa&&(P.prototype[Fa]=nO),P},_s=eR();_o?((_o.exports=_s)._=_s,Bf._=_s):pn._=_s}).call($t)})(wC,wC.exports);var te=wC.exports;function ai(e){return C.jsx(ht,{px:.5,display:"inline-block",...e})}function Uz({primary:e,secondary:t}){return C.jsxs(En,{children:[C.jsx(ht,{children:e}),C.jsx(ai,{}),C.jsx(ht,{sx:{opacity:.56},children:t})]})}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -251,7 +251,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */var wC=function(){return wC=Object.assign||function(t){for(var n,r=1,i=arguments.length;r>>0).toString(36)},iwe=function(e){e=e||{};var t=e.assign||Object.assign,n=typeof window=="object",r=t({raw:"",pfx:"_",client:n,assign:t,stringify:JSON.stringify,kebab:function(i){return i.replace(nwe,"-$&").toLowerCase()},decl:function(i,o){return i=r.kebab(i),i+":"+o+";"},hash:function(i){return rwe(r.stringify(i))},selector:function(i,o){return i+(o[0]===":"?"":" ")+o},putRaw:function(i){r.raw+=i}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(i){{var o=r.sh.sheet;try{o.insertRule(i,o.cssRules.length)}catch{}}}),r.put=function(i,o,s){var a="",c,u,f=[];for(c in o)u=o[c],u instanceof Object&&!(u instanceof Array)?f.push(c):a+=r.decl(c,u,i,s);a&&(a=i+"{"+a+"}",r.putRaw(s?s+"{"+a+"}":a));for(var h=0;h=0;){if(r[t]===e){n.deleteRule(t);break}t--}}GQ.removeRule=swe;var awe=GQ.removeRule,lwe=function(e){if(!e.client)return;var t=e.kebab;function n(i,o){this.rule=e.createRule(i,o),this.decl={}}n.prototype.diff=function(i){var o=this.decl,s=this.rule.style,a;for(a in o)i[a]===void 0&&s.removeProperty(a);for(a in i)i[a]!==o[a]&&s.setProperty(t(a),i[a]);this.decl=i},n.prototype.del=function(){awe(this.rule)};function r(){this.tree={}}r.prototype.diff=function(i){var o=this.tree;for(var s in o)if(i[s]===void 0){var a=o[s];for(var c in a)a[c].del()}for(var s in i)if(o[s]===void 0)for(var c in i[s]){var u=new n(c,s);u.diff(i[s][c]),i[s][c]=u}else{var f=o[s],h=i[s];for(var c in f)h[c]||f[c].del();for(var c in h){var u=f[c];u?(u.diff(h[c]),h[c]=u):(u=new n(c,s),u.diff(h[c]),h[c]=u)}}this.tree=i},e.VRule=n,e.VSheet=r};function n3(e,t,n,r){var i={},o=!1,s,a;for(s in t)a=t[s],typeof a!="object"&&(o=!0,i[s]=a);o&&(e[r]||(e[r]={}),e[r][n]=i);for(s in t)if(a=t[s],typeof a=="object")if(s[0]==="@")n3(e,a,n,s);else{var c=s.indexOf("&")>-1,u=n.split(",");if(c)for(var f=0;ft,Uk=(e,t)=>({...e,...t});function mc(e,{init:t,effect:n,reduce:r=Uk}={}){const i=R.createContext([e,te.noop]);return[()=>R.useContext(i),({children:o})=>{const[s,a]=twe(e),c=R.useCallback(f=>{const h=r(s(),f(s()));n==null||n({prev:s(),next:h}),a(h)},[s]),u=R.useMemo(()=>[s(),c],[s(),c]);return Q1e(async()=>{const f=await(t==null?void 0:t());f&&c(()=>f)}),C.jsx(i.Provider,{value:u,children:o})}]}function wwe(e,t){return{init:()=>{const n=localStorage.getItem(e);return n?JSON.parse(n):t},effect:({next:n})=>localStorage.setItem(e,JSON.stringify(n))}}const[KQ,_we]=mc([],{reduce:(e,t)=>[t,...e]}),QQ=R.createContext(()=>te.noop);function gc(){return R.useContext(QQ)}function Swe({children:e}){const[t,n]=R.useState([]),[r,i]=R.useState(!1),[o,s]=R.useState(void 0),[,a]=KQ();R.useEffect(()=>{t.length&&!o?(s({...t[0]}),n(h=>h.slice(1)),i(!0)):t.length&&o&&r&&i(!1)},[t,o,r]);const c=R.useCallback((h,p)=>(n(g=>[...g,{message:C.jsx(zz,{primary:h,secondary:p}),key:new Date().getTime()}]),a(()=>({content:te.filter([h,p]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),()=>u()),[n]),u=(h,p)=>{p!=="clickaway"&&i(!1)},f=()=>s(void 0);return C.jsxs(C.Fragment,{children:[C.jsx(QQ.Provider,{value:c,children:e}),C.jsx(uxe,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:r,autoHideDuration:6e3,onClose:u,TransitionProps:{onExited:f},message:o==null?void 0:o.message,action:C.jsx(C.Fragment,{children:C.jsx(Fp,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:u,children:C.jsx(zQ,{})})})},o==null?void 0:o.key)]})}/*! +***************************************************************************** */var _C=function(){return _C=Object.assign||function(t){for(var n,r=1,i=arguments.length;r>>0).toString(36)},uwe=function(e){e=e||{};var t=e.assign||Object.assign,n=typeof window=="object",r=t({raw:"",pfx:"_",client:n,assign:t,stringify:JSON.stringify,kebab:function(i){return i.replace(lwe,"-$&").toLowerCase()},decl:function(i,o){return i=r.kebab(i),i+":"+o+";"},hash:function(i){return cwe(r.stringify(i))},selector:function(i,o){return i+(o[0]===":"?"":" ")+o},putRaw:function(i){r.raw+=i}},e);return r.client&&(r.sh||document.head.appendChild(r.sh=document.createElement("style")),r.putRaw=function(i){{var o=r.sh.sheet;try{o.insertRule(i,o.cssRules.length)}catch{}}}),r.put=function(i,o,s){var a="",c,u,f=[];for(c in o)u=o[c],u instanceof Object&&!(u instanceof Array)?f.push(c):a+=r.decl(c,u,i,s);a&&(a=i+"{"+a+"}",r.putRaw(s?s+"{"+a+"}":a));for(var h=0;h=0;){if(r[t]===e){n.deleteRule(t);break}t--}}qQ.removeRule=fwe;var hwe=qQ.removeRule,pwe=function(e){if(!e.client)return;var t=e.kebab;function n(i,o){this.rule=e.createRule(i,o),this.decl={}}n.prototype.diff=function(i){var o=this.decl,s=this.rule.style,a;for(a in o)i[a]===void 0&&s.removeProperty(a);for(a in i)i[a]!==o[a]&&s.setProperty(t(a),i[a]);this.decl=i},n.prototype.del=function(){hwe(this.rule)};function r(){this.tree={}}r.prototype.diff=function(i){var o=this.tree;for(var s in o)if(i[s]===void 0){var a=o[s];for(var c in a)a[c].del()}for(var s in i)if(o[s]===void 0)for(var c in i[s]){var u=new n(c,s);u.diff(i[s][c]),i[s][c]=u}else{var f=o[s],h=i[s];for(var c in f)h[c]||f[c].del();for(var c in h){var u=f[c];u?(u.diff(h[c]),h[c]=u):(u=new n(c,s),u.diff(h[c]),h[c]=u)}}this.tree=i},e.VRule=n,e.VSheet=r};function o3(e,t,n,r){var i={},o=!1,s,a;for(s in t)a=t[s],typeof a!="object"&&(o=!0,i[s]=a);o&&(e[r]||(e[r]={}),e[r][n]=i);for(s in t)if(a=t[s],typeof a=="object")if(s[0]==="@")o3(e,a,n,s);else{var c=s.indexOf("&")>-1,u=n.split(",");if(c)for(var f=0;ft,Wk=(e,t)=>({...e,...t});function vc(e,{init:t,effect:n,reduce:r=Wk}={}){const i=R.createContext([e,te.noop]);return[()=>R.useContext(i),({children:o})=>{const[s,a]=awe(e),c=R.useCallback(f=>{const h=r(s(),f(s()));n==null||n({prev:s(),next:h}),a(h)},[s]),u=R.useMemo(()=>[s(),c],[s(),c]);return rwe(async()=>{const f=await(t==null?void 0:t());f&&c(()=>f)}),C.jsx(i.Provider,{value:u,children:o})}]}function kwe(e,t){return{init:()=>{const n=localStorage.getItem(e);return n?JSON.parse(n):t},effect:({next:n})=>localStorage.setItem(e,JSON.stringify(n))}}const[JQ,Awe]=vc([],{reduce:(e,t)=>[t,...e]}),ZQ=R.createContext(()=>te.noop);function Ol(){return R.useContext(ZQ)}function Iwe({children:e}){const[t,n]=R.useState([]),[r,i]=R.useState(!1),[o,s]=R.useState(void 0),[,a]=JQ();R.useEffect(()=>{t.length&&!o?(s({...t[0]}),n(h=>h.slice(1)),i(!0)):t.length&&o&&r&&i(!1)},[t,o,r]);const c=R.useCallback((h,p)=>(n(g=>[...g,{message:C.jsx(Uz,{primary:h,secondary:p}),key:new Date().getTime()}]),a(()=>({content:te.filter([h,p]).join(", "),timestamp:`${new Date().toLocaleDateString()} ${new Date().toLocaleTimeString()}`})),()=>u()),[n]),u=(h,p)=>{p!=="clickaway"&&i(!1)},f=()=>s(void 0);return C.jsxs(C.Fragment,{children:[C.jsx(ZQ.Provider,{value:c,children:e}),C.jsx(mxe,{anchorOrigin:{horizontal:"right",vertical:"bottom"},open:r,autoHideDuration:6e3,onClose:u,TransitionProps:{onExited:f},message:o==null?void 0:o.message,action:C.jsx(C.Fragment,{children:C.jsx(jp,{"aria-label":"close",color:"inherit",sx:{p:.5},onClick:u,children:C.jsx(UQ,{})})})},o==null?void 0:o.key)]})}/*! * OverlayScrollbars * Version: 2.3.2 * @@ -259,14 +259,14 @@ PERFORMANCE OF THIS SOFTWARE. * https://github.com/KingSora * * Released under the MIT license. - */function An(e,t){if(Wk(e))for(let n=0;nt(e[n],n,e));return e}function fo(e,t){const n=yf(t);if(ea(t)||n){let i=n?"":{};if(e){const o=window.getComputedStyle(e,null);i=n?$H(e,o,t):t.reduce((s,a)=>(s[a]=$H(e,o,a),s),i)}return i}e&&An(ta(t),i=>Fwe(e,i,t[i]))}const hl=(e,t)=>{const{o:n,u:r,_:i}=e;let o=n,s;const a=(f,h)=>{const p=o,g=f,v=h||(r?!r(p,g):p!==g);return(v||i)&&(o=g,s=p),[o,v,s]};return[t?f=>a(t(o,s),f):a,f=>[o,!!f,s]]},Tw=()=>typeof window<"u",JQ=Tw()&&Node.ELEMENT_NODE,{toString:Ewe,hasOwnProperty:qD}=Object.prototype,Qu=e=>e===void 0,Hk=e=>e===null,Cwe=e=>Qu(e)||Hk(e)?`${e}`:Ewe.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Gd=e=>typeof e=="number",yf=e=>typeof e=="string",Uz=e=>typeof e=="boolean",Il=e=>typeof e=="function",ea=e=>Array.isArray(e),k1=e=>typeof e=="object"&&!ea(e)&&!Hk(e),Wk=e=>{const t=!!e&&e.length,n=Gd(t)&&t>-1&&t%1==0;return ea(e)||!Il(e)&&n?t>0&&k1(e)?t-1 in e:!0:!1},r3=e=>{if(!e||!k1(e)||Cwe(e)!=="object")return!1;let t;const n="constructor",r=e[n],i=r&&r.prototype,o=qD.call(e,n),s=i&&qD.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(t in e);return Qu(t)||qD.call(e,t)},$x=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===JQ:!1},Gk=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===JQ:!1},Vk=(e,t,n)=>e.indexOf(t,n),Gn=(e,t,n)=>(!n&&!yf(t)&&Wk(t)?Array.prototype.push.apply(e,t):e.push(t),e),Hp=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Gn(n,r)}):An(e,r=>{Gn(n,r)}),n)},Hz=e=>!!e&&e.length===0,vc=(e,t,n)=>{An(e,i=>i&&i.apply(void 0,t||[])),!n&&(e.length=0)},qk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ta=e=>e?Object.keys(e):[],Br=(e,t,n,r,i,o,s)=>{const a=[t,n,r,i,o,s];return(typeof e!="object"||Hk(e))&&!Il(e)&&(e={}),An(a,c=>{An(ta(c),u=>{const f=c[u];if(e===f)return!0;const h=ea(f);if(f&&r3(f)){const p=e[u];let g=p;h&&!ea(p)?g=[]:!h&&!r3(p)&&(g={}),e[u]=Br(g,f)}else e[u]=h?f.slice():f})}),e},Wz=e=>{for(const t in e)return!1;return!0},ZQ=(e,t,n,r)=>{if(Qu(r))return n?n[e]:t;n&&(yf(r)||Gd(r))&&(n[e]=r)},No=(e,t,n)=>{if(Qu(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},eJ=(e,t)=>new Set((No(e,t)||"").split(" ")),Go=(e,t)=>{e&&e.removeAttribute(t)},Sp=(e,t,n,r)=>{if(n){const i=eJ(e,t);i[r?"add":"delete"](n);const o=Hp(i).join(" ").trim();No(e,t,o)}},Twe=(e,t,n)=>eJ(e,t).has(n),wl=(e,t)=>ZQ("scrollLeft",0,e,t),Pu=(e,t)=>ZQ("scrollTop",0,e,t),i3=Tw()&&Element.prototype,tJ=(e,t)=>{const n=[],r=t?Gk(t)&&t:document;return r?Gn(n,r.querySelectorAll(e)):n},kwe=(e,t)=>{const n=t?Gk(t)&&t:document;return n?n.querySelector(e):null},_C=(e,t)=>Gk(e)?(i3.matches||i3.msMatchesSelector).call(e,t):!1,Gz=e=>e?Hp(e.childNodes):[],ju=e=>e&&e.parentElement,rg=(e,t)=>{if(Gk(e)){const n=i3.closest;if(n)return n.call(e,t);do{if(_C(e,t))return e;e=ju(e)}while(e)}},Awe=(e,t,n)=>{const r=rg(e,t),i=e&&kwe(n,r),o=rg(i,t)===r;return r&&i?r===e||i===e||o&&rg(rg(e,n),t)!==r:!1},Vz=(e,t,n)=>{if(n&&e){let r=t,i;Wk(n)?(i=document.createDocumentFragment(),An(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(i,r||null)}},ya=(e,t)=>{Vz(e,null,t)},Iwe=(e,t)=>{Vz(ju(e),e,t)},DH=(e,t)=>{Vz(ju(e),e&&e.nextSibling,t)},dc=e=>{if(Wk(e))An(Hp(e),t=>dc(t));else if(e){const t=ju(e);t&&t.removeChild(e)}},Ep=e=>{const t=document.createElement("div");return e&&No(t,"class",e),t},nJ=e=>{const t=Ep();return t.innerHTML=e.trim(),An(Gz(t),n=>dc(n))},o3=e=>e.charAt(0).toUpperCase()+e.slice(1),Rwe=()=>Ep().style,Pwe=["-webkit-","-moz-","-o-","-ms-"],Owe=["WebKit","Moz","O","MS","webkit","moz","o","ms"],XD={},YD={},Mwe=e=>{let t=YD[e];if(qk(YD,e))return t;const n=o3(e),r=Rwe();return An(Pwe,i=>{const o=i.replace(/-/g,"");return!(t=[e,i+e,o+n,o3(o)+n].find(a=>r[a]!==void 0))}),YD[e]=t||""},Cv=e=>{if(Tw()){let t=XD[e]||window[e];return qk(XD,e)||(An(Owe,n=>(t=t||window[n+o3(e)],!t)),XD[e]=t),t}},Lwe=Cv("MutationObserver"),NH=Cv("IntersectionObserver"),ig=Cv("ResizeObserver"),rJ=Cv("cancelAnimationFrame"),iJ=Cv("requestAnimationFrame"),s3=Cv("ScrollTimeline"),SC=Tw()&&window.setTimeout,a3=Tw()&&window.clearTimeout,Dwe=/[^\x20\t\r\n\f]+/g,oJ=(e,t,n)=>{const r=e&&e.classList;let i,o=0,s=!1;if(r&&t&&yf(t)){const a=t.match(Dwe)||[];for(s=a.length>0;i=a[o++];)s=!!n(r,i)&&s}return s},qz=(e,t)=>{oJ(e,t,(n,r)=>n.remove(r))},tf=(e,t)=>(oJ(e,t,(n,r)=>n.add(r)),qz.bind(0,e,t)),Xk=(e,t,n,r)=>{if(e&&t){let i=!0;return An(n,o=>{const s=r?r(e[o]):e[o],a=r?r(t[o]):t[o];s!==a&&(i=!1)}),i}return!1},sJ=(e,t)=>Xk(e,t,["w","h"]),aJ=(e,t)=>Xk(e,t,["x","y"]),Nwe=(e,t)=>Xk(e,t,["t","r","b","l"]),BH=(e,t,n)=>Xk(e,t,["width","height"],n&&(r=>Math.round(r))),$s=()=>{},ep=e=>{let t;const n=e?SC:iJ,r=e?a3:rJ;return[i=>{r(t),t=n(i,Il(e)?e():e)},()=>r(t)]},Xz=(e,t)=>{let n,r,i,o=$s;const{g:s,v:a,p:c}=t||{},u=function(v){o(),a3(n),n=r=void 0,o=$s,e.apply(this,v)},f=g=>c&&r?c(r,g):g,h=()=>{o!==$s&&u(f(i)||i)},p=function(){const v=Hp(arguments),y=Il(s)?s():s;if(Gd(y)&&y>=0){const w=Il(a)?a():a,b=Gd(w)&&w>=0,x=y>0?SC:iJ,E=y>0?a3:rJ,A=f(v)||v,k=u.bind(0,A);o();const O=x(k,y);o=()=>E(O),b&&!n&&(n=SC(h,w)),r=i=A}else u(v)};return p.m=h,p},Bwe={opacity:1,zIndex:1},D_=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},$we=(e,t)=>!Bwe[e]&&Gd(t)?`${t}px`:t,$H=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),Fwe=(e,t,n)=>{try{const{style:r}=e;Qu(r[t])?r.setProperty(t,n):r[t]=$we(t,n)}catch{}},Kg=e=>fo(e,"direction")==="rtl",FH=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,c=`${r}left${i}`,u=fo(e,[o,s,a,c]);return{t:D_(u[o],!0),r:D_(u[s],!0),b:D_(u[a],!0),l:D_(u[c],!0)}},Qg=(e,t)=>`translate${ea(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`}`,{round:zH}=Math,Yz={w:0,h:0},A1=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:Yz,fE=e=>e?{w:e.clientWidth,h:e.clientHeight}:Yz,EC=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:Yz,CC=e=>{const t=parseFloat(fo(e,"height"))||0,n=parseFloat(fo(e,"width"))||0;return{w:n-zH(n),h:t-zH(t)}},Yl=e=>e.getBoundingClientRect(),og=e=>!!(e&&(e.height||e.width));let N_;const zwe=()=>{if(Qu(N_)){N_=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){N_=!0}}))}catch{}}return N_},lJ=e=>e.split(" "),jwe=(e,t,n,r)=>{An(lJ(t),i=>{e.removeEventListener(i,n,r)})},oi=(e,t,n,r)=>{var i;const o=zwe(),s=(i=o&&r&&r.S)!=null?i:o,a=r&&r.$||!1,c=r&&r.C||!1,u=[],f=o?{passive:s,capture:a}:a;return An(lJ(t),h=>{const p=c?g=>{e.removeEventListener(h,p,a),n&&n(g)}:n;Gn(u,jwe.bind(null,e,h,p,a)),e.addEventListener(h,p,f)}),vc.bind(0,u)},cJ=e=>e.stopPropagation(),uJ=e=>e.preventDefault(),Uwe={x:0,y:0},KD=e=>{const t=e?Yl(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:Uwe},jH=(e,t)=>{An(ea(t)?t:[t],e)},Kz=e=>{const t=new Map,n=(o,s)=>{if(o){const a=t.get(o);jH(c=>{a&&a[c?"delete":"clear"](c)},s)}else t.forEach(a=>{a.clear()}),t.clear()},r=(o,s)=>{if(yf(o)){const u=t.get(o)||new Set;return t.set(o,u),jH(f=>{Il(f)&&u.add(f)},s),n.bind(0,o,s)}Uz(s)&&s&&n();const a=ta(o),c=[];return An(a,u=>{const f=o[u];f&&Gn(c,r(u,f))}),vc.bind(0,c)},i=(o,s)=>{const a=t.get(o);An(Hp(a),c=>{s&&!Hz(s)?c.apply(0,s):c()})};return r(e||{}),[r,n,i]},UH=e=>JSON.stringify(e,(t,n)=>{if(Il(n))throw new Error;return n}),Hwe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},dJ=(e,t)=>{const n={},r=ta(t).concat(ta(e));return An(r,i=>{const o=e[i],s=t[i];if(k1(o)&&k1(s))Br(n[i]={},dJ(o,s)),Wz(n[i])&&delete n[i];else if(qk(t,i)&&s!==o){let a=!0;if(ea(o)||ea(s))try{UH(o)===UH(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},kw="data-overlayscrollbars",fJ="os-environment",hJ=`${fJ}-flexbox-glue`,Wwe=`${hJ}-max`,pJ="os-scrollbar-hidden",QD=`${kw}-initialize`,pl=kw,mJ=`${pl}-overflow-x`,gJ=`${pl}-overflow-y`,wg="overflowVisible",Gwe="scrollbarHidden",HH="scrollbarPressed",TC="updating",md=`${kw}-viewport`,JD="arrange",vJ="scrollbarHidden",_g=wg,l3=`${kw}-padding`,Vwe=_g,WH=`${kw}-content`,Qz="os-size-observer",qwe=`${Qz}-appear`,Xwe=`${Qz}-listener`,Ywe="os-trinsic-observer",Kwe="os-no-css-vars",Qwe="os-theme-none",fs="os-scrollbar",Jwe=`${fs}-rtl`,Zwe=`${fs}-horizontal`,e_e=`${fs}-vertical`,yJ=`${fs}-track`,Jz=`${fs}-handle`,t_e=`${fs}-visible`,n_e=`${fs}-cornerless`,GH=`${fs}-transitionless`,VH=`${fs}-interaction`,qH=`${fs}-unusable`,c3=`${fs}-auto-hide`,XH=`${c3}-hidden`,YH=`${fs}-wheel`,r_e=`${yJ}-interactive`,i_e=`${Jz}-interactive`,bJ={},Wp=()=>bJ,o_e=e=>{const t=[];return An(ea(e)?e:[e],n=>{const r=ta(n);An(r,i=>{Gn(t,bJ[i]=n[i])})}),t},s_e="__osOptionsValidationPlugin",a_e="__osSizeObserverPlugin",Zz="__osScrollbarsHidingPlugin",l_e="__osClickScrollPlugin";let ZD;const KH=(e,t,n,r)=>{ya(e,t);const i=fE(t),o=A1(t),s=CC(n);return r&&dc(t),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},c_e=e=>{let t=!1;const n=tf(e,pJ);try{t=fo(e,Mwe("scrollbar-width"))==="none"||window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},u_e=(e,t)=>{const n="hidden";fo(e,{overflowX:n,overflowY:n,direction:"rtl"}),wl(e,0);const r=KD(e),i=KD(t);wl(e,-999);const o=KD(t);return{i:r.x===i.x,n:i.x!==o.x}},d_e=(e,t)=>{const n=tf(e,hJ),r=Yl(e),i=Yl(t),o=BH(i,r,!0),s=tf(e,Wwe),a=Yl(e),c=Yl(t),u=BH(c,a,!0);return n(),s(),o&&u},f_e=()=>{const{body:e}=document,n=nJ(`
`)[0],r=n.firstChild,[i,,o]=Kz(),[s,a]=hl({o:KH(e,n,r),u:aJ},KH.bind(0,e,n,r,!0)),[c]=a(),u=c_e(n),f={x:c.x===0,y:c.y===0},h={elements:{host:null,padding:!u,viewport:b=>u&&b===b.ownerDocument.body&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=Br({},Hwe),g=Br.bind(0,{},p),v=Br.bind(0,{},h),y={k:c,I:f,A:u,H:fo(n,"zIndex")==="-1",B:!!s3,V:u_e(n,r),Y:d_e(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:v,F:b=>Br(h,b)&&v(),G:g,X:b=>Br(p,b)&&g(),U:Br({},h),W:Br({},p)},S=window.addEventListener,w=Xz(b=>o(b?"z":"r"),{g:33,v:99});if(Go(n,"style"),dc(n),S("resize",w.bind(0,!1)),!u&&(!f.x||!f.y)){let b;S("resize",()=>{const x=Wp()[Zz];b=b||x&&x.R(),b&&b(y,s,w.bind(0,!0))})}return y},hs=()=>(ZD||(ZD=f_e()),ZD),ej=(e,t)=>Il(t)?t.apply(0,e):t,h_e=(e,t,n,r)=>{const i=Qu(r)?n:r;return ej(e,i)||t.apply(0,e)},xJ=(e,t,n,r)=>{const i=Qu(r)?n:r,o=ej(e,i);return!!o&&($x(o)?o:t.apply(0,e))},p_e=(e,t,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=hs(),{nativeScrollbarsOverlaid:a,body:c}=t,u=r??a,f=Qu(i)?c:i,h=(o.x||o.y)&&u,p=e&&(Hk(f)?!s:f);return!!h||!!p},tj=new WeakMap,m_e=(e,t)=>{tj.set(e,t)},g_e=e=>{tj.delete(e)},wJ=e=>tj.get(e),QH=(e,t)=>e?t.split(".").reduce((n,r)=>n&&qk(n,r)?n[r]:void 0,e):void 0,u3=(e,t,n)=>r=>[QH(e,r),n||QH(t,r)!==void 0],_J=e=>{let t=e;return[()=>t,n=>{t=Br({},t,n)}]},B_="tabindex",$_=Ep.bind(0,""),eN=e=>{ya(ju(e),Gz(e)),dc(e)},v_e=e=>{const t=hs(),{q:n,A:r}=t,i=Wp()[Zz],o=i&&i.T,{elements:s}=n(),{host:a,padding:c,viewport:u,content:f}=s,h=$x(e),p=h?{}:e,{elements:g}=p,{host:v,padding:y,viewport:S,content:w}=g||{},b=h?e:p.target,x=_C(b,"textarea"),E=b.ownerDocument,I=E.documentElement,A=b===E.body,k=E.defaultView,O=h_e.bind(0,[b]),D=xJ.bind(0,[b]),N=ej.bind(0,[b]),H=O.bind(0,$_,u),G=D.bind(0,$_,f),z=H(S),L=z===b,F=L&&A,j=!L&&G(w),V=!L&&$x(z)&&z===j,W=V&&!!N(f),K=W?H():z,X=W?j:G(),ie=F?I:V?K:z,ce=x?O($_,a,v):b,ue=F?ie:ce,se=V?X:j,J=E.activeElement,ae=!L&&k.top===k&&J===b,le={Z:b,J:ue,K:ie,tt:!L&&D($_,c,y),nt:se,ot:!L&&!r&&o&&o(t),st:F?I:ie,et:F?E:ie,ct:k,rt:E,lt:x,it:A,ut:h,ft:L,dt:V,_t:(st,gt)=>Twe(ie,L?pl:md,L?gt:st),ht:(st,gt,vt)=>Sp(ie,L?pl:md,L?gt:st,vt)},he=ta(le).reduce((st,gt)=>{const vt=le[gt];return Gn(st,vt&&$x(vt)&&!ju(vt)?vt:!1)},[]),pe=st=>st?Vk(he,st)>-1:null,{Z:ve,J:ye,tt:xe,K:me,nt:be,ot:Ze}=le,Xe=[()=>{Go(ye,pl),Go(ye,QD),Go(ve,QD),A&&(Go(I,pl),Go(I,QD))}],ct=x&&pe(ye);let Bt=x?ve:Gz([be,me,xe,ye,ve].find(st=>pe(st)===!1));const Pe=F?ve:be||me;return[le,()=>{No(ye,pl,L?"viewport":"host"),No(xe,l3,""),No(be,WH,""),L||No(me,md,"");const st=A&&!L?tf(ju(b),pJ):$s;if(ct&&(DH(ve,ye),Gn(Xe,()=>{DH(ye,ve),dc(ye)})),ya(Pe,Bt),ya(ye,xe),ya(xe||ye,!L&&me),ya(me,be),Gn(Xe,()=>{st(),Go(xe,l3),Go(be,WH),Go(me,mJ),Go(me,gJ),Go(me,md),pe(be)&&eN(be),pe(me)&&eN(me),pe(xe)&&eN(xe)}),r&&!L&&(Sp(me,md,vJ,!0),Gn(Xe,Go.bind(0,me,md))),Ze&&(Iwe(me,Ze),Gn(Xe,dc.bind(0,Ze))),ae){const gt=No(me,B_);No(me,B_,"-1"),me.focus();const vt=()=>gt?No(me,B_,gt):Go(me,B_),_e=oi(E,"pointerdown keydown",()=>{vt(),_e()});Gn(Xe,[vt,_e])}else J&&J.focus&&J.focus();Bt=0},vc.bind(0,Xe)]},y_e=(e,t)=>{const{nt:n}=e,[r]=t;return i=>{const{Y:o}=hs(),{gt:s}=r(),{vt:a}=i,c=(n||!o)&&a;return c&&fo(n,{height:s?"":"100%"}),{wt:c,bt:c}}},b_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ft:a}=e,[c,u]=hl({u:Nwe,o:FH()},FH.bind(0,i,"padding",""));return(f,h,p)=>{let[g,v]=u(p);const{A:y,Y:S}=hs(),{yt:w}=n(),{wt:b,bt:x,St:E}=f,[I,A]=h("paddingAbsolute");(b||v||!S&&x)&&([g,v]=c(p));const O=!a&&(A||E||v);if(O){const D=!I||!o&&!y,N=g.r+g.l,H=g.t+g.b,G={marginRight:D&&!w?-N:0,marginBottom:D?-H:0,marginLeft:D&&w?-N:0,top:D?-g.t:0,right:D?w?-g.r:"auto":0,left:D?w?"auto":-g.l:0,width:D?`calc(100% + ${N}px)`:""},z={paddingTop:D?g.t:0,paddingRight:D?g.r:0,paddingBottom:D?g.b:0,paddingLeft:D?g.l:0};fo(o||s,G),fo(s,z),r({tt:g,$t:!D,P:o?z:Br({},G,z)})}return{xt:O}}},{max:d3}=Math,gd=d3.bind(0,0),SJ="visible",JH="hidden",x_e=42,F_={u:sJ,o:{w:0,h:0}},w_e={u:aJ,o:{x:JH,y:JH}},__e=(e,t)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:gd(e.w-t.w),h:gd(e.h-t.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},z_=e=>e.indexOf(SJ)===0,S_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ot:a,ft:c,ht:u,it:f,ct:h}=e,{k:p,Y:g,A:v,I:y}=hs(),S=Wp()[Zz],w=!c&&!v&&(y.x||y.y),b=f&&c,[x,E]=hl(F_,CC.bind(0,s)),[I,A]=hl(F_,EC.bind(0,s)),[k,O]=hl(F_),[D,N]=hl(F_),[H]=hl(w_e),G=(W,K)=>{if(fo(s,{height:""}),K){const{$t:X,tt:Q}=n(),{Ct:ie,M:ce}=W,ue=CC(i),se=fE(i),J=fo(s,"boxSizing")==="content-box",ae=X||J?Q.b+Q.t:0,le=!(y.x&&J);fo(s,{height:se.h+ue.h+(ie.x&&le?ce.x:0)-ae})}},z=(W,K)=>{const X=!v&&!W?x_e:0,Q=(pe,ve,ye)=>{const xe=fo(s,pe),be=(K?K[pe]:xe)==="scroll";return[xe,be,be&&!v?ve?X:ye:0,ve&&!!X]},[ie,ce,ue,se]=Q("overflowX",y.x,p.x),[J,ae,le,he]=Q("overflowY",y.y,p.y);return{Ot:{x:ie,y:J},Ct:{x:ce,y:ae},M:{x:ue,y:le},D:{x:se,y:he}}},L=(W,K,X,Q)=>{const ie=(ae,le)=>{const he=z_(ae),pe=le&&he&&ae.replace(`${SJ}-`,"")||"";return[le&&!he?ae:"",z_(pe)?"hidden":pe]},[ce,ue]=ie(X.x,K.x),[se,J]=ie(X.y,K.y);return Q.overflowX=ue&&se?ue:ce,Q.overflowY=J&&ce?J:se,z(W,Q)},F=(W,K,X,Q)=>{const{M:ie,D:ce}=W,{x:ue,y:se}=ce,{x:J,y:ae}=ie,{P:le}=n(),he=K?"marginLeft":"marginRight",pe=K?"paddingLeft":"paddingRight",ve=le[he],ye=le.marginBottom,xe=le[pe],me=le.paddingBottom;Q.width=`calc(100% + ${ae+ve*-1}px)`,Q[he]=-ae+ve,Q.marginBottom=-J+ye,X&&(Q[pe]=xe+(se?ae:0),Q.paddingBottom=me+(ue?J:0))},[j,V]=S?S.L(w,g,s,a,n,z,F):[()=>w,()=>[$s]];return(W,K,X)=>{const{wt:Q,Tt:ie,bt:ce,xt:ue,vt:se,St:J}=W,{gt:ae,yt:le}=n(),[he,pe]=K("showNativeOverlaidScrollbars"),[ve,ye]=K("overflow"),xe=he&&y.x&&y.y,me=!c&&!g&&(Q||ce||ie||pe||se),be=z_(ve.x),Ze=z_(ve.y),Xe=be||Ze;let ct=E(X),Bt=A(X),Pe=O(X),ze=N(X),st;if(pe&&v&&u(vJ,Gwe,!xe),me&&(st=z(xe),G(st,ae)),Q||ue||ce||J||pe){Xe&&u(_g,wg,!1);const[Re,He]=V(xe,le,st),[xt,Gt]=ct=x(X),[yn,Yr]=Bt=I(X),Hr=fE(s);let Wr=yn,Kr=Hr;Re(),(Yr||Gt||pe)&&He&&!xe&&j(He,yn,xt,le)&&(Kr=fE(s),Wr=EC(s));const ci={w:gd(d3(yn.w,Wr.w)+xt.w),h:gd(d3(yn.h,Wr.h)+xt.h)},ps={w:gd((b?h.innerWidth:Kr.w+gd(Hr.w-yn.w))+xt.w),h:gd((b?h.innerHeight+xt.h:Kr.h+gd(Hr.h-yn.h))+xt.h)};ze=D(ps),Pe=k(__e(ci,ps),X)}const[gt,vt]=ze,[_e,je]=Pe,[Ke,Fe]=Bt,[Be,Pt]=ct,dt={x:_e.w>0,y:_e.h>0},Ie=be&&Ze&&(dt.x||dt.y)||be&&dt.x&&!dt.y||Ze&&dt.y&&!dt.x;if(ue||J||Pt||Fe||vt||je||ye||pe||me){const Re={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},He=L(xe,dt,ve,Re),xt=j(He,Ke,Be,le);c||F(He,le,xt,Re),me&&G(He,ae),c?(No(i,mJ,Re.overflowX),No(i,gJ,Re.overflowY)):fo(s,Re)}Sp(i,pl,wg,Ie),Sp(o,l3,Vwe,Ie),c||Sp(s,md,_g,Xe);const[at,$t]=H(z(xe).Ot);return r({Ot:at,zt:{x:gt.w,y:gt.h},Et:{x:_e.w,y:_e.h},At:dt}),{It:$t,Ht:vt,Lt:je}}},ZH=(e,t,n)=>{const r={},i=t||{},o=ta(e).concat(ta(i));return An(o,s=>{const a=e[s],c=i[s];r[s]=!!(n||a||c)}),r},E_e=(e,t)=>{const{Z:n,K:r,ht:i,ft:o}=e,{A:s,I:a,Y:c}=hs(),u=!s&&(a.x||a.y),f=[y_e(e,t),b_e(e,t),S_e(e,t)];return(h,p,g)=>{const v=ZH(Br({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},p),{},g),y=u||!c,S=y&&wl(r),w=y&&Pu(r);i("",TC,!0);let b=v;return An(f,x=>{b=ZH(b,x(b,h,!!g)||{},g)}),wl(r,S),Pu(r,w),i("",TC),o||(wl(n,0),Pu(n,0)),b}},C_e=(e,t,n)=>{let r,i=!1;const o=()=>{i=!0},s=a=>{if(n){const c=n.reduce((u,f)=>{if(f){const[h,p]=f,g=p&&h&&(a?a(h):tJ(h,e));g&&g.length&&p&&yf(p)&&Gn(u,[g,p.trim()],!0)}return u},[]);An(c,u=>An(u[0],f=>{const h=u[1],p=r.get(f)||[];if(e.contains(f)){const v=oi(f,h,y=>{i?(v(),r.delete(f)):t(y)});r.set(f,Gn(p,v))}else vc(p),r.delete(f)}))}};return n&&(r=new WeakMap,s()),[o,s]},eW=(e,t,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:a,kt:c,Bt:u,Vt:f}=r||{},h=Xz(()=>i&&n(!0),{g:33,v:99}),[p,g]=C_e(e,h,a),v=o||[],y=s||[],S=v.concat(y),w=(x,E)=>{const I=u||$s,A=f||$s,k=new Set,O=new Set;let D=!1,N=!1;if(An(x,H=>{const{attributeName:G,target:z,type:L,oldValue:F,addedNodes:j,removedNodes:V}=H,W=L==="attributes",K=L==="childList",X=e===z,Q=W&&yf(G)?No(z,G):0,ie=Q!==0&&F!==Q,ce=Vk(y,G)>-1&&ie;if(t&&(K||!X)){const ue=!W,se=W&&ie,J=se&&c&&_C(z,c),le=(J?!I(z,G,F,Q):ue||se)&&!A(H,!!J,e,r);An(j,he=>k.add(he)),An(V,he=>k.add(he)),N=N||le}!t&&X&&ie&&!I(z,G,F,Q)&&(O.add(G),D=D||ce)}),k.size>0&&g(H=>Hp(k).reduce((G,z)=>(Gn(G,tJ(H,z)),_C(z,H)?Gn(G,z):G),[])),t)return!E&&N&&n(!1),[!1];if(O.size>0||D){const H=[Hp(O),D];return!E&&n.apply(0,H),H}},b=new Lwe(x=>w(x));return b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:t,childList:t,characterData:t}),i=!0,[()=>{i&&(p(),b.disconnect(),i=!1)},()=>{if(i){h.m();const x=b.takeRecords();return!Hz(x)&&w(x,!0)}}]},j_=3333333,EJ=(e,t,n)=>{const{Yt:r,Pt:i}=n||{},o=Wp()[a_e],{V:s}=hs(),c=nJ(`
`)[0],u=c.firstChild,f=Kg.bind(0,e),[h]=hl({o:!1,_:!0,u:(v,y)=>!(!v||!og(v)&&og(y))}),p=v=>{const y=ea(v)&&v.length>0&&k1(v[0]),S=!y&&Uz(v[0]);let w=!1,b=!1,x=!0;if(y){const[E,,I]=h(v.pop().contentRect),A=og(E),k=og(I);w=!I&&!!k||!A,b=!k&&A,x=!w}else S?[,x]=v:b=v===!0;if(r&&x){const E=S?v[0]:Kg(c);wl(c,E?s.n?-j_:s.i?0:j_:j_),Pu(c,j_)}w||t({wt:!S,jt:S?v:void 0,Pt:!!b})},g=[];return[()=>{vc(g),dc(c)},()=>{let v=i&&p;if(ig){const y=new ig(p);y.observe(u),Gn(g,()=>{y.disconnect()})}else if(o){const[y,S]=o.O(u,p,i);v=y,Gn(g,S)}if(r){const[y]=hl({o:void 0},f);Gn(g,oi(c,"scroll",S=>{const w=y(),[b,x,E]=w;x&&(qz(u,"ltr rtl"),tf(u,b?"rtl":"ltr"),p([!!b,x,E])),cJ(S)}))}v&&(tf(c,qwe),Gn(g,oi(c,"animationstart",v,{C:!!ig}))),(ig||o)&&ya(e,c)}]},T_e=e=>e.h===0||e.isIntersecting||e.intersectionRatio>0,k_e=(e,t)=>{let n;const r=Ep(Ywe),i=[],[o]=hl({o:!1}),s=(c,u)=>{if(c){const f=o(T_e(c)),[,h]=f;return h&&!u&&t(f)&&[f]}},a=(c,u)=>c&&c.length>0&&s(c.pop(),u);return[()=>{vc(i),dc(r)},()=>{if(NH)n=new NH(c=>a(c),{root:e}),n.observe(r),Gn(i,()=>{n.disconnect()});else{const c=()=>{const h=A1(r);s(h)},[u,f]=EJ(r,c);Gn(i,u),f(),c()}ya(e,r)},()=>n&&a(n.takeRecords(),!0)]},tW=`[${pl}]`,A_e=`[${md}]`,tN=["tabindex"],nW=["wrap","cols","rows"],nN=["id","class","style","open"],I_e=(e,t,n)=>{let r,i,o;const{J:s,K:a,nt:c,lt:u,ft:f,_t:h,ht:p}=e,{Y:g}=hs(),[v]=hl({u:sJ,o:{w:0,h:0}},()=>{const F=h(_g,wg),j=h(JD,""),V=j&&wl(a),W=j&&Pu(a);p(_g,wg),p(JD,""),p("",TC,!0);const K=EC(c),X=EC(a),Q=CC(a);return p(_g,wg,F),p(JD,"",j),p("",TC),wl(a,V),Pu(a,W),{w:X.w+K.w+Q.w,h:X.h+K.h+Q.h}}),y=u?nW:nN.concat(nW),S=Xz(n,{g:()=>r,v:()=>i,p(F,j){const[V]=F,[W]=j;return[ta(V).concat(ta(W)).reduce((K,X)=>(K[X]=V[X]||W[X],K),{})]}}),w=F=>{An(F||tN,j=>{if(Vk(tN,j)>-1){const V=No(s,j);yf(V)?No(a,j,V):Go(a,j)}})},b=(F,j)=>{const[V,W]=F,K={vt:W};return t({gt:V}),!j&&n(K),K},x=({wt:F,jt:j,Pt:V})=>{const W=!F||V?n:S;let K=!1;if(j){const[X,Q]=j;K=Q,t({yt:X})}W({wt:F,Pt:V,St:K})},E=(F,j)=>{const[,V]=v(),W={bt:V};return V&&!j&&(F?n:S)(W),W},I=(F,j,V)=>{const W={Tt:j};return j?!V&&S(W):f||w(F),W},[A,k,O]=c||!g?k_e(s,b):[$s,$s,$s],[D,N]=f?[$s,$s]:EJ(s,x,{Pt:!0,Yt:!0}),[H,G]=eW(s,!1,I,{Dt:nN,Mt:nN.concat(tN)});let z;const L=f&&ig&&new ig(F=>{const j=F[F.length-1].contentRect,V=og(j),K=!og(z)&&V;x({wt:!0,Pt:K}),z=j});return[()=>{A(),D(),o&&o[0](),L&&L.disconnect(),H()},()=>{L&&L.observe(s),w(),N(),k()},()=>{const F={},j=G(),V=O(),W=o&&o[1]();return j&&Br(F,I.apply(0,Gn(j,!0))),V&&Br(F,b.apply(0,Gn(V,!0))),W&&Br(F,E.apply(0,Gn(W,!0))),F},F=>{const[j]=F("update.ignoreMutation"),[V,W]=F("update.attributes"),[K,X]=F("update.elementEvents"),[Q,ie]=F("update.debounce"),ce=X||W,ue=se=>Il(j)&&j(se);if(ce&&(o&&(o[1](),o[0]()),o=eW(c||a,!0,E,{Mt:y.concat(V||[]),Rt:K,kt:tW,Vt:(se,J)=>{const{target:ae,attributeName:le}=se;return(!J&&le&&!f?Awe(ae,tW,A_e):!1)||!!rg(ae,`.${fs}`)||!!ue(se)}})),ie)if(S.m(),ea(Q)){const se=Q[0],J=Q[1];r=Gd(se)&&se,i=Gd(J)&&J}else Gd(Q)?(r=Q,i=!1):(r=!1,i=!1)}]},rW={x:0,y:0},R_e=e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:rW,Et:rW,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Kg(e.J)}),P_e=(e,t)=>{const n=u3(t,{}),[r,i,o]=Kz(),[s,a,c]=v_e(e),u=_J(R_e(s)),[f,h]=u,p=E_e(s,u),g=(x,E,I)=>{const k=ta(x).some(O=>!!x[O])||!Wz(E)||I;return k&&o("u",[x,E,I]),k},[v,y,S,w]=I_e(s,h,x=>g(p(n,x),{},!1)),b=f.bind(0);return b.Nt=x=>r("u",x),b.qt=()=>{const{Z:x,K:E,rt:I,it:A}=s,k=A?I.documentElement:x,O=wl(k),D=Pu(k);y(),a(),wl(E,O),Pu(E,D)},b.Ft=s,[(x,E)=>{const I=u3(t,x,E);return w(I),g(p(I,S(),E),x,!!E)},b,()=>{i(),v(),c()}]},{round:iW}=Math,O_e=e=>{const{width:t,height:n}=Yl(e),{w:r,h:i}=A1(e);return{x:iW(t)/r||1,y:iW(n)/i||1}},M_e=(e,t,n)=>{const r=t.scrollbars,{button:i,isPrimary:o,pointerType:s}=e,{pointers:a}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(a||[]).includes(s)},oW="pointerup pointerleave pointercancel lostpointercapture",L_e=(e,t)=>oi(e,"mousedown",oi.bind(0,t,"click",cJ,{C:!0,$:!0}),{$:!0}),D_e=(e,t,n,r,i,o,s)=>{const{V:a}=hs(),{Gt:c,Xt:u,Ut:f}=r,h=`scroll${s?"Left":"Top"}`,p=`client${s?"X":"Y"}`,g=s?"width":"height",v=s?"left":"top",y=s?"w":"h",S=s?"x":"y",w=(b,x)=>E=>{const{Et:I}=o(),A=A1(u)[y]-A1(c)[y],O=x*E/A*I[S],N=Kg(f)&&s?a.n||a.i?1:-1:1;i[h]=b+O*N};return oi(u,"pointerdown",b=>{const x=rg(b.target,`.${Jz}`)===c,E=x?c:u;if(Sp(t,pl,HH,!0),M_e(b,e,x)){const I=!x&&b.shiftKey,A=()=>Yl(c),k=()=>Yl(u),O=(K,X)=>(K||A())[v]-(X||k())[v],D=w(i[h]||0,1/O_e(i)[S]),N=b[p],H=A(),G=k(),z=H[g],L=O(H,G)+z/2,F=N-G[v],j=x?0:F-L,V=K=>{vc(W),E.releasePointerCapture(K.pointerId)},W=[Sp.bind(0,t,pl,HH),oi(n,oW,V),oi(n,"selectstart",K=>uJ(K),{S:!1}),oi(u,oW,V),oi(u,"pointermove",K=>{const X=K[p]-N;(x||I)&&D(j+X)})];if(I)D(j);else if(!x){const K=Wp()[l_e];K&&Gn(W,K.O(D,O,j,z,F))}E.setPointerCapture(b.pointerId)}})},N_e=(e,t)=>(n,r,i,o,s,a,c)=>{const{Ut:u}=n,[f,h]=ep(333),p=!!s.scrollBy;let g=!0;return vc.bind(0,[oi(u,"pointerenter",()=>{r(VH,!0)}),oi(u,"pointerleave pointercancel",()=>{r(VH)}),oi(u,"wheel",v=>{const{deltaX:y,deltaY:S,deltaMode:w}=v;p&&g&&w===0&&ju(u)===o&&s.scrollBy({left:y,top:S,behavior:"smooth"}),g=!1,r(YH,!0),f(()=>{g=!0,r(YH)}),uJ(v)},{S:!1,$:!0}),L_e(u,i),D_e(e,o,i,n,s,t,c),h])},{min:kC,max:f3,round:B_e}=Math,CJ=(e,t,n,r)=>{if(r){const a=n?"x":"y",{Et:c,zt:u}=r,f=u[a],h=c[a];return f3(0,kC(1,f/(f+h)))}const i=n?"width":"height",o=Yl(e)[i],s=Yl(t)[i];return f3(0,kC(1,o/s))},$_e=(e,t,n,r,i,o)=>{const{V:s}=hs(),a=o?"x":"y",c=o?"Left":"Top",{Et:u}=r,f=B_e(u[a]),h=kC(f,f3(0,n[`scroll${c}`])),p=o&&i,g=s.i?h:f-h,y=kC(1,(p?g:h)/f),S=CJ(e,t,o);return 1/S*(1-S)*y},TJ=(e,t,n,r)=>t&&e.animate(n,{timeline:t,composite:r}),F_e=(e,t)=>({transform:[Qg("0%",t),Qg(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),z_e=e=>`${Math.max(0,e-.5)}px`,sW=(e,t,n,r)=>TJ(e,t,{transform:[Qg("0px",r),Qg(z_e(n),r)]},"add"),aW=(e,t)=>s3?new s3({source:e,axis:t}):null,j_e=(e,t,n)=>{const{q:r,H:i}=hs(),{scrollbars:o}=r(),{slot:s}=o,{rt:a,Z:c,J:u,K:f,ut:h,st:p,it:g,ft:v}=t,{scrollbars:y}=h?{}:e,{slot:S}=y||{},w=new Map,b=aW(p,"x"),x=aW(p,"y"),E=xJ([c,u,f],()=>v&&g?c:u,s,S),I=se=>v&&!g&&ju(se)===f,A=se=>{w.forEach((J,ae)=>{(se?Vk(ea(se)?se:[se],ae)>-1:!0)&&((J||[]).forEach(he=>{he&&he.cancel()}),w.delete(ae))})},k=(se,J,ae)=>{const le=ae?tf:qz;An(se,he=>{le(he.Ut,J)})},O=(se,J)=>{An(se,ae=>{const[le,he]=J(ae);fo(le,he)})},D=(se,J,ae)=>{O(se,le=>{const{Gt:he,Xt:pe}=le;return[he,{[ae?"width":"height"]:`${(CJ(he,pe,ae,J)*100).toFixed(3)}%`}]})},N=(se,J,ae)=>{!x&&!x&&O(se,le=>{const{Gt:he,Xt:pe,Ut:ve}=le,ye=$_e(he,pe,p,J,Kg(ve),ae);return[he,{transform:ye===ye?Qg(`${(ye*100).toFixed(3)}%`,ae):""}]})},H=se=>{const{Ut:J}=se,ae=I(J)&&J;return[ae,{transform:ae?Qg([`${wl(p)}px`,`${Pu(p)}px`]):""}]},G=[],z=[],L=[],F=(se,J,ae)=>{const le=Uz(ae),he=le?ae:!0,pe=le?!ae:!0;he&&k(z,se,J),pe&&k(L,se,J)},j=se=>{D(z,se,!0),D(L,se)},V=se=>{N(z,se,!0),N(L,se)},W=()=>{const se=(J,{Ut:ae,Gt:le})=>{A(le),w.set(le,[TJ(le,J?b:x,F_e(J&&Kg(ae),J))])};z.forEach(se.bind(0,!0)),L.forEach(se.bind(0,!1))},K=()=>{!x&&!x&&(v&&O(z,H),v&&O(L,H))},X=({Et:se})=>{L.concat(z).forEach(({Ut:J})=>{A(J),I(J)&&w.set(J,[sW(J,b,se.x,!0),sW(J,x,se.y)])})},Q=se=>{const J=se?Zwe:e_e,ae=se?z:L,le=Hz(ae)?GH:"",he=Ep(`${fs} ${J} ${le}`),pe=Ep(yJ),ve=Ep(Jz),ye={Ut:he,Xt:pe,Gt:ve};return i||tf(he,Kwe),ya(he,pe),ya(pe,ve),Gn(ae,ye),Gn(G,[dc.bind(0,he),A,n(ye,F,a,u,p,se?b:x,se)]),ye},ie=Q.bind(0,!0),ce=Q.bind(0,!1),ue=()=>{ya(E,z[0].Ut),ya(E,L[0].Ut),SC(()=>{F(GH)},300)};return ie(),ce(),[{Wt:j,Zt:V,Jt:W,Kt:X,Qt:K,tn:F,nn:{B:b,sn:z,en:ie,cn:O.bind(0,z)},rn:{B:x,sn:L,en:ce,cn:O.bind(0,L)}},ue,vc.bind(0,G)]},rN=e=>e.pointerType==="mouse",U_e=(e,t,n,r)=>{let i,o,s,a,c,u=$s,f=0;const h=_J({}),[p]=h,[g,v]=ep(),[y,S]=ep(),[w,b]=ep(100),[x,E]=ep(100),[I,A]=ep(100),[k,O]=ep(()=>f),[D,N,H]=j_e(e,n.Ft,N_e(t,n)),{J:G,et:z,it:L}=n.Ft,{tn:F,Wt:j,Zt:V,Jt:W,Kt:K,Qt:X}=D,Q=J=>{F(c3,J,!0),F(c3,J,!1)},ie=(J,ae)=>{if(O(),J)F(XH);else{const le=()=>F(XH,!0);f>0&&!ae?k(le):le()}},ce=J=>{rN(J)&&(a=o,a&&ie(!0))},ue=[b,O,E,A,S,v,H,oi(G,"pointerover",ce,{C:!0}),oi(G,"pointerenter",ce),oi(G,"pointerleave",J=>{rN(J)&&(a=!1,o&&ie(!1))}),oi(G,"pointermove",J=>{rN(J)&&i&&g(()=>{b(),ie(!0),x(()=>{i&&ie(!1)})})}),oi(z,"scroll",J=>{y(()=>{V(n()),s&&ie(!0),w(()=>{s&&!a&&ie(!1)})}),r(J),X()})],se=p.bind(0);return se.Ft=D,se.qt=N,[(J,ae,le)=>{const{Ht:he,Lt:pe,It:ve,St:ye,Pt:xe}=le,{I:me}=hs(),be=u3(t,J,ae),Ze=n(),{Et:Xe,Ot:ct,yt:Bt,At:Pe}=Ze,[ze,st]=be("showNativeOverlaidScrollbars"),[gt,vt]=be("scrollbars.theme"),[_e,je]=be("scrollbars.visibility"),[Ke,Fe]=be("scrollbars.autoHide"),[Be,Pt]=be("scrollbars.autoHideSuspend"),[dt]=be("scrollbars.autoHideDelay"),[Ie,at]=be("scrollbars.dragScroll"),[$t,Re]=be("scrollbars.clickScroll"),He=xe&&!ae,xt=Pe.x||Pe.y,Gt=he||pe||ye,yn=ve||je,Yr=ze&&me.x&&me.y,Hr=(Wr,Kr)=>{const ci=_e==="visible"||_e==="auto"&&Wr==="scroll";return F(t_e,ci,Kr),ci};if(f=dt,He&&(Be&&xt?(Q(!1),u(),I(()=>{u=oi(z,"scroll",Q.bind(0,!0),{C:!0})})):Q(!0)),st&&F(Qwe,Yr),vt&&(F(c),F(gt,!0),c=gt),Pt&&!Be&&Q(!0),Fe&&(i=Ke==="move",o=Ke==="leave",s=Ke!=="never",ie(!s,!0)),at&&F(i_e,Ie),Re&&F(r_e,$t),yn){const Wr=Hr(ct.x,!0),Kr=Hr(ct.y,!1);F(n_e,!(Wr&&Kr))}Gt&&(j(Ze),V(Ze),W(Ze),K(Ze),X(),F(qH,!Xe.x,!0),F(qH,!Xe.y,!1),F(Jwe,Bt&&!L))},se,()=>{vc(ue),u()}]},kJ=(e,t,n)=>{Il(e)&&e(t||void 0,n||void 0)},Id=(e,t,n)=>{const{G:r,q:i,j:o,N:s}=hs(),a=Wp(),c=$x(e),u=c?e:e.target,f=wJ(u);if(t&&!f){let h=!1;const p=z=>{const L=Wp()[s_e],F=L&&L.O;return F?F(z,!0):z},g=Br({},r(),p(t)),[v,y,S]=Kz(n),[w,b,x]=P_e(e,g),[E,I,A]=U_e(e,g,b,z=>S("scroll",[G,z])),k=(z,L)=>w(z,!!L),O=k.bind(0,{},!0),D=o(O),N=s(O),H=z=>{g_e(u),D(),N(),A(),x(),h=!0,S("destroyed",[G,!!z]),y()},G={options(z,L){if(z){const F=L?r():{},j=dJ(g,Br(F,p(z)));Wz(j)||(Br(g,j),k(j))}return Br({},g)},on:v,off:(z,L)=>{z&&L&&y(z,L)},state(){const{zt:z,Et:L,Ot:F,At:j,tt:V,$t:W,yt:K}=b();return Br({},{overflowEdge:z,overflowAmount:L,overflowStyle:F,hasOverflow:j,padding:V,paddingAbsolute:W,directionRTL:K,destroyed:h})},elements(){const{Z:z,J:L,tt:F,K:j,nt:V,st:W,et:K}=b.Ft,{nn:X,rn:Q}=I.Ft,ie=ue=>{const{Gt:se,Xt:J,Ut:ae}=ue;return{scrollbar:ae,track:J,handle:se}},ce=ue=>{const{sn:se,en:J}=ue,ae=ie(se[0]);return Br({},ae,{clone:()=>{const le=ie(J());return E({},!0,{}),le}})};return Br({},{target:z,host:L,padding:F||j,viewport:j,content:V||j,scrollOffsetElement:W,scrollEventElement:K,scrollbarHorizontal:ce(X),scrollbarVertical:ce(Q)})},update:z=>k({},z),destroy:H.bind(0)};return b.Nt((z,L,F)=>{E(L,F,z)}),m_e(u,G),An(ta(a),z=>kJ(a[z],0,G)),p_e(b.Ft.it,i().cancel,!c&&e.cancel)?(H(!0),G):(b.qt(),I.qt(),S("initialized",[G]),b.Nt((z,L,F)=>{const{wt:j,St:V,vt:W,Ht:K,Lt:X,It:Q,bt:ie,Tt:ce}=z;S("updated",[G,{updateHints:{sizeChanged:j,directionChanged:V,heightIntrinsicChanged:W,overflowEdgeChanged:K,overflowAmountChanged:X,overflowStyleChanged:Q,contentMutation:ie,hostMutation:ce},changedOptions:L,force:F}])}),G.update(!0),G)}return f};Id.plugin=e=>{An(o_e(e),t=>kJ(t,Id))};Id.valid=e=>{const t=e&&e.elements,n=Il(t)&&t();return r3(n)&&!!wJ(n.target)};Id.env=()=>{const{k:e,I:t,A:n,V:r,Y:i,H:o,B:s,U:a,W:c,q:u,F:f,G:h,X:p}=hs();return Br({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:a,staticDefaultOptions:c,getDefaultInitialization:u,setDefaultInitialization:f,getDefaultOptions:h,setDefaultOptions:p})};const H_e=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:o,c=()=>{a(e),o(t)};return[(u,f)=>{c(),e=s(r?()=>{c(),t=i(u)}:u,typeof f=="object"?f:{timeout:2233})},c]},AJ=e=>{const{options:t,events:n,defer:r}=e||{},[i,o]=R.useMemo(H_e,[]),s=R.useRef(null),a=R.useRef(r),c=R.useRef(t),u=R.useRef(n);return R.useEffect(()=>{a.current=r},[r]),R.useEffect(()=>{const{current:f}=s;c.current=t,Id.valid(f)&&f.options(t||{},!0)},[t]),R.useEffect(()=>{const{current:f}=s;u.current=n,Id.valid(f)&&f.on(n||{},!0)},[n]),R.useEffect(()=>()=>{var f;o(),(f=s.current)==null||f.destroy()},[]),R.useMemo(()=>[f=>{const h=s.current;if(Id.valid(h))return;const p=a.current,g=c.current||{},v=u.current||{},y=()=>s.current=Id(f,g,v);p?i(y,p):y()},()=>s.current],[])},W_e=(e,t)=>{const{element:n="div",options:r,events:i,defer:o,children:s,...a}=e,c=n,u=R.useRef(null),f=R.useRef(null),[h,p]=R.useState(!1),[g,v]=AJ({options:r,events:i,defer:o});return R.useEffect(()=>{p(!0)},[]),R.useEffect(()=>{const{current:y}=u,{current:S}=f;return h&&y&&S&&g({target:y,elements:{viewport:S,content:S}}),()=>{var w;return(w=v())==null?void 0:w.destroy()}},[h,g,n]),R.useImperativeHandle(t,()=>({osInstance:v,getElement:()=>u.current}),[]),de.createElement(c,{"data-overlayscrollbars-initialize":"",ref:u,...a},h?de.createElement("div",{ref:f,"data-overlayscrollbars-contents":!0},s):s)},G_e=R.forwardRef(W_e),Aw=R.forwardRef(({children:e,x:t,y:n,px:r=6,...i},o)=>{const{palette:s,spacing:a}=Dn(),c=T1({"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${a(r)})`,marginTop:a(r)}}),u=R.useCallback(f=>{if(o&&f){const h=f.elements().viewport;h&&(typeof o=="function"?o(h):o.current=h)}},[o]);return C.jsx(G_e,{options:{overflow:{x:t?"scroll":"hidden",y:n?"scroll":"hidden"},scrollbars:{autoHide:"move",theme:s.mode==="dark"?"os-theme-light":"os-theme-dark"}},...i,className:`${c} ${i.className}`,events:{initialized:u},children:e})});var IJ={exports:{}},or={};/** @license React v17.0.2 + */function An(e,t){if(Vk(e))for(let n=0;nt(e[n],n,e));return e}function fo(e,t){const n=xf(t);if(ea(t)||n){let i=n?"":{};if(e){const o=window.getComputedStyle(e,null);i=n?jH(e,o,t):t.reduce((s,a)=>(s[a]=jH(e,o,a),s),i)}return i}e&&An(ta(t),i=>Gwe(e,i,t[i]))}const pl=(e,t)=>{const{o:n,u:r,_:i}=e;let o=n,s;const a=(f,h)=>{const p=o,g=f,v=h||(r?!r(p,g):p!==g);return(v||i)&&(o=g,s=p),[o,v,s]};return[t?f=>a(t(o,s),f):a,f=>[o,!!f,s]]},kw=()=>typeof window<"u",eJ=kw()&&Node.ELEMENT_NODE,{toString:Rwe,hasOwnProperty:YL}=Object.prototype,Ju=e=>e===void 0,Gk=e=>e===null,Pwe=e=>Ju(e)||Gk(e)?`${e}`:Rwe.call(e).replace(/^\[object (.+)\]$/,"$1").toLowerCase(),Vd=e=>typeof e=="number",xf=e=>typeof e=="string",Wz=e=>typeof e=="boolean",Rl=e=>typeof e=="function",ea=e=>Array.isArray(e),I1=e=>typeof e=="object"&&!ea(e)&&!Gk(e),Vk=e=>{const t=!!e&&e.length,n=Vd(t)&&t>-1&&t%1==0;return ea(e)||!Rl(e)&&n?t>0&&I1(e)?t-1 in e:!0:!1},s3=e=>{if(!e||!I1(e)||Pwe(e)!=="object")return!1;let t;const n="constructor",r=e[n],i=r&&r.prototype,o=YL.call(e,n),s=i&&YL.call(i,"isPrototypeOf");if(r&&!o&&!s)return!1;for(t in e);return Ju(t)||YL.call(e,t)},zx=e=>{const t=HTMLElement;return e?t?e instanceof t:e.nodeType===eJ:!1},qk=e=>{const t=Element;return e?t?e instanceof t:e.nodeType===eJ:!1},Xk=(e,t,n)=>e.indexOf(t,n),Gn=(e,t,n)=>(!n&&!xf(t)&&Vk(t)?Array.prototype.push.apply(e,t):e.push(t),e),Wp=e=>{const t=Array.from,n=[];return t&&e?t(e):(e instanceof Set?e.forEach(r=>{Gn(n,r)}):An(e,r=>{Gn(n,r)}),n)},Gz=e=>!!e&&e.length===0,yc=(e,t,n)=>{An(e,i=>i&&i.apply(void 0,t||[])),!n&&(e.length=0)},Yk=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ta=e=>e?Object.keys(e):[],Br=(e,t,n,r,i,o,s)=>{const a=[t,n,r,i,o,s];return(typeof e!="object"||Gk(e))&&!Rl(e)&&(e={}),An(a,c=>{An(ta(c),u=>{const f=c[u];if(e===f)return!0;const h=ea(f);if(f&&s3(f)){const p=e[u];let g=p;h&&!ea(p)?g=[]:!h&&!s3(p)&&(g={}),e[u]=Br(g,f)}else e[u]=h?f.slice():f})}),e},Vz=e=>{for(const t in e)return!1;return!0},tJ=(e,t,n,r)=>{if(Ju(r))return n?n[e]:t;n&&(xf(r)||Vd(r))&&(n[e]=r)},No=(e,t,n)=>{if(Ju(n))return e?e.getAttribute(t):null;e&&e.setAttribute(t,n)},nJ=(e,t)=>new Set((No(e,t)||"").split(" ")),Go=(e,t)=>{e&&e.removeAttribute(t)},Cp=(e,t,n,r)=>{if(n){const i=nJ(e,t);i[r?"add":"delete"](n);const o=Wp(i).join(" ").trim();No(e,t,o)}},Owe=(e,t,n)=>nJ(e,t).has(n),_l=(e,t)=>tJ("scrollLeft",0,e,t),Ou=(e,t)=>tJ("scrollTop",0,e,t),a3=kw()&&Element.prototype,rJ=(e,t)=>{const n=[],r=t?qk(t)&&t:document;return r?Gn(n,r.querySelectorAll(e)):n},Mwe=(e,t)=>{const n=t?qk(t)&&t:document;return n?n.querySelector(e):null},SC=(e,t)=>qk(e)?(a3.matches||a3.msMatchesSelector).call(e,t):!1,qz=e=>e?Wp(e.childNodes):[],Uu=e=>e&&e.parentElement,ig=(e,t)=>{if(qk(e)){const n=a3.closest;if(n)return n.call(e,t);do{if(SC(e,t))return e;e=Uu(e)}while(e)}},Dwe=(e,t,n)=>{const r=ig(e,t),i=e&&Mwe(n,r),o=ig(i,t)===r;return r&&i?r===e||i===e||o&&ig(ig(e,n),t)!==r:!1},Xz=(e,t,n)=>{if(n&&e){let r=t,i;Vk(n)?(i=document.createDocumentFragment(),An(n,o=>{o===r&&(r=o.previousSibling),i.appendChild(o)})):i=n,t&&(r?r!==t&&(r=r.nextSibling):r=e.firstChild),e.insertBefore(i,r||null)}},ba=(e,t)=>{Xz(e,null,t)},Lwe=(e,t)=>{Xz(Uu(e),e,t)},$H=(e,t)=>{Xz(Uu(e),e&&e.nextSibling,t)},hc=e=>{if(Vk(e))An(Wp(e),t=>hc(t));else if(e){const t=Uu(e);t&&t.removeChild(e)}},Tp=e=>{const t=document.createElement("div");return e&&No(t,"class",e),t},iJ=e=>{const t=Tp();return t.innerHTML=e.trim(),An(qz(t),n=>hc(n))},l3=e=>e.charAt(0).toUpperCase()+e.slice(1),Nwe=()=>Tp().style,Bwe=["-webkit-","-moz-","-o-","-ms-"],$we=["WebKit","Moz","O","MS","webkit","moz","o","ms"],KL={},QL={},Fwe=e=>{let t=QL[e];if(Yk(QL,e))return t;const n=l3(e),r=Nwe();return An(Bwe,i=>{const o=i.replace(/-/g,"");return!(t=[e,i+e,o+n,l3(o)+n].find(a=>r[a]!==void 0))}),QL[e]=t||""},kv=e=>{if(kw()){let t=KL[e]||window[e];return Yk(KL,e)||(An($we,n=>(t=t||window[n+l3(e)],!t)),KL[e]=t),t}},zwe=kv("MutationObserver"),FH=kv("IntersectionObserver"),og=kv("ResizeObserver"),oJ=kv("cancelAnimationFrame"),sJ=kv("requestAnimationFrame"),c3=kv("ScrollTimeline"),EC=kw()&&window.setTimeout,u3=kw()&&window.clearTimeout,jwe=/[^\x20\t\r\n\f]+/g,aJ=(e,t,n)=>{const r=e&&e.classList;let i,o=0,s=!1;if(r&&t&&xf(t)){const a=t.match(jwe)||[];for(s=a.length>0;i=a[o++];)s=!!n(r,i)&&s}return s},Yz=(e,t)=>{aJ(e,t,(n,r)=>n.remove(r))},rf=(e,t)=>(aJ(e,t,(n,r)=>n.add(r)),Yz.bind(0,e,t)),Kk=(e,t,n,r)=>{if(e&&t){let i=!0;return An(n,o=>{const s=r?r(e[o]):e[o],a=r?r(t[o]):t[o];s!==a&&(i=!1)}),i}return!1},lJ=(e,t)=>Kk(e,t,["w","h"]),cJ=(e,t)=>Kk(e,t,["x","y"]),Uwe=(e,t)=>Kk(e,t,["t","r","b","l"]),zH=(e,t,n)=>Kk(e,t,["width","height"],n&&(r=>Math.round(r))),$s=()=>{},np=e=>{let t;const n=e?EC:sJ,r=e?u3:oJ;return[i=>{r(t),t=n(i,Rl(e)?e():e)},()=>r(t)]},Kz=(e,t)=>{let n,r,i,o=$s;const{g:s,v:a,p:c}=t||{},u=function(v){o(),u3(n),n=r=void 0,o=$s,e.apply(this,v)},f=g=>c&&r?c(r,g):g,h=()=>{o!==$s&&u(f(i)||i)},p=function(){const v=Wp(arguments),y=Rl(s)?s():s;if(Vd(y)&&y>=0){const w=Rl(a)?a():a,b=Vd(w)&&w>=0,x=y>0?EC:sJ,E=y>0?u3:oJ,A=f(v)||v,k=u.bind(0,A);o();const O=x(k,y);o=()=>E(O),b&&!n&&(n=EC(h,w)),r=i=A}else u(v)};return p.m=h,p},Hwe={opacity:1,zIndex:1},N_=(e,t)=>{const n=e||"",r=t?parseFloat(n):parseInt(n,10);return r===r?r:0},Wwe=(e,t)=>!Hwe[e]&&Vd(t)?`${t}px`:t,jH=(e,t,n)=>String((t!=null?t[n]||t.getPropertyValue(n):e.style[n])||""),Gwe=(e,t,n)=>{try{const{style:r}=e;Ju(r[t])?r.setProperty(t,n):r[t]=Wwe(t,n)}catch{}},Qg=e=>fo(e,"direction")==="rtl",UH=(e,t,n)=>{const r=t?`${t}-`:"",i=n?`-${n}`:"",o=`${r}top${i}`,s=`${r}right${i}`,a=`${r}bottom${i}`,c=`${r}left${i}`,u=fo(e,[o,s,a,c]);return{t:N_(u[o],!0),r:N_(u[s],!0),b:N_(u[a],!0),l:N_(u[c],!0)}},Jg=(e,t)=>`translate${ea(e)?`(${e[0]},${e[1]})`:`${t?"X":"Y"}(${e})`}`,{round:HH}=Math,Qz={w:0,h:0},R1=e=>e?{w:e.offsetWidth,h:e.offsetHeight}:Qz,hE=e=>e?{w:e.clientWidth,h:e.clientHeight}:Qz,CC=e=>e?{w:e.scrollWidth,h:e.scrollHeight}:Qz,TC=e=>{const t=parseFloat(fo(e,"height"))||0,n=parseFloat(fo(e,"width"))||0;return{w:n-HH(n),h:t-HH(t)}},Ql=e=>e.getBoundingClientRect(),sg=e=>!!(e&&(e.height||e.width));let B_;const Vwe=()=>{if(Ju(B_)){B_=!1;try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get(){B_=!0}}))}catch{}}return B_},uJ=e=>e.split(" "),qwe=(e,t,n,r)=>{An(uJ(t),i=>{e.removeEventListener(i,n,r)})},oi=(e,t,n,r)=>{var i;const o=Vwe(),s=(i=o&&r&&r.S)!=null?i:o,a=r&&r.$||!1,c=r&&r.C||!1,u=[],f=o?{passive:s,capture:a}:a;return An(uJ(t),h=>{const p=c?g=>{e.removeEventListener(h,p,a),n&&n(g)}:n;Gn(u,qwe.bind(null,e,h,p,a)),e.addEventListener(h,p,f)}),yc.bind(0,u)},dJ=e=>e.stopPropagation(),fJ=e=>e.preventDefault(),Xwe={x:0,y:0},JL=e=>{const t=e?Ql(e):0;return t?{x:t.left+window.pageYOffset,y:t.top+window.pageXOffset}:Xwe},WH=(e,t)=>{An(ea(t)?t:[t],e)},Jz=e=>{const t=new Map,n=(o,s)=>{if(o){const a=t.get(o);WH(c=>{a&&a[c?"delete":"clear"](c)},s)}else t.forEach(a=>{a.clear()}),t.clear()},r=(o,s)=>{if(xf(o)){const u=t.get(o)||new Set;return t.set(o,u),WH(f=>{Rl(f)&&u.add(f)},s),n.bind(0,o,s)}Wz(s)&&s&&n();const a=ta(o),c=[];return An(a,u=>{const f=o[u];f&&Gn(c,r(u,f))}),yc.bind(0,c)},i=(o,s)=>{const a=t.get(o);An(Wp(a),c=>{s&&!Gz(s)?c.apply(0,s):c()})};return r(e||{}),[r,n,i]},GH=e=>JSON.stringify(e,(t,n)=>{if(Rl(n))throw new Error;return n}),Ywe={paddingAbsolute:!1,showNativeOverlaidScrollbars:!1,update:{elementEvents:[["img","load"]],debounce:[0,33],attributes:null,ignoreMutation:null},overflow:{x:"scroll",y:"scroll"},scrollbars:{theme:"os-theme-dark",visibility:"auto",autoHide:"never",autoHideDelay:1300,autoHideSuspend:!1,dragScroll:!0,clickScroll:!1,pointers:["mouse","touch","pen"]}},hJ=(e,t)=>{const n={},r=ta(t).concat(ta(e));return An(r,i=>{const o=e[i],s=t[i];if(I1(o)&&I1(s))Br(n[i]={},hJ(o,s)),Vz(n[i])&&delete n[i];else if(Yk(t,i)&&s!==o){let a=!0;if(ea(o)||ea(s))try{GH(o)===GH(s)&&(a=!1)}catch{}a&&(n[i]=s)}}),n},Aw="data-overlayscrollbars",pJ="os-environment",mJ=`${pJ}-flexbox-glue`,Kwe=`${mJ}-max`,gJ="os-scrollbar-hidden",ZL=`${Aw}-initialize`,ml=Aw,vJ=`${ml}-overflow-x`,yJ=`${ml}-overflow-y`,_g="overflowVisible",Qwe="scrollbarHidden",VH="scrollbarPressed",kC="updating",gd=`${Aw}-viewport`,eN="arrange",bJ="scrollbarHidden",Sg=_g,d3=`${Aw}-padding`,Jwe=Sg,qH=`${Aw}-content`,Zz="os-size-observer",Zwe=`${Zz}-appear`,e_e=`${Zz}-listener`,t_e="os-trinsic-observer",n_e="os-no-css-vars",r_e="os-theme-none",fs="os-scrollbar",i_e=`${fs}-rtl`,o_e=`${fs}-horizontal`,s_e=`${fs}-vertical`,xJ=`${fs}-track`,ej=`${fs}-handle`,a_e=`${fs}-visible`,l_e=`${fs}-cornerless`,XH=`${fs}-transitionless`,YH=`${fs}-interaction`,KH=`${fs}-unusable`,f3=`${fs}-auto-hide`,QH=`${f3}-hidden`,JH=`${fs}-wheel`,c_e=`${xJ}-interactive`,u_e=`${ej}-interactive`,wJ={},Gp=()=>wJ,d_e=e=>{const t=[];return An(ea(e)?e:[e],n=>{const r=ta(n);An(r,i=>{Gn(t,wJ[i]=n[i])})}),t},f_e="__osOptionsValidationPlugin",h_e="__osSizeObserverPlugin",tj="__osScrollbarsHidingPlugin",p_e="__osClickScrollPlugin";let tN;const ZH=(e,t,n,r)=>{ba(e,t);const i=hE(t),o=R1(t),s=TC(n);return r&&hc(t),{x:o.h-i.h+s.h,y:o.w-i.w+s.w}},m_e=e=>{let t=!1;const n=rf(e,gJ);try{t=fo(e,Fwe("scrollbar-width"))==="none"||window.getComputedStyle(e,"::-webkit-scrollbar").getPropertyValue("display")==="none"}catch{}return n(),t},g_e=(e,t)=>{const n="hidden";fo(e,{overflowX:n,overflowY:n,direction:"rtl"}),_l(e,0);const r=JL(e),i=JL(t);_l(e,-999);const o=JL(t);return{i:r.x===i.x,n:i.x!==o.x}},v_e=(e,t)=>{const n=rf(e,mJ),r=Ql(e),i=Ql(t),o=zH(i,r,!0),s=rf(e,Kwe),a=Ql(e),c=Ql(t),u=zH(c,a,!0);return n(),s(),o&&u},y_e=()=>{const{body:e}=document,n=iJ(`
`)[0],r=n.firstChild,[i,,o]=Jz(),[s,a]=pl({o:ZH(e,n,r),u:cJ},ZH.bind(0,e,n,r,!0)),[c]=a(),u=m_e(n),f={x:c.x===0,y:c.y===0},h={elements:{host:null,padding:!u,viewport:b=>u&&b===b.ownerDocument.body&&b,content:!1},scrollbars:{slot:!0},cancel:{nativeScrollbarsOverlaid:!1,body:null}},p=Br({},Ywe),g=Br.bind(0,{},p),v=Br.bind(0,{},h),y={k:c,I:f,A:u,H:fo(n,"zIndex")==="-1",B:!!c3,V:g_e(n,r),Y:v_e(n,r),j:i.bind(0,"z"),N:i.bind(0,"r"),q:v,F:b=>Br(h,b)&&v(),G:g,X:b=>Br(p,b)&&g(),U:Br({},h),W:Br({},p)},S=window.addEventListener,w=Kz(b=>o(b?"z":"r"),{g:33,v:99});if(Go(n,"style"),hc(n),S("resize",w.bind(0,!1)),!u&&(!f.x||!f.y)){let b;S("resize",()=>{const x=Gp()[tj];b=b||x&&x.R(),b&&b(y,s,w.bind(0,!0))})}return y},hs=()=>(tN||(tN=y_e()),tN),nj=(e,t)=>Rl(t)?t.apply(0,e):t,b_e=(e,t,n,r)=>{const i=Ju(r)?n:r;return nj(e,i)||t.apply(0,e)},_J=(e,t,n,r)=>{const i=Ju(r)?n:r,o=nj(e,i);return!!o&&(zx(o)?o:t.apply(0,e))},x_e=(e,t,n)=>{const{nativeScrollbarsOverlaid:r,body:i}=n||{},{I:o,A:s}=hs(),{nativeScrollbarsOverlaid:a,body:c}=t,u=r??a,f=Ju(i)?c:i,h=(o.x||o.y)&&u,p=e&&(Gk(f)?!s:f);return!!h||!!p},rj=new WeakMap,w_e=(e,t)=>{rj.set(e,t)},__e=e=>{rj.delete(e)},SJ=e=>rj.get(e),eW=(e,t)=>e?t.split(".").reduce((n,r)=>n&&Yk(n,r)?n[r]:void 0,e):void 0,h3=(e,t,n)=>r=>[eW(e,r),n||eW(t,r)!==void 0],EJ=e=>{let t=e;return[()=>t,n=>{t=Br({},t,n)}]},$_="tabindex",F_=Tp.bind(0,""),nN=e=>{ba(Uu(e),qz(e)),hc(e)},S_e=e=>{const t=hs(),{q:n,A:r}=t,i=Gp()[tj],o=i&&i.T,{elements:s}=n(),{host:a,padding:c,viewport:u,content:f}=s,h=zx(e),p=h?{}:e,{elements:g}=p,{host:v,padding:y,viewport:S,content:w}=g||{},b=h?e:p.target,x=SC(b,"textarea"),E=b.ownerDocument,I=E.documentElement,A=b===E.body,k=E.defaultView,O=b_e.bind(0,[b]),L=_J.bind(0,[b]),N=nj.bind(0,[b]),H=O.bind(0,F_,u),G=L.bind(0,F_,f),z=H(S),D=z===b,F=D&&A,j=!D&&G(w),V=!D&&zx(z)&&z===j,W=V&&!!N(f),K=W?H():z,X=W?j:G(),ie=F?I:V?K:z,ce=x?O(F_,a,v):b,ue=F?ie:ce,se=V?X:j,J=E.activeElement,ae=!D&&k.top===k&&J===b,le={Z:b,J:ue,K:ie,tt:!D&&L(F_,c,y),nt:se,ot:!D&&!r&&o&&o(t),st:F?I:ie,et:F?E:ie,ct:k,rt:E,lt:x,it:A,ut:h,ft:D,dt:V,_t:(st,gt)=>Owe(ie,D?ml:gd,D?gt:st),ht:(st,gt,vt)=>Cp(ie,D?ml:gd,D?gt:st,vt)},he=ta(le).reduce((st,gt)=>{const vt=le[gt];return Gn(st,vt&&zx(vt)&&!Uu(vt)?vt:!1)},[]),pe=st=>st?Xk(he,st)>-1:null,{Z:ve,J:ye,tt:xe,K:me,nt:be,ot:Ze}=le,Xe=[()=>{Go(ye,ml),Go(ye,ZL),Go(ve,ZL),A&&(Go(I,ml),Go(I,ZL))}],ct=x&&pe(ye);let Bt=x?ve:qz([be,me,xe,ye,ve].find(st=>pe(st)===!1));const Pe=F?ve:be||me;return[le,()=>{No(ye,ml,D?"viewport":"host"),No(xe,d3,""),No(be,qH,""),D||No(me,gd,"");const st=A&&!D?rf(Uu(b),gJ):$s;if(ct&&($H(ve,ye),Gn(Xe,()=>{$H(ye,ve),hc(ye)})),ba(Pe,Bt),ba(ye,xe),ba(xe||ye,!D&&me),ba(me,be),Gn(Xe,()=>{st(),Go(xe,d3),Go(be,qH),Go(me,vJ),Go(me,yJ),Go(me,gd),pe(be)&&nN(be),pe(me)&&nN(me),pe(xe)&&nN(xe)}),r&&!D&&(Cp(me,gd,bJ,!0),Gn(Xe,Go.bind(0,me,gd))),Ze&&(Lwe(me,Ze),Gn(Xe,hc.bind(0,Ze))),ae){const gt=No(me,$_);No(me,$_,"-1"),me.focus();const vt=()=>gt?No(me,$_,gt):Go(me,$_),_e=oi(E,"pointerdown keydown",()=>{vt(),_e()});Gn(Xe,[vt,_e])}else J&&J.focus&&J.focus();Bt=0},yc.bind(0,Xe)]},E_e=(e,t)=>{const{nt:n}=e,[r]=t;return i=>{const{Y:o}=hs(),{gt:s}=r(),{vt:a}=i,c=(n||!o)&&a;return c&&fo(n,{height:s?"":"100%"}),{wt:c,bt:c}}},C_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ft:a}=e,[c,u]=pl({u:Uwe,o:UH()},UH.bind(0,i,"padding",""));return(f,h,p)=>{let[g,v]=u(p);const{A:y,Y:S}=hs(),{yt:w}=n(),{wt:b,bt:x,St:E}=f,[I,A]=h("paddingAbsolute");(b||v||!S&&x)&&([g,v]=c(p));const O=!a&&(A||E||v);if(O){const L=!I||!o&&!y,N=g.r+g.l,H=g.t+g.b,G={marginRight:L&&!w?-N:0,marginBottom:L?-H:0,marginLeft:L&&w?-N:0,top:L?-g.t:0,right:L?w?-g.r:"auto":0,left:L?w?"auto":-g.l:0,width:L?`calc(100% + ${N}px)`:""},z={paddingTop:L?g.t:0,paddingRight:L?g.r:0,paddingBottom:L?g.b:0,paddingLeft:L?g.l:0};fo(o||s,G),fo(s,z),r({tt:g,$t:!L,P:o?z:Br({},G,z)})}return{xt:O}}},{max:p3}=Math,vd=p3.bind(0,0),CJ="visible",tW="hidden",T_e=42,z_={u:lJ,o:{w:0,h:0}},k_e={u:cJ,o:{x:tW,y:tW}},A_e=(e,t)=>{const n=window.devicePixelRatio%1!==0?1:0,r={w:vd(e.w-t.w),h:vd(e.h-t.h)};return{w:r.w>n?r.w:0,h:r.h>n?r.h:0}},j_=e=>e.indexOf(CJ)===0,I_e=(e,t)=>{const[n,r]=t,{J:i,tt:o,K:s,ot:a,ft:c,ht:u,it:f,ct:h}=e,{k:p,Y:g,A:v,I:y}=hs(),S=Gp()[tj],w=!c&&!v&&(y.x||y.y),b=f&&c,[x,E]=pl(z_,TC.bind(0,s)),[I,A]=pl(z_,CC.bind(0,s)),[k,O]=pl(z_),[L,N]=pl(z_),[H]=pl(k_e),G=(W,K)=>{if(fo(s,{height:""}),K){const{$t:X,tt:Q}=n(),{Ct:ie,M:ce}=W,ue=TC(i),se=hE(i),J=fo(s,"boxSizing")==="content-box",ae=X||J?Q.b+Q.t:0,le=!(y.x&&J);fo(s,{height:se.h+ue.h+(ie.x&&le?ce.x:0)-ae})}},z=(W,K)=>{const X=!v&&!W?T_e:0,Q=(pe,ve,ye)=>{const xe=fo(s,pe),be=(K?K[pe]:xe)==="scroll";return[xe,be,be&&!v?ve?X:ye:0,ve&&!!X]},[ie,ce,ue,se]=Q("overflowX",y.x,p.x),[J,ae,le,he]=Q("overflowY",y.y,p.y);return{Ot:{x:ie,y:J},Ct:{x:ce,y:ae},M:{x:ue,y:le},D:{x:se,y:he}}},D=(W,K,X,Q)=>{const ie=(ae,le)=>{const he=j_(ae),pe=le&&he&&ae.replace(`${CJ}-`,"")||"";return[le&&!he?ae:"",j_(pe)?"hidden":pe]},[ce,ue]=ie(X.x,K.x),[se,J]=ie(X.y,K.y);return Q.overflowX=ue&&se?ue:ce,Q.overflowY=J&&ce?J:se,z(W,Q)},F=(W,K,X,Q)=>{const{M:ie,D:ce}=W,{x:ue,y:se}=ce,{x:J,y:ae}=ie,{P:le}=n(),he=K?"marginLeft":"marginRight",pe=K?"paddingLeft":"paddingRight",ve=le[he],ye=le.marginBottom,xe=le[pe],me=le.paddingBottom;Q.width=`calc(100% + ${ae+ve*-1}px)`,Q[he]=-ae+ve,Q.marginBottom=-J+ye,X&&(Q[pe]=xe+(se?ae:0),Q.paddingBottom=me+(ue?J:0))},[j,V]=S?S.L(w,g,s,a,n,z,F):[()=>w,()=>[$s]];return(W,K,X)=>{const{wt:Q,Tt:ie,bt:ce,xt:ue,vt:se,St:J}=W,{gt:ae,yt:le}=n(),[he,pe]=K("showNativeOverlaidScrollbars"),[ve,ye]=K("overflow"),xe=he&&y.x&&y.y,me=!c&&!g&&(Q||ce||ie||pe||se),be=j_(ve.x),Ze=j_(ve.y),Xe=be||Ze;let ct=E(X),Bt=A(X),Pe=O(X),ze=N(X),st;if(pe&&v&&u(bJ,Qwe,!xe),me&&(st=z(xe),G(st,ae)),Q||ue||ce||J||pe){Xe&&u(Sg,_g,!1);const[Re,He]=V(xe,le,st),[xt,Vt]=ct=x(X),[yn,Yr]=Bt=I(X),Hr=hE(s);let Wr=yn,Kr=Hr;Re(),(Yr||Vt||pe)&&He&&!xe&&j(He,yn,xt,le)&&(Kr=hE(s),Wr=CC(s));const ci={w:vd(p3(yn.w,Wr.w)+xt.w),h:vd(p3(yn.h,Wr.h)+xt.h)},ps={w:vd((b?h.innerWidth:Kr.w+vd(Hr.w-yn.w))+xt.w),h:vd((b?h.innerHeight+xt.h:Kr.h+vd(Hr.h-yn.h))+xt.h)};ze=L(ps),Pe=k(A_e(ci,ps),X)}const[gt,vt]=ze,[_e,je]=Pe,[Ke,Fe]=Bt,[Be,Pt]=ct,dt={x:_e.w>0,y:_e.h>0},Ie=be&&Ze&&(dt.x||dt.y)||be&&dt.x&&!dt.y||Ze&&dt.y&&!dt.x;if(ue||J||Pt||Fe||vt||je||ye||pe||me){const Re={marginRight:0,marginBottom:0,marginLeft:0,width:"",overflowY:"",overflowX:""},He=D(xe,dt,ve,Re),xt=j(He,Ke,Be,le);c||F(He,le,xt,Re),me&&G(He,ae),c?(No(i,vJ,Re.overflowX),No(i,yJ,Re.overflowY)):fo(s,Re)}Cp(i,ml,_g,Ie),Cp(o,d3,Jwe,Ie),c||Cp(s,gd,Sg,Xe);const[at,zt]=H(z(xe).Ot);return r({Ot:at,zt:{x:gt.w,y:gt.h},Et:{x:_e.w,y:_e.h},At:dt}),{It:zt,Ht:vt,Lt:je}}},nW=(e,t,n)=>{const r={},i=t||{},o=ta(e).concat(ta(i));return An(o,s=>{const a=e[s],c=i[s];r[s]=!!(n||a||c)}),r},R_e=(e,t)=>{const{Z:n,K:r,ht:i,ft:o}=e,{A:s,I:a,Y:c}=hs(),u=!s&&(a.x||a.y),f=[E_e(e,t),C_e(e,t),I_e(e,t)];return(h,p,g)=>{const v=nW(Br({wt:!1,xt:!1,St:!1,vt:!1,Ht:!1,Lt:!1,It:!1,Tt:!1,bt:!1,Pt:!1},p),{},g),y=u||!c,S=y&&_l(r),w=y&&Ou(r);i("",kC,!0);let b=v;return An(f,x=>{b=nW(b,x(b,h,!!g)||{},g)}),_l(r,S),Ou(r,w),i("",kC),o||(_l(n,0),Ou(n,0)),b}},P_e=(e,t,n)=>{let r,i=!1;const o=()=>{i=!0},s=a=>{if(n){const c=n.reduce((u,f)=>{if(f){const[h,p]=f,g=p&&h&&(a?a(h):rJ(h,e));g&&g.length&&p&&xf(p)&&Gn(u,[g,p.trim()],!0)}return u},[]);An(c,u=>An(u[0],f=>{const h=u[1],p=r.get(f)||[];if(e.contains(f)){const v=oi(f,h,y=>{i?(v(),r.delete(f)):t(y)});r.set(f,Gn(p,v))}else yc(p),r.delete(f)}))}};return n&&(r=new WeakMap,s()),[o,s]},rW=(e,t,n,r)=>{let i=!1;const{Mt:o,Dt:s,Rt:a,kt:c,Bt:u,Vt:f}=r||{},h=Kz(()=>i&&n(!0),{g:33,v:99}),[p,g]=P_e(e,h,a),v=o||[],y=s||[],S=v.concat(y),w=(x,E)=>{const I=u||$s,A=f||$s,k=new Set,O=new Set;let L=!1,N=!1;if(An(x,H=>{const{attributeName:G,target:z,type:D,oldValue:F,addedNodes:j,removedNodes:V}=H,W=D==="attributes",K=D==="childList",X=e===z,Q=W&&xf(G)?No(z,G):0,ie=Q!==0&&F!==Q,ce=Xk(y,G)>-1&&ie;if(t&&(K||!X)){const ue=!W,se=W&&ie,J=se&&c&&SC(z,c),le=(J?!I(z,G,F,Q):ue||se)&&!A(H,!!J,e,r);An(j,he=>k.add(he)),An(V,he=>k.add(he)),N=N||le}!t&&X&&ie&&!I(z,G,F,Q)&&(O.add(G),L=L||ce)}),k.size>0&&g(H=>Wp(k).reduce((G,z)=>(Gn(G,rJ(H,z)),SC(z,H)?Gn(G,z):G),[])),t)return!E&&N&&n(!1),[!1];if(O.size>0||L){const H=[Wp(O),L];return!E&&n.apply(0,H),H}},b=new zwe(x=>w(x));return b.observe(e,{attributes:!0,attributeOldValue:!0,attributeFilter:S,subtree:t,childList:t,characterData:t}),i=!0,[()=>{i&&(p(),b.disconnect(),i=!1)},()=>{if(i){h.m();const x=b.takeRecords();return!Gz(x)&&w(x,!0)}}]},U_=3333333,TJ=(e,t,n)=>{const{Yt:r,Pt:i}=n||{},o=Gp()[h_e],{V:s}=hs(),c=iJ(`
`)[0],u=c.firstChild,f=Qg.bind(0,e),[h]=pl({o:!1,_:!0,u:(v,y)=>!(!v||!sg(v)&&sg(y))}),p=v=>{const y=ea(v)&&v.length>0&&I1(v[0]),S=!y&&Wz(v[0]);let w=!1,b=!1,x=!0;if(y){const[E,,I]=h(v.pop().contentRect),A=sg(E),k=sg(I);w=!I&&!!k||!A,b=!k&&A,x=!w}else S?[,x]=v:b=v===!0;if(r&&x){const E=S?v[0]:Qg(c);_l(c,E?s.n?-U_:s.i?0:U_:U_),Ou(c,U_)}w||t({wt:!S,jt:S?v:void 0,Pt:!!b})},g=[];return[()=>{yc(g),hc(c)},()=>{let v=i&&p;if(og){const y=new og(p);y.observe(u),Gn(g,()=>{y.disconnect()})}else if(o){const[y,S]=o.O(u,p,i);v=y,Gn(g,S)}if(r){const[y]=pl({o:void 0},f);Gn(g,oi(c,"scroll",S=>{const w=y(),[b,x,E]=w;x&&(Yz(u,"ltr rtl"),rf(u,b?"rtl":"ltr"),p([!!b,x,E])),dJ(S)}))}v&&(rf(c,Zwe),Gn(g,oi(c,"animationstart",v,{C:!!og}))),(og||o)&&ba(e,c)}]},O_e=e=>e.h===0||e.isIntersecting||e.intersectionRatio>0,M_e=(e,t)=>{let n;const r=Tp(t_e),i=[],[o]=pl({o:!1}),s=(c,u)=>{if(c){const f=o(O_e(c)),[,h]=f;return h&&!u&&t(f)&&[f]}},a=(c,u)=>c&&c.length>0&&s(c.pop(),u);return[()=>{yc(i),hc(r)},()=>{if(FH)n=new FH(c=>a(c),{root:e}),n.observe(r),Gn(i,()=>{n.disconnect()});else{const c=()=>{const h=R1(r);s(h)},[u,f]=TJ(r,c);Gn(i,u),f(),c()}ba(e,r)},()=>n&&a(n.takeRecords(),!0)]},iW=`[${ml}]`,D_e=`[${gd}]`,rN=["tabindex"],oW=["wrap","cols","rows"],iN=["id","class","style","open"],L_e=(e,t,n)=>{let r,i,o;const{J:s,K:a,nt:c,lt:u,ft:f,_t:h,ht:p}=e,{Y:g}=hs(),[v]=pl({u:lJ,o:{w:0,h:0}},()=>{const F=h(Sg,_g),j=h(eN,""),V=j&&_l(a),W=j&&Ou(a);p(Sg,_g),p(eN,""),p("",kC,!0);const K=CC(c),X=CC(a),Q=TC(a);return p(Sg,_g,F),p(eN,"",j),p("",kC),_l(a,V),Ou(a,W),{w:X.w+K.w+Q.w,h:X.h+K.h+Q.h}}),y=u?oW:iN.concat(oW),S=Kz(n,{g:()=>r,v:()=>i,p(F,j){const[V]=F,[W]=j;return[ta(V).concat(ta(W)).reduce((K,X)=>(K[X]=V[X]||W[X],K),{})]}}),w=F=>{An(F||rN,j=>{if(Xk(rN,j)>-1){const V=No(s,j);xf(V)?No(a,j,V):Go(a,j)}})},b=(F,j)=>{const[V,W]=F,K={vt:W};return t({gt:V}),!j&&n(K),K},x=({wt:F,jt:j,Pt:V})=>{const W=!F||V?n:S;let K=!1;if(j){const[X,Q]=j;K=Q,t({yt:X})}W({wt:F,Pt:V,St:K})},E=(F,j)=>{const[,V]=v(),W={bt:V};return V&&!j&&(F?n:S)(W),W},I=(F,j,V)=>{const W={Tt:j};return j?!V&&S(W):f||w(F),W},[A,k,O]=c||!g?M_e(s,b):[$s,$s,$s],[L,N]=f?[$s,$s]:TJ(s,x,{Pt:!0,Yt:!0}),[H,G]=rW(s,!1,I,{Dt:iN,Mt:iN.concat(rN)});let z;const D=f&&og&&new og(F=>{const j=F[F.length-1].contentRect,V=sg(j),K=!sg(z)&&V;x({wt:!0,Pt:K}),z=j});return[()=>{A(),L(),o&&o[0](),D&&D.disconnect(),H()},()=>{D&&D.observe(s),w(),N(),k()},()=>{const F={},j=G(),V=O(),W=o&&o[1]();return j&&Br(F,I.apply(0,Gn(j,!0))),V&&Br(F,b.apply(0,Gn(V,!0))),W&&Br(F,E.apply(0,Gn(W,!0))),F},F=>{const[j]=F("update.ignoreMutation"),[V,W]=F("update.attributes"),[K,X]=F("update.elementEvents"),[Q,ie]=F("update.debounce"),ce=X||W,ue=se=>Rl(j)&&j(se);if(ce&&(o&&(o[1](),o[0]()),o=rW(c||a,!0,E,{Mt:y.concat(V||[]),Rt:K,kt:iW,Vt:(se,J)=>{const{target:ae,attributeName:le}=se;return(!J&&le&&!f?Dwe(ae,iW,D_e):!1)||!!ig(ae,`.${fs}`)||!!ue(se)}})),ie)if(S.m(),ea(Q)){const se=Q[0],J=Q[1];r=Vd(se)&&se,i=Vd(J)&&J}else Vd(Q)?(r=Q,i=!1):(r=!1,i=!1)}]},sW={x:0,y:0},N_e=e=>({tt:{t:0,r:0,b:0,l:0},$t:!1,P:{marginRight:0,marginBottom:0,marginLeft:0,paddingTop:0,paddingRight:0,paddingBottom:0,paddingLeft:0},zt:sW,Et:sW,Ot:{x:"hidden",y:"hidden"},At:{x:!1,y:!1},gt:!1,yt:Qg(e.J)}),B_e=(e,t)=>{const n=h3(t,{}),[r,i,o]=Jz(),[s,a,c]=S_e(e),u=EJ(N_e(s)),[f,h]=u,p=R_e(s,u),g=(x,E,I)=>{const k=ta(x).some(O=>!!x[O])||!Vz(E)||I;return k&&o("u",[x,E,I]),k},[v,y,S,w]=L_e(s,h,x=>g(p(n,x),{},!1)),b=f.bind(0);return b.Nt=x=>r("u",x),b.qt=()=>{const{Z:x,K:E,rt:I,it:A}=s,k=A?I.documentElement:x,O=_l(k),L=Ou(k);y(),a(),_l(E,O),Ou(E,L)},b.Ft=s,[(x,E)=>{const I=h3(t,x,E);return w(I),g(p(I,S(),E),x,!!E)},b,()=>{i(),v(),c()}]},{round:aW}=Math,$_e=e=>{const{width:t,height:n}=Ql(e),{w:r,h:i}=R1(e);return{x:aW(t)/r||1,y:aW(n)/i||1}},F_e=(e,t,n)=>{const r=t.scrollbars,{button:i,isPrimary:o,pointerType:s}=e,{pointers:a}=r;return i===0&&o&&r[n?"dragScroll":"clickScroll"]&&(a||[]).includes(s)},lW="pointerup pointerleave pointercancel lostpointercapture",z_e=(e,t)=>oi(e,"mousedown",oi.bind(0,t,"click",dJ,{C:!0,$:!0}),{$:!0}),j_e=(e,t,n,r,i,o,s)=>{const{V:a}=hs(),{Gt:c,Xt:u,Ut:f}=r,h=`scroll${s?"Left":"Top"}`,p=`client${s?"X":"Y"}`,g=s?"width":"height",v=s?"left":"top",y=s?"w":"h",S=s?"x":"y",w=(b,x)=>E=>{const{Et:I}=o(),A=R1(u)[y]-R1(c)[y],O=x*E/A*I[S],N=Qg(f)&&s?a.n||a.i?1:-1:1;i[h]=b+O*N};return oi(u,"pointerdown",b=>{const x=ig(b.target,`.${ej}`)===c,E=x?c:u;if(Cp(t,ml,VH,!0),F_e(b,e,x)){const I=!x&&b.shiftKey,A=()=>Ql(c),k=()=>Ql(u),O=(K,X)=>(K||A())[v]-(X||k())[v],L=w(i[h]||0,1/$_e(i)[S]),N=b[p],H=A(),G=k(),z=H[g],D=O(H,G)+z/2,F=N-G[v],j=x?0:F-D,V=K=>{yc(W),E.releasePointerCapture(K.pointerId)},W=[Cp.bind(0,t,ml,VH),oi(n,lW,V),oi(n,"selectstart",K=>fJ(K),{S:!1}),oi(u,lW,V),oi(u,"pointermove",K=>{const X=K[p]-N;(x||I)&&L(j+X)})];if(I)L(j);else if(!x){const K=Gp()[p_e];K&&Gn(W,K.O(L,O,j,z,F))}E.setPointerCapture(b.pointerId)}})},U_e=(e,t)=>(n,r,i,o,s,a,c)=>{const{Ut:u}=n,[f,h]=np(333),p=!!s.scrollBy;let g=!0;return yc.bind(0,[oi(u,"pointerenter",()=>{r(YH,!0)}),oi(u,"pointerleave pointercancel",()=>{r(YH)}),oi(u,"wheel",v=>{const{deltaX:y,deltaY:S,deltaMode:w}=v;p&&g&&w===0&&Uu(u)===o&&s.scrollBy({left:y,top:S,behavior:"smooth"}),g=!1,r(JH,!0),f(()=>{g=!0,r(JH)}),fJ(v)},{S:!1,$:!0}),z_e(u,i),j_e(e,o,i,n,s,t,c),h])},{min:AC,max:m3,round:H_e}=Math,kJ=(e,t,n,r)=>{if(r){const a=n?"x":"y",{Et:c,zt:u}=r,f=u[a],h=c[a];return m3(0,AC(1,f/(f+h)))}const i=n?"width":"height",o=Ql(e)[i],s=Ql(t)[i];return m3(0,AC(1,o/s))},W_e=(e,t,n,r,i,o)=>{const{V:s}=hs(),a=o?"x":"y",c=o?"Left":"Top",{Et:u}=r,f=H_e(u[a]),h=AC(f,m3(0,n[`scroll${c}`])),p=o&&i,g=s.i?h:f-h,y=AC(1,(p?g:h)/f),S=kJ(e,t,o);return 1/S*(1-S)*y},AJ=(e,t,n,r)=>t&&e.animate(n,{timeline:t,composite:r}),G_e=(e,t)=>({transform:[Jg("0%",t),Jg(t&&e?"100%":"-100%",t)],[t?e?"right":"left":"top"]:["0%","100%"]}),V_e=e=>`${Math.max(0,e-.5)}px`,cW=(e,t,n,r)=>AJ(e,t,{transform:[Jg("0px",r),Jg(V_e(n),r)]},"add"),uW=(e,t)=>c3?new c3({source:e,axis:t}):null,q_e=(e,t,n)=>{const{q:r,H:i}=hs(),{scrollbars:o}=r(),{slot:s}=o,{rt:a,Z:c,J:u,K:f,ut:h,st:p,it:g,ft:v}=t,{scrollbars:y}=h?{}:e,{slot:S}=y||{},w=new Map,b=uW(p,"x"),x=uW(p,"y"),E=_J([c,u,f],()=>v&&g?c:u,s,S),I=se=>v&&!g&&Uu(se)===f,A=se=>{w.forEach((J,ae)=>{(se?Xk(ea(se)?se:[se],ae)>-1:!0)&&((J||[]).forEach(he=>{he&&he.cancel()}),w.delete(ae))})},k=(se,J,ae)=>{const le=ae?rf:Yz;An(se,he=>{le(he.Ut,J)})},O=(se,J)=>{An(se,ae=>{const[le,he]=J(ae);fo(le,he)})},L=(se,J,ae)=>{O(se,le=>{const{Gt:he,Xt:pe}=le;return[he,{[ae?"width":"height"]:`${(kJ(he,pe,ae,J)*100).toFixed(3)}%`}]})},N=(se,J,ae)=>{!x&&!x&&O(se,le=>{const{Gt:he,Xt:pe,Ut:ve}=le,ye=W_e(he,pe,p,J,Qg(ve),ae);return[he,{transform:ye===ye?Jg(`${(ye*100).toFixed(3)}%`,ae):""}]})},H=se=>{const{Ut:J}=se,ae=I(J)&&J;return[ae,{transform:ae?Jg([`${_l(p)}px`,`${Ou(p)}px`]):""}]},G=[],z=[],D=[],F=(se,J,ae)=>{const le=Wz(ae),he=le?ae:!0,pe=le?!ae:!0;he&&k(z,se,J),pe&&k(D,se,J)},j=se=>{L(z,se,!0),L(D,se)},V=se=>{N(z,se,!0),N(D,se)},W=()=>{const se=(J,{Ut:ae,Gt:le})=>{A(le),w.set(le,[AJ(le,J?b:x,G_e(J&&Qg(ae),J))])};z.forEach(se.bind(0,!0)),D.forEach(se.bind(0,!1))},K=()=>{!x&&!x&&(v&&O(z,H),v&&O(D,H))},X=({Et:se})=>{D.concat(z).forEach(({Ut:J})=>{A(J),I(J)&&w.set(J,[cW(J,b,se.x,!0),cW(J,x,se.y)])})},Q=se=>{const J=se?o_e:s_e,ae=se?z:D,le=Gz(ae)?XH:"",he=Tp(`${fs} ${J} ${le}`),pe=Tp(xJ),ve=Tp(ej),ye={Ut:he,Xt:pe,Gt:ve};return i||rf(he,n_e),ba(he,pe),ba(pe,ve),Gn(ae,ye),Gn(G,[hc.bind(0,he),A,n(ye,F,a,u,p,se?b:x,se)]),ye},ie=Q.bind(0,!0),ce=Q.bind(0,!1),ue=()=>{ba(E,z[0].Ut),ba(E,D[0].Ut),EC(()=>{F(XH)},300)};return ie(),ce(),[{Wt:j,Zt:V,Jt:W,Kt:X,Qt:K,tn:F,nn:{B:b,sn:z,en:ie,cn:O.bind(0,z)},rn:{B:x,sn:D,en:ce,cn:O.bind(0,D)}},ue,yc.bind(0,G)]},oN=e=>e.pointerType==="mouse",X_e=(e,t,n,r)=>{let i,o,s,a,c,u=$s,f=0;const h=EJ({}),[p]=h,[g,v]=np(),[y,S]=np(),[w,b]=np(100),[x,E]=np(100),[I,A]=np(100),[k,O]=np(()=>f),[L,N,H]=q_e(e,n.Ft,U_e(t,n)),{J:G,et:z,it:D}=n.Ft,{tn:F,Wt:j,Zt:V,Jt:W,Kt:K,Qt:X}=L,Q=J=>{F(f3,J,!0),F(f3,J,!1)},ie=(J,ae)=>{if(O(),J)F(QH);else{const le=()=>F(QH,!0);f>0&&!ae?k(le):le()}},ce=J=>{oN(J)&&(a=o,a&&ie(!0))},ue=[b,O,E,A,S,v,H,oi(G,"pointerover",ce,{C:!0}),oi(G,"pointerenter",ce),oi(G,"pointerleave",J=>{oN(J)&&(a=!1,o&&ie(!1))}),oi(G,"pointermove",J=>{oN(J)&&i&&g(()=>{b(),ie(!0),x(()=>{i&&ie(!1)})})}),oi(z,"scroll",J=>{y(()=>{V(n()),s&&ie(!0),w(()=>{s&&!a&&ie(!1)})}),r(J),X()})],se=p.bind(0);return se.Ft=L,se.qt=N,[(J,ae,le)=>{const{Ht:he,Lt:pe,It:ve,St:ye,Pt:xe}=le,{I:me}=hs(),be=h3(t,J,ae),Ze=n(),{Et:Xe,Ot:ct,yt:Bt,At:Pe}=Ze,[ze,st]=be("showNativeOverlaidScrollbars"),[gt,vt]=be("scrollbars.theme"),[_e,je]=be("scrollbars.visibility"),[Ke,Fe]=be("scrollbars.autoHide"),[Be,Pt]=be("scrollbars.autoHideSuspend"),[dt]=be("scrollbars.autoHideDelay"),[Ie,at]=be("scrollbars.dragScroll"),[zt,Re]=be("scrollbars.clickScroll"),He=xe&&!ae,xt=Pe.x||Pe.y,Vt=he||pe||ye,yn=ve||je,Yr=ze&&me.x&&me.y,Hr=(Wr,Kr)=>{const ci=_e==="visible"||_e==="auto"&&Wr==="scroll";return F(a_e,ci,Kr),ci};if(f=dt,He&&(Be&&xt?(Q(!1),u(),I(()=>{u=oi(z,"scroll",Q.bind(0,!0),{C:!0})})):Q(!0)),st&&F(r_e,Yr),vt&&(F(c),F(gt,!0),c=gt),Pt&&!Be&&Q(!0),Fe&&(i=Ke==="move",o=Ke==="leave",s=Ke!=="never",ie(!s,!0)),at&&F(u_e,Ie),Re&&F(c_e,zt),yn){const Wr=Hr(ct.x,!0),Kr=Hr(ct.y,!1);F(l_e,!(Wr&&Kr))}Vt&&(j(Ze),V(Ze),W(Ze),K(Ze),X(),F(KH,!Xe.x,!0),F(KH,!Xe.y,!1),F(i_e,Bt&&!D))},se,()=>{yc(ue),u()}]},IJ=(e,t,n)=>{Rl(e)&&e(t||void 0,n||void 0)},Rd=(e,t,n)=>{const{G:r,q:i,j:o,N:s}=hs(),a=Gp(),c=zx(e),u=c?e:e.target,f=SJ(u);if(t&&!f){let h=!1;const p=z=>{const D=Gp()[f_e],F=D&&D.O;return F?F(z,!0):z},g=Br({},r(),p(t)),[v,y,S]=Jz(n),[w,b,x]=B_e(e,g),[E,I,A]=X_e(e,g,b,z=>S("scroll",[G,z])),k=(z,D)=>w(z,!!D),O=k.bind(0,{},!0),L=o(O),N=s(O),H=z=>{__e(u),L(),N(),A(),x(),h=!0,S("destroyed",[G,!!z]),y()},G={options(z,D){if(z){const F=D?r():{},j=hJ(g,Br(F,p(z)));Vz(j)||(Br(g,j),k(j))}return Br({},g)},on:v,off:(z,D)=>{z&&D&&y(z,D)},state(){const{zt:z,Et:D,Ot:F,At:j,tt:V,$t:W,yt:K}=b();return Br({},{overflowEdge:z,overflowAmount:D,overflowStyle:F,hasOverflow:j,padding:V,paddingAbsolute:W,directionRTL:K,destroyed:h})},elements(){const{Z:z,J:D,tt:F,K:j,nt:V,st:W,et:K}=b.Ft,{nn:X,rn:Q}=I.Ft,ie=ue=>{const{Gt:se,Xt:J,Ut:ae}=ue;return{scrollbar:ae,track:J,handle:se}},ce=ue=>{const{sn:se,en:J}=ue,ae=ie(se[0]);return Br({},ae,{clone:()=>{const le=ie(J());return E({},!0,{}),le}})};return Br({},{target:z,host:D,padding:F||j,viewport:j,content:V||j,scrollOffsetElement:W,scrollEventElement:K,scrollbarHorizontal:ce(X),scrollbarVertical:ce(Q)})},update:z=>k({},z),destroy:H.bind(0)};return b.Nt((z,D,F)=>{E(D,F,z)}),w_e(u,G),An(ta(a),z=>IJ(a[z],0,G)),x_e(b.Ft.it,i().cancel,!c&&e.cancel)?(H(!0),G):(b.qt(),I.qt(),S("initialized",[G]),b.Nt((z,D,F)=>{const{wt:j,St:V,vt:W,Ht:K,Lt:X,It:Q,bt:ie,Tt:ce}=z;S("updated",[G,{updateHints:{sizeChanged:j,directionChanged:V,heightIntrinsicChanged:W,overflowEdgeChanged:K,overflowAmountChanged:X,overflowStyleChanged:Q,contentMutation:ie,hostMutation:ce},changedOptions:D,force:F}])}),G.update(!0),G)}return f};Rd.plugin=e=>{An(d_e(e),t=>IJ(t,Rd))};Rd.valid=e=>{const t=e&&e.elements,n=Rl(t)&&t();return s3(n)&&!!SJ(n.target)};Rd.env=()=>{const{k:e,I:t,A:n,V:r,Y:i,H:o,B:s,U:a,W:c,q:u,F:f,G:h,X:p}=hs();return Br({},{scrollbarsSize:e,scrollbarsOverlaid:t,scrollbarsHiding:n,rtlScrollBehavior:r,flexboxGlue:i,cssCustomProperties:o,scrollTimeline:s,staticDefaultInitialization:a,staticDefaultOptions:c,getDefaultInitialization:u,setDefaultInitialization:f,getDefaultOptions:h,setDefaultOptions:p})};const Y_e=()=>{if(typeof window>"u"){const u=()=>{};return[u,u]}let e,t;const n=window,r=typeof n.requestIdleCallback=="function",i=n.requestAnimationFrame,o=n.cancelAnimationFrame,s=r?n.requestIdleCallback:i,a=r?n.cancelIdleCallback:o,c=()=>{a(e),o(t)};return[(u,f)=>{c(),e=s(r?()=>{c(),t=i(u)}:u,typeof f=="object"?f:{timeout:2233})},c]},RJ=e=>{const{options:t,events:n,defer:r}=e||{},[i,o]=R.useMemo(Y_e,[]),s=R.useRef(null),a=R.useRef(r),c=R.useRef(t),u=R.useRef(n);return R.useEffect(()=>{a.current=r},[r]),R.useEffect(()=>{const{current:f}=s;c.current=t,Rd.valid(f)&&f.options(t||{},!0)},[t]),R.useEffect(()=>{const{current:f}=s;u.current=n,Rd.valid(f)&&f.on(n||{},!0)},[n]),R.useEffect(()=>()=>{var f;o(),(f=s.current)==null||f.destroy()},[]),R.useMemo(()=>[f=>{const h=s.current;if(Rd.valid(h))return;const p=a.current,g=c.current||{},v=u.current||{},y=()=>s.current=Rd(f,g,v);p?i(y,p):y()},()=>s.current],[])},K_e=(e,t)=>{const{element:n="div",options:r,events:i,defer:o,children:s,...a}=e,c=n,u=R.useRef(null),f=R.useRef(null),[h,p]=R.useState(!1),[g,v]=RJ({options:r,events:i,defer:o});return R.useEffect(()=>{p(!0)},[]),R.useEffect(()=>{const{current:y}=u,{current:S}=f;return h&&y&&S&&g({target:y,elements:{viewport:S,content:S}}),()=>{var w;return(w=v())==null?void 0:w.destroy()}},[h,g,n]),R.useImperativeHandle(t,()=>({osInstance:v,getElement:()=>u.current}),[]),de.createElement(c,{"data-overlayscrollbars-initialize":"",ref:u,...a},h?de.createElement("div",{ref:f,"data-overlayscrollbars-contents":!0},s):s)},Q_e=R.forwardRef(K_e),Iw=R.forwardRef(({children:e,x:t,y:n,px:r=6,...i},o)=>{const{palette:s,spacing:a}=Ln(),c=A1({"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${a(r)})`,marginTop:a(r)}}),u=R.useCallback(f=>{if(o&&f){const h=f.elements().viewport;h&&(typeof o=="function"?o(h):o.current=h)}},[o]);return C.jsx(Q_e,{options:{overflow:{x:t?"scroll":"hidden",y:n?"scroll":"hidden"},scrollbars:{autoHide:"move",theme:s.mode==="dark"?"os-theme-light":"os-theme-dark"}},...i,className:`${c} ${i.className}`,events:{initialized:u},children:e})});var PJ={exports:{}},or={};/** @license React v17.0.2 * react-is.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. - */var Yk=60103,Kk=60106,Iw=60107,Rw=60108,Pw=60114,Ow=60109,Mw=60110,Lw=60112,Dw=60113,nj=60120,Nw=60115,Bw=60116,RJ=60121,PJ=60122,OJ=60117,MJ=60129,LJ=60131;if(typeof Symbol=="function"&&Symbol.for){var Gi=Symbol.for;Yk=Gi("react.element"),Kk=Gi("react.portal"),Iw=Gi("react.fragment"),Rw=Gi("react.strict_mode"),Pw=Gi("react.profiler"),Ow=Gi("react.provider"),Mw=Gi("react.context"),Lw=Gi("react.forward_ref"),Dw=Gi("react.suspense"),nj=Gi("react.suspense_list"),Nw=Gi("react.memo"),Bw=Gi("react.lazy"),RJ=Gi("react.block"),PJ=Gi("react.server.block"),OJ=Gi("react.fundamental"),MJ=Gi("react.debug_trace_mode"),LJ=Gi("react.legacy_hidden")}function Pl(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Yk:switch(e=e.type,e){case Iw:case Pw:case Rw:case Dw:case nj:return e;default:switch(e=e&&e.$$typeof,e){case Mw:case Lw:case Bw:case Nw:case Ow:return e;default:return t}}case Kk:return t}}}var V_e=Ow,q_e=Yk,X_e=Lw,Y_e=Iw,K_e=Bw,Q_e=Nw,J_e=Kk,Z_e=Pw,eSe=Rw,tSe=Dw;or.ContextConsumer=Mw;or.ContextProvider=V_e;or.Element=q_e;or.ForwardRef=X_e;or.Fragment=Y_e;or.Lazy=K_e;or.Memo=Q_e;or.Portal=J_e;or.Profiler=Z_e;or.StrictMode=eSe;or.Suspense=tSe;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Pl(e)===Mw};or.isContextProvider=function(e){return Pl(e)===Ow};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Yk};or.isForwardRef=function(e){return Pl(e)===Lw};or.isFragment=function(e){return Pl(e)===Iw};or.isLazy=function(e){return Pl(e)===Bw};or.isMemo=function(e){return Pl(e)===Nw};or.isPortal=function(e){return Pl(e)===Kk};or.isProfiler=function(e){return Pl(e)===Pw};or.isStrictMode=function(e){return Pl(e)===Rw};or.isSuspense=function(e){return Pl(e)===Dw};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Iw||e===Pw||e===MJ||e===Rw||e===Dw||e===nj||e===LJ||typeof e=="object"&&e!==null&&(e.$$typeof===Bw||e.$$typeof===Nw||e.$$typeof===Ow||e.$$typeof===Mw||e.$$typeof===Lw||e.$$typeof===OJ||e.$$typeof===RJ||e[0]===PJ)};or.typeOf=Pl;IJ.exports=or;var DJ=IJ.exports;function AC(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===Dr.Horizontal?t.clientWidth:t.clientHeight;return r!==0?(e===Dr.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}/*! ***************************************************************************** + */var Qk=60103,Jk=60106,Rw=60107,Pw=60108,Ow=60114,Mw=60109,Dw=60110,Lw=60112,Nw=60113,ij=60120,Bw=60115,$w=60116,OJ=60121,MJ=60122,DJ=60117,LJ=60129,NJ=60131;if(typeof Symbol=="function"&&Symbol.for){var Gi=Symbol.for;Qk=Gi("react.element"),Jk=Gi("react.portal"),Rw=Gi("react.fragment"),Pw=Gi("react.strict_mode"),Ow=Gi("react.profiler"),Mw=Gi("react.provider"),Dw=Gi("react.context"),Lw=Gi("react.forward_ref"),Nw=Gi("react.suspense"),ij=Gi("react.suspense_list"),Bw=Gi("react.memo"),$w=Gi("react.lazy"),OJ=Gi("react.block"),MJ=Gi("react.server.block"),DJ=Gi("react.fundamental"),LJ=Gi("react.debug_trace_mode"),NJ=Gi("react.legacy_hidden")}function Ml(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Qk:switch(e=e.type,e){case Rw:case Ow:case Pw:case Nw:case ij:return e;default:switch(e=e&&e.$$typeof,e){case Dw:case Lw:case $w:case Bw:case Mw:return e;default:return t}}case Jk:return t}}}var J_e=Mw,Z_e=Qk,eSe=Lw,tSe=Rw,nSe=$w,rSe=Bw,iSe=Jk,oSe=Ow,sSe=Pw,aSe=Nw;or.ContextConsumer=Dw;or.ContextProvider=J_e;or.Element=Z_e;or.ForwardRef=eSe;or.Fragment=tSe;or.Lazy=nSe;or.Memo=rSe;or.Portal=iSe;or.Profiler=oSe;or.StrictMode=sSe;or.Suspense=aSe;or.isAsyncMode=function(){return!1};or.isConcurrentMode=function(){return!1};or.isContextConsumer=function(e){return Ml(e)===Dw};or.isContextProvider=function(e){return Ml(e)===Mw};or.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Qk};or.isForwardRef=function(e){return Ml(e)===Lw};or.isFragment=function(e){return Ml(e)===Rw};or.isLazy=function(e){return Ml(e)===$w};or.isMemo=function(e){return Ml(e)===Bw};or.isPortal=function(e){return Ml(e)===Jk};or.isProfiler=function(e){return Ml(e)===Ow};or.isStrictMode=function(e){return Ml(e)===Pw};or.isSuspense=function(e){return Ml(e)===Nw};or.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Rw||e===Ow||e===LJ||e===Pw||e===Nw||e===ij||e===NJ||typeof e=="object"&&e!==null&&(e.$$typeof===$w||e.$$typeof===Bw||e.$$typeof===Mw||e.$$typeof===Dw||e.$$typeof===Lw||e.$$typeof===DJ||e.$$typeof===OJ||e[0]===MJ)};or.typeOf=Ml;PJ.exports=or;var BJ=PJ.exports;function IC(e,t){const n=getComputedStyle(t);if(!n)return;let r=e===Lr.Horizontal?t.clientWidth:t.clientHeight;return r!==0?(e===Lr.Horizontal?r-=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight):r-=parseFloat(n.paddingTop)+parseFloat(n.paddingBottom),r):void 0}/*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any @@ -279,7 +279,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */function U_(e,t,n=[],r={condition:!0}){const{condition:i}=r,o=function(s,a){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&a.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(u=Object.getOwnPropertySymbols(s);f(i&&window.addEventListener(e,t,o),()=>{i&&window.removeEventListener(e,t)}),[e,t,i,...n])}(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`/* === Main Container === */ +***************************************************************************** */function H_(e,t,n=[],r={condition:!0}){const{condition:i}=r,o=function(s,a){var c={};for(var u in s)Object.prototype.hasOwnProperty.call(s,u)&&a.indexOf(u)<0&&(c[u]=s[u]);if(s!=null&&typeof Object.getOwnPropertySymbols=="function"){var f=0;for(u=Object.getOwnPropertySymbols(s);f(i&&window.addEventListener(e,t,o),()=>{i&&window.removeEventListener(e,t)}),[e,t,i,...n])}(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<"u"){var r=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css",n==="top"&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`/* === Main Container === */ .__dbk__container { height: 100%; width: 100%; @@ -368,13 +368,13 @@ PERFORMANCE OF THIS SOFTWARE. .__dbk__dragger.Dark { background: #434252; } -/* ====== */`);const nSe=de.forwardRef(({className:e,theme:t,draggerClassName:n,direction:r=Dr.Vertical,onDragging:i},o)=>{const s=`__dbk__gutter ${r} ${e||t}`,a=`__dbk__dragger ${r} ${n||t}`;return C.jsx("div",Object.assign({className:s,ref:o,dir:r,onMouseDown:i,onTouchStart:hE?i:void 0},{children:C.jsx("div",{className:a},void 0)}),void 0)});var ma;function h3(e,t,n){let r,i;return t?(r=e/2,i=e):n?(r=e,i=e/2):(r=e,i=e),{aGutterSize:r,bGutterSize:i}}function rSe(e,t){switch(t.type){case ma.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case ma.CreatePairs:{const{direction:n,children:r,gutters:i}=t.payload,o=r[0].parentNode;if(!o)throw new Error("Cannot create pairs - parent is undefined.");const s=AC(n,o);if(s===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${s}.`);const a=[];return r.forEach((c,u)=>{if(u>0){const f=r[u-1],h=r[u],p=i[u-1],g=n===Dr.Horizontal?f.getBoundingClientRect().left:f.getBoundingClientRect().top,v=n===Dr.Horizontal?h.getBoundingClientRect().right:h.getBoundingClientRect().bottom,y=n===Dr.Horizontal?f.getBoundingClientRect().width+p.getBoundingClientRect().width+h.getBoundingClientRect().width:f.getBoundingClientRect().height+p.getBoundingClientRect().height+h.getBoundingClientRect().height,S=n===Dr.Horizontal?p.getBoundingClientRect().width:p.getBoundingClientRect().height,w={idx:u-1,a:f,b:h,gutter:p,parent:o,start:g,end:v,size:y,gutterSize:S,aSizePct:100/r.length,bSizePct:100/r.length};a.push(w)}}),Object.assign(Object.assign({},e),{pairs:a})}case ma.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case ma.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case ma.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,i=e.pairs[r],o=AC(n,i.parent);if(!o)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const s=i.gutter[n===Dr.Horizontal?"clientWidth":"clientHeight"],a=r===0,c=r===e.pairs.length-1,{aGutterSize:u,bGutterSize:f}=h3(s,a,c);let h,p,g,v,y;return n===Dr.Horizontal?(h=i.a.getBoundingClientRect().left,p=i.b.getBoundingClientRect().right,v=(i.a.getBoundingClientRect().width+u)/o*100,y=(i.b.getBoundingClientRect().width+f)/o*100,g=i.a.getBoundingClientRect().width+u+f+i.b.getBoundingClientRect().width):(h=i.a.getBoundingClientRect().top,p=i.b.getBoundingClientRect().bottom,v=(i.a.getBoundingClientRect().height+u)/o*100,y=(i.b.getBoundingClientRect().height+f)/o*100,g=i.a.getBoundingClientRect().height+u+f+i.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},i),{start:h,end:p,size:g,aSizePct:v,bSizePct:y,gutterSize:s}),Object.assign({},e)}default:return e}}function NJ(e,t=0,n=[]){return R.Children.toArray(e).reduce((r,i,o)=>(DJ.isFragment(i)?r.push.apply(r,NJ(i.props.children,t+1,n.concat(i.key||o))):R.isValidElement(i)?r.push(R.cloneElement(i,{key:n.concat(String(i.key)).join(".")})):typeof i!="string"&&typeof i!="number"||r.push(i),r),[])}(function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"})(ma||(ma={}));const lW=e=>"changedTouches"in e;var Dr,p3;(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"})(Dr||(Dr={})),function(e){e.Light="Light",e.Dark="Dark"}(p3||(p3={}));const hE=typeof window<"u"&&"ontouchstart"in window;function iN(e){return e===Dr.Horizontal?"col-resize":"row-resize"}const iSe={isReady:!1,isDragging:!1,pairs:[]};function oSe({direction:e=Dr.Horizontal,minWidths:t=[],minHeights:n=[],initialSizes:r,gutterTheme:i=p3.Dark,gutterClassName:o,draggerClassName:s,children:a,onResizeStarted:c,onResizeFinished:u,classes:f=[]}){const h=NJ(a),[p,g]=R.useReducer(rSe,iSe),v=R.useRef(null),y=R.useRef([]),S=R.useRef([]);y.current=[],S.current=[];const w=de.useCallback(G=>{g({type:ma.SetIsReadyToCompute,payload:{isReady:G}})},[]),b=de.useCallback((G,z)=>{g({type:ma.StartDragging,payload:{gutterIdx:z}});const L=p.pairs[z];c==null||c(L.idx),L.a.style.userSelect="none",L.b.style.userSelect="none",L.gutter.style.cursor=iN(G),L.parent.style.cursor=iN(G),document.body.style.cursor=iN(G)},[p.pairs]),x=de.useCallback(()=>{g({type:ma.StopDragging});const G=[];for(let L=0;L{g({type:ma.CalculateSizes,payload:{direction:G,gutterIdx:z}})},[]),I=de.useCallback((G,z,L)=>{g({type:ma.CreatePairs,payload:{direction:G,children:z,gutters:L}})},[]),A=de.useCallback((G,z,L,F)=>{const j=z[0].parentNode;if(!j)throw new Error("Cannot set initial sizes - parent is undefined");if(AC(G,j)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");z.forEach((V,W)=>{const K=W===0,X=W===z.length-1;let Q,ie=0;z.length>1&&(ie=L[X?W-1:W].getBoundingClientRect()[G===Dr.Horizontal?"width":"height"],ie=K||X?ie/2:ie),Q=F&&W{if(p.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const L=p.pairs[p.draggingIdx];if(L.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(L.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const F=L.aSizePct+L.bSizePct,j=z/L.size*F,V=F-z/L.size*F,W=p.draggingIdx===0,K=p.draggingIdx===p.pairs.length-1,{aGutterSize:X,bGutterSize:Q}=h3(L.gutterSize,W,K),ie=`calc(${j}% - ${X}px)`,ce=`calc(${V}% - ${Q}px)`;G===Dr.Horizontal?(L.a.style.width=ie,L.b.style.width=ce):(L.a.style.height=ie,L.b.style.height=ce)},[p.draggingIdx,p.pairs,e]),O=de.useCallback((G,z,L)=>{if(!p.isDragging)return;if(p.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const F=p.pairs[p.draggingIdx];if(F.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(F.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let j=function(K,X){const Q=lW(X)?X.changedTouches[0]:X;return K===Dr.Horizontal?Q.clientX:Q.clientY}(z,G)-F.start,V=16,W=16;L.length>p.draggingIdx&&(V=L[p.draggingIdx]),L.length>=p.draggingIdx+1&&(W=L[p.draggingIdx+1]),j=F.size-(F.gutterSize+W)&&(j=F.size-(F.gutterSize+W)),k(z,j)},[p.isDragging,p.draggingIdx,p.pairs,k]),D=()=>{if(p.isDragging){if(p.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");E(e,p.draggingIdx),x()}},N=G=>{p.isDragging&&(lW(G)&&G.preventDefault(),O(G,e,e===Dr.Horizontal?t:n))};function H(G,z){if(!G.current)throw new Error("Can't add element to ref object - ref isn't initialized");z&&!G.current.includes(z)&&G.current.push(z)}return U_("mouseup",D,[p.isDragging,x]),U_("mousemove",N,[e,p.isDragging,O,t,n]),U_("touchend",D,[p.isDragging,x],{condition:hE}),U_("touchmove",N,[e,p.isDragging,O,t,n],{condition:hE,passive:!hE}),R.useEffect(function(){if(!v.current)return;const G=v.current.parentElement;if(!G)return;const z=new ResizeObserver(()=>{const L=getComputedStyle(G),F=e===Dr.Horizontal?G.clientWidth:G.clientHeight;w(!!L&&!!F)});return z.observe(G),()=>{z.disconnect()}},[v.current,e]),R.useEffect(function(){if(p.isReady&&(!y.current||y.current[0].offsetParent)){if(!y.current||!S.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");h.length<=1?A(e,y.current,S.current,r):(A(e,y.current,S.current,r),I(e,y.current,S.current))}},[a,p.isReady,e,A,I,r]),C.jsx("div",Object.assign({className:`__dbk__container ${e}`,ref:v},{children:p.isReady&&h.map((G,z)=>C.jsxs(de.Fragment,{children:[C.jsx("div",Object.assign({ref:L=>H(y,L),className:"__dbk__child-wrapper "+(zH(S,L),className:o,theme:i,draggerClassName:s,direction:e,onDragging:()=>{return E(e,L=z),void b(e,L);var L}},void 0)]},z))}),void 0)}let qo=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function Ob(e){if(typeof window>"u")return e;const t=R.useRef(null);return R.useLayoutEffect(()=>{t.current=e}),R.useCallback((...n)=>{var r;(r=t.current)===null||r===void 0||r.call(t,...n)},[])}const cW={};function sSe(e,t){cW[e]||(cW[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const aSe={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function lSe({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:r}){const i=R.useRef(!0);R.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const[o,s]=R.useState(aSe),a=R.useCallback(b=>{i.current&&s(b)},[]),c=R.useCallback(b=>a(x=>({...x,setAnchorElUsed:!0,anchorEl:b??void 0})),[]),u=Ob(b=>(o.isOpen?p(b):f(b),o)),f=Ob(b=>{const x=b instanceof Element?void 0:b,E=b instanceof Element?b:(b==null?void 0:b.currentTarget)instanceof Element?b.currentTarget:void 0;if((x==null?void 0:x.type)==="touchstart"){a(D=>({...D,_deferNextOpen:!0}));return}const I=x==null?void 0:x.clientX,A=x==null?void 0:x.clientY,k=typeof I=="number"&&typeof A=="number"?{left:I,top:A}:void 0,O=D=>{if(!b&&!D.setAnchorElUsed&&n!=="dialog"&&sSe("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return D;setTimeout(()=>e._setChildPopupState(w))}const N={...D,isOpen:!0,anchorPosition:k,hovered:(x==null?void 0:x.type)==="mouseover"||D.hovered,focused:(x==null?void 0:x.type)==="focus"||D.focused,_openEventType:x==null?void 0:x.type};return x!=null&&x.currentTarget?D.setAnchorElUsed||(N.anchorEl=x==null?void 0:x.currentTarget):E&&(N.anchorEl=E),N};a(D=>D._deferNextOpen?(setTimeout(()=>a(O),0),{...D,_deferNextOpen:!1}):O(D))}),h=b=>{const{_childPopupState:x}=b;return setTimeout(()=>{x==null||x.close(),e==null||e._setChildPopupState(null)}),{...b,isOpen:!1,hovered:!1,focused:!1}},p=Ob(b=>{const x=b instanceof Element?void 0:b;if((x==null?void 0:x.type)==="touchstart"){a(E=>({...E,_deferNextClose:!0}));return}a(E=>E._deferNextClose?(setTimeout(()=>a(h),0),{...E,_deferNextClose:!1}):h(E))}),g=R.useCallback((b,x)=>{b?f(x):p(x)},[]),v=Ob(b=>{const{relatedTarget:x}=b;a(E=>E.hovered&&!(x instanceof Element&&m3(x,w))?E.focused?{...E,hovered:!1}:h(E):E)}),y=Ob(b=>{if(!b)return;const{relatedTarget:x}=b;a(E=>E.focused&&!(x instanceof Element&&m3(x,w))?E.hovered?{...E,focused:!1}:h(E):E)}),S=R.useCallback(b=>a(x=>({...x,_childPopupState:b})),[]),w={...o,setAnchorEl:c,popupId:t,variant:n,open:f,close:p,toggle:u,setOpen:g,onBlur:y,onMouseLeave:v,disableAutoFocus:r??!!(o.hovered||o.focused),_setChildPopupState:S};return w}function cSe({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e&&t!=null?t:void 0}:n==="popper"?{"aria-describedby":e&&t!=null?t:void 0}:void 0}}function Qk(e){return{...cSe(e),onClick:e.open,onTouchStart:e.open}}function $w({isOpen:e,anchorEl:t,anchorPosition:n,close:r,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:a}){return{id:i,anchorEl:t,anchorPosition:n,anchorReference:a==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function uSe(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function m3(e,t){const{anchorEl:n,_childPopupState:r}=t;return uW(n,e)||uW(uSe(e,t),e)||r!=null&&m3(e,r)}function uW(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function rm({children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}){const o=lSe({popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}),s=e(o);return s??null}rm.propTypes={children:pb.func.isRequired,popupId:pb.string,variant:pb.oneOf(["popover","popper"]).isRequired,parentPopupState:pb.object,disableAutoFocus:pb.bool};function dSe({onSplitHorizontal:e,onClose:t,onSplitVertical:n,closeDisabled:r,splitHorizontalDisabled:i,splitVerticalDisabled:o}){return C.jsx(rm,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(Up,{sx:{m:1},children:C.jsx(vf,{title:"Panel Options",children:C.jsx(Fp,{size:"small",...Qk(s),children:C.jsx(B1e,{fontSize:"small"})})})}),C.jsxs(nm,{...$w(s),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[C.jsxs(Ru,{onClick:n,disabled:o,children:[C.jsx(Wd,{children:C.jsx(MH,{fontSize:"small"})}),C.jsx(rc,{children:"Split Vertical"})]}),C.jsxs(Ru,{onClick:e,disabled:i,children:[C.jsx(Wd,{children:C.jsx(MH,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),C.jsx(rc,{children:"Split Horizontal"})]}),C.jsx(Ku,{}),C.jsxs(Ru,{onClick:t,disabled:r,children:[C.jsx(Wd,{children:C.jsx(zQ,{fontSize:"small"})}),C.jsx(rc,{children:"Close Panel"})]})]})]})})}function Ta(e,t){const n=te.clone(e);return t(n),n}function dW(e,t){return t(te.clone(e))}function Jg(e){return t=>R.createElement(e,{...t,produce:n=>{var r;return(r=t==null?void 0:t.onChange)==null?void 0:r.call(t,i=>Ta(i,n))}})}const BJ=R.createContext({});function bf(){return R.useContext(BJ)}function $J({root:e={type:"leaf",key:""},renderLeaf:t,onChange:n,onClose:r,depth:i=0}){const{palette:o,spacing:s,transitions:a}=Dn(),c=T1({"div&":{background:o.text.secondary,opacity:1-o.action.activatedOpacity,transition:a.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),u=T1({"div&":{background:o.background.default,[`&:hover .${c}`]:{opacity:1},"&.Horizontal":{padding:0},"&.Vertical":{padding:0}}}),f=g=>Number(s(g).slice(0,-2));function h(g){const v=100-te.sumBy(g,"size"),y=te.filter(g,S=>!S.size).length;return y?v/y:0}const p=R.useMemo(()=>{const g=v=>n==null?void 0:n(dW(e,y=>({key:qo(),type:"branch",orientation:v,children:[{...structuredClone(y),size:50,key:qo()},{...structuredClone(y),size:50,key:qo()}]})));return e.type==="leaf"?{state:e.content,controls:C.jsx(dSe,{onClose:r,closeDisabled:!i,onSplitHorizontal:()=>g("horizontal"),onSplitVertical:()=>g("vertical")}),onChange:v=>n==null?void 0:n(Ta(e,y=>{y.content={...y.content,...v}}))}:{}},[n,r,i,e]);return C.jsx(C.Fragment,{children:e.type==="leaf"?C.jsx(En,{children:C.jsx(En,{sx:{borderRadius:g=>g.spacing(1),overflow:"hidden"},children:C.jsx(BJ.Provider,{value:p,children:t==null?void 0:t(e)})})}):C.jsx(oSe,{gutterClassName:u,draggerClassName:c,onResizeFinished:(g,v)=>n==null?void 0:n(Ta(e,y=>{te.forEach(v,(S,w)=>{y.children[w].size=S})})),minHeights:te.map(e.children,()=>f(6)-8),minWidths:te.map(e.children,()=>f(32)),initialSizes:te.map(e.children,(g,v,y)=>g.size??h(y)),direction:{vertical:Dr.Vertical,horizontal:Dr.Horizontal}[e.orientation],children:te.map(e.children,(g,v)=>C.jsx($J,{depth:i+1,renderLeaf:t,root:g,onChange:y=>n==null?void 0:n(Ta(e,S=>S.children[v]=y)),onClose:()=>n==null?void 0:n(dW(e,y=>(y.children.splice(v,1),y.children.length===1?y.children[0].type==="leaf"?{type:"leaf",key:qo(),content:y.children[0].content}:y.children[0]:(te.forEach(y.children,(S,w,b)=>S.size=100/b.length),y))))},g.key))})})}function I1(){return I1=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var hSe=["PropTypes"],pSe=function(t,n){return R.Children.toArray(t).reduce(function(r,i){if(R.isValidElement(i)){var o=i.type.displayName;n!=null&&n.includes(o)&&(r[o]=i.props)}return r},{})},mSe=function(t,n){var r=R.Children.toArray(t).filter(function(i){if(R.isValidElement(i)){var o=i.type.displayName;return!(n!=null&&n.includes(o))}return!0});return r.length>0?r:void 0},gSe=function(t){return typeof t=="string"&&!hSe.includes(t)&&t.match(/^[A-Z0-9]/)},vSe=function(t){var n=R.memo(function(r){var i=r.children,o=r.propagateSlotProps,s=r.slotKeys,a=s===void 0?[]:s,c=fSe(r,["children","propagateSlotProps","slotKeys"]),u=R.useMemo(function(){return pSe(i,a)},[a,i]),f=R.useMemo(function(){return mSe(i,a)},[a,i]),h=R.useMemo(function(){return I1({},c,{slotProps:I1({},o,u)})},[c,u,o]);return R.createElement(t,h,f)});return n},ySe=function(t){var n=R.memo(vSe(t));n.displayName="WithSlots("+(t.displayName||t.name)+")";var r=new Proxy(n,{get:function(o,s,a){var c;if(s in o||typeof s=="symbol"||!gSe(s))return Reflect.get(o,s,a);var u=((c=Reflect.get(o,"defaultProps"))==null?void 0:c.slotKeys)||[],f=Reflect.get(o,s);if(!f){var h=function(){return null};h.displayName=s,Reflect.set(o,s,h)}return Reflect.set(o,"defaultProps",I1({},o.defaultProps,{slotKeys:[].concat(u,[s])})),Reflect.get(o,s,a)}});return r};function rj(){const e=Dn();return fye(e.breakpoints.down("sm"))}const bSe=e=>e?48:36,xSe=8;function wSe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=rj(),s=te.max([te.findIndex(t,{value:n}),0])??0;return C.jsx(rm,{variant:"popover",children:a=>C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Qk(a))})}),C.jsx(nm,{...$w(a),anchorOrigin:{horizontal:"center",vertical:-bSe(o)*s-xSe},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:c,label:u,disabled:f})=>C.jsx(Ru,{disabled:f,value:c,selected:c===n,onClick:()=>{a.close(),r==null||r(c)},children:u},c))})]})})}function Fx(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return C.jsx(Ew,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:te.map(r,o=>C.jsx(Ru,{value:o.value,children:o.label},o.value))})}function nf({children:e,icon:t,showArrow:n,...r}){return C.jsx(Nz,{...r,startIcon:t,endIcon:n&&C.jsx(D1e,{sx:{ml:-.5,color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1}}),children:C.jsx(ht,{sx:{color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1},children:e})})}function Gs({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,disabled:s,ButtonProps:a}){const c=te.find(r,{id:t});return C.jsx(wSe,{placeholder:te.startCase(e),trigger:u=>C.jsx(nf,{...u,...a,disabled:!(r!=null&&r.length)||s,icon:i,showArrow:o,children:(c==null?void 0:c.name)??e}),items:te.map(r,({id:u,name:f,description:h,hidden:p})=>({value:u,label:C.jsxs(C.Fragment,{children:[C.jsx(jt,{children:f}),C.jsx(ai,{}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:h})]}),disabled:p})),value:c==null?void 0:c.id,onChange:n})}const FJ=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],zJ=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],Lm=4,_Se={renderer:zJ,remote:FJ,playbackRate:Lm,theme:"dark",acrylic:!0,accentColor:"blue"},[Ju,SSe]=mc({},wwe("settings",_Se)),{common:cVe,...ESe}=mX,CSe=` +/* ====== */`);const lSe=de.forwardRef(({className:e,theme:t,draggerClassName:n,direction:r=Lr.Vertical,onDragging:i},o)=>{const s=`__dbk__gutter ${r} ${e||t}`,a=`__dbk__dragger ${r} ${n||t}`;return C.jsx("div",Object.assign({className:s,ref:o,dir:r,onMouseDown:i,onTouchStart:pE?i:void 0},{children:C.jsx("div",{className:a},void 0)}),void 0)});var ga;function g3(e,t,n){let r,i;return t?(r=e/2,i=e):n?(r=e,i=e/2):(r=e,i=e),{aGutterSize:r,bGutterSize:i}}function cSe(e,t){switch(t.type){case ga.SetIsReadyToCompute:return Object.assign(Object.assign({},e),{isReady:t.payload.isReady});case ga.CreatePairs:{const{direction:n,children:r,gutters:i}=t.payload,o=r[0].parentNode;if(!o)throw new Error("Cannot create pairs - parent is undefined.");const s=IC(n,o);if(s===void 0)throw new Error(`Cannot create pairs - parent has undefined or zero size: ${s}.`);const a=[];return r.forEach((c,u)=>{if(u>0){const f=r[u-1],h=r[u],p=i[u-1],g=n===Lr.Horizontal?f.getBoundingClientRect().left:f.getBoundingClientRect().top,v=n===Lr.Horizontal?h.getBoundingClientRect().right:h.getBoundingClientRect().bottom,y=n===Lr.Horizontal?f.getBoundingClientRect().width+p.getBoundingClientRect().width+h.getBoundingClientRect().width:f.getBoundingClientRect().height+p.getBoundingClientRect().height+h.getBoundingClientRect().height,S=n===Lr.Horizontal?p.getBoundingClientRect().width:p.getBoundingClientRect().height,w={idx:u-1,a:f,b:h,gutter:p,parent:o,start:g,end:v,size:y,gutterSize:S,aSizePct:100/r.length,bSizePct:100/r.length};a.push(w)}}),Object.assign(Object.assign({},e),{pairs:a})}case ga.StartDragging:{const{gutterIdx:n}=t.payload;return Object.assign(Object.assign({},e),{isDragging:!0,draggingIdx:n})}case ga.StopDragging:return Object.assign(Object.assign({},e),{isDragging:!1});case ga.CalculateSizes:{const{direction:n,gutterIdx:r}=t.payload,i=e.pairs[r],o=IC(n,i.parent);if(!o)throw new Error("Cannot calculate sizes - 'pair.parent' has undefined or zero size.");const s=i.gutter[n===Lr.Horizontal?"clientWidth":"clientHeight"],a=r===0,c=r===e.pairs.length-1,{aGutterSize:u,bGutterSize:f}=g3(s,a,c);let h,p,g,v,y;return n===Lr.Horizontal?(h=i.a.getBoundingClientRect().left,p=i.b.getBoundingClientRect().right,v=(i.a.getBoundingClientRect().width+u)/o*100,y=(i.b.getBoundingClientRect().width+f)/o*100,g=i.a.getBoundingClientRect().width+u+f+i.b.getBoundingClientRect().width):(h=i.a.getBoundingClientRect().top,p=i.b.getBoundingClientRect().bottom,v=(i.a.getBoundingClientRect().height+u)/o*100,y=(i.b.getBoundingClientRect().height+f)/o*100,g=i.a.getBoundingClientRect().height+u+f+i.b.getBoundingClientRect().height),e.pairs[r]=Object.assign(Object.assign({},i),{start:h,end:p,size:g,aSizePct:v,bSizePct:y,gutterSize:s}),Object.assign({},e)}default:return e}}function $J(e,t=0,n=[]){return R.Children.toArray(e).reduce((r,i,o)=>(BJ.isFragment(i)?r.push.apply(r,$J(i.props.children,t+1,n.concat(i.key||o))):R.isValidElement(i)?r.push(R.cloneElement(i,{key:n.concat(String(i.key)).join(".")})):typeof i!="string"&&typeof i!="number"||r.push(i),r),[])}(function(e){e[e.SetIsReadyToCompute=0]="SetIsReadyToCompute",e[e.CreatePairs=1]="CreatePairs",e[e.CalculateSizes=2]="CalculateSizes",e[e.StartDragging=3]="StartDragging",e[e.StopDragging=4]="StopDragging"})(ga||(ga={}));const dW=e=>"changedTouches"in e;var Lr,v3;(function(e){e.Horizontal="Horizontal",e.Vertical="Vertical"})(Lr||(Lr={})),function(e){e.Light="Light",e.Dark="Dark"}(v3||(v3={}));const pE=typeof window<"u"&&"ontouchstart"in window;function sN(e){return e===Lr.Horizontal?"col-resize":"row-resize"}const uSe={isReady:!1,isDragging:!1,pairs:[]};function dSe({direction:e=Lr.Horizontal,minWidths:t=[],minHeights:n=[],initialSizes:r,gutterTheme:i=v3.Dark,gutterClassName:o,draggerClassName:s,children:a,onResizeStarted:c,onResizeFinished:u,classes:f=[]}){const h=$J(a),[p,g]=R.useReducer(cSe,uSe),v=R.useRef(null),y=R.useRef([]),S=R.useRef([]);y.current=[],S.current=[];const w=de.useCallback(G=>{g({type:ga.SetIsReadyToCompute,payload:{isReady:G}})},[]),b=de.useCallback((G,z)=>{g({type:ga.StartDragging,payload:{gutterIdx:z}});const D=p.pairs[z];c==null||c(D.idx),D.a.style.userSelect="none",D.b.style.userSelect="none",D.gutter.style.cursor=sN(G),D.parent.style.cursor=sN(G),document.body.style.cursor=sN(G)},[p.pairs]),x=de.useCallback(()=>{g({type:ga.StopDragging});const G=[];for(let D=0;D{g({type:ga.CalculateSizes,payload:{direction:G,gutterIdx:z}})},[]),I=de.useCallback((G,z,D)=>{g({type:ga.CreatePairs,payload:{direction:G,children:z,gutters:D}})},[]),A=de.useCallback((G,z,D,F)=>{const j=z[0].parentNode;if(!j)throw new Error("Cannot set initial sizes - parent is undefined");if(IC(G,j)===void 0)throw new Error("Cannot set initial sizes - parent has undefined size");z.forEach((V,W)=>{const K=W===0,X=W===z.length-1;let Q,ie=0;z.length>1&&(ie=D[X?W-1:W].getBoundingClientRect()[G===Lr.Horizontal?"width":"height"],ie=K||X?ie/2:ie),Q=F&&W{if(p.draggingIdx===void 0)throw new Error("Cannot adjust size - 'draggingIdx' is undefined");const D=p.pairs[p.draggingIdx];if(D.size===void 0)throw new Error("Cannot adjust size - 'pair.size' is undefined");if(D.gutterSize===void 0)throw new Error("Cannot adjust size - 'pair.gutterSize' is undefined");const F=D.aSizePct+D.bSizePct,j=z/D.size*F,V=F-z/D.size*F,W=p.draggingIdx===0,K=p.draggingIdx===p.pairs.length-1,{aGutterSize:X,bGutterSize:Q}=g3(D.gutterSize,W,K),ie=`calc(${j}% - ${X}px)`,ce=`calc(${V}% - ${Q}px)`;G===Lr.Horizontal?(D.a.style.width=ie,D.b.style.width=ce):(D.a.style.height=ie,D.b.style.height=ce)},[p.draggingIdx,p.pairs,e]),O=de.useCallback((G,z,D)=>{if(!p.isDragging)return;if(p.draggingIdx===void 0)throw new Error("Cannot drag - 'draggingIdx' is undefined");const F=p.pairs[p.draggingIdx];if(F.start===void 0)throw new Error("Cannot drag - 'pair.start' is undefined");if(F.size===void 0)throw new Error("Cannot drag - 'pair.size' is undefined");if(F.gutterSize===void 0)throw new Error("Cannot drag - 'pair.gutterSize' is undefined");let j=function(K,X){const Q=dW(X)?X.changedTouches[0]:X;return K===Lr.Horizontal?Q.clientX:Q.clientY}(z,G)-F.start,V=16,W=16;D.length>p.draggingIdx&&(V=D[p.draggingIdx]),D.length>=p.draggingIdx+1&&(W=D[p.draggingIdx+1]),j=F.size-(F.gutterSize+W)&&(j=F.size-(F.gutterSize+W)),k(z,j)},[p.isDragging,p.draggingIdx,p.pairs,k]),L=()=>{if(p.isDragging){if(p.draggingIdx===void 0)throw new Error("Cannot calculate sizes after dragging = 'state.draggingIdx' is undefined");E(e,p.draggingIdx),x()}},N=G=>{p.isDragging&&(dW(G)&&G.preventDefault(),O(G,e,e===Lr.Horizontal?t:n))};function H(G,z){if(!G.current)throw new Error("Can't add element to ref object - ref isn't initialized");z&&!G.current.includes(z)&&G.current.push(z)}return H_("mouseup",L,[p.isDragging,x]),H_("mousemove",N,[e,p.isDragging,O,t,n]),H_("touchend",L,[p.isDragging,x],{condition:pE}),H_("touchmove",N,[e,p.isDragging,O,t,n],{condition:pE,passive:!pE}),R.useEffect(function(){if(!v.current)return;const G=v.current.parentElement;if(!G)return;const z=new ResizeObserver(()=>{const D=getComputedStyle(G),F=e===Lr.Horizontal?G.clientWidth:G.clientHeight;w(!!D&&!!F)});return z.observe(G),()=>{z.disconnect()}},[v.current,e]),R.useEffect(function(){if(p.isReady&&(!y.current||y.current[0].offsetParent)){if(!y.current||!S.current)throw new Error("Cannot create pairs - either variable 'childRefs' or 'gutterRefs' is undefined");h.length<=1?A(e,y.current,S.current,r):(A(e,y.current,S.current,r),I(e,y.current,S.current))}},[a,p.isReady,e,A,I,r]),C.jsx("div",Object.assign({className:`__dbk__container ${e}`,ref:v},{children:p.isReady&&h.map((G,z)=>C.jsxs(de.Fragment,{children:[C.jsx("div",Object.assign({ref:D=>H(y,D),className:"__dbk__child-wrapper "+(zH(S,D),className:o,theme:i,draggerClassName:s,direction:e,onDragging:()=>{return E(e,D=z),void b(e,D);var D}},void 0)]},z))}),void 0)}let qo=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");function Db(e){if(typeof window>"u")return e;const t=R.useRef(null);return R.useLayoutEffect(()=>{t.current=e}),R.useCallback((...n)=>{var r;(r=t.current)===null||r===void 0||r.call(t,...n)},[])}const fW={};function fSe(e,t){fW[e]||(fW[e]=!0,console.error("[material-ui-popup-state] WARNING",t))}const hSe={isOpen:!1,setAnchorElUsed:!1,anchorEl:void 0,anchorPosition:void 0,hovered:!1,focused:!1,_openEventType:null,_childPopupState:null,_deferNextOpen:!1,_deferNextClose:!1};function pSe({parentPopupState:e,popupId:t,variant:n,disableAutoFocus:r}){const i=R.useRef(!0);R.useEffect(()=>(i.current=!0,()=>{i.current=!1}),[]);const[o,s]=R.useState(hSe),a=R.useCallback(b=>{i.current&&s(b)},[]),c=R.useCallback(b=>a(x=>({...x,setAnchorElUsed:!0,anchorEl:b??void 0})),[]),u=Db(b=>(o.isOpen?p(b):f(b),o)),f=Db(b=>{const x=b instanceof Element?void 0:b,E=b instanceof Element?b:(b==null?void 0:b.currentTarget)instanceof Element?b.currentTarget:void 0;if((x==null?void 0:x.type)==="touchstart"){a(L=>({...L,_deferNextOpen:!0}));return}const I=x==null?void 0:x.clientX,A=x==null?void 0:x.clientY,k=typeof I=="number"&&typeof A=="number"?{left:I,top:A}:void 0,O=L=>{if(!b&&!L.setAnchorElUsed&&n!=="dialog"&&fSe("missingEventOrAnchorEl","eventOrAnchorEl should be defined if setAnchorEl is not used"),e){if(!e.isOpen)return L;setTimeout(()=>e._setChildPopupState(w))}const N={...L,isOpen:!0,anchorPosition:k,hovered:(x==null?void 0:x.type)==="mouseover"||L.hovered,focused:(x==null?void 0:x.type)==="focus"||L.focused,_openEventType:x==null?void 0:x.type};return x!=null&&x.currentTarget?L.setAnchorElUsed||(N.anchorEl=x==null?void 0:x.currentTarget):E&&(N.anchorEl=E),N};a(L=>L._deferNextOpen?(setTimeout(()=>a(O),0),{...L,_deferNextOpen:!1}):O(L))}),h=b=>{const{_childPopupState:x}=b;return setTimeout(()=>{x==null||x.close(),e==null||e._setChildPopupState(null)}),{...b,isOpen:!1,hovered:!1,focused:!1}},p=Db(b=>{const x=b instanceof Element?void 0:b;if((x==null?void 0:x.type)==="touchstart"){a(E=>({...E,_deferNextClose:!0}));return}a(E=>E._deferNextClose?(setTimeout(()=>a(h),0),{...E,_deferNextClose:!1}):h(E))}),g=R.useCallback((b,x)=>{b?f(x):p(x)},[]),v=Db(b=>{const{relatedTarget:x}=b;a(E=>E.hovered&&!(x instanceof Element&&y3(x,w))?E.focused?{...E,hovered:!1}:h(E):E)}),y=Db(b=>{if(!b)return;const{relatedTarget:x}=b;a(E=>E.focused&&!(x instanceof Element&&y3(x,w))?E.hovered?{...E,focused:!1}:h(E):E)}),S=R.useCallback(b=>a(x=>({...x,_childPopupState:b})),[]),w={...o,setAnchorEl:c,popupId:t,variant:n,open:f,close:p,toggle:u,setOpen:g,onBlur:y,onMouseLeave:v,disableAutoFocus:r??!!(o.hovered||o.focused),_setChildPopupState:S};return w}function mSe({isOpen:e,popupId:t,variant:n}){return{...n==="popover"?{"aria-haspopup":!0,"aria-controls":e&&t!=null?t:void 0}:n==="popper"?{"aria-describedby":e&&t!=null?t:void 0}:void 0}}function Zk(e){return{...mSe(e),onClick:e.open,onTouchStart:e.open}}function Fw({isOpen:e,anchorEl:t,anchorPosition:n,close:r,popupId:i,onMouseLeave:o,disableAutoFocus:s,_openEventType:a}){return{id:i,anchorEl:t,anchorPosition:n,anchorReference:a==="contextmenu"?"anchorPosition":"anchorEl",open:e,onClose:r,onMouseLeave:o,...s&&{autoFocus:!1,disableAutoFocusItem:!0,disableAutoFocus:!0,disableEnforceFocus:!0,disableRestoreFocus:!0}}}function gSe(e,{popupId:t}){if(!t)return null;const n=typeof e.getRootNode=="function"?e.getRootNode():document;return typeof n.getElementById=="function"?n.getElementById(t):null}function y3(e,t){const{anchorEl:n,_childPopupState:r}=t;return hW(n,e)||hW(gSe(e,t),e)||r!=null&&y3(e,r)}function hW(e,t){if(!e)return!1;for(;t;){if(t===e)return!0;t=t.parentElement}return!1}function im({children:e,popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}){const o=pSe({popupId:t,variant:n,parentPopupState:r,disableAutoFocus:i}),s=e(o);return s??null}im.propTypes={children:gb.func.isRequired,popupId:gb.string,variant:gb.oneOf(["popover","popper"]).isRequired,parentPopupState:gb.object,disableAutoFocus:gb.bool};function vSe({onSplitHorizontal:e,onClose:t,onSplitVertical:n,closeDisabled:r,splitHorizontalDisabled:i,splitVerticalDisabled:o}){return C.jsx(im,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(nf,{sx:{m:1},children:C.jsx(bf,{title:"Panel Options",children:C.jsx(jp,{size:"small",...Zk(s),children:C.jsx(U1e,{fontSize:"small"})})})}),C.jsxs(rm,{...Fw(s),transformOrigin:{horizontal:"right",vertical:"top"},anchorOrigin:{horizontal:"right",vertical:"top"},children:[C.jsxs(Pu,{onClick:n,disabled:o,children:[C.jsx(Gd,{children:C.jsx(NH,{fontSize:"small"})}),C.jsx(oc,{children:"Split Vertical"})]}),C.jsxs(Pu,{onClick:e,disabled:i,children:[C.jsx(Gd,{children:C.jsx(NH,{fontSize:"small",sx:{transform:"rotate(90deg)"}})}),C.jsx(oc,{children:"Split Horizontal"})]}),C.jsx(Qu,{}),C.jsxs(Pu,{onClick:t,disabled:r,children:[C.jsx(Gd,{children:C.jsx(UQ,{fontSize:"small"})}),C.jsx(oc,{children:"Close Panel"})]})]})]})})}function ka(e,t){const n=te.clone(e);return t(n),n}function pW(e,t){return t(te.clone(e))}function Zg(e){return t=>R.createElement(e,{...t,produce:n=>{var r;return(r=t==null?void 0:t.onChange)==null?void 0:r.call(t,i=>ka(i,n))}})}const FJ=R.createContext({});function wf(){return R.useContext(FJ)}function zJ({root:e={type:"leaf",key:""},renderLeaf:t,onChange:n,onClose:r,depth:i=0}){const{palette:o,spacing:s,transitions:a}=Ln(),c=A1({"div&":{background:o.text.secondary,opacity:1-o.action.activatedOpacity,transition:a.create("opacity"),"&.Horizontal":{width:"3px"},"&.Vertical":{height:"3px"}}}),u=A1({"div&":{background:o.background.default,[`&:hover .${c}`]:{opacity:1},"&.Horizontal":{padding:0},"&.Vertical":{padding:0}}}),f=g=>Number(s(g).slice(0,-2));function h(g){const v=100-te.sumBy(g,"size"),y=te.filter(g,S=>!S.size).length;return y?v/y:0}const p=R.useMemo(()=>{const g=v=>n==null?void 0:n(pW(e,y=>({key:qo(),type:"branch",orientation:v,children:[{...structuredClone(y),size:50,key:qo()},{...structuredClone(y),size:50,key:qo()}]})));return e.type==="leaf"?{state:e.content,controls:C.jsx(vSe,{onClose:r,closeDisabled:!i,onSplitHorizontal:()=>g("horizontal"),onSplitVertical:()=>g("vertical")}),onChange:v=>n==null?void 0:n(ka(e,y=>{y.content={...y.content,...v}}))}:{}},[n,r,i,e]);return C.jsx(C.Fragment,{children:e.type==="leaf"?C.jsx(En,{children:C.jsx(En,{sx:{borderRadius:g=>g.spacing(1),overflow:"hidden"},children:C.jsx(FJ.Provider,{value:p,children:t==null?void 0:t(e)})})}):C.jsx(dSe,{gutterClassName:u,draggerClassName:c,onResizeFinished:(g,v)=>n==null?void 0:n(ka(e,y=>{te.forEach(v,(S,w)=>{y.children[w].size=S})})),minHeights:te.map(e.children,()=>f(6)-8),minWidths:te.map(e.children,()=>f(32)),initialSizes:te.map(e.children,(g,v,y)=>g.size??h(y)),direction:{vertical:Lr.Vertical,horizontal:Lr.Horizontal}[e.orientation],children:te.map(e.children,(g,v)=>C.jsx(zJ,{depth:i+1,renderLeaf:t,root:g,onChange:y=>n==null?void 0:n(ka(e,S=>S.children[v]=y)),onClose:()=>n==null?void 0:n(pW(e,y=>(y.children.splice(v,1),y.children.length===1?y.children[0].type==="leaf"?{type:"leaf",key:qo(),content:y.children[0].content}:y.children[0]:(te.forEach(y.children,(S,w,b)=>S.size=100/b.length),y))))},g.key))})})}function P1(){return P1=Object.assign||function(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}var bSe=["PropTypes"],xSe=function(t,n){return R.Children.toArray(t).reduce(function(r,i){if(R.isValidElement(i)){var o=i.type.displayName;n!=null&&n.includes(o)&&(r[o]=i.props)}return r},{})},wSe=function(t,n){var r=R.Children.toArray(t).filter(function(i){if(R.isValidElement(i)){var o=i.type.displayName;return!(n!=null&&n.includes(o))}return!0});return r.length>0?r:void 0},_Se=function(t){return typeof t=="string"&&!bSe.includes(t)&&t.match(/^[A-Z0-9]/)},SSe=function(t){var n=R.memo(function(r){var i=r.children,o=r.propagateSlotProps,s=r.slotKeys,a=s===void 0?[]:s,c=ySe(r,["children","propagateSlotProps","slotKeys"]),u=R.useMemo(function(){return xSe(i,a)},[a,i]),f=R.useMemo(function(){return wSe(i,a)},[a,i]),h=R.useMemo(function(){return P1({},c,{slotProps:P1({},o,u)})},[c,u,o]);return R.createElement(t,h,f)});return n},ESe=function(t){var n=R.memo(SSe(t));n.displayName="WithSlots("+(t.displayName||t.name)+")";var r=new Proxy(n,{get:function(o,s,a){var c;if(s in o||typeof s=="symbol"||!_Se(s))return Reflect.get(o,s,a);var u=((c=Reflect.get(o,"defaultProps"))==null?void 0:c.slotKeys)||[],f=Reflect.get(o,s);if(!f){var h=function(){return null};h.displayName=s,Reflect.set(o,s,h)}return Reflect.set(o,"defaultProps",P1({},o.defaultProps,{slotKeys:[].concat(u,[s])})),Reflect.get(o,s,a)}});return r};function oj(){const e=Ln();return vye(e.breakpoints.down("sm"))}const CSe=e=>e?48:36,TSe=8;function kSe({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Option"}){const o=oj(),s=te.max([te.findIndex(t,{value:n}),0])??0;return C.jsx(im,{variant:"popover",children:a=>C.jsxs(C.Fragment,{children:[C.jsx(bf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Zk(a))})}),C.jsx(rm,{...Fw(a),anchorOrigin:{horizontal:"center",vertical:-CSe(o)*s-TSe},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:c,label:u,disabled:f})=>C.jsx(Pu,{disabled:f,value:c,selected:c===n,onClick:()=>{a.close(),r==null||r(c)},children:u},c))})]})})}function jx(e){const{placeholder:t,value:n,items:r=[],onChange:i}=e;return C.jsx(Cw,{sx:{minWidth:120},select:!0,label:t,value:n,variant:"filled",...e,onChange:o=>i==null?void 0:i(o.target.value),children:te.map(r,o=>C.jsx(Pu,{value:o.value,children:o.label},o.value))})}function of({children:e,icon:t,showArrow:n,...r}){return C.jsx($z,{...r,startIcon:t,endIcon:n&&C.jsx(z1e,{sx:{ml:-.5,color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1}}),children:C.jsx(ht,{sx:{color:"text.primary",opacity:i=>r.disabled?i.palette.action.disabledOpacity:1},children:e})})}function Gs({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,disabled:s,ButtonProps:a}){const c=te.find(r,{id:t});return C.jsx(kSe,{placeholder:te.startCase(e),trigger:u=>C.jsx(of,{...u,...a,disabled:!(r!=null&&r.length)||s,icon:i,showArrow:o,children:(c==null?void 0:c.name)??e}),items:te.map(r,({id:u,name:f,description:h,hidden:p})=>({value:u,label:C.jsxs(C.Fragment,{children:[C.jsx(Ut,{children:f}),C.jsx(ai,{}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:h})]}),disabled:p})),value:c==null?void 0:c.id,onChange:n})}const jJ=[{url:"https://cdn.jsdelivr.net/gh/path-visualiser/app@adapter-warthog-wasm-dist/warthog-wasm.mjs",transport:"ipc",key:"default-ipc"}],UJ=[{url:"internal://d2-renderer/",key:"d2-renderer",transport:"native"}],Lm=4,ASe={renderer:UJ,remote:jJ,playbackRate:Lm,theme:"dark",acrylic:!0,accentColor:"blue"},[Zu,ISe]=vc({},kwe("settings",ASe)),{common:yVe,...RSe}=vX,PSe=` 0px 8px 18px -1px rgb(0 0 0 / 8%), 0px 10px 48px 0px rgb(0 0 0 / 1%), 0px 20px 96px 0px rgb(0 0 0 / 0.5%) -`,fW=`"Inter", "Oxygen", "Ubuntu", "Cantarell", "Fira Sans", - "Droid Sans", "Helvetica Neue", "Arial", sans-serif`,TSe=(e,t)=>R4({palette:{primary:{main:mX[t][e==="dark"?"A100":"A700"]},mode:e,background:e==="dark"?{default:"#1c2128",paper:"#22272e"}:{default:"#f6f8fa",paper:"#ffffff"}},typography:{allVariants:{fontFamily:fW},button:{textTransform:"none",fontWeight:400,letterSpacing:0,backgroundColor:"background.paper"}},components:{MuiPopover:{styleOverrides:{paper:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06))"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundImage:"linear-gradient(#1c2128, #1c2128)",fontFamily:fW}}},MuiTypography:{styleOverrides:{body1:{fontWeight:400,fontSize:"0.875rem"},overline:{fontWeight:400,textTransform:"none",letterSpacing:0,fontSize:"0.875rem"},h6:{fontWeight:500,letterSpacing:-.4}}}},shadows:["",...te.times(24,te.constant(CSe))]});function jJ(){const[{acrylic:e}]=Ju();return e?{backdropFilter:"blur(10px)",background:({palette:t})=>kn(t.background.paper,.75)}:{backdropFilter:"blur(0px)",background:({palette:t})=>t.background.paper}}const kSe=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1,height:e=>e.spacing(3),alignSelf:"auto"}}),zn=ySe(({slotProps:e,onChange:t,stack:n})=>{var i,o,s,a;const r=jJ();return C.jsxs(En,{vertical:!0,children:[C.jsx(En,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:C.jsx(jp,{in:!0,children:C.jsx(ht,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(i=e.Content)==null?void 0:i.children})})}),C.jsxs(En,{sx:{height:c=>c.spacing(6)},children:[C.jsx(En,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...r},children:C.jsx(Aw,{x:!0,children:C.jsxs(En,{sx:{width:"max-content",height:c=>c.spacing(6),alignItems:"center",p:1},children:[C.jsx(Gs,{showArrow:!0,label:"Page",onChange:c=>t==null?void 0:t({...n,type:c}),icon:(o=i4[n.type])==null?void 0:o.icon,value:n==null?void 0:n.type,items:te.values(i4)}),((s=e.Options)==null?void 0:s.children)&&C.jsxs(C.Fragment,{children:[kSe,e.Options.children]})]})})}),C.jsx(ai,{sx:{mx:"auto"}}),(a=e.Extras)==null?void 0:a.children]})]})}),UJ=""+new URL("logo512-23eace97.png",import.meta.url).href,g3="Visualiser",ASe="1.0.5",ISe="1.0.5; mid October 2023",RSe="https://github.com/path-visualiser/app",PSe="https://github.com/path-visualiser/app/blob/master/docs",OSe=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function MSe(){const{controls:e,onChange:t,state:n}=bf();function r(i,o){return C.jsxs(ht,{sx:{pt:2},children:[C.jsx(jt,{variant:"overline",color:"text.secondary",children:i}),C.jsx(jt,{variant:"body2",children:o})]})}return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsxs(En,{children:[" ",C.jsx(Aw,{y:!0,children:C.jsxs(ht,{sx:{p:2},children:[C.jsx(ht,{sx:{pt:6,pb:2},children:C.jsx("img",{src:UJ,height:"64"})}),C.jsx(jt,{variant:"h6",children:g3}),r("Build Info",C.jsx(C.Fragment,{children:ISe})),r("About this App",C.jsxs(C.Fragment,{children:[g3," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),r("Team",C.jsxs(C.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",C.jsx(Xg,{sx:{mx:-2},children:OSe.map(({name:i,email:o},s)=>C.jsxs(t3,{href:`mailto:${o}`,children:[C.jsx(h0e,{children:C.jsx(Qme,{children:te.head(i)})}),C.jsx(rc,{primary:i,secondary:o})]},s))})]})),r("Resources",C.jsx(C.Fragment,{children:C.jsx(Xg,{sx:{mx:-2},children:C.jsxs(t3,{target:"_blank",href:"https://github.com/path-visualiser",children:[C.jsx(Wd,{children:C.jsx(O1e,{})}),C.jsx(rc,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})]})}),C.jsx(zn.Extras,{children:e})]})}const HJ=R.createContext(null);function LSe(){const[e,t]=R.useState(null);return R.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function WJ(e){const{children:t,value:n}=e,r=LSe(),i=R.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return C.jsx(HJ.Provider,{value:i,children:t})}function GJ(){return R.useContext(HJ)}function VJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function qJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const DSe=["children"],NSe=R.forwardRef(function(t,n){const{children:r}=t,i=Ne(t,DSe),o=GJ();if(o===null)throw new TypeError("No TabContext provided");const s=R.Children.map(r,a=>R.isValidElement(a)?R.cloneElement(a,{"aria-controls":VJ(o,a.props.value),id:qJ(o,a.props.value)}):null);return C.jsx(f1e,$({},i,{ref:n,value:o.value,children:s}))}),XJ=NSe;function BSe(e){return Ct("MuiTabPanel",e)}It("MuiTabPanel",["root"]);const $Se=["children","className","value"],FSe=e=>{const{classes:t}=e;return At({root:["root"]},BSe,t)},zSe=Ce("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),jSe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,a=Ne(r,$Se),c=$({},r),u=FSe(c),f=GJ();if(f===null)throw new TypeError("No TabContext provided");const h=VJ(f,s),p=qJ(f,s);return C.jsx(zSe,$({"aria-labelledby":p,className:Ue(u.root,o),hidden:s!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c},a,{children:s===f.value&&i}))}),sg=jSe;var YJ={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(YJ);var ij=YJ.exports;function v3({label:e=C.jsx(C.Fragment,{}),...t}){return C.jsx(Vve,{control:C.jsx(Yg,{defaultChecked:!0,...t}),label:e})}function USe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hW(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 pW(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function WSe(e,t){if(e==null)return{};var n=HSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function GSe(e,t){return VSe(e)||qSe(e,t)||XSe(e,t)||YSe()}function VSe(e){if(Array.isArray(e))return e}function qSe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function XSe(e,t){if(e){if(typeof e=="string")return mW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return mW(e,t)}}function mW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:{};H_.initial(e),H_.handler(t);var n={current:e},r=ax(cEe)(n,t),i=ax(lEe)(n),o=ax(H_.changes)(e),s=ax(aEe)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return H_.selector(u),u(n.current)}function c(u){QSe(r,i,o,s)(u)}return[a,c]}function aEe(e,t){return R1(t)?t(e.current):t}function lEe(e,t){return e.current=vW(vW({},e.current),t),t}function cEe(e,t,n){return R1(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var uEe={create:sEe},dEe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function fEe(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;cM4({palette:{primary:{main:vX[t][e==="dark"?"A100":"A700"]},mode:e,background:e==="dark"?{default:"#1c2128",paper:"#22272e"}:{default:"#f6f8fa",paper:"#ffffff"}},typography:{allVariants:{fontFamily:mW},button:{textTransform:"none",fontWeight:400,letterSpacing:0,backgroundColor:"background.paper"}},components:{MuiPopover:{styleOverrides:{paper:{backgroundImage:"linear-gradient(rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.06))"}}},MuiTooltip:{styleOverrides:{tooltip:{backgroundImage:"linear-gradient(#1c2128, #1c2128)",fontFamily:mW}}},MuiTypography:{styleOverrides:{body1:{fontWeight:400,fontSize:"0.875rem"},overline:{fontWeight:400,textTransform:"none",letterSpacing:0,fontSize:"0.875rem"},h6:{fontWeight:500,letterSpacing:-.4}}}},shadows:["",...te.times(24,te.constant(PSe))]});function sj(){const[{acrylic:e}]=Zu();return e?{backdropFilter:"blur(10px)",background:({palette:t})=>kn(t.background.paper,.75)}:{backdropFilter:"blur(0px)",background:({palette:t})=>t.background.paper}}const MSe=C.jsx(Qu,{orientation:"vertical",flexItem:!0,sx:{m:1,height:e=>e.spacing(3),alignSelf:"auto"}}),zn=ESe(({slotProps:e,onChange:t,stack:n})=>{var i,o,s,a;const r=sj();return C.jsxs(En,{vertical:!0,children:[C.jsx(En,{sx:{position:"absolute",top:0,left:0,width:"100%"},children:C.jsx(Hp,{in:!0,children:C.jsx(ht,{sx:{width:"100%",height:"100%",bgcolor:"background.paper"},children:(i=e.Content)==null?void 0:i.children})})}),C.jsxs(En,{sx:{height:c=>c.spacing(6)},children:[C.jsx(En,{sx:{p:0,position:"absolute",top:0,left:0,width:"100%",borderBottom:1,borderColor:"divider",alignItems:"center",pr:6,...r},children:C.jsx(Iw,{x:!0,children:C.jsxs(En,{sx:{width:"max-content",height:c=>c.spacing(6),alignItems:"center",p:1},children:[C.jsx(Gs,{showArrow:!0,label:"Page",onChange:c=>t==null?void 0:t({...n,type:c}),icon:(o=a4[n.type])==null?void 0:o.icon,value:n==null?void 0:n.type,items:te.values(a4)}),((s=e.Options)==null?void 0:s.children)&&C.jsxs(C.Fragment,{children:[MSe,e.Options.children]})]})})}),C.jsx(ai,{sx:{mx:"auto"}}),(a=e.Extras)==null?void 0:a.children]})]})}),HJ=""+new URL("logo512-23eace97.png",import.meta.url).href,b3="Visualiser",DSe="1.0.5",LSe="1.0.5; mid October 2023",NSe="https://github.com/path-visualiser/app",BSe="https://github.com/path-visualiser/app/blob/master/docs",$Se=[{name:"Dr Daniel Harabor",email:"daniel.harabor@monash.edu"},{name:"Dr Michael Wybrow",email:"michael.wybrow@monash.edu"},{name:"Karan Batta",email:"krnbatta@gmail.com"},{name:"Jay Wingate",email:"jaypeterwingate@gmail.com"},{name:"Kevin Zheng",email:"kzhe0012@student.monash.edu"},{name:"Leo Whitehead",email:"leo@whiteheadsoftware.dev"},{name:"Can Wang",email:"camwang@outlook.com"},{name:"Rory Tobin-Underwood",email:"rorytu@gmail.com"}];function FSe(){const{controls:e,onChange:t,state:n}=wf();function r(i,o){return C.jsxs(ht,{sx:{pt:2},children:[C.jsx(Ut,{variant:"overline",color:"text.secondary",children:i}),C.jsx(Ut,{variant:"body2",children:o})]})}return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsxs(En,{children:[" ",C.jsx(Iw,{y:!0,children:C.jsxs(ht,{sx:{p:2},children:[C.jsx(ht,{sx:{pt:6,pb:2},children:C.jsx("img",{src:HJ,height:"64"})}),C.jsx(Ut,{variant:"h6",children:b3}),r("Build Info",C.jsx(C.Fragment,{children:LSe})),r("About this App",C.jsxs(C.Fragment,{children:[b3," is a visualising debugging tool for pathfinding search. It can be used to visualise progression of search and debug pathfinding algorithms. It can handle range of different types of algorithms (demos are provided in the home page). This tool is highly customizable and provide flexibility to visualise any algorithm trace that you can augment using our docs."]})),r("Team",C.jsxs(C.Fragment,{children:["Our team is made up of present/past Monash students and Professors Dr Daniel Harabor:",C.jsx(Yg,{sx:{mx:-2},children:$Se.map(({name:i,email:o},s)=>C.jsxs(i3,{href:`mailto:${o}`,children:[C.jsx(y0e,{children:C.jsx(nge,{children:te.head(i)})}),C.jsx(oc,{primary:i,secondary:o})]},s))})]})),r("Resources",C.jsx(C.Fragment,{children:C.jsx(Yg,{sx:{mx:-2},children:C.jsxs(i3,{target:"_blank",href:"https://github.com/path-visualiser",children:[C.jsx(Gd,{children:C.jsx(B1e,{})}),C.jsx(oc,{primary:"Repository",secondary:"https://github.com/path-visualiser"})]})})}))]})})]})}),C.jsx(zn.Extras,{children:e})]})}const WJ=R.createContext(null);function zSe(){const[e,t]=R.useState(null);return R.useEffect(()=>{t(`mui-p-${Math.round(Math.random()*1e5)}`)},[]),e}function GJ(e){const{children:t,value:n}=e,r=zSe(),i=R.useMemo(()=>({idPrefix:r,value:n}),[r,n]);return C.jsx(WJ.Provider,{value:i,children:t})}function VJ(){return R.useContext(WJ)}function qJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-P-${t}`}function XJ(e,t){const{idPrefix:n}=e;return n===null?null:`${e.idPrefix}-T-${t}`}const jSe=["children"],USe=R.forwardRef(function(t,n){const{children:r}=t,i=Ne(t,jSe),o=VJ();if(o===null)throw new TypeError("No TabContext provided");const s=R.Children.map(r,a=>R.isValidElement(a)?R.cloneElement(a,{"aria-controls":qJ(o,a.props.value),id:XJ(o,a.props.value)}):null);return C.jsx(v1e,$({},i,{ref:n,value:o.value,children:s}))}),YJ=USe;function HSe(e){return Ct("MuiTabPanel",e)}It("MuiTabPanel",["root"]);const WSe=["children","className","value"],GSe=e=>{const{classes:t}=e;return At({root:["root"]},HSe,t)},VSe=Ce("div",{name:"MuiTabPanel",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({padding:e.spacing(3)})),qSe=R.forwardRef(function(t,n){const r=Rt({props:t,name:"MuiTabPanel"}),{children:i,className:o,value:s}=r,a=Ne(r,WSe),c=$({},r),u=GSe(c),f=VJ();if(f===null)throw new TypeError("No TabContext provided");const h=qJ(f,s),p=XJ(f,s);return C.jsx(VSe,$({"aria-labelledby":p,className:Ue(u.root,o),hidden:s!==f.value,id:h,ref:n,role:"tabpanel",ownerState:c},a,{children:s===f.value&&i}))}),ag=qSe;var KJ={exports:{}};(function(e){function t(n){return n&&n.__esModule?n:{default:n}}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(KJ);var aj=KJ.exports;function x3({label:e=C.jsx(C.Fragment,{}),...t}){return C.jsx(Qve,{control:C.jsx(Kg,{defaultChecked:!0,...t}),label:e})}function XSe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gW(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 vW(e){for(var t=1;t=0)&&(n[i]=e[i]);return n}function KSe(e,t){if(e==null)return{};var n=YSe(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function QSe(e,t){return JSe(e)||ZSe(e,t)||eEe(e,t)||tEe()}function JSe(e){if(Array.isArray(e))return e}function ZSe(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function eEe(e,t){if(e){if(typeof e=="string")return yW(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return yW(e,t)}}function yW(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;c1&&arguments[1]!==void 0?arguments[1]:{};W_.initial(e),W_.handler(t);var n={current:e},r=cx(mEe)(n,t),i=cx(pEe)(n),o=cx(W_.changes)(e),s=cx(hEe)(n);function a(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:function(f){return f};return W_.selector(u),u(n.current)}function c(u){rEe(r,i,o,s)(u)}return[a,c]}function hEe(e,t){return O1(t)?t(e.current):t}function pEe(e,t){return e.current=xW(xW({},e.current),t),t}function mEe(e,t,n){return O1(t)?t(e.current):Object.keys(n).forEach(function(r){var i;return(i=t[r])===null||i===void 0?void 0:i.call(t,e.current[r])}),n}var gEe={create:fEe},vEe={paths:{vs:"https://cdn.jsdelivr.net/npm/monaco-editor@0.36.1/min/vs"}};function yEe(e){return function t(){for(var n=this,r=arguments.length,i=new Array(r),o=0;o=e.length?e.apply(this,i):function(){for(var s=arguments.length,a=new Array(s),c=0;c{r.current=!1}:e,t)}var Ns=BEe;function zx(){}function ag(e,t,n,r){return $Ee(e,r)||FEe(e,t,n,r)}function $Ee(e,t){return e.editor.getModel(rZ(e,t))}function FEe(e,t,n,r){return e.editor.createModel(t,n,r?rZ(e,r):void 0)}function rZ(e,t){return e.Uri.parse(t)}function zEe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:f="Loading...",options:h={},height:p="100%",width:g="100%",className:v,wrapperProps:y={},beforeMount:S=zx,onMount:w=zx}){let[b,x]=R.useState(!1),[E,I]=R.useState(!0),A=R.useRef(null),k=R.useRef(null),O=R.useRef(null),D=R.useRef(w),N=R.useRef(S),H=R.useRef(!1);nZ(()=>{let F=eZ.init();return F.then(j=>(k.current=j)&&I(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>A.current?L():F.cancel()}),Ns(()=>{if(A.current&&k.current){let F=A.current.getOriginalEditor(),j=ag(k.current,e||"",r||n||"text",o||"");j!==F.getModel()&&F.setModel(j)}},[o],b),Ns(()=>{if(A.current&&k.current){let F=A.current.getModifiedEditor(),j=ag(k.current,t||"",i||n||"text",s||"");j!==F.getModel()&&F.setModel(j)}},[s],b),Ns(()=>{let F=A.current.getModifiedEditor();F.getOption(k.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ns(()=>{var F,j;(j=(F=A.current)==null?void 0:F.getModel())==null||j.original.setValue(e||"")},[e],b),Ns(()=>{let{original:F,modified:j}=A.current.getModel();k.current.editor.setModelLanguage(F,r||n||"text"),k.current.editor.setModelLanguage(j,i||n||"text")},[n,r,i],b),Ns(()=>{var F;(F=k.current)==null||F.editor.setTheme(u)},[u],b),Ns(()=>{var F;(F=A.current)==null||F.updateOptions(h)},[h],b);let G=R.useCallback(()=>{var V;if(!k.current)return;N.current(k.current);let F=ag(k.current,e||"",r||n||"text",o||""),j=ag(k.current,t||"",i||n||"text",s||"");(V=A.current)==null||V.setModel({original:F,modified:j})},[n,t,i,e,r,o,s]),z=R.useCallback(()=>{var F;!H.current&&O.current&&(A.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...h}),G(),(F=k.current)==null||F.editor.setTheme(u),x(!0),H.current=!0)},[h,u,G]);R.useEffect(()=>{b&&D.current(A.current,k.current)},[b]),R.useEffect(()=>{!E&&!b&&z()},[E,b,z]);function L(){var j,V,W,K;let F=(j=A.current)==null?void 0:j.getModel();a||((V=F==null?void 0:F.original)==null||V.dispose()),c||((W=F==null?void 0:F.modified)==null||W.dispose()),(K=A.current)==null||K.dispose()}return de.createElement(tZ,{width:g,height:p,isEditorReady:b,loading:f,_ref:O,className:v,wrapperProps:y})}var jEe=zEe;R.memo(jEe);function UEe(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var HEe=UEe,W_=new Map;function WEe({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:a,loading:c="Loading...",options:u={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:g="100%",height:v="100%",className:y,wrapperProps:S={},beforeMount:w=zx,onMount:b=zx,onChange:x,onValidate:E=zx}){let[I,A]=R.useState(!1),[k,O]=R.useState(!0),D=R.useRef(null),N=R.useRef(null),H=R.useRef(null),G=R.useRef(b),z=R.useRef(w),L=R.useRef(),F=R.useRef(r),j=HEe(o),V=R.useRef(!1),W=R.useRef(!1);nZ(()=>{let Q=eZ.init();return Q.then(ie=>(D.current=ie)&&O(!1)).catch(ie=>(ie==null?void 0:ie.type)!=="cancelation"&&console.error("Monaco initialization: error:",ie)),()=>N.current?X():Q.cancel()}),Ns(()=>{var ie,ce,ue,se;let Q=ag(D.current,e||r||"",t||i||"",o||n||"");Q!==((ie=N.current)==null?void 0:ie.getModel())&&(h&&W_.set(j,(ce=N.current)==null?void 0:ce.saveViewState()),(ue=N.current)==null||ue.setModel(Q),h&&((se=N.current)==null||se.restoreViewState(W_.get(o))))},[o],I),Ns(()=>{var Q;(Q=N.current)==null||Q.updateOptions(u)},[u],I),Ns(()=>{!N.current||r===void 0||(N.current.getOption(D.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(W.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),W.current=!1))},[r],I),Ns(()=>{var ie,ce;let Q=(ie=N.current)==null?void 0:ie.getModel();Q&&i&&((ce=D.current)==null||ce.editor.setModelLanguage(Q,i))},[i],I),Ns(()=>{var Q;a!==void 0&&((Q=N.current)==null||Q.revealLine(a))},[a],I),Ns(()=>{var Q;(Q=D.current)==null||Q.editor.setTheme(s)},[s],I);let K=R.useCallback(()=>{var Q;if(!(!H.current||!D.current)&&!V.current){z.current(D.current);let ie=o||n,ce=ag(D.current,r||e||"",t||i||"",ie||"");N.current=(Q=D.current)==null?void 0:Q.editor.create(H.current,{model:ce,automaticLayout:!0,...u},f),h&&N.current.restoreViewState(W_.get(ie)),D.current.editor.setTheme(s),A(!0),V.current=!0}},[e,t,n,r,i,o,u,f,h,s]);R.useEffect(()=>{I&&G.current(N.current,D.current)},[I]),R.useEffect(()=>{!k&&!I&&K()},[k,I,K]),F.current=r,R.useEffect(()=>{var Q,ie;I&&x&&((Q=L.current)==null||Q.dispose(),L.current=(ie=N.current)==null?void 0:ie.onDidChangeModelContent(ce=>{W.current||x(N.current.getValue(),ce)}))},[I,x]),R.useEffect(()=>{if(I){let Q=D.current.editor.onDidChangeMarkers(ie=>{var ue;let ce=(ue=N.current.getModel())==null?void 0:ue.uri;if(ce&&ie.find(se=>se.path===ce.path)){let se=D.current.editor.getModelMarkers({resource:ce});E==null||E(se)}});return()=>{Q==null||Q.dispose()}}return()=>{}},[I,E]);function X(){var Q,ie;(Q=L.current)==null||Q.dispose(),p?h&&W_.set(o,N.current.saveViewState()):(ie=N.current.getModel())==null||ie.dispose(),N.current.dispose()}return de.createElement(tZ,{width:g,height:v,isEditorReady:I,loading:c,_ref:H,className:y,wrapperProps:S})}var GEe=WEe,VEe=R.memo(GEe),iZ=VEe;let ka;typeof window<"u"?ka=window:typeof self<"u"?ka=self:ka=global;let y3=null,b3=null;const bW=20,lN=ka.clearTimeout,xW=ka.setTimeout,cN=ka.cancelAnimationFrame||ka.mozCancelAnimationFrame||ka.webkitCancelAnimationFrame,wW=ka.requestAnimationFrame||ka.mozRequestAnimationFrame||ka.webkitRequestAnimationFrame;cN==null||wW==null?(y3=lN,b3=function(t){return xW(t,bW)}):(y3=function([t,n]){cN(t),lN(n)},b3=function(t){const n=wW(function(){lN(r),t()}),r=xW(function(){cN(n),t()},bW);return[n,r]});function qEe(e){let t,n,r,i,o,s,a;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(w){const b=w.__resizeTriggers__,x=b.firstElementChild,E=b.lastElementChild,I=x.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,I.style.width=x.offsetWidth+1+"px",I.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},o=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},a=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&y3(this.__resizeRAF__),this.__resizeRAF__=b3(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(I){I.call(b,w)}))})};let p=!1,g="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(c)p.attachEvent("onresize",g);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=ka.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),u(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const S=v.createElement("div");S.className="expand-trigger",S.appendChild(v.createElement("div"));const w=v.createElement("div");w.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(w),p.appendChild(p.__resizeTriggers__),s(p),p.addEventListener("scroll",a,!0),r&&(p.__resizeTriggers__.__animationListener__=function(x){x.animationName===n&&s(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(c)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",a,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class Zk extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var o,s,a,c;const u=window.getComputedStyle(this._parentNode)||{},f=parseFloat((o=u.paddingLeft)!==null&&o!==void 0?o:"0"),h=parseFloat((s=u.paddingRight)!==null&&s!==void 0?s:"0"),p=parseFloat((a=u.paddingTop)!==null&&a!==void 0?a:"0"),g=parseFloat((c=u.paddingBottom)!==null&&c!==void 0?c:"0"),v=this._parentNode.getBoundingClientRect(),y=v.height-p-g,S=v.width-f-h,w=this._parentNode.offsetHeight-p-g,b=this._parentNode.offsetWidth-f-h;(!n&&(this.state.height!==w||this.state.scaledHeight!==y)||!r&&(this.state.width!==b||this.state.scaledWidth!==S))&&(this.setState({height:w,width:b,scaledHeight:y,scaledWidth:S}),typeof i=="function"&&i({height:w,scaledHeight:y,scaledWidth:S,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=qEe(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,nonce:s,onResize:a,style:c={},tagName:u="div",...f}=this.props,{height:h,scaledHeight:p,scaledWidth:g,width:v}=this.state,y={overflow:"visible"},S={};let w=!1;return i||(h===0&&(w=!0),y.height=0,S.height=h,S.scaledHeight=p),o||(v===0&&(w=!0),y.width=0,S.width=v,S.scaledWidth=g),R.createElement(u,{ref:this._setRef,style:{...y,...c},...f},!w&&t(S))}}function XEe({returnType:e,params:t}){return`@type {(${te.join(te.map(t,n=>`${n.name}: ${n.type}`),", ")}) => ${e}}`}function YEe(e){const[t,n,r]=["/**"," * "," */"],i=te.map(te.chunk(te.split(e.description," "),9),o=>te.join(o," "));return te.join([t,...te.map(i,o=>`${n}${o}`),`${n}${XEe(e)}`,r],` -`)}function KEe({name:e,params:t,defaultReturnValue:n}){return te.join([`function ${e}(${te.join(te.map(t,"name"),", ")}) {`,` return ${JSON.stringify(n)};`,"}"],` -`)}function QEe(e){return te.join(te.map(e,t=>te.join([YEe(t),KEe(t)],` + `},wW=yEe(_Ee)(QJ),SEe={config:xEe},EEe=function(){for(var t=arguments.length,n=new Array(t),r=0;r{r.current=!1}:e,t)}var Ns=HEe;function Ux(){}function lg(e,t,n,r){return WEe(e,r)||GEe(e,t,n,r)}function WEe(e,t){return e.editor.getModel(iZ(e,t))}function GEe(e,t,n,r){return e.editor.createModel(t,n,r?iZ(e,r):void 0)}function iZ(e,t){return e.Uri.parse(t)}function VEe({original:e,modified:t,language:n,originalLanguage:r,modifiedLanguage:i,originalModelPath:o,modifiedModelPath:s,keepCurrentOriginalModel:a=!1,keepCurrentModifiedModel:c=!1,theme:u="light",loading:f="Loading...",options:h={},height:p="100%",width:g="100%",className:v,wrapperProps:y={},beforeMount:S=Ux,onMount:w=Ux}){let[b,x]=R.useState(!1),[E,I]=R.useState(!0),A=R.useRef(null),k=R.useRef(null),O=R.useRef(null),L=R.useRef(w),N=R.useRef(S),H=R.useRef(!1);rZ(()=>{let F=tZ.init();return F.then(j=>(k.current=j)&&I(!1)).catch(j=>(j==null?void 0:j.type)!=="cancelation"&&console.error("Monaco initialization: error:",j)),()=>A.current?D():F.cancel()}),Ns(()=>{if(A.current&&k.current){let F=A.current.getOriginalEditor(),j=lg(k.current,e||"",r||n||"text",o||"");j!==F.getModel()&&F.setModel(j)}},[o],b),Ns(()=>{if(A.current&&k.current){let F=A.current.getModifiedEditor(),j=lg(k.current,t||"",i||n||"text",s||"");j!==F.getModel()&&F.setModel(j)}},[s],b),Ns(()=>{let F=A.current.getModifiedEditor();F.getOption(k.current.editor.EditorOption.readOnly)?F.setValue(t||""):t!==F.getValue()&&(F.executeEdits("",[{range:F.getModel().getFullModelRange(),text:t||"",forceMoveMarkers:!0}]),F.pushUndoStop())},[t],b),Ns(()=>{var F,j;(j=(F=A.current)==null?void 0:F.getModel())==null||j.original.setValue(e||"")},[e],b),Ns(()=>{let{original:F,modified:j}=A.current.getModel();k.current.editor.setModelLanguage(F,r||n||"text"),k.current.editor.setModelLanguage(j,i||n||"text")},[n,r,i],b),Ns(()=>{var F;(F=k.current)==null||F.editor.setTheme(u)},[u],b),Ns(()=>{var F;(F=A.current)==null||F.updateOptions(h)},[h],b);let G=R.useCallback(()=>{var V;if(!k.current)return;N.current(k.current);let F=lg(k.current,e||"",r||n||"text",o||""),j=lg(k.current,t||"",i||n||"text",s||"");(V=A.current)==null||V.setModel({original:F,modified:j})},[n,t,i,e,r,o,s]),z=R.useCallback(()=>{var F;!H.current&&O.current&&(A.current=k.current.editor.createDiffEditor(O.current,{automaticLayout:!0,...h}),G(),(F=k.current)==null||F.editor.setTheme(u),x(!0),H.current=!0)},[h,u,G]);R.useEffect(()=>{b&&L.current(A.current,k.current)},[b]),R.useEffect(()=>{!E&&!b&&z()},[E,b,z]);function D(){var j,V,W,K;let F=(j=A.current)==null?void 0:j.getModel();a||((V=F==null?void 0:F.original)==null||V.dispose()),c||((W=F==null?void 0:F.modified)==null||W.dispose()),(K=A.current)==null||K.dispose()}return de.createElement(nZ,{width:g,height:p,isEditorReady:b,loading:f,_ref:O,className:v,wrapperProps:y})}var qEe=VEe;R.memo(qEe);function XEe(e){let t=R.useRef();return R.useEffect(()=>{t.current=e},[e]),t.current}var YEe=XEe,G_=new Map;function KEe({defaultValue:e,defaultLanguage:t,defaultPath:n,value:r,language:i,path:o,theme:s="light",line:a,loading:c="Loading...",options:u={},overrideServices:f={},saveViewState:h=!0,keepCurrentModel:p=!1,width:g="100%",height:v="100%",className:y,wrapperProps:S={},beforeMount:w=Ux,onMount:b=Ux,onChange:x,onValidate:E=Ux}){let[I,A]=R.useState(!1),[k,O]=R.useState(!0),L=R.useRef(null),N=R.useRef(null),H=R.useRef(null),G=R.useRef(b),z=R.useRef(w),D=R.useRef(),F=R.useRef(r),j=YEe(o),V=R.useRef(!1),W=R.useRef(!1);rZ(()=>{let Q=tZ.init();return Q.then(ie=>(L.current=ie)&&O(!1)).catch(ie=>(ie==null?void 0:ie.type)!=="cancelation"&&console.error("Monaco initialization: error:",ie)),()=>N.current?X():Q.cancel()}),Ns(()=>{var ie,ce,ue,se;let Q=lg(L.current,e||r||"",t||i||"",o||n||"");Q!==((ie=N.current)==null?void 0:ie.getModel())&&(h&&G_.set(j,(ce=N.current)==null?void 0:ce.saveViewState()),(ue=N.current)==null||ue.setModel(Q),h&&((se=N.current)==null||se.restoreViewState(G_.get(o))))},[o],I),Ns(()=>{var Q;(Q=N.current)==null||Q.updateOptions(u)},[u],I),Ns(()=>{!N.current||r===void 0||(N.current.getOption(L.current.editor.EditorOption.readOnly)?N.current.setValue(r):r!==N.current.getValue()&&(W.current=!0,N.current.executeEdits("",[{range:N.current.getModel().getFullModelRange(),text:r,forceMoveMarkers:!0}]),N.current.pushUndoStop(),W.current=!1))},[r],I),Ns(()=>{var ie,ce;let Q=(ie=N.current)==null?void 0:ie.getModel();Q&&i&&((ce=L.current)==null||ce.editor.setModelLanguage(Q,i))},[i],I),Ns(()=>{var Q;a!==void 0&&((Q=N.current)==null||Q.revealLine(a))},[a],I),Ns(()=>{var Q;(Q=L.current)==null||Q.editor.setTheme(s)},[s],I);let K=R.useCallback(()=>{var Q;if(!(!H.current||!L.current)&&!V.current){z.current(L.current);let ie=o||n,ce=lg(L.current,r||e||"",t||i||"",ie||"");N.current=(Q=L.current)==null?void 0:Q.editor.create(H.current,{model:ce,automaticLayout:!0,...u},f),h&&N.current.restoreViewState(G_.get(ie)),L.current.editor.setTheme(s),A(!0),V.current=!0}},[e,t,n,r,i,o,u,f,h,s]);R.useEffect(()=>{I&&G.current(N.current,L.current)},[I]),R.useEffect(()=>{!k&&!I&&K()},[k,I,K]),F.current=r,R.useEffect(()=>{var Q,ie;I&&x&&((Q=D.current)==null||Q.dispose(),D.current=(ie=N.current)==null?void 0:ie.onDidChangeModelContent(ce=>{W.current||x(N.current.getValue(),ce)}))},[I,x]),R.useEffect(()=>{if(I){let Q=L.current.editor.onDidChangeMarkers(ie=>{var ue;let ce=(ue=N.current.getModel())==null?void 0:ue.uri;if(ce&&ie.find(se=>se.path===ce.path)){let se=L.current.editor.getModelMarkers({resource:ce});E==null||E(se)}});return()=>{Q==null||Q.dispose()}}return()=>{}},[I,E]);function X(){var Q,ie;(Q=D.current)==null||Q.dispose(),p?h&&G_.set(o,N.current.saveViewState()):(ie=N.current.getModel())==null||ie.dispose(),N.current.dispose()}return de.createElement(nZ,{width:g,height:v,isEditorReady:I,loading:c,_ref:H,className:y,wrapperProps:S})}var QEe=KEe,JEe=R.memo(QEe),oZ=JEe;let Aa;typeof window<"u"?Aa=window:typeof self<"u"?Aa=self:Aa=global;let w3=null,_3=null;const _W=20,uN=Aa.clearTimeout,SW=Aa.setTimeout,dN=Aa.cancelAnimationFrame||Aa.mozCancelAnimationFrame||Aa.webkitCancelAnimationFrame,EW=Aa.requestAnimationFrame||Aa.mozRequestAnimationFrame||Aa.webkitRequestAnimationFrame;dN==null||EW==null?(w3=uN,_3=function(t){return SW(t,_W)}):(w3=function([t,n]){dN(t),uN(n)},_3=function(t){const n=EW(function(){uN(r),t()}),r=SW(function(){dN(n),t()},_W);return[n,r]});function ZEe(e){let t,n,r,i,o,s,a;const c=typeof document<"u"&&document.attachEvent;if(!c){s=function(w){const b=w.__resizeTriggers__,x=b.firstElementChild,E=b.lastElementChild,I=x.firstElementChild;E.scrollLeft=E.scrollWidth,E.scrollTop=E.scrollHeight,I.style.width=x.offsetWidth+1+"px",I.style.height=x.offsetHeight+1+"px",x.scrollLeft=x.scrollWidth,x.scrollTop=x.scrollHeight},o=function(w){return w.offsetWidth!==w.__resizeLast__.width||w.offsetHeight!==w.__resizeLast__.height},a=function(w){if(w.target.className&&typeof w.target.className.indexOf=="function"&&w.target.className.indexOf("contract-trigger")<0&&w.target.className.indexOf("expand-trigger")<0)return;const b=this;s(this),this.__resizeRAF__&&w3(this.__resizeRAF__),this.__resizeRAF__=_3(function(){o(b)&&(b.__resizeLast__.width=b.offsetWidth,b.__resizeLast__.height=b.offsetHeight,b.__resizeListeners__.forEach(function(I){I.call(b,w)}))})};let p=!1,g="";r="animationstart";const v="Webkit Moz O ms".split(" ");let y="webkitAnimationStart animationstart oAnimationStart MSAnimationStart".split(" "),S="";{const w=document.createElement("fakeelement");if(w.style.animationName!==void 0&&(p=!0),p===!1){for(let b=0;b div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .resize-triggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',v=p.head||p.getElementsByTagName("head")[0],y=p.createElement("style");y.id="detectElementResize",y.type="text/css",e!=null&&y.setAttribute("nonce",e),y.styleSheet?y.styleSheet.cssText=g:y.appendChild(p.createTextNode(g)),v.appendChild(y)}};return{addResizeListener:function(p,g){if(c)p.attachEvent("onresize",g);else{if(!p.__resizeTriggers__){const v=p.ownerDocument,y=Aa.getComputedStyle(p);y&&y.position==="static"&&(p.style.position="relative"),u(v),p.__resizeLast__={},p.__resizeListeners__=[],(p.__resizeTriggers__=v.createElement("div")).className="resize-triggers";const S=v.createElement("div");S.className="expand-trigger",S.appendChild(v.createElement("div"));const w=v.createElement("div");w.className="contract-trigger",p.__resizeTriggers__.appendChild(S),p.__resizeTriggers__.appendChild(w),p.appendChild(p.__resizeTriggers__),s(p),p.addEventListener("scroll",a,!0),r&&(p.__resizeTriggers__.__animationListener__=function(x){x.animationName===n&&s(p)},p.__resizeTriggers__.addEventListener(r,p.__resizeTriggers__.__animationListener__))}p.__resizeListeners__.push(g)}},removeResizeListener:function(p,g){if(c)p.detachEvent("onresize",g);else if(p.__resizeListeners__.splice(p.__resizeListeners__.indexOf(g),1),!p.__resizeListeners__.length){p.removeEventListener("scroll",a,!0),p.__resizeTriggers__.__animationListener__&&(p.__resizeTriggers__.removeEventListener(r,p.__resizeTriggers__.__animationListener__),p.__resizeTriggers__.__animationListener__=null);try{p.__resizeTriggers__=!p.removeChild(p.__resizeTriggers__)}catch{}}}}}class tA extends R.Component{constructor(...t){super(...t),this.state={height:this.props.defaultHeight||0,scaledHeight:this.props.defaultHeight||0,scaledWidth:this.props.defaultWidth||0,width:this.props.defaultWidth||0},this._autoSizer=null,this._detectElementResize=null,this._parentNode=null,this._resizeObserver=null,this._timeoutId=null,this._onResize=()=>{this._timeoutId=null;const{disableHeight:n,disableWidth:r,onResize:i}=this.props;if(this._parentNode){var o,s,a,c;const u=window.getComputedStyle(this._parentNode)||{},f=parseFloat((o=u.paddingLeft)!==null&&o!==void 0?o:"0"),h=parseFloat((s=u.paddingRight)!==null&&s!==void 0?s:"0"),p=parseFloat((a=u.paddingTop)!==null&&a!==void 0?a:"0"),g=parseFloat((c=u.paddingBottom)!==null&&c!==void 0?c:"0"),v=this._parentNode.getBoundingClientRect(),y=v.height-p-g,S=v.width-f-h,w=this._parentNode.offsetHeight-p-g,b=this._parentNode.offsetWidth-f-h;(!n&&(this.state.height!==w||this.state.scaledHeight!==y)||!r&&(this.state.width!==b||this.state.scaledWidth!==S))&&(this.setState({height:w,width:b,scaledHeight:y,scaledWidth:S}),typeof i=="function"&&i({height:w,scaledHeight:y,scaledWidth:S,width:b}))}},this._setRef=n=>{this._autoSizer=n}}componentDidMount(){const{nonce:t}=this.props;this._autoSizer&&this._autoSizer.parentNode&&this._autoSizer.parentNode.ownerDocument&&this._autoSizer.parentNode.ownerDocument.defaultView&&this._autoSizer.parentNode instanceof this._autoSizer.parentNode.ownerDocument.defaultView.HTMLElement&&(this._parentNode=this._autoSizer.parentNode,this._parentNode!=null&&(typeof ResizeObserver<"u"?(this._resizeObserver=new ResizeObserver(()=>{this._timeoutId=setTimeout(this._onResize,0)}),this._resizeObserver.observe(this._parentNode)):(this._detectElementResize=ZEe(t),this._detectElementResize.addResizeListener(this._parentNode,this._onResize)),this._onResize()))}componentWillUnmount(){this._parentNode&&(this._detectElementResize&&this._detectElementResize.removeResizeListener(this._parentNode,this._onResize),this._timeoutId!==null&&clearTimeout(this._timeoutId),this._resizeObserver&&(this._resizeObserver.observe(this._parentNode),this._resizeObserver.disconnect()))}render(){const{children:t,defaultHeight:n,defaultWidth:r,disableHeight:i=!1,disableWidth:o=!1,nonce:s,onResize:a,style:c={},tagName:u="div",...f}=this.props,{height:h,scaledHeight:p,scaledWidth:g,width:v}=this.state,y={overflow:"visible"},S={};let w=!1;return i||(h===0&&(w=!0),y.height=0,S.height=h,S.scaledHeight=p),o||(v===0&&(w=!0),y.width=0,S.width=v,S.scaledWidth=g),R.createElement(u,{ref:this._setRef,style:{...y,...c},...f},!w&&t(S))}}function eCe({returnType:e,params:t}){return`@type {(${te.join(te.map(t,n=>`${n.name}: ${n.type}`),", ")}) => ${e}}`}function tCe(e){const[t,n,r]=["/**"," * "," */"],i=te.map(te.chunk(te.split(e.description," "),9),o=>te.join(o," "));return te.join([t,...te.map(i,o=>`${n}${o}`),`${n}${eCe(e)}`,r],` +`)}function nCe({name:e,params:t,defaultReturnValue:n}){return te.join([`function ${e}(${te.join(te.map(t,"name"),", ")}) {`,` return ${JSON.stringify(n)};`,"}"],` +`)}function rCe(e){return te.join(te.map(e,t=>te.join([tCe(t),nCe(t)],` `)),` -`)}const JEe={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},ZEe={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},eCe={shouldRender:ZEe,shouldBreak:JEe},[eA,tCe]=mc({code:QEe(te.values(eCe)),busy:{}}),nCe=2500;function rCe(){const[{code:e},t]=eA(),n=Dn();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(Zk,{children:({width:r,height:i})=>C.jsx(iZ,{theme:n.palette.mode==="dark"?"vs-dark":"light",width:r,loading:C.jsx(Sw,{variant:"indeterminate"}),height:i,language:"javascript",defaultValue:e,onChange:te.debounce(o=>t(()=>({code:o})),nCe),options:{minimap:{enabled:!1}}})})})}function iCe(e){const t=Dn();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(Zk,{children:({width:n,height:r})=>C.jsx(iZ,{theme:t.palette.mode==="dark"?"vs-dark":"light",width:n,loading:C.jsx(Sw,{variant:"indeterminate"}),height:r,language:"javascript",...e,options:{minimap:{enabled:!1},...e.options}})})})}function P1(e){"@babel/helpers - typeof";return P1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P1(e)}function oCe(e,t){if(P1(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(P1(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sCe(e){var t=oCe(e,"string");return P1(t)==="symbol"?t:String(t)}function aCe(e,t,n){return t=sCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _W(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 SW(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Vo(1));return n(oZ)(e,t)}if(typeof e!="function")throw new Error(Vo(2));var i=e,o=t,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function f(){if(c)throw new Error(Vo(3));return o}function h(y){if(typeof y!="function")throw new Error(Vo(4));if(c)throw new Error(Vo(5));var S=!0;return u(),a.push(y),function(){if(S){if(c)throw new Error(Vo(6));S=!1,u();var b=a.indexOf(y);a.splice(b,1),s=null}}}function p(y){if(!lCe(y))throw new Error(Vo(7));if(typeof y.type>"u")throw new Error(Vo(8));if(c)throw new Error(Vo(9));try{c=!0,o=i(o,y)}finally{c=!1}for(var S=s=a,w=0;w=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function UCe(e,t){return e===t}function HCe(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?SCe:n,i=t.mapStateToPropsFactories,o=i===void 0?PCe:i,s=t.mapDispatchToPropsFactories,a=s===void 0?ACe:s,c=t.mergePropsFactories,u=c===void 0?NCe:c,f=t.selectorFactory,h=f===void 0?zCe:f;return function(g,v,y,S){S===void 0&&(S={});var w=S,b=w.pure,x=b===void 0?!0:b,E=w.areStatesEqual,I=E===void 0?UCe:E,A=w.areOwnPropsEqual,k=A===void 0?dN:A,O=w.areStatePropsEqual,D=O===void 0?dN:O,N=w.areMergedPropsEqual,H=N===void 0?dN:N,G=Ne(w,jCe),z=fN(g,o,"mapStateToProps"),L=fN(v,a,"mapDispatchToProps"),F=fN(y,u,"mergeProps");return r(h,$({methodName:"connect",getDisplayName:function(V){return"Connect("+V+")"},shouldHandleStateChanges:!!g,initMapStateToProps:z,initMapDispatchToProps:L,initMergeProps:F,pure:x,areStatesEqual:I,areOwnPropsEqual:k,areStatePropsEqual:D,areMergedPropsEqual:H},G))}}const fZ=HCe();dCe(_v.unstable_batchedUpdates);function WCe(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(a){r.callbacks=a},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=ba(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof OC){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),nTe=` +`)}const iCe={name:"shouldBreak",description:"Define in what situations the debugger should break, in addition to the conditions defined in the standard options.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!1,returnType:"boolean"},oCe={name:"shouldRender",description:"Define which objects the renderer should display.",params:[{name:"step",type:"number"},{name:"event",type:"any"},{name:"events",type:"any"}],defaultReturnValue:!0,returnType:"boolean"},sCe={shouldRender:oCe,shouldBreak:iCe},[nA,aCe]=vc({code:rCe(te.values(sCe)),busy:{}}),lCe=2500;function cCe(){const[{code:e},t]=nA(),n=Ln();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(tA,{children:({width:r,height:i})=>C.jsx(oZ,{theme:n.palette.mode==="dark"?"vs-dark":"light",width:r,loading:C.jsx(Ew,{variant:"indeterminate"}),height:i,language:"javascript",defaultValue:e,onChange:te.debounce(o=>t(()=>({code:o})),lCe),options:{minimap:{enabled:!1}}})})})}function uCe(e){const t=Ln();return C.jsx(En,{height:"100%",overflow:"hidden",children:C.jsx(tA,{children:({width:n,height:r})=>C.jsx(oZ,{theme:t.palette.mode==="dark"?"vs-dark":"light",width:n,loading:C.jsx(Ew,{variant:"indeterminate"}),height:r,language:"javascript",...e,options:{minimap:{enabled:!1},...e.options}})})})}function M1(e){"@babel/helpers - typeof";return M1=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},M1(e)}function dCe(e,t){if(M1(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(M1(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function fCe(e){var t=dCe(e,"string");return M1(t)==="symbol"?t:String(t)}function hCe(e,t,n){return t=fCe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function CW(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 TW(e){for(var t=1;t"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Vo(1));return n(sZ)(e,t)}if(typeof e!="function")throw new Error(Vo(2));var i=e,o=t,s=[],a=s,c=!1;function u(){a===s&&(a=s.slice())}function f(){if(c)throw new Error(Vo(3));return o}function h(y){if(typeof y!="function")throw new Error(Vo(4));if(c)throw new Error(Vo(5));var S=!0;return u(),a.push(y),function(){if(S){if(c)throw new Error(Vo(6));S=!1,u();var b=a.indexOf(y);a.splice(b,1),s=null}}}function p(y){if(!pCe(y))throw new Error(Vo(7));if(typeof y.type>"u")throw new Error(Vo(8));if(c)throw new Error(Vo(9));try{c=!0,o=i(o,y)}finally{c=!1}for(var S=s=a,w=0;w=0;r--){var i=t[r](e);if(i)return i}return function(o,s){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+s.wrappedComponentName+".")}}function XCe(e,t){return e===t}function YCe(e){var t=e===void 0?{}:e,n=t.connectHOC,r=n===void 0?ICe:n,i=t.mapStateToPropsFactories,o=i===void 0?BCe:i,s=t.mapDispatchToPropsFactories,a=s===void 0?DCe:s,c=t.mergePropsFactories,u=c===void 0?UCe:c,f=t.selectorFactory,h=f===void 0?VCe:f;return function(g,v,y,S){S===void 0&&(S={});var w=S,b=w.pure,x=b===void 0?!0:b,E=w.areStatesEqual,I=E===void 0?XCe:E,A=w.areOwnPropsEqual,k=A===void 0?hN:A,O=w.areStatePropsEqual,L=O===void 0?hN:O,N=w.areMergedPropsEqual,H=N===void 0?hN:N,G=Ne(w,qCe),z=pN(g,o,"mapStateToProps"),D=pN(v,a,"mapDispatchToProps"),F=pN(y,u,"mergeProps");return r(h,$({methodName:"connect",getDisplayName:function(V){return"Connect("+V+")"},shouldHandleStateChanges:!!g,initMapStateToProps:z,initMapDispatchToProps:D,initMergeProps:F,pure:x,areStatesEqual:I,areOwnPropsEqual:k,areStatePropsEqual:L,areMergedPropsEqual:H},G))}}const hZ=YCe();vCe(Ev.unstable_batchedUpdates);function KCe(e,t){if(e.length!==t.length)return!1;for(var n=0;n");return r.callbacks},r.setCallbacks=function(a){r.callbacks=a},r}var n=t.prototype;return n.componentDidMount=function(){this.unbind=xa(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(i){if(i instanceof MC){this.setState({});return}throw i},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(de.Component),lTe=` Press space bar to start a drag. When dragging you can use the arrow keys to move the item around and escape to cancel. Some screen readers may require you to be in focus mode or to use your pass through key -`,MC=function(t){return t+1},rTe=function(t){return` - You have lifted an item in position `+MC(t.source.index)+` -`},vZ=function(t,n){var r=t.droppableId===n.droppableId,i=MC(t.index),o=MC(n.index);return r?` +`,DC=function(t){return t+1},cTe=function(t){return` + You have lifted an item in position `+DC(t.source.index)+` +`},yZ=function(t,n){var r=t.droppableId===n.droppableId,i=DC(t.index),o=DC(n.index);return r?` You have moved the item from position `+i+` to position `+o+` `:` @@ -402,38 +402,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho in list `+t.droppableId+` to list `+n.droppableId+` in position `+o+` - `},yZ=function(t,n,r){var i=n.droppableId===r.droppableId;return i?` + `},bZ=function(t,n,r){var i=n.droppableId===r.droppableId;return i?` The item `+t+` has been combined with `+r.draggableId:` The item `+t+` in list `+n.droppableId+` has been combined with `+r.draggableId+` in list `+r.droppableId+` - `},iTe=function(t){var n=t.destination;if(n)return vZ(t.source,n);var r=t.combine;return r?yZ(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},LW=function(t){return` + `},uTe=function(t){var n=t.destination;if(n)return yZ(t.source,n);var r=t.combine;return r?bZ(t.draggableId,t.source,r):"You are over an area that cannot be dropped on"},BW=function(t){return` The item has returned to its starting position - of `+MC(t.index)+` -`},oTe=function(t){if(t.reason==="CANCEL")return` + of `+DC(t.index)+` +`},dTe=function(t){if(t.reason==="CANCEL")return` Movement cancelled. - `+LW(t.source)+` + `+BW(t.source)+` `;var n=t.destination,r=t.combine;return n?` You have dropped the item. - `+vZ(t.source,n)+` + `+yZ(t.source,n)+` `:r?` You have dropped the item. - `+yZ(t.draggableId,t.source,r)+` + `+bZ(t.draggableId,t.source,r)+` `:` The item has been dropped while not over a drop area. - `+LW(t.source)+` - `},pE={dragHandleUsageInstructions:nTe,onDragStart:rTe,onDragUpdate:iTe,onDragEnd:oTe},Mi={x:0,y:0},Zi=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},js=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Xd=function(t,n){return t.x===n.x&&t.y===n.y},Tv=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Gp=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},M1=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},DW=function(t,n){return Math.min.apply(Math,n.map(function(r){return M1(t,r)}))},bZ=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},sTe=function(e,t){var n=vl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},zw=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},NW=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},aTe={top:0,right:0,bottom:0,left:0},lTe=function(t,n){return n?zw(t,n.scroll.diff.displacement):t},cTe=function(t,n,r){if(r&&r.increasedBy){var i;return $({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},uTe=function(t,n){return n&&n.shouldClipSubject?sTe(n.pageMarginBox,t):vl(t)},Zg=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=lTe(t.marginBox,i),s=cTe(o,r,n),a=uTe(s,i);return{page:t,withPlaceholder:n,active:a}},lj=function(e,t){e.frame||We(!1);var n=e.frame,r=js(t,n.scroll.initial),i=Tv(r),o=$({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=Zg({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),a=$({},e,{frame:o,subject:s});return a};function LC(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function cj(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,u=r.lefte.right,f=c&&u;if(f)return!0;var h=c&&s||u&&o;return h}},pTe=function(e){var t=Aa(e.top,e.bottom),n=Aa(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},dj={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},CZ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},mTe=function(e){return function(t){var n=Aa(t.top,t.bottom),r=Aa(t.left,t.right);return function(i){return e===dj?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},gTe=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:Mi;return zw(t,r)},vTe=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},yTe=function(t,n,r){return r(n)(t)},fj=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,a=o?gTe(n,r):n;return vTe(a,r,s)&&yTe(a,i,s)},bTe=function(t){return fj($({},t,{isVisibleThroughFrameFn:EZ}))},TZ=function(t){return fj($({},t,{isVisibleThroughFrameFn:pTe}))},xTe=function(t){return fj($({},t,{isVisibleThroughFrameFn:mTe(t.destination.axis)}))},wTe=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function _Te(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return vl(sj(n,r))}function D1(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(c,u){var f=_Te(u,r),h=u.descriptor.id;c.all.push(h);var p=bTe({target:f,destination:n,viewport:i,withDroppableDisplacement:!0});if(!p)return c.invisible[u.descriptor.id]=!0,c;var g=wTe(h,s,o),v={draggableId:h,shouldAnimate:g};return c.visible[h]=v,c},{all:[],visible:{},invisible:{}})}function STe(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function BW(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=STe(t,{inHomeList:n});return{displaced:L1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function DC(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,a=e.index,c=e.forceShouldAnimate,u=Av(t,r);if(a==null)return BW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var f=xf(n,function(y){return y.descriptor.index===a});if(!f)return BW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var h=rA(t,n),p=n.indexOf(f),g=h.slice(p),v=D1({afterDragging:g,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:c});return{displaced:v,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function rf(e,t){return!!t.effected[e]}var ETe=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,a=r[s],c=a.descriptor.index,u=rf(s,o);return u?t?c:c-1:t?c+1:c},CTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,a=r[0].descriptor.index,c=r[r.length-1].descriptor.index,u=n?c:c+1;return su?null:s},TTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,a=e.previousImpact,c=e.viewport,u=e.afterCritical,f=a.at;if(f||We(!1),f.type==="REORDER"){var h=CTe({isMovingForward:t,isInHomeList:n,location:f.destination,insideDestination:s});return h==null?null:DC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:h})}var p=ETe({isMovingForward:t,destination:o,displaced:a.displaced,draggables:i,combine:f.combine,afterCritical:u});return p==null?null:DC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:p})},kTe=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return rf(r,n)?o?Mi:Tv(i.point):o?i.point:Mi},ATe=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=nA(n);i||We(!1);var o=i.draggableId,s=r[o].page.borderBox.center,a=kTe({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Zi(s,a)},kZ=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},ITe=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},hj=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},$W=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Gp(n.line,r.marginBox[n.end]+kZ(n,i),hj(n,r.marginBox,i))},FW=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Gp(n.line,r.marginBox[n.start]-ITe(n,i),hj(n,r.marginBox,i))},RTe=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return Gp(n.line,r.contentBox[n.start]+kZ(n,i),hj(n,r.contentBox,i))},PTe=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=kv(i.descriptor.id,r),a=n.page,c=i.axis;if(!s.length)return RTe({axis:c,moveInto:i.page,isMoving:a});var u=t.displaced,f=t.displacedBy,h=u.all[0];if(h){var p=r[h];if(rf(h,o))return FW({axis:c,moveRelativeTo:p.page,isMoving:a});var g=RC(p.page,f.point);return FW({axis:c,moveRelativeTo:g,isMoving:a})}var v=s[s.length-1];if(v.descriptor.id===n.descriptor.id)return a.borderBox.center;if(rf(v.descriptor.id,o)){var y=RC(v.page,Tv(o.displacedBy.point));return $W({axis:c,moveRelativeTo:y,isMoving:a})}return $W({axis:c,moveRelativeTo:v.page,isMoving:a})},x3=function(e,t){var n=e.frame;return n?Zi(t,n.scroll.diff.displacement):t},OTe=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,a=r.page.borderBox.center,c=n.at;return!i||!c?a:c.type==="REORDER"?PTe({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):ATe({impact:n,draggables:o,afterCritical:s})},iA=function(e){var t=OTe(e),n=e.droppable,r=n?x3(n,t):t;return r},AZ=function(e,t){var n=js(t,e.scroll.initial),r=Tv(n),i=vl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function zW(e,t){return e.map(function(n){return t[n]})}function MTe(e,t){for(var n=0;n1?f.sort(function(h,p){return Po(h)[a.start]-Po(p)[a.start]})[0]:u.sort(function(h,p){var g=DW(n,NW(Po(h))),v=DW(n,NW(Po(p)));return g!==v?g-v:Po(h)[a.start]-Po(p)[a.start]})[0]},jW=function(t,n){var r=t.page.borderBox.center;return rf(t.descriptor.id,n)?js(r,n.displacedBy.point):r},$Te=function(t,n){var r=t.page.borderBox;return rf(t.descriptor.id,n)?zw(r,Tv(n.displacedBy.point)):r},FTe=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(a){return TZ({target:$Te(a,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(a,c){var u=M1(t,x3(r,jW(a,o))),f=M1(t,x3(r,jW(c,o)));return ut.left&&e.topt.top}function qTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var a=s.axis,c=Gp(s.axis.line,t.center[a.line],s.page.borderBox.center[a.crossAxisLine]);return{id:s.descriptor.id,distance:M1(i,c)}}).sort(function(s,a){return a.distance-s.distance});return o[0]?o[0].id:null}function XTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=tA(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!VTe(t,s))return!1;if(OZ(s)(t.center))return!0;var a=o.axis,c=s.center[a.crossAxisLine],u=t[a.crossAxisStart],f=t[a.crossAxisEnd],h=Aa(s[a.crossAxisStart],s[a.crossAxisEnd]),p=h(u),g=h(f);return!p&&!g?!0:p?uc});return i.length?i.length===1?i[0].descriptor.id:qTe({pageBorderBox:t,draggable:n,candidates:i}):null}var MZ=function(t,n){return vl(zw(t,n))},YTe=function(e,t){var n=e.frame;return n?MZ(t,n.scroll.diff.value):t};function LZ(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function KTe(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var QTe=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,a=e.afterCritical,c=r.axis,u=jw(r.axis,n.displaceBy),f=u.value,h=t[c.start],p=t[c.end],g=rA(n,i),v=xf(g,function(S){var w=S.descriptor.id,b=S.page.borderBox.center[c.line],x=rf(w,a),E=LZ({displaced:o,id:w});return x?E?p<=b:hw[a.start]+x&&hw[a.start]-u+x&&fw[a.start]+u+x&&hw[a.start]+x&&f=WW)return HZ;var o=i/WW,s=S3+Ake*o,a=r==="CANCEL"?s*Ike:s;return Number(a.toFixed(2))},Pke=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,a=r.droppables,c=Vs(t),u=c?a[c]:null,f=a[n.descriptor.droppableId],h=BZ({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:u||f,viewport:i}),p=js(h,n.client.borderBox.center);return p},Oke=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var a=NZ({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:a,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var c=$({},r,{displaced:L1});return{impact:c,didDropInsideDroppable:!0}},Mke=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(Cke({reason:s}));return}if(o.phase!=="IDLE"){var a=o.phase==="DROP_PENDING"&&o.isWaiting;a&&We(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||We(!1);var c=o.critical,u=o.dimensions,f=u.draggables[o.critical.draggable.id],h=Oke({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=h.impact,g=h.didDropInsideDroppable,v=g?uj(p):null,y=g?nA(p):null,S={index:c.draggable.index,droppableId:c.droppable.id},w={draggableId:f.descriptor.id,type:f.descriptor.type,source:S,reason:s,mode:o.movementMode,destination:v,combine:y},b=Pke({impact:p,draggable:f,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),x={critical:o.critical,afterCritical:o.afterCritical,result:w,impact:p},E=!Xd(o.current.client.offset,b)||!!w.combine;if(!E){n(vj({completed:x}));return}var I=Rke({current:o.current.client.offset,destination:b,reason:s}),A={newHomeClientOffset:b,dropDuration:I,completed:x};n(Eke(A))}}}},WZ=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Lke(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function Dke(e){var t=e.onWindowScroll;function n(){t(WZ())}var r=O1(n),i=Lke(r),o=qd;function s(){return o!==qd}function a(){s()&&We(!1),o=ba(window,[i])}function c(){s()||We(!1),r.cancel(),o(),o=qd}return{start:a,stop:c,isActive:s}}var Nke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Bke=function(e){var t=Dke({onWindowScroll:function(r){e.dispatch(yke({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&Nke(r)&&t.stop(),n(r)}}},$ke=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},Fke=function(){var e=[],t=function(o){var s=cj(e,function(u){return u.timerId===o});s===-1&&We(!1);var a=e.splice(s,1),c=a[0];c.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),a={timerId:s,callback:o};e.push(a)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},zke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},jke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},Uke=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},Mb=function(t,n){n()},G_=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},vN=function(t,n,r,i){if(!t){r(i(n));return}var o=$ke(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},Hke=function(e,t){var n=Fke(),r=null,i=function(p,g){r&&We(!1),Mb("onBeforeCapture",function(){var v=e().onBeforeCapture;if(v){var y={draggableId:p,mode:g};v(y)}})},o=function(p,g){r&&We(!1),Mb("onBeforeDragStart",function(){var v=e().onBeforeDragStart;v&&v(G_(p,g))})},s=function(p,g){r&&We(!1);var v=G_(p,g);r={mode:g,lastCritical:p,lastLocation:v.source,lastCombine:null},n.add(function(){Mb("onDragStart",function(){return vN(e().onDragStart,v,t,pE.onDragStart)})})},a=function(p,g){var v=uj(g),y=nA(g);r||We(!1);var S=!Uke(p,r.lastCritical);S&&(r.lastCritical=p);var w=!zke(r.lastLocation,v);w&&(r.lastLocation=v);var b=!jke(r.lastCombine,y);if(b&&(r.lastCombine=y),!(!S&&!w&&!b)){var x=$({},G_(p,r.mode),{combine:y,destination:v});n.add(function(){Mb("onDragUpdate",function(){return vN(e().onDragUpdate,x,t,pE.onDragUpdate)})})}},c=function(){r||We(!1),n.flush()},u=function(p){r||We(!1),r=null,Mb("onDragEnd",function(){return vN(e().onDragEnd,p,t,pE.onDragEnd)})},f=function(){if(r){var p=$({},G_(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});u(p)}};return{beforeCapture:i,beforeStart:o,start:s,update:a,flush:c,drop:u,abort:f}},Wke=function(e,t){var n=Hke(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var a=o.payload.completed.result;n.flush(),i(o),n.drop(a);return}if(i(o),o.type==="FLUSH"){n.abort();return}var c=r.getState();c.phase==="DRAGGING"&&n.update(c.critical,c.impact)}}}},Gke=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&We(!1),e.dispatch(vj({completed:r.completed}))}}},Vke=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var c=e.getState();c.phase==="DROP_ANIMATING"&&e.dispatch(UZ())}};n=requestAnimationFrame(function(){n=null,t=ba(window,[s])})}}}},qke=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},Xke=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},Yke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Kke=function(e){return function(t){return function(n){return function(r){if(Yke(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&We(!1),e.start(i);return}n(r),e.scroll(t.getState())}}}},Qke=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(jZ({reason:r.reason})))}}}},Jke=sZ,Zke=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return oZ(cke,Jke(cCe(kke(r),qke(t),Tke(t),Mke,Gke,Vke,Qke,Kke(s),Bke,Xke(n),Wke(i,o))))},yN=function(){return{additions:{},removals:{},modified:{}}};function eAe(e){var t=e.registry,n=e.callbacks,r=yN(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var f=r,h=f.additions,p=f.removals,g=f.modified,v=Object.keys(h).map(function(w){return t.draggable.getById(w).getDimension(Mi)}).sort(function(w,b){return w.descriptor.index-b.descriptor.index}),y=Object.keys(g).map(function(w){var b=t.droppable.getById(w),x=b.callbacks.getScrollWhileDragging();return{droppableId:w,scroll:x}}),S={additions:v,removals:Object.keys(p),modified:y};r=yN(),n.publish(S)}))},s=function(f){var h=f.descriptor.id;r.additions[h]=f,r.modified[f.descriptor.droppableId]=!0,r.removals[h]&&delete r.removals[h],o()},a=function(f){var h=f.descriptor;r.removals[h.id]=!0,r.modified[h.droppableId]=!0,r.additions[h.id]&&delete r.additions[h.id],o()},c=function(){i&&(cancelAnimationFrame(i),i=null,r=yN())};return{add:s,remove:a,stop:c}}var GZ=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=js({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},VZ=function(){var e=document.documentElement;return e||We(!1),e},qZ=function(){var e=VZ(),t=GZ({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},tAe=function(){var e=WZ(),t=qZ(),n=e.y,r=e.x,i=VZ(),o=i.clientWidth,s=i.clientHeight,a=r+o,c=n+s,u=vl({top:n,left:r,right:a,bottom:c}),f={frame:u,scroll:{initial:e,current:e,max:t,diff:{value:Mi,displacement:Mi}}};return f},nAe=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=tAe(),o=i.scroll.current,s=t.droppable,a=r.droppable.getAllByType(s.type).map(function(h){return h.callbacks.getDimensionAndWatchScroll(o,n)}),c=r.draggable.getAllByType(t.draggable.type).map(function(h){return h.getDimension(o)}),u={draggables:_Z(c),droppables:wZ(a)},f={dimensions:u,critical:t,viewport:i};return f};function GW(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var rAe=function(e,t){var n=null,r=eAe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,v){e.droppable.exists(g)||We(!1),n&&t.updateDroppableIsEnabled({id:g,isEnabled:v})},o=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:v}))},s=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableScroll({id:g,newScroll:v}))},a=function(g,v){n&&e.droppable.getById(g).callbacks.scroll(v)},c=function(){if(n){r.stop();var g=n.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(v){return v.callbacks.dragStopped()}),n.unsubscribe(),n=null}},u=function(g){n||We(!1);var v=n.critical.draggable;g.type==="ADDITION"&&GW(e,v,g.value)&&r.add(g.value),g.type==="REMOVAL"&&GW(e,v,g.value)&&r.remove(g.value)},f=function(g){n&&We(!1);var v=e.draggable.getById(g.draggableId),y=e.droppable.getById(v.descriptor.droppableId),S={draggable:v.descriptor,droppable:y.descriptor},w=e.subscribe(u);return n={critical:S,unsubscribe:w},nAe({critical:S,registry:e,scrollOptions:g.scrollOptions})},h={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:a,updateDroppableScroll:s,startPublishing:f,stopPublishing:c};return h},XZ=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},iAe=function(e){window.scrollBy(e.x,e.y)},oAe=Oi(function(e){return tA(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),sAe=function(t,n){var r=xf(oAe(n),function(i){return i.frame||We(!1),OZ(i.frame.pageMarginBox)(t)});return r},aAe=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=sAe(t,r);return o},Yd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},lAe=function(e,t){var n=e[t.size]*Yd.startFromPercentage,r=e[t.size]*Yd.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},YZ=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},xj=1,cAe=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Yd.maxPixelScroll;if(e===t.startScrollingFrom)return xj;var n=YZ({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Yd.maxPixelScroll*Yd.ease(r);return Math.ceil(i)},VW=Yd.durationDampening.accelerateAt,qW=Yd.durationDampening.stopDampeningAt,uAe=function(e,t){var n=t,r=qW,i=Date.now(),o=i-n;if(o>=qW)return e;if(ot.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},fAe=bZ(function(e){return e===0?0:e}),KZ=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},a=YW({container:n,distanceToEdges:s,dragStartTime:t,axis:dj,shouldUseTimeDampening:o}),c=YW({container:n,distanceToEdges:s,dragStartTime:t,axis:CZ,shouldUseTimeDampening:o}),u=fAe({x:c,y:a});if(Xd(u,Mi))return null;var f=dAe({container:n,subject:r,proposedScroll:u});return f?Xd(f,Mi)?null:f:null},hAe=bZ(function(e){return e===0?0:e>0?1:-1}),wj=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Zi(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Xd(s,Mi)?null:s}}(),QZ=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=hAe(i),a=wj({max:o,current:r,change:s});return!a||s.x!==0&&a.x===0||s.y!==0&&a.y===0},_j=function(t,n){return QZ({current:t.scroll.current,max:t.scroll.max,change:n})},pAe=function(t,n){if(!_j(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return wj({current:i,max:r,change:n})},Sj=function(t,n){var r=t.frame;return r?QZ({current:r.scroll.current,max:r.scroll.max,change:n}):!1},mAe=function(t,n){var r=t.frame;return!r||!Sj(t,n)?null:wj({current:r.scroll.current,max:r.scroll.max,change:n})},gAe=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=KZ({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&_j(t,s)?s:null},vAe=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var a=KZ({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return a&&Sj(t,a)?a:null},KW=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id],c=a.page.marginBox;if(t.isWindowScrollAllowed){var u=t.viewport,f=gAe({dragStartTime:n,viewport:u,subject:c,center:s,shouldUseTimeDampening:r});if(f){i(f);return}}var h=aAe({center:s,destination:Vs(t.impact),droppables:t.dimensions.droppables});if(h){var p=vAe({dragStartTime:n,droppable:h,subject:c,center:s,shouldUseTimeDampening:r});p&&o(h.descriptor.id,p)}},yAe=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=O1(t),i=O1(n),o=null,s=function(f){o||We(!1);var h=o,p=h.shouldUseTimeDampening,g=h.dragStartTime;KW({state:f,scrollWindow:r,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:p})},a=function(f){o&&We(!1);var h=Date.now(),p=!1,g=function(){p=!0};KW({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),o={dragStartTime:h,shouldUseTimeDampening:p},p&&s(f)},c=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:a,stop:c,scroll:s}},bAe=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(u,f){var h=Zi(u.current.client.selection,f);t({client:h})},o=function(u,f){if(!Sj(u,f))return f;var h=mAe(u,f);if(!h)return n(u.descriptor.id,f),null;var p=js(f,h);n(u.descriptor.id,p);var g=js(f,p);return g},s=function(u,f,h){if(!u||!_j(f,h))return h;var p=pAe(f,h);if(!p)return r(h),null;var g=js(h,p);r(g);var v=js(h,g);return v},a=function(u){var f=u.scrollJumpRequest;if(f){var h=Vs(u.impact);h||We(!1);var p=o(u.dimensions.droppables[h],f);if(p){var g=u.viewport,v=s(u.isWindowScrollAllowed,g,p);v&&i(u,v)}}};return a},xAe=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=yAe({scrollWindow:n,scrollDroppable:t}),o=bAe({move:r,scrollWindow:n,scrollDroppable:t}),s=function(u){if(u.phase==="DRAGGING"){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},a={scroll:s,start:i.start,stop:i.stop};return a},ev="data-rbd",tv=function(){var e=ev+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),E3=function(){var e=ev+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),wAe=function(){var e=ev+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),QW={contextId:ev+"-scroll-container-context-id"},_Ae=function(t){return function(n){return"["+n+'="'+t+'"]'}},Lb=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},SAe="pointer-events: none;",EAe=function(e){var t=_Ae(e),n=function(){var a=` + `+BW(t.source)+` + `},mE={dragHandleUsageInstructions:lTe,onDragStart:cTe,onDragUpdate:uTe,onDragEnd:dTe},Mi={x:0,y:0},Zi=function(t,n){return{x:t.x+n.x,y:t.y+n.y}},js=function(t,n){return{x:t.x-n.x,y:t.y-n.y}},Yd=function(t,n){return t.x===n.x&&t.y===n.y},Av=function(t){return{x:t.x!==0?-t.x:0,y:t.y!==0?-t.y:0}},Vp=function(t,n,r){var i;return r===void 0&&(r=0),i={},i[t]=n,i[t==="x"?"y":"x"]=r,i},L1=function(t,n){return Math.sqrt(Math.pow(n.x-t.x,2)+Math.pow(n.y-t.y,2))},$W=function(t,n){return Math.min.apply(Math,n.map(function(r){return L1(t,r)}))},xZ=function(t){return function(n){return{x:t(n.x),y:t(n.y)}}},fTe=function(e,t){var n=yl({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n},jw=function(t,n){return{top:t.top+n.y,left:t.left+n.x,bottom:t.bottom+n.y,right:t.right+n.x}},FW=function(t){return[{x:t.left,y:t.top},{x:t.right,y:t.top},{x:t.left,y:t.bottom},{x:t.right,y:t.bottom}]},hTe={top:0,right:0,bottom:0,left:0},pTe=function(t,n){return n?jw(t,n.scroll.diff.displacement):t},mTe=function(t,n,r){if(r&&r.increasedBy){var i;return $({},t,(i={},i[n.end]=t[n.end]+r.increasedBy[n.line],i))}return t},gTe=function(t,n){return n&&n.shouldClipSubject?fTe(n.pageMarginBox,t):yl(t)},ev=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,i=e.frame,o=pTe(t.marginBox,i),s=mTe(o,r,n),a=gTe(s,i);return{page:t,withPlaceholder:n,active:a}},dj=function(e,t){e.frame||We(!1);var n=e.frame,r=js(t,n.scroll.initial),i=Av(r),o=$({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:i},max:n.scroll.max}}),s=ev({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:o}),a=$({},e,{frame:o,subject:s});return a};function LC(e){return Object.values?Object.values(e):Object.keys(e).map(function(t){return e[t]})}function fj(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;ne.bottom,u=r.lefte.right,f=c&&u;if(f)return!0;var h=c&&s||u&&o;return h}},xTe=function(e){var t=Ia(e.top,e.bottom),n=Ia(e.left,e.right);return function(r){var i=t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right);return i}},pj={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},TZ={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},wTe=function(e){return function(t){var n=Ia(t.top,t.bottom),r=Ia(t.left,t.right);return function(i){return e===pj?n(i.top)&&n(i.bottom):r(i.left)&&r(i.right)}}},_Te=function(t,n){var r=n.frame?n.frame.scroll.diff.displacement:Mi;return jw(t,r)},STe=function(t,n,r){return n.subject.active?r(n.subject.active)(t):!1},ETe=function(t,n,r){return r(n)(t)},mj=function(t){var n=t.target,r=t.destination,i=t.viewport,o=t.withDroppableDisplacement,s=t.isVisibleThroughFrameFn,a=o?_Te(n,r):n;return STe(a,r,s)&&ETe(a,i,s)},CTe=function(t){return mj($({},t,{isVisibleThroughFrameFn:CZ}))},kZ=function(t){return mj($({},t,{isVisibleThroughFrameFn:xTe}))},TTe=function(t){return mj($({},t,{isVisibleThroughFrameFn:wTe(t.destination.axis)}))},kTe=function(t,n,r){if(typeof r=="boolean")return r;if(!n)return!0;var i=n.invisible,o=n.visible;if(i[t])return!1;var s=o[t];return s?s.shouldAnimate:!0};function ATe(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return yl(cj(n,r))}function B1(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,i=e.viewport,o=e.forceShouldAnimate,s=e.last;return t.reduce(function(c,u){var f=ATe(u,r),h=u.descriptor.id;c.all.push(h);var p=CTe({target:f,destination:n,viewport:i,withDroppableDisplacement:!0});if(!p)return c.invisible[u.descriptor.id]=!0,c;var g=kTe(h,s,o),v={draggableId:h,shouldAnimate:g};return c.visible[h]=v,c},{all:[],visible:{},invisible:{}})}function ITe(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}function zW(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,i=e.destination,o=ITe(t,{inHomeList:n});return{displaced:N1,displacedBy:r,at:{type:"REORDER",destination:{droppableId:i.descriptor.id,index:o}}}}function NC(e){var t=e.draggable,n=e.insideDestination,r=e.destination,i=e.viewport,o=e.displacedBy,s=e.last,a=e.index,c=e.forceShouldAnimate,u=Rv(t,r);if(a==null)return zW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var f=_f(n,function(y){return y.descriptor.index===a});if(!f)return zW({insideDestination:n,inHomeList:u,displacedBy:o,destination:r});var h=oA(t,n),p=n.indexOf(f),g=h.slice(p),v=B1({afterDragging:g,destination:r,displacedBy:o,last:s,viewport:i.frame,forceShouldAnimate:c});return{displaced:v,displacedBy:o,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:a}}}}function sf(e,t){return!!t.effected[e]}var RTe=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,i=e.combine,o=e.afterCritical;if(!n.isCombineEnabled)return null;var s=i.draggableId,a=r[s],c=a.descriptor.index,u=sf(s,o);return u?t?c:c-1:t?c+1:c},PTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,i=e.location;if(!r.length)return null;var o=i.index,s=t?o+1:o-1,a=r[0].descriptor.index,c=r[r.length-1].descriptor.index,u=n?c:c+1;return su?null:s},OTe=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,i=e.draggables,o=e.destination,s=e.insideDestination,a=e.previousImpact,c=e.viewport,u=e.afterCritical,f=a.at;if(f||We(!1),f.type==="REORDER"){var h=PTe({isMovingForward:t,isInHomeList:n,location:f.destination,insideDestination:s});return h==null?null:NC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:h})}var p=RTe({isMovingForward:t,destination:o,displaced:a.displaced,draggables:i,combine:f.combine,afterCritical:u});return p==null?null:NC({draggable:r,insideDestination:s,destination:o,viewport:c,last:a.displaced,displacedBy:a.displacedBy,index:p})},MTe=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,i=e.displacedBy,o=!!(t.visible[r]||t.invisible[r]);return sf(r,n)?o?Mi:Av(i.point):o?i.point:Mi},DTe=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,i=iA(n);i||We(!1);var o=i.draggableId,s=r[o].page.borderBox.center,a=MTe({displaced:n.displaced,afterCritical:t,combineWith:o,displacedBy:n.displacedBy});return Zi(s,a)},AZ=function(t,n){return n.margin[t.start]+n.borderBox[t.size]/2},LTe=function(t,n){return n.margin[t.end]+n.borderBox[t.size]/2},gj=function(t,n,r){return n[t.crossAxisStart]+r.margin[t.crossAxisStart]+r.borderBox[t.crossAxisSize]/2},jW=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Vp(n.line,r.marginBox[n.end]+AZ(n,i),gj(n,r.marginBox,i))},UW=function(t){var n=t.axis,r=t.moveRelativeTo,i=t.isMoving;return Vp(n.line,r.marginBox[n.start]-LTe(n,i),gj(n,r.marginBox,i))},NTe=function(t){var n=t.axis,r=t.moveInto,i=t.isMoving;return Vp(n.line,r.contentBox[n.start]+AZ(n,i),gj(n,r.contentBox,i))},BTe=function(e){var t=e.impact,n=e.draggable,r=e.draggables,i=e.droppable,o=e.afterCritical,s=Iv(i.descriptor.id,r),a=n.page,c=i.axis;if(!s.length)return NTe({axis:c,moveInto:i.page,isMoving:a});var u=t.displaced,f=t.displacedBy,h=u.all[0];if(h){var p=r[h];if(sf(h,o))return UW({axis:c,moveRelativeTo:p.page,isMoving:a});var g=PC(p.page,f.point);return UW({axis:c,moveRelativeTo:g,isMoving:a})}var v=s[s.length-1];if(v.descriptor.id===n.descriptor.id)return a.borderBox.center;if(sf(v.descriptor.id,o)){var y=PC(v.page,Av(o.displacedBy.point));return jW({axis:c,moveRelativeTo:y,isMoving:a})}return jW({axis:c,moveRelativeTo:v.page,isMoving:a})},S3=function(e,t){var n=e.frame;return n?Zi(t,n.scroll.diff.displacement):t},$Te=function(t){var n=t.impact,r=t.draggable,i=t.droppable,o=t.draggables,s=t.afterCritical,a=r.page.borderBox.center,c=n.at;return!i||!c?a:c.type==="REORDER"?BTe({impact:n,draggable:r,draggables:o,droppable:i,afterCritical:s}):DTe({impact:n,draggables:o,afterCritical:s})},sA=function(e){var t=$Te(e),n=e.droppable,r=n?S3(n,t):t;return r},IZ=function(e,t){var n=js(t,e.scroll.initial),r=Av(n),i=yl({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),o={frame:i,scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}};return o};function HW(e,t){return e.map(function(n){return t[n]})}function FTe(e,t){for(var n=0;n1?f.sort(function(h,p){return Po(h)[a.start]-Po(p)[a.start]})[0]:u.sort(function(h,p){var g=$W(n,FW(Po(h))),v=$W(n,FW(Po(p)));return g!==v?g-v:Po(h)[a.start]-Po(p)[a.start]})[0]},WW=function(t,n){var r=t.page.borderBox.center;return sf(t.descriptor.id,n)?js(r,n.displacedBy.point):r},WTe=function(t,n){var r=t.page.borderBox;return sf(t.descriptor.id,n)?jw(r,Av(n.displacedBy.point)):r},GTe=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,i=e.insideDestination,o=e.afterCritical,s=i.filter(function(a){return kZ({target:WTe(a,o),destination:r,viewport:n.frame,withDroppableDisplacement:!0})}).sort(function(a,c){var u=L1(t,S3(r,WW(a,o))),f=L1(t,S3(r,WW(c,o)));return ut.left&&e.topt.top}function ZTe(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,i=n.page.borderBox.center,o=r.map(function(s){var a=s.axis,c=Vp(s.axis.line,t.center[a.line],s.page.borderBox.center[a.crossAxisLine]);return{id:s.descriptor.id,distance:L1(i,c)}}).sort(function(s,a){return a.distance-s.distance});return o[0]?o[0].id:null}function eke(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,i=rA(r).filter(function(o){if(!o.isEnabled)return!1;var s=o.subject.active;if(!s||!JTe(t,s))return!1;if(MZ(s)(t.center))return!0;var a=o.axis,c=s.center[a.crossAxisLine],u=t[a.crossAxisStart],f=t[a.crossAxisEnd],h=Ia(s[a.crossAxisStart],s[a.crossAxisEnd]),p=h(u),g=h(f);return!p&&!g?!0:p?uc});return i.length?i.length===1?i[0].descriptor.id:ZTe({pageBorderBox:t,draggable:n,candidates:i}):null}var DZ=function(t,n){return yl(jw(t,n))},tke=function(e,t){var n=e.frame;return n?DZ(t,n.scroll.diff.value):t};function LZ(e){var t=e.displaced,n=e.id;return!!(t.visible[n]||t.invisible[n])}function nke(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}var rke=function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,i=e.insideDestination,o=e.last,s=e.viewport,a=e.afterCritical,c=r.axis,u=Uw(r.axis,n.displaceBy),f=u.value,h=t[c.start],p=t[c.end],g=oA(n,i),v=_f(g,function(S){var w=S.descriptor.id,b=S.page.borderBox.center[c.line],x=sf(w,a),E=LZ({displaced:o,id:w});return x?E?p<=b:hw[a.start]+x&&hw[a.start]-u+x&&fw[a.start]+u+x&&hw[a.start]+x&&f=qW)return WZ;var o=i/qW,s=T3+Dke*o,a=r==="CANCEL"?s*Lke:s;return Number(a.toFixed(2))},Bke=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,i=e.viewport,o=e.afterCritical,s=r.draggables,a=r.droppables,c=Vs(t),u=c?a[c]:null,f=a[n.descriptor.droppableId],h=$Z({impact:t,draggable:n,draggables:s,afterCritical:o,droppable:u||f,viewport:i}),p=js(h,n.client.borderBox.center);return p},$ke=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,i=e.home,o=e.viewport,s=e.onLiftImpact;if(!r.at||n!=="DROP"){var a=BZ({draggables:t,impact:s,destination:i,viewport:o,forceShouldAnimate:!0});return{impact:a,didDropInsideDroppable:!1}}if(r.at.type==="REORDER")return{impact:r,didDropInsideDroppable:!0};var c=$({},r,{displaced:N1});return{impact:c,didDropInsideDroppable:!0}},Fke=function(e){var t=e.getState,n=e.dispatch;return function(r){return function(i){if(i.type!=="DROP"){r(i);return}var o=t(),s=i.payload.reason;if(o.phase==="COLLECTING"){n(Pke({reason:s}));return}if(o.phase!=="IDLE"){var a=o.phase==="DROP_PENDING"&&o.isWaiting;a&&We(!1),o.phase==="DRAGGING"||o.phase==="DROP_PENDING"||We(!1);var c=o.critical,u=o.dimensions,f=u.draggables[o.critical.draggable.id],h=$ke({reason:s,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=h.impact,g=h.didDropInsideDroppable,v=g?hj(p):null,y=g?iA(p):null,S={index:c.draggable.index,droppableId:c.droppable.id},w={draggableId:f.descriptor.id,type:f.descriptor.type,source:S,reason:s,mode:o.movementMode,destination:v,combine:y},b=Bke({impact:p,draggable:f,dimensions:u,viewport:o.viewport,afterCritical:o.afterCritical}),x={critical:o.critical,afterCritical:o.afterCritical,result:w,impact:p},E=!Yd(o.current.client.offset,b)||!!w.combine;if(!E){n(xj({completed:x}));return}var I=Nke({current:o.current.client.offset,destination:b,reason:s}),A={newHomeClientOffset:b,dropDuration:I,completed:x};n(Rke(A))}}}},GZ=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function zke(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(n){n.target!==window&&n.target!==window.document||e()}}}function jke(e){var t=e.onWindowScroll;function n(){t(GZ())}var r=D1(n),i=zke(r),o=Xd;function s(){return o!==Xd}function a(){s()&&We(!1),o=xa(window,[i])}function c(){s()||We(!1),r.cancel(),o(),o=Xd}return{start:a,stop:c,isActive:s}}var Uke=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},Hke=function(e){var t=jke({onWindowScroll:function(r){e.dispatch(Eke({newScroll:r}))}});return function(n){return function(r){!t.isActive()&&r.type==="INITIAL_PUBLISH"&&t.start(),t.isActive()&&Uke(r)&&t.stop(),n(r)}}},Wke=function(e){var t=!1,n=!1,r=setTimeout(function(){n=!0}),i=function(s){t||n||(t=!0,e(s),clearTimeout(r))};return i.wasCalled=function(){return t},i},Gke=function(){var e=[],t=function(o){var s=fj(e,function(u){return u.timerId===o});s===-1&&We(!1);var a=e.splice(s,1),c=a[0];c.callback()},n=function(o){var s=setTimeout(function(){return t(s)}),a={timerId:s,callback:o};e.push(a)},r=function(){if(e.length){var o=[].concat(e);e.length=0,o.forEach(function(s){clearTimeout(s.timerId),s.callback()})}};return{add:n,flush:r}},Vke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.droppableId===n.droppableId&&t.index===n.index},qke=function(t,n){return t==null&&n==null?!0:t==null||n==null?!1:t.draggableId===n.draggableId&&t.droppableId===n.droppableId},Xke=function(t,n){if(t===n)return!0;var r=t.draggable.id===n.draggable.id&&t.draggable.droppableId===n.draggable.droppableId&&t.draggable.type===n.draggable.type&&t.draggable.index===n.draggable.index,i=t.droppable.id===n.droppable.id&&t.droppable.type===n.droppable.type;return r&&i},Lb=function(t,n){n()},V_=function(t,n){return{draggableId:t.draggable.id,type:t.droppable.type,source:{droppableId:t.droppable.id,index:t.draggable.index},mode:n}},bN=function(t,n,r,i){if(!t){r(i(n));return}var o=Wke(r),s={announce:o};t(n,s),o.wasCalled()||r(i(n))},Yke=function(e,t){var n=Gke(),r=null,i=function(p,g){r&&We(!1),Lb("onBeforeCapture",function(){var v=e().onBeforeCapture;if(v){var y={draggableId:p,mode:g};v(y)}})},o=function(p,g){r&&We(!1),Lb("onBeforeDragStart",function(){var v=e().onBeforeDragStart;v&&v(V_(p,g))})},s=function(p,g){r&&We(!1);var v=V_(p,g);r={mode:g,lastCritical:p,lastLocation:v.source,lastCombine:null},n.add(function(){Lb("onDragStart",function(){return bN(e().onDragStart,v,t,mE.onDragStart)})})},a=function(p,g){var v=hj(g),y=iA(g);r||We(!1);var S=!Xke(p,r.lastCritical);S&&(r.lastCritical=p);var w=!Vke(r.lastLocation,v);w&&(r.lastLocation=v);var b=!qke(r.lastCombine,y);if(b&&(r.lastCombine=y),!(!S&&!w&&!b)){var x=$({},V_(p,r.mode),{combine:y,destination:v});n.add(function(){Lb("onDragUpdate",function(){return bN(e().onDragUpdate,x,t,mE.onDragUpdate)})})}},c=function(){r||We(!1),n.flush()},u=function(p){r||We(!1),r=null,Lb("onDragEnd",function(){return bN(e().onDragEnd,p,t,mE.onDragEnd)})},f=function(){if(r){var p=$({},V_(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});u(p)}};return{beforeCapture:i,beforeStart:o,start:s,update:a,flush:c,drop:u,abort:f}},Kke=function(e,t){var n=Yke(e,t);return function(r){return function(i){return function(o){if(o.type==="BEFORE_INITIAL_CAPTURE"){n.beforeCapture(o.payload.draggableId,o.payload.movementMode);return}if(o.type==="INITIAL_PUBLISH"){var s=o.payload.critical;n.beforeStart(s,o.payload.movementMode),i(o),n.start(s,o.payload.movementMode);return}if(o.type==="DROP_COMPLETE"){var a=o.payload.completed.result;n.flush(),i(o),n.drop(a);return}if(i(o),o.type==="FLUSH"){n.abort();return}var c=r.getState();c.phase==="DRAGGING"&&n.update(c.critical,c.impact)}}}},Qke=function(e){return function(t){return function(n){if(n.type!=="DROP_ANIMATION_FINISHED"){t(n);return}var r=e.getState();r.phase!=="DROP_ANIMATING"&&We(!1),e.dispatch(xj({completed:r.completed}))}}},Jke=function(e){var t=null,n=null;function r(){n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)}return function(i){return function(o){if((o.type==="FLUSH"||o.type==="DROP_COMPLETE"||o.type==="DROP_ANIMATION_FINISHED")&&r(),i(o),o.type==="DROP_ANIMATE"){var s={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){var c=e.getState();c.phase==="DROP_ANIMATING"&&e.dispatch(HZ())}};n=requestAnimationFrame(function(){n=null,t=xa(window,[s])})}}}},Zke=function(e){return function(){return function(t){return function(n){(n.type==="DROP_COMPLETE"||n.type==="FLUSH"||n.type==="DROP_ANIMATE")&&e.stopPublishing(),t(n)}}}},eAe=function(e){var t=!1;return function(){return function(n){return function(r){if(r.type==="INITIAL_PUBLISH"){t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),e.tryRestoreFocusRecorded();return}if(n(r),!!t){if(r.type==="FLUSH"){t=!1,e.tryRestoreFocusRecorded();return}if(r.type==="DROP_COMPLETE"){t=!1;var i=r.payload.completed.result;i.combine&&e.tryShiftRecord(i.draggableId,i.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}},tAe=function(t){return t.type==="DROP_COMPLETE"||t.type==="DROP_ANIMATE"||t.type==="FLUSH"},nAe=function(e){return function(t){return function(n){return function(r){if(tAe(r)){e.stop(),n(r);return}if(r.type==="INITIAL_PUBLISH"){n(r);var i=t.getState();i.phase!=="DRAGGING"&&We(!1),e.start(i);return}n(r),e.scroll(t.getState())}}}},rAe=function(e){return function(t){return function(n){if(t(n),n.type==="PUBLISH_WHILE_DRAGGING"){var r=e.getState();r.phase==="DROP_PENDING"&&(r.isWaiting||e.dispatch(UZ({reason:r.reason})))}}}},iAe=aZ,oAe=function(e){var t=e.dimensionMarshal,n=e.focusMarshal,r=e.styleMarshal,i=e.getResponders,o=e.announce,s=e.autoScroller;return sZ(mke,iAe(mCe(Mke(r),Zke(t),Oke(t),Fke,Qke,Jke,rAe,nAe(s),Hke,eAe(n),Kke(i,o))))},xN=function(){return{additions:{},removals:{},modified:{}}};function sAe(e){var t=e.registry,n=e.callbacks,r=xN(),i=null,o=function(){i||(n.collectionStarting(),i=requestAnimationFrame(function(){i=null;var f=r,h=f.additions,p=f.removals,g=f.modified,v=Object.keys(h).map(function(w){return t.draggable.getById(w).getDimension(Mi)}).sort(function(w,b){return w.descriptor.index-b.descriptor.index}),y=Object.keys(g).map(function(w){var b=t.droppable.getById(w),x=b.callbacks.getScrollWhileDragging();return{droppableId:w,scroll:x}}),S={additions:v,removals:Object.keys(p),modified:y};r=xN(),n.publish(S)}))},s=function(f){var h=f.descriptor.id;r.additions[h]=f,r.modified[f.descriptor.droppableId]=!0,r.removals[h]&&delete r.removals[h],o()},a=function(f){var h=f.descriptor;r.removals[h.id]=!0,r.modified[h.droppableId]=!0,r.additions[h.id]&&delete r.additions[h.id],o()},c=function(){i&&(cancelAnimationFrame(i),i=null,r=xN())};return{add:s,remove:a,stop:c}}var VZ=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,i=e.width,o=js({x:n,y:t},{x:i,y:r}),s={x:Math.max(0,o.x),y:Math.max(0,o.y)};return s},qZ=function(){var e=document.documentElement;return e||We(!1),e},XZ=function(){var e=qZ(),t=VZ({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight});return t},aAe=function(){var e=GZ(),t=XZ(),n=e.y,r=e.x,i=qZ(),o=i.clientWidth,s=i.clientHeight,a=r+o,c=n+s,u=yl({top:n,left:r,right:a,bottom:c}),f={frame:u,scroll:{initial:e,current:e,max:t,diff:{value:Mi,displacement:Mi}}};return f},lAe=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry,i=aAe(),o=i.scroll.current,s=t.droppable,a=r.droppable.getAllByType(s.type).map(function(h){return h.callbacks.getDimensionAndWatchScroll(o,n)}),c=r.draggable.getAllByType(t.draggable.type).map(function(h){return h.getDimension(o)}),u={draggables:SZ(c),droppables:_Z(a)},f={dimensions:u,critical:t,viewport:i};return f};function XW(e,t,n){if(n.descriptor.id===t.id||n.descriptor.type!==t.type)return!1;var r=e.droppable.getById(n.descriptor.droppableId);return r.descriptor.mode==="virtual"}var cAe=function(e,t){var n=null,r=sAe({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),i=function(g,v){e.droppable.exists(g)||We(!1),n&&t.updateDroppableIsEnabled({id:g,isEnabled:v})},o=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableIsCombineEnabled({id:g,isCombineEnabled:v}))},s=function(g,v){n&&(e.droppable.exists(g)||We(!1),t.updateDroppableScroll({id:g,newScroll:v}))},a=function(g,v){n&&e.droppable.getById(g).callbacks.scroll(v)},c=function(){if(n){r.stop();var g=n.critical.droppable;e.droppable.getAllByType(g.type).forEach(function(v){return v.callbacks.dragStopped()}),n.unsubscribe(),n=null}},u=function(g){n||We(!1);var v=n.critical.draggable;g.type==="ADDITION"&&XW(e,v,g.value)&&r.add(g.value),g.type==="REMOVAL"&&XW(e,v,g.value)&&r.remove(g.value)},f=function(g){n&&We(!1);var v=e.draggable.getById(g.draggableId),y=e.droppable.getById(v.descriptor.droppableId),S={draggable:v.descriptor,droppable:y.descriptor},w=e.subscribe(u);return n={critical:S,unsubscribe:w},lAe({critical:S,registry:e,scrollOptions:g.scrollOptions})},h={updateDroppableIsEnabled:i,updateDroppableIsCombineEnabled:o,scrollDroppable:a,updateDroppableScroll:s,startPublishing:f,stopPublishing:c};return h},YZ=function(e,t){return e.phase==="IDLE"?!0:e.phase!=="DROP_ANIMATING"||e.completed.result.draggableId===t?!1:e.completed.result.reason==="DROP"},uAe=function(e){window.scrollBy(e.x,e.y)},dAe=Oi(function(e){return rA(e).filter(function(t){return!(!t.isEnabled||!t.frame)})}),fAe=function(t,n){var r=_f(dAe(n),function(i){return i.frame||We(!1),MZ(i.frame.pageMarginBox)(t)});return r},hAe=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var i=r[n];return i.frame?i:null}var o=fAe(t,r);return o},Kd={startFromPercentage:.25,maxScrollAtPercentage:.05,maxPixelScroll:28,ease:function(t){return Math.pow(t,2)},durationDampening:{stopDampeningAt:1200,accelerateAt:360}},pAe=function(e,t){var n=e[t.size]*Kd.startFromPercentage,r=e[t.size]*Kd.maxScrollAtPercentage,i={startScrollingFrom:n,maxScrollValueAt:r};return i},KZ=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,i=n-t;if(i===0)return 0;var o=r-t,s=o/i;return s},Sj=1,mAe=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return Kd.maxPixelScroll;if(e===t.startScrollingFrom)return Sj;var n=KZ({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=1-n,i=Kd.maxPixelScroll*Kd.ease(r);return Math.ceil(i)},YW=Kd.durationDampening.accelerateAt,KW=Kd.durationDampening.stopDampeningAt,gAe=function(e,t){var n=t,r=KW,i=Date.now(),o=i-n;if(o>=KW)return e;if(ot.height,o=n.width>t.width;return!o&&!i?r:o&&i?null:{x:o?0:r.x,y:i?0:r.y}},yAe=xZ(function(e){return e===0?0:e}),QZ=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,i=e.center,o=e.shouldUseTimeDampening,s={top:i.y-n.top,right:n.right-i.x,bottom:n.bottom-i.y,left:i.x-n.left},a=JW({container:n,distanceToEdges:s,dragStartTime:t,axis:pj,shouldUseTimeDampening:o}),c=JW({container:n,distanceToEdges:s,dragStartTime:t,axis:TZ,shouldUseTimeDampening:o}),u=yAe({x:c,y:a});if(Yd(u,Mi))return null;var f=vAe({container:n,subject:r,proposedScroll:u});return f?Yd(f,Mi)?null:f:null},bAe=xZ(function(e){return e===0?0:e>0?1:-1}),Ej=function(){var e=function(n,r){return n<0?n:n>r?n-r:0};return function(t){var n=t.current,r=t.max,i=t.change,o=Zi(n,i),s={x:e(o.x,r.x),y:e(o.y,r.y)};return Yd(s,Mi)?null:s}}(),JZ=function(t){var n=t.max,r=t.current,i=t.change,o={x:Math.max(r.x,n.x),y:Math.max(r.y,n.y)},s=bAe(i),a=Ej({max:o,current:r,change:s});return!a||s.x!==0&&a.x===0||s.y!==0&&a.y===0},Cj=function(t,n){return JZ({current:t.scroll.current,max:t.scroll.max,change:n})},xAe=function(t,n){if(!Cj(t,n))return null;var r=t.scroll.max,i=t.scroll.current;return Ej({current:i,max:r,change:n})},Tj=function(t,n){var r=t.frame;return r?JZ({current:r.scroll.current,max:r.scroll.max,change:n}):!1},wAe=function(t,n){var r=t.frame;return!r||!Tj(t,n)?null:Ej({current:r.scroll.current,max:r.scroll.max,change:n})},_Ae=function(e){var t=e.viewport,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=QZ({dragStartTime:i,container:t.frame,subject:n,center:r,shouldUseTimeDampening:o});return s&&Cj(t,s)?s:null},SAe=function(e){var t=e.droppable,n=e.subject,r=e.center,i=e.dragStartTime,o=e.shouldUseTimeDampening,s=t.frame;if(!s)return null;var a=QZ({dragStartTime:i,container:s.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:o});return a&&Tj(t,a)?a:null},ZW=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,i=e.scrollWindow,o=e.scrollDroppable,s=t.current.page.borderBoxCenter,a=t.dimensions.draggables[t.critical.draggable.id],c=a.page.marginBox;if(t.isWindowScrollAllowed){var u=t.viewport,f=_Ae({dragStartTime:n,viewport:u,subject:c,center:s,shouldUseTimeDampening:r});if(f){i(f);return}}var h=hAe({center:s,destination:Vs(t.impact),droppables:t.dimensions.droppables});if(h){var p=SAe({dragStartTime:n,droppable:h,subject:c,center:s,shouldUseTimeDampening:r});p&&o(h.descriptor.id,p)}},EAe=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=D1(t),i=D1(n),o=null,s=function(f){o||We(!1);var h=o,p=h.shouldUseTimeDampening,g=h.dragStartTime;ZW({state:f,scrollWindow:r,scrollDroppable:i,dragStartTime:g,shouldUseTimeDampening:p})},a=function(f){o&&We(!1);var h=Date.now(),p=!1,g=function(){p=!0};ZW({state:f,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:g,scrollDroppable:g}),o={dragStartTime:h,shouldUseTimeDampening:p},p&&s(f)},c=function(){o&&(r.cancel(),i.cancel(),o=null)};return{start:a,stop:c,scroll:s}},CAe=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,i=function(u,f){var h=Zi(u.current.client.selection,f);t({client:h})},o=function(u,f){if(!Tj(u,f))return f;var h=wAe(u,f);if(!h)return n(u.descriptor.id,f),null;var p=js(f,h);n(u.descriptor.id,p);var g=js(f,p);return g},s=function(u,f,h){if(!u||!Cj(f,h))return h;var p=xAe(f,h);if(!p)return r(h),null;var g=js(h,p);r(g);var v=js(h,g);return v},a=function(u){var f=u.scrollJumpRequest;if(f){var h=Vs(u.impact);h||We(!1);var p=o(u.dimensions.droppables[h],f);if(p){var g=u.viewport,v=s(u.isWindowScrollAllowed,g,p);v&&i(u,v)}}};return a},TAe=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,i=EAe({scrollWindow:n,scrollDroppable:t}),o=CAe({move:r,scrollWindow:n,scrollDroppable:t}),s=function(u){if(u.phase==="DRAGGING"){if(u.movementMode==="FLUID"){i.scroll(u);return}u.scrollJumpRequest&&o(u)}},a={scroll:s,start:i.start,stop:i.stop};return a},tv="data-rbd",nv=function(){var e=tv+"-drag-handle";return{base:e,draggableId:e+"-draggable-id",contextId:e+"-context-id"}}(),k3=function(){var e=tv+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),kAe=function(){var e=tv+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),eG={contextId:tv+"-scroll-container-context-id"},AAe=function(t){return function(n){return"["+n+'="'+t+'"]'}},Nb=function(t,n){return t.map(function(r){var i=r.styles[n];return i?r.selector+" { "+i+" }":""}).join(" ")},IAe="pointer-events: none;",RAe=function(e){var t=AAe(e),n=function(){var a=` cursor: -webkit-grab; cursor: grab; - `;return{selector:t(tv.contextId),styles:{always:` + `;return{selector:t(nv.contextId),styles:{always:` -webkit-touch-callout: none; -webkit-tap-highlight-color: rgba(0,0,0,0); touch-action: manipulation; - `,resting:a,dragging:SAe,dropAnimating:a}}}(),r=function(){var a=` - transition: `+Ux.outOfTheWay+`; - `;return{selector:t(E3.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}}(),i={selector:t(wAe.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:` + `,resting:a,dragging:IAe,dropAnimating:a}}}(),r=function(){var a=` + transition: `+Wx.outOfTheWay+`; + `;return{selector:t(k3.contextId),styles:{dragging:a,dropAnimating:a,userCancel:a}}}(),i={selector:t(kAe.contextId),styles:{always:"overflow-anchor: none;"}},o={selector:"body",styles:{dragging:` cursor: grabbing; cursor: -webkit-grabbing; user-select: none; @@ -441,11 +441,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho -moz-user-select: none; -ms-user-select: none; overflow-anchor: none; - `}},s=[r,n,i,o];return{always:Lb(s,"always"),resting:Lb(s,"resting"),dragging:Lb(s,"dragging"),dropAnimating:Lb(s,"dropAnimating"),userCancel:Lb(s,"userCancel")}},qs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect,bN=function(){var t=document.querySelector("head");return t||We(!1),t},JW=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function CAe(e,t){var n=Cn(function(){return EAe(e)},[e]),r=R.useRef(null),i=R.useRef(null),o=_t(Oi(function(h){var p=i.current;p||We(!1),p.textContent=h}),[]),s=_t(function(h){var p=r.current;p||We(!1),p.textContent=h},[]);qs(function(){!r.current&&!i.current||We(!1);var h=JW(t),p=JW(t);return r.current=h,i.current=p,h.setAttribute(ev+"-always",e),p.setAttribute(ev+"-dynamic",e),bN().appendChild(h),bN().appendChild(p),s(n.always),o(n.resting),function(){var g=function(y){var S=y.current;S||We(!1),bN().removeChild(S),y.current=null};g(r),g(i)}},[t,s,o,n.always,n.resting,e]);var a=_t(function(){return o(n.dragging)},[o,n.dragging]),c=_t(function(h){if(h==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),u=_t(function(){i.current&&o(n.resting)},[o,n.resting]),f=Cn(function(){return{dragging:a,dropping:c,resting:u}},[a,c,u]);return f}var JZ=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function oA(e){return e instanceof JZ(e).HTMLElement}function TAe(e,t){var n="["+tv.contextId+'="'+e+'"]',r=xZ(document.querySelectorAll(n));if(!r.length)return null;var i=xf(r,function(o){return o.getAttribute(tv.draggableId)===t});return!i||!oA(i)?null:i}function kAe(e){var t=R.useRef({}),n=R.useRef(null),r=R.useRef(null),i=R.useRef(!1),o=_t(function(p,g){var v={id:p,focus:g};return t.current[p]=v,function(){var S=t.current,w=S[p];w!==v&&delete S[p]}},[]),s=_t(function(p){var g=TAe(e,p);g&&g!==document.activeElement&&g.focus()},[e]),a=_t(function(p,g){n.current===p&&(n.current=g)},[]),c=_t(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var p=n.current;p&&s(p)}))},[s]),u=_t(function(p){n.current=null;var g=document.activeElement;g&&g.getAttribute(tv.draggableId)===p&&(n.current=p)},[]);qs(function(){return i.current=!0,function(){i.current=!1;var p=r.current;p&&cancelAnimationFrame(p)}},[]);var f=Cn(function(){return{register:o,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:a}},[o,u,c,a]);return f}function AAe(){var e={draggables:{},droppables:{}},t=[];function n(h){return t.push(h),function(){var g=t.indexOf(h);g!==-1&&t.splice(g,1)}}function r(h){t.length&&t.forEach(function(p){return p(h)})}function i(h){return e.draggables[h]||null}function o(h){var p=i(h);return p||We(!1),p}var s={register:function(p){e.draggables[p.descriptor.id]=p,r({type:"ADDITION",value:p})},update:function(p,g){var v=e.draggables[g.descriptor.id];v&&v.uniqueId===p.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var g=p.descriptor.id,v=i(g);v&&p.uniqueId===v.uniqueId&&(delete e.draggables[g],r({type:"REMOVAL",value:p}))},getById:o,findById:i,exists:function(p){return!!i(p)},getAllByType:function(p){return LC(e.draggables).filter(function(g){return g.descriptor.type===p})}};function a(h){return e.droppables[h]||null}function c(h){var p=a(h);return p||We(!1),p}var u={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var g=a(p.descriptor.id);g&&p.uniqueId===g.uniqueId&&delete e.droppables[p.descriptor.id]},getById:c,findById:a,exists:function(p){return!!a(p)},getAllByType:function(p){return LC(e.droppables).filter(function(g){return g.descriptor.type===p})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:s,droppable:u,subscribe:n,clean:f}}function IAe(){var e=Cn(AAe,[]);return R.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var Ej=de.createContext(null),NC=function(){var e=document.body;return e||We(!1),e},RAe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},PAe=function(t){return"rbd-announcement-"+t};function OAe(e){var t=Cn(function(){return PAe(e)},[e]),n=R.useRef(null);R.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),$(o.style,RAe),NC().appendChild(o),function(){setTimeout(function(){var c=NC();c.contains(o)&&c.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=_t(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var MAe=0,LAe={separator:"::"};function Cj(e,t){return t===void 0&&(t=LAe),Cn(function(){return""+e+t.separator+MAe++},[t.separator,e])}function DAe(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function NAe(e){var t=e.contextId,n=e.text,r=Cj("hidden-text",{separator:"-"}),i=Cn(function(){return DAe({contextId:t,uniqueId:r})},[r,t]);return R.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",NC().appendChild(s),function(){var c=NC();c.contains(s)&&c.removeChild(s)}},[i,n]),i}var sA=de.createContext(null);function ZZ(e){var t=R.useRef(e);return R.useEffect(function(){t.current=e}),t}function BAe(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&We(!1);var a={abandon:s};return e=a,a}function i(){e||We(!1),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var $Ae=9,FAe=13,Tj=27,eee=32,zAe=33,jAe=34,UAe=35,HAe=36,WAe=37,GAe=38,VAe=39,qAe=40,V_,XAe=(V_={},V_[FAe]=!0,V_[$Ae]=!0,V_),tee=function(e){XAe[e.keyCode]&&e.preventDefault()},aA=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=xf(t,function(r){return"on"+r in document});return n||e}(),nee=0,ZW=5;function YAe(e,t){return Math.abs(t.x-e.x)>=ZW||Math.abs(t.y-e.y)>=ZW}var eG={type:"IDLE"};function KAe(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var a=s.button,c=s.clientX,u=s.clientY;if(a===nee){var f={x:c,y:u},h=r();if(h.type==="DRAGGING"){s.preventDefault(),h.actions.move(f);return}h.type!=="PENDING"&&We(!1);var p=h.point;if(YAe(p,f)){s.preventDefault();var g=h.actions.fluidLift(f);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(s){var a=r();if(a.type!=="DRAGGING"){t();return}s.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var a=r();if(a.type==="PENDING"){t();return}if(s.keyCode===Tj){s.preventDefault(),t();return}tee(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var a=r();if(a.type==="IDLE"&&We(!1),a.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:aA,fn:t}]}function QAe(e){var t=R.useRef(eG),n=R.useRef(qd),r=Cn(function(){return{eventName:"mousedown",fn:function(h){if(!h.defaultPrevented&&h.button===nee&&!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey)){var p=e.findClosestDraggableId(h);if(p){var g=e.tryGetLock(p,s,{sourceEvent:h});if(g){h.preventDefault();var v={x:h.clientX,y:h.clientY};n.current(),u(g,v)}}}}}},[e]),i=Cn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var g=e.findOptionsForDraggable(p);g&&(g.shouldRespectForcePress||e.canGetLock(p)&&h.preventDefault())}}}}},[e]),o=_t(function(){var h={passive:!1,capture:!0};n.current=ba(window,[i,r],h)},[i,r]),s=_t(function(){var f=t.current;f.type!=="IDLE"&&(t.current=eG,n.current(),o())},[o]),a=_t(function(){var f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=_t(function(){var h={capture:!0,passive:!1},p=KAe({cancel:a,completed:s,getPhase:function(){return t.current},setPhase:function(v){t.current=v}});n.current=ba(window,p,h)},[a,s]),u=_t(function(h,p){t.current.type!=="IDLE"&&We(!1),t.current={type:"PENDING",point:p,actions:h},c()},[c]);qs(function(){return o(),function(){n.current()}},[o])}var xm;function JAe(){}var ZAe=(xm={},xm[jAe]=!0,xm[zAe]=!0,xm[HAe]=!0,xm[UAe]=!0,xm);function eIe(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Tj){o.preventDefault(),n();return}if(o.keyCode===eee){o.preventDefault(),r();return}if(o.keyCode===qAe){o.preventDefault(),e.moveDown();return}if(o.keyCode===GAe){o.preventDefault(),e.moveUp();return}if(o.keyCode===VAe){o.preventDefault(),e.moveRight();return}if(o.keyCode===WAe){o.preventDefault(),e.moveLeft();return}if(ZAe[o.keyCode]){o.preventDefault();return}tee(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:aA,fn:n}]}function tIe(e){var t=R.useRef(JAe),n=Cn(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==eee)return;var s=e.findClosestDraggableId(o);if(!s)return;var a=e.tryGetLock(s,f,{sourceEvent:o});if(!a)return;o.preventDefault();var c=!0,u=a.snapLift();t.current();function f(){c||We(!1),c=!1,t.current(),r()}t.current=ba(window,eIe(u,f),{capture:!0,passive:!1})}}},[e]),r=_t(function(){var o={passive:!1,capture:!0};t.current=ba(window,[n],o)},[n]);qs(function(){return r(),function(){t.current()}},[r])}var xN={type:"IDLE"},nIe=120,rIe=.15;function iIe(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===Tj&&i.preventDefault(),t()}},{eventName:aA,fn:t}]}function oIe(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var a=o.touches[0],c=a.clientX,u=a.clientY,f={x:c,y:u};o.preventDefault(),s.actions.move(f)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&We(!1);var a=o.touches[0];if(a){var c=a.force>=rIe;if(c){var u=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){u&&t();return}if(u){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:aA,fn:t}]}function sIe(e){var t=R.useRef(xN),n=R.useRef(qd),r=_t(function(){return t.current},[]),i=_t(function(g){t.current=g},[]),o=Cn(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var v=e.findClosestDraggableId(g);if(v){var y=e.tryGetLock(v,a,{sourceEvent:g});if(y){var S=g.touches[0],w=S.clientX,b=S.clientY,x={x:w,y:b};n.current(),h(y,x)}}}}}},[e]),s=_t(function(){var g={capture:!0,passive:!1};n.current=ba(window,[o],g)},[o]),a=_t(function(){var p=t.current;p.type!=="IDLE"&&(p.type==="PENDING"&&clearTimeout(p.longPressTimerId),i(xN),n.current(),s())},[s,i]),c=_t(function(){var p=t.current;a(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[a]),u=_t(function(){var g={capture:!0,passive:!1},v={cancel:c,completed:a,getPhase:r},y=ba(window,oIe(v),g),S=ba(window,iIe(v),g);n.current=function(){y(),S()}},[c,r,a]),f=_t(function(){var g=r();g.type!=="PENDING"&&We(!1);var v=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[r,i]),h=_t(function(g,v){r().type!=="IDLE"&&We(!1);var y=setTimeout(f,nIe);i({type:"PENDING",point:v,actions:g,longPressTimerId:y}),u()},[u,r,i,f]);qs(function(){return s(),function(){n.current();var v=r();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(xN))}},[r,s,i]),qs(function(){var g=ba(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var aIe={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function ree(e,t){if(t==null)return!1;var n=!!aIe[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:ree(e,t.parentElement)}function lIe(e,t){var n=t.target;return oA(n)?ree(e,n):!1}var cIe=function(e){return vl(e.getBoundingClientRect()).center};function uIe(e){return e instanceof JZ(e).Element}var dIe=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=xf(t,function(r){return r in Element.prototype});return n||e}();function iee(e,t){return e==null?null:e[dIe](t)?e:iee(e.parentElement,t)}function fIe(e,t){return e.closest?e.closest(t):iee(e,t)}function hIe(e){return"["+tv.contextId+'="'+e+'"]'}function pIe(e,t){var n=t.target;if(!uIe(n))return null;var r=hIe(e),i=fIe(n,r);return!i||!oA(i)?null:i}function mIe(e,t){var n=pIe(e,t);return n?n.getAttribute(tv.draggableId):null}function gIe(e,t){var n="["+E3.contextId+'="'+e+'"]',r=xZ(document.querySelectorAll(n)),i=xf(r,function(o){return o.getAttribute(E3.id)===t});return!i||!oA(i)?null:i}function vIe(e){e.preventDefault()}function q_(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function oee(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!XZ(n.getState(),i))}function yIe(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,a=e.sourceEvent,c=oee({lockAPI:t,store:r,registry:i,draggableId:o});if(!c)return null;var u=i.draggable.getById(o),f=gIe(n,u.descriptor.id);if(!f||a&&!u.options.canDragInteractiveElements&&lIe(f,a))return null;var h=t.claim(s||qd),p="PRE_DRAG";function g(){return u.options.shouldRespectForcePress}function v(){return t.isActive(h)}function y(A,k){q_({expected:A,phase:p,isLockActive:v,shouldWarn:!0})&&r.dispatch(k())}var S=y.bind(null,"DRAGGING");function w(A){function k(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(k(),p!=="PRE_DRAG"&&We(!1)),r.dispatch(dke(A.liftActionArgs)),p="DRAGGING";function O(D,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),A.cleanup(),N.shouldBlockNextClick){var H=ba(window,[{eventName:"click",fn:vIe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(H)}k(),r.dispatch(jZ({reason:D}))}return $({isActive:function(){return q_({expected:"DRAGGING",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(N){return O("DROP",N)},cancel:function(N){return O("CANCEL",N)}},A.actions)}function b(A){var k=O1(function(D){S(function(){return zZ({client:D})})}),O=w({liftActionArgs:{id:o,clientSelection:A,movementMode:"FLUID"},cleanup:function(){return k.cancel()},actions:{move:k}});return $({},O,{move:k})}function x(){var A={moveUp:function(){return S(xke)},moveRight:function(){return S(_ke)},moveDown:function(){return S(wke)},moveLeft:function(){return S(Ske)}};return w({liftActionArgs:{id:o,clientSelection:cIe(f),movementMode:"SNAP"},cleanup:qd,actions:A})}function E(){var A=q_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!0});A&&t.release()}var I={isActive:function(){return q_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:b,snapLift:x,abort:E};return I}var bIe=[QAe,tIe,sIe];function xIe(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?bIe:[],i||[]),a=R.useState(function(){return BAe()})[0],c=_t(function(b,x){b.isDragging&&!x.isDragging&&a.tryAbandon()},[a]);qs(function(){var b=n.getState(),x=n.subscribe(function(){var E=n.getState();c(b,E),b=E});return x},[a,n,c]),qs(function(){return a.tryAbandon},[a.tryAbandon]);for(var u=_t(function(w){return oee({lockAPI:a,registry:r,store:n,draggableId:w})},[a,r,n]),f=_t(function(w,b,x){return yIe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:w,forceSensorStop:b,sourceEvent:x&&x.sourceEvent?x.sourceEvent:null})},[t,a,r,n]),h=_t(function(w){return mIe(t,w)},[t]),p=_t(function(w){var b=r.draggable.findById(w);return b?b.options:null},[r.draggable]),g=_t(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(gj()))},[a,n]),v=_t(a.isClaimed,[a]),y=Cn(function(){return{canGetLock:u,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:p,tryReleaseLock:g,isLockClaimed:v}},[u,f,h,p,g,v]),S=0;S{},onDeleteItem:o=()=>{},enabled:s=!1,element:a=C.jsx(pRe,{}),value:c,id:u,i:f=0,variant:h="default",extrasPlacement:p="center",autoFocus:g,cardStyle:v,sortable:y}){const[S,w]=R.useState(null),b=Dn(),x=E=>C.jsxs(ht,{display:"flex",alignItems:p,children:[y&&C.jsx("div",{...E,children:C.jsx(ht,{color:"text.secondary",sx:{pr:2},children:C.jsx(R1e,{})})}),e!==null&&R.cloneElement(e,{style:{marginRight:b.spacing(1),marginTop:b.spacing(.5),marginBottom:b.spacing(.5)},color:"action"}),C.jsx(ht,{flexGrow:1,sx:{ml:e===null?2:0},children:R.cloneElement(a,{onDelete:()=>o(u??f),autoFocus:g,value:c,key:u??f,onValueChange:I=>i(u??f,I,s),onChange:I=>i(u??f,I.target.value,s),ref:I=>w(I)})}),C.jsxs(ht,{display:"flex",alignItems:"center",children:[t&&C.jsx(Yg,{color:"primary",edge:"end",onChange:(I,A)=>i(u??f,c,A),checked:s}),r&&C.jsx(Fp,{edge:"end",onClick:()=>{S!=null&&S.focus&&S.focus()},children:C.jsx(jk,{})}),n&&C.jsx(Fp,{onClick:()=>o(u??f),children:C.jsx(k1e,{})})]})]});return C.jsx(lRe,{index:f,draggableId:`${u}`,children:E=>C.jsx("div",{ref:E.innerRef,...E.draggableProps,children:C.jsx(ht,{sx:{pb:1,ml:2},children:h==="outlined"?C.jsx(Cge,{variant:"outlined",style:{borderColor:"transparent",paddingRight:b.spacing(2),transition:b.transitions.create(["box-shadow","border-color"]),...v},children:x(E.dragHandleProps)}):x(E.dragHandleProps)})})})}function vRe(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}function yRe(e){const{addItemLabel:t="Add Item",label:n,text:r,onAddItem:i=()=>{},onDeleteItem:o=()=>{},items:s=[],placeholderText:a,autoFocus:c,getCategory:u,getOrder:f,onChange:h,extras:p}=e,g=mRe(),v=Dn(),[y,S]=R.useState(s),[w,b]=R.useState(-1);R.useEffect(()=>{const A=setTimeout(()=>{S(s)},v.transitions.duration.standard);return()=>{clearTimeout(A)}},[s,S,v.transitions.duration.standard]);const x=te.uniqBy([...y,...s],A=>A.id).map(A=>s.find(k=>A.id===k.id)??A).map((A,k)=>{const{enabled:O,element:D,value:N,id:H}=A??{};return{value:N,render:G=>C.jsx(BD,{in:!!s.find(z=>z.id===A.id),unmountOnExit:!0,appear:!g,mountOnEnter:!0,children:C.jsx(gRe,{...e,onDeleteItem:z=>{o(z),b(-1)},enabled:O,element:D,value:N,id:H,i:k,autoFocus:c||k===w,...G})}),key:H,in:!!s.find(G=>G.id===A.id)}}),E=te.sortBy(x,A=>u==null?void 0:u(A.value),A=>f==null?void 0:f(A.value)).map(A=>({...A,render:k=>C.jsx(ht,{children:A.render(k)},A.key)}));return C.jsx(CIe,{onDragEnd:A=>{if(!A.destination)return;const k=vRe(s,A.source.index,A.destination.index);h==null||h(k),S(k)},children:C.jsxs(Xg,{subheader:n||r?C.jsx(C.Fragment,{children:C.jsxs(Tme,{disableSticky:!0,children:[n&&C.jsx(jt,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:n}),r&&C.jsx(jt,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:v.spacing(3)},children:r})]})}):void 0,children:[C.jsx(ht,{mt:u?-1:0,children:C.jsx(dee,{droppableId:"list",children:A=>C.jsxs("div",{...A.droppableProps,ref:A.innerRef,children:[(()=>{const k=[];return E.forEach((O,D)=>{u&&I(E,D,O)&&k.push(C.jsx(BD,{in:s.some(N=>u(N.value)===u(O.value)),appear:!0,children:C.jsx(ht,{pl:2,pb:2,pt:1,children:C.jsx(jt,{variant:"overline",color:"text.secondary",children:u(O.value)})})},u(O.value))),k.push(O.render())}),k})(),A.placeholder]})})}),C.jsx(BD,{in:!(s!=null&&s.length),children:C.jsx(ht,{ml:2,mb:1,pt:u?1:0,children:C.jsx(jt,{component:"div",color:"text.secondary",children:a??"No items"})})}),C.jsxs(ht,{p:2,pt:1,mb:-3,children:[C.jsx(Nz,{disableElevation:!0,variant:"outlined",startIcon:C.jsx(b1e,{}),color:"primary",onClick:()=>{i(),b(s.length)},sx:{borderColor:A=>kn(A.palette.text.primary,A.palette.action.activatedOpacity)},children:C.jsx(ht,{sx:{color:"text.primary"},children:t})}),p]})]})});function I(A,k,O){return!!(u&&(A[k-1]===void 0||u(A[k-1].value)!==u(O.value)))}}function lA({onChange:e,value:t=[],editor:n,create:r,...i}){const[o,s]=R.useState(t??[]);function a(c){s(c),e==null||e(c)}return R.useEffect(()=>{s(t)},[t]),C.jsx(ht,{sx:{ml:-2},children:C.jsx(yRe,{...i,items:o.map(c=>({id:c.key,value:c,element:n==null?void 0:n(c)})),useDelete:!0,useEdit:!1,onAddItem:()=>a==null?void 0:a([...o,{key:qo(),...r==null?void 0:r()}]),onDeleteItem:c=>a==null?void 0:a(te.filter(o,u=>u.key!==c)),onChangeItem:(c,u)=>a==null?void 0:a(te.map(o,f=>f.key===c?u:f)),onChange:c=>a==null?void 0:a(te.map(c,u=>u.value))})})}const wd=[{key:"equal",apply:(e,t)=>e===t},{key:"less-than",apply:(e,t)=>ee>t}],bRe=["any","source","destination","expanding","generating","closing"];function xRe({value:e,onValueChange:t,properties:n}){var i,o;function r(s){t==null||t({...e,...s})}return C.jsxs(En,{children:[C.jsx(Fx,{placeholder:"Event",sx:{minWidth:160},items:te.map(bRe,s=>({value:s,label:te.startCase(s)})),onChange:s=>r({type:s==="any"?void 0:s}),value:e.type??"any"}),C.jsx(Ku,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),C.jsx(Fx,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:te.map(n,s=>({value:s,label:C.jsxs(C.Fragment,{children:[te.last(s.split(".")),C.jsx(ai,{}),C.jsx(jt,{color:"text.secondary",variant:"body2",component:"span",children:`event.${s}`})]})})),onChange:s=>r({property:s}),value:e.property}),C.jsx(ai,{}),C.jsx(Fx,{placeholder:"Condition",items:wd.map(s=>({value:s.key,label:te.startCase(s.key)})),value:((i=e==null?void 0:e.condition)==null?void 0:i.key)??((o=wd==null?void 0:wd[0])==null?void 0:o.key),onChange:s=>r({condition:te.find(wd,{key:s})})}),C.jsx(ai,{}),C.jsx(Ew,{label:"Reference",fullWidth:!0,value:`${e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:s=>r({reference:+s.target.value}),type:"number"}),C.jsx(ai,{sx:{px:2}}),C.jsx(v3,{checked:!!e.active,onChange:(s,a)=>r({active:a})})]})}const wRe=["f","g"],_Re=["variables"];function SRe(){const[{breakpoints:e=[]},t]=eA(),n=te.uniq([...wRe,...te.flatMap(_Re,r=>te.flatMap([],i=>te.map(te.keys(te.get(i,r)),o=>`${r}.${o}`)))]);return C.jsx(ht,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(ht,{sx:{minWidth:720,mb:2},children:C.jsx(lA,{icon:null,value:e,useDelete:!0,useEdit:!1,editor:r=>C.jsx(xRe,{value:r,properties:n}),create:()=>({active:!0,property:n==null?void 0:n[0],condition:wd==null?void 0:wd[0],type:void 0,reference:0}),onChange:te.debounce(r=>t(()=>({breakpoints:r})),1e3),addItemLabel:"Breakpoint",placeholderText:"Click the button below to add a breakpoint."})})})}function ERe(){const{controls:e,onChange:t,state:n}=bf(),[{monotonicF:r,monotonicG:i},o]=eA(),[s,a]=R.useState("standard");function c(u){return C.jsx(jt,{variant:"overline",color:"text.secondary",children:u})}return C.jsx(WJ,{value:s,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(XJ,{onChange:(u,f)=>a(f),children:[C.jsx(ng,{label:"Standard",value:"standard"}),C.jsx(ng,{label:"Advanced",value:"advanced"})]})}),C.jsxs(zn.Content,{children:[C.jsx(ht,{overflow:"auto",height:"100%",children:C.jsxs(ht,{pt:6,height:"100%",children:[C.jsxs(sg,{value:"standard",children:[C.jsxs(ht,{children:[c("General"),C.jsxs(En,{children:[C.jsx(v3,{label:"Monotonic f value",checked:!!r,onChange:(u,f)=>o(()=>({monotonicF:f}))}),C.jsx(ai,{}),C.jsx(v3,{label:"Monotonic g value",checked:!!i,onChange:(u,f)=>o(()=>({monotonicG:f}))})]})]}),C.jsx(ai,{}),C.jsxs(ht,{children:[c("Breakpoints"),C.jsx(SRe,{})]}),C.jsxs(ht,{children:[c("Export"),C.jsx(En,{mt:1})]})]}),C.jsx(sg,{value:"advanced",sx:{p:0,height:"100%"},children:C.jsx(rCe,{})})]})})," "]}),C.jsx(zn.Extras,{children:e})]})})}function pp({label:e,icon:t=C.jsx(X1e,{}),...n}){return C.jsxs(En,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",textAlign:"center",vertical:!0,pt:6,...n,children:[R.cloneElement(t,{sx:{mb:2},fontSize:"large"}),C.jsx(jt,{children:e})]})}function CRe(){const{controls:e,onChange:t,state:n}=bf(),[r]=KQ();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:r.length?C.jsx(Aw,{y:!0,children:C.jsx(Xg,{sx:{pt:6},children:te.map(r,(i,o)=>C.jsxs("div",{children:[C.jsx(Bx,{children:C.jsx(rc,{primary:i.content,secondary:i.timestamp})}),C.jsx(Ku,{})]},o))})}):C.jsx(pp,{pt:6,label:"Logs",icon:C.jsx(UQ,{})})})}),C.jsx(zn.Extras,{children:e})]})}const TRe=te.constant(!0),[im,kRe]=mc({layers:[]});function Vp(e,t=TRe){const[n,r]=R.useState(e),[{layers:i},o]=im(),s=te.filter(i,t),a=n?te.find(s,{key:n}):te.head(s);return R.useEffect(()=>{r(e)},[e]),R.useEffect(()=>{a&&a.key!==n&&r(a.key)},[a,n,r]),R.useMemo(()=>({key:a==null?void 0:a.key,setKey:r,layer:a,setLayer:c=>{const u={...a,...c};o(({layers:f})=>({layers:te.map(f,h=>h.key===u.key?u:h)}))},layers:s}),[a,o,s])}var fee={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:Xt,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,h){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,v=0,y=f.length;if(g)for(;v=G&&(F+=N.value),N.mode==="max"&&z<=G&&(F+=N.value),L[j]||(L[j]=""),F&&(" "+L[j]+" ").indexOf(" "+F+" ")===-1&&(L[j]+=" "+F));for(var W in V)V.hasOwnProperty(W)&&(L[V[W]]?this.element.setAttribute(V[W],L[V[W]].substr(1)):this.element.removeAttribute(V[W]))}}function p(k,O){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new h(k,O)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,O,D,N){if(typeof s[k]>"u"){s[k]=[];var H=a.length;o.innerHTML+=` + `}},s=[r,n,i,o];return{always:Nb(s,"always"),resting:Nb(s,"resting"),dragging:Nb(s,"dragging"),dropAnimating:Nb(s,"dropAnimating"),userCancel:Nb(s,"userCancel")}},qs=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u"?R.useLayoutEffect:R.useEffect,wN=function(){var t=document.querySelector("head");return t||We(!1),t},tG=function(t){var n=document.createElement("style");return t&&n.setAttribute("nonce",t),n.type="text/css",n};function PAe(e,t){var n=Cn(function(){return RAe(e)},[e]),r=R.useRef(null),i=R.useRef(null),o=_t(Oi(function(h){var p=i.current;p||We(!1),p.textContent=h}),[]),s=_t(function(h){var p=r.current;p||We(!1),p.textContent=h},[]);qs(function(){!r.current&&!i.current||We(!1);var h=tG(t),p=tG(t);return r.current=h,i.current=p,h.setAttribute(tv+"-always",e),p.setAttribute(tv+"-dynamic",e),wN().appendChild(h),wN().appendChild(p),s(n.always),o(n.resting),function(){var g=function(y){var S=y.current;S||We(!1),wN().removeChild(S),y.current=null};g(r),g(i)}},[t,s,o,n.always,n.resting,e]);var a=_t(function(){return o(n.dragging)},[o,n.dragging]),c=_t(function(h){if(h==="DROP"){o(n.dropAnimating);return}o(n.userCancel)},[o,n.dropAnimating,n.userCancel]),u=_t(function(){i.current&&o(n.resting)},[o,n.resting]),f=Cn(function(){return{dragging:a,dropping:c,resting:u}},[a,c,u]);return f}var ZZ=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function aA(e){return e instanceof ZZ(e).HTMLElement}function OAe(e,t){var n="["+nv.contextId+'="'+e+'"]',r=wZ(document.querySelectorAll(n));if(!r.length)return null;var i=_f(r,function(o){return o.getAttribute(nv.draggableId)===t});return!i||!aA(i)?null:i}function MAe(e){var t=R.useRef({}),n=R.useRef(null),r=R.useRef(null),i=R.useRef(!1),o=_t(function(p,g){var v={id:p,focus:g};return t.current[p]=v,function(){var S=t.current,w=S[p];w!==v&&delete S[p]}},[]),s=_t(function(p){var g=OAe(e,p);g&&g!==document.activeElement&&g.focus()},[e]),a=_t(function(p,g){n.current===p&&(n.current=g)},[]),c=_t(function(){r.current||i.current&&(r.current=requestAnimationFrame(function(){r.current=null;var p=n.current;p&&s(p)}))},[s]),u=_t(function(p){n.current=null;var g=document.activeElement;g&&g.getAttribute(nv.draggableId)===p&&(n.current=p)},[]);qs(function(){return i.current=!0,function(){i.current=!1;var p=r.current;p&&cancelAnimationFrame(p)}},[]);var f=Cn(function(){return{register:o,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:a}},[o,u,c,a]);return f}function DAe(){var e={draggables:{},droppables:{}},t=[];function n(h){return t.push(h),function(){var g=t.indexOf(h);g!==-1&&t.splice(g,1)}}function r(h){t.length&&t.forEach(function(p){return p(h)})}function i(h){return e.draggables[h]||null}function o(h){var p=i(h);return p||We(!1),p}var s={register:function(p){e.draggables[p.descriptor.id]=p,r({type:"ADDITION",value:p})},update:function(p,g){var v=e.draggables[g.descriptor.id];v&&v.uniqueId===p.uniqueId&&(delete e.draggables[g.descriptor.id],e.draggables[p.descriptor.id]=p)},unregister:function(p){var g=p.descriptor.id,v=i(g);v&&p.uniqueId===v.uniqueId&&(delete e.draggables[g],r({type:"REMOVAL",value:p}))},getById:o,findById:i,exists:function(p){return!!i(p)},getAllByType:function(p){return LC(e.draggables).filter(function(g){return g.descriptor.type===p})}};function a(h){return e.droppables[h]||null}function c(h){var p=a(h);return p||We(!1),p}var u={register:function(p){e.droppables[p.descriptor.id]=p},unregister:function(p){var g=a(p.descriptor.id);g&&p.uniqueId===g.uniqueId&&delete e.droppables[p.descriptor.id]},getById:c,findById:a,exists:function(p){return!!a(p)},getAllByType:function(p){return LC(e.droppables).filter(function(g){return g.descriptor.type===p})}};function f(){e.draggables={},e.droppables={},t.length=0}return{draggable:s,droppable:u,subscribe:n,clean:f}}function LAe(){var e=Cn(DAe,[]);return R.useEffect(function(){return function(){requestAnimationFrame(e.clean)}},[e]),e}var kj=de.createContext(null),BC=function(){var e=document.body;return e||We(!1),e},NAe={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},BAe=function(t){return"rbd-announcement-"+t};function $Ae(e){var t=Cn(function(){return BAe(e)},[e]),n=R.useRef(null);R.useEffect(function(){var o=document.createElement("div");return n.current=o,o.id=t,o.setAttribute("aria-live","assertive"),o.setAttribute("aria-atomic","true"),$(o.style,NAe),BC().appendChild(o),function(){setTimeout(function(){var c=BC();c.contains(o)&&c.removeChild(o),o===n.current&&(n.current=null)})}},[t]);var r=_t(function(i){var o=n.current;if(o){o.textContent=i;return}},[]);return r}var FAe=0,zAe={separator:"::"};function Aj(e,t){return t===void 0&&(t=zAe),Cn(function(){return""+e+t.separator+FAe++},[t.separator,e])}function jAe(e){var t=e.contextId,n=e.uniqueId;return"rbd-hidden-text-"+t+"-"+n}function UAe(e){var t=e.contextId,n=e.text,r=Aj("hidden-text",{separator:"-"}),i=Cn(function(){return jAe({contextId:t,uniqueId:r})},[r,t]);return R.useEffect(function(){var s=document.createElement("div");return s.id=i,s.textContent=n,s.style.display="none",BC().appendChild(s),function(){var c=BC();c.contains(s)&&c.removeChild(s)}},[i,n]),i}var lA=de.createContext(null);function eee(e){var t=R.useRef(e);return R.useEffect(function(){t.current=e}),t}function HAe(){var e=null;function t(){return!!e}function n(s){return s===e}function r(s){e&&We(!1);var a={abandon:s};return e=a,a}function i(){e||We(!1),e=null}function o(){e&&(e.abandon(),i())}return{isClaimed:t,isActive:n,claim:r,release:i,tryAbandon:o}}var WAe=9,GAe=13,Ij=27,tee=32,VAe=33,qAe=34,XAe=35,YAe=36,KAe=37,QAe=38,JAe=39,ZAe=40,q_,eIe=(q_={},q_[GAe]=!0,q_[WAe]=!0,q_),nee=function(e){eIe[e.keyCode]&&e.preventDefault()},cA=function(){var e="visibilitychange";if(typeof document>"u")return e;var t=[e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],n=_f(t,function(r){return"on"+r in document});return n||e}(),ree=0,nG=5;function tIe(e,t){return Math.abs(t.x-e.x)>=nG||Math.abs(t.y-e.y)>=nG}var rG={type:"IDLE"};function nIe(e){var t=e.cancel,n=e.completed,r=e.getPhase,i=e.setPhase;return[{eventName:"mousemove",fn:function(s){var a=s.button,c=s.clientX,u=s.clientY;if(a===ree){var f={x:c,y:u},h=r();if(h.type==="DRAGGING"){s.preventDefault(),h.actions.move(f);return}h.type!=="PENDING"&&We(!1);var p=h.point;if(tIe(p,f)){s.preventDefault();var g=h.actions.fluidLift(f);i({type:"DRAGGING",actions:g})}}}},{eventName:"mouseup",fn:function(s){var a=r();if(a.type!=="DRAGGING"){t();return}s.preventDefault(),a.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"mousedown",fn:function(s){r().type==="DRAGGING"&&s.preventDefault(),t()}},{eventName:"keydown",fn:function(s){var a=r();if(a.type==="PENDING"){t();return}if(s.keyCode===Ij){s.preventDefault(),t();return}nee(s)}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){r().type==="PENDING"&&t()}},{eventName:"webkitmouseforcedown",fn:function(s){var a=r();if(a.type==="IDLE"&&We(!1),a.actions.shouldRespectForcePress()){t();return}s.preventDefault()}},{eventName:cA,fn:t}]}function rIe(e){var t=R.useRef(rG),n=R.useRef(Xd),r=Cn(function(){return{eventName:"mousedown",fn:function(h){if(!h.defaultPrevented&&h.button===ree&&!(h.ctrlKey||h.metaKey||h.shiftKey||h.altKey)){var p=e.findClosestDraggableId(h);if(p){var g=e.tryGetLock(p,s,{sourceEvent:h});if(g){h.preventDefault();var v={x:h.clientX,y:h.clientY};n.current(),u(g,v)}}}}}},[e]),i=Cn(function(){return{eventName:"webkitmouseforcewillbegin",fn:function(h){if(!h.defaultPrevented){var p=e.findClosestDraggableId(h);if(p){var g=e.findOptionsForDraggable(p);g&&(g.shouldRespectForcePress||e.canGetLock(p)&&h.preventDefault())}}}}},[e]),o=_t(function(){var h={passive:!1,capture:!0};n.current=xa(window,[i,r],h)},[i,r]),s=_t(function(){var f=t.current;f.type!=="IDLE"&&(t.current=rG,n.current(),o())},[o]),a=_t(function(){var f=t.current;s(),f.type==="DRAGGING"&&f.actions.cancel({shouldBlockNextClick:!0}),f.type==="PENDING"&&f.actions.abort()},[s]),c=_t(function(){var h={capture:!0,passive:!1},p=nIe({cancel:a,completed:s,getPhase:function(){return t.current},setPhase:function(v){t.current=v}});n.current=xa(window,p,h)},[a,s]),u=_t(function(h,p){t.current.type!=="IDLE"&&We(!1),t.current={type:"PENDING",point:p,actions:h},c()},[c]);qs(function(){return o(),function(){n.current()}},[o])}var wm;function iIe(){}var oIe=(wm={},wm[qAe]=!0,wm[VAe]=!0,wm[YAe]=!0,wm[XAe]=!0,wm);function sIe(e,t){function n(){t(),e.cancel()}function r(){t(),e.drop()}return[{eventName:"keydown",fn:function(o){if(o.keyCode===Ij){o.preventDefault(),n();return}if(o.keyCode===tee){o.preventDefault(),r();return}if(o.keyCode===ZAe){o.preventDefault(),e.moveDown();return}if(o.keyCode===QAe){o.preventDefault(),e.moveUp();return}if(o.keyCode===JAe){o.preventDefault(),e.moveRight();return}if(o.keyCode===KAe){o.preventDefault(),e.moveLeft();return}if(oIe[o.keyCode]){o.preventDefault();return}nee(o)}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:cA,fn:n}]}function aIe(e){var t=R.useRef(iIe),n=Cn(function(){return{eventName:"keydown",fn:function(o){if(o.defaultPrevented||o.keyCode!==tee)return;var s=e.findClosestDraggableId(o);if(!s)return;var a=e.tryGetLock(s,f,{sourceEvent:o});if(!a)return;o.preventDefault();var c=!0,u=a.snapLift();t.current();function f(){c||We(!1),c=!1,t.current(),r()}t.current=xa(window,sIe(u,f),{capture:!0,passive:!1})}}},[e]),r=_t(function(){var o={passive:!1,capture:!0};t.current=xa(window,[n],o)},[n]);qs(function(){return r(),function(){t.current()}},[r])}var _N={type:"IDLE"},lIe=120,cIe=.15;function uIe(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(i){i.preventDefault()}},{eventName:"keydown",fn:function(i){if(n().type!=="DRAGGING"){t();return}i.keyCode===Ij&&i.preventDefault(),t()}},{eventName:cA,fn:t}]}function dIe(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}s.hasMoved=!0;var a=o.touches[0],c=a.clientX,u=a.clientY,f={x:c,y:u};o.preventDefault(),s.actions.move(f)}},{eventName:"touchend",fn:function(o){var s=r();if(s.type!=="DRAGGING"){t();return}o.preventDefault(),s.actions.drop({shouldBlockNextClick:!0}),n()}},{eventName:"touchcancel",fn:function(o){if(r().type!=="DRAGGING"){t();return}o.preventDefault(),t()}},{eventName:"touchforcechange",fn:function(o){var s=r();s.type==="IDLE"&&We(!1);var a=o.touches[0];if(a){var c=a.force>=cIe;if(c){var u=s.actions.shouldRespectForcePress();if(s.type==="PENDING"){u&&t();return}if(u){if(s.hasMoved){o.preventDefault();return}t();return}o.preventDefault()}}}},{eventName:cA,fn:t}]}function fIe(e){var t=R.useRef(_N),n=R.useRef(Xd),r=_t(function(){return t.current},[]),i=_t(function(g){t.current=g},[]),o=Cn(function(){return{eventName:"touchstart",fn:function(g){if(!g.defaultPrevented){var v=e.findClosestDraggableId(g);if(v){var y=e.tryGetLock(v,a,{sourceEvent:g});if(y){var S=g.touches[0],w=S.clientX,b=S.clientY,x={x:w,y:b};n.current(),h(y,x)}}}}}},[e]),s=_t(function(){var g={capture:!0,passive:!1};n.current=xa(window,[o],g)},[o]),a=_t(function(){var p=t.current;p.type!=="IDLE"&&(p.type==="PENDING"&&clearTimeout(p.longPressTimerId),i(_N),n.current(),s())},[s,i]),c=_t(function(){var p=t.current;a(),p.type==="DRAGGING"&&p.actions.cancel({shouldBlockNextClick:!0}),p.type==="PENDING"&&p.actions.abort()},[a]),u=_t(function(){var g={capture:!0,passive:!1},v={cancel:c,completed:a,getPhase:r},y=xa(window,dIe(v),g),S=xa(window,uIe(v),g);n.current=function(){y(),S()}},[c,r,a]),f=_t(function(){var g=r();g.type!=="PENDING"&&We(!1);var v=g.actions.fluidLift(g.point);i({type:"DRAGGING",actions:v,hasMoved:!1})},[r,i]),h=_t(function(g,v){r().type!=="IDLE"&&We(!1);var y=setTimeout(f,lIe);i({type:"PENDING",point:v,actions:g,longPressTimerId:y}),u()},[u,r,i,f]);qs(function(){return s(),function(){n.current();var v=r();v.type==="PENDING"&&(clearTimeout(v.longPressTimerId),i(_N))}},[r,s,i]),qs(function(){var g=xa(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}]);return g},[])}var hIe={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function iee(e,t){if(t==null)return!1;var n=!!hIe[t.tagName.toLowerCase()];if(n)return!0;var r=t.getAttribute("contenteditable");return r==="true"||r===""?!0:t===e?!1:iee(e,t.parentElement)}function pIe(e,t){var n=t.target;return aA(n)?iee(e,n):!1}var mIe=function(e){return yl(e.getBoundingClientRect()).center};function gIe(e){return e instanceof ZZ(e).Element}var vIe=function(){var e="matches";if(typeof document>"u")return e;var t=[e,"msMatchesSelector","webkitMatchesSelector"],n=_f(t,function(r){return r in Element.prototype});return n||e}();function oee(e,t){return e==null?null:e[vIe](t)?e:oee(e.parentElement,t)}function yIe(e,t){return e.closest?e.closest(t):oee(e,t)}function bIe(e){return"["+nv.contextId+'="'+e+'"]'}function xIe(e,t){var n=t.target;if(!gIe(n))return null;var r=bIe(e),i=yIe(n,r);return!i||!aA(i)?null:i}function wIe(e,t){var n=xIe(e,t);return n?n.getAttribute(nv.draggableId):null}function _Ie(e,t){var n="["+k3.contextId+'="'+e+'"]',r=wZ(document.querySelectorAll(n)),i=_f(r,function(o){return o.getAttribute(k3.id)===t});return!i||!aA(i)?null:i}function SIe(e){e.preventDefault()}function X_(e){var t=e.expected,n=e.phase,r=e.isLockActive;return e.shouldWarn,!(!r()||t!==n)}function see(e){var t=e.lockAPI,n=e.store,r=e.registry,i=e.draggableId;if(t.isClaimed())return!1;var o=r.draggable.findById(i);return!(!o||!o.options.isEnabled||!YZ(n.getState(),i))}function EIe(e){var t=e.lockAPI,n=e.contextId,r=e.store,i=e.registry,o=e.draggableId,s=e.forceSensorStop,a=e.sourceEvent,c=see({lockAPI:t,store:r,registry:i,draggableId:o});if(!c)return null;var u=i.draggable.getById(o),f=_Ie(n,u.descriptor.id);if(!f||a&&!u.options.canDragInteractiveElements&&pIe(f,a))return null;var h=t.claim(s||Xd),p="PRE_DRAG";function g(){return u.options.shouldRespectForcePress}function v(){return t.isActive(h)}function y(A,k){X_({expected:A,phase:p,isLockActive:v,shouldWarn:!0})&&r.dispatch(k())}var S=y.bind(null,"DRAGGING");function w(A){function k(){t.release(),p="COMPLETED"}p!=="PRE_DRAG"&&(k(),p!=="PRE_DRAG"&&We(!1)),r.dispatch(vke(A.liftActionArgs)),p="DRAGGING";function O(L,N){if(N===void 0&&(N={shouldBlockNextClick:!1}),A.cleanup(),N.shouldBlockNextClick){var H=xa(window,[{eventName:"click",fn:SIe,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(H)}k(),r.dispatch(UZ({reason:L}))}return $({isActive:function(){return X_({expected:"DRAGGING",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,drop:function(N){return O("DROP",N)},cancel:function(N){return O("CANCEL",N)}},A.actions)}function b(A){var k=D1(function(L){S(function(){return jZ({client:L})})}),O=w({liftActionArgs:{id:o,clientSelection:A,movementMode:"FLUID"},cleanup:function(){return k.cancel()},actions:{move:k}});return $({},O,{move:k})}function x(){var A={moveUp:function(){return S(Tke)},moveRight:function(){return S(Ake)},moveDown:function(){return S(kke)},moveLeft:function(){return S(Ike)}};return w({liftActionArgs:{id:o,clientSelection:mIe(f),movementMode:"SNAP"},cleanup:Xd,actions:A})}function E(){var A=X_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!0});A&&t.release()}var I={isActive:function(){return X_({expected:"PRE_DRAG",phase:p,isLockActive:v,shouldWarn:!1})},shouldRespectForcePress:g,fluidLift:b,snapLift:x,abort:E};return I}var CIe=[rIe,aIe,fIe];function TIe(e){var t=e.contextId,n=e.store,r=e.registry,i=e.customSensors,o=e.enableDefaultSensors,s=[].concat(o?CIe:[],i||[]),a=R.useState(function(){return HAe()})[0],c=_t(function(b,x){b.isDragging&&!x.isDragging&&a.tryAbandon()},[a]);qs(function(){var b=n.getState(),x=n.subscribe(function(){var E=n.getState();c(b,E),b=E});return x},[a,n,c]),qs(function(){return a.tryAbandon},[a.tryAbandon]);for(var u=_t(function(w){return see({lockAPI:a,registry:r,store:n,draggableId:w})},[a,r,n]),f=_t(function(w,b,x){return EIe({lockAPI:a,registry:r,contextId:t,store:n,draggableId:w,forceSensorStop:b,sourceEvent:x&&x.sourceEvent?x.sourceEvent:null})},[t,a,r,n]),h=_t(function(w){return wIe(t,w)},[t]),p=_t(function(w){var b=r.draggable.findById(w);return b?b.options:null},[r.draggable]),g=_t(function(){a.isClaimed()&&(a.tryAbandon(),n.getState().phase!=="IDLE"&&n.dispatch(bj()))},[a,n]),v=_t(a.isClaimed,[a]),y=Cn(function(){return{canGetLock:u,tryGetLock:f,findClosestDraggableId:h,findOptionsForDraggable:p,tryReleaseLock:g,isLockClaimed:v}},[u,f,h,p,g,v]),S=0;S{},onDeleteItem:o=()=>{},enabled:s=!1,element:a=C.jsx(xRe,{}),value:c,id:u,i:f=0,variant:h="default",extrasPlacement:p="center",autoFocus:g,cardStyle:v,sortable:y}){const[S,w]=R.useState(null),b=Ln(),x=E=>C.jsxs(ht,{display:"flex",alignItems:p,children:[y&&C.jsx("div",{...E,children:C.jsx(ht,{color:"text.secondary",sx:{pr:2},children:C.jsx(L1e,{})})}),e!==null&&R.cloneElement(e,{style:{marginRight:b.spacing(1),marginTop:b.spacing(.5),marginBottom:b.spacing(.5)},color:"action"}),C.jsx(ht,{flexGrow:1,sx:{ml:e===null?2:0},children:R.cloneElement(a,{onDelete:()=>o(u??f),autoFocus:g,value:c,key:u??f,onValueChange:I=>i(u??f,I,s),onChange:I=>i(u??f,I.target.value,s),ref:I=>w(I)})}),C.jsxs(ht,{display:"flex",alignItems:"center",children:[t&&C.jsx(Kg,{color:"primary",edge:"end",onChange:(I,A)=>i(u??f,c,A),checked:s}),r&&C.jsx(jp,{edge:"end",onClick:()=>{S!=null&&S.focus&&S.focus()},children:C.jsx(Hk,{})}),n&&C.jsx(jp,{onClick:()=>o(u??f),children:C.jsx(O1e,{})})]})]});return C.jsx(pRe,{index:f,draggableId:`${u}`,children:E=>C.jsx("div",{ref:E.innerRef,...E.draggableProps,children:C.jsx(ht,{sx:{pb:1,ml:2},children:h==="outlined"?C.jsx(Rge,{variant:"outlined",style:{borderColor:"transparent",paddingRight:b.spacing(2),transition:b.transitions.create(["box-shadow","border-color"]),...v},children:x(E.dragHandleProps)}):x(E.dragHandleProps)})})})}function SRe(e,t,n){const r=Array.from(e),[i]=r.splice(t,1);return r.splice(n,0,i),r}function ERe(e){const{addItemLabel:t="Add Item",label:n,text:r,onAddItem:i=()=>{},onDeleteItem:o=()=>{},items:s=[],placeholderText:a,autoFocus:c,getCategory:u,getOrder:f,onChange:h,extras:p}=e,g=wRe(),v=Ln(),[y,S]=R.useState(s),[w,b]=R.useState(-1);R.useEffect(()=>{const A=setTimeout(()=>{S(s)},v.transitions.duration.standard);return()=>{clearTimeout(A)}},[s,S,v.transitions.duration.standard]);const x=te.uniqBy([...y,...s],A=>A.id).map(A=>s.find(k=>A.id===k.id)??A).map((A,k)=>{const{enabled:O,element:L,value:N,id:H}=A??{};return{value:N,render:G=>C.jsx(FL,{in:!!s.find(z=>z.id===A.id),unmountOnExit:!0,appear:!g,mountOnEnter:!0,children:C.jsx(_Re,{...e,onDeleteItem:z=>{o(z),b(-1)},enabled:O,element:L,value:N,id:H,i:k,autoFocus:c||k===w,...G})}),key:H,in:!!s.find(G=>G.id===A.id)}}),E=te.sortBy(x,A=>u==null?void 0:u(A.value),A=>f==null?void 0:f(A.value)).map(A=>({...A,render:k=>C.jsx(ht,{children:A.render(k)},A.key)}));return C.jsx(PIe,{onDragEnd:A=>{if(!A.destination)return;const k=SRe(s,A.source.index,A.destination.index);h==null||h(k),S(k)},children:C.jsxs(Yg,{subheader:n||r?C.jsx(C.Fragment,{children:C.jsxs(Pme,{disableSticky:!0,children:[n&&C.jsx(Ut,{variant:"body1",gutterBottom:!0,color:"textPrimary",children:n}),r&&C.jsx(Ut,{variant:"body2",color:"text.secondary",gutterBottom:!0,style:{marginBottom:v.spacing(3)},children:r})]})}):void 0,children:[C.jsx(ht,{mt:u?-1:0,children:C.jsx(fee,{droppableId:"list",children:A=>C.jsxs("div",{...A.droppableProps,ref:A.innerRef,children:[(()=>{const k=[];return E.forEach((O,L)=>{u&&I(E,L,O)&&k.push(C.jsx(FL,{in:s.some(N=>u(N.value)===u(O.value)),appear:!0,children:C.jsx(ht,{pl:2,pb:2,pt:1,children:C.jsx(Ut,{variant:"overline",color:"text.secondary",children:u(O.value)})})},u(O.value))),k.push(O.render())}),k})(),A.placeholder]})})}),C.jsx(FL,{in:!(s!=null&&s.length),children:C.jsx(ht,{ml:2,mb:1,pt:u?1:0,children:C.jsx(Ut,{component:"div",color:"text.secondary",children:a??"No items"})})}),C.jsxs(ht,{p:2,pt:1,mb:-3,children:[C.jsx($z,{disableElevation:!0,variant:"outlined",startIcon:C.jsx(E1e,{}),color:"primary",onClick:()=>{i(),b(s.length)},sx:{borderColor:A=>kn(A.palette.text.primary,A.palette.action.activatedOpacity)},children:C.jsx(ht,{sx:{color:"text.primary"},children:t})}),p]})]})});function I(A,k,O){return!!(u&&(A[k-1]===void 0||u(A[k-1].value)!==u(O.value)))}}function uA({onChange:e,value:t=[],editor:n,create:r,...i}){const[o,s]=R.useState(t??[]);function a(c){s(c),e==null||e(c)}return R.useEffect(()=>{s(t)},[t]),C.jsx(ht,{sx:{ml:-2},children:C.jsx(ERe,{...i,items:o.map(c=>({id:c.key,value:c,element:n==null?void 0:n(c)})),useDelete:!0,useEdit:!1,onAddItem:()=>a==null?void 0:a([...o,{key:qo(),...r==null?void 0:r()}]),onDeleteItem:c=>a==null?void 0:a(te.filter(o,u=>u.key!==c)),onChangeItem:(c,u)=>a==null?void 0:a(te.map(o,f=>f.key===c?u:f)),onChange:c=>a==null?void 0:a(te.map(c,u=>u.value))})})}const _d=[{key:"equal",apply:(e,t)=>e===t},{key:"less-than",apply:(e,t)=>ee>t}],CRe=["any","source","destination","expanding","generating","closing"];function TRe({value:e,onValueChange:t,properties:n}){var i,o;function r(s){t==null||t({...e,...s})}return C.jsxs(En,{children:[C.jsx(jx,{placeholder:"Event",sx:{minWidth:160},items:te.map(CRe,s=>({value:s,label:te.startCase(s)})),onChange:s=>r({type:s==="any"?void 0:s}),value:e.type??"any"}),C.jsx(Qu,{flexItem:!0,orientation:"vertical",sx:{mx:2}}),C.jsx(jx,{placeholder:"Property",sx:{minWidth:140,textOverflow:"ellipsis",whiteSpace:"nowrap"},items:te.map(n,s=>({value:s,label:C.jsxs(C.Fragment,{children:[te.last(s.split(".")),C.jsx(ai,{}),C.jsx(Ut,{color:"text.secondary",variant:"body2",component:"span",children:`event.${s}`})]})})),onChange:s=>r({property:s}),value:e.property}),C.jsx(ai,{}),C.jsx(jx,{placeholder:"Condition",items:_d.map(s=>({value:s.key,label:te.startCase(s.key)})),value:((i=e==null?void 0:e.condition)==null?void 0:i.key)??((o=_d==null?void 0:_d[0])==null?void 0:o.key),onChange:s=>r({condition:te.find(_d,{key:s})})}),C.jsx(ai,{}),C.jsx(Cw,{label:"Reference",fullWidth:!0,value:`${e.reference??0}`,variant:"filled",inputProps:{inputMode:"numeric",pattern:"[0-9]*"},onChange:s=>r({reference:+s.target.value}),type:"number"}),C.jsx(ai,{sx:{px:2}}),C.jsx(x3,{checked:!!e.active,onChange:(s,a)=>r({active:a})})]})}const kRe=["f","g"],ARe=["variables"];function IRe(){const[{breakpoints:e=[]},t]=nA(),n=te.uniq([...kRe,...te.flatMap(ARe,r=>te.flatMap([],i=>te.map(te.keys(te.get(i,r)),o=>`${r}.${o}`)))]);return C.jsx(ht,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(ht,{sx:{minWidth:720,mb:2},children:C.jsx(uA,{icon:null,value:e,useDelete:!0,useEdit:!1,editor:r=>C.jsx(TRe,{value:r,properties:n}),create:()=>({active:!0,property:n==null?void 0:n[0],condition:_d==null?void 0:_d[0],type:void 0,reference:0}),onChange:te.debounce(r=>t(()=>({breakpoints:r})),1e3),addItemLabel:"Breakpoint",placeholderText:"Click the button below to add a breakpoint."})})})}function RRe(){const{controls:e,onChange:t,state:n}=wf(),[{monotonicF:r,monotonicG:i},o]=nA(),[s,a]=R.useState("standard");function c(u){return C.jsx(Ut,{variant:"overline",color:"text.secondary",children:u})}return C.jsx(GJ,{value:s,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(YJ,{onChange:(u,f)=>a(f),children:[C.jsx(rg,{label:"Standard",value:"standard"}),C.jsx(rg,{label:"Advanced",value:"advanced"})]})}),C.jsxs(zn.Content,{children:[C.jsx(ht,{overflow:"auto",height:"100%",children:C.jsxs(ht,{pt:6,height:"100%",children:[C.jsxs(ag,{value:"standard",children:[C.jsxs(ht,{children:[c("General"),C.jsxs(En,{children:[C.jsx(x3,{label:"Monotonic f value",checked:!!r,onChange:(u,f)=>o(()=>({monotonicF:f}))}),C.jsx(ai,{}),C.jsx(x3,{label:"Monotonic g value",checked:!!i,onChange:(u,f)=>o(()=>({monotonicG:f}))})]})]}),C.jsx(ai,{}),C.jsxs(ht,{children:[c("Breakpoints"),C.jsx(IRe,{})]}),C.jsxs(ht,{children:[c("Export"),C.jsx(En,{mt:1})]})]}),C.jsx(ag,{value:"advanced",sx:{p:0,height:"100%"},children:C.jsx(cCe,{})})]})})," "]}),C.jsx(zn.Extras,{children:e})]})})}function gp({label:e,icon:t=C.jsx(Z1e,{}),...n}){return C.jsxs(En,{justifyContent:"center",alignItems:"center",color:"text.secondary",bgcolor:"background.paper",textAlign:"center",vertical:!0,pt:6,...n,children:[R.cloneElement(t,{sx:{mb:2},fontSize:"large"}),C.jsx(Ut,{children:e})]})}function PRe(){const{controls:e,onChange:t,state:n}=wf(),[r]=JQ();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:r.length?C.jsx(Iw,{y:!0,children:C.jsx(Yg,{sx:{pt:6},children:te.map(r,(i,o)=>C.jsxs("div",{children:[C.jsx(Fx,{children:C.jsx(oc,{primary:i.content,secondary:i.timestamp})}),C.jsx(Qu,{})]},o))})}):C.jsx(gp,{pt:6,label:"Logs",icon:C.jsx(WQ,{})})})}),C.jsx(zn.Extras,{children:e})]})}const ORe=te.constant(!0),[om,MRe]=vc({layers:[]});function qp(e,t=ORe){const[n,r]=R.useState(e),[{layers:i},o]=om(),s=te.filter(i,t),a=n?te.find(s,{key:n}):te.head(s);return R.useEffect(()=>{r(e)},[e]),R.useEffect(()=>{a&&a.key!==n&&r(a.key)},[a,n,r]),R.useMemo(()=>({key:a==null?void 0:a.key,setKey:r,layer:a,setLayer:c=>{const u={...a,...c};o(({layers:f})=>({layers:te.map(f,h=>h.key===u.key?u:h)}))},layers:s}),[a,o,s])}var hee={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(typeof window<"u"?window:$t,function(){if(typeof window>"u")return null;var n=typeof window<"u"&&window.Math==Math?window:typeof self<"u"&&self.Math==Math?self:Function("return this")(),r=n.requestAnimationFrame||n.mozRequestAnimationFrame||n.webkitRequestAnimationFrame||function(f){return n.setTimeout(f,20)},i=n.cancelAnimationFrame||n.mozCancelAnimationFrame||n.webkitCancelAnimationFrame||function(f){n.clearTimeout(f)};function o(f,h){var p=Object.prototype.toString.call(f),g=p==="[object Array]"||p==="[object NodeList]"||p==="[object HTMLCollection]"||p==="[object Object]"||typeof jQuery<"u"&&f instanceof jQuery||typeof Elements<"u"&&f instanceof Elements,v=0,y=f.length;if(g)for(;v=G&&(F+=N.value),N.mode==="max"&&z<=G&&(F+=N.value),D[j]||(D[j]=""),F&&(" "+D[j]+" ").indexOf(" "+F+" ")===-1&&(D[j]+=" "+F));for(var W in V)V.hasOwnProperty(W)&&(D[V[W]]?this.element.setAttribute(V[W],D[V[W]].substr(1)):this.element.removeAttribute(V[W]))}}function p(k,O){k.elementQueriesSetupInformation||(k.elementQueriesSetupInformation=new h(k,O)),k.elementQueriesSensor||(k.elementQueriesSensor=new n(k,function(){k.elementQueriesSetupInformation.call()}))}function g(k,O,L,N){if(typeof s[k]>"u"){s[k]=[];var H=a.length;o.innerHTML+=` `+k+" {animation: 0.1s element-queries;}",o.innerHTML+=` -`+k+" > .resize-sensor {min-width: "+H+"px;}",a.push(k)}s[k].push({mode:O,property:D,value:N})}function v(k){var O;if(document.querySelectorAll&&(O=k?k.querySelectorAll.bind(k):document.querySelectorAll.bind(document)),!O&&typeof $$<"u"&&(O=$$),!O&&typeof jQuery<"u"&&(O=jQuery),!O)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return O}function y(k){var O=v(k);for(var D in s)if(s.hasOwnProperty(D))for(var N=O(D,k),H=0,G=N.length;HD[X].minWidth&&(K=X);if(K||(K=H),G!==K)if(z[K])O[G].style.display="none",O[K].style.display="block",G=K;else{var Q=new Image;Q.onload=function(){O[K].src=N[K],O[G].style.display="none",O[K].style.display="block",z[K]=!0,G=K},Q.src=N[K]}else O[K].src=N[K]}k.resizeSensorInstance=new n(k,W),W()}function w(){for(var k=v(),O=k("[data-responsive-image],[responsive-image]"),D=0,N=O.length;D img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+=` -@keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),A=!0);for(var O=0,D=document.styleSheets.length;O{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),C.jsx("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:C.jsx(mee.Provider,{value:r,children:C.jsx("div",{style:{width:"100%"},children:n.children})})})}const mee=R.createContext(null);function PRe(){return R.useContext(mee)}function ORe(e=128){const[t,n]=R.useState(!0),[r,i]=R.useState(!0),[o,s]=R.useState(!0),[a,c]=R.useState(null),u=R.useRef(0);return R.useEffect(()=>{if(a){const f=()=>{{const h=a.scrollTop<=e;h!==o&&s(h)}{const h=a.scrollTop<=1;h!==r&&i(h)}u.current-a.scrollTop&&(Math.abs(u.current-a.scrollTop)>2&&u.current>=0&&n(u.current>a.scrollTop),u.current=a.scrollTop)};return a.addEventListener("scroll",f,{passive:!0}),()=>{a.removeEventListener("scroll",f)}}},[a,o,r,u,e]),[t||o,o,r,a,c]}function Aj({children:e}){return C.jsx(jt,{variant:"h6",children:e})}function MRe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:a="sticky"}){const c=PRe(),u=Dn(),[,,f,,h]=ORe();R.useEffect(()=>{h(c)},[c,h]);const p=f?{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[0]},...t}:{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[4]},...n};return C.jsx(xhe,{elevation:0,position:a,style:{color:u.palette.text.primary,transition:u.transitions.create(i),...p},children:C.jsxs(zxe,{children:[C.jsx(Fp,{style:{marginRight:u.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:C.jsx(x1e,{})}),r&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(jp,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(ht,{style:{width:"100%"},children:r})})}),o&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(jp,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(ht,{style:{width:"100%"},children:o})})})]})})}function LRe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...a}){var I;const[c,u]=R.useState(void 0);R.useEffect(()=>{e&&u(e)},[e]);const f=Dn(),h=rj(),[p,g]=R.useState(null),[v,y]=R.useState(null),[S,w]=R.useState(!1),[b,x]=R.useState(0);R.useEffect(()=>{if(p&&v&&!h&&!r){const A=()=>{const O=window.innerHeight-64{window.removeEventListener("resize",A),k.detach()}}},[p,v,h,r]);const E=o==="submodal"&&h;return C.jsxs(wve,{fullScreen:h,...a,style:{...E&&{paddingTop:f.spacing(8)},...a.style},PaperProps:{ref:A=>g(A),style:{...E&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.paper,overflow:"hidden",height:r&&!h?r:S||h?"100%":b||"fit-content",position:"relative",maxWidth:"none",...(I=a.PaperProps)==null?void 0:I.style},...a.PaperProps},children:[C.jsx(RRe,{style:{height:"100%",width:h?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:C.jsx("div",{ref:A=>y(A),style:{width:"100%",height:"100%"},children:c})}),t]})}function Ij({options:e,appBar:t,trigger:n=()=>C.jsx(C.Fragment,{}),children:r}){return C.jsx(rm,{variant:"popover",children:({open:i,close:o,isOpen:s})=>C.jsxs(C.Fragment,{children:[R.cloneElement(n(i)),C.jsxs(LRe,{open:s,onClose:o,...e,children:[C.jsx(MRe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const[nv,DRe]=mc([],{reduce:YQ}),[$C,NRe]=mc({algorithms:[],maps:[],formats:[]}),[cA,BRe]=mc({specimen:0,connections:0,features:0,map:0},{reduce:(e,{action:t,key:n})=>Ta(e,r=>{switch(t){case"start":r[n]+=1;break;case"end":r[n]-=1}return r})});function $Re(){const[e]=cA();return te.some(te.values(e))}function om(e){const[,t]=cA();return R.useCallback(async n=>{t(()=>({action:"start",key:e}));const r=await n();return t(()=>({action:"end",key:e})),r},[e,t])}let gee=class extends Error{},FRe=class extends gee{},zRe=class extends gee{};const jRe=(e,t=",")=>e.join(t),URe={accept:"*",multiple:!1,strict:!1},Rj=e=>{const{accept:t,multiple:n,strict:r}={...URe,...e},i=GRe({multiple:n,accept:Array.isArray(t)?jRe(t):t});return new Promise(o=>{i.onchange=()=>{o(HRe(i.files,n,r)),i.remove()},i.click()})},HRe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new FRe);const o=WRe(e,t,n);if(!o)return i(new zRe);r(o)}),WRe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,GRe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n},VRe=""+new URL("hash.worker-76266fd6.js",import.meta.url).href,qRe=""+new URL("ipc.worker-78007631.js",import.meta.url).href,XRe=""+new URL("compress.worker-5a39bbab.js",import.meta.url).href,YRe=""+new URL("parseYaml.worker-25aef2ce.js",import.meta.url).href;class KRe extends Worker{constructor(){super(VRe,{type:"module"})}}class QRe extends Worker{constructor(){super(XRe,{type:"module"})}}class JRe extends Worker{constructor(){super(qRe,{type:"module"})}}class ZRe extends Worker{constructor(){super(YRe,{type:"module"})}}var ePe=function(){},tPe=ePe(),sm=function(e){return e!==tPe&&e!==null},nPe=sm,rPe=Array.prototype.forEach,iPe=Object.create,oPe=function(e,t){var n;for(n in e)t[n]=e[n]},vee=function(e){var t=iPe(null);return rPe.call(arguments,function(n){nPe(n)&&oPe(Object(n),t)}),t},sPe=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},SN,sG;function aPe(){return sG||(sG=1,SN=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),SN}var lPe=sPe()?Math.sign:aPe(),cPe=lPe,uPe=Math.abs,dPe=Math.floor,fPe=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:cPe(e)*dPe(uPe(e)))},hPe=fPe,pPe=Math.max,am=function(e){return pPe(0,hPe(e))},mPe=am,yee=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:mPe(e)},wf=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},gPe=sm,Iv=function(e){if(!gPe(e))throw new TypeError("Cannot use null or undefined");return e},vPe=wf,yPe=Iv,bPe=Function.prototype.bind,aG=Function.prototype.call,xPe=Object.keys,wPe=Object.prototype.propertyIsEnumerable,_Pe=function(e,t){return function(n,r){var i,o=arguments[2],s=arguments[3];return n=Object(yPe(n)),vPe(r),i=xPe(n),s&&i.sort(typeof s=="function"?bPe.call(s,n):void 0),typeof e!="function"&&(e=i[e]),aG.call(e,i,function(a,c){return wPe.call(n,a)?aG.call(r,o,n[a],a,n,c):t})}},uA=_Pe("forEach"),lm={},bee={exports:{}},SPe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},EN,lG;function EPe(){return lG||(lG=1,EN=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),EN}var CN,cG;function CPe(){if(cG)return CN;cG=1;var e=sm,t=Object.keys;return CN=function(n){return t(e(n)?Object(n):n)},CN}var TN,uG;function TPe(){return uG||(uG=1,TN=EPe()()?Object.keys:CPe()),TN}var kN,dG;function kPe(){if(dG)return kN;dG=1;var e=TPe(),t=Iv,n=Math.max;return kN=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},PN}var VPe=WPe()?String.prototype.contains:GPe(),mE=Cee,yG=HPe,Tee=xee,kee=vee,Hx=VPe,qPe=Eee.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],mE(e)?(n=Hx.call(e,"c"),r=Hx.call(e,"e"),i=Hx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?Tee(kee(o),s):s};qPe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],mE(t)?yG(t)?mE(n)?yG(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,mE(e)?(r=Hx.call(e,"c"),i=Hx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?Tee(kee(o),s):s};var cm=Eee.exports,k3={exports:{}};(function(e,t){var n=cm,r=wf,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=0?f=s(f):f=t(this.length)-s(o(f)),c=f;c"}},fB}var hB,r9;function U2e(){if(r9)return hB;r9=1;var e=j2e(),t=/[\n\r\u2028\u2029]/g;return hB=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),r},hB}var J_={exports:{}},i9;function Mee(){if(i9)return J_.exports;i9=1,J_.exports=e,J_.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return J_.exports}var o9;function H2e(){if(o9)return QG;o9=1;var e=Pee(),t=$2e(),n=z2e(),r=U2e(),i=Mee(),o=Mj(),s=Object.create,a=t("then","then:finally","done","done:finally");return lm.promise=function(c,u){var f=s(null),h=s(null),p=s(null);if(c===!0)c=null;else if(c=n(c),!a[c])throw new TypeError("'"+r(c)+"' is not valid promise mode");u.on("set",function(g,v,y){var S=!1;if(!i(y)){h[g]=y,u.emit("setasync",g,1);return}f[g]=1,p[g]=y;var w=function(I){var A=f[g];if(S)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) -Consider to rely on 'then' or 'done' mode instead.`);A&&(delete f[g],h[g]=I,u.emit("setasync",g,A))},b=function(){S=!0,f[g]&&(delete f[g],delete p[g],u.delete(g))},x=c;if(x||(x="then"),x==="then"){var E=function(){o(b)};y=y.then(function(I){o(w.bind(this,I))},E),typeof y.finally=="function"&&y.finally(E)}else if(x==="done"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");y.done(w,b)}else if(x==="done:finally"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof y.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");y.done(w),y.finally(b)}}),u.on("get",function(g,v,y){var S;if(f[g]){++f[g];return}S=p[g];var w=function(){u.emit("getasync",g,v,y)};i(S)?typeof S.done=="function"?S.done(w):S.then(function(){o(w)}):w()}),u.on("delete",function(g){if(delete p[g],f[g]){delete f[g];return}if(hasOwnProperty.call(h,g)){var v=h[g];delete h[g],u.emit("deleteasync",g,[v])}}),u.on("clear",function(){var g=h;h=s(null),f=s(null),p=s(null),u.emit("clearasync",e(g,function(v){return[v]}))})},QG}var s9={},a9;function W2e(){if(a9)return s9;a9=1;var e=wf,t=uA,n=lm,r=Function.prototype.apply;return n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise){o.on("deleteasync",a=function(c,u){r.call(i,null,u)}),o.on("clearasync",function(c){t(c,function(u,f){a(f,u)})});return}o.on("delete",a=function(c,u){i(u)}),o.on("clear",function(c){t(c,function(u,f){a(f,u)})})},s9}var l9={},pB,c9;function G2e(){return c9||(c9=1,pB=2147483647),pB}var mB,u9;function V2e(){if(u9)return mB;u9=1;var e=am,t=G2e();return mB=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},mB}var d9;function q2e(){if(d9)return l9;d9=1;var e=Pj(),t=uA,n=Mj(),r=Mee(),i=V2e(),o=lm,s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;return o.maxAge=function(f,h,p){var g,v,y,S;f=i(f),f&&(g=u(null),v=p.async&&o.async||p.promise&&o.promise?"async":"",h.on("set"+v,function(w){g[w]=setTimeout(function(){h.delete(w)},f),typeof g[w].unref=="function"&&g[w].unref(),S&&(S[w]&&S[w]!=="nextTick"&&clearTimeout(S[w]),S[w]=setTimeout(function(){delete S[w]},y),typeof S[w].unref=="function"&&S[w].unref())}),h.on("delete"+v,function(w){clearTimeout(g[w]),delete g[w],S&&(S[w]!=="nextTick"&&clearTimeout(S[w]),delete S[w])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?y=.333:y=a(c(Number(p.preFetch),1),0),y&&(S={},y=(1-y)*f,h.on("get"+v,function(w,b,x){S[w]||(S[w]="nextTick",n(function(){var E;S[w]==="nextTick"&&(delete S[w],h.delete(w),p.async&&(b=e(b),b.push(s)),E=h.memoized.apply(x,b),p.promise&&r(E)&&(typeof E.done=="function"?E.done(s,s):E.then(s,s)))}))}))),h.on("clear"+v,function(){t(g,function(w){clearTimeout(w)}),g={},S&&(t(S,function(w){w!=="nextTick"&&clearTimeout(w)}),S={})}))},l9}var f9={},gB,h9;function X2e(){if(h9)return gB;h9=1;var e=am,t=Object.create,n=Object.prototype.hasOwnProperty;return gB=function(r){var i=0,o=1,s=t(null),a=t(null),c=0,u;return r=e(r),{hit:function(f){var h=a[f],p=++c;if(s[p]=f,a[f]=p,!h)return++i,i<=r?void 0:(f=s[o],u(f),f);if(delete s[h],o===h)for(;!n.call(s,++o););},delete:u=function(f){var h=a[f];if(h&&(delete s[h],delete a[f],--i,o===h)){if(!i){c=0,o=1;return}for(;!n.call(s,++o););}},clear:function(){i=0,o=1,s=t(null),a=t(null),c=0}}},gB}var p9;function Y2e(){if(p9)return f9;p9=1;var e=am,t=X2e(),n=lm;return n.max=function(r,i,o){var s,a,c;r=e(r),r&&(a=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(u){u=a.hit(u),u!==void 0&&i.delete(u)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))},f9}var m9={},g9;function K2e(){if(g9)return m9;g9=1;var e=cm,t=lm,n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var a,c;a=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,function(u,f){a[u]=f||1}),o.on("get"+c,function(u){++a[u]}),o.on("delete"+c,function(u){delete a[u]}),o.on("clear"+c,function(){a={}}),r(o.memoized,{deleteRef:e(function(){var u=o.get(arguments);return u===null||!a[u]?null:--a[u]?!1:(o.delete(u),!0)}),getRefCount:e(function(){var u=o.get(arguments);return u===null||!a[u]?0:a[u]})})},m9}var Q2e=vee,J2e=yee,Z2e=A2e,eOe=function(e){var t=Q2e(arguments[1]),n;return t.normalizer||(n=t.length=J2e(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=I2e():n>1&&(t.normalizer=R2e()(n)):n===!1?t.normalizer=L2e()():n===1?t.normalizer=D2e()():t.normalizer=N2e()(n))),t.async&&B2e(),t.promise&&H2e(),t.dispose&&W2e(),t.maxAge&&q2e(),t.max&&Y2e(),t.refCounter&&K2e(),Z2e(e,t)};const _f=ds(eOe),tOe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},fA=e=>t=>tOe(e)(n=>(n.postMessage(t),new Promise((r,i)=>{n.onmessage=o=>{r(o.data)},n.onerror=i}))),Rv=(e,t={async:!0,length:1})=>_f(fA(e),t);te.memoize(fA(KRe));te.memoize(fA(QRe));const Lee=te.memoize(fA(ZRe));function Wx(e){return e.split(".").pop()}function Dee(e){return e.split(".").shift()}const v9="internal/custom",A3="json",I3=e=>({name:(e==null?void 0:e.id)===v9?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:v9}),nOe=e=>({name:(e==null?void 0:e.type)===A3?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:A3}),y9=["json","yaml"];async function rOe(){const e=await Rj({accept:y9.map(t=>`.trace.${t}`),strict:!0});if(e)return{file:e,read:async()=>{if(y9.includes(Wx(e.name))){const t=await e.text(),n=await Lee(t);return{...nOe(),format:n==null?void 0:n.format,content:n,name:te.startCase(Dee(e.name)),type:A3}}else throw new Error(`The format (${Wx(e.name)}) is unsupported.`)}}}async function iOe(e){const t=await Rj({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t)return{file:t,read:async()=>{if(te.find(e,{id:Wx(t.name)}))return{...I3(),format:Wx(t.name),content:await t.text(),name:te.startCase(Dee(t.name))};throw new Error(`The format (${Wx(t.name)}) is unsupported.`)}}}const Nee=20*1024*1024,[Bee,oOe]=mc({},{reduce:(e,t)=>te.omitBy(Uk(e,t),te.isUndefined)});function sOe(e){return new Promise(t=>te.delay(t,e))}function Lj(e){const[,t]=Bee();return R.useCallback(async(n,r)=>{t(()=>({[e]:r})),sOe(300);const i=await n();return t(()=>({[e]:void 0})),i},[e,t])}function Dj(e){return`${(e/(1024*1024)).toFixed(2)} MB`}function aOe({onChange:e,value:t}){const n=gc(),r=om("map"),i=Lj("map"),[o]=nv(),[{maps:s,formats:a}]=$C();return C.jsx(Gs,{showArrow:!0,icon:C.jsx(jQ,{}),label:"Choose Map",value:t==null?void 0:t.id,items:[I3(t),...s.map(c=>{var u;return{...c,description:(u=te.find(o,{url:c.source}))==null?void 0:u.name}})],onChange:async c=>{switch(c){case I3().id:try{const u=await iOe(a);u&&r(async()=>{n("Opening map...");const f=u.file.size>Nee?await i(u.read,`Opening map (${Dj(u.file.size)})`):await u.read();f&&(e==null||e(f))})}catch(u){n(`${u}`)}break;default:e==null||e(te.find(s,{id:c}));break}}})}function lOe({onChange:e,value:t}){const n=gc(),r=om("specimen"),i=Lj("specimen");return C.jsx(nf,{icon:C.jsx(jQ,{}),onClick:async()=>{try{const o=await rOe();o&&r(async()=>{n("Opening trace...");const s=o.file.size>Nee?await i(o.read,`Opening trace (${Dj(o.file.size)})`):await o.read();s&&(e==null||e(s))})}catch(o){n(`${o}`)}},children:t!=null&&t.id?`Uploaded Trace - ${t.name}`:"Choose File"})}const lx="500";function cOe(e){return parseInt(e.replace("#","0x"))}const Nj={source:fd.A400,destination:ud.A400,updating:ap[lx],expanding:hX[lx],generating:pX[lx],closing:fX[lx],end:dd.A400};te.mapValues(Nj,cOe);function B1(e){return(e&&Nj[e])??u4[lx]}function uOe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function dOe(){return this.eachAfter(uOe)}function fOe(e){var t=this,n,r=[t],i,o,s;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,s=i.length;o=0;--i)n.push(r[i]);return this}function pOe(e){for(var t=this,n=[t],r=[],i,o,s;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,s=i.length;o=0;)n+=r[i].value;t.value=n})}function gOe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function vOe(e){for(var t=this,n=yOe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function yOe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function bOe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function xOe(){var e=[];return this.each(function(t){e.push(t)}),e}function wOe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function _Oe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function Bj(e,t){var n=new $1(e),r=+e.value&&(n.value=e.value),i,o=[n],s,a,c,u;for(t==null&&(t=EOe);i=o.pop();)if(r&&(i.value=+i.data.value),(a=t(i.data))&&(u=a.length))for(i.children=new Array(u),c=u-1;c>=0;--c)o.push(s=i.children[c]=new $1(a[c])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(TOe)}function SOe(){return Bj(this).eachBefore(COe)}function EOe(e){return e.children}function COe(e){e.data=e.data.data}function TOe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function $1(e){this.data=e,this.depth=this.height=0,this.parent=null}$1.prototype=Bj.prototype={constructor:$1,count:dOe,each:fOe,eachAfter:pOe,eachBefore:hOe,sum:mOe,sort:gOe,path:vOe,ancestors:bOe,descendants:xOe,leaves:wOe,links:_Oe,copy:SOe};function kOe(e,t){return e.parent===t.parent?1:2}function vB(e){var t=e.children;return t?t[0]:e.t}function yB(e){var t=e.children;return t?t[t.length-1]:e.t}function AOe(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function IOe(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function ROe(e,t,n){return e.a.parent===t.parent?e.a:n}function gE(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}gE.prototype=Object.create($1.prototype);function POe(e){for(var t=new gE(e,0),n,r=[t],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new gE(o[s],s)),i.parent=n;return(t.parent=new gE(null,0)).children=[t],t}function OOe(){var e=kOe,t=1,n=1,r=null;function i(u){var f=POe(u);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)u.eachBefore(c);else{var h=u,p=u,g=u;u.eachBefore(function(b){b.xp.x&&(p=b),b.depth>g.depth&&(g=b)});var v=h===p?1:e(h,p)/2,y=v-h.x,S=t/(p.x+v+y),w=n/(g.depth||1);u.eachBefore(function(b){b.x=(b.x+y)*S,b.y=b.depth*w})}return u}function o(u){var f=u.children,h=u.parent.children,p=u.i?h[u.i-1]:null;if(f){IOe(u);var g=(f[0].z+f[f.length-1].z)/2;p?(u.z=p.z+e(u._,p._),u.m=u.z-g):u.z=g}else p&&(u.z=p.z+e(u._,p._));u.parent.A=a(u,p,u.parent.A||h[0])}function s(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function a(u,f,h){if(f){for(var p=u,g=u,v=f,y=p.parent.children[0],S=p.m,w=g.m,b=v.m,x=y.m,E;v=yB(v),p=vB(p),v&&p;)y=vB(y),g=yB(g),g.a=u,E=v.z+b-p.z-S+e(v._,p._),E>0&&(AOe(ROe(v,u,h),u,E),S+=E,w+=E),b+=v.m,S+=p.m,x+=y.m,w+=g.m;v&&!yB(g)&&(g.t=v,g.m+=b-w),p&&!vB(y)&&(y.t=p,y.m+=S-x,h=u)}return h}function c(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}var R3="http://www.w3.org/1999/xhtml";const b9={svg:"http://www.w3.org/2000/svg",xhtml:R3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function hA(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),b9.hasOwnProperty(t)?{space:b9[t],local:e}:e}function MOe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===R3&&t.documentElement.namespaceURI===R3?t.createElement(e):t.createElementNS(n,e)}}function LOe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function $ee(e){var t=hA(e);return(t.local?LOe:MOe)(t)}function DOe(){}function $j(e){return e==null?DOe:function(){return this.querySelector(e)}}function NOe(e){typeof e!="function"&&(e=$j(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=x&&(x=b+1);!(I=S[x])&&++x=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function aMe(e){e||(e=lMe);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function cMe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function uMe(){return Array.from(this)}function dMe(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?_Me:typeof t=="function"?EMe:SMe)(e,t,n??"")):rv(this.node(),e)}function rv(e,t){return e.style.getPropertyValue(t)||Hee(e).getComputedStyle(e,null).getPropertyValue(t)}function TMe(e){return function(){delete this[e]}}function kMe(e,t){return function(){this[e]=t}}function AMe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function IMe(e,t){return arguments.length>1?this.each((t==null?TMe:typeof t=="function"?AMe:kMe)(e,t)):this.node()[e]}function Wee(e){return e.trim().split(/^|\s+/)}function Fj(e){return e.classList||new Gee(e)}function Gee(e){this._node=e,this._names=Wee(e.getAttribute("class")||"")}Gee.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function Vee(e,t){for(var n=Fj(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function rLe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n{}};function zj(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}vE.prototype=zj.prototype={constructor:vE,on:function(e,t){var n=this._,r=hLe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Z_(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Z_(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=yLe.exec(e))?new ts(t[1],t[2],t[3],1):(t=bLe.exec(e))?new ts(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=xLe.exec(e))?Z_(t[1],t[2],t[3],t[4]):(t=wLe.exec(e))?Z_(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=_Le.exec(e))?k9(t[1],t[2]/100,t[3]/100,1):(t=SLe.exec(e))?k9(t[1],t[2]/100,t[3]/100,t[4]):w9.hasOwnProperty(e)?E9(w9[e]):e==="transparent"?new ts(NaN,NaN,NaN,0):null}function E9(e){return new ts(e>>16&255,e>>8&255,e&255,1)}function Z_(e,t,n,r){return r<=0&&(e=t=n=NaN),new ts(e,t,n,r)}function TLe(e){return e instanceof Hw||(e=j1(e)),e?(e=e.rgb(),new ts(e.r,e.g,e.b,e.opacity)):new ts}function M3(e,t,n,r){return arguments.length===1?TLe(e):new ts(e,t,n,r??1)}function ts(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}jj(ts,M3,Kee(Hw,{brighter(e){return e=e==null?zC:Math.pow(zC,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?F1:Math.pow(F1,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ts(Cp(this.r),Cp(this.g),Cp(this.b),jC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:C9,formatHex:C9,formatHex8:kLe,formatRgb:T9,toString:T9}));function C9(){return`#${mp(this.r)}${mp(this.g)}${mp(this.b)}`}function kLe(){return`#${mp(this.r)}${mp(this.g)}${mp(this.b)}${mp((isNaN(this.opacity)?1:this.opacity)*255)}`}function T9(){const e=jC(this.opacity);return`${e===1?"rgb(":"rgba("}${Cp(this.r)}, ${Cp(this.g)}, ${Cp(this.b)}${e===1?")":`, ${e})`}`}function jC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Cp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function mp(e){return e=Cp(e),(e<16?"0":"")+e.toString(16)}function k9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new ml(e,t,n,r)}function Qee(e){if(e instanceof ml)return new ml(e.h,e.s,e.l,e.opacity);if(e instanceof Hw||(e=j1(e)),!e)return new ml;if(e instanceof ml)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(t===o?s=(n-r)/a+(n0&&c<1?0:s,new ml(s,a,c,e.opacity)}function ALe(e,t,n,r){return arguments.length===1?Qee(e):new ml(e,t,n,r??1)}function ml(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}jj(ml,ALe,Kee(Hw,{brighter(e){return e=e==null?zC:Math.pow(zC,e),new ml(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?F1:Math.pow(F1,e),new ml(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ts(bB(e>=240?e-240:e+120,i,r),bB(e,i,r),bB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new ml(A9(this.h),eS(this.s),eS(this.l),jC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=jC(this.opacity);return`${e===1?"hsl(":"hsla("}${A9(this.h)}, ${eS(this.s)*100}%, ${eS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function A9(e){return e=(e||0)%360,e<0?e+360:e}function eS(e){return Math.max(0,Math.min(1,e||0))}function bB(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Jee=e=>()=>e;function ILe(e,t){return function(n){return e+n*t}}function RLe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function PLe(e){return(e=+e)==1?Zee:function(t,n){return n-t?RLe(t,n,e):Jee(isNaN(t)?n:t)}}function Zee(e,t){var n=t-e;return n?ILe(e,n):Jee(isNaN(e)?t:e)}const I9=function e(t){var n=PLe(t);function r(i,o){var s=n((i=M3(i)).r,(o=M3(o)).r),a=n(i.g,o.g),c=n(i.b,o.b),u=Zee(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function vd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var L3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,xB=new RegExp(L3.source,"g");function OLe(e){return function(){return e}}function MLe(e){return function(t){return e(t)+""}}function LLe(e,t){var n=L3.lastIndex=xB.lastIndex=0,r,i,o,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=L3.exec(e))&&(i=xB.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,c.push({i:s,x:vd(r,i)})),n=xB.lastIndex;return n180?f+=360:f-u>180&&(u+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:vd(u,f)})):f&&h.push(i(h)+"rotate("+f+r)}function a(u,f,h,p){u!==f?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:vd(u,f)}):f&&h.push(i(h)+"skewX("+f+r)}function c(u,f,h,p,g,v){if(u!==h||f!==p){var y=g.push(i(g)+"scale(",null,",",null,")");v.push({i:y-4,x:vd(u,h)},{i:y-2,x:vd(f,p)})}else(h!==1||p!==1)&&g.push(i(g)+"scale("+h+","+p+")")}return function(u,f){var h=[],p=[];return u=e(u),f=e(f),o(u.translateX,u.translateY,f.translateX,f.translateY,h,p),s(u.rotate,f.rotate,h,p),a(u.skewX,f.skewX,h,p),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,h,p),u=f=null,function(g){for(var v=-1,y=p.length,S;++v=0&&e._call.call(void 0,t),e=e._next;--iv}function O9(){qp=(HC=U1.now())+pA,iv=cx=0;try{WLe()}finally{iv=0,VLe(),qp=0}}function GLe(){var e=U1.now(),t=e-HC;t>nte&&(pA-=t,HC=e)}function VLe(){for(var e,t=UC,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:UC=n);ux=e,N3(r)}function N3(e){if(!iv){cx&&(cx=clearTimeout(cx));var t=e-qp;t>24?(e<1/0&&(cx=setTimeout(O9,e-U1.now()-pA)),Bb&&(Bb=clearInterval(Bb))):(Bb||(HC=U1.now(),Bb=setInterval(GLe,nte)),iv=1,rte(O9))}}function M9(e,t,n){var r=new WC;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var qLe=zj("start","end","cancel","interrupt"),XLe=[],ote=0,L9=1,B3=2,yE=3,D9=4,$3=5,bE=6;function mA(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;YLe(e,n,{name:t,index:r,group:i,on:qLe,tween:XLe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ote})}function Hj(e,t){var n=Ol(e,t);if(n.state>ote)throw new Error("too late; already scheduled");return n}function yc(e,t){var n=Ol(e,t);if(n.state>yE)throw new Error("too late; already running");return n}function Ol(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function YLe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=ite(o,0,n.time);function o(u){n.state=L9,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var f,h,p,g;if(n.state!==L9)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===yE)return M9(s);g.state===D9?(g.state=bE,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[f]):+fB3&&r.state<$3,r.state=bE,r.timer.stop(),r.on.call(i?"interrupt":"cancel",e,e.__data__,r.index,r.group),delete n[s]}o&&delete e.__transition}}function KLe(e){return this.each(function(){xE(this,e)})}function QLe(e,t){var n,r;return function(){var i=yc(this,e),o=i.tween;if(o!==n){r=n=o;for(var s=0,a=r.length;s=0&&(t=t.slice(0,n)),!t||t==="start"})}function CDe(e,t,n){var r,i,o=EDe(t)?Hj:yc;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function TDe(e,t){var n=this._id;return arguments.length<2?Ol(this.node(),n).on.on(e):this.each(CDe(n,e,t))}function kDe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function ADe(){return this.on("end.remove",kDe(this._id))}function IDe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=$j(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s()=>e;function eNe(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function Tu(e,t,n){this.k=e,this.x=t,this.y=n}Tu.prototype={constructor:Tu,scale:function(e){return e===1?this:new Tu(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new Tu(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var GC=new Tu(1,0,0);Tu.prototype;function wB(e){e.stopImmediatePropagation()}function $b(e){e.preventDefault(),e.stopImmediatePropagation()}function tNe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function nNe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function N9(){return this.__zoom||GC}function rNe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function iNe(){return navigator.maxTouchPoints||"ontouchstart"in this}function oNe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function _B(){var e=tNe,t=nNe,n=oNe,r=rNe,i=iNe,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=ULe,u=zj("start","zoom","end"),f,h,p,g=500,v=150,y=0,S=10;function w(L){L.property("__zoom",N9).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",D).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(L,F,j,V){var W=L.selection?L.selection():L;W.property("__zoom",N9),L!==W?I(L,F,j,V):W.interrupt().each(function(){A(this,arguments).event(V).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},w.scaleBy=function(L,F,j,V){w.scaleTo(L,function(){var W=this.__zoom.k,K=typeof F=="function"?F.apply(this,arguments):F;return W*K},j,V)},w.scaleTo=function(L,F,j,V){w.transform(L,function(){var W=t.apply(this,arguments),K=this.__zoom,X=j==null?E(W):typeof j=="function"?j.apply(this,arguments):j,Q=K.invert(X),ie=typeof F=="function"?F.apply(this,arguments):F;return n(x(b(K,ie),X,Q),W,s)},j,V)},w.translateBy=function(L,F,j,V){w.transform(L,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,V)},w.translateTo=function(L,F,j,V,W){w.transform(L,function(){var K=t.apply(this,arguments),X=this.__zoom,Q=V==null?E(K):typeof V=="function"?V.apply(this,arguments):V;return n(GC.translate(Q[0],Q[1]).scale(X.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof j=="function"?-j.apply(this,arguments):-j),K,s)},V,W)};function b(L,F){return F=Math.max(o[0],Math.min(o[1],F)),F===L.k?L:new Tu(F,L.x,L.y)}function x(L,F,j){var V=F[0]-j[0]*L.k,W=F[1]-j[1]*L.k;return V===L.x&&W===L.y?L:new Tu(L.k,V,W)}function E(L){return[(+L[0][0]+ +L[1][0])/2,(+L[0][1]+ +L[1][1])/2]}function I(L,F,j,V){L.on("start.zoom",function(){A(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(V).end()}).tween("zoom",function(){var W=this,K=arguments,X=A(W,K).event(V),Q=t.apply(W,K),ie=j==null?E(Q):typeof j=="function"?j.apply(W,K):j,ce=Math.max(Q[1][0]-Q[0][0],Q[1][1]-Q[0][1]),ue=W.__zoom,se=typeof F=="function"?F.apply(W,K):F,J=c(ue.invert(ie).concat(ce/ue.k),se.invert(ie).concat(ce/se.k));return function(ae){if(ae===1)ae=se;else{var le=J(ae),he=ce/le[2];ae=new Tu(he,ie[0]-le[0]*he,ie[1]-le[1]*he)}X.zoom(null,ae)}})}function A(L,F,j){return!j&&L.__zooming||new k(L,F)}function k(L,F){this.that=L,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(L,F),this.taps=0}k.prototype={event:function(L){return L&&(this.sourceEvent=L),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(L,F){return this.mouse&&L!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&L!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&L!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(L){var F=$o(this.that).datum();u.call(L,this.that,new eNe(L,{sourceEvent:this.sourceEvent,target:w,type:L,transform:this.that.__zoom,dispatch:u}),F)}};function O(L,...F){if(!e.apply(this,arguments))return;var j=A(this,F).event(L),V=this.__zoom,W=Math.max(o[0],Math.min(o[1],V.k*Math.pow(2,r.apply(this,arguments)))),K=Hh(L);if(j.wheel)(j.mouse[0][0]!==K[0]||j.mouse[0][1]!==K[1])&&(j.mouse[1]=V.invert(j.mouse[0]=K)),clearTimeout(j.wheel);else{if(V.k===W)return;j.mouse=[K,V.invert(K)],xE(this),j.start()}$b(L),j.wheel=setTimeout(X,v),j.zoom("mouse",n(x(b(V,W),j.mouse[0],j.mouse[1]),j.extent,s));function X(){j.wheel=null,j.end()}}function D(L,...F){if(p||!e.apply(this,arguments))return;var j=L.currentTarget,V=A(this,F,!0).event(L),W=$o(L.view).on("mousemove.zoom",ie,!0).on("mouseup.zoom",ce,!0),K=Hh(L,j),X=L.clientX,Q=L.clientY;mLe(L.view),wB(L),V.mouse=[K,this.__zoom.invert(K)],xE(this),V.start();function ie(ue){if($b(ue),!V.moved){var se=ue.clientX-X,J=ue.clientY-Q;V.moved=se*se+J*J>y}V.event(ue).zoom("mouse",n(x(V.that.__zoom,V.mouse[0]=Hh(ue,j),V.mouse[1]),V.extent,s))}function ce(ue){W.on("mousemove.zoom mouseup.zoom",null),gLe(ue.view,V.moved),$b(ue),V.event(ue).end()}}function N(L,...F){if(e.apply(this,arguments)){var j=this.__zoom,V=Hh(L.changedTouches?L.changedTouches[0]:L,this),W=j.invert(V),K=j.k*(L.shiftKey?.5:2),X=n(x(b(j,K),V,W),t.apply(this,F),s);$b(L),a>0?$o(this).transition().duration(a).call(I,X,V,L):$o(this).call(w.transform,X,V,L)}}function H(L,...F){if(e.apply(this,arguments)){var j=L.touches,V=j.length,W=A(this,F,L.changedTouches.length===V).event(L),K,X,Q,ie;for(wB(L),X=0;X"u"&&(g=!0),typeof v>"u"&&(v=1/0);function E(I,A){if(I===null)return null;if(A===0)return I;var k,O;if(typeof I!="object")return I;if(n(I,r))k=new r;else if(n(I,i))k=new i;else if(n(I,o))k=new o(function(V,W){I.then(function(K){V(E(K,A-1))},function(K){W(E(K,A-1))})});else if(s.__isArray(I))k=[];else if(s.__isRegExp(I))k=new RegExp(I.source,h(I)),I.lastIndex&&(k.lastIndex=I.lastIndex);else if(s.__isDate(I))k=new Date(I.getTime());else{if(x&&Buffer.isBuffer(I))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(I.length):k=new Buffer(I.length),I.copy(k),k;n(I,Error)?k=Object.create(I):typeof y>"u"?(O=Object.getPrototypeOf(I),k=Object.create(O)):(k=Object.create(y),O=y)}if(g){var D=w.indexOf(I);if(D!=-1)return b[D];w.push(I),b.push(k)}n(I,r)&&I.forEach(function(V,W){var K=E(W,A-1),X=E(V,A-1);k.set(K,X)}),n(I,i)&&I.forEach(function(V){var W=E(V,A-1);k.add(W)});for(var N in I){var H;O&&(H=Object.getOwnPropertyDescriptor(O,N)),!(H&&H.set==null)&&(k[N]=E(I[N],A-1))}if(Object.getOwnPropertySymbols)for(var G=Object.getOwnPropertySymbols(I),N=0;N1&&arguments[1]!==void 0?arguments[1]:0,n=(Vi[e[t+0]]+Vi[e[t+1]]+Vi[e[t+2]]+Vi[e[t+3]]+"-"+Vi[e[t+4]]+Vi[e[t+5]]+"-"+Vi[e[t+6]]+Vi[e[t+7]]+"-"+Vi[e[t+8]]+Vi[e[t+9]]+"-"+Vi[e[t+10]]+Vi[e[t+11]]+Vi[e[t+12]]+Vi[e[t+13]]+Vi[e[t+14]]+Vi[e[t+15]]).toLowerCase();if(!uNe(n))throw TypeError("Stringified UUID is invalid");return n}function EB(e,t,n){e=e||{};var r=e.random||(e.rng||lNe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return dNe(r)}var F3={exports:{}},z3={exports:{}},fNe=function(){for(var t=arguments.length,n=[],r=0;r .resize-sensor {min-width: "+H+"px;}",a.push(k)}s[k].push({mode:O,property:L,value:N})}function v(k){var O;if(document.querySelectorAll&&(O=k?k.querySelectorAll.bind(k):document.querySelectorAll.bind(document)),!O&&typeof $$<"u"&&(O=$$),!O&&typeof jQuery<"u"&&(O=jQuery),!O)throw"No document.querySelectorAll, jQuery or Mootools's $$ found.";return O}function y(k){var O=v(k);for(var L in s)if(s.hasOwnProperty(L))for(var N=O(L,k),H=0,G=N.length;HL[X].minWidth&&(K=X);if(K||(K=H),G!==K)if(z[K])O[G].style.display="none",O[K].style.display="block",G=K;else{var Q=new Image;Q.onload=function(){O[K].src=N[K],O[G].style.display="none",O[K].style.display="block",z[K]=!0,G=K},Q.src=N[K]}else O[K].src=N[K]}k.resizeSensorInstance=new n(k,W),W()}function w(){for(var k=v(),O=k("[data-responsive-image],[responsive-image]"),L=0,N=O.length;L img, [data-responsive-image] {overflow: hidden; padding: 0; } [responsive-image] > img, [data-responsive-image] > img {width: 100%;}",o.innerHTML+=` +@keyframes element-queries { 0% { visibility: inherit; } }`,document.getElementsByTagName("head")[0].appendChild(o),A=!0);for(var O=0,L=document.styleSheets.length;O{if(r&&t)return r.addEventListener("scroll",t,{passive:!0}),()=>r.removeEventListener("scroll",t)},[r,t]),C.jsx("div",{...n,style:{height:"100%",width:"100%",overflow:"hidden scroll",...n.style},ref:o=>{i(o),e==null||e(o)},children:C.jsx(gee.Provider,{value:r,children:C.jsx("div",{style:{width:"100%"},children:n.children})})})}const gee=R.createContext(null);function BRe(){return R.useContext(gee)}function $Re(e=128){const[t,n]=R.useState(!0),[r,i]=R.useState(!0),[o,s]=R.useState(!0),[a,c]=R.useState(null),u=R.useRef(0);return R.useEffect(()=>{if(a){const f=()=>{{const h=a.scrollTop<=e;h!==o&&s(h)}{const h=a.scrollTop<=1;h!==r&&i(h)}u.current-a.scrollTop&&(Math.abs(u.current-a.scrollTop)>2&&u.current>=0&&n(u.current>a.scrollTop),u.current=a.scrollTop)};return a.addEventListener("scroll",f,{passive:!0}),()=>{a.removeEventListener("scroll",f)}}},[a,o,r,u,e]),[t||o,o,r,a,c]}function Pj({children:e}){return C.jsx(Ut,{variant:"h6",children:e})}function FRe({onClose:e=()=>{},style:t,elevatedStyle:n,children:r,transitionProperties:i=["box-shadow","background","border-bottom"],elevatedChildren:o,simple:s,position:a="sticky"}){const c=BRe(),u=Ln(),[,,f,,h]=$Re();R.useEffect(()=>{h(c)},[c,h]);const p=f?{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[0]},...t}:{background:u.palette.background.paper,...!s&&{boxShadow:u.shadows[4]},...n};return C.jsx(Che,{elevation:0,position:a,style:{color:u.palette.text.primary,transition:u.transitions.create(i),...p},children:C.jsxs(Gxe,{children:[C.jsx(jp,{style:{marginRight:u.spacing(1)},"aria-label":"open drawer",edge:"start",onClick:()=>e(),children:C.jsx(C1e,{})}),r&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(Hp,{in:!!(!o||f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(ht,{style:{width:"100%"},children:r})})}),o&&C.jsx("div",{style:{gridColumn:1,gridRow:1,flex:1,overflow:"auto"},children:C.jsx(Hp,{in:!!(o&&!f),mountOnEnter:!0,unmountOnExit:!0,children:C.jsx(ht,{style:{width:"100%"},children:o})})})]})})}function zRe({children:e,actions:t,width:n=480,height:r,onTarget:i,variant:o="default",scrollable:s=!0,...a}){var I;const[c,u]=R.useState(void 0);R.useEffect(()=>{e&&u(e)},[e]);const f=Ln(),h=oj(),[p,g]=R.useState(null),[v,y]=R.useState(null),[S,w]=R.useState(!1),[b,x]=R.useState(0);R.useEffect(()=>{if(p&&v&&!h&&!r){const A=()=>{const O=window.innerHeight-64{window.removeEventListener("resize",A),k.detach()}}},[p,v,h,r]);const E=o==="submodal"&&h;return C.jsxs(Tve,{fullScreen:h,...a,style:{...E&&{paddingTop:f.spacing(8)},...a.style},PaperProps:{ref:A=>g(A),style:{...E&&{borderRadius:`${f.shape.borderRadius}px ${f.shape.borderRadius}px 0 0`},background:f.palette.background.paper,overflow:"hidden",height:r&&!h?r:S||h?"100%":b||"fit-content",position:"relative",maxWidth:"none",...(I=a.PaperProps)==null?void 0:I.style},...a.PaperProps},children:[C.jsx(NRe,{style:{height:"100%",width:h?void 0:n,maxWidth:"100%",overflow:s?void 0:"hidden"},onTarget:i,children:C.jsx("div",{ref:A=>y(A),style:{width:"100%",height:"100%"},children:c})}),t]})}function Oj({options:e,appBar:t,trigger:n=()=>C.jsx(C.Fragment,{}),children:r}){return C.jsx(im,{variant:"popover",children:({open:i,close:o,isOpen:s})=>C.jsxs(C.Fragment,{children:[R.cloneElement(n(i)),C.jsxs(zRe,{open:s,onClose:o,...e,children:[C.jsx(FRe,{onClose:o,...t}),r??(e==null?void 0:e.children)]})]})})}const[rv,jRe]=vc([],{reduce:QQ}),[FC,URe]=vc({algorithms:[],maps:[],formats:[]}),[dA,HRe]=vc({specimen:0,connections:0,features:0,map:0},{reduce:(e,{action:t,key:n})=>ka(e,r=>{switch(t){case"start":r[n]+=1;break;case"end":r[n]-=1}return r})});function WRe(){const[e]=dA();return te.some(te.values(e))}function sm(e){const[,t]=dA();return R.useCallback(async n=>{t(()=>({action:"start",key:e}));const r=await n();return t(()=>({action:"end",key:e})),r},[e,t])}let vee=class extends Error{},GRe=class extends vee{},VRe=class extends vee{};const qRe=(e,t=",")=>e.join(t),XRe={accept:"*",multiple:!1,strict:!1},Mj=e=>{const{accept:t,multiple:n,strict:r}={...XRe,...e},i=QRe({multiple:n,accept:Array.isArray(t)?qRe(t):t});return new Promise(o=>{i.onchange=()=>{o(YRe(i.files,n,r)),i.remove()},i.click()})},YRe=(e,t,n)=>new Promise((r,i)=>{if(!e)return i(new GRe);const o=KRe(e,t,n);if(!o)return i(new VRe);r(o)}),KRe=(e,t,n)=>!t&&n?e.length===1?e[0]:null:e.length?e:null,QRe=({accept:e,multiple:t})=>{const n=document.createElement("input");return n.type="file",n.multiple=t,n.accept=e,n},JRe=""+new URL("hash.worker-76266fd6.js",import.meta.url).href,ZRe=""+new URL("ipc.worker-78007631.js",import.meta.url).href,ePe=""+new URL("compress.worker-5a39bbab.js",import.meta.url).href,tPe=""+new URL("parseYaml.worker-25aef2ce.js",import.meta.url).href;class nPe extends Worker{constructor(){super(JRe,{type:"module"})}}class rPe extends Worker{constructor(){super(ePe,{type:"module"})}}class iPe extends Worker{constructor(){super(ZRe,{type:"module"})}}class oPe extends Worker{constructor(){super(tPe,{type:"module"})}}var sPe=function(){},aPe=sPe(),am=function(e){return e!==aPe&&e!==null},lPe=am,cPe=Array.prototype.forEach,uPe=Object.create,dPe=function(e,t){var n;for(n in e)t[n]=e[n]},yee=function(e){var t=uPe(null);return cPe.call(arguments,function(n){lPe(n)&&dPe(Object(n),t)}),t},fPe=function(){var e=Math.sign;return typeof e!="function"?!1:e(10)===1&&e(-20)===-1},CN,cG;function hPe(){return cG||(cG=1,CN=function(e){return e=Number(e),isNaN(e)||e===0?e:e>0?1:-1}),CN}var pPe=fPe()?Math.sign:hPe(),mPe=pPe,gPe=Math.abs,vPe=Math.floor,yPe=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:mPe(e)*vPe(gPe(e)))},bPe=yPe,xPe=Math.max,lm=function(e){return xPe(0,bPe(e))},wPe=lm,bee=function(e,t,n){var r;return isNaN(e)?(r=t,r>=0?n&&r?r-1:r:1):e===!1?!1:wPe(e)},Sf=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},_Pe=am,Pv=function(e){if(!_Pe(e))throw new TypeError("Cannot use null or undefined");return e},SPe=Sf,EPe=Pv,CPe=Function.prototype.bind,uG=Function.prototype.call,TPe=Object.keys,kPe=Object.prototype.propertyIsEnumerable,APe=function(e,t){return function(n,r){var i,o=arguments[2],s=arguments[3];return n=Object(EPe(n)),SPe(r),i=TPe(n),s&&i.sort(typeof s=="function"?CPe.call(s,n):void 0),typeof e!="function"&&(e=i[e]),uG.call(e,i,function(a,c){return kPe.call(n,a)?uG.call(r,o,n[a],a,n,c):t})}},fA=APe("forEach"),cm={},xee={exports:{}},IPe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},TN,dG;function RPe(){return dG||(dG=1,TN=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),TN}var kN,fG;function PPe(){if(fG)return kN;fG=1;var e=am,t=Object.keys;return kN=function(n){return t(e(n)?Object(n):n)},kN}var AN,hG;function OPe(){return hG||(hG=1,AN=RPe()()?Object.keys:PPe()),AN}var IN,pG;function MPe(){if(pG)return IN;pG=1;var e=OPe(),t=Pv,n=Math.max;return IN=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},MN}var JPe=KPe()?String.prototype.contains:QPe(),gE=Tee,wG=YPe,kee=wee,Aee=yee,Gx=JPe,ZPe=Cee.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],gE(e)?(n=Gx.call(e,"c"),r=Gx.call(e,"e"),i=Gx.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?kee(Aee(o),s):s};ZPe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],gE(t)?wG(t)?gE(n)?wG(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,gE(e)?(r=Gx.call(e,"c"),i=Gx.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?kee(Aee(o),s):s};var um=Cee.exports,R3={exports:{}};(function(e,t){var n=um,r=Sf,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=0?f=s(f):f=t(this.length)-s(o(f)),c=f;c"}},pB}var mB,s9;function X2e(){if(s9)return mB;s9=1;var e=q2e(),t=/[\n\r\u2028\u2029]/g;return mB=function(n){var r=e(n);return r.length>100&&(r=r.slice(0,99)+"…"),r=r.replace(t,function(i){return JSON.stringify(i).slice(1,-1)}),r},mB}var Z_={exports:{}},a9;function Dee(){if(a9)return Z_.exports;a9=1,Z_.exports=e,Z_.exports.default=e;function e(t){return!!t&&(typeof t=="object"||typeof t=="function")&&typeof t.then=="function"}return Z_.exports}var l9;function Y2e(){if(l9)return e9;l9=1;var e=Oee(),t=W2e(),n=V2e(),r=X2e(),i=Dee(),o=Nj(),s=Object.create,a=t("then","then:finally","done","done:finally");return cm.promise=function(c,u){var f=s(null),h=s(null),p=s(null);if(c===!0)c=null;else if(c=n(c),!a[c])throw new TypeError("'"+r(c)+"' is not valid promise mode");u.on("set",function(g,v,y){var S=!1;if(!i(y)){h[g]=y,u.emit("setasync",g,1);return}f[g]=1,p[g]=y;var w=function(I){var A=f[g];if(S)throw new Error(`Memoizee error: Detected unordered then|done & finally resolution, which in turn makes proper detection of success/failure impossible (when in 'done:finally' mode) +Consider to rely on 'then' or 'done' mode instead.`);A&&(delete f[g],h[g]=I,u.emit("setasync",g,A))},b=function(){S=!0,f[g]&&(delete f[g],delete p[g],u.delete(g))},x=c;if(x||(x="then"),x==="then"){var E=function(){o(b)};y=y.then(function(I){o(w.bind(this,I))},E),typeof y.finally=="function"&&y.finally(E)}else if(x==="done"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done' mode");y.done(w,b)}else if(x==="done:finally"){if(typeof y.done!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'done' in 'done:finally' mode");if(typeof y.finally!="function")throw new Error("Memoizee error: Retrieved promise does not implement 'finally' in 'done:finally' mode");y.done(w),y.finally(b)}}),u.on("get",function(g,v,y){var S;if(f[g]){++f[g];return}S=p[g];var w=function(){u.emit("getasync",g,v,y)};i(S)?typeof S.done=="function"?S.done(w):S.then(function(){o(w)}):w()}),u.on("delete",function(g){if(delete p[g],f[g]){delete f[g];return}if(hasOwnProperty.call(h,g)){var v=h[g];delete h[g],u.emit("deleteasync",g,[v])}}),u.on("clear",function(){var g=h;h=s(null),f=s(null),p=s(null),u.emit("clearasync",e(g,function(v){return[v]}))})},e9}var c9={},u9;function K2e(){if(u9)return c9;u9=1;var e=Sf,t=fA,n=cm,r=Function.prototype.apply;return n.dispose=function(i,o,s){var a;if(e(i),s.async&&n.async||s.promise&&n.promise){o.on("deleteasync",a=function(c,u){r.call(i,null,u)}),o.on("clearasync",function(c){t(c,function(u,f){a(f,u)})});return}o.on("delete",a=function(c,u){i(u)}),o.on("clear",function(c){t(c,function(u,f){a(f,u)})})},c9}var d9={},gB,f9;function Q2e(){return f9||(f9=1,gB=2147483647),gB}var vB,h9;function J2e(){if(h9)return vB;h9=1;var e=lm,t=Q2e();return vB=function(n){if(n=e(n),n>t)throw new TypeError(n+" exceeds maximum possible timeout");return n},vB}var p9;function Z2e(){if(p9)return d9;p9=1;var e=Dj(),t=fA,n=Nj(),r=Dee(),i=J2e(),o=cm,s=Function.prototype,a=Math.max,c=Math.min,u=Object.create;return o.maxAge=function(f,h,p){var g,v,y,S;f=i(f),f&&(g=u(null),v=p.async&&o.async||p.promise&&o.promise?"async":"",h.on("set"+v,function(w){g[w]=setTimeout(function(){h.delete(w)},f),typeof g[w].unref=="function"&&g[w].unref(),S&&(S[w]&&S[w]!=="nextTick"&&clearTimeout(S[w]),S[w]=setTimeout(function(){delete S[w]},y),typeof S[w].unref=="function"&&S[w].unref())}),h.on("delete"+v,function(w){clearTimeout(g[w]),delete g[w],S&&(S[w]!=="nextTick"&&clearTimeout(S[w]),delete S[w])}),p.preFetch&&(p.preFetch===!0||isNaN(p.preFetch)?y=.333:y=a(c(Number(p.preFetch),1),0),y&&(S={},y=(1-y)*f,h.on("get"+v,function(w,b,x){S[w]||(S[w]="nextTick",n(function(){var E;S[w]==="nextTick"&&(delete S[w],h.delete(w),p.async&&(b=e(b),b.push(s)),E=h.memoized.apply(x,b),p.promise&&r(E)&&(typeof E.done=="function"?E.done(s,s):E.then(s,s)))}))}))),h.on("clear"+v,function(){t(g,function(w){clearTimeout(w)}),g={},S&&(t(S,function(w){w!=="nextTick"&&clearTimeout(w)}),S={})}))},d9}var m9={},yB,g9;function eOe(){if(g9)return yB;g9=1;var e=lm,t=Object.create,n=Object.prototype.hasOwnProperty;return yB=function(r){var i=0,o=1,s=t(null),a=t(null),c=0,u;return r=e(r),{hit:function(f){var h=a[f],p=++c;if(s[p]=f,a[f]=p,!h)return++i,i<=r?void 0:(f=s[o],u(f),f);if(delete s[h],o===h)for(;!n.call(s,++o););},delete:u=function(f){var h=a[f];if(h&&(delete s[h],delete a[f],--i,o===h)){if(!i){c=0,o=1;return}for(;!n.call(s,++o););}},clear:function(){i=0,o=1,s=t(null),a=t(null),c=0}}},yB}var v9;function tOe(){if(v9)return m9;v9=1;var e=lm,t=eOe(),n=cm;return n.max=function(r,i,o){var s,a,c;r=e(r),r&&(a=t(r),s=o.async&&n.async||o.promise&&n.promise?"async":"",i.on("set"+s,c=function(u){u=a.hit(u),u!==void 0&&i.delete(u)}),i.on("get"+s,c),i.on("delete"+s,a.delete),i.on("clear"+s,a.clear))},m9}var y9={},b9;function nOe(){if(b9)return y9;b9=1;var e=um,t=cm,n=Object.create,r=Object.defineProperties;return t.refCounter=function(i,o,s){var a,c;a=n(null),c=s.async&&t.async||s.promise&&t.promise?"async":"",o.on("set"+c,function(u,f){a[u]=f||1}),o.on("get"+c,function(u){++a[u]}),o.on("delete"+c,function(u){delete a[u]}),o.on("clear"+c,function(){a={}}),r(o.memoized,{deleteRef:e(function(){var u=o.get(arguments);return u===null||!a[u]?null:--a[u]?!1:(o.delete(u),!0)}),getRefCount:e(function(){var u=o.get(arguments);return u===null||!a[u]?0:a[u]})})},y9}var rOe=yee,iOe=bee,oOe=D2e,sOe=function(e){var t=rOe(arguments[1]),n;return t.normalizer||(n=t.length=iOe(t.length,e.length,t.async),n!==0&&(t.primitive?n===!1?t.normalizer=L2e():n>1&&(t.normalizer=N2e()(n)):n===!1?t.normalizer=z2e()():n===1?t.normalizer=j2e()():t.normalizer=U2e()(n))),t.async&&H2e(),t.promise&&Y2e(),t.dispose&&K2e(),t.maxAge&&Z2e(),t.max&&tOe(),t.refCounter&&nOe(),oOe(e,t)};const Ef=ds(sOe),aOe=e=>async t=>{const n=new e,r=await t(n);return n.terminate(),r},pA=e=>t=>aOe(e)(n=>(n.postMessage(t),new Promise((r,i)=>{n.onmessage=o=>{r(o.data)},n.onerror=i}))),Ov=(e,t={async:!0,length:1})=>Ef(pA(e),t);te.memoize(pA(nPe));te.memoize(pA(rPe));const Lee=te.memoize(pA(oPe));function Vx(e){return e.split(".").pop()}function Nee(e){return e.split(".").shift()}const x9="internal/custom",P3="json",O3=e=>({name:(e==null?void 0:e.id)===x9?`Imported Map - ${e==null?void 0:e.name}`:"Import Map",description:"Internal",id:x9}),lOe=e=>({name:(e==null?void 0:e.type)===P3?`Imported Trace - ${e==null?void 0:e.name}`:"Import Trace",description:"Internal",id:P3}),w9=["json","yaml"];async function cOe(){const e=await Mj({accept:w9.map(t=>`.trace.${t}`),strict:!0});if(e)return{file:e,read:async()=>{if(w9.includes(Vx(e.name))){const t=await e.text(),n=await Lee(t);return{...lOe(),format:n==null?void 0:n.format,content:n,name:te.startCase(Nee(e.name)),type:P3}}else throw new Error(`The format (${Vx(e.name)}) is unsupported.`)}}}async function uOe(e){const t=await Mj({accept:e.map(({id:n})=>`.${n}`),strict:!0});if(t)return{file:t,read:async()=>{if(te.find(e,{id:Vx(t.name)}))return{...O3(),format:Vx(t.name),content:await t.text(),name:te.startCase(Nee(t.name))};throw new Error(`The format (${Vx(t.name)}) is unsupported.`)}}}const Bee=20*1024*1024,[$ee,dOe]=vc({},{reduce:(e,t)=>te.omitBy(Wk(e,t),te.isUndefined)});function fOe(e){return new Promise(t=>te.delay(t,e))}function Bj(e){const[,t]=$ee();return R.useCallback(async(n,r)=>{t(()=>({[e]:r})),fOe(300);const i=await n();return t(()=>({[e]:void 0})),i},[e,t])}function $j(e){return`${(e/(1024*1024)).toFixed(2)} MB`}function hOe({onChange:e,value:t}){const n=Ol(),r=sm("map"),i=Bj("map"),[o]=rv(),[{maps:s,formats:a}]=FC();return C.jsx(Gs,{showArrow:!0,icon:C.jsx(HQ,{}),label:"Choose Map",value:t==null?void 0:t.id,items:[O3(t),...s.map(c=>{var u;return{...c,description:(u=te.find(o,{url:c.source}))==null?void 0:u.name}})],onChange:async c=>{switch(c){case O3().id:try{const u=await uOe(a);u&&r(async()=>{n("Opening map...");const f=u.file.size>Bee?await i(u.read,`Opening map (${$j(u.file.size)})`):await u.read();f&&(e==null||e(f))})}catch(u){n(`${u}`)}break;default:e==null||e(te.find(s,{id:c}));break}}})}function pOe({onChange:e,value:t}){const n=Ol(),r=sm("specimen"),i=Bj("specimen");return C.jsx(of,{icon:C.jsx(HQ,{}),onClick:async()=>{try{const o=await cOe();o&&r(async()=>{n("Opening trace...");const s=o.file.size>Bee?await i(o.read,`Opening trace (${$j(o.file.size)})`):await o.read();s&&(e==null||e(s))})}catch(o){n(`${o}`)}},children:t!=null&&t.id?`Uploaded Trace - ${t.name}`:"Choose File"})}const ux="500";function mOe(e){return parseInt(e.replace("#","0x"))}const Fj={source:hd.A400,destination:dd.A400,updating:cp[ux],expanding:mX[ux],generating:gX[ux],closing:pX[ux],end:fd.A400};te.mapValues(Fj,mOe);function F1(e){return(e&&Fj[e])??h4[ux]}function gOe(e){var t=0,n=e.children,r=n&&n.length;if(!r)t=1;else for(;--r>=0;)t+=n[r].value;e.value=t}function vOe(){return this.eachAfter(gOe)}function yOe(e){var t=this,n,r=[t],i,o,s;do for(n=r.reverse(),r=[];t=n.pop();)if(e(t),i=t.children,i)for(o=0,s=i.length;o=0;--i)n.push(r[i]);return this}function xOe(e){for(var t=this,n=[t],r=[],i,o,s;t=n.pop();)if(r.push(t),i=t.children,i)for(o=0,s=i.length;o=0;)n+=r[i].value;t.value=n})}function _Oe(e){return this.eachBefore(function(t){t.children&&t.children.sort(e)})}function SOe(e){for(var t=this,n=EOe(t,e),r=[t];t!==n;)t=t.parent,r.push(t);for(var i=r.length;e!==n;)r.splice(i,0,e),e=e.parent;return r}function EOe(e,t){if(e===t)return e;var n=e.ancestors(),r=t.ancestors(),i=null;for(e=n.pop(),t=r.pop();e===t;)i=e,e=n.pop(),t=r.pop();return i}function COe(){for(var e=this,t=[e];e=e.parent;)t.push(e);return t}function TOe(){var e=[];return this.each(function(t){e.push(t)}),e}function kOe(){var e=[];return this.eachBefore(function(t){t.children||e.push(t)}),e}function AOe(){var e=this,t=[];return e.each(function(n){n!==e&&t.push({source:n.parent,target:n})}),t}function zj(e,t){var n=new z1(e),r=+e.value&&(n.value=e.value),i,o=[n],s,a,c,u;for(t==null&&(t=ROe);i=o.pop();)if(r&&(i.value=+i.data.value),(a=t(i.data))&&(u=a.length))for(i.children=new Array(u),c=u-1;c>=0;--c)o.push(s=i.children[c]=new z1(a[c])),s.parent=i,s.depth=i.depth+1;return n.eachBefore(OOe)}function IOe(){return zj(this).eachBefore(POe)}function ROe(e){return e.children}function POe(e){e.data=e.data.data}function OOe(e){var t=0;do e.height=t;while((e=e.parent)&&e.height<++t)}function z1(e){this.data=e,this.depth=this.height=0,this.parent=null}z1.prototype=zj.prototype={constructor:z1,count:vOe,each:yOe,eachAfter:xOe,eachBefore:bOe,sum:wOe,sort:_Oe,path:SOe,ancestors:COe,descendants:TOe,leaves:kOe,links:AOe,copy:IOe};function MOe(e,t){return e.parent===t.parent?1:2}function bB(e){var t=e.children;return t?t[0]:e.t}function xB(e){var t=e.children;return t?t[t.length-1]:e.t}function DOe(e,t,n){var r=n/(t.i-e.i);t.c-=r,t.s+=n,e.c+=r,t.z+=n,t.m+=n}function LOe(e){for(var t=0,n=0,r=e.children,i=r.length,o;--i>=0;)o=r[i],o.z+=t,o.m+=t,t+=o.s+(n+=o.c)}function NOe(e,t,n){return e.a.parent===t.parent?e.a:n}function vE(e,t){this._=e,this.parent=null,this.children=null,this.A=null,this.a=this,this.z=0,this.m=0,this.c=0,this.s=0,this.t=null,this.i=t}vE.prototype=Object.create(z1.prototype);function BOe(e){for(var t=new vE(e,0),n,r=[t],i,o,s,a;n=r.pop();)if(o=n._.children)for(n.children=new Array(a=o.length),s=a-1;s>=0;--s)r.push(i=n.children[s]=new vE(o[s],s)),i.parent=n;return(t.parent=new vE(null,0)).children=[t],t}function $Oe(){var e=MOe,t=1,n=1,r=null;function i(u){var f=BOe(u);if(f.eachAfter(o),f.parent.m=-f.z,f.eachBefore(s),r)u.eachBefore(c);else{var h=u,p=u,g=u;u.eachBefore(function(b){b.xp.x&&(p=b),b.depth>g.depth&&(g=b)});var v=h===p?1:e(h,p)/2,y=v-h.x,S=t/(p.x+v+y),w=n/(g.depth||1);u.eachBefore(function(b){b.x=(b.x+y)*S,b.y=b.depth*w})}return u}function o(u){var f=u.children,h=u.parent.children,p=u.i?h[u.i-1]:null;if(f){LOe(u);var g=(f[0].z+f[f.length-1].z)/2;p?(u.z=p.z+e(u._,p._),u.m=u.z-g):u.z=g}else p&&(u.z=p.z+e(u._,p._));u.parent.A=a(u,p,u.parent.A||h[0])}function s(u){u._.x=u.z+u.parent.m,u.m+=u.parent.m}function a(u,f,h){if(f){for(var p=u,g=u,v=f,y=p.parent.children[0],S=p.m,w=g.m,b=v.m,x=y.m,E;v=xB(v),p=bB(p),v&&p;)y=bB(y),g=xB(g),g.a=u,E=v.z+b-p.z-S+e(v._,p._),E>0&&(DOe(NOe(v,u,h),u,E),S+=E,w+=E),b+=v.m,S+=p.m,x+=y.m,w+=g.m;v&&!xB(g)&&(g.t=v,g.m+=b-w),p&&!bB(y)&&(y.t=p,y.m+=S-x,h=u)}return h}function c(u){u.x*=t,u.y=u.depth*n}return i.separation=function(u){return arguments.length?(e=u,i):e},i.size=function(u){return arguments.length?(r=!1,t=+u[0],n=+u[1],i):r?null:[t,n]},i.nodeSize=function(u){return arguments.length?(r=!0,t=+u[0],n=+u[1],i):r?[t,n]:null},i}var M3="http://www.w3.org/1999/xhtml";const _9={svg:"http://www.w3.org/2000/svg",xhtml:M3,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function mA(e){var t=e+="",n=t.indexOf(":");return n>=0&&(t=e.slice(0,n))!=="xmlns"&&(e=e.slice(n+1)),_9.hasOwnProperty(t)?{space:_9[t],local:e}:e}function FOe(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===M3&&t.documentElement.namespaceURI===M3?t.createElement(e):t.createElementNS(n,e)}}function zOe(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}function Fee(e){var t=mA(e);return(t.local?zOe:FOe)(t)}function jOe(){}function jj(e){return e==null?jOe:function(){return this.querySelector(e)}}function UOe(e){typeof e!="function"&&(e=jj(e));for(var t=this._groups,n=t.length,r=new Array(n),i=0;i=x&&(x=b+1);!(I=S[x])&&++x=0;)(s=r[i])&&(o&&s.compareDocumentPosition(o)^4&&o.parentNode.insertBefore(s,o),o=s);return this}function hMe(e){e||(e=pMe);function t(h,p){return h&&p?e(h.__data__,p.__data__):!h-!p}for(var n=this._groups,r=n.length,i=new Array(r),o=0;ot?1:e>=t?0:NaN}function mMe(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this}function gMe(){return Array.from(this)}function vMe(){for(var e=this._groups,t=0,n=e.length;t1?this.each((t==null?AMe:typeof t=="function"?RMe:IMe)(e,t,n??"")):iv(this.node(),e)}function iv(e,t){return e.style.getPropertyValue(t)||Wee(e).getComputedStyle(e,null).getPropertyValue(t)}function OMe(e){return function(){delete this[e]}}function MMe(e,t){return function(){this[e]=t}}function DMe(e,t){return function(){var n=t.apply(this,arguments);n==null?delete this[e]:this[e]=n}}function LMe(e,t){return arguments.length>1?this.each((t==null?OMe:typeof t=="function"?DMe:MMe)(e,t)):this.node()[e]}function Gee(e){return e.trim().split(/^|\s+/)}function Uj(e){return e.classList||new Vee(e)}function Vee(e){this._node=e,this._names=Gee(e.getAttribute("class")||"")}Vee.prototype={add:function(e){var t=this._names.indexOf(e);t<0&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};function qee(e,t){for(var n=Uj(e),r=-1,i=t.length;++r=0&&(n=t.slice(r+1),t=t.slice(0,r)),{type:t,name:n}})}function cDe(e){return function(){var t=this.__on;if(t){for(var n=0,r=-1,i=t.length,o;n{}};function Hj(){for(var e=0,t=arguments.length,n={},r;e=0&&(r=n.slice(i+1),n=n.slice(0,i)),n&&!t.hasOwnProperty(n))throw new Error("unknown type: "+n);return{type:n,name:r}})}yE.prototype=Hj.prototype={constructor:yE,on:function(e,t){var n=this._,r=bDe(e+"",n),i,o=-1,s=r.length;if(arguments.length<2){for(;++o0)for(var n=new Array(i),r=0,i,o;r>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?eS(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?eS(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=EDe.exec(e))?new ts(t[1],t[2],t[3],1):(t=CDe.exec(e))?new ts(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=TDe.exec(e))?eS(t[1],t[2],t[3],t[4]):(t=kDe.exec(e))?eS(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=ADe.exec(e))?R9(t[1],t[2]/100,t[3]/100,1):(t=IDe.exec(e))?R9(t[1],t[2]/100,t[3]/100,t[4]):E9.hasOwnProperty(e)?k9(E9[e]):e==="transparent"?new ts(NaN,NaN,NaN,0):null}function k9(e){return new ts(e>>16&255,e>>8&255,e&255,1)}function eS(e,t,n,r){return r<=0&&(e=t=n=NaN),new ts(e,t,n,r)}function ODe(e){return e instanceof Ww||(e=H1(e)),e?(e=e.rgb(),new ts(e.r,e.g,e.b,e.opacity)):new ts}function N3(e,t,n,r){return arguments.length===1?ODe(e):new ts(e,t,n,r??1)}function ts(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}Wj(ts,N3,Qee(Ww,{brighter(e){return e=e==null?jC:Math.pow(jC,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?j1:Math.pow(j1,e),new ts(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new ts(kp(this.r),kp(this.g),kp(this.b),UC(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:A9,formatHex:A9,formatHex8:MDe,formatRgb:I9,toString:I9}));function A9(){return`#${vp(this.r)}${vp(this.g)}${vp(this.b)}`}function MDe(){return`#${vp(this.r)}${vp(this.g)}${vp(this.b)}${vp((isNaN(this.opacity)?1:this.opacity)*255)}`}function I9(){const e=UC(this.opacity);return`${e===1?"rgb(":"rgba("}${kp(this.r)}, ${kp(this.g)}, ${kp(this.b)}${e===1?")":`, ${e})`}`}function UC(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function kp(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function vp(e){return e=kp(e),(e<16?"0":"")+e.toString(16)}function R9(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new gl(e,t,n,r)}function Jee(e){if(e instanceof gl)return new gl(e.h,e.s,e.l,e.opacity);if(e instanceof Ww||(e=H1(e)),!e)return new gl;if(e instanceof gl)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,i=Math.min(t,n,r),o=Math.max(t,n,r),s=NaN,a=o-i,c=(o+i)/2;return a?(t===o?s=(n-r)/a+(n0&&c<1?0:s,new gl(s,a,c,e.opacity)}function DDe(e,t,n,r){return arguments.length===1?Jee(e):new gl(e,t,n,r??1)}function gl(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}Wj(gl,DDe,Qee(Ww,{brighter(e){return e=e==null?jC:Math.pow(jC,e),new gl(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?j1:Math.pow(j1,e),new gl(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,i=2*n-r;return new ts(wB(e>=240?e-240:e+120,i,r),wB(e,i,r),wB(e<120?e+240:e-120,i,r),this.opacity)},clamp(){return new gl(P9(this.h),tS(this.s),tS(this.l),UC(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=UC(this.opacity);return`${e===1?"hsl(":"hsla("}${P9(this.h)}, ${tS(this.s)*100}%, ${tS(this.l)*100}%${e===1?")":`, ${e})`}`}}));function P9(e){return e=(e||0)%360,e<0?e+360:e}function tS(e){return Math.max(0,Math.min(1,e||0))}function wB(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const Zee=e=>()=>e;function LDe(e,t){return function(n){return e+n*t}}function NDe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function BDe(e){return(e=+e)==1?ete:function(t,n){return n-t?NDe(t,n,e):Zee(isNaN(t)?n:t)}}function ete(e,t){var n=t-e;return n?LDe(e,n):Zee(isNaN(e)?t:e)}const O9=function e(t){var n=BDe(t);function r(i,o){var s=n((i=N3(i)).r,(o=N3(o)).r),a=n(i.g,o.g),c=n(i.b,o.b),u=ete(i.opacity,o.opacity);return function(f){return i.r=s(f),i.g=a(f),i.b=c(f),i.opacity=u(f),i+""}}return r.gamma=e,r}(1);function yd(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var B3=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,_B=new RegExp(B3.source,"g");function $De(e){return function(){return e}}function FDe(e){return function(t){return e(t)+""}}function zDe(e,t){var n=B3.lastIndex=_B.lastIndex=0,r,i,o,s=-1,a=[],c=[];for(e=e+"",t=t+"";(r=B3.exec(e))&&(i=_B.exec(t));)(o=i.index)>n&&(o=t.slice(n,o),a[s]?a[s]+=o:a[++s]=o),(r=r[0])===(i=i[0])?a[s]?a[s]+=i:a[++s]=i:(a[++s]=null,c.push({i:s,x:yd(r,i)})),n=_B.lastIndex;return n180?f+=360:f-u>180&&(u+=360),p.push({i:h.push(i(h)+"rotate(",null,r)-2,x:yd(u,f)})):f&&h.push(i(h)+"rotate("+f+r)}function a(u,f,h,p){u!==f?p.push({i:h.push(i(h)+"skewX(",null,r)-2,x:yd(u,f)}):f&&h.push(i(h)+"skewX("+f+r)}function c(u,f,h,p,g,v){if(u!==h||f!==p){var y=g.push(i(g)+"scale(",null,",",null,")");v.push({i:y-4,x:yd(u,h)},{i:y-2,x:yd(f,p)})}else(h!==1||p!==1)&&g.push(i(g)+"scale("+h+","+p+")")}return function(u,f){var h=[],p=[];return u=e(u),f=e(f),o(u.translateX,u.translateY,f.translateX,f.translateY,h,p),s(u.rotate,f.rotate,h,p),a(u.skewX,f.skewX,h,p),c(u.scaleX,u.scaleY,f.scaleX,f.scaleY,h,p),u=f=null,function(g){for(var v=-1,y=p.length,S;++v=0&&e._call.call(void 0,t),e=e._next;--ov}function L9(){Xp=(WC=W1.now())+gA,ov=dx=0;try{KDe()}finally{ov=0,JDe(),Xp=0}}function QDe(){var e=W1.now(),t=e-WC;t>rte&&(gA-=t,WC=e)}function JDe(){for(var e,t=HC,n,r=1/0;t;)t._call?(r>t._time&&(r=t._time),e=t,t=t._next):(n=t._next,t._next=null,t=e?e._next=n:HC=n);fx=e,F3(r)}function F3(e){if(!ov){dx&&(dx=clearTimeout(dx));var t=e-Xp;t>24?(e<1/0&&(dx=setTimeout(L9,e-W1.now()-gA)),Fb&&(Fb=clearInterval(Fb))):(Fb||(WC=W1.now(),Fb=setInterval(QDe,rte)),ov=1,ite(L9))}}function N9(e,t,n){var r=new GC;return t=t==null?0:+t,r.restart(i=>{r.stop(),e(i+t)},t,n),r}var ZDe=Hj("start","end","cancel","interrupt"),eLe=[],ste=0,B9=1,z3=2,bE=3,$9=4,j3=5,xE=6;function vA(e,t,n,r,i,o){var s=e.__transition;if(!s)e.__transition={};else if(n in s)return;tLe(e,n,{name:t,index:r,group:i,on:ZDe,tween:eLe,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:ste})}function Vj(e,t){var n=Dl(e,t);if(n.state>ste)throw new Error("too late; already scheduled");return n}function bc(e,t){var n=Dl(e,t);if(n.state>bE)throw new Error("too late; already running");return n}function Dl(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw new Error("transition not found");return n}function tLe(e,t,n){var r=e.__transition,i;r[t]=n,n.timer=ote(o,0,n.time);function o(u){n.state=B9,n.timer.restart(s,n.delay,n.time),n.delay<=u&&s(u-n.delay)}function s(u){var f,h,p,g;if(n.state!==B9)return c();for(f in r)if(g=r[f],g.name===n.name){if(g.state===bE)return N9(s);g.state===$9?(g.state=xE,g.timer.stop(),g.on.call("interrupt",e,e.__data__,g.index,g.group),delete r[f]):+fz3&&r.state=0&&(t=t.slice(0,n)),!t||t==="start"})}function PLe(e,t,n){var r,i,o=RLe(t)?Vj:bc;return function(){var s=o(this,e),a=s.on;a!==r&&(i=(r=a).copy()).on(t,n),s.on=i}}function OLe(e,t){var n=this._id;return arguments.length<2?Dl(this.node(),n).on.on(e):this.each(PLe(n,e,t))}function MLe(e){return function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}}function DLe(){return this.on("end.remove",MLe(this._id))}function LLe(e){var t=this._name,n=this._id;typeof e!="function"&&(e=jj(e));for(var r=this._groups,i=r.length,o=new Array(i),s=0;s()=>e;function sNe(e,{sourceEvent:t,target:n,transform:r,dispatch:i}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:r,enumerable:!0,configurable:!0},_:{value:i}})}function ku(e,t,n){this.k=e,this.x=t,this.y=n}ku.prototype={constructor:ku,scale:function(e){return e===1?this:new ku(this.k*e,this.x,this.y)},translate:function(e,t){return e===0&t===0?this:new ku(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var VC=new ku(1,0,0);ku.prototype;function SB(e){e.stopImmediatePropagation()}function zb(e){e.preventDefault(),e.stopImmediatePropagation()}function aNe(e){return(!e.ctrlKey||e.type==="wheel")&&!e.button}function lNe(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e,e.hasAttribute("viewBox")?(e=e.viewBox.baseVal,[[e.x,e.y],[e.x+e.width,e.y+e.height]]):[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]):[[0,0],[e.clientWidth,e.clientHeight]]}function F9(){return this.__zoom||VC}function cNe(e){return-e.deltaY*(e.deltaMode===1?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function uNe(){return navigator.maxTouchPoints||"ontouchstart"in this}function dNe(e,t,n){var r=e.invertX(t[0][0])-n[0][0],i=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(i>r?(r+i)/2:Math.min(0,r)||Math.max(0,i),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function EB(){var e=aNe,t=lNe,n=dNe,r=cNe,i=uNe,o=[0,1/0],s=[[-1/0,-1/0],[1/0,1/0]],a=250,c=XDe,u=Hj("start","zoom","end"),f,h,p,g=500,v=150,y=0,S=10;function w(D){D.property("__zoom",F9).on("wheel.zoom",O,{passive:!1}).on("mousedown.zoom",L).on("dblclick.zoom",N).filter(i).on("touchstart.zoom",H).on("touchmove.zoom",G).on("touchend.zoom touchcancel.zoom",z).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}w.transform=function(D,F,j,V){var W=D.selection?D.selection():D;W.property("__zoom",F9),D!==W?I(D,F,j,V):W.interrupt().each(function(){A(this,arguments).event(V).start().zoom(null,typeof F=="function"?F.apply(this,arguments):F).end()})},w.scaleBy=function(D,F,j,V){w.scaleTo(D,function(){var W=this.__zoom.k,K=typeof F=="function"?F.apply(this,arguments):F;return W*K},j,V)},w.scaleTo=function(D,F,j,V){w.transform(D,function(){var W=t.apply(this,arguments),K=this.__zoom,X=j==null?E(W):typeof j=="function"?j.apply(this,arguments):j,Q=K.invert(X),ie=typeof F=="function"?F.apply(this,arguments):F;return n(x(b(K,ie),X,Q),W,s)},j,V)},w.translateBy=function(D,F,j,V){w.transform(D,function(){return n(this.__zoom.translate(typeof F=="function"?F.apply(this,arguments):F,typeof j=="function"?j.apply(this,arguments):j),t.apply(this,arguments),s)},null,V)},w.translateTo=function(D,F,j,V,W){w.transform(D,function(){var K=t.apply(this,arguments),X=this.__zoom,Q=V==null?E(K):typeof V=="function"?V.apply(this,arguments):V;return n(VC.translate(Q[0],Q[1]).scale(X.k).translate(typeof F=="function"?-F.apply(this,arguments):-F,typeof j=="function"?-j.apply(this,arguments):-j),K,s)},V,W)};function b(D,F){return F=Math.max(o[0],Math.min(o[1],F)),F===D.k?D:new ku(F,D.x,D.y)}function x(D,F,j){var V=F[0]-j[0]*D.k,W=F[1]-j[1]*D.k;return V===D.x&&W===D.y?D:new ku(D.k,V,W)}function E(D){return[(+D[0][0]+ +D[1][0])/2,(+D[0][1]+ +D[1][1])/2]}function I(D,F,j,V){D.on("start.zoom",function(){A(this,arguments).event(V).start()}).on("interrupt.zoom end.zoom",function(){A(this,arguments).event(V).end()}).tween("zoom",function(){var W=this,K=arguments,X=A(W,K).event(V),Q=t.apply(W,K),ie=j==null?E(Q):typeof j=="function"?j.apply(W,K):j,ce=Math.max(Q[1][0]-Q[0][0],Q[1][1]-Q[0][1]),ue=W.__zoom,se=typeof F=="function"?F.apply(W,K):F,J=c(ue.invert(ie).concat(ce/ue.k),se.invert(ie).concat(ce/se.k));return function(ae){if(ae===1)ae=se;else{var le=J(ae),he=ce/le[2];ae=new ku(he,ie[0]-le[0]*he,ie[1]-le[1]*he)}X.zoom(null,ae)}})}function A(D,F,j){return!j&&D.__zooming||new k(D,F)}function k(D,F){this.that=D,this.args=F,this.active=0,this.sourceEvent=null,this.extent=t.apply(D,F),this.taps=0}k.prototype={event:function(D){return D&&(this.sourceEvent=D),this},start:function(){return++this.active===1&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(D,F){return this.mouse&&D!=="mouse"&&(this.mouse[1]=F.invert(this.mouse[0])),this.touch0&&D!=="touch"&&(this.touch0[1]=F.invert(this.touch0[0])),this.touch1&&D!=="touch"&&(this.touch1[1]=F.invert(this.touch1[0])),this.that.__zoom=F,this.emit("zoom"),this},end:function(){return--this.active===0&&(delete this.that.__zooming,this.emit("end")),this},emit:function(D){var F=$o(this.that).datum();u.call(D,this.that,new sNe(D,{sourceEvent:this.sourceEvent,target:w,type:D,transform:this.that.__zoom,dispatch:u}),F)}};function O(D,...F){if(!e.apply(this,arguments))return;var j=A(this,F).event(D),V=this.__zoom,W=Math.max(o[0],Math.min(o[1],V.k*Math.pow(2,r.apply(this,arguments)))),K=Gh(D);if(j.wheel)(j.mouse[0][0]!==K[0]||j.mouse[0][1]!==K[1])&&(j.mouse[1]=V.invert(j.mouse[0]=K)),clearTimeout(j.wheel);else{if(V.k===W)return;j.mouse=[K,V.invert(K)],wE(this),j.start()}zb(D),j.wheel=setTimeout(X,v),j.zoom("mouse",n(x(b(V,W),j.mouse[0],j.mouse[1]),j.extent,s));function X(){j.wheel=null,j.end()}}function L(D,...F){if(p||!e.apply(this,arguments))return;var j=D.currentTarget,V=A(this,F,!0).event(D),W=$o(D.view).on("mousemove.zoom",ie,!0).on("mouseup.zoom",ce,!0),K=Gh(D,j),X=D.clientX,Q=D.clientY;wDe(D.view),SB(D),V.mouse=[K,this.__zoom.invert(K)],wE(this),V.start();function ie(ue){if(zb(ue),!V.moved){var se=ue.clientX-X,J=ue.clientY-Q;V.moved=se*se+J*J>y}V.event(ue).zoom("mouse",n(x(V.that.__zoom,V.mouse[0]=Gh(ue,j),V.mouse[1]),V.extent,s))}function ce(ue){W.on("mousemove.zoom mouseup.zoom",null),_De(ue.view,V.moved),zb(ue),V.event(ue).end()}}function N(D,...F){if(e.apply(this,arguments)){var j=this.__zoom,V=Gh(D.changedTouches?D.changedTouches[0]:D,this),W=j.invert(V),K=j.k*(D.shiftKey?.5:2),X=n(x(b(j,K),V,W),t.apply(this,F),s);zb(D),a>0?$o(this).transition().duration(a).call(I,X,V,D):$o(this).call(w.transform,X,V,D)}}function H(D,...F){if(e.apply(this,arguments)){var j=D.touches,V=j.length,W=A(this,F,D.changedTouches.length===V).event(D),K,X,Q,ie;for(SB(D),X=0;X"u"&&(g=!0),typeof v>"u"&&(v=1/0);function E(I,A){if(I===null)return null;if(A===0)return I;var k,O;if(typeof I!="object")return I;if(n(I,r))k=new r;else if(n(I,i))k=new i;else if(n(I,o))k=new o(function(V,W){I.then(function(K){V(E(K,A-1))},function(K){W(E(K,A-1))})});else if(s.__isArray(I))k=[];else if(s.__isRegExp(I))k=new RegExp(I.source,h(I)),I.lastIndex&&(k.lastIndex=I.lastIndex);else if(s.__isDate(I))k=new Date(I.getTime());else{if(x&&Buffer.isBuffer(I))return Buffer.allocUnsafe?k=Buffer.allocUnsafe(I.length):k=new Buffer(I.length),I.copy(k),k;n(I,Error)?k=Object.create(I):typeof y>"u"?(O=Object.getPrototypeOf(I),k=Object.create(O)):(k=Object.create(y),O=y)}if(g){var L=w.indexOf(I);if(L!=-1)return b[L];w.push(I),b.push(k)}n(I,r)&&I.forEach(function(V,W){var K=E(W,A-1),X=E(V,A-1);k.set(K,X)}),n(I,i)&&I.forEach(function(V){var W=E(V,A-1);k.add(W)});for(var N in I){var H;O&&(H=Object.getOwnPropertyDescriptor(O,N)),!(H&&H.set==null)&&(k[N]=E(I[N],A-1))}if(Object.getOwnPropertySymbols)for(var G=Object.getOwnPropertySymbols(I),N=0;N1&&arguments[1]!==void 0?arguments[1]:0,n=(Vi[e[t+0]]+Vi[e[t+1]]+Vi[e[t+2]]+Vi[e[t+3]]+"-"+Vi[e[t+4]]+Vi[e[t+5]]+"-"+Vi[e[t+6]]+Vi[e[t+7]]+"-"+Vi[e[t+8]]+Vi[e[t+9]]+"-"+Vi[e[t+10]]+Vi[e[t+11]]+Vi[e[t+12]]+Vi[e[t+13]]+Vi[e[t+14]]+Vi[e[t+15]]).toLowerCase();if(!gNe(n))throw TypeError("Stringified UUID is invalid");return n}function TB(e,t,n){e=e||{};var r=e.random||(e.rng||pNe)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,t){n=n||0;for(var i=0;i<16;++i)t[n+i]=r[i];return t}return vNe(r)}var U3={exports:{}},H3={exports:{}},yNe=function(){for(var t=arguments.length,n=[],r=0;re.enableLegacyTransitions?de.createElement($Ne.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):de.createElement("g",{className:e.className,transform:e.transform},e.children),zNe=15,j9={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},jNe=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>de.createElement(de.Fragment,null,de.createElement("circle",{r:zNe,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),de.createElement("g",{className:"rd3t-label"},de.createElement("text",Object.assign({className:"rd3t-label__title"},j9.title),e.name),de.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,s],a)=>de.createElement("tspan",Object.assign({key:`${o}-${a}`},j9.attribute),o,": ",typeof s=="boolean"?s.toString():s)))));let UNe=class extends de.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:jNe,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,s=o?n.x:0,a=o?n.y:0;return r==="horizontal"?`translate(${a},${s})`:`translate(${s},${a})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?$o(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):($o(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,s=this.setTransform(i,o,n,!0);this.applyTransform(s,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return de.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}};var W3=Math.PI,G3=2*W3,np=1e-6,HNe=G3-np;function V3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function _te(){return new V3}V3.prototype=_te.prototype={constructor:V3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,c=r-t,u=o-e,f=s-t,h=u*u+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>np)if(!(Math.abs(f*a-c*u)>np)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-o,g=r-s,v=a*a+c*c,y=p*p+g*g,S=Math.sqrt(v),w=Math.sqrt(h),b=i*Math.tan((W3-Math.acos((v+h-y)/(2*S*w)))/2),x=b/w,E=b/S;Math.abs(x-1)>np&&(this._+="L"+(e+x*u)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>u*g)+","+(this._x1=e+E*a)+","+(this._y1=t+E*c)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var s=n*Math.cos(r),a=n*Math.sin(r),c=e+s,u=t+a,f=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+u:(Math.abs(this._x1-c)>np||Math.abs(this._y1-u)>np)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%G3+G3),h>HNe?this._+="A"+n+","+n+",0,1,"+f+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=u):h>np&&(this._+="A"+n+","+n+",0,"+ +(h>=W3)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function U9(e){return function(){return e}}function WNe(e){return e[0]}function GNe(e){return e[1]}var VNe=Array.prototype.slice;function qNe(e){return e.source}function XNe(e){return e.target}function Ste(e){var t=qNe,n=XNe,r=WNe,i=GNe,o=null;function s(){var a,c=VNe.call(arguments),u=t.apply(this,c),f=n.apply(this,c);if(o||(o=a=_te()),e(o,+r.apply(this,(c[0]=u,c)),+i.apply(this,c),+r.apply(this,(c[0]=f,c)),+i.apply(this,c)),a)return o=null,a+""||null}return s.source=function(a){return arguments.length?(t=a,s):t},s.target=function(a){return arguments.length?(n=a,s):n},s.x=function(a){return arguments.length?(r=typeof a=="function"?a:U9(+a),s):r},s.y=function(a){return arguments.length?(i=typeof a=="function"?a:U9(+a),s):i},s.context=function(a){return arguments.length?(o=a??null,s):o},s}function YNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function KNe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function QNe(){return Ste(YNe)}function JNe(){return Ste(KNe)}class ZNe extends de.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?$o(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):($o(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?QNe()({source:[r.y,r.x],target:[i.y,i.x]}):JNe()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return de.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const eBe=` +https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStateFromProps=="function"&&(t.componentWillMount=dte,t.componentWillReceiveProps=fte),typeof t.getSnapshotBeforeUpdate=="function"){if(typeof t.componentDidUpdate!="function")throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=hte;var a=t.componentDidUpdate;t.componentDidUpdate=function(u,f,h){var p=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:h;a.call(this,u,f,p)}}return e}const _Ne=Object.freeze(Object.defineProperty({__proto__:null,polyfill:wNe},Symbol.toStringTag,{value:"Module"})),SNe=l4(_Ne);var yA={};yA.__esModule=!0;yA.getChildMapping=CNe;yA.mergeChildMappings=TNe;var ENe=R;function CNe(e){if(!e)return e;var t={};return ENe.Children.map(e,function(n){return n}).forEach(function(n){t[n.key]=n}),t}function TNe(e,t){e=e||{},t=t||{};function n(f){return t.hasOwnProperty(f)?t[f]:e[f]}var r={},i=[];for(var o in e)t.hasOwnProperty(o)?i.length&&(r[o]=i,i=[]):i.push(o);var s=void 0,a={};for(var c in t){if(r.hasOwnProperty(c))for(s=0;se.enableLegacyTransitions?de.createElement(WNe.TransitionGroup,{component:e.component,className:e.className,transform:e.transform},e.children):de.createElement("g",{className:e.className,transform:e.transform},e.children),VNe=15,W9={title:{textAnchor:"start",x:40},attribute:{x:40,dy:"1.2em"}},qNe=({nodeDatum:e,toggleNode:t,onNodeClick:n,onNodeMouseOver:r,onNodeMouseOut:i})=>de.createElement(de.Fragment,null,de.createElement("circle",{r:VNe,onClick:o=>{t(),n(o)},onMouseOver:r,onMouseOut:i}),de.createElement("g",{className:"rd3t-label"},de.createElement("text",Object.assign({className:"rd3t-label__title"},W9.title),e.name),de.createElement("text",{className:"rd3t-label__attributes"},e.attributes&&Object.entries(e.attributes).map(([o,s],a)=>de.createElement("tspan",Object.assign({key:`${o}-${a}`},W9.attribute),o,": ",typeof s=="boolean"?s.toString():s)))));let XNe=class extends de.Component{constructor(){super(...arguments),this.nodeRef=null,this.state={transform:this.setTransform(this.props.position,this.props.parent,this.props.orientation,!0),initialStyle:{opacity:0},wasClicked:!1},this.shouldNodeTransform=(t,n,r,i)=>n.subscriptions!==t.subscriptions||n.position.x!==t.position.x||n.position.y!==t.position.y||n.orientation!==t.orientation||i.wasClicked!==r.wasClicked,this.renderNodeElement=()=>{const{data:t,hierarchyPointNode:n,renderCustomNodeElement:r}=this.props,i=typeof r=="function"?r:qNe,o={hierarchyPointNode:n,nodeDatum:t,toggleNode:this.handleNodeToggle,onNodeClick:this.handleOnClick,onNodeMouseOver:this.handleOnMouseOver,onNodeMouseOut:this.handleOnMouseOut,addChildren:this.handleAddChildren};return i(o)},this.handleNodeToggle=()=>{this.setState({wasClicked:!0}),this.props.onNodeToggle(this.props.data.__rd3t.id)},this.handleOnClick=t=>{this.setState({wasClicked:!0}),this.props.onNodeClick(this.props.hierarchyPointNode,t)},this.handleOnMouseOver=t=>{this.props.onNodeMouseOver(this.props.hierarchyPointNode,t)},this.handleOnMouseOut=t=>{this.props.onNodeMouseOut(this.props.hierarchyPointNode,t)},this.handleAddChildren=t=>{this.props.handleAddChildrenToNode(this.props.data.__rd3t.id,t)}}componentDidMount(){this.commitTransform()}componentDidUpdate(){this.state.wasClicked&&(this.props.centerNode(this.props.hierarchyPointNode),this.setState({wasClicked:!1})),this.commitTransform()}shouldComponentUpdate(t,n){return this.shouldNodeTransform(this.props,t,this.state,n)}setTransform(t,n,r,i=!1){if(i){const o=n!=null,s=o?n.x:0,a=o?n.y:0;return r==="horizontal"?`translate(${a},${s})`:`translate(${s},${a})`}return r==="horizontal"?`translate(${t.y},${t.x})`:`translate(${t.x},${t.y})`}applyTransform(t,n,r=1,i=()=>{}){this.props.enableLegacyTransitions?$o(this.nodeRef).transition().duration(n).attr("transform",t).style("opacity",r).on("end",i):($o(this.nodeRef).attr("transform",t).style("opacity",r),i())}commitTransform(){const{orientation:t,transitionDuration:n,position:r,parent:i}=this.props,o=this.setTransform(r,i,t);this.applyTransform(o,n)}componentWillLeave(t){const{orientation:n,transitionDuration:r,position:i,parent:o}=this.props,s=this.setTransform(i,o,n,!0);this.applyTransform(s,r,0,t)}render(){const{data:t,nodeClassName:n}=this.props;return de.createElement("g",{id:t.__rd3t.id,ref:r=>{this.nodeRef=r},style:this.state.initialStyle,className:[t.children&&t.children.length>0?"rd3t-node":"rd3t-leaf-node",n].join(" ").trim(),transform:this.state.transform},this.renderNodeElement())}};var q3=Math.PI,X3=2*q3,ip=1e-6,YNe=X3-ip;function Y3(){this._x0=this._y0=this._x1=this._y1=null,this._=""}function Ste(){return new Y3}Y3.prototype=Ste.prototype={constructor:Y3,moveTo:function(e,t){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)},closePath:function(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._+="Z")},lineTo:function(e,t){this._+="L"+(this._x1=+e)+","+(this._y1=+t)},quadraticCurveTo:function(e,t,n,r){this._+="Q"+ +e+","+ +t+","+(this._x1=+n)+","+(this._y1=+r)},bezierCurveTo:function(e,t,n,r,i,o){this._+="C"+ +e+","+ +t+","+ +n+","+ +r+","+(this._x1=+i)+","+(this._y1=+o)},arcTo:function(e,t,n,r,i){e=+e,t=+t,n=+n,r=+r,i=+i;var o=this._x1,s=this._y1,a=n-e,c=r-t,u=o-e,f=s-t,h=u*u+f*f;if(i<0)throw new Error("negative radius: "+i);if(this._x1===null)this._+="M"+(this._x1=e)+","+(this._y1=t);else if(h>ip)if(!(Math.abs(f*a-c*u)>ip)||!i)this._+="L"+(this._x1=e)+","+(this._y1=t);else{var p=n-o,g=r-s,v=a*a+c*c,y=p*p+g*g,S=Math.sqrt(v),w=Math.sqrt(h),b=i*Math.tan((q3-Math.acos((v+h-y)/(2*S*w)))/2),x=b/w,E=b/S;Math.abs(x-1)>ip&&(this._+="L"+(e+x*u)+","+(t+x*f)),this._+="A"+i+","+i+",0,0,"+ +(f*p>u*g)+","+(this._x1=e+E*a)+","+(this._y1=t+E*c)}},arc:function(e,t,n,r,i,o){e=+e,t=+t,n=+n,o=!!o;var s=n*Math.cos(r),a=n*Math.sin(r),c=e+s,u=t+a,f=1^o,h=o?r-i:i-r;if(n<0)throw new Error("negative radius: "+n);this._x1===null?this._+="M"+c+","+u:(Math.abs(this._x1-c)>ip||Math.abs(this._y1-u)>ip)&&(this._+="L"+c+","+u),n&&(h<0&&(h=h%X3+X3),h>YNe?this._+="A"+n+","+n+",0,1,"+f+","+(e-s)+","+(t-a)+"A"+n+","+n+",0,1,"+f+","+(this._x1=c)+","+(this._y1=u):h>ip&&(this._+="A"+n+","+n+",0,"+ +(h>=q3)+","+f+","+(this._x1=e+n*Math.cos(i))+","+(this._y1=t+n*Math.sin(i))))},rect:function(e,t,n,r){this._+="M"+(this._x0=this._x1=+e)+","+(this._y0=this._y1=+t)+"h"+ +n+"v"+ +r+"h"+-n+"Z"},toString:function(){return this._}};function G9(e){return function(){return e}}function KNe(e){return e[0]}function QNe(e){return e[1]}var JNe=Array.prototype.slice;function ZNe(e){return e.source}function eBe(e){return e.target}function Ete(e){var t=ZNe,n=eBe,r=KNe,i=QNe,o=null;function s(){var a,c=JNe.call(arguments),u=t.apply(this,c),f=n.apply(this,c);if(o||(o=a=Ste()),e(o,+r.apply(this,(c[0]=u,c)),+i.apply(this,c),+r.apply(this,(c[0]=f,c)),+i.apply(this,c)),a)return o=null,a+""||null}return s.source=function(a){return arguments.length?(t=a,s):t},s.target=function(a){return arguments.length?(n=a,s):n},s.x=function(a){return arguments.length?(r=typeof a=="function"?a:G9(+a),s):r},s.y=function(a){return arguments.length?(i=typeof a=="function"?a:G9(+a),s):i},s.context=function(a){return arguments.length?(o=a??null,s):o},s}function tBe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t=(t+r)/2,n,t,i,r,i)}function nBe(e,t,n,r,i){e.moveTo(t,n),e.bezierCurveTo(t,n=(n+i)/2,r,n,r,i)}function rBe(){return Ete(tBe)}function iBe(){return Ete(nBe)}class oBe extends de.PureComponent{constructor(){super(...arguments),this.linkRef=null,this.state={initialStyle:{opacity:0}},this.handleOnClick=t=>{this.props.onClick(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOver=t=>{this.props.onMouseOver(this.props.linkData.source,this.props.linkData.target,t)},this.handleOnMouseOut=t=>{this.props.onMouseOut(this.props.linkData.source,this.props.linkData.target,t)}}componentDidMount(){this.applyOpacity(1,this.props.transitionDuration)}componentWillLeave(t){this.applyOpacity(0,this.props.transitionDuration,t)}applyOpacity(t,n,r=()=>{}){this.props.enableLegacyTransitions?$o(this.linkRef).transition().duration(n).style("opacity",t).on("end",r):($o(this.linkRef).style("opacity",t),r())}drawStepPath(t,n){const{source:r,target:i}=t,o=i.y-r.y;return n==="horizontal"?`M${r.y},${r.x} H${r.y+o/2} V${i.x} H${i.y}`:`M${r.x},${r.y} V${r.y+o/2} H${i.x} V${i.y}`}drawDiagonalPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?rBe()({source:[r.y,r.x],target:[i.y,i.x]}):iBe()({source:[r.x,r.y],target:[i.x,i.y]})}drawStraightPath(t,n){const{source:r,target:i}=t;return n==="horizontal"?`M${r.y},${r.x}L${i.y},${i.x}`:`M${r.x},${r.y}L${i.x},${i.y}`}drawElbowPath(t,n){return n==="horizontal"?`M${t.source.y},${t.source.x}V${t.target.x}H${t.target.y}`:`M${t.source.x},${t.source.y}V${t.target.y}H${t.target.x}`}drawPath(){const{linkData:t,orientation:n,pathFunc:r}=this.props;return typeof r=="function"?r(t,n):r==="elbow"?this.drawElbowPath(t,n):r==="straight"?this.drawStraightPath(t,n):r==="step"?this.drawStepPath(t,n):this.drawDiagonalPath(t,n)}getClassNames(){const{linkData:t,orientation:n,pathClassFunc:r}=this.props,i=["rd3t-link"];return typeof r=="function"&&i.push(r(t,n)),i.join(" ").trim()}render(){const{linkData:t}=this.props;return de.createElement("path",{ref:n=>{this.linkRef=n},style:Object.assign({},this.state.initialStyle),className:this.getClassNames(),d:this.drawPath(),onClick:this.handleOnClick,onMouseOver:this.handleOnMouseOver,onMouseOut:this.handleOnMouseOut,"data-source-id":t.source.id,"data-target-id":t.target.id})}}const sBe=` /* Tree */ .rd3t-tree-container { width: 100%; @@ -505,20 +505,20 @@ https://fb.me/react-async-component-lifecycle-hooks`)}if(typeof e.getDerivedStat fill: none; stroke: #000; } -`;let Ete=class tl extends de.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:tl.assignInternalProperties(Oo(this.props.data)),d3:tl.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${EB()}`,this.gInstanceRef=`rd3t-g-${EB()}`,this.handleNodeToggle=t=>{const n=Oo(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(tl.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):tl.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=Oo(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],s=o.__rd3t.depth,a=Oo(n).map(c=>tl.assignInternalProperties([c],s+1));o.children.push(...a.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const s=$o(`.${this.gInstanceRef}`),a=$o(`.${this.svgInstanceRef}`),c=this.state.d3.scale;let u,f;r==="horizontal"?(f=-t.x*c+n.height/2,u=-t.y*c+n.width/2):(u=-t.x*c+n.width/2,f=-t.y*c+n.height/2),s.transition().duration(o).attr("transform","translate("+u+","+f+")scale("+c+")"),a.call(_B().transform,GC.translate(u,f).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:tl.assignInternalProperties(Oo(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=tl.calculateD3Geometry(t);return Gx(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!Gx(this.props.translate,t.translate)||!Gx(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?Oo(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:s,hasInteractiveNodes:a}=t,c=$o(`.${this.svgInstanceRef}`),u=$o(`.${this.gInstanceRef}`);c.call(_B().transform,GC.translate(i.x,i.y).scale(o)),c.call(_B().scaleExtent(n?[r.min,r.max]:[o,o]).filter(f=>a?f.target.classList.contains(this.svgInstanceRef)||f.target.classList.contains(this.gInstanceRef)||f.shiftKey:!0).on("zoom",f=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(f.sourceEvent.type)||(u.attr("transform",f.transform),typeof s=="function"&&(s({node:null,zoom:f.transform.k,translate:{x:f.transform.x,y:f.transform.y}}),this.state.d3.scale=f.transform.k,this.state.d3.translate={x:f.transform.x,y:f.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=EB(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=tl.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{tl.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>tl.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:s}=this.state,c=OOe().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((h,p)=>h.parent.data.__rd3t.id===p.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(Bj(this.state.data[0],h=>h.__rd3t.collapsed?null:h.children));let u=c.descendants();const f=c.links();return t!==void 0&&s&&this.setInitialTreeDepth(u,t),n&&u.forEach(h=>{h.y=h.depth*n}),{nodes:u,links:f}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoomde.createElement(ZNe,{key:"link-"+b,orientation:i,pathFunc:o,pathClassFunc:g,linkData:w,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:h,transitionDuration:s})),t.map((w,b)=>{const{data:x,x:E,y:I,parent:A}=w;return de.createElement(UNe,{key:"node-"+b,data:x,position:{x:E,y:I},hierarchyPointNode:w,parent:A,nodeClassName:this.getNodeClassName(A,x),renderCustomNodeElement:r,nodeSize:a,orientation:i,enableLegacyTransitions:h,transitionDuration:s,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:S,centerNode:this.centerNode})}))))}};Ete.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};function H1(){return H1=Object.assign||function(e){for(var t=1;tawait gBe(e),[e])}function yBe(e,t){const n=R.useMemo(()=>e,t);return vBe(n)}const bBe=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}}),xBe=Ete;function kte(e,t=!1){const[n,r]=R.useState();return R.useEffect(()=>{t||e&&r(e)},[e,t]),n}const W9={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}};function wBe(){var w,b,x,E,I;const{palette:e}=Dn(),{key:t,setKey:n,layer:r,setLayer:i,layers:o}=Vp(),s=XQ(((w=r==null?void 0:r.source)==null?void 0:w.step)??0,600),{controls:a,onChange:c,state:u}=bf(),[f,h]=R.useState("small"),p=T1({"&.rd3t-link":{stroke:kn(e.text.primary,e.action.disabledOpacity)}}),{result:g,loading:v}=yBe({trace:(x=(b=r==null?void 0:r.source)==null?void 0:b.trace)==null?void 0:x.content,step:s,radius:W9[f].value},[s,r,f]),y=kte(g,v),S=R.useCallback(()=>p,[p]);return C.jsxs(zn,{onChange:c,stack:u,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:(I=(E=r==null?void 0:r.source)==null?void 0:E.trace)!=null&&I.content&&(y!=null&&y.tree)?C.jsx(Zk,{children:({width:A,height:k})=>C.jsx(ht,{width:A,height:k,children:C.jsx(xBe,{scaleExtent:{max:10,min:.01},translate:{x:A/2,y:A/2},data:y.tree,dimensions:{width:A,height:k},separation:{siblings:.4,nonSiblings:.4},pathClassFunc:S,renderCustomNodeElement:({nodeDatum:O,onNodeClick:D})=>{var N;return C.jsx(_Be,{node:O,onClick:()=>D==null?void 0:D({}),step:(N=r==null?void 0:r.source)==null?void 0:N.step,onStep:H=>i(Ta(r,G=>{te.set(G,"source.step",H)}))})}})})}):C.jsx(pp,{icon:C.jsx(FQ,{}),label:"Tree"})})})," ",C.jsxs(zn.Options,{children:[C.jsx(Gs,{icon:C.jsx(Cw,{}),label:"Layer",value:t,items:te.map(o,A=>({id:A.key,name:ga(A)})),onChange:n,showArrow:!0}),bBe,C.jsx(Gs,{icon:C.jsx(q1e,{}),label:"Radius",value:f,onChange:A=>h(A),items:te.map(te.entries(W9),([A,k])=>({id:A,...k})),showArrow:!0})]}),C.jsx(zn.Extras,{children:a})]})}const Fb=16,hu=4;function _Be({onClick:e,node:t,step:n=0,onStep:r}){var f;const{palette:i,spacing:o,shape:s}=Dn(),a=te.findLast(t==null?void 0:t.events,h=>h.step<=n),c=!!te.find(t==null?void 0:t.events,h=>h.step===n),u=B1((f=a==null?void 0:a.data)==null?void 0:f.type);return C.jsx(rm,{variant:"popover",children:h=>{var p,g;return C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:`f: ${((p=a==null?void 0:a.data)==null?void 0:p.f)??"unknown"}, g: ${((g=a==null?void 0:a.data)==null?void 0:g.g)??"unknown"}`,children:C.jsxs("g",{onClick:v=>{h.open(v)},children:[C.jsx("clipPath",{id:"clipPath",children:C.jsx("rect",{y:o(-hu/2),x:o(-.25),strokeWidth:0,width:o(Fb),height:o(hu),rx:s.borderRadius})}),C.jsx("rect",{y:o(-hu/2),x:o(-.25),strokeWidth:0,fill:i.background.default,width:o(Fb),height:o(hu),clipPath:"url(#clipPath)"}),c&&C.jsx("rect",{y:o(-hu/2),x:o(-.25),strokeWidth:0,fill:kn(i.primary.main,i.action.selectedOpacity),width:o(Fb),height:o(hu),clipPath:"url(#clipPath)"}),C.jsx("rect",{x:o(-.25),y:o(-hu/2),height:o(hu),width:o(.5),fill:u,strokeWidth:0,clipPath:"url(#clipPath)"}),C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:o(2-.25),alignmentBaseline:"central",children:t==null?void 0:t.name}),!!(t!=null&&t.cumulativeChildCount)&&C.jsxs(C.Fragment,{children:[C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.secondary,y:0,x:o(Fb-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:t==null?void 0:t.cumulativeChildCount}),C.jsx(T1e,{width:o(2),height:o(2),x:o(Fb-2-1),y:o(-hu/2+1),strokeWidth:0,fill:i.text.primary,opacity:i.action.disabledOpacity})]})]})}),C.jsx(nm,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...$w(h),children:C.jsx(zk,{dense:!0,sx:{p:0},children:te.map(t==null?void 0:t.events,v=>C.jsx(Ru,{selected:v.step===n,sx:{borderLeft:`4px solid ${B1(v.data.type)}`},onClick:()=>{h.close(),e==null||e(),te.delay(()=>r==null?void 0:r(v.step),150)},children:C.jsx(zz,{primary:te.startCase(v.data.type),secondary:`Step ${v.step}`})}))})})]})}})}function SBe({selection:e,onClose:t}){const n=EBe(),r=kte(e),{client:i}=e??{};return C.jsx(nm,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,keepMounted:!0,children:C.jsx(zk,{dense:!0,sx:{py:0},children:C.jsx(n,{event:r,children:o=>{const s=te.entries(o);return s.length?te.chain(s).sortBy(([,a])=>a.index).map(([,{items:a,primary:c}],u)=>C.jsxs(C.Fragment,{children:[!!u&&C.jsx(Ku,{sx:{my:1,mx:2}}),c&&C.jsx(Bx,{sx:{py:0},children:C.jsx(jt,{color:"text.secondary",variant:"overline",children:c})}),te.chain(a).entries().sortBy(([,f])=>f.index).map(([f,{action:h,icon:p,primary:g,secondary:v}])=>h?C.jsxs(Ru,{onClick:()=>{h(),t==null||t()},children:[p&&C.jsx(Wd,{children:p}),C.jsx(rc,{primary:g,sx:{mr:4}}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:v})]},f):C.jsxs(Bx,{children:[p&&C.jsx(Wd,{children:p}),C.jsx(rc,{primary:g,sx:{mr:4}}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:v})]},f)).value()]})).value():C.jsx(C.Fragment,{children:C.jsx(Bx,{children:C.jsx(jt,{children:"No info to show."})})})}})})})}const G9=({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e({})});function EBe(){const[{layers:e}]=im();return R.useMemo(()=>te.chain(e).reduce((t,n)=>{var i;const r=((i=_ne(n))==null?void 0:i.getSelectionInfo)??G9;return({children:o,event:s})=>C.jsx(r,{layer:n.key,event:s,children:a=>C.jsx(t,{event:s,children:c=>o==null?void 0:o(te.merge(a,c))})})},G9).value(),[e])}const[vA,CBe]=mc([],{reduce:YQ}),TBe={tileSubdivision:1,workerCount:8,tileResolution:{width:te.round(256*devicePixelRatio),height:te.round(256*devicePixelRatio)}},Ate=R.createContext({});function kBe(){return R.useContext(Ate)}function ABe(e,{width:t,height:n}={}){const r=Dn(),[i]=vA(),o=R.useRef(null),[s,a]=R.useState(""),[c,u]=R.useState();return R.useEffect(()=>{if(a(""),o.current&&t&&n&&e){const f=te.find(i,h=>h.renderer.meta.id===e);if(f){const h=new f.renderer.constructor;return h.setup({...TBe,screenSize:{width:t,height:n},backgroundColor:r.palette.background.paper,accentColor:r.palette.primary.main}),o.current.append(h.getView()),u(h),()=>{var p,g;try{(g=(p=o.current)==null?void 0:p.removeChild)==null||g.call(p,h.getView()),u(void 0)}catch(v){console.warn(v)}finally{h.destroy()}}}}},[o.current,te.map,e,i,r,a,u]),pwe(()=>{c&&t&&n&&c.setOptions({screenSize:{width:t,height:n}})},r.transitions.duration.standard,[c,t,n]),{instance:c,ref:o,error:s}}function IBe(){const[{map:e,specimen:t}]=cA();return!!(e||t)&&C.jsx(Sw,{sx:{position:"absolute",top:n=>n.spacing(6+2),right:n=>n.spacing(2)}})}function RBe({width:e,height:t,renderer:n,rendererRef:r,layers:i}){const{instance:o,error:s,ref:a}=ABe(n,{width:e,height:t}),[c,u]=R.useState();R.useEffect(()=>{if(o){const h=(p,g)=>{const v=p;u({client:{x:v.clientX,y:v.clientY},world:g.world,info:{point:g.world,components:g.components}})};return o.on("click",h),()=>void o.off("click",h)}},[o]);const f=R.useMemo(()=>({renderer:o}),[o]);return R.useEffect(()=>r==null?void 0:r(o),[o,r]),C.jsxs(C.Fragment,{children:[C.jsx(IBe,{}),C.jsx(Ate.Provider,{value:f,children:i!=null&&i.length?s?C.jsxs(ht,{sx:{display:"flex",flexDirection:"column",width:e,height:t,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[C.jsx(S1e,{sx:{mb:2},fontSize:"large"}),s]}):C.jsx(C.Fragment,{children:C.jsx(ht,{ref:a,children:i.map(h=>C.jsx(qFe,{layer:h},h.key))})}):C.jsx(pp,{icon:C.jsx(WQ,{}),label:"No layers to render",width:e,height:t})}),C.jsx(SBe,{selection:c,onClose:()=>u(void 0)})]})}function W1({nodes:e}){const{renderer:t}=kBe();return R.useEffect(()=>{if(t&&(e!=null&&e.length))return t.add(e.flat())},[t,e]),C.jsx(C.Fragment,{})}function PBe({nodes:e,step:t}){const r=te.floor((t??0)/200)*200,i=R.useMemo(()=>te.slice(e,0,r),[e,r]),o=R.useMemo(()=>te.slice(e,r,(t??0)+1),[e,r,t]);return C.jsxs(C.Fragment,{children:[!!r&&C.jsx(W1,{nodes:i}),C.jsx(W1,{nodes:o})]})}const yA=({variables:e},{x:t,y:n})=>(e==null?void 0:e.x)===t&&(e==null?void 0:e.y)===n,OBe=""+new URL("parseGrid.worker-d5269b43.js",import.meta.url).href;class MBe extends Worker{constructor(){super(OBe,{type:"module"})}}const LBe=Rv(MBe),{floor:V9}=Math;function q9(e,t,n){return e>=t&&e({...await LBe({map:e,options:t})}),{normalizer:JSON.stringify}),NBe=e=>{const{width:t,height:n}=e.bounds;return{...e,snap:({x:r,y:i},o=1)=>{const[s,a]=[V9(r+o/2),V9(i+o/2)];if(q9(s,0,t)&&q9(a,0,n))return{x:s,y:a}},nodeAt:r=>{const{x:i,y:o}=r;return o*t+i},pointOf:r=>({x:r%t,y:~~(r/t)}),matchNode:yA}},BBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:NBe,parse:DBe},Symbol.toStringTag,{value:"Module"})),$Be=""+new URL("parseMesh.worker-114081b8.js",import.meta.url).href;class FBe extends Worker{constructor(){super($Be,{type:"module"})}}const zBe=Rv(FBe),jBe=_f(async(e="",t)=>await zBe({map:e,options:t}),{normalizer:JSON.stringify}),UBe=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:yA}),HBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:UBe,parse:jBe},Symbol.toStringTag,{value:"Module"})),WBe=""+new URL("parseNetwork.worker-0345a67d.js",import.meta.url).href;class GBe extends Worker{constructor(){super(WBe,{type:"module"})}}const VBe=Rv(GBe),qBe=_f(async(e="",t)=>await VBe({map:e,options:t}),{normalizer:JSON.stringify}),XBe=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:yA}),YBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:XBe,parse:qBe},Symbol.toStringTag,{value:"Module"})),KBe=""+new URL("parsePoly.worker-bf1460fa.js",import.meta.url).href;class QBe extends Worker{constructor(){super(KBe,{type:"module"})}}const JBe=Rv(QBe),ZBe=_f(async(e="",t)=>await JBe({map:e,options:t}),{normalizer:JSON.stringify}),e$e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:yA}),t$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:e$e,parse:ZBe},Symbol.toStringTag,{value:"Module"})),Kj={grid:BBe,xy:YBe,mesh:HBe,poly:t$e};function Qj(e=""){return Kj[e]}const Ite=(e,t,n)=>{const r=R.useRef(n||[]),o=r.current===n||!r.current.every((a,c)=>a===n[c]);r.current=n;const s=t.map(()=>null);return R.useEffect(o?()=>void e():()=>{},o?t:s)};function n$e(e,t){return te.zip(e,t).every(([n,r])=>n===r)}const r$e=(e,t=[],n=[])=>{const[r,i]=R.useState(t),[o,s]=R.useState(n);return R.useEffect(()=>{n$e(o,n)||(i(t),s(n))},[t,n,o]),Tte(e,[...r,...o])};function Jj(){const[e]=nv();return R.useCallback(t=>te.find(e,t),[e])}function i$e(e){return Jj()({url:e})}function o$e(e){const t=gc(),n=om("map"),r=Jj(),i=R.useMemo(()=>_f(async({source:c,id:u}={})=>{if(c&&u){const f=r({url:c});if(f){t("Fetching map...");const h=await f.call("features/map",{id:u});return h==null?void 0:h.content}}},{normalizer:JSON.stringify}),[r,t]),{content:o,source:s,id:a}=e??{};return Ww(()=>n(async()=>{if(a)return{...e,content:o||await i({source:s,id:a})}}),[i,o,s,a])}function s$e(e){const t=gc(),n=Dn(),r=om("map"),{format:i,content:o}=e??{};return Ww(()=>r(async()=>{var a,c;const s=n.palette.mode==="dark"?bv:yv;if(i&&o){t("Processing map...");const u=await((c=(a=Qj(i))==null?void 0:a.parse)==null?void 0:c.call(a,o,{color:s(n.palette.background.paper,1-n.palette.action.hoverOpacity)}))??{nodes:[]};return t("Map loaded",`${u.nodes.length} elements, ${u.log.join(", ")}`),u}}),[i,o,n])}const Rte=({label:e})=>C.jsx(jt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:e}),a$e=({label:e})=>C.jsx(jt,{variant:"body1",children:e}),G1=({label:e,content:t})=>C.jsxs(En,{alignItems:"center",children:[C.jsx(a$e,{label:e}),C.jsx(ai,{flex:1}),t]}),l$e={key:"map",inferName:e=>{var t;return(t=e==null?void 0:e.source)!=null&&t.map?`${e.source.map.name} (${te.startCase(e.source.map.format)})`:"Untitled Map"},editor:Jg(({value:e,produce:t})=>{var n;return C.jsx(C.Fragment,{children:C.jsx(G1,{label:"Source",content:C.jsx(aOe,{value:(n=e==null?void 0:e.source)==null?void 0:n.map,onChange:r=>t(i=>te.set(i,"source.map",r))})})})}),renderer:({layer:e})=>{var r;const{nodes:t}=((r=e==null?void 0:e.source)==null?void 0:r.parsedMap)??{},n=R.useMemo(()=>[t??[]],[t]);return C.jsx(W1,{nodes:n})},steps:({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e([])}),service:Jg(({value:e,produce:t})=>{var i;const{result:n}=o$e((i=e==null?void 0:e.source)==null?void 0:i.map),{result:r}=s$e(n);return Ite(()=>void t(o=>te.set(o,"source.parsedMap",r)),[r,t],[r]),C.jsx(C.Fragment,{})}),getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=Vp(n),{parsedMap:s}=(r==null?void 0:r.source)??{},{point:a,node:c}=R.useMemo(()=>{var f,h,p,g;if(s&&t){const v=(g=(p=Qj((h=(f=r==null?void 0:r.source)==null?void 0:f.map)==null?void 0:h.format))==null?void 0:p.hydrate)==null?void 0:g.call(p,s);if(v){const y=(t==null?void 0:t.world)&&v.snap(t.world);if(y){const S=(t==null?void 0:t.world)&&v.nodeAt(y);return{point:y,node:S}}}}return{}},[s,t]),u=R.useMemo(()=>({...r&&a&&!te.isUndefined(c)&&{[r.key]:{primary:ga(r),items:{point:{primary:"Point",secondary:`(${te.round(a.x,2)}, ${te.round(a.y,2)})`}}}}}),[a,c,r,o,i]);return C.jsx(C.Fragment,{children:e==null?void 0:e(u)})}};var TB=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Mo,wE,c$e={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},cd;function kB(e){return TB.lastIndex=0,TB.test(e)?'"'+e.replace(TB,function(t){var n=c$e[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function _E(e,t,n){var r,i,o,s,a=Mo,c,u=t[e];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(e)),typeof cd=="function"&&(u=cd.call(t,e,u)),typeof u){case"string":return kB(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(Mo+=wE,c=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,r=0;rn?`[ +`;let Cte=class nl extends de.Component{constructor(){super(...arguments),this.state={dataRef:this.props.data,data:nl.assignInternalProperties(Oo(this.props.data)),d3:nl.calculateD3Geometry(this.props),isTransitioning:!1,isInitialRenderForDataset:!0,dataKey:this.props.dataKey},this.internalState={targetNode:null,isTransitioning:!1},this.svgInstanceRef=`rd3t-svg-${TB()}`,this.gInstanceRef=`rd3t-g-${TB()}`,this.handleNodeToggle=t=>{const n=Oo(this.state.data),i=this.findNodesById(t,n,[])[0];this.props.collapsible&&!this.state.isTransitioning&&(i.__rd3t.collapsed?(nl.expandNode(i),this.props.shouldCollapseNeighborNodes&&this.collapseNeighborNodes(i,n)):nl.collapseNode(i),this.props.enableLegacyTransitions?(this.setState({data:n,isTransitioning:!0}),setTimeout(()=>this.setState({isTransitioning:!1}),this.props.transitionDuration+10)):this.setState({data:n}),this.internalState.targetNode=i)},this.handleAddChildrenToNode=(t,n)=>{const r=Oo(this.state.data),i=this.findNodesById(t,r,[]);if(i.length>0){const o=i[0],s=o.__rd3t.depth,a=Oo(n).map(c=>nl.assignInternalProperties([c],s+1));o.children.push(...a.flat()),this.setState({data:r})}},this.handleOnNodeClickCb=(t,n)=>{const{onNodeClick:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkClickCb=(t,n,r)=>{const{onLinkClick:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOverCb=(t,n)=>{const{onNodeMouseOver:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOverCb=(t,n,r)=>{const{onLinkMouseOver:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.handleOnNodeMouseOutCb=(t,n)=>{const{onNodeMouseOut:r}=this.props;r&&typeof r=="function"&&(n.persist(),r(Oo(t),n))},this.handleOnLinkMouseOutCb=(t,n,r)=>{const{onLinkMouseOut:i}=this.props;i&&typeof i=="function"&&(r.persist(),i(Oo(t),Oo(n),r))},this.centerNode=t=>{const{dimensions:n,orientation:r,zoom:i,centeringTransitionDuration:o}=this.props;if(n){const s=$o(`.${this.gInstanceRef}`),a=$o(`.${this.svgInstanceRef}`),c=this.state.d3.scale;let u,f;r==="horizontal"?(f=-t.x*c+n.height/2,u=-t.y*c+n.width/2):(u=-t.x*c+n.width/2,f=-t.y*c+n.height/2),s.transition().duration(o).attr("transform","translate("+u+","+f+")scale("+c+")"),a.call(EB().transform,VC.translate(u,f).scale(i))}},this.getNodeClassName=(t,n)=>{const{rootNodeClassName:r,branchNodeClassName:i,leafNodeClassName:o}=this.props;return t!=null?n.children?i:o:r}}static getDerivedStateFromProps(t,n){let r=null;const i=!t.dataKey||n.dataKey!==t.dataKey;t.data!==n.dataRef&&i&&(r={dataRef:t.data,data:nl.assignInternalProperties(Oo(t.data)),isInitialRenderForDataset:!0,dataKey:t.dataKey});const o=nl.calculateD3Geometry(t);return qx(o,n.d3)||(r=r||{},r.d3=o),r}componentDidMount(){this.bindZoomListener(this.props),this.setState({isInitialRenderForDataset:!1})}componentDidUpdate(t){this.props.data!==t.data&&this.setState({isInitialRenderForDataset:!1}),(!qx(this.props.translate,t.translate)||!qx(this.props.scaleExtent,t.scaleExtent)||this.props.zoomable!==t.zoomable||this.props.draggable!==t.draggable||this.props.zoom!==t.zoom||this.props.enableLegacyTransitions!==t.enableLegacyTransitions)&&this.bindZoomListener(this.props),typeof this.props.onUpdate=="function"&&this.props.onUpdate({node:this.internalState.targetNode?Oo(this.internalState.targetNode):null,zoom:this.state.d3.scale,translate:this.state.d3.translate}),this.internalState.targetNode=null}setInitialTreeDepth(t,n){t.forEach(r=>{r.data.__rd3t.collapsed=r.depth>=n})}bindZoomListener(t){const{zoomable:n,scaleExtent:r,translate:i,zoom:o,onUpdate:s,hasInteractiveNodes:a}=t,c=$o(`.${this.svgInstanceRef}`),u=$o(`.${this.gInstanceRef}`);c.call(EB().transform,VC.translate(i.x,i.y).scale(o)),c.call(EB().scaleExtent(n?[r.min,r.max]:[o,o]).filter(f=>a?f.target.classList.contains(this.svgInstanceRef)||f.target.classList.contains(this.gInstanceRef)||f.shiftKey:!0).on("zoom",f=>{!this.props.draggable&&["mousemove","touchmove","dblclick"].includes(f.sourceEvent.type)||(u.attr("transform",f.transform),typeof s=="function"&&(s({node:null,zoom:f.transform.k,translate:{x:f.transform.x,y:f.transform.y}}),this.state.d3.scale=f.transform.k,this.state.d3.translate={x:f.transform.x,y:f.transform.y}))}))}static assignInternalProperties(t,n=0){return(Array.isArray(t)?t:[t]).map(i=>{const o=i;return o.__rd3t={id:null,depth:null,collapsed:!1},o.__rd3t.id=TB(),o.__rd3t.depth=n,o.children&&o.children.length>0&&(o.children=nl.assignInternalProperties(o.children,n+1)),o})}findNodesById(t,n,r){return r.length>0||(r=r.concat(n.filter(i=>i.__rd3t.id===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesById(t,i.children,r))})),r}findNodesAtDepth(t,n,r){return r=r.concat(n.filter(i=>i.__rd3t.depth===t)),n.forEach(i=>{i.children&&i.children.length>0&&(r=this.findNodesAtDepth(t,i.children,r))}),r}static collapseNode(t){t.__rd3t.collapsed=!0,t.children&&t.children.length>0&&t.children.forEach(n=>{nl.collapseNode(n)})}static expandNode(t){t.__rd3t.collapsed=!1}collapseNeighborNodes(t,n){this.findNodesAtDepth(t.__rd3t.depth,n,[]).filter(i=>i.__rd3t.id!==t.__rd3t.id).forEach(i=>nl.collapseNode(i))}generateTree(){const{initialDepth:t,depthFactor:n,separation:r,nodeSize:i,orientation:o}=this.props,{isInitialRenderForDataset:s}=this.state,c=$Oe().nodeSize(o==="horizontal"?[i.y,i.x]:[i.x,i.y]).separation((h,p)=>h.parent.data.__rd3t.id===p.parent.data.__rd3t.id?r.siblings:r.nonSiblings)(zj(this.state.data[0],h=>h.__rd3t.collapsed?null:h.children));let u=c.descendants();const f=c.links();return t!==void 0&&s&&this.setInitialTreeDepth(u,t),n&&u.forEach(h=>{h.y=h.depth*n}),{nodes:u,links:f}}static calculateD3Geometry(t){let n;return t.zoom>t.scaleExtent.max?n=t.scaleExtent.max:t.zoomde.createElement(oBe,{key:"link-"+b,orientation:i,pathFunc:o,pathClassFunc:g,linkData:w,onClick:this.handleOnLinkClickCb,onMouseOver:this.handleOnLinkMouseOverCb,onMouseOut:this.handleOnLinkMouseOutCb,enableLegacyTransitions:h,transitionDuration:s})),t.map((w,b)=>{const{data:x,x:E,y:I,parent:A}=w;return de.createElement(XNe,{key:"node-"+b,data:x,position:{x:E,y:I},hierarchyPointNode:w,parent:A,nodeClassName:this.getNodeClassName(A,x),renderCustomNodeElement:r,nodeSize:a,orientation:i,enableLegacyTransitions:h,transitionDuration:s,onNodeToggle:this.handleNodeToggle,onNodeClick:this.handleOnNodeClickCb,onNodeMouseOver:this.handleOnNodeMouseOverCb,onNodeMouseOut:this.handleOnNodeMouseOutCb,handleAddChildrenToNode:this.handleAddChildrenToNode,subscriptions:S,centerNode:this.centerNode})}))))}};Cte.defaultProps={onNodeClick:void 0,onNodeMouseOver:void 0,onNodeMouseOut:void 0,onLinkClick:void 0,onLinkMouseOver:void 0,onLinkMouseOut:void 0,onUpdate:void 0,orientation:"horizontal",translate:{x:0,y:0},pathFunc:"diagonal",pathClassFunc:void 0,transitionDuration:500,depthFactor:void 0,collapsible:!0,initialDepth:void 0,zoomable:!0,draggable:!0,zoom:1,scaleExtent:{min:.1,max:1},nodeSize:{x:140,y:140},separation:{siblings:1,nonSiblings:2},shouldCollapseNeighborNodes:!1,svgClassName:"",rootNodeClassName:"",branchNodeClassName:"",leafNodeClassName:"",renderCustomNodeElement:void 0,enableLegacyTransitions:!1,hasInteractiveNodes:!1,dimensions:void 0,centeringTransitionDuration:800,dataKey:void 0};function G1(){return G1=Object.assign||function(e){for(var t=1;tawait _Be(e),[e])}function EBe(e,t){const n=R.useMemo(()=>e,t);return SBe(n)}const CBe=C.jsx(Qu,{orientation:"vertical",flexItem:!0,sx:{m:1}}),TBe=Cte;function Ate(e,t=!1){const[n,r]=R.useState();return R.useEffect(()=>{t||e&&r(e)},[e,t]),n}const q9={small:{value:0,name:"Current",description:"Show the current node and its parents"},medium:{value:4,name:"Nearby",description:"Show nodes with ≤4 degrees of separation"},infinite:{value:void 0,name:"All",description:"Show all nodes, may impact performance"}};function kBe(){var w,b,x,E,I;const{palette:e}=Ln(),{key:t,setKey:n,layer:r,setLayer:i,layers:o}=qp(),s=KQ(((w=r==null?void 0:r.source)==null?void 0:w.step)??0,600),{controls:a,onChange:c,state:u}=wf(),[f,h]=R.useState("small"),p=A1({"&.rd3t-link":{stroke:kn(e.text.primary,e.action.disabledOpacity)}}),{result:g,loading:v}=EBe({trace:(x=(b=r==null?void 0:r.source)==null?void 0:b.trace)==null?void 0:x.content,step:s,radius:q9[f].value},[s,r,f]),y=Ate(g,v),S=R.useCallback(()=>p,[p]);return C.jsxs(zn,{onChange:c,stack:u,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:(I=(E=r==null?void 0:r.source)==null?void 0:E.trace)!=null&&I.content&&(y!=null&&y.tree)?C.jsx(tA,{children:({width:A,height:k})=>C.jsx(ht,{width:A,height:k,children:C.jsx(TBe,{scaleExtent:{max:10,min:.01},translate:{x:A/2,y:A/2},data:y.tree,dimensions:{width:A,height:k},separation:{siblings:.4,nonSiblings:.4},pathClassFunc:S,renderCustomNodeElement:({nodeDatum:O,onNodeClick:L})=>{var N;return C.jsx(ABe,{node:O,onClick:()=>L==null?void 0:L({}),step:(N=r==null?void 0:r.source)==null?void 0:N.step,onStep:H=>i(ka(r,G=>{te.set(G,"source.step",H)}))})}})})}):C.jsx(gp,{icon:C.jsx(jQ,{}),label:"Tree"})})})," ",C.jsxs(zn.Options,{children:[C.jsx(Gs,{icon:C.jsx(Tw,{}),label:"Layer",value:t,items:te.map(o,A=>({id:A.key,name:va(A)})),onChange:n,showArrow:!0}),CBe,C.jsx(Gs,{icon:C.jsx(J1e,{}),label:"Radius",value:f,onChange:A=>h(A),items:te.map(te.entries(q9),([A,k])=>({id:A,...k})),showArrow:!0})]}),C.jsx(zn.Extras,{children:a})]})}const jb=16,pu=4;function ABe({onClick:e,node:t,step:n=0,onStep:r}){var f;const{palette:i,spacing:o,shape:s}=Ln(),a=te.findLast(t==null?void 0:t.events,h=>h.step<=n),c=!!te.find(t==null?void 0:t.events,h=>h.step===n),u=F1((f=a==null?void 0:a.data)==null?void 0:f.type);return C.jsx(im,{variant:"popover",children:h=>{var p,g;return C.jsxs(C.Fragment,{children:[C.jsx(bf,{title:`f: ${((p=a==null?void 0:a.data)==null?void 0:p.f)??"unknown"}, g: ${((g=a==null?void 0:a.data)==null?void 0:g.g)??"unknown"}`,children:C.jsxs("g",{onClick:v=>{h.open(v)},children:[C.jsx("clipPath",{id:"clipPath",children:C.jsx("rect",{y:o(-pu/2),x:o(-.25),strokeWidth:0,width:o(jb),height:o(pu),rx:s.borderRadius})}),C.jsx("rect",{y:o(-pu/2),x:o(-.25),strokeWidth:0,fill:i.background.default,width:o(jb),height:o(pu),clipPath:"url(#clipPath)"}),c&&C.jsx("rect",{y:o(-pu/2),x:o(-.25),strokeWidth:0,fill:kn(i.primary.main,i.action.selectedOpacity),width:o(jb),height:o(pu),clipPath:"url(#clipPath)"}),C.jsx("rect",{x:o(-.25),y:o(-pu/2),height:o(pu),width:o(.5),fill:u,strokeWidth:0,clipPath:"url(#clipPath)"}),C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.primary,y:0,fontWeight:500,fontSize:"0.875rem",x:o(2-.25),alignmentBaseline:"central",children:t==null?void 0:t.name}),!!(t!=null&&t.cumulativeChildCount)&&C.jsxs(C.Fragment,{children:[C.jsx("text",{strokeWidth:0,height:o(4),fill:i.text.secondary,y:0,x:o(jb-2.25-1),textAnchor:"end",fontWeight:400,fontSize:"0.875rem",alignmentBaseline:"central",children:t==null?void 0:t.cumulativeChildCount}),C.jsx(P1e,{width:o(2),height:o(2),x:o(jb-2-1),y:o(-pu/2+1),strokeWidth:0,fill:i.text.primary,opacity:i.action.disabledOpacity})]})]})}),C.jsx(rm,{anchorOrigin:{horizontal:"center",vertical:"bottom"},transformOrigin:{horizontal:"center",vertical:"top"},...Fw(h),children:C.jsx(Uk,{dense:!0,sx:{p:0},children:te.map(t==null?void 0:t.events,v=>C.jsx(Pu,{selected:v.step===n,sx:{borderLeft:`4px solid ${F1(v.data.type)}`},onClick:()=>{h.close(),e==null||e(),te.delay(()=>r==null?void 0:r(v.step),150)},children:C.jsx(Uz,{primary:te.startCase(v.data.type),secondary:`Step ${v.step}`})}))})})]})}})}function IBe({selection:e,onClose:t}){const n=RBe(),r=Ate(e),{client:i}=e??{};return C.jsx(rm,{open:!!e,anchorReference:"anchorPosition",anchorPosition:{top:(i==null?void 0:i.y)??0,left:(i==null?void 0:i.x)??0},onClose:t,keepMounted:!0,children:C.jsx(Uk,{dense:!0,sx:{py:0},children:C.jsx(n,{event:r,children:o=>{const s=te.entries(o);return s.length?te.chain(s).sortBy(([,a])=>a.index).map(([,{items:a,primary:c}],u)=>C.jsxs(C.Fragment,{children:[!!u&&C.jsx(Qu,{sx:{my:1,mx:2}}),c&&C.jsx(Fx,{sx:{py:0},children:C.jsx(Ut,{color:"text.secondary",variant:"overline",children:c})}),te.chain(a).entries().sortBy(([,f])=>f.index).map(([f,{action:h,icon:p,primary:g,secondary:v}])=>h?C.jsxs(Pu,{onClick:()=>{h(),t==null||t()},children:[p&&C.jsx(Gd,{children:p}),C.jsx(oc,{primary:g,sx:{mr:4}}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:v})]},f):C.jsxs(Fx,{children:[p&&C.jsx(Gd,{children:p}),C.jsx(oc,{primary:g,sx:{mr:4}}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:v})]},f)).value()]})).value():C.jsx(C.Fragment,{children:C.jsx(Fx,{children:C.jsx(Ut,{children:"No info to show."})})})}})})})}const X9=({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e({})});function RBe(){const[{layers:e}]=om();return R.useMemo(()=>te.chain(e).reduce((t,n)=>{var i;const r=((i=Sne(n))==null?void 0:i.getSelectionInfo)??X9;return({children:o,event:s})=>C.jsx(r,{layer:n.key,event:s,children:a=>C.jsx(t,{event:s,children:c=>o==null?void 0:o(te.merge(a,c))})})},X9).value(),[e])}const[bA,PBe]=vc([],{reduce:QQ}),OBe={tileSubdivision:1,workerCount:8,tileResolution:{width:te.round(256*devicePixelRatio),height:te.round(256*devicePixelRatio)}},Ite=R.createContext({});function MBe(){return R.useContext(Ite)}function DBe(e,{width:t,height:n}={}){const r=Ln(),[i]=bA(),o=R.useRef(null),[s,a]=R.useState(""),[c,u]=R.useState();return R.useEffect(()=>{if(a(""),o.current&&t&&n&&e){const f=te.find(i,h=>h.renderer.meta.id===e);if(f){const h=new f.renderer.constructor;return h.setup({...OBe,screenSize:{width:t,height:n},backgroundColor:r.palette.background.paper,accentColor:r.palette.primary.main}),o.current.append(h.getView()),u(h),()=>{var p,g;try{(g=(p=o.current)==null?void 0:p.removeChild)==null||g.call(p,h.getView()),u(void 0)}catch(v){console.warn(v)}finally{h.destroy()}}}}},[o.current,te.map,e,i,r,a,u]),xwe(()=>{c&&t&&n&&c.setOptions({screenSize:{width:t,height:n}})},r.transitions.duration.standard,[c,t,n]),{instance:c,ref:o,error:s}}function LBe(){const[{map:e,specimen:t}]=dA();return!!(e||t)&&C.jsx(Ew,{sx:{position:"absolute",top:n=>n.spacing(6+2),right:n=>n.spacing(2)}})}function NBe({width:e,height:t,renderer:n,rendererRef:r,layers:i}){const{instance:o,error:s,ref:a}=DBe(n,{width:e,height:t}),[c,u]=R.useState();R.useEffect(()=>{if(o){const h=(p,g)=>{const v=p;u({client:{x:v.clientX,y:v.clientY},world:g.world,info:{point:g.world,components:g.components}})};return o.on("click",h),()=>void o.off("click",h)}},[o]);const f=R.useMemo(()=>({renderer:o}),[o]);return R.useEffect(()=>r==null?void 0:r(o),[o,r]),C.jsxs(C.Fragment,{children:[C.jsx(LBe,{}),C.jsx(Ite.Provider,{value:f,children:i!=null&&i.length?s?C.jsxs(ht,{sx:{display:"flex",flexDirection:"column",width:e,height:t,alignItems:"center",justifyContent:"center",color:"text.secondary"},children:[C.jsx(A1e,{sx:{mb:2},fontSize:"large"}),s]}):C.jsx(C.Fragment,{children:C.jsx(ht,{ref:a,children:i.map(h=>C.jsx(ZFe,{layer:h},h.key))})}):C.jsx(gp,{icon:C.jsx(VQ,{}),label:"No layers to render",width:e,height:t})}),C.jsx(IBe,{selection:c,onClose:()=>u(void 0)})]})}function V1({nodes:e}){const{renderer:t}=MBe();return R.useEffect(()=>{if(t&&(e!=null&&e.length))return t.add(e.flat())},[t,e]),C.jsx(C.Fragment,{})}function BBe({nodes:e,step:t}){const r=te.floor((t??0)/200)*200,i=R.useMemo(()=>te.slice(e,0,r),[e,r]),o=R.useMemo(()=>te.slice(e,r,(t??0)+1),[e,r,t]);return C.jsxs(C.Fragment,{children:[!!r&&C.jsx(V1,{nodes:i}),C.jsx(V1,{nodes:o})]})}const xA=({variables:e},{x:t,y:n})=>(e==null?void 0:e.x)===t&&(e==null?void 0:e.y)===n,$Be=""+new URL("parseGrid.worker-d5269b43.js",import.meta.url).href;class FBe extends Worker{constructor(){super($Be,{type:"module"})}}const zBe=Ov(FBe),{floor:Y9}=Math;function K9(e,t,n){return e>=t&&e({...await zBe({map:e,options:t})}),{normalizer:JSON.stringify}),UBe=e=>{const{width:t,height:n}=e.bounds;return{...e,snap:({x:r,y:i},o=1)=>{const[s,a]=[Y9(r+o/2),Y9(i+o/2)];if(K9(s,0,t)&&K9(a,0,n))return{x:s,y:a}},nodeAt:r=>{const{x:i,y:o}=r;return o*t+i},pointOf:r=>({x:r%t,y:~~(r/t)}),matchNode:xA}},HBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:UBe,parse:jBe},Symbol.toStringTag,{value:"Module"})),WBe=""+new URL("parseMesh.worker-114081b8.js",import.meta.url).href;class GBe extends Worker{constructor(){super(WBe,{type:"module"})}}const VBe=Ov(GBe),qBe=Ef(async(e="",t)=>await VBe({map:e,options:t}),{normalizer:JSON.stringify}),XBe=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:xA}),YBe=Object.freeze(Object.defineProperty({__proto__:null,hydrate:XBe,parse:qBe},Symbol.toStringTag,{value:"Module"})),KBe=""+new URL("parseNetwork.worker-0345a67d.js",import.meta.url).href;class QBe extends Worker{constructor(){super(KBe,{type:"module"})}}const JBe=Ov(QBe),ZBe=Ef(async(e="",t)=>await JBe({map:e,options:t}),{normalizer:JSON.stringify}),e$e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:xA}),t$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:e$e,parse:ZBe},Symbol.toStringTag,{value:"Module"})),n$e=""+new URL("parsePoly.worker-bf1460fa.js",import.meta.url).href;class r$e extends Worker{constructor(){super(n$e,{type:"module"})}}const i$e=Ov(r$e),o$e=Ef(async(e="",t)=>await i$e({map:e,options:t}),{normalizer:JSON.stringify}),s$e=e=>({...e,snap:te.identity,nodeAt:te.constant(0),pointOf:te.constant({x:0,y:0}),matchNode:xA}),a$e=Object.freeze(Object.defineProperty({__proto__:null,hydrate:s$e,parse:o$e},Symbol.toStringTag,{value:"Module"})),Zj={grid:HBe,xy:t$e,mesh:YBe,poly:a$e};function eU(e=""){return Zj[e]}const Rte=(e,t,n)=>{const r=R.useRef(n||[]),o=r.current===n||!r.current.every((a,c)=>a===n[c]);r.current=n;const s=t.map(()=>null);return R.useEffect(o?()=>void e():()=>{},o?t:s)};function l$e(e,t){return te.zip(e,t).every(([n,r])=>n===r)}const c$e=(e,t=[],n=[])=>{const[r,i]=R.useState(t),[o,s]=R.useState(n);return R.useEffect(()=>{l$e(o,n)||(i(t),s(n))},[t,n,o]),kte(e,[...r,...o])};function tU(){const[e]=rv();return R.useCallback(t=>te.find(e,t),[e])}function u$e(e){return tU()({url:e})}function d$e(e){const t=Ol(),n=sm("map"),r=tU(),i=R.useMemo(()=>Ef(async({source:c,id:u}={})=>{if(c&&u){const f=r({url:c});if(f){t("Fetching map...");const h=await f.call("features/map",{id:u});return h==null?void 0:h.content}}},{normalizer:JSON.stringify}),[r,t]),{content:o,source:s,id:a}=e??{};return Gw(()=>n(async()=>{if(a)return{...e,content:o||await i({source:s,id:a})}}),[i,o,s,a])}function f$e(e){const t=Ol(),n=Ln(),r=sm("map"),{format:i,content:o}=e??{};return Gw(()=>r(async()=>{var a,c;const s=n.palette.mode==="dark"?wv:xv;if(i&&o){t("Processing map...");const u=await((c=(a=eU(i))==null?void 0:a.parse)==null?void 0:c.call(a,o,{color:s(n.palette.background.paper,1-n.palette.action.hoverOpacity)}))??{nodes:[]};return t("Map loaded",`${u.nodes.length} elements, ${u.log.join(", ")}`),u}}),[i,o,n])}const Pte=({label:e})=>C.jsx(Ut,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:e}),h$e=({label:e})=>C.jsx(Ut,{variant:"body1",children:e}),q1=({label:e,content:t})=>C.jsxs(En,{alignItems:"center",children:[C.jsx(h$e,{label:e}),C.jsx(ai,{flex:1}),t]}),p$e={key:"map",inferName:e=>{var t;return(t=e==null?void 0:e.source)!=null&&t.map?`${e.source.map.name} (${te.startCase(e.source.map.format)})`:"Untitled Map"},editor:Zg(({value:e,produce:t})=>{var n;return C.jsx(C.Fragment,{children:C.jsx(q1,{label:"Source",content:C.jsx(hOe,{value:(n=e==null?void 0:e.source)==null?void 0:n.map,onChange:r=>t(i=>te.set(i,"source.map",r))})})})}),renderer:({layer:e})=>{var r;const{nodes:t}=((r=e==null?void 0:e.source)==null?void 0:r.parsedMap)??{},n=R.useMemo(()=>[t??[]],[t]);return C.jsx(V1,{nodes:n})},steps:({children:e})=>C.jsx(C.Fragment,{children:e==null?void 0:e([])}),service:Zg(({value:e,produce:t})=>{var i;const{result:n}=d$e((i=e==null?void 0:e.source)==null?void 0:i.map),{result:r}=f$e(n);return Rte(()=>void t(o=>te.set(o,"source.parsedMap",r)),[r,t],[r]),C.jsx(C.Fragment,{})}),getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=qp(n),{parsedMap:s}=(r==null?void 0:r.source)??{},{point:a,node:c}=R.useMemo(()=>{var f,h,p,g;if(s&&t){const v=(g=(p=eU((h=(f=r==null?void 0:r.source)==null?void 0:f.map)==null?void 0:h.format))==null?void 0:p.hydrate)==null?void 0:g.call(p,s);if(v){const y=(t==null?void 0:t.world)&&v.snap(t.world);if(y){const S=(t==null?void 0:t.world)&&v.nodeAt(y);return{point:y,node:S}}}}return{}},[s,t]),u=R.useMemo(()=>({...r&&a&&!te.isUndefined(c)&&{[r.key]:{primary:va(r),items:{point:{primary:"Point",secondary:`(${te.round(a.x,2)}, ${te.round(a.y,2)})`}}}}}),[a,c,r,o,i]);return C.jsx(C.Fragment,{children:e==null?void 0:e(u)})}};var AB=/[\\\"\u0000-\u001f\u007f-\u009f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,Mo,_E,m$e={"\b":"\\b"," ":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},ud;function IB(e){return AB.lastIndex=0,AB.test(e)?'"'+e.replace(AB,function(t){var n=m$e[t];return typeof n=="string"?n:"\\u"+("0000"+t.charCodeAt(0).toString(16)).slice(-4)})+'"':'"'+e+'"'}function SE(e,t,n){var r,i,o,s,a=Mo,c,u=t[e];switch(u&&typeof u=="object"&&typeof u.toJSON=="function"&&(u=u.toJSON(e)),typeof ud=="function"&&(u=ud.call(t,e,u)),typeof u){case"string":return IB(u);case"number":return isFinite(u)?String(u):"null";case"boolean":case"null":return String(u);case"object":if(!u)return"null";if(Mo+=_E,c=[],Object.prototype.toString.apply(u)==="[object Array]"){for(s=u.length,r=0;rn?`[ `+Mo+c.join(`, `+Mo)+` -`+a+"]":"[ "+c.join(", ")+" ]":"["+c.join(",")+"]",Mo=a,o}if(cd&&typeof cd=="object")for(s=cd.length,r=0;rn?`{ +`+a+"]":"[ "+c.join(", ")+" ]":"["+c.join(",")+"]",Mo=a,o}if(ud&&typeof ud=="object")for(s=ud.length,r=0;rn?`{ `+Mo+c.join(`, `+Mo)+` -`+a+"}":"{ "+c.join(", ")+" }":"{"+c.join(",")+"}",Mo=a,o}}function u$e(e,t,n,r){var i;if(Mo="",wE="",r||(r=0),typeof r!="number")throw new Error("beaufifier: limit must be a number");if(typeof n=="number")for(i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function SE(e,t,n){return Ote()?SE=Reflect.construct:SE=function(i,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(i,a),u=new c;return s&&V1(u,s.prototype),u},SE.apply(null,arguments)}function h$e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function q3(e){var t=typeof Map=="function"?new Map:void 0;return q3=function(r){if(r===null||!h$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return SE(r,arguments,io(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),V1(i,r)},q3(e)}function la(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Mte(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:la(e)}function ar(e){var t=Ote();return function(){var r=io(e),i;if(t){var o=io(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Mte(this,i)}}function p$e(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=io(e),e!==null););return e}function ls(e,t,n){return typeof Reflect<"u"&&Reflect.get?ls=Reflect.get:ls=function(i,o,s){var a=p$e(i,o);if(a){var c=Object.getOwnPropertyDescriptor(a,o);return c.get?c.get.call(s):c.value}},ls(e,t,n||e)}function Gw(e,t){return Lte(e)||g$e(e,t)||Zj(e,t)||Dte()}function zb(e){return Lte(e)||m$e(e)||Zj(e)||Dte()}function Lte(e){if(Array.isArray(e))return e}function m$e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function g$e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function Zj(e,t){if(e){if(typeof e=="string")return Y9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Y9(e,t)}}function Y9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=Zj(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}var ni={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Se={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},EE="tag:yaml.org,2002:",Rd={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function K9(e){for(var t=[0],n=e.indexOf(` +`+a+"}":"{ "+c.join(", ")+" }":"{"+c.join(",")+"}",Mo=a,o}}function g$e(e,t,n,r){var i;if(Mo="",_E="",r||(r=0),typeof r!="number")throw new Error("beaufifier: limit must be a number");if(typeof n=="number")for(i=0;i"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function EE(e,t,n){return Mte()?EE=Reflect.construct:EE=function(i,o,s){var a=[null];a.push.apply(a,o);var c=Function.bind.apply(i,a),u=new c;return s&&X1(u,s.prototype),u},EE.apply(null,arguments)}function b$e(e){return Function.toString.call(e).indexOf("[native code]")!==-1}function K3(e){var t=typeof Map=="function"?new Map:void 0;return K3=function(r){if(r===null||!b$e(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(r))return t.get(r);t.set(r,i)}function i(){return EE(r,arguments,io(this).constructor)}return i.prototype=Object.create(r.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),X1(i,r)},K3(e)}function ca(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Dte(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:ca(e)}function ar(e){var t=Mte();return function(){var r=io(e),i;if(t){var o=io(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return Dte(this,i)}}function x$e(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&(e=io(e),e!==null););return e}function ls(e,t,n){return typeof Reflect<"u"&&Reflect.get?ls=Reflect.get:ls=function(i,o,s){var a=x$e(i,o);if(a){var c=Object.getOwnPropertyDescriptor(a,o);return c.get?c.get.call(s):c.value}},ls(e,t,n||e)}function Vw(e,t){return Lte(e)||_$e(e,t)||nU(e,t)||Nte()}function Ub(e){return Lte(e)||w$e(e)||nU(e)||Nte()}function Lte(e){if(Array.isArray(e))return e}function w$e(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function _$e(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,o=void 0;try{for(var s=e[Symbol.iterator](),a;!(r=(a=s.next()).done)&&(n.push(a.value),!(t&&n.length===t));r=!0);}catch(c){i=!0,o=c}finally{try{!r&&s.return!=null&&s.return()}finally{if(i)throw o}}return n}}function nU(e,t){if(e){if(typeof e=="string")return J9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return J9(e,t)}}function J9(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n"u"||e[Symbol.iterator]==null){if(Array.isArray(e)||(n=nU(e))||t&&e&&typeof e.length=="number"){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(c){throw c},f:i}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o=!0,s=!1,a;return{s:function(){n=e[Symbol.iterator]()},n:function(){var c=n.next();return o=c.done,c},e:function(c){s=!0,a=c},f:function(){try{!o&&n.return!=null&&n.return()}finally{if(s)throw a}}}}var ni={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},Se={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},CE="tag:yaml.org,2002:",Pd={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Z9(e){for(var t=[0],n=e.indexOf(` `);n!==-1;)n+=1,t.push(n),n=e.indexOf(` -`,n);return t}function Nte(e){var t,n;return typeof e=="string"?(t=K9(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=K9(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function X3(e,t){if(typeof e!="number"||e<0)return null;var n=Nte(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o=1)||e>r.length)return null;for(var o=r[e-1],s=r[e];s&&s>o&&i[s-1]===` -`;)--s;return i.slice(o,s)}function y$e(e,t){var n=e.start,r=e.end,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,o=v$e(n.line,t);if(!o)return null;var s=n.col;if(o.length>i)if(s<=i-10)o=o.substr(0,i-1)+"…";else{var a=Math.round(i/2);o.length>s+a&&(o=o.substr(0,s+a-1)+"…"),s-=o.length-i,o="…"+o.substr(1-i)}var c=1,u="";r&&(r.line===n.line&&s+(r.col-n.col)<=i+1?c=r.col-n.col:(c=Math.min(o.length+1,i)-s,u="…"));var f=s>1?" ".repeat(s-1):"",h="^".repeat(c);return"".concat(o,` +`,n);return t}function Bte(e){var t,n;return typeof e=="string"?(t=Z9(e),n=e):(Array.isArray(e)&&(e=e[0]),e&&e.context&&(e.lineStarts||(e.lineStarts=Z9(e.context.src)),t=e.lineStarts,n=e.context.src)),{lineStarts:t,src:n}}function Q3(e,t){if(typeof e!="number"||e<0)return null;var n=Bte(t),r=n.lineStarts,i=n.src;if(!r||!i||e>i.length)return null;for(var o=0;o=1)||e>r.length)return null;for(var o=r[e-1],s=r[e];s&&s>o&&i[s-1]===` +`;)--s;return i.slice(o,s)}function E$e(e,t){var n=e.start,r=e.end,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:80,o=S$e(n.line,t);if(!o)return null;var s=n.col;if(o.length>i)if(s<=i-10)o=o.substr(0,i-1)+"…";else{var a=Math.round(i/2);o.length>s+a&&(o=o.substr(0,s+a-1)+"…"),s-=o.length-i,o="…"+o.substr(1-i)}var c=1,u="";r&&(r.line===n.line&&s+(r.col-n.col)<=i+1?c=r.col-n.col:(c=Math.min(o.length+1,i)-s,u="…"));var f=s>1?" ".repeat(s-1):"",h="^".repeat(c);return"".concat(o,` `).concat(f).concat(h).concat(u)}var Er=function(){function e(t,n){xn(this,e),this.start=t,this.end=n||t}return Yn(e,[{key:"isEmpty",value:function(){return typeof this.start!="number"||!this.end||this.end<=this.start}},{key:"setOrigRange",value:function(n,r){var i=this.start,o=this.end;if(n.length===0||o<=n[0])return this.origStart=i,this.origEnd=o,r;for(var s=r;si);)++s;this.origStart=i+s;for(var a=s;s=o);)++s;return this.origEnd=o+s,a}}],[{key:"copy",value:function(n){return new e(n.start,n.end)}}]),e}(),Qe=function(){function e(t,n,r){xn(this,e),Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=t,this.value=null}return Yn(e,[{key:"getPropValue",value:function(n,r,i){if(!this.context)return null;var o=this.context.src,s=this.props[n];return s&&o[s.start]===r?o.slice(s.start+(i?1:0),s.end):null}},{key:"anchor",get:function(){for(var n=0;n0?n.join(` -`):null}},{key:"commentHasRequiredWhitespace",value:function(n){var r=this.context.src;if(this.header&&n===this.header.end||!this.valueRange)return!1;var i=this.valueRange.end;return n!==i||e.atBlank(r,i-1)}},{key:"hasComment",get:function(){if(this.context){for(var n=this.context.src,r=0;r=n.length||n[o]===` `?i+` @@ -536,10 +536,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `?r-1:e.endOfWhiteSpace(n,r):r}},{key:"foldNewline",value:function(n,r,i){for(var o=0,s=!1,a="",c=n[r+1];c===" "||c===" "||c===` `;){switch(c){case` `:o=0,r+=1,a+=` -`;break;case" ":o<=i&&(s=!0),r=e.endOfWhiteSpace(n,r+2)-1;break;case" ":o+=1,r+=1;break}c=n[r+1]}return a||(a=" "),c&&o<=i&&(s=!0),{fold:a,offset:r,error:s}}}]),e}(),ov=function(e){sr(n,e);var t=ar(n);function n(r,i,o){var s;if(xn(this,n),!o||!(i instanceof Qe))throw new Error("Invalid arguments for new ".concat(r));return s=t.call(this),s.name=r,s.message=o,s.source=i,s}return Yn(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var i=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Er(this.offset,this.offset+1);var o=i&&X3(this.offset,i);if(o){var s={line:o.line,col:o.col+1};this.linePos={start:o,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var a=this.linePos.start,c=a.line,u=a.col;this.message+=" at line ".concat(c,", column ").concat(u);var f=i&&y$e(this.linePos,i);f&&(this.message+=`: +`;break;case" ":o<=i&&(s=!0),r=e.endOfWhiteSpace(n,r+2)-1;break;case" ":o+=1,r+=1;break}c=n[r+1]}return a||(a=" "),c&&o<=i&&(s=!0),{fold:a,offset:r,error:s}}}]),e}(),sv=function(e){sr(n,e);var t=ar(n);function n(r,i,o){var s;if(xn(this,n),!o||!(i instanceof Qe))throw new Error("Invalid arguments for new ".concat(r));return s=t.call(this),s.name=r,s.message=o,s.source=i,s}return Yn(n,[{key:"makePretty",value:function(){if(this.source){this.nodeType=this.source.type;var i=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Er(this.offset,this.offset+1);var o=i&&Q3(this.offset,i);if(o){var s={line:o.line,col:o.col+1};this.linePos={start:o,end:s}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){var a=this.linePos.start,c=a.line,u=a.col;this.message+=" at line ".concat(c,", column ").concat(u);var f=i&&E$e(this.linePos,i);f&&(this.message+=`: `.concat(f,` -`))}delete this.source}}}]),n}(q3(Error)),q1=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLReferenceError",r,i)}return n}(ov),Jt=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLSemanticError",r,i)}return n}(ov),go=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLSyntaxError",r,i)}return n}(ov),Ov=function(e){sr(n,e);var t=ar(n);function n(r,i){return xn(this,n),t.call(this,"YAMLWarning",r,i)}return n}(ov),Bte=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;for(var i=this.valueRange,o=i.start,s=i.end,a=this.context.src,c=a[s-1];oy?a.slice(y,f+1):h)}else u+=h}var w=a[o];switch(w){case" ":{var b="Plain value cannot start with a tab character",x=[new Jt(this,b)];return{errors:x,str:u}}case"@":case"`":{var E="Plain value cannot start with reserved character ".concat(w),I=[new Jt(this,E)];return{errors:I,str:u}}default:return u}}},{key:"parseBlockValue",value:function(i){for(var o=this.context,s=o.indent,a=o.inFlow,c=o.src,u=i,f=i,h=c[u];h===` @@ -547,26 +547,26 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho `?u=p:(f=n.endOfLine(c,p,a),u=f)}return this.valueRange.isEmpty()&&(this.valueRange.start=i),this.valueRange.end=f,f}},{key:"parse",value:function(i,o){this.context=i;var s=i.inFlow,a=i.src,c=o,u=a[c];return u&&u!=="#"&&u!==` `&&(c=n.endOfLine(a,o,s)),this.valueRange=new Er(o,c),c=Qe.endOfWhiteSpace(a,c),c=this.parseComment(c),(!this.hasComment||this.valueRange.isEmpty())&&(c=this.parseBlockValue(c)),c}}],[{key:"endOfLine",value:function(i,o,s){for(var a=i[o],c=o;a&&a!==` `&&!(s&&(a==="["||a==="]"||a==="{"||a==="}"||a===","));){var u=i[c+1];if(a===":"&&(!u||u===` -`||u===" "||u===" "||s&&u===",")||(a===" "||a===" ")&&u==="#")break;c+=1,a=u}return c}}]),n}(Qe),X1=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.BLANK_LINE)}return Yn(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(i,o){return this.context=i,this.range=new Er(o,o+1),o+1}}]),n}(Qe),eU=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.node=null,o}return Yn(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.atLineStart,u=i.lineStart;!c&&this.type===Se.SEQ_ITEM&&(this.error=new Jt(this,"Sequence items must not have preceding content on the same line"));for(var f=c?o-u:i.indent,h=Qe.endOfWhiteSpace(a,o+1),p=a[h],g=p==="#",v=[],y=null;p===` +`||u===" "||u===" "||s&&u===",")||(a===" "||a===" ")&&u==="#")break;c+=1,a=u}return c}}]),n}(Qe),K1=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.BLANK_LINE)}return Yn(n,[{key:"includesTrailingLines",get:function(){return!0}},{key:"parse",value:function(i,o){return this.context=i,this.range=new Er(o,o+1),o+1}}]),n}(Qe),rU=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.node=null,o}return Yn(n,[{key:"includesTrailingLines",get:function(){return!!this.node&&this.node.includesTrailingLines}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.atLineStart,u=i.lineStart;!c&&this.type===Se.SEQ_ITEM&&(this.error=new Jt(this,"Sequence items must not have preceding content on the same line"));for(var f=c?o-u:i.indent,h=Qe.endOfWhiteSpace(a,o+1),p=a[h],g=p==="#",v=[],y=null;p===` `||p==="#";){if(p==="#"){var S=Qe.endOfLine(a,h+1);v.push(new Er(h,S)),h=S}else{c=!0,u=h+1;var w=Qe.endOfWhiteSpace(a,u);a[w]===` -`&&v.length===0&&(y=new X1,u=y.parse({src:a},u)),h=Qe.endOfIndent(a,u)}p=a[h]}if(Qe.nextNodeIsIndented(p,h-(u+f),this.type!==Se.SEQ_ITEM)?this.node=s({atLineStart:c,inCollection:!1,indent:f,lineStart:u,parent:this},h):p&&u>o+1&&(h=u-1),this.node){if(y){var b=i.parent.items||i.parent.contents;b&&b.push(y)}v.length&&Array.prototype.push.apply(this.props,v),h=this.node.range.end}else if(g){var x=v[0];this.props.push(x),h=x.end}else h=Qe.endOfLine(a,o+1);var E=this.node?this.node.valueRange.end:h;return this.valueRange=new Er(o,E),h}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.node?this.node.setOrigRanges(i,o):o}},{key:"toString",value:function(){var i=this.context.src,o=this.node,s=this.range,a=this.value;if(a!=null)return a;var c=o?i.slice(s.start,o.range.start)+String(o):i.slice(s.start,s.end);return Qe.addStringTerminator(i,s.end,c)}}]),n}(Qe),Vx=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.COMMENT)}return Yn(n,[{key:"parse",value:function(i,o){this.context=i;var s=this.parseComment(o);return this.range=new Er(o,s),s}}]),n}(Qe);function Y3(e){for(var t=e;t instanceof eU;)t=t.node;if(!(t instanceof $te))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===Se.COMMENT){var s=o.context,a=s.indent,c=s.lineStart;if(a>0&&o.range.start>=c+a)break;r=i}else if(o.type===Se.BLANK_LINE)r=i;else break}if(r===-1)return null;for(var u=t.items.splice(r,n-r),f=u[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return u}var $te=function(e){sr(n,e);var t=ar(n);function n(r){var i;xn(this,n),i=t.call(this,r.type===Se.SEQ_ITEM?Se.SEQ:Se.MAP);for(var o=r.props.length-1;o>=0;--o)if(r.props[o].start0}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=Qe.startOfLine(a,o),u=this.items[0];u.context.parent=this,this.valueRange=Er.copy(u.valueRange);var f=u.range.start-u.context.lineStart,h=o;h=Qe.normalizeOffset(a,h);for(var p=a[h],g=Qe.endOfWhiteSpace(a,c)===h,v=!1;p;){for(;p===` +`&&v.length===0&&(y=new K1,u=y.parse({src:a},u)),h=Qe.endOfIndent(a,u)}p=a[h]}if(Qe.nextNodeIsIndented(p,h-(u+f),this.type!==Se.SEQ_ITEM)?this.node=s({atLineStart:c,inCollection:!1,indent:f,lineStart:u,parent:this},h):p&&u>o+1&&(h=u-1),this.node){if(y){var b=i.parent.items||i.parent.contents;b&&b.push(y)}v.length&&Array.prototype.push.apply(this.props,v),h=this.node.range.end}else if(g){var x=v[0];this.props.push(x),h=x.end}else h=Qe.endOfLine(a,o+1);var E=this.node?this.node.valueRange.end:h;return this.valueRange=new Er(o,E),h}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.node?this.node.setOrigRanges(i,o):o}},{key:"toString",value:function(){var i=this.context.src,o=this.node,s=this.range,a=this.value;if(a!=null)return a;var c=o?i.slice(s.start,o.range.start)+String(o):i.slice(s.start,s.end);return Qe.addStringTerminator(i,s.end,c)}}]),n}(Qe),Xx=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.call(this,Se.COMMENT)}return Yn(n,[{key:"parse",value:function(i,o){this.context=i;var s=this.parseComment(o);return this.range=new Er(o,s),s}}]),n}(Qe);function J3(e){for(var t=e;t instanceof rU;)t=t.node;if(!(t instanceof Fte))return null;for(var n=t.items.length,r=-1,i=n-1;i>=0;--i){var o=t.items[i];if(o.type===Se.COMMENT){var s=o.context,a=s.indent,c=s.lineStart;if(a>0&&o.range.start>=c+a)break;r=i}else if(o.type===Se.BLANK_LINE)r=i;else break}if(r===-1)return null;for(var u=t.items.splice(r,n-r),f=u[0].range.start;t.range.end=f,t.valueRange&&t.valueRange.end>f&&(t.valueRange.end=f),t!==e;)t=t.context.parent;return u}var Fte=function(e){sr(n,e);var t=ar(n);function n(r){var i;xn(this,n),i=t.call(this,r.type===Se.SEQ_ITEM?Se.SEQ:Se.MAP);for(var o=r.props.length-1;o>=0;--o)if(r.props[o].start0}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=Qe.startOfLine(a,o),u=this.items[0];u.context.parent=this,this.valueRange=Er.copy(u.valueRange);var f=u.range.start-u.context.lineStart,h=o;h=Qe.normalizeOffset(a,h);for(var p=a[h],g=Qe.endOfWhiteSpace(a,c)===h,v=!1;p;){for(;p===` `||p==="#";){if(g&&p===` -`&&!v){var y=new X1;if(h=y.parse({src:a},h),this.valueRange.end=h,h>=a.length){p=null;break}this.items.push(y),h-=1}else if(p==="#"){if(h=a.length){p=null;break}}if(c=h+1,h=Qe.endOfIndent(a,c),Qe.atBlank(a,h)){var w=Qe.endOfWhiteSpace(a,h),b=a[w];(!b||b===` +`&&!v){var y=new K1;if(h=y.parse({src:a},h),this.valueRange.end=h,h>=a.length){p=null;break}this.items.push(y),h-=1}else if(p==="#"){if(h=a.length){p=null;break}}if(c=h+1,h=Qe.endOfIndent(a,c),Qe.atBlank(a,h)){var w=Qe.endOfWhiteSpace(a,h),b=a[w];(!b||b===` `||b==="#")&&(h=w)}p=a[h],g=!0}if(!p)break;if(h!==c+f&&(g||p!==":")){if(ho&&(h=c);break}else if(!this.error){var x="All collection items must start at the same column";this.error=new go(this,x)}}if(u.type===Se.SEQ_ITEM){if(p!=="-"){c>o&&(h=c);break}}else if(p==="-"&&!this.error){var E=a[h+1];if(!E||E===` `||E===" "||E===" "){var I="A collection cannot be both a mapping and a sequence";this.error=new go(this,I)}}var A=s({atLineStart:g,inCollection:!0,indent:f,lineStart:c,parent:this},h);if(!A)return h;if(this.items.push(A),this.valueRange.end=A.valueRange.end,h=Qe.normalizeOffset(a,A.range.end),p=a[h],g=!1,v=A.includesTrailingLines,p){for(var k=h-1,O=a[k];O===" "||O===" ";)O=a[--k];O===` -`&&(c=k+1,g=!0)}var D=Y3(A);D&&Array.prototype.push.apply(this.items,D)}return h}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.items.forEach(function(s){o=s.setOrigRanges(i,o)}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;for(var c=i.slice(s.start,o[0].range.start)+String(o[0]),u=1;u=a+s?!0:c!=="#"&&c!==` -`?!1:n.nextContentHasIndent(i,o,s):!1}}]),n}(Qe),b$e=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DIRECTIVE),r.name=null,r}return Yn(n,[{key:"parameters",get:function(){var i=this.rawValue;return i?i.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(i){for(var o=this.context.src,s=i,a=o[s];a&&a!==` +`&&(c=k+1,g=!0)}var L=J3(A);L&&Array.prototype.push.apply(this.items,L)}return h}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.items.forEach(function(s){o=s.setOrigRanges(i,o)}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;for(var c=i.slice(s.start,o[0].range.start)+String(o[0]),u=1;u=a+s?!0:c!=="#"&&c!==` +`?!1:n.nextContentHasIndent(i,o,s):!1}}]),n}(Qe),C$e=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DIRECTIVE),r.name=null,r}return Yn(n,[{key:"parameters",get:function(){var i=this.rawValue;return i?i.trim().split(/[ \t]+/):[]}},{key:"parseName",value:function(i){for(var o=this.context.src,s=i,a=o[s];a&&a!==` `&&a!==" "&&a!==" ";)a=o[s+=1];return this.name=o.slice(i,s),s}},{key:"parseParameters",value:function(i){for(var o=this.context.src,s=i,a=o[s];a&&a!==` -`&&a!=="#";)a=o[s+=1];return this.valueRange=new Er(i,s),s}},{key:"parse",value:function(i,o){this.context=i;var s=this.parseName(o+1);return s=this.parseParameters(s),s=this.parseComment(s),this.range=new Er(o,s),s}}]),n}(Qe),x$e=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this,Se.DOCUMENT),r.directives=null,r.contents=null,r.directivesEndMarker=null,r.documentEndMarker=null,r}return Yn(n,[{key:"parseDirectives",value:function(i){var o=this.context.src;this.directives=[];for(var s=!0,a=!1,c=i;!Qe.atDocumentBoundary(o,c,ni.DIRECTIVES_END);)switch(c=n.startCommentOrEndBlankLine(o,c),o[c]){case` -`:if(s){var u=new X1;c=u.parse({src:o},c),c0&&(this.contents=this.directives,this.directives=[]),c}return o[c]?(this.directivesEndMarker=new Er(c,c+3),c+3):(a?this.error=new Jt(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),c)}},{key:"parseContents",value:function(i){var o=this.context,s=o.parseNode,a=o.src;this.contents||(this.contents=[]);for(var c=i;a[c-1]==="-";)c-=1;var u=Qe.endOfWhiteSpace(a,i),f=c===i;for(this.valueRange=new Er(u);!Qe.atDocumentBoundary(a,u,ni.DOCUMENT_END);){switch(a[u]){case` -`:if(f){var h=new X1;u=h.parse({src:a},u),u0&&(this.contents=this.directives,this.directives=[]),c}return o[c]?(this.directivesEndMarker=new Er(c,c+3),c+3):(a?this.error=new Jt(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),c)}},{key:"parseContents",value:function(i){var o=this.context,s=o.parseNode,a=o.src;this.contents||(this.contents=[]);for(var c=i;a[c-1]==="-";)c-=1;var u=Qe.endOfWhiteSpace(a,i),f=c===i;for(this.valueRange=new Er(u);!Qe.atDocumentBoundary(a,u,ni.DOCUMENT_END);){switch(a[u]){case` +`:if(f){var h=new K1;u=h.parse({src:a},u),u0&&((o.length>0||i[0].type===Se.COMMENT)&&(a+=`--- `),a+=i.join("")),a[a.length-1]!==` `&&(a+=` `),a}}],[{key:"startCommentOrEndBlankLine",value:function(i,o){var s=Qe.endOfWhiteSpace(i,o),a=i[s];return a==="#"||a===` -`?s:o}}]),n}(Qe),w$e=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=Qe.endOfIdentifier(s,o+1);return this.valueRange=new Er(o+1,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}]),n}(Qe),od={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},_$e=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.blockIndent=null,o.chomping=od.CLIP,o.header=null,o}return Yn(n,[{key:"includesTrailingLines",get:function(){return this.chomping===od.KEEP}},{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=this.valueRange,o=i.start,s=i.end,a=this.context,c=a.indent,u=a.src;if(this.valueRange.isEmpty())return"";for(var f=null,h=u[s-1];h===` -`||h===" "||h===" ";){if(s-=1,s<=o){if(this.chomping===od.KEEP)break;return""}h===` -`&&(f=s),h=u[s-1]}var p=s+1;f&&(this.chomping===od.KEEP?(p=f,s=this.valueRange.end):s=f);for(var g=c+this.blockIndent,v=this.type===Se.BLOCK_FOLDED,y=!0,S="",w="",b=!1,x=o;xh&&(h=y);a[g]===` -`?u=g:u=f=Qe.endOfLine(a,g)}return this.chomping!==od.KEEP&&(u=a[f]?f+1:f),this.valueRange=new Er(i+1,u),u}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=this.parseBlockHeader(o);return a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a=this.parseBlockValue(a),a}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.header?this.header.setOrigRange(i,o):o}}]),n}(Qe),S$e=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.items=null,o}return Yn(n,[{key:"prevNodeIsJsonLike",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,o=this.items[i-1];return!!o&&(o.jsonLike||o.type===Se.COMMENT&&this.prevNodeIsJsonLike(i-1))}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.indent,u=i.lineStart,f=a[o];this.items=[{char:f,offset:o}];var h=Qe.endOfWhiteSpace(a,o+1);for(f=a[h];f&&f!=="]"&&f!=="}";){switch(f){case` +`?u=g:u=f=Qe.endOfLine(a,g)}return this.chomping!==sd.KEEP&&(u=a[f]?f+1:f),this.valueRange=new Er(i+1,u),u}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=this.parseBlockHeader(o);return a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a=this.parseBlockValue(a),a}},{key:"setOrigRanges",value:function(i,o){return o=ls(io(n.prototype),"setOrigRanges",this).call(this,i,o),this.header?this.header.setOrigRange(i,o):o}}]),n}(Qe),I$e=function(e){sr(n,e);var t=ar(n);function n(r,i){var o;return xn(this,n),o=t.call(this,r,i),o.items=null,o}return Yn(n,[{key:"prevNodeIsJsonLike",value:function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.items.length,o=this.items[i-1];return!!o&&(o.jsonLike||o.type===Se.COMMENT&&this.prevNodeIsJsonLike(i-1))}},{key:"parse",value:function(i,o){this.context=i;var s=i.parseNode,a=i.src,c=i.indent,u=i.lineStart,f=a[o];this.items=[{char:f,offset:o}];var h=Qe.endOfWhiteSpace(a,o+1);for(f=a[h];f&&f!=="]"&&f!=="}";){switch(f){case` `:{u=h+1;var p=Qe.endOfWhiteSpace(a,u);if(a[p]===` -`){var g=new X1;u=g.parse({src:a},u),this.items.push(g)}if(h=Qe.endOfIndent(a,u),h<=u+c&&(f=a[h],hs.offset);)++a;s.origOffset=s.offset+a,o=a}}),o}},{key:"toString",value:function(){var i=this.context.src,o=this.items,s=this.range,a=this.value;if(a!=null)return a;var c=o.filter(function(h){return h instanceof Qe}),u="",f=s.start;return c.forEach(function(h){var p=i.slice(f,h.range.start);f=h.range.end,u+=p+String(h),u[u.length-1]===` `&&i[f-1]!==` `&&i[f]===` -`&&(f+=1)}),u+=i.slice(f,s.end),Qe.addStringTerminator(i,s.end,u)}}]),n}(Qe),E$e=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=[],o=this.valueRange,s=o.start,a=o.end,c=this.context,u=c.indent,f=c.src;f[a-1]!=='"'&&i.push(new go(this,'Missing closing "quote'));for(var h="",p=s+1;pb?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parseCharCode",value:function(i,o,s){var a=this.context.src,c=a.substr(i,o),u=c.length===o&&/^[0-9a-fA-F]+$/.test(c),f=u?parseInt(c,16):NaN;return isNaN(f)?(s.push(new go(this,"Invalid escape sequence ".concat(a.substr(i-2,o+2)))),a.substr(i-2,o+2)):String.fromCodePoint(f)}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s&&s!=='"';)o+=s==="\\"?2:1,s=i[o];return o+1}}]),n}(Qe),C$e=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=[],o=this.valueRange,s=o.start,a=o.end,c=this.context,u=c.indent,f=c.src;f[a-1]!=="'"&&i.push(new go(this,"Missing closing 'quote"));for(var h="",p=s+1;pb?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parseCharCode",value:function(i,o,s){var a=this.context.src,c=a.substr(i,o),u=c.length===o&&/^[0-9a-fA-F]+$/.test(c),f=u?parseInt(c,16):NaN;return isNaN(f)?(s.push(new go(this,"Invalid escape sequence ".concat(a.substr(i-2,o+2)))),a.substr(i-2,o+2)):String.fromCodePoint(f)}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s&&s!=='"';)o+=s==="\\"?2:1,s=i[o];return o+1}}]),n}(Qe),P$e=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"strValue",get:function(){if(!this.valueRange||!this.context)return null;var i=[],o=this.valueRange,s=o.start,a=o.end,c=this.context,u=c.indent,f=c.src;f[a-1]!=="'"&&i.push(new go(this,"Missing closing 'quote"));for(var h="",p=s+1;pb?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s;)if(s==="'"){if(i[o+1]!=="'")break;s=i[o+=2]}else s=i[o+=1];return o+1}}]),n}(Qe);function T$e(e,t){switch(e){case Se.ALIAS:return new w$e(e,t);case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return new _$e(e,t);case Se.FLOW_MAP:case Se.FLOW_SEQ:return new S$e(e,t);case Se.MAP_KEY:case Se.MAP_VALUE:case Se.SEQ_ITEM:return new eU(e,t);case Se.COMMENT:case Se.PLAIN:return new Bte(e,t);case Se.QUOTE_DOUBLE:return new E$e(e,t);case Se.QUOTE_SINGLE:return new C$e(e,t);default:return null}}var k$e=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.atLineStart,o=r.inCollection,s=r.inFlow,a=r.indent,c=r.lineStart,u=r.parent;xn(this,e),ho(this,"parseNode",function(f,h){if(Qe.atDocumentBoundary(t.src,h))return null;var p=new e(t,f),g=p.parseProps(h),v=g.props,y=g.type,S=g.valueStart,w=T$e(y,v),b=w.parse(p,S);if(w.range=new Er(h,b),b<=h&&(w.error=new Error("Node#parse consumed no characters"),w.error.parseEnd=b,w.error.source=w,w.range.end=h+1),p.nodeStartsCollection(w)){!w.error&&!p.atLineStart&&p.parent.type===Se.DOCUMENT&&(w.error=new go(w,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var x=new $te(w);return b=x.parse(new e(p),b),x.range=new Er(h,b),x}return w}),this.atLineStart=i??(n.atLineStart||!1),this.inCollection=o??(n.inCollection||!1),this.inFlow=s??(n.inFlow||!1),this.indent=a??n.indent,this.lineStart=c??n.lineStart,this.parent=u??(n.parent||{}),this.root=n.root,this.src=n.src}return Yn(e,[{key:"nodeStartsCollection",value:function(n){var r=this.inCollection,i=this.inFlow,o=this.src;if(r||i)return!1;if(n instanceof eU)return!0;var s=n.range.end;return o[s]===` +`&&(h+=p>b?f.slice(b,p+1):g)}else h+=g}return i.length>0?{errors:i,str:h}:h}},{key:"parse",value:function(i,o){this.context=i;var s=i.src,a=n.endOfQuote(s,o+1);return this.valueRange=new Er(o,a),a=Qe.endOfWhiteSpace(s,a),a=this.parseComment(a),a}}],[{key:"endOfQuote",value:function(i,o){for(var s=i[o];s;)if(s==="'"){if(i[o+1]!=="'")break;s=i[o+=2]}else s=i[o+=1];return o+1}}]),n}(Qe);function O$e(e,t){switch(e){case Se.ALIAS:return new k$e(e,t);case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return new A$e(e,t);case Se.FLOW_MAP:case Se.FLOW_SEQ:return new I$e(e,t);case Se.MAP_KEY:case Se.MAP_VALUE:case Se.SEQ_ITEM:return new rU(e,t);case Se.COMMENT:case Se.PLAIN:return new $te(e,t);case Se.QUOTE_DOUBLE:return new R$e(e,t);case Se.QUOTE_SINGLE:return new P$e(e,t);default:return null}}var M$e=function(){function e(){var t=this,n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=r.atLineStart,o=r.inCollection,s=r.inFlow,a=r.indent,c=r.lineStart,u=r.parent;xn(this,e),ho(this,"parseNode",function(f,h){if(Qe.atDocumentBoundary(t.src,h))return null;var p=new e(t,f),g=p.parseProps(h),v=g.props,y=g.type,S=g.valueStart,w=O$e(y,v),b=w.parse(p,S);if(w.range=new Er(h,b),b<=h&&(w.error=new Error("Node#parse consumed no characters"),w.error.parseEnd=b,w.error.source=w,w.range.end=h+1),p.nodeStartsCollection(w)){!w.error&&!p.atLineStart&&p.parent.type===Se.DOCUMENT&&(w.error=new go(w,"Block collection must not have preceding content here (e.g. directives-end indicator)"));var x=new Fte(w);return b=x.parse(new e(p),b),x.range=new Er(h,b),x}return w}),this.atLineStart=i??(n.atLineStart||!1),this.inCollection=o??(n.inCollection||!1),this.inFlow=s??(n.inFlow||!1),this.indent=a??n.indent,this.lineStart=c??n.lineStart,this.parent=u??(n.parent||{}),this.root=n.root,this.src=n.src}return Yn(e,[{key:"nodeStartsCollection",value:function(n){var r=this.inCollection,i=this.inFlow,o=this.src;if(r||i)return!1;if(n instanceof rU)return!0;var s=n.range.end;return o[s]===` `||o[s-1]===` `?!1:(s=Qe.endOfWhiteSpace(o,s),o[s]===":")}},{key:"parseProps",value:function(n){var r=this.inFlow,i=this.parent,o=this.src,s=[],a=!1;n=this.atLineStart?Qe.endOfIndent(o,n):Qe.endOfWhiteSpace(o,n);for(var c=o[n];c===ni.ANCHOR||c===ni.COMMENT||c===ni.TAG||c===` `;){if(c===` `){var u=n,f=void 0;do f=u+1,u=Qe.endOfIndent(o,f);while(o[u]===` -`);var h=u-(f+this.indent),p=i.type===Se.SEQ_ITEM&&i.context.atLineStart;if(o[u]!=="#"&&!Qe.nextNodeIsIndented(o[u],h,!p))break;this.atLineStart=!0,this.lineStart=f,a=!1,n=u}else if(c===ni.COMMENT){var g=Qe.endOfLine(o,n+1);s.push(new Er(n,g)),n=g}else{var v=Qe.endOfIdentifier(o,n+1);c===ni.TAG&&o[v]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(o.slice(n+1,v+13))&&(v=Qe.endOfIdentifier(o,v+5)),s.push(new Er(n,v)),a=!0,n=Qe.endOfWhiteSpace(o,v)}c=o[n]}a&&c===":"&&Qe.atBlank(o,n+1,!0)&&(n-=1);var y=e.parseType(o,n,r);return{props:s,type:y,valueStart:n}}}],[{key:"parseType",value:function(n,r,i){switch(n[r]){case"*":return Se.ALIAS;case">":return Se.BLOCK_FOLDED;case"|":return Se.BLOCK_LITERAL;case"{":return Se.FLOW_MAP;case"[":return Se.FLOW_SEQ;case"?":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_KEY:Se.PLAIN;case":":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_VALUE:Se.PLAIN;case"-":return!i&&Qe.atBlank(n,r+1,!0)?Se.SEQ_ITEM:Se.PLAIN;case'"':return Se.QUOTE_DOUBLE;case"'":return Se.QUOTE_SINGLE;default:return Se.PLAIN}}}]),e}();function tU(e){var t=[];e.indexOf("\r")!==-1&&(e=e.replace(/\r\n?/g,function(s,a){return s.length>1&&t.push(a),` -`}));var n=[],r=0;do{var i=new x$e,o=new k$e({src:e});r=i.parse(o,r),n.push(i)}while(r":return Se.BLOCK_FOLDED;case"|":return Se.BLOCK_LITERAL;case"{":return Se.FLOW_MAP;case"[":return Se.FLOW_SEQ;case"?":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_KEY:Se.PLAIN;case":":return!i&&Qe.atBlank(n,r+1,!0)?Se.MAP_VALUE:Se.PLAIN;case"-":return!i&&Qe.atBlank(n,r+1,!0)?Se.SEQ_ITEM:Se.PLAIN;case'"':return Se.QUOTE_DOUBLE;case"'":return Se.QUOTE_SINGLE;default:return Se.PLAIN}}}]),e}();function iU(e){var t=[];e.indexOf("\r")!==-1&&(e=e.replace(/\r\n?/g,function(s,a){return s.length>1&&t.push(a),` +`}));var n=[],r=0;do{var i=new T$e,o=new M$e({src:e});r=i.parse(o,r),n.push(i)}while(r=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var s=[];s[o]=r,r=s}else{var a={};Object.defineProperty(a,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=a}}return e.createNode(r,!1)}var dx=function(t){return t==null||Xs(t)==="object"&&t[Symbol.iterator]().next().done},eo=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),ho(la(i),"items",[]),i.schema=r,i}return Yn(n,[{key:"addIn",value:function(i,o){if(dx(i))this.add(o);else{var s=zb(i),a=s[0],c=s.slice(1),u=this.get(a,!0);if(u instanceof n)u.addIn(c,o);else if(u===void 0&&this.schema)this.set(a,Q9(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(i){var o=zb(i),s=o[0],a=o.slice(1);if(a.length===0)return this.delete(s);var c=this.get(s,!0);if(c instanceof n)return c.deleteIn(a);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(a))}},{key:"getIn",value:function(i,o){var s=zb(i),a=s[0],c=s.slice(1),u=this.get(a,!0);return c.length===0?!o&&u instanceof Un?u.value:u:u instanceof n?u.getIn(c,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(i){if(!i||i.type!=="PAIR")return!1;var o=i.value;return o==null||o instanceof Un&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(i){var o=zb(i),s=o[0],a=o.slice(1);if(a.length===0)return this.has(s);var c=this.get(s,!0);return c instanceof n?c.hasIn(a):!1}},{key:"setIn",value:function(i,o){var s=zb(i),a=s[0],c=s.slice(1);if(c.length===0)this.set(a,o);else{var u=this.get(a,!0);if(u instanceof n)u.setIn(c,o);else if(u===void 0&&this.schema)this.set(a,Q9(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(i,o,s,a){var c=this,u=o.blockItem,f=o.flowChars,h=o.isMap,p=o.itemIndent,g=i,v=g.indent,y=g.indentStep,S=g.stringify,w=this.type===Se.FLOW_MAP||this.type===Se.FLOW_SEQ||i.inFlow;w&&(p+=y);var b=h&&this.hasAllNullValues();i=Object.assign({},i,{allNullValues:b,indent:p,inFlow:w,type:null});var x=!1,E=!1,I=this.items.reduce(function(V,W,K){var X;W&&(!x&&W.spaceBefore&&V.push({type:"comment",str:""}),W.commentBefore&&W.commentBefore.match(/^.*$/gm).forEach(function(ie){V.push({type:"comment",str:"#".concat(ie)})}),W.comment&&(X=W.comment),w&&(!x&&W.spaceBefore||W.commentBefore||W.comment||W.key&&(W.key.commentBefore||W.key.comment)||W.value&&(W.value.commentBefore||W.value.comment))&&(E=!0)),x=!1;var Q=S(W,i,function(){return X=null},function(){return x=!0});return w&&!E&&Q.includes(` -`)&&(E=!0),w&&Kn.maxFlowStringSingleLineLength){A=k;var N=ir(D),H;try{for(N.s();!(H=N.n()).done;){var G=H.value;A+=G?` +`)+n.replace(/^/gm,"".concat(t||"","#")):e}var Qo=function e(){xn(this,e)};function Sl(e,t,n){if(Array.isArray(e))return e.map(function(o,s){return Sl(o,String(s),n)});if(e&&typeof e.toJSON=="function"){var r=n&&n.anchors&&n.anchors.get(e);r&&(n.onCreate=function(o){r.res=o,delete n.onCreate});var i=e.toJSON(t,n);return r&&n.onCreate&&n.onCreate(i),i}return(!n||!n.keep)&&typeof e=="bigint"?Number(e):e}var Un=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),i.value=r,i}return Yn(n,[{key:"toJSON",value:function(i,o){return o&&o.keep?this.value:Sl(this.value,i,o)}},{key:"toString",value:function(){return String(this.value)}}]),n}(Qo);function e7(e,t,n){for(var r=n,i=t.length-1;i>=0;--i){var o=t[i];if(Number.isInteger(o)&&o>=0){var s=[];s[o]=r,r=s}else{var a={};Object.defineProperty(a,o,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=a}}return e.createNode(r,!1)}var hx=function(t){return t==null||Xs(t)==="object"&&t[Symbol.iterator]().next().done},eo=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),ho(ca(i),"items",[]),i.schema=r,i}return Yn(n,[{key:"addIn",value:function(i,o){if(hx(i))this.add(o);else{var s=Ub(i),a=s[0],c=s.slice(1),u=this.get(a,!0);if(u instanceof n)u.addIn(c,o);else if(u===void 0&&this.schema)this.set(a,e7(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"deleteIn",value:function(i){var o=Ub(i),s=o[0],a=o.slice(1);if(a.length===0)return this.delete(s);var c=this.get(s,!0);if(c instanceof n)return c.deleteIn(a);throw new Error("Expected YAML collection at ".concat(s,". Remaining path: ").concat(a))}},{key:"getIn",value:function(i,o){var s=Ub(i),a=s[0],c=s.slice(1),u=this.get(a,!0);return c.length===0?!o&&u instanceof Un?u.value:u:u instanceof n?u.getIn(c,o):void 0}},{key:"hasAllNullValues",value:function(){return this.items.every(function(i){if(!i||i.type!=="PAIR")return!1;var o=i.value;return o==null||o instanceof Un&&o.value==null&&!o.commentBefore&&!o.comment&&!o.tag})}},{key:"hasIn",value:function(i){var o=Ub(i),s=o[0],a=o.slice(1);if(a.length===0)return this.has(s);var c=this.get(s,!0);return c instanceof n?c.hasIn(a):!1}},{key:"setIn",value:function(i,o){var s=Ub(i),a=s[0],c=s.slice(1);if(c.length===0)this.set(a,o);else{var u=this.get(a,!0);if(u instanceof n)u.setIn(c,o);else if(u===void 0&&this.schema)this.set(a,e7(this.schema,c,o));else throw new Error("Expected YAML collection at ".concat(a,". Remaining path: ").concat(c))}}},{key:"toJSON",value:function(){return null}},{key:"toString",value:function(i,o,s,a){var c=this,u=o.blockItem,f=o.flowChars,h=o.isMap,p=o.itemIndent,g=i,v=g.indent,y=g.indentStep,S=g.stringify,w=this.type===Se.FLOW_MAP||this.type===Se.FLOW_SEQ||i.inFlow;w&&(p+=y);var b=h&&this.hasAllNullValues();i=Object.assign({},i,{allNullValues:b,indent:p,inFlow:w,type:null});var x=!1,E=!1,I=this.items.reduce(function(V,W,K){var X;W&&(!x&&W.spaceBefore&&V.push({type:"comment",str:""}),W.commentBefore&&W.commentBefore.match(/^.*$/gm).forEach(function(ie){V.push({type:"comment",str:"#".concat(ie)})}),W.comment&&(X=W.comment),w&&(!x&&W.spaceBefore||W.commentBefore||W.comment||W.key&&(W.key.commentBefore||W.key.comment)||W.value&&(W.value.commentBefore||W.value.comment))&&(E=!0)),x=!1;var Q=S(W,i,function(){return X=null},function(){return x=!0});return w&&!E&&Q.includes(` +`)&&(E=!0),w&&Kn.maxFlowStringSingleLineLength){A=k;var N=ir(L),H;try{for(N.s();!(H=N.n()).done;){var G=H.value;A+=G?` `.concat(y).concat(v).concat(G):` `}}catch(V){N.e(V)}finally{N.f()}A+=` -`.concat(v).concat(O)}else A="".concat(k," ").concat(D.join(" ")," ").concat(O)}else{var z=I.map(u);A=z.shift();var L=ir(z),F;try{for(L.s();!(F=L.n()).done;){var j=F.value;A+=j?` +`.concat(v).concat(O)}else A="".concat(k," ").concat(L.join(" ")," ").concat(O)}else{var z=I.map(u);A=z.shift();var D=ir(z),F;try{for(D.s();!(F=D.n()).done;){var j=F.value;A+=j?` `.concat(v).concat(j):` -`}}catch(V){L.e(V)}finally{L.f()}}return this.comment?(A+=` -`+this.comment.replace(/^/gm,"".concat(v,"#")),s&&s()):x&&a&&a(),A}}]),n}(Qo);ho(eo,"maxFlowStringSingleLineLength",60);function sS(e){var t=e instanceof Un?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var oc=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i){this.items.push(i)}},{key:"delete",value:function(i){var o=sS(i);if(typeof o!="number")return!1;var s=this.items.splice(o,1);return s.length>0}},{key:"get",value:function(i,o){var s=sS(i);if(typeof s=="number"){var a=this.items[s];return!o&&a instanceof Un?a.value:a}}},{key:"has",value:function(i){var o=sS(i);return typeof o=="number"&&o1&&arguments[1]!==void 0?arguments[1]:null;return xn(this,n),i=t.call(this),i.key=r,i.value=o,i.type=n.Type.PAIR,i}return Yn(n,[{key:"commentBefore",get:function(){return this.key instanceof Qo?this.key.commentBefore:void 0},set:function(i){if(this.key==null&&(this.key=new Un(null)),this.key instanceof Qo)this.key.commentBefore=i;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(i,o){var s=_l(this.key,"",i);if(o instanceof Map){var a=_l(this.value,s,i);o.set(s,a)}else if(o instanceof Set)o.add(s);else{var c=I$e(this.key,s,i),u=_l(this.value,c,i);c in o?Object.defineProperty(o,c,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[c]=u}return o}},{key:"toJSON",value:function(i,o){var s=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,s)}},{key:"toString",value:function(i,o,s){if(!i||!i.doc)return JSON.stringify(this);var a=i.doc.options,c=a.indent,u=a.indentSeq,f=a.simpleKeys,h=this.key,p=this.value,g=h instanceof Qo&&h.comment;if(f){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(h instanceof eo){var v="With simple keys, collection cannot be used as a key value";throw new Error(v)}}var y=!f&&(!h||g||(h instanceof Qo?h instanceof eo||h.type===Se.BLOCK_FOLDED||h.type===Se.BLOCK_LITERAL:Xs(h)==="object")),S=i,w=S.doc,b=S.indent,x=S.indentStep,E=S.stringify;i=Object.assign({},i,{implicitKey:!y,indent:b+x});var I=!1,A=E(h,i,function(){return g=null},function(){return I=!0});if(A=lg(A,i.indent,g),!y&&A.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(i.allNullValues&&!f)return this.comment?(A=lg(A,i.indent,this.comment),o&&o()):I&&!g&&s&&s(),i.inFlow&&!y?A:"? ".concat(A);A=y?"? ".concat(A,` -`).concat(b,":"):"".concat(A,":"),this.comment&&(A=lg(A,i.indent,this.comment),o&&o());var k="",O=null;if(p instanceof Qo){if(p.spaceBefore&&(k=` -`),p.commentBefore){var D=p.commentBefore.replace(/^/gm,"".concat(i.indent,"#"));k+=` -`.concat(D)}O=p.comment}else p&&Xs(p)==="object"&&(p=w.schema.createNode(p,!0));i.implicitKey=!1,!y&&!this.comment&&p instanceof Un&&(i.indentAtStart=A.length+1),I=!1,!u&&c>=2&&!i.inFlow&&!y&&p instanceof oc&&p.type!==Se.FLOW_SEQ&&!p.tag&&!w.anchors.getName(p)&&(i.indent=i.indent.substr(2));var N=E(p,i,function(){return O=null},function(){return I=!0}),H=" ";if(k||this.comment)H="".concat(k,` +`}}catch(V){D.e(V)}finally{D.f()}}return this.comment?(A+=` +`+this.comment.replace(/^/gm,"".concat(v,"#")),s&&s()):x&&a&&a(),A}}]),n}(Qo);ho(eo,"maxFlowStringSingleLineLength",60);function aS(e){var t=e instanceof Un?e.value:e;return t&&typeof t=="string"&&(t=Number(t)),Number.isInteger(t)&&t>=0?t:null}var ac=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i){this.items.push(i)}},{key:"delete",value:function(i){var o=aS(i);if(typeof o!="number")return!1;var s=this.items.splice(o,1);return s.length>0}},{key:"get",value:function(i,o){var s=aS(i);if(typeof s=="number"){var a=this.items[s];return!o&&a instanceof Un?a.value:a}}},{key:"has",value:function(i){var o=aS(i);return typeof o=="number"&&o1&&arguments[1]!==void 0?arguments[1]:null;return xn(this,n),i=t.call(this),i.key=r,i.value=o,i.type=n.Type.PAIR,i}return Yn(n,[{key:"commentBefore",get:function(){return this.key instanceof Qo?this.key.commentBefore:void 0},set:function(i){if(this.key==null&&(this.key=new Un(null)),this.key instanceof Qo)this.key.commentBefore=i;else{var o="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(o)}}},{key:"addToJSMap",value:function(i,o){var s=Sl(this.key,"",i);if(o instanceof Map){var a=Sl(this.value,s,i);o.set(s,a)}else if(o instanceof Set)o.add(s);else{var c=L$e(this.key,s,i),u=Sl(this.value,c,i);c in o?Object.defineProperty(o,c,{value:u,writable:!0,enumerable:!0,configurable:!0}):o[c]=u}return o}},{key:"toJSON",value:function(i,o){var s=o&&o.mapAsMap?new Map:{};return this.addToJSMap(o,s)}},{key:"toString",value:function(i,o,s){if(!i||!i.doc)return JSON.stringify(this);var a=i.doc.options,c=a.indent,u=a.indentSeq,f=a.simpleKeys,h=this.key,p=this.value,g=h instanceof Qo&&h.comment;if(f){if(g)throw new Error("With simple keys, key nodes cannot have comments");if(h instanceof eo){var v="With simple keys, collection cannot be used as a key value";throw new Error(v)}}var y=!f&&(!h||g||(h instanceof Qo?h instanceof eo||h.type===Se.BLOCK_FOLDED||h.type===Se.BLOCK_LITERAL:Xs(h)==="object")),S=i,w=S.doc,b=S.indent,x=S.indentStep,E=S.stringify;i=Object.assign({},i,{implicitKey:!y,indent:b+x});var I=!1,A=E(h,i,function(){return g=null},function(){return I=!0});if(A=cg(A,i.indent,g),!y&&A.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");y=!0}if(i.allNullValues&&!f)return this.comment?(A=cg(A,i.indent,this.comment),o&&o()):I&&!g&&s&&s(),i.inFlow&&!y?A:"? ".concat(A);A=y?"? ".concat(A,` +`).concat(b,":"):"".concat(A,":"),this.comment&&(A=cg(A,i.indent,this.comment),o&&o());var k="",O=null;if(p instanceof Qo){if(p.spaceBefore&&(k=` +`),p.commentBefore){var L=p.commentBefore.replace(/^/gm,"".concat(i.indent,"#"));k+=` +`.concat(L)}O=p.comment}else p&&Xs(p)==="object"&&(p=w.schema.createNode(p,!0));i.implicitKey=!1,!y&&!this.comment&&p instanceof Un&&(i.indentAtStart=A.length+1),I=!1,!u&&c>=2&&!i.inFlow&&!y&&p instanceof ac&&p.type!==Se.FLOW_SEQ&&!p.tag&&!w.anchors.getName(p)&&(i.indent=i.indent.substr(2));var N=E(p,i,function(){return O=null},function(){return I=!0}),H=" ";if(k||this.comment)H="".concat(k,` `).concat(i.indent);else if(!y&&p instanceof eo){var G=N[0]==="["||N[0]==="{";(!G||N.includes(` `))&&(H=` `.concat(i.indent))}else N[0]===` -`&&(H="");return I&&!O&&s&&s(),lg(A+H+N,i.indent,O)}}]),n}(Qo);ho(vn,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var R$e=function e(t,n){if(t instanceof Hu){var r=n.get(t.source);return r.count*r.aliasCount}else if(t instanceof eo){var i=0,o=ir(t.items),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=e(a,n);c>i&&(i=c)}}catch(h){o.e(h)}finally{o.f()}return i}else if(t instanceof vn){var u=e(t.key,n),f=e(t.value,n);return Math.max(u,f)}return 1},Hu=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),i.source=r,i.type=Se.ALIAS,i}return Yn(n,[{key:"tag",set:function(i){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(i,o){if(!o)return _l(this.source,i,o);var s=o.anchors,a=o.maxAliasCount,c=s.get(this.source);if(!c||c.res===void 0){var u="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new q1(this.cstNode,u):new ReferenceError(u)}if(a>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=R$e(this.source,s)),c.count*c.aliasCount>a)){var f="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new q1(this.cstNode,f):new ReferenceError(f)}return c.res}},{key:"toString",value:function(i){return n.stringify(this,i)}}],[{key:"stringify",value:function(i,o){var s=i.range,a=i.source,c=o.anchors,u=o.doc,f=o.implicitKey,h=o.inStringifyKey,p=Object.keys(c).find(function(v){return c[v]===a});if(!p&&h&&(p=u.anchors.getName(a)||u.anchors.newName()),p)return"*".concat(p).concat(f?" ":"");var g=u.anchors.getName(a)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(g," [").concat(s,"]"))}}]),n}(Qo);ho(Hu,"default",!0);function gp(e,t){var n=t instanceof Un?t.value:t,r=ir(e),i;try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o instanceof vn&&(o.key===t||o.key===n||o.key&&o.key.value===n))return o}}catch(s){r.e(s)}finally{r.f()}}var Jo=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i,o){i?i instanceof vn||(i=new vn(i.key||i,i.value)):i=new vn(i);var s=gp(this.items,i.key),a=this.schema&&this.schema.sortMapEntries;if(s)if(o)s.value=i.value;else throw new Error("Key ".concat(i.key," already set"));else if(a){var c=this.items.findIndex(function(u){return a(i,u)<0});c===-1?this.items.push(i):this.items.splice(c,0,i)}else this.items.push(i)}},{key:"delete",value:function(i){var o=gp(this.items,i);if(!o)return!1;var s=this.items.splice(this.items.indexOf(o),1);return s.length>0}},{key:"get",value:function(i,o){var s=gp(this.items,i),a=s&&s.value;return!o&&a instanceof Un?a.value:a}},{key:"has",value:function(i){return!!gp(this.items,i)}},{key:"set",value:function(i,o){this.add(new vn(i,o),!0)}},{key:"toJSON",value:function(i,o,s){var a=s?new s:o&&o.mapAsMap?new Map:{};o&&o.onCreate&&o.onCreate(a);var c=ir(this.items),u;try{for(c.s();!(u=c.n()).done;){var f=u.value;f.addToJSMap(o,a)}}catch(h){c.e(h)}finally{c.f()}return a}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value;if(!(u instanceof vn))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(f){a.e(f)}finally{a.f()}return ls(io(n.prototype),"toString",this).call(this,i,{blockItem:function(h){return h.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:i.indent||""},o,s)}}]),n}(eo),Fte="<<",zte=function(e){sr(n,e);var t=ar(n);function n(r){var i;if(xn(this,n),r instanceof vn){var o=r.value;o instanceof oc||(o=new oc,o.items.push(r.value),o.range=r.value.range),i=t.call(this,r.key,o),i.range=r.range}else i=t.call(this,new Un(Fte),new oc);return i.type=vn.Type.MERGE_PAIR,Mte(i)}return Yn(n,[{key:"addToJSMap",value:function(i,o){var s=ir(this.value.items),a;try{for(s.s();!(a=s.n()).done;){var c=a.value.source;if(!(c instanceof Jo))throw new Error("Merge sources must be maps");var u=c.toJSON(null,i,Map),f=ir(u),h;try{for(f.s();!(h=f.n()).done;){var p=Gw(h.value,2),g=p[0],v=p[1];o instanceof Map?o.has(g)||o.set(g,v):o instanceof Set?o.add(g):Object.prototype.hasOwnProperty.call(o,g)||Object.defineProperty(o,g,{value:v,writable:!0,enumerable:!0,configurable:!0})}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}return o}},{key:"toString",value:function(i,o){var s=this.value;if(s.items.length>1)return ls(io(n.prototype),"toString",this).call(this,i,o);this.value=s.items[0];var a=ls(io(n.prototype),"toString",this).call(this,i,o);return this.value=s,a}}]),n}(vn),qx={defaultType:Se.BLOCK_LITERAL,lineWidth:76},Ou={trueStr:"true",falseStr:"false"},of={asBigInt:!1},sv={nullStr:"null"},Wu={defaultType:Se.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function nU(e,t,n){var r=ir(t),i;try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.format,a=o.test,c=o.resolve;if(a){var u=e.match(a);if(u){var f=c.apply(null,u);return f instanceof Un||(f=new Un(f)),s&&(f.format=s),f}}}}catch(h){r.e(h)}finally{r.f()}return n&&(e=n(e)),new Un(e)}var jte="flow",K3="block",CE="quoted",J9=function(t,n){for(var r=t[n+1];r===" "||r===" ";){do r=t[n+=1];while(r&&r!==` -`);r=t[n+1]}return n};function bA(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,s=o===void 0?80:o,a=r.minContentWidth,c=a===void 0?20:a,u=r.onFold,f=r.onOverflow;if(!s||s<0)return e;var h=Math.max(1+c,1+s-t.length);if(e.length<=h)return e;var p=[],g={},v=s-t.length;typeof i=="number"&&(i>s-Math.max(2,c)?p.push(0):v=s-i);var y=void 0,S=void 0,w=!1,b=-1,x=-1,E=-1;n===K3&&(b=J9(e,b),b!==-1&&(v=b+h));for(var I;I=e[b+=1];){if(n===CE&&I==="\\"){switch(x=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}E=b}if(I===` -`)n===K3&&(b=J9(e,b)),v=b+h,y=void 0;else{if(I===" "&&S&&S!==" "&&S!==` +`&&(H="");return I&&!O&&s&&s(),cg(A+H+N,i.indent,O)}}]),n}(Qo);ho(vn,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var N$e=function e(t,n){if(t instanceof Wu){var r=n.get(t.source);return r.count*r.aliasCount}else if(t instanceof eo){var i=0,o=ir(t.items),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=e(a,n);c>i&&(i=c)}}catch(h){o.e(h)}finally{o.f()}return i}else if(t instanceof vn){var u=e(t.key,n),f=e(t.value,n);return Math.max(u,f)}return 1},Wu=function(e){sr(n,e);var t=ar(n);function n(r){var i;return xn(this,n),i=t.call(this),i.source=r,i.type=Se.ALIAS,i}return Yn(n,[{key:"tag",set:function(i){throw new Error("Alias nodes cannot have tags")}},{key:"toJSON",value:function(i,o){if(!o)return Sl(this.source,i,o);var s=o.anchors,a=o.maxAliasCount,c=s.get(this.source);if(!c||c.res===void 0){var u="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new Y1(this.cstNode,u):new ReferenceError(u)}if(a>=0&&(c.count+=1,c.aliasCount===0&&(c.aliasCount=N$e(this.source,s)),c.count*c.aliasCount>a)){var f="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new Y1(this.cstNode,f):new ReferenceError(f)}return c.res}},{key:"toString",value:function(i){return n.stringify(this,i)}}],[{key:"stringify",value:function(i,o){var s=i.range,a=i.source,c=o.anchors,u=o.doc,f=o.implicitKey,h=o.inStringifyKey,p=Object.keys(c).find(function(v){return c[v]===a});if(!p&&h&&(p=u.anchors.getName(a)||u.anchors.newName()),p)return"*".concat(p).concat(f?" ":"");var g=u.anchors.getName(a)?"Alias node must be after source node":"Source node not found for alias node";throw new Error("".concat(g," [").concat(s,"]"))}}]),n}(Qo);ho(Wu,"default",!0);function yp(e,t){var n=t instanceof Un?t.value:t,r=ir(e),i;try{for(r.s();!(i=r.n()).done;){var o=i.value;if(o instanceof vn&&(o.key===t||o.key===n||o.key&&o.key.value===n))return o}}catch(s){r.e(s)}finally{r.f()}}var Jo=function(e){sr(n,e);var t=ar(n);function n(){return xn(this,n),t.apply(this,arguments)}return Yn(n,[{key:"add",value:function(i,o){i?i instanceof vn||(i=new vn(i.key||i,i.value)):i=new vn(i);var s=yp(this.items,i.key),a=this.schema&&this.schema.sortMapEntries;if(s)if(o)s.value=i.value;else throw new Error("Key ".concat(i.key," already set"));else if(a){var c=this.items.findIndex(function(u){return a(i,u)<0});c===-1?this.items.push(i):this.items.splice(c,0,i)}else this.items.push(i)}},{key:"delete",value:function(i){var o=yp(this.items,i);if(!o)return!1;var s=this.items.splice(this.items.indexOf(o),1);return s.length>0}},{key:"get",value:function(i,o){var s=yp(this.items,i),a=s&&s.value;return!o&&a instanceof Un?a.value:a}},{key:"has",value:function(i){return!!yp(this.items,i)}},{key:"set",value:function(i,o){this.add(new vn(i,o),!0)}},{key:"toJSON",value:function(i,o,s){var a=s?new s:o&&o.mapAsMap?new Map:{};o&&o.onCreate&&o.onCreate(a);var c=ir(this.items),u;try{for(c.s();!(u=c.n()).done;){var f=u.value;f.addToJSMap(o,a)}}catch(h){c.e(h)}finally{c.f()}return a}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value;if(!(u instanceof vn))throw new Error("Map items must all be pairs; found ".concat(JSON.stringify(u)," instead"))}}catch(f){a.e(f)}finally{a.f()}return ls(io(n.prototype),"toString",this).call(this,i,{blockItem:function(h){return h.str},flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:i.indent||""},o,s)}}]),n}(eo),zte="<<",jte=function(e){sr(n,e);var t=ar(n);function n(r){var i;if(xn(this,n),r instanceof vn){var o=r.value;o instanceof ac||(o=new ac,o.items.push(r.value),o.range=r.value.range),i=t.call(this,r.key,o),i.range=r.range}else i=t.call(this,new Un(zte),new ac);return i.type=vn.Type.MERGE_PAIR,Dte(i)}return Yn(n,[{key:"addToJSMap",value:function(i,o){var s=ir(this.value.items),a;try{for(s.s();!(a=s.n()).done;){var c=a.value.source;if(!(c instanceof Jo))throw new Error("Merge sources must be maps");var u=c.toJSON(null,i,Map),f=ir(u),h;try{for(f.s();!(h=f.n()).done;){var p=Vw(h.value,2),g=p[0],v=p[1];o instanceof Map?o.has(g)||o.set(g,v):o instanceof Set?o.add(g):Object.prototype.hasOwnProperty.call(o,g)||Object.defineProperty(o,g,{value:v,writable:!0,enumerable:!0,configurable:!0})}}catch(y){f.e(y)}finally{f.f()}}}catch(y){s.e(y)}finally{s.f()}return o}},{key:"toString",value:function(i,o){var s=this.value;if(s.items.length>1)return ls(io(n.prototype),"toString",this).call(this,i,o);this.value=s.items[0];var a=ls(io(n.prototype),"toString",this).call(this,i,o);return this.value=s,a}}]),n}(vn),Yx={defaultType:Se.BLOCK_LITERAL,lineWidth:76},Mu={trueStr:"true",falseStr:"false"},af={asBigInt:!1},av={nullStr:"null"},Gu={defaultType:Se.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function oU(e,t,n){var r=ir(t),i;try{for(r.s();!(i=r.n()).done;){var o=i.value,s=o.format,a=o.test,c=o.resolve;if(a){var u=e.match(a);if(u){var f=c.apply(null,u);return f instanceof Un||(f=new Un(f)),s&&(f.format=s),f}}}}catch(h){r.e(h)}finally{r.f()}return n&&(e=n(e)),new Un(e)}var Ute="flow",Z3="block",TE="quoted",t7=function(t,n){for(var r=t[n+1];r===" "||r===" ";){do r=t[n+=1];while(r&&r!==` +`);r=t[n+1]}return n};function wA(e,t,n,r){var i=r.indentAtStart,o=r.lineWidth,s=o===void 0?80:o,a=r.minContentWidth,c=a===void 0?20:a,u=r.onFold,f=r.onOverflow;if(!s||s<0)return e;var h=Math.max(1+c,1+s-t.length);if(e.length<=h)return e;var p=[],g={},v=s-t.length;typeof i=="number"&&(i>s-Math.max(2,c)?p.push(0):v=s-i);var y=void 0,S=void 0,w=!1,b=-1,x=-1,E=-1;n===Z3&&(b=t7(e,b),b!==-1&&(v=b+h));for(var I;I=e[b+=1];){if(n===TE&&I==="\\"){switch(x=b,e[b+1]){case"x":b+=3;break;case"u":b+=5;break;case"U":b+=9;break;default:b+=1}E=b}if(I===` +`)n===Z3&&(b=t7(e,b)),v=b+h,y=void 0;else{if(I===" "&&S&&S!==" "&&S!==` `&&S!==" "){var A=e[b+1];A&&A!==" "&&A!==` -`&&A!==" "&&(y=b)}if(b>=v)if(y)p.push(y),v=y+h,y=void 0;else if(n===CE){for(;S===" "||S===" ";)S=I,I=e[b+=1],w=!0;var k=b>E+1?b-2:x-1;if(g[k])return e;p.push(k),g[k]=!0,v=k+h,y=void 0}else w=!0}S=I}if(w&&f&&f(),p.length===0)return e;u&&u();for(var O=e.slice(0,p[0]),D=0;Dr)return!0;if(s=o+1,i-s<=r)return!1}return!0}function Tp(e,t){var n=t.implicitKey,r=Wu.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,s=JSON.stringify(e);if(i)return s;for(var a=t.indent||(xA(e)?" ":""),c="",u=0,f=0,h=s[f];h;h=s[++f])if(h===" "&&s[f+1]==="\\"&&s[f+2]==="n"&&(c+=s.slice(u,f)+"\\ ",f+=1,u=f,h="\\"),h==="\\")switch(s[f+1]){case"u":{c+=s.slice(u,f);var p=s.substr(f+2,4);switch(p){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:p.substr(0,2)==="00"?c+="\\x"+p.substr(2):c+=s.substr(f,6)}f+=5,u=f+1}break;case"n":if(n||s[f+2]==='"'||s.length=v)if(y)p.push(y),v=y+h,y=void 0;else if(n===TE){for(;S===" "||S===" ";)S=I,I=e[b+=1],w=!0;var k=b>E+1?b-2:x-1;if(g[k])return e;p.push(k),g[k]=!0,v=k+h,y=void 0}else w=!0}S=I}if(w&&f&&f(),p.length===0)return e;u&&u();for(var O=e.slice(0,p[0]),L=0;Lr)return!0;if(s=o+1,i-s<=r)return!1}return!0}function Ap(e,t){var n=t.implicitKey,r=Gu.doubleQuoted,i=r.jsonEncoding,o=r.minMultiLineLength,s=JSON.stringify(e);if(i)return s;for(var a=t.indent||(_A(e)?" ":""),c="",u=0,f=0,h=s[f];h;h=s[++f])if(h===" "&&s[f+1]==="\\"&&s[f+2]==="n"&&(c+=s.slice(u,f)+"\\ ",f+=1,u=f,h="\\"),h==="\\")switch(s[f+1]){case"u":{c+=s.slice(u,f);var p=s.substr(f+2,4);switch(p){case"0000":c+="\\0";break;case"0007":c+="\\a";break;case"000b":c+="\\v";break;case"001b":c+="\\e";break;case"0085":c+="\\N";break;case"00a0":c+="\\_";break;case"2028":c+="\\L";break;case"2029":c+="\\P";break;default:p.substr(0,2)==="00"?c+="\\x"+p.substr(2):c+=s.substr(f,6)}f+=5,u=f+1}break;case"n":if(n||s[f+2]==='"'||s.length";if(!s)return f+` +`,f+=2;c+=a,s[f+2]===" "&&(c+="\\"),f+=1,u=f+1}break;default:f+=1}return c=u?c+s.slice(u):s,n?c:wA(c,a,TE,sU(t))}function Hte(e,t){if(t.implicitKey){if(/\n/.test(e))return Ap(e,t)}else if(/[ \t]\n|\n[ \t]/.test(e))return Ap(e,t);var n=t.indent||(_A(e)?" ":""),r="'"+e.replace(/'/g,"''").replace(/\n+/g,`$& +`.concat(n))+"'";return t.implicitKey?r:wA(r,n,Ute,sU(t))}function kE(e,t,n,r){var i=e.comment,o=e.type,s=e.value;if(/\n[\t ]+$/.test(s)||/^\s*$/.test(s))return Ap(s,t);var a=t.indent||(t.forceBlockIndent||_A(s)?" ":""),c=a?"2":"1",u=o===Se.BLOCK_FOLDED?!1:o===Se.BLOCK_LITERAL?!0:!B$e(s,Gu.fold.lineWidth,a.length),f=u?"|":">";if(!s)return f+` `;var h="",p="";if(s=s.replace(/[\n\t ]*$/,function(v){var y=v.indexOf(` `);return y===-1?f+="-":(s===v||y!==v.length-1)&&(f+="+",r&&r()),p=v.replace(/\n$/,""),""}).replace(/^[\n ]*/,function(v){v.indexOf(" ")!==-1&&(f+=c);var y=v.match(/ +$/);return y?(h=v.slice(0,-y[0].length),y[0]):(h=v,"")}),p&&(p=p.replace(/\n+(?!\n|$)/g,"$&".concat(a))),h&&(h=h.replace(/\n+/g,"$&".concat(a))),i&&(f+=" #"+i.replace(/ ?[\r\n]+/g," "),n&&n()),!s)return"".concat(f).concat(c,` `).concat(a).concat(p);if(u)return s=s.replace(/\n+/g,"$&".concat(a)),"".concat(f,` `).concat(a).concat(h).concat(s).concat(p);s=s.replace(/\n+/g,` -$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(a));var g=bA("".concat(h).concat(s).concat(p),a,K3,Wu.fold);return"".concat(f,` -`).concat(a).concat(g)}function O$e(e,t,n,r){var i=e.comment,o=e.type,s=e.value,a=t.actualString,c=t.implicitKey,u=t.indent,f=t.inFlow;if(c&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return Tp(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return c||f||s.indexOf(` -`)===-1?s.indexOf('"')!==-1&&s.indexOf("'")===-1?Ute(s,t):Tp(s,t):TE(e,t,n,r);if(!c&&!f&&o!==Se.PLAIN&&s.indexOf(` -`)!==-1)return TE(e,t,n,r);if(u===""&&xA(s))return t.forceBlockIndent=!0,TE(e,t,n,r);var h=s.replace(/\n+/g,`$& -`.concat(u));if(a){var p=t.doc.schema.tags,g=nU(h,p,p.scalarFallback).value;if(typeof g!="string")return Tp(s,t)}var v=c?h:bA(h,u,jte,rU(t));return i&&!f&&(v.indexOf(` +$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,"$&".concat(a));var g=wA("".concat(h).concat(s).concat(p),a,Z3,Gu.fold);return"".concat(f,` +`).concat(a).concat(g)}function $$e(e,t,n,r){var i=e.comment,o=e.type,s=e.value,a=t.actualString,c=t.implicitKey,u=t.indent,f=t.inFlow;if(c&&/[\n[\]{},]/.test(s)||f&&/[[\]{},]/.test(s))return Ap(s,t);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return c||f||s.indexOf(` +`)===-1?s.indexOf('"')!==-1&&s.indexOf("'")===-1?Hte(s,t):Ap(s,t):kE(e,t,n,r);if(!c&&!f&&o!==Se.PLAIN&&s.indexOf(` +`)!==-1)return kE(e,t,n,r);if(u===""&&_A(s))return t.forceBlockIndent=!0,kE(e,t,n,r);var h=s.replace(/\n+/g,`$& +`.concat(u));if(a){var p=t.doc.schema.tags,g=oU(h,p,p.scalarFallback).value;if(typeof g!="string")return Ap(s,t)}var v=c?h:wA(h,u,Ute,sU(t));return i&&!f&&(v.indexOf(` `)!==-1||i.indexOf(` -`)!==-1)?(n&&n(),A$e(v,u,i)):v}function iU(e,t,n,r){var i=Wu.defaultType,o=t.implicitKey,s=t.inFlow,a=e,c=a.type,u=a.value;typeof u!="string"&&(u=String(u),e=Object.assign({},e,{value:u}));var f=function(g){switch(g){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return TE(e,t,n,r);case Se.QUOTE_DOUBLE:return Tp(u,t);case Se.QUOTE_SINGLE:return Ute(u,t);case Se.PLAIN:return O$e(e,t,n,r);default:return null}};(c!==Se.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(o||s)&&(c===Se.BLOCK_FOLDED||c===Se.BLOCK_LITERAL))&&(c=Se.QUOTE_DOUBLE);var h=f(c);if(h===null&&(h=f(i),h===null))throw new Error("Unsupported default string type ".concat(i));return h}function Mu(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if(typeof i=="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){var s=o.indexOf(".");s<0&&(s=o.length,o+=".");for(var a=n-(o.length-s-1);a-- >0;)o+="0"}return o}function Hte(e,t){var n,r;switch(t.type){case Se.FLOW_MAP:n="}",r="flow map";break;case Se.FLOW_SEQ:n="]",r="flow sequence";break;default:e.push(new Jt(t,"Not a flow collection!?"));return}for(var i,o=t.items.length-1;o>=0;--o){var s=t.items[o];if(!s||s.type!==Se.COMMENT){i=s;break}}if(i&&i.char!==n){var a="Expected ".concat(r," to end with ").concat(n),c;typeof i.offset=="number"?(c=new Jt(t,a),c.offset=i.offset+1):(c=new Jt(i,a),i.range&&i.range.end&&(c.offset=i.range.end-i.range.start)),e.push(c)}}function Wte(e,t){var n=t.context.src[t.range.start-1];if(n!==` -`&&n!==" "&&n!==" "){var r="Comments must be separated from other tokens by white space characters";e.push(new Jt(t,r))}}function Gte(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new Jt(e,'The "'.concat(r,'" key is too long'))}function Vte(e,t){var n=ir(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.afterKey,s=i.before,a=i.comment,c=e.items[s];c?(o&&c.value&&(c=c.value),a===void 0?(o||!c.commentBefore)&&(c.spaceBefore=!0):c.commentBefore?c.commentBefore+=` +`)!==-1)?(n&&n(),D$e(v,u,i)):v}function aU(e,t,n,r){var i=Gu.defaultType,o=t.implicitKey,s=t.inFlow,a=e,c=a.type,u=a.value;typeof u!="string"&&(u=String(u),e=Object.assign({},e,{value:u}));var f=function(g){switch(g){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:return kE(e,t,n,r);case Se.QUOTE_DOUBLE:return Ap(u,t);case Se.QUOTE_SINGLE:return Hte(u,t);case Se.PLAIN:return $$e(e,t,n,r);default:return null}};(c!==Se.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(u)||(o||s)&&(c===Se.BLOCK_FOLDED||c===Se.BLOCK_LITERAL))&&(c=Se.QUOTE_DOUBLE);var h=f(c);if(h===null&&(h=f(i),h===null))throw new Error("Unsupported default string type ".concat(i));return h}function Du(e){var t=e.format,n=e.minFractionDigits,r=e.tag,i=e.value;if(typeof i=="bigint")return String(i);if(!isFinite(i))return isNaN(i)?".nan":i<0?"-.inf":".inf";var o=JSON.stringify(i);if(!t&&n&&(!r||r==="tag:yaml.org,2002:float")&&/^\d/.test(o)){var s=o.indexOf(".");s<0&&(s=o.length,o+=".");for(var a=n-(o.length-s-1);a-- >0;)o+="0"}return o}function Wte(e,t){var n,r;switch(t.type){case Se.FLOW_MAP:n="}",r="flow map";break;case Se.FLOW_SEQ:n="]",r="flow sequence";break;default:e.push(new Jt(t,"Not a flow collection!?"));return}for(var i,o=t.items.length-1;o>=0;--o){var s=t.items[o];if(!s||s.type!==Se.COMMENT){i=s;break}}if(i&&i.char!==n){var a="Expected ".concat(r," to end with ").concat(n),c;typeof i.offset=="number"?(c=new Jt(t,a),c.offset=i.offset+1):(c=new Jt(i,a),i.range&&i.range.end&&(c.offset=i.range.end-i.range.start)),e.push(c)}}function Gte(e,t){var n=t.context.src[t.range.start-1];if(n!==` +`&&n!==" "&&n!==" "){var r="Comments must be separated from other tokens by white space characters";e.push(new Jt(t,r))}}function Vte(e,t){var n=String(t),r=n.substr(0,8)+"..."+n.substr(-8);return new Jt(e,'The "'.concat(r,'" key is too long'))}function qte(e,t){var n=ir(t),r;try{for(n.s();!(r=n.n()).done;){var i=r.value,o=i.afterKey,s=i.before,a=i.comment,c=e.items[s];c?(o&&c.value&&(c=c.value),a===void 0?(o||!c.commentBefore)&&(c.spaceBefore=!0):c.commentBefore?c.commentBefore+=` `+a:c.commentBefore=a):a!==void 0&&(e.comment?e.comment+=` -`+a:e.comment=a)}}catch(u){n.e(u)}finally{n.f()}}function Vw(e,t){var n=t.strValue;return n?typeof n=="string"?n:(n.errors.forEach(function(r){r.source||(r.source=t),e.errors.push(r)}),n.str):""}function M$e(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find(function(c){return c.handle===r});if(!o){var s=e.getDefaults().tagPrefixes;if(s&&(o=s.find(function(c){return c.handle===r})),!o)throw new Jt(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new Jt(t,"The ".concat(r," tag has no suffix."));if(r==="!"&&(e.version||e.options.version)==="1.0"){if(i[0]==="^")return e.warnings.push(new Ov(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var a=i.match(/^([a-z0-9-]+)\/(.*)/i);return a?"tag:".concat(a[1],".yaml.org,2002:").concat(a[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}function L$e(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,s=n.suffix,a=n.verbatim;if(a){if(a!=="!"&&a!=="!!")return a;var c="Verbatim tags aren't resolved, so ".concat(a," is invalid.");e.errors.push(new Jt(t,c))}else if(o==="!"&&!s)i=!0;else try{return M$e(e,t)}catch(u){e.errors.push(u)}}switch(r){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:case Se.QUOTE_DOUBLE:case Se.QUOTE_SINGLE:return Rd.STR;case Se.FLOW_MAP:case Se.MAP:return Rd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Rd.SEQ;case Se.PLAIN:return i?Rd.STR:null;default:return null}}function Z9(e,t,n){var r=e.schema.tags,i=[],o=ir(r),s;try{for(o.s();!(s=o.n()).done;){var a=s.value;if(a.tag===n)if(a.test)i.push(a);else{var c=a.resolve(e,t);return c instanceof eo?c:new Un(c)}}}catch(f){o.e(f)}finally{o.f()}var u=Vw(e,t);return typeof u=="string"&&i.length>0?nU(u,i,r.scalarFallback):null}function D$e(e){var t=e.type;switch(t){case Se.FLOW_MAP:case Se.MAP:return Rd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Rd.SEQ;default:return Rd.STR}}function N$e(e,t,n){try{var r=Z9(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(c){return c.source||(c.source=t),e.errors.push(c),null}try{var i=D$e(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new Ov(t,o));var s=Z9(e,t,i);return s.tag=n,s}catch(c){var a=new q1(t,c.message);return a.stack=c.stack,e.errors.push(a),null}}var B$e=function(t){if(!t)return!1;var n=t.type;return n===Se.MAP_KEY||n===Se.MAP_VALUE||n===Se.SEQ_ITEM};function $$e(e,t){var n={before:[],after:[]},r=!1,i=!1,o=B$e(t.context.parent)?t.context.parent.props.concat(t.props):t.props,s=ir(o),a;try{for(s.s();!(a=s.n()).done;){var c=a.value,u=c.start,f=c.end;switch(t.context.src[u]){case ni.COMMENT:{if(!t.commentHasRequiredWhitespace(u)){var h="Comments must be separated from other tokens by white space characters";e.push(new Jt(t,h))}var p=t.header,g=t.valueRange,v=g&&(u>g.start||p&&u>p.start)?n.after:n.before;v.push(t.context.src.slice(u+1,f));break}case ni.ANCHOR:if(r){var y="A node can have at most one anchor";e.push(new Jt(t,y))}r=!0;break;case ni.TAG:if(i){var S="A node can have at most one tag";e.push(new Jt(t,S))}i=!0;break}}}catch(w){s.e(w)}finally{s.f()}return{comments:n,hasAnchor:r,hasTag:i}}function F$e(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===Se.ALIAS){var o=t.rawValue,s=n.getNode(o);if(!s){var a="Aliased anchor not found: ".concat(o);return r.push(new q1(t,a)),null}var c=new Hu(s);return n._cstAliases.push(c),c}var u=L$e(e,t);if(u)return N$e(e,t,u);if(t.type!==Se.PLAIN){var f="Failed to resolve ".concat(t.type," node here");return r.push(new go(t,f)),null}try{var h=Vw(e,t);return nU(h,i.tags,i.tags.scalarFallback)}catch(p){return p.source||(p.source=t),r.push(p),null}}function Kd(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=$$e(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var s=e.anchors,a=t.anchor,c=s.getNode(a);c&&(s.map[s.newName(a)]=c),s.map[a]=t}if(t.type===Se.ALIAS&&(i||o)){var u="An alias node must not specify any properties";e.errors.push(new Jt(t,u))}var f=F$e(e,t);if(f){f.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(f.cstNode=t),e.options.keepNodeTypes&&(f.type=t.type);var h=r.before.join(` +`+a:e.comment=a)}}catch(u){n.e(u)}finally{n.f()}}function qw(e,t){var n=t.strValue;return n?typeof n=="string"?n:(n.errors.forEach(function(r){r.source||(r.source=t),e.errors.push(r)}),n.str):""}function F$e(e,t){var n=t.tag,r=n.handle,i=n.suffix,o=e.tagPrefixes.find(function(c){return c.handle===r});if(!o){var s=e.getDefaults().tagPrefixes;if(s&&(o=s.find(function(c){return c.handle===r})),!o)throw new Jt(t,"The ".concat(r," tag handle is non-default and was not declared."))}if(!i)throw new Jt(t,"The ".concat(r," tag has no suffix."));if(r==="!"&&(e.version||e.options.version)==="1.0"){if(i[0]==="^")return e.warnings.push(new Dv(t,"YAML 1.0 ^ tag expansion is not supported")),i;if(/[:/]/.test(i)){var a=i.match(/^([a-z0-9-]+)\/(.*)/i);return a?"tag:".concat(a[1],".yaml.org,2002:").concat(a[2]):"tag:".concat(i)}}return o.prefix+decodeURIComponent(i)}function z$e(e,t){var n=t.tag,r=t.type,i=!1;if(n){var o=n.handle,s=n.suffix,a=n.verbatim;if(a){if(a!=="!"&&a!=="!!")return a;var c="Verbatim tags aren't resolved, so ".concat(a," is invalid.");e.errors.push(new Jt(t,c))}else if(o==="!"&&!s)i=!0;else try{return F$e(e,t)}catch(u){e.errors.push(u)}}switch(r){case Se.BLOCK_FOLDED:case Se.BLOCK_LITERAL:case Se.QUOTE_DOUBLE:case Se.QUOTE_SINGLE:return Pd.STR;case Se.FLOW_MAP:case Se.MAP:return Pd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Pd.SEQ;case Se.PLAIN:return i?Pd.STR:null;default:return null}}function n7(e,t,n){var r=e.schema.tags,i=[],o=ir(r),s;try{for(o.s();!(s=o.n()).done;){var a=s.value;if(a.tag===n)if(a.test)i.push(a);else{var c=a.resolve(e,t);return c instanceof eo?c:new Un(c)}}}catch(f){o.e(f)}finally{o.f()}var u=qw(e,t);return typeof u=="string"&&i.length>0?oU(u,i,r.scalarFallback):null}function j$e(e){var t=e.type;switch(t){case Se.FLOW_MAP:case Se.MAP:return Pd.MAP;case Se.FLOW_SEQ:case Se.SEQ:return Pd.SEQ;default:return Pd.STR}}function U$e(e,t,n){try{var r=n7(e,t,n);if(r)return n&&t.tag&&(r.tag=n),r}catch(c){return c.source||(c.source=t),e.errors.push(c),null}try{var i=j$e(t);if(!i)throw new Error("The tag ".concat(n," is unavailable"));var o="The tag ".concat(n," is unavailable, falling back to ").concat(i);e.warnings.push(new Dv(t,o));var s=n7(e,t,i);return s.tag=n,s}catch(c){var a=new Y1(t,c.message);return a.stack=c.stack,e.errors.push(a),null}}var H$e=function(t){if(!t)return!1;var n=t.type;return n===Se.MAP_KEY||n===Se.MAP_VALUE||n===Se.SEQ_ITEM};function W$e(e,t){var n={before:[],after:[]},r=!1,i=!1,o=H$e(t.context.parent)?t.context.parent.props.concat(t.props):t.props,s=ir(o),a;try{for(s.s();!(a=s.n()).done;){var c=a.value,u=c.start,f=c.end;switch(t.context.src[u]){case ni.COMMENT:{if(!t.commentHasRequiredWhitespace(u)){var h="Comments must be separated from other tokens by white space characters";e.push(new Jt(t,h))}var p=t.header,g=t.valueRange,v=g&&(u>g.start||p&&u>p.start)?n.after:n.before;v.push(t.context.src.slice(u+1,f));break}case ni.ANCHOR:if(r){var y="A node can have at most one anchor";e.push(new Jt(t,y))}r=!0;break;case ni.TAG:if(i){var S="A node can have at most one tag";e.push(new Jt(t,S))}i=!0;break}}}catch(w){s.e(w)}finally{s.f()}return{comments:n,hasAnchor:r,hasTag:i}}function G$e(e,t){var n=e.anchors,r=e.errors,i=e.schema;if(t.type===Se.ALIAS){var o=t.rawValue,s=n.getNode(o);if(!s){var a="Aliased anchor not found: ".concat(o);return r.push(new Y1(t,a)),null}var c=new Wu(s);return n._cstAliases.push(c),c}var u=z$e(e,t);if(u)return U$e(e,t,u);if(t.type!==Se.PLAIN){var f="Failed to resolve ".concat(t.type," node here");return r.push(new go(t,f)),null}try{var h=qw(e,t);return oU(h,i.tags,i.tags.scalarFallback)}catch(p){return p.source||(p.source=t),r.push(p),null}}function Qd(e,t){if(!t)return null;t.error&&e.errors.push(t.error);var n=W$e(e.errors,t),r=n.comments,i=n.hasAnchor,o=n.hasTag;if(i){var s=e.anchors,a=t.anchor,c=s.getNode(a);c&&(s.map[s.newName(a)]=c),s.map[a]=t}if(t.type===Se.ALIAS&&(i||o)){var u="An alias node must not specify any properties";e.errors.push(new Jt(t,u))}var f=G$e(e,t);if(f){f.range=[t.range.start,t.range.end],e.options.keepCstNodes&&(f.cstNode=t),e.options.keepNodeTypes&&(f.type=t.type);var h=r.before.join(` `);h&&(f.commentBefore=f.commentBefore?"".concat(f.commentBefore,` `).concat(h):h);var p=r.after.join(` `);p&&(f.comment=f.comment?"".concat(f.comment,` -`).concat(p):p)}return t.resolved=f}function qte(e,t){if(t.type!==Se.MAP&&t.type!==Se.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new go(t,n)),null}var r=t.type===Se.FLOW_MAP?H$e(e,t):U$e(e,t),i=r.comments,o=r.items,s=new Jo;s.items=o,Vte(s,i);for(var a=!1,c=0;ci.valueRange.start||o[a]!==ni.COMMENT)return!1;for(var c=r;c0){u=new Bte(Se.PLAIN,[]),u.context={parent:a,src:a.context.src};var f=a.range.start+1;if(u.range={start:f,end:f},u.valueRange={start:f,end:f},typeof a.range.origStart=="number"){var h=a.range.origStart+1;u.range.origStart=u.range.origEnd=h,u.valueRange.origStart=u.valueRange.origEnd=h}}var p=new vn(i,Kd(e,u));j$e(a,p),r.push(p),i&&typeof o=="number"&&a.range.start>o+1024&&e.errors.push(Gte(t,i)),i=void 0,o=null}break;default:i!==void 0&&r.push(new vn(i)),i=Kd(e,a),o=a.range.start,a.error&&e.errors.push(a.error);e:for(var g=s+1;;++g){var v=t.items[g];switch(v&&v.type){case Se.BLANK_LINE:case Se.COMMENT:continue e;case Se.MAP_VALUE:break e;default:{var y="Implicit map keys need to be followed by map values";e.errors.push(new Jt(a,y));break e}}}if(a.valueRangeContainsNewline){var S="Implicit map keys need to be on a single line";e.errors.push(new Jt(a,S))}}}return i!==void 0&&r.push(new vn(i)),{comments:n,items:r}}function H$e(e,t){for(var n=[],r=[],i=void 0,o=!1,s="{",a=0;as+1024&&e.errors.push(Gte(t,o));for(var S=c.context.src,w=s;w1){var o="Each pair must have its own sequence indicator";throw new Jt(t,o)}var s=i.items[0]||new vn;i.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(i.commentBefore,` +`).concat(p):p)}return t.resolved=f}function Xte(e,t){if(t.type!==Se.MAP&&t.type!==Se.FLOW_MAP){var n="A ".concat(t.type," node cannot be resolved as a mapping");return e.errors.push(new go(t,n)),null}var r=t.type===Se.FLOW_MAP?Y$e(e,t):X$e(e,t),i=r.comments,o=r.items,s=new Jo;s.items=o,qte(s,i);for(var a=!1,c=0;ci.valueRange.start||o[a]!==ni.COMMENT)return!1;for(var c=r;c0){u=new $te(Se.PLAIN,[]),u.context={parent:a,src:a.context.src};var f=a.range.start+1;if(u.range={start:f,end:f},u.valueRange={start:f,end:f},typeof a.range.origStart=="number"){var h=a.range.origStart+1;u.range.origStart=u.range.origEnd=h,u.valueRange.origStart=u.valueRange.origEnd=h}}var p=new vn(i,Qd(e,u));q$e(a,p),r.push(p),i&&typeof o=="number"&&a.range.start>o+1024&&e.errors.push(Vte(t,i)),i=void 0,o=null}break;default:i!==void 0&&r.push(new vn(i)),i=Qd(e,a),o=a.range.start,a.error&&e.errors.push(a.error);e:for(var g=s+1;;++g){var v=t.items[g];switch(v&&v.type){case Se.BLANK_LINE:case Se.COMMENT:continue e;case Se.MAP_VALUE:break e;default:{var y="Implicit map keys need to be followed by map values";e.errors.push(new Jt(a,y));break e}}}if(a.valueRangeContainsNewline){var S="Implicit map keys need to be on a single line";e.errors.push(new Jt(a,S))}}}return i!==void 0&&r.push(new vn(i)),{comments:n,items:r}}function Y$e(e,t){for(var n=[],r=[],i=void 0,o=!1,s="{",a=0;as+1024&&e.errors.push(Vte(t,o));for(var S=c.context.src,w=s;w1){var o="Each pair must have its own sequence indicator";throw new Jt(t,o)}var s=i.items[0]||new vn;i.commentBefore&&(s.commentBefore=s.commentBefore?"".concat(i.commentBefore,` `).concat(s.commentBefore):i.commentBefore),i.comment&&(s.comment=s.comment?"".concat(i.comment,` -`).concat(s.comment):i.comment),i=s}n.items[r]=i instanceof vn?i:new vn(i)}}return n}function Qte(e,t,n){var r=new oc(e);r.tag="tag:yaml.org,2002:pairs";var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=void 0,c=void 0;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)a=u[0],c=s[a];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else a=s;var f=e.createPair(a,c,n);r.items.push(f)}}catch(h){i.e(h)}finally{i.f()}return r}var Jte={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Kte,createNode:Qte},wA=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),ho(la(r),"add",Jo.prototype.add.bind(la(r))),ho(la(r),"delete",Jo.prototype.delete.bind(la(r))),ho(la(r),"get",Jo.prototype.get.bind(la(r))),ho(la(r),"has",Jo.prototype.has.bind(la(r))),ho(la(r),"set",Jo.prototype.set.bind(la(r))),r.tag=n.tag,r}return Yn(n,[{key:"toJSON",value:function(i,o){var s=new Map;o&&o.onCreate&&o.onCreate(s);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value,f=void 0,h=void 0;if(u instanceof vn?(f=_l(u.key,"",o),h=_l(u.value,f,o)):f=_l(u,"",o),s.has(f))throw new Error("Ordered maps must not include duplicate keys");s.set(f,h)}}catch(p){a.e(p)}finally{a.f()}return s}}]),n}(oc);ho(wA,"tag","tag:yaml.org,2002:omap");function V$e(e,t){var n=Kte(e,t),r=[],i=ir(n.items),o;try{for(i.s();!(o=i.n()).done;){var s=o.value.key;if(s instanceof Un)if(r.includes(s.value)){var a="Ordered maps must not include duplicate keys";throw new Jt(t,a)}else r.push(s.value)}}catch(c){i.e(c)}finally{i.f()}return Object.assign(new wA,n)}function q$e(e,t,n){var r=Qte(e,t,n),i=new wA;return i.items=r.items,i}var Zte={identify:function(t){return t instanceof Map},nodeClass:wA,default:!1,tag:"tag:yaml.org,2002:omap",resolve:V$e,createNode:q$e},_A=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),r.tag=n.tag,r}return Yn(n,[{key:"add",value:function(i){var o=i instanceof vn?i:new vn(i),s=gp(this.items,o.key);s||this.items.push(o)}},{key:"get",value:function(i,o){var s=gp(this.items,i);return!o&&s instanceof vn?s.key instanceof Un?s.key.value:s.key:s}},{key:"set",value:function(i,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Xs(o)));var s=gp(this.items,i);s&&!o?this.items.splice(this.items.indexOf(s),1):!s&&o&&this.items.push(new vn(i))}},{key:"toJSON",value:function(i,o){return ls(io(n.prototype),"toJSON",this).call(this,i,o,Set)}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);if(this.hasAllNullValues())return ls(io(n.prototype),"toString",this).call(this,i,o,s);throw new Error("Set items must all have null values")}}]),n}(Jo);ho(_A,"tag","tag:yaml.org,2002:set");function X$e(e,t){var n=qte(e,t);if(!n.hasAllNullValues())throw new Jt(t,"Set items must all have null values");return Object.assign(new _A,n)}function Y$e(e,t,n){var r=new _A,i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r.items.push(e.createPair(s,null,n))}}catch(a){i.e(a)}finally{i.f()}return r}var ene={identify:function(t){return t instanceof Set},nodeClass:_A,default:!1,tag:"tag:yaml.org,2002:set",resolve:X$e,createNode:Y$e},oU=function(t,n){var r=n.split(":").reduce(function(i,o){return i*60+Number(o)},0);return t==="-"?-r:r},tne=function(t){var n=t.value;if(isNaN(n)||!isFinite(n))return Mu(n);var r="";n<0&&(r="-",n=Math.abs(n));var i=[n%60];return n<60?i.unshift(0):(n=Math.round((n-i[0])/60),i.unshift(n%60),n>=60&&(n=Math.round((n-i[0])/60),i.unshift(n))),r+i.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},nne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(t,n,r){return oU(n,r.replace(/_/g,""))},stringify:tne},rne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(t,n,r){return oU(n,r.replace(/_/g,""))},stringify:tne},ine={identify:function(t){return t instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(t,n,r,i,o,s,a,c,u){c&&(c=(c+"00").substr(1,3));var f=Date.UTC(n,r-1,i,o||0,s||0,a||0,c||0);if(u&&u!=="Z"){var h=oU(u[0],u.slice(1));Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:function(t){var n=t.value;return n.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function one(e){var t=typeof process<"u"&&process.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function sne(e,t){if(one(!1)){var n=typeof process<"u"&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var e7={};function K$e(e,t){if(!e7[e]&&one(!0)){e7[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");n+=t?", use '".concat(t,"' instead."):".",sne(n,"DeprecationWarning")}}function Q$e(e,t,n){var r=new Jo(e);if(t instanceof Map){var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=Gw(o.value,2),a=s[0],c=s[1];r.items.push(e.createPair(a,c,n))}}catch(p){i.e(p)}finally{i.f()}}else if(t&&Xs(t)==="object")for(var u=0,f=Object.keys(t);u=0?n+r.toString(t):Mu(e)}var lne={identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:sv,stringify:function(){return sv.nullStr}},cne={identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(t){return t[0]==="t"||t[0]==="T"},options:Ou,stringify:function(t){var n=t.value;return n?Ou.trueStr:Ou.falseStr}},une={identify:function(t){return EA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(t,n){return aU(t,n,8)},options:of,stringify:function(t){return ane(t,8,"0o")}},dne={identify:EA,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(t){return aU(t,t,10)},options:of,stringify:Mu},fne={identify:function(t){return EA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(t,n){return aU(t,n,16)},options:of,stringify:function(t){return ane(t,16,"0x")}},hne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Mu},pne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t)},stringify:function(t){var n=t.value;return Number(n).toExponential()}},mne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(t,n,r){var i=n||r,o=new Un(parseFloat(t));return i&&i[i.length-1]==="0"&&(o.minFractionDigits=i.length),o},stringify:Mu},eFe=sU.concat([lne,cne,une,dne,fne,hne,pne,mne]),t7=function(t){return typeof t=="bigint"||Number.isInteger(t)},aS=function(t){var n=t.value;return JSON.stringify(n)},gne=[Y1,SA,{identify:function(t){return typeof t=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:Vw,stringify:aS},{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:aS},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(t){return t==="true"},stringify:aS},{identify:t7,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(t){return of.asBigInt?BigInt(t):parseInt(t,10)},stringify:function(t){var n=t.value;return t7(n)?n.toString():JSON.stringify(n)}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(t){return parseFloat(t)},stringify:aS}];gne.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var n7=function(t){var n=t.value;return n?Ou.trueStr:Ou.falseStr},fx=function(t){return typeof t=="bigint"||Number.isInteger(t)};function lS(e,t,n){var r=t.replace(/_/g,"");if(of.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r);break}var i=BigInt(r);return e==="-"?BigInt(-1)*i:i}var o=parseInt(r,n);return e==="-"?-1*o:o}function AB(e,t,n){var r=e.value;if(fx(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Mu(e)}var tFe=sU.concat([{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:sv,stringify:function(){return sv.nullStr}},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:Ou,stringify:n7},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:Ou,stringify:n7},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(t,n,r){return lS(n,r,2)},stringify:function(t){return AB(t,2,"0b")}},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(t,n,r){return lS(n,r,8)},stringify:function(t){return AB(t,8,"0")}},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(t,n,r){return lS(n,r,10)},stringify:Mu},{identify:fx,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(t,n,r){return lS(n,r,16)},stringify:function(t){return AB(t,16,"0x")}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Mu},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t.replace(/_/g,""))},stringify:function(t){var n=t.value;return Number(n).toExponential()}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(t,n){var r=new Un(parseFloat(t.replace(/_/g,"")));if(n){var i=n.replace(/_/g,"");i[i.length-1]==="0"&&(r.minFractionDigits=i.length)}return r},stringify:Mu}],Yte,Zte,Jte,ene,nne,rne,ine),nFe={core:eFe,failsafe:sU,json:gne,yaml11:tFe},rFe={binary:Yte,bool:cne,float:mne,floatExp:pne,floatNaN:hne,floatTime:rne,int:dne,intHex:fne,intOct:une,intTime:nne,map:Y1,null:lne,omap:Zte,pairs:Jte,seq:SA,set:ene,timestamp:ine};function iFe(e,t,n){if(t){var r=n.filter(function(o){return o.tag===t}),i=r.find(function(o){return!o.format})||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function oFe(e,t,n){if(e instanceof Qo)return e;var r=n.defaultPrefix,i=n.onTagObj,o=n.prevObjects,s=n.schema,a=n.wrapScalars;t&&t.startsWith("!!")&&(t=r+t.slice(2));var c=iFe(e,t,s.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||Xs(e)!=="object")return a?new Un(e):e;c=e instanceof Map?Y1:e[Symbol.iterator]?SA:Y1}i&&(i(c),delete n.onTagObj);var u={value:void 0,node:void 0};if(e&&Xs(e)==="object"&&o){var f=o.get(e);if(f){var h=new Hu(f);return n.aliasNodes.push(h),h}u.value=e,o.set(e,u)}return u.node=c.createNode?c.createNode(n.schema,e,n):a?new Un(e):e,t&&u.node instanceof Qo&&(u.node.tag=t),u.node}function sFe(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map(function(g){return JSON.stringify(g)}).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var s=ir(n),a;try{for(s.s();!(a=s.n()).done;){var c=a.value;i=i.concat(c)}}catch(g){s.e(g)}finally{s.f()}}else typeof n=="function"&&(i=n(i.slice()));for(var u=0;un.key?1:0},K1=function(){function e(t){var n=t.customTags,r=t.merge,i=t.schema,o=t.sortMapEntries,s=t.tags;xn(this,e),this.merge=!!r,this.name=i,this.sortMapEntries=o===!0?aFe:o||null,!n&&s&&K$e("tags","customTags"),this.tags=sFe(nFe,rFe,n||s,i)}return Yn(e,[{key:"createNode",value:function(n,r,i,o){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},a=o?Object.assign(o,s):s;return oFe(n,i,a)}},{key:"createPair",value:function(n,r,i){i||(i={wrapScalars:!0});var o=this.createNode(n,i.wrapScalars,null,i),s=this.createNode(r,i.wrapScalars,null,i);return new vn(o,s)}}]),e}();ho(K1,"defaultPrefix",EE);ho(K1,"defaultTags",Rd);var qC={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},lFe={get binary(){return qx},set binary(e){Object.assign(qx,e)},get bool(){return Ou},set bool(e){Object.assign(Ou,e)},get int(){return of},set int(e){Object.assign(of,e)},get null(){return sv},set null(e){Object.assign(sv,e)},get str(){return Wu},set str(e){Object.assign(Wu,e)}},vne={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:EE},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:EE}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:EE}]}};function r7(e,t){if((e.version||e.options.version)==="1.0"){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find(function(a){return t.indexOf(a.prefix)===0});if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find(function(a){return t.indexOf(a.prefix)===0})}if(!i)return t[0]==="!"?t:"!<".concat(t,">");var s=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,function(a){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[a]});return i.handle+s}function cFe(e,t){if(t instanceof Hu)return Hu;if(t.tag){var n=e.filter(function(a){return a.tag===t.tag});if(n.length>0)return n.find(function(a){return a.format===t.format})||n[0]}var r,i;if(t instanceof Un){i=t.value;var o=e.filter(function(a){return a.identify&&a.identify(i)||a.class&&i instanceof a.class});r=o.find(function(a){return a.format===t.format})||o.find(function(a){return!a.format})}else i=t,r=e.find(function(a){return a.nodeClass&&i instanceof a.nodeClass});if(!r){var s=i&&i.constructor?i.constructor.name:Xs(i);throw new Error("Tag not resolved for ".concat(s," value"))}return r}function uFe(e,t,n){var r=n.anchors,i=n.doc,o=[],s=i.anchors.getName(e);return s&&(r[s]=e,o.push("&".concat(s))),e.tag?o.push(r7(i,e.tag)):t.default||o.push(r7(i,t.tag)),o.join(" ")}function cS(e,t,n,r){var i=t.doc,o=i.anchors,s=i.schema,a;if(!(e instanceof Qo)){var c={aliasNodes:[],onTagObj:function(S){return a=S},prevObjects:new Map};e=s.createNode(e,!0,null,c);var u=ir(c.aliasNodes),f;try{for(u.s();!(f=u.n()).done;){var h=f.value;h.source=h.source.node;var p=o.getName(h.source);p||(p=o.newName(),o.map[p]=h.source)}}catch(y){u.e(y)}finally{u.f()}}if(e instanceof vn)return e.toString(t,n,r);a||(a=cFe(s.tags,e));var g=uFe(e,a,t);g.length>0&&(t.indentAtStart=(t.indentAtStart||0)+g.length+1);var v=typeof a.stringify=="function"?a.stringify(e,t,n,r):e instanceof Un?iU(e,t,n,r):e.toString(t,n,r);return g?e instanceof Un||v[0]==="{"||v[0]==="["?"".concat(g," ").concat(v):"".concat(g,` -`).concat(t.indent).concat(v):v}var dFe=function(){function e(t){xn(this,e),ho(this,"map",Object.create(null)),this.prefix=t}return Yn(e,[{key:"createAlias",value:function(n,r){return this.setAnchor(n,r),new Hu(n)}},{key:"createMergePair",value:function(){for(var n=this,r=new zte,i=arguments.length,o=new Array(i),s=0;s0&&!e.commentBefore&&(e.commentBefore=n.before.join(` +`).concat(s.comment):i.comment),i=s}n.items[r]=i instanceof vn?i:new vn(i)}}return n}function Jte(e,t,n){var r=new ac(e);r.tag="tag:yaml.org,2002:pairs";var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=void 0,c=void 0;if(Array.isArray(s))if(s.length===2)a=s[0],c=s[1];else throw new TypeError("Expected [key, value] tuple: ".concat(s));else if(s&&s instanceof Object){var u=Object.keys(s);if(u.length===1)a=u[0],c=s[a];else throw new TypeError("Expected { key: value } tuple: ".concat(s))}else a=s;var f=e.createPair(a,c,n);r.items.push(f)}}catch(h){i.e(h)}finally{i.f()}return r}var Zte={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Qte,createNode:Jte},SA=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),ho(ca(r),"add",Jo.prototype.add.bind(ca(r))),ho(ca(r),"delete",Jo.prototype.delete.bind(ca(r))),ho(ca(r),"get",Jo.prototype.get.bind(ca(r))),ho(ca(r),"has",Jo.prototype.has.bind(ca(r))),ho(ca(r),"set",Jo.prototype.set.bind(ca(r))),r.tag=n.tag,r}return Yn(n,[{key:"toJSON",value:function(i,o){var s=new Map;o&&o.onCreate&&o.onCreate(s);var a=ir(this.items),c;try{for(a.s();!(c=a.n()).done;){var u=c.value,f=void 0,h=void 0;if(u instanceof vn?(f=Sl(u.key,"",o),h=Sl(u.value,f,o)):f=Sl(u,"",o),s.has(f))throw new Error("Ordered maps must not include duplicate keys");s.set(f,h)}}catch(p){a.e(p)}finally{a.f()}return s}}]),n}(ac);ho(SA,"tag","tag:yaml.org,2002:omap");function J$e(e,t){var n=Qte(e,t),r=[],i=ir(n.items),o;try{for(i.s();!(o=i.n()).done;){var s=o.value.key;if(s instanceof Un)if(r.includes(s.value)){var a="Ordered maps must not include duplicate keys";throw new Jt(t,a)}else r.push(s.value)}}catch(c){i.e(c)}finally{i.f()}return Object.assign(new SA,n)}function Z$e(e,t,n){var r=Jte(e,t,n),i=new SA;return i.items=r.items,i}var ene={identify:function(t){return t instanceof Map},nodeClass:SA,default:!1,tag:"tag:yaml.org,2002:omap",resolve:J$e,createNode:Z$e},EA=function(e){sr(n,e);var t=ar(n);function n(){var r;return xn(this,n),r=t.call(this),r.tag=n.tag,r}return Yn(n,[{key:"add",value:function(i){var o=i instanceof vn?i:new vn(i),s=yp(this.items,o.key);s||this.items.push(o)}},{key:"get",value:function(i,o){var s=yp(this.items,i);return!o&&s instanceof vn?s.key instanceof Un?s.key.value:s.key:s}},{key:"set",value:function(i,o){if(typeof o!="boolean")throw new Error("Expected boolean value for set(key, value) in a YAML set, not ".concat(Xs(o)));var s=yp(this.items,i);s&&!o?this.items.splice(this.items.indexOf(s),1):!s&&o&&this.items.push(new vn(i))}},{key:"toJSON",value:function(i,o){return ls(io(n.prototype),"toJSON",this).call(this,i,o,Set)}},{key:"toString",value:function(i,o,s){if(!i)return JSON.stringify(this);if(this.hasAllNullValues())return ls(io(n.prototype),"toString",this).call(this,i,o,s);throw new Error("Set items must all have null values")}}]),n}(Jo);ho(EA,"tag","tag:yaml.org,2002:set");function eFe(e,t){var n=Xte(e,t);if(!n.hasAllNullValues())throw new Jt(t,"Set items must all have null values");return Object.assign(new EA,n)}function tFe(e,t,n){var r=new EA,i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=o.value;r.items.push(e.createPair(s,null,n))}}catch(a){i.e(a)}finally{i.f()}return r}var tne={identify:function(t){return t instanceof Set},nodeClass:EA,default:!1,tag:"tag:yaml.org,2002:set",resolve:eFe,createNode:tFe},lU=function(t,n){var r=n.split(":").reduce(function(i,o){return i*60+Number(o)},0);return t==="-"?-r:r},nne=function(t){var n=t.value;if(isNaN(n)||!isFinite(n))return Du(n);var r="";n<0&&(r="-",n=Math.abs(n));var i=[n%60];return n<60?i.unshift(0):(n=Math.round((n-i[0])/60),i.unshift(n%60),n>=60&&(n=Math.round((n-i[0])/60),i.unshift(n))),r+i.map(function(o){return o<10?"0"+String(o):String(o)}).join(":").replace(/000000\d*$/,"")},rne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:function(t,n,r){return lU(n,r.replace(/_/g,""))},stringify:nne},ine={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:function(t,n,r){return lU(n,r.replace(/_/g,""))},stringify:nne},one={identify:function(t){return t instanceof Date},default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:function(t,n,r,i,o,s,a,c,u){c&&(c=(c+"00").substr(1,3));var f=Date.UTC(n,r-1,i,o||0,s||0,a||0,c||0);if(u&&u!=="Z"){var h=lU(u[0],u.slice(1));Math.abs(h)<30&&(h*=60),f-=6e4*h}return new Date(f)},stringify:function(t){var n=t.value;return n.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")}};function sne(e){var t=typeof process<"u"&&process.env||{};return e?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!t.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!t.YAML_SILENCE_WARNINGS}function ane(e,t){if(sne(!1)){var n=typeof process<"u"&&process.emitWarning;n?n(e,t):console.warn(t?"".concat(t,": ").concat(e):e)}}var r7={};function nFe(e,t){if(!r7[e]&&sne(!0)){r7[e]=!0;var n="The option '".concat(e,"' will be removed in a future release");n+=t?", use '".concat(t,"' instead."):".",ane(n,"DeprecationWarning")}}function rFe(e,t,n){var r=new Jo(e);if(t instanceof Map){var i=ir(t),o;try{for(i.s();!(o=i.n()).done;){var s=Vw(o.value,2),a=s[0],c=s[1];r.items.push(e.createPair(a,c,n))}}catch(p){i.e(p)}finally{i.f()}}else if(t&&Xs(t)==="object")for(var u=0,f=Object.keys(t);u=0?n+r.toString(t):Du(e)}var cne={identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:av,stringify:function(){return av.nullStr}},une={identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:function(t){return t[0]==="t"||t[0]==="T"},options:Mu,stringify:function(t){var n=t.value;return n?Mu.trueStr:Mu.falseStr}},dne={identify:function(t){return TA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:function(t,n){return uU(t,n,8)},options:af,stringify:function(t){return lne(t,8,"0o")}},fne={identify:TA,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:function(t){return uU(t,t,10)},options:af,stringify:Du},hne={identify:function(t){return TA(t)&&t>=0},default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:function(t,n){return uU(t,n,16)},options:af,stringify:function(t){return lne(t,16,"0x")}},pne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Du},mne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t)},stringify:function(t){var n=t.value;return Number(n).toExponential()}},gne={identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve:function(t,n,r){var i=n||r,o=new Un(parseFloat(t));return i&&i[i.length-1]==="0"&&(o.minFractionDigits=i.length),o},stringify:Du},sFe=cU.concat([cne,une,dne,fne,hne,pne,mne,gne]),i7=function(t){return typeof t=="bigint"||Number.isInteger(t)},lS=function(t){var n=t.value;return JSON.stringify(n)},vne=[Q1,CA,{identify:function(t){return typeof t=="string"},default:!0,tag:"tag:yaml.org,2002:str",resolve:qw,stringify:lS},{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:function(){return null},stringify:lS},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:function(t){return t==="true"},stringify:lS},{identify:i7,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:function(t){return af.asBigInt?BigInt(t):parseInt(t,10)},stringify:function(t){var n=t.value;return i7(n)?n.toString():JSON.stringify(n)}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:function(t){return parseFloat(t)},stringify:lS}];vne.scalarFallback=function(e){throw new SyntaxError("Unresolved plain scalar ".concat(JSON.stringify(e)))};var o7=function(t){var n=t.value;return n?Mu.trueStr:Mu.falseStr},px=function(t){return typeof t=="bigint"||Number.isInteger(t)};function cS(e,t,n){var r=t.replace(/_/g,"");if(af.asBigInt){switch(n){case 2:r="0b".concat(r);break;case 8:r="0o".concat(r);break;case 16:r="0x".concat(r);break}var i=BigInt(r);return e==="-"?BigInt(-1)*i:i}var o=parseInt(r,n);return e==="-"?-1*o:o}function RB(e,t,n){var r=e.value;if(px(r)){var i=r.toString(t);return r<0?"-"+n+i.substr(1):n+i}return Du(e)}var aFe=cU.concat([{identify:function(t){return t==null},createNode:function(t,n,r){return r.wrapScalars?new Un(null):null},default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:function(){return null},options:av,stringify:function(){return av.nullStr}},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:function(){return!0},options:Mu,stringify:o7},{identify:function(t){return typeof t=="boolean"},default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:function(){return!1},options:Mu,stringify:o7},{identify:px,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:function(t,n,r){return cS(n,r,2)},stringify:function(t){return RB(t,2,"0b")}},{identify:px,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:function(t,n,r){return cS(n,r,8)},stringify:function(t){return RB(t,8,"0")}},{identify:px,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:function(t,n,r){return cS(n,r,10)},stringify:Du},{identify:px,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:function(t,n,r){return cS(n,r,16)},stringify:function(t){return RB(t,16,"0x")}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:function(t,n){return n?NaN:t[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY},stringify:Du},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:function(t){return parseFloat(t.replace(/_/g,""))},stringify:function(t){var n=t.value;return Number(n).toExponential()}},{identify:function(t){return typeof t=="number"},default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve:function(t,n){var r=new Un(parseFloat(t.replace(/_/g,"")));if(n){var i=n.replace(/_/g,"");i[i.length-1]==="0"&&(r.minFractionDigits=i.length)}return r},stringify:Du}],Kte,ene,Zte,tne,rne,ine,one),lFe={core:sFe,failsafe:cU,json:vne,yaml11:aFe},cFe={binary:Kte,bool:une,float:gne,floatExp:mne,floatNaN:pne,floatTime:ine,int:fne,intHex:hne,intOct:dne,intTime:rne,map:Q1,null:cne,omap:ene,pairs:Zte,seq:CA,set:tne,timestamp:one};function uFe(e,t,n){if(t){var r=n.filter(function(o){return o.tag===t}),i=r.find(function(o){return!o.format})||r[0];if(!i)throw new Error("Tag ".concat(t," not found"));return i}return n.find(function(o){return(o.identify&&o.identify(e)||o.class&&e instanceof o.class)&&!o.format})}function dFe(e,t,n){if(e instanceof Qo)return e;var r=n.defaultPrefix,i=n.onTagObj,o=n.prevObjects,s=n.schema,a=n.wrapScalars;t&&t.startsWith("!!")&&(t=r+t.slice(2));var c=uFe(e,t,s.tags);if(!c){if(typeof e.toJSON=="function"&&(e=e.toJSON()),!e||Xs(e)!=="object")return a?new Un(e):e;c=e instanceof Map?Q1:e[Symbol.iterator]?CA:Q1}i&&(i(c),delete n.onTagObj);var u={value:void 0,node:void 0};if(e&&Xs(e)==="object"&&o){var f=o.get(e);if(f){var h=new Wu(f);return n.aliasNodes.push(h),h}u.value=e,o.set(e,u)}return u.node=c.createNode?c.createNode(n.schema,e,n):a?new Un(e):e,t&&u.node instanceof Qo&&(u.node.tag=t),u.node}function fFe(e,t,n,r){var i=e[r.replace(/\W/g,"")];if(!i){var o=Object.keys(e).map(function(g){return JSON.stringify(g)}).join(", ");throw new Error('Unknown schema "'.concat(r,'"; use one of ').concat(o))}if(Array.isArray(n)){var s=ir(n),a;try{for(s.s();!(a=s.n()).done;){var c=a.value;i=i.concat(c)}}catch(g){s.e(g)}finally{s.f()}}else typeof n=="function"&&(i=n(i.slice()));for(var u=0;un.key?1:0},J1=function(){function e(t){var n=t.customTags,r=t.merge,i=t.schema,o=t.sortMapEntries,s=t.tags;xn(this,e),this.merge=!!r,this.name=i,this.sortMapEntries=o===!0?hFe:o||null,!n&&s&&nFe("tags","customTags"),this.tags=fFe(lFe,cFe,n||s,i)}return Yn(e,[{key:"createNode",value:function(n,r,i,o){var s={defaultPrefix:e.defaultPrefix,schema:this,wrapScalars:r},a=o?Object.assign(o,s):s;return dFe(n,i,a)}},{key:"createPair",value:function(n,r,i){i||(i={wrapScalars:!0});var o=this.createNode(n,i.wrapScalars,null,i),s=this.createNode(r,i.wrapScalars,null,i);return new vn(o,s)}}]),e}();ho(J1,"defaultPrefix",CE);ho(J1,"defaultTags",Pd);var XC={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},pFe={get binary(){return Yx},set binary(e){Object.assign(Yx,e)},get bool(){return Mu},set bool(e){Object.assign(Mu,e)},get int(){return af},set int(e){Object.assign(af,e)},get null(){return av},set null(e){Object.assign(av,e)},get str(){return Gu},set str(e){Object.assign(Gu,e)}},yne={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:CE},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:CE}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:CE}]}};function s7(e,t){if((e.version||e.options.version)==="1.0"){var n=t.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(n)return"!"+n[1];var r=t.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return r?"!".concat(r[1],"/").concat(r[2]):"!".concat(t.replace(/^tag:/,""))}var i=e.tagPrefixes.find(function(a){return t.indexOf(a.prefix)===0});if(!i){var o=e.getDefaults().tagPrefixes;i=o&&o.find(function(a){return t.indexOf(a.prefix)===0})}if(!i)return t[0]==="!"?t:"!<".concat(t,">");var s=t.substr(i.prefix.length).replace(/[!,[\]{}]/g,function(a){return{"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"}[a]});return i.handle+s}function mFe(e,t){if(t instanceof Wu)return Wu;if(t.tag){var n=e.filter(function(a){return a.tag===t.tag});if(n.length>0)return n.find(function(a){return a.format===t.format})||n[0]}var r,i;if(t instanceof Un){i=t.value;var o=e.filter(function(a){return a.identify&&a.identify(i)||a.class&&i instanceof a.class});r=o.find(function(a){return a.format===t.format})||o.find(function(a){return!a.format})}else i=t,r=e.find(function(a){return a.nodeClass&&i instanceof a.nodeClass});if(!r){var s=i&&i.constructor?i.constructor.name:Xs(i);throw new Error("Tag not resolved for ".concat(s," value"))}return r}function gFe(e,t,n){var r=n.anchors,i=n.doc,o=[],s=i.anchors.getName(e);return s&&(r[s]=e,o.push("&".concat(s))),e.tag?o.push(s7(i,e.tag)):t.default||o.push(s7(i,t.tag)),o.join(" ")}function uS(e,t,n,r){var i=t.doc,o=i.anchors,s=i.schema,a;if(!(e instanceof Qo)){var c={aliasNodes:[],onTagObj:function(S){return a=S},prevObjects:new Map};e=s.createNode(e,!0,null,c);var u=ir(c.aliasNodes),f;try{for(u.s();!(f=u.n()).done;){var h=f.value;h.source=h.source.node;var p=o.getName(h.source);p||(p=o.newName(),o.map[p]=h.source)}}catch(y){u.e(y)}finally{u.f()}}if(e instanceof vn)return e.toString(t,n,r);a||(a=mFe(s.tags,e));var g=gFe(e,a,t);g.length>0&&(t.indentAtStart=(t.indentAtStart||0)+g.length+1);var v=typeof a.stringify=="function"?a.stringify(e,t,n,r):e instanceof Un?aU(e,t,n,r):e.toString(t,n,r);return g?e instanceof Un||v[0]==="{"||v[0]==="["?"".concat(g," ").concat(v):"".concat(g,` +`).concat(t.indent).concat(v):v}var vFe=function(){function e(t){xn(this,e),ho(this,"map",Object.create(null)),this.prefix=t}return Yn(e,[{key:"createAlias",value:function(n,r){return this.setAnchor(n,r),new Wu(n)}},{key:"createMergePair",value:function(){for(var n=this,r=new jte,i=arguments.length,o=new Array(i),s=0;s0&&!e.commentBefore&&(e.commentBefore=n.before.join(` `),n.before=[]))}}catch(g){o.e(g)}finally{o.f()}if(e.contents=r||null,!r)e.comment=n.before.concat(n.after).join(` `)||null;else{var h=n.before.join(` `);if(h){var p=r instanceof eo&&r.items[0]?r.items[0]:r;p.commentBefore=p.commentBefore?"".concat(h,` `).concat(p.commentBefore):h}e.comment=n.after.join(` -`)||null}}function mFe(e,t){var n=e.tagPrefixes,r=Gw(t.parameters,2),i=r[0],o=r[1];if(!i||!o){var s="Insufficient parameters given for %TAG directive";throw new Jt(t,s)}if(n.some(function(c){return c.handle===i})){var a="The %TAG directive must only be given at most once per handle in the same document.";throw new Jt(t,a)}return{handle:i,prefix:o}}function gFe(e,t){var n=Gw(t.parameters,1),r=n[0];if(t.name==="YAML:1.0"&&(r="1.0"),!r){var i="Insufficient parameters given for %YAML directive";throw new Jt(t,i)}if(!vne[r]){var o=e.version||e.options.version,s="Document will be parsed as YAML ".concat(o," rather than YAML ").concat(r);e.warnings.push(new Ov(t,s))}return r}function vFe(e,t,n){var r=[],i=!1,o=ir(t),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=a.comment,u=a.name;switch(u){case"TAG":try{e.tagPrefixes.push(mFe(e,a))}catch(g){e.errors.push(g)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){var f="The %YAML directive must only be given at most once per document.";e.errors.push(new Jt(a,f))}try{e.version=gFe(e,a)}catch(g){e.errors.push(g)}i=!0;break;default:if(u){var h="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new Ov(a,h))}}c&&r.push(c)}}catch(g){o.e(g)}finally{o.f()}if(n&&!i&&(e.version||n.version||e.options.version)==="1.1"){var p=function(v){var y=v.handle,S=v.prefix;return{handle:y,prefix:S}};e.tagPrefixes=n.tagPrefixes.map(p),e.version=n.version}e.commentBefore=r.join(` -`)||null}function wm(e){if(e instanceof eo)return!0;throw new Error("Expected a YAML collection as document contents")}var lU=function(){function e(t){xn(this,e),this.anchors=new dFe(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return Yn(e,[{key:"add",value:function(n){return wm(this.contents),this.contents.add(n)}},{key:"addIn",value:function(n,r){wm(this.contents),this.contents.addIn(n,r)}},{key:"delete",value:function(n){return wm(this.contents),this.contents.delete(n)}},{key:"deleteIn",value:function(n){return dx(n)?this.contents==null?!1:(this.contents=null,!0):(wm(this.contents),this.contents.deleteIn(n))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(n,r){return this.contents instanceof eo?this.contents.get(n,r):void 0}},{key:"getIn",value:function(n,r){return dx(n)?!r&&this.contents instanceof Un?this.contents.value:this.contents:this.contents instanceof eo?this.contents.getIn(n,r):void 0}},{key:"has",value:function(n){return this.contents instanceof eo?this.contents.has(n):!1}},{key:"hasIn",value:function(n){return dx(n)?this.contents!==void 0:this.contents instanceof eo?this.contents.hasIn(n):!1}},{key:"set",value:function(n,r){wm(this.contents),this.contents.set(n,r)}},{key:"setIn",value:function(n,r){dx(n)?this.contents=r:(wm(this.contents),this.contents.setIn(n,r))}},{key:"setSchema",value:function(n,r){if(!(!n&&!r&&this.schema)){typeof n=="number"&&(n=n.toFixed(1)),n==="1.0"||n==="1.1"||n==="1.2"?(this.version?this.version=n:this.options.version=n,delete this.options.schema):n&&typeof n=="string"&&(this.options.schema=n),Array.isArray(r)&&(this.options.customTags=r);var i=Object.assign({},this.getDefaults(),this.options);this.schema=new K1(i)}}},{key:"parse",value:function(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");var i=n.directives,o=i===void 0?[]:i,s=n.contents,a=s===void 0?[]:s,c=n.directivesEndMarker,u=n.error,f=n.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),vFe(this,o,r),c&&(this.directivesEndMarker=!0),this.range=f?[f.start,f.end]:null,this.setSchema(),this.anchors._cstAliases=[],pFe(this,a),this.anchors.resolveNodes(),this.options.prettyErrors){var h=ir(this.errors),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;g instanceof ov&&g.makePretty()}}catch(w){h.e(w)}finally{h.f()}var v=ir(this.warnings),y;try{for(v.s();!(y=v.n()).done;){var S=y.value;S instanceof ov&&S.makePretty()}}catch(w){v.e(w)}finally{v.f()}}return this}},{key:"listNonDefaultTags",value:function(){return hFe(this.contents).filter(function(n){return n.indexOf(K1.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(n,r){if(n[0]!=="!"||n[n.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){var i=this.tagPrefixes.find(function(o){return o.handle===n});i?i.prefix=r:this.tagPrefixes.push({handle:n,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(function(o){return o.handle!==n})}},{key:"toJSON",value:function(n,r){var i=this,o=this.options,s=o.keepBlobsInJSON,a=o.mapAsMap,c=o.maxAliasCount,u=s&&(typeof n!="string"||!(this.contents instanceof Un)),f={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!a,maxAliasCount:c,stringify:cS},h=Object.keys(this.anchors.map);h.length>0&&(f.anchors=new Map(h.map(function(b){return[i.anchors.map[b],{alias:[],aliasCount:0,count:1}]})));var p=_l(this.contents,n,f);if(typeof r=="function"&&f.anchors){var g=ir(f.anchors.values()),v;try{for(g.s();!(v=g.n()).done;){var y=v.value,S=y.count,w=y.res;r(w,S)}}catch(b){g.e(b)}finally{g.f()}}return p}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var n=this.options.indent;if(!Number.isInteger(n)||n<=0){var r=JSON.stringify(n);throw new Error('"indent" option must be a positive integer, not '.concat(r))}this.setSchema();var i=[],o=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),i.push(s),o=!0}var a=this.listNonDefaultTags();this.tagPrefixes.forEach(function(g){var v=g.handle,y=g.prefix;a.some(function(S){return S.indexOf(y)===0})&&(i.push("%TAG ".concat(v," ").concat(y)),o=!0)}),(o||this.directivesEndMarker)&&i.push("---"),this.commentBefore&&((o||!this.directivesEndMarker)&&i.unshift(""),i.unshift(this.commentBefore.replace(/^/gm,"#")));var c={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(n),stringify:cS},u=!1,f=null;if(this.contents){this.contents instanceof Qo&&(this.contents.spaceBefore&&(o||this.directivesEndMarker)&&i.push(""),this.contents.commentBefore&&i.push(this.contents.commentBefore.replace(/^/gm,"#")),c.forceBlockIndent=!!this.comment,f=this.contents.comment);var h=f?null:function(){return u=!0},p=cS(this.contents,c,function(){return f=null},h);i.push(lg(p,"",f))}else this.contents!==void 0&&i.push(cS(this.contents,c));return this.comment&&((!u||f)&&i[i.length-1]!==""&&i.push(""),i.push(this.comment.replace(/^/gm,"#"))),i.join(` +`)||null}}function wFe(e,t){var n=e.tagPrefixes,r=Vw(t.parameters,2),i=r[0],o=r[1];if(!i||!o){var s="Insufficient parameters given for %TAG directive";throw new Jt(t,s)}if(n.some(function(c){return c.handle===i})){var a="The %TAG directive must only be given at most once per handle in the same document.";throw new Jt(t,a)}return{handle:i,prefix:o}}function _Fe(e,t){var n=Vw(t.parameters,1),r=n[0];if(t.name==="YAML:1.0"&&(r="1.0"),!r){var i="Insufficient parameters given for %YAML directive";throw new Jt(t,i)}if(!yne[r]){var o=e.version||e.options.version,s="Document will be parsed as YAML ".concat(o," rather than YAML ").concat(r);e.warnings.push(new Dv(t,s))}return r}function SFe(e,t,n){var r=[],i=!1,o=ir(t),s;try{for(o.s();!(s=o.n()).done;){var a=s.value,c=a.comment,u=a.name;switch(u){case"TAG":try{e.tagPrefixes.push(wFe(e,a))}catch(g){e.errors.push(g)}i=!0;break;case"YAML":case"YAML:1.0":if(e.version){var f="The %YAML directive must only be given at most once per document.";e.errors.push(new Jt(a,f))}try{e.version=_Fe(e,a)}catch(g){e.errors.push(g)}i=!0;break;default:if(u){var h="YAML only supports %TAG and %YAML directives, and not %".concat(u);e.warnings.push(new Dv(a,h))}}c&&r.push(c)}}catch(g){o.e(g)}finally{o.f()}if(n&&!i&&(e.version||n.version||e.options.version)==="1.1"){var p=function(v){var y=v.handle,S=v.prefix;return{handle:y,prefix:S}};e.tagPrefixes=n.tagPrefixes.map(p),e.version=n.version}e.commentBefore=r.join(` +`)||null}function _m(e){if(e instanceof eo)return!0;throw new Error("Expected a YAML collection as document contents")}var dU=function(){function e(t){xn(this,e),this.anchors=new vFe(t.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=t,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}return Yn(e,[{key:"add",value:function(n){return _m(this.contents),this.contents.add(n)}},{key:"addIn",value:function(n,r){_m(this.contents),this.contents.addIn(n,r)}},{key:"delete",value:function(n){return _m(this.contents),this.contents.delete(n)}},{key:"deleteIn",value:function(n){return hx(n)?this.contents==null?!1:(this.contents=null,!0):(_m(this.contents),this.contents.deleteIn(n))}},{key:"getDefaults",value:function(){return e.defaults[this.version]||e.defaults[this.options.version]||{}}},{key:"get",value:function(n,r){return this.contents instanceof eo?this.contents.get(n,r):void 0}},{key:"getIn",value:function(n,r){return hx(n)?!r&&this.contents instanceof Un?this.contents.value:this.contents:this.contents instanceof eo?this.contents.getIn(n,r):void 0}},{key:"has",value:function(n){return this.contents instanceof eo?this.contents.has(n):!1}},{key:"hasIn",value:function(n){return hx(n)?this.contents!==void 0:this.contents instanceof eo?this.contents.hasIn(n):!1}},{key:"set",value:function(n,r){_m(this.contents),this.contents.set(n,r)}},{key:"setIn",value:function(n,r){hx(n)?this.contents=r:(_m(this.contents),this.contents.setIn(n,r))}},{key:"setSchema",value:function(n,r){if(!(!n&&!r&&this.schema)){typeof n=="number"&&(n=n.toFixed(1)),n==="1.0"||n==="1.1"||n==="1.2"?(this.version?this.version=n:this.options.version=n,delete this.options.schema):n&&typeof n=="string"&&(this.options.schema=n),Array.isArray(r)&&(this.options.customTags=r);var i=Object.assign({},this.getDefaults(),this.options);this.schema=new J1(i)}}},{key:"parse",value:function(n,r){this.options.keepCstNodes&&(this.cstNode=n),this.options.keepNodeTypes&&(this.type="DOCUMENT");var i=n.directives,o=i===void 0?[]:i,s=n.contents,a=s===void 0?[]:s,c=n.directivesEndMarker,u=n.error,f=n.valueRange;if(u&&(u.source||(u.source=this),this.errors.push(u)),SFe(this,o,r),c&&(this.directivesEndMarker=!0),this.range=f?[f.start,f.end]:null,this.setSchema(),this.anchors._cstAliases=[],xFe(this,a),this.anchors.resolveNodes(),this.options.prettyErrors){var h=ir(this.errors),p;try{for(h.s();!(p=h.n()).done;){var g=p.value;g instanceof sv&&g.makePretty()}}catch(w){h.e(w)}finally{h.f()}var v=ir(this.warnings),y;try{for(v.s();!(y=v.n()).done;){var S=y.value;S instanceof sv&&S.makePretty()}}catch(w){v.e(w)}finally{v.f()}}return this}},{key:"listNonDefaultTags",value:function(){return bFe(this.contents).filter(function(n){return n.indexOf(J1.defaultPrefix)!==0})}},{key:"setTagPrefix",value:function(n,r){if(n[0]!=="!"||n[n.length-1]!=="!")throw new Error("Handle must start and end with !");if(r){var i=this.tagPrefixes.find(function(o){return o.handle===n});i?i.prefix=r:this.tagPrefixes.push({handle:n,prefix:r})}else this.tagPrefixes=this.tagPrefixes.filter(function(o){return o.handle!==n})}},{key:"toJSON",value:function(n,r){var i=this,o=this.options,s=o.keepBlobsInJSON,a=o.mapAsMap,c=o.maxAliasCount,u=s&&(typeof n!="string"||!(this.contents instanceof Un)),f={doc:this,indentStep:" ",keep:u,mapAsMap:u&&!!a,maxAliasCount:c,stringify:uS},h=Object.keys(this.anchors.map);h.length>0&&(f.anchors=new Map(h.map(function(b){return[i.anchors.map[b],{alias:[],aliasCount:0,count:1}]})));var p=Sl(this.contents,n,f);if(typeof r=="function"&&f.anchors){var g=ir(f.anchors.values()),v;try{for(g.s();!(v=g.n()).done;){var y=v.value,S=y.count,w=y.res;r(w,S)}}catch(b){g.e(b)}finally{g.f()}}return p}},{key:"toString",value:function(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");var n=this.options.indent;if(!Number.isInteger(n)||n<=0){var r=JSON.stringify(n);throw new Error('"indent" option must be a positive integer, not '.concat(r))}this.setSchema();var i=[],o=!1;if(this.version){var s="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?s="%YAML:1.0":this.version==="1.1"&&(s="%YAML 1.1")),i.push(s),o=!0}var a=this.listNonDefaultTags();this.tagPrefixes.forEach(function(g){var v=g.handle,y=g.prefix;a.some(function(S){return S.indexOf(y)===0})&&(i.push("%TAG ".concat(v," ").concat(y)),o=!0)}),(o||this.directivesEndMarker)&&i.push("---"),this.commentBefore&&((o||!this.directivesEndMarker)&&i.unshift(""),i.unshift(this.commentBefore.replace(/^/gm,"#")));var c={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(n),stringify:uS},u=!1,f=null;if(this.contents){this.contents instanceof Qo&&(this.contents.spaceBefore&&(o||this.directivesEndMarker)&&i.push(""),this.contents.commentBefore&&i.push(this.contents.commentBefore.replace(/^/gm,"#")),c.forceBlockIndent=!!this.comment,f=this.contents.comment);var h=f?null:function(){return u=!0},p=uS(this.contents,c,function(){return f=null},h);i.push(cg(p,"",f))}else this.contents!==void 0&&i.push(uS(this.contents,c));return this.comment&&((!u||f)&&i[i.length-1]!==""&&i.push(""),i.push(this.comment.replace(/^/gm,"#"))),i.join(` `)+` -`}}]),e}();ho(lU,"defaults",vne);function yFe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2?arguments[2]:void 0;n===void 0&&typeof t=="string"&&(n=t,t=!0);var r=Object.assign({},lU.defaults[qC.version],qC),i=new K1(r);return i.createNode(e,t,n)}var CA=function(e){sr(n,e);var t=ar(n);function n(r){return xn(this,n),t.call(this,Object.assign({},qC,r))}return n}(lU);function bFe(e,t){var n=[],r,i=ir(tU(e)),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=new CA(t);a.parse(s,r),n.push(a),r=a}}catch(c){i.e(c)}finally{i.f()}return n}function yne(e,t){var n=tU(e),r=new CA(t).parse(n[0]);if(n.length>1){var i="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Jt(n[1],i))}return r}function xFe(e,t){var n=yne(e,t);if(n.warnings.forEach(function(r){return sne(r)}),n.errors.length>0)throw n.errors[0];return n.toJSON()}function wFe(e,t){var n=new CA(t);return n.contents=e,String(n)}var _Fe={createNode:yFe,defaultOptions:qC,Document:CA,parse:xFe,parseAllDocuments:bFe,parseCST:tU,parseDocument:yne,scalarOptions:lFe,stringify:wFe};const SFe=Object.freeze(Object.defineProperty({__proto__:null,YAML:_Fe},Symbol.toStringTag,{value:"Module"})),EFe=o4(SFe);var bne=EFe.YAML;const CFe=ds(bne);function i7(e){switch(typeof e){case"number":case"string":return`${e}`;case"undefined":return"null";default:return C.jsx("code",{children:te.truncate(CFe.stringify(e).replace(` -`,", "),{length:30})})}}function o7({label:e,value:t,type:n}){return C.jsxs(En,{width:"auto",mr:3,mt:.5,children:[C.jsx(jt,{component:"div",variant:"body2",...n,sx:{opacity:.54,...n==null?void 0:n.sx},children:e}),C.jsx(ai,{}),C.jsx(jt,{component:"div",variant:"body2",...n,children:i7(t)??"none"})]},`${e}::${i7(t)}`)}function Q3({event:e,variant:t="body2",max:n=10,...r}){const i=te.filter(te.entries(e),([,o])=>o!==void 0);return C.jsxs(En,{...r,children:[te.map(te.slice(i,0,n),([o,s])=>C.jsx(o7,{label:o,value:s,type:{variant:t}})),i.length>n&&C.jsx(o7,{label:`${i.length-n} more`,type:{sx:{pt:1}},value:""})]})}var xne={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xt,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,a){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=1)}([function(n,r,i){function o(a){var c=a===void 0?{}:a,u=c.ESCAPE,f=u===void 0?/^\\/:u,h=c.VARIABLE_START,p=h===void 0?/^\${\s*/:h,g=c.VARIABLE_END,v=g===void 0?/^\s*}/:g,y=c.PIPE_START,S=y===void 0?/^\s*\|\s*/:y,w=c.PIPE_PARAMETER_START,b=w===void 0?/^\s*:\s*/:w,x=c.QUOTED_STRING,E=x===void 0?r.DEFAULT_QUOTED_STRING_REGEX:x,I=c.QUOTED_STRING_TEST,A=I===void 0?null:I,k=c.QUOTED_STRING_GET_AND_ADVANCE,O=k===void 0?null:k,D=c.QUOTED_STRING_IN_PARAMETER_TEST,N=D===void 0?null:D,H=c.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,G=H===void 0?null:H,z=A||function(V){return E.test(V)},L=O||s(E),F=N||function(V){return E.test(V)},j=G||s(E);return function(V){function W(Pe){Pe===void 0&&(Pe=1),pe=pe.substr(Pe)}function K(Pe){Pe===void 0&&(Pe=/^/),W(pe.match(Pe)[0].length)}function X(){var Pe;return K(f),Pe=pe.length>0?pe[0]:"",W(),Pe}function Q(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;me={name:"",pipes:[]},Xe=!st}function ie(){ve.variables.push(me),Q({isNull:!0})}function ce(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;be={name:"",parameters:[]},ct=!st}function ue(){me.pipes.push(be),ce({isNull:!0})}function se(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;Ze="",Bt=!st}function J(){be.parameters.push(Ze),se({isNull:!0})}function ae(){return!!v.test(pe)&&(K(v),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ie(),ye=0,!0)}function le(){return!!S.test(pe)&&(K(S),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ce(),ye=2,!0)}function he(){return!!b.test(pe)&&(K(b),ye>=3&&J(),ye>=2&&se(),ye=3,!0)}for(var pe=V,ve={literals:[],variables:[]},ye=0,xe="",me={name:"",pipes:[]},be={name:"",parameters:[]},Ze="",Xe=!1,ct=!1,Bt=!1;pe&&pe.length>0;)switch(ye){case 0:if(f.test(pe)){xe+=X();continue}if(p.test(pe)){ye=1,Q(),ve.literals.push(xe),xe="",K(p);continue}xe+=pe[0],W();break;case 1:if(f.test(pe)){me.name+=X();continue}if(ae()||le())continue;if(z(pe)){me.name+=L(pe,W);continue}me.name+=pe[0],W();break;case 2:if(f.test(pe)){be.name+=X();continue}if(ae()||he()||le())continue;if(z(pe)){be.name+=L(pe,W);continue}be.name+=pe[0],W();break;case 3:if(f.test(pe)){Ze+=X();continue}if(ae()||he()||le())continue;if(F(pe)){Ze+=j(pe,W);continue}Ze+=pe[0],W()}return Bt&&be.parameters.push(Ze),ct&&me.pipes.push(be),Xe&&ve.variables.push(me),ve.literals.push(xe),ve}}function s(a){return function(c,u){var f=c.match(a);return u(f[0].length),f.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,r.parseStringTemplateGenerator=o,r.parseStringTemplate=o(),r.getQuotedStringAndAdvanceForRegex=s},function(n,r,i){n.exports=i(2)},function(n,r,i){function o(s){for(var a in s)r.hasOwnProperty(a)||(r[a]=s[a])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(0)),o(i(3))},function(n,r,i){function o(f){return function(h){return f.hasOwnProperty(h)?f[h]:h.split(".").reduce(function(p,g){return p.hasOwnProperty(g)?p[g]:""},f)}}function s(f,h,p,g){g===void 0&&(g=o(h));var v=g(f.name);return f.pipes.reduce(function(y,S){return p.hasOwnProperty(S.name)?p[S.name](y,S.parameters):y},v??"")}function a(f,h,p,g){return g===void 0&&(g=o(h)),f.literals.length===0?"":f.literals.slice(1).reduce(function(v,y,S){return""+v+s(f.variables[S],h,p,g)+y},f.literals[0])}function c(f,h,p){return a(u.parseStringTemplate(f),h,p)}Object.defineProperty(r,"__esModule",{value:!0});var u=i(0);r.evaluateParsedString=a,r.evaluateStringTemplate=c}])})})(xne);var s7=xne.exports;function TFe(e={},t){const{$:n,...r}=e;return{...te.mapValues(r,t),$:n}}function J3(e){switch(e==null?void 0:e.constructor){case Array:{const t=te.map(e,J3);return n=>te.map(t,r=>r(n))}case Object:{const t=te.mapValues(e,J3);return n=>te.mapValues(t,r=>r(n))}case String:return Z3(e);default:return te.constant(e)}}function kFe(e={}){return TFe(e,t=>te.isFunction(t)?t:J3(t))}const a7=_f(e=>{const t=Function("$",`return ${e};`);return n=>t(new Proxy(kFe(n),{get(r,i){var o;return(o=r[i])==null?void 0:o.call(r,{})}}))},{primitive:!0}),AFe=/^\{\{\s*/,IFe=/^\s*\}\}/,IB=/\b\B/,Z3=_f(e=>{const n=s7.parseStringTemplateGenerator({VARIABLE_START:AFe,VARIABLE_END:IFe,PIPE_START:IB,PIPE_PARAMETER_START:IB,QUOTED_STRING:IB})(e);return te.join(n.literals,"")?r=>s7.evaluateParsedString(n,{},{},i=>a7(i)(r)):a7(n.variables[0].name)},{primitive:!0});function RFe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var wne={exports:{}};(function(e,t){(function(n,r){typeof RFe=="function"?e.exports=r():n.pluralize=r()})(Xt,function(){var n=[],r=[],i={},o={},s={};function a(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,S){return y===S?S:y===y.toLowerCase()?S.toLowerCase():y===y.toUpperCase()?S.toUpperCase():y[0]===y[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function u(y,S){return y.replace(/\$(\d{1,2})/g,function(w,b){return S[b]||""})}function f(y,S){return y.replace(S[0],function(w,b){var x=u(S[1],arguments);return c(w===""?y[b-1]:w,x)})}function h(y,S,w){if(!y.length||i.hasOwnProperty(y))return S;for(var b=w.length;b--;){var x=w[b];if(x[0].test(S))return f(S,x)}return S}function p(y,S,w){return function(b){var x=b.toLowerCase();return S.hasOwnProperty(x)?c(b,x):y.hasOwnProperty(x)?c(b,y[x]):h(x,b,w)}}function g(y,S,w,b){return function(x){var E=x.toLowerCase();return S.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:h(E,E,w)===E}}function v(y,S,w){var b=S===1?v.singular(y):v.plural(y);return(w?S+" ":"")+b}return v.plural=p(s,o,n),v.isPlural=g(s,o,n),v.singular=p(o,s,r),v.isSingular=g(o,s,r),v.addPluralRule=function(y,S){n.push([a(y),S])},v.addSingularRule=function(y,S){r.push([a(y),S])},v.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}v.addPluralRule(y,"$0"),v.addSingularRule(y,"$0")},v.addIrregularRule=function(y,S){S=S.toLowerCase(),y=y.toLowerCase(),s[y]=S,o[S]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return v.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return v.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return v.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(v.addUncountableRule),v})})(wne);var PFe=wne.exports;const OFe=ds(PFe),MFe=""+new URL("parseTrace.worker-c4cde251.js",import.meta.url).href;class LFe extends Worker{constructor(){super(MFe,{type:"module"})}}const DFe=Rv(LFe);function NFe(e){const t=gc(),n=om("specimen");return R.useCallback(()=>n(async()=>{var r;if(e!=null&&e.trace){t("Processing trace...");try{const i=await DFe(e);return t("Trace loaded",OFe("step",((r=i==null?void 0:i.stepsPersistent)==null?void 0:r.length)??0,!0)),i}catch(i){t("Error parsing",`${bne.stringify(i)}`)}}}),[e])}function cg({label:e,icon:t,...n}){return C.jsx(vf,{title:te.startCase(e),children:C.jsx("span",{children:C.jsx(Fp,{...n,children:t})})},e)}function BFe(){return R.useCallback(e=>({result:"",error:void 0,offset:0}),[])}function cU(e){const t=gc(),{layer:n,setLayer:r}=Vp(e),{playback:i,playbackTo:o,step:s=0}=(n==null?void 0:n.source)??{},a=te.min([o,s])??0,c=!!o,u=i==="playing",[f,h]=[0,(o??1)-1];return R.useMemo(()=>{function p(S){r(Ta(n,w=>te.set(w,"source",{...w==null?void 0:w.source,...S})))}const g={start:f,end:h,step:a,canPlay:c&&!u&&a0},v=S=>te.clamp(a+S,f,h);return{playing:i==="playing",...g,...{play:()=>{t("Playback started"),p({playback:"playing",step:v(1)})},pause:(S=0)=>{t("Playback paused"),p({playback:"paused",step:v(S)})},stepTo:(S=0)=>p({step:S}),stop:()=>p({step:f,playback:"paused"}),stepForward:()=>p({step:v(1)}),stepBackward:()=>p({step:v(-1)}),tick:(S=1)=>p({playback:"playing",step:v(S)})}}},[h,i,u,c,f,a,r])}function $Fe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function FFe({children:e,value:t}){const{step:n,tick:r,end:i,playing:o,pause:s}=cU(t==null?void 0:t.key);qQ();const a=gc(),[{playbackRate:c=1}]=Ju(),u=BFe(),f=R.useCallback((h,p)=>C.jsx(zz,{primary:h,secondary:`Step ${n+p}`}),[n]);return R.useEffect(()=>{if(o)return n{for(const h of te.range(c)){const p=u(n+h);if(p.result||p.error)return{...p,offset:h}}return{result:"",offset:0,error:void 0}},({result:h,offset:p,error:g})=>{g?(a(`${te.trimEnd(g,".")}.`,`${p}`),s()):h?(a(`Breakpoint hit: ${h}.`,`${p}`),s(p)):r(c)}):s()},[f,o,i,n,s,r,a,u,c]),C.jsx(C.Fragment,{children:e})}function zFe({layer:e}){const{playing:t,canPause:n,canPlay:r,canStepBackward:i,canStepForward:o,canStop:s,pause:a,play:c,stepBackward:u,stepForward:f,stop:h}=cU(e==null?void 0:e.key);return qQ(),C.jsxs(C.Fragment,{children:[C.jsx(cg,{label:"step-backward",icon:C.jsx(W1e,{}),onClick:u,disabled:!i}),C.jsx(cg,{...t?{label:"pause",icon:C.jsx($1e,{}),onClick:()=>a(),disabled:!n}:{label:"play",icon:C.jsx(z1e,{}),onClick:()=>c(),disabled:!r,color:"primary"}}),C.jsx(cg,{label:"step-forward",icon:C.jsx(H1e,{}),onClick:f,disabled:!o}),C.jsx(cg,{label:"stop",icon:C.jsx(G1e,{}),onClick:h,disabled:!s})]})}const jFe=e=>e==null;function UFe(e){const t=[],n={},r={},i=te.chain(e==null?void 0:e.events).map((a,c)=>({step:c,id:a.id,pId:a.pId})).groupBy("id").value();te.forEach(e==null?void 0:e.events,({id:a,pId:c},u)=>{!jFe(c)&&n[a]!==c&&(t.push({id:a,pId:c,step:u,prev:te.last(t)}),n[a]=c),r[u]=te.last(t)});const o=(a,c=(u=>(u=e==null?void 0:e.events)==null?void 0:u.length)()??0)=>{let f=r[c];for(;f;){if(f.id===a)return f.pId;f=f.prev}};return{getParent:o,getPath:a=>{const c=[a];let u={...(e.events??[])[a],step:a};for(;u;){const f=o(u.id,u.step);if(f){const h=te.findLast(i[f],p=>p.step<=u.step);if(h)c.push(h.step),u=h;else break}else break}return c}}}const Xx={key:"trace",inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Trace"},editor:Jg(({value:e,produce:t})=>{var n,r,i,o;return C.jsxs(C.Fragment,{children:[C.jsx(G1,{label:"Trace",content:C.jsx(lOe,{onChange:s=>t(a=>te.set(a,"source.trace",{...s,key:qo()})),value:(n=e==null?void 0:e.source)==null?void 0:n.trace})}),C.jsx(G1,{label:"Onion Skinning",content:C.jsx(Gs,{disabled:!0,showArrow:!0,value:((r=e==null?void 0:e.source)==null?void 0:r.onion)??"off",items:["off","transparent","solid"].map(s=>({id:s,name:te.startCase(s)})),onChange:s=>t(a=>te.set(a,"source.onion",s))})}),C.jsx(Rte,{label:"Preview"}),C.jsx(ht,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Pte,{trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content})})]})}),service:Jg(({value:e,produce:t})=>{var i,o,s,a,c,u,f,h;const{palette:n}=Dn(),r=NFe({trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content,context:{color:Nj,themeAccent:n.primary.main,themeTextPrimary:n.text.primary,themeBackground:n.background.paper},view:"main"});return R.useEffect(()=>{t(p=>{var g,v,y,S;return te.set(p,"source.playbackTo",((S=(y=(v=(g=e==null?void 0:e.source)==null?void 0:g.trace)==null?void 0:v.content)==null?void 0:y.events)==null?void 0:S.length)??0)})},[(u=(c=(a=(s=e==null?void 0:e.source)==null?void 0:s.trace)==null?void 0:a.content)==null?void 0:c.events)==null?void 0:u.length]),Ite(async()=>{const p=await r();t(g=>te.set(g,"source.parsedTrace",p))},[r],[(h=(f=e==null?void 0:e.source)==null?void 0:f.trace)==null?void 0:h.key]),C.jsx(C.Fragment,{children:C.jsx(FFe,{value:e})})}),renderer:({layer:e})=>{var a,c;const t=(a=e==null?void 0:e.source)==null?void 0:a.parsedTrace,n=XQ(((c=e==null?void 0:e.source)==null?void 0:c.step)??0,1e3/60),r=HFe(e,n),i=R.useMemo(()=>te.map(t==null?void 0:t.stepsPersistent,u=>te.map(u,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsPersistent,e==null?void 0:e.key]),o=R.useMemo(()=>te.map(t==null?void 0:t.stepsTransient,u=>te.map(u,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsTransient,e==null?void 0:e.key]),s=R.useMemo(()=>[o[n]??[]],[o,n]);return C.jsxs(C.Fragment,{children:[C.jsx(PBe,{step:n,nodes:i}),C.jsx(W1,{nodes:s}),r]})},steps:({layer:e,children:t})=>{var n,r,i;return C.jsx(C.Fragment,{children:t==null?void 0:t(((i=(r=(n=e==null?void 0:e.source)==null?void 0:n.trace)==null?void 0:r.content)==null?void 0:i.events)??[])})},getSelectionInfo:({layer:e,event:t,children:n})=>{const{layer:r,setLayer:i}=Vp(e),o=R.useMemo(()=>{var c,u,f,h;const s=((f=(u=(c=r==null?void 0:r.source)==null?void 0:c.trace)==null?void 0:u.content)==null?void 0:f.events)??[],a=te.chain((h=t==null?void 0:t.info)==null?void 0:h.components).filter(p=>{var g;return((g=p.meta)==null?void 0:g.sourceLayer)===(r==null?void 0:r.key)}).map(p=>{var g;return(g=p.meta)==null?void 0:g.step}).filter(te.negate(te.isUndefined)).sort((p,g)=>p-g).value();if(a.length&&r){const p=te.last(a),g=s[p];if(g)return{[r.key]:{primary:ga(r),items:{properties:{index:-1,primary:C.jsx(Q3,{event:g,vertical:!0})},[`${g}`]:{primary:`Go to Step ${p}`,secondary:`${te.startCase(g.type)}`,action:()=>i(Ta(r,v=>{te.set(v,"source.step",p)})),icon:C.jsx(w1e,{})}}}}}return{}},[r,t]);return C.jsx(C.Fragment,{children:n==null?void 0:n(o)})}};function HFe(e,t=0){var o,s;const{palette:n}=Dn(),{getPath:r}=R.useMemo(()=>{var a,c;return(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)!=null&&c.content?UFe(e.source.trace.content):{getParent:te.constant(void 0),getPath:te.constant([])}},[(s=(o=e==null?void 0:e.source)==null?void 0:o.trace)==null?void 0:s.content]);return R.useMemo(()=>{var a,c,u,f;if((f=(u=(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)==null?void 0:c.content)==null?void 0:u.render)!=null&&f.path){const{pivot:h={},scale:p=1}=e.source.trace.content.render.path,{x:g,y:v}=h,y=g?Z3(g):b=>b.event.x,S=v?Z3(v):b=>b.event.y,w=te.map(r(t),b=>{var x,E,I,A;return(A=(I=(E=(x=e==null?void 0:e.source)==null?void 0:x.trace)==null?void 0:E.content)==null?void 0:I.events)==null?void 0:A[b]});if(w.length){const b=[{$:"rect",x:y({event:{x:0,y:0,...te.head(w)}})-2*p/2,y:S({event:{x:0,y:0,...te.head(w)}})-2*p/2,fill:B1("destination"),width:2*p,height:2*p},{$:"rect",x:y({event:{x:0,y:0,...te.last(w)}})-2*p/2,y:S({event:{x:0,y:0,...te.last(w)}})-2*p/2,fill:B1("source"),width:2*p,height:2*p},{$:"path",points:w.map(x=>({x:y({event:{x:0,y:0,...x}}),y:S({event:{x:0,y:0,...x}})})),fill:n.primary.main,alpha:1,lineWidth:1*p}];return C.jsx(W1,{nodes:[te.map(b,x=>({component:x,meta:{source:"path"}}))]})}}return C.jsx(C.Fragment,{})},[e,t,n,r])}const WFe=Xx.getSelectionInfo;async function GFe(e,t,n){for(const r of e){const i=await r.call("features/algorithms"),o=await r.call("features/formats");if(te.find(i,{id:t})&&te.find(o,{id:n}))return r}}const VFe={key:"query",editor:Jg(({value:e,produce:t})=>{var c,u;const{algorithm:n}=(e==null?void 0:e.source)??{},{layers:r,layer:i,key:o}=Vp(void 0,f=>{var h;return((h=f.source)==null?void 0:h.type)==="map"}),[{algorithms:s}]=$C(),[a]=nv();return C.jsxs(C.Fragment,{children:[C.jsx(G1,{label:"Algorithm",content:C.jsx(Gs,{showArrow:!0,icon:C.jsx(A1e,{}),label:"Choose Algorithm",value:n,items:s.map(f=>{var h;return{...f,description:(h=te.find(a,{url:f.source}))==null?void 0:h.name}}),onChange:async f=>t(h=>te.set(h,"source.algorithm",f))})}),!(s!=null&&s.length)&&C.jsx(jt,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),C.jsx(G1,{label:"Map",content:C.jsx(Gs,{showArrow:!0,icon:C.jsx(Cw,{}),label:"Choose Layer",value:o,items:r.map(f=>({id:f.key,name:ga(f)})),onChange:async f=>t(h=>te.set(h,"source.mapLayerKey",f))})}),i&&C.jsxs(jt,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",ga(i)]}),C.jsx(Rte,{label:"Preview"}),C.jsx(ht,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Pte,{trace:(u=(c=e==null?void 0:e.source)==null?void 0:c.trace)==null?void 0:u.content})})]})}),service:Jg(({value:e,produce:t})=>{const n=gc(),{algorithm:r,mapLayerKey:i,start:o,end:s}=(e==null?void 0:e.source)??{},[{layers:a}]=im(),[c]=nv(),[{algorithms:u}]=$C(),f=R.useMemo(()=>{if(i&&r)return te.find(a,{key:i})},[i,r,a]);return r$e(async h=>{var p;if(f&&r){const{format:g,content:v}=((p=f==null?void 0:f.source)==null?void 0:p.map)??{};if(g&&v){const y=await GFe(c,r,g),S=te.find(u,{id:r});if(y){n(`Executing ${ga(e)} using ${y.name}...`);const w=await y.call("solve/pathfinding",{format:g,instances:[{start:o??0,end:s??0}],mapURI:`map:${encodeURIComponent(v)}`,algorithm:r});h.aborted?n("Canceled."):t(b=>te.set(b,"source.trace",{name:`${S==null?void 0:S.name}`,content:w,key:qo()}))}}}},[f,c,r,o,s,t,n,e,u],[f,c,r,o,s]),C.jsx(C.Fragment,{children:Xx.service})}),inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Query"},renderer:Xx.renderer,steps:Xx.steps,getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=Vp(n),s=R.useMemo(()=>{const c=te.filter(o,{source:{type:"map"}});return te.filter(te.map(c,u=>{var h,p,g,v;const{parsedMap:f}=(u==null?void 0:u.source)??{};if(f&&t){const y=(v=(g=Qj((p=(h=u==null?void 0:u.source)==null?void 0:h.map)==null?void 0:p.format))==null?void 0:g.hydrate)==null?void 0:v.call(g,f);if(y){const S=(t==null?void 0:t.world)&&y.snap(t.world);if(S){const w=(t==null?void 0:t.world)&&y.nodeAt(S);return{point:S,node:w,key:u.key,name:ga(u)}}}}}))},[o]),a=R.useMemo(()=>!!r&&!!s.length&&{[r.key]:{primary:ga(r),items:{...te.reduce(s,(c,u)=>({...c,[`${n}-${u==null?void 0:u.key}-source`]:{primary:"Set as source",secondary:u==null?void 0:u.name,action:()=>i(Ta(r,f=>{te.set(f,"source.start",u==null?void 0:u.node),te.set(f,"source.query",void 0),te.set(f,"source.mapLayerKey",u==null?void 0:u.key),te.set(f,"source.trace",void 0)})),icon:C.jsx(V1e,{sx:{transform:"scale(0.5)"}})},[`${n}-${u==null?void 0:u.key}-destination`]:{primary:"Set as destination",secondary:u==null?void 0:u.name,action:()=>i(Ta(r,f=>{te.set(f,"source.end",u==null?void 0:u.node),te.set(f,"source.query",void 0),te.set(f,"source.mapLayerKey",u==null?void 0:u.key),te.set(f,"source.trace",void 0)})),icon:C.jsx(F1e,{})}}),{})}}},[s,r,o,i]);return C.jsx(WFe,{event:t,layer:n,children:c=>e==null?void 0:e(te.merge(c,a))})}};function qFe({layer:e}){var t,n;return C.jsx(C.Fragment,{children:e&&R.createElement((n=qw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""])==null?void 0:n.renderer,{layer:e})})}function ga(e){var t,n;return e!=null&&e.name?e==null?void 0:e.name:(t=e==null?void 0:e.source)!=null&&t.type?qw[(n=e.source)==null?void 0:n.type].inferName(e):"Untitled Layer"}function _ne(e){var t;return qw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""]}const qw={map:l$e,trace:Xx,query:VFe};function XFe(e,t,n=600){const[r,i]=R.useState(e);R.useEffect(()=>void i(e),[i,e]);const o=R.useMemo(()=>te.debounce(s=>t==null?void 0:t(s),n),[t,n]);return[r,s=>{i(s),o(s)}]}function YFe({value:e,onValueChange:t},n){var f,h,p;const[r,i]=XFe(e,t),o=g=>C.jsx(jt,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:g}),s=g=>C.jsx(jt,{variant:"body1",children:g}),a=(g,v)=>C.jsxs(En,{alignItems:"center",children:[s(g),C.jsx(ai,{flex:1}),v]}),c=g=>g.map(v=>({id:v,name:te.startCase(v)})),u=r.name||ga(e);return C.jsx(C.Fragment,{children:C.jsxs(Up,{alignItems:"center",direction:"row",gap:2,children:[C.jsxs(ht,{py:1,ml:-1,children:[C.jsx(jt,{children:u}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:te.startCase((f=r.source)==null?void 0:f.type)})]}),C.jsx(ai,{flex:1}),C.jsx(Up,{alignItems:"center",direction:"row",children:C.jsx(Ij,{appBar:{children:C.jsx(Aj,{children:"Edit Layer"})},trigger:g=>C.jsx(Fp,{size:"small",onClick:g,children:C.jsx(jk,{})}),children:C.jsxs(ht,{p:2,children:[C.jsx(ht,{pb:2,children:C.jsx(Ew,{fullWidth:!0,variant:"filled",label:"Layer Name",value:r.name??"",onChange:g=>i==null?void 0:i(Ta(r,v=>te.set(v,"name",g.target.value)))})}),o("Layer Options"),a("Transparency",C.jsx(Gs,{label:"Transparency",items:["25","50","75","100"].map(g=>({id:g,name:`${g}%`})),value:"100",showArrow:!0})),a("Display Mode",C.jsx(Gs,{label:"Display Mode",value:"normal",items:c(["normal","difference"]),showArrow:!0})),o("Source Options"),a("Type",C.jsx(Gs,{label:"Type",value:(h=r.source)==null?void 0:h.type,items:["map","trace","query"].map(g=>({id:g,name:te.startCase(g)})),onChange:g=>i==null?void 0:i(Ta(r,v=>{te.set(v,"source",{type:g})})),showArrow:!0})),((p=r.source)==null?void 0:p.type)&&R.createElement(qw[r.source.type].editor,{onChange:g=>i(g(r)),value:r})]})})})]})})}const KFe=R.forwardRef(YFe);function QFe(){const[{layers:e=[]},t]=im();return C.jsx(ht,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(ht,{sx:{mb:2},children:C.jsx(lA,{sortable:!0,icon:null,value:e,useDelete:!0,useReorder:!0,editor:n=>C.jsx(KFe,{value:n}),create:()=>({source:{type:"trace",trace:{}}}),onChange:n=>t(()=>({layers:n})),addItemLabel:"Layer",placeholderText:C.jsx(ht,{pt:2,children:"Click the button below to add a layer."})})})})}function JFe(){const{controls:e,onChange:t,state:n}=bf();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(ht,{p:2,pr:1,pt:6,children:C.jsx(QFe,{})})}),C.jsx(zn.Extras,{children:e})]})}function Sne(e){return C.jsx(P1e,{...e,sx:{fontSize:12,transform:"translateY(1.75px) translateX(-2px)",...e.sx}})}function ZFe({children:e}){return C.jsx(jt,{variant:"overline",sx:{my:-.75,display:"block"},children:e})}var XC={exports:{}};/** +`}}]),e}();ho(dU,"defaults",yne);function EFe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,n=arguments.length>2?arguments[2]:void 0;n===void 0&&typeof t=="string"&&(n=t,t=!0);var r=Object.assign({},dU.defaults[XC.version],XC),i=new J1(r);return i.createNode(e,t,n)}var kA=function(e){sr(n,e);var t=ar(n);function n(r){return xn(this,n),t.call(this,Object.assign({},XC,r))}return n}(dU);function CFe(e,t){var n=[],r,i=ir(iU(e)),o;try{for(i.s();!(o=i.n()).done;){var s=o.value,a=new kA(t);a.parse(s,r),n.push(a),r=a}}catch(c){i.e(c)}finally{i.f()}return n}function bne(e,t){var n=iU(e),r=new kA(t).parse(n[0]);if(n.length>1){var i="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Jt(n[1],i))}return r}function TFe(e,t){var n=bne(e,t);if(n.warnings.forEach(function(r){return ane(r)}),n.errors.length>0)throw n.errors[0];return n.toJSON()}function kFe(e,t){var n=new kA(t);return n.contents=e,String(n)}var AFe={createNode:EFe,defaultOptions:XC,Document:kA,parse:TFe,parseAllDocuments:CFe,parseCST:iU,parseDocument:bne,scalarOptions:pFe,stringify:kFe};const IFe=Object.freeze(Object.defineProperty({__proto__:null,YAML:AFe},Symbol.toStringTag,{value:"Module"})),RFe=l4(IFe);var xne=RFe.YAML;const PFe=ds(xne);function a7(e){switch(typeof e){case"number":case"string":return`${e}`;case"undefined":return"null";default:return C.jsx("code",{children:te.truncate(PFe.stringify(e).replace(` +`,", "),{length:30})})}}function l7({label:e,value:t,type:n}){return C.jsxs(En,{width:"auto",mr:3,mt:.5,children:[C.jsx(Ut,{component:"div",variant:"body2",...n,sx:{opacity:.54,...n==null?void 0:n.sx},children:e}),C.jsx(ai,{}),C.jsx(Ut,{component:"div",variant:"body2",...n,children:a7(t)??"none"})]},`${e}::${a7(t)}`)}function e5({event:e,variant:t="body2",max:n=10,...r}){const i=te.filter(te.entries(e),([,o])=>o!==void 0);return C.jsxs(En,{...r,children:[te.map(te.slice(i,0,n),([o,s])=>C.jsx(l7,{label:o,value:s,type:{variant:t}})),i.length>n&&C.jsx(l7,{label:`${i.length-n} more`,type:{sx:{pt:1}},value:""})]})}var wne={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($t,function(){return function(n){function r(o){if(i[o])return i[o].exports;var s=i[o]={i:o,l:!1,exports:{}};return n[o].call(s.exports,s,s.exports,r),s.l=!0,s.exports}var i={};return r.m=n,r.c=i,r.d=function(o,s,a){r.o(o,s)||Object.defineProperty(o,s,{configurable:!1,enumerable:!0,get:a})},r.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return r.d(s,"a",s),s},r.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)},r.p="",r(r.s=1)}([function(n,r,i){function o(a){var c=a===void 0?{}:a,u=c.ESCAPE,f=u===void 0?/^\\/:u,h=c.VARIABLE_START,p=h===void 0?/^\${\s*/:h,g=c.VARIABLE_END,v=g===void 0?/^\s*}/:g,y=c.PIPE_START,S=y===void 0?/^\s*\|\s*/:y,w=c.PIPE_PARAMETER_START,b=w===void 0?/^\s*:\s*/:w,x=c.QUOTED_STRING,E=x===void 0?r.DEFAULT_QUOTED_STRING_REGEX:x,I=c.QUOTED_STRING_TEST,A=I===void 0?null:I,k=c.QUOTED_STRING_GET_AND_ADVANCE,O=k===void 0?null:k,L=c.QUOTED_STRING_IN_PARAMETER_TEST,N=L===void 0?null:L,H=c.QUOTED_STRING_IN_PARAMETER_GET_AND_ADVANCE,G=H===void 0?null:H,z=A||function(V){return E.test(V)},D=O||s(E),F=N||function(V){return E.test(V)},j=G||s(E);return function(V){function W(Pe){Pe===void 0&&(Pe=1),pe=pe.substr(Pe)}function K(Pe){Pe===void 0&&(Pe=/^/),W(pe.match(Pe)[0].length)}function X(){var Pe;return K(f),Pe=pe.length>0?pe[0]:"",W(),Pe}function Q(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;me={name:"",pipes:[]},Xe=!st}function ie(){ve.variables.push(me),Q({isNull:!0})}function ce(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;be={name:"",parameters:[]},ct=!st}function ue(){me.pipes.push(be),ce({isNull:!0})}function se(Pe){var ze=(Pe===void 0?{}:Pe).isNull,st=ze!==void 0&&ze;Ze="",Bt=!st}function J(){be.parameters.push(Ze),se({isNull:!0})}function ae(){return!!v.test(pe)&&(K(v),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ie(),ye=0,!0)}function le(){return!!S.test(pe)&&(K(S),ye>=3&&J(),ye>=2&&ue(),ye>=1&&ce(),ye=2,!0)}function he(){return!!b.test(pe)&&(K(b),ye>=3&&J(),ye>=2&&se(),ye=3,!0)}for(var pe=V,ve={literals:[],variables:[]},ye=0,xe="",me={name:"",pipes:[]},be={name:"",parameters:[]},Ze="",Xe=!1,ct=!1,Bt=!1;pe&&pe.length>0;)switch(ye){case 0:if(f.test(pe)){xe+=X();continue}if(p.test(pe)){ye=1,Q(),ve.literals.push(xe),xe="",K(p);continue}xe+=pe[0],W();break;case 1:if(f.test(pe)){me.name+=X();continue}if(ae()||le())continue;if(z(pe)){me.name+=D(pe,W);continue}me.name+=pe[0],W();break;case 2:if(f.test(pe)){be.name+=X();continue}if(ae()||he()||le())continue;if(z(pe)){be.name+=D(pe,W);continue}be.name+=pe[0],W();break;case 3:if(f.test(pe)){Ze+=X();continue}if(ae()||he()||le())continue;if(F(pe)){Ze+=j(pe,W);continue}Ze+=pe[0],W()}return Bt&&be.parameters.push(Ze),ct&&me.pipes.push(be),Xe&&ve.variables.push(me),ve.literals.push(xe),ve}}function s(a){return function(c,u){var f=c.match(a);return u(f[0].length),f.slice(2).join("").replace("\\\\","\\")}}Object.defineProperty(r,"__esModule",{value:!0}),r.DEFAULT_QUOTED_STRING_REGEX=/^('((?:[^'\\]|\\.)*)'|'((?:[^'\\]|\\.)*)$|"((?:[^"\\]|\\.)*)"|"((?:[^"\\]|\\.)*)$)/,r.parseStringTemplateGenerator=o,r.parseStringTemplate=o(),r.getQuotedStringAndAdvanceForRegex=s},function(n,r,i){n.exports=i(2)},function(n,r,i){function o(s){for(var a in s)r.hasOwnProperty(a)||(r[a]=s[a])}Object.defineProperty(r,"__esModule",{value:!0}),o(i(0)),o(i(3))},function(n,r,i){function o(f){return function(h){return f.hasOwnProperty(h)?f[h]:h.split(".").reduce(function(p,g){return p.hasOwnProperty(g)?p[g]:""},f)}}function s(f,h,p,g){g===void 0&&(g=o(h));var v=g(f.name);return f.pipes.reduce(function(y,S){return p.hasOwnProperty(S.name)?p[S.name](y,S.parameters):y},v??"")}function a(f,h,p,g){return g===void 0&&(g=o(h)),f.literals.length===0?"":f.literals.slice(1).reduce(function(v,y,S){return""+v+s(f.variables[S],h,p,g)+y},f.literals[0])}function c(f,h,p){return a(u.parseStringTemplate(f),h,p)}Object.defineProperty(r,"__esModule",{value:!0});var u=i(0);r.evaluateParsedString=a,r.evaluateStringTemplate=c}])})})(wne);var c7=wne.exports;function OFe(e={},t){const{$:n,...r}=e;return{...te.mapValues(r,t),$:n}}function t5(e){switch(e==null?void 0:e.constructor){case Array:{const t=te.map(e,t5);return n=>te.map(t,r=>r(n))}case Object:{const t=te.mapValues(e,t5);return n=>te.mapValues(t,r=>r(n))}case String:return n5(e);default:return te.constant(e)}}function MFe(e={}){return OFe(e,t=>te.isFunction(t)?t:t5(t))}const u7=Ef(e=>{const t=Function("$",`return ${e};`);return n=>t(new Proxy(MFe(n),{get(r,i){var o;return(o=r[i])==null?void 0:o.call(r,{})}}))},{primitive:!0}),DFe=/^\{\{\s*/,LFe=/^\s*\}\}/,PB=/\b\B/,n5=Ef(e=>{const n=c7.parseStringTemplateGenerator({VARIABLE_START:DFe,VARIABLE_END:LFe,PIPE_START:PB,PIPE_PARAMETER_START:PB,QUOTED_STRING:PB})(e);return te.join(n.literals,"")?r=>c7.evaluateParsedString(n,{},{},i=>u7(i)(r)):u7(n.variables[0].name)},{primitive:!0});function NFe(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var _ne={exports:{}};(function(e,t){(function(n,r){typeof NFe=="function"?e.exports=r():n.pluralize=r()})($t,function(){var n=[],r=[],i={},o={},s={};function a(y){return typeof y=="string"?new RegExp("^"+y+"$","i"):y}function c(y,S){return y===S?S:y===y.toLowerCase()?S.toLowerCase():y===y.toUpperCase()?S.toUpperCase():y[0]===y[0].toUpperCase()?S.charAt(0).toUpperCase()+S.substr(1).toLowerCase():S.toLowerCase()}function u(y,S){return y.replace(/\$(\d{1,2})/g,function(w,b){return S[b]||""})}function f(y,S){return y.replace(S[0],function(w,b){var x=u(S[1],arguments);return c(w===""?y[b-1]:w,x)})}function h(y,S,w){if(!y.length||i.hasOwnProperty(y))return S;for(var b=w.length;b--;){var x=w[b];if(x[0].test(S))return f(S,x)}return S}function p(y,S,w){return function(b){var x=b.toLowerCase();return S.hasOwnProperty(x)?c(b,x):y.hasOwnProperty(x)?c(b,y[x]):h(x,b,w)}}function g(y,S,w,b){return function(x){var E=x.toLowerCase();return S.hasOwnProperty(E)?!0:y.hasOwnProperty(E)?!1:h(E,E,w)===E}}function v(y,S,w){var b=S===1?v.singular(y):v.plural(y);return(w?S+" ":"")+b}return v.plural=p(s,o,n),v.isPlural=g(s,o,n),v.singular=p(o,s,r),v.isSingular=g(o,s,r),v.addPluralRule=function(y,S){n.push([a(y),S])},v.addSingularRule=function(y,S){r.push([a(y),S])},v.addUncountableRule=function(y){if(typeof y=="string"){i[y.toLowerCase()]=!0;return}v.addPluralRule(y,"$0"),v.addSingularRule(y,"$0")},v.addIrregularRule=function(y,S){S=S.toLowerCase(),y=y.toLowerCase(),s[y]=S,o[S]=y},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(y){return v.addIrregularRule(y[0],y[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(y){return v.addPluralRule(y[0],y[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(y){return v.addSingularRule(y[0],y[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(v.addUncountableRule),v})})(_ne);var BFe=_ne.exports;const $Fe=ds(BFe),FFe=""+new URL("parseTrace.worker-c4cde251.js",import.meta.url).href;class zFe extends Worker{constructor(){super(FFe,{type:"module"})}}const jFe=Ov(zFe);function UFe(e){const t=Ol(),n=sm("specimen");return R.useCallback(()=>n(async()=>{var r;if(e!=null&&e.trace){t("Processing trace...");try{const i=await jFe(e);return t("Trace loaded",$Fe("step",((r=i==null?void 0:i.stepsPersistent)==null?void 0:r.length)??0,!0)),i}catch(i){t("Error parsing",`${xne.stringify(i)}`)}}}),[e])}function ug({label:e,icon:t,...n}){return C.jsx(bf,{title:te.startCase(e),children:C.jsx("span",{children:C.jsx(jp,{...n,children:t})})},e)}function HFe(){return R.useCallback(e=>({result:"",error:void 0,offset:0}),[])}function fU(e){const t=Ol(),{layer:n,setLayer:r}=qp(e),{playback:i,playbackTo:o,step:s=0}=(n==null?void 0:n.source)??{},a=te.min([o,s])??0,c=!!o,u=i==="playing",[f,h]=[0,(o??1)-1];return R.useMemo(()=>{function p(S){r(ka(n,w=>te.set(w,"source",{...w==null?void 0:w.source,...S})))}const g={start:f,end:h,step:a,canPlay:c&&!u&&a0},v=S=>te.clamp(a+S,f,h);return{playing:i==="playing",...g,...{play:()=>{t("Playback started"),p({playback:"playing",step:v(1)})},pause:(S=0)=>{t("Playback paused"),p({playback:"paused",step:v(S)})},stepTo:(S=0)=>p({step:S}),stop:()=>p({step:f,playback:"paused"}),stepForward:()=>p({step:v(1)}),stepBackward:()=>p({step:v(-1)}),tick:(S=1)=>p({playback:"playing",step:v(S)})}}},[h,i,u,c,f,a,r])}function WFe(e,t){let n=!1;return requestAnimationFrame(async()=>{const r=await e();n||t(r)}),()=>{n=!0}}function GFe({children:e,value:t}){YQ();const{step:n,tick:r,end:i,playing:o,pause:s}=fU(t==null?void 0:t.key),a=Ol(),[{playbackRate:c=1}]=Zu(),u=HFe(),f=R.useCallback((h,p)=>C.jsx(Uz,{primary:h,secondary:`Step ${n+p}`}),[n]);return R.useEffect(()=>{if(o)return n{for(const h of te.range(c)){const p=u(n+h);if(p.result||p.error)return{...p,offset:h}}return{result:"",offset:0,error:void 0}},({result:h,offset:p,error:g})=>{g?(a(`${te.trimEnd(g,".")}.`,`${p}`),s()):h?(a(`Breakpoint hit: ${h}.`,`${p}`),s(p)):r(c)}):s()},[f,o,i,n,s,r,a,u,c]),C.jsx(C.Fragment,{children:e})}function VFe({layer:e}){const{playing:t,canPause:n,canPlay:r,canStepBackward:i,canStepForward:o,canStop:s,pause:a,play:c,stepBackward:u,stepForward:f,stop:h}=fU(e==null?void 0:e.key);return YQ(),C.jsxs(C.Fragment,{children:[C.jsx(ug,{label:"step-backward",icon:C.jsx(Y1e,{}),onClick:u,disabled:!i}),C.jsx(ug,{...t?{label:"pause",icon:C.jsx(H1e,{}),onClick:()=>a(),disabled:!n}:{label:"play",icon:C.jsx(G1e,{}),onClick:()=>c(),disabled:!r,color:"primary"}}),C.jsx(ug,{label:"step-forward",icon:C.jsx(X1e,{}),onClick:f,disabled:!o}),C.jsx(ug,{label:"stop",icon:C.jsx(K1e,{}),onClick:h,disabled:!s})]})}const qFe=e=>e==null;function XFe(e){const t=[],n={},r={},i=te.chain(e==null?void 0:e.events).map((a,c)=>({step:c,id:a.id,pId:a.pId})).groupBy("id").value();te.forEach(e==null?void 0:e.events,({id:a,pId:c},u)=>{!qFe(c)&&n[a]!==c&&(t.push({id:a,pId:c,step:u,prev:te.last(t)}),n[a]=c),r[u]=te.last(t)});const o=(a,c=(u=>(u=e==null?void 0:e.events)==null?void 0:u.length)()??0)=>{let f=r[c];for(;f;){if(f.id===a)return f.pId;f=f.prev}};return{getParent:o,getPath:a=>{const c=[a];let u={...(e.events??[])[a],step:a};for(;u;){const f=o(u.id,u.step);if(f){const h=te.findLast(i[f],p=>p.step<=u.step);if(h)c.push(h.step),u=h;else break}else break}return c}}}const Kx={key:"trace",inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Trace"},editor:Zg(({value:e,produce:t})=>{var n,r,i,o;return C.jsxs(C.Fragment,{children:[C.jsx(q1,{label:"Trace",content:C.jsx(pOe,{onChange:s=>t(a=>te.set(a,"source.trace",{...s,key:qo()})),value:(n=e==null?void 0:e.source)==null?void 0:n.trace})}),C.jsx(q1,{label:"Onion Skinning",content:C.jsx(Gs,{disabled:!0,showArrow:!0,value:((r=e==null?void 0:e.source)==null?void 0:r.onion)??"off",items:["off","transparent","solid"].map(s=>({id:s,name:te.startCase(s)})),onChange:s=>t(a=>te.set(a,"source.onion",s))})}),C.jsx(Pte,{label:"Preview"}),C.jsx(ht,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Ote,{trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content})})]})}),service:Zg(({value:e,produce:t})=>{var i,o,s,a,c,u,f,h;const{palette:n}=Ln(),r=UFe({trace:(o=(i=e==null?void 0:e.source)==null?void 0:i.trace)==null?void 0:o.content,context:{color:Fj,themeAccent:n.primary.main,themeTextPrimary:n.text.primary,themeBackground:n.background.paper},view:"main"});return R.useEffect(()=>{t(p=>{var g,v,y,S;return te.set(p,"source.playbackTo",((S=(y=(v=(g=e==null?void 0:e.source)==null?void 0:g.trace)==null?void 0:v.content)==null?void 0:y.events)==null?void 0:S.length)??0)})},[(u=(c=(a=(s=e==null?void 0:e.source)==null?void 0:s.trace)==null?void 0:a.content)==null?void 0:c.events)==null?void 0:u.length]),Rte(async()=>{const p=await r();t(g=>te.set(g,"source.parsedTrace",p))},[r],[(h=(f=e==null?void 0:e.source)==null?void 0:f.trace)==null?void 0:h.key]),C.jsx(C.Fragment,{children:C.jsx(GFe,{value:e})})}),renderer:({layer:e})=>{var a,c;const t=(a=e==null?void 0:e.source)==null?void 0:a.parsedTrace,n=KQ(((c=e==null?void 0:e.source)==null?void 0:c.step)??0,1e3/60),r=YFe(e,n),i=R.useMemo(()=>te.map(t==null?void 0:t.stepsPersistent,u=>te.map(u,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsPersistent,e==null?void 0:e.key]),o=R.useMemo(()=>te.map(t==null?void 0:t.stepsTransient,u=>te.map(u,f=>te.merge(f,{meta:{sourceLayer:e==null?void 0:e.key}}))),[t==null?void 0:t.stepsTransient,e==null?void 0:e.key]),s=R.useMemo(()=>[o[n]??[]],[o,n]);return C.jsxs(C.Fragment,{children:[C.jsx(BBe,{step:n,nodes:i}),C.jsx(V1,{nodes:s}),r]})},steps:({layer:e,children:t})=>{var n,r,i;return C.jsx(C.Fragment,{children:t==null?void 0:t(((i=(r=(n=e==null?void 0:e.source)==null?void 0:n.trace)==null?void 0:r.content)==null?void 0:i.events)??[])})},getSelectionInfo:({layer:e,event:t,children:n})=>{const{layer:r,setLayer:i}=qp(e),o=R.useMemo(()=>{var c,u,f,h;const s=((f=(u=(c=r==null?void 0:r.source)==null?void 0:c.trace)==null?void 0:u.content)==null?void 0:f.events)??[],a=te.chain((h=t==null?void 0:t.info)==null?void 0:h.components).filter(p=>{var g;return((g=p.meta)==null?void 0:g.sourceLayer)===(r==null?void 0:r.key)}).map(p=>{var g;return(g=p.meta)==null?void 0:g.step}).filter(te.negate(te.isUndefined)).sort((p,g)=>p-g).value();if(a.length&&r){const p=te.last(a),g=s[p];if(g)return{[r.key]:{primary:va(r),items:{properties:{index:-1,primary:C.jsx(e5,{event:g,vertical:!0})},[`${g}`]:{primary:`Go to Step ${p}`,secondary:`${te.startCase(g.type)}`,action:()=>i(ka(r,v=>{te.set(v,"source.step",p)})),icon:C.jsx(T1e,{})}}}}}return{}},[r,t]);return C.jsx(C.Fragment,{children:n==null?void 0:n(o)})}};function YFe(e,t=0){var o,s;const{palette:n}=Ln(),{getPath:r}=R.useMemo(()=>{var a,c;return(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)!=null&&c.content?XFe(e.source.trace.content):{getParent:te.constant(void 0),getPath:te.constant([])}},[(s=(o=e==null?void 0:e.source)==null?void 0:o.trace)==null?void 0:s.content]);return R.useMemo(()=>{var a,c,u,f;if((f=(u=(c=(a=e==null?void 0:e.source)==null?void 0:a.trace)==null?void 0:c.content)==null?void 0:u.render)!=null&&f.path){const{pivot:h={},scale:p=1}=e.source.trace.content.render.path,{x:g,y:v}=h,y=g?n5(g):b=>b.event.x,S=v?n5(v):b=>b.event.y,w=te.map(r(t),b=>{var x,E,I,A;return(A=(I=(E=(x=e==null?void 0:e.source)==null?void 0:x.trace)==null?void 0:E.content)==null?void 0:I.events)==null?void 0:A[b]});if(w.length){const b=[{$:"rect",x:y({event:{x:0,y:0,...te.head(w)}})-2*p/2,y:S({event:{x:0,y:0,...te.head(w)}})-2*p/2,fill:F1("destination"),width:2*p,height:2*p},{$:"rect",x:y({event:{x:0,y:0,...te.last(w)}})-2*p/2,y:S({event:{x:0,y:0,...te.last(w)}})-2*p/2,fill:F1("source"),width:2*p,height:2*p},{$:"path",points:w.map(x=>({x:y({event:{x:0,y:0,...x}}),y:S({event:{x:0,y:0,...x}})})),fill:n.primary.main,alpha:1,lineWidth:1*p}];return C.jsx(V1,{nodes:[te.map(b,x=>({component:x,meta:{source:"path"}}))]})}}return C.jsx(C.Fragment,{})},[e,t,n,r])}const KFe=Kx.getSelectionInfo;async function QFe(e,t,n){for(const r of e){const i=await r.call("features/algorithms"),o=await r.call("features/formats");if(te.find(i,{id:t})&&te.find(o,{id:n}))return r}}const JFe={key:"query",editor:Zg(({value:e,produce:t})=>{var c,u;const{algorithm:n}=(e==null?void 0:e.source)??{},{layers:r,layer:i,key:o}=qp(void 0,f=>{var h;return((h=f.source)==null?void 0:h.type)==="map"}),[{algorithms:s}]=FC(),[a]=rv();return C.jsxs(C.Fragment,{children:[C.jsx(q1,{label:"Algorithm",content:C.jsx(Gs,{showArrow:!0,icon:C.jsx(M1e,{}),label:"Choose Algorithm",value:n,items:s.map(f=>{var h;return{...f,description:(h=te.find(a,{url:f.source}))==null?void 0:h.name}}),onChange:async f=>t(h=>te.set(h,"source.algorithm",f))})}),!(s!=null&&s.length)&&C.jsx(Ut,{variant:"body2",color:"warning.main",sx:{mb:1},children:"No connected solver has declared support for running algorithms"}),C.jsx(q1,{label:"Map",content:C.jsx(Gs,{showArrow:!0,icon:C.jsx(Tw,{}),label:"Choose Layer",value:o,items:r.map(f=>({id:f.key,name:va(f)})),onChange:async f=>t(h=>te.set(h,"source.mapLayerKey",f))})}),i&&C.jsxs(Ut,{variant:"body2",color:"text.secondary",sx:{mb:1,mt:1},children:["Define source and destination nodes by clicking on valid regions on"," ",va(i)]}),C.jsx(Pte,{label:"Preview"}),C.jsx(ht,{sx:{height:240,mx:-2,mb:-2},children:C.jsx(Ote,{trace:(u=(c=e==null?void 0:e.source)==null?void 0:c.trace)==null?void 0:u.content})})]})}),service:Zg(({value:e,produce:t})=>{const n=Ol(),{algorithm:r,mapLayerKey:i,start:o,end:s}=(e==null?void 0:e.source)??{},[{layers:a}]=om(),[c]=rv(),[{algorithms:u}]=FC(),f=R.useMemo(()=>{if(i&&r)return te.find(a,{key:i})},[i,r,a]);return c$e(async h=>{var p;if(f&&r){const{format:g,content:v}=((p=f==null?void 0:f.source)==null?void 0:p.map)??{};if(g&&v){const y=await QFe(c,r,g),S=te.find(u,{id:r});if(y){n(`Executing ${va(e)} using ${y.name}...`);const w=await y.call("solve/pathfinding",{format:g,instances:[{start:o??0,end:s??0}],mapURI:`map:${encodeURIComponent(v)}`,algorithm:r});h.aborted?n("Canceled."):t(b=>te.set(b,"source.trace",{name:`${S==null?void 0:S.name}`,content:w,key:qo()}))}}}},[f,c,r,o,s,t,n,e,u],[f,c,r,o,s]),C.jsx(C.Fragment,{children:Kx.service})}),inferName:e=>{var t,n;return((n=(t=e.source)==null?void 0:t.trace)==null?void 0:n.name)??"Untitled Query"},renderer:Kx.renderer,steps:Kx.steps,getSelectionInfo:({children:e,event:t,layer:n})=>{const{layer:r,setLayer:i,layers:o}=qp(n),s=R.useMemo(()=>{const c=te.filter(o,{source:{type:"map"}});return te.filter(te.map(c,u=>{var h,p,g,v;const{parsedMap:f}=(u==null?void 0:u.source)??{};if(f&&t){const y=(v=(g=eU((p=(h=u==null?void 0:u.source)==null?void 0:h.map)==null?void 0:p.format))==null?void 0:g.hydrate)==null?void 0:v.call(g,f);if(y){const S=(t==null?void 0:t.world)&&y.snap(t.world);if(S){const w=(t==null?void 0:t.world)&&y.nodeAt(S);return{point:S,node:w,key:u.key,name:va(u)}}}}}))},[o]),a=R.useMemo(()=>!!r&&!!s.length&&{[r.key]:{primary:va(r),items:{...te.reduce(s,(c,u)=>({...c,[`${n}-${u==null?void 0:u.key}-source`]:{primary:"Set as source",secondary:u==null?void 0:u.name,action:()=>i(ka(r,f=>{te.set(f,"source.start",u==null?void 0:u.node),te.set(f,"source.query",void 0),te.set(f,"source.mapLayerKey",u==null?void 0:u.key),te.set(f,"source.trace",void 0)})),icon:C.jsx(Q1e,{sx:{transform:"scale(0.5)"}})},[`${n}-${u==null?void 0:u.key}-destination`]:{primary:"Set as destination",secondary:u==null?void 0:u.name,action:()=>i(ka(r,f=>{te.set(f,"source.end",u==null?void 0:u.node),te.set(f,"source.query",void 0),te.set(f,"source.mapLayerKey",u==null?void 0:u.key),te.set(f,"source.trace",void 0)})),icon:C.jsx(W1e,{})}}),{})}}},[s,r,o,i]);return C.jsx(KFe,{event:t,layer:n,children:c=>e==null?void 0:e(te.merge(c,a))})}};function ZFe({layer:e}){var t,n;return C.jsx(C.Fragment,{children:e&&R.createElement((n=Xw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""])==null?void 0:n.renderer,{layer:e})})}function va(e){var t,n;return e!=null&&e.name?e==null?void 0:e.name:(t=e==null?void 0:e.source)!=null&&t.type?Xw[(n=e.source)==null?void 0:n.type].inferName(e):"Untitled Layer"}function Sne(e){var t;return Xw[((t=e==null?void 0:e.source)==null?void 0:t.type)??""]}const Xw={map:p$e,trace:Kx,query:JFe};function e3e(e,t,n=600){const[r,i]=R.useState(e);R.useEffect(()=>void i(e),[i,e]);const o=R.useMemo(()=>te.debounce(s=>t==null?void 0:t(s),n),[t,n]);return[r,s=>{i(s),o(s)}]}function t3e({value:e,onValueChange:t},n){var f,h,p;const[r,i]=e3e(e,t),o=g=>C.jsx(Ut,{variant:"overline",color:"text.secondary",sx:{pt:1},component:"p",children:g}),s=g=>C.jsx(Ut,{variant:"body1",children:g}),a=(g,v)=>C.jsxs(En,{alignItems:"center",children:[s(g),C.jsx(ai,{flex:1}),v]}),c=g=>g.map(v=>({id:v,name:te.startCase(v)})),u=r.name||va(e);return C.jsx(C.Fragment,{children:C.jsxs(nf,{alignItems:"center",direction:"row",gap:2,children:[C.jsxs(ht,{py:1,ml:-1,children:[C.jsx(Ut,{children:u}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:te.startCase((f=r.source)==null?void 0:f.type)})]}),C.jsx(ai,{flex:1}),C.jsx(nf,{alignItems:"center",direction:"row",children:C.jsx(Oj,{appBar:{children:C.jsx(Pj,{children:"Edit Layer"})},trigger:g=>C.jsx(jp,{size:"small",onClick:g,children:C.jsx(Hk,{})}),children:C.jsxs(ht,{p:2,children:[C.jsx(ht,{pb:2,children:C.jsx(Cw,{fullWidth:!0,variant:"filled",label:"Layer Name",value:r.name??"",onChange:g=>i==null?void 0:i(ka(r,v=>te.set(v,"name",g.target.value)))})}),o("Layer Options"),a("Transparency",C.jsx(Gs,{label:"Transparency",items:["25","50","75","100"].map(g=>({id:g,name:`${g}%`})),value:"100",showArrow:!0})),a("Display Mode",C.jsx(Gs,{label:"Display Mode",value:"normal",items:c(["normal","difference"]),showArrow:!0})),o("Source Options"),a("Type",C.jsx(Gs,{label:"Type",value:(h=r.source)==null?void 0:h.type,items:["map","trace","query"].map(g=>({id:g,name:te.startCase(g)})),onChange:g=>i==null?void 0:i(ka(r,v=>{te.set(v,"source",{type:g})})),showArrow:!0})),((p=r.source)==null?void 0:p.type)&&R.createElement(Xw[r.source.type].editor,{onChange:g=>i(g(r)),value:r})]})})})]})})}const n3e=R.forwardRef(t3e);function r3e(){const[{layers:e=[]},t]=om();return C.jsx(ht,{sx:{overflow:"auto hidden",width:"100%"},children:C.jsx(ht,{sx:{mb:2},children:C.jsx(uA,{sortable:!0,icon:null,value:e,useDelete:!0,useReorder:!0,editor:n=>C.jsx(n3e,{value:n}),create:()=>({source:{type:"trace",trace:{}}}),onChange:n=>t(()=>({layers:n})),addItemLabel:"Layer",placeholderText:C.jsx(ht,{pt:2,children:"Click the button below to add a layer."})})})})}function i3e(){const{controls:e,onChange:t,state:n}=wf();return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(ht,{p:2,pr:1,pt:6,children:C.jsx(r3e,{})})}),C.jsx(zn.Extras,{children:e})]})}function Ene(e){return C.jsx(N1e,{...e,sx:{fontSize:12,transform:"translateY(1.75px) translateX(-2px)",...e.sx}})}function o3e({children:e}){return C.jsx(Ut,{variant:"overline",sx:{my:-.75,display:"block"},children:e})}var YC={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */XC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,D=512,N=30,H="...",G=800,z=16,L=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,ie=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",D],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",$t="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Gt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),ps=/<%-([\s\S]+?)%>/g,ed=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,wc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,_c=/^\w*$/,kf=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,Af=RegExp(ms.source),xo=/^\s+/,Sc=/\s/,Di=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gs=/\{\n\/\* \[wrapped with (.+)\] \*/,If=/,? & /,vs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Na=/[()=,{}\[\]\/\s]/,td=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Ll=/^[-+]0x[0-9a-f]+$/i,Dl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,jv=/^0o[0-7]+$/i,Uv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,JA=/['\n\r\u2028\u2029\\]/g,Ec="\\ud800-\\udfff",ZA="\\u0300-\\u036f",eI="\\ufe20-\\ufe2f",tI="\\u20d0-\\u20ff",Hv=ZA+eI+tI,Wv="\\u2700-\\u27bf",Gv="a-z\\xdf-\\xf6\\xf8-\\xff",nI="\\xac\\xb1\\xd7\\xf7",rI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iI="\\u2000-\\u206f",oI=" \\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",Vv="A-Z\\xc0-\\xd6\\xd8-\\xde",qv="\\ufe0e\\ufe0f",Xv=nI+rI+iI+oI,Rf="['’]",sI="["+Ec+"]",Yv="["+Xv+"]",Cc="["+Hv+"]",Kv="\\d+",aI="["+Wv+"]",Qv="["+Gv+"]",Jv="[^"+Ec+Xv+Kv+Wv+Gv+Vv+"]",Pf="\\ud83c[\\udffb-\\udfff]",lI="(?:"+Cc+"|"+Pf+")",Zv="[^"+Ec+"]",Of="(?:\\ud83c[\\udde6-\\uddff]){2}",Mf="[\\ud800-\\udbff][\\udc00-\\udfff]",ys="["+Vv+"]",ey="\\u200d",ty="(?:"+Qv+"|"+Jv+")",cI="(?:"+ys+"|"+Jv+")",ny="(?:"+Rf+"(?:d|ll|m|re|s|t|ve))?",ry="(?:"+Rf+"(?:D|LL|M|RE|S|T|VE))?",iy=lI+"?",oy="["+qv+"]?",uI="(?:"+ey+"(?:"+[Zv,Of,Mf].join("|")+")"+oy+iy+")*",dI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",fI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",sy=oy+iy+uI,hI="(?:"+[aI,Of,Mf].join("|")+")"+sy,pI="(?:"+[Zv+Cc+"?",Cc,Of,Mf,sI].join("|")+")",mI=RegExp(Rf,"g"),gI=RegExp(Cc,"g"),Lf=RegExp(Pf+"(?="+Pf+")|"+pI+sy,"g"),vI=RegExp([ys+"?"+Qv+"+"+ny+"(?="+[Yv,ys,"$"].join("|")+")",cI+"+"+ry+"(?="+[Yv,ys+ty,"$"].join("|")+")",ys+"?"+ty+"+"+ny,ys+"+"+ry,fI,dI,Kv,hI].join("|"),"g"),yI=RegExp("["+ey+Ec+Hv+qv+"]"),bI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,xI=["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"],wI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[$t]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[$t]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var _I={À:"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"},SI={"&":"&","<":"<",">":">",'"':""","'":"'"},EI={"&":"&","<":"<",">":">",""":'"',"'":"'"},CI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},TI=parseFloat,kI=parseInt,ay=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,AI=typeof self=="object"&&self&&self.Object===Object&&self,pn=ay||AI||Function("return this")(),Df=t&&!t.nodeType&&t,_o=Df&&!0&&e&&!e.nodeType&&e,ly=_o&&_o.exports===Df,Nf=ly&&ay.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||Nf&&Nf.binding&&Nf.binding("util")}catch{}}(),cy=ur&&ur.isArrayBuffer,uy=ur&&ur.isDate,dy=ur&&ur.isMap,fy=ur&&ur.isRegExp,hy=ur&&ur.isSet,py=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function II(q,ee,Z,ge){for(var De=-1,ft=q==null?0:q.length;++De-1}function Bf(q,ee,Z){for(var ge=-1,De=q==null?0:q.length;++ge-1;);return Z}function _y(q,ee){for(var Z=q.length;Z--&&bs(ee,q[Z],0)>-1;);return Z}function $I(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var FI=jf(_I),zI=jf(SI);function jI(q){return"\\"+CI[q]}function UI(q,ee){return q==null?n:q[ee]}function xs(q){return yI.test(q)}function HI(q){return bI.test(q)}function WI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function Gf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,De){Z[++ee]=[De,ge]}),Z}function Sy(q,ee){return function(Z){return q(ee(Z))}}function $i(q,ee){for(var Z=-1,ge=q.length,De=0,ft=[];++Z-1}function PR(l,d){var m=this.__data__,_=Hc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=kR,ui.prototype.delete=AR,ui.prototype.get=IR,ui.prototype.has=RR,ui.prototype.set=PR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,ne=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!Ft(l))return l;var re=$e(l);if(re){if(B=DP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Wi(l))return o0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:E0(l),!U)return Y?EP(l,qR(B,l)):SP(l,Dy(B,l))}else{if(!Tt[oe])return T?l:{};B=NP(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),Z0(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):Q0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=ne?Y?vh:gh:Y?$n:sn,qe=re?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Ha(B,Je,pr(Ae,d,m,Je,l,M))}),B}function XR(l){var d=sn(l);return function(m){return Ny(m,l,d)}}function Ny(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function By(l,d,m){if(typeof l!="function")throw new fr(s);return Ka(function(){l.apply(n,m)},d)}function Wa(l,d,m,_){var T=-1,M=Tc,B=!0,U=l.length,Y=[],ne=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Bf,B=!1):d.length>=i&&(M=Ba,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:tb(_);m<_;)l[m++]=d;return l}function Fy(l,d){var m=[];return zi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=$P),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Bi(T,U):_||(T[T.length]=U)}return T}var Jf=d0(),zy=d0(!0);function Qr(l,d){return l&&Jf(l,d,sn)}function Zf(l,d){return l&&zy(l,d,sn)}function Gc(l,d){return Ni(d,function(m){return gi(l[m])})}function ko(l,d){d=Ui(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function jy(l,d,m){var _=d(l);return $e(l)?_:Bi(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?OP(l):GP(l)}function eh(l,d){return l>d}function QR(l,d){return l!=null&&bt.call(l,d)}function JR(l,d){return l!=null&&d in St(l)}function ZR(l,d,m){return l>=wn(d,m)&&l=120&&re.length>=120)?new Co(B&&re):n}re=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Nc.call(U,Y,1),Nc.call(l,Y,1);return l}function Qy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Nc.call(l,T,1):ch(l,T)}}return l}function sh(l,d){return l+Fc(Py()*(d-l+1))}function fP(l,d,m,_){for(var T=-1,M=nn($c((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function ah(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=Fc(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Eh(k0(l,d,Fn),l+"")}function hP(l){return Ly(Ps(l))}function pP(l,d){var m=Ps(l);return nu(m,To(d,0,m.length))}function qa(l,d,m,_){if(!Ft(l))return l;d=Ui(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var ne=d?null:AP(l);if(ne)return Ac(ne);B=!1,T=Ba,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var i0=oR||function(l){return pn.clearTimeout(l)};function o0(l,d){if(d)return l.slice();var m=l.length,_=Ty?Ty(m):new l.constructor(m);return l.copy(_),_}function hh(l){var d=new l.constructor(l.byteLength);return new Lc(d).set(new Lc(l)),d}function bP(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function xP(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function wP(l){return Ua?St(Ua.call(l)):{}}function s0(l,d){var m=d?hh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function a0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,ne=er(d);if(!U&&!ne&&!M&&l>d||M&&B&&Y&&!U&&!ne||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!ne&&l=U)return Y;var ne=m[_];return Y*(ne=="desc"?-1:1)}}return l.index-d.index}function l0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,ne=nn(M-B,0),re=Z(Y+ne),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function p0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&eu(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),re&&YU))return!1;var ne=M.get(l),re=M.get(d);if(ne&&re)return ne==d&&re==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Di,`{ + */YC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,p=2,g=4,v=1,y=2,S=1,w=2,b=4,x=8,E=16,I=32,A=64,k=128,O=256,L=512,N=30,H="...",G=800,z=16,D=1,F=2,j=3,V=1/0,W=9007199254740991,K=17976931348623157e292,X=0/0,Q=4294967295,ie=Q-1,ce=Q>>>1,ue=[["ary",k],["bind",S],["bindKey",w],["curry",x],["curryRight",E],["flip",L],["partial",I],["partialRight",A],["rearg",O]],se="[object Arguments]",J="[object Array]",ae="[object AsyncFunction]",le="[object Boolean]",he="[object Date]",pe="[object DOMException]",ve="[object Error]",ye="[object Function]",xe="[object GeneratorFunction]",me="[object Map]",be="[object Number]",Ze="[object Null]",Xe="[object Object]",ct="[object Promise]",Bt="[object Proxy]",Pe="[object RegExp]",ze="[object Set]",st="[object String]",gt="[object Symbol]",vt="[object Undefined]",_e="[object WeakMap]",je="[object WeakSet]",Ke="[object ArrayBuffer]",Fe="[object DataView]",Be="[object Float32Array]",Pt="[object Float64Array]",dt="[object Int8Array]",Ie="[object Int16Array]",at="[object Int32Array]",zt="[object Uint8Array]",Re="[object Uint8ClampedArray]",He="[object Uint16Array]",xt="[object Uint32Array]",Vt=/\b__p \+= '';/g,yn=/\b(__p \+=) '' \+/g,Yr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Hr=/&(?:amp|lt|gt|quot|#39);/g,Wr=/[&<>"']/g,Kr=RegExp(Hr.source),ci=RegExp(Wr.source),ps=/<%-([\s\S]+?)%>/g,td=/<%([\s\S]+?)%>/g,sa=/<%=([\s\S]+?)%>/g,_c=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Sc=/^\w*$/,If=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ms=/[\\^$.*+?()[\]{}|]/g,Rf=RegExp(ms.source),xo=/^\s+/,Ec=/\s/,Li=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gs=/\{\n\/\* \[wrapped with (.+)\] \*/,Pf=/,? & /,vs=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ba=/[()=,{}\[\]\/\s]/,nd=/\\(\\)?/g,Kn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,lr=/\w*$/,Nl=/^[-+]0x[0-9a-f]+$/i,Bl=/^0b[01]+$/i,wo=/^\[object .+?Constructor\]$/,Hv=/^0o[0-7]+$/i,Wv=/^(?:0|[1-9]\d*)$/,en=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Ar=/($^)/,eI=/['\n\r\u2028\u2029\\]/g,Cc="\\ud800-\\udfff",tI="\\u0300-\\u036f",nI="\\ufe20-\\ufe2f",rI="\\u20d0-\\u20ff",Gv=tI+nI+rI,Vv="\\u2700-\\u27bf",qv="a-z\\xdf-\\xf6\\xf8-\\xff",iI="\\xac\\xb1\\xd7\\xf7",oI="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",sI="\\u2000-\\u206f",aI=" \\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",Xv="A-Z\\xc0-\\xd6\\xd8-\\xde",Yv="\\ufe0e\\ufe0f",Kv=iI+oI+sI+aI,Of="['’]",lI="["+Cc+"]",Qv="["+Kv+"]",Tc="["+Gv+"]",Jv="\\d+",cI="["+Vv+"]",Zv="["+qv+"]",ey="[^"+Cc+Kv+Jv+Vv+qv+Xv+"]",Mf="\\ud83c[\\udffb-\\udfff]",uI="(?:"+Tc+"|"+Mf+")",ty="[^"+Cc+"]",Df="(?:\\ud83c[\\udde6-\\uddff]){2}",Lf="[\\ud800-\\udbff][\\udc00-\\udfff]",ys="["+Xv+"]",ny="\\u200d",ry="(?:"+Zv+"|"+ey+")",dI="(?:"+ys+"|"+ey+")",iy="(?:"+Of+"(?:d|ll|m|re|s|t|ve))?",oy="(?:"+Of+"(?:D|LL|M|RE|S|T|VE))?",sy=uI+"?",ay="["+Yv+"]?",fI="(?:"+ny+"(?:"+[ty,Df,Lf].join("|")+")"+ay+sy+")*",hI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",pI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",ly=ay+sy+fI,mI="(?:"+[cI,Df,Lf].join("|")+")"+ly,gI="(?:"+[ty+Tc+"?",Tc,Df,Lf,lI].join("|")+")",vI=RegExp(Of,"g"),yI=RegExp(Tc,"g"),Nf=RegExp(Mf+"(?="+Mf+")|"+gI+ly,"g"),bI=RegExp([ys+"?"+Zv+"+"+iy+"(?="+[Qv,ys,"$"].join("|")+")",dI+"+"+oy+"(?="+[Qv,ys+ry,"$"].join("|")+")",ys+"?"+ry+"+"+iy,ys+"+"+oy,pI,hI,Jv,mI].join("|"),"g"),xI=RegExp("["+ny+Cc+Gv+Yv+"]"),wI=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_I=["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"],SI=-1,Mt={};Mt[Be]=Mt[Pt]=Mt[dt]=Mt[Ie]=Mt[at]=Mt[zt]=Mt[Re]=Mt[He]=Mt[xt]=!0,Mt[se]=Mt[J]=Mt[Ke]=Mt[le]=Mt[Fe]=Mt[he]=Mt[ve]=Mt[ye]=Mt[me]=Mt[be]=Mt[Xe]=Mt[Pe]=Mt[ze]=Mt[st]=Mt[_e]=!1;var Tt={};Tt[se]=Tt[J]=Tt[Ke]=Tt[Fe]=Tt[le]=Tt[he]=Tt[Be]=Tt[Pt]=Tt[dt]=Tt[Ie]=Tt[at]=Tt[me]=Tt[be]=Tt[Xe]=Tt[Pe]=Tt[ze]=Tt[st]=Tt[gt]=Tt[zt]=Tt[Re]=Tt[He]=Tt[xt]=!0,Tt[ve]=Tt[ye]=Tt[_e]=!1;var EI={À:"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"},CI={"&":"&","<":"<",">":">",'"':""","'":"'"},TI={"&":"&","<":"<",">":">",""":'"',"'":"'"},kI={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},AI=parseFloat,II=parseInt,cy=typeof $t=="object"&&$t&&$t.Object===Object&&$t,RI=typeof self=="object"&&self&&self.Object===Object&&self,pn=cy||RI||Function("return this")(),Bf=t&&!t.nodeType&&t,_o=Bf&&!0&&e&&!e.nodeType&&e,uy=_o&&_o.exports===Bf,$f=uy&&cy.process,ur=function(){try{var q=_o&&_o.require&&_o.require("util").types;return q||$f&&$f.binding&&$f.binding("util")}catch{}}(),dy=ur&&ur.isArrayBuffer,fy=ur&&ur.isDate,hy=ur&&ur.isMap,py=ur&&ur.isRegExp,my=ur&&ur.isSet,gy=ur&&ur.isTypedArray;function Qn(q,ee,Z){switch(Z.length){case 0:return q.call(ee);case 1:return q.call(ee,Z[0]);case 2:return q.call(ee,Z[0],Z[1]);case 3:return q.call(ee,Z[0],Z[1],Z[2])}return q.apply(ee,Z)}function PI(q,ee,Z,ge){for(var Le=-1,ft=q==null?0:q.length;++Le-1}function Ff(q,ee,Z){for(var ge=-1,Le=q==null?0:q.length;++ge-1;);return Z}function Ey(q,ee){for(var Z=q.length;Z--&&bs(ee,q[Z],0)>-1;);return Z}function zI(q,ee){for(var Z=q.length,ge=0;Z--;)q[Z]===ee&&++ge;return ge}var jI=Hf(EI),UI=Hf(CI);function HI(q){return"\\"+kI[q]}function WI(q,ee){return q==null?n:q[ee]}function xs(q){return xI.test(q)}function GI(q){return wI.test(q)}function VI(q){for(var ee,Z=[];!(ee=q.next()).done;)Z.push(ee.value);return Z}function qf(q){var ee=-1,Z=Array(q.size);return q.forEach(function(ge,Le){Z[++ee]=[Le,ge]}),Z}function Cy(q,ee){return function(Z){return q(ee(Z))}}function $i(q,ee){for(var Z=-1,ge=q.length,Le=0,ft=[];++Z-1}function MR(l,d){var m=this.__data__,_=Wc(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}ui.prototype.clear=IR,ui.prototype.delete=RR,ui.prototype.get=PR,ui.prototype.has=OR,ui.prototype.set=MR;function di(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d=d?l:d)),l}function pr(l,d,m,_,T,M){var B,U=d&h,Y=d&p,ne=d&g;if(m&&(B=T?m(l,_,T,M):m(l)),B!==n)return B;if(!jt(l))return l;var re=$e(l);if(re){if(B=BP(l),!U)return Nn(l,B)}else{var oe=_n(l),fe=oe==ye||oe==xe;if(Wi(l))return a0(l,U);if(oe==Xe||oe==se||fe&&!T){if(B=Y||fe?{}:T0(l),!U)return Y?TP(l,YR(B,l)):CP(l,By(B,l))}else{if(!Tt[oe])return T?l:{};B=$P(l,oe,U)}}M||(M=new Rr);var we=M.get(l);if(we)return we;M.set(l,B),tb(l)?l.forEach(function(Ae){B.add(pr(Ae,d,m,Ae,l,M))}):Z0(l)&&l.forEach(function(Ae,Je){B.set(Je,pr(Ae,d,m,Je,l,M))});var ke=ne?Y?bh:yh:Y?$n:sn,qe=re?n:ke(l);return dr(qe||l,function(Ae,Je){qe&&(Je=Ae,Ae=l[Je]),Wa(B,Je,pr(Ae,d,m,Je,l,M))}),B}function KR(l){var d=sn(l);return function(m){return $y(m,l,d)}}function $y(l,d,m){var _=m.length;if(l==null)return!_;for(l=St(l);_--;){var T=m[_],M=d[T],B=l[T];if(B===n&&!(T in l)||!M(B))return!1}return!0}function Fy(l,d,m){if(typeof l!="function")throw new fr(s);return Qa(function(){l.apply(n,m)},d)}function Ga(l,d,m,_){var T=-1,M=kc,B=!0,U=l.length,Y=[],ne=d.length;if(!U)return Y;m&&(d=Nt(d,Jn(m))),_?(M=Ff,B=!1):d.length>=i&&(M=$a,B=!1,d=new Co(d));e:for(;++TT?0:T+m),_=_===n||_>T?T:Ge(_),_<0&&(_+=T),_=m>_?0:rb(_);m<_;)l[m++]=d;return l}function jy(l,d){var m=[];return zi(l,function(_,T,M){d(_,T,M)&&m.push(_)}),m}function mn(l,d,m,_,T){var M=-1,B=l.length;for(m||(m=zP),T||(T=[]);++M0&&m(U)?d>1?mn(U,d-1,m,_,T):Bi(T,U):_||(T[T.length]=U)}return T}var eh=h0(),Uy=h0(!0);function Qr(l,d){return l&&eh(l,d,sn)}function th(l,d){return l&&Uy(l,d,sn)}function Vc(l,d){return Ni(d,function(m){return gi(l[m])})}function ko(l,d){d=Ui(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Zr(d[m++])];return m&&m==_?l:n}function Hy(l,d,m){var _=d(l);return $e(l)?_:Bi(_,m(l))}function In(l){return l==null?l===n?vt:Ze:So&&So in St(l)?DP(l):qP(l)}function nh(l,d){return l>d}function ZR(l,d){return l!=null&&bt.call(l,d)}function eP(l,d){return l!=null&&d in St(l)}function tP(l,d,m){return l>=wn(d,m)&&l=120&&re.length>=120)?new Co(B&&re):n}re=l[0];var oe=-1,fe=U[0];e:for(;++oe-1;)U!==l&&Bc.call(U,Y,1),Bc.call(l,Y,1);return l}function Zy(l,d){for(var m=l?d.length:0,_=m-1;m--;){var T=d[m];if(m==_||T!==M){var M=T;mi(T)?Bc.call(l,T,1):dh(l,T)}}return l}function lh(l,d){return l+zc(My()*(d-l+1))}function pP(l,d,m,_){for(var T=-1,M=nn(Fc((d-l)/(m||1)),0),B=Z(M);M--;)B[_?M:++T]=l,l+=m;return B}function ch(l,d){var m="";if(!l||d<1||d>W)return m;do d%2&&(m+=l),d=zc(d/2),d&&(l+=l);while(d);return m}function Ye(l,d){return Th(I0(l,d,Fn),l+"")}function mP(l){return Ny(Ps(l))}function gP(l,d){var m=Ps(l);return ru(m,To(d,0,m.length))}function Xa(l,d,m,_){if(!jt(l))return l;d=Ui(d,l);for(var T=-1,M=d.length,B=M-1,U=l;U!=null&&++TT?0:T+d),m=m>T?T:m,m<0&&(m+=T),T=d>m?0:m-d>>>0,d>>>=0;for(var M=Z(T);++_>>1,B=l[M];B!==null&&!er(B)&&(m?B<=d:B=i){var ne=d?null:RP(l);if(ne)return Ic(ne);B=!1,T=$a,Y=new Co}else Y=d?[]:U;e:for(;++_=_?l:mr(l,d,m)}var s0=aR||function(l){return pn.clearTimeout(l)};function a0(l,d){if(d)return l.slice();var m=l.length,_=Ay?Ay(m):new l.constructor(m);return l.copy(_),_}function mh(l){var d=new l.constructor(l.byteLength);return new Lc(d).set(new Lc(l)),d}function wP(l,d){var m=d?mh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function _P(l){var d=new l.constructor(l.source,lr.exec(l));return d.lastIndex=l.lastIndex,d}function SP(l){return Ha?St(Ha.call(l)):{}}function l0(l,d){var m=d?mh(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function c0(l,d){if(l!==d){var m=l!==n,_=l===null,T=l===l,M=er(l),B=d!==n,U=d===null,Y=d===d,ne=er(d);if(!U&&!ne&&!M&&l>d||M&&B&&Y&&!U&&!ne||_&&B&&Y||!m&&Y||!T)return 1;if(!_&&!M&&!ne&&l=U)return Y;var ne=m[_];return Y*(ne=="desc"?-1:1)}}return l.index-d.index}function u0(l,d,m,_){for(var T=-1,M=l.length,B=m.length,U=-1,Y=d.length,ne=nn(M-B,0),re=Z(Y+ne),oe=!_;++U1?m[T-1]:n,B=T>2?m[2]:n;for(M=l.length>3&&typeof M=="function"?(T--,M):n,B&&Rn(m[0],m[1],B)&&(M=T<3?n:M,T=1),d=St(d);++_-1?T[M?d[B]:B]:n}}function g0(l){return pi(function(d){var m=d.length,_=m,T=hr.prototype.thru;for(l&&d.reverse();_--;){var M=d[_];if(typeof M!="function")throw new fr(s);if(T&&!B&&tu(M)=="wrapper")var B=new hr([],!0)}for(_=B?_:m;++_1&&it.reverse(),re&&YU))return!1;var ne=M.get(l),re=M.get(d);if(ne&&re)return ne==d&&re==l;var oe=-1,fe=!0,we=m&y?new Co:n;for(M.set(l,d),M.set(d,l);++oe1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Li,`{ /* [wrapped with `+d+`] */ -`)}function $P(l){return $e(l)||Ro(l)||!!(Iy&&l&&l[Iy])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Uv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function nu(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,F0(l,m)});function z0(l){var d=P(l);return d.__chain__=!0,d}function Y2(l,d){return d(l),l}function ru(l,d){return d(l)}var K2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Qf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:ru,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function Q2(){return z0(this)}function J2(){return new hr(this.value(),this.__chain__)}function Z2(){this.__values__===n&&(this.__values__=eb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function eO(){return this}function tO(l){for(var d,m=this;m instanceof Uc;){var _=M0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function nO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:ru,args:[Ch],thisArg:n}),new hr(d,this.__chain__)}return this.thru(Ch)}function rO(){return n0(this.__wrapped__,this.__actions__)}var iO=Yc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function oO(l,d,m){var _=$e(l)?my:YR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function sO(l,d){var m=$e(l)?Ni:Fy;return m(l,Te(d,3))}var aO=h0(L0),lO=h0(D0);function cO(l,d){return mn(iu(l,d),1)}function uO(l,d){return mn(iu(l,d),V)}function dO(l,d,m){return m=m===n?1:Ge(m),mn(iu(l,d),m)}function j0(l,d){var m=$e(l)?dr:zi;return m(l,Te(d,3))}function U0(l,d){var m=$e(l)?RI:$y;return m(l,Te(d,3))}var fO=Yc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function hO(l,d,m,_){l=Bn(l)?l:Ps(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),cu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&bs(l,d,m)>-1}var pO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return zi(l,function(B){M[++_]=T?Qn(d,B,m):Ga(B,d,m)}),M}),mO=Yc(function(l,d,m){fi(l,m,d)});function iu(l,d){var m=$e(l)?Nt:Gy;return m(l,Te(d,3))}function gO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Yy(l,d,m))}var vO=Yc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function yO(l,d,m){var _=$e(l)?$f:by,T=arguments.length<3;return _(l,Te(d,4),m,T,zi)}function bO(l,d,m){var _=$e(l)?PI:by,T=arguments.length<3;return _(l,Te(d,4),m,T,$y)}function xO(l,d){var m=$e(l)?Ni:Fy;return m(l,au(Te(d,3)))}function wO(l){var d=$e(l)?Ly:hP;return d(l)}function _O(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?WR:pP;return _(l,d)}function SO(l){var d=$e(l)?GR:gP;return d(l)}function EO(l){if(l==null)return 0;if(Bn(l))return cu(l)?ws(l):l.length;var d=_n(l);return d==me||d==ze?l.size:rh(l).length}function CO(l,d,m){var _=$e(l)?Ff:vP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var TO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Yy(l,mn(d,1),[])}),ou=sR||function(){return pn.Date.now()};function kO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function H0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function W0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var kh=Ye(function(l,d,m){var _=S;if(m.length){var T=$i(m,Is(kh));_|=I}return hi(l,_,d,m,T)}),G0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=$i(m,Is(G0));_|=I}return hi(d,_,l,m,T)});function V0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=V0.placeholder,_}function q0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=q0.placeholder,_}function X0(l,d,m){var _,T,M,B,U,Y,ne=0,re=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,Ft(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,ne=Kt,B=l.apply(yi,Or),B}function ke(Kt){return ne=Kt,U=Ka(Je,d),re?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-ne,hb=d-Or;return oe?wn(hb,M-yi):hb}function Ae(Kt){var Or=Kt-Y,yi=Kt-ne;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=ou();if(Ae(Kt))return it(Kt);U=Ka(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&i0(U),ne=0,_=Y=T=U=n}function Pn(){return U===n?B:it(ou())}function nr(){var Kt=ou(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return i0(U),U=Ka(Je,d),we(Y)}return U===n&&(U=Ka(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var AO=Ye(function(l,d){return By(l,1,d)}),IO=Ye(function(l,d,m){return By(l,vr(d)||0,m)});function RO(l){return hi(l,D)}function su(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(su.Cache||di),m}su.Cache=di;function au(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function PO(l){return W0(2,l)}var OO=yP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Uy(function(){return arguments}())?Uy:function(l){return Ut(l)&&bt.call(l,"callee")&&!Ay.call(l,"callee")},$e=Z.isArray,qO=cy?Jn(cy):tP;function Bn(l){return l!=null&&lu(l.length)&&!gi(l)}function Yt(l){return Ut(l)&&Bn(l)}function XO(l){return l===!0||l===!1||Ut(l)&&In(l)==le}var Wi=lR||Fh,YO=uy?Jn(uy):nP;function KO(l){return Ut(l)&&l.nodeType===1&&!Qa(l)}function QO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Rs(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ya(l))return!rh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function JO(l,d){return Va(l,d)}function ZO(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?Va(l,d,n,m):!!_}function Ih(l){if(!Ut(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Qa(l)}function eM(l){return typeof l=="number"&&Ry(l)}function gi(l){if(!Ft(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function K0(l){return typeof l=="number"&&l==Ge(l)}function lu(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function Ft(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ut(l){return l!=null&&typeof l=="object"}var Q0=dy?Jn(dy):iP;function tM(l,d){return l===d||nh(l,d,bh(d))}function nM(l,d,m){return m=typeof m=="function"?m:n,nh(l,d,bh(d),m)}function rM(l){return J0(l)&&l!=+l}function iM(l){if(jP(l))throw new De(o);return Hy(l)}function oM(l){return l===null}function sM(l){return l==null}function J0(l){return typeof l=="number"||Ut(l)&&In(l)==be}function Qa(l){if(!Ut(l)||In(l)!=Xe)return!1;var d=Dc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Pc.call(m)==nR}var Rh=fy?Jn(fy):oP;function aM(l){return K0(l)&&l>=-W&&l<=W}var Z0=hy?Jn(hy):sP;function cu(l){return typeof l=="string"||!$e(l)&&Ut(l)&&In(l)==st}function er(l){return typeof l=="symbol"||Ut(l)&&In(l)==gt}var Rs=py?Jn(py):aP;function lM(l){return l===n}function cM(l){return Ut(l)&&_n(l)==_e}function uM(l){return Ut(l)&&In(l)==je}var dM=Zc(ih),fM=Zc(function(l,d){return l<=d});function eb(l){if(!l)return[];if(Bn(l))return cu(l)?Ir(l):Nn(l);if($a&&l[$a])return WI(l[$a]());var d=_n(l),m=d==me?Gf:d==ze?Ac:Ps;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function tb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(Ft(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Ft(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=xy(l);var m=Dl.test(l);return m||jv.test(l)?kI(l.slice(2),m?2:8):Ll.test(l)?X:+l}function nb(l){return Jr(l,$n(l))}function hM(l){return l?To(Ge(l),-W,W):l===0?l:0}function pt(l){return l==null?"":Zn(l)}var pM=ks(function(l,d){if(Ya(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Ha(l,m,d[m])}),rb=ks(function(l,d){Jr(d,$n(d),l)}),uu=ks(function(l,d,m,_){Jr(d,$n(d),l,_)}),mM=ks(function(l,d,m,_){Jr(d,sn(d),l,_)}),gM=pi(Qf);function vM(l,d){var m=Ts(l);return d==null?m:Dy(m,d)}var yM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,vh(l),m),_&&(m=pr(m,h|p|g,IP));for(var T=d.length;T--;)ch(m,d[T]);return m});function NM(l,d){return ob(l,au(Te(d)))}var BM=pi(function(l,d){return l==null?{}:uP(l,d)});function ob(l,d){if(l==null)return{};var m=Nt(vh(l),function(_){return[_]});return d=Te(d),Ky(l,m,function(_,T){return d(_,T[0])})}function $M(l,d,m){d=Ui(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=Py();return wn(l+T*(d-l+TI("1e-"+((T+"").length-1))),d)}return sh(l,d)}var YM=As(function(l,d,m){return d=d.toLowerCase(),l+(m?lb(d):d)});function lb(l){return Mh(pt(l).toLowerCase())}function cb(l){return l=pt(l),l&&l.replace(en,FI).replace(gI,"")}function KM(l,d,m){l=pt(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function QM(l){return l=pt(l),l&&ci.test(l)?l.replace(Wr,zI):l}function JM(l){return l=pt(l),l&&Af.test(l)?l.replace(ms,"\\$&"):l}var ZM=As(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),eL=As(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),tL=f0("toLowerCase");function nL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Jc(Fc(T),m)+l+Jc($c(T),m)}function rL(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;return d&&_>>0,m?(l=pt(l),l&&(typeof d=="string"||d!=null&&!Rh(d))&&(d=Zn(d),!d&&xs(l))?Hi(Ir(l),0,m):l.split(d,m)):[]}var uL=As(function(l,d,m){return l+(m?" ":"")+Mh(d)});function dL(l,d,m){return l=pt(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function fL(l,d,m){var _=P.templateSettings;m&&Rn(l,d,m)&&(d=n),l=pt(l),d=uu({},d,_,b0);var T=uu({},d.imports,_.imports,b0),M=sn(T),B=Wf(T,M),U,Y,ne=0,re=d.interpolate||Ar,oe="__p += '",fe=Vf((d.escape||Ar).source+"|"+re.source+"|"+(re===sa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++wI+"]")+` -`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(ne,nr).replace(JA,jI),Je&&(U=!0,oe+=`' + +`)}function zP(l){return $e(l)||Ro(l)||!!(Py&&l&&l[Py])}function mi(l,d){var m=typeof l;return d=d??W,!!d&&(m=="number"||m!="symbol"&&Wv.test(l))&&l>-1&&l%1==0&&l0){if(++d>=G)return arguments[0]}else d=0;return l.apply(n,arguments)}}function ru(l,d){var m=-1,_=l.length,T=_-1;for(d=d===n?_:d;++m1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,j0(l,m)});function U0(l){var d=P(l);return d.__chain__=!0,d}function Q2(l,d){return d(l),l}function iu(l,d){return d(l)}var J2=pi(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,T=function(M){return Zf(M,l)};return d>1||this.__actions__.length||!(_ instanceof et)||!mi(m)?this.thru(T):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:iu,args:[T],thisArg:n}),new hr(_,this.__chain__).thru(function(M){return d&&!M.length&&M.push(n),M}))});function Z2(){return U0(this)}function eO(){return new hr(this.value(),this.__chain__)}function tO(){this.__values__===n&&(this.__values__=nb(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function nO(){return this}function rO(l){for(var d,m=this;m instanceof Hc;){var _=L0(m);_.__index__=0,_.__values__=n,d?T.__wrapped__=_:d=_;var T=_;m=m.__wrapped__}return T.__wrapped__=l,d}function iO(){var l=this.__wrapped__;if(l instanceof et){var d=l;return this.__actions__.length&&(d=new et(this)),d=d.reverse(),d.__actions__.push({func:iu,args:[kh],thisArg:n}),new hr(d,this.__chain__)}return this.thru(kh)}function oO(){return i0(this.__wrapped__,this.__actions__)}var sO=Kc(function(l,d,m){bt.call(l,m)?++l[m]:fi(l,m,1)});function aO(l,d,m){var _=$e(l)?vy:QR;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}function lO(l,d){var m=$e(l)?Ni:jy;return m(l,Te(d,3))}var cO=m0(N0),uO=m0(B0);function dO(l,d){return mn(ou(l,d),1)}function fO(l,d){return mn(ou(l,d),V)}function hO(l,d,m){return m=m===n?1:Ge(m),mn(ou(l,d),m)}function H0(l,d){var m=$e(l)?dr:zi;return m(l,Te(d,3))}function W0(l,d){var m=$e(l)?OI:zy;return m(l,Te(d,3))}var pO=Kc(function(l,d,m){bt.call(l,m)?l[m].push(d):fi(l,m,[d])});function mO(l,d,m,_){l=Bn(l)?l:Ps(l),m=m&&!_?Ge(m):0;var T=l.length;return m<0&&(m=nn(T+m,0)),uu(l)?m<=T&&l.indexOf(d,m)>-1:!!T&&bs(l,d,m)>-1}var gO=Ye(function(l,d,m){var _=-1,T=typeof d=="function",M=Bn(l)?Z(l.length):[];return zi(l,function(B){M[++_]=T?Qn(d,B,m):Va(B,d,m)}),M}),vO=Kc(function(l,d,m){fi(l,m,d)});function ou(l,d){var m=$e(l)?Nt:qy;return m(l,Te(d,3))}function yO(l,d,m,_){return l==null?[]:($e(d)||(d=d==null?[]:[d]),m=_?n:m,$e(m)||(m=m==null?[]:[m]),Qy(l,d,m))}var bO=Kc(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function xO(l,d,m){var _=$e(l)?zf:wy,T=arguments.length<3;return _(l,Te(d,4),m,T,zi)}function wO(l,d,m){var _=$e(l)?MI:wy,T=arguments.length<3;return _(l,Te(d,4),m,T,zy)}function _O(l,d){var m=$e(l)?Ni:jy;return m(l,lu(Te(d,3)))}function SO(l){var d=$e(l)?Ny:mP;return d(l)}function EO(l,d,m){(m?Rn(l,d,m):d===n)?d=1:d=Ge(d);var _=$e(l)?VR:gP;return _(l,d)}function CO(l){var d=$e(l)?qR:yP;return d(l)}function TO(l){if(l==null)return 0;if(Bn(l))return uu(l)?ws(l):l.length;var d=_n(l);return d==me||d==ze?l.size:oh(l).length}function kO(l,d,m){var _=$e(l)?jf:bP;return m&&Rn(l,d,m)&&(d=n),_(l,Te(d,3))}var AO=Ye(function(l,d){if(l==null)return[];var m=d.length;return m>1&&Rn(l,d[0],d[1])?d=[]:m>2&&Rn(d[0],d[1],d[2])&&(d=[d[0]]),Qy(l,mn(d,1),[])}),su=lR||function(){return pn.Date.now()};function IO(l,d){if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){if(--l<1)return d.apply(this,arguments)}}function G0(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,hi(l,k,n,n,n,n,d)}function V0(l,d){var m;if(typeof d!="function")throw new fr(s);return l=Ge(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var Ih=Ye(function(l,d,m){var _=S;if(m.length){var T=$i(m,Is(Ih));_|=I}return hi(l,_,d,m,T)}),q0=Ye(function(l,d,m){var _=S|w;if(m.length){var T=$i(m,Is(q0));_|=I}return hi(d,_,l,m,T)});function X0(l,d,m){d=m?n:d;var _=hi(l,x,n,n,n,n,n,d);return _.placeholder=X0.placeholder,_}function Y0(l,d,m){d=m?n:d;var _=hi(l,E,n,n,n,n,n,d);return _.placeholder=Y0.placeholder,_}function K0(l,d,m){var _,T,M,B,U,Y,ne=0,re=!1,oe=!1,fe=!0;if(typeof l!="function")throw new fr(s);d=vr(d)||0,jt(m)&&(re=!!m.leading,oe="maxWait"in m,M=oe?nn(vr(m.maxWait)||0,d):M,fe="trailing"in m?!!m.trailing:fe);function we(Kt){var Or=_,yi=T;return _=T=n,ne=Kt,B=l.apply(yi,Or),B}function ke(Kt){return ne=Kt,U=Qa(Je,d),re?we(Kt):B}function qe(Kt){var Or=Kt-Y,yi=Kt-ne,mb=d-Or;return oe?wn(mb,M-yi):mb}function Ae(Kt){var Or=Kt-Y,yi=Kt-ne;return Y===n||Or>=d||Or<0||oe&&yi>=M}function Je(){var Kt=su();if(Ae(Kt))return it(Kt);U=Qa(Je,qe(Kt))}function it(Kt){return U=n,fe&&_?we(Kt):(_=T=n,B)}function tr(){U!==n&&s0(U),ne=0,_=Y=T=U=n}function Pn(){return U===n?B:it(su())}function nr(){var Kt=su(),Or=Ae(Kt);if(_=arguments,T=this,Y=Kt,Or){if(U===n)return ke(Y);if(oe)return s0(U),U=Qa(Je,d),we(Y)}return U===n&&(U=Qa(Je,d)),B}return nr.cancel=tr,nr.flush=Pn,nr}var RO=Ye(function(l,d){return Fy(l,1,d)}),PO=Ye(function(l,d,m){return Fy(l,vr(d)||0,m)});function OO(l){return hi(l,L)}function au(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new fr(s);var m=function(){var _=arguments,T=d?d.apply(this,_):_[0],M=m.cache;if(M.has(T))return M.get(T);var B=l.apply(this,_);return m.cache=M.set(T,B)||M,B};return m.cache=new(au.Cache||di),m}au.Cache=di;function lu(l){if(typeof l!="function")throw new fr(s);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function MO(l){return V0(2,l)}var DO=xP(function(l,d){d=d.length==1&&$e(d[0])?Nt(d[0],Jn(Te())):Nt(mn(d,1),Jn(Te()));var m=d.length;return Ye(function(_){for(var T=-1,M=wn(_.length,m);++T=d}),Ro=Wy(function(){return arguments}())?Wy:function(l){return Ht(l)&&bt.call(l,"callee")&&!Ry.call(l,"callee")},$e=Z.isArray,YO=dy?Jn(dy):rP;function Bn(l){return l!=null&&cu(l.length)&&!gi(l)}function Yt(l){return Ht(l)&&Bn(l)}function KO(l){return l===!0||l===!1||Ht(l)&&In(l)==le}var Wi=uR||jh,QO=fy?Jn(fy):iP;function JO(l){return Ht(l)&&l.nodeType===1&&!Ja(l)}function ZO(l){if(l==null)return!0;if(Bn(l)&&($e(l)||typeof l=="string"||typeof l.splice=="function"||Wi(l)||Rs(l)||Ro(l)))return!l.length;var d=_n(l);if(d==me||d==ze)return!l.size;if(Ka(l))return!oh(l).length;for(var m in l)if(bt.call(l,m))return!1;return!0}function eM(l,d){return qa(l,d)}function tM(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?qa(l,d,n,m):!!_}function Ph(l){if(!Ht(l))return!1;var d=In(l);return d==ve||d==pe||typeof l.message=="string"&&typeof l.name=="string"&&!Ja(l)}function nM(l){return typeof l=="number"&&Oy(l)}function gi(l){if(!jt(l))return!1;var d=In(l);return d==ye||d==xe||d==ae||d==Bt}function J0(l){return typeof l=="number"&&l==Ge(l)}function cu(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=W}function jt(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function Ht(l){return l!=null&&typeof l=="object"}var Z0=hy?Jn(hy):sP;function rM(l,d){return l===d||ih(l,d,wh(d))}function iM(l,d,m){return m=typeof m=="function"?m:n,ih(l,d,wh(d),m)}function oM(l){return eb(l)&&l!=+l}function sM(l){if(HP(l))throw new Le(o);return Gy(l)}function aM(l){return l===null}function lM(l){return l==null}function eb(l){return typeof l=="number"||Ht(l)&&In(l)==be}function Ja(l){if(!Ht(l)||In(l)!=Xe)return!1;var d=Nc(l);if(d===null)return!0;var m=bt.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Oc.call(m)==iR}var Oh=py?Jn(py):aP;function cM(l){return J0(l)&&l>=-W&&l<=W}var tb=my?Jn(my):lP;function uu(l){return typeof l=="string"||!$e(l)&&Ht(l)&&In(l)==st}function er(l){return typeof l=="symbol"||Ht(l)&&In(l)==gt}var Rs=gy?Jn(gy):cP;function uM(l){return l===n}function dM(l){return Ht(l)&&_n(l)==_e}function fM(l){return Ht(l)&&In(l)==je}var hM=eu(sh),pM=eu(function(l,d){return l<=d});function nb(l){if(!l)return[];if(Bn(l))return uu(l)?Ir(l):Nn(l);if(Fa&&l[Fa])return VI(l[Fa]());var d=_n(l),m=d==me?qf:d==ze?Ic:Ps;return m(l)}function vi(l){if(!l)return l===0?l:0;if(l=vr(l),l===V||l===-V){var d=l<0?-1:1;return d*K}return l===l?l:0}function Ge(l){var d=vi(l),m=d%1;return d===d?m?d-m:d:0}function rb(l){return l?To(Ge(l),0,Q):0}function vr(l){if(typeof l=="number")return l;if(er(l))return X;if(jt(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=jt(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=_y(l);var m=Bl.test(l);return m||Hv.test(l)?II(l.slice(2),m?2:8):Nl.test(l)?X:+l}function ib(l){return Jr(l,$n(l))}function mM(l){return l?To(Ge(l),-W,W):l===0?l:0}function pt(l){return l==null?"":Zn(l)}var gM=ks(function(l,d){if(Ka(d)||Bn(d)){Jr(d,sn(d),l);return}for(var m in d)bt.call(d,m)&&Wa(l,m,d[m])}),ob=ks(function(l,d){Jr(d,$n(d),l)}),du=ks(function(l,d,m,_){Jr(d,$n(d),l,_)}),vM=ks(function(l,d,m,_){Jr(d,sn(d),l,_)}),yM=pi(Zf);function bM(l,d){var m=Ts(l);return d==null?m:By(m,d)}var xM=Ye(function(l,d){l=St(l);var m=-1,_=d.length,T=_>2?d[2]:n;for(T&&Rn(d[0],d[1],T)&&(_=1);++m<_;)for(var M=d[m],B=$n(M),U=-1,Y=B.length;++U1),M}),Jr(l,bh(l),m),_&&(m=pr(m,h|p|g,PP));for(var T=d.length;T--;)dh(m,d[T]);return m});function $M(l,d){return ab(l,lu(Te(d)))}var FM=pi(function(l,d){return l==null?{}:fP(l,d)});function ab(l,d){if(l==null)return{};var m=Nt(bh(l),function(_){return[_]});return d=Te(d),Jy(l,m,function(_,T){return d(_,T[0])})}function zM(l,d,m){d=Ui(d,l);var _=-1,T=d.length;for(T||(T=1,l=n);++_d){var _=l;l=d,d=_}if(m||l%1||d%1){var T=My();return wn(l+T*(d-l+AI("1e-"+((T+"").length-1))),d)}return lh(l,d)}var QM=As(function(l,d,m){return d=d.toLowerCase(),l+(m?ub(d):d)});function ub(l){return Lh(pt(l).toLowerCase())}function db(l){return l=pt(l),l&&l.replace(en,jI).replace(yI,"")}function JM(l,d,m){l=pt(l),d=Zn(d);var _=l.length;m=m===n?_:To(Ge(m),0,_);var T=m;return m-=d.length,m>=0&&l.slice(m,T)==d}function ZM(l){return l=pt(l),l&&ci.test(l)?l.replace(Wr,UI):l}function eD(l){return l=pt(l),l&&Rf.test(l)?l.replace(ms,"\\$&"):l}var tD=As(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),nD=As(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),rD=p0("toLowerCase");function iD(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;if(!d||_>=d)return l;var T=(d-_)/2;return Zc(zc(T),m)+l+Zc(Fc(T),m)}function oD(l,d,m){l=pt(l),d=Ge(d);var _=d?ws(l):0;return d&&_>>0,m?(l=pt(l),l&&(typeof d=="string"||d!=null&&!Oh(d))&&(d=Zn(d),!d&&xs(l))?Hi(Ir(l),0,m):l.split(d,m)):[]}var fD=As(function(l,d,m){return l+(m?" ":"")+Lh(d)});function hD(l,d,m){return l=pt(l),m=m==null?0:To(Ge(m),0,l.length),d=Zn(d),l.slice(m,m+d.length)==d}function pD(l,d,m){var _=P.templateSettings;m&&Rn(l,d,m)&&(d=n),l=pt(l),d=du({},d,_,w0);var T=du({},d.imports,_.imports,w0),M=sn(T),B=Vf(T,M),U,Y,ne=0,re=d.interpolate||Ar,oe="__p += '",fe=Xf((d.escape||Ar).source+"|"+re.source+"|"+(re===sa?Kn:Ar).source+"|"+(d.evaluate||Ar).source+"|$","g"),we="//# sourceURL="+(bt.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++SI+"]")+` +`;l.replace(fe,function(Ae,Je,it,tr,Pn,nr){return it||(it=tr),oe+=l.slice(ne,nr).replace(eI,HI),Je&&(U=!0,oe+=`' + __e(`+Je+`) + '`),Pn&&(Y=!0,oe+=`'; `+Pn+`; @@ -680,30 +680,30 @@ __p += '`),it&&(oe+=`' + `;var ke=bt.call(d,"variable")&&d.variable;if(!ke)oe=`with (obj) { `+oe+` } -`;else if(Na.test(ke))throw new De(a);oe=(Y?oe.replace(Gt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { +`;else if(Ba.test(ke))throw new Le(a);oe=(Y?oe.replace(Vt,""):oe).replace(yn,"$1").replace(Yr,"$1;"),oe="function("+(ke||"obj")+`) { `+(ke?"":`obj || (obj = {}); `)+"var __t, __p = ''"+(U?", __e = _.escape":"")+(Y?`, __j = Array.prototype.join; function print() { __p += __j.call(arguments, '') } `:`; `)+oe+`return __p -}`;var qe=db(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ih(qe))throw qe;return qe}function hL(l){return pt(l).toLowerCase()}function pL(l){return pt(l).toUpperCase()}function mL(l,d,m){if(l=pt(l),l&&(m||d===n))return xy(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=wy(_,T),B=_y(_,T)+1;return Hi(_,M,B).join("")}function gL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.slice(0,Ey(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=_y(_,Ir(d))+1;return Hi(_,0,T).join("")}function vL(l,d,m){if(l=pt(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=wy(_,Ir(d));return Hi(_,T).join("")}function yL(l,d){var m=N,_=H;if(Ft(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=pt(l);var M=l.length;if(xs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-ws(_);if(U<1)return _;var Y=B?Hi(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Rh(T)){if(l.slice(U).search(T)){var ne,re=Y;for(T.global||(T=Vf(T.source,pt(lr.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function bL(l){return l=pt(l),l&&Kr.test(l)?l.replace(Hr,XI):l}var xL=As(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Mh=f0("toUpperCase");function ub(l,d,m){return l=pt(l),d=m?n:d,d===n?HI(l)?QI(l):LI(l):l.match(d)||[]}var db=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ih(m)?m:new De(m)}}),wL=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,kh(l[m],l))}),l});function _L(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Hf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=P[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(P.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,ne=U[0],re=Y||$e(B),oe=function(Je){var it=T.apply(P,Bi([Je],U));return _&&fe?it[0]:it};re&&m&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&re){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:ru,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Ic[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=P[d];if(m){var _=m.name+"";bt.call(Cs,_)||(Cs[_]=[]),Cs[_].push({name:d,func:m})}}),Cs[Kc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=bR,et.prototype.reverse=xR,et.prototype.value=wR,P.prototype.at=K2,P.prototype.chain=Q2,P.prototype.commit=J2,P.prototype.next=Z2,P.prototype.plant=tO,P.prototype.reverse=nO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=rO,P.prototype.first=P.prototype.head,$a&&(P.prototype[$a]=eO),P},_s=JI();_o?((_o.exports=_s)._=_s,Df._=_s):pn._=_s}).call(Xt)})(XC,XC.exports);var Qt=XC.exports;let e3e=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var um=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(um||{}),Ene=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Ene||{}),e5=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(e5||{}),Dt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Dt||{}),Kl=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(Kl||{}),Ve=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(Ve||{}),Eg=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Eg||{}),Ot=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Ot||{}),t5=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(t5||{}),ku=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(ku||{}),Qd=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Qd||{}),fc=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(fc||{}),Ml=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(Ml||{}),Gl=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(Gl||{}),uU=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(uU||{}),xa=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(xa||{}),bi=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(bi||{}),ri=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(ri||{}),sc=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(sc||{});const t3e={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},nt={ADAPTER:t3e,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var RB=/iPhone/i,l7=/iPod/i,c7=/iPad/i,u7=/\biOS-universal(?:.+)Mac\b/i,PB=/\bAndroid(?:.+)Mobile\b/i,d7=/Android/i,_m=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,uS=/Silk/i,pu=/Windows Phone/i,f7=/\bWindows(?:.+)ARM\b/i,h7=/BlackBerry/i,p7=/BB10/i,m7=/Opera Mini/i,g7=/\b(CriOS|Chrome)(?:.+)Mobile/i,v7=/Mobile(?:.+)Firefox\b/i,y7=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function n3e(e){return function(t){return t.test(e)}}function b7(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=n3e(n),o={apple:{phone:i(RB)&&!i(pu),ipod:i(l7),tablet:!i(RB)&&(i(c7)||y7(t))&&!i(pu),universal:i(u7),device:(i(RB)||i(l7)||i(c7)||i(u7)||y7(t))&&!i(pu)},amazon:{phone:i(_m),tablet:!i(_m)&&i(uS),device:i(_m)||i(uS)},android:{phone:!i(pu)&&i(_m)||!i(pu)&&i(PB),tablet:!i(pu)&&!i(_m)&&!i(PB)&&(i(uS)||i(d7)),device:!i(pu)&&(i(_m)||i(uS)||i(PB)||i(d7))||i(/\bokhttp\b/i)},windows:{phone:i(pu),tablet:i(f7),device:i(pu)||i(f7)},other:{blackberry:i(h7),blackberry10:i(p7),opera:i(m7),firefox:i(v7),chrome:i(g7),device:i(h7)||i(p7)||i(m7)||i(v7)||i(g7)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const r3e=b7.default??b7,Au=r3e(globalThis.navigator);nt.RETINA_PREFIX=/@([0-9\.]+)x/;nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Cne={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function o(c,u,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||c,p),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],g]:c._events[v].push(g):(c._events[v]=g,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)t.call(f,h)&&u.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},a.prototype.listeners=function(u){var f=n?n+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);p80*n){a=u=e[0],c=f=e[1];for(var v=n;vu&&(u=h),p>f&&(f=p);g=Math.max(u-a,f-c),g=g!==0?32767/g:0}return Q1(o,s,n,a,c,g,0),s}function Tne(e,t,n,r,i){var o,s;if(i===i5(e,t,n,r)>0)for(o=t;o=t;o-=r)s=x7(o,e[o],e[o+1],s);return s&&kA(s,s.next)&&(Z1(s),s=s.next),s}function Xp(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(kA(n,n.next)||$r(n.prev,n,n.next)===0)){if(Z1(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function Q1(e,t,n,r,i,o,s){if(e){!s&&o&&p3e(e,r,i,o);for(var a=e,c,u;e.prev!==e.next;){if(c=e.prev,u=e.next,o?s3e(e,r,i,o):o3e(e)){t.push(c.i/n|0),t.push(e.i/n|0),t.push(u.i/n|0),Z1(e),e=u.next,a=u.next;continue}if(e=u,e===a){s?s===1?(e=a3e(Xp(e),t,n),Q1(e,t,n,r,i,o,2)):s===2&&l3e(e,t,n,r,i,o):Q1(Xp(e),t,n,r,i,o,1);break}}}}function o3e(e){var t=e.prev,n=e,r=e.next;if($r(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,a=t.y,c=n.y,u=r.y,f=io?i>s?i:s:o>s?o:s,g=a>c?a>u?a:u:c>u?c:u,v=r.next;v!==t;){if(v.x>=f&&v.x<=p&&v.y>=h&&v.y<=g&&ug(i,a,o,c,s,u,v.x,v.y)&&$r(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function s3e(e,t,n,r){var i=e.prev,o=e,s=e.next;if($r(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,u=s.x,f=i.y,h=o.y,p=s.y,g=ac?a>u?a:u:c>u?c:u,S=f>h?f>p?f:p:h>p?h:p,w=n5(g,v,t,n,r),b=n5(y,S,t,n,r),x=e.prevZ,E=e.nextZ;x&&x.z>=w&&E&&E.z<=b;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&ug(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0||(x=x.prevZ,E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&ug(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;x&&x.z>=w;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&ug(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;E&&E.z<=b;){if(E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&ug(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function a3e(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!kA(i,o)&&kne(i,r,r.next,o)&&J1(i,o)&&J1(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),Z1(r),Z1(r.next),r=e=o),r=r.next}while(r!==e);return Xp(r)}function l3e(e,t,n,r,i,o){var s=e;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&v3e(s,a)){var c=Ane(s,a);s=Xp(s,s.next),c=Xp(c,c.next),Q1(s,t,n,r,i,o,0),Q1(c,t,n,r,i,o,0);return}a=a.next}s=s.next}while(s!==e)}function c3e(e,t,n,r){var i=[],o,s,a,c,u;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var a=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>o&&(o=a,s=n.x=n.x&&n.x>=u&&r!==n.x&&ug(is.x||n.x===s.x&&h3e(s,n)))&&(s=n,h=p)),n=n.next;while(n!==c);return s}function h3e(e,t){return $r(e.prev,e,t.prev)<0&&$r(t.next,e,e.next)<0}function p3e(e,t,n,r){var i=e;do i.z===0&&(i.z=n5(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,m3e(i)}function m3e(e){var t,n,r,i,o,s,a,c,u=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,a=0,t=0;t0||c>0&&r;)a!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(s>1);return e}function n5(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function g3e(e){var t=e,n=e;do(t.x=(e-s)*(o-a)&&(e-s)*(r-a)>=(n-s)*(t-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function v3e(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!y3e(e,t)&&(J1(e,t)&&J1(t,e)&&b3e(e,t)&&($r(e.prev,e,t.prev)||$r(e,t.prev,t))||kA(e,t)&&$r(e.prev,e,e.next)>0&&$r(t.prev,t,t.next)>0)}function $r(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function kA(e,t){return e.x===t.x&&e.y===t.y}function kne(e,t,n,r){var i=fS($r(e,t,n)),o=fS($r(e,t,r)),s=fS($r(n,r,e)),a=fS($r(n,r,t));return!!(i!==o&&s!==a||i===0&&dS(e,n,t)||o===0&&dS(e,r,t)||s===0&&dS(n,e,r)||a===0&&dS(n,t,r))}function dS(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function fS(e){return e>0?1:e<0?-1:0}function y3e(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&kne(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function J1(e,t){return $r(e.prev,e,e.next)<0?$r(e,t,e.next)>=0&&$r(e,e.prev,t)>=0:$r(e,t,e.prev)<0||$r(e,e.next,t)<0}function b3e(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function Ane(e,t){var n=new r5(e.i,e.x,e.y),r=new r5(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function x7(e,t,n,r){var i=new r5(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Z1(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function r5(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}TA.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(i5(e,0,o,n));if(i)for(var a=0,c=t.length;a0&&(r+=e[i-1].length,n.holes.push(r))}return n};var x3e=dU.exports;const w3e=ds(x3e);var YC={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */YC.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof Xt=="object"&&Xt;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,a=2147483647,c=36,u=1,f=26,h=38,p=700,g=72,v=128,y="-",S=/^xn--/,w=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-u,I=Math.floor,A=String.fromCharCode,k;function O(X){throw new RangeError(x[X])}function D(X,Q){for(var ie=X.length,ce=[];ie--;)ce[ie]=Q(X[ie]);return ce}function N(X,Q){var ie=X.split("@"),ce="";ie.length>1&&(ce=ie[0]+"@",X=ie[1]),X=X.replace(b,".");var ue=X.split("."),se=D(ue,Q).join(".");return ce+se}function H(X){for(var Q=[],ie=0,ce=X.length,ue,se;ie=55296&&ue<=56319&&ie65535&&(Q-=65536,ie+=A(Q>>>10&1023|55296),Q=56320|Q&1023),ie+=A(Q),ie}).join("")}function z(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:c}function L(X,Q){return X+22+75*(X<26)-((Q!=0)<<5)}function F(X,Q,ie){var ce=0;for(X=ie?I(X/p):X>>1,X+=I(X/Q);X>E*f>>1;ce+=c)X=I(X/E);return I(ce+(E+1)*X/(X+h))}function j(X){var Q=[],ie=X.length,ce,ue=0,se=v,J=g,ae,le,he,pe,ve,ye,xe,me,be;for(ae=X.lastIndexOf(y),ae<0&&(ae=0),le=0;le=128&&O("not-basic"),Q.push(X.charCodeAt(le));for(he=ae>0?ae+1:0;he=ie&&O("invalid-input"),xe=z(X.charCodeAt(he++)),(xe>=c||xe>I((a-ue)/ve))&&O("overflow"),ue+=xe*ve,me=ye<=J?u:ye>=J+f?f:ye-J,!(xeI(a/be)&&O("overflow"),ve*=be;ce=Q.length+1,J=F(ue-pe,ce,pe==0),I(ue/ce)>a-se&&O("overflow"),se+=I(ue/ce),ue%=ce,Q.splice(ue++,0,se)}return G(Q)}function V(X){var Q,ie,ce,ue,se,J,ae,le,he,pe,ve,ye=[],xe,me,be,Ze;for(X=H(X),xe=X.length,Q=v,ie=0,se=g,J=0;J=Q&&veI((a-ie)/me)&&O("overflow"),ie+=(ae-Q)*me,Q=ae,J=0;Ja&&O("overflow"),ve==Q){for(le=ie,he=c;pe=he<=se?u:he>=se+f?f:he-se,!(le"u"||!ki?dn:ki(Uint8Array),Ap={"%AggregateError%":typeof AggregateError>"u"?dn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dn:ArrayBuffer,"%ArrayIteratorPrototype%":Sm&&ki?ki([][Symbol.iterator]()):dn,"%AsyncFromSyncIteratorPrototype%":dn,"%AsyncFunction%":Dm,"%AsyncGenerator%":Dm,"%AsyncGeneratorFunction%":Dm,"%AsyncIteratorPrototype%":Dm,"%Atomics%":typeof Atomics>"u"?dn:Atomics,"%BigInt%":typeof BigInt>"u"?dn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dn:FinalizationRegistry,"%Function%":Ine,"%GeneratorFunction%":Dm,"%Int8Array%":typeof Int8Array>"u"?dn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Sm&&ki?ki(ki([][Symbol.iterator]())):dn,"%JSON%":typeof JSON=="object"?JSON:dn,"%Map%":typeof Map>"u"?dn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Sm||!ki?dn:ki(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dn:Promise,"%Proxy%":typeof Proxy>"u"?dn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Sm||!ki?dn:ki(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Sm&&ki?ki(""[Symbol.iterator]()):dn,"%Symbol%":Sm?Symbol:dn,"%SyntaxError%":av,"%ThrowTypeError%":D3e,"%TypedArray%":B3e,"%TypeError%":Cg,"%Uint8Array%":typeof Uint8Array>"u"?dn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dn:WeakSet};if(ki)try{null.error}catch(e){var $3e=ki(ki(e));Ap["%Error.prototype%"]=$3e}var F3e=function e(t){var n;if(t==="%AsyncFunction%")n=MB("async function () {}");else if(t==="%GeneratorFunction%")n=MB("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=MB("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ki&&(n=ki(i.prototype))}return Ap[t]=n,n},S7={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Yw=fU,KC=L3e,z3e=Yw.call(Function.call,Array.prototype.concat),j3e=Yw.call(Function.apply,Array.prototype.splice),E7=Yw.call(Function.call,String.prototype.replace),QC=Yw.call(Function.call,String.prototype.slice),U3e=Yw.call(Function.call,RegExp.prototype.exec),H3e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,W3e=/\\(\\)?/g,G3e=function(t){var n=QC(t,0,1),r=QC(t,-1);if(n==="%"&&r!=="%")throw new av("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new av("invalid intrinsic syntax, expected opening `%`");var i=[];return E7(t,H3e,function(o,s,a,c){i[i.length]=a?E7(c,W3e,"$1"):s||o}),i},V3e=function(t,n){var r=t,i;if(KC(S7,r)&&(i=S7[r],r="%"+i[0]+"%"),KC(Ap,r)){var o=Ap[r];if(o===Dm&&(o=F3e(r)),typeof o>"u"&&!n)throw new Cg("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new av("intrinsic "+t+" does not exist!")},hU=function(t,n){if(typeof t!="string"||t.length===0)throw new Cg("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Cg('"allowMissing" argument must be a boolean');if(U3e(/^%?[^%]*%?$/,t)===null)throw new av("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=G3e(t),i=r.length>0?r[0]:"",o=V3e("%"+i+"%",n),s=o.name,a=o.value,c=!1,u=o.alias;u&&(i=u[0],j3e(r,z3e([0,1],u)));for(var f=1,h=!0;f=r.length){var y=kp(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=KC(a,p),a=a[p];h&&!c&&(Ap[s]=a)}}return a},Rne={exports:{}};(function(e){var t=fU,n=hU,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var g=s(p,"length");g.configurable&&a(p,"length",{value:1+c(0,h.length-(arguments.length-1))})}return p};var u=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u})(Rne);var q3e=Rne.exports,Pne=hU,One=q3e,X3e=One(Pne("String.prototype.indexOf")),Y3e=function(t,n){var r=Pne(t,!!n);return typeof r=="function"&&X3e(t,".prototype.")>-1?One(r):r};const K3e={},Q3e=Object.freeze(Object.defineProperty({__proto__:null,default:K3e},Symbol.toStringTag,{value:"Module"})),Mne=o4(Q3e);var pU=typeof Map=="function"&&Map.prototype,DB=Object.getOwnPropertyDescriptor&&pU?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,JC=pU&&DB&&typeof DB.get=="function"?DB.get:null,C7=pU&&Map.prototype.forEach,mU=typeof Set=="function"&&Set.prototype,NB=Object.getOwnPropertyDescriptor&&mU?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,ZC=mU&&NB&&typeof NB.get=="function"?NB.get:null,T7=mU&&Set.prototype.forEach,J3e=typeof WeakMap=="function"&&WeakMap.prototype,Yx=J3e?WeakMap.prototype.has:null,Z3e=typeof WeakSet=="function"&&WeakSet.prototype,Kx=Z3e?WeakSet.prototype.has:null,e5e=typeof WeakRef=="function"&&WeakRef.prototype,k7=e5e?WeakRef.prototype.deref:null,t5e=Boolean.prototype.valueOf,n5e=Object.prototype.toString,r5e=Function.prototype.toString,i5e=String.prototype.match,gU=String.prototype.slice,Pd=String.prototype.replace,o5e=String.prototype.toUpperCase,A7=String.prototype.toLowerCase,Lne=RegExp.prototype.test,I7=Array.prototype.concat,Vl=Array.prototype.join,s5e=Array.prototype.slice,R7=Math.floor,o5=typeof BigInt=="function"?BigInt.prototype.valueOf:null,BB=Object.getOwnPropertySymbols,s5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,lv=typeof Symbol=="function"&&typeof Symbol.iterator=="object",bo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===lv||"symbol")?Symbol.toStringTag:null,Dne=Object.prototype.propertyIsEnumerable,P7=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function O7(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Lne.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-R7(-e):R7(e);if(r!==e){var i=String(r),o=gU.call(t,i.length+1);return Pd.call(i,n,"$&_")+"."+Pd.call(Pd.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Pd.call(t,n,"$&_")}var a5=Mne,M7=a5.custom,L7=Bne(M7)?M7:null,a5e=function e(t,n,r,i){var o=n||{};if(yd(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(yd(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=yd(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(yd(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(yd(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Fne(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return a?O7(t,c):c}if(typeof t=="bigint"){var u=String(t)+"n";return a?O7(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return l5(t)?"[Array]":"[Object]";var h=C5e(o,r);if(typeof i>"u")i=[];else if($ne(i,t)>=0)return"[Circular]";function p(z,L,F){if(L&&(i=s5e.call(i),i.push(L)),F){var j={depth:o.depth};return yd(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(z,j,r+1,i)}return e(z,o,r+1,i)}if(typeof t=="function"&&!D7(t)){var g=g5e(t),v=hS(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Vl.call(v,", ")+" }":"")}if(Bne(t)){var y=lv?Pd.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):s5.call(t);return typeof t=="object"&&!lv?jb(y):y}if(_5e(t)){for(var S="<"+A7.call(String(t.nodeName)),w=t.attributes||[],b=0;b",S}if(l5(t)){if(t.length===0)return"[]";var x=hS(t,p);return h&&!E5e(x)?"["+c5(x,h)+"]":"[ "+Vl.call(x,", ")+" ]"}if(u5e(t)){var E=hS(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Dne.call(t,"cause")?"{ ["+String(t)+"] "+Vl.call(I7.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Vl.call(E,", ")+" }"}if(typeof t=="object"&&s){if(L7&&typeof t[L7]=="function"&&a5)return a5(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(v5e(t)){var I=[];return C7&&C7.call(t,function(z,L){I.push(p(L,t,!0)+" => "+p(z,t))}),N7("Map",JC.call(t),I,h)}if(x5e(t)){var A=[];return T7&&T7.call(t,function(z){A.push(p(z,t))}),N7("Set",ZC.call(t),A,h)}if(y5e(t))return $B("WeakMap");if(w5e(t))return $B("WeakSet");if(b5e(t))return $B("WeakRef");if(f5e(t))return jb(p(Number(t)));if(p5e(t))return jb(p(o5.call(t)));if(h5e(t))return jb(t5e.call(t));if(d5e(t))return jb(p(String(t)));if(!c5e(t)&&!D7(t)){var k=hS(t,p),O=P7?P7(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",N=!O&&bo&&Object(t)===t&&bo in t?gU.call(Sf(t),8,-1):D?"Object":"",H=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=H+(N||D?"["+Vl.call(I7.call([],N||[],D||[]),": ")+"] ":"");return k.length===0?G+"{}":h?G+"{"+c5(k,h)+"}":G+"{ "+Vl.call(k,", ")+" }"}return String(t)};function Nne(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function l5e(e){return Pd.call(String(e),/"/g,""")}function l5(e){return Sf(e)==="[object Array]"&&(!bo||!(typeof e=="object"&&bo in e))}function c5e(e){return Sf(e)==="[object Date]"&&(!bo||!(typeof e=="object"&&bo in e))}function D7(e){return Sf(e)==="[object RegExp]"&&(!bo||!(typeof e=="object"&&bo in e))}function u5e(e){return Sf(e)==="[object Error]"&&(!bo||!(typeof e=="object"&&bo in e))}function d5e(e){return Sf(e)==="[object String]"&&(!bo||!(typeof e=="object"&&bo in e))}function f5e(e){return Sf(e)==="[object Number]"&&(!bo||!(typeof e=="object"&&bo in e))}function h5e(e){return Sf(e)==="[object Boolean]"&&(!bo||!(typeof e=="object"&&bo in e))}function Bne(e){if(lv)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!s5)return!1;try{return s5.call(e),!0}catch{}return!1}function p5e(e){if(!e||typeof e!="object"||!o5)return!1;try{return o5.call(e),!0}catch{}return!1}var m5e=Object.prototype.hasOwnProperty||function(e){return e in this};function yd(e,t){return m5e.call(e,t)}function Sf(e){return n5e.call(e)}function g5e(e){if(e.name)return e.name;var t=i5e.call(r5e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function $ne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return Fne(gU.call(e,0,t.maxStringLength),t)+r}var i=Pd.call(Pd.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,S5e);return Nne(i,"single",t)}function S5e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+o5e.call(t.toString(16))}function jb(e){return"Object("+e+")"}function $B(e){return e+" { ? }"}function N7(e,t,n,r){var i=r?c5(n,r):Vl.call(n,", ");return e+" ("+t+") {"+i+"}"}function E5e(e){for(var t=0;t=0)return!1;return!0}function C5e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Vl.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Vl.call(Array(t+1),n)}}function c5(e,t){if(e.length===0)return"";var n=` -`+t.prev+t.base;return n+Vl.call(e,","+n)+` -`+t.prev}function hS(e,t){var n=l5(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(cp(r)){for(var i=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===z5e.RFC1738&&(u===40||u===41)){a+=s.charAt(c);continue}if(u<128){a=a+$l[u];continue}if(u<2048){a=a+($l[192|u>>6]+$l[128|u&63]);continue}if(u<55296||u>=57344){a=a+($l[224|u>>12]+$l[128|u>>6&63]+$l[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),a+=$l[240|u>>18]+$l[128|u>>12&63]+$l[128|u>>6&63]+$l[128|u&63]}return a},V5e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof c=="function"?w=c(n,w):w instanceof Date?w=h(w):r==="comma"&&wu(w)&&(w=kE.maybeMap(w,function(j){return j instanceof Date?h(j):j})),w===null){if(o)return a&&!v?a(n,co.encoder,y,"key",p):n;w=""}if(e4e(w)||kE.isBuffer(w)){if(a){var A=v?n:a(n,co.encoder,y,"key",p);return[g(A)+"="+g(a(w,co.encoder,y,"value",p))]}return[g(n)+"="+g(String(w))]}var k=[];if(typeof w>"u")return k;var O;if(r==="comma"&&wu(w))v&&a&&(w=kE.maybeMap(w,a)),O=[{value:w.length>0?w.join(",")||null:void 0}];else if(wu(c))O=c;else{var D=Object.keys(w);O=u?D.sort(u):D}for(var N=i&&wu(w)&&w.length===1?n+"[]":n,H=0;H"u"?co.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:co.charsetSentinel,delimiter:typeof t.delimiter>"u"?co.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:co.encode,encoder:typeof t.encoder=="function"?t.encoder:co.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:co.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:co.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:co.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:co.strictNullHandling}},r4e=function(e,t){var n=e,r=n4e(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):wu(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in B7?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var c=B7[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=Une(),h=0;h0?v+g:""},cv=jne,u5=Object.prototype.hasOwnProperty,i4e=Array.isArray,Ci={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:cv.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},o4e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Wne=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},s4e="utf8=%26%2310003%3B",a4e="utf8=%E2%9C%93",l4e=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,c,u=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(v=i4e(v)?[v]:v),u5.call(r,g)?r[g]=cv.combine(r[g],v):r[g]=v}return r},c4e=function(e,t,n,r){for(var i=r?t:Wne(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[],s[u]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},u4e=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,f=[];if(u){if(!r.plainObjects&&u5.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var h=0;r.depth>0&&(c=a.exec(o))!==null&&h"u"?Ci.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ci.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ci.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ci.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ci.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ci.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ci.comma,decoder:typeof t.decoder=="function"?t.decoder:Ci.decoder,delimiter:typeof t.delimiter=="string"||cv.isRegExp(t.delimiter)?t.delimiter:Ci.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ci.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ci.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ci.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ci.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ci.strictNullHandling}},f4e=function(e,t){var n=d4e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?l4e(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s",'"',"`"," ","\r",` -`," "],_4e=["{","}","|","\\","^","`"].concat(w4e),d5=["'"].concat(_4e),F7=["%","/","?",";","#"].concat(d5),z7=["/","?","#"],S4e=255,j7=/^[+a-z0-9A-Z_-]{0,63}$/,E4e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,C4e={javascript:!0,"javascript:":!0},f5={javascript:!0,"javascript:":!0},Tg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},h5=g4e;function AA(e,t,n){if(e&&typeof e=="object"&&e instanceof Sl)return e;var r=new Sl;return r.parse(e,t,n),r}Sl.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?I+="x":I+=E[A];if(!I.match(j7)){var O=b.slice(0,g),D=b.slice(g+1),N=E.match(E4e);N&&(O.push(N[1]),D.unshift(N[2])),D.length&&(a="/"+D.join(".")+a),this.hostname=O.join(".");break}}}this.hostname.length>S4e?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=v4e.toASCII(this.hostname));var H=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+H,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!C4e[f])for(var g=0,x=d5.length;g0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=b.slice(-1)[0],k=(n.host||e.host||b.length>1)&&(A==="."||A==="..")||A==="",O=0,D=b.length;D>=0;D--)A=b[D],A==="."?b.splice(D,1):A===".."?(b.splice(D,1),O++):O&&(b.splice(D,1),O--);if(!S&&!w)for(;O--;O)b.unshift("..");S&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),k&&b.join("/").substr(-1)!=="/"&&b.push("");var N=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(E){n.hostname=N?"":b.length?b.shift():"",n.host=n.hostname;var I=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return S=S||n.host&&b.length,S&&!N&&b.unshift(""),b.length>0?n.pathname=b.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};Sl.prototype.parseHost=function(){var e=this.host,t=b4e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var A4e=AA,I4e=k4e,R4e=T4e;const P4e={parse:A4e,format:R4e,resolve:I4e};function Za(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function Ub(e){return e.split("?")[0].split("#")[0]}function O4e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function M4e(e,t,n){return e.replace(new RegExp(O4e(t),"g"),n)}function L4e(e,t){let n="",r=0,i=-1,o=0,s=-1;for(let a=0;a<=e.length;++a){if(a2){const c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,a)}`:n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}const vo={toPosix(e){return M4e(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){Za(e),e=this.toPosix(e);let t="";const n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(n||r||i){const o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute(e,t,n){if(this.isDataUrl(e))return e;const r=Ub(this.toPosix(t??nt.ADAPTER.getBaseUrl())),i=Ub(this.toPosix(n??this.rootname(r)));return Za(e),e=this.toPosix(e),e.startsWith("/")?vo.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(e=this.toPosix(e),Za(e),e.length===0)return".";let t="";const n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return e=L4e(e,!1),e.length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return Za(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let n=0;n0)if(t===void 0)t=r;else{const i=e[n-1]??"";this.extname(i)?t+=`/../${r}`:t+=`/${r}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(Za(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const n=t===47;let r=-1,i=!0;const o=this.getProtocol(e),s=e;e=e.slice(o.length);for(let a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!i){r=a;break}}else i=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname(e){Za(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){Za(e),t&&Za(t),e=Ub(this.toPosix(e));let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===47){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){Za(e),e=Ub(this.toPosix(e));let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===47){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){Za(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=Ub(this.toPosix(e));let n=e.charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),r||this.hasProtocol(e)?i=1:i=0;let o=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;for(;u>=i;--u){if(n=e.charCodeAt(u),n===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),n===46?o===-1?o=u:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||a===-1||f===0||f===1&&o===a-1&&o===s+1?a!==-1&&(s===0&&r?t.base=t.name=e.slice(1,a):t.base=t.name=e.slice(s,a)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,a)):(t.name=e.slice(s,o),t.base=e.slice(s,a)),t.ext=e.slice(o,a)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"},U7={};function fn(e,t,n=3){if(U7[t])return;let r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} +}`;var qe=hb(function(){return ft(M,we+"return "+oe).apply(n,B)});if(qe.source=oe,Ph(qe))throw qe;return qe}function mD(l){return pt(l).toLowerCase()}function gD(l){return pt(l).toUpperCase()}function vD(l,d,m){if(l=pt(l),l&&(m||d===n))return _y(l);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ir(d),M=Sy(_,T),B=Ey(_,T)+1;return Hi(_,M,B).join("")}function yD(l,d,m){if(l=pt(l),l&&(m||d===n))return l.slice(0,Ty(l)+1);if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Ey(_,Ir(d))+1;return Hi(_,0,T).join("")}function bD(l,d,m){if(l=pt(l),l&&(m||d===n))return l.replace(xo,"");if(!l||!(d=Zn(d)))return l;var _=Ir(l),T=Sy(_,Ir(d));return Hi(_,T).join("")}function xD(l,d){var m=N,_=H;if(jt(d)){var T="separator"in d?d.separator:T;m="length"in d?Ge(d.length):m,_="omission"in d?Zn(d.omission):_}l=pt(l);var M=l.length;if(xs(l)){var B=Ir(l);M=B.length}if(m>=M)return l;var U=m-ws(_);if(U<1)return _;var Y=B?Hi(B,0,U).join(""):l.slice(0,U);if(T===n)return Y+_;if(B&&(U+=Y.length-U),Oh(T)){if(l.slice(U).search(T)){var ne,re=Y;for(T.global||(T=Xf(T.source,pt(lr.exec(T))+"g")),T.lastIndex=0;ne=T.exec(re);)var oe=ne.index;Y=Y.slice(0,oe===n?U:oe)}}else if(l.indexOf(Zn(T),U)!=U){var fe=Y.lastIndexOf(T);fe>-1&&(Y=Y.slice(0,fe))}return Y+_}function wD(l){return l=pt(l),l&&Kr.test(l)?l.replace(Hr,KI):l}var _D=As(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),Lh=p0("toUpperCase");function fb(l,d,m){return l=pt(l),d=m?n:d,d===n?GI(l)?ZI(l):NI(l):l.match(d)||[]}var hb=Ye(function(l,d){try{return Qn(l,n,d)}catch(m){return Ph(m)?m:new Le(m)}}),SD=pi(function(l,d){return dr(d,function(m){m=Zr(m),fi(l,m,Ih(l[m],l))}),l});function ED(l){var d=l==null?0:l.length,m=Te();return l=d?Nt(l,function(_){if(typeof _[1]!="function")throw new fr(s);return[m(_[0]),_[1]]}):[],Ye(function(_){for(var T=-1;++TW)return[];var m=Q,_=wn(l,Q);d=Te(d),l-=Q;for(var T=Gf(_,d);++m0||d<0)?new et(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=Ge(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},et.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},et.prototype.toArray=function(){return this.take(Q)},Qr(et.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),T=P[_?"take"+(d=="last"?"Right":""):d],M=_||/^find/.test(d);T&&(P.prototype[d]=function(){var B=this.__wrapped__,U=_?[1]:arguments,Y=B instanceof et,ne=U[0],re=Y||$e(B),oe=function(Je){var it=T.apply(P,Bi([Je],U));return _&&fe?it[0]:it};re&&m&&typeof ne=="function"&&ne.length!=1&&(Y=re=!1);var fe=this.__chain__,we=!!this.__actions__.length,ke=M&&!fe,qe=Y&&!we;if(!M&&re){B=qe?B:new et(this);var Ae=l.apply(B,U);return Ae.__actions__.push({func:iu,args:[oe],thisArg:n}),new hr(Ae,fe)}return ke&&qe?l.apply(this,U):(Ae=this.thru(oe),ke?_?Ae.value()[0]:Ae.value():Ae)})}),dr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Rc[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);P.prototype[l]=function(){var T=arguments;if(_&&!this.__chain__){var M=this.value();return d.apply($e(M)?M:[],T)}return this[m](function(B){return d.apply($e(B)?B:[],T)})}}),Qr(et.prototype,function(l,d){var m=P[d];if(m){var _=m.name+"";bt.call(Cs,_)||(Cs[_]=[]),Cs[_].push({name:d,func:m})}}),Cs[Qc(n,w).name]=[{name:"wrapper",func:n}],et.prototype.clone=wR,et.prototype.reverse=_R,et.prototype.value=SR,P.prototype.at=J2,P.prototype.chain=Z2,P.prototype.commit=eO,P.prototype.next=tO,P.prototype.plant=rO,P.prototype.reverse=iO,P.prototype.toJSON=P.prototype.valueOf=P.prototype.value=oO,P.prototype.first=P.prototype.head,Fa&&(P.prototype[Fa]=nO),P},_s=eR();_o?((_o.exports=_s)._=_s,Bf._=_s):pn._=_s}).call($t)})(YC,YC.exports);var Qt=YC.exports;let s3e=(e=21)=>crypto.getRandomValues(new Uint8Array(e)).reduce((t,n)=>(n&=63,n<36?t+=n.toString(36):n<62?t+=(n-26).toString(36).toUpperCase():n>62?t+="-":t+="_",t),"");var dm=(e=>(e[e.WEBGL_LEGACY=0]="WEBGL_LEGACY",e[e.WEBGL=1]="WEBGL",e[e.WEBGL2=2]="WEBGL2",e))(dm||{}),Cne=(e=>(e[e.UNKNOWN=0]="UNKNOWN",e[e.WEBGL=1]="WEBGL",e[e.CANVAS=2]="CANVAS",e))(Cne||{}),r5=(e=>(e[e.COLOR=16384]="COLOR",e[e.DEPTH=256]="DEPTH",e[e.STENCIL=1024]="STENCIL",e))(r5||{}),Lt=(e=>(e[e.NORMAL=0]="NORMAL",e[e.ADD=1]="ADD",e[e.MULTIPLY=2]="MULTIPLY",e[e.SCREEN=3]="SCREEN",e[e.OVERLAY=4]="OVERLAY",e[e.DARKEN=5]="DARKEN",e[e.LIGHTEN=6]="LIGHTEN",e[e.COLOR_DODGE=7]="COLOR_DODGE",e[e.COLOR_BURN=8]="COLOR_BURN",e[e.HARD_LIGHT=9]="HARD_LIGHT",e[e.SOFT_LIGHT=10]="SOFT_LIGHT",e[e.DIFFERENCE=11]="DIFFERENCE",e[e.EXCLUSION=12]="EXCLUSION",e[e.HUE=13]="HUE",e[e.SATURATION=14]="SATURATION",e[e.COLOR=15]="COLOR",e[e.LUMINOSITY=16]="LUMINOSITY",e[e.NORMAL_NPM=17]="NORMAL_NPM",e[e.ADD_NPM=18]="ADD_NPM",e[e.SCREEN_NPM=19]="SCREEN_NPM",e[e.NONE=20]="NONE",e[e.SRC_OVER=0]="SRC_OVER",e[e.SRC_IN=21]="SRC_IN",e[e.SRC_OUT=22]="SRC_OUT",e[e.SRC_ATOP=23]="SRC_ATOP",e[e.DST_OVER=24]="DST_OVER",e[e.DST_IN=25]="DST_IN",e[e.DST_OUT=26]="DST_OUT",e[e.DST_ATOP=27]="DST_ATOP",e[e.ERASE=26]="ERASE",e[e.SUBTRACT=28]="SUBTRACT",e[e.XOR=29]="XOR",e))(Lt||{}),Jl=(e=>(e[e.POINTS=0]="POINTS",e[e.LINES=1]="LINES",e[e.LINE_LOOP=2]="LINE_LOOP",e[e.LINE_STRIP=3]="LINE_STRIP",e[e.TRIANGLES=4]="TRIANGLES",e[e.TRIANGLE_STRIP=5]="TRIANGLE_STRIP",e[e.TRIANGLE_FAN=6]="TRIANGLE_FAN",e))(Jl||{}),Ve=(e=>(e[e.RGBA=6408]="RGBA",e[e.RGB=6407]="RGB",e[e.RG=33319]="RG",e[e.RED=6403]="RED",e[e.RGBA_INTEGER=36249]="RGBA_INTEGER",e[e.RGB_INTEGER=36248]="RGB_INTEGER",e[e.RG_INTEGER=33320]="RG_INTEGER",e[e.RED_INTEGER=36244]="RED_INTEGER",e[e.ALPHA=6406]="ALPHA",e[e.LUMINANCE=6409]="LUMINANCE",e[e.LUMINANCE_ALPHA=6410]="LUMINANCE_ALPHA",e[e.DEPTH_COMPONENT=6402]="DEPTH_COMPONENT",e[e.DEPTH_STENCIL=34041]="DEPTH_STENCIL",e))(Ve||{}),Cg=(e=>(e[e.TEXTURE_2D=3553]="TEXTURE_2D",e[e.TEXTURE_CUBE_MAP=34067]="TEXTURE_CUBE_MAP",e[e.TEXTURE_2D_ARRAY=35866]="TEXTURE_2D_ARRAY",e[e.TEXTURE_CUBE_MAP_POSITIVE_X=34069]="TEXTURE_CUBE_MAP_POSITIVE_X",e[e.TEXTURE_CUBE_MAP_NEGATIVE_X=34070]="TEXTURE_CUBE_MAP_NEGATIVE_X",e[e.TEXTURE_CUBE_MAP_POSITIVE_Y=34071]="TEXTURE_CUBE_MAP_POSITIVE_Y",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Y=34072]="TEXTURE_CUBE_MAP_NEGATIVE_Y",e[e.TEXTURE_CUBE_MAP_POSITIVE_Z=34073]="TEXTURE_CUBE_MAP_POSITIVE_Z",e[e.TEXTURE_CUBE_MAP_NEGATIVE_Z=34074]="TEXTURE_CUBE_MAP_NEGATIVE_Z",e))(Cg||{}),Ot=(e=>(e[e.UNSIGNED_BYTE=5121]="UNSIGNED_BYTE",e[e.UNSIGNED_SHORT=5123]="UNSIGNED_SHORT",e[e.UNSIGNED_SHORT_5_6_5=33635]="UNSIGNED_SHORT_5_6_5",e[e.UNSIGNED_SHORT_4_4_4_4=32819]="UNSIGNED_SHORT_4_4_4_4",e[e.UNSIGNED_SHORT_5_5_5_1=32820]="UNSIGNED_SHORT_5_5_5_1",e[e.UNSIGNED_INT=5125]="UNSIGNED_INT",e[e.UNSIGNED_INT_10F_11F_11F_REV=35899]="UNSIGNED_INT_10F_11F_11F_REV",e[e.UNSIGNED_INT_2_10_10_10_REV=33640]="UNSIGNED_INT_2_10_10_10_REV",e[e.UNSIGNED_INT_24_8=34042]="UNSIGNED_INT_24_8",e[e.UNSIGNED_INT_5_9_9_9_REV=35902]="UNSIGNED_INT_5_9_9_9_REV",e[e.BYTE=5120]="BYTE",e[e.SHORT=5122]="SHORT",e[e.INT=5124]="INT",e[e.FLOAT=5126]="FLOAT",e[e.FLOAT_32_UNSIGNED_INT_24_8_REV=36269]="FLOAT_32_UNSIGNED_INT_24_8_REV",e[e.HALF_FLOAT=36193]="HALF_FLOAT",e))(Ot||{}),i5=(e=>(e[e.FLOAT=0]="FLOAT",e[e.INT=1]="INT",e[e.UINT=2]="UINT",e))(i5||{}),Au=(e=>(e[e.NEAREST=0]="NEAREST",e[e.LINEAR=1]="LINEAR",e))(Au||{}),Jd=(e=>(e[e.CLAMP=33071]="CLAMP",e[e.REPEAT=10497]="REPEAT",e[e.MIRRORED_REPEAT=33648]="MIRRORED_REPEAT",e))(Jd||{}),pc=(e=>(e[e.OFF=0]="OFF",e[e.POW2=1]="POW2",e[e.ON=2]="ON",e[e.ON_MANUAL=3]="ON_MANUAL",e))(pc||{}),Ll=(e=>(e[e.NPM=0]="NPM",e[e.UNPACK=1]="UNPACK",e[e.PMA=2]="PMA",e[e.NO_PREMULTIPLIED_ALPHA=0]="NO_PREMULTIPLIED_ALPHA",e[e.PREMULTIPLY_ON_UPLOAD=1]="PREMULTIPLY_ON_UPLOAD",e[e.PREMULTIPLIED_ALPHA=2]="PREMULTIPLIED_ALPHA",e))(Ll||{}),ql=(e=>(e[e.NO=0]="NO",e[e.YES=1]="YES",e[e.AUTO=2]="AUTO",e[e.BLEND=0]="BLEND",e[e.CLEAR=1]="CLEAR",e[e.BLIT=2]="BLIT",e))(ql||{}),hU=(e=>(e[e.AUTO=0]="AUTO",e[e.MANUAL=1]="MANUAL",e))(hU||{}),wa=(e=>(e.LOW="lowp",e.MEDIUM="mediump",e.HIGH="highp",e))(wa||{}),bi=(e=>(e[e.NONE=0]="NONE",e[e.SCISSOR=1]="SCISSOR",e[e.STENCIL=2]="STENCIL",e[e.SPRITE=3]="SPRITE",e[e.COLOR=4]="COLOR",e))(bi||{}),ri=(e=>(e[e.NONE=0]="NONE",e[e.LOW=2]="LOW",e[e.MEDIUM=4]="MEDIUM",e[e.HIGH=8]="HIGH",e))(ri||{}),lc=(e=>(e[e.ELEMENT_ARRAY_BUFFER=34963]="ELEMENT_ARRAY_BUFFER",e[e.ARRAY_BUFFER=34962]="ARRAY_BUFFER",e[e.UNIFORM_BUFFER=35345]="UNIFORM_BUFFER",e))(lc||{});const a3e={createCanvas:(e,t)=>{const n=document.createElement("canvas");return n.width=e,n.height=t,n},getCanvasRenderingContext2D:()=>CanvasRenderingContext2D,getWebGLRenderingContext:()=>WebGLRenderingContext,getNavigator:()=>navigator,getBaseUrl:()=>document.baseURI??window.location.href,getFontFaceSet:()=>document.fonts,fetch:(e,t)=>fetch(e,t),parseXML:e=>new DOMParser().parseFromString(e,"text/xml")},nt={ADAPTER:a3e,RESOLUTION:1,CREATE_IMAGE_BITMAP:!1,ROUND_PIXELS:!1};var OB=/iPhone/i,d7=/iPod/i,f7=/iPad/i,h7=/\biOS-universal(?:.+)Mac\b/i,MB=/\bAndroid(?:.+)Mobile\b/i,p7=/Android/i,Sm=/(?:SD4930UR|\bSilk(?:.+)Mobile\b)/i,dS=/Silk/i,mu=/Windows Phone/i,m7=/\bWindows(?:.+)ARM\b/i,g7=/BlackBerry/i,v7=/BB10/i,y7=/Opera Mini/i,b7=/\b(CriOS|Chrome)(?:.+)Mobile/i,x7=/Mobile(?:.+)Firefox\b/i,w7=function(e){return typeof e<"u"&&e.platform==="MacIntel"&&typeof e.maxTouchPoints=="number"&&e.maxTouchPoints>1&&typeof MSStream>"u"};function l3e(e){return function(t){return t.test(e)}}function _7(e){var t={userAgent:"",platform:"",maxTouchPoints:0};!e&&typeof navigator<"u"?t={userAgent:navigator.userAgent,platform:navigator.platform,maxTouchPoints:navigator.maxTouchPoints||0}:typeof e=="string"?t.userAgent=e:e&&e.userAgent&&(t={userAgent:e.userAgent,platform:e.platform,maxTouchPoints:e.maxTouchPoints||0});var n=t.userAgent,r=n.split("[FBAN");typeof r[1]<"u"&&(n=r[0]),r=n.split("Twitter"),typeof r[1]<"u"&&(n=r[0]);var i=l3e(n),o={apple:{phone:i(OB)&&!i(mu),ipod:i(d7),tablet:!i(OB)&&(i(f7)||w7(t))&&!i(mu),universal:i(h7),device:(i(OB)||i(d7)||i(f7)||i(h7)||w7(t))&&!i(mu)},amazon:{phone:i(Sm),tablet:!i(Sm)&&i(dS),device:i(Sm)||i(dS)},android:{phone:!i(mu)&&i(Sm)||!i(mu)&&i(MB),tablet:!i(mu)&&!i(Sm)&&!i(MB)&&(i(dS)||i(p7)),device:!i(mu)&&(i(Sm)||i(dS)||i(MB)||i(p7))||i(/\bokhttp\b/i)},windows:{phone:i(mu),tablet:i(m7),device:i(mu)||i(m7)},other:{blackberry:i(g7),blackberry10:i(v7),opera:i(y7),firefox:i(x7),chrome:i(b7),device:i(g7)||i(v7)||i(y7)||i(x7)||i(b7)},any:!1,phone:!1,tablet:!1};return o.any=o.apple.device||o.android.device||o.windows.device||o.other.device,o.phone=o.apple.phone||o.android.phone||o.windows.phone,o.tablet=o.apple.tablet||o.android.tablet||o.windows.tablet,o}const c3e=_7.default??_7,Iu=c3e(globalThis.navigator);nt.RETINA_PREFIX=/@([0-9\.]+)x/;nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT=!1;var Tne={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function i(c,u,f){this.fn=c,this.context=u,this.once=f||!1}function o(c,u,f,h,p){if(typeof f!="function")throw new TypeError("The listener must be a function");var g=new i(f,h||c,p),v=n?n+u:u;return c._events[v]?c._events[v].fn?c._events[v]=[c._events[v],g]:c._events[v].push(g):(c._events[v]=g,c._eventsCount++),c}function s(c,u){--c._eventsCount===0?c._events=new r:delete c._events[u]}function a(){this._events=new r,this._eventsCount=0}a.prototype.eventNames=function(){var u=[],f,h;if(this._eventsCount===0)return u;for(h in f=this._events)t.call(f,h)&&u.push(n?h.slice(1):h);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(f)):u},a.prototype.listeners=function(u){var f=n?n+u:u,h=this._events[f];if(!h)return[];if(h.fn)return[h.fn];for(var p=0,g=h.length,v=new Array(g);p80*n){a=u=e[0],c=f=e[1];for(var v=n;vu&&(u=h),p>f&&(f=p);g=Math.max(u-a,f-c),g=g!==0?32767/g:0}return Z1(o,s,n,a,c,g,0),s}function kne(e,t,n,r,i){var o,s;if(i===a5(e,t,n,r)>0)for(o=t;o=t;o-=r)s=S7(o,e[o],e[o+1],s);return s&&IA(s,s.next)&&(tw(s),s=s.next),s}function Yp(e,t){if(!e)return e;t||(t=e);var n=e,r;do if(r=!1,!n.steiner&&(IA(n,n.next)||$r(n.prev,n,n.next)===0)){if(tw(n),n=t=n.prev,n===n.next)break;r=!0}else n=n.next;while(r||n!==t);return t}function Z1(e,t,n,r,i,o,s){if(e){!s&&o&&x3e(e,r,i,o);for(var a=e,c,u;e.prev!==e.next;){if(c=e.prev,u=e.next,o?f3e(e,r,i,o):d3e(e)){t.push(c.i/n|0),t.push(e.i/n|0),t.push(u.i/n|0),tw(e),e=u.next,a=u.next;continue}if(e=u,e===a){s?s===1?(e=h3e(Yp(e),t,n),Z1(e,t,n,r,i,o,2)):s===2&&p3e(e,t,n,r,i,o):Z1(Yp(e),t,n,r,i,o,1);break}}}}function d3e(e){var t=e.prev,n=e,r=e.next;if($r(t,n,r)>=0)return!1;for(var i=t.x,o=n.x,s=r.x,a=t.y,c=n.y,u=r.y,f=io?i>s?i:s:o>s?o:s,g=a>c?a>u?a:u:c>u?c:u,v=r.next;v!==t;){if(v.x>=f&&v.x<=p&&v.y>=h&&v.y<=g&&dg(i,a,o,c,s,u,v.x,v.y)&&$r(v.prev,v,v.next)>=0)return!1;v=v.next}return!0}function f3e(e,t,n,r){var i=e.prev,o=e,s=e.next;if($r(i,o,s)>=0)return!1;for(var a=i.x,c=o.x,u=s.x,f=i.y,h=o.y,p=s.y,g=ac?a>u?a:u:c>u?c:u,S=f>h?f>p?f:p:h>p?h:p,w=o5(g,v,t,n,r),b=o5(y,S,t,n,r),x=e.prevZ,E=e.nextZ;x&&x.z>=w&&E&&E.z<=b;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&dg(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0||(x=x.prevZ,E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&dg(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0))return!1;E=E.nextZ}for(;x&&x.z>=w;){if(x.x>=g&&x.x<=y&&x.y>=v&&x.y<=S&&x!==i&&x!==s&&dg(a,f,c,h,u,p,x.x,x.y)&&$r(x.prev,x,x.next)>=0)return!1;x=x.prevZ}for(;E&&E.z<=b;){if(E.x>=g&&E.x<=y&&E.y>=v&&E.y<=S&&E!==i&&E!==s&&dg(a,f,c,h,u,p,E.x,E.y)&&$r(E.prev,E,E.next)>=0)return!1;E=E.nextZ}return!0}function h3e(e,t,n){var r=e;do{var i=r.prev,o=r.next.next;!IA(i,o)&&Ane(i,r,r.next,o)&&ew(i,o)&&ew(o,i)&&(t.push(i.i/n|0),t.push(r.i/n|0),t.push(o.i/n|0),tw(r),tw(r.next),r=e=o),r=r.next}while(r!==e);return Yp(r)}function p3e(e,t,n,r,i,o){var s=e;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&S3e(s,a)){var c=Ine(s,a);s=Yp(s,s.next),c=Yp(c,c.next),Z1(s,t,n,r,i,o,0),Z1(c,t,n,r,i,o,0);return}a=a.next}s=s.next}while(s!==e)}function m3e(e,t,n,r){var i=[],o,s,a,c,u;for(o=0,s=t.length;o=n.next.y&&n.next.y!==n.y){var a=n.x+(i-n.y)*(n.next.x-n.x)/(n.next.y-n.y);if(a<=r&&a>o&&(o=a,s=n.x=n.x&&n.x>=u&&r!==n.x&&dg(is.x||n.x===s.x&&b3e(s,n)))&&(s=n,h=p)),n=n.next;while(n!==c);return s}function b3e(e,t){return $r(e.prev,e,t.prev)<0&&$r(t.next,e,e.next)<0}function x3e(e,t,n,r){var i=e;do i.z===0&&(i.z=o5(i.x,i.y,t,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next;while(i!==e);i.prevZ.nextZ=null,i.prevZ=null,w3e(i)}function w3e(e){var t,n,r,i,o,s,a,c,u=1;do{for(n=e,e=null,o=null,s=0;n;){for(s++,r=n,a=0,t=0;t0||c>0&&r;)a!==0&&(c===0||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,c--),o?o.nextZ=i:e=i,i.prevZ=o,o=i;n=r}o.nextZ=null,u*=2}while(s>1);return e}function o5(e,t,n,r,i){return e=(e-n)*i|0,t=(t-r)*i|0,e=(e|e<<8)&16711935,e=(e|e<<4)&252645135,e=(e|e<<2)&858993459,e=(e|e<<1)&1431655765,t=(t|t<<8)&16711935,t=(t|t<<4)&252645135,t=(t|t<<2)&858993459,t=(t|t<<1)&1431655765,e|t<<1}function _3e(e){var t=e,n=e;do(t.x=(e-s)*(o-a)&&(e-s)*(r-a)>=(n-s)*(t-a)&&(n-s)*(o-a)>=(i-s)*(r-a)}function S3e(e,t){return e.next.i!==t.i&&e.prev.i!==t.i&&!E3e(e,t)&&(ew(e,t)&&ew(t,e)&&C3e(e,t)&&($r(e.prev,e,t.prev)||$r(e,t.prev,t))||IA(e,t)&&$r(e.prev,e,e.next)>0&&$r(t.prev,t,t.next)>0)}function $r(e,t,n){return(t.y-e.y)*(n.x-t.x)-(t.x-e.x)*(n.y-t.y)}function IA(e,t){return e.x===t.x&&e.y===t.y}function Ane(e,t,n,r){var i=hS($r(e,t,n)),o=hS($r(e,t,r)),s=hS($r(n,r,e)),a=hS($r(n,r,t));return!!(i!==o&&s!==a||i===0&&fS(e,n,t)||o===0&&fS(e,r,t)||s===0&&fS(n,e,r)||a===0&&fS(n,t,r))}function fS(e,t,n){return t.x<=Math.max(e.x,n.x)&&t.x>=Math.min(e.x,n.x)&&t.y<=Math.max(e.y,n.y)&&t.y>=Math.min(e.y,n.y)}function hS(e){return e>0?1:e<0?-1:0}function E3e(e,t){var n=e;do{if(n.i!==e.i&&n.next.i!==e.i&&n.i!==t.i&&n.next.i!==t.i&&Ane(n,n.next,e,t))return!0;n=n.next}while(n!==e);return!1}function ew(e,t){return $r(e.prev,e,e.next)<0?$r(e,t,e.next)>=0&&$r(e,e.prev,t)>=0:$r(e,t,e.prev)<0||$r(e,e.next,t)<0}function C3e(e,t){var n=e,r=!1,i=(e.x+t.x)/2,o=(e.y+t.y)/2;do n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next;while(n!==e);return r}function Ine(e,t){var n=new s5(e.i,e.x,e.y),r=new s5(t.i,t.x,t.y),i=e.next,o=t.prev;return e.next=t,t.prev=e,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function S7(e,t,n,r){var i=new s5(e,t,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function tw(e){e.next.prev=e.prev,e.prev.next=e.next,e.prevZ&&(e.prevZ.nextZ=e.nextZ),e.nextZ&&(e.nextZ.prevZ=e.prevZ)}function s5(e,t,n){this.i=e,this.x=t,this.y=n,this.prev=null,this.next=null,this.z=0,this.prevZ=null,this.nextZ=null,this.steiner=!1}AA.deviation=function(e,t,n,r){var i=t&&t.length,o=i?t[0]*n:e.length,s=Math.abs(a5(e,0,o,n));if(i)for(var a=0,c=t.length;a0&&(r+=e[i-1].length,n.holes.push(r))}return n};var T3e=pU.exports;const k3e=ds(T3e);var KC={exports:{}};/*! https://mths.be/punycode v1.4.1 by @mathias */KC.exports;(function(e,t){(function(n){var r=t&&!t.nodeType&&t,i=e&&!e.nodeType&&e,o=typeof $t=="object"&&$t;(o.global===o||o.window===o||o.self===o)&&(n=o);var s,a=2147483647,c=36,u=1,f=26,h=38,p=700,g=72,v=128,y="-",S=/^xn--/,w=/[^\x20-\x7E]/,b=/[\x2E\u3002\uFF0E\uFF61]/g,x={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=c-u,I=Math.floor,A=String.fromCharCode,k;function O(X){throw new RangeError(x[X])}function L(X,Q){for(var ie=X.length,ce=[];ie--;)ce[ie]=Q(X[ie]);return ce}function N(X,Q){var ie=X.split("@"),ce="";ie.length>1&&(ce=ie[0]+"@",X=ie[1]),X=X.replace(b,".");var ue=X.split("."),se=L(ue,Q).join(".");return ce+se}function H(X){for(var Q=[],ie=0,ce=X.length,ue,se;ie=55296&&ue<=56319&&ie65535&&(Q-=65536,ie+=A(Q>>>10&1023|55296),Q=56320|Q&1023),ie+=A(Q),ie}).join("")}function z(X){return X-48<10?X-22:X-65<26?X-65:X-97<26?X-97:c}function D(X,Q){return X+22+75*(X<26)-((Q!=0)<<5)}function F(X,Q,ie){var ce=0;for(X=ie?I(X/p):X>>1,X+=I(X/Q);X>E*f>>1;ce+=c)X=I(X/E);return I(ce+(E+1)*X/(X+h))}function j(X){var Q=[],ie=X.length,ce,ue=0,se=v,J=g,ae,le,he,pe,ve,ye,xe,me,be;for(ae=X.lastIndexOf(y),ae<0&&(ae=0),le=0;le=128&&O("not-basic"),Q.push(X.charCodeAt(le));for(he=ae>0?ae+1:0;he=ie&&O("invalid-input"),xe=z(X.charCodeAt(he++)),(xe>=c||xe>I((a-ue)/ve))&&O("overflow"),ue+=xe*ve,me=ye<=J?u:ye>=J+f?f:ye-J,!(xeI(a/be)&&O("overflow"),ve*=be;ce=Q.length+1,J=F(ue-pe,ce,pe==0),I(ue/ce)>a-se&&O("overflow"),se+=I(ue/ce),ue%=ce,Q.splice(ue++,0,se)}return G(Q)}function V(X){var Q,ie,ce,ue,se,J,ae,le,he,pe,ve,ye=[],xe,me,be,Ze;for(X=H(X),xe=X.length,Q=v,ie=0,se=g,J=0;J=Q&&veI((a-ie)/me)&&O("overflow"),ie+=(ae-Q)*me,Q=ae,J=0;Ja&&O("overflow"),ve==Q){for(le=ie,he=c;pe=he<=se?u:he>=se+f?f:he-se,!(le"u"||!ki?dn:ki(Uint8Array),Rp={"%AggregateError%":typeof AggregateError>"u"?dn:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?dn:ArrayBuffer,"%ArrayIteratorPrototype%":Em&&ki?ki([][Symbol.iterator]()):dn,"%AsyncFromSyncIteratorPrototype%":dn,"%AsyncFunction%":Nm,"%AsyncGenerator%":Nm,"%AsyncGeneratorFunction%":Nm,"%AsyncIteratorPrototype%":Nm,"%Atomics%":typeof Atomics>"u"?dn:Atomics,"%BigInt%":typeof BigInt>"u"?dn:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?dn:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?dn:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?dn:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":typeof Float32Array>"u"?dn:Float32Array,"%Float64Array%":typeof Float64Array>"u"?dn:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?dn:FinalizationRegistry,"%Function%":Rne,"%GeneratorFunction%":Nm,"%Int8Array%":typeof Int8Array>"u"?dn:Int8Array,"%Int16Array%":typeof Int16Array>"u"?dn:Int16Array,"%Int32Array%":typeof Int32Array>"u"?dn:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Em&&ki?ki(ki([][Symbol.iterator]())):dn,"%JSON%":typeof JSON=="object"?JSON:dn,"%Map%":typeof Map>"u"?dn:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Em||!ki?dn:ki(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?dn:Promise,"%Proxy%":typeof Proxy>"u"?dn:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":typeof Reflect>"u"?dn:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?dn:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Em||!ki?dn:ki(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?dn:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Em&&ki?ki(""[Symbol.iterator]()):dn,"%Symbol%":Em?Symbol:dn,"%SyntaxError%":lv,"%ThrowTypeError%":j3e,"%TypedArray%":H3e,"%TypeError%":Tg,"%Uint8Array%":typeof Uint8Array>"u"?dn:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?dn:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?dn:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?dn:Uint32Array,"%URIError%":URIError,"%WeakMap%":typeof WeakMap>"u"?dn:WeakMap,"%WeakRef%":typeof WeakRef>"u"?dn:WeakRef,"%WeakSet%":typeof WeakSet>"u"?dn:WeakSet};if(ki)try{null.error}catch(e){var W3e=ki(ki(e));Rp["%Error.prototype%"]=W3e}var G3e=function e(t){var n;if(t==="%AsyncFunction%")n=LB("async function () {}");else if(t==="%GeneratorFunction%")n=LB("function* () {}");else if(t==="%AsyncGeneratorFunction%")n=LB("async function* () {}");else if(t==="%AsyncGenerator%"){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if(t==="%AsyncIteratorPrototype%"){var i=e("%AsyncGenerator%");i&&ki&&(n=ki(i.prototype))}return Rp[t]=n,n},T7={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Kw=mU,QC=z3e,V3e=Kw.call(Function.call,Array.prototype.concat),q3e=Kw.call(Function.apply,Array.prototype.splice),k7=Kw.call(Function.call,String.prototype.replace),JC=Kw.call(Function.call,String.prototype.slice),X3e=Kw.call(Function.call,RegExp.prototype.exec),Y3e=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,K3e=/\\(\\)?/g,Q3e=function(t){var n=JC(t,0,1),r=JC(t,-1);if(n==="%"&&r!=="%")throw new lv("invalid intrinsic syntax, expected closing `%`");if(r==="%"&&n!=="%")throw new lv("invalid intrinsic syntax, expected opening `%`");var i=[];return k7(t,Y3e,function(o,s,a,c){i[i.length]=a?k7(c,K3e,"$1"):s||o}),i},J3e=function(t,n){var r=t,i;if(QC(T7,r)&&(i=T7[r],r="%"+i[0]+"%"),QC(Rp,r)){var o=Rp[r];if(o===Nm&&(o=G3e(r)),typeof o>"u"&&!n)throw new Tg("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:i,name:r,value:o}}throw new lv("intrinsic "+t+" does not exist!")},gU=function(t,n){if(typeof t!="string"||t.length===0)throw new Tg("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof n!="boolean")throw new Tg('"allowMissing" argument must be a boolean');if(X3e(/^%?[^%]*%?$/,t)===null)throw new lv("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=Q3e(t),i=r.length>0?r[0]:"",o=J3e("%"+i+"%",n),s=o.name,a=o.value,c=!1,u=o.alias;u&&(i=u[0],q3e(r,V3e([0,1],u)));for(var f=1,h=!0;f=r.length){var y=Ip(a,p);h=!!y,h&&"get"in y&&!("originalValue"in y.get)?a=y.get:a=a[p]}else h=QC(a,p),a=a[p];h&&!c&&(Rp[s]=a)}}return a},Pne={exports:{}};(function(e){var t=mU,n=gU,r=n("%Function.prototype.apply%"),i=n("%Function.prototype.call%"),o=n("%Reflect.apply%",!0)||t.call(i,r),s=n("%Object.getOwnPropertyDescriptor%",!0),a=n("%Object.defineProperty%",!0),c=n("%Math.max%");if(a)try{a({},"a",{value:1})}catch{a=null}e.exports=function(h){var p=o(t,i,arguments);if(s&&a){var g=s(p,"length");g.configurable&&a(p,"length",{value:1+c(0,h.length-(arguments.length-1))})}return p};var u=function(){return o(t,r,arguments)};a?a(e.exports,"apply",{value:u}):e.exports.apply=u})(Pne);var Z3e=Pne.exports,One=gU,Mne=Z3e,e5e=Mne(One("String.prototype.indexOf")),t5e=function(t,n){var r=One(t,!!n);return typeof r=="function"&&e5e(t,".prototype.")>-1?Mne(r):r};const n5e={},r5e=Object.freeze(Object.defineProperty({__proto__:null,default:n5e},Symbol.toStringTag,{value:"Module"})),Dne=l4(r5e);var vU=typeof Map=="function"&&Map.prototype,BB=Object.getOwnPropertyDescriptor&&vU?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ZC=vU&&BB&&typeof BB.get=="function"?BB.get:null,A7=vU&&Map.prototype.forEach,yU=typeof Set=="function"&&Set.prototype,$B=Object.getOwnPropertyDescriptor&&yU?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,eT=yU&&$B&&typeof $B.get=="function"?$B.get:null,I7=yU&&Set.prototype.forEach,i5e=typeof WeakMap=="function"&&WeakMap.prototype,Qx=i5e?WeakMap.prototype.has:null,o5e=typeof WeakSet=="function"&&WeakSet.prototype,Jx=o5e?WeakSet.prototype.has:null,s5e=typeof WeakRef=="function"&&WeakRef.prototype,R7=s5e?WeakRef.prototype.deref:null,a5e=Boolean.prototype.valueOf,l5e=Object.prototype.toString,c5e=Function.prototype.toString,u5e=String.prototype.match,bU=String.prototype.slice,Od=String.prototype.replace,d5e=String.prototype.toUpperCase,P7=String.prototype.toLowerCase,Lne=RegExp.prototype.test,O7=Array.prototype.concat,Xl=Array.prototype.join,f5e=Array.prototype.slice,M7=Math.floor,l5=typeof BigInt=="function"?BigInt.prototype.valueOf:null,FB=Object.getOwnPropertySymbols,c5=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,cv=typeof Symbol=="function"&&typeof Symbol.iterator=="object",bo=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===cv||"symbol")?Symbol.toStringTag:null,Nne=Object.prototype.propertyIsEnumerable,D7=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function L7(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Lne.call(/e/,t))return t;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var r=e<0?-M7(-e):M7(e);if(r!==e){var i=String(r),o=bU.call(t,i.length+1);return Od.call(i,n,"$&_")+"."+Od.call(Od.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Od.call(t,n,"$&_")}var u5=Dne,N7=u5.custom,B7=$ne(N7)?N7:null,h5e=function e(t,n,r,i){var o=n||{};if(bd(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(bd(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var s=bd(o,"customInspect")?o.customInspect:!0;if(typeof s!="boolean"&&s!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(bd(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(bd(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var a=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return zne(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var c=String(t);return a?L7(t,c):c}if(typeof t=="bigint"){var u=String(t)+"n";return a?L7(t,u):u}var f=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=f&&f>0&&typeof t=="object")return d5(t)?"[Array]":"[Object]";var h=P5e(o,r);if(typeof i>"u")i=[];else if(Fne(i,t)>=0)return"[Circular]";function p(z,D,F){if(D&&(i=f5e.call(i),i.push(D)),F){var j={depth:o.depth};return bd(o,"quoteStyle")&&(j.quoteStyle=o.quoteStyle),e(z,j,r+1,i)}return e(z,o,r+1,i)}if(typeof t=="function"&&!$7(t)){var g=_5e(t),v=pS(t,p);return"[Function"+(g?": "+g:" (anonymous)")+"]"+(v.length>0?" { "+Xl.call(v,", ")+" }":"")}if($ne(t)){var y=cv?Od.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):c5.call(t);return typeof t=="object"&&!cv?Hb(y):y}if(A5e(t)){for(var S="<"+P7.call(String(t.nodeName)),w=t.attributes||[],b=0;b",S}if(d5(t)){if(t.length===0)return"[]";var x=pS(t,p);return h&&!R5e(x)?"["+f5(x,h)+"]":"[ "+Xl.call(x,", ")+" ]"}if(g5e(t)){var E=pS(t,p);return!("cause"in Error.prototype)&&"cause"in t&&!Nne.call(t,"cause")?"{ ["+String(t)+"] "+Xl.call(O7.call("[cause]: "+p(t.cause),E),", ")+" }":E.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Xl.call(E,", ")+" }"}if(typeof t=="object"&&s){if(B7&&typeof t[B7]=="function"&&u5)return u5(t,{depth:f-r});if(s!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(S5e(t)){var I=[];return A7&&A7.call(t,function(z,D){I.push(p(D,t,!0)+" => "+p(z,t))}),F7("Map",ZC.call(t),I,h)}if(T5e(t)){var A=[];return I7&&I7.call(t,function(z){A.push(p(z,t))}),F7("Set",eT.call(t),A,h)}if(E5e(t))return zB("WeakMap");if(k5e(t))return zB("WeakSet");if(C5e(t))return zB("WeakRef");if(y5e(t))return Hb(p(Number(t)));if(x5e(t))return Hb(p(l5.call(t)));if(b5e(t))return Hb(a5e.call(t));if(v5e(t))return Hb(p(String(t)));if(!m5e(t)&&!$7(t)){var k=pS(t,p),O=D7?D7(t)===Object.prototype:t instanceof Object||t.constructor===Object,L=t instanceof Object?"":"null prototype",N=!O&&bo&&Object(t)===t&&bo in t?bU.call(Cf(t),8,-1):L?"Object":"",H=O||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",G=H+(N||L?"["+Xl.call(O7.call([],N||[],L||[]),": ")+"] ":"");return k.length===0?G+"{}":h?G+"{"+f5(k,h)+"}":G+"{ "+Xl.call(k,", ")+" }"}return String(t)};function Bne(e,t,n){var r=(n.quoteStyle||t)==="double"?'"':"'";return r+e+r}function p5e(e){return Od.call(String(e),/"/g,""")}function d5(e){return Cf(e)==="[object Array]"&&(!bo||!(typeof e=="object"&&bo in e))}function m5e(e){return Cf(e)==="[object Date]"&&(!bo||!(typeof e=="object"&&bo in e))}function $7(e){return Cf(e)==="[object RegExp]"&&(!bo||!(typeof e=="object"&&bo in e))}function g5e(e){return Cf(e)==="[object Error]"&&(!bo||!(typeof e=="object"&&bo in e))}function v5e(e){return Cf(e)==="[object String]"&&(!bo||!(typeof e=="object"&&bo in e))}function y5e(e){return Cf(e)==="[object Number]"&&(!bo||!(typeof e=="object"&&bo in e))}function b5e(e){return Cf(e)==="[object Boolean]"&&(!bo||!(typeof e=="object"&&bo in e))}function $ne(e){if(cv)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!c5)return!1;try{return c5.call(e),!0}catch{}return!1}function x5e(e){if(!e||typeof e!="object"||!l5)return!1;try{return l5.call(e),!0}catch{}return!1}var w5e=Object.prototype.hasOwnProperty||function(e){return e in this};function bd(e,t){return w5e.call(e,t)}function Cf(e){return l5e.call(e)}function _5e(e){if(e.name)return e.name;var t=u5e.call(c5e.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Fne(e,t){if(e.indexOf)return e.indexOf(t);for(var n=0,r=e.length;nt.maxStringLength){var n=e.length-t.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return zne(bU.call(e,0,t.maxStringLength),t)+r}var i=Od.call(Od.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,I5e);return Bne(i,"single",t)}function I5e(e){var t=e.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return n?"\\"+n:"\\x"+(t<16?"0":"")+d5e.call(t.toString(16))}function Hb(e){return"Object("+e+")"}function zB(e){return e+" { ? }"}function F7(e,t,n,r){var i=r?f5(n,r):Xl.call(n,", ");return e+" ("+t+") {"+i+"}"}function R5e(e){for(var t=0;t=0)return!1;return!0}function P5e(e,t){var n;if(e.indent===" ")n=" ";else if(typeof e.indent=="number"&&e.indent>0)n=Xl.call(Array(e.indent+1)," ");else return null;return{base:n,prev:Xl.call(Array(t+1),n)}}function f5(e,t){if(e.length===0)return"";var n=` +`+t.prev+t.base;return n+Xl.call(e,","+n)+` +`+t.prev}function pS(e,t){var n=d5(e),r=[];if(n){r.length=e.length;for(var i=0;i1;){var n=t.pop(),r=n.obj[n.prop];if(dp(r)){for(var i=[],o=0;o=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||o===V5e.RFC1738&&(u===40||u===41)){a+=s.charAt(c);continue}if(u<128){a=a+zl[u];continue}if(u<2048){a=a+(zl[192|u>>6]+zl[128|u&63]);continue}if(u<55296||u>=57344){a=a+(zl[224|u>>12]+zl[128|u>>6&63]+zl[128|u&63]);continue}c+=1,u=65536+((u&1023)<<10|s.charCodeAt(c)&1023),a+=zl[240|u>>18]+zl[128|u>>12&63]+zl[128|u>>6&63]+zl[128|u&63]}return a},J5e=function(t){for(var n=[{obj:{o:t},prop:"o"}],r=[],i=0;i"u"&&(x=0)}if(typeof c=="function"?w=c(n,w):w instanceof Date?w=h(w):r==="comma"&&_u(w)&&(w=AE.maybeMap(w,function(j){return j instanceof Date?h(j):j})),w===null){if(o)return a&&!v?a(n,co.encoder,y,"key",p):n;w=""}if(s4e(w)||AE.isBuffer(w)){if(a){var A=v?n:a(n,co.encoder,y,"key",p);return[g(A)+"="+g(a(w,co.encoder,y,"value",p))]}return[g(n)+"="+g(String(w))]}var k=[];if(typeof w>"u")return k;var O;if(r==="comma"&&_u(w))v&&a&&(w=AE.maybeMap(w,a)),O=[{value:w.length>0?w.join(",")||null:void 0}];else if(_u(c))O=c;else{var L=Object.keys(w);O=u?L.sort(u):L}for(var N=i&&_u(w)&&w.length===1?n+"[]":n,H=0;H"u"?co.allowDots:!!t.allowDots,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:co.charsetSentinel,delimiter:typeof t.delimiter>"u"?co.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:co.encode,encoder:typeof t.encoder=="function"?t.encoder:co.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:co.encodeValuesOnly,filter:o,format:r,formatter:i,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:co.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:co.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:co.strictNullHandling}},c4e=function(e,t){var n=e,r=l4e(t),i,o;typeof r.filter=="function"?(o=r.filter,n=o("",n)):_u(r.filter)&&(o=r.filter,i=o);var s=[];if(typeof n!="object"||n===null)return"";var a;t&&t.arrayFormat in z7?a=t.arrayFormat:t&&"indices"in t?a=t.indices?"indices":"repeat":a="indices";var c=z7[a];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var u=c==="comma"&&t&&t.commaRoundTrip;i||(i=Object.keys(n)),r.sort&&i.sort(r.sort);for(var f=Hne(),h=0;h0?v+g:""},uv=Une,h5=Object.prototype.hasOwnProperty,u4e=Array.isArray,Ci={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:uv.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},d4e=function(e){return e.replace(/&#(\d+);/g,function(t,n){return String.fromCharCode(parseInt(n,10))})},Gne=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},f4e="utf8=%26%2310003%3B",h4e="utf8=%E2%9C%93",p4e=function(t,n){var r={__proto__:null},i=n.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=n.parameterLimit===1/0?void 0:n.parameterLimit,s=i.split(n.delimiter,o),a=-1,c,u=n.charset;if(n.charsetSentinel)for(c=0;c-1&&(v=u4e(v)?[v]:v),h5.call(r,g)?r[g]=uv.combine(r[g],v):r[g]=v}return r},m4e=function(e,t,n,r){for(var i=r?t:Gne(t,n),o=e.length-1;o>=0;--o){var s,a=e[o];if(a==="[]"&&n.parseArrays)s=[].concat(i);else{s=n.plainObjects?Object.create(null):{};var c=a.charAt(0)==="["&&a.charAt(a.length-1)==="]"?a.slice(1,-1):a,u=parseInt(c,10);!n.parseArrays&&c===""?s={0:i}:!isNaN(u)&&a!==c&&String(u)===c&&u>=0&&n.parseArrays&&u<=n.arrayLimit?(s=[],s[u]=i):c!=="__proto__"&&(s[c]=i)}i=s}return i},g4e=function(t,n,r,i){if(t){var o=r.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,s=/(\[[^[\]]*])/,a=/(\[[^[\]]*])/g,c=r.depth>0&&s.exec(o),u=c?o.slice(0,c.index):o,f=[];if(u){if(!r.plainObjects&&h5.call(Object.prototype,u)&&!r.allowPrototypes)return;f.push(u)}for(var h=0;r.depth>0&&(c=a.exec(o))!==null&&h"u"?Ci.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?Ci.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:Ci.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:Ci.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:Ci.arrayLimit,charset:n,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Ci.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:Ci.comma,decoder:typeof t.decoder=="function"?t.decoder:Ci.decoder,delimiter:typeof t.delimiter=="string"||uv.isRegExp(t.delimiter)?t.delimiter:Ci.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:Ci.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:Ci.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:Ci.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:Ci.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Ci.strictNullHandling}},y4e=function(e,t){var n=v4e(t);if(e===""||e===null||typeof e>"u")return n.plainObjects?Object.create(null):{};for(var r=typeof e=="string"?p4e(e,n):e,i=n.plainObjects?Object.create(null):{},o=Object.keys(r),s=0;s",'"',"`"," ","\r",` +`," "],A4e=["{","}","|","\\","^","`"].concat(k4e),p5=["'"].concat(A4e),U7=["%","/","?",";","#"].concat(p5),H7=["/","?","#"],I4e=255,W7=/^[+a-z0-9A-Z_-]{0,63}$/,R4e=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,P4e={javascript:!0,"javascript:":!0},m5={javascript:!0,"javascript:":!0},kg={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},g5=_4e;function RA(e,t,n){if(e&&typeof e=="object"&&e instanceof El)return e;var r=new El;return r.parse(e,t,n),r}El.prototype.parse=function(e,t,n){if(typeof e!="string")throw new TypeError("Parameter 'url' must be a string, not "+typeof e);var r=e.indexOf("?"),i=r!==-1&&r127?I+="x":I+=E[A];if(!I.match(W7)){var O=b.slice(0,g),L=b.slice(g+1),N=E.match(R4e);N&&(O.push(N[1]),L.unshift(N[2])),L.length&&(a="/"+L.join(".")+a),this.hostname=O.join(".");break}}}this.hostname.length>I4e?this.hostname="":this.hostname=this.hostname.toLowerCase(),w||(this.hostname=S4e.toASCII(this.hostname));var H=this.port?":"+this.port:"",G=this.hostname||"";this.host=G+H,this.href+=this.host,w&&(this.hostname=this.hostname.substr(1,this.hostname.length-2),a[0]!=="/"&&(a="/"+a))}if(!P4e[f])for(var g=0,x=p5.length;g0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return n.search=e.search,n.query=e.query,(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!b.length)return n.pathname=null,n.search?n.path="/"+n.search:n.path=null,n.href=n.format(),n;for(var A=b.slice(-1)[0],k=(n.host||e.host||b.length>1)&&(A==="."||A==="..")||A==="",O=0,L=b.length;L>=0;L--)A=b[L],A==="."?b.splice(L,1):A===".."?(b.splice(L,1),O++):O&&(b.splice(L,1),O--);if(!S&&!w)for(;O--;O)b.unshift("..");S&&b[0]!==""&&(!b[0]||b[0].charAt(0)!=="/")&&b.unshift(""),k&&b.join("/").substr(-1)!=="/"&&b.push("");var N=b[0]===""||b[0]&&b[0].charAt(0)==="/";if(E){n.hostname=N?"":b.length?b.shift():"",n.host=n.hostname;var I=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;I&&(n.auth=I.shift(),n.hostname=I.shift(),n.host=n.hostname)}return S=S||n.host&&b.length,S&&!N&&b.unshift(""),b.length>0?n.pathname=b.join("/"):(n.pathname=null,n.path=null),(n.pathname!==null||n.search!==null)&&(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=e.auth||n.auth,n.slashes=n.slashes||e.slashes,n.href=n.format(),n};El.prototype.parseHost=function(){var e=this.host,t=C4e.exec(e);t&&(t=t[0],t!==":"&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var D4e=RA,L4e=M4e,N4e=O4e;const B4e={parse:D4e,format:N4e,resolve:L4e};function el(e){if(typeof e!="string")throw new TypeError(`Path must be a string. Received ${JSON.stringify(e)}`)}function Wb(e){return e.split("?")[0].split("#")[0]}function $4e(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function F4e(e,t,n){return e.replace(new RegExp($4e(t),"g"),n)}function z4e(e,t){let n="",r=0,i=-1,o=0,s=-1;for(let a=0;a<=e.length;++a){if(a2){const c=n.lastIndexOf("/");if(c!==n.length-1){c===-1?(n="",r=0):(n=n.slice(0,c),r=n.length-1-n.lastIndexOf("/")),i=a,o=0;continue}}else if(n.length===2||n.length===1){n="",r=0,i=a,o=0;continue}}t&&(n.length>0?n+="/..":n="..",r=2)}else n.length>0?n+=`/${e.slice(i+1,a)}`:n=e.slice(i+1,a),r=a-i-1;i=a,o=0}else s===46&&o!==-1?++o:o=-1}return n}const vo={toPosix(e){return F4e(e,"\\","/")},isUrl(e){return/^https?:/.test(this.toPosix(e))},isDataUrl(e){return/^data:([a-z]+\/[a-z0-9-+.]+(;[a-z0-9-.!#$%*+.{}|~`]+=[a-z0-9-.!#$%*+.{}()_|~`]+)*)?(;base64)?,([a-z0-9!$&',()*+;=\-._~:@\/?%\s<>]*?)$/i.test(e)},hasProtocol(e){return/^[^/:]+:\//.test(this.toPosix(e))},getProtocol(e){el(e),e=this.toPosix(e);let t="";const n=/^file:\/\/\//.exec(e),r=/^[^/:]+:\/\//.exec(e),i=/^[^/:]+:\//.exec(e);if(n||r||i){const o=(n==null?void 0:n[0])||(r==null?void 0:r[0])||(i==null?void 0:i[0]);t=o,e=e.slice(o.length)}return t},toAbsolute(e,t,n){if(this.isDataUrl(e))return e;const r=Wb(this.toPosix(t??nt.ADAPTER.getBaseUrl())),i=Wb(this.toPosix(n??this.rootname(r)));return el(e),e=this.toPosix(e),e.startsWith("/")?vo.join(i,e.slice(1)):this.isAbsolute(e)?e:this.join(r,e)},normalize(e){if(e=this.toPosix(e),el(e),e.length===0)return".";let t="";const n=e.startsWith("/");this.hasProtocol(e)&&(t=this.rootname(e),e=e.slice(t.length));const r=e.endsWith("/");return e=z4e(e,!1),e.length>0&&r&&(e+="/"),n?`/${e}`:t+e},isAbsolute(e){return el(e),e=this.toPosix(e),this.hasProtocol(e)?!0:e.startsWith("/")},join(...e){if(e.length===0)return".";let t;for(let n=0;n0)if(t===void 0)t=r;else{const i=e[n-1]??"";this.extname(i)?t+=`/../${r}`:t+=`/${r}`}}return t===void 0?".":this.normalize(t)},dirname(e){if(el(e),e.length===0)return".";e=this.toPosix(e);let t=e.charCodeAt(0);const n=t===47;let r=-1,i=!0;const o=this.getProtocol(e),s=e;e=e.slice(o.length);for(let a=e.length-1;a>=1;--a)if(t=e.charCodeAt(a),t===47){if(!i){r=a;break}}else i=!1;return r===-1?n?"/":this.isUrl(s)?o+e:o:n&&r===1?"//":o+e.slice(0,r)},rootname(e){el(e),e=this.toPosix(e);let t="";if(e.startsWith("/")?t="/":t=this.getProtocol(e),this.isUrl(e)){const n=e.indexOf("/",t.length);n!==-1?t=e.slice(0,n):t=e,t.endsWith("/")||(t+="/")}return t},basename(e,t){el(e),t&&el(t),e=Wb(this.toPosix(e));let n=0,r=-1,i=!0,o;if(t!==void 0&&t.length>0&&t.length<=e.length){if(t.length===e.length&&t===e)return"";let s=t.length-1,a=-1;for(o=e.length-1;o>=0;--o){const c=e.charCodeAt(o);if(c===47){if(!i){n=o+1;break}}else a===-1&&(i=!1,a=o+1),s>=0&&(c===t.charCodeAt(s)?--s===-1&&(r=o):(s=-1,r=a))}return n===r?r=a:r===-1&&(r=e.length),e.slice(n,r)}for(o=e.length-1;o>=0;--o)if(e.charCodeAt(o)===47){if(!i){n=o+1;break}}else r===-1&&(i=!1,r=o+1);return r===-1?"":e.slice(n,r)},extname(e){el(e),e=Wb(this.toPosix(e));let t=-1,n=0,r=-1,i=!0,o=0;for(let s=e.length-1;s>=0;--s){const a=e.charCodeAt(s);if(a===47){if(!i){n=s+1;break}continue}r===-1&&(i=!1,r=s+1),a===46?t===-1?t=s:o!==1&&(o=1):t!==-1&&(o=-1)}return t===-1||r===-1||o===0||o===1&&t===r-1&&t===n+1?"":e.slice(t,r)},parse(e){el(e);const t={root:"",dir:"",base:"",ext:"",name:""};if(e.length===0)return t;e=Wb(this.toPosix(e));let n=e.charCodeAt(0);const r=this.isAbsolute(e);let i;t.root=this.rootname(e),r||this.hasProtocol(e)?i=1:i=0;let o=-1,s=0,a=-1,c=!0,u=e.length-1,f=0;for(;u>=i;--u){if(n=e.charCodeAt(u),n===47){if(!c){s=u+1;break}continue}a===-1&&(c=!1,a=u+1),n===46?o===-1?o=u:f!==1&&(f=1):o!==-1&&(f=-1)}return o===-1||a===-1||f===0||f===1&&o===a-1&&o===s+1?a!==-1&&(s===0&&r?t.base=t.name=e.slice(1,a):t.base=t.name=e.slice(s,a)):(s===0&&r?(t.name=e.slice(1,o),t.base=e.slice(1,a)):(t.name=e.slice(s,o),t.base=e.slice(s,a)),t.ext=e.slice(o,a)),t.dir=this.dirname(e),t},sep:"/",delimiter:":"},G7={};function fn(e,t,n=3){if(G7[t])return;let r=new Error().stack;typeof r>"u"?console.warn("PixiJS Deprecation Warning: ",`${t} Deprecated since v${e}`):(r=r.split(` `).splice(n).join(` `),console.groupCollapsed?(console.groupCollapsed("%cPixiJS Deprecation Warning: %c%s","color:#614108;background:#fffbe6","font-weight:normal;color:#614108;background:#fffbe6",`${t} Deprecated since v${e}`),console.warn(r),console.groupEnd()):(console.warn("PixiJS Deprecation Warning: ",`${t} -Deprecated since v${e}`),console.warn(r))),U7[t]=!0}let UB;function D4e(){return typeof UB>"u"&&(UB=function(){var n;const t={stencil:!0,failIfMajorPerformanceCaveat:nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!nt.ADAPTER.getWebGLRenderingContext())return!1;const r=nt.ADAPTER.createCanvas();let i=r.getContext("webgl",t)||r.getContext("experimental-webgl",t);const o=!!((n=i==null?void 0:i.getContextAttributes())!=null&&n.stencil);if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,o}catch{return!1}}()),UB}var N4e={grad:.9,turn:360,rad:360/(2*Math.PI)},mu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Ii=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},wa=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Gne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},H7=function(e){return{r:wa(e.r,0,255),g:wa(e.g,0,255),b:wa(e.b,0,255),a:wa(e.a)}},HB=function(e){return{r:Ii(e.r),g:Ii(e.g),b:Ii(e.b),a:Ii(e.a,3)}},B4e=/^#([0-9a-f]{3,8})$/i,gS=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Vne=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:i}},qne=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),u=o%6;return{r:255*[r,a,s,s,c,r][u],g:255*[c,r,r,a,s,s][u],b:255*[s,s,c,r,r,a][u],a:i}},W7=function(e){return{h:Gne(e.h),s:wa(e.s,0,100),l:wa(e.l,0,100),a:wa(e.a)}},G7=function(e){return{h:Ii(e.h),s:Ii(e.s),l:Ii(e.l),a:Ii(e.a,3)}},V7=function(e){return qne((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},Jx=function(e){return{h:(t=Vne(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},$4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,F4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,z4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,p5={string:[[function(e){var t=B4e.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ii(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Ii(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=z4e.exec(e)||j4e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:H7({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=$4e.exec(e)||F4e.exec(e);if(!t)return null;var n,r,i=W7({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(N4e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return V7(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return mu(t)&&mu(n)&&mu(r)?H7({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!mu(t)||!mu(n)||!mu(r))return null;var s=W7({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return V7(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!mu(t)||!mu(n)||!mu(r))return null;var s=function(a){return{h:Gne(a.h),s:wa(a.s,0,100),v:wa(a.v,0,100),a:wa(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return qne(s)},"hsv"]]},q7=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=HB(this.rgba),n=t.r,r=t.g,i=t.b,s=(o=t.a)<1?gS(Ii(255*o)):"","#"+gS(n)+gS(r)+gS(i)+s;var t,n,r,i,o,s},e.prototype.toRgb=function(){return HB(this.rgba)},e.prototype.toRgbString=function(){return t=HB(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return G7(Jx(this.rgba))},e.prototype.toHslString=function(){return t=G7(Jx(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=Vne(this.rgba),{h:Ii(t.h),s:Ii(t.s),v:Ii(t.v),a:Ii(t.a,3)};var t},e.prototype.invert=function(){return Fl({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),Fl(WB(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),Fl(WB(this.rgba,-t))},e.prototype.grayscale=function(){return Fl(WB(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),Fl(X7(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),Fl(X7(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?Fl({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Ii(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=Jx(this.rgba);return typeof t=="number"?Fl({h:t,s:n.s,l:n.l,a:n.a}):Ii(n.h)},e.prototype.isEqual=function(t){return this.toHex()===Fl(t).toHex()},e}(),Fl=function(e){return e instanceof m5?e:new m5(e)},Y7=[],H4e=function(e){e.forEach(function(t){Y7.indexOf(t)<0&&(t(m5,p5),Y7.push(t))})};function W4e(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var f=this.toRgb(),h=1/0,p="black";if(!o.length)for(var g in n)o[g]=new e(n[g]).toRgb();for(var v in n){var y=(a=f,c=o[v],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));yi===t[o]);if(e!==null&&t!==null){const i=Object.keys(e),o=Object.keys(t);return i.length!==o.length?!1:i.every(s=>e[s]===t[s])}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toRgbArray(e){e=e??[];const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,r,i]=kg.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=r,this._components[3]*=i,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,r]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(r*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}normalize(e){let t,n,r,i;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;t=(o>>16&255)/255,n=(o>>8&255)/255,r=(o&255)/255,i=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,r,i=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,r,i=255]=e,t/=255,n/=255,r/=255,i/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const s=kg.HEX_PATTERN.exec(e);s&&(e=`#${s[2]}`)}const o=Fl(e);o.isValid()&&({r:t,g:n,b:r,a:i}=o.rgba,t/=255,n/=255,r/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=r,this._components[3]=i,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n)}),e)}};let Vn=kg;Vn.shared=new kg;Vn.temp=new kg;Vn.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function G4e(e){return fn("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),Vn.shared.setValue(e).toHex()}function V4e(e){return fn("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),Vn.shared.setValue(e).toNumber()}function q4e(){const e=[],t=[];for(let r=0;r<32;r++)e[r]=r,t[r]=r;e[Dt.NORMAL_NPM]=Dt.NORMAL,e[Dt.ADD_NPM]=Dt.ADD,e[Dt.SCREEN_NPM]=Dt.SCREEN,t[Dt.NORMAL]=Dt.NORMAL_NPM,t[Dt.ADD]=Dt.ADD_NPM,t[Dt.SCREEN]=Dt.SCREEN_NPM;const n=[];return n.push(t),n.push(e),n}const Xne=q4e();function Yne(e,t){return Xne[t?1:0][e]}function X4e(e,t=null){const n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let r=0,i=0;r>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function K7(e){return!(e&e-1)&&!!e}function Q7(e){let t=(e>65535?1:0)<<4;e>>>=t;let n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function Ag(e,t,n){const r=e.length;let i;if(t>=r||n===0)return;n=t+n>r?r-t:n;const o=r-n;for(i=t;i(e.Renderer="renderer",e.Application="application",e.RendererSystem="renderer-webgl-system",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererSystem="renderer-canvas-system",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e))(ot||{});const v5=e=>{if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");e={...typeof e.extension!="object"?{type:e.extension}:e.extension,ref:e}}if(typeof e=="object")e={...e};else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},tV=(e,t)=>v5(e).priority??t,wt={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(v5).forEach(t=>{t.type.forEach(n=>{var r,i;return(i=(r=this._removeHandlers)[n])==null?void 0:i.call(r,t)})}),this},add(...e){return e.map(v5).forEach(t=>{t.type.forEach(n=>{const r=this._addHandlers,i=this._queue;r[n]?r[n](t):(i[n]=i[n]||[],i[n].push(t))})}),this},handle(e,t,n){const r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw new Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;const o=this._queue;return o[e]&&(o[e].forEach(s=>t(s)),delete o[e]),this},handleByMap(e,t){return this.handle(e,n=>{t[n.name]=n.ref},n=>{delete t[n.name]})},handleByList(e,t,n=-1){return this.handle(e,r=>{t.includes(r.ref)||(t.push(r.ref),t.sort((i,o)=>tV(o,n)-tV(i,n)))},r=>{const i=t.indexOf(r.ref);i!==-1&&t.splice(i,1)})}};class y5{constructor(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const eze=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` -`);function tze(e){let t="";for(let n=0;n0&&(t+=` -else `),n=0;--r){const i=b5[r];if(i.test&&i.test(e,n))return new i(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class El{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,n,r,i,o,s,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:u,items:f}=this;this._aliasCount++;for(let h=0,p=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(El.prototype,{dispatch:{value:El.prototype.emit},run:{value:El.prototype.emit}});class ew{constructor(t=0,n=0){this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new El("setRealSize"),this.onUpdate=new El("update"),this.onError=new El("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,n,r){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,n){return!1}}class Kw extends ew{constructor(t,n){const{width:r,height:i}=n||{};if(!r||!i)throw new Error("BufferResource width or height invalid");super(r,i),this.data=t}upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ml.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}dispose(){this.data=null}static test(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array}}const rze={scaleMode:ku.NEAREST,format:Ve.RGBA,alphaMode:Ml.NPM},Nm=class extends Xw{constructor(e=null,t=null){super(),t=Object.assign({},Nm.defaultOptions,t);const{alphaMode:n,mipmap:r,anisotropicLevel:i,scaleMode:o,width:s,height:a,wrapMode:c,format:u,type:f,target:h,resolution:p,resourceOptions:g}=t;e&&!(e instanceof ew)&&(e=Jne(e,g),e.internal=!0),this.resolution=p||nt.RESOLUTION,this.width=Math.round((s||0)*this.resolution)/this.resolution,this.height=Math.round((a||0)*this.resolution)/this.resolution,this._mipmap=r,this.anisotropicLevel=i,this._wrapMode=c,this._scaleMode=o,this.format=u,this.type=f,this.target=h,this.alphaMode=n,this.uid=Yp(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=s>0&&a>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=K7(this.realWidth)&&K7(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete sd[this.cacheId],delete zl[this.cacheId],this.cacheId=null),this.dispose(),Nm.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=nt.STRICT_TEXTURE_CACHE){const r=typeof e=="string";let i=null;if(r)i=e;else{if(!e._pixiId){const s=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${s}_${Yp()}`}i=e._pixiId}let o=sd[i];if(r&&n&&!o)throw new Error(`The cacheId "${i}" does not exist in BaseTextureCache.`);return o||(o=new Nm(e,t),o.cacheId=i,Nm.addToCache(o,i)),o}static fromBuffer(e,t,n,r){e=e||new Float32Array(t*n*4);const i=new Kw(e,{width:t,height:n}),o=e instanceof Float32Array?Ot.FLOAT:Ot.UNSIGNED_BYTE;return new Nm(i,Object.assign({},rze,{type:o},r))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),sd[t]&&sd[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),sd[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=sd[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete sd[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t1){for(let h=0;h(e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC",e))(Qi||{});class Lt{constructor(t=0,n=0){this.x=0,this.y=0,this.x=t,this.y=n}clone(){return new Lt(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,n=t){return this.x=t,this.y=n,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const yS=[new Lt,new Lt,new Lt,new Lt];class Zt{constructor(t=0,n=0,r=0,i=0){this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=Qi.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Zt(0,0,0,0)}clone(){return new Zt(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&nt.right?t.right:this.right)<=O)return!1;const N=this.yt.bottom?t.bottom:this.bottom)>N}const r=this.left,i=this.right,o=this.top,s=this.bottom;if(i<=r||s<=o)return!1;const a=yS[0].set(t.left,t.top),c=yS[1].set(t.left,t.bottom),u=yS[2].set(t.right,t.top),f=yS[3].set(t.right,t.bottom);if(u.x<=a.x||c.y<=a.y)return!1;const h=Math.sign(n.a*n.d-n.b*n.c);if(h===0||(n.apply(a,a),n.apply(c,c),n.apply(u,u),n.apply(f,f),Math.max(a.x,c.x,u.x,f.x)<=r||Math.min(a.x,c.x,u.x,f.x)>=i||Math.max(a.y,c.y,u.y,f.y)<=o||Math.min(a.y,c.y,u.y,f.y)>=s))return!1;const p=h*(c.y-a.y),g=h*(a.x-c.x),v=p*r+g*o,y=p*i+g*o,S=p*r+g*s,w=p*i+g*s;if(Math.max(v,y,S,w)<=p*a.x+g*a.y||Math.min(v,y,S,w)>=p*f.x+g*f.y)return!1;const b=h*(a.y-u.y),x=h*(u.x-a.x),E=b*r+x*o,I=b*i+x*o,A=b*r+x*s,k=b*i+x*s;return!(Math.max(E,I,A,k)<=b*a.x+x*a.y||Math.min(E,I,A,k)>=b*f.x+x*f.y)}pad(t=0,n=t){return this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this}fit(t){const n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(o-i,0),this}ceil(t=1,n=.001){const r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this}enlarge(t){const n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=o-i,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class xU{constructor(t=0,n=0,r=0){this.x=t,this.y=n,this.radius=r,this.type=Qi.CIRC}clone(){return new xU(this.x,this.y,this.radius)}contains(t,n){if(this.radius<=0)return!1;const r=this.radius*this.radius;let i=this.x-t,o=this.y-n;return i*=i,o*=o,i+o<=r}getBounds(){return new Zt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class wU{constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i,this.type=Qi.ELIP}clone(){return new wU(this.x,this.y,this.width,this.height)}contains(t,n){if(this.width<=0||this.height<=0)return!1;let r=(t-this.x)/this.width,i=(n-this.y)/this.height;return r*=r,i*=i,r+i<=1}getBounds(){return new Zt(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class Ig{constructor(...t){let n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){const r=[];for(let i=0,o=n.length;in!=f>n&&t<(u-a)*((n-c)/(f-c))+a&&(r=!r)}return r}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((t,n)=>`${t}, ${n}`,"")}]`}}class _U{constructor(t=0,n=0,r=0,i=0,o=20){this.x=t,this.y=n,this.width=r,this.height=i,this.radius=o,this.type=Qi.RREC}clone(){return new _U(this.x,this.y,this.width,this.height,this.radius)}contains(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;let i=t-(this.x+r),o=n-(this.y+r);const s=r*r;if(i*i+o*o<=s||(i=t-(this.x+this.width-r),i*i+o*o<=s)||(o=n-(this.y+this.height-r),i*i+o*o<=s)||(i=t-(this.x+r),i*i+o*o<=s))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}class Cr{constructor(t=1,n=0,r=0,i=1,o=0,s=0){this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,n,r,i,o,s){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s,this}toArray(t,n){this.array||(this.array=new Float32Array(9));const r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r}apply(t,n){n=n||new Lt;const r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n}applyInverse(t,n){n=n||new Lt;const r=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return n.x=this.d*r*i+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n}translate(t,n){return this.tx+=t,this.ty+=n,this}scale(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this}rotate(t){const n=Math.cos(t),r=Math.sin(t),i=this.a,o=this.c,s=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this}append(t){const n=this.a,r=this.b,i=this.c,o=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this}setTransform(t,n,r,i,o,s,a,c,u){return this.a=Math.cos(a+u)*o,this.b=Math.sin(a+u)*o,this.c=-Math.sin(a-c)*s,this.d=Math.cos(a-c)*s,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this}prepend(t){const n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this}decompose(t){const n=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-i,o),c=Math.atan2(r,n),u=Math.abs(a+c);return u<1e-5||Math.abs(nT-u)<1e-5?(t.rotation=c,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=c),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*n+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t}invert(){const t=this.a,n=this.b,r=this.c,i=this.d,o=this.tx,s=t*i-n*r;return this.a=i/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-i*o)/s,this.ty=-(t*this.ty-n*o)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new Cr;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new Cr}static get TEMP_MATRIX(){return new Cr}}const rp=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],ip=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],op=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],sp=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],w5=[],tre=[],bS=Math.sign;function dze(){for(let e=0;e<16;e++){const t=[];w5.push(t);for(let n=0;n<16;n++){const r=bS(rp[e]*rp[n]+op[e]*ip[n]),i=bS(ip[e]*rp[n]+sp[e]*ip[n]),o=bS(rp[e]*op[n]+op[e]*sp[n]),s=bS(ip[e]*op[n]+sp[e]*sp[n]);for(let a=0;a<16;a++)if(rp[a]===r&&ip[a]===i&&op[a]===o&&sp[a]===s){t.push(a);break}}}for(let e=0;e<16;e++){const t=new Cr;t.set(rp[e],ip[e],op[e],sp[e],0,0),tre.push(t)}}dze();const Mr={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>rp[e],uY:e=>ip[e],vX:e=>op[e],vY:e=>sp[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>w5[e][t],sub:(e,t)=>w5[e][Mr.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)===2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?Mr.S:Mr.N:Math.abs(t)*2<=Math.abs(e)?e>0?Mr.E:Mr.W:t>0?e>0?Mr.SE:Mr.SW:e>0?Mr.NE:Mr.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=tre[Mr.inv(t)];i.tx=n,i.ty=r,e.append(i)}};class Md{constructor(t,n,r=0,i=0){this._x=r,this._y=i,this.cb=t,this.scope=n}clone(t=this.cb,n=this.scope){return new Md(t,n,this._x,this._y)}set(t=0,n=t){return(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}const nre=class{constructor(){this.worldTransform=new Cr,this.localTransform=new Cr,this.position=new Md(this.onChange,this,0,0),this.scale=new Md(this.onChange,this,1,1),this.pivot=new Md(this.onChange,this,0,0),this.skew=new Md(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(e){const t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){const n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}}setFromMatrix(e){e.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}};let SU=nre;SU.IDENTITY=new nre;var fze=`varying vec2 vTextureCoord; +Deprecated since v${e}`),console.warn(r))),G7[t]=!0}let WB;function j4e(){return typeof WB>"u"&&(WB=function(){var n;const t={stencil:!0,failIfMajorPerformanceCaveat:nt.FAIL_IF_MAJOR_PERFORMANCE_CAVEAT};try{if(!nt.ADAPTER.getWebGLRenderingContext())return!1;const r=nt.ADAPTER.createCanvas();let i=r.getContext("webgl",t)||r.getContext("experimental-webgl",t);const o=!!((n=i==null?void 0:i.getContextAttributes())!=null&&n.stencil);if(i){const s=i.getExtension("WEBGL_lose_context");s&&s.loseContext()}return i=null,o}catch{return!1}}()),WB}var U4e={grad:.9,turn:360,rad:360/(2*Math.PI)},gu=function(e){return typeof e=="string"?e.length>0:typeof e=="number"},Ii=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},_a=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e>t?e:t},Vne=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},V7=function(e){return{r:_a(e.r,0,255),g:_a(e.g,0,255),b:_a(e.b,0,255),a:_a(e.a)}},GB=function(e){return{r:Ii(e.r),g:Ii(e.g),b:Ii(e.b),a:Ii(e.a,3)}},H4e=/^#([0-9a-f]{3,8})$/i,vS=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},qne=function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=Math.max(t,n,r),s=o-Math.min(t,n,r),a=s?o===t?(n-r)/s:o===n?2+(r-t)/s:4+(t-n)/s:0;return{h:60*(a<0?a+6:a),s:o?s/o*100:0,v:o/255*100,a:i}},Xne=function(e){var t=e.h,n=e.s,r=e.v,i=e.a;t=t/360*6,n/=100,r/=100;var o=Math.floor(t),s=r*(1-n),a=r*(1-(t-o)*n),c=r*(1-(1-t+o)*n),u=o%6;return{r:255*[r,a,s,s,c,r][u],g:255*[c,r,r,a,s,s][u],b:255*[s,s,c,r,r,a][u],a:i}},q7=function(e){return{h:Vne(e.h),s:_a(e.s,0,100),l:_a(e.l,0,100),a:_a(e.a)}},X7=function(e){return{h:Ii(e.h),s:Ii(e.s),l:Ii(e.l),a:Ii(e.a,3)}},Y7=function(e){return Xne((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},e1=function(e){return{h:(t=qne(e)).h,s:(i=(200-(n=t.s))*(r=t.v)/100)>0&&i<200?n*r/100/(i<=100?i:200-i)*100:0,l:i/2,a:t.a};var t,n,r,i},W4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,G4e=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,V4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,q4e=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,v5={string:[[function(e){var t=H4e.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?Ii(parseInt(e[3]+e[3],16)/255,2):1}:e.length===6||e.length===8?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:e.length===8?Ii(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=V4e.exec(e)||q4e.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:V7({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=W4e.exec(e)||G4e.exec(e);if(!t)return null;var n,r,i=q7({h:(n=t[1],r=t[2],r===void 0&&(r="deg"),Number(n)*(U4e[r]||1)),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)});return Y7(i)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,i=e.a,o=i===void 0?1:i;return gu(t)&&gu(n)&&gu(r)?V7({r:Number(t),g:Number(n),b:Number(r),a:Number(o)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,i=e.a,o=i===void 0?1:i;if(!gu(t)||!gu(n)||!gu(r))return null;var s=q7({h:Number(t),s:Number(n),l:Number(r),a:Number(o)});return Y7(s)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,i=e.a,o=i===void 0?1:i;if(!gu(t)||!gu(n)||!gu(r))return null;var s=function(a){return{h:Vne(a.h),s:_a(a.s,0,100),v:_a(a.v,0,100),a:_a(a.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(o)});return Xne(s)},"hsv"]]},K7=function(e,t){for(var n=0;n=.5},e.prototype.toHex=function(){return t=GB(this.rgba),n=t.r,r=t.g,i=t.b,s=(o=t.a)<1?vS(Ii(255*o)):"","#"+vS(n)+vS(r)+vS(i)+s;var t,n,r,i,o,s},e.prototype.toRgb=function(){return GB(this.rgba)},e.prototype.toRgbString=function(){return t=GB(this.rgba),n=t.r,r=t.g,i=t.b,(o=t.a)<1?"rgba("+n+", "+r+", "+i+", "+o+")":"rgb("+n+", "+r+", "+i+")";var t,n,r,i,o},e.prototype.toHsl=function(){return X7(e1(this.rgba))},e.prototype.toHslString=function(){return t=X7(e1(this.rgba)),n=t.h,r=t.s,i=t.l,(o=t.a)<1?"hsla("+n+", "+r+"%, "+i+"%, "+o+")":"hsl("+n+", "+r+"%, "+i+"%)";var t,n,r,i,o},e.prototype.toHsv=function(){return t=qne(this.rgba),{h:Ii(t.h),s:Ii(t.s),v:Ii(t.v),a:Ii(t.a,3)};var t},e.prototype.invert=function(){return jl({r:255-(t=this.rgba).r,g:255-t.g,b:255-t.b,a:t.a});var t},e.prototype.saturate=function(t){return t===void 0&&(t=.1),jl(VB(this.rgba,t))},e.prototype.desaturate=function(t){return t===void 0&&(t=.1),jl(VB(this.rgba,-t))},e.prototype.grayscale=function(){return jl(VB(this.rgba,-1))},e.prototype.lighten=function(t){return t===void 0&&(t=.1),jl(Q7(this.rgba,t))},e.prototype.darken=function(t){return t===void 0&&(t=.1),jl(Q7(this.rgba,-t))},e.prototype.rotate=function(t){return t===void 0&&(t=15),this.hue(this.hue()+t)},e.prototype.alpha=function(t){return typeof t=="number"?jl({r:(n=this.rgba).r,g:n.g,b:n.b,a:t}):Ii(this.rgba.a,3);var n},e.prototype.hue=function(t){var n=e1(this.rgba);return typeof t=="number"?jl({h:t,s:n.s,l:n.l,a:n.a}):Ii(n.h)},e.prototype.isEqual=function(t){return this.toHex()===jl(t).toHex()},e}(),jl=function(e){return e instanceof y5?e:new y5(e)},J7=[],Y4e=function(e){e.forEach(function(t){J7.indexOf(t)<0&&(t(y5,v5),J7.push(t))})};function K4e(e,t){var n={white:"#ffffff",bisque:"#ffe4c4",blue:"#0000ff",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",antiquewhite:"#faebd7",aqua:"#00ffff",azure:"#f0ffff",whitesmoke:"#f5f5f5",papayawhip:"#ffefd5",plum:"#dda0dd",blanchedalmond:"#ffebcd",black:"#000000",gold:"#ffd700",goldenrod:"#daa520",gainsboro:"#dcdcdc",cornsilk:"#fff8dc",cornflowerblue:"#6495ed",burlywood:"#deb887",aquamarine:"#7fffd4",beige:"#f5f5dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkkhaki:"#bdb76b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",peachpuff:"#ffdab9",darkmagenta:"#8b008b",darkred:"#8b0000",darkorchid:"#9932cc",darkorange:"#ff8c00",darkslateblue:"#483d8b",gray:"#808080",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",deeppink:"#ff1493",deepskyblue:"#00bfff",wheat:"#f5deb3",firebrick:"#b22222",floralwhite:"#fffaf0",ghostwhite:"#f8f8ff",darkviolet:"#9400d3",magenta:"#ff00ff",green:"#008000",dodgerblue:"#1e90ff",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",blueviolet:"#8a2be2",forestgreen:"#228b22",lawngreen:"#7cfc00",indianred:"#cd5c5c",indigo:"#4b0082",fuchsia:"#ff00ff",brown:"#a52a2a",maroon:"#800000",mediumblue:"#0000cd",lightcoral:"#f08080",darkturquoise:"#00ced1",lightcyan:"#e0ffff",ivory:"#fffff0",lightyellow:"#ffffe0",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",linen:"#faf0e6",mediumaquamarine:"#66cdaa",lemonchiffon:"#fffacd",lime:"#00ff00",khaki:"#f0e68c",mediumseagreen:"#3cb371",limegreen:"#32cd32",mediumspringgreen:"#00fa9a",lightskyblue:"#87cefa",lightblue:"#add8e6",midnightblue:"#191970",lightpink:"#ffb6c1",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",mintcream:"#f5fffa",lightslategray:"#778899",lightslategrey:"#778899",navajowhite:"#ffdead",navy:"#000080",mediumvioletred:"#c71585",powderblue:"#b0e0e6",palegoldenrod:"#eee8aa",oldlace:"#fdf5e6",paleturquoise:"#afeeee",mediumturquoise:"#48d1cc",mediumorchid:"#ba55d3",rebeccapurple:"#663399",lightsteelblue:"#b0c4de",mediumslateblue:"#7b68ee",thistle:"#d8bfd8",tan:"#d2b48c",orchid:"#da70d6",mediumpurple:"#9370db",purple:"#800080",pink:"#ffc0cb",skyblue:"#87ceeb",springgreen:"#00ff7f",palegreen:"#98fb98",red:"#ff0000",yellow:"#ffff00",slateblue:"#6a5acd",lavenderblush:"#fff0f5",peru:"#cd853f",palevioletred:"#db7093",violet:"#ee82ee",teal:"#008080",slategray:"#708090",slategrey:"#708090",aliceblue:"#f0f8ff",darkseagreen:"#8fbc8f",darkolivegreen:"#556b2f",greenyellow:"#adff2f",seagreen:"#2e8b57",seashell:"#fff5ee",tomato:"#ff6347",silver:"#c0c0c0",sienna:"#a0522d",lavender:"#e6e6fa",lightgreen:"#90ee90",orange:"#ffa500",orangered:"#ff4500",steelblue:"#4682b4",royalblue:"#4169e1",turquoise:"#40e0d0",yellowgreen:"#9acd32",salmon:"#fa8072",saddlebrown:"#8b4513",sandybrown:"#f4a460",rosybrown:"#bc8f8f",darksalmon:"#e9967a",lightgoldenrodyellow:"#fafad2",snow:"#fffafa",lightgrey:"#d3d3d3",lightgray:"#d3d3d3",dimgray:"#696969",dimgrey:"#696969",olivedrab:"#6b8e23",olive:"#808000"},r={};for(var i in n)r[n[i]]=i;var o={};e.prototype.toName=function(s){if(!(this.rgba.a||this.rgba.r||this.rgba.g||this.rgba.b))return"transparent";var a,c,u=r[this.toHex()];if(u)return u;if(s!=null&&s.closest){var f=this.toRgb(),h=1/0,p="black";if(!o.length)for(var g in n)o[g]=new e(n[g]).toRgb();for(var v in n){var y=(a=f,c=o[v],Math.pow(a.r-c.r,2)+Math.pow(a.g-c.g,2)+Math.pow(a.b-c.b,2));yi===t[o]);if(e!==null&&t!==null){const i=Object.keys(e),o=Object.keys(t);return i.length!==o.length?!1:i.every(s=>e[s]===t[s])}return e===t}toRgba(){const[e,t,n,r]=this._components;return{r:e,g:t,b:n,a:r}}toRgb(){const[e,t,n]=this._components;return{r:e,g:t,b:n}}toRgbaString(){const[e,t,n]=this.toUint8RgbArray();return`rgba(${e},${t},${n},${this.alpha})`}toUint8RgbArray(e){const[t,n,r]=this._components;return e=e??[],e[0]=Math.round(t*255),e[1]=Math.round(n*255),e[2]=Math.round(r*255),e}toRgbArray(e){e=e??[];const[t,n,r]=this._components;return e[0]=t,e[1]=n,e[2]=r,e}toNumber(){return this._int}toLittleEndianNumber(){const e=this._int;return(e>>16)+(e&65280)+((e&255)<<16)}multiply(e){const[t,n,r,i]=Ag.temp.setValue(e)._components;return this._components[0]*=t,this._components[1]*=n,this._components[2]*=r,this._components[3]*=i,this.refreshInt(),this._value=null,this}premultiply(e,t=!0){return t&&(this._components[0]*=e,this._components[1]*=e,this._components[2]*=e),this._components[3]=e,this.refreshInt(),this._value=null,this}toPremultiplied(e,t=!0){if(e===1)return(255<<24)+this._int;if(e===0)return t?0:this._int;let n=this._int>>16&255,r=this._int>>8&255,i=this._int&255;return t&&(n=n*e+.5|0,r=r*e+.5|0,i=i*e+.5|0),(e*255<<24)+(n<<16)+(r<<8)+i}toHex(){const e=this._int.toString(16);return`#${"000000".substring(0,6-e.length)+e}`}toHexa(){const t=Math.round(this._components[3]*255).toString(16);return this.toHex()+"00".substring(0,2-t.length)+t}setAlpha(e){return this._components[3]=this._clamp(e),this}round(e){const[t,n,r]=this._components;return this._components[0]=Math.round(t*e)/e,this._components[1]=Math.round(n*e)/e,this._components[2]=Math.round(r*e)/e,this.refreshInt(),this._value=null,this}toArray(e){e=e??[];const[t,n,r,i]=this._components;return e[0]=t,e[1]=n,e[2]=r,e[3]=i,e}normalize(e){let t,n,r,i;if((typeof e=="number"||e instanceof Number)&&e>=0&&e<=16777215){const o=e;t=(o>>16&255)/255,n=(o>>8&255)/255,r=(o&255)/255,i=1}else if((Array.isArray(e)||e instanceof Float32Array)&&e.length>=3&&e.length<=4)e=this._clamp(e),[t,n,r,i=1]=e;else if((e instanceof Uint8Array||e instanceof Uint8ClampedArray)&&e.length>=3&&e.length<=4)e=this._clamp(e,0,255),[t,n,r,i=255]=e,t/=255,n/=255,r/=255,i/=255;else if(typeof e=="string"||typeof e=="object"){if(typeof e=="string"){const s=Ag.HEX_PATTERN.exec(e);s&&(e=`#${s[2]}`)}const o=jl(e);o.isValid()&&({r:t,g:n,b:r,a:i}=o.rgba,t/=255,n/=255,r/=255)}if(t!==void 0)this._components[0]=t,this._components[1]=n,this._components[2]=r,this._components[3]=i,this.refreshInt();else throw new Error(`Unable to convert color ${e}`)}refreshInt(){this._clamp(this._components);const[e,t,n]=this._components;this._int=(e*255<<16)+(t*255<<8)+(n*255|0)}_clamp(e,t=0,n=1){return typeof e=="number"?Math.min(Math.max(e,t),n):(e.forEach((r,i)=>{e[i]=Math.min(Math.max(r,t),n)}),e)}};let Vn=Ag;Vn.shared=new Ag;Vn.temp=new Ag;Vn.HEX_PATTERN=/^(#|0x)?(([a-f0-9]{3}){1,2}([a-f0-9]{2})?)$/i;function Q4e(e){return fn("7.2.0","utils.hex2string is deprecated, use Color#toHex instead"),Vn.shared.setValue(e).toHex()}function J4e(e){return fn("7.2.0","utils.rgb2hex is deprecated, use Color#toNumber instead"),Vn.shared.setValue(e).toNumber()}function Z4e(){const e=[],t=[];for(let r=0;r<32;r++)e[r]=r,t[r]=r;e[Lt.NORMAL_NPM]=Lt.NORMAL,e[Lt.ADD_NPM]=Lt.ADD,e[Lt.SCREEN_NPM]=Lt.SCREEN,t[Lt.NORMAL]=Lt.NORMAL_NPM,t[Lt.ADD]=Lt.ADD_NPM,t[Lt.SCREEN]=Lt.SCREEN_NPM;const n=[];return n.push(t),n.push(e),n}const Yne=Z4e();function Kne(e,t){return Yne[t?1:0][e]}function eze(e,t=null){const n=e*6;if(t=t||new Uint16Array(n),t.length!==n)throw new Error(`Out buffer length is incorrect, got ${t.length} and expected ${n}`);for(let r=0,i=0;r>>1,e|=e>>>2,e|=e>>>4,e|=e>>>8,e|=e>>>16,e+1}function Z7(e){return!(e&e-1)&&!!e}function eV(e){let t=(e>65535?1:0)<<4;e>>>=t;let n=(e>255?1:0)<<3;return e>>>=n,t|=n,n=(e>15?1:0)<<2,e>>>=n,t|=n,n=(e>3?1:0)<<1,e>>>=n,t|=n,t|e>>1}function Ig(e,t,n){const r=e.length;let i;if(t>=r||n===0)return;n=t+n>r?r-t:n;const o=r-n;for(i=t;i(e.Renderer="renderer",e.Application="application",e.RendererSystem="renderer-webgl-system",e.RendererPlugin="renderer-webgl-plugin",e.CanvasRendererSystem="renderer-canvas-system",e.CanvasRendererPlugin="renderer-canvas-plugin",e.Asset="asset",e.LoadParser="load-parser",e.ResolveParser="resolve-parser",e.CacheParser="cache-parser",e.DetectionParser="detection-parser",e))(ot||{});const x5=e=>{if(typeof e=="function"||typeof e=="object"&&e.extension){if(!e.extension)throw new Error("Extension class must have an extension object");e={...typeof e.extension!="object"?{type:e.extension}:e.extension,ref:e}}if(typeof e=="object")e={...e};else throw new Error("Invalid extension type");return typeof e.type=="string"&&(e.type=[e.type]),e},iV=(e,t)=>x5(e).priority??t,wt={_addHandlers:{},_removeHandlers:{},_queue:{},remove(...e){return e.map(x5).forEach(t=>{t.type.forEach(n=>{var r,i;return(i=(r=this._removeHandlers)[n])==null?void 0:i.call(r,t)})}),this},add(...e){return e.map(x5).forEach(t=>{t.type.forEach(n=>{const r=this._addHandlers,i=this._queue;r[n]?r[n](t):(i[n]=i[n]||[],i[n].push(t))})}),this},handle(e,t,n){const r=this._addHandlers,i=this._removeHandlers;if(r[e]||i[e])throw new Error(`Extension type ${e} already has a handler`);r[e]=t,i[e]=n;const o=this._queue;return o[e]&&(o[e].forEach(s=>t(s)),delete o[e]),this},handleByMap(e,t){return this.handle(e,n=>{t[n.name]=n.ref},n=>{delete t[n.name]})},handleByList(e,t,n=-1){return this.handle(e,r=>{t.includes(r.ref)||(t.push(r.ref),t.sort((i,o)=>iV(o,n)-iV(i,n)))},r=>{const i=t.indexOf(r.ref);i!==-1&&t.splice(i,1)})}};class w5{constructor(t){typeof t=="number"?this.rawBinaryData=new ArrayBuffer(t):t instanceof Uint8Array?this.rawBinaryData=t.buffer:this.rawBinaryData=t,this.uint32View=new Uint32Array(this.rawBinaryData),this.float32View=new Float32Array(this.rawBinaryData)}get int8View(){return this._int8View||(this._int8View=new Int8Array(this.rawBinaryData)),this._int8View}get uint8View(){return this._uint8View||(this._uint8View=new Uint8Array(this.rawBinaryData)),this._uint8View}get int16View(){return this._int16View||(this._int16View=new Int16Array(this.rawBinaryData)),this._int16View}get uint16View(){return this._uint16View||(this._uint16View=new Uint16Array(this.rawBinaryData)),this._uint16View}get int32View(){return this._int32View||(this._int32View=new Int32Array(this.rawBinaryData)),this._int32View}view(t){return this[`${t}View`]}destroy(){this.rawBinaryData=null,this._int8View=null,this._uint8View=null,this._int16View=null,this._uint16View=null,this._int32View=null,this.uint32View=null,this.float32View=null}static sizeOf(t){switch(t){case"int8":case"uint8":return 1;case"int16":case"uint16":return 2;case"int32":case"uint32":case"float32":return 4;default:throw new Error(`${t} isn't a valid view type`)}}}const sze=["precision mediump float;","void main(void){","float test = 0.1;","%forloop%","gl_FragColor = vec4(0.0);","}"].join(` +`);function aze(e){let t="";for(let n=0;n0&&(t+=` +else `),n=0;--r){const i=_5[r];if(i.test&&i.test(e,n))return new i(e,t)}throw new Error("Unrecognized source type to auto-detect Resource")}class Cl{constructor(t){this.items=[],this._name=t,this._aliasCount=0}emit(t,n,r,i,o,s,a,c){if(arguments.length>8)throw new Error("max arguments reached");const{name:u,items:f}=this;this._aliasCount++;for(let h=0,p=f.length;h0&&this.items.length>1&&(this._aliasCount=0,this.items=this.items.slice(0))}add(t){return t[this._name]&&(this.ensureNonAliasedItems(),this.remove(t),this.items.push(t)),this}remove(t){const n=this.items.indexOf(t);return n!==-1&&(this.ensureNonAliasedItems(),this.items.splice(n,1)),this}contains(t){return this.items.includes(t)}removeAll(){return this.ensureNonAliasedItems(),this.items.length=0,this}destroy(){this.removeAll(),this.items=null,this._name=null}get empty(){return this.items.length===0}get name(){return this._name}}Object.defineProperties(Cl.prototype,{dispatch:{value:Cl.prototype.emit},run:{value:Cl.prototype.emit}});class nw{constructor(t=0,n=0){this._width=t,this._height=n,this.destroyed=!1,this.internal=!1,this.onResize=new Cl("setRealSize"),this.onUpdate=new Cl("update"),this.onError=new Cl("onError")}bind(t){this.onResize.add(t),this.onUpdate.add(t),this.onError.add(t),(this._width||this._height)&&this.onResize.emit(this._width,this._height)}unbind(t){this.onResize.remove(t),this.onUpdate.remove(t),this.onError.remove(t)}resize(t,n){(t!==this._width||n!==this._height)&&(this._width=t,this._height=n,this.onResize.emit(t,n))}get valid(){return!!this._width&&!!this._height}update(){this.destroyed||this.onUpdate.emit()}load(){return Promise.resolve(this)}get width(){return this._width}get height(){return this._height}style(t,n,r){return!1}dispose(){}destroy(){this.destroyed||(this.destroyed=!0,this.dispose(),this.onError.removeAll(),this.onError=null,this.onResize.removeAll(),this.onResize=null,this.onUpdate.removeAll(),this.onUpdate=null)}static test(t,n){return!1}}class Qw extends nw{constructor(t,n){const{width:r,height:i}=n||{};if(!r||!i)throw new Error("BufferResource width or height invalid");super(r,i),this.data=t}upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ll.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}dispose(){this.data=null}static test(t){return t instanceof Float32Array||t instanceof Uint8Array||t instanceof Uint32Array}}const cze={scaleMode:Au.NEAREST,format:Ve.RGBA,alphaMode:Ll.NPM},Bm=class extends Yw{constructor(e=null,t=null){super(),t=Object.assign({},Bm.defaultOptions,t);const{alphaMode:n,mipmap:r,anisotropicLevel:i,scaleMode:o,width:s,height:a,wrapMode:c,format:u,type:f,target:h,resolution:p,resourceOptions:g}=t;e&&!(e instanceof nw)&&(e=Zne(e,g),e.internal=!0),this.resolution=p||nt.RESOLUTION,this.width=Math.round((s||0)*this.resolution)/this.resolution,this.height=Math.round((a||0)*this.resolution)/this.resolution,this._mipmap=r,this.anisotropicLevel=i,this._wrapMode=c,this._scaleMode=o,this.format=u,this.type=f,this.target=h,this.alphaMode=n,this.uid=Kp(),this.touched=0,this.isPowerOfTwo=!1,this._refreshPOT(),this._glTextures={},this.dirtyId=0,this.dirtyStyleId=0,this.cacheId=null,this.valid=s>0&&a>0,this.textureCacheIds=[],this.destroyed=!1,this.resource=null,this._batchEnabled=0,this._batchLocation=0,this.parentTextureArray=null,this.setResource(e)}get realWidth(){return Math.round(this.width*this.resolution)}get realHeight(){return Math.round(this.height*this.resolution)}get mipmap(){return this._mipmap}set mipmap(e){this._mipmap!==e&&(this._mipmap=e,this.dirtyStyleId++)}get scaleMode(){return this._scaleMode}set scaleMode(e){this._scaleMode!==e&&(this._scaleMode=e,this.dirtyStyleId++)}get wrapMode(){return this._wrapMode}set wrapMode(e){this._wrapMode!==e&&(this._wrapMode=e,this.dirtyStyleId++)}setStyle(e,t){let n;return e!==void 0&&e!==this.scaleMode&&(this.scaleMode=e,n=!0),t!==void 0&&t!==this.mipmap&&(this.mipmap=t,n=!0),n&&this.dirtyStyleId++,this}setSize(e,t,n){return n=n||this.resolution,this.setRealSize(e*n,t*n,n)}setRealSize(e,t,n){return this.resolution=n||this.resolution,this.width=Math.round(e)/this.resolution,this.height=Math.round(t)/this.resolution,this._refreshPOT(),this.update(),this}_refreshPOT(){this.isPowerOfTwo=Z7(this.realWidth)&&Z7(this.realHeight)}setResolution(e){const t=this.resolution;return t===e?this:(this.resolution=e,this.valid&&(this.width=Math.round(this.width*t)/e,this.height=Math.round(this.height*t)/e,this.emit("update",this)),this._refreshPOT(),this)}setResource(e){if(this.resource===e)return this;if(this.resource)throw new Error("Resource can be set only once");return e.bind(this),this.resource=e,this}update(){this.valid?(this.dirtyId++,this.dirtyStyleId++,this.emit("update",this)):this.width>0&&this.height>0&&(this.valid=!0,this.emit("loaded",this),this.emit("update",this))}onError(e){this.emit("error",this,e)}destroy(){this.resource&&(this.resource.unbind(this),this.resource.internal&&this.resource.destroy(),this.resource=null),this.cacheId&&(delete ad[this.cacheId],delete Ul[this.cacheId],this.cacheId=null),this.dispose(),Bm.removeFromCache(this),this.textureCacheIds=null,this.destroyed=!0}dispose(){this.emit("dispose",this)}castToBaseTexture(){return this}static from(e,t,n=nt.STRICT_TEXTURE_CACHE){const r=typeof e=="string";let i=null;if(r)i=e;else{if(!e._pixiId){const s=(t==null?void 0:t.pixiIdPrefix)||"pixiid";e._pixiId=`${s}_${Kp()}`}i=e._pixiId}let o=ad[i];if(r&&n&&!o)throw new Error(`The cacheId "${i}" does not exist in BaseTextureCache.`);return o||(o=new Bm(e,t),o.cacheId=i,Bm.addToCache(o,i)),o}static fromBuffer(e,t,n,r){e=e||new Float32Array(t*n*4);const i=new Qw(e,{width:t,height:n}),o=e instanceof Float32Array?Ot.FLOAT:Ot.UNSIGNED_BYTE;return new Bm(i,Object.assign({},cze,{type:o},r))}static addToCache(e,t){t&&(e.textureCacheIds.includes(t)||e.textureCacheIds.push(t),ad[t]&&ad[t]!==e&&console.warn(`BaseTexture added to the cache with an id [${t}] that already had an entry`),ad[t]=e)}static removeFromCache(e){if(typeof e=="string"){const t=ad[e];if(t){const n=t.textureCacheIds.indexOf(e);return n>-1&&t.textureCacheIds.splice(n,1),delete ad[e],t}}else if(e!=null&&e.textureCacheIds){for(let t=0;t1){for(let h=0;h(e[e.POLY=0]="POLY",e[e.RECT=1]="RECT",e[e.CIRC=2]="CIRC",e[e.ELIP=3]="ELIP",e[e.RREC=4]="RREC",e))(Qi||{});class Dt{constructor(t=0,n=0){this.x=0,this.y=0,this.x=t,this.y=n}clone(){return new Dt(this.x,this.y)}copyFrom(t){return this.set(t.x,t.y),this}copyTo(t){return t.set(this.x,this.y),t}equals(t){return t.x===this.x&&t.y===this.y}set(t=0,n=t){return this.x=t,this.y=n,this}toString(){return`[@pixi/math:Point x=${this.x} y=${this.y}]`}}const bS=[new Dt,new Dt,new Dt,new Dt];class Zt{constructor(t=0,n=0,r=0,i=0){this.x=Number(t),this.y=Number(n),this.width=Number(r),this.height=Number(i),this.type=Qi.RECT}get left(){return this.x}get right(){return this.x+this.width}get top(){return this.y}get bottom(){return this.y+this.height}static get EMPTY(){return new Zt(0,0,0,0)}clone(){return new Zt(this.x,this.y,this.width,this.height)}copyFrom(t){return this.x=t.x,this.y=t.y,this.width=t.width,this.height=t.height,this}copyTo(t){return t.x=this.x,t.y=this.y,t.width=this.width,t.height=this.height,t}contains(t,n){return this.width<=0||this.height<=0?!1:t>=this.x&&t=this.y&&nt.right?t.right:this.right)<=O)return!1;const N=this.yt.bottom?t.bottom:this.bottom)>N}const r=this.left,i=this.right,o=this.top,s=this.bottom;if(i<=r||s<=o)return!1;const a=bS[0].set(t.left,t.top),c=bS[1].set(t.left,t.bottom),u=bS[2].set(t.right,t.top),f=bS[3].set(t.right,t.bottom);if(u.x<=a.x||c.y<=a.y)return!1;const h=Math.sign(n.a*n.d-n.b*n.c);if(h===0||(n.apply(a,a),n.apply(c,c),n.apply(u,u),n.apply(f,f),Math.max(a.x,c.x,u.x,f.x)<=r||Math.min(a.x,c.x,u.x,f.x)>=i||Math.max(a.y,c.y,u.y,f.y)<=o||Math.min(a.y,c.y,u.y,f.y)>=s))return!1;const p=h*(c.y-a.y),g=h*(a.x-c.x),v=p*r+g*o,y=p*i+g*o,S=p*r+g*s,w=p*i+g*s;if(Math.max(v,y,S,w)<=p*a.x+g*a.y||Math.min(v,y,S,w)>=p*f.x+g*f.y)return!1;const b=h*(a.y-u.y),x=h*(u.x-a.x),E=b*r+x*o,I=b*i+x*o,A=b*r+x*s,k=b*i+x*s;return!(Math.max(E,I,A,k)<=b*a.x+x*a.y||Math.min(E,I,A,k)>=b*f.x+x*f.y)}pad(t=0,n=t){return this.x-=t,this.y-=n,this.width+=t*2,this.height+=n*2,this}fit(t){const n=Math.max(this.x,t.x),r=Math.min(this.x+this.width,t.x+t.width),i=Math.max(this.y,t.y),o=Math.min(this.y+this.height,t.y+t.height);return this.x=n,this.width=Math.max(r-n,0),this.y=i,this.height=Math.max(o-i,0),this}ceil(t=1,n=.001){const r=Math.ceil((this.x+this.width-n)*t)/t,i=Math.ceil((this.y+this.height-n)*t)/t;return this.x=Math.floor((this.x+n)*t)/t,this.y=Math.floor((this.y+n)*t)/t,this.width=r-this.x,this.height=i-this.y,this}enlarge(t){const n=Math.min(this.x,t.x),r=Math.max(this.x+this.width,t.x+t.width),i=Math.min(this.y,t.y),o=Math.max(this.y+this.height,t.y+t.height);return this.x=n,this.width=r-n,this.y=i,this.height=o-i,this}toString(){return`[@pixi/math:Rectangle x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class SU{constructor(t=0,n=0,r=0){this.x=t,this.y=n,this.radius=r,this.type=Qi.CIRC}clone(){return new SU(this.x,this.y,this.radius)}contains(t,n){if(this.radius<=0)return!1;const r=this.radius*this.radius;let i=this.x-t,o=this.y-n;return i*=i,o*=o,i+o<=r}getBounds(){return new Zt(this.x-this.radius,this.y-this.radius,this.radius*2,this.radius*2)}toString(){return`[@pixi/math:Circle x=${this.x} y=${this.y} radius=${this.radius}]`}}class EU{constructor(t=0,n=0,r=0,i=0){this.x=t,this.y=n,this.width=r,this.height=i,this.type=Qi.ELIP}clone(){return new EU(this.x,this.y,this.width,this.height)}contains(t,n){if(this.width<=0||this.height<=0)return!1;let r=(t-this.x)/this.width,i=(n-this.y)/this.height;return r*=r,i*=i,r+i<=1}getBounds(){return new Zt(this.x-this.width,this.y-this.height,this.width,this.height)}toString(){return`[@pixi/math:Ellipse x=${this.x} y=${this.y} width=${this.width} height=${this.height}]`}}class Rg{constructor(...t){let n=Array.isArray(t[0])?t[0]:t;if(typeof n[0]!="number"){const r=[];for(let i=0,o=n.length;in!=f>n&&t<(u-a)*((n-c)/(f-c))+a&&(r=!r)}return r}toString(){return`[@pixi/math:PolygoncloseStroke=${this.closeStroke}points=${this.points.reduce((t,n)=>`${t}, ${n}`,"")}]`}}class CU{constructor(t=0,n=0,r=0,i=0,o=20){this.x=t,this.y=n,this.width=r,this.height=i,this.radius=o,this.type=Qi.RREC}clone(){return new CU(this.x,this.y,this.width,this.height,this.radius)}contains(t,n){if(this.width<=0||this.height<=0)return!1;if(t>=this.x&&t<=this.x+this.width&&n>=this.y&&n<=this.y+this.height){const r=Math.max(0,Math.min(this.radius,Math.min(this.width,this.height)/2));if(n>=this.y+r&&n<=this.y+this.height-r||t>=this.x+r&&t<=this.x+this.width-r)return!0;let i=t-(this.x+r),o=n-(this.y+r);const s=r*r;if(i*i+o*o<=s||(i=t-(this.x+this.width-r),i*i+o*o<=s)||(o=n-(this.y+this.height-r),i*i+o*o<=s)||(i=t-(this.x+r),i*i+o*o<=s))return!0}return!1}toString(){return`[@pixi/math:RoundedRectangle x=${this.x} y=${this.y}width=${this.width} height=${this.height} radius=${this.radius}]`}}class Cr{constructor(t=1,n=0,r=0,i=1,o=0,s=0){this.array=null,this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s}fromArray(t){this.a=t[0],this.b=t[1],this.c=t[3],this.d=t[4],this.tx=t[2],this.ty=t[5]}set(t,n,r,i,o,s){return this.a=t,this.b=n,this.c=r,this.d=i,this.tx=o,this.ty=s,this}toArray(t,n){this.array||(this.array=new Float32Array(9));const r=n||this.array;return t?(r[0]=this.a,r[1]=this.b,r[2]=0,r[3]=this.c,r[4]=this.d,r[5]=0,r[6]=this.tx,r[7]=this.ty,r[8]=1):(r[0]=this.a,r[1]=this.c,r[2]=this.tx,r[3]=this.b,r[4]=this.d,r[5]=this.ty,r[6]=0,r[7]=0,r[8]=1),r}apply(t,n){n=n||new Dt;const r=t.x,i=t.y;return n.x=this.a*r+this.c*i+this.tx,n.y=this.b*r+this.d*i+this.ty,n}applyInverse(t,n){n=n||new Dt;const r=1/(this.a*this.d+this.c*-this.b),i=t.x,o=t.y;return n.x=this.d*r*i+-this.c*r*o+(this.ty*this.c-this.tx*this.d)*r,n.y=this.a*r*o+-this.b*r*i+(-this.ty*this.a+this.tx*this.b)*r,n}translate(t,n){return this.tx+=t,this.ty+=n,this}scale(t,n){return this.a*=t,this.d*=n,this.c*=t,this.b*=n,this.tx*=t,this.ty*=n,this}rotate(t){const n=Math.cos(t),r=Math.sin(t),i=this.a,o=this.c,s=this.tx;return this.a=i*n-this.b*r,this.b=i*r+this.b*n,this.c=o*n-this.d*r,this.d=o*r+this.d*n,this.tx=s*n-this.ty*r,this.ty=s*r+this.ty*n,this}append(t){const n=this.a,r=this.b,i=this.c,o=this.d;return this.a=t.a*n+t.b*i,this.b=t.a*r+t.b*o,this.c=t.c*n+t.d*i,this.d=t.c*r+t.d*o,this.tx=t.tx*n+t.ty*i+this.tx,this.ty=t.tx*r+t.ty*o+this.ty,this}setTransform(t,n,r,i,o,s,a,c,u){return this.a=Math.cos(a+u)*o,this.b=Math.sin(a+u)*o,this.c=-Math.sin(a-c)*s,this.d=Math.cos(a-c)*s,this.tx=t-(r*this.a+i*this.c),this.ty=n-(r*this.b+i*this.d),this}prepend(t){const n=this.tx;if(t.a!==1||t.b!==0||t.c!==0||t.d!==1){const r=this.a,i=this.c;this.a=r*t.a+this.b*t.c,this.b=r*t.b+this.b*t.d,this.c=i*t.a+this.d*t.c,this.d=i*t.b+this.d*t.d}return this.tx=n*t.a+this.ty*t.c+t.tx,this.ty=n*t.b+this.ty*t.d+t.ty,this}decompose(t){const n=this.a,r=this.b,i=this.c,o=this.d,s=t.pivot,a=-Math.atan2(-i,o),c=Math.atan2(r,n),u=Math.abs(a+c);return u<1e-5||Math.abs(rT-u)<1e-5?(t.rotation=c,t.skew.x=t.skew.y=0):(t.rotation=0,t.skew.x=a,t.skew.y=c),t.scale.x=Math.sqrt(n*n+r*r),t.scale.y=Math.sqrt(i*i+o*o),t.position.x=this.tx+(s.x*n+s.y*i),t.position.y=this.ty+(s.x*r+s.y*o),t}invert(){const t=this.a,n=this.b,r=this.c,i=this.d,o=this.tx,s=t*i-n*r;return this.a=i/s,this.b=-n/s,this.c=-r/s,this.d=t/s,this.tx=(r*this.ty-i*o)/s,this.ty=-(t*this.ty-n*o)/s,this}identity(){return this.a=1,this.b=0,this.c=0,this.d=1,this.tx=0,this.ty=0,this}clone(){const t=new Cr;return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyTo(t){return t.a=this.a,t.b=this.b,t.c=this.c,t.d=this.d,t.tx=this.tx,t.ty=this.ty,t}copyFrom(t){return this.a=t.a,this.b=t.b,this.c=t.c,this.d=t.d,this.tx=t.tx,this.ty=t.ty,this}toString(){return`[@pixi/math:Matrix a=${this.a} b=${this.b} c=${this.c} d=${this.d} tx=${this.tx} ty=${this.ty}]`}static get IDENTITY(){return new Cr}static get TEMP_MATRIX(){return new Cr}}const op=[1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1,0,1],sp=[0,1,1,1,0,-1,-1,-1,0,1,1,1,0,-1,-1,-1],ap=[0,-1,-1,-1,0,1,1,1,0,1,1,1,0,-1,-1,-1],lp=[1,1,0,-1,-1,-1,0,1,-1,-1,0,1,1,1,0,-1],E5=[],nre=[],xS=Math.sign;function vze(){for(let e=0;e<16;e++){const t=[];E5.push(t);for(let n=0;n<16;n++){const r=xS(op[e]*op[n]+ap[e]*sp[n]),i=xS(sp[e]*op[n]+lp[e]*sp[n]),o=xS(op[e]*ap[n]+ap[e]*lp[n]),s=xS(sp[e]*ap[n]+lp[e]*lp[n]);for(let a=0;a<16;a++)if(op[a]===r&&sp[a]===i&&ap[a]===o&&lp[a]===s){t.push(a);break}}}for(let e=0;e<16;e++){const t=new Cr;t.set(op[e],sp[e],ap[e],lp[e],0,0),nre.push(t)}}vze();const Mr={E:0,SE:1,S:2,SW:3,W:4,NW:5,N:6,NE:7,MIRROR_VERTICAL:8,MAIN_DIAGONAL:10,MIRROR_HORIZONTAL:12,REVERSE_DIAGONAL:14,uX:e=>op[e],uY:e=>sp[e],vX:e=>ap[e],vY:e=>lp[e],inv:e=>e&8?e&15:-e&7,add:(e,t)=>E5[e][t],sub:(e,t)=>E5[e][Mr.inv(t)],rotate180:e=>e^4,isVertical:e=>(e&3)===2,byDirection:(e,t)=>Math.abs(e)*2<=Math.abs(t)?t>=0?Mr.S:Mr.N:Math.abs(t)*2<=Math.abs(e)?e>0?Mr.E:Mr.W:t>0?e>0?Mr.SE:Mr.SW:e>0?Mr.NE:Mr.NW,matrixAppendRotationInv:(e,t,n=0,r=0)=>{const i=nre[Mr.inv(t)];i.tx=n,i.ty=r,e.append(i)}};class Dd{constructor(t,n,r=0,i=0){this._x=r,this._y=i,this.cb=t,this.scope=n}clone(t=this.cb,n=this.scope){return new Dd(t,n,this._x,this._y)}set(t=0,n=t){return(this._x!==t||this._y!==n)&&(this._x=t,this._y=n,this.cb.call(this.scope)),this}copyFrom(t){return(this._x!==t.x||this._y!==t.y)&&(this._x=t.x,this._y=t.y,this.cb.call(this.scope)),this}copyTo(t){return t.set(this._x,this._y),t}equals(t){return t.x===this._x&&t.y===this._y}toString(){return`[@pixi/math:ObservablePoint x=0 y=0 scope=${this.scope}]`}get x(){return this._x}set x(t){this._x!==t&&(this._x=t,this.cb.call(this.scope))}get y(){return this._y}set y(t){this._y!==t&&(this._y=t,this.cb.call(this.scope))}}const rre=class{constructor(){this.worldTransform=new Cr,this.localTransform=new Cr,this.position=new Dd(this.onChange,this,0,0),this.scale=new Dd(this.onChange,this,1,1),this.pivot=new Dd(this.onChange,this,0,0),this.skew=new Dd(this.updateSkew,this,0,0),this._rotation=0,this._cx=1,this._sx=0,this._cy=0,this._sy=1,this._localID=0,this._currentLocalID=0,this._worldID=0,this._parentID=0}onChange(){this._localID++}updateSkew(){this._cx=Math.cos(this._rotation+this.skew.y),this._sx=Math.sin(this._rotation+this.skew.y),this._cy=-Math.sin(this._rotation-this.skew.x),this._sy=Math.cos(this._rotation-this.skew.x),this._localID++}toString(){return`[@pixi/math:Transform position=(${this.position.x}, ${this.position.y}) rotation=${this.rotation} scale=(${this.scale.x}, ${this.scale.y}) skew=(${this.skew.x}, ${this.skew.y}) ]`}updateLocalTransform(){const e=this.localTransform;this._localID!==this._currentLocalID&&(e.a=this._cx*this.scale.x,e.b=this._sx*this.scale.x,e.c=this._cy*this.scale.y,e.d=this._sy*this.scale.y,e.tx=this.position.x-(this.pivot.x*e.a+this.pivot.y*e.c),e.ty=this.position.y-(this.pivot.x*e.b+this.pivot.y*e.d),this._currentLocalID=this._localID,this._parentID=-1)}updateTransform(e){const t=this.localTransform;if(this._localID!==this._currentLocalID&&(t.a=this._cx*this.scale.x,t.b=this._sx*this.scale.x,t.c=this._cy*this.scale.y,t.d=this._sy*this.scale.y,t.tx=this.position.x-(this.pivot.x*t.a+this.pivot.y*t.c),t.ty=this.position.y-(this.pivot.x*t.b+this.pivot.y*t.d),this._currentLocalID=this._localID,this._parentID=-1),this._parentID!==e._worldID){const n=e.worldTransform,r=this.worldTransform;r.a=t.a*n.a+t.b*n.c,r.b=t.a*n.b+t.b*n.d,r.c=t.c*n.a+t.d*n.c,r.d=t.c*n.b+t.d*n.d,r.tx=t.tx*n.a+t.ty*n.c+n.tx,r.ty=t.tx*n.b+t.ty*n.d+n.ty,this._parentID=e._worldID,this._worldID++}}setFromMatrix(e){e.decompose(this),this._localID++}get rotation(){return this._rotation}set rotation(e){this._rotation!==e&&(this._rotation=e,this.updateSkew())}};let TU=rre;TU.IDENTITY=new rre;var yze=`varying vec2 vTextureCoord; uniform sampler2D uSampler; void main(void){ gl_FragColor *= texture2D(uSampler, vTextureCoord); -}`,hze=`attribute vec2 aVertexPosition; +}`,bze=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -714,7 +714,7 @@ void main(void){ gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; } -`;function rV(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function JB(e){const t=new Array(e);for(let n=0;ne.type==="float"&&e.size===1&&!e.isArray,code:e=>` +`;function sV(e,t,n){const r=e.createShader(t);return e.shaderSource(r,n),e.compileShader(r),r}function e$(e){const t=new Array(e);for(let n=0;ne.type==="float"&&e.size===1&&!e.isArray,code:e=>` if(uv["${e}"] !== ud["${e}"].value) { ud["${e}"].value = uv["${e}"] @@ -834,7 +834,7 @@ void main(void){ cv[3] = v[3]; gl.uniform4f(ud["${e}"].location, v[0], v[1], v[2], v[3]) - }`}],pze={float:` + }`}],xze={float:` if (cv !== v) { cu.value = v; @@ -970,7 +970,7 @@ void main(void){ cu.value = v; gl.uniform1i(location, v); - }`},mze={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function gze(e,t){var r;const n=[` + }`},wze={float:"gl.uniform1fv(location, v)",vec2:"gl.uniform2fv(location, v)",vec3:"gl.uniform3fv(location, v)",vec4:"gl.uniform4fv(location, v)",mat4:"gl.uniformMatrix4fv(location, false, v)",mat3:"gl.uniformMatrix3fv(location, false, v)",mat2:"gl.uniformMatrix2fv(location, false, v)",int:"gl.uniform1iv(location, v)",ivec2:"gl.uniform2iv(location, v)",ivec3:"gl.uniform3iv(location, v)",ivec4:"gl.uniform4iv(location, v)",uint:"gl.uniform1uiv(location, v)",uvec2:"gl.uniform2uiv(location, v)",uvec3:"gl.uniform3uiv(location, v)",uvec4:"gl.uniform4uiv(location, v)",bool:"gl.uniform1iv(location, v)",bvec2:"gl.uniform2iv(location, v)",bvec3:"gl.uniform3iv(location, v)",bvec4:"gl.uniform4iv(location, v)",sampler2D:"gl.uniform1iv(location, v)",samplerCube:"gl.uniform1iv(location, v)",sampler2DArray:"gl.uniform1iv(location, v)"};function _ze(e,t){var r;const n=[` var v = null; var cv = null; var cu = null; @@ -980,18 +980,18 @@ void main(void){ renderer.shader.syncUniformBufferGroup(uv.${i}, '${i}'); `):n.push(` renderer.shader.syncUniformGroup(uv.${i}, syncData); - `));continue}const s=e.uniforms[i];let a=!1;for(let c=0;c=um.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Em=t}return Em}let xS;function yze(){if(!xS){xS=xa.MEDIUM;const e=vze();e&&e.getShaderPrecisionFormat&&(xS=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision?xa.HIGH:xa.MEDIUM)}return xS}function iV(e,t){const n=e.getShaderSource(t).split(` +`))}const ore={};let Cm=ore;function Sze(){if(Cm===ore||Cm!=null&&Cm.isContextLost()){const e=nt.ADAPTER.createCanvas();let t;nt.PREFER_ENV>=dm.WEBGL2&&(t=e.getContext("webgl2",{})),t||(t=e.getContext("webgl",{})||e.getContext("experimental-webgl",{}),t?t.getExtension("WEBGL_draw_buffers"):t=null),Cm=t}return Cm}let wS;function Eze(){if(!wS){wS=wa.MEDIUM;const e=Sze();e&&e.getShaderPrecisionFormat&&(wS=e.getShaderPrecisionFormat(e.FRAGMENT_SHADER,e.HIGH_FLOAT).precision?wa.HIGH:wa.MEDIUM)}return wS}function aV(e,t){const n=e.getShaderSource(t).split(` `).map((u,f)=>`${f}: ${u}`),r=e.getShaderInfoLog(t),i=r.split(` `),o={},s=i.map(u=>parseFloat(u.replace(/^ERROR\: 0\:([\d]+)\:.*$/,"$1"))).filter(u=>u&&!o[u]?(o[u]=!0,!0):!1),a=[""];s.forEach(u=>{n[u-1]=`%c${n[u-1]}%c`,a.push("background: #FF0000; color:#FFFFFF; font-size: 10px","font-size: 10px")});const c=n.join(` -`);a[0]=c,console.error(r),console.groupCollapsed("click to view full shader code"),console.warn(...a),console.groupEnd()}function bze(e,t,n,r){e.getProgramParameter(t,e.LINK_STATUS)||(e.getShaderParameter(n,e.COMPILE_STATUS)||iV(e,n),e.getShaderParameter(r,e.COMPILE_STATUS)||iV(e,r),console.error("PixiJS Error: Could not initialize shader."),e.getProgramInfoLog(t)!==""&&console.warn("PixiJS Warning: gl.getProgramInfoLog()",e.getProgramInfoLog(t)))}const xze={float:1,vec2:2,vec3:3,vec4:4,int:1,ivec2:2,ivec3:3,ivec4:4,uint:1,uvec2:2,uvec3:3,uvec4:4,bool:1,bvec2:2,bvec3:3,bvec4:4,mat2:4,mat3:9,mat4:16,sampler2D:1};function ore(e){return xze[e]}let wS=null;const oV={FLOAT:"float",FLOAT_VEC2:"vec2",FLOAT_VEC3:"vec3",FLOAT_VEC4:"vec4",INT:"int",INT_VEC2:"ivec2",INT_VEC3:"ivec3",INT_VEC4:"ivec4",UNSIGNED_INT:"uint",UNSIGNED_INT_VEC2:"uvec2",UNSIGNED_INT_VEC3:"uvec3",UNSIGNED_INT_VEC4:"uvec4",BOOL:"bool",BOOL_VEC2:"bvec2",BOOL_VEC3:"bvec3",BOOL_VEC4:"bvec4",FLOAT_MAT2:"mat2",FLOAT_MAT3:"mat3",FLOAT_MAT4:"mat4",SAMPLER_2D:"sampler2D",INT_SAMPLER_2D:"sampler2D",UNSIGNED_INT_SAMPLER_2D:"sampler2D",SAMPLER_CUBE:"samplerCube",INT_SAMPLER_CUBE:"samplerCube",UNSIGNED_INT_SAMPLER_CUBE:"samplerCube",SAMPLER_2D_ARRAY:"sampler2DArray",INT_SAMPLER_2D_ARRAY:"sampler2DArray",UNSIGNED_INT_SAMPLER_2D_ARRAY:"sampler2DArray"};function sre(e,t){if(!wS){const n=Object.keys(oV);wS={};for(let r=0;r0&&(n+=` else `),rthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=nl._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count;let s=++Vt._globalBatch,a=0,c=n[0],u=0;r.copyBoundTextures(i,t);for(let f=0;f=t&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,f),u=f,c=n[++a],++s),h._batchEnabled=s,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,this._bufferSize),++a,++s);for(let f=0;f0);for(let v=0;vthis.size&&this.flush(),this._vertexCount+=e.vertexData.length/2,this._indexCount+=e.indices.length,this._bufferedTextures[this._bufferSize]=e._texture.baseTexture,this._bufferedElements[this._bufferSize++]=e)}buildTexturesAndDrawCalls(){const{_bufferedTextures:e,maxTextures:t}=this,n=rl._textureArrayPool,r=this.renderer.batch,i=this._tempBoundTextures,o=this.renderer.textureGC.count;let s=++qt._globalBatch,a=0,c=n[0],u=0;r.copyBoundTextures(i,t);for(let f=0;f=t&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,f),u=f,c=n[++a],++s),h._batchEnabled=s,h.touched=o,c.elements[c.count++]=h)}c.count>0&&(r.boundArray(c,i,s,t),this.buildDrawCalls(c,u,this._bufferSize),++a,++s);for(let f=0;f0);for(let v=0;v=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)}boundArray(t,n,r,i){const{elements:o,ids:s,count:a}=t;let c=0;for(let u=0;u=0&&h=um.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,t.removeEventListener!==void 0&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}PA.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};PA.extension={type:ot.RendererSystem,name:"context"};wt.add(PA);class Pze extends Kw{upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ml.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}}class S5{constructor(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new El("disposeFramebuffer"),this.multisample=ri.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,n){return this.colorTextures[t]=n||new Vt(null,{scaleMode:ku.NEAREST,resolution:1,mipmap:fc.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new Vt(new Pze(null,{width:this.width,height:this.height}),{scaleMode:ku.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:fc.OFF,format:Ve.DEPTH_COMPONENT,type:Ot.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(let r=0;r{const i=this.source;this.url=i.src;const o=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.resize(i.width,i.height),this._load=null,this.createBitmap?n(this.process()):n(this))};i.complete&&i.src?o():(i.onload=o,i.onerror=s=>{r(s),this.onError.emit(s)})}),this._load)}process(){const t=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const n=globalThis.createImageBitmap,r=!t.crossOrigin||t.crossOrigin==="anonymous";return this._process=fetch(t.src,{mode:r?"cors":"no-cors"}).then(i=>i.blob()).then(i=>n(i,0,0,t.width,t.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ml.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(t,n,r){if(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,n,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,n,r,this.bitmap),!this.preserveBitmap){let i=!0;const o=n._glTextures;for(const s in o){const a=o[s];if(a!==r&&a.dirtyId!==n.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&(typeof t=="string"||t instanceof HTMLImageElement)}}class ure{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,n,r){const i=n.width,o=n.height;if(r){const s=t.width/2/i,a=t.height/2/o,c=t.x/i+s,u=t.y/o+a;r=Mr.add(r,Mr.NW),this.x0=c+s*Mr.uX(r),this.y0=u+a*Mr.uY(r),r=Mr.add(r,2),this.x1=c+s*Mr.uX(r),this.y1=u+a*Mr.uY(r),r=Mr.add(r,2),this.x2=c+s*Mr.uX(r),this.y2=u+a*Mr.uY(r),r=Mr.add(r,2),this.x3=c+s*Mr.uX(r),this.y3=u+a*Mr.uY(r)}else this.x0=t.x/i,this.y0=t.y/o,this.x1=(t.x+t.width)/i,this.y1=t.y/o,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/o,this.x3=t.x/i,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}toString(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`}}const lV=new ure;function SS(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}class mt extends Xw{constructor(t,n,r,i,o,s,a){if(super(),this.noFrame=!1,n||(this.noFrame=!0,n=new Zt(0,0,1,1)),t instanceof mt&&(t=t.baseTexture),this.baseTexture=t,this._frame=n,this.trim=i,this.valid=!1,this._uvs=lV,this.uvMatrix=null,this.orig=r||n,this._rotate=Number(o||0),o===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Lt(s.x,s.y):new Lt(0,0),this.defaultBorders=a,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=n:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:n}=this.baseTexture;n!=null&&n.url&&zl[n.url]&&mt.removeFromCache(n.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,mt.removeFromCache(this),this.textureCacheIds=null}clone(){var i;const t=this._frame.clone(),n=this._frame===this.orig?t:this.orig.clone(),r=new mt(this.baseTexture,!this.noFrame&&t,n,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(r._frame=t),r}updateUvs(){this._uvs===lV&&(this._uvs=new ure),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,n={},r=nt.STRICT_TEXTURE_CACHE){const i=typeof t=="string";let o=null;if(i)o=t;else if(t instanceof Vt){if(!t.cacheId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t.cacheId=`${a}-${Yp()}`,Vt.addToCache(t,t.cacheId)}o=t.cacheId}else{if(!t._pixiId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t._pixiId=`${a}_${Yp()}`}o=t._pixiId}let s=zl[o];if(i&&r&&!s)throw new Error(`The cacheId "${o}" does not exist in TextureCache.`);return!s&&!(t instanceof Vt)?(n.resolution||(n.resolution=sf(t)),s=new mt(new Vt(t,n)),s.baseTexture.cacheId=o,Vt.addToCache(s.baseTexture,o),mt.addToCache(s,o)):!s&&t instanceof Vt&&(s=new mt(t),mt.addToCache(s,o)),s}static fromURL(t,n){const r=Object.assign({autoLoad:!1},n==null?void 0:n.resourceOptions),i=mt.from(t,Object.assign({resourceOptions:r},n),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then(()=>Promise.resolve(i))}static fromBuffer(t,n,r,i){return new mt(Vt.fromBuffer(t,n,r,i))}static fromLoader(t,n,r,i){const o=new Vt(t,Object.assign({scaleMode:Vt.defaultOptions.scaleMode,resolution:sf(n)},i)),{resource:s}=o;s instanceof cre&&(s.url=n);const a=new mt(o);return r||(r=n),Vt.addToCache(a.baseTexture,r),mt.addToCache(a,r),r!==n&&(Vt.addToCache(a.baseTexture,n),mt.addToCache(a,n)),a.baseTexture.valid?Promise.resolve(a):new Promise(c=>{a.baseTexture.once("loaded",()=>c(a))})}static addToCache(t,n){n&&(t.textureCacheIds.includes(n)||t.textureCacheIds.push(n),zl[n]&&zl[n]!==t&&console.warn(`Texture added to the cache with an id [${n}] that already had an entry`),zl[n]=t)}static removeFromCache(t){if(typeof t=="string"){const n=zl[t];if(n){const r=n.textureCacheIds.indexOf(t);return r>-1&&n.textureCacheIds.splice(r,1),delete zl[t],n}}else if(t!=null&&t.textureCacheIds){for(let n=0;nthis.baseTexture.width,a=r+o>this.baseTexture.height;if(s||a){const c=s&&a?"and":"or",u=`X: ${n} + ${i} = ${n+i} > ${this.baseTexture.width}`,f=`Y: ${r} + ${o} = ${r+o} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${u} ${c} ${f}`)}this.valid=i&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return mt._EMPTY||(mt._EMPTY=new mt(new Vt),SS(mt._EMPTY),SS(mt._EMPTY.baseTexture)),mt._EMPTY}static get WHITE(){if(!mt._WHITE){const t=nt.ADAPTER.createCanvas(16,16),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),mt._WHITE=new mt(Vt.from(t)),SS(mt._WHITE),SS(mt._WHITE.baseTexture)}return mt._WHITE}}class dm extends mt{constructor(t,n){super(t,n),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,n,r=!0){const i=this.baseTexture.resolution,o=Math.round(t*i)/i,s=Math.round(n*i)/i;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()}setResolution(t){const{baseTexture:n}=this;n.resolution!==t&&(n.setResolution(t),this.resize(n.width,n.height,!1))}static create(t){return new dm(new lre(t))}}class dre{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,n,r=ri.NONE){const i=new lre(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new dm(i)}getOptimalTexture(t,n,r=1,i=ri.NONE){let o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=eT(t),n=eT(n),o=((t&65535)<<16|n&65535)>>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);let s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,i)),s.filterPoolKey=o,s.setResolution(r),s}getFilterTexture(t,n,r){const i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnTexture(t){const n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=t!==!1,t)for(const n in this.texturePool){const r=this.texturePool[n];if(r)for(let i=0;i0&&t.height>0;for(const n in this.texturePool){if(!(Number(n)<0))continue;const r=this.texturePool[n];if(r)for(let i=0;i1&&(f=this.getOptimalFilterTexture(u.width,u.height,n.resolution),f.filterFrame=u.filterFrame),r[h].apply(this,u,f,Gl.CLEAR,n);const p=u;u=f,f=p}r[h].apply(this,u,c.renderTexture,Gl.BLEND,n),h>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(u),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)}bindAndClear(t,n=Gl.CLEAR){const{renderTexture:r,state:i}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t!=null&&t.filterFrame){const s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const o=i.stateId&1||this.forceClear;(n===Gl.CLEAR||n===Gl.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,n,r,i){const o=this.renderer;o.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Kl.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Kl.TRIANGLE_STRIP))}calculateSpriteMatrix(t,n){const{sourceFrame:r,destinationFrame:i}=this.activeState,{orig:o}=n._texture,s=t.set(i.width,0,0,i.height,r.x,r.y),a=n.worldTransform.copyTo(Cr.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,n,r=1,i=ri.NONE){return this.texturePool.getOptimalTexture(t,n,r,i)}getFilterTexture(t,n,r){if(typeof t=="number"){const o=t;t=n,n=o}t=t||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,n){const r=ES[0],i=ES[1],o=ES[2],s=ES[3];r.set(n.left,n.top),i.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(o,o),t.apply(s,s);const a=Math.min(r.x,i.x,o.x,s.x),c=Math.min(r.y,i.y,o.y,s.y),u=Math.max(r.x,i.x,o.x,s.x),f=Math.max(r.y,i.y,o.y,s.y);n.x=a,n.y=c,n.width=u-a,n.height=f-c}roundFrame(t,n,r,i,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){const{a:s,b:a,c,d:u}=o;if((Math.abs(a)>1e-4||Math.abs(c)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(u)>1e-4))return}o=o?ZB.copyFrom(o):ZB.identity(),o.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}}}hre.extension={type:ot.RendererSystem,name:"filter"};wt.add(hre);class Lze{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=ri.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const Dze=new Zt;class pre{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new S5(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Zt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;nt.PREFER_ENV===um.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=i=>n.drawBuffersWEBGL(i):(this.hasMRT=!1,t.drawBuffers=()=>{}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,n,r=0){const{gl:i}=this;if(t){const o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let s=0;s>r,a=n.height>>r,c=s/n.width;this.setViewport(n.x*c,n.y*c,s,a)}else{const s=t.width>>r,a=t.height>>r;this.setViewport(0,0,s,a)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,n,r,i){const o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(o.width!==r||o.height!==i||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=i,this.gl.viewport(t,n,r,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,n,r,i,o=e5.COLOR|e5.DEPTH){const{gl:s}=this;s.clearColor(t,n,r,i),s.clear(o)}initFramebuffer(t){const{gl:n}=this,r=new Lze(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r}resizeFramebuffer(t){const{gl:n}=this,r=t.glFramebuffers[this.CONTEXT_UID];r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));const i=t.colorTextures;let o=i.length;n.drawBuffers||(o=Math.min(o,1));for(let s=0;s1&&this.canMultisampleFramebuffer(t)?i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer():i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const a=[];for(let c=0;c1&&r.drawBuffers(a),t.depthTexture&&this.writeDepthTexture){const u=t.depthTexture;this.renderer.texture.bind(u,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,u._glTextures[this.CONTEXT_UID].texture,n)}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:n}=this;let r=ri.NONE;if(t<=1||n===null)return r;for(let i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&this.disposeFramebuffer(r.blitFramebuffer,n)}disposeAll(t){const n=this.managedFramebuffers;this.managedFramebuffers=[];for(let r=0;rr.createVertexArrayOES(),t.bindVertexArray=i=>r.bindVertexArrayOES(i),t.deleteVertexArray=i=>r.deleteVertexArrayOES(i)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(n.webGLVersion!==2){const r=t.getExtension("ANGLE_instanced_arrays");r?(t.vertexAttribDivisor=(i,o)=>r.vertexAttribDivisorANGLE(i,o),t.drawElementsInstanced=(i,o,s,a,c)=>r.drawElementsInstancedANGLE(i,o,s,a,c),t.drawArraysInstanced=(i,o,s,a)=>r.drawArraysInstancedANGLE(i,o,s,a)):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex}bind(t,n){n=n||this.renderer.shader.shader;const{gl:r}=this;let i=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},o=!0);const s=i[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,n=this.renderer.buffer;for(let r=0;r"u"?.5:n,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,n){n===void 0&&(n=t);const r=this.mapCoord;for(let i=0;i=0;--i)t[i]=r[i]||null,t[i]&&(t[i]._batchLocation=i)}boundArray(t,n,r,i){const{elements:o,ids:s,count:a}=t;let c=0;for(let u=0;u=0&&h=dm.WEBGL2&&(r=t.getContext("webgl2",n)),r)this.webGLVersion=2;else if(this.webGLVersion=1,r=t.getContext("webgl",n)||t.getContext("experimental-webgl",n),!r)throw new Error("This browser does not support WebGL. Try using the canvas renderer");return this.gl=r,this.getExtensions(),this.gl}getExtensions(){const{gl:t}=this,n={loseContext:t.getExtension("WEBGL_lose_context"),anisotropicFiltering:t.getExtension("EXT_texture_filter_anisotropic"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),s3tc:t.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:t.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:t.getExtension("WEBGL_compressed_texture_etc"),etc1:t.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:t.getExtension("WEBGL_compressed_texture_atc"),astc:t.getExtension("WEBGL_compressed_texture_astc")};this.webGLVersion===1?Object.assign(this.extensions,n,{drawBuffers:t.getExtension("WEBGL_draw_buffers"),depthTexture:t.getExtension("WEBGL_depth_texture"),vertexArrayObject:t.getExtension("OES_vertex_array_object")||t.getExtension("MOZ_OES_vertex_array_object")||t.getExtension("WEBKIT_OES_vertex_array_object"),uint32ElementIndex:t.getExtension("OES_element_index_uint"),floatTexture:t.getExtension("OES_texture_float"),floatTextureLinear:t.getExtension("OES_texture_float_linear"),textureHalfFloat:t.getExtension("OES_texture_half_float"),textureHalfFloatLinear:t.getExtension("OES_texture_half_float_linear")}):this.webGLVersion===2&&Object.assign(this.extensions,n,{colorBufferFloat:t.getExtension("EXT_color_buffer_float")})}handleContextLost(t){t.preventDefault(),setTimeout(()=>{this.gl.isContextLost()&&this.extensions.loseContext&&this.extensions.loseContext.restoreContext()},0)}handleContextRestored(){this.renderer.runners.contextChange.emit(this.gl)}destroy(){const t=this.renderer.view;this.renderer=null,t.removeEventListener!==void 0&&(t.removeEventListener("webglcontextlost",this.handleContextLost),t.removeEventListener("webglcontextrestored",this.handleContextRestored)),this.gl.useProgram(null),this.extensions.loseContext&&this.extensions.loseContext.loseContext()}postrender(){this.renderer.objectRenderer.renderingToScreen&&this.gl.flush()}validateContext(t){const n=t.getContextAttributes(),r="WebGL2RenderingContext"in globalThis&&t instanceof globalThis.WebGL2RenderingContext;r&&(this.webGLVersion=2),n&&!n.stencil&&console.warn("Provided WebGL context does not have a stencil buffer, masks may not render correctly");const i=r||!!t.getExtension("OES_element_index_uint");this.supports.uint32Indices=i,i||console.warn("Provided WebGL context does not support 32 index buffer, complex graphics may not render correctly")}}MA.defaultOptions={context:null,antialias:!1,premultipliedAlpha:!0,preserveDrawingBuffer:!1,powerPreference:"default"};MA.extension={type:ot.RendererSystem,name:"context"};wt.add(MA);class Bze extends Qw{upload(t,n,r){const i=t.gl;i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL,n.alphaMode===Ll.UNPACK);const o=n.realWidth,s=n.realHeight;return r.width===o&&r.height===s?i.texSubImage2D(n.target,0,0,0,o,s,n.format,r.type,this.data):(r.width=o,r.height=s,i.texImage2D(n.target,0,r.internalFormat,o,s,0,n.format,r.type,this.data)),!0}}class T5{constructor(t,n){this.width=Math.round(t||100),this.height=Math.round(n||100),this.stencil=!1,this.depth=!1,this.dirtyId=0,this.dirtyFormat=0,this.dirtySize=0,this.depthTexture=null,this.colorTextures=[],this.glFramebuffers={},this.disposeRunner=new Cl("disposeFramebuffer"),this.multisample=ri.NONE}get colorTexture(){return this.colorTextures[0]}addColorTexture(t=0,n){return this.colorTextures[t]=n||new qt(null,{scaleMode:Au.NEAREST,resolution:1,mipmap:pc.OFF,width:this.width,height:this.height}),this.dirtyId++,this.dirtyFormat++,this}addDepthTexture(t){return this.depthTexture=t||new qt(new Bze(null,{width:this.width,height:this.height}),{scaleMode:Au.NEAREST,resolution:1,width:this.width,height:this.height,mipmap:pc.OFF,format:Ve.DEPTH_COMPONENT,type:Ot.UNSIGNED_SHORT}),this.dirtyId++,this.dirtyFormat++,this}enableDepth(){return this.depth=!0,this.dirtyId++,this.dirtyFormat++,this}enableStencil(){return this.stencil=!0,this.dirtyId++,this.dirtyFormat++,this}resize(t,n){if(t=Math.round(t),n=Math.round(n),!(t===this.width&&n===this.height)){this.width=t,this.height=n,this.dirtyId++,this.dirtySize++;for(let r=0;r{const i=this.source;this.url=i.src;const o=()=>{this.destroyed||(i.onload=null,i.onerror=null,this.resize(i.width,i.height),this._load=null,this.createBitmap?n(this.process()):n(this))};i.complete&&i.src?o():(i.onload=o,i.onerror=s=>{r(s),this.onError.emit(s)})}),this._load)}process(){const t=this.source;if(this._process!==null)return this._process;if(this.bitmap!==null||!globalThis.createImageBitmap)return Promise.resolve(this);const n=globalThis.createImageBitmap,r=!t.crossOrigin||t.crossOrigin==="anonymous";return this._process=fetch(t.src,{mode:r?"cors":"no-cors"}).then(i=>i.blob()).then(i=>n(i,0,0,t.width,t.height,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ll.UNPACK?"premultiply":"none"})).then(i=>this.destroyed?Promise.reject():(this.bitmap=i,this.update(),this._process=null,Promise.resolve(this))),this._process}upload(t,n,r){if(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),!this.createBitmap)return super.upload(t,n,r);if(!this.bitmap&&(this.process(),!this.bitmap))return!1;if(super.upload(t,n,r,this.bitmap),!this.preserveBitmap){let i=!0;const o=n._glTextures;for(const s in o){const a=o[s];if(a!==r&&a.dirtyId!==n.dirtyId){i=!1;break}}i&&(this.bitmap.close&&this.bitmap.close(),this.bitmap=null)}return!0}dispose(){this.source.onload=null,this.source.onerror=null,super.dispose(),this.bitmap&&(this.bitmap.close(),this.bitmap=null),this._process=null,this._load=null}static test(t){return typeof HTMLImageElement<"u"&&(typeof t=="string"||t instanceof HTMLImageElement)}}class dre{constructor(){this.x0=0,this.y0=0,this.x1=1,this.y1=0,this.x2=1,this.y2=1,this.x3=0,this.y3=1,this.uvsFloat32=new Float32Array(8)}set(t,n,r){const i=n.width,o=n.height;if(r){const s=t.width/2/i,a=t.height/2/o,c=t.x/i+s,u=t.y/o+a;r=Mr.add(r,Mr.NW),this.x0=c+s*Mr.uX(r),this.y0=u+a*Mr.uY(r),r=Mr.add(r,2),this.x1=c+s*Mr.uX(r),this.y1=u+a*Mr.uY(r),r=Mr.add(r,2),this.x2=c+s*Mr.uX(r),this.y2=u+a*Mr.uY(r),r=Mr.add(r,2),this.x3=c+s*Mr.uX(r),this.y3=u+a*Mr.uY(r)}else this.x0=t.x/i,this.y0=t.y/o,this.x1=(t.x+t.width)/i,this.y1=t.y/o,this.x2=(t.x+t.width)/i,this.y2=(t.y+t.height)/o,this.x3=t.x/i,this.y3=(t.y+t.height)/o;this.uvsFloat32[0]=this.x0,this.uvsFloat32[1]=this.y0,this.uvsFloat32[2]=this.x1,this.uvsFloat32[3]=this.y1,this.uvsFloat32[4]=this.x2,this.uvsFloat32[5]=this.y2,this.uvsFloat32[6]=this.x3,this.uvsFloat32[7]=this.y3}toString(){return`[@pixi/core:TextureUvs x0=${this.x0} y0=${this.y0} x1=${this.x1} y1=${this.y1} x2=${this.x2} y2=${this.y2} x3=${this.x3} y3=${this.y3}]`}}const dV=new dre;function ES(e){e.destroy=function(){},e.on=function(){},e.once=function(){},e.emit=function(){}}class mt extends Yw{constructor(t,n,r,i,o,s,a){if(super(),this.noFrame=!1,n||(this.noFrame=!0,n=new Zt(0,0,1,1)),t instanceof mt&&(t=t.baseTexture),this.baseTexture=t,this._frame=n,this.trim=i,this.valid=!1,this._uvs=dV,this.uvMatrix=null,this.orig=r||n,this._rotate=Number(o||0),o===!0)this._rotate=2;else if(this._rotate%2!==0)throw new Error("attempt to use diamond-shaped UVs. If you are sure, set rotation manually");this.defaultAnchor=s?new Dt(s.x,s.y):new Dt(0,0),this.defaultBorders=a,this._updateID=0,this.textureCacheIds=[],t.valid?this.noFrame?t.valid&&this.onBaseTextureUpdated(t):this.frame=n:t.once("loaded",this.onBaseTextureUpdated,this),this.noFrame&&t.on("update",this.onBaseTextureUpdated,this)}update(){this.baseTexture.resource&&this.baseTexture.resource.update()}onBaseTextureUpdated(t){if(this.noFrame){if(!this.baseTexture.valid)return;this._frame.width=t.width,this._frame.height=t.height,this.valid=!0,this.updateUvs()}else this.frame=this._frame;this.emit("update",this)}destroy(t){if(this.baseTexture){if(t){const{resource:n}=this.baseTexture;n!=null&&n.url&&Ul[n.url]&&mt.removeFromCache(n.url),this.baseTexture.destroy()}this.baseTexture.off("loaded",this.onBaseTextureUpdated,this),this.baseTexture.off("update",this.onBaseTextureUpdated,this),this.baseTexture=null}this._frame=null,this._uvs=null,this.trim=null,this.orig=null,this.valid=!1,mt.removeFromCache(this),this.textureCacheIds=null}clone(){var i;const t=this._frame.clone(),n=this._frame===this.orig?t:this.orig.clone(),r=new mt(this.baseTexture,!this.noFrame&&t,n,(i=this.trim)==null?void 0:i.clone(),this.rotate,this.defaultAnchor,this.defaultBorders);return this.noFrame&&(r._frame=t),r}updateUvs(){this._uvs===dV&&(this._uvs=new dre),this._uvs.set(this._frame,this.baseTexture,this.rotate),this._updateID++}static from(t,n={},r=nt.STRICT_TEXTURE_CACHE){const i=typeof t=="string";let o=null;if(i)o=t;else if(t instanceof qt){if(!t.cacheId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t.cacheId=`${a}-${Kp()}`,qt.addToCache(t,t.cacheId)}o=t.cacheId}else{if(!t._pixiId){const a=(n==null?void 0:n.pixiIdPrefix)||"pixiid";t._pixiId=`${a}_${Kp()}`}o=t._pixiId}let s=Ul[o];if(i&&r&&!s)throw new Error(`The cacheId "${o}" does not exist in TextureCache.`);return!s&&!(t instanceof qt)?(n.resolution||(n.resolution=lf(t)),s=new mt(new qt(t,n)),s.baseTexture.cacheId=o,qt.addToCache(s.baseTexture,o),mt.addToCache(s,o)):!s&&t instanceof qt&&(s=new mt(t),mt.addToCache(s,o)),s}static fromURL(t,n){const r=Object.assign({autoLoad:!1},n==null?void 0:n.resourceOptions),i=mt.from(t,Object.assign({resourceOptions:r},n),!1),o=i.baseTexture.resource;return i.baseTexture.valid?Promise.resolve(i):o.load().then(()=>Promise.resolve(i))}static fromBuffer(t,n,r,i){return new mt(qt.fromBuffer(t,n,r,i))}static fromLoader(t,n,r,i){const o=new qt(t,Object.assign({scaleMode:qt.defaultOptions.scaleMode,resolution:lf(n)},i)),{resource:s}=o;s instanceof ure&&(s.url=n);const a=new mt(o);return r||(r=n),qt.addToCache(a.baseTexture,r),mt.addToCache(a,r),r!==n&&(qt.addToCache(a.baseTexture,n),mt.addToCache(a,n)),a.baseTexture.valid?Promise.resolve(a):new Promise(c=>{a.baseTexture.once("loaded",()=>c(a))})}static addToCache(t,n){n&&(t.textureCacheIds.includes(n)||t.textureCacheIds.push(n),Ul[n]&&Ul[n]!==t&&console.warn(`Texture added to the cache with an id [${n}] that already had an entry`),Ul[n]=t)}static removeFromCache(t){if(typeof t=="string"){const n=Ul[t];if(n){const r=n.textureCacheIds.indexOf(t);return r>-1&&n.textureCacheIds.splice(r,1),delete Ul[t],n}}else if(t!=null&&t.textureCacheIds){for(let n=0;nthis.baseTexture.width,a=r+o>this.baseTexture.height;if(s||a){const c=s&&a?"and":"or",u=`X: ${n} + ${i} = ${n+i} > ${this.baseTexture.width}`,f=`Y: ${r} + ${o} = ${r+o} > ${this.baseTexture.height}`;throw new Error(`Texture Error: frame does not fit inside the base Texture dimensions: ${u} ${c} ${f}`)}this.valid=i&&o&&this.baseTexture.valid,!this.trim&&!this.rotate&&(this.orig=t),this.valid&&this.updateUvs()}get rotate(){return this._rotate}set rotate(t){this._rotate=t,this.valid&&this.updateUvs()}get width(){return this.orig.width}get height(){return this.orig.height}castToBaseTexture(){return this.baseTexture}static get EMPTY(){return mt._EMPTY||(mt._EMPTY=new mt(new qt),ES(mt._EMPTY),ES(mt._EMPTY.baseTexture)),mt._EMPTY}static get WHITE(){if(!mt._WHITE){const t=nt.ADAPTER.createCanvas(16,16),n=t.getContext("2d");t.width=16,t.height=16,n.fillStyle="white",n.fillRect(0,0,16,16),mt._WHITE=new mt(qt.from(t)),ES(mt._WHITE),ES(mt._WHITE.baseTexture)}return mt._WHITE}}class fm extends mt{constructor(t,n){super(t,n),this.valid=!0,this.filterFrame=null,this.filterPoolKey=null,this.updateUvs()}get framebuffer(){return this.baseTexture.framebuffer}get multisample(){return this.framebuffer.multisample}set multisample(t){this.framebuffer.multisample=t}resize(t,n,r=!0){const i=this.baseTexture.resolution,o=Math.round(t*i)/i,s=Math.round(n*i)/i;this.valid=o>0&&s>0,this._frame.width=this.orig.width=o,this._frame.height=this.orig.height=s,r&&this.baseTexture.resize(o,s),this.updateUvs()}setResolution(t){const{baseTexture:n}=this;n.resolution!==t&&(n.setResolution(t),this.resize(n.width,n.height,!1))}static create(t){return new fm(new cre(t))}}class fre{constructor(t){this.texturePool={},this.textureOptions=t||{},this.enableFullScreen=!1,this._pixelsWidth=0,this._pixelsHeight=0}createTexture(t,n,r=ri.NONE){const i=new cre(Object.assign({width:t,height:n,resolution:1,multisample:r},this.textureOptions));return new fm(i)}getOptimalTexture(t,n,r=1,i=ri.NONE){let o;t=Math.ceil(t*r-1e-6),n=Math.ceil(n*r-1e-6),!this.enableFullScreen||t!==this._pixelsWidth||n!==this._pixelsHeight?(t=tT(t),n=tT(n),o=((t&65535)<<16|n&65535)>>>0,i>1&&(o+=i*4294967296)):o=i>1?-i:-1,this.texturePool[o]||(this.texturePool[o]=[]);let s=this.texturePool[o].pop();return s||(s=this.createTexture(t,n,i)),s.filterPoolKey=o,s.setResolution(r),s}getFilterTexture(t,n,r){const i=this.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnTexture(t){const n=t.filterPoolKey;t.filterFrame=null,this.texturePool[n].push(t)}returnFilterTexture(t){this.returnTexture(t)}clear(t){if(t=t!==!1,t)for(const n in this.texturePool){const r=this.texturePool[n];if(r)for(let i=0;i0&&t.height>0;for(const n in this.texturePool){if(!(Number(n)<0))continue;const r=this.texturePool[n];if(r)for(let i=0;i1&&(f=this.getOptimalFilterTexture(u.width,u.height,n.resolution),f.filterFrame=u.filterFrame),r[h].apply(this,u,f,ql.CLEAR,n);const p=u;u=f,f=p}r[h].apply(this,u,c.renderTexture,ql.BLEND,n),h>1&&n.multisample>1&&this.returnFilterTexture(n.renderTexture),this.returnFilterTexture(u),this.returnFilterTexture(f)}n.clear(),this.statePool.push(n)}bindAndClear(t,n=ql.CLEAR){const{renderTexture:r,state:i}=this.renderer;if(t===this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?this.renderer.projection.transform=this.activeState.transform:this.renderer.projection.transform=null,t!=null&&t.filterFrame){const s=this.tempRect;s.x=0,s.y=0,s.width=t.filterFrame.width,s.height=t.filterFrame.height,r.bind(t,t.filterFrame,s)}else t!==this.defaultFilterStack[this.defaultFilterStack.length-1].renderTexture?r.bind(t):this.renderer.renderTexture.bind(t,this.activeState.bindingSourceFrame,this.activeState.bindingDestinationFrame);const o=i.stateId&1||this.forceClear;(n===ql.CLEAR||n===ql.BLIT&&o)&&this.renderer.framebuffer.clear(0,0,0,0)}applyFilter(t,n,r,i){const o=this.renderer;o.state.set(t.state),this.bindAndClear(r,i),t.uniforms.uSampler=n,t.uniforms.filterGlobals=this.globalUniforms,o.shader.bind(t),t.legacy=!!t.program.attributeData.aTextureCoord,t.legacy?(this.quadUv.map(n._frame,n.filterFrame),o.geometry.bind(this.quadUv),o.geometry.draw(Jl.TRIANGLES)):(o.geometry.bind(this.quad),o.geometry.draw(Jl.TRIANGLE_STRIP))}calculateSpriteMatrix(t,n){const{sourceFrame:r,destinationFrame:i}=this.activeState,{orig:o}=n._texture,s=t.set(i.width,0,0,i.height,r.x,r.y),a=n.worldTransform.copyTo(Cr.TEMP_MATRIX);return a.invert(),s.prepend(a),s.scale(1/o.width,1/o.height),s.translate(n.anchor.x,n.anchor.y),s}destroy(){this.renderer=null,this.texturePool.clear(!1)}getOptimalFilterTexture(t,n,r=1,i=ri.NONE){return this.texturePool.getOptimalTexture(t,n,r,i)}getFilterTexture(t,n,r){if(typeof t=="number"){const o=t;t=n,n=o}t=t||this.activeState.renderTexture;const i=this.texturePool.getOptimalTexture(t.width,t.height,n||t.resolution,r||ri.NONE);return i.filterFrame=t.filterFrame,i}returnFilterTexture(t){this.texturePool.returnTexture(t)}emptyPool(){this.texturePool.clear(!0)}resize(){this.texturePool.setScreenSize(this.renderer.view)}transformAABB(t,n){const r=CS[0],i=CS[1],o=CS[2],s=CS[3];r.set(n.left,n.top),i.set(n.left,n.bottom),o.set(n.right,n.top),s.set(n.right,n.bottom),t.apply(r,r),t.apply(i,i),t.apply(o,o),t.apply(s,s);const a=Math.min(r.x,i.x,o.x,s.x),c=Math.min(r.y,i.y,o.y,s.y),u=Math.max(r.x,i.x,o.x,s.x),f=Math.max(r.y,i.y,o.y,s.y);n.x=a,n.y=c,n.width=u-a,n.height=f-c}roundFrame(t,n,r,i,o){if(!(t.width<=0||t.height<=0||r.width<=0||r.height<=0)){if(o){const{a:s,b:a,c,d:u}=o;if((Math.abs(a)>1e-4||Math.abs(c)>1e-4)&&(Math.abs(s)>1e-4||Math.abs(u)>1e-4))return}o=o?t$.copyFrom(o):t$.identity(),o.translate(-r.x,-r.y).scale(i.width/r.width,i.height/r.height).translate(i.x,i.y),this.transformAABB(o,t),t.ceil(n),this.transformAABB(o.invert(),t)}}}pre.extension={type:ot.RendererSystem,name:"filter"};wt.add(pre);class zze{constructor(t){this.framebuffer=t,this.stencil=null,this.dirtyId=-1,this.dirtyFormat=-1,this.dirtySize=-1,this.multisample=ri.NONE,this.msaaBuffer=null,this.blitFramebuffer=null,this.mipLevel=0}}const jze=new Zt;class mre{constructor(t){this.renderer=t,this.managedFramebuffers=[],this.unknownFramebuffer=new T5(10,10),this.msaaSamples=null}contextChange(){this.disposeAll(!0);const t=this.gl=this.renderer.gl;if(this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.current=this.unknownFramebuffer,this.viewport=new Zt,this.hasMRT=!0,this.writeDepthTexture=!0,this.renderer.context.webGLVersion===1){let n=this.renderer.context.extensions.drawBuffers,r=this.renderer.context.extensions.depthTexture;nt.PREFER_ENV===dm.WEBGL_LEGACY&&(n=null,r=null),n?t.drawBuffers=i=>n.drawBuffersWEBGL(i):(this.hasMRT=!1,t.drawBuffers=()=>{}),r||(this.writeDepthTexture=!1)}else this.msaaSamples=t.getInternalformatParameter(t.RENDERBUFFER,t.RGBA8,t.SAMPLES)}bind(t,n,r=0){const{gl:i}=this;if(t){const o=t.glFramebuffers[this.CONTEXT_UID]||this.initFramebuffer(t);this.current!==t&&(this.current=t,i.bindFramebuffer(i.FRAMEBUFFER,o.framebuffer)),o.mipLevel!==r&&(t.dirtyId++,t.dirtyFormat++,o.mipLevel=r),o.dirtyId!==t.dirtyId&&(o.dirtyId=t.dirtyId,o.dirtyFormat!==t.dirtyFormat?(o.dirtyFormat=t.dirtyFormat,o.dirtySize=t.dirtySize,this.updateFramebuffer(t,r)):o.dirtySize!==t.dirtySize&&(o.dirtySize=t.dirtySize,this.resizeFramebuffer(t)));for(let s=0;s>r,a=n.height>>r,c=s/n.width;this.setViewport(n.x*c,n.y*c,s,a)}else{const s=t.width>>r,a=t.height>>r;this.setViewport(0,0,s,a)}}else this.current&&(this.current=null,i.bindFramebuffer(i.FRAMEBUFFER,null)),n?this.setViewport(n.x,n.y,n.width,n.height):this.setViewport(0,0,this.renderer.width,this.renderer.height)}setViewport(t,n,r,i){const o=this.viewport;t=Math.round(t),n=Math.round(n),r=Math.round(r),i=Math.round(i),(o.width!==r||o.height!==i||o.x!==t||o.y!==n)&&(o.x=t,o.y=n,o.width=r,o.height=i,this.gl.viewport(t,n,r,i))}get size(){return this.current?{x:0,y:0,width:this.current.width,height:this.current.height}:{x:0,y:0,width:this.renderer.width,height:this.renderer.height}}clear(t,n,r,i,o=r5.COLOR|r5.DEPTH){const{gl:s}=this;s.clearColor(t,n,r,i),s.clear(o)}initFramebuffer(t){const{gl:n}=this,r=new zze(n.createFramebuffer());return r.multisample=this.detectSamples(t.multisample),t.glFramebuffers[this.CONTEXT_UID]=r,this.managedFramebuffers.push(t),t.disposeRunner.add(this),r}resizeFramebuffer(t){const{gl:n}=this,r=t.glFramebuffers[this.CONTEXT_UID];r.stencil&&(n.bindRenderbuffer(n.RENDERBUFFER,r.stencil),r.msaaBuffer?n.renderbufferStorageMultisample(n.RENDERBUFFER,r.multisample,n.DEPTH24_STENCIL8,t.width,t.height):n.renderbufferStorage(n.RENDERBUFFER,n.DEPTH_STENCIL,t.width,t.height));const i=t.colorTextures;let o=i.length;n.drawBuffers||(o=Math.min(o,1));for(let s=0;s1&&this.canMultisampleFramebuffer(t)?i.msaaBuffer=i.msaaBuffer||r.createRenderbuffer():i.msaaBuffer&&(r.deleteRenderbuffer(i.msaaBuffer),i.msaaBuffer=null,i.blitFramebuffer&&(i.blitFramebuffer.dispose(),i.blitFramebuffer=null));const a=[];for(let c=0;c1&&r.drawBuffers(a),t.depthTexture&&this.writeDepthTexture){const u=t.depthTexture;this.renderer.texture.bind(u,0),r.framebufferTexture2D(r.FRAMEBUFFER,r.DEPTH_ATTACHMENT,r.TEXTURE_2D,u._glTextures[this.CONTEXT_UID].texture,n)}(t.stencil||t.depth)&&!(t.depthTexture&&this.writeDepthTexture)?(i.stencil=i.stencil||r.createRenderbuffer(),r.bindRenderbuffer(r.RENDERBUFFER,i.stencil),i.msaaBuffer?r.renderbufferStorageMultisample(r.RENDERBUFFER,i.multisample,r.DEPTH24_STENCIL8,t.width,t.height):r.renderbufferStorage(r.RENDERBUFFER,r.DEPTH_STENCIL,t.width,t.height),r.framebufferRenderbuffer(r.FRAMEBUFFER,r.DEPTH_STENCIL_ATTACHMENT,r.RENDERBUFFER,i.stencil)):i.stencil&&(r.deleteRenderbuffer(i.stencil),i.stencil=null)}canMultisampleFramebuffer(t){return this.renderer.context.webGLVersion!==1&&t.colorTextures.length<=1&&!t.depthTexture}detectSamples(t){const{msaaSamples:n}=this;let r=ri.NONE;if(t<=1||n===null)return r;for(let i=0;i=0&&this.managedFramebuffers.splice(o,1),t.disposeRunner.remove(this),n||(i.deleteFramebuffer(r.framebuffer),r.msaaBuffer&&i.deleteRenderbuffer(r.msaaBuffer),r.stencil&&i.deleteRenderbuffer(r.stencil)),r.blitFramebuffer&&this.disposeFramebuffer(r.blitFramebuffer,n)}disposeAll(t){const n=this.managedFramebuffers;this.managedFramebuffers=[];for(let r=0;rr.createVertexArrayOES(),t.bindVertexArray=i=>r.bindVertexArrayOES(i),t.deleteVertexArray=i=>r.deleteVertexArrayOES(i)):(this.hasVao=!1,t.createVertexArray=()=>null,t.bindVertexArray=()=>null,t.deleteVertexArray=()=>null)}if(n.webGLVersion!==2){const r=t.getExtension("ANGLE_instanced_arrays");r?(t.vertexAttribDivisor=(i,o)=>r.vertexAttribDivisorANGLE(i,o),t.drawElementsInstanced=(i,o,s,a,c)=>r.drawElementsInstancedANGLE(i,o,s,a,c),t.drawArraysInstanced=(i,o,s,a)=>r.drawArraysInstancedANGLE(i,o,s,a)):this.hasInstance=!1}this.canUseUInt32ElementIndex=n.webGLVersion===2||!!n.extensions.uint32ElementIndex}bind(t,n){n=n||this.renderer.shader.shader;const{gl:r}=this;let i=t.glVertexArrayObjects[this.CONTEXT_UID],o=!1;i||(this.managedGeometries[t.id]=t,t.disposeRunner.add(this),t.glVertexArrayObjects[this.CONTEXT_UID]=i={},o=!0);const s=i[n.program.id]||this.initGeometryVao(t,n,o);this._activeGeometry=t,this._activeVao!==s&&(this._activeVao=s,this.hasVao?r.bindVertexArray(s):this.activateVao(t,n.program)),this.updateBuffers()}reset(){this.unbind()}updateBuffers(){const t=this._activeGeometry,n=this.renderer.buffer;for(let r=0;r"u"?.5:n,this.isSimple=!1}get texture(){return this._texture}set texture(t){this._texture=t,this._textureID=-1}multiplyUvs(t,n){n===void 0&&(n=t);const r=this.mapCoord;for(let i=0;i0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)}destroy(){this.renderer=null}}vre.extension={type:ot.RendererSystem,name:"mask"};wt.add(vre);class yre{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:n}=this.renderer,r=this.getStackLength();this.maskStack=t;const i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const uV=new Cr,dV=[],AE=class extends yre{constructor(e){super(e),this.glConst=nt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:r}=this,i=r.renderTexture,o=n.getBounds(!0,dV.pop()??new Zt);this.roundFrameToPixels(o,i.current?i.current.resolution:r.resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:r,d:i}=e;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||AE.isMatrixRotated(t.worldTransform)||AE.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,r,i){AE.isMatrixRotated(i)||(i=i?uV.copyFrom(i):uV.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(i,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&dV.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};let bre=AE;bre.extension={type:ot.RendererSystem,name:"scissor"};wt.add(bre);class xre extends yre{constructor(t){super(t),this.glConst=nt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const n=t.maskObject,{gl:r}=this.renderer,i=t._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++;const o=t._colorMask;o!==0&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(t._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}pop(t){const n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=r?r._colorMask:15;i!==0&&(r._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(r._colorMask=i,n.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}xre.extension={type:ot.RendererSystem,name:"stencil"};wt.add(xre);class wre{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const n in t)this.plugins[n]=new t[n](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}wre.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"_plugin"};wt.add(wre);class _re{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Cr,this.transform=null}update(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);const o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)}calculateProjection(t,n,r,i){const o=this.projectionMatrix,s=i?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d}setTransform(t){}destroy(){this.renderer=null}}_re.extension={type:ot.RendererSystem,name:"projection"};wt.add(_re);const zze=new SU;class Sre{constructor(t){this.renderer=t,this._tempMatrix=new Cr}generateTexture(t,n){const{region:r,...i}=n||{},o=r||t.getLocalBounds(null,!0);o.width===0&&(o.width=1),o.height===0&&(o.height=1);const s=dm.create({width:o.width,height:o.height,...i});this._tempMatrix.tx=-o.x,this._tempMatrix.ty=-o.y;const a=t.transform;return t.transform=zze,this.renderer.render(t,{renderTexture:s,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=a,s}destroy(){}}Sre.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"textureGenerator"};wt.add(Sre);const Wh=new Zt,Wb=new Zt;class Ere{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Zt,this.destinationFrame=new Zt,this.viewportFrame=new Zt}contextChange(){var n;const t=(n=this.renderer)==null?void 0:n.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,n,r){const i=this.renderer;this.current=t;let o,s,a;t?(o=t.baseTexture,a=o.resolution,n||(Wh.width=t.frame.width,Wh.height=t.frame.height,n=Wh),r||(Wb.x=t.frame.x,Wb.y=t.frame.y,Wb.width=n.width,Wb.height=n.height,r=Wb),s=o.framebuffer):(a=i.resolution,n||(Wh.width=i._view.screen.width,Wh.height=i._view.screen.height,n=Wh),r||(r=Wh,r.width=n.width,r.height=n.height));const c=this.viewportFrame;c.x=r.x*a,c.y=r.y*a,c.width=r.width*a,c.height=r.height*a,t||(c.y=i.view.height-(c.y+c.height)),c.ceil(),this.renderer.framebuffer.bind(s,c),this.renderer.projection.update(r,n,a,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)}clear(t,n){const r=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=Vn.shared.setValue(t||r);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const o=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,a=o.width!==s.width||o.height!==s.height;if(a){let{x:c,y:u,width:f,height:h}=this.viewportFrame;c=Math.round(c),u=Math.round(u),f=Math.round(f),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(c,u,f,h)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,n),a&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}Ere.extension={type:ot.RendererSystem,name:"renderTexture"};wt.add(Ere);class jze{constructor(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function Uze(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;if>h?1:-1);for(let f=0;f0?this.maskStack[this.maskStack.length-1]._colorMask:15;r!==n&&this.renderer.gl.colorMask((r&1)!==0,(r&2)!==0,(r&4)!==0,(r&8)!==0)}destroy(){this.renderer=null}}yre.extension={type:ot.RendererSystem,name:"mask"};wt.add(yre);class bre{constructor(t){this.renderer=t,this.maskStack=[],this.glConst=0}getStackLength(){return this.maskStack.length}setMaskStack(t){const{gl:n}=this.renderer,r=this.getStackLength();this.maskStack=t;const i=this.getStackLength();i!==r&&(i===0?n.disable(this.glConst):(n.enable(this.glConst),this._useCurrent()))}_useCurrent(){}destroy(){this.renderer=null,this.maskStack=null}}const hV=new Cr,pV=[],IE=class extends bre{constructor(e){super(e),this.glConst=nt.ADAPTER.getWebGLRenderingContext().SCISSOR_TEST}getStackLength(){const e=this.maskStack[this.maskStack.length-1];return e?e._scissorCounter:0}calcScissorRect(e){if(e._scissorRectLocal)return;const t=e._scissorRect,{maskObject:n}=e,{renderer:r}=this,i=r.renderTexture,o=n.getBounds(!0,pV.pop()??new Zt);this.roundFrameToPixels(o,i.current?i.current.resolution:r.resolution,i.sourceFrame,i.destinationFrame,r.projection.transform),t&&o.fit(t),e._scissorRectLocal=o}static isMatrixRotated(e){if(!e)return!1;const{a:t,b:n,c:r,d:i}=e;return(Math.abs(n)>1e-4||Math.abs(r)>1e-4)&&(Math.abs(t)>1e-4||Math.abs(i)>1e-4)}testScissor(e){const{maskObject:t}=e;if(!t.isFastRect||!t.isFastRect()||IE.isMatrixRotated(t.worldTransform)||IE.isMatrixRotated(this.renderer.projection.transform))return!1;this.calcScissorRect(e);const n=e._scissorRectLocal;return n.width>0&&n.height>0}roundFrameToPixels(e,t,n,r,i){IE.isMatrixRotated(i)||(i=i?hV.copyFrom(i):hV.identity(),i.translate(-n.x,-n.y).scale(r.width/n.width,r.height/n.height).translate(r.x,r.y),this.renderer.filter.transformAABB(i,e),e.fit(r),e.x=Math.round(e.x*t),e.y=Math.round(e.y*t),e.width=Math.round(e.width*t),e.height=Math.round(e.height*t))}push(e){e._scissorRectLocal||this.calcScissorRect(e);const{gl:t}=this.renderer;e._scissorRect||t.enable(t.SCISSOR_TEST),e._scissorCounter++,e._scissorRect=e._scissorRectLocal,this._useCurrent()}pop(e){const{gl:t}=this.renderer;e&&pV.push(e._scissorRectLocal),this.getStackLength()>0?this._useCurrent():t.disable(t.SCISSOR_TEST)}_useCurrent(){const e=this.maskStack[this.maskStack.length-1]._scissorRect;let t;this.renderer.renderTexture.current?t=e.y:t=this.renderer.height-e.height-e.y,this.renderer.gl.scissor(e.x,t,e.width,e.height)}};let xre=IE;xre.extension={type:ot.RendererSystem,name:"scissor"};wt.add(xre);class wre extends bre{constructor(t){super(t),this.glConst=nt.ADAPTER.getWebGLRenderingContext().STENCIL_TEST}getStackLength(){const t=this.maskStack[this.maskStack.length-1];return t?t._stencilCounter:0}push(t){const n=t.maskObject,{gl:r}=this.renderer,i=t._stencilCounter;i===0&&(this.renderer.framebuffer.forceStencil(),r.clearStencil(0),r.clear(r.STENCIL_BUFFER_BIT),r.enable(r.STENCIL_TEST)),t._stencilCounter++;const o=t._colorMask;o!==0&&(t._colorMask=0,r.colorMask(!1,!1,!1,!1)),r.stencilFunc(r.EQUAL,i,4294967295),r.stencilOp(r.KEEP,r.KEEP,r.INCR),n.renderable=!0,n.render(this.renderer),this.renderer.batch.flush(),n.renderable=!1,o!==0&&(t._colorMask=o,r.colorMask((o&1)!==0,(o&2)!==0,(o&4)!==0,(o&8)!==0)),this._useCurrent()}pop(t){const n=this.renderer.gl;if(this.getStackLength()===0)n.disable(n.STENCIL_TEST);else{const r=this.maskStack.length!==0?this.maskStack[this.maskStack.length-1]:null,i=r?r._colorMask:15;i!==0&&(r._colorMask=0,n.colorMask(!1,!1,!1,!1)),n.stencilOp(n.KEEP,n.KEEP,n.DECR),t.renderable=!0,t.render(this.renderer),this.renderer.batch.flush(),t.renderable=!1,i!==0&&(r._colorMask=i,n.colorMask((i&1)!==0,(i&2)!==0,(i&4)!==0,(i&8)!==0)),this._useCurrent()}}_useCurrent(){const t=this.renderer.gl;t.stencilFunc(t.EQUAL,this.getStackLength(),4294967295),t.stencilOp(t.KEEP,t.KEEP,t.KEEP)}}wre.extension={type:ot.RendererSystem,name:"stencil"};wt.add(wre);class _re{constructor(t){this.renderer=t,this.plugins={},Object.defineProperties(this.plugins,{extract:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.extract has moved to renderer.extract"),t.extract}},prepare:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.prepare has moved to renderer.prepare"),t.prepare}},interaction:{enumerable:!1,get(){return fn("7.0.0","renderer.plugins.interaction has been deprecated, use renderer.events"),t.events}}})}init(){const t=this.rendererPlugins;for(const n in t)this.plugins[n]=new t[n](this.renderer)}destroy(){for(const t in this.plugins)this.plugins[t].destroy(),this.plugins[t]=null}}_re.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"_plugin"};wt.add(_re);class Sre{constructor(t){this.renderer=t,this.destinationFrame=null,this.sourceFrame=null,this.defaultFrame=null,this.projectionMatrix=new Cr,this.transform=null}update(t,n,r,i){this.destinationFrame=t||this.destinationFrame||this.defaultFrame,this.sourceFrame=n||this.sourceFrame||t,this.calculateProjection(this.destinationFrame,this.sourceFrame,r,i),this.transform&&this.projectionMatrix.append(this.transform);const o=this.renderer;o.globalUniforms.uniforms.projectionMatrix=this.projectionMatrix,o.globalUniforms.update(),o.shader.shader&&o.shader.syncUniformGroup(o.shader.shader.uniforms.globals)}calculateProjection(t,n,r,i){const o=this.projectionMatrix,s=i?-1:1;o.identity(),o.a=1/n.width*2,o.d=s*(1/n.height*2),o.tx=-1-n.x*o.a,o.ty=-s-n.y*o.d}setTransform(t){}destroy(){this.renderer=null}}Sre.extension={type:ot.RendererSystem,name:"projection"};wt.add(Sre);const Vze=new TU;class Ere{constructor(t){this.renderer=t,this._tempMatrix=new Cr}generateTexture(t,n){const{region:r,...i}=n||{},o=r||t.getLocalBounds(null,!0);o.width===0&&(o.width=1),o.height===0&&(o.height=1);const s=fm.create({width:o.width,height:o.height,...i});this._tempMatrix.tx=-o.x,this._tempMatrix.ty=-o.y;const a=t.transform;return t.transform=Vze,this.renderer.render(t,{renderTexture:s,transform:this._tempMatrix,skipUpdateTransform:!!t.parent,blit:!0}),t.transform=a,s}destroy(){}}Ere.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"textureGenerator"};wt.add(Ere);const Vh=new Zt,Vb=new Zt;class Cre{constructor(t){this.renderer=t,this.defaultMaskStack=[],this.current=null,this.sourceFrame=new Zt,this.destinationFrame=new Zt,this.viewportFrame=new Zt}contextChange(){var n;const t=(n=this.renderer)==null?void 0:n.gl.getContextAttributes();this._rendererPremultipliedAlpha=!!(t&&t.alpha&&t.premultipliedAlpha)}bind(t=null,n,r){const i=this.renderer;this.current=t;let o,s,a;t?(o=t.baseTexture,a=o.resolution,n||(Vh.width=t.frame.width,Vh.height=t.frame.height,n=Vh),r||(Vb.x=t.frame.x,Vb.y=t.frame.y,Vb.width=n.width,Vb.height=n.height,r=Vb),s=o.framebuffer):(a=i.resolution,n||(Vh.width=i._view.screen.width,Vh.height=i._view.screen.height,n=Vh),r||(r=Vh,r.width=n.width,r.height=n.height));const c=this.viewportFrame;c.x=r.x*a,c.y=r.y*a,c.width=r.width*a,c.height=r.height*a,t||(c.y=i.view.height-(c.y+c.height)),c.ceil(),this.renderer.framebuffer.bind(s,c),this.renderer.projection.update(r,n,a,!s),t?this.renderer.mask.setMaskStack(o.maskStack):this.renderer.mask.setMaskStack(this.defaultMaskStack),this.sourceFrame.copyFrom(n),this.destinationFrame.copyFrom(r)}clear(t,n){const r=this.current?this.current.baseTexture.clear:this.renderer.background.backgroundColor,i=Vn.shared.setValue(t||r);(this.current&&this.current.baseTexture.alphaMode>0||!this.current&&this._rendererPremultipliedAlpha)&&i.premultiply(i.alpha);const o=this.destinationFrame,s=this.current?this.current.baseTexture:this.renderer._view.screen,a=o.width!==s.width||o.height!==s.height;if(a){let{x:c,y:u,width:f,height:h}=this.viewportFrame;c=Math.round(c),u=Math.round(u),f=Math.round(f),h=Math.round(h),this.renderer.gl.enable(this.renderer.gl.SCISSOR_TEST),this.renderer.gl.scissor(c,u,f,h)}this.renderer.framebuffer.clear(i.red,i.green,i.blue,i.alpha,n),a&&this.renderer.scissor.pop()}resize(){this.bind(null)}reset(){this.bind(null)}destroy(){this.renderer=null}}Cre.extension={type:ot.RendererSystem,name:"renderTexture"};wt.add(Cre);class qze{constructor(t,n){this.program=t,this.uniformData=n,this.uniformGroups={},this.uniformDirtyGroups={},this.uniformBufferBindings={}}destroy(){this.uniformData=null,this.uniformGroups=null,this.uniformDirtyGroups=null,this.uniformBufferBindings=null,this.program=null}}function Xze(e,t){const n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES);for(let i=0;if>h?1:-1);for(let f=0;f({data:o,offset:0,dataLen:0,dirty:0}));let n=0,r=0,i=0;for(let o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){const a=r%n%16;r+=a,i+=a}r+n>16?(i=Math.ceil(i/16)*16,s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function Xze(e,t){const n=[];for(const r in e)t[r]&&n.push(t[r]);return n.sort((r,i)=>r.index-i.index),n}function Yze(e,t){if(!e.autoManage)return{size:0,syncFunc:Gze};const n=Xze(e.uniforms,t),{uboElements:r,size:i}=qze(n),o=[` + `},Tre={float:4,vec2:8,vec3:12,vec4:16,int:4,ivec2:8,ivec3:12,ivec4:16,uint:4,uvec2:8,uvec3:12,uvec4:16,bool:4,bvec2:8,bvec3:12,bvec4:16,mat2:16*2,mat3:16*3,mat4:16*4};function Zze(e){const t=e.map(o=>({data:o,offset:0,dataLen:0,dirty:0}));let n=0,r=0,i=0;for(let o=0;o1&&(n=Math.max(n,16)*s.data.size),s.dataLen=n,r%n!==0&&r<16){const a=r%n%16;r+=a,i+=a}r+n>16?(i=Math.ceil(i/16)*16,s.offset=i,i+=n,r=n):(s.offset=i,r+=n,i+=n)}return i=Math.ceil(i/16)*16,{uboElements:t,size:i}}function eje(e,t){const n=[];for(const r in e)t[r]&&n.push(t[r]);return n.sort((r,i)=>r.index-i.index),n}function tje(e,t){if(!e.autoManage)return{size:0,syncFunc:Qze};const n=eje(e.uniforms,t),{uboElements:r,size:i}=Zze(n),o=[` var v = null; var v2 = null; var cv = null; @@ -1150,7 +1150,7 @@ void main(void) var gl = renderer.gl var index = 0; var data = buffer.data; - `];for(let s=0;s1){const h=ore(a.data.type),p=Math.max(Cre[a.data.type]/16,1),g=h/p,v=(4-g%4)%4;o.push(` + `];for(let s=0;s1){const h=sre(a.data.type),p=Math.max(Tre[a.data.type]/16,1),g=h/p,v=(4-g%4)%4;o.push(` cv = ud.${u}.value; v = uv.${u}; offset = ${a.offset/4}; @@ -1166,7 +1166,7 @@ void main(void) offset += ${v}; } - `)}else{const h=Vze[a.data.type];o.push(` + `)}else{const h=Jze[a.data.type];o.push(` cv = ud.${u}.value; v = uv.${u}; offset = ${a.offset/4}; @@ -1174,7 +1174,7 @@ void main(void) `)}}return o.push(` renderer.buffer.update(buffer); `),{size:i,syncFunc:new Function("ud","uv","renderer","syncData","buffer",o.join(` -`))}}let Kze=0;const CS={textureCount:0,uboCount:0};class Tre{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=Kze++}systemCheck(){if(!wze())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||(CS.textureCount=0,CS.uboCount=0,this.syncUniformGroup(t.uniformGroup,CS)),i}setUniforms(t){const n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)}syncUniformGroup(t,n){const r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))}syncUniforms(t,n,r){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(n.uniformData,t.uniforms,this.renderer,r)}createSyncGroups(t){const n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=gze(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,n){const r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;const i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,CS,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])}createSyncBufferGroup(t,n,r){const{gl:i}=this.renderer;this.renderer.buffer.bind(t.buffer);const o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let a=this._uboCache[s];if(a||(a=this._uboCache[s]=Yze(t,this.shader.program.uniformData)),t.autoManage){const c=new Float32Array(a.size/4);t.buffer.update(c)}return n.uniformGroups[t.id]=a.syncFunc,n.uniformGroups[t.id]}getSignature(t,n,r){const i=t.uniforms,o=[`${r}-`];for(const s in i)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const n=this.gl,r=t.program,i=Wze(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}Tre.extension={type:ot.RendererSystem,name:"shader"};wt.add(Tre);class OA{constructor(t){this.renderer=t}run(t){const{renderer:n}=this;n.runners.init.emit(n.options),t.hello&&console.log(`PixiJS 7.2.4 - ${n.rendererLogId} - https://pixijs.com`),n.resize(n.screen.width,n.screen.height)}destroy(){}}OA.defaultOptions={hello:!1};OA.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"startup"};wt.add(OA);function Qze(e,t=[]){return t[Dt.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.ADD]=[e.ONE,e.ONE],t[Dt.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.NONE]=[0,0],t[Dt.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Dt.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Dt.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Dt.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Dt.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Dt.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Dt.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Dt.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Dt.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Dt.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Dt.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}const Jze=0,Zze=1,eje=2,tje=3,nje=4,rje=5,E5=class{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Dt.NONE,this._blendEq=!1,this.map=[],this.map[Jze]=this.setBlend,this.map[Zze]=this.setOffset,this.map[eje]=this.setCullFace,this.map[tje]=this.setDepthTest,this.map[nje]=this.setFrontFace,this.map[rje]=this.setDepthMask,this.checks=[],this.defaultState=new Zu,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=Qze(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<>1,n++;this.stateId=e.data}for(let t=0;tt.systems[i]),r=[...n,...Object.keys(t.systems).filter(i=>!n.includes(i))];for(const i of r)this.addSystem(t.systems[i],i)}addRunners(...t){t.forEach(n=>{this.runners[n]=new El(n)})}addSystem(t,n){const r=new t(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=r,this._systemsHash[n]=r;for(const i in this.runners)this.runners[i].add(r);return this}emitWithCustomOptions(t,n){const r=Object.keys(this._systemsHash);t.items.forEach(i=>{const o=r.find(s=>this._systemsHash[s]===i);i[t.name](n[o])})}destroy(){Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash={}}}const IE=class{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=IE.defaultMaxIdle,this.checkCountMax=IE.defaultCheckCountMax,this.mode=IE.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==uU.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){let r=0;for(let i=0;i=0;r--)this.unload(e.children[r])}destroy(){this.renderer=null}};let fl=IE;fl.defaultMode=uU.AUTO;fl.defaultMaxIdle=60*60;fl.defaultCheckCountMax=60*10;fl.extension={type:ot.RendererSystem,name:"textureGC"};wt.add(fl);class t${constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=Ot.UNSIGNED_BYTE,this.internalFormat=Ve.RGBA,this.samplerType=0}}function oje(e){let t;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA8,[Ve.RGB]:e.RGB8,[Ve.RG]:e.RG8,[Ve.RED]:e.R8,[Ve.RGBA_INTEGER]:e.RGBA8UI,[Ve.RGB_INTEGER]:e.RGB8UI,[Ve.RG_INTEGER]:e.RG8UI,[Ve.RED_INTEGER]:e.R8UI,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.BYTE]:{[Ve.RGBA]:e.RGBA8_SNORM,[Ve.RGB]:e.RGB8_SNORM,[Ve.RG]:e.RG8_SNORM,[Ve.RED]:e.R8_SNORM,[Ve.RGBA_INTEGER]:e.RGBA8I,[Ve.RGB_INTEGER]:e.RGB8I,[Ve.RG_INTEGER]:e.RG8I,[Ve.RED_INTEGER]:e.R8I},[Ot.UNSIGNED_SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16UI,[Ve.RGB_INTEGER]:e.RGB16UI,[Ve.RG_INTEGER]:e.RG16UI,[Ve.RED_INTEGER]:e.R16UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT16},[Ot.SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16I,[Ve.RGB_INTEGER]:e.RGB16I,[Ve.RG_INTEGER]:e.RG16I,[Ve.RED_INTEGER]:e.R16I},[Ot.UNSIGNED_INT]:{[Ve.RGBA_INTEGER]:e.RGBA32UI,[Ve.RGB_INTEGER]:e.RGB32UI,[Ve.RG_INTEGER]:e.RG32UI,[Ve.RED_INTEGER]:e.R32UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT24},[Ot.INT]:{[Ve.RGBA_INTEGER]:e.RGBA32I,[Ve.RGB_INTEGER]:e.RGB32I,[Ve.RG_INTEGER]:e.RG32I,[Ve.RED_INTEGER]:e.R32I},[Ot.FLOAT]:{[Ve.RGBA]:e.RGBA32F,[Ve.RGB]:e.RGB32F,[Ve.RG]:e.RG32F,[Ve.RED]:e.R32F,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT32F},[Ot.HALF_FLOAT]:{[Ve.RGBA]:e.RGBA16F,[Ve.RGB]:e.RGB16F,[Ve.RG]:e.RG16F,[Ve.RED]:e.R16F},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB565},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA4},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGB5_A1},[Ot.UNSIGNED_INT_2_10_10_10_REV]:{[Ve.RGBA]:e.RGB10_A2,[Ve.RGBA_INTEGER]:e.RGB10_A2UI},[Ot.UNSIGNED_INT_10F_11F_11F_REV]:{[Ve.RGB]:e.R11F_G11F_B10F},[Ot.UNSIGNED_INT_5_9_9_9_REV]:{[Ve.RGB]:e.RGB9_E5},[Ot.UNSIGNED_INT_24_8]:{[Ve.DEPTH_STENCIL]:e.DEPTH24_STENCIL8},[Ot.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Ve.DEPTH_STENCIL]:e.DEPTH32F_STENCIL8}}:t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA,[Ve.RGB]:e.RGB,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGBA}},t}class Are{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new Vt,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=oje(t);const n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(let i=0;i=0;--o){const s=n[o];s&&s._glTextures[i].samplerType!==t5.FLOAT&&this.renderer.texture.unbind(s)}}initTexture(t){const n=new t$(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n}initTextureType(t,n){var r;n.internalFormat=((r=this.internalFormats[t.type])==null?void 0:r[t.format])??t.format,this.webGLVersion===2&&t.type===Ot.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type}updateTexture(t){var i;const n=t._glTextures[this.CONTEXT_UID];if(!n)return;const r=this.renderer;if(this.initTextureType(t,n),(i=t.resource)!=null&&i.upload(r,t,n))n.samplerType!==t5.FLOAT&&(this.hasIntegerTextures=!0);else{const o=t.realWidth,s=t.realHeight,a=r.gl;(n.width!==o||n.height!==s||n.dirtyId<0)&&(n.width=o,n.height=s,a.texImage2D(t.target,0,n.internalFormat,o,s,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}destroyTexture(t,n){const{gl:r}=this;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){const i=this.managedTextures.indexOf(t);i!==-1&&Ag(this.managedTextures,i,1)}}updateTextureStyle(t){var r;const n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===fc.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Qd.CLAMP:n.wrapMode=t.wrapMode,(r=t.resource)!=null&&r.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)}setStyle(t,n){const r=this.gl;if(n.mipmap&&t.mipmap!==fc.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===ku.LINEAR){const o=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===ku.LINEAR?r.LINEAR:r.NEAREST)}destroy(){this.renderer=null}}Are.extension={type:ot.RendererSystem,name:"texture"};wt.add(Are);class Ire{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glTransformFeedbacks[r]||this.createGLTransformFeedback(t);n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,n){const{gl:r,renderer:i}=this;n&&i.shader.bind(n),r.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:n,renderer:r,CONTEXT_UID:i}=this,o=n.createTransformFeedback();t._glTransformFeedbacks[i]=o,n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,o);for(let s=0;s(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(Kp||{});class n${constructor(t,n=null,r=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}match(t,n=null){return this.fn===t&&this.context===n}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=t?null:n,this.previous=null,n}}const Ms=class{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new n$(null,null,1/0),this.deltaMS=1/Ms.targetFPMS,this.elapsedMS=1/Ms.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=Kp.NORMAL){return this._addListener(new n$(e,t,n))}addOnce(e,t,n=Kp.NORMAL){return this._addListener(new n$(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const i=e-this._lastFrame|0;if(i{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Si.shared:new Si,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}Rre.extension=ot.Application;wt.add(Rre);const Pre=[];wt.handleByList(ot.Renderer,Pre);function sje(e){for(const t of Pre)if(t.test(e))return new t(e);throw new Error("Unable to auto-detect a suitable renderer.")}var aje=`attribute vec2 aVertexPosition; +`))}}let nje=0;const TS={textureCount:0,uboCount:0};class kre{constructor(t){this.destroyed=!1,this.renderer=t,this.systemCheck(),this.gl=null,this.shader=null,this.program=null,this.cache={},this._uboCache={},this.id=nje++}systemCheck(){if(!kze())throw new Error("Current environment does not allow unsafe-eval, please use @pixi/unsafe-eval module to enable support.")}contextChange(t){this.gl=t,this.reset()}bind(t,n){t.disposeRunner.add(this),t.uniforms.globals=this.renderer.globalUniforms;const r=t.program,i=r.glPrograms[this.renderer.CONTEXT_UID]||this.generateProgram(t);return this.shader=t,this.program!==r&&(this.program=r,this.gl.useProgram(i.program)),n||(TS.textureCount=0,TS.uboCount=0,this.syncUniformGroup(t.uniformGroup,TS)),i}setUniforms(t){const n=this.shader.program,r=n.glPrograms[this.renderer.CONTEXT_UID];n.syncUniforms(r.uniformData,t,this.renderer)}syncUniformGroup(t,n){const r=this.getGlProgram();(!t.static||t.dirtyId!==r.uniformDirtyGroups[t.id])&&(r.uniformDirtyGroups[t.id]=t.dirtyId,this.syncUniforms(t,r,n))}syncUniforms(t,n,r){(t.syncUniforms[this.shader.program.id]||this.createSyncGroups(t))(n.uniformData,t.uniforms,this.renderer,r)}createSyncGroups(t){const n=this.getSignature(t,this.shader.program.uniformData,"u");return this.cache[n]||(this.cache[n]=_ze(t,this.shader.program.uniformData)),t.syncUniforms[this.shader.program.id]=this.cache[n],t.syncUniforms[this.shader.program.id]}syncUniformBufferGroup(t,n){const r=this.getGlProgram();if(!t.static||t.dirtyId!==0||!r.uniformGroups[t.id]){t.dirtyId=0;const i=r.uniformGroups[t.id]||this.createSyncBufferGroup(t,r,n);t.buffer.update(),i(r.uniformData,t.uniforms,this.renderer,TS,t.buffer)}this.renderer.buffer.bindBufferBase(t.buffer,r.uniformBufferBindings[n])}createSyncBufferGroup(t,n,r){const{gl:i}=this.renderer;this.renderer.buffer.bind(t.buffer);const o=this.gl.getUniformBlockIndex(n.program,r);n.uniformBufferBindings[r]=this.shader.uniformBindCount,i.uniformBlockBinding(n.program,o,this.shader.uniformBindCount),this.shader.uniformBindCount++;const s=this.getSignature(t,this.shader.program.uniformData,"ubo");let a=this._uboCache[s];if(a||(a=this._uboCache[s]=tje(t,this.shader.program.uniformData)),t.autoManage){const c=new Float32Array(a.size/4);t.buffer.update(c)}return n.uniformGroups[t.id]=a.syncFunc,n.uniformGroups[t.id]}getSignature(t,n,r){const i=t.uniforms,o=[`${r}-`];for(const s in i)o.push(s),n[s]&&o.push(n[s].type);return o.join("-")}getGlProgram(){return this.shader?this.shader.program.glPrograms[this.renderer.CONTEXT_UID]:null}generateProgram(t){const n=this.gl,r=t.program,i=Kze(n,r);return r.glPrograms[this.renderer.CONTEXT_UID]=i,i}reset(){this.program=null,this.shader=null}disposeShader(t){this.shader===t&&(this.shader=null)}destroy(){this.renderer=null,this.destroyed=!0}}kre.extension={type:ot.RendererSystem,name:"shader"};wt.add(kre);class DA{constructor(t){this.renderer=t}run(t){const{renderer:n}=this;n.runners.init.emit(n.options),t.hello&&console.log(`PixiJS 7.2.4 - ${n.rendererLogId} - https://pixijs.com`),n.resize(n.screen.width,n.screen.height)}destroy(){}}DA.defaultOptions={hello:!1};DA.extension={type:[ot.RendererSystem,ot.CanvasRendererSystem],name:"startup"};wt.add(DA);function rje(e,t=[]){return t[Lt.NORMAL]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.ADD]=[e.ONE,e.ONE],t[Lt.MULTIPLY]=[e.DST_COLOR,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.SCREEN]=[e.ONE,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.OVERLAY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.DARKEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.LIGHTEN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.COLOR_DODGE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.COLOR_BURN]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.HARD_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.SOFT_LIGHT]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.DIFFERENCE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.EXCLUSION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.HUE]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.SATURATION]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.COLOR]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.LUMINOSITY]=[e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.NONE]=[0,0],t[Lt.NORMAL_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_ALPHA,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.ADD_NPM]=[e.SRC_ALPHA,e.ONE,e.ONE,e.ONE],t[Lt.SCREEN_NPM]=[e.SRC_ALPHA,e.ONE_MINUS_SRC_COLOR,e.ONE,e.ONE_MINUS_SRC_ALPHA],t[Lt.SRC_IN]=[e.DST_ALPHA,e.ZERO],t[Lt.SRC_OUT]=[e.ONE_MINUS_DST_ALPHA,e.ZERO],t[Lt.SRC_ATOP]=[e.DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Lt.DST_OVER]=[e.ONE_MINUS_DST_ALPHA,e.ONE],t[Lt.DST_IN]=[e.ZERO,e.SRC_ALPHA],t[Lt.DST_OUT]=[e.ZERO,e.ONE_MINUS_SRC_ALPHA],t[Lt.DST_ATOP]=[e.ONE_MINUS_DST_ALPHA,e.SRC_ALPHA],t[Lt.XOR]=[e.ONE_MINUS_DST_ALPHA,e.ONE_MINUS_SRC_ALPHA],t[Lt.SUBTRACT]=[e.ONE,e.ONE,e.ONE,e.ONE,e.FUNC_REVERSE_SUBTRACT,e.FUNC_ADD],t}const ije=0,oje=1,sje=2,aje=3,lje=4,cje=5,k5=class{constructor(){this.gl=null,this.stateId=0,this.polygonOffset=0,this.blendMode=Lt.NONE,this._blendEq=!1,this.map=[],this.map[ije]=this.setBlend,this.map[oje]=this.setOffset,this.map[sje]=this.setCullFace,this.map[aje]=this.setDepthTest,this.map[lje]=this.setFrontFace,this.map[cje]=this.setDepthMask,this.checks=[],this.defaultState=new ed,this.defaultState.blend=!0}contextChange(e){this.gl=e,this.blendModes=rje(e),this.set(this.defaultState),this.reset()}set(e){if(e=e||this.defaultState,this.stateId!==e.data){let t=this.stateId^e.data,n=0;for(;t;)t&1&&this.map[n].call(this,!!(e.data&1<>1,n++;this.stateId=e.data}for(let t=0;tt.systems[i]),r=[...n,...Object.keys(t.systems).filter(i=>!n.includes(i))];for(const i of r)this.addSystem(t.systems[i],i)}addRunners(...t){t.forEach(n=>{this.runners[n]=new Cl(n)})}addSystem(t,n){const r=new t(this);if(this[n])throw new Error(`Whoops! The name "${n}" is already in use`);this[n]=r,this._systemsHash[n]=r;for(const i in this.runners)this.runners[i].add(r);return this}emitWithCustomOptions(t,n){const r=Object.keys(this._systemsHash);t.items.forEach(i=>{const o=r.find(s=>this._systemsHash[s]===i);i[t.name](n[o])})}destroy(){Object.values(this.runners).forEach(t=>{t.destroy()}),this._systemsHash={}}}const RE=class{constructor(e){this.renderer=e,this.count=0,this.checkCount=0,this.maxIdle=RE.defaultMaxIdle,this.checkCountMax=RE.defaultCheckCountMax,this.mode=RE.defaultMode}postrender(){this.renderer.objectRenderer.renderingToScreen&&(this.count++,this.mode!==hU.MANUAL&&(this.checkCount++,this.checkCount>this.checkCountMax&&(this.checkCount=0,this.run())))}run(){const e=this.renderer.texture,t=e.managedTextures;let n=!1;for(let r=0;rthis.maxIdle&&(e.destroyTexture(i,!0),t[r]=null,n=!0)}if(n){let r=0;for(let i=0;i=0;r--)this.unload(e.children[r])}destroy(){this.renderer=null}};let hl=RE;hl.defaultMode=hU.AUTO;hl.defaultMaxIdle=60*60;hl.defaultCheckCountMax=60*10;hl.extension={type:ot.RendererSystem,name:"textureGC"};wt.add(hl);class r${constructor(t){this.texture=t,this.width=-1,this.height=-1,this.dirtyId=-1,this.dirtyStyleId=-1,this.mipmap=!1,this.wrapMode=33071,this.type=Ot.UNSIGNED_BYTE,this.internalFormat=Ve.RGBA,this.samplerType=0}}function dje(e){let t;return"WebGL2RenderingContext"in globalThis&&e instanceof globalThis.WebGL2RenderingContext?t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA8,[Ve.RGB]:e.RGB8,[Ve.RG]:e.RG8,[Ve.RED]:e.R8,[Ve.RGBA_INTEGER]:e.RGBA8UI,[Ve.RGB_INTEGER]:e.RGB8UI,[Ve.RG_INTEGER]:e.RG8UI,[Ve.RED_INTEGER]:e.R8UI,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.BYTE]:{[Ve.RGBA]:e.RGBA8_SNORM,[Ve.RGB]:e.RGB8_SNORM,[Ve.RG]:e.RG8_SNORM,[Ve.RED]:e.R8_SNORM,[Ve.RGBA_INTEGER]:e.RGBA8I,[Ve.RGB_INTEGER]:e.RGB8I,[Ve.RG_INTEGER]:e.RG8I,[Ve.RED_INTEGER]:e.R8I},[Ot.UNSIGNED_SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16UI,[Ve.RGB_INTEGER]:e.RGB16UI,[Ve.RG_INTEGER]:e.RG16UI,[Ve.RED_INTEGER]:e.R16UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT16},[Ot.SHORT]:{[Ve.RGBA_INTEGER]:e.RGBA16I,[Ve.RGB_INTEGER]:e.RGB16I,[Ve.RG_INTEGER]:e.RG16I,[Ve.RED_INTEGER]:e.R16I},[Ot.UNSIGNED_INT]:{[Ve.RGBA_INTEGER]:e.RGBA32UI,[Ve.RGB_INTEGER]:e.RGB32UI,[Ve.RG_INTEGER]:e.RG32UI,[Ve.RED_INTEGER]:e.R32UI,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT24},[Ot.INT]:{[Ve.RGBA_INTEGER]:e.RGBA32I,[Ve.RGB_INTEGER]:e.RGB32I,[Ve.RG_INTEGER]:e.RG32I,[Ve.RED_INTEGER]:e.R32I},[Ot.FLOAT]:{[Ve.RGBA]:e.RGBA32F,[Ve.RGB]:e.RGB32F,[Ve.RG]:e.RG32F,[Ve.RED]:e.R32F,[Ve.DEPTH_COMPONENT]:e.DEPTH_COMPONENT32F},[Ot.HALF_FLOAT]:{[Ve.RGBA]:e.RGBA16F,[Ve.RGB]:e.RGB16F,[Ve.RG]:e.RG16F,[Ve.RED]:e.R16F},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB565},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA4},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGB5_A1},[Ot.UNSIGNED_INT_2_10_10_10_REV]:{[Ve.RGBA]:e.RGB10_A2,[Ve.RGBA_INTEGER]:e.RGB10_A2UI},[Ot.UNSIGNED_INT_10F_11F_11F_REV]:{[Ve.RGB]:e.R11F_G11F_B10F},[Ot.UNSIGNED_INT_5_9_9_9_REV]:{[Ve.RGB]:e.RGB9_E5},[Ot.UNSIGNED_INT_24_8]:{[Ve.DEPTH_STENCIL]:e.DEPTH24_STENCIL8},[Ot.FLOAT_32_UNSIGNED_INT_24_8_REV]:{[Ve.DEPTH_STENCIL]:e.DEPTH32F_STENCIL8}}:t={[Ot.UNSIGNED_BYTE]:{[Ve.RGBA]:e.RGBA,[Ve.RGB]:e.RGB,[Ve.ALPHA]:e.ALPHA,[Ve.LUMINANCE]:e.LUMINANCE,[Ve.LUMINANCE_ALPHA]:e.LUMINANCE_ALPHA},[Ot.UNSIGNED_SHORT_5_6_5]:{[Ve.RGB]:e.RGB},[Ot.UNSIGNED_SHORT_4_4_4_4]:{[Ve.RGBA]:e.RGBA},[Ot.UNSIGNED_SHORT_5_5_5_1]:{[Ve.RGBA]:e.RGBA}},t}class Ire{constructor(t){this.renderer=t,this.boundTextures=[],this.currentLocation=-1,this.managedTextures=[],this._unknownBoundTextures=!1,this.unknownTexture=new qt,this.hasIntegerTextures=!1}contextChange(){const t=this.gl=this.renderer.gl;this.CONTEXT_UID=this.renderer.CONTEXT_UID,this.webGLVersion=this.renderer.context.webGLVersion,this.internalFormats=dje(t);const n=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS);this.boundTextures.length=n;for(let i=0;i=0;--o){const s=n[o];s&&s._glTextures[i].samplerType!==i5.FLOAT&&this.renderer.texture.unbind(s)}}initTexture(t){const n=new r$(this.gl.createTexture());return n.dirtyId=-1,t._glTextures[this.CONTEXT_UID]=n,this.managedTextures.push(t),t.on("dispose",this.destroyTexture,this),n}initTextureType(t,n){var r;n.internalFormat=((r=this.internalFormats[t.type])==null?void 0:r[t.format])??t.format,this.webGLVersion===2&&t.type===Ot.HALF_FLOAT?n.type=this.gl.HALF_FLOAT:n.type=t.type}updateTexture(t){var i;const n=t._glTextures[this.CONTEXT_UID];if(!n)return;const r=this.renderer;if(this.initTextureType(t,n),(i=t.resource)!=null&&i.upload(r,t,n))n.samplerType!==i5.FLOAT&&(this.hasIntegerTextures=!0);else{const o=t.realWidth,s=t.realHeight,a=r.gl;(n.width!==o||n.height!==s||n.dirtyId<0)&&(n.width=o,n.height=s,a.texImage2D(t.target,0,n.internalFormat,o,s,0,t.format,n.type,null))}t.dirtyStyleId!==n.dirtyStyleId&&this.updateTextureStyle(t),n.dirtyId=t.dirtyId}destroyTexture(t,n){const{gl:r}=this;if(t=t.castToBaseTexture(),t._glTextures[this.CONTEXT_UID]&&(this.unbind(t),r.deleteTexture(t._glTextures[this.CONTEXT_UID].texture),t.off("dispose",this.destroyTexture,this),delete t._glTextures[this.CONTEXT_UID],!n)){const i=this.managedTextures.indexOf(t);i!==-1&&Ig(this.managedTextures,i,1)}}updateTextureStyle(t){var r;const n=t._glTextures[this.CONTEXT_UID];n&&((t.mipmap===pc.POW2||this.webGLVersion!==2)&&!t.isPowerOfTwo?n.mipmap=!1:n.mipmap=t.mipmap>=1,this.webGLVersion!==2&&!t.isPowerOfTwo?n.wrapMode=Jd.CLAMP:n.wrapMode=t.wrapMode,(r=t.resource)!=null&&r.style(this.renderer,t,n)||this.setStyle(t,n),n.dirtyStyleId=t.dirtyStyleId)}setStyle(t,n){const r=this.gl;if(n.mipmap&&t.mipmap!==pc.ON_MANUAL&&r.generateMipmap(t.target),r.texParameteri(t.target,r.TEXTURE_WRAP_S,n.wrapMode),r.texParameteri(t.target,r.TEXTURE_WRAP_T,n.wrapMode),n.mipmap){r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===Au.LINEAR?r.LINEAR_MIPMAP_LINEAR:r.NEAREST_MIPMAP_NEAREST);const i=this.renderer.context.extensions.anisotropicFiltering;if(i&&t.anisotropicLevel>0&&t.scaleMode===Au.LINEAR){const o=Math.min(t.anisotropicLevel,r.getParameter(i.MAX_TEXTURE_MAX_ANISOTROPY_EXT));r.texParameterf(t.target,i.TEXTURE_MAX_ANISOTROPY_EXT,o)}}else r.texParameteri(t.target,r.TEXTURE_MIN_FILTER,t.scaleMode===Au.LINEAR?r.LINEAR:r.NEAREST);r.texParameteri(t.target,r.TEXTURE_MAG_FILTER,t.scaleMode===Au.LINEAR?r.LINEAR:r.NEAREST)}destroy(){this.renderer=null}}Ire.extension={type:ot.RendererSystem,name:"texture"};wt.add(Ire);class Rre{constructor(t){this.renderer=t}contextChange(){this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glTransformFeedbacks[r]||this.createGLTransformFeedback(t);n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,i)}unbind(){const{gl:t}=this;t.bindTransformFeedback(t.TRANSFORM_FEEDBACK,null)}beginTransformFeedback(t,n){const{gl:r,renderer:i}=this;n&&i.shader.bind(n),r.beginTransformFeedback(t)}endTransformFeedback(){const{gl:t}=this;t.endTransformFeedback()}createGLTransformFeedback(t){const{gl:n,renderer:r,CONTEXT_UID:i}=this,o=n.createTransformFeedback();t._glTransformFeedbacks[i]=o,n.bindTransformFeedback(n.TRANSFORM_FEEDBACK,o);for(let s=0;s(e[e.INTERACTION=50]="INTERACTION",e[e.HIGH=25]="HIGH",e[e.NORMAL=0]="NORMAL",e[e.LOW=-25]="LOW",e[e.UTILITY=-50]="UTILITY",e))(Qp||{});class i${constructor(t,n=null,r=0,i=!1){this.next=null,this.previous=null,this._destroyed=!1,this.fn=t,this.context=n,this.priority=r,this.once=i}match(t,n=null){return this.fn===t&&this.context===n}emit(t){this.fn&&(this.context?this.fn.call(this.context,t):this.fn(t));const n=this.next;return this.once&&this.destroy(!0),this._destroyed&&(this.next=null),n}connect(t){this.previous=t,t.next&&(t.next.previous=this),this.next=t.next,t.next=this}destroy(t=!1){this._destroyed=!0,this.fn=null,this.context=null,this.previous&&(this.previous.next=this.next),this.next&&(this.next.previous=this.previous);const n=this.next;return this.next=t?null:n,this.previous=null,n}}const Ms=class{constructor(){this.autoStart=!1,this.deltaTime=1,this.lastTime=-1,this.speed=1,this.started=!1,this._requestId=null,this._maxElapsedMS=100,this._minElapsedMS=0,this._protected=!1,this._lastFrame=-1,this._head=new i$(null,null,1/0),this.deltaMS=1/Ms.targetFPMS,this.elapsedMS=1/Ms.targetFPMS,this._tick=e=>{this._requestId=null,this.started&&(this.update(e),this.started&&this._requestId===null&&this._head.next&&(this._requestId=requestAnimationFrame(this._tick)))}}_requestIfNeeded(){this._requestId===null&&this._head.next&&(this.lastTime=performance.now(),this._lastFrame=this.lastTime,this._requestId=requestAnimationFrame(this._tick))}_cancelIfNeeded(){this._requestId!==null&&(cancelAnimationFrame(this._requestId),this._requestId=null)}_startIfPossible(){this.started?this._requestIfNeeded():this.autoStart&&this.start()}add(e,t,n=Qp.NORMAL){return this._addListener(new i$(e,t,n))}addOnce(e,t,n=Qp.NORMAL){return this._addListener(new i$(e,t,n,!0))}_addListener(e){let t=this._head.next,n=this._head;if(!t)e.connect(n);else{for(;t;){if(e.priority>t.priority){e.connect(n);break}n=t,t=t.next}e.previous||e.connect(n)}return this._startIfPossible(),this}remove(e,t){let n=this._head.next;for(;n;)n.match(e,t)?n=n.destroy():n=n.next;return this._head.next||this._cancelIfNeeded(),this}get count(){if(!this._head)return 0;let e=0,t=this._head;for(;t=t.next;)e++;return e}start(){this.started||(this.started=!0,this._requestIfNeeded())}stop(){this.started&&(this.started=!1,this._cancelIfNeeded())}destroy(){if(!this._protected){this.stop();let e=this._head.next;for(;e;)e=e.destroy(!0);this._head.destroy(),this._head=null}}update(e=performance.now()){let t;if(e>this.lastTime){if(t=this.elapsedMS=e-this.lastTime,t>this._maxElapsedMS&&(t=this._maxElapsedMS),t*=this.speed,this._minElapsedMS){const i=e-this._lastFrame|0;if(i{this._ticker.stop()},this.start=()=>{this._ticker.start()},this._ticker=null,this.ticker=t.sharedTicker?Si.shared:new Si,t.autoStart&&this.start()}static destroy(){if(this._ticker){const t=this._ticker;this.ticker=null,t.destroy()}}}Pre.extension=ot.Application;wt.add(Pre);const Ore=[];wt.handleByList(ot.Renderer,Ore);function fje(e){for(const t of Ore)if(t.test(e))return new t(e);throw new Error("Unable to auto-detect a suitable renderer.")}var hje=`attribute vec2 aVertexPosition; attribute vec2 aTextureCoord; uniform mat3 projectionMatrix; @@ -1185,7 +1185,7 @@ void main(void) { gl_Position = vec4((projectionMatrix * vec3(aVertexPosition, 1.0)).xy, 0.0, 1.0); vTextureCoord = aTextureCoord; -}`,lje=`attribute vec2 aVertexPosition; +}`,pje=`attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1211,7 +1211,7 @@ void main(void) gl_Position = filterVertexPosition(); vTextureCoord = filterTextureCoord(); } -`;const cje=aje,Ore=lje;class Mre{constructor(t){this.renderer=t}contextChange(t){let n;if(this.renderer.context.webGLVersion===1){const r=t.getParameter(t.FRAMEBUFFER_BINDING);t.bindFramebuffer(t.FRAMEBUFFER,null),n=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.FRAMEBUFFER,r)}else{const r=t.getParameter(t.DRAW_FRAMEBUFFER_BINDING);t.bindFramebuffer(t.DRAW_FRAMEBUFFER,null),n=t.getParameter(t.SAMPLES),t.bindFramebuffer(t.DRAW_FRAMEBUFFER,r)}n>=ri.HIGH?this.multisample=ri.HIGH:n>=ri.MEDIUM?this.multisample=ri.MEDIUM:n>=ri.LOW?this.multisample=ri.LOW:this.multisample=ri.NONE}destroy(){}}Mre.extension={type:ot.RendererSystem,name:"_multisample"};wt.add(Mre);class uje{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Lre{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);n.bindBuffer(t.type,i.buffer)}unbind(t){const{gl:n}=this;n.bindBuffer(t,null)}bindBufferBase(t,n){const{gl:r,CONTEXT_UID:i}=this;if(this.boundBufferBases[n]!==t){const o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[n]=t,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}}bindBufferRange(t,n,r){const{gl:i,CONTEXT_UID:o}=this;r=r||0;const s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)}update(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);if(t._updateID!==i.updateID)if(i.updateID=t._updateID,n.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{const o=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,o)}}dispose(t,n){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const n=Object.keys(this.managedBuffers);for(let r=0;rr.resource).filter(r=>r).map(r=>r.load());return this._load=Promise.all(n).then(()=>{const{realWidth:r,realHeight:i}=this.items[0];return this.resize(r,i),Promise.resolve(this)}),this._load}}class dje extends Nre{constructor(t,n){const{width:r,height:i}=n||{};let o,s;Array.isArray(t)?(o=t,s=t.length):s=t,super(s,{width:r,height:i}),o&&this.initFromArray(o,n)}addBaseTextureAt(t,n){if(t.resource)this.addResourceAt(t.resource,n);else throw new Error("ArrayResource does not support RenderTexture");return this}bind(t){super.bind(t),t.target=Eg.TEXTURE_2D_ARRAY}upload(t,n,r){const{length:i,itemDirtyIds:o,items:s}=this,{gl:a}=t;r.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,n.format,r.type,null);for(let c=0;c0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Eg.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const r=this.itemDirtyIds;for(let i=0;i{if(this.url===null){t(this);return}try{const r=await nt.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await r.blob();if(this.destroyed)return;const o=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ml.UNPACK?"premultiply":"none"});if(this.destroyed)return;this.source=o,this.update(),t(this)}catch(r){if(this.destroyed)return;n(r),this.onError.emit(r)}}),this._load)}upload(t,n,r){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),super.upload(t,n,r)):(this.load(),!1)}dispose(){this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof t=="string"||t instanceof ImageBitmap)}static get EMPTY(){return dg._EMPTY=dg._EMPTY??nt.ADAPTER.createCanvas(0,0),dg._EMPTY}}const RE=class extends lf{constructor(e,t){t=t||{},super(nt.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.resize(this.source.width,this.source.height),e(this)},RE.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;lf.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=t*this.scale,i=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/n*t,i=this._overrideHeight||this._overrideWidth/t*n),r=Math.round(r),i=Math.round(i);const o=this.source;o.width=r,o.height=i,o._pixiId=`canvas_${Yp()}`,o.getContext("2d").drawImage(e,0,0,t,n,0,0,r,i),this._resolve(),this._resolve=null}}static getSize(e){const t=RE.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&RE.SVG_XML.test(e)}};let tw=RE;tw.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;const T5=class extends lf{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");n.setAttribute("preload","auto"),n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);const r=e[0].src||e[0];lf.crossOrigin(n,r,t.crossorigin);for(let i=0;i{this.valid?t(this):(this._resolve=t,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0)}_onPlayStop(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1);const e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0))}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e)}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||T5.TYPES.includes(t)}};let EU=T5;EU.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];EU.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};b5.push(dg,cre,fje,EU,tw,Kw,Bre,dje);class rT{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Zt.EMPTY:(t=t||new Zt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,n){const{a:r,b:i,c:o,d:s,tx:a,ty:c}=t,u=r*n.x+o*n.y+a,f=i*n.x+s*n.y+c;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)}addQuad(t){let n=this.minX,r=this.minY,i=this.maxX,o=this.maxY,s=t[0],a=t[1];n=si?s:i,o=a>o?a:o,s=t[2],a=t[3],n=si?s:i,o=a>o?a:o,s=t[4],a=t[5],n=si?s:i,o=a>o?a:o,s=t[6],a=t[7],n=si?s:i,o=a>o?a:o,this.minX=n,this.minY=r,this.maxX=i,this.maxY=o}addFrame(t,n,r,i,o){this.addFrameMatrix(t.worldTransform,n,r,i,o)}addFrameMatrix(t,n,r,i,o){const s=t.a,a=t.b,c=t.c,u=t.d,f=t.tx,h=t.ty;let p=this.minX,g=this.minY,v=this.maxX,y=this.maxY,S=s*n+c*r+f,w=a*n+u*r+h;p=Sv?S:v,y=w>y?w:y,S=s*i+c*r+f,w=a*i+u*r+h,p=Sv?S:v,y=w>y?w:y,S=s*n+c*o+f,w=a*n+u*o+h,p=Sv?S:v,y=w>y?w:y,S=s*i+c*o+f,w=a*i+u*o+h,p=Sv?S:v,y=w>y?w:y,this.minX=p,this.minY=g,this.maxX=v,this.maxY=y}addVertexData(t,n,r){let i=this.minX,o=this.minY,s=this.maxX,a=this.maxY;for(let c=n;cs?u:s,a=f>a?f:a}this.minX=i,this.minY=o,this.maxX=s,this.maxY=a}addVertices(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)}addVerticesMatrix(t,n,r,i,o=0,s=o){const a=t.a,c=t.b,u=t.c,f=t.d,h=t.tx,p=t.ty;let g=this.minX,v=this.minY,y=this.maxX,S=this.maxY;for(let w=r;wi?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,n){const r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,o=t.maxXu?o:u,this.maxY=s>f?s:f}}addBoundsMatrix(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,n){const r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,o=t.maxXu?o:u,this.maxY=s>f?s:f}}pad(t=0,n=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)}addFramePad(t,n,r,i,o,s){t-=o,n-=s,r+=o,i+=s,this.minX=this.minXr?this.maxX:r,this.minY=this.minYi?this.maxY:i}}class Ur extends Xw{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new SU,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new rT,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const n=Object.keys(t);for(let r=0;r1)for(let t=0;tthis.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);Ag(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t0&&i<=r){o=this.children.splice(n,i);for(let s=0;s1&&this.children.sort(mje),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e0&&t.height>0))return;let n,r;this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==k5.prototype._render&&(n=this.getBounds(!0));const i=e.projection.transform;if(i&&(r?(r=pje.copyFrom(r),r.prepend(i)):r=i),n&&t.intersects(n,r))this._render(e);else if(this.cullArea)return;for(let o=0,s=this.children.length;ot in e?gje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>(vje(e,typeof t!="symbol"?t+"":t,n),n);let Da=class{constructor(t){Ee(this,"parent"),Ee(this,"paused"),this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}};var yje=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},$re={exports:{}};(function(e,t){(function(){var n,r;r=function(i){return e.exports=i},n={linear:function(i,o,s,a){return s*i/a+o},easeInQuad:function(i,o,s,a){return s*(i/=a)*i+o},easeOutQuad:function(i,o,s,a){return-s*(i/=a)*(i-2)+o},easeInOutQuad:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i+o:-s/2*(--i*(i-2)-1)+o},easeInCubic:function(i,o,s,a){return s*(i/=a)*i*i+o},easeOutCubic:function(i,o,s,a){return s*((i=i/a-1)*i*i+1)+o},easeInOutCubic:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i+o:s/2*((i-=2)*i*i+2)+o},easeInQuart:function(i,o,s,a){return s*(i/=a)*i*i*i+o},easeOutQuart:function(i,o,s,a){return-s*((i=i/a-1)*i*i*i-1)+o},easeInOutQuart:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i+o:-s/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(i,o,s,a){return s*(i/=a)*i*i*i*i+o},easeOutQuint:function(i,o,s,a){return s*((i=i/a-1)*i*i*i*i+1)+o},easeInOutQuint:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i*i+o:s/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(i,o,s,a){return-s*Math.cos(i/a*(Math.PI/2))+s+o},easeOutSine:function(i,o,s,a){return s*Math.sin(i/a*(Math.PI/2))+o},easeInOutSine:function(i,o,s,a){return-s/2*(Math.cos(Math.PI*i/a)-1)+o},easeInExpo:function(i,o,s,a){return i===0?o:s*Math.pow(2,10*(i/a-1))+o},easeOutExpo:function(i,o,s,a){return i===a?o+s:s*(-Math.pow(2,-10*i/a)+1)+o},easeInOutExpo:function(i,o,s,a){return(i/=a/2)<1?s/2*Math.pow(2,10*(i-1))+o:s/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(i,o,s,a){return-s*(Math.sqrt(1-(i/=a)*i)-1)+o},easeOutCirc:function(i,o,s,a){return s*Math.sqrt(1-(i=i/a-1)*i)+o},easeInOutCirc:function(i,o,s,a){return(i/=a/2)<1?-s/2*(Math.sqrt(1-i*i)-1)+o:s/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(i,o,s,a){var c,u,f;return f=1.70158,u=0,c=s,i===0||(i/=a),u||(u=a*.3),c=this.options.time){const r=this.parent.width,i=this.parent.height;this.complete(),(r!==this.parent.width||i!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}else{const r=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const i=this.startWidth,o=this.deltaWidth;this.parent.fitWidth(i+o*r,this.keepCenter,this.height===null)}if(this.height!==null){const i=this.startHeight,o=this.deltaHeight;this.parent.fitHeight(i+o*r,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const i=this.startX,o=this.startY,s=this.deltaX,a=this.deltaY,c=new Lt(this.parent.x,this.parent.y);this.parent.moveCenter(i+s*r,o+a*r),this.parent.emit("moved",{viewport:this.parent,original:c,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}}};const wje={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};let _je=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"underflowX"),Ee(this,"underflowY"),Ee(this,"ease"),Ee(this,"toX"),Ee(this,"toY"),this.options=Object.assign({},wje,n),this.ease=LA(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const r=this.options.underflow.toLowerCase();r==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=r.indexOf("left")!==-1?-1:r.indexOf("right")!==-1?1:0,this.underflowY=r.indexOf("top")!==-1?-1:r.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const n=this.toX;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),n.time>=this.options.time?(this.parent.x=n.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(n.time,n.start,n.delta,this.options.time)}if(this.toY){const n=this.toY;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),n.time>=this.options.time?(this.parent.y=n.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(n.time,n.start,n.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const n=typeof t.x>"u"?0:t.x,r=typeof t.y>"u"?0:t.y,i=typeof t.width>"u"?this.parent.worldWidth:t.width,o=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.lefti,top:this.parent.topo,topLeft:new Lt(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new Lt(i*this.parent.scale.x-this.parent.screenWidth,o*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new Lt(0,0),bottomRight:new Lt(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,n;if(this.paused)return;let r,i=this.parent.plugins.get("decelerate",!0);i&&(i.x||i.y)&&(i.x&&i.percentChangeX===((t=i.options)==null?void 0:t.friction)||i.y&&i.percentChangeY===((n=i.options)==null?void 0:n.friction))&&(r=this.oob(),(r.left&&this.left||r.right&&this.right)&&(i.percentChangeX=this.options.friction),(r.top&&this.top||r.bottom&&this.bottom)&&(i.percentChangeY=this.options.friction));const o=this.parent.plugins.get("drag",!0)||{},s=this.parent.plugins.get("pinch",!0)||{};if(i=i||{},!(o!=null&&o.active)&&!(s!=null&&s.active)&&(!this.toX||!this.toY)&&(!i.x||!i.y)){r=r||this.oob();const a=r.topLeft,c=r.bottomRight;if(!this.toX&&!i.x){let u=null;r.left&&this.left?u=this.parent.screenWorldWidth(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,n.x=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let r=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,n.y=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}};const Cje={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};let Tje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),this.options=Object.assign({},Cje,n),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&tthis.options.maxWidth){const r=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&nthis.options.maxHeight){const r=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},n={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const o=this.options.minScale;t.x=typeof o.x>"u"?null:o.x,t.y=typeof o.y>"u"?null:o.y}if(typeof this.options.maxScale=="number")n.x=this.options.maxScale,n.y=this.options.maxScale;else if(this.options.maxScale!==null){const o=this.options.maxScale;n.x=typeof o.x>"u"?null:o.x,n.y=typeof o.y>"u"?null:o.y}let r=this.parent.scale.x,i=this.parent.scale.y;t.x!==null&&rn.x&&(r=n.x),t.y!==null&&in.y&&(i=n.y),(r!==this.parent.scale.x||i!==this.parent.scale.y)&&(this.parent.scale.set(r,i),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}};const kje={friction:.98,bounce:.8,minSpeed:.01},ad=16;let Aje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percentChangeX"),Ee(this,"percentChangeY"),Ee(this,"saved"),Ee(this,"timeSinceRelease"),this.options=Object.assign({},kje,n),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",r=>this.handleMoved(r))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const n=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?n.x===t.original.x&&(n.x=this.parent.x):t.type==="clamp-y"&&t.original&&n.y===t.original.y&&(n.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const n of this.saved)if(n.time>=t-100){const r=t-n.time;this.x=(this.parent.x-n.x)/r,this.y=(this.parent.y-n.y)/r,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const n=this.x||this.y,r=this.timeSinceRelease,i=this.timeSinceRelease+t;if(this.x){const o=this.percentChangeX,s=Math.log(o);this.parent.x+=this.x*ad/s*(Math.pow(o,i/ad)-Math.pow(o,r/ad)),this.x*=Math.pow(this.percentChangeX,t/ad)}if(this.y){const o=this.percentChangeY,s=Math.log(o);this.parent.y+=this.y*ad/s*(Math.pow(o,i/ad)-Math.pow(o,r/ad)),this.y*=Math.pow(this.percentChangeY,t/ad)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x){t.includes(i.code)&&(this.keyIsPressed=!0)},r=i=>{t.includes(i.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",r),this.addWindowEventHandler("keydown",n)}addWindowEventHandler(t,n){window.addEventListener(t,n),this.windowEventHandlers.push({event:t,handler:n})}destroy(){this.windowEventHandlers.forEach(({event:t,handler:n})=>{window.removeEventListener(t,n)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const n=t.pointerType==="mouse",r=this.parent.input.count();return!!((r===1||r>1&&!this.parent.plugins.get("pinch",!0))&&(!n||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const n=t.global.x,r=t.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get("pinch",!0)){const o=n-this.last.x,s=r-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||this.yDirection&&this.parent.input.checkThreshold(s)){const a={x:n,y:r};return this.xDirection&&(this.parent.x+=(a.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(a.y-this.last.y)*this.options.factor),this.last=a,this.moved||this.parent.emit("drag-start",{event:t,screen:new Lt(this.last.x,this.last.y),world:this.parent.toWorld(new Lt(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const n=this.parent.input.touches;if(n.length===1){const r=n[0];return r.last&&(this.last={x:r.last.x,y:r.last.y},this.current=r.id),this.moved=!1,!0}else if(this.last&&this.moved){const r=new Lt(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:r,world:this.parent.toWorld(r),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const n=this.parent.plugins.get("wheel",!0);if(!n||!n.options.wheelZoom&&!t.ctrlKey){const r=t.deltaMode?this.options.lineHeight:1,i=[t.deltaX,t.deltaY],[o,s]=this.options.wheelSwapAxes?i.reverse():i;return this.xDirection&&(this.parent.x+=o*r*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=s*r*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidththis.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeightthis.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}};const Pje={speed:0,acceleration:null,radius:null};let Oje=class extends Da{constructor(t,n,r={}){super(t),Ee(this,"options"),Ee(this,"target"),Ee(this,"velocity"),this.target=n,this.options=Object.assign({},Pje,r),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const n=this.parent.center;let r=this.target.x,i=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-n.y,2)+Math.pow(this.target.x-n.x,2))>this.options.radius){const a=Math.atan2(this.target.y-n.y,this.target.x-n.x);r=this.target.x-Math.cos(a)*this.options.radius,i=this.target.y-Math.sin(a)*this.options.radius}else return;const o=r-n.x,s=i-n.y;if(o||s)if(this.options.speed)if(this.options.acceleration){const a=Math.atan2(i-n.y,r-n.x),c=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));if(c){const u=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);c>u?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const f=Math.cos(a)*this.velocity.x,h=Math.sin(a)*this.velocity.y,p=Math.abs(f)>Math.abs(o)?r:n.x+f,g=Math.abs(h)>Math.abs(s)?i:n.y+h;this.parent.moveCenter(p,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const a=Math.atan2(i-n.y,r-n.x),c=Math.cos(a)*this.options.speed,u=Math.sin(a)*this.options.speed,f=Math.abs(c)>Math.abs(o)?r:n.x+c,h=Math.abs(u)>Math.abs(s)?i:n.y+u;this.parent.moveCenter(f,h),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(r,i),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}};const Mje={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};let Lje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"reverse"),Ee(this,"radiusSquared"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"horizontal"),Ee(this,"vertical"),this.options=Object.assign({},Mje,n),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const n=t.global.x,r=t.global.y;if(this.radiusSquared){const i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-n,2)+Math.pow(i.y-r,2)>=this.radiusSquared){const o=Math.atan2(i.y-r,i.x-n);this.options.linear?(this.horizontal=Math.round(Math.cos(o))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(o))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(o)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(o)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&nthis.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&rthis.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}};const Dje={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};let Nje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"active",!1),Ee(this,"pinching",!1),Ee(this,"moved",!1),Ee(this,"lastCenter"),this.options=Object.assign({},Dje,n)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const n=t.global.x,r=t.global.y,i=this.parent.input.touches;if(i.length>=2){const o=i[0],s=i[1],a=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===t.pointerId?o.last={x:n,y:r,data:t}:s.id===t.pointerId&&(s.last={x:n,y:r,data:t}),a){let c;const u=new Lt(o.last.x+(s.last.x-o.last.x)/2,o.last.y+(s.last.y-o.last.y)/2);this.options.center||(c=this.parent.toLocal(u));let f=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));f=f===0?f=1e-10:f;const h=(1-a/f)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=h),this.isAxisY()&&(this.parent.scale.y+=h),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:u});const p=this.parent.plugins.get("clamp-zoom",!0);if(p&&p.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.toGlobal(c);this.parent.x+=(u.x-g.x)*this.options.factor,this.parent.y+=(u.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(u.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(u.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=u,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}};const Bje={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};let $je=class extends Da{constructor(t,n,r,i={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percent"),Ee(this,"snapping"),Ee(this,"deltaX"),Ee(this,"deltaY"),Ee(this,"startX"),Ee(this,"startY"),this.options=Object.assign({},Bje,i),this.ease=LA(i.ease,"easeInOutSine"),this.x=n,this.y=r,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const n=this.snapping;n.time+=t;let r,i,o;const s=this.startX,a=this.startY,c=this.deltaX,u=this.deltaY;if(n.time>this.options.time)r=!0,i=s+c,o=a+u;else{const f=this.ease(n.time,0,1,this.options.time);i=s+c*f,o=a+u*f}this.options.topLeft?this.parent.moveCorner(i,o):this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const n=this.options.topLeft?this.parent.corner:this.parent.center;(n.x!==this.x||n.y!==this.y)&&this.snapStart()}}};const Fje={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};let zje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"xScale"),Ee(this,"yScale"),Ee(this,"xIndependent"),Ee(this,"yIndependent"),Ee(this,"snapping"),this.options=Object.assign({},Fje,n),this.ease=LA(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):n.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,r=this.parent.screenWidth/this.xScale,i=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:n,deltaX:r-t,deltaY:i-n},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let n;if(!this.options.center&&!this.options.noMove&&(n=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const r=this.snapping;if(r.time+=t,r.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const o=this.snapping,s=this.ease(o.time,o.startX,o.deltaX,this.options.time),a=this.ease(o.time,o.startY,o.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/s,this.parent.scale.y=this.parent.screenHeight/a}const i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(n))}}resume(){this.snapping=null,super.resume()}};const jje={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};let Uje=class extends Da{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"smoothing"),Ee(this,"smoothingCenter"),Ee(this,"smoothingCount"),Ee(this,"keyIsPressed"),this.options=Object.assign({},jje,n),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",n=>{t.includes(n.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",n=>{t.includes(n.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,n=this.smoothing;let r;this.options.center||(r=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=n.x),this.isAxisY()&&(this.parent.scale.y+=n.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const i=this.parent.plugins.get("clamp-zoom",!0);if(i&&i.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.toGlobal(r);this.parent.x+=t.x-o.x,this.parent.y+=t.y-o.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const n=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,i=Math.pow(2,(1+this.options.percent)*r);let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const n=this.parent.input.getPointerPosition(t),r=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*r);if(this.options.smooth){const o={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+o.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+o.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=n}else{let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}},Hje=class{constructor(t){Ee(this,"viewport"),Ee(this,"clickedAvailable"),Ee(this,"isMouseDown"),Ee(this,"last"),Ee(this,"wheelFunction"),Ee(this,"touches"),this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new Zt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.events.domElement.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.worldVisible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const n=this.viewport.plugins.get("decelerate",!0),r=this.viewport.plugins.get("bounce",!0);(!n||!n.isActive())&&(!r||!r.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const r=t.global.x-this.last.x,i=t.global.y-this.last.y;(this.checkThreshold(r)||this.checkThreshold(i))&&(this.clickedAvailable=!1)}n&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.worldVisible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const n=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),n&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const n=new Lt;return this.viewport.options.events.mapPositionToPoint(n,t.clientX,t.clientY),n}handleWheel(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=n.x&&n.x<=this.viewport.right&&this.viewport.top<=n.y&&n.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const n of this.touches)if(n.id===t)return n;return null}remove(t){for(let n=0;n{t.destroy()}),this.plugins={},this.sort()}remove(t){var n;this.plugins[t]&&((n=this.plugins[t])==null||n.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var n;(n=this.plugins[t])==null||n.pause()}resume(t){var n;(n=this.plugins[t])==null||n.resume()}sort(){this.list=[];for(const t of Gb)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let n=!1;for(const r of this.list)r.down(t)&&(n=!0);return n}move(t){let n=!1;for(const r of this.viewport.plugins.list)r.move(t)&&(n=!0);return n}up(t){let n=!1;for(const r of this.list)r.up(t)&&(n=!0);return n}wheel(t){let n=!1;for(const r of this.list)r.wheel(t)&&(n=!0);return n}};const Gje={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:Si.shared,allowPreserveDragOutside:!1};class Vje extends us{constructor(t){super(),Ee(this,"moving"),Ee(this,"screenWidth"),Ee(this,"screenHeight"),Ee(this,"threshold"),Ee(this,"input"),Ee(this,"plugins"),Ee(this,"zooming"),Ee(this,"lastViewport"),Ee(this,"options"),Ee(this,"_dirty"),Ee(this,"_forceHitArea"),Ee(this,"_hitAreaDefault"),Ee(this,"_pause"),Ee(this,"tickerFunction"),Ee(this,"_worldWidth"),Ee(this,"_worldHeight"),Ee(this,"_disableOnContextMenu",n=>n.preventDefault()),this.options={...Gje,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new Hje(this),this.plugins=new Wje(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.events.domElement.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new Zt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,n=window.innerHeight,r,i){this.screenWidth=t,this.screenHeight=n,typeof r<"u"&&(this._worldWidth=r),typeof i<"u"&&(this._worldHeight=i),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new Zt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,n){return arguments.length===2?this.toLocal(new Lt(t,n)):this.toLocal(t)}toScreen(t,n){return arguments.length===2?this.toGlobal(new Lt(t,n)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new Lt(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let n,r;typeof t[0]=="number"?(n=t[0],r=t[1]):(n=t[0].x,r=t[0].y);const i=(this.worldScreenWidth/2-n)*this.scale.x,o=(this.worldScreenHeight/2-r)*this.scale.y;return(this.x!==i||this.y!==o)&&(this.position.set(i,o),this.plugins.reset(),this.dirty=!0),this}get corner(){return new Lt(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let n,r;return t.length===1?(n=-t[0].x*this.scale.x,r=-t[0].y*this.scale.y):(n=-t[0]*this.scale.x,r=-t[1]*this.scale.y),(n!==this.x||r!==this.y)&&(this.position.set(n,r),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.min(r,i)}findCover(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.max(r,i)}fitWidth(t=this.worldWidth,n,r=!0,i){let o;n&&(o=this.center),this.scale.x=this.screenWidth/t,r&&(this.scale.y=this.scale.x);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitHeight(t=this.worldHeight,n,r=!0,i){let o;n&&(o=this.center),this.scale.y=this.screenHeight/t,r&&(this.scale.x=this.scale.y);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitWorld(t){let n;t&&(n=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.xthis.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new Lt(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new Zt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new Rje(this,t)),this}clamp(t){return this.plugins.add("clamp",new Eje(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Aje(this,t)),this}bounce(t){return this.plugins.add("bounce",new _je(this,t)),this}pinch(t){return this.plugins.add("pinch",new Nje(this,t)),this}snap(t,n,r){return this.plugins.add("snap",new $je(this,t,n,r)),this}follow(t,n){return this.plugins.add("follow",new Oje(this,t,n)),this}wheel(t){return this.plugins.add("wheel",new Uje(this,t)),this}animate(t){return this.plugins.add("animate",new xje(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Tje(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new Lje(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,n,r,i,o){o&&(r>this.worldScreenWidth||i>this.worldScreenHeight)&&(this.fit(!0,r,i),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;tthis.right&&(this.right=t+r,s=!0),nthis.bottom&&(this.bottom=n+i,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const Vb=new Lt,qje=new Uint16Array([0,1,2,0,2,3]);class fm extends us{constructor(t){super(),this._anchor=new Md(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new Vn(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Dt.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||mt.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=qje,this.pluginName="batch",this.isSprite=!0,this._roundPixels=nt.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Od(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Od(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const n=this.transform.worldTransform,r=n.a,i=n.b,o=n.c,s=n.d,a=n.tx,c=n.ty,u=this.vertexData,f=t.trim,h=t.orig,p=this._anchor;let g=0,v=0,y=0,S=0;if(f?(v=f.x-p._x*h.width,g=v+f.width,S=f.y-p._y*h.height,y=S+f.height):(v=-p._x*h.width,g=v+h.width,S=-p._y*h.height,y=S+h.height),u[0]=r*v+o*S+a,u[1]=s*S+i*v+c,u[2]=r*g+o*S+a,u[3]=s*S+i*g+c,u[4]=r*g+o*y+a,u[5]=s*y+i*g+c,u[6]=r*v+o*y+a,u[7]=s*y+i*v+c,this._roundPixels){const w=nt.RESOLUTION;for(let b=0;b=i&&Vb.x=o&&Vb.y=ri.HIGH?this.multisample=ri.HIGH:n>=ri.MEDIUM?this.multisample=ri.MEDIUM:n>=ri.LOW?this.multisample=ri.LOW:this.multisample=ri.NONE}destroy(){}}Dre.extension={type:ot.RendererSystem,name:"_multisample"};wt.add(Dre);class gje{constructor(t){this.buffer=t||null,this.updateID=-1,this.byteLength=-1,this.refCount=0}}class Lre{constructor(t){this.renderer=t,this.managedBuffers={},this.boundBufferBases={}}destroy(){this.renderer=null}contextChange(){this.disposeAll(!0),this.gl=this.renderer.gl,this.CONTEXT_UID=this.renderer.CONTEXT_UID}bind(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);n.bindBuffer(t.type,i.buffer)}unbind(t){const{gl:n}=this;n.bindBuffer(t,null)}bindBufferBase(t,n){const{gl:r,CONTEXT_UID:i}=this;if(this.boundBufferBases[n]!==t){const o=t._glBuffers[i]||this.createGLBuffer(t);this.boundBufferBases[n]=t,r.bindBufferBase(r.UNIFORM_BUFFER,n,o.buffer)}}bindBufferRange(t,n,r){const{gl:i,CONTEXT_UID:o}=this;r=r||0;const s=t._glBuffers[o]||this.createGLBuffer(t);i.bindBufferRange(i.UNIFORM_BUFFER,n||0,s.buffer,r*256,256)}update(t){const{gl:n,CONTEXT_UID:r}=this,i=t._glBuffers[r]||this.createGLBuffer(t);if(t._updateID!==i.updateID)if(i.updateID=t._updateID,n.bindBuffer(t.type,i.buffer),i.byteLength>=t.data.byteLength)n.bufferSubData(t.type,0,t.data);else{const o=t.static?n.STATIC_DRAW:n.DYNAMIC_DRAW;i.byteLength=t.data.byteLength,n.bufferData(t.type,t.data,o)}}dispose(t,n){if(!this.managedBuffers[t.id])return;delete this.managedBuffers[t.id];const r=t._glBuffers[this.CONTEXT_UID],i=this.gl;t.disposeRunner.remove(this),r&&(n||i.deleteBuffer(r.buffer),delete t._glBuffers[this.CONTEXT_UID])}disposeAll(t){const n=Object.keys(this.managedBuffers);for(let r=0;rr.resource).filter(r=>r).map(r=>r.load());return this._load=Promise.all(n).then(()=>{const{realWidth:r,realHeight:i}=this.items[0];return this.resize(r,i),Promise.resolve(this)}),this._load}}class vje extends Bre{constructor(t,n){const{width:r,height:i}=n||{};let o,s;Array.isArray(t)?(o=t,s=t.length):s=t,super(s,{width:r,height:i}),o&&this.initFromArray(o,n)}addBaseTextureAt(t,n){if(t.resource)this.addResourceAt(t.resource,n);else throw new Error("ArrayResource does not support RenderTexture");return this}bind(t){super.bind(t),t.target=Cg.TEXTURE_2D_ARRAY}upload(t,n,r){const{length:i,itemDirtyIds:o,items:s}=this,{gl:a}=t;r.dirtyId<0&&a.texImage3D(a.TEXTURE_2D_ARRAY,0,r.internalFormat,this._width,this._height,i,0,n.format,r.type,null);for(let c=0;c0)if(e.resource)this.addResourceAt(e.resource,t);else throw new Error("CubeResource does not support copying of renderTexture.");else e.target=Cg.TEXTURE_CUBE_MAP_POSITIVE_X+t,e.parentTextureArray=this.baseTexture,this.items[t]=e;return e.valid&&!this.valid&&this.resize(e.realWidth,e.realHeight),this.items[t]=e,this}upload(e,t,n){const r=this.itemDirtyIds;for(let i=0;i{if(this.url===null){t(this);return}try{const r=await nt.ADAPTER.fetch(this.url,{mode:this.crossOrigin?"cors":"no-cors"});if(this.destroyed)return;const i=await r.blob();if(this.destroyed)return;const o=await createImageBitmap(i,{premultiplyAlpha:this.alphaMode===null||this.alphaMode===Ll.UNPACK?"premultiply":"none"});if(this.destroyed)return;this.source=o,this.update(),t(this)}catch(r){if(this.destroyed)return;n(r),this.onError.emit(r)}}),this._load)}upload(t,n,r){return this.source instanceof ImageBitmap?(typeof this.alphaMode=="number"&&(n.alphaMode=this.alphaMode),super.upload(t,n,r)):(this.load(),!1)}dispose(){this.source instanceof ImageBitmap&&this.source.close(),super.dispose(),this._load=null}static test(t){return!!globalThis.createImageBitmap&&typeof ImageBitmap<"u"&&(typeof t=="string"||t instanceof ImageBitmap)}static get EMPTY(){return fg._EMPTY=fg._EMPTY??nt.ADAPTER.createCanvas(0,0),fg._EMPTY}}const PE=class extends uf{constructor(e,t){t=t||{},super(nt.ADAPTER.createCanvas()),this._width=0,this._height=0,this.svg=e,this.scale=t.scale||1,this._overrideWidth=t.width,this._overrideHeight=t.height,this._resolve=null,this._crossorigin=t.crossorigin,this._load=null,t.autoLoad!==!1&&this.load()}load(){return this._load?this._load:(this._load=new Promise(e=>{if(this._resolve=()=>{this.resize(this.source.width,this.source.height),e(this)},PE.SVG_XML.test(this.svg.trim())){if(!btoa)throw new Error("Your browser doesn't support base64 conversions.");this.svg=`data:image/svg+xml;base64,${btoa(unescape(encodeURIComponent(this.svg)))}`}this._loadSvg()}),this._load)}_loadSvg(){const e=new Image;uf.crossOrigin(e,this.svg,this._crossorigin),e.src=this.svg,e.onerror=t=>{this._resolve&&(e.onerror=null,this.onError.emit(t))},e.onload=()=>{if(!this._resolve)return;const t=e.width,n=e.height;if(!t||!n)throw new Error("The SVG image must have width and height defined (in pixels), canvas API needs them.");let r=t*this.scale,i=n*this.scale;(this._overrideWidth||this._overrideHeight)&&(r=this._overrideWidth||this._overrideHeight/n*t,i=this._overrideHeight||this._overrideWidth/t*n),r=Math.round(r),i=Math.round(i);const o=this.source;o.width=r,o.height=i,o._pixiId=`canvas_${Kp()}`,o.getContext("2d").drawImage(e,0,0,t,n,0,0,r,i),this._resolve(),this._resolve=null}}static getSize(e){const t=PE.SVG_SIZE.exec(e),n={};return t&&(n[t[1]]=Math.round(parseFloat(t[3])),n[t[5]]=Math.round(parseFloat(t[7]))),n}dispose(){super.dispose(),this._resolve=null,this._crossorigin=null}static test(e,t){return t==="svg"||typeof e=="string"&&e.startsWith("data:image/svg+xml")||typeof e=="string"&&PE.SVG_XML.test(e)}};let rw=PE;rw.SVG_XML=/^(<\?xml[^?]+\?>)?\s*()]*-->)?\s*\]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*(?:\s(width|height)=('|")(\d*(?:\.\d+)?)(?:px)?('|"))[^>]*>/i;const I5=class extends uf{constructor(e,t){if(t=t||{},!(e instanceof HTMLVideoElement)){const n=document.createElement("video");n.setAttribute("preload","auto"),n.setAttribute("webkit-playsinline",""),n.setAttribute("playsinline",""),typeof e=="string"&&(e=[e]);const r=e[0].src||e[0];uf.crossOrigin(n,r,t.crossorigin);for(let i=0;i{this.valid?t(this):(this._resolve=t,e.load())}),this._load}_onError(e){this.source.removeEventListener("error",this._onError,!0),this.onError.emit(e)}_isSourcePlaying(){const e=this.source;return!e.paused&&!e.ended&&this._isSourceReady()}_isSourceReady(){return this.source.readyState>2}_onPlayStart(){this.valid||this._onCanPlay(),this.autoUpdate&&!this._isConnectedToTicker&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0)}_onPlayStop(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1)}_onCanPlay(){const e=this.source;e.removeEventListener("canplay",this._onCanPlay),e.removeEventListener("canplaythrough",this._onCanPlay);const t=this.valid;this.resize(e.videoWidth,e.videoHeight),!t&&this._resolve&&(this._resolve(this),this._resolve=null),this._isSourcePlaying()?this._onPlayStart():this.autoPlay&&e.play()}dispose(){this._isConnectedToTicker&&(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1);const e=this.source;e&&(e.removeEventListener("error",this._onError,!0),e.pause(),e.src="",e.load()),super.dispose()}get autoUpdate(){return this._autoUpdate}set autoUpdate(e){e!==this._autoUpdate&&(this._autoUpdate=e,!this._autoUpdate&&this._isConnectedToTicker?(Si.shared.remove(this.update,this),this._isConnectedToTicker=!1):this._autoUpdate&&!this._isConnectedToTicker&&this._isSourcePlaying()&&(Si.shared.add(this.update,this),this._isConnectedToTicker=!0))}get updateFPS(){return this._updateFPS}set updateFPS(e){e!==this._updateFPS&&(this._updateFPS=e)}static test(e,t){return globalThis.HTMLVideoElement&&e instanceof HTMLVideoElement||I5.TYPES.includes(t)}};let kU=I5;kU.TYPES=["mp4","m4v","webm","ogg","ogv","h264","avi","mov"];kU.MIME_TYPES={ogv:"video/ogg",mov:"video/quicktime",m4v:"video/mp4"};_5.push(fg,ure,yje,kU,rw,Qw,$re,vje);class iT{constructor(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0,this.rect=null,this.updateID=-1}isEmpty(){return this.minX>this.maxX||this.minY>this.maxY}clear(){this.minX=1/0,this.minY=1/0,this.maxX=-1/0,this.maxY=-1/0}getRectangle(t){return this.minX>this.maxX||this.minY>this.maxY?Zt.EMPTY:(t=t||new Zt(0,0,1,1),t.x=this.minX,t.y=this.minY,t.width=this.maxX-this.minX,t.height=this.maxY-this.minY,t)}addPoint(t){this.minX=Math.min(this.minX,t.x),this.maxX=Math.max(this.maxX,t.x),this.minY=Math.min(this.minY,t.y),this.maxY=Math.max(this.maxY,t.y)}addPointMatrix(t,n){const{a:r,b:i,c:o,d:s,tx:a,ty:c}=t,u=r*n.x+o*n.y+a,f=i*n.x+s*n.y+c;this.minX=Math.min(this.minX,u),this.maxX=Math.max(this.maxX,u),this.minY=Math.min(this.minY,f),this.maxY=Math.max(this.maxY,f)}addQuad(t){let n=this.minX,r=this.minY,i=this.maxX,o=this.maxY,s=t[0],a=t[1];n=si?s:i,o=a>o?a:o,s=t[2],a=t[3],n=si?s:i,o=a>o?a:o,s=t[4],a=t[5],n=si?s:i,o=a>o?a:o,s=t[6],a=t[7],n=si?s:i,o=a>o?a:o,this.minX=n,this.minY=r,this.maxX=i,this.maxY=o}addFrame(t,n,r,i,o){this.addFrameMatrix(t.worldTransform,n,r,i,o)}addFrameMatrix(t,n,r,i,o){const s=t.a,a=t.b,c=t.c,u=t.d,f=t.tx,h=t.ty;let p=this.minX,g=this.minY,v=this.maxX,y=this.maxY,S=s*n+c*r+f,w=a*n+u*r+h;p=Sv?S:v,y=w>y?w:y,S=s*i+c*r+f,w=a*i+u*r+h,p=Sv?S:v,y=w>y?w:y,S=s*n+c*o+f,w=a*n+u*o+h,p=Sv?S:v,y=w>y?w:y,S=s*i+c*o+f,w=a*i+u*o+h,p=Sv?S:v,y=w>y?w:y,this.minX=p,this.minY=g,this.maxX=v,this.maxY=y}addVertexData(t,n,r){let i=this.minX,o=this.minY,s=this.maxX,a=this.maxY;for(let c=n;cs?u:s,a=f>a?f:a}this.minX=i,this.minY=o,this.maxX=s,this.maxY=a}addVertices(t,n,r,i){this.addVerticesMatrix(t.worldTransform,n,r,i)}addVerticesMatrix(t,n,r,i,o=0,s=o){const a=t.a,c=t.b,u=t.c,f=t.d,h=t.tx,p=t.ty;let g=this.minX,v=this.minY,y=this.maxX,S=this.maxY;for(let w=r;wi?t.maxX:i,this.maxY=t.maxY>o?t.maxY:o}addBoundsMask(t,n){const r=t.minX>n.minX?t.minX:n.minX,i=t.minY>n.minY?t.minY:n.minY,o=t.maxXu?o:u,this.maxY=s>f?s:f}}addBoundsMatrix(t,n){this.addFrameMatrix(n,t.minX,t.minY,t.maxX,t.maxY)}addBoundsArea(t,n){const r=t.minX>n.x?t.minX:n.x,i=t.minY>n.y?t.minY:n.y,o=t.maxXu?o:u,this.maxY=s>f?s:f}}pad(t=0,n=t){this.isEmpty()||(this.minX-=t,this.maxX+=t,this.minY-=n,this.maxY+=n)}addFramePad(t,n,r,i,o,s){t-=o,n-=s,r+=o,i+=s,this.minX=this.minXr?this.maxX:r,this.minY=this.minYi?this.maxY:i}}class Ur extends Yw{constructor(){super(),this.tempDisplayObjectParent=null,this.transform=new TU,this.alpha=1,this.visible=!0,this.renderable=!0,this.cullable=!1,this.cullArea=null,this.parent=null,this.worldAlpha=1,this._lastSortedIndex=0,this._zIndex=0,this.filterArea=null,this.filters=null,this._enabledFilters=null,this._bounds=new iT,this._localBounds=null,this._boundsID=0,this._boundsRect=null,this._localBoundsRect=null,this._mask=null,this._maskRefCount=0,this._destroyed=!1,this.isSprite=!1,this.isMask=!1}static mixin(t){const n=Object.keys(t);for(let r=0;r1)for(let t=0;tthis.children.length)throw new Error(`${e}addChildAt: The index ${t} supplied is out of bounds ${this.children.length}`);return e.parent&&e.parent.removeChild(e),e.parent=this,this.sortDirty=!0,e.transform._parentID=-1,this.children.splice(t,0,e),this._boundsID++,this.onChildrenChange(t),e.emit("added",this),this.emit("childAdded",e,this,t),e}swapChildren(e,t){if(e===t)return;const n=this.getChildIndex(e),r=this.getChildIndex(t);this.children[n]=t,this.children[r]=e,this.onChildrenChange(n=this.children.length)throw new Error(`The index ${t} supplied is out of bounds ${this.children.length}`);const n=this.getChildIndex(e);Ig(this.children,n,1),this.children.splice(t,0,e),this.onChildrenChange(t)}getChildAt(e){if(e<0||e>=this.children.length)throw new Error(`getChildAt: Index (${e}) does not exist.`);return this.children[e]}removeChild(...e){if(e.length>1)for(let t=0;t0&&i<=r){o=this.children.splice(n,i);for(let s=0;s1&&this.children.sort(wje),this.sortDirty=!1}updateTransform(){this.sortableChildren&&this.sortDirty&&this.sortChildren(),this._boundsID++,this.transform.updateTransform(this.parent.transform),this.worldAlpha=this.alpha*this.parent.worldAlpha;for(let e=0,t=this.children.length;e0&&t.height>0))return;let n,r;this.cullArea?(n=this.cullArea,r=this.worldTransform):this._render!==R5.prototype._render&&(n=this.getBounds(!0));const i=e.projection.transform;if(i&&(r?(r=xje.copyFrom(r),r.prepend(i)):r=i),n&&t.intersects(n,r))this._render(e);else if(this.cullArea)return;for(let o=0,s=this.children.length;ot in e?_je(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ee=(e,t,n)=>(Sje(e,typeof t!="symbol"?t+"":t,n),n);let Na=class{constructor(t){Ee(this,"parent"),Ee(this,"paused"),this.parent=t,this.paused=!1}destroy(){}down(t){return!1}move(t){return!1}up(t){return!1}wheel(t){return!1}update(t){}resize(){}reset(){}pause(){this.paused=!0}resume(){this.paused=!1}};var Eje=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Fre={exports:{}};(function(e,t){(function(){var n,r;r=function(i){return e.exports=i},n={linear:function(i,o,s,a){return s*i/a+o},easeInQuad:function(i,o,s,a){return s*(i/=a)*i+o},easeOutQuad:function(i,o,s,a){return-s*(i/=a)*(i-2)+o},easeInOutQuad:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i+o:-s/2*(--i*(i-2)-1)+o},easeInCubic:function(i,o,s,a){return s*(i/=a)*i*i+o},easeOutCubic:function(i,o,s,a){return s*((i=i/a-1)*i*i+1)+o},easeInOutCubic:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i+o:s/2*((i-=2)*i*i+2)+o},easeInQuart:function(i,o,s,a){return s*(i/=a)*i*i*i+o},easeOutQuart:function(i,o,s,a){return-s*((i=i/a-1)*i*i*i-1)+o},easeInOutQuart:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i+o:-s/2*((i-=2)*i*i*i-2)+o},easeInQuint:function(i,o,s,a){return s*(i/=a)*i*i*i*i+o},easeOutQuint:function(i,o,s,a){return s*((i=i/a-1)*i*i*i*i+1)+o},easeInOutQuint:function(i,o,s,a){return(i/=a/2)<1?s/2*i*i*i*i*i+o:s/2*((i-=2)*i*i*i*i+2)+o},easeInSine:function(i,o,s,a){return-s*Math.cos(i/a*(Math.PI/2))+s+o},easeOutSine:function(i,o,s,a){return s*Math.sin(i/a*(Math.PI/2))+o},easeInOutSine:function(i,o,s,a){return-s/2*(Math.cos(Math.PI*i/a)-1)+o},easeInExpo:function(i,o,s,a){return i===0?o:s*Math.pow(2,10*(i/a-1))+o},easeOutExpo:function(i,o,s,a){return i===a?o+s:s*(-Math.pow(2,-10*i/a)+1)+o},easeInOutExpo:function(i,o,s,a){return(i/=a/2)<1?s/2*Math.pow(2,10*(i-1))+o:s/2*(-Math.pow(2,-10*--i)+2)+o},easeInCirc:function(i,o,s,a){return-s*(Math.sqrt(1-(i/=a)*i)-1)+o},easeOutCirc:function(i,o,s,a){return s*Math.sqrt(1-(i=i/a-1)*i)+o},easeInOutCirc:function(i,o,s,a){return(i/=a/2)<1?-s/2*(Math.sqrt(1-i*i)-1)+o:s/2*(Math.sqrt(1-(i-=2)*i)+1)+o},easeInElastic:function(i,o,s,a){var c,u,f;return f=1.70158,u=0,c=s,i===0||(i/=a),u||(u=a*.3),c=this.options.time){const r=this.parent.width,i=this.parent.height;this.complete(),(r!==this.parent.width||i!==this.parent.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}else{const r=this.options.ease(this.time,0,1,this.options.time);if(this.width!==null){const i=this.startWidth,o=this.deltaWidth;this.parent.fitWidth(i+o*r,this.keepCenter,this.height===null)}if(this.height!==null){const i=this.startHeight,o=this.deltaHeight;this.parent.fitHeight(i+o*r,this.keepCenter,this.width===null)}if(this.width===null?this.parent.scale.x=this.parent.scale.y:this.height===null&&(this.parent.scale.y=this.parent.scale.x),!this.keepCenter){const i=this.startX,o=this.startY,s=this.deltaX,a=this.deltaY,c=new Dt(this.parent.x,this.parent.y);this.parent.moveCenter(i+s*r,o+a*r),this.parent.emit("moved",{viewport:this.parent,original:c,type:"animate"})}(this.width||this.height)&&this.parent.emit("zoomed",{viewport:this.parent,original:n,type:"animate"})}}};const kje={sides:"all",friction:.5,time:150,ease:"easeInOutSine",underflow:"center",bounceBox:null};let Aje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"underflowX"),Ee(this,"underflowY"),Ee(this,"ease"),Ee(this,"toX"),Ee(this,"toY"),this.options=Object.assign({},kje,n),this.ease=NA(this.options.ease,"easeInOutSine"),this.options.sides?this.options.sides==="all"?this.top=this.bottom=this.left=this.right=!0:this.options.sides==="horizontal"?(this.right=this.left=!0,this.top=this.bottom=!1):this.options.sides==="vertical"?(this.left=this.right=!1,this.top=this.bottom=!0):(this.top=this.options.sides.indexOf("top")!==-1,this.bottom=this.options.sides.indexOf("bottom")!==-1,this.left=this.options.sides.indexOf("left")!==-1,this.right=this.options.sides.indexOf("right")!==-1):this.left=this.top=this.right=this.bottom=!1;const r=this.options.underflow.toLowerCase();r==="center"?(this.underflowX=0,this.underflowY=0):(this.underflowX=r.indexOf("left")!==-1?-1:r.indexOf("right")!==-1?1:0,this.underflowY=r.indexOf("top")!==-1?-1:r.indexOf("bottom")!==-1?1:0),this.reset()}isActive(){return this.toX!==null||this.toY!==null}down(){return this.toX=this.toY=null,!1}up(){return this.bounce(),!1}update(t){if(!this.paused){if(this.bounce(),this.toX){const n=this.toX;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-x"}),n.time>=this.options.time?(this.parent.x=n.end,this.toX=null,this.parent.emit("bounce-x-end",this.parent)):this.parent.x=this.ease(n.time,n.start,n.delta,this.options.time)}if(this.toY){const n=this.toY;n.time+=t,this.parent.emit("moved",{viewport:this.parent,type:"bounce-y"}),n.time>=this.options.time?(this.parent.y=n.end,this.toY=null,this.parent.emit("bounce-y-end",this.parent)):this.parent.y=this.ease(n.time,n.start,n.delta,this.options.time)}}}calcUnderflowX(){let t;switch(this.underflowX){case-1:t=0;break;case 1:t=this.parent.screenWidth-this.parent.screenWorldWidth;break;default:t=(this.parent.screenWidth-this.parent.screenWorldWidth)/2}return t}calcUnderflowY(){let t;switch(this.underflowY){case-1:t=0;break;case 1:t=this.parent.screenHeight-this.parent.screenWorldHeight;break;default:t=(this.parent.screenHeight-this.parent.screenWorldHeight)/2}return t}oob(){const t=this.options.bounceBox;if(t){const n=typeof t.x>"u"?0:t.x,r=typeof t.y>"u"?0:t.y,i=typeof t.width>"u"?this.parent.worldWidth:t.width,o=typeof t.height>"u"?this.parent.worldHeight:t.height;return{left:this.parent.lefti,top:this.parent.topo,topLeft:new Dt(n*this.parent.scale.x,r*this.parent.scale.y),bottomRight:new Dt(i*this.parent.scale.x-this.parent.screenWidth,o*this.parent.scale.y-this.parent.screenHeight)}}return{left:this.parent.left<0,right:this.parent.right>this.parent.worldWidth,top:this.parent.top<0,bottom:this.parent.bottom>this.parent.worldHeight,topLeft:new Dt(0,0),bottomRight:new Dt(this.parent.worldWidth*this.parent.scale.x-this.parent.screenWidth,this.parent.worldHeight*this.parent.scale.y-this.parent.screenHeight)}}bounce(){var t,n;if(this.paused)return;let r,i=this.parent.plugins.get("decelerate",!0);i&&(i.x||i.y)&&(i.x&&i.percentChangeX===((t=i.options)==null?void 0:t.friction)||i.y&&i.percentChangeY===((n=i.options)==null?void 0:n.friction))&&(r=this.oob(),(r.left&&this.left||r.right&&this.right)&&(i.percentChangeX=this.options.friction),(r.top&&this.top||r.bottom&&this.bottom)&&(i.percentChangeY=this.options.friction));const o=this.parent.plugins.get("drag",!0)||{},s=this.parent.plugins.get("pinch",!0)||{};if(i=i||{},!(o!=null&&o.active)&&!(s!=null&&s.active)&&(!this.toX||!this.toY)&&(!i.x||!i.y)){r=r||this.oob();const a=r.topLeft,c=r.bottomRight;if(!this.toX&&!i.x){let u=null;r.left&&this.left?u=this.parent.screenWorldWidth(this.options.right===!0?this.parent.worldWidth:this.options.right)&&(this.parent.x=-(this.options.right===!0?this.parent.worldWidth:this.options.right)*this.parent.scale.x+this.parent.screenWidth,n.x=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-x"})}if(this.options.top!==null||this.options.bottom!==null){let r=!1;if(!this.noUnderflow&&this.parent.screenWorldHeight(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)&&(this.parent.y=-(this.options.bottom===!0?this.parent.worldHeight:this.options.bottom)*this.parent.scale.y+this.parent.screenHeight,n.y=0,r=!0);r&&this.parent.emit("moved",{viewport:this.parent,original:t,type:"clamp-y"})}this.last.x=this.parent.x,this.last.y=this.parent.y,this.last.scaleX=this.parent.scale.x,this.last.scaleY=this.parent.scale.y}reset(){this.update()}};const Pje={minWidth:null,minHeight:null,maxWidth:null,maxHeight:null,minScale:null,maxScale:null};let Oje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),this.options=Object.assign({},Pje,n),this.clamp()}resize(){this.clamp()}clamp(){if(!this.paused){if(this.options.minWidth||this.options.minHeight||this.options.maxWidth||this.options.maxHeight){let t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight;if(this.options.minWidth!==null&&tthis.options.maxWidth){const r=this.parent.scale.x;this.parent.fitWidth(this.options.maxWidth,!1,!1,!0),this.parent.scale.y*=this.parent.scale.x/r,t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}if(this.options.minHeight!==null&&nthis.options.maxHeight){const r=this.parent.scale.y;this.parent.fitHeight(this.options.maxHeight,!1,!1,!0),this.parent.scale.x*=this.parent.scale.y/r,this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"})}}else if(this.options.minScale||this.options.maxScale){const t={x:null,y:null},n={x:null,y:null};if(typeof this.options.minScale=="number")t.x=this.options.minScale,t.y=this.options.minScale;else if(this.options.minScale!==null){const o=this.options.minScale;t.x=typeof o.x>"u"?null:o.x,t.y=typeof o.y>"u"?null:o.y}if(typeof this.options.maxScale=="number")n.x=this.options.maxScale,n.y=this.options.maxScale;else if(this.options.maxScale!==null){const o=this.options.maxScale;n.x=typeof o.x>"u"?null:o.x,n.y=typeof o.y>"u"?null:o.y}let r=this.parent.scale.x,i=this.parent.scale.y;t.x!==null&&rn.x&&(r=n.x),t.y!==null&&in.y&&(i=n.y),(r!==this.parent.scale.x||i!==this.parent.scale.y)&&(this.parent.scale.set(r,i),this.parent.emit("zoomed",{viewport:this.parent,type:"clamp-zoom"}))}}}reset(){this.clamp()}};const Mje={friction:.98,bounce:.8,minSpeed:.01},ld=16;let Dje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percentChangeX"),Ee(this,"percentChangeY"),Ee(this,"saved"),Ee(this,"timeSinceRelease"),this.options=Object.assign({},Mje,n),this.saved=[],this.timeSinceRelease=0,this.reset(),this.parent.on("moved",r=>this.handleMoved(r))}down(){return this.saved=[],this.x=this.y=null,!1}isActive(){return!!(this.x||this.y)}move(){if(this.paused)return!1;const t=this.parent.input.count();return(t===1||t>1&&!this.parent.plugins.get("pinch",!0))&&(this.saved.push({x:this.parent.x,y:this.parent.y,time:performance.now()}),this.saved.length>60&&this.saved.splice(0,30)),!1}handleMoved(t){if(this.saved.length){const n=this.saved[this.saved.length-1];t.type==="clamp-x"&&t.original?n.x===t.original.x&&(n.x=this.parent.x):t.type==="clamp-y"&&t.original&&n.y===t.original.y&&(n.y=this.parent.y)}}up(){if(this.parent.input.count()===0&&this.saved.length){const t=performance.now();for(const n of this.saved)if(n.time>=t-100){const r=t-n.time;this.x=(this.parent.x-n.x)/r,this.y=(this.parent.y-n.y)/r,this.percentChangeX=this.percentChangeY=this.options.friction,this.timeSinceRelease=0;break}}return!1}activate(t){t=t||{},typeof t.x<"u"&&(this.x=t.x,this.percentChangeX=this.options.friction),typeof t.y<"u"&&(this.y=t.y,this.percentChangeY=this.options.friction)}update(t){if(this.paused)return;const n=this.x||this.y,r=this.timeSinceRelease,i=this.timeSinceRelease+t;if(this.x){const o=this.percentChangeX,s=Math.log(o);this.parent.x+=this.x*ld/s*(Math.pow(o,i/ld)-Math.pow(o,r/ld)),this.x*=Math.pow(this.percentChangeX,t/ld)}if(this.y){const o=this.percentChangeY,s=Math.log(o);this.parent.y+=this.y*ld/s*(Math.pow(o,i/ld)-Math.pow(o,r/ld)),this.y*=Math.pow(this.percentChangeY,t/ld)}this.timeSinceRelease+=t,this.x&&this.y?Math.abs(this.x){t.includes(i.code)&&(this.keyIsPressed=!0)},r=i=>{t.includes(i.code)&&(this.keyIsPressed=!1)};this.addWindowEventHandler("keyup",r),this.addWindowEventHandler("keydown",n)}addWindowEventHandler(t,n){window.addEventListener(t,n),this.windowEventHandlers.push({event:t,handler:n})}destroy(){this.windowEventHandlers.forEach(({event:t,handler:n})=>{window.removeEventListener(t,n)})}mouseButtons(t){!t||t==="all"?this.mouse=[!0,!0,!0]:this.mouse=[t.indexOf("left")!==-1,t.indexOf("middle")!==-1,t.indexOf("right")!==-1]}parseUnderflow(){const t=this.options.underflow.toLowerCase();t==="center"?(this.underflowX=0,this.underflowY=0):(t.includes("left")?this.underflowX=-1:t.includes("right")?this.underflowX=1:this.underflowX=0,t.includes("top")?this.underflowY=-1:t.includes("bottom")?this.underflowY=1:this.underflowY=0)}checkButtons(t){const n=t.pointerType==="mouse",r=this.parent.input.count();return!!((r===1||r>1&&!this.parent.plugins.get("pinch",!0))&&(!n||this.mouse[t.button]))}checkKeyPress(t){return!this.options.keyToPress||this.keyIsPressed||this.options.ignoreKeyToPressOnTouch&&t.data.pointerType==="touch"}down(t){return this.paused||!this.options.pressDrag?!1:this.checkButtons(t)&&this.checkKeyPress(t)?(this.last={x:t.global.x,y:t.global.y},this.current=t.pointerId,!0):(this.last=null,!1)}get active(){return this.moved}move(t){if(this.paused||!this.options.pressDrag)return!1;if(this.last&&this.current===t.data.pointerId){const n=t.global.x,r=t.global.y,i=this.parent.input.count();if(i===1||i>1&&!this.parent.plugins.get("pinch",!0)){const o=n-this.last.x,s=r-this.last.y;if(this.moved||this.xDirection&&this.parent.input.checkThreshold(o)||this.yDirection&&this.parent.input.checkThreshold(s)){const a={x:n,y:r};return this.xDirection&&(this.parent.x+=(a.x-this.last.x)*this.options.factor),this.yDirection&&(this.parent.y+=(a.y-this.last.y)*this.options.factor),this.last=a,this.moved||this.parent.emit("drag-start",{event:t,screen:new Dt(this.last.x,this.last.y),world:this.parent.toWorld(new Dt(this.last.x,this.last.y)),viewport:this.parent}),this.moved=!0,this.parent.emit("moved",{viewport:this.parent,type:"drag"}),!0}}else this.moved=!1}return!1}up(t){if(this.paused)return!1;const n=this.parent.input.touches;if(n.length===1){const r=n[0];return r.last&&(this.last={x:r.last.x,y:r.last.y},this.current=r.id),this.moved=!1,!0}else if(this.last&&this.moved){const r=new Dt(this.last.x,this.last.y);return this.parent.emit("drag-end",{event:t,screen:r,world:this.parent.toWorld(r),viewport:this.parent}),this.last=null,this.moved=!1,!0}return!1}wheel(t){if(this.paused)return!1;if(this.options.wheel){const n=this.parent.plugins.get("wheel",!0);if(!n||!n.options.wheelZoom&&!t.ctrlKey){const r=t.deltaMode?this.options.lineHeight:1,i=[t.deltaX,t.deltaY],[o,s]=this.options.wheelSwapAxes?i.reverse():i;return this.xDirection&&(this.parent.x+=o*r*this.options.wheelScroll*this.reverse),this.yDirection&&(this.parent.y+=s*r*this.options.wheelScroll*this.reverse),this.options.clampWheel&&this.clamp(),this.parent.emit("wheel-scroll",this.parent),this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.options.passiveWheel||t.preventDefault(),this.parent.options.stopPropagation&&t.stopPropagation(),!0}}return!1}resume(){this.last=null,this.paused=!1}clamp(){const t=this.parent.plugins.get("decelerate",!0)||{};if(this.options.clampWheel!=="y")if(this.parent.screenWorldWidththis.parent.worldWidth&&(this.parent.x=-this.parent.worldWidth*this.parent.scale.x+this.parent.screenWidth,t.x=0);if(this.options.clampWheel!=="x")if(this.parent.screenWorldHeightthis.parent.worldHeight&&(this.parent.y=-this.parent.worldHeight*this.parent.scale.y+this.parent.screenHeight,t.y=0)}};const Bje={speed:0,acceleration:null,radius:null};let $je=class extends Na{constructor(t,n,r={}){super(t),Ee(this,"options"),Ee(this,"target"),Ee(this,"velocity"),this.target=n,this.options=Object.assign({},Bje,r),this.velocity={x:0,y:0}}update(t){if(this.paused)return;const n=this.parent.center;let r=this.target.x,i=this.target.y;if(this.options.radius)if(Math.sqrt(Math.pow(this.target.y-n.y,2)+Math.pow(this.target.x-n.x,2))>this.options.radius){const a=Math.atan2(this.target.y-n.y,this.target.x-n.x);r=this.target.x-Math.cos(a)*this.options.radius,i=this.target.y-Math.sin(a)*this.options.radius}else return;const o=r-n.x,s=i-n.y;if(o||s)if(this.options.speed)if(this.options.acceleration){const a=Math.atan2(i-n.y,r-n.x),c=Math.sqrt(Math.pow(o,2)+Math.pow(s,2));if(c){const u=(Math.pow(this.velocity.x,2)+Math.pow(this.velocity.y,2))/(2*this.options.acceleration);c>u?this.velocity={x:Math.min(this.velocity.x+(this.options.acceleration*t,this.options.speed)),y:Math.min(this.velocity.y+(this.options.acceleration*t,this.options.speed))}:this.velocity={x:Math.max(this.velocity.x-this.options.acceleration*this.options.speed,0),y:Math.max(this.velocity.y-this.options.acceleration*this.options.speed,0)};const f=Math.cos(a)*this.velocity.x,h=Math.sin(a)*this.velocity.y,p=Math.abs(f)>Math.abs(o)?r:n.x+f,g=Math.abs(h)>Math.abs(s)?i:n.y+h;this.parent.moveCenter(p,g),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}}else{const a=Math.atan2(i-n.y,r-n.x),c=Math.cos(a)*this.options.speed,u=Math.sin(a)*this.options.speed,f=Math.abs(c)>Math.abs(o)?r:n.x+c,h=Math.abs(u)>Math.abs(s)?i:n.y+u;this.parent.moveCenter(f,h),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}else this.parent.moveCenter(r,i),this.parent.emit("moved",{viewport:this.parent,type:"follow"})}};const Fje={radius:null,distance:null,top:null,bottom:null,left:null,right:null,speed:8,reverse:!1,noDecelerate:!1,linear:!1,allowButtons:!1};let zje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"reverse"),Ee(this,"radiusSquared"),Ee(this,"left"),Ee(this,"top"),Ee(this,"right"),Ee(this,"bottom"),Ee(this,"horizontal"),Ee(this,"vertical"),this.options=Object.assign({},Fje,n),this.reverse=this.options.reverse?1:-1,this.radiusSquared=typeof this.options.radius=="number"?Math.pow(this.options.radius,2):null,this.resize()}resize(){const t=this.options.distance;t!==null?(this.left=t,this.top=t,this.right=this.parent.screenWidth-t,this.bottom=this.parent.screenHeight-t):this.options.radius||(this.left=this.options.left,this.top=this.options.top,this.right=this.options.right===null?null:this.parent.screenWidth-this.options.right,this.bottom=this.options.bottom===null?null:this.parent.screenHeight-this.options.bottom)}down(){return this.paused||this.options.allowButtons||(this.horizontal=this.vertical=null),!1}move(t){if(this.paused||t.pointerType!=="mouse"&&t.pointerId!==1||!this.options.allowButtons&&t.buttons!==0)return!1;const n=t.global.x,r=t.global.y;if(this.radiusSquared){const i=this.parent.toScreen(this.parent.center);if(Math.pow(i.x-n,2)+Math.pow(i.y-r,2)>=this.radiusSquared){const o=Math.atan2(i.y-r,i.x-n);this.options.linear?(this.horizontal=Math.round(Math.cos(o))*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.round(Math.sin(o))*this.options.speed*this.reverse*(60/1e3)):(this.horizontal=Math.cos(o)*this.options.speed*this.reverse*(60/1e3),this.vertical=Math.sin(o)*this.options.speed*this.reverse*(60/1e3))}else this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=0}else this.left!==null&&nthis.right?this.horizontal=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateHorizontal(),this.horizontal=0),this.top!==null&&rthis.bottom?this.vertical=-1*this.reverse*this.options.speed*(60/1e3):(this.decelerateVertical(),this.vertical=0);return!1}decelerateHorizontal(){const t=this.parent.plugins.get("decelerate",!0);this.horizontal&&t&&!this.options.noDecelerate&&t.activate({x:this.horizontal*this.options.speed*this.reverse/(1e3/60)})}decelerateVertical(){const t=this.parent.plugins.get("decelerate",!0);this.vertical&&t&&!this.options.noDecelerate&&t.activate({y:this.vertical*this.options.speed*this.reverse/(1e3/60)})}up(){return this.paused||(this.horizontal&&this.decelerateHorizontal(),this.vertical&&this.decelerateVertical(),this.horizontal=this.vertical=null),!1}update(){if(!this.paused&&(this.horizontal||this.vertical)){const t=this.parent.center;this.horizontal&&(t.x+=this.horizontal*this.options.speed),this.vertical&&(t.y+=this.vertical*this.options.speed),this.parent.moveCenter(t),this.parent.emit("moved",{viewport:this.parent,type:"mouse-edges"})}}};const jje={noDrag:!1,percent:1,center:null,factor:1,axis:"all"};let Uje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"active",!1),Ee(this,"pinching",!1),Ee(this,"moved",!1),Ee(this,"lastCenter"),this.options=Object.assign({},jje,n)}down(){return this.parent.input.count()>=2?(this.active=!0,!0):!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}move(t){if(this.paused||!this.active)return!1;const n=t.global.x,r=t.global.y,i=this.parent.input.touches;if(i.length>=2){const o=i[0],s=i[1],a=o.last&&s.last?Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2)):null;if(o.id===t.pointerId?o.last={x:n,y:r,data:t}:s.id===t.pointerId&&(s.last={x:n,y:r,data:t}),a){let c;const u=new Dt(o.last.x+(s.last.x-o.last.x)/2,o.last.y+(s.last.y-o.last.y)/2);this.options.center||(c=this.parent.toLocal(u));let f=Math.sqrt(Math.pow(s.last.x-o.last.x,2)+Math.pow(s.last.y-o.last.y,2));f=f===0?f=1e-10:f;const h=(1-a/f)*this.options.percent*(this.isAxisX()?this.parent.scale.x:this.parent.scale.y);this.isAxisX()&&(this.parent.scale.x+=h),this.isAxisY()&&(this.parent.scale.y+=h),this.parent.emit("zoomed",{viewport:this.parent,type:"pinch",center:u});const p=this.parent.plugins.get("clamp-zoom",!0);if(p&&p.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const g=this.parent.toGlobal(c);this.parent.x+=(u.x-g.x)*this.options.factor,this.parent.y+=(u.y-g.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})}!this.options.noDrag&&this.lastCenter&&(this.parent.x+=(u.x-this.lastCenter.x)*this.options.factor,this.parent.y+=(u.y-this.lastCenter.y)*this.options.factor,this.parent.emit("moved",{viewport:this.parent,type:"pinch"})),this.lastCenter=u,this.moved=!0}else this.pinching||(this.parent.emit("pinch-start",this.parent),this.pinching=!0);return!0}return!1}up(){return this.pinching&&this.parent.input.touches.length<=1?(this.active=!1,this.lastCenter=null,this.pinching=!1,this.moved=!1,this.parent.emit("pinch-end",this.parent),!0):!1}};const Hje={topLeft:!1,friction:.8,time:1e3,ease:"easeInOutSine",interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1};let Wje=class extends Na{constructor(t,n,r,i={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"x"),Ee(this,"y"),Ee(this,"percent"),Ee(this,"snapping"),Ee(this,"deltaX"),Ee(this,"deltaY"),Ee(this,"startX"),Ee(this,"startY"),this.options=Object.assign({},Hje,i),this.ease=NA(i.ease,"easeInOutSine"),this.x=n,this.y=r,this.options.forceStart&&this.snapStart()}snapStart(){this.percent=0,this.snapping={time:0};const t=this.options.topLeft?this.parent.corner:this.parent.center;this.deltaX=this.x-t.x,this.deltaY=this.y-t.y,this.startX=t.x,this.startY=t.y,this.parent.emit("snap-start",this.parent)}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap"):this.options.interrupt&&(this.snapping=null),!1}up(){if(this.parent.input.count()===0){const t=this.parent.plugins.get("decelerate",!0);t&&(t.x||t.y)&&(t.percentChangeX=t.percentChangeY=this.options.friction)}return!1}update(t){if(!this.paused&&!(this.options.interrupt&&this.parent.input.count()!==0))if(this.snapping){const n=this.snapping;n.time+=t;let r,i,o;const s=this.startX,a=this.startY,c=this.deltaX,u=this.deltaY;if(n.time>this.options.time)r=!0,i=s+c,o=a+u;else{const f=this.ease(n.time,0,1,this.options.time);i=s+c*f,o=a+u*f}this.options.topLeft?this.parent.moveCorner(i,o):this.parent.moveCenter(i,o),this.parent.emit("moved",{viewport:this.parent,type:"snap"}),r&&(this.options.removeOnComplete&&this.parent.plugins.remove("snap"),this.parent.emit("snap-end",this.parent),this.snapping=null)}else{const n=this.options.topLeft?this.parent.corner:this.parent.center;(n.x!==this.x||n.y!==this.y)&&this.snapStart()}}};const Gje={width:0,height:0,time:1e3,ease:"easeInOutSine",center:null,interrupt:!0,removeOnComplete:!1,removeOnInterrupt:!1,forceStart:!1,noMove:!1};let Vje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"ease"),Ee(this,"xScale"),Ee(this,"yScale"),Ee(this,"xIndependent"),Ee(this,"yIndependent"),Ee(this,"snapping"),this.options=Object.assign({},Gje,n),this.ease=NA(this.options.ease),this.xIndependent=!1,this.yIndependent=!1,this.xScale=0,this.yScale=0,this.options.width>0&&(this.xScale=t.screenWidth/this.options.width,this.xIndependent=!0),this.options.height>0&&(this.yScale=t.screenHeight/this.options.height,this.yIndependent=!0),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale,this.options.time===0?(t.container.scale.x=this.xScale,t.container.scale.y=this.yScale,this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom")):n.forceStart&&this.createSnapping()}createSnapping(){const t=this.parent.worldScreenWidth,n=this.parent.worldScreenHeight,r=this.parent.screenWidth/this.xScale,i=this.parent.screenHeight/this.yScale;this.snapping={time:0,startX:t,startY:n,deltaX:r-t,deltaY:i-n},this.parent.emit("snap-zoom-start",this.parent)}resize(){this.snapping=null,this.options.width>0&&(this.xScale=this.parent.screenWidth/this.options.width),this.options.height>0&&(this.yScale=this.parent.screenHeight/this.options.height),this.xScale=this.xIndependent?this.xScale:this.yScale,this.yScale=this.yIndependent?this.yScale:this.xScale}wheel(){return this.options.removeOnInterrupt&&this.parent.plugins.remove("snap-zoom"),!1}down(){return this.options.removeOnInterrupt?this.parent.plugins.remove("snap-zoom"):this.options.interrupt&&(this.snapping=null),!1}update(t){if(this.paused||this.options.interrupt&&this.parent.input.count()!==0)return;let n;if(!this.options.center&&!this.options.noMove&&(n=this.parent.center),!this.snapping)(this.parent.scale.x!==this.xScale||this.parent.scale.y!==this.yScale)&&this.createSnapping();else if(this.snapping){const r=this.snapping;if(r.time+=t,r.time>=this.options.time)this.parent.scale.set(this.xScale,this.yScale),this.options.removeOnComplete&&this.parent.plugins.remove("snap-zoom"),this.parent.emit("snap-zoom-end",this.parent),this.snapping=null;else{const o=this.snapping,s=this.ease(o.time,o.startX,o.deltaX,this.options.time),a=this.ease(o.time,o.startY,o.deltaY,this.options.time);this.parent.scale.x=this.parent.screenWidth/s,this.parent.scale.y=this.parent.screenHeight/a}const i=this.parent.plugins.get("clamp-zoom",!0);i&&i.clamp(),this.options.noMove||(this.options.center?this.parent.moveCenter(this.options.center):this.parent.moveCenter(n))}}resume(){this.snapping=null,super.resume()}};const qje={percent:.1,smooth:!1,interrupt:!0,reverse:!1,center:null,lineHeight:20,axis:"all",keyToPress:null,trackpadPinch:!1,wheelZoom:!0};let Xje=class extends Na{constructor(t,n={}){super(t),Ee(this,"options"),Ee(this,"smoothing"),Ee(this,"smoothingCenter"),Ee(this,"smoothingCount"),Ee(this,"keyIsPressed"),this.options=Object.assign({},qje,n),this.keyIsPressed=!1,this.options.keyToPress&&this.handleKeyPresses(this.options.keyToPress)}handleKeyPresses(t){window.addEventListener("keydown",n=>{t.includes(n.code)&&(this.keyIsPressed=!0)}),window.addEventListener("keyup",n=>{t.includes(n.code)&&(this.keyIsPressed=!1)})}checkKeyPress(){return!this.options.keyToPress||this.keyIsPressed}down(){return this.options.interrupt&&(this.smoothing=null),!1}isAxisX(){return["all","x"].includes(this.options.axis)}isAxisY(){return["all","y"].includes(this.options.axis)}update(){if(this.smoothing){const t=this.smoothingCenter,n=this.smoothing;let r;this.options.center||(r=this.parent.toLocal(t)),this.isAxisX()&&(this.parent.scale.x+=n.x),this.isAxisY()&&(this.parent.scale.y+=n.y),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const i=this.parent.plugins.get("clamp-zoom",!0);if(i&&i.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const o=this.parent.toGlobal(r);this.parent.x+=t.x-o.x,this.parent.y+=t.y-o.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.smoothingCount++,this.smoothingCount>=this.options.smooth&&(this.smoothing=null)}}pinch(t){if(this.paused)return;const n=this.parent.input.getPointerPosition(t),r=-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/200,i=Math.pow(2,(1+this.options.percent)*r);let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}wheel(t){if(this.paused||!this.checkKeyPress())return!1;if(t.ctrlKey&&this.options.trackpadPinch)this.pinch(t);else if(this.options.wheelZoom){const n=this.parent.input.getPointerPosition(t),r=(this.options.reverse?-1:1)*-t.deltaY*(t.deltaMode?this.options.lineHeight:1)/500,i=Math.pow(2,(1+this.options.percent)*r);if(this.options.smooth){const o={x:this.smoothing?this.smoothing.x*(this.options.smooth-this.smoothingCount):0,y:this.smoothing?this.smoothing.y*(this.options.smooth-this.smoothingCount):0};this.smoothing={x:((this.parent.scale.x+o.x)*i-this.parent.scale.x)/this.options.smooth,y:((this.parent.scale.y+o.y)*i-this.parent.scale.y)/this.options.smooth},this.smoothingCount=0,this.smoothingCenter=n}else{let o;this.options.center||(o=this.parent.toLocal(n)),this.isAxisX()&&(this.parent.scale.x*=i),this.isAxisY()&&(this.parent.scale.y*=i),this.parent.emit("zoomed",{viewport:this.parent,type:"wheel"});const s=this.parent.plugins.get("clamp-zoom",!0);if(s&&s.clamp(),this.options.center)this.parent.moveCenter(this.options.center);else{const a=this.parent.toGlobal(o);this.parent.x+=n.x-a.x,this.parent.y+=n.y-a.y}}this.parent.emit("moved",{viewport:this.parent,type:"wheel"}),this.parent.emit("wheel-start",{event:t,viewport:this.parent})}return!this.parent.options.passiveWheel}},Yje=class{constructor(t){Ee(this,"viewport"),Ee(this,"clickedAvailable"),Ee(this,"isMouseDown"),Ee(this,"last"),Ee(this,"wheelFunction"),Ee(this,"touches"),this.viewport=t,this.touches=[],this.addListeners()}addListeners(){this.viewport.interactive=!0,this.viewport.forceHitArea||(this.viewport.hitArea=new Zt(0,0,this.viewport.worldWidth,this.viewport.worldHeight)),this.viewport.on("pointerdown",this.down,this),this.viewport.options.allowPreserveDragOutside?this.viewport.on("globalpointermove",this.move,this):this.viewport.on("pointermove",this.move,this),this.viewport.on("pointerup",this.up,this),this.viewport.on("pointerupoutside",this.up,this),this.viewport.on("pointercancel",this.up,this),this.viewport.options.allowPreserveDragOutside||this.viewport.on("pointerleave",this.up,this),this.wheelFunction=t=>this.handleWheel(t),this.viewport.options.events.domElement.addEventListener("wheel",this.wheelFunction,{passive:this.viewport.options.passiveWheel}),this.isMouseDown=!1}destroy(){this.viewport.options.events.domElement.removeEventListener("wheel",this.wheelFunction)}down(t){if(!(this.viewport.pause||!this.viewport.worldVisible)){if(t.pointerType==="mouse"?this.isMouseDown=!0:this.get(t.pointerId)||this.touches.push({id:t.pointerId,last:null}),this.count()===1){this.last=t.global.clone();const n=this.viewport.plugins.get("decelerate",!0),r=this.viewport.plugins.get("bounce",!0);(!n||!n.isActive())&&(!r||!r.isActive())?this.clickedAvailable=!0:this.clickedAvailable=!1}else this.clickedAvailable=!1;this.viewport.plugins.down(t)&&this.viewport.options.stopPropagation&&t.stopPropagation()}}clear(){this.isMouseDown=!1,this.touches=[],this.last=null}checkThreshold(t){return Math.abs(t)>=this.viewport.threshold}move(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.plugins.move(t);if(this.clickedAvailable&&this.last){const r=t.global.x-this.last.x,i=t.global.y-this.last.y;(this.checkThreshold(r)||this.checkThreshold(i))&&(this.clickedAvailable=!1)}n&&this.viewport.options.stopPropagation&&t.stopPropagation()}up(t){if(this.viewport.pause||!this.viewport.worldVisible)return;t.pointerType==="mouse"&&(this.isMouseDown=!1),t.pointerType!=="mouse"&&this.remove(t.pointerId);const n=this.viewport.plugins.up(t);this.clickedAvailable&&this.count()===0&&this.last&&(this.viewport.emit("clicked",{event:t,screen:this.last,world:this.viewport.toWorld(this.last),viewport:this.viewport}),this.clickedAvailable=!1),n&&this.viewport.options.stopPropagation&&t.stopPropagation()}getPointerPosition(t){const n=new Dt;return this.viewport.options.events.mapPositionToPoint(n,t.clientX,t.clientY),n}handleWheel(t){if(this.viewport.pause||!this.viewport.worldVisible)return;const n=this.viewport.toLocal(this.getPointerPosition(t));this.viewport.left<=n.x&&n.x<=this.viewport.right&&this.viewport.top<=n.y&&n.y<=this.viewport.bottom&&this.viewport.plugins.wheel(t)&&!this.viewport.options.passiveWheel&&t.preventDefault()}pause(){this.touches=[],this.isMouseDown=!1}get(t){for(const n of this.touches)if(n.id===t)return n;return null}remove(t){for(let n=0;n{t.destroy()}),this.plugins={},this.sort()}remove(t){var n;this.plugins[t]&&((n=this.plugins[t])==null||n.destroy(),delete this.plugins[t],this.viewport.emit("plugin-remove",t),this.sort())}pause(t){var n;(n=this.plugins[t])==null||n.pause()}resume(t){var n;(n=this.plugins[t])==null||n.resume()}sort(){this.list=[];for(const t of qb)this.plugins[t]&&this.list.push(this.plugins[t])}down(t){let n=!1;for(const r of this.list)r.down(t)&&(n=!0);return n}move(t){let n=!1;for(const r of this.viewport.plugins.list)r.move(t)&&(n=!0);return n}up(t){let n=!1;for(const r of this.list)r.up(t)&&(n=!0);return n}wheel(t){let n=!1;for(const r of this.list)r.wheel(t)&&(n=!0);return n}};const Qje={screenWidth:window.innerWidth,screenHeight:window.innerHeight,worldWidth:null,worldHeight:null,threshold:5,passiveWheel:!0,stopPropagation:!1,forceHitArea:null,noTicker:!1,disableOnContextMenu:!1,ticker:Si.shared,allowPreserveDragOutside:!1};class Jje extends us{constructor(t){super(),Ee(this,"moving"),Ee(this,"screenWidth"),Ee(this,"screenHeight"),Ee(this,"threshold"),Ee(this,"input"),Ee(this,"plugins"),Ee(this,"zooming"),Ee(this,"lastViewport"),Ee(this,"options"),Ee(this,"_dirty"),Ee(this,"_forceHitArea"),Ee(this,"_hitAreaDefault"),Ee(this,"_pause"),Ee(this,"tickerFunction"),Ee(this,"_worldWidth"),Ee(this,"_worldHeight"),Ee(this,"_disableOnContextMenu",n=>n.preventDefault()),this.options={...Qje,...t},this.screenWidth=this.options.screenWidth,this.screenHeight=this.options.screenHeight,this._worldWidth=this.options.worldWidth,this._worldHeight=this.options.worldHeight,this.forceHitArea=this.options.forceHitArea,this.threshold=this.options.threshold,this.options.disableOnContextMenu&&this.options.events.domElement.addEventListener("contextmenu",this._disableOnContextMenu),this.options.noTicker||(this.tickerFunction=()=>this.update(this.options.ticker.elapsedMS),this.options.ticker.add(this.tickerFunction)),this.input=new Yje(this),this.plugins=new Kje(this)}destroy(t){!this.options.noTicker&&this.tickerFunction&&this.options.ticker.remove(this.tickerFunction),this.options.disableOnContextMenu&&this.options.events.domElement.removeEventListener("contextmenu",this._disableOnContextMenu),this.input.destroy(),super.destroy(t)}update(t){this.pause||(this.plugins.update(t),this.lastViewport&&(this.lastViewport.x!==this.x||this.lastViewport.y!==this.y?this.moving=!0:this.moving&&(this.emit("moved-end",this),this.moving=!1),this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y?this.zooming=!0:this.zooming&&(this.emit("zoomed-end",this),this.zooming=!1)),this.forceHitArea||(this._hitAreaDefault=new Zt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight),this.hitArea=this._hitAreaDefault),this._dirty=this._dirty||!this.lastViewport||this.lastViewport.x!==this.x||this.lastViewport.y!==this.y||this.lastViewport.scaleX!==this.scale.x||this.lastViewport.scaleY!==this.scale.y,this.lastViewport={x:this.x,y:this.y,scaleX:this.scale.x,scaleY:this.scale.y},this.emit("frame-end",this))}resize(t=window.innerWidth,n=window.innerHeight,r,i){this.screenWidth=t,this.screenHeight=n,typeof r<"u"&&(this._worldWidth=r),typeof i<"u"&&(this._worldHeight=i),this.plugins.resize(),this.dirty=!0}get worldWidth(){return this._worldWidth?this._worldWidth:this.width/this.scale.x}set worldWidth(t){this._worldWidth=t,this.plugins.resize()}get worldHeight(){return this._worldHeight?this._worldHeight:this.height/this.scale.y}set worldHeight(t){this._worldHeight=t,this.plugins.resize()}getVisibleBounds(){return new Zt(this.left,this.top,this.worldScreenWidth,this.worldScreenHeight)}toWorld(t,n){return arguments.length===2?this.toLocal(new Dt(t,n)):this.toLocal(t)}toScreen(t,n){return arguments.length===2?this.toGlobal(new Dt(t,n)):this.toGlobal(t)}get worldScreenWidth(){return this.screenWidth/this.scale.x}get worldScreenHeight(){return this.screenHeight/this.scale.y}get screenWorldWidth(){return this.worldWidth*this.scale.x}get screenWorldHeight(){return this.worldHeight*this.scale.y}get center(){return new Dt(this.worldScreenWidth/2-this.x/this.scale.x,this.worldScreenHeight/2-this.y/this.scale.y)}set center(t){this.moveCenter(t)}moveCenter(...t){let n,r;typeof t[0]=="number"?(n=t[0],r=t[1]):(n=t[0].x,r=t[0].y);const i=(this.worldScreenWidth/2-n)*this.scale.x,o=(this.worldScreenHeight/2-r)*this.scale.y;return(this.x!==i||this.y!==o)&&(this.position.set(i,o),this.plugins.reset(),this.dirty=!0),this}get corner(){return new Dt(-this.x/this.scale.x,-this.y/this.scale.y)}set corner(t){this.moveCorner(t)}moveCorner(...t){let n,r;return t.length===1?(n=-t[0].x*this.scale.x,r=-t[0].y*this.scale.y):(n=-t[0]*this.scale.x,r=-t[1]*this.scale.y),(n!==this.x||r!==this.y)&&(this.position.set(n,r),this.plugins.reset(),this.dirty=!0),this}get screenWidthInWorldPixels(){return this.screenWidth/this.scale.x}get screenHeightInWorldPixels(){return this.screenHeight/this.scale.y}findFitWidth(t){return this.screenWidth/t}findFitHeight(t){return this.screenHeight/t}findFit(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.min(r,i)}findCover(t,n){const r=this.screenWidth/t,i=this.screenHeight/n;return Math.max(r,i)}fitWidth(t=this.worldWidth,n,r=!0,i){let o;n&&(o=this.center),this.scale.x=this.screenWidth/t,r&&(this.scale.y=this.scale.x);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitHeight(t=this.worldHeight,n,r=!0,i){let o;n&&(o=this.center),this.scale.y=this.screenHeight/t,r&&(this.scale.x=this.scale.y);const s=this.plugins.get("clamp-zoom",!0);return!i&&s&&s.clamp(),n&&o&&this.moveCenter(o),this}fitWorld(t){let n;t&&(n=this.center),this.scale.x=this.screenWidth/this.worldWidth,this.scale.y=this.screenHeight/this.worldHeight,this.scale.xthis.worldWidth,top:this.top<0,bottom:this.bottom>this.worldHeight,cornerPoint:new Dt(this.worldWidth*this.scale.x-this.screenWidth,this.worldHeight*this.scale.y-this.screenHeight)}}get right(){return-this.x/this.scale.x+this.worldScreenWidth}set right(t){this.x=-t*this.scale.x+this.screenWidth,this.plugins.reset()}get left(){return-this.x/this.scale.x}set left(t){this.x=-t*this.scale.x,this.plugins.reset()}get top(){return-this.y/this.scale.y}set top(t){this.y=-t*this.scale.y,this.plugins.reset()}get bottom(){return-this.y/this.scale.y+this.worldScreenHeight}set bottom(t){this.y=-t*this.scale.y+this.screenHeight,this.plugins.reset()}get dirty(){return!!this._dirty}set dirty(t){this._dirty=t}get forceHitArea(){return this._forceHitArea}set forceHitArea(t){t?(this._forceHitArea=t,this.hitArea=t):(this._forceHitArea=null,this.hitArea=new Zt(0,0,this.worldWidth,this.worldHeight))}drag(t){return this.plugins.add("drag",new Nje(this,t)),this}clamp(t){return this.plugins.add("clamp",new Rje(this,t)),this}decelerate(t){return this.plugins.add("decelerate",new Dje(this,t)),this}bounce(t){return this.plugins.add("bounce",new Aje(this,t)),this}pinch(t){return this.plugins.add("pinch",new Uje(this,t)),this}snap(t,n,r){return this.plugins.add("snap",new Wje(this,t,n,r)),this}follow(t,n){return this.plugins.add("follow",new $je(this,t,n)),this}wheel(t){return this.plugins.add("wheel",new Xje(this,t)),this}animate(t){return this.plugins.add("animate",new Tje(this,t)),this}clampZoom(t){return this.plugins.add("clamp-zoom",new Oje(this,t)),this}mouseEdges(t){return this.plugins.add("mouse-edges",new zje(this,t)),this}get pause(){return!!this._pause}set pause(t){this._pause=t,this.lastViewport=null,this.moving=!1,this.zooming=!1,t&&this.input.pause()}ensureVisible(t,n,r,i,o){o&&(r>this.worldScreenWidth||i>this.worldScreenHeight)&&(this.fit(!0,r,i),this.emit("zoomed",{viewport:this,type:"ensureVisible"}));let s=!1;tthis.right&&(this.right=t+r,s=!0),nthis.bottom&&(this.bottom=n+i,s=!0),s&&this.emit("moved",{viewport:this,type:"ensureVisible"})}}const Xb=new Dt,Zje=new Uint16Array([0,1,2,0,2,3]);class hm extends us{constructor(t){super(),this._anchor=new Dd(this._onAnchorUpdate,this,t?t.defaultAnchor.x:0,t?t.defaultAnchor.y:0),this._texture=null,this._width=0,this._height=0,this._tintColor=new Vn(16777215),this._tintRGB=null,this.tint=16777215,this.blendMode=Lt.NORMAL,this._cachedTint=16777215,this.uvs=null,this.texture=t||mt.EMPTY,this.vertexData=new Float32Array(8),this.vertexTrimmedData=null,this._transformID=-1,this._textureID=-1,this._transformTrimmedID=-1,this._textureTrimmedID=-1,this.indices=Zje,this.pluginName="batch",this.isSprite=!0,this._roundPixels=nt.ROUND_PIXELS}_onTextureUpdate(){this._textureID=-1,this._textureTrimmedID=-1,this._cachedTint=16777215,this._width&&(this.scale.x=Md(this.scale.x)*this._width/this._texture.orig.width),this._height&&(this.scale.y=Md(this.scale.y)*this._height/this._texture.orig.height)}_onAnchorUpdate(){this._transformID=-1,this._transformTrimmedID=-1}calculateVertices(){const t=this._texture;if(this._transformID===this.transform._worldID&&this._textureID===t._updateID)return;this._textureID!==t._updateID&&(this.uvs=this._texture._uvs.uvsFloat32),this._transformID=this.transform._worldID,this._textureID=t._updateID;const n=this.transform.worldTransform,r=n.a,i=n.b,o=n.c,s=n.d,a=n.tx,c=n.ty,u=this.vertexData,f=t.trim,h=t.orig,p=this._anchor;let g=0,v=0,y=0,S=0;if(f?(v=f.x-p._x*h.width,g=v+f.width,S=f.y-p._y*h.height,y=S+f.height):(v=-p._x*h.width,g=v+h.width,S=-p._y*h.height,y=S+h.height),u[0]=r*v+o*S+a,u[1]=s*S+i*v+c,u[2]=r*g+o*S+a,u[3]=s*S+i*g+c,u[4]=r*g+o*y+a,u[5]=s*y+i*g+c,u[6]=r*v+o*y+a,u[7]=s*y+i*v+c,this._roundPixels){const w=nt.RESOLUTION;for(let b=0;b=i&&Xb.x=o&&Xb.y=n&&(s=e-a-1),c=c.replace("%value%",t[s].toString()),i+=c,i+=` -`}return r=r.replace("%blur%",i),r=r.replace("%size%",e.toString()),r}const eUe=` +`;class nUe extends to{constructor(t=1){super(mje,tUe,{uAlpha:1}),this.alpha=t}get alpha(){return this.uniforms.uAlpha}set alpha(t){this.uniforms.uAlpha=t}}const rUe={5:[.153388,.221461,.250301],7:[.071303,.131514,.189879,.214607],9:[.028532,.067234,.124009,.179044,.20236],11:[.0093,.028002,.065984,.121703,.175713,.198596],13:[.002406,.009255,.027867,.065666,.121117,.174868,.197641],15:[489e-6,.002403,.009246,.02784,.065602,.120999,.174697,.197448]},iUe=["varying vec2 vBlurTexCoords[%size%];","uniform sampler2D uSampler;","void main(void)","{"," gl_FragColor = vec4(0.0);"," %blur%","}"].join(` +`);function oUe(e){const t=rUe[e],n=t.length;let r=iUe,i="";const o="gl_FragColor += texture2D(uSampler, vBlurTexCoords[%index%]) * %value%;";let s;for(let a=0;a=n&&(s=e-a-1),c=c.replace("%value%",t[s].toString()),i+=c,i+=` +`}return r=r.replace("%blur%",i),r=r.replace("%size%",e.toString()),r}const sUe=` attribute vec2 aVertexPosition; uniform mat3 projectionMatrix; @@ -1252,8 +1252,8 @@ void main(void) vec2 textureCoord = filterTextureCoord(); %blur% - }`;function tUe(e,t){const n=Math.ceil(e/2);let r=eUe,i="",o;t?o="vBlurTexCoords[%index%] = textureCoord + vec2(%sampleIndex% * strength, 0.0);":o="vBlurTexCoords[%index%] = textureCoord + vec2(0.0, %sampleIndex% * strength);";for(let s=0;s{Object.defineProperty(hV,e,{get(){return fn("7.1.0",`filters.${e} has moved to ${e}`),t}})});class fUe{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(Si.system.add(this.tickerUpdate,this,Kp.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Si.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTimer.priority-i.priority)}dispatchEvent(t,n){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,n),this.dispatch.emit(n||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const n=this.mappingTable[t.type];if(n)for(let r=0,i=n.length;r=0;i--)if(t.currentTarget=r[i],this.notifyTarget(t,n),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,n,r=this._allInteractiveElements){if(r.length===0)return;t.eventPhase=t.BUBBLING_PHASE;const i=Array.isArray(n)?n:[n];for(let o=r.length-1;o>=0;o--)i.forEach(s=>{t.currentTarget=r[o],this.notifyTarget(t,s)})}propagationPath(t){const n=[t];for(let r=0;r=0;h--){const p=f[h],g=this.hitTestMoveRecursive(p,this._isInteractive(n)?n:p.eventMode,r,i,o,s||o(t,r));if(g){if(g.length>0&&!g[g.length-1].parent)continue;const v=t.isInteractive();(g.length>0||v)&&(v&&this._allInteractiveElements.push(t),g.push(t)),this._hitElements.length===0&&(this._hitElements=g),a=!0}}}const c=this._isInteractive(n),u=t.isInteractive();return u&&u&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:a?this._hitElements:c&&!o(t,r)&&i(t,r)?u?[t]:[]:null}hitTestRecursive(t,n,r,i,o){if(this._interactivePrune(t)||o(t,r))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(_d.pauseUpdate=!1),t.interactiveChildren&&t.children){const c=t.children;for(let u=c.length-1;u>=0;u--){const f=c[u],h=this.hitTestRecursive(f,this._isInteractive(n)?n:f.eventMode,r,i,o);if(h){if(h.length>0&&!h[h.length-1].parent)continue;const p=t.isInteractive();return(h.length>0||p)&&h.push(t),h}}}const s=this._isInteractive(n),a=t.isInteractive();return s&&i(t,r)?a?[t]:[]:null}_isInteractive(t){return t==="static"||t==="dynamic"}_interactivePrune(t){return!!(!t||t.isMask||!t.visible||!t.renderable||t.eventMode==="none"||t.eventMode==="passive"&&!t.interactiveChildren||t.isMask)}hitPruneFn(t,n){var r;if(t.hitArea&&(t.worldTransform.applyInverse(n,r$),!t.hitArea.contains(r$.x,r$.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!((r=i.containsPoint)!=null&&r.call(i,n)))return!0}return!1}hitTestFn(t,n){return t.eventMode==="passive"?!1:t.hitArea?!0:t.containsPoint?t.containsPoint(n):!1}notifyTarget(t,n){var o,s;n=n??t.type;const r=`on${n}`;(s=(o=t.currentTarget)[r])==null||s.call(o,t);const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${n}capture`:n;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,n)}mapPointerDown(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.createPointerEvent(t);if(this.dispatchEvent(n,"pointerdown"),n.pointerType==="touch")this.dispatchEvent(n,"touchstart");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const i=n.button===2;this.dispatchEvent(n,i?"rightdown":"mousedown")}const r=this.trackingData(t.pointerId);r.pressTargetsByButton[t.button]=n.composedPath(),this.freeEvent(n)}mapPointerMove(t){var c,u;if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const n=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const r=n.pointerType==="mouse"||n.pointerType==="pen",i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.overTargets);if(((c=i.overTargets)==null?void 0:c.length)>0&&o!==n.target){const f=t.type==="mousemove"?"mouseout":"pointerout",h=this.createPointerEvent(t,f,o);if(this.dispatchEvent(h,"pointerout"),r&&this.dispatchEvent(h,"mouseout"),!n.composedPath().includes(o)){const p=this.createPointerEvent(t,"pointerleave",o);for(p.eventPhase=p.AT_TARGET;p.target&&!n.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),r&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(h)}if(o!==n.target){const f=t.type==="mousemove"?"mouseover":"pointerover",h=this.clonePointerEvent(n,f);this.dispatchEvent(h,"pointerover"),r&&this.dispatchEvent(h,"mouseover");let p=o==null?void 0:o.parent;for(;p&&p!==this.rootTarget.parent&&p!==n.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const v=this.clonePointerEvent(n,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==o&&v.target!==this.rootTarget.parent;)v.currentTarget=v.target,this.notifyTarget(v),r&&this.notifyTarget(v,"mouseenter"),v.target=v.target.parent;this.freeEvent(v)}this.freeEvent(h)}const s=[],a=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(n,"pointermove"),a&&s.push("globalpointermove"),n.pointerType==="touch"&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(n,"touchmove"),a&&s.push("globaltouchmove")),r&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(n,"mousemove"),a&&s.push("globalmousemove"),this.cursor=(u=n.target)==null?void 0:u.cursor),s.length>0&&this.all(n,s),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=n.composedPath(),this.freeEvent(n)}mapPointerOver(t){var s;if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.createPointerEvent(t),i=r.pointerType==="mouse"||r.pointerType==="pen";this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),r.pointerType==="mouse"&&(this.cursor=(s=r.target)==null?void 0:s.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId);if(n.overTargets){const r=t.pointerType==="mouse"||t.pointerType==="pen",i=this.findMountedTarget(n.overTargets),o=this.createPointerEvent(t,"pointerout",i);this.dispatchEvent(o),r&&this.dispatchEvent(o,"mouseout");const s=this.createPointerEvent(t,"pointerleave",i);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),r&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;n.overTargets=null,this.freeEvent(o),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=performance.now(),r=this.createPointerEvent(t);if(this.dispatchEvent(r,"pointerup"),r.pointerType==="touch")this.dispatchEvent(r,"touchend");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const a=r.button===2;this.dispatchEvent(r,a?"rightup":"mouseup")}const i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.pressTargetsByButton[t.button]);let s=o;if(o&&!r.composedPath().includes(o)){let a=o;for(;a&&!r.composedPath().includes(a);){if(r.currentTarget=a,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch")this.notifyTarget(r,"touchendoutside");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const c=r.button===2;this.notifyTarget(r,c?"rightupoutside":"mouseupoutside")}a=a.parent}delete i.pressTargetsByButton[t.button],s=a}if(s){const a=this.clonePointerEvent(r,"click");a.target=s,a.path=null,i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:a.target,timeStamp:n});const c=i.clicksByButton[t.button];if(c.target===a.target&&n-c.timeStamp<200?++c.clickCount:c.clickCount=1,c.target=a.target,c.timeStamp=n,a.detail=c.clickCount,a.pointerType==="mouse"){const u=a.button===2;this.dispatchEvent(a,u?"rightclick":"click")}else a.pointerType==="touch"&&this.dispatchEvent(a,"tap");this.dispatchEvent(a,"pointertap"),this.freeEvent(a)}this.freeEvent(r)}mapPointerUpOutside(t){if(!(t instanceof rl)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.findMountedTarget(n.pressTargetsByButton[t.button]),i=this.createPointerEvent(t);if(r){let o=r;for(;o;)i.currentTarget=o,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),o=o.parent;delete n.pressTargetsByButton[t.button]}this.freeEvent(i)}mapWheel(t){if(!(t instanceof uv)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const n=this.createWheelEvent(t);this.dispatchEvent(n),this.freeEvent(n)}findMountedTarget(t){if(!t)return null;let n=t[0];for(let r=1;r(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=r),t[n]=r,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,R5._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click||(this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.supportsTouchEvents&&e.pointerType==="touch"))return;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this.normalizeToPointerData(e);for(let i=0,o=r.length;i"u"&&(i.button=0),typeof i.buttons>"u"&&(i.buttons=1),typeof i.isPrimary>"u"&&(i.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof i.width>"u"&&(i.width=i.radiusX||1),typeof i.height>"u"&&(i.height=i.radiusY||1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="touch"),typeof i.pointerId>"u"&&(i.pointerId=i.identifier||0),typeof i.pressure>"u"&&(i.pressure=i.force||.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),typeof i.layerX>"u"&&(i.layerX=i.offsetX=i.clientX),typeof i.layerY>"u"&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,i.type=e.type,t.push(i)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=gUe),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=vUe[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};let nw=R5;nw.extension={name:"events",type:[ot.RendererSystem,ot.CanvasRendererSystem]};nw.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};wt.add(nw);function pV(e){return e==="dynamic"||e==="static"}const yUe={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??pV(nw.defaultEventMode)},set interactive(e){fn("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=e,this.eventMode=e?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??nw.defaultEventMode},set eventMode(e){this._internalInteractive=pV(e),this._internalEventMode=e},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.on(e,t,i)},removeEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.off(e,t,i)},dispatchEvent(e){if(!(e instanceof Qw))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}};Ur.mixin(yUe);const bUe={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Ur.mixin(bUe);const xUe=9,TS=100,wUe=0,_Ue=0,mV=2,gV=1,SUe=-1e3,EUe=-1e3,CUe=2;class zre{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(Au.tablet||Au.phone)&&this.createTouchHook();const n=document.createElement("div");n.style.width=`${TS}px`,n.style.height=`${TS}px`,n.style.position="absolute",n.style.top=`${wUe}px`,n.style.left=`${_Ue}px`,n.style.zIndex=mV.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width=`${gV}px`,t.style.height=`${gV}px`,t.style.position="absolute",t.style.top=`${SUe}px`,t.style.left=`${EUe}px`,t.style.zIndex=CUe.toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)==null||t.appendChild(this.div))}deactivate(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)==null||t.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const n=t.children;if(n)for(let r=0;r title : ${t.title}
tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:n,height:r}=this.renderer;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>r&&(t.height=r-t.y)}addChild(t){let n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=`${TS}px`,n.style.height=`${TS}px`,n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=mV.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,n){const{displayObject:r}=t.target,i=this.renderer.events.rootBoundary,o=Object.assign(new Qw(i),{target:r});i.rootTarget=this.renderer.lastObjectRendered,n.forEach(s=>i.dispatchEvent(o,s))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){t.keyCode===xUe&&this.activate()}_onMouseMove(t){t.movementX===0&&t.movementY===0||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}zre.extension={name:"accessibility",type:[ot.RendererPlugin,ot.CanvasRendererPlugin]};wt.add(zre);const P5=class{constructor(e){this.stage=new us,e=Object.assign({forceCanvas:!1},e),this.renderer=sje(e),P5._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){return this.renderer.view}get screen(){return this.renderer.screen}destroy(e,t){const n=P5._plugins.slice(0);n.reverse(),n.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};let CU=P5;CU._plugins=[];wt.handleByList(ot.Application,CU._plugins);class jre{static init(t){Object.defineProperty(this,"resizeTo",{set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let n,r;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,r=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:o}=this._resizeTo;n=i,r=o}this.renderer.resize(n,r),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}jre.extension=ot.Application;wt.add(jre);const vV={loader:ot.LoadParser,resolver:ot.ResolveParser,cache:ot.CacheParser,detection:ot.DetectionParser};wt.handle(ot.Asset,e=>{const t=e.ref;Object.entries(vV).filter(([n])=>!!t[n]).forEach(([n,r])=>wt.add(Object.assign(t[n],{extension:t[n].extension??r})))},e=>{const t=e.ref;Object.keys(vV).filter(n=>!!t[n]).forEach(n=>wt.remove(t[n]))});class TUe{constructor(t,n=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}add(t){t.forEach(n=>{this._assetList.push(n)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],n=Math.min(this._assetList.length,this._maxConcurrent);for(let r=0;r(Array.isArray(e)||(e=[e]),t?e.map(n=>typeof n=="string"?t(n):n):e),O5=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e};function Ure(e,t,n,r,i){const o=t[n];for(let s=0;s{const s=o.substring(1,o.length-1).split(",");i.push(s)}),Ure(e,i,0,n,r)}else r.push(e);return r}const oT=e=>!Array.isArray(e);class AUe{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const n=this._cache.get(t);return n||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),n}set(t,n){const r=Lu(t);let i;for(let a=0;a{i[a]=n}));const o=Object.keys(i),s={cacheKeys:o,keys:r};if(r.forEach(a=>{this._cacheMap.set(a,s)}),o.forEach(a=>{this._cache.has(a)&&this._cache.get(a)!==n&&console.warn("[Cache] already has key:",a),this._cache.set(a,i[a])}),n instanceof mt){const a=n;r.forEach(c=>{a.baseTexture!==mt.EMPTY.baseTexture&&Vt.addToCache(a.baseTexture,c),mt.addToCache(a,c)})}}remove(t){if(this._cacheMap.get(t),!this._cacheMap.has(t)){console.warn(`[Assets] Asset id ${t} was not found in the Cache`);return}const n=this._cacheMap.get(t);n.cacheKeys.forEach(i=>{this._cache.delete(i)}),n.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const qb=new AUe;class IUe{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,n,r)=>(this._parsersValidated=!1,t[n]=r,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,n){const r={promise:null,parser:null};return r.promise=(async()=>{var s,a;let i=null,o=null;if(n.loadParser&&(o=this._parserHash[n.loadParser],o||console.warn(`[Assets] specified load parser "${n.loadParser}" not found while loading ${t}`)),!o){for(let c=0;c({src:u})),a=s.length,c=s.map(async u=>{const f=vo.toAbsolute(u.src);if(!i[u.src])try{this.promiseCache[f]||(this.promiseCache[f]=this._getLoadPromiseAndParser(f,u)),i[u.src]=await this.promiseCache[f].promise,n&&n(++r/a)}catch(h){throw delete this.promiseCache[f],delete i[u.src],new Error(`[Loader.load] Failed to load ${f}. -${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu(t,i=>({src:i})).map(async i=>{var a,c;const o=vo.toAbsolute(i.src),s=this.promiseCache[o];if(s){const u=await s.promise;(c=(a=s.parser)==null?void 0:a.unload)==null||c.call(a,u,i,this),delete this.promiseCache[o]}});await Promise.all(r)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,n)=>(t[n.name]&&console.warn(`[Assets] loadParser name conflict "${n.name}"`),{...t,[n.name]:n}),{})}}var bc=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(bc||{});const RUe=".json",PUe="application/json",OUe={extension:{type:ot.LoadParser,priority:bc.Low},name:"loadJson",test(e){return Jw(e,PUe)||hm(e,RUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).json()}};wt.add(OUe);const MUe=".txt",LUe="text/plain",DUe={name:"loadTxt",extension:{type:ot.LoadParser,priority:bc.Low},test(e){return Jw(e,LUe)||hm(e,MUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).text()}};wt.add(DUe);const NUe=["normal","bold","100","200","300","400","500","600","700","800","900"],BUe=[".ttf",".otf",".woff",".woff2"],$Ue=["font/ttf","font/otf","font/woff","font/woff2"],FUe=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function zUe(e){const t=vo.extname(e),i=vo.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1));let o=i.length>0;for(const a of i)if(!a.match(FUe)){o=!1;break}let s=i.join(" ");return o||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const jUe={extension:{type:ot.LoadParser,priority:bc.Low},name:"loadWebFont",test(e){return Jw(e,$Ue)||hm(e,BUe)},async load(e,t){var r,i,o;const n=nt.ADAPTER.getFontFaceSet();if(n){const s=[],a=((r=t.data)==null?void 0:r.family)??zUe(e),c=((o=(i=t.data)==null?void 0:i.weights)==null?void 0:o.filter(f=>NUe.includes(f)))??["normal"],u=t.data??{};for(let f=0;fnt.ADAPTER.getFontFaceSet().delete(t))}};wt.add(jUe);let yV=0,i$;const UUe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",HUe={id:"checkImageBitmap",code:` +`;class vUe extends to{constructor(t=.5,n=Math.random()){super(Mre,gUe,{uNoise:0,uSeed:0}),this.noise=t,this.seed=n}get noise(){return this.uniforms.uNoise}set noise(t){this.uniforms.uNoise=t}get seed(){return this.uniforms.uSeed}set seed(t){this.uniforms.uSeed=t}}const gV={AlphaFilter:nUe,BlurFilter:lUe,BlurFilterPass:P5,ColorMatrixFilter:O5,DisplacementFilter:fUe,FXAAFilter:mUe,NoiseFilter:vUe};Object.entries(gV).forEach(([e,t])=>{Object.defineProperty(gV,e,{get(){return fn("7.1.0",`filters.${e} has moved to ${e}`),t}})});class yUe{constructor(){this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}init(t){this.removeTickerListener(),this.events=t,this.interactionFrequency=10,this._deltaTime=0,this._didMove=!1,this.tickerAdded=!1,this._pauseUpdate=!0}get pauseUpdate(){return this._pauseUpdate}set pauseUpdate(t){this._pauseUpdate=t}addTickerListener(){this.tickerAdded||!this.domElement||(Si.system.add(this.tickerUpdate,this,Qp.INTERACTION),this.tickerAdded=!0)}removeTickerListener(){this.tickerAdded&&(Si.system.remove(this.tickerUpdate,this),this.tickerAdded=!1)}pointerMoved(){this._didMove=!0}update(){if(!this.domElement||this._pauseUpdate)return;if(this._didMove){this._didMove=!1;return}const t=this.events.rootPointerEvent;this.events.supportsTouchEvents&&t.pointerType==="touch"||globalThis.document.dispatchEvent(new PointerEvent("pointermove",{clientX:t.clientX,clientY:t.clientY}))}tickerUpdate(t){this._deltaTime+=t,!(this._deltaTimer.priority-i.priority)}dispatchEvent(t,n){t.propagationStopped=!1,t.propagationImmediatelyStopped=!1,this.propagate(t,n),this.dispatch.emit(n||t.type,t)}mapEvent(t){if(!this.rootTarget)return;const n=this.mappingTable[t.type];if(n)for(let r=0,i=n.length;r=0;i--)if(t.currentTarget=r[i],this.notifyTarget(t,n),t.propagationStopped||t.propagationImmediatelyStopped)return}}all(t,n,r=this._allInteractiveElements){if(r.length===0)return;t.eventPhase=t.BUBBLING_PHASE;const i=Array.isArray(n)?n:[n];for(let o=r.length-1;o>=0;o--)i.forEach(s=>{t.currentTarget=r[o],this.notifyTarget(t,s)})}propagationPath(t){const n=[t];for(let r=0;r=0;h--){const p=f[h],g=this.hitTestMoveRecursive(p,this._isInteractive(n)?n:p.eventMode,r,i,o,s||o(t,r));if(g){if(g.length>0&&!g[g.length-1].parent)continue;const v=t.isInteractive();(g.length>0||v)&&(v&&this._allInteractiveElements.push(t),g.push(t)),this._hitElements.length===0&&(this._hitElements=g),a=!0}}}const c=this._isInteractive(n),u=t.isInteractive();return u&&u&&this._allInteractiveElements.push(t),s||this._hitElements.length>0?null:a?this._hitElements:c&&!o(t,r)&&i(t,r)?u?[t]:[]:null}hitTestRecursive(t,n,r,i,o){if(this._interactivePrune(t)||o(t,r))return null;if((t.eventMode==="dynamic"||n==="dynamic")&&(Sd.pauseUpdate=!1),t.interactiveChildren&&t.children){const c=t.children;for(let u=c.length-1;u>=0;u--){const f=c[u],h=this.hitTestRecursive(f,this._isInteractive(n)?n:f.eventMode,r,i,o);if(h){if(h.length>0&&!h[h.length-1].parent)continue;const p=t.isInteractive();return(h.length>0||p)&&h.push(t),h}}}const s=this._isInteractive(n),a=t.isInteractive();return s&&i(t,r)?a?[t]:[]:null}_isInteractive(t){return t==="static"||t==="dynamic"}_interactivePrune(t){return!!(!t||t.isMask||!t.visible||!t.renderable||t.eventMode==="none"||t.eventMode==="passive"&&!t.interactiveChildren||t.isMask)}hitPruneFn(t,n){var r;if(t.hitArea&&(t.worldTransform.applyInverse(n,o$),!t.hitArea.contains(o$.x,o$.y)))return!0;if(t._mask){const i=t._mask.isMaskData?t._mask.maskObject:t._mask;if(i&&!((r=i.containsPoint)!=null&&r.call(i,n)))return!0}return!1}hitTestFn(t,n){return t.eventMode==="passive"?!1:t.hitArea?!0:t.containsPoint?t.containsPoint(n):!1}notifyTarget(t,n){var o,s;n=n??t.type;const r=`on${n}`;(s=(o=t.currentTarget)[r])==null||s.call(o,t);const i=t.eventPhase===t.CAPTURING_PHASE||t.eventPhase===t.AT_TARGET?`${n}capture`:n;this.notifyListeners(t,i),t.eventPhase===t.AT_TARGET&&this.notifyListeners(t,n)}mapPointerDown(t){if(!(t instanceof il)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.createPointerEvent(t);if(this.dispatchEvent(n,"pointerdown"),n.pointerType==="touch")this.dispatchEvent(n,"touchstart");else if(n.pointerType==="mouse"||n.pointerType==="pen"){const i=n.button===2;this.dispatchEvent(n,i?"rightdown":"mousedown")}const r=this.trackingData(t.pointerId);r.pressTargetsByButton[t.button]=n.composedPath(),this.freeEvent(n)}mapPointerMove(t){var c,u;if(!(t instanceof il)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}this._allInteractiveElements.length=0,this._hitElements.length=0,this._isPointerMoveEvent=!0;const n=this.createPointerEvent(t);this._isPointerMoveEvent=!1;const r=n.pointerType==="mouse"||n.pointerType==="pen",i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.overTargets);if(((c=i.overTargets)==null?void 0:c.length)>0&&o!==n.target){const f=t.type==="mousemove"?"mouseout":"pointerout",h=this.createPointerEvent(t,f,o);if(this.dispatchEvent(h,"pointerout"),r&&this.dispatchEvent(h,"mouseout"),!n.composedPath().includes(o)){const p=this.createPointerEvent(t,"pointerleave",o);for(p.eventPhase=p.AT_TARGET;p.target&&!n.composedPath().includes(p.target);)p.currentTarget=p.target,this.notifyTarget(p),r&&this.notifyTarget(p,"mouseleave"),p.target=p.target.parent;this.freeEvent(p)}this.freeEvent(h)}if(o!==n.target){const f=t.type==="mousemove"?"mouseover":"pointerover",h=this.clonePointerEvent(n,f);this.dispatchEvent(h,"pointerover"),r&&this.dispatchEvent(h,"mouseover");let p=o==null?void 0:o.parent;for(;p&&p!==this.rootTarget.parent&&p!==n.target;)p=p.parent;if(!p||p===this.rootTarget.parent){const v=this.clonePointerEvent(n,"pointerenter");for(v.eventPhase=v.AT_TARGET;v.target&&v.target!==o&&v.target!==this.rootTarget.parent;)v.currentTarget=v.target,this.notifyTarget(v),r&&this.notifyTarget(v,"mouseenter"),v.target=v.target.parent;this.freeEvent(v)}this.freeEvent(h)}const s=[],a=this.enableGlobalMoveEvents??!0;this.moveOnAll?s.push("pointermove"):this.dispatchEvent(n,"pointermove"),a&&s.push("globalpointermove"),n.pointerType==="touch"&&(this.moveOnAll?s.splice(1,0,"touchmove"):this.dispatchEvent(n,"touchmove"),a&&s.push("globaltouchmove")),r&&(this.moveOnAll?s.splice(1,0,"mousemove"):this.dispatchEvent(n,"mousemove"),a&&s.push("globalmousemove"),this.cursor=(u=n.target)==null?void 0:u.cursor),s.length>0&&this.all(n,s),this._allInteractiveElements.length=0,this._hitElements.length=0,i.overTargets=n.composedPath(),this.freeEvent(n)}mapPointerOver(t){var s;if(!(t instanceof il)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.createPointerEvent(t),i=r.pointerType==="mouse"||r.pointerType==="pen";this.dispatchEvent(r,"pointerover"),i&&this.dispatchEvent(r,"mouseover"),r.pointerType==="mouse"&&(this.cursor=(s=r.target)==null?void 0:s.cursor);const o=this.clonePointerEvent(r,"pointerenter");for(o.eventPhase=o.AT_TARGET;o.target&&o.target!==this.rootTarget.parent;)o.currentTarget=o.target,this.notifyTarget(o),i&&this.notifyTarget(o,"mouseenter"),o.target=o.target.parent;n.overTargets=r.composedPath(),this.freeEvent(r),this.freeEvent(o)}mapPointerOut(t){if(!(t instanceof il)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId);if(n.overTargets){const r=t.pointerType==="mouse"||t.pointerType==="pen",i=this.findMountedTarget(n.overTargets),o=this.createPointerEvent(t,"pointerout",i);this.dispatchEvent(o),r&&this.dispatchEvent(o,"mouseout");const s=this.createPointerEvent(t,"pointerleave",i);for(s.eventPhase=s.AT_TARGET;s.target&&s.target!==this.rootTarget.parent;)s.currentTarget=s.target,this.notifyTarget(s),r&&this.notifyTarget(s,"mouseleave"),s.target=s.target.parent;n.overTargets=null,this.freeEvent(o),this.freeEvent(s)}this.cursor=null}mapPointerUp(t){if(!(t instanceof il)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=performance.now(),r=this.createPointerEvent(t);if(this.dispatchEvent(r,"pointerup"),r.pointerType==="touch")this.dispatchEvent(r,"touchend");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const a=r.button===2;this.dispatchEvent(r,a?"rightup":"mouseup")}const i=this.trackingData(t.pointerId),o=this.findMountedTarget(i.pressTargetsByButton[t.button]);let s=o;if(o&&!r.composedPath().includes(o)){let a=o;for(;a&&!r.composedPath().includes(a);){if(r.currentTarget=a,this.notifyTarget(r,"pointerupoutside"),r.pointerType==="touch")this.notifyTarget(r,"touchendoutside");else if(r.pointerType==="mouse"||r.pointerType==="pen"){const c=r.button===2;this.notifyTarget(r,c?"rightupoutside":"mouseupoutside")}a=a.parent}delete i.pressTargetsByButton[t.button],s=a}if(s){const a=this.clonePointerEvent(r,"click");a.target=s,a.path=null,i.clicksByButton[t.button]||(i.clicksByButton[t.button]={clickCount:0,target:a.target,timeStamp:n});const c=i.clicksByButton[t.button];if(c.target===a.target&&n-c.timeStamp<200?++c.clickCount:c.clickCount=1,c.target=a.target,c.timeStamp=n,a.detail=c.clickCount,a.pointerType==="mouse"){const u=a.button===2;this.dispatchEvent(a,u?"rightclick":"click")}else a.pointerType==="touch"&&this.dispatchEvent(a,"tap");this.dispatchEvent(a,"pointertap"),this.freeEvent(a)}this.freeEvent(r)}mapPointerUpOutside(t){if(!(t instanceof il)){console.warn("EventBoundary cannot map a non-pointer event as a pointer event");return}const n=this.trackingData(t.pointerId),r=this.findMountedTarget(n.pressTargetsByButton[t.button]),i=this.createPointerEvent(t);if(r){let o=r;for(;o;)i.currentTarget=o,this.notifyTarget(i,"pointerupoutside"),i.pointerType==="touch"?this.notifyTarget(i,"touchendoutside"):(i.pointerType==="mouse"||i.pointerType==="pen")&&this.notifyTarget(i,i.button===2?"rightupoutside":"mouseupoutside"),o=o.parent;delete n.pressTargetsByButton[t.button]}this.freeEvent(i)}mapWheel(t){if(!(t instanceof dv)){console.warn("EventBoundary cannot map a non-wheel event as a wheel event");return}const n=this.createWheelEvent(t);this.dispatchEvent(n),this.freeEvent(n)}findMountedTarget(t){if(!t)return null;let n=t[0];for(let r=1;r(n==="globalMove"&&(this.rootBoundary.enableGlobalMoveEvents=r),t[n]=r,!0)}),this.onPointerDown=this.onPointerDown.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOverOut=this.onPointerOverOut.bind(this),this.onWheel=this.onWheel.bind(this)}static get defaultEventMode(){return this._defaultEventMode}init(e){const{view:t,resolution:n}=this.renderer;this.setTargetElement(t),this.resolution=n,M5._defaultEventMode=e.eventMode??"auto",Object.assign(this.features,e.eventFeatures??{}),this.rootBoundary.enableGlobalMoveEvents=this.features.globalMove}resolutionChange(e){this.resolution=e}destroy(){this.setTargetElement(null),this.renderer=null}setCursor(e){e=e||"default";let t=!0;if(globalThis.OffscreenCanvas&&this.domElement instanceof OffscreenCanvas&&(t=!1),this.currentCursor===e)return;this.currentCursor=e;const n=this.cursorStyles[e];if(n)switch(typeof n){case"string":t&&(this.domElement.style.cursor=n);break;case"function":n(e);break;case"object":t&&Object.assign(this.domElement.style,n);break}else t&&typeof e=="string"&&!Object.prototype.hasOwnProperty.call(this.cursorStyles,e)&&(this.domElement.style.cursor=e)}get pointer(){return this.rootPointerEvent}onPointerDown(e){if(!this.features.click||(this.rootBoundary.rootTarget=this.renderer.lastObjectRendered,this.supportsTouchEvents&&e.pointerType==="touch"))return;const t=this.normalizeToPointerData(e);this.autoPreventDefault&&t[0].isNormalized&&(e.cancelable||!("cancelable"in e))&&e.preventDefault();for(let n=0,r=t.length;n0&&(t=e.composedPath()[0]);const n=t!==this.domElement?"outside":"",r=this.normalizeToPointerData(e);for(let i=0,o=r.length;i"u"&&(i.button=0),typeof i.buttons>"u"&&(i.buttons=1),typeof i.isPrimary>"u"&&(i.isPrimary=e.touches.length===1&&e.type==="touchstart"),typeof i.width>"u"&&(i.width=i.radiusX||1),typeof i.height>"u"&&(i.height=i.radiusY||1),typeof i.tiltX>"u"&&(i.tiltX=0),typeof i.tiltY>"u"&&(i.tiltY=0),typeof i.pointerType>"u"&&(i.pointerType="touch"),typeof i.pointerId>"u"&&(i.pointerId=i.identifier||0),typeof i.pressure>"u"&&(i.pressure=i.force||.5),typeof i.twist>"u"&&(i.twist=0),typeof i.tangentialPressure>"u"&&(i.tangentialPressure=0),typeof i.layerX>"u"&&(i.layerX=i.offsetX=i.clientX),typeof i.layerY>"u"&&(i.layerY=i.offsetY=i.clientY),i.isNormalized=!0,i.type=e.type,t.push(i)}else if(!globalThis.MouseEvent||e instanceof MouseEvent&&(!this.supportsPointerEvents||!(e instanceof globalThis.PointerEvent))){const n=e;typeof n.isPrimary>"u"&&(n.isPrimary=!0),typeof n.width>"u"&&(n.width=1),typeof n.height>"u"&&(n.height=1),typeof n.tiltX>"u"&&(n.tiltX=0),typeof n.tiltY>"u"&&(n.tiltY=0),typeof n.pointerType>"u"&&(n.pointerType="mouse"),typeof n.pointerId>"u"&&(n.pointerId=_Ue),typeof n.pressure>"u"&&(n.pressure=.5),typeof n.twist>"u"&&(n.twist=0),typeof n.tangentialPressure>"u"&&(n.tangentialPressure=0),n.isNormalized=!0,t.push(n)}else t.push(e);return t}normalizeWheelEvent(e){const t=this.rootWheelEvent;return this.transferMouseData(t,e),t.deltaX=e.deltaX,t.deltaY=e.deltaY,t.deltaZ=e.deltaZ,t.deltaMode=e.deltaMode,this.mapPositionToPoint(t.screen,e.clientX,e.clientY),t.global.copyFrom(t.screen),t.offset.copyFrom(t.screen),t.nativeEvent=e,t.type=e.type,t}bootstrapEvent(e,t){return e.originalEvent=null,e.nativeEvent=t,e.pointerId=t.pointerId,e.width=t.width,e.height=t.height,e.isPrimary=t.isPrimary,e.pointerType=t.pointerType,e.pressure=t.pressure,e.tangentialPressure=t.tangentialPressure,e.tiltX=t.tiltX,e.tiltY=t.tiltY,e.twist=t.twist,this.transferMouseData(e,t),this.mapPositionToPoint(e.screen,t.clientX,t.clientY),e.global.copyFrom(e.screen),e.offset.copyFrom(e.screen),e.isTrusted=t.isTrusted,e.type==="pointerleave"&&(e.type="pointerout"),e.type.startsWith("mouse")&&(e.type=e.type.replace("mouse","pointer")),e.type.startsWith("touch")&&(e.type=SUe[e.type]||e.type),e}transferMouseData(e,t){e.isTrusted=t.isTrusted,e.srcElement=t.srcElement,e.timeStamp=performance.now(),e.type=t.type,e.altKey=t.altKey,e.button=t.button,e.buttons=t.buttons,e.client.x=t.clientX,e.client.y=t.clientY,e.ctrlKey=t.ctrlKey,e.metaKey=t.metaKey,e.movement.x=t.movementX,e.movement.y=t.movementY,e.page.x=t.pageX,e.page.y=t.pageY,e.relatedTarget=null,e.shiftKey=t.shiftKey}};let iw=M5;iw.extension={name:"events",type:[ot.RendererSystem,ot.CanvasRendererSystem]};iw.defaultEventFeatures={move:!0,globalMove:!0,click:!0,wheel:!0};wt.add(iw);function vV(e){return e==="dynamic"||e==="static"}const EUe={onclick:null,onmousedown:null,onmouseenter:null,onmouseleave:null,onmousemove:null,onglobalmousemove:null,onmouseout:null,onmouseover:null,onmouseup:null,onmouseupoutside:null,onpointercancel:null,onpointerdown:null,onpointerenter:null,onpointerleave:null,onpointermove:null,onglobalpointermove:null,onpointerout:null,onpointerover:null,onpointertap:null,onpointerup:null,onpointerupoutside:null,onrightclick:null,onrightdown:null,onrightup:null,onrightupoutside:null,ontap:null,ontouchcancel:null,ontouchend:null,ontouchendoutside:null,ontouchmove:null,onglobaltouchmove:null,ontouchstart:null,onwheel:null,_internalInteractive:void 0,get interactive(){return this._internalInteractive??vV(iw.defaultEventMode)},set interactive(e){fn("7.2.0","Setting interactive is deprecated, use eventMode = 'none'/'passive'/'auto'/'static'/'dynamic' instead."),this._internalInteractive=e,this.eventMode=e?"static":"auto"},_internalEventMode:void 0,get eventMode(){return this._internalEventMode??iw.defaultEventMode},set eventMode(e){this._internalInteractive=vV(e),this._internalEventMode=e},isInteractive(){return this.eventMode==="static"||this.eventMode==="dynamic"},interactiveChildren:!0,hitArea:null,addEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.on(e,t,i)},removeEventListener(e,t,n){const r=typeof n=="boolean"&&n||typeof n=="object"&&n.capture,i=typeof t=="function"?void 0:t;e=r?`${e}capture`:e,t=typeof t=="function"?t:t.handleEvent,this.off(e,t,i)},dispatchEvent(e){if(!(e instanceof Jw))throw new Error("DisplayObject cannot propagate events outside of the Federated Events API");return e.defaultPrevented=!1,e.path=null,e.target=this,e.manager.dispatchEvent(e),!e.defaultPrevented}};Ur.mixin(EUe);const CUe={accessible:!1,accessibleTitle:null,accessibleHint:null,tabIndex:0,_accessibleActive:!1,_accessibleDiv:null,accessibleType:"button",accessiblePointerEvents:"auto",accessibleChildren:!0,renderId:-1};Ur.mixin(CUe);const TUe=9,kS=100,kUe=0,AUe=0,yV=2,bV=1,IUe=-1e3,RUe=-1e3,PUe=2;class jre{constructor(t){this.debug=!1,this._isActive=!1,this._isMobileAccessibility=!1,this.pool=[],this.renderId=0,this.children=[],this.androidUpdateCount=0,this.androidUpdateFrequency=500,this._hookDiv=null,(Iu.tablet||Iu.phone)&&this.createTouchHook();const n=document.createElement("div");n.style.width=`${kS}px`,n.style.height=`${kS}px`,n.style.position="absolute",n.style.top=`${kUe}px`,n.style.left=`${AUe}px`,n.style.zIndex=yV.toString(),this.div=n,this.renderer=t,this._onKeyDown=this._onKeyDown.bind(this),this._onMouseMove=this._onMouseMove.bind(this),globalThis.addEventListener("keydown",this._onKeyDown,!1)}get isActive(){return this._isActive}get isMobileAccessibility(){return this._isMobileAccessibility}createTouchHook(){const t=document.createElement("button");t.style.width=`${bV}px`,t.style.height=`${bV}px`,t.style.position="absolute",t.style.top=`${IUe}px`,t.style.left=`${RUe}px`,t.style.zIndex=PUe.toString(),t.style.backgroundColor="#FF0000",t.title="select to enable accessibility for this content",t.addEventListener("focus",()=>{this._isMobileAccessibility=!0,this.activate(),this.destroyTouchHook()}),document.body.appendChild(t),this._hookDiv=t}destroyTouchHook(){this._hookDiv&&(document.body.removeChild(this._hookDiv),this._hookDiv=null)}activate(){var t;this._isActive||(this._isActive=!0,globalThis.document.addEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown,!1),this.renderer.on("postrender",this.update,this),(t=this.renderer.view.parentNode)==null||t.appendChild(this.div))}deactivate(){var t;!this._isActive||this._isMobileAccessibility||(this._isActive=!1,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.addEventListener("keydown",this._onKeyDown,!1),this.renderer.off("postrender",this.update),(t=this.div.parentNode)==null||t.removeChild(this.div))}updateAccessibleObjects(t){if(!t.visible||!t.accessibleChildren)return;t.accessible&&t.isInteractive()&&(t._accessibleActive||this.addChild(t),t.renderId=this.renderId);const n=t.children;if(n)for(let r=0;r title : ${t.title}
tabIndex: ${t.tabIndex}`}capHitArea(t){t.x<0&&(t.width+=t.x,t.x=0),t.y<0&&(t.height+=t.y,t.y=0);const{width:n,height:r}=this.renderer;t.x+t.width>n&&(t.width=n-t.x),t.y+t.height>r&&(t.height=r-t.y)}addChild(t){let n=this.pool.pop();n||(n=document.createElement("button"),n.style.width=`${kS}px`,n.style.height=`${kS}px`,n.style.backgroundColor=this.debug?"rgba(255,255,255,0.5)":"transparent",n.style.position="absolute",n.style.zIndex=yV.toString(),n.style.borderStyle="none",navigator.userAgent.toLowerCase().includes("chrome")?n.setAttribute("aria-live","off"):n.setAttribute("aria-live","polite"),navigator.userAgent.match(/rv:.*Gecko\//)?n.setAttribute("aria-relevant","additions"):n.setAttribute("aria-relevant","text"),n.addEventListener("click",this._onClick.bind(this)),n.addEventListener("focus",this._onFocus.bind(this)),n.addEventListener("focusout",this._onFocusOut.bind(this))),n.style.pointerEvents=t.accessiblePointerEvents,n.type=t.accessibleType,t.accessibleTitle&&t.accessibleTitle!==null?n.title=t.accessibleTitle:(!t.accessibleHint||t.accessibleHint===null)&&(n.title=`displayObject ${t.tabIndex}`),t.accessibleHint&&t.accessibleHint!==null&&n.setAttribute("aria-label",t.accessibleHint),this.debug&&this.updateDebugHTML(n),t._accessibleActive=!0,t._accessibleDiv=n,n.displayObject=t,this.children.push(t),this.div.appendChild(t._accessibleDiv),t._accessibleDiv.tabIndex=t.tabIndex}_dispatchEvent(t,n){const{displayObject:r}=t.target,i=this.renderer.events.rootBoundary,o=Object.assign(new Jw(i),{target:r});i.rootTarget=this.renderer.lastObjectRendered,n.forEach(s=>i.dispatchEvent(o,s))}_onClick(t){this._dispatchEvent(t,["click","pointertap","tap"])}_onFocus(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","assertive"),this._dispatchEvent(t,["mouseover"])}_onFocusOut(t){t.target.getAttribute("aria-live")||t.target.setAttribute("aria-live","polite"),this._dispatchEvent(t,["mouseout"])}_onKeyDown(t){t.keyCode===TUe&&this.activate()}_onMouseMove(t){t.movementX===0&&t.movementY===0||this.deactivate()}destroy(){this.destroyTouchHook(),this.div=null,globalThis.document.removeEventListener("mousemove",this._onMouseMove,!0),globalThis.removeEventListener("keydown",this._onKeyDown),this.pool=null,this.children=null,this.renderer=null}}jre.extension={name:"accessibility",type:[ot.RendererPlugin,ot.CanvasRendererPlugin]};wt.add(jre);const D5=class{constructor(e){this.stage=new us,e=Object.assign({forceCanvas:!1},e),this.renderer=fje(e),D5._plugins.forEach(t=>{t.init.call(this,e)})}render(){this.renderer.render(this.stage)}get view(){return this.renderer.view}get screen(){return this.renderer.screen}destroy(e,t){const n=D5._plugins.slice(0);n.reverse(),n.forEach(r=>{r.destroy.call(this)}),this.stage.destroy(t),this.stage=null,this.renderer.destroy(e),this.renderer=null}};let AU=D5;AU._plugins=[];wt.handleByList(ot.Application,AU._plugins);class Ure{static init(t){Object.defineProperty(this,"resizeTo",{set(n){globalThis.removeEventListener("resize",this.queueResize),this._resizeTo=n,n&&(globalThis.addEventListener("resize",this.queueResize),this.resize())},get(){return this._resizeTo}}),this.queueResize=()=>{this._resizeTo&&(this.cancelResize(),this._resizeId=requestAnimationFrame(()=>this.resize()))},this.cancelResize=()=>{this._resizeId&&(cancelAnimationFrame(this._resizeId),this._resizeId=null)},this.resize=()=>{if(!this._resizeTo)return;this.cancelResize();let n,r;if(this._resizeTo===globalThis.window)n=globalThis.innerWidth,r=globalThis.innerHeight;else{const{clientWidth:i,clientHeight:o}=this._resizeTo;n=i,r=o}this.renderer.resize(n,r),this.render()},this._resizeId=null,this._resizeTo=null,this.resizeTo=t.resizeTo||null}static destroy(){globalThis.removeEventListener("resize",this.queueResize),this.cancelResize(),this.cancelResize=null,this.queueResize=null,this.resizeTo=null,this.resize=null}}Ure.extension=ot.Application;wt.add(Ure);const xV={loader:ot.LoadParser,resolver:ot.ResolveParser,cache:ot.CacheParser,detection:ot.DetectionParser};wt.handle(ot.Asset,e=>{const t=e.ref;Object.entries(xV).filter(([n])=>!!t[n]).forEach(([n,r])=>wt.add(Object.assign(t[n],{extension:t[n].extension??r})))},e=>{const t=e.ref;Object.keys(xV).filter(n=>!!t[n]).forEach(n=>wt.remove(t[n]))});class OUe{constructor(t,n=!1){this._loader=t,this._assetList=[],this._isLoading=!1,this._maxConcurrent=1,this.verbose=n}add(t){t.forEach(n=>{this._assetList.push(n)}),this.verbose&&console.log("[BackgroundLoader] assets: ",this._assetList),this._isActive&&!this._isLoading&&this._next()}async _next(){if(this._assetList.length&&this._isActive){this._isLoading=!0;const t=[],n=Math.min(this._assetList.length,this._maxConcurrent);for(let r=0;r(Array.isArray(e)||(e=[e]),t?e.map(n=>typeof n=="string"?t(n):n):e),L5=(e,t)=>{const n=t.split("?")[1];return n&&(e+=`?${n}`),e};function Hre(e,t,n,r,i){const o=t[n];for(let s=0;s{const s=o.substring(1,o.length-1).split(",");i.push(s)}),Hre(e,i,0,n,r)}else r.push(e);return r}const sT=e=>!Array.isArray(e);class DUe{constructor(){this._parsers=[],this._cache=new Map,this._cacheMap=new Map}reset(){this._cacheMap.clear(),this._cache.clear()}has(t){return this._cache.has(t)}get(t){const n=this._cache.get(t);return n||console.warn(`[Assets] Asset id ${t} was not found in the Cache`),n}set(t,n){const r=Lu(t);let i;for(let a=0;a{i[a]=n}));const o=Object.keys(i),s={cacheKeys:o,keys:r};if(r.forEach(a=>{this._cacheMap.set(a,s)}),o.forEach(a=>{this._cache.has(a)&&this._cache.get(a)!==n&&console.warn("[Cache] already has key:",a),this._cache.set(a,i[a])}),n instanceof mt){const a=n;r.forEach(c=>{a.baseTexture!==mt.EMPTY.baseTexture&&qt.addToCache(a.baseTexture,c),mt.addToCache(a,c)})}}remove(t){if(this._cacheMap.get(t),!this._cacheMap.has(t)){console.warn(`[Assets] Asset id ${t} was not found in the Cache`);return}const n=this._cacheMap.get(t);n.cacheKeys.forEach(i=>{this._cache.delete(i)}),n.keys.forEach(i=>{this._cacheMap.delete(i)})}get parsers(){return this._parsers}}const Yb=new DUe;class LUe{constructor(){this._parsers=[],this._parsersValidated=!1,this.parsers=new Proxy(this._parsers,{set:(t,n,r)=>(this._parsersValidated=!1,t[n]=r,!0)}),this.promiseCache={}}reset(){this._parsersValidated=!1,this.promiseCache={}}_getLoadPromiseAndParser(t,n){const r={promise:null,parser:null};return r.promise=(async()=>{var s,a;let i=null,o=null;if(n.loadParser&&(o=this._parserHash[n.loadParser],o||console.warn(`[Assets] specified load parser "${n.loadParser}" not found while loading ${t}`)),!o){for(let c=0;c({src:u})),a=s.length,c=s.map(async u=>{const f=vo.toAbsolute(u.src);if(!i[u.src])try{this.promiseCache[f]||(this.promiseCache[f]=this._getLoadPromiseAndParser(f,u)),i[u.src]=await this.promiseCache[f].promise,n&&n(++r/a)}catch(h){throw delete this.promiseCache[f],delete i[u.src],new Error(`[Loader.load] Failed to load ${f}. +${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu(t,i=>({src:i})).map(async i=>{var a,c;const o=vo.toAbsolute(i.src),s=this.promiseCache[o];if(s){const u=await s.promise;(c=(a=s.parser)==null?void 0:a.unload)==null||c.call(a,u,i,this),delete this.promiseCache[o]}});await Promise.all(r)}_validateParsers(){this._parsersValidated=!0,this._parserHash=this._parsers.filter(t=>t.name).reduce((t,n)=>(t[n.name]&&console.warn(`[Assets] loadParser name conflict "${n.name}"`),{...t,[n.name]:n}),{})}}var xc=(e=>(e[e.Low=0]="Low",e[e.Normal=1]="Normal",e[e.High=2]="High",e))(xc||{});const NUe=".json",BUe="application/json",$Ue={extension:{type:ot.LoadParser,priority:xc.Low},name:"loadJson",test(e){return Zw(e,BUe)||pm(e,NUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).json()}};wt.add($Ue);const FUe=".txt",zUe="text/plain",jUe={name:"loadTxt",extension:{type:ot.LoadParser,priority:xc.Low},test(e){return Zw(e,zUe)||pm(e,FUe)},async load(e){return await(await nt.ADAPTER.fetch(e)).text()}};wt.add(jUe);const UUe=["normal","bold","100","200","300","400","500","600","700","800","900"],HUe=[".ttf",".otf",".woff",".woff2"],WUe=["font/ttf","font/otf","font/woff","font/woff2"],GUe=/^(--|-?[A-Z_])[0-9A-Z_-]*$/i;function VUe(e){const t=vo.extname(e),i=vo.basename(e,t).replace(/(-|_)/g," ").toLowerCase().split(" ").map(a=>a.charAt(0).toUpperCase()+a.slice(1));let o=i.length>0;for(const a of i)if(!a.match(GUe)){o=!1;break}let s=i.join(" ");return o||(s=`"${s.replace(/[\\"]/g,"\\$&")}"`),s}const qUe={extension:{type:ot.LoadParser,priority:xc.Low},name:"loadWebFont",test(e){return Zw(e,WUe)||pm(e,HUe)},async load(e,t){var r,i,o;const n=nt.ADAPTER.getFontFaceSet();if(n){const s=[],a=((r=t.data)==null?void 0:r.family)??VUe(e),c=((o=(i=t.data)==null?void 0:i.weights)==null?void 0:o.filter(f=>UUe.includes(f)))??["normal"],u=t.data??{};for(let f=0;fnt.ADAPTER.getFontFaceSet().delete(t))}};wt.add(qUe);let wV=0,s$;const XUe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO+ip1sAAAAASUVORK5CYII=",YUe={id:"checkImageBitmap",code:` async function checkImageBitmap() { try { if (typeof createImageBitmap !== 'function') return false; - const response = await fetch('${UUe}'); + const response = await fetch('${XUe}'); const imageBlob = await response.blob(); const imageBitmap = await createImageBitmap(imageBlob); @@ -1571,7 +1571,7 @@ ${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu } } checkImageBitmap().then((result) => { self.postMessage(result); }); - `},WUe={id:"loadImageBitmap",code:` + `},KUe={id:"loadImageBitmap",code:` async function loadImageBitmap(url) { const response = await fetch(url); @@ -1607,7 +1607,7 @@ ${h}`)}});return await Promise.all(c),o?i[s[0].src]:i}async unload(t){const r=Lu id: event.data.id, }); } - };`};let o$;class GUe{constructor(){this._initialized=!1,this._createdWorkers=0,this.workerPool=[],this.queue=[],this.resolveHash={}}isImageBitmapSupported(){return this._isImageBitmapSupported!==void 0?this._isImageBitmapSupported:(this._isImageBitmapSupported=new Promise(t=>{const n=URL.createObjectURL(new Blob([HUe.code],{type:"application/javascript"})),r=new Worker(n);r.addEventListener("message",i=>{r.terminate(),URL.revokeObjectURL(n),t(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){i$===void 0&&(i$=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers{this.complete(n.data),this.returnWorker(n.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,n){await this._initWorkers();const r=new Promise((i,o)=>{this.queue.push({id:t,arguments:n,resolve:i,reject:o})});return this.next(),r}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const n=this.queue.pop(),r=n.id;this.resolveHash[yV]={resolve:n.resolve,reject:n.reject},t.postMessage({data:n.arguments,uuid:yV++,id:r})}}const bV=new GUe;function DA(e,t,n){const r=new mt(e);return r.baseTexture.on("dispose",()=>{delete t.promiseCache[n]}),r}const VUe=[".jpeg",".jpg",".png",".webp",".avif"],qUe=["image/jpeg","image/png","image/webp","image/avif"];async function XUe(e){const t=await nt.ADAPTER.fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=await t.blob();return await createImageBitmap(n)}const NA={name:"loadTextures",extension:{type:ot.LoadParser,priority:bc.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(e){return Jw(e,qUe)||hm(e,VUe)},async load(e,t,n){let r=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await bV.isImageBitmapSupported()?r=await bV.loadImageBitmap(e):r=await XUe(e):r=await new Promise(o=>{r=new Image,r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?o(r):r.onload=()=>{o(r)}});const i=new Vt(r,{resolution:sf(e),...t.data});return i.resource.src=e,DA(i,n,e)},unload(e){e.destroy(!0)}};wt.add(NA);const YUe=".svg",KUe="image/svg+xml",QUe={extension:{type:ot.LoadParser,priority:bc.High},name:"loadSVG",test(e){return Jw(e,KUe)||hm(e,YUe)},async testParse(e){return tw.test(e)},async parse(e,t,n){var s;const r=new tw(e,(s=t==null?void 0:t.data)==null?void 0:s.resourceOptions);await r.load();const i=new Vt(r,{resolution:sf(e),...t==null?void 0:t.data});return i.resource.src=e,DA(i,n,e)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload:NA.unload};wt.add(QUe);class JUe{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,n)=>`${t}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(t,n)=>n.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else{const n=t;this._defaultSearchParams=Object.keys(n).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`).join("&")}}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(t,n){const r=[];Array.isArray(n)?n.forEach(i=>{if(typeof i.name=="string"){const o=this._createBundleAssetId(t,i.name);r.push(o),this.add([i.name,o],i.srcs,i.data)}else{const o=i.name.map(s=>this._createBundleAssetId(t,s));o.forEach(s=>{r.push(s)}),this.add([...i.name,...o],i.srcs)}}):Object.keys(n).forEach(i=>{r.push(this._createBundleAssetId(t,i)),this.add([i,this._createBundleAssetId(t,i)],n[i])}),this._bundles[t]=r}add(t,n,r){const i=Lu(t);i.forEach(s=>{this.hasKey(s)&&console.warn(`[Resolver] already has key: ${s} overwriting`)}),Array.isArray(n)||(typeof n=="string"?n=kUe(n):n=[n]);const o=n.map(s=>{let a=s;if(typeof s=="string"){let c=!1;for(let u=0;u{this._assetMap[s]=o})}resolveBundle(t){const n=oT(t);t=Lu(t);const r={};return t.forEach(i=>{const o=this._bundles[i];if(o){const s=this.resolve(o),a={};for(const c in s){const u=s[c];a[this._extractAssetIdFromBundle(i,c)]=u}r[i]=a}}),n?r[t[0]]:r}resolveUrl(t){const n=this.resolve(t);if(typeof t!="string"){const r={};for(const i in n)r[i]=n[i].src;return r}return n.src}resolve(t){const n=oT(t);t=Lu(t);const r={};return t.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let o=this._assetMap[i];const s=this._getPreferredOrder(o),a=o[0];s==null||s.priority.forEach(c=>{s.params[c].forEach(u=>{const f=o.filter(h=>h[c]?h[c]===u:!1);f.length&&(o=f)})}),this._resolverHash[i]=o[0]??a}else{let o=i;(this._basePath||this._rootPath)&&(o=vo.toAbsolute(o,this._basePath,this._rootPath)),o=this._appendDefaultSearchParams(o),this._resolverHash[i]={src:o}}r[i]=this._resolverHash[i]}),n?r[t[0]]:r}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let n=0;no.params.format.includes(r.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const n=/\?/.test(t)?"&":"?";return`${t}${n}${this._defaultSearchParams}`}}class ZUe{constructor(){this._detections=[],this._initialized=!1,this.resolver=new JUe,this.loader=new IUe,this.cache=qb,this._backgroundLoader=new TUe(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var o,s,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let c=t.manifest;typeof c=="string"&&(c=await this.load(c)),this.resolver.addManifest(c)}const n=((o=t.texturePreference)==null?void 0:o.resolution)??1,r=typeof n=="number"?[n]:n;let i=[];if((s=t.texturePreference)!=null&&s.format){const c=(a=t.texturePreference)==null?void 0:a.format;i=typeof c=="string"?[c]:c;for(const u of this._detections)await u.test()||(i=await u.remove(i))}else for(const c of this._detections)await c.test()&&(i=await c.add(i));this.resolver.prefer({params:{format:i,resolution:r}}),t.preferences&&this.setPreferences(t.preferences)}add(t,n,r){this.resolver.add(t,n,r)}async load(t,n){this._initialized||await this.init();const r=oT(t),i=Lu(t).map(a=>typeof a!="string"?(this.resolver.add(a.src,a),a.src):(this.resolver.hasKey(a)||this.resolver.add(a,a),a)),o=this.resolver.resolve(i),s=await this._mapLoadToResolve(o,n);return r?s[i[0]]:s}addBundle(t,n){this.resolver.addBundle(t,n)}async loadBundle(t,n){this._initialized||await this.init();let r=!1;typeof t=="string"&&(r=!0,t=[t]);const i=this.resolver.resolveBundle(t),o={},s=Object.keys(i);let a=0,c=0;const u=()=>{n==null||n(++a/c)},f=s.map(h=>{const p=i[h];return c+=Object.keys(p).length,this._mapLoadToResolve(p,u).then(g=>{o[h]=g})});return await Promise.all(f),r?o[t[0]]:o}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(n))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolveBundle(t);Object.values(n).forEach(r=>{this._backgroundLoader.add(Object.values(r))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return qb.get(t);const n={};for(let r=0;r{const u=o[a.src],f=[a.src];a.alias&&f.push(...a.alias),s[i[c]]=u,qb.set(f,u)}),s}async unload(t){this._initialized||await this.init();const n=Lu(t).map(i=>typeof i!="string"?i.src:i),r=this.resolver.resolve(n);await this._unloadFromResolved(r)}async unloadBundle(t){this._initialized||await this.init(),t=Lu(t);const n=this.resolver.resolveBundle(t),r=Object.keys(n).map(i=>this._unloadFromResolved(n[i]));await Promise.all(r)}async _unloadFromResolved(t){const n=Object.values(t);n.forEach(r=>{qb.remove(r.src)}),await this.loader.unload(n)}get detections(){return this._detections}get preferWorkers(){return NA.config.preferWorkers}set preferWorkers(t){fn("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}setPreferences(t){this.loader.parsers.forEach(n=>{n.config&&Object.keys(n.config).filter(r=>r in t).forEach(r=>{n.config[r]=t[r]})})}}const kS=new ZUe;wt.handleByList(ot.LoadParser,kS.loader.parsers).handleByList(ot.ResolveParser,kS.resolver.parsers).handleByList(ot.CacheParser,kS.cache.parsers).handleByList(ot.DetectionParser,kS.detections);const e6e={extension:ot.CacheParser,test:e=>Array.isArray(e)&&e.every(t=>t instanceof mt),getCacheableAssets:(e,t)=>{const n={};return e.forEach(r=>{t.forEach((i,o)=>{n[r+(o===0?"":o+1)]=i})}),n}};wt.add(e6e);const t6e={extension:{type:ot.DetectionParser,priority:1},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"avif"],remove:async e=>e.filter(t=>t!=="avif")};wt.add(t6e);const n6e={extension:{type:ot.DetectionParser,priority:0},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"webp"],remove:async e=>e.filter(t=>t!=="webp")};wt.add(n6e);const xV=["png","jpg","jpeg"],r6e={extension:{type:ot.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...xV],remove:async e=>e.filter(t=>!xV.includes(t))};wt.add(r6e);const i6e={extension:ot.ResolveParser,test:NA.test,parse:e=>{var t;return{resolution:parseFloat(((t=nt.RETINA_PREFIX.exec(e))==null?void 0:t[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(i6e);var Ls=(e=>(e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",e))(Ls||{});const sT={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,37490:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35986:1,34798:1,37808:1};let vu,$m;function wV(){$m={s3tc:vu.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:vu.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:vu.getExtension("WEBGL_compressed_texture_etc"),etc1:vu.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:vu.getExtension("WEBGL_compressed_texture_pvrtc")||vu.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:vu.getExtension("WEBGL_compressed_texture_atc"),astc:vu.getExtension("WEBGL_compressed_texture_astc")}}const o6e={extension:{type:ot.DetectionParser,priority:2},test:async()=>{const t=nt.ADAPTER.createCanvas().getContext("webgl");return t?(vu=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async e=>{$m||wV();const t=[];for(const n in $m)$m[n]&&t.push(n);return[...t,...e]},remove:async e=>($m||wV(),e.filter(t=>!(t in $m)))};wt.add(o6e);class s6e extends Kw{constructor(t,n={width:1,height:1,autoLoad:!0}){let r,i;typeof t=="string"?(r=t,i=new Uint8Array):(r=null,i=t),super(i,n),this.origin=r,this.buffer=i?new y5(i):null,this._load=null,this.loaded=!1,this.origin!==null&&n.autoLoad!==!1&&this.load(),this.origin===null&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load?this._load:(this._load=fetch(this.origin).then(t=>t.blob()).then(t=>t.arrayBuffer()).then(t=>(this.data=new Uint32Array(t),this.buffer=new y5(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)),this._load)}}class Ip extends s6e{constructor(t,n){super(t,n),this.format=n.format,this.levels=n.levels||1,this._width=n.width,this._height=n.height,this._extension=Ip._formatToExtension(this.format),(n.levelBuffers||this.buffer)&&(this._levelBuffers=n.levelBuffers||Ip._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,n,r){const i=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;for(let s=0,a=this.levels;s=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")}static _createLevelBuffers(t,n,r,i,o,s,a){const c=new Array(r);let u=t.byteOffset,f=s,h=a,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*sT[n];for(let y=0;y1?f:p,levelHeight:r>1?h:g,levelBuffer:new Uint8Array(t.buffer,u,v)},u+=v,f=f>>1||1,h=h>>1||1,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*sT[n];return c}}const s$=4,AS=124,a6e=32,_V=20,l6e=542327876,IS={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},c6e={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},RS={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},u6e=1,d6e=2,f6e=4,h6e=64,p6e=512,m6e=131072,g6e=827611204,v6e=861165636,y6e=894720068,b6e=808540228,x6e=4,w6e={[g6e]:Ls.COMPRESSED_RGBA_S3TC_DXT1_EXT,[v6e]:Ls.COMPRESSED_RGBA_S3TC_DXT3_EXT,[y6e]:Ls.COMPRESSED_RGBA_S3TC_DXT5_EXT},_6e={70:Ls.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:Ls.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:Ls.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:Ls.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:Ls.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:Ls.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:Ls.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:Ls.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:Ls.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT};function S6e(e){const t=new Uint32Array(e);if(t[0]!==l6e)throw new Error("Invalid DDS file magic word");const r=new Uint32Array(e,0,AS/Uint32Array.BYTES_PER_ELEMENT),i=r[IS.HEIGHT],o=r[IS.WIDTH],s=r[IS.MIPMAP_COUNT],a=new Uint32Array(e,IS.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,a6e/Uint32Array.BYTES_PER_ELEMENT),c=a[u6e];if(c&f6e){const u=a[c6e.FOURCC];if(u!==b6e){const x=w6e[u],E=s$+AS,I=new Uint8Array(e,E);return[new Ip(I,{format:x,width:o,height:i,levels:s})]}const f=s$+AS,h=new Uint32Array(t.buffer,f,_V/Uint32Array.BYTES_PER_ELEMENT),p=h[RS.DXGI_FORMAT],g=h[RS.RESOURCE_DIMENSION],v=h[RS.MISC_FLAG],y=h[RS.ARRAY_SIZE],S=_6e[p];if(S===void 0)throw new Error(`DDSParser cannot parse texture data with DXGI format ${p}`);if(v===x6e)throw new Error("DDSParser does not support cubemap textures");if(g===6)throw new Error("DDSParser does not supported 3D texture data");const w=new Array,b=s$+AS+_V;if(y===1)w.push(new Uint8Array(e,b));else{const x=sT[S];let E=0,I=o,A=i;for(let O=0;O>>1,A=A>>>1}let k=b;for(let O=0;Onew Ip(x,{format:S,width:o,height:i,levels:s}))}throw c&h6e?new Error("DDSParser does not support uncompressed texture data."):c&p6e?new Error("DDSParser does not supported YUV uncompressed texture data."):c&m6e?new Error("DDSParser does not support single-channel (lumninance) texture data!"):c&d6e?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}const SV=[171,75,84,88,32,49,49,187,13,10,26,10],E6e=67305985,el={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},M5=64,EV={[Ot.UNSIGNED_BYTE]:1,[Ot.UNSIGNED_SHORT]:2,[Ot.INT]:4,[Ot.UNSIGNED_INT]:4,[Ot.FLOAT]:4,[Ot.HALF_FLOAT]:8},C6e={[Ve.RGBA]:4,[Ve.RGB]:3,[Ve.RG]:2,[Ve.RED]:1,[Ve.LUMINANCE]:1,[Ve.LUMINANCE_ALPHA]:2,[Ve.ALPHA]:1},T6e={[Ot.UNSIGNED_SHORT_4_4_4_4]:2,[Ot.UNSIGNED_SHORT_5_5_5_1]:2,[Ot.UNSIGNED_SHORT_5_6_5]:2};function k6e(e,t,n=!1){const r=new DataView(t);if(!A6e(e,r))return null;const i=r.getUint32(el.ENDIANNESS,!0)===E6e,o=r.getUint32(el.GL_TYPE,i),s=r.getUint32(el.GL_FORMAT,i),a=r.getUint32(el.GL_INTERNAL_FORMAT,i),c=r.getUint32(el.PIXEL_WIDTH,i),u=r.getUint32(el.PIXEL_HEIGHT,i)||1,f=r.getUint32(el.PIXEL_DEPTH,i)||1,h=r.getUint32(el.NUMBER_OF_ARRAY_ELEMENTS,i)||1,p=r.getUint32(el.NUMBER_OF_FACES,i),g=r.getUint32(el.NUMBER_OF_MIPMAP_LEVELS,i),v=r.getUint32(el.BYTES_OF_KEY_VALUE_DATA,i);if(u===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(h!==1)throw new Error("WebGL does not support array textures");const y=4,S=4,w=c+3&-4,b=u+3&-4,x=new Array(h);let E=c*u;o===0&&(E=w*b);let I;if(o!==0?EV[o]?I=EV[o]*C6e[s]:I=T6e[o]:I=sT[a],I===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const A=n?R6e(r,v,i):null;let O=E*I,D=c,N=u,H=w,G=b,z=M5+v;for(let L=0;L1||o!==0?D:H,levelHeight:g>1||o!==0?N:G,levelBuffer:new Uint8Array(t,j,O)},j+=O}z+=F+4,z=z%4!==0?z+4-z%4:z,D=D>>1||1,N=N>>1||1,H=D+y-1&~(y-1),G=N+S-1&~(S-1),O=H*G*I}return o!==0?{uncompressed:x.map(L=>{let F=L[0].levelBuffer,j=!1;return o===Ot.FLOAT?F=new Float32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4):o===Ot.UNSIGNED_INT?(j=!0,F=new Uint32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4)):o===Ot.INT&&(j=!0,F=new Int32Array(L[0].levelBuffer.buffer,L[0].levelBuffer.byteOffset,L[0].levelBuffer.byteLength/4)),{resource:new Kw(F,{width:L[0].levelWidth,height:L[0].levelHeight}),type:o,format:j?I6e(s):s}}),kvData:A}:{compressed:x.map(L=>new Ip(null,{format:a,width:c,height:u,levels:g,levelBuffers:L})),kvData:A}}function A6e(e,t){for(let n=0;nt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let c=0;for(;c{const c=new Vt(a,{mipmap:fc.OFF,alphaMode:Ml.NO_PREMULTIPLIED_ALPHA,resolution:sf(e),...t.data});return DA(c,n,e)});return s.length===1?s[0]:s},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(P6e);const O6e={extension:{type:ot.LoadParser,priority:bc.High},name:"loadKTX",test(e){return hm(e,".ktx")},async load(e,t,n){const i=await(await nt.ADAPTER.fetch(e)).arrayBuffer(),{compressed:o,uncompressed:s,kvData:a}=k6e(e,i),c=o??s,u={mipmap:fc.OFF,alphaMode:Ml.NO_PREMULTIPLIED_ALPHA,resolution:sf(e),...t.data},f=c.map(h=>{c===s&&Object.assign(u,{type:h.type,format:h.format});const p=new Vt(h,u);return p.ktxKeyValueData=a,DA(p,n,e)});return f.length===1?f[0]:f},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(O6e);const M6e={extension:ot.ResolveParser,test:e=>{const n=e.split("?")[0].split(".").pop();return["basis","ktx","dds"].includes(n)},parse:e=>{var r,i;if(e.split("?")[0].split(".").pop()==="ktx"){const o=[".s3tc.ktx",".s3tc_sRGB.ktx",".etc.ktx",".etc1.ktx",".pvrt.ktx",".atc.ktx",".astc.ktx"];if(o.some(s=>e.endsWith(s)))return{resolution:parseFloat(((r=nt.RETINA_PREFIX.exec(e))==null?void 0:r[1])??"1"),format:o.find(s=>e.endsWith(s)),src:e}}return{resolution:parseFloat(((i=nt.RETINA_PREFIX.exec(e))==null?void 0:i[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(M6e);const L6e=new Zt,D6e=4,mx=class{constructor(e){this.renderer=e}async image(e,t,n){const r=new Image;return r.src=await this.base64(e,t,n),r}async base64(e,t,n){const r=this.canvas(e);if(r.toBlob!==void 0)return new Promise((i,o)=>{r.toBlob(s=>{if(!s){o(new Error("ICanvas.toBlob failed!"));return}const a=new FileReader;a.onload=()=>i(a.result),a.onerror=o,a.readAsDataURL(s)},t,n)});if(r.toDataURL!==void 0)return r.toDataURL(t,n);if(r.convertToBlob!==void 0){const i=await r.convertToBlob({type:t,quality:n});return new Promise((o,s)=>{const a=new FileReader;a.onload=()=>o(a.result),a.onerror=s,a.readAsDataURL(i)})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);o&&mx._flipY(n,r,i),mx._unpremultiplyAlpha(n);const s=new K4e(r,i,1),a=new ImageData(new Uint8ClampedArray(n.buffer),r,i);return s.context.putImageData(a,0,0),s.canvas}pixels(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);return o&&mx._flipY(n,r,i),mx._unpremultiplyAlpha(n),n}_rawPixels(e,t){const n=this.renderer;if(!n)throw new Error("The Extract has already been destroyed");let r,i=!1,o,s=!1;if(e&&(e instanceof dm?o=e:(o=n.generateTexture(e,{resolution:n.resolution,multisample:n.multisample}),s=!0)),o){if(r=o.baseTexture.resolution,t=t??o.frame,i=!1,!s){n.renderTexture.bind(o);const h=o.framebuffer.glFramebuffers[n.CONTEXT_UID];h.blitFramebuffer&&n.framebuffer.bind(h.blitFramebuffer)}}else r=n.resolution,t||(t=L6e,t.width=n.width/r,t.height=n.height/r),i=!0,n.renderTexture.bind();const a=Math.round(t.width*r),c=Math.round(t.height*r),u=new Uint8Array(D6e*a*c),f=n.gl;return f.readPixels(Math.round(t.x*r),Math.round(t.y*r),a,c,f.RGBA,f.UNSIGNED_BYTE,u),s&&(o==null||o.destroy(!0)),{pixels:u,width:a,height:c,flipY:i}}destroy(){this.renderer=null}static _flipY(e,t,n){const r=t<<2,i=n>>1,o=new Uint8Array(r);for(let s=0;s=0&&a>=0&&i>=0&&o>=0)){t.length=0;return}const c=Math.ceil(2.3*Math.sqrt(s+a)),u=c*8+(i?4:0)+(o?4:0);if(t.length=u,u===0)return;if(c===0){t.length=8,t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o;return}let f=0,h=c*4+(i?2:0)+2,p=h,g=u;{const v=i+s,y=o,S=n+v,w=n-v,b=r+y;if(t[f++]=S,t[f++]=b,t[--h]=b,t[--h]=w,o){const x=r-y;t[p++]=w,t[p++]=x,t[--g]=x,t[--g]=S}}for(let v=1;v0||t&&r<=0){const i=n/2;for(let o=i+i%2;o=6){CV(n,!1);const s=[];for(let u=0;u=0&&o>=0&&s.push(n,r,n+i,r,n+i,r+o,n,r+o)},triangulate(e,t){const n=e.points,r=t.points;if(n.length===0)return;const i=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},B6e={build(e){aT.build(e)},triangulate(e,t){aT.triangulate(e,t)}};var al=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(al||{}),vp=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(vp||{});const dv={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let n=Math.ceil(e/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}};class TV{static curveTo(t,n,r,i,o,s){const a=s[s.length-2],u=s[s.length-1]-n,f=a-t,h=i-n,p=r-t,g=Math.abs(u*p-f*h);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;const v=u*u+f*f,y=h*h+p*p,S=u*h+f*p,w=o*Math.sqrt(v)/g,b=o*Math.sqrt(y)/g,x=w*S/v,E=b*S/y,I=w*p+b*f,A=w*h+b*u,k=f*(b+x),O=u*(b+x),D=p*(w+E),N=h*(w+E),H=Math.atan2(O-A,k-I),G=Math.atan2(N-A,D-I);return{cx:I+t,cy:A+n,radius:o,startAngle:H,endAngle:G,anticlockwise:f*h>p*u}}static arc(t,n,r,i,o,s,a,c,u){const f=a-s,h=dv._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/nT)*40),p=f/(h*2),g=p*2,v=Math.cos(p),y=Math.sin(p),S=h-1,w=S%1/S;for(let b=0;b<=S;++b){const x=b+w*b,E=p+s+g*x,I=Math.cos(E),A=-Math.sin(E);u.push((v*I+y*A)*o+r,(v*-A+y*I)*o+i)}}}class $6e{constructor(){this.reset()}begin(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r}end(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class TU{static curveLength(t,n,r,i,o,s,a,c){let f=0,h=0,p=0,g=0,v=0,y=0,S=0,w=0,b=0,x=0,E=0,I=t,A=n;for(let k=1;k<=10;++k)h=k/10,p=h*h,g=p*h,v=1-h,y=v*v,S=y*v,w=S*t+3*y*h*r+3*v*p*o+g*a,b=S*n+3*y*h*i+3*v*p*s+g*c,x=I-w,E=A-b,I=w,A=b,f+=Math.sqrt(x*x+E*E);return f}static curveTo(t,n,r,i,o,s,a){const c=a[a.length-2],u=a[a.length-1];a.length-=2;const f=dv._segmentsCount(TU.curveLength(c,u,t,n,r,i,o,s));let h=0,p=0,g=0,v=0,y=0;a.push(c,u);for(let S=1,w=0;S<=f;++S)w=S/f,h=1-w,p=h*h,g=p*h,v=w*w,y=v*w,a.push(g*c+3*p*w*t+3*h*v*r+y*o,g*u+3*p*w*n+3*h*v*i+y*s)}}function kV(e,t,n,r,i,o,s,a){const c=e-n*i,u=t-r*i,f=e+n*o,h=t+r*o;let p,g;s?(p=r,g=-n):(p=-r,g=n);const v=c+p,y=u+g,S=f+p,w=h+g;return a.push(v,y,S,w),2}function Gh(e,t,n,r,i,o,s,a){const c=n-e,u=r-t;let f=Math.atan2(c,u),h=Math.atan2(i-e,o-t);a&&fh&&(h+=Math.PI*2);let p=f;const g=h-f,v=Math.abs(g),y=Math.sqrt(c*c+u*u),S=(15*v*Math.sqrt(y)/Math.PI>>0)+1,w=g/S;if(p+=w,a){s.push(e,t,n,r);for(let b=1,x=p;b=0&&(o.join===al.ROUND?p+=Gh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+4:p+=2,f.push(x-D*L,E-N*L,x+D*z,E+N*z));continue}const se=(-k+w)*(-O+E)-(-k+x)*(-O+b),J=(-D+I)*(-N+E)-(-D+x)*(-N+A),ae=(W*J-X*se)/ce,le=(Q*se-K*J)/ce,he=(ae-x)*(ae-x)+(le-E)*(le-E),pe=x+(ae-x)*z,ve=E+(le-E)*z,ye=x-(ae-x)*L,xe=E-(le-E)*L,me=Math.min(W*W+K*K,X*X+Q*Q),be=ue?z:L,Ze=me+be*be*y,Xe=he<=Ze;let ct=o.join;if(ct===al.MITER&&he/y>S&&(ct=al.BEVEL),Xe)switch(ct){case al.MITER:{f.push(pe,ve,ye,xe);break}case al.BEVEL:{ue?f.push(pe,ve,x+k*L,E+O*L,pe,ve,x+D*L,E+N*L):f.push(x-k*z,E-O*z,ye,xe,x-D*z,E-N*z,ye,xe),p+=2;break}case al.ROUND:{ue?(f.push(pe,ve,x+k*L,E+O*L),p+=Gh(x,E,x+k*L,E+O*L,x+D*L,E+N*L,f,!0)+4,f.push(pe,ve,x+D*L,E+N*L)):(f.push(x-k*z,E-O*z,ye,xe),p+=Gh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+4,f.push(x-D*z,E-N*z,ye,xe));break}}else{switch(f.push(x-k*z,E-O*z,x+k*L,E+O*L),ct){case al.MITER:{ue?f.push(ye,xe,ye,xe):f.push(pe,ve,pe,ve),p+=2;break}case al.ROUND:{ue?p+=Gh(x,E,x+k*L,E+O*L,x+D*L,E+N*L,f,!0)+2:p+=Gh(x,E,x-k*z,E-O*z,x-D*z,E-N*z,f,!1)+2;break}}f.push(x-D*z,E-N*z,x+D*L,E+N*L),p+=2}}w=r[(h-2)*2],b=r[(h-2)*2+1],x=r[(h-1)*2],E=r[(h-1)*2+1],k=-(b-E),O=w-x,H=Math.sqrt(k*k+O*O),k/=H,O/=H,k*=v,O*=v,f.push(x-k*z,E-O*z,x+k*L,E+O*L),c||(o.cap===vp.ROUND?p+=Gh(x-k*(z-L)*.5,E-O*(z-L)*.5,x-k*z,E-O*z,x+k*L,E+O*L,f,!1)+2:o.cap===vp.SQUARE&&(p+=kV(x,E,k,O,z,L,!1,f)));const F=t.indices,j=dv.epsilon*dv.epsilon;for(let V=g;V0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,r=null){const i=new lT(e,t,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new lT(e,null,null,t),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e0&&(n=this.batches[this.batches.length-1],r=n.style);for(let a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&s===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=s?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e65535*2)return!1;const e=this.batches;for(let t=0;t0&&(r=PS.pop(),r||(r=new x5,r.texArray=new _5),this.drawCalls.push(r)),r.start=u,r.size=0,r.texArray.count=0,r.type=c),v.touched=1,v._batchEnabled=e,v._batchLocation=i,v.wrapMode=Qd.REPEAT,r.texArray.elements[r.texArray.count++]=v,i++)),r.size+=h.size,u+=h.size,s=v._batchLocation,this.addColors(t,g.color,g.alpha,h.attribSize,h.attribStart),this.addTextureIds(n,s,h.attribSize,h.attribStart)}Vt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),s=new Uint32Array(i);let a=0;for(let c=0;c0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new Ig,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new Ig,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return(r!==e||i!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,r){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),kU.curveTo(e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o){return this._initCurve(),TU.curveTo(e,t,n,r,i,o,this.currentPath.points),this}arcTo(e,t,n,r,i){this._initCurve(e,t);const o=this.currentPath.points,s=TV.curveTo(e,t,n,r,i,o);if(s){const{cx:a,cy:c,radius:u,startAngle:f,endAngle:h,anticlockwise:p}=s;this.arc(a,c,u,f,h,p)}return this}arc(e,t,n,r,i,o=!1){if(r===i)return this;if(!o&&i<=r?i+=nT:o&&r<=i&&(r+=nT),i-r===0)return this;const a=e+Math.cos(r)*n,c=t+Math.sin(r)*n,u=this._geometry.closePointEps;let f=this.currentPath?this.currentPath.points:null;if(f){const h=Math.abs(f[f.length-2]-a),p=Math.abs(f[f.length-1]-c);h0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,r){return this.drawShape(new Zt(e,t,n,r))}drawRoundedRect(e,t,n,r,i){return this.drawShape(new _U(e,t,n,r,i))}drawCircle(e,t,n){return this.drawShape(new xU(e,t,n))}drawEllipse(e,t,n,r){return this.drawShape(new wU(e,t,n,r))}drawPolygon(...e){let t,n=!0;const r=e[0];r.points?(n=r.closeStroke,t=r.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new Ig(t);return i.closeStroke=n,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Qi.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let r=0;r{const n=URL.createObjectURL(new Blob([YUe.code],{type:"application/javascript"})),r=new Worker(n);r.addEventListener("message",i=>{r.terminate(),URL.revokeObjectURL(n),t(i.data)})}),this._isImageBitmapSupported)}loadImageBitmap(t){return this._run("loadImageBitmap",[t])}async _initWorkers(){this._initialized||(this._initialized=!0)}getWorker(){s$===void 0&&(s$=navigator.hardwareConcurrency||4);let t=this.workerPool.pop();return!t&&this._createdWorkers{this.complete(n.data),this.returnWorker(n.target),this.next()})),t}returnWorker(t){this.workerPool.push(t)}complete(t){t.error!==void 0?this.resolveHash[t.uuid].reject(t.error):this.resolveHash[t.uuid].resolve(t.data),this.resolveHash[t.uuid]=null}async _run(t,n){await this._initWorkers();const r=new Promise((i,o)=>{this.queue.push({id:t,arguments:n,resolve:i,reject:o})});return this.next(),r}next(){if(!this.queue.length)return;const t=this.getWorker();if(!t)return;const n=this.queue.pop(),r=n.id;this.resolveHash[wV]={resolve:n.resolve,reject:n.reject},t.postMessage({data:n.arguments,uuid:wV++,id:r})}}const _V=new QUe;function BA(e,t,n){const r=new mt(e);return r.baseTexture.on("dispose",()=>{delete t.promiseCache[n]}),r}const JUe=[".jpeg",".jpg",".png",".webp",".avif"],ZUe=["image/jpeg","image/png","image/webp","image/avif"];async function e6e(e){const t=await nt.ADAPTER.fetch(e);if(!t.ok)throw new Error(`[loadImageBitmap] Failed to fetch ${e}: ${t.status} ${t.statusText}`);const n=await t.blob();return await createImageBitmap(n)}const $A={name:"loadTextures",extension:{type:ot.LoadParser,priority:xc.High},config:{preferWorkers:!0,preferCreateImageBitmap:!0,crossOrigin:"anonymous"},test(e){return Zw(e,ZUe)||pm(e,JUe)},async load(e,t,n){let r=null;globalThis.createImageBitmap&&this.config.preferCreateImageBitmap?this.config.preferWorkers&&await _V.isImageBitmapSupported()?r=await _V.loadImageBitmap(e):r=await e6e(e):r=await new Promise(o=>{r=new Image,r.crossOrigin=this.config.crossOrigin,r.src=e,r.complete?o(r):r.onload=()=>{o(r)}});const i=new qt(r,{resolution:lf(e),...t.data});return i.resource.src=e,BA(i,n,e)},unload(e){e.destroy(!0)}};wt.add($A);const t6e=".svg",n6e="image/svg+xml",r6e={extension:{type:ot.LoadParser,priority:xc.High},name:"loadSVG",test(e){return Zw(e,n6e)||pm(e,t6e)},async testParse(e){return rw.test(e)},async parse(e,t,n){var s;const r=new rw(e,(s=t==null?void 0:t.data)==null?void 0:s.resourceOptions);await r.load();const i=new qt(r,{resolution:lf(e),...t==null?void 0:t.data});return i.resource.src=e,BA(i,n,e)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload:$A.unload};wt.add(r6e);class i6e{constructor(){this._defaultBundleIdentifierOptions={connector:"-",createBundleAssetId:(t,n)=>`${t}${this._bundleIdConnector}${n}`,extractAssetIdFromBundle:(t,n)=>n.replace(`${t}${this._bundleIdConnector}`,"")},this._bundleIdConnector=this._defaultBundleIdentifierOptions.connector,this._createBundleAssetId=this._defaultBundleIdentifierOptions.createBundleAssetId,this._extractAssetIdFromBundle=this._defaultBundleIdentifierOptions.extractAssetIdFromBundle,this._assetMap={},this._preferredOrder=[],this._parsers=[],this._resolverHash={},this._bundles={}}setBundleIdentifier(t){if(this._bundleIdConnector=t.connector??this._bundleIdConnector,this._createBundleAssetId=t.createBundleAssetId??this._createBundleAssetId,this._extractAssetIdFromBundle=t.extractAssetIdFromBundle??this._extractAssetIdFromBundle,this._extractAssetIdFromBundle("foo",this._createBundleAssetId("foo","bar"))!=="bar")throw new Error("[Resolver] GenerateBundleAssetId are not working correctly")}prefer(...t){t.forEach(n=>{this._preferredOrder.push(n),n.priority||(n.priority=Object.keys(n.params))}),this._resolverHash={}}set basePath(t){this._basePath=t}get basePath(){return this._basePath}set rootPath(t){this._rootPath=t}get rootPath(){return this._rootPath}get parsers(){return this._parsers}reset(){this.setBundleIdentifier(this._defaultBundleIdentifierOptions),this._assetMap={},this._preferredOrder=[],this._resolverHash={},this._rootPath=null,this._basePath=null,this._manifest=null,this._bundles={},this._defaultSearchParams=null}setDefaultSearchParams(t){if(typeof t=="string")this._defaultSearchParams=t;else{const n=t;this._defaultSearchParams=Object.keys(n).map(r=>`${encodeURIComponent(r)}=${encodeURIComponent(n[r])}`).join("&")}}addManifest(t){this._manifest&&console.warn("[Resolver] Manifest already exists, this will be overwritten"),this._manifest=t,t.bundles.forEach(n=>{this.addBundle(n.name,n.assets)})}addBundle(t,n){const r=[];Array.isArray(n)?n.forEach(i=>{if(typeof i.name=="string"){const o=this._createBundleAssetId(t,i.name);r.push(o),this.add([i.name,o],i.srcs,i.data)}else{const o=i.name.map(s=>this._createBundleAssetId(t,s));o.forEach(s=>{r.push(s)}),this.add([...i.name,...o],i.srcs)}}):Object.keys(n).forEach(i=>{r.push(this._createBundleAssetId(t,i)),this.add([i,this._createBundleAssetId(t,i)],n[i])}),this._bundles[t]=r}add(t,n,r){const i=Lu(t);i.forEach(s=>{this.hasKey(s)&&console.warn(`[Resolver] already has key: ${s} overwriting`)}),Array.isArray(n)||(typeof n=="string"?n=MUe(n):n=[n]);const o=n.map(s=>{let a=s;if(typeof s=="string"){let c=!1;for(let u=0;u{this._assetMap[s]=o})}resolveBundle(t){const n=sT(t);t=Lu(t);const r={};return t.forEach(i=>{const o=this._bundles[i];if(o){const s=this.resolve(o),a={};for(const c in s){const u=s[c];a[this._extractAssetIdFromBundle(i,c)]=u}r[i]=a}}),n?r[t[0]]:r}resolveUrl(t){const n=this.resolve(t);if(typeof t!="string"){const r={};for(const i in n)r[i]=n[i].src;return r}return n.src}resolve(t){const n=sT(t);t=Lu(t);const r={};return t.forEach(i=>{if(!this._resolverHash[i])if(this._assetMap[i]){let o=this._assetMap[i];const s=this._getPreferredOrder(o),a=o[0];s==null||s.priority.forEach(c=>{s.params[c].forEach(u=>{const f=o.filter(h=>h[c]?h[c]===u:!1);f.length&&(o=f)})}),this._resolverHash[i]=o[0]??a}else{let o=i;(this._basePath||this._rootPath)&&(o=vo.toAbsolute(o,this._basePath,this._rootPath)),o=this._appendDefaultSearchParams(o),this._resolverHash[i]={src:o}}r[i]=this._resolverHash[i]}),n?r[t[0]]:r}hasKey(t){return!!this._assetMap[t]}hasBundle(t){return!!this._bundles[t]}_getPreferredOrder(t){for(let n=0;no.params.format.includes(r.format));if(i)return i}return this._preferredOrder[0]}_appendDefaultSearchParams(t){if(!this._defaultSearchParams)return t;const n=/\?/.test(t)?"&":"?";return`${t}${n}${this._defaultSearchParams}`}}class o6e{constructor(){this._detections=[],this._initialized=!1,this.resolver=new i6e,this.loader=new LUe,this.cache=Yb,this._backgroundLoader=new OUe(this.loader),this._backgroundLoader.active=!0,this.reset()}async init(t={}){var o,s,a;if(this._initialized){console.warn("[Assets]AssetManager already initialized, did you load before calling this Asset.init()?");return}if(this._initialized=!0,t.defaultSearchParams&&this.resolver.setDefaultSearchParams(t.defaultSearchParams),t.basePath&&(this.resolver.basePath=t.basePath),t.bundleIdentifier&&this.resolver.setBundleIdentifier(t.bundleIdentifier),t.manifest){let c=t.manifest;typeof c=="string"&&(c=await this.load(c)),this.resolver.addManifest(c)}const n=((o=t.texturePreference)==null?void 0:o.resolution)??1,r=typeof n=="number"?[n]:n;let i=[];if((s=t.texturePreference)!=null&&s.format){const c=(a=t.texturePreference)==null?void 0:a.format;i=typeof c=="string"?[c]:c;for(const u of this._detections)await u.test()||(i=await u.remove(i))}else for(const c of this._detections)await c.test()&&(i=await c.add(i));this.resolver.prefer({params:{format:i,resolution:r}}),t.preferences&&this.setPreferences(t.preferences)}add(t,n,r){this.resolver.add(t,n,r)}async load(t,n){this._initialized||await this.init();const r=sT(t),i=Lu(t).map(a=>typeof a!="string"?(this.resolver.add(a.src,a),a.src):(this.resolver.hasKey(a)||this.resolver.add(a,a),a)),o=this.resolver.resolve(i),s=await this._mapLoadToResolve(o,n);return r?s[i[0]]:s}addBundle(t,n){this.resolver.addBundle(t,n)}async loadBundle(t,n){this._initialized||await this.init();let r=!1;typeof t=="string"&&(r=!0,t=[t]);const i=this.resolver.resolveBundle(t),o={},s=Object.keys(i);let a=0,c=0;const u=()=>{n==null||n(++a/c)},f=s.map(h=>{const p=i[h];return c+=Object.keys(p).length,this._mapLoadToResolve(p,u).then(g=>{o[h]=g})});return await Promise.all(f),r?o[t[0]]:o}async backgroundLoad(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolve(t);this._backgroundLoader.add(Object.values(n))}async backgroundLoadBundle(t){this._initialized||await this.init(),typeof t=="string"&&(t=[t]);const n=this.resolver.resolveBundle(t);Object.values(n).forEach(r=>{this._backgroundLoader.add(Object.values(r))})}reset(){this.resolver.reset(),this.loader.reset(),this.cache.reset(),this._initialized=!1}get(t){if(typeof t=="string")return Yb.get(t);const n={};for(let r=0;r{const u=o[a.src],f=[a.src];a.alias&&f.push(...a.alias),s[i[c]]=u,Yb.set(f,u)}),s}async unload(t){this._initialized||await this.init();const n=Lu(t).map(i=>typeof i!="string"?i.src:i),r=this.resolver.resolve(n);await this._unloadFromResolved(r)}async unloadBundle(t){this._initialized||await this.init(),t=Lu(t);const n=this.resolver.resolveBundle(t),r=Object.keys(n).map(i=>this._unloadFromResolved(n[i]));await Promise.all(r)}async _unloadFromResolved(t){const n=Object.values(t);n.forEach(r=>{Yb.remove(r.src)}),await this.loader.unload(n)}get detections(){return this._detections}get preferWorkers(){return $A.config.preferWorkers}set preferWorkers(t){fn("7.2.0","Assets.prefersWorkers is deprecated, use Assets.setPreferences({ preferWorkers: true }) instead."),this.setPreferences({preferWorkers:t})}setPreferences(t){this.loader.parsers.forEach(n=>{n.config&&Object.keys(n.config).filter(r=>r in t).forEach(r=>{n.config[r]=t[r]})})}}const AS=new o6e;wt.handleByList(ot.LoadParser,AS.loader.parsers).handleByList(ot.ResolveParser,AS.resolver.parsers).handleByList(ot.CacheParser,AS.cache.parsers).handleByList(ot.DetectionParser,AS.detections);const s6e={extension:ot.CacheParser,test:e=>Array.isArray(e)&&e.every(t=>t instanceof mt),getCacheableAssets:(e,t)=>{const n={};return e.forEach(r=>{t.forEach((i,o)=>{n[r+(o===0?"":o+1)]=i})}),n}};wt.add(s6e);const a6e={extension:{type:ot.DetectionParser,priority:1},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"avif"],remove:async e=>e.filter(t=>t!=="avif")};wt.add(a6e);const l6e={extension:{type:ot.DetectionParser,priority:0},test:async()=>{if(!globalThis.createImageBitmap)return!1;const e="data:image/webp;base64,UklGRh4AAABXRUJQVlA4TBEAAAAvAAAAAAfQ//73v/+BiOh/AAA=",t=await nt.ADAPTER.fetch(e).then(n=>n.blob());return createImageBitmap(t).then(()=>!0,()=>!1)},add:async e=>[...e,"webp"],remove:async e=>e.filter(t=>t!=="webp")};wt.add(l6e);const SV=["png","jpg","jpeg"],c6e={extension:{type:ot.DetectionParser,priority:-1},test:()=>Promise.resolve(!0),add:async e=>[...e,...SV],remove:async e=>e.filter(t=>!SV.includes(t))};wt.add(c6e);const u6e={extension:ot.ResolveParser,test:$A.test,parse:e=>{var t;return{resolution:parseFloat(((t=nt.RETINA_PREFIX.exec(e))==null?void 0:t[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(u6e);var Ds=(e=>(e[e.COMPRESSED_RGB_S3TC_DXT1_EXT=33776]="COMPRESSED_RGB_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT1_EXT=33777]="COMPRESSED_RGBA_S3TC_DXT1_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT3_EXT=33778]="COMPRESSED_RGBA_S3TC_DXT3_EXT",e[e.COMPRESSED_RGBA_S3TC_DXT5_EXT=33779]="COMPRESSED_RGBA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT=35917]="COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT=35918]="COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT",e[e.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT=35919]="COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT",e[e.COMPRESSED_SRGB_S3TC_DXT1_EXT=35916]="COMPRESSED_SRGB_S3TC_DXT1_EXT",e[e.COMPRESSED_R11_EAC=37488]="COMPRESSED_R11_EAC",e[e.COMPRESSED_SIGNED_R11_EAC=37489]="COMPRESSED_SIGNED_R11_EAC",e[e.COMPRESSED_RG11_EAC=37490]="COMPRESSED_RG11_EAC",e[e.COMPRESSED_SIGNED_RG11_EAC=37491]="COMPRESSED_SIGNED_RG11_EAC",e[e.COMPRESSED_RGB8_ETC2=37492]="COMPRESSED_RGB8_ETC2",e[e.COMPRESSED_RGBA8_ETC2_EAC=37496]="COMPRESSED_RGBA8_ETC2_EAC",e[e.COMPRESSED_SRGB8_ETC2=37493]="COMPRESSED_SRGB8_ETC2",e[e.COMPRESSED_SRGB8_ALPHA8_ETC2_EAC=37497]="COMPRESSED_SRGB8_ALPHA8_ETC2_EAC",e[e.COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2=37494]="COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2=37495]="COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2",e[e.COMPRESSED_RGB_PVRTC_4BPPV1_IMG=35840]="COMPRESSED_RGB_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG=35842]="COMPRESSED_RGBA_PVRTC_4BPPV1_IMG",e[e.COMPRESSED_RGB_PVRTC_2BPPV1_IMG=35841]="COMPRESSED_RGB_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG=35843]="COMPRESSED_RGBA_PVRTC_2BPPV1_IMG",e[e.COMPRESSED_RGB_ETC1_WEBGL=36196]="COMPRESSED_RGB_ETC1_WEBGL",e[e.COMPRESSED_RGB_ATC_WEBGL=35986]="COMPRESSED_RGB_ATC_WEBGL",e[e.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL=35986]="COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL=34798]="COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL",e[e.COMPRESSED_RGBA_ASTC_4x4_KHR=37808]="COMPRESSED_RGBA_ASTC_4x4_KHR",e))(Ds||{});const aT={33776:.5,33777:.5,33778:1,33779:1,35916:.5,35917:.5,35918:1,35919:1,37488:.5,37489:.5,37490:1,37491:1,37492:.5,37496:1,37493:.5,37497:1,37494:.5,37495:.5,35840:.5,35842:.5,35841:.25,35843:.25,36196:.5,35986:.5,35986:1,34798:1,37808:1};let yu,Fm;function EV(){Fm={s3tc:yu.getExtension("WEBGL_compressed_texture_s3tc"),s3tc_sRGB:yu.getExtension("WEBGL_compressed_texture_s3tc_srgb"),etc:yu.getExtension("WEBGL_compressed_texture_etc"),etc1:yu.getExtension("WEBGL_compressed_texture_etc1"),pvrtc:yu.getExtension("WEBGL_compressed_texture_pvrtc")||yu.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc"),atc:yu.getExtension("WEBGL_compressed_texture_atc"),astc:yu.getExtension("WEBGL_compressed_texture_astc")}}const d6e={extension:{type:ot.DetectionParser,priority:2},test:async()=>{const t=nt.ADAPTER.createCanvas().getContext("webgl");return t?(yu=t,!0):(console.warn("WebGL not available for compressed textures."),!1)},add:async e=>{Fm||EV();const t=[];for(const n in Fm)Fm[n]&&t.push(n);return[...t,...e]},remove:async e=>(Fm||EV(),e.filter(t=>!(t in Fm)))};wt.add(d6e);class f6e extends Qw{constructor(t,n={width:1,height:1,autoLoad:!0}){let r,i;typeof t=="string"?(r=t,i=new Uint8Array):(r=null,i=t),super(i,n),this.origin=r,this.buffer=i?new w5(i):null,this._load=null,this.loaded=!1,this.origin!==null&&n.autoLoad!==!1&&this.load(),this.origin===null&&this.buffer&&(this._load=Promise.resolve(this),this.loaded=!0,this.onBlobLoaded(this.buffer.rawBinaryData))}onBlobLoaded(t){}load(){return this._load?this._load:(this._load=fetch(this.origin).then(t=>t.blob()).then(t=>t.arrayBuffer()).then(t=>(this.data=new Uint32Array(t),this.buffer=new w5(t),this.loaded=!0,this.onBlobLoaded(t),this.update(),this)),this._load)}}class Pp extends f6e{constructor(t,n){super(t,n),this.format=n.format,this.levels=n.levels||1,this._width=n.width,this._height=n.height,this._extension=Pp._formatToExtension(this.format),(n.levelBuffers||this.buffer)&&(this._levelBuffers=n.levelBuffers||Pp._createLevelBuffers(t instanceof Uint8Array?t:this.buffer.uint8View,this.format,this.levels,4,4,this.width,this.height))}upload(t,n,r){const i=t.gl;if(!t.context.extensions[this._extension])throw new Error(`${this._extension} textures are not supported on the current machine`);if(!this._levelBuffers)return!1;for(let s=0,a=this.levels;s=33776&&t<=33779)return"s3tc";if(t>=37488&&t<=37497)return"etc";if(t>=35840&&t<=35843)return"pvrtc";if(t>=36196)return"etc1";if(t>=35986&&t<=34798)return"atc";throw new Error("Invalid (compressed) texture format given!")}static _createLevelBuffers(t,n,r,i,o,s,a){const c=new Array(r);let u=t.byteOffset,f=s,h=a,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*aT[n];for(let y=0;y1?f:p,levelHeight:r>1?h:g,levelBuffer:new Uint8Array(t.buffer,u,v)},u+=v,f=f>>1||1,h=h>>1||1,p=f+i-1&~(i-1),g=h+o-1&~(o-1),v=p*g*aT[n];return c}}const l$=4,IS=124,h6e=32,CV=20,p6e=542327876,RS={SIZE:1,FLAGS:2,HEIGHT:3,WIDTH:4,MIPMAP_COUNT:7,PIXEL_FORMAT:19},m6e={SIZE:0,FLAGS:1,FOURCC:2,RGB_BITCOUNT:3,R_BIT_MASK:4,G_BIT_MASK:5,B_BIT_MASK:6,A_BIT_MASK:7},PS={DXGI_FORMAT:0,RESOURCE_DIMENSION:1,MISC_FLAG:2,ARRAY_SIZE:3,MISC_FLAGS2:4},g6e=1,v6e=2,y6e=4,b6e=64,x6e=512,w6e=131072,_6e=827611204,S6e=861165636,E6e=894720068,C6e=808540228,T6e=4,k6e={[_6e]:Ds.COMPRESSED_RGBA_S3TC_DXT1_EXT,[S6e]:Ds.COMPRESSED_RGBA_S3TC_DXT3_EXT,[E6e]:Ds.COMPRESSED_RGBA_S3TC_DXT5_EXT},A6e={70:Ds.COMPRESSED_RGBA_S3TC_DXT1_EXT,71:Ds.COMPRESSED_RGBA_S3TC_DXT1_EXT,73:Ds.COMPRESSED_RGBA_S3TC_DXT3_EXT,74:Ds.COMPRESSED_RGBA_S3TC_DXT3_EXT,76:Ds.COMPRESSED_RGBA_S3TC_DXT5_EXT,77:Ds.COMPRESSED_RGBA_S3TC_DXT5_EXT,72:Ds.COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT,75:Ds.COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT,78:Ds.COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT};function I6e(e){const t=new Uint32Array(e);if(t[0]!==p6e)throw new Error("Invalid DDS file magic word");const r=new Uint32Array(e,0,IS/Uint32Array.BYTES_PER_ELEMENT),i=r[RS.HEIGHT],o=r[RS.WIDTH],s=r[RS.MIPMAP_COUNT],a=new Uint32Array(e,RS.PIXEL_FORMAT*Uint32Array.BYTES_PER_ELEMENT,h6e/Uint32Array.BYTES_PER_ELEMENT),c=a[g6e];if(c&y6e){const u=a[m6e.FOURCC];if(u!==C6e){const x=k6e[u],E=l$+IS,I=new Uint8Array(e,E);return[new Pp(I,{format:x,width:o,height:i,levels:s})]}const f=l$+IS,h=new Uint32Array(t.buffer,f,CV/Uint32Array.BYTES_PER_ELEMENT),p=h[PS.DXGI_FORMAT],g=h[PS.RESOURCE_DIMENSION],v=h[PS.MISC_FLAG],y=h[PS.ARRAY_SIZE],S=A6e[p];if(S===void 0)throw new Error(`DDSParser cannot parse texture data with DXGI format ${p}`);if(v===T6e)throw new Error("DDSParser does not support cubemap textures");if(g===6)throw new Error("DDSParser does not supported 3D texture data");const w=new Array,b=l$+IS+CV;if(y===1)w.push(new Uint8Array(e,b));else{const x=aT[S];let E=0,I=o,A=i;for(let O=0;O>>1,A=A>>>1}let k=b;for(let O=0;Onew Pp(x,{format:S,width:o,height:i,levels:s}))}throw c&b6e?new Error("DDSParser does not support uncompressed texture data."):c&x6e?new Error("DDSParser does not supported YUV uncompressed texture data."):c&w6e?new Error("DDSParser does not support single-channel (lumninance) texture data!"):c&v6e?new Error("DDSParser does not support single-channel (alpha) texture data!"):new Error("DDSParser failed to load a texture file due to an unknown reason!")}const TV=[171,75,84,88,32,49,49,187,13,10,26,10],R6e=67305985,tl={FILE_IDENTIFIER:0,ENDIANNESS:12,GL_TYPE:16,GL_TYPE_SIZE:20,GL_FORMAT:24,GL_INTERNAL_FORMAT:28,GL_BASE_INTERNAL_FORMAT:32,PIXEL_WIDTH:36,PIXEL_HEIGHT:40,PIXEL_DEPTH:44,NUMBER_OF_ARRAY_ELEMENTS:48,NUMBER_OF_FACES:52,NUMBER_OF_MIPMAP_LEVELS:56,BYTES_OF_KEY_VALUE_DATA:60},N5=64,kV={[Ot.UNSIGNED_BYTE]:1,[Ot.UNSIGNED_SHORT]:2,[Ot.INT]:4,[Ot.UNSIGNED_INT]:4,[Ot.FLOAT]:4,[Ot.HALF_FLOAT]:8},P6e={[Ve.RGBA]:4,[Ve.RGB]:3,[Ve.RG]:2,[Ve.RED]:1,[Ve.LUMINANCE]:1,[Ve.LUMINANCE_ALPHA]:2,[Ve.ALPHA]:1},O6e={[Ot.UNSIGNED_SHORT_4_4_4_4]:2,[Ot.UNSIGNED_SHORT_5_5_5_1]:2,[Ot.UNSIGNED_SHORT_5_6_5]:2};function M6e(e,t,n=!1){const r=new DataView(t);if(!D6e(e,r))return null;const i=r.getUint32(tl.ENDIANNESS,!0)===R6e,o=r.getUint32(tl.GL_TYPE,i),s=r.getUint32(tl.GL_FORMAT,i),a=r.getUint32(tl.GL_INTERNAL_FORMAT,i),c=r.getUint32(tl.PIXEL_WIDTH,i),u=r.getUint32(tl.PIXEL_HEIGHT,i)||1,f=r.getUint32(tl.PIXEL_DEPTH,i)||1,h=r.getUint32(tl.NUMBER_OF_ARRAY_ELEMENTS,i)||1,p=r.getUint32(tl.NUMBER_OF_FACES,i),g=r.getUint32(tl.NUMBER_OF_MIPMAP_LEVELS,i),v=r.getUint32(tl.BYTES_OF_KEY_VALUE_DATA,i);if(u===0||f!==1)throw new Error("Only 2D textures are supported");if(p!==1)throw new Error("CubeTextures are not supported by KTXLoader yet!");if(h!==1)throw new Error("WebGL does not support array textures");const y=4,S=4,w=c+3&-4,b=u+3&-4,x=new Array(h);let E=c*u;o===0&&(E=w*b);let I;if(o!==0?kV[o]?I=kV[o]*P6e[s]:I=O6e[o]:I=aT[a],I===void 0)throw new Error("Unable to resolve the pixel format stored in the *.ktx file!");const A=n?N6e(r,v,i):null;let O=E*I,L=c,N=u,H=w,G=b,z=N5+v;for(let D=0;D1||o!==0?L:H,levelHeight:g>1||o!==0?N:G,levelBuffer:new Uint8Array(t,j,O)},j+=O}z+=F+4,z=z%4!==0?z+4-z%4:z,L=L>>1||1,N=N>>1||1,H=L+y-1&~(y-1),G=N+S-1&~(S-1),O=H*G*I}return o!==0?{uncompressed:x.map(D=>{let F=D[0].levelBuffer,j=!1;return o===Ot.FLOAT?F=new Float32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4):o===Ot.UNSIGNED_INT?(j=!0,F=new Uint32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4)):o===Ot.INT&&(j=!0,F=new Int32Array(D[0].levelBuffer.buffer,D[0].levelBuffer.byteOffset,D[0].levelBuffer.byteLength/4)),{resource:new Qw(F,{width:D[0].levelWidth,height:D[0].levelHeight}),type:o,format:j?L6e(s):s}}),kvData:A}:{compressed:x.map(D=>new Pp(null,{format:a,width:c,height:u,levels:g,levelBuffers:D})),kvData:A}}function D6e(e,t){for(let n=0;nt-i){console.error("KTXLoader: keyAndValueByteSize out of bounds");break}let c=0;for(;c{const c=new qt(a,{mipmap:pc.OFF,alphaMode:Ll.NO_PREMULTIPLIED_ALPHA,resolution:lf(e),...t.data});return BA(c,n,e)});return s.length===1?s[0]:s},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add(B6e);const $6e={extension:{type:ot.LoadParser,priority:xc.High},name:"loadKTX",test(e){return pm(e,".ktx")},async load(e,t,n){const i=await(await nt.ADAPTER.fetch(e)).arrayBuffer(),{compressed:o,uncompressed:s,kvData:a}=M6e(e,i),c=o??s,u={mipmap:pc.OFF,alphaMode:Ll.NO_PREMULTIPLIED_ALPHA,resolution:lf(e),...t.data},f=c.map(h=>{c===s&&Object.assign(u,{type:h.type,format:h.format});const p=new qt(h,u);return p.ktxKeyValueData=a,BA(p,n,e)});return f.length===1?f[0]:f},unload(e){Array.isArray(e)?e.forEach(t=>t.destroy(!0)):e.destroy(!0)}};wt.add($6e);const F6e={extension:ot.ResolveParser,test:e=>{const n=e.split("?")[0].split(".").pop();return["basis","ktx","dds"].includes(n)},parse:e=>{var r,i;if(e.split("?")[0].split(".").pop()==="ktx"){const o=[".s3tc.ktx",".s3tc_sRGB.ktx",".etc.ktx",".etc1.ktx",".pvrt.ktx",".atc.ktx",".astc.ktx"];if(o.some(s=>e.endsWith(s)))return{resolution:parseFloat(((r=nt.RETINA_PREFIX.exec(e))==null?void 0:r[1])??"1"),format:o.find(s=>e.endsWith(s)),src:e}}return{resolution:parseFloat(((i=nt.RETINA_PREFIX.exec(e))==null?void 0:i[1])??"1"),format:e.split(".").pop(),src:e}}};wt.add(F6e);const z6e=new Zt,j6e=4,vx=class{constructor(e){this.renderer=e}async image(e,t,n){const r=new Image;return r.src=await this.base64(e,t,n),r}async base64(e,t,n){const r=this.canvas(e);if(r.toBlob!==void 0)return new Promise((i,o)=>{r.toBlob(s=>{if(!s){o(new Error("ICanvas.toBlob failed!"));return}const a=new FileReader;a.onload=()=>i(a.result),a.onerror=o,a.readAsDataURL(s)},t,n)});if(r.toDataURL!==void 0)return r.toDataURL(t,n);if(r.convertToBlob!==void 0){const i=await r.convertToBlob({type:t,quality:n});return new Promise((o,s)=>{const a=new FileReader;a.onload=()=>o(a.result),a.onerror=s,a.readAsDataURL(i)})}throw new Error("Extract.base64() requires ICanvas.toDataURL, ICanvas.toBlob, or ICanvas.convertToBlob to be implemented")}canvas(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);o&&vx._flipY(n,r,i),vx._unpremultiplyAlpha(n);const s=new nze(r,i,1),a=new ImageData(new Uint8ClampedArray(n.buffer),r,i);return s.context.putImageData(a,0,0),s.canvas}pixels(e,t){const{pixels:n,width:r,height:i,flipY:o}=this._rawPixels(e,t);return o&&vx._flipY(n,r,i),vx._unpremultiplyAlpha(n),n}_rawPixels(e,t){const n=this.renderer;if(!n)throw new Error("The Extract has already been destroyed");let r,i=!1,o,s=!1;if(e&&(e instanceof fm?o=e:(o=n.generateTexture(e,{resolution:n.resolution,multisample:n.multisample}),s=!0)),o){if(r=o.baseTexture.resolution,t=t??o.frame,i=!1,!s){n.renderTexture.bind(o);const h=o.framebuffer.glFramebuffers[n.CONTEXT_UID];h.blitFramebuffer&&n.framebuffer.bind(h.blitFramebuffer)}}else r=n.resolution,t||(t=z6e,t.width=n.width/r,t.height=n.height/r),i=!0,n.renderTexture.bind();const a=Math.round(t.width*r),c=Math.round(t.height*r),u=new Uint8Array(j6e*a*c),f=n.gl;return f.readPixels(Math.round(t.x*r),Math.round(t.y*r),a,c,f.RGBA,f.UNSIGNED_BYTE,u),s&&(o==null||o.destroy(!0)),{pixels:u,width:a,height:c,flipY:i}}destroy(){this.renderer=null}static _flipY(e,t,n){const r=t<<2,i=n>>1,o=new Uint8Array(r);for(let s=0;s=0&&a>=0&&i>=0&&o>=0)){t.length=0;return}const c=Math.ceil(2.3*Math.sqrt(s+a)),u=c*8+(i?4:0)+(o?4:0);if(t.length=u,u===0)return;if(c===0){t.length=8,t[0]=t[6]=n+i,t[1]=t[3]=r+o,t[2]=t[4]=n-i,t[5]=t[7]=r-o;return}let f=0,h=c*4+(i?2:0)+2,p=h,g=u;{const v=i+s,y=o,S=n+v,w=n-v,b=r+y;if(t[f++]=S,t[f++]=b,t[--h]=b,t[--h]=w,o){const x=r-y;t[p++]=w,t[p++]=x,t[--g]=x,t[--g]=S}}for(let v=1;v0||t&&r<=0){const i=n/2;for(let o=i+i%2;o=6){AV(n,!1);const s=[];for(let u=0;u=0&&o>=0&&s.push(n,r,n+i,r,n+i,r+o,n,r+o)},triangulate(e,t){const n=e.points,r=t.points;if(n.length===0)return;const i=r.length/2;r.push(n[0],n[1],n[2],n[3],n[6],n[7],n[4],n[5]),t.indices.push(i,i+1,i+2,i+1,i+2,i+3)}},H6e={build(e){lT.build(e)},triangulate(e,t){lT.triangulate(e,t)}};var ll=(e=>(e.MITER="miter",e.BEVEL="bevel",e.ROUND="round",e))(ll||{}),bp=(e=>(e.BUTT="butt",e.ROUND="round",e.SQUARE="square",e))(bp||{});const fv={adaptive:!0,maxLength:10,minSegments:8,maxSegments:2048,epsilon:1e-4,_segmentsCount(e,t=20){if(!this.adaptive||!e||isNaN(e))return t;let n=Math.ceil(e/this.maxLength);return nthis.maxSegments&&(n=this.maxSegments),n}};class IV{static curveTo(t,n,r,i,o,s){const a=s[s.length-2],u=s[s.length-1]-n,f=a-t,h=i-n,p=r-t,g=Math.abs(u*p-f*h);if(g<1e-8||o===0)return(s[s.length-2]!==t||s[s.length-1]!==n)&&s.push(t,n),null;const v=u*u+f*f,y=h*h+p*p,S=u*h+f*p,w=o*Math.sqrt(v)/g,b=o*Math.sqrt(y)/g,x=w*S/v,E=b*S/y,I=w*p+b*f,A=w*h+b*u,k=f*(b+x),O=u*(b+x),L=p*(w+E),N=h*(w+E),H=Math.atan2(O-A,k-I),G=Math.atan2(N-A,L-I);return{cx:I+t,cy:A+n,radius:o,startAngle:H,endAngle:G,anticlockwise:f*h>p*u}}static arc(t,n,r,i,o,s,a,c,u){const f=a-s,h=fv._segmentsCount(Math.abs(f)*o,Math.ceil(Math.abs(f)/rT)*40),p=f/(h*2),g=p*2,v=Math.cos(p),y=Math.sin(p),S=h-1,w=S%1/S;for(let b=0;b<=S;++b){const x=b+w*b,E=p+s+g*x,I=Math.cos(E),A=-Math.sin(E);u.push((v*I+y*A)*o+r,(v*-A+y*I)*o+i)}}}class W6e{constructor(){this.reset()}begin(t,n,r){this.reset(),this.style=t,this.start=n,this.attribStart=r}end(t,n){this.attribSize=n-this.attribStart,this.size=t-this.start}reset(){this.style=null,this.size=0,this.start=0,this.attribStart=0,this.attribSize=0}}class IU{static curveLength(t,n,r,i,o,s,a,c){let f=0,h=0,p=0,g=0,v=0,y=0,S=0,w=0,b=0,x=0,E=0,I=t,A=n;for(let k=1;k<=10;++k)h=k/10,p=h*h,g=p*h,v=1-h,y=v*v,S=y*v,w=S*t+3*y*h*r+3*v*p*o+g*a,b=S*n+3*y*h*i+3*v*p*s+g*c,x=I-w,E=A-b,I=w,A=b,f+=Math.sqrt(x*x+E*E);return f}static curveTo(t,n,r,i,o,s,a){const c=a[a.length-2],u=a[a.length-1];a.length-=2;const f=fv._segmentsCount(IU.curveLength(c,u,t,n,r,i,o,s));let h=0,p=0,g=0,v=0,y=0;a.push(c,u);for(let S=1,w=0;S<=f;++S)w=S/f,h=1-w,p=h*h,g=p*h,v=w*w,y=v*w,a.push(g*c+3*p*w*t+3*h*v*r+y*o,g*u+3*p*w*n+3*h*v*i+y*s)}}function RV(e,t,n,r,i,o,s,a){const c=e-n*i,u=t-r*i,f=e+n*o,h=t+r*o;let p,g;s?(p=r,g=-n):(p=-r,g=n);const v=c+p,y=u+g,S=f+p,w=h+g;return a.push(v,y,S,w),2}function qh(e,t,n,r,i,o,s,a){const c=n-e,u=r-t;let f=Math.atan2(c,u),h=Math.atan2(i-e,o-t);a&&fh&&(h+=Math.PI*2);let p=f;const g=h-f,v=Math.abs(g),y=Math.sqrt(c*c+u*u),S=(15*v*Math.sqrt(y)/Math.PI>>0)+1,w=g/S;if(p+=w,a){s.push(e,t,n,r);for(let b=1,x=p;b=0&&(o.join===ll.ROUND?p+=qh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+4:p+=2,f.push(x-L*D,E-N*D,x+L*z,E+N*z));continue}const se=(-k+w)*(-O+E)-(-k+x)*(-O+b),J=(-L+I)*(-N+E)-(-L+x)*(-N+A),ae=(W*J-X*se)/ce,le=(Q*se-K*J)/ce,he=(ae-x)*(ae-x)+(le-E)*(le-E),pe=x+(ae-x)*z,ve=E+(le-E)*z,ye=x-(ae-x)*D,xe=E-(le-E)*D,me=Math.min(W*W+K*K,X*X+Q*Q),be=ue?z:D,Ze=me+be*be*y,Xe=he<=Ze;let ct=o.join;if(ct===ll.MITER&&he/y>S&&(ct=ll.BEVEL),Xe)switch(ct){case ll.MITER:{f.push(pe,ve,ye,xe);break}case ll.BEVEL:{ue?f.push(pe,ve,x+k*D,E+O*D,pe,ve,x+L*D,E+N*D):f.push(x-k*z,E-O*z,ye,xe,x-L*z,E-N*z,ye,xe),p+=2;break}case ll.ROUND:{ue?(f.push(pe,ve,x+k*D,E+O*D),p+=qh(x,E,x+k*D,E+O*D,x+L*D,E+N*D,f,!0)+4,f.push(pe,ve,x+L*D,E+N*D)):(f.push(x-k*z,E-O*z,ye,xe),p+=qh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+4,f.push(x-L*z,E-N*z,ye,xe));break}}else{switch(f.push(x-k*z,E-O*z,x+k*D,E+O*D),ct){case ll.MITER:{ue?f.push(ye,xe,ye,xe):f.push(pe,ve,pe,ve),p+=2;break}case ll.ROUND:{ue?p+=qh(x,E,x+k*D,E+O*D,x+L*D,E+N*D,f,!0)+2:p+=qh(x,E,x-k*z,E-O*z,x-L*z,E-N*z,f,!1)+2;break}}f.push(x-L*z,E-N*z,x+L*D,E+N*D),p+=2}}w=r[(h-2)*2],b=r[(h-2)*2+1],x=r[(h-1)*2],E=r[(h-1)*2+1],k=-(b-E),O=w-x,H=Math.sqrt(k*k+O*O),k/=H,O/=H,k*=v,O*=v,f.push(x-k*z,E-O*z,x+k*D,E+O*D),c||(o.cap===bp.ROUND?p+=qh(x-k*(z-D)*.5,E-O*(z-D)*.5,x-k*z,E-O*z,x+k*D,E+O*D,f,!1)+2:o.cap===bp.SQUARE&&(p+=RV(x,E,k,O,z,D,!1,f)));const F=t.indices,j=fv.epsilon*fv.epsilon;for(let V=g;V0&&(this.invalidate(),this.clearDirty++,this.graphicsData.length=0),this}drawShape(e,t=null,n=null,r=null){const i=new cT(e,t,n,r);return this.graphicsData.push(i),this.dirty++,this}drawHole(e,t=null){if(!this.graphicsData.length)return null;const n=new cT(e,null,null,t),r=this.graphicsData[this.graphicsData.length-1];return n.lineStyle=r.lineStyle,r.holes.push(n),this.dirty++,this}destroy(){super.destroy();for(let e=0;e0&&(n=this.batches[this.batches.length-1],r=n.style);for(let a=this.shapeIndex;a65535;this.indicesUint16&&this.indices.length===this.indicesUint16.length&&s===this.indicesUint16.BYTES_PER_ELEMENT>2?this.indicesUint16.set(this.indices):this.indicesUint16=s?new Uint32Array(this.indices):new Uint16Array(this.indices),this.batchable=this.isBatchable(),this.batchable?this.packBatches():this.buildDrawCalls()}_compareStyles(e,t){return!(!e||!t||e.texture.baseTexture!==t.texture.baseTexture||e.color+e.alpha!==t.color+t.alpha||!!e.native!=!!t.native)}validateBatching(){if(this.dirty===this.cacheDirty||!this.graphicsData.length)return!1;for(let e=0,t=this.graphicsData.length;e65535*2)return!1;const e=this.batches;for(let t=0;t0&&(r=OS.pop(),r||(r=new S5,r.texArray=new C5),this.drawCalls.push(r)),r.start=u,r.size=0,r.texArray.count=0,r.type=c),v.touched=1,v._batchEnabled=e,v._batchLocation=i,v.wrapMode=Jd.REPEAT,r.texArray.elements[r.texArray.count++]=v,i++)),r.size+=h.size,u+=h.size,s=v._batchLocation,this.addColors(t,g.color,g.alpha,h.attribSize,h.attribStart),this.addTextureIds(n,s,h.attribSize,h.attribStart)}qt._globalBatch=e,this.packAttributes()}packAttributes(){const e=this.points,t=this.uvs,n=this.colors,r=this.textureIds,i=new ArrayBuffer(e.length*3*4),o=new Float32Array(i),s=new Uint32Array(i);let a=0;for(let c=0;c0&&e.alpha>0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._lineStyle,{visible:n},e)):this._lineStyle.reset(),this}startPoly(){if(this.currentPath){const e=this.currentPath.points,t=this.currentPath.points.length;t>2&&(this.drawShape(this.currentPath),this.currentPath=new Rg,this.currentPath.closeStroke=!1,this.currentPath.points.push(e[t-2],e[t-1]))}else this.currentPath=new Rg,this.currentPath.closeStroke=!1}finishPoly(){this.currentPath&&(this.currentPath.points.length>2?(this.drawShape(this.currentPath),this.currentPath=null):this.currentPath.points.length=0)}moveTo(e,t){return this.startPoly(),this.currentPath.points[0]=e,this.currentPath.points[1]=t,this}lineTo(e,t){this.currentPath||this.moveTo(0,0);const n=this.currentPath.points,r=n[n.length-2],i=n[n.length-1];return(r!==e||i!==t)&&n.push(e,t),this}_initCurve(e=0,t=0){this.currentPath?this.currentPath.points.length===0&&(this.currentPath.points=[e,t]):this.moveTo(e,t)}quadraticCurveTo(e,t,n,r){this._initCurve();const i=this.currentPath.points;return i.length===0&&this.moveTo(0,0),RU.curveTo(e,t,n,r,i),this}bezierCurveTo(e,t,n,r,i,o){return this._initCurve(),IU.curveTo(e,t,n,r,i,o,this.currentPath.points),this}arcTo(e,t,n,r,i){this._initCurve(e,t);const o=this.currentPath.points,s=IV.curveTo(e,t,n,r,i,o);if(s){const{cx:a,cy:c,radius:u,startAngle:f,endAngle:h,anticlockwise:p}=s;this.arc(a,c,u,f,h,p)}return this}arc(e,t,n,r,i,o=!1){if(r===i)return this;if(!o&&i<=r?i+=rT:o&&r<=i&&(r+=rT),i-r===0)return this;const a=e+Math.cos(r)*n,c=t+Math.sin(r)*n,u=this._geometry.closePointEps;let f=this.currentPath?this.currentPath.points:null;if(f){const h=Math.abs(f[f.length-2]-a),p=Math.abs(f[f.length-1]-c);h0;return n?(e.matrix&&(e.matrix=e.matrix.clone(),e.matrix.invert()),Object.assign(this._fillStyle,{visible:n},e)):this._fillStyle.reset(),this}endFill(){return this.finishPoly(),this._fillStyle.reset(),this}drawRect(e,t,n,r){return this.drawShape(new Zt(e,t,n,r))}drawRoundedRect(e,t,n,r,i){return this.drawShape(new CU(e,t,n,r,i))}drawCircle(e,t,n){return this.drawShape(new SU(e,t,n))}drawEllipse(e,t,n,r){return this.drawShape(new EU(e,t,n,r))}drawPolygon(...e){let t,n=!0;const r=e[0];r.points?(n=r.closeStroke,t=r.points):Array.isArray(e[0])?t=e[0]:t=e;const i=new Rg(t);return i.closeStroke=n,this.drawShape(i),this}drawShape(e){return this._holeMode?this._geometry.drawHole(e,this._matrix):this._geometry.drawShape(e,this._fillStyle.clone(),this._lineStyle.clone(),this._matrix),this}clear(){return this._geometry.clear(),this._lineStyle.reset(),this._fillStyle.reset(),this._boundsID++,this._matrix=null,this._holeMode=!1,this.currentPath=null,this}isFastRect(){const e=this._geometry.graphicsData;return e.length===1&&e[0].shape.type===Qi.RECT&&!e[0].matrix&&!e[0].holes.length&&!(e[0].lineStyle.visible&&e[0].lineStyle.width)}_render(e){this.finishPoly();const t=this._geometry;t.updateBatches(),t.batchable?(this.batchDirty!==t.batchDirty&&this._populateBatches(),this._renderBatched(e)):(e.batch.flush(),this._renderDirect(e))}_populateBatches(){const e=this._geometry,t=this.blendMode,n=e.batches.length;this.batchTint=-1,this._transformID=-1,this.batchDirty=e.batchDirty,this.batches.length=n,this.vertexData=new Float32Array(e.points);for(let r=0;rr&&!t.autoResize&&(s=r);let a=t._buffers;a||(a=t._buffers=this.generateBuffers(t));const c=n[0]._texture.baseTexture,u=c.alphaMode>0;this.state.blendMode=Yne(t.blendMode,u),o.state.set(this.state);const f=o.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(o.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=Vn.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,u).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let p=!1;for(let g=0,v=0;gi&&(y=i),v>=a.length&&a.push(this._generateOneMoreBuffer(t));const S=a[v];S.uploadDynamic(n,g,y);const w=t._bufferUpdateIDs[v]||0;p=p||S._updateID0);i[s]=u,i[s+o]=u,i[s+o*2]=u,i[s+o*3]=u,s+=o*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}Xre.extension={name:"particle",type:ot.RendererPlugin};wt.add(Xre);var $A=(e=>(e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",e))($A||{});const OS={willReadFrequently:!0},yt=class{static get experimentalLetterSpacingSupported(){let e=yt._experimentalLetterSpacingSupported;if(e!==void 0){const t=nt.ADAPTER.getCanvasRenderingContext2D().prototype;e=yt._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,r,i,o,s,a,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=a,this.fontProperties=c}static measureText(e,t,n,r=yt._canvas){n=n??t.wordWrap;const i=t.toFontString(),o=yt.measureFont(i);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const s=r.getContext("2d",OS);s.font=i;const c=(n?yt.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),u=new Array(c.length);let f=0;for(let v=0;v0&&(r?i-=t:i+=(yt.graphemeSegmenter(e).length-1)*t),i}static wordWrap(e,t,n=yt._canvas){const r=n.getContext("2d",OS);let i=0,o="",s="";const a=Object.create(null),{letterSpacing:c,whiteSpace:u}=t,f=yt.collapseSpaces(u),h=yt.collapseNewlines(u);let p=!f;const g=t.wordWrapWidth+c,v=yt.tokenize(e);for(let y=0;yg)if(o!==""&&(s+=yt.addLine(o),o="",i=0),yt.canBreakWords(S,t.breakWords)){const b=yt.wordWrapSplit(S);for(let x=0;xg&&(s+=yt.addLine(o),p=!1,o="",i=0),o+=E,i+=k}}else{o.length>0&&(s+=yt.addLine(o),o="",i=0);const b=y===v.length-1;s+=yt.addLine(S,!b),p=!1,o="",i=0}else w+i>g&&(p=!1,s+=yt.addLine(o),o="",i=0),(o.length>0||!yt.isBreakingSpace(S)||p)&&(o+=S,i+=w)}return s+=yt.addLine(o,!1),s}static addLine(e,t=!0){return e=yt.trimRight(e),e=t?`${e} -`:e,e}static getFromCache(e,t,n,r){let i=n[e];return typeof i!="number"&&(i=yt._measureText(e,t,r)+t,n[e]=i),i}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!yt.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:yt._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:yt._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let r=0;rs;--h){for(let v=0;v{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map(n=>n.segment)}return e=>[...e]})();Ki.experimentalLetterSpacing=!1;Ki._fonts={};Ki._newlines=[10,13];Ki._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];const q6e=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],gx=class{constructor(e){this.styleID=0,this.reset(),d$(this,e,e)}clone(){const e={};return d$(e,this,gx.defaultStyle),new gx(e)}reset(){d$(this,gx.defaultStyle,gx.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=u$(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=u$(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){X6e(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=u$(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!q6e.includes(r)&&(r=`"${r}"`),t[n]=r}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};let Gu=gx;Gu.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:$A.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};function u$(e){const t=Vn.shared;return Array.isArray(e)?e.map(n=>t.setValue(n).toHex()):t.setValue(e).toHex()}function X6e(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n0&&g>v&&(y=(v+g)/2);const S=v+h,w=n.lineHeight*(p+1);let b=S;p+10}}function Q6e(e,t){var r;let n=!1;if((r=e==null?void 0:e._textures)!=null&&r.length){for(let i=0;i{this.queue&&this.prepareItems()},this.registerFindHook(n8e),this.registerFindHook(r8e),this.registerFindHook(Q6e),this.registerFindHook(J6e),this.registerFindHook(Z6e),this.registerUploadHook(e8e),this.registerUploadHook(t8e)}upload(e){return new Promise(t=>{e&&this.add(e),this.queue.length?(this.completes.push(t),this.ticking||(this.ticking=!0,Si.system.addOnce(this.tick,this,Kp.UTILITY))):t()})}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const e=this.queue[0];let t=!1;if(e&&!e._destroyed){for(let n=0,r=this.uploadHooks.length;n=0;t--)this.add(e.children[t]);return this}destroy(){this.ticking&&Si.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};let cT=Yre;cT.uploadsPerFrame=4;Object.defineProperties(nt,{UPLOADS_PER_FRAME:{get(){return cT.uploadsPerFrame},set(e){fn("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),cT.uploadsPerFrame=e}}});function Kre(e,t){return t instanceof Vt?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function i8e(e,t){if(!(t instanceof fv))return!1;const{geometry:n}=t;t.finishPoly(),n.updateBatches();const{batches:r}=n;for(let i=0;ir&&!t.autoResize&&(s=r);let a=t._buffers;a||(a=t._buffers=this.generateBuffers(t));const c=n[0]._texture.baseTexture,u=c.alphaMode>0;this.state.blendMode=Kne(t.blendMode,u),o.state.set(this.state);const f=o.gl,h=t.worldTransform.copyTo(this.tempMatrix);h.prepend(o.globalUniforms.uniforms.projectionMatrix),this.shader.uniforms.translationMatrix=h.toArray(!0),this.shader.uniforms.uColor=Vn.shared.setValue(t.tintRgb).premultiply(t.worldAlpha,u).toArray(this.shader.uniforms.uColor),this.shader.uniforms.uSampler=c,this.renderer.shader.bind(this.shader);let p=!1;for(let g=0,v=0;gi&&(y=i),v>=a.length&&a.push(this._generateOneMoreBuffer(t));const S=a[v];S.uploadDynamic(n,g,y);const w=t._bufferUpdateIDs[v]||0;p=p||S._updateID0);i[s]=u,i[s+o]=u,i[s+o*2]=u,i[s+o*3]=u,s+=o*4}}destroy(){super.destroy(),this.shader&&(this.shader.destroy(),this.shader=null),this.tempMatrix=null}}Yre.extension={name:"particle",type:ot.RendererPlugin};wt.add(Yre);var zA=(e=>(e[e.LINEAR_VERTICAL=0]="LINEAR_VERTICAL",e[e.LINEAR_HORIZONTAL=1]="LINEAR_HORIZONTAL",e))(zA||{});const MS={willReadFrequently:!0},yt=class{static get experimentalLetterSpacingSupported(){let e=yt._experimentalLetterSpacingSupported;if(e!==void 0){const t=nt.ADAPTER.getCanvasRenderingContext2D().prototype;e=yt._experimentalLetterSpacingSupported="letterSpacing"in t||"textLetterSpacing"in t}return e}constructor(e,t,n,r,i,o,s,a,c){this.text=e,this.style=t,this.width=n,this.height=r,this.lines=i,this.lineWidths=o,this.lineHeight=s,this.maxLineWidth=a,this.fontProperties=c}static measureText(e,t,n,r=yt._canvas){n=n??t.wordWrap;const i=t.toFontString(),o=yt.measureFont(i);o.fontSize===0&&(o.fontSize=t.fontSize,o.ascent=t.fontSize);const s=r.getContext("2d",MS);s.font=i;const c=(n?yt.wordWrap(e,t,r):e).split(/(?:\r\n|\r|\n)/),u=new Array(c.length);let f=0;for(let v=0;v0&&(r?i-=t:i+=(yt.graphemeSegmenter(e).length-1)*t),i}static wordWrap(e,t,n=yt._canvas){const r=n.getContext("2d",MS);let i=0,o="",s="";const a=Object.create(null),{letterSpacing:c,whiteSpace:u}=t,f=yt.collapseSpaces(u),h=yt.collapseNewlines(u);let p=!f;const g=t.wordWrapWidth+c,v=yt.tokenize(e);for(let y=0;yg)if(o!==""&&(s+=yt.addLine(o),o="",i=0),yt.canBreakWords(S,t.breakWords)){const b=yt.wordWrapSplit(S);for(let x=0;xg&&(s+=yt.addLine(o),p=!1,o="",i=0),o+=E,i+=k}}else{o.length>0&&(s+=yt.addLine(o),o="",i=0);const b=y===v.length-1;s+=yt.addLine(S,!b),p=!1,o="",i=0}else w+i>g&&(p=!1,s+=yt.addLine(o),o="",i=0),(o.length>0||!yt.isBreakingSpace(S)||p)&&(o+=S,i+=w)}return s+=yt.addLine(o,!1),s}static addLine(e,t=!0){return e=yt.trimRight(e),e=t?`${e} +`:e,e}static getFromCache(e,t,n,r){let i=n[e];return typeof i!="number"&&(i=yt._measureText(e,t,r)+t,n[e]=i),i}static collapseSpaces(e){return e==="normal"||e==="pre-line"}static collapseNewlines(e){return e==="normal"}static trimRight(e){if(typeof e!="string")return"";for(let t=e.length-1;t>=0;t--){const n=e[t];if(!yt.isBreakingSpace(n))break;e=e.slice(0,-1)}return e}static isNewline(e){return typeof e!="string"?!1:yt._newlines.includes(e.charCodeAt(0))}static isBreakingSpace(e,t){return typeof e!="string"?!1:yt._breakingSpaces.includes(e.charCodeAt(0))}static tokenize(e){const t=[];let n="";if(typeof e!="string")return t;for(let r=0;rs;--h){for(let v=0;v{if(typeof(Intl==null?void 0:Intl.Segmenter)=="function"){const e=new Intl.Segmenter;return t=>[...e.segment(t)].map(n=>n.segment)}return e=>[...e]})();Ki.experimentalLetterSpacing=!1;Ki._fonts={};Ki._newlines=[10,13];Ki._breakingSpaces=[9,32,8192,8193,8194,8195,8196,8197,8198,8200,8201,8202,8287,12288];const Z6e=["serif","sans-serif","monospace","cursive","fantasy","system-ui"],yx=class{constructor(e){this.styleID=0,this.reset(),h$(this,e,e)}clone(){const e={};return h$(e,this,yx.defaultStyle),new yx(e)}reset(){h$(this,yx.defaultStyle,yx.defaultStyle)}get align(){return this._align}set align(e){this._align!==e&&(this._align=e,this.styleID++)}get breakWords(){return this._breakWords}set breakWords(e){this._breakWords!==e&&(this._breakWords=e,this.styleID++)}get dropShadow(){return this._dropShadow}set dropShadow(e){this._dropShadow!==e&&(this._dropShadow=e,this.styleID++)}get dropShadowAlpha(){return this._dropShadowAlpha}set dropShadowAlpha(e){this._dropShadowAlpha!==e&&(this._dropShadowAlpha=e,this.styleID++)}get dropShadowAngle(){return this._dropShadowAngle}set dropShadowAngle(e){this._dropShadowAngle!==e&&(this._dropShadowAngle=e,this.styleID++)}get dropShadowBlur(){return this._dropShadowBlur}set dropShadowBlur(e){this._dropShadowBlur!==e&&(this._dropShadowBlur=e,this.styleID++)}get dropShadowColor(){return this._dropShadowColor}set dropShadowColor(e){const t=f$(e);this._dropShadowColor!==t&&(this._dropShadowColor=t,this.styleID++)}get dropShadowDistance(){return this._dropShadowDistance}set dropShadowDistance(e){this._dropShadowDistance!==e&&(this._dropShadowDistance=e,this.styleID++)}get fill(){return this._fill}set fill(e){const t=f$(e);this._fill!==t&&(this._fill=t,this.styleID++)}get fillGradientType(){return this._fillGradientType}set fillGradientType(e){this._fillGradientType!==e&&(this._fillGradientType=e,this.styleID++)}get fillGradientStops(){return this._fillGradientStops}set fillGradientStops(e){e8e(this._fillGradientStops,e)||(this._fillGradientStops=e,this.styleID++)}get fontFamily(){return this._fontFamily}set fontFamily(e){this.fontFamily!==e&&(this._fontFamily=e,this.styleID++)}get fontSize(){return this._fontSize}set fontSize(e){this._fontSize!==e&&(this._fontSize=e,this.styleID++)}get fontStyle(){return this._fontStyle}set fontStyle(e){this._fontStyle!==e&&(this._fontStyle=e,this.styleID++)}get fontVariant(){return this._fontVariant}set fontVariant(e){this._fontVariant!==e&&(this._fontVariant=e,this.styleID++)}get fontWeight(){return this._fontWeight}set fontWeight(e){this._fontWeight!==e&&(this._fontWeight=e,this.styleID++)}get letterSpacing(){return this._letterSpacing}set letterSpacing(e){this._letterSpacing!==e&&(this._letterSpacing=e,this.styleID++)}get lineHeight(){return this._lineHeight}set lineHeight(e){this._lineHeight!==e&&(this._lineHeight=e,this.styleID++)}get leading(){return this._leading}set leading(e){this._leading!==e&&(this._leading=e,this.styleID++)}get lineJoin(){return this._lineJoin}set lineJoin(e){this._lineJoin!==e&&(this._lineJoin=e,this.styleID++)}get miterLimit(){return this._miterLimit}set miterLimit(e){this._miterLimit!==e&&(this._miterLimit=e,this.styleID++)}get padding(){return this._padding}set padding(e){this._padding!==e&&(this._padding=e,this.styleID++)}get stroke(){return this._stroke}set stroke(e){const t=f$(e);this._stroke!==t&&(this._stroke=t,this.styleID++)}get strokeThickness(){return this._strokeThickness}set strokeThickness(e){this._strokeThickness!==e&&(this._strokeThickness=e,this.styleID++)}get textBaseline(){return this._textBaseline}set textBaseline(e){this._textBaseline!==e&&(this._textBaseline=e,this.styleID++)}get trim(){return this._trim}set trim(e){this._trim!==e&&(this._trim=e,this.styleID++)}get whiteSpace(){return this._whiteSpace}set whiteSpace(e){this._whiteSpace!==e&&(this._whiteSpace=e,this.styleID++)}get wordWrap(){return this._wordWrap}set wordWrap(e){this._wordWrap!==e&&(this._wordWrap=e,this.styleID++)}get wordWrapWidth(){return this._wordWrapWidth}set wordWrapWidth(e){this._wordWrapWidth!==e&&(this._wordWrapWidth=e,this.styleID++)}toFontString(){const e=typeof this.fontSize=="number"?`${this.fontSize}px`:this.fontSize;let t=this.fontFamily;Array.isArray(this.fontFamily)||(t=this.fontFamily.split(","));for(let n=t.length-1;n>=0;n--){let r=t[n].trim();!/([\"\'])[^\'\"]+\1/.test(r)&&!Z6e.includes(r)&&(r=`"${r}"`),t[n]=r}return`${this.fontStyle} ${this.fontVariant} ${this.fontWeight} ${e} ${t.join(",")}`}};let Vu=yx;Vu.defaultStyle={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fillGradientType:zA.LINEAR_VERTICAL,fillGradientStops:[],fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",leading:0,letterSpacing:0,lineHeight:0,lineJoin:"miter",miterLimit:10,padding:0,stroke:"black",strokeThickness:0,textBaseline:"alphabetic",trim:!1,whiteSpace:"pre",wordWrap:!1,wordWrapWidth:100};function f$(e){const t=Vn.shared;return Array.isArray(e)?e.map(n=>t.setValue(n).toHex()):t.setValue(e).toHex()}function e8e(e,t){if(!Array.isArray(e)||!Array.isArray(t)||e.length!==t.length)return!1;for(let n=0;n0&&g>v&&(y=(v+g)/2);const S=v+h,w=n.lineHeight*(p+1);let b=S;p+10}}function r8e(e,t){var r;let n=!1;if((r=e==null?void 0:e._textures)!=null&&r.length){for(let i=0;i{this.queue&&this.prepareItems()},this.registerFindHook(l8e),this.registerFindHook(c8e),this.registerFindHook(r8e),this.registerFindHook(i8e),this.registerFindHook(o8e),this.registerUploadHook(s8e),this.registerUploadHook(a8e)}upload(e){return new Promise(t=>{e&&this.add(e),this.queue.length?(this.completes.push(t),this.ticking||(this.ticking=!0,Si.system.addOnce(this.tick,this,Qp.UTILITY))):t()})}tick(){setTimeout(this.delayedTick,0)}prepareItems(){for(this.limiter.beginFrame();this.queue.length&&this.limiter.allowedToUpload();){const e=this.queue[0];let t=!1;if(e&&!e._destroyed){for(let n=0,r=this.uploadHooks.length;n=0;t--)this.add(e.children[t]);return this}destroy(){this.ticking&&Si.system.remove(this.tick,this),this.ticking=!1,this.addHooks=null,this.uploadHooks=null,this.renderer=null,this.completes=null,this.queue=null,this.limiter=null,this.uploadHookHelper=null}};let uT=Kre;uT.uploadsPerFrame=4;Object.defineProperties(nt,{UPLOADS_PER_FRAME:{get(){return uT.uploadsPerFrame},set(e){fn("7.1.0","settings.UPLOADS_PER_FRAME is deprecated, use prepare.BasePrepare.uploadsPerFrame"),uT.uploadsPerFrame=e}}});function Qre(e,t){return t instanceof qt?(t._glTextures[e.CONTEXT_UID]||e.texture.bind(t),!0):!1}function u8e(e,t){if(!(t instanceof hv))return!1;const{geometry:n}=t;t.finishPoly(),n.updateBatches();const{batches:r}=n;for(let i=0;i1?ac.from(a8e,s8e,n):ac.from(MV,l8e,n)}render(t){const n=this.renderer,r=this.quad;let i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);const o=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;i=r.uvs,i[0]=i[6]=-o,i[1]=i[3]=-s,i[2]=i[4]=1-o,i[5]=i[7]=1-s,r.invalidate();const a=t._texture,c=a.baseTexture,u=c.alphaMode>0,f=t.tileTransform.localTransform,h=t.uvMatrix;let p=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;p&&(c._glTextures[n.CONTEXT_UID]?p=c.wrapMode!==Qd.CLAMP:c.wrapMode===Qd.CLAMP&&(c.wrapMode=Qd.REPEAT));const g=p?this.simpleShader:this.shader,v=a.width,y=a.height,S=t._width,w=t._height;MS.set(f.a*v/S,f.b*v/w,f.c*y/S,f.d*y/w,f.tx/S,f.ty/w),MS.invert(),p?MS.prepend(h.mapCoord):(g.uniforms.uMapCoord=h.mapCoord.toArray(!0),g.uniforms.uClampFrame=h.uClampFrame,g.uniforms.uClampOffset=h.uClampOffset),g.uniforms.uTransform=MS.toArray(!0),g.uniforms.uColor=Vn.shared.setValue(t.tint).premultiply(t.worldAlpha,u).toArray(g.uniforms.uColor),g.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),g.uniforms.uSampler=a,n.shader.bind(g),n.geometry.bind(r),this.state.blendMode=Yne(t.blendMode,u),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}Jre.extension={name:"tilingSprite",type:ot.RendererPlugin};wt.add(Jre);const vx=class{constructor(e,t,n=null){this.linkedSheets=[],this._texture=e instanceof mt?e:null,this.baseTexture=e instanceof Vt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;const r=this.baseTexture.resource;this.resolution=this._updateResolution(n||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=sf(e,null);return n===null&&(n=parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=vx.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=vx.BATCH_SIZE;for(;t-e{this._batchIndex*vx.BATCH_SIZE{r[i]=t}),Object.keys(t.textures).forEach(i=>{r[i]=t.textures[i]}),!n){const i=vo.dirname(e[0]);t.linkedSheets.forEach((o,s)=>{const a=Zre([`${i}/${t.data.meta.related_multi_packs[s]}`],o,!0);Object.assign(r,a)})}return r}const d8e={extension:ot.Asset,cache:{test:e=>e instanceof N5,getCacheableAssets:(e,t)=>Zre(e,t,!1)},resolver:{test:e=>{const n=e.split("?")[0].split("."),r=n.pop(),i=n.pop();return r==="json"&&u8e.includes(i)},parse:e=>{var n;const t=e.split(".");return{resolution:parseFloat(((n=nt.RETINA_PREFIX.exec(e))==null?void 0:n[1])??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:ot.LoadParser,priority:bc.Normal},async testParse(e,t){return vo.extname(t.src).toLowerCase()===".json"&&!!e.frames},async parse(e,t,n){var u,f;let r=vo.dirname(t.src);r&&r.lastIndexOf("/")!==r.length-1&&(r+="/");let i=r+e.meta.image;i=O5(i,t.src);const s=(await n.load([i]))[i],a=new N5(s.baseTexture,e,t.src);await a.parse();const c=(u=e==null?void 0:e.meta)==null?void 0:u.related_multi_packs;if(Array.isArray(c)){const h=[];for(const g of c){if(typeof g!="string")continue;let v=r+g;(f=t.data)!=null&&f.ignoreMultiPack||(v=O5(v,t.src),h.push(n.load({src:v,data:{ignoreMultiPack:!0}})))}const p=await Promise.all(h);a.linkedSheets=p,p.forEach(g=>{g.linkedSheets=[a].concat(a.linkedSheets.filter(v=>v!==g))})}return a},unload(e){e.destroy(!0)}}};wt.add(d8e);class uT{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class OE{static test(t){return typeof t=="string"&&t.startsWith("info face=")}static parse(t){const n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const o in n){const s=n[o].match(/^[a-z]+/gm)[0],a=n[o].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),c={};for(const u in a){const f=a[u].split("="),h=f[0],p=f[1].replace(/"/gm,""),g=parseFloat(p),v=isNaN(g)?p:g;c[h]=v}r[s].push(c)}const i=new uT;return r.info.forEach(o=>i.info.push({face:o.face,size:parseInt(o.size,10)})),r.common.forEach(o=>i.common.push({lineHeight:parseInt(o.lineHeight,10)})),r.page.forEach(o=>i.page.push({id:parseInt(o.id,10),file:o.file})),r.char.forEach(o=>i.char.push({id:parseInt(o.id,10),page:parseInt(o.page,10),x:parseInt(o.x,10),y:parseInt(o.y,10),width:parseInt(o.width,10),height:parseInt(o.height,10),xoffset:parseInt(o.xoffset,10),yoffset:parseInt(o.yoffset,10),xadvance:parseInt(o.xadvance,10)})),r.kerning.forEach(o=>i.kerning.push({first:parseInt(o.first,10),second:parseInt(o.second,10),amount:parseInt(o.amount,10)})),r.distanceField.forEach(o=>i.distanceField.push({distanceRange:parseInt(o.distanceRange,10),fieldType:o.fieldType})),i}}class B5{static test(t){const n=t;return"getElementsByTagName"in n&&n.getElementsByTagName("page").length&&n.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(t){const n=new uT,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),a=t.getElementsByTagName("kerning"),c=t.getElementsByTagName("distanceField");for(let u=0;u")?B5.test(nt.ADAPTER.parseXML(t)):!1}static parse(t){return B5.parse(nt.ADAPTER.parseXML(t))}}const f$=[OE,B5,$5];function f8e(e){for(let t=0;t=a-D*o){if(v===0)throw new Error(`[BitmapFont] textureHeight ${a}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,y=null,S=null,w=null,v=0,g=0,b=0;continue}if(b=Math.max(D+k.fontProperties.descent,b),N*o+g>=h){if(g===0)throw new Error(`[BitmapFont] textureWidth ${s}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,v+=b*o,v=Math.ceil(v),g=0,b=0;continue}p8e(y,S,k,g,v,o,f);const H=ME(k.text);p.char.push({id:H,page:x.length-1,x:g/o,y:v/o,width:N,height:D,xoffset:0,yoffset:0,xadvance:O-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0)}),g+=(N+2*i)*o,g=Math.ceil(g)}for(let I=0,A=u.length;I1?cc.from(h8e,f8e,n):cc.from(NV,p8e,n)}render(t){const n=this.renderer,r=this.quad;let i=r.vertices;i[0]=i[6]=t._width*-t.anchor.x,i[1]=i[3]=t._height*-t.anchor.y,i[2]=i[4]=t._width*(1-t.anchor.x),i[5]=i[7]=t._height*(1-t.anchor.y);const o=t.uvRespectAnchor?t.anchor.x:0,s=t.uvRespectAnchor?t.anchor.y:0;i=r.uvs,i[0]=i[6]=-o,i[1]=i[3]=-s,i[2]=i[4]=1-o,i[5]=i[7]=1-s,r.invalidate();const a=t._texture,c=a.baseTexture,u=c.alphaMode>0,f=t.tileTransform.localTransform,h=t.uvMatrix;let p=c.isPowerOfTwo&&a.frame.width===c.width&&a.frame.height===c.height;p&&(c._glTextures[n.CONTEXT_UID]?p=c.wrapMode!==Jd.CLAMP:c.wrapMode===Jd.CLAMP&&(c.wrapMode=Jd.REPEAT));const g=p?this.simpleShader:this.shader,v=a.width,y=a.height,S=t._width,w=t._height;DS.set(f.a*v/S,f.b*v/w,f.c*y/S,f.d*y/w,f.tx/S,f.ty/w),DS.invert(),p?DS.prepend(h.mapCoord):(g.uniforms.uMapCoord=h.mapCoord.toArray(!0),g.uniforms.uClampFrame=h.uClampFrame,g.uniforms.uClampOffset=h.uClampOffset),g.uniforms.uTransform=DS.toArray(!0),g.uniforms.uColor=Vn.shared.setValue(t.tint).premultiply(t.worldAlpha,u).toArray(g.uniforms.uColor),g.uniforms.translationMatrix=t.transform.worldTransform.toArray(!0),g.uniforms.uSampler=a,n.shader.bind(g),n.geometry.bind(r),this.state.blendMode=Kne(t.blendMode,u),n.state.set(this.state),n.geometry.draw(this.renderer.gl.TRIANGLES,6,0)}}Zre.extension={name:"tilingSprite",type:ot.RendererPlugin};wt.add(Zre);const bx=class{constructor(e,t,n=null){this.linkedSheets=[],this._texture=e instanceof mt?e:null,this.baseTexture=e instanceof qt?e:this._texture.baseTexture,this.textures={},this.animations={},this.data=t;const r=this.baseTexture.resource;this.resolution=this._updateResolution(n||(r?r.url:null)),this._frames=this.data.frames,this._frameKeys=Object.keys(this._frames),this._batchIndex=0,this._callback=null}_updateResolution(e=null){const{scale:t}=this.data.meta;let n=lf(e,null);return n===null&&(n=parseFloat(t??"1")),n!==1&&this.baseTexture.setResolution(n),n}parse(){return new Promise(e=>{this._callback=e,this._batchIndex=0,this._frameKeys.length<=bx.BATCH_SIZE?(this._processFrames(0),this._processAnimations(),this._parseComplete()):this._nextBatch()})}_processFrames(e){let t=e;const n=bx.BATCH_SIZE;for(;t-e{this._batchIndex*bx.BATCH_SIZE{r[i]=t}),Object.keys(t.textures).forEach(i=>{r[i]=t.textures[i]}),!n){const i=vo.dirname(e[0]);t.linkedSheets.forEach((o,s)=>{const a=eie([`${i}/${t.data.meta.related_multi_packs[s]}`],o,!0);Object.assign(r,a)})}return r}const v8e={extension:ot.Asset,cache:{test:e=>e instanceof F5,getCacheableAssets:(e,t)=>eie(e,t,!1)},resolver:{test:e=>{const n=e.split("?")[0].split("."),r=n.pop(),i=n.pop();return r==="json"&&g8e.includes(i)},parse:e=>{var n;const t=e.split(".");return{resolution:parseFloat(((n=nt.RETINA_PREFIX.exec(e))==null?void 0:n[1])??"1"),format:t[t.length-2],src:e}}},loader:{name:"spritesheetLoader",extension:{type:ot.LoadParser,priority:xc.Normal},async testParse(e,t){return vo.extname(t.src).toLowerCase()===".json"&&!!e.frames},async parse(e,t,n){var u,f;let r=vo.dirname(t.src);r&&r.lastIndexOf("/")!==r.length-1&&(r+="/");let i=r+e.meta.image;i=L5(i,t.src);const s=(await n.load([i]))[i],a=new F5(s.baseTexture,e,t.src);await a.parse();const c=(u=e==null?void 0:e.meta)==null?void 0:u.related_multi_packs;if(Array.isArray(c)){const h=[];for(const g of c){if(typeof g!="string")continue;let v=r+g;(f=t.data)!=null&&f.ignoreMultiPack||(v=L5(v,t.src),h.push(n.load({src:v,data:{ignoreMultiPack:!0}})))}const p=await Promise.all(h);a.linkedSheets=p,p.forEach(g=>{g.linkedSheets=[a].concat(a.linkedSheets.filter(v=>v!==g))})}return a},unload(e){e.destroy(!0)}}};wt.add(v8e);class dT{constructor(){this.info=[],this.common=[],this.page=[],this.char=[],this.kerning=[],this.distanceField=[]}}class ME{static test(t){return typeof t=="string"&&t.startsWith("info face=")}static parse(t){const n=t.match(/^[a-z]+\s+.+$/gm),r={info:[],common:[],page:[],char:[],chars:[],kerning:[],kernings:[],distanceField:[]};for(const o in n){const s=n[o].match(/^[a-z]+/gm)[0],a=n[o].match(/[a-zA-Z]+=([^\s"']+|"([^"]*)")/gm),c={};for(const u in a){const f=a[u].split("="),h=f[0],p=f[1].replace(/"/gm,""),g=parseFloat(p),v=isNaN(g)?p:g;c[h]=v}r[s].push(c)}const i=new dT;return r.info.forEach(o=>i.info.push({face:o.face,size:parseInt(o.size,10)})),r.common.forEach(o=>i.common.push({lineHeight:parseInt(o.lineHeight,10)})),r.page.forEach(o=>i.page.push({id:parseInt(o.id,10),file:o.file})),r.char.forEach(o=>i.char.push({id:parseInt(o.id,10),page:parseInt(o.page,10),x:parseInt(o.x,10),y:parseInt(o.y,10),width:parseInt(o.width,10),height:parseInt(o.height,10),xoffset:parseInt(o.xoffset,10),yoffset:parseInt(o.yoffset,10),xadvance:parseInt(o.xadvance,10)})),r.kerning.forEach(o=>i.kerning.push({first:parseInt(o.first,10),second:parseInt(o.second,10),amount:parseInt(o.amount,10)})),r.distanceField.forEach(o=>i.distanceField.push({distanceRange:parseInt(o.distanceRange,10),fieldType:o.fieldType})),i}}class z5{static test(t){const n=t;return"getElementsByTagName"in n&&n.getElementsByTagName("page").length&&n.getElementsByTagName("info")[0].getAttribute("face")!==null}static parse(t){const n=new dT,r=t.getElementsByTagName("info"),i=t.getElementsByTagName("common"),o=t.getElementsByTagName("page"),s=t.getElementsByTagName("char"),a=t.getElementsByTagName("kerning"),c=t.getElementsByTagName("distanceField");for(let u=0;u")?z5.test(nt.ADAPTER.parseXML(t)):!1}static parse(t){return z5.parse(nt.ADAPTER.parseXML(t))}}const p$=[ME,z5,j5];function y8e(e){for(let t=0;t=a-L*o){if(v===0)throw new Error(`[BitmapFont] textureHeight ${a}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,y=null,S=null,w=null,v=0,g=0,b=0;continue}if(b=Math.max(L+k.fontProperties.descent,b),N*o+g>=h){if(g===0)throw new Error(`[BitmapFont] textureWidth ${s}px is too small (fontFamily: '${f.fontFamily}', fontSize: ${f.fontSize}px, char: '${A}')`);--I,v+=b*o,v=Math.ceil(v),g=0,b=0;continue}x8e(y,S,k,g,v,o,f);const H=DE(k.text);p.char.push({id:H,page:x.length-1,x:g/o,y:v/o,width:N,height:L,xoffset:0,yoffset:0,xadvance:O-(f.dropShadow?f.dropShadowDistance:0)-(f.stroke?f.strokeThickness:0)}),g+=(N+2*i)*o,g=Math.ceil(g)}for(let I=0,A=u.length;I{this.dirty=!0},this,0,0),this._roundPixels=nt.ROUND_PIXELS,this.dirty=!0,this._resolution=nt.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var N;const e=Xo.available[this._fontName],t=this.fontSize,n=t/e.size,r=new Lt,i=[],o=[],s=[],a=this._text.replace(/(?:\r\n|\r)/g,` -`)||" ",c=eie(a),u=this._maxWidth*e.size/t,f=e.distanceFieldType==="none"?LV:DV;let h=null,p=0,g=0,v=0,y=-1,S=0,w=0,b=0,x=0;for(let H=0;H0&&r.x>u&&(++w,Ag(i,1+y-w,1+H-y),H=y,y=-1,o.push(S),s.push(i.length>0?i[i.length-1].prevSpaces:0),g=Math.max(g,S),v++,r.x=0,r.y+=e.lineHeight,h=null,x=0)}const E=c[c.length-1];E!=="\r"&&E!==` -`&&(/(?:\s)/.test(E)&&(p=S),o.push(p),g=Math.max(g,p),s.push(-1));const I=[];for(let H=0;H<=v;H++){let G=0;this._align==="right"?G=g-o[H]:this._align==="center"?G=(g-o[H])/2:this._align==="justify"&&(G=s[H]<0?0:(g-o[H])/s[H]),I.push(G)}const A=i.length,k={},O=[],D=this._activePagesMeshData;f.push(...D);for(let H=0;H6*z)||G.vertices.lengtht[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=mt.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};let y8e=tie;y8e.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const b8e=[".xml",".fnt"],x8e={extension:{type:ot.LoadParser,priority:bc.Normal},name:"loadBitmapFont",test(e){return b8e.includes(vo.extname(e).toLowerCase())},async testParse(e){return OE.test(e)||$5.test(e)},async parse(e,t,n){const r=OE.test(e)?OE.parse(e):$5.parse(e),{src:i}=t,{page:o}=r,s=[];for(let u=0;ua[u]);return Xo.install(r,c,!0)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload(e){e.destroy()}};wt.add(x8e);const Fm=class extends Gu{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new Fm(Object.keys(Fm.defaultOptions).reduce((t,n)=>({...t,[n]:e[n]}),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach(e=>{URL.revokeObjectURL(e.src),e.refs--,e.refs===0&&(e.fontFace&&document.fonts.delete(e.fontFace),delete Fm.availableFonts[e.originalUrl])}),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,t={}){const{availableFonts:n}=Fm;if(n[e]){const r=n[e];return this._fonts.push(r),r.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return nt.ADAPTER.fetch(e).then(r=>r.blob()).then(async r=>new Promise((i,o)=>{const s=URL.createObjectURL(r),a=new FileReader;a.onload=()=>i([s,a.result]),a.onerror=o,a.readAsDataURL(r)})).then(async([r,i])=>{const o=Object.assign({family:vo.basename(e,vo.extname(e)),weight:"normal",style:"normal",src:r,dataSrc:i,refs:1,originalUrl:e,fontFace:null},t);n[e]=o,this._fonts.push(o),this.styleID++;const s=new FontFace(o.family,`url(${o.src})`,{weight:o.weight,style:o.style});o.fontFace=s,await s.load(),document.fonts.add(s),await document.fonts.ready,this.styleID++,this.fontsDirty=!0})}addOverride(...e){const t=e.filter(n=>!this._overrides.includes(n));t.length>0&&(this._overrides.push(...t),this.styleID++)}removeOverride(...e){const t=e.filter(n=>this._overrides.includes(n));t.length>0&&(this._overrides=this._overrides.filter(n=>!t.includes(n)),this.styleID++)}toCSS(e){return[`transform: scale(${e})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?[`word-wrap: ${this.breakWords?"break-all":"break-word"}`,`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce((e,t)=>`${e} +`;const BV=[],$V=[],FV=[],nie=class extends us{constructor(e,t={}){super();const{align:n,tint:r,maxWidth:i,letterSpacing:o,fontName:s,fontSize:a}=Object.assign({},nie.styleDefaults,t);if(!Xo.available[s])throw new Error(`Missing BitmapFont "${s}"`);this._activePagesMeshData=[],this._textWidth=0,this._textHeight=0,this._align=n,this._tintColor=new Vn(r),this._font=void 0,this._fontName=s,this._fontSize=a,this.text=e,this._maxWidth=i,this._maxLineHeight=0,this._letterSpacing=o,this._anchor=new Dd(()=>{this.dirty=!0},this,0,0),this._roundPixels=nt.ROUND_PIXELS,this.dirty=!0,this._resolution=nt.RESOLUTION,this._autoResolution=!0,this._textureCache={}}updateText(){var N;const e=Xo.available[this._fontName],t=this.fontSize,n=t/e.size,r=new Dt,i=[],o=[],s=[],a=this._text.replace(/(?:\r\n|\r)/g,` +`)||" ",c=tie(a),u=this._maxWidth*e.size/t,f=e.distanceFieldType==="none"?BV:$V;let h=null,p=0,g=0,v=0,y=-1,S=0,w=0,b=0,x=0;for(let H=0;H0&&r.x>u&&(++w,Ig(i,1+y-w,1+H-y),H=y,y=-1,o.push(S),s.push(i.length>0?i[i.length-1].prevSpaces:0),g=Math.max(g,S),v++,r.x=0,r.y+=e.lineHeight,h=null,x=0)}const E=c[c.length-1];E!=="\r"&&E!==` +`&&(/(?:\s)/.test(E)&&(p=S),o.push(p),g=Math.max(g,p),s.push(-1));const I=[];for(let H=0;H<=v;H++){let G=0;this._align==="right"?G=g-o[H]:this._align==="center"?G=(g-o[H])/2:this._align==="justify"&&(G=s[H]<0?0:(g-o[H])/s[H]),I.push(G)}const A=i.length,k={},O=[],L=this._activePagesMeshData;f.push(...L);for(let H=0;H6*z)||G.vertices.lengtht[i.mesh.texture.baseTexture.uid]).forEach(i=>{i.mesh.texture=mt.EMPTY});for(const i in t)t[i].destroy(),delete t[i];this._font=null,this._tintColor=null,this._textureCache=null,super.destroy(e)}};let E8e=nie;E8e.styleDefaults={align:"left",tint:16777215,maxWidth:0,letterSpacing:0};const C8e=[".xml",".fnt"],T8e={extension:{type:ot.LoadParser,priority:xc.Normal},name:"loadBitmapFont",test(e){return C8e.includes(vo.extname(e).toLowerCase())},async testParse(e){return ME.test(e)||j5.test(e)},async parse(e,t,n){const r=ME.test(e)?ME.parse(e):j5.parse(e),{src:i}=t,{page:o}=r,s=[];for(let u=0;ua[u]);return Xo.install(r,c,!0)},async load(e,t){return(await nt.ADAPTER.fetch(e)).text()},unload(e){e.destroy()}};wt.add(T8e);const zm=class extends Vu{constructor(){super(...arguments),this._fonts=[],this._overrides=[],this._stylesheet="",this.fontsDirty=!1}static from(e){return new zm(Object.keys(zm.defaultOptions).reduce((t,n)=>({...t,[n]:e[n]}),{}))}cleanFonts(){this._fonts.length>0&&(this._fonts.forEach(e=>{URL.revokeObjectURL(e.src),e.refs--,e.refs===0&&(e.fontFace&&document.fonts.delete(e.fontFace),delete zm.availableFonts[e.originalUrl])}),this.fontFamily="Arial",this._fonts.length=0,this.styleID++,this.fontsDirty=!0)}loadFont(e,t={}){const{availableFonts:n}=zm;if(n[e]){const r=n[e];return this._fonts.push(r),r.refs++,this.styleID++,this.fontsDirty=!0,Promise.resolve()}return nt.ADAPTER.fetch(e).then(r=>r.blob()).then(async r=>new Promise((i,o)=>{const s=URL.createObjectURL(r),a=new FileReader;a.onload=()=>i([s,a.result]),a.onerror=o,a.readAsDataURL(r)})).then(async([r,i])=>{const o=Object.assign({family:vo.basename(e,vo.extname(e)),weight:"normal",style:"normal",src:r,dataSrc:i,refs:1,originalUrl:e,fontFace:null},t);n[e]=o,this._fonts.push(o),this.styleID++;const s=new FontFace(o.family,`url(${o.src})`,{weight:o.weight,style:o.style});o.fontFace=s,await s.load(),document.fonts.add(s),await document.fonts.ready,this.styleID++,this.fontsDirty=!0})}addOverride(...e){const t=e.filter(n=>!this._overrides.includes(n));t.length>0&&(this._overrides.push(...t),this.styleID++)}removeOverride(...e){const t=e.filter(n=>this._overrides.includes(n));t.length>0&&(this._overrides=this._overrides.filter(n=>!t.includes(n)),this.styleID++)}toCSS(e){return[`transform: scale(${e})`,"transform-origin: top left","display: inline-block",`color: ${this.normalizeColor(this.fill)}`,`font-size: ${this.fontSize}px`,`font-family: ${this.fontFamily}`,`font-weight: ${this.fontWeight}`,`font-style: ${this.fontStyle}`,`font-variant: ${this.fontVariant}`,`letter-spacing: ${this.letterSpacing}px`,`text-align: ${this.align}`,`padding: ${this.padding}px`,`white-space: ${this.whiteSpace}`,...this.lineHeight?[`line-height: ${this.lineHeight}px`]:[],...this.wordWrap?[`word-wrap: ${this.breakWords?"break-all":"break-word"}`,`max-width: ${this.wordWrapWidth}px`]:[],...this.strokeThickness?[`-webkit-text-stroke-width: ${this.strokeThickness}px`,`-webkit-text-stroke-color: ${this.normalizeColor(this.stroke)}`,`text-stroke-width: ${this.strokeThickness}px`,`text-stroke-color: ${this.normalizeColor(this.stroke)}`,"paint-order: stroke"]:[],...this.dropShadow?[this.dropShadowToCSS()]:[],...this._overrides].join(";")}toGlobalCSS(){return this._fonts.reduce((e,t)=>`${e} @font-face { font-family: "${t.family}"; src: url('${t.dataSrc}'); font-weight: ${t.weight}; font-style: ${t.style}; - }`,this._stylesheet)}get stylesheet(){return this._stylesheet}set stylesheet(e){this._stylesheet!==e&&(this._stylesheet=e,this.styleID++)}normalizeColor(e){return Array.isArray(e)&&(e=V4e(e)),typeof e=="number"?G4e(e):e}dropShadowToCSS(){let e=this.normalizeColor(this.dropShadowColor);const t=this.dropShadowAlpha,n=Math.round(Math.cos(this.dropShadowAngle)*this.dropShadowDistance),r=Math.round(Math.sin(this.dropShadowAngle)*this.dropShadowDistance);e.startsWith("#")&&t<1&&(e+=(t*255|0).toString(16).padStart(2,"0"));const i=`${n}px ${r}px`;return this.dropShadowBlur>0?`text-shadow: ${i} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${i} ${e}`}reset(){Object.assign(this,Fm.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=nt.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let Zx=Fm;Zx.availableFonts={};Zx.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const zm=class extends fm{constructor(e="",t={}){super(mt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const n=new Image,r=mt.from(n,{scaleMode:nt.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Zt,r.trim=new Zt,this.texture=r;const i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject"),c=document.createElementNS(o,"div"),u=document.createElementNS(o,"style");a.setAttribute("width","10000"),a.setAttribute("height","10000"),a.style.overflow="hidden",s.appendChild(a),this.maxWidth=zm.defaultMaxWidth,this.maxHeight=zm.defaultMaxHeight,this._domElement=c,this._styleElement=u,this._svgRoot=s,this._foreignObject=a,this._foreignObject.appendChild(u),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=zm.defaultAutoResolution,this._resolution=zm.defaultResolution??nt.RESOLUTION,this.text=e,this.style=t}measureText(e){var a,c;const{text:t,style:n,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(r)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const i=this._domElement.getBoundingClientRect();this._svgRoot.remove();const o=Math.min(this.maxWidth,Math.ceil(i.width)),s=Math.min(this.maxHeight,Math.ceil(i.height));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",s.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(a=this._style)==null?void 0:a.toCSS(r)}),this._styleElement.textContent=(c=this._style)==null?void 0:c.toGlobalCSS()),{width:o+n.padding*2,height:s+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:r}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:i,height:o}=this.measureText();n.width=r.width=Math.ceil(Math.max(1,i)),n.height=r.height=Math.ceil(Math.max(1,o)),this._loading||(this._loading=!0,await new Promise(s=>{r.onload=async()=>{await t.onBeforeDraw(),this._loading=!1,n.src=r.src,r.onload=null,r.src="",this.updateTexture(),s()};const a=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(a)}`}))}get source(){return this._image}updateTexture(){const{style:e,texture:t,_image:n,resolution:r}=this,{padding:i}=e,{baseTexture:o}=t;t.trim.width=t._frame.width=n.width/r,t.trim.height=t._frame.height=n.height/r,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),o.setRealSize(n.width,n.height,r),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}_renderCanvas(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(e)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds(e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){var n,r,i,o,s;typeof e=="boolean"&&(e={children:e}),e=Object.assign({},zm.defaultDestroyOptions,e),super.destroy(e);const t=null;this.ownsStyle&&((n=this._style)==null||n.cleanFonts()),this._style=t,(r=this._svgRoot)==null||r.remove(),this._svgRoot=t,(i=this._domElement)==null||i.remove(),this._domElement=t,(o=this._foreignObject)==null||o.remove(),this._foreignObject=t,(s=this._styleElement)==null||s.remove(),this._styleElement=t,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=t,this._image.src="",this._image=t}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(e){this.updateText(!0);const t=Od(this.scale.x)||1;this.scale.x=t*e/this._image.width/this.resolution,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(e){this.updateText(!0);const t=Od(this.scale.y)||1;this.scale.y=t*e/this._image.height/this.resolution,this._height=e}get style(){return this._style}set style(e){this._style!==e&&(e=e||{},e instanceof Zx?(this.ownsStyle=!1,this._style=e):e instanceof Gu?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=Zx.from(e)):(this.ownsStyle=!0,this._style=new Zx(e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(e){e=String(e===""||e===null||e===void 0?" ":e),e=this.sanitiseText(e),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}sanitiseText(e){return e.replace(/

/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let FA=zm;FA.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};FA.defaultMaxWidth=2024;FA.defaultMaxHeight=2024;FA.defaultAutoResolution=!0;function w8e(e,t){return{constructor:e,meta:t}}function _8e(e,t,n,r,i){nie(e,t,n||0,r||e.length-1,i||S8e)}function nie(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=t-n+1,a=Math.log(o),c=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(t-s*c/o+u)),h=Math.min(r,Math.floor(t+(o-s)*c/o+u));nie(e,t,f,h,i)}var p=e[t],g=n,v=r;for(Xb(e,n,t),i(e[r],p)>0&&Xb(e,n,r);g0;)v--}i(e[n],p)===0?Xb(e,n,v):(v++,Xb(e,v,r)),v<=t&&(n=v+1),t<=v&&(r=v-1)}}function Xb(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function S8e(e,t){return et?1:0}class E8e{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let n=this.data;const r=[];if(!DS(t,n))return r;const i=this.toBBox,o=[];for(;n;){for(let s=0;s=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)}_split(t,n){const r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),a=jm(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,Tm(r,this.toBBox),Tm(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(r,a)}_splitRoot(t,n){this.data=jm([t,n]),this.data.height=t.height+1,this.data.leaf=!1,Tm(this.data,this.toBBox)}_chooseSplitIndex(t,n,r){let i,o=1/0,s=1/0;for(let a=n;a<=r-n;a++){const c=yx(t,0,a,this.toBBox),u=yx(t,a,r,this.toBBox),f=I8e(c,u),h=h$(c)+h$(u);f=n;u--){const f=t.children[u];bx(a,t.leaf?o(f):f),c+=LS(a)}return c}_adjustParentBBoxes(t,n,r){for(let i=r;i>=0;i--)bx(n[i],t)}_condense(t){for(let n=t.length-1,r;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():Tm(t[n],this.toBBox)}}function C8e(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function jm(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function BV(e,t,n,r,i){const o=[t,n];for(;o.length;){if(n=o.pop(),t=o.pop(),n-t<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;_8e(e,s,t,n,i),o.push(t,s,s,n)}}class R8e extends E8e{toBBox(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}compareMinX(t,n){return t.left-n.left}compareMinY(t,n){return t.top-n.top}}const $V={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var rie={},dT=Xt&&Xt.__assign||function(){return dT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1:-1}),m$}var U8e=z8e()?Math.sign:j8e(),H8e=U8e,W8e=Math.abs,G8e=Math.floor,V8e=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:H8e(e)*G8e(W8e(e)))},q8e=V8e,X8e=Math.max,Y8e=function(e){return X8e(0,q8e(e))},iie=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},K8e=Dv,oie=function(e){if(!K8e(e))throw new TypeError("Cannot use null or undefined");return e},Q8e={exports:{}},J8e=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},g$,zV;function Z8e(){return zV||(zV=1,g$=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),g$}var v$,jV;function eHe(){if(jV)return v$;jV=1;var e=Dv,t=Object.keys;return v$=function(n){return t(e(n)?Object(n):n)},v$}var y$,UV;function tHe(){return UV||(UV=1,y$=Z8e()()?Object.keys:eHe()),y$}var b$,HV;function nHe(){if(HV)return b$;HV=1;var e=tHe(),t=oie,n=Math.max;return b$=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},w$}var xHe=yHe()?String.prototype.contains:bHe(),LE=cie,GV=vHe,uie=sie,die=F8e,e1=xHe,wHe=lie.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],LE(e)?(n=e1.call(e,"c"),r=e1.call(e,"e"),i=e1.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?uie(die(o),s):s};wHe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],LE(t)?GV(t)?LE(n)?GV(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,LE(e)?(r=e1.call(e,"c"),i=e1.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?uie(die(o),s):s};var Zw=lie.exports,F5={exports:{}};(function(e,t){var n=Zw,r=iie,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=6&&(n-=6),kt(n<1?255*((t-e)*n+e):n<3?255*t:n<4?255*((t-e)*(4-n)+e):255*e)},Xi=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:z$(i,r,(e/=60)+2),g:z$(i,r,e),b:z$(i,r,e-2)}},RU=function(e,t,n,r){return{r:kt(255*(1-e)*(r=1-r)),g:kt(255*(1-t)*r),b:kt(255*(1-n)*r)}},vie=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=i&&(i-t)/i,s=i&&(i-n)/i;return{c:kt(100*(i&&(i-e)/i)),m:kt(100*o),y:kt(100*s),k:kt(100*r)}},hv=function(e,t,n,r){r===void 0&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=i-o,a=0,c=0,u=(i+o)/2;if(s!==0){switch(i){case e:a=(t-n)/s%6;break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}(a=kt(60*a))<0&&(a+=360),c=s/(1-Math.abs(2*u-1))}return{h:a,s:kt(100*c),l:kt(100*u),a:r}},cq=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,s=0,a=0,c=0;return(t?n:r).find(function(u,f){return e>=u[0]&&e360||e<0)&&(e-=360*Math.floor(e/360)),e},Bo=function(e){return typeof e=="string"&&(e=Nv.test(e)?jA(e)/100:+e),isNaN(+e)||e>1?1:kt(e)},Bv=function(e,t,n){return t.reduce(function(r,i){return z5(z5([],r,!0),[cn(cn({},e),{h:n===Yo.ADDITIVE?rw(e.h+i):rw(cq(cq(e.h,!1)+i,!0))})],!1)},[cn({},e)])},VHe=function(e,t){return Bv(e,[30,-30],t)},qHe=function(e,t){return Bv(e,[180],t)},XHe=function(e,t){return Bv(e,[150,-150],t)},YHe=function(e,t){return Bv(e,[120,-120],t)},KHe=function(e,t){return Bv(e,[60,-120,180],t)},QHe=function(e,t){return Bv(e,[90,-90,180],t)},ua=function(e){return typeof e=="string"?function(t){var n;if(Object.keys(qt).some(function(r){if(xx[r].test(t))return n=r,!0}),!n&&~mie.indexOf(t)&&(n=qt.HEX),!n)throw new Error(WHe);return n}(e):function(t){var n,r=!1,i=gie(Object.keys(t));if(j5[i]&&(n=j5[i]),n&&n===qt.RGB){var o=Object.entries(t).some(function(a){return!U5.test("".concat(a[1]))}),s=Object.entries(t).some(function(a){return!(Nv.test("".concat(a[1]))||!U5.test("".concat(a[1]))&&!isNaN(+a[1])&&+a[1]<=255)});o&&s&&(r=!0),o||(n=qt.HEX)}if(!n||r)throw new Error(GHe);return n}(e)},JHe=((Qb={})[qt.HEX]=function(e){var t=(~mie.indexOf(e)?fT[e]:e).match(xx.HEX),n={r:NS(t[1]||t[5]),g:NS(t[2]||t[6]),b:NS(t[3]||t[7])},r=t[4]||t[8];return r!==void 0&&(n.a=NS(r)/255),n},Qb[qt.RGB]=function(e){var t=e.match(xx.RGB),n=yp(t[1]||t[5]),r=yp(t[2]||t[6]),i=yp(t[3]||t[7]),o=t[4]||t[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return o!==void 0&&(s.a=Bo(o)),s},Qb[qt.HSL]=function(e){var t=e.match(xx.HSL),n=rw(t[1]||t[5]),r=hT(t[2]||t[6]),i=hT(t[3]||t[7]),o=t[4]||t[8],s=Xi(n,r,i);return o!==void 0&&(s.a=Bo(o)),s},Qb[qt.CMYK]=function(e){var t=e.match(xx.CMYK),n=Ld(t[1]||t[6]),r=Ld(t[2]||t[7]),i=Ld(t[3]||t[8]),o=Ld(t[4]||t[9]),s=t[5]||t[10],a=RU(n,r,i,o);return s!==void 0&&(a.a=Bo(s)),a},Qb),ZHe=((Jb={})[qt.HEX]=function(e){var t={r:yp("".concat(e.r)),g:yp("".concat(e.g)),b:yp("".concat(e.b))};return po(e,"a")&&(t.a=Math.min(yp("".concat(e.a),!0),1)),t},Jb[qt.RGB]=function(e){return this.HEX(e)},Jb[qt.HSL]=function(e){var t=hT("".concat(e.s)),n=hT("".concat(e.l)),r=Xi(rw(e.h),t,n);return po(e,"a")&&(r.a=Bo(e.a)),r},Jb[qt.CMYK]=function(e){var t=Ld("".concat(e.c)),n=Ld("".concat(e.m)),r=Ld("".concat(e.y)),i=Ld("".concat(e.k)),o=RU(t,n,r,i);return po(e,"a")&&(o.a=Bo(e.a)),o},Jb),Qp=function(e,t){return t===void 0&&(t=ua(e)),typeof e=="string"?JHe[t](e):ZHe[t](e)},an=((gu={})[qt.HEX]=function(e){return{r:BS(e.r),g:BS(e.g),b:BS(e.b)}},gu.HEXA=function(e){var t=an.HEX(e);return t.a=po(e,"a")?BS(255*e.a):"0xFF",t},gu[qt.RGB]=function(e,t){return po(e,"a")&&delete e.a,Rp(e,t)},gu.RGBA=function(e,t){return e.a=po(e,"a")?kt(e.a):1,Rp(e,t)},gu[qt.HSL]=function(e,t){var n=hv(e.r,e.g,e.b);return delete n.a,fg(n,t)},gu.HSLA=function(e,t){var n=an.HSL(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},gu[qt.CMYK]=function(e,t){return eWe(vie(e.r,e.g,e.b),t)},gu.CMYKA=function(e,t){var n=an.CMYK(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},gu),uq=function(e,t,n,r){var i=ua(e),o=typeof e=="string",s=Qp(e,i),a=typeof e=="string"&&po(s,"a")||typeof e!="string"&&po(e,"a"),c=hv(s.r,s.g,s.b,s.a);a||delete c.a;var u=n?c.l/(t+1):(100-c.l)/(t+1),f=Array(t).fill(null).map(function(h,p){return cn(cn({},c),{l:c.l+u*(p+1)*(1-2*+n)})});switch(i){case qt.HEX:default:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?a?on.HEX(Rp(cn(cn({},p),{a:kt(255*p.a)}),r)):on.HEX(Rp(p,r)):a?an.HEXA(p):an.HEX(p)});case qt.RGB:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?on.RGB(Rp(p,r)):a?an.RGBA(p,r):an.RGB(p,r)});case qt.HSL:return f.map(function(h){return o?on.HSL(fg(h,r)):a?an.HSLA(cn(cn({},Xi(h.h,h.s,h.l)),{a:h.a}),r):an.HSL(Xi(h.h,h.s,h.l),r)})}},km=((Vh={buildHarmony:function(e,t,n,r){var i=ua(e),o=Qp(e,i),s=hv(o.r,o.g,o.b,o.a),a=typeof e=="string"&&po(o,"a")||typeof e!="string"&&po(e,"a"),c=typeof e=="string";switch(i){case qt.HEX:default:return a?this.HEXA(fg(s,0),t,n,c):this.HEX(fg(s,0),t,n,c);case qt.HSL:return a?this.HSLA(s,t,n,c,r):this.HSL(s,t,n,c,r);case qt.RGB:return a?this.RGBA(s,t,n,c,r):this.RGB(s,t,n,c,r)}}})[qt.HEX]=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(Xi(i.h,i.s,i.l)):an.HEX(Xi(i.h,i.s,i.l))})},Vh.HEXA=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(cn(cn({},Xi(i.h,i.s,i.l)),{a:255*Bo(i.a)})):an.HEXA(cn(cn({},Xi(i.h,i.s,i.l)),{a:Bo(i.a)}))})},Vh[qt.RGB]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Rp(Xi(o.h,o.s,o.l),i)):an.RGB(Xi(o.h,o.s,o.l),i)})},Vh.RGBA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Rp(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)):an.RGBA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Vh[qt.HSL]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(fg({h:o.h,s:o.s,l:o.l},i)):an.HSL(Xi(o.h,o.s,o.l),i)})},Vh.HSLA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(fg(cn(cn({},o),{a:Bo(o.a)}),i)):an.HSLA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Vh),Am=((qh={mix:function(e,t){var n,r,i,o,s,a,c,u,f,h,p,g,v,y,S,w=e.map(function(I){var A=ua(I);return Qp(I,A)}),b=t===Yo.SUBTRACTIVE?w.map(function(I){var A,k,O,D,N,H,G,z,L,F,j,V,W,K,X=(A=I.r,k=I.g,O=I.b,D=Math.min(A,k,O),N=Math.min(255-A,255-k,255-O),H=A-D,G=k-D,z=O-D,L=Math.min(H,G),F=H-L,j=(G+L)/2,V=(z+G-L)/2,W=Math.max(F,j,V)/Math.max(H,G,z),K=isNaN(W)||W===1/0||W<=0?1:W,{r:F/K+N,y:j/K+N,b:V/K+N});return po(I,"a")&&(X.a=I.a),X}):null;function x(I){var A=t===Yo.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return I.reduce(function(k,O){var D=po(O,"a")?O.a:1,N={r:Math.min(k.r+O.r*D,255),b:Math.min(k.b+O.b*D,255),a:1-(1-D)*(1-k.a)},H="g"in k?k.g:k.y,G="g"in O?O.g:O.y;return cn(cn({},N),t===Yo.ADDITIVE?{g:Math.min(H+G*D,255)}:{y:Math.min(H+G*D,255)})},A)}if(t===Yo.ADDITIVE)n=x(w);else{var E=x(b);r=E.r,i=E.y,o=E.b,s=Math.min(r,i,o),a=Math.min(255-r,255-i,255-o),c=r-s,u=i-s,f=o-s,h=Math.min(u,f),p=c+u-h,g=u+h,v=2*(f-h),y=Math.max(p,g,v)/Math.max(c,u,f),S=isNaN(y)||y===1/0||y<=0?1:y,(n={r:p/S+a,g:g/S+a,b:v/S+a}).a=E.a}return{r:kt(n.r),g:kt(n.g),b:kt(n.b),a:il(n.a,0,1)}}})[qt.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?on.HEX(r):an.HEX(r)},qh.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*Bo(r.a):Bo(r.a),n?on.HEX(r):an.HEXA(r)},qh[qt.RGB]=function(e,t,n,r){var i=this.mix(e,t);return delete i.a,n?on.RGB(i):an.RGB(i,r)},qh.RGBA=function(e,t,n,r){var i=this.mix(e,t);return n?on.RGB(i):an.RGBA(i,r)},qh[qt.HSL]=function(e,t,n,r){var i=this.mix(e,t),o=hv(i.r,i.g,i.b);return delete i.a,delete o.a,n?on.HSL(o):an.HSL(i,r)},qh.HSLA=function(e,t,n,r){var i=this.mix(e,t),o=hv(i.r,i.g,i.b,i.a);return n?on.HSL(o):an.HSLA(i,r)},qh),Rp=function(e,t){return cn({r:kt(e.r,t),g:kt(e.g,t),b:kt(e.b,t)},po(e,"a")?{a:kt(e.a,t)}:{})},fg=function(e,t){return cn({h:kt(e.h,t),s:kt(e.s,t),l:kt(e.l,t)},po(e,"a")?{a:kt(e.a,t)}:{})},eWe=function(e,t){return{c:kt(e.c,t),m:kt(e.m,t),y:kt(e.y,t),k:kt(e.k,t)}},ld=function(e,t,n,r,i,o){var s=i(Qp(e,t),r);return n?o(s):s},Im=function(e,t,n,r,i,o,s){n<1&&(n=5);var a=function(c,u,f){var h=f-1,p=(u.r-c.r)/h,g=(u.g-c.g)/h,v=(u.b-c.b)/h,y=Bo(c.a),S=(Bo(u.a)-y)/h;return Array(f).fill(null).map(function(w,b){return b===0?c:b===h?u:{r:kt(c.r+p*b),g:kt(c.g+g*b),b:kt(c.b+v*b),a:kt(y+S*b)}})}(Qp(e),Qp(t),n);return a.map(function(c){var u=o(c,i);return r?s(u):u})},tWe=function(){function e(t,n){n===void 0&&(n=6),this.rgb=Qp(t),this._decimals=n,this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=cn(cn({},Xi(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=cn(cn({},RU(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=hv(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=vie(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setDecimals=function(t){return this._decimals=t,this},e.prototype.setH=function(t){return this.hsl.h=rw(t),this.updateRGBAndCMYK()},e.prototype.setS=function(t){return this.hsl.s=il(t,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(t){return this.hsl.l=il(t,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(t){return this.rgb.r=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(t){return this.rgb.g=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(t){return this.rgb.b=il(t,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(t){return this.hsl.a=this.rgb.a=il(t,0,1),this},e.prototype.setC=function(t){return this.cmyk.c=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(t){return this.cmyk.m=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(t){return this.cmyk.y=il(t,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(t){return this.cmyk.k=il(t,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"H",{get:function(){return kt(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return kt(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return kt(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return kt(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return kt(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return kt(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return kt(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return kt(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return kt(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return kt(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return kt(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return an.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return an.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return cn(cn({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return cn(cn({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return cn(cn({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),e.toHEX=function(t,n){n===void 0&&(n=!0);var r=ua(t);return ld(t,r,n,0,an.HEX,on.HEX)},e.toHEXA=function(t,n){n===void 0&&(n=!0);var r=ua(t);return ld(t,r,n,0,an.HEXA,on.HEX)},e.toRGB=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.RGB,on.RGB)},e.toRGBA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.RGBA,on.RGB)},e.toHSL=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.HSL,on.HSL)},e.toHSLA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.HSLA,on.HSL)},e.toCMYK=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.CMYK,on.CMYK)},e.toCMYKA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=ua(t);return ld(t,i,n,r,an.CMYKA,on.CMYK)},e.getBlendHEX=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HEX,on.HEX)},e.getBlendHEXA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HEXA,on.HEX)},e.getBlendRGB=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.RGB,on.RGB)},e.getBlendRGBA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.RGBA,on.RGB)},e.getBlendHSL=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HSL,on.HSL)},e.getBlendHSLA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Im(t,n,r,i,o,an.HSLA,on.HSL)},e.getMixHEX=function(t,n,r){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),Am.HEX(t,n,r)},e.getMixHEXA=function(t,n,r){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),Am.HEXA(t,n,r)},e.getMixRGB=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.RGB(t,n,r,i)},e.getMixRGBA=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.RGBA(t,n,r,i)},e.getMixHSL=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.HSL(t,n,r,i)},e.getMixHSLA=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Am.HSLA(t,n,r,i)},e.getShades=function(t,n,r){return r===void 0&&(r=6),uq(t,n,!0,r)},e.getTints=function(t,n,r){return r===void 0&&(r=6),uq(t,n,!1,r)},e.getHarmony=function(t,n,r,i){return n===void 0&&(n=bu.COMPLEMENTARY),r===void 0&&(r=Yo.ADDITIVE),i===void 0&&(i=6),function(o,s,a,c){var u;return(u={},u[bu.ANALOGOUS]=km.buildHarmony(s,VHe,c,a),u[bu.COMPLEMENTARY]=km.buildHarmony(s,qHe,c,a),u[bu.SPLIT_COMPLEMENTARY]=km.buildHarmony(s,XHe,c,a),u[bu.TRIADIC]=km.buildHarmony(s,YHe,c,a),u[bu.TETRADIC]=km.buildHarmony(s,KHe,c,a),u[bu.SQUARE]=km.buildHarmony(s,QHe,c,a),u)[o]}(n,t,i,r)},e}();const nWe={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:Ji,PI:rWe}=Math,e_=(e,t)=>new tWe(e).setA(t??nWe.alpha).RGBA,iWe=(e,t)=>e_(e,t);function cf(e,t){return{width:e.width*t.scale.x,height:e.height*t.scale.y,x:e.x*t.scale.x+t.x,y:e.y*t.scale.y+t.y}}const oWe={draw(e,t,n){if(e.text){const r=cf(e,{x:e.textX,y:e.textY,scale:{x:1,y:1}}),i=cf(r,n);t.font=`${e.fontSize*n.scale.x}px Arial`,t.fillStyle=e_(e.fontColor,e.alpha),t.fillText(e.text,i.x,i.y)}},test(e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},sWe={draw(e,t,n){const{x:r,y:i,width:o,height:s}=cf(e,n);t.fillStyle=e_(e.fill,e.alpha),t.fillRect(Ji(r),Ji(i),Ji(o)||1,Ji(s)||1)},test(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}},aWe={draw(e,t,n){t.fillStyle=e_(e.fill,e.alpha),t.beginPath();const r=cf({...e,width:e.radius,height:e.radius},n);t.ellipse(Ji(r.x),Ji(r.y),Ji(r.width),Ji(r.height),0,0,2*rWe),t.fill()},test(e){return{left:e.x-e.radius,right:e.x+e.radius,top:e.y-e.radius,bottom:e.y+e.radius}}},lWe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.fillStyle=e_(e.fill,e.alpha);const{x:o,y:s}=cf({...r,width:0,height:0},n);t.moveTo(Ji(o),Ji(s));for(const a of i){const{x:c,y:u}=cf({...a,width:0,height:0},n);t.lineTo(Ji(c),Ji(u))}t.closePath(),t.fill()},test(e){var t,n,r,i;return{left:((t=Qt.minBy(e.points,"x"))==null?void 0:t.x)??0,right:((n=Qt.maxBy(e.points,"x"))==null?void 0:n.x)??0,top:((r=Qt.minBy(e.points,"y"))==null?void 0:r.y)??0,bottom:((i=Qt.maxBy(e.points,"y"))==null?void 0:i.y)??0}}},cWe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.lineCap="round",t.lineJoin="round",t.strokeStyle=iWe(e.fill,e.alpha);const{x:o,y:s,width:a}=cf({...r,width:e.lineWidth,height:0},n);t.lineWidth=Ji(a),t.moveTo(Ji(o),Ji(s));for(const c of i){const{x:u,y:f}=cf({...c,width:0,height:0},n);t.lineTo(Ji(u),Ji(f))}t.stroke()},test(e){var t,n,r,i;return{left:((t=Qt.minBy(e.points,"x"))==null?void 0:t.x)??0-e.lineWidth??0,right:((n=Qt.maxBy(e.points,"x"))==null?void 0:n.x)??0+e.lineWidth??0,top:((r=Qt.minBy(e.points,"y"))==null?void 0:r.y)??0-e.lineWidth??0,bottom:((i=Qt.maxBy(e.points,"y"))==null?void 0:i.y)??0+e.lineWidth??0}}},uWe={text:oWe,path:cWe,rect:sWe,polygon:lWe,circle:aWe},{log2:dWe,max:fWe}=Math,dq=e=>Qt.floor(dWe(e+1));function fq({right:e,left:t,bottom:n,top:r},i){const o=fWe(dq(e-t),dq(n-r))-i,s=2**o,a={left:Qt.floor(t/s),right:Qt.ceil((e+1)/s),top:Qt.floor(r/s),bottom:Qt.ceil((n+1)/s)};return{zoom:o,order:s,tiles:Qt.shuffle(O8e({x:Qt.range(a.left,a.right+1),y:Qt.range(a.top,a.bottom+1)}).map(c=>{const u=c.x*s,f=c.y*s;return{tile:c,bounds:{left:u-s/2,right:u+s/2,top:f-s/2,bottom:f+s/2}}}))}}const hWe=""+new URL("D2Renderer.worker-5bd9e5cc.js",import.meta.url).href;class pWe extends Worker{constructor(){super(hWe,{type:"module"})}call(t,n,r=[]){return this.postMessage({action:t,payload:n},r)}on(t,n){const r=i=>{const{action:o,payload:s}=i.data;o===t&&n(s)};return this.addEventListener("message",r),()=>this.removeEventListener("message",r)}}function mWe(e,t){return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}const{max:hq,min:pq}=Math,yie=class bie extends fm{constructor(t,n){super(t),this.bounds=n,this.age=bie.age++}};yie.age=0;let gWe=yie;function zS(e,t){return Qt.isNaN(e)?t:e}var ca,qr,Sd,Su,Ti,Ul,Ed,Cd,bT,xT,xie,wT,wie,Og,cw,_T,ST,_ie,ET,Sie,CT,Eie,TT,Cie,uw,H5,dw,W5,kT,Tie,fw,G5,AT,kie,IT,Aie;class vWe extends zHe{constructor(){super(...arguments);yr(this,xT);yr(this,wT);yr(this,ST);yr(this,ET);yr(this,CT);yr(this,TT);yr(this,uw);yr(this,dw);yr(this,kT);yr(this,fw);yr(this,AT);yr(this,IT);yr(this,ca,void 0);yr(this,qr,void 0);yr(this,Sd,void 0);yr(this,Su,void 0);yr(this,Ti,$V);yr(this,Ul,[]);yr(this,Ed,new R8e(16));yr(this,Cd,void 0);yr(this,bT,0);yr(this,Og,Qt.once(()=>Qt.debounce(()=>oo(this,uw,H5).call(this),rt(this,Ti).debounceInterval)));yr(this,cw,Qt.once(()=>Qt.throttle(()=>oo(this,dw,W5).call(this),rt(this,Ti).refreshInterval)));yr(this,_T,Qt.once(()=>Qt.throttle(n=>oo(this,kT,Tie).call(this,n),rt(this,Ti).refreshInterval)))}getInstance(){return{app:rt(this,ca),viewport:rt(this,qr)}}fitCamera(){var r,i,o,s;const n=Qt.values(rt(this,Ed).all()).flat();if(n.length){const a=Qt.reduce(n,(c,u)=>({top:zS(pq(c.top,u.top),c.top),left:zS(pq(c.left,u.left),c.left),bottom:zS(hq(c.bottom,u.bottom),c.bottom),right:zS(hq(c.right,u.right),c.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(s=(r=rt(this,qr))==null?void 0:r.animate)==null||s.call(r,{position:new Lt((a.left+a.right)/2,(a.top+a.bottom)/2),scale:((o=(i=rt(this,qr))==null?void 0:i.findFit)==null?void 0:o.call(i,a.right-a.left,a.bottom-a.top))*.8,ease:"easeOutExpo",time:rt(this,Ti).animationDuration*1.5,callbackOnComplete:()=>rt(this,Og).call(this)()})}}initialCamera(){var n,r;(r=(n=rt(this,qr))==null?void 0:n.animate)==null||r.call(n,{scale:1,ease:"easeOutExpo",time:rt(this,Ti).animationDuration*1.5,callbackOnComplete:()=>rt(this,Og).call(this)()})}getView(){var n;return(n=rt(this,ca))==null?void 0:n.view}setup(n){const r={...$V,...n};oo(this,wT,wie).call(this,r),this.setOptions(r),oo(this,ET,Sie).call(this,r)}destroy(){Qt.map(rt(this,Ul),n=>n.terminate()),rt(this,ca).destroy()}add(n){const r=e3e(),i=Qt.map(n,({component:o,meta:s})=>({...uWe[o.$].test(o),component:o,meta:s,index:oo(this,xT,xie).call(this)}));return rt(this,Ed).load(i),Qt.map(rt(this,Ul),o=>o.call("add",[Qt.map(n,"component"),r])),()=>{for(const o of i)rt(this,Ed).remove(o);Qt.map(rt(this,Ul),o=>o.call("remove",[r]))}}setOptions(n){const r={...rt(this,Ti),...n};oo(this,CT,Eie).call(this,r),du(this,Ti,r),oo(this,uw,H5).call(this),oo(this,dw,W5).call(this)}}ca=new WeakMap,qr=new WeakMap,Sd=new WeakMap,Su=new WeakMap,Ti=new WeakMap,Ul=new WeakMap,Ed=new WeakMap,Cd=new WeakMap,bT=new WeakMap,xT=new WeakSet,xie=function(){return ZU(this,bT)._++},wT=new WeakSet,wie=function(n){du(this,ca,new CU({backgroundAlpha:0,width:n.screenSize.width,height:n.screenSize.height,autoDensity:!0,resolution:2})),du(this,qr,new Vje({stopPropagation:!0,screenWidth:n.screenSize.width,screenHeight:n.screenSize.height,events:rt(this,ca).renderer.events,passiveWheel:!1})),rt(this,qr).on("clicked",r=>{const{x:i,y:o}=r.world,s=rt(this,Ed).search({minX:i,minY:o,maxX:i+Number.MIN_VALUE,maxY:o+Number.MIN_VALUE});this.emit("click",r.event,{world:r.world,components:s})}),rt(this,ca).stage.addChild(rt(this,qr)),rt(this,qr).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),rt(this,qr).on("moved",()=>{rt(this,Og).call(this)(),rt(this,cw).call(this)()}),rt(this,qr).on("mousemove",r=>rt(this,_T).call(this)(r)),du(this,Sd,new us),rt(this,qr).addChild(rt(this,Sd)),du(this,Su,new fv),rt(this,qr).addChild(rt(this,Su)),du(this,Cd,new fv),rt(this,qr).addChild(rt(this,Cd)),oo(this,ST,_ie).call(this)},Og=new WeakMap,cw=new WeakMap,_T=new WeakMap,ST=new WeakSet,_ie=function(){const{dynamicResolution:n}=rt(this,Ti),{dtMax:r,dtMin:i,increment:o,intervalMs:s,maxScale:a,minScale:c}=n,u=Qt.floor(Si.targetFPMS*s);let f=0,h=0,p=1;rt(this,ca).ticker.add(g=>{const{tileResolution:v}=rt(this,Ti);if(!(f%u)){const y=h/u;p=Qt.clamp(y>=r?p+o:y<=i?p-o:p,c,a),Qt.map(rt(this,Ul),S=>{S.call("setTileResolution",[{width:Qt.ceil(v.width/p),height:Qt.ceil(v.height/p)}])}),h=0}h+=g,f++})},ET=new WeakSet,Sie=function(n){Qt.map(rt(this,Ul),r=>r.terminate()),du(this,Ul,Qt.times(n.workerCount,r=>{const i=new pWe;return i.on("update",o=>oo(this,TT,Cie).call(this,o)),i.onerror=o=>{throw o},i.call("setup",[{...n,workerIndex:r}]),i}))},CT=new WeakSet,Eie=function(n){var o,s,a,c;const{width:r,height:i}=n.screenSize;(a=(s=(o=rt(this,ca))==null?void 0:o.renderer)==null?void 0:s.resize)==null||a.call(s,r,i),(c=rt(this,qr))==null||c.resize(r,i)},TT=new WeakSet,Cie=function({bounds:n,bitmap:r}){const i=mt.from(r);oo(this,AT,kie).call(this,i,n)},uw=new WeakSet,H5=function(){const{top:n,bottom:r,left:i,right:o}=rt(this,qr);Qt.map(rt(this,Ul),s=>s.call("setFrustum",[{top:n,bottom:r,left:i,right:o}]))},dw=new WeakSet,W5=function(){var s,a,c,u,f;const{tileSubdivision:n,accentColor:r}=rt(this,Ti),{tiles:i}=fq(rt(this,qr),n),o=oo(this,fw,G5).call(this);(s=rt(this,Su))==null||s.clear(),(a=rt(this,Su))==null||a.lineStyle(1*o,r,.5),(c=rt(this,Su))==null||c.beginFill(r,.05);for(const{bounds:h,tile:p}of i)Qt.find((u=rt(this,Sd))==null?void 0:u.children,g=>Qt.isEqual(g.bounds,h))||(f=rt(this,Su))==null||f.drawRect(h.left,h.top,h.right-h.left,h.bottom-h.top)},kT=new WeakSet,Tie=function(n){var c;const{accentColor:r}=rt(this,Ti),i=oo(this,fw,G5).call(this),{x:o,y:s}=rt(this,qr).toWorld(n.globalX,n.globalY),a=rt(this,Ed).search({minX:o,minY:s,maxX:o+Number.MIN_VALUE,maxY:s+Number.MIN_VALUE});rt(this,Cd).clear(),rt(this,Cd).lineStyle(2*i,r,1);for(const u of a)(c=rt(this,Cd))==null||c.drawRect(u.left,u.top,u.right-u.left,u.bottom-u.top)},fw=new WeakSet,G5=function(){const{right:n,left:r}=rt(this,qr),{width:i}=rt(this,Ti).screenSize;return(n-r)/i},AT=new WeakSet,kie=async function(n,r){var s;const{tileSubdivision:i}=rt(this,Ti),{tiles:o}=fq(rt(this,qr),i);if(Qt.find(o,a=>Qt.isEqual(a.bounds,r))){const a={x:(r.right-r.left)/n.width,y:(r.bottom-r.top)/n.height},c=new gWe(n,r);(s=rt(this,Sd))==null||s.addChild(c).setTransform(r.left,r.top,a.x,a.y),rt(this,cw).call(this)(),await oo(this,IT,Aie).call(this,c);for(const u of rt(this,Sd).children)mWe(u.bounds,r)&&u.age{const o=s=>{n.alpha+=s/Si.targetFPMS/rt(this,Ti).animationDuration,n.alpha>1&&(r.remove(o),i())};n.alpha=0,Qt.delay(()=>r.add(o),rt(this,Ti).animationDuration)})};const yWe=w8e(vWe,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),bWe={"d2-renderer":yWe};var xWe=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},PU={},wWe=Object.prototype.hasOwnProperty,_We;function mq(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function gq(e){try{return encodeURIComponent(e)}catch{return null}}function SWe(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=mq(r[1]),o=mq(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function EWe(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(wWe.call(e,i)){if(r=e[i],!r&&(r===null||r===_We||isNaN(r))&&(r=""),i=gq(i),r=gq(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}PU.stringify=EWe;PU.parse=SWe;var Iie=xWe,UA=PU,CWe=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Rie=/[\n\r\t]/g,TWe=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Pie=/:\d+$/,kWe=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,AWe=/^[a-zA-Z]:/;function OU(e){return(e||"").toString().replace(CWe,"")}var V5=[["#","hash"],["?","query"],function(t,n){return lc(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],vq={hash:1,query:1};function Oie(e){var t;typeof window<"u"?t=window:typeof Xt<"u"?t=Xt:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new hc(unescape(e.pathname),{});else if(i==="string"){r=new hc(e,{});for(o in vq)delete r[o]}else if(i==="object"){for(o in e)o in vq||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=TWe.test(e.href))}return r}function lc(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Mie(e,t){e=OU(e),e=e.replace(Rie,""),t=t||{};var n=kWe.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,a;return i?o?(a=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(a=n[2]+n[4],s=n[2].length):o?(a=n[3]+n[4],s=n[3].length):a=n[4],r==="file:"?s>=2&&(a=a.slice(2)):lc(r)?a=n[4]:r?i&&(a=a.slice(2)):s>=2&&lc(t.protocol)&&(a=n[4]),{protocol:r,slashes:i||lc(r),slashesCount:s,rest:a}}function IWe(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function hc(e,t,n){if(e=OU(e),e=e.replace(Rie,""),!(this instanceof hc))return new hc(e,t,n);var r,i,o,s,a,c,u=V5.slice(),f=typeof t,h=this,p=0;for(f!=="object"&&f!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=UA.parse),t=Oie(t),i=Mie(e||"",t),r=!i.protocol&&!i.slashes,h.slashes=i.slashes||r&&t.slashes,h.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||AWe.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!lc(h.protocol)))&&(u[3]=[/(.*)/,"pathname"]);p{const n=[];for(const{transport:r,url:i,key:o,disabled:s}of e??[])if(!s){const a=new Die[r].constructor({url:i});n.push({key:o,url:i,renderer:await a.get()})}t(()=>n)},[e,t]),C.jsx(C.Fragment,{})}const DWe={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function NWe({value:e,onValueChange:t}){const[n]=vA(),r=te.find(n,{key:e.key});function i(s){t==null||t(Uk(e,s))}const o=e!=null&&e.disabled?"disabled":r?"connected":"error";return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(Sne,{sx:{color:DWe[o]}}),C.jsx(ai,{}),C.jsxs(ht,{flex:1,children:[C.jsx(jt,{children:r?`${r.renderer.meta.name} ${r.renderer.meta.version}`:te.startCase(o)}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:r?C.jsxs(C.Fragment,{children:[C.jsx("span",{children:r.renderer.meta.description}),C.jsx("br",{}),C.jsxs("span",{children:["Contributes: ",te.join(r.renderer.meta.components,", ")]})]}):(e==null?void 0:e.url)||"No URL"})]}),C.jsx(vf,{title:`${e.disabled?"Enable":"Disable"} Renderer`,children:C.jsx(ht,{children:C.jsx(Yg,{checked:!e.disabled,onChange:(s,a)=>i({disabled:!a})})})}),C.jsx(Ij,{trigger:s=>C.jsx(cg,{icon:C.jsx(jk,{}),label:"Edit Renderer",onClick:s}),appBar:{children:C.jsx(Aj,{children:"Edit Renderer"})},children:C.jsxs(ht,{p:2.5,children:[C.jsx(Ew,{value:e.url,onChange:s=>i({url:s.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(Fx,{placeholder:"Renderer Type",items:te.entries(Die).map(([s,{name:a}])=>({value:s,label:a})),fullWidth:!0,value:e.transport,onChange:s=>i({transport:s})})]})})]})})}var MU={},HA={},t_={};(function(e){var t=Xt&&Xt.__extends||function(){var g=function(v,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var b in w)Object.prototype.hasOwnProperty.call(w,b)&&(S[b]=w[b])},g(v,y)};return function(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");g(v,y);function S(){this.constructor=v}v.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCNotification=e.createJSONRPCRequest=e.createJSONRPCSuccessResponse=e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.JSONRPCErrorException=e.isJSONRPCResponses=e.isJSONRPCResponse=e.isJSONRPCRequests=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0";var n=function(g){return typeof g=="string"||typeof g=="number"||g===null};e.isJSONRPCID=n;var r=function(g){return g.jsonrpc===e.JSONRPC&&g.method!==void 0&&g.result===void 0&&g.error===void 0};e.isJSONRPCRequest=r;var i=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCRequest)};e.isJSONRPCRequests=i;var o=function(g){return g.jsonrpc===e.JSONRPC&&g.id!==void 0&&(g.result!==void 0||g.error!==void 0)};e.isJSONRPCResponse=o;var s=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCResponse)};e.isJSONRPCResponses=s;var a=function(g,v,y){var S={code:g,message:v};return y!=null&&(S.data=y),S},c=function(g){t(v,g);function v(y,S,w){var b=g.call(this,y)||this;return Object.setPrototypeOf(b,v.prototype),b.code=S,b.data=w,b}return v.prototype.toObject=function(){return a(this.code,this.message,this.data)},v}(Error);e.JSONRPCErrorException=c,function(g){g[g.ParseError=-32700]="ParseError",g[g.InvalidRequest=-32600]="InvalidRequest",g[g.MethodNotFound=-32601]="MethodNotFound",g[g.InvalidParams=-32602]="InvalidParams",g[g.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}));var u=function(g,v,y,S){return{jsonrpc:e.JSONRPC,id:g,error:a(v,y,S)}};e.createJSONRPCErrorResponse=u;var f=function(g,v){return{jsonrpc:e.JSONRPC,id:g,result:v??null}};e.createJSONRPCSuccessResponse=f;var h=function(g,v,y){return{jsonrpc:e.JSONRPC,id:g,method:v,params:y}};e.createJSONRPCRequest=h;var p=function(g,v){return{jsonrpc:e.JSONRPC,method:g,params:v}};e.createJSONRPCNotification=p})(t_);var n_={};Object.defineProperty(n_,"__esModule",{value:!0});n_.DefaultErrorCode=void 0;n_.DefaultErrorCode=0;var yq=Xt&&Xt.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(f){try{u(r.next(f))}catch(h){s(h)}}function c(f){try{u(r.throw(f))}catch(h){s(h)}}function u(f){f.done?o(f.value):i(f.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},bq=Xt&&Xt.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{const r=({data:i})=>{i.id===n.id&&(this.rpc.receive(i),this.worker.removeEventListener("message",r))};this.worker.postMessage(n),this.worker.addEventListener("message",r)})}connect(){return this.worker.postMessage(this.options.url),new Promise(t=>{const n=()=>{t(),this.worker.removeEventListener("message",n)};this.worker.addEventListener("message",n)})}async disconnect(){this.worker.terminate()}async call(t,n){return await this.rpc.request(t,n)}}const ZWe={trace:async(e,t)=>{switch(e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:n}=t;try{return JSON.parse((n==null?void 0:n.content)??"")}catch{return{}}}}}};class eGe{constructor(t){gm(this,"handler");this.options=t;const{hostname:n}=Lie(t.url);this.handler=ZWe[n]}async connect(){}async disconnect(){}async call(t,n){return await this.handler(t,n)}}const pc=Object.create(null);pc.open="0";pc.close="1";pc.ping="2";pc.pong="3";pc.message="4";pc.upgrade="5";pc.noop="6";const DE=Object.create(null);Object.keys(pc).forEach(e=>{DE[pc[e]]=e});const q5={type:"error",data:"parser error"},Bie=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",$ie=typeof ArrayBuffer=="function",Fie=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,LU=({type:e,data:t},n,r)=>Bie&&t instanceof Blob?n?r(t):Sq(t,r):$ie&&(t instanceof ArrayBuffer||Fie(t))?n?r(t):Sq(new Blob([t]),r):r(pc[e]+(t||"")),Sq=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function Eq(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let U$;function tGe(e,t){if(Bie&&e.data instanceof Blob)return e.data.arrayBuffer().then(Eq).then(t);if($ie&&(e.data instanceof ArrayBuffer||Fie(e.data)))return t(Eq(e.data));LU(e,!1,n=>{U$||(U$=new TextEncoder),t(U$.encode(n))})}const Cq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",wx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,o,s,a,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|c&63;return u},rGe=typeof ArrayBuffer=="function",DU=(e,t)=>{if(typeof e!="string")return{type:"message",data:zie(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:iGe(e.substring(1),t)}:DE[n]?e.length>1?{type:DE[n],data:e.substring(1)}:{type:DE[n]}:q5},iGe=(e,t)=>{if(rGe){const n=nGe(e);return zie(n,t)}else return{base64:!0,data:e}},zie=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},jie=String.fromCharCode(30),oGe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{LU(o,!1,a=>{r[s]=a,++i===n&&t(r.join(jie))})})},sGe=(e,t)=>{const n=e.split(jie),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let H$;function US(e){return e.reduce((t,n)=>t+n.length,0)}function HS(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){a.enqueue(q5);break}i=f*Math.pow(2,32)+u.getUint32(4),r=3}else{if(US(n)e){a.enqueue(q5);break}}}})}const Uie=4;function li(e){if(e)return cGe(e)}function cGe(e){for(var t in li.prototype)e[t]=li.prototype[t];return e}li.prototype.on=li.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};li.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};li.prototype.off=li.prototype.removeListener=li.prototype.removeAllListeners=li.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Hie(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const uGe=pa.setTimeout,dGe=pa.clearTimeout;function VA(e,t){t.useNativeTimers?(e.setTimeoutFn=uGe.bind(pa),e.clearTimeoutFn=dGe.bind(pa)):(e.setTimeoutFn=pa.setTimeout.bind(pa),e.clearTimeoutFn=pa.clearTimeout.bind(pa))}const fGe=1.33;function hGe(e){return typeof e=="string"?pGe(e):Math.ceil((e.byteLength||e.size)*fGe)}function pGe(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function mGe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function gGe(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function Gie(){const e=Aq(+new Date);return e!==kq?(Tq=0,kq=e):e+"."+Aq(Tq++)}for(;WS{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};sGe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,oGe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Gie()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new cc(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class cc extends li{constructor(t,n){super(),VA(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=Hie(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new qie(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=cc.requestsCount++,cc.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=xGe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete cc.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}cc.requestsCount=0;cc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Iq);else if(typeof addEventListener=="function"){const e="onpagehide"in pa?"pagehide":"unload";addEventListener(e,Iq,!1)}}function Iq(){for(let e in cc.requests)cc.requests.hasOwnProperty(e)&&cc.requests[e].abort()}const BU=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),GS=pa.WebSocket||pa.MozWebSocket,Rq=!0,SGe="arraybuffer",Pq=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class EGe extends NU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Pq?{}:Hie(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Rq&&!Pq?n?new GS(t,n):new GS(t):new GS(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{Rq&&this.ws.send(o)}catch{}i&&BU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Gie()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!GS}}class CGe extends NU{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=lGe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=aGe();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&BU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const TGe={websocket:EGe,webtransport:CGe,polling:_Ge},kGe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,AGe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function Y5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=kGe.exec(e||""),o={},s=14;for(;s--;)o[AGe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=IGe(o,o.path),o.queryKey=RGe(o,o.query),o}function IGe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function RGe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let Xie=class Um extends li{constructor(t,n={}){super(),this.binaryType=SGe,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=Y5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=Y5(n.host).host),VA(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=gGe(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Uie,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new TGe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Um.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Um.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Um.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){s("transport closed")}function c(){s("socket closed")}function u(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",c),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Um.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Um.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Yie=Object.prototype.toString,LGe=typeof Blob=="function"||typeof Blob<"u"&&Yie.call(Blob)==="[object BlobConstructor]",DGe=typeof File=="function"||typeof File<"u"&&Yie.call(File)==="[object FileConstructor]";function $U(e){return OGe&&(e instanceof ArrayBuffer||MGe(e))||LGe&&e instanceof Blob||DGe&&e instanceof File}function NE(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:gn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case gn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case gn.EVENT:case gn.BINARY_EVENT:this.onevent(t);break;case gn.ACK:case gn.BINARY_ACK:this.onack(t);break;case gn.DISCONNECT:this.ondisconnect();break;case gn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:gn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:gn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}$v.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};$v.prototype.reset=function(){this.attempts=0};$v.prototype.setMin=function(e){this.ms=e};$v.prototype.setMax=function(e){this.max=e};$v.prototype.setJitter=function(e){this.jitter=e};class J5 extends li{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,VA(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new $v({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||UGe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Xie(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=cl(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=cl(n,"error",o);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(cl(t,"ping",this.onping.bind(this)),cl(t,"data",this.ondata.bind(this)),cl(t,"error",this.onerror.bind(this)),cl(t,"close",this.onclose.bind(this)),cl(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){BU(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Kie(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const Zb={};function BE(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=PGe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=Zb[i]&&o in Zb[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return a?c=new J5(r,t):(Zb[i]||(Zb[i]=new J5(r,t)),c=Zb[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign(BE,{Manager:J5,Socket:Kie,io:BE,connect:BE});class WGe{constructor(t){gm(this,"rpc");gm(this,"socket");this.options=t,this.socket=BE(t.url),this.rpc=new MU.JSONRPCClient(async n=>{const r=i=>{i.id===n.id&&(this.socket.off("response",r),this.rpc.receive(i))};this.socket.emit("request",n),this.socket.on("response",r)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(t,n){return await this.rpc.request(t,n)}}const zU={socketio:{name:"socket.io",constructor:WGe},ipc:{name:"Web Worker",constructor:JWe},native:{name:"Internal",constructor:eGe}};function GGe(e){return zU[e].constructor}const Qie=te.first(te.keys(zU));function VGe(){const[{renderer:e},t]=Ju();return C.jsx(C.Fragment,{children:C.jsx(lA,{editor:n=>C.jsx(NWe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({renderer:n})),300),addItemLabel:"Add Renderer",create:()=>({transport:Qie,url:"",disabled:!0}),extras:C.jsx(nf,{icon:C.jsx(HQ,{}),sx:{ml:2},onClick:()=>t(()=>({renderer:zJ})),children:"Reset to Defaults"})})})}function qGe(e){const[{connections:t}]=cA(),n=Jj(),[{remote:r}]=Ju(),i=te.find(r,{url:e});return i&&!(i!=null&&i.disabled)?n({url:e})?"connected":t?"connecting":e?"error":"not-connected":"not-connected"}const XGe={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function YGe({value:e,onValueChange:t}){const n=i$e(e.url),r=qGe(e.url);function i(o){t==null||t(Uk(e,o))}return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(Sne,{sx:{color:XGe[r]}}),C.jsx(ai,{}),C.jsxs(ht,{flex:1,children:[C.jsx(jt,{children:n?`${n.name} ${n.version}`:te.startCase(r)}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:(n==null?void 0:n.description)??((e==null?void 0:e.url)||"No URL")})]}),C.jsx(vf,{title:`${e.disabled?"Enable":"Disable"} Connection`,children:C.jsx(ht,{children:C.jsx(Yg,{checked:!e.disabled,onChange:(o,s)=>i({disabled:!s})})})}),C.jsx(Ij,{trigger:o=>C.jsx(cg,{icon:C.jsx(jk,{}),label:"Edit Connection",onClick:o}),appBar:{children:C.jsx(Aj,{children:"Edit Connection"})},children:C.jsxs(ht,{p:2.5,children:[C.jsx(Ew,{value:e.url,onChange:o=>i({url:o.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(Fx,{placeholder:"Connection Type",items:te.entries(zU).map(([o,{name:s}])=>({value:o,label:s})),fullWidth:!0,value:e.transport,onChange:o=>i({transport:o})})]})})]})})}function KGe(){const[{remote:e},t]=Ju();return C.jsx(C.Fragment,{children:C.jsx(lA,{editor:n=>C.jsx(YGe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({remote:n})),300),addItemLabel:"Add Solver",create:()=>({transport:Qie,url:"",disabled:!0}),extras:C.jsx(nf,{icon:C.jsx(HQ,{}),sx:{ml:2},onClick:()=>t(()=>({remote:FJ})),children:"Reset to Defaults"})})})}const Mq=e=>`${e}x`;function QGe(){const{controls:e,onChange:t,state:n}=bf(),[{playbackRate:r=1,acrylic:i,theme:o="light",accentColor:s="teal"},a]=Ju(),[c,u]=R.useState("general");function f(p){return C.jsx(jt,{variant:"overline",color:"text.secondary",children:p})}function h(p){return C.jsx(jt,{variant:"body1",children:p})}return C.jsx(WJ,{value:c,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(XJ,{onChange:(p,g)=>u(g),children:[C.jsx(ng,{label:"General",value:"general"}),C.jsx(ng,{label:"Connections",value:"connections"}),C.jsx(ng,{label:"Renderers",value:"renderers"}),C.jsx(ng,{label:"Map Parsers",value:"map-parsers"})]})}),C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:C.jsx(Aw,{y:!0,children:C.jsxs(En,{vertical:!0,pt:6,children:[C.jsx(sg,{value:"general",children:C.jsxs(ht,{children:[f("Playback"),C.jsxs(En,{alignItems:"center",children:[h("Playback Rate"),C.jsx(ai,{flex:1}),C.jsx(Kbe,{sx:{maxWidth:320,mr:2},marks:[.25,1,5].map(p=>({value:p*Lm,label:Mq(p)})),step:.25*Lm,min:.25*Lm,max:5*Lm,valueLabelFormat:p=>Mq(p/Lm),valueLabelDisplay:"auto",defaultValue:r,onChangeCommitted:(p,g)=>a(()=>({playbackRate:g}))})]}),f("UI"),C.jsxs(En,{alignItems:"center",children:[h("Acrylic"),C.jsx(ai,{flex:1}),C.jsx(Yg,{defaultChecked:!!i,onChange:(p,g)=>a(()=>({acrylic:g}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Dark Mode"),C.jsx(ai,{flex:1}),C.jsx(Yg,{defaultChecked:o==="dark",onChange:(p,g)=>a(()=>({theme:g?"dark":"light"}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Accent"),C.jsx(ai,{flex:1}),C.jsx(Gs,{value:s,items:te.map(te.keys(ESe),p=>({id:p,name:te.startCase(p)})),showArrow:!0,onChange:p=>a(()=>({accentColor:p}))})]})]})}),C.jsx(sg,{value:"connections",children:C.jsxs(ht,{children:[f("Solvers"),C.jsx(KGe,{})]})}),C.jsx(sg,{value:"renderers",children:C.jsxs(ht,{children:[f("Renderers"),C.jsx(VGe,{})]})}),C.jsx(sg,{value:"map-parsers",children:C.jsxs(ht,{children:[f("Map Parsers"),C.jsx(JGe,{})]})})]})})})}),C.jsx(zn.Extras,{children:e})]})})}function JGe(){return C.jsx(Xg,{children:te.keys(Kj).map(e=>C.jsx(Bx,{children:C.jsx(rc,{primary:e,secondary:"Internal"})},e))})}const qA=0,Ef=1,Fv=2,Jie=4;function Zie(e,t){return n=>e(t(n))}function ZGe(e,t){return t(e)}function eoe(e,t){return n=>e(t,n)}function Lq(e,t){return()=>e(t)}function XA(e,t){return t(e),e}function kr(...e){return e}function e9e(e){e()}function Dq(e){return()=>e}function t9e(...e){return()=>{e.map(e9e)}}function jU(e){return e!==void 0}function zv(){}function qn(e,t){return e(Ef,t)}function rn(e,t){e(qA,t)}function UU(e){e(Fv)}function Us(e){return e(Jie)}function Et(e,t){return qn(e,eoe(t,qA))}function Vu(e,t){const n=e(Ef,r=>{n(),t(r)});return n}function Sn(){const e=[];return(t,n)=>{switch(t){case Fv:e.splice(0,e.length);return;case Ef:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case qA:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function tt(e){let t=e;const n=Sn();return(r,i)=>{switch(r){case Ef:i(t);break;case qA:t=i;break;case Jie:return t}return n(r,i)}}function n9e(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case Ef:return o?n===o?void 0:(r(),n=o,t=qn(e,o),t):(r(),zv);case Fv:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Ks(e){return XA(Sn(),t=>Et(e,t))}function Fo(e,t){return XA(tt(t),n=>Et(e,n))}function r9e(...e){return t=>e.reduceRight(ZGe,t)}function Oe(e,...t){const n=r9e(...t);return(r,i)=>{switch(r){case Ef:return qn(e,n(i));case Fv:UU(e);return}}}function toe(e,t){return e===t}function Sr(e=toe){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Wt(e){return t=>n=>{e(n)&&t(n)}}function ut(e){return t=>Zie(t,e)}function _u(e){return t=>()=>t(e)}function Ql(e,t){return n=>r=>n(t=e(t,r))}function pv(e){return t=>n=>{e>0?e--:t(n)}}function Dd(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Nq(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function un(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{const u=n;n=n|a,t[s]=c,u!==i&&n===i&&r&&(r(),r=null)})}),o=>s=>{const a=()=>o([s].concat(t));n===i?a():r=a}}function Bq(...e){return function(t,n){switch(t){case Ef:return t9e(...e.map(r=>qn(r,n)));case Fv:return;default:throw new Error(`unrecognized action ${t}`)}}}function Ht(e,t=toe){return Oe(e,Sr(t))}function Ri(...e){const t=Sn(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{n[s]=c,r=r|a,r===i&&rn(t,n)})}),function(o,s){switch(o){case Ef:return r===i&&s(n),qn(t,s);case Fv:return UU(t);default:throw new Error(`unrecognized action ${o}`)}}}function Wn(e,t=[],{singleton:n}={singleton:!0}){return{id:i9e(),constructor:e,dependencies:t,singleton:n}}const i9e=()=>Symbol();function o9e(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:s})=>{if(s&&t.has(r))return t.get(r);const a=i(o.map(c=>n(c)));return s&&t.set(r,a),a};return n(e)}function s9e(e,t){const n={},r={};let i=0;const o=e.length;for(;i(S[w]=b=>{const x=y[t.methods[w]];rn(x,b)},S),{})}function f(y){return s.reduce((S,w)=>(S[w]=n9e(y[t.events[w]]),S),{})}return{Component:de.forwardRef((y,S)=>{const{children:w,...b}=y,[x]=de.useState(()=>XA(o9e(e),I=>c(I,b))),[E]=de.useState(Lq(f,x));return VS(()=>{for(const I of s)I in b&&qn(E[I],b[I]);return()=>{Object.values(E).map(UU)}},[b,E,x]),VS(()=>{c(x,b)}),de.useImperativeHandle(S,Dq(u(x))),de.createElement(a.Provider,{value:x},n?de.createElement(n,s9e([...r,...i,...s],b),w):w)}),usePublisher:y=>de.useCallback(eoe(rn,de.useContext(a)[y]),[y]),useEmitterValue:y=>{const w=de.useContext(a)[y],[b,x]=de.useState(Lq(Us,w));return VS(()=>qn(w,E=>{E!==b&&x(Dq(E))}),[w,b]),b},useEmitter:(y,S)=>{const b=de.useContext(a)[y];VS(()=>qn(b,S),[S,b])}}}const a9e=typeof document<"u"?de.useLayoutEffect:de.useEffect,l9e=a9e;var Qs=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Qs||{});const c9e={0:"debug",1:"log",2:"warn",3:"error"},u9e=()=>typeof globalThis>"u"?window:globalThis,Cf=Wn(()=>{const e=tt(3);return{log:tt((n,r,i=1)=>{var o;const s=(o=u9e().VIRTUOSO_LOG_LEVEL)!=null?o:Us(e);i>=s&&console[c9e[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function HU(e,t=!0){const n=de.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=de.useMemo(()=>new ResizeObserver(o=>{const s=o[0].target;s.offsetParent!==null&&e(s)}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function pm(e,t=!0){return HU(e,t).callbackRef}function d9e(e,t,n,r,i,o,s){const a=de.useCallback(c=>{const u=f9e(c.children,t,"offsetHeight",i);let f=c.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window",p=s?s.scrollTop:h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,g=s?s.scrollHeight:h?document.documentElement.scrollHeight:f.scrollHeight,v=s?s.offsetHeight:h?window.innerHeight:f.offsetHeight;r({scrollTop:Math.max(p,0),scrollHeight:g,viewportHeight:v}),o==null||o(h9e("row-gap",getComputedStyle(c).rowGap,i)),u!==null&&e(u)},[e,t,i,o,s,r]);return HU(a,n)}function f9e(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let s=0;s{const p=h.target,g=p===window||p===document,v=g?window.pageYOffset||document.documentElement.scrollTop:p.scrollTop,y=g?document.documentElement.scrollHeight:p.scrollHeight,S=g?window.innerHeight:p.offsetHeight,w=()=>{e({scrollTop:Math.max(v,0),scrollHeight:y,viewportHeight:S})};h.suppressFlushSync?w():tg.flushSync(w),s.current!==null&&(v===s.current||v<=0||v===y-S)&&(s.current=null,t(!0),a.current&&(clearTimeout(a.current),a.current=null))},[e,t]);de.useEffect(()=>{const h=i||o.current;return r(i||o.current),c({target:h,suppressFlushSync:!0}),h.addEventListener("scroll",c,{passive:!0}),()=>{r(null),h.removeEventListener("scroll",c)}},[o,c,n,r,i]);function u(h){const p=o.current;if(!p||"offsetHeight"in p&&p.offsetHeight===0)return;const g=h.behavior==="smooth";let v,y,S;p===window?(y=Math.max(uf(document.documentElement,"height"),document.documentElement.scrollHeight),v=window.innerHeight,S=document.documentElement.scrollTop):(y=p.scrollHeight,v=uf(p,"height"),S=p.scrollTop);const w=y-v;if(h.top=Math.ceil(Math.max(Math.min(w,h.top),0)),roe(v,y)||h.top===S){e({scrollTop:S,scrollHeight:y,viewportHeight:v}),g&&t(!0);return}g?(s.current=h.top,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{a.current=null,s.current=null,t(!0)},1e3)):s.current=null,p.scrollTo(h)}function f(h){o.current.scrollBy(h)}return{scrollerRef:o,scrollByCallback:f,scrollToCallback:u}}const Wo=Wn(()=>{const e=Sn(),t=Sn(),n=tt(0),r=Sn(),i=tt(0),o=Sn(),s=Sn(),a=tt(0),c=tt(0),u=tt(0),f=tt(0),h=Sn(),p=Sn(),g=tt(!1);return Et(Oe(e,ut(({scrollTop:v})=>v)),t),Et(Oe(e,ut(({scrollHeight:v})=>v)),s),Et(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:a,fixedHeaderHeight:c,fixedFooterHeight:u,footerHeight:f,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:h,scrollBy:p,statefulScrollTop:i,deviation:n,scrollingInProgress:g}},[],{singleton:!0}),iw={lvl:0};function ooe(e,t,n,r=iw,i=iw){return{k:e,v:t,lvl:n,l:r,r:i}}function rr(e){return e===iw}function Pg(){return iw}function Z5(e,t){if(rr(e))return iw;const{k:n,l:r,r:i}=e;if(t===n){if(rr(r))return i;if(rr(i))return r;{const[o,s]=soe(r);return $E(wi(e,{k:o,v:s,l:aoe(r)}))}}else return tt&&(a=a.concat(e4(o,t,n))),r>=t&&r<=n&&a.push({k:r,v:i}),r<=n&&(a=a.concat(e4(s,t,n))),a}function bp(e){return rr(e)?[]:[...bp(e.l),{k:e.k,v:e.v},...bp(e.r)]}function soe(e){return rr(e.r)?[e.k,e.v]:soe(e.r)}function aoe(e){return rr(e.r)?e.l:$E(wi(e,{r:aoe(e.r)}))}function wi(e,t){return ooe(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function W$(e){return rr(e)||e.lvl>e.r.lvl}function $q(e){return t4(coe(e))}function $E(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(W$(t))return coe(wi(e,{lvl:r-1}));if(!rr(t)&&!rr(t.r))return wi(t.r,{l:wi(t,{r:t.r.l}),r:wi(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(W$(e))return t4(wi(e,{lvl:r-1}));if(!rr(n)&&!rr(n.l)){const i=n.l,o=W$(i)?n.lvl-1:n.lvl;return wi(i,{l:wi(e,{r:i.l,lvl:r-1}),r:t4(wi(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function YA(e,t,n){if(rr(e))return[];const r=Rl(e,t)[0];return p9e(e4(e,r,n))}function loe(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let s=1;s({index:t,value:n}))}function t4(e){const{r:t,lvl:n}=e;return!rr(t)&&!rr(t.r)&&t.lvl===n&&t.r.lvl===n?wi(t,{l:wi(e,{r:t.l}),lvl:n+1}):e}function coe(e){const{l:t}=e;return!rr(t)&&t.lvl===e.lvl?wi(t,{r:wi(e,{l:t.r})}):e}function mT(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),s=e[o],a=n(s,t);if(a===0)return o;if(a===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function uoe(e,t,n){return e[mT(e,t,n)]}function m9e(e,t,n,r){const i=mT(e,t,r),o=mT(e,n,r,i);return e.slice(i,o+1)}const WU=Wn(()=>({recalcInProgress:tt(!1)}),[],{singleton:!0});function g9e(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function Fq(e,t){let n=0,r=0;for(;n=f||i===p)&&(e=Z5(e,f)):(u=p!==i,c=!0),h>s&&s>=f&&p!==i&&(e=Fs(e,s+1,p));u&&(e=Fs(e,o,i))}return[e,n]}function y9e(){return{offsetTree:[],sizeTree:Pg(),groupOffsetTree:Pg(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function GU({index:e},t){return t===e?0:t0&&(t=Math.max(t,uoe(e,r,GU).offset)),loe(m9e(e,t,n,b9e),x9e)}function n4(e,t,n,r){let i=e,o=0,s=0,a=0,c=0;if(t!==0){c=mT(i,t-1,GU),a=i[c].offset;const f=Rl(n,t-1);o=f[0],s=f[1],i.length&&i[c].size===Rl(n,t)[1]&&(c-=1),i=i.slice(0,c+1)}else i=[];for(const{start:u,value:f}of YA(n,t,1/0)){const h=u-o,p=h*s+a+h*r;i.push({offset:p,size:f,index:u}),o=u,a=p,s=f}return{offsetTree:i,lastIndex:o,lastOffset:a,lastSize:s}}function _9e(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Qs.DEBUG);const o=e.sizeTree;let s=o,a=0;if(n.length>0&&rr(o)&&t.length===2){const p=t[0].size,g=t[1].size;s=n.reduce((v,y)=>Fs(Fs(v,y,p),y+1,g),s)}else[s,a]=v9e(s,t);if(s===o)return e;const{offsetTree:c,lastIndex:u,lastSize:f,lastOffset:h}=n4(e.offsetTree,a,s,i);return{sizeTree:s,offsetTree:c,lastIndex:u,lastOffset:h,lastSize:f,groupOffsetTree:n.reduce((p,g)=>Fs(p,g,sw(g,c,i)),Pg()),groupIndices:n}}function sw(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=uoe(t,e,GU),s=e-i,a=o*s+(s-1)*n+r;return a>0?a+n:a}function S9e(e){return typeof e.groupIndex<"u"}function doe(e,t,n){if(S9e(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=foe(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function foe(e,t){if(!KA(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function KA(e){return!rr(e.groupOffsetTree)}function E9e(e){return bp(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],s=o?o.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const C9e={offsetHeight:"height",offsetWidth:"width"},xc=Wn(([{log:e},{recalcInProgress:t}])=>{const n=Sn(),r=Sn(),i=Fo(r,0),o=Sn(),s=Sn(),a=tt(0),c=tt([]),u=tt(void 0),f=tt(void 0),h=tt((I,A)=>uf(I,C9e[A])),p=tt(void 0),g=tt(0),v=y9e(),y=Fo(Oe(n,un(c,e,g),Ql(_9e,v),Sr()),v),S=Fo(Oe(c,Sr(),Ql((I,A)=>({prev:I.current,current:A}),{prev:[],current:[]}),ut(({prev:I})=>I)),[]);Et(Oe(c,Wt(I=>I.length>0),un(y,g),ut(([I,A,k])=>{const O=I.reduce((D,N,H)=>Fs(D,N,sw(N,A.offsetTree,k)||H),Pg());return{...A,groupIndices:I,groupOffsetTree:O}})),y),Et(Oe(r,un(y),Wt(([I,{lastIndex:A}])=>I[{startIndex:I,endIndex:A,size:k}])),n),Et(u,f);const w=Fo(Oe(u,ut(I=>I===void 0)),!0);Et(Oe(f,Wt(I=>I!==void 0&&rr(Us(y).sizeTree)),ut(I=>[{startIndex:0,endIndex:0,size:I}])),n);const b=Ks(Oe(n,un(y),Ql(({sizes:I},[A,k])=>({changed:k!==I,sizes:k}),{changed:!1,sizes:v}),ut(I=>I.changed)));qn(Oe(a,Ql((I,A)=>({diff:I.prev-A,prev:A}),{diff:0,prev:0}),ut(I=>I.diff)),I=>{const{groupIndices:A}=Us(y);if(I>0)rn(t,!0),rn(o,I+Fq(I,A));else if(I<0){const k=Us(S);k.length>0&&(I-=Fq(-I,k)),rn(s,I)}}),qn(Oe(a,un(e)),([I,A])=>{I<0&&A("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Qs.ERROR)});const x=Ks(o);Et(Oe(o,un(y),ut(([I,A])=>{const k=A.groupIndices.length>0,O=[],D=A.lastSize;if(k){const N=ow(A.sizeTree,0);let H=0,G=0;for(;H{let W=F.ranges;return F.prevSize!==0&&(W=[...F.ranges,{startIndex:F.prevIndex,endIndex:j+I-1,size:F.prevSize}]),{ranges:W,prevIndex:j+I,prevSize:V}},{ranges:O,prevIndex:I,prevSize:0}).ranges}return bp(A.sizeTree).reduce((N,{k:H,v:G})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:H+I-1,size:N.prevSize}],prevIndex:H+I,prevSize:G}),{ranges:[],prevIndex:0,prevSize:D}).ranges})),n);const E=Ks(Oe(s,un(y,g),ut(([I,{offsetTree:A},k])=>{const O=-I;return sw(O,A,k)})));return Et(Oe(s,un(y,g),ut(([I,A,k])=>{if(A.groupIndices.length>0){if(rr(A.sizeTree))return A;let D=Pg();const N=Us(S);let H=0,G=0,z=0;for(;H<-I;){z=N[G];const F=N[G+1]-z-1;G++,H+=F+1}if(D=bp(A.sizeTree).reduce((F,{k:j,v:V})=>Fs(F,Math.max(0,j+I),V),D),H!==-I){const F=ow(A.sizeTree,z);D=Fs(D,0,F);const j=Rl(A.sizeTree,-I+1)[1];D=Fs(D,1,j)}return{...A,sizeTree:D,...n4(A.offsetTree,0,D,k)}}else{const D=bp(A.sizeTree).reduce((N,{k:H,v:G})=>Fs(N,Math.max(0,H+I),G),Pg());return{...A,sizeTree:D,...n4(A.offsetTree,0,D,k)}}})),y),{data:p,totalCount:r,sizeRanges:n,groupIndices:c,defaultItemSize:f,fixedItemSize:u,unshiftWith:o,shiftWith:s,shiftWithOffset:E,beforeUnshiftWith:x,firstItemIndex:a,gap:g,sizes:y,listRefresh:b,statefulTotalCount:i,trackItemSizes:w,itemSize:h}},kr(Cf,WU),{singleton:!0}),T9e=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function hoe(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!T9e)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const r_=Wn(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:s,smoothScrollTargetReached:a,headerHeight:c,footerHeight:u,fixedHeaderHeight:f,fixedFooterHeight:h},{log:p}])=>{const g=Sn(),v=tt(0);let y=null,S=null,w=null;function b(){y&&(y(),y=null),w&&(w(),w=null),S&&(clearTimeout(S),S=null),rn(i,!1)}return Et(Oe(g,un(e,o,t,v,c,u,p),un(r,f,h),ut(([[x,E,I,A,k,O,D,N],H,G,z])=>{const L=hoe(x),{align:F,behavior:j,offset:V}=L,W=A-1,K=doe(L,E,W);let X=sw(K,E.offsetTree,H)+O;F==="end"?(X+=G+Rl(E.sizeTree,K)[1]-I+z,K===W&&(X+=D)):F==="center"?X+=(G+Rl(E.sizeTree,K)[1]-I+z)/2:X-=k,V&&(X+=V);const Q=ie=>{b(),ie?(N("retrying to scroll to",{location:x},Qs.DEBUG),rn(g,x)):N("list did not change, scroll successful",{},Qs.DEBUG)};if(b(),j==="smooth"){let ie=!1;w=qn(n,ce=>{ie=ie||ce}),y=Vu(a,()=>{Q(ie)})}else y=Vu(Oe(n,k9e(150)),Q);return S=setTimeout(()=>{b()},1200),rn(i,!0),N("scrolling from index to",{index:K,top:X,behavior:j},Qs.DEBUG),{top:X,behavior:j}})),s),{scrollToIndex:g,topListHeight:v}},kr(xc,Wo,Cf),{singleton:!0});function k9e(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const aw="up",t1="down",A9e="none",I9e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},R9e=0,i_=Wn(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const s=tt(!1),a=tt(!0),c=Sn(),u=Sn(),f=tt(4),h=tt(R9e),p=Fo(Oe(Bq(Oe(Ht(t),pv(1),_u(!0)),Oe(Ht(t),pv(1),_u(!1),Nq(100))),Sr()),!1),g=Fo(Oe(Bq(Oe(o,_u(!0)),Oe(o,_u(!1),Nq(200))),Sr()),!1);Et(Oe(Ri(Ht(t),Ht(h)),ut(([b,x])=>b<=x),Sr()),a),Et(Oe(a,Dd(50)),u);const v=Ks(Oe(Ri(e,Ht(n),Ht(r),Ht(i),Ht(f)),Ql((b,[{scrollTop:x,scrollHeight:E},I,A,k,O])=>{const D=x+I-E>-O,N={viewportHeight:I,scrollTop:x,scrollHeight:E};if(D){let G,z;return x>b.state.scrollTop?(G="SCROLLED_DOWN",z=b.state.scrollTop-x):(G="SIZE_DECREASED",z=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:G,scrollTopDelta:z}}let H;return N.scrollHeight>b.state.scrollHeight?H="SIZE_INCREASED":Ib&&b.atBottom===x.atBottom))),y=Fo(Oe(e,Ql((b,{scrollTop:x,scrollHeight:E,viewportHeight:I})=>{if(roe(b.scrollHeight,E))return{scrollTop:x,scrollHeight:E,jump:0,changed:!1};{const A=E-(x+I)<1;return b.scrollTop!==x&&A?{scrollHeight:E,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:E,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),Wt(b=>b.changed),ut(b=>b.jump)),0);Et(Oe(v,ut(b=>b.atBottom)),s),Et(Oe(s,Dd(50)),c);const S=tt(t1);Et(Oe(e,ut(({scrollTop:b})=>b),Sr(),Ql((b,x)=>Us(g)?{direction:b.direction,prevScrollTop:x}:{direction:xb.direction)),S),Et(Oe(e,Dd(50),_u(A9e)),S);const w=tt(0);return Et(Oe(p,Wt(b=>!b),_u(0)),w),Et(Oe(t,Dd(100),un(p),Wt(([b,x])=>!!x),Ql(([b,x],[E])=>[x,E],[0,0]),ut(([b,x])=>x-b)),w),{isScrolling:p,isAtTop:a,isAtBottom:s,atBottomState:v,atTopStateChange:u,atBottomStateChange:c,scrollDirection:S,atBottomThreshold:f,atTopThreshold:h,scrollVelocity:w,lastJumpDueToItemResize:y}},kr(Wo)),Tf=Wn(([{log:e}])=>{const t=tt(!1),n=Ks(Oe(t,Wt(r=>r),Sr()));return qn(t,r=>{r&&Us(e)("props updated",{},Qs.DEBUG)}),{propsReady:t,didMount:n}},kr(Cf),{singleton:!0});function VU(e,t){e==0?t():requestAnimationFrame(()=>VU(e-1,t))}function qU(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const o_=Wn(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i},{didMount:o}])=>{const s=tt(!0),a=tt(0),c=tt(!1);return Et(Oe(o,un(a),Wt(([u,f])=>!!f),_u(!1)),s),qn(Oe(Ri(t,o),un(s,e,n,c),Wt(([[,u],f,{sizeTree:h},p,g])=>u&&(!rr(h)||jU(p))&&!f&&!g),un(a)),([,u])=>{rn(c,!0),VU(3,()=>{Vu(r,()=>rn(s,!0)),rn(i,u)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:a}},kr(xc,Wo,r_,Tf),{singleton:!0});function zq(e){return e?e==="smooth"?"smooth":"auto":!1}const P9e=(e,t)=>typeof e=="function"?zq(e(t)):t&&zq(e),O9e=Wn(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:s,didMount:a},{log:c},{scrollingInProgress:u}])=>{const f=tt(!1),h=Sn();let p=null;function g(y){rn(i,{index:"LAST",align:"end",behavior:y})}qn(Oe(Ri(Oe(Ht(e),pv(1)),a),un(Ht(f),n,o,u),ut(([[y,S],w,b,x,E])=>{let I=S&&x,A="auto";return I&&(A=P9e(w,b||E),I=I&&!!A),{totalCount:y,shouldFollow:I,followOutputBehavior:A}}),Wt(({shouldFollow:y})=>y)),({totalCount:y,followOutputBehavior:S})=>{p&&(p(),p=null),p=Vu(t,()=>{Us(c)("following output to ",{totalCount:y},Qs.DEBUG),g(S),p=null})});function v(y){const S=Vu(r,w=>{y&&!w.atBottom&&w.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Us(c)("scrolling to bottom due to increased size",{},Qs.DEBUG),g("auto"))});setTimeout(S,100)}return qn(Oe(Ri(Ht(f),e,s),Wt(([y,,S])=>y&&S),Ql(({value:y},[,S])=>({refreshed:y===S,value:S}),{refreshed:!1,value:0}),Wt(({refreshed:y})=>y),un(f,e)),([,y])=>{v(y!==!1)}),qn(h,()=>{v(Us(f)!==!1)}),qn(Ri(Ht(f),r),([y,S])=>{y&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&g("auto")}),{followOutput:f,autoscrollToBottom:h}},kr(xc,i_,r_,o_,Tf,Cf,Wo));function M9e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const poe=Wn(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=Sn(),s=Sn(),a=Ks(Oe(o,ut(M9e)));return Et(Oe(a,ut(c=>c.totalCount)),e),Et(Oe(a,ut(c=>c.groupIndices)),t),Et(Oe(Ri(r,n,i),Wt(([c,u])=>KA(u)),ut(([c,u,f])=>Rl(u.groupOffsetTree,Math.max(c-f,0),"v")[0]),Sr(),ut(c=>[c])),s),{groupCounts:o,topItemsIndexes:s}},kr(xc,Wo));function lw(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function moe(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const gT="top",vT="bottom",jq="none";function Uq(e,t,n){return typeof e=="number"?n===aw&&t===gT||n===t1&&t===vT?e:0:n===aw?t===gT?e.main:e.reverse:t===vT?e.main:e.reverse}function Hq(e,t){return typeof e=="number"?e:e[t]||0}const XU=Wn(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=Sn(),s=tt(0),a=tt(0),c=tt(0),u=Fo(Oe(Ri(Ht(e),Ht(t),Ht(r),Ht(o,lw),Ht(c),Ht(s),Ht(i),Ht(n),Ht(a)),ut(([f,h,p,[g,v],y,S,w,b,x])=>{const E=f-b,I=S+w,A=Math.max(p-E,0);let k=jq;const O=Hq(x,gT),D=Hq(x,vT);return g-=b,g+=p+w,v+=p+w,v-=b,g>f+I-O&&(k=aw),vf!=null),Sr(lw)),[0,0]);return{listBoundary:o,overscan:c,topListHeight:s,increaseViewportBy:a,visibleRange:u}},kr(Wo),{singleton:!0});function L9e(e,t,n){if(KA(t)){const r=foe(e,t);return[{index:Rl(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const G$={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function Wq(e,t,n){if(e.length===0)return[];if(!KA(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,o=[],s=YA(t.groupOffsetTree,r,i);let a,c=0;for(const u of e){(!a||a.end0){u=e[0].offset;const y=e[e.length-1];f=y.offset+y.size}const h=n-c,p=a+h*s+(h-1)*r,g=u,v=p-f;return{items:Wq(e,i,o),topItems:Wq(t,i,o),topListHeight:t.reduce((y,S)=>S.size+y,0),offsetTop:u,offsetBottom:v,top:g,bottom:f,totalCount:n,firstItemIndex:o}}function goe(e,t,n,r,i,o){let s=0;if(n.groupIndices.length>0)for(const f of n.groupIndices){if(f-s>=e)break;s++}const a=e+s,c=qU(t,a),u=Array.from({length:a}).map((f,h)=>({index:h+c,size:0,offset:0,data:o[h+c]}));return FE(u,[],a,i,n,r)}const mm=Wn(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:s,listBoundary:a,topListHeight:c},{scrolledToInitialItem:u,initialTopMostItemIndex:f},{topListHeight:h},p,{didMount:g},{recalcInProgress:v}])=>{const y=tt([]),S=tt(0),w=Sn();Et(o.topItemsIndexes,y);const b=Fo(Oe(Ri(g,v,Ht(s,lw),Ht(t),Ht(e),Ht(f),u,Ht(y),Ht(r),Ht(i),n),Wt(([A,k,,O,,,,,,,D])=>{const N=D&&D.length!==O;return A&&!k&&!N}),ut(([,,[A,k],O,D,N,H,G,z,L,F])=>{const j=D,{sizeTree:V,offsetTree:W}=j,K=Us(S);if(O===0)return{...G$,totalCount:O};if(A===0&&k===0)return K===0?{...G$,totalCount:O}:goe(K,N,D,z,L,F||[]);if(rr(V))return K>0?null:FE(L9e(qU(N,O),j,F),[],O,L,j,z);const X=[];if(G.length>0){const se=G[0],J=G[G.length-1];let ae=0;for(const le of YA(V,se,J)){const he=le.value,pe=Math.max(le.start,se),ve=Math.min(le.end,J);for(let ye=pe;ye<=ve;ye++)X.push({index:ye,size:he,offset:ae,data:F&&F[ye]}),ae+=he}}if(!H)return FE([],X,O,L,j,z);const Q=G.length>0?G[G.length-1]+1:0,ie=w9e(W,A,k,Q);if(ie.length===0)return null;const ce=O-1,ue=XA([],se=>{for(const J of ie){const ae=J.value;let le=ae.offset,he=J.start;const pe=ae.size;if(ae.offset=k);ye++)se.push({index:ye,size:pe,offset:le,data:F&&F[ye]}),le+=pe+L}});return FE(ue,X,O,L,j,z)}),Wt(A=>A!==null),Sr()),G$);Et(Oe(n,Wt(jU),ut(A=>A==null?void 0:A.length)),t),Et(Oe(b,ut(A=>A.topListHeight)),h),Et(h,c),Et(Oe(b,ut(A=>[A.top,A.bottom])),a),Et(Oe(b,ut(A=>A.items)),w);const x=Ks(Oe(b,Wt(({items:A})=>A.length>0),un(t,n),Wt(([{items:A},k])=>A[A.length-1].originalIndex===k-1),ut(([,A,k])=>[A-1,k]),Sr(lw),ut(([A])=>A))),E=Ks(Oe(b,Dd(200),Wt(({items:A,topItems:k})=>A.length>0&&A[0].originalIndex===k.length),ut(({items:A})=>A[0].index),Sr())),I=Ks(Oe(b,Wt(({items:A})=>A.length>0),ut(({items:A})=>{let k=0,O=A.length-1;for(;A[k].type==="group"&&kk;)O--;return{startIndex:A[k].index,endIndex:A[O].index}}),Sr(moe)));return{listState:b,topItemsIndexes:y,endReached:x,startReached:E,rangeChanged:I,itemsRendered:w,initialItemCount:S,...p}},kr(xc,poe,XU,o_,r_,i_,Tf,WU),{singleton:!0}),D9e=Wn(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:s},{didMount:a}])=>(Et(Oe(a,un(o),Wt(([,c])=>c!==0),un(i,e,t,r,n),ut(([[,c],u,f,h,p,g=[]])=>goe(c,u,f,h,p,g))),s),{}),kr(xc,o_,mm,Tf),{singleton:!0}),voe=Wn(([{scrollVelocity:e}])=>{const t=tt(!1),n=Sn(),r=tt(!1);return Et(Oe(e,un(r,t,n),Wt(([i,o])=>!!o),ut(([i,o,s,a])=>{const{exit:c,enter:u}=o;if(s){if(c(i,a))return!1}else if(u(i,a))return!0;return s}),Sr()),t),qn(Oe(Ri(t,e,n),un(r)),([[i,o,s],a])=>i&&a&&a.change&&a.change(o,s)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},kr(i_),{singleton:!0}),N9e=Wn(([{topItemsIndexes:e}])=>{const t=tt(0);return Et(Oe(t,Wt(n=>n>0),ut(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},kr(mm)),yoe=Wn(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=Sn(),s=Fo(Oe(Ri(e,r,t,n,i),ut(([a,c,u,f,h])=>a+c+u+f+h.offsetBottom+h.bottom)),0);return Et(Ht(s),o),{totalListHeight:s,totalListHeightChanged:o}},kr(Wo,mm),{singleton:!0});function boe(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const B9e=boe(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),$9e=Wn(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:s,lastJumpDueToItemResize:a},{listState:c},{beforeUnshiftWith:u,shiftWithOffset:f,sizes:h,gap:p},{log:g},{recalcInProgress:v}])=>{const y=Ks(Oe(c,un(a),Ql(([,w,b,x],[{items:E,totalCount:I,bottom:A,offsetBottom:k},O])=>{const D=A+k;let N=0;return b===I&&w.length>0&&E.length>0&&(E[0].originalIndex===0&&w[0].originalIndex===0||(N=D-x,N!==0&&(N+=O))),[N,E,I,D]},[0,[],0,0]),Wt(([w])=>w!==0),un(t,s,r,o,g,v),Wt(([,w,b,x,,,E])=>!E&&!x&&w!==0&&b===aw),ut(([[w],,,,,b])=>(b("Upward scrolling compensation",{amount:w},Qs.DEBUG),w))));function S(w){w>0?(rn(e,{top:-w,behavior:"auto"}),rn(n,0)):(rn(n,0),rn(e,{top:-w,behavior:"auto"}))}return qn(Oe(y,un(n,i)),([w,b,x])=>{x&&B9e()?rn(n,b-w):S(-w)}),qn(Oe(Ri(Fo(i,!1),n,v),Wt(([w,b,x])=>!w&&!x&&b!==0),ut(([w,b])=>b),Dd(1)),S),Et(Oe(f,ut(w=>({top:-w}))),e),qn(Oe(u,un(h,p),ut(([w,{lastSize:b,groupIndices:x,sizeTree:E},I])=>{function A(k){return k*(b+I)}if(x.length===0)return A(w);{let k=0;const O=ow(E,0);let D=0,N=0;for(;Dw&&(k-=O,H=w-D+1),D+=H,k+=A(H),N++}return k}})),w=>{rn(n,w),requestAnimationFrame(()=>{rn(e,{top:w}),requestAnimationFrame(()=>{rn(n,0),rn(v,!1)})})}),{deviation:n}},kr(Wo,i_,mm,xc,Cf,WU)),F9e=Wn(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=tt(0);return qn(Oe(e,un(r),Wt(([,i])=>i!==0),ut(([,i])=>({top:i}))),i=>{Vu(Oe(n,pv(1),Wt(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{rn(t,i)})})}),{initialScrollTop:r}},kr(Tf,Wo,mm),{singleton:!0}),z9e=Wn(([{viewportHeight:e},{totalListHeight:t}])=>{const n=tt(!1),r=Fo(Oe(Ri(n,e,t),Wt(([i])=>i),ut(([,i,o])=>Math.max(0,i-o)),Dd(0),Sr()),0);return{alignToBottom:n,paddingTopAddition:r}},kr(Wo,yoe),{singleton:!0}),YU=Wn(([{scrollTo:e,scrollContainerState:t}])=>{const n=Sn(),r=Sn(),i=Sn(),o=tt(!1),s=tt(void 0);return Et(Oe(Ri(n,r),ut(([{viewportHeight:a,scrollTop:c,scrollHeight:u},{offsetTop:f}])=>({scrollTop:Math.max(0,c-f),scrollHeight:u,viewportHeight:a}))),t),Et(Oe(e,un(r),ut(([a,{offsetTop:c}])=>({...a,top:a.top+c}))),i),{useWindowScroll:o,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},kr(Wo)),j9e=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...s}})=>er?{...s,behavior:i,align:o??"end"}:null,U9e=Wn(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:c},{scrollToIndex:u}])=>{const f=Sn();return Et(Oe(f,un(e,i,t,o,s,a,r),un(n),ut(([[h,p,g,v,y,S,w,b],x])=>{const{done:E,behavior:I,align:A,calculateViewLocation:k=j9e,...O}=h,D=doe(h,p,v-1),N=sw(D,p.offsetTree,x)+y+S,H=N+Rl(p.sizeTree,D)[1],G=b+S,z=b+g-w,L=k({itemTop:N,itemBottom:H,viewportTop:G,viewportBottom:z,locationParams:{behavior:I,align:A,...O}});return L?E&&Vu(Oe(c,Wt(F=>F===!1),pv(Us(c)?1:2)),E):E&&E(),L}),Wt(h=>h!==null)),u),{scrollIntoView:f}},kr(xc,Wo,r_,mm,Cf),{singleton:!0}),H9e=Wn(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:a}])=>{const c=Sn(),u=tt(void 0),f=tt(null),h=tt(null);return Et(s,f),Et(a,h),qn(Oe(c,un(e,n,o,f,h)),([p,g,v,y,S,w])=>{const b=E9e(g.sizeTree);y&&S!==null&&w!==null&&(v=S.scrollTop-w.offsetTop),p({ranges:b,scrollTop:v})}),Et(Oe(u,Wt(jU),ut(W9e)),r),Et(Oe(i,un(u),Wt(([,p])=>p!==void 0),Sr(),ut(([,p])=>p.ranges)),t),{getState:c,restoreStateFrom:u}},kr(xc,Wo,o_,Tf,YU));function W9e(e){return{offset:e.scrollTop,index:0,align:"start"}}const G9e=Wn(([e,t,n,r,i,o,s,a,c,u])=>({...e,...t,...n,...r,...i,...o,...s,...a,...c,...u}),kr(XU,D9e,Tf,voe,yoe,F9e,z9e,YU,U9e,Cf)),V9e=Wn(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:s,firstItemIndex:a,groupIndices:c,statefulTotalCount:u,gap:f,sizes:h},{initialTopMostItemIndex:p,scrolledToInitialItem:g},v,y,S,{listState:w,topItemsIndexes:b,...x},{scrollToIndex:E},I,{topItemCount:A},{groupCounts:k},O])=>(Et(x.rangeChanged,O.scrollSeekRangeChanged),Et(Oe(O.windowViewportRect,ut(D=>D.visibleHeight)),v.viewportHeight),{totalCount:e,data:s,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:g,topItemsIndexes:b,topItemCount:A,groupCounts:k,fixedItemHeight:n,defaultItemHeight:r,gap:f,...S,statefulTotalCount:u,listState:w,scrollToIndex:E,trackItemSizes:i,itemSize:o,groupIndices:c,...x,...O,...v,sizes:h,...y}),kr(xc,o_,Wo,H9e,O9e,mm,r_,$9e,N9e,poe,G9e)),V$="-webkit-sticky",Gq="sticky",xoe=boe(()=>{if(typeof document>"u")return Gq;const e=document.createElement("div");return e.style.position=V$,e.style.position===V$?V$:Gq});function woe(e,t){const n=de.useRef(null),r=de.useCallback(a=>{if(a===null||!a.offsetParent)return;const c=a.getBoundingClientRect(),u=c.width;let f,h;if(t){const p=t.getBoundingClientRect(),g=c.top-p.top;f=p.height-Math.max(0,g),h=g+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),h=c.top+window.pageYOffset;n.current={offsetTop:h,visibleHeight:f,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:o}=HU(r),s=de.useCallback(()=>{r(o.current)},[r,o]);return de.useEffect(()=>{if(t){t.addEventListener("scroll",s);const a=new ResizeObserver(s);return a.observe(t),()=>{t.removeEventListener("scroll",s),a.unobserve(t)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,t]),i}const _oe=de.createContext(void 0),Soe=de.createContext(void 0);function Eoe(e){return e}const q9e=Wn(()=>{const e=tt(c=>`Item ${c}`),t=tt(null),n=tt(c=>`Group ${c}`),r=tt({}),i=tt(Eoe),o=tt("div"),s=tt(zv),a=(c,u=null)=>Fo(Oe(r,ut(f=>f[c]),Sr()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:s,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),X9e=Wn(([e,t])=>({...e,...t}),kr(V9e,q9e)),Y9e=({height:e})=>de.createElement("div",{style:{height:e}}),K9e={position:xoe(),zIndex:1,overflowAnchor:"none"},Q9e={overflowAnchor:"none"},Vq=de.memo(function({showTopList:t=!1}){const n=bn("listState"),r=_a("sizeRanges"),i=bn("useWindowScroll"),o=bn("customScrollParent"),s=_a("windowScrollContainerState"),a=_a("scrollContainerState"),c=o||i?s:a,u=bn("itemContent"),f=bn("context"),h=bn("groupContent"),p=bn("trackItemSizes"),g=bn("itemSize"),v=bn("log"),y=_a("gap"),{callbackRef:S}=d9e(r,g,p,t?zv:c,v,y,o),[w,b]=de.useState(0);KU("deviation",L=>{w!==L&&b(L)});const x=bn("EmptyPlaceholder"),E=bn("ScrollSeekPlaceholder")||Y9e,I=bn("ListComponent"),A=bn("ItemComponent"),k=bn("GroupComponent"),O=bn("computeItemKey"),D=bn("isSeeking"),N=bn("groupIndices").length>0,H=bn("paddingTopAddition"),G=bn("scrolledToInitialItem"),z=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+H,paddingBottom:n.offsetBottom,marginTop:w,...G?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?de.createElement(x,Zo(x,f)):de.createElement(I,{...Zo(I,f),ref:S,style:z,"data-test-id":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(L=>{const F=L.originalIndex,j=O(F+n.firstItemIndex,L.data,f);return D?de.createElement(E,{...Zo(E,f),key:j,index:L.index,height:L.size,type:L.type||"item",...L.type==="group"?{}:{groupIndex:L.groupIndex}}):L.type==="group"?de.createElement(k,{...Zo(k,f),key:j,"data-index":F,"data-known-size":L.size,"data-item-index":L.index,style:K9e},h(L.index,f)):de.createElement(A,{...Zo(A,f),key:j,"data-index":F,"data-known-size":L.size,"data-item-index":L.index,"data-item-group-index":L.groupIndex,item:L.data,style:Q9e},N?u(L.index,L.groupIndex,L.data,f):u(L.index,L.data,f))}))}),J9e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},QA={width:"100%",height:"100%",position:"absolute",top:0},Z9e={width:"100%",position:xoe(),top:0,zIndex:1};function Zo(e,t){if(typeof e!="string")return{context:t}}const e7e=de.memo(function(){const t=bn("HeaderComponent"),n=_a("headerHeight"),r=bn("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),t7e=de.memo(function(){const t=bn("FooterComponent"),n=_a("footerHeight"),r=bn("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null});function Coe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("scrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("scrollerRef"),p=n("context"),{scrollerRef:g,scrollByCallback:v,scrollToCallback:y}=ioe(c,f,u,h);return t("scrollTo",y),t("scrollBy",v),de.createElement(u,{ref:g,style:{...J9e,...o},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...Zo(u,p)},s)})}function Toe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("windowScrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("totalListHeight"),p=n("deviation"),g=n("customScrollParent"),v=n("context"),{scrollerRef:y,scrollByCallback:S,scrollToCallback:w}=ioe(c,f,u,zv,g);return l9e(()=>(y.current=g||window,()=>{y.current=null}),[y,g]),t("windowScrollTo",w),t("scrollBy",S),de.createElement(u,{style:{position:"relative",...o,...h!==0?{height:h+p}:{}},"data-virtuoso-scroller":!0,...a,...Zo(u,v)},s)})}const n7e=({children:e})=>{const t=de.useContext(_oe),n=_a("viewportHeight"),r=_a("fixedItemHeight"),i=pm(Zie(n,o=>uf(o,"height")));return de.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),de.createElement("div",{style:QA,ref:i,"data-viewport-type":"element"},e)},r7e=({children:e})=>{const t=de.useContext(_oe),n=_a("windowViewportRect"),r=_a("fixedItemHeight"),i=bn("customScrollParent"),o=woe(n,i);return de.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),de.createElement("div",{ref:o,style:QA,"data-viewport-type":"window"},e)},i7e=({children:e})=>{const t=bn("TopItemListComponent"),n=bn("headerHeight"),r={...Z9e,marginTop:`${n}px`},i=bn("context");return de.createElement(t||"div",{style:r,context:i},e)},o7e=de.memo(function(t){const n=bn("useWindowScroll"),r=bn("topItemsIndexes").length>0,i=bn("customScrollParent"),o=i||n?l7e:a7e,s=i||n?r7e:n7e;return de.createElement(o,{...t},r&&de.createElement(i7e,null,de.createElement(Vq,{showTopList:!0})),de.createElement(s,null,de.createElement(e7e,null),de.createElement(Vq,null),de.createElement(t7e,null)))}),{Component:s7e,usePublisher:_a,useEmitterValue:bn,useEmitter:KU}=noe(X9e,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},o7e),a7e=Coe({usePublisher:_a,useEmitterValue:bn,useEmitter:KU}),l7e=Toe({usePublisher:_a,useEmitterValue:bn,useEmitter:KU}),c7e=s7e,qq={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},u7e={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Xq,ceil:Yq,floor:yT,min:q$,max:n1}=Math;function d7e(e){return{...u7e,items:e}}function Kq(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function f7e(e,t){return e&&e.column===t.column&&e.row===t.row}function qS(e,t){return e&&e.width===t.width&&e.height===t.height}const h7e=Wn(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:s,smoothScrollTargetReached:a,scrollContainerState:c,footerHeight:u,headerHeight:f},h,p,{propsReady:g,didMount:v},{windowViewportRect:y,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,windowScrollTo:x},E])=>{const I=tt(0),A=tt(0),k=tt(qq),O=tt({height:0,width:0}),D=tt({height:0,width:0}),N=Sn(),H=Sn(),G=tt(0),z=tt(null),L=tt({row:0,column:0}),F=Sn(),j=Sn(),V=tt(!1),W=tt(0),K=tt(!0),X=tt(!1);qn(Oe(v,un(W),Wt(([J,ae])=>!!ae)),()=>{rn(K,!1),rn(A,0)}),qn(Oe(Ri(v,K,D,O,W,X),Wt(([J,ae,le,he,,pe])=>J&&!ae&&le.height!==0&&he.height!==0&&!pe)),([,,,,J])=>{rn(X,!0),VU(1,()=>{rn(N,J)}),Vu(Oe(r),()=>{rn(n,[0,0]),rn(K,!0)})}),Et(Oe(j,Wt(J=>J!=null&&J.scrollTop>0),_u(0)),A),qn(Oe(v,un(j),Wt(([,J])=>J!=null)),([,J])=>{J&&(rn(O,J.viewport),rn(D,J==null?void 0:J.item),rn(L,J.gap),J.scrollTop>0&&(rn(V,!0),Vu(Oe(r,pv(1)),ae=>{rn(V,!1)}),rn(s,{top:J.scrollTop})))}),Et(Oe(O,ut(({height:J})=>J)),i),Et(Oe(Ri(Ht(O,qS),Ht(D,qS),Ht(L,(J,ae)=>J&&J.column===ae.column&&J.row===ae.row),Ht(r)),ut(([J,ae,le,he])=>({viewport:J,item:ae,gap:le,scrollTop:he}))),F),Et(Oe(Ri(Ht(I),t,Ht(L,f7e),Ht(D,qS),Ht(O,qS),Ht(z),Ht(A),Ht(V),Ht(K),Ht(W)),Wt(([,,,,,,,J])=>!J),ut(([J,[ae,le],he,pe,ve,ye,xe,,me,be])=>{const{row:Ze,column:Xe}=he,{height:ct,width:Bt}=pe,{width:Pe}=ve;if(xe===0&&(J===0||Pe===0))return qq;if(Bt===0){const Pt=qU(be,J),dt=Pt===0?Math.max(xe-1,0):Pt;return d7e(Kq(Pt,dt,ye))}const ze=koe(Pe,Bt,Xe);let st,gt;me?ae===0&&le===0&&xe>0?(st=0,gt=xe-1):(st=ze*yT((ae+Ze)/(ct+Ze)),gt=ze*Yq((le+Ze)/(ct+Ze))-1,gt=q$(J-1,n1(gt,ze-1)),st=q$(gt,n1(0,st))):(st=0,gt=-1);const vt=Kq(st,gt,ye),{top:_e,bottom:je}=Qq(ve,he,pe,vt),Ke=Yq(J/ze),Be=Ke*ct+(Ke-1)*Ze-je;return{items:vt,offsetTop:_e,offsetBottom:Be,top:_e,bottom:je,itemHeight:ct,itemWidth:Bt}})),k),Et(Oe(z,Wt(J=>J!==null),ut(J=>J.length)),I),Et(Oe(Ri(O,D,k,L),Wt(([J,ae,{items:le}])=>le.length>0&&ae.height!==0&&J.height!==0),ut(([J,ae,{items:le},he])=>{const{top:pe,bottom:ve}=Qq(J,he,ae,le);return[pe,ve]}),Sr(lw)),n);const Q=tt(!1);Et(Oe(r,un(Q),ut(([J,ae])=>ae||J!==0)),Q);const ie=Ks(Oe(Ht(k),Wt(({items:J})=>J.length>0),un(I,Q),Wt(([{items:J},ae,le])=>le&&J[J.length-1].index===ae-1),ut(([,J])=>J-1),Sr())),ce=Ks(Oe(Ht(k),Wt(({items:J})=>J.length>0&&J[0].index===0),_u(0),Sr())),ue=Ks(Oe(Ht(k),un(V),Wt(([{items:J},ae])=>J.length>0&&!ae),ut(([{items:J}])=>({startIndex:J[0].index,endIndex:J[J.length-1].index})),Sr(moe),Dd(0)));Et(ue,p.scrollSeekRangeChanged),Et(Oe(N,un(O,D,I,L),ut(([J,ae,le,he,pe])=>{const ve=hoe(J),{align:ye,behavior:xe,offset:me}=ve;let be=ve.index;be==="LAST"&&(be=he-1),be=n1(0,be,q$(he-1,be));let Ze=r4(ae,pe,le,be);return ye==="end"?Ze=Xq(Ze-ae.height+le.height):ye==="center"&&(Ze=Xq(Ze-ae.height/2+le.height/2)),me&&(Ze+=me),{top:Ze,behavior:xe}})),s);const se=Fo(Oe(k,ut(J=>J.offsetBottom+J.bottom)),0);return Et(Oe(y,ut(J=>({width:J.visibleWidth,height:J.visibleHeight}))),O),{data:z,totalCount:I,viewportDimensions:O,itemDimensions:D,scrollTop:r,scrollHeight:H,overscan:e,scrollBy:o,scrollTo:s,scrollToIndex:N,smoothScrollTargetReached:a,windowViewportRect:y,windowScrollTo:x,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,deviation:G,scrollContainerState:c,footerHeight:u,headerHeight:f,initialItemCount:A,gap:L,restoreStateFrom:j,...p,initialTopMostItemIndex:W,gridState:k,totalListHeight:se,...h,startReached:ce,endReached:ie,rangeChanged:ue,stateChanged:F,propsReady:g,stateRestoreInProgress:V,...E}},kr(XU,Wo,i_,voe,Tf,YU,Cf));function Qq(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=r4(e,t,n,r[0].index),s=r4(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:s}}function r4(e,t,n,r){const i=koe(e.width,n.width,t.column),o=yT(r/i),s=o*n.height+n1(0,o-1)*t.row;return s>0?s+t.row:s}function koe(e,t,n){return n1(1,yT((e+n)/(yT(t)+n)))}const p7e=Wn(()=>{const e=tt(u=>`Item ${u}`),t=tt({}),n=tt(null),r=tt("virtuoso-grid-item"),i=tt("virtuoso-grid-list"),o=tt(Eoe),s=tt("div"),a=tt(zv),c=(u,f=null)=>Fo(Oe(t,ut(h=>h[u]),Sr()),f);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:s,scrollerRef:a,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),m7e=Wn(([e,t])=>({...e,...t}),kr(h7e,p7e)),g7e=de.memo(function(){const t=Lr("gridState"),n=Lr("listClassName"),r=Lr("itemClassName"),i=Lr("itemContent"),o=Lr("computeItemKey"),s=Lr("isSeeking"),a=Tl("scrollHeight"),c=Lr("ItemComponent"),u=Lr("ListComponent"),f=Lr("ScrollSeekPlaceholder"),h=Lr("context"),p=Tl("itemDimensions"),g=Tl("gap"),v=Lr("log"),y=Lr("stateRestoreInProgress"),S=pm(w=>{const b=w.parentElement.parentElement.scrollHeight;a(b);const x=w.firstChild;if(x){const{width:E,height:I}=x.getBoundingClientRect();p({width:E,height:I})}g({row:Jq("row-gap",getComputedStyle(w).rowGap,v),column:Jq("column-gap",getComputedStyle(w).columnGap,v)})});return y?null:de.createElement(u,{ref:S,className:n,...Zo(u,h),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-test-id":"virtuoso-item-list"},t.items.map(w=>{const b=o(w.index,w.data,h);return s?de.createElement(f,{key:b,...Zo(f,h),index:w.index,height:t.itemHeight,width:t.itemWidth}):de.createElement(c,{...Zo(c,h),className:r,"data-index":w.index,key:b},i(w.index,w.data,h))}))}),v7e=de.memo(function(){const t=Lr("HeaderComponent"),n=Tl("headerHeight"),r=Lr("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=Lr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),y7e=de.memo(function(){const t=Lr("FooterComponent"),n=Tl("footerHeight"),r=Lr("headerFooterTag"),i=pm(s=>n(uf(s,"height"))),o=Lr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),b7e=({children:e})=>{const t=de.useContext(Soe),n=Tl("itemDimensions"),r=Tl("viewportDimensions"),i=pm(o=>{r(o.getBoundingClientRect())});return de.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),de.createElement("div",{style:QA,ref:i},e)},x7e=({children:e})=>{const t=de.useContext(Soe),n=Tl("windowViewportRect"),r=Tl("itemDimensions"),i=Lr("customScrollParent"),o=woe(n,i);return de.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),de.createElement("div",{ref:o,style:QA},e)},w7e=de.memo(function({...t}){const n=Lr("useWindowScroll"),r=Lr("customScrollParent"),i=r||n?S7e:_7e,o=r||n?x7e:b7e;return de.createElement(i,{...t},de.createElement(o,null,de.createElement(v7e,null),de.createElement(g7e,null),de.createElement(y7e,null)))}),{Component:IVe,usePublisher:Tl,useEmitterValue:Lr,useEmitter:Aoe}=noe(m7e,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},w7e),_7e=Coe({usePublisher:Tl,useEmitterValue:Lr,useEmitter:Aoe}),S7e=Toe({usePublisher:Tl,useEmitterValue:Lr,useEmitter:Aoe});function Jq(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Qs.WARN),t==="normal"?0:parseInt(t??"0",10)}const E7e=R.forwardRef(({style:e,children:t,...n},r)=>{const i=R.useRef(null),{palette:o,spacing:s}=Dn(),a=T1({".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":s(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${s(6)})`,marginTop:s(6)}}),[c]=AJ({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:o.mode==="dark"?"os-theme-light":"os-theme-dark"}}});R.useEffect(()=>{typeof r!="function"&&(r!=null&&r.current)&&(i!=null&&i.current)&&c({target:i.current,elements:{viewport:r.current}})},[c]);const u=R.useCallback(f=>{f&&r&&(typeof r=="function"?r(f):r.current=f)},[r]);return C.jsx("div",{ref:i,style:e,className:a,children:C.jsx("div",{ref:u,...n,children:t})})});function C7e({items:e=[],renderItem:t,listOptions:n,placeholder:r,...i}){return C.jsx(ht,{...i,children:C.jsx(c7e,{components:{Scroller:E7e},totalCount:e.length,itemContent:o=>t==null?void 0:t(e[o],o),...n})})}function T7e({event:e,hidden:t}){return C.jsxs(ZFe,{children:[te.startCase(`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`)," ",t&&C.jsx(M1e,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function k7e({event:e,index:t,selected:n,...r}){const{spacing:i}=Dn();return C.jsx(vf,{title:C.jsx(ht,{p:1,children:C.jsx(Q3,{event:e,flexDirection:"column"})}),followCursor:!0,children:C.jsxs(t3,{selected:n,...r,sx:{borderLeft:`${i(.5)} solid ${B1(e==null?void 0:e.type)}`,...r.sx},children:[C.jsx(Wd,{children:C.jsx(jt,{variant:"body2",children:t})}),C.jsx(rc,{sx:{overflow:"hidden"},primary:C.jsx(T7e,{event:e,hidden:!1}),secondary:C.jsx(Q3,{event:te.pick(e,"f","g","pId")})})]})})}const A7e=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}}),I7e=e=>Number(e.replace(/px$/,""));function R7e(){const{spacing:e}=Dn(),{controls:t,onChange:n,state:r}=bf(),i=R.useRef(null),{key:o,setKey:s,layers:a,layer:c}=Vp(),{step:u,playing:f,pause:h,stepTo:p}=cU(o),g=R.useMemo(()=>{var v;if(c)return R.createElement(qw[((v=c==null?void 0:c.source)==null?void 0:v.type)??""].steps,{layer:c})},[c]);return R.useEffect(()=>{f||te.delay(()=>{var v,y;return(y=(v=i==null?void 0:i.current)==null?void 0:v.scrollToIndex)==null?void 0:y.call(v,{index:u,align:"start",behavior:"smooth",offset:-I7e(e(6+2))})},150)},[u,f,e]),C.jsxs(zn,{onChange:n,stack:r,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,alignItems:"center",children:g?f?C.jsx(pp,{icon:C.jsx(Sw,{}),label:C.jsxs(C.Fragment,{children:[C.jsx(jt,{children:"Running"}),C.jsx(Nz,{onClick:()=>h(),children:"Pause"})]})}):R.cloneElement(g,{children:v=>c?v.length?C.jsx(C7e,{sx:{width:"100%",height:"100%"},items:v,listOptions:{ref:i,defaultItemHeight:80,overscan:0},renderItem:(y,S)=>C.jsxs(ht,{sx:{height:e(S?10:16),pt:S?0:e(6)},children:[C.jsx(k7e,{event:y,index:S,selected:S===u,sx:{height:"100%"},onClick:()=>p(S)}),C.jsx(Ku,{variant:"inset"})]})}):C.jsx(pp,{icon:C.jsx(dE,{}),label:`${ga(c)} has no steps to display`}):C.jsx(pp,{icon:C.jsx(dE,{}),label:"Steps"})}):C.jsx(pp,{icon:C.jsx(dE,{}),label:"Steps"})})}),C.jsxs(zn.Options,{children:[C.jsx(Gs,{icon:C.jsx(Cw,{}),label:"Layer",value:o,items:te.map(a,v=>({id:v.key,name:ga(v)})),onChange:s,showArrow:!0}),A7e,C.jsx(zFe,{layer:c})]}),C.jsx(zn.Extras,{children:t})]})}const P7e=e=>e?48:36,O7e=8;function M7e({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Options",defaultChecked:o}){const s=rj(),a=te.max([te.findIndex(t,({value:c})=>!!(n!=null&&n[c])),0])??0;return C.jsx(rm,{variant:"popover",children:c=>C.jsxs(C.Fragment,{children:[C.jsx(vf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Qk(c))})}),C.jsx(nm,{...$w(c),anchorOrigin:{horizontal:"center",vertical:-P7e(s)*a-O7e},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:u,label:f,disabled:h})=>C.jsxs(Ru,{disabled:h,onClick:()=>{r==null||r({...n,[u]:!((n==null?void 0:n[u])??o)})},children:[C.jsx(Wd,{children:C.jsx(Wge,{sx:{p:0},checked:!!((n==null?void 0:n[u])??o)})}),f]},u))})]})})}function L7e({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,defaultChecked:s}){var u;const a=te.filter(r,({id:f})=>!!((t==null?void 0:t[f])??s)),c=a.length?a.length===1?(u=te.head(a))==null?void 0:u.name:`${a.length} Selected`:e;return C.jsx(M7e,{defaultChecked:!0,placeholder:te.startCase(e),trigger:f=>C.jsx(nf,{...f,disabled:!(r!=null&&r.length),icon:i,showArrow:o,children:c}),items:te.map(r,({id:f,name:h,description:p,hidden:g})=>({value:f,label:C.jsxs(C.Fragment,{children:[C.jsx(jt,{children:h}),C.jsx(ai,{}),C.jsx(jt,{variant:"body2",color:"text.secondary",children:p})]}),disabled:g})),value:t,onChange:n})}const Zq=C.jsx(Ku,{orientation:"vertical",flexItem:!0,sx:{m:1}});function D7e(){var p,g,v,y;const{controls:e,onChange:t,state:n}=bf(),[r]=vA(),[{layers:i}]=im(),[o,s]=R.useState({}),a=R.useMemo(()=>te.filter(i,S=>(o==null?void 0:o[S.key])??!0),[o,i]),[c,u]=R.useState(),f=R.useMemo(()=>te.head(r),[r]),h=n!=null&&n.renderer&&n.renderer!=="internal:auto"?n.renderer:(g=(p=f==null?void 0:f.renderer)==null?void 0:p.meta)==null?void 0:g.id;return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:C.jsx(Zk,{children:S=>C.jsx(ht,{children:C.jsx(RBe,{...S,layers:a,renderer:h,rendererRef:u})})})})}),C.jsx(zn.Options,{children:C.jsxs(Up,{direction:"row",children:[C.jsx(Gs,{label:"Renderer",icon:C.jsx(_1e,{}),value:(n==null?void 0:n.renderer)??"internal:auto",onChange:S=>t==null?void 0:t({renderer:S}),items:[{id:"internal:auto",name:`Auto (${((y=(v=f==null?void 0:f.renderer)==null?void 0:v.meta)==null?void 0:y.name)??"None"})`},...te.map(r,({renderer:S})=>({id:S.meta.id,name:S.meta.name,description:S.meta.id}))],showArrow:!0}),Zq,C.jsx(L7e,{defaultChecked:!0,label:"Layers",icon:C.jsx(Cw,{}),value:o,onChange:s,items:te.map(i,S=>({id:S.key,name:ga(S)})),showArrow:!0}),Zq,C.jsx(nf,{disabled:!c,onClick:()=>{c==null||c.fitCamera()},icon:C.jsx(C1e,{}),children:"Fit"}),C.jsx(nf,{disabled:!c,onClick:()=>{c==null||c.initialCamera()},icon:C.jsx(I1e,{}),children:"1:1"})]})}),C.jsx(zn.Extras,{children:e})]})}const i4={viewport:{id:"viewport",name:"Viewport",icon:C.jsx(WQ,{}),content:D7e},tree:{id:"tree",name:"Tree",icon:C.jsx(FQ,{}),content:wBe},steps:{id:"steps",name:"Steps",icon:C.jsx(dE,{}),content:R7e},info:{id:"info",name:"Logs",icon:C.jsx(UQ,{}),content:CRe},layers:{id:"layers",name:"Layers",icon:C.jsx(Cw,{}),content:JFe},debug:{id:"debug",name:"Debugger",icon:C.jsx(E1e,{}),content:ERe},settings:{id:"settings",name:"Settings",icon:C.jsx(U1e,{}),content:QGe},about:{id:"about",name:"About",icon:C.jsx(L1e,{}),content:MSe}},[N7e,B7e]=mc({view:{type:"branch",key:qo(),orientation:"horizontal",children:[{size:75,type:"branch",key:qo(),orientation:"horizontal",children:[{type:"leaf",size:25,key:qo(),content:{type:"layers"}},{size:75,type:"branch",key:qo(),orientation:"vertical",children:[{type:"leaf",size:75,key:qo(),content:{type:"viewport"}},{type:"leaf",size:25,key:qo(),content:{type:"info"}}]}]},{size:25,type:"leaf",key:qo(),content:{type:"steps"}}]}});function $7e(){const[e]=Bee(),t=jJ(),n=te.values(e);return C.jsx(Dz,{sx:{...t,zIndex:r=>r.zIndex.tooltip+1,WebkitAppRegion:"drag"},open:!!n.length,unmountOnExit:!0,mountOnEnter:!0,children:C.jsxs(Up,{alignItems:"center",spacing:4,children:[C.jsx(Sw,{}),n.map((r,i)=>C.jsx(jt,{variant:"body2",color:"textSecondary",children:r},i))]})})}function F7e(e){const t=$Re(),[{view:n},r]=N7e();return C.jsxs(C.Fragment,{children:[C.jsx(En,{...e,children:C.jsx($J,{root:n,onChange:i=>r(()=>({view:i})),renderLeaf:({content:i})=>{var o;return C.jsx(jp,{in:!0,children:C.jsx(ht,{sx:{width:"100%",height:"100%"},children:R.createElement((o=i4[(i==null?void 0:i.type)??""])==null?void 0:o.content)})})}})}),C.jsx(jp,{in:t,children:C.jsx(Lye,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),C.jsx($7e,{})]})}const z7e=e=>eF(e,"#ffffff")>eF(e,"#000000")?"#ffffff":"#000000";function j7e(e){R.useEffect(()=>{document.querySelector('meta[name="theme-color"]').setAttribute("content",e),document.title=g3,"electron"in window&&window.electron.invoke("title-bar","#00000000",z7e(e))},[e])}function U7e(e){return new Promise(t=>te.delay(t,e))}async function H7e(e,t=2500){const n=te.now();return{result:await Promise.any([e(),U7e(t)]),delta:te.now()-n}}function W7e(){const e=gc(),[{remote:t}]=Ju(),[,n]=nv(),r=om("connections");return R.useEffect(()=>{let i=!1,o=[];return r(async()=>{if(t!=null&&t.length){for(const{transport:s,url:a,disabled:c}of t){if(c!==!0){e(`Connecting to ${a}...`);const u=new(GGe(s))({url:a});await u.connect();const{result:f,delta:h}=await H7e(()=>u.call("about"));f?(e(`Connected to ${f.name}.`),o=[...o,{...f,url:a,ping:h,call:u.call.bind(u),disconnect:u.disconnect.bind(u)}]):await u.disconnect()}i||n(()=>o)}i||e(`Connected to ${o.length} of ${t.length} solvers.`)}}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),C.jsx(C.Fragment,{})}const G7e=e=>t=>({...t,source:e});function V7e(){const[e]=nv(),[,t]=$C(),n=om("features");return Tte(r=>n(async()=>{const i={algorithms:[],formats:te.keys(Kj).map(o=>({id:o,source:"internal"})),maps:[]};for(const{call:o,url:s}of e)for(const a of["algorithms","formats","maps"])i[a]=te.uniqBy([...i[a],...te.map(await o(`features/${a}`),G7e(s))],"id");r.aborted||t(()=>i)}),[e,t]),C.jsx(C.Fragment,{})}function q7e(){const[{layers:e},t]=im();return R.useMemo(()=>te.map(e,n=>{const r=_ne(n).service;if(r)return R.createElement(r,{key:n.key,value:n,onChange:i=>t(({layers:o})=>({layers:te.map(o,s=>s.key===n.key?i(s):s)}))})}),[e,t])}function X7e(){const e=q7e();return C.jsx(C.Fragment,{children:e})}function Ioe({slices:e,children:t,services:n}){return C.jsx(C.Fragment,{children:te.reduce(te.map(e,r=>R.createElement(r)),(r,i)=>R.cloneElement(i,{},r),C.jsxs(C.Fragment,{children:[t,te.map(n,(r,i)=>R.createElement(r,{key:i}))]}))})}var Roe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(Xt,function(){return function n(r,i,o){var s=window,a="application/octet-stream",c=o||a,u=r,f=!i&&!o&&u,h=document.createElement("a"),p=function(k){return String(k)},g=s.Blob||s.MozBlob||s.WebKitBlob||p,v=i||"download",y,S;if(g=g.call?g.bind(s):Blob,String(this)==="true"&&(u=[u,c],c=u[0],u=u[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,h.href.indexOf(f)!==-1)){var w=new XMLHttpRequest;return w.open("GET",f,!0),w.responseType="blob",w.onload=function(k){n(k.target.response,v,a)},setTimeout(function(){w.send()},0),w}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))if(u.length>1024*1024*1.999&&g!==p)u=I(u),c=u.type||a;else return navigator.msSaveBlob?navigator.msSaveBlob(I(u),v):A(u);else if(/([\x80-\xff])/.test(u)){var b=0,x=new Uint8Array(u.length),E=x.length;for(b;b0?`text-shadow: ${i} ${this.dropShadowBlur}px ${e}`:`text-shadow: ${i} ${e}`}reset(){Object.assign(this,zm.defaultOptions)}onBeforeDraw(){const{fontsDirty:e}=this;return this.fontsDirty=!1,this.isSafari&&this._fonts.length>0&&e?new Promise(t=>setTimeout(t,100)):Promise.resolve()}get isSafari(){const{userAgent:e}=nt.ADAPTER.getNavigator();return/^((?!chrome|android).)*safari/i.test(e)}set fillGradientStops(e){console.warn("[HTMLTextStyle] fillGradientStops is not supported by HTMLText")}get fillGradientStops(){return super.fillGradientStops}set fillGradientType(e){console.warn("[HTMLTextStyle] fillGradientType is not supported by HTMLText")}get fillGradientType(){return super.fillGradientType}set miterLimit(e){console.warn("[HTMLTextStyle] miterLimit is not supported by HTMLText")}get miterLimit(){return super.miterLimit}set trim(e){console.warn("[HTMLTextStyle] trim is not supported by HTMLText")}get trim(){return super.trim}set textBaseline(e){console.warn("[HTMLTextStyle] textBaseline is not supported by HTMLText")}get textBaseline(){return super.textBaseline}set leading(e){console.warn("[HTMLTextStyle] leading is not supported by HTMLText")}get leading(){return super.leading}set lineJoin(e){console.warn("[HTMLTextStyle] lineJoin is not supported by HTMLText")}get lineJoin(){return super.lineJoin}};let t1=zm;t1.availableFonts={};t1.defaultOptions={align:"left",breakWords:!1,dropShadow:!1,dropShadowAlpha:1,dropShadowAngle:Math.PI/6,dropShadowBlur:0,dropShadowColor:"black",dropShadowDistance:5,fill:"black",fontFamily:"Arial",fontSize:26,fontStyle:"normal",fontVariant:"normal",fontWeight:"normal",letterSpacing:0,lineHeight:0,padding:0,stroke:"black",strokeThickness:0,whiteSpace:"normal",wordWrap:!1,wordWrapWidth:100};const jm=class extends hm{constructor(e="",t={}){super(mt.EMPTY),this._text=null,this._style=null,this._autoResolution=!0,this._loading=!1,this.localStyleID=-1,this.dirty=!1,this.ownsStyle=!1;const n=new Image,r=mt.from(n,{scaleMode:nt.SCALE_MODE,resourceOptions:{autoLoad:!1}});r.orig=new Zt,r.trim=new Zt,this.texture=r;const i="http://www.w3.org/2000/svg",o="http://www.w3.org/1999/xhtml",s=document.createElementNS(i,"svg"),a=document.createElementNS(i,"foreignObject"),c=document.createElementNS(o,"div"),u=document.createElementNS(o,"style");a.setAttribute("width","10000"),a.setAttribute("height","10000"),a.style.overflow="hidden",s.appendChild(a),this.maxWidth=jm.defaultMaxWidth,this.maxHeight=jm.defaultMaxHeight,this._domElement=c,this._styleElement=u,this._svgRoot=s,this._foreignObject=a,this._foreignObject.appendChild(u),this._foreignObject.appendChild(c),this._image=n,this._loadImage=new Image,this._autoResolution=jm.defaultAutoResolution,this._resolution=jm.defaultResolution??nt.RESOLUTION,this.text=e,this.style=t}measureText(e){var a,c;const{text:t,style:n,resolution:r}=Object.assign({text:this._text,style:this._style,resolution:this._resolution},e);Object.assign(this._domElement,{innerHTML:t,style:n.toCSS(r)}),this._styleElement.textContent=n.toGlobalCSS(),document.body.appendChild(this._svgRoot);const i=this._domElement.getBoundingClientRect();this._svgRoot.remove();const o=Math.min(this.maxWidth,Math.ceil(i.width)),s=Math.min(this.maxHeight,Math.ceil(i.height));return this._svgRoot.setAttribute("width",o.toString()),this._svgRoot.setAttribute("height",s.toString()),t!==this._text&&(this._domElement.innerHTML=this._text),n!==this._style&&(Object.assign(this._domElement,{style:(a=this._style)==null?void 0:a.toCSS(r)}),this._styleElement.textContent=(c=this._style)==null?void 0:c.toGlobalCSS()),{width:o+n.padding*2,height:s+n.padding*2}}async updateText(e=!0){const{style:t,_image:n,_loadImage:r}=this;if(this.localStyleID!==t.styleID&&(this.dirty=!0,this.localStyleID=t.styleID),!this.dirty&&e)return;const{width:i,height:o}=this.measureText();n.width=r.width=Math.ceil(Math.max(1,i)),n.height=r.height=Math.ceil(Math.max(1,o)),this._loading||(this._loading=!0,await new Promise(s=>{r.onload=async()=>{await t.onBeforeDraw(),this._loading=!1,n.src=r.src,r.onload=null,r.src="",this.updateTexture(),s()};const a=new XMLSerializer().serializeToString(this._svgRoot);r.src=`data:image/svg+xml;charset=utf8,${encodeURIComponent(a)}`}))}get source(){return this._image}updateTexture(){const{style:e,texture:t,_image:n,resolution:r}=this,{padding:i}=e,{baseTexture:o}=t;t.trim.width=t._frame.width=n.width/r,t.trim.height=t._frame.height=n.height/r,t.trim.x=-i,t.trim.y=-i,t.orig.width=t._frame.width-i*2,t.orig.height=t._frame.height-i*2,this._onTextureUpdate(),o.setRealSize(n.width,n.height,r),this.dirty=!1}_render(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._render(e)}_renderCanvas(e){this._autoResolution&&this._resolution!==e.resolution&&(this._resolution=e.resolution,this.dirty=!0),this.updateText(!0),super._renderCanvas(e)}getLocalBounds(e){return this.updateText(!0),super.getLocalBounds(e)}_calculateBounds(){this.updateText(!0),this.calculateVertices(),this._bounds.addQuad(this.vertexData)}_onStyleChange(){this.dirty=!0}destroy(e){var n,r,i,o,s;typeof e=="boolean"&&(e={children:e}),e=Object.assign({},jm.defaultDestroyOptions,e),super.destroy(e);const t=null;this.ownsStyle&&((n=this._style)==null||n.cleanFonts()),this._style=t,(r=this._svgRoot)==null||r.remove(),this._svgRoot=t,(i=this._domElement)==null||i.remove(),this._domElement=t,(o=this._foreignObject)==null||o.remove(),this._foreignObject=t,(s=this._styleElement)==null||s.remove(),this._styleElement=t,this._loadImage.src="",this._loadImage.onload=null,this._loadImage=t,this._image.src="",this._image=t}get width(){return this.updateText(!0),Math.abs(this.scale.x)*this._image.width/this.resolution}set width(e){this.updateText(!0);const t=Md(this.scale.x)||1;this.scale.x=t*e/this._image.width/this.resolution,this._width=e}get height(){return this.updateText(!0),Math.abs(this.scale.y)*this._image.height/this.resolution}set height(e){this.updateText(!0);const t=Md(this.scale.y)||1;this.scale.y=t*e/this._image.height/this.resolution,this._height=e}get style(){return this._style}set style(e){this._style!==e&&(e=e||{},e instanceof t1?(this.ownsStyle=!1,this._style=e):e instanceof Vu?(console.warn("[HTMLText] Cloning TextStyle, if this is not what you want, use HTMLTextStyle"),this.ownsStyle=!0,this._style=t1.from(e)):(this.ownsStyle=!0,this._style=new t1(e)),this.localStyleID=-1,this.dirty=!0)}get text(){return this._text}set text(e){e=String(e===""||e===null||e===void 0?" ":e),e=this.sanitiseText(e),this._text!==e&&(this._text=e,this.dirty=!0)}get resolution(){return this._resolution}set resolution(e){this._autoResolution=!1,this._resolution!==e&&(this._resolution=e,this.dirty=!0)}sanitiseText(e){return e.replace(/
/gi,"
").replace(/
/gi,"
").replace(/ /gi," ")}};let jA=jm;jA.defaultDestroyOptions={texture:!0,children:!1,baseTexture:!0};jA.defaultMaxWidth=2024;jA.defaultMaxHeight=2024;jA.defaultAutoResolution=!0;function k8e(e,t){return{constructor:e,meta:t}}function A8e(e,t,n,r,i){rie(e,t,n||0,r||e.length-1,i||I8e)}function rie(e,t,n,r,i){for(;r>n;){if(r-n>600){var o=r-n+1,s=t-n+1,a=Math.log(o),c=.5*Math.exp(2*a/3),u=.5*Math.sqrt(a*c*(o-c)/o)*(s-o/2<0?-1:1),f=Math.max(n,Math.floor(t-s*c/o+u)),h=Math.min(r,Math.floor(t+(o-s)*c/o+u));rie(e,t,f,h,i)}var p=e[t],g=n,v=r;for(Kb(e,n,t),i(e[r],p)>0&&Kb(e,n,r);g0;)v--}i(e[n],p)===0?Kb(e,n,v):(v++,Kb(e,v,r)),v<=t&&(n=v+1),t<=v&&(r=v-1)}}function Kb(e,t,n){var r=e[t];e[t]=e[n],e[n]=r}function I8e(e,t){return et?1:0}class R8e{constructor(t=9){this._maxEntries=Math.max(4,t),this._minEntries=Math.max(2,Math.ceil(this._maxEntries*.4)),this.clear()}all(){return this._all(this.data,[])}search(t){let n=this.data;const r=[];if(!NS(t,n))return r;const i=this.toBBox,o=[];for(;n;){for(let s=0;s=0&&o[n].children.length>this._maxEntries;)this._split(o,n),n--;this._adjustParentBBoxes(i,o,n)}_split(t,n){const r=t[n],i=r.children.length,o=this._minEntries;this._chooseSplitAxis(r,o,i);const s=this._chooseSplitIndex(r,o,i),a=Um(r.children.splice(s,r.children.length-s));a.height=r.height,a.leaf=r.leaf,km(r,this.toBBox),km(a,this.toBBox),n?t[n-1].children.push(a):this._splitRoot(r,a)}_splitRoot(t,n){this.data=Um([t,n]),this.data.height=t.height+1,this.data.leaf=!1,km(this.data,this.toBBox)}_chooseSplitIndex(t,n,r){let i,o=1/0,s=1/0;for(let a=n;a<=r-n;a++){const c=xx(t,0,a,this.toBBox),u=xx(t,a,r,this.toBBox),f=L8e(c,u),h=m$(c)+m$(u);f=n;u--){const f=t.children[u];wx(a,t.leaf?o(f):f),c+=LS(a)}return c}_adjustParentBBoxes(t,n,r){for(let i=r;i>=0;i--)wx(n[i],t)}_condense(t){for(let n=t.length-1,r;n>=0;n--)t[n].children.length===0?n>0?(r=t[n-1].children,r.splice(r.indexOf(t[n]),1)):this.clear():km(t[n],this.toBBox)}}function P8e(e,t,n){if(!n)return t.indexOf(e);for(let r=0;r=e.minX&&t.maxY>=e.minY}function Um(e){return{children:e,height:1,leaf:!0,minX:1/0,minY:1/0,maxX:-1/0,maxY:-1/0}}function zV(e,t,n,r,i){const o=[t,n];for(;o.length;){if(n=o.pop(),t=o.pop(),n-t<=r)continue;const s=t+Math.ceil((n-t)/r/2)*r;A8e(e,s,t,n,i),o.push(t,s,s,n)}}class N8e extends R8e{toBBox(t){return{minX:t.left,minY:t.top,maxX:t.right,maxY:t.bottom}}compareMinX(t,n){return t.left-n.left}compareMinY(t,n){return t.top-n.top}}const jV={screenSize:{width:1,height:1},workerCount:4,workerIndex:0,tileResolution:{width:64,height:64},tileSubdivision:0,refreshInterval:1e3/60,animationDuration:150,debounceInterval:75,backgroundColor:"#ffffff",accentColor:"#333333",dynamicResolution:{intervalMs:5e3,increment:.25,maxScale:2,minScale:1,dtMax:1.5,dtMin:1.1}};var iie={},fT=$t&&$t.__assign||function(){return fT=Object.assign||function(e){for(var t,n=1,r=arguments.length;n0?1:-1}),v$}var X8e=V8e()?Math.sign:q8e(),Y8e=X8e,K8e=Math.abs,Q8e=Math.floor,J8e=function(e){return isNaN(e)?0:(e=Number(e),e===0||!isFinite(e)?e:Y8e(e)*Q8e(K8e(e)))},Z8e=J8e,eHe=Math.max,tHe=function(e){return eHe(0,Z8e(e))},oie=function(e){if(typeof e!="function")throw new TypeError(e+" is not a function");return e},nHe=Bv,sie=function(e){if(!nHe(e))throw new TypeError("Cannot use null or undefined");return e},rHe={exports:{}},iHe=function(){var e=Object.assign,t;return typeof e!="function"?!1:(t={foo:"raz"},e(t,{bar:"dwa"},{trzy:"trzy"}),t.foo+t.bar+t.trzy==="razdwatrzy")},y$,HV;function oHe(){return HV||(HV=1,y$=function(){try{return Object.keys("primitive"),!0}catch{return!1}}),y$}var b$,WV;function sHe(){if(WV)return b$;WV=1;var e=Bv,t=Object.keys;return b$=function(n){return t(e(n)?Object(n):n)},b$}var x$,GV;function aHe(){return GV||(GV=1,x$=oHe()()?Object.keys:sHe()),x$}var w$,VV;function lHe(){if(VV)return w$;VV=1;var e=aHe(),t=sie,n=Math.max;return w$=function(r,i){var o,s,a=n(arguments.length,2),c;for(r=Object(t(r)),c=function(u){try{r[u]=i[u]}catch(f){o||(o=f)}},s=1;s-1},S$}var THe=EHe()?String.prototype.contains:CHe(),LE=uie,XV=SHe,die=aie,fie=G8e,n1=THe,kHe=cie.exports=function(e,t){var n,r,i,o,s;return arguments.length<2||typeof e!="string"?(o=t,t=e,e=null):o=arguments[2],LE(e)?(n=n1.call(e,"c"),r=n1.call(e,"e"),i=n1.call(e,"w")):(n=i=!0,r=!1),s={value:t,configurable:n,enumerable:r,writable:i},o?die(fie(o),s):s};kHe.gs=function(e,t,n){var r,i,o,s;return typeof e!="string"?(o=n,n=t,t=e,e=null):o=arguments[3],LE(t)?XV(t)?LE(n)?XV(n)||(o=n,n=void 0):n=void 0:(o=t,t=n=void 0):t=void 0,LE(e)?(r=n1.call(e,"c"),i=n1.call(e,"e")):(r=!0,i=!1),s={get:t,set:n,configurable:r,enumerable:i},o?die(fie(o),s):s};var e_=cie.exports,U5={exports:{}};(function(e,t){var n=e_,r=oie,i=Function.prototype.apply,o=Function.prototype.call,s=Object.create,a=Object.defineProperty,c=Object.defineProperties,u=Object.prototype.hasOwnProperty,f={configurable:!0,enumerable:!1,writable:!0},h,p,g,v,y,S,w;h=function(b,x){var E;return r(x),u.call(this,"__ee__")?E=this.__ee__:(E=f.value=s(null),a(this,"__ee__",f),f.value=null),E[b]?typeof E[b]=="object"?E[b].push(x):E[b]=[E[b],x]:E[b]=x,this},p=function(b,x){var E,I;return r(x),I=this,h.call(this,b,E=function(){g.call(I,b,E),i.call(x,this,arguments)}),E.__eeOnceListener__=x,this},g=function(b,x){var E,I,A,k;if(r(x),!u.call(this,"__ee__"))return this;if(E=this.__ee__,!E[b])return this;if(I=E[b],typeof I=="object")for(k=0;A=I[k];++k)(A===x||A.__eeOnceListener__===x)&&(I.length===2?E[b]=I[k?0:1]:I.splice(k,1));else(I===x||I.__eeOnceListener__===x)&&delete E[b];return this},v=function(b){var x,E,I,A,k;if(u.call(this,"__ee__")&&(A=this.__ee__[b],!!A))if(typeof A=="object"){for(E=arguments.length,k=new Array(E-1),x=1;x=55296&&E<=56319&&(O+=p[++S])),O=g?u.call(g,v,O,w):O,y?(f.value=O,h(b,w,f)):b[w]=O,++w;x=w}}if(x===void 0)for(x=r(p.length),y&&(b=new y(x)),S=0;S=6&&(n-=6),kt(n<1?255*((t-e)*n+e):n<3?255*t:n<4?255*((t-e)*(4-n)+e):255*e)},Xi=function(e,t,n){t/=100;var r=(n/=100)<=.5?n*(t+1):n+t-n*t,i=2*n-r;return{r:U$(i,r,(e/=60)+2),g:U$(i,r,e),b:U$(i,r,e-2)}},MU=function(e,t,n,r){return{r:kt(255*(1-e)*(r=1-r)),g:kt(255*(1-t)*r),b:kt(255*(1-n)*r)}},yie=function(e,t,n){e/=255,t/=255,n/=255;var r=1-Math.max(e,t,n),i=1-r,o=i&&(i-t)/i,s=i&&(i-n)/i;return{c:kt(100*(i&&(i-e)/i)),m:kt(100*o),y:kt(100*s),k:kt(100*r)}},pv=function(e,t,n,r){r===void 0&&(r=1),e/=255,t/=255,n/=255,r=Math.min(r,1);var i=Math.max(e,t,n),o=Math.min(e,t,n),s=i-o,a=0,c=0,u=(i+o)/2;if(s!==0){switch(i){case e:a=(t-n)/s%6;break;case t:a=(n-e)/s+2;break;case n:a=(e-t)/s+4}(a=kt(60*a))<0&&(a+=360),c=s/(1-Math.abs(2*u-1))}return{h:a,s:kt(100*c),l:kt(100*u),a:r}},fq=function(e,t){if(e<0&&(e+=360),e>360&&(e-=360),e===360||e===0)return e;var n=[[0,120],[120,180],[180,240],[240,360]],r=[[0,60],[60,120],[120,240],[240,360]],i=t?r:n,o=0,s=0,a=0,c=0;return(t?n:r).find(function(u,f){return e>=u[0]&&e360||e<0)&&(e-=360*Math.floor(e/360)),e},Bo=function(e){return typeof e=="string"&&(e=$v.test(e)?HA(e)/100:+e),isNaN(+e)||e>1?1:kt(e)},Fv=function(e,t,n){return t.reduce(function(r,i){return H5(H5([],r,!0),[cn(cn({},e),{h:n===Yo.ADDITIVE?ow(e.h+i):ow(fq(fq(e.h,!1)+i,!0))})],!1)},[cn({},e)])},JHe=function(e,t){return Fv(e,[30,-30],t)},ZHe=function(e,t){return Fv(e,[180],t)},eWe=function(e,t){return Fv(e,[150,-150],t)},tWe=function(e,t){return Fv(e,[120,-120],t)},nWe=function(e,t){return Fv(e,[60,-120,180],t)},rWe=function(e,t){return Fv(e,[90,-90,180],t)},da=function(e){return typeof e=="string"?function(t){var n;if(Object.keys(Xt).some(function(r){if(_x[r].test(t))return n=r,!0}),!n&&~gie.indexOf(t)&&(n=Xt.HEX),!n)throw new Error(KHe);return n}(e):function(t){var n,r=!1,i=vie(Object.keys(t));if(W5[i]&&(n=W5[i]),n&&n===Xt.RGB){var o=Object.entries(t).some(function(a){return!G5.test("".concat(a[1]))}),s=Object.entries(t).some(function(a){return!($v.test("".concat(a[1]))||!G5.test("".concat(a[1]))&&!isNaN(+a[1])&&+a[1]<=255)});o&&s&&(r=!0),o||(n=Xt.HEX)}if(!n||r)throw new Error(QHe);return n}(e)},iWe=((Zb={})[Xt.HEX]=function(e){var t=(~gie.indexOf(e)?hT[e]:e).match(_x.HEX),n={r:BS(t[1]||t[5]),g:BS(t[2]||t[6]),b:BS(t[3]||t[7])},r=t[4]||t[8];return r!==void 0&&(n.a=BS(r)/255),n},Zb[Xt.RGB]=function(e){var t=e.match(_x.RGB),n=xp(t[1]||t[5]),r=xp(t[2]||t[6]),i=xp(t[3]||t[7]),o=t[4]||t[8],s={r:Math.min(n,255),g:Math.min(r,255),b:Math.min(i,255)};return o!==void 0&&(s.a=Bo(o)),s},Zb[Xt.HSL]=function(e){var t=e.match(_x.HSL),n=ow(t[1]||t[5]),r=pT(t[2]||t[6]),i=pT(t[3]||t[7]),o=t[4]||t[8],s=Xi(n,r,i);return o!==void 0&&(s.a=Bo(o)),s},Zb[Xt.CMYK]=function(e){var t=e.match(_x.CMYK),n=Ld(t[1]||t[6]),r=Ld(t[2]||t[7]),i=Ld(t[3]||t[8]),o=Ld(t[4]||t[9]),s=t[5]||t[10],a=MU(n,r,i,o);return s!==void 0&&(a.a=Bo(s)),a},Zb),oWe=((ex={})[Xt.HEX]=function(e){var t={r:xp("".concat(e.r)),g:xp("".concat(e.g)),b:xp("".concat(e.b))};return po(e,"a")&&(t.a=Math.min(xp("".concat(e.a),!0),1)),t},ex[Xt.RGB]=function(e){return this.HEX(e)},ex[Xt.HSL]=function(e){var t=pT("".concat(e.s)),n=pT("".concat(e.l)),r=Xi(ow(e.h),t,n);return po(e,"a")&&(r.a=Bo(e.a)),r},ex[Xt.CMYK]=function(e){var t=Ld("".concat(e.c)),n=Ld("".concat(e.m)),r=Ld("".concat(e.y)),i=Ld("".concat(e.k)),o=MU(t,n,r,i);return po(e,"a")&&(o.a=Bo(e.a)),o},ex),Jp=function(e,t){return t===void 0&&(t=da(e)),typeof e=="string"?iWe[t](e):oWe[t](e)},an=((vu={})[Xt.HEX]=function(e){return{r:$S(e.r),g:$S(e.g),b:$S(e.b)}},vu.HEXA=function(e){var t=an.HEX(e);return t.a=po(e,"a")?$S(255*e.a):"0xFF",t},vu[Xt.RGB]=function(e,t){return po(e,"a")&&delete e.a,Op(e,t)},vu.RGBA=function(e,t){return e.a=po(e,"a")?kt(e.a):1,Op(e,t)},vu[Xt.HSL]=function(e,t){var n=pv(e.r,e.g,e.b);return delete n.a,hg(n,t)},vu.HSLA=function(e,t){var n=an.HSL(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},vu[Xt.CMYK]=function(e,t){return sWe(yie(e.r,e.g,e.b),t)},vu.CMYKA=function(e,t){var n=an.CMYK(e,t);return n.a=po(e,"a")?kt(e.a,t):1,n},vu),hq=function(e,t,n,r){var i=da(e),o=typeof e=="string",s=Jp(e,i),a=typeof e=="string"&&po(s,"a")||typeof e!="string"&&po(e,"a"),c=pv(s.r,s.g,s.b,s.a);a||delete c.a;var u=n?c.l/(t+1):(100-c.l)/(t+1),f=Array(t).fill(null).map(function(h,p){return cn(cn({},c),{l:c.l+u*(p+1)*(1-2*+n)})});switch(i){case Xt.HEX:default:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?a?on.HEX(Op(cn(cn({},p),{a:kt(255*p.a)}),r)):on.HEX(Op(p,r)):a?an.HEXA(p):an.HEX(p)});case Xt.RGB:return f.map(function(h){var p=Xi(h.h,h.s,h.l);return a&&(p.a=h.a),o?on.RGB(Op(p,r)):a?an.RGBA(p,r):an.RGB(p,r)});case Xt.HSL:return f.map(function(h){return o?on.HSL(hg(h,r)):a?an.HSLA(cn(cn({},Xi(h.h,h.s,h.l)),{a:h.a}),r):an.HSL(Xi(h.h,h.s,h.l),r)})}},Am=((Xh={buildHarmony:function(e,t,n,r){var i=da(e),o=Jp(e,i),s=pv(o.r,o.g,o.b,o.a),a=typeof e=="string"&&po(o,"a")||typeof e!="string"&&po(e,"a"),c=typeof e=="string";switch(i){case Xt.HEX:default:return a?this.HEXA(hg(s,0),t,n,c):this.HEX(hg(s,0),t,n,c);case Xt.HSL:return a?this.HSLA(s,t,n,c,r):this.HSL(s,t,n,c,r);case Xt.RGB:return a?this.RGBA(s,t,n,c,r):this.RGB(s,t,n,c,r)}}})[Xt.HEX]=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(Xi(i.h,i.s,i.l)):an.HEX(Xi(i.h,i.s,i.l))})},Xh.HEXA=function(e,t,n,r){return t(e,n).map(function(i){return r?on.HEX(cn(cn({},Xi(i.h,i.s,i.l)),{a:255*Bo(i.a)})):an.HEXA(cn(cn({},Xi(i.h,i.s,i.l)),{a:Bo(i.a)}))})},Xh[Xt.RGB]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Op(Xi(o.h,o.s,o.l),i)):an.RGB(Xi(o.h,o.s,o.l),i)})},Xh.RGBA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.RGB(Op(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)):an.RGBA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Xh[Xt.HSL]=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(hg({h:o.h,s:o.s,l:o.l},i)):an.HSL(Xi(o.h,o.s,o.l),i)})},Xh.HSLA=function(e,t,n,r,i){return t(e,n).map(function(o){return r?on.HSL(hg(cn(cn({},o),{a:Bo(o.a)}),i)):an.HSLA(cn(cn({},Xi(o.h,o.s,o.l)),{a:Bo(o.a)}),i)})},Xh),Im=((Yh={mix:function(e,t){var n,r,i,o,s,a,c,u,f,h,p,g,v,y,S,w=e.map(function(I){var A=da(I);return Jp(I,A)}),b=t===Yo.SUBTRACTIVE?w.map(function(I){var A,k,O,L,N,H,G,z,D,F,j,V,W,K,X=(A=I.r,k=I.g,O=I.b,L=Math.min(A,k,O),N=Math.min(255-A,255-k,255-O),H=A-L,G=k-L,z=O-L,D=Math.min(H,G),F=H-D,j=(G+D)/2,V=(z+G-D)/2,W=Math.max(F,j,V)/Math.max(H,G,z),K=isNaN(W)||W===1/0||W<=0?1:W,{r:F/K+N,y:j/K+N,b:V/K+N});return po(I,"a")&&(X.a=I.a),X}):null;function x(I){var A=t===Yo.ADDITIVE?{r:0,g:0,b:0,a:0}:{r:0,y:0,b:0,a:0};return I.reduce(function(k,O){var L=po(O,"a")?O.a:1,N={r:Math.min(k.r+O.r*L,255),b:Math.min(k.b+O.b*L,255),a:1-(1-L)*(1-k.a)},H="g"in k?k.g:k.y,G="g"in O?O.g:O.y;return cn(cn({},N),t===Yo.ADDITIVE?{g:Math.min(H+G*L,255)}:{y:Math.min(H+G*L,255)})},A)}if(t===Yo.ADDITIVE)n=x(w);else{var E=x(b);r=E.r,i=E.y,o=E.b,s=Math.min(r,i,o),a=Math.min(255-r,255-i,255-o),c=r-s,u=i-s,f=o-s,h=Math.min(u,f),p=c+u-h,g=u+h,v=2*(f-h),y=Math.max(p,g,v)/Math.max(c,u,f),S=isNaN(y)||y===1/0||y<=0?1:y,(n={r:p/S+a,g:g/S+a,b:v/S+a}).a=E.a}return{r:kt(n.r),g:kt(n.g),b:kt(n.b),a:ol(n.a,0,1)}}})[Xt.HEX]=function(e,t,n){var r=this.mix(e,t);return delete r.a,n?on.HEX(r):an.HEX(r)},Yh.HEXA=function(e,t,n){var r=this.mix(e,t);return r.a=n?255*Bo(r.a):Bo(r.a),n?on.HEX(r):an.HEXA(r)},Yh[Xt.RGB]=function(e,t,n,r){var i=this.mix(e,t);return delete i.a,n?on.RGB(i):an.RGB(i,r)},Yh.RGBA=function(e,t,n,r){var i=this.mix(e,t);return n?on.RGB(i):an.RGBA(i,r)},Yh[Xt.HSL]=function(e,t,n,r){var i=this.mix(e,t),o=pv(i.r,i.g,i.b);return delete i.a,delete o.a,n?on.HSL(o):an.HSL(i,r)},Yh.HSLA=function(e,t,n,r){var i=this.mix(e,t),o=pv(i.r,i.g,i.b,i.a);return n?on.HSL(o):an.HSLA(i,r)},Yh),Op=function(e,t){return cn({r:kt(e.r,t),g:kt(e.g,t),b:kt(e.b,t)},po(e,"a")?{a:kt(e.a,t)}:{})},hg=function(e,t){return cn({h:kt(e.h,t),s:kt(e.s,t),l:kt(e.l,t)},po(e,"a")?{a:kt(e.a,t)}:{})},sWe=function(e,t){return{c:kt(e.c,t),m:kt(e.m,t),y:kt(e.y,t),k:kt(e.k,t)}},cd=function(e,t,n,r,i,o){var s=i(Jp(e,t),r);return n?o(s):s},Rm=function(e,t,n,r,i,o,s){n<1&&(n=5);var a=function(c,u,f){var h=f-1,p=(u.r-c.r)/h,g=(u.g-c.g)/h,v=(u.b-c.b)/h,y=Bo(c.a),S=(Bo(u.a)-y)/h;return Array(f).fill(null).map(function(w,b){return b===0?c:b===h?u:{r:kt(c.r+p*b),g:kt(c.g+g*b),b:kt(c.b+v*b),a:kt(y+S*b)}})}(Jp(e),Jp(t),n);return a.map(function(c){var u=o(c,i);return r?s(u):u})},aWe=function(){function e(t,n){n===void 0&&(n=6),this.rgb=Jp(t),this._decimals=n,this.updateHSL(),this.updateCMYK()}return e.prototype.updateRGB=function(){this.rgb=cn(cn({},Xi(this.hsl.h,this.hsl.s,this.hsl.l)),{a:this.hsl.a})},e.prototype.updateRGBFromCMYK=function(){this.rgb=cn(cn({},MU(this.cmyk.c,this.cmyk.m,this.cmyk.y,this.cmyk.k)),{a:this.rgb.a})},e.prototype.updateHSL=function(){this.hsl=pv(this.rgb.r,this.rgb.g,this.rgb.b,this.rgb.a)},e.prototype.updateCMYK=function(){this.cmyk=yie(this.rgb.r,this.rgb.g,this.rgb.b)},e.prototype.updateRGBAndCMYK=function(){return this.updateRGB(),this.updateCMYK(),this},e.prototype.updateHSLAndCMYK=function(){return this.updateHSL(),this.updateCMYK(),this},e.prototype.updateRGBAndHSL=function(){return this.updateRGBFromCMYK(),this.updateHSL(),this},e.prototype.setDecimals=function(t){return this._decimals=t,this},e.prototype.setH=function(t){return this.hsl.h=ow(t),this.updateRGBAndCMYK()},e.prototype.setS=function(t){return this.hsl.s=ol(t,0,100),this.updateRGBAndCMYK()},e.prototype.setL=function(t){return this.hsl.l=ol(t,0,100),this.updateRGBAndCMYK()},e.prototype.setR=function(t){return this.rgb.r=ol(t,0,255),this.updateHSLAndCMYK()},e.prototype.setG=function(t){return this.rgb.g=ol(t,0,255),this.updateHSLAndCMYK()},e.prototype.setB=function(t){return this.rgb.b=ol(t,0,255),this.updateHSLAndCMYK()},e.prototype.setA=function(t){return this.hsl.a=this.rgb.a=ol(t,0,1),this},e.prototype.setC=function(t){return this.cmyk.c=ol(t,0,100),this.updateRGBAndHSL()},e.prototype.setM=function(t){return this.cmyk.m=ol(t,0,100),this.updateRGBAndHSL()},e.prototype.setY=function(t){return this.cmyk.y=ol(t,0,100),this.updateRGBAndHSL()},e.prototype.setK=function(t){return this.cmyk.k=ol(t,0,100),this.updateRGBAndHSL()},Object.defineProperty(e.prototype,"decimals",{get:function(){return this._decimals},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"H",{get:function(){return kt(this.hsl.h,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"S",{get:function(){return kt(this.hsl.s,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"L",{get:function(){return kt(this.hsl.l,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"R",{get:function(){return kt(this.rgb.r,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"G",{get:function(){return kt(this.rgb.g,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"B",{get:function(){return kt(this.rgb.b,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"A",{get:function(){return kt(this.hsl.a,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"C",{get:function(){return kt(this.cmyk.c,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"M",{get:function(){return kt(this.cmyk.m,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"Y",{get:function(){return kt(this.cmyk.y,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"K",{get:function(){return kt(this.cmyk.k,this.decimals)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXObject",{get:function(){return an.HEX(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXAObject",{get:function(){return an.HEXA(this.rgb)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBObject",{get:function(){return{r:this.R,g:this.G,b:this.B}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBAObject",{get:function(){return cn(cn({},this.RGBObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLObject",{get:function(){return{h:this.H,s:this.S,l:this.L}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLAObject",{get:function(){return cn(cn({},this.HSLObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKObject",{get:function(){return{c:this.C,m:this.M,y:this.Y,k:this.K}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKAObject",{get:function(){return cn(cn({},this.CMYKObject),{a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEX",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HEXA",{get:function(){return on.HEX({r:this.R,g:this.G,b:this.B,a:255*this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGB",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"RGBA",{get:function(){return on.RGB({r:this.R,g:this.G,b:this.B,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSL",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"HSLA",{get:function(){return on.HSL({h:this.H,s:this.S,l:this.L,a:this.A})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYK",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K})},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"CMYKA",{get:function(){return on.CMYK({c:this.C,m:this.M,y:this.Y,k:this.K,a:this.A})},enumerable:!1,configurable:!0}),e.toHEX=function(t,n){n===void 0&&(n=!0);var r=da(t);return cd(t,r,n,0,an.HEX,on.HEX)},e.toHEXA=function(t,n){n===void 0&&(n=!0);var r=da(t);return cd(t,r,n,0,an.HEXA,on.HEX)},e.toRGB=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=da(t);return cd(t,i,n,r,an.RGB,on.RGB)},e.toRGBA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=da(t);return cd(t,i,n,r,an.RGBA,on.RGB)},e.toHSL=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=da(t);return cd(t,i,n,r,an.HSL,on.HSL)},e.toHSLA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=da(t);return cd(t,i,n,r,an.HSLA,on.HSL)},e.toCMYK=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=da(t);return cd(t,i,n,r,an.CMYK,on.CMYK)},e.toCMYKA=function(t,n,r){n===void 0&&(n=!0),r===void 0&&(r=6);var i=da(t);return cd(t,i,n,r,an.CMYKA,on.CMYK)},e.getBlendHEX=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Rm(t,n,r,i,o,an.HEX,on.HEX)},e.getBlendHEXA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Rm(t,n,r,i,o,an.HEXA,on.HEX)},e.getBlendRGB=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Rm(t,n,r,i,o,an.RGB,on.RGB)},e.getBlendRGBA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Rm(t,n,r,i,o,an.RGBA,on.RGB)},e.getBlendHSL=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Rm(t,n,r,i,o,an.HSL,on.HSL)},e.getBlendHSLA=function(t,n,r,i,o){return r===void 0&&(r=5),i===void 0&&(i=!0),o===void 0&&(o=6),Rm(t,n,r,i,o,an.HSLA,on.HSL)},e.getMixHEX=function(t,n,r){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),Im.HEX(t,n,r)},e.getMixHEXA=function(t,n,r){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),Im.HEXA(t,n,r)},e.getMixRGB=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Im.RGB(t,n,r,i)},e.getMixRGBA=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Im.RGBA(t,n,r,i)},e.getMixHSL=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Im.HSL(t,n,r,i)},e.getMixHSLA=function(t,n,r,i){return n===void 0&&(n=Yo.ADDITIVE),r===void 0&&(r=!0),i===void 0&&(i=6),Im.HSLA(t,n,r,i)},e.getShades=function(t,n,r){return r===void 0&&(r=6),hq(t,n,!0,r)},e.getTints=function(t,n,r){return r===void 0&&(r=6),hq(t,n,!1,r)},e.getHarmony=function(t,n,r,i){return n===void 0&&(n=xu.COMPLEMENTARY),r===void 0&&(r=Yo.ADDITIVE),i===void 0&&(i=6),function(o,s,a,c){var u;return(u={},u[xu.ANALOGOUS]=Am.buildHarmony(s,JHe,c,a),u[xu.COMPLEMENTARY]=Am.buildHarmony(s,ZHe,c,a),u[xu.SPLIT_COMPLEMENTARY]=Am.buildHarmony(s,eWe,c,a),u[xu.TRIADIC]=Am.buildHarmony(s,tWe,c,a),u[xu.TETRADIC]=Am.buildHarmony(s,nWe,c,a),u[xu.SQUARE]=Am.buildHarmony(s,rWe,c,a),u)[o]}(n,t,i,r)},e}();const lWe={current:void 0,parent:void 0,events:void 0,color:{source:2533018,destination:15753874,expanding:16733986,updating:16733986,generating:16771899,closing:11583173,end:15483002},scale:10,fill:"#000000",alpha:1},{ceil:Ji,PI:cWe}=Math,t_=(e,t)=>new aWe(e).setA(t??lWe.alpha).RGBA,uWe=(e,t)=>t_(e,t);function df(e,t){return{width:e.width*t.scale.x,height:e.height*t.scale.y,x:e.x*t.scale.x+t.x,y:e.y*t.scale.y+t.y}}const dWe={draw(e,t,n){if(e.text){const r=df(e,{x:e.textX,y:e.textY,scale:{x:1,y:1}}),i=df(r,n);t.font=`${e.fontSize*n.scale.x}px Arial`,t.fillStyle=t_(e.fontColor,e.alpha),t.fillText(e.text,i.x,i.y)}},test(e){return{left:-1/0,right:1/0,top:-1/0,bottom:1/0}}},fWe={draw(e,t,n){const{x:r,y:i,width:o,height:s}=df(e,n);t.fillStyle=t_(e.fill,e.alpha),t.fillRect(Ji(r),Ji(i),Ji(o)||1,Ji(s)||1)},test(e){return{left:e.x,right:e.x+e.width,top:e.y,bottom:e.y+e.height}}},hWe={draw(e,t,n){t.fillStyle=t_(e.fill,e.alpha),t.beginPath();const r=df({...e,width:e.radius,height:e.radius},n);t.ellipse(Ji(r.x),Ji(r.y),Ji(r.width),Ji(r.height),0,0,2*cWe),t.fill()},test(e){return{left:e.x-e.radius,right:e.x+e.radius,top:e.y-e.radius,bottom:e.y+e.radius}}},pWe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.fillStyle=t_(e.fill,e.alpha);const{x:o,y:s}=df({...r,width:0,height:0},n);t.moveTo(Ji(o),Ji(s));for(const a of i){const{x:c,y:u}=df({...a,width:0,height:0},n);t.lineTo(Ji(c),Ji(u))}t.closePath(),t.fill()},test(e){var t,n,r,i;return{left:((t=Qt.minBy(e.points,"x"))==null?void 0:t.x)??0,right:((n=Qt.maxBy(e.points,"x"))==null?void 0:n.x)??0,top:((r=Qt.minBy(e.points,"y"))==null?void 0:r.y)??0,bottom:((i=Qt.maxBy(e.points,"y"))==null?void 0:i.y)??0}}},mWe={draw(e,t,n){const[r,...i]=e.points;t.beginPath(),t.lineCap="round",t.lineJoin="round",t.strokeStyle=uWe(e.fill,e.alpha);const{x:o,y:s,width:a}=df({...r,width:e.lineWidth,height:0},n);t.lineWidth=Ji(a),t.moveTo(Ji(o),Ji(s));for(const c of i){const{x:u,y:f}=df({...c,width:0,height:0},n);t.lineTo(Ji(u),Ji(f))}t.stroke()},test(e){var t,n,r,i;return{left:((t=Qt.minBy(e.points,"x"))==null?void 0:t.x)??0-e.lineWidth??0,right:((n=Qt.maxBy(e.points,"x"))==null?void 0:n.x)??0+e.lineWidth??0,top:((r=Qt.minBy(e.points,"y"))==null?void 0:r.y)??0-e.lineWidth??0,bottom:((i=Qt.maxBy(e.points,"y"))==null?void 0:i.y)??0+e.lineWidth??0}}},gWe={text:dWe,path:mWe,rect:fWe,polygon:pWe,circle:hWe},{log2:vWe,max:yWe}=Math,pq=e=>Qt.floor(vWe(e+1));function mq({right:e,left:t,bottom:n,top:r},i){const o=yWe(pq(e-t),pq(n-r))-i,s=2**o,a={left:Qt.floor(t/s),right:Qt.ceil((e+1)/s),top:Qt.floor(r/s),bottom:Qt.ceil((n+1)/s)};return{zoom:o,order:s,tiles:Qt.shuffle($8e({x:Qt.range(a.left,a.right+1),y:Qt.range(a.top,a.bottom+1)}).map(c=>{const u=c.x*s,f=c.y*s;return{tile:c,bounds:{left:u-s/2,right:u+s/2,top:f-s/2,bottom:f+s/2}}}))}}const bWe=""+new URL("D2Renderer.worker-e26ba320.js",import.meta.url).href;class xWe extends Worker{constructor(){super(bWe,{type:"module"})}call(t,n,r=[]){return this.postMessage({action:t,payload:n},r)}on(t,n){const r=i=>{const{action:o,payload:s}=i.data;o===t&&n(s)};return this.addEventListener("message",r),()=>this.removeEventListener("message",r)}}function wWe(e,t){return!(t.left>=e.right||t.right<=e.left||t.top>=e.bottom||t.bottom<=e.top)}const{max:gq,min:vq}=Math,bie=class xie extends hm{constructor(t,n){super(t),this.bounds=n,this.age=xie.age++}};bie.age=0;let _We=bie;function jS(e,t){return Qt.isNaN(e)?t:e}var ua,qr,Ed,Eu,Ti,Wl,Cd,Td,xT,wT,wie,_T,_ie,Mg,dw,ST,ET,Sie,CT,Eie,TT,Cie,kT,Tie,fw,V5,hw,q5,AT,kie,pw,X5,IT,Aie,RT,Iie;class SWe extends VHe{constructor(){super(...arguments);yr(this,wT);yr(this,_T);yr(this,ET);yr(this,CT);yr(this,TT);yr(this,kT);yr(this,fw);yr(this,hw);yr(this,AT);yr(this,pw);yr(this,IT);yr(this,RT);yr(this,ua,void 0);yr(this,qr,void 0);yr(this,Ed,void 0);yr(this,Eu,void 0);yr(this,Ti,jV);yr(this,Wl,[]);yr(this,Cd,new N8e(16));yr(this,Td,void 0);yr(this,xT,0);yr(this,Mg,Qt.once(()=>Qt.debounce(()=>oo(this,fw,V5).call(this),rt(this,Ti).debounceInterval)));yr(this,dw,Qt.once(()=>Qt.throttle(()=>oo(this,hw,q5).call(this),rt(this,Ti).refreshInterval)));yr(this,ST,Qt.once(()=>Qt.throttle(n=>oo(this,AT,kie).call(this,n),rt(this,Ti).refreshInterval)))}getInstance(){return{app:rt(this,ua),viewport:rt(this,qr)}}fitCamera(){var r,i,o,s;const n=Qt.values(rt(this,Cd).all()).flat();if(n.length){const a=Qt.reduce(n,(c,u)=>({top:jS(vq(c.top,u.top),c.top),left:jS(vq(c.left,u.left),c.left),bottom:jS(gq(c.bottom,u.bottom),c.bottom),right:jS(gq(c.right,u.right),c.right)}),{bottom:-1/0,top:1/0,left:1/0,right:-1/0});(s=(r=rt(this,qr))==null?void 0:r.animate)==null||s.call(r,{position:new Dt((a.left+a.right)/2,(a.top+a.bottom)/2),scale:((o=(i=rt(this,qr))==null?void 0:i.findFit)==null?void 0:o.call(i,a.right-a.left,a.bottom-a.top))*.8,ease:"easeOutExpo",time:rt(this,Ti).animationDuration*1.5,callbackOnComplete:()=>rt(this,Mg).call(this)()})}}initialCamera(){var n,r;(r=(n=rt(this,qr))==null?void 0:n.animate)==null||r.call(n,{scale:1,ease:"easeOutExpo",time:rt(this,Ti).animationDuration*1.5,callbackOnComplete:()=>rt(this,Mg).call(this)()})}getView(){var n;return(n=rt(this,ua))==null?void 0:n.view}setup(n){const r={...jV,...n};oo(this,_T,_ie).call(this,r),this.setOptions(r),oo(this,CT,Eie).call(this,r)}destroy(){Qt.map(rt(this,Wl),n=>n.terminate()),rt(this,ua).destroy()}add(n){const r=s3e(),i=Qt.map(n,({component:o,meta:s})=>({...gWe[o.$].test(o),component:o,meta:s,index:oo(this,wT,wie).call(this)}));return rt(this,Cd).load(i),Qt.map(rt(this,Wl),o=>o.call("add",[Qt.map(n,"component"),r])),()=>{for(const o of i)rt(this,Cd).remove(o);Qt.map(rt(this,Wl),o=>o.call("remove",[r]))}}setOptions(n){const r={...rt(this,Ti),...n};oo(this,TT,Cie).call(this,r),fu(this,Ti,r),oo(this,fw,V5).call(this),oo(this,hw,q5).call(this)}}ua=new WeakMap,qr=new WeakMap,Ed=new WeakMap,Eu=new WeakMap,Ti=new WeakMap,Wl=new WeakMap,Cd=new WeakMap,Td=new WeakMap,xT=new WeakMap,wT=new WeakSet,wie=function(){return n6(this,xT)._++},_T=new WeakSet,_ie=function(n){fu(this,ua,new AU({backgroundAlpha:0,width:n.screenSize.width,height:n.screenSize.height,autoDensity:!0,resolution:2})),fu(this,qr,new Jje({stopPropagation:!0,screenWidth:n.screenSize.width,screenHeight:n.screenSize.height,events:rt(this,ua).renderer.events,passiveWheel:!1})),rt(this,qr).on("clicked",r=>{const{x:i,y:o}=r.world,s=rt(this,Cd).search({minX:i,minY:o,maxX:i+Number.MIN_VALUE,maxY:o+Number.MIN_VALUE});this.emit("click",r.event,{world:r.world,components:s})}),rt(this,ua).stage.addChild(rt(this,qr)),rt(this,qr).drag().pinch().wheel().decelerate({friction:.98}).clampZoom({maxScale:300,minScale:1e-5}),rt(this,qr).on("moved",()=>{rt(this,Mg).call(this)(),rt(this,dw).call(this)()}),rt(this,qr).on("mousemove",r=>rt(this,ST).call(this)(r)),fu(this,Ed,new us),rt(this,qr).addChild(rt(this,Ed)),fu(this,Eu,new hv),rt(this,qr).addChild(rt(this,Eu)),fu(this,Td,new hv),rt(this,qr).addChild(rt(this,Td)),oo(this,ET,Sie).call(this)},Mg=new WeakMap,dw=new WeakMap,ST=new WeakMap,ET=new WeakSet,Sie=function(){const{dynamicResolution:n}=rt(this,Ti),{dtMax:r,dtMin:i,increment:o,intervalMs:s,maxScale:a,minScale:c}=n,u=Qt.floor(Si.targetFPMS*s);let f=0,h=0,p=1;rt(this,ua).ticker.add(g=>{const{tileResolution:v}=rt(this,Ti);if(!(f%u)){const y=h/u;p=Qt.clamp(y>=r?p+o:y<=i?p-o:p,c,a),Qt.map(rt(this,Wl),S=>{S.call("setTileResolution",[{width:Qt.ceil(v.width/p),height:Qt.ceil(v.height/p)}])}),h=0}h+=g,f++})},CT=new WeakSet,Eie=function(n){Qt.map(rt(this,Wl),r=>r.terminate()),fu(this,Wl,Qt.times(n.workerCount,r=>{const i=new xWe;return i.on("update",o=>oo(this,kT,Tie).call(this,o)),i.onerror=o=>{throw o},i.call("setup",[{...n,workerIndex:r}]),i}))},TT=new WeakSet,Cie=function(n){var o,s,a,c;const{width:r,height:i}=n.screenSize;(a=(s=(o=rt(this,ua))==null?void 0:o.renderer)==null?void 0:s.resize)==null||a.call(s,r,i),(c=rt(this,qr))==null||c.resize(r,i)},kT=new WeakSet,Tie=function({bounds:n,bitmap:r}){const i=mt.from(r);oo(this,IT,Aie).call(this,i,n)},fw=new WeakSet,V5=function(){const{top:n,bottom:r,left:i,right:o}=rt(this,qr);Qt.map(rt(this,Wl),s=>s.call("setFrustum",[{top:n,bottom:r,left:i,right:o}]))},hw=new WeakSet,q5=function(){var s,a,c,u,f;const{tileSubdivision:n,accentColor:r}=rt(this,Ti),{tiles:i}=mq(rt(this,qr),n),o=oo(this,pw,X5).call(this);(s=rt(this,Eu))==null||s.clear(),(a=rt(this,Eu))==null||a.lineStyle(1*o,r,.5),(c=rt(this,Eu))==null||c.beginFill(r,.05);for(const{bounds:h,tile:p}of i)Qt.find((u=rt(this,Ed))==null?void 0:u.children,g=>Qt.isEqual(g.bounds,h))||(f=rt(this,Eu))==null||f.drawRect(h.left,h.top,h.right-h.left,h.bottom-h.top)},AT=new WeakSet,kie=function(n){var c;const{accentColor:r}=rt(this,Ti),i=oo(this,pw,X5).call(this),{x:o,y:s}=rt(this,qr).toWorld(n.globalX,n.globalY),a=rt(this,Cd).search({minX:o,minY:s,maxX:o+Number.MIN_VALUE,maxY:s+Number.MIN_VALUE});rt(this,Td).clear(),rt(this,Td).lineStyle(2*i,r,1);for(const u of a)(c=rt(this,Td))==null||c.drawRect(u.left,u.top,u.right-u.left,u.bottom-u.top)},pw=new WeakSet,X5=function(){const{right:n,left:r}=rt(this,qr),{width:i}=rt(this,Ti).screenSize;return(n-r)/i},IT=new WeakSet,Aie=async function(n,r){var s;const{tileSubdivision:i}=rt(this,Ti),{tiles:o}=mq(rt(this,qr),i);if(Qt.find(o,a=>Qt.isEqual(a.bounds,r))){const a={x:(r.right-r.left)/n.width,y:(r.bottom-r.top)/n.height},c=new _We(n,r);(s=rt(this,Ed))==null||s.addChild(c).setTransform(r.left,r.top,a.x,a.y),rt(this,dw).call(this)(),await oo(this,RT,Iie).call(this,c);for(const u of rt(this,Ed).children)wWe(u.bounds,r)&&u.age{const o=s=>{n.alpha+=s/Si.targetFPMS/rt(this,Ti).animationDuration,n.alpha>1&&(r.remove(o),i())};n.alpha=0,Qt.delay(()=>r.add(o),rt(this,Ti).animationDuration)})};const EWe=k8e(SWe,{components:["rect","circle","path","polygon"],id:"d2-renderer",name:"Pixi",description:"Provides 2D Visualisation Support",version:"1.0.0"}),CWe={"d2-renderer":EWe};var TWe=function(t,n){if(n=n.split(":")[0],t=+t,!t)return!1;switch(n){case"http":case"ws":return t!==80;case"https":case"wss":return t!==443;case"ftp":return t!==21;case"gopher":return t!==70;case"file":return!1}return t!==0},DU={},kWe=Object.prototype.hasOwnProperty,AWe;function yq(e){try{return decodeURIComponent(e.replace(/\+/g," "))}catch{return null}}function bq(e){try{return encodeURIComponent(e)}catch{return null}}function IWe(e){for(var t=/([^=?#&]+)=?([^&]*)/g,n={},r;r=t.exec(e);){var i=yq(r[1]),o=yq(r[2]);i===null||o===null||i in n||(n[i]=o)}return n}function RWe(e,t){t=t||"";var n=[],r,i;typeof t!="string"&&(t="?");for(i in e)if(kWe.call(e,i)){if(r=e[i],!r&&(r===null||r===AWe||isNaN(r))&&(r=""),i=bq(i),r=bq(r),i===null||r===null)continue;n.push(i+"="+r)}return n.length?t+n.join("&"):""}DU.stringify=RWe;DU.parse=IWe;var Rie=TWe,WA=DU,PWe=/^[\x00-\x20\u00a0\u1680\u2000-\u200a\u2028\u2029\u202f\u205f\u3000\ufeff]+/,Pie=/[\n\r\t]/g,OWe=/^[A-Za-z][A-Za-z0-9+-.]*:\/\//,Oie=/:\d+$/,MWe=/^([a-z][a-z0-9.+-]*:)?(\/\/)?([\\/]+)?([\S\s]*)/i,DWe=/^[a-zA-Z]:/;function LU(e){return(e||"").toString().replace(PWe,"")}var Y5=[["#","hash"],["?","query"],function(t,n){return uc(n.protocol)?t.replace(/\\/g,"/"):t},["/","pathname"],["@","auth",1],[NaN,"host",void 0,1,1],[/:(\d*)$/,"port",void 0,1],[NaN,"hostname",void 0,1,1]],xq={hash:1,query:1};function Mie(e){var t;typeof window<"u"?t=window:typeof $t<"u"?t=$t:typeof self<"u"?t=self:t={};var n=t.location||{};e=e||n;var r={},i=typeof e,o;if(e.protocol==="blob:")r=new mc(unescape(e.pathname),{});else if(i==="string"){r=new mc(e,{});for(o in xq)delete r[o]}else if(i==="object"){for(o in e)o in xq||(r[o]=e[o]);r.slashes===void 0&&(r.slashes=OWe.test(e.href))}return r}function uc(e){return e==="file:"||e==="ftp:"||e==="http:"||e==="https:"||e==="ws:"||e==="wss:"}function Die(e,t){e=LU(e),e=e.replace(Pie,""),t=t||{};var n=MWe.exec(e),r=n[1]?n[1].toLowerCase():"",i=!!n[2],o=!!n[3],s=0,a;return i?o?(a=n[2]+n[3]+n[4],s=n[2].length+n[3].length):(a=n[2]+n[4],s=n[2].length):o?(a=n[3]+n[4],s=n[3].length):a=n[4],r==="file:"?s>=2&&(a=a.slice(2)):uc(r)?a=n[4]:r?i&&(a=a.slice(2)):s>=2&&uc(t.protocol)&&(a=n[4]),{protocol:r,slashes:i||uc(r),slashesCount:s,rest:a}}function LWe(e,t){if(e==="")return t;for(var n=(t||"/").split("/").slice(0,-1).concat(e.split("/")),r=n.length,i=n[r-1],o=!1,s=0;r--;)n[r]==="."?n.splice(r,1):n[r]===".."?(n.splice(r,1),s++):s&&(r===0&&(o=!0),n.splice(r,1),s--);return o&&n.unshift(""),(i==="."||i==="..")&&n.push(""),n.join("/")}function mc(e,t,n){if(e=LU(e),e=e.replace(Pie,""),!(this instanceof mc))return new mc(e,t,n);var r,i,o,s,a,c,u=Y5.slice(),f=typeof t,h=this,p=0;for(f!=="object"&&f!=="string"&&(n=t,t=null),n&&typeof n!="function"&&(n=WA.parse),t=Mie(t),i=Die(e||"",t),r=!i.protocol&&!i.slashes,h.slashes=i.slashes||r&&t.slashes,h.protocol=i.protocol||t.protocol||"",e=i.rest,(i.protocol==="file:"&&(i.slashesCount!==2||DWe.test(e))||!i.slashes&&(i.protocol||i.slashesCount<2||!uc(h.protocol)))&&(u[3]=[/(.*)/,"pathname"]);p{const n=[];for(const{transport:r,url:i,key:o,disabled:s}of e??[])if(!s){const a=new Nie[r].constructor({url:i});n.push({key:o,url:i,renderer:await a.get()})}t(()=>n)},[e,t]),C.jsx(C.Fragment,{})}const jWe={connected:"success.light",connecting:"warning.light",error:"error.light",disabled:"text.disabled"};function UWe({value:e,onValueChange:t}){const[n]=bA(),r=te.find(n,{key:e.key});function i(s){t==null||t(Wk(e,s))}const o=e!=null&&e.disabled?"disabled":r?"connected":"error";return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(Ene,{sx:{color:jWe[o]}}),C.jsx(ai,{}),C.jsxs(ht,{flex:1,children:[C.jsx(Ut,{children:r?`${r.renderer.meta.name} ${r.renderer.meta.version}`:te.startCase(o)}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:r?C.jsxs(C.Fragment,{children:[C.jsx("span",{children:r.renderer.meta.description}),C.jsx("br",{}),C.jsxs("span",{children:["Contributes: ",te.join(r.renderer.meta.components,", ")]})]}):(e==null?void 0:e.url)||"No URL"})]}),C.jsx(bf,{title:`${e.disabled?"Enable":"Disable"} Renderer`,children:C.jsx(ht,{children:C.jsx(Kg,{checked:!e.disabled,onChange:(s,a)=>i({disabled:!a})})})}),C.jsx(Oj,{trigger:s=>C.jsx(ug,{icon:C.jsx(Hk,{}),label:"Edit Renderer",onClick:s}),appBar:{children:C.jsx(Pj,{children:"Edit Renderer"})},children:C.jsxs(ht,{p:2.5,children:[C.jsx(Cw,{value:e.url,onChange:s=>i({url:s.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(jx,{placeholder:"Renderer Type",items:te.entries(Nie).map(([s,{name:a}])=>({value:s,label:a})),fullWidth:!0,value:e.transport,onChange:s=>i({transport:s})})]})})]})})}var NU={},GA={},n_={};(function(e){var t=$t&&$t.__extends||function(){var g=function(v,y){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(S,w){S.__proto__=w}||function(S,w){for(var b in w)Object.prototype.hasOwnProperty.call(w,b)&&(S[b]=w[b])},g(v,y)};return function(v,y){if(typeof y!="function"&&y!==null)throw new TypeError("Class extends value "+String(y)+" is not a constructor or null");g(v,y);function S(){this.constructor=v}v.prototype=y===null?Object.create(y):(S.prototype=y.prototype,new S)}}();Object.defineProperty(e,"__esModule",{value:!0}),e.createJSONRPCNotification=e.createJSONRPCRequest=e.createJSONRPCSuccessResponse=e.createJSONRPCErrorResponse=e.JSONRPCErrorCode=e.JSONRPCErrorException=e.isJSONRPCResponses=e.isJSONRPCResponse=e.isJSONRPCRequests=e.isJSONRPCRequest=e.isJSONRPCID=e.JSONRPC=void 0,e.JSONRPC="2.0";var n=function(g){return typeof g=="string"||typeof g=="number"||g===null};e.isJSONRPCID=n;var r=function(g){return g.jsonrpc===e.JSONRPC&&g.method!==void 0&&g.result===void 0&&g.error===void 0};e.isJSONRPCRequest=r;var i=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCRequest)};e.isJSONRPCRequests=i;var o=function(g){return g.jsonrpc===e.JSONRPC&&g.id!==void 0&&(g.result!==void 0||g.error!==void 0)};e.isJSONRPCResponse=o;var s=function(g){return Array.isArray(g)&&g.every(e.isJSONRPCResponse)};e.isJSONRPCResponses=s;var a=function(g,v,y){var S={code:g,message:v};return y!=null&&(S.data=y),S},c=function(g){t(v,g);function v(y,S,w){var b=g.call(this,y)||this;return Object.setPrototypeOf(b,v.prototype),b.code=S,b.data=w,b}return v.prototype.toObject=function(){return a(this.code,this.message,this.data)},v}(Error);e.JSONRPCErrorException=c,function(g){g[g.ParseError=-32700]="ParseError",g[g.InvalidRequest=-32600]="InvalidRequest",g[g.MethodNotFound=-32601]="MethodNotFound",g[g.InvalidParams=-32602]="InvalidParams",g[g.InternalError=-32603]="InternalError"}(e.JSONRPCErrorCode||(e.JSONRPCErrorCode={}));var u=function(g,v,y,S){return{jsonrpc:e.JSONRPC,id:g,error:a(v,y,S)}};e.createJSONRPCErrorResponse=u;var f=function(g,v){return{jsonrpc:e.JSONRPC,id:g,result:v??null}};e.createJSONRPCSuccessResponse=f;var h=function(g,v,y){return{jsonrpc:e.JSONRPC,id:g,method:v,params:y}};e.createJSONRPCRequest=h;var p=function(g,v){return{jsonrpc:e.JSONRPC,method:g,params:v}};e.createJSONRPCNotification=p})(n_);var r_={};Object.defineProperty(r_,"__esModule",{value:!0});r_.DefaultErrorCode=void 0;r_.DefaultErrorCode=0;var wq=$t&&$t.__awaiter||function(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(f){try{u(r.next(f))}catch(h){s(h)}}function c(f){try{u(r.throw(f))}catch(h){s(h)}}function u(f){f.done?o(f.value):i(f.value).then(a,c)}u((r=r.apply(e,t||[])).next())})},_q=$t&&$t.__generator||function(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(f){return c([u,f])}}function c(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]{const r=({data:i})=>{i.id===n.id&&(this.rpc.receive(i),this.worker.removeEventListener("message",r))};this.worker.postMessage(n),this.worker.addEventListener("message",r)})}connect(){return this.worker.postMessage(this.options.url),new Promise(t=>{const n=()=>{t(),this.worker.removeEventListener("message",n)};this.worker.addEventListener("message",n)})}async disconnect(){this.worker.terminate()}async call(t,n){return await this.rpc.request(t,n)}}const oGe={trace:async(e,t)=>{switch(e){case"about":return{name:"Search Trace",description:"Provides JSON Search Trace Support",version:"1.0.2"};case"features/formats":return[{id:"grid",name:"Grid"},{id:"xy",name:"Network"},{id:"mesh",name:"Mesh"}];case"features/algorithms":return[{id:"identity",name:"Unknown",hidden:!0}];case"solve/pathfinding":{const{parameters:n}=t;try{return JSON.parse((n==null?void 0:n.content)??"")}catch{return{}}}}}};class sGe{constructor(t){vm(this,"handler");this.options=t;const{hostname:n}=Lie(t.url);this.handler=oGe[n]}async connect(){}async disconnect(){}async call(t,n){return await this.handler(t,n)}}const gc=Object.create(null);gc.open="0";gc.close="1";gc.ping="2";gc.pong="3";gc.message="4";gc.upgrade="5";gc.noop="6";const NE=Object.create(null);Object.keys(gc).forEach(e=>{NE[gc[e]]=e});const K5={type:"error",data:"parser error"},$ie=typeof Blob=="function"||typeof Blob<"u"&&Object.prototype.toString.call(Blob)==="[object BlobConstructor]",Fie=typeof ArrayBuffer=="function",zie=e=>typeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer,BU=({type:e,data:t},n,r)=>$ie&&t instanceof Blob?n?r(t):Tq(t,r):Fie&&(t instanceof ArrayBuffer||zie(t))?n?r(t):Tq(new Blob([t]),r):r(gc[e]+(t||"")),Tq=(e,t)=>{const n=new FileReader;return n.onload=function(){const r=n.result.split(",")[1];t("b"+(r||""))},n.readAsDataURL(e)};function kq(e){return e instanceof Uint8Array?e:e instanceof ArrayBuffer?new Uint8Array(e):new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}let W$;function aGe(e,t){if($ie&&e.data instanceof Blob)return e.data.arrayBuffer().then(kq).then(t);if(Fie&&(e.data instanceof ArrayBuffer||zie(e.data)))return t(kq(e.data));BU(e,!1,n=>{W$||(W$=new TextEncoder),t(W$.encode(n))})}const Aq="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Sx=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(let e=0;e{let t=e.length*.75,n=e.length,r,i=0,o,s,a,c;e[e.length-1]==="="&&(t--,e[e.length-2]==="="&&t--);const u=new ArrayBuffer(t),f=new Uint8Array(u);for(r=0;r>4,f[i++]=(s&15)<<4|a>>2,f[i++]=(a&3)<<6|c&63;return u},cGe=typeof ArrayBuffer=="function",$U=(e,t)=>{if(typeof e!="string")return{type:"message",data:jie(e,t)};const n=e.charAt(0);return n==="b"?{type:"message",data:uGe(e.substring(1),t)}:NE[n]?e.length>1?{type:NE[n],data:e.substring(1)}:{type:NE[n]}:K5},uGe=(e,t)=>{if(cGe){const n=lGe(e);return jie(n,t)}else return{base64:!0,data:e}},jie=(e,t)=>{switch(t){case"blob":return e instanceof Blob?e:new Blob([e]);case"arraybuffer":default:return e instanceof ArrayBuffer?e:e.buffer}},Uie=String.fromCharCode(30),dGe=(e,t)=>{const n=e.length,r=new Array(n);let i=0;e.forEach((o,s)=>{BU(o,!1,a=>{r[s]=a,++i===n&&t(r.join(Uie))})})},fGe=(e,t)=>{const n=e.split(Uie),r=[];for(let i=0;i{const r=n.length;let i;if(r<126)i=new Uint8Array(1),new DataView(i.buffer).setUint8(0,r);else if(r<65536){i=new Uint8Array(3);const o=new DataView(i.buffer);o.setUint8(0,126),o.setUint16(1,r)}else{i=new Uint8Array(9);const o=new DataView(i.buffer);o.setUint8(0,127),o.setBigUint64(1,BigInt(r))}e.data&&typeof e.data!="string"&&(i[0]|=128),t.enqueue(i),t.enqueue(n)})}})}let G$;function HS(e){return e.reduce((t,n)=>t+n.length,0)}function WS(e,t){if(e[0].length===t)return e.shift();const n=new Uint8Array(t);let r=0;for(let i=0;iMath.pow(2,53-32)-1){a.enqueue(K5);break}i=f*Math.pow(2,32)+u.getUint32(4),r=3}else{if(HS(n)e){a.enqueue(K5);break}}}})}const Hie=4;function li(e){if(e)return mGe(e)}function mGe(e){for(var t in li.prototype)e[t]=li.prototype[t];return e}li.prototype.on=li.prototype.addEventListener=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks["$"+e]=this._callbacks["$"+e]||[]).push(t),this};li.prototype.once=function(e,t){function n(){this.off(e,n),t.apply(this,arguments)}return n.fn=t,this.on(e,n),this};li.prototype.off=li.prototype.removeListener=li.prototype.removeAllListeners=li.prototype.removeEventListener=function(e,t){if(this._callbacks=this._callbacks||{},arguments.length==0)return this._callbacks={},this;var n=this._callbacks["$"+e];if(!n)return this;if(arguments.length==1)return delete this._callbacks["$"+e],this;for(var r,i=0;itypeof self<"u"?self:typeof window<"u"?window:Function("return this")())();function Wie(e,...t){return t.reduce((n,r)=>(e.hasOwnProperty(r)&&(n[r]=e[r]),n),{})}const gGe=ma.setTimeout,vGe=ma.clearTimeout;function XA(e,t){t.useNativeTimers?(e.setTimeoutFn=gGe.bind(ma),e.clearTimeoutFn=vGe.bind(ma)):(e.setTimeoutFn=ma.setTimeout.bind(ma),e.clearTimeoutFn=ma.clearTimeout.bind(ma))}const yGe=1.33;function bGe(e){return typeof e=="string"?xGe(e):Math.ceil((e.byteLength||e.size)*yGe)}function xGe(e){let t=0,n=0;for(let r=0,i=e.length;r=57344?n+=3:(r++,n+=4);return n}function wGe(e){let t="";for(let n in e)e.hasOwnProperty(n)&&(t.length&&(t+="&"),t+=encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t}function _Ge(e){let t={},n=e.split("&");for(let r=0,i=n.length;r0);return t}function Vie(){const e=Pq(+new Date);return e!==Rq?(Iq=0,Rq=e):e+"."+Pq(Iq++)}for(;GS{this.readyState="paused",t()};if(this.polling||!this.writable){let r=0;this.polling&&(r++,this.once("pollComplete",function(){--r||n()})),this.writable||(r++,this.once("drain",function(){--r||n()}))}else n()}poll(){this.polling=!0,this.doPoll(),this.emitReserved("poll")}onData(t){const n=r=>{if(this.readyState==="opening"&&r.type==="open"&&this.onOpen(),r.type==="close")return this.onClose({description:"transport closed by the server"}),!1;this.onPacket(r)};fGe(t,this.socket.binaryType).forEach(n),this.readyState!=="closed"&&(this.polling=!1,this.emitReserved("pollComplete"),this.readyState==="open"&&this.poll())}doClose(){const t=()=>{this.write([{type:"close"}])};this.readyState==="open"?t():this.once("open",t)}write(t){this.writable=!1,dGe(t,n=>{this.doWrite(n,()=>{this.writable=!0,this.emitReserved("drain")})})}uri(){const t=this.opts.secure?"https":"http",n=this.query||{};return this.opts.timestampRequests!==!1&&(n[this.opts.timestampParam]=Vie()),!this.supportsBinary&&!n.sid&&(n.b64=1),this.createUri(t,n)}request(t={}){return Object.assign(t,{xd:this.xd,cookieJar:this.cookieJar},this.opts),new dc(this.uri(),t)}doWrite(t,n){const r=this.request({method:"POST",data:t});r.on("success",n),r.on("error",(i,o)=>{this.onError("xhr post error",i,o)})}doPoll(){const t=this.request();t.on("data",this.onData.bind(this)),t.on("error",(n,r)=>{this.onError("xhr poll error",n,r)}),this.pollXhr=t}}class dc extends li{constructor(t,n){super(),XA(this,n),this.opts=n,this.method=n.method||"GET",this.uri=t,this.data=n.data!==void 0?n.data:null,this.create()}create(){var t;const n=Wie(this.opts,"agent","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","autoUnref");n.xdomain=!!this.opts.xd;const r=this.xhr=new Xie(n);try{r.open(this.method,this.uri,!0);try{if(this.opts.extraHeaders){r.setDisableHeaderCheck&&r.setDisableHeaderCheck(!0);for(let i in this.opts.extraHeaders)this.opts.extraHeaders.hasOwnProperty(i)&&r.setRequestHeader(i,this.opts.extraHeaders[i])}}catch{}if(this.method==="POST")try{r.setRequestHeader("Content-type","text/plain;charset=UTF-8")}catch{}try{r.setRequestHeader("Accept","*/*")}catch{}(t=this.opts.cookieJar)===null||t===void 0||t.addCookies(r),"withCredentials"in r&&(r.withCredentials=this.opts.withCredentials),this.opts.requestTimeout&&(r.timeout=this.opts.requestTimeout),r.onreadystatechange=()=>{var i;r.readyState===3&&((i=this.opts.cookieJar)===null||i===void 0||i.parseCookies(r)),r.readyState===4&&(r.status===200||r.status===1223?this.onLoad():this.setTimeoutFn(()=>{this.onError(typeof r.status=="number"?r.status:0)},0))},r.send(this.data)}catch(i){this.setTimeoutFn(()=>{this.onError(i)},0);return}typeof document<"u"&&(this.index=dc.requestsCount++,dc.requests[this.index]=this)}onError(t){this.emitReserved("error",t,this.xhr),this.cleanup(!0)}cleanup(t){if(!(typeof this.xhr>"u"||this.xhr===null)){if(this.xhr.onreadystatechange=TGe,t)try{this.xhr.abort()}catch{}typeof document<"u"&&delete dc.requests[this.index],this.xhr=null}}onLoad(){const t=this.xhr.responseText;t!==null&&(this.emitReserved("data",t),this.emitReserved("success"),this.cleanup())}abort(){this.cleanup()}}dc.requestsCount=0;dc.requests={};if(typeof document<"u"){if(typeof attachEvent=="function")attachEvent("onunload",Oq);else if(typeof addEventListener=="function"){const e="onpagehide"in ma?"pagehide":"unload";addEventListener(e,Oq,!1)}}function Oq(){for(let e in dc.requests)dc.requests.hasOwnProperty(e)&&dc.requests[e].abort()}const zU=(()=>typeof Promise=="function"&&typeof Promise.resolve=="function"?t=>Promise.resolve().then(t):(t,n)=>n(t,0))(),VS=ma.WebSocket||ma.MozWebSocket,Mq=!0,IGe="arraybuffer",Dq=typeof navigator<"u"&&typeof navigator.product=="string"&&navigator.product.toLowerCase()==="reactnative";class RGe extends FU{constructor(t){super(t),this.supportsBinary=!t.forceBase64}get name(){return"websocket"}doOpen(){if(!this.check())return;const t=this.uri(),n=this.opts.protocols,r=Dq?{}:Wie(this.opts,"agent","perMessageDeflate","pfx","key","passphrase","cert","ca","ciphers","rejectUnauthorized","localAddress","protocolVersion","origin","maxPayload","family","checkServerIdentity");this.opts.extraHeaders&&(r.headers=this.opts.extraHeaders);try{this.ws=Mq&&!Dq?n?new VS(t,n):new VS(t):new VS(t,n,r)}catch(i){return this.emitReserved("error",i)}this.ws.binaryType=this.socket.binaryType,this.addEventListeners()}addEventListeners(){this.ws.onopen=()=>{this.opts.autoUnref&&this.ws._socket.unref(),this.onOpen()},this.ws.onclose=t=>this.onClose({description:"websocket connection closed",context:t}),this.ws.onmessage=t=>this.onData(t.data),this.ws.onerror=t=>this.onError("websocket error",t)}write(t){this.writable=!1;for(let n=0;n{const s={};try{Mq&&this.ws.send(o)}catch{}i&&zU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){typeof this.ws<"u"&&(this.ws.close(),this.ws=null)}uri(){const t=this.opts.secure?"wss":"ws",n=this.query||{};return this.opts.timestampRequests&&(n[this.opts.timestampParam]=Vie()),this.supportsBinary||(n.b64=1),this.createUri(t,n)}check(){return!!VS}}class PGe extends FU{get name(){return"webtransport"}doOpen(){typeof WebTransport=="function"&&(this.transport=new WebTransport(this.createUri("https"),this.opts.transportOptions[this.name]),this.transport.closed.then(()=>{this.onClose()}).catch(t=>{this.onError("webtransport error",t)}),this.transport.ready.then(()=>{this.transport.createBidirectionalStream().then(t=>{const n=pGe(Number.MAX_SAFE_INTEGER,this.socket.binaryType),r=t.readable.pipeThrough(n).getReader(),i=hGe();i.readable.pipeTo(t.writable),this.writer=i.writable.getWriter();const o=()=>{r.read().then(({done:a,value:c})=>{a||(this.onPacket(c),o())}).catch(a=>{})};o();const s={type:"open"};this.query.sid&&(s.data=`{"sid":"${this.query.sid}"}`),this.writer.write(s).then(()=>this.onOpen())})}))}write(t){this.writable=!1;for(let n=0;n{i&&zU(()=>{this.writable=!0,this.emitReserved("drain")},this.setTimeoutFn)})}}doClose(){var t;(t=this.transport)===null||t===void 0||t.close()}}const OGe={websocket:RGe,webtransport:PGe,polling:AGe},MGe=/^(?:(?![^:@\/?#]+:[^:@\/]*@)(http|https|ws|wss):\/\/)?((?:(([^:@\/?#]*)(?::([^:@\/?#]*))?)?@)?((?:[a-f0-9]{0,4}:){2,7}[a-f0-9]{0,4}|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/,DGe=["source","protocol","authority","userInfo","user","password","host","port","relative","path","directory","file","query","anchor"];function J5(e){const t=e,n=e.indexOf("["),r=e.indexOf("]");n!=-1&&r!=-1&&(e=e.substring(0,n)+e.substring(n,r).replace(/:/g,";")+e.substring(r,e.length));let i=MGe.exec(e||""),o={},s=14;for(;s--;)o[DGe[s]]=i[s]||"";return n!=-1&&r!=-1&&(o.source=t,o.host=o.host.substring(1,o.host.length-1).replace(/;/g,":"),o.authority=o.authority.replace("[","").replace("]","").replace(/;/g,":"),o.ipv6uri=!0),o.pathNames=LGe(o,o.path),o.queryKey=NGe(o,o.query),o}function LGe(e,t){const n=/\/{2,9}/g,r=t.replace(n,"/").split("/");return(t.slice(0,1)=="/"||t.length===0)&&r.splice(0,1),t.slice(-1)=="/"&&r.splice(r.length-1,1),r}function NGe(e,t){const n={};return t.replace(/(?:^|&)([^&=]*)=?([^&]*)/g,function(r,i,o){i&&(n[i]=o)}),n}let Yie=class Hm extends li{constructor(t,n={}){super(),this.binaryType=IGe,this.writeBuffer=[],t&&typeof t=="object"&&(n=t,t=null),t?(t=J5(t),n.hostname=t.host,n.secure=t.protocol==="https"||t.protocol==="wss",n.port=t.port,t.query&&(n.query=t.query)):n.host&&(n.hostname=J5(n.host).host),XA(this,n),this.secure=n.secure!=null?n.secure:typeof location<"u"&&location.protocol==="https:",n.hostname&&!n.port&&(n.port=this.secure?"443":"80"),this.hostname=n.hostname||(typeof location<"u"?location.hostname:"localhost"),this.port=n.port||(typeof location<"u"&&location.port?location.port:this.secure?"443":"80"),this.transports=n.transports||["polling","websocket","webtransport"],this.writeBuffer=[],this.prevBufferLen=0,this.opts=Object.assign({path:"/engine.io",agent:!1,withCredentials:!1,upgrade:!0,timestampParam:"t",rememberUpgrade:!1,addTrailingSlash:!0,rejectUnauthorized:!0,perMessageDeflate:{threshold:1024},transportOptions:{},closeOnBeforeunload:!1},n),this.opts.path=this.opts.path.replace(/\/$/,"")+(this.opts.addTrailingSlash?"/":""),typeof this.opts.query=="string"&&(this.opts.query=_Ge(this.opts.query)),this.id=null,this.upgrades=null,this.pingInterval=null,this.pingTimeout=null,this.pingTimeoutTimer=null,typeof addEventListener=="function"&&(this.opts.closeOnBeforeunload&&(this.beforeunloadEventListener=()=>{this.transport&&(this.transport.removeAllListeners(),this.transport.close())},addEventListener("beforeunload",this.beforeunloadEventListener,!1)),this.hostname!=="localhost"&&(this.offlineEventListener=()=>{this.onClose("transport close",{description:"network connection lost"})},addEventListener("offline",this.offlineEventListener,!1))),this.open()}createTransport(t){const n=Object.assign({},this.opts.query);n.EIO=Hie,n.transport=t,this.id&&(n.sid=this.id);const r=Object.assign({},this.opts,{query:n,socket:this,hostname:this.hostname,secure:this.secure,port:this.port},this.opts.transportOptions[t]);return new OGe[t](r)}open(){let t;if(this.opts.rememberUpgrade&&Hm.priorWebsocketSuccess&&this.transports.indexOf("websocket")!==-1)t="websocket";else if(this.transports.length===0){this.setTimeoutFn(()=>{this.emitReserved("error","No transports available")},0);return}else t=this.transports[0];this.readyState="opening";try{t=this.createTransport(t)}catch{this.transports.shift(),this.open();return}t.open(),this.setTransport(t)}setTransport(t){this.transport&&this.transport.removeAllListeners(),this.transport=t,t.on("drain",this.onDrain.bind(this)).on("packet",this.onPacket.bind(this)).on("error",this.onError.bind(this)).on("close",n=>this.onClose("transport close",n))}probe(t){let n=this.createTransport(t),r=!1;Hm.priorWebsocketSuccess=!1;const i=()=>{r||(n.send([{type:"ping",data:"probe"}]),n.once("packet",h=>{if(!r)if(h.type==="pong"&&h.data==="probe"){if(this.upgrading=!0,this.emitReserved("upgrading",n),!n)return;Hm.priorWebsocketSuccess=n.name==="websocket",this.transport.pause(()=>{r||this.readyState!=="closed"&&(f(),this.setTransport(n),n.send([{type:"upgrade"}]),this.emitReserved("upgrade",n),n=null,this.upgrading=!1,this.flush())})}else{const p=new Error("probe error");p.transport=n.name,this.emitReserved("upgradeError",p)}}))};function o(){r||(r=!0,f(),n.close(),n=null)}const s=h=>{const p=new Error("probe error: "+h);p.transport=n.name,o(),this.emitReserved("upgradeError",p)};function a(){s("transport closed")}function c(){s("socket closed")}function u(h){n&&h.name!==n.name&&o()}const f=()=>{n.removeListener("open",i),n.removeListener("error",s),n.removeListener("close",a),this.off("close",c),this.off("upgrading",u)};n.once("open",i),n.once("error",s),n.once("close",a),this.once("close",c),this.once("upgrading",u),this.upgrades.indexOf("webtransport")!==-1&&t!=="webtransport"?this.setTimeoutFn(()=>{r||n.open()},200):n.open()}onOpen(){if(this.readyState="open",Hm.priorWebsocketSuccess=this.transport.name==="websocket",this.emitReserved("open"),this.flush(),this.readyState==="open"&&this.opts.upgrade){let t=0;const n=this.upgrades.length;for(;t{this.onClose("ping timeout")},this.pingInterval+this.pingTimeout),this.opts.autoUnref&&this.pingTimeoutTimer.unref()}onDrain(){this.writeBuffer.splice(0,this.prevBufferLen),this.prevBufferLen=0,this.writeBuffer.length===0?this.emitReserved("drain"):this.flush()}flush(){if(this.readyState!=="closed"&&this.transport.writable&&!this.upgrading&&this.writeBuffer.length){const t=this.getWritablePackets();this.transport.send(t),this.prevBufferLen=t.length,this.emitReserved("flush")}}getWritablePackets(){if(!(this.maxPayload&&this.transport.name==="polling"&&this.writeBuffer.length>1))return this.writeBuffer;let n=1;for(let r=0;r0&&n>this.maxPayload)return this.writeBuffer.slice(0,r);n+=2}return this.writeBuffer}write(t,n,r){return this.sendPacket("message",t,n,r),this}send(t,n,r){return this.sendPacket("message",t,n,r),this}sendPacket(t,n,r,i){if(typeof n=="function"&&(i=n,n=void 0),typeof r=="function"&&(i=r,r=null),this.readyState==="closing"||this.readyState==="closed")return;r=r||{},r.compress=r.compress!==!1;const o={type:t,data:n,options:r};this.emitReserved("packetCreate",o),this.writeBuffer.push(o),i&&this.once("flush",i),this.flush()}close(){const t=()=>{this.onClose("forced close"),this.transport.close()},n=()=>{this.off("upgrade",n),this.off("upgradeError",n),t()},r=()=>{this.once("upgrade",n),this.once("upgradeError",n)};return(this.readyState==="opening"||this.readyState==="open")&&(this.readyState="closing",this.writeBuffer.length?this.once("drain",()=>{this.upgrading?r():t()}):this.upgrading?r():t()),this}onError(t){Hm.priorWebsocketSuccess=!1,this.emitReserved("error",t),this.onClose("transport error",t)}onClose(t,n){(this.readyState==="opening"||this.readyState==="open"||this.readyState==="closing")&&(this.clearTimeoutFn(this.pingTimeoutTimer),this.transport.removeAllListeners("close"),this.transport.close(),this.transport.removeAllListeners(),typeof removeEventListener=="function"&&(removeEventListener("beforeunload",this.beforeunloadEventListener,!1),removeEventListener("offline",this.offlineEventListener,!1)),this.readyState="closed",this.id=null,this.emitReserved("close",t,n),this.writeBuffer=[],this.prevBufferLen=0)}filterUpgrades(t){const n=[];let r=0;const i=t.length;for(;rtypeof ArrayBuffer.isView=="function"?ArrayBuffer.isView(e):e.buffer instanceof ArrayBuffer,Kie=Object.prototype.toString,zGe=typeof Blob=="function"||typeof Blob<"u"&&Kie.call(Blob)==="[object BlobConstructor]",jGe=typeof File=="function"||typeof File<"u"&&Kie.call(File)==="[object FileConstructor]";function jU(e){return $Ge&&(e instanceof ArrayBuffer||FGe(e))||zGe&&e instanceof Blob||jGe&&e instanceof File}function BE(e,t){if(!e||typeof e!="object")return!1;if(Array.isArray(e)){for(let n=0,r=e.length;n=0&&e.num{delete this.acks[t];for(let s=0;s{this.io.clearTimeoutFn(o),n.apply(this,[null,...s])}}emitWithAck(t,...n){const r=this.flags.timeout!==void 0||this._opts.ackTimeout!==void 0;return new Promise((i,o)=>{n.push((s,a)=>r?s?o(s):i(a):i(s)),this.emit(t,...n)})}_addToQueue(t){let n;typeof t[t.length-1]=="function"&&(n=t.pop());const r={id:this._queueSeq++,tryCount:0,pending:!1,args:t,flags:Object.assign({fromQueue:!0},this.flags)};t.push((i,...o)=>r!==this._queue[0]?void 0:(i!==null?r.tryCount>this._opts.retries&&(this._queue.shift(),n&&n(i)):(this._queue.shift(),n&&n(null,...o)),r.pending=!1,this._drainQueue())),this._queue.push(r),this._drainQueue()}_drainQueue(t=!1){if(!this.connected||this._queue.length===0)return;const n=this._queue[0];n.pending&&!t||(n.pending=!0,n.tryCount++,this.flags=n.flags,this.emit.apply(this,n.args))}packet(t){t.nsp=this.nsp,this.io._packet(t)}onopen(){typeof this.auth=="function"?this.auth(t=>{this._sendConnectPacket(t)}):this._sendConnectPacket(this.auth)}_sendConnectPacket(t){this.packet({type:gn.CONNECT,data:this._pid?Object.assign({pid:this._pid,offset:this._lastOffset},t):t})}onerror(t){this.connected||this.emitReserved("connect_error",t)}onclose(t,n){this.connected=!1,delete this.id,this.emitReserved("disconnect",t,n)}onpacket(t){if(t.nsp===this.nsp)switch(t.type){case gn.CONNECT:t.data&&t.data.sid?this.onconnect(t.data.sid,t.data.pid):this.emitReserved("connect_error",new Error("It seems you are trying to reach a Socket.IO server in v2.x with a v3.x client, but they are not compatible (more information here: https://socket.io/docs/v3/migrating-from-2-x-to-3-0/)"));break;case gn.EVENT:case gn.BINARY_EVENT:this.onevent(t);break;case gn.ACK:case gn.BINARY_ACK:this.onack(t);break;case gn.DISCONNECT:this.ondisconnect();break;case gn.CONNECT_ERROR:this.destroy();const r=new Error(t.data.message);r.data=t.data.data,this.emitReserved("connect_error",r);break}}onevent(t){const n=t.data||[];t.id!=null&&n.push(this.ack(t.id)),this.connected?this.emitEvent(n):this.receiveBuffer.push(Object.freeze(n))}emitEvent(t){if(this._anyListeners&&this._anyListeners.length){const n=this._anyListeners.slice();for(const r of n)r.apply(this,t)}super.emit.apply(this,t),this._pid&&t.length&&typeof t[t.length-1]=="string"&&(this._lastOffset=t[t.length-1])}ack(t){const n=this;let r=!1;return function(...i){r||(r=!0,n.packet({type:gn.ACK,id:t,data:i}))}}onack(t){const n=this.acks[t.id];typeof n=="function"&&(n.apply(this,t.data),delete this.acks[t.id])}onconnect(t,n){this.id=t,this.recovered=n&&this._pid===n,this._pid=n,this.connected=!0,this.emitBuffered(),this.emitReserved("connect"),this._drainQueue(!0)}emitBuffered(){this.receiveBuffer.forEach(t=>this.emitEvent(t)),this.receiveBuffer=[],this.sendBuffer.forEach(t=>{this.notifyOutgoingListeners(t),this.packet(t)}),this.sendBuffer=[]}ondisconnect(){this.destroy(),this.onclose("io server disconnect")}destroy(){this.subs&&(this.subs.forEach(t=>t()),this.subs=void 0),this.io._destroy(this)}disconnect(){return this.connected&&this.packet({type:gn.DISCONNECT}),this.destroy(),this.connected&&this.onclose("io client disconnect"),this}close(){return this.disconnect()}compress(t){return this.flags.compress=t,this}get volatile(){return this.flags.volatile=!0,this}timeout(t){return this.flags.timeout=t,this}onAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.push(t),this}prependAny(t){return this._anyListeners=this._anyListeners||[],this._anyListeners.unshift(t),this}offAny(t){if(!this._anyListeners)return this;if(t){const n=this._anyListeners;for(let r=0;r0&&e.jitter<=1?e.jitter:0,this.attempts=0}zv.prototype.duration=function(){var e=this.ms*Math.pow(this.factor,this.attempts++);if(this.jitter){var t=Math.random(),n=Math.floor(t*this.jitter*e);e=Math.floor(t*10)&1?e+n:e-n}return Math.min(e,this.max)|0};zv.prototype.reset=function(){this.attempts=0};zv.prototype.setMin=function(e){this.ms=e};zv.prototype.setMax=function(e){this.max=e};zv.prototype.setJitter=function(e){this.jitter=e};class t4 extends li{constructor(t,n){var r;super(),this.nsps={},this.subs=[],t&&typeof t=="object"&&(n=t,t=void 0),n=n||{},n.path=n.path||"/socket.io",this.opts=n,XA(this,n),this.reconnection(n.reconnection!==!1),this.reconnectionAttempts(n.reconnectionAttempts||1/0),this.reconnectionDelay(n.reconnectionDelay||1e3),this.reconnectionDelayMax(n.reconnectionDelayMax||5e3),this.randomizationFactor((r=n.randomizationFactor)!==null&&r!==void 0?r:.5),this.backoff=new zv({min:this.reconnectionDelay(),max:this.reconnectionDelayMax(),jitter:this.randomizationFactor()}),this.timeout(n.timeout==null?2e4:n.timeout),this._readyState="closed",this.uri=t;const i=n.parser||XGe;this.encoder=new i.Encoder,this.decoder=new i.Decoder,this._autoConnect=n.autoConnect!==!1,this._autoConnect&&this.open()}reconnection(t){return arguments.length?(this._reconnection=!!t,this):this._reconnection}reconnectionAttempts(t){return t===void 0?this._reconnectionAttempts:(this._reconnectionAttempts=t,this)}reconnectionDelay(t){var n;return t===void 0?this._reconnectionDelay:(this._reconnectionDelay=t,(n=this.backoff)===null||n===void 0||n.setMin(t),this)}randomizationFactor(t){var n;return t===void 0?this._randomizationFactor:(this._randomizationFactor=t,(n=this.backoff)===null||n===void 0||n.setJitter(t),this)}reconnectionDelayMax(t){var n;return t===void 0?this._reconnectionDelayMax:(this._reconnectionDelayMax=t,(n=this.backoff)===null||n===void 0||n.setMax(t),this)}timeout(t){return arguments.length?(this._timeout=t,this):this._timeout}maybeReconnectOnOpen(){!this._reconnecting&&this._reconnection&&this.backoff.attempts===0&&this.reconnect()}open(t){if(~this._readyState.indexOf("open"))return this;this.engine=new Yie(this.uri,this.opts);const n=this.engine,r=this;this._readyState="opening",this.skipReconnect=!1;const i=ul(n,"open",function(){r.onopen(),t&&t()}),o=a=>{this.cleanup(),this._readyState="closed",this.emitReserved("error",a),t?t(a):this.maybeReconnectOnOpen()},s=ul(n,"error",o);if(this._timeout!==!1){const a=this._timeout,c=this.setTimeoutFn(()=>{i(),o(new Error("timeout")),n.close()},a);this.opts.autoUnref&&c.unref(),this.subs.push(()=>{this.clearTimeoutFn(c)})}return this.subs.push(i),this.subs.push(s),this}connect(t){return this.open(t)}onopen(){this.cleanup(),this._readyState="open",this.emitReserved("open");const t=this.engine;this.subs.push(ul(t,"ping",this.onping.bind(this)),ul(t,"data",this.ondata.bind(this)),ul(t,"error",this.onerror.bind(this)),ul(t,"close",this.onclose.bind(this)),ul(this.decoder,"decoded",this.ondecoded.bind(this)))}onping(){this.emitReserved("ping")}ondata(t){try{this.decoder.add(t)}catch(n){this.onclose("parse error",n)}}ondecoded(t){zU(()=>{this.emitReserved("packet",t)},this.setTimeoutFn)}onerror(t){this.emitReserved("error",t)}socket(t,n){let r=this.nsps[t];return r?this._autoConnect&&!r.active&&r.connect():(r=new Qie(this,t,n),this.nsps[t]=r),r}_destroy(t){const n=Object.keys(this.nsps);for(const r of n)if(this.nsps[r].active)return;this._close()}_packet(t){const n=this.encoder.encode(t);for(let r=0;rt()),this.subs.length=0,this.decoder.destroy()}_close(){this.skipReconnect=!0,this._reconnecting=!1,this.onclose("forced close"),this.engine&&this.engine.close()}disconnect(){return this._close()}onclose(t,n){this.cleanup(),this.backoff.reset(),this._readyState="closed",this.emitReserved("close",t,n),this._reconnection&&!this.skipReconnect&&this.reconnect()}reconnect(){if(this._reconnecting||this.skipReconnect)return this;const t=this;if(this.backoff.attempts>=this._reconnectionAttempts)this.backoff.reset(),this.emitReserved("reconnect_failed"),this._reconnecting=!1;else{const n=this.backoff.duration();this._reconnecting=!0;const r=this.setTimeoutFn(()=>{t.skipReconnect||(this.emitReserved("reconnect_attempt",t.backoff.attempts),!t.skipReconnect&&t.open(i=>{i?(t._reconnecting=!1,t.reconnect(),this.emitReserved("reconnect_error",i)):t.onreconnect()}))},n);this.opts.autoUnref&&r.unref(),this.subs.push(()=>{this.clearTimeoutFn(r)})}}onreconnect(){const t=this.backoff.attempts;this._reconnecting=!1,this.backoff.reset(),this.emitReserved("reconnect",t)}}const tx={};function $E(e,t){typeof e=="object"&&(t=e,e=void 0),t=t||{};const n=BGe(e,t.path||"/socket.io"),r=n.source,i=n.id,o=n.path,s=tx[i]&&o in tx[i].nsps,a=t.forceNew||t["force new connection"]||t.multiplex===!1||s;let c;return a?c=new t4(r,t):(tx[i]||(tx[i]=new t4(r,t)),c=tx[i]),n.query&&!t.query&&(t.query=n.queryKey),c.socket(n.path,t)}Object.assign($E,{Manager:t4,Socket:Qie,io:$E,connect:$E});class KGe{constructor(t){vm(this,"rpc");vm(this,"socket");this.options=t,this.socket=$E(t.url),this.rpc=new NU.JSONRPCClient(async n=>{const r=i=>{i.id===n.id&&(this.socket.off("response",r),this.rpc.receive(i))};this.socket.emit("request",n),this.socket.on("response",r)})}async connect(){this.socket.connect()}async disconnect(){this.socket.disconnect()}async call(t,n){return await this.rpc.request(t,n)}}const HU={socketio:{name:"socket.io",constructor:KGe},ipc:{name:"Web Worker",constructor:iGe},native:{name:"Internal",constructor:sGe}};function QGe(e){return HU[e].constructor}const Jie=te.first(te.keys(HU));function JGe(){const[{renderer:e},t]=Zu();return C.jsx(C.Fragment,{children:C.jsx(uA,{editor:n=>C.jsx(UWe,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({renderer:n})),300),addItemLabel:"Add Renderer",create:()=>({transport:Jie,url:"",disabled:!0}),extras:C.jsx(of,{icon:C.jsx(GQ,{}),sx:{ml:2},onClick:()=>t(()=>({renderer:UJ})),children:"Reset to Defaults"})})})}function ZGe(e){const[{connections:t}]=dA(),n=tU(),[{remote:r}]=Zu(),i=te.find(r,{url:e});return i&&!(i!=null&&i.disabled)?n({url:e})?"connected":t?"connecting":e?"error":"not-connected":"not-connected"}const e9e={connected:"success.light",connecting:"warning.light",error:"error.light","not-connected":"text.disabled"};function t9e({value:e,onValueChange:t}){const n=u$e(e.url),r=ZGe(e.url);function i(o){t==null||t(Wk(e,o))}return C.jsx(C.Fragment,{children:C.jsxs(En,{alignItems:"center",py:.5,children:[C.jsx(Ene,{sx:{color:e9e[r]}}),C.jsx(ai,{}),C.jsxs(ht,{flex:1,children:[C.jsx(Ut,{children:n?`${n.name} ${n.version}`:te.startCase(r)}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:(n==null?void 0:n.description)??((e==null?void 0:e.url)||"No URL")})]}),C.jsx(bf,{title:`${e.disabled?"Enable":"Disable"} Connection`,children:C.jsx(ht,{children:C.jsx(Kg,{checked:!e.disabled,onChange:(o,s)=>i({disabled:!s})})})}),C.jsx(Oj,{trigger:o=>C.jsx(ug,{icon:C.jsx(Hk,{}),label:"Edit Connection",onClick:o}),appBar:{children:C.jsx(Pj,{children:"Edit Connection"})},children:C.jsxs(ht,{p:2.5,children:[C.jsx(Cw,{value:e.url,onChange:o=>i({url:o.target.value}),fullWidth:!0,variant:"filled",label:"URL",sx:{mb:2}}),C.jsx(jx,{placeholder:"Connection Type",items:te.entries(HU).map(([o,{name:s}])=>({value:o,label:s})),fullWidth:!0,value:e.transport,onChange:o=>i({transport:o})})]})})]})})}function n9e(){const[{remote:e},t]=Zu();return C.jsx(C.Fragment,{children:C.jsx(uA,{editor:n=>C.jsx(t9e,{value:n}),icon:null,value:e,onChange:te.debounce(n=>t(()=>({remote:n})),300),addItemLabel:"Add Solver",create:()=>({transport:Jie,url:"",disabled:!0}),extras:C.jsx(of,{icon:C.jsx(GQ,{}),sx:{ml:2},onClick:()=>t(()=>({remote:jJ})),children:"Reset to Defaults"})})})}const Nq=e=>`${e}x`;function r9e(){const{controls:e,onChange:t,state:n}=wf(),[{playbackRate:r=1,acrylic:i,theme:o="light",accentColor:s="teal"},a]=Zu(),[c,u]=R.useState("general");function f(p){return C.jsx(Ut,{variant:"overline",color:"text.secondary",children:p})}function h(p){return C.jsx(Ut,{variant:"body1",children:p})}return C.jsx(GJ,{value:c,children:C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Options,{children:C.jsxs(YJ,{onChange:(p,g)=>u(g),children:[C.jsx(rg,{label:"General",value:"general"}),C.jsx(rg,{label:"Connections",value:"connections"}),C.jsx(rg,{label:"Renderers",value:"renderers"}),C.jsx(rg,{label:"Map Parsers",value:"map-parsers"})]})}),C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,children:C.jsx(Iw,{y:!0,children:C.jsxs(En,{vertical:!0,pt:6,children:[C.jsx(ag,{value:"general",children:C.jsxs(ht,{children:[f("Playback"),C.jsxs(En,{alignItems:"center",children:[h("Playback Rate"),C.jsx(ai,{flex:1}),C.jsx(txe,{sx:{maxWidth:320,mr:2},marks:[.25,1,5].map(p=>({value:p*Lm,label:Nq(p)})),step:.25*Lm,min:.25*Lm,max:5*Lm,valueLabelFormat:p=>Nq(p/Lm),valueLabelDisplay:"auto",defaultValue:r,onChangeCommitted:(p,g)=>a(()=>({playbackRate:g}))})]}),f("UI"),C.jsxs(En,{alignItems:"center",children:[h("Acrylic"),C.jsx(ai,{flex:1}),C.jsx(Kg,{defaultChecked:!!i,onChange:(p,g)=>a(()=>({acrylic:g}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Dark Mode"),C.jsx(ai,{flex:1}),C.jsx(Kg,{defaultChecked:o==="dark",onChange:(p,g)=>a(()=>({theme:g?"dark":"light"}))})]}),C.jsxs(En,{alignItems:"center",children:[h("Accent"),C.jsx(ai,{flex:1}),C.jsx(Gs,{value:s,items:te.map(te.keys(RSe),p=>({id:p,name:te.startCase(p)})),showArrow:!0,onChange:p=>a(()=>({accentColor:p}))})]})]})}),C.jsx(ag,{value:"connections",children:C.jsxs(ht,{children:[f("Solvers"),C.jsx(n9e,{})]})}),C.jsx(ag,{value:"renderers",children:C.jsxs(ht,{children:[f("Renderers"),C.jsx(JGe,{})]})}),C.jsx(ag,{value:"map-parsers",children:C.jsxs(ht,{children:[f("Map Parsers"),C.jsx(i9e,{})]})})]})})})}),C.jsx(zn.Extras,{children:e})]})})}function i9e(){return C.jsx(Yg,{children:te.keys(Zj).map(e=>C.jsx(Fx,{children:C.jsx(oc,{primary:e,secondary:"Internal"})},e))})}const YA=0,Tf=1,jv=2,Zie=4;function eoe(e,t){return n=>e(t(n))}function o9e(e,t){return t(e)}function toe(e,t){return n=>e(t,n)}function Bq(e,t){return()=>e(t)}function KA(e,t){return t(e),e}function kr(...e){return e}function s9e(e){e()}function $q(e){return()=>e}function a9e(...e){return()=>{e.map(s9e)}}function WU(e){return e!==void 0}function Uv(){}function qn(e,t){return e(Tf,t)}function rn(e,t){e(YA,t)}function GU(e){e(jv)}function Us(e){return e(Zie)}function Et(e,t){return qn(e,toe(t,YA))}function qu(e,t){const n=e(Tf,r=>{n(),t(r)});return n}function Sn(){const e=[];return(t,n)=>{switch(t){case jv:e.splice(0,e.length);return;case Tf:return e.push(n),()=>{const r=e.indexOf(n);r>-1&&e.splice(r,1)};case YA:e.slice().forEach(r=>{r(n)});return;default:throw new Error(`unrecognized action ${t}`)}}}function tt(e){let t=e;const n=Sn();return(r,i)=>{switch(r){case Tf:i(t);break;case YA:t=i;break;case Zie:return t}return n(r,i)}}function l9e(e){let t,n;const r=()=>t&&t();return function(i,o){switch(i){case Tf:return o?n===o?void 0:(r(),n=o,t=qn(e,o),t):(r(),Uv);case jv:r(),n=null;return;default:throw new Error(`unrecognized action ${i}`)}}}function Ks(e){return KA(Sn(),t=>Et(e,t))}function Fo(e,t){return KA(tt(t),n=>Et(e,n))}function c9e(...e){return t=>e.reduceRight(o9e,t)}function Oe(e,...t){const n=c9e(...t);return(r,i)=>{switch(r){case Tf:return qn(e,n(i));case jv:GU(e);return}}}function noe(e,t){return e===t}function Sr(e=noe){let t;return n=>r=>{e(t,r)||(t=r,n(r))}}function Gt(e){return t=>n=>{e(n)&&t(n)}}function ut(e){return t=>eoe(t,e)}function Su(e){return t=>()=>t(e)}function Zl(e,t){return n=>r=>n(t=e(t,r))}function mv(e){return t=>n=>{e>0?e--:t(n)}}function Nd(e){let t=null,n;return r=>i=>{t=i,!n&&(n=setTimeout(()=>{n=void 0,r(t)},e))}}function Fq(e){let t,n;return r=>i=>{t=i,n&&clearTimeout(n),n=setTimeout(()=>{r(t)},e)}}function un(...e){const t=new Array(e.length);let n=0,r=null;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{const u=n;n=n|a,t[s]=c,u!==i&&n===i&&r&&(r(),r=null)})}),o=>s=>{const a=()=>o([s].concat(t));n===i?a():r=a}}function zq(...e){return function(t,n){switch(t){case Tf:return a9e(...e.map(r=>qn(r,n)));case jv:return;default:throw new Error(`unrecognized action ${t}`)}}}function Wt(e,t=noe){return Oe(e,Sr(t))}function Ri(...e){const t=Sn(),n=new Array(e.length);let r=0;const i=Math.pow(2,e.length)-1;return e.forEach((o,s)=>{const a=Math.pow(2,s);qn(o,c=>{n[s]=c,r=r|a,r===i&&rn(t,n)})}),function(o,s){switch(o){case Tf:return r===i&&s(n),qn(t,s);case jv:return GU(t);default:throw new Error(`unrecognized action ${o}`)}}}function Wn(e,t=[],{singleton:n}={singleton:!0}){return{id:u9e(),constructor:e,dependencies:t,singleton:n}}const u9e=()=>Symbol();function d9e(e){const t=new Map,n=({id:r,constructor:i,dependencies:o,singleton:s})=>{if(s&&t.has(r))return t.get(r);const a=i(o.map(c=>n(c)));return s&&t.set(r,a),a};return n(e)}function f9e(e,t){const n={},r={};let i=0;const o=e.length;for(;i(S[w]=b=>{const x=y[t.methods[w]];rn(x,b)},S),{})}function f(y){return s.reduce((S,w)=>(S[w]=l9e(y[t.events[w]]),S),{})}return{Component:de.forwardRef((y,S)=>{const{children:w,...b}=y,[x]=de.useState(()=>KA(d9e(e),I=>c(I,b))),[E]=de.useState(Bq(f,x));return qS(()=>{for(const I of s)I in b&&qn(E[I],b[I]);return()=>{Object.values(E).map(GU)}},[b,E,x]),qS(()=>{c(x,b)}),de.useImperativeHandle(S,$q(u(x))),de.createElement(a.Provider,{value:x},n?de.createElement(n,f9e([...r,...i,...s],b),w):w)}),usePublisher:y=>de.useCallback(toe(rn,de.useContext(a)[y]),[y]),useEmitterValue:y=>{const w=de.useContext(a)[y],[b,x]=de.useState(Bq(Us,w));return qS(()=>qn(w,E=>{E!==b&&x($q(E))}),[w,b]),b},useEmitter:(y,S)=>{const b=de.useContext(a)[y];qS(()=>qn(b,S),[S,b])}}}const h9e=typeof document<"u"?de.useLayoutEffect:de.useEffect,p9e=h9e;var Qs=(e=>(e[e.DEBUG=0]="DEBUG",e[e.INFO=1]="INFO",e[e.WARN=2]="WARN",e[e.ERROR=3]="ERROR",e))(Qs||{});const m9e={0:"debug",1:"log",2:"warn",3:"error"},g9e=()=>typeof globalThis>"u"?window:globalThis,kf=Wn(()=>{const e=tt(3);return{log:tt((n,r,i=1)=>{var o;const s=(o=g9e().VIRTUOSO_LOG_LEVEL)!=null?o:Us(e);i>=s&&console[m9e[i]]("%creact-virtuoso: %c%s %o","color: #0253b3; font-weight: bold","color: initial",n,r)}),logLevel:e}},[],{singleton:!0});function VU(e,t=!0){const n=de.useRef(null);let r=i=>{};if(typeof ResizeObserver<"u"){const i=de.useMemo(()=>new ResizeObserver(o=>{const s=o[0].target;s.offsetParent!==null&&e(s)}),[e]);r=o=>{o&&t?(i.observe(o),n.current=o):(n.current&&i.unobserve(n.current),n.current=null)}}return{ref:n,callbackRef:r}}function mm(e,t=!0){return VU(e,t).callbackRef}function v9e(e,t,n,r,i,o,s){const a=de.useCallback(c=>{const u=y9e(c.children,t,"offsetHeight",i);let f=c.parentElement;for(;!f.dataset.virtuosoScroller;)f=f.parentElement;const h=f.lastElementChild.dataset.viewportType==="window",p=s?s.scrollTop:h?window.pageYOffset||document.documentElement.scrollTop:f.scrollTop,g=s?s.scrollHeight:h?document.documentElement.scrollHeight:f.scrollHeight,v=s?s.offsetHeight:h?window.innerHeight:f.offsetHeight;r({scrollTop:Math.max(p,0),scrollHeight:g,viewportHeight:v}),o==null||o(b9e("row-gap",getComputedStyle(c).rowGap,i)),u!==null&&e(u)},[e,t,i,o,s,r]);return VU(a,n)}function y9e(e,t,n,r){const i=e.length;if(i===0)return null;const o=[];for(let s=0;s{const p=h.target,g=p===window||p===document,v=g?window.pageYOffset||document.documentElement.scrollTop:p.scrollTop,y=g?document.documentElement.scrollHeight:p.scrollHeight,S=g?window.innerHeight:p.offsetHeight,w=()=>{e({scrollTop:Math.max(v,0),scrollHeight:y,viewportHeight:S})};h.suppressFlushSync?w():ng.flushSync(w),s.current!==null&&(v===s.current||v<=0||v===y-S)&&(s.current=null,t(!0),a.current&&(clearTimeout(a.current),a.current=null))},[e,t]);de.useEffect(()=>{const h=i||o.current;return r(i||o.current),c({target:h,suppressFlushSync:!0}),h.addEventListener("scroll",c,{passive:!0}),()=>{r(null),h.removeEventListener("scroll",c)}},[o,c,n,r,i]);function u(h){const p=o.current;if(!p||"offsetHeight"in p&&p.offsetHeight===0)return;const g=h.behavior==="smooth";let v,y,S;p===window?(y=Math.max(ff(document.documentElement,"height"),document.documentElement.scrollHeight),v=window.innerHeight,S=document.documentElement.scrollTop):(y=p.scrollHeight,v=ff(p,"height"),S=p.scrollTop);const w=y-v;if(h.top=Math.ceil(Math.max(Math.min(w,h.top),0)),ioe(v,y)||h.top===S){e({scrollTop:S,scrollHeight:y,viewportHeight:v}),g&&t(!0);return}g?(s.current=h.top,a.current&&clearTimeout(a.current),a.current=setTimeout(()=>{a.current=null,s.current=null,t(!0)},1e3)):s.current=null,p.scrollTo(h)}function f(h){o.current.scrollBy(h)}return{scrollerRef:o,scrollByCallback:f,scrollToCallback:u}}const Wo=Wn(()=>{const e=Sn(),t=Sn(),n=tt(0),r=Sn(),i=tt(0),o=Sn(),s=Sn(),a=tt(0),c=tt(0),u=tt(0),f=tt(0),h=Sn(),p=Sn(),g=tt(!1);return Et(Oe(e,ut(({scrollTop:v})=>v)),t),Et(Oe(e,ut(({scrollHeight:v})=>v)),s),Et(t,i),{scrollContainerState:e,scrollTop:t,viewportHeight:o,headerHeight:a,fixedHeaderHeight:c,fixedFooterHeight:u,footerHeight:f,scrollHeight:s,smoothScrollTargetReached:r,scrollTo:h,scrollBy:p,statefulScrollTop:i,deviation:n,scrollingInProgress:g}},[],{singleton:!0}),sw={lvl:0};function soe(e,t,n,r=sw,i=sw){return{k:e,v:t,lvl:n,l:r,r:i}}function rr(e){return e===sw}function Og(){return sw}function n4(e,t){if(rr(e))return sw;const{k:n,l:r,r:i}=e;if(t===n){if(rr(r))return i;if(rr(i))return r;{const[o,s]=aoe(r);return FE(wi(e,{k:o,v:s,l:loe(r)}))}}else return tt&&(a=a.concat(r4(o,t,n))),r>=t&&r<=n&&a.push({k:r,v:i}),r<=n&&(a=a.concat(r4(s,t,n))),a}function wp(e){return rr(e)?[]:[...wp(e.l),{k:e.k,v:e.v},...wp(e.r)]}function aoe(e){return rr(e.r)?[e.k,e.v]:aoe(e.r)}function loe(e){return rr(e.r)?e.l:FE(wi(e,{r:loe(e.r)}))}function wi(e,t){return soe(t.k!==void 0?t.k:e.k,t.v!==void 0?t.v:e.v,t.lvl!==void 0?t.lvl:e.lvl,t.l!==void 0?t.l:e.l,t.r!==void 0?t.r:e.r)}function V$(e){return rr(e)||e.lvl>e.r.lvl}function jq(e){return i4(uoe(e))}function FE(e){const{l:t,r:n,lvl:r}=e;if(n.lvl>=r-1&&t.lvl>=r-1)return e;if(r>n.lvl+1){if(V$(t))return uoe(wi(e,{lvl:r-1}));if(!rr(t)&&!rr(t.r))return wi(t.r,{l:wi(t,{r:t.r.l}),r:wi(e,{l:t.r.r,lvl:r-1}),lvl:r});throw new Error("Unexpected empty nodes")}else{if(V$(e))return i4(wi(e,{lvl:r-1}));if(!rr(n)&&!rr(n.l)){const i=n.l,o=V$(i)?n.lvl-1:n.lvl;return wi(i,{l:wi(e,{r:i.l,lvl:r-1}),r:i4(wi(n,{l:i.r,lvl:o})),lvl:i.lvl+1})}else throw new Error("Unexpected empty nodes")}}function QA(e,t,n){if(rr(e))return[];const r=Pl(e,t)[0];return x9e(r4(e,r,n))}function coe(e,t){const n=e.length;if(n===0)return[];let{index:r,value:i}=t(e[0]);const o=[];for(let s=1;s({index:t,value:n}))}function i4(e){const{r:t,lvl:n}=e;return!rr(t)&&!rr(t.r)&&t.lvl===n&&t.r.lvl===n?wi(t,{l:wi(e,{r:t.l}),lvl:n+1}):e}function uoe(e){const{l:t}=e;return!rr(t)&&t.lvl===e.lvl?wi(t,{r:wi(e,{l:t.r})}):e}function gT(e,t,n,r=0){let i=e.length-1;for(;r<=i;){const o=Math.floor((r+i)/2),s=e[o],a=n(s,t);if(a===0)return o;if(a===-1){if(i-r<2)return o-1;i=o-1}else{if(i===r)return o;r=o+1}}throw new Error(`Failed binary finding record in array - ${e.join(",")}, searched for ${t}`)}function doe(e,t,n){return e[gT(e,t,n)]}function w9e(e,t,n,r){const i=gT(e,t,r),o=gT(e,n,r,i);return e.slice(i,o+1)}const qU=Wn(()=>({recalcInProgress:tt(!1)}),[],{singleton:!0});function _9e(e){const{size:t,startIndex:n,endIndex:r}=e;return i=>i.start===n&&(i.end===r||i.end===1/0)&&i.value===t}function Uq(e,t){let n=0,r=0;for(;n=f||i===p)&&(e=n4(e,f)):(u=p!==i,c=!0),h>s&&s>=f&&p!==i&&(e=Fs(e,s+1,p));u&&(e=Fs(e,o,i))}return[e,n]}function E9e(){return{offsetTree:[],sizeTree:Og(),groupOffsetTree:Og(),lastIndex:0,lastOffset:0,lastSize:0,groupIndices:[]}}function XU({index:e},t){return t===e?0:t0&&(t=Math.max(t,doe(e,r,XU).offset)),coe(w9e(e,t,n,C9e),T9e)}function o4(e,t,n,r){let i=e,o=0,s=0,a=0,c=0;if(t!==0){c=gT(i,t-1,XU),a=i[c].offset;const f=Pl(n,t-1);o=f[0],s=f[1],i.length&&i[c].size===Pl(n,t)[1]&&(c-=1),i=i.slice(0,c+1)}else i=[];for(const{start:u,value:f}of QA(n,t,1/0)){const h=u-o,p=h*s+a+h*r;i.push({offset:p,size:f,index:u}),o=u,a=p,s=f}return{offsetTree:i,lastIndex:o,lastOffset:a,lastSize:s}}function A9e(e,[t,n,r,i]){t.length>0&&r("received item sizes",t,Qs.DEBUG);const o=e.sizeTree;let s=o,a=0;if(n.length>0&&rr(o)&&t.length===2){const p=t[0].size,g=t[1].size;s=n.reduce((v,y)=>Fs(Fs(v,y,p),y+1,g),s)}else[s,a]=S9e(s,t);if(s===o)return e;const{offsetTree:c,lastIndex:u,lastSize:f,lastOffset:h}=o4(e.offsetTree,a,s,i);return{sizeTree:s,offsetTree:c,lastIndex:u,lastOffset:h,lastSize:f,groupOffsetTree:n.reduce((p,g)=>Fs(p,g,lw(g,c,i)),Og()),groupIndices:n}}function lw(e,t,n){if(t.length===0)return 0;const{offset:r,index:i,size:o}=doe(t,e,XU),s=e-i,a=o*s+(s-1)*n+r;return a>0?a+n:a}function I9e(e){return typeof e.groupIndex<"u"}function foe(e,t,n){if(I9e(e))return t.groupIndices[e.groupIndex]+1;{const r=e.index==="LAST"?n:e.index;let i=hoe(r,t);return i=Math.max(0,i,Math.min(n,i)),i}}function hoe(e,t){if(!JA(t))return e;let n=0;for(;t.groupIndices[n]<=e+n;)n++;return e+n}function JA(e){return!rr(e.groupOffsetTree)}function R9e(e){return wp(e).map(({k:t,v:n},r,i)=>{const o=i[r+1],s=o?o.k-1:1/0;return{startIndex:t,endIndex:s,size:n}})}const P9e={offsetHeight:"height",offsetWidth:"width"},wc=Wn(([{log:e},{recalcInProgress:t}])=>{const n=Sn(),r=Sn(),i=Fo(r,0),o=Sn(),s=Sn(),a=tt(0),c=tt([]),u=tt(void 0),f=tt(void 0),h=tt((I,A)=>ff(I,P9e[A])),p=tt(void 0),g=tt(0),v=E9e(),y=Fo(Oe(n,un(c,e,g),Zl(A9e,v),Sr()),v),S=Fo(Oe(c,Sr(),Zl((I,A)=>({prev:I.current,current:A}),{prev:[],current:[]}),ut(({prev:I})=>I)),[]);Et(Oe(c,Gt(I=>I.length>0),un(y,g),ut(([I,A,k])=>{const O=I.reduce((L,N,H)=>Fs(L,N,lw(N,A.offsetTree,k)||H),Og());return{...A,groupIndices:I,groupOffsetTree:O}})),y),Et(Oe(r,un(y),Gt(([I,{lastIndex:A}])=>I[{startIndex:I,endIndex:A,size:k}])),n),Et(u,f);const w=Fo(Oe(u,ut(I=>I===void 0)),!0);Et(Oe(f,Gt(I=>I!==void 0&&rr(Us(y).sizeTree)),ut(I=>[{startIndex:0,endIndex:0,size:I}])),n);const b=Ks(Oe(n,un(y),Zl(({sizes:I},[A,k])=>({changed:k!==I,sizes:k}),{changed:!1,sizes:v}),ut(I=>I.changed)));qn(Oe(a,Zl((I,A)=>({diff:I.prev-A,prev:A}),{diff:0,prev:0}),ut(I=>I.diff)),I=>{const{groupIndices:A}=Us(y);if(I>0)rn(t,!0),rn(o,I+Uq(I,A));else if(I<0){const k=Us(S);k.length>0&&(I-=Uq(-I,k)),rn(s,I)}}),qn(Oe(a,un(e)),([I,A])=>{I<0&&A("`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",{firstItemIndex:a},Qs.ERROR)});const x=Ks(o);Et(Oe(o,un(y),ut(([I,A])=>{const k=A.groupIndices.length>0,O=[],L=A.lastSize;if(k){const N=aw(A.sizeTree,0);let H=0,G=0;for(;H{let W=F.ranges;return F.prevSize!==0&&(W=[...F.ranges,{startIndex:F.prevIndex,endIndex:j+I-1,size:F.prevSize}]),{ranges:W,prevIndex:j+I,prevSize:V}},{ranges:O,prevIndex:I,prevSize:0}).ranges}return wp(A.sizeTree).reduce((N,{k:H,v:G})=>({ranges:[...N.ranges,{startIndex:N.prevIndex,endIndex:H+I-1,size:N.prevSize}],prevIndex:H+I,prevSize:G}),{ranges:[],prevIndex:0,prevSize:L}).ranges})),n);const E=Ks(Oe(s,un(y,g),ut(([I,{offsetTree:A},k])=>{const O=-I;return lw(O,A,k)})));return Et(Oe(s,un(y,g),ut(([I,A,k])=>{if(A.groupIndices.length>0){if(rr(A.sizeTree))return A;let L=Og();const N=Us(S);let H=0,G=0,z=0;for(;H<-I;){z=N[G];const F=N[G+1]-z-1;G++,H+=F+1}if(L=wp(A.sizeTree).reduce((F,{k:j,v:V})=>Fs(F,Math.max(0,j+I),V),L),H!==-I){const F=aw(A.sizeTree,z);L=Fs(L,0,F);const j=Pl(A.sizeTree,-I+1)[1];L=Fs(L,1,j)}return{...A,sizeTree:L,...o4(A.offsetTree,0,L,k)}}else{const L=wp(A.sizeTree).reduce((N,{k:H,v:G})=>Fs(N,Math.max(0,H+I),G),Og());return{...A,sizeTree:L,...o4(A.offsetTree,0,L,k)}}})),y),{data:p,totalCount:r,sizeRanges:n,groupIndices:c,defaultItemSize:f,fixedItemSize:u,unshiftWith:o,shiftWith:s,shiftWithOffset:E,beforeUnshiftWith:x,firstItemIndex:a,gap:g,sizes:y,listRefresh:b,statefulTotalCount:i,trackItemSizes:w,itemSize:h}},kr(kf,qU),{singleton:!0}),O9e=typeof document<"u"&&"scrollBehavior"in document.documentElement.style;function poe(e){const t=typeof e=="number"?{index:e}:e;return t.align||(t.align="start"),(!t.behavior||!O9e)&&(t.behavior="auto"),t.offset||(t.offset=0),t}const i_=Wn(([{sizes:e,totalCount:t,listRefresh:n,gap:r},{scrollingInProgress:i,viewportHeight:o,scrollTo:s,smoothScrollTargetReached:a,headerHeight:c,footerHeight:u,fixedHeaderHeight:f,fixedFooterHeight:h},{log:p}])=>{const g=Sn(),v=tt(0);let y=null,S=null,w=null;function b(){y&&(y(),y=null),w&&(w(),w=null),S&&(clearTimeout(S),S=null),rn(i,!1)}return Et(Oe(g,un(e,o,t,v,c,u,p),un(r,f,h),ut(([[x,E,I,A,k,O,L,N],H,G,z])=>{const D=poe(x),{align:F,behavior:j,offset:V}=D,W=A-1,K=foe(D,E,W);let X=lw(K,E.offsetTree,H)+O;F==="end"?(X+=G+Pl(E.sizeTree,K)[1]-I+z,K===W&&(X+=L)):F==="center"?X+=(G+Pl(E.sizeTree,K)[1]-I+z)/2:X-=k,V&&(X+=V);const Q=ie=>{b(),ie?(N("retrying to scroll to",{location:x},Qs.DEBUG),rn(g,x)):N("list did not change, scroll successful",{},Qs.DEBUG)};if(b(),j==="smooth"){let ie=!1;w=qn(n,ce=>{ie=ie||ce}),y=qu(a,()=>{Q(ie)})}else y=qu(Oe(n,M9e(150)),Q);return S=setTimeout(()=>{b()},1200),rn(i,!0),N("scrolling from index to",{index:K,top:X,behavior:j},Qs.DEBUG),{top:X,behavior:j}})),s),{scrollToIndex:g,topListHeight:v}},kr(wc,Wo,kf),{singleton:!0});function M9e(e){return t=>{const n=setTimeout(()=>{t(!1)},e);return r=>{r&&(t(!0),clearTimeout(n))}}}const cw="up",r1="down",D9e="none",L9e={atBottom:!1,notAtBottomBecause:"NOT_SHOWING_LAST_ITEM",state:{offsetBottom:0,scrollTop:0,viewportHeight:0,scrollHeight:0}},N9e=0,o_=Wn(([{scrollContainerState:e,scrollTop:t,viewportHeight:n,headerHeight:r,footerHeight:i,scrollBy:o}])=>{const s=tt(!1),a=tt(!0),c=Sn(),u=Sn(),f=tt(4),h=tt(N9e),p=Fo(Oe(zq(Oe(Wt(t),mv(1),Su(!0)),Oe(Wt(t),mv(1),Su(!1),Fq(100))),Sr()),!1),g=Fo(Oe(zq(Oe(o,Su(!0)),Oe(o,Su(!1),Fq(200))),Sr()),!1);Et(Oe(Ri(Wt(t),Wt(h)),ut(([b,x])=>b<=x),Sr()),a),Et(Oe(a,Nd(50)),u);const v=Ks(Oe(Ri(e,Wt(n),Wt(r),Wt(i),Wt(f)),Zl((b,[{scrollTop:x,scrollHeight:E},I,A,k,O])=>{const L=x+I-E>-O,N={viewportHeight:I,scrollTop:x,scrollHeight:E};if(L){let G,z;return x>b.state.scrollTop?(G="SCROLLED_DOWN",z=b.state.scrollTop-x):(G="SIZE_DECREASED",z=b.state.scrollTop-x||b.scrollTopDelta),{atBottom:!0,state:N,atBottomBecause:G,scrollTopDelta:z}}let H;return N.scrollHeight>b.state.scrollHeight?H="SIZE_INCREASED":Ib&&b.atBottom===x.atBottom))),y=Fo(Oe(e,Zl((b,{scrollTop:x,scrollHeight:E,viewportHeight:I})=>{if(ioe(b.scrollHeight,E))return{scrollTop:x,scrollHeight:E,jump:0,changed:!1};{const A=E-(x+I)<1;return b.scrollTop!==x&&A?{scrollHeight:E,scrollTop:x,jump:b.scrollTop-x,changed:!0}:{scrollHeight:E,scrollTop:x,jump:0,changed:!0}}},{scrollHeight:0,jump:0,scrollTop:0,changed:!1}),Gt(b=>b.changed),ut(b=>b.jump)),0);Et(Oe(v,ut(b=>b.atBottom)),s),Et(Oe(s,Nd(50)),c);const S=tt(r1);Et(Oe(e,ut(({scrollTop:b})=>b),Sr(),Zl((b,x)=>Us(g)?{direction:b.direction,prevScrollTop:x}:{direction:xb.direction)),S),Et(Oe(e,Nd(50),Su(D9e)),S);const w=tt(0);return Et(Oe(p,Gt(b=>!b),Su(0)),w),Et(Oe(t,Nd(100),un(p),Gt(([b,x])=>!!x),Zl(([b,x],[E])=>[x,E],[0,0]),ut(([b,x])=>x-b)),w),{isScrolling:p,isAtTop:a,isAtBottom:s,atBottomState:v,atTopStateChange:u,atBottomStateChange:c,scrollDirection:S,atBottomThreshold:f,atTopThreshold:h,scrollVelocity:w,lastJumpDueToItemResize:y}},kr(Wo)),Af=Wn(([{log:e}])=>{const t=tt(!1),n=Ks(Oe(t,Gt(r=>r),Sr()));return qn(t,r=>{r&&Us(e)("props updated",{},Qs.DEBUG)}),{propsReady:t,didMount:n}},kr(kf),{singleton:!0});function YU(e,t){e==0?t():requestAnimationFrame(()=>YU(e-1,t))}function KU(e,t){const n=t-1;return typeof e=="number"?e:e.index==="LAST"?n:e.index}const s_=Wn(([{sizes:e,listRefresh:t,defaultItemSize:n},{scrollTop:r},{scrollToIndex:i},{didMount:o}])=>{const s=tt(!0),a=tt(0),c=tt(!1);return Et(Oe(o,un(a),Gt(([u,f])=>!!f),Su(!1)),s),qn(Oe(Ri(t,o),un(s,e,n,c),Gt(([[,u],f,{sizeTree:h},p,g])=>u&&(!rr(h)||WU(p))&&!f&&!g),un(a)),([,u])=>{rn(c,!0),YU(3,()=>{qu(r,()=>rn(s,!0)),rn(i,u)})}),{scrolledToInitialItem:s,initialTopMostItemIndex:a}},kr(wc,Wo,i_,Af),{singleton:!0});function Hq(e){return e?e==="smooth"?"smooth":"auto":!1}const B9e=(e,t)=>typeof e=="function"?Hq(e(t)):t&&Hq(e),$9e=Wn(([{totalCount:e,listRefresh:t},{isAtBottom:n,atBottomState:r},{scrollToIndex:i},{scrolledToInitialItem:o},{propsReady:s,didMount:a},{log:c},{scrollingInProgress:u}])=>{const f=tt(!1),h=Sn();let p=null;function g(y){rn(i,{index:"LAST",align:"end",behavior:y})}qn(Oe(Ri(Oe(Wt(e),mv(1)),a),un(Wt(f),n,o,u),ut(([[y,S],w,b,x,E])=>{let I=S&&x,A="auto";return I&&(A=B9e(w,b||E),I=I&&!!A),{totalCount:y,shouldFollow:I,followOutputBehavior:A}}),Gt(({shouldFollow:y})=>y)),({totalCount:y,followOutputBehavior:S})=>{p&&(p(),p=null),p=qu(t,()=>{Us(c)("following output to ",{totalCount:y},Qs.DEBUG),g(S),p=null})});function v(y){const S=qu(r,w=>{y&&!w.atBottom&&w.notAtBottomBecause==="SIZE_INCREASED"&&!p&&(Us(c)("scrolling to bottom due to increased size",{},Qs.DEBUG),g("auto"))});setTimeout(S,100)}return qn(Oe(Ri(Wt(f),e,s),Gt(([y,,S])=>y&&S),Zl(({value:y},[,S])=>({refreshed:y===S,value:S}),{refreshed:!1,value:0}),Gt(({refreshed:y})=>y),un(f,e)),([,y])=>{v(y!==!1)}),qn(h,()=>{v(Us(f)!==!1)}),qn(Ri(Wt(f),r),([y,S])=>{y&&!S.atBottom&&S.notAtBottomBecause==="VIEWPORT_HEIGHT_DECREASING"&&g("auto")}),{followOutput:f,autoscrollToBottom:h}},kr(wc,o_,i_,s_,Af,kf,Wo));function F9e(e){return e.reduce((t,n)=>(t.groupIndices.push(t.totalCount),t.totalCount+=n+1,t),{totalCount:0,groupIndices:[]})}const moe=Wn(([{totalCount:e,groupIndices:t,sizes:n},{scrollTop:r,headerHeight:i}])=>{const o=Sn(),s=Sn(),a=Ks(Oe(o,ut(F9e)));return Et(Oe(a,ut(c=>c.totalCount)),e),Et(Oe(a,ut(c=>c.groupIndices)),t),Et(Oe(Ri(r,n,i),Gt(([c,u])=>JA(u)),ut(([c,u,f])=>Pl(u.groupOffsetTree,Math.max(c-f,0),"v")[0]),Sr(),ut(c=>[c])),s),{groupCounts:o,topItemsIndexes:s}},kr(wc,Wo));function uw(e,t){return!!(e&&e[0]===t[0]&&e[1]===t[1])}function goe(e,t){return!!(e&&e.startIndex===t.startIndex&&e.endIndex===t.endIndex)}const vT="top",yT="bottom",Wq="none";function Gq(e,t,n){return typeof e=="number"?n===cw&&t===vT||n===r1&&t===yT?e:0:n===cw?t===vT?e.main:e.reverse:t===yT?e.main:e.reverse}function Vq(e,t){return typeof e=="number"?e:e[t]||0}const QU=Wn(([{scrollTop:e,viewportHeight:t,deviation:n,headerHeight:r,fixedHeaderHeight:i}])=>{const o=Sn(),s=tt(0),a=tt(0),c=tt(0),u=Fo(Oe(Ri(Wt(e),Wt(t),Wt(r),Wt(o,uw),Wt(c),Wt(s),Wt(i),Wt(n),Wt(a)),ut(([f,h,p,[g,v],y,S,w,b,x])=>{const E=f-b,I=S+w,A=Math.max(p-E,0);let k=Wq;const O=Vq(x,vT),L=Vq(x,yT);return g-=b,g+=p+w,v+=p+w,v-=b,g>f+I-O&&(k=cw),vf!=null),Sr(uw)),[0,0]);return{listBoundary:o,overscan:c,topListHeight:s,increaseViewportBy:a,visibleRange:u}},kr(Wo),{singleton:!0});function z9e(e,t,n){if(JA(t)){const r=hoe(e,t);return[{index:Pl(t.groupOffsetTree,r)[0],size:0,offset:0},{index:r,size:0,offset:0,data:n&&n[0]}]}return[{index:e,size:0,offset:0,data:n&&n[0]}]}const q$={items:[],topItems:[],offsetTop:0,offsetBottom:0,top:0,bottom:0,topListHeight:0,totalCount:0,firstItemIndex:0};function qq(e,t,n){if(e.length===0)return[];if(!JA(t))return e.map(u=>({...u,index:u.index+n,originalIndex:u.index}));const r=e[0].index,i=e[e.length-1].index,o=[],s=QA(t.groupOffsetTree,r,i);let a,c=0;for(const u of e){(!a||a.end0){u=e[0].offset;const y=e[e.length-1];f=y.offset+y.size}const h=n-c,p=a+h*s+(h-1)*r,g=u,v=p-f;return{items:qq(e,i,o),topItems:qq(t,i,o),topListHeight:t.reduce((y,S)=>S.size+y,0),offsetTop:u,offsetBottom:v,top:g,bottom:f,totalCount:n,firstItemIndex:o}}function voe(e,t,n,r,i,o){let s=0;if(n.groupIndices.length>0)for(const f of n.groupIndices){if(f-s>=e)break;s++}const a=e+s,c=KU(t,a),u=Array.from({length:a}).map((f,h)=>({index:h+c,size:0,offset:0,data:o[h+c]}));return zE(u,[],a,i,n,r)}const gm=Wn(([{sizes:e,totalCount:t,data:n,firstItemIndex:r,gap:i},o,{visibleRange:s,listBoundary:a,topListHeight:c},{scrolledToInitialItem:u,initialTopMostItemIndex:f},{topListHeight:h},p,{didMount:g},{recalcInProgress:v}])=>{const y=tt([]),S=tt(0),w=Sn();Et(o.topItemsIndexes,y);const b=Fo(Oe(Ri(g,v,Wt(s,uw),Wt(t),Wt(e),Wt(f),u,Wt(y),Wt(r),Wt(i),n),Gt(([A,k,,O,,,,,,,L])=>{const N=L&&L.length!==O;return A&&!k&&!N}),ut(([,,[A,k],O,L,N,H,G,z,D,F])=>{const j=L,{sizeTree:V,offsetTree:W}=j,K=Us(S);if(O===0)return{...q$,totalCount:O};if(A===0&&k===0)return K===0?{...q$,totalCount:O}:voe(K,N,L,z,D,F||[]);if(rr(V))return K>0?null:zE(z9e(KU(N,O),j,F),[],O,D,j,z);const X=[];if(G.length>0){const se=G[0],J=G[G.length-1];let ae=0;for(const le of QA(V,se,J)){const he=le.value,pe=Math.max(le.start,se),ve=Math.min(le.end,J);for(let ye=pe;ye<=ve;ye++)X.push({index:ye,size:he,offset:ae,data:F&&F[ye]}),ae+=he}}if(!H)return zE([],X,O,D,j,z);const Q=G.length>0?G[G.length-1]+1:0,ie=k9e(W,A,k,Q);if(ie.length===0)return null;const ce=O-1,ue=KA([],se=>{for(const J of ie){const ae=J.value;let le=ae.offset,he=J.start;const pe=ae.size;if(ae.offset=k);ye++)se.push({index:ye,size:pe,offset:le,data:F&&F[ye]}),le+=pe+D}});return zE(ue,X,O,D,j,z)}),Gt(A=>A!==null),Sr()),q$);Et(Oe(n,Gt(WU),ut(A=>A==null?void 0:A.length)),t),Et(Oe(b,ut(A=>A.topListHeight)),h),Et(h,c),Et(Oe(b,ut(A=>[A.top,A.bottom])),a),Et(Oe(b,ut(A=>A.items)),w);const x=Ks(Oe(b,Gt(({items:A})=>A.length>0),un(t,n),Gt(([{items:A},k])=>A[A.length-1].originalIndex===k-1),ut(([,A,k])=>[A-1,k]),Sr(uw),ut(([A])=>A))),E=Ks(Oe(b,Nd(200),Gt(({items:A,topItems:k})=>A.length>0&&A[0].originalIndex===k.length),ut(({items:A})=>A[0].index),Sr())),I=Ks(Oe(b,Gt(({items:A})=>A.length>0),ut(({items:A})=>{let k=0,O=A.length-1;for(;A[k].type==="group"&&kk;)O--;return{startIndex:A[k].index,endIndex:A[O].index}}),Sr(goe)));return{listState:b,topItemsIndexes:y,endReached:x,startReached:E,rangeChanged:I,itemsRendered:w,initialItemCount:S,...p}},kr(wc,moe,QU,s_,i_,o_,Af,qU),{singleton:!0}),j9e=Wn(([{sizes:e,firstItemIndex:t,data:n,gap:r},{initialTopMostItemIndex:i},{initialItemCount:o,listState:s},{didMount:a}])=>(Et(Oe(a,un(o),Gt(([,c])=>c!==0),un(i,e,t,r,n),ut(([[,c],u,f,h,p,g=[]])=>voe(c,u,f,h,p,g))),s),{}),kr(wc,s_,gm,Af),{singleton:!0}),yoe=Wn(([{scrollVelocity:e}])=>{const t=tt(!1),n=Sn(),r=tt(!1);return Et(Oe(e,un(r,t,n),Gt(([i,o])=>!!o),ut(([i,o,s,a])=>{const{exit:c,enter:u}=o;if(s){if(c(i,a))return!1}else if(u(i,a))return!0;return s}),Sr()),t),qn(Oe(Ri(t,e,n),un(r)),([[i,o,s],a])=>i&&a&&a.change&&a.change(o,s)),{isSeeking:t,scrollSeekConfiguration:r,scrollVelocity:e,scrollSeekRangeChanged:n}},kr(o_),{singleton:!0}),U9e=Wn(([{topItemsIndexes:e}])=>{const t=tt(0);return Et(Oe(t,Gt(n=>n>0),ut(n=>Array.from({length:n}).map((r,i)=>i))),e),{topItemCount:t}},kr(gm)),boe=Wn(([{footerHeight:e,headerHeight:t,fixedHeaderHeight:n,fixedFooterHeight:r},{listState:i}])=>{const o=Sn(),s=Fo(Oe(Ri(e,r,t,n,i),ut(([a,c,u,f,h])=>a+c+u+f+h.offsetBottom+h.bottom)),0);return Et(Wt(s),o),{totalListHeight:s,totalListHeightChanged:o}},kr(Wo,gm),{singleton:!0});function xoe(e){let t=!1,n;return()=>(t||(t=!0,n=e()),n)}const H9e=xoe(()=>/iP(ad|od|hone)/i.test(navigator.userAgent)&&/WebKit/i.test(navigator.userAgent)),W9e=Wn(([{scrollBy:e,scrollTop:t,deviation:n,scrollingInProgress:r},{isScrolling:i,isAtBottom:o,scrollDirection:s,lastJumpDueToItemResize:a},{listState:c},{beforeUnshiftWith:u,shiftWithOffset:f,sizes:h,gap:p},{log:g},{recalcInProgress:v}])=>{const y=Ks(Oe(c,un(a),Zl(([,w,b,x],[{items:E,totalCount:I,bottom:A,offsetBottom:k},O])=>{const L=A+k;let N=0;return b===I&&w.length>0&&E.length>0&&(E[0].originalIndex===0&&w[0].originalIndex===0||(N=L-x,N!==0&&(N+=O))),[N,E,I,L]},[0,[],0,0]),Gt(([w])=>w!==0),un(t,s,r,o,g,v),Gt(([,w,b,x,,,E])=>!E&&!x&&w!==0&&b===cw),ut(([[w],,,,,b])=>(b("Upward scrolling compensation",{amount:w},Qs.DEBUG),w))));function S(w){w>0?(rn(e,{top:-w,behavior:"auto"}),rn(n,0)):(rn(n,0),rn(e,{top:-w,behavior:"auto"}))}return qn(Oe(y,un(n,i)),([w,b,x])=>{x&&H9e()?rn(n,b-w):S(-w)}),qn(Oe(Ri(Fo(i,!1),n,v),Gt(([w,b,x])=>!w&&!x&&b!==0),ut(([w,b])=>b),Nd(1)),S),Et(Oe(f,ut(w=>({top:-w}))),e),qn(Oe(u,un(h,p),ut(([w,{lastSize:b,groupIndices:x,sizeTree:E},I])=>{function A(k){return k*(b+I)}if(x.length===0)return A(w);{let k=0;const O=aw(E,0);let L=0,N=0;for(;Lw&&(k-=O,H=w-L+1),L+=H,k+=A(H),N++}return k}})),w=>{rn(n,w),requestAnimationFrame(()=>{rn(e,{top:w}),requestAnimationFrame(()=>{rn(n,0),rn(v,!1)})})}),{deviation:n}},kr(Wo,o_,gm,wc,kf,qU)),G9e=Wn(([{didMount:e},{scrollTo:t},{listState:n}])=>{const r=tt(0);return qn(Oe(e,un(r),Gt(([,i])=>i!==0),ut(([,i])=>({top:i}))),i=>{qu(Oe(n,mv(1),Gt(o=>o.items.length>1)),()=>{requestAnimationFrame(()=>{rn(t,i)})})}),{initialScrollTop:r}},kr(Af,Wo,gm),{singleton:!0}),V9e=Wn(([{viewportHeight:e},{totalListHeight:t}])=>{const n=tt(!1),r=Fo(Oe(Ri(n,e,t),Gt(([i])=>i),ut(([,i,o])=>Math.max(0,i-o)),Nd(0),Sr()),0);return{alignToBottom:n,paddingTopAddition:r}},kr(Wo,boe),{singleton:!0}),JU=Wn(([{scrollTo:e,scrollContainerState:t}])=>{const n=Sn(),r=Sn(),i=Sn(),o=tt(!1),s=tt(void 0);return Et(Oe(Ri(n,r),ut(([{viewportHeight:a,scrollTop:c,scrollHeight:u},{offsetTop:f}])=>({scrollTop:Math.max(0,c-f),scrollHeight:u,viewportHeight:a}))),t),Et(Oe(e,un(r),ut(([a,{offsetTop:c}])=>({...a,top:a.top+c}))),i),{useWindowScroll:o,customScrollParent:s,windowScrollContainerState:n,windowViewportRect:r,windowScrollTo:i}},kr(Wo)),q9e=({itemTop:e,itemBottom:t,viewportTop:n,viewportBottom:r,locationParams:{behavior:i,align:o,...s}})=>er?{...s,behavior:i,align:o??"end"}:null,X9e=Wn(([{sizes:e,totalCount:t,gap:n},{scrollTop:r,viewportHeight:i,headerHeight:o,fixedHeaderHeight:s,fixedFooterHeight:a,scrollingInProgress:c},{scrollToIndex:u}])=>{const f=Sn();return Et(Oe(f,un(e,i,t,o,s,a,r),un(n),ut(([[h,p,g,v,y,S,w,b],x])=>{const{done:E,behavior:I,align:A,calculateViewLocation:k=q9e,...O}=h,L=foe(h,p,v-1),N=lw(L,p.offsetTree,x)+y+S,H=N+Pl(p.sizeTree,L)[1],G=b+S,z=b+g-w,D=k({itemTop:N,itemBottom:H,viewportTop:G,viewportBottom:z,locationParams:{behavior:I,align:A,...O}});return D?E&&qu(Oe(c,Gt(F=>F===!1),mv(Us(c)?1:2)),E):E&&E(),D}),Gt(h=>h!==null)),u),{scrollIntoView:f}},kr(wc,Wo,i_,gm,kf),{singleton:!0}),Y9e=Wn(([{sizes:e,sizeRanges:t},{scrollTop:n},{initialTopMostItemIndex:r},{didMount:i},{useWindowScroll:o,windowScrollContainerState:s,windowViewportRect:a}])=>{const c=Sn(),u=tt(void 0),f=tt(null),h=tt(null);return Et(s,f),Et(a,h),qn(Oe(c,un(e,n,o,f,h)),([p,g,v,y,S,w])=>{const b=R9e(g.sizeTree);y&&S!==null&&w!==null&&(v=S.scrollTop-w.offsetTop),p({ranges:b,scrollTop:v})}),Et(Oe(u,Gt(WU),ut(K9e)),r),Et(Oe(i,un(u),Gt(([,p])=>p!==void 0),Sr(),ut(([,p])=>p.ranges)),t),{getState:c,restoreStateFrom:u}},kr(wc,Wo,s_,Af,JU));function K9e(e){return{offset:e.scrollTop,index:0,align:"start"}}const Q9e=Wn(([e,t,n,r,i,o,s,a,c,u])=>({...e,...t,...n,...r,...i,...o,...s,...a,...c,...u}),kr(QU,j9e,Af,yoe,boe,G9e,V9e,JU,X9e,kf)),J9e=Wn(([{totalCount:e,sizeRanges:t,fixedItemSize:n,defaultItemSize:r,trackItemSizes:i,itemSize:o,data:s,firstItemIndex:a,groupIndices:c,statefulTotalCount:u,gap:f,sizes:h},{initialTopMostItemIndex:p,scrolledToInitialItem:g},v,y,S,{listState:w,topItemsIndexes:b,...x},{scrollToIndex:E},I,{topItemCount:A},{groupCounts:k},O])=>(Et(x.rangeChanged,O.scrollSeekRangeChanged),Et(Oe(O.windowViewportRect,ut(L=>L.visibleHeight)),v.viewportHeight),{totalCount:e,data:s,firstItemIndex:a,sizeRanges:t,initialTopMostItemIndex:p,scrolledToInitialItem:g,topItemsIndexes:b,topItemCount:A,groupCounts:k,fixedItemHeight:n,defaultItemHeight:r,gap:f,...S,statefulTotalCount:u,listState:w,scrollToIndex:E,trackItemSizes:i,itemSize:o,groupIndices:c,...x,...O,...v,sizes:h,...y}),kr(wc,s_,Wo,Y9e,$9e,gm,i_,W9e,U9e,moe,Q9e)),X$="-webkit-sticky",Xq="sticky",woe=xoe(()=>{if(typeof document>"u")return Xq;const e=document.createElement("div");return e.style.position=X$,e.style.position===X$?X$:Xq});function _oe(e,t){const n=de.useRef(null),r=de.useCallback(a=>{if(a===null||!a.offsetParent)return;const c=a.getBoundingClientRect(),u=c.width;let f,h;if(t){const p=t.getBoundingClientRect(),g=c.top-p.top;f=p.height-Math.max(0,g),h=g+t.scrollTop}else f=window.innerHeight-Math.max(0,c.top),h=c.top+window.pageYOffset;n.current={offsetTop:h,visibleHeight:f,visibleWidth:u},e(n.current)},[e,t]),{callbackRef:i,ref:o}=VU(r),s=de.useCallback(()=>{r(o.current)},[r,o]);return de.useEffect(()=>{if(t){t.addEventListener("scroll",s);const a=new ResizeObserver(s);return a.observe(t),()=>{t.removeEventListener("scroll",s),a.unobserve(t)}}else return window.addEventListener("scroll",s),window.addEventListener("resize",s),()=>{window.removeEventListener("scroll",s),window.removeEventListener("resize",s)}},[s,t]),i}const Soe=de.createContext(void 0),Eoe=de.createContext(void 0);function Coe(e){return e}const Z9e=Wn(()=>{const e=tt(c=>`Item ${c}`),t=tt(null),n=tt(c=>`Group ${c}`),r=tt({}),i=tt(Coe),o=tt("div"),s=tt(Uv),a=(c,u=null)=>Fo(Oe(r,ut(f=>f[c]),Sr()),u);return{context:t,itemContent:e,groupContent:n,components:r,computeItemKey:i,headerFooterTag:o,scrollerRef:s,FooterComponent:a("Footer"),HeaderComponent:a("Header"),TopItemListComponent:a("TopItemList"),ListComponent:a("List","div"),ItemComponent:a("Item","div"),GroupComponent:a("Group","div"),ScrollerComponent:a("Scroller","div"),EmptyPlaceholder:a("EmptyPlaceholder"),ScrollSeekPlaceholder:a("ScrollSeekPlaceholder")}}),e7e=Wn(([e,t])=>({...e,...t}),kr(J9e,Z9e)),t7e=({height:e})=>de.createElement("div",{style:{height:e}}),n7e={position:woe(),zIndex:1,overflowAnchor:"none"},r7e={overflowAnchor:"none"},Yq=de.memo(function({showTopList:t=!1}){const n=bn("listState"),r=Sa("sizeRanges"),i=bn("useWindowScroll"),o=bn("customScrollParent"),s=Sa("windowScrollContainerState"),a=Sa("scrollContainerState"),c=o||i?s:a,u=bn("itemContent"),f=bn("context"),h=bn("groupContent"),p=bn("trackItemSizes"),g=bn("itemSize"),v=bn("log"),y=Sa("gap"),{callbackRef:S}=v9e(r,g,p,t?Uv:c,v,y,o),[w,b]=de.useState(0);ZU("deviation",D=>{w!==D&&b(D)});const x=bn("EmptyPlaceholder"),E=bn("ScrollSeekPlaceholder")||t7e,I=bn("ListComponent"),A=bn("ItemComponent"),k=bn("GroupComponent"),O=bn("computeItemKey"),L=bn("isSeeking"),N=bn("groupIndices").length>0,H=bn("paddingTopAddition"),G=bn("scrolledToInitialItem"),z=t?{}:{boxSizing:"border-box",paddingTop:n.offsetTop+H,paddingBottom:n.offsetBottom,marginTop:w,...G?{}:{visibility:"hidden"}};return!t&&n.totalCount===0&&x?de.createElement(x,Zo(x,f)):de.createElement(I,{...Zo(I,f),ref:S,style:z,"data-test-id":t?"virtuoso-top-item-list":"virtuoso-item-list"},(t?n.topItems:n.items).map(D=>{const F=D.originalIndex,j=O(F+n.firstItemIndex,D.data,f);return L?de.createElement(E,{...Zo(E,f),key:j,index:D.index,height:D.size,type:D.type||"item",...D.type==="group"?{}:{groupIndex:D.groupIndex}}):D.type==="group"?de.createElement(k,{...Zo(k,f),key:j,"data-index":F,"data-known-size":D.size,"data-item-index":D.index,style:n7e},h(D.index,f)):de.createElement(A,{...Zo(A,f),key:j,"data-index":F,"data-known-size":D.size,"data-item-index":D.index,"data-item-group-index":D.groupIndex,item:D.data,style:r7e},N?u(D.index,D.groupIndex,D.data,f):u(D.index,D.data,f))}))}),i7e={height:"100%",outline:"none",overflowY:"auto",position:"relative",WebkitOverflowScrolling:"touch"},ZA={width:"100%",height:"100%",position:"absolute",top:0},o7e={width:"100%",position:woe(),top:0,zIndex:1};function Zo(e,t){if(typeof e!="string")return{context:t}}const s7e=de.memo(function(){const t=bn("HeaderComponent"),n=Sa("headerHeight"),r=bn("headerFooterTag"),i=mm(s=>n(ff(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),a7e=de.memo(function(){const t=bn("FooterComponent"),n=Sa("footerHeight"),r=bn("headerFooterTag"),i=mm(s=>n(ff(s,"height"))),o=bn("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null});function Toe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("scrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("scrollerRef"),p=n("context"),{scrollerRef:g,scrollByCallback:v,scrollToCallback:y}=ooe(c,f,u,h);return t("scrollTo",y),t("scrollBy",v),de.createElement(u,{ref:g,style:{...i7e,...o},"data-test-id":"virtuoso-scroller","data-virtuoso-scroller":!0,tabIndex:0,...a,...Zo(u,p)},s)})}function koe({usePublisher:e,useEmitter:t,useEmitterValue:n}){return de.memo(function({style:o,children:s,...a}){const c=e("windowScrollContainerState"),u=n("ScrollerComponent"),f=e("smoothScrollTargetReached"),h=n("totalListHeight"),p=n("deviation"),g=n("customScrollParent"),v=n("context"),{scrollerRef:y,scrollByCallback:S,scrollToCallback:w}=ooe(c,f,u,Uv,g);return p9e(()=>(y.current=g||window,()=>{y.current=null}),[y,g]),t("windowScrollTo",w),t("scrollBy",S),de.createElement(u,{style:{position:"relative",...o,...h!==0?{height:h+p}:{}},"data-virtuoso-scroller":!0,...a,...Zo(u,v)},s)})}const l7e=({children:e})=>{const t=de.useContext(Soe),n=Sa("viewportHeight"),r=Sa("fixedItemHeight"),i=mm(eoe(n,o=>ff(o,"height")));return de.useEffect(()=>{t&&(n(t.viewportHeight),r(t.itemHeight))},[t,n,r]),de.createElement("div",{style:ZA,ref:i,"data-viewport-type":"element"},e)},c7e=({children:e})=>{const t=de.useContext(Soe),n=Sa("windowViewportRect"),r=Sa("fixedItemHeight"),i=bn("customScrollParent"),o=_oe(n,i);return de.useEffect(()=>{t&&(r(t.itemHeight),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:100}))},[t,n,r]),de.createElement("div",{ref:o,style:ZA,"data-viewport-type":"window"},e)},u7e=({children:e})=>{const t=bn("TopItemListComponent"),n=bn("headerHeight"),r={...o7e,marginTop:`${n}px`},i=bn("context");return de.createElement(t||"div",{style:r,context:i},e)},d7e=de.memo(function(t){const n=bn("useWindowScroll"),r=bn("topItemsIndexes").length>0,i=bn("customScrollParent"),o=i||n?p7e:h7e,s=i||n?c7e:l7e;return de.createElement(o,{...t},r&&de.createElement(u7e,null,de.createElement(Yq,{showTopList:!0})),de.createElement(s,null,de.createElement(s7e,null),de.createElement(Yq,null),de.createElement(a7e,null)))}),{Component:f7e,usePublisher:Sa,useEmitterValue:bn,useEmitter:ZU}=roe(e7e,{required:{},optional:{restoreStateFrom:"restoreStateFrom",context:"context",followOutput:"followOutput",itemContent:"itemContent",groupContent:"groupContent",overscan:"overscan",increaseViewportBy:"increaseViewportBy",totalCount:"totalCount",groupCounts:"groupCounts",topItemCount:"topItemCount",firstItemIndex:"firstItemIndex",initialTopMostItemIndex:"initialTopMostItemIndex",components:"components",atBottomThreshold:"atBottomThreshold",atTopThreshold:"atTopThreshold",computeItemKey:"computeItemKey",defaultItemHeight:"defaultItemHeight",fixedItemHeight:"fixedItemHeight",itemSize:"itemSize",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",data:"data",initialItemCount:"initialItemCount",initialScrollTop:"initialScrollTop",alignToBottom:"alignToBottom",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel"},methods:{scrollToIndex:"scrollToIndex",scrollIntoView:"scrollIntoView",scrollTo:"scrollTo",scrollBy:"scrollBy",autoscrollToBottom:"autoscrollToBottom",getState:"getState"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",totalListHeightChanged:"totalListHeightChanged",itemsRendered:"itemsRendered",groupIndices:"groupIndices"}},d7e),h7e=Toe({usePublisher:Sa,useEmitterValue:bn,useEmitter:ZU}),p7e=koe({usePublisher:Sa,useEmitterValue:bn,useEmitter:ZU}),m7e=f7e,Kq={items:[],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},g7e={items:[{index:0}],offsetBottom:0,offsetTop:0,top:0,bottom:0,itemHeight:0,itemWidth:0},{round:Qq,ceil:Jq,floor:bT,min:Y$,max:i1}=Math;function v7e(e){return{...g7e,items:e}}function Zq(e,t,n){return Array.from({length:t-e+1}).map((r,i)=>{const o=n===null?null:n[i+e];return{index:i+e,data:o}})}function y7e(e,t){return e&&e.column===t.column&&e.row===t.row}function XS(e,t){return e&&e.width===t.width&&e.height===t.height}const b7e=Wn(([{overscan:e,visibleRange:t,listBoundary:n},{scrollTop:r,viewportHeight:i,scrollBy:o,scrollTo:s,smoothScrollTargetReached:a,scrollContainerState:c,footerHeight:u,headerHeight:f},h,p,{propsReady:g,didMount:v},{windowViewportRect:y,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,windowScrollTo:x},E])=>{const I=tt(0),A=tt(0),k=tt(Kq),O=tt({height:0,width:0}),L=tt({height:0,width:0}),N=Sn(),H=Sn(),G=tt(0),z=tt(null),D=tt({row:0,column:0}),F=Sn(),j=Sn(),V=tt(!1),W=tt(0),K=tt(!0),X=tt(!1);qn(Oe(v,un(W),Gt(([J,ae])=>!!ae)),()=>{rn(K,!1),rn(A,0)}),qn(Oe(Ri(v,K,L,O,W,X),Gt(([J,ae,le,he,,pe])=>J&&!ae&&le.height!==0&&he.height!==0&&!pe)),([,,,,J])=>{rn(X,!0),YU(1,()=>{rn(N,J)}),qu(Oe(r),()=>{rn(n,[0,0]),rn(K,!0)})}),Et(Oe(j,Gt(J=>J!=null&&J.scrollTop>0),Su(0)),A),qn(Oe(v,un(j),Gt(([,J])=>J!=null)),([,J])=>{J&&(rn(O,J.viewport),rn(L,J==null?void 0:J.item),rn(D,J.gap),J.scrollTop>0&&(rn(V,!0),qu(Oe(r,mv(1)),ae=>{rn(V,!1)}),rn(s,{top:J.scrollTop})))}),Et(Oe(O,ut(({height:J})=>J)),i),Et(Oe(Ri(Wt(O,XS),Wt(L,XS),Wt(D,(J,ae)=>J&&J.column===ae.column&&J.row===ae.row),Wt(r)),ut(([J,ae,le,he])=>({viewport:J,item:ae,gap:le,scrollTop:he}))),F),Et(Oe(Ri(Wt(I),t,Wt(D,y7e),Wt(L,XS),Wt(O,XS),Wt(z),Wt(A),Wt(V),Wt(K),Wt(W)),Gt(([,,,,,,,J])=>!J),ut(([J,[ae,le],he,pe,ve,ye,xe,,me,be])=>{const{row:Ze,column:Xe}=he,{height:ct,width:Bt}=pe,{width:Pe}=ve;if(xe===0&&(J===0||Pe===0))return Kq;if(Bt===0){const Pt=KU(be,J),dt=Pt===0?Math.max(xe-1,0):Pt;return v7e(Zq(Pt,dt,ye))}const ze=Aoe(Pe,Bt,Xe);let st,gt;me?ae===0&&le===0&&xe>0?(st=0,gt=xe-1):(st=ze*bT((ae+Ze)/(ct+Ze)),gt=ze*Jq((le+Ze)/(ct+Ze))-1,gt=Y$(J-1,i1(gt,ze-1)),st=Y$(gt,i1(0,st))):(st=0,gt=-1);const vt=Zq(st,gt,ye),{top:_e,bottom:je}=eX(ve,he,pe,vt),Ke=Jq(J/ze),Be=Ke*ct+(Ke-1)*Ze-je;return{items:vt,offsetTop:_e,offsetBottom:Be,top:_e,bottom:je,itemHeight:ct,itemWidth:Bt}})),k),Et(Oe(z,Gt(J=>J!==null),ut(J=>J.length)),I),Et(Oe(Ri(O,L,k,D),Gt(([J,ae,{items:le}])=>le.length>0&&ae.height!==0&&J.height!==0),ut(([J,ae,{items:le},he])=>{const{top:pe,bottom:ve}=eX(J,he,ae,le);return[pe,ve]}),Sr(uw)),n);const Q=tt(!1);Et(Oe(r,un(Q),ut(([J,ae])=>ae||J!==0)),Q);const ie=Ks(Oe(Wt(k),Gt(({items:J})=>J.length>0),un(I,Q),Gt(([{items:J},ae,le])=>le&&J[J.length-1].index===ae-1),ut(([,J])=>J-1),Sr())),ce=Ks(Oe(Wt(k),Gt(({items:J})=>J.length>0&&J[0].index===0),Su(0),Sr())),ue=Ks(Oe(Wt(k),un(V),Gt(([{items:J},ae])=>J.length>0&&!ae),ut(([{items:J}])=>({startIndex:J[0].index,endIndex:J[J.length-1].index})),Sr(goe),Nd(0)));Et(ue,p.scrollSeekRangeChanged),Et(Oe(N,un(O,L,I,D),ut(([J,ae,le,he,pe])=>{const ve=poe(J),{align:ye,behavior:xe,offset:me}=ve;let be=ve.index;be==="LAST"&&(be=he-1),be=i1(0,be,Y$(he-1,be));let Ze=s4(ae,pe,le,be);return ye==="end"?Ze=Qq(Ze-ae.height+le.height):ye==="center"&&(Ze=Qq(Ze-ae.height/2+le.height/2)),me&&(Ze+=me),{top:Ze,behavior:xe}})),s);const se=Fo(Oe(k,ut(J=>J.offsetBottom+J.bottom)),0);return Et(Oe(y,ut(J=>({width:J.visibleWidth,height:J.visibleHeight}))),O),{data:z,totalCount:I,viewportDimensions:O,itemDimensions:L,scrollTop:r,scrollHeight:H,overscan:e,scrollBy:o,scrollTo:s,scrollToIndex:N,smoothScrollTargetReached:a,windowViewportRect:y,windowScrollTo:x,useWindowScroll:S,customScrollParent:w,windowScrollContainerState:b,deviation:G,scrollContainerState:c,footerHeight:u,headerHeight:f,initialItemCount:A,gap:D,restoreStateFrom:j,...p,initialTopMostItemIndex:W,gridState:k,totalListHeight:se,...h,startReached:ce,endReached:ie,rangeChanged:ue,stateChanged:F,propsReady:g,stateRestoreInProgress:V,...E}},kr(QU,Wo,o_,yoe,Af,JU,kf));function eX(e,t,n,r){const{height:i}=n;if(i===void 0||r.length===0)return{top:0,bottom:0};const o=s4(e,t,n,r[0].index),s=s4(e,t,n,r[r.length-1].index)+i;return{top:o,bottom:s}}function s4(e,t,n,r){const i=Aoe(e.width,n.width,t.column),o=bT(r/i),s=o*n.height+i1(0,o-1)*t.row;return s>0?s+t.row:s}function Aoe(e,t,n){return i1(1,bT((e+n)/(bT(t)+n)))}const x7e=Wn(()=>{const e=tt(u=>`Item ${u}`),t=tt({}),n=tt(null),r=tt("virtuoso-grid-item"),i=tt("virtuoso-grid-list"),o=tt(Coe),s=tt("div"),a=tt(Uv),c=(u,f=null)=>Fo(Oe(t,ut(h=>h[u]),Sr()),f);return{context:n,itemContent:e,components:t,computeItemKey:o,itemClassName:r,listClassName:i,headerFooterTag:s,scrollerRef:a,FooterComponent:c("Footer"),HeaderComponent:c("Header"),ListComponent:c("List","div"),ItemComponent:c("Item","div"),ScrollerComponent:c("Scroller","div"),ScrollSeekPlaceholder:c("ScrollSeekPlaceholder","div")}}),w7e=Wn(([e,t])=>({...e,...t}),kr(b7e,x7e)),_7e=de.memo(function(){const t=Dr("gridState"),n=Dr("listClassName"),r=Dr("itemClassName"),i=Dr("itemContent"),o=Dr("computeItemKey"),s=Dr("isSeeking"),a=kl("scrollHeight"),c=Dr("ItemComponent"),u=Dr("ListComponent"),f=Dr("ScrollSeekPlaceholder"),h=Dr("context"),p=kl("itemDimensions"),g=kl("gap"),v=Dr("log"),y=Dr("stateRestoreInProgress"),S=mm(w=>{const b=w.parentElement.parentElement.scrollHeight;a(b);const x=w.firstChild;if(x){const{width:E,height:I}=x.getBoundingClientRect();p({width:E,height:I})}g({row:tX("row-gap",getComputedStyle(w).rowGap,v),column:tX("column-gap",getComputedStyle(w).columnGap,v)})});return y?null:de.createElement(u,{ref:S,className:n,...Zo(u,h),style:{paddingTop:t.offsetTop,paddingBottom:t.offsetBottom},"data-test-id":"virtuoso-item-list"},t.items.map(w=>{const b=o(w.index,w.data,h);return s?de.createElement(f,{key:b,...Zo(f,h),index:w.index,height:t.itemHeight,width:t.itemWidth}):de.createElement(c,{...Zo(c,h),className:r,"data-index":w.index,key:b},i(w.index,w.data,h))}))}),S7e=de.memo(function(){const t=Dr("HeaderComponent"),n=kl("headerHeight"),r=Dr("headerFooterTag"),i=mm(s=>n(ff(s,"height"))),o=Dr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),E7e=de.memo(function(){const t=Dr("FooterComponent"),n=kl("footerHeight"),r=Dr("headerFooterTag"),i=mm(s=>n(ff(s,"height"))),o=Dr("context");return t?de.createElement(r,{ref:i},de.createElement(t,Zo(t,o))):null}),C7e=({children:e})=>{const t=de.useContext(Eoe),n=kl("itemDimensions"),r=kl("viewportDimensions"),i=mm(o=>{r(o.getBoundingClientRect())});return de.useEffect(()=>{t&&(r({height:t.viewportHeight,width:t.viewportWidth}),n({height:t.itemHeight,width:t.itemWidth}))},[t,r,n]),de.createElement("div",{style:ZA,ref:i},e)},T7e=({children:e})=>{const t=de.useContext(Eoe),n=kl("windowViewportRect"),r=kl("itemDimensions"),i=Dr("customScrollParent"),o=_oe(n,i);return de.useEffect(()=>{t&&(r({height:t.itemHeight,width:t.itemWidth}),n({offsetTop:0,visibleHeight:t.viewportHeight,visibleWidth:t.viewportWidth}))},[t,n,r]),de.createElement("div",{ref:o,style:ZA},e)},k7e=de.memo(function({...t}){const n=Dr("useWindowScroll"),r=Dr("customScrollParent"),i=r||n?I7e:A7e,o=r||n?T7e:C7e;return de.createElement(i,{...t},de.createElement(o,null,de.createElement(S7e,null),de.createElement(_7e,null),de.createElement(E7e,null)))}),{Component:$Ve,usePublisher:kl,useEmitterValue:Dr,useEmitter:Ioe}=roe(w7e,{optional:{context:"context",totalCount:"totalCount",overscan:"overscan",itemContent:"itemContent",components:"components",computeItemKey:"computeItemKey",data:"data",initialItemCount:"initialItemCount",scrollSeekConfiguration:"scrollSeekConfiguration",headerFooterTag:"headerFooterTag",listClassName:"listClassName",itemClassName:"itemClassName",useWindowScroll:"useWindowScroll",customScrollParent:"customScrollParent",scrollerRef:"scrollerRef",logLevel:"logLevel",restoreStateFrom:"restoreStateFrom",initialTopMostItemIndex:"initialTopMostItemIndex"},methods:{scrollTo:"scrollTo",scrollBy:"scrollBy",scrollToIndex:"scrollToIndex"},events:{isScrolling:"isScrolling",endReached:"endReached",startReached:"startReached",rangeChanged:"rangeChanged",atBottomStateChange:"atBottomStateChange",atTopStateChange:"atTopStateChange",stateChanged:"stateChanged"}},k7e),A7e=Toe({usePublisher:kl,useEmitterValue:Dr,useEmitter:Ioe}),I7e=koe({usePublisher:kl,useEmitterValue:Dr,useEmitter:Ioe});function tX(e,t,n){return t!=="normal"&&!(t!=null&&t.endsWith("px"))&&n(`${e} was not resolved to pixel value correctly`,t,Qs.WARN),t==="normal"?0:parseInt(t??"0",10)}const R7e=R.forwardRef(({style:e,children:t,...n},r)=>{const i=R.useRef(null),{palette:o,spacing:s}=Ln(),a=A1({".os-scrollbar":{visibility:"visible",opacity:1},".os-scrollbar-vertical > .os-scrollbar-track > .os-scrollbar-handle":{"min-height":s(12)},"div.os-scrollbar-vertical > div.os-scrollbar-track":{height:`calc(100% - ${s(6)})`,marginTop:s(6)}}),[c]=RJ({options:{overflow:{x:"hidden",y:"scroll"},scrollbars:{autoHide:"move",theme:o.mode==="dark"?"os-theme-light":"os-theme-dark"}}});R.useEffect(()=>{typeof r!="function"&&(r!=null&&r.current)&&(i!=null&&i.current)&&c({target:i.current,elements:{viewport:r.current}})},[c]);const u=R.useCallback(f=>{f&&r&&(typeof r=="function"?r(f):r.current=f)},[r]);return C.jsx("div",{ref:i,style:e,className:a,children:C.jsx("div",{ref:u,...n,children:t})})});function P7e({items:e=[],renderItem:t,listOptions:n,placeholder:r,...i}){return C.jsx(ht,{...i,children:C.jsx(m7e,{components:{Scroller:R7e},totalCount:e.length,itemContent:o=>t==null?void 0:t(e[o],o),...n})})}function O7e({event:e,hidden:t}){return C.jsxs(o3e,{children:[te.startCase(`${(e==null?void 0:e.type)??"unsupported"} #${(e==null?void 0:e.id)??"-"}`)," ",t&&C.jsx($1e,{sx:{opacity:.56,fontSize:12,ml:1,transform:"translateY(1.75px)"}})]})}function M7e({event:e,index:t,selected:n,...r}){const{spacing:i}=Ln();return C.jsx(bf,{title:C.jsx(ht,{p:1,children:C.jsx(e5,{event:e,flexDirection:"column"})}),followCursor:!0,children:C.jsxs(i3,{selected:n,...r,sx:{borderLeft:`${i(.5)} solid ${F1(e==null?void 0:e.type)}`,...r.sx},children:[C.jsx(Gd,{children:C.jsx(Ut,{variant:"body2",children:t})}),C.jsx(oc,{sx:{overflow:"hidden"},primary:C.jsx(O7e,{event:e,hidden:!1}),secondary:C.jsx(e5,{event:te.pick(e,"f","g","pId")})})]})})}const D7e=C.jsx(Qu,{orientation:"vertical",flexItem:!0,sx:{m:1}}),L7e=e=>Number(e.replace(/px$/,""));function N7e(){const{spacing:e}=Ln(),{controls:t,onChange:n,state:r}=wf(),i=R.useRef(null),{key:o,setKey:s,layers:a,layer:c}=qp(),{step:u,playing:f,pause:h,stepTo:p}=fU(o),g=R.useMemo(()=>{var v;if(c)return R.createElement(Xw[((v=c==null?void 0:c.source)==null?void 0:v.type)??""].steps,{layer:c})},[c]);return R.useEffect(()=>{f||te.delay(()=>{var v,y;return(y=(v=i==null?void 0:i.current)==null?void 0:v.scrollToIndex)==null?void 0:y.call(v,{index:u,align:"start",behavior:"smooth",offset:-L7e(e(6+2))})},150)},[u,f,e]),C.jsxs(zn,{onChange:n,stack:r,children:[C.jsx(zn.Content,{children:C.jsx(En,{vertical:!0,alignItems:"center",children:g?f?C.jsx(gp,{icon:C.jsx(Ew,{}),label:C.jsxs(C.Fragment,{children:[C.jsx(Ut,{children:"Running"}),C.jsx($z,{onClick:()=>h(),children:"Pause"})]})}):R.cloneElement(g,{children:v=>c?v.length?C.jsx(P7e,{sx:{width:"100%",height:"100%"},items:v,listOptions:{ref:i,defaultItemHeight:80,overscan:0},renderItem:(y,S)=>C.jsxs(ht,{sx:{height:e(S?10:16),pt:S?0:e(6)},children:[C.jsx(M7e,{event:y,index:S,selected:S===u,sx:{height:"100%"},onClick:()=>p(S)}),C.jsx(Qu,{variant:"inset"})]})}):C.jsx(gp,{icon:C.jsx(fE,{}),label:`${va(c)} has no steps to display`}):C.jsx(gp,{icon:C.jsx(fE,{}),label:"Steps"})}):C.jsx(gp,{icon:C.jsx(fE,{}),label:"Steps"})})}),C.jsxs(zn.Options,{children:[C.jsx(Gs,{icon:C.jsx(Tw,{}),label:"Layer",value:o,items:te.map(a,v=>({id:v.key,name:va(v)})),onChange:s,showArrow:!0}),D7e,C.jsx(VFe,{layer:c})]}),C.jsx(zn.Extras,{children:t})]})}const B7e=e=>e?48:36,$7e=8;function F7e({trigger:e,items:t,value:n,onChange:r,placeholder:i="Select Options",defaultChecked:o}){const s=oj(),a=te.max([te.findIndex(t,({value:c})=>!!(n!=null&&n[c])),0])??0;return C.jsx(im,{variant:"popover",children:c=>C.jsxs(C.Fragment,{children:[C.jsx(bf,{title:i,children:C.jsx("span",{children:e==null?void 0:e(Zk(c))})}),C.jsx(rm,{...Fw(c),anchorOrigin:{horizontal:"center",vertical:-B7e(s)*a-$7e},transformOrigin:{vertical:"top",horizontal:"center"},children:te.map(t,({value:u,label:f,disabled:h})=>C.jsxs(Pu,{disabled:h,onClick:()=>{r==null||r({...n,[u]:!((n==null?void 0:n[u])??o)})},children:[C.jsx(Gd,{children:C.jsx(Yge,{sx:{p:0},checked:!!((n==null?void 0:n[u])??o)})}),f]},u))})]})})}function z7e({label:e,value:t,onChange:n,items:r,icon:i,showArrow:o,defaultChecked:s}){var u;const a=te.filter(r,({id:f})=>!!((t==null?void 0:t[f])??s)),c=a.length?a.length===1?(u=te.head(a))==null?void 0:u.name:`${a.length} Selected`:e;return C.jsx(F7e,{defaultChecked:!0,placeholder:te.startCase(e),trigger:f=>C.jsx(of,{...f,disabled:!(r!=null&&r.length),icon:i,showArrow:o,children:c}),items:te.map(r,({id:f,name:h,description:p,hidden:g})=>({value:f,label:C.jsxs(C.Fragment,{children:[C.jsx(Ut,{children:h}),C.jsx(ai,{}),C.jsx(Ut,{variant:"body2",color:"text.secondary",children:p})]}),disabled:g})),value:t,onChange:n})}const nX=C.jsx(Qu,{orientation:"vertical",flexItem:!0,sx:{m:1}});function j7e(){var p,g,v,y;const{controls:e,onChange:t,state:n}=wf(),[r]=bA(),[{layers:i}]=om(),[o,s]=R.useState({}),a=R.useMemo(()=>te.filter(i,S=>(o==null?void 0:o[S.key])??!0),[o,i]),[c,u]=R.useState(),f=R.useMemo(()=>te.head(r),[r]),h=n!=null&&n.renderer&&n.renderer!=="internal:auto"?n.renderer:(g=(p=f==null?void 0:f.renderer)==null?void 0:p.meta)==null?void 0:g.id;return C.jsxs(zn,{onChange:t,stack:n,children:[C.jsx(zn.Content,{children:C.jsx(En,{children:C.jsx(tA,{children:S=>C.jsx(ht,{children:C.jsx(NBe,{...S,layers:a,renderer:h,rendererRef:u})})})})}),C.jsx(zn.Options,{children:C.jsxs(nf,{direction:"row",children:[C.jsx(Gs,{label:"Renderer",icon:C.jsx(k1e,{}),value:(n==null?void 0:n.renderer)??"internal:auto",onChange:S=>t==null?void 0:t({renderer:S}),items:[{id:"internal:auto",name:`Auto (${((y=(v=f==null?void 0:f.renderer)==null?void 0:v.meta)==null?void 0:y.name)??"None"})`},...te.map(r,({renderer:S})=>({id:S.meta.id,name:S.meta.name,description:S.meta.id}))],showArrow:!0}),nX,C.jsx(z7e,{defaultChecked:!0,label:"Layers",icon:C.jsx(Tw,{}),value:o,onChange:s,items:te.map(i,S=>({id:S.key,name:va(S)})),showArrow:!0}),nX,C.jsx(of,{disabled:!c,onClick:()=>{c==null||c.fitCamera()},icon:C.jsx(R1e,{}),children:"Fit"}),C.jsx(of,{disabled:!c,onClick:()=>{c==null||c.initialCamera()},icon:C.jsx(D1e,{}),children:"1:1"})]})}),C.jsx(zn.Extras,{children:e})]})}const a4={viewport:{id:"viewport",name:"Viewport",icon:C.jsx(VQ,{}),content:j7e},tree:{id:"tree",name:"Tree",icon:C.jsx(jQ,{}),content:kBe},steps:{id:"steps",name:"Steps",icon:C.jsx(fE,{}),content:N7e},info:{id:"info",name:"Logs",icon:C.jsx(WQ,{}),content:PRe},layers:{id:"layers",name:"Layers",icon:C.jsx(Tw,{}),content:i3e},debug:{id:"debug",name:"Debugger",icon:C.jsx(I1e,{}),content:RRe},settings:{id:"settings",name:"Settings",icon:C.jsx(q1e,{}),content:r9e},about:{id:"about",name:"About",icon:C.jsx(F1e,{}),content:FSe}},[U7e,H7e]=vc({view:{type:"branch",key:qo(),orientation:"horizontal",children:[{size:75,type:"branch",key:qo(),orientation:"horizontal",children:[{type:"leaf",size:25,key:qo(),content:{type:"layers"}},{size:75,type:"branch",key:qo(),orientation:"vertical",children:[{type:"leaf",size:75,key:qo(),content:{type:"viewport"}},{type:"leaf",size:25,key:qo(),content:{type:"info"}}]}]},{size:25,type:"leaf",key:qo(),content:{type:"steps"}}]}});function W7e(){const[e]=$ee(),t=sj(),n=te.values(e);return C.jsx(zk,{sx:{...t,zIndex:r=>r.zIndex.tooltip+1,WebkitAppRegion:"drag"},open:!!n.length,children:C.jsxs(nf,{alignItems:"center",spacing:4,children:[C.jsx(Ew,{}),n.map((r,i)=>C.jsx(Ut,{variant:"body2",color:"textSecondary",children:r},i))]})})}var Roe={exports:{}};(function(e,t){(function(n,r){e.exports=r()})($t,function(){return function n(r,i,o){var s=window,a="application/octet-stream",c=o||a,u=r,f=!i&&!o&&u,h=document.createElement("a"),p=function(k){return String(k)},g=s.Blob||s.MozBlob||s.WebKitBlob||p,v=i||"download",y,S;if(g=g.call?g.bind(s):Blob,String(this)==="true"&&(u=[u,c],c=u[0],u=u[1]),f&&f.length<2048&&(v=f.split("/").pop().split("?")[0],h.href=f,h.href.indexOf(f)!==-1)){var w=new XMLHttpRequest;return w.open("GET",f,!0),w.responseType="blob",w.onload=function(k){n(k.target.response,v,a)},setTimeout(function(){w.send()},0),w}if(/^data:([\w+-]+\/[\w+.-]+)?[,;]/.test(u))if(u.length>1024*1024*1.999&&g!==p)u=I(u),c=u.type||a;else return navigator.msSaveBlob?navigator.msSaveBlob(I(u),v):A(u);else if(/([\x80-\xff])/.test(u)){var b=0,x=new Uint8Array(u.length),E=x.length;for(b;b{const p=(0,n.randomBytes)(4).readUInt32BE(0);return u+p%(f-u+1)},i=u=>{let f;switch(u){case 1:f=Math.floor(r(1,9)).toString();break;case 2:f=Math.floor(r(10,90)).toString();break;case 3:f=Math.floor(r(100,900)).toString();break;case 4:f=Math.floor(r(1e3,9e3)).toString();break;case 5:f=Math.floor(r(1e4,9e4)).toString();break;case 6:f=Math.floor(r(1e5,9e5)).toString();break;default:f="";break}return f};function o(u,f){return u.replace(/@.+/,"").replace(/[&/\\#,+()$~%._@'":*?<>{}]/g,"")+i(f)}e.generateFromEmail=o;function s(u,f,h){const p=t.nouns[Math.floor(Math.random()*t.nouns.length)],g=t.adjectives[Math.floor(Math.random()*t.adjectives.length)];let v;return u?v=g+u+p+i(f):v=g+p+i(f),h?v.substring(0,h):v}e.generateUsername=s;function a(u){if(u.dictionaries){const f=u.dictionaries.length;let h="";for(let g=0;g{const o=await Rj({accept:eX.map(s=>`.workspace.${s}`),strict:!0});o&&eX.includes(Z7e(o.name))&&await i(async()=>{const s=await o.text(),a=await Lee(s);a&&(t(()=>a.layers),r(()=>a.UIState))},`Opening workspace (${Dj(o.size)})`)},save:()=>{K7e(JSON.stringify({layers:e,UIState:n}),`${Poe.generateUsername("-")}.workspace.json`,"application/json")}}}const tVe=()=>{const{save:e,load:t}=eVe(),[n,r]=R.useState(!1);return R.useEffect(()=>{if("windowControlsOverlay"in navigator){const i=()=>{r(!!navigator.windowControlsOverlay.visible)};return navigator.windowControlsOverlay.addEventListener("geometrychange",i),i(),()=>navigator.windowControlsOverlay.removeEventListener("geometrychange",i)}},[r]),C.jsx(ht,{sx:{mt:-.5,minHeight:36,height:n?"env(titlebar-area-height, 50px)":0,width:"env(titlebar-area-width, 100%)",WebkitAppRegion:"drag",overflowX:"auto"},children:C.jsx(Aw,{x:!0,style:{height:"100%"},children:C.jsx(ht,{sx:{height:"100%"},children:C.jsxs(Up,{direction:"row",spacing:1,sx:{height:"100%"},alignItems:"center",children:[C.jsx(ht,{sx:{p:1,height:"100%"},children:C.jsx("img",{src:UJ,style:{height:"100%"}})}),[{key:"workspace",items:[{name:"Open workspace",key:"workspace-load",action:t},{name:"Save workspace",key:"workspace-save",action:e}]},{key:"help",items:[{name:"Open repository in GitHub",key:"github",action:()=>open(RSe,"_blank")},{name:"Open changelog",key:"changelog",action:()=>open(`${PSe}/changelog-${ASe}.md`,"_blank")}]}].map(({key:i,items:o})=>C.jsx(rm,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(nm,{...$w(s),children:C.jsx(zk,{dense:!0,sx:{p:0},children:o.map(({name:a,key:c,action:u})=>C.jsx(Ru,{onClick:()=>{u==null||u(),s.close()},children:a},c))})}),C.jsx(nf,{...Qk(s),sx:{WebkitAppRegion:"no-drag",minWidth:"fit-content",p:.5,px:1},children:te.startCase(i)})]})},i)),C.jsx(ht,{sx:{p:.75,height:"100%"},children:C.jsx(nVe,{})})]})})})})};function nVe(){const e=gc();return C.jsxs(Yu,{onClick:()=>e("Commands are not yet implemented."),sx:{WebkitAppRegion:"no-drag",fontSize:14,borderRadius:t=>t.shape.borderRadius,"&:hover":{bgcolor:"background.paper"},height:"100%",m:0,display:"flex",alignItems:"center",px:1,pr:2,gap:t=>t.spacing(1),color:"text.secondary",cursor:"text"},children:[C.jsx(j1e,{fontSize:"small",color:"disabled"})," ",C.jsx(jt,{sx:{mt:0},children:"Commands"})]})}const rVe=[W7e,V7e,LWe,X7e];function iVe(){const t=Dn().palette.background.default;return j7e(t),C.jsxs(En,{vertical:!0,sx:{bgcolor:t,p:.5,color:"text.primary"},children:[C.jsx(tVe,{}),C.jsx(F7e,{flex:1})]})}function oVe(){const[{theme:e="light",accentColor:t="teal"}]=Ju(),n=R.useMemo(()=>TSe(e,t),[e,t]);return C.jsx(aue,{theme:n,children:C.jsx(Swe,{children:C.jsx(Ioe,{services:rVe,children:C.jsx(iVe,{})})})})}var Ooe,tX=_v;Ooe=tX.createRoot,tX.hydrateRoot;const sVe=Ooe(document.getElementById("root")),aVe=[oOe,SSe,DRe,NRe,tCe,BRe,CBe,_we,B7e,kRe];sVe.render(C.jsx(rve,{children:C.jsx(Ioe,{slices:aVe,children:C.jsx(oVe,{})})})); +Use Save As... to download, then click back to return to this page.`)&&(location.href=k),!0;var L=document.createElement("iframe");document.body.appendChild(L),!O&&/^data:/.test(k)&&(k="data:"+k.replace(/^data:([\w\/\-\+]+)/,a)),L.src=k,setTimeout(function(){document.body.removeChild(L)},333)}if(navigator.msSaveBlob)return navigator.msSaveBlob(y,v);if(s.URL)A(s.URL.createObjectURL(y),!0);else{if(typeof y=="string"||y.constructor===p)try{return A("data:"+c+";base64,"+s.btoa(y))}catch{return A("data:"+c+","+encodeURIComponent(y))}S=new FileReader,S.onload=function(k){A(this.result)},S.readAsDataURL(y)}return!0}})})(Roe);var G7e=Roe.exports;const V7e=ds(G7e);var Poe={},Zp={},e6={};Object.defineProperty(e6,"__esModule",{value:!0});e6.default=["other","new","good","old","little","great","small","young","long","black","high","only","big","white","political","right","large","real","sure","different","important","public","possible","full","whole","certain","human","major","military","bad","social","dead","true","economic","open","early","free","national","strong","hard","special","clear","local","private","wrong","late","short","poor","recent","dark","fine","foreign","ready","red","cold","low","heavy","serious","single","personal","difficult","left","blue","federal","necessary","general","easy","likely","beautiful","happy","past","hot","close","common","afraid","simple","natural","main","various","available","nice","present","final","sorry","entire","current","similar","deep","huge","rich","nuclear","empty","strange","quiet","front","wide","modern","concerned","green","very","alone","particular","bright","supposed","basic","medical","aware","total","financial","legal","original","international","soft","alive","interested","tall","warm","popular","tiny","top","normal","powerful","silent","religious","impossible","quick","safe","thin","familiar","gray","fresh","physical","individual","willing","crazy","sick","angry","perfect","tired","wild","moral","brown","dangerous","famous","married","terrible","successful","fair","professional","official","obvious","glad","central","chief","effective","light","complete","interesting","thick","proper","involved","responsible","narrow","civil","industrial","dry","yellow","specific","sharp","sudden","direct","following","growing","significant","traditional","slow","previous","vast","surprised","busy","usual","clean","funny","regular","scientific","ordinary","ancient","senior","sweet","future","annual","secret","equal","independent","wonderful","tough","broad","additional","careful","domestic","brief","enormous","commercial","grand","average","sexual","nervous","pale","immediate","critical","proud","like","complex","separate","considerable","still","extra","expensive","guilty","active","mad","asleep","wooden","cool","presidential","apparent","weak","essential","living","pretty","cultural","useful","actual","unusual","daily","potential","wet","solid","lovely","comfortable","formal","outside","massive","sad","corporate","distant","loose","rare","stupid","visible","liberal","flat","pleased","pure","curious","practical","upper","technical","male","appropriate","fat","just","due","mere","handsome","mental","conservative","positive","leading","naked","false","drunk","dirty","friendly","constant","well","used","emotional","internal","odd","historical","female","ill","broken","capable","southern","pleasant","bare","minor","eager","lucky","urban","steady","fiscal","rough","primary","reasonable","typical","inner","favorite","attractive","slight","innocent","limited","straight","pink","excellent","double","dramatic","violent","honest","electric","fellow","substantial","opposite","awful","severe","joint","armed","hungry","remarkable","increased","gentle","illegal","middle","bitter","mass","permanent","increasing","damn","golden","correct","intense","round","northern","proposed","so-called","criminal","healthy","plain","vital","blind","native","intellectual","unknown","extreme","existing","raw","prime","brilliant","sensitive","extraordinary","sufficient","remaining","ultimate","unique","royal","initial","negative","fundamental","nearby","smart","strategic","educational","unlikely","smooth","modest","conventional","giant","scared","cheap","dear","delicate","anxious","valuable","standard","desperate","lonely","diplomatic","firm","wise","principal","congressional","occasional","ugly","vice","radical","faint","working","absolute","intelligent","racial","mutual","silly","fast","musical","tight","complicated","numerous","crucial","square","contemporary","bloody","western","endless","inevitable","environmental","constitutional","rapid","worried","lost","genuine","temporary","democratic","rural","regional","given","painful","literary","chemical","sophisticated","decent","academic","awake","conscious","revolutionary","surprising","elderly","agricultural","psychological","pregnant","live","adequate","superior","grateful","prominent","frightened","remote","overall","stiff","harsh","electronic","spiritual","okay","closed","excited","convinced","long-term","unexpected","dull","evident","civilian","mysterious","romantic","impressive","continuing","exciting","logical","peculiar","exact","widespread","foolish","extensive","evil","continued","confident","generous","legislative","stable","vulnerable","elegant","embarrassed","hostile","efficient","blond","dumb","advanced","defensive","outer","neat","estimated","wealthy","dying","loud","creative","acceptable","unhappy","sheer","competitive","concrete","reluctant","precious","tremendous","burning","precise","uncertain","holy","artificial","vague","ideal","universal","moderate","subtle","mild","peaceful","assistant","invisible","casual","crowded","crude","running","classic","controversial","ridiculous","frequent","grim","accurate","detailed","goddamn","fun","fierce","cruel","incredible","blank","dim","suitable","classical","elaborate","collective","eastern","legitimate","aggressive","rear","administrative","automatic","dependent","ashamed","distinct","fit","clever","brave","ethnic","maximum","relative","primitive","uncomfortable","profound","sacred","biological","identical","furious","loyal","rational","mechanical","mean","naval","noble","ambitious","purple","historic","dominant","suburban","developing","calm","frozen","subsequent","charming","damp","fixed","rigid","offensive","electrical","shy","continuous","urgent","weary","immense","splendid","downtown","uneasy","disappointed","helpless","voluntary","polite","junior","gross","striking","overwhelming","unconscious","steep","outstanding","tender","tragic","costly","miserable","near","useless","welcome","external","helpful","weekly","middle-aged","suspicious","old-fashioned","technological","damned","awkward","visual","organized","ideological","orange","horrible","strict","magnificent","deadly","dusty","mighty","puzzled","bold","global","passing","magic","fond","judicial","missing","definite","changing","rubber","theoretical","satisfied","promising","abstract","excessive","comparable","fatal","distinguished","inadequate","slender","artistic","known","sympathetic","favorable","cheerful","faithful","delighted","unnecessary","sole","cautious","productive","reliable","patient","sensible","desirable","depressed","atomic","able","instant","relevant","alien","spectacular","lesser","swift","comic","enthusiastic","marvelous","experimental","weird","retired","fascinating","content","medieval","inclined","bored","ruling","flying","consistent","organic","alleged","grave","smiling","realistic","amazing","exotic","symbolic","confused","underground","spare","philosophical","vigorous","troubled","shallow","amused","lively","genetic","impatient","brutal","solar","unfair","formidable","tense","unfortunate","minimum","sleeping","secondary","shiny","jealous","insane","gay","vivid","wounded","hurt","intimate","monthly","sour","socialist","worthy","preliminary","colonial","middle-class","alternative","influential","unpleasant","comprehensive","devoted","upset","secure","absurd","neutral","frightening","profitable","fragile","civilized","slim","partial","added","fearful","optimistic","isolated","eternal","vocal","beloved","alert","verbal","rising","skilled","antique","municipal","written","restless","outdoor","governmental","driving","sore","informal","loving","retail","hidden","determined","monetary","convenient","thoughtful","colored","progressive","bizarre","sweeping","fancy","expected","fantastic","editorial","intact","bottom","multiple","well-known","nasty","protective","acute","combined","related","fortunate","earnest","divine","passionate","icy","noisy","vicious","dreadful","apt","boring","unprecedented","decisive","sunny","marked","experienced","disturbing","satisfactory","sober","random","electoral","shocked","deliberate","coming","orderly","surrounding","unwilling","inherent","mixed","naive","dense","hopeless","aesthetic","supreme","encouraging","institutional","solemn","stubborn","required","relaxed","bald","frantic","exclusive","rotten","filthy","flexible","explicit","glorious","lean","ignorant","extended","embarrassing","architectural","mortal","corrupt","hopeful","regulatory","valid","characteristic","tribal","capitalist","diverse","functional","improved","ironic","graceful","unaware","respectable","eligible","lousy","established","postwar","objective","wary","elementary","moving","superb","cute","minimal","meaningful","notable","structural","developed","rolling","fashionable","persistent","distinctive","terrific","thorough","skeptical","secular","chronic","level","everyday","visiting","infinite","short-term","terrorist","youthful","unemployed","forced","liquid","explosive","rude","colorful","renewed","semantic","astonishing","passive","heroic","gleaming","indifferent","vertical","prior","anonymous","absent","customary","mobile","uniform","solitary","probable","amazed","petty","bleak","athletic","tentative","harmless","ample","right-wing","polished","obscure","sincere","dried","intensive","equivalent","convincing","idle","vacant","mature","amusing","competent","ominous","savage","motionless","tropical","blunt","drunken","delicious","lazy","ragged","longtime","nationwide","startling","civic","freezing","muscular","circular","imperial","irrelevant","countless","gloomy","startled","disastrous","skinny","hollow","upward","ethical","underlying","careless","wholesale","abandoned","unfamiliar","mandatory","imaginary","bewildered","annoyed","magnetic","dazzling","lengthy","stern","surgical","clinical","full-time","metropolitan","moist","unlike","doubtful","prosperous","keen","awesome","humble","interior","psychiatric","clumsy","outraged","theatrical","educated","gigantic","scattered","privileged","sleepy","battered","meaningless","predictable","gradual","miniature","radioactive","prospective","aging","destructive","authentic","portable","bearded","balanced","shining","spontaneous","bureaucratic","inferior","sturdy","cynical","exquisite","talented","immune","imaginative","ripe","shared","kind","parliamentary","glowing","frail","astonished","forward","inside","operational","faded","closing","pro","coastal","shrewd","preoccupied","celebrated","wicked","bourgeois","marginal","transparent","dynamic","psychic","plump","coarse","bleeding","striped","eventual","residential","hysterical","pathetic","planned","fake","imminent","sentimental","stunning","worldwide","militant","sizable","representative","incapable","provincial","poetic","injured","tactical","selfish","winning","foul","repeated","novel","dubious","part-time","abrupt","lone","overseas","grey","varied","cooperative","muddy","scheduled","legendary","arrogant","conspicuous","varying","devastating","vulgar","martial","amateur","mathematical","deaf","scarce","specialized","honorable","outrageous","confidential","fallen","goddamned","five-year","feminine","monstrous","brisk","systematic","exhausted","frank","lunar","daring","shadowy","respected","stark","accepted","successive","pending","prolonged","unseen","uniformed","wretched","sullen","arbitrary","drastic","crooked","resulting","intricate","unpredictable","printed","utter","satisfying","delightful","linguistic","shabby","statistical","accessible","prestigious","trivial","waiting","futile","prepared","aged","misleading","cognitive","shocking","childish","elected","magical","forthcoming","exceptional","gifted","stricken","fiery","cardboard","shaky","conflicting","commanding","starving","accustomed","rocky","long-range","floating","sinister","potent","phony","lasting","understandable","curved","barren","lethal","toxic","deserted","ambiguous","notorious","synthetic","worthwhile","imported","intent","reduced","painted","taut","sociological","questionable","crisp","pointed","harmful","horizontal","rival","somber","benign","prevailing","selected","organizational","excess","dedicated","veteran","implicit","prudent","plausible","confusing","smoking","large-scale","subdued","constructive","marital","scarlet","rugged","darkened","untouched","above","matching","covert","communal","sticky","affluent","energetic","stale","controlled","qualified","reminiscent","shut","blonde","handy","ritual","straightforward","terminal","dizzy","sane","twisted","occupied","finished","opposing","sly","depressing","irregular","marine","communist","obscene","wrinkled","unsuccessful","gracious","static","consecutive","reserve","exposed","scholarly","sleek","reckless","oral","comforting","pressing","swollen","viable","carved","obsessed","projected","hideous","unthinkable","mock","susceptible","respective","goddam","downward","memorable","worn","raised","glittering","beneficial","lingering","patriotic","stunned","hairy","worrying","lighted","sexy","abundant","tangled","perpetual","irresistible","terrified","compelling","unmistakable","feeble","uneven","trained","folded","relentless","killed","gorgeous","conservation","serene","eerie","premature","dismal","competing","risky","unacceptable","indirect","witty","muffled","feasible","interstate","heated","uncommon","accidental","queer","innovative","parallel","fried","unnatural","cracked","persuasive","integrated","ongoing","homosexual","sound","fertile","canned","preceding","worldly","onstage","declining","advisory","juvenile","slippery","numb","postal","olive","eccentric","lay","chilly","shrill","ceremonial","registered","boiling","contradictory","irresponsible","then","industrialized","obsolete","rusty","inflationary","split","discreet","intolerable","barefoot","territorial","outspoken","audible","adverse","associate","impending","decorative","luminous","two-year","expanding","unchanged","outstretched","momentary","good-looking","cunning","overnight","sprawling","unbelievable","bland","liable","terrifying","televised","appealing","breathless","alarming","supporting","greasy","affirmative","guiding","homeless","triumphant","rainy","stolen","empirical","timid","provocative","knowledgeable","pragmatic","touching","desired","amiable","attempted","humane","adjacent","superficial","greedy","assorted","elusive","ruthless","lush","soothing","imposing","preferred","lavish","pervasive","managing","sandy","inappropriate","desolate","nude","reassuring","shimmering","first-class","unfinished","insistent","comparative","conceivable","admirable","courageous","aristocratic","meager","subjective","vain","disgusted","dual","towering","responsive","ailing","compact","torn","sortal","entertaining","dreary","metallic","tedious","irrational","immoral","teen-age","interim","jagged","selective","volatile","cozy","unanimous","unlimited","hired","cosmic","indoor","retarded","gold","fabulous","dignified","long-distance","high-school","classified","luxurious","insufficient","pious","incomplete","oblivious","imperialist","stately","lifelong","subordinate","extravagant","intrinsic","unpopular","scant","surplus","radiant","ruined","grotesque","hazardous","disabled","intriguing","worthless","reported","hoarse","utmost","muted","bony","disgusting","monumental","pleasing","sterile","agreeable","three-year","tricky","lucrative","respectful","inexpensive","bulky","troublesome","affectionate","coherent","unreasonable","nineteenth-century","curly","indispensable","nursing","incompetent","governing","alternate","suspected","left-wing","refined","overt","chilling","virtual","devoid","perverse","enduring","outright","overhead","unnoticed","nonprofit","pointless","appalling","dental","chosen","enlightened","robust","commonplace","damaging","conscientious","eloquent","erratic","applied","merry","ardent","flowing","incoming","chaotic","noticeable","pitiful","locked","swelling","definitive","homemade","super","pronounced","kindly","prone","attentive","unstable","unrelated","charitable","armored","unclear","tangible","medium","winding","slick","credible","frustrating","shifting","spacious","day-to-day","surviving","expanded","arid","unwanted","unbearable","hesitant","recognizable","multinational","abdominal","murderous","glossy","mute","working-class","insignificant","ingenious","masculine","blessed","gaunt","miraculous","unconstitutional","parental","rigorous","bodily","impersonal","backward","computerized","four-year","unmarried","wry","resident","luxury","high-level","partisan","powerless","seasonal","self-conscious","triple","onetime","ecological","periodic","racist","exaggerated","facial","erotic","unreal","durable","manual","rounded","concentrated","literal","mystical","stimulating","staggering","tempting","last-minute","erect","feudal","head","emerging","hind","brooding","candid","paranoid","defective","linear","immortal","shattered","unsure","swinging","compatible","ghastly","investigative","rosy","convicted","sensational","committed","makeshift","tolerant","forceful","supernatural","joyous","limp","improper","hanging","sliding","renowned","tattered","nonexistent","supportive","frustrated","undercover","handicapped","apprehensive","plentiful","authoritative","sustained","disappointing","hereditary","photographic","impoverished","ornate","respiratory","substantive","acting","nutritional","unofficial","innumerable","prevalent","dire","menacing","outward","brittle","hasty","sparkling","sled","geographical","therapeutic","melancholy","adolescent","hearty","disturbed","sweaty","poisonous","paid","ineffective","humorous","burly","rebellious","reddish","stout","teenage","eminent","rhythmic","physiological","guaranteed","opaque","folding","fleeting","full-scale","low-income","infectious","stringent","stained","beige","stirring","soaring","glamorous","airborne","improbable","austere","anticipated","designated","oval","restrictive","yearly","precarious","relieved","said","feverish","occupational","holding","speculative","abnormal","challenging","healing","boyish","forbidding","divorced","famed","sluggish","struggling","united","undesirable","steaming","consulting","answering","recreational","accompanying","cramped","journalistic","neighboring","fictional","chopped","phenomenal","bankrupt","illicit","advancing","upcoming","racing","protected","padded","venerable","fuzzy","behavioral","roast","mocking","reactionary","inefficient","packed","sloppy","sparse","foster","revealing","reverse","gaping","blue-collar","thankful","down","unimportant","traveling","corresponding","maternal","autonomous","conceptual","smoky","baked","stuffed","murky","totalitarian","ghostly","seeming","flickering","sensual","clenched","offshore","stinging","oppressive","strained","messy","executive","evolutionary","theological","damaged","unrealistic","rectangular","off","mainstream","benevolent","thirsty","blinding","loaded","applicable","unused","crushed","tan","factual","involuntary","brand-new","akin","scary","modified","mindless","born","feminist","integral","uncanny","aloof","spreading","watery","playful","stocky","wasted","compulsory","indignant","pertinent","incredulous","simultaneous","turbulent","framed","aching","falling","cardiac","trim","silvery","accused","pastoral","barbed","adjoining","inspired","courteous","skillful","majestic","gilded","published","perennial","upright","seasoned","continual","papal","victorious","optical","ecstatic","agonizing","shameful","expressive","inconsistent","insulting","cloudy","defiant","restricted","approaching","aggregate","orthodox","unified","all-out","wooded","nationalist","favored","lofty","assured","smug","earthly","improving","instrumental","stray","clandestine","managerial","animated","intended","flawed","bent","clerical","outgoing","righteous","unspoken","poignant","faulty","defeated","authoritarian","treacherous","catastrophic","refreshing","unidentified","suicidal","sickly","disciplined","meticulous","preferable","trusted","hectic","husky","distraught","select","snowy","ferocious","crumpled","humiliating","divided","crippled","infamous","chic","broke","sovereign","continental","idealistic","first-rate","guarded","learned","nameless","runaway","metaphysical","senseless","boiled","needy","silver","recorded","polar","real-estate","stormy","incomprehensible","wiry","raging","composite","flamboyant","crimson","reproductive","intermediate","ubiquitous","repressive","hefty","listening","good-natured","parochial","stylish","high-tech","flaming","coronary","overweight","bathing","three-day","tidy","beleaguered","manifest","ludicrous","indigenous","adamant","placid","inept","exuberant","stony","salty","seductive","accomplished","impassive","grazing","congenial","misguided","wide-eyed","revised","bass","sonic","budgetary","halfway","ensuing","admiring","palpable","nightly","hooded","best-known","eighteenth-century","dissident","morbid","incumbent","demanding","inexperienced","hazy","revolving","rented","disadvantaged","innate","dietary","minute","cultivated","sealed","contemptuous","rhetorical","conciliatory","articulate","jobless","macho","forgotten","lifeless","proven","latent","secretive","perilous","token","graphic","alcoholic","overdue","permissible","shattering","preventive","illiterate","back","atmospheric","thermal","quaint","negotiated","preposterous","temporal","restrained","triangular","mayoral","spatial","heady","biblical","fitting","pessimistic","mammoth","allied","failed","intuitive","nagging","tidal","angular","speechless","finishing","protracted","watchful","businesslike","automated","versatile","booming","pouring","misty","deceptive","sunken","singular","suspended","unworthy","immigrant","expressionless","airy","mournful","neurotic","cubic","unauthorized","economical","fund-raising","captive","blatant","far-reaching","subversive","imperfect","jolly","inaccurate","resentful","strenuous","suffering","hardened","malicious","unjust","perceptive","newborn","promised","differing","virgin","alarmed","grassy","frivolous","apologetic","wasteful","endangered","unarmed","adept","unavoidable","approved","trembling","stuck","high-ranking","crushing","prescribed","dependable","fragrant","expansive","unfriendly","covered","bemused","digital","probing","sloping","man-made","festive","unilateral","unmarked","bipartisan","statewide","burgeoning","devout","sickening","mediocre","adventurous","elevated","suggestive","accountable","virtuous","lame","heavenly","bruised","unbroken","irritable","affected","inconceivable","sometime","vile","baggy","timely","glistening","imagined","unprepared","unresolved","windy","humanitarian","overriding","detached","annoying","narrative","interminable","appalled","penal","unsatisfactory","instinctive","variable","cumulative","obedient","deficient","colossal","unaffected","extinct","routine","microscopic","compassionate","nominal","forlorn","distorted","mistaken","enclosed","infected","fervent","analogous","frigid","instructive","appointed","one-way","gnarled","problematic","sardonic","two-hour","hypothetical","prompt","anguished","electromagnetic","sensuous","homely","beaten","malignant","rotting","concealed","peripheral","creaking","impeccable","khaki","grinning","irreversible","rampant","wondrous","inward","manufactured","grisly","cooked","discriminatory","cerebral","knowing","auxiliary","operative","losing","genial","phonetic","ecclesiastical","sarcastic","incorrect","ruddy","well-to-do","inexplicable","unreliable","developmental","woolen","agitated","lyrical","consequent","calculated","molecular","pompous","present-day","shaggy","even","inhuman","sublime","diagnostic","manly","raucous","balding","after","bilateral","mounted","blackened","assembled","separated","gaudy","evangelical","darling","juicy","impotent","receptive","irritating","pulmonary","dazed","cross-country","unavailable","parked","habitual","lexical","lowered","unwise","planetary","throbbing","enigmatic","superstitious","threatening","manned","childlike","sporting","right-hand","adult","reflective","white-haired","discernible","celestial","prodigious","translucent","equitable","epic","frayed","arduous","flimsy","penetrating","howling","disparate","alike","all-time","deformed","comical","inert","procedural","resistant","vibrant","geographic","wistful","specified","rightful","spirited","unborn","enjoyable","regal","cumbersome","burned","frenzied","gubernatorial","deteriorating","haunted","evasive","neglected","anthropological","inescapable","clear-cut","visionary","bloated","accumulated","agrarian","pained","dwindling","heightened","gray-haired","distressing","grinding","insecure","archaic","piercing","fluent","leisurely","giddy","slimy","oncoming","short-lived","spinal","wholesome","unanswered","illegitimate","staunch","two-day","rumpled","speedy","soaked","rocking","invaluable","gallant","tacit","finite","inviting","sporadic","powdered","cheery","volcanic","optional","mischievous","flowered","contagious","automotive","inflated","mythic","analytical","infrared","two-week","binding","ancestral","dissatisfied","upstate","veritable","unaccustomed","oily","monotonous","seated","feeding","fluorescent","undue","impassioned","picturesque","vocational","tranquil","tumultuous","rustic","patterned","two-story","pagan","flash","playing","exhilarating","maiden","three-dimensional","mythical","thriving","drab","black-and-white","honorary","dingy","founding","imperative","indistinguishable","lightweight","avid","dreamy","everlasting","obsessive","tional","homogeneous","inner-city","changed","tame","colorless","haggard","implacable","altered","unequal","focal","perceptual","literate","priceless","diminishing","harmonious","dark-haired","fatty","squat","undecided","banal","fruitful","pioneering","innocuous","cordial","rewarding","unsafe","maritime","overcrowded","timeless","fledgling","nostalgic","abreast","one-time","humid","astronomical","one-man","deepening","blazing","fleshy","dishonest","succeeding","qualitative","needless","rickety","joyful","stated","ambivalent","hybrid","six-month","limiting","workable","sleepless","unpaid","mundane","flashy","stagnant","bumper","recurring","sinful","immaculate","synonymous","measured","thrilling","long-standing","unruly","bewildering","unfit","edgy","numerical","sumptuous","fragmented","puffy","elastic","high-pitched","momentous","woven","unsteady","unnamed","cosmetic","snap","impenetrable","floral","waving","promotional","tenuous","lonesome","embroidered","strident","cherished","aghast","fundamentalist","white-collar","afloat","disruptive","law-enforcement","gathered","indefinite","intervening","publicized","geometric","disciplinary","descriptive","wavy","edible","disgruntled","obligatory","untrue","amber","snug","resolute","awed","simplistic","grandiose","crippling","high-speed","mounting","glaring","small-town","cavernous","hushed","wage-price","demographic","diseased","unpublished","causal","defenseless","sheltered","dormant","compulsive","loved","willful","truthful","punitive","disposable","ajar","drowsy","statutory","tanned","proprietary","informed","unheard","decision-making","transient","unlawful","dour","negligible","underwater","optimum","illusory","imaginable","borrowed","divergent","looking","exempt","contentious","forbidden","cowardly","masked","crazed","silken","parched","furry","wandering","insensitive","over-all","elated","waxed","veiled","envious","insidious","scrawny","unwarranted","lithe","abrasive","pretentious","far-off","murdered","deft","prickly","musty","shapeless","incongruous","gruesome","honored","perceived","grieving","unspecified","dizzying","privy","noteworthy","charred","median","fearless","twisting","unattractive","flawless","welcoming","flushed","hardy","glum","scenic","devious","recurrent","distasteful","jubilant","ballistic","hilarious","naughty","bustling","discarded","pristine","exemplary","fading","complacent","incessant","engaging","twentieth-century","protectionist","rudimentary","traumatic","steamy","emphatic","hard-line","teeming","generating","stuffy","connecting","stationary","genteel","populist","supple","hateful","retrospective","glazed","lawful","arched","tiresome","lucid","reserved","pivotal","grimy","surly","anti-Soviet","contrary","quarterly","old-time","residual","spiral","decaying","threatened","docile","appreciative","jovial","fascist","worrisome","red-haired","undisturbed","creamy","well-dressed","serial","existential","mountainous","pastel","self-sufficient","spoken","express","tasty","maroon","infrequent","deceased","full-fledged","transitional","leafy","gravitational","furtive","prophetic","nasal","unwelcome","troubling","immobile","merciful","uncontrollable","impartial","unfavorable","attendant","associated","high-rise","vascular","fateful","concerted","rash","stubby","paramount","impulsive","fraudulent","drooping","reciprocal","usable","fast-food","touchy","astute","oversized","mottled","slack","fruitless","unhealthy","decorated","shady","shaped","fanciful","quivering","charismatic","sordid","oppressed","inaccessible","fastidious","brazen","gloved","crumbling","underdeveloped","scarred","rambling","incipient","remedial","derelict","incompatible","fanatical","smoked","secondhand","hypnotic","failing","marching","flattened","paradoxical","unskilled","esthetic","tolerable","pungent","substitute","soggy","terse","tiring","fictitious","manageable","inventive","haughty","normative","premier","grudging","vested","exhausting","cross-legged","self-evident","away","horrified","prolific","incoherent","quantitative","full-length","year-round","unkind","provisional","exterior","brash","inconclusive","landed","breathtaking","acrid","noted","resultant","long-time","resounding","lovable","hypocritical","plush","foggy","acknowledged","idiotic","tracking","ceramic","taxable","enterprising","flashing","wee","barbaric","deafening","orbital","lurid","dated","hated","buoyant","mating","pictorial","overlapping","lax","archetypal","manic","limitless","puzzling","condescending","hapless","meek","faceless","uncommitted","horrid","greenish","unorthodox","unending","accelerated","day-care","undeniable","bushy","searing","fearsome","unharmed","divisive","overpowering","diving","telling","determining","uptight","cast","enlarged","ebullient","disagreeable","insatiable","grown-up","demented","puffing","inconvenient","uncontrolled","inland","repulsive","unintelligible","blue-eyed","pallid","nonviolent","dilapidated","unyielding","astounded","marvellous","low-cost","purposeful","courtly","predominant","conversational","erroneous","resourceful","converted","disconcerting","oblique","dreaded","indicative","silky","six-year","front-page","biting","flowering","sunlit","licensed","unspeakable","adrift","awash","identifiable","girlish","zealous","spooky","uncompromising","deserving","driven","certified","unlucky","temperate","budding","impractical","public-relations","inflexible","sensory","pornographic","outlandish","resonant","belligerent","wan","leftover","spotted","soybean","easygoing","vengeful","proportional","inaugural","dank","screaming","heterosexual","sliced","year-old","considerate","thunderous","distressed","warring","assertive","foreseeable","psychotic","intermittent","anti-Communist","generalized","unable","molten","excruciating","illustrious","voluminous","offending","trustworthy","grating","laughing","one-year","industrious","uninterrupted","dashing","speaking","metabolic","flattering","one-sided","ineffectual","primal","digestive","taped","floppy","jaunty","practiced","walled","hospitable","dutiful","melodramatic","intestinal","cluttered","conclusive","complementary","unprotected","buzzing","attributable","tasteless","forthright","wily","hourly","delayed","sweating","affable","studied","chubby","thyroid","chilled","conducive","childless","faltering","authorized","buried","land-based","observable","hurried","curving","dismayed","pernicious","upturned","believable","questioning","syndicated","pharmaceutical","high-risk","resigned","discrete","likable","imprisoned","cocky","outdated","autocratic","ablaze","askew","grammatical","wintry","incidental","matter-of-fact","disputed","exorbitant","low-level","sodden","skeletal","disproportionate","soiled","cellular","ephemeral","perfunctory","inconsequential","flourishing","intentional","two-way","elemental","whispered","four-day","stinking","informative","tenacious","outlying","virulent","horrendous","horrifying","burnt","longstanding","senile","unmoving","deprived","interpersonal","intimidating","posh","dainty","portly","nondescript","inquisitive","exiled","capricious","scandalous","severed","debilitating","widowed","horny","sallow","up-to-date","self-contained","carefree","boisterous","coordinated","anti-Semitic","superfluous","metric","expressed","enchanting","disorderly","paternal","wanton","frightful","free-lance","extremist","lined","scornful","inseparable","obese","ponderous","imperious","indistinct","adrenal","belated","rippling","valiant","livid","mystic","cracking","subterranean","invading","rusted","esoteric","red-faced","segregated","lanky","departmental","allergic","predatory","enforced","anti-inflation","implied","flagrant","best-selling","haphazard","trailing","seedy","real-life","unannounced","utilitarian","roving","despairing","immature","simulated","embattled","poisoned","patronizing","baffled","centralized","weathered","weeping","mutilated","painstaking","tax-exempt","socioeconomic","tearful","stringy","projecting","low-key","single-minded","shadowed","vehement","darn","fluffy","apocalyptic","completed","intelligible","furnished","elongated","worsening","eclectic","bacterial","earthy","sagging","wide-ranging","face-to-face","settled","dogmatic","anti","secluded","baffling","coy","pathological","echoing","bridal","autobiographical","instantaneous","ornamental","satirical","voluptuous","movable","kinetic","merciless","tireless","three-month","unconcerned","impromptu","turning","follow-up","retaliatory","arcane","waterproof","justifiable","glassy","unearthly","shuttered","inverted","bogus","petrified","simmering","guided","gritty","widening","generic","pretrial","returning","boundless","swirling","northeastern","swell","tive","minuscule","estranged","upbeat","explanatory","repetitive","repressed","vindictive","shrinking","canny","little-known","hydraulic","unrelenting","looming","supersonic","justified","lukewarm","unmoved","blurred","double-breasted","sanitary","unforgettable","diligent","unconventional","ashen","wordless","stainless","inlaid","irritated","spotless","pudgy","yellowish","lateral","adopted","lowly","obnoxious","utopian","called","unimaginable","hairless","foregoing","opulent","garish","nocturnal","rousing","unexplained","cosmopolitan","milky","medium-sized","all-night","bloodshot","rueful","hard-working","crafty","familial","iced","violet","arctic","ceaseless","exasperated","warped","aquatic","gruff","terrestrial","contrasting","egalitarian","needful","spent","untrained","escalating","liberated","long-haired","abortive","syntactic","consummate","lumpy","spoiled","ten-year-old","talkative","whimsical","weighty","audio","inflammatory","deplorable","spicy","corrugated","morose","sobering","southwestern","three-year-old","methodical","prehistoric","carpeted","smelly","processed","overheated","interstellar","agile","approximate","sadistic","living-room","irate","smashed","frontal","venereal","indiscriminate","suggested","cultured","creeping","recognized","toothless","handmade","mellow","fetal","disinterested","gratifying","trusting","small-scale","intravenous","crashing","exhaustive","afire","clammy","sleazy","florid","heartless","transcendent","restored","demonic","abusive","avowed","shrunken","objectionable","tailored","arms-control","listless","polluted","palatable","funded","elective","entrenched","classy","operatic","daunting","roaring","preferential","languid","three-hour","virile","inspiring","enhanced","scrupulous","bottomless","ginger","wispy","advantageous","rapt","umbilical","uphill","ordered","enraged","detrimental","curt","exalted","hard-pressed","intangible","fussy","forgiving","facile","populous","condemned","mashed","hard-boiled","introductory","rowdy","switching","perplexing","spilled","southeastern","undulating","fractured","inherited","inscrutable","measurable","stunted","hormonal","stylized","hierarchical","air-conditioned","aimless","subsidized","paying","symmetrical","nomadic","cloudless","reigning","thatched","perceptible","anesthetic","anti-American","miscellaneous","homesick","preparatory","seven-year","big-city","decadent","searching","all-important","inanimate","senatorial","diminutive","soft-spoken","contingent","dusky","smashing","precipitous","bulging","standardized","biographical","restive","indecent","upper-class","ecumenical","interchangeable","lumbering","fascinated","untidy","indulgent","leaden","wanted","endemic","doomed","wanting","receiving","engaged","unparalleled","abbreviated","malevolent","wishful","carnival","world-wide","protruding","resplendent","stranded","structured","biased","frosty","northwestern","viral","mindful","paved","indeterminate","painless","second-floor","geological","permissive","downhill","unsuspecting","expectant","fabled","jittery","windowless","evocative","unsolved","disoriented","monastic","soluble","misshapen","antiquated","repugnant","non-Communist","retiring","shaded","combative","high-powered","resilient","antagonistic","starched","vice-presidential","speckled","lopsided","bluish","late-night","prim","unrestrained","almighty","tyrannical","unkempt","menstrual","bleached","overgrown","idiosyncratic","shoddy","hallowed","trying","halting","princely","drugged","gratuitous","descending","fatherly","avant-garde","laborious","pinched","disguised","caustic","bespectacled","handwritten","goodly","itinerant","cryptic","undisclosed","affordable","outmoded","expedient","moody","tepid","firsthand","digging","elitist","observed","chartered","slain","five-day","unimpressed","tactful","idyllic","prostrate","ramshackle","expert","deferred","undistinguished","prized","transatlantic","crystalline","tacky","haunting","nutritious","bereft","turquoise","time-consuming","sanguine","culinary","fraught","precocious","assigned","scrambled","advisable","nationalistic","long-awaited","unwrapped","unchallenged","circumstantial","pleasurable","compressed","humanistic","unforeseen","diversified","frenetic","disapproving","proletarian","conspiratorial","featureless","going","commendable","no-nonsense","chipped","surreal","salient","pissed","insurmountable","backstage","contented","indebted","adoring","one-room","prewar","potted","accelerating","thorny","possessive","abiding","ever-increasing","bloodless","high-technology","counterproductive","attracting","entrepreneurial","cooling","unoccupied","craggy","leathery","degenerate","additive","weakened","quilted","untold","incandescent","intractable","middle-income","abject","self-made","gaseous","anal","displaced","unabashed","immutable","fluttering","ten-year","bearable","stamped","darkening","beefy","petite","charging","high-quality","left-hand","age-old","checkered","stupendous","priestly","loath","endearing","exacting","correctional","freak","sneaky","disgraceful","unholy","oriental","wayward","societal","hard-core","bilingual","flipping","staid","paramilitary","heartfelt","shapely","kosher","heedless","incurable","controlling","in-house","choral","manicured","cardinal","inconspicuous","steely","vanishing","misplaced","centre-fire","enchanted","unfounded","wrecked","womanly","delirious","deposed","panicky","differential","tawny","articulated","coded","wide-open","unregulated","lenient","feathered","simplified","beguiling","sectarian","producing","tiled","inorganic","frosted","lusty","scented","rotating","grievous","dissimilar","salaried","unequivocal","strangled","grubby","alluring","downcast","restraining","unjustified","contaminated","lacy","cinematic","second-class","splintered","adorable","derisive","state-owned","requisite","fleeing","uncomplicated","motherly","inter","high-heeled","climatic","republican","unqualified","leveraged","intercontinental","uncharacteristic","compositional","unwritten","patriarchal","brusque","unresponsive","replete","corrective","reflected","scraping","doctoral","premium","deductible","alternating","amorous","overjoyed","recalcitrant","presumptuous","vaulted","declared","inexorable","groggy","diminished","restful","retroactive","presumed","monolithic","curtained","tortured","ground","trendy","brassy","prosaic","inactive","chaste","bumpy","aggrieved","corny","centrist","trapped","noxious","jerky","concomitant","withholding","poorly","stolid","unguarded","methodological","primordial","retreating","telescopic","sidelong","off-duty","pleated","dissenting","agreed","double-action","optimal","plaintive","banned","kindred","quintessential","impervious","jumping","disenchanted","observant","congested","second-rate","reasoned","extrinsic","infantile","transitory","coveted","small-time","doctrinal","incomparable","jaded","special-interest","sociable","shameless","coloured","ascending","fraternal","queasy","wont","exhilarated","salted","disquieting","listed","unchanging","nine-year-old","unrestricted","uppermost","reputable","dummy","skimpy","crusty","corrosive","bubbling","decrepit","unsuitable","snarling","destitute","illuminating","systemic","material","unwashed","rushing","dialectical","jeweled","attached","liberating","judicious","errant","vanished","worn-out","erstwhile","uninformed","twelve-year-old","longterm","petulant","twin","self-righteous","afflicted","snappy","tantamount","sworn","unethical","drained","hydroelectric","perplexed","logistical","concentric","unifying","lunatic","invincible","diffident","inexhaustible","discouraging","dreamlike","artful","rolled","suppressed","secretarial","smoldering","redundant","forensic","million-dollar","self-styled","earned","weightless","signed","compensatory","glacial","unmanned","stalwart","funky","intensified","uninterested","submerged","urbane","glib","ascetic","contractual","warlike","high-priced","diagonal","cylindrical","gargantuan","illuminated","unconditional","hulking","supplementary","dictatorial","puny","sedate","moonlit","eight-year-old","gullible","counterfeit","alienated","spinning","analytic","nimble","adaptive","individualistic","numbered","blissful","insolent","supplemental","delectable","inordinate","unbalanced","tormented","unchecked","aspiring","punishing","self-serving","crossed","discretionary","box-office","snow-covered","improvised","squalid","orphaned","grizzled","unsmiling","disappearing","affiliated","readable","blocking","bullish","contending","burned-out","bloodied","subsidiary","complimentary","unclean","scanty","uprooted","farfetched","solicitous","regulated","threadbare","choppy","ever-present","negligent","nonstop","one-day","wild-eyed","infuriating","vivacious","abominable","wrought","inaudible","braided","transcendental","desultory","climactic","appellate","interlocking","submissive","unmatched","dapper","demeaning","adaptable","well-meaning","lustrous","tax-free","ungrateful","gentlemanly","missed","loathsome","incalculable","blistering","amenable","tremulous","massed","nonpartisan","unsettled","three-story","succulent","trite","masterful","reticent","unsettling","proverbial","strapping","spurious","invulnerable","paltry","embryonic","repeating","neural","sultry","metaphorical","foreign-policy","linked","pubic","beaming","ministerial","phantom","quizzical","hilly","cold-blooded","gregarious","three-piece","untroubled","bisexual","pensive","unpretentious","exploratory","unscathed","irrepressible","pelvic","newfound","starry","corned","overworked","illogical","unfaithful","interrelated","saintly","overcast","connected","ungainly","organizing","carnal","philosophic","nationalized","fickle","ultraviolet","crass","undeveloped","unprofitable","sheepish","archaeological","out-of-town","balmy","spongy","infallible","callous","scathing","rheumatic","audacious","participating","swarthy","hand-held","comatose","modernist","stellar","antinuclear","delinquent","time-honored","presiding","relaxing","high-pressure","impetuous","hypodermic","fringed","favourite","unscrupulous","inspirational","mystified","wobbly","intrepid","deferential","burdensome","stored","supervisory","seventeenth-century","six-day","interdependent","updated","all-powerful","unitary","stand-up","laconic","penniless","steadfast","dogged","scholastic","convertible","mingled","sorrowful","symptomatic","stylistic","well-intentioned","consuming","sketchy","weakening","generative","atrocious","first-quarter","irrevocable","charged","stoned","dividing","apathetic","debatable","uncomprehending","overhanging","galloping","kinky","uncritical","suave","undisputed","spiky","inarticulate","extracurricular","guttural","impressed","departing","yellowed","discontented","adroit","high-fiber","second-hand","blinking","formless","unsavory","new-found","withered","collected","menial","unobserved","flabby","afterward","vanquished","stained-glass","hour-long","bittersweet","invalid","incriminating","commensurate","all-American","assumed","tried","cursory","absorbing","clearing","confirmed","stressful","depleted","eight-year","participatory","stripped","concave","regrettable","fortified","effortless","regressive","irreverent","collegiate","defunct","grainy","inhospitable","gripping","grizzly","restoring","arterial","busted","indomitable","demure","rabid","headlong","blue-green","bound","breezy","materialistic","uneducated","scruffy","cohesive","full-blown","cranky","motivated","mauve","hardworking","melodic","genital","decorous","comely","rife","purported","hurtful","six-foot","macabre","odious","convulsive","well-trained","heterogeneous","curled","pearly","spindly","latter-day","innermost","clipped","checked","masterly","laughable","naturalistic","tinkling","impudent","fitful","illustrated","speeding","roasted","in-depth","helluva","vigilant","empty-handed","forged","wrought-iron","disgraced","agonized","infirm","preserving","tasteful","onerous","shredded","impregnable","slanted","tainted","opened","first-time","machine-gun","bottled","seismic","fetid","saturated","insubstantial","full-page","aromatic","stingy","promiscuous","unlit","regimental","spellbound","streamlined","bereaved","ruffled","creepy","treasured","ensconced","one-party","well-educated","pert","mercantile","all-purpose","voracious","tortuous","despised","unadorned","offhand","qualifying","manipulative","indelible","well-established","revolting","ethereal","roasting","prohibitive","domed","whipped","overstuffed","garrulous","skittish","revived","heartening","jumpy","grilled","melted","unfocused","spectral","unproductive","top-level","life-size","three-way","negotiable","disloyal","turn-of-the-century","four-hour","unopened","devilish","amorphous","antiseptic","sharpened","primeval","unrecognizable","ineligible","expendable","deathly","auspicious","insoluble","inimical","unquestioned","far-flung","medicinal","deep-seated","formative","iridescent","fragmentary","distinguishable","auburn","closed-circuit","emeritus","third-floor","hazel","tumbling","departed","obstinate","portentous","quixotic","scorched","adjustable","winged","intrusive","taxing","high-ceilinged","barbarous","decreasing","sleeveless","unattended","tight-lipped","concluding","unobtrusive","starved","quirky","big-time","sooty","copious","stalled","scriptural","unconvincing","earthen","throaty","august","extant","sexist","exultant","cancerous","psychedelic","yielding","matched","chunky","unfathomable","concise","admitting","knitted","projective","euphoric","garbled","divisional","despondent","recommended","passable","vegetarian","indefatigable","irreparable","feisty","untenable","contrite","angelic","reputed","untimely","dejected","appreciable","remembered","hellish","rear-view","open-air","ill-fated","nonpolitical","factional","separatist","contributing","post-war","uneventful","metaphoric","unsound","unwitting","venomous","harried","engraved","collapsing","reformist","thematic","inclusive","cheering","springy","obliging","contemplative","unbridled","state-run","reflex","allegorical","geopolitical","disembodied","issuing","bountiful","alright","overbearing","muddled","congenital","distinguishing","absorbed","tart","french","autumnal","verifiable","grueling","crackling","aft","punishable","freckled","indestructible","imprecise","hard-nosed","thoughtless","through","proficient","pent-up","never-ending","hunted","defensible","arresting","across-the-board","spotty","orchestral","undefined","stacked","implausible","antitank","unwary","inflamed","sacrificial","oil-producing","leaky","mint","chronological","conquering","jumbo","three-week","addictive","uninhibited","substandard","contracting","degenerative","triumphal","flowery","cardiovascular","shaken","undefeated","unassuming","luscious","unperturbed","gleeful","sentencing","brawny","perfumed","mild-mannered","healthful","left-handed","rancid","well-defined","unmanageable","drowning","clinging","anachronistic","revered","enriched","capitalistic","good-by","invigorating","practicing","unsold","long-legged","unruffled","aboriginal","inane","bedraggled","early-morning","run-down","straight-backed","reverent","acquired","bestselling","top-secret","woolly","foolhardy","sticking","blue-black","impassable","overcome","coiled","front-line","tinted","acquisitive","slatted","octagonal","receding","investing","doctrinaire","all-white","caring","prejudiced","slow-moving","circulating","science-fiction","shortsighted","disaffected","lawless","chastened","lewd","rubbery","foaming","unsympathetic","ladylike","betrayed","neurological","shouting","good-sized","electrostatic","untoward","flabbergasted","citywide","unanticipated","knotted","whitewashed","year-end","enticing","migratory","multicolored","hashish","ascorbic","topless","heathen","spherical","filmy","deviant","centennial","proportionate","instructional","contrived","savvy","over-the-counter","fast-moving","measuring","uptown","compliant","favourable","unforgivable","undamaged","psychoanalytic","gebling","bubbly","ready-made","caged","ostentatious","superhuman","busing","cream-colored","self-destructive","ostensible","cobbled","whirling","released","showy","baleful","red-hot","named","monogamous","fallow","disdainful","cyclical","long-running","pitiless","diffuse","omnipresent","mossy","cutting","astounding","lyric","dark-blue","unsophisticated","indigent","coincidental","imperceptible","veterinary","coercive","multilateral","ageless","law-abiding","functioning","beneficent","crawling","overturned","steamed","comprehensible","oil-rich","undetected","ribbed","nautical","textured","fast-growing","nauseous","vaunted","paralyzed","maimed","short-range","impure","unintended","practicable","intermediate-range","unfulfilled","behind-the-scenes","backhand","voluble","goofy","apolitical","contraceptive","waning","blasted","sundry","profane","binary","rock-and-roll","ruinous","open-ended","next-door","withering","conical","flustered","decided","able-bodied","round-trip","decreased","half-empty","sponsored","riotous","stereotyped","five-minute","irreplaceable","harrowing","uninteresting","salutary","frugal","disjointed","cupped","freshwater","shaven","ravenous","bulbous","stepped-up","swaying","two-room","valued","planted","bright-eyed","unreadable","trucking","infatuated","dysfunctional","pinkish","futuristic","airtight","unseemly","sizzling","mercurial","conic","unfettered","undisciplined","unrecognized","well-publicized","income-tax","self-appointed","ice-cold","biochemical","contemptible","barefooted","droll","mythological","tree-lined","rearing","luxuriant","heartbreaking","tufted","well-organized","selfless","world-class","unwieldy","contested","rasping","downright","ingratiating","self-proclaimed","parasitic","graying","reformed","cautionary","untested","beaded","maniacal","eucalyptus","pliable","air-conditioning","moot","traceable","anti-abortion","antisocial","reprehensible","self-imposed","yellowing","teasing","porous","ersatz","unwavering","untouchable","underprivileged","auditory","escaping","subservient","unspoiled","anterior","fatuous","lordly","infernal","bouncing","taboo","orthopedic","spiteful","surging","nuts","esteemed","outlawed","pushy","displeased","self-confident","attainable","bowed","cast-iron","despicable","unconvinced","famished","coed","bygone","nonaligned","sectional","typed","squeaky","disparaging","cut-rate","heart-shaped","offbeat","velvety","well-worn","upsetting","leery","long-lost","horse-drawn","puritanical","payable","fertilized","predicted","allowable","peaceable","soundless","marshy","discordant","intoxicating","concurrent","uncut","tantalizing","pedagogical","accursed","two-man","connective","hawkish","ripped","cleared","double-digit","unencumbered","yawning","manifold","stopped","untreated","subliminal","grayish","gory","upper-middle-class","avenging","self-fulfilling","equatorial","saucy","barred","arch","midwestern","blue-gray","tarnished","leafless","incisive","unearned","botanical","feline","extraneous","prep","intransigent","change-minimizing","insurgent","acrimonious","thermonuclear","blue-chip","crummy","acoustic","oversize","fated","galactic","cantankerous","ill-advised","detectable","lower-class","sacrosanct","palatial","conditional","insulated","step-by-step","nebulous","two-dimensional","well-heeled","bronchial","subatomic","semifinal","first-year","dark-eyed","tinny","attacking","indecisive","anatomical","brotherly","blooming","sinuous","meditative","socalled","rheumatoid","received","bleary","half-naked","leaded","woody","averse","shuddering","door-to-door","heretical","suspect","untapped","ravaged","decentralized","rutted","ineffable","intolerant","mechanized","fortuitous","equestrian","seven-year-old","darting","consoling","modern-day","ground-floor","emblematic","lurking","two-year-old","purplish","disorganized","vaudeville","circulatory","eight-hour","presentable","anarchic","unsatisfied","labored","maudlin","trampled","gibberish","unaccountable","sedentary","heavy-duty","thrilled","tutoring","self-centered","do-it-yourself","inquiring","uncaring","disillusioned","bloodstained","surface-to-air","consular","subconscious","four-year-old","collaborative","terraced","figurative","sinewy","horn-rimmed","impertinent","hit-and-run","standby","medium-size","peremptory","incremental","first-aid","dyed","centrifugal","omnipotent","lascivious","two-month","unionized","discredited","mass-produced","feathery","self-indulgent","liturgical","enviable","fifteen-year-old","buxom","abashed","urinary","newsworthy","flailing","beastly","undiscovered","strong-willed","prenatal","brownish","announced","flaky","washed","nightmarish","broad-shouldered","short-sleeved","two-bit","self-assured","whitish","suffocating","black-haired","full-size","self-help","created","uninhabited","smokeless","no-fault","unfashionable","mushy","forested","adhesive","creased","insufferable","down-to-earth","trifling","landless","disreputable","self-effacing","sporty","confined","adoptive","monogrammed","motley","duplicate","silver-haired","rejected","undifferentiated","blasphemous","institutionalized","blue-and-white","hip","winsome","button-down","discerning","abused","clean-cut","bracing","self-supporting","unsupported","premarital","flattered","studious","repetitious","marketable","anemic","meaty","airless","unhurried","galvanized","feal","peace-keeping","rapacious","bulletproof","well-placed","helmeted","packaged","court-ordered","aggravated","gastrointestinal","hand-to-hand","sixteen-year-old","fretful","fourth-quarter","conquered","satiric","nutty","befuddled","humorless","pitched","burnished","mirrored","fishy","fluted","conditioned","military-industrial","one-story","barbarian","branching","dynastic","unthinking","unconscionable","hunched","post-World","capital","putative","incendiary","shaving","topical","self-satisfied","farcical","narcissistic","kneeling","born-again","old-line","amateurish","ill-fitting","scaly","unpainted","eroding"];var t6={};Object.defineProperty(t6,"__esModule",{value:!0});t6.default=["man","world","hand","room","face","thing","place","door","woman","house","money","father","government","country","mother","water","state","family","voice","fact","moment","power","city","business","war","school","system","car","number","office","point","body","wife","air","mind","girl","home","company","table","group","boy","problem","bed","death","hair","child","sense","job","light","question","idea","law","word","party","food","floor","book","reason","story","son","heart","friend","interest","right","town","history","land","program","game","control","matter","policy","oil","window","nation","position","ground","blood","action","wall","street","husband","fire","mouth","arm","sound","service","chance","information","price","building","road","paper","court","attention","space","trouble","form","society","art","market","force","effect","nature","chair","period","order","television","president","tax","field","glass","thought","industry","process","phone","plan","center","truth","couple","decision","change","eye","campaign","issue","situation","effort","report","sun","experience","peace","letter","level","energy","role","development","result","evidence","meeting","smile","support","baby","team","show","community","brother","picture","kitchen","production","press","study","daughter","director","dinner","class","defense","piece","record","desk","stage","earth","movement","future","board","security","sea","horse","language","public","church","course","bill","river","coffee","wind","bank","corner","committee","pain","help","answer","subject","hospital","film","economy","trade","feeling","member","apartment","ship","silence","seat","gold","education","leader","pressure","doctor","shoulder","sight","scene","figure","crowd","fear","telephone","labor","success","population","style","station","value","sky","growth","foot","radio","sign","strength","capital","neck","college","budget","breath","choice","direction","guy","agreement","speech","skin","will","amount","plane","practice","marriage","audience","movie","gun","living","hall","concern","income","quality","dog","cause","hotel","race","difference","stone","box","army","trip","distance","attack","chairman","election","presence","computer","science","color","theory","spring","machine","purpose","organization","material","image","tree","surface","officer","administration","act","statement","battle","page","suit","lady","play","stock","list","freedom","bar","relationship","farm","authority","student","conference","ball","structure","nose","plant","career","wood","basis","deal","source","chest","message","stuff","middle","sister","drink","majority","sex","store","trial","character","boat","union","animal","ice","front","firm","heat","hope","rock","weight","disease","spirit","memory","king","response","manner","opinion","operation","increase","lawyer","expression","kid","bag","department","crime","train","executive","aid","dream","beginning","rain","prison","conversation","shirt","lunch","possibility","pleasure","management","danger","rule","throat","wine","behavior","return","hat","surprise","snow","property","flight","training","ability","project","camp","range","approach","agency","treatment","reality","village","bottle","attempt","crisis","drug","violence","inflation","enemy","responsibility","opposition","newspaper","victory","dress","condition","darkness","opportunity","account","degree","pocket","performance","manager","visit","threat","failure","brain","driver","charge","beer","coat","shot","metal","activity","influence","intelligence","bit","official","existence","example","truck","note","construction","shape","event","screen","faith","safety","path","culture","chief","relief","grass","contract","product","investment","weather","soul","murder","bedroom","magazine","model","cup","leg","traffic","writer","beauty","song","share","cancer","patient","credit","club","argument","speed","quarter","design","desire","vision","candidate","bottom","pattern","date","finger","teacher","tea","section","article","flesh","island","balance","spot","meaning","technology","crew","proposal","leadership","concept","object","impact","guard","analysis","birth","shop","knife","advantage","generation","appearance","variety","anger","religion","reaction","fight","star","exchange","agent","investigation","milk","judge","silver","region","steel","ear","sugar","strike","youth","hole","thinking","attitude","supply","start","jacket","jury","taste","secretary","mountain","confidence","master","artist","spokesman","demand","cigarette","track","captain","network","whole","university","conflict","noise","smoke","commission","mirror","accident","plastic","garden","debate","interview","command","tradition","protection","dust","watch","lead","solution","measure","motion","discussion","mission","opening","respect","extent","struggle","goal","tongue","moon","author","iron","breakfast","competition","cover","legislation","environment","sake","justice","fuel","hill","key","length","shock","band","version","contact","engine","settlement","mistake","restaurant","revolution","estate","camera","beach","post","pool","fashion","football","border","touch","laughter","title","background","principle","strategy","roof","forest","philosophy","entrance","pause","doubt","bird","tape","belief","card","ring","occasion","wheel","capacity","cat","collection","passage","writing","bridge","owner","novel","pride","damage","contrast","judgment","gift","division","professor","bathroom","plate","explanation","smell","district","park","wave","player","present","theater","atmosphere","emergency","leather","impression","painting","neighborhood","block","function","circle","sentence","priest","method","warning","editor","ceiling","target","tour","gate","site","baseball","airport","shadow","walk","approval","gesture","individual","difficulty","attorney","criticism","affair","request","doorway","reputation","minority","consumer","notion","general","convention","being","honor","partner","chain","commitment","weapon","joke","coal","meal","reading","detail","library","debt","other","mail","drive","fellow","profit","soldier","forehead","housing","excitement","soil","literature","pilot","dance","reform","volume","scale","imagination","challenge","desert","secret","poet","cabin","average","factor","corn","check","wonder","absence","search","wedding","yard","hero","address","confusion","fool","package","victim","fault","platform","democracy","regime","terror","nurse","stream","offer","medicine","flow","grain","row","county","self","glance","humor","promise","employment","advance","planet","recreation","trail","chicken","storm","creature","mass","stand","ass","gaze","poetry","coast","lake","council","breast","corridor","conclusion","talent","tension","reporter","cut","appeal","total","belt","jail","passion","mayor","claim","combination","highway","wire","rifle","cheek","frame","exercise","incident","testimony","ticket","coach","connection","expert","disaster","valley","minister","deck","territory","chin","universe","independence","counter","resistance","cell","governor","salt","elevator","loan","release","schedule","porch","sheet","cloth","personality","actor","bomb","temperature","bench","break","code","journey","childhood","emphasis","aspect","pot","branch","identity","guest","arrival","recognition","hearing","lap","diet","factory","horror","fence","survey","fate","habit","lobby","bone","routine","discovery","comment","burden","treaty","knee","route","cry","ocean","fund","map","signal","ride","bear","deficit","height","element","sword","birthday","standing","cream","panel","fighting","travel","grandfather","creation","appointment","chapter","funeral","phrase","shore","planning","couch","survival","engineer","wagon","suggestion","waste","guilt","chamber","commander","clock","establishment","flag","content","supper","consciousness","proof","pack","beard","portion","comfort","resolution","sunlight","substance","benefit","honey","protest","prayer","stick","description","device","cloud","display","uniform","gasoline","tail","satisfaction","blanket","mess","consumption","drop","invasion","theme","mystery","belly","association","prospect","port","pipe","reference","skill","rear","heaven","destruction","worker","concentration","file","flat","cab","consideration","uncle","customer","laugh","radiation","favor","studio","boss","transportation","wage","fortune","tent","poem","procedure","clerk","surgery","percentage","expense","cap","household","match","bunch","column","intention","cousin","involvement","host","definition","wheat","permission","can","warmth","draft","silk","aide","lip","conviction","rope","illness","instrument","gap","string","adult","sweat","lover","evil","faculty","enthusiasm","farmer","missile","grin","tank","expansion","emotion","waist","discipline","distinction","technique","profession","wisdom","square","laboratory","tie","review","stranger","communication","pile","arrangement","palm","ceremony","tower","sympathy","deputy","script","nomination","friendship","institution","pass","civilization","magic","client","standard","significance","sport","defeat","announcement","reduction","grandmother","bowl","closet","genius","league","citizen","delivery","button","necessity","reader","lesson","trust","green","experiment","escape","craft","pistol","limit","witness","error","assistant","grace","salary","alarm","fist","potential","withdrawal","phase","bell","perspective","rose","score","amendment","fever","tip","god","crop","vehicle","barn","symbol","tale","exception","shift","scheme","suicide","tendency","logic","license","pollution","trend","bath","focus","producer","distribution","cotton","alternative","vacation","muscle","cycle","steam","palace","harm","location","beef","shame","policeman","compromise","tube","participation","fat","item","curiosity","blade","membership","lord","departure","shade","acid","enterprise","jet","selection","jungle","bond","retirement","alliance","bow","railroad","soup","airline","divorce","sofa","gear","gentleman","robe","plot","speaker","examination","egg","handful","recovery","embassy","entry","bastard","improvement","grip","invitation","barrel","context","controversy","fiction","revenue","reply","garage","crash","collar","landscape","grief","pen","teaching","angle","trunk","acceptance","recession","abortion","explosion","application","counsel","dignity","paint","landing","mixture","triumph","stove","winner","summit","thumb","depth","feature","setting","payment","grave","notice","museum","cop","graduate","sidewalk","taxi","trick","lamp","photograph","index","tray","essence","empire","tragedy","alcohol","flower","phenomenon","contribution","shower","castle","cross","booth","lawn","intensity","abuse","determination","passenger","opera","publication","wrist","hint","learning","punishment","ad","skirt","servant","prisoner","physician","midst","purse","rank","neighbor","elbow","contempt","round","cave","coverage","weakness","panic","basketball","juice","shooting","exposure","brick","miracle","unity","accent","coalition","fur","envelope","horizon","glory","stress","delight","politician","conscience","despair","rail","virtue","parent","dispute","killing","corruption","pound","core","stake","proportion","assault","curtain","efficiency","infant","count","suspicion","complex","formation","lock","entertainment","conduct","wit","outcome","shuttle","companion","discrimination","aunt","anxiety","shelter","confrontation","tool","climate","peak","cage","darling","assumption","stability","well","flame","marketing","currency","electricity","text","regulation","comedy","automobile","scientist","cake","scandal","contest","glow","cigar","arrest","brush","boom","basement","document","assembly","output","hut","slave","marble","breathing","pitch","loyalty","affection","resignation","guide","frustration","bureau","adviser","fleet","sector","privacy","awareness","fantasy","speculation","queen","tide","brass","formula","curve","zone","skull","sin","cable","corporation","foundation","achievement","countryside","monster","killer","strain","mask","breeze","whiskey","gang","rhythm","interpretation","basket","extension","tissue","satellite","doctrine","motor","hunger","intervention","kiss","fee","portrait","drawer","analyst","economist","reflection","visitor","transit","reception","provision","slope","sheriff","tunnel","complaint","devil","liquor","throne","hook","temple","tribe","preparation","handle","shoe","origin","helicopter","ruling","injury","crack","flash","gown","jaw","hallway","consequence","depression","subway","leave","drawing","cabinet","initiative","embarrassment","holiday","wilderness","towel","purchase","indication","sink","morality","impulse","rent","enforcement","utility","detective","comparison","critic","dish","hack","photo","crown","operator","conspiracy","rhetoric","bull","inquiry","humanity","demonstration","grade","alley","male","plain","pillow","remark","beast","seed","observation","guerrilla","straw","occupation","champion","excuse","possession","kingdom","snake","nerve","roll","horn","objective","cargo","mate","offense","resort","sequence","apple","bullet","presidency","strip","stroke","pig","print","champagne","saddle","dialogue","suitcase","protein","cook","quantity","toilet","chill","ranch","squad","priority","concert","van","adventure","representative","custom","shell","pension","prince","wound","video","courtroom","suffering","clay","actress","pencil","assignment","shelf","primary","waiter","charm","wool","sweater","soap","psychology","widow","delay","obligation","therapy","sergeant","shortage","myth","collapse","delegation","wish","perception","receiver","sauce","painter","reach","dear","fabric","carrier","ladder","hatred","dancing","cottage","opponent","dealer","prosecution","whisper","spread","poll","beam","exhibition","sigh","fog","harbor","successor","relation","gallery","prize","fireplace","fighter","pit","representation","prosecutor","liberty","bargaining","ownership","root","tin","celebration","stretch","nightmare","transport","link","diplomat","flood","architect","peasant","female","lab","category","inside","tune","carpet","mercy","fraud","introduction","facility","net","temper","rug","conception","eating","legend","tourist","refusal","disappointment","sensation","innocence","transfer","powder","parade","pursuit","parlor","pine","orbit","promotion","senator","colony","cart","interior","productivity","trap","identification","ambition","hip","admiration","corpse","emperor","patch","realm","barrier","ambassador","carriage","residence","maid","gathering","switch","lieutenant","sorrow","contrary","legislature","cliff","lightning","ritual","mist","salad","separation","flour","continent","poison","elite","radar","assessment","outfit","ideology","pad","exile","praise","employee","succession","gain","illusion","option","gravity","journalist","businessman","constitution","singer","sentiment","scope","transition","warrior","cast","march","herd","intent","inspection","episode","uncertainty","spell","isolation","observer","glimpse","privilege","spy","toy","thread","margin","anniversary","irony","organ","lecture","misery","needle","revolver","composition","admission","odor","candy","bid","classroom","bride","vitamin","refrigerator","sandwich","subcommittee","rescue","lad","defendant","blast","angel","compartment","vegetable","minimum","violation","agony","edition","compensation","evolution","treasure","salesman","log","clinic","layer","pitcher","publisher","suite","estimate","airplane","tournament","trace","hammer","reward","broadcasting","running","raid","specialist","mortgage","oak","pole","rocket","aisle","brandy","bureaucracy","mustache","vessel","penalty","export","orange","ignorance","hostility","integration","motive","ban","consultant","timing","equivalent","patrol","liver","assassination","instruction","leaf","railway","freeze","mention","designer","daylight","velvet","amusement","bush","fly","cloak","copper","orchestra","mechanism","chocolate","instinct","circuit","feed","courtyard","mob","profile","bombing","retreat","favorite","revenge","infection","historian","theatre","consent","bucket","mill","insult","pregnancy","psychiatrist","employer","presentation","swing","removal","financing","destiny","label","finish","ghost","channel","equality","requirement","dock","statue","doll","fan","mistress","oven","rim","scent","restraint","frontier","twin","framework","surveillance","diamond","pie","lion","cord","posture","wallet","stool","rally","realization","banker","invention","province","colonel","ally","inspiration","encounter","makeup","certainty","venture","takeover","daddy","ratio","fatigue","verdict","pardon","caution","scream","sleeve","coin","album","acquisition","laundry","transformation","handkerchief","candle","terminal","elephant","madness","appetite","rod","manufacturer","voyage","locker","pulse","indictment","riot","giant","sample","heritage","instance","hay","cure","clan","navy","monopoly","photographer","cowboy","bishop","linen","sacrifice","mortality","dilemma","frequency","harmony","junk","component","bargain","dragon","ruler","replacement","maker","blessing","resentment","surge","costume","editorial","mansion","hood","cellar","bout","driveway","championship","ambulance","sickness","guitar","rejection","compound","launch","journal","sculpture","preference","balcony","lid","toast","chart","motel","agenda","sadness","dimension","verse","scholar","submarine","confession","carbon","thunder","canal","socialism","merchant","bolt","insight","tub","topic","wolf","ridge","shed","gambling","arrow","con","lodge","bicycle","complexity","liberation","disorder","urge","circulation","pickup","distress","spine","romance","anticipation","military","lamb","gloom","pond","republic","ballet","bankruptcy","appreciation","rebellion","custody","feast","fluid","expedition","altar","recipe","array","anguish","harvest","sack","fraction","loneliness","trailer","notebook","surgeon","slip","festival","inability","pan","clearing","making","revival","rack","flashlight","sociology","heir","segment","moonlight","reign","exploration","burst","pet","charity","bundle","assurance","murderer","thrust","conservation","confirmation","outrage","quest","grant","perfection","liquid","stance","jar","essay","addition","diplomacy","rat","outlook","capability","broadcast","cocktail","breeding","immigration","optimism","urgency","helmet","correspondent","breakdown","domain","dressing","dancer","pork","colleague","crystal","insistence","guarantee","lane","dependence","chapel","transmission","hunt","turkey","veto","canoe","interference","sailor","arena","refuge","attraction","thesis","waitress","trigger","founder","briefcase","scholarship","commissioner","stack","lift","greeting","mining","partnership","cane","devotion","thief","troop","menu","finance","coincidence","sleeping","picnic","lounge","dose","jeep","brand","reasoning","proposition","administrator","cylinder","execution","commodity","drum","bronze","staircase","pin","whistle","robbery","catch","thigh","descent","canyon","ballot","shotgun","curb","nod","continuity","shaft","guess","gossip","jurisdiction","revolt","worry","recording","repair","saw","suspect","dome","globe","runway","resident","cemetery","conversion","black","passport","cease-fire","imitation","salvation","cement","creek","nephew","buddy","lung","embrace","ink","simplicity","sunset","astonishment","butt","oath","typewriter","outline","tribute","deadline","hostage","underwear","revelation","reluctance","dread","nest","nut","disposal","disclosure","destination","terrain","procession","recommendation","recorder","potato","ramp","accounting","bat","precision","heap","justification","fork","idiot","biography","prey","ivory","rumor","toll","robot","mix","glare","seal","sweep","haven","bike","courtesy","interaction","secrecy","ham","superiority","synagogue","calendar","ledge","engagement","lace","timber","turmoil","tooth","perfume","magnitude","veteran","lemon","cutting","tomb","accord","ammunition","spear","hunter","acquaintance","grocery","coming","pump","reservation","slide","award","institute","fringe","freight","accuracy","spectrum","ski","diameter","battery","desperation","pounding","variation","ankle","pepper","encouragement","cathedral","expectation","calf","monkey","suburb","rabbit","objection","dismay","boot","pipeline","lust","firing","aggression","ghetto","armor","merger","sphere","texture","moisture","kidney","broker","auction","hose","patent","hesitation","mound","cruise","goat","declaration","regret","conductor","terrace","contention","crap","manuscript","incentive","buyer","gin","principal","steak","novelist","criminal","heel","intellectual","conservative","quarterback","collector","motorcycle","refugee","punch","cluster","clown","preacher","torture","headache","pact","lump","buying","flavor","toe","spectacle","apron","banner","convenience","import","attendant","kindness","verge","dairy","umbrella","dam","inventory","turning","homeland","remainder","gum","plight","container","diversity","drought","reporting","biology","chemistry","curse","scar","merit","spray","reactor","shield","clarity","bamboo","metaphor","vocabulary","runner","luxury","diagnosis","bunk","white","statute","knock","garment","breed","railing","zoo","rival","supermarket","streak","pavement","discomfort","congregation","twilight","bacon","slot","scarf","dime","charter","grammar","theft","sensitivity","mainland","classification","coffin","rider","competence","adoption","reserve","fascination","specialty","mike","temptation","yield","evaluation","passing","intimacy","translation","philosopher","cafe","sitting","superintendent","pill","housewife","signature","correspondence","siege","inn","leftist","injustice","assertion","restoration","registration","farmhouse","denial","endorsement","predecessor","final","demon","greed","transaction","repression","mattress","nobility","embargo","bosom","gym","tenure","addiction","apology","double","litter","nail","incidence","merchandise","volunteer","labour","basin","fiber","whip","payroll","microphone","cruelty","ax","supervisor","resource","maturity","resemblance","cult","stadium","limousine","welcome","knot","probability","menace","nominee","characteristic","stare","vodka","obsession","nursery","paragraph","discourse","candidacy","battlefield","saint","hierarchy","precedent","imperialism","pope","intake","burial","freshman","rebel","mandate","clause","tile","electorate","torch","adjustment","implication","farewell","curriculum","fountain","satin","subsidiary","humiliation","slaughter","discount","crest","princess","asset","greenhouse","reorganization","irritation","ending","messenger","jealousy","breakthrough","mineral","baggage","mouse","tiger","memorandum","kit","substitute","paradise","stride","deed","accumulation","pledge","hull","projection","apprehension","glue","excellence","composer","decay","ditch","slice","beating","syndrome","parole","pony","saying","vulnerability","rental","wax","renewal","disk","athlete","warehouse","organism","disagreement","suspension","documentary","soda","availability","dedication","delegate","reminder","domination","leap","span","obstacle","counselor","taxation","grandson","banana","rehabilitation","stamp","anchor","diary","tunic","boycott","meadow","backyard","dismissal","rating","disc","glove","pasture","catalogue","inspector","exploitation","missionary","density","sail","excess","chemical","disposition","headline","wartime","atom","bartender","blue","wash","shark","negotiation","monument","mom","faction","echo","tomato","scrap","expenditure","plague","fortress","web","briefing","luncheon","vanity","ribbon","nostalgia","drill","frown","dioxide","sovereignty","sweetheart","cot","tag","laser","purity","melody","sanctuary","citizenship","poster","pal","marketplace","girlfriend","programme","retaliation","researcher","allowance","bedside","yacht","scenario","concession","offering","instructor","motivation","litigation","tolerance","puzzle","compliance","duration","quarrel","aura","crusade","salute","intellect","debut","eternity","monastery","immunity","flock","choir","stern","medal","meter","auditorium","equity","fairy","windshield","mare","conquest","razor","push","kick","battalion","generosity","whale","den","mama","emptiness","hysteria","hillside","ideal","landlord","stem","drain","temperament","orientation","spoon","associate","ash","wig","elimination","bark","boost","activist","stature","liar","vein","tract","telegram","completion","pizza","urine","hollow","ordeal","admiral","psychologist","rehearsal","questioning","musician","installation","ministry","puppet","axe","nitrogen","contractor","poker","arch","tractor","reverse","relative","buffalo","deployment","outbreak","pier","veil","summary","courthouse","academy","confinement","catastrophe","technician","specimen","bachelor","lobster","tyranny","discharge","graduation","shout","monitor","traveler","dope","user","vegetation","deposit","investigator","attic","rabbi","reversal","knight","innovation","probe","altitude","legacy","raft","boyfriend","twist","plaza","paradox","witch","folly","physicist","prophet","threshold","plaster","dentist","telescope","vault","climax","parish","balloon","probation","prescription","liability","wheelchair","blackness","colour","booze","exhibit","vest","abundance","hatch","sketch","cartoon","horseback","investor","violin","hazard","trader","stall","healing","prejudice","scorn","rum","accomplishment","limb","produce","epidemic","tumor","camel","starvation","insect","tenderness","cockpit","maximum","patriotism","chauffeur","parliament","capsule","deficiency","massacre","dessert","bail","meditation","petition","hypothesis","ruin","voter","wait","saving","imprisonment","nationalism","lawsuit","surrender","celebrity","contradiction","disgrace","betrayal","slogan","thrill","enjoyment","narrative","canopy","might","vaccine","fort","stereo","hearth","relaxation","asshole","avenue","fright","drift","width","guardian","portfolio","longing","brutality","frenzy","chaplain","chop","tactic","viewpoint","chip","banquet","closing","re-election","impeachment","wardrobe","cradle","facade","finding","tangle","adaptation","hamburger","analogy","fancy","counterpart","dissent","skepticism","gut","advocate","granite","equation","slump","vice-president","nap","foam","buildup","geography","scratch","major","preservation","folder","entity","defiance","nickel","monarchy","shack","teaspoon","chase","remedy","disappearance","foreman","seller","rag","youngster","allegiance","earthquake","columnist","goose","feather","bulb","imagery","bomber","overcoat","harassment","outsider","maze","reproduction","printing","reconciliation","kinship","grease","harp","parallel","stew","particle","accusation","criterion","garlic","boundary","scalp","recess","bearing","warrant","dictatorship","breach","bladder","elegance","fervor","disapproval","monk","tweed","loser","hen","shrug","junta","disguise","gulf","landmark","bourbon","reconstruction","decency","register","feat","hostess","workshop","accommodation","wreck","referendum","viewer","niece","flank","autopsy","boarding","grove","decoration","stain","cape","prophecy","bubble","asylum","commentary","grandeur","subsidy","seizure","badge","limitation","armchair","pro","spark","blaze","centre","split","peril","fusion","goodbye","ringing","solitude","handwriting","crossing","onion","rubber","forefinger","bait","solidarity","measurement","multitude","dump","novelty","truce","perimeter","alien","decree","opposite","constituency","maneuver","ransom","supplier","performer","murmur","coordination","hobby","dough","lantern","cherry","fox","quota","deterioration","flaw","millionaire","raincoat","skeleton","bum","washing","plantation","spotlight","arsenal","villa","sermon","compliment","podium","collision","ratification","jam","loft","theology","escort","tyrant","ore","caste","brokerage","lighter","screw","inheritance","eagle","annoyance","napkin","rationale","flurry","mall","dresser","autobiography","slate","cheer","sulfur","assortment","memorial","electron","detachment","addict","shrine","mold","rookie","astronaut","diesel","neon","heroine","clash","recollection","sweetness","complexion","stewardess","adversary","trance","virgin","screening","classic","nuisance","uprising","shipment","mug","stairway","supporter","famine","stench","click","stupidity","bug","throw","lumber","current","mentality","regiment","galaxy","patron","tap","mischief","contingent","gospel","racket","liaison","honeymoon","foliage","leak","doom","irrigation","mechanic","chef","viewing","swamp","void","mule","lottery","pastor","steward","ranking","survivor","tuition","medication","misunderstanding","prediction","forum","oppression","ale","expanse","consultation","pawn","attachment","franchise","intercom","chunk","mat","pioneer","prairie","familiarity","undergraduate","tenant","chimney","cereal","thirst","pub","packet","aftermath","outburst","habitat","federation","deduction","pageant","circumstance","discontent","microscope","sausage","coma","want","intersection","detention","shrimp","deception","illustration","manipulation","ecstasy","dash","eyebrow","ray","persuasion","builder","injunction","foe","inclination","precinct","slab","anthropologist","amnesty","loaf","radical","intrusion","dwelling","calculation","paperback","usage","paste","ashtray","shovel","capture","ferry","preoccupation","joint","filing","spit","womb","puff","quilt","squadron","playwright","rotation","lease","brilliance","burn","cough","spouse","assassin","flu","cabbage","reliance","console","carpenter","dependency","advertisement","lipstick","mahogany","disadvantage","holder","furnace","certificate","alienation","collaboration","extinction","austerity","pupil","tenor","foyer","bluff","whisky","similarity","pouch","chant","nun","hike","babe","com","input","pianist","treason","brake","shake","dividend","repetition","fisherman","pinch","persecution","brightness","disdain","sunrise","gleam","premise","shawl","kettle","forecast","recipient","strap","outlet","chalk","plywood","nickname","fulfillment","doorbell","keyboard","peanut","knob","compass","interval","intuition","clearance","format","shuffling","dent","ambush","chatter","lettuce","harness","hiring","ache","continuation","fit","friction","pretense","velocity","tavern","abdomen","scout","splendor","barber","flap","plateau","hedge","raising","visa","dictator","housekeeper","cafeteria","enrollment","sailing","ingenuity","limp","bard","consistency","ordinance","bathrobe","gauge","strand","taxpayer","spider","coward","reservoir","brigade","self-interest","crackdown","crib","hum","roommate","traitor","blend","kitten","setup","dagger","sophistication","clout","goddess","disability","touchdown","fertilizer","punk","agitation","seminar","hitter","crust","comprehension","nightgown","gamble","freak","stump","microwave","lever","libel","playground","exhaust","abstraction","picket","diversion","advancement","bourgeoisie","coordinator","myriad","dial","diagram","sensibility","donor","endurance","prominence","playgroup","transmitter","revision","consolation","storyteller","jewel","mourning","burglary","competitor","narrator","verb","butterfly","rationality","ant","mister","satire","placement","reunion","plunge","comb","commuter","carving","hormone","creator","swim","clip","necklace","frost","fix","allocation","thickness","happening","disruption","caravan","rodeo","axis","submission","insanity","protocol","caller","porcelain","aristocracy","interrogation","boyhood","muzzle","delicacy","teenager","undertaking","textile","tailor","defence","comeback","zero","wizard","cupboard","cynicism","behaviour","holster","bulletin","broom","receptionist","listener","exemption","flicker","exam","treasury","hug","interruption","no","drugstore","roast","trifle","jerk","exclusion","inmate","contra","permit","gene","melancholy","alcoholic","trainer","perspiration","instability","doorman","deterrent","occurrence","hem","pricing","wear","hog","cushion","commune","courtship","paradigm","down","participant","triangle","apprentice","prevention","forearm","symptom","flush","newcomer","announcer","gorge","frog","platoon","hawk","rivalry","trench","geometry","clubhouse","feller","hymn","dictionary","showing","homicide","crow","pneumonia","gourmet","flannel","congress","dislike","illumination","jockey","superpower","papa","absorption","fragment","catalog","genre","hypocrisy","duel","cone","organizer","fraternity","cubicle","hardship","restriction","gasp","authorization","partition","barrage","groan","waterfront","aerial","cinema","proximity","mockery","compulsion","slum","default","evacuation","fugitive","carton","chariot","masterpiece","nylon","dialect","tee","bathtub","congressman","vapor","disturbance","mailbox","take","groin","moss","shepherd","formulation","foreigner","solo","elder","textbook","predicament","trait","reef","intruder","captivity","commotion","farce","royalty","exasperation","developer","expulsion","plaid","believer","migration","gal","fitness","idealism","galley","offensive","hometown","sophomore","clump","launching","mast","slowdown","generator","make-up","mount","worm","chuckle","prototype","catcher","crotch","interpreter","graveyard","mane","premium","cuisine","jeopardy","reassurance","vantage","condemnation","vase","blackout","token","abandonment","maple","magician","bust","syrup","cassette","pick","madman","cleaner","throng","hanging","riding","villain","squeeze","wallpaper","lime","blur","modification","clatter","anonymity","lineup","polish","accountant","setback","neutrality","modernization","borrowing","kill","dwarf","amateur","expectancy","donkey","fella","contamination","ballroom","kidnapping","popcorn","entourage","crook","ambiguity","coral","roadside","fragrance","slack","spectator","stimulation","groom","rattle","synthesis","tan","skipper","distrust","siren","spin","revulsion","signing","booster","savage","glamour","flute","civilian","flask","tug","misfortune","therapist","plug","standpoint","weed","ecology","footing","patio","decor","malpractice","residue","passageway","chopper","batch","acceleration","depot","quarry","hound","pilgrimage","deference","splash","heartbeat","rap","wedge","indicator","pretext","make","saloon","clientele","poisoning","hemisphere","grotto","ignition","cover-up","ape","transcript","blizzard","crab","ration","puck","propriety","hunch","madam","imbalance","jug","manual","raise","silhouette","sponsor","bore","volcano","crate","humility","devaluation","rocker","rainbow","chap","informant","freezer","limestone","guise","valve","appraisal","handicap","correction","bra","sinking","turnout","manure","pail","cardinal","grape","bee","rumble","miner","dissatisfaction","pamphlet","plaque","chat","injection","pulpit","platter","symphony","molecule","rib","pyramid","shudder","dissolution","vinegar","calling","acreage","chick","cuff","scrub","orphan","porter","saucer","antenna","trophy","rig","convent","good-bye","troupe","ploy","niche","veal","semester","contender","grenade","hilt","spiral","stink","marathon","boulder","treasurer","cookie","peninsula","freeway","rainfall","showdown","parody","telling","statesman","decrease","symbolism","pillar","tremor","penetration","carcass","breadth","psyche","hiss","suppression","pottery","dormitory","scare","overtime","bean","schoolteacher","timetable","buzzer","mesh","jack","marshal","windfall","lance","uterus","inconvenience","chrome","brute","gardener","whim","pearl","fold","trim","ravine","critique","adultery","stretcher","trolley","elevation","worthy","vibration","bracelet","plank","jelly","foil","wrestling","colon","layout","quotation","sting","son-in-law","jargon","likeness","knack","defect","sedan","tilt","chore","moratorium","convoy","piety","acknowledgment","formality","thud","blockade","chord","hush","takeoff","lining","marsh","manifestation","humidity","ingredient","crater","liking","pigeon","abolition","granddaughter","vintage","flourish","playoff","prostitute","prick","oblivion","sociologist","helping","locomotive","contraction","bookstore","surrogate","hippie","sherry","scotch","packing","wink","spasm","conglomerate","ensemble","dugout","insider","sect","inclusion","feedback","trumpet","massage","constituent","brotherhood","directory","newsletter","comrade","grid","turtle","restructuring","reel","spur","comet","dummy","combustion","moustache","oversight","motto","mantle","handshake","mouthful","monologue","buffet","miss","crunch","waking","gray","exaggeration","gait","clutch","courier","hangar","dive","curator","ridicule","diaphragm","tow","projector","eclipse","parcel","lure","transplant","township","squash","commentator","mentor","gutter","stint","treat","germ","infinity","impasse","burglar","proprietor","tariff","dispatch","torment","dove","superstition","going","tempo","warden","sponge","rooster","barge","gorilla","draw","wharf","stallion","countenance","orchard","navigation","tar","biographer","wheelbarrow","imposition","hurricane","stronghold","distortion","starter","rash","feud","parting","interviewer","wrongdoing","lavender","low","leash","envoy","stairwell","backup","doorstep","negotiator","heading","excursion","sewer","endeavor","backbone","rite","vine","gypsy","directive","defender","scoring","esteem","torrent","gland","consortium","nightclub","swell","employe","obscenity","cavity","pulp","lifestyle","butler","peach","tack","fossil","glitter","liner","destroyer","flyer","individuality","roller","outcry","felony","artery","cruiser","bedding","dude","bounty","blindness","bodyguard","corral","coroner","spice","martini","contingency","gag","serving","wail","wrench","sock","safe","spite","broth","trustee","moth","vice","gender","cartel","casting","puppy","prohibition","ox","sculptor","treachery","stir","printer","audit","brim","handbag","lobbyist","jolt","comedian","distraction","challenger","telegraph","homage","evasion","detector","filling","overhead","cartridge","walnut","sonar","puddle","quake","flooding","crescent","thrift","following","tanker","stoop","clergyman","opener","latitude","anatomy","convertible","arbitration","leukemia","absurdity","stab","biologist","baseman","fuse","specialization","carnival","scarcity","gangster","stalemate","trickle","mallet","working","receipt","charcoal","mortar","drainage","mother-in-law","regularity","emigration","plasma","condominium","muck","workplace","roster","stroll","softness","serpent","owl","infield","sill","swallow","backdrop","fidelity","historiography","thicket","baking","omen","yell","functioning","bribe","dynasty","trough","pudding","alcove","ancestor","ripple","flint","bracket","cube","pasta","proxy","groove","commercial","holocaust","countess","scroll","bang","planting","premiere","norm","bloom","gunman","vow","arithmetic","accelerator","postcard","relish","semblance","whine","inventor","sarcasm","designation","pat","symmetry","quiet","chisel","experimentation","cutter","differentiation","stud","apathy","relay","seminary","escalation","life-style","coil","mythology","futility","intimidation","childbirth","flare","glint","rue","mural","whiff","deposition","vogue","animation","migrant","caretaker","dot","mediator","lookout","captive","blackboard","pocketbook","recourse","negation","plaintiff","shriek","obstruction","latch","manor","casualty","grunt","gambler","erection","nationality","epic","starch","delusion","linkage","provocation","avalanche","offender","melodrama","contentment","appropriation","tonic","salon","accompaniment","paranoia","grimace","communion","cancellation","pendulum","shoreline","hail","refinery","subtlety","videotape","commando","repertoire","refinement","dryer","rust","lapse","haircut","errand","ailment","reanimation","ther","tab","prom","contemplation","bin","gilt","bunker","protector","sage","hilltop","hue","blueprint","correlation","brochure","roadway","arson","remnant","breaking","bouquet","exertion","garrison","beneficiary","colt","turbulence","refuse","bravery","indulgence","assimilation","coastline","livelihood","swarm","configuration","lecturer","paw","upheaval","switchboard","sub","claw","downfall","dye","immigrant","specter","deprivation","shrink","marker","sampling","fellowship","beak","pantry","mouthpiece","gratification","qualification","finality","debacle","extortion","chieftain","speaking","totalitarianism","mole","incumbent","jumper","crush","stubble","terrorist","comic","farmland","contributor","gravy","blossom","keeper","craftsman","pavilion","obscurity","loading","affiliation","vacancy","proclamation","gaiety","yarn","enclosure","clamor","sucker","recruitment","subversion","boiler","emblem","spade","stocking","staple","vocation","sling","maniac","musket","primitive","periphery","idol","snack","antique","redemption","listing","airliner","bandage","bulge","glimmer","priesthood","diner","astronomer","ovation","kindergarten","module","lifting","radiator","booklet","resurrection","precaution","affinity","thinker","quote","turbine","tally","vise","landslide","bakery","portal","majesty","abyss","admirer","turnaround","airfield","wastebasket","lapel","pennant","complication","slick","initiation","rustle","hearse","schooner","carrot","inscription","wench","embryo","vet","poise","disintegration","procurement","speck","kite","vent","plow","homosexual","membrane","waterfall","teevee","matron","utterance","buffer","memoir","cork","recital","loathing","cameraman","throttle","insecurity","trooper","hinge","hoard","umpire","slug","mountainside","affliction","pastime","felt","sentry","denomination","mushroom","linebacker","parachute","teller","fender","trademark","specification","harem","plum","metabolism","certification","neutron","organisation","heresy","relocation","payoff","lizard","termination","dropout","torpedo","stepmother","helm","resonance","heed","progression","braid","cardboard","walkout","shiver","gust","foreground","replica","repertory","sparkle","seam","bump","substitution","rapport","casket","dew","squirrel","palate","hitch","rebirth","reverie","boon","pirate","foresight","vinyl","delta","moat","presumption","tablespoon","aroma","digging","heartland","healer","malaise","creed","archway","exterior","screenplay","examiner","parity","copyright","strawberry","outpost","bookcase","cashmere","bikini","sheaf","pastry","respite","divinity","impossibility","legislator","saga","thump","inauguration","seaman","degradation","strategist","emerald","anthem","affront","burner","entrepreneur","thorn","marvel","stair","cavern","swivel","outlaw","underside","cleanup","fin","catalyst","forage","tapestry","dosage","covering","proletariat","turnover","notch","misconduct","onslaught","upbringing","coyote","bumper","champ","creep","boxer","mileage","vigil","fodder","occupant","dashboard","rarity","centerpiece","consul","ascent","paddle","martyr","doctorate","runoff","grudge","tattoo","robber","carbine","holding","oratory","distributor","heavyweight","footnote","terminology","infrastructure","drummer","chili","tableau","dung","magnet","deceit","caricature","itch","refund","cripple","rectangle","mortal","ancestry","inequality","generalization","furor","relativity","jukebox","dune","endowment","pathology","calibre","subpoena","attrition","hump","congestion","reflex","hoax","honour","herb","mantel","articulation","washer","judgement","brace","printout","helper","wording","crisp","shortstop","boulevard","characterization","cashier","matrix","documentation","deadlock","oyster","chasm","outing","expiration","heater","nutrient","beacon","bile","grievance","janitor","skyline","patrolman","juncture","antagonism","rump","hardwood","solace","warhead","assent","litany","enactment","chimpanzee","rye","feeding","suede","coke","inference","ivy","mosquito","eruption","symposium","variable","cooler","filter","storeroom","mailing","chancellor","beggar","antiquity","inertia","motif","absentee","float","blush","embankment","riverbank","demeanor","vampire","disciple","inadequacy","reinforcement","pedestrian","persona","berserker","tumult","incline","beaver","grill","morgue","denim","wreath","grouping","relic","syndicate","rancher","idiom","hegemony","seating","affirmation","physiology","repose","blight","jest","turret","slit","goalie","clarification","avoidance","volley","redhead","inefficiency","folklore","embodiment","afterthought","steer","cyanide","digestion","continuum","mania","giggle","buggy","willow","pantomime","fireman","growl","devastation","navel","halo","yearning","laborer","alligator","prelude","verification","brown","bead","midget","sleeper","riddle","portrayal","counterattack","lectern","tutor","chestnut","remembrance","aversion","taking","billing","regimen","translator","headmaster","duke","ace","snort","fanfare","imprint","calamity","exposition","cedar","intrigue","transistor","bowel","boardwalk","tramp","ornament","sticker","processor","voltage","sovereign","whistling","orgasm","caliber","exuberance","snout","enclave","kilt","bombardment","corporal","overhaul","syllable","curfew","layman","consolidation","insignia","mediocrity","coherence","hospitalization","flick","pew","coloring","sanction","baritone","radicalism","savagery","pallet","stead","cadet","shutdown","supplement","unicorn","stepfather","excise","spelling","rebound","puzzlement","tenement","souvenir","veneer","safari","quartet","whirlwind","hamlet","practitioner","parasite","installment","emission","kissing","chronology","mosque","chairmanship","blonde","steamer","caption","shave","standstill","maiden","polling","condor","twinge","campfire","drinker","exhilaration","seafood","gala","crane","hickory","cathode","graph","orgy","deliberation","planner","marrow","bud","mediation","cutoff","tit","tic","parchment","noun","culprit","lair","showcase","hangover","chemist","aggregate","thriller","smack","efficacy","smear","heiress","crank","fig","finale","pea","staging","die","rebuke","curry","scum","potency","acclaim","collateral","schoolboy","canteen","radius","deportation","grate","madame","mop","pronunciation","sheen","respiration","breakup","professional","omission","gunshot","ugliness","fanatic","barbecue","dorm","trot","flattery","stereotype","hatchet","capitalist","purge","brew","totality","fern","enzyme","plumber","subscription","cholera","bruise","forge","nipple","commencement","superstar","ether","gem","sash","extraction","spaceship","golfer","realist","encampment","necktie","repayment","skillet","darky","disparity","bedspread","haul","questionnaire","promoter","wand","windowsill","victor","rector","enamel","hoop","coronation","patriot","chandelier","watchdog","glade","renovation","goblet","zipper","communique","crevice","motorcade","sequel","scourge","serum","single","icebox","junction","cache","berth","streetcar","syringe","antithesis","bureaucrat","blacksmith","oval","bun","loot","fiasco","tomahawk","ulcer","pinball","jersey","asthma","brook","pedestal","feeder","soot","inevitability","alteration","carrying","showroom","gimmick","lunatic","gall","fir","borough","hash","woe","controller","sponsorship","applicant","twig","screaming","librarian","intermission","sister-in-law","bushel","inflammation","pomp","vial","extravagance","pate","prostate","dolphin","tuxedo","mathematician","guinea","veranda","aperture","disillusionment","gavel","dating","knocking","oasis","nebula","woodland","yellow","ambivalence","hardness","oxide","socket","wasteland","leopard","blazer","follower","asking","urn","weaving","swimmer","closure","dart","loudspeaker","bazaar","bog","transfusion","reproach","sham","parka","affiliate","scowl","primate","attacker","rink","funnel","spate","elaboration","legality","tablet","heyday","tripod","bully","sharpness","demolition","flip","dandy","appliance","slant","sentimentality","knoll","gloss","defection","explorer","ram","stupor","clone","baton","cohesion","bearer","penance","bandit","aberration","gallop","swirl","coconut","spree","pedal","detergent","canon","teen","brood","phonograph","tabletop","enlargement","sniper","cohort","fable","rising","spill","affidavit","imperative","snapshot","apparition","stunt","wristwatch","chute","teammate","carelessness","over","stripe","postponement","rapture","savior","pacifist","admonition","pear","junkie","surcharge","wavelength","horseman","hag","confessional","comptroller","orthodoxy","financier","snarl","cliche","refreshment","incest","adolescent","teapot","seaweed","drilling","roadblock","antibody","sheath","pallor","constable","misuse","arcade","lee","keep","anarchist","watering","rhyme","exclamation","backseat","great-grandfather","han","pod","daughter-in-law","mailman","alphabet","sloop","reckoning","grower","simulation","homer","birthplace","ence","actuality","depletion","novice","diffusion","concealment","cadre","pathway","fungus","ouster","loner","autograph","descendant","aspiration","better","sick","variant","fragmentation","pesticide","frigate","bestseller","propensity","foul","senate","trouser","airstrip","insurrection","chronicle","coating","stigma","toothbrush","pumpkin","apprenticeship","widower","paycheck","query","teen-ager","shifting","informer","doorknob","ardor","pebble","finesse","scrapbook","fiddle","dowager","sod","wrap","turtleneck","clipboard","rogue","mutiny","suitor","bulkhead","babble","fad","billboard","beverage","hairline","grille","exporter","pathologist","mesa","goblin","scapegoat","crucifix","backpack","observance","forgery","dungeon","methodology","gauze","bonanza","inkling","beret","shouting","ex-wife","wickedness","toil","preview","porridge","cornerstone","scanner","smoker","rebate","mite","brawl","axle","easel","allegation","grab","parrot","antidote","drawl","hijacker","telltale","venom","el","baron","intermediary","seduction","birch","contour","redistribution","cam","protagonist","enmity","hulk","stockbroker","decorator","cookbook","protege","mage","cricket","smock","apex","cortex","modem","shareholder","lament","determinism","rift","tablecloth","trajectory","preface","sneer","gamma","rendition","insemination","aristocrat","hare","labyrinth","thaw","invalid","staffer","alpha","fingernail","medic","crutch","entertainer","jade","eminence","discrepancy","yawn","flea","ledger","orphanage","getaway","manifesto","hijacking","incarnation","elm","adobe","spruce","gist","grit","boar","oracle","mobilization","cantor","crypt","cutback","musical","fallacy","corduroy","fray","racetrack","buckle","foreboding","pest","clap","ber","notation","peek","sow","ballad","brat","constellation","lard","industrialist","hunk","assailant","splinter","bridegroom","dip","fixture","cadence","watchman","windmill","prerogative","drawback","bungalow","heaving","nationalization","mating","writ","rationalization","milking","modernism","landlady","calculator","animosity","workout","skirmish","glycogen","discord","portico","vestibule","renegade","overdose","iceberg","lineage","mosaic","liturgy","watershed","playing","lobe","dowel","ranger","dossier","anvil","co-operation","satchel","fa","corollary","bridle","gateway","brothel","monotony","vendor","mysticism","saucepan","accomplice","hernia","guild","pup","hoof","sparrow","dreamer","craving","outpouring","blink","overlap","duct","brownstone","maneuvering","stagger","foothold","craze","monsoon","induction","handgun","scan","constraint","citadel","rigidity","anecdote","halter","occupancy","rightist","convict","tribunal","stalk","waterway","debtor","yoke","audition","inconsistency","peg","sliver","midwife","premonition","ruby","conduit","excavation","fart","condenser","hop","poodle","upsurge","attainment","stitch","crimson","anomaly","backlog","yeast","chimp","awning","gig","parable","drumming","tiptoe","prow","bypass","crease","reformer","intestine","counterpoint","enormity","anthology","rudder","shroud","magistrate","twitch","commonwealth","circumference","stuffing","sweating","scattering","lender","dripping","legion","refrain","mummy","covenant","morbidity","prop","initial","alignment","licence","infusion","unification","rebuttal","adjective","humour","larceny","mistrust","horde","assemblage","delinquency","testament","convert","patrician","dissension","cider","infidelity","bonnet","displacement","crackle","edifice","conciliation","bondage","schizophrenia","embroidery","standoff","monotone","oddity","mobile","tornado","semicircle","panorama","ex","ping","yogurt","screech","underdog","quay","tai-pan","extract","podesta","ticking","shrubbery","backside","communicator","sorcerer","interlude","dominion","battleground","taboo","blunder","conjecture","drone","cove","maverick","secondary","companionway","rook","gauntlet","ordering","violinist","rooftop","slash","thermometer","vomit","anteroom","deity","nave","acquittal","talker","reed","concussion","malfunction","tundra","cub","anemia","constructivist","cocoon","divide","keeping","percussion","freighter","noose","narcotic","expediency","grandchild","gully","innkeeper","pigment","bloodstream","quiver","alderman","halftime","stable","fission","aggressor","denunciation","abduction","expressway","uniformity","faucet","buff","broiler","allusion","jock","spike","herald","polyester","genocide","fer","parapet","classmate","tinge","sandstone","lurch","skunk","huddle","mum","tranquilizer","pharmacy","susceptibility","penicillin","lark","hoe","lily","hanger","headset","john","appointee","advisor","twine","slumber","magnetism","schoolgirl","smash","screwdriver","newsman","sleet","cleavage","lacquer","milestone","commandant","crick","splitting","rosary","edict","hurdle","fixation","appendix","lock-mechanism","eyelid","swath","fingerprint","carbohydrate","tick","magnate","heck","sailboat","donation","malady","polishing","clipping","collective","sensuality","loom","swagger","facet","variance","mean","walkway","aptitude","prodigy","solemnity","understatement","ebb","scoop","wrapper","narration","icon","prerequisite","planter","gash","interplay","evangelist","drip","vulgarity","subdivision","backwater","euphemism","lotion","corpus","broadcaster","toothpaste","curmudgeon","fo","thong","thatch","baptism","peacock","workman","downturn","scoundrel","machete","creak","five-year-old","dissertation","dishwasher","pimp","electrician","tycoon","otter","shove","snail","rendering","nobleman","booking","pronghorn","deadpan","shutter","escalator","girdle","fling","hire","alibi","flop","stampede","prognosis","itinerary","cologne","spoonful","detour","violet","watcher","falsehood","hype","locale","estimation","propeller","squaw","pickle","lass","pun","racist","scratching","rout","downpour","casing","complacency","camper","equator","reticence","learner","outcast","brunette","improvisation","stag","maxim","loophole","livery","blasphemy","shoot","solvent","misdemeanor","buyout","tiller","jetliner","checkbook","awakening","sideboard","romanticism","squire","newsstand","nuance","consulate","excrement","reprisal","bastion","beginner","obituary","softball","conjunction","scripture","phalanx","vindication","grub","swig","inaction","redwood","scabbard","bonfire","casserole","ovulation","unreality","totem","palette","choreographer","peasantry","skyscraper","penitentiary","outfield","melon","bounce","yolk","diver","archbishop","plurality","amber","recurrence","adulation","piston","insurgency","stoan","coop","tart","eyeball","toss","giveaway","cross-examination","dissident","hermit","ruse","ture","pore","leaving","dowry","gunner","epitome","snowstorm","summation","switchblade","crock","ity","frock","luster","piazza","rotor","impropriety","pivot","blender","immediacy","borrower","slaying","feminist","preserve","bidder","depiction","parasol","clover","intern","asteroid","stub","barricade","medley","multiplier","smirk","knapsack","hank","cognac","headway","treatise","homestead","troublemaker","giraffe","mover","allotment","drowning","naturalist","orderly","attribute","scalpel","shipyard","estrogen","educator","enrichment","grandstand","sire","perversion","sideline","landowner","confidant","gel","deviation","clemency","liberal","bigotry","filly","six-year-old","lifeguard","shred","adversity","shelling","pineapple","referee","knockout","jigsaw","retailer","extremity","outgrowth","amplifier","sinner","campground","teasing","steamboat","turban","mutton","cobra","contraption","chopping","schoolhouse","varnish","pane","observatory","ballerina","czar","immensity","lethargy","reimbursement","undershirt","concierge","fracture","variability","accordion","slime","meanness","gelding","practicality","advertiser","graft","gull","stockholder","pilgrim","hooker","puritan","benediction","barbershop","stanza","hallmark","mishap","harpy","silage","enchantment","whirlpool","conditioner","gadget","divestiture","lathe","incarceration","amalgam","antibiotic","annexation","martyrdom","pyre","shank","alert","shale","artifact","interchange","mystic","meet","grinding","triple","boutique","antagonist","fermentation","twinkle","sweetie","shin","creditor","amulet","pall","posse","homeowner","skier","vastness","smith","allegory","oxidation","cracker","levy","ark","sporophyte","enthusiast","snob","spinster","searchlight","waistband","lorry","repeat","reprieve","slalom","respirator","visor","reviewer","putt","miscalculation","shortfall","concourse","dialectic","native","hairdresser","normality","immorality","sprinkling","allure","lick","drudgery","habitation","gondola","vista","ice-cream","cheerleader","predator","countdown","juxtaposition","stumbling","muffler","derby","timer","salvage","boast","cabbie","clam","windbreaker","retardation","antelope","shampoo","raccoon","bible","glider","momma","valise","coffeepot","emissary","compression","grail","guideline","lavatory","glaze","outpatient","thunderstorm","foray","co-op","valet","baker","sycamore","thumbnail","nozzle","timidity","orator","liquidation","spokeswoman","militant","jig","naivete","motorist","dumping","armpit","margarine","exultation","headboard","plume","amplitude","flutter","pronouncement","finery","trepidation","airing","coupon","knuckle","gametophyte","deathbed","extermination","alleyway","hybrid","gambit","nova","binge","original","froth","lighthouse","coolant","continuance","collaborator","fuselage","profanity","whirl","saber","filmmaker","checkup","shaman","rancor","retort","earring","sieve","post-mortem","implantation","conceit","simplification","vat","proficiency","deluge","kiosk","outlay","tantrum","flooring","veterinarian","fireball","carousel","bandanna","glacier","censure","citation","oar","fridge","metamorphosis","superior","approximation","girth","tirade","grocer","holdup","forward","snobbery","cleansing","replay","recitation","facsimile","patter","jubilation","snare","frailty","rampage","pick-up","overture","tumble","residency","prevalence","repository","reentry","battleship","mutation","hammock","importation","thug","semiconductor","ballast","spurt","extreme","artichoke","convergence","circular","rigor","realignment","physique","handbook","bugle","precipice","sauna","whorehouse","skater","furcot","volatility","valuation","barbarian","peddler","layoff","overall","deliverance","chromosome","innuendo","lexicon","empress","polarization","dictum","fitting","impediment","piracy","crocodile","cucumber","keel","sitcom","hypocrite","roaring","encroachment","steamship","resin","fairway","eyewitness","broadside","washroom","sighting","mantra","swan","supposition","governess","upswing","rep","solicitude","rustling","invocation","heather","rectory","orchid","brocade","raiser","invective","fragility","acronym","ostrich","col","absolutism","vicar","psychotherapy","navigator","cartoonist","doe","landfill","invader","werowance","ble","flatness","locality","druid","visitation","headlight","rapist","benefactor","colonization","excerpt","nick","kangaroo","pink","buy","cascade","campsite","slander","headdress","topcoat","causality","karma","trestle","atheist","checkpoint","renunciation","eater","payload","pointer","theologian","beet","undertaker","lineman","hart","gourd","doubling","shuffle","cabaret","periscope","bodice","shootout","grandma","wildcat","proton","dioxin","sorcery","torchlight","stopover","executioner","collage","mesquite","reincarnation","kidnaping","programmer","disloyalty","muslin","throb","mint","aquarium","tel","eccentricity","purification","kerchief","warranty","rigging","breeder","nite","conservatory","fastball","magnification","spa","favour","regeneration","incision","saxophone","detriment","scam","android","coloration","bunny","restitution","rake","serf","despotism","pollen","sidewinder","upstart","revisionist","birthright","multiple","lifeline","queue","follow-up","swipe","boardinghouse","armament","travesty","stirrup","caper","chloride","crepe","primer","clich","inflection","skid","repudiation","serve","spire","peep","inducement","clothesline","fabrication","morsel","spleen","coon","bustle","crossword","back-up","assessor","biopsy","sidecar","hassle","shingle","tint","fixing","collarbone","taint","pusher","gestation","mantelpiece","vaulting","ra","peat","indignity","adequacy","genus","scrape","scaffolding","serial","neurologist","duffel","cipher","rote","horseshoe","bulldog","electrode","joker","juror","fibre","misconception","rut","connoisseur","flowering","op","flirtation","highlander","wisp","sounding","bugger","pharmacist","doughnut","toaster","pinnacle","slob","promenade","amphitheater","singsong","beau","whimper","importer","locket","watermelon","marking","beta","co-author","crossbow","atrocity","desktop","inhibition","draught","rowboat","volleyball","snowfall","extravaganza","teddy","miscarriage","storefront","toxicity","abode","hearty","handyman","centurion","phrasing","anachronism","newspaperman","annex","walker","till","volition","tributary","close-up","nook","cleric","ferment","proverb","inlet","heretic","waistcoat","duet","sniff","crewman","campaigner","wearing","grizzly","p","optimist","placard","overflow","pedigree","clang","brig","cinder","bunting","wag","dishonor","denominator","gong","siding","trilogy","deli","fluoride","questioner","squat","competency","partisan","putter","entree","cynic","tombstone","scoreboard","biscuit","souffle","homecoming","overseer","hideout","brewery","emancipation","interface","premier","auditor","troll","conscription","stout","trucker","beetle","dealing","bookkeeper","build-up","yardstick","da","polity","wick","wrinkle","private","outflow","borderline","outfielder","visage","leper","chiffon","arbor","weave","barnyard","checklist","granny","insensitivity","ex-husband","barometer","rupture","infirmary","desertion","wonderment","encyclopedia","slaughterhouse","nostril","ineptitude","implant","infatuation","laundromat","warship","rub","benchmark","polygraph","dinghy","behind","tween","filibuster","wearer","crayon","sensor","hustler","sinew","progeny","dig","pediatrician","foursome","buckskin","cornfield","safeguard","divergence","ting","coupling","dislocation","the","immersion","purchaser","cleft","overhang","booty","scuffle","rattlesnake","teacup","retinue","hallucination","potion","yeshiva","tapping","rip","multiplication","canister","gallantry","morn","thermostat","grind","aviator","ecosystem","pariah","recruit","vestige","ro","phosphate","abomination","laurel","sweatshirt","vaccination","psychoanalyst","blind","psychosis","sidekick","shopkeeper","theorist","delicatessen","sheepskin","billionaire","receptacle","salami","paddock","glen","beech","leer","mime","ty","perfectionist","seedling","wil","bind","intolerance","dint","plural","rouge","skylight","mammy","drab","microcosm","sole","organist","court-martial","matinee","bulwark","must","expatriate","stethoscope","daydream","backer","godfather","breech","artifice","auxiliary","adventurer","atrium","counterman","idiocy","grotesque","dishonesty","runaway","digit","baseline","reflector","preamble","sellout","falcon","scribe","retainer","louse","grapevine","sojourn","lash","marquee","schoolmaster","squeak","squeal","shooter","townhouse","nationalist","billiard","backfield","auctioneer","aria","avant-garde","hostler","smattering","giving","coaster","arraignment","duo","malignancy","throwback","doc","turnabout","seeker","deletion","vernacular","bulldozer","tedium","hustle","raspberry","estrangement","mutilation","styling","incinerator","wrong","shortcut","mastectomy","infringement","bonding","timbre","cameo","workroom","grassland","spraying","cooperative","tarpaulin","determinant","thyme","innocent","clique","racer","leakage","conflagration","jingle","duplicity","diaper","conqueror","committeeman","robin","reprimand","marina","cross-section","flagship","denouement","recluse","homemaker","moron","rind","gent","magnificence","dispatcher","detonation","harbour","toddler","rotunda","sedition","fell","dolly","laureate","woodsman","syndication","clot","guitarist","blemish","password","overview","eggplant","incantation","drapery","incapacity","florist","hive","civility","mod","screenwriter","intoxication","barman","ern","furrow","cant","clapboard","tumbler","walkie-talkie","pajama","vortex","defenseman","hostel","subjugation","interception","armory","fanaticism","sibling","inhalation","undercurrent","husk","mead","maw","padlock","abnormality","penguin","undersecretary","damnation","independent","airlift","peel","schoolroom","rascal","fingertip","cartilage","dichotomy","blank","lingo","clasp","racquet","acknowledgement","rebuff","bier","aerosol","taping","checkout","arse","thoroughfare","pelt","copse","keg","fissure","tern","mirage","blockbuster","balm","arbiter","shutout","schism","fluff","circumcision","insertion","pseudonym","heathen","eulogy","snowball","penthouse","kinsman","gebling","regulator","proponent","yearbook","barbarism","mutt","reopening","paunch","governorship","differential","airship","subscriber","alloy","adjunct","impairment","incongruity","pheasant","grownup","predicate","loo","sleigh","seer","flitter","sunburn","plebiscite","stockade","pout","sledge","stipulation","lordship","bayonet","wretch","vulture","postman","breaker","newsroom","consort","grinder","ballpoint","tequila","unpleasantness","wrapping","squall","adage","monograph","privation","streetlight","hilarity","sacrament","diminution","mannequin","duplication","banishment","rasp","biochemist","goatee","cranberry","sultan","blip","disservice","idealist","middleman","shaping","apocalypse","strut","oligarchy","moor","zombie","certitude","javelin","azure","turnpike","forger","commode","bleach","sideshow","banister","closeup","dysentery","steeple","offence","commandment","furlough","best-seller","filament","mountaintop","censor","snowmobile","kaleidoscope","elf","imp","slipper","lunacy","telecast","nanny","kernel","eventuality","subordination","sonnet","nitrate","foal","prank","expropriation","fedora","zigzag","resale","namesake","highlight","supplication","concurrence","medallion","jailer","loin","tread","quill","cardigan","prune","slur","surtax","internist","strait","smuggler","panacea","turd","wanderer","crude","darlin","epitaph","docking","seashore","cheeseburger","netting","provider","dispenser","intonation","marching","caress","hootch","morass","chum","sanctum","headband","powerhouse","axiom","terrier","springboard","tot","latrine","toad","clink","herbicide","figger","hick","manger","poppy","chaise","archetype","undoing","beehive","illustrator","withholding","sterility","paddy","coven","custodian","half-life","embezzlement","armoire","kickoff","possessor","rectum","sit","daisy","housecoat","pollster","policewoman","ointment","expressionist","stockpile","bombshell","impresario","co-pilot","chessboard","dazzle","scepter","archdiocese","linguist","odyssey","capitol","accession","lute","liter","multimillionaire","decoy","warp","conveyor","grandpa","ance","mumble","betterment","bullfighter","chador","ampule","indiscretion","shake-up","clarinet","catapult","normalcy","shanty","dinosaur","epithet","tang","scaffold","immunization","repairman","suntan","mu","environmentalist","nightcap","tempest","artisan","orbiter","spiel","needlepoint","geologist","humanist","stutter","perplexity","roundup","concoction","treadmill","cacophony","antipathy","blackberry","bloodbath","brassiere","allergy","hitchhiker","grunting","choke","sitter","elixir","ba","repatriation","whack","decanter","crusader","burlap","incursion","lyric","compilation","seaport","coachman","philanthropy","secretion","collie","inquest","taper","moral","quartermaster","jeweler","salutation","confluence","gullet","tram","hideaway","by-product","drybone","copulation","divorcee","mausoleum","peeling","annuity","set-up","skiff","neurosis","windpipe","buoy","glide","archaeologist","pendant","junkyard","bullhorn","porthole","quandary","irrationality","acidity","pragmatist","derivation","stylist","duplicate","panther","brigadier","introspection","depravity","keynote","vexation","psi","weighing","deserter","speculator","teak","armful","remission","precursor","sorghum","harmonica","olive","gangway","contraband","defector","purgatory","genie","expedient","crowbar","desecration","bathhouse","enhancement","tenet","seasoning","wrangling","downhill","venue","tracery","dictation","bailout","undertone","pecker","prep","forerunner","bandstand","letdown","luminosity","tonnage","catwalk","brunch","sapphire","ballplayer","wineglass","readout","genealogy","horsepower","messiah","blackjack","hemorrhage","damask","registry","gunwale","jerkin","humorist","bowler","tingle","engraving","chauvinist","spirituality","eyepiece","twang","constancy","blot","blob","chard","highschool","sportswriter","tiara","domino","contestant","migraine","newscast","mainstay","hammering","tracker","wager","offshoot","buster","informality","python","felon","imperfection","slag","convulsion","sedative","cellblock","punt","headwaiter","outhouse","monstrosity","nonwhite","override","raisin","inversion","pancake","flavour","cataract","reclamation","churchyard","pidgin","suction","chanting","aggravation","dynamo","pee","fistful","hogan","byproduct","brooch","lullaby","workday","slop","silencer","dealership","earner","anchorman","pittance","crumb","custard","rainstorm","tote","mulch","mason","earl","barroom","levee","discouragement","falsity","compressor","lodging","gynecologist","divination","calico","bibliography","cyclone","senor","gatehouse","lagoon","squirt","artwork","songwriter","derivative","supernova","divan","photon","surety","cobbler","fatality","gout","eleven-year-old","ent","cropping","mainspring","prism","confederation","weaver","neighbour","yuppie","muffin","juniper","ovum","lesbian","pi","shimmer","fax","increment","co-ordination","splashing","thanksgiving","exaltation","confiscation","fairy-tale","fudge","brief","priestess","re-creation","hydrocarbon","ford","usurper","maelstrom","spaceport","swordsman","vegetarian","newness","grad","potter","manservant","fullback","fiend","giver","subculture","debutante","striving","scorer","catechism","charger","armada","blond","paign","handball","wince","appetizer","guidebook","jog","millet","hoot","inferno","pardner","mash","mousse","mammography","launcher","battering","predilection","portent","beep","exhortation","notification","warm-up","diatribe","panda","menstruation","telex","revitalization","workingman","cordon","charmer","fumble","hamper","moralist","settler","chowder","ley","mannerism","drunkard","posting","turquoise","elasticity","abbot","bookie","tusk","paragon","precondition","rollback","lunge","conundrum","eviction","sealer","cellist","cosmology","turntable","outside","fortification","nightstand","spook","shoemaker","sac","sulfate","isle","antigen","steed","bacterium","utopia","stunner","hillock","clove","irritant","tat","memento","rung","gaffe","portraiture","solicitor","rodent","barter","intensification","gallbladder","condom","antiquarian","peck","cheering","meteor","inflow","stenographer","blinking","icing","jackass","dweller","fiesta","irrelevance","harpoon","appendage","stipend","mommy","cassock","microfilm","dead-end","vermouth","scarecrow","fielder","referral","mart","burger","ticker","hindrance","coverlet","speedboat","wafer","sluice","bellboy","hangout","figurehead","midterm","petticoat","matador","skein","beholder","flier","waiver","flotilla","smudge","inequity","mixer","sulfide","banality","roach","billy","tailgate","gaggle","softening","loincloth","gore","bib","chrissake","changer","muse","longitude","tourney","mil","aorta","poop","regression","soviet","placing","winch","apostle","constant","squabble","blimp","abdication","porpoise","puncture","workbench","parameter","conventionalist","flagpole","unfairness","reptile","typist","bookshop","hesitancy","strongman","headland","sprint","manhole","blowing","archipelago","ideologue","slouch","poke","gush","stratum","mulatto","echelon","postmaster","sheik","emigre","alto","affectation","rad","climber","deerskin","bower","idolatry","reciprocity","sweet","wasp","dissection","baby-sitter","purple","toothpick","lyre","archer","sprawl","councilor","contrivance","flake","kynd","suffocation","damp","ware","travail","candelabra","wrestler","patina","moaning","paisley","recruiter","moderator","respondent","marmalade","bellow","harpsichord","atrophy","ejector","jetty","stripper","monorail","dramatist","hysterectomy","riverbed","revaluation","stoppage","conspirator","fetish","sunflower","cognition","scrim","rec","retriever","aphrodisiac","redneck","palsy","pullover","flywheel","roundness","peculiarity","ernment","nectar","ruck","swimsuit","curd","underclass","polka","conservationist","mire","drumbeat","cinch","cordiality","deacon","speechwriter","purr","gelatin","muddle","booby","solid","cloakroom","stopwatch","sportsman","burlesque","overload","mademoiselle","divider","bailiff","handout","ordination","stiff","languor","paperweight","opiate","snap","causation","mower","perversity","snatch","touchstone","self-indulgence","shrub","interceptor","mammoth","proceeding","cheekbone","spoke","repellent","cardiologist","reminiscence","sprinter","evocation","postscript","enlistment","blotter","troika","dacha","cabdriver","fund-raiser","switching","para","tendon","fireside","effigy","leech","veneration","reek","schoolyard","pellet","shellac","weasel","jab","carcinogen","restroom","cauliflower","levity","caftan","topside","fruitcake","bickering","drawing-room","dovetail","culvert","chateau","bugging","tinker","hobo","corset","automaker","actualization","oration","handhold","nutmeg","tentacle","quicksand","handler","panoply","bowhead","testimonial","mammal","bellhop","devotee","technicality","trainee","mongrel","newscaster","aggregation","footpath","fawn","accreditation","heave","jib","rationalist","vendetta","midpoint","buckboard","screwball","hatchway","disinfectant","cramp","causeway","tease","corkscrew","sledgehammer","sloth","materialist","mogul","stopper","bevel","carbonate","berry","snore","throwaway","agribusiness","rerun","guillotine","nip","computation","keyhole","storybook","watercolor","cer","porcupine","urging","cockroach","esse","headman","settee","usher","short","obstetrician","faggot","ballpark","palisade","whimsy","co-owner","spout","nub","pectin","dun","cypress","trombone","scat","lite","dame","quip","invisibility","baboon","sneeze","swish","originator","biennial","newsreel","chameleon","dressmaker","storehouse","trapping","statistician","bloke","helmsman","ewe","drape","trump","great-grandmother","cloister","caterer","grounding","hotbed","life-span","urinal","funk","bedchamber","boudoir","theoretician","oddball","nameplate","raven","ditty","canary","anticommunist","reconsideration","playboy","skate","transparency","uplift","six-pack","rambling","commendation","wimp","pestilence","sufferer","kelp","counterforce","self-doubt","deformity","croak","marine","marksman","directorate","reversion","stimulant","dence","beloved","eraser","slurry","tracing","bigot","compendium","entitlement","monolith","misrepresentation","darkroom","nutshell","torque","concubine","peephole","lesion","bogey","spindle","birdie","nugget","tenon","supercomputer","weakling","provenance","vowel","empiricist","filet","co-founder","prelate","onlooker","tricycle","sax","catheter","accessory","fresco","prod","oscillator","self-image","refraction","excretion","prance","insurer","cask","impersonation","rangeland","toothache","magnum","accuser","rubbing","carver","carnation","masquerade","pervert","trapdoor","shaker","mittee","tux","poignancy","payday","captor","couplet","mutant","jogger","raider","dilution","sickle","prowl","blister","reassessment","infirmity","matchmaker","workload","restaurateur","tuning","wiretap","perpetrator","davenport","lamppost","inductivist","affect","sterilization","booming","rucksack","repurchase","starship","bystander","taker","spaniel","teletype","cuckoo","sneaker","aspen","soundtrack","sacrilege","surname","succor","co-chairman","anticlimax","hopper","jumpsuit","rinse","rummy","cigaret","washcloth","butchery","almond","cooker","implement","effluent","cheat","threshing","silicone","draining","vector","shopper","dandelion","pecking","brazier","cobblestone","slugger","sacrificer","airlock","lunchroom","zebra","ejection","cutthroat","wizardry","crony","kennel","internship","cohabitation","omelet","wheelhouse","redundancy","schema","psychopath","buttock","grasshopper","playmate","lamentation","socialite","cornucopia","lichen","coterie","warlord","discomfiture","frieze","montage","traveller","curvature","condensation","vineyard","scraper","generality","archive","half-sister","gangplank","intimation","doublet","pleading","tome","quadrangle","connotation","lifeboat","blueberry","coinage","prospector","bash","disciplinarian","dualism","bookshelf","adjutant","clod","apportionment","footbridge","tourniquet","spore","slicker","jetport","magenta","schizophrenic","oilman","harbinger","trespass","merry-go-round","sabra","old-timer","vigilante","melanoma","torpor","gliding","refutation","dab","jurist","plumage","kitty","cauldron","abbey","jasmine","lefty","cabal","detonator","retiree","abatement","clamp","roost","councilman","halfback","centimeter","shirttail","whispering","stratagem","exponent","cheesecake","truism","jaunt","node","ironclad","undertow","self-portrait","urchin","idealization","splendour","antechamber","living-room","sampler","friar","irregularity","lateness","playback","binder","washbasin","tummy","capitulation","felicity","canter","birthrate","earthenware","kitchenette","foundry","ladle","babushka","chlorophyll","adjournment","villager","recrimination","hotshot","blaster","pruning","soloist","hummingbird","recuperation","bequest","hemlock","cottonwood","drawbridge","alternation","malt","interconnection","mugger","tuft","keystone","riverboat","thrall","ayatollah","highland","mistrial","bunkhouse","anesthesiologist","dredging","anode","salsa","prizefighter","neckline","chile","foreclosure","cola","digression","scythe","lout","chamberlain","minefield","sabbatical","appraiser","isotope","demarcation","garnet","buzzard","repulsion","lowland","snifter","bending","weekly","dispensation","botanist","sari","stabbing","ovary","skullcap","journeyman","thievery","look-alike","parson","heartbreak","distillate","neophyte","blower","storekeeper","firmament","taxicab","corona","fusillade","publicist","resume","breather","casement","smokestack","interrogator","outcropping","mecca","dilettante","shoestring","belch","behemoth","negligee","heath","smut","negative","fistfight","regent","incumbency","curragh","toga","ministration","turnip","beamer","stepladder","loon","businesswoman","jumbo","whining","spoor","posturing","parlour","concertina","alkali","rampart","chime","warmup","taffeta","hyena","firehouse","sweetener","guessing","pronoun","madhouse","lioness","breadwinner","diocese","escarpment","mimic","retina","larder","gnat","hothouse","ponytail","markup","bevy","revocation","depressive","garner","redefinition","lifter","stateroom","nutritionist","isolationist","surveyor","polemic","ornamentation","gouge","counterweight","thrower","illegality","joining","lumberyard","wholesaler","obeisance","stagecoach","substage","lockup","nudge","rejoinder","compost","carburetor","peacemaker","prologue","swinger","right-of-way","precipitate","sprinkler","crone","valentine","vassal","tabloid","minstrel","nursemaid","attribution","courtier","docket","spool","convocation","serviceman","letterhead","zealot","negro","cackle","masthead","dispersion","underwriting","armload","noodle","squawk","periodical","reformation","boa","starlet","about-face","ejaculation","encore","harangue","woodpile","earlobe","reaffirmation","handlebar","compunction","contemporary","midriff","nimbus","householder","postgraduate","quirk","innovator","sneak","straitjacket","pussycat","belle","kidnapper","spacing","laying","standout","estuary","duster","jackpot","motorboat","welterweight","kicker","expectant","revue","senior","epistemology","yeoman","firearm","granddaddy","projectile","stammer","crossfire","toxin","hookup","phantom","transgression","flagstone","acuity","twick","acolyte","directorship","corpsman","worktable","mammogram","wart","liqueur","unbutton","receivership","duchess","delinquent","picker","earphone","blare","promontory","formalism","infamy","operative","hock","crusher","megaphone","retrenchment","chaser","dementia","wane","triviality","quadrant","curate","pairing","forging","dermatologist","mango","bon","moccasin","hayloft","marionette","seedship","ooze","interloper","twill","solicitation","trowel","professorship","scrimmage","scrawl","blockage","parkway","motorman","snapper","transcription","vasectomy","binary","flagon","choirboy","butte","throbbing","bound","thunderbolt","dike","cowbell","elect","prodding","lynching","rant","drifter","snot","preservative","brogue","tary","tortoise","lattice","strudel","composite","churn","median","neurosurgeon","mariner","kiln","boarder","ama","petal","friendly","clearinghouse","swastika","filler","enquiry","dispensary","chump","archeologist","rescuer","dy","draftsman","snicker","shakedown","romp","construct","conclave","winery","polarity","breakin","wailing","gurgle","bedroll","commissar","albatross","shading","peal","taverna","chicanery","has-been","waistline","oaf","satirist","faint","myosin","dimple","landfall","fornication","smithy","tough","gunboat","busboy","cassava","poplar","discontinuity","obelisk","blubber","demonstrator","meltdown","abolitionist","thorax","holler","pimple","sending","druggist","indirection","leotard","ken","showman","despot","ombudsman","lyricist","dearie","lumberjack","gaff","pagan","cremation","infarction","sturgeon","publican","bottleneck","chambermaid","pectoral","purser","godsend","whisk","canard","concentrate","copter","shipwreck","laundering","clipper","notepad","jackal","indentation","basilica","adhesive","mermaid","knighthood","personage","omelette","whoosh","embellishment","misgiving","tracer","brawling","crucifixion","steal","transference","sleight","threesome","windowpane","bereavement","viceroy","betrothal","refresher","seagull","jay","needler","discoverer","goiter","caterpillar","impostor","diminutive","cation","playpen","amputation","confidante","dockside","inquisition","chronicler","seamstress","lath","absolutist","cadaver","perusal","subterfuge","self-satisfaction","sawmill","agitator","shortcoming","breakwater","microcomputer","lima","greatcoat","mahout","prima","undress","superstructure","stopgap","moo","bio","fret","pomposity","bough","autocracy","anchorage","samovar","gen","burrow","rosebud","segregationist","mortise","hydrant","postmortem","oversimplification","entryway","paintbrush","rea","balustrade","chuck","trumpeter","ferret","opportunist","pinnace","salamander","transom","mace","individualist","synthesizer","thoroughbred","cupola","tomboy","ensign","bottling","whir","poultice","entranceway","saver","gurdwara","renegotiation","tossing","ruffle","footprint","skeptic","birthmark","tailspin","kickback","chalice","plagiarism","passer","inhumanity","ceremonial","sapling","babysitter","creeper","galleon","bellman","holly","hacienda","cur","transplantation","scab","ballgame","demotion","flimsy","hovel","lug","layup","firefighter","gravestone","nymph","cajole","tickle","boxcar","secession","refractor","somersault","personification","treacle","tutorial","voucher","thimble","stickler","front-runner","paroxysm","exorcism","psalm","infestation","scrubbing","castor","peppermint","orchestration","extremist","oppressor","lode","prompting","watchword","swindle","statehouse","floater","nightdress","bloak","elegy","woodshed","trembling","banning","adornment","redoubt","lightweight","postulate","anti-Semite","tasting","viewscreen","sentinel","nation-state","heft","nurture","villainy","manhunt","invoice","sprig","self-denial","selector","piglet","commemoration","crucible","piper","curtsy","lackey","breastplate","gadfly","octave","epilogue","self-examination","thyroid","apologist","chemise","super","figment","waif","essayist","brewer","miniature","sediment","cannibal","tulip","caramel","caseload","synonym","analogue","ver","shirtwaist","cornerback","insecticide","debauchery","lien","strangulation","intricacy","guesthouse","crumbling","glassware","cachet","thumping","damper","colonist","frolic","ogre","heist","sorting","pawl","muttering","refill","cowl","imbecile","painkiller","garter","creole","overpass","simile","potpourri","piling","predisposition","corsage","mobster","sandal","aphorism","vice-chairman","heartache","converter","pecan","ecologist","substrate","quagmire","trenchcoat","voyce","overstatement","soapbox","rediscovery","effusion","agronomist","firecracker","haunt","murmuring","henhouse","fluctuation","signora","mulberry","hoist","bullfight","discotheque","finder","tureen","hairstyle","dignitary","consummation","spar","pogrom","beeper","read","outboard","sho","skit","impurity","sadist","parafoil","bouncer","spender","locust","boardroom","burnout","inoculation","surfeit","welder","propagandist","mortuary","pessimist","equivalence","juke","spatter","incubator","reproof","gulch","notary","speedometer","lodger","mitt","southpaw","footman","amity","bloodline","cleaver","coffeehouse","confederate","assist","ation","lecher","abrasion","daybed","knit","laddie","forfeit","kebele","filigree","frisbee","cantina","oscillation","countryman","juggler","scion","acrobat","hourglass","realtor","onyx","pettiness","chancellery","footfall","slippage","mandarin","eral","lob","impertinence","providence","dom","idyll","democrat","deferral","sorority","slamming","badger","mutter","ling","strobe","explosive","municipality","crossover","bedstead","spatula","tug-of-war","goon","pauper","lation","sacking","alder","nightstick","salve","infraction","prowler","falsification","pant","drunk","rumbling","ce","minuet","plaything","yelling","kiddie","duction","buttress","carapace","sobbing","insufficiency","prig","bidet","bloodhound","madwoman","buffoon","vignette","doorjamb","caprice","gable","converse","cad","creche","mullah","spectre","spotter","ingenue","chalet","automatic","stash","truckload","tailback","static","productivist","dissipation","haunch","nag","awl","self-delusion","rattler","blacklist","beagle","trapeze","obstinacy","fiddler","theorem","rearrangement","changeover","reassignment","courtesan","fillet","nay","cutout","luncheonette","purveyor","incitement","remarriage","amelioration","executor","buttonhole","duality","churchman","sickroom","farmstead","jester","perfidy","cuticle","weal","snub","pretension","roadbed","furnishing","quickie","workweek","conveyance","pseudopatient","turbocharger","fleece","abbreviation","spigot","leaflet","great-aunt","ninny","beaker","experimenter","validation","inhabitant","grading","cantaloupe","potentiality","flue","commoner","playroom","readjustment","boathouse","vivacity","brakeman","petitioner","singularity","gage","delineation","fester","paratrooper","font","pitchfork","signifier","crossbar","playhouse","tripe","stylus","pacemaker","clustering","hone","runt","emporium","ragtag","aneurysm","trapper","pulley","thrashing","candlestick","checkerboard","swoop","surcoat","dystrophy","bristle","beck","toolbox","hunchback","subcompact","doze","seaway","disclaimer","arbitrator","miller","crackpot","loafer","instigation","sen","bale","skim","skip","dollop","tender","oeuvre","goner","sor","tort","cropland","profundity","caf","zoom","gabardine","quack","cataclysm","condolence","foxhole","circlet","brave","misfit","bivouac","artificiality","dachshund","puke","bagel","sortie","nomad","opal","ethnicity","firebox","ratchet","cud","worsted","squabbling","cheque","jean","avatar","dirge","footstool","velour","barrister","pression","microchip","coda","reappraisal","cess","hangman","centenary","plough","broomstick","headstone","tormentor","sore","rathorn","voyeur","world-view","co-star","warren","fail","deflation","noble","fleck","saleswoman","hap","machinist","waffle","tom","ell","prefab","suckling","guardhouse","sabre","entanglement","integrator","quarterly","paraffin","heifer","frivolity","good","bougainvillea","excommunication","distillation","cyclist","meteorologist","rubric","cul-de-sac","misnomer","phobia","demagogue","bloodletting","raconteur","ger","astrologer","zygote","counterrevolution","reinstatement","anchovy","getup","tryout","scullery","turnstile","cyst","mustang","gaslight","self-deception","emanation","grown-up","escapade","versity","fishery","paprika","grailstone","gurney","fount","holdout","licensee","jackknife","asterisk","still","fundamentalist","humbug","repast","christening","butternut","miniskirt","fortune-teller","spillway","ference","salver","payout","nodule","high","tugboat","gizzard","sympathizer","fibrillation","incompatibility","dodge","trove","mercenary","pigtail","matchbook","masterwork","barb","endeavour","confection","ephor","yarmulke","char","mimeograph","holdover","subtitle","saddlebag","metronome","tine","testicle","caveat","etching","auntie","guarantor","ringer","airman","boatman","carnivore","armband","polder","tryst","lem","sitting-room","barrow","reappearance","pastiche","bankroll","stroller","saxophonist","blanc","redesign","plotting","gruel","juicer","slat","scooter","socialist","gradient","ember","scorecard","remembering","bo","forecaster","flirt","backache","parakeet","pixie","guffaw","anesthetist","logjam","pursuer","physiologist","follicle","coverall","patsy","bunt","lubricant","jawbone","numeral","mourner","rune","bettor","solder","nitrite","rime","pinstripe","pistachio","monocle","equivocation","crystallization","twit","two-year-old","toupee","eyelash","recognizance","cy","sophistry","seesaw","loony","do-gooder","dusting","commonality","yearling","disbarment","self-congratulation","tsar","vagabond","rhinestone","viper","planetoid","crochet","laird","flatland","prompt","catamaran","wigwam","mainframe","shivering","stringer","vane","iniquity","hoodlum","tableware","smelter","overlay","umber","placenta","yew","right-hander","laggard","cornice","philanthropist","scouring","dissenter","mainsail","showplace","conch","sentimentalist","protectorate","sanitarium","truancy","angler","showpiece","carotene","pollutant","diabetic","hairbrush","videodisc","intellectualist","pothole","setter","tense","grader","kneecap","birdbath","dell","typhoid","tuba","torturer","commie","houseboat","revelry","medalist","hinterland","jowl","splotch","sable","mouf","ripoff","coolie","streetlamp","damn","sharecropper","oral","schoolmate","commander-in-chief","capitalization","flex","shtetl","chenille","pullback","pharaoh","claret","fulfilment","glower","remuneration","internationalist","pap","pediment","sonata","toke","co-director","dollhouse","salesgirl","greenback","analog","ofa","freelancer","hairpin","aphasia","kicking","bummer","lawmaker","thickening","juggernaut","comma","sander","claimant","triad","rhizome","prolongation","placer","transvestite","faceplate","shortening","coffle","surfer","greengrocer","roughage","nudist","dumbbell","coiffure","pinky","ex-President","start-up","bobby","sidearm","paean","raiment","conceptualization","surmise","agnostic","cranny","tassel","infarct","pitchman","minor","stationmaster","sublet","puter","dramatization","mounting","washstand","counsellor","penknife","curtailment","remake","millimeter","sextant","vocalist","blowup","walleye","pickax","fanny","ascendant","brushing","highball","bandleader","winning","godmother","horoscope","disequilibrium","run-up","grazer","sandbar","motorbike","hassock","piggy","teat","reprise","wheeling","psychotherapist","calabash","cob","relativist","packer","slayer","digger","banshee","autocrat","knave","muskrat","extinguisher","foreleg","sobriquet","hospice","accretion","mastermind","figurine","newsmagazine","epidemiologist","pic","minaret","dereliction","city-state","jawline","escapist","legation","weatherman","sinker","cabby","guardrail","objector","timepiece","cistern","werewolf","decadent","harlot","epiphany","bricklayer","doorkeeper","obsidian","bedpost","constriction","refectory","blackbird","enforcer","riposte","schmuck","squab","pop-up","handrail","sandbag","superman","underbelly","alarmist","sesame","paratroop","droplet","proclivity","theorizing","quark","tactician","sundae","poolhall","behaviorist","dipper","postmark","co-conspirator","carload","electrocution","mould","goodnight","appendectomy","statuette","coefficient","cornet","scolding","prude","platitude","carport","lilac","geisha","foist","mitigation","percussionist","lechery","wyrm","charlatan","tussle","slough","jamb","twister","lakeshore","scavenger","pinkie","changeling","pinhead","muster","exploring","fief","critter","haystack","skimmer","geyser","stumble","update","tabernacle","gargoyle","projectionist","requisite","suffix","ramrod","betrayer","perience","tance","fluting","flare-up","fatherland","guardianship","douche","good-night","trawler","headsman","stoplight","operetta","spend","hater","teakettle","geneticist","particular","wardroom","slider","deuce","gingham","telethon","acclamation","centrifuge","workstation","pretender","prong","lampshade","ureter","hiccup","acetate","molding","wallop","vagrant","three-star","carafe","blowout","equinox","rave","junior","spoof","confessor","troubleshooter","braggart","judgeship","rapier","landmass","stoic","cuckold","inheritor","forester","jangle","gymnast","wingman","stein","gnome","drumstick","whatnot","yachtsman","realty","glob","by-election","academic","deflection","knocker","wondering","mugging","petit","frosting","pillowcase","panelling","grendel","tribune","tabulation","simulator","whaler","stork","gill","cavalcade","workhorse","locksmith","preppie","henchman","countertop","groundcar","puree","wellspring","debasement","prankster","tration","insert","put-down","typer","chartreuse","crematorium","headpiece","noncom","wipe","drove","sportscaster","impersonator","shrew","twitching","loader","magnolia","dropping","functionary","dissonance","cudgel","forfeiture","glutton","reject","doubleheader","tarp","suburbanite","afghan","chaperone","bas-relief","oscilloscope","imposter","newel","trusteeship","shocker","cannonball","half-breed","woodpecker","tumbleweed","snip","consignment","left-hander","spoil","also-ran","exhalation","signification","tester","ashram","gardenia","deductible","frontline","subtraction","bowstring","upland","bearskin","gramophone","mock-up","serenade","mix-up","extrapolation","tidbit","semaphore","banging","dogwood","carol","mapping","exchanger","ignominy","retraction","videocassette","precept","sirloin","mortification","pagoda","belfry","cubbyhole","mindstone","greyhound","clank","snowbank","instep","sanatorium","savanna","longshoreman","copier","nightshirt","boatyard","brigand","usurpation","understudy","interrelationship","undercarriage","sulphate","quasar","marshmallow","thrush","sweeper","alleviation","feint","chimera","infidel","modifier","perennial","simpleton","gridiron","overlord","airway","binding","abstention","algorithm","amalgamation","ascension","herdsman","lollipop","pastel","laminate","tendril","synopsis","drawstring","intermarriage","restorer","swoon","firefight","civilisation","self-criticism","hanky","ventricle","jot","interferon","circel","avenger","stepson","amethyst","beachhead","loggia","sizzle","burp","watchtower","endearment","dryad","prefect","tong","croissant","blocker","brioche","thistle","sunburst","savor","dumpling","checker","soliloquy","marketer","wheeze","molar","oboe","inbound","masochist","superficiality","tabby","outcrop","deputation","bassist","particularity","strop","thang","doggy","zation","ghoul","domestic","frostbite","relapse","floorboard","clicking","paraphrase","sinkhole","pushcart","overdraft","spinnaker","sourdough","sweatshop","meteorite","lander","caboose","junket","planer","iguana","brouhaha","reaper","sharpshooter","eggshell","self-sacrifice","minnow","skyrocket","connexion","effrontery","oblong","biker","flinch","cog","bullock","retrial","underwriter","gentlewoman","noggin","sissy","collect","dogmatism","sweatsuit","biplane","polariser","server","hiker","electrolyte","thunderclap","bronc","snooze","mascot","sherbet","carillon","decal","womanizer","underground","tailcoat","worshipper","automaton","proscription","sleuth","honeybee","abutment","foller","palladium","partake","jailing","counterfeit","pompadour","moneymaker","acacia","monthly","geographer","doghouse","bludgeon","fitter","conservator","indecency","atoll","fife","acquit","barracuda","mortician","striker","plait","untruth","hoarding","eighteen-wheeler","shakeup","grounder","abuser","hamstring","parishioner","cherub","cubist","antler","kisser","shunt","cravat","admixture","whinny","scorpion","amenity","matchup","spacer","settling","insinuation","possum","tenancy","girder","adapter","mousetrap","cubble","steppe","hypochondriac","covey","whipping","taunt","pocketful","pug","panhandle","conga","citron","foul-up","plaint","nouveau","oilskin","meridian","lifer","bolster","wren","gripe","mountaineer","transceiver","treetop","hex","harrow","tampering","photocopy","redskin","cesspool","barrette","cleanser","missive","breakfront","mini","ridgeline","semi","pasha","byword","phoneme","seducer","miser","cookstove","limerick","cummerbund","labourer","ascot","wraith","tarantula","toffee","pituitary","liana","cleat","line-up","helix","highboy","bicep","partment","coed","expletive","dumpster","deferment","progenitor","sandbox","mignon","typhoon","sublimation","backdoor","alchemist","pacifier","insomniac","hairpiece","lintel","indemnity","blurb","republican","electrocardiogram","futurist","recliner","mote","sketchbook","fulcrum","gratuity","aqueduct","adherent","masque","sundial","template","handmaiden","hedgehog","coding","corsair","solstice","orifice","sonobuoy","prizewinner","spinner","townsman","rosette","mind-set","unkindness","pushover","bility","infielder","hutch","erasure","parallelism","avowal","fastness","broadcloth","hellhole","grandparent","toehold","ident","sleepwalker","watching","aerie","database","mismatch","hombre","scrambler","spoiler","putdown","rookery","spinoff","ringleader","duchy","sealskin","transformer","doggie","bedsheet","cowhide","ceramic","prostration","cheroot","houseboy","giantess","tomcat","speedster","basalt","minicomputer","rapacity","spaceman","in-law","equerry","humpback","academician","harvester","fairground","ream","carat","entreaty","groundswell","obfuscation","provocateur","fugue","denigration","rifleman","manipulator","panting","synod","glitch","nightie","goaltender","kingpin","comforter","anesthetic","klaxon","hijack","orb","hostelry","gladiator","misadventure","bombard","fixity","tanner","stringency","wonderland","x-ray","plainclothesman","roadhouse","travelogue","gasket","nibble","hacking","nude","tincture","receptor","fink","schoolmarm","washtub","homesteader","hacker","portiere","hatbox","tamer","howitzer","grouper","frontage","amoeba","clime","flashback","teamster","accolade","polluter","officeholder","inpatient","altercation","reverberation","coproduction","phosphor","substation","bandana","sapper","preserver","pigeonhole","prefecture","milkman","avocation","argyle","amphetamine","linker","leviathan","hamster","bondsman","comer","bumpkin","sheikh","beefsteak","tyke","discoloration","kingmaker","quotient","excision","whitey","asymmetry","trill","discourtesy","bleat","hatching","crier","creel","seabed","witticism","riser","lurcher","moviemaker","pantsuit","linchpin","deformation","deodorant","soybean","washboard","egotist","underpass","dysfunction","tingling","barstool","paramour","udder","microbe","radiologist","qualm","welt","salesperson","signpost","sepulcher","lumpectomy","slaver","shopgirl","peregrine","siesta","reiteration","profligacy","iodide","iconoclast","rollcall","fillip","oratorio","splat","incoherence","accompanist","motorcar","nunnery","busybody","carryall","nettle","jaguar","pretence","odometer","potentate","mussel","prophetess","monetarist","proach","typescript","hacksaw","broadsword","miter","fatty","terrarium","archangel","powerboat","stooge","cannery","pylon","pulsation","misstep","yucca","hearthstone","rumour","lockout","toboggan","trampoline","concatenation","debility","acorn","forklift","psion","dragonet","ligament","folio","tie-up","picking","swatch","arrowhead","martinet","fisher","quintet","ellipse","sumbitch","legitimation","nightwatch","hardback","schemer","conversationalist","collectivist","reallocation","diorama","cutaway","point-of-view","cattleman","abscess","talc","incubus","dribble","sis","rhododendron","rolling","spiderweb","nonsmoker","crissake","refusenik","save","obstructionist","suture","parenthesis","reefer","great-grandson","steelworker","bumblebee","bullfrog","festivity","embolism","defeatist","tankard","ferryman","garret","co-worker","consonant","copywriter","bookseller","compress","dogfight","embezzler","quiche","liege","dissector","taskmaster","prosthesis","emulsion","spitball","modulation","squint","retelling","baiting","whirr","air-conditioner","individuation","geezer","aspirant","pensioner","re-enactment","flapper","looker","marshland","sexton","adverb","coenzyme","misapprehension","inaccuracy","barmaid","beautician","daredevil","racehorse","oxford","spume","busload","tradesman","manicure","propellant","apothecary","ruffian","titillation","instigator","siting","ringmaster","enumeration","twirl","bookmaker","technocrat","mouth-harp","quaver","icehouse","ventilator","roadster","subpena","carter","comedienne","savannah","milkmaid","pumper","signer","deadbeat","cofounder","bootlegger","tribesman","wildfire","shard","hailstorm","struction","routing","dolmen","idiosyncrasy","poniard","honky-tonk","spendthrift","draftee","hermaphrodite","pinafore","roundabout","frill","redeployment","ophthalmologist","caldron","reinvestment","troubadour","fjord","leave-taking","elongation","clinch","trinket","suasion","neutralist","finalist","whiplash","ventriloquist","violator","monarchist","spanking","grindstone","initiator","standard-bearer","sender","atelier","distemper","ingot","frontiersman","altarpiece","endgame","homily","synapse","pillbox","ochre","scimitar","jubilee","presentiment","tation","aggrandizement","truncheon","damsel","fallibility","papaya","piggyback","puppeteer","workhouse","nightingale","entomologist","wicket","debriefing","logician","moorland","minimalist","matte","skirmishing","tonality","maidservant","yam","gatekeeper","whammy","drudge","angora","garland","manoeuvre","moviegoer","slingshot","titan","re-evaluation","ironwork","ambassadorship","lanch","pollination","riage","vocalization","brawler","shaving","particulate","inhaler","impoundment","surfboard","waterman","almanac","pepperoni","kook","colonnade","infantryman","scruple","functionalist","wisecrack","conscript","boor","bannister","pretzel","analgesic","firebrand","microprocessor","frame-up","guardsman","teetotaler","broad","pallbearer","airframe","wrangle","backboard","knockdown","reparation","poorhouse","milkshake","battlement","dragonfly","paymaster","snuffler","crudeness","nerd","blockhouse","donut","backhoe","principality","dimmer","wounding","collier","beater","footlocker","barkeep","absurdist","brickwork","great-uncle","rumination","appellation","joiner","hydrolysis","interlocutor","raindrop","hardtop","groping","cymbal","miscellany","pomegranate","hearer","abortionist","corncob","shoal","dunce","bellowing","bridgehead","mangrove","blotch","boxwood","briar","which","trickster","epileptic","dependent","encumbrance","claque","pickpocket","half-truth","bilge","overrun","caveman","posterior","derriere","sty","maggot","vibrator","imbecility","hang-up","syllogism","blindfold","sunbeam","chrysanthemum","amour","ne'er-do-well","odour","flowerpot","satrap","reconnoiter","tonsillectomy","clampdown","coliseum","menage","warbler","hubcap","crudity","baseboard","lithograph","homeroom","stanchion","amphitheatre","disquisition","commonplace","feedlot","reprint","shire","kraken","careerist","goatskin","worldview","waddle","washout","doormat","diadem","sniffer","spat","superhighway","snooper","libation","zoologist","subtext","bailiwick","exterminator","popsicle","actuary","cabinetmaker","swami","contraceptive","softener","margarita","hatter","tention","earpiece","dormer","timberland","katun","crooner","one-liner","adjudication","snitch","referent","subset","disavowal","starburst","merchantman","dalliance","polymer","hypnotist","monogram","peerage","claymore","satyr","twerp","matchstick","rubber-stamp","clapper","exhibitionist","warhorse","eatery","seashell","radish","router","dinette","trombonist","rivet","requiem","breakaway","hard-liner","locator","shindig","corrective","truffle","whelp","expediter","savant","mitten","canton","wobble","misinterpretation","fense","headwrap","conciliator","chine","topping","assemblyman","divine","scuffling","boomlet","dervish","yellow-green","stockyard","hummock","trimming","royalist","calumny","vandal","prickle","strikeout","apologia","afterburner","hunker","flippancy","fop","embrasure","hornet","tithe","oilfield","lawman","turnkey","fledgling","coauthor","blowpipe","subjectivist","backstop","fishbowl","bedpan","sedge","protrusion","crybaby","freedman","seminarian","spacesuit","tautology","footstep","fiveyear","stoneware","mance","generalist","quitter","domicile","requisition","seance","cabana","wastrel","underling","looter","glassful","wallow","boater","disharmony","shiksa","herringbone","flyleaf","eyesore","lawnmower","walk-up","hemline","wiggle","posing","whirring","cropper","reappointment","psychodrama","shaver","orthodontist","granary","extrovert","calfskin","thinning","foghorn","trainload","carbide","metier","harpist","minim","ballcarrier","rayon","bursting","flipper","fastening","mullet","exploit","squatter","nullity","commodore","newlywed","eavesdropper","chiropractor","miler","arsonist","wrecker","transmutation","incompetency","subcontractor","tress","meatball","bobcat","distributorship","camcorder","pasty","glimmering","groaning","classicist","stakeout","supplicant","repeater","crackling","cryptographer","croupier","honeycomb","insincerity","inhibitor","mystification","greaser","barker","anthill","barbarity","strangle","myrtle","segmentation","marlin","capon","toenail","flip-flop","auger","blasphemer","dipping","pawnshop","penumbra","mohole","bauble","rube","flophouse","triplicate","sardine","master-mason","fang","brainstorm","derangement","hanker","molestation","smokescreen","cavalryman","edging","layover","signalman","clavicle","crewcut","tricolor","cochairman","liberationist","foreskin","bleacher","semi-circle","quince","flatcar","abattoir","farmboy","tibia","thrum","conformist","southerner","docudrama","whorl","break-up","conglomeration","exhibitor","bramble","cutie","woodchuck","compatriot","stole","tuner","housemother","dharma","femme","teahouse","banquette","bottomland","arranger","philistine","vacillation","chiton","retch","caddie","reissue","teaser","swampland","deejay","libertarian","pegboard","greenhorn","dork","cellmate","jobber","wishbone","millstone","haunting","blow-up","snorkel","snowplow","trespasser","punter","snowflake","snowdrift","gunnysack","surround","evergreen","clog","radioisotope","cougar","pundit","wattle","subgroup","oviduct","mixup","misstatement","sulfite","pansy","splint","counterproposal","pulsar","remove","landau","four-year-old","rebbe","disconnection","neomort","exegesis","meteoroid","meringue","sheepherder","radioman","strumpet","opment","millionth","speakeasy","conformation","cultivator","goof","annual","gazelle","demitasse","fishhook","preferment","homebody","skewer","chancre","sorbet","hologram","rivulet","oldster","prisoner-of-war","tulle","riff","restatement","debit","emplacement","repre","invariance","half-circle","objectivist","passer-by","scarlet","flail","impala","persimmon","purist","gation","burgher","snowman","starling","barony","annulment","lifespan","herder","embolden","swathe","ex-convict","trouper","half-wit","fuchsia","grange","ricochet","stinker","opacity","colander","absorber","armadillo","pleasantry","noncommunist","taxiway","overtone","debater","taillight","advisement","birdcage","baroness","aureole","breakout","colouring","astrophysicist","flatboat","stilt","eyeshade","barbell","deliverer","fishnet","prise","jackrabbit","manifold","chattel","jimmy","workshirt","thornbush","chatty","frisson","recount","patentee","oceanographer","forepaw","murderess","whalebone","frontrunner","cerebrum","jector","militiaman","lobsterman","earthling","clean","swindler","scree","begat","doorsill","housedress","strangler","shantytown","roughhouse","scenarist","foothill","contaminant","hamadryad","phony","fairyland","seascape","treble","prodigality","hobble","gantry","backroom","enticement","sawhorse","interviewee","cliffside","dustpan","scrubber","imbroglio","acquaintanceship","woodworker","aesthete","octogenarian","mauling","archivist","pungency","interweaving","jabber","bassinet","doubler","torte","linkup","outdoorsman","fixer","caddy","fumbling","defile","meristem","microbiologist","urologist","stovepipe","tambourine","constructionist","egomaniac","adjuster","liniment","impiety","timeline","cowgirl","sinecure","chillun","foreword","frat","retary","bagpipe","coif","visualization","colleen","shirtmaker","flounce","adder","riffle","underboss","reinterpretation","bender","seeding","fiver","sicken","decoder","holothete","figuring","stave","earplug","acrylic","epigraph","fairytale","flasher","sally","inkwell","nitwit","hussy","constrictor","stabilizer","stickup","seaplane","shimmy","dredge","updraft","speciality","insulator","frond","storyboard","shill","rafter","blowgun","dukedom","favourite","populist","striper","blowtorch","mallard","licking","poetess","tetracycline","ad-lib","toxicologist","fencer","gnawing","eration","photocell","golem","heirloom","penitence","gence","latecomer","broil","outdistance","howler","canine","replenishment","traditionalist","emcee","eyeglass","billow","eyelet","khaki","assignation","tepee","buccaneer","bellyache","parkland","musicologist","phaeton","spirochete","lanyard","mischance","tobacconist","blusher","castaway","meson","bouillabaisse","scrivener","stinger","life-cycle","harridan","motivator","mooring","crimp","inlay","purveyance","vertical","jackhammer","strongbox","dishpan","cobweb","couturier","chalkboard","basilisk","duckling","penitent","footrest","tangent","facing","peroration","floodlight","nouvelle","truss","sprite","drier","esplanade","banding","insulter","dialog","pincer","battlefront","missal","hayseed","parvenu","baronet","shipwright","whisker","no-hitter","double-dealing","moire","conjurer","rickshaw","crevasse","switchback","nicety","provincialism","novella","liberator","biggie","tune-up","ferryboat","remover","twosome","loveseat","tektite","sharpener","cartwheel","diva","flirting","disproportion","tortilla","rover","whodunit","birder","parley","birdsong","fiefdom","augury","harrier","tamale","judging","snakebite","diagnostician","tannin","qualifier","cheetah","distillery","protester","stockroom","factotum","newswoman","cosmopolitan","iridescence","aeroplane","toddy","co-defendant","parry","duocorn","boasting","elector","clarinetist","undergarment","psych","supergiant","armature","environ","collectivity","keepsake","gunfighter","wingspan","perforation","worshiper","groupie","cityscape","worrier","shipload","scallop","hatchery","portraitist","screamer","blaspheme","pacer","presenter","malcontent","seine","equivalency","scriptwriter","lieve","discard","bantam","centaur","typology","loiter","nigguh","drubbing","airfoil","curio","grandmaster","finisher","luminary","alliteration","phantasy","blooper","fasting","samba","gearbox","islet","apricot","smidgen","inset","firestorm","madcap","seedbed","gunsight","forelock","disjunction","writhing","huckleberry","abstract","squirm","ironist","monosaccharide","pushbutton","terracotta","artiste","showgirl","cornea","temptress","popularization","free-fall","scribbling","conviviality","flange","thwack","droop","rower","sweatband","gopher","mandolin","slobber","stricture","calyx","dietician","rehash","padre","ancient","dotage","jacaranda","pensione","contravention","undulation","ironworker","currant","hankie","face-lift","anthropoid","depressant","war-horse","tithing","greeter","matchbox","woodcutter","magpie","wayfarer","handcuff","lawgiver","traverse","minion","cavalier","sonarman","defoliant","scamp","snowshoe","polyp","gainer","honkie","bottler","halloo","amputee","ontology","bromide","brisket","goodie","tavern-keeper","choker","preaching","molester","tonsure","recapitulation","aviary","stevedore","raffle","bootstrap","angiogram","plantain","tipper","hooting","seismometer","persecutor","lobotomy","pigsty","virologist","gamete","presbytery","stepping-stone","dressing-room","cyclamate","chipmunk","platelet","flogging","tuber","reservist","blinker","demographer","turncoat","demesne","fancier","ideologist","self-justification","bucketful","m'lord","rapping","bestiality","irrelevancy","oiler","mackinaw","flutist","trafficker","categorization","pram","world-system","cathouse","deceiver","idjit","double-take","reformulation","brushfire","separator","neigh","whimpering","crisscross","regurgitation","auteur","backwash","refiner","broadsheet","hedonist","recitative","nonentity","codger","tinting","policymaker","tutu","boondoggle","entrant","wok","small","boatload","searcher","taMing","sycophant","substructure","megalomaniac","rusher","saleslady","registrar","blackguard","neckerchief","oldie","clinician","flushing","pinwheel","dition","charioteer","beastie","stridency","verity","eyedropper","canvass","desperado","teardrop","farmyard","mannerist","macaw","valedictorian","whopper","pertinence","assay","puncher","manse","anatomist","dishtowel","nuke","egalitarian","tribulation","cinematographer","sailer","icicle","legume","spiritualist","nativist","these","progressive","blastocyst","harpooner","pedant","instrumentality","connector","masseur","vertebra","moonshiner","bowsprit","grabber","stele","clanking","renter","antihero","bankbook","jailbird","handicraft","fighter-bomber","streamer","retardant","wallflower","flamethrower","agate","cairn","bantamweight","agglomeration","roustabout","linden","roughneck","formance","moray","cession","rashness","capstone","derailment","declivity","snowfield","talon","haymaker","abductor","diffuser","geosector","camisole"];Object.defineProperty(Zp,"__esModule",{value:!0});Zp.nouns=Zp.adjectives=void 0;const q7e=e6;Zp.adjectives=q7e.default;const X7e=t6;Zp.nouns=X7e.default;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.nouns=e.adjectives=e.uniqueUsernameGenerator=e.generateUsername=e.generateFromEmail=void 0;const t=Zp,n=Dne,r=(u,f)=>{const p=(0,n.randomBytes)(4).readUInt32BE(0);return u+p%(f-u+1)},i=u=>{let f;switch(u){case 1:f=Math.floor(r(1,9)).toString();break;case 2:f=Math.floor(r(10,90)).toString();break;case 3:f=Math.floor(r(100,900)).toString();break;case 4:f=Math.floor(r(1e3,9e3)).toString();break;case 5:f=Math.floor(r(1e4,9e4)).toString();break;case 6:f=Math.floor(r(1e5,9e5)).toString();break;default:f="";break}return f};function o(u,f){return u.replace(/@.+/,"").replace(/[&/\\#,+()$~%._@'":*?<>{}]/g,"")+i(f)}e.generateFromEmail=o;function s(u,f,h){const p=t.nouns[Math.floor(Math.random()*t.nouns.length)],g=t.adjectives[Math.floor(Math.random()*t.adjectives.length)];let v;return u?v=g+u+p+i(f):v=g+p+i(f),h?v.substring(0,h):v}e.generateUsername=s;function a(u){if(u.dictionaries){const f=u.dictionaries.length;let h="";for(let g=0;g{const a=s??await Mj({accept:Ooe,strict:!0});a&&(Y7e(a)?await o(async()=>{const c=await a.text(),u=await Lee(c);u&&(n(()=>u.layers),i(()=>u.UIState))},`Opening workspace (${$j(a.size)})`):e(`${a==null?void 0:a.name} is not a workspace file.`))},save:()=>{V7e(JSON.stringify({layers:t,UIState:r}),`${Poe.generateUsername("-")}.workspace.json`,"application/json")}}}function Y7e(e){return te.find(Ooe,t=>e.name.endsWith(t))}var Doe={},K7e=$t&&$t.__extends||function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)i.hasOwnProperty(o)&&(r[o]=i[o])},e(t,n)};return function(t,n){e(t,n);function r(){this.constructor=t}t.prototype=n===null?Object.create(n):(r.prototype=n.prototype,new r)}}(),Loe=$t&&$t.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(Doe,"__esModule",{value:!0});var la=Loe(vv),K$=Loe(R),Q7e=function(e){K7e(t,e);function t(n){var r=e.call(this,n)||this;return r.resetDragging=function(){r.frameDragCounter=0,r.setState({draggingOverFrame:!1,draggingOverTarget:!1})},r.handleWindowDragOverOrDrop=function(i){i.preventDefault()},r.handleFrameDrag=function(i){if(t.eventHasFiles(i)){if(r.frameDragCounter+=i.type==="dragenter"?1:-1,r.frameDragCounter===1){r.setState({draggingOverFrame:!0}),r.props.onFrameDragEnter&&r.props.onFrameDragEnter(i);return}if(r.frameDragCounter===0){r.setState({draggingOverFrame:!1}),r.props.onFrameDragLeave&&r.props.onFrameDragLeave(i);return}}},r.handleFrameDrop=function(i){r.state.draggingOverTarget||(r.resetDragging(),r.props.onFrameDrop&&r.props.onFrameDrop(i))},r.handleDragOver=function(i){t.eventHasFiles(i)&&(r.setState({draggingOverTarget:!0}),!t.isIE()&&r.props.dropEffect&&(i.dataTransfer.dropEffect=r.props.dropEffect),r.props.onDragOver&&r.props.onDragOver(i))},r.handleDragLeave=function(i){r.setState({draggingOverTarget:!1}),r.props.onDragLeave&&r.props.onDragLeave(i)},r.handleDrop=function(i){if(r.props.onDrop&&t.eventHasFiles(i)){var o=i.dataTransfer?i.dataTransfer.files:null;r.props.onDrop(o,i)}r.resetDragging()},r.handleTargetClick=function(i){r.props.onTargetClick&&r.props.onTargetClick(i),r.resetDragging()},r.stopFrameListeners=function(i){i&&(i.removeEventListener("dragenter",r.handleFrameDrag),i.removeEventListener("dragleave",r.handleFrameDrag),i.removeEventListener("drop",r.handleFrameDrop))},r.startFrameListeners=function(i){i&&(i.addEventListener("dragenter",r.handleFrameDrag),i.addEventListener("dragleave",r.handleFrameDrag),i.addEventListener("drop",r.handleFrameDrop))},r.frameDragCounter=0,r.state={draggingOverFrame:!1,draggingOverTarget:!1},r}return t.prototype.componentDidMount=function(){this.startFrameListeners(this.props.frame),this.resetDragging(),window.addEventListener("dragover",this.handleWindowDragOverOrDrop),window.addEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.componentDidUpdate=function(n){n.frame!==this.props.frame&&(this.resetDragging(),this.stopFrameListeners(n.frame),this.startFrameListeners(this.props.frame))},t.prototype.componentWillUnmount=function(){this.stopFrameListeners(this.props.frame),window.removeEventListener("dragover",this.handleWindowDragOverOrDrop),window.removeEventListener("drop",this.handleWindowDragOverOrDrop)},t.prototype.render=function(){var n=this.props,r=n.children,i=n.className,o=n.targetClassName,s=n.draggingOverFrameClassName,a=n.draggingOverTargetClassName,c=this.state,u=c.draggingOverTarget,f=c.draggingOverFrame,h=o;return f&&(h+=" "+s),u&&(h+=" "+a),K$.default.createElement("div",{className:i,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave,onDrop:this.handleDrop},K$.default.createElement("div",{className:h,onClick:this.handleTargetClick},r))},t.isIE=function(){return typeof window<"u"&&(window.navigator.userAgent.indexOf("MSIE")!==-1||window.navigator.appVersion.indexOf("Trident/")>0)},t.eventHasFiles=function(n){var r=!1;if(n.dataTransfer){var i=n.dataTransfer.types;for(var o in i)if(i[o]==="Files"){r=!0;break}}return r},t.propTypes={className:la.default.string,targetClassName:la.default.string,draggingOverFrameClassName:la.default.string,draggingOverTargetClassName:la.default.string,onDragOver:la.default.func,onDragLeave:la.default.func,onDrop:la.default.func,onTargetClick:la.default.func,dropEffect:la.default.oneOf(["copy","move","link","none"]),frame:function(n,r,i){var o=n[r];if(o==null)return new Error("Warning: Required prop `"+r+"` was not specified in `"+i+"`");if(o!==document&&!(o instanceof HTMLElement))return new Error("Warning: Prop `"+r+"` must be one of the following: document, HTMLElement!")},onFrameDragEnter:la.default.func,onFrameDragLeave:la.default.func,onFrameDrop:la.default.func},t.defaultProps={dropEffect:"copy",frame:typeof window>"u"?void 0:window.document,className:"file-drop",targetClassName:"file-drop-target",draggingOverFrameClassName:"file-drop-dragging-over-frame",draggingOverTargetClassName:"file-drop-dragging-over-target"},t}(K$.default.PureComponent),J7e=Doe.FileDrop=Q7e;function Z7e(){const e=sj(),{load:t}=Moe(),[n,r]=R.useState(!1);return C.jsx(C.Fragment,{children:C.jsx(J7e,{onFrameDragLeave:()=>r(!1),onFrameDragEnter:()=>r(!0),onFrameDrop:()=>r(!1),onDragLeave:()=>r(!1),onDrop:i=>(i==null?void 0:i.length)&&t(te.head(i)),children:C.jsx(zk,{sx:{...e,zIndex:i=>i.zIndex.tooltip+1},open:n,children:C.jsxs(nf,{alignItems:"center",spacing:4,children:[C.jsx(ewe,{}),C.jsx(Ut,{variant:"body2",color:"textSecondary",children:"Open workspace"})]})})})})}function eVe(e){const t=WRe(),[{view:n},r]=U7e();return C.jsxs(C.Fragment,{children:[C.jsx(En,{...e,children:C.jsx(zJ,{root:n,onChange:i=>r(()=>({view:i})),renderLeaf:({content:i})=>{var o;return C.jsx(Hp,{in:!0,children:C.jsx(ht,{sx:{width:"100%",height:"100%"},children:R.createElement((o=a4[(i==null?void 0:i.type)??""])==null?void 0:o.content)})})}})}),C.jsx(Hp,{in:t,children:C.jsx(Fye,{variant:"indeterminate",sx:{position:"absolute",bottom:0,width:"100%",zIndex:1}})}),C.jsx(W7e,{}),C.jsx(Z7e,{})]})}const tVe=e=>rF(e,"#ffffff")>rF(e,"#000000")?"#ffffff":"#000000";function nVe(e){R.useEffect(()=>{document.querySelector('meta[name="theme-color"]').setAttribute("content",e),document.title=b3,"electron"in window&&window.electron.invoke("title-bar","#00000000",tVe(e))},[e])}function rVe(e){return new Promise(t=>te.delay(t,e))}async function iVe(e,t=2500){const n=te.now();return{result:await Promise.any([e(),rVe(t)]),delta:te.now()-n}}function oVe(){const e=Ol(),[{remote:t}]=Zu(),[,n]=rv(),r=sm("connections");return R.useEffect(()=>{let i=!1,o=[];return r(async()=>{if(t!=null&&t.length){for(const{transport:s,url:a,disabled:c}of t){if(c!==!0){e(`Connecting to ${a}...`);const u=new(QGe(s))({url:a});await u.connect();const{result:f,delta:h}=await iVe(()=>u.call("about"));f?(e(`Connected to ${f.name}.`),o=[...o,{...f,url:a,ping:h,call:u.call.bind(u),disconnect:u.disconnect.bind(u)}]):await u.disconnect()}i||n(()=>o)}i||e(`Connected to ${o.length} of ${t.length} solvers.`)}}),()=>{i=!0,o.map(s=>s.disconnect())}},[t,n,e,r]),C.jsx(C.Fragment,{})}const sVe=e=>t=>({...t,source:e});function aVe(){const[e]=rv(),[,t]=FC(),n=sm("features");return kte(r=>n(async()=>{const i={algorithms:[],formats:te.keys(Zj).map(o=>({id:o,source:"internal"})),maps:[]};for(const{call:o,url:s}of e)for(const a of["algorithms","formats","maps"])i[a]=te.uniqBy([...i[a],...te.map(await o(`features/${a}`),sVe(s))],"id");r.aborted||t(()=>i)}),[e,t]),C.jsx(C.Fragment,{})}function lVe(){const[{layers:e},t]=om();return R.useMemo(()=>te.map(e,n=>{const r=Sne(n).service;if(r)return R.createElement(r,{key:n.key,value:n,onChange:i=>t(({layers:o})=>({layers:te.map(o,s=>s.key===n.key?i(s):s)}))})}),[e,t])}function cVe(){const e=lVe();return C.jsx(C.Fragment,{children:e})}function Noe({slices:e,children:t,services:n}){return C.jsx(C.Fragment,{children:te.reduce(te.map(e,r=>R.createElement(r)),(r,i)=>R.cloneElement(i,{},r),C.jsxs(C.Fragment,{children:[t,te.map(n,(r,i)=>R.createElement(r,{key:i}))]}))})}const uVe=()=>{const{save:e,load:t}=Moe(),[n,r]=R.useState(!1);return R.useEffect(()=>{if("windowControlsOverlay"in navigator){const i=()=>{r(!!navigator.windowControlsOverlay.visible)};return navigator.windowControlsOverlay.addEventListener("geometrychange",i),i(),()=>navigator.windowControlsOverlay.removeEventListener("geometrychange",i)}},[r]),C.jsx(ht,{sx:{mt:-.5,minHeight:36,height:n?"env(titlebar-area-height, 50px)":0,width:"env(titlebar-area-width, 100%)",WebkitAppRegion:"drag",overflowX:"auto"},children:C.jsx(Iw,{x:!0,style:{height:"100%"},children:C.jsx(ht,{sx:{height:"100%"},children:C.jsxs(nf,{direction:"row",spacing:1,sx:{height:"100%"},alignItems:"center",children:[C.jsx(ht,{sx:{p:1,height:"100%"},children:C.jsx("img",{src:HJ,style:{height:"100%"}})}),[{key:"workspace",items:[{name:"Open workspace",key:"workspace-load",action:t},{name:"Save workspace",key:"workspace-save",action:e}]},{key:"help",items:[{name:"Open repository in GitHub",key:"github",action:()=>open(NSe,"_blank")},{name:"Open changelog",key:"changelog",action:()=>open(`${BSe}/changelog-${DSe}.md`,"_blank")}]}].map(({key:i,items:o})=>C.jsx(im,{variant:"popover",children:s=>C.jsxs(C.Fragment,{children:[C.jsx(rm,{...Fw(s),children:C.jsx(Uk,{dense:!0,sx:{p:0},children:o.map(({name:a,key:c,action:u})=>C.jsx(Pu,{onClick:()=>{u==null||u(),s.close()},children:a},c))})}),C.jsx(of,{...Zk(s),sx:{WebkitAppRegion:"no-drag",minWidth:"fit-content",p:.5,px:1},children:te.startCase(i)})]})},i)),C.jsx(ht,{sx:{p:.75,height:"100%"},children:C.jsx(dVe,{})})]})})})})};function dVe(){const e=Ol();return C.jsxs(Ku,{onClick:()=>e("Commands are not yet implemented."),sx:{WebkitAppRegion:"no-drag",fontSize:14,borderRadius:t=>t.shape.borderRadius,"&:hover":{bgcolor:"background.paper"},height:"100%",m:0,display:"flex",alignItems:"center",px:1,pr:2,gap:t=>t.spacing(1),color:"text.secondary",cursor:"text"},children:[C.jsx(V1e,{fontSize:"small",color:"disabled"})," ",C.jsx(Ut,{sx:{mt:0},children:"Commands"})]})}const fVe=[oVe,aVe,zWe,cVe];function hVe(){const t=Ln().palette.background.default;return nVe(t),C.jsxs(En,{vertical:!0,sx:{bgcolor:t,p:.5,color:"text.primary"},children:[C.jsx(uVe,{}),C.jsx(eVe,{flex:1})]})}function pVe(){const[{theme:e="light",accentColor:t="teal"}]=Zu(),n=R.useMemo(()=>OSe(e,t),[e,t]);return C.jsx(fue,{theme:n,children:C.jsx(Iwe,{children:C.jsx(Noe,{services:fVe,children:C.jsx(hVe,{})})})})}var Boe,rX=Ev;Boe=rX.createRoot,rX.hydrateRoot;const mVe=Boe(document.getElementById("root")),gVe=[dOe,ISe,jRe,URe,aCe,HRe,PBe,Awe,H7e,MRe];mVe.render(C.jsx(lve,{children:C.jsx(Noe,{slices:gVe,children:C.jsx(pVe,{})})})); diff --git a/index.html b/index.html index 5232056b..56c9c954 100644 --- a/index.html +++ b/index.html @@ -10,7 +10,7 @@ - +